2016-01-29 10:24:39 +00:00
///////////////////////////////////////////////////////////////////////////
2020-03-13 17:28:17 +00:00
// C++ code generated with wxFormBuilder (version Oct 26 2018)
2016-01-29 10:24:39 +00:00
// http://www.wxformbuilder.org/
//
2017-12-24 15:04:02 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2016-01-29 10:24:39 +00: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 )
{
2020-03-13 17:28:17 +00:00
this - > SetSizeHints ( wxSize ( - 1 , - 1 ) , wxDefaultSize ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
wxBoxSizer * bUpperSizer ;
bUpperSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
wxStaticBoxSizer * sbSizer1 ;
sbSizer1 = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Options " ) ) , wxVERTICAL ) ;
2019-11-17 15:37:32 +00:00
2020-03-17 16:08:29 +00:00
m_cbRelinkFootprints = new wxCheckBox ( sbSizer1 - > 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-03-16 22:42:51 +00:00
2020-03-13 17:28:17 +00:00
sbSizer1 - > Add ( m_cbRelinkFootprints , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
m_cbDeleteExtraFootprints = new wxCheckBox ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " Delete footprints with no symbols " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbDeleteExtraFootprints - > SetToolTip ( _ ( " Remove from the board unlocked footprints which are not linked to a schematic symbol. " ) ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
sbSizer1 - > Add ( m_cbDeleteExtraFootprints , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
m_cbUpdateFootprints = new wxCheckBox ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " Replace footprints with those specified in the schematic " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-03-17 16:08:29 +00:00
m_cbUpdateFootprints - > SetValue ( true ) ;
2020-03-13 17:28:17 +00:00
m_cbUpdateFootprints - > SetToolTip ( _ ( " Normally footprints on the board should be changed to match footprint assignment changes made in the schematic. Uncheck this only if you don't want to change existing footprints on the board. " ) ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
sbSizer1 - > Add ( m_cbUpdateFootprints , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
bUpperSizer - > Add ( sbSizer1 , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
bMainSizer - > Add ( bUpperSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
wxBoxSizer * bLowerSizer ;
bLowerSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
bLowerSizer - > SetMinSize ( wxSize ( 660 , 300 ) ) ;
m_messagePanel = new WX_HTML_REPORT_PANEL ( this , wxID_ANY , wxDefaultPosition , wxSize ( - 1 , - 1 ) , wxTAB_TRAVERSAL ) ;
bLowerSizer - > Add ( m_messagePanel , 1 , wxEXPAND | wxALL , 5 ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
bMainSizer - > Add ( bLowerSizer , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +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 ( ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
bMainSizer - > Add ( m_sdbSizer1 , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
bMainSizer - > Fit ( this ) ;
2019-11-17 15:37:32 +00:00
2020-03-13 17:28:17 +00:00
// Connect Events
m_cbRelinkFootprints - > 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_cbUpdateFootprints - > 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 10:24:39 +00:00
}
DIALOG_UPDATE_PCB_BASE : : ~ DIALOG_UPDATE_PCB_BASE ( )
{
2020-03-13 17:28:17 +00:00
// Disconnect Events
m_cbRelinkFootprints - > 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_cbUpdateFootprints - > 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 ) ;
2019-11-17 15:37:32 +00:00
2016-01-29 10:24:39 +00:00
}