
This is copy of wx's presets code.
