summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-gutenbrowser/helpwindow.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/helpwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/helpwindow.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/noncore/apps/opie-gutenbrowser/helpwindow.h b/noncore/apps/opie-gutenbrowser/helpwindow.h
new file mode 100644
index 0000000..8b3821b
--- a/dev/null
+++ b/noncore/apps/opie-gutenbrowser/helpwindow.h
@@ -0,0 +1,67 @@
1/****************************************************************************
2** $Id$
3**
4** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
5**
6** This file is part of an example program for Qt. This example
7** program may be used, distributed and modified without limitation.
8**
9 copyright : (C) 2000 -2004 by llornkcor
10 email : ljp@llornkcor.com
11*****************************************************************************/
12
13#ifndef HELPWINDOW_H
14#define HELPWINDOW_H
15
16#include <qmainwindow.h>
17#include <qtextbrowser.h>
18#include <qstringlist.h>
19#include <qmap.h>
20#include <qdir.h>
21#include <qevent.h>
22
23class QComboBox;
24class QPopupMenu;
25
26class HelpWindow : public QMainWindow
27{
28 Q_OBJECT
29public:
30 HelpWindow( const QString& home_, const QString& path, QWidget* parent = 0, const char *name=0 );
31 ~HelpWindow();
32
33private slots:
34 void setBackwardAvailable( bool );
35 void setForwardAvailable( bool );
36
37 void textChanged();
38// void about();
39// void aboutQt();
40 void openFile();
41 void newWindow();
42 void print();
43
44 void pathSelected( const QString & );
45 void histChosen( int );
46 void bookmChosen( int );
47 void addBookmark();
48private:
49 void readHistory();
50 void readBookmarks();
51
52 QTextBrowser* browser;
53 QComboBox *pathCombo;
54 int backwardId, forwardId;
55 QString selectedURL;
56 QStringList history, bookmarks;
57 QMap<int, QString> mHistory, mBookmarks;
58 QPopupMenu *hist, *bookm;
59
60};
61
62
63
64
65
66#endif
67