KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_template_selector_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
10
12
14
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 )
16{
17 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
18
19 wxBoxSizer* bmainSizer;
20 bmainSizer = new wxBoxSizer( wxVERTICAL );
21
22 wxBoxSizer* bsizerTemplateSelector;
23 bsizerTemplateSelector = new wxBoxSizer( wxHORIZONTAL );
24
25 m_staticTextTpath = new wxStaticText( this, wxID_ANY, _("Folder:"), wxDefaultPosition, wxDefaultSize, 0 );
26 m_staticTextTpath->Wrap( -1 );
27 bsizerTemplateSelector->Add( m_staticTextTpath, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
28
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 );
31
32 m_browseButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
33 bsizerTemplateSelector->Add( m_browseButton, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
34
35 m_reloadButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
36 bsizerTemplateSelector->Add( m_reloadButton, 0, wxBOTTOM|wxTOP, 5 );
37
38
39 bmainSizer->Add( bsizerTemplateSelector, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
40
41 wxBoxSizer* bSizerNotebook;
42 bSizerNotebook = new wxBoxSizer( wxVERTICAL );
43
44 bSizerNotebook->SetMinSize( wxSize( 700,400 ) );
45 m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
46
47 bSizerNotebook->Add( m_notebook, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
48
49 m_webviewPanel = new WEBVIEW_PANEL( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
50 m_webviewPanel->SetMinSize( wxSize( 700,300 ) );
51
52 bSizerNotebook->Add( m_webviewPanel, 1, wxEXPAND | wxALL, 5 );
53
54
55 bmainSizer->Add( bSizerNotebook, 1, wxEXPAND, 5 );
56
57 m_sdbSizer = new wxStdDialogButtonSizer();
58 m_sdbSizerOK = new wxButton( this, wxID_OK );
59 m_sdbSizer->AddButton( m_sdbSizerOK );
60 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
61 m_sdbSizer->AddButton( m_sdbSizerCancel );
62 m_sdbSizer->Realize();
63
64 bmainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
65
66
67 this->SetSizer( bmainSizer );
68 this->Layout();
69
70 this->Centre( wxBOTH );
71
72 // Connect Events
73 m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TEMPLATE_SELECTOR_BASE::onDirectoryBrowseClicked ), NULL, this );
74 m_reloadButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TEMPLATE_SELECTOR_BASE::onReload ), NULL, this );
75 m_notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_TEMPLATE_SELECTOR_BASE::OnPageChange ), NULL, this );
76}
77
79{
80 // Disconnect Events
81 m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TEMPLATE_SELECTOR_BASE::onDirectoryBrowseClicked ), NULL, this );
82 m_reloadButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TEMPLATE_SELECTOR_BASE::onReload ), NULL, this );
83 m_notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_TEMPLATE_SELECTOR_BASE::OnPageChange ), NULL, this );
84
85}
86
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 )
88{
89 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
90
91 m_SizerBase = new wxBoxSizer( wxHORIZONTAL );
92
93 m_scrolledWindow = new wxScrolledWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxALWAYS_SHOW_SB|wxVSCROLL );
94 m_scrolledWindow->SetScrollRate( 0, 25 );
95 m_scrolledWindow->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
96
97 m_SizerChoice = new wxBoxSizer( wxVERTICAL );
98
99
100 m_scrolledWindow->SetSizer( m_SizerChoice );
101 m_scrolledWindow->Layout();
103 m_SizerBase->Add( m_scrolledWindow, 0, wxEXPAND, 10 );
104
105
106 this->SetSizer( m_SizerBase );
107 this->Layout();
108 m_SizerBase->Fit( this );
109}
110
112{
113}
114
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 )
116{
117 this->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
118 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
119
120 wxBoxSizer* bSizerMain;
121 bSizerMain = new wxBoxSizer( wxHORIZONTAL );
122
123 m_bitmapIcon = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 64,64 ), 0 );
124 m_bitmapIcon->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
125 m_bitmapIcon->SetMinSize( wxSize( 64,64 ) );
126
127 bSizerMain->Add( m_bitmapIcon, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
128
129 m_staticTitle = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
130 m_staticTitle->Wrap( 100 );
131 bSizerMain->Add( m_staticTitle, 1, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT|wxRIGHT, 2 );
132
133
134 this->SetSizer( bSizerMain );
135 this->Layout();
136 bSizerMain->Fit( this );
137}
138
140{
141}
const char * name
Definition: DXF_plotter.cpp:62
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:61
virtual void OnPageChange(wxNotebookEvent &event)
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)
virtual void onReload(wxCommandEvent &event)
virtual void onDirectoryBrowseClicked(wxCommandEvent &event)
A bitmap button widget that behaves like a standard dialog button except with an icon.
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_WIDGET_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
#define _(s)