author | koda |
Tue, 17 Jan 2012 23:36:15 +0100 | |
changeset 6582 | d32b5fde9ea6 |
parent 6525 | 6c97379c584b |
child 6616 | f77bb02b669f |
permissions | -rw-r--r-- |
5204 | 1 |
/* |
2 |
* Hedgewars, a free turn based strategy game |
|
3 |
* Copyright (c) 2006-2011 Andrey Korotaev <unC0Rr@gmail.com> |
|
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 |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
17 |
*/ |
|
18 |
||
19 |
#ifndef PAGE_OPTIONS_H |
|
20 |
#define PAGE_OPTIONS_H |
|
21 |
||
5205
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
22 |
#include "AbstractPage.h" |
5204 | 23 |
|
24 |
class FPSEdit; |
|
5205
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
25 |
class IconedGroupBox; |
5204 | 26 |
|
27 |
class PageOptions : public AbstractPage |
|
28 |
{ |
|
29 |
Q_OBJECT |
|
30 |
||
31 |
public: |
|
32 |
PageOptions(QWidget* parent = 0); |
|
33 |
||
34 |
QCheckBox *WeaponTooltip; |
|
35 |
QPushButton *WeaponNew; |
|
36 |
QPushButton *WeaponEdit; |
|
37 |
QPushButton *WeaponDelete; |
|
38 |
QComboBox *WeaponsName; |
|
39 |
QPushButton *SchemeNew; |
|
40 |
QPushButton *SchemeEdit; |
|
41 |
QPushButton *SchemeDelete; |
|
42 |
QComboBox *SchemesName; |
|
43 |
||
44 |
QComboBox *CBLanguage; |
|
45 |
||
6024 | 46 |
IconedGroupBox *teamsBox;; |
5204 | 47 |
QPushButton *BtnAssociateFiles; |
48 |
QComboBox *CBTeamName; |
|
49 |
IconedGroupBox *AGGroupBox; |
|
50 |
QComboBox *CBResolution; |
|
51 |
QComboBox *CBStereoMode; |
|
52 |
QCheckBox *CBEnableSound; |
|
53 |
QCheckBox *CBEnableFrontendSound; |
|
54 |
QCheckBox *CBEnableMusic; |
|
55 |
QCheckBox *CBEnableFrontendMusic; |
|
56 |
QCheckBox *CBFullscreen; |
|
57 |
QCheckBox *CBFrontendFullscreen; |
|
58 |
QCheckBox *CBShowFPS; |
|
59 |
QCheckBox *CBAltDamage; |
|
60 |
QCheckBox *CBNameWithDate; |
|
61 |
#ifdef __APPLE__ |
|
62 |
QCheckBox *CBAutoUpdate; |
|
63 |
#endif |
|
64 |
||
65 |
FPSEdit *fpsedit; |
|
66 |
QLabel *labelNN; |
|
5229
148d581b17ab
Attempt to fix issue 125. The password pop-up doesn't appear every time when going into the official server anymore, now it only does it when the password is blank. If a user enters an invalid password, the password is set blank to avoid the user going back to the official server just to be rejected. When entering an invalid password, the unknown error dialog doesn't show up anymore, but the connection lost to server one still does. This fixes the bug where the user would be spammed with error messages. The user can also now change his password in the settings page.
Zorg <zorgiepoo@gmail.com>
parents:
5205
diff
changeset
|
67 |
QLabel *labelNetPassword; |
5204 | 68 |
QSpinBox * volumeBox; |
69 |
QLineEdit *editNetNick; |
|
5229
148d581b17ab
Attempt to fix issue 125. The password pop-up doesn't appear every time when going into the official server anymore, now it only does it when the password is blank. If a user enters an invalid password, the password is set blank to avoid the user going back to the official server just to be rejected. When entering an invalid password, the unknown error dialog doesn't show up anymore, but the connection lost to server one still does. This fixes the bug where the user would be spammed with error messages. The user can also now change his password in the settings page.
Zorg <zorgiepoo@gmail.com>
parents:
5205
diff
changeset
|
70 |
QLineEdit *editNetPassword; |
5204 | 71 |
QSlider *SLQuality; |
72 |
QCheckBox *CBFrontendEffects; |
|
73 |
||
6024 | 74 |
void setTeamOptionsEnabled(bool enabled); |
75 |
||
76 |
signals: |
|
77 |
void newTeamRequested(); |
|
78 |
void editTeamRequested(const QString & teamName); |
|
79 |
void deleteTeamRequested(const QString & teamName); |
|
80 |
||
81 |
||
5204 | 82 |
private: |
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
|
83 |
QLayout * bodyLayoutDefinition(); |
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
|
84 |
QLayout * footerLayoutDefinition(); |
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
|
85 |
void connectSignals(); |
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
|
86 |
|
5204 | 87 |
bool previousFullscreenValue; |
88 |
int previousResolutionIndex; |
|
89 |
int previousQuality; |
|
6024 | 90 |
QLabel *LblNoEditTeam; |
91 |
QPushButton *BtnNewTeam; |
|
92 |
QPushButton *BtnEditTeam; |
|
93 |
QPushButton *BtnDeleteTeam; |
|
5204 | 94 |
|
95 |
private slots: |
|
96 |
void forceFullscreen(int index); |
|
5878 | 97 |
void setFullscreen(int state); |
98 |
void setResolution(int state); |
|
99 |
void setQuality(int value); |
|
5204 | 100 |
void trimNetNick(); |
6024 | 101 |
void requestEditSelectedTeam(); |
102 |
void requestDeleteSelectedTeam(); |
|
5204 | 103 |
}; |
104 |
||
105 |
#endif |
|
106 |