OpenXcom  1.0
Open-source clone of the original X-Com
OptionsGeoscapeState.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 Text;
26 class TextButton;
27 class ToggleTextButton;
28 class Slider;
29 class ComboBox;
30 
36 {
37 private:
38  Text *_txtDragScroll;
39  ComboBox *_cbxDragScroll;
40  Text *_txtScrollSpeed, *_txtDogfightSpeed, *_txtClockSpeed;
41  Slider *_slrScrollSpeed, *_slrDogfightSpeed, *_slrClockSpeed;
42  Text *_txtGlobeDetails;
43  ToggleTextButton *_btnGlobeCountries, *_btnGlobeRadars, *_btnGlobePaths;
44  Text *_txtOptions;
45  ToggleTextButton *_btnShowFunds;
46 public:
48  OptionsGeoscapeState(OptionsOrigin origin);
52  void cbxDragScrollChange(Action *action);
54  void slrScrollSpeedChange(Action *action);
56  void slrDogfightSpeedChange(Action *action);
58  void slrClockSpeedChange(Action *action);
60  void btnGlobeCountriesClick(Action *action);
62  void btnGlobeRadarsClick(Action *action);
64  void btnGlobePathsClick(Action *action);
66  void btnShowFundsClick(Action *action);
67 };
68 
69 }
void btnGlobeCountriesClick(Action *action)
Handler for clicking the Country Borders button.
Definition: OptionsGeoscapeState.cpp:208
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
OptionsGeoscapeState(OptionsOrigin origin)
Creates the Geoscape Options state.
Definition: OptionsGeoscapeState.cpp:37
void cbxDragScrollChange(Action *action)
Handler for changing the Drag Scroll combobox.
Definition: OptionsGeoscapeState.cpp:172
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
Text button with a list dropdown when pressed.
Definition: ComboBox.h:36
void slrClockSpeedChange(Action *action)
Handler for changing the clock speed slider.
Definition: OptionsGeoscapeState.cpp:199
void slrDogfightSpeedChange(Action *action)
Handler for changing the dogfight speed slider.
Definition: OptionsGeoscapeState.cpp:190
void btnGlobeRadarsClick(Action *action)
Handler for clicking the Radar Ranges button.
Definition: OptionsGeoscapeState.cpp:217
void btnGlobePathsClick(Action *action)
Handler for clicking the Flight Paths button.
Definition: OptionsGeoscapeState.cpp:226
void btnShowFundsClick(Action *action)
Handler for clicking the Show Funds button.
Definition: OptionsGeoscapeState.cpp:235
~OptionsGeoscapeState()
Cleans up the Geoscape Options state.
Definition: OptionsGeoscapeState.cpp:163
Screen that lets the user configure various Geoscape options.
Definition: OptionsGeoscapeState.h:35
void slrScrollSpeedChange(Action *action)
Handler for changing the scroll speed slider.
Definition: OptionsGeoscapeState.cpp:181
Definition: BaseInfoState.cpp:40
Options base state for common stuff across Options windows.
Definition: OptionsBaseState.h:41