A full line data text change. This means the growing or shrinking of the line data buffer It stores the old-data list that needs to be remebered for undoing.
More...
|
| LineDataListChange (TextLineDataManager *manager, int offset, int lenght, int newLength) |
| The line data text change constructor.
|
|
virtual | ~LineDataListChange () |
| Destructs the linedata textchange.
|
|
virtual void | execute (TextDocument *document) |
| Executes the line data changes.
|
|
virtual void | revert (TextDocument *doc) |
| Reverts the line data change.
|
|
virtual void | mergeStoredData (AbstractRangedChange *change) |
| This method merges the old data with the new data @apram change the data to merge with.
|
|
virtual bool | giveAndMerge (TextDocument *document, Change *textChange) |
| Merges mutliple textline changes together.
|
|
virtual QString | toString () |
| Converts this change to a string.
|
|
int | offset () const |
| Returns the line.
|
|
void | setOffset (int value) |
| Sets the new offset.
|
|
virtual int | docLength () const |
| Retursn the length in the document/data.
|
|
void | setDocLength (int value) |
| This method sets the old length.
|
|
virtual int | storedLength () const |
| The lengt of the content in this object.
|
|
TextLineDataList ** | oldListList () |
| returns the old list list
|
|
int | oldListListLength () |
| retursn the length of th eold list list
|
|
virtual | ~AbstractRangedChange () |
| default destructor is empty
|
|
void | addOffset (int amount) |
| Adds the given amount to the offset.
|
|
bool | isOverlappedBy (AbstractRangedChange *secondChange) |
| This method checks if this textchange is overlapped by the second textchange overlapping is an exclusive overlap, which means the changes are really on top of eachother to test if the changes are touching use isTouchedBy.
|
|
bool | isTouchedBy (AbstractRangedChange *secondChange) |
| Touched ranges are ranges that are next to eachother Touching means the end offset of one range is the start offset of the other range.
|
|
virtual | ~Change () |
| a virtual empty destructor
|
|
virtual bool | canUndo () |
| This method should return true if the change can be reverted.
|
|
virtual bool | isPersistenceRequired () |
| This flag is used to mark this stack item as non-persistence requirable The default behaviour is that every textchange requires persistence. It is also possible to have certain changes that do not require persitence but should be placed on the undo stack.
|
|
virtual TextEditorController * | controllerContext () |
| A text command can belong to a controller/view When it's a view only command. The undo only applies only to this view warning a DOCUMENT change may NEVER return a controllerContext!!
|
|
bool | isDocumentChange () |
| this method can be used to check if the given change is a document change
|
|
virtual bool | isGroup () |
| This method returns true if this change is a group change. When an object is group change it should be inherited by TextChangeGroup.
|
|
A full line data text change. This means the growing or shrinking of the line data buffer It stores the old-data list that needs to be remebered for undoing.