QTfrontend/gameuiconfig.h
changeset 6616 f77bb02b669f
parent 5390 f41e87de8989
child 6700 e04da46ee43c
equal deleted inserted replaced
6615:65602f1ef0f8 6616:f77bb02b669f
    27 class HWForm;
    27 class HWForm;
    28 class QSettings;
    28 class QSettings;
    29 
    29 
    30 class GameUIConfig : public QSettings
    30 class GameUIConfig : public QSettings
    31 {
    31 {
    32     Q_OBJECT
    32         Q_OBJECT
    33 
    33 
    34 public:
    34     public:
    35     HWForm * Form;
    35         HWForm * Form;
    36     GameUIConfig(HWForm * FormWidgets, const QString & fileName);
    36         GameUIConfig(HWForm * FormWidgets, const QString & fileName);
    37     QStringList GetTeamsList();
    37         QStringList GetTeamsList();
    38     QRect vid_Resolution();
    38         QRect vid_Resolution();
    39     bool vid_Fullscreen();
    39         bool vid_Fullscreen();
    40     quint32 translateQuality();
    40         quint32 translateQuality();
    41     bool isSoundEnabled();
    41         bool isSoundEnabled();
    42     bool isFrontendSoundEnabled();
    42         bool isFrontendSoundEnabled();
    43     QString language();
    43         QString language();
    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     QByteArray netPasswordHash();
    53         QByteArray netPasswordHash();
    54     int netPasswordLength();
    54         int netPasswordLength();
    55     void setNetPasswordLength(int passwordLength);
    55         void setNetPasswordLength(int passwordLength);
    56     bool isReducedQuality() const;
    56         bool isReducedQuality() const;
    57     bool isFrontendEffects() const;
    57         bool isFrontendEffects() const;
    58     bool isFrontendFullscreen() const;
    58         bool isFrontendFullscreen() const;
    59     void resizeToConfigValues();
    59         void resizeToConfigValues();
    60     quint32 stereoMode() const;
    60         quint32 stereoMode() const;
    61 
    61 
    62 #ifdef __APPLE__
    62 #ifdef __APPLE__
    63 #ifdef SPARKLE_ENABLED
    63 #ifdef SPARKLE_ENABLED
    64     bool isAutoUpdateEnabled();
    64         bool isAutoUpdateEnabled();
    65 #endif
    65 #endif
    66 #endif
    66 #endif
    67 
    67 
    68  signals:
    68     signals:
    69     void frontendFullscreen(bool value);
    69         void frontendFullscreen(bool value);
    70 
    70 
    71 public slots:
    71     public slots:
    72     void SaveOptions();
    72         void SaveOptions();
    73     void updNetNick();
    73         void updNetNick();
    74 private:
    74     private:
    75     bool netPasswordIsValid();
    75         bool netPasswordIsValid();
    76     bool eventFilter(QObject *object, QEvent *event);
    76         bool eventFilter(QObject *object, QEvent *event);
    77     quint8 depth;
    77         quint8 depth;
    78 };
    78 };
    79 
    79 
    80 #endif
    80 #endif