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

GUI::SaveLoadChooserDialog Class Reference

#include <saveload-dialog.h>

Inheritance diagram for GUI::SaveLoadChooserDialog:
Collaboration diagram for GUI::SaveLoadChooserDialog:

List of all members.

Public Member Functions

 SaveLoadChooserDialog (const Common::String &dialogName, const bool saveMode)
 SaveLoadChooserDialog (int x, int y, int w, int h, const bool saveMode)
 ~SaveLoadChooserDialog () override
void open () override
void close () override
void reflowLayout () override
void handleCommand (CommandSender *sender, uint32 cmd, uint32 data) override
void handleTickle () override
virtual SaveLoadChooserType getType () const =0
int run (const Common::String &target, const MetaEngine *metaEngine)
virtual const Common::U32StringgetResultString () const =0

Protected Member Functions

virtual int runIntern ()=0
virtual void updateSaveList ()
 Common function to refresh the list on the screen.
virtual void listSaves ()
 Common function to get saves list from MetaEngine.
void addChooserButtons ()
ButtonWidgetcreateSwitchButton (const Common::String &name, const Common::U32String &desc, const Common::U32String &tooltip, const char *image, uint32 cmd=0)

Protected Attributes

const bool _saveMode
const MetaEngine_metaEngine
bool _delSupport
bool _metaInfoSupport
bool _thumbnailSupport
bool _saveDateSupport
bool _playTimeSupport
Common::String _target
bool _dialogWasShown
SaveStateList _saveList
ButtonWidget_listButton
ButtonWidget_gridButton

Detailed Description

Definition at line 71 of file saveload-dialog.h.


Constructor & Destructor Documentation

GUI::SaveLoadChooserDialog::SaveLoadChooserDialog ( const Common::String dialogName,
const bool  saveMode 
)

Definition at line 136 of file saveload-dialog.cpp.

GUI::SaveLoadChooserDialog::SaveLoadChooserDialog ( int  x,
int  y,
int  w,
int  h,
const bool  saveMode 
)

Definition at line 149 of file saveload-dialog.cpp.

GUI::SaveLoadChooserDialog::~SaveLoadChooserDialog (  )  [override]

Definition at line 162 of file saveload-dialog.cpp.


Member Function Documentation

void GUI::SaveLoadChooserDialog::addChooserButtons (  )  [protected]

Definition at line 332 of file saveload-dialog.cpp.

void GUI::SaveLoadChooserDialog::close (  )  [override, virtual]

Reimplemented from GUI::Dialog.

Reimplemented in GUI::SaveLoadChooserSimple, and GUI::SaveLoadChooserGrid.

Definition at line 178 of file saveload-dialog.cpp.

ButtonWidget * GUI::SaveLoadChooserDialog::createSwitchButton ( const Common::String name,
const Common::U32String desc,
const Common::U32String tooltip,
const char *  image,
uint32  cmd = 0 
) [protected]

Definition at line 351 of file saveload-dialog.cpp.

virtual const Common::U32String& GUI::SaveLoadChooserDialog::getResultString (  )  const [pure virtual]
virtual SaveLoadChooserType GUI::SaveLoadChooserDialog::getType (  )  const [pure virtual]
void GUI::SaveLoadChooserDialog::handleCommand ( CommandSender sender,
uint32  cmd,
uint32  data 
) [override, virtual]

Reimplemented from GUI::Dialog.

Reimplemented in GUI::SaveLoadChooserSimple, and GUI::SaveLoadChooserGrid.

Definition at line 197 of file saveload-dialog.cpp.

void GUI::SaveLoadChooserDialog::handleTickle (  )  [override, virtual]

Reimplemented from GUI::Dialog.

Definition at line 245 of file saveload-dialog.cpp.

void GUI::SaveLoadChooserDialog::listSaves (  )  [protected, virtual]

Common function to get saves list from MetaEngine.

It also checks whether there are some locked saves because of saves sync and adds such saves as locked slots. User sees these slots, but is unable to save or load from these.

Definition at line 299 of file saveload-dialog.cpp.

void GUI::SaveLoadChooserDialog::open (  )  [override, virtual]

Reimplemented from GUI::Dialog.

Reimplemented in GUI::SaveLoadChooserSimple, and GUI::SaveLoadChooserGrid.

Definition at line 168 of file saveload-dialog.cpp.

void GUI::SaveLoadChooserDialog::reflowLayout (  )  [override, virtual]

Reimplemented from GUI::Dialog.

Reimplemented in GUI::SaveLoadChooserSimple, and GUI::SaveLoadChooserGrid.

Definition at line 268 of file saveload-dialog.cpp.

int GUI::SaveLoadChooserDialog::run ( const Common::String target,
const MetaEngine metaEngine 
)

Definition at line 185 of file saveload-dialog.cpp.

virtual int GUI::SaveLoadChooserDialog::runIntern (  )  [protected, pure virtual]
void GUI::SaveLoadChooserDialog::updateSaveList (  )  [protected, virtual]

Common function to refresh the list on the screen.

Reimplemented in GUI::SaveLoadChooserSimple, and GUI::SaveLoadChooserGrid.

Definition at line 291 of file saveload-dialog.cpp.


Member Data Documentation

Definition at line 115 of file saveload-dialog.h.

Definition at line 121 of file saveload-dialog.h.

Definition at line 114 of file saveload-dialog.h.

Definition at line 116 of file saveload-dialog.h.

Definition at line 119 of file saveload-dialog.h.

Definition at line 118 of file saveload-dialog.h.

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

Definition at line 113 of file saveload-dialog.h.

Definition at line 117 of file saveload-dialog.h.


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


Generated on Sat Sep 19 2020 05:05:29 for ResidualVM by doxygen 1.7.1
curved edge   curved edge