aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-08-20 20:27:07 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-08-20 20:27:07 +0200
commite98d02a01ffeb18ede86af025e51ae1ec011c75a (patch)
treef8b2efbec989335bf2a56b73fcf485f4cd1a01c6 /dw/widget.cc
parentce8e972a10c9340312f21511de053242dad3f5db (diff)
import float prototype and test program by Sebastian Geerken
Diffstat (limited to 'dw/widget.cc')
-rw-r--r--dw/widget.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index e3ce8e3d..b664b433 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -308,6 +308,8 @@ void Widget::setParent (Widget *parent)
if (!buttonSensitiveSet)
buttonSensitive = parent->buttonSensitive;
+ notifySetParent();
+
//DBG_OBJ_ASSOC (widget, parent);
}
@@ -775,6 +777,25 @@ void Widget::markExtremesChange (int ref)
{
}
+/**
+ * \brief This method is called after a widget has been set as the top of a
+ * widget tree.
+ *
+ * A widget may override this method when it is necessary to be notified.
+ */
+void Widget::notifySetAsTopLevel()
+{
+}
+
+/**
+ * \brief This method is called after a widget has been added to a parent.
+ *
+ * A widget may override this method when it is necessary to be notified.
+ */
+void Widget::notifySetParent()
+{
+}
+
void Widget::setWidth (int width)
{
}