12APPEARANCE_CONTROLS_3D_BASE::APPEARANCE_CONTROLS_3D_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
WX_PANEL( parent, id, pos, size, style,
name )
14 this->SetMinSize( wxSize( 210,360 ) );
18 m_panelLayers =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
30 wxBoxSizer* bBottomMargin;
31 bBottomMargin =
new wxBoxSizer( wxVERTICAL );
33 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
34 bBottomMargin->Add(
m_staticline1, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 3 );
36 wxGridBagSizer* gbOtherOptions;
37 gbOtherOptions =
new wxGridBagSizer( 0, 0 );
38 gbOtherOptions->SetFlexibleDirection( wxBOTH );
39 gbOtherOptions->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
41 m_staticTextLayerSpacing =
new wxStaticText(
this, wxID_ANY,
_(
"Layer spacing ratio:"), wxDefaultPosition, wxDefaultSize, 0 );
45 m_layerScaleCtrl =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 100, 1, 0.5 );
47 gbOtherOptions->Add(
m_layerScaleCtrl, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
49 m_btnResetLayerScale =
new wxBitmapButton(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
53 gbOtherOptions->AddGrowableCol( 0 );
55 bBottomMargin->Add( gbOtherOptions, 1, wxEXPAND, 5 );
57 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
61 bPresets =
new wxBoxSizer( wxVERTICAL );
63 m_presetsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Presets (Ctrl+Tab):"), wxDefaultPosition, wxDefaultSize, 0 );
67 wxString m_cbLayerPresetsChoices[] = {
_(
"Follow PCB Editor"),
_(
"Follow PCB Plot Settings") };
68 int m_cbLayerPresetsNChoices =
sizeof( m_cbLayerPresetsChoices ) /
sizeof( wxString );
69 m_cbLayerPresets =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbLayerPresetsNChoices, m_cbLayerPresetsChoices, 0 );
74 bBottomMargin->Add( bPresets, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
77 bBottomMargin->Add( 0, 2, 0, wxEXPAND, 5 );
79 wxBoxSizer* bViewports;
80 bViewports =
new wxBoxSizer( wxVERTICAL );
82 m_viewportsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Viewports (Alt+Tab):"), wxDefaultPosition, wxDefaultSize, 0 );
86 wxString m_cbViewportsChoices[] = {
_(
"(unsaved)") };
87 int m_cbViewportsNChoices =
sizeof( m_cbViewportsChoices ) /
sizeof( wxString );
88 m_cbViewports =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbViewportsNChoices, m_cbViewportsChoices, 0 );
93 bBottomMargin->Add( bViewports, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
96 m_sizerOuter->Add( bBottomMargin, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );