diff options
Diffstat (limited to 'src/base_tab')
| -rw-r--r-- | src/base_tab/BasePanelBF.cpp | 55 | ||||
| -rw-r--r-- | src/base_tab/BasePanelBF.h | 52 | ||||
| -rw-r--r-- | src/base_tab/BaseTab.cpp | 0 | ||||
| -rw-r--r-- | src/base_tab/BaseTab.hpp | 12 |
4 files changed, 119 insertions, 0 deletions
diff --git a/src/base_tab/BasePanelBF.cpp b/src/base_tab/BasePanelBF.cpp new file mode 100644 index 0000000..4edf8b0 --- /dev/null +++ b/src/base_tab/BasePanelBF.cpp @@ -0,0 +1,55 @@ +/////////////////////////////////////////////////////////////////////////// +// C++ code generated with wxFormBuilder (version 3.10.1-40-g8042f487) +// http://www.wxformbuilder.org/ +// +// PLEASE DO *NOT* EDIT THIS FILE! +/////////////////////////////////////////////////////////////////////////// + +#include "BasePanelBF.h" + +/////////////////////////////////////////////////////////////////////////// + +BasePanelBF::BasePanelBF( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name ) +{ + wxBoxSizer* main_sizer; + main_sizer = new wxBoxSizer( wxVERTICAL ); + + wxBoxSizer* top_sizer; + top_sizer = new wxBoxSizer( wxHORIZONTAL ); + + current_base_label = new wxStaticText( this, wxID_ANY, wxT("Current base:"), wxDefaultPosition, wxDefaultSize, 0 ); + current_base_label->Wrap( -1 ); + top_sizer->Add( current_base_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + + current_base = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + 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_as_button = new wxButton( this, wxID_ANY, wxT("Save as"), wxDefaultPosition, wxDefaultSize, 0 ); + top_sizer->Add( save_as_button, 0, wxALL, 5 ); + + + main_sizer->Add( top_sizer, 0, wxEXPAND, 5 ); + + game_list = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_ICON ); + main_sizer->Add( game_list, 1, wxALL|wxEXPAND, 5 ); + + wxBoxSizer* bottom_sizer; + bottom_sizer = new wxBoxSizer( wxHORIZONTAL ); + + delete_button = new wxButton( this, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 ); + bottom_sizer->Add( delete_button, 0, wxALL, 5 ); + + + main_sizer->Add( bottom_sizer, 0, wxEXPAND, 5 ); + + + this->SetSizer( main_sizer ); + this->Layout(); +} + +BasePanelBF::~BasePanelBF() +{ +} diff --git a/src/base_tab/BasePanelBF.h b/src/base_tab/BasePanelBF.h new file mode 100644 index 0000000..4e0e107 --- /dev/null +++ b/src/base_tab/BasePanelBF.h @@ -0,0 +1,52 @@ +/////////////////////////////////////////////////////////////////////////// +// C++ code generated with wxFormBuilder (version 3.10.1-40-g8042f487) +// http://www.wxformbuilder.org/ +// +// PLEASE DO *NOT* EDIT THIS FILE! +/////////////////////////////////////////////////////////////////////////// + +#pragma once + +#include <wx/artprov.h> +#include <wx/xrc/xmlres.h> +#include <wx/string.h> +#include <wx/stattext.h> +#include <wx/gdicmn.h> +#include <wx/font.h> +#include <wx/colour.h> +#include <wx/settings.h> +#include <wx/textctrl.h> +#include <wx/button.h> +#include <wx/bitmap.h> +#include <wx/image.h> +#include <wx/icon.h> +#include <wx/sizer.h> +#include <wx/listctrl.h> +#include <wx/panel.h> + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////////// +/// Class BasePanelBF +/////////////////////////////////////////////////////////////////////////////// +class BasePanelBF : public wxPanel +{ + private: + + protected: + wxStaticText* current_base_label; + wxTextCtrl* current_base; + wxButton* open_button; + wxButton* save_as_button; + wxListCtrl* game_list; + wxButton* delete_button; + + public: + + BasePanelBF( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 884,624 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); + + ~BasePanelBF(); + +}; + diff --git a/src/base_tab/BaseTab.cpp b/src/base_tab/BaseTab.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/base_tab/BaseTab.cpp diff --git a/src/base_tab/BaseTab.hpp b/src/base_tab/BaseTab.hpp new file mode 100644 index 0000000..56d254c --- /dev/null +++ b/src/base_tab/BaseTab.hpp @@ -0,0 +1,12 @@ + + +#include "BasePanelBF.h" + +class BaseTab : public BasePanelBF, public TabInfos { + +public: + BaseTab(wxFrame *parent) : BasePanelBF(parent),TabInfos(TabInfos::BASE) {} + void ApplyPreferences(){ + + } +};
\ No newline at end of file |
