From bbc3d9198a5011c82b57addb0eb04208b2bf89a8 Mon Sep 17 00:00:00 2001 From: JucaBlues Date: Tue, 12 Feb 2008 00:18:24 +0000 Subject: [PATCH] infobox on filter effects dialog now is optional --- src/preferences-skeleton.h | 1 + src/ui/dialog/filter-effects-dialog.cpp | 15 +++++++++++++++ src/ui/dialog/inkscape-preferences.cpp | 4 ++++ src/ui/dialog/inkscape-preferences.h | 1 + 4 files changed, 21 insertions(+) diff --git a/src/preferences-skeleton.h b/src/preferences-skeleton.h index adf5c66f2..9415ca144 100644 --- a/src/preferences-skeleton.h +++ b/src/preferences-skeleton.h @@ -233,6 +233,7 @@ static char const preferences_skeleton[] = " \n" " \n" " \n" +" \n" " \n" " \n" " \n" diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp index 9856c63b7..eaf940f58 100644 --- a/src/ui/dialog/filter-effects-dialog.cpp +++ b/src/ui/dialog/filter-effects-dialog.cpp @@ -2193,6 +2193,13 @@ void FilterEffectsDialog::add_primitive() void FilterEffectsDialog::update_primitive_infobox() { + if (prefs_get_int_attribute ("options.showfiltersinfobox", "value", 1)){ + _infobox_icon.show(); + _infobox_desc.show(); + } else { + _infobox_icon.hide(); + _infobox_desc.hide(); + } switch(_add_primitive_type.get_active_data()->id){ case(NR::NR_FILTER_BLEND): _infobox_icon.set(g_strdup_printf("%s/feBlend-icon.png", INKSCAPE_PIXMAPDIR)); @@ -2327,6 +2334,14 @@ void FilterEffectsDialog::update_settings_view() _settings_box.hide_all(); _settings_box.show(); _empty_settings.show(); + + if (prefs_get_int_attribute ("options.showfiltersinfobox", "value", 1)){ + _infobox_icon.show(); + _infobox_desc.show(); + } else { + _infobox_icon.hide(); + _infobox_desc.hide(); + } SPFilterPrimitive* prim = _primitive_list.get_selected(); diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index 82f6ddf5b..1dc693903 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -605,6 +605,10 @@ void InkscapePreferences::initPageFilters() _page_filters.add_line( true, "", _blur_quality_worst, "", _("Lowest quality (considerable artifacts), but display is fastest")); + _show_filters_info_box.init( _("Show filter primitives infobox"), "options.showfiltersinfobox", "value", true); + _page_filters.add_line(true, "", _show_filters_info_box, "", + _("Show icons and descriptions for the filter primitives available at the filter effects dialog.")); + this->AddPage(_page_filters, _("Filters"), PREFS_PAGE_FILTERS); } diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h index c6c17476d..f0032bff7 100644 --- a/src/ui/dialog/inkscape-preferences.h +++ b/src/ui/dialog/inkscape-preferences.h @@ -149,6 +149,7 @@ protected: PrefCheckButton _mask_mask_remove; PrefRadioButton _blur_quality_best, _blur_quality_better, _blur_quality_normal, _blur_quality_worse, _blur_quality_worst; + PrefCheckButton _show_filters_info_box; PrefCheckButton _trans_scale_stroke, _trans_scale_corner, _trans_gradient,_trans_pattern; PrefRadioButton _trans_optimized, _trans_preserved; -- 2.30.2