static void gimp_mandala_class_init (GimpMandalaClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpSymmetryClass *symmetry_class = GIMP_SYMMETRY_CLASS (klass); GParamSpec *pspec; object_class->constructed = gimp_mandala_constructed; object_class->finalize = gimp_mandala_finalize; object_class->set_property = gimp_mandala_set_property; object_class->get_property = gimp_mandala_get_property; symmetry_class->label = _("Mandala"); symmetry_class->update_strokes = gimp_mandala_update_strokes; symmetry_class->get_operation = gimp_mandala_get_operation; symmetry_class->active_changed = gimp_mandala_active_changed; GIMP_CONFIG_PROP_DOUBLE (object_class, PROP_CENTER_X, "center-x", _("Center abscissa"), NULL, 0.0, G_MAXDOUBLE, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_SYMMETRY_PARAM_GUI); pspec = g_object_class_find_property (object_class, "center-x"); gegl_param_spec_set_property_key (pspec, "unit", "pixel-coordinate"); gegl_param_spec_set_property_key (pspec, "axis", "x"); GIMP_CONFIG_PROP_DOUBLE (object_class, PROP_CENTER_Y, "center-y", _("Center ordinate"), NULL, 0.0, G_MAXDOUBLE, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_SYMMETRY_PARAM_GUI); pspec = g_object_class_find_property (object_class, "center-y"); gegl_param_spec_set_property_key (pspec, "unit", "pixel-coordinate"); gegl_param_spec_set_property_key (pspec, "axis", "y"); GIMP_CONFIG_PROP_INT (object_class, PROP_SIZE, "size", _("Number of points"), NULL, 1, 100, 6.0, GIMP_PARAM_STATIC_STRINGS | GIMP_SYMMETRY_PARAM_GUI); GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_DISABLE_TRANSFORMATION, "disable-transformation", _("Disable brush transform"), _("Disable brush rotation"), FALSE, GIMP_PARAM_STATIC_STRINGS | GIMP_SYMMETRY_PARAM_GUI); }
static void gimp_tiling_class_init (GimpTilingClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpSymmetryClass *symmetry_class = GIMP_SYMMETRY_CLASS (klass); object_class->constructed = gimp_tiling_constructed; object_class->finalize = gimp_tiling_finalize; object_class->set_property = gimp_tiling_set_property; object_class->get_property = gimp_tiling_get_property; symmetry_class->label = _("Tiling"); symmetry_class->update_strokes = gimp_tiling_update_strokes; symmetry_class->get_operation = gimp_tiling_get_operation; GIMP_CONFIG_PROP_DOUBLE (object_class, PROP_X_INTERVAL, "x-interval", _("Interval X"), _("Interval on the X axis (pixels)"), 0.0, 10000.0, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_SYMMETRY_PARAM_GUI); GIMP_CONFIG_PROP_DOUBLE (object_class, PROP_Y_INTERVAL, "y-interval", _("Interval Y"), _("Interval on the Y axis (pixels)"), 0.0, 10000.0, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_SYMMETRY_PARAM_GUI); GIMP_CONFIG_PROP_DOUBLE (object_class, PROP_SHIFT, "shift", _("Shift"), _("X-shift between lines (pixels)"), 0.0, 10000.0, 0.0, GIMP_PARAM_STATIC_STRINGS | GIMP_SYMMETRY_PARAM_GUI); GIMP_CONFIG_PROP_INT (object_class, PROP_X_MAX, "x-max", _("Max strokes X"), _("Maximum number of strokes on the X axis"), 0, 100, 0, GIMP_PARAM_STATIC_STRINGS | GIMP_SYMMETRY_PARAM_GUI); GIMP_CONFIG_PROP_INT (object_class, PROP_Y_MAX, "y-max", _("Max strokes Y"), _("Maximum number of strokes on the Y axis"), 0, 100, 0, GIMP_PARAM_STATIC_STRINGS | GIMP_SYMMETRY_PARAM_GUI); }