mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
34 lines
836 B
C++
34 lines
836 B
C++
/*
|
|
* GeneralOptionsTab.h, part of VCMI engine
|
|
*
|
|
* 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
|
|
|
|
#include "../../../lib/CConfigHandler.h"
|
|
#include "../../gui/InterfaceObjectConfigurable.h"
|
|
|
|
|
|
class GeneralOptionsTab : public InterfaceObjectConfigurable
|
|
{
|
|
private:
|
|
SettingsListener onFullscreenChanged;
|
|
|
|
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);
|
|
|
|
void selectGameResolution();
|
|
void setGameResolution(int index);
|
|
|
|
public:
|
|
GeneralOptionsTab();
|
|
}; |