KiCad PCB EDA Suite
dialog_netlist_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Sep 8 2016)
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_CREATE_NETLIST, NETLIST_DIALOG_BASE::_wxFB_GenNetlist )
15  EVT_BUTTON( wxID_CANCEL, NETLIST_DIALOG_BASE::_wxFB_OnCancelClick )
16  EVT_BUTTON( ID_ADD_PLUGIN, NETLIST_DIALOG_BASE::_wxFB_OnAddPlugin )
17  EVT_BUTTON( ID_DEL_PLUGIN, NETLIST_DIALOG_BASE::_wxFB_OnDelPlugin )
18 END_EVENT_TABLE()
19 
20 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 )
21 {
22  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
23 
24  wxBoxSizer* bMainSizer;
25  bMainSizer = new wxBoxSizer( wxVERTICAL );
26 
27  wxBoxSizer* bUpperSizer;
28  bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
29 
30  wxBoxSizer* bRightSizer;
31  bRightSizer = new wxBoxSizer( wxVERTICAL );
32 
33  m_NoteBook = new wxNotebook( this, ID_CHANGE_NOTEBOOK_PAGE, wxDefaultPosition, wxDefaultSize, 0 );
34 
35  bRightSizer->Add( m_NoteBook, 1, wxEXPAND | wxALL, 5 );
36 
37 
38  bUpperSizer->Add( bRightSizer, 1, wxEXPAND, 5 );
39 
40  wxBoxSizer* bLeftSizer;
41  bLeftSizer = new wxBoxSizer( wxVERTICAL );
42 
43 
44  bLeftSizer->Add( 0, 0, 0, wxTOP, 15 );
45 
46  m_buttonNetlist = new wxButton( this, ID_CREATE_NETLIST, _("Generate"), wxDefaultPosition, wxDefaultSize, 0 );
47  bLeftSizer->Add( m_buttonNetlist, 0, wxALL|wxEXPAND, 5 );
48 
49  m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
50  bLeftSizer->Add( m_buttonCancel, 0, wxALL|wxEXPAND, 5 );
51 
52  m_buttonAddPlugin = new wxButton( this, ID_ADD_PLUGIN, _("Add Plugin"), wxDefaultPosition, wxDefaultSize, 0 );
53  bLeftSizer->Add( m_buttonAddPlugin, 0, wxALL|wxEXPAND, 5 );
54 
55  m_buttonDelPlugin = new wxButton( this, ID_DEL_PLUGIN, _("Remove Plugin"), wxDefaultPosition, wxDefaultSize, 0 );
56  bLeftSizer->Add( m_buttonDelPlugin, 0, wxALL|wxEXPAND, 5 );
57 
58  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
59  bLeftSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
60 
61  m_cbUseDefaultNetlistName = new wxCheckBox( this, wxID_ANY, _("Use default netname"), wxDefaultPosition, wxDefaultSize, 0 );
62  bLeftSizer->Add( m_cbUseDefaultNetlistName, 0, wxALL, 5 );
63 
64 
65  bUpperSizer->Add( bLeftSizer, 0, wxEXPAND, 5 );
66 
67 
68  bMainSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
69 
70  m_staticTextDefaultFN = new wxStaticText( this, wxID_ANY, _("Default Netlist Filename:"), wxDefaultPosition, wxDefaultSize, 0 );
71  m_staticTextDefaultFN->Wrap( -1 );
72  bMainSizer->Add( m_staticTextDefaultFN, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
73 
74  m_textCtrlDefaultFileName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
75  bMainSizer->Add( m_textCtrlDefaultFileName, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
76 
77 
78  this->SetSizer( bMainSizer );
79  this->Layout();
80 
81  this->Centre( wxBOTH );
82 }
83 
85 {
86 }
87 
88 BEGIN_EVENT_TABLE( NETLIST_DIALOG_ADD_PLUGIN_BASE, DIALOG_SHIM )
89  EVT_BUTTON( wxID_OK, NETLIST_DIALOG_ADD_PLUGIN_BASE::_wxFB_OnOKClick )
90  EVT_BUTTON( wxID_CANCEL, NETLIST_DIALOG_ADD_PLUGIN_BASE::_wxFB_OnCancelClick )
91  EVT_BUTTON( wxID_BROWSE_PLUGINS, NETLIST_DIALOG_ADD_PLUGIN_BASE::_wxFB_OnBrowsePlugins )
92 END_EVENT_TABLE()
93 
94 NETLIST_DIALOG_ADD_PLUGIN_BASE::NETLIST_DIALOG_ADD_PLUGIN_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
95 {
96  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
97 
98  wxBoxSizer* bSizerMain;
99  bSizerMain = new wxBoxSizer( wxHORIZONTAL );
100 
101  wxBoxSizer* bSizerLeft;
102  bSizerLeft = new wxBoxSizer( wxVERTICAL );
103 
104  m_staticTextCmd = new wxStaticText( this, wxID_ANY, _("Netlist command:"), wxDefaultPosition, wxDefaultSize, 0 );
105  m_staticTextCmd->Wrap( -1 );
106  bSizerLeft->Add( m_staticTextCmd, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
107 
108  m_textCtrlCommand = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
109  m_textCtrlCommand->SetMinSize( wxSize( 300,-1 ) );
110 
111  bSizerLeft->Add( m_textCtrlCommand, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
112 
113  m_staticTextName = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
114  m_staticTextName->Wrap( -1 );
115  bSizerLeft->Add( m_staticTextName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
116 
117  m_textCtrlName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
118  bSizerLeft->Add( m_textCtrlName, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
119 
120 
121  bSizerMain->Add( bSizerLeft, 1, wxEXPAND, 5 );
122 
123  wxBoxSizer* bSizerRight;
124  bSizerRight = new wxBoxSizer( wxVERTICAL );
125 
126  m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
127  m_buttonOK->SetDefault();
128  bSizerRight->Add( m_buttonOK, 0, wxALL|wxEXPAND, 5 );
129 
130  m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
131  bSizerRight->Add( m_buttonCancel, 0, wxALL|wxEXPAND, 5 );
132 
133  m_buttonPlugin = new wxButton( this, wxID_BROWSE_PLUGINS, _("Browse Plugins"), wxDefaultPosition, wxDefaultSize, 0 );
134  bSizerRight->Add( m_buttonPlugin, 0, wxALL|wxEXPAND, 5 );
135 
136 
137  bSizerMain->Add( bSizerRight, 0, wxEXPAND, 5 );
138 
139 
140  this->SetSizer( bSizerMain );
141  this->Layout();
142 
143  this->Centre( wxBOTH );
144 }
145 
147 {
148 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
Class NETLIST_DIALOG_BASE.
Class NETLIST_DIALOG_ADD_PLUGIN_BASE.