| 1 | /* ---------------------------------- helpBrowser.h --------------------------------------------------------------------------- |
| 2 | header file used by helpBrowser.cpp |
| 3 | |
| 4 | =============================================================================================================================== |
| 5 | =============================================================================================================================== |
| 6 | This file is part of "luckyBackup" project |
| 7 | Copyright, Loukas Avgeriou |
| 8 | luckyBackup is distributed under the terms of the GNU General Public License |
| 9 | luckyBackup is free software: you can redistribute it and/or modify |
| 10 | it under the terms of the GNU General Public License as published by |
| 11 | the Free Software Foundation, either version 3 of the License, or |
| 12 | (at your option) any later version. |
| 13 | |
| 14 | luckyBackup is distributed in the hope that it will be useful, |
| 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | GNU General Public License for more details. |
| 18 | |
| 19 | You should have received a copy of the GNU General Public License |
| 20 | along with luckyBackup. If not, see <http://www.gnu.org/licenses/>. |
| 21 | |
| 22 | |
| 23 | project version : Please see "main.cpp" for project version |
| 24 | |
| 25 | developer : luckyb |
| 26 | last modified : 12 January 2012 |
| 27 | =============================================================================================================================== |
| 28 | ===============================================================================================================================*/ |
| 29 | |
| 30 | #ifndef HELPBROWSER_H |
| 31 | #define HELPBROWSER_H |
| 32 | |
| 33 | #include "ui_helpBrowser.h" |
| 34 | |
| 35 | //============================================================================================================== |
| 36 | //Declaration of helpBrowser class (this is the dialog with a textbrowser & 1 button) |
| 37 | |
| 38 | class helpBrowser : public QDialog |
| 39 | { |
| 40 | Q_OBJECT |
| 41 | |
| 42 | public: |
| 43 | helpBrowser (QUrl, QWidget *parent=0); |
| 44 | |
| 45 | void scrollToChapter(QString chapter) {uiB.browser -> scrollToAnchor(chapter);} |
| 46 | |
| 47 | private slots: |
| 48 | void okay(); |
| 49 | |
| 50 | private: |
| 51 | Ui::helpBrowser uiB; |
| 52 | }; |
| 53 | |
| 54 | #endif |
| 55 | |
| 56 | // end of helpBrowser.h --------------------------------------------------------------------------- |