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;
|
|
|
|
|
2023-02-12 16:03:33 +02:00
|
|
|
std::vector<Point> supportedResolutions;
|
2023-05-08 14:18:34 +02:00
|
|
|
std::vector<int> supportedScaling;
|
2023-06-16 11:59:20 +02:00
|
|
|
std::vector<int> longTouchDurations;
|
2023-02-12 16:03:33 +02:00
|
|
|
|
2023-05-15 18:44:02 +02:00
|
|
|
void setFullscreenMode( bool on, bool exclusive);
|
2023-02-12 16:03:33 +02:00
|
|
|
|
2023-01-29 18:36:33 +02:00
|
|
|
void selectGameResolution();
|
|
|
|
void setGameResolution(int index);
|
|
|
|
|
2023-05-04 22:50:33 +02:00
|
|
|
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();
|
2023-05-19 22:54:43 +02:00
|
|
|
|
|
|
|
void updateResolutionSelector();
|
2023-04-30 17:48:15 +02:00
|
|
|
};
|