summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/inkscape-preferences.cpp
diff options
context:
space:
mode:
authorJosh Andler <scislac@gmail.com>2010-02-04 19:50:48 +0000
committerJosh Andler <scislac@gmail.com>2010-02-04 19:50:48 +0000
commit779b0933f576cf50448395aa32c1cb65edf590ff (patch)
tree3eebeb213e5ff508e8e96cc6df6dd69c1450658a /src/ui/dialog/inkscape-preferences.cpp
parentTutorials. Fix for a bug in the tracing tutorials. (diff)
downloadinkscape-779b0933f576cf50448395aa32c1cb65edf590ff.tar.gz
inkscape-779b0933f576cf50448395aa32c1cb65edf590ff.zip
Patch by Martin Sucha to add preferences to for grouping on Clip/Mask
(bzr r9050)
Diffstat (limited to 'src/ui/dialog/inkscape-preferences.cpp')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index 961c7dff7..b2257a3fe 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -668,6 +668,28 @@ void InkscapePreferences::initPageMasks()
_mask_mask_remove.init ( _("Remove clippath/mask object after applying"), "/options/maskobject/remove", true);
_page_mask.add_line(true, "", _mask_mask_remove, "",
_("After applying, remove the object used as the clipping path or mask from the drawing"));
+
+ _page_mask.add_group_header( _("Before applying clippath/mask:"));
+
+ _mask_grouping_none.init( _("Do not group clipped/masked objects"), "/options/maskobject/grouping", PREFS_MASKOBJECT_GROUPING_NONE, true, 0);
+ _mask_grouping_separate.init( _("Enclose every clipped/masked object in its own group"), "/options/maskobject/grouping", PREFS_MASKOBJECT_GROUPING_SEPARATE, false, &_mask_grouping_none);
+ _mask_grouping_all.init( _("Put all clipped/masked objects into one group"), "/options/maskobject/grouping", PREFS_MASKOBJECT_GROUPING_ALL, false, &_mask_grouping_none);
+
+ _page_mask.add_line(true, "", _mask_grouping_none, "",
+ _("Apply clippath/mask to every object"));
+
+ _page_mask.add_line(true, "", _mask_grouping_separate, "",
+ _("Apply clippath/mask to groups containing single object"));
+
+ _page_mask.add_line(true, "", _mask_grouping_all, "",
+ _("Apply clippath/mask to group containing all objects"));
+
+ _page_mask.add_group_header( _("After releasing clippath/mask:"));
+
+ _mask_ungrouping.init ( _("Ungroup automatically created groups"), "/options/maskobject/ungrouping", true);
+ _page_mask.add_line(true, "", _mask_ungrouping, "",
+ _("Ungroup groups created when setting clip/mask"));
+
this->AddPage(_page_mask, _("Clippaths and masks"), PREFS_PAGE_MASKS);
}