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.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
14DIALOG_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 )
15{
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17
18 wxBoxSizer* bMainSizer;
19 bMainSizer = new wxBoxSizer( wxVERTICAL );
20
21 wxBoxSizer* bUpperSizer;
22 bUpperSizer = new wxBoxSizer( wxVERTICAL );
23
24 wxBoxSizer* bSizer8;
25 bSizer8 = new wxBoxSizer( wxHORIZONTAL );
26
27 m_staticTextOutputPath = new wxStaticText( this, wxID_ANY, _("Output path:"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_staticTextOutputPath->Wrap( -1 );
29 bSizer8->Add( m_staticTextOutputPath, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
30
31 m_outputPath = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
32 m_outputPath->SetMinSize( wxSize( 450,-1 ) );
33
34 bSizer8->Add( m_outputPath, 1, wxALL, 5 );
35
36
37 bUpperSizer->Add( bSizer8, 1, wxEXPAND, 5 );
38
39 m_NoteBook = new wxNotebook( this, ID_CHANGE_NOTEBOOK_PAGE, wxDefaultPosition, wxDefaultSize, 0 );
40 m_NoteBook->SetMinSize( wxSize( 540,-1 ) );
41
42
43 bUpperSizer->Add( m_NoteBook, 0, wxEXPAND|wxALL, 5 );
44
45 wxBoxSizer* bSizerMsgPanel;
46 bSizerMsgPanel = new wxBoxSizer( wxVERTICAL );
47
48 m_MessagesBox = new WX_HTML_REPORT_PANEL( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
49 bSizerMsgPanel->Add( m_MessagesBox, 1, wxEXPAND|wxTOP, 5 );
50
51
52 bUpperSizer->Add( bSizerMsgPanel, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
53
54
55 bMainSizer->Add( bUpperSizer, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
56
57 m_buttonSizer = new wxBoxSizer( wxHORIZONTAL );
58
59 m_buttonAddGenerator = new wxButton( this, ID_ADD_PLUGIN, _("Add Exporter..."), wxDefaultPosition, wxDefaultSize, 0 );
60 m_buttonSizer->Add( m_buttonAddGenerator, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
61
62 m_buttonDelGenerator = new wxButton( this, ID_DEL_PLUGIN, _("Remove Exporter"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_buttonSizer->Add( m_buttonDelGenerator, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
64
65 m_sdbSizer2 = new wxStdDialogButtonSizer();
66 m_sdbSizer2OK = new wxButton( this, wxID_OK );
67 m_sdbSizer2->AddButton( m_sdbSizer2OK );
68 m_sdbSizer2Cancel = new wxButton( this, wxID_CANCEL );
69 m_sdbSizer2->AddButton( m_sdbSizer2Cancel );
70 m_sdbSizer2->Realize();
71
72 m_buttonSizer->Add( m_sdbSizer2, 1, wxEXPAND, 5 );
73
74
75 bMainSizer->Add( m_buttonSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
76
77
78 this->SetSizer( bMainSizer );
79 this->Layout();
80 bMainSizer->Fit( this );
81
82 this->Centre( wxBOTH );
83
84 // Connect Events
85 m_NoteBook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_EXPORT_NETLIST_BASE::OnNetlistTypeSelection ), NULL, this );
86 m_buttonAddGenerator->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_NETLIST_BASE::OnAddGenerator ), NULL, this );
87 m_buttonDelGenerator->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_NETLIST_BASE::OnDelGenerator ), NULL, this );
88}
89
91{
92 // Disconnect Events
93 m_NoteBook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_EXPORT_NETLIST_BASE::OnNetlistTypeSelection ), NULL, this );
94 m_buttonAddGenerator->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_NETLIST_BASE::OnAddGenerator ), NULL, this );
95 m_buttonDelGenerator->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_NETLIST_BASE::OnDelGenerator ), NULL, this );
96
97}
98
99NETLIST_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 )
100{
101 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
102
103 wxBoxSizer* bSizerMain;
104 bSizerMain = new wxBoxSizer( wxVERTICAL );
105
106 wxBoxSizer* bSizerTop;
107 bSizerTop = new wxBoxSizer( wxVERTICAL );
108
109 m_staticTextName = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
110 m_staticTextName->Wrap( -1 );
111 bSizerTop->Add( m_staticTextName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
112
113 m_textCtrlName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
114 bSizerTop->Add( m_textCtrlName, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
115
116 m_staticTextCmd = new wxStaticText( this, wxID_ANY, _("Command line to run the exporter:"), wxDefaultPosition, wxDefaultSize, 0 );
117 m_staticTextCmd->Wrap( -1 );
118 bSizerTop->Add( m_staticTextCmd, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
119
120 m_textCtrlCommand = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
121 m_textCtrlCommand->SetMinSize( wxSize( 500,-1 ) );
122
123 bSizerTop->Add( m_textCtrlCommand, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
124
125
126 bSizerMain->Add( bSizerTop, 1, wxEXPAND|wxALL, 5 );
127
128 wxBoxSizer* bSizerBottom;
129 bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
130
131 m_buttonGenerator = new wxButton( this, wxID_BROWSE_PLUGINS, _("Browse Scripts..."), wxDefaultPosition, wxDefaultSize, 0 );
132 bSizerBottom->Add( m_buttonGenerator, 0, wxALL|wxEXPAND, 5 );
133
134 m_sdbSizer = new wxStdDialogButtonSizer();
135 m_sdbSizerOK = new wxButton( this, wxID_OK );
136 m_sdbSizer->AddButton( m_sdbSizerOK );
137 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
138 m_sdbSizer->AddButton( m_sdbSizerCancel );
139 m_sdbSizer->Realize();
140
141 bSizerBottom->Add( m_sdbSizer, 1, wxEXPAND, 5 );
142
143
144 bSizerMain->Add( bSizerBottom, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
145
146
147 this->SetSizer( bSizerMain );
148 this->Layout();
149 bSizerMain->Fit( this );
150
151 this->Centre( wxBOTH );
152
153 // Connect Events
154 m_buttonGenerator->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( NETLIST_DIALOG_ADD_GENERATOR_BASE::OnBrowseGenerators ), NULL, this );
155}
156
158{
159 // Disconnect Events
160 m_buttonGenerator->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( NETLIST_DIALOG_ADD_GENERATOR_BASE::OnBrowseGenerators ), NULL, this );
161
162}
wxStdDialogButtonSizer * m_sdbSizer2
DIALOG_EXPORT_NETLIST_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export Netlist"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnAddGenerator(wxCommandEvent &event)
virtual void OnDelGenerator(wxCommandEvent &event)
WX_HTML_REPORT_PANEL * m_MessagesBox
virtual void OnNetlistTypeSelection(wxNotebookEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
NETLIST_DIALOG_ADD_GENERATOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Add Script-based Netlist Exporter"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnBrowseGenerators(wxCommandEvent &event)
A widget for browsing a rich text error/status report.
#define ID_DEL_PLUGIN
#define ID_ADD_PLUGIN
#define ID_CHANGE_NOTEBOOK_PAGE
#define wxID_BROWSE_PLUGINS
#define _(s)