2008-11-24 06:59:08 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2009-02-21 15:12:26 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Apr 16 2008)
|
2008-11-24 06:59:08 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_edit_component_in_schematic_fbp.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* mainSizer;
|
|
|
|
mainSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxBoxSizer* upperSizer;
|
|
|
|
upperSizer = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxStaticBoxSizer* optionsSizer;
|
|
|
|
optionsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Options") ), wxVERTICAL );
|
|
|
|
|
|
|
|
wxStaticBoxSizer* unitSizer;
|
|
|
|
unitSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Unit") ), wxVERTICAL );
|
|
|
|
|
|
|
|
wxString unitChoiceChoices[] = { _("1"), _("2"), _("3"), _("4"), _("5"), _("6"), _("7"), _("8"), _("9"), _("10"), _("11"), _("12"), _("13"), _("14"), _("15"), _("16"), _("17"), _("18"), _("19"), _("20"), _("21"), _("22"), _("23"), _("24"), _("25"), _("26") };
|
|
|
|
int unitChoiceNChoices = sizeof( unitChoiceChoices ) / sizeof( wxString );
|
|
|
|
unitChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, unitChoiceNChoices, unitChoiceChoices, 0 );
|
|
|
|
unitChoice->SetSelection( 0 );
|
|
|
|
unitSizer->Add( unitChoice, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
optionsSizer->Add( unitSizer, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 8 );
|
|
|
|
|
|
|
|
wxBoxSizer* orientationSizer;
|
|
|
|
orientationSizer = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxString orientationRadioBoxChoices[] = { _("0"), _("+90"), _("180"), _("-90") };
|
|
|
|
int orientationRadioBoxNChoices = sizeof( orientationRadioBoxChoices ) / sizeof( wxString );
|
|
|
|
orientationRadioBox = new wxRadioBox( this, wxID_ANY, _("Orientation (Degrees)"), wxDefaultPosition, wxDefaultSize, orientationRadioBoxNChoices, orientationRadioBoxChoices, 1, wxRA_SPECIFY_COLS );
|
2009-03-23 19:54:15 +00:00
|
|
|
orientationRadioBox->SetSelection( 0 );
|
2008-11-24 06:59:08 +00:00
|
|
|
orientationRadioBox->SetToolTip( _("Select if the component is to be rotated when drawn") );
|
|
|
|
|
|
|
|
orientationSizer->Add( orientationRadioBox, 1, wxALL, 8 );
|
|
|
|
|
|
|
|
optionsSizer->Add( orientationSizer, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 0 );
|
|
|
|
|
|
|
|
wxBoxSizer* mirrorSizer;
|
|
|
|
mirrorSizer = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxString mirrorRadioBoxChoices[] = { _("Normal"), _("Mirror ---"), _("Mirror |") };
|
|
|
|
int mirrorRadioBoxNChoices = sizeof( mirrorRadioBoxChoices ) / sizeof( wxString );
|
|
|
|
mirrorRadioBox = new wxRadioBox( this, wxID_ANY, _("Mirror"), wxDefaultPosition, wxDefaultSize, mirrorRadioBoxNChoices, mirrorRadioBoxChoices, 1, wxRA_SPECIFY_COLS );
|
2009-03-23 19:54:15 +00:00
|
|
|
mirrorRadioBox->SetSelection( 0 );
|
2008-11-24 06:59:08 +00:00
|
|
|
mirrorRadioBox->SetToolTip( _("Pick the graphical transformation to be used when displaying the component, if any") );
|
|
|
|
|
|
|
|
mirrorSizer->Add( mirrorRadioBox, 1, wxALL, 8 );
|
|
|
|
|
|
|
|
optionsSizer->Add( mirrorSizer, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 0 );
|
|
|
|
|
|
|
|
wxStaticBoxSizer* chipnameSizer;
|
|
|
|
chipnameSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Chip Name") ), wxHORIZONTAL );
|
|
|
|
|
2008-11-26 00:20:16 +00:00
|
|
|
chipnameTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
chipnameTextCtrl->SetMaxLength( 32 );
|
|
|
|
chipnameTextCtrl->SetToolTip( _("The name of the symbol in the library from which this component came") );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-26 00:20:16 +00:00
|
|
|
chipnameSizer->Add( chipnameTextCtrl, 1, wxALL|wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
optionsSizer->Add( chipnameSizer, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 8 );
|
|
|
|
|
|
|
|
convertCheckBox = new wxCheckBox( this, wxID_ANY, _("Convert"), wxDefaultPosition, wxDefaultSize, 0 );
|
2009-02-21 15:12:26 +00:00
|
|
|
|
2008-11-27 18:42:19 +00:00
|
|
|
convertCheckBox->SetToolTip( _("Use the alternate shape of this component.\nFor gates, this is the \"De Morgan\" conversion") );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-26 00:20:16 +00:00
|
|
|
optionsSizer->Add( convertCheckBox, 0, wxALL, 8 );
|
|
|
|
|
|
|
|
partsAreLockedLabel = new wxStaticText( this, wxID_ANY, _("Parts are locked"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
partsAreLockedLabel->Wrap( -1 );
|
|
|
|
optionsSizer->Add( partsAreLockedLabel, 0, wxALL|wxEXPAND, 8 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
upperSizer->Add( optionsSizer, 0, wxALIGN_TOP|wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
wxStaticBoxSizer* fieldsSizer;
|
|
|
|
fieldsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Fields") ), wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxStaticBoxSizer* gridStaticBoxSizer;
|
|
|
|
gridStaticBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxEmptyString ), wxVERTICAL );
|
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
fieldListCtrl = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES );
|
|
|
|
gridStaticBoxSizer->Add( fieldListCtrl, 1, wxALL|wxEXPAND, 8 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
addFieldButton = new wxButton( this, wxID_ANY, _("Add Field"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
addFieldButton->SetToolTip( _("Add a new custom field") );
|
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
gridStaticBoxSizer->Add( addFieldButton, 0, wxALL|wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
deleteFieldButton = new wxButton( this, wxID_ANY, _("Delete Field"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
deleteFieldButton->SetToolTip( _("Delete one of the optional fields") );
|
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
gridStaticBoxSizer->Add( deleteFieldButton, 0, wxALL|wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
moveUpButton = new wxButton( this, wxID_ANY, _("Move Up"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
moveUpButton->SetToolTip( _("Move the selected optional fields up one position") );
|
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
gridStaticBoxSizer->Add( moveUpButton, 0, wxALL|wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-26 00:20:16 +00:00
|
|
|
fieldsSizer->Add( gridStaticBoxSizer, 5, wxALL|wxEXPAND, 8 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
wxBoxSizer* fieldEditBoxSizer;
|
|
|
|
fieldEditBoxSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxStaticBoxSizer* visibilitySizer;
|
|
|
|
visibilitySizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Visibility") ), wxHORIZONTAL );
|
|
|
|
|
2008-12-28 18:00:37 +00:00
|
|
|
wxBoxSizer* bShowRotateSizer;
|
|
|
|
bShowRotateSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2008-11-24 06:59:08 +00:00
|
|
|
showCheckBox = new wxCheckBox( this, wxID_ANY, _("Show"), wxDefaultPosition, wxDefaultSize, 0 );
|
2009-02-21 15:12:26 +00:00
|
|
|
|
2008-11-24 06:59:08 +00:00
|
|
|
showCheckBox->SetToolTip( _("Check if you want this field visible") );
|
|
|
|
|
2008-12-28 18:00:37 +00:00
|
|
|
bShowRotateSizer->Add( showCheckBox, 0, wxALL, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
rotateCheckBox = new wxCheckBox( this, wxID_ANY, _("Rotate"), wxDefaultPosition, wxDefaultSize, 0 );
|
2009-02-21 15:12:26 +00:00
|
|
|
|
2008-11-24 06:59:08 +00:00
|
|
|
rotateCheckBox->SetToolTip( _("Check if you want this field's text rotated 90 degrees") );
|
|
|
|
|
2008-12-28 18:00:37 +00:00
|
|
|
bShowRotateSizer->Add( rotateCheckBox, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
visibilitySizer->Add( bShowRotateSizer, 1, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
wxString m_StyleRadioBoxChoices[] = { _("Normal"), _("Italic"), _("Bold"), _("Bold Italic") };
|
|
|
|
int m_StyleRadioBoxNChoices = sizeof( m_StyleRadioBoxChoices ) / sizeof( wxString );
|
|
|
|
m_StyleRadioBox = new wxRadioBox( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, m_StyleRadioBoxNChoices, m_StyleRadioBoxChoices, 1, wxRA_SPECIFY_COLS );
|
2009-03-23 19:54:15 +00:00
|
|
|
m_StyleRadioBox->SetSelection( 0 );
|
2009-02-21 15:12:26 +00:00
|
|
|
m_StyleRadioBox->SetToolTip( _("The style of the currently selected field's text in the schemati") );
|
|
|
|
|
2008-12-28 18:00:37 +00:00
|
|
|
visibilitySizer->Add( m_StyleRadioBox, 1, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-12-28 18:00:37 +00:00
|
|
|
fieldEditBoxSizer->Add( visibilitySizer, 0, wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
wxBoxSizer* fieldNameBoxSizer;
|
|
|
|
fieldNameBoxSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
fieldNameLabel = new wxStaticText( this, wxID_ANY, _("Field Name"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fieldNameLabel->Wrap( -1 );
|
|
|
|
fieldNameBoxSizer->Add( fieldNameLabel, 0, 0, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
fieldNameTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2009-03-20 10:02:40 +00:00
|
|
|
fieldNameTextCtrl->SetToolTip( _("The name of the currently selected field\nSome fixed fields names are not editable") );
|
2008-11-24 21:06:50 +00:00
|
|
|
|
|
|
|
fieldNameBoxSizer->Add( fieldNameTextCtrl, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
fieldEditBoxSizer->Add( fieldNameBoxSizer, 0, wxALL|wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
wxBoxSizer* fieldTextBoxSizer;
|
|
|
|
fieldTextBoxSizer = new wxBoxSizer( wxVERTICAL );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
fieldValueLabel = new wxStaticText( this, wxID_ANY, _("Field Value"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fieldValueLabel->Wrap( -1 );
|
|
|
|
fieldTextBoxSizer->Add( fieldValueLabel, 0, 0, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
fieldValueTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fieldValueTextCtrl->SetToolTip( _("The text (or value) of the currently selected field") );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
fieldTextBoxSizer->Add( fieldValueTextCtrl, 0, wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
fieldEditBoxSizer->Add( fieldTextBoxSizer, 0, wxALL|wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
wxBoxSizer* textSizeBoxSizer;
|
|
|
|
textSizeBoxSizer = new wxBoxSizer( wxVERTICAL );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
textSizeLabel = new wxStaticText( this, wxID_ANY, _("Size(\")"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
textSizeLabel->Wrap( -1 );
|
|
|
|
textSizeBoxSizer->Add( textSizeLabel, 0, 0, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
textSizeTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2009-02-21 15:12:26 +00:00
|
|
|
textSizeTextCtrl->SetToolTip( _("The size of the currently selected field's text in the schematic") );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
textSizeBoxSizer->Add( textSizeTextCtrl, 0, wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
fieldEditBoxSizer->Add( textSizeBoxSizer, 0, wxALL|wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
wxBoxSizer* positionBoxSizer;
|
|
|
|
positionBoxSizer = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
wxBoxSizer* posXBoxSizer;
|
|
|
|
posXBoxSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
posXLabel = new wxStaticText( this, wxID_ANY, _("PosX(\")"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
posXLabel->Wrap( -1 );
|
|
|
|
posXBoxSizer->Add( posXLabel, 0, 0, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
posXTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2009-02-21 15:12:26 +00:00
|
|
|
posXTextCtrl->SetToolTip( _("The X coordinate of the text relative to the component") );
|
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
posXBoxSizer->Add( posXTextCtrl, 0, wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
positionBoxSizer->Add( posXBoxSizer, 1, wxALL|wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
wxBoxSizer* posYBoxSizer;
|
|
|
|
posYBoxSizer = new wxBoxSizer( wxVERTICAL );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
posYLabel = new wxStaticText( this, wxID_ANY, _("PosY(\")"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
posYLabel->Wrap( -1 );
|
|
|
|
posYBoxSizer->Add( posYLabel, 0, 0, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
posYTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
posYTextCtrl->SetToolTip( _("The Y coordinate of the text relative to the component") );
|
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
posYBoxSizer->Add( posYTextCtrl, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
positionBoxSizer->Add( posYBoxSizer, 1, wxALL|wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
fieldEditBoxSizer->Add( positionBoxSizer, 1, wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
|
|
|
|
fieldEditBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
defaultsButton = new wxButton( this, wxID_ANY, _("Reset to Library Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
|
2009-03-20 10:02:40 +00:00
|
|
|
defaultsButton->SetToolTip( _("Set position and style of fields and component orientation to default lib value.\nFields texts are not modified.") );
|
|
|
|
|
2008-11-24 06:59:08 +00:00
|
|
|
fieldEditBoxSizer->Add( defaultsButton, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
2008-11-24 21:06:50 +00:00
|
|
|
|
|
|
|
fieldEditBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
fieldsSizer->Add( fieldEditBoxSizer, 3, wxEXPAND, 5 );
|
2008-11-24 06:59:08 +00:00
|
|
|
|
|
|
|
upperSizer->Add( fieldsSizer, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
mainSizer->Add( upperSizer, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
stdDialogButtonSizer = new wxStdDialogButtonSizer();
|
|
|
|
stdDialogButtonSizerOK = new wxButton( this, wxID_OK );
|
|
|
|
stdDialogButtonSizer->AddButton( stdDialogButtonSizerOK );
|
|
|
|
stdDialogButtonSizerCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
stdDialogButtonSizer->AddButton( stdDialogButtonSizerCancel );
|
|
|
|
stdDialogButtonSizer->Realize();
|
|
|
|
mainSizer->Add( stdDialogButtonSizer, 0, wxALL|wxEXPAND, 8 );
|
|
|
|
|
|
|
|
this->SetSizer( mainSizer );
|
|
|
|
this->Layout();
|
2008-11-24 21:06:50 +00:00
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
fieldListCtrl->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::OnListItemDeselected ), NULL, this );
|
|
|
|
fieldListCtrl->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::OnListItemSelected ), NULL, this );
|
2008-11-26 06:25:20 +00:00
|
|
|
addFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::addFieldButtonHandler ), NULL, this );
|
|
|
|
deleteFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::deleteFieldButtonHandler ), NULL, this );
|
|
|
|
moveUpButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::moveUpButtonHandler ), NULL, this );
|
2008-11-26 00:20:16 +00:00
|
|
|
defaultsButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::SetInitCmp ), NULL, this );
|
|
|
|
stdDialogButtonSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::OnCancelButtonClick ), NULL, this );
|
|
|
|
stdDialogButtonSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::OnOKButtonClick ), NULL, this );
|
2008-11-24 06:59:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::~DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP()
|
|
|
|
{
|
2008-11-24 21:06:50 +00:00
|
|
|
// Disconnect Events
|
|
|
|
fieldListCtrl->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::OnListItemDeselected ), NULL, this );
|
|
|
|
fieldListCtrl->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::OnListItemSelected ), NULL, this );
|
2008-11-26 06:25:20 +00:00
|
|
|
addFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::addFieldButtonHandler ), NULL, this );
|
|
|
|
deleteFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::deleteFieldButtonHandler ), NULL, this );
|
|
|
|
moveUpButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::moveUpButtonHandler ), NULL, this );
|
2008-11-26 00:20:16 +00:00
|
|
|
defaultsButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::SetInitCmp ), NULL, this );
|
|
|
|
stdDialogButtonSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::OnCancelButtonClick ), NULL, this );
|
|
|
|
stdDialogButtonSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::OnOKButtonClick ), NULL, this );
|
2008-11-24 06:59:08 +00:00
|
|
|
}
|