Qt logo


This is the verbatim text of the qtextbrowser.h include file. It is provided only for illustration; the copyright remains with Troll Tech.
** $Id: qtextbrowser.h,v 2.5 1999/06/18 00:13:32 ettrich Exp $
** Definition of the QTextBrowser class
** Created : 990101
** Copyright (C) 1992-1999 Troll Tech AS.  All rights reserved.
** This file is part of the Qt GUI Toolkit.
** This file may be distributed under the terms of the Q Public License
** as defined by Troll Tech AS of Norway and appearing in the file
** LICENSE.QPL included in the packaging of this file.
** Licensees holding valid Qt Professional Edition licenses may use this
** file in accordance with the Qt Professional Edition License Agreement
** provided with the Qt Professional Edition.
** See http://www.troll.no/pricing.html or email sales@troll.no for
** information about the Professional Edition licensing, or see
** http://www.troll.no/qpl/ for QPL licensing information.


#include "qlist.h"
#include "qpixmap.h"
#include "qscrollview.h"
#include "qcolor.h"

#include "qtextview.h"

class QTextBrowserData;

class Q_EXPORT QTextBrowser : public QTextView
    QTextBrowser( QWidget *parent=0, const char *name=0 );

    virtual void setSource(const QString& name);
    QString source() const;

    void setText( const QString& contents, const QString& context=QString::null );

    void scrollToAnchor(const QString& name);

public slots:
    virtual void backward();
    virtual void forward();
    virtual void home();

    void backwardAvailable( bool );
    void forwardAvailable( bool );
    void highlighted( const QString& );
    void textChanged();

    void viewportMousePressEvent( QMouseEvent* );
    void viewportMouseReleaseEvent( QMouseEvent* );
    void viewportMouseMoveEvent( QMouseEvent* );
    void keyPressEvent( QKeyEvent * e);

    void popupDetail( const QString& contents, const QPoint& pos );
    const QTextContainer* anchor(const QPoint& pos);
    QTextBrowserData *d;



Copyright 1999 Troll TechTrademarks
Qt version 2.0.2