Code

quick g_message UndoStackObserver for tracing calls to the undo system
[inkscape.git] / src / console-output-undo-observer.h
1 /**
2  * Inkscape::ConsoleOutputUndoObserver - observer for tracing calls to
3  * sp_document_undo, sp_document_redo, sp_document_maybe_done
4  *
5  * Authors:
6  * David Yip <yipdw@alumni.rose-hulman.edu>
7  *
8  * Copyright (c) 2006 Authors
9  *
10  * Released under GNU GPL, see the file 'COPYING' for more information
11  */
13 #ifndef __INKSCAPE_CONSOLE_OUTPUT_UNDO_OBSERVER_H__
14 #define __INKSCAPE_CONSOLE_OUTPUT_UNDO_OBSERVER_H__
16 #include "undo-stack-observer.h"
18 namespace Inkscape {
20 namespace XML {
22 class Event;
24 }
26 class ConsoleOutputUndoObserver : public UndoStackObserver {
27 public:
28         ConsoleOutputUndoObserver() : UndoStackObserver() { }
29         ~ConsoleOutputUndoObserver() { }
31         void notifyUndoEvent(XML::Event* log);
32         void notifyRedoEvent(XML::Event* log);
33         void notifyUndoCommitEvent(XML::Event* log);
35 };
37 }
39 #endif
41 /*
42   Local Variables:
43   mode:c++
44   c-file-style:"stroustrup"
45   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
46   indent-tabs-mode:nil
47   fill-column:99
48   End:
49 */
50 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :