OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OptionsBattlescapeState.h
1 /*
2  * Copyright 2010-2014 OpenXcom Developers.
3  *
4  * This file is part of OpenXcom.
5  *
6  * OpenXcom is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * OpenXcom is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with OpenXcom. If not, see <http://www.gnu.org/licenses/>.
18  */
19 #ifndef OPENXCOM_OPTIONSBATTLESCAPESTATE_H
20 #define OPENXCOM_OPTIONSBATTLESCAPESTATE_H
21 
22 #include "OptionsBaseState.h"
23 
24 namespace OpenXcom
25 {
26 
27 class Window;
28 class Text;
29 class TextButton;
30 class ToggleTextButton;
31 class Slider;
32 class ComboBox;
33 
39 {
40 private:
41  Text *_txtEdgeScroll, *_txtDragScroll;
42  ComboBox *_cbxEdgeScroll, *_cbxDragScroll;
43  Text *_txtScrollSpeed, *_txtFireSpeed, *_txtXcomSpeed, *_txtAlienSpeed;
44  Slider *_slrScrollSpeed, *_slrFireSpeed, *_slrXcomSpeed, *_slrAlienSpeed;
45  Text *_txtPathPreview;
46  ToggleTextButton *_btnArrows, *_btnTuCost;
47  Text *_txtOptions;
48  ToggleTextButton *_btnTooltips, *_btnDeaths;
49 public:
51  OptionsBattlescapeState(Game *game, OptionsOrigin origin);
55  void cbxEdgeScrollChange(Action *action);
57  void cbxDragScrollChange(Action *action);
59  void slrScrollSpeedChange(Action *action);
61  void slrFireSpeedChange(Action *action);
63  void slrXcomSpeedChange(Action *action);
65  void slrAlienSpeedChange(Action *action);
67  void btnPathPreviewClick(Action *action);
69  void btnTooltipsClick(Action *action);
71  void btnDeathsClick(Action *action);
72 };
73 
74 }
75 
76 #endif
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
void btnTooltipsClick(Action *action)
Handler for clicking the Tooltips button.
Definition: OptionsBattlescapeState.cpp:302
Definition: ToggleTextButton.h:31
Horizontal slider control to select from a range of values.
Definition: Slider.h:36
Text string displayed on screen.
Definition: Text.h:41
void cbxEdgeScrollChange(Action *action)
Handler for changing the Edge Scroll combobox.
Definition: OptionsBattlescapeState.cpp:230
void slrAlienSpeedChange(Action *action)
Handler for changing the alien movement speed slider.
Definition: OptionsBattlescapeState.cpp:275
void btnDeathsClick(Action *action)
Handler for clicking the Death Notifications button.
Definition: OptionsBattlescapeState.cpp:311
void btnPathPreviewClick(Action *action)
Handler for clicking a Path Preview button.
Definition: OptionsBattlescapeState.cpp:284
Text button with a list dropdown when pressed.
Definition: ComboBox.h:38
void cbxDragScrollChange(Action *action)
Handler for changing the Drag Scroll combobox.
Definition: OptionsBattlescapeState.cpp:239
Screen that lets the user configure various Battlescape options.
Definition: OptionsBattlescapeState.h:38
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
~OptionsBattlescapeState()
Cleans up the Battlescape Options state.
Definition: OptionsBattlescapeState.cpp:221
void slrScrollSpeedChange(Action *action)
Handler for changing the scroll speed slider.
Definition: OptionsBattlescapeState.cpp:248
OptionsBattlescapeState(Game *game, OptionsOrigin origin)
Creates the Battlescape Options state.
Definition: OptionsBattlescapeState.cpp:42
void slrFireSpeedChange(Action *action)
Handler for changing the fire speed slider.
Definition: OptionsBattlescapeState.cpp:257
Options base state for common stuff across Options windows.
Definition: OptionsBaseState.h:43
void slrXcomSpeedChange(Action *action)
Handler for changing the X-COM movement speed slider.
Definition: OptionsBattlescapeState.cpp:266