KiCad PCB EDA Suite
Loading...
Searching...
No Matches
appearance_controls_3D_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
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 )
13{
14 this->SetMinSize( wxSize( 200,360 ) );
15
16 m_sizerOuter = new wxBoxSizer( wxVERTICAL );
17
18 m_panelLayers = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
19 m_panelLayersSizer = new wxBoxSizer( wxVERTICAL );
20
21 m_windowLayers = new wxScrolledCanvas( m_panelLayers, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL );
22 m_panelLayersSizer->Add( m_windowLayers, 1, wxEXPAND, 5 );
23
24
26 m_panelLayers->Layout();
28 m_sizerOuter->Add( m_panelLayers, 1, wxEXPAND, 5 );
29
30 wxBoxSizer* bBottomMargin;
31 bBottomMargin = new wxBoxSizer( wxVERTICAL );
32
33 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
34 bBottomMargin->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 3 );
35
36 wxBoxSizer* bPresets;
37 bPresets = new wxBoxSizer( wxVERTICAL );
38
39 m_presetsLabel = new wxStaticText( this, wxID_ANY, _("Presets (Ctrl+Tab):"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_presetsLabel->Wrap( -1 );
41 bPresets->Add( m_presetsLabel, 1, wxRIGHT|wxLEFT, 2 );
42
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 );
46 m_cbLayerPresets->SetSelection( 1 );
47 bPresets->Add( m_cbLayerPresets, 0, wxALL|wxEXPAND, 2 );
48
49
50 bBottomMargin->Add( bPresets, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
51
52
53 bBottomMargin->Add( 0, 2, 0, wxEXPAND, 5 );
54
55 wxBoxSizer* bViewports;
56 bViewports = new wxBoxSizer( wxVERTICAL );
57
58 m_viewportsLabel = new wxStaticText( this, wxID_ANY, _("Viewports (Alt+Tab):"), wxDefaultPosition, wxDefaultSize, 0 );
59 m_viewportsLabel->Wrap( -1 );
60 bViewports->Add( m_viewportsLabel, 1, wxRIGHT|wxLEFT, 2 );
61
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 );
65 m_cbViewports->SetSelection( 1 );
66 bViewports->Add( m_cbViewports, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 2 );
67
68
69 bBottomMargin->Add( bViewports, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
70
71
72 m_sizerOuter->Add( bBottomMargin, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
73
74
75 this->SetSizer( m_sizerOuter );
76 this->Layout();
77 m_sizerOuter->Fit( this );
78
79 // Connect Events
80 this->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( APPEARANCE_CONTROLS_3D_BASE::OnSetFocus ) );
81 this->Connect( wxEVT_SIZE, wxSizeEventHandler( APPEARANCE_CONTROLS_3D_BASE::OnSize ) );
82 m_panelLayers->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( APPEARANCE_CONTROLS_3D_BASE::OnSetFocus ), NULL, this );
83 m_cbLayerPresets->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( APPEARANCE_CONTROLS_3D_BASE::onLayerPresetChanged ), NULL, this );
84 m_cbViewports->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( APPEARANCE_CONTROLS_3D_BASE::onViewportChanged ), NULL, this );
85 m_cbViewports->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( APPEARANCE_CONTROLS_3D_BASE::onUpdateViewportsCb ), NULL, this );
86}
87
89{
90 // Disconnect Events
91 this->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( APPEARANCE_CONTROLS_3D_BASE::OnSetFocus ) );
92 this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( APPEARANCE_CONTROLS_3D_BASE::OnSize ) );
93 m_panelLayers->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( APPEARANCE_CONTROLS_3D_BASE::OnSetFocus ), NULL, this );
94 m_cbLayerPresets->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( APPEARANCE_CONTROLS_3D_BASE::onLayerPresetChanged ), NULL, this );
95 m_cbViewports->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( APPEARANCE_CONTROLS_3D_BASE::onViewportChanged ), NULL, this );
96 m_cbViewports->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( APPEARANCE_CONTROLS_3D_BASE::onUpdateViewportsCb ), NULL, this );
97
98}
const char * name
Definition: DXF_plotter.cpp:57
virtual void onViewportChanged(wxCommandEvent &event)
virtual void OnSetFocus(wxFocusEvent &event)
virtual void onUpdateViewportsCb(wxUpdateUIEvent &event)
virtual void OnSize(wxSizeEvent &event)
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)
virtual void onLayerPresetChanged(wxCommandEvent &event)
#define _(s)