About.h 1.61 KB
Newer Older
Ludovic Fauvet's avatar
Ludovic Fauvet committed
1 2 3
/*****************************************************************************
 * About.h: About dialog
 *****************************************************************************
Ludovic Fauvet's avatar
Ludovic Fauvet committed
4
 * Copyright (C) 2008-2010 VideoLAN
Ludovic Fauvet's avatar
Ludovic Fauvet committed
5 6
 *
 * Authors: Christophe Courtaut <christophe.courtaut@gmail.com>
7
 *          Rohit Yadav <rohityadav89@gmail.com>
Ludovic Fauvet's avatar
Ludovic Fauvet committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
 *
 * 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.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

#ifndef ABOUT_H
#define ABOUT_H

27
#include "QSingleton.hpp"
Ludovic Fauvet's avatar
Ludovic Fauvet committed
28 29
#include "ui_About.h"

30 31
#include <QDialog>

Ludovic Fauvet's avatar
Ludovic Fauvet committed
32 33
class QPlainTextEdit;

34
class About : public QDialog, public QSingleton<About>
Ludovic Fauvet's avatar
Ludovic Fauvet committed
35 36 37
{
    Q_OBJECT
    Q_DISABLE_COPY( About )
38 39 40

    friend class    QSingleton<About>;

Ludovic Fauvet's avatar
Ludovic Fauvet committed
41
protected:
42
    virtual void    changeEvent( QEvent *e );
Ludovic Fauvet's avatar
Ludovic Fauvet committed
43 44

private:
45 46 47
    explicit        About( QWidget *parent = 0 );
    void            setText( const QString& filename, QPlainTextEdit* widget );
    Ui::AboutVLMC   m_ui;
Ludovic Fauvet's avatar
Ludovic Fauvet committed
48 49 50
};

#endif // ABOUT_H