eliot/qt/prefs_dialog.h
Olivier Teulière 2c95f890ef Check for new versions, about once a week.
This can be deactivated in the preferences.
2013-01-19 00:36:08 +01:00

86 lines
2.7 KiB
C++

/*****************************************************************************
* Eliot
* Copyright (C) 2008-2012 Olivier Teulière
* Authors: Olivier Teulière <ipkiss @@ gmail.com>
*
* 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 St, Fifth Floor, Boston, MA 02110-1301 USA
*****************************************************************************/
#ifndef PREFS_DIALOG_H_
#define PREFS_DIALOG_H_
#include <QtGui/QDialog>
#include <QtCore/QString>
#include "ui/prefs_dialog.ui.h"
#include "logging.h"
class QStringList;
class PrefsDialog: public QDialog, private Ui::PrefsDialog
{
Q_OBJECT;
DEFINE_LOGGER();
public:
explicit PrefsDialog(QWidget *iParent = 0);
static const QString kINTF_ALIGN_HISTORY;
static const QString kINTF_DIC_PATH;
static const QString kINTF_DEFINITIONS_SITE_URL;
static const QString kINTF_SHOW_TILES_POINTS;
static const QString kINTF_SHOW_TOOLBAR;
static const QString kINTF_TIMER_TOTAL_DURATION;
static const QString kINTF_TIMER_ALERT_DURATION;
static const QString kINTF_TIMER_BEEPS;
static const QString kINTF_TIMER_AUTO_START;
static const QString kINTF_CHECK_FOR_UPDATES;
static const QString kARBIT_AUTO_MASTER;
static const QString kARBIT_LINK_7P1;
static const QString kDEFAULT_DEF_SITE;
static const QString kCONFO_START_GAME;
static const QString kCONFO_LOAD_GAME;
static const QString kCONFO_LOAD_DIC;
static const QString kCONFO_QUIT_GAME;
static const QString kCONFO_REPLAY_TURN;
static const QString kCONFO_ARBIT_REPLACE_MASTER;
static const QString kCONFO_ARBIT_LOW_MASTER;
static const QString kCONFO_ARBIT_MASTER_JOKERS;
static const QString kCONFO_ARBIT_SUPPR_MOVE;
static const QString kCONFO_ARBIT_REPLACE_MOVE;
static const QString kCONFO_ARBIT_CHANGE_RACK;
static const QString kCONFO_ARBIT_INCOMPLETE_TURN;
public slots:
/// Update the settings when the user selects "OK"
virtual void accept();
signals:
void prefsUpdated();
private slots:
void browseDic();
private:
void updateSettings();
};
#endif