KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_export_netlist_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
14BEGIN_EVENT_TABLE( DIALOG_EXPORT_NETLIST_BASE, DIALOG_SHIM )
15 EVT_NOTEBOOK_PAGE_CHANGED( ID_CHANGE_NOTEBOOK_PAGE, DIALOG_EXPORT_NETLIST_BASE::_wxFB_OnNetlistTypeSelection )
16 EVT_BUTTON( ID_ADD_PLUGIN, DIALOG_EXPORT_NETLIST_BASE::_wxFB_OnAddGenerator )
17 EVT_BUTTON( ID_DEL_PLUGIN, DIALOG_EXPORT_NETLIST_BASE::_wxFB_OnDelGenerator )
18END_EVENT_TABLE()
19
20DIALOG_EXPORT_NETLIST_BASE::DIALOG_EXPORT_NETLIST_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
21{
22 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
23
24 wxBoxSizer* bMainSizer;
25 bMainSizer = new wxBoxSizer( wxVERTICAL );
26
27 wxBoxSizer* bUpperSizer;
28 bUpperSizer = new wxBoxSizer( wxVERTICAL );
29
30 m_NoteBook = new wxNotebook( this, ID_CHANGE_NOTEBOOK_PAGE, wxDefaultPosition, wxDefaultSize, 0 );
31 m_NoteBook->SetMinSize( wxSize( 540,-1 ) );
32
33
34 bUpperSizer->Add( m_NoteBook, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
35
36 wxBoxSizer* bSizerMsgPanel;
37 bSizerMsgPanel = new wxBoxSizer( wxVERTICAL );
38
39 m_MessagesBox = new WX_HTML_REPORT_PANEL( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
40 bSizerMsgPanel->Add( m_MessagesBox, 1, wxEXPAND|wxTOP, 5 );
41
42
43 bUpperSizer->Add( bSizerMsgPanel, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
44
45
46 bMainSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
47
48 m_buttonSizer = new wxBoxSizer( wxHORIZONTAL );
49
50 m_buttonAddGenerator = new wxButton( this, ID_ADD_PLUGIN, _("Add Exporter..."), wxDefaultPosition, wxDefaultSize, 0 );
51 m_buttonSizer->Add( m_buttonAddGenerator, 0, wxALIGN_CENTER_VERTICAL, 5 );
52
53 m_buttonDelGenerator = new wxButton( this, ID_DEL_PLUGIN, _("Remove Exporter"), wxDefaultPosition, wxDefaultSize, 0 );
54 m_buttonSizer->Add( m_buttonDelGenerator, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
55
56 m_sdbSizer2 = new wxStdDialogButtonSizer();
57 m_sdbSizer2OK = new wxButton( this, wxID_OK );
58 m_sdbSizer2->AddButton( m_sdbSizer2OK );
59 m_sdbSizer2Cancel = new wxButton( this, wxID_CANCEL );
60 m_sdbSizer2->AddButton( m_sdbSizer2Cancel );
61 m_sdbSizer2->Realize();
62
63 m_buttonSizer->Add( m_sdbSizer2, 1, wxEXPAND, 5 );
64
65
66 bMainSizer->Add( m_buttonSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
67
68
69 this->SetSizer( bMainSizer );
70 this->Layout();
71 bMainSizer->Fit( this );
72
73 this->Centre( wxBOTH );
74}
75
77{
78}
79
82END_EVENT_TABLE()
83
84NETLIST_DIALOG_ADD_GENERATOR_BASE::NETLIST_DIALOG_ADD_GENERATOR_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
85{
86 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
87
88 wxBoxSizer* bSizerMain;
89 bSizerMain = new wxBoxSizer( wxVERTICAL );
90
91 wxBoxSizer* bSizerTop;
92 bSizerTop = new wxBoxSizer( wxVERTICAL );
93
94 m_staticTextName = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
95 m_staticTextName->Wrap( -1 );
96 bSizerTop->Add( m_staticTextName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
97
98 m_textCtrlName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
99 bSizerTop->Add( m_textCtrlName, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
100
101 m_staticTextCmd = new wxStaticText( this, wxID_ANY, _("Command line to run the exporter:"), wxDefaultPosition, wxDefaultSize, 0 );
102 m_staticTextCmd->Wrap( -1 );
103 bSizerTop->Add( m_staticTextCmd, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
104
105 m_textCtrlCommand = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
106 m_textCtrlCommand->SetMinSize( wxSize( 500,-1 ) );
107
108 bSizerTop->Add( m_textCtrlCommand, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
109
110
111 bSizerMain->Add( bSizerTop, 1, wxEXPAND|wxALL, 5 );
112
113 wxBoxSizer* bSizerBottom;
114 bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
115
116 m_buttonGenerator = new wxButton( this, wxID_BROWSE_PLUGINS, _("Browse Scripts..."), wxDefaultPosition, wxDefaultSize, 0 );
117 bSizerBottom->Add( m_buttonGenerator, 0, wxALL|wxEXPAND, 5 );
118
119 m_sdbSizer = new wxStdDialogButtonSizer();
120 m_sdbSizerOK = new wxButton( this, wxID_OK );
121 m_sdbSizer->AddButton( m_sdbSizerOK );
122 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
123 m_sdbSizer->AddButton( m_sdbSizerCancel );
124 m_sdbSizer->Realize();
125
126 bSizerBottom->Add( m_sdbSizer, 1, wxEXPAND, 5 );
127
128
129 bSizerMain->Add( bSizerBottom, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
130
131
132 this->SetSizer( bSizerMain );
133 this->Layout();
134 bSizerMain->Fit( this );
135
136 this->Centre( wxBOTH );
137}
138
140{
141}
Class DIALOG_EXPORT_NETLIST_BASE.
void _wxFB_OnDelGenerator(wxCommandEvent &event)
void _wxFB_OnAddGenerator(wxCommandEvent &event)
void _wxFB_OnNetlistTypeSelection(wxNotebookEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:84
Class NETLIST_DIALOG_ADD_GENERATOR_BASE.
void _wxFB_OnBrowseGenerators(wxCommandEvent &event)
A widget for browsing a rich text error/status report.
#define _(s)