diff options
author | Max Horn | 2002-10-01 23:11:19 +0000 |
---|---|---|
committer | Max Horn | 2002-10-01 23:11:19 +0000 |
commit | 3d7552890a52067ed493c63522fb11bb13ed72bd (patch) | |
tree | ab6bb989f3a36b00cc8f6c15337aba640c1a1cd1 /gui/widget.h | |
parent | 1e626a712828e630d0a8583ab1a9a0b838d2d6cf (diff) | |
download | scummvm-rg350-3d7552890a52067ed493c63522fb11bb13ed72bd.tar.gz scummvm-rg350-3d7552890a52067ed493c63522fb11bb13ed72bd.tar.bz2 scummvm-rg350-3d7552890a52067ed493c63522fb11bb13ed72bd.zip |
fixed ListWidget drawin/behaviour if there are less items than fit on one page; enhanced launcher dialog to disable start button if nothing is selected
svn-id: r5068
Diffstat (limited to 'gui/widget.h')
-rw-r--r-- | gui/widget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/widget.h b/gui/widget.h index 3a544da61d..066252b0ec 100644 --- a/gui/widget.h +++ b/gui/widget.h @@ -108,7 +108,9 @@ public: void clearFlags(int flags) { _flags &= ~flags; } int getFlags() const { return _flags; } - bool isVisible() const { return !(_flags & WIDGET_INVISIBLE); } + void setEnabled(bool e) { if (e) setFlags(WIDGET_ENABLED); else clearFlags(WIDGET_ENABLED); } + bool isEnabled() const { return _flags & WIDGET_ENABLED; } + bool isVisible() const { return !(_flags & WIDGET_INVISIBLE); } protected: virtual void drawWidget(bool hilite) {} |