From 76a671d747eb5ae4d5996c68399324b0fc86dd6f Mon Sep 17 00:00:00 2001 From: buliabyak Date: Fri, 30 Jun 2006 03:54:42 +0000 Subject: [PATCH] undo annotations --- src/seltrans.cpp | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/seltrans.cpp b/src/seltrans.cpp index 3f40103e7..9a648e2ef 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -224,7 +224,7 @@ void Inkscape::SelTrans::setCenter(NR::Point const &p) SP_OBJECT(it)->updateRepr(); } sp_document_maybe_done (sp_desktop_document(_desktop), "center::move", SP_VERB_CONTEXT_SELECT, - /* TODO: annotate */ "seltrans.cpp:227"); + _("Set center")); _updateHandles(); } @@ -342,8 +342,20 @@ void Inkscape::SelTrans::ungrab() } } - sp_document_done(sp_desktop_document(_desktop), SP_VERB_CONTEXT_SELECT, - /* TODO: annotate */ "seltrans.cpp:346"); + if (_current.is_translation()) { + sp_document_done(sp_desktop_document(_desktop), SP_VERB_CONTEXT_SELECT, + _("Move")); + } else if (_current.is_scale()) { + sp_document_done(sp_desktop_document(_desktop), SP_VERB_CONTEXT_SELECT, + _("Scale")); + } else if (_current.is_rotation()) { + sp_document_done(sp_desktop_document(_desktop), SP_VERB_CONTEXT_SELECT, + _("Rotate")); + } else { + sp_document_done(sp_desktop_document(_desktop), SP_VERB_CONTEXT_SELECT, + _("Skew")); + } + updh = false; } @@ -440,7 +452,7 @@ void Inkscape::SelTrans::stamp() l = l->next; } sp_document_done(sp_desktop_document(_desktop), SP_VERB_CONTEXT_SELECT, - /* TODO: annotate */ "seltrans.cpp:443"); + _("Stamp")); } if ( fixup && _stamp_cache ) { @@ -626,7 +638,7 @@ void Inkscape::SelTrans::handleClick(SPKnot *knot, guint state, SPSelTransHandle _updateHandles(); } sp_document_maybe_done (sp_desktop_document(_desktop), "center::unset", SP_VERB_CONTEXT_SELECT, - /* TODO: annotate */ "seltrans.cpp:629"); + _("Reset center")); } break; default: -- 2.30.2