2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2016-05-10 21:37:51 +00:00
// C++ code generated with wxFormBuilder (version May 10 2016)
2013-05-26 04:36:44 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "dialog_general_options_BoardEditor_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE : : DIALOG_GENERALOPTIONS_BOARDEDITOR_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 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bSizerUpper ;
bSizerUpper = new wxBoxSizer ( wxHORIZONTAL ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bLeftSizer ;
bLeftSizer = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-10 21:37:51 +00:00
2015-08-01 12:48:38 +00:00
wxString m_PolarDisplayChoices [ ] = { _ ( " Cartesian coordinates " ) , _ ( " Polar coordinates " ) } ;
2013-05-26 04:36:44 +00:00
int m_PolarDisplayNChoices = sizeof ( m_PolarDisplayChoices ) / sizeof ( wxString ) ;
m_PolarDisplay = new wxRadioBox ( this , wxID_POLAR_CTRL , _ ( " Coordinates " ) , wxDefaultPosition , wxDefaultSize , m_PolarDisplayNChoices , m_PolarDisplayChoices , 1 , wxRA_SPECIFY_COLS ) ;
2015-08-01 12:48:38 +00:00
m_PolarDisplay - > SetSelection ( 1 ) ;
2013-05-26 04:36:44 +00:00
m_PolarDisplay - > SetToolTip ( _ ( " Activates the display of relative coordinates from relative origin (set by the space key) \n to the cursor, in polar coordinates (angle and distance) " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bLeftSizer - > Add ( m_PolarDisplay , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxString m_UnitsSelectionChoices [ ] = { _ ( " Inches " ) , _ ( " Millimeters " ) } ;
int m_UnitsSelectionNChoices = sizeof ( m_UnitsSelectionChoices ) / sizeof ( wxString ) ;
m_UnitsSelection = new wxRadioBox ( this , wxID_UNITS , _ ( " Units " ) , wxDefaultPosition , wxDefaultSize , m_UnitsSelectionNChoices , m_UnitsSelectionChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_UnitsSelection - > SetSelection ( 1 ) ;
m_UnitsSelection - > SetToolTip ( _ ( " Selection of units used to display dimensions and positions of items " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bLeftSizer - > Add ( m_UnitsSelection , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxString m_CursorShapeChoices [ ] = { _ ( " Small cross " ) , _ ( " Full screen cursor " ) } ;
int m_CursorShapeNChoices = sizeof ( m_CursorShapeChoices ) / sizeof ( wxString ) ;
m_CursorShape = new wxRadioBox ( this , wxID_CURSOR_SHAPE , _ ( " Cursor " ) , wxDefaultPosition , wxDefaultSize , m_CursorShapeNChoices , m_CursorShapeChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_CursorShape - > SetSelection ( 0 ) ;
m_CursorShape - > SetToolTip ( _ ( " Main cursor shape selection (small cross or large cursor) " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bLeftSizer - > Add ( m_CursorShape , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bSizerUpper - > Add ( bLeftSizer , 2 , wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bMiddleLeftSizer ;
bMiddleLeftSizer = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxFlexGridSizer * fgSizer1 ;
fgSizer1 = new wxFlexGridSizer ( 0 , 2 , 0 , 0 ) ;
fgSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2016-05-10 21:37:51 +00:00
2015-08-06 18:40:22 +00:00
m_staticTextmaxlinks = new wxStaticText ( this , wxID_ANY , _ ( " &Maximum links: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_staticTextmaxlinks - > Wrap ( - 1 ) ;
2015-08-06 18:40:22 +00:00
fgSizer1 - > Add ( m_staticTextmaxlinks , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
m_MaxShowLinks = new wxSpinCtrl ( this , wxID_ANY , wxT ( " 1 " ) , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 1 , 5 , 1 ) ;
m_MaxShowLinks - > SetToolTip ( _ ( " Adjust the number of ratsnets shown from cursor to closest pads " ) ) ;
2016-05-10 21:37:51 +00:00
2015-08-06 18:40:22 +00:00
fgSizer1 - > Add ( m_MaxShowLinks , 0 , wxALIGN_CENTER_VERTICAL | wxALL | wxTOP , 5 ) ;
2016-05-10 21:37:51 +00:00
2015-08-06 18:40:22 +00:00
m_staticTextautosave = new wxStaticText ( this , wxID_ANY , _ ( " &Auto save (minutes): " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_staticTextautosave - > Wrap ( - 1 ) ;
2015-08-06 18:40:22 +00:00
fgSizer1 - > Add ( m_staticTextautosave , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
m_SaveTime = new wxSpinCtrl ( this , wxID_ANY , wxT ( " 0 " ) , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 60 , 0 ) ;
m_SaveTime - > SetToolTip ( _ ( " Delay after the first change to create a backup file of the board on disk. " ) ) ;
2016-05-10 21:37:51 +00:00
2015-08-06 18:40:22 +00:00
fgSizer1 - > Add ( m_SaveTime , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2016-05-10 21:37:51 +00:00
2015-08-06 18:40:22 +00:00
m_staticTextRotationAngle = new wxStaticText ( this , wxID_ANY , _ ( " &Rotation angle: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_staticTextRotationAngle - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_staticTextRotationAngle , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-12-17 21:38:20 +00:00
m_RotationAngle = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_RotationAngle - > SetToolTip ( _ ( " Context menu and hot key footprint rotation increment. " ) ) ;
2016-05-10 21:37:51 +00:00
2015-08-06 18:40:22 +00:00
fgSizer1 - > Add ( m_RotationAngle , 0 , wxALIGN_CENTER_VERTICAL | wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bMiddleLeftSizer - > Add ( fgSizer1 , 0 , wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxStaticBoxSizer * bMiddleRightBoxSizer ;
bMiddleRightBoxSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Options " ) ) , wxVERTICAL ) ;
2016-05-10 21:37:51 +00:00
2015-08-08 13:54:32 +00:00
m_DrcOn = new wxCheckBox ( bMiddleRightBoxSizer - > GetStaticBox ( ) , wxID_DRC_ONOFF , _ ( " &Enforce design rules when routing " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-05-10 21:37:51 +00:00
m_DrcOn - > SetValue ( true ) ;
2015-10-16 15:56:50 +00:00
m_DrcOn - > SetToolTip ( _ ( " Enable/disable the DRC control. \n When the DRC control is disabled, all connections are allowed. " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bMiddleRightBoxSizer - > Add ( m_DrcOn , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2015-08-08 13:54:32 +00:00
m_ShowGlobalRatsnest = new wxCheckBox ( bMiddleRightBoxSizer - > GetStaticBox ( ) , wxID_GENERAL_RATSNEST , _ ( " &Show ratsnest " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-05-10 21:37:51 +00:00
m_ShowGlobalRatsnest - > SetValue ( true ) ;
2013-05-26 04:36:44 +00:00
m_ShowGlobalRatsnest - > SetToolTip ( _ ( " Show (or not) the full rastnest. " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bMiddleRightBoxSizer - > Add ( m_ShowGlobalRatsnest , 0 , wxALL , 5 ) ;
2016-05-10 21:37:51 +00:00
2015-08-08 13:54:32 +00:00
m_TrackAutodel = new wxCheckBox ( bMiddleRightBoxSizer - > GetStaticBox ( ) , wxID_TRACK_AUTODEL , _ ( " &Delete unconnected tracks " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_TrackAutodel - > SetToolTip ( _ ( " Enable/disable the automatic track deletion when recreating a track. " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bMiddleRightBoxSizer - > Add ( m_TrackAutodel , 0 , wxALL , 5 ) ;
2016-05-10 21:37:51 +00:00
2015-08-08 13:54:32 +00:00
m_Track_45_Only_Ctrl = new wxCheckBox ( bMiddleRightBoxSizer - > GetStaticBox ( ) , wxID_TRACKS45 , _ ( " &Limit tracks to 45 degrees " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_Track_45_Only_Ctrl - > SetToolTip ( _ ( " If enabled, force tracks directions to H, V or 45 degrees, when creating a track. " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bMiddleRightBoxSizer - > Add ( m_Track_45_Only_Ctrl , 0 , wxALL , 5 ) ;
2016-05-10 21:37:51 +00:00
2015-08-08 13:54:32 +00:00
m_Segments_45_Only_Ctrl = new wxCheckBox ( bMiddleRightBoxSizer - > GetStaticBox ( ) , wxID_SEGMENTS45 , _ ( " L&imit graphic lines to 45 degrees " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_Segments_45_Only_Ctrl - > SetToolTip ( _ ( " If enabled, force segments directions to H, V or 45 degrees, when creating a segment on technical layers. " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bMiddleRightBoxSizer - > Add ( m_Segments_45_Only_Ctrl , 0 , wxALL , 5 ) ;
2016-05-10 21:37:51 +00:00
2015-08-08 13:54:32 +00:00
m_Track_DoubleSegm_Ctrl = new wxCheckBox ( bMiddleRightBoxSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " &Use double segmented tracks " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_Track_DoubleSegm_Ctrl - > SetToolTip ( _ ( " If enabled, uses two track segments, with 45 degrees angle between them when creating a new track " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bMiddleRightBoxSizer - > Add ( m_Track_DoubleSegm_Ctrl , 0 , wxALL , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bMiddleLeftSizer - > Add ( bMiddleRightBoxSizer , 4 , wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bSizerUpper - > Add ( bMiddleLeftSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bRightSizer ;
bRightSizer = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxString m_MagneticPadOptCtrlChoices [ ] = { _ ( " Never " ) , _ ( " When creating tracks " ) , _ ( " Always " ) } ;
int m_MagneticPadOptCtrlNChoices = sizeof ( m_MagneticPadOptCtrlChoices ) / sizeof ( wxString ) ;
m_MagneticPadOptCtrl = new wxRadioBox ( this , wxID_ANY , _ ( " Magnetic Pads " ) , wxDefaultPosition , wxDefaultSize , m_MagneticPadOptCtrlNChoices , m_MagneticPadOptCtrlChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_MagneticPadOptCtrl - > SetSelection ( 0 ) ;
m_MagneticPadOptCtrl - > SetToolTip ( _ ( " control the capture of the pcb cursor when the mouse cursor enters a pad area " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bRightSizer - > Add ( m_MagneticPadOptCtrl , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxString m_MagneticTrackOptCtrlChoices [ ] = { _ ( " Never " ) , _ ( " When creating tracks " ) , _ ( " Always " ) } ;
int m_MagneticTrackOptCtrlNChoices = sizeof ( m_MagneticTrackOptCtrlChoices ) / sizeof ( wxString ) ;
m_MagneticTrackOptCtrl = new wxRadioBox ( this , wxID_MAGNETIC_TRACKS , _ ( " Magnetic Tracks " ) , wxDefaultPosition , wxDefaultSize , m_MagneticTrackOptCtrlNChoices , m_MagneticTrackOptCtrlChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_MagneticTrackOptCtrl - > SetSelection ( 0 ) ;
m_MagneticTrackOptCtrl - > SetToolTip ( _ ( " Control the capture of the pcb cursor when the mouse cursor enters a track " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bRightSizer - > Add ( m_MagneticTrackOptCtrl , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
wxStaticBoxSizer * sbSizer2PAN ;
sbSizer2PAN = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Pan and Zoom " ) ) , wxVERTICAL ) ;
2016-05-10 21:37:51 +00:00
2015-08-08 13:54:32 +00:00
m_ZoomCenterOpt = new wxCheckBox ( sbSizer2PAN - > GetStaticBox ( ) , wxID_ANY , _ ( " Ce&nter and warp cursor on zoom " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-08-06 18:40:22 +00:00
m_ZoomCenterOpt - > SetToolTip ( _ ( " Keep the cursor at its current location when zooming " ) ) ;
2016-05-10 21:37:51 +00:00
2015-08-06 18:40:22 +00:00
sbSizer2PAN - > Add ( m_ZoomCenterOpt , 0 , wxLEFT | wxRIGHT | wxTOP , 5 ) ;
2016-05-10 21:37:51 +00:00
2016-02-24 19:53:02 +00:00
m_MousewheelPANOpt = new wxCheckBox ( sbSizer2PAN - > GetStaticBox ( ) , wxID_ANY , _ ( " Use touchpad to pan " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_MousewheelPANOpt - > SetToolTip ( _ ( " Use touchpad to pan canvas " ) ) ;
2016-05-10 21:37:51 +00:00
2016-02-24 19:53:02 +00:00
sbSizer2PAN - > Add ( m_MousewheelPANOpt , 0 , wxLEFT | wxRIGHT | wxTOP , 5 ) ;
2016-05-10 21:37:51 +00:00
2015-08-08 13:54:32 +00:00
m_AutoPANOpt = new wxCheckBox ( sbSizer2PAN - > GetStaticBox ( ) , wxID_AUTOPAN , _ ( " &Pan while moving object " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_AutoPANOpt - > SetToolTip ( _ ( " Allows auto pan when creating a track, or moving an item. " ) ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
sbSizer2PAN - > Add ( m_AutoPANOpt , 0 , wxALL , 5 ) ;
2016-05-10 21:37:51 +00:00
2015-06-12 15:13:18 +00:00
bRightSizer - > Add ( sbSizer2PAN , 1 , wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bSizerUpper - > Add ( bRightSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bMainSizer - > Add ( bSizerUpper , 0 , wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
m_staticline1 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bMainSizer - > Add ( m_staticline1 , 0 , wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +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 ( ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
bMainSizer - > Add ( m_sdbSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
bMainSizer - > Fit ( this ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
// Connect Events
m_sdbSizerCancel - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE : : OnCancelClick ) , NULL , this ) ;
m_sdbSizerOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE : : OnOkClick ) , NULL , this ) ;
}
DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE : : ~ DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE ( )
{
// Disconnect Events
m_sdbSizerCancel - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE : : OnCancelClick ) , NULL , this ) ;
m_sdbSizerOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE : : OnOkClick ) , NULL , this ) ;
2016-05-10 21:37:51 +00:00
2013-05-26 04:36:44 +00:00
}