1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00
OpenMW/apps/launcher/graphicspage.hpp

42 lines
888 B
C++
Raw Normal View History

#ifndef GRAPHICSPAGE_H
#define GRAPHICSPAGE_H
2011-04-24 19:42:56 +00:00
#include <QWidget>
#include "ui_graphicspage.h"
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:
GraphicsPage(Files::ConfigurationManager &cfg, GraphicsSettings &graphicsSettings, QWidget *parent = 0);
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);
2013-10-25 16:17:26 +00:00
private:
Files::ConfigurationManager &mCfgMgr;
GraphicsSettings &mGraphicsSettings;
2013-10-25 16:17:26 +00:00
QStringList getAvailableResolutions(int screen);
QRect getMaximumResolution();
2013-10-25 16:17:26 +00:00
bool setupSDL();
};
}
#endif