00001 /* 00002 * $Id$ 00003 * Kockpit - an Qt application for user/group management on unix based systems. 00004 * 00005 * Copyright (C) 2010 Julian Thome 00006 * 00007 * This program is free software; you can redistribute it and/or modify it under the terms of 00008 * the GNU General Public License as published by the Free Software Foundation; 00009 * either version 3 of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00012 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 * See the GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along with this program; 00016 * if not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 #ifndef KOCKPITHELP_H 00019 #define KOCKPITHELP_H 00020 00021 #include <QTextBrowser> 00022 #include <QPushButton> 00023 00025 00029 class KockpitHelp : public QWidget { 00030 00031 Q_OBJECT 00032 00033 public: 00034 00036 00041 KockpitHelp(const QString &path, const QString &page, QWidget *parent = 0); 00042 00043 static void showPage(const QString &page); 00044 00045 private slots: 00046 00048 00051 void updateWindowTitle(); 00052 00053 private: 00054 00056 QTextBrowser *textBrowser; 00058 QPushButton *homeButton; 00060 QPushButton *backButton; 00062 QPushButton *closeButton; 00063 00064 }; 00065 00066 #endif // KOCKPITHELP_H