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

Kate

KateDocCursor Class Reference

Cursor class with a pointer to its document. More...

#include <katecursor.h>

Inheritance diagram for KateDocCursor:
KTextEditor::Cursor

List of all members.

Public Member Functions

uchar currentAttrib () const
QChar currentChar () const
bool gotoEndOfNextLine ()
bool gotoEndOfPreviousLine ()
bool gotoNextLine ()
bool gotoPreviousLine ()
bool insertText (const QString &text)
 KateDocCursor (int line, int col, KateDocument *doc)
 KateDocCursor (const KTextEditor::Cursor &position, KateDocument *doc)
 KateDocCursor (KateDocument *doc)
bool moveBackward (uint nbChar)
bool moveForward (uint nbChar)
int nbCharsOnLineAfter ()
bool nextNonSpaceChar ()
bool previousNonSpaceChar ()
bool removeText (uint numberOfCharacters)
bool validPosition ()
bool validPosition (int line, int col)
virtual ~KateDocCursor ()

Protected Attributes

KateDocument * m_doc

Detailed Description

Cursor class with a pointer to its document.

Definition at line 35 of file katecursor.h.


Constructor & Destructor Documentation

KateDocCursor::KateDocCursor ( KateDocument *  doc  )  [explicit]

Definition at line 34 of file katecursor.cpp.

KateDocCursor::KateDocCursor ( const KTextEditor::Cursor &  position,
KateDocument *  doc 
)

Definition at line 38 of file katecursor.cpp.

KateDocCursor::KateDocCursor ( int  line,
int  col,
KateDocument *  doc 
)

Definition at line 43 of file katecursor.cpp.

virtual KateDocCursor::~KateDocCursor (  )  [inline, virtual]

Definition at line 41 of file katecursor.h.


Member Function Documentation

uchar KateDocCursor::currentAttrib (  )  const

Definition at line 148 of file katecursor.cpp.

QChar KateDocCursor::currentChar (  )  const

Definition at line 143 of file katecursor.cpp.

bool KateDocCursor::gotoEndOfNextLine (  ) 

Definition at line 82 of file katecursor.cpp.

bool KateDocCursor::gotoEndOfPreviousLine (  ) 

Definition at line 91 of file katecursor.cpp.

bool KateDocCursor::gotoNextLine (  ) 

Definition at line 58 of file katecursor.cpp.

bool KateDocCursor::gotoPreviousLine (  ) 

Definition at line 70 of file katecursor.cpp.

bool KateDocCursor::insertText ( const QString &  text  ) 

Definition at line 128 of file katecursor.cpp.

bool KateDocCursor::moveBackward ( uint  nbChar  ) 

Definition at line 117 of file katecursor.cpp.

bool KateDocCursor::moveForward ( uint  nbChar  ) 

Definition at line 105 of file katecursor.cpp.

int KateDocCursor::nbCharsOnLineAfter (  ) 

Definition at line 100 of file katecursor.cpp.

bool KateDocCursor::nextNonSpaceChar (  ) 

Find the position (line and col) of the next char that is not a space.

If found KateDocCursor points to the found character. Otherwise to a invalid Position such that validPosition() returns false.

Returns:
True if the specified or a following character is not a space Otherwise false.

Definition at line 153 of file katecursor.cpp.

bool KateDocCursor::previousNonSpaceChar (  ) 

Find the position (line and col) of the previous char that is not a space.

If found KateDocCursor points to the found character. Otherwise to a invalid Position such that validPosition() returns false.

Returns:
True if the specified or a preceding character is not a space Otherwise false.

Definition at line 166 of file katecursor.cpp.

bool KateDocCursor::removeText ( uint  numberOfCharacters  ) 

Definition at line 133 of file katecursor.cpp.

bool KateDocCursor::validPosition (  ) 

Definition at line 53 of file katecursor.cpp.

bool KateDocCursor::validPosition ( int  line,
int  col 
)

Definition at line 48 of file katecursor.cpp.


Member Data Documentation

KateDocument* KateDocCursor::m_doc [protected]

Definition at line 82 of file katecursor.h.


The documentation for this class was generated from the following files:
  • katecursor.h
  • katecursor.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
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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