• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

Signals | Public Member Functions | List of all members
KateSuperCursor Class Reference

#include <katesupercursor.h>

Inheritance diagram for KateSuperCursor:
KateDocCursor KateTextCursor

Signals

void positionDirectlyChanged ()
 
void positionChanged ()
 
void positionUnChanged ()
 
void positionDeleted ()
 
void charInsertedAt ()
 
void charDeletedBefore ()
 
void charDeletedAfter ()
 

Public Member Functions

 KateSuperCursor (KateDocument *doc, bool privateC, const KateTextCursor &cursor, TQObject *parent=0L, const char *name=0L)
 
 KateSuperCursor (KateDocument *doc, bool privateC, int lineNum=0, int col=0, TQObject *parent=0L, const char *name=0L)
 
void position (uint *line, uint *col) const
 
bool setPosition (uint line, uint col)
 
bool insertText (const TQString &text)
 
bool removeText (uint numberOfCharacters)
 
TQChar currentChar () const
 
bool atStartOfLine () const
 
bool atEndOfLine () const
 
bool moveOnInsert () const
 
void setMoveOnInsert (bool moveOnInsert)
 
 operator TQString ()
 
virtual void setLine (int lineNum)
 
virtual void setCol (int colNum)
 
virtual void setPos (const KateTextCursor &pos)
 
virtual void setPos (int lineNum, int colNum)
 
void editTextInserted (uint line, uint col, uint len)
 
void editTextRemoved (uint line, uint col, uint len)
 
void editLineWrapped (uint line, uint col, bool newLine=true)
 
void editLineUnWrapped (uint line, uint col, bool removeLine=true, uint length=0)
 
void editLineInserted (uint line)
 
void editLineRemoved (uint line)
 
- Public Member Functions inherited from KateDocCursor
 KateDocCursor (KateDocument *doc)
 
 KateDocCursor (int line, int col, KateDocument *doc)
 
bool validPosition (uint line, uint col)
 
bool validPosition ()
 
bool gotoNextLine ()
 
bool gotoPreviousLine ()
 
bool gotoEndOfNextLine ()
 
bool gotoEndOfPreviousLine ()
 
int nbCharsOnLineAfter ()
 
bool moveForward (uint nbChar)
 
bool moveBackward (uint nbChar)
 
void position (uint *line, uint *col) const
 
bool setPosition (uint line, uint col)
 
bool insertText (const TQString &text)
 
bool removeText (uint numberOfCharacters)
 
TQChar currentChar () const
 
uchar currentAttrib () const
 
bool nextNonSpaceChar ()
 
bool previousNonSpaceChar ()
 
- Public Member Functions inherited from KateTextCursor
 KateTextCursor (int line, int col)
 
void pos (int *pline, int *pcol) const
 
int line () const
 
int col () const
 
virtual void setLine (int line)
 
virtual void setCol (int col)
 
virtual void setPos (const KateTextCursor &pos)
 
virtual void setPos (int line, int col)
 

Additional Inherited Members

- Protected Attributes inherited from KateDocCursor
KateDocument * m_doc
 
- Protected Attributes inherited from KateTextCursor
int m_line
 
int m_col
 

Detailed Description

Possible additional features:

  • Notification when a cursor enters or exits a view
  • suggest something :)

Unresolved issues:

  • testing, testing, testing
    • ie. everything which hasn't already been tested, you can see that which has inside the #ifdefs
  • api niceness A cursor which updates and gives off various interesting signals.

This aims to be a working version of what KateCursor was originally intended to be.

Author
Hamish Rodda

Definition at line 45 of file katesupercursor.h.

Constructor & Destructor Documentation

◆ KateSuperCursor() [1/2]

KateSuperCursor::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, all internally only used SuperCursors should be private or people could modify them from the outside breaking kate's internals

Definition at line 28 of file katesupercursor.cpp.

◆ KateSuperCursor() [2/2]

KateSuperCursor::KateSuperCursor ( KateDocument *  doc,
bool  privateC,
int  lineNum = 0,
int  col = 0,
TQObject *  parent = 0L,
const char *  name = 0L 
)

Definition at line 41 of file katesupercursor.cpp.

◆ ~KateSuperCursor()

KateSuperCursor::~KateSuperCursor ( )

Definition at line 54 of file katesupercursor.cpp.

Member Function Documentation

◆ atEndOfLine()

bool KateSuperCursor::atEndOfLine ( ) const
Returns
true if the cursor is situated at the end of the line, false if it isn't.

Definition at line 90 of file katesupercursor.cpp.

◆ atStartOfLine()

bool KateSuperCursor::atStartOfLine ( ) const
Returns
true if the cursor is situated at the start of the line, false if it isn't.

Definition at line 85 of file katesupercursor.cpp.

◆ charDeletedAfter

void KateSuperCursor::charDeletedAfter ( )
signal

The character immediately after the cursor was deleted.

◆ charDeletedBefore

void KateSuperCursor::charDeletedBefore ( )
signal

The character immediately before the cursor was deleted.

◆ charInsertedAt

void KateSuperCursor::charInsertedAt ( )
signal

A character was inserted immediately before the cursor.

Whether the char was inserted before or after this cursor depends on moveOnInsert():

  • true -> the char was inserted before
  • false -> the char was inserted after

◆ currentChar()

TQChar KateSuperCursor::currentChar ( ) const

Definition at line 80 of file katesupercursor.cpp.

◆ editLineInserted()

void KateSuperCursor::editLineInserted ( uint  line)

Definition at line 239 of file katesupercursor.cpp.

◆ editLineRemoved()

void KateSuperCursor::editLineRemoved ( uint  line)

Definition at line 252 of file katesupercursor.cpp.

◆ editLineUnWrapped()

void KateSuperCursor::editLineUnWrapped ( uint  line,
uint  col,
bool  removeLine = true,
uint  length = 0 
)

Definition at line 211 of file katesupercursor.cpp.

◆ editLineWrapped()

void KateSuperCursor::editLineWrapped ( uint  line,
uint  col,
bool  newLine = true 
)

Definition at line 185 of file katesupercursor.cpp.

◆ editTextInserted()

void KateSuperCursor::editTextInserted ( uint  line,
uint  col,
uint  len 
)

Definition at line 129 of file katesupercursor.cpp.

◆ editTextRemoved()

void KateSuperCursor::editTextRemoved ( uint  line,
uint  col,
uint  len 
)

Definition at line 150 of file katesupercursor.cpp.

◆ insertText()

bool KateSuperCursor::insertText ( const TQString &  text)

Definition at line 70 of file katesupercursor.cpp.

◆ moveOnInsert()

bool KateSuperCursor::moveOnInsert ( ) const

Returns how this cursor behaves when text is inserted at the cursor.

Defaults to not moving on insert.

Definition at line 95 of file katesupercursor.cpp.

◆ operator TQString()

KateSuperCursor::operator TQString ( )

Debug: output the position.

Definition at line 275 of file katesupercursor.cpp.

◆ position()

void KateSuperCursor::position ( uint *  line,
uint *  col 
) const

Definition at line 59 of file katesupercursor.cpp.

◆ positionChanged

void KateSuperCursor::positionChanged ( )
signal

The cursor's position was changed.

◆ positionDeleted

void KateSuperCursor::positionDeleted ( )
signal

The cursor's surrounding characters were both deleted simultaneously.

The cursor is automatically placed at the start of the deleted region.

◆ positionDirectlyChanged

void KateSuperCursor::positionDirectlyChanged ( )
signal

The cursor's position was directly changed by the program.

◆ positionUnChanged

void KateSuperCursor::positionUnChanged ( )
signal

Athough an edit took place, the cursor's position was unchanged.

◆ removeText()

bool KateSuperCursor::removeText ( uint  numberOfCharacters)

Definition at line 75 of file katesupercursor.cpp.

◆ setCol()

void KateSuperCursor::setCol ( int  colNum)
virtual

Reimplemented from KateTextCursor.

Definition at line 114 of file katesupercursor.cpp.

◆ setLine()

void KateSuperCursor::setLine ( int  lineNum)
virtual

Reimplemented from KateTextCursor.

Definition at line 105 of file katesupercursor.cpp.

◆ setMoveOnInsert()

void KateSuperCursor::setMoveOnInsert ( bool  moveOnInsert)

Change the behavior of the cursor when text is inserted at the cursor.

If moveOnInsert is true, the cursor will end up at the end of the insert.

Definition at line 100 of file katesupercursor.cpp.

◆ setPos() [1/2]

void KateSuperCursor::setPos ( const KateTextCursor &  pos)
virtual

Reimplemented from KateTextCursor.

Definition at line 119 of file katesupercursor.cpp.

◆ setPos() [2/2]

void KateSuperCursor::setPos ( int  lineNum,
int  colNum 
)
virtual

Reimplemented from KateTextCursor.

Definition at line 124 of file katesupercursor.cpp.

◆ setPosition()

bool KateSuperCursor::setPosition ( uint  line,
uint  col 
)

Definition at line 64 of file katesupercursor.cpp.


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

kate

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

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.