diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-04-16 11:23:46 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-04-16 11:23:46 +0200 |
commit | eb013918c17ac19b21845ded977aeee26bdf8275 (patch) | |
tree | 23b25c4184b7c4a5cc7b8780fa6c7370121c8afa /dgedit/canvastoolselections.h | |
parent | df08f18af0162104e8192241aa380aef21193ddb (diff) |
New tabbed workflow with 'auto' preview functionality.
Diffstat (limited to 'dgedit/canvastoolselections.h')
-rw-r--r-- | dgedit/canvastoolselections.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/dgedit/canvastoolselections.h b/dgedit/canvastoolselections.h index 8b877de..59786a7 100644 --- a/dgedit/canvastoolselections.h +++ b/dgedit/canvastoolselections.h @@ -38,7 +38,8 @@ class CanvasToolSelections : public CanvasTool { Q_OBJECT public: - CanvasToolSelections(Canvas *canvas, Selections &selections); + CanvasToolSelections(Canvas *canvas, Selections &selections, + Selections &selections_preview); QString name() { return "Selections"; } bool mouseMoveEvent(QMouseEvent *event); @@ -55,12 +56,16 @@ signals: public slots: void autoCreateSelections(); + void autoCreateSelectionsPreview(); void clearSelections(); void thresholdChanged(double threshold); void noiseFloorChanged(int t); void fadeoutChanged(int t); + void setShowPreview(bool show_preview); private: + void doAutoCreateSelections(bool preview); + bool selection_is_moving_left; bool selection_is_moving_right; @@ -74,8 +79,13 @@ private: QColor colSel; QColor colActiveSelBg; QColor colActiveSel; + QColor colPreviewSelBg; + QColor colPreviewSel; Selections &selections; + Selections &selections_preview; + + bool show_preview; }; #endif/*__DRUMGIZMO_CANVASTOOLSELECTIONS_H__*/ |