equal
deleted
inserted
replaced
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(); |
46 bool isShowFPSEnabled(); |
50 bool isShowFPSEnabled(); |
47 bool isAltDamageEnabled(); |
51 bool isAltDamageEnabled(); |
48 bool appendDateTimeToRecordName(); |
52 bool appendDateTimeToRecordName(); |
49 quint8 volume(); |
53 quint8 volume(); |
50 quint8 timerInterval(); |
54 quint8 timerInterval(); |
51 quint8 bitDepth(); |
|
52 QString netNick(); |
55 QString netNick(); |
53 QByteArray netPasswordHash(); |
56 QByteArray netPasswordHash(); |
54 int netPasswordLength(); |
57 int netPasswordLength(); |
55 void clearPasswordHash(); |
58 void clearPasswordHash(); |
56 void setPasswordHash(const QString & passwordhash); |
59 void setPasswordHash(const QString & passwordhash); |
63 bool isFrontendEffects() const; |
66 bool isFrontendEffects() const; |
64 bool isFrontendFullscreen() const; |
67 bool isFrontendFullscreen() const; |
65 void resizeToConfigValues(); |
68 void resizeToConfigValues(); |
66 quint32 stereoMode() const; |
69 quint32 stereoMode() const; |
67 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); |
68 |
73 |
69 QString AVFormat(); |
74 QString AVFormat(); |
70 QString videoCodec(); |
75 QString videoCodec(); |
71 QString audioCodec(); |
76 QString audioCodec(); |
72 QRect rec_Resolution(); |
77 QRect rec_Resolution(); |
90 void SaveVideosOptions(); |
95 void SaveVideosOptions(); |
91 void updNetNick(); |
96 void updNetNick(); |
92 private: |
97 private: |
93 bool netPasswordIsValid(); |
98 bool netPasswordIsValid(); |
94 bool eventFilter(QObject *object, QEvent *event); |
99 bool eventFilter(QObject *object, QEvent *event); |
95 quint8 depth; |
100 QString temphash; |
96 QString temphash; |
101 QList<BindAction> m_binds; |
97 }; |
102 }; |
98 |
103 |
99 #endif |
104 #endif |