20 #include "../Engine/State.h" 21 #include "OptionsBaseState.h" 28 class ToggleTextButton;
33 class InteractiveSurface;
42 static const std::string GL_EXT, GL_FOLDER, GL_STRING;
45 Text *_txtDisplayResolution, *_txtDisplayX;
46 TextEdit *_txtDisplayWidth, *_txtDisplayHeight;
47 ArrowButton *_btnDisplayResolutionUp, *_btnDisplayResolutionDown;
49 Text *_txtLanguage, *_txtFilter, *_txtGeoScale, *_txtBattleScale;
50 ComboBox *_cbxLanguage, *_cbxFilter, *_cbxDisplayMode, *_cbxGeoScale, *_cbxBattleScale;
56 int _resAmount, _resCurrent;
57 std::vector<std::string> _langs, _filters;
59 std::string ucWords(std::string str);
60 void updateDisplayResolution();
void btnLetterboxClick(Action *action)
Handler for clicking the Letterboxed button.
Definition: OptionsVideoState.cpp:547
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
void unpressRootWindowedMode()
Unpresses Root Window Pos button.
Definition: OptionsVideoState.cpp:628
Surface that the user can interact with.
Definition: InteractiveSurface.h:37
Definition: ToggleTextButton.h:27
Screen that lets the user configure various Video options.
Definition: OptionsVideoState.h:39
Text string displayed on screen.
Definition: Text.h:40
~OptionsVideoState()
Cleans up the Options state.
Definition: OptionsVideoState.cpp:326
void updateGeoscapeScale(Action *action)
Handler for updating the selected geoscape scale.
Definition: OptionsVideoState.cpp:582
void cbxLanguageChange(Action *action)
Handler for changing the Language combobox.
Definition: OptionsVideoState.cpp:463
void updateBattlescapeScale(Action *action)
Handler for updating the selected battlescape scale.
Definition: OptionsVideoState.cpp:591
void btnLockMouseClick(Action *action)
Handler for clicking the Lock Mouse button.
Definition: OptionsVideoState.cpp:556
void btnDisplayResolutionUpClick(Action *action)
Handler for clicking the Next Resolution button.
Definition: OptionsVideoState.cpp:356
void txtDisplayHeightChange(Action *action)
Handler for changing the Display Height text.
Definition: OptionsVideoState.cpp:436
Text button with a list dropdown when pressed.
Definition: ComboBox.h:36
void resize(int &, int &)
Update the resolution settings, we just resized the window.
Definition: OptionsVideoState.cpp:601
void updateDisplayMode(Action *action)
Handler for clicking the Display Mode combobox.
Definition: OptionsVideoState.cpp:514
void handle(Action *action)
Handles keypresses.
Definition: OptionsVideoState.cpp:616
void txtDisplayWidthChange(Action *action)
Handler for changing the Display Width text.
Definition: OptionsVideoState.cpp:409
Editable version of Text.
Definition: TextEdit.h:35
void btnRootWindowedModeClick(Action *action)
Handler for clicking the Root Window Pos button.
Definition: OptionsVideoState.cpp:566
Definition: BaseInfoState.cpp:40
Options base state for common stuff across Options windows.
Definition: OptionsBaseState.h:41
void btnDisplayResolutionDownClick(Action *action)
Handler for clicking the Previous Resolution button.
Definition: OptionsVideoState.cpp:375
void cbxFilterChange(Action *action)
Handler for changing the Filter combobox.
Definition: OptionsVideoState.cpp:472
OptionsVideoState(OptionsOrigin origin)
Creates the Options state.
Definition: OptionsVideoState.cpp:47