summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f3be110)
raw | patch | inline | side by side (parent: f3be110)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 11 Oct 2007 16:40:24 +0000 (16:40 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 11 Oct 2007 16:40:24 +0000 (16:40 +0000) |
index 486d38167f5e0e55bdbe8ff10aec94f8725f3718..37b50eca019205c07945ca0a50e7622bb449b5bd 100644 (file)
#include "svg/svg.h"
#include "svg/svg-color.h"
#include "svg/css-ostringstream.h"
+#include "prefs-utils.h"
// Terminology:
SPGradient *
sp_gradient_fork_vector_if_necessary (SPGradient *gr)
{
+ // Some people actually prefer their gradient vectors to be shared...
+ if (prefs_get_int_attribute("options.forkgradientvectors", "value", 1) == 0)
+ return gr;
+
if (SP_OBJECT_HREFCOUNT(gr) > 1) {
SPDocument *doc = SP_OBJECT_DOCUMENT(gr);
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(doc);
index 4c7616495923c4b9a20a7320210c2d82fc6eda64..ca9988494e56cf85c97707dc54527b24079ea95a 100644 (file)
" clips=\"16711935\"" // 00ff00ff
" masks=\"65535\"/>\n" // 0x0000ffff
" <group id=\"svgoutput\" usenamedcolors=\"0\" numericprecision=\"8\" minimumexponent=\"-8\" inlineattrs=\"0\" indent=\"2\"/>\n"
+" <group id=\"forkgradientvectors\" value=\"1\"/>\n"
" </group>\n"
"\n"
" <group id=\"extensions\">"
index 2510825d0f95802cf55ccd98821849601ae9fdf1..ccc41a0a317bc022c8729df9c19a34a9d9903907 100644 (file)
_page_misc.add_line( false, "", _misc_comment, "",
_("When on, a comment will be added to the raw print output, marking the rendered output for an object with its label"), true);
+ _misc_forkvectors.init( _("Prevent sharing of gradient definitions"), "options.forkgradientvectors", "value", true);
+ _page_misc.add_line( false, "", _misc_forkvectors, "",
+ _("When on, shared gradient definitions are automatically forked on change; uncheck to allow sharing of gradient definitions so that editing one object may affect other objects using the same gradient"), true);
+
+ _page_misc.add_line( false, _("Simplification threshold:"), _misc_simpl, "",
+ _("How strong is the Simplify command by default. If you invoke this command several times in quick succession, it will act more and more aggressively; invoking it again after a pause restores the default threshold."), false);
+ int const num_items = 5;
+ Glib::ustring labels[num_items] = {_("None"), _("2x2"), _("4x4"), _("8x8"), _("16x16")};
+ int values[num_items] = {0, 1, 2, 3, 4};
+ _misc_overs_bitmap.set_size_request(_sb_width);
+ _misc_overs_bitmap.init("options.bitmapoversample", "value", labels, values, num_items, 1);
+ _page_misc.add_line( false, _("Oversample bitmaps:"), _misc_overs_bitmap, "", "", false);
+
+
+ // consider moving this to an UI tab:
_misc_small_toolbar.init( _("Make commands toolbar smaller"), "toolbox", "small", true);
_page_misc.add_line( false, "", _misc_small_toolbar, "",
_("Make the commands toolbar use the 'secondary' toolbar size (requires restart)"), true);
_page_misc.add_line( false, _("Max recent documents:"), _misc_recent, "",
_("The maximum length of the Open Recent list in the File menu"), false);
_misc_simpl.init("options.simplifythreshold", "value", 0.0001, 1.0, 0.0001, 0.0010, 0.0010, false, false);
- _page_misc.add_line( false, _("Simplification threshold:"), _misc_simpl, "",
- _("How strong is the Simplify command by default. If you invoke this command several times in quick succession, it will act more and more aggressively; invoking it again after a pause restores the default threshold."), false);
- int const num_items = 5;
- Glib::ustring labels[num_items] = {_("None"), _("2x2"), _("4x4"), _("8x8"), _("16x16")};
- int values[num_items] = {0, 1, 2, 3, 4};
- _misc_overs_bitmap.set_size_request(_sb_width);
- _misc_overs_bitmap.init("options.bitmapoversample", "value", labels, values, num_items, 1);
- _page_misc.add_line( false, _("Oversample bitmaps:"), _misc_overs_bitmap, "", "", false);
this->AddPage(_page_misc, _("Misc"), PREFS_PAGE_MISC);
}
index 7aadb3399f89eefe7f28954cccf8bf17cdc361ff..a6da63617d3cba7145fc912450e607e58163acbc 100644 (file)
PrefCheckButton _sel_layer_deselects;
PrefSpinButton _importexport_export, _misc_recent, _misc_simpl;
- PrefCheckButton _misc_comment, _misc_scripts;
+ PrefCheckButton _misc_comment, _misc_forkvectors, _misc_scripts;
PrefCheckButton _misc_small_toolbar;
PrefCheckButton _misc_small_tools;
PrefCombo _misc_overs_bitmap;