Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members

helpviewer.h

00001 /***************************************************************************
00002                           helpviewer.h  -  HTML view for help
00003                              -------------------
00004     begin                : Fri Sep 05 23:53:49 CEST 2003
00005     copyright            : (C) 2003 by Heiko Köhler
00006     email                : heicom@users.sourceforge.net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017  
00018 #ifndef HELPWINDOW_H
00019 #define HELPWINDOW_H
00020 
00021 #include <qmainwindow.h>
00022 #include <qtextbrowser.h>
00023 #include <qstringlist.h>
00024 #include <qmap.h>
00025 #include <qdir.h>
00026 
00027 class QComboBox;
00028 class QPopupMenu;
00029 
00030 class HelpViewer : public QMainWindow
00031 {
00032     Q_OBJECT
00033 public:
00034     HelpViewer( const QString& home_,  const QString& path, QWidget* parent = 0, const char *name=0 );
00035     ~HelpViewer();
00036 
00037 private slots:
00038     void setBackwardAvailable( bool );
00039     void setForwardAvailable( bool );
00040     
00041     void sourceChanged( const QString& );
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 private:
00051     void readHistory();
00052     void readBookmarks();
00053 
00054     QTextBrowser* browser;
00055     QComboBox *pathCombo;
00056     int backwardId, forwardId;
00057     QStringList history, bookmarks;
00058     QMap<int, QString> mHistory, mBookmarks;
00059     QPopupMenu *hist, *bookm;
00060 };
00061 
00062 #endif

Generated on Sun May 2 20:02:57 2004 by doxygen 1.3.2