2008-01-25 19:42:59 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* Eliot
|
2012-10-07 16:25:41 +02:00
|
|
|
* Copyright (C) 2008-2012 Olivier Teulière
|
2008-01-25 19:42:59 +01:00
|
|
|
* 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>
|
|
|
|
|
2012-02-18 22:26:52 +01:00
|
|
|
#include "ui/prefs_dialog.ui.h"
|
|
|
|
#include "logging.h"
|
2008-01-25 19:42:59 +01:00
|
|
|
|
2011-07-28 22:55:48 +02:00
|
|
|
class QStringList;
|
|
|
|
|
2008-01-25 19:42:59 +01:00
|
|
|
|
|
|
|
class PrefsDialog: public QDialog, private Ui::PrefsDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT;
|
2012-02-18 22:26:52 +01:00
|
|
|
DEFINE_LOGGER();
|
2008-01-25 19:42:59 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
explicit PrefsDialog(QWidget *iParent = 0);
|
|
|
|
|
|
|
|
static const QString kINTF_ALIGN_HISTORY;
|
2008-01-26 17:58:46 +01:00
|
|
|
static const QString kINTF_DIC_PATH;
|
2011-07-28 22:55:48 +02:00
|
|
|
static const QString kINTF_DEFINITIONS_SITE_URL;
|
2009-01-04 18:39:27 +01:00
|
|
|
static const QString kINTF_SHOW_TILES_POINTS;
|
2008-12-08 22:38:12 +01:00
|
|
|
static const QString kINTF_SHOW_TOOLBAR;
|
2012-01-26 20:57:43 +01:00
|
|
|
static const QString kINTF_TIMER_TOTAL_DURATION;
|
|
|
|
static const QString kINTF_TIMER_ALERT_DURATION;
|
2012-04-19 08:31:31 +02:00
|
|
|
static const QString kINTF_TIMER_BEEPS;
|
2012-11-07 01:33:20 +01:00
|
|
|
static const QString kINTF_TIMER_AUTO_START;
|
2008-01-25 19:42:59 +01:00
|
|
|
|
2012-03-05 01:27:56 +01:00
|
|
|
static const QString kARBIT_AUTO_MASTER;
|
|
|
|
static const QString kARBIT_LINK_7P1;
|
|
|
|
|
2011-07-28 22:55:48 +02:00
|
|
|
static const QString kDEFAULT_DEF_SITE;
|
|
|
|
|
2012-04-29 01:49:03 +02:00
|
|
|
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;
|
|
|
|
|
2008-01-25 19:42:59 +01:00
|
|
|
public slots:
|
|
|
|
/// Update the settings when the user selects "OK"
|
|
|
|
virtual void accept();
|
|
|
|
|
2008-01-26 17:58:46 +01:00
|
|
|
signals:
|
2008-12-14 14:20:38 +01:00
|
|
|
void prefsUpdated();
|
2008-01-26 17:58:46 +01:00
|
|
|
|
|
|
|
private slots:
|
2012-10-06 12:16:36 +02:00
|
|
|
void browseDic();
|
2008-01-26 17:58:46 +01:00
|
|
|
|
2008-01-25 19:42:59 +01:00
|
|
|
private:
|
|
|
|
void updateSettings();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|