2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2022-09-03 18:29:02 +00:00
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
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
///////////////////////////////////////////////////////////////////////////
2022-12-13 20:47:28 +00:00
# include "widgets/std_bitmap_button.h"
2022-09-03 18:29:02 +00:00
# include "widgets/wx_html_report_panel.h"
2015-06-16 12:20:42 +00:00
2022-12-13 20:47:28 +00:00
# include "dialog_import_netlist_base.h"
2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2022-12-13 20:47:28 +00:00
DIALOG_IMPORT_NETLIST_BASE : : DIALOG_IMPORT_NETLIST_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
2013-05-26 04:36:44 +00:00
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
2019-09-06 15:13:52 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-09-06 15:13:52 +00:00
2018-02-28 09:44:22 +00:00
wxBoxSizer * bSizerNetlistFilename ;
bSizerNetlistFilename = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-09-06 15:13:52 +00:00
2018-02-28 09:44:22 +00:00
wxStaticText * staticTextNetlistFile ;
staticTextNetlistFile = new wxStaticText ( this , wxID_ANY , _ ( " Netlist file: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
staticTextNetlistFile - > Wrap ( - 1 ) ;
bSizerNetlistFilename - > Add ( staticTextNetlistFile , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 5 ) ;
2019-09-06 15:13:52 +00:00
2018-02-28 09:44:22 +00:00
m_NetlistFilenameCtrl = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-12-13 20:47:28 +00:00
bSizerNetlistFilename - > Add ( m_NetlistFilenameCtrl , 1 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-09-06 15:13:52 +00:00
2022-12-13 20:47:28 +00:00
m_browseButton = new STD_BITMAP_BUTTON ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxSize ( - 1 , - 1 ) , wxBU_AUTODRAW | 0 ) ;
bSizerNetlistFilename - > Add ( m_browseButton , 0 , wxALIGN_CENTER_VERTICAL , 2 ) ;
2019-09-06 15:13:52 +00:00
2022-12-13 20:47:28 +00:00
bMainSizer - > Add ( bSizerNetlistFilename , 0 , wxEXPAND | wxALL , 10 ) ;
2019-09-06 15:13:52 +00:00
2018-02-28 09:44:22 +00:00
wxBoxSizer * bUpperSizer ;
bUpperSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-09-06 15:13:52 +00:00
2020-03-17 16:08:29 +00:00
wxString m_matchByTimestampChoices [ ] = { _ ( " Link footprints using component tstamps (unique ids) " ) , _ ( " Link footprints using reference designators " ) } ;
2018-02-28 09:44:22 +00:00
int m_matchByTimestampNChoices = sizeof ( m_matchByTimestampChoices ) / sizeof ( wxString ) ;
2020-03-16 11:05:01 +00:00
m_matchByTimestamp = new wxRadioBox ( this , wxID_ANY , _ ( " Link Method " ) , wxDefaultPosition , wxDefaultSize , m_matchByTimestampNChoices , m_matchByTimestampChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_matchByTimestamp - > SetSelection ( 0 ) ;
2018-08-04 13:27:19 +00:00
m_matchByTimestamp - > SetToolTip ( _ ( " Select whether to update footprint references to match their currently-assigned symbols, or to re-assign footprints to symbols which match their current references. " ) ) ;
2019-09-06 15:13:52 +00:00
bUpperSizer - > Add ( m_matchByTimestamp , 1 , wxALIGN_TOP | wxEXPAND | wxLEFT | wxRIGHT | wxTOP , 5 ) ;
2018-02-28 09:44:22 +00:00
wxStaticBoxSizer * sbSizer1 ;
sbSizer1 = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Options " ) ) , wxVERTICAL ) ;
2019-09-06 15:13:52 +00:00
2024-01-01 19:26:42 +00:00
m_cbDeleteExtraFootprints = new wxCheckBox ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " Delete footprints with no components in netlist " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbSizer1 - > Add ( m_cbDeleteExtraFootprints , 0 , wxBOTTOM , 5 ) ;
2020-03-16 11:05:01 +00:00
m_cbUpdateFootprints = new wxCheckBox ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " Replace footprints with those specified in netlist " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-02-28 09:44:22 +00:00
sbSizer1 - > Add ( m_cbUpdateFootprints , 0 , wxBOTTOM , 5 ) ;
2019-09-06 15:13:52 +00:00
2024-01-01 19:26:42 +00:00
m_cbOverrideLocks = new wxCheckBox ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " Delete/replace footprints even if locked " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbSizer1 - > Add ( m_cbOverrideLocks , 0 , wxBOTTOM | wxRIGHT , 5 ) ;
2020-03-16 11:05:01 +00:00
2018-02-28 09:44:22 +00:00
m_cbDeleteShortingTracks = new wxCheckBox ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " Delete tracks shorting multiple nets " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbSizer1 - > Add ( m_cbDeleteShortingTracks , 0 , wxBOTTOM , 5 ) ;
2019-09-06 15:13:52 +00:00
bUpperSizer - > Add ( sbSizer1 , 1 , wxEXPAND | wxLEFT | wxRIGHT | wxTOP , 5 ) ;
2020-08-26 21:43:38 +00:00
bMainSizer - > Add ( bUpperSizer , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-09-06 15:13:52 +00:00
2013-08-23 06:38:57 +00:00
wxBoxSizer * bLowerSizer ;
bLowerSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-09-06 15:13:52 +00:00
bLowerSizer - > SetMinSize ( wxSize ( - 1 , 250 ) ) ;
2018-02-28 09:44:22 +00:00
m_MessageWindow = new WX_HTML_REPORT_PANEL ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
bLowerSizer - > Add ( m_MessageWindow , 1 , wxEXPAND | wxALL , 5 ) ;
2019-09-06 15:13:52 +00:00
bMainSizer - > Add ( bLowerSizer , 1 , wxEXPAND | wxLEFT | wxRIGHT | wxTOP , 5 ) ;
2018-02-28 09:44:22 +00:00
m_buttonsSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-09-06 15:13:52 +00:00
2022-02-13 13:26:20 +00:00
m_sdbSizer = new wxStdDialogButtonSizer ( ) ;
m_sdbSizerOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer - > AddButton ( m_sdbSizerOK ) ;
m_sdbSizerApply = new wxButton ( this , wxID_APPLY ) ;
m_sdbSizer - > AddButton ( m_sdbSizerApply ) ;
m_sdbSizerCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer - > AddButton ( m_sdbSizerCancel ) ;
m_sdbSizer - > Realize ( ) ;
2019-09-06 15:13:52 +00:00
2022-02-13 13:26:20 +00:00
m_buttonsSizer - > Add ( m_sdbSizer , 1 , wxEXPAND , 5 ) ;
2019-09-06 15:13:52 +00:00
2020-08-26 21:43:38 +00:00
bMainSizer - > Add ( m_buttonsSizer , 0 , wxEXPAND | wxALL , 5 ) ;
2019-09-06 15:13:52 +00:00
2013-05-26 04:36:44 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
2020-03-16 11:05:01 +00:00
bMainSizer - > Fit ( this ) ;
2019-09-06 15:13:52 +00:00
2013-05-26 04:36:44 +00:00
// Connect Events
2022-12-13 20:47:28 +00:00
m_NetlistFilenameCtrl - > Connect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnFilenameKillFocus ) , NULL , this ) ;
m_browseButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : onBrowseNetlistFiles ) , NULL , this ) ;
m_matchByTimestamp - > Connect ( wxEVT_COMMAND_RADIOBOX_SELECTED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnMatchChanged ) , NULL , this ) ;
m_cbDeleteExtraFootprints - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnOptionChanged ) , NULL , this ) ;
2024-01-01 19:26:42 +00:00
m_cbUpdateFootprints - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnOptionChanged ) , NULL , this ) ;
m_cbOverrideLocks - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnOptionChanged ) , NULL , this ) ;
2022-12-13 20:47:28 +00:00
m_cbDeleteShortingTracks - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnOptionChanged ) , NULL , this ) ;
m_sdbSizerApply - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : onUpdatePCB ) , NULL , this ) ;
m_sdbSizerOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : onImportNetlist ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}
2022-12-13 20:47:28 +00:00
DIALOG_IMPORT_NETLIST_BASE : : ~ DIALOG_IMPORT_NETLIST_BASE ( )
2013-05-26 04:36:44 +00:00
{
// Disconnect Events
2022-12-13 20:47:28 +00:00
m_NetlistFilenameCtrl - > Disconnect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnFilenameKillFocus ) , NULL , this ) ;
m_browseButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : onBrowseNetlistFiles ) , NULL , this ) ;
m_matchByTimestamp - > Disconnect ( wxEVT_COMMAND_RADIOBOX_SELECTED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnMatchChanged ) , NULL , this ) ;
m_cbDeleteExtraFootprints - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnOptionChanged ) , NULL , this ) ;
2024-01-01 19:26:42 +00:00
m_cbUpdateFootprints - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnOptionChanged ) , NULL , this ) ;
m_cbOverrideLocks - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnOptionChanged ) , NULL , this ) ;
2022-12-13 20:47:28 +00:00
m_cbDeleteShortingTracks - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : OnOptionChanged ) , NULL , this ) ;
m_sdbSizerApply - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : onUpdatePCB ) , NULL , this ) ;
m_sdbSizerOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_IMPORT_NETLIST_BASE : : onImportNetlist ) , NULL , this ) ;
2019-09-06 15:13:52 +00:00
2013-05-26 04:36:44 +00:00
}