Code

undo annotations
authorgustav_b <gustav_b@users.sourceforge.net>
Mon, 10 Jul 2006 08:00:14 +0000 (08:00 +0000)
committergustav_b <gustav_b@users.sourceforge.net>
Mon, 10 Jul 2006 08:00:14 +0000 (08:00 +0000)
src/path-chemistry.cpp
src/verbs.cpp

index c897658ff7b6651c44137b5ed7d4135fcf00533f..0c35020b775e10141f2867be5b0503ca219535df 100644 (file)
@@ -297,7 +297,7 @@ sp_selected_path_to_curves0(gboolean interactive, guint32 text_grouping_policy)
     if (interactive) {
         if (did) {
             sp_document_done(sp_desktop_document(desktop), SP_VERB_OBJECT_TO_CURVE, 
-                             /* TODO: annotate */ "path-chemistry.cpp:300");
+                             _("Object to Path"));
         } else {
             sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("<b>No objects</b> to convert to path in the selection."));
             return;
index 5b740b2158c4149e4bb27ce9eb32481fbd6c93a8..0a22cc1081ee988b4a30d53856de589332c29f9e 100644 (file)
@@ -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);