2011-05-02 22:21:42 +02:00
|
|
|
#ifndef GRAPHICSPAGE_H
|
|
|
|
#define GRAPHICSPAGE_H
|
2011-04-24 21:42:56 +02:00
|
|
|
|
2013-03-05 02:17:28 +01:00
|
|
|
#include "ui_graphicspage.h"
|
2011-05-11 01:12:25 +02:00
|
|
|
|
2023-10-27 12:24:42 +02:00
|
|
|
#include <components/settings/windowmode.hpp>
|
2015-11-25 13:17:03 -05:00
|
|
|
|
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:
|
2021-05-08 23:28:29 -05:00
|
|
|
explicit GraphicsPage(QWidget* parent = nullptr);
|
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);
|
2019-05-30 07:11:13 +03:00
|
|
|
void slotFramerateLimitToggled(bool checked);
|
2013-10-30 14:04:33 +01:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
private:
|
2020-08-26 16:58:51 +01:00
|
|
|
QVector<QStringList> mResolutionsPerScreen;
|
|
|
|
|
2020-04-29 11:46:52 +02:00
|
|
|
static QStringList getAvailableResolutions(int screen);
|
|
|
|
static QRect getMaximumResolution();
|
2011-05-02 22:21:42 +02:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
bool setupSDL();
|
2023-10-27 12:24:42 +02:00
|
|
|
void handleWindowModeChange(Settings::WindowMode state);
|
2013-10-25 11:17:26 -05:00
|
|
|
};
|
|
|
|
}
|
2011-05-02 22:21:42 +02:00
|
|
|
#endif
|