Kate
KateEditInfo Class Reference
Represents a single edit to a KateDocument. More...
#include <kateedit.h>
Public Member Functions | |
void | dereferenceRevision () |
Kate::EditSource | editSource () const |
bool | isReferenced () const |
bool | isRemoval () const |
KateEditInfo (Kate::EditSource source, const KTextEditor::Range &oldRange, const QStringList &oldText, const KTextEditor::Range &newRange, const QStringList &newText) | |
const KTextEditor::Range & | newRange () const |
const QStringList & | newText () const |
virtual QStringList | newText (const KTextEditor::Range &range) const |
const KTextEditor::Range & | oldRange () const |
const QStringList & | oldText () const |
virtual QStringList | oldText (const KTextEditor::Range &range) const |
void | referenceRevision () |
const KTextEditor::Cursor & | start () const |
const KTextEditor::Cursor & | translate () const |
virtual | ~KateEditInfo () |
Detailed Description
Represents a single edit to a KateDocument.
Definition at line 37 of file kateedit.h.
Constructor & Destructor Documentation
KateEditInfo::KateEditInfo | ( | 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 33 of file kateedit.cpp.
Member Function Documentation
void KateEditInfo::dereferenceRevision | ( | ) |
Definition at line 96 of file kateedit.cpp.
Kate::EditSource KateEditInfo::editSource | ( | ) | const |
Returns how this edit was generated.
- See also:
- Kate::EditSource
Definition at line 37 of file kateedit.cpp.
bool KateEditInfo::isReferenced | ( | ) | const |
Definition at line 91 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 69 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 106 of file kateedit.cpp.
QStringList KateEditInfo::newText | ( | const KTextEditor::Range & | range | ) | const [virtual] |
Returns the text which occupies range
after this edit took place.
- See also:
- newText()
Definition at line 74 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 42 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 64 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 47 of file kateedit.cpp.
void KateEditInfo::referenceRevision | ( | ) |
Definition at line 101 of file kateedit.cpp.
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 57 of file kateedit.h.
const KTextEditor::Cursor& KateEditInfo::translate | ( | ) | const [inline] |
Definition at line 94 of file kateedit.h.
The documentation for this class was generated from the following files: