mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-06-14 01:47:40 +00:00
Update database
This commit is contained in:
parent
4ffba108e3
commit
11a46aadf7
3 changed files with 324 additions and 159 deletions
42
src/gui.cpp
42
src/gui.cpp
|
@ -574,37 +574,51 @@ TabBase_TabImport::TabBase_TabImport( wxWindow* parent, wxWindowID id, const wxP
|
|||
wxBoxSizer* main_sizer;
|
||||
main_sizer = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
from_game_label = new wxStaticText( this, wxID_ANY, wxT("From opened games"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
from_game_label->Wrap( -1 );
|
||||
main_sizer->Add( from_game_label, 0, wxALL, 5 );
|
||||
|
||||
wxBoxSizer* top_sizer;
|
||||
top_sizer = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
from_game_label = new wxStaticText( this, wxID_ANY, wxT("From opened games:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
from_game_label->Wrap( -1 );
|
||||
top_sizer->Add( from_game_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
|
||||
opened_game_list = new wxComboBox( this, wxID_ANY, wxT("No game opened"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
|
||||
top_sizer->Add( opened_game_list, 100, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
|
||||
import_from_game_button = new wxButton( this, wxID_ANY, wxT("Import"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
top_sizer->Add( import_from_game_button, 0, wxALL, 5 );
|
||||
import_from_game_button = new wxButton( this, wxID_ANY, wxT("Import Game"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
top_sizer->Add( import_from_game_button, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
|
||||
|
||||
main_sizer->Add( top_sizer, 1, wxEXPAND, 5 );
|
||||
main_sizer->Add( top_sizer, 1, wxALIGN_TOP|wxEXPAND, 5 );
|
||||
|
||||
m_staticline4 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||
main_sizer->Add( m_staticline4, 0, wxEXPAND | wxALL, 5 );
|
||||
|
||||
wxBoxSizer* bottom_sizer;
|
||||
bottom_sizer = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
from_db_label = new wxStaticText( this, wxID_ANY, wxT("From opened databases:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
from_db_label = new wxStaticText( this, wxID_ANY, wxT("From opened databases"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
from_db_label->Wrap( -1 );
|
||||
bottom_sizer->Add( from_db_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
main_sizer->Add( from_db_label, 0, wxALL, 5 );
|
||||
|
||||
wxBoxSizer* bottom_sizer;
|
||||
bottom_sizer = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
wxBoxSizer* bSizer33;
|
||||
bSizer33 = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
opened_db_list = new wxComboBox( this, wxID_ANY, wxT("No database opened"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
|
||||
bSizer33->Add( opened_db_list, 100, wxALL|wxEXPAND, 5 );
|
||||
|
||||
import_from_db_button = new wxButton( this, wxID_ANY, wxT("Import Selected Games"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizer33->Add( import_from_db_button, 0, wxALL, 5 );
|
||||
|
||||
|
||||
main_sizer->Add( bottom_sizer, 1, wxEXPAND, 5 );
|
||||
bottom_sizer->Add( bSizer33, 1, wxEXPAND, 5 );
|
||||
|
||||
game_list = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_ICON );
|
||||
main_sizer->Add( game_list, 20, wxALL|wxEXPAND, 5 );
|
||||
game_list->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_INACTIVECAPTIONTEXT ) );
|
||||
|
||||
bottom_sizer->Add( game_list, 20, wxALL|wxEXPAND, 5 );
|
||||
|
||||
|
||||
main_sizer->Add( bottom_sizer, 100, wxEXPAND, 5 );
|
||||
|
||||
|
||||
this->SetSizer( main_sizer );
|
||||
|
|
|
@ -337,6 +337,8 @@ class TabBase_TabImport : public wxPanel
|
|||
wxButton* import_from_game_button;
|
||||
wxStaticLine* m_staticline4;
|
||||
wxStaticText* from_db_label;
|
||||
wxComboBox* opened_db_list;
|
||||
wxButton* import_from_db_button;
|
||||
wxListCtrl* game_list;
|
||||
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue