diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-25 19:29:34 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-25 19:29:34 -0300 |
commit | c3b8370a456085dd835349a8c50e7a9e0a117c45 (patch) | |
tree | eb6af1eaa9a34320d619876386eedc33024eccb3 /Project/ControlEditorBase.cpp | |
parent | 9154f5ee02766121f7ac8dd756f2e73ae95e1afa (diff) | |
download | PSP.git-c3b8370a456085dd835349a8c50e7a9e0a117c45.tar.gz PSP.git-c3b8370a456085dd835349a8c50e7a9e0a117c45.tar.xz PSP.git-c3b8370a456085dd835349a8c50e7a9e0a117c45.zip |
wxMathPlot implemented on chart view
Diffstat (limited to 'Project/ControlEditorBase.cpp')
-rw-r--r-- | Project/ControlEditorBase.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Project/ControlEditorBase.cpp b/Project/ControlEditorBase.cpp index 1156e7b..6489c0f 100644 --- a/Project/ControlEditorBase.cpp +++ b/Project/ControlEditorBase.cpp @@ -136,6 +136,7 @@ ControlEditorBase::ControlEditorBase(wxWindow* parent, wxWindowID id, const wxSt } #endif // Connect events + this->Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(ControlEditorBase::OnKeyDown), NULL, this); this->Connect(ID_RIBBON_IMPORT, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(ControlEditorBase::OnImportClick), NULL, this); this->Connect(ID_RIBBON_EXPORT, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(ControlEditorBase::OnExportClick), NULL, this); m_glCanvas->Connect(wxEVT_PAINT, wxPaintEventHandler(ControlEditorBase::OnPaint), NULL, this); @@ -153,6 +154,7 @@ ControlEditorBase::ControlEditorBase(wxWindow* parent, wxWindowID id, const wxSt ControlEditorBase::~ControlEditorBase() { + this->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(ControlEditorBase::OnKeyDown), NULL, this); this->Disconnect(ID_RIBBON_IMPORT, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(ControlEditorBase::OnImportClick), NULL, this); this->Disconnect(ID_RIBBON_EXPORT, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(ControlEditorBase::OnExportClick), NULL, this); m_glCanvas->Disconnect(wxEVT_PAINT, wxPaintEventHandler(ControlEditorBase::OnPaint), NULL, this); |