summaryrefslogtreecommitdiff
path: root/dgedit/samplesorter.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-04-16 12:18:05 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-04-16 12:18:05 +0200
commit02119553f51d418ebb6473f49784487fa954b50c (patch)
treef638c16e1fc3262def32939809a5b1a884b0332a /dgedit/samplesorter.h
parent50b1911fb718823b596aaa0ac600ebc2fd85f18d (diff)
Show energy circles in preview mode.
Diffstat (limited to 'dgedit/samplesorter.h')
-rw-r--r--dgedit/samplesorter.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/dgedit/samplesorter.h b/dgedit/samplesorter.h
index f35622a..ada7fd8 100644
--- a/dgedit/samplesorter.h
+++ b/dgedit/samplesorter.h
@@ -34,7 +34,7 @@
class SampleSorter : public QWidget {
Q_OBJECT
public:
- SampleSorter(Selections &selections);
+ SampleSorter(Selections &selections, Selections &selections_preview);
public slots:
void setWavData(const float *data, size_t size);
@@ -42,8 +42,12 @@ public slots:
int attackLength();
void addSelection(sel_id_t id);
+ void addSelectionPreview(sel_id_t id);
+
void relayout();
+ void setShowPreview(bool show_preview);
+
protected:
void paintEvent(QPaintEvent *event);
void mouseMoveEvent(QMouseEvent *event);
@@ -54,6 +58,9 @@ private:
sel_id_t getSelectionByCoordinate(int x, int y);
Selections &selections;
+ Selections &selections_preview;
+
+ bool show_preview;
float min;
float max;