static void gimp_foreground_select_options_class_init (GimpForegroundSelectOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_foreground_select_options_set_property; object_class->get_property = gimp_foreground_select_options_get_property; /* override the antialias default value from GimpSelectionOptions */ GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DRAW_MODE, "draw-mode", N_("Paint over areas to mark color values for " "inclusion or exclusion from selection"), GIMP_TYPE_MATTING_DRAW_MODE, GIMP_MATTING_DRAW_MODE_FOREGROUND, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_ENGINE, "engine", N_("Engine of matting operation "), GIMP_TYPE_MATTING_ENGINE, GIMP_MATTING_ENGINE_MATTING_GLOBAL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_STROKE_WIDTH, "stroke-width", N_("Size of the brush used for refinements"), 1, 6000, 10, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MASK_COLOR, "mask-color", N_("Color of selection preview mask"), GIMP_TYPE_CHANNEL_TYPE, GIMP_BLUE_CHANNEL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_LEVELS, "levels", N_("Param for matting-levin"), 1, 10, 2, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_ACTIVE_LEVELS, "active-levels", N_("Param for matting-levin"), 1, 10, 2, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_ITERATIONS, "iterations", N_("param for matting-global"), 1, 10, 2, GIMP_PARAM_STATIC_STRINGS); }
static void cdisplay_proof_class_init (CdisplayProofClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpColorDisplayClass *display_class = GIMP_COLOR_DISPLAY_CLASS (klass); object_class->finalize = cdisplay_proof_finalize; object_class->get_property = cdisplay_proof_get_property; object_class->set_property = cdisplay_proof_set_property; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_INTENT, "intent", NULL, GIMP_TYPE_COLOR_RENDERING_INTENT, GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL, 0); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_BPC, "black-point-compensation", NULL, FALSE, 0); GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_PROFILE, "profile", NULL, GIMP_CONFIG_PATH_FILE, NULL, 0); display_class->name = _("Color Proof"); display_class->help_id = "gimp-colordisplay-proof"; display_class->stock_id = GIMP_STOCK_DISPLAY_FILTER_PROOF; display_class->convert = cdisplay_proof_convert; display_class->configure = cdisplay_proof_configure; display_class->changed = cdisplay_proof_changed; cmsErrorAction (LCMS_ERROR_IGNORE); }
static void gimp_magnify_options_class_init (GimpMagnifyOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpToolOptionsClass *options_class = GIMP_TOOL_OPTIONS_CLASS (klass); object_class->set_property = gimp_magnify_options_set_property; object_class->get_property = gimp_magnify_options_get_property; options_class->reset = gimp_magnify_options_reset; GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_AUTO_RESIZE, "auto-resize", N_("Resize image window to accommodate " "new zoom level"), FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_ZOOM_TYPE, "zoom-type", N_("Direction of magnification"), GIMP_TYPE_ZOOM_TYPE, GIMP_ZOOM_IN, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_color_picker_options_class_init (GimpColorPickerOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_color_picker_options_set_property; object_class->get_property = gimp_color_picker_options_get_property; /* override a GimpColorOptions property to get a different default value */ GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_AVERAGE, "sample-average", N_("Use accumulated color value from " "all composited visible layers"), FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PICK_MODE, "pick-mode", N_("Choose what color picker will do"), GIMP_TYPE_COLOR_PICK_MODE, GIMP_COLOR_PICK_MODE_FOREGROUND, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_INFO_WINDOW, "use-info-window", N_("Open a floating dialog to view picked " "color values in various color models"), FALSE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_curve_class_init (GimpCurveClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpObjectClass *gimp_object_class = GIMP_OBJECT_CLASS (klass); GimpViewableClass *viewable_class = GIMP_VIEWABLE_CLASS (klass); GimpDataClass *data_class = GIMP_DATA_CLASS (klass); GParamSpec *array_spec; object_class->finalize = gimp_curve_finalize; object_class->set_property = gimp_curve_set_property; object_class->get_property = gimp_curve_get_property; gimp_object_class->get_memsize = gimp_curve_get_memsize; viewable_class->default_icon_name = "FIXME icon name"; viewable_class->get_preview_size = gimp_curve_get_preview_size; viewable_class->get_popup_size = gimp_curve_get_popup_size; viewable_class->get_new_preview = gimp_curve_get_new_preview; viewable_class->get_description = gimp_curve_get_description; data_class->dirty = gimp_curve_dirty; data_class->save = gimp_curve_save; data_class->get_extension = gimp_curve_get_extension; data_class->duplicate = gimp_curve_duplicate; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CURVE_TYPE, "curve-type", "The curve type", GIMP_TYPE_CURVE_TYPE, GIMP_CURVE_SMOOTH, 0); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_N_POINTS, "n-points", "The number of points", 17, 17, 17, 0); array_spec = g_param_spec_double ("point", NULL, NULL, -1.0, 1.0, 0.0, GIMP_PARAM_READWRITE); g_object_class_install_property (object_class, PROP_POINTS, gimp_param_spec_value_array ("points", NULL, NULL, array_spec, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_FLAGS)); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_N_SAMPLES, "n-samples", "The number of samples", 256, 256, 256, 0); array_spec = g_param_spec_double ("sample", NULL, NULL, 0.0, 1.0, 0.0, GIMP_PARAM_READWRITE); g_object_class_install_property (object_class, PROP_SAMPLES, gimp_param_spec_value_array ("samples", NULL, NULL, array_spec, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_FLAGS)); }
static void gimp_bucket_fill_options_class_init (GimpBucketFillOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpToolOptionsClass *options_class = GIMP_TOOL_OPTIONS_CLASS (klass); object_class->set_property = gimp_bucket_fill_options_set_property; object_class->get_property = gimp_bucket_fill_options_get_property; options_class->reset = gimp_bucket_fill_options_reset; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FILL_MODE, "fill-mode", NULL, GIMP_TYPE_BUCKET_FILL_MODE, GIMP_FG_BUCKET_FILL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FILL_SELECTION, "fill-selection", N_("Which area will be filled"), FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FILL_TRANSPARENT, "fill-transparent", N_("Allow completely transparent regions " "to be filled"), TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_MERGED, "sample-merged", N_("Base filled area on all visible " "layers"), FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_THRESHOLD, "threshold", N_("Maximum color difference"), 0.0, 255.0, 15.0, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FILL_CRITERION, "fill-criterion", N_("Criterion used for determining color similarity"), GIMP_TYPE_SELECT_CRITERION, GIMP_SELECT_CRITERION_COMPOSITE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_blend_options_class_init (GimpBlendOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_blend_options_set_property; object_class->get_property = gimp_blend_options_get_property; GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_OFFSET, "offset", NULL, 0.0, 100.0, 0.0, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRADIENT_TYPE, "gradient-type", NULL, GIMP_TYPE_GRADIENT_TYPE, GIMP_GRADIENT_LINEAR, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRADIENT_REPEAT, "gradient-repeat", NULL, GIMP_TYPE_REPEAT_MODE, GIMP_REPEAT_NONE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SUPERSAMPLE, "supersample", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_SUPERSAMPLE_DEPTH, "supersample-depth", NULL, 0, 6, 3, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_SUPERSAMPLE_THRESHOLD, "supersample-threshold", NULL, 0.0, 4.0, 0.2, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_DITHER, "dither", NULL, TRUE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_dodge_burn_options_class_init (GimpDodgeBurnOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_dodge_burn_options_set_property; object_class->get_property = gimp_dodge_burn_options_get_property; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TYPE, "type", NULL, GIMP_TYPE_DODGE_BURN_TYPE, DODGE_BURN_DEFAULT_TYPE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MODE, "mode", NULL, GIMP_TYPE_TRANSFER_MODE, DODGE_BURN_DEFAULT_MODE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_EXPOSURE, "exposure", NULL, 0.0, 100.0, DODGE_BURN_DEFAULT_EXPOSURE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_flip_options_class_init (GimpFlipOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_flip_options_set_property; object_class->get_property = gimp_flip_options_get_property; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FLIP_TYPE, "flip-type", NULL, GIMP_TYPE_ORIENTATION_TYPE, GIMP_ORIENTATION_HORIZONTAL, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_clone_options_class_init (GimpCloneOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_clone_options_set_property; object_class->get_property = gimp_clone_options_get_property; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CLONE_TYPE, "clone-type", NULL, GIMP_TYPE_CLONE_TYPE, GIMP_IMAGE_CLONE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_perspective_clone_options_class_init (GimpPerspectiveCloneOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_perspective_clone_options_set_property; object_class->get_property = gimp_perspective_clone_options_get_property; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CLONE_MODE, "clone-mode", NULL, GIMP_TYPE_PERSPECTIVE_CLONE_MODE, GIMP_PERSPECTIVE_CLONE_MODE_ADJUST, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_desaturate_config_class_init (GimpDesaturateConfigClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpViewableClass *viewable_class = GIMP_VIEWABLE_CLASS (klass); object_class->set_property = gimp_desaturate_config_set_property; object_class->get_property = gimp_desaturate_config_get_property; /*FIXME: change string when a desaturate icon gets added */ viewable_class->default_stock_id = "gimp-convert-grayscale"; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MODE, "mode", "Desaturate mode", GIMP_TYPE_DESATURATE_MODE, GIMP_DESATURATE_LIGHTNESS, 0); }
static void gimp_convolve_options_class_init (GimpConvolveOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_convolve_options_set_property; object_class->get_property = gimp_convolve_options_get_property; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TYPE, "type", NULL, GIMP_TYPE_CONVOLVE_TYPE, DEFAULT_CONVOLVE_TYPE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_RATE, "rate", NULL, 0.0, 100.0, DEFAULT_CONVOLVE_RATE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_move_options_class_init (GimpMoveOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_move_options_set_property; object_class->get_property = gimp_move_options_get_property; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MOVE_TYPE, "move-type", NULL, GIMP_TYPE_TRANSFORM_TYPE, GIMP_TRANSFORM_TYPE_LAYER, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MOVE_CURRENT, "move-current", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_cage_options_class_init (GimpCageOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_cage_options_set_property; object_class->get_property = gimp_cage_options_get_property; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CAGE_MODE, "cage-mode", NULL, GIMP_TYPE_CAGE_MODE, GIMP_CAGE_MODE_CAGE_CHANGE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FILL_PLAIN_COLOR, "fill-plain-color", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_transform_options_class_init (GimpTransformOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpToolOptionsClass *options_class = GIMP_TOOL_OPTIONS_CLASS (klass); object_class->set_property = gimp_transform_options_set_property; object_class->get_property = gimp_transform_options_get_property; options_class->reset = gimp_transform_options_reset; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TYPE, "type", NULL, GIMP_TYPE_TRANSFORM_TYPE, GIMP_TRANSFORM_TYPE_LAYER, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DIRECTION, "direction", NULL, GIMP_TYPE_TRANSFORM_DIRECTION, GIMP_TRANSFORM_FORWARD, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_INTERPOLATION, "interpolation", NULL, GIMP_TYPE_INTERPOLATION_TYPE, GIMP_INTERPOLATION_LINEAR, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CLIP, "clip", NULL, GIMP_TYPE_TRANSFORM_RESIZE, GIMP_TRANSFORM_RESIZE_ADJUST, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PREVIEW_TYPE, "preview-type", NULL, GIMP_TYPE_TRANSFORM_PREVIEW_TYPE, GIMP_TRANSFORM_PREVIEW_TYPE_IMAGE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRID_TYPE, "grid-type", NULL, GIMP_TYPE_TRANSFORM_GRID_TYPE, GIMP_TRANSFORM_GRID_TYPE_N_LINES, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_GRID_SIZE, "grid-size", NULL, 1, 128, 15, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONSTRAIN, "constrain", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_levels_config_class_init (GimpLevelsConfigClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpViewableClass *viewable_class = GIMP_VIEWABLE_CLASS (klass); object_class->set_property = gimp_levels_config_set_property; object_class->get_property = gimp_levels_config_get_property; viewable_class->default_icon_name = "gimp-tool-levels"; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CHANNEL, "channel", _("The affected channel"), GIMP_TYPE_HISTOGRAM_CHANNEL, GIMP_HISTOGRAM_VALUE, 0); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_GAMMA, "gamma", _("Gamma"), 0.1, 10.0, 1.0, 0); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LOW_INPUT, "low-input", _("Low Input"), 0.0, 1.0, 0.0, 0); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_HIGH_INPUT, "high-input", _("High Input"), 0.0, 1.0, 1.0, 0); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LOW_OUTPUT, "low-output", _("Low Output"), 0.0, 1.0, 0.0, 0); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_HIGH_OUTPUT, "high-output", _("High Output"), 0.0, 1.0, 1.0, 0); }
static void gimp_region_select_options_class_init (GimpRegionSelectOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_region_select_options_set_property; object_class->get_property = gimp_region_select_options_get_property; GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SELECT_TRANSPARENT, "select-transparent", _("Allow completely transparent regions " "to be selected"), TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_MERGED, "sample-merged", _("Base selection on all visible layers"), FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_THRESHOLD, "threshold", _("Maximum color difference"), 0.0, 255.0, 15.0, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_SELECT_CRITERION, "select-criterion", _("Selection criterion"), GIMP_TYPE_SELECT_CRITERION, GIMP_SELECT_CRITERION_COMPOSITE, GIMP_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_DRAW_MASK, g_param_spec_boolean ("draw-mask", "Draw mask", _("Draw the selected region's mask"), FALSE, G_PARAM_READWRITE | GIMP_PARAM_STATIC_STRINGS)); }
static void gimp_warp_options_class_init (GimpWarpOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_warp_options_set_property; object_class->get_property = gimp_warp_options_get_property; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BEHAVIOR, "behavior", _("Behavior"), GIMP_TYPE_WARP_BEHAVIOR, GIMP_WARP_BEHAVIOR_MOVE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_EFFECT_STRENGTH, "effect-strength", _("Effect Strength"), 1.0, 100.0, 50.0, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_EFFECT_SIZE, "effect-size", _("Effect Size"), 1.0, 10000.0, 40.0, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_EFFECT_HARDNESS, "effect-hardness", _("Effect Hardness"), 0.0, 1.0, 0.5, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_N_ANIMATION_FRAMES, "n-animation-frames", _("Number of animation frames"), 3, 1000, 10, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_color_balance_config_class_init (GimpColorBalanceConfigClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpViewableClass *viewable_class = GIMP_VIEWABLE_CLASS (klass); object_class->set_property = gimp_color_balance_config_set_property; object_class->get_property = gimp_color_balance_config_get_property; viewable_class->default_icon_name = "gimp-tool-color-balance"; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_RANGE, "range", _("The affected range"), GIMP_TYPE_TRANSFER_MODE, GIMP_TRANSFER_MIDTONES, 0); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_CYAN_RED, "cyan-red", _("Cyan-Red"), -1.0, 1.0, 0.0, 0); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_MAGENTA_GREEN, "magenta-green", _("Magenta-Green"), -1.0, 1.0, 0.0, 0); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_YELLOW_BLUE, "yellow-blue", _("Yellow-Blue"), -1.0, 1.0, 0.0, 0); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESERVE_LUMINOSITY, "preserve-luminosity", _("Preserve Luminosity"), TRUE, 0); }
static void gimp_region_select_options_class_init (GimpRegionSelectOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpToolOptionsClass *options_class = GIMP_TOOL_OPTIONS_CLASS (klass); object_class->set_property = gimp_region_select_options_set_property; object_class->get_property = gimp_region_select_options_get_property; options_class->reset = gimp_region_select_options_reset; GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SELECT_TRANSPARENT, "select-transparent", N_("Allow completely transparent regions " "to be selected"), TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_MERGED, "sample-merged", N_("Base selection on all visible layers"), FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_THRESHOLD, "threshold", N_("Maximum color difference"), 0.0, 255.0, 15.0, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_SELECT_CRITERION, "select-criterion", N_("Selection criterion"), GIMP_TYPE_SELECT_CRITERION, GIMP_SELECT_CRITERION_COMPOSITE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_guide_class_init (GimpGuideClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); gimp_guide_signals[REMOVED] = g_signal_new ("removed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpGuideClass, removed), NULL, NULL, gimp_marshal_VOID__VOID, G_TYPE_NONE, 0); object_class->get_property = gimp_guide_get_property; object_class->set_property = gimp_guide_set_property; klass->removed = NULL; g_object_class_install_property (object_class, PROP_ID, g_param_spec_uint ("id", NULL, NULL, 0, G_MAXUINT32, 0, G_PARAM_CONSTRUCT_ONLY | GIMP_PARAM_READWRITE)); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_ORIENTATION, "orientation", NULL, GIMP_TYPE_ORIENTATION_TYPE, GIMP_ORIENTATION_UNKNOWN, 0); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_POSITION, "position", NULL, -1, GIMP_MAX_IMAGE_SIZE, -1, 0); }
static void gimp_curves_config_class_init (GimpCurvesConfigClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpViewableClass *viewable_class = GIMP_VIEWABLE_CLASS (klass); object_class->finalize = gimp_curves_config_finalize; object_class->set_property = gimp_curves_config_set_property; object_class->get_property = gimp_curves_config_get_property; viewable_class->default_stock_id = "gimp-tool-curves"; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CHANNEL, "channel", "The affected channel", GIMP_TYPE_HISTOGRAM_CHANNEL, GIMP_HISTOGRAM_VALUE, 0); GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_CURVE, "curve", "Curve", GIMP_TYPE_CURVE, GIMP_CONFIG_PARAM_AGGREGATE); }
static void gimp_text_class_init (GimpTextClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpObjectClass *gimp_object_class = GIMP_OBJECT_CLASS (klass); GimpRGB black; GimpMatrix2 identity; gchar *language; text_signals[CHANGED] = g_signal_new ("changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpTextClass, changed), NULL, NULL, gimp_marshal_VOID__VOID, G_TYPE_NONE, 0); object_class->finalize = gimp_text_finalize; object_class->get_property = gimp_text_get_property; object_class->set_property = gimp_text_set_property; object_class->dispatch_properties_changed = gimp_text_dispatch_properties_changed; gimp_object_class->get_memsize = gimp_text_get_memsize; gimp_rgba_set (&black, 0.0, 0.0, 0.0, GIMP_OPACITY_OPAQUE); gimp_matrix2_identity (&identity); language = gimp_get_default_language (NULL); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_TEXT, "text", NULL, NULL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_MARKUP, "markup", NULL, NULL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_FONT, "font", NULL, "Sans-serif", GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FONT_SIZE, "font-size", NULL, 0.0, 8192.0, 24.0, GIMP_PARAM_STATIC_STRINGS); /* * We use the name "font-size-unit" for backward compatibility. * The unit is also used for other sizes in the text object. */ GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_UNIT, "font-size-unit", NULL, TRUE, FALSE, GIMP_UNIT_PIXEL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ANTIALIAS, "antialias", NULL, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_HINT_STYLE, "hint-style", NULL, GIMP_TYPE_TEXT_HINT_STYLE, GIMP_TEXT_HINT_STYLE_MEDIUM, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_DEFAULTS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_KERNING, "kerning", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_DEFAULTS); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_LANGUAGE, "language", NULL, language, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BASE_DIR, "base-direction", NULL, GIMP_TYPE_TEXT_DIRECTION, GIMP_TEXT_DIRECTION_LTR, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_COLOR, "color", NULL, FALSE, &black, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_OUTLINE, "outline", NULL, GIMP_TYPE_TEXT_OUTLINE, GIMP_TEXT_OUTLINE_NONE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_DEFAULTS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_JUSTIFICATION, "justify", NULL, GIMP_TYPE_TEXT_JUSTIFICATION, GIMP_TEXT_JUSTIFY_LEFT, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_INDENTATION, "indent", NULL, -8192.0, 8192.0, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_DEFAULTS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LINE_SPACING, "line-spacing", NULL, -8192.0, 8192.0, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_DEFAULTS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LETTER_SPACING, "letter-spacing", NULL, -8192.0, 8192.0, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_DEFAULTS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BOX_MODE, "box-mode", NULL, GIMP_TYPE_TEXT_BOX_MODE, GIMP_TEXT_BOX_DYNAMIC, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BOX_WIDTH, "box-width", NULL, 0.0, GIMP_MAX_IMAGE_SIZE, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_DEFAULTS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BOX_HEIGHT, "box-height", NULL, 0.0, GIMP_MAX_IMAGE_SIZE, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_DEFAULTS); GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_BOX_UNIT, "box-unit", NULL, TRUE, FALSE, GIMP_UNIT_PIXEL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_MATRIX2 (object_class, PROP_TRANSFORMATION, "transformation", NULL, &identity, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_DEFAULTS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_OFFSET_X, "offset-x", NULL, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_DEFAULTS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_OFFSET_Y, "offset-y", NULL, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_DEFAULTS); /* border does only exist to implement the old text API */ g_object_class_install_property (object_class, PROP_BORDER, g_param_spec_int ("border", NULL, NULL, 0, GIMP_MAX_IMAGE_SIZE, 0, G_PARAM_CONSTRUCT | GIMP_PARAM_WRITABLE)); /* the old hinting options have been replaced by 'hint-style' */ GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_HINTING, "hinting", NULL, TRUE, GIMP_PARAM_STATIC_STRINGS); g_free (language); }
static void gimp_paint_options_class_init (GimpPaintOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = gimp_paint_options_finalize; object_class->set_property = gimp_paint_options_set_property; object_class->get_property = gimp_paint_options_get_property; object_class->notify = gimp_paint_options_notify; g_object_class_install_property (object_class, PROP_PAINT_INFO, g_param_spec_object ("paint-info", NULL, NULL, GIMP_TYPE_PAINT_INFO, GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRUSH_SCALE, "brush-scale", NULL, 0.01, 10.0, DEFAULT_BRUSH_SCALE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_APPLICATION_MODE, "application-mode", NULL, GIMP_TYPE_PAINT_APPLICATION_MODE, DEFAULT_APPLICATION_MODE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_HARD, "hard", NULL, DEFAULT_HARD, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_DYNAMICS_EXPANDED, "dynamics-expanded", NULL, DEFAULT_DYNAMICS_EXPANDED, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_OPACITY, "pressure-opacity", NULL, DEFAULT_PRESSURE_OPACITY, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_HARDNESS, "pressure-hardness", NULL, DEFAULT_PRESSURE_HARDNESS, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_RATE, "pressure-rate", NULL, DEFAULT_PRESSURE_RATE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_SIZE, "pressure-size", NULL, DEFAULT_PRESSURE_SIZE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_COLOR, "pressure-color", NULL, DEFAULT_PRESSURE_COLOR, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_INVERSE_SIZE, "pressure-inverse-size", NULL, DEFAULT_PRESSURE_INVERSE_SIZE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_PRESSURE_PRESCALE, "pressure-prescale", NULL, 0.0, 1.0, DEFAULT_PRESSURE_PRESCALE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_VELOCITY_OPACITY, "velocity-opacity", NULL, DEFAULT_VELOCITY_OPACITY, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_VELOCITY_HARDNESS, "velocity-hardness", NULL, DEFAULT_VELOCITY_HARDNESS, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_VELOCITY_RATE, "velocity-rate", NULL, DEFAULT_VELOCITY_RATE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_VELOCITY_SIZE, "velocity-size", NULL, DEFAULT_VELOCITY_SIZE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_VELOCITY_COLOR, "velocity-color", NULL, DEFAULT_VELOCITY_COLOR, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_VELOCITY_INVERSE_SIZE, "velocity-inverse-size", NULL, DEFAULT_VELOCITY_INVERSE_SIZE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_VELOCITY_PRESCALE, "velocity-prescale", NULL, 0.0, 1.0, DEFAULT_VELOCITY_PRESCALE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RANDOM_OPACITY, "random-opacity", NULL, DEFAULT_RANDOM_OPACITY, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RANDOM_HARDNESS, "random-hardness", NULL, DEFAULT_RANDOM_HARDNESS, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RANDOM_RATE, "random-rate", NULL, DEFAULT_RANDOM_RATE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RANDOM_SIZE, "random-size", NULL, DEFAULT_RANDOM_SIZE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RANDOM_COLOR, "random-color", NULL, DEFAULT_RANDOM_COLOR, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RANDOM_INVERSE_SIZE, "random-inverse-size", NULL, DEFAULT_RANDOM_INVERSE_SIZE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_RANDOM_PRESCALE, "random-prescale", NULL, 0.0, 1.0, DEFAULT_RANDOM_PRESCALE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_FADE, "use-fade", NULL, DEFAULT_USE_FADE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FADE_LENGTH, "fade-length", NULL, 0.0, 32767.0, DEFAULT_FADE_LENGTH, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_FADE_UNIT, "fade-unit", NULL, TRUE, TRUE, DEFAULT_FADE_UNIT, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_JITTER, "use-jitter", NULL, DEFAULT_USE_JITTER, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_JITTER_AMOUNT, "jitter-amount", NULL, 0.0, 50.0, DEFAULT_JITTER_AMOUNT, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_GRADIENT, "use-gradient", NULL, DEFAULT_USE_GRADIENT, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GRADIENT_REVERSE, "gradient-reverse", NULL, DEFAULT_GRADIENT_REVERSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRADIENT_REPEAT, "gradient-repeat", NULL, GIMP_TYPE_REPEAT_MODE, DEFAULT_GRADIENT_REPEAT, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_GRADIENT_LENGTH, "gradient-length", NULL, 0.0, 32767.0, DEFAULT_GRADIENT_LENGTH, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_GRADIENT_UNIT, "gradient-unit", NULL, TRUE, TRUE, DEFAULT_GRADIENT_UNIT, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BRUSH_VIEW_TYPE, "brush-view-type", NULL, GIMP_TYPE_VIEW_TYPE, GIMP_VIEW_TYPE_GRID, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_BRUSH_VIEW_SIZE, "brush-view-size", NULL, GIMP_VIEW_SIZE_TINY, GIMP_VIEWABLE_MAX_BUTTON_SIZE, GIMP_VIEW_SIZE_SMALL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PATTERN_VIEW_TYPE, "pattern-view-type", NULL, GIMP_TYPE_VIEW_TYPE, GIMP_VIEW_TYPE_GRID, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_PATTERN_VIEW_SIZE, "pattern-view-size", NULL, GIMP_VIEW_SIZE_TINY, GIMP_VIEWABLE_MAX_BUTTON_SIZE, GIMP_VIEW_SIZE_SMALL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRADIENT_VIEW_TYPE, "gradient-view-type", NULL, GIMP_TYPE_VIEW_TYPE, GIMP_VIEW_TYPE_LIST, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_GRADIENT_VIEW_SIZE, "gradient-view-size", NULL, GIMP_VIEW_SIZE_TINY, GIMP_VIEWABLE_MAX_BUTTON_SIZE, GIMP_VIEW_SIZE_LARGE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_gui_config_class_init (GimpGuiConfigClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); gchar *path; object_class->finalize = gimp_gui_config_finalize; object_class->set_property = gimp_gui_config_set_property; object_class->get_property = gimp_gui_config_get_property; GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_DEFAULT_THRESHOLD, "default-threshold", DEFAULT_THRESHOLD_BLURB, 0, 255, 15, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MOVE_TOOL_CHANGES_ACTIVE, "move-tool-changes-active", MOVE_TOOL_CHANGES_ACTIVE_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TRUST_DIRTY_FLAG, "trust-dirty-flag", TRUST_DIRTY_FLAG_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_DEVICE_STATUS, "save-device-status", SAVE_DEVICE_STATUS_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_SESSION_INFO, "save-session-info", SAVE_SESSION_INFO_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESTORE_SESSION, "restore-session", RESTORE_SESSION_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_TOOL_OPTIONS, "save-tool-options", SAVE_TOOL_OPTIONS_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_TOOLTIPS, "show-tooltips", SHOW_TOOLTIPS_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TEAROFF_MENUS, "tearoff-menus", TEAROFF_MENUS_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CAN_CHANGE_ACCELS, "can-change-accels", CAN_CHANGE_ACCELS_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_ACCELS, "save-accels", SAVE_ACCELS_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESTORE_ACCELS, "restore-accels", RESTORE_ACCELS_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MENU_MNEMONICS, "menu-mnemonics", MENU_MNEMONICS_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_LAST_OPENED_SIZE, "last-opened-size", LAST_OPENED_SIZE_BLURB, 0, 1024, 10, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_INSTALL_PROP_MEMSIZE (object_class, PROP_MAX_NEW_IMAGE_SIZE, "max-new-image-size", MAX_NEW_IMAGE_SIZE_BLURB, 0, GIMP_MAX_MEMSIZE, 1 << 27, /* 128MB */ GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_COLOR_AREA, "toolbox-color-area", TOOLBOX_COLOR_AREA_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_FOO_AREA, "toolbox-foo-area", TOOLBOX_FOO_AREA_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_IMAGE_AREA, "toolbox-image-area", TOOLBOX_IMAGE_AREA_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_WILBER, "toolbox-wilber", TOOLBOX_WILBER_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); path = gimp_config_build_data_path ("themes"); GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_THEME_PATH, "theme-path", THEME_PATH_BLURB, GIMP_CONFIG_PATH_DIR_LIST, path, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_RESTART); g_free (path); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_THEME, "theme", THEME_BLURB, DEFAULT_THEME, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_HELP, "use-help", USE_HELP_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_HELP_BUTTON, "show-help-button", SHOW_HELP_BUTTON_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_HELP_LOCALES, "help-locales", HELP_LOCALES_BLURB, "", GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_HELP_BROWSER, "help-browser", HELP_BROWSER_BLURB, GIMP_TYPE_HELP_BROWSER_TYPE, DEFAULT_HELP_BROWSER, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_WEB_BROWSER, "web-browser", WEB_BROWSER_BLURB, GIMP_CONFIG_PATH_FILE, DEFAULT_WEB_BROWSER, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USER_MANUAL_ONLINE, "user-manual-online", USER_MANUAL_ONLINE_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_USER_MANUAL_ONLINE_URI, "user-manual-online-uri", USER_MANUAL_ONLINE_URI_BLURB, DEFAULT_USER_MANUAL_ONLINE_URI, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TOOLBOX_WINDOW_HINT, "toolbox-window-hint", TOOLBOX_WINDOW_HINT_BLURB, GIMP_TYPE_WINDOW_HINT, GIMP_WINDOW_HINT_UTILITY, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DOCK_WINDOW_HINT, "dock-window-hint", DOCK_WINDOW_HINT_BLURB, GIMP_TYPE_WINDOW_HINT, GIMP_WINDOW_HINT_UTILITY, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TRANSIENT_DOCKS, "transient-docks", TRANSIENT_DOCKS_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CURSOR_FORMAT, "cursor-format", CURSOR_FORMAT_BLURB, GIMP_TYPE_CURSOR_FORMAT, GIMP_CURSOR_FORMAT_PIXBUF, GIMP_PARAM_STATIC_STRINGS); /* only for backward compatibility: */ GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_INFO_WINDOW_PER_DISPLAY, "info-window-per-display", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_TOOL_TIPS, "show-tool-tips", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_TIPS, "show-tips", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE); }
static void gimp_gui_config_class_init (GimpGuiConfigClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); gchar *path; object_class->finalize = gimp_gui_config_finalize; object_class->set_property = gimp_gui_config_set_property; object_class->get_property = gimp_gui_config_get_property; GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MOVE_TOOL_CHANGES_ACTIVE, "move-tool-changes-active", MOVE_TOOL_CHANGES_ACTIVE_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_IMAGE_MAP_TOOL_MAX_RECENT, "image-map-tool-max-recent", IMAGE_MAP_TOOL_MAX_RECENT_BLURB, 0, 255, 10, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TRUST_DIRTY_FLAG, "trust-dirty-flag", TRUST_DIRTY_FLAG_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_DEVICE_STATUS, "save-device-status", SAVE_DEVICE_STATUS_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_SESSION_INFO, "save-session-info", SAVE_SESSION_INFO_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESTORE_SESSION, "restore-session", RESTORE_SESSION_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESTORE_MONITOR, "restore-monitor", RESTORE_MONITOR_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_TOOL_OPTIONS, "save-tool-options", SAVE_TOOL_OPTIONS_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_TOOLTIPS, "show-tooltips", SHOW_TOOLTIPS_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TEAROFF_MENUS, "tearoff-menus", TEAROFF_MENUS_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CAN_CHANGE_ACCELS, "can-change-accels", CAN_CHANGE_ACCELS_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_ACCELS, "save-accels", SAVE_ACCELS_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESTORE_ACCELS, "restore-accels", RESTORE_ACCELS_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_LAST_OPENED_SIZE, "last-opened-size", LAST_OPENED_SIZE_BLURB, 0, 1024, 10, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_INSTALL_PROP_MEMSIZE (object_class, PROP_MAX_NEW_IMAGE_SIZE, "max-new-image-size", MAX_NEW_IMAGE_SIZE_BLURB, 0, GIMP_MAX_MEMSIZE, 1 << 27, /* 128MB */ GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_COLOR_AREA, "toolbox-color-area", TOOLBOX_COLOR_AREA_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_FOO_AREA, "toolbox-foo-area", TOOLBOX_FOO_AREA_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_IMAGE_AREA, "toolbox-image-area", TOOLBOX_IMAGE_AREA_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_WILBER, "toolbox-wilber", TOOLBOX_WILBER_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); path = gimp_config_build_data_path ("themes"); GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_THEME_PATH, "theme-path", THEME_PATH_BLURB, GIMP_CONFIG_PATH_DIR_LIST, path, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_RESTART); g_free (path); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_THEME, "theme", THEME_BLURB, DEFAULT_THEME, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_HELP, "use-help", USE_HELP_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_HELP_BUTTON, "show-help-button", SHOW_HELP_BUTTON_BLURB, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_HELP_LOCALES, "help-locales", HELP_LOCALES_BLURB, "", GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_HELP_BROWSER, "help-browser", HELP_BROWSER_BLURB, GIMP_TYPE_HELP_BROWSER_TYPE, DEFAULT_HELP_BROWSER, GIMP_PARAM_STATIC_STRINGS); /* As a default, we hide unavailable actions. */ GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SEARCH_SHOW_UNAVAILABLE_ACTIONS, "search-show-unavailable-actions", SEARCH_SHOW_UNAVAILABLE_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_ACTION_HISTORY_SIZE, "action-history-size", ACTION_HISTORY_SIZE_BLURB, 0, 1000, 100, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USER_MANUAL_ONLINE, "user-manual-online", USER_MANUAL_ONLINE_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_USER_MANUAL_ONLINE_URI, "user-manual-online-uri", USER_MANUAL_ONLINE_URI_BLURB, DEFAULT_USER_MANUAL_ONLINE_URI, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DOCK_WINDOW_HINT, "dock-window-hint", DOCK_WINDOW_HINT_BLURB, GIMP_TYPE_WINDOW_HINT, GIMP_WINDOW_HINT_UTILITY, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CURSOR_HANDEDNESS, "cursor-handedness", CURSOR_HANDEDNESS_BLURB, GIMP_TYPE_HANDEDNESS, GIMP_HANDEDNESS_RIGHT, GIMP_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_HIDE_DOCKS, g_param_spec_boolean ("hide-docks", NULL, HIDE_DOCKS_BLURB, FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | GIMP_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_SINGLE_WINDOW_MODE, g_param_spec_boolean ("single-window-mode", NULL, SINGLE_WINDOW_MODE_BLURB, FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | GIMP_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_TABS_POSITION, g_param_spec_enum ("tabs-position", NULL, NULL, GIMP_TYPE_POSITION, GIMP_POSITION_TOP, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | GIMP_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_LAST_TIP_SHOWN, g_param_spec_int ("last-tip-shown", NULL, NULL, 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | GIMP_PARAM_STATIC_STRINGS)); /* only for backward compatibility: */ GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CURSOR_FORMAT, "cursor-format", CURSOR_FORMAT_BLURB, GIMP_TYPE_CURSOR_FORMAT, GIMP_CURSOR_FORMAT_PIXBUF, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_INFO_WINDOW_PER_DISPLAY, "info-window-per-display", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MENU_MNEMONICS, "menu-mnemonics", NULL, TRUE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_TOOL_TIPS, "show-tool-tips", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_TIPS, "show-tips", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TOOLBOX_WINDOW_HINT, "toolbox-window-hint", NULL, GIMP_TYPE_WINDOW_HINT, GIMP_WINDOW_HINT_UTILITY, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TRANSIENT_DOCKS, "transient-docks", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_WEB_BROWSER, "web-browser", NULL, GIMP_CONFIG_PATH_FILE, "not used any longer", GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE); }
static void gimp_pdb_context_class_init (GimpPDBContextClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->constructed = gimp_pdb_context_constructed; object_class->finalize = gimp_pdb_context_finalize; object_class->set_property = gimp_pdb_context_set_property; object_class->get_property = gimp_pdb_context_get_property; GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ANTIALIAS, "antialias", N_("Smooth edges"), TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FEATHER, "feather", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FEATHER_RADIUS_X, "feather-radius-x", NULL, 0.0, 1000.0, 10.0, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FEATHER_RADIUS_Y, "feather-radius-y", NULL, 0.0, 1000.0, 10.0, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_MERGED, "sample-merged", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_SAMPLE_CRITERION, "sample-criterion", NULL, GIMP_TYPE_SELECT_CRITERION, GIMP_SELECT_CRITERION_COMPOSITE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_SAMPLE_THRESHOLD, "sample-threshold", NULL, 0.0, 1.0, 0.0, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_TRANSPARENT, "sample-transparent", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_INTERPOLATION, "interpolation", NULL, GIMP_TYPE_INTERPOLATION_TYPE, GIMP_INTERPOLATION_CUBIC, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TRANSFORM_DIRECTION, "transform-direction", NULL, GIMP_TYPE_TRANSFORM_DIRECTION, GIMP_TRANSFORM_FORWARD, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TRANSFORM_RESIZE, "transform-resize", NULL, GIMP_TYPE_TRANSFORM_RESIZE, GIMP_TRANSFORM_RESIZE_ADJUST, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_paint_options_class_init (GimpPaintOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->dispose = gimp_paint_options_dispose; object_class->finalize = gimp_paint_options_finalize; object_class->set_property = gimp_paint_options_set_property; object_class->get_property = gimp_paint_options_get_property; g_object_class_install_property (object_class, PROP_PAINT_INFO, g_param_spec_object ("paint-info", NULL, NULL, GIMP_TYPE_PAINT_INFO, GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_USE_APPLICATOR, g_param_spec_boolean ("use-applicator", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRUSH_SIZE, "brush-size", _("Brush Size"), 1.0, GIMP_BRUSH_MAX_SIZE, DEFAULT_BRUSH_SIZE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_BRUSH_ZOOM, "brush-zoom", _("Link brush size with canvas zoom"), DEFAULT_BRUSH_ZOOM, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRUSH_ASPECT_RATIO, "brush-aspect-ratio", _("Brush Aspect Ratio"), -20.0, 20.0, DEFAULT_BRUSH_ASPECT_RATIO, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRUSH_ANGLE, "brush-angle", _("Brush Angle"), -180.0, 180.0, DEFAULT_BRUSH_ANGLE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRUSH_SPACING, "brush-spacing", _("Brush Spacing"), 0.01, 50.0, DEFAULT_BRUSH_SPACING, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRUSH_HARDNESS, "brush-hardness", _("Brush Hardness"), 0.0, 1.0, DEFAULT_BRUSH_HARDNESS, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRUSH_FORCE, "brush-force", _("Brush Force"), 0.0, 1.0, DEFAULT_BRUSH_FORCE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_BRUSH_LINK_SIZE, "brush-link-size", _("Link brush size to brush native"), DEFAULT_BRUSH_LINK_SIZE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_BRUSH_LINK_ASPECT_RATIO, "brush-link-aspect-ratio", _("Link brush aspect ratio to brush native"), DEFAULT_BRUSH_LINK_ASPECT_RATIO, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_BRUSH_LINK_ANGLE, "brush-link-angle", _("Link brush angle to brush native"), DEFAULT_BRUSH_LINK_ANGLE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_BRUSH_LINK_SPACING, "brush-link-spacing", _("Link brush spacing to brush native"), DEFAULT_BRUSH_LINK_SPACING, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_BRUSH_LINK_HARDNESS, "brush-link-hardness", _("Link brush hardness to brush native"), DEFAULT_BRUSH_LINK_HARDNESS, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_APPLICATION_MODE, "application-mode", _("Every stamp has its own opacity"), GIMP_TYPE_PAINT_APPLICATION_MODE, DEFAULT_APPLICATION_MODE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_HARD, "hard", _("Ignore fuzziness of the current brush"), DEFAULT_HARD, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_JITTER, "use-jitter", _("Scatter brush as you paint"), DEFAULT_USE_JITTER, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_JITTER_AMOUNT, "jitter-amount", _("Distance of scattering"), 0.0, 50.0, DEFAULT_JITTER_AMOUNT, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_DYNAMICS_EXPANDED, "dynamics-expanded", NULL, DEFAULT_DYNAMICS_EXPANDED, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FADE_LENGTH, "fade-length", _("Distance over which strokes fade out"), 0.0, 32767.0, DEFAULT_FADE_LENGTH, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_FADE_UNIT, "fade-unit", NULL, TRUE, TRUE, DEFAULT_FADE_UNIT, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FADE_REVERSE, "fade-reverse", _("Reverse direction of fading"), DEFAULT_FADE_REVERSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FADE_REPEAT, "fade-repeat", _("How fade is repeated as you paint"), GIMP_TYPE_REPEAT_MODE, DEFAULT_FADE_REPEAT, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GRADIENT_REVERSE, "gradient-reverse", NULL, DEFAULT_GRADIENT_REVERSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BRUSH_VIEW_TYPE, "brush-view-type", NULL, GIMP_TYPE_VIEW_TYPE, GIMP_VIEW_TYPE_GRID, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_BRUSH_VIEW_SIZE, "brush-view-size", NULL, GIMP_VIEW_SIZE_TINY, GIMP_VIEWABLE_MAX_BUTTON_SIZE, GIMP_VIEW_SIZE_SMALL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DYNAMICS_VIEW_TYPE, "dynamics-view-type", NULL, GIMP_TYPE_VIEW_TYPE, GIMP_VIEW_TYPE_LIST, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_DYNAMICS_VIEW_SIZE, "dynamics-view-size", NULL, GIMP_VIEW_SIZE_TINY, GIMP_VIEWABLE_MAX_BUTTON_SIZE, GIMP_VIEW_SIZE_SMALL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PATTERN_VIEW_TYPE, "pattern-view-type", NULL, GIMP_TYPE_VIEW_TYPE, GIMP_VIEW_TYPE_GRID, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_PATTERN_VIEW_SIZE, "pattern-view-size", NULL, GIMP_VIEW_SIZE_TINY, GIMP_VIEWABLE_MAX_BUTTON_SIZE, GIMP_VIEW_SIZE_SMALL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRADIENT_VIEW_TYPE, "gradient-view-type", NULL, GIMP_TYPE_VIEW_TYPE, GIMP_VIEW_TYPE_LIST, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_GRADIENT_VIEW_SIZE, "gradient-view-size", NULL, GIMP_VIEW_SIZE_TINY, GIMP_VIEWABLE_MAX_BUTTON_SIZE, GIMP_VIEW_SIZE_LARGE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_SMOOTHING, "use-smoothing", _("Paint smoother strokes"), FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_SMOOTHING_QUALITY, "smoothing-quality", _("Depth of smoothing"), 1, 100, DEFAULT_SMOOTHING_QUALITY, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_SMOOTHING_FACTOR, "smoothing-factor", _("Gravity of the pen"), 3.0, 1000.0, DEFAULT_SMOOTHING_FACTOR, /* Max velocity is set at 3. * Allowing for smoothing factor to be * less than velcoty results in numeric * instablility */ GIMP_PARAM_STATIC_STRINGS); }
static void gimp_color_config_class_init (GimpColorConfigClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpRGB color; gimp_rgba_set_uchar (&color, 0x80, 0x80, 0x80, 0xff); object_class->finalize = gimp_color_config_finalize; object_class->set_property = gimp_color_config_set_property; object_class->get_property = gimp_color_config_get_property; GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MODE, "mode", COLOR_MANAGEMENT_MODE_BLURB, GIMP_TYPE_COLOR_MANAGEMENT_MODE, GIMP_COLOR_MANAGEMENT_DISPLAY, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_RGB_PROFILE, "rgb-profile", RGB_PROFILE_BLURB, GIMP_CONFIG_PATH_FILE, NULL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_CMYK_PROFILE, "cmyk-profile", CMYK_PROFILE_BLURB, GIMP_CONFIG_PATH_FILE, NULL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_DISPLAY_PROFILE, "display-profile", DISPLAY_PROFILE_BLURB, GIMP_CONFIG_PATH_FILE, NULL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_DISPLAY_PROFILE_FROM_GDK, "display-profile-from-gdk", DISPLAY_PROFILE_FROM_GDK_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_PRINTER_PROFILE, "printer-profile", PRINTER_PROFILE_BLURB, GIMP_CONFIG_PATH_FILE, NULL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DISPLAY_RENDERING_INTENT, "display-rendering-intent", DISPLAY_RENDERING_INTENT_BLURB, GIMP_TYPE_COLOR_RENDERING_INTENT, GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_SIMULATION_RENDERING_INTENT, "simulation-rendering-intent", SIMULATION_RENDERING_INTENT_BLURB, GIMP_TYPE_COLOR_RENDERING_INTENT, GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SIMULATION_GAMUT_CHECK, "simulation-gamut-check", SIMULATION_GAMUT_CHECK_BLURB, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_OUT_OF_GAMUT_COLOR, "out-of-gamut-color", OUT_OF_GAMUT_COLOR_BLURB, FALSE, &color, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DISPLAY_MODULE, "display-module", NULL, "CdisplayLcms", GIMP_PARAM_STATIC_STRINGS); }