diff options
Diffstat (limited to 'src/samplesorter.h')
-rw-r--r-- | src/samplesorter.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/samplesorter.h b/src/samplesorter.h index 056161d..f1774e3 100644 --- a/src/samplesorter.h +++ b/src/samplesorter.h @@ -28,7 +28,7 @@ #include <QWidget> #include <QVector> -#include "selection.h" +#include "range.h" class Instrument; @@ -37,7 +37,7 @@ class SampleSorter { Q_OBJECT public: - SampleSorter(Selections& selections, Selections& selections_preview, + SampleSorter(Ranges& ranges, Ranges& ranges_preview, Instrument& instrument); public slots: @@ -45,8 +45,8 @@ public slots: void setAttackLength(int len); int attackLength(); - void addSelection(sel_id_t id); - void addSelectionPreview(sel_id_t id); + void addRange(sel_id_t id); + void addRangePreview(sel_id_t id); void relayout(); @@ -62,10 +62,10 @@ protected: void keyReleaseEvent(QKeyEvent* event) override; private: - sel_id_t getSelectionByCoordinate(int x, int y); + sel_id_t getRangeByCoordinate(int x, int y); - Selections& selections; - Selections& selections_preview; + Ranges& ranges; + Ranges& ranges_preview; bool show_preview; @@ -77,7 +77,7 @@ private: const float* data; size_t size; - Selection sel; + Range sel; sel_id_t sel_moving; |