diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-07-28 23:59:21 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-07-29 00:00:24 +0200 |
commit | 016f7f2a57dbb776846a511e06e03b2e2572ab7c (patch) | |
tree | 1b04cce78d92ffcf540063f6dd54c8270b298cf8 /dgedit/canvas.h | |
parent | 11ae33c3b0a0cbad772b23eb7d0714eef8ab9b03 (diff) |
First attemt on the selections tool in the new CanvasTool structure.
Diffstat (limited to 'dgedit/canvas.h')
-rw-r--r-- | dgedit/canvas.h | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/dgedit/canvas.h b/dgedit/canvas.h index 0fb7f4c..b0ff552 100644 --- a/dgedit/canvas.h +++ b/dgedit/canvas.h @@ -31,7 +31,6 @@ #include <QColor> #include <QImage> -#include "selection.h" #include "mipmap.h" #include "canvastool.h" @@ -42,22 +41,19 @@ public: ~Canvas(); void load(QString file); - - Selections selections(); void addTool(CanvasTool *tool); -signals: - void selectionsChanged(Selections selections); - void activeSelectionChanged(Selection selection); + float mapX(float x); + float unmapX(float x); + float mapY(float y); + float unmapY(float y); public slots: void setXScale(float scale); void setYScale(float scale); void setXOffset(float scroll); void setYOffset(float scroll); - void autoCreateSelections(); - void clearSelections(); protected: void mouseMoveEvent(QMouseEvent *event); @@ -73,10 +69,6 @@ private: void updateWav(); void getWavValues(int last, int lx, float *vu, float *vl, float *avgu, float *avgl); - float mapX(float x); - float unmapX(float x); - float mapY(float y); - float unmapY(float y); QImage wav; @@ -91,9 +83,6 @@ private: float threshold; bool threshold_is_moving; - bool selection_is_moving_left; - bool selection_is_moving_right; - Selection *active_selection; QColor colBg; QColor colSec; @@ -103,12 +92,7 @@ private: QColor colWavAvg; QColor colThreshold; QColor colThresholdMoving; - QColor colSelBg; - QColor colSel; - QColor colActiveSelBg; - QColor colActiveSel; - Selections _selections; QVector<CanvasTool*> tools; |