diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-03-28 21:01:44 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-03-28 21:01:44 (GMT) |
| commit | e9770d8ee7a44d5680c23749c786a03c0d5b41ff (patch) | |
| tree | b63b4bb60ab0262724a01cb5bc21b116b035748f /src/game/GameView.h | |
| parent | 63af6abd29a161f6d1aa257aeb76f6891f512f74 (diff) | |
| download | powder-e9770d8ee7a44d5680c23749c786a03c0d5b41ff.zip powder-e9770d8ee7a44d5680c23749c786a03c0d5b41ff.tar.gz | |
Clipboard and Stamp from selection (no way to paste/place yet)
Diffstat (limited to 'src/game/GameView.h')
| -rw-r--r-- | src/game/GameView.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/GameView.h b/src/game/GameView.h index 18cd8e4..0b31182 100644 --- a/src/game/GameView.h +++ b/src/game/GameView.h @@ -19,6 +19,11 @@ enum DrawMode DrawPoints, DrawLine, DrawRect, DrawFill }; +enum SelectMode +{ + SelectNone, SelectStamp, SelectCopy +}; + class GameController; class GameModel; class GameView: public ui::Window @@ -57,6 +62,11 @@ private: bool drawModeReset; ui::Point drawPoint1; ui::Point drawPoint2; + + SelectMode selectMode; + ui::Point selectPoint1; + ui::Point selectPoint2; + void changeColour(); public: GameView(); @@ -73,6 +83,7 @@ public: void NotifyZoomChanged(GameModel * sender); void NotifyColourSelectorVisibilityChanged(GameModel * sender); void NotifyColourSelectorColourChanged(GameModel * sender); + void NotifyClipboardChanged(GameModel * sender); virtual void OnMouseMove(int x, int y, int dx, int dy); virtual void OnMouseDown(int x, int y, unsigned button); virtual void OnMouseUp(int x, int y, unsigned button); |
