aboutsummaryrefslogtreecommitdiff
path: root/src/gui.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-29 16:34:14 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-29 16:34:14 +0100
commit5aea044961b18769f3a54693cdeb6a3bf0dfaa63 (patch)
tree27bef942c516c9b17ca5f1fd7d7bdf776d4d1113 /src/gui.cpp
parent834387d7b23d264f44871bcd6a62fe2a68250e1e (diff)
Improve UI
Diffstat (limited to 'src/gui.cpp')
-rw-r--r--src/gui.cpp48
1 files changed, 42 insertions, 6 deletions
diff --git a/src/gui.cpp b/src/gui.cpp
index ed6941e..abad5b2 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -395,14 +395,14 @@ TabGameLeftPanel::TabGameLeftPanel( wxWindow* parent, wxWindowID id, const wxPoi
wxBoxSizer* bar_sizer;
bar_sizer = new wxBoxSizer( wxHORIZONTAL );
- swap_button = new wxBitmapButton( this, SWAP_BTN, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
- bar_sizer->Add( swap_button, 0, wxALL|wxEXPAND, 3 );
-
zoomin_button = new wxBitmapButton( this, ZOOM_IN_BTN, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
- bar_sizer->Add( zoomin_button, 0, wxALL|wxEXPAND, 3 );
+ bar_sizer->Add( zoomin_button, 0, wxALL|wxEXPAND, 5 );
zoomout_button = new wxBitmapButton( this, ZOOM_OUT_BTN, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
- bar_sizer->Add( zoomout_button, 0, wxALL|wxEXPAND, 3 );
+ bar_sizer->Add( zoomout_button, 0, wxALL|wxEXPAND, 5 );
+
+ swap_button = new wxBitmapButton( this, SWAP_BTN, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
+ bar_sizer->Add( swap_button, 0, wxALL|wxEXPAND, 5 );
fen_text_field = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), wxTE_READONLY );
bar_sizer->Add( fen_text_field, 1, wxALL|wxEXPAND, 0 );
@@ -431,7 +431,7 @@ TabGameRightPanel::TabGameRightPanel( wxWindow* parent, wxWindowID id, const wxP
editor_canvas_sizer = new wxBoxSizer( wxVERTICAL );
- editor_page_sizer->Add( editor_canvas_sizer, 1, wxEXPAND, 5 );
+ editor_page_sizer->Add( editor_canvas_sizer, 100, wxEXPAND, 5 );
m_staticline1 = new wxStaticLine( editor_page, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
editor_page_sizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
@@ -443,6 +443,42 @@ TabGameRightPanel::TabGameRightPanel( wxWindow* parent, wxWindowID id, const wxP
comment_input = new wxTextCtrl( editor_page, COMMENT_INPUT_BOX, wxEmptyString, wxDefaultPosition, wxSize( -1,200 ), wxTE_MULTILINE );
editor_page_sizer->Add( comment_input, 0, wxALL|wxEXPAND, 5 );
+ wxGridSizer* nag_sizer;
+ nag_sizer = new wxGridSizer( 2, 8, 0, 0 );
+
+ nag_1 = new wxButton( editor_page, wxID_ANY, wxT("!"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
+ nag_sizer->Add( nag_1, 0, wxALL|wxEXPAND, 5 );
+
+ nag_2 = new wxButton( editor_page, wxID_ANY, wxT("?"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
+ nag_sizer->Add( nag_2, 0, wxALL|wxEXPAND, 5 );
+
+ nag_3 = new wxButton( editor_page, wxID_ANY, wxT("!!"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
+ nag_sizer->Add( nag_3, 0, wxALL|wxEXPAND, 5 );
+
+ nag_4 = new wxButton( editor_page, wxID_ANY, wxT("??"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
+ nag_sizer->Add( nag_4, 0, wxALL|wxEXPAND, 5 );
+
+ nag_5 = new wxButton( editor_page, wxID_ANY, wxT("!?"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
+ nag_sizer->Add( nag_5, 0, wxALL|wxEXPAND, 5 );
+
+ nag_6 = new wxButton( editor_page, wxID_ANY, wxT("?!"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
+ nag_sizer->Add( nag_6, 0, wxALL|wxEXPAND, 5 );
+
+ nag_10 = new wxButton( editor_page, wxID_ANY, wxT("="), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
+ nag_sizer->Add( nag_10, 0, wxALL|wxEXPAND, 5 );
+
+ nag_18 = new wxButton( editor_page, wxID_ANY, wxT("+-"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
+ nag_sizer->Add( nag_18, 0, wxALL|wxEXPAND, 5 );
+
+ nag_19 = new wxButton( editor_page, wxID_ANY, wxT("-+"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
+ nag_sizer->Add( nag_19, 0, wxALL|wxEXPAND, 5 );
+
+ nag_del = new wxButton( editor_page, wxID_ANY, wxT("DEL"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
+ nag_sizer->Add( nag_del, 0, wxALL|wxEXPAND, 5 );
+
+
+ editor_page_sizer->Add( nag_sizer, 1, wxEXPAND, 5 );
+
editor_page->SetSizer( editor_page_sizer );
editor_page->Layout();