ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <saveload.h>

Collaboration diagram for GUI::SaveLoadChooser:

List of all members.

Public Member Functions

 SaveLoadChooser (const String &title, const String &buttonLabel, bool saveMode)
 ~SaveLoadChooser ()
int runModalWithCurrentTarget ()
 Runs the save/load chooser with the currently active config manager domain as target.
int runModalWithPluginAndTarget (const Plugin *plugin, const String &target)
const Common::StringgetResultString () const
Common::String createDefaultSaveDescription (const int slot) const
 Creates a default save description for the specified slot.

Protected Member Functions

void selectChooser (const MetaEngine &engine)

Protected Attributes

SaveLoadChooserDialog_impl
const String _title
const String _buttonLabel
const bool _saveMode

Private Types

typedef Common::String String

Detailed Description

Definition at line 33 of file saveload.h.


Member Typedef Documentation

Definition at line 34 of file saveload.h.


Constructor & Destructor Documentation

GUI::SaveLoadChooser::SaveLoadChooser ( const String title,
const String buttonLabel,
bool  saveMode 
)

Definition at line 33 of file saveload.cpp.

GUI::SaveLoadChooser::~SaveLoadChooser (  ) 

Definition at line 37 of file saveload.cpp.


Member Function Documentation

Common::String GUI::SaveLoadChooser::createDefaultSaveDescription ( const int  slot  )  const

Creates a default save description for the specified slot.

Depending on the ScummVM configuration this might be a simple "Slot #" description or the current date and time.

TODO: This might not be the best place to put this, since engines not using this class might want to mimic the same behavior. Check whether moving this to a better place makes sense and find what this place would be.

Parameters:
slot The slot number (must be >= 0).
Returns:
The slot description.

Definition at line 64 of file saveload.cpp.

const Common::String & GUI::SaveLoadChooser::getResultString (  )  const

Definition at line 115 of file saveload.cpp.

int GUI::SaveLoadChooser::runModalWithCurrentTarget (  ) 

Runs the save/load chooser with the currently active config manager domain as target.

Returns:
The selcted save slot. -1 in case none is selected.

Definition at line 76 of file saveload.cpp.

int GUI::SaveLoadChooser::runModalWithPluginAndTarget ( const Plugin plugin,
const String target 
)

Definition at line 85 of file saveload.cpp.

void GUI::SaveLoadChooser::selectChooser ( const MetaEngine engine  )  [protected]

Definition at line 42 of file saveload.cpp.


Member Data Documentation

Definition at line 39 of file saveload.h.

Definition at line 36 of file saveload.h.

const bool GUI::SaveLoadChooser::_saveMode [protected]

Definition at line 40 of file saveload.h.

Definition at line 38 of file saveload.h.


The documentation for this class was generated from the following files:


Generated on Sat Jul 13 2019 05:04:20 for ResidualVM by doxygen 1.7.1
curved edge   curved edge