12PANEL_PROJECT_DEFAULTS_BASE::PANEL_PROJECT_DEFAULTS_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 );
21 bupperSizer->Add( 15, 0, 0, 0, 5 );
23 wxBoxSizer* pcbOptionsSizer;
24 pcbOptionsSizer =
new wxBoxSizer( wxVERTICAL );
27 bMargins =
new wxBoxSizer( wxVERTICAL );
30 bMargins->Add( 0, 8, 0, 0, 5 );
32 m_defaultOpacityLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Default Opacity"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_staticline6 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
37 bMargins->Add(
m_staticline6, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
39 wxFlexGridSizer* fgSizer1;
40 fgSizer1 =
new wxFlexGridSizer( 0, 3, 0, 0 );
41 fgSizer1->SetFlexibleDirection( wxBOTH );
42 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
44 m_trackOpacityLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Tracks:"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_OptTrackOpacity =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 100 );
51 m_opacityUnit =
new wxStaticText(
this, wxID_ANY,
_(
"%"), wxDefaultPosition, wxDefaultSize, 0 );
55 m_viaOpacityLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Vias:"), wxDefaultPosition, wxDefaultSize, 0 );
59 m_OptViaOpacity =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 100 );
62 m_opacityUnit1 =
new wxStaticText(
this, wxID_ANY,
_(
"%"), wxDefaultPosition, wxDefaultSize, 0 );
66 m_padOpacityLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Pads:"), wxDefaultPosition, wxDefaultSize, 0 );
70 m_OptPadOpacity =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 100 );
73 m_opacityUnit2 =
new wxStaticText(
this, wxID_ANY,
_(
"%"), wxDefaultPosition, wxDefaultSize, 0 );
77 m_zoneOpacityLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Zones:"), wxDefaultPosition, wxDefaultSize, 0 );
81 m_OptZoneOpacity =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 60 );
84 m_opacityUnit3 =
new wxStaticText(
this, wxID_ANY,
_(
"%"), wxDefaultPosition, wxDefaultSize, 0 );
92 m_OptFilledShapeOpacity =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 100 );
95 m_opacityUnit4 =
new wxStaticText(
this, wxID_ANY,
_(
"%"), wxDefaultPosition, wxDefaultSize, 0 );
99 m_imageOpacityLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Images:"), wxDefaultPosition, wxDefaultSize, 0 );
103 m_OptImageOpacity =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 60 );
106 m_opacityUnit5 =
new wxStaticText(
this, wxID_ANY,
_(
"%"), wxDefaultPosition, wxDefaultSize, 0 );
114 m_OptOutsideGroupOpacity =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 60 );
117 m_opacityUnit6 =
new wxStaticText(
this, wxID_ANY,
_(
"%"), wxDefaultPosition, wxDefaultSize, 0 );
122 bMargins->Add( fgSizer1, 1, wxEXPAND, 5 );
125 bMargins->Add( 0, 0, 1, wxEXPAND, 5 );
128 pcbOptionsSizer->Add( bMargins, 0, wxEXPAND, 5 );
131 bupperSizer->Add( pcbOptionsSizer, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
134 bMainSizer->Add( bupperSizer, 0, wxEXPAND, 5 );
137 this->SetSizer( bMainSizer );
139 bMainSizer->Fit(
this );