24 class FPSEdit; |
24 class FPSEdit; |
25 class IconedGroupBox; |
25 class IconedGroupBox; |
26 |
26 |
27 class PageOptions : public AbstractPage |
27 class PageOptions : public AbstractPage |
28 { |
28 { |
29 Q_OBJECT |
29 Q_OBJECT |
30 |
30 |
31 public: |
31 public: |
32 PageOptions(QWidget* parent = 0); |
32 PageOptions(QWidget* parent = 0); |
33 |
33 |
34 QCheckBox *WeaponTooltip; |
34 QCheckBox *WeaponTooltip; |
35 QPushButton *WeaponNew; |
35 QPushButton *WeaponNew; |
36 QPushButton *WeaponEdit; |
36 QPushButton *WeaponEdit; |
37 QPushButton *WeaponDelete; |
37 QPushButton *WeaponDelete; |
38 QComboBox *WeaponsName; |
38 QComboBox *WeaponsName; |
39 QPushButton *SchemeNew; |
39 QPushButton *SchemeNew; |
40 QPushButton *SchemeEdit; |
40 QPushButton *SchemeEdit; |
41 QPushButton *SchemeDelete; |
41 QPushButton *SchemeDelete; |
42 QComboBox *SchemesName; |
42 QComboBox *SchemesName; |
43 |
43 |
44 QComboBox *CBLanguage; |
44 QComboBox *CBLanguage; |
45 |
45 |
46 IconedGroupBox *teamsBox;; |
46 IconedGroupBox *teamsBox;; |
47 QPushButton *BtnAssociateFiles; |
47 QPushButton *BtnAssociateFiles; |
48 QComboBox *CBTeamName; |
48 QComboBox *CBTeamName; |
49 IconedGroupBox *AGGroupBox; |
49 IconedGroupBox *AGGroupBox; |
50 QComboBox *CBResolution; |
50 QComboBox *CBResolution; |
51 QComboBox *CBStereoMode; |
51 QComboBox *CBStereoMode; |
52 QCheckBox *CBEnableSound; |
52 QCheckBox *CBEnableSound; |
53 QCheckBox *CBEnableFrontendSound; |
53 QCheckBox *CBEnableFrontendSound; |
54 QCheckBox *CBEnableMusic; |
54 QCheckBox *CBEnableMusic; |
55 QCheckBox *CBEnableFrontendMusic; |
55 QCheckBox *CBEnableFrontendMusic; |
56 QCheckBox *CBFullscreen; |
56 QCheckBox *CBFullscreen; |
57 QCheckBox *CBFrontendFullscreen; |
57 QCheckBox *CBFrontendFullscreen; |
58 QCheckBox *CBShowFPS; |
58 QCheckBox *CBShowFPS; |
59 QCheckBox *CBAltDamage; |
59 QCheckBox *CBAltDamage; |
60 QCheckBox *CBNameWithDate; |
60 QCheckBox *CBNameWithDate; |
61 #ifdef __APPLE__ |
61 #ifdef __APPLE__ |
62 QCheckBox *CBAutoUpdate; |
62 QCheckBox *CBAutoUpdate; |
63 #endif |
63 #endif |
64 |
64 |
65 FPSEdit *fpsedit; |
65 FPSEdit *fpsedit; |
66 QLabel *labelNN; |
66 QLabel *labelNN; |
67 QLabel *labelNetPassword; |
67 QLabel *labelNetPassword; |
68 QSpinBox * volumeBox; |
68 QSpinBox * volumeBox; |
69 QLineEdit *editNetNick; |
69 QLineEdit *editNetNick; |
70 QLineEdit *editNetPassword; |
70 QLineEdit *editNetPassword; |
71 QSlider *SLQuality; |
71 QSlider *SLQuality; |
72 QCheckBox *CBFrontendEffects; |
72 QCheckBox *CBFrontendEffects; |
73 |
73 |
74 void setTeamOptionsEnabled(bool enabled); |
74 void setTeamOptionsEnabled(bool enabled); |
75 |
75 |
76 signals: |
76 signals: |
77 void newTeamRequested(); |
77 void newTeamRequested(); |
78 void editTeamRequested(const QString & teamName); |
78 void editTeamRequested(const QString & teamName); |
79 void deleteTeamRequested(const QString & teamName); |
79 void deleteTeamRequested(const QString & teamName); |
80 |
80 |
81 |
81 |
82 private: |
82 private: |
83 QLayout * bodyLayoutDefinition(); |
83 QLayout * bodyLayoutDefinition(); |
84 QLayout * footerLayoutDefinition(); |
84 QLayout * footerLayoutDefinition(); |
85 void connectSignals(); |
85 void connectSignals(); |
86 |
86 |
87 bool previousFullscreenValue; |
87 bool previousFullscreenValue; |
88 int previousResolutionIndex; |
88 int previousResolutionIndex; |
89 int previousQuality; |
89 int previousQuality; |
90 QLabel *LblNoEditTeam; |
90 QLabel *LblNoEditTeam; |
91 QPushButton *BtnNewTeam; |
91 QPushButton *BtnNewTeam; |
92 QPushButton *BtnEditTeam; |
92 QPushButton *BtnEditTeam; |
93 QPushButton *BtnDeleteTeam; |
93 QPushButton *BtnDeleteTeam; |
94 |
94 |
95 private slots: |
95 private slots: |
96 void forceFullscreen(int index); |
96 void forceFullscreen(int index); |
97 void setFullscreen(int state); |
97 void setFullscreen(int state); |
98 void setResolution(int state); |
98 void setResolution(int state); |
99 void setQuality(int value); |
99 void setQuality(int value); |
100 void trimNetNick(); |
100 void trimNetNick(); |
101 void requestEditSelectedTeam(); |
101 void requestEditSelectedTeam(); |
102 void requestDeleteSelectedTeam(); |
102 void requestDeleteSelectedTeam(); |
103 }; |
103 }; |
104 |
104 |
105 #endif |
105 #endif |
106 |
106 |