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|wxLEFT, 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 );
38 bmainSizer->Add( bsizerTemplateSelector, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
40 m_notebook =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
44 bmainSizer->Add(
m_notebook, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
46 m_htmlWin =
new HTML_WINDOW(
this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxHW_SCROLLBAR_AUTO );
47 m_htmlWin->SetMinSize( wxSize( 400,100 ) );
49 bmainSizer->Add(
m_htmlWin, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 12 );
58 bmainSizer->Add(
m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
61 this->SetSizer( bmainSizer );
64 this->Centre( wxBOTH );
83TEMPLATE_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 )
87 m_scrolledWindow =
new wxScrolledWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxALWAYS_SHOW_SB|wxHSCROLL );
106TEMPLATE_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 )
108 this->SetMinSize( wxSize( 108,-1 ) );
109 this->SetMaxSize( wxSize( 108,-1 ) );
111 wxBoxSizer* bSizerMain;
112 bSizerMain =
new wxBoxSizer( wxVERTICAL );
114 m_bitmapIcon =
new wxStaticBitmap(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 64,64 ), 0 );
117 bSizerMain->Add(
m_bitmapIcon, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
119 m_staticTitle =
new wxStaticText(
this, wxID_ANY,
_(
"Project Template Title"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
121 bSizerMain->Add(
m_staticTitle, 1, wxALIGN_CENTER_HORIZONTAL|wxBOTTOM|wxRIGHT|wxLEFT, 2 );
124 this->SetSizer( bSizerMain );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxStaticText * m_staticTextTpath
DIALOG_TEMPLATE_SELECTOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Project Template Selector"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(600, 499), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnPageChange(wxNotebookEvent &event)
STD_BITMAP_BUTTON * m_browseButton
~DIALOG_TEMPLATE_SELECTOR_BASE()
wxStdDialogButtonSizer * m_sdbSizer
wxTextCtrl * m_tcTemplatePath
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()
wxScrolledWindow * m_scrolledWindow
TEMPLATE_SELECTION_PANEL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(258, 140), long style=wxTAB_TRAVERSAL|wxBORDER_NONE, const wxString &name=wxEmptyString)