diff options
| author | bulia byak <buliabyak@gmail.com> | 2009-06-22 21:17:09 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2009-06-22 21:17:09 +0000 |
| commit | ff251d9d8fda02f567a66069fbfbfca764b4e310 (patch) | |
| tree | fa4658b7cc22a4649295c7ef4c342c0a0e8d369d /src/sp-guide.cpp | |
| parent | Absolute path fix for bug 386664 (diff) | |
| download | inkscape-ff251d9d8fda02f567a66069fbfbfca764b4e310.tar.gz inkscape-ff251d9d8fda02f567a66069fbfbfca764b4e310.zip | |
more detailed shortcut info
(bzr r8141)
Diffstat (limited to 'src/sp-guide.cpp')
| -rw-r--r-- | src/sp-guide.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp index 43d04e4d0..e6983a681 100644 --- a/src/sp-guide.cpp +++ b/src/sp-guide.cpp @@ -415,17 +415,20 @@ char *sp_guide_description(SPGuide const *guide) GString *position_string_x = SP_PX_TO_METRIC_STRING(guide->point_on_line[X], SP_ACTIVE_DESKTOP->namedview->getDefaultMetric()); GString *position_string_y = SP_PX_TO_METRIC_STRING(guide->point_on_line[Y], SP_ACTIVE_DESKTOP->namedview->getDefaultMetric()); + const gchar *shortcuts = _("<b>drag</b> to move, <b>Shift+drag</b> to rotate, <b>Ctrl</b>+click to delete"); + if ( are_near(guide->normal_to_line, component_vectors[X]) || are_near(guide->normal_to_line, -component_vectors[X]) ) { - return g_strdup_printf(_("vertical, at %s"), position_string_x->str); + return g_strdup_printf(_("vertical, at %s; %s"), position_string_x->str, shortcuts); } else if ( are_near(guide->normal_to_line, component_vectors[Y]) || are_near(guide->normal_to_line, -component_vectors[Y]) ) { - return g_strdup_printf(_("horizontal, at %s"), position_string_y->str); + return g_strdup_printf(_("horizontal, at %s; %s"), position_string_y->str, shortcuts); } else { double const radians = guide->angle(); double const degrees = Geom::rad_to_deg(radians); int const degrees_int = (int) round(degrees); - return g_strdup_printf(_("at %d degrees, through (%s,%s); <b>Ctrl</b>+click to delete"), degrees_int, position_string_x->str, position_string_y->str); + return g_strdup_printf(_("at %d degrees, through (%s,%s); %s"), + degrees_int, position_string_x->str, position_string_y->str, shortcuts); } g_string_free(position_string_x, TRUE); |
