summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorgustav_b <gustav_b@users.sourceforge.net>2006-07-10 08:00:14 +0000
committergustav_b <gustav_b@users.sourceforge.net>2006-07-10 08:00:14 +0000
commit7c9faac1420255182e4306743a275c5633377d39 (patch)
tree437ccb5b2a629d122846efa0f6edd960620be991 /src/verbs.cpp
parentfinally getting closer to processing axes and contexts correctly (diff)
downloadinkscape-7c9faac1420255182e4306743a275c5633377d39.tar.gz
inkscape-7c9faac1420255182e4306743a275c5633377d39.zip
undo annotations
(bzr r1390)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 5b740b215..0a22cc108 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1147,18 +1147,26 @@ LayerVerb::perform(SPAction *action, void *data, void *pdata)
if ( SP_OBJECT_NEXT(layer) != old_pos ) {
char const *message = NULL;
+ Glib::ustring description = "";
switch (verb) {
case SP_VERB_LAYER_TO_TOP:
+ message = g_strdup_printf(_("Raised layer <b>%s</b>."), layer->defaultLabel());
+ description = _("Layer to Top");
+ break;
case SP_VERB_LAYER_RAISE:
message = g_strdup_printf(_("Raised layer <b>%s</b>."), layer->defaultLabel());
+ description = _("Raise Layer");
break;
case SP_VERB_LAYER_TO_BOTTOM:
+ message = g_strdup_printf(_("Lowered layer <b>%s</b>."), layer->defaultLabel());
+ description = _("Layer to Bottom");
+ break;
case SP_VERB_LAYER_LOWER:
message = g_strdup_printf(_("Lowered layer <b>%s</b>."), layer->defaultLabel());
+ description = _("Lower Layer");
break;
};
- sp_document_done(sp_desktop_document(dt), SP_VERB_LAYER_LOWER,
- /* TODO: annotate */ "verbs.cpp:1146");
+ sp_document_done(sp_desktop_document(dt), verb, description);
if (message) {
dt->messageStack()->flash(Inkscape::NORMAL_MESSAGE, message);
g_free((void *) message);
@@ -1192,7 +1200,7 @@ LayerVerb::perform(SPAction *action, void *data, void *pdata)
}
sp_document_done(sp_desktop_document(dt), SP_VERB_LAYER_DELETE,
- /* TODO: annotate */ "verbs.cpp:1180");
+ _("Delete layer"));
// TRANSLATORS: this means "The layer has been deleted."
dt->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Deleted layer."));
@@ -1252,7 +1260,7 @@ ObjectVerb::perform( SPAction *action, void *data, void *pdata )
sp_selection_scale_relative(sel, center, NR::scale(-1.0, 1.0));
}
sp_document_done(sp_desktop_document(dt), SP_VERB_OBJECT_FLIP_HORIZONTAL,
- /* TODO: annotate */ "verbs.cpp:1240");
+ _("Flip horizontally"));
break;
case SP_VERB_OBJECT_FLIP_VERTICAL:
if (tools_isactive(dt, TOOLS_NODES)) {
@@ -1261,7 +1269,7 @@ ObjectVerb::perform( SPAction *action, void *data, void *pdata )
sp_selection_scale_relative(sel, center, NR::scale(1.0, -1.0));
}
sp_document_done(sp_desktop_document(dt), SP_VERB_OBJECT_FLIP_VERTICAL,
- /* TODO: annotate */ "verbs.cpp:1249");
+ _("Flip vertically"));
break;
case SP_VERB_OBJECT_SET_MASK:
sp_selection_set_mask(false, false);