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 helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxStaticText * m_staticTextTpath
virtual void OnPageChange(wxNotebookEvent &event)
STD_BITMAP_BUTTON * m_browseButton
~DIALOG_TEMPLATE_SELECTOR_BASE()
wxStdDialogButtonSizer * m_sdbSizer
DIALOG_TEMPLATE_SELECTOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Project Template Selector"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(513, 523), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxTextCtrl * m_tcTemplatePath
STD_BITMAP_BUTTON * m_reloadButton
virtual void onReload(wxCommandEvent &event)
wxButton * m_sdbSizerCancel
virtual void onDirectoryBrowseClicked(wxCommandEvent &event)
WEBVIEW_PANEL * m_webviewPanel
wxBoxSizer * m_SizerChoice
TEMPLATE_SELECTION_PANEL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL|wxBORDER_NONE, const wxString &name=wxEmptyString)
~TEMPLATE_SELECTION_PANEL_BASE()
wxScrolledWindow * m_scrolledWindow