You may always need the following functions in a GUI tool design:
1. checkStates();//check if any changes are needed if there are changes on other components
2. reset();//reset defaults on all components
3.output();//output all settings to a file
4.sanityCheck();//error checks on the settings of all components(normally before save)
5.update();//saved settings are loaded back to all components
If you have all these functions in your code, you will have fewer GUI bugs.
[ 此帖被steinlee在2010-02-18 00:53重新编辑 ]