summaryrefslogtreecommitdiff
path: root/dgedit/samplesorter.h
diff options
context:
space:
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;