X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fui%2Fdialog%2Finkscape-preferences.h;h=a68303ab9e99f26de6916855da9974ae649b5681;hb=604bbc96a26ec5381cc865aa1458b115e41201ce;hp=2dd0ca4df33dbe843ba57df726acc4031b178571;hpb=2eff5d815d33c0d2005d7cb11ff4a352c3438d4c;p=inkscape.git diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h index 2dd0ca4df..a68303ab9 100644 --- a/src/ui/dialog/inkscape-preferences.h +++ b/src/ui/dialog/inkscape-preferences.h @@ -1,7 +1,7 @@ -/** - * brief Inkscape Preferences dialog - * - * Authors: +/** @file + * @brief Inkscape Preferences dialog + */ +/* Authors: * Carl Hetherington * Marco Scholten * Johan Engelen @@ -17,6 +17,7 @@ #include #include +#include #include #include #include @@ -68,11 +69,13 @@ enum { PREFS_PAGE_SVGOUTPUT, PREFS_PAGE_AUTOSAVE, PREFS_PAGE_IMPORTEXPORT, - PREFS_PAGE_UI, PREFS_PAGE_MOUSE, PREFS_PAGE_SCROLLING, + PREFS_PAGE_SNAPPING, PREFS_PAGE_STEPS, + PREFS_PAGE_UI, PREFS_PAGE_WINDOWS, + PREFS_PAGE_SPELLCHECK, PREFS_PAGE_MISC }; @@ -109,10 +112,10 @@ protected: Gtk::TreeModel::Path _path_tools; Gtk::TreeModel::Path _path_shapes; - DialogPage _page_mouse, _page_scrolling, _page_steps, _page_tools, _page_windows, + DialogPage _page_mouse, _page_scrolling, _page_snapping, _page_steps, _page_tools, _page_windows, _page_clones, _page_mask, _page_transforms, _page_filters, _page_select, _page_importexport, _page_cms, _page_grids, _page_svgoutput, _page_misc, - _page_ui, _page_autosave, _page_bitmaps; + _page_ui, _page_autosave, _page_bitmaps, _page_spellcheck; DialogPage _page_selector, _page_node, _page_tweak, _page_zoom, _page_shapes, _page_pencil, _page_pen, _page_calligraphy, _page_text, _page_gradient, _page_connector, _page_dropper, _page_lpetool; DialogPage _page_rectangle, _page_3dbox, _page_ellipse, _page_star, _page_spiral, _page_paintbucket, _page_eraser; @@ -124,6 +127,9 @@ protected: PrefSpinButton _scroll_wheel, _scroll_arrow_px, _scroll_arrow_acc, _scroll_auto_speed, _scroll_auto_thres; PrefCheckButton _scroll_space; PrefCheckButton _wheel_zoom; + + Gtk::HScale *_slider_snapping_delay; + PrefCheckButton _snap_indicator, _snap_closest_only; PrefCombo _steps_rot_snap; PrefCheckButton _steps_compass; @@ -133,6 +139,7 @@ protected: _t_sel_cue_box, _t_bbox_visual, _t_bbox_geometric; PrefCheckButton _t_cvg_keep_objects, _t_cvg_convert_whole_groups; PrefCheckButton _t_node_pathflash_enabled; + PrefCheckButton _t_node_pathflash_unselected; PrefSpinButton _t_node_pathflash_timeout; PrefColorPicker _t_node_pathoutline_color; @@ -140,6 +147,11 @@ protected: PrefRadioButton _win_ontop_none, _win_ontop_normal, _win_ontop_agressive; PrefRadioButton _win_save_geom_off, _win_save_geom, _win_save_geom_prefs; PrefCheckButton _win_hide_task, _win_zoom_resize , _win_show_close; + PrefSpinButton _win_trans_focus; /**< The dialog transparency setting for when the dialog is focused. */ + PrefSpinButton _win_trans_blur; /**< The dialog transparency setting for when the dialog is out of focus. */ + PrefSpinButton _win_trans_time; /**< How much time to go from one transparency setting to another */ + + PrefCheckButton _pencil_average_all_sketches; PrefCheckButton _calligrapy_use_abs_size; PrefCheckButton _calligrapy_keep_selected; @@ -154,6 +166,7 @@ protected: PrefCheckButton _mask_mask_remove; PrefRadioButton _blur_quality_best, _blur_quality_better, _blur_quality_normal, _blur_quality_worse, _blur_quality_worst; + PrefRadioButton _filter_quality_best, _filter_quality_better, _filter_quality_normal, _filter_quality_worse, _filter_quality_worst; PrefCheckButton _show_filters_info_box; PrefCheckButton _trans_scale_stroke, _trans_scale_corner, _trans_gradient,_trans_pattern; @@ -165,12 +178,27 @@ protected: PrefCheckButton _sel_hidden, _sel_locked; PrefCheckButton _sel_layer_deselects; - PrefSpinButton _importexport_export, _misc_recent, _misc_simpl; + PrefSpinButton _importexport_export, _misc_simpl; + PrefSlider _snap_delay, _snap_weight; PrefSpinButton _misc_latency_skew; PrefCheckButton _misc_comment, _misc_forkvectors, _misc_scripts, _misc_namedicon_delay; + + // UI page + PrefCombo _ui_languages; PrefCombo _misc_small_toolbar; PrefCombo _misc_small_secondary; PrefCombo _misc_small_tools; + PrefCheckButton _ui_colorsliders_top; + PrefSpinButton _misc_recent; + ZoomCorrRulerSlider _ui_zoom_correction; + + //Spellcheck + PrefCombo _spell_language; + PrefCombo _spell_language2; + PrefCombo _spell_language3; + PrefCheckButton _spell_ignorenumbers; + PrefCheckButton _spell_ignoreallcaps; + PrefCombo _misc_overs_bitmap; PrefCombo _misc_bitmap_editor; PrefCheckButton _misc_bitmap_autoreload; @@ -240,15 +268,17 @@ protected: bool SetMaxDialogSize(const Gtk::TreeModel::iterator& iter); bool PresentPage(const Gtk::TreeModel::iterator& iter); - static void AddSelcueCheckbox(DialogPage& p, const std::string& prefs_path, bool def_value); - static void AddGradientCheckbox(DialogPage& p, const std::string& prefs_path, bool def_value); - static void AddConvertGuidesCheckbox(DialogPage& p, const std::string& prefs_path, bool def_value); - static void AddDotSizeSpinbutton(DialogPage& p, const std::string& prefs_path, double def_value); - static void AddNewObjectsStyle(DialogPage& p, const std::string& prefs_path, const gchar* banner = NULL); + static void AddSelcueCheckbox(DialogPage& p, Glib::ustring const &prefs_path, bool def_value); + static void AddGradientCheckbox(DialogPage& p, Glib::ustring const &prefs_path, bool def_value); + static void AddConvertGuidesCheckbox(DialogPage& p, Glib::ustring const &prefs_path, bool def_value); + static void AddDotSizeSpinbutton(DialogPage& p, Glib::ustring const &prefs_path, double def_value); + static void AddNewObjectsStyle(DialogPage& p, Glib::ustring const &prefs_path, const gchar* banner = NULL); void on_pagelist_selection_changed(); + void on_reset_open_recent_clicked(); void initPageMouse(); void initPageScrolling(); + void initPageSnapping(); void initPageSteps(); void initPageTools(); void initPageWindows(); @@ -262,9 +292,11 @@ protected: void initPageGrids(); void initPageSVGOutput(); void initPageUI(); + void initPageSpellcheck(); void initPageAutosave(); void initPageBitmaps(); void initPageMisc(); + void initPageI18n(); void _presentPages();