+ (MUIMccprefs *) mccprefs

Default constructor

- (IPTR) configToGadgets:(id)configdata
- (IPTR) gadgetsToConfig:(id)configdata originator:(id)originator
- (IPTR) registerGadget:(id)gadget id:(ULONG)id params:(ULONG)params title:(OBString *)title attr:(ULONG)attr label:(id)label

Registers a gadget with the MUI custom class preferences system.

Preferences classes usually contain gadgets which are directly related to certain configuration options of your class, i.e. Poppen objects to adjust colors, String objects to adjust fonts, etc. These classes are directly related to a configuration ID value that you use to save their contents in the application's dataspace.

By default, MUI does not know anything about your objects and what they are doing in your preferences class. With MUIM_Mccprefs_RegisterGadget, you can tell MUI which object is related to what configuration ID value. This knowledge helps MUI to improve handling of your gadget.

Since version 20 of muimaster.library, MUI will e.g. add a default popup menu to all registered gadgets. Your object will automatically receive the same functionality as MUI's internal settings, like "Reset to defaults", "Last Saved", "Restore", "Presets..."

Registering gadgets with MUIM_Mccprefs_RegisterGadget should be done right after the gadget was created.

There's nothing more to be done to add the extra functionality to your gadgets besides registering them with this method. MUI can then automatically perform all the actions above (defaults, last saved, etc.) by altering the configuration dataspace while using the ID value you provided as a filter.