aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/BaseManageTab.hpp
blob: e6bfc7117603c208360fefe5bef6655bf067c1d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 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, BaseImportTab *import_tab, BaseGameTab *games_tab);
    void RefreshInformations();
    void Reset(std::shared_ptr<GameBase> db);
};