summaryrefslogtreecommitdiff
path: root/src/game/GameView.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-28 13:13:28 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-28 13:13:28 (GMT)
commitfc93b714852b1bd0741fd75a9dd01358f32fa9f0 (patch)
tree449e9c5add679af58a660a74b056f2827b6eec1f /src/game/GameView.h
parentf9eeebb91039d88ceb7e4cf4e4aecf374d77e633 (diff)
downloadpowder-fc93b714852b1bd0741fd75a9dd01358f32fa9f0.zip
powder-fc93b714852b1bd0741fd75a9dd01358f32fa9f0.tar.gz
Resize brush X and Y axis seperately using Shift and Control, Addresses issue #27
Diffstat (limited to 'src/game/GameView.h')
-rw-r--r--src/game/GameView.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/game/GameView.h b/src/game/GameView.h
index 2bf8e9e..9010e4a 100644
--- a/src/game/GameView.h
+++ b/src/game/GameView.h
@@ -37,7 +37,8 @@ private:
bool zoomEnabled;
bool zoomCursorFixed;
bool drawSnap;
- bool alternativeSaveSource;
+ bool shiftBehaviour;
+ bool ctrlBehaviour;
int toolIndex;
int infoTipPresence;
@@ -96,15 +97,18 @@ private:
virtual ui::Point lineSnapCoords(ui::Point point1, ui::Point point2);
virtual ui::Point rectSnapCoords(ui::Point point1, ui::Point point2);
- void enableHDDSave();
- void disableHDDSave();
+ void enableShiftBehaviour();
+ void disableShiftBehaviour();
+ void enableCtrlBehaviour();
+ void disableCtrlBehaviour();
public:
GameView();
//Breaks MVC, but any other way is going to be more of a mess.
ui::Point GetMousePosition();
void SetSample(SimulationSample sample);
- bool GetAlternativeSourceEnabled(){ return alternativeSaveSource; }
+ bool CtrlBehaviour(){ return ctrlBehaviour; }
+ bool ShiftBehaviour(){ return shiftBehaviour; }
void AttachController(GameController * _c){ c = _c; }
void NotifyRendererChanged(GameModel * sender);