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