Re: [Gimp-developer] Procedural call to undo?

2009-05-15 Thread Sven Neumann
Hi, On Mon, 2009-05-11 at 16:21 -0400, Rob Antonishen wrote: Now that could be useful. Call it GIMP-IMAGE-STATE-SAVE and -RESTORE possibly. Or push and pop.. Not undo. If push and pop, it should be limited to the state the image was in when the script/plugin was initiated. We call this

Re: [Gimp-developer] Procedural call to undo?

2009-05-12 Thread David Hodson
On Mon, 2009-05-11 at 12:57 -0700, Stuart Axon wrote: Even if you don't have undo as such, it would be useful from a scripting point of view to save checkpoints, which you could revert to within the script. Exactly. A more accurate description of what I was looking for would be mark this

Re: [Gimp-developer] Procedural call to undo?

2009-05-12 Thread David Gowers
Hi, On Tue, May 12, 2009 at 6:48 PM, David Hodson hods...@ozemail.com.au wrote: On Mon, 2009-05-11 at 12:57 -0700, Stuart Axon wrote: Even if you don't have undo as such, it would be useful from  a scripting point of view to save checkpoints, which you could revert to within the script.

Re: [Gimp-developer] Procedural call to undo?

2009-05-12 Thread peter sikking
gg wrote: That's true, but how does that make undo different from many other functions? undo involves user having a change of heart. a script cannot have a change of heart. No but it can have a conditional execution path dependant on the result of a previous command. resize image save

Re: [Gimp-developer] Procedural call to undo?

2009-05-12 Thread Bill Skaggs
On Tue, May 12, 2009 at 6:55 AM, peter sikking pe...@mmiworks.net wrote: I have big apprehensions that a machine script need to touch the users' undo history. I would like to know from David Hodson what he is trying to achieve manipulating the undo stack. I have some doubts myself about the

Re: [Gimp-developer] Procedural call to undo?

2009-05-12 Thread David Hodson
On Tue, 2009-05-12 at 07:27 -0700, Bill Skaggs wrote: On Tue, May 12, 2009 at 6:55 AM, peter sikking pe...@mmiworks.net wrote: I have big apprehensions that a machine script need to touch the users' undo history. I would like to know from David Hodson what he is trying to achieve

Re: [Gimp-developer] Procedural call to undo?

2009-05-11 Thread peter sikking
David Hodson wrote: That's true, but how does that make undo different from many other functions? undo involves user having a change of heart. a script cannot have a change of heart. --ps founder + principal interaction architect man + machine interface works

Re: [Gimp-developer] Procedural call to undo?

2009-05-11 Thread gg
peter sikking wrote: David Hodson wrote: That's true, but how does that make undo different from many other functions? undo involves user having a change of heart. a script cannot have a change of heart. No but it can have a conditional execution path dependant on the result of a

Re: [Gimp-developer] Procedural call to undo?

2009-05-11 Thread Chris Mohler
On Mon, May 11, 2009 at 12:31 PM, gg g...@catking.net wrote: peter sikking wrote: David Hodson wrote: That's true, but how does that make undo different from many other functions? undo involves user having a change of heart. a script cannot have a change of heart. No but it can have a

Re: [Gimp-developer] Procedural call to undo?

2009-05-11 Thread Stuart Axon
: Monday, May 11, 2009 8:53:43 PM Subject: Re: [Gimp-developer] Procedural call to undo? Chris Mohler wrote: On Mon, May 11, 2009 at 12:31 PM, gg g...@catking.net wrote: peter sikking wrote: David Hodson wrote: That's true, but how does that make undo different from many other functions? undo

Re: [Gimp-developer] Procedural call to undo?

2009-05-11 Thread Rob Antonishen
To: Chris Mohler cr33...@gmail.com Cc: gimp-developer@lists.xcf.berkeley.edu Sent: Monday, May 11, 2009 8:53:43 PM Subject: Re: [Gimp-developer] Procedural call to undo? Chris Mohler wrote: On Mon, May 11, 2009 at 12:31 PM, gg g...@catking.net wrote: peter sikking wrote: David Hodson wrote

Re: [Gimp-developer] Procedural call to undo?

2009-05-11 Thread gg
Message From: gg g...@catking.net To: Chris Mohler cr33...@gmail.com Cc: gimp-developer@lists.xcf.berkeley.edu Sent: Monday, May 11, 2009 8:53:43 PM Subject: Re: [Gimp-developer] Procedural call to undo? Chris Mohler wrote: On Mon, May 11, 2009 at 12:31 PM, gg g...@catking.net wrote: peter

[Gimp-developer] Procedural call to undo?

2009-05-10 Thread David Hodson
I can find the functions in the pdb to manipulate the undo stack - is there a function call that just does an undo? -- David ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU

Re: [Gimp-developer] Procedural call to undo?

2009-05-10 Thread David Gowers
On Sun, May 10, 2009 at 9:37 PM, David Hodson hods...@ozemail.com.au wrote: I can find the functions in the pdb to manipulate the undo stack - is there a function call that just does an undo? No. Although this might conceivably change in the future as GIMP integrates GEGL. David

Re: [Gimp-developer] Procedural call to undo?

2009-05-10 Thread David Hodson
On Sun, 2009-05-10 at 22:03 +0930, David Gowers wrote: On Sun, May 10, 2009 at 9:37 PM, David Hodson hods...@ozemail.com.au wrote: I can find the functions in the pdb to manipulate the undo stack - is there a function call that just does an undo? No. Although this might conceivably change

Re: [Gimp-developer] Procedural call to undo?

2009-05-10 Thread David Gowers
Hi David, On Sun, May 10, 2009 at 10:34 PM, David Hodson hods...@ozemail.com.au wrote: On Sun, 2009-05-10 at 22:03 +0930, David Gowers wrote: On Sun, May 10, 2009 at 9:37 PM, David Hodson hods...@ozemail.com.au wrote: I can find the functions in the pdb to manipulate the undo stack - is

Re: [Gimp-developer] Procedural call to undo?

2009-05-10 Thread David Hodson
Hi David, (OK, that's going to get confusing very fast!) On Sun, 2009-05-10 at 23:39 +0930, David Gowers wrote: While it *could* be connected to the API, that would introduce various logical inconsistencies (for example, plugins could not rely on having a sensible image state because other