2016-01-29 11:24:39 +01:00
///////////////////////////////////////////////////////////////////////////
2018-05-01 13:52:11 +01:00
// C++ code generated with wxFormBuilder (version Dec 30 2017)
2016-01-29 11:24:39 +01:00
// http://www.wxformbuilder.org/
//
2017-12-24 10:04:02 -05:00
// PLEASE DO *NOT* EDIT THIS FILE!
2016-01-29 11:24:39 +01:00
///////////////////////////////////////////////////////////////////////////
# include "wx_html_report_panel.h"
# include "dialog_update_pcb_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_UPDATE_PCB_BASE : : DIALOG_UPDATE_PCB_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
{
2017-12-27 12:09:27 -05:00
this - > SetSizeHints ( wxSize ( - 1 , - 1 ) , wxDefaultSize ) ;
2016-01-29 11:24:39 +01:00
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2018-02-28 09:44:22 +00:00
wxBoxSizer * bUpperSizer ;
2019-08-01 13:21:56 -06:00
bUpperSizer = new wxBoxSizer ( wxVERTICAL ) ;
2016-01-29 11:24:39 +01:00
2019-08-01 13:21:56 -06:00
wxString m_matchByTimestampChoices [ ] = { _ ( " Update footprint references to match any changed symbol references " ) , _ ( " Update footprint associations by existing references " ) } ;
2018-02-28 09:44:22 +00:00
int m_matchByTimestampNChoices = sizeof ( m_matchByTimestampChoices ) / sizeof ( wxString ) ;
m_matchByTimestamp = new wxRadioBox ( this , wxID_ANY , _ ( " Match Method " ) , wxDefaultPosition , wxDefaultSize , m_matchByTimestampNChoices , m_matchByTimestampChoices , 1 , wxRA_SPECIFY_COLS ) ;
2019-08-01 13:21:56 -06:00
m_matchByTimestamp - > SetSelection ( 1 ) ;
m_matchByTimestamp - > SetToolTip ( _ ( " Footprint references are normally updated to follow edits in the schematic. \n However, updating footprint associations usually works better after re-annotating the schematic. \n For best results, update footprint references before re-annotating, then re-annotate, and then update footprint associations. " ) ) ;
2016-01-29 11:24:39 +01:00
2019-08-01 13:21:56 -06:00
bUpperSizer - > Add ( m_matchByTimestamp , 0 , wxALIGN_TOP | wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2016-01-29 11:24:39 +01:00
2018-02-28 09:44:22 +00:00
wxStaticBoxSizer * sbSizer1 ;
sbSizer1 = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Options " ) ) , wxVERTICAL ) ;
2016-01-29 11:24:39 +01:00
2019-08-01 13:21:56 -06:00
wxGridBagSizer * gbSizer1 ;
gbSizer1 = new wxGridBagSizer ( 2 , 0 ) ;
gbSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
gbSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2016-01-29 11:24:39 +01:00
2019-08-01 13:21:56 -06:00
m_cbUpdateFootprints = new wxCheckBox ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " Replace footprints of symbols whose footprint assignments have changed " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbUpdateFootprints - > SetToolTip ( _ ( " Used primarily after changing footprint assignments via Eeschema's Assign Footprints dialog (Cvpcb) " ) ) ;
2016-01-29 11:24:39 +01:00
2019-08-01 13:21:56 -06:00
gbSizer1 - > Add ( m_cbUpdateFootprints , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 2 ) , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbDeleteExtraFootprints = new wxCheckBox ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " Delete footprints with no associated symbol " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
gbSizer1 - > Add ( m_cbDeleteExtraFootprints , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbDeleteSinglePadNets = new wxCheckBox ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " Delete nets containing only a single pad " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
gbSizer1 - > Add ( m_cbDeleteSinglePadNets , wxGBPosition ( 1 , 1 ) , wxGBSpan ( 1 , 1 ) , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
sbSizer1 - > Add ( gbSizer1 , 1 , wxEXPAND , 5 ) ;
2016-01-29 11:24:39 +01:00
2018-02-28 09:44:22 +00:00
bUpperSizer - > Add ( sbSizer1 , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2016-01-29 11:24:39 +01:00
2018-02-28 09:44:22 +00:00
bMainSizer - > Add ( bUpperSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2016-01-29 11:24:39 +01:00
2018-02-28 09:44:22 +00:00
wxBoxSizer * bLowerSizer ;
bLowerSizer = new wxBoxSizer ( wxVERTICAL ) ;
bLowerSizer - > SetMinSize ( wxSize ( 660 , 300 ) ) ;
m_messagePanel = new WX_HTML_REPORT_PANEL ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
bLowerSizer - > Add ( m_messagePanel , 1 , wxEXPAND | wxALL , 5 ) ;
2016-01-29 11:24:39 +01:00
2018-05-01 13:52:11 +01:00
2018-02-28 09:44:22 +00:00
bMainSizer - > Add ( bLowerSizer , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2016-01-29 11:24:39 +01:00
2018-02-28 09:44:22 +00:00
m_sdbSizer1 = new wxStdDialogButtonSizer ( ) ;
m_sdbSizer1OK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer1 - > AddButton ( m_sdbSizer1OK ) ;
m_sdbSizer1Cancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer1 - > AddButton ( m_sdbSizer1Cancel ) ;
m_sdbSizer1 - > Realize ( ) ;
2016-01-29 11:24:39 +01:00
2018-02-28 09:44:22 +00:00
bMainSizer - > Add ( m_sdbSizer1 , 0 , wxALL | wxEXPAND , 5 ) ;
2016-01-29 11:24:39 +01:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
bMainSizer - > Fit ( this ) ;
// Connect Events
2018-02-28 09:44:22 +00:00
m_matchByTimestamp - > Connect ( wxEVT_COMMAND_RADIOBOX_SELECTED , wxCommandEventHandler ( DIALOG_UPDATE_PCB_BASE : : OnMatchChanged ) , NULL , this ) ;
m_cbUpdateFootprints - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
m_cbDeleteExtraFootprints - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
m_cbDeleteSinglePadNets - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
m_sdbSizer1OK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_PCB_BASE : : OnUpdateClick ) , NULL , this ) ;
2016-01-29 11:24:39 +01:00
}
DIALOG_UPDATE_PCB_BASE : : ~ DIALOG_UPDATE_PCB_BASE ( )
{
// Disconnect Events
2018-02-28 09:44:22 +00:00
m_matchByTimestamp - > Disconnect ( wxEVT_COMMAND_RADIOBOX_SELECTED , wxCommandEventHandler ( DIALOG_UPDATE_PCB_BASE : : OnMatchChanged ) , NULL , this ) ;
m_cbUpdateFootprints - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
m_cbDeleteExtraFootprints - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
m_cbDeleteSinglePadNets - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
m_sdbSizer1OK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_PCB_BASE : : OnUpdateClick ) , NULL , this ) ;
2016-01-29 11:24:39 +01:00
}