katesupercursor.h
55 KateSuperCursor(KateDocument* doc, bool privateC, const KateTextCursor& cursor, TQObject* parent = 0L, const char* name = 0L);
56 KateSuperCursor(KateDocument* doc, bool privateC, int lineNum = 0, int col = 0, TQObject* parent = 0L, const char* name = 0L);
183 };
188 KateSuperRange(KateSuperCursor* start, KateSuperCursor* end, TQObject* parent = 0L, const char* name = 0L);
189 KateSuperRange(KateDocument* doc, const KateRange& range, TQObject* parent = 0L, const char* name = 0L);
190 KateSuperRange(KateDocument* doc, const KateTextCursor& start, const KateTextCursor& end, TQObject* parent = 0L, const char* name = 0L);
358 KateSuperRangeList(const TQPtrList<KateSuperRange>& rangeList, TQObject* parent = 0L, const char* name = 0L);
void setMoveOnInsert(bool moveOnInsert)
Change the behavior of the cursor when text is inserted at the cursor.
Definition: katesupercursor.cpp:100
void charDeletedAfter()
The character immediately after the cursor was deleted.
void charInsertedAt()
A character was inserted immediately before the cursor.
void positionDeleted()
The cursor's surrounding characters were both deleted simultaneously.
void positionDirectlyChanged()
The cursor's position was directly changed by the program.
KateSuperCursor(KateDocument *doc, bool privateC, const KateTextCursor &cursor, TQObject *parent=0L, const char *name=0L)
bool privateC says: if private, than don't show to apps using the cursorinterface in the list,...
Definition: katesupercursor.cpp:28
void charDeletedBefore()
The character immediately before the cursor was deleted.
bool moveOnInsert() const
Returns how this cursor behaves when text is inserted at the cursor.
Definition: katesupercursor.cpp:95
void positionUnChanged()
Athough an edit took place, the cursor's position was unchanged.
Represents a range of text, from the start() to the end().
Definition: katesupercursor.h:169
virtual bool isValid() const
Start and end must be valid and start <= end.
Definition: katesupercursor.cpp:404
bool boundaryOn(uint lineNum) const
Returns whether there is a boundary of this range on line.
Definition: katesupercursor.cpp:442
KateSuperRange(KateSuperCursor *start, KateSuperCursor *end, TQObject *parent=0L, const char *name=0L)
Constructor.
Definition: katesupercursor.cpp:280
bool includes(const KateTextCursor &cursor) const
Returns true if the range includes cursor 's character.
Definition: katesupercursor.cpp:422
int behaviour() const
Returns how this range reacts to characters inserted immediately outside the range.
Definition: katesupercursor.cpp:393
bool includesWholeLine(uint lineNum) const
Returns true if the range totally encompasses line.
Definition: katesupercursor.cpp:432
InsertBehaviour
Determine how the range reacts to characters inserted immediately outside the range.
Definition: katesupercursor.h:176
@ DoNotExpand
Don't expand to encapsulate new characters in either direction. This is the default.
Definition: katesupercursor.h:178
@ ExpandRight
Expand to encapsulate new characters to the right of the range.
Definition: katesupercursor.h:182
@ ExpandLeft
Expand to encapsulate new characters to the left of the range.
Definition: katesupercursor.h:180
void positionChanged()
More interesting signals that aren't worth implementing here: firstCharDeleted: start()::charDeleted(...
void boundaryDeleted()
Either cursor's surrounding characters were both deleted.
bool owns(const KateTextCursor &cursor) const
This is for use where the ranges are used in a heirachy, ie.
Definition: katesupercursor.cpp:409
bool boundaryAt(const KateTextCursor &cursor) const
Returns whether cursor is the site of a boundary of this range.
Definition: katesupercursor.cpp:437
void setBehaviour(int behaviour)
Determine how the range should react to characters inserted immediately outside the range.
Definition: katesupercursor.cpp:398
TDEAction * clear(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0)