From e0a1894928abb8361f959a147066e94e2cda996b Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 26 Feb 2022 12:30:07 +0100 Subject: Improve database game import --- src/base_tab/AppendGameDialogBF.cpp | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/base_tab/AppendGameDialogBF.cpp (limited to 'src/base_tab/AppendGameDialogBF.cpp') diff --git a/src/base_tab/AppendGameDialogBF.cpp b/src/base_tab/AppendGameDialogBF.cpp new file mode 100644 index 0000000..3f777ef --- /dev/null +++ b/src/base_tab/AppendGameDialogBF.cpp @@ -0,0 +1,50 @@ +/////////////////////////////////////////////////////////////////////////// +// C++ code generated with wxFormBuilder (version 3.10.1-40-g8042f487) +// http://www.wxformbuilder.org/ +// +// PLEASE DO *NOT* EDIT THIS FILE! +/////////////////////////////////////////////////////////////////////////// + +#include "AppendGameDialogBF.h" + +/////////////////////////////////////////////////////////////////////////// + +AppendGameDialogBF::AppendGameDialogBF( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) +{ + this->SetSizeHints( wxDefaultSize, wxDefaultSize ); + + wxBoxSizer* main_sizer; + main_sizer = new wxBoxSizer( wxVERTICAL ); + + main_label = new wxStaticText( this, wxID_ANY, wxT("Please select games to import:"), wxDefaultPosition, wxDefaultSize, 0 ); + main_label->Wrap( -1 ); + main_sizer->Add( main_label, 0, wxALL|wxEXPAND, 5 ); + + game_list = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_MULTIPLE ); + main_sizer->Add( game_list, 1, wxALL|wxEXPAND, 5 ); + + wxBoxSizer* bSizer5; + bSizer5 = new wxBoxSizer( wxHORIZONTAL ); + + + bSizer5->Add( 0, 0, 1, wxEXPAND, 5 ); + + cancel_button = new wxButton( this, ID_DIALOG_CANCEL_BUTTON, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 ); + bSizer5->Add( cancel_button, 0, wxALL, 5 ); + + import_button = new wxButton( this, ID_DIALOG_IMPORT_BUTTON, wxT("Import"), wxDefaultPosition, wxDefaultSize, 0 ); + bSizer5->Add( import_button, 0, wxALL, 5 ); + + + main_sizer->Add( bSizer5, 0, wxEXPAND, 5 ); + + + this->SetSizer( main_sizer ); + this->Layout(); + + this->Centre( wxBOTH ); +} + +AppendGameDialogBF::~AppendGameDialogBF() +{ +} -- cgit v1.2.3