summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opierec/helpwindow.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opierec/helpwindow.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opierec/helpwindow.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/noncore/multimedia/opierec/helpwindow.h b/noncore/multimedia/opierec/helpwindow.h
new file mode 100644
index 0000000..76b672a
--- a/dev/null
+++ b/noncore/multimedia/opierec/helpwindow.h
@@ -0,0 +1,62 @@
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*****************************************************************************/
10
11#ifndef HELPWINDOW_H
12#define HELPWINDOW_H
13
14#include <qmainwindow.h>
15#include <qtextbrowser.h>
16#include <qstringlist.h>
17#include <qmap.h>
18#include <qdir.h>
19#include <qevent.h>
20
21class QComboBox;
22class QPopupMenu;
23
24class HelpWindow : public QMainWindow
25{
26 Q_OBJECT
27public:
28 HelpWindow( const QString& home_, const QString& path, QWidget* parent = 0, const char *name=0 );
29 ~HelpWindow();
30
31private slots:
32
33 void addBookmark();
34 void bookmChosen( int );
35 void histChosen( int );
36 void newWindow();
37 void openFile();
38 void pathSelected( const QString & );
39 void print();
40 void setBackwardAvailable( bool );
41 void setForwardAvailable( bool );
42 void textChanged();
43private:
44 QTextBrowser* browser;
45 QComboBox *pathCombo;
46 int backwardId, forwardId;
47 QString selectedURL;
48 QStringList history, bookmarks;
49 QMap<int, QString> mHistory, mBookmarks;
50 QPopupMenu *hist, *bookm;
51
52 void readHistory();
53 void readBookmarks();
54
55};
56
57
58
59
60
61#endif
62