KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_display_options_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a-dirty)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_DISPLAY_OPTIONS_BASE::PANEL_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : RESETTABLE_PANEL( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* bMainSizer;
15 bMainSizer = new wxBoxSizer( wxVERTICAL );
16
17 wxBoxSizer* bupperSizer;
18 bupperSizer = new wxBoxSizer( wxHORIZONTAL );
19
20 wxBoxSizer* bSizer11;
21 bSizer11 = new wxBoxSizer( wxVERTICAL );
22
23 m_galOptionsSizer = new wxBoxSizer( wxVERTICAL );
24
25
26 bSizer11->Add( m_galOptionsSizer, 0, wxEXPAND|wxRIGHT, 10 );
27
28
29 bSizer11->Add( 0, 8, 0, 0, 5 );
30
31 wxBoxSizer* bSizerPads;
32 bSizerPads = new wxBoxSizer( wxVERTICAL );
33
34 m_padsLabel = new wxStaticText( this, wxID_ANY, _("Pads"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_padsLabel->Wrap( -1 );
36 bSizerPads->Add( m_padsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
37
38 m_staticlinePads = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
39 bSizerPads->Add( m_staticlinePads, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
40
41 m_OptUseViaColorForNormalTHPadstacks = new wxCheckBox( this, wxID_ANY, _("Use via color for normal through hole padstacks"), wxDefaultPosition, wxDefaultSize, 0 );
42 bSizerPads->Add( m_OptUseViaColorForNormalTHPadstacks, 0, wxALL, 5 );
43
44
45 bSizerPads->Add( 0, 8, 0, wxEXPAND, 5 );
46
47 m_clearanceLabel = new wxStaticText( this, wxID_ANY, _("Clearance Outlines"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_clearanceLabel->Wrap( -1 );
49 bSizerPads->Add( m_clearanceLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
50
51 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
52 bSizerPads->Add( m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
53
54 wxGridBagSizer* gbSizer2;
55 gbSizer2 = new wxGridBagSizer( 2, 0 );
56 gbSizer2->SetFlexibleDirection( wxBOTH );
57 gbSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
58
59 m_trackClearancesLabel = new wxStaticText( this, wxID_ANY, _("Tracks:"), wxDefaultPosition, wxDefaultSize, 0 );
60 m_trackClearancesLabel->Wrap( -1 );
61 gbSizer2->Add( m_trackClearancesLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT, 5 );
62
63 wxString m_OptDisplayTracksClearanceChoices[] = { _("Do not show clearances"), _("Show when routing"), _("Show when routing w/ via clearance at end"), _("Show when routing and editing"), _("Show always") };
64 int m_OptDisplayTracksClearanceNChoices = sizeof( m_OptDisplayTracksClearanceChoices ) / sizeof( wxString );
65 m_OptDisplayTracksClearance = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_OptDisplayTracksClearanceNChoices, m_OptDisplayTracksClearanceChoices, 0 );
66 m_OptDisplayTracksClearance->SetSelection( 0 );
67 gbSizer2->Add( m_OptDisplayTracksClearance, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
68
69 m_OptDisplayPadClearence = new wxCheckBox( this, wxID_ANY, _("Show pad clearance"), wxDefaultPosition, wxDefaultSize, 0 );
70 gbSizer2->Add( m_OptDisplayPadClearence, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxALL, 5 );
71
72
73 bSizerPads->Add( gbSizer2, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
74
75
76 bSizerPads->Add( 0, 0, 1, wxEXPAND, 5 );
77
78
79 bSizer11->Add( bSizerPads, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
80
81
82 bupperSizer->Add( bSizer11, 1, wxEXPAND, 5 );
83
84
85 bupperSizer->Add( 15, 0, 0, 0, 5 );
86
87 m_optionsBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
88 wxPanel* fpEditorPage;
89 fpEditorPage = new wxPanel( m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
90 wxBoxSizer* fpEditorOptionsSizer;
91 fpEditorOptionsSizer = new wxBoxSizer( wxVERTICAL );
92
93
94 fpEditorPage->SetSizer( fpEditorOptionsSizer );
95 fpEditorPage->Layout();
96 fpEditorOptionsSizer->Fit( fpEditorPage );
97 m_optionsBook->AddPage( fpEditorPage, _("Footprint Editor"), false );
98 wxPanel* pcbPage;
99 pcbPage = new wxPanel( m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
100 wxBoxSizer* pcbOptionsSizer;
101 pcbOptionsSizer = new wxBoxSizer( wxVERTICAL );
102
103 wxBoxSizer* bMargins;
104 bMargins = new wxBoxSizer( wxVERTICAL );
105
106 m_annotationsLabel = new wxStaticText( pcbPage, wxID_ANY, _("Annotations"), wxDefaultPosition, wxDefaultSize, 0 );
107 m_annotationsLabel->Wrap( -1 );
108 bMargins->Add( m_annotationsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
109
110 m_staticline1 = new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
111 bMargins->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
112
113 wxGridBagSizer* gbSizer1;
114 gbSizer1 = new wxGridBagSizer( 2, 0 );
115 gbSizer1->SetFlexibleDirection( wxBOTH );
116 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
117
118 m_netNamesLabel = new wxStaticText( pcbPage, wxID_ANY, _("Net names:"), wxDefaultPosition, wxDefaultSize, 0 );
119 m_netNamesLabel->Wrap( -1 );
120 gbSizer1->Add( m_netNamesLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT, 5 );
121
122 wxString m_ShowNetNamesOptionChoices[] = { _("Do not show"), _("Show on pads"), _("Show on tracks"), _("Show on pads & tracks") };
123 int m_ShowNetNamesOptionNChoices = sizeof( m_ShowNetNamesOptionChoices ) / sizeof( wxString );
124 m_ShowNetNamesOption = new wxChoice( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_ShowNetNamesOptionNChoices, m_ShowNetNamesOptionChoices, 0 );
125 m_ShowNetNamesOption->SetSelection( 0 );
126 gbSizer1->Add( m_ShowNetNamesOption, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
127
128 m_OptDisplayPadNumber = new wxCheckBox( pcbPage, wxID_ANY, _("Show pad numbers"), wxDefaultPosition, wxDefaultSize, 0 );
129 m_OptDisplayPadNumber->SetValue(true);
130 gbSizer1->Add( m_OptDisplayPadNumber, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxALL, 5 );
131
132
133 bMargins->Add( gbSizer1, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
134
135
136 bMargins->Add( 0, 8, 0, 0, 5 );
137
138 m_staticText4 = new wxStaticText( pcbPage, wxID_ANY, _("Selection && Highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
139 m_staticText4->Wrap( -1 );
140 bMargins->Add( m_staticText4, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
141
142 m_staticline4 = new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
143 bMargins->Add( m_staticline4, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
144
145 wxBoxSizer* bSizer9;
146 bSizer9 = new wxBoxSizer( wxVERTICAL );
147
148 m_checkForceShowFieldsWhenFPSelected = new wxCheckBox( pcbPage, wxID_ANY, _("Show all fields when parent footprint is selected"), wxDefaultPosition, wxDefaultSize, 0 );
150 bSizer9->Add( m_checkForceShowFieldsWhenFPSelected, 0, wxALL, 5 );
151
152
153 bMargins->Add( bSizer9, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
154
155
156 bMargins->Add( 0, 8, 0, 0, 5 );
157
158 m_crossProbingLabel = new wxStaticText( pcbPage, wxID_ANY, _("Cross-probing"), wxDefaultPosition, wxDefaultSize, 0 );
159 m_crossProbingLabel->Wrap( -1 );
160 bMargins->Add( m_crossProbingLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
161
162 m_staticline3 = new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
163 bMargins->Add( m_staticline3, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
164
165 wxBoxSizer* bSizer8;
166 bSizer8 = new wxBoxSizer( wxVERTICAL );
167
168 m_checkCrossProbeOnSelection = new wxCheckBox( pcbPage, wxID_ANY, _("Select/highlight objects corresponding to schematic selection"), wxDefaultPosition, wxDefaultSize, 0 );
169 m_checkCrossProbeOnSelection->SetValue(true);
170 m_checkCrossProbeOnSelection->SetToolTip( _("Highlight footprints corresponding to selected symbols") );
171
172 bSizer8->Add( m_checkCrossProbeOnSelection, 0, wxALL, 5 );
173
174 m_checkCrossProbeCenter = new wxCheckBox( pcbPage, wxID_ANY, _("Center view on cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
175 m_checkCrossProbeCenter->SetValue(true);
176 m_checkCrossProbeCenter->SetToolTip( _("Ensures that cross-probed footprints are visible in the current view") );
177
178 bSizer8->Add( m_checkCrossProbeCenter, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
179
180 m_checkCrossProbeZoom = new wxCheckBox( pcbPage, wxID_ANY, _("Zoom to fit cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
181 m_checkCrossProbeZoom->SetValue(true);
182 bSizer8->Add( m_checkCrossProbeZoom, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
183
184 m_checkCrossProbeAutoHighlight = new wxCheckBox( pcbPage, wxID_ANY, _("Highlight cross-probed nets"), wxDefaultPosition, wxDefaultSize, 0 );
185 m_checkCrossProbeAutoHighlight->SetValue(true);
186 m_checkCrossProbeAutoHighlight->SetToolTip( _("Highlight nets when they are highlighted in the schematic editor") );
187
188 bSizer8->Add( m_checkCrossProbeAutoHighlight, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
189
190 m_checkCrossProbeFlash = new wxCheckBox( pcbPage, wxID_ANY, _("Flash cross-probed selection"), wxDefaultPosition, wxDefaultSize, 0 );
191 m_checkCrossProbeFlash->SetValue(true);
192 m_checkCrossProbeFlash->SetToolTip( _("Temporarily flash the newly cross-probed selection 3 times") );
193
194 bSizer8->Add( m_checkCrossProbeFlash, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
195
196 m_live3Drefresh = new wxCheckBox( pcbPage, wxID_ANY, _("Refresh 3D view automatically"), wxDefaultPosition, wxDefaultSize, 0 );
197 m_live3Drefresh->SetToolTip( _("When enabled, edits to the board will cause the 3D view to refresh (may be slow with larger boards)") );
198
199 bSizer8->Add( m_live3Drefresh, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
200
201
202 bMargins->Add( bSizer8, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
203
204
205 bMargins->Add( 0, 8, 1, wxEXPAND, 5 );
206
207
208 pcbOptionsSizer->Add( bMargins, 0, wxEXPAND, 5 );
209
210
211 pcbPage->SetSizer( pcbOptionsSizer );
212 pcbPage->Layout();
213 pcbOptionsSizer->Fit( pcbPage );
214 m_optionsBook->AddPage( pcbPage, _("PCB Editor"), true );
215
216 bupperSizer->Add( m_optionsBook, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
217
218
219 bMainSizer->Add( bupperSizer, 0, wxEXPAND, 5 );
220
221
222 this->SetSizer( bMainSizer );
223 this->Layout();
224 bMainSizer->Fit( this );
225}
226
const char * name
PANEL_DISPLAY_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)
RESETTABLE_PANEL(wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
#define _(s)