2
0

GeneralOptionsTab.h 891 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * GeneralOptionsTab.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../../../lib/CConfigHandler.h"
  12. #include "../../gui/InterfaceObjectConfigurable.h"
  13. class GeneralOptionsTab : public InterfaceObjectConfigurable
  14. {
  15. private:
  16. SettingsListener onFullscreenChanged;
  17. std::vector<Point> supportedResolutions;
  18. std::vector<int> supportedScaling;
  19. std::vector<int> longTouchDurations;
  20. void setFullscreenMode( bool on, bool exclusive);
  21. void selectGameResolution();
  22. void setGameResolution(int index);
  23. void selectGameScaling();
  24. void setGameScaling(int index);
  25. void selectLongTouchDuration();
  26. void setLongTouchDuration(int index);
  27. public:
  28. GeneralOptionsTab();
  29. void updateResolutionSelector();
  30. };