Gimp/etc/controllerrc
Michael Natterer 3a7f7d54e7 added #define GIMP_CONTROLLER_PARAM_SERIALIZE. Made all properties
2004-06-16  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.[ch]: added #define
	GIMP_CONTROLLER_PARAM_SERIALIZE. Made all properties serializable.

	* modules/controller_linux_input.c: made "device-name"
	serializable.

	* app/config/gimpconfig-params.h: added macro
	GIMP_CONFIG_INSTALL_PROP_POINTER() which needs to be handled
	by custom (de)serialize_property() implementations.

	* app/config/gimpconfig-deserialize.c
	* app/config/gimpconfig-serialize.c: made object (de)serialization
	work for object properties which are *not* GIMP_PARAM_AGGREGATE.
	Write/parse the exact type of the object to create to enable this.

	* app/core/gimpmarshal.list: new marshaller for GimpControllerInfo.

	* app/widgets/gimpcontrollerinfo.[ch]: implement GimpConfigInterface
	and add "controller" and "mapping" properties. Add "event-mapped"
	signal which carries the action_name.

	* app/widgets/gimpcontrollers.c: removed all deserialization code
	and simply (de)serialize the controller container. Install a
	container handler for "event-mapped" and do the action_name ->
	action mapping in the callback.

	* etc/controllerrc: regenerated with new syntax. Delete your old one!
2004-06-16 18:14:44 +00:00

37 lines
1.5 KiB
Text

# GIMP controllerrc
#
# This file will be entirely rewritten every time you quit the gimp.
(GimpControllerInfo "Main Mouse Wheel"
(controller "GimpControllerWheel"
(name "Main Mouse Wheel")
(enabled yes))
(mapping
(map "scroll-down-alt" "context-opacity-decrease-skip")
(map "scroll-down-control-alt" "context-gradient-previous")
(map "scroll-down-shift-alt" "context-pattern-previous")
(map "scroll-down-shift-control" "context-brush-previous")
(map "scroll-down-shift-control-alt" "context-font-previous")
(map "scroll-up-alt" "context-opacity-increase-skip")
(map "scroll-up-control-alt" "context-gradient-next")
(map "scroll-up-shift-alt" "context-pattern-next")
(map "scroll-up-shift-control" "context-brush-next")
(map "scroll-up-shift-control-alt" "context-font-next")))
(GimpControllerInfo "ShuttlePRO"
(controller "ControllerLinuxInput"
(name "ShuttlePRO")
(enabled yes)
(device "/dev/input/event2"))
(mapping
(map "button-0" "tools-rect-select")
(map "button-1" "tools-ellipse-select")
(map "button-2" "tools-bucket-fill")
(map "button-3" "tools-blend")
(map "button-4" "tools-pencil")
(map "button-5" "tools-paintbrush")
(map "button-6" "tools-eraser")
(map "button-7" "tools-airbrush")
(map "wheel-turn-left" "context-brush-radius-decrease")
(map "wheel-turn-right" "context-brush-radius-increase")))
# end of controllerrc