aboutsummaryrefslogtreecommitdiff
path: root/gui/dialog.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-05-19 17:03:31 +0000
committerTorbjörn Andersson2005-05-19 17:03:31 +0000
commit81453854ee693aa31bbbd733043c114653265feb (patch)
tree8b548c0f4cb4a667461607503ce7996411813c64 /gui/dialog.h
parente8cb767e5bd0c34a68d31cb1debf9c86ab27a372 (diff)
downloadscummvm-rg350-81453854ee693aa31bbbd733043c114653265feb.tar.gz
scummvm-rg350-81453854ee693aa31bbbd733043c114653265feb.tar.bz2
scummvm-rg350-81453854ee693aa31bbbd733043c114653265feb.zip
Big version of the popup widget. It could use a bit more polish, though...
svn-id: r18185
Diffstat (limited to 'gui/dialog.h')
-rw-r--r--gui/dialog.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/dialog.h b/gui/dialog.h
index e4bd5238bd..ec024d5df1 100644
--- a/gui/dialog.h
+++ b/gui/dialog.h
@@ -30,7 +30,7 @@
namespace GUI {
class NewGui;
-class ButtonWidget;
+class PopUpWidget;
// Some "common" commands sent to handleCommand()
enum {
@@ -96,6 +96,9 @@ protected:
SliderWidget *addSlider(GuiObject *boss, int x, int y, uint32 cmd, WidgetSize ws = kDefaultWidgetSize);
SliderWidget *addSlider(int x, int y, uint32 cmd, WidgetSize ws = kDefaultWidgetSize);
+ PopUpWidget *addPopUp(GuiObject *boss, int x, int y, int w, const Common::String &label, uint labelWidth = 0, WidgetSize ws = kDefaultWidgetSize);
+ PopUpWidget *addPopUp(int x, int y, int w, const Common::String &label, uint labelWidth = 0, WidgetSize ws = kDefaultWidgetSize);
+
void setResult(int result) { _result = result; }
int getResult() const { return _result; }
};