37 void addOffsetDeltaToChanges( QList<AbstractRangedChange*>& changes,
int fromIndex,
int delta );
38 int findInsertIndexForOffset( QList<AbstractRangedChange*>& changes,
int offset );
40 void inverseMergeRemainingOverlappingChanges( QList<AbstractRangedChange*>& changes,
TextDocument* doc,
int mergedAtIndex,
int orgStartOffset,
int orgEndOffset ,
int delta);
55 virtual void clear(
bool performDelete=
true);
79 QList<AbstractRangedChange*> textChangeList_;
80 QList<LineDataListChange*> lineDataTextChangeList_;
81 QList<Change*> miscChangeList_;
This is an abstract class for ranged changes This are changes (text changes and line changes) that sp...
Definition abstractrangedchange.h:16
ChangeGroup(TextEditorController *controller)
default contructor
Definition change.cpp:137
A basic change.
Definition change.h:18
virtual TextEditorController * controller()
returns the controller
Definition change.cpp:126
A full line data text change. This means the growing or shrinking of the line data buffer It stores t...
Definition linedatalistchange.h:20
virtual int size()
returns the number of elements
Definition mergablechangegroup.cpp:348
virtual void execute(TextDocument *document)
Executes this textchange.
Definition mergablechangegroup.cpp:60
virtual void clear(bool performDelete=true)
clears all items
Definition mergablechangegroup.cpp:355
virtual QString toString()
Converts this textchange to a textual representation.
Definition mergablechangegroup.cpp:381
virtual void groupClosed()
the group is closed, we must 'store' the selection
Definition mergablechangegroup.cpp:49
virtual Change * take(int idx)
Takes the given item.
Definition mergablechangegroup.cpp:329
virtual void revert(TextDocument *document)
this method is called to revert the operation reverts the given operation
Definition mergablechangegroup.cpp:72
virtual bool giveAndMerge(TextDocument *document, Change *textChange)
This method tries to merge the given change with the other change The textChange supplied with this m...
Definition mergablechangegroup.cpp:372
bool mergeAsSelection(TextDocument *document, Change *textChange)
Definition mergablechangegroup.cpp:476
MergableChangeGroup(TextEditorController *controller)
The default complex textchange constructor.
Definition mergablechangegroup.cpp:21
void compressTextChanges(TextDocument *document)
Compresses the textchanges.
Definition mergablechangegroup.cpp:492
virtual Change * at(int idx)
returns the textchange at the given index
Definition mergablechangegroup.cpp:310
void moveChangesFromGroup(TextDocument *doc, ChangeGroup *group)
Moves all textchanges from the given group to this group.
Definition mergablechangegroup.cpp:409
void giveLineDataListTextChange(TextDocument *doc, LineDataListChange *change)
gives a line data list text change
Definition mergablechangegroup.cpp:219
QString toSingleTextChangeTestString()
Converts the textchangeList as as string The format is the following: <offset>:<length>:<str>,...
Definition mergablechangegroup.cpp:393
void compressChanges(TextDocument *document)
This is going to be the magic method that's going to merge all changes.
Definition mergablechangegroup.cpp:512
void giveSingleTextChange(TextDocument *doc, TextChange *change)
Gives a single textchange.
Definition mergablechangegroup.cpp:212
bool mergeAsGroup(TextDocument *document, Change *textChange)
merges the given textchange as a group.
Definition mergablechangegroup.cpp:455
virtual void giveChange(TextDocument *doc, Change *change)
Gives the change.
Definition mergablechangegroup.cpp:267
virtual bool isDiscardable()
default not discardable
Definition mergablechangegroup.cpp:42
This is the basic text change that's the base of the textchanges.
Definition textchange.h:19
This is the base and abstract class of a text document A TextDocument is the model part of the editor...
Definition textdocument.h:42
The texteditor works via the controller. The controller is the central point/mediator which maps/cont...
Definition texteditorcontroller.h:39
The basic textrange class. A simple class of textrange with a simple vector implementation.
Definition textrange.h:202
#define EDBEE_EXPORT
Definition exports.h:15
QT Acessibility has an issue with reporting blank lines between elements lines. defining 'WINDOWS_EMP...
Definition commentcommand.cpp:20