Lines Matching defs:undo
16 * undo implementation. Whenever mutation occurs in the XML tree,
21 * events, which are all kept and processed together in the undo
28 * Both move the recent action list into the undo stack and clear the
36 * For controls implemented by Sodipodi itself, implementing undo as a
41 * generate undo actions either. Only at the release phase (normally
43 * to the XML tree, thus generating only a single set of undo actions.
52 #include "document-undo.h"
146 g_warning("Blank undo key specified.");
165 if (key && !doc->actionkey.empty() && (doc->actionkey == key) && !doc->priv->undo.empty()) {
166 (doc->priv->undo.back())->event =
167 sp_repr_coalesce_log ((doc->priv->undo.back())->event, log);
170 doc->priv->undo.push_back(event);
210 g_warning ("Incomplete undo transaction:");
214 priv.undo.push_back(event);
226 g_warning("Document was modified while being updated after undo operation");
230 if (!doc.priv->undo.empty()) {
231 Inkscape::Event* undo_stack_top = doc.priv->undo.back();
239 gboolean Inkscape::DocumentUndo::undo(SPDocument *doc)
246 EventTracker<SimpleEvent<Inkscape::Debug::Event::DOCUMENT> > tracker("undo");
259 if (! doc->priv->undo.empty()) {
260 Inkscape::Event *log = doc->priv->undo.back();
261 doc->priv->undo.pop_back();
310 doc->priv->undo.push_back(log);
333 if (! doc->priv->undo.empty())
335 while (! doc->priv->undo.empty()) {
336 Inkscape::Event *e = doc->priv->undo.back();
337 doc->priv->undo.pop_back();