Rev 455 | Rev 564 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3 | paul | 1 | /**************************************************************************** |
560 | cbradney | 2 | ** Form interface generated from reading ui file 'HelpBrowser.ui' |
3 | paul | 3 | ** |
560 | cbradney | 4 | ** Created: Sat Nov 6 22:08:59 2004 |
5 | ** by: The User Interface Compiler ($Id: helpbrowser.h 560 2004-11-08 01:39:29Z cbradney $) |
||
3 | paul | 6 | ** |
7 | ** WARNING! All changes made in this file will be lost! |
||
8 | ****************************************************************************/ |
||
560 | cbradney | 9 | |
3 | paul | 10 | #ifndef HELPBROWSER_H |
11 | #define HELPBROWSER_H |
||
12 | |||
560 | cbradney | 13 | #include <qvariant.h> |
3 | paul | 14 | #include <qdialog.h> |
560 | cbradney | 15 | #include <qstring.h> |
3 | paul | 16 | |
560 | cbradney | 17 | class QVBoxLayout; |
18 | class QHBoxLayout; |
||
19 | class QGridLayout; |
||
20 | class QSpacerItem; |
||
21 | class QTabWidget; |
||
22 | class QWidget; |
||
23 | class QListView; |
||
24 | class QListViewItem; |
||
25 | class QTextBrowser; |
||
26 | class QToolButton; |
||
27 | class QPopupMenu; |
||
28 | |||
3 | paul | 29 | class HelpBrowser : public QWidget |
560 | cbradney | 30 | { |
31 | Q_OBJECT |
||
3 | paul | 32 | |
33 | public: |
||
560 | cbradney | 34 | HelpBrowser( QWidget* parent, QString caption, QString guiLangage="en", QString jumpTo="", QString jumpToFile=""); |
35 | ~HelpBrowser(); |
||
3 | paul | 36 | |
560 | cbradney | 37 | QToolButton* homeButton; |
38 | QToolButton* backButton; |
||
39 | QToolButton* forwButton; |
||
40 | |||
41 | QTabWidget* tabWidget; |
||
42 | QWidget* tabContents; |
||
43 | QListView* listView; |
||
44 | QTextBrowser* textBrowser; |
||
45 | |||
46 | protected: |
||
47 | QVBoxLayout* helpBrowsermainLayout; |
||
48 | QHBoxLayout* helpBrowserLayout; |
||
49 | QHBoxLayout* tabLayout; |
||
50 | QHBoxLayout* buttonLayout; |
||
51 | |||
52 | QPopupMenu* histMenu; |
||
53 | struct histd { |
||
168 | Franz | 54 | QString Url; |
55 | QString Title; |
||
56 | }; |
||
75 | Franz | 57 | QMap<int, histd> mHistory; |
3 | paul | 58 | |
560 | cbradney | 59 | protected slots: |
60 | virtual void languageChange(); |
||
61 | void itemSelected( QListViewItem *); |
||
62 | void sourceChanged(const QString& url); |
||
63 | void histChosen(int i); |
||
64 | void jumpToHelpSection(QString guiLanguage, QString jumpTo, QString jumpToFile=""); |
||
65 | void loadHelp(QString filename); |
||
66 | void loadMenu(); |
||
3 | paul | 67 | }; |
68 | |||
69 | #endif // HELPBROWSER_H |