ScummVM API documentation
Sherlock::Tattoo::WidgetFiles Class Reference
Inheritance diagram for Sherlock::Tattoo::WidgetFiles:
Sherlock::Tattoo::WidgetBase Sherlock::SaveManager

Public Member Functions

 WidgetFiles (SherlockEngine *vm, const Common::String &target)
 
void show (SaveMode mode)
 
void handleEvents () override
 
- Public Member Functions inherited from Sherlock::Tattoo::WidgetBase
 WidgetBase (SherlockEngine *vm)
 
bool active () const
 
virtual void erase ()
 
virtual void draw ()
 
void checkTabbingKeys (int numOptions)
 
virtual void summonWindow ()
 
virtual void banishWindow ()
 
- Public Member Functions inherited from Sherlock::SaveManager
 SaveManager (SherlockEngine *vm, const Common::String &target)
 
void createThumbnail ()
 
Common::String generateSaveName (int slot)
 
void writeSavegameHeader (Common::OutSaveFile *out, SherlockSavegameHeader &header)
 
int getHighlightedButton () const
 
void highlightButtons (int btnIndex)
 
void loadGame (int slot)
 
void saveGame (int slot, const Common::String &name)
 
bool isSlotEmpty (int slot) const
 

Additional Inherited Members

- Static Public Member Functions inherited from Sherlock::SaveManager
static SaveManagerinit (SherlockEngine *vm, const Common::String &target)
 
static SaveStateList getSavegameList (const MetaEngine *metaEngine, const Common::String &target)
 
static WARN_UNUSED_RESULT bool readSavegameHeader (Common::InSaveFile *in, SherlockSavegameHeader &header, bool skipThumbnail=true)
 
- Public Attributes inherited from Sherlock::SaveManager
Common::StringArray _savegames
 
int _savegameIndex
 
bool _justLoaded
 
- Protected Member Functions inherited from Sherlock::Tattoo::WidgetBase
Common::String splitLines (const Common::String &str, Common::StringArray &lines, int maxWidth, uint maxLines)
 
void restrictToScreen ()
 
void makeInfoArea (Surface &s)
 
void makeInfoArea ()
 
void drawDialogRect (const Common::Rect &r, bool raised=true)
 
void drawScrollBar (int index, int pageSize, int count)
 
void handleScrollbarEvents (int index, int pageSize, int count)
 
void handleScrolling (int &scrollIndex, int pageSize, int max)
 
void close ()
 
virtual void drawBackground ()
 
- Protected Member Functions inherited from Sherlock::SaveManager
void createSavegameList ()
 
void synchronize (Serializer &s)
 
- Protected Attributes inherited from Sherlock::Tattoo::WidgetBase
SherlockEngine_vm
 
Common::Rect _bounds
 
Common::Rect _oldBounds
 
Surface _surface
 
bool _outsideMenu
 
bool _scroll
 
- Protected Attributes inherited from Sherlock::SaveManager
SherlockEngine_vm
 
Common::String _target
 
Graphics::Surface_saveThumb
 

Member Function Documentation

◆ show()

void Sherlock::Tattoo::WidgetFiles::show ( SaveMode  mode)

Prompt the user whether to quit

◆ handleEvents()

void Sherlock::Tattoo::WidgetFiles::handleEvents ( )
overridevirtual

Handle event processing

Reimplemented from Sherlock::Tattoo::WidgetBase.


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