39 lines
817 B
C++
39 lines
817 B
C++
#pragma once
|
|
|
|
#include "Activity.h"
|
|
#include "client/SaveFile.h"
|
|
#include "client/ThumbnailListener.h"
|
|
|
|
namespace ui
|
|
{
|
|
class Textbox;
|
|
}
|
|
|
|
class Thumbnail;
|
|
|
|
class FileSavedCallback
|
|
{
|
|
public:
|
|
FileSavedCallback() {}
|
|
virtual ~FileSavedCallback() {}
|
|
virtual void FileSaved(SaveFile * file) {}
|
|
};
|
|
|
|
class LocalSaveActivity: public WindowActivity, public ThumbnailListener
|
|
{
|
|
SaveFile save;
|
|
Thumbnail * thumbnail;
|
|
ui::Textbox * filenameField;
|
|
class CancelAction;
|
|
class SaveAction;
|
|
friend class CancelAction;
|
|
friend class SaveAction;
|
|
FileSavedCallback * callback;
|
|
public:
|
|
LocalSaveActivity(SaveFile save, FileSavedCallback * callback);
|
|
void saveWrite(std::string finalFilename);
|
|
virtual void Save();
|
|
virtual void OnDraw();
|
|
virtual void OnThumbnailReady(Thumbnail * thumbnail);
|
|
virtual ~LocalSaveActivity();
|
|
}; |