summaryrefslogtreecommitdiffstats
path: root/src/jabber_whiteboard/node-tracker-event-tracker.cpp
diff options
context:
space:
mode:
authordaleharvey <daleharvey@users.sourceforge.net>2006-06-23 13:15:16 +0000
committerdaleharvey <daleharvey@users.sourceforge.net>2006-06-23 13:15:16 +0000
commitfcadbfb31e9e8bd463a16369e3de2ec96a413a6a (patch)
tree41c3f39b304687f41ec169c8aa95a5984aa5910f /src/jabber_whiteboard/node-tracker-event-tracker.cpp
parentquick g_message UndoStackObserver for tracing calls to the undo system (diff)
downloadinkscape-fcadbfb31e9e8bd463a16369e3de2ec96a413a6a.tar.gz
inkscape-fcadbfb31e9e8bd463a16369e3de2ec96a413a6a.zip
manually merging the INKBOARD_PEDRO branch into trunk
(bzr r1268)
Diffstat (limited to 'src/jabber_whiteboard/node-tracker-event-tracker.cpp')
-rw-r--r--src/jabber_whiteboard/node-tracker-event-tracker.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/jabber_whiteboard/node-tracker-event-tracker.cpp b/src/jabber_whiteboard/node-tracker-event-tracker.cpp
deleted file mode 100644
index da872c5e6..000000000
--- a/src/jabber_whiteboard/node-tracker-event-tracker.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Tracks node add/remove events to an XMLNodeTracker, and eliminates cases such as
- * consecutive add/remove.
- *
- * Authors:
- * David Yip <yipdw@rose-hulman.edu>
- *
- * Copyright (c) 2005 Authors
- *
- * Released under GNU GPL, read the file 'COPYING' for more information
- */
-
-#include "xml/node.h"
-
-#include "jabber_whiteboard/node-tracker-event-tracker.h"
-
-namespace Inkscape {
-
-namespace Whiteboard {
-
-bool
-NodeTrackerEventTracker::tryToTrack(XML::Node* node, NodeTrackerAction action)
-{
- // 1. Check if node is being tracked.
- NodeActionMap::iterator i = this->_actions.find(node);
- if (i != this->_actions.end()) {
- // 2a. Check the action. If it is the same as the action we are registering,
- // return false. Otherwise, register the action with the actions map
- // and return true.
- if (i->second == action) {
- return false;
- } else {
- this->_actions[node] = action;
- return true;
- }
- } else {
- // 2b. If we aren't tracking this node, insert it with the given action.
- this->_actions[node] = action;
- return true;
- }
-}
-
-}
-
-}
-
-/*
- Local Variables:
- mode:c++
- c-file-style:"stroustrup"
- c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
- indent-tabs-mode:nil
- fill-column:99
- End:
-*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :