Proposal to extend recncell

Dave Peticolas dave@krondo.com
27 Nov 2001 23:30:40 -0800


--=-l4LiYbW+SIeTawFjmKhi
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2001-11-27 at 20:07, Derek Atkins wrote:
> 1) remove the get_string callback (it wont be necessary)
>=20
> 2) provide two more setter functions:
>=20
> 	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);
>=20
> 3) store these two strings in the RecnCell structure
>=20
> 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:
>=20
> 	gnc_recn_cell_set_valid_chars (cell, "ncyf", 'n');
> 	gnc_recn_cell_set_char_order (cell, "nc", 'n');
>=20
> 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'.
>=20
> This interface is rather crude, but it would provide enough
> functionality for what I need.
>=20
> Comments?

Sounds good.

dave


--=-l4LiYbW+SIeTawFjmKhi
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA8BJKg5effKKCmfpIRAnVMAKDyCS3rhKKnMKww4ojsoL6RGoruHwCfdt9T
0p2ThFvwYh6H5W9bmBBeJ6E=
=I/qE
-----END PGP SIGNATURE-----

--=-l4LiYbW+SIeTawFjmKhi--