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_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 gimp_seamless_clone_options_class_init (GimpSeamlessCloneOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gimp_seamless_clone_options_set_property; object_class->get_property = gimp_seamless_clone_options_get_property; GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_MAX_REFINE_SCALE, "max-refine-scale", _("Maximal scale of refinement points to be used for the interpolation mesh"), 0, 50, 5, 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_posterize_config_class_init (GimpPosterizeConfigClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpViewableClass *viewable_class = GIMP_VIEWABLE_CLASS (klass); object_class->set_property = gimp_posterize_config_set_property; object_class->get_property = gimp_posterize_config_get_property; viewable_class->default_icon_name = "gimp-tool-posterize"; GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_LEVELS, "levels", "Posterize levels", 2, 256, 3, 0); }
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_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_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_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_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_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_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); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_TRANSFORM_RECURSION, "transform-recursion", NULL, 1, G_MAXINT32, 3, 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", _("Direction of transformation"), GIMP_TYPE_TRANSFORM_DIRECTION, GIMP_TRANSFORM_FORWARD, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_INTERPOLATION, "interpolation", _("Interpolation method"), GIMP_TYPE_INTERPOLATION_TYPE, GIMP_INTERPOLATION_LINEAR, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CLIP, "clip", _("How to clip"), GIMP_TYPE_TRANSFORM_RESIZE, GIMP_TRANSFORM_RESIZE_ADJUST, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_PREVIEW, "show-preview", _("Show a preview of the transformed image"), TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_PREVIEW_OPACITY, "preview-opacity", _("Opacity of the preview image"), 0.0, 1.0, 1.0, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRID_TYPE, "grid-type", _("Composition guides such as rule of thirds"), GIMP_TYPE_GUIDES_TYPE, GIMP_GUIDES_N_LINES, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_GRID_SIZE, "grid-size", _("Size of a grid cell for variable number " "of composition guides"), 1, 128, 15, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONSTRAIN_MOVE, "constrain-move", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONSTRAIN_SCALE, "constrain-scale", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONSTRAIN_ROTATE, "constrain-rotate", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONSTRAIN_SHEAR, "constrain-shear", NULL, TRUE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONSTRAIN_PERSPECTIVE, "constrain-perspective", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FROMPIVOT_SCALE, "frompivot-scale", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FROMPIVOT_SHEAR, "frompivot-shear", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FROMPIVOT_PERSPECTIVE, "frompivot-perspective", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CORNERSNAP, "cornersnap", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FIXEDPIVOT, "fixedpivot", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); }
static void gimp_text_options_class_init (GimpTextOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpToolOptionsClass *options_class = GIMP_TOOL_OPTIONS_CLASS (klass); object_class->finalize = gimp_text_options_finalize; object_class->set_property = gimp_text_options_set_property; object_class->get_property = gimp_text_options_get_property; options_class->reset = gimp_text_options_reset; /* The 'highlight' property is defined here because we want different * default values for the Crop, Text and the Rectangle Select tools. */ GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, GIMP_RECTANGLE_OPTIONS_PROP_HIGHLIGHT, "highlight", NULL, FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_UNIT, "font-size-unit", N_("Font size unit"), TRUE, FALSE, GIMP_UNIT_PIXEL, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FONT_SIZE, "font-size", N_("Font size"), 0.0, 8192.0, 18.0, 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", N_("Hinting alters the font outline to " "produce a crisp bitmap at small " "sizes"), GIMP_TYPE_TEXT_HINT_STYLE, GIMP_TEXT_HINT_STYLE_MEDIUM, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_LANGUAGE, "language", N_("The text language may have an effect " "on the way the text is rendered."), (const gchar *) gtk_get_default_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_ENUM (object_class, PROP_JUSTIFICATION, "justify", N_("Text alignment"), GIMP_TYPE_TEXT_JUSTIFICATION, GIMP_TEXT_JUSTIFY_LEFT, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_INDENTATION, "indent", N_("Indentation of the first line"), -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", N_("Adjust line spacing"), -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", N_("Adjust letter spacing"), -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", N_("Whether text flows into rectangular shape or " "moves into a new line when you press Enter"), GIMP_TYPE_TEXT_BOX_MODE, GIMP_TEXT_BOX_DYNAMIC, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_EDITOR, "use-editor", N_("Use an external editor window for text " "entry"), FALSE, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FONT_VIEW_TYPE, "font-view-type", NULL, GIMP_TYPE_VIEW_TYPE, GIMP_VIEW_TYPE_LIST, GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_FONT_VIEW_SIZE, "font-view-size", NULL, GIMP_VIEW_SIZE_TINY, GIMP_VIEWABLE_MAX_BUTTON_SIZE, GIMP_VIEW_SIZE_SMALL, GIMP_PARAM_STATIC_STRINGS); gimp_rectangle_options_install_properties (object_class); }