KateSuperRangeList Class Reference

Inheritance diagram for KateSuperRangeList:

QObject QPtrList< KateSuperRange > List of all members.

Detailed Description

Definition at line 339 of file katesupercursor.h.


Signals

void rangeEliminated (KateSuperRange *range)
void listEmpty ()
void tagRange (KateSuperRange *range)

Public Member Functions

 KateSuperRangeList (bool autoManage=true, QObject *parent=0L, const char *name=0L)
 KateSuperRangeList (const QPtrList< KateSuperRange > &rangeList, QObject *parent=0L, const char *name=0L)
virtual ~KateSuperRangeList ()
void appendList (const QPtrList< KateSuperRange > &rangeList)
void connectAll ()
virtual void clear ()
bool autoManage () const
void setAutoManage (bool autoManage)
QPtrList< KateSuperRangerangesIncluding (const KateTextCursor &cursor)
QPtrList< KateSuperRangerangesIncluding (uint line)
bool rangesInclude (const KateTextCursor &cursor)
KateSuperCursorfirstBoundary (const KateTextCursor *start=0L)
KateSuperCursornextBoundary ()
KateSuperCursorcurrentBoundary ()

Protected Member Functions

virtual int compareItems (QPtrCollection::Item item1, QPtrCollection::Item item2)
virtual QPtrCollection::Item newItem (QPtrCollection::Item d)

Constructor & Destructor Documentation

KateSuperRangeList::KateSuperRangeList ( bool  autoManage = true,
QObject parent = 0L,
const char *  name = 0L 
)

See also:
autoManage()

Definition at line 547 of file katesupercursor.cpp.

KateSuperRangeList::KateSuperRangeList ( const QPtrList< KateSuperRange > &  rangeList,
QObject parent = 0L,
const char *  name = 0L 
)

Semi-copy constructor.

Does not copy auto-manage value, as that would make it too easy to perform double-deletions.

Also, does not connect signals and slots to save time, as this is mainly used by the document itself while drawing (call connectAll() to re-constitute)

Definition at line 556 of file katesupercursor.cpp.


Member Function Documentation

void KateSuperRangeList::appendList ( const QPtrList< KateSuperRange > &  rangeList  ) 

Append another list.

If this object was created by the semi-copy constructor, it may not connect items (unless connectAll() has already been called), call connectAll().

Definition at line 565 of file katesupercursor.cpp.

void KateSuperRangeList::connectAll (  ) 

Connect items that are not connected.

This only needs to be called once, and only if this was created with the semi-copy constructor.

Definition at line 579 of file katesupercursor.cpp.

void KateSuperRangeList::clear (  )  [virtual]

Override to emit rangeEliminated() signals.

Reimplemented from QPtrList< KateSuperRange >.

Definition at line 571 of file katesupercursor.cpp.

bool KateSuperRangeList::autoManage (  )  const

Automanage is a combination of autodeleting of the objects and removing of any eliminated() ranges.

Definition at line 590 of file katesupercursor.cpp.

void KateSuperRangeList::setAutoManage ( bool  autoManage  ) 

See also:
autoManage()

Definition at line 595 of file katesupercursor.cpp.

QPtrList< KateSuperRange > KateSuperRangeList::rangesIncluding ( const KateTextCursor cursor  ) 

This is just a straight-forward list so that there is no confusion about whether this list should be auto-managed (ie.

it shouldn't, to avoid double deletions).

Definition at line 601 of file katesupercursor.cpp.

bool KateSuperRangeList::rangesInclude ( const KateTextCursor cursor  ) 

Return values:
true if one of the ranges in the list includes cursor

Return values:
false otherwise

Definition at line 627 of file katesupercursor.cpp.

KateSuperCursor * KateSuperRangeList::firstBoundary ( const KateTextCursor start = 0L  ) 

Construct a list of boundaries, and return the first, or 0L if there are none.

If start is defined, the first boundary returned will be at or after start.

Returns:
the first boundary location

Definition at line 674 of file katesupercursor.cpp.

KateSuperCursor * KateSuperRangeList::nextBoundary (  ) 

Returns:
the next boundary, or 0L if there are no more.

Definition at line 696 of file katesupercursor.cpp.

KateSuperCursor * KateSuperRangeList::currentBoundary (  ) 

Returns:
the current boundary

Definition at line 709 of file katesupercursor.cpp.

void KateSuperRangeList::rangeEliminated ( KateSuperRange range  )  [signal]

The range now contains no characters (ie.

the start and end cursors are the same). If autoManage() is true, the range will be deleted after the signal has processed.

void KateSuperRangeList::listEmpty (  )  [signal]

There are no ranges left.

void KateSuperRangeList::tagRange ( KateSuperRange range  )  [signal]

Connected to all ranges if connect()ed.

int KateSuperRangeList::compareItems ( QPtrCollection::Item  item1,
QPtrCollection::Item  item2 
) [protected, virtual]

internal reimplementation

Reimplemented from QPtrList< KateSuperRange >.

Definition at line 714 of file katesupercursor.cpp.

QPtrCollection::Item KateSuperRangeList::newItem ( QPtrCollection::Item  d  )  [protected, virtual]

internal reimplementation

Definition at line 727 of file katesupercursor.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys