Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

Scumm::ValueDisplayDialog Class Reference

#include <dialogs.h>

Inheritance diagram for Scumm::ValueDisplayDialog:

List of all members.

Detailed Description

A dialog used to display the music volume / text speed. Automatically closes after a brief time passed.

Definition at line 209 of file dialogs.h.

Public Member Functions

virtual void drawDialog ()
virtual int16 getAbsX () const
virtual int16 getAbsY () const
virtual int16 getChildX () const
virtual int16 getChildY () const
virtual uint16 getHeight () const
virtual uint16 getWidth () const
virtual void handleKeyDown (Common::KeyState state)
virtual void handleMouseDown (int x, int y, int button, int clickCount)
virtual void handleTickle ()
bool isVisible () const
virtual void open ()
virtual void reflowLayout ()
void releaseFocus ()
virtual int runModal ()
 ValueDisplayDialog (const Common::String &label, int minVal, int maxVal, int val, uint16 incKey, uint16 decKey)

Protected Types

enum  { kPercentBarWidth = 50, kBigPercentBarWidth = 75, kDisplayDelay = 1500 }

Protected Member Functions

ButtonWidget * addButton (GuiObject *boss, int x, int y, const Common::String &label, uint32 cmd, char hotkey)
virtual void close ()
bool dimsInactive ()
virtual void draw ()
Widget * findWidget (const char *name)
Widget * findWidget (int x, int y)
uint32 getMillis ()
int getResult () const
virtual void handleCommand (CommandSender *sender, uint32 cmd, uint32 data)
virtual void handleKeyUp (Common::KeyState state)
virtual void handleMouseMoved (int x, int y, int button)
virtual void handleMouseUp (int x, int y, int button, int clickCount)
virtual void handleMouseWheel (int x, int y, int direction)
void removeWidget (Widget *widget)
void setResult (int result)

Protected Attributes

const uint16 _decKey
Widget * _dragWidget
uint16 _drawingHints
Widget * _firstWidget
Widget * _focusedWidget
uint16 _h
const uint16 _incKey
Common::String _label
const int _max
const int _min
Widget * _mouseWidget
Common::String _name
int _percentBarWidth
uint32 _timer
int _value
bool _visible
uint16 _w
int16 _x
int16 _y

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

Generated by  Doxygen 1.6.0   Back to index