John Ralls <jra...@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
       warl...@mit.edu                        PGP key available
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to