diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-09-03 15:54:10 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-09-03 15:54:10 +0200 |
commit | 1b5859154efb69e212f4d627e761fbed76c50aa3 (patch) | |
tree | 17cbb3bd1bf01711845b67d7ed8d9c81a60f825c /plugingui/plugingui.h | |
parent | 36faa43c90023297377d56662d310743d93b938f (diff) |
Introduce new Notifier and use it in the Knob class.
Diffstat (limited to 'plugingui/plugingui.h')
-rw-r--r-- | plugingui/plugingui.h | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/plugingui/plugingui.h b/plugingui/plugingui.h index 39643e1..a5f2fe8 100644 --- a/plugingui/plugingui.h +++ b/plugingui/plugingui.h @@ -24,8 +24,7 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __DRUMGIZMO_PLUGINGUI_H__ -#define __DRUMGIZMO_PLUGINGUI_H__ +#pragma once #include "window.h" #include "eventhandler.h" @@ -44,8 +43,11 @@ #include "semaphore.h" #include "messagereceiver.h" +#include "notifier.h" -class PluginGUI : public Thread, public MessageReceiver { +namespace GUI { + +class PluginGUI : public Thread, public MessageReceiver, public Listener { public: PluginGUI(); virtual ~PluginGUI(); @@ -64,22 +66,22 @@ public: void handleMessage(Message *msg); //private: - GUI::Window *window; - GUI::EventHandler *eventhandler; + Window *window; + EventHandler *eventhandler; - GUI::FileBrowser *filebrowser; + FileBrowser *filebrowser; - GUI::CheckBox *check; - GUI::Knob *knob; - GUI::Knob *knob2; + CheckBox *check; + Knob *attackKnob; + Knob *falloffKnob; - GUI::Label *lbl; - GUI::LineEdit *lineedit; - GUI::ProgressBar *progress; + Label *lbl; + LineEdit *lineedit; + ProgressBar *progress; - GUI::Label *lbl2; - GUI::LineEdit *lineedit2; - GUI::ProgressBar *progress2; + Label *lbl2; + LineEdit *lineedit2; + ProgressBar *progress2; Config *config; @@ -90,6 +92,9 @@ public: void *changeMidimapPtr; private: + void attackValueChanged(float value); + void falloffValueChanged(float value); + volatile bool running; volatile bool closing; volatile bool initialised; @@ -97,4 +102,5 @@ private: Semaphore sem; }; -#endif/*__DRUMGIZMO_PLUGINGUI_H__*/ +} // GUI:: + |