15DIALOG_TEMPLATE_SELECTOR_BASE::DIALOG_TEMPLATE_SELECTOR_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
17 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
19 wxBoxSizer* bmainSizer;
20 bmainSizer =
new wxBoxSizer( wxVERTICAL );
22 wxBoxSizer* bsizerTemplateSelector;
23 bsizerTemplateSelector =
new wxBoxSizer( wxHORIZONTAL );
25 m_staticTextTpath =
new wxStaticText(
this, wxID_ANY,
_(
"Folder:"), wxDefaultPosition, wxDefaultSize, 0 );
27 bsizerTemplateSelector->Add(
m_staticTextTpath, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
29 m_tcTemplatePath =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
30 bsizerTemplateSelector->Add(
m_tcTemplatePath, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 2 );
33 bsizerTemplateSelector->Add(
m_browseButton, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
36 bsizerTemplateSelector->Add(
m_reloadButton, 0, wxBOTTOM|wxTOP, 5 );
39 bmainSizer->Add( bsizerTemplateSelector, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
41 wxBoxSizer* bSizerNotebook;
42 bSizerNotebook =
new wxBoxSizer( wxVERTICAL );
44 bSizerNotebook->SetMinSize( wxSize( 700,400 ) );
45 m_notebook =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
47 bSizerNotebook->Add(
m_notebook, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
55 bmainSizer->Add( bSizerNotebook, 1, wxEXPAND, 5 );
64 bmainSizer->Add(
m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
67 this->SetSizer( bmainSizer );
70 this->Centre( wxBOTH );
87TEMPLATE_SELECTION_PANEL_BASE::TEMPLATE_SELECTION_PANEL_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
89 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
93 m_scrolledWindow =
new wxScrolledWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxALWAYS_SHOW_SB|wxVSCROLL );
95 m_scrolledWindow->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
115TEMPLATE_WIDGET_BASE::TEMPLATE_WIDGET_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
117 this->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
118 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
120 wxBoxSizer* bSizerMain;
121 bSizerMain =
new wxBoxSizer( wxHORIZONTAL );
123 m_bitmapIcon =
new wxStaticBitmap(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 64,64 ), 0 );
124 m_bitmapIcon->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
127 bSizerMain->Add(
m_bitmapIcon, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
129 m_staticTitle =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
131 bSizerMain->Add(
m_staticTitle, 1, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT|wxRIGHT, 2 );
134 this->SetSizer( bSizerMain );
136 bSizerMain->Fit(
this );
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)