14PANEL_3D_OPENGL_OPTIONS_BASE::PANEL_3D_OPENGL_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 )
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 m_renderingLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Rendering Options"), wxDefaultPosition, wxDefaultSize, 0 );
24 bSizerMain->Add( 0, 3, 0, wxEXPAND, 5 );
26 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
29 wxBoxSizer* bSizerMargins;
30 bSizerMargins =
new wxBoxSizer( wxVERTICAL );
32 m_checkBoxBoundingBoxes =
new wxCheckBox(
this, wxID_ANY,
_(
"Show model bounding boxes"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_checkBoxCuThickness =
new wxCheckBox(
this, wxID_ANY,
_(
"Show copper and tech layers thickness (very slow)"), wxDefaultPosition, wxDefaultSize, 0 );
42 gSizer1 =
new wxGridSizer( 0, 2, 0, 0 );
44 m_staticText221 =
new wxStaticText(
this, wxID_ANY,
_(
"Anti-aliasing:"), wxDefaultPosition, wxDefaultSize, 0 );
46 gSizer1->Add(
m_staticText221, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
48 wxString m_choiceAntiAliasingChoices[] = {
_(
"Disabled"),
_(
"2x"),
_(
"4x"),
_(
"8x") };
49 int m_choiceAntiAliasingNChoices =
sizeof( m_choiceAntiAliasingChoices ) /
sizeof( wxString );
50 m_choiceAntiAliasing =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceAntiAliasingNChoices, m_choiceAntiAliasingChoices, 0 );
52 m_choiceAntiAliasing->SetToolTip(
_(
"3D-Viewer must be closed and re-opened to apply this setting") );
54 gSizer1->Add(
m_choiceAntiAliasing, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
56 m_selectionColorLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Selection color:"), wxDefaultPosition, wxDefaultSize, 0 );
64 bSizerMargins->Add( gSizer1, 0, 0, 5 );
67 bSizerMain->Add( bSizerMargins, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
70 bSizerMain->Add( 0, 15, 0, wxEXPAND, 5 );
72 m_movingLabel =
new wxStaticText(
this, wxID_ANY,
_(
"While Moving"), wxDefaultPosition, wxDefaultSize, 0 );
74 bSizerMain->Add(
m_movingLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
77 bSizerMain->Add( 0, 3, 0, wxEXPAND, 5 );
79 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
83 bSizer3 =
new wxBoxSizer( wxVERTICAL );
85 m_checkBoxDisableAAMove =
new wxCheckBox(
this, wxID_ANY,
_(
"Disable anti-aliasing"), wxDefaultPosition, wxDefaultSize, 0 );
98 bSizerMain->Add( bSizer3, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
101 this->SetSizer( bSizerMain );
103 bSizerMain->Fit(
this );
A simple color swatch of the kind used to set layer colors.
wxStaticLine * m_staticline2
wxStaticText * m_selectionColorLabel
wxCheckBox * m_checkBoxDisableMoveThickness
wxStaticText * m_movingLabel
COLOR_SWATCH * m_selectionColorSwatch
wxCheckBox * m_checkBoxDisableMoveVias
wxCheckBox * m_checkBoxDisableAAMove
~PANEL_3D_OPENGL_OPTIONS_BASE()
wxStaticText * m_staticText221
PANEL_3D_OPENGL_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)
wxStaticText * m_renderingLabel
wxCheckBox * m_checkBoxCuThickness
wxCheckBox * m_checkBoxBoundingBoxes
wxChoice * m_choiceAntiAliasing
wxCheckBox * m_checkBoxDisableMoveHoles
wxStaticLine * m_staticline1
wxCheckBox * m_checkBoxHighlightOnRollOver
A wxPanel that is designed to be reset in a standard manner.