2011-05-02 22:21:42 +02:00
|
|
|
#ifndef GRAPHICSPAGE_H
|
|
|
|
#define GRAPHICSPAGE_H
|
2011-04-24 21:42:56 +02:00
|
|
|
|
2011-05-02 22:21:42 +02:00
|
|
|
#include <QWidget>
|
|
|
|
|
2013-03-05 02:17:28 +01:00
|
|
|
#include "ui_graphicspage.h"
|
2011-05-11 01:12:25 +02:00
|
|
|
|
2015-11-25 13:17:03 -05:00
|
|
|
#include <components/settings/settings.hpp>
|
|
|
|
|
2012-01-21 01:14:35 +01:00
|
|
|
namespace Files { struct ConfigurationManager; }
|
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
namespace Launcher
|
2011-05-02 22:21:42 +02:00
|
|
|
{
|
2013-10-25 11:17:26 -05:00
|
|
|
class GraphicsSettings;
|
2011-05-02 22:21:42 +02:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
class GraphicsPage : public QWidget, private Ui::GraphicsPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2011-05-11 01:12:25 +02:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
public:
|
2015-11-25 13:17:03 -05:00
|
|
|
GraphicsPage(Files::ConfigurationManager &cfg, Settings::Manager &engineSettings, QWidget *parent = 0);
|
2013-06-23 03:49:30 +02:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
void saveSettings();
|
|
|
|
bool loadSettings();
|
2011-05-11 01:12:25 +02:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
public slots:
|
|
|
|
void screenChanged(int screen);
|
2013-03-05 02:17:28 +01:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
private slots:
|
|
|
|
void slotFullScreenChanged(int state);
|
|
|
|
void slotStandardToggled(bool checked);
|
2013-10-30 14:04:33 +01:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
private:
|
|
|
|
Files::ConfigurationManager &mCfgMgr;
|
2015-11-25 13:17:03 -05:00
|
|
|
Settings::Manager &mEngineSettings;
|
2015-11-25 21:30:04 -05:00
|
|
|
Settings::Manager mInitialSettings;
|
2011-05-11 01:12:25 +02:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
QStringList getAvailableResolutions(int screen);
|
|
|
|
QRect getMaximumResolution();
|
2011-05-02 22:21:42 +02:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
bool setupSDL();
|
|
|
|
};
|
|
|
|
}
|
2011-05-02 22:21:42 +02:00
|
|
|
#endif
|