summaryrefslogtreecommitdiff
path: root/dgedit/samplesorter.h
diff options
context:
space:
mode:
authordeva <deva>2011-07-15 13:02:33 +0000
committerdeva <deva>2011-07-15 13:02:33 +0000
commitcd0e36773992e26985bdec1f7a5341f83fa3e521 (patch)
tree4710fb3f2465f4b464f5f6176261a67cfde2e46e /dgedit/samplesorter.h
parente190d38057892b69246391841b234a368bc2b4ad (diff)
New input/output plugin architecture. New LV2 plugin.
Diffstat (limited to 'dgedit/samplesorter.h')
-rw-r--r--dgedit/samplesorter.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/dgedit/samplesorter.h b/dgedit/samplesorter.h
index a7c356d..ff45f3e 100644
--- a/dgedit/samplesorter.h
+++ b/dgedit/samplesorter.h
@@ -28,15 +28,24 @@
#define __DRUMGIZMO_SAMPLESORTER_H__
#include <QWidget>
+#include <QVector>
#include "selection.h"
+class Level {
+public:
+ int velocity;
+ QMap<float, Selection> selections;
+};
+
+typedef QVector<Level> Levels;
+
class SampleSorter : public QWidget {
Q_OBJECT
public:
SampleSorter();
Selections selections();
- QVector<int> levels();
+ Levels levels();
public slots:
void setSelections(Selections selections);
@@ -48,6 +57,9 @@ public slots:
protected:
void paintEvent(QPaintEvent *event);
+ void mouseMoveEvent(QMouseEvent *event);
+ void mousePressEvent(QMouseEvent *event);
+ void mouseReleaseEvent(QMouseEvent *event);
private:
Selections _selections;
@@ -61,6 +73,13 @@ private:
size_t size;
Selection sel;
+
+ QVector<int> threshold;
+ bool threshold_is_moving;
+ bool selection_is_moving_left;
+ bool selection_is_moving_right;
+ int cur_thr;
+
};
#endif/*__DRUMGIZMO_SAMPLESORTER_H__*/