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_panelTemplates =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
49 wxBoxSizer* bSizerTemplates;
50 bSizerTemplates =
new wxBoxSizer( wxVERTICAL );
57 bSizerTemplates->Add(
m_searchCtrl, 0, wxEXPAND|wxALL, 5 );
59 wxString m_filterChoiceChoices[] = {
_(
"All Templates"),
_(
"User Templates"),
_(
"System Templates") };
60 int m_filterChoiceNChoices =
sizeof( m_filterChoiceChoices ) /
sizeof( wxString );
81 m_panelPreview =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
84 wxBoxSizer* bSizerPreview;
85 bSizerPreview =
new wxBoxSizer( wxVERTICAL );
97 bmainSizer->Add( m_mainContent, 1, wxEXPAND, 5 );
101 m_btnBack =
new wxButton(
this, wxID_ANY,
_(
"Back"), wxDefaultPosition, wxDefaultSize, 0 );
122 this->SetSizer( bmainSizer );
125 this->Centre( wxBOTH );
174TEMPLATE_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 )
176 this->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
177 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
179 wxBoxSizer* bSizerMain;
180 bSizerMain =
new wxBoxSizer( wxHORIZONTAL );
182 m_bitmapIcon =
new wxStaticBitmap(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), 0 );
183 m_bitmapIcon->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
185 bSizerMain->Add(
m_bitmapIcon, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
187 wxBoxSizer* bSizerText;
188 bSizerText =
new wxBoxSizer( wxVERTICAL );
190 m_staticTitle =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
194 m_staticDescription =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
199 bSizerMain->Add( bSizerText, 1, wxEXPAND|wxALL, 5 );
202 this->SetSizer( bSizerMain );
204 bSizerMain->Fit(
this );