diff options
author | Torbjörn Andersson | 2005-05-18 15:58:39 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-05-18 15:58:39 +0000 |
commit | 35dda2b636825c4273a0d13cd1b65ae49fdb65ca (patch) | |
tree | ce9aaeefe7b6b3c2cbc2ec1e7347df7f7be5e5cf /gui/dialog.h | |
parent | 51f8aa50b15ac99903f5e4ad3c5422d5473bef85 (diff) | |
download | scummvm-rg350-35dda2b636825c4273a0d13cd1b65ae49fdb65ca.tar.gz scummvm-rg350-35dda2b636825c4273a0d13cd1b65ae49fdb65ca.tar.bz2 scummvm-rg350-35dda2b636825c4273a0d13cd1b65ae49fdb65ca.zip |
Added big slider widget. There is nothing in the widget itself that's
dependent on size, so the two different sizes are handled through a new
addSlider() function.
Figuring out why the big widget won't let you set volume to 0 is left as an
exercise for the reader.
svn-id: r18170
Diffstat (limited to 'gui/dialog.h')
-rw-r--r-- | gui/dialog.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/dialog.h b/gui/dialog.h index 77e372144a..e4bd5238bd 100644 --- a/gui/dialog.h +++ b/gui/dialog.h @@ -93,6 +93,9 @@ protected: CheckboxWidget *addCheckbox(GuiObject *boss, int x, int y, const Common::String &label, uint32 cmd, char hotkey, WidgetSize ws = kDefaultWidgetSize); CheckboxWidget *addCheckbox(int x, int y, const Common::String &label, uint32 cmd, char hotkey, WidgetSize ws = kDefaultWidgetSize); + SliderWidget *addSlider(GuiObject *boss, int x, int y, uint32 cmd, WidgetSize ws = kDefaultWidgetSize); + SliderWidget *addSlider(int x, int y, uint32 cmd, WidgetSize ws = kDefaultWidgetSize); + void setResult(int result) { _result = result; } int getResult() const { return _result; } }; |