diff options
author | Max Horn | 2002-07-08 11:55:55 +0000 |
---|---|---|
committer | Max Horn | 2002-07-08 11:55:55 +0000 |
commit | 32ea67dfed453f60442bdf3340edcb379ff86932 (patch) | |
tree | 5f04b03e0b7a173cc4ae9dfb33e9bb83773cf99c /gui/widget.cpp | |
parent | d262c4e6dca83b214c54c96f474cb1e766e77885 (diff) | |
download | scummvm-rg350-32ea67dfed453f60442bdf3340edcb379ff86932.tar.gz scummvm-rg350-32ea67dfed453f60442bdf3340edcb379ff86932.tar.bz2 scummvm-rg350-32ea67dfed453f60442bdf3340edcb379ff86932.zip |
got rid of RTTI again (i.e. dynamic_cast)
svn-id: r4492
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r-- | gui/widget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp index 1975001733..cb3fce0ed5 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -25,7 +25,7 @@ Widget::Widget (Dialog *boss, int x, int y, int w, int h) - : _boss(boss), _x(x), _y(y), _w(w), _h(h), _id(0), _flags(0) + : _type(0), _boss(boss), _x(x), _y(y), _w(w), _h(h), _id(0), _flags(0) { // Insert into the widget list of the boss _next = _boss->_firstWidget; @@ -78,6 +78,7 @@ StaticTextWidget::StaticTextWidget(Dialog *boss, int x, int y, int w, int h, con { // FIXME - maybe we should make a real copy of the string? _text = text; + _type = kStaticTextWidget; } void StaticTextWidget::drawWidget(bool hilite) @@ -94,6 +95,7 @@ ButtonWidget::ButtonWidget(Dialog *boss, int x, int y, int w, int h, const char : StaticTextWidget(boss, x, y, w, h, label), _cmd(cmd), _hotkey(hotkey) { _flags = WIDGET_ENABLED | WIDGET_BORDER /* | WIDGET_CLEARBG */ ; + _type = kButtonWidget; } void ButtonWidget::handleClick(int button) @@ -122,6 +124,7 @@ CheckboxWidget::CheckboxWidget(Dialog *boss, int x, int y, int w, int h, const c : ButtonWidget(boss, x, y, w, h, label, cmd, hotkey), _state(false) { _flags = WIDGET_ENABLED; + _type = kCheckboxWidget; } void CheckboxWidget::handleClick(int button) |