• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

KTextEditor

  • KTextEditor
  • SmartRangeNotifier
Signals | Public Member Functions | List of all members
KTextEditor::SmartRangeNotifier Class Reference
Smart Cursors and Ranges

#include <smartrangenotifier.h>

Inheritance diagram for KTextEditor::SmartRangeNotifier:
Inheritance graph
[legend]

Signals

void caretEnteredRange (KTextEditor::SmartRange *range, KTextEditor::View *view)
 
void caretExitedRange (KTextEditor::SmartRange *range, KTextEditor::View *view)
 
void childRangeInserted (KTextEditor::SmartRange *range, KTextEditor::SmartRange *child)
 
void childRangeRemoved (KTextEditor::SmartRange *range, KTextEditor::SmartRange *child)
 
void mouseEnteredRange (KTextEditor::SmartRange *range, KTextEditor::View *view)
 
void mouseExitedRange (KTextEditor::SmartRange *range, KTextEditor::View *view)
 
void parentRangeChanged (KTextEditor::SmartRange *range, KTextEditor::SmartRange *newParent, KTextEditor::SmartRange *oldParent)
 
void rangeAttributeChanged (KTextEditor::SmartRange *range, KTextEditor::Attribute::Ptr currentAttribute, KTextEditor::Attribute::Ptr previousAttribute)
 
void rangeContentsChanged (KTextEditor::SmartRange *range)
 
void rangeContentsChanged (KTextEditor::SmartRange *range, KTextEditor::SmartRange *mostSpecificChild)
 
void rangeDeleted (KTextEditor::SmartRange *range)
 
void rangeEliminated (KTextEditor::SmartRange *range)
 
void rangePositionChanged (KTextEditor::SmartRange *range)
 

Public Member Functions

 SmartRangeNotifier ()
 
void setWantsDirectChanges (bool wantsDirectChanges)
 
bool wantsDirectChanges () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

A class which provides notifications of state changes to a SmartRange via QObject signals.

This class provides notifications of changes to the position or contents of a SmartRange via QObject signals.

If you prefer to receive notifications via virtual inheritance, see SmartRangeWatcher.

See also
SmartRange, SmartRangeWatcher
Author
Hamish Rodda <rodda.nosp@m.@kde.nosp@m..org>

Definition at line 48 of file smartrangenotifier.h.

Constructor & Destructor Documentation

SmartRangeNotifier::SmartRangeNotifier ( )

Default constructor.

Definition at line 28 of file rangefeedback.cpp.

Member Function Documentation

void KTextEditor::SmartRangeNotifier::caretEnteredRange ( KTextEditor::SmartRange *  range,
KTextEditor::View *  view 
)
signal

The caret on view entered range.

Todo:
For now, to receive this notification, the range heirachy must be registered with the SmartInterface as for arbitrary highlighting with dynamic highlighting. Need to add another (and probably simplify existing) method.
Parameters
rangepointer to the range which generated the notification.
viewview over which the mouse moved to generate the notification
void KTextEditor::SmartRangeNotifier::caretExitedRange ( KTextEditor::SmartRange *  range,
KTextEditor::View *  view 
)
signal

The caret on view exited range.

Todo:
For now, to receive this notification, the range heirachy must be registered with the SmartInterface as for arbitrary highlighting with dynamic highlighting. Need to add another (and probably simplify existing) method.
Parameters
rangepointer to the range which generated the notification.
viewview over which the mouse moved to generate the notification
void KTextEditor::SmartRangeNotifier::childRangeInserted ( KTextEditor::SmartRange *  range,
KTextEditor::SmartRange *  child 
)
signal

The range child was inserted as a child range into the current range.

Parameters
rangepointer to the range which generated the notification.
childpointer to the range which was inserted as a child range.
void KTextEditor::SmartRangeNotifier::childRangeRemoved ( KTextEditor::SmartRange *  range,
KTextEditor::SmartRange *  child 
)
signal

The child range child was removed from the current range.

Parameters
rangepointer to the range which generated the notification.
childpointer to the child range which was removed.
void KTextEditor::SmartRangeNotifier::mouseEnteredRange ( KTextEditor::SmartRange *  range,
KTextEditor::View *  view 
)
signal

The mouse cursor on view entered range.

Todo:
For now, to receive this notification, the range heirachy must be registered with the SmartInterface as for arbitrary highlighting with dynamic highlighting. Need to add another (and probably simplify existing) method.
Parameters
rangepointer to the range which generated the notification.
viewview over which the mouse moved to generate the notification
void KTextEditor::SmartRangeNotifier::mouseExitedRange ( KTextEditor::SmartRange *  range,
KTextEditor::View *  view 
)
signal

The mouse cursor on view exited range.

Todo:
For now, to receive this notification, the range heirachy must be registered with the SmartInterface as for arbitrary highlighting with dynamic highlighting. Need to add another (and probably simplify existing) method.
Parameters
rangepointer to the range which generated the notification.
viewview over which the mouse moved to generate the notification
void KTextEditor::SmartRangeNotifier::parentRangeChanged ( KTextEditor::SmartRange *  range,
KTextEditor::SmartRange *  newParent,
KTextEditor::SmartRange *  oldParent 
)
signal

The range's parent was changed.

Parameters
rangepointer to the range which generated the notification.
newParentpointer to the range which was is now the parent range.
oldParentpointer to the range which used to be the parent range.
void KTextEditor::SmartRangeNotifier::rangeAttributeChanged ( KTextEditor::SmartRange *  range,
KTextEditor::Attribute::Ptr  currentAttribute,
KTextEditor::Attribute::Ptr  previousAttribute 
)
signal

The highlighting attribute of range was changed from previousAttribute to currentAttribute.

Parameters
rangepointer to the range which generated the notification.
currentAttributethe attribute newly assigned to this range
previousAttributethe attribute previously assigned to this range
void KTextEditor::SmartRangeNotifier::rangeContentsChanged ( KTextEditor::SmartRange *  range)
signal

The contents of the range changed.

Parameters
rangepointer to the range which generated the notification.
void KTextEditor::SmartRangeNotifier::rangeContentsChanged ( KTextEditor::SmartRange *  range,
KTextEditor::SmartRange *  mostSpecificChild 
)
signal

The contents of the range changed.

Warning
This notification is special in that it is only emitted by the top range of a heirachy, and also gives the furthest descendant child range which still encompasses the whole change (see contents).
Parameters
rangepointer to the range which generated the notification.
mostSpecificChildthe child range which both contains the entire change and is the furthest descendant of this range.
void KTextEditor::SmartRangeNotifier::rangeDeleted ( KTextEditor::SmartRange *  range)
signal

The SmartRange instance specified by range is being deleted.

Parameters
rangepointer to the range which is about to be deleted. It is still safe to access information at this point.
void KTextEditor::SmartRangeNotifier::rangeEliminated ( KTextEditor::SmartRange *  range)
signal

The range now contains no characters (ie.

the start and end cursors are the same).

Parameters
rangepointer to the range which generated the notification.
void KTextEditor::SmartRangeNotifier::rangePositionChanged ( KTextEditor::SmartRange *  range)
signal

The range's position changed.

Parameters
rangepointer to the range which generated the notification.
void SmartRangeNotifier::setWantsDirectChanges ( bool  wantsDirectChanges)

Set whether this notifier should notify of changes that happen directly to the range, e.g.

by calls to SmartCursor::setRange(), or by direct assignment to either of the start() or end() cursors, rather than just when surrounding text changes.

Parameters
wantsDirectChangeswhether this watcher should provide notifications for direct changes.

Definition at line 38 of file rangefeedback.cpp.

bool SmartRangeNotifier::wantsDirectChanges ( ) const

Returns whether this notifier will notify of changes that happen directly to the range, e.g.

by calls to SmartCursor::setRange(), or by direct assignment to either of the start() or end() cursors, rather than just when surrounding text changes.

Definition at line 33 of file rangefeedback.cpp.


The documentation for this class was generated from the following files:
  • smartrangenotifier.h
  • rangefeedback.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTextEditor

Skip menu "KTextEditor"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal