Beyond 2.6
Derek Atkins
warlord at MIT.EDU
Wed Feb 13 13:07:55 EST 2013
John Ralls <jralls at ceridwen.us> writes:
>>> What do you mean by "real-time validation of inputs"?
>>
>> I mean, e.g, making sure an Account has a name entry, and that it's
>> unique, and that the account type is valid based on the parent.. Those
>> kinds of input validation that's currently done in the dialog.
>
> Those checks should be part of the Account constructor, and would
> throw exceptions. The interface code between the engine and Gtk+ would
> convert those exceptions into GErrors for the dialog box to handle;
> C++-based UI frameworks would be able to catch the exceptions
> directly.
Except by the time you're processing it's too late. It would be nicer
to make the "OK" box grey until the dialog is properly filled in, to
provide validation of inputs even sooner to the user. But that implies
some way to push the validation requirements into the GUI.
> Regards,
> John Ralls
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list