2022-02-23 18:11:55 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../Game.hpp"
|
2022-02-28 13:44:27 +01:00
|
|
|
#include "board/BoardCanvas.hpp"
|
2022-02-23 18:11:55 +01:00
|
|
|
#include "ochess.hpp"
|
|
|
|
|
|
|
|
// Foreign events
|
|
|
|
wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent);
|
|
|
|
|
|
|
|
|
2022-02-28 14:02:02 +01:00
|
|
|
class GameTabLeftPanel : public TabGameLeftPanel {
|
2022-02-23 18:11:55 +01:00
|
|
|
Game *game;
|
|
|
|
BoardCanvas *board_canvas;
|
|
|
|
void NotifyEditor();
|
|
|
|
|
|
|
|
public:
|
2022-02-28 13:44:27 +01:00
|
|
|
GameTabLeftPanel(wxFrame *parent, Game *game);
|
2022-02-23 18:11:55 +01:00
|
|
|
void Notify();
|
|
|
|
void OnPlay(wxCommandEvent &event);
|
|
|
|
void OnGotoMove(wxCommandEvent &event);
|
|
|
|
void OnPreviousMove(wxCommandEvent &event);
|
|
|
|
void OnNextMove(wxCommandEvent &event);
|
|
|
|
void OnZoomIn(wxCommandEvent &event);
|
|
|
|
void OnZoomOut(wxCommandEvent &event);
|
|
|
|
void OnSwap(wxCommandEvent &event);
|
|
|
|
void OnRefreshBoard(wxCommandEvent &event);
|
|
|
|
void ApplyPreferences();
|
|
|
|
};
|