KTextEditor
smartcursor.h
Go to the documentation of this file.
virtual void setPosition(const Cursor &position)
Set the current cursor position to position.
Definition cursor.cpp:96
A class which provides notifications of state changes to a SmartCursor via QObject signals.
Definition smartcursornotifier.h:47
A class which provides notifications of state changes to a SmartCursor via virtual inheritance.
Definition smartcursorwatcher.h:48
A Cursor which is bound to a specific Document, and maintains its position.
Definition smartcursor.h:66
Document * document() const
Returns the document to which this cursor is attached.
Definition smartcursor.cpp:68
virtual void setWatcher(SmartCursorWatcher *watcher=0L)=0
Provide a SmartCursorWatcher to receive calls indicating change of state of this cursor.
virtual bool atEndOfDocument() const
Determine if this cursor is located at the end of the document.
Definition smartcursor.cpp:43
virtual SmartCursorWatcher * watcher() const =0
Returns a pointer to the current SmartCursorWatcher, if one has been set.
SmartCursor(const Cursor &position, Document *doc, InsertBehavior insertBehavior)
Definition smartcursor.cpp:26
virtual void deleteNotifier()=0
Deletes the current SmartCursorNotifier.
virtual bool insertText(const QStringList &text, bool block=false)
Insert text into the associated Document.
Definition smartcursor.cpp:53
QChar character() const
Returns the character in the document immediately after this position, ie.
Definition smartcursor.cpp:58
virtual SmartCursorNotifier * notifier()=0
Returns the current SmartCursorNotifier.
virtual SmartCursor * toSmartCursor() const
Returns this cursor as a SmartCursor.
Definition smartcursor.cpp:88
SmartRange * smartRange() const
Returns the range that this cursor belongs to, if any.
Definition smartcursor.cpp:63
virtual bool isSmartCursor() const
Returns that this cursor is a SmartCursor.
Definition smartcursor.cpp:48
virtual bool hasNotifier() const =0
Determine if a notifier already exists for this smart cursor.
virtual bool atEndOfLine() const
Determine if this cursor is located at the end of the current line.
Definition smartcursor.cpp:73
@ ByCharacter
Movement is calculated on the basis of absolute numbers of characters.
Definition smartcursor.h:151
@ ByCursorPosition
Movement takes into account valid cursor positions only (as defined by bidirectional processing)
Definition smartcursor.h:153
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-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.