2020-08-13 17:51:26 +00:00
///////////////////////////////////////////////////////////////////////////
2020-09-02 13:11:51 +00:00
// C++ code generated with wxFormBuilder (version Oct 26 2018)
2020-08-13 17:51:26 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "wx_html_report_panel.h"
# include "dialog_change_symbols_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_CHANGE_SYMBOLS_BASE : : DIALOG_CHANGE_SYMBOLS_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
m_mainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2020-09-15 22:52:53 +00:00
wxBoxSizer * matchSizerMargins ;
matchSizerMargins = new wxBoxSizer ( wxVERTICAL ) ;
m_matchSizer = new wxGridBagSizer ( 3 , 5 ) ;
2020-08-13 17:51:26 +00:00
m_matchSizer - > SetFlexibleDirection ( wxBOTH ) ;
m_matchSizer - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
m_matchAll = new wxRadioButton ( this , wxID_ANY , _ ( " %s all symbols in schematic " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-15 22:52:53 +00:00
m_matchSizer - > Add ( m_matchAll , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 2 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 5 ) ;
2020-08-13 17:51:26 +00:00
m_matchBySelection = new wxRadioButton ( this , wxID_ANY , _ ( " %s selected symbol " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-15 22:52:53 +00:00
m_matchSizer - > Add ( m_matchBySelection , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 5 ) ;
2020-08-13 17:51:26 +00:00
2020-09-27 13:07:48 +00:00
m_matchByReference = new wxRadioButton ( this , wxID_ANY , _ ( " %s symbols matching reference designator: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-15 22:52:53 +00:00
m_matchSizer - > Add ( m_matchByReference , wxGBPosition ( 2 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 2 ) ;
2020-08-13 17:51:26 +00:00
m_specifiedReference = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxSize ( 200 , - 1 ) , wxTE_PROCESS_ENTER ) ;
2020-09-15 22:52:53 +00:00
m_matchSizer - > Add ( m_specifiedReference , wxGBPosition ( 2 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxBOTTOM , 2 ) ;
2020-08-13 17:51:26 +00:00
2020-09-27 13:07:48 +00:00
m_matchByValue = new wxRadioButton ( this , wxID_ANY , _ ( " %s symbols matching value: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-15 22:52:53 +00:00
m_matchSizer - > Add ( m_matchByValue , wxGBPosition ( 3 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL , 5 ) ;
2020-08-13 17:51:26 +00:00
m_specifiedValue = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_PROCESS_ENTER ) ;
m_matchSizer - > Add ( m_specifiedValue , wxGBPosition ( 3 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2020-09-27 13:07:48 +00:00
m_matchById = new wxRadioButton ( this , wxID_ANY , _ ( " %s symbols matching library indentifier: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-15 22:52:53 +00:00
m_matchSizer - > Add ( m_matchById , wxGBPosition ( 4 , 0 ) , wxGBSpan ( 1 , 2 ) , wxALIGN_CENTER_VERTICAL | wxTOP , 6 ) ;
2020-08-13 17:51:26 +00:00
m_specifiedId = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_PROCESS_ENTER ) ;
2020-09-15 22:52:53 +00:00
m_matchSizer - > Add ( m_specifiedId , wxGBPosition ( 5 , 0 ) , wxGBSpan ( 1 , 2 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2020-08-13 17:51:26 +00:00
m_matchIdBrowserButton = new wxBitmapButton ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2020-09-15 22:52:53 +00:00
m_matchSizer - > Add ( m_matchIdBrowserButton , wxGBPosition ( 5 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxRIGHT , 3 ) ;
2020-08-13 17:51:26 +00:00
m_matchSizer - > AddGrowableCol ( 1 ) ;
m_matchSizer - > AddGrowableRow ( 1 ) ;
2020-09-15 22:52:53 +00:00
matchSizerMargins - > Add ( m_matchSizer , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
m_mainSizer - > Add ( matchSizerMargins , 0 , wxEXPAND | wxLEFT , 5 ) ;
m_mainSizer - > Add ( 0 , 8 , 0 , wxEXPAND , 5 ) ;
2020-08-13 17:51:26 +00:00
2020-09-02 13:11:51 +00:00
m_staticline1 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
2020-09-15 22:52:53 +00:00
m_mainSizer - > Add ( m_staticline1 , 0 , wxEXPAND | wxALL , 4 ) ;
2020-09-02 13:11:51 +00:00
2020-08-13 17:51:26 +00:00
m_newIdSizer = new wxBoxSizer ( wxVERTICAL ) ;
wxStaticText * m_newIdLabel ;
m_newIdLabel = new wxStaticText ( this , wxID_ANY , _ ( " New library identifier: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_newIdLabel - > Wrap ( - 1 ) ;
2020-08-18 18:13:16 +00:00
m_newIdSizer - > Add ( m_newIdLabel , 0 , wxLEFT , 5 ) ;
2020-08-13 17:51:26 +00:00
wxBoxSizer * bSizer1 ;
bSizer1 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_newId = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_PROCESS_ENTER ) ;
2020-09-02 13:11:51 +00:00
bSizer1 - > Add ( m_newId , 1 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-08-13 17:51:26 +00:00
m_newIdBrowserButton = new wxBitmapButton ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2020-09-15 22:52:53 +00:00
bSizer1 - > Add ( m_newIdBrowserButton , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
2020-09-02 13:11:51 +00:00
2020-09-15 22:52:53 +00:00
m_newIdSizer - > Add ( bSizer1 , 0 , wxEXPAND | wxTOP | wxBOTTOM , 2 ) ;
2020-09-02 13:11:51 +00:00
2020-09-15 22:52:53 +00:00
m_mainSizer - > Add ( m_newIdSizer , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2020-09-02 13:11:51 +00:00
2020-09-27 13:07:48 +00:00
wxBoxSizer * bSizerUpdate ;
bSizerUpdate = new wxBoxSizer ( wxHORIZONTAL ) ;
2020-09-02 13:11:51 +00:00
2020-09-27 13:07:48 +00:00
m_updateFieldsSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " %s Fields " ) ) , wxVERTICAL ) ;
wxArrayString m_fieldsBoxChoices ;
m_fieldsBox = new wxCheckListBox ( m_updateFieldsSizer - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_fieldsBoxChoices , wxLB_NEEDED_SB ) ;
m_fieldsBox - > SetMinSize ( wxSize ( - 1 , 120 ) ) ;
m_updateFieldsSizer - > Add ( m_fieldsBox , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
wxBoxSizer * m_selBtnSizer ;
m_selBtnSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
m_selAllBtn = new wxButton ( m_updateFieldsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Select All " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_selBtnSizer - > Add ( m_selAllBtn , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_selNoneBtn = new wxButton ( m_updateFieldsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Select None " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_selBtnSizer - > Add ( m_selNoneBtn , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_updateFieldsSizer - > Add ( m_selBtnSizer , 0 , wxEXPAND , 5 ) ;
bSizerUpdate - > Add ( m_updateFieldsSizer , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 8 ) ;
m_updateOptionsSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Options " ) ) , wxVERTICAL ) ;
m_removeExtraBox = new wxCheckBox ( m_updateOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Remove fields if not in %s symbol " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-02 13:11:51 +00:00
m_removeExtraBox - > SetToolTip ( _ ( " Removes fields that do not occur in the original library symbols " ) ) ;
m_updateOptionsSizer - > Add ( m_removeExtraBox , 0 , wxBOTTOM | wxRIGHT , 4 ) ;
2020-09-27 13:07:48 +00:00
m_resetEmptyFields = new wxCheckBox ( m_updateOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Reset fields if empty in %s symbol " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-02 13:11:51 +00:00
m_updateOptionsSizer - > Add ( m_resetEmptyFields , 0 , wxBOTTOM | wxRIGHT , 4 ) ;
2020-09-27 13:07:48 +00:00
m_updateOptionsSizer - > Add ( 0 , 15 , 0 , wxEXPAND , 5 ) ;
2020-09-02 13:11:51 +00:00
2020-09-15 22:52:53 +00:00
m_resetFieldVisibilities = new wxCheckBox ( m_updateOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " %s field visibilities " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-02 13:11:51 +00:00
m_updateOptionsSizer - > Add ( m_resetFieldVisibilities , 0 , wxBOTTOM | wxRIGHT , 4 ) ;
2020-08-13 17:51:26 +00:00
2020-09-15 22:52:53 +00:00
m_resetFieldEffects = new wxCheckBox ( m_updateOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " %s field sizes and styles " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-02 13:11:51 +00:00
m_updateOptionsSizer - > Add ( m_resetFieldEffects , 0 , wxBOTTOM | wxRIGHT , 4 ) ;
2020-08-13 17:51:26 +00:00
2020-09-15 22:52:53 +00:00
m_resetFieldPositions = new wxCheckBox ( m_updateOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " %s field positions " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-02 13:11:51 +00:00
m_updateOptionsSizer - > Add ( m_resetFieldPositions , 0 , wxBOTTOM | wxRIGHT , 4 ) ;
2020-08-13 17:51:26 +00:00
2020-09-27 13:07:48 +00:00
bSizerUpdate - > Add ( m_updateOptionsSizer , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 8 ) ;
m_mainSizer - > Add ( bSizerUpdate , 0 , wxEXPAND , 5 ) ;
2020-08-13 17:51:26 +00:00
wxBoxSizer * bSizer2 ;
bSizer2 = new wxBoxSizer ( wxVERTICAL ) ;
m_messagePanel = new WX_HTML_REPORT_PANEL ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
2020-09-27 13:07:48 +00:00
m_messagePanel - > SetMinSize ( wxSize ( - 1 , 200 ) ) ;
2020-08-13 17:51:26 +00:00
bSizer2 - > Add ( m_messagePanel , 1 , wxEXPAND | wxALL , 5 ) ;
2020-09-02 13:11:51 +00:00
m_mainSizer - > Add ( bSizer2 , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2020-08-13 17:51:26 +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-09-02 13:11:51 +00:00
m_mainSizer - > Add ( m_sdbSizer , 0 , wxEXPAND | wxALL , 5 ) ;
2020-08-13 17:51:26 +00:00
this - > SetSizer ( m_mainSizer ) ;
this - > Layout ( ) ;
m_mainSizer - > Fit ( this ) ;
this - > Centre ( wxBOTH ) ;
// Connect Events
2020-09-27 13:07:48 +00:00
m_matchAll - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchByAll ) , NULL , this ) ;
m_matchBySelection - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchBySelected ) , NULL , this ) ;
2020-08-13 17:51:26 +00:00
m_matchByReference - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchByReference ) , NULL , this ) ;
2020-09-27 13:07:48 +00:00
m_specifiedReference - > Connect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchTextKillFocus ) , NULL , this ) ;
2020-08-13 17:51:26 +00:00
m_matchByValue - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchByValue ) , NULL , this ) ;
2020-09-27 13:07:48 +00:00
m_specifiedValue - > Connect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchTextKillFocus ) , NULL , this ) ;
m_specifiedValue - > Connect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : OnMatchText ) , NULL , this ) ;
2020-08-13 17:51:26 +00:00
m_matchById - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchById ) , NULL , this ) ;
m_matchIdBrowserButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : launchMatchIdSymbolBrowser ) , NULL , this ) ;
m_newIdBrowserButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : launchNewIdSymbolBrowser ) , NULL , this ) ;
2020-09-27 13:07:48 +00:00
m_selAllBtn - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onSelectAll ) , NULL , this ) ;
m_selNoneBtn - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onSelectNone ) , NULL , this ) ;
2020-08-13 17:51:26 +00:00
m_sdbSizerOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onOkButtonClicked ) , NULL , this ) ;
}
DIALOG_CHANGE_SYMBOLS_BASE : : ~ DIALOG_CHANGE_SYMBOLS_BASE ( )
{
// Disconnect Events
2020-09-27 13:07:48 +00:00
m_matchAll - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchByAll ) , NULL , this ) ;
m_matchBySelection - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchBySelected ) , NULL , this ) ;
2020-08-13 17:51:26 +00:00
m_matchByReference - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchByReference ) , NULL , this ) ;
2020-09-27 13:07:48 +00:00
m_specifiedReference - > Disconnect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchTextKillFocus ) , NULL , this ) ;
2020-08-13 17:51:26 +00:00
m_matchByValue - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchByValue ) , NULL , this ) ;
2020-09-27 13:07:48 +00:00
m_specifiedValue - > Disconnect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchTextKillFocus ) , NULL , this ) ;
m_specifiedValue - > Disconnect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : OnMatchText ) , NULL , this ) ;
2020-08-13 17:51:26 +00:00
m_matchById - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onMatchById ) , NULL , this ) ;
m_matchIdBrowserButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : launchMatchIdSymbolBrowser ) , NULL , this ) ;
m_newIdBrowserButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : launchNewIdSymbolBrowser ) , NULL , this ) ;
2020-09-27 13:07:48 +00:00
m_selAllBtn - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onSelectAll ) , NULL , this ) ;
m_selNoneBtn - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onSelectNone ) , NULL , this ) ;
2020-08-13 17:51:26 +00:00
m_sdbSizerOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_CHANGE_SYMBOLS_BASE : : onOkButtonClicked ) , NULL , this ) ;
}