Interestingly, Adobe used (not sure now) for PS interface a programmatic interface builder, where you describe with text the general layout of the dialog and the various fields/interactions.
This library is open-sourced - http://stlab.adobe.com/group__asl__overview.html#asl_overvie...
sheet clipping_path
{
output:
result <== { path: path, flatness: flatness };
interface:
unlink flatness : 0.0 <== (path == empty) ? 0.0 : flatness;
path : 1;
}