summaryrefslogtreecommitdiff
path: root/src/game/GameModel.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-02 16:01:28 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-02 16:01:28 (GMT)
commitefddc12e5d2aadc5eee1927245ad38b9dee89aed (patch)
treecf7ad38119f0734609944158e33bbb944925c777 /src/game/GameModel.h
parent289556ac7078963b6af361f5812dd62e6712359f (diff)
downloadpowder-efddc12e5d2aadc5eee1927245ad38b9dee89aed.zip
powder-efddc12e5d2aadc5eee1927245ad38b9dee89aed.tar.gz
Stamps browser, placement + clipboard sampling and placement - No clipboard or stamp thumbnail generation, needs thumbnail generator from SaveLoader
Diffstat (limited to 'src/game/GameModel.h')
-rw-r--r--src/game/GameModel.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/game/GameModel.h b/src/game/GameModel.h
index 14e42ac..7b953c9 100644
--- a/src/game/GameModel.h
+++ b/src/game/GameModel.h
@@ -31,8 +31,10 @@ public:
class GameModel
{
private:
- int clipboardSize;
- unsigned char * clipboardData;
+ //int clipboardSize;
+ //unsigned char * clipboardData;
+ Save * stamp;
+ Save * clipboard;
vector<GameView*> observers;
vector<Tool*> toolList;
vector<Menu*> menuList;
@@ -59,6 +61,7 @@ private:
void notifyUserChanged();
void notifyZoomChanged();
void notifyClipboardChanged();
+ void notifyStampChanged();
void notifyColourSelectorColourChanged();
void notifyColourSelectorVisibilityChanged();
public:
@@ -104,9 +107,11 @@ public:
ui::Point GetZoomPosition();
void SetZoomWindowPosition(ui::Point position);
ui::Point GetZoomWindowPosition();
+ void SetStamp(Save * newStamp);
void AddStamp(unsigned char * saveData, int saveSize);
void SetClipboard(unsigned char * saveData, int saveSize);
- unsigned char * GetClipboard(int & saveSize);
+ Save * GetClipboard();
+ Save * GetStamp();
};
#endif // GAMEMODEL_H