00001 //============================================== 00002 // copyright : (C) 2003-2005 by Will Stokes 00003 //============================================== 00004 // This program is free software; you can redistribute it 00005 // and/or modify it under the terms of the GNU General 00006 // Public License as published by the Free Software 00007 // Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 //============================================== 00010 00011 #ifndef GUI_HELP_HELPWINDOW_H 00012 #define GUI_HELP_HELPWINDOW_H 00013 00014 #include <qdialog.h> 00015 #include "contents.h" 00016 00017 class ALabel; 00018 class QTextBrowser; 00019 00020 //===================================== 00023 //===================================== 00024 00025 //====================== 00026 class HelpWindow : public QDialog 00027 { 00028 Q_OBJECT 00029 //---------------------- 00030 public: 00031 HelpWindow( QWidget *parent=0, const char* name=0); 00032 ~HelpWindow(); 00033 //---------------------- 00034 signals: 00035 void closed(); 00036 //---------------------- 00037 private slots: 00038 void setPage(HELP_PAGE page); 00039 void showFirstSelection(); 00040 void showCurrentPage(); 00041 void reject(); 00042 //---------------------- 00043 private: 00044 void closeEvent( QCloseEvent* e); 00045 00046 ALabel* billboard; 00047 QTextBrowser* content; 00048 00049 HELP_PAGE currentPage; 00050 00051 QMimeSourceFactory* loadingMimeSource; 00052 //---------------------- 00053 }; 00054 //====================== 00055 00056 #endif //GUI_HELP_HELPWINDOW_H