Kate
KateEditInfo Class Reference
#include <kateedit.h>
Detailed Description
Represents a single edit to a KateDocument.
Definition at line 37 of file kateedit.h.
Constructor & Destructor Documentation
KateEditInfo::KateEditInfo | ( | KateDocument * | doc, | |
Kate::EditSource | source, | |||
const KTextEditor::Range & | oldRange, | |||
const QStringList & | oldText, | |||
const KTextEditor::Range & | newRange, | |||
const QStringList & | newText | |||
) |
Definition at line 22 of file kateedit.cpp.
KateEditInfo::~KateEditInfo | ( | ) | [virtual] |
Definition at line 34 of file kateedit.cpp.
Member Function Documentation
void KateEditInfo::dereferenceRevision | ( | ) |
Definition at line 200 of file kateedit.cpp.
KateDocument* KateEditInfo::document | ( | ) | const |
Kate::EditSource KateEditInfo::editSource | ( | ) | const |
Returns how this edit was generated.
- See also:
- Kate::EditSource
Definition at line 38 of file kateedit.cpp.
bool KateEditInfo::isEditBoundary | ( | ) | const |
Indicate that this edit is completed and should not be merged with another edit should the opportunity arise.
- Returns:
- true if this edit is completed
bool KateEditInfo::isInsert | ( | ) | const |
Returns true if this edit is a pure insertion of text.
bool KateEditInfo::isModification | ( | ) | const |
Returns true if text is being inserted and removed.
bool KateEditInfo::isReferenced | ( | ) | const |
Definition at line 195 of file kateedit.cpp.
bool KateEditInfo::isRemoval | ( | ) | const |
const KTextEditor::Range & KateEditInfo::newRange | ( | ) | const |
Returns the range of text occupied by the edit region after the edit took place.
Definition at line 78 of file kateedit.cpp.
const QStringList & KateEditInfo::newText | ( | ) | const |
Returns the text which occupies the edit region now that the edit has taken place.
Definition at line 210 of file kateedit.cpp.
QStringList KateEditInfo::newText | ( | const KTextEditor::Range & | range | ) | const [virtual] |
Returns the text which occupies range
after this edit took place.
Definition at line 91 of file kateedit.cpp.
QString KateEditInfo::newTextString | ( | const KTextEditor::Range & | range | ) | const [virtual] |
Returns the text which occupies range
after this edit took place.
range
must start and end on the same line for all relevant text to be returned.
Definition at line 83 of file kateedit.cpp.
const KTextEditor::Range & KateEditInfo::oldRange | ( | ) | const |
Returns the range of text occupied by the edit region before the edit took place.
Definition at line 43 of file kateedit.cpp.
const QStringList & KateEditInfo::oldText | ( | ) | const |
Returns all of the text that was in place before the edit occurred.
Definition at line 73 of file kateedit.cpp.
QStringList KateEditInfo::oldText | ( | const KTextEditor::Range & | range | ) | const [virtual] |
Returns the text which occupied range
before this edit took place.
- See also:
- oldText()
Definition at line 56 of file kateedit.cpp.
QString KateEditInfo::oldTextString | ( | const KTextEditor::Range & | range | ) | const [virtual] |
Returns the text which occupied range
before this edit took place.
- Note:
range
must start and end on the same line for all relevant text to be returned.
- See also:
- oldText()
Definition at line 48 of file kateedit.cpp.
void KateEditInfo::referenceRevision | ( | ) |
Definition at line 205 of file kateedit.cpp.
void KateEditInfo::setEditBoundary | ( | bool | boundary | ) |
Set the status of this edit.
- Parameters:
-
boundary If the edit is complete, the value should be true, otherwise it should be false
const KTextEditor::Cursor& KateEditInfo::start | ( | ) | const [inline] |
Returns the starting location of the text occupied by the edit region before the edit took place.
- Returns:
- a KTextEditor::Cursor indicating the start location of the edit
Definition at line 84 of file kateedit.h.
const KTextEditor::Cursor& KateEditInfo::translate | ( | ) | const [inline] |
Definition at line 140 of file kateedit.h.
The documentation for this class was generated from the following files: