Logo Search packages:      
Sourcecode: agistudio version File versions  Download package


** $Id: helpwindow.h,v 1.1 2003/04/06 20:47:24 elonen Exp $
** Copyright (C) 1992-1999 Troll Tech AS.  All rights reserved.
** This file is part of an example program for Qt.  This example
** program may be used, distributed and modified without limitation.


#include <qtextbrowser.h>
#include <qmainwindow.h>
#include <qstringlist.h>
#include <qmap.h>
#include <qdir.h>

class QComboBox;
class QPopupMenu;

class HelpWindow : public QMainWindow
    HelpWindow( const QString& home_,  const QString& path, QWidget* parent = 0, const char *name=0 );
    void setSource(char *filename);
private slots:
    void setBackwardAvailable( bool );
    void setForwardAvailable( bool );

    void textChanged();
    void openFile();
    void newWindow();

    void pathSelected( const QString & );
    void histChosen( int );
    void bookmChosen( int );
    void addBookmark();
    void showEvent(  QShowEvent * );
    void hideEvent(  QHideEvent * );  
    bool eventFilter( QObject * o, QEvent * e );
    void readHistory();
    void readBookmarks();
    QTextBrowser* browser;
    QComboBox *pathCombo;
    int backwardId, forwardId;
    QString selectedURL;
    QDir path;
    QStringList fileList, history, bookmarks;
    QMap<int, QString> mHistory, mBookmarks;
    QPopupMenu *hist, *bookm;

extern HelpWindow *helpwindow,*helpwindow1;


Generated by  Doxygen 1.6.0   Back to index