QTfrontend/gameuiconfig.h
changeset 301 29bf9c1a3ad3
parent 297 279e10ec31b4
child 320 1ee7f087195a
equal deleted inserted replaced
300:be94799f33d2 301:29bf9c1a3ad3
    17  */
    17  */
    18 
    18 
    19 #ifndef GAMECONFIG_H
    19 #ifndef GAMECONFIG_H
    20 #define GAMECONFIG_H
    20 #define GAMECONFIG_H
    21 
    21 
    22 #include <QObject>
    22 #include <QSettings>
    23 #include <QDir>
    23 #include <QDir>
    24 #include <QStringList>
    24 #include <QStringList>
    25 
    25 
    26 class HWForm;
    26 class HWForm;
       
    27 class QSettings;
    27 
    28 
    28 class GameUIConfig : public QObject
    29 class GameUIConfig : public QSettings
    29 {
    30 {
    30 	Q_OBJECT
    31 	Q_OBJECT
    31 
    32 
    32 public:
    33 public:
    33 	GameUIConfig(HWForm * FormWidgets);
    34 	GameUIConfig(HWForm * FormWidgets, const QString & fileName);
    34 	QStringList GetTeamsList();
    35 	QStringList GetTeamsList();
    35 	int vid_Resolution();
    36 	int vid_Resolution();
    36 	bool vid_Fullscreen();
    37 	bool vid_Fullscreen();
    37 	bool isSoundEnabled();
    38 	bool isSoundEnabled();
    38 	bool isShowFPSEnabled();
    39 	bool isShowFPSEnabled();