summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c069fe7)
raw | patch | inline | side by side (parent: c069fe7)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 25 Jan 2008 21:23:44 +0000 (21:23 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 25 Jan 2008 21:23:44 +0000 (21:23 +0000) |
src/dialogs/guidelinedialog.cpp | patch | blob | history | |
src/sp-guide.cpp | patch | blob | history |
index f8780bddac65f8017a1ddda53a287f9ad2c4e248..921924b65e392d3d58a73189dbfa4fbb03d8e719 100644 (file)
GuidelinePropertiesDialog::GuidelinePropertiesDialog(SPGuide *guide, SPDesktop *desktop)
: _desktop(desktop), _guide(guide),
- _label_units(_("Measure unit:")),
+ _label_units(_("Unit:")),
_label_X(_("X:")),
_label_Y(_("Y:")),
- _label_degrees(_("Degrees:")),
- _relative_toggle(_("Rela_tive change"), _("Move and rotate guide relative to current settings")),
+ _label_degrees(_("Angle (degrees):")),
+ _relative_toggle(_("Rela_tive change"), _("Move and/or rotate the guide relative to current settings")),
_adjustment_x(0.0, -SP_DESKTOP_SCROLL_LIMIT, SP_DESKTOP_SCROLL_LIMIT, 1.0, 10.0, 10.0),
_adjustment_y(0.0, -SP_DESKTOP_SCROLL_LIMIT, SP_DESKTOP_SCROLL_LIMIT, 1.0, 10.0, 10.0),
_adj_angle(0.0, -SP_DESKTOP_SCROLL_LIMIT, SP_DESKTOP_SCROLL_LIMIT, 1.0, 10.0, 10.0),
_spin_button_y.configure(_adjustment_y, 1.0 , 3);
_spin_button_y.set_numeric();
_layout_table.attach(_label_X,
- 1, 2, 5, 6, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);
+ 1, 2, 4, 5, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);
_layout_table.attach(_spin_button_x,
- 2, 3, 5, 6, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);
+ 2, 3, 4, 5, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);
_layout_table.attach(_label_Y,
- 1, 2, 6, 7, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);
+ 1, 2, 5, 6, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);
_layout_table.attach(_spin_button_y,
- 2, 3, 6, 7, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);
+ 2, 3, 5, 6, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);
gtk_signal_connect_object(GTK_OBJECT(_spin_button_x.gobj()), "activate",
GTK_SIGNAL_FUNC(gtk_window_activate_default),
gobj());
_layout_table.attach(_label_units,
- 1, 2, 4, 5, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);
+ 1, 2, 6, 7, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);
_layout_table.attach(*_unit_selector,
- 2, 3, 4, 5, Gtk::FILL, Gtk::FILL);
+ 2, 3, 6, 7, Gtk::FILL, Gtk::FILL);
// angle spinbutton
_spin_angle.configure(_adj_angle, 5.0 , 3);
{
Inkscape::XML::Node *repr = SP_OBJECT_REPR (_guide);
const gchar *guide_id = repr->attribute("id");
- gchar *label = g_strdup_printf(_("Guideline: %s"), guide_id);
+ gchar *label = g_strdup_printf(_("Guideline ID: %s"), guide_id);
_label_name.set_label(label);
g_free(label);
}
{
gchar *guide_description = sp_guide_description(_guide);
- gchar *label = g_strdup_printf(_("Current settings: %s"), guide_description);
+ gchar *label = g_strdup_printf(_("Current: %s"), guide_description);
g_free(guide_description);
_label_descr.set_label(label);
g_free(label);
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp
index 68e322178d26c108e16510828ced53689b592ee6..9af5f9f021fd4a294d77b505daa970082080bde3 100644 (file)
--- a/src/sp-guide.cpp
+++ b/src/sp-guide.cpp
GString *position_string_y = SP_PX_TO_METRIC_STRING(guide->point_on_line[Y], SP_ACTIVE_DESKTOP->namedview->getDefaultMetric());
if ( guide->normal_to_line == component_vectors[X] ) {
- return g_strdup_printf(_("vertical guideline at %s"), position_string_x->str);
+ return g_strdup_printf(_("vertical, at %s"), position_string_x->str);
} else if ( guide->normal_to_line == component_vectors[Y] ) {
- return g_strdup_printf(_("horizontal guideline at %s"), position_string_y->str);
+ return g_strdup_printf(_("horizontal, at %s"), position_string_y->str);
} 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("%d degree guideline at (%s,%s)", degrees_int, position_string_x->str, position_string_y->str);
- /* Alternative suggestion: "angled guideline". */
+ return g_strdup_printf(_("at %d degrees, through (%s,%s)"), degrees_int, position_string_x->str, position_string_y->str);
}
g_string_free(position_string_x, TRUE);