Inkscape
Vector Graphics Editor
|
RAII-style mechanism for creating a temporary undo-insensitive context. More...
#include <document-undo.h>
Public Member Functions | |
ScopedInsensitive (SPDocument *doc) | |
~ScopedInsensitive () | |
Private Attributes | |
SPDocument * | m_doc |
bool | m_saved |
RAII-style mechanism for creating a temporary undo-insensitive context.
{ DocumentUndo::ScopedInsensitive tmp(document); ... do stuff ... // "tmp" goes out of scope here and automatically restores undo-sensitivity }
Definition at line 74 of file document-undo.h.
|
inline |
Definition at line 79 of file document-undo.h.
References Inkscape::DocumentUndo::getUndoSensitive(), m_saved, and Inkscape::DocumentUndo::setUndoSensitive().
|
inline |
Definition at line 85 of file document-undo.h.
References m_doc, m_saved, and Inkscape::DocumentUndo::setUndoSensitive().
|
private |
Definition at line 75 of file document-undo.h.
Referenced by ~ScopedInsensitive().
|
private |
Definition at line 76 of file document-undo.h.
Referenced by ScopedInsensitive(), and ~ScopedInsensitive().