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

kjsembed

Signals | Public Member Functions | Protected Slots | Properties | List of all members
NumberedTextView Class Reference

#include <numberedtextview.h>

Inheritance diagram for NumberedTextView:
Inheritance graph
[legend]

Signals

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

Public Member Functions

 NumberedTextView (QWidget *parent=0)
 
 ~NumberedTextView ()
 
int bugLine () const
 
int currentLine () const
 
bool eventFilter (QObject *obj, QEvent *event)
 
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
 

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 
)

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

Definition at line 262 of file numberedtextview.cpp.

void NumberedTextView::mouseHover ( const QString &  word)
signal

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

Parameters
wordThe word under the mouse pointer
void NumberedTextView::mouseHover ( const QPoint &  pos,
const QString &  word 
)
signal

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

Parameters
posThe position of the mouse pointer.
wordThe 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 
)
protectedslot

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
readwrite

Definition at line 82 of file numberedtextview.h.

int NumberedTextView::currentLine
readwrite

Definition at line 80 of file numberedtextview.h.

int NumberedTextView::stopLine
readwrite

Definition at line 81 of file numberedtextview.h.

QString NumberedTextView::text
readwrite

Definition at line 79 of file numberedtextview.h.


The documentation for this class was generated from the following files:
  • numberedtextview.h
  • numberedtextview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kjsembed

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal