X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdocument-private.h;h=fa4754248f082b84ff2eea883dd0bec593da7977;hb=59ce7a44179e0b794fd92050d79aab7450d8688a;hp=549a4530f49985a752cc6a69f33ac18987afb3da;hpb=c73fd7fd8d1713c95ecf111e49dd068d4b9adf69;p=inkscape.git diff --git a/src/document-private.h b/src/document-private.h index 549a4530f..fa4754248 100644 --- a/src/document-private.h +++ b/src/document-private.h @@ -22,6 +22,8 @@ #include "composite-undo-stack-observer.h" +#include "event-log.h" + // XXX only for testing! #include "console-output-undo-observer.h" @@ -41,6 +43,8 @@ struct SPDocumentPrivate { GHashTable *iddef; /**< Dictionary of id -> SPObject mappings */ GHashTable *reprdef; /**< Dictionary of Inkscape::XML::Node -> SPObject mappings */ + unsigned long serial; + /** Dictionary of signals for id changes */ IDChangedSignalMap id_changed_signals; @@ -54,9 +58,10 @@ struct SPDocumentPrivate { SPDocument::ResizedSignal resized_signal; SPDocument::ReconstructionStart _reconstruction_start_signal; SPDocument::ReconstructionFinish _reconstruction_finish_signal; + SPDocument::CommitSignal commit_signal; /* Undo/Redo state */ - guint sensitive: 1; /* If we save actions to undo stack */ + bool sensitive: true; /* If we save actions to undo stack */ Inkscape::XML::Event * partial; /* partial undo log when interrupted */ int history_size; GSList * undo; /* Undo stack of reprs */ @@ -67,6 +72,8 @@ struct SPDocumentPrivate { // XXX only for testing! Inkscape::ConsoleOutputUndoObserver console_output_undo_observer; + + bool seeking; }; #endif