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

kdeui

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

#include <ktextbrowser.h>

Inherits TQTextBrowser.

Signals

void mailClick (const TQString &name, const TQString &address)
 
void urlClick (const TQString &url)
 

Public Member Functions

 KTextBrowser (TQWidget *parent=0, const char *name=0, bool notifyClick=false)
 
 ~KTextBrowser (void)
 
void setNotifyClick (bool notifyClick)
 
bool isNotifyClick () const
 

Protected Member Functions

void setSource (const TQString &name)
 
virtual void keyPressEvent (TQKeyEvent *e)
 
virtual void viewportMouseMoveEvent (TQMouseEvent *e)
 
virtual void contentsWheelEvent (TQWheelEvent *e)
 
virtual TQPopupMenu * createPopupMenu (const TQPoint &pos)
 
virtual void virtual_hook (int id, void *data)
 

Properties

bool notifyClick
 

Detailed Description

Extended TQTextBrowser.

An extended TQTextBrowser.

By default it will invoke the system mailer or the system browser when a link is activated, or it can emit the signal urlClick() or mailClick() when a link is activated.

ktextbrowser.png
KDE Text Browser
Author
Espen Sand (espen.nosp@m.sa@o.nosp@m.nline.nosp@m..no)

Definition at line 42 of file ktextbrowser.h.

Constructor & Destructor Documentation

KTextBrowser::KTextBrowser ( TQWidget *  parent = 0,
const char *  name = 0,
bool  notifyClick = false 
)

Constructor.

Parameters
parentParent of the widget.
nameWidget name.
notifyClicktrue causes signals to be emitted.

Definition at line 29 of file ktextbrowser.cpp.

KTextBrowser::~KTextBrowser ( void  )

Destructor.

Definition at line 39 of file ktextbrowser.cpp.

Member Function Documentation

void KTextBrowser::contentsWheelEvent ( TQWheelEvent *  e)
protectedvirtual

Reimplemented to support Qt2 behavior (Ctrl-Wheel = fast scroll)

Definition at line 113 of file ktextbrowser.cpp.

TQPopupMenu * KTextBrowser::createPopupMenu ( const TQPoint &  pos)
protectedvirtual

Re-implemented for internal reasons.

API not affected.

See TQLineEdit::createPopupMenu().

Definition at line 121 of file ktextbrowser.cpp.

bool KTextBrowser::isNotifyClick ( ) const

Returns whether a click on a link should be handled internally or if a signal should be emitted.

Definition at line 50 of file ktextbrowser.cpp.

void KTextBrowser::keyPressEvent ( TQKeyEvent *  e)
protectedvirtual

Makes sure Key_Escape is ignored.

Definition at line 88 of file ktextbrowser.cpp.

void KTextBrowser::mailClick ( const TQString &  name,
const TQString &  address 
)
signal

Emitted when a mail link has been activated and the widget has been configured to emit the signal.

Parameters
nameThe destination name. It is TQString::null at the moment.
addressThe destination address.
void KTextBrowser::setNotifyClick ( bool  notifyClick)

Decide whether a click on a link should be handled internally or if a signal should be emitted.

Parameters
notifyClicktrue causes signals to be emitted.

Definition at line 44 of file ktextbrowser.cpp.

void KTextBrowser::setSource ( const TQString &  name)
protected

Reimplemented to NOT set the source but to do the special handling.

Do not call.

Definition at line 56 of file ktextbrowser.cpp.

void KTextBrowser::urlClick ( const TQString &  url)
signal

Emitted if mailClick() is not emitted and the widget has been configured to emit the signal.

Parameters
urlThe destination address.
void KTextBrowser::viewportMouseMoveEvent ( TQMouseEvent *  e)
protectedvirtual

Make sure we use our own hand cursor.

Definition at line 104 of file ktextbrowser.cpp.


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

kdeui

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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.6
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |