2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2017-12-27 17:09:27 +00:00
// C++ code generated with wxFormBuilder (version Nov 22 2017)
2013-05-26 04:36:44 +00:00
// http://www.wxformbuilder.org/
//
2017-12-27 17:09:27 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
# include "dialog_global_edit_tracks_and_vias_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_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 ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bSizerCurrSettings ;
bSizerCurrSettings = new wxBoxSizer ( wxVERTICAL ) ;
m_staticText12 = new wxStaticText ( this , wxID_ANY , _ ( " Current Settings: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText12 - > Wrap ( - 1 ) ;
2016-05-10 06:56:03 +00:00
m_staticText12 - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2013-05-26 04:36:44 +00:00
bSizerCurrSettings - > Add ( m_staticText12 , 0 , wxALL , 5 ) ;
wxBoxSizer * bSizerCurrSettingsLeft ;
bSizerCurrSettingsLeft = new wxBoxSizer ( wxHORIZONTAL ) ;
bSizerCurrSettingsLeft - > Add ( 20 , 0 , 0 , 0 , 5 ) ;
wxBoxSizer * bSizerGrids ;
bSizerGrids = new wxBoxSizer ( wxVERTICAL ) ;
wxFlexGridSizer * fgSizeNetInfo ;
2016-10-14 19:07:04 +00:00
fgSizeNetInfo = new wxFlexGridSizer ( 0 , 2 , 0 , 0 ) ;
fgSizeNetInfo - > AddGrowableCol ( 1 ) ;
2013-05-26 04:36:44 +00:00
fgSizeNetInfo - > SetFlexibleDirection ( wxBOTH ) ;
fgSizeNetInfo - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
m_CurrentNetText = new wxStaticText ( this , wxID_ANY , _ ( " Current Net: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_CurrentNetText - > Wrap ( - 1 ) ;
2016-10-14 19:07:04 +00:00
fgSizeNetInfo - > Add ( m_CurrentNetText , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-10-14 19:07:04 +00:00
wxArrayString m_choiceNetNameChoices ;
m_choiceNetName = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceNetNameChoices , 0 ) ;
m_choiceNetName - > SetSelection ( 0 ) ;
fgSizeNetInfo - > Add ( m_choiceNetName , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
m_CurrentNetclassText = new wxStaticText ( this , wxID_ANY , _ ( " Current NetClass: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_CurrentNetclassText - > Wrap ( - 1 ) ;
2016-10-14 19:07:04 +00:00
fgSizeNetInfo - > Add ( m_CurrentNetclassText , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-10-14 19:07:04 +00:00
m_CurrentNetclassName = new wxStaticText ( this , wxID_ANY , _ ( " unknown " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_CurrentNetclassName - > Wrap ( - 1 ) ;
2016-05-10 06:56:03 +00:00
m_CurrentNetclassName - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2013-05-26 04:36:44 +00:00
2016-10-14 19:07:04 +00:00
fgSizeNetInfo - > Add ( m_CurrentNetclassName , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2013-05-26 04:36:44 +00:00
bSizerGrids - > Add ( fgSizeNetInfo , 0 , wxEXPAND , 5 ) ;
bSizerGrids - > Add ( 10 , 10 , 0 , 0 , 5 ) ;
m_gridDisplayCurrentSettings = new wxGrid ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 ) ;
// Grid
m_gridDisplayCurrentSettings - > CreateGrid ( 2 , 5 ) ;
m_gridDisplayCurrentSettings - > EnableEditing ( true ) ;
m_gridDisplayCurrentSettings - > EnableGridLines ( true ) ;
m_gridDisplayCurrentSettings - > EnableDragGridSize ( true ) ;
m_gridDisplayCurrentSettings - > SetMargins ( 10 , 0 ) ;
// Columns
m_gridDisplayCurrentSettings - > AutoSizeColumns ( ) ;
m_gridDisplayCurrentSettings - > EnableDragColMove ( false ) ;
m_gridDisplayCurrentSettings - > EnableDragColSize ( true ) ;
m_gridDisplayCurrentSettings - > SetColLabelSize ( 30 ) ;
m_gridDisplayCurrentSettings - > SetColLabelValue ( 0 , _ ( " Track size " ) ) ;
m_gridDisplayCurrentSettings - > SetColLabelValue ( 1 , _ ( " Via diameter " ) ) ;
m_gridDisplayCurrentSettings - > SetColLabelValue ( 2 , _ ( " Via drill " ) ) ;
m_gridDisplayCurrentSettings - > SetColLabelValue ( 3 , _ ( " uVia size " ) ) ;
m_gridDisplayCurrentSettings - > SetColLabelValue ( 4 , _ ( " uVia Drill " ) ) ;
m_gridDisplayCurrentSettings - > SetColLabelAlignment ( wxALIGN_CENTRE , wxALIGN_CENTRE ) ;
// Rows
m_gridDisplayCurrentSettings - > AutoSizeRows ( ) ;
m_gridDisplayCurrentSettings - > EnableDragRowSize ( true ) ;
m_gridDisplayCurrentSettings - > SetRowLabelSize ( 100 ) ;
m_gridDisplayCurrentSettings - > SetRowLabelValue ( 0 , _ ( " Netclass value " ) ) ;
m_gridDisplayCurrentSettings - > SetRowLabelValue ( 1 , _ ( " Current value " ) ) ;
m_gridDisplayCurrentSettings - > SetRowLabelAlignment ( wxALIGN_CENTRE , wxALIGN_CENTRE ) ;
// Label Appearance
// Cell Defaults
m_gridDisplayCurrentSettings - > SetDefaultCellAlignment ( wxALIGN_CENTRE , wxALIGN_CENTRE ) ;
bSizerGrids - > Add ( m_gridDisplayCurrentSettings , 1 , wxALL | wxEXPAND , 5 ) ;
bSizerCurrSettingsLeft - > Add ( bSizerGrids , 1 , wxEXPAND , 5 ) ;
bSizerCurrSettings - > Add ( bSizerCurrSettingsLeft , 1 , wxEXPAND , 5 ) ;
bMainSizer - > Add ( bSizerCurrSettings , 0 , wxEXPAND , 5 ) ;
m_staticline1 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bMainSizer - > Add ( m_staticline1 , 0 , wxALL | wxEXPAND , 5 ) ;
wxBoxSizer * bLowerSizer ;
bLowerSizer = new wxBoxSizer ( wxVERTICAL ) ;
m_staticText11 = new wxStaticText ( this , wxID_ANY , _ ( " Global Edition Option: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText11 - > Wrap ( - 1 ) ;
2016-05-10 06:56:03 +00:00
m_staticText11 - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2013-05-26 04:36:44 +00:00
2016-10-14 19:07:04 +00:00
bLowerSizer - > Add ( m_staticText11 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2013-05-26 04:36:44 +00:00
bMainSizer - > Add ( bLowerSizer , 0 , wxALL | wxEXPAND , 5 ) ;
wxBoxSizer * bSizerOptions ;
bSizerOptions = new wxBoxSizer ( wxHORIZONTAL ) ;
bSizerOptions - > Add ( 20 , 0 , 0 , 0 , 5 ) ;
wxBoxSizer * bSizerRadioButtons ;
bSizerRadioButtons = new wxBoxSizer ( wxVERTICAL ) ;
2016-10-14 19:07:04 +00:00
m_Net2CurrValueButton = new wxRadioButton ( this , ID_CURRENT_VALUES_TO_CURRENT_NET , _ ( " Set tracks and vias of the current Net to the current selected user value " ) , wxDefaultPosition , wxDefaultSize , wxRB_GROUP ) ;
2013-05-26 04:36:44 +00:00
m_Net2CurrValueButton - > SetValue ( true ) ;
bSizerRadioButtons - > Add ( m_Net2CurrValueButton , 0 , wxALL , 5 ) ;
m_NetUseNetclassValueButton = new wxRadioButton ( this , ID_NETCLASS_VALUES_TO_CURRENT_NET , _ ( " Set tracks and vias of the current Net to the Netclass value " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-12-27 17:09:27 +00:00
bSizerRadioButtons - > Add ( m_NetUseNetclassValueButton , 0 , wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-10-14 19:07:04 +00:00
m_radioBtnAll = new wxRadioButton ( this , ID_ALL_TRACKS_VIAS , _ ( " Set all tracks and vias to their Netclass value " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-12-27 17:09:27 +00:00
bSizerRadioButtons - > Add ( m_radioBtnAll , 0 , wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-10-14 19:07:04 +00:00
m_radioAllVias = new wxRadioButton ( this , ID_ALL_VIAS , _ ( " Set all vias (no track) to their Netclass value " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-12-27 17:09:27 +00:00
bSizerRadioButtons - > Add ( m_radioAllVias , 0 , wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
2013-05-26 04:36:44 +00:00
2016-10-14 19:07:04 +00:00
m_radioAllTracks = new wxRadioButton ( this , ID_ALL_TRACKS , _ ( " Set all tracks (no via) to their Netclass value " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-12-27 17:09:27 +00:00
bSizerRadioButtons - > Add ( m_radioAllTracks , 0 , wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
2013-05-26 04:36:44 +00:00
bSizerOptions - > Add ( bSizerRadioButtons , 1 , wxEXPAND , 5 ) ;
bMainSizer - > Add ( bSizerOptions , 0 , wxEXPAND , 5 ) ;
2016-10-14 19:07:04 +00:00
m_staticline2 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bMainSizer - > Add ( m_staticline2 , 0 , wxEXPAND | wxALL , 5 ) ;
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
2017-12-27 17:09:27 +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 ( ) ;
2017-12-27 17:09:27 +00:00
bMainSizer - > Fit ( this ) ;
2013-05-26 04:36:44 +00:00
// Connect Events
2016-10-14 19:07:04 +00:00
m_choiceNetName - > Connect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : onNetSelection ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
m_Net2CurrValueButton - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnSelectionClick ) , NULL , this ) ;
m_NetUseNetclassValueButton - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnSelectionClick ) , NULL , this ) ;
2016-10-14 19:07:04 +00:00
m_radioBtnAll - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnSelectionClick ) , NULL , this ) ;
m_radioAllVias - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnSelectionClick ) , NULL , this ) ;
m_radioAllTracks - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnSelectionClick ) , NULL , this ) ;
m_sdbSizerOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnOkClick ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}
DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : ~ DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE ( )
{
// Disconnect Events
2016-10-14 19:07:04 +00:00
m_choiceNetName - > Disconnect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : onNetSelection ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
m_Net2CurrValueButton - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnSelectionClick ) , NULL , this ) ;
m_NetUseNetclassValueButton - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnSelectionClick ) , NULL , this ) ;
2016-10-14 19:07:04 +00:00
m_radioBtnAll - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnSelectionClick ) , NULL , this ) ;
m_radioAllVias - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnSelectionClick ) , NULL , this ) ;
m_radioAllTracks - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnSelectionClick ) , NULL , this ) ;
m_sdbSizerOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE : : OnOkClick ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}