14DIALOG_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 )
16 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
18 wxBoxSizer* bmainSizer;
19 bmainSizer =
new wxBoxSizer( wxVERTICAL );
21 wxBoxSizer* bsizerTemplateSelector;
22 bsizerTemplateSelector =
new wxBoxSizer( wxHORIZONTAL );
24 m_staticTextTpath =
new wxStaticText(
this, wxID_ANY,
_(
"Folder:"), wxDefaultPosition, wxDefaultSize, 0 );
26 bsizerTemplateSelector->Add(
m_staticTextTpath, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
28 m_tcTemplatePath =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
29 bsizerTemplateSelector->Add(
m_tcTemplatePath, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 2 );
32 bsizerTemplateSelector->Add(
m_browseButton, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
35 bsizerTemplateSelector->Add(
m_reloadButton, 0, wxBOTTOM|wxTOP, 5 );
38 bmainSizer->Add( bsizerTemplateSelector, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
40 m_notebook =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
42 bmainSizer->Add(
m_notebook, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
44 m_htmlWin =
new HTML_WINDOW(
this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxHW_SCROLLBAR_AUTO );
45 m_htmlWin->SetMinSize( wxSize( 700,300 ) );
47 bmainSizer->Add(
m_htmlWin, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
56 bmainSizer->Add(
m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
59 this->SetSizer( bmainSizer );
61 bmainSizer->Fit(
this );
63 this->Centre( wxBOTH );
82TEMPLATE_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 )
84 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
88 m_scrolledWindow =
new wxScrolledWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxALWAYS_SHOW_SB|wxHSCROLL );
90 m_scrolledWindow->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
110TEMPLATE_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 )
112 this->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
113 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
115 wxBoxSizer* bSizerMain;
116 bSizerMain =
new wxBoxSizer( wxVERTICAL );
118 m_bitmapIcon =
new wxStaticBitmap(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 64,64 ), 0 );
119 m_bitmapIcon->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
122 bSizerMain->Add(
m_bitmapIcon, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
124 m_staticTitle =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
126 bSizerMain->Add(
m_staticTitle, 1, wxALIGN_CENTER_HORIZONTAL|wxBOTTOM|wxRIGHT|wxLEFT, 2 );
129 this->SetSizer( bSizerMain );
131 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
wxTextCtrl * m_tcTemplatePath
DIALOG_TEMPLATE_SELECTOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Project Template Selector"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
STD_BITMAP_BUTTON * m_reloadButton
virtual void onReload(wxCommandEvent &event)
wxButton * m_sdbSizerCancel
virtual void onDirectoryBrowseClicked(wxCommandEvent &event)
virtual void OnHtmlLinkActivated(wxHtmlLinkEvent &event)
Add dark theme support to wxHtmlWindow.
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