KTextEditor
#include <movinginterface.h>
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 47 of file movinginterface.h.
Constructor & Destructor Documentation
MovingInterface::MovingInterface | ( | ) |
Default constructor.
Definition at line 28 of file movinginterface.cpp.
|
virtual |
Virtual destructor.
Definition at line 33 of file movinginterface.cpp.
Member Function Documentation
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 too which is in the process of being deleted
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, still the old document content is around before the clear.
- Parameters
-
document the document which the interface belongs too which will invalidate its data
|
pure virtual |
Last revision the buffer got successful saved.
- Returns
- last revision buffer got saved, -1 if none
|
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
|
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
|
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
|
pure virtual |
Current revision.
- Returns
- current revision
|
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
|
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
|
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
|
pure virtual |
Release a revision.
- Parameters
-
revision revision to release
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.