diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-03-31 18:16:05 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-03-31 18:16:05 -0300 |
commit | a684d5c9c9dd131060b5a36d7c7844ae197fcfd1 (patch) | |
tree | 2699de592502d41da8dcc8d8bad322df1573a415 /Project/ControlEditor.cpp | |
parent | 045037ce8f2b106acbe5425245746a2dbed65c26 (diff) | |
download | PSP.git-a684d5c9c9dd131060b5a36d7c7844ae197fcfd1.tar.gz PSP.git-a684d5c9c9dd131060b5a36d7c7844ae197fcfd1.tar.xz PSP.git-a684d5c9c9dd131060b5a36d7c7844ae197fcfd1.zip |
Exponencial implemented
Diffstat (limited to 'Project/ControlEditor.cpp')
-rw-r--r-- | Project/ControlEditor.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Project/ControlEditor.cpp b/Project/ControlEditor.cpp index 475fdce..e34c36f 100644 --- a/Project/ControlEditor.cpp +++ b/Project/ControlEditor.cpp @@ -8,6 +8,7 @@ #include "Multiplier.h" #include "Limiter.h" #include "RateLimiter.h" +#include "Exponential.h" ControlElementButton::ControlElementButton(wxWindow* parent, wxString label, wxImage image, wxWindowID id) : wxWindow(parent, id) @@ -153,8 +154,8 @@ void ControlEditor::BuildControlElementPanel() wrapSizer->Add(multButton, 0, wxALL, 5); multButton->Bind(wxEVT_LEFT_DOWN, &ControlEditor::LeftClickDown, this); - ControlElementButton* satButton = new ControlElementButton(m_panelControlElements, _("Saturation"), - wxImage("..\\data\\images\\control\\sat.png"), ID_SAT); + ControlElementButton* satButton = new ControlElementButton(m_panelControlElements, _("Exponential"), + wxImage("..\\data\\images\\control\\sat.png"), ID_EXP); wrapSizer->Add(satButton, 0, wxALL, 5); satButton->Bind(wxEVT_LEFT_DOWN, &ControlEditor::LeftClickDown, this); @@ -227,8 +228,10 @@ void ControlEditor::AddElement(ControlElementButtonID id) Multiplier* mult = new Multiplier(); m_elementList.push_back(mult); } break; - case ID_SAT: { - wxLogMessage("sat"); + case ID_EXP: { + m_mode = MODE_INSERT; + Exponential* exp = new Exponential(); + m_elementList.push_back(exp); } break; case ID_RATELIM: { m_mode = MODE_INSERT; |