KiCad PCB EDA Suite
eeschema/dialogs/dialog_netlist_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Dec 30 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
8 #include "dialog_netlist_base.h"
9 
11 
12 BEGIN_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 )
16 END_EVENT_TABLE()
17 
18 NETLIST_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 
70  EVT_BUTTON( wxID_BROWSE_PLUGINS, NETLIST_DIALOG_ADD_GENERATOR_BASE::_wxFB_OnBrowseGenerators )
73 END_EVENT_TABLE()
74 
75 NETLIST_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 )
76 {
77  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
78 
79  wxBoxSizer* bSizerMain;
80  bSizerMain = new wxBoxSizer( wxVERTICAL );
81 
82  wxBoxSizer* bSizerTop;
83  bSizerTop = new wxBoxSizer( wxVERTICAL );
84 
85  m_staticTextName = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
86  m_staticTextName->Wrap( -1 );
87  bSizerTop->Add( m_staticTextName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
88 
89  m_textCtrlName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
90  bSizerTop->Add( m_textCtrlName, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
91 
92  m_staticTextCmd = new wxStaticText( this, wxID_ANY, _("Command line to run the generator:"), wxDefaultPosition, wxDefaultSize, 0 );
93  m_staticTextCmd->Wrap( -1 );
94  bSizerTop->Add( m_staticTextCmd, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
95 
96  m_textCtrlCommand = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
97  m_textCtrlCommand->SetMinSize( wxSize( 500,-1 ) );
98 
99  bSizerTop->Add( m_textCtrlCommand, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
100 
101 
102  bSizerMain->Add( bSizerTop, 1, wxEXPAND|wxALL, 5 );
103 
104  wxBoxSizer* bSizerBottom;
105  bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
106 
107  m_buttonGenerator = new wxButton( this, wxID_BROWSE_PLUGINS, _("Browse Generators..."), wxDefaultPosition, wxDefaultSize, 0 );
108  bSizerBottom->Add( m_buttonGenerator, 0, wxALL|wxEXPAND, 5 );
109 
110  m_sdbSizer = new wxStdDialogButtonSizer();
111  m_sdbSizerOK = new wxButton( this, wxID_OK );
112  m_sdbSizer->AddButton( m_sdbSizerOK );
113  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
114  m_sdbSizer->AddButton( m_sdbSizerCancel );
115  m_sdbSizer->Realize();
116 
117  bSizerBottom->Add( m_sdbSizer, 1, wxEXPAND, 5 );
118 
119 
120  bSizerMain->Add( bSizerBottom, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
121 
122 
123  this->SetSizer( bSizerMain );
124  this->Layout();
125  bSizerMain->Fit( this );
126 
127  this->Centre( wxBOTH );
128 }
129 
131 {
132 }
void _wxFB_OnAddGenerator(wxCommandEvent &event)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:83
Class NETLIST_DIALOG_ADD_GENERATOR_BASE.
void _wxFB_OnNetlistTypeSelection(wxNotebookEvent &event)
#define _(s)
void _wxFB_OnDelGenerator(wxCommandEvent &event)