OChess v0.0.2
Programmer's Manual
GameTabRightPanel.hpp
1#include <algorithm>
2
3#include "../Game.hpp"
4#include "LiveEngineDialog.hpp"
5#include "editor/EditorCanvas.hpp"
6#include "ochess.hpp"
7#include <wx/listctrl.h>
8#include <wx/notebook.h>
9
10// Foreign events
11wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent);
12wxDECLARE_EVENT(SHOW_ENGINE_EVALUATION, wxCommandEvent);
13wxDECLARE_EVENT(LIVE_ANALYSIS_STATUS, wxCommandEvent);
14
20 std::shared_ptr<Game> game;
21 EditorCanvas *editor_canvas;
22 long selected_item;
23 LiveEngineDialog *live_engine;
24
25public:
26 GameTabRightPanel(wxFrame *parent, std::shared_ptr<Game> game);
27 void Notify();
28 void OnCommentChange(wxCommandEvent &event);
29 void RefreshTagsList();
30 void OnTagSelected(wxListEvent &event);
31 void OnTagDeselected(wxListEvent &event);
32 void OnApply(wxCommandEvent &event);
33 void OnDelete(wxCommandEvent &event);
34 void OnLiveAnalysis(wxCommandEvent &event);
35 void ApplyPreferences();
36 void OnLiveEngineClose(wxCloseEvent &e);
37 std::uint8_t GetNagFromStr(std::string str);
38};
Contains the moves editor for the currently opened game.
Definition: EditorCanvas.hpp:16
Right panel of the GameTab and contains the EditorCanvas and the live engine tab.
Definition: GameTabRightPanel.hpp:19
Dialog to control the current running engine on the game tab.
Definition: LiveEngineDialog.hpp:20
Class TabGameRightPanel.
Definition: gui.h:307