ochess/src/base_tab/BaseTab.hpp

20 lines
510 B
C++
Raw Normal View History

2022-02-24 10:18:02 +01:00
#include "BasePanelBF.h"
2022-02-24 11:50:16 +01:00
#include "gamebase/GameBase.hpp"
#include "gamebase/PGNGameBase.hpp"
2022-02-24 15:22:56 +01:00
#include "ochess.hpp"
2022-02-24 10:18:02 +01:00
// Foreign events
wxDECLARE_EVENT(NEW_GAME_EVENT, wxCommandEvent);
2022-02-25 09:21:26 +01:00
wxDECLARE_EVENT(REFRESH_TAB_TITLE, wxCommandEvent);
2022-02-24 10:18:02 +01:00
class BaseTab : public BasePanelBF, public TabInfos {
2022-02-24 11:50:16 +01:00
GameBase *base;
2022-02-24 15:22:56 +01:00
2022-02-24 10:18:02 +01:00
public:
2022-02-25 09:21:26 +01:00
BaseTab(wxFrame *parent, std::string base_file);
2022-02-24 11:50:16 +01:00
void ApplyPreferences();
void LoadFile(std::string path);
2022-02-24 15:22:56 +01:00
void OnBim(wxCommandEvent &event);
void OnOpenGame(wxListEvent &event);
2022-02-24 10:18:02 +01:00
};