mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-07-15 08:07:40 +00:00
Improve db tab
This commit is contained in:
parent
c49b48df01
commit
3b7cc1c847
7 changed files with 150 additions and 2 deletions
8
src/base_tab/BaseManageTab.cpp
Normal file
8
src/base_tab/BaseManageTab.cpp
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "BaseManageTab.hpp"
|
||||
|
||||
|
||||
BaseManageTab::BaseManageTab(wxFrame *parent):
|
||||
TabBase_TabManage(parent)
|
||||
{
|
||||
|
||||
}
|
10
src/base_tab/BaseManageTab.hpp
Normal file
10
src/base_tab/BaseManageTab.hpp
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include "ochess.hpp"
|
||||
|
||||
|
||||
|
||||
class BaseManageTab : public TabBase_TabManage {
|
||||
|
||||
|
||||
public:
|
||||
BaseManageTab(wxFrame *parent);
|
||||
};
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue