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