LanguagePreferences.h 1.7 KB
Newer Older
Ludovic Fauvet's avatar
Ludovic Fauvet committed
1 2 3 4 5 6
/*****************************************************************************
 * Preferences.h: Preferences window
 *****************************************************************************
 * Copyright (C) 2008-2009 the VLMC team
 *
 * Authors: Christophe Courtaut <christophe.courtaut@gmail.com>
7
 * Authors: Clement CHAVANCE <kinder@vlmc.org>
Ludovic Fauvet's avatar
Ludovic Fauvet committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
 *
 * 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.
 *****************************************************************************/

24 25 26 27 28
#ifndef PREFERENCES_H
#define PREFERENCES_H

#include <QTranslator>
#include <QtDebug>
29
#include "PreferenceWidget.h"
30
#include "ui_LanguagePreferences.h"
31

32
class LanguagePreferences : public PreferenceWidget
33
{
34
    Q_OBJECT
35 36 37 38 39 40
    public:
        LanguagePreferences( QWidget* parent = 0 );
        ~LanguagePreferences();
        void    load();
        void    save();
        void    changeLang(QString lang);
41

42 43
    protected:
        virtual void changeEvent( QEvent *e );
44

45 46 47
    private:
        Ui::LanguagePreferences m_ui;
        static QTranslator* m_currentLang;
48
};
49 50

#endif // PREFERENCES_H