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;
|
|
|
|
std::vector<Point> selectableResolutions;
|
|
|
|
|
|
|
|
void setFullscreenMode( bool on);
|
|
|
|
void fillSelectableResolutions();
|
|
|
|
bool isResolutionSupported(const Point & resolution);
|
|
|
|
bool isResolutionSupported(const Point & resolution, bool fullscreen);
|
|
|
|
|
2023-01-29 18:36:33 +02:00
|
|
|
void selectGameResolution();
|
|
|
|
void setGameResolution(int index);
|
|
|
|
|
|
|
|
public:
|
2023-02-12 18:49:41 +02:00
|
|
|
GeneralOptionsTab();
|
2023-01-29 18:36:33 +02:00
|
|
|
};
|