Improve db tab

This commit is contained in:
Loic Guegan 2022-12-23 18:23:05 +01:00
parent c49b48df01
commit 3b7cc1c847
7 changed files with 150 additions and 2 deletions

View file

@ -0,0 +1,8 @@
#include "BaseManageTab.hpp"
BaseManageTab::BaseManageTab(wxFrame *parent):
TabBase_TabManage(parent)
{
}

View file

@ -0,0 +1,10 @@
#include "ochess.hpp"
class BaseManageTab : public TabBase_TabManage {
public:
BaseManageTab(wxFrame *parent);
};

View file

@ -8,10 +8,12 @@ BaseTab::BaseTab(wxFrame *parent, std::string base_file)
// 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");
// Manage tab
manage_tab=new BaseManageTab((wxFrame *)notebook);
notebook->AddPage(manage_tab, "Manage");
RefreshLabel();
}

View file

@ -3,12 +3,13 @@
#include "ochess.hpp"
#include "BaseGameTab.hpp"
#include "BaseImportTab.hpp"
#include "BaseManageTab.hpp"
class BaseTab : public TabBase, public TabInfos {
std::shared_ptr<GameBase> base;
BaseGameTab *games_tab;
BaseImportTab *import_tab;
BaseManageTab * manage_tab;
public:
BaseTab(wxFrame *parent, std::string base_file);