Gimp undo-redo tree

View: New views
2 Messages — Rating Filter:   Alert me  

Gimp undo-redo tree

by Jan Rüegg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, I am new to gimp development, and I'm trying to implement an undo - redo tree in Gimp

Something like this: http://gimp-brainstorm.blogspot.com/2008/07/undoredo-tree.html

but I have some problems understanding "app/widgets/gimpcontainerview.c" and "app/widgets/gimpcontainertreeview.c"

Is anyone interested in helping me?
http://up.mibbit.com/up/lXpwQN2h.diff is what I've got so far. Just to give you an idea to what I would like to achieve...

usage:
-patch against latest git
- open a new image and do some brush strokes, watch the undo history
- click on some of the items in there and see what happens
- click the THIRD (hardcoded at the moment) picture from the top of the undo history
- do some other strokes
what should happen:
a treelike structure will be shown, and you can flip open and closed the new tree branch, and go backwards and forwards in the undo history there

Cheers
Jan

_______________________________________________
Gimp-developer mailing list
Gimp-developer@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Re: Gimp undo-redo tree

by Martin Nordholts-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 09/19/2009 02:12 PM, Jan Rüegg wrote:
> Hello, I am new to gimp development, and I'm trying to implement an undo
> - redo tree in Gimp

Hi Jan and welcome!

I'd love to help you out hacking on GIMP. My preferred way to do tight
collaboration is using IRC. In GIMP's case that's #gimp on irc.gnome.org.

Regarding the patch, it is very hackish at the moment. For the real stuff
you'd need to introduce new abstractions and concepts, otherwise the
implementation will become a hack. But it's a start!

Also, patches should be generated with

  git format-patch origin/master

instead of git-diff. And when distributing patches from web servers it
is good to use the .txt extension so that the patch can easily be shown
within the browser. Often there is no MIME type association for .patch
or .diff.

Best regards,
Martin

--

My GIMP Blog:
http://www.chromecode.com/
_______________________________________________
Gimp-developer mailing list
Gimp-developer@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer