Proposal to extend recncell
Derek Atkins
warlord@MIT.EDU
27 Nov 2001 23:07:01 -0500
1) remove the get_string callback (it wont be necessary)
2) provide two more setter functions:
void gnc_recn_cell_set_valid_chars (RecnCell *cell, char *chars,
char default);
void gnc_recn_cell_set_char_order (RecnCell *cell, char *chars,
char default);
3) store these two strings in the RecnCell structure
I believe that this is sufficient to get the functionality we need.
In order to get the current RecnCell functionality, given English, we
would use:
gnc_recn_cell_set_valid_chars (cell, "ncyf", 'n');
gnc_recn_cell_set_char_order (cell, "nc", 'n');
This would provide the same functionality we currently have.. You can
set and of n, c, y, or f as valid characters, but clicking on the
window will switch between n and c. If an invalid entry is provided,
it defaults back to 'n'.
This interface is rather crude, but it would provide enough
functionality for what I need.
Comments?
-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@MIT.EDU PGP key available