mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-07-04 19:27:40 +00:00
Update GUI
This commit is contained in:
parent
9b2ebc19a6
commit
416ab7635d
4 changed files with 25 additions and 16 deletions
|
@ -22,13 +22,15 @@ BasePanelBF::BasePanelBF( wxWindow* parent, wxWindowID id, const wxPoint& pos, c
|
|||
top_sizer->Add( current_base_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
|
||||
current_base = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||
current_base->Enable( false );
|
||||
|
||||
top_sizer->Add( current_base, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
|
||||
open_button = new wxButton( this, wxID_ANY, wxT("Open"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
top_sizer->Add( open_button, 0, wxALL, 5 );
|
||||
save_button = new wxButton( this, wxID_ANY, wxT("Save"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
top_sizer->Add( save_button, 0, wxALL, 5 );
|
||||
|
||||
save_as_button = new wxButton( this, wxID_ANY, wxT("Save as"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
top_sizer->Add( save_as_button, 0, wxALL, 5 );
|
||||
export_button = new wxButton( this, wxID_ANY, wxT("Export"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
top_sizer->Add( export_button, 0, wxALL, 5 );
|
||||
|
||||
|
||||
main_sizer->Add( top_sizer, 0, wxEXPAND, 5 );
|
||||
|
@ -39,7 +41,7 @@ BasePanelBF::BasePanelBF( wxWindow* parent, wxWindowID id, const wxPoint& pos, c
|
|||
wxBoxSizer* bottom_sizer;
|
||||
bottom_sizer = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
delete_button = new wxButton( this, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
delete_button = new wxButton( this, wxID_ANY, wxT("Delete selection"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bottom_sizer->Add( delete_button, 0, wxALL, 5 );
|
||||
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@ class BasePanelBF : public wxPanel
|
|||
protected:
|
||||
wxStaticText* current_base_label;
|
||||
wxTextCtrl* current_base;
|
||||
wxButton* open_button;
|
||||
wxButton* save_as_button;
|
||||
wxButton* save_button;
|
||||
wxButton* export_button;
|
||||
wxListCtrl* game_list;
|
||||
wxButton* delete_button;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue