KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_lib_new_symbol_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
11
13
14BEGIN_EVENT_TABLE( DIALOG_LIB_NEW_SYMBOL_BASE, DIALOG_SHIM )
17END_EVENT_TABLE()
18
19DIALOG_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 )
20{
21 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
22
23 wxBoxSizer* bSizerMain;
24 bSizerMain = new wxBoxSizer( wxVERTICAL );
25
26 m_infoBar = new WX_INFOBAR( this );
27 m_infoBar->SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
28 m_infoBar->SetEffectDuration( 500 );
29 m_infoBar->Hide();
30
31 bSizerMain->Add( m_infoBar, 0, wxBOTTOM|wxEXPAND, 5 );
32
33 wxBoxSizer* bSizerTop;
34 bSizerTop = new wxBoxSizer( wxVERTICAL );
35
36 wxFlexGridSizer* fgSizer31;
37 fgSizer31 = new wxFlexGridSizer( 0, 2, 6, 6 );
38 fgSizer31->AddGrowableCol( 1 );
39 fgSizer31->SetFlexibleDirection( wxBOTH );
40 fgSizer31->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
41
42 m_staticTextName = new wxStaticText( this, wxID_ANY, _("Symbol name:"), wxDefaultPosition, wxDefaultSize, 0 );
43 m_staticTextName->Wrap( -1 );
44 m_staticTextName->SetToolTip( _("The symbol name in library and also the default\nsymbol value when loaded in the schematic.") );
45
46 fgSizer31->Add( m_staticTextName, 0, wxALIGN_CENTER_VERTICAL, 5 );
47
48 m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
49 fgSizer31->Add( m_textName, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
50
51 m_staticText5 = new wxStaticText( this, wxID_ANY, _("Derive from existing symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_staticText5->Wrap( -1 );
53 fgSizer31->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL, 5 );
54
55 m_comboInheritanceSelect = new wxComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN|wxCB_READONLY );
56 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.") );
57
58 fgSizer31->Add( m_comboInheritanceSelect, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
59
60 m_staticTextDes = new wxStaticText( this, wxID_ANY, _("Default reference designator:"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_staticTextDes->Wrap( -1 );
62 fgSizer31->Add( m_staticTextDes, 0, wxALIGN_CENTER_VERTICAL, 5 );
63
64 m_textReference = new wxTextCtrl( this, wxID_ANY, _("U"), wxDefaultPosition, wxDefaultSize, 0 );
65 fgSizer31->Add( m_textReference, 0, wxEXPAND, 5 );
66
67 m_staticTextUnits = new wxStaticText( this, wxID_ANY, _("Number of units per package:"), wxDefaultPosition, wxDefaultSize, 0 );
68 m_staticTextUnits->Wrap( -1 );
69 fgSizer31->Add( m_staticTextUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
70
71 m_spinPartCount = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 64, 0 );
72 fgSizer31->Add( m_spinPartCount, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
73
74
75 bSizerTop->Add( fgSizer31, 1, wxALL|wxEXPAND, 5 );
76
77 wxBoxSizer* bSizer17;
78 bSizer17 = new wxBoxSizer( wxVERTICAL );
79
80 m_checkUnitsInterchangeable = new wxCheckBox( this, wxID_ANY, _("All units are interchangeable"), wxDefaultPosition, wxDefaultSize, 0 );
81 m_checkUnitsInterchangeable->SetToolTip( _("Check this option when all symbol units are identical except\nfor pin numbers.") );
82
83 bSizer17->Add( m_checkUnitsInterchangeable, 0, wxRIGHT|wxLEFT, 5 );
84
85 m_checkHasAlternateBodyStyle = new wxCheckBox( this, wxID_ANY, _("Create symbol with alternate body style (De Morgan)"), wxDefaultPosition, wxDefaultSize, 0 );
86 bSizer17->Add( m_checkHasAlternateBodyStyle, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
87
88 m_checkIsPowerSymbol = new wxCheckBox( this, wxID_ANY, _("Create symbol as power symbol"), wxDefaultPosition, wxDefaultSize, 0 );
89 bSizer17->Add( m_checkIsPowerSymbol, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
90
91 m_excludeFromBomCheckBox = new wxCheckBox( this, wxID_ANY, _("Exclude from bill of materials"), wxDefaultPosition, wxDefaultSize, 0 );
92 bSizer17->Add( m_excludeFromBomCheckBox, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
93
94 m_excludeFromBoardCheckBox = new wxCheckBox( this, wxID_ANY, _("Exclude from board"), wxDefaultPosition, wxDefaultSize, 0 );
95 bSizer17->Add( m_excludeFromBoardCheckBox, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
96
97
98 bSizerTop->Add( bSizer17, 0, wxBOTTOM|wxEXPAND, 5 );
99
100
101 bSizerMain->Add( bSizerTop, 0, wxALL|wxEXPAND, 5 );
102
103 wxBoxSizer* bSizerBottom;
104 bSizerBottom = new wxBoxSizer( wxVERTICAL );
105
106 wxFlexGridSizer* fgSizer4;
107 fgSizer4 = new wxFlexGridSizer( 0, 3, 6, 6 );
108 fgSizer4->AddGrowableCol( 1 );
109 fgSizer4->SetFlexibleDirection( wxBOTH );
110 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
111
112 m_staticPinTextPositionLabel = new wxStaticText( this, wxID_ANY, _("Pin name position offset:"), wxDefaultPosition, wxDefaultSize, 0 );
113 m_staticPinTextPositionLabel->Wrap( -1 );
114 fgSizer4->Add( m_staticPinTextPositionLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
115
116 m_textPinTextPosition = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
117 fgSizer4->Add( m_textPinTextPosition, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
118
119 m_staticPinTextPositionUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
120 m_staticPinTextPositionUnits->Wrap( -1 );
121 fgSizer4->Add( m_staticPinTextPositionUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
122
123
124 bSizerBottom->Add( fgSizer4, 0, wxALL|wxEXPAND, 5 );
125
126 wxBoxSizer* bSizer19;
127 bSizer19 = new wxBoxSizer( wxVERTICAL );
128
129 m_checkShowPinNumber = new wxCheckBox( this, wxID_ANY, _("Show pin number text"), wxDefaultPosition, wxDefaultSize, 0 );
130 m_checkShowPinNumber->SetValue(true);
131 bSizer19->Add( m_checkShowPinNumber, 0, wxRIGHT|wxLEFT, 5 );
132
133 m_checkShowPinName = new wxCheckBox( this, wxID_ANY, _("Show pin name text"), wxDefaultPosition, wxDefaultSize, 0 );
134 m_checkShowPinName->SetValue(true);
135 bSizer19->Add( m_checkShowPinName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
136
137 m_checkShowPinNameInside = new wxCheckBox( this, wxID_ANY, _("Pin name inside"), wxDefaultPosition, wxDefaultSize, 0 );
138 m_checkShowPinNameInside->SetValue(true);
139 bSizer19->Add( m_checkShowPinNameInside, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
140
141
142 bSizerBottom->Add( bSizer19, 0, wxEXPAND, 5 );
143
144
145 bSizerMain->Add( bSizerBottom, 1, wxALL|wxEXPAND, 5 );
146
147 m_sdbSizer = new wxStdDialogButtonSizer();
148 m_sdbSizerOK = new wxButton( this, wxID_OK );
149 m_sdbSizer->AddButton( m_sdbSizerOK );
150 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
151 m_sdbSizer->AddButton( m_sdbSizerCancel );
152 m_sdbSizer->Realize();
153
154 bSizerMain->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
155
156
157 this->SetSizer( bSizerMain );
158 this->Layout();
159 bSizerMain->Fit( this );
160
161 this->Centre( wxBOTH );
162}
163
165{
166}
Class DIALOG_LIB_NEW_SYMBOL_BASE.
void _wxFB_OnParentSymbolSelect(wxCommandEvent &event)
void _wxFB_onPowerCheckBox(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
A modified version of the wxInfoBar class that allows us to:
Definition: wx_infobar.h:75
#define _(s)