00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #ifndef TGO4HELPWINDOW_H 00017 #define TGO4HELPWINDOW_H 00018 00019 #include "qmainwindow.h" 00020 #include "qtextbrowser.h" 00021 #include "qstringlist.h" 00022 #include "qmap.h" 00023 #include "qdir.h" 00024 00025 class QComboBox; 00026 class QPopupMenu; 00027 00028 class TGo4HelpWindow : public QMainWindow 00029 { 00030 Q_OBJECT 00031 public: 00032 TGo4HelpWindow( const QString& home_, const QString& path, QWidget* parent = 0, const char *name=0 ); 00033 virtual ~TGo4HelpWindow(); 00034 00035 private slots: 00036 void setBackwardAvailable( bool ); 00037 void setForwardAvailable( bool ); 00038 00039 void textChanged(); 00040 void about(); 00041 void aboutQt(); 00042 void openFile(); 00043 void newWindow(); 00044 void print(); 00045 00046 void pathSelected( const QString & ); 00047 void histChosen( int ); 00048 void bookmChosen( int ); 00049 void addBookmark(); 00050 00051 private: 00052 00053 void readBookmarks(); 00054 00055 void readHistory(); 00056 00057 QTextBrowser* browser; 00058 QComboBox *pathCombo; 00059 int backwardId, forwardId; 00060 QString selectedURL; 00061 QStringList history, bookmarks; 00062 QMap<int, QString> mHistory, mBookmarks; 00063 QPopupMenu *hist, *bookm; 00064 00065 }; 00066 00067 00068 #endif 00069 00070 00071 00072 00073 00074 //----------------------------END OF GO4 SOURCE FILE ---------------------