2021-06-11 09:17:52 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2022-10-01 22:53:15 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
2021-06-11 09:17:52 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "panel_3D_display_options_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2021-11-01 11:20:13 +00:00
|
|
|
PANEL_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 )
|
2021-06-11 09:17:52 +00:00
|
|
|
{
|
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2021-10-21 11:37:45 +00:00
|
|
|
wxBoxSizer* bSizer7;
|
|
|
|
bSizer7 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2021-06-11 09:17:52 +00:00
|
|
|
wxBoxSizer* bSizeLeft;
|
|
|
|
bSizeLeft = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_boardLayersLabel = new wxStaticText( this, wxID_ANY, _("Board Layers"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_boardLayersLabel->Wrap( -1 );
|
|
|
|
bSizeLeft->Add( m_boardLayersLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
|
|
|
|
|
|
|
|
m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
bSizeLeft->Add( m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2021-10-21 11:37:45 +00:00
|
|
|
wxFlexGridSizer* fgSizer1;
|
2023-01-11 01:00:47 +00:00
|
|
|
fgSizer1 = new wxFlexGridSizer( 0, 1, 4, 0 );
|
2021-10-21 11:37:45 +00:00
|
|
|
fgSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_checkBoxSilkscreen = new wxCheckBox( this, wxID_ANY, _("Show silkscreen layers"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizer1->Add( m_checkBoxSilkscreen, 0, wxLEFT, 5 );
|
2021-10-21 11:37:45 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_checkBoxSubtractMaskFromSilk = new wxCheckBox( this, wxID_ANY, _("Clip silkscreen at solder mask edges"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-10-21 11:37:45 +00:00
|
|
|
fgSizer1->Add( m_checkBoxSubtractMaskFromSilk, 0, wxLEFT, 25 );
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_checkBoxClipSilkOnViaAnnulus = new wxCheckBox( this, wxID_ANY, _("Clip silkscreen at via annuli"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-10-21 11:37:45 +00:00
|
|
|
fgSizer1->Add( m_checkBoxClipSilkOnViaAnnulus, 0, wxLEFT, 25 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_checkBoxSolderMask = new wxCheckBox( this, wxID_ANY, _("Show solder mask layers"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizer1->Add( m_checkBoxSolderMask, 0, wxTOP|wxLEFT, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_checkBoxSolderpaste = new wxCheckBox( this, wxID_ANY, _("Show solder paste layers"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizer1->Add( m_checkBoxSolderpaste, 0, wxLEFT, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_checkBoxAdhesive = new wxCheckBox( this, wxID_ANY, _("Show adhesive layers"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizer1->Add( m_checkBoxAdhesive, 0, wxLEFT, 5 );
|
2021-10-21 11:37:45 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizeLeft->Add( fgSizer1, 0, wxEXPAND|wxALL, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizeLeft->Add( 0, 15, 0, wxEXPAND, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_userLayersLabel = new wxStaticText( this, wxID_ANY, _("User Layers (not shown in realistic mode)"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_userLayersLabel->Wrap( -1 );
|
|
|
|
bSizeLeft->Add( m_userLayersLabel, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 13 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_staticline31 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
bSizeLeft->Add( m_staticline31, 0, wxEXPAND|wxBOTTOM, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizeLeft->Add( 0, 5, 0, wxEXPAND, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_checkBoxComments = new wxCheckBox( this, wxID_ANY, _("Show comment and drawing layers"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizeLeft->Add( m_checkBoxComments, 0, wxRIGHT|wxLEFT, 10 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizeLeft->Add( 0, 4, 0, wxEXPAND, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_checkBoxECO = new wxCheckBox( this, wxID_ANY, _("Show ECO layers"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizeLeft->Add( m_checkBoxECO, 0, wxRIGHT|wxLEFT, 10 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizeLeft->Add( 0, 15, 0, wxEXPAND, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_renderOptionsLabel = new wxStaticText( this, wxID_ANY, _("Render Options"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_renderOptionsLabel->Wrap( -1 );
|
|
|
|
bSizeLeft->Add( m_renderOptionsLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_staticline4 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
bSizeLeft->Add( m_staticline4, 0, wxEXPAND|wxBOTTOM, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
wxFlexGridSizer* fgSizer2;
|
|
|
|
fgSizer2 = new wxFlexGridSizer( 0, 1, 4, 0 );
|
|
|
|
fgSizer2->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_checkBoxBoardBody = new wxCheckBox( this, wxID_ANY, _("Show board body"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizer2->Add( m_checkBoxBoardBody, 0, wxRIGHT|wxLEFT, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_checkBoxRealisticMode = new wxCheckBox( this, wxID_ANY, _("Realistic mode"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizer2->Add( m_checkBoxRealisticMode, 0, wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
m_checkBoxAreas = new wxCheckBox( this, wxID_ANY, _("Show filled areas in zones"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizer2->Add( m_checkBoxAreas, 0, wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
m_checkBoxRenderPlatedPadsAsPlated = new wxCheckBox( this, wxID_ANY, _("Use bare copper color for unplated copper"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-06-11 09:17:52 +00:00
|
|
|
m_checkBoxRenderPlatedPadsAsPlated->SetToolTip( _("Use different colors for plated and unplated copper. (Slow)") );
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
fgSizer2->Add( m_checkBoxRenderPlatedPadsAsPlated, 0, wxRIGHT|wxLEFT, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizerMaterials;
|
|
|
|
bSizerMaterials = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_materialPropertiesLabel = new wxStaticText( this, wxID_ANY, _("Material properties:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-06-11 09:17:52 +00:00
|
|
|
m_materialPropertiesLabel->Wrap( -1 );
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizerMaterials->Add( m_materialPropertiesLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2021-06-12 22:00:52 +00:00
|
|
|
wxString m_materialPropertiesChoices[] = { _("Realistic"), _("Solid colors"), _("CAD colors") };
|
2021-06-11 09:17:52 +00:00
|
|
|
int m_materialPropertiesNChoices = sizeof( m_materialPropertiesChoices ) / sizeof( wxString );
|
2023-01-11 01:00:47 +00:00
|
|
|
m_materialProperties = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_materialPropertiesNChoices, m_materialPropertiesChoices, 0 );
|
2021-06-11 09:17:52 +00:00
|
|
|
m_materialProperties->SetSelection( 0 );
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizerMaterials->Add( m_materialProperties, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
fgSizer2->Add( bSizerMaterials, 1, wxEXPAND, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizeLeft->Add( fgSizer2, 1, wxEXPAND|wxTOP|wxLEFT, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
|
|
|
|
bSizer7->Add( bSizeLeft, 1, wxEXPAND|wxRIGHT, 20 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerRight;
|
|
|
|
bSizerRight = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_cameraOptionsLabel = new wxStaticText( this, wxID_ANY, _("Camera Options"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_cameraOptionsLabel->Wrap( -1 );
|
|
|
|
bSizerRight->Add( m_cameraOptionsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
|
|
|
|
|
|
|
|
m_staticline5 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
bSizerRight->Add( m_staticline5, 0, wxEXPAND|wxBOTTOM, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizerRotAngle;
|
|
|
|
bSizerRotAngle = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_staticTextRotAngle = new wxStaticText( this, wxID_ANY, _("Rotation increment:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-06-11 09:17:52 +00:00
|
|
|
m_staticTextRotAngle->Wrap( -1 );
|
|
|
|
bSizerRotAngle->Add( m_staticTextRotAngle, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_spinCtrlRotationAngle = new wxSpinCtrlDouble( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 359, 10, 1 );
|
2021-06-11 09:17:52 +00:00
|
|
|
m_spinCtrlRotationAngle->SetDigits( 0 );
|
|
|
|
bSizerRotAngle->Add( m_spinCtrlRotationAngle, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_staticTextRotAngleUnits = new wxStaticText( this, wxID_ANY, _("deg"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-06-11 09:17:52 +00:00
|
|
|
m_staticTextRotAngleUnits->Wrap( -1 );
|
|
|
|
bSizerRotAngle->Add( m_staticTextRotAngleUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizerRight->Add( bSizerRotAngle, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
wxBoxSizer* bSizer9;
|
|
|
|
bSizer9 = new wxBoxSizer( wxVERTICAL );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_checkBoxEnableAnimation = new wxCheckBox( this, wxID_ANY, _("Enable animation"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-06-11 09:17:52 +00:00
|
|
|
m_checkBoxEnableAnimation->SetValue(true);
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizer9->Add( m_checkBoxEnableAnimation, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerRight->Add( bSizer9, 0, wxEXPAND|wxLEFT, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizerSlider;
|
|
|
|
bSizerSlider = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_staticAnimationSpeed = new wxStaticText( this, wxID_ANY, _("Animation speed:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-06-11 09:17:52 +00:00
|
|
|
m_staticAnimationSpeed->Wrap( -1 );
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizerSlider->Add( m_staticAnimationSpeed, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_sliderAnimationSpeed = new wxSlider( this, wxID_ANY, 3, 1, 5, wxDefaultPosition, wxDefaultSize, wxSL_AUTOTICKS|wxSL_HORIZONTAL|wxSL_LABELS );
|
2021-06-11 09:17:52 +00:00
|
|
|
m_sliderAnimationSpeed->SetMinSize( wxSize( 100,-1 ) );
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizerSlider->Add( m_sliderAnimationSpeed, 1, wxEXPAND|wxLEFT|wxRIGHT, 15 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizerRight->Add( bSizerSlider, 0, wxEXPAND|wxLEFT, 5 );
|
2021-10-21 11:37:45 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizer7->Add( bSizerRight, 1, wxEXPAND, 15 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
|
|
|
|
2022-10-01 22:53:15 +00:00
|
|
|
bSizerMain->Add( bSizer7, 1, 0, 5 );
|
2021-06-11 09:17:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
|
|
|
bSizerMain->Fit( this );
|
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
m_checkBoxRealisticMode->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_3D_DISPLAY_OPTIONS_BASE::OnCheckRealisticMode ), NULL, this );
|
|
|
|
m_checkBoxEnableAnimation->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_3D_DISPLAY_OPTIONS_BASE::OnCheckEnableAnimation ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
PANEL_3D_DISPLAY_OPTIONS_BASE::~PANEL_3D_DISPLAY_OPTIONS_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_checkBoxRealisticMode->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_3D_DISPLAY_OPTIONS_BASE::OnCheckRealisticMode ), NULL, this );
|
|
|
|
m_checkBoxEnableAnimation->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_3D_DISPLAY_OPTIONS_BASE::OnCheckEnableAnimation ), NULL, this );
|
|
|
|
|
|
|
|
}
|