2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2019-11-06 19:15:42 +00:00
// C++ code generated with wxFormBuilder (version Nov 6 2019)
2013-05-26 04:36:44 +00:00
// http://www.wxformbuilder.org/
//
2017-12-24 15:04:02 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2018-05-30 10:52:19 +00:00
# include "widgets/wx_grid.h"
2018-03-18 21:37:27 +00:00
# include "dialog_edit_component_in_schematic_base.h"
2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2018-03-18 21:37:27 +00:00
DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_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-05-26 04:36:44 +00:00
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
2019-11-06 19:15:42 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * mainSizer ;
mainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
wxStaticBoxSizer * sbFields ;
sbFields = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Fields " ) ) , wxVERTICAL ) ;
2019-11-06 19:15:42 +00:00
2018-08-27 19:11:05 +00:00
m_grid = new WX_GRID ( sbFields - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
// Grid
m_grid - > CreateGrid ( 4 , 11 ) ;
m_grid - > EnableEditing ( true ) ;
m_grid - > EnableGridLines ( true ) ;
m_grid - > EnableDragGridSize ( false ) ;
m_grid - > SetMargins ( 0 , 0 ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
// Columns
m_grid - > SetColSize ( 0 , 72 ) ;
m_grid - > SetColSize ( 1 , 120 ) ;
m_grid - > SetColSize ( 2 , 48 ) ;
m_grid - > SetColSize ( 3 , 72 ) ;
m_grid - > SetColSize ( 4 , 72 ) ;
m_grid - > SetColSize ( 5 , 48 ) ;
m_grid - > SetColSize ( 6 , 48 ) ;
m_grid - > SetColSize ( 7 , 84 ) ;
m_grid - > SetColSize ( 8 , 84 ) ;
m_grid - > SetColSize ( 9 , 84 ) ;
m_grid - > SetColSize ( 10 , 84 ) ;
m_grid - > EnableDragColMove ( false ) ;
m_grid - > EnableDragColSize ( true ) ;
m_grid - > SetColLabelSize ( 22 ) ;
m_grid - > SetColLabelValue ( 0 , _ ( " Name " ) ) ;
m_grid - > SetColLabelValue ( 1 , _ ( " Value " ) ) ;
m_grid - > SetColLabelValue ( 2 , _ ( " Show " ) ) ;
m_grid - > SetColLabelValue ( 3 , _ ( " H Align " ) ) ;
m_grid - > SetColLabelValue ( 4 , _ ( " V Align " ) ) ;
m_grid - > SetColLabelValue ( 5 , _ ( " Italic " ) ) ;
m_grid - > SetColLabelValue ( 6 , _ ( " Bold " ) ) ;
m_grid - > SetColLabelValue ( 7 , _ ( " Text Size " ) ) ;
m_grid - > SetColLabelValue ( 8 , _ ( " Orientation " ) ) ;
m_grid - > SetColLabelValue ( 9 , _ ( " X Position " ) ) ;
m_grid - > SetColLabelValue ( 10 , _ ( " Y Position " ) ) ;
2019-01-31 19:05:11 +00:00
m_grid - > SetColLabelAlignment ( wxALIGN_CENTER , wxALIGN_CENTER ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
// Rows
m_grid - > EnableDragRowSize ( true ) ;
m_grid - > SetRowLabelSize ( 0 ) ;
2019-01-31 19:05:11 +00:00
m_grid - > SetRowLabelAlignment ( wxALIGN_CENTER , wxALIGN_CENTER ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
// Label Appearance
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
// Cell Defaults
m_grid - > SetDefaultCellAlignment ( wxALIGN_LEFT , wxALIGN_TOP ) ;
m_grid - > SetMinSize ( wxSize ( - 1 , 180 ) ) ;
2019-11-06 19:15:42 +00:00
sbFields - > Add ( m_grid , 1 , wxALL | wxEXPAND , 5 ) ;
2018-02-28 16:54:35 +00:00
wxBoxSizer * bButtonSize ;
bButtonSize = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-06 19:15:42 +00:00
m_bpAdd = new wxBitmapButton ( sbFields - > GetStaticBox ( ) , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2018-11-24 14:51:17 +00:00
m_bpAdd - > SetToolTip ( _ ( " Add field " ) ) ;
2018-02-28 16:54:35 +00:00
m_bpAdd - > SetMinSize ( wxSize ( 30 , 30 ) ) ;
2019-11-06 19:15:42 +00:00
bButtonSize - > Add ( m_bpAdd , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
m_bpMoveUp = new wxBitmapButton ( sbFields - > GetStaticBox ( ) , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2018-11-24 14:51:17 +00:00
m_bpMoveUp - > SetToolTip ( _ ( " Move up " ) ) ;
2018-02-28 16:54:35 +00:00
m_bpMoveUp - > SetMinSize ( wxSize ( 30 , 30 ) ) ;
2019-11-06 19:15:42 +00:00
bButtonSize - > Add ( m_bpMoveUp , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
m_bpMoveDown = new wxBitmapButton ( sbFields - > GetStaticBox ( ) , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2018-11-24 14:51:17 +00:00
m_bpMoveDown - > SetToolTip ( _ ( " Move down " ) ) ;
2018-02-28 16:54:35 +00:00
m_bpMoveDown - > SetMinSize ( wxSize ( 30 , 30 ) ) ;
2019-11-06 19:15:42 +00:00
bButtonSize - > Add ( m_bpMoveDown , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
bButtonSize - > Add ( 0 , 0 , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxLEFT | wxRIGHT , 10 ) ;
m_bpDelete = new wxBitmapButton ( sbFields - > GetStaticBox ( ) , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2018-11-24 14:51:17 +00:00
m_bpDelete - > SetToolTip ( _ ( " Delete field " ) ) ;
2018-08-23 13:39:52 +00:00
m_bpDelete - > SetMinSize ( wxSize ( 30 , 30 ) ) ;
2019-11-06 19:15:42 +00:00
bButtonSize - > Add ( m_bpDelete , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
bButtonSize - > Add ( 0 , 0 , 1 , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2018-11-16 09:42:03 +00:00
m_updateFieldValues = new wxButton ( sbFields - > GetStaticBox ( ) , wxID_ANY , _ ( " Update Fields from Library... " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-02-28 16:54:35 +00:00
m_updateFieldValues - > SetToolTip ( _ ( " Sets fields to the original library values " ) ) ;
2019-11-06 19:15:42 +00:00
bButtonSize - > Add ( m_updateFieldValues , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
sbFields - > Add ( bButtonSize , 0 , wxALL | wxEXPAND , 5 ) ;
mainSizer - > Add ( sbFields , 1 , wxALL | wxEXPAND , 5 ) ;
2018-02-28 16:54:35 +00:00
wxBoxSizer * lowerSizer ;
lowerSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
wxStaticBoxSizer * sbSizerLibraryReference ;
sbSizerLibraryReference = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Symbol " ) ) , wxVERTICAL ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
wxFlexGridSizer * fgSizer1 ;
fgSizer1 = new wxFlexGridSizer ( 3 , 2 , 0 , 0 ) ;
fgSizer1 - > AddGrowableCol ( 1 ) ;
fgSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
m_staticText3 = new wxStaticText ( sbSizerLibraryReference - > GetStaticBox ( ) , wxID_ANY , _ ( " Library Reference: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText3 - > Wrap ( - 1 ) ;
2019-11-06 19:15:42 +00:00
fgSizer1 - > Add ( m_staticText3 , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 5 ) ;
2018-02-28 16:54:35 +00:00
wxBoxSizer * bLibraryReferenceSizer ;
bLibraryReferenceSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
m_libraryNameTextCtrl = new wxTextCtrl ( sbSizerLibraryReference - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_libraryNameTextCtrl - > SetToolTip ( _ ( " Name of the symbol in the library to which this symbol is linked " ) ) ;
2019-11-06 19:15:42 +00:00
2018-08-13 17:00:08 +00:00
bLibraryReferenceSizer - > Add ( m_libraryNameTextCtrl , 1 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2019-11-06 19:15:42 +00:00
m_buttonBrowseLibrary = new wxBitmapButton ( sbSizerLibraryReference - > GetStaticBox ( ) , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2018-11-24 14:51:17 +00:00
m_buttonBrowseLibrary - > SetToolTip ( _ ( " Browse library " ) ) ;
2018-08-13 17:00:08 +00:00
m_buttonBrowseLibrary - > SetMinSize ( wxSize ( 30 , 29 ) ) ;
2019-11-06 19:15:42 +00:00
bLibraryReferenceSizer - > Add ( m_buttonBrowseLibrary , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
fgSizer1 - > Add ( bLibraryReferenceSizer , 1 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxRIGHT , 5 ) ;
2018-02-28 16:54:35 +00:00
m_unitLabel = new wxStaticText ( sbSizerLibraryReference - > GetStaticBox ( ) , wxID_ANY , _ ( " Unit: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_unitLabel - > Wrap ( - 1 ) ;
2019-11-06 19:15:42 +00:00
fgSizer1 - > Add ( m_unitLabel , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 5 ) ;
2018-02-28 16:54:35 +00:00
wxArrayString m_unitChoiceChoices ;
m_unitChoice = new wxChoice ( sbSizerLibraryReference - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_unitChoiceChoices , 0 ) ;
m_unitChoice - > SetSelection ( 0 ) ;
m_unitChoice - > SetMinSize ( wxSize ( 100 , - 1 ) ) ;
2019-11-06 19:15:42 +00:00
fgSizer1 - > Add ( m_unitChoice , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT | wxTOP , 5 ) ;
fgSizer1 - > Add ( 0 , 0 , 1 , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2018-02-28 16:54:35 +00:00
m_cbAlternateSymbol = new wxCheckBox ( sbSizerLibraryReference - > GetStaticBox ( ) , wxID_ANY , _ ( " Alternate symbol (DeMorgan) " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbAlternateSymbol - > SetToolTip ( _ ( " Use the alternate shape of this symbol. \n For gates, this is the \" De Morgan \" conversion " ) ) ;
2019-11-06 19:15:42 +00:00
fgSizer1 - > Add ( m_cbAlternateSymbol , 0 , wxRIGHT | wxTOP , 5 ) ;
2018-08-13 17:00:08 +00:00
sbSizerLibraryReference - > Add ( fgSizer1 , 0 , wxEXPAND , 5 ) ;
2019-11-06 19:15:42 +00:00
lowerSizer - > Add ( sbSizerLibraryReference , 5 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2018-02-28 16:54:35 +00:00
wxString m_rbOrientationChoices [ ] = { _ ( " 0 " ) , _ ( " +90 " ) , _ ( " +180 " ) , _ ( " -90 " ) } ;
int m_rbOrientationNChoices = sizeof ( m_rbOrientationChoices ) / sizeof ( wxString ) ;
m_rbOrientation = new wxRadioBox ( this , wxID_ANY , _ ( " Orientation " ) , wxDefaultPosition , wxDefaultSize , m_rbOrientationNChoices , m_rbOrientationChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_rbOrientation - > SetSelection ( 0 ) ;
m_rbOrientation - > SetToolTip ( _ ( " Select if the symbol is to be rotated when drawn " ) ) ;
2019-11-06 19:15:42 +00:00
lowerSizer - > Add ( m_rbOrientation , 2 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2018-11-16 09:42:03 +00:00
wxString m_rbMirrorChoices [ ] = { _ ( " Default " ) , _ ( " Mirror around X axis " ) , _ ( " Mirror around Y axis " ) } ;
2018-02-28 16:54:35 +00:00
int m_rbMirrorNChoices = sizeof ( m_rbMirrorChoices ) / sizeof ( wxString ) ;
m_rbMirror = new wxRadioBox ( this , wxID_ANY , _ ( " Aspect " ) , wxDefaultPosition , wxDefaultSize , m_rbMirrorNChoices , m_rbMirrorChoices , 1 , wxRA_SPECIFY_COLS ) ;
2018-11-16 09:42:03 +00:00
m_rbMirror - > SetSelection ( 1 ) ;
2018-02-28 16:54:35 +00:00
m_rbMirror - > SetToolTip ( _ ( " Pick the graphical transformation to be used when displaying the symbol " ) ) ;
2019-11-06 19:15:42 +00:00
lowerSizer - > Add ( m_rbMirror , 2 , wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
mainSizer - > Add ( lowerSizer , 0 , wxEXPAND , 5 ) ;
2018-02-28 16:54:35 +00:00
m_staticline1 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
mainSizer - > Add ( m_staticline1 , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 10 ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
wxBoxSizer * bSizer101 ;
bSizer101 = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
wxBoxSizer * bSizer11 ;
bSizer11 = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
wxStaticText * timeStampLabel ;
timeStampLabel = new wxStaticText ( this , wxID_ANY , _ ( " Unique ID: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
timeStampLabel - > Wrap ( - 1 ) ;
bSizer11 - > Add ( timeStampLabel , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 5 ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
m_textCtrlTimeStamp = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_READONLY ) ;
m_textCtrlTimeStamp - > SetToolTip ( _ ( " Unique ID that identifies the symbol " ) ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
bSizer11 - > Add ( m_textCtrlTimeStamp , 1 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
bSizer101 - > Add ( bSizer11 , 0 , wxEXPAND | wxRIGHT | wxLEFT , 10 ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
bSizer101 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2019-11-06 19:15:42 +00:00
2018-11-15 08:34:29 +00:00
m_spiceFieldsButton = new wxButton ( this , wxID_ANY , _ ( " Edit Spice Model... " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-07-17 21:14:02 +00:00
bSizer101 - > Add ( m_spiceFieldsButton , 0 , wxEXPAND | wxALL , 5 ) ;
2019-11-06 19:15:42 +00:00
2018-11-15 08:34:29 +00:00
bSizer101 - > Add ( 0 , 0 , 0 , wxEXPAND | wxRIGHT | wxLEFT , 15 ) ;
2019-11-06 19:15:42 +00:00
2018-02-28 16:54:35 +00:00
m_stdDialogButtonSizer = new wxStdDialogButtonSizer ( ) ;
m_stdDialogButtonSizerOK = new wxButton ( this , wxID_OK ) ;
m_stdDialogButtonSizer - > AddButton ( m_stdDialogButtonSizerOK ) ;
m_stdDialogButtonSizerCancel = new wxButton ( this , wxID_CANCEL ) ;
m_stdDialogButtonSizer - > AddButton ( m_stdDialogButtonSizerCancel ) ;
m_stdDialogButtonSizer - > Realize ( ) ;
2019-11-06 19:15:42 +00:00
bSizer101 - > Add ( m_stdDialogButtonSizer , 0 , wxEXPAND , 5 ) ;
2018-02-28 16:54:35 +00:00
mainSizer - > Add ( bSizer101 , 0 , wxEXPAND , 5 ) ;
2019-11-06 19:15:42 +00:00
2013-05-26 04:36:44 +00:00
this - > SetSizer ( mainSizer ) ;
this - > Layout ( ) ;
2017-12-24 15:04:02 +00:00
mainSizer - > Fit ( this ) ;
2019-11-06 19:15:42 +00:00
2013-05-26 04:36:44 +00:00
// Connect Events
2018-03-18 21:37:27 +00:00
this - > Connect ( wxEVT_INIT_DIALOG , wxInitDialogEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnInitDlg ) ) ;
2018-02-28 16:54:35 +00:00
this - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnUpdateUI ) ) ;
m_grid - > Connect ( wxEVT_SIZE , wxSizeEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnSizeGrid ) , NULL , this ) ;
m_bpAdd - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnAddField ) , NULL , this ) ;
m_bpMoveUp - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnMoveUp ) , NULL , this ) ;
m_bpMoveDown - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnMoveDown ) , NULL , this ) ;
2018-08-23 13:39:52 +00:00
m_bpDelete - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnDeleteField ) , NULL , this ) ;
2018-02-28 16:54:35 +00:00
m_updateFieldValues - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : UpdateFieldsFromLibrary ) , NULL , this ) ;
m_buttonBrowseLibrary - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnBrowseLibrary ) , NULL , this ) ;
m_spiceFieldsButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnEditSpiceModel ) , NULL , this ) ;
2019-01-31 19:05:11 +00:00
m_stdDialogButtonSizerCancel - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnCancelButtonClick ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}
2018-03-18 21:37:27 +00:00
DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : ~ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE ( )
2013-05-26 04:36:44 +00:00
{
// Disconnect Events
2018-03-18 21:37:27 +00:00
this - > Disconnect ( wxEVT_INIT_DIALOG , wxInitDialogEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnInitDlg ) ) ;
2018-02-28 16:54:35 +00:00
this - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnUpdateUI ) ) ;
m_grid - > Disconnect ( wxEVT_SIZE , wxSizeEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnSizeGrid ) , NULL , this ) ;
m_bpAdd - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnAddField ) , NULL , this ) ;
m_bpMoveUp - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnMoveUp ) , NULL , this ) ;
m_bpMoveDown - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnMoveDown ) , NULL , this ) ;
2018-08-23 13:39:52 +00:00
m_bpDelete - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnDeleteField ) , NULL , this ) ;
2018-02-28 16:54:35 +00:00
m_updateFieldValues - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : UpdateFieldsFromLibrary ) , NULL , this ) ;
m_buttonBrowseLibrary - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnBrowseLibrary ) , NULL , this ) ;
m_spiceFieldsButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnEditSpiceModel ) , NULL , this ) ;
2019-01-31 19:05:11 +00:00
m_stdDialogButtonSizerCancel - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_BASE : : OnCancelButtonClick ) , NULL , this ) ;
2019-11-06 19:15:42 +00:00
2013-05-26 04:36:44 +00:00
}