summaryrefslogtreecommitdiff
path: root/core/apps/helpbrowser/helpbrowser.h
Unidiff
Diffstat (limited to 'core/apps/helpbrowser/helpbrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/helpbrowser/helpbrowser.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/core/apps/helpbrowser/helpbrowser.h b/core/apps/helpbrowser/helpbrowser.h
new file mode 100644
index 0000000..2f7153a
--- a/dev/null
+++ b/core/apps/helpbrowser/helpbrowser.h
@@ -0,0 +1,69 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qtopia Environment.
5**
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
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
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.
13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20
21#ifndef HELPWINDOW_H
22#define HELPWINDOW_H
23
24#include <qmainwindow.h>
25#include <qtextbrowser.h>
26#include <qstringlist.h>
27#include <qmap.h>
28
29class QPopupMenu;
30class QAction;
31
32class HelpBrowser : public QMainWindow
33{
34 Q_OBJECT
35public:
36 HelpBrowser( QWidget* parent = 0, const char *name=0, WFlags f=0 );
37 ~HelpBrowser();
38
39public slots:
40 void setDocument( const QString &doc );
41
42private slots:
43 void appMessage(const QCString& msg, const QByteArray& data);
44 void textChanged();
45
46 void pathSelected( const QString & );
47 void bookmChosen( int );
48 void addBookmark();
49 void removeBookmark();
50
51private:
52 void init( const QString & );
53 void readBookmarks();
54
55 QTextBrowser* browser;
56 QAction *backAction;
57 QAction *forwardAction;
58 QString selectedURL;
59 struct Bookmark {
60 QString name;
61 QString file;
62 };
63 QMap<int, Bookmark> mBookmarks;
64 QMenuBar *menu;
65 QPopupMenu *bookm;
66};
67
68#endif
69