1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/launcher/graphicspage.hpp

45 lines
966 B
C++
Raw Normal View History

#ifndef GRAPHICSPAGE_H
#define GRAPHICSPAGE_H
2011-04-24 21:42:56 +02:00
#include "ui_graphicspage.h"
#include <components/settings/settings.hpp>
#include "sdlinit.hpp"
namespace Files { struct ConfigurationManager; }
2013-10-25 11:17:26 -05:00
namespace Launcher
{
2013-10-25 11:17:26 -05:00
class GraphicsSettings;
2013-10-25 11:17:26 -05:00
class GraphicsPage : public QWidget, private Ui::GraphicsPage
{
Q_OBJECT
2013-10-25 11:17:26 -05:00
public:
explicit GraphicsPage(QWidget *parent = nullptr);
2013-10-25 11:17:26 -05:00
void saveSettings();
bool loadSettings();
2013-10-25 11:17:26 -05:00
public slots:
void screenChanged(int screen);
2013-10-25 11:17:26 -05:00
private slots:
void slotFullScreenChanged(int state);
void slotStandardToggled(bool checked);
void slotFramerateLimitToggled(bool checked);
void slotShadowDistLimitToggled(bool checked);
2013-10-25 11:17:26 -05:00
private:
QVector<QStringList> mResolutionsPerScreen;
static QStringList getAvailableResolutions(int screen);
static QRect getMaximumResolution();
2013-10-25 11:17:26 -05:00
bool setupSDL();
};
}
#endif