mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-19 04:09:41 +00:00
Refactoring game tab
This commit is contained in:
parent
7178f18ab8
commit
bf485fa577
16 changed files with 68 additions and 69 deletions
30
src/game_tab/left_panel/GameTabLeftPanel.hpp
Normal file
30
src/game_tab/left_panel/GameTabLeftPanel.hpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include "../Game.hpp"
|
||||
#include "board/BoardCanvas.hpp"
|
||||
#include "ochess.hpp"
|
||||
|
||||
// Foreign events
|
||||
wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent);
|
||||
|
||||
enum { COPY_FEN_BTN = wxID_HIGHEST + 1, ZOOM_IN_BTN, ZOOM_OUT_BTN, SWAP_BTN };
|
||||
|
||||
class GameTabLeftPanel : public wxPanel {
|
||||
Game *game;
|
||||
BoardCanvas *board_canvas;
|
||||
void NotifyEditor();
|
||||
|
||||
public:
|
||||
GameTabLeftPanel(wxFrame *parent, Game *game);
|
||||
void Notify();
|
||||
void OnPlay(wxCommandEvent &event);
|
||||
void OnGotoMove(wxCommandEvent &event);
|
||||
void OnPreviousMove(wxCommandEvent &event);
|
||||
void OnNextMove(wxCommandEvent &event);
|
||||
void OnCopyFEN(wxCommandEvent &event);
|
||||
void OnZoomIn(wxCommandEvent &event);
|
||||
void OnZoomOut(wxCommandEvent &event);
|
||||
void OnSwap(wxCommandEvent &event);
|
||||
void OnRefreshBoard(wxCommandEvent &event);
|
||||
void ApplyPreferences();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue