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