KTextEditor
smartinterface.cpp
Go to the documentation of this file.
70 Cursor SmartInterface::translateFromRevision(const Cursor& cursor, SmartCursor::InsertBehavior insertBehavior) const
76 SmartCursor* SmartInterface::newSmartCursor(int line, int column, SmartCursor::InsertBehavior insertBehavior)
89 SmartRange* SmartInterface::newSmartRange(int startLine, int startColumn, int endLine, int endColumn, SmartRange* parent, SmartRange::InsertBehaviors insertBehavior)
94 Range SmartInterface::translateFromRevision(const Range& range, SmartRange::InsertBehaviors insertBehavior) const
virtual ~SmartInterface()
Definition: smartinterface.cpp:44
virtual KTextEditor::Cursor translateFromRevision(const KTextEditor::Cursor &cursor, KTextEditor::SmartCursor::InsertBehavior insertBehavior=KTextEditor::SmartCursor::StayOnInsert) const
Translate the given cursor against the revision specified through useRevision(), using the given inse...
Definition: smartinterface.cpp:70
virtual void useRevision(int revision)=0
Tell the smart interface to work against the given revision when creating cursors and ranges...
void setClearOnDocumentReload(bool clearOnReload)
Specify whether the smart interface should be cleared on reload of the document.
Definition: smartinterface.cpp:54
A Range which is bound to a specific Document, and maintains its position.
Definition: smartrange.h:94
virtual SmartRange * newSmartRange(const Range &range=Range(), SmartRange *parent=0L, SmartRange::InsertBehaviors insertBehavior=SmartRange::DoNotExpand)=0
Creates a new SmartRange.
A Cursor which is bound to a specific Document, and maintains its position.
Definition: smartcursor.h:65
An object representing a section of text, from one Cursor to another.
Definition: range.h:54
QMutex * smartMutex() const
Provides access to the recursive mutex used to protect write access to smart interface objects (curso...
Definition: smartinterface.cpp:60
bool clearOnDocumentReload() const
Returns whether the smart interface will be cleared on reload of the document.
Definition: smartinterface.cpp:49
void clearRevision()
Clear any previous setting to use a specific revision.
Definition: smartinterface.cpp:65
virtual SmartCursor * newSmartCursor(const Cursor &position=Cursor::start(), SmartCursor::InsertBehavior insertBehavior=SmartCursor::MoveOnInsert)=0
Creates a new SmartCursor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.