Difference between revisions of "Undo/Redo (Project)"

From Scribus Wiki
Jump to: navigation, search
m (Description of the Pragmatic solution for Scribus 1.4)
(early draft)
Line 2: Line 2:
 
=early draft=
 
=early draft=
  
 +
 +
It is hard to edit this while there is not working copy/paste between QtCreator and this Wiki page....
  
 
=Undo for Text Frames=
 
=Undo for Text Frames=

Revision as of 00:48, 14 February 2011

early draft

It is hard to edit this while there is not working copy/paste between QtCreator and this Wiki page....

Undo for Text Frames

OK, try to explain how it works...

Whole text undo solution works depend of what we are change... 1. whole text attributes (by select frame and change text properties in PP) 2. only selection of text in edit mode a) selection of text b) selection of paragraphs c) insert/delete chars

Before every change, state of changed text must saved for undo/redo purposes in field itemTextSaxed. After change new state of text is saved. Function getItemTextSaxed returns portion of text needed by undo stored in QString (with styles).