summaryrefslogtreecommitdiff
path: root/src/game/GameModel.h
diff options
context:
space:
mode:
authorSimon 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)
commite9770d8ee7a44d5680c23749c786a03c0d5b41ff (patch)
treeb63b4bb60ab0262724a01cb5bc21b116b035748f /src/game/GameModel.h
parent63af6abd29a161f6d1aa257aeb76f6891f512f74 (diff)
downloadpowder-e9770d8ee7a44d5680c23749c786a03c0d5b41ff.zip
powder-e9770d8ee7a44d5680c23749c786a03c0d5b41ff.tar.gz
Clipboard and Stamp from selection (no way to paste/place yet)
Diffstat (limited to 'src/game/GameModel.h')
-rw-r--r--src/game/GameModel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/GameModel.h b/src/game/GameModel.h
index 0f170df..14e42ac 100644
--- a/src/game/GameModel.h
+++ b/src/game/GameModel.h
@@ -31,6 +31,8 @@ public:
class GameModel
{
private:
+ int clipboardSize;
+ unsigned char * clipboardData;
vector<GameView*> observers;
vector<Tool*> toolList;
vector<Menu*> menuList;
@@ -56,6 +58,7 @@ private:
void notifyActiveToolsChanged();
void notifyUserChanged();
void notifyZoomChanged();
+ void notifyClipboardChanged();
void notifyColourSelectorColourChanged();
void notifyColourSelectorVisibilityChanged();
public:
@@ -101,6 +104,9 @@ public:
ui::Point GetZoomPosition();
void SetZoomWindowPosition(ui::Point position);
ui::Point GetZoomWindowPosition();
+ void AddStamp(unsigned char * saveData, int saveSize);
+ void SetClipboard(unsigned char * saveData, int saveSize);
+ unsigned char * GetClipboard(int & saveSize);
};
#endif // GAMEMODEL_H