1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-28 18:18:52 +00:00
OpenMW/apps/launcher/graphicspage.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
958 B
C++
Raw Normal View History

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