diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-07 13:23:26 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-07 13:23:26 (GMT) |
| commit | 61ed6e0276d580515d0acf5ddb96b1db95b9b191 (patch) | |
| tree | 65d9ad219e0b0f6bb1a81813c1888888f2cbd7a4 /src/interface/SaveButton.h | |
| parent | 2e48fc6115ebe0d294a2c7ff7fe8774217676f44 (diff) | |
| download | powder-61ed6e0276d580515d0acf5ddb96b1db95b9b191.zip powder-61ed6e0276d580515d0acf5ddb96b1db95b9b191.tar.gz | |
Rename Save class to SaveInfo, introduce SaveFile for hanlding of local data (stamps and local saves). Rename Stamps browser to LocalBrowser, ready for sharing code with the local save browser
Diffstat (limited to 'src/interface/SaveButton.h')
| -rw-r--r-- | src/interface/SaveButton.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/interface/SaveButton.h b/src/interface/SaveButton.h index f456639..2220f1c 100644 --- a/src/interface/SaveButton.h +++ b/src/interface/SaveButton.h @@ -4,7 +4,8 @@ #include <string> #include "Component.h" -#include "search/Save.h" +#include "client/SaveFile.h" +#include "client/SaveInfo.h" #include "Graphics.h" #include "search/Thumbnail.h" #include "interface/Colour.h" @@ -22,11 +23,13 @@ public: class SaveButton : public Component { - Save * save; + SaveFile * file; + SaveInfo * save; Thumbnail * thumbnail; std::string name; public: - SaveButton(Point position, Point size, Save * save); + SaveButton(Point position, Point size, SaveInfo * save); + SaveButton(Point position, Point size, SaveFile * file); virtual ~SaveButton(); virtual void OnMouseClick(int x, int y, unsigned int button); @@ -43,7 +46,8 @@ public: void SetSelectable(bool selectable_) { selectable = selectable_; } bool GetSelectable() { return selectable; } - Save * GetSave() { return save; } + SaveInfo * GetSave() { return save; } + SaveFile * GetSaveFile() { return file; } inline bool GetState() { return state; } virtual void DoAction(); virtual void DoSelection(); |
