2020-01-29 16:33:57 +00:00
///////////////////////////////////////////////////////////////////////////
2020-03-17 16:08:29 +00:00
// C++ code generated with wxFormBuilder (version Oct 26 2018)
2020-01-29 16:33:57 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
2022-09-03 18:29:02 +00:00
# include "widgets/wx_html_report_panel.h"
2020-01-29 16:33:57 +00:00
# include "dialog_update_from_pcb_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_UPDATE_FROM_PCB_BASE : : DIALOG_UPDATE_FROM_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 )
{
2020-01-30 08:22:21 +00:00
this - > SetSizeHints ( wxSize ( - 1 , - 1 ) , wxDefaultSize ) ;
2020-01-29 16:33:57 +00:00
2020-01-30 08:22:21 +00:00
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2020-01-29 16:33:57 +00:00
2020-01-30 08:22:21 +00:00
wxBoxSizer * bUpperSizer ;
bUpperSizer = new wxBoxSizer ( wxVERTICAL ) ;
2020-01-29 16:33:57 +00:00
2020-01-30 08:22:21 +00:00
wxStaticBoxSizer * sbSizerOptions ;
sbSizerOptions = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Options " ) ) , wxVERTICAL ) ;
2020-01-29 16:33:57 +00:00
2020-03-17 16:08:29 +00:00
wxFlexGridSizer * fgSizer1 ;
2020-07-16 17:31:36 +00:00
fgSizer1 = new wxFlexGridSizer ( 0 , 1 , 0 , 0 ) ;
2020-03-17 16:08:29 +00:00
fgSizer1 - > SetFlexibleDirection ( wxVERTICAL ) ;
fgSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2020-01-29 16:33:57 +00:00
2020-07-16 17:31:36 +00:00
m_cbRelinkFootprints = new wxCheckBox ( sbSizerOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Re-link footprints to schematic symbols based on their reference designators " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbRelinkFootprints - > SetToolTip ( _ ( " Normally footprints are linked to their symbols via their Unique IDs. Select this option only if you want to reset the footprint linkages based on their reference designators. " ) ) ;
2020-01-29 16:33:57 +00:00
2020-07-16 17:31:36 +00:00
fgSizer1 - > Add ( m_cbRelinkFootprints , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-01-29 16:33:57 +00:00
2020-07-16 17:31:36 +00:00
sbSizerOptions - > Add ( fgSizer1 , 1 , wxEXPAND | wxBOTTOM , 5 ) ;
2020-11-23 23:57:26 +00:00
bUpperSizer - > Add ( sbSizerOptions , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2020-07-16 17:31:36 +00:00
wxStaticBoxSizer * sbSizer2 ;
sbSizer2 = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Update " ) ) , wxVERTICAL ) ;
wxFlexGridSizer * fgSizer2 ;
fgSizer2 = new wxFlexGridSizer ( 0 , 2 , 0 , 0 ) ;
fgSizer2 - > AddGrowableCol ( 0 ) ;
fgSizer2 - > AddGrowableCol ( 1 ) ;
fgSizer2 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer2 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2020-01-29 16:33:57 +00:00
2020-07-16 17:31:36 +00:00
m_cbUpdateReferences = new wxCheckBox ( sbSizer2 - > GetStaticBox ( ) , wxID_ANY , _ ( " Reference designators " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbUpdateReferences - > SetValue ( true ) ;
m_cbUpdateReferences - > SetToolTip ( _ ( " Update references of symbols that have been changed in the PCB editor. " ) ) ;
2020-01-29 16:33:57 +00:00
2020-07-16 17:31:36 +00:00
fgSizer2 - > Add ( m_cbUpdateReferences , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
2020-07-16 17:31:36 +00:00
m_cbUpdateFootprints = new wxCheckBox ( sbSizer2 - > GetStaticBox ( ) , wxID_ANY , _ ( " Footprint assignments " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-03-17 16:08:29 +00:00
m_cbUpdateFootprints - > SetToolTip ( _ ( " Update footprint associations of symbols whose footprints have been replaced with different footprints in PCB. " ) ) ;
2020-07-16 17:31:36 +00:00
fgSizer2 - > Add ( m_cbUpdateFootprints , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-01-29 16:33:57 +00:00
2020-07-16 17:31:36 +00:00
m_cbUpdateValues = new wxCheckBox ( sbSizer2 - > GetStaticBox ( ) , wxID_ANY , _ ( " Values " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbUpdateValues - > SetToolTip ( _ ( " Update symbols values that have been replaced in the PCB editor. " ) ) ;
2020-01-29 16:33:57 +00:00
2020-07-16 17:31:36 +00:00
fgSizer2 - > Add ( m_cbUpdateValues , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-06-08 18:36:25 +00:00
2020-07-16 17:31:36 +00:00
m_cbUpdateNetNames = new wxCheckBox ( sbSizer2 - > GetStaticBox ( ) , wxID_ANY , _ ( " Net names " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer2 - > Add ( m_cbUpdateNetNames , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-06-08 18:36:25 +00:00
2020-07-16 17:31:36 +00:00
sbSizer2 - > Add ( fgSizer2 , 1 , wxEXPAND , 5 ) ;
2020-01-29 16:33:57 +00:00
2020-07-16 17:31:36 +00:00
bUpperSizer - > Add ( sbSizer2 , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2020-01-29 16:33:57 +00:00
2020-01-30 08:22:21 +00:00
bMainSizer - > Add ( bUpperSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2020-01-29 16:33:57 +00:00
2020-01-30 08:22:21 +00:00
wxBoxSizer * bLowerSizer ;
bLowerSizer = new wxBoxSizer ( wxVERTICAL ) ;
2020-01-29 16:33:57 +00:00
2020-07-16 17:31:36 +00:00
bLowerSizer - > SetMinSize ( wxSize ( 600 , 260 ) ) ;
2020-01-30 08:22:21 +00:00
m_messagePanel = new WX_HTML_REPORT_PANEL ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
bLowerSizer - > Add ( m_messagePanel , 1 , wxEXPAND | wxALL , 5 ) ;
2020-01-29 16:33:57 +00:00
2020-01-30 08:22:21 +00:00
bMainSizer - > Add ( bLowerSizer , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2020-01-29 16:33:57 +00:00
2020-01-30 08:22:21 +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 ( ) ;
2020-01-29 16:33:57 +00:00
2020-01-30 08:22:21 +00:00
bMainSizer - > Add ( m_sdbSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2020-01-29 16:33:57 +00:00
2020-01-30 08:22:21 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
bMainSizer - > Fit ( this ) ;
2020-01-29 16:33:57 +00:00
2020-01-30 08:22:21 +00:00
// Connect Events
2020-07-16 17:31:36 +00:00
m_cbRelinkFootprints - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
m_cbUpdateReferences - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
2020-03-17 16:08:29 +00:00
m_cbUpdateFootprints - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
2020-07-16 17:31:36 +00:00
m_cbUpdateValues - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
2020-06-08 18:36:25 +00:00
m_cbUpdateNetNames - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
2020-01-30 08:22:21 +00:00
m_sdbSizerOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnUpdateClick ) , NULL , this ) ;
2020-01-29 16:33:57 +00:00
}
DIALOG_UPDATE_FROM_PCB_BASE : : ~ DIALOG_UPDATE_FROM_PCB_BASE ( )
{
2020-01-30 08:22:21 +00:00
// Disconnect Events
2020-07-16 17:31:36 +00:00
m_cbRelinkFootprints - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
m_cbUpdateReferences - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
2020-03-17 16:08:29 +00:00
m_cbUpdateFootprints - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
2020-07-16 17:31:36 +00:00
m_cbUpdateValues - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
2020-06-08 18:36:25 +00:00
m_cbUpdateNetNames - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnOptionChanged ) , NULL , this ) ;
2020-01-30 08:22:21 +00:00
m_sdbSizerOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_UPDATE_FROM_PCB_BASE : : OnUpdateClick ) , NULL , this ) ;
2020-01-29 16:33:57 +00:00
}