|
Last change
on this file since 94 was 2, checked in by dmik, 20 years ago |
|
Imported xplatform parts of the official release 3.3.1 from Trolltech
|
-
Property svn:keywords
set to
Id
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | /****************************************************************************
|
|---|
| 2 | ** $Id: helpwindow.h 2 2005-11-16 15:49:26Z dmik $
|
|---|
| 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 |
|
|---|
| 20 | class QComboBox;
|
|---|
| 21 | class QPopupMenu;
|
|---|
| 22 |
|
|---|
| 23 | class HelpWindow : public QMainWindow
|
|---|
| 24 | {
|
|---|
| 25 | Q_OBJECT
|
|---|
| 26 | public:
|
|---|
| 27 | HelpWindow( const QString& home_, const QString& path, QWidget* parent = 0, const char *name=0 );
|
|---|
| 28 | ~HelpWindow();
|
|---|
| 29 |
|
|---|
| 30 | private slots:
|
|---|
| 31 | void setBackwardAvailable( bool );
|
|---|
| 32 | void setForwardAvailable( bool );
|
|---|
| 33 |
|
|---|
| 34 | void sourceChanged( const QString& );
|
|---|
| 35 | void about();
|
|---|
| 36 | void aboutQt();
|
|---|
| 37 | void openFile();
|
|---|
| 38 | void newWindow();
|
|---|
| 39 | void print();
|
|---|
| 40 |
|
|---|
| 41 | void pathSelected( const QString & );
|
|---|
| 42 | void histChosen( int );
|
|---|
| 43 | void bookmChosen( int );
|
|---|
| 44 | void addBookmark();
|
|---|
| 45 |
|
|---|
| 46 | private:
|
|---|
| 47 | void readHistory();
|
|---|
| 48 | void readBookmarks();
|
|---|
| 49 |
|
|---|
| 50 | QTextBrowser* browser;
|
|---|
| 51 | QComboBox *pathCombo;
|
|---|
| 52 | int backwardId, forwardId;
|
|---|
| 53 | QStringList history, bookmarks;
|
|---|
| 54 | QMap<int, QString> mHistory, mBookmarks;
|
|---|
| 55 | QPopupMenu *hist, *bookm;
|
|---|
| 56 |
|
|---|
| 57 | };
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 | #endif
|
|---|
| 64 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.