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

kjsembed

NumberedTextView Class Reference

Displays a QTextEdit with line numbers. More...

#include <numberedtextview.h>

Inheritance diagram for NumberedTextView:
QFrame

List of all members.

Signals

void mouseHover (const QPoint &pos, const QString &word)
void mouseHover (const QString &word)

Public Member Functions

int bugLine () const
int currentLine () const
bool eventFilter (QObject *obj, QEvent *event)
 NumberedTextView (QWidget *parent=0)
void setBugLine (int lineno)
void setCurrentLine (int lineno)
void setStopLine (int lineno)
void setText (const QString &text)
int stopLine () const
QString text () const
QTextEdit * textEdit () const
 ~NumberedTextView ()

Protected Slots

void textChanged (int pos, int added, int removed)

Properties

int bugLine
int currentLine
int stopLine
QString text

Detailed Description

Displays a QTextEdit with line numbers.

Definition at line 76 of file numberedtextview.h.


Constructor & Destructor Documentation

NumberedTextView::NumberedTextView ( QWidget *  parent = 0  ) 

Definition at line 155 of file numberedtextview.cpp.

NumberedTextView::~NumberedTextView (  ) 

Definition at line 185 of file numberedtextview.cpp.


Member Function Documentation

int NumberedTextView::bugLine (  )  const
int NumberedTextView::currentLine (  )  const
bool NumberedTextView::eventFilter ( QObject *  obj,
QEvent *  event 
)

For internal use only.

Used to get tooltip events from the view for the hover signal.

Definition at line 262 of file numberedtextview.cpp.

void NumberedTextView::mouseHover ( const QPoint &  pos,
const QString &  word 
) [signal]

Emitted when the mouse is hovered over the text edit component.

Parameters:
pos The position of the mouse pointer.
word The word under the mouse pointer
void NumberedTextView::mouseHover ( const QString &  word  )  [signal]

Emitted when the mouse is hovered over the text edit component.

Parameters:
word The word under the mouse pointer
void NumberedTextView::setBugLine ( int  lineno  ) 

Sets the line that should have the bug line indicator.

A value of -1 indicates no line should show the indicator.

Definition at line 200 of file numberedtextview.cpp.

void NumberedTextView::setCurrentLine ( int  lineno  ) 

Sets the line that should have the current line indicator.

A value of -1 indicates no line should show the indicator.

Definition at line 189 of file numberedtextview.cpp.

void NumberedTextView::setStopLine ( int  lineno  ) 

Sets the line that should have the stop line indicator.

A value of -1 indicates no line should show the indicator.

Definition at line 195 of file numberedtextview.cpp.

void NumberedTextView::setText ( const QString &  text  ) 

Definition at line 225 of file numberedtextview.cpp.

int NumberedTextView::stopLine (  )  const
QString NumberedTextView::text (  )  const
void NumberedTextView::textChanged ( int  pos,
int  added,
int  removed 
) [protected, slot]

For internal use only.

Used to update the highlight on the current line.

Definition at line 231 of file numberedtextview.cpp.

QTextEdit* NumberedTextView::textEdit (  )  const [inline]

Returns the QTextEdit of the main view.

Definition at line 88 of file numberedtextview.h.


Property Documentation

int NumberedTextView::bugLine [read, write]

Definition at line 82 of file numberedtextview.h.

int NumberedTextView::currentLine [read, write]

Definition at line 80 of file numberedtextview.h.

int NumberedTextView::stopLine [read, write]

Definition at line 81 of file numberedtextview.h.

QString NumberedTextView::text [read, write]

Definition at line 79 of file numberedtextview.h.


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

kjsembed

Skip menu "kjsembed"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

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