• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Kate

KateSmartGroup Class Reference

This class holds a ground of cursors and ranges which involve a certain number of lines in a document. More...

#include <katesmartmanager.h>

List of all members.


Public Member Functions

void addCursor (KateSmartCursor *cursor)
void changeCursorFeedback (KateSmartCursor *cursor)
bool containsLine (int line) const
void debugOutput () const
void deleteCursors (bool includingInternal)
void deleteCursorsInternal (QSet< KateSmartCursor * > &set)
int endLine () const
const QSet< KateSmartCursor * > & feedbackCursors () const
void joined (KateSmartCursor *cursor)
 KateSmartGroup (int startLine, int endLine, KateSmartGroup *previous, KateSmartGroup *next)
void leaving (KateSmartCursor *cursor)
int length () const
void merge ()
int newEndLine () const
int newStartLine () const
KateSmartGroup * next () const
const QSet< KateSmartCursor * > & normalCursors () const
KateSmartGroup * previous () const
void removeCursor (KateSmartCursor *cursor)
void setEndLine (int endLine)
void setNewEndLine (int endLine)
void setNext (KateSmartGroup *next)
void setPrevious (KateSmartGroup *previous)
int startLine () const
void translateChanged (const KateEditInfo &edit)
void translatedChanged (const KateEditInfo &edit)
void translatedChanged2 (const KateEditInfo &edit)
void translatedShifted (const KateEditInfo &edit)
void translateShifted (const KateEditInfo &edit)

Detailed Description

This class holds a ground of cursors and ranges which involve a certain number of lines in a document.

It allows us to optimise away having to iterate though every single cursor and range when anything changes in the document.

Needs a comprehensive regression and performance test suite...

Definition at line 117 of file katesmartmanager.h.


Constructor & Destructor Documentation

KateSmartGroup::KateSmartGroup ( int  startLine,
int  endLine,
KateSmartGroup *  previous,
KateSmartGroup *  next 
)

Definition at line 516 of file katesmartmanager.cpp.


Member Function Documentation

void KateSmartGroup::addCursor ( KateSmartCursor *  cursor  ) 

Definition at line 236 of file katesmartmanager.cpp.

void KateSmartGroup::changeCursorFeedback ( KateSmartCursor *  cursor  ) 

Definition at line 247 of file katesmartmanager.cpp.

bool KateSmartGroup::containsLine ( int  line  )  const [inline]

Definition at line 129 of file katesmartmanager.h.

void KateSmartGroup::debugOutput (  )  const

Definition at line 579 of file katesmartmanager.cpp.

void KateSmartGroup::deleteCursors ( bool  includingInternal  ) 

Definition at line 645 of file katesmartmanager.cpp.

void KateSmartGroup::deleteCursorsInternal ( QSet< KateSmartCursor * > &  set  ) 

Definition at line 660 of file katesmartmanager.cpp.

int KateSmartGroup::endLine (  )  const [inline]

Definition at line 124 of file katesmartmanager.h.

const QSet< KateSmartCursor * > & KateSmartGroup::feedbackCursors (  )  const

Definition at line 551 of file katesmartmanager.cpp.

void KateSmartGroup::joined ( KateSmartCursor *  cursor  ) 

A cursor has joined this group.

The cursor already has its new position.

Definition at line 277 of file katesmartmanager.cpp.

void KateSmartGroup::leaving ( KateSmartCursor *  cursor  ) 

A cursor is leaving this group.

The cursor still has its old position.

Definition at line 282 of file katesmartmanager.cpp.

int KateSmartGroup::length (  )  const [inline]

Definition at line 128 of file katesmartmanager.h.

void KateSmartGroup::merge (  ) 

Definition at line 531 of file katesmartmanager.cpp.

int KateSmartGroup::newEndLine (  )  const [inline]

Definition at line 125 of file katesmartmanager.h.

int KateSmartGroup::newStartLine (  )  const [inline]

Definition at line 123 of file katesmartmanager.h.

KateSmartGroup* KateSmartGroup::next (  )  const [inline]

Definition at line 134 of file katesmartmanager.h.

const QSet< KateSmartCursor * > & KateSmartGroup::normalCursors (  )  const

Definition at line 556 of file katesmartmanager.cpp.

KateSmartGroup* KateSmartGroup::previous (  )  const [inline]

Definition at line 131 of file katesmartmanager.h.

void KateSmartGroup::removeCursor ( KateSmartCursor *  cursor  ) 

Definition at line 263 of file katesmartmanager.cpp.

void KateSmartGroup::setEndLine ( int  endLine  )  [inline]

Definition at line 126 of file katesmartmanager.h.

void KateSmartGroup::setNewEndLine ( int  endLine  )  [inline]

Definition at line 127 of file katesmartmanager.h.

void KateSmartGroup::setNext ( KateSmartGroup *  next  )  [inline]

Definition at line 135 of file katesmartmanager.h.

void KateSmartGroup::setPrevious ( KateSmartGroup *  previous  )  [inline]

Definition at line 132 of file katesmartmanager.h.

int KateSmartGroup::startLine (  )  const [inline]

Definition at line 122 of file katesmartmanager.h.

void KateSmartGroup::translateChanged ( const KateEditInfo &  edit  ) 

Definition at line 455 of file katesmartmanager.cpp.

void KateSmartGroup::translatedChanged ( const KateEditInfo &  edit  ) 

Definition at line 473 of file katesmartmanager.cpp.

void KateSmartGroup::translatedChanged2 ( const KateEditInfo &  edit  ) 

Definition at line 482 of file katesmartmanager.cpp.

void KateSmartGroup::translatedShifted ( const KateEditInfo &  edit  ) 

Definition at line 501 of file katesmartmanager.cpp.

void KateSmartGroup::translateShifted ( const KateEditInfo &  edit  ) 

Definition at line 466 of file katesmartmanager.cpp.


The documentation for this class was generated from the following files:
  • katesmartmanager.h
  • katesmartmanager.cpp

Kate

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal