equal
deleted
inserted
replaced
17 */ |
17 */ |
18 |
18 |
19 #ifndef PAGE_OPTIONS_H |
19 #ifndef PAGE_OPTIONS_H |
20 #define PAGE_OPTIONS_H |
20 #define PAGE_OPTIONS_H |
21 |
21 |
|
22 #include "igbox.h" |
22 #include "AbstractPage.h" |
23 #include "AbstractPage.h" |
|
24 |
|
25 #include <QString> |
23 |
26 |
24 class GameUIConfig; |
27 class GameUIConfig; |
25 class FPSEdit; |
28 class FPSEdit; |
26 class IconedGroupBox; |
|
27 class QSignalMapper; |
29 class QSignalMapper; |
28 class KeyBinder; |
30 class KeyBinder; |
|
31 class QGridLayout; |
|
32 |
|
33 // Let's stay D-R-Y |
|
34 class OptionGroupBox : public IconedGroupBox |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 OptionGroupBox(const QString & iconName, |
|
40 const QString & title, |
|
41 QWidget * parent = 0); |
|
42 QGridLayout * layout(); |
|
43 void addDivider(); |
|
44 |
|
45 private: |
|
46 QGridLayout * m_layout; |
|
47 }; |
29 |
48 |
30 class PageOptions : public AbstractPage |
49 class PageOptions : public AbstractPage |
31 { |
50 { |
32 Q_OBJECT |
51 Q_OBJECT |
33 |
52 |
76 QPushButton *BtnUpdateNow; |
95 QPushButton *BtnUpdateNow; |
77 #endif |
96 #endif |
78 |
97 |
79 FPSEdit *fpsedit; |
98 FPSEdit *fpsedit; |
80 QLabel *labelNN; |
99 QLabel *labelNN; |
81 QSpinBox * volumeBox; |
100 QSlider *SLVolume; |
|
101 QLabel *lblVolumeLevel; |
82 QLineEdit *editNetNick; |
102 QLineEdit *editNetNick; |
83 QLineEdit *editNetPassword; |
103 QLineEdit *editNetPassword; |
84 QSlider *SLQuality; |
104 QSlider *SLQuality; |
85 QCheckBox *CBFrontendEffects; |
105 QCheckBox *CBFrontendEffects; |
86 QComboBox * cbProxyType; |
106 QComboBox * cbProxyType; |
120 private: |
140 private: |
121 QLayout * bodyLayoutDefinition(); |
141 QLayout * bodyLayoutDefinition(); |
122 QLayout * footerLayoutDefinition(); |
142 QLayout * footerLayoutDefinition(); |
123 void connectSignals(); |
143 void connectSignals(); |
124 int resetBindToDefault(int bindID); |
144 int resetBindToDefault(int bindID); |
|
145 void setupTabPage(QWidget * tabpage, QVBoxLayout ** leftColumn, QVBoxLayout ** rightColumn); |
125 |
146 |
126 bool previousFullscreenValue; |
147 bool previousFullscreenValue; |
127 int previousResolutionIndex; |
148 int previousResolutionIndex; |
128 int previousQuality; |
149 int previousQuality; |
129 QLabel *LblNoEditTeam; |
150 QLabel *LblNoEditTeam; |
140 GameUIConfig * config; |
161 GameUIConfig * config; |
141 KeyBinder * binder; |
162 KeyBinder * binder; |
142 int currentTab; |
163 int currentTab; |
143 int binderTab; |
164 int binderTab; |
144 |
165 |
|
166 QLabel * lblFullScreenRes; |
|
167 QLabel * lblWinScreenRes; |
|
168 QWidget * winResContainer; |
|
169 |
145 private slots: |
170 private slots: |
146 void forceFullscreen(int index); |
171 void forceFullscreen(int index); |
147 void setFullscreen(int state); |
172 void setFullscreen(int state); |
148 void setResolution(int state); |
173 void setResolution(int state); |
149 void setQuality(int value); |
174 void setQuality(int value); |
159 void changeRecordAudio(int state); |
184 void changeRecordAudio(int state); |
160 void checkForUpdates(); |
185 void checkForUpdates(); |
161 void tabIndexChanged(int); |
186 void tabIndexChanged(int); |
162 void bindUpdated(int bindID); |
187 void bindUpdated(int bindID); |
163 void resetAllBinds(); |
188 void resetAllBinds(); |
|
189 void setVolume(int); |
164 |
190 |
165 public slots: |
191 public slots: |
166 void setDefaultOptions(); |
192 void setDefaultOptions(); |
167 }; |
193 }; |
168 |
194 |