Undo/Redo (Project): Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
=Undo for Text Frames= | =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). |
Revision as of 00:46, 14 February 2011
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).