summaryrefslogtreecommitdiffstats
path: root/Project/ElementForm.cpp
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-12-01 16:57:41 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-12-01 16:57:41 -0200
commite266f5811403beea13c9cc5399c55db4a34fdd3c (patch)
tree517e01b8685248f04548513091e7040a1b36ec0b /Project/ElementForm.cpp
parent186e9d36f23ebb4c260885215d216d4df0b3b2ec (diff)
downloadPSP.git-e266f5811403beea13c9cc5399c55db4a34fdd3c.tar.gz
PSP.git-e266f5811403beea13c9cc5399c55db4a34fdd3c.tar.xz
PSP.git-e266f5811403beea13c9cc5399c55db4a34fdd3c.zip
Text Form under implementation [3]
Diffstat (limited to 'Project/ElementForm.cpp')
-rw-r--r--Project/ElementForm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Project/ElementForm.cpp b/Project/ElementForm.cpp
index e6e72ed..89ef491 100644
--- a/Project/ElementForm.cpp
+++ b/Project/ElementForm.cpp
@@ -2767,6 +2767,8 @@ TextFormBase::TextFormBase(wxWindow* parent, wxWindowID id, const wxString& titl
m_choiceTextFromBus->Connect(wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(TextFormBase::OnFromBusChoiceSelected), NULL, this);
m_choiceTextToBus->Connect(wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(TextFormBase::OnToBusChoiceSelected), NULL, this);
m_textCtrlDecimal->Connect(wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler(TextFormBase::OnTextEnter), NULL, this);
+ m_buttonOK->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(TextFormBase::OnOKButtonClick), NULL, this);
+ m_ButtonCancel->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(TextFormBase::OnCancelButtonClick), NULL, this);
}
@@ -2778,5 +2780,7 @@ TextFormBase::~TextFormBase()
m_choiceTextFromBus->Disconnect(wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(TextFormBase::OnFromBusChoiceSelected), NULL, this);
m_choiceTextToBus->Disconnect(wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(TextFormBase::OnToBusChoiceSelected), NULL, this);
m_textCtrlDecimal->Disconnect(wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler(TextFormBase::OnTextEnter), NULL, this);
+ m_buttonOK->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(TextFormBase::OnOKButtonClick), NULL, this);
+ m_ButtonCancel->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(TextFormBase::OnCancelButtonClick), NULL, this);
}