summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/animationnodes/basenode.cxx
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2009-04-27 11:42:05 +0000
committerAndre Fischer <af@openoffice.org>2009-04-27 11:42:05 +0000
commit69a4a545a556bd189736b3e510d4b4b07ae8cb6e (patch)
tree33696e0153c26ca3c8cf32b988cc6422688cccee /slideshow/source/engine/animationnodes/basenode.cxx
parentaa02f1da390cb9b1225de978f8e2965c34e3a45f (diff)
#i48179# Debug: added descriptive strings to events.
Diffstat (limited to 'slideshow/source/engine/animationnodes/basenode.cxx')
-rw-r--r--slideshow/source/engine/animationnodes/basenode.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/slideshow/source/engine/animationnodes/basenode.cxx b/slideshow/source/engine/animationnodes/basenode.cxx
index 9f74a75fd571..6ad15e43462f 100644
--- a/slideshow/source/engine/animationnodes/basenode.cxx
+++ b/slideshow/source/engine/animationnodes/basenode.cxx
@@ -50,6 +50,7 @@
#include "tools.hxx"
#include "nodetools.hxx"
#include "generateevent.hxx"
+#include "debug.hxx"
#include <boost/bind.hpp>
#include <vector>
@@ -312,6 +313,10 @@ public:
mpNode->meCurrState = meToState;
clear();
}
+
+ // Uncomment the following line to write the node tree to file on
+ // every state change of one of its nodes.
+ // Debug_ShowNodeTree(mpNode->mpSelf);
}
void clear() {
@@ -488,7 +493,9 @@ bool BaseNode::resolve()
// schedule delayed activation event. Take iterate node
// timeout into account
mpCurrentEvent = makeDelay(
- boost::bind( &AnimationNode::activate, mpSelf ), mnStartDelay );
+ boost::bind( &AnimationNode::activate, mpSelf ),
+ mnStartDelay,
+ "AnimationNode::activate with delay");
maContext.mrEventQueue.addEvent( mpCurrentEvent );
}