Improve database tab

This commit is contained in:
Loic Guegan 2022-12-27 19:41:33 +01:00
parent 32fdf9272e
commit cb6fbd18f3
9 changed files with 76 additions and 15 deletions

View file

@ -1,15 +1,22 @@
#pragma once
#include "ochess.hpp"
#include "GameListManager.hpp"
#include "gamebase/GameBase.hpp"
#include "BaseImportTab.hpp"
#include "BaseGameTab.hpp"
class BaseManageTab : public TabBase_TabManage {
/// @brief Never free the following pointer in that class
/// @brief Never free the following pointers in that class
std::shared_ptr<GameListManager> glm;
std::shared_ptr<GameBase> base;
BaseImportTab *import_tab;
BaseGameTab *games_tab;
public:
BaseManageTab(wxFrame *parent, std::shared_ptr<GameBase> db, std::shared_ptr<GameListManager> glm);
BaseManageTab(wxFrame *parent, std::shared_ptr<GameBase> db,
std::shared_ptr<GameListManager> glm, BaseImportTab *import_tab, BaseGameTab *games_tab);
void RefreshInformations();
void Reset(std::shared_ptr<GameBase> db);
};