1 | /* |
---|
2 | |
---|
3 | Copyright 2013 Benjamin Eltzner |
---|
4 | Copyright 2013 Adam Reichold |
---|
5 | |
---|
6 | This file is part of qpdfview. |
---|
7 | |
---|
8 | qpdfview is free software: you can redistribute it and/or modify |
---|
9 | it under the terms of the GNU General Public License as published by |
---|
10 | the Free Software Foundation, either version 2 of the License, or |
---|
11 | (at your option) any later version. |
---|
12 | |
---|
13 | qpdfview is distributed in the hope that it will be useful, |
---|
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | GNU General Public License for more details. |
---|
17 | |
---|
18 | You should have received a copy of the GNU General Public License |
---|
19 | along with qpdfview. If not, see <http://www.gnu.org/licenses/>. |
---|
20 | |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef HELPDIALOG_H |
---|
24 | #define HELPDIALOG_H |
---|
25 | |
---|
26 | #include <QDialog> |
---|
27 | |
---|
28 | class QDialogButtonBox; |
---|
29 | class QTextBrowser; |
---|
30 | class QLineEdit; |
---|
31 | |
---|
32 | namespace qpdfview |
---|
33 | { |
---|
34 | |
---|
35 | class HelpDialog : public QDialog |
---|
36 | { |
---|
37 | Q_OBJECT |
---|
38 | |
---|
39 | public: |
---|
40 | explicit HelpDialog(QWidget* parent = 0); |
---|
41 | ~HelpDialog(); |
---|
42 | |
---|
43 | protected slots: |
---|
44 | void on_findPrevious_triggered(); |
---|
45 | void on_findNext_triggered(); |
---|
46 | void on_search_textEdited(); |
---|
47 | |
---|
48 | private: |
---|
49 | Q_DISABLE_COPY(HelpDialog) |
---|
50 | |
---|
51 | QTextBrowser* m_textBrowser; |
---|
52 | |
---|
53 | QDialogButtonBox* m_dialogButtonBox; |
---|
54 | |
---|
55 | QLineEdit* m_searchLineEdit; |
---|
56 | QPushButton* m_findPreviousButton; |
---|
57 | QPushButton* m_findNextButton; |
---|
58 | |
---|
59 | }; |
---|
60 | |
---|
61 | } // qpdfview |
---|
62 | |
---|
63 | #endif // HELPDIALOG_H |
---|