aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/BaseTab.hpp
blob: cd3aff01e42d7b51a99e1d54fbf9c7736aaf3d26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

#include "BasePanelBF.h"
#include "gamebase/GameBase.hpp"
#include "gamebase/PGNGameBase.hpp"
#include "ochess.hpp"

// Foreign events
wxDECLARE_EVENT(NEW_GAME_EVENT, wxCommandEvent);
wxDECLARE_EVENT(REFRESH_TAB_TITLE, wxCommandEvent);

class BaseTab : public BasePanelBF, public TabInfos {
  GameBase *base;
  std::vector<std::uint32_t> deleted;
  std::vector<Game*> edited;
  std::string base_file;

public:
  BaseTab(wxFrame *parent, std::string base_file);
  void ApplyPreferences();
  void LoadFile();
  void OnDelete(wxCommandEvent &event);
  void OnSave(wxCommandEvent &event);
  void OnOpenGame(wxListEvent &event);
};