equal
deleted
inserted
replaced
23 |
23 |
24 class GameUIConfig; |
24 class GameUIConfig; |
25 class FPSEdit; |
25 class FPSEdit; |
26 class IconedGroupBox; |
26 class IconedGroupBox; |
27 class QSignalMapper; |
27 class QSignalMapper; |
|
28 class KeyBinder; |
28 |
29 |
29 class PageOptions : public AbstractPage |
30 class PageOptions : public AbstractPage |
30 { |
31 { |
31 Q_OBJECT |
32 Q_OBJECT |
32 |
33 |
55 IconedGroupBox *teamsBox; |
56 IconedGroupBox *teamsBox; |
56 QPushButton *BtnAssociateFiles; |
57 QPushButton *BtnAssociateFiles; |
57 QComboBox *CBTeamName; |
58 QComboBox *CBTeamName; |
58 IconedGroupBox *AGGroupBox; |
59 IconedGroupBox *AGGroupBox; |
59 QComboBox *CBResolution; |
60 QComboBox *CBResolution; |
|
61 QLineEdit *windowWidthEdit; |
|
62 QLineEdit *windowHeightEdit; |
60 QComboBox *CBStereoMode; |
63 QComboBox *CBStereoMode; |
61 QCheckBox *CBFrontendSound; |
64 QCheckBox *CBFrontendSound; |
62 QCheckBox *CBFrontendMusic; |
65 QCheckBox *CBFrontendMusic; |
63 QCheckBox *CBSound; |
66 QCheckBox *CBSound; |
64 QCheckBox *CBMusic; |
67 QCheckBox *CBMusic; |
116 |
119 |
117 private: |
120 private: |
118 QLayout * bodyLayoutDefinition(); |
121 QLayout * bodyLayoutDefinition(); |
119 QLayout * footerLayoutDefinition(); |
122 QLayout * footerLayoutDefinition(); |
120 void connectSignals(); |
123 void connectSignals(); |
|
124 int resetBindToDefault(int bindID); |
121 |
125 |
122 bool previousFullscreenValue; |
126 bool previousFullscreenValue; |
123 int previousResolutionIndex; |
127 int previousResolutionIndex; |
124 int previousQuality; |
128 int previousQuality; |
125 QLabel *LblNoEditTeam; |
129 QLabel *LblNoEditTeam; |
132 QComboBox *comboVideoCodecs; |
136 QComboBox *comboVideoCodecs; |
133 QComboBox *comboAudioCodecs; |
137 QComboBox *comboAudioCodecs; |
134 QPushButton *btnDefaults; |
138 QPushButton *btnDefaults; |
135 QPushButton *btnUpdateNow; |
139 QPushButton *btnUpdateNow; |
136 GameUIConfig * config; |
140 GameUIConfig * config; |
|
141 KeyBinder * binder; |
|
142 int currentTab; |
|
143 int binderTab; |
137 |
144 |
138 private slots: |
145 private slots: |
139 void forceFullscreen(int index); |
146 void forceFullscreen(int index); |
140 void setFullscreen(int state); |
147 void setFullscreen(int state); |
141 void setResolution(int state); |
148 void setResolution(int state); |
149 void onProxyTypeChanged(); |
156 void onProxyTypeChanged(); |
150 void changeAVFormat(int index); |
157 void changeAVFormat(int index); |
151 void changeUseGameRes(int state); |
158 void changeUseGameRes(int state); |
152 void changeRecordAudio(int state); |
159 void changeRecordAudio(int state); |
153 void checkForUpdates(); |
160 void checkForUpdates(); |
|
161 void tabIndexChanged(int); |
|
162 void bindUpdated(int bindID); |
|
163 void resetAllBinds(); |
154 |
164 |
155 public slots: |
165 public slots: |
156 void setDefaultOptions(); |
166 void setDefaultOptions(); |
157 }; |
167 }; |
158 |
168 |