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 )
14 wxBoxSizer* bMainSizer;
15 bMainSizer =
new wxBoxSizer( wxVERTICAL );
17 wxBoxSizer* bupperSizer;
18 bupperSizer =
new wxBoxSizer( wxHORIZONTAL );
25 m_optionsBook =
new wxSimplebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
27 emptyPage =
new wxPanel(
m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
30 pcbPage =
new wxPanel(
m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
31 wxBoxSizer* pcbOptionsSizer;
32 pcbOptionsSizer =
new wxBoxSizer( wxVERTICAL );
35 bMargins =
new wxBoxSizer( wxVERTICAL );
37 m_annotationsLabel =
new wxStaticText( pcbPage, wxID_ANY,
_(
"Annotations"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_staticline1 =
new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
44 wxGridBagSizer* gbSizer1;
45 gbSizer1 =
new wxGridBagSizer( 2, 0 );
46 gbSizer1->SetFlexibleDirection( wxBOTH );
47 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
49 m_netNamesLabel =
new wxStaticText( pcbPage, wxID_ANY,
_(
"Net names:"), wxDefaultPosition, wxDefaultSize, 0 );
51 gbSizer1->Add(
m_netNamesLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
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 );
57 gbSizer1->Add(
m_ShowNetNamesOption, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
59 m_OptDisplayPadNumber =
new wxCheckBox( pcbPage, wxID_ANY,
_(
"Show pad numbers"), wxDefaultPosition, wxDefaultSize, 0 );
64 bMargins->Add( gbSizer1, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
67 bMargins->Add( 0, 10, 0, wxEXPAND, 5 );
69 m_clearanceLabel =
new wxStaticText( pcbPage, wxID_ANY,
_(
"Clearance Outlines"), wxDefaultPosition, wxDefaultSize, 0 );
73 m_staticline2 =
new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
76 wxGridBagSizer* gbSizer2;
77 gbSizer2 =
new wxGridBagSizer( 2, 0 );
78 gbSizer2->SetFlexibleDirection( wxBOTH );
79 gbSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
81 m_trackClearancesLabel =
new wxStaticText( pcbPage, wxID_ANY,
_(
"Tracks:"), wxDefaultPosition, wxDefaultSize, 0 );
83 gbSizer2->Add(
m_trackClearancesLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
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 );
91 m_OptDisplayPadClearence =
new wxCheckBox( pcbPage, wxID_ANY,
_(
"Show pad clearance"), wxDefaultPosition, wxDefaultSize, 0 );
95 bMargins->Add( gbSizer2, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
98 bMargins->Add( 0, 10, 0, wxEXPAND, 5 );
100 m_staticText4 =
new wxStaticText( pcbPage, wxID_ANY,
_(
"Selection && Highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
104 m_staticline4 =
new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
108 bSizer9 =
new wxBoxSizer( wxVERTICAL );
115 bMargins->Add( bSizer9, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
118 bMargins->Add( 0, 10, 0, wxEXPAND, 5 );
120 m_crossProbingLabel =
new wxStaticText( pcbPage, wxID_ANY,
_(
"Cross-probing"), wxDefaultPosition, wxDefaultSize, 0 );
124 m_staticline3 =
new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
128 bSizer8 =
new wxBoxSizer( wxVERTICAL );
130 m_checkCrossProbeOnSelection =
new wxCheckBox( pcbPage, wxID_ANY,
_(
"Select/highlight objects corresponding to schematic selection"), wxDefaultPosition, wxDefaultSize, 0 );
136 m_checkCrossProbeCenter =
new wxCheckBox( pcbPage, wxID_ANY,
_(
"Center view on cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
142 m_checkCrossProbeZoom =
new wxCheckBox( pcbPage, wxID_ANY,
_(
"Zoom to fit cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
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)") );
158 bMargins->Add( bSizer8, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
161 pcbOptionsSizer->Add( bMargins, 1, wxEXPAND, 5 );
164 pcbPage->SetSizer( pcbOptionsSizer );
166 pcbOptionsSizer->Fit( pcbPage );
169 bupperSizer->Add(
m_optionsBook, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
172 bMainSizer->Add( bupperSizer, 0, wxEXPAND, 5 );
175 this->SetSizer( bMainSizer );
177 bMainSizer->Fit(
this );
wxCheckBox * m_checkForceShowFieldsWhenFPSelected
wxCheckBox * m_checkCrossProbeOnSelection
wxBoxSizer * m_galOptionsSizer
wxCheckBox * m_checkCrossProbeAutoHighlight
wxStaticLine * m_staticline4
wxChoice * m_ShowNetNamesOption
wxCheckBox * m_OptDisplayPadClearence
wxSimplebook * m_optionsBook
wxCheckBox * m_checkCrossProbeCenter
wxStaticLine * m_staticline2
wxStaticLine * m_staticline1
wxStaticText * m_annotationsLabel
wxStaticText * m_staticText4
wxChoice * m_OptDisplayTracksClearance
wxStaticText * m_clearanceLabel
wxStaticText * m_trackClearancesLabel
wxStaticText * m_crossProbingLabel
wxCheckBox * m_live3Drefresh
wxStaticLine * m_staticline3
wxStaticText * m_netNamesLabel
wxCheckBox * m_OptDisplayPadNumber
~PANEL_PCB_DISPLAY_OPTIONS_BASE()
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)
wxCheckBox * m_checkCrossProbeZoom
A wxPanel that is designed to be reset in a standard manner.