summaryrefslogtreecommitdiffstats
path: root/Project/ControlEditor.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-04-04 18:10:12 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-04-04 18:10:12 -0300
commit38b3e2decff95f5e29ffb6025ee899d108d22f04 (patch)
tree2655e3ac2dd13a9bb9ee0d38541239c53e668da7 /Project/ControlEditor.cpp
parentafb0e6e08d3911b7387799f5c465fd59ca26a484 (diff)
downloadPSP.git-38b3e2decff95f5e29ffb6025ee899d108d22f04.tar.gz
PSP.git-38b3e2decff95f5e29ffb6025ee899d108d22f04.tar.xz
PSP.git-38b3e2decff95f5e29ffb6025ee899d108d22f04.zip
Gain implemented
Implement io: https://ideone.com/0HDBVd
Diffstat (limited to 'Project/ControlEditor.cpp')
-rw-r--r--Project/ControlEditor.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Project/ControlEditor.cpp b/Project/ControlEditor.cpp
index 7a49694..36edb52 100644
--- a/Project/ControlEditor.cpp
+++ b/Project/ControlEditor.cpp
@@ -10,6 +10,7 @@
#include "RateLimiter.h"
#include "Exponential.h"
#include "Constant.h"
+#include "Gain.h"
ControlElementButton::ControlElementButton(wxWindow* parent, wxString label, wxImage image, wxWindowID id)
: wxWindow(parent, id)
@@ -107,7 +108,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()
{
@@ -224,7 +225,9 @@ void ControlEditor::AddElement(ControlElementButtonID id)
m_elementList.push_back(limiter);
} break;
case ID_GAIN: {
- wxLogMessage("gain");
+ m_mode = MODE_INSERT;
+ Gain* gain = new Gain();
+ m_elementList.push_back(gain);
} break;
case ID_MULT: {
m_mode = MODE_INSERT;