KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_pcb_display_options_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_PCB_DISPLAY_OPTIONS_BASE::PANEL_PCB_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 m_galOptionsSizer = new wxBoxSizer( wxVERTICAL );
21
22
23 bupperSizer->Add( m_galOptionsSizer, 0, wxEXPAND|wxRIGHT, 10 );
24
25 m_optionsBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
26 wxPanel* emptyPage;
27 emptyPage = new wxPanel( m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
28 m_optionsBook->AddPage( emptyPage, _("a page"), false );
29 wxPanel* pcbPage;
30 pcbPage = new wxPanel( m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
31 wxBoxSizer* pcbOptionsSizer;
32 pcbOptionsSizer = new wxBoxSizer( wxVERTICAL );
33
34 wxBoxSizer* bMargins;
35 bMargins = new wxBoxSizer( wxVERTICAL );
36
37 m_annotationsLabel = new wxStaticText( pcbPage, wxID_ANY, _("Annotations"), wxDefaultPosition, wxDefaultSize, 0 );
38 m_annotationsLabel->Wrap( -1 );
39 bMargins->Add( m_annotationsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
40
41 m_staticline1 = new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
42 bMargins->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 5 );
43
44 wxGridBagSizer* gbSizer1;
45 gbSizer1 = new wxGridBagSizer( 2, 0 );
46 gbSizer1->SetFlexibleDirection( wxBOTH );
47 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
48
49 m_netNamesLabel = new wxStaticText( pcbPage, wxID_ANY, _("Net names:"), wxDefaultPosition, wxDefaultSize, 0 );
50 m_netNamesLabel->Wrap( -1 );
51 gbSizer1->Add( m_netNamesLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
52
53 wxString m_ShowNetNamesOptionChoices[] = { _("Do not show"), _("Show on pads"), _("Show on tracks"), _("Show on pads & tracks") };
54 int m_ShowNetNamesOptionNChoices = sizeof( m_ShowNetNamesOptionChoices ) / sizeof( wxString );
55 m_ShowNetNamesOption = new wxChoice( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_ShowNetNamesOptionNChoices, m_ShowNetNamesOptionChoices, 0 );
56 m_ShowNetNamesOption->SetSelection( 0 );
57 gbSizer1->Add( m_ShowNetNamesOption, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
58
59 m_OptDisplayPadNumber = new wxCheckBox( pcbPage, wxID_ANY, _("Show pad numbers"), wxDefaultPosition, wxDefaultSize, 0 );
60 m_OptDisplayPadNumber->SetValue(true);
61 gbSizer1->Add( m_OptDisplayPadNumber, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxALL, 5 );
62
63
64 bMargins->Add( gbSizer1, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
65
66
67 bMargins->Add( 0, 10, 0, wxEXPAND, 5 );
68
69 m_clearanceLabel = new wxStaticText( pcbPage, wxID_ANY, _("Clearance Outlines"), wxDefaultPosition, wxDefaultSize, 0 );
70 m_clearanceLabel->Wrap( -1 );
71 bMargins->Add( m_clearanceLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
72
73 m_staticline2 = new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
74 bMargins->Add( m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
75
76 wxGridBagSizer* gbSizer2;
77 gbSizer2 = new wxGridBagSizer( 2, 0 );
78 gbSizer2->SetFlexibleDirection( wxBOTH );
79 gbSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
80
81 m_trackClearancesLabel = new wxStaticText( pcbPage, wxID_ANY, _("Tracks:"), wxDefaultPosition, wxDefaultSize, 0 );
82 m_trackClearancesLabel->Wrap( -1 );
83 gbSizer2->Add( m_trackClearancesLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
84
85 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") };
86 int m_OptDisplayTracksClearanceNChoices = sizeof( m_OptDisplayTracksClearanceChoices ) / sizeof( wxString );
87 m_OptDisplayTracksClearance = new wxChoice( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_OptDisplayTracksClearanceNChoices, m_OptDisplayTracksClearanceChoices, 0 );
88 m_OptDisplayTracksClearance->SetSelection( 0 );
89 gbSizer2->Add( m_OptDisplayTracksClearance, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
90
91 m_OptDisplayPadClearence = new wxCheckBox( pcbPage, wxID_ANY, _("Show pad clearance"), wxDefaultPosition, wxDefaultSize, 0 );
92 gbSizer2->Add( m_OptDisplayPadClearence, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxALL, 5 );
93
94
95 bMargins->Add( gbSizer2, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
96
97
98 bMargins->Add( 0, 10, 0, wxEXPAND, 5 );
99
100 m_staticText4 = new wxStaticText( pcbPage, wxID_ANY, _("Selection && Highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
101 m_staticText4->Wrap( -1 );
102 bMargins->Add( m_staticText4, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
103
104 m_staticline4 = new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
105 bMargins->Add( m_staticline4, 0, wxEXPAND|wxBOTTOM, 5 );
106
107 wxBoxSizer* bSizer9;
108 bSizer9 = new wxBoxSizer( wxVERTICAL );
109
110 m_checkForceShowFieldsWhenFPSelected = new wxCheckBox( pcbPage, wxID_ANY, _("Show all fields when parent footprint is selected"), wxDefaultPosition, wxDefaultSize, 0 );
112 bSizer9->Add( m_checkForceShowFieldsWhenFPSelected, 0, wxALL, 5 );
113
114
115 bMargins->Add( bSizer9, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
116
117
118 bMargins->Add( 0, 10, 0, wxEXPAND, 5 );
119
120 m_crossProbingLabel = new wxStaticText( pcbPage, wxID_ANY, _("Cross-probing"), wxDefaultPosition, wxDefaultSize, 0 );
121 m_crossProbingLabel->Wrap( -1 );
122 bMargins->Add( m_crossProbingLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
123
124 m_staticline3 = new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
125 bMargins->Add( m_staticline3, 0, wxEXPAND|wxBOTTOM, 5 );
126
127 wxBoxSizer* bSizer8;
128 bSizer8 = new wxBoxSizer( wxVERTICAL );
129
130 m_checkCrossProbeOnSelection = new wxCheckBox( pcbPage, wxID_ANY, _("Select/highlight objects corresponding to schematic selection"), wxDefaultPosition, wxDefaultSize, 0 );
131 m_checkCrossProbeOnSelection->SetValue(true);
132 m_checkCrossProbeOnSelection->SetToolTip( _("Highlight footprints corresponding to selected symbols") );
133
134 bSizer8->Add( m_checkCrossProbeOnSelection, 0, wxALL, 5 );
135
136 m_checkCrossProbeCenter = new wxCheckBox( pcbPage, wxID_ANY, _("Center view on cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
137 m_checkCrossProbeCenter->SetValue(true);
138 m_checkCrossProbeCenter->SetToolTip( _("Ensures that cross-probed footprints are visible in the current view") );
139
140 bSizer8->Add( m_checkCrossProbeCenter, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
141
142 m_checkCrossProbeZoom = new wxCheckBox( pcbPage, wxID_ANY, _("Zoom to fit cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
143 m_checkCrossProbeZoom->SetValue(true);
144 bSizer8->Add( m_checkCrossProbeZoom, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
145
146 m_checkCrossProbeAutoHighlight = new wxCheckBox( pcbPage, wxID_ANY, _("Highlight cross-probed nets"), wxDefaultPosition, wxDefaultSize, 0 );
147 m_checkCrossProbeAutoHighlight->SetValue(true);
148 m_checkCrossProbeAutoHighlight->SetToolTip( _("Highlight nets when they are highlighted in the schematic editor") );
149
150 bSizer8->Add( m_checkCrossProbeAutoHighlight, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
151
152 m_live3Drefresh = new wxCheckBox( pcbPage, wxID_ANY, _("Refresh 3D view automatically"), wxDefaultPosition, wxDefaultSize, 0 );
153 m_live3Drefresh->SetToolTip( _("When enabled, edits to the board will cause the 3D view to refresh (may be slow with larger boards)") );
154
155 bSizer8->Add( m_live3Drefresh, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
156
157
158 bMargins->Add( bSizer8, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
159
160
161 pcbOptionsSizer->Add( bMargins, 1, wxEXPAND, 5 );
162
163
164 pcbPage->SetSizer( pcbOptionsSizer );
165 pcbPage->Layout();
166 pcbOptionsSizer->Fit( pcbPage );
167 m_optionsBook->AddPage( pcbPage, _("a page"), false );
168
169 bupperSizer->Add( m_optionsBook, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
170
171
172 bMainSizer->Add( bupperSizer, 0, wxEXPAND, 5 );
173
174
175 this->SetSizer( bMainSizer );
176 this->Layout();
177 bMainSizer->Fit( this );
178}
179
181{
182}
const char * name
Definition: DXF_plotter.cpp:57
PANEL_PCB_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)
A wxPanel that is designed to be reset in a standard manner.
#define _(s)