2011-05-02 20:21:42 +00:00
|
|
|
#ifndef GRAPHICSPAGE_H
|
|
|
|
#define GRAPHICSPAGE_H
|
2011-04-24 19:42:56 +00:00
|
|
|
|
2013-03-05 01:17:28 +00:00
|
|
|
#include "ui_graphicspage.h"
|
2011-05-10 23:12:25 +00:00
|
|
|
|
2015-11-25 18:17:03 +00:00
|
|
|
#include <components/settings/settings.hpp>
|
|
|
|
|
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:
|
2021-05-09 04:28:29 +00:00
|
|
|
explicit GraphicsPage(QWidget* parent = nullptr);
|
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);
|
2019-05-30 04:11:13 +00:00
|
|
|
void slotFramerateLimitToggled(bool checked);
|
2019-10-31 12:31:54 +00:00
|
|
|
void slotShadowDistLimitToggled(bool checked);
|
2013-10-30 13:04:33 +00:00
|
|
|
|
2013-10-25 16:17:26 +00:00
|
|
|
private:
|
2020-08-26 15:58:51 +00:00
|
|
|
QVector<QStringList> mResolutionsPerScreen;
|
|
|
|
|
2020-04-29 09:46:52 +00:00
|
|
|
static QStringList getAvailableResolutions(int screen);
|
|
|
|
static 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
|