GimpUi.ResourceSelectButton
A button which pops up a resource selection dialog.
Subclasses: GimpFontSelectButton is a minimal one. A subclass provides button trait (clickable), but possibly not a GtkButton and may have many sub widgets.
Responsibilities:
- implementing outer container widget, - managing clicks and popping up a remote chooser, - having a resource property, - signaling when user selects resource - receiving drag, - triggering draws of the button interior (by subclass) and draws of remote popup chooser.
Collaborations:
- owned by GimpProcedureDialog via GimpPropWidget - resource property usually bound to a GimpConfig for a GimpPluginProcedure. - communicates using GimpResourceSelect with remote GimpPDBDialog, to choose an installed GimpResource owned by core.
Subclass responsibilities:
- creating interior widgets - drawing the interior (a preview of the chosen resource) - declaring which interior widgets are drag destinations - declaring which interior widgets are clickable (generate "clicked" signal) - generate "clicked" (delegating to GtkButton or implementing from mouse events)
Class is abstract and cannot be instantiated: no new () method. Instead, instantiate a subclass.
Since 3.0
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.Widget
-
Gtk.Container
-
Gtk.Box
- GimpUi.ResourceSelectButton
-
-
-
-