diff options
author | Max Horn | 2002-07-08 00:29:47 +0000 |
---|---|---|
committer | Max Horn | 2002-07-08 00:29:47 +0000 |
commit | 28852f14975ba9fddbee838fcf9723386870d39c (patch) | |
tree | 0d5c4e04c46f71ac204d6068bb2c0fa8b4018652 /gui/widget.h | |
parent | c9b1d393b836dc4239a42c0efad7712fb786930f (diff) | |
download | scummvm-rg350-28852f14975ba9fddbee838fcf9723386870d39c.tar.gz scummvm-rg350-28852f14975ba9fddbee838fcf9723386870d39c.tar.bz2 scummvm-rg350-28852f14975ba9fddbee838fcf9723386870d39c.zip |
implemented hotkey support in new GUI code
svn-id: r4488
Diffstat (limited to 'gui/widget.h')
-rw-r--r-- | gui/widget.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/widget.h b/gui/widget.h index a1ea0fcf64..aed1e5590b 100644 --- a/gui/widget.h +++ b/gui/widget.h @@ -78,11 +78,12 @@ protected: /* ButtonWidget */ class ButtonWidget : public StaticTextWidget { +friend class Dialog; protected: uint32 _cmd; uint8 _hotkey; public: - ButtonWidget(Dialog *boss, int x, int y, int w, int h, const char *label, uint32 cmd); + ButtonWidget(Dialog *boss, int x, int y, int w, int h, const char *label, uint32 cmd = 0, uint8 hotkey = 0); void setCmd(uint32 cmd) { _cmd = cmd; } uint32 getCmd() { return _cmd; } @@ -96,7 +97,7 @@ class CheckboxWidget : public ButtonWidget { protected: bool _state; public: - CheckboxWidget(Dialog *boss, int x, int y, int w, int h, const char *label, uint32 cmd); + CheckboxWidget(Dialog *boss, int x, int y, int w, int h, const char *label, uint32 cmd = 0, uint8 hotkey = 0); void setState(bool state) { _state = state; } bool getState() { return _state; } |