00001 /****************************************************************************** 00002 * 00003 * This file is part of Cardio Curves. 00004 * Copyright (C) 2009 Jan Gunnar Andreassen 00005 * Copyright (C) 2009 Lars Magne Engedal 00006 * 00007 * Cardio Curves is free software: you can redistribute it and/or modify 00008 * it under the terms of the GNU Lesser General Public License as published 00009 * by the Free Software Foundation, either version 2.1 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * Cardio Cruves is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public License 00018 * along with Cardio Curves. If not, see <http://www.gnu.org/licenses/>. 00019 * 00020 * Developer contact: 00021 * (janislazzaroni at users.sourceforge.net) 00022 * (engedal at users.sourceforge.net ) 00023 ******************************************************************************/ 00024 00025 #ifndef HELPBROWSER_H 00026 #define HELPBROWSER_H 00027 00028 #include <QWidget> 00029 00030 class QPushButton; 00031 class QTextBrowser; 00032 00042 class HelpBrowser : public QWidget 00043 { 00044 Q_OBJECT 00045 00046 public: 00053 HelpBrowser(const QString &path, const QString &page, QWidget *parent = 0); 00054 00059 static void showPage(const QString &page); 00060 00061 private slots: 00062 void updateWindowTitle(); 00063 00064 private: 00065 QTextBrowser *textBrowser; 00066 QPushButton *homeButton; 00067 QPushButton *backButton; 00068 QPushButton *closeButton; 00069 }; 00070 00071 #endif // HELPBROWSER_H