Re: Gnu cash- I need an UNDO button

2013-06-28 Thread Derek Atkins
Hi, Jennifer Stratton writes: > I'm a total amateur and am always entering something I didn't mean to > or deleting the wrong thing. I need an undo button that will undo the > last function completed. Would love it Alas, there is none right now, and AFAIK none in the work

Gnu cash- I need an UNDO button

2013-06-27 Thread Jennifer Stratton
I'm a total amateur and am always entering something I didn't mean to or deleting the wrong thing. I need an undo button that will undo the last function completed. Would love it thanks ___ gnu

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread akintayo holder
Point conceded. I think I'll review my approach and switch to a singular Undo/Redo history. I'll try to update my application as soon as possible. Akintayo On 3/28/07, Josh Sled <[EMAIL PROTECTED]> wrote: > > On Wed, March 28, 2007 2:51 pm, Derek Atkins wrote: > > Se

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread Andrew Sackville-West
> > level. > > I'll add my "me too" here. With splits it gets particularly > complicated. One of the things I most want to undo in GnuCash > happens when I'm editing a complicated split and as part of > that process I change (accidently or not) the acco

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread Josh Sled
On Wed, March 28, 2007 2:51 pm, Derek Atkins wrote: > See, I disagree. I consider a gnucash Book (set of accounts) to be the > same > as a gnumeric (or Excel, or OOo) spreadsheet/set-of-workbooks. Each > account > is akin is a single workbook, but it's really the set of accounts (and > other anci

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread Derek Atkins
Quoting akintayo holder <[EMAIL PROTECTED]>: >> Does any other app handle undo this way? Why should gnucash be different? > >> What does gnumeric do when you undo a change not on the local workbook >> page/tab? We should do that. > OpenOffice would jump to the

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread akintayo holder
>Does any other app handle undo this way? Why should gnucash be different? >What does gnumeric do when you undo a change not on the local workbook >page/tab? We should do that. OpenOffice would jump to the scope of the last change, its Undos are global within the workbook/file. As does

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread Josh Sled
On Wed, March 28, 2007 5:37 am, Derek Atkins wrote: > But I ALSO think that there needs to be an application-wide UNDO > list, for operations that don't have a locality.. E.g. imports, > accounts/budget/business object creation, etc. > > This is clearly a VERY big problem, but

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread Josh Sled
u put anything else in there... ;) > Because of that, is why I suggested that undo has a window of it's own, Does any other app handle undo this way? Why should gnucash be different? What does gnumeric do when you undo a change not on the local workbook page/tab? We should do that.

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread Ariel
a customer, and then loose data, I'd certainly like to be able to replay that. If they were written to the log then undo for them would be easy. > I DO understand the want for locality of operation. At some level it > DOES make sense to have "register"-based undo contex

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread Peter Selinger
I fully agree with Derek. The main reason someone would want to undo an Import is that the Import was messed-up somehow - wrong account created; wrong currency; wrong file imported, etc. It does not make sense to undo the steps of an import one by one, because those steps were not performed in

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread Derek Atkins
wed a series of steps and then >> clicked "Done" or "Finish" or "Import" and gnucash did some magic. > > Except that the "magic" is what must be undone, not what you clicked, > and it is decidedly less atomic. Not from most user's p

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread Jeff Carneal
t the user to save their >> file before an import and simply reopen that save in the case >> that it goes horribly wrong. Again, maybe it's just me... as for >> not tying undo to an account, I wholeheartedly agree. > > It's extremely unreasonable when we fi

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread Derek Atkins
Quoting Jeff Carneal <[EMAIL PROTECTED]>: > Just to address the point of undo'ing an import... > > Maybe it is just me, but as a user, I have no expectation whatsoever > of being able to undo something as large in scope as an import. I > think that's partly be

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-28 Thread Derek Atkins
Ariel <[EMAIL PROTECTED]> writes: > Each time something is written to the log, it's also written to undo - in > fact a large part of undo is already written: the log already records a > before and after, all you need to do is put in a gui to see each entry in > the

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-27 Thread Ariel
On Tue, 27 Mar 2007, Nathan Buchanan wrote: > On 3/27/07, Ariel <[EMAIL PROTECTED]> wrote: >> Let the user cherry pick which transaction to undo - it doesn't have to >> be in strict reverse order. > This sounds a bit complicated for the average user, if we do de

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-27 Thread Nathan Buchanan
On 3/27/07, Ariel <[EMAIL PROTECTED]> wrote: Let the user cherry pick which transaction to undo - it doesn't have to > be in strict reverse order. This sounds a bit complicated for the average user, if we do decide to let the user cherry pick, we need to have a very clear UI/

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-27 Thread akintayo holder
Yes, that first one is a problem and one that I have not personally experienced - so I am guessing a bit. But if you create the entry in one view then commit [guessing about this part] and move it to another view. Then I would place the Undo entry in the first view's list, as you haven'

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-27 Thread Nathan Buchanan
On 3/27/07, akintayo holder <[EMAIL PROTECTED]> wrote: > > In the scenario given, It would not be possible to undo from account B as > the state of the transaction would've been modified elsewhere. Modified elsewhere, yes, but it's still the same user. I don't see

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-27 Thread Ariel
On Tue, 27 Mar 2007, akintayo holder wrote: > In the scenario given, It would not be possible to undo from account B as > the state of the transaction would've been modified elsewhere. > > I think it is the lesser of all evils, as a global list may involved undoing > a tr

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-27 Thread akintayo holder
In the scenario given, It would not be possible to undo from account B as the state of the transaction would've been modified elsewhere. I think it is the lesser of all evils, as a global list may involved undoing a transaction that isn't visible or switching to a different account

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-27 Thread Beth Leonard
ticularly complicated. One of the things I most want to undo in GnuCash happens when I'm editing a complicated split and as part of that process I change (accidently or not) the account that I'm using to view the split at the time. The whole thing suddenly dissappears and I'm left

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-27 Thread Peter Selinger
akintayo holder wrote: > > Hi, > I agree with your points, except for the single GList. I think Undo needs > to be local in context. In other words if I Undo from a given register, it > should only undo the operations made from that view even if they do not just > impact thi

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-26 Thread akintayo holder
Hi, I agree with your points, except for the single GList. I think Undo needs to be local in context. In other words if I Undo from a given register, it should only undo the operations made from that view even if they do not just impact this view. So it must be possible to associate an undo with

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-26 Thread Derek Atkins
Um, but which account do you associate it with? When you Undo don't you want to undo from the UI, not on a per-account basis? And what about something like a QIF Import, which really should be an atomic do/undo object? Where would you store that info? Keep in mind that Undo does NOT need

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-23 Thread akintayo holder
The reason I like Undo being associated with an account is the simple way in which to enforce context. So an Undo could not impact a hidden account in an unexpected way. Since accounting transactions affect at least two accounts, grouping by account was more of an interface concession. On 3/23

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-23 Thread Derek Atkins
I'm not convinced that the Undo feature belongs to an account. There are other (non-account-based) operations that should be undoable, such as changes to the PriceDB, direct Transfer Dialog entries, or even changes made via File -> Import. I think the Undo log should be part of the

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-22 Thread akintayo holder
Hi, Its seems that with respect to multi-user transactions and Undo, the first step would be to enforce this rule; A transaction cannot be Undone if the state of the record does not match the state after the original transaction had completed. For example, you can only Undo an account creation if

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-21 Thread Derek Atkins
Ariel <[EMAIL PROTECTED]> writes: > It seems to me that an undo in a multi-user environment should be exactly > equal to the user deleting (or changing, etc) the transaction manually > back to what it was. As pointed out, this isn't completely true. In a multi-user envi

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-20 Thread Nathan Buchanan
On 3/20/07, Ariel <[EMAIL PROTECTED]> wrote: > > > On Tue, 20 Mar 2007, akintayo holder wrote: > > > I would like to restrict the scope of the undo to single-user use cases. > > Is this a reasonable project ? > > It seems to me that an undo in a multi-user envi

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-20 Thread Ariel
On Tue, 20 Mar 2007, akintayo holder wrote: > I would like to restrict the scope of the undo to single-user use cases. > Is this a reasonable project ? It seems to me that an undo in a multi-user environment should be exactly equal to the user deleting (or changing, etc) the trans

Re: [Inquiry]GNUCash SoC - Implementing Undo

2007-03-20 Thread Derek Atkins
"akintayo holder" <[EMAIL PROTECTED]> writes: > Hi, > I plan on applying for a SoC project working on GNUCash. I have looked at > the proposed ideas, and I want to write the undo/redo feature. Given the > time period and the other issues like multi-user concurre

[Inquiry]GNUCash SoC - Implementing Undo

2007-03-19 Thread akintayo holder
Hi, I plan on applying for a SoC project working on GNUCash. I have looked at the proposed ideas, and I want to write the undo/redo feature. Given the time period and the other issues like multi-user concurrent access, I would like to restrict the scope of the undo to single-user use cases. Is

Re: Undo

2007-03-12 Thread David Hampton
On Mon, 2007-03-12 at 00:26 -0400, Jerry Quinn wrote: > > I had talked to my dad a bit about features that he would need to use gnucash > in their business setting and audit trail was at the top of the list. With > an > audit trail, you really can't have an undo that is in

Re: Undo

2007-03-11 Thread Jerry Quinn
Mark Johnson wrote: > Wasn't there some suggestion that an audit trail would be useful in a > distributed environment a while back? It sounds like it would have a > great deal in common with the undo. I had talked to my dad a bit about features that he would need to use gnu

Re: Undo

2007-02-28 Thread Mark Johnson
Wasn't there some suggestion that an audit trail would be useful in a distributed environment a while back? It sounds like it would have a great deal in common with the undo. Mark Peter Selinger wrote: >Here is how I think undo can be done in a distributed environment. I >thi

Re: Undo

2007-02-28 Thread Peter Selinger
Here is how I think undo can be done in a distributed environment. I think the undo history should be kept locally in the client (no global list in the server). The server, however, can keep track of who the last user (or last several users) were that edited a given transaction, purely for

Re: Undo

2007-02-28 Thread Derek Atkins
I dont think you can depend on a single global log.. It would require extending the QofBackend API to do something like that. So, what DOES "undo" mean in a multi-user environment? That's a hard problem to solve, I think. -derek Karl Chen <[EMAIL PROTECTED]> writes: &

Re: Undo

2007-02-26 Thread Karl Chen
>>>>> On 2007-02-23 06:58 PST, Derek Atkins writes: Derek> Are you offering to code this? Well, I'll put it on my to-do list - that's easy - but it's a long list so no promises on when I'll get to this if I'm the only one interested in coding it :

Re: Undo

2007-02-26 Thread Karl Chen
Good point; I didn't know about this concurrent editing process. If there is a single global log I guess one could have the ability to undo other's transactions after confirmation, though this would be tricky and for now I would say only allow undo if no one else has committed in th

Re: Undo

2007-02-23 Thread Andrew Sackville-West
On Fri, Feb 23, 2007 at 09:58:35AM -0500, Derek Atkins wrote: > Are you offering to code this? > > Yes, Undo would be cool. I'd also like to see larger-size undo atoms, > like "undo import". AOL that! A > > -derek > > Quoting Karl Chen <[EMAIL PRO

Re: Undo

2007-02-23 Thread Andrew Sackville-West
On Fri, Feb 23, 2007 at 12:53:41PM -0400, Peter Selinger wrote: > As I understand it, in a large GnuCash installation, multiple users > could access the same backend database. The lock-edit-commit mechanism > prevents conflicts. > > So what should be the default behavior of U2

Re: Undo

2007-02-23 Thread Peter Selinger
As I understand it, in a large GnuCash installation, multiple users could access the same backend database. The lock-edit-commit mechanism prevents conflicts. So what should be the default behavior of U2 and U3 (undo or redo) if, for example, the transaction has meanwhile been edited by another

Re: Undo

2007-02-23 Thread Derek Atkins
Are you offering to code this? Yes, Undo would be cool. I'd also like to see larger-size undo atoms, like "undo import". -derek Quoting Karl Chen <[EMAIL PROTECTED]>: > > Hi Gnucash developers, > > First, excellent work - Gnucash is awesome. I especially

Undo

2007-02-23 Thread Karl Chen
Hi Gnucash developers, First, excellent work - Gnucash is awesome. I especially appreciate the book data format which has allowed me to make batch changes externally. I have a wishlist request: Undo functionality. I think Undo (various levels described below) would add a LOT to usability

Re: New Hacker and QOF instance modification / undo

2005-09-02 Thread Neil Williams
mespec))param->param_setfcn; if(date_setter != NULL) { date_setter(ent, cli_date); } (That took me ages to understand but thanks to Derek's patience, I got it eventually!) Example: http://code.neil.williamsleesmill.me.uk/cashutil/group__UNDO.html#ga2 All data modification should occur

Re: CLI undo edit?

2005-08-25 Thread Derek Atkins
to be needed later. I was planning to differentiate a MODIFY from a CREATE but I think that was just a hangover from tying the undo idea to events and dirty instances. Okay. Well, this is why it's good to talk things over before we write code. ;) IMHO this is a simpler API :) I would t

Re: CLI undo edit?

2005-08-25 Thread Neil Williams
e a MODIFY from a CREATE but I think that was just a hangover from tying the undo idea to events and dirty instances. > I would think a much better API would be: > QofOperation qof_book_start_operation(QofBook* book, const char > *op_name); void qof_book_end_operation(QofOperation oper);

Re: CLI undo edit?

2005-08-25 Thread Derek Atkins
ons, which is only used by the undo/redo subsystem. At least that's my take on it all. -derek Neil Williams <[EMAIL PROTECTED]> writes: > On Wednesday 10 August 2005 8:49 am, Derek Atkins wrote: >> Neil Williams <[EMAIL PROTECTED]> writes: >> > For now, I

Re: CLI undo edit?

2005-08-25 Thread Neil Williams
ink the right way to go about it is not a list of changed > entities, but a list of events/operations. The existing events, I feel, are largely inappropriate for undo. What a user would consider a single operation can consist of many engine events. So in the CLI I'm experimenting with a

Re: CLI undo edit?

2005-08-10 Thread Neil Williams
On Wednesday 10 August 2005 2:34 pm, David Hampton wrote: > On Wed, 2005-08-10 at 12:44 +0100, Neil Williams wrote: > > In order to do redo properly, the undo operation needs to add itself to > > the list as an event that includes the state of affected parameter values > > be

Re: CLI undo edit?

2005-08-10 Thread David Hampton
On Wed, 2005-08-10 at 12:44 +0100, Neil Williams wrote: > In order to do redo properly, the undo operation needs to add itself to the > list as an event that includes the state of affected parameter values before > the user clicked undo because the *current* state of any entity

Re: CLI undo edit?

2005-08-10 Thread Neil Williams
event. Undo List -> List of affected entities (just the type and GUID) per event. -> list of affected parameter values before the event. In order to do redo properly, the undo operation needs to add itself to the list as an event that includes the state of affected para

Re: CLI undo edit?

2005-08-10 Thread Derek Atkins
Neil Williams <[EMAIL PROTECTED]> 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&

Re: CLI undo edit?

2005-08-10 Thread Derek Atkins
Benoit Grégoire <[EMAIL PROTECTED]> writes: > We should rip them out in the head branch... Well, not until we have full SQL support.. ;) -derek -- Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) URL: http://w

Re: CLI undo edit?

2005-08-09 Thread Neil Williams
On Tuesday 09 August 2005 9:10 am, Derek Atkins wrote: > Neil Williams <[EMAIL PROTECTED]> writes: > > the undo list itself > > could be stored in a similar manner to the current logs if that was > > useful. Depends on the SQL backend - if we're all using immedi

Re: CLI undo edit?

2005-08-09 Thread Benoit Grégoire
> Yes, the list itself would be part of the QofBook struct and > > accessed via an API exposed via qofbook.h - the undo list itself > > could be stored in a similar manner to the current logs if that was > > useful. Depends on the SQL backend - if we're all using immediate > &

Re: CLI undo edit?

2005-08-09 Thread Derek Atkins
Neil Williams <[EMAIL PROTECTED]> writes: > On Monday 08 August 2005 9:47 am, Derek Atkins wrote: >> I presume by "retained" you mean "in core" and not "in storage"... > > Yes, the list itself would be part of the QofBook struct and > acc

Re: CLI undo edit?

2005-08-08 Thread Neil Williams
On Monday 08 August 2005 9:47 am, Derek Atkins wrote: > Neil Williams <[EMAIL PROTECTED]> writes: > > If the undo list is retained within the book and only referenced from > > that book, this would provide sufficient segregation. > > I presume by "retained" y

Re: CLI undo edit?

2005-08-08 Thread Derek Atkins
Neil Williams <[EMAIL PROTECTED]> writes: > David Hampton wrote: > | I can see multiple undo lists within one application working, but it > | will need to be well documented. > > If the undo list is retained within the book and only referenced from > that book, this

Re: CLI undo edit?

2005-08-07 Thread Neil Williams
display data from two books in the same main > window of gnucash. The file (book) name is part of the window title so > it will be clear with a glance which data file is being edited. Then each book will maintain it's own undo list, that's not a problem at all. The second main

Re: CLI undo edit?

2005-08-07 Thread David Hampton
On Sun, 2005-08-07 at 22:14 +0100, Neil Williams wrote: > Or are you talking about multiple *main* windows of GnuCash? Yes. Gnucash 1.8 has this capability today and it is retained in g2. You will not be able to display data from two books in the same main window of gnucash. The file (book) nam

Re: CLI undo edit?

2005-08-07 Thread Neil Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Hampton wrote: | I can see multiple undo lists within one application working, but it | will need to be well documented. If the undo list is retained within the book and only referenced from that book, this would provide sufficient segregation

Re: CLI undo edit?

2005-08-07 Thread David Hampton
On Sun, 2005-08-07 at 17:46 +0100, Neil Williams wrote: > On Sunday 07 August 2005 4:58 pm, you wrote: > > On Sun, 2005-08-07 at 00:04 +0100, Neil Williams wrote: > > > A list would be more flexible - undo lists have to be sequential so a > > > generic qof_undo() would

Re: CLI undo edit?

2005-08-07 Thread Neil Williams
On Sunday 07 August 2005 4:58 pm, you wrote: > On Sun, 2005-08-07 at 00:04 +0100, Neil Williams wrote: > > A list would be more flexible - undo lists have to be sequential so a > > generic qof_undo() would need a single GList of all changes and rolling > > such a list in st

Re: CLI undo edit?

2005-08-07 Thread David Hampton
On Sun, 2005-08-07 at 00:04 +0100, Neil Williams wrote: > A list would be more flexible - undo lists have to be sequential so a generic > qof_undo() would need a single GList of all changes and rolling such a list > in strict sequential order back and forth (i.e. a redo as well as

Re: CLI undo edit?

2005-08-06 Thread Neil Williams
har *param_name); > > (QOF can't undo / redo anything unless the data is accessible as a > parameter with a QofAccessFunc *and* a QofSetterFunc so passing the value > as a string is pointless. The combination of param_name and the object > e_type from the instance do the rest.) &g

Re: CLI undo edit?

2005-08-06 Thread Neil Williams
On Saturday 06 August 2005 9:36 pm, Derek Atkins wrote: > If QOF supported a native "undo" that would be REALLY COOL.. In fact, > supported a "list" of undo operations would be even cooler! > > :) (well, I did ask!) My ideas on how that might be best achieved

Re: CLI undo edit?

2005-08-06 Thread Derek Atkins
If QOF supported a native "undo" that would be REALLY COOL.. In fact, supported a "list" of undo operations would be even cooler! :) -derek Neil Williams <[EMAIL PROTECTED]> writes: > Is it necessary to offer an undo at the edit stage or should edits take place

CLI undo edit?

2005-08-06 Thread Neil Williams
dirty). Once GnuCash v2 XML is replaced, this would only apply to QSF data. Is it necessary to offer an undo at the edit stage or should edits take place immediately (as in the GUI)? Undo isn't a trivial addition so I wanted to check it was worthwhile - I can see how to implement it for QSF bu