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 )
14 wxBoxSizer* bSizerMain;
15 bSizerMain =
new wxBoxSizer( wxHORIZONTAL );
18 bSizer7 =
new wxBoxSizer( wxVERTICAL );
20 wxBoxSizer* bSizeLeft;
21 bSizeLeft =
new wxBoxSizer( wxVERTICAL );
23 m_renderOptionsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Render Options"), wxDefaultPosition, wxDefaultSize, 0 );
27 m_staticline4 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
30 wxFlexGridSizer* fgSizer2;
31 fgSizer2 =
new wxFlexGridSizer( 0, 1, 5, 0 );
32 fgSizer2->SetFlexibleDirection( wxBOTH );
33 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
41 m_checkBoxAreas =
new wxCheckBox(
this, wxID_ANY,
_(
"Show filled areas in zones"), wxDefaultPosition, wxDefaultSize, 0 );
49 wxBoxSizer* bSizerMaterials;
50 bSizerMaterials =
new wxBoxSizer( wxHORIZONTAL );
52 m_materialPropertiesLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Material properties:"), wxDefaultPosition, wxDefaultSize, 0 );
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 );
63 fgSizer2->Add( bSizerMaterials, 1, wxEXPAND, 5 );
66 bSizeLeft->Add( fgSizer2, 1, wxEXPAND|wxTOP|wxLEFT, 5 );
69 bSizer7->Add( bSizeLeft, 0, wxEXPAND|wxRIGHT, 20 );
71 wxBoxSizer* bSizerRight;
72 bSizerRight =
new wxBoxSizer( wxVERTICAL );
74 m_cameraOptionsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Camera Options"), wxDefaultPosition, wxDefaultSize, 0 );
78 m_staticline5 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
81 wxBoxSizer* bSizerRotAngle;
82 bSizerRotAngle =
new wxBoxSizer( wxHORIZONTAL );
84 m_staticTextRotAngle =
new wxStaticText(
this, wxID_ANY,
_(
"Rotation increment:"), wxDefaultPosition, wxDefaultSize, 0 );
88 m_spinCtrlRotationAngle =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 359, 10, 1 );
97 bSizerRight->Add( bSizerRotAngle, 0, wxTOP|wxLEFT, 5 );
99 wxBoxSizer* bSizerSlider;
100 bSizerSlider =
new wxBoxSizer( wxHORIZONTAL );
106 m_staticAnimationSpeed =
new wxStaticText(
this, wxID_ANY,
_(
"Redraw speed:"), wxDefaultPosition, wxDefaultSize, 0 );
110 m_sliderAnimationSpeed =
new wxSlider(
this, wxID_ANY, 3, 1, 5, wxDefaultPosition, wxDefaultSize, wxSL_AUTOTICKS|wxSL_HORIZONTAL|wxSL_LABELS );
114 bSizerRight->Add( bSizerSlider, 0, wxEXPAND|wxLEFT, 5 );
117 bSizer7->Add( bSizerRight, 0, wxEXPAND|wxTOP, 15 );
120 bSizerMain->Add( bSizer7, 1, 0, 5 );
123 this->SetSizer( bSizerMain );
125 bSizerMain->Fit(
this );
wxStaticText * m_renderOptionsLabel
wxStaticText * m_staticAnimationSpeed
wxStaticText * m_materialPropertiesLabel
wxStaticText * m_staticTextRotAngle
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)
wxCheckBox * m_checkBoxEnableAnimation
wxCheckBox * m_checkBoxClipSilkOnViaAnnulus
wxCheckBox * m_checkBoxRenderPlatedPadsAsPlated
wxStaticLine * m_staticline4
wxSlider * m_sliderAnimationSpeed
virtual void OnCheckEnableAnimation(wxCommandEvent &event)
wxChoice * m_materialProperties
wxCheckBox * m_checkBoxAreas
wxSpinCtrlDouble * m_spinCtrlRotationAngle
wxCheckBox * m_checkBoxSubtractMaskFromSilk
wxStaticText * m_staticTextRotAngleUnits
wxStaticLine * m_staticline5
~PANEL_3D_DISPLAY_OPTIONS_BASE()
wxStaticText * m_cameraOptionsLabel
A wxPanel that is designed to be reset in a standard manner.