author | Wuzzy <Wuzzy2@mail.ru> |
Mon, 20 May 2019 14:59:26 +0200 | |
changeset 15014 | f877fbeaee6c |
parent 14677 | 93429d8f6b3f |
child 15247 | 647157250713 |
permissions | -rw-r--r-- |
5204 | 1 |
/* |
2 |
* Hedgewars, a free turn based strategy game |
|
11046 | 3 |
* Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com> |
5204 | 4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
10108
c68cf030eded
update FSF address. note: two sdl include files (by Sam Lantinga) still have the old FSF address in their copyright - but I ain't gonna touch their copyright headers
sheepluva
parents:
9998
diff
changeset
|
16 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
5204 | 17 |
*/ |
18 |
||
19 |
#ifndef PAGE_OPTIONS_H |
|
20 |
#define PAGE_OPTIONS_H |
|
21 |
||
8387
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
22 |
#include "igbox.h" |
5205
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
23 |
#include "AbstractPage.h" |
5204 | 24 |
|
8387
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
25 |
#include <QString> |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
26 |
|
8151
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
27 |
class GameUIConfig; |
5204 | 28 |
class FPSEdit; |
7541
e51b11349637
Allow customization of colors in ui, store custom colors in config
unc0rr
parents:
7153
diff
changeset
|
29 |
class QSignalMapper; |
8346 | 30 |
class KeyBinder; |
8387
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
31 |
class QGridLayout; |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
32 |
|
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
33 |
// Let's stay D-R-Y |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
34 |
class OptionGroupBox : public IconedGroupBox |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
35 |
{ |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
36 |
Q_OBJECT |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
37 |
|
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
38 |
public: |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
39 |
OptionGroupBox(const QString & iconName, |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
40 |
const QString & title, |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
41 |
QWidget * parent = 0); |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
42 |
QGridLayout * layout(); |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
43 |
void addDivider(); |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
44 |
|
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
45 |
private: |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
46 |
QGridLayout * m_layout; |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
47 |
}; |
5204 | 48 |
|
49 |
class PageOptions : public AbstractPage |
|
50 |
{ |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
51 |
Q_OBJECT |
5204 | 52 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
53 |
public: |
7703 | 54 |
enum ProxyTypes { |
55 |
NoProxy = 0, |
|
56 |
SystemProxy = 1, |
|
57 |
Socks5Proxy = 2, |
|
58 |
HTTPProxy = 3 |
|
59 |
}; |
|
60 |
||
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
61 |
PageOptions(QWidget* parent = 0); |
5204 | 62 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
63 |
QCheckBox *WeaponTooltip; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
64 |
QPushButton *WeaponNew; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
65 |
QPushButton *WeaponEdit; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
66 |
QPushButton *WeaponDelete; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
67 |
QComboBox *WeaponsName; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
68 |
QPushButton *SchemeNew; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
69 |
QPushButton *SchemeEdit; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
70 |
QPushButton *SchemeDelete; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
71 |
QComboBox *SchemesName; |
5204 | 72 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
73 |
QComboBox *CBLanguage; |
5204 | 74 |
|
7700 | 75 |
IconedGroupBox *teamsBox; |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
76 |
QPushButton *BtnAssociateFiles; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
77 |
QComboBox *CBTeamName; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
78 |
IconedGroupBox *AGGroupBox; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
79 |
QComboBox *CBResolution; |
8902
a94c074fd483
fix for issue 599: "Change graphics size settings to use qspinbox"? somebody ask unC0Rr if that's what he wanted :p
sheepluva
parents:
8387
diff
changeset
|
80 |
QSpinBox *windowWidthEdit; |
a94c074fd483
fix for issue 599: "Change graphics size settings to use qspinbox"? somebody ask unC0Rr if that's what he wanted :p
sheepluva
parents:
8387
diff
changeset
|
81 |
QSpinBox *windowHeightEdit; |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
82 |
QComboBox *CBStereoMode; |
8226
67f07ff5b593
Removed redundant "enable"s on checkboxes and variable names.
Mitchell Kember <mk12360@gmail.com>
parents:
8192
diff
changeset
|
83 |
QCheckBox *CBFrontendSound; |
67f07ff5b593
Removed redundant "enable"s on checkboxes and variable names.
Mitchell Kember <mk12360@gmail.com>
parents:
8192
diff
changeset
|
84 |
QCheckBox *CBFrontendMusic; |
67f07ff5b593
Removed redundant "enable"s on checkboxes and variable names.
Mitchell Kember <mk12360@gmail.com>
parents:
8192
diff
changeset
|
85 |
QCheckBox *CBSound; |
67f07ff5b593
Removed redundant "enable"s on checkboxes and variable names.
Mitchell Kember <mk12360@gmail.com>
parents:
8192
diff
changeset
|
86 |
QCheckBox *CBMusic; |
13628
d5e029b84e16
Add setting to disable audio dampening if losing window focus
Wuzzy <Wuzzy2@mail.ru>
parents:
11046
diff
changeset
|
87 |
QCheckBox *CBDampenAudio; |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
88 |
QCheckBox *CBFullscreen; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
89 |
QCheckBox *CBFrontendFullscreen; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
90 |
QCheckBox *CBShowFPS; |
6911
1cda333286e0
added savepassword checkbox to options page, which now reloads values at every acces
koda
parents:
6700
diff
changeset
|
91 |
QCheckBox *CBSavePassword; |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
92 |
QCheckBox *CBAltDamage; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
93 |
QCheckBox *CBNameWithDate; |
9249 | 94 |
|
95 |
||
96 |
QCheckBox *CBTeamTag; |
|
97 |
QCheckBox *CBHogTag; |
|
98 |
QCheckBox *CBHealthTag; |
|
99 |
QCheckBox *CBTagOpacity; |
|
100 |
||
5204 | 101 |
#ifdef __APPLE__ |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
102 |
QCheckBox *CBAutoUpdate; |
8284 | 103 |
QPushButton *BtnUpdateNow; |
5204 | 104 |
#endif |
105 |
||
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
106 |
FPSEdit *fpsedit; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
107 |
QLabel *labelNN; |
8387
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
108 |
QSlider *SLVolume; |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
109 |
QLabel *lblVolumeLevel; |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
110 |
QLineEdit *editNetNick; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
111 |
QLineEdit *editNetPassword; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
112 |
QSlider *SLQuality; |
14677
93429d8f6b3f
Add setting to set default/initial zoom
Wuzzy <Wuzzy2@mail.ru>
parents:
13628
diff
changeset
|
113 |
QSpinBox *SLZoom; |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
114 |
QCheckBox *CBFrontendEffects; |
7700 | 115 |
QComboBox * cbProxyType; |
116 |
QSpinBox * sbProxyPort; |
|
117 |
QLineEdit * leProxy; |
|
118 |
QLineEdit * leProxyLogin; |
|
119 |
QLineEdit * leProxyPassword; |
|
5204 | 120 |
|
8192
81da6576b0c3
Make video recording options have fixed size and merge with spinbox->combobox change.
Mitchell Kember <mk12360@gmail.com>
parents:
8151
diff
changeset
|
121 |
QComboBox *framerateBox; |
8151
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
122 |
QSpinBox *bitrateBox; |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
123 |
QLineEdit *widthEdit; |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
124 |
QLineEdit *heightEdit; |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
125 |
QCheckBox *checkUseGameRes; |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
126 |
QCheckBox *checkRecordAudio; |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
127 |
|
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
128 |
QString format() |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
129 |
{ return comboAVFormats->itemData(comboAVFormats->currentIndex()).toString(); } |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
130 |
|
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
131 |
QString videoCodec() |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
132 |
{ return comboVideoCodecs->itemData(comboVideoCodecs->currentIndex()).toString(); } |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
133 |
|
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
134 |
QString audioCodec() |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
135 |
{ return comboAudioCodecs->itemData(comboAudioCodecs->currentIndex()).toString(); } |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
136 |
|
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
137 |
void setDefaultCodecs(); |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
138 |
bool tryCodecs(const QString & format, const QString & vcodec, const QString & acodec); |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
139 |
void setConfig(GameUIConfig * config); |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
140 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
141 |
void setTeamOptionsEnabled(bool enabled); |
6024 | 142 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
143 |
signals: |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
144 |
void newTeamRequested(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
145 |
void editTeamRequested(const QString & teamName); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
146 |
void deleteTeamRequested(const QString & teamName); |
6024 | 147 |
|
148 |
||
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
149 |
private: |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
150 |
QLayout * bodyLayoutDefinition(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
151 |
QLayout * footerLayoutDefinition(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
152 |
void connectSignals(); |
8346 | 153 |
int resetBindToDefault(int bindID); |
8387
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
154 |
void setupTabPage(QWidget * tabpage, QVBoxLayout ** leftColumn, QVBoxLayout ** rightColumn); |
6042
8b5345758f62
some more cleanups/refactoring/blahblah, some button positions may are a bit off atm. also I added a new picture for one of the buttons
sheepluva
parents:
6024
diff
changeset
|
155 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
156 |
bool previousFullscreenValue; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
157 |
int previousResolutionIndex; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
158 |
int previousQuality; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
159 |
QLabel *LblNoEditTeam; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
160 |
QPushButton *BtnNewTeam; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
161 |
QPushButton *BtnEditTeam; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
162 |
QPushButton *BtnDeleteTeam; |
7541
e51b11349637
Allow customization of colors in ui, store custom colors in config
unc0rr
parents:
7153
diff
changeset
|
163 |
QList<QPushButton *> m_colorButtons; |
5204 | 164 |
|
8151
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
165 |
QComboBox *comboAVFormats; |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
166 |
QComboBox *comboVideoCodecs; |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
167 |
QComboBox *comboAudioCodecs; |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
168 |
QPushButton *btnDefaults; |
8284 | 169 |
QPushButton *btnUpdateNow; |
8151
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
170 |
GameUIConfig * config; |
8346 | 171 |
KeyBinder * binder; |
172 |
int currentTab; |
|
173 |
int binderTab; |
|
8151
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
174 |
|
8387
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
175 |
QLabel * lblFullScreenRes; |
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
176 |
QLabel * lblWinScreenRes; |
9249 | 177 |
QLabel * lblTags; |
8387
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
178 |
QWidget * winResContainer; |
9249 | 179 |
QWidget * tagsContainer; |
8387
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
180 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
181 |
private slots: |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
182 |
void forceFullscreen(int index); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
183 |
void setFullscreen(int state); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
184 |
void setResolution(int state); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
185 |
void setQuality(int value); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
186 |
void trimNetNick(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
187 |
void requestEditSelectedTeam(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6525
diff
changeset
|
188 |
void requestDeleteSelectedTeam(); |
6911
1cda333286e0
added savepassword checkbox to options page, which now reloads values at every acces
koda
parents:
6700
diff
changeset
|
189 |
void savePwdChanged(int state); |
7541
e51b11349637
Allow customization of colors in ui, store custom colors in config
unc0rr
parents:
7153
diff
changeset
|
190 |
void colorButtonClicked(int i); |
e51b11349637
Allow customization of colors in ui, store custom colors in config
unc0rr
parents:
7153
diff
changeset
|
191 |
void onColorModelDataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight); |
7700 | 192 |
void onProxyTypeChanged(); |
8151
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
193 |
void changeAVFormat(int index); |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
194 |
void changeUseGameRes(int state); |
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
195 |
void changeRecordAudio(int state); |
8284 | 196 |
void checkForUpdates(); |
8346 | 197 |
void tabIndexChanged(int); |
198 |
void bindUpdated(int bindID); |
|
199 |
void resetAllBinds(); |
|
8387
f9d1191476ce
Organized options into more relavant tabs.
dag10 <gottlieb.drew@gmail.com>
parents:
8350
diff
changeset
|
200 |
void setVolume(int); |
8192
81da6576b0c3
Make video recording options have fixed size and merge with spinbox->combobox change.
Mitchell Kember <mk12360@gmail.com>
parents:
8151
diff
changeset
|
201 |
|
81da6576b0c3
Make video recording options have fixed size and merge with spinbox->combobox change.
Mitchell Kember <mk12360@gmail.com>
parents:
8151
diff
changeset
|
202 |
public slots: |
8151
25b95d6224fc
Google Code-in: Move video preferences in settings tab
Mitchell Kember <mk12360@gmail.com>
parents:
7703
diff
changeset
|
203 |
void setDefaultOptions(); |
5204 | 204 |
}; |
205 |
||
206 |
#endif |
|
207 |