2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2017-02-26 12:03:38 +00:00
// C++ code generated with wxFormBuilder (version May 6 2016)
2013-05-26 04:36:44 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "dialog_display_options_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_DISPLAY_OPTIONS_BASE : : DIALOG_DISPLAY_OPTIONS_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bMainSizer ;
2015-02-02 08:06:39 +00:00
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bupperSizer ;
bupperSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2013-05-26 04:36:44 +00:00
2016-12-23 11:06:14 +00:00
wxBoxSizer * sLeftSizer ;
sLeftSizer = new wxBoxSizer ( wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
2016-12-23 11:06:14 +00:00
wxStaticBoxSizer * sSketchModeSizer ;
sSketchModeSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Tracks and Vias: " ) ) , wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
2016-12-23 11:06:14 +00:00
m_OptDisplayTracks = new wxCheckBox ( sSketchModeSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Show tracks in sketch mode " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sSketchModeSizer - > Add ( m_OptDisplayTracks , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-12-23 11:06:14 +00:00
m_OptDisplayVias = new wxCheckBox ( sSketchModeSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Show vias in sketch mode " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sSketchModeSizer - > Add ( m_OptDisplayVias , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2017-02-13 11:53:58 +00:00
sLeftSizer - > Add ( sSketchModeSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2016-12-23 11:06:14 +00:00
wxStaticBoxSizer * sOpenGLRenderingSizer ;
sOpenGLRenderingSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " OpenGL Rendering: " ) ) , wxVERTICAL ) ;
2016-12-23 15:21:00 +00:00
wxString m_choiceAntialiasingChoices [ ] = { _ ( " No Antialiasing " ) , _ ( " Subpixel Antialiasing (High Quality) " ) , _ ( " Subpixel Antialiasing (Ultra Quality) " ) , _ ( " Supersampling (2x) " ) , _ ( " Supersampling (4x) " ) } ;
2016-12-23 11:06:14 +00:00
int m_choiceAntialiasingNChoices = sizeof ( m_choiceAntialiasingChoices ) / sizeof ( wxString ) ;
m_choiceAntialiasing = new wxChoice ( sOpenGLRenderingSizer - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceAntialiasingNChoices , m_choiceAntialiasingChoices , 0 ) ;
m_choiceAntialiasing - > SetSelection ( 0 ) ;
sOpenGLRenderingSizer - > Add ( m_choiceAntialiasing , 0 , wxALL | wxEXPAND , 5 ) ;
2017-02-13 11:53:58 +00:00
sLeftSizer - > Add ( sOpenGLRenderingSizer , 0 , wxALL | wxEXPAND , 5 ) ;
wxStaticBoxSizer * sGridSettings ;
sGridSettings = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Grid Display (OpenGL && Cairo) " ) ) , wxVERTICAL ) ;
2017-03-01 09:29:19 +00:00
wxString m_gridStyleChoices [ ] = { _ ( " Dots " ) , _ ( " Lines " ) , _ ( " Small crosses " ) } ;
2017-02-13 11:53:58 +00:00
int m_gridStyleNChoices = sizeof ( m_gridStyleChoices ) / sizeof ( wxString ) ;
m_gridStyle = new wxRadioBox ( sGridSettings - > GetStaticBox ( ) , wxID_ANY , _ ( " Grid Style " ) , wxDefaultPosition , wxDefaultSize , m_gridStyleNChoices , m_gridStyleChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_gridStyle - > SetSelection ( 0 ) ;
sGridSettings - > Add ( m_gridStyle , 0 , wxALL | wxEXPAND , 5 ) ;
2017-02-14 15:31:21 +00:00
wxFlexGridSizer * sGridSettingsGrid ;
2017-02-13 03:47:50 +00:00
sGridSettingsGrid = new wxFlexGridSizer ( 0 , 4 , 0 , 0 ) ;
2017-02-14 15:31:21 +00:00
sGridSettingsGrid - > AddGrowableCol ( 1 ) ;
sGridSettingsGrid - > SetFlexibleDirection ( wxBOTH ) ;
sGridSettingsGrid - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
l_gridLineWidth = new wxStaticText ( sGridSettings - > GetStaticBox ( ) , wxID_ANY , _ ( " Grid thickness: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
l_gridLineWidth - > Wrap ( - 1 ) ;
sGridSettingsGrid - > Add ( l_gridLineWidth , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_gridLineWidth = new wxTextCtrl ( sGridSettings - > GetStaticBox ( ) , wxID_ANY , _ ( " 0.5 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-02-13 03:47:50 +00:00
sGridSettingsGrid - > Add ( m_gridLineWidth , 0 , wxEXPAND , 5 ) ;
2017-02-14 15:31:21 +00:00
m_gridLineWidthSpinBtn = new wxSpinButton ( sGridSettings - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS ) ;
sGridSettingsGrid - > Add ( m_gridLineWidthSpinBtn , 0 , wxALL , 0 ) ;
2017-02-13 03:47:50 +00:00
l_gridLineWidthUnits = new wxStaticText ( sGridSettings - > GetStaticBox ( ) , wxID_ANY , _ ( " px " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
l_gridLineWidthUnits - > Wrap ( - 1 ) ;
sGridSettingsGrid - > Add ( l_gridLineWidthUnits , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
l_gridMinSpacing = new wxStaticText ( sGridSettings - > GetStaticBox ( ) , wxID_ANY , _ ( " Min grid spacing: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
l_gridMinSpacing - > Wrap ( - 1 ) ;
sGridSettingsGrid - > Add ( l_gridMinSpacing , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_gridMinSpacing = new wxTextCtrl ( sGridSettings - > GetStaticBox ( ) , wxID_ANY , _ ( " 10 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sGridSettingsGrid - > Add ( m_gridMinSpacing , 0 , wxEXPAND , 5 ) ;
m_gridMinSpacingSpinBtn = new wxSpinButton ( sGridSettings - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS ) ;
sGridSettingsGrid - > Add ( m_gridMinSpacingSpinBtn , 0 , wxALL , 0 ) ;
l_gridMinSpacingUnits = new wxStaticText ( sGridSettings - > GetStaticBox ( ) , wxID_ANY , _ ( " px " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
l_gridMinSpacingUnits - > Wrap ( - 1 ) ;
sGridSettingsGrid - > Add ( l_gridMinSpacingUnits , 0 , wxALL , 5 ) ;
2017-02-14 15:31:21 +00:00
sGridSettings - > Add ( sGridSettingsGrid , 1 , wxALL | wxEXPAND , 5 ) ;
2017-02-13 11:53:58 +00:00
sLeftSizer - > Add ( sGridSettings , 1 , wxALL | wxEXPAND , 5 ) ;
2016-12-23 11:06:14 +00:00
bupperSizer - > Add ( sLeftSizer , 1 , wxEXPAND , 5 ) ;
wxStaticBoxSizer * sMiddleSizer ;
sMiddleSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Routing Help: " ) ) , wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
wxString m_ShowNetNamesOptionChoices [ ] = { _ ( " Do not show " ) , _ ( " On pads " ) , _ ( " On tracks " ) , _ ( " On pads and tracks " ) } ;
int m_ShowNetNamesOptionNChoices = sizeof ( m_ShowNetNamesOptionChoices ) / sizeof ( wxString ) ;
2016-12-23 11:06:14 +00:00
m_ShowNetNamesOption = new wxRadioBox ( sMiddleSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Show Net Names: " ) , wxDefaultPosition , wxDefaultSize , m_ShowNetNamesOptionNChoices , m_ShowNetNamesOptionChoices , 1 , wxRA_SPECIFY_COLS ) ;
2015-09-10 20:29:45 +00:00
m_ShowNetNamesOption - > SetSelection ( 0 ) ;
m_ShowNetNamesOption - > SetToolTip ( _ ( " Show or hide net names on pads and/or tracks " ) ) ;
2013-05-26 04:36:44 +00:00
2016-12-23 11:06:14 +00:00
sMiddleSizer - > Add ( m_ShowNetNamesOption , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
wxString m_OptDisplayTracksClearanceChoices [ ] = { _ ( " Never " ) , _ ( " New track " ) , _ ( " New track with via area " ) , _ ( " New and edited tracks with via area " ) , _ ( " Always " ) } ;
int m_OptDisplayTracksClearanceNChoices = sizeof ( m_OptDisplayTracksClearanceChoices ) / sizeof ( wxString ) ;
2016-12-23 11:06:14 +00:00
m_OptDisplayTracksClearance = new wxRadioBox ( sMiddleSizer - > GetStaticBox ( ) , ID_SHOW_CLEARANCE , _ ( " Show Track Clearance: " ) , wxDefaultPosition , wxDefaultSize , m_OptDisplayTracksClearanceNChoices , m_OptDisplayTracksClearanceChoices , 1 , wxRA_SPECIFY_COLS ) ;
2015-09-10 20:29:45 +00:00
m_OptDisplayTracksClearance - > SetSelection ( 0 ) ;
m_OptDisplayTracksClearance - > SetToolTip ( _ ( " Show or hide the track and via clearance area. \n If New track is selected, track clearance area is shown only when creating the track. " ) ) ;
2013-05-26 04:36:44 +00:00
2016-12-23 11:06:14 +00:00
sMiddleSizer - > Add ( m_OptDisplayTracksClearance , 1 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-12-23 11:06:14 +00:00
bupperSizer - > Add ( sMiddleSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-12-23 11:06:14 +00:00
wxBoxSizer * sRightSizer ;
sRightSizer = new wxBoxSizer ( wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
wxStaticBoxSizer * sfootprintSizer ;
sfootprintSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Footprints: " ) ) , wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
2016-05-10 20:47:37 +00:00
m_OptDisplayModOutlines = new wxCheckBox ( sfootprintSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Show outlines in sketch mode " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-02-02 08:06:39 +00:00
sfootprintSizer - > Add ( m_OptDisplayModOutlines , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
m_OptDisplayModTexts
2016-05-10 20:47:37 +00:00
= new wxCheckBox ( sfootprintSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Show text in sketch mode " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-02-02 08:06:39 +00:00
sfootprintSizer - > Add ( m_OptDisplayModTexts
, 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-05-10 20:47:37 +00:00
m_OptDisplayPads = new wxCheckBox ( sfootprintSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Show pads in sketch mode " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-02-02 08:06:39 +00:00
sfootprintSizer - > Add ( m_OptDisplayPads , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-05-10 20:47:37 +00:00
m_OptDisplayPadClearence = new wxCheckBox ( sfootprintSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Show pad clearance " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-02-02 08:06:39 +00:00
sfootprintSizer - > Add ( m_OptDisplayPadClearence , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-05-10 20:47:37 +00:00
m_OptDisplayPadNumber = new wxCheckBox ( sfootprintSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Show pad number " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_OptDisplayPadNumber - > SetValue ( true ) ;
2015-02-02 08:06:39 +00:00
sfootprintSizer - > Add ( m_OptDisplayPadNumber , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-05-10 20:47:37 +00:00
m_OptDisplayPadNoConn = new wxCheckBox ( sfootprintSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Show pad no net connection indicator " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_OptDisplayPadNoConn - > SetValue ( true ) ;
2015-02-02 08:06:39 +00:00
sfootprintSizer - > Add ( m_OptDisplayPadNoConn , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-12-23 11:06:14 +00:00
sRightSizer - > Add ( sfootprintSizer , 0 , wxEXPAND | wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
wxStaticBoxSizer * s_otherSizer ;
2015-09-10 20:29:45 +00:00
s_otherSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Other: " ) ) , wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
2016-05-10 20:47:37 +00:00
m_OptDisplayDrawings = new wxCheckBox ( s_otherSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Show graphic items in sketch mode " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-02-02 08:06:39 +00:00
m_OptDisplayDrawings - > SetValue ( true ) ;
s_otherSizer - > Add ( m_OptDisplayDrawings , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-05-10 20:47:37 +00:00
m_Show_Page_Limits = new wxCheckBox ( s_otherSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Show page limits " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-02-02 08:06:39 +00:00
m_Show_Page_Limits - > SetValue ( true ) ;
s_otherSizer - > Add ( m_Show_Page_Limits , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-12-23 11:06:14 +00:00
sRightSizer - > Add ( s_otherSizer , 1 , wxEXPAND | wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-12-23 11:06:14 +00:00
bupperSizer - > Add ( sRightSizer , 0 , 0 , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
bMainSizer - > Add ( bupperSizer , 1 , wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
m_staticline1 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
2015-09-10 20:29:45 +00:00
bMainSizer - > Add ( m_staticline1 , 0 , wxBOTTOM | wxEXPAND | wxLEFT | wxRIGHT | wxTOP , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
m_sdbSizer = new wxStdDialogButtonSizer ( ) ;
m_sdbSizerOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer - > AddButton ( m_sdbSizerOK ) ;
m_sdbSizerCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer - > AddButton ( m_sdbSizerCancel ) ;
m_sdbSizer - > Realize ( ) ;
2013-05-26 04:36:44 +00:00
2015-09-10 20:29:45 +00:00
bMainSizer - > Add ( m_sdbSizer , 0 , wxBOTTOM | wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
2013-05-26 04:36:44 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
2015-09-10 20:29:45 +00:00
bMainSizer - > Fit ( this ) ;
2013-05-26 04:36:44 +00:00
// Connect Events
2015-02-02 08:06:39 +00:00
m_sdbSizerCancel - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_DISPLAY_OPTIONS_BASE : : OnCancelClick ) , NULL , this ) ;
m_sdbSizerOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_DISPLAY_OPTIONS_BASE : : OnOkClick ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}
DIALOG_DISPLAY_OPTIONS_BASE : : ~ DIALOG_DISPLAY_OPTIONS_BASE ( )
{
// Disconnect Events
2015-02-02 08:06:39 +00:00
m_sdbSizerCancel - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_DISPLAY_OPTIONS_BASE : : OnCancelClick ) , NULL , this ) ;
m_sdbSizerOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_DISPLAY_OPTIONS_BASE : : OnOkClick ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}