"Restore defaults" button
Posted: 02 Sep 2009, 13:51
I was thinking of implementing a "Restore Defaults" button in PG. There are some problems
with it which would also apply to all Winboard engines impementing similar functionality.
The problem is that a Restore Defaults button would change the value of the options ***behind
WB's back***. So the options shown in the engine settings dialog would be out of sync with
the true options that apply. I guess one could pop up a dialog box with "Please restart GUI" but
that is lame. Like Windows asking you to reboot after upgrading Notepad.
So wouldn't it be reasonable if there were a command the engine could send to the GUI
telling it that the value of an option has changed? This could even be the same syntax
option name = value
but now going from the engine to the GUI instead of the other way round.
EDIT: There are of course many other uses for such functionality. Like an engine
showing a combo box with a few preset personalities which set the values
of a number of options simultaneously.
with it which would also apply to all Winboard engines impementing similar functionality.
The problem is that a Restore Defaults button would change the value of the options ***behind
WB's back***. So the options shown in the engine settings dialog would be out of sync with
the true options that apply. I guess one could pop up a dialog box with "Please restart GUI" but
that is lame. Like Windows asking you to reboot after upgrading Notepad.
So wouldn't it be reasonable if there were a command the engine could send to the GUI
telling it that the value of an option has changed? This could even be the same syntax
option name = value
but now going from the engine to the GUI instead of the other way round.
EDIT: There are of course many other uses for such functionality. Like an engine
showing a combo box with a few preset personalities which set the values
of a number of options simultaneously.