summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 61e2d27)
raw | patch | inline | side by side (parent: 61e2d27)
author | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 19 Mar 2008 13:10:47 +0000 (13:10 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 19 Mar 2008 13:10:47 +0000 (13:10 +0000) |
src/selection-chemistry.cpp | patch | blob | history | |
src/ui/dialog/inkscape-preferences.cpp | patch | blob | history | |
src/ui/dialog/inkscape-preferences.h | patch | blob | history |
index 501f334a2c103a4f887257e82a9d070e85cf4740..81af6512aee7f42df749e874e8b44035a6510235 100644 (file)
_("Objects to marker"));
}
-static void sp_selection_to_guides_recursive(SPItem *item, bool deleteitem) {
- if (SP_IS_GROUP(item) && !SP_IS_BOX3D(item)) {
+static void sp_selection_to_guides_recursive(SPItem *item, bool deleteitem, bool wholegroups) {
+ if (SP_IS_GROUP(item) && !SP_IS_BOX3D(item) && !wholegroups) {
for (GSList *i = sp_item_group_item_list (SP_GROUP(item)); i != NULL; i = i->next) {
- sp_selection_to_guides_recursive(SP_ITEM(i->data), deleteitem);
+ sp_selection_to_guides_recursive(SP_ITEM(i->data), deleteitem, wholegroups);
}
} else {
sp_item_convert_item_to_guides(item);
}
bool deleteitem = (prefs_get_int_attribute("tools", "cvg_keep_objects", 0) == 0);
+ bool wholegroups = (prefs_get_int_attribute("tools", "cvg_convert_whole_groups", 0) != 0);
for (GSList const *i = items; i != NULL; i = i->next) {
- sp_selection_to_guides_recursive(SP_ITEM(i->data), deleteitem);
+ sp_selection_to_guides_recursive(SP_ITEM(i->data), deleteitem, wholegroups);
}
sp_document_done (doc, SP_VERB_EDIT_SELECTION_2_GUIDES, _("Objects to guides"));
index 453d3812a0b2d067f85981767888caec10fc1c98..7819faf710639184f4d473f232c818bb64b5b631 100644 (file)
_t_cvg_keep_objects.init ( _("Keep objects after conversion to guides"), "tools", "cvg_keep_objects", false);
_page_tools.add_line( true, "", _t_cvg_keep_objects, "",
_("When converting an object to guides, don't delete the object after the conversion."));
+ _t_cvg_convert_whole_groups.init ( _("Treat groups as a single object"), "tools", "cvg_convert_whole_groups", false);
+ _page_tools.add_line( true, "", _t_cvg_convert_whole_groups, "",
+ _("Treat groups as a single object during conversion to guides rather than converting each child separately."));
_calligrapy_use_abs_size.init ( _("Width is in absolute units"), "tools.calligraphic", "abs_width", false);
_calligrapy_keep_selected.init ( _("Select new path"), "tools.calligraphic", "keep_selected", true);
index 72afe1b3a5092f16de22f9eaccbbfb231cdb2f7c..08dbcedf93266a2c7b27a3906171ab7c23c3d456 100644 (file)
PrefRadioButton _t_sel_trans_obj, _t_sel_trans_outl, _t_sel_cue_none, _t_sel_cue_mark,
_t_sel_cue_box, _t_bbox_visual, _t_bbox_geometric;
- PrefCheckButton _t_cvg_keep_objects;
+ PrefCheckButton _t_cvg_keep_objects, _t_cvg_convert_whole_groups;
PrefCheckButton _t_node_pathflash_enabled;
PrefSpinButton _t_node_pathflash_timeout;
PrefColorPicker _t_node_pathoutline_color;