summaryrefslogtreecommitdiff
path: root/src/interface/SaveButton.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-03-12 21:17:19 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-03-12 21:17:19 (GMT)
commit86b7a118004c9f9797d4d898dd587000e5178cea (patch)
treed2484bc8120fd6f3ee108cd51e026f1d5ebe860f /src/interface/SaveButton.h
parente6bca489c9aae88f1c7bbb44c4e2df71f481cbd3 (diff)
downloadpowder-86b7a118004c9f9797d4d898dd587000e5178cea.zip
powder-86b7a118004c9f9797d4d898dd587000e5178cea.tar.gz
Make thumbnailbroker more general purpose, image requests for requestbroker, avatars in previewview
Diffstat (limited to 'src/interface/SaveButton.h')
-rw-r--r--src/interface/SaveButton.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/interface/SaveButton.h b/src/interface/SaveButton.h
index 7a75973..e03d48a 100644
--- a/src/interface/SaveButton.h
+++ b/src/interface/SaveButton.h
@@ -6,9 +6,8 @@
#include "Component.h"
#include "client/SaveFile.h"
#include "client/SaveInfo.h"
-#include "client/ThumbnailListener.h"
+#include "client/RequestListener.h"
#include "graphics/Graphics.h"
-#include "search/Thumbnail.h"
#include "interface/Colour.h"
namespace ui
@@ -24,11 +23,11 @@ public:
virtual ~SaveButtonAction() {}
};
-class SaveButton : public Component, public ThumbnailListener
+class SaveButton : public Component, public RequestListener
{
SaveFile * file;
SaveInfo * save;
- Thumbnail * thumbnail;
+ VideoBuffer * thumbnail;
std::string name;
std::string votesString;
std::string votesBackground;
@@ -59,7 +58,7 @@ public:
virtual void Draw(const Point& screenPos);
virtual void Tick(float dt);
- virtual void OnThumbnailReady(Thumbnail * thumb);
+ virtual void OnResponseReady(void * imagePtr);
void SetSelected(bool selected_) { selected = selected_; }
bool GetSelected() { return selected; }