OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
graphicspage.hpp
Go to the documentation of this file.
1 #ifndef GRAPHICSPAGE_H
2 #define GRAPHICSPAGE_H
3 
4 #include <QWidget>
5 
6 #include "ui_graphicspage.h"
7 
9 
10 namespace Files { struct ConfigurationManager; }
11 
12 namespace Launcher
13 {
14  class GraphicsSettings;
15 
16  class GraphicsPage : public QWidget, private Ui::GraphicsPage
17  {
18  Q_OBJECT
19 
20  public:
21  GraphicsPage(Files::ConfigurationManager &cfg, Settings::Manager &engineSettings, QWidget *parent = 0);
22 
23  void saveSettings();
24  bool loadSettings();
25 
26  public slots:
27  void screenChanged(int screen);
28 
29  private slots:
30  void slotFullScreenChanged(int state);
31  void slotStandardToggled(bool checked);
32 
33  private:
36 
37  QStringList getAvailableResolutions(int screen);
38  QRect getMaximumResolution();
39 
40  bool setupSDL();
41  };
42 }
43 #endif
void slotStandardToggled(bool checked)
Definition: graphicspage.cpp:248
QRect getMaximumResolution()
Definition: graphicspage.cpp:209
void slotFullScreenChanged(int state)
Definition: graphicspage.cpp:232
Definition: configurationmanager.hpp:20
Settings::Manager & mEngineSettings
Definition: graphicspage.hpp:35
bool loadSettings()
Definition: graphicspage.cpp:78
GraphicsPage(Files::ConfigurationManager &cfg, Settings::Manager &engineSettings, QWidget *parent=0)
Definition: graphicspage.cpp:35
Definition: graphicspage.hpp:16
void saveSettings()
Definition: graphicspage.cpp:118
bool setupSDL()
Definition: graphicspage.cpp:54
Files::ConfigurationManager & mCfgMgr
Definition: graphicspage.hpp:34
void screenChanged(int screen)
Definition: graphicspage.cpp:224
Settings management (can change during runtime)
Definition: settings.hpp:17
QStringList getAvailableResolutions(int screen)
Definition: graphicspage.cpp:162