3#include "../../HalfMove.hpp"
6#include "../../left_panel/board/Theme.hpp"
7#include "game_tab/Game.hpp"
10wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent);
18 wxPoint
Middle(cgeditor::Element e);
22 std::shared_ptr<Game> game;
24 wxColour color_scrollbar_bg;
25 wxColour color_scrollbar;
26 wxColour color_margin;
27 wxColour color_comments_bg;
28 wxColour color_current_move_bg;
29 wxColour color_menu_item_bg;
32 EditorCanvas(wxFrame *parent, std::shared_ptr<Game> game);
33 void OnPaint(wxPaintEvent &event);
34 void MouseEvent(wxMouseEvent &event);
35 void DrawElement(
const cgeditor::Element &e);
36 void HandleEvent(
const cgeditor::Event &e);
38 void ApplyPreferences();
Contains the moves editor for the currently opened game.
Definition: EditorCanvas.hpp:16
wxPoint Middle(cgeditor::Element e)
Convenient fonction to center text.
Definition: EditorCanvas.cpp:48
This class extends CGEHalfMove (to be displayed in the game editor)
Definition: HalfMove.hpp:13
The in memory board theme (used by BoardCanvas)
Definition: Theme.hpp:19