summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6926d8b)
raw | patch | inline | side by side (parent: 6926d8b)
author | scislac <scislac@users.sourceforge.net> | |
Mon, 4 Sep 2006 15:51:05 +0000 (15:51 +0000) | ||
committer | scislac <scislac@users.sourceforge.net> | |
Mon, 4 Sep 2006 15:51:05 +0000 (15:51 +0000) |
src/widgets/toolbox.cpp | patch | blob | history |
index ed9259aef9b93d340e37f0124c0f5b859dbe2733..13b731c79eb571d6f9a172187c9135cfe072f95a 100644 (file)
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
spinbutton_defocus(GTK_OBJECT(tbl));
}
+static void
+sp_ddc_cap_rounding_value_changed(GtkAdjustment *adj, GtkWidget *tbl)
+{
+ prefs_set_double_attribute("tools.calligraphic", "cap_rounding", adj->value);
+ spinbutton_defocus(GTK_OBJECT(tbl));
+}
+
static void
sp_ddc_pressure_state_changed(GtkWidget *button, gpointer data)
{
{"width", 15},
{"thinning", 0.1},
{"tremor", 0.0},
- {"flatness", 0.9}
+ {"flatness", 0.9},
+ {"cap_rounding", 0.0}
};
for (unsigned i = 0; i < G_N_ELEMENTS(key_values); ++i) {
sp_ddc_tremor_value_changed, 0.01, 2);
gtk_box_pack_start(GTK_BOX(tbl), hb, FALSE, FALSE, AUX_SPACING);
}
+
/* Mass */
{
GtkWidget *hb = sp_tb_spinbutton(_("Mass:"), _("How much inertia affects the movement of the pen"),
gtk_box_pack_start(GTK_BOX(tbl), hb, FALSE, FALSE, AUX_SPACING);
}
+ /* Cap Rounding */
+ {
+ // TRANSLATORS: "cap" means "end" (both start and finish) here
+ GtkWidget *hb = sp_tb_spinbutton(_("Round:"), _("How much the ends of a stroke are rounded"),
+ "tools.calligraphic", "cap_rounding", 1,
+ NULL, tbl, FALSE, NULL,
+ 0.0, 1.0, 0.01, 0.1,
+ sp_ddc_cap_rounding_value_changed, 0.01, 2);
+ gtk_box_pack_start(GTK_BOX(tbl), hb, FALSE, FALSE, AUX_SPACING);
+ }
+
// interval
gtk_box_pack_start(GTK_BOX(tbl), gtk_hbox_new(FALSE, 0), FALSE, FALSE, AUX_BETWEEN_BUTTON_GROUPS);