/*************************************************************************** helper.h - QSSTV ------------------- begin : Wed June 27 2001 copyright : (C) 2001 by Johan Maes - ON1MH email : on1mh@pandora.be ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef HELPER_H #define HELPER_H #include #include #include #include #include class QComboBox; class QPopupMenu; class HelpWindow : public QMainWindow { Q_OBJECT public: HelpWindow( const QString& home_, const QString& path, QWidget* parent = 0, const char *name=0 ); ~HelpWindow(); private slots: void setBackwardAvailable( bool ); void setForwardAvailable( bool ); void textChanged(); void about(); void aboutQt(); void openFile(); void newWindow(); void print(); void pathSelected( const QString & ); void histChosen( int ); void bookmChosen( int ); void addBookmark(); private: void readHistory(); void readBookmarks(); QTextBrowser* browser; QComboBox *pathCombo; int backwardId, forwardId; QString selectedURL; QStringList history, bookmarks; QMap mHistory, mBookmarks; QPopupMenu *hist, *bookm; }; #endif