HelpTextBrowser.h

Go to the documentation of this file.
00001 /*
00002 **  This file is part of Vidalia, and is subject to the license terms in the
00003 **  LICENSE file, found in the top level directory of this distribution. If you
00004 **  did not receive the LICENSE file with this file, you may obtain it from the
00005 **  Vidalia source package distributed by the Vidalia Project at
00006 **  http://www.vidalia-project.net/. No part of Vidalia, including this file,
00007 **  may be copied, modified, propagated, or distributed except according to the
00008 **  terms described in the LICENSE file.
00009 */
00010 
00011 /*
00012 ** \file HelpTextBrowser.h
00013 ** \version $Id: HelpTextBrowser.h 3735 2009-04-28 20:28:01Z edmanm $ 
00014 ** \brief Displays an HTML-based help document
00015 */
00016 
00017 #ifndef _HELPTEXTBROWSER_H
00018 #define _HELPTEXTBROWSER_H
00019 
00020 #include <QTextBrowser>
00021 #include <QVariant>
00022 
00023 
00024 class HelpTextBrowser : public QTextBrowser
00025 {
00026   Q_OBJECT
00027 
00028 public:
00029   /** Default constructor. */
00030   HelpTextBrowser(QWidget *parent = 0);
00031   /** Loads a resource into the browser. */
00032   QVariant loadResource(int type, const QUrl &name);
00033 
00034 public slots:
00035   /** Called when the displayed document is changed. If <b>url</b> specifies
00036    * an external link, then the user will be prompted for whether they want to
00037    * open the link in their default browser or not. */
00038   virtual void setSource(const QUrl &url);
00039 };
00040 
00041 #endif
00042 

Generated on Mon Aug 30 19:09:59 2010 for Vidalia by  doxygen 1.5.9