From ffeacf5c74b1c7fc51c850c1b5f5ea5af8f8d84a Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 25 Dec 2022 17:37:49 +0100 Subject: [PATCH] Update gui --- src/gui.cpp | 13 ++-- src/gui.h | 2 +- tools/wxFrameBuilder.fbp | 158 ++++++++++++++++++--------------------- 3 files changed, 80 insertions(+), 93 deletions(-) diff --git a/src/gui.cpp b/src/gui.cpp index 765439f..7172171 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -542,24 +542,21 @@ TabBase_TabGames::TabBase_TabGames( wxWindow* parent, wxWindowID id, const wxPoi separator_1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); main_sizer->Add( separator_1, 0, wxEXPAND | wxALL, 5 ); + game_list = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_REPORT ); + main_sizer->Add( game_list, 1, wxALL|wxEXPAND, 5 ); + wxBoxSizer* bottom_sizer; bottom_sizer = new wxBoxSizer( wxHORIZONTAL ); - - bottom_sizer->Add( 0, 0, 1, wxEXPAND, 5 ); - import_button = new wxButton( this, ID_IMPORT_BUTTON, wxT("Import games"), wxDefaultPosition, wxDefaultSize, 0 ); - bottom_sizer->Add( import_button, 0, wxALL, 5 ); + bottom_sizer->Add( import_button, 1, wxALL|wxEXPAND, 5 ); delete_button = new wxButton( this, ID_DELETE_BUTTON, wxT("Mark as deleted"), wxDefaultPosition, wxDefaultSize, 0 ); - bottom_sizer->Add( delete_button, 0, wxALL, 5 ); + bottom_sizer->Add( delete_button, 1, wxALL|wxEXPAND, 5 ); main_sizer->Add( bottom_sizer, 0, wxEXPAND, 5 ); - game_list = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_REPORT ); - main_sizer->Add( game_list, 1, wxALL|wxEXPAND, 5 ); - this->SetSizer( main_sizer ); this->Layout(); diff --git a/src/gui.h b/src/gui.h index 7df677d..6d5af5b 100644 --- a/src/gui.h +++ b/src/gui.h @@ -312,9 +312,9 @@ class TabBase_TabGames : public wxPanel wxButton* save_button; wxButton* export_button; wxStaticLine* separator_1; + wxListCtrl* game_list; wxButton* import_button; wxButton* delete_button; - wxListCtrl* game_list; public: diff --git a/tools/wxFrameBuilder.fbp b/tools/wxFrameBuilder.fbp index 5d49497..19d7c97 100644 --- a/tools/wxFrameBuilder.fbp +++ b/tools/wxFrameBuilder.fbp @@ -29,7 +29,7 @@ 0 0 0 - + 0 wxAUI_MGR_DEFAULT @@ -122,7 +122,7 @@ - + main_sizer wxVERTICAL @@ -189,7 +189,7 @@ - + 0 wxAUI_MGR_DEFAULT @@ -216,16 +216,16 @@ - + main_sizer wxVERTICAL none - + 5 wxEXPAND 0 - + current_engine_sizer wxHORIZONTAL @@ -5135,7 +5135,7 @@ - + 0 wxAUI_MGR_DEFAULT @@ -5158,7 +5158,7 @@ wxTAB_TRAVERSAL - + main_sizer wxVERTICAL @@ -5440,28 +5440,80 @@ + 5 + wxALL|wxEXPAND + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + game_list + 1 + + + protected + 1 + + Resizable + 1 + -1,-1 + wxLC_REPORT + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + 5 wxEXPAND 0 - + bottom_sizer wxHORIZONTAL none 5 - wxEXPAND + wxALL|wxEXPAND 1 - - 0 - protected - 0 - - - - 5 - wxALL - 0 1 1 @@ -5533,8 +5585,8 @@ 5 - wxALL - 0 + wxALL|wxEXPAND + 1 1 1 @@ -5606,68 +5658,6 @@ - - 5 - wxALL|wxEXPAND - 1 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - - 0 - - - 0 - - 1 - game_list - 1 - - - protected - 1 - - Resizable - 1 - -1,-1 - wxLC_REPORT - ; ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - -