class KTextEditor.SmartCursorWatcher |
|
|
A class which provides notifications of state changes to a SmartCursor via virtual inheritance. This class provides notifications of changes to a SmartCursor such as the position in the document, and deletion or insertion of text immediately before or after the cursor. If you prefer to receive notifications via QObject signals, see SmartCursorNotifier. See also SmartCursor, SmartCursorNotifier
Author Hamish Rodda \ |
|
Default constructor. |
|
The character immediately surrounding the cursor was deleted. If both characters are simultaneously deleted, positionDeleted() is called instead.
cursor - pointer to the cursor which generated the notification. deletedBefore - true if the character immediately before was deleted, false if the character immediately after was deleted. |
|
A character was inserted immediately before or after the cursor, as given by insertedBefore.
cursor - pointer to the cursor which generated the notification. insertedBefore - true if a character was inserted before cursor, false if a character was inserted after |
|
The SmartCursor instance specified by cursor is being deleted.
cursor - pointer to the cursor which is about to be deleted. It is still safe to access information at this point. |
|
The cursor's position was changed.
cursor - pointer to the cursor which generated the notification. |
|
The cursor's surrounding characters were both deleted simultaneously. The cursor is automatically placed at the start of the deleted region.
cursor - pointer to the cursor which generated the notification. |
|
Set whether this watcher should be notified of changes that happen directly to the cursor, e.g. by calls to SmartCursor.setPosition(), rather than just when surrounding text changes.
wantsDirectChanges - whether this watcher should receive notifications for direct changes. |
|
Returns whether this watcher wants to be notified of changes that happen directly to the cursor, e.g. by calls to SmartCursor.setPosition(), rather than just when surrounding text changes. |