2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2015-02-02 08:06:39 +00:00
// C++ code generated with wxFormBuilder (version Jun 5 2014)
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
wxStaticBoxSizer * sLeftBoxSizer ;
sLeftBoxSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Tracks and vias: " ) ) , wxVERTICAL ) ;
2015-02-02 08:06:39 +00:00
m_OptDisplayTracks = new wxCheckBox ( this , wxID_ANY , _ ( " Tracks sketch mode " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sLeftBoxSizer - > Add ( m_OptDisplayTracks , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
m_OptDisplayVias = new wxCheckBox ( this , wxID_ANY , _ ( " Vias sketch mode " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sLeftBoxSizer - > Add ( m_OptDisplayVias , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
wxString m_OptDisplayViaHoleChoices [ ] = { _ ( " Never " ) , _ ( " Defined holes " ) , _ ( " Always " ) } ;
int m_OptDisplayViaHoleNChoices = sizeof ( m_OptDisplayViaHoleChoices ) / sizeof ( wxString ) ;
m_OptDisplayViaHole = new wxRadioBox ( this , ID_VIAS_HOLES , _ ( " Show Via Holes: " ) , wxDefaultPosition , wxDefaultSize , m_OptDisplayViaHoleNChoices , m_OptDisplayViaHoleChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_OptDisplayViaHole - > SetSelection ( 1 ) ;
m_OptDisplayViaHole - > SetToolTip ( _ ( " Show (or not) via holes. \n If Defined Holes is selected, only the non default size holes are shown " ) ) ;
2015-02-02 08:06:39 +00:00
sLeftBoxSizer - > Add ( m_OptDisplayViaHole , 1 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
bupperSizer - > Add ( sLeftBoxSizer , 0 , wxEXPAND | wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
wxStaticBoxSizer * sbMiddleLeftSizer ;
sbMiddleLeftSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Routing help: " ) ) , wxVERTICAL ) ;
wxString m_ShowNetNamesOptionChoices [ ] = { _ ( " Do not show " ) , _ ( " On pads " ) , _ ( " On tracks " ) , _ ( " On pads and tracks " ) } ;
int m_ShowNetNamesOptionNChoices = sizeof ( m_ShowNetNamesOptionChoices ) / sizeof ( wxString ) ;
m_ShowNetNamesOption = new wxRadioBox ( this , wxID_ANY , _ ( " Show Net Names: " ) , wxDefaultPosition , wxDefaultSize , m_ShowNetNamesOptionNChoices , m_ShowNetNamesOptionChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_ShowNetNamesOption - > SetSelection ( 3 ) ;
m_ShowNetNamesOption - > SetToolTip ( _ ( " Show or not net names on pads and/or tracks " ) ) ;
2015-02-02 08:06:39 +00:00
sbMiddleLeftSizer - > Add ( m_ShowNetNamesOption , 1 , 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 ) ;
m_OptDisplayTracksClearance = new wxRadioBox ( this , ID_SHOW_CLEARANCE , _ ( " Show Tracks Clearance: " ) , wxDefaultPosition , wxDefaultSize , m_OptDisplayTracksClearanceNChoices , m_OptDisplayTracksClearanceChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_OptDisplayTracksClearance - > SetSelection ( 3 ) ;
m_OptDisplayTracksClearance - > SetToolTip ( _ ( " Show( or not) tracks clearance area. \n If New track is selected, track clearance area is shown only when creating the track. " ) ) ;
2015-02-02 08:06:39 +00:00
sbMiddleLeftSizer - > Add ( m_OptDisplayTracksClearance , 1 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
bupperSizer - > Add ( sbMiddleLeftSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
wxBoxSizer * b_rightSizer ;
b_rightSizer = 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
2015-02-02 08:06:39 +00:00
m_OptDisplayModOutlines = new wxCheckBox ( this , wxID_ANY , _ ( " Outlines sketch mode " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
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
= new wxCheckBox ( this , wxID_ANY , _ ( " Texts sketch mode " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sfootprintSizer - > Add ( m_OptDisplayModTexts
, 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
m_OptDisplayPads = new wxCheckBox ( this , wxID_ANY , _ ( " Pads sketch mode " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sfootprintSizer - > Add ( m_OptDisplayPads , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
m_OptDisplayPadClearence = new wxCheckBox ( this , 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
m_OptDisplayPadNumber = new wxCheckBox ( this , wxID_ANY , _ ( " Show pad number " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
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
m_OptDisplayPadNoConn = new wxCheckBox ( this , wxID_ANY , _ ( " Show pad NoConnect " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
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
2015-02-02 08:06:39 +00:00
b_rightSizer - > 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 ;
s_otherSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Others: " ) ) , wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
2015-02-06 10:54:55 +00:00
m_OptDisplayDrawings = new wxCheckBox ( this , wxID_ANY , _ ( " Graphic items 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
2015-02-02 08:06:39 +00:00
m_Show_Page_Limits = new wxCheckBox ( this , wxID_ANY , _ ( " Show page limits " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_Show_Page_Limits - > SetValue ( true ) ;
s_otherSizer - > Add ( m_Show_Page_Limits , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
b_rightSizer - > Add ( s_otherSizer , 1 , wxEXPAND | wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-02-02 08:06:39 +00:00
bupperSizer - > Add ( b_rightSizer , 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 ) ;
bMainSizer - > Add ( m_staticline1 , 0 , wxEXPAND | wxALL , 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-02-02 08:06:39 +00:00
bMainSizer - > Add ( m_sdbSizer , 0 , wxEXPAND | wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
// 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
}