summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/stockticker/stockticker/helpwindow.h
Unidiff
Diffstat (limited to 'noncore/todayplugins/stockticker/stockticker/helpwindow.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stockticker/helpwindow.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/noncore/todayplugins/stockticker/stockticker/helpwindow.h b/noncore/todayplugins/stockticker/stockticker/helpwindow.h
new file mode 100644
index 0000000..b572edb
--- a/dev/null
+++ b/noncore/todayplugins/stockticker/stockticker/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 void setBackwardAvailable( bool );
33 void setForwardAvailable( bool );
34
35 void textChanged();
36 void openFile();
37 void newWindow();
38
39 void pathSelected( const QString & );
40 void histChosen( int );
41 void bookmChosen( int );
42 void addBookmark();
43private:
44 void readHistory();
45 void readBookmarks();
46
47 QTextBrowser* browser;
48 QComboBox *pathCombo;
49 int backwardId, forwardId;
50 QString selectedURL;
51 QStringList history, bookmarks;
52 QMap<int, QString> mHistory, mBookmarks;
53 QPopupMenu *hist, *bookm;
54
55};
56
57
58
59
60
61#endif
62