19 #ifndef OPENXCOM_OPTIONSVIDEOSTATE_H
20 #define OPENXCOM_OPTIONSVIDEOSTATE_H
22 #include "../Engine/State.h"
23 #include "OptionsBaseState.h"
30 class ToggleTextButton;
35 class InteractiveSurface;
44 static const std::string GL_EXT, GL_FOLDER, GL_STRING;
47 Text *_txtDisplayResolution, *_txtDisplayX;
48 TextEdit *_txtDisplayWidth, *_txtDisplayHeight;
49 ArrowButton *_btnDisplayResolutionUp, *_btnDisplayResolutionDown;
51 Text *_txtLanguage, *_txtFilter, *_txtGeoScale, *_txtBattleScale;
52 ComboBox *_cbxLanguage, *_cbxFilter, *_cbxDisplayMode, *_cbxGeoScale, *_cbxBattleScale;
58 int _resAmount, _resCurrent;
59 std::vector<std::string> _langs, _filters;
61 void updateDisplayResolution();
Container for all the information associated with a given user action, like mouse clicks,...
Definition: Action.h:35
Text button with a list dropdown when pressed.
Definition: ComboBox.h:39
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:45
Surface that the user can interact with.
Definition: InteractiveSurface.h:40
Options base state for common stuff across Options windows.
Definition: OptionsBaseState.h:44
Screen that lets the user configure various Video options.
Definition: OptionsVideoState.h:42
void cbxFilterChange(Action *action)
Handler for changing the Filter combobox.
Definition: OptionsVideoState.cpp:451
void txtDisplayWidthChange(Action *action)
Handler for changing the Display Width text.
Definition: OptionsVideoState.cpp:388
~OptionsVideoState()
Cleans up the Options state.
Definition: OptionsVideoState.cpp:327
void btnLetterboxClick(Action *action)
Handler for clicking the Letterboxed button.
Definition: OptionsVideoState.cpp:516
void updateGeoscapeScale(Action *action)
Handler for updating the selected geoscape scale.
Definition: OptionsVideoState.cpp:535
void updateDisplayMode(Action *action)
Handler for clicking the Display Mode combobox.
Definition: OptionsVideoState.cpp:483
void btnLockMouseClick(Action *action)
Handler for clicking the Lock Mouse button.
Definition: OptionsVideoState.cpp:525
void handle(Action *action)
Handles keypresses.
Definition: OptionsVideoState.cpp:569
void cbxLanguageChange(Action *action)
Handler for changing the Language combobox.
Definition: OptionsVideoState.cpp:442
void btnDisplayResolutionDownClick(Action *action)
Handler for clicking the Previous Resolution button.
Definition: OptionsVideoState.cpp:355
void updateBattlescapeScale(Action *action)
Handler for updating the selected battlescape scale.
Definition: OptionsVideoState.cpp:544
void btnDisplayResolutionUpClick(Action *action)
Handler for clicking the Next Resolution button.
Definition: OptionsVideoState.cpp:336
void txtDisplayHeightChange(Action *action)
Handler for changing the Display Height text.
Definition: OptionsVideoState.cpp:415
OptionsVideoState(Game *game, OptionsOrigin origin)
Creates the Options state.
Definition: OptionsVideoState.cpp:49
void resize(int &, int &)
Update the resolution settings, we just resized the window.
Definition: OptionsVideoState.cpp:554
Editable version of Text.
Definition: TextEdit.h:36
Text string displayed on screen.
Definition: Text.h:42
Definition: ToggleTextButton.h:33
COPYING:
Definition: BaseInfoState.cpp:41