1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/client/windows/settings/GeneralOptionsTab.h

41 lines
891 B
C++
Raw Normal View History

2023-01-29 18:36:33 +02:00
/*
2023-02-12 18:49:41 +02:00
* GeneralOptionsTab.h, part of VCMI engine
2023-01-29 18:36:33 +02:00
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
2023-02-12 18:29:23 +02:00
#include "../../../lib/CConfigHandler.h"
#include "../../gui/InterfaceObjectConfigurable.h"
2023-01-29 18:36:33 +02:00
2023-02-18 17:35:07 +02:00
2023-02-12 18:49:41 +02:00
class GeneralOptionsTab : public InterfaceObjectConfigurable
2023-01-29 18:36:33 +02:00
{
private:
SettingsListener onFullscreenChanged;
std::vector<Point> supportedResolutions;
std::vector<int> supportedScaling;
2023-06-16 11:59:20 +02:00
std::vector<int> longTouchDurations;
void setFullscreenMode( bool on, bool exclusive);
2023-01-29 18:36:33 +02:00
void selectGameResolution();
void setGameResolution(int index);
void selectGameScaling();
void setGameScaling(int index);
2023-06-16 11:59:20 +02:00
void selectLongTouchDuration();
void setLongTouchDuration(int index);
2023-01-29 18:36:33 +02:00
public:
2023-02-12 18:49:41 +02:00
GeneralOptionsTab();
void updateResolutionSelector();
};