ochess/src/base_tab/BaseTab.cpp

25 lines
680 B
C++
Raw Normal View History

2022-02-24 11:50:16 +01:00
#include "BaseTab.hpp"
2022-02-26 12:30:07 +01:00
#include "AppendGameDialog.hpp"
2022-02-26 12:48:52 +01:00
#include <wx/filename.h>
2022-02-24 11:50:16 +01:00
2022-02-25 09:21:26 +01:00
BaseTab::BaseTab(wxFrame *parent, std::string base_file)
2022-12-23 16:49:33 +01:00
: TabBase(parent), TabInfos(TabInfos::BASE){
2022-12-23 16:49:33 +01:00
// Games tab
games_tab=new BaseGameTab((wxFrame *)notebook,base_file);
notebook->AddPage(games_tab, "Games",true); // true for selecting the tab
// Import tab
import_tab=new BaseImportTab((wxFrame *)notebook);
notebook->AddPage(import_tab, "Import");
2022-12-23 18:23:05 +01:00
// Manage tab
manage_tab=new BaseManageTab((wxFrame *)notebook);
notebook->AddPage(manage_tab, "Manage");
2022-02-26 12:30:07 +01:00
2022-12-23 16:49:33 +01:00
RefreshLabel();
2022-02-24 11:50:16 +01:00
}
void BaseTab::ApplyPreferences() {}
2022-12-23 16:49:33 +01:00
void BaseTab::RefreshLabel(){
SetLabel("Database XX");
}