]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/help.hpp
Layout fixes in COPYING (and use spaces instead of tabs). Use a fixed width font...
[vlc] / modules / gui / qt4 / dialogs / help.hpp
1 /*****************************************************************************
2  * Help.hpp : Help and About dialogs
3  ****************************************************************************
4  * Copyright (C) 2007 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Jean-Baptiste Kempf <jb (at) videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifndef _HELP_DIALOG_H_
25 #define _HELP_DIALOG_H_
26
27 #include "util/qvlcframe.hpp"
28
29 class HelpDialog : public QVLCFrame
30 {
31     Q_OBJECT;
32 public:
33     static HelpDialog * getInstance( intf_thread_t *p_intf )
34     {
35         if( !instance)
36             instance = new HelpDialog( p_intf );
37         return instance;
38     }
39     virtual ~HelpDialog();
40
41 private:
42     HelpDialog( intf_thread_t *);
43     static HelpDialog *instance;
44 public slots:
45     void close();
46 };
47
48
49 class AboutDialog : public QVLCFrame
50 {
51     Q_OBJECT;
52 public:
53     static AboutDialog * getInstance( intf_thread_t *p_intf )
54     {
55         if( !instance)
56             instance = new AboutDialog( p_intf);
57         return instance;
58     }
59     virtual ~AboutDialog();
60
61 private:
62     AboutDialog( intf_thread_t *);
63     static AboutDialog *instance;
64 public slots:
65     void close();
66 };
67
68 #endif