[Okular-devel] An Undo / Redo framework for annotations
Fabio D'Urso
fabiodurso at hotmail.it
Sun Oct 14 16:16:09 UTC 2012
On Saturday, October 13, 2012 11:43:38 PM Jon Mease wrote:
> Hello all,
Hi,
> My next goal for enhancing Okular's annotation framework is to
> add undo / redo support when creating/editing/deleting annotations.
> Looking back at the list archives it seems like this is something that
> has been asked for and mentioned in bug reports for several years now.
> Before starting in I wanted to ask whether anyone has already started
> work on this.
It's still unexplored land :D
No one has worked on this yet
> I have some experience with Qt's Undo/Redo framework and this is what
> I'm planning on using. At the highest level my thought is to write
> QUndoCommands for each of the following annotation actions
> 1) Creating a new annotation with a particular set of properties
> 2) Deleting an existing annotation
> 3) Editing an annotation's properties (color, opacity, etc)
> 4) Moving an annotation's position
> 5) Editing text in a text annotation (this would rely on the
> undoAvailable signal of QTextEdit)
Sounds mostly correct to me. You can join #okular on freenode to discuss your
ideas live with other developers.
> Does anyone have any thoughts on the subject? Does an existing
> undo/redo branch or patch exists somewhere? If not, I'll probably get
> started on one this coming week.
Great! Keep us informed ;)
Thank you,
Fabio
More information about the Okular-devel
mailing list