Gimp.gimpresourceselect
A resource selection dialog.
An adapter and proxy between libgimp and core. (see Adapter and Proxy patterns in programming literature.)
Proxy: to a remote dialog in core. Is a dialog, but the dialog is remote (another process.) Remote dialog is a chooser dialog of subclass of GimpResource, e.g. GimpBrush, GimpFont, etc.
Adapter: gets a callback via PDB procedure from remote dialog and shuffles parameters to call a owner's callback on libgimp side.
Generic on type of GimpResource subclass. That is, the type of GimpResource subclass is passed.
Responsibilities:
- implement a proxy to a chooser widget in core
Collaborations:
- called by GimpResourceSelectButton to popup as a sibling widget - PDB procedures to/from core, which implements the remote dialog (from via PDB temp callback, to via PDB procs such as gimp_fonts_popup) - plugins implementing their own GUI