CLI undo edit?
Derek Atkins
warlord at MIT.EDU
Wed Aug 10 03:49:54 EDT 2005
Neil Williams <linux at codehelp.co.uk> writes:
> For now, I'm afraid, I have to step back and keep to what I can realistically
> hope to complete.
Oh, that's fine. I honestly didn't expect Undo in the near term.
Besides, we don't quite have SQL done, yet, so it's not a major deal
to me. :)
I think "undo" will be much more important once we get SQL, but it's
not AS important now.
Also, I think the right way to go about it is not a list of changed
entities, but a list of events/operations. Then you can undo/redo per
operation. Each operation can have a list of changed entities.
Therefore, an "import" is a single operation (so it's a single
undo/redo entry in the undo/list) but it can have as many entries as
necessary in the changed-entries list.
Something like this:
|
|
Import - [obj1, obj2, obj3, obj4, obj4]
|
New
Acct -- [ acct ]
|
New
Txn -- [ txn ]
|
Mod
Txn -- [ txn ]
|
|
Please don't feel inadiquate; you've done a tremendous amount of work.
Undo/Redo is a HARD problem in general unless we have the framework in
place to support it. Unfortunately I suspect that framework will
require changes to QOF, but we'll have to see.
I don't expect this anytime soon; I'd much rather see g2 get done and
out the door first ;)
-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