mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-06-14 01:47:40 +00:00
Improve game list
This commit is contained in:
parent
ffeacf5c74
commit
8cc460fd20
4 changed files with 229 additions and 0 deletions
|
@ -18,6 +18,7 @@ BaseGameTab::BaseGameTab(wxFrame *parent, std::string base_file, TabInfos *main_
|
|||
this->Bind(wxEVT_BUTTON, &BaseGameTab::OnImport, this, ID_IMPORT_BUTTON);
|
||||
|
||||
current_base->SetLabel(base_file);
|
||||
search_terms->SetHint("e.g: Paul Morphy");
|
||||
LoadFile();
|
||||
}
|
||||
|
||||
|
|
16
src/gui.cpp
16
src/gui.cpp
|
@ -542,6 +542,22 @@ 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 );
|
||||
|
||||
wxBoxSizer* bSizer34;
|
||||
bSizer34 = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
m_staticText28 = new wxStaticText( this, wxID_ANY, wxT("Filter:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_staticText28->Wrap( -1 );
|
||||
bSizer34->Add( m_staticText28, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
|
||||
search_terms = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizer34->Add( search_terms, 1, wxALL|wxEXPAND, 5 );
|
||||
|
||||
apply_filter_button = new wxButton( this, wxID_ANY, wxT("Apply"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizer34->Add( apply_filter_button, 0, wxALL, 5 );
|
||||
|
||||
|
||||
main_sizer->Add( bSizer34, 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 );
|
||||
|
||||
|
|
|
@ -312,6 +312,9 @@ class TabBase_TabGames : public wxPanel
|
|||
wxButton* save_button;
|
||||
wxButton* export_button;
|
||||
wxStaticLine* separator_1;
|
||||
wxStaticText* m_staticText28;
|
||||
wxTextCtrl* search_terms;
|
||||
wxButton* apply_filter_button;
|
||||
wxListCtrl* game_list;
|
||||
wxButton* import_button;
|
||||
wxButton* delete_button;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue