author | mikade |
Tue, 26 Jul 2011 01:02:02 +0200 | |
changeset 5457 | 48fe8e03a9cf |
parent 5229 | 148d581b17ab |
child 5877 | 514b639c40da |
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 |
||
46 |
QPushButton *BtnBack; |
|
47 |
IconedGroupBox *teamsBox; |
|
48 |
QPushButton *BtnNewTeam; |
|
49 |
QPushButton *BtnEditTeam; |
|
50 |
QPushButton *BtnDeleteTeam; |
|
51 |
QPushButton *BtnAssociateFiles; |
|
52 |
QLabel *LblNoEditTeam; |
|
53 |
QComboBox *CBTeamName; |
|
54 |
IconedGroupBox *AGGroupBox; |
|
55 |
QComboBox *CBResolution; |
|
56 |
QComboBox *CBStereoMode; |
|
57 |
QCheckBox *CBEnableSound; |
|
58 |
QCheckBox *CBEnableFrontendSound; |
|
59 |
QCheckBox *CBEnableMusic; |
|
60 |
QCheckBox *CBEnableFrontendMusic; |
|
61 |
QCheckBox *CBFullscreen; |
|
62 |
QCheckBox *CBFrontendFullscreen; |
|
63 |
QCheckBox *CBShowFPS; |
|
64 |
QCheckBox *CBAltDamage; |
|
65 |
QCheckBox *CBNameWithDate; |
|
66 |
#ifdef __APPLE__ |
|
67 |
QCheckBox *CBAutoUpdate; |
|
68 |
#endif |
|
69 |
||
70 |
FPSEdit *fpsedit; |
|
71 |
QPushButton *BtnSaveOptions; |
|
72 |
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
|
73 |
QLabel *labelNetPassword; |
5204 | 74 |
QSpinBox * volumeBox; |
75 |
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
|
76 |
QLineEdit *editNetPassword; |
5204 | 77 |
QSlider *SLQuality; |
78 |
QCheckBox *CBFrontendEffects; |
|
79 |
||
80 |
private: |
|
81 |
bool previousFullscreenValue; |
|
82 |
int previousResolutionIndex; |
|
83 |
int previousQuality; |
|
84 |
||
85 |
private slots: |
|
86 |
void forceFullscreen(int index); |
|
87 |
void setFullscreen(void); |
|
88 |
void trimNetNick(); |
|
89 |
}; |
|
90 |
||
91 |
#endif |
|
92 |