OChess v0.0.2
Programmer's Manual
BaseImportTab Class Reference

A BaseTab sub-tab to import games. More...

#include <BaseImportTab.hpp>

Inheritance diagram for BaseImportTab:
TabBase_TabImport

Public Member Functions

 BaseImportTab (wxFrame *parent, std::shared_ptr< GameBase > db, TabInfos *main_tab)
 
void RefreshImportLists ()
 
void Reset (std::shared_ptr< GameBase > base)
 
std::vector< std::shared_ptr< Game > > GetGameToImport ()
 
std::vector< std::string > GetDatabaseToImport ()
 
- Public Member Functions inherited from TabBase_TabImport
 TabBase_TabImport (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 661), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 

Public Attributes

int import_ndb
 
int import_ngames
 
int import_nselect
 

Private Member Functions

void RefreshPendingImports ()
 
void OnLoad (wxCommandEvent &event)
 
void OnImportGame (wxCommandEvent &event)
 
void OnImportSelection (wxCommandEvent &event)
 
void OnImportDatabase (wxCommandEvent &event)
 

Private Attributes

TabInfosmain_tab
 
std::shared_ptr< GameListManagerglm
 
std::vector< std::shared_ptr< Game > > games_to_import
 
std::vector< std::string > databases_to_import
 
std::unordered_map< std::string, std::unordered_map< long, std::shared_ptr< Game > > > selected_games_to_import
 Hold games for each databases.
 
std::shared_ptr< GameBasebase
 
std::shared_ptr< GameBaseselected_base
 

Additional Inherited Members

- Protected Attributes inherited from TabBase_TabImport
wxTextCtrl * pending_imports
 
wxStaticText * from_game_label
 
wxComboBox * opened_game_list
 
wxButton * import_from_game_button
 
wxStaticLine * m_staticline4
 
wxStaticText * m_staticText29
 
wxComboBox * opened_db_list
 
wxButton * load_button
 
wxListCtrl * game_list
 
wxButton * import_from_db_button
 
wxButton * m_button16
 

Detailed Description

A BaseTab sub-tab to import games.


The documentation for this class was generated from the following files: