Undo/Redo (Project)

From Scribus Wiki
Jump to navigation Jump to search

early draft

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).