diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-28 14:02:02 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-28 14:02:02 +0100 |
| commit | 81d7a419624e79ec3fa6c4bcb52fccaa6004065b (patch) | |
| tree | 5ec6cd8fee592e8e9feca9f140a8d722f03f4608 /src/gui.cpp | |
| parent | bf485fa577a76731f9eac97de3b0a647cd492e49 (diff) | |
Improve game tab left panel
Diffstat (limited to 'src/gui.cpp')
| -rw-r--r-- | src/gui.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/gui.cpp b/src/gui.cpp index 6d76c61..9091001 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -421,6 +421,37 @@ TabBase::~TabBase() { } +TabGameLeftPanel::TabGameLeftPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name ) +{ + main_sizer = new wxBoxSizer( wxVERTICAL ); + + wxBoxSizer* bar_sizer; + bar_sizer = new wxBoxSizer( wxHORIZONTAL ); + + swap_button = new wxBitmapButton( this, SWAP_BTN, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 ); + bar_sizer->Add( swap_button, 0, wxALL|wxEXPAND, 5 ); + + zoomin_button = new wxBitmapButton( this, ZOOM_IN_BTN, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 ); + bar_sizer->Add( zoomin_button, 0, wxALL|wxEXPAND, 5 ); + + zoomout_button = new wxBitmapButton( this, ZOOM_OUT_BTN, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 ); + bar_sizer->Add( zoomout_button, 0, wxALL|wxEXPAND, 5 ); + + copy_fen_button = new wxButton( this, COPY_FEN_BTN, wxT("Copy FEN"), wxDefaultPosition, wxDefaultSize, 0 ); + bar_sizer->Add( copy_fen_button, 0, wxALL|wxEXPAND, 5 ); + + + main_sizer->Add( bar_sizer, 0, wxEXPAND, 5 ); + + + this->SetSizer( main_sizer ); + this->Layout(); +} + +TabGameLeftPanel::~TabGameLeftPanel() +{ +} + TabGameRightPanel::TabGameRightPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name ) { wxBoxSizer* main_sizer; |
