2014-05-14 13:53:54 +00:00
///////////////////////////////////////////////////////////////////////////
2020-02-27 21:02:45 +00:00
// C++ code generated with wxFormBuilder (version Oct 17 2018)
2014-05-14 13:53:54 +00:00
// http://www.wxformbuilder.org/
//
2017-12-27 17:09:27 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2014-05-14 13:53:54 +00:00
///////////////////////////////////////////////////////////////////////////
# include "dialog_pns_settings_base.h"
///////////////////////////////////////////////////////////////////////////
2014-06-20 17:29:35 +00:00
DIALOG_PNS_SETTINGS_BASE : : DIALOG_PNS_SETTINGS_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
2014-05-14 13:53:54 +00:00
{
2017-12-27 17:09:27 +00:00
this - > SetSizeHints ( wxSize ( - 1 , - 1 ) , wxDefaultSize ) ;
2014-05-14 13:53:54 +00:00
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2018-06-19 04:41:10 +00:00
wxString m_modeChoices [ ] = { _ ( " Highlight collisions " ) , _ ( " Shove " ) , _ ( " Walk around " ) } ;
2014-05-14 13:53:54 +00:00
int m_modeNChoices = sizeof ( m_modeChoices ) / sizeof ( wxString ) ;
2018-04-23 17:29:09 +00:00
m_mode = new wxRadioBox ( this , wxID_ANY , _ ( " Mode: " ) , wxDefaultPosition , wxDefaultSize , m_modeNChoices , m_modeChoices , 1 , wxRA_SPECIFY_COLS ) ;
2014-06-20 17:29:35 +00:00
m_mode - > SetSelection ( 0 ) ;
bMainSizer - > Add ( m_mode , 0 , wxALL | wxEXPAND , 5 ) ;
2014-05-14 13:53:54 +00:00
wxStaticBoxSizer * bOptions ;
2018-04-23 17:29:09 +00:00
bOptions = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Options: " ) ) , wxVERTICAL ) ;
2014-05-14 13:53:54 +00:00
2015-07-02 14:09:51 +00:00
wxFlexGridSizer * fgSizer1 ;
fgSizer1 = new wxFlexGridSizer ( 0 , 2 , 0 , 0 ) ;
fgSizer1 - > AddGrowableCol ( 1 ) ;
fgSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2018-03-09 04:34:40 +00:00
m_staticText4 = new wxStaticText ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Mouse drag behavior: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-07-02 14:09:51 +00:00
m_staticText4 - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_staticText4 , 0 , wxTOP | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2017-06-18 20:08:05 +00:00
wxString m_dragToolModeChoices [ ] = { _ ( " Move item " ) , _ ( " Interactive drag " ) } ;
2015-07-02 14:09:51 +00:00
int m_dragToolModeNChoices = sizeof ( m_dragToolModeChoices ) / sizeof ( wxString ) ;
2015-10-16 15:56:50 +00:00
m_dragToolMode = new wxChoice ( bOptions - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_dragToolModeNChoices , m_dragToolModeChoices , 0 ) ;
2015-07-02 14:09:51 +00:00
m_dragToolMode - > SetSelection ( 0 ) ;
fgSizer1 - > Add ( m_dragToolMode , 1 , wxALIGN_CENTER_VERTICAL | wxTOP | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
bOptions - > Add ( fgSizer1 , 1 , wxEXPAND , 5 ) ;
2015-10-16 15:56:50 +00:00
m_freeAngleMode = new wxCheckBox ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Free angle mode (no shove/walkaround) " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-07-02 14:09:51 +00:00
bOptions - > Add ( m_freeAngleMode , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2015-10-16 15:56:50 +00:00
m_shoveVias = new wxCheckBox ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Shove vias " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-07-02 14:09:51 +00:00
m_shoveVias - > Enable ( false ) ;
2015-10-16 15:56:50 +00:00
m_shoveVias - > SetToolTip ( _ ( " When disabled, vias are treated as un-movable objects and hugged instead of shoved. " ) ) ;
2015-07-02 14:09:51 +00:00
2014-06-20 17:29:35 +00:00
bOptions - > Add ( m_shoveVias , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2014-05-14 13:53:54 +00:00
2015-10-16 15:56:50 +00:00
m_backPressure = new wxCheckBox ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Jump over obstacles " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_backPressure - > SetToolTip ( _ ( " When enabled, the router tries to move colliding traces behind solid obstacles (e.g. pads) instead of \" reflecting \" back the collision " ) ) ;
2014-06-20 17:29:35 +00:00
bOptions - > Add ( m_backPressure , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2014-05-14 13:53:54 +00:00
2015-10-16 15:56:50 +00:00
m_removeLoops = new wxCheckBox ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Remove redundant tracks " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_removeLoops - > SetToolTip ( _ ( " Removes loops while routing (e.g. if the new track ensures same connectivity as an already existing one, the old track is removed). \n Loop removal works locally (only between the start and end of the currently routed trace). " ) ) ;
2014-06-20 17:29:35 +00:00
bOptions - > Add ( m_removeLoops , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2014-05-14 13:53:54 +00:00
2018-02-15 15:09:39 +00:00
m_smartPads = new wxCheckBox ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Optimize pad connections " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_smartPads - > SetToolTip ( _ ( " When enabled, the router tries to break out pads/vias in a clean way, avoiding acute angles and jagged breakout traces. " ) ) ;
2015-10-16 15:56:50 +00:00
2018-02-15 15:09:39 +00:00
bOptions - > Add ( m_smartPads , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2014-05-14 13:53:54 +00:00
2015-10-16 15:56:50 +00:00
m_smoothDragged = new wxCheckBox ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Smooth dragged segments " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_smoothDragged - > SetToolTip ( _ ( " When enabled, the router attempts to merge several jagged segments into a single straight one (dragging mode). " ) ) ;
2014-06-20 17:29:35 +00:00
bOptions - > Add ( m_smoothDragged , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2014-05-14 13:53:54 +00:00
2015-10-16 15:56:50 +00:00
m_violateDrc = new wxCheckBox ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Allow DRC violations " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-02-27 21:02:45 +00:00
m_violateDrc - > SetToolTip ( _ ( " (Highlight collisions mode only) - allows one to establish a track even if is violating the DRC rules. " ) ) ;
2015-10-16 15:56:50 +00:00
2014-06-20 17:29:35 +00:00
bOptions - > Add ( m_violateDrc , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2014-05-14 13:53:54 +00:00
2015-10-16 15:56:50 +00:00
m_suggestEnding = new wxCheckBox ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Suggest track finish " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2014-05-14 13:53:54 +00:00
m_suggestEnding - > Enable ( false ) ;
bOptions - > Add ( m_suggestEnding , 0 , wxALL , 5 ) ;
2020-02-27 21:02:45 +00:00
m_optimizeDraggedTrack = new wxCheckBox ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Optimize track being dragged " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bOptions - > Add ( m_optimizeDraggedTrack , 0 , wxALL , 5 ) ;
2015-10-16 15:56:50 +00:00
m_staticline1 = new wxStaticLine ( bOptions - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
2015-02-06 10:54:55 +00:00
bOptions - > Add ( m_staticline1 , 0 , wxEXPAND | wxALL , 5 ) ;
2014-05-14 13:53:54 +00:00
wxBoxSizer * bEffort ;
bEffort = new wxBoxSizer ( wxHORIZONTAL ) ;
2018-04-23 17:29:09 +00:00
m_effortLabel = new wxStaticText ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Optimizer effort: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2014-05-14 13:53:54 +00:00
m_effortLabel - > Wrap ( - 1 ) ;
2015-10-16 15:56:50 +00:00
m_effortLabel - > SetToolTip ( _ ( " Defines how much time the router shall spend optimizing the routed/shoved traces. \n More effort means cleaner routing (but slower), less effort means faster routing but somewhat jagged traces. " ) ) ;
2014-05-14 13:53:54 +00:00
bEffort - > Add ( m_effortLabel , 1 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
bEffort - > Add ( 0 , 0 , 0 , wxEXPAND , 5 ) ;
wxBoxSizer * bSlider ;
bSlider = new wxBoxSizer ( wxVERTICAL ) ;
2015-10-16 15:56:50 +00:00
m_effort = new wxSlider ( bOptions - > GetStaticBox ( ) , wxID_ANY , 1 , 0 , 2 , wxDefaultPosition , wxDefaultSize , wxSL_AUTOTICKS | wxSL_BOTTOM | wxSL_HORIZONTAL | wxSL_TOP ) ;
2014-05-14 13:53:54 +00:00
bSlider - > Add ( m_effort , 1 , wxEXPAND , 5 ) ;
wxBoxSizer * bSliderLabels ;
bSliderLabels = new wxBoxSizer ( wxHORIZONTAL ) ;
2015-10-16 15:56:50 +00:00
m_lowLabel = new wxStaticText ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " low " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2014-05-14 13:53:54 +00:00
m_lowLabel - > Wrap ( - 1 ) ;
2016-05-11 08:51:07 +00:00
m_lowLabel - > SetFont ( wxFont ( 8 , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_NORMAL , false , wxEmptyString ) ) ;
2014-05-14 13:53:54 +00:00
bSliderLabels - > Add ( m_lowLabel , 0 , 0 , 5 ) ;
bSliderLabels - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2015-10-16 15:56:50 +00:00
m_highLabel = new wxStaticText ( bOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " high " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2014-05-14 13:53:54 +00:00
m_highLabel - > Wrap ( - 1 ) ;
2016-05-11 08:51:07 +00:00
m_highLabel - > SetFont ( wxFont ( 8 , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_NORMAL , false , wxEmptyString ) ) ;
2014-05-14 13:53:54 +00:00
bSliderLabels - > Add ( m_highLabel , 0 , 0 , 5 ) ;
bSlider - > Add ( bSliderLabels , 1 , wxEXPAND , 5 ) ;
bEffort - > Add ( bSlider , 1 , wxEXPAND , 5 ) ;
2014-06-20 17:29:35 +00:00
bOptions - > Add ( bEffort , 0 , wxEXPAND , 5 ) ;
2014-06-24 18:04:16 +00:00
bMainSizer - > Add ( bOptions , 1 , wxEXPAND | wxALL , 5 ) ;
2014-05-14 13:53:54 +00:00
2014-05-30 13:31:30 +00:00
m_stdButtons = new wxStdDialogButtonSizer ( ) ;
m_stdButtonsOK = new wxButton ( this , wxID_OK ) ;
m_stdButtons - > AddButton ( m_stdButtonsOK ) ;
m_stdButtonsCancel = new wxButton ( this , wxID_CANCEL ) ;
m_stdButtons - > AddButton ( m_stdButtonsCancel ) ;
m_stdButtons - > Realize ( ) ;
2014-05-14 13:53:54 +00:00
2014-07-15 08:57:51 +00:00
bMainSizer - > Add ( m_stdButtons , 0 , wxALL | wxEXPAND , 5 ) ;
2014-05-14 13:53:54 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
2017-12-27 17:09:27 +00:00
bMainSizer - > Fit ( this ) ;
2014-05-14 13:53:54 +00:00
// Connect Events
2018-06-19 04:41:10 +00:00
m_mode - > Connect ( wxEVT_COMMAND_RADIOBOX_SELECTED , wxCommandEventHandler ( DIALOG_PNS_SETTINGS_BASE : : onModeChange ) , NULL , this ) ;
2015-07-02 14:09:51 +00:00
m_freeAngleMode - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_PNS_SETTINGS_BASE : : onFreeAngleModeChange ) , NULL , this ) ;
2014-05-30 13:31:30 +00:00
m_stdButtonsOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_PNS_SETTINGS_BASE : : OnOkClick ) , NULL , this ) ;
2014-05-14 13:53:54 +00:00
}
DIALOG_PNS_SETTINGS_BASE : : ~ DIALOG_PNS_SETTINGS_BASE ( )
{
// Disconnect Events
2018-06-19 04:41:10 +00:00
m_mode - > Disconnect ( wxEVT_COMMAND_RADIOBOX_SELECTED , wxCommandEventHandler ( DIALOG_PNS_SETTINGS_BASE : : onModeChange ) , NULL , this ) ;
2015-07-02 14:09:51 +00:00
m_freeAngleMode - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_PNS_SETTINGS_BASE : : onFreeAngleModeChange ) , NULL , this ) ;
2014-05-30 13:31:30 +00:00
m_stdButtonsOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_PNS_SETTINGS_BASE : : OnOkClick ) , NULL , this ) ;
2014-05-14 13:53:54 +00:00
}