1 /* GIMP - The GNU Image Manipulation Program 2 * Copyright (C) 1995 Spencer Kimball and Peter Mattis 3 * 4 * GimpDialogConfig class 5 * Copyright (C) 2016 Michael Natterer <mitch@gimp.org> 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <https://www.gnu.org/licenses/>. 19 */ 20 21 #ifndef __GIMP_DIALOG_CONFIG_H__ 22 #define __GIMP_DIALOG_CONFIG_H__ 23 24 #include "config/gimpguiconfig.h" 25 26 27 /* We don't want to include stuff from core/ here, instead do the next 28 * less ugly hack... 29 */ 30 typedef struct _GimpFillOptions GimpFillOptions; 31 typedef struct _GimpStrokeOptions GimpStrokeOptions; 32 33 34 #define GIMP_TYPE_DIALOG_CONFIG (gimp_dialog_config_get_type ()) 35 #define GIMP_DIALOG_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_DIALOG_CONFIG, GimpDialogConfig)) 36 #define GIMP_DIALOG_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_DIALOG_CONFIG, GimpDialogConfigClass)) 37 #define GIMP_IS_DIALOG_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_DIALOG_CONFIG)) 38 #define GIMP_IS_DIALOG_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_DIALOG_CONFIG)) 39 40 41 typedef struct _GimpDialogConfigClass GimpDialogConfigClass; 42 43 struct _GimpDialogConfig 44 { 45 GimpGuiConfig parent_instance; 46 47 GimpColorProfilePolicy color_profile_policy; 48 49 gchar *color_profile_path; 50 51 GimpColorRenderingIntent image_convert_profile_intent; 52 gboolean image_convert_profile_bpc; 53 54 GeglDitherMethod image_convert_precision_layer_dither_method; 55 GeglDitherMethod image_convert_precision_text_layer_dither_method; 56 GeglDitherMethod image_convert_precision_channel_dither_method; 57 58 GimpConvertPaletteType image_convert_indexed_palette_type; 59 gint image_convert_indexed_max_colors; 60 gboolean image_convert_indexed_remove_duplicates; 61 GimpConvertDitherType image_convert_indexed_dither_type; 62 gboolean image_convert_indexed_dither_alpha; 63 gboolean image_convert_indexed_dither_text_layers; 64 65 GimpFillType image_resize_fill_type; 66 GimpItemSet image_resize_layer_set; 67 gboolean image_resize_resize_text_layers; 68 69 gchar *layer_new_name; 70 GimpLayerMode layer_new_mode; 71 GimpLayerColorSpace layer_new_blend_space; 72 GimpLayerColorSpace layer_new_composite_space; 73 GimpLayerCompositeMode layer_new_composite_mode; 74 gdouble layer_new_opacity; 75 GimpFillType layer_new_fill_type; 76 77 GimpFillType layer_resize_fill_type; 78 79 GimpAddMaskType layer_add_mask_type; 80 gboolean layer_add_mask_invert; 81 82 GimpMergeType layer_merge_type; 83 gboolean layer_merge_active_group_only; 84 gboolean layer_merge_discard_invisible; 85 86 gchar *channel_new_name; 87 GimpRGB channel_new_color; 88 89 gchar *vectors_new_name; 90 91 gchar *vectors_export_path; 92 gboolean vectors_export_active_only; 93 94 gchar *vectors_import_path; 95 gboolean vectors_import_merge; 96 gboolean vectors_import_scale; 97 98 gdouble selection_feather_radius; 99 gboolean selection_feather_edge_lock; 100 101 gdouble selection_grow_radius; 102 103 gdouble selection_shrink_radius; 104 gboolean selection_shrink_edge_lock; 105 106 gdouble selection_border_radius; 107 gboolean selection_border_edge_lock; 108 GimpChannelBorderStyle selection_border_style; 109 110 GimpFillOptions *fill_options; 111 GimpStrokeOptions *stroke_options; 112 }; 113 114 struct _GimpDialogConfigClass 115 { 116 GimpGuiConfigClass parent_class; 117 }; 118 119 120 GType gimp_dialog_config_get_type (void) G_GNUC_CONST; 121 122 123 #endif /* GIMP_DIALOG_CONFIG_H__ */ 124