QTfrontend/gameuiconfig.h
changeset 2948 3f21a9dc93d0
parent 2898 c53636f556f8
child 3236 4ab3917d7d44
equal deleted inserted replaced
2947:803b277e4894 2948:3f21a9dc93d0
    26 class HWForm;
    26 class HWForm;
    27 class QSettings;
    27 class QSettings;
    28 
    28 
    29 class GameUIConfig : public QSettings
    29 class GameUIConfig : public QSettings
    30 {
    30 {
    31 	Q_OBJECT
    31     Q_OBJECT
    32 
    32 
    33 public:
    33 public:
    34 	GameUIConfig(HWForm * FormWidgets, const QString & fileName);
    34     GameUIConfig(HWForm * FormWidgets, const QString & fileName);
    35 	QStringList GetTeamsList();
    35     QStringList GetTeamsList();
    36 	QRect vid_Resolution();
    36     QRect vid_Resolution();
    37 	bool vid_Fullscreen();
    37     bool vid_Fullscreen();
    38 	bool isSoundEnabled();
    38     bool isSoundEnabled();
    39 	bool isFrontendSoundEnabled();
    39     bool isFrontendSoundEnabled();
    40 	QString language();
    40     QString language();
    41 #ifdef _WIN32
    41 #ifdef _WIN32
    42 	bool isSoundHardware();
    42     bool isSoundHardware();
    43 #endif
    43 #endif
    44 	bool isMusicEnabled();
    44     bool isMusicEnabled();
    45 	bool isFrontendMusicEnabled();
    45     bool isFrontendMusicEnabled();
    46 	bool isShowFPSEnabled();
    46     bool isShowFPSEnabled();
    47 	bool isAltDamageEnabled();
    47     bool isAltDamageEnabled();
    48 	bool appendDateTimeToRecordName();
    48     bool appendDateTimeToRecordName();
    49 	quint8 volume();
    49     quint8 volume();
    50 	quint8 timerInterval();
    50     quint8 timerInterval();
    51 	quint8 bitDepth();
    51     quint8 bitDepth();
    52 	QString netNick();
    52     QString netNick();
    53 	bool isReducedQuality() const;
    53     bool isReducedQuality() const;
    54 	bool isFrontendEffects() const;
    54     bool isFrontendEffects() const;
    55 	bool isFrontendFullscreen() const;
    55     bool isFrontendFullscreen() const;
    56 	bool isWeaponTooltip() const;
    56     bool isWeaponTooltip() const;
    57 	void resizeToConfigValues();
    57     void resizeToConfigValues();
    58 
    58 
    59 #ifdef __APPLE__
    59 #ifdef __APPLE__
    60 #ifdef SPARKLE_ENABLED
    60 #ifdef SPARKLE_ENABLED
    61 	bool isAutoUpdateEnabled();
    61     bool isAutoUpdateEnabled();
    62 #endif
    62 #endif
    63 #endif
    63 #endif
    64 
    64 
    65  signals:
    65  signals:
    66 	void frontendFullscreen(bool value);
    66     void frontendFullscreen(bool value);
    67 
    67 
    68 public slots:
    68 public slots:
    69 	void SaveOptions();
    69     void SaveOptions();
    70 
    70 
    71 private:
    71 private:
    72 	HWForm * Form;
    72     HWForm * Form;
    73 	quint8 depth;
    73     quint8 depth;
    74 };
    74 };
    75 
    75 
    76 #endif
    76 #endif