KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_symbol_properties_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#include "widgets/wx_grid.h"
10
12
14
15DIALOG_SYMBOL_PROPERTIES_BASE::DIALOG_SYMBOL_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
16{
17 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18
19 wxBoxSizer* mainSizer;
20 mainSizer = new wxBoxSizer( wxVERTICAL );
21
22 m_notebook1 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
23 generalPage = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
24 wxBoxSizer* generalPageSizer;
25 generalPageSizer = new wxBoxSizer( wxVERTICAL );
26
27 wxStaticBoxSizer* sbFields;
28 sbFields = new wxStaticBoxSizer( new wxStaticBox( generalPage, wxID_ANY, _("Fields") ), wxVERTICAL );
29
30 m_fieldsGrid = new WX_GRID( sbFields->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
31
32 // Grid
33 m_fieldsGrid->CreateGrid( 4, 14 );
34 m_fieldsGrid->EnableEditing( true );
35 m_fieldsGrid->EnableGridLines( true );
36 m_fieldsGrid->EnableDragGridSize( false );
37 m_fieldsGrid->SetMargins( 0, 0 );
38
39 // Columns
40 m_fieldsGrid->SetColSize( 0, 72 );
41 m_fieldsGrid->SetColSize( 1, 120 );
42 m_fieldsGrid->SetColSize( 2, 48 );
43 m_fieldsGrid->SetColSize( 3, 84 );
44 m_fieldsGrid->SetColSize( 4, 70 );
45 m_fieldsGrid->SetColSize( 5, 70 );
46 m_fieldsGrid->SetColSize( 6, 48 );
47 m_fieldsGrid->SetColSize( 7, 48 );
48 m_fieldsGrid->SetColSize( 8, 84 );
49 m_fieldsGrid->SetColSize( 9, 84 );
50 m_fieldsGrid->SetColSize( 10, 84 );
51 m_fieldsGrid->SetColSize( 11, 84 );
52 m_fieldsGrid->SetColSize( 12, 140 );
53 m_fieldsGrid->SetColSize( 13, 48 );
54 m_fieldsGrid->EnableDragColMove( false );
55 m_fieldsGrid->EnableDragColSize( true );
56 m_fieldsGrid->SetColLabelValue( 0, _("Name") );
57 m_fieldsGrid->SetColLabelValue( 1, _("Value") );
58 m_fieldsGrid->SetColLabelValue( 2, _("Show") );
59 m_fieldsGrid->SetColLabelValue( 3, _("Show Name") );
60 m_fieldsGrid->SetColLabelValue( 4, _("H Align") );
61 m_fieldsGrid->SetColLabelValue( 5, _("V Align") );
62 m_fieldsGrid->SetColLabelValue( 6, _("Italic") );
63 m_fieldsGrid->SetColLabelValue( 7, _("Bold") );
64 m_fieldsGrid->SetColLabelValue( 8, _("Text Size") );
65 m_fieldsGrid->SetColLabelValue( 9, _("Orientation") );
66 m_fieldsGrid->SetColLabelValue( 10, _("X Position") );
67 m_fieldsGrid->SetColLabelValue( 11, _("Y Position") );
68 m_fieldsGrid->SetColLabelValue( 12, _("Font") );
69 m_fieldsGrid->SetColLabelValue( 13, _("Color") );
71 m_fieldsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
72
73 // Rows
74 m_fieldsGrid->EnableDragRowSize( true );
75 m_fieldsGrid->SetRowLabelSize( 0 );
76 m_fieldsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
77
78 // Label Appearance
79
80 // Cell Defaults
81 m_fieldsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
82 m_fieldsGrid->SetMinSize( wxSize( -1,180 ) );
83
84 sbFields->Add( m_fieldsGrid, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
85
86 wxBoxSizer* bButtonSize;
87 bButtonSize = new wxBoxSizer( wxHORIZONTAL );
88
89 m_bpAdd = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
90 m_bpAdd->SetToolTip( _("Add field") );
91
92 bButtonSize->Add( m_bpAdd, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
93
94 m_bpMoveUp = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
95 m_bpMoveUp->SetToolTip( _("Move up") );
96
97 bButtonSize->Add( m_bpMoveUp, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
98
99 m_bpMoveDown = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
100 m_bpMoveDown->SetToolTip( _("Move down") );
101
102 bButtonSize->Add( m_bpMoveDown, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
103
104
105 bButtonSize->Add( 20, 0, 0, wxEXPAND, 10 );
106
107 m_bpDelete = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
108 m_bpDelete->SetToolTip( _("Delete field") );
109
110 bButtonSize->Add( m_bpDelete, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
111
112
113 bButtonSize->Add( 0, 0, 1, wxEXPAND, 5 );
114
115
116 sbFields->Add( bButtonSize, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
117
118
119 generalPageSizer->Add( sbFields, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
120
121 wxBoxSizer* bLowerSizer;
122 bLowerSizer = new wxBoxSizer( wxHORIZONTAL );
123
124 wxStaticBoxSizer* sbGeneralProps;
125 sbGeneralProps = new wxStaticBoxSizer( new wxStaticBox( generalPage, wxID_ANY, _("General") ), wxVERTICAL );
126
127 wxGridBagSizer* gbSizer1;
128 gbSizer1 = new wxGridBagSizer( 3, 3 );
129 gbSizer1->SetFlexibleDirection( wxBOTH );
130 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
131 gbSizer1->SetEmptyCellSize( wxSize( -1,12 ) );
132
133 m_unitLabel = new wxStaticText( sbGeneralProps->GetStaticBox(), wxID_ANY, _("Unit:"), wxDefaultPosition, wxDefaultSize, 0 );
134 m_unitLabel->Wrap( -1 );
135 gbSizer1->Add( m_unitLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
136
137 wxArrayString m_unitChoiceChoices;
138 m_unitChoice = new wxChoice( sbGeneralProps->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_unitChoiceChoices, 0 );
139 m_unitChoice->SetSelection( 0 );
140 m_unitChoice->SetMinSize( wxSize( 100,-1 ) );
141
142 gbSizer1->Add( m_unitChoice, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxLEFT|wxRIGHT, 5 );
143
144 m_cbAlternateSymbol = new wxCheckBox( sbGeneralProps->GetStaticBox(), wxID_ANY, _("Alternate symbol (De Morgan)"), wxDefaultPosition, wxDefaultSize, 0 );
145 m_cbAlternateSymbol->SetToolTip( _("Use the alternate shape of this symbol.\nFor gates, this is the \"De Morgan\" conversion") );
146
147 gbSizer1->Add( m_cbAlternateSymbol, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
148
149 m_orientationLabel = new wxStaticText( sbGeneralProps->GetStaticBox(), wxID_ANY, _("Angle:"), wxDefaultPosition, wxDefaultSize, 0 );
150 m_orientationLabel->Wrap( -1 );
151 gbSizer1->Add( m_orientationLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
152
153 wxString m_orientationCtrlChoices[] = { _("0"), _("+90"), _("-90"), _("180") };
154 int m_orientationCtrlNChoices = sizeof( m_orientationCtrlChoices ) / sizeof( wxString );
155 m_orientationCtrl = new wxChoice( sbGeneralProps->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_orientationCtrlNChoices, m_orientationCtrlChoices, 0 );
156 m_orientationCtrl->SetSelection( 0 );
157 gbSizer1->Add( m_orientationCtrl, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxEXPAND, 5 );
158
159 m_mirrorLabel = new wxStaticText( sbGeneralProps->GetStaticBox(), wxID_ANY, _("Mirror:"), wxDefaultPosition, wxDefaultSize, 0 );
160 m_mirrorLabel->Wrap( -1 );
161 gbSizer1->Add( m_mirrorLabel, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
162
163 wxString m_mirrorCtrlChoices[] = { _("Not mirrored"), _("Around X axis"), _("Around Y axis") };
164 int m_mirrorCtrlNChoices = sizeof( m_mirrorCtrlChoices ) / sizeof( wxString );
165 m_mirrorCtrl = new wxChoice( sbGeneralProps->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_mirrorCtrlNChoices, m_mirrorCtrlChoices, 0 );
166 m_mirrorCtrl->SetSelection( 0 );
167 gbSizer1->Add( m_mirrorCtrl, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxLEFT|wxRIGHT, 5 );
168
169
170 gbSizer1->AddGrowableCol( 1 );
171
172 sbGeneralProps->Add( gbSizer1, 1, wxEXPAND, 5 );
173
174 wxBoxSizer* bSizer11;
175 bSizer11 = new wxBoxSizer( wxHORIZONTAL );
176
177 m_ShowPinNumButt = new wxCheckBox( sbGeneralProps->GetStaticBox(), wxID_ANY, _("Show pin numbers"), wxDefaultPosition, wxDefaultSize, 0 );
178 m_ShowPinNumButt->SetValue(true);
179 m_ShowPinNumButt->SetToolTip( _("Show or hide pin numbers") );
180
181 bSizer11->Add( m_ShowPinNumButt, 1, wxALL, 3 );
182
183 m_ShowPinNameButt = new wxCheckBox( sbGeneralProps->GetStaticBox(), wxID_ANY, _("Show pin names"), wxDefaultPosition, wxDefaultSize, 0 );
184 m_ShowPinNameButt->SetValue(true);
185 m_ShowPinNameButt->SetToolTip( _("Show or hide pin names") );
186
187 bSizer11->Add( m_ShowPinNameButt, 1, wxALL, 3 );
188
189
190 sbGeneralProps->Add( bSizer11, 0, wxEXPAND|wxTOP, 13 );
191
192
193 bLowerSizer->Add( sbGeneralProps, 4, wxEXPAND|wxRIGHT|wxLEFT, 5 );
194
195 wxBoxSizer* bMiddleCol;
196 bMiddleCol = new wxBoxSizer( wxVERTICAL );
197
198 wxStaticBoxSizer* sbAttributes;
199 sbAttributes = new wxStaticBoxSizer( new wxStaticBox( generalPage, wxID_ANY, _("Attributes") ), wxVERTICAL );
200
201 m_cbExcludeFromSim = new wxCheckBox( sbAttributes->GetStaticBox(), wxID_ANY, _("Exclude from simulation"), wxDefaultPosition, wxDefaultSize, 0 );
202 sbAttributes->Add( m_cbExcludeFromSim, 0, wxRIGHT|wxLEFT, 5 );
203
204
205 sbAttributes->Add( 0, 10, 0, wxEXPAND, 5 );
206
207 m_cbExcludeFromBom = new wxCheckBox( sbAttributes->GetStaticBox(), wxID_ANY, _("Exclude from bill of materials"), wxDefaultPosition, wxDefaultSize, 0 );
208 m_cbExcludeFromBom->SetToolTip( _("This is useful for adding symbols for board footprints such as fiducials\nand logos that you do not want to appear in the bill of materials export") );
209
210 sbAttributes->Add( m_cbExcludeFromBom, 0, wxALL, 5 );
211
212 m_cbExcludeFromBoard = new wxCheckBox( sbAttributes->GetStaticBox(), wxID_ANY, _("Exclude from board"), wxDefaultPosition, wxDefaultSize, 0 );
213 m_cbExcludeFromBoard->SetToolTip( _("This is useful for adding symbols that only get exported to the bill of materials but\nnot required to layout the board such as mechanical fasteners and enclosures") );
214
215 sbAttributes->Add( m_cbExcludeFromBoard, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
216
217 m_cbDNP = new wxCheckBox( sbAttributes->GetStaticBox(), wxID_ANY, _("Do not populate"), wxDefaultPosition, wxDefaultSize, 0 );
218 sbAttributes->Add( m_cbDNP, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
219
220
221 bMiddleCol->Add( sbAttributes, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
222
223
224 bLowerSizer->Add( bMiddleCol, 3, wxEXPAND|wxRIGHT|wxLEFT, 5 );
225
226 wxBoxSizer* buttonsSizer;
227 buttonsSizer = new wxBoxSizer( wxVERTICAL );
228
229 m_updateSymbolBtn = new wxButton( generalPage, wxID_ANY, _("Update Symbol from Library..."), wxDefaultPosition, wxDefaultSize, 0 );
230 buttonsSizer->Add( m_updateSymbolBtn, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
231
232 m_changeSymbolBtn = new wxButton( generalPage, wxID_ANY, _("Change Symbol..."), wxDefaultPosition, wxDefaultSize, 0 );
233 buttonsSizer->Add( m_changeSymbolBtn, 0, wxEXPAND|wxALL, 5 );
234
235 m_editSchematicSymbolBtn = new wxButton( generalPage, wxID_ANY, _("Edit Symbol..."), wxDefaultPosition, wxDefaultSize, 0 );
236 buttonsSizer->Add( m_editSchematicSymbolBtn, 0, wxEXPAND|wxALL, 5 );
237
238
239 buttonsSizer->Add( 0, 20, 0, wxEXPAND, 5 );
240
241 m_editLibrarySymbolBtn = new wxButton( generalPage, wxID_ANY, _("Edit Library Symbol..."), wxDefaultPosition, wxDefaultSize, 0 );
242 buttonsSizer->Add( m_editLibrarySymbolBtn, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
243
244
245 bLowerSizer->Add( buttonsSizer, 3, wxEXPAND|wxALL, 5 );
246
247
248 generalPageSizer->Add( bLowerSizer, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
249
250
251 generalPage->SetSizer( generalPageSizer );
252 generalPage->Layout();
253 generalPageSizer->Fit( generalPage );
254 m_notebook1->AddPage( generalPage, _("General"), true );
255 m_pinTablePage = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
256 wxBoxSizer* pinTableSizer;
257 pinTableSizer = new wxBoxSizer( wxVERTICAL );
258
259 wxBoxSizer* bMargins;
260 bMargins = new wxBoxSizer( wxVERTICAL );
261
262 m_pinGrid = new WX_GRID( m_pinTablePage, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), 0 );
263
264 // Grid
265 m_pinGrid->CreateGrid( 5, 5 );
266 m_pinGrid->EnableEditing( true );
267 m_pinGrid->EnableGridLines( true );
268 m_pinGrid->EnableDragGridSize( false );
269 m_pinGrid->SetMargins( 0, 0 );
270
271 // Columns
272 m_pinGrid->SetColSize( 0, 160 );
273 m_pinGrid->SetColSize( 1, 160 );
274 m_pinGrid->SetColSize( 2, 160 );
275 m_pinGrid->SetColSize( 3, 140 );
276 m_pinGrid->SetColSize( 4, 140 );
277 m_pinGrid->EnableDragColMove( false );
278 m_pinGrid->EnableDragColSize( true );
279 m_pinGrid->SetColLabelValue( 0, _("Pin Number") );
280 m_pinGrid->SetColLabelValue( 1, _("Base Pin Name") );
281 m_pinGrid->SetColLabelValue( 2, _("Alternate Assignment") );
282 m_pinGrid->SetColLabelValue( 3, _("Electrical Type") );
283 m_pinGrid->SetColLabelValue( 4, _("Graphic Style") );
285 m_pinGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
286
287 // Rows
288 m_pinGrid->EnableDragRowSize( false );
289 m_pinGrid->SetRowLabelSize( 0 );
290 m_pinGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
291
292 // Label Appearance
293
294 // Cell Defaults
295 m_pinGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
296 bMargins->Add( m_pinGrid, 1, wxEXPAND|wxALL|wxFIXED_MINSIZE, 5 );
297
298
299 pinTableSizer->Add( bMargins, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
300
301
302 m_pinTablePage->SetSizer( pinTableSizer );
303 m_pinTablePage->Layout();
304 pinTableSizer->Fit( m_pinTablePage );
305 m_notebook1->AddPage( m_pinTablePage, _("Pin Functions"), false );
306
307 mainSizer->Add( m_notebook1, 1, wxEXPAND|wxALL, 10 );
308
309 wxBoxSizer* bSizerBottom;
310 bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
311
312 wxBoxSizer* bLibLink;
313 bLibLink = new wxBoxSizer( wxHORIZONTAL );
314
315
316 bSizerBottom->Add( bLibLink, 1, wxLEFT|wxEXPAND, 12 );
317
318 m_libraryIDLabel = new wxStaticText( this, wxID_ANY, _("Library link:"), wxDefaultPosition, wxDefaultSize, 0 );
319 m_libraryIDLabel->Wrap( -1 );
320 bSizerBottom->Add( m_libraryIDLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
321
322 m_tcLibraryID = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY|wxBORDER_NONE );
323 bSizerBottom->Add( m_tcLibraryID, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
324
325
326 bSizerBottom->Add( 10, 0, 0, wxALIGN_CENTER_VERTICAL, 5 );
327
328 m_spiceFieldsButton = new wxButton( this, wxID_ANY, _("Simulation Model..."), wxDefaultPosition, wxDefaultSize, 0 );
329 bSizerBottom->Add( m_spiceFieldsButton, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 15 );
330
331 m_stdDialogButtonSizer = new wxStdDialogButtonSizer();
332 m_stdDialogButtonSizerOK = new wxButton( this, wxID_OK );
334 m_stdDialogButtonSizerCancel = new wxButton( this, wxID_CANCEL );
336 m_stdDialogButtonSizer->Realize();
337
338 bSizerBottom->Add( m_stdDialogButtonSizer, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
339
340
341 mainSizer->Add( bSizerBottom, 0, wxEXPAND|wxLEFT, 5 );
342
343
344 this->SetSizer( mainSizer );
345 this->Layout();
346 mainSizer->Fit( this );
347
348 // Connect Events
349 this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnInitDlg ) );
350 this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnUpdateUI ) );
351 m_notebook1->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, wxNotebookEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnPageChanging ), NULL, this );
352 m_fieldsGrid->Connect( wxEVT_GRID_EDITOR_HIDDEN, wxGridEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnGridEditorHidden ), NULL, this );
353 m_fieldsGrid->Connect( wxEVT_GRID_EDITOR_SHOWN, wxGridEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnGridEditorShown ), NULL, this );
354 m_fieldsGrid->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnSizeFieldsGrid ), NULL, this );
355 m_bpAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnAddField ), NULL, this );
356 m_bpMoveUp->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnMoveUp ), NULL, this );
357 m_bpMoveDown->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnMoveDown ), NULL, this );
358 m_bpDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnDeleteField ), NULL, this );
359 m_unitChoice->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnUnitChoice ), NULL, this );
360 m_cbAlternateSymbol->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
361 m_orientationCtrl->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnChoice ), NULL, this );
362 m_mirrorCtrl->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnChoice ), NULL, this );
363 m_ShowPinNumButt->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
364 m_ShowPinNameButt->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
365 m_cbExcludeFromSim->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
366 m_cbExcludeFromBom->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
367 m_cbExcludeFromBoard->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
368 m_updateSymbolBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnUpdateSymbol ), NULL, this );
369 m_changeSymbolBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnExchangeSymbol ), NULL, this );
370 m_editSchematicSymbolBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnEditSymbol ), NULL, this );
371 m_editSchematicSymbolBtn->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::onUpdateEditSymbol ), NULL, this );
372 m_editLibrarySymbolBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnEditLibrarySymbol ), NULL, this );
373 m_editLibrarySymbolBtn->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::onUpdateEditLibrarySymbol ), NULL, this );
374 m_pinGrid->Connect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnPinTableCellEdited ), NULL, this );
375 m_pinGrid->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnSizePinsGrid ), NULL, this );
376 m_spiceFieldsButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnEditSpiceModel ), NULL, this );
377 m_stdDialogButtonSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCancelButtonClick ), NULL, this );
378}
379
381{
382 // Disconnect Events
383 this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnInitDlg ) );
384 this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnUpdateUI ) );
385 m_notebook1->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, wxNotebookEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnPageChanging ), NULL, this );
386 m_fieldsGrid->Disconnect( wxEVT_GRID_EDITOR_HIDDEN, wxGridEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnGridEditorHidden ), NULL, this );
387 m_fieldsGrid->Disconnect( wxEVT_GRID_EDITOR_SHOWN, wxGridEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnGridEditorShown ), NULL, this );
388 m_fieldsGrid->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnSizeFieldsGrid ), NULL, this );
389 m_bpAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnAddField ), NULL, this );
390 m_bpMoveUp->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnMoveUp ), NULL, this );
391 m_bpMoveDown->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnMoveDown ), NULL, this );
392 m_bpDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnDeleteField ), NULL, this );
393 m_unitChoice->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnUnitChoice ), NULL, this );
394 m_cbAlternateSymbol->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
395 m_orientationCtrl->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnChoice ), NULL, this );
396 m_mirrorCtrl->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnChoice ), NULL, this );
397 m_ShowPinNumButt->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
398 m_ShowPinNameButt->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
399 m_cbExcludeFromSim->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
400 m_cbExcludeFromBom->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
401 m_cbExcludeFromBoard->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCheckBox ), NULL, this );
402 m_updateSymbolBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnUpdateSymbol ), NULL, this );
403 m_changeSymbolBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnExchangeSymbol ), NULL, this );
404 m_editSchematicSymbolBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnEditSymbol ), NULL, this );
405 m_editSchematicSymbolBtn->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::onUpdateEditSymbol ), NULL, this );
406 m_editLibrarySymbolBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnEditLibrarySymbol ), NULL, this );
407 m_editLibrarySymbolBtn->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::onUpdateEditLibrarySymbol ), NULL, this );
408 m_pinGrid->Disconnect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnPinTableCellEdited ), NULL, this );
409 m_pinGrid->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnSizePinsGrid ), NULL, this );
410 m_spiceFieldsButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnEditSpiceModel ), NULL, this );
411 m_stdDialogButtonSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_PROPERTIES_BASE::OnCancelButtonClick ), NULL, this );
412
413}
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
virtual void OnChoice(wxCommandEvent &event)
virtual void onUpdateEditSymbol(wxUpdateUIEvent &event)
virtual void OnEditSpiceModel(wxCommandEvent &event)
virtual void OnCheckBox(wxCommandEvent &event)
virtual void OnUpdateUI(wxUpdateUIEvent &event)
wxStdDialogButtonSizer * m_stdDialogButtonSizer
virtual void OnCancelButtonClick(wxCommandEvent &event)
virtual void onUpdateEditLibrarySymbol(wxUpdateUIEvent &event)
virtual void OnEditLibrarySymbol(wxCommandEvent &event)
virtual void OnAddField(wxCommandEvent &event)
virtual void OnPageChanging(wxNotebookEvent &event)
virtual void OnPinTableCellEdited(wxGridEvent &event)
virtual void OnSizePinsGrid(wxSizeEvent &event)
virtual void OnDeleteField(wxCommandEvent &event)
virtual void OnGridEditorHidden(wxGridEvent &event)
virtual void OnUnitChoice(wxCommandEvent &event)
virtual void OnUpdateSymbol(wxCommandEvent &event)
virtual void OnMoveUp(wxCommandEvent &event)
virtual void OnGridEditorShown(wxGridEvent &event)
virtual void OnExchangeSymbol(wxCommandEvent &event)
virtual void OnEditSymbol(wxCommandEvent &event)
DIALOG_SYMBOL_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Symbol Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU)
virtual void OnMoveDown(wxCommandEvent &event)
virtual void OnInitDlg(wxInitDialogEvent &event)
virtual void OnSizeFieldsGrid(wxSizeEvent &event)
A bitmap button widget that behaves like a standard dialog button except with an icon.
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...
Definition: wx_grid.cpp:249
#define _(s)