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 |
|
|
22 |
#include "pages.h"
|
|
23 |
|
|
24 |
class FPSEdit;
|
|
25 |
|
|
26 |
class PageOptions : public AbstractPage
|
|
27 |
{
|
|
28 |
Q_OBJECT
|
|
29 |
|
|
30 |
public:
|
|
31 |
PageOptions(QWidget* parent = 0);
|
|
32 |
|
|
33 |
QCheckBox *WeaponTooltip;
|
|
34 |
QPushButton *WeaponNew;
|
|
35 |
QPushButton *WeaponEdit;
|
|
36 |
QPushButton *WeaponDelete;
|
|
37 |
QComboBox *WeaponsName;
|
|
38 |
QPushButton *SchemeNew;
|
|
39 |
QPushButton *SchemeEdit;
|
|
40 |
QPushButton *SchemeDelete;
|
|
41 |
QComboBox *SchemesName;
|
|
42 |
|
|
43 |
QComboBox *CBLanguage;
|
|
44 |
|
|
45 |
QPushButton *BtnBack;
|
|
46 |
IconedGroupBox *teamsBox;
|
|
47 |
QPushButton *BtnNewTeam;
|
|
48 |
QPushButton *BtnEditTeam;
|
|
49 |
QPushButton *BtnDeleteTeam;
|
|
50 |
QPushButton *BtnAssociateFiles;
|
|
51 |
QLabel *LblNoEditTeam;
|
|
52 |
QComboBox *CBTeamName;
|
|
53 |
IconedGroupBox *AGGroupBox;
|
|
54 |
QComboBox *CBResolution;
|
|
55 |
QComboBox *CBStereoMode;
|
|
56 |
QCheckBox *CBEnableSound;
|
|
57 |
QCheckBox *CBEnableFrontendSound;
|
|
58 |
QCheckBox *CBEnableMusic;
|
|
59 |
QCheckBox *CBEnableFrontendMusic;
|
|
60 |
QCheckBox *CBFullscreen;
|
|
61 |
QCheckBox *CBFrontendFullscreen;
|
|
62 |
QCheckBox *CBShowFPS;
|
|
63 |
QCheckBox *CBAltDamage;
|
|
64 |
QCheckBox *CBNameWithDate;
|
|
65 |
#ifdef __APPLE__
|
|
66 |
QCheckBox *CBAutoUpdate;
|
|
67 |
#endif
|
|
68 |
|
|
69 |
FPSEdit *fpsedit;
|
|
70 |
QPushButton *BtnSaveOptions;
|
|
71 |
QLabel *labelNN;
|
|
72 |
QSpinBox * volumeBox;
|
|
73 |
QLineEdit *editNetNick;
|
|
74 |
QSlider *SLQuality;
|
|
75 |
QCheckBox *CBFrontendEffects;
|
|
76 |
|
|
77 |
private:
|
|
78 |
bool previousFullscreenValue;
|
|
79 |
int previousResolutionIndex;
|
|
80 |
int previousQuality;
|
|
81 |
|
|
82 |
private slots:
|
|
83 |
void forceFullscreen(int index);
|
|
84 |
void setFullscreen(void);
|
|
85 |
void trimNetNick();
|
|
86 |
};
|
|
87 |
|
|
88 |
#endif
|
|
89 |
|