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