-rw-r--r-- | core/apps/helpbrowser/helpbrowser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/apps/helpbrowser/helpbrowser.h b/core/apps/helpbrowser/helpbrowser.h index 5f7e6b6..2f148ad 100644 --- a/core/apps/helpbrowser/helpbrowser.h +++ b/core/apps/helpbrowser/helpbrowser.h | |||
@@ -1,69 +1,70 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of the Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #ifndef HELPWINDOW_H | 21 | #ifndef HELPWINDOW_H |
22 | #define HELPWINDOW_H | 22 | #define HELPWINDOW_H |
23 | 23 | ||
24 | #include <qmainwindow.h> | 24 | #include <qmainwindow.h> |
25 | #include <qtextbrowser.h> | 25 | #include <qtextbrowser.h> |
26 | #include <qstringlist.h> | 26 | #include <qstringlist.h> |
27 | #include <qmap.h> | 27 | #include <qmap.h> |
28 | 28 | ||
29 | class QPopupMenu; | 29 | class QPopupMenu; |
30 | class QAction; | 30 | class QAction; |
31 | 31 | ||
32 | class HelpBrowser : public QMainWindow | 32 | class HelpBrowser : public QMainWindow |
33 | { | 33 | { |
34 | Q_OBJECT | 34 | Q_OBJECT |
35 | public: | 35 | public: |
36 | HelpBrowser( QWidget* parent = 0, const char *name=0, WFlags f=0 ); | 36 | HelpBrowser( QWidget* parent = 0, const char *name=0, WFlags f=0 ); |
37 | static QString appName() { return QString::fromLatin1("helpbrowser"); } | ||
37 | ~HelpBrowser(); | 38 | ~HelpBrowser(); |
38 | 39 | ||
39 | public slots: | 40 | public slots: |
40 | void setDocument( const QString &doc ); | 41 | void setDocument( const QString &doc ); |
41 | 42 | ||
42 | private slots: | 43 | private slots: |
43 | void appMessage(const QCString& msg, const QByteArray& data); | 44 | void appMessage(const QCString& msg, const QByteArray& data); |
44 | void textChanged(); | 45 | void textChanged(); |
45 | 46 | ||
46 | void pathSelected( const QString & ); | 47 | void pathSelected( const QString & ); |
47 | void bookmChosen( int ); | 48 | void bookmChosen( int ); |
48 | void addBookmark(); | 49 | void addBookmark(); |
49 | void removeBookmark(); | 50 | void removeBookmark(); |
50 | 51 | ||
51 | private: | 52 | private: |
52 | void init( const QString & ); | 53 | void init( const QString & ); |
53 | void readBookmarks(); | 54 | void readBookmarks(); |
54 | 55 | ||
55 | QTextBrowser* browser; | 56 | QTextBrowser* browser; |
56 | QAction *backAction; | 57 | QAction *backAction; |
57 | QAction *forwardAction; | 58 | QAction *forwardAction; |
58 | QString selectedURL; | 59 | QString selectedURL; |
59 | struct Bookmark { | 60 | struct Bookmark { |
60 | QString name; | 61 | QString name; |
61 | QString file; | 62 | QString file; |
62 | }; | 63 | }; |
63 | QMap<int, Bookmark> mBookmarks; | 64 | QMap<int, Bookmark> mBookmarks; |
64 | QMenuBar *menu; | 65 | QMenuBar *menu; |
65 | QPopupMenu *bookm; | 66 | QPopupMenu *bookm; |
66 | }; | 67 | }; |
67 | 68 | ||
68 | #endif | 69 | #endif |
69 | 70 | ||