summaryrefslogtreecommitdiff
path: root/plugingui/plugingui.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/plugingui.h')
-rw-r--r--plugingui/plugingui.h49
1 files changed, 30 insertions, 19 deletions
diff --git a/plugingui/plugingui.h b/plugingui/plugingui.h
index 39643e1..5e617dc 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();
@@ -63,23 +65,16 @@ public:
void handleMessage(Message *msg);
- //private:
- GUI::Window *window;
- GUI::EventHandler *eventhandler;
-
- GUI::FileBrowser *filebrowser;
-
- GUI::CheckBox *check;
- GUI::Knob *knob;
- GUI::Knob *knob2;
+ Window *window;
+ EventHandler *eventhandler;
- 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 +85,21 @@ public:
void *changeMidimapPtr;
private:
+ void attackValueChanged(float value);
+ void falloffValueChanged(float value);
+ void velocityCheckClick(bool checked);
+ void kitBrowseClick();
+ void midimapBrowseClick();
+ void closeEventHandler();
+ void selectKitFile(const std::string& filename);
+ void selectMapFile(const std::string& filename);
+
+ // Humanized velocity controls:
+ CheckBox* velocityCheck;
+ Knob* attackKnob;
+ Knob* falloffKnob;
+ FileBrowser* fileBrowser;
+
volatile bool running;
volatile bool closing;
volatile bool initialised;
@@ -97,4 +107,5 @@ private:
Semaphore sem;
};
-#endif/*__DRUMGIZMO_PLUGINGUI_H__*/
+} // GUI::
+