KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_3D_display_options_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_3D_DISPLAY_OPTIONS_BASE::PANEL_3D_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 )
13{
14 wxBoxSizer* bSizerMain;
15 bSizerMain = new wxBoxSizer( wxHORIZONTAL );
16
17 wxBoxSizer* bSizer7;
18 bSizer7 = new wxBoxSizer( wxVERTICAL );
19
20 wxBoxSizer* bSizeLeft;
21 bSizeLeft = new wxBoxSizer( wxVERTICAL );
22
23 m_renderOptionsLabel = new wxStaticText( this, wxID_ANY, _("Render Options"), wxDefaultPosition, wxDefaultSize, 0 );
24 m_renderOptionsLabel->Wrap( -1 );
25 bSizeLeft->Add( m_renderOptionsLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
26
27 m_staticline4 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
28 bSizeLeft->Add( m_staticline4, 0, wxEXPAND|wxBOTTOM, 5 );
29
30 wxFlexGridSizer* fgSizer2;
31 fgSizer2 = new wxFlexGridSizer( 0, 1, 5, 0 );
32 fgSizer2->SetFlexibleDirection( wxBOTH );
33 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
34
35 m_checkBoxClipSilkOnViaAnnulus = new wxCheckBox( this, wxID_ANY, _("Clip silkscreen at via annuli"), wxDefaultPosition, wxDefaultSize, 0 );
36 fgSizer2->Add( m_checkBoxClipSilkOnViaAnnulus, 0, wxLEFT, 5 );
37
38 m_checkBoxSubtractMaskFromSilk = new wxCheckBox( this, wxID_ANY, _("Clip silkscreen at solder mask edges"), wxDefaultPosition, wxDefaultSize, 0 );
39 fgSizer2->Add( m_checkBoxSubtractMaskFromSilk, 0, wxLEFT, 5 );
40
41 m_checkBoxAreas = new wxCheckBox( this, wxID_ANY, _("Show filled areas in zones"), wxDefaultPosition, wxDefaultSize, 0 );
42 fgSizer2->Add( m_checkBoxAreas, 0, wxRIGHT|wxLEFT, 5 );
43
44 m_checkBoxRenderPlatedPadsAsPlated = new wxCheckBox( this, wxID_ANY, _("Use bare copper color for unplated copper (slow)"), wxDefaultPosition, wxDefaultSize, 0 );
45 m_checkBoxRenderPlatedPadsAsPlated->SetToolTip( _("Use different colors for plated and unplated copper. (Slow)") );
46
47 fgSizer2->Add( m_checkBoxRenderPlatedPadsAsPlated, 0, wxRIGHT|wxLEFT, 5 );
48
49 wxBoxSizer* bSizerMaterials;
50 bSizerMaterials = new wxBoxSizer( wxHORIZONTAL );
51
52 m_materialPropertiesLabel = new wxStaticText( this, wxID_ANY, _("Material properties:"), wxDefaultPosition, wxDefaultSize, 0 );
53 m_materialPropertiesLabel->Wrap( -1 );
54 bSizerMaterials->Add( m_materialPropertiesLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
55
56 wxString m_materialPropertiesChoices[] = { _("Realistic"), _("Solid colors"), _("CAD colors") };
57 int m_materialPropertiesNChoices = sizeof( m_materialPropertiesChoices ) / sizeof( wxString );
58 m_materialProperties = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_materialPropertiesNChoices, m_materialPropertiesChoices, 0 );
59 m_materialProperties->SetSelection( 0 );
60 bSizerMaterials->Add( m_materialProperties, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
61
62
63 fgSizer2->Add( bSizerMaterials, 1, wxEXPAND, 5 );
64
65
66 bSizeLeft->Add( fgSizer2, 1, wxEXPAND|wxTOP|wxLEFT, 5 );
67
68
69 bSizer7->Add( bSizeLeft, 0, wxEXPAND|wxRIGHT, 20 );
70
71 wxBoxSizer* bSizerRight;
72 bSizerRight = new wxBoxSizer( wxVERTICAL );
73
74 m_cameraOptionsLabel = new wxStaticText( this, wxID_ANY, _("Camera Options"), wxDefaultPosition, wxDefaultSize, 0 );
75 m_cameraOptionsLabel->Wrap( -1 );
76 bSizerRight->Add( m_cameraOptionsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
77
78 m_staticline5 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
79 bSizerRight->Add( m_staticline5, 0, wxEXPAND|wxBOTTOM, 5 );
80
81 wxBoxSizer* bSizerRotAngle;
82 bSizerRotAngle = new wxBoxSizer( wxHORIZONTAL );
83
84 m_staticTextRotAngle = new wxStaticText( this, wxID_ANY, _("Rotation increment:"), wxDefaultPosition, wxDefaultSize, 0 );
85 m_staticTextRotAngle->Wrap( -1 );
86 bSizerRotAngle->Add( m_staticTextRotAngle, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
87
88 m_spinCtrlRotationAngle = new wxSpinCtrlDouble( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 359, 10, 1 );
89 m_spinCtrlRotationAngle->SetDigits( 0 );
90 bSizerRotAngle->Add( m_spinCtrlRotationAngle, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
91
92 m_staticTextRotAngleUnits = new wxStaticText( this, wxID_ANY, _("deg"), wxDefaultPosition, wxDefaultSize, 0 );
93 m_staticTextRotAngleUnits->Wrap( -1 );
94 bSizerRotAngle->Add( m_staticTextRotAngleUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
95
96
97 bSizerRight->Add( bSizerRotAngle, 0, wxTOP|wxLEFT, 5 );
98
99 wxBoxSizer* bSizerSlider;
100 bSizerSlider = new wxBoxSizer( wxHORIZONTAL );
101
102 m_checkBoxEnableAnimation = new wxCheckBox( this, wxID_ANY, _("Redraw while moving"), wxDefaultPosition, wxDefaultSize, 0 );
103 m_checkBoxEnableAnimation->SetValue(true);
104 bSizerSlider->Add( m_checkBoxEnableAnimation, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
105
106 m_staticAnimationSpeed = new wxStaticText( this, wxID_ANY, _("Redraw speed:"), wxDefaultPosition, wxDefaultSize, 0 );
107 m_staticAnimationSpeed->Wrap( -1 );
108 bSizerSlider->Add( m_staticAnimationSpeed, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
109
110 m_sliderAnimationSpeed = new wxSlider( this, wxID_ANY, 3, 1, 5, wxDefaultPosition, wxDefaultSize, wxSL_AUTOTICKS|wxSL_HORIZONTAL|wxSL_LABELS );
111 bSizerSlider->Add( m_sliderAnimationSpeed, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
112
113
114 bSizerRight->Add( bSizerSlider, 0, wxEXPAND|wxLEFT, 5 );
115
116
117 bSizer7->Add( bSizerRight, 0, wxEXPAND|wxTOP, 15 );
118
119
120 bSizerMain->Add( bSizer7, 1, 0, 5 );
121
122
123 this->SetSizer( bSizerMain );
124 this->Layout();
125 bSizerMain->Fit( this );
126
127 // Connect Events
128 m_checkBoxEnableAnimation->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_3D_DISPLAY_OPTIONS_BASE::OnCheckEnableAnimation ), NULL, this );
129}
130
132{
133 // Disconnect Events
134 m_checkBoxEnableAnimation->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_3D_DISPLAY_OPTIONS_BASE::OnCheckEnableAnimation ), NULL, this );
135
136}
const char * name
Definition: DXF_plotter.cpp:57
PANEL_3D_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)
virtual void OnCheckEnableAnimation(wxCommandEvent &event)
A wxPanel that is designed to be reset in a standard manner.
#define _(s)