KiCad PCB EDA Suite
dialog_libedit_options_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jan 2 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 BEGIN_EVENT_TABLE( DIALOG_LIBEDIT_OPTIONS_BASE, DIALOG_SHIM )
13  EVT_SCROLL( DIALOG_LIBEDIT_OPTIONS_BASE::_wxFB_OnScaleSlider )
14  EVT_CHECKBOX( wxID_ANY, DIALOG_LIBEDIT_OPTIONS_BASE::_wxFB_OnScaleAuto )
15 END_EVENT_TABLE()
16 
17 DIALOG_LIBEDIT_OPTIONS_BASE::DIALOG_LIBEDIT_OPTIONS_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* mainSizer;
22  mainSizer = new wxBoxSizer( wxVERTICAL );
23 
24  wxBoxSizer* bOptionsSizer;
25  bOptionsSizer = new wxBoxSizer( wxVERTICAL );
26 
27  wxBoxSizer* p1mainSizer;
28  p1mainSizer = new wxBoxSizer( wxHORIZONTAL );
29 
30  wxBoxSizer* bSizer3;
31  bSizer3 = new wxBoxSizer( wxVERTICAL );
32 
33  wxFlexGridSizer* fgSizer;
34  fgSizer = new wxFlexGridSizer( 0, 3, 0, 0 );
35  fgSizer->AddGrowableCol( 0 );
36  fgSizer->AddGrowableCol( 1 );
37  fgSizer->AddGrowableCol( 2 );
38  fgSizer->SetFlexibleDirection( wxBOTH );
39  fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
40 
41  m_staticText3 = new wxStaticText( this, wxID_ANY, _("&Grid size:"), wxDefaultPosition, wxDefaultSize, 0 );
42  m_staticText3->Wrap( -1 );
43  fgSizer->Add( m_staticText3, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
44 
45  wxArrayString m_choiceGridSizeChoices;
46  m_choiceGridSize = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceGridSizeChoices, 0 );
47  m_choiceGridSize->SetSelection( 0 );
48  fgSizer->Add( m_choiceGridSize, 0, wxEXPAND|wxALL, 3 );
49 
50  m_staticGridUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
51  m_staticGridUnits->Wrap( -1 );
52  fgSizer->Add( m_staticGridUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
53 
54  m_staticText5 = new wxStaticText( this, wxID_ANY, _("&Default line width:"), wxDefaultPosition, wxDefaultSize, 0 );
55  m_staticText5->Wrap( -1 );
56  fgSizer->Add( m_staticText5, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
57 
58  m_spinLineWidth = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 1, 100, 6 );
59  fgSizer->Add( m_spinLineWidth, 0, wxALL|wxEXPAND, 3 );
60 
61  m_staticLineWidthUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
62  m_staticLineWidthUnits->Wrap( -1 );
63  fgSizer->Add( m_staticLineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
64 
65  m_staticText52 = new wxStaticText( this, wxID_ANY, _("D&efault pin length:"), wxDefaultPosition, wxDefaultSize, 0 );
66  m_staticText52->Wrap( -1 );
67  fgSizer->Add( m_staticText52, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 3 );
68 
69  m_spinPinLength = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 50, 1000, 200 );
70  fgSizer->Add( m_spinPinLength, 0, wxALL|wxEXPAND, 3 );
71 
72  m_staticPinLengthUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
73  m_staticPinLengthUnits->Wrap( -1 );
74  fgSizer->Add( m_staticPinLengthUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 3 );
75 
76  m_staticText7 = new wxStaticText( this, wxID_ANY, _("De&fault pin number size:"), wxDefaultPosition, wxDefaultSize, 0 );
77  m_staticText7->Wrap( -1 );
78  fgSizer->Add( m_staticText7, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
79 
80  m_spinPinNumSize = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 0, 1000, 0 );
81  fgSizer->Add( m_spinPinNumSize, 0, wxALL|wxEXPAND, 3 );
82 
83  m_staticTextSizeUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
84  m_staticTextSizeUnits->Wrap( -1 );
85  fgSizer->Add( m_staticTextSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
86 
87  m_staticText9 = new wxStaticText( this, wxID_ANY, _("Def&ault pin name size:"), wxDefaultPosition, wxDefaultSize, 0 );
88  m_staticText9->Wrap( -1 );
89  fgSizer->Add( m_staticText9, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
90 
91  m_spinPinNameSize = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -5000, 5000, 0 );
92  fgSizer->Add( m_spinPinNameSize, 0, wxALL|wxEXPAND, 3 );
93 
94  m_staticRepeatXUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
95  m_staticRepeatXUnits->Wrap( -1 );
96  fgSizer->Add( m_staticRepeatXUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
97 
98  m_staticText11 = new wxStaticText( this, wxID_ANY, _("&Horizontal pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
99  m_staticText11->Wrap( -1 );
100  fgSizer->Add( m_staticText11, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
101 
102  m_spinRepeatHorizontal = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -1000, 1000, 0 );
103  fgSizer->Add( m_spinRepeatHorizontal, 0, wxALL|wxEXPAND, 5 );
104 
105  m_staticText12 = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
106  m_staticText12->Wrap( -1 );
107  fgSizer->Add( m_staticText12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
108 
109  m_staticText13 = new wxStaticText( this, wxID_ANY, _("&Vertical pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
110  m_staticText13->Wrap( -1 );
111  fgSizer->Add( m_staticText13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
112 
113  m_spinRepeatVertical = new wxSpinCtrl( this, wxID_ANY, wxT("100"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -1000, 1000, 0 );
114  fgSizer->Add( m_spinRepeatVertical, 0, wxALL|wxEXPAND, 5 );
115 
116  m_staticText14 = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
117  m_staticText14->Wrap( -1 );
118  fgSizer->Add( m_staticText14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
119 
120  m_staticText15 = new wxStaticText( this, wxID_ANY, _("&Pitch of repeated pins:"), wxDefaultPosition, wxDefaultSize, 0 );
121  m_staticText15->Wrap( -1 );
122  fgSizer->Add( m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
123 
124  wxString m_choicePinDisplacementChoices[] = { _("100"), _("50") };
125  int m_choicePinDisplacementNChoices = sizeof( m_choicePinDisplacementChoices ) / sizeof( wxString );
126  m_choicePinDisplacement = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePinDisplacementNChoices, m_choicePinDisplacementChoices, 0 );
127  m_choicePinDisplacement->SetSelection( 0 );
128  fgSizer->Add( m_choicePinDisplacement, 0, wxALL|wxEXPAND, 5 );
129 
130  m_staticText16 = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
131  m_staticText16->Wrap( -1 );
132  fgSizer->Add( m_staticText16, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
133 
134  m_staticText17 = new wxStaticText( this, wxID_ANY, _("&Increment of repeated labels:"), wxDefaultPosition, wxDefaultSize, 0 );
135  m_staticText17->Wrap( -1 );
136  fgSizer->Add( m_staticText17, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
137 
138  m_spinRepeatLabel = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -10, 10, 1 );
139  fgSizer->Add( m_spinRepeatLabel, 0, wxALL|wxEXPAND, 5 );
140 
141 
142  fgSizer->Add( 0, 0, 0, 0, 5 );
143 
144  m_staticText18 = new wxStaticText( this, wxID_ANY, _("Icon scale:"), wxDefaultPosition, wxDefaultSize, 0 );
145  m_staticText18->Wrap( -1 );
146  fgSizer->Add( m_staticText18, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
147 
148  m_scaleSlider = new STEPPED_SLIDER( this, wxID_ANY, 50, 50, 275, wxDefaultPosition, wxDefaultSize, wxSL_AUTOTICKS|wxSL_HORIZONTAL|wxSL_LABELS );
149  fgSizer->Add( m_scaleSlider, 0, wxALL|wxEXPAND, 5 );
150 
151  m_staticText19 = new wxStaticText( this, wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
152  m_staticText19->Wrap( -1 );
153  fgSizer->Add( m_staticText19, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
154 
155 
156  fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
157 
158  m_scaleAuto = new wxCheckBox( this, wxID_ANY, _("Auto"), wxDefaultPosition, wxDefaultSize, 0 );
159  fgSizer->Add( m_scaleAuto, 0, wxALL, 5 );
160 
161 
162  fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
163 
164 
165  bSizer3->Add( fgSizer, 0, wxEXPAND, 0 );
166 
167  wxBoxSizer* bSizer2;
168  bSizer2 = new wxBoxSizer( wxVERTICAL );
169 
170  m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
171  bSizer2->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
172 
173  m_checkShowGrid = new wxCheckBox( this, wxID_ANY, _("&Show grid"), wxDefaultPosition, wxDefaultSize, 0 );
174  bSizer2->Add( m_checkShowGrid, 0, wxEXPAND|wxALL, 3 );
175 
176  m_checkShowPinElectricalType = new wxCheckBox( this, wxID_ANY, _("Show pin &electrical type"), wxDefaultPosition, wxDefaultSize, 0 );
177  bSizer2->Add( m_checkShowPinElectricalType, 0, wxALL, 3 );
178 
179 
180  bSizer3->Add( bSizer2, 0, wxEXPAND, 0 );
181 
182 
183  p1mainSizer->Add( bSizer3, 1, wxALL|wxEXPAND, 6 );
184 
185 
186  bOptionsSizer->Add( p1mainSizer, 1, wxEXPAND, 5 );
187 
188  m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
189  bOptionsSizer->Add( m_staticline2, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
190 
191  m_sdbSizer = new wxStdDialogButtonSizer();
192  m_sdbSizerOK = new wxButton( this, wxID_OK );
193  m_sdbSizer->AddButton( m_sdbSizerOK );
194  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
195  m_sdbSizer->AddButton( m_sdbSizerCancel );
196  m_sdbSizer->Realize();
197 
198  bOptionsSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
199 
200 
201  mainSizer->Add( bOptionsSizer, 1, wxEXPAND, 12 );
202 
203 
204  this->SetSizer( mainSizer );
205  this->Layout();
206  mainSizer->Fit( this );
207 
208  this->Centre( wxBOTH );
209 }
210 
212 {
213 }
EVT_CHECKBOX(ID_CURRENT_FORMAT_IS_DEFAULT, NETLIST_DIALOG::SelectDefaultNetlistType) NETLIST_PAGE_DIALOG
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:70
Class DIALOG_LIBEDIT_OPTIONS_BASE.
Customized wxSlider with forced stepping.