ktextbrowser.h
/* This file is part of the KDE Libraries
* Copyright (C) 1999 Espen Sand (espensa@online.no)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _KTEXT_BROWSER_H_
#define _KTEXT_BROWSER_H_
#include <qtextbrowser.h>
#include <kdelibs_export.h>
class KDEUI_EXPORT KTextBrowser : public QTextBrowser
{
Q_OBJECT
Q_PROPERTY( bool notifyClick READ isNotifyClick WRITE setNotifyClick )
public:
KTextBrowser( QWidget *parent=0, const char *name=0,
bool notifyClick=false );
~KTextBrowser( void );
void setNotifyClick( bool notifyClick );
bool isNotifyClick() const;
protected:
void setSource(const QString& name);
virtual void keyPressEvent(QKeyEvent *e);
virtual void viewportMouseMoveEvent( QMouseEvent* e);
virtual void contentsWheelEvent( QWheelEvent *e );
virtual QPopupMenu *createPopupMenu( const QPoint &pos );
signals:
void mailClick( const QString &name, const QString &address );
void urlClick( const QString &url );
private:
bool mNotifyClick;
protected:
virtual void virtual_hook( int id, void* data );
private:
class KTextBrowserPrivate;
KTextBrowserPrivate *d;
};
#endif
KTextBrowser
Extended QTextBrowser.
Definition: ktextbrowser.h:42

KDE Home | KDE Accessibility Home | Description of Access Keys