summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-03-19 23:19:10 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-03-19 23:19:10 +0000
commit56203e13823d18965321e46218f4d2995287383d (patch)
tree608ea929af1aafc1b820344662881ed52ea34966 /src/ui
parentrestore broken ngettext (diff)
downloadinkscape-56203e13823d18965321e46218f4d2995287383d.tar.gz
inkscape-56203e13823d18965321e46218f4d2995287383d.zip
patch by Andrius R. for (un)clip and (un)mask commands
(bzr r263)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp8
-rw-r--r--src/ui/dialog/inkscape-preferences.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index 54977ac05..b90ed8d98 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -511,6 +511,14 @@ void InkscapePreferences::initPageMisc()
_misc_overs_bitmap.init("options.bitmapoversample", "value", labels, values, num_items, 1);
_page_misc.add_line( false, _("Oversample bitmaps:"), _misc_overs_bitmap, "", "", false);
+ _page_misc.add_group_header( _("Clipping and masking:"));
+ _misc_mask_on_top.init ( _("Use the topmost selected object as a clipping path or mask"), "options.maskobject", "topmost", true);
+ _page_misc.add_line(true, "", _misc_mask_on_top, "",
+ _("Uncheck this to use the bottom selected object as the clipping path or mask"));
+ _misc_mask_remove.init ( _("Remove clipping path or mask after applying"), "options.maskobject", "remove", true);
+ _page_misc.add_line(true, "", _misc_mask_remove, "",
+ _("Affter applying, remove the object used as the clipping path or mask from the drawing"));
+
this->AddPage(_page_misc, _("Misc"), PREFS_PAGE_MISC);
}
diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h
index de2010f12..af3dfa44b 100644
--- a/src/ui/dialog/inkscape-preferences.h
+++ b/src/ui/dialog/inkscape-preferences.h
@@ -125,6 +125,8 @@ protected:
PrefSpinButton _misc_export, _misc_recent, _misc_simpl;
PrefCheckButton _misc_imp_bitmap, _misc_comment, _misc_scripts;
PrefCombo _misc_overs_bitmap;
+ PrefCheckButton _misc_mask_on_top;
+ PrefCheckButton _misc_mask_remove;
int _max_dialog_width;
int _max_dialog_height;