OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OptionsGeoscapeState.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_OPTIONSGEOSCAPESTATE_H
20 #define OPENXCOM_OPTIONSGEOSCAPESTATE_H
21 
22 #include "OptionsBaseState.h"
23 
24 namespace OpenXcom
25 {
26 
27 class Text;
28 class TextButton;
29 class ToggleTextButton;
30 class Slider;
31 class ComboBox;
32 
38 {
39 private:
40  Text *_txtDragScroll;
41  ComboBox *_cbxDragScroll;
42  Text *_txtScrollSpeed, *_txtDogfightSpeed, *_txtClockSpeed;
43  Slider *_slrScrollSpeed, *_slrDogfightSpeed, *_slrClockSpeed;
44  Text *_txtGlobeDetails;
45  ToggleTextButton *_btnGlobeCountries, *_btnGlobeRadars, *_btnGlobePaths;
46  Text *_txtOptions;
47  ToggleTextButton *_btnShowFunds;
48 public:
50  OptionsGeoscapeState(Game *game, OptionsOrigin origin);
54  void cbxDragScrollChange(Action *action);
56  void slrScrollSpeedChange(Action *action);
58  void slrDogfightSpeedChange(Action *action);
60  void slrClockSpeedChange(Action *action);
62  void btnGlobeCountriesClick(Action *action);
64  void btnGlobeRadarsClick(Action *action);
66  void btnGlobePathsClick(Action *action);
68  void btnShowFundsClick(Action *action);
69 };
70 
71 }
72 
73 #endif
void btnGlobeCountriesClick(Action *action)
Handler for clicking the Country Borders button.
Definition: OptionsGeoscapeState.cpp:228
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
void cbxDragScrollChange(Action *action)
Handler for changing the Drag Scroll combobox.
Definition: OptionsGeoscapeState.cpp:192
Definition: ToggleTextButton.h:31
Horizontal slider control to select from a range of values.
Definition: Slider.h:36
OptionsGeoscapeState(Game *game, OptionsOrigin origin)
Creates the Geoscape Options state.
Definition: OptionsGeoscapeState.cpp:43
Text string displayed on screen.
Definition: Text.h:41
Text button with a list dropdown when pressed.
Definition: ComboBox.h:38
void slrClockSpeedChange(Action *action)
Handler for changing the clock speed slider.
Definition: OptionsGeoscapeState.cpp:219
void slrDogfightSpeedChange(Action *action)
Handler for changing the dogfight speed slider.
Definition: OptionsGeoscapeState.cpp:210
void btnGlobeRadarsClick(Action *action)
Handler for clicking the Radar Ranges button.
Definition: OptionsGeoscapeState.cpp:237
void btnGlobePathsClick(Action *action)
Handler for clicking the Flight Paths button.
Definition: OptionsGeoscapeState.cpp:246
void btnShowFundsClick(Action *action)
Handler for clicking the Show Funds button.
Definition: OptionsGeoscapeState.cpp:255
~OptionsGeoscapeState()
Cleans up the Geoscape Options state.
Definition: OptionsGeoscapeState.cpp:183
Screen that lets the user configure various Geoscape options.
Definition: OptionsGeoscapeState.h:37
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
void slrScrollSpeedChange(Action *action)
Handler for changing the scroll speed slider.
Definition: OptionsGeoscapeState.cpp:201
Options base state for common stuff across Options windows.
Definition: OptionsBaseState.h:43