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( 200,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 );
37 bPresets =
new wxBoxSizer( wxVERTICAL );
39 m_presetsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Presets (Ctrl+Tab):"), wxDefaultPosition, wxDefaultSize, 0 );
43 wxString m_cbLayerPresetsChoices[] = {
_(
"Follow PCB Editor"),
_(
"Follow PCB Plot Settings") };
44 int m_cbLayerPresetsNChoices =
sizeof( m_cbLayerPresetsChoices ) /
sizeof( wxString );
45 m_cbLayerPresets =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbLayerPresetsNChoices, m_cbLayerPresetsChoices, 0 );
50 bBottomMargin->Add( bPresets, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
53 bBottomMargin->Add( 0, 2, 0, wxEXPAND, 5 );
55 wxBoxSizer* bViewports;
56 bViewports =
new wxBoxSizer( wxVERTICAL );
58 m_viewportsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Viewports (Alt+Tab):"), wxDefaultPosition, wxDefaultSize, 0 );
62 wxString m_cbViewportsChoices[] = {
_(
"(unsaved)") };
63 int m_cbViewportsNChoices =
sizeof( m_cbViewportsChoices ) /
sizeof( wxString );
64 m_cbViewports =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbViewportsNChoices, m_cbViewportsChoices, 0 );
66 bViewports->Add(
m_cbViewports, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 2 );
69 bBottomMargin->Add( bViewports, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
72 m_sizerOuter->Add( bBottomMargin, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
virtual void onViewportChanged(wxCommandEvent &event)
wxScrolledCanvas * m_windowLayers
virtual void OnSetFocus(wxFocusEvent &event)
virtual void onUpdateViewportsCb(wxUpdateUIEvent &event)
virtual void OnSize(wxSizeEvent &event)
wxBoxSizer * m_panelLayersSizer
wxStaticLine * m_staticline1
wxChoice * m_cbLayerPresets
APPEARANCE_CONTROLS_3D_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)
wxBoxSizer * m_sizerOuter
wxStaticText * m_presetsLabel
virtual void onLayerPresetChanged(wxCommandEvent &event)
wxStaticText * m_viewportsLabel
~APPEARANCE_CONTROLS_3D_BASE()