diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-01 17:43:54 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-01 17:43:54 -0300 |
commit | afb0e6e08d3911b7387799f5c465fd59ca26a484 (patch) | |
tree | 7b9b24d512813837c64d6cc9b2e005cd9791b5e6 /Project/ControlEditor.cpp | |
parent | a684d5c9c9dd131060b5a36d7c7844ae197fcfd1 (diff) | |
download | PSP.git-afb0e6e08d3911b7387799f5c465fd59ca26a484.tar.gz PSP.git-afb0e6e08d3911b7387799f5c465fd59ca26a484.tar.xz PSP.git-afb0e6e08d3911b7387799f5c465fd59ca26a484.zip |
Constant implemented
Missing: gain and io
Diffstat (limited to 'Project/ControlEditor.cpp')
-rw-r--r-- | Project/ControlEditor.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Project/ControlEditor.cpp b/Project/ControlEditor.cpp index e34c36f..7a49694 100644 --- a/Project/ControlEditor.cpp +++ b/Project/ControlEditor.cpp @@ -9,6 +9,7 @@ #include "Limiter.h" #include "RateLimiter.h" #include "Exponential.h" +#include "Constant.h" ControlElementButton::ControlElementButton(wxWindow* parent, wxString label, wxImage image, wxWindowID id) : wxWindow(parent, id) @@ -106,7 +107,7 @@ ControlEditor::ControlEditor(wxWindow* parent) : ControlEditorBase(parent) m_glContext = new wxGLContext(m_glCanvas); m_camera = new Camera(); m_selectionRect = wxRect2DDouble(0, 0, 0, 0); - // m_camera->SetScale(1.2); + m_camera->SetScale(1.2); } ControlEditor::~ControlEditor() { @@ -213,7 +214,9 @@ void ControlEditor::AddElement(ControlElementButtonID id) m_elementList.push_back(sum); } break; case ID_CONST: { - wxLogMessage("const"); + m_mode = MODE_INSERT; + Constant* constant = new Constant(); + m_elementList.push_back(constant); } break; case ID_LIMITER: { m_mode = MODE_INSERT; |