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