KTextEditor
smartrange.h
Go to the documentation of this file.
622 SmartRange(SmartCursor* start, SmartCursor* end, SmartRange* parent = 0L, InsertBehaviors insertBehavior = DoNotExpand);
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
A class which provides notifications of state changes to a SmartRange via QObject signals.
Definition smartrangenotifier.h:49
A class which provides notifications of state changes to a SmartRange via virtual inheritance.
Definition smartrangewatcher.h:51
A Range which is bound to a specific Document, and maintains its position.
Definition smartrange.h:95
InsertBehavior
Determine how the range reacts to characters inserted immediately outside the range.
Definition smartrange.h:100
@ ExpandRight
Expand to encapsulate new characters to the right of the range.
Definition smartrange.h:106
@ ExpandLeft
Expand to encapsulate new characters to the left of the range.
Definition smartrange.h:104
@ DoNotExpand
Don't expand to encapsulate new characters in either direction. This is the default.
Definition smartrange.h:102
void rebuildChildStructure()
Is called after child-ranges have changed internally without the rangeChanged() notification,...
Definition smartrange.cpp:660
SmartRange * parentRange() const
Returns this range's parent range, if one exists.
Definition smartrange.h:277
SmartRange(SmartCursor *start, SmartCursor *end, SmartRange *parent=0L, InsertBehaviors insertBehavior=DoNotExpand)
Constructor for subclasses to utilise.
Definition smartrange.cpp:178
virtual void setRange(const Range &range)
Set the start and end cursors to range.start() and range.end() respectively.
Definition smartrange.cpp:232
const QList< KAction * > & associatedActions() const
Access the list of currently associated KActions.
Definition smartrange.h:487
SmartRange * topParentRange() const
Returns the range's top parent range, or this range if there are no parents.
Definition smartrange.h:318
virtual SmartRangeNotifier * createNotifier()=0
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.