help.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Help.hpp : Help and About dialogs
00003  ****************************************************************************
00004  * Copyright (C) 2007 the VideoLAN team
00005  * $Id: 0f1a2b2366a794fe2bf49d68f4c593e4b881bf2e $
00006  *
00007  * Authors: Jean-Baptiste Kempf <jb (at) videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef QVLC_HELP_DIALOG_H_
00025 #define QVLC_HELP_DIALOG_H_ 1
00026 
00027 #ifdef HAVE_CONFIG_H
00028 #include "config.h"
00029 #endif
00030 
00031 #include "qt4.hpp"
00032 
00033 #include "util/qvlcframe.hpp"
00034 #include "util/singleton.hpp"
00035 
00036 class QPushButton;
00037 class QTextBrowser;
00038 class QLabel;
00039 class QEvent;
00040 class QPushButton;
00041 class QTextEdit;
00042 
00043 class HelpDialog : public QVLCFrame, public Singleton<HelpDialog>
00044 {
00045     Q_OBJECT
00046 private:
00047     HelpDialog( intf_thread_t * );
00048     virtual ~HelpDialog();
00049 
00050 public slots:
00051     void close();
00052 
00053     friend class    Singleton<HelpDialog>;
00054 };
00055 
00056 
00057 class AboutDialog : public QVLCDialog, public Singleton<AboutDialog>
00058 {
00059     Q_OBJECT
00060 
00061 private:
00062     AboutDialog( intf_thread_t * );
00063     virtual ~AboutDialog();
00064 
00065 public slots:
00066     void close();
00067 
00068     friend class    Singleton<AboutDialog>;
00069 };
00070 
00071 #ifdef UPDATE_CHECK
00072 
00073 static const int UDOkEvent = QEvent::User + DialogEventType + 21;
00074 static const int UDErrorEvent = QEvent::User + DialogEventType + 22;
00075 
00076 class UpdateDialog : public QVLCFrame, public Singleton<UpdateDialog>
00077 {
00078     Q_OBJECT
00079 public:
00080     void updateNotify( bool );
00081 
00082 private:
00083     UpdateDialog( intf_thread_t * );
00084     virtual ~UpdateDialog();
00085 
00086     update_t *p_update;
00087     QPushButton *updateButton;
00088     QLabel *updateLabelTop;
00089     QLabel *updateLabelDown;
00090     QTextEdit *updateText;
00091     void customEvent( QEvent * );
00092     bool b_checked;
00093 
00094 private slots:
00095     void close();
00096     void UpdateOrDownload();
00097 
00098     friend class    Singleton<UpdateDialog>;
00099 };
00100 #endif
00101 
00102 #endif

Generated on Tue May 25 08:04:57 2010 for VLC by  doxygen 1.5.6