ScummVM API documentation
GUI::SaveLoadChooserDialog Class Referenceabstract
Inheritance diagram for GUI::SaveLoadChooserDialog:
GUI::Dialog GUI::GuiObject GUI::CommandReceiver GUI::SaveLoadChooserGrid GUI::SaveLoadChooserSimple

Public Member Functions

 SaveLoadChooserDialog (const Common::String &dialogName, const bool saveMode)
 
 SaveLoadChooserDialog (int x, int y, int w, int h, const bool saveMode)
 
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::U32String getResultString () const =0
 

Protected Member Functions

virtual int runIntern ()=0
 
virtual void updateSaveList ()
 
virtual void listSaves ()
 
void activate (int slot, const Common::U32String &description)
 
void addChooserButtons ()
 
ButtonWidgetcreateSwitchButton (const Common::String &name, const Common::U32String &desc, const Common::U32String &tooltip, const char *image, uint32 cmd=0)
 
- Protected Member Functions inherited from GUI::Dialog
void markWidgetsAsDirty ()
 
virtual void drawDialog (DrawLayer layerToDraw)
 
void drawWidgets ()
 
virtual void handleMouseDown (int x, int y, int button, int clickCount)
 
virtual void handleMouseUp (int x, int y, int button, int clickCount)
 
virtual void handleMouseWheel (int x, int y, int direction) override
 
virtual void handleKeyDown (Common::KeyState state)
 
virtual void handleKeyUp (Common::KeyState state)
 
virtual void handleMouseMoved (int x, int y, int button)
 
virtual void handleMouseLeft (int button)
 
virtual void handleOtherEvent (const Common::Event &evt)
 
WidgetfindWidget (int x, int y)
 
WidgetfindWidget (const char *name)
 
void removeWidget (Widget *widget) override
 
void setMouseUpdatedOnFocus (bool mouseUpdatedOnFocus)
 
void setDefaultFocusedWidget ()
 
void setResult (int result)
 
int getResult () const
 
 Dialog (int x, int y, int w, int h, bool scale=false)
 
 Dialog (const Common::String &name)
 
virtual int runModal ()
 
bool isVisible () const override
 
bool isMouseUpdatedOnFocus () const
 
void releaseFocus () override
 
void setFocusWidget (Widget *widget)
 
WidgetgetFocusWidget ()
 
bool isDragging () const
 
void setTickleWidget (Widget *widget)
 
void unSetTickleWidget ()
 
WidgetgetTickleWidget ()
 
virtual void lostFocus ()
 
virtual void receivedFocus (int x=-1, int y=-1)
 
 GuiObject (int x, int y, int w, int h, bool scale=false)
 
 GuiObject (const Common::String &name)
 
virtual void setTextDrawableArea (const Common::Rect &r)
 
virtual void resize (int x, int y, int w, int h, bool scale=true)
 
virtual WidgetaddChild (Widget *newChild)
 
virtual int16 getRelX () const
 
virtual int16 getRelY () const
 
virtual int16 getAbsX () const
 
virtual int16 getAbsY () const
 
virtual int16 getChildX () const
 
virtual int16 getChildY () const
 
virtual uint16 getWidth () const
 
virtual uint16 getHeight () const
 
virtual bool isPointIn (int x, int y)
 
virtual Common::Rect getClipRect () const
 
virtual void handleTooltipUpdate (int x, int y)
 

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
 
Common::U32String _resultString
 
ButtonWidget_listButton
 
ButtonWidget_gridButton
 
- Protected Attributes inherited from GUI::Dialog
Widget_mouseWidget
 
Widget_focusedWidget
 
Widget_dragWidget
 
Widget_tickleWidget
 
bool _visible
 
bool _mouseUpdatedOnFocus
 
ThemeEngine::DialogBackground _backgroundType
 
- Protected Attributes inherited from GUI::GuiObject
Common::Rect _textDrawableArea
 
int16 _x
 
int16 _y
 
uint16 _w
 
uint16 _h
 
bool _useRTL
 
const Common::String _name
 
Widget_firstWidget
 

Member Function Documentation

◆ updateSaveList()

virtual void GUI::SaveLoadChooserDialog::updateSaveList ( )
protectedvirtual

Common function to refresh the list on the screen.

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

◆ listSaves()

virtual void GUI::SaveLoadChooserDialog::listSaves ( )
protectedvirtual

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.


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