KiCad PCB EDA Suite
dialog_lib_new_component_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version 3.9.0 Jan 23 2020)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 BEGIN_EVENT_TABLE( DIALOG_LIB_NEW_COMPONENT_BASE, DIALOG_SHIM )
14 END_EVENT_TABLE()
15 
16 DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
17 {
18  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
19 
20  wxBoxSizer* bSizerMain;
21  bSizerMain = new wxBoxSizer( wxVERTICAL );
22 
23  wxBoxSizer* bSizerTop;
24  bSizerTop = new wxBoxSizer( wxVERTICAL );
25 
26  wxFlexGridSizer* fgSizer31;
27  fgSizer31 = new wxFlexGridSizer( 0, 2, 6, 6 );
28  fgSizer31->AddGrowableCol( 1 );
29  fgSizer31->SetFlexibleDirection( wxBOTH );
30  fgSizer31->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31 
32  m_staticTextName = new wxStaticText( this, wxID_ANY, _("Symbol name:"), wxDefaultPosition, wxDefaultSize, 0 );
33  m_staticTextName->Wrap( -1 );
34  m_staticTextName->SetToolTip( _("This is the symbol name in library,\nand also the default component value when loaded in the schematic.") );
35 
36  fgSizer31->Add( m_staticTextName, 0, wxALIGN_CENTER_VERTICAL, 5 );
37 
38  m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
39  fgSizer31->Add( m_textName, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
40 
41  m_staticText5 = new wxStaticText( this, wxID_ANY, _("Derive from existing symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
42  m_staticText5->Wrap( -1 );
43  fgSizer31->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL, 5 );
44 
45  m_comboInheritanceSelect = new wxComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN|wxCB_READONLY );
46  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.") );
47 
48  fgSizer31->Add( m_comboInheritanceSelect, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
49 
50  m_staticTextDes = new wxStaticText( this, wxID_ANY, _("Default reference designator:"), wxDefaultPosition, wxDefaultSize, 0 );
51  m_staticTextDes->Wrap( -1 );
52  fgSizer31->Add( m_staticTextDes, 0, wxALIGN_CENTER_VERTICAL, 5 );
53 
54  m_textReference = new wxTextCtrl( this, wxID_ANY, _("U"), wxDefaultPosition, wxDefaultSize, 0 );
55  fgSizer31->Add( m_textReference, 0, wxEXPAND, 5 );
56 
57  m_staticTextUnits = new wxStaticText( this, wxID_ANY, _("Number of units per package:"), wxDefaultPosition, wxDefaultSize, 0 );
58  m_staticTextUnits->Wrap( -1 );
59  fgSizer31->Add( m_staticTextUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
60 
61  m_spinPartCount = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 64, 0 );
62  fgSizer31->Add( m_spinPartCount, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
63 
64 
65  bSizerTop->Add( fgSizer31, 1, wxALL|wxEXPAND, 5 );
66 
67  wxBoxSizer* bSizer17;
68  bSizer17 = new wxBoxSizer( wxVERTICAL );
69 
70  m_checkLockItems = new wxCheckBox( this, wxID_ANY, _("Units are not interchangeable"), wxDefaultPosition, wxDefaultSize, 0 );
71  bSizer17->Add( m_checkLockItems, 0, wxRIGHT|wxLEFT, 5 );
72 
73  m_checkHasConversion = new wxCheckBox( this, wxID_ANY, _("Create symbol with alternate body style (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 );
74  bSizer17->Add( m_checkHasConversion, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
75 
76  m_checkIsPowerSymbol = new wxCheckBox( this, wxID_ANY, _("Create symbol as power symbol"), wxDefaultPosition, wxDefaultSize, 0 );
77  bSizer17->Add( m_checkIsPowerSymbol, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
78 
79 
80  bSizerTop->Add( bSizer17, 0, wxBOTTOM|wxEXPAND, 5 );
81 
82 
83  bSizerMain->Add( bSizerTop, 0, wxALL|wxEXPAND, 5 );
84 
85  wxBoxSizer* bSizerBottom;
86  bSizerBottom = new wxBoxSizer( wxVERTICAL );
87 
88  wxFlexGridSizer* fgSizer4;
89  fgSizer4 = new wxFlexGridSizer( 0, 3, 6, 6 );
90  fgSizer4->AddGrowableCol( 1 );
91  fgSizer4->SetFlexibleDirection( wxBOTH );
92  fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
93 
94  m_staticPinTextPositionLabel = new wxStaticText( this, wxID_ANY, _("Pin text position offset:"), wxDefaultPosition, wxDefaultSize, 0 );
95  m_staticPinTextPositionLabel->Wrap( -1 );
96  fgSizer4->Add( m_staticPinTextPositionLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
97 
98  m_textPinTextPosition = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
99  fgSizer4->Add( m_textPinTextPosition, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
100 
101  m_staticPinTextPositionUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
102  m_staticPinTextPositionUnits->Wrap( -1 );
103  fgSizer4->Add( m_staticPinTextPositionUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
104 
105 
106  bSizerBottom->Add( fgSizer4, 0, wxALL|wxEXPAND, 5 );
107 
108  wxBoxSizer* bSizer19;
109  bSizer19 = new wxBoxSizer( wxVERTICAL );
110 
111  m_checkShowPinNumber = new wxCheckBox( this, wxID_ANY, _("Show pin number text"), wxDefaultPosition, wxDefaultSize, 0 );
112  m_checkShowPinNumber->SetValue(true);
113  bSizer19->Add( m_checkShowPinNumber, 0, wxRIGHT|wxLEFT, 5 );
114 
115  m_checkShowPinName = new wxCheckBox( this, wxID_ANY, _("Show pin name text"), wxDefaultPosition, wxDefaultSize, 0 );
116  m_checkShowPinName->SetValue(true);
117  bSizer19->Add( m_checkShowPinName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
118 
119  m_checkShowPinNameInside = new wxCheckBox( this, wxID_ANY, _("Pin name inside"), wxDefaultPosition, wxDefaultSize, 0 );
120  m_checkShowPinNameInside->SetValue(true);
121  bSizer19->Add( m_checkShowPinNameInside, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
122 
123 
124  bSizerBottom->Add( bSizer19, 0, wxEXPAND, 5 );
125 
126 
127  bSizerMain->Add( bSizerBottom, 1, wxALL|wxEXPAND, 5 );
128 
129  m_sdbSizer = new wxStdDialogButtonSizer();
130  m_sdbSizerOK = new wxButton( this, wxID_OK );
131  m_sdbSizer->AddButton( m_sdbSizerOK );
132  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
133  m_sdbSizer->AddButton( m_sdbSizerCancel );
134  m_sdbSizer->Realize();
135 
136  bSizerMain->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
137 
138 
139  this->SetSizer( bSizerMain );
140  this->Layout();
141  bSizerMain->Fit( this );
142 
143  this->Centre( wxBOTH );
144 }
145 
147 {
148 }
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:84
Class DIALOG_LIB_NEW_COMPONENT_BASE.
#define NULL
#define _(s)
Definition: 3d_actions.cpp:31