diff options
author | Nicola Mettifogo | 2007-07-07 19:42:06 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-07-07 19:42:06 +0000 |
commit | 214cbc40f5ea1efe8f53da49a64c4d9e808e2487 (patch) | |
tree | d5258ee31968b35e5bd6234f8b18c41a86742610 /engines/parallaction/saveload.cpp | |
parent | 65ac39fb8b3ca65042b9c87e34544505378a2891 (diff) | |
download | scummvm-rg350-214cbc40f5ea1efe8f53da49a64c4d9e808e2487.tar.gz scummvm-rg350-214cbc40f5ea1efe8f53da49a64c4d9e808e2487.tar.bz2 scummvm-rg350-214cbc40f5ea1efe8f53da49a64c4d9e808e2487.zip |
Moved SaveLoadChooser class to saveload.cpp and adjusted dependencies.
svn-id: r27954
Diffstat (limited to 'engines/parallaction/saveload.cpp')
-rw-r--r-- | engines/parallaction/saveload.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/engines/parallaction/saveload.cpp b/engines/parallaction/saveload.cpp index f1dc53539d..2a9431ef94 100644 --- a/engines/parallaction/saveload.cpp +++ b/engines/parallaction/saveload.cpp @@ -26,6 +26,7 @@ #include "common/stdafx.h" #include "common/savefile.h" +#include "gui/dialog.h" #include "gui/widget.h" #include "gui/ListWidget.h" #include "gui/message.h" @@ -48,6 +49,37 @@ namespace Parallaction { extern char _gameNames[][20]; + +class SaveLoadChooser : public GUI::Dialog { + typedef Common::String String; + typedef Common::StringList StringList; +protected: + GUI::ListWidget *_list; + GUI::ButtonWidget *_chooseButton; + GUI::GraphicsWidget *_gfxWidget; + GUI::StaticTextWidget *_date; + GUI::StaticTextWidget *_time; + GUI::StaticTextWidget *_playtime; + GUI::ContainerWidget *_container; + Parallaction *_vm; + + uint8 _fillR, _fillG, _fillB; + +public: + SaveLoadChooser(const String &title, const String &buttonLabel, Parallaction *engine); + ~SaveLoadChooser(); + + virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data); + const String &getResultString() const; + void setList(const StringList& list); + int runModal(); + + virtual void reflowLayout(); +}; + + + + void Parallaction::doLoadGame(uint16 slot) { _introSarcData3 = 200; |