summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c57da20)
raw | patch | inline | side by side (parent: c57da20)
author | dwyip <dwyip@users.sourceforge.net> | |
Thu, 29 Jun 2006 21:39:57 +0000 (21:39 +0000) | ||
committer | dwyip <dwyip@users.sourceforge.net> | |
Thu, 29 Jun 2006 21:39:57 +0000 (21:39 +0000) |
index 04890711ba461e9bca04a49eaa5e5330729dfb21..3c46cb11e1ef0a8cf8d9966db156f42cdc23a930 100644 (file)
}
void
-CompositeUndoStackObserver::notifyUndoEvent(XML::Event* log)
+CompositeUndoStackObserver::notifyUndoEvent(Event* log)
{
this->_lock();
for(UndoObserverRecordList::iterator i = this->_active.begin(); i != _active.end(); ++i) {
}
void
-CompositeUndoStackObserver::notifyRedoEvent(XML::Event* log)
+CompositeUndoStackObserver::notifyRedoEvent(Event* log)
{
this->_lock();
}
void
-CompositeUndoStackObserver::notifyUndoCommitEvent(XML::Event* log)
+CompositeUndoStackObserver::notifyUndoCommitEvent(Event* log)
{
this->_lock();
for(UndoObserverRecordList::iterator i = this->_active.begin(); i != _active.end(); ++i) {
index fbe0ed892cf20cbb041cf67da9a48e12dea036d0..02d54eb7693415fc361ba199f18abc1cddbf4e0a 100644 (file)
namespace Inkscape {
-namespace XML {
-
class Event;
-}
-
/**
* Aggregates UndoStackObservers for management and triggering in an SPDocument's undo/redo
* system.
*
* \param log The event log generated by the redo event.
*/
- void issueRedo(XML::Event* log)
+ void issueRedo(Event* log)
{
this->_observer.notifyRedoEvent(log);
}
*
* \param log The event log generated by the undo event.
*/
- void issueUndo(XML::Event* log)
+ void issueUndo(Event* log)
{
this->_observer.notifyUndoEvent(log);
}
*
* \param log The event log being committed to the undo stack.
*/
- void issueUndoCommit(XML::Event* log)
+ void issueUndoCommit(Event* log)
{
this->_observer.notifyUndoCommitEvent(log);
}
*
* \param log The event log generated by the undo event.
*/
- void notifyUndoEvent(XML::Event* log);
+ void notifyUndoEvent(Event* log);
/**
* Notify all registered UndoStackObservers of a redo event.
*
* \param log The event log generated by the redo event.
*/
- void notifyRedoEvent(XML::Event* log);
+ void notifyRedoEvent(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(XML::Event* log);
+ void notifyUndoCommitEvent(Event* log);
private:
// Remove an observer from a given list
index c90925b180dad030356d9675e727f0b80fcbe2ef..7035e89feb1fb7450b2cabc7915ecaa2eb9d30fd 100644 (file)
namespace Inkscape {
void
-ConsoleOutputUndoObserver::notifyUndoEvent(XML::Event* log)
+ConsoleOutputUndoObserver::notifyUndoEvent(Event* log)
{
// g_message("notifyUndoEvent (sp_document_undo) called; log=%p\n", log->event);
}
void
-ConsoleOutputUndoObserver::notifyRedoEvent(XML::Event* log)
+ConsoleOutputUndoObserver::notifyRedoEvent(Event* log)
{
// g_message("notifyRedoEvent (sp_document_redo) called; log=%p\n", log->event);
}
void
-ConsoleOutputUndoObserver::notifyUndoCommitEvent(XML::Event* log)
+ConsoleOutputUndoObserver::notifyUndoCommitEvent(Event* log)
{
//g_message("notifyUndoCommitEvent (sp_document_maybe_done) called; log=%p\n", log->event);
}
index 7f121dbcebf608fb795c4a537bcfcad1bce853aa..32149c15dc012b13b83d5d68e2897938826a11ee 100644 (file)
ConsoleOutputUndoObserver() : UndoStackObserver() { }
~ConsoleOutputUndoObserver() { }
- void notifyUndoEvent(XML::Event* log);
- void notifyRedoEvent(XML::Event* log);
- void notifyUndoCommitEvent(XML::Event* log);
+ void notifyUndoEvent(Event* log);
+ void notifyRedoEvent(Event* log);
+ void notifyUndoCommitEvent(Event* log);
};
}
index f88c63e6254ffd0dffa324dfbec80d57f28bfb79..cd17c467575ca2415c89d0fb8d5db2b78658c3fc 100644 (file)
namespace Inkscape {
-namespace XML {
-
class Event;
-}
-
/**
* Observes changes made to the undo and redo stacks.
*
*
* \param log Pointer to an Event describing the undone event.
*/
- virtual void notifyUndoEvent(XML::Event* log) = 0;
+ virtual void notifyUndoEvent(Event* log) = 0;
/**
* Triggered when the user issues a redo command.
*
* \param log Pointer to an Event describing the redone event.
*/
- virtual void notifyRedoEvent(XML::Event* log) = 0;
+ virtual void notifyRedoEvent(Event* log) = 0;
/**
* Triggered when a set of transactions is committed to the undo log.
*
* \param log Pointer to an Event describing the committed events.
*/
- virtual void notifyUndoCommitEvent(XML::Event* log) = 0;
+ virtual void notifyUndoCommitEvent(Event* log) = 0;
};
}