12DIALOG_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 )
14 this->SetSizeHints( wxSize( 500,400 ), wxDefaultSize );
16 wxBoxSizer* bmainSizer;
17 bmainSizer =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* m_mainContent;
20 m_mainContent =
new wxBoxSizer( wxHORIZONTAL );
22 m_panelMRU =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
25 wxBoxSizer* bSizerMRU;
26 bSizerMRU =
new wxBoxSizer( wxVERTICAL );
46 m_mainContent->Add(
m_panelMRU, 0, wxEXPAND|wxALL, 5 );
48 m_splitter =
new wxSplitterWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_LIVE_UPDATE|wxSP_NOBORDER|wxSP_3DSASH );
54 wxBoxSizer* bSizerTemplates;
55 bSizerTemplates =
new wxBoxSizer( wxVERTICAL );
62 bSizerTemplates->Add(
m_searchCtrl, 0, wxEXPAND|wxALL, 5 );
64 wxString m_filterChoiceChoices[] = {
_(
"All Templates"),
_(
"User Templates"),
_(
"System Templates") };
65 int m_filterChoiceNChoices =
sizeof( m_filterChoiceChoices ) /
sizeof( wxString );
87 wxBoxSizer* bSizerPreview;
88 bSizerPreview =
new wxBoxSizer( wxVERTICAL );
98 m_mainContent->Add(
m_splitter, 1, wxEXPAND|wxALL, 5 );
101 bmainSizer->Add( m_mainContent, 1, wxEXPAND, 5 );
105 m_btnBack =
new wxButton(
this, wxID_ANY,
_(
"Go Back"), wxDefaultPosition, wxDefaultSize, 0 );
126 this->SetSizer( bmainSizer );
129 this->Centre( wxBOTH );
178TEMPLATE_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 )
180 this->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
181 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
183 wxBoxSizer* bSizerMain;
184 bSizerMain =
new wxBoxSizer( wxHORIZONTAL );
186 m_bitmapIcon =
new wxStaticBitmap(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), 0 );
187 m_bitmapIcon->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
189 bSizerMain->Add(
m_bitmapIcon, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
191 wxBoxSizer* bSizerText;
192 bSizerText =
new wxBoxSizer( wxVERTICAL );
194 m_titleLabel =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
198 m_descLabel =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
203 bSizerMain->Add( bSizerText, 1, wxEXPAND|wxALL, 5 );
206 this->SetSizer( bSizerMain );
208 bSizerMain->Fit(
this );