summaryrefslogtreecommitdiffstats
path: root/Project/ControlEditor.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-01-20 18:19:59 -0200
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-01-20 18:19:59 -0200
commit9d29dde68863f207eba2d84746cd38094810932d (patch)
tree1a5ddc5380983821e7d5d8846e358869882468be /Project/ControlEditor.h
parent6f7aebd00330c40007b41aa6e48847695924fe29 (diff)
downloadPSP.git-9d29dde68863f207eba2d84746cd38094810932d.tar.gz
PSP.git-9d29dde68863f207eba2d84746cd38094810932d.tar.xz
PSP.git-9d29dde68863f207eba2d84746cd38094810932d.zip
Button click event trigger implemented
Diffstat (limited to 'Project/ControlEditor.h')
-rw-r--r--Project/ControlEditor.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/Project/ControlEditor.h b/Project/ControlEditor.h
index 95edc07..723831a 100644
--- a/Project/ControlEditor.h
+++ b/Project/ControlEditor.h
@@ -7,10 +7,23 @@
#include <wx/dcscreen.h>
#include <wx/graphics.h>
+enum ControlElementButtonID
+{
+ ID_IO = 0,
+ ID_TF,
+ ID_SUM,
+ ID_CONST,
+ ID_LIMITER,
+ ID_GAIN,
+ ID_MULT,
+ ID_SAT,
+ ID_RATELIM
+};
+
class ControlElementButton : public wxWindow
{
public:
- ControlElementButton(wxWindow* parent, wxString label, wxImage image);
+ ControlElementButton(wxWindow* parent, wxString label, wxImage image, wxWindowID id = wxID_ANY);
~ControlElementButton();
protected:
@@ -40,6 +53,8 @@ class ControlEditor : public ControlEditorBase
public:
ControlEditor(wxWindow* parent);
virtual ~ControlEditor();
+
+ virtual void AddElement(ControlElementButtonID id);
protected:
void BuildControlElementPanel();