Code

Event -> XML::Event*
authordwyip <dwyip@users.sourceforge.net>
Thu, 29 Jun 2006 21:19:58 +0000 (21:19 +0000)
committerdwyip <dwyip@users.sourceforge.net>
Thu, 29 Jun 2006 21:19:58 +0000 (21:19 +0000)
src/composite-undo-stack-observer.cpp
src/composite-undo-stack-observer.h
src/console-output-undo-observer.cpp
src/console-output-undo-observer.h

index 3c46cb11e1ef0a8cf8d9966db156f42cdc23a930..04890711ba461e9bca04a49eaa5e5330729dfb21 100644 (file)
@@ -42,7 +42,7 @@ CompositeUndoStackObserver::remove(UndoStackObserver& observer)
 }
 
 void
-CompositeUndoStackObserver::notifyUndoEvent(Event* log)
+CompositeUndoStackObserver::notifyUndoEvent(XML::Event* log)
 {
        this->_lock();
        for(UndoObserverRecordList::iterator i = this->_active.begin(); i != _active.end(); ++i) {
@@ -54,7 +54,7 @@ CompositeUndoStackObserver::notifyUndoEvent(Event* log)
 }
 
 void
-CompositeUndoStackObserver::notifyRedoEvent(Event* log)
+CompositeUndoStackObserver::notifyRedoEvent(XML::Event* log)
 {
 
        this->_lock();
@@ -67,7 +67,7 @@ CompositeUndoStackObserver::notifyRedoEvent(Event* log)
 }
 
 void
-CompositeUndoStackObserver::notifyUndoCommitEvent(Event* log)
+CompositeUndoStackObserver::notifyUndoCommitEvent(XML::Event* log)
 {
        this->_lock();
        for(UndoObserverRecordList::iterator i = this->_active.begin(); i != _active.end(); ++i) {
index 02d54eb7693415fc361ba199f18abc1cddbf4e0a..fbe0ed892cf20cbb041cf67da9a48e12dea036d0 100644 (file)
 
 namespace Inkscape {
 
+namespace XML {
+
 class Event;
 
+}
+
 /**
  * Aggregates UndoStackObservers for management and triggering in an SPDocument's undo/redo
  * system.
@@ -56,7 +60,7 @@ public:
                 *
                 * \param log The event log generated by the redo event.
                 */
-               void issueRedo(Event* log)
+               void issueRedo(XML::Event* log)
                {
                        this->_observer.notifyRedoEvent(log);
                }
@@ -67,7 +71,7 @@ public:
                 *
                 * \param log The event log generated by the undo event.
                 */
-               void issueUndo(Event* log)
+               void issueUndo(XML::Event* log)
                {
                        this->_observer.notifyUndoEvent(log);
                }
@@ -78,7 +82,7 @@ public:
                 *
                 * \param log The event log being committed to the undo stack.
                 */
-               void issueUndoCommit(Event* log)
+               void issueUndoCommit(XML::Event* log)
                {
                        this->_observer.notifyUndoCommitEvent(log);
                }
@@ -116,21 +120,21 @@ public:
         *
         * \param log The event log generated by the undo event.
         */
-       void notifyUndoEvent(Event* log);
+       void notifyUndoEvent(XML::Event* log);
 
        /**
         * Notify all registered UndoStackObservers of a redo event.
         *
         * \param log The event log generated by the redo event.
         */
-       void notifyRedoEvent(Event* log);
+       void notifyRedoEvent(XML::Event* log);
 
        /**
         * Notify all registered UndoStackObservers of an event log being committed to the undo stack.
         *
         * \param log The event log being committed to the undo stack.
         */
-       void notifyUndoCommitEvent(Event* log);
+       void notifyUndoCommitEvent(XML::Event* log);
 
 private:
        // Remove an observer from a given list
index 7035e89feb1fb7450b2cabc7915ecaa2eb9d30fd..c90925b180dad030356d9675e727f0b80fcbe2ef 100644 (file)
 namespace Inkscape {
 
 void
-ConsoleOutputUndoObserver::notifyUndoEvent(Event* log)
+ConsoleOutputUndoObserver::notifyUndoEvent(XML::Event* log)
 {
     // g_message("notifyUndoEvent (sp_document_undo) called; log=%p\n", log->event);
 }
 
 void
-ConsoleOutputUndoObserver::notifyRedoEvent(Event* log)
+ConsoleOutputUndoObserver::notifyRedoEvent(XML::Event* log)
 {
     // g_message("notifyRedoEvent (sp_document_redo) called; log=%p\n", log->event);
 }
 
 void
-ConsoleOutputUndoObserver::notifyUndoCommitEvent(Event* log)
+ConsoleOutputUndoObserver::notifyUndoCommitEvent(XML::Event* log)
 {
     //g_message("notifyUndoCommitEvent (sp_document_maybe_done) called; log=%p\n", log->event);
 }
index 32149c15dc012b13b83d5d68e2897938826a11ee..7f121dbcebf608fb795c4a537bcfcad1bce853aa 100644 (file)
@@ -22,9 +22,9 @@ public:
     ConsoleOutputUndoObserver() : UndoStackObserver() { }
     ~ConsoleOutputUndoObserver() { }
 
-    void notifyUndoEvent(Event* log);
-    void notifyRedoEvent(Event* log);
-    void notifyUndoCommitEvent(Event* log);
+    void notifyUndoEvent(XML::Event* log);
+    void notifyRedoEvent(XML::Event* log);
+    void notifyUndoCommitEvent(XML::Event* log);
 
 };
 }