From eb013918c17ac19b21845ded977aeee26bdf8275 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 16 Apr 2014 11:23:46 +0200 Subject: New tabbed workflow with 'auto' preview functionality. --- dgedit/canvastoolselections.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'dgedit/canvastoolselections.h') 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__*/ -- cgit v1.2.3