mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-30 00:47:46 +00:00
Update gui
This commit is contained in:
parent
f7eab5a593
commit
ffeacf5c74
3 changed files with 80 additions and 93 deletions
13
src/gui.cpp
13
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();
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue