diff options
author | Johannes Schickel | 2012-06-10 04:06:25 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-06-14 03:01:11 +0200 |
commit | 27b8b7e9b6644767ad9de1e40c188a7abd631c4e (patch) | |
tree | a07f7386d909d9d08263236eabdd94f1f5616ff4 /gui/saveload.h | |
parent | 84ed361370a83d1806cd146562c4debf3a6aa767 (diff) | |
download | scummvm-rg350-27b8b7e9b6644767ad9de1e40c188a7abd631c4e.tar.gz scummvm-rg350-27b8b7e9b6644767ad9de1e40c188a7abd631c4e.tar.bz2 scummvm-rg350-27b8b7e9b6644767ad9de1e40c188a7abd631c4e.zip |
GUI: Hide save/load chooser implementation.
Diffstat (limited to 'gui/saveload.h')
-rw-r--r-- | gui/saveload.h | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/gui/saveload.h b/gui/saveload.h index a19f5ab083..9cd3c4605f 100644 --- a/gui/saveload.h +++ b/gui/saveload.h @@ -27,46 +27,16 @@ namespace GUI { -class ListWidget; -class GraphicsWidget; -class ButtonWidget; -class CommandSender; -class ContainerWidget; -class StaticTextWidget; +class SaveLoadChooserImpl; -class SaveLoadChooser : GUI::Dialog { +class SaveLoadChooser { typedef Common::String String; - typedef Common::Array<Common::String> StringArray; protected: - GUI::ListWidget *_list; - GUI::ButtonWidget *_chooseButton; - GUI::ButtonWidget *_deleteButton; - GUI::GraphicsWidget *_gfxWidget; - GUI::ContainerWidget *_container; - GUI::StaticTextWidget *_date; - GUI::StaticTextWidget *_time; - GUI::StaticTextWidget *_playtime; - - const EnginePlugin *_plugin; - bool _delSupport; - bool _metaInfoSupport; - bool _thumbnailSupport; - bool _saveDateSupport; - bool _playTimeSupport; - String _target; - SaveStateList _saveList; - String _resultString; - - uint8 _fillR, _fillG, _fillB; - - void updateSaveList(); - void updateSelection(bool redraw); + SaveLoadChooserImpl *_impl; public: SaveLoadChooser(const String &title, const String &buttonLabel, bool saveMode); ~SaveLoadChooser(); - virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data); - /** * Runs the save/load chooser with the currently active config manager * domain as target. @@ -75,9 +45,8 @@ public: */ int runModalWithCurrentTarget(); int runModalWithPluginAndTarget(const EnginePlugin *plugin, const String &target); - void open(); - const Common::String &getResultString() const; + Common::String getResultString() const; /** * Creates a default save description for the specified slot. Depending @@ -93,10 +62,6 @@ public: * @return The slot description. */ Common::String createDefaultSaveDescription(const int slot) const; - - virtual void reflowLayout(); - - virtual void close(); }; } // End of namespace GUI |