00001 /********************************************************************** 00002 ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 00003 ** Copyright (C) 2003 zecke 00004 ** 00005 ** This file is part of the Qtopia Environment. 00006 ** 00007 ** This file may be distributed and/or modified under the terms of the 00008 ** GNU General Public License version 2 as published by the Free Software 00009 ** Foundation and appearing in the file LICENSE.GPL included in the 00010 ** packaging of this file. 00011 ** 00012 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00013 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00014 ** 00015 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 00016 ** 00017 ** Contact info@trolltech.com if any conditions of this licensing are 00018 ** not clear to you. 00019 ** 00020 **********************************************************************/ 00021 #ifndef HELP_BROWSER_MAGIC_TEXT_BROWSER_H 00022 #define HELP_BROWSER_MAGIC_TEXT_BROWSER_H 00023 00024 #include <qtextbrowser.h> 00025 00026 class MagicTextBrowser : public QTextBrowser { 00027 public: 00028 MagicTextBrowser(QWidget* parent); 00029 00030 void setSource( const QString& source ); 00031 00033 bool magicQpe(const QString& source, const QString& name); 00035 bool magicOpe(const QString& source, const QString& name ); 00036 private: 00037 00038 QString generateQpe(const QString& name) const; 00039 QString generateOpe(const QString& name) const; 00040 }; 00041 00042 #endif
1.4.2