2013-02-22 13:47:35 +00:00
///////////////////////////////////////////////////////////////////////////
2020-10-30 19:48:22 +00:00
// C++ code generated with wxFormBuilder (version 3.9.0 Jul 27 2020)
2013-02-22 13:47:35 +00:00
// http://www.wxformbuilder.org/
//
2018-04-18 09:31:33 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2013-02-22 13:47:35 +00:00
///////////////////////////////////////////////////////////////////////////
2017-08-18 18:26:45 +00:00
# include "wx_html_report_panel.h"
2018-02-16 16:52:19 +00:00
# include "dialog_exchange_footprints_base.h"
2013-02-22 13:47:35 +00:00
///////////////////////////////////////////////////////////////////////////
2018-02-16 19:26:55 +00:00
DIALOG_EXCHANGE_FOOTPRINTS_BASE : : DIALOG_EXCHANGE_FOOTPRINTS_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-02-22 13:47:35 +00:00
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
2019-08-25 21:10:15 +00:00
2018-01-28 18:44:52 +00:00
m_mainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-08-25 21:10:15 +00:00
2018-01-28 18:44:52 +00:00
m_upperSizer = new wxGridBagSizer ( 0 , 0 ) ;
m_upperSizer - > SetFlexibleDirection ( wxBOTH ) ;
m_upperSizer - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-08-25 21:10:15 +00:00
2020-10-30 19:48:22 +00:00
m_matchAll = new wxRadioButton ( this , wxID_ANY , _ ( " Update all footprints on board " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-02-10 16:07:02 +00:00
m_upperSizer - > Add ( m_matchAll , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 2 ) , wxEXPAND | wxALL , 5 ) ;
2019-08-25 21:10:15 +00:00
2020-10-30 19:48:22 +00:00
m_matchSelected = new wxRadioButton ( this , wxID_ANY , _ ( " Update selected footprint " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-10-22 15:01:29 +00:00
m_upperSizer - > Add ( m_matchSelected , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALL , 5 ) ;
2019-08-25 21:10:15 +00:00
2020-10-30 19:48:22 +00:00
m_matchSpecifiedRef = new wxRadioButton ( this , wxID_ANY , _ ( " Update footprints matching reference designator: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-10-22 15:01:29 +00:00
m_upperSizer - > Add ( m_matchSpecifiedRef , wxGBPosition ( 2 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALL | wxEXPAND , 5 ) ;
2019-08-25 21:10:15 +00:00
2018-07-31 11:16:58 +00:00
m_specifiedRef = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_PROCESS_ENTER ) ;
2018-10-15 15:09:03 +00:00
m_specifiedRef - > SetMinSize ( wxSize ( 200 , - 1 ) ) ;
2019-08-25 21:10:15 +00:00
2018-10-22 15:01:29 +00:00
m_upperSizer - > Add ( m_specifiedRef , wxGBPosition ( 2 , 1 ) , wxGBSpan ( 1 , 1 ) , wxBOTTOM | wxRIGHT | wxTOP | wxEXPAND , 5 ) ;
2019-08-25 21:10:15 +00:00
2020-10-30 19:48:22 +00:00
m_matchSpecifiedValue = new wxRadioButton ( this , wxID_ANY , _ ( " Update footprints matching value: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-10-22 15:01:29 +00:00
m_upperSizer - > Add ( m_matchSpecifiedValue , wxGBPosition ( 3 , 0 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxALL , 5 ) ;
2019-08-25 21:10:15 +00:00
2018-07-31 11:16:58 +00:00
m_specifiedValue = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_PROCESS_ENTER ) ;
2018-10-22 15:01:29 +00:00
m_upperSizer - > Add ( m_specifiedValue , wxGBPosition ( 3 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
2019-08-25 21:10:15 +00:00
2020-10-30 19:48:22 +00:00
m_matchSpecifiedID = new wxRadioButton ( this , wxID_ANY , _ ( " Update footprints with library id: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-10-22 15:01:29 +00:00
m_upperSizer - > Add ( m_matchSpecifiedID , wxGBPosition ( 4 , 0 ) , wxGBSpan ( 1 , 2 ) , wxLEFT | wxRIGHT | wxTOP | wxEXPAND , 5 ) ;
2019-08-25 21:10:15 +00:00
2018-07-18 16:59:05 +00:00
m_upperSizer - > AddGrowableCol ( 1 ) ;
2019-08-25 21:10:15 +00:00
2018-07-18 16:59:05 +00:00
m_mainSizer - > Add ( m_upperSizer , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 10 ) ;
2019-08-25 21:10:15 +00:00
2018-07-18 16:59:05 +00:00
wxBoxSizer * bSizer4 ;
bSizer4 = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-08-25 21:10:15 +00:00
2018-07-31 11:16:58 +00:00
m_specifiedID = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_PROCESS_ENTER ) ;
2018-08-22 23:36:54 +00:00
m_specifiedID - > SetMinSize ( wxSize ( 500 , - 1 ) ) ;
2019-08-25 21:10:15 +00:00
2018-07-18 16:59:05 +00:00
bSizer4 - > Add ( m_specifiedID , 1 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2019-08-25 21:10:15 +00:00
m_specifiedIDBrowseButton = new wxBitmapButton ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2018-07-20 15:03:43 +00:00
bSizer4 - > Add ( m_specifiedIDBrowseButton , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 2 ) ;
2019-08-25 21:10:15 +00:00
2018-07-18 16:59:05 +00:00
m_mainSizer - > Add ( bSizer4 , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 10 ) ;
2019-08-25 21:10:15 +00:00
2018-04-18 09:31:33 +00:00
m_changeSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-08-25 21:10:15 +00:00
2018-01-12 19:36:15 +00:00
wxStaticLine * staticline1 ;
staticline1 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
2018-07-17 21:14:02 +00:00
m_changeSizer - > Add ( staticline1 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
2019-08-25 21:10:15 +00:00
2018-01-12 19:36:15 +00:00
wxStaticText * newIdLabel ;
2020-03-17 16:08:29 +00:00
newIdLabel = new wxStaticText ( this , wxID_ANY , _ ( " New footprint library id: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-01-12 19:36:15 +00:00
newIdLabel - > Wrap ( - 1 ) ;
2018-04-18 09:31:33 +00:00
m_changeSizer - > Add ( newIdLabel , 0 , wxLEFT | wxRIGHT | wxTOP | wxEXPAND , 5 ) ;
2019-08-25 21:10:15 +00:00
2018-07-18 16:59:05 +00:00
wxBoxSizer * bSizer3 ;
bSizer3 = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-08-25 21:10:15 +00:00
2018-01-12 19:36:15 +00:00
m_newID = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-08-22 23:36:54 +00:00
m_newID - > SetMinSize ( wxSize ( 500 , - 1 ) ) ;
2019-08-25 21:10:15 +00:00
2018-07-18 16:59:05 +00:00
bSizer3 - > Add ( m_newID , 1 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-08-25 21:10:15 +00:00
m_newIDBrowseButton = new wxBitmapButton ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2018-07-20 15:03:43 +00:00
bSizer3 - > Add ( m_newIDBrowseButton , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 2 ) ;
2019-08-25 21:10:15 +00:00
2018-07-18 16:59:05 +00:00
m_changeSizer - > Add ( bSizer3 , 1 , wxEXPAND | wxLEFT , 5 ) ;
2019-08-25 21:10:15 +00:00
2018-07-17 21:14:02 +00:00
m_mainSizer - > Add ( m_changeSizer , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 10 ) ;
2019-08-25 21:10:15 +00:00
2018-04-18 09:31:33 +00:00
m_updateOptionsSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Update Options " ) ) , wxVERTICAL ) ;
2019-08-25 21:10:15 +00:00
2018-04-18 09:31:33 +00:00
m_removeExtraBox = new wxCheckBox ( m_updateOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Remove text items which are not in library footprint " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_removeExtraBox - > SetToolTip ( _ ( " Removes fields that do not occur in the original library symbols " ) ) ;
2019-08-25 21:10:15 +00:00
2018-04-18 09:31:33 +00:00
m_updateOptionsSizer - > Add ( m_removeExtraBox , 0 , wxBOTTOM | wxRIGHT , 5 ) ;
2019-08-25 21:10:15 +00:00
2020-10-30 19:48:22 +00:00
m_resetTextItemLayers = new wxCheckBox ( m_updateOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Reset text layers and visibilities " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-04-18 09:31:33 +00:00
m_updateOptionsSizer - > Add ( m_resetTextItemLayers , 0 , wxBOTTOM | wxRIGHT , 5 ) ;
2019-08-25 21:10:15 +00:00
2020-10-30 19:48:22 +00:00
m_resetTextItemEffects = new wxCheckBox ( m_updateOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Reset text sizes, styles and positions " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-04-18 09:31:33 +00:00
m_updateOptionsSizer - > Add ( m_resetTextItemEffects , 0 , wxBOTTOM | wxRIGHT , 5 ) ;
2019-08-25 21:10:15 +00:00
2020-10-30 19:48:22 +00:00
m_resetFabricationAttrs = new wxCheckBox ( m_updateOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Reset fabrication attributes " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-08-26 21:43:38 +00:00
m_updateOptionsSizer - > Add ( m_resetFabricationAttrs , 0 , wxBOTTOM | wxRIGHT , 5 ) ;
2020-10-30 19:48:22 +00:00
m_reset3DModels = new wxCheckBox ( m_updateOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Reset 3D models " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-08-25 21:10:15 +00:00
m_updateOptionsSizer - > Add ( m_reset3DModels , 0 , wxBOTTOM | wxRIGHT , 5 ) ;
2018-07-17 21:14:02 +00:00
m_mainSizer - > Add ( m_updateOptionsSizer , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 10 ) ;
2019-08-25 21:10:15 +00:00
2018-04-18 09:31:33 +00:00
m_MessageWindow = new WX_HTML_REPORT_PANEL ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
m_MessageWindow - > SetMinSize ( wxSize ( - 1 , 240 ) ) ;
2019-08-25 21:10:15 +00:00
2018-08-15 13:29:53 +00:00
m_mainSizer - > Add ( m_MessageWindow , 5 , wxEXPAND | wxRIGHT | wxLEFT , 10 ) ;
2019-08-25 21:10:15 +00:00
2018-07-31 11:16:58 +00:00
m_sdbSizer = new wxStdDialogButtonSizer ( ) ;
2020-05-06 19:49:58 +00:00
m_sdbSizerOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer - > AddButton ( m_sdbSizerOK ) ;
2018-07-31 11:16:58 +00:00
m_sdbSizerCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer - > AddButton ( m_sdbSizerCancel ) ;
m_sdbSizer - > Realize ( ) ;
2019-08-25 21:10:15 +00:00
2018-07-31 11:16:58 +00:00
m_mainSizer - > Add ( m_sdbSizer , 0 , wxEXPAND | wxALL , 5 ) ;
2019-08-25 21:10:15 +00:00
2018-01-28 18:44:52 +00:00
this - > SetSizer ( m_mainSizer ) ;
2013-02-22 13:47:35 +00:00
this - > Layout ( ) ;
2018-08-15 13:29:53 +00:00
m_mainSizer - > Fit ( this ) ;
2019-08-25 21:10:15 +00:00
2013-02-22 13:47:35 +00:00
// Connect Events
2018-02-16 19:26:55 +00:00
this - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : updateMatchModeRadioButtons ) ) ;
m_matchAll - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchAllClicked ) , NULL , this ) ;
2018-10-22 15:01:29 +00:00
m_matchSelected - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchSelectedClicked ) , NULL , this ) ;
2018-02-16 19:26:55 +00:00
m_matchSpecifiedRef - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchRefClicked ) , NULL , this ) ;
m_specifiedRef - > Connect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchRefClicked ) , NULL , this ) ;
m_specifiedRef - > Connect ( wxEVT_COMMAND_TEXT_ENTER , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchRefClicked ) , NULL , this ) ;
m_matchSpecifiedValue - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchValueClicked ) , NULL , this ) ;
m_specifiedValue - > Connect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchValueClicked ) , NULL , this ) ;
m_specifiedValue - > Connect ( wxEVT_COMMAND_TEXT_ENTER , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchValueClicked ) , NULL , this ) ;
m_matchSpecifiedID - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchIDClicked ) , NULL , this ) ;
2018-07-31 11:16:58 +00:00
m_specifiedID - > Connect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchIDClicked ) , NULL , this ) ;
m_specifiedID - > Connect ( wxEVT_COMMAND_TEXT_ENTER , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchIDClicked ) , NULL , this ) ;
2018-02-16 19:26:55 +00:00
m_specifiedIDBrowseButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : ViewAndSelectFootprint ) , NULL , this ) ;
m_newIDBrowseButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : ViewAndSelectFootprint ) , NULL , this ) ;
2020-05-06 19:49:58 +00:00
m_sdbSizerOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnOKClicked ) , NULL , this ) ;
2013-02-22 13:47:35 +00:00
}
2018-02-16 19:26:55 +00:00
DIALOG_EXCHANGE_FOOTPRINTS_BASE : : ~ DIALOG_EXCHANGE_FOOTPRINTS_BASE ( )
2013-02-22 13:47:35 +00:00
{
// Disconnect Events
2018-02-16 19:26:55 +00:00
this - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : updateMatchModeRadioButtons ) ) ;
m_matchAll - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchAllClicked ) , NULL , this ) ;
2018-10-22 15:01:29 +00:00
m_matchSelected - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchSelectedClicked ) , NULL , this ) ;
2018-02-16 19:26:55 +00:00
m_matchSpecifiedRef - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchRefClicked ) , NULL , this ) ;
m_specifiedRef - > Disconnect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchRefClicked ) , NULL , this ) ;
m_specifiedRef - > Disconnect ( wxEVT_COMMAND_TEXT_ENTER , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchRefClicked ) , NULL , this ) ;
m_matchSpecifiedValue - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchValueClicked ) , NULL , this ) ;
m_specifiedValue - > Disconnect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchValueClicked ) , NULL , this ) ;
m_specifiedValue - > Disconnect ( wxEVT_COMMAND_TEXT_ENTER , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchValueClicked ) , NULL , this ) ;
m_matchSpecifiedID - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchIDClicked ) , NULL , this ) ;
2018-07-31 11:16:58 +00:00
m_specifiedID - > Disconnect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchIDClicked ) , NULL , this ) ;
m_specifiedID - > Disconnect ( wxEVT_COMMAND_TEXT_ENTER , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnMatchIDClicked ) , NULL , this ) ;
2018-02-16 19:26:55 +00:00
m_specifiedIDBrowseButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : ViewAndSelectFootprint ) , NULL , this ) ;
m_newIDBrowseButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : ViewAndSelectFootprint ) , NULL , this ) ;
2020-05-06 19:49:58 +00:00
m_sdbSizerOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXCHANGE_FOOTPRINTS_BASE : : OnOKClicked ) , NULL , this ) ;
2019-08-25 21:10:15 +00:00
2013-02-22 13:47:35 +00:00
}