equal
deleted
inserted
replaced
19 #ifndef PAGE_OPTIONS_H |
19 #ifndef PAGE_OPTIONS_H |
20 #define PAGE_OPTIONS_H |
20 #define PAGE_OPTIONS_H |
21 |
21 |
22 #include "AbstractPage.h" |
22 #include "AbstractPage.h" |
23 |
23 |
|
24 class GameUIConfig; |
24 class FPSEdit; |
25 class FPSEdit; |
25 class IconedGroupBox; |
26 class IconedGroupBox; |
26 class QSignalMapper; |
27 class QSignalMapper; |
27 |
28 |
28 class PageOptions : public AbstractPage |
29 class PageOptions : public AbstractPage |
82 QSpinBox * sbProxyPort; |
83 QSpinBox * sbProxyPort; |
83 QLineEdit * leProxy; |
84 QLineEdit * leProxy; |
84 QLineEdit * leProxyLogin; |
85 QLineEdit * leProxyLogin; |
85 QLineEdit * leProxyPassword; |
86 QLineEdit * leProxyPassword; |
86 |
87 |
|
88 #ifdef VIDEOREC |
|
89 QSpinBox *framerateBox; |
|
90 QSpinBox *bitrateBox; |
|
91 QLineEdit *widthEdit; |
|
92 QLineEdit *heightEdit; |
|
93 QCheckBox *checkUseGameRes; |
|
94 QCheckBox *checkRecordAudio; |
|
95 |
|
96 QString format() |
|
97 { return comboAVFormats->itemData(comboAVFormats->currentIndex()).toString(); } |
|
98 |
|
99 QString videoCodec() |
|
100 { return comboVideoCodecs->itemData(comboVideoCodecs->currentIndex()).toString(); } |
|
101 |
|
102 QString audioCodec() |
|
103 { return comboAudioCodecs->itemData(comboAudioCodecs->currentIndex()).toString(); } |
|
104 |
|
105 void setDefaultCodecs(); |
|
106 bool tryCodecs(const QString & format, const QString & vcodec, const QString & acodec); |
|
107 void setConfig(GameUIConfig * config); |
|
108 #endif |
|
109 |
87 void setTeamOptionsEnabled(bool enabled); |
110 void setTeamOptionsEnabled(bool enabled); |
88 |
111 |
89 signals: |
112 signals: |
90 void newTeamRequested(); |
113 void newTeamRequested(); |
91 void editTeamRequested(const QString & teamName); |
114 void editTeamRequested(const QString & teamName); |
104 QPushButton *BtnNewTeam; |
127 QPushButton *BtnNewTeam; |
105 QPushButton *BtnEditTeam; |
128 QPushButton *BtnEditTeam; |
106 QPushButton *BtnDeleteTeam; |
129 QPushButton *BtnDeleteTeam; |
107 QList<QPushButton *> m_colorButtons; |
130 QList<QPushButton *> m_colorButtons; |
108 |
131 |
|
132 #ifdef VIDEOREC |
|
133 QComboBox *comboAVFormats; |
|
134 QComboBox *comboVideoCodecs; |
|
135 QComboBox *comboAudioCodecs; |
|
136 QPushButton *btnDefaults; |
|
137 GameUIConfig * config; |
|
138 #endif |
|
139 |
109 private slots: |
140 private slots: |
110 void forceFullscreen(int index); |
141 void forceFullscreen(int index); |
111 void setFullscreen(int state); |
142 void setFullscreen(int state); |
112 void setResolution(int state); |
143 void setResolution(int state); |
113 void setQuality(int value); |
144 void setQuality(int value); |
116 void requestDeleteSelectedTeam(); |
147 void requestDeleteSelectedTeam(); |
117 void savePwdChanged(int state); |
148 void savePwdChanged(int state); |
118 void colorButtonClicked(int i); |
149 void colorButtonClicked(int i); |
119 void onColorModelDataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight); |
150 void onColorModelDataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight); |
120 void onProxyTypeChanged(); |
151 void onProxyTypeChanged(); |
|
152 #ifdef VIDEOREC |
|
153 void changeAVFormat(int index); |
|
154 void changeUseGameRes(int state); |
|
155 void changeRecordAudio(int state); |
|
156 void setDefaultOptions(); |
|
157 #endif |
121 }; |
158 }; |
122 |
159 |
123 #endif |
160 #endif |
124 |
161 |