KiCad PCB EDA Suite
dialog_lib_new_symbol_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version 3.9.0 Jun 3 2020)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 BEGIN_EVENT_TABLE( DIALOG_LIB_NEW_SYMBOL_BASE, DIALOG_SHIM )
15 END_EVENT_TABLE()
16 
17 DIALOG_LIB_NEW_SYMBOL_BASE::DIALOG_LIB_NEW_SYMBOL_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
18 {
19  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
20 
21  wxBoxSizer* bSizerMain;
22  bSizerMain = new wxBoxSizer( wxVERTICAL );
23 
24  wxBoxSizer* bSizerTop;
25  bSizerTop = new wxBoxSizer( wxVERTICAL );
26 
27  wxFlexGridSizer* fgSizer31;
28  fgSizer31 = new wxFlexGridSizer( 0, 2, 6, 6 );
29  fgSizer31->AddGrowableCol( 1 );
30  fgSizer31->SetFlexibleDirection( wxBOTH );
31  fgSizer31->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
32 
33  m_staticTextName = new wxStaticText( this, wxID_ANY, _("Symbol name:"), wxDefaultPosition, wxDefaultSize, 0 );
34  m_staticTextName->Wrap( -1 );
35  m_staticTextName->SetToolTip( _("The symbol name in library and also the default\nsymbol value when loaded in the schematic.") );
36 
37  fgSizer31->Add( m_staticTextName, 0, wxALIGN_CENTER_VERTICAL, 5 );
38 
39  m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
40  fgSizer31->Add( m_textName, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
41 
42  m_staticText5 = new wxStaticText( this, wxID_ANY, _("Derive from existing symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
43  m_staticText5->Wrap( -1 );
44  fgSizer31->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL, 5 );
45 
46  m_comboInheritanceSelect = new wxComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN|wxCB_READONLY );
47  m_comboInheritanceSelect->SetToolTip( _("Select symbol in the current library as parent symbol.\n\nThis was previously known as an alias. Do not select\nan existing symbol to create a new root symbol.") );
48 
49  fgSizer31->Add( m_comboInheritanceSelect, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
50 
51  m_staticTextDes = new wxStaticText( this, wxID_ANY, _("Default reference designator:"), wxDefaultPosition, wxDefaultSize, 0 );
52  m_staticTextDes->Wrap( -1 );
53  fgSizer31->Add( m_staticTextDes, 0, wxALIGN_CENTER_VERTICAL, 5 );
54 
55  m_textReference = new wxTextCtrl( this, wxID_ANY, _("U"), wxDefaultPosition, wxDefaultSize, 0 );
56  fgSizer31->Add( m_textReference, 0, wxEXPAND, 5 );
57 
58  m_staticTextUnits = new wxStaticText( this, wxID_ANY, _("Number of units per package:"), wxDefaultPosition, wxDefaultSize, 0 );
59  m_staticTextUnits->Wrap( -1 );
60  fgSizer31->Add( m_staticTextUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
61 
62  m_spinPartCount = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 64, 0 );
63  fgSizer31->Add( m_spinPartCount, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
64 
65 
66  bSizerTop->Add( fgSizer31, 1, wxALL|wxEXPAND, 5 );
67 
68  wxBoxSizer* bSizer17;
69  bSizer17 = new wxBoxSizer( wxVERTICAL );
70 
71  m_checkLockItems = new wxCheckBox( this, wxID_ANY, _("Units are not interchangeable"), wxDefaultPosition, wxDefaultSize, 0 );
72  m_checkLockItems->SetToolTip( _("Check this option to allow symbols with multiple units to have different\nelements. Uncheck this option when all symbol units are identical except\nfor pin numbers.") );
73 
74  bSizer17->Add( m_checkLockItems, 0, wxRIGHT|wxLEFT, 5 );
75 
76  m_checkHasConversion = new wxCheckBox( this, wxID_ANY, _("Create symbol with alternate body style (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 );
77  bSizer17->Add( m_checkHasConversion, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
78 
79  m_checkIsPowerSymbol = new wxCheckBox( this, wxID_ANY, _("Create symbol as power symbol"), wxDefaultPosition, wxDefaultSize, 0 );
80  bSizer17->Add( m_checkIsPowerSymbol, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
81 
82  m_excludeFromBomCheckBox = new wxCheckBox( this, wxID_ANY, _("Exclude from schematic bill of materials"), wxDefaultPosition, wxDefaultSize, 0 );
83  bSizer17->Add( m_excludeFromBomCheckBox, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
84 
85  m_excludeFromBoardCheckBox = new wxCheckBox( this, wxID_ANY, _("Exclude from board"), wxDefaultPosition, wxDefaultSize, 0 );
86  bSizer17->Add( m_excludeFromBoardCheckBox, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
87 
88 
89  bSizerTop->Add( bSizer17, 0, wxBOTTOM|wxEXPAND, 5 );
90 
91 
92  bSizerMain->Add( bSizerTop, 0, wxALL|wxEXPAND, 5 );
93 
94  wxBoxSizer* bSizerBottom;
95  bSizerBottom = new wxBoxSizer( wxVERTICAL );
96 
97  wxFlexGridSizer* fgSizer4;
98  fgSizer4 = new wxFlexGridSizer( 0, 3, 6, 6 );
99  fgSizer4->AddGrowableCol( 1 );
100  fgSizer4->SetFlexibleDirection( wxBOTH );
101  fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
102 
103  m_staticPinTextPositionLabel = new wxStaticText( this, wxID_ANY, _("Pin name position offset:"), wxDefaultPosition, wxDefaultSize, 0 );
104  m_staticPinTextPositionLabel->Wrap( -1 );
105  fgSizer4->Add( m_staticPinTextPositionLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
106 
107  m_textPinTextPosition = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
108  fgSizer4->Add( m_textPinTextPosition, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
109 
110  m_staticPinTextPositionUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
111  m_staticPinTextPositionUnits->Wrap( -1 );
112  fgSizer4->Add( m_staticPinTextPositionUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
113 
114 
115  bSizerBottom->Add( fgSizer4, 0, wxALL|wxEXPAND, 5 );
116 
117  wxBoxSizer* bSizer19;
118  bSizer19 = new wxBoxSizer( wxVERTICAL );
119 
120  m_checkShowPinNumber = new wxCheckBox( this, wxID_ANY, _("Show pin number text"), wxDefaultPosition, wxDefaultSize, 0 );
121  m_checkShowPinNumber->SetValue(true);
122  bSizer19->Add( m_checkShowPinNumber, 0, wxRIGHT|wxLEFT, 5 );
123 
124  m_checkShowPinName = new wxCheckBox( this, wxID_ANY, _("Show pin name text"), wxDefaultPosition, wxDefaultSize, 0 );
125  m_checkShowPinName->SetValue(true);
126  bSizer19->Add( m_checkShowPinName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
127 
128  m_checkShowPinNameInside = new wxCheckBox( this, wxID_ANY, _("Pin name inside"), wxDefaultPosition, wxDefaultSize, 0 );
129  m_checkShowPinNameInside->SetValue(true);
130  bSizer19->Add( m_checkShowPinNameInside, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
131 
132 
133  bSizerBottom->Add( bSizer19, 0, wxEXPAND, 5 );
134 
135 
136  bSizerMain->Add( bSizerBottom, 1, wxALL|wxEXPAND, 5 );
137 
138  m_sdbSizer = new wxStdDialogButtonSizer();
139  m_sdbSizerOK = new wxButton( this, wxID_OK );
140  m_sdbSizer->AddButton( m_sdbSizerOK );
141  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
142  m_sdbSizer->AddButton( m_sdbSizerCancel );
143  m_sdbSizer->Realize();
144 
145  bSizerMain->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
146 
147 
148  this->SetSizer( bSizerMain );
149  this->Layout();
150  bSizerMain->Fit( this );
151 
152  this->Centre( wxBOTH );
153 }
154 
156 {
157 }
void _wxFB_OnParentSymbolSelect(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:82
#define NULL
void _wxFB_onPowerCheckBox(wxCommandEvent &event)
#define _(s)
Class DIALOG_LIB_NEW_SYMBOL_BASE.