Hauptseite   Klassenhierarchie   Übersicht   Auflistung der Dateien   Elementübersicht   Datei-Elemente  

helpwindow.h

00001 /****************************************************************************
00002 ** $Id: qt/examples/helpviewer/helpwindow.h   2.3.1   edited 2001-01-26 $
00003 **
00004 ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
00005 **
00006 ** This file is part of an example program for Qt.  This example
00007 ** program may be used, distributed and modified without limitation.
00008 **
00009 *****************************************************************************/
00010 
00011 #ifndef HELPWINDOW_H
00012 #define HELPWINDOW_H
00013 
00014 #include <qmainwindow.h>
00015 #include <qtextbrowser.h>
00016 #include <qstringlist.h>
00017 #include <qmap.h>
00018 #include <qdir.h>
00019 
00020 class QComboBox;
00021 class QPopupMenu;
00022 
00023 class HelpWindow : public QMainWindow
00024 {
00025     Q_OBJECT
00026 public:
00027     HelpWindow( const QString& home_,  const QString& path, QWidget* parent = 0, const char *name=0 );
00028     ~HelpWindow();
00029 
00030 private slots:
00031     void setBackwardAvailable( bool );
00032     void setForwardAvailable( bool );
00033 
00034     void textChanged();
00035     void about();
00036     void aboutQt();
00037     void openFile();
00038     void newWindow();
00039     void print();
00040 
00041     void pathSelected( const QString & );
00042     void histChosen( int );
00043     void bookmChosen( int );
00044     void addBookmark();
00045     
00046 private:
00047     void readHistory();
00048     void readBookmarks();
00049     
00050     QTextBrowser* browser;
00051     QComboBox *pathCombo;
00052     int backwardId, forwardId;
00053     QString selectedURL;
00054     QStringList history, bookmarks;
00055     QMap<int, QString> mHistory, mBookmarks;
00056     QPopupMenu *hist, *bookm;
00057     
00058 };
00059 
00060 
00061 
00062 
00063 
00064 #endif
00065 

Erzeugt am Mon Jan 21 11:39:46 2002 für Positron von doxygen1.2.12 geschrieben von Dimitri van Heesch, © 1997-2001