QTfrontend/gameuiconfig.h
branchwebgl
changeset 8444 75db7bb8dce8
parent 8330 aaefa587e277
parent 8434 4821897a0f10
child 9127 e350500c4edb
equal deleted inserted replaced
8340:46a9fde631f4 8444:75db7bb8dce8
    21 
    21 
    22 #include <QSettings>
    22 #include <QSettings>
    23 #include <QStringList>
    23 #include <QStringList>
    24 #include <QRect>
    24 #include <QRect>
    25 #include <QEvent>
    25 #include <QEvent>
       
    26 #include <QList>
       
    27 #include <utility>
       
    28 #include "binds.h"
    26 
    29 
    27 class HWForm;
    30 class HWForm;
    28 class QSettings;
    31 class QSettings;
    29 
    32 
    30 class GameUIConfig : public QSettings
    33 class GameUIConfig : public QSettings
    34     public:
    37     public:
    35         HWForm * Form;
    38         HWForm * Form;
    36         GameUIConfig(HWForm * FormWidgets, const QString & fileName);
    39         GameUIConfig(HWForm * FormWidgets, const QString & fileName);
    37         QStringList GetTeamsList();
    40         QStringList GetTeamsList();
    38         QRect vid_Resolution();
    41         QRect vid_Resolution();
       
    42         std::pair<QRect, QRect> vid_ResolutionPair();
    39         bool vid_Fullscreen();
    43         bool vid_Fullscreen();
    40         quint32 translateQuality();
    44         quint32 translateQuality();
    41         bool isSoundEnabled();
    45         bool isSoundEnabled();
    42         bool isFrontendSoundEnabled();
    46         bool isFrontendSoundEnabled();
    43         QString language();
    47         QString language();
    62         bool isFrontendEffects() const;
    66         bool isFrontendEffects() const;
    63         bool isFrontendFullscreen() const;
    67         bool isFrontendFullscreen() const;
    64         void resizeToConfigValues();
    68         void resizeToConfigValues();
    65         quint32 stereoMode() const;
    69         quint32 stereoMode() const;
    66         void setValue(const QString & key, const QVariant & value);
    70         void setValue(const QString & key, const QVariant & value);
       
    71         QString bind(int bindID);
       
    72         void setBind(int bindID, QString & strbind);
    67 
    73 
    68         QString AVFormat();
    74         QString AVFormat();
    69         QString videoCodec();
    75         QString videoCodec();
    70         QString audioCodec();
    76         QString audioCodec();
    71         QRect rec_Resolution();
    77         QRect rec_Resolution();
    89         void SaveVideosOptions();
    95         void SaveVideosOptions();
    90         void updNetNick();
    96         void updNetNick();
    91     private:
    97     private:
    92         bool netPasswordIsValid();
    98         bool netPasswordIsValid();
    93         bool eventFilter(QObject *object, QEvent *event);
    99         bool eventFilter(QObject *object, QEvent *event);
    94     QString temphash;
   100         QString temphash;
       
   101         QList<BindAction> m_binds;
    95 };
   102 };
    96 
   103 
    97 #endif
   104 #endif