diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-10-09 22:17:10 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-10-09 22:17:10 -0300 |
commit | eea796f53f5d9dc1444a620713b3326f04b73339 (patch) | |
tree | 2cc6cd35c3dfa718c26b7f5de9dcee913fb93028 /Project/ControlEditor.cpp | |
parent | aa2378020ee0bbfd041681cfdbe62a8d028687f3 (diff) | |
download | PSP.git-eea796f53f5d9dc1444a620713b3326f04b73339.tar.gz PSP.git-eea796f53f5d9dc1444a620713b3326f04b73339.tar.xz PSP.git-eea796f53f5d9dc1444a620713b3326f04b73339.zip |
Divider control element implemented
Abstract class math operations implemented
Divider need to be redesigned
Expor/import divider functions implemented but supressed
Diffstat (limited to 'Project/ControlEditor.cpp')
-rw-r--r-- | Project/ControlEditor.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Project/ControlEditor.cpp b/Project/ControlEditor.cpp index 3244bad..b9159e5 100644 --- a/Project/ControlEditor.cpp +++ b/Project/ControlEditor.cpp @@ -32,6 +32,8 @@ #include "Exponential.h" #include "Constant.h" #include "Gain.h" +#include "MathOperation.h" +#include "Divider.h" #include "ControlElementSolver.h" #include "ControlElementContainer.h" @@ -199,6 +201,10 @@ void ControlEditor::BuildControlElementPanel() wxImage(exePath + "\\..\\data\\images\\control\\rateLimiter.png"), ID_RATELIM); wrapSizer->Add(rateLimButton, 0, wxALL, 5); rateLimButton->Bind(wxEVT_LEFT_DOWN, &ControlEditor::LeftClickDown, this); + + ControlElementButton* divButton = new ControlElementButton(m_panelControlElements, _("Divider"), wxImage(exePath + "\\..\\data\\images\\control\\mult.png"), ID_MATH_DIV); + wrapSizer->Add(divButton, 0, wxALL, 5); + divButton->Bind(wxEVT_LEFT_DOWN, &ControlEditor::LeftClickDown, this); } void ControlEditor::LeftClickDown(wxMouseEvent& event) @@ -280,6 +286,11 @@ void ControlEditor::AddElement(ControlElementButtonID id) RateLimiter* rateLim = new RateLimiter(GetNextID()); m_elementList.push_back(rateLim); } break; + case ID_MATH_DIV: { + m_mode = MODE_INSERT; + Divider* divider = new Divider(GetNextID()); + m_elementList.push_back(divider); + } } } |