KTextEditor::MovingInterface
#include <KTextEditor/MovingInterface>

Detailed Description
Document interface for MovingCursors and MovingRanges.
This class provides the interface for KTextEditor::Documents to create MovingCursors/Ranges.
- Since
- 4.5
Definition at line 34 of file movinginterface.h.
Constructor & Destructor Documentation
◆ MovingInterface()
|
default |
Default constructor.
◆ ~MovingInterface()
|
virtualdefault |
Virtual destructor.
Member Function Documentation
◆ aboutToDeleteMovingInterfaceContent()
void KTextEditor::MovingInterface::aboutToDeleteMovingInterfaceContent | ( | KTextEditor::Document * | document | ) |
This signal is emitted before the cursors/ranges/revisions of a document are destroyed as the document is deleted.
- Parameters
-
document the document which the interface belongs to which is in the process of being deleted
◆ aboutToInvalidateMovingInterfaceContent()
void KTextEditor::MovingInterface::aboutToInvalidateMovingInterfaceContent | ( | KTextEditor::Document * | document | ) |
This signal is emitted before the ranges of a document are invalidated and the revisions are deleted as the document is cleared (for example on load/reload).
While this signal is emitted, the old document content is still valid and accessible before the clear.
- Parameters
-
document the document which the interface belongs to which will invalidate its data
◆ lastSavedRevision()
|
pure virtual |
Last revision the buffer got successful saved.
- Returns
- last revision buffer got saved, -1 if none
Implemented in KTextEditor.
◆ lockRevision()
|
pure virtual |
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
Implemented in KTextEditor.
◆ newMovingCursor()
|
pure virtual |
Create a new moving cursor for this document.
- Parameters
-
position position of the moving cursor to create insertBehavior insertion behavior
- Returns
- new moving cursor for the document
Implemented in KTextEditor.
◆ newMovingRange()
|
pure virtual |
Create a new moving range for this document.
- Parameters
-
range range of the moving range to create insertBehaviors insertion behaviors emptyBehavior behavior on becoming empty
- Returns
- new moving range for the document
Implemented in KTextEditor.
◆ revision()
|
pure virtual |
◆ transformCursor() [1/2]
|
pure virtual |
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
Implemented in KTextEditor.
◆ transformCursor() [2/2]
|
pure virtual |
Transform a cursor from one revision to an other.
- Parameters
-
cursor 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
Implemented in KTextEditor.
◆ transformRange()
|
pure virtual |
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
Implemented in KTextEditor.
◆ unlockRevision()
|
pure virtual |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:50:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.