Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

helpwindow.h

00001 /****************************************************************************
00002 ** $Id: helpwindow.h,v 1.1 2005/05/13 05:45:07 fredrikb Exp $
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 ** //Note from the Stopmotion developers:
00011 ** This example was used for creating a help menu an have been modified, from
00012 ** its original state.
00013 **
00014 *****************************************************************************/
00015 
00016 #ifndef HELPWINDOW_H
00017 #define HELPWINDOW_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 HelpWindow : public QMainWindow
00029 {
00030     Q_OBJECT
00031 public:
00032     HelpWindow( const QString& home_,  const QString& path, QWidget* parent = 0, const char *name=0 );
00033     ~HelpWindow();
00034 
00035 private slots:
00036     void setBackwardAvailable( bool );
00037     void setForwardAvailable( bool );
00038 
00039     void sourceChanged( const QString& );
00040     void openFile();
00041     void newWindow();
00042     void print();
00043 
00044     void pathSelected( const QString & );
00045     void histChosen( int );
00046     void bookmChosen( int );
00047     void addBookmark();
00048 
00049 private:
00050     void readHistory();
00051     void readBookmarks();
00052 
00053     QTextBrowser* browser;
00054     QComboBox *pathCombo;
00055     int backwardId, forwardId;
00056     QStringList history, bookmarks;
00057     QMap<int, QString> mHistory, mBookmarks;
00058     QPopupMenu *hist, *bookm;
00059 
00060 };
00061 
00062 
00063 #endif

Generated on Thu May 19 01:51:20 2005 for stopmotion.kdevelop by  doxygen 1.4.2