KiCad PCB EDA Suite
panel_eeschema_editing_options_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 PANEL_EESCHEMA_EDITING_OPTIONS_BASE::PANEL_EESCHEMA_EDITING_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
13 {
14  wxBoxSizer* bPanelSizer;
15  bPanelSizer = new wxBoxSizer( wxHORIZONTAL );
16 
17  wxBoxSizer* bLeftColumn;
18  bLeftColumn = new wxBoxSizer( wxVERTICAL );
19 
20  wxStaticBoxSizer* sbSizerEditOpt;
21  sbSizerEditOpt = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Editing") ), wxVERTICAL );
22 
23  m_checkHVOrientation = new wxCheckBox( sbSizerEditOpt->GetStaticBox(), wxID_ANY, _("&Restrict buses and wires to H and V orientation"), wxDefaultPosition, wxDefaultSize, 0 );
24  m_checkHVOrientation->SetValue(true);
25  sbSizerEditOpt->Add( m_checkHVOrientation, 0, wxRIGHT|wxLEFT, 5 );
26 
27  m_mouseDragIsDrag = new wxCheckBox( sbSizerEditOpt->GetStaticBox(), wxID_ANY, _("Mouse drag performs drag (G) operation"), wxDefaultPosition, wxDefaultSize, 0 );
28  m_mouseDragIsDrag->SetToolTip( _("If unchecked, mouse drag will perform move (M) operation") );
29 
30  sbSizerEditOpt->Add( m_mouseDragIsDrag, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
31 
32  m_cbAutoStartWires = new wxCheckBox( sbSizerEditOpt->GetStaticBox(), wxID_ANY, _("Automatically start wires on unconnected pins"), wxDefaultPosition, wxDefaultSize, 0 );
33  m_cbAutoStartWires->SetToolTip( _("When enabled, you can start wiring by clicking on unconnected pins even when the wire tool is not active") );
34 
35  sbSizerEditOpt->Add( m_cbAutoStartWires, 0, wxALL, 5 );
36 
37 
38  bLeftColumn->Add( sbSizerEditOpt, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
39 
40  wxStaticBoxSizer* sbSizer5;
41  sbSizer5 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Defaults for New Objects") ), wxVERTICAL );
42 
43  wxBoxSizer* bSizer6;
44  bSizer6 = new wxBoxSizer( wxHORIZONTAL );
45 
46  m_borderColorLabel = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("Sheet border:"), wxDefaultPosition, wxDefaultSize, 0 );
47  m_borderColorLabel->Wrap( -1 );
48  bSizer6->Add( m_borderColorLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
49 
50  m_borderColorSwatch = new COLOR_SWATCH( sbSizer5->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
51  m_borderColorSwatch->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
52 
53  bSizer6->Add( m_borderColorSwatch, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
54 
55  m_backgroundColorLabel = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("Sheet background:"), wxDefaultPosition, wxDefaultSize, 0 );
56  m_backgroundColorLabel->Wrap( -1 );
57  bSizer6->Add( m_backgroundColorLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
58 
59  m_backgroundColorSwatch = new COLOR_SWATCH( sbSizer5->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
60  m_backgroundColorSwatch->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
61 
62  bSizer6->Add( m_backgroundColorSwatch, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
63 
64 
65  sbSizer5->Add( bSizer6, 0, wxEXPAND, 5 );
66 
67 
68  bLeftColumn->Add( sbSizer5, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
69 
70  wxStaticBoxSizer* sbSizerPinSel;
71  sbSizerPinSel = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Selection") ), wxVERTICAL );
72 
73  m_cbPinSelectionOpt = new wxCheckBox( sbSizerPinSel->GetStaticBox(), wxID_ANY, _("Clicking on a pin selects the symbol"), wxDefaultPosition, wxDefaultSize, 0 );
74  m_cbPinSelectionOpt->SetToolTip( _("In schematic editor:\nIf enabled, clicking on a pin select the parent symbol.\nIf disabled, clicking on a pin select only the pin.") );
75 
76  sbSizerPinSel->Add( m_cbPinSelectionOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
77 
78 
79  bLeftColumn->Add( sbSizerPinSel, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
80 
81  m_leftClickCmdsBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
82  m_pageWinLin = new wxPanel( m_leftClickCmdsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
83  wxStaticBoxSizer* mouseCmdsWinLin;
84  mouseCmdsWinLin = new wxStaticBoxSizer( new wxStaticBox( m_pageWinLin, wxID_ANY, _("Left Click Mouse Commands") ), wxVERTICAL );
85 
86  m_staticText8 = new wxStaticText( mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Left click (and drag) actions depend on 3 modifier keys:\nAlt, Shift and Ctrl."), wxDefaultPosition, wxDefaultSize, 0 );
87  m_staticText8->Wrap( -1 );
88  mouseCmdsWinLin->Add( m_staticText8, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
89 
90  m_staticline1 = new wxStaticLine( mouseCmdsWinLin->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
91  mouseCmdsWinLin->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
92 
93  wxFlexGridSizer* fgSizerCmdsWinLin;
94  fgSizerCmdsWinLin = new wxFlexGridSizer( 0, 2, 0, 0 );
95  fgSizerCmdsWinLin->SetFlexibleDirection( wxBOTH );
96  fgSizerCmdsWinLin->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
97 
98  m_staticText91 = new wxStaticText( mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Shift"), wxDefaultPosition, wxDefaultSize, 0 );
99  m_staticText91->Wrap( -1 );
100  fgSizerCmdsWinLin->Add( m_staticText91, 0, wxALL, 5 );
101 
102  m_staticText101 = new wxStaticText( mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Add item(s) to selection."), wxDefaultPosition, wxDefaultSize, 0 );
103  m_staticText101->Wrap( -1 );
104  fgSizerCmdsWinLin->Add( m_staticText101, 0, wxALL, 5 );
105 
106  m_staticText131 = new wxStaticText( mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Alt"), wxDefaultPosition, wxDefaultSize, 0 );
107  m_staticText131->Wrap( -1 );
108  fgSizerCmdsWinLin->Add( m_staticText131, 0, wxALL, 5 );
109 
110  m_staticText141 = new wxStaticText( mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Toggle selected state of item(s)."), wxDefaultPosition, wxDefaultSize, 0 );
111  m_staticText141->Wrap( -1 );
112  fgSizerCmdsWinLin->Add( m_staticText141, 0, wxALL, 5 );
113 
114  m_staticText151 = new wxStaticText( mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Alt+Shift"), wxDefaultPosition, wxDefaultSize, 0 );
115  m_staticText151->Wrap( -1 );
116  fgSizerCmdsWinLin->Add( m_staticText151, 0, wxALL, 5 );
117 
118  m_staticText161 = new wxStaticText( mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Remove item(s) from selection."), wxDefaultPosition, wxDefaultSize, 0 );
119  m_staticText161->Wrap( -1 );
120  fgSizerCmdsWinLin->Add( m_staticText161, 0, wxALL, 5 );
121 
122  m_staticText111 = new wxStaticText( mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Ctrl"), wxDefaultPosition, wxDefaultSize, 0 );
123  m_staticText111->Wrap( -1 );
124  fgSizerCmdsWinLin->Add( m_staticText111, 0, wxALL, 5 );
125 
126  m_staticText121 = new wxStaticText( mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Clarify selection from menu."), wxDefaultPosition, wxDefaultSize, 0 );
127  m_staticText121->Wrap( -1 );
128  fgSizerCmdsWinLin->Add( m_staticText121, 0, wxALL, 5 );
129 
130 
131  mouseCmdsWinLin->Add( fgSizerCmdsWinLin, 1, wxEXPAND, 5 );
132 
133 
134  m_pageWinLin->SetSizer( mouseCmdsWinLin );
135  m_pageWinLin->Layout();
136  mouseCmdsWinLin->Fit( m_pageWinLin );
137  m_leftClickCmdsBook->AddPage( m_pageWinLin, _("a page"), false );
138  m_pageMac = new wxPanel( m_leftClickCmdsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
139  wxStaticBoxSizer* mouseCmdsMac;
140  mouseCmdsMac = new wxStaticBoxSizer( new wxStaticBox( m_pageMac, wxID_ANY, _("Left Click Mouse Commands") ), wxVERTICAL );
141 
142  m_staticText81 = new wxStaticText( mouseCmdsMac->GetStaticBox(), wxID_ANY, _("Left click (and drag) actions depend on 3 modifier keys:\nAlt, Shift and Cmd."), wxDefaultPosition, wxDefaultSize, 0 );
143  m_staticText81->Wrap( -1 );
144  mouseCmdsMac->Add( m_staticText81, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
145 
146  m_staticline2 = new wxStaticLine( mouseCmdsMac->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
147  mouseCmdsMac->Add( m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
148 
149  wxFlexGridSizer* fgSizerCmdsWinMac;
150  fgSizerCmdsWinMac = new wxFlexGridSizer( 0, 2, 0, 0 );
151  fgSizerCmdsWinMac->SetFlexibleDirection( wxBOTH );
152  fgSizerCmdsWinMac->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
153 
154  m_staticText9 = new wxStaticText( mouseCmdsMac->GetStaticBox(), wxID_ANY, _("Shift"), wxDefaultPosition, wxDefaultSize, 0 );
155  m_staticText9->Wrap( -1 );
156  fgSizerCmdsWinMac->Add( m_staticText9, 0, wxALL, 5 );
157 
158  m_staticText10 = new wxStaticText( mouseCmdsMac->GetStaticBox(), wxID_ANY, _("Add item(s) to selection."), wxDefaultPosition, wxDefaultSize, 0 );
159  m_staticText10->Wrap( -1 );
160  fgSizerCmdsWinMac->Add( m_staticText10, 0, wxALL, 5 );
161 
162  m_staticText13 = new wxStaticText( mouseCmdsMac->GetStaticBox(), wxID_ANY, _("Cmd"), wxDefaultPosition, wxDefaultSize, 0 );
163  m_staticText13->Wrap( -1 );
164  fgSizerCmdsWinMac->Add( m_staticText13, 0, wxALL, 5 );
165 
166  m_staticText14 = new wxStaticText( mouseCmdsMac->GetStaticBox(), wxID_ANY, _("Toggle selected state of item(s)."), wxDefaultPosition, wxDefaultSize, 0 );
167  m_staticText14->Wrap( -1 );
168  fgSizerCmdsWinMac->Add( m_staticText14, 0, wxALL, 5 );
169 
170  m_staticText15 = new wxStaticText( mouseCmdsMac->GetStaticBox(), wxID_ANY, _("Cmd+Shift"), wxDefaultPosition, wxDefaultSize, 0 );
171  m_staticText15->Wrap( -1 );
172  fgSizerCmdsWinMac->Add( m_staticText15, 0, wxALL, 5 );
173 
174  m_staticText16 = new wxStaticText( mouseCmdsMac->GetStaticBox(), wxID_ANY, _("Remove item(s) from selection."), wxDefaultPosition, wxDefaultSize, 0 );
175  m_staticText16->Wrap( -1 );
176  fgSizerCmdsWinMac->Add( m_staticText16, 0, wxALL, 5 );
177 
178  m_staticText11 = new wxStaticText( mouseCmdsMac->GetStaticBox(), wxID_ANY, _("Alt"), wxDefaultPosition, wxDefaultSize, 0 );
179  m_staticText11->Wrap( -1 );
180  fgSizerCmdsWinMac->Add( m_staticText11, 0, wxALL, 5 );
181 
182  m_staticText12 = new wxStaticText( mouseCmdsMac->GetStaticBox(), wxID_ANY, _("Clarify selection from menu."), wxDefaultPosition, wxDefaultSize, 0 );
183  m_staticText12->Wrap( -1 );
184  fgSizerCmdsWinMac->Add( m_staticText12, 0, wxALL, 5 );
185 
186 
187  mouseCmdsMac->Add( fgSizerCmdsWinMac, 1, wxEXPAND, 5 );
188 
189 
190  m_pageMac->SetSizer( mouseCmdsMac );
191  m_pageMac->Layout();
192  mouseCmdsMac->Fit( m_pageMac );
193  m_leftClickCmdsBook->AddPage( m_pageMac, _("a page"), false );
194 
195  bLeftColumn->Add( m_leftClickCmdsBook, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
196 
197 
198  bPanelSizer->Add( bLeftColumn, 1, wxRIGHT|wxLEFT|wxEXPAND, 5 );
199 
200  wxBoxSizer* bRightColumn;
201  bRightColumn = new wxBoxSizer( wxVERTICAL );
202 
203  wxStaticBoxSizer* sbSizerFieldAutoPlace;
204  sbSizerFieldAutoPlace = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Symbol Field Automatic Placement") ), wxVERTICAL );
205 
206  m_checkAutoplaceFields = new wxCheckBox( sbSizerFieldAutoPlace->GetStaticBox(), wxID_ANY, _("A&utomatically place symbol fields"), wxDefaultPosition, wxDefaultSize, 0 );
207  sbSizerFieldAutoPlace->Add( m_checkAutoplaceFields, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
208 
209  m_checkAutoplaceJustify = new wxCheckBox( sbSizerFieldAutoPlace->GetStaticBox(), wxID_ANY, _("A&llow field autoplace to change justification"), wxDefaultPosition, wxDefaultSize, 0 );
210  sbSizerFieldAutoPlace->Add( m_checkAutoplaceJustify, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
211 
212  m_checkAutoplaceAlign = new wxCheckBox( sbSizerFieldAutoPlace->GetStaticBox(), wxID_ANY, _("Al&ways align autoplaced fields to the 50 mil grid"), wxDefaultPosition, wxDefaultSize, 0 );
213  sbSizerFieldAutoPlace->Add( m_checkAutoplaceAlign, 0, wxEXPAND|wxALL, 5 );
214 
215 
216  bRightColumn->Add( sbSizerFieldAutoPlace, 0, wxEXPAND|wxALL, 5 );
217 
218  wxStaticBoxSizer* repeatSizer;
219  repeatSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Repeated Items") ), wxVERTICAL );
220 
221  wxFlexGridSizer* fgSizerRepeatOpt1;
222  fgSizerRepeatOpt1 = new wxFlexGridSizer( 0, 3, 5, 5 );
223  fgSizerRepeatOpt1->AddGrowableCol( 0 );
224  fgSizerRepeatOpt1->AddGrowableCol( 1 );
225  fgSizerRepeatOpt1->AddGrowableCol( 2 );
226  fgSizerRepeatOpt1->SetFlexibleDirection( wxBOTH );
227  fgSizerRepeatOpt1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
228 
229  m_hPitchLabel = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("&Horizontal pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
230  m_hPitchLabel->Wrap( -1 );
231  fgSizerRepeatOpt1->Add( m_hPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
232 
233  m_hPitchCtrl = new wxTextCtrl( repeatSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
234  fgSizerRepeatOpt1->Add( m_hPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
235 
236  m_hPitchUnits = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
237  m_hPitchUnits->Wrap( -1 );
238  fgSizerRepeatOpt1->Add( m_hPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
239 
240  m_vPitchLabel = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("&Vertical pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
241  m_vPitchLabel->Wrap( -1 );
242  fgSizerRepeatOpt1->Add( m_vPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
243 
244  m_vPitchCtrl = new wxTextCtrl( repeatSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
245  fgSizerRepeatOpt1->Add( m_vPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
246 
247  m_vPitchUnits = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
248  m_vPitchUnits->Wrap( -1 );
249  fgSizerRepeatOpt1->Add( m_vPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
250 
251  m_labelIncrementLabel = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("Label increment:"), wxDefaultPosition, wxDefaultSize, 0 );
252  m_labelIncrementLabel->Wrap( -1 );
253  fgSizerRepeatOpt1->Add( m_labelIncrementLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT, 5 );
254 
255  m_spinLabelRepeatStep = new wxSpinCtrl( repeatSizer->GetStaticBox(), wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -10, 10, 1 );
256  fgSizerRepeatOpt1->Add( m_spinLabelRepeatStep, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5 );
257 
258 
259  fgSizerRepeatOpt1->Add( 0, 0, 1, wxEXPAND, 3 );
260 
261 
262  repeatSizer->Add( fgSizerRepeatOpt1, 1, wxEXPAND, 5 );
263 
264 
265  bRightColumn->Add( repeatSizer, 0, wxEXPAND|wxALL, 5 );
266 
267  wxStaticBoxSizer* sbSizer6;
268  sbSizer6 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Dialog Preferences") ), wxVERTICAL );
269 
270  m_footprintPreview = new wxCheckBox( sbSizer6->GetStaticBox(), wxID_ANY, _("Show footprint previews in Symbol Chooser"), wxDefaultPosition, wxDefaultSize, 0 );
271  sbSizer6->Add( m_footprintPreview, 0, wxRIGHT|wxLEFT, 5 );
272 
273  m_navigatorStaysOpen = new wxCheckBox( sbSizer6->GetStaticBox(), wxID_ANY, _("Keep hierarchy navigator open"), wxDefaultPosition, wxDefaultSize, 0 );
274  m_navigatorStaysOpen->SetValue(true);
275  sbSizer6->Add( m_navigatorStaysOpen, 0, wxALL, 5 );
276 
277 
278  bRightColumn->Add( sbSizer6, 1, wxEXPAND|wxALL, 5 );
279 
280 
281  bPanelSizer->Add( bRightColumn, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
282 
283 
284  this->SetSizer( bPanelSizer );
285  this->Layout();
286  bPanelSizer->Fit( this );
287 }
288 
290 {
291 }
PANEL_EESCHEMA_EDITING_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
#define _(s)
const char * name
Definition: DXF_plotter.cpp:56
A simple color swatch of the kind used to set layer colors.
Definition: color_swatch.h:56