summaryrefslogtreecommitdiff
path: root/dgedit/canvastoolselections.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-04-15 09:55:45 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-04-15 09:55:45 +0200
commit0fcacc1c3329e905228ceb80903f69561a7db732 (patch)
tree0d1d636d5e0b95b1d4554ad112aa63bfaa79e7e0 /dgedit/canvastoolselections.h
parenta0bff571893f9afd5e4eb84ac52755f851398601 (diff)
New selections model.
Diffstat (limited to 'dgedit/canvastoolselections.h')
-rw-r--r--dgedit/canvastoolselections.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/dgedit/canvastoolselections.h b/dgedit/canvastoolselections.h
index 64c52b8..8b877de 100644
--- a/dgedit/canvastoolselections.h
+++ b/dgedit/canvastoolselections.h
@@ -38,7 +38,7 @@
class CanvasToolSelections : public CanvasTool {
Q_OBJECT
public:
- CanvasToolSelections(Canvas *canvas);
+ CanvasToolSelections(Canvas *canvas, Selections &selections);
QString name() { return "Selections"; }
bool mouseMoveEvent(QMouseEvent *event);
@@ -47,11 +47,11 @@ public:
void paintEvent(QPaintEvent *event, QPainter &painter);
void keyReleaseEvent(QKeyEvent *event);
- Selections selections();
+ //Selections selections();
signals:
- void selectionsChanged(Selections selections);
- void activeSelectionChanged(Selection selection);
+ //void selectionsChanged(Selections selections);
+ //void activeSelectionChanged(sel_id_t id);
public slots:
void autoCreateSelections();
@@ -59,13 +59,10 @@ public slots:
void thresholdChanged(double threshold);
void noiseFloorChanged(int t);
void fadeoutChanged(int t);
- void setActiveSelection(Selection s);
private:
bool selection_is_moving_left;
bool selection_is_moving_right;
- Selection *active_selection;
- Selections _selections;
Canvas *canvas;
@@ -77,6 +74,8 @@ private:
QColor colSel;
QColor colActiveSelBg;
QColor colActiveSel;
+
+ Selections &selections;
};
#endif/*__DRUMGIZMO_CANVASTOOLSELECTIONS_H__*/