Kate::TextHistory
#include <katetexthistory.h>
Public Member Functions | |
qint64 | lastSavedRevision () const |
void | lockRevision (qint64 revision) |
qint64 | revision () const |
void | transformCursor (int &line, int &column, KTextEditor::MovingCursor::InsertBehavior insertBehavior, qint64 fromRevision, qint64 toRevision=-1) |
void | transformRange (KTextEditor::Range &range, KTextEditor::MovingRange::InsertBehaviors insertBehaviors, KTextEditor::MovingRange::EmptyBehavior emptyBehavior, qint64 fromRevision, qint64 toRevision=-1) |
void | unlockRevision (qint64 revision) |
Detailed Description
Class representing the editing history of a TextBuffer.
Definition at line 23 of file katetexthistory.h.
Member Function Documentation
◆ lastSavedRevision()
|
inline |
Last revision the buffer got successful saved.
- Returns
- last revision buffer got saved, -1 if none
Definition at line 39 of file katetexthistory.h.
◆ lockRevision()
Lock a revision, this will keep it around until released again.
But all revisions will always be cleared on buffer clear() (and therefor load())
- Parameters
-
revision revision to lock
Definition at line 115 of file katetexthistory.cpp.
◆ revision()
Current revision, just relay the revision of the buffer.
- Returns
- current revision
Definition at line 23 of file katetexthistory.cpp.
◆ transformCursor()
Transform a cursor from one revision to an other.
- Parameters
-
line line number of the cursor to transform column column number of the cursor to transform insertBehavior behavior of this cursor on insert of text at its position fromRevision from this revision we want to transform toRevision to this revision we want to transform, default of -1 is current revision
Definition at line 353 of file katetexthistory.cpp.
◆ transformRange()
Transform a range from one revision to an other.
- Parameters
-
range range to transform insertBehaviors behavior of this range on insert of text at its position emptyBehavior behavior on becoming empty fromRevision from this revision we want to transform toRevision to this revision we want to transform, default of -1 is current revision
Definition at line 394 of file katetexthistory.cpp.
◆ unlockRevision()
Release a revision.
- Parameters
-
revision revision to release
Definition at line 127 of file katetexthistory.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 12:00:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.