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