Dynamic cursors in SplitLedger?

Dave Peticolas dave@krondo.com
27 Nov 2001 16:48:06 -0800


--=-t5nfynZNYOqFRpsVSY9O
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2001-11-27 at 16:46, Derek Atkins wrote:
> Dave Peticolas <dave@krondo.com> writes:
>=20
> <Date> <type> <Due Date> <Number> <Desc> <Account> <Paid> <Deb> <Cred> <B=
al>
>=20
> > You can do this easily. Check out split-register-model.c:1250
> > where the debit/credit fields are made editable/non-editable
> > based on whether you are editing a stock split transaction
> > or not.
>=20
> What about the contents of a cell?  I'd like the 'due date' to not
> even show up in the case of an 'invoice'?  I'd also like to get the
> behavior to change is someone tweaks the flag in the current line.
> So, typing 'I' would give the rest of the line some behavior, whereas
> 'P' would give the other.
>=20
> With the stock-split transaction you at least know apriori that you're
> handling a stock-split, so you can set up the line accordingly.  At
> least I think that's how it works (I haven't played with stock splits).
>=20
> How do you change the behavior based on the settings in a particular
> cell?
>=20
> Oh, I think I see -- it re-draws the line at every move, doesn't it?
> So I just have to pre-code the logic into the cells and then do the
> right thing based on the state, eh?

Yes, exactly.

dave


--=-t5nfynZNYOqFRpsVSY9O
Content-Type: application/pgp-signature

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

iD8DBQA8BDRG5effKKCmfpIRApATAKD2WkPD0exnqVPV8ngS0uwz646jjgCfVH2a
eL2EM5eiinFpNSExbuToZvk=
=nBNh
-----END PGP SIGNATURE-----

--=-t5nfynZNYOqFRpsVSY9O--