Emergency 20 Dokumentation  4.2.0
ExtendedPreferencesGraphicWindow.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
15 
18 
19 
20 //[-------------------------------------------------------]
21 //[ Namespace ]
22 //[-------------------------------------------------------]
23 namespace em5
24 {
25 
26 
27  //[-------------------------------------------------------]
28  //[ Classes ]
29  //[-------------------------------------------------------]
35  {
36 
37 
38  //[-------------------------------------------------------]
39  //[ Public definitions ]
40  //[-------------------------------------------------------]
41  public:
43  {
44  OFF = 0,
45  LOW,
49  };
50 
52  {
56  float population;
62  bool fxaa;
64 
66  compositorQuality(qsf::compositing::CompositingSettingsGroup::Quality::MEDIUM_QUALITY),
67  lightingQuality(qsf::compositing::CompositingSettingsGroup::Quality::MEDIUM_QUALITY),
68  mapQuality(qsf::RendererSettingsGroup::MapQuality::MEDIUM_MAP_QUALITY),
69  population(0.5f),
70  shadowQuality(MEDIUM),
71  textureDetails(qsf::compositing::CompositingSettingsGroup::Quality::MEDIUM_QUALITY),
72  textureFiltering(qsf::RendererSettingsGroup::TextureFilteringQuality::BILINEAR_TEXTURE_FILTERING),
73  environmentDetails(qsf::compositing::CompositingSettingsGroup::Quality::MEDIUM_QUALITY),
74  depthOfField(false),
75  fxaa(false),
76  effects(qsf::compositing::CompositingSettingsGroup::Quality::MEDIUM_QUALITY)
77  {
78  // Nothing to do here
79  }
80 
81  };
82 
83 
84  //[-------------------------------------------------------]
85  //[ Public methods ]
86  //[-------------------------------------------------------]
87  public:
89  void inMainMenu(bool menu);
90  CustomGraphicSettings& getCustomGraphicSettings();
91  void loadSavedSettings();
92  void initWindow();
93 
94 
95  //[-------------------------------------------------------]
96  //[ Public virtual qsf::GuiDocument methods ]
97  //[-------------------------------------------------------]
98  public:
99  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
100 
101 
102  //[-------------------------------------------------------]
103  //[ Protected virtual em5::MainMenuWindowBase methods ]
104  //[-------------------------------------------------------]
105  protected:
106  virtual void onGoingBack() override;
107 
108 
109  //[-------------------------------------------------------]
110  //[ Private methods ]
111  //[-------------------------------------------------------]
112  private:
113  void saveSettingsInStruct();
114  void setSelectionElement(std::string elementID, qsf::compositing::CompositingSettingsGroup::Quality value);
115  void setSelectionElement(std::string elementID, GameSettingsGroup::Quality value);
116  void setSelectionElement(std::string elementID, int value);
117  void setSelectionElement(std::string elementID, bool value);
118 
119 
120  //[-------------------------------------------------------]
121  //[ Private data ]
122  //[-------------------------------------------------------]
123  private:
124  CustomGraphicSettings mCustomGraphicSettings;
125 
126 
127  };
128 
129 
130 //[-------------------------------------------------------]
131 //[ Namespace ]
132 //[-------------------------------------------------------]
133 } // em5
Definition: ActionPriority.h:13
CustomGraphicSettings & getCustomGraphicSettings()
qsf::compositing::CompositingSettingsGroup::Quality compositorQuality
Definition: ExtendedPreferencesGraphicWindow.h:53
Definition: ExtendedPreferencesGraphicWindow.h:47
TextureFilteringQuality
Texture filtering quality.
Definition: RendererSettingsGroup.h:163
virtual void onGoingBack() override
Definition: ExtendedPreferencesGraphicWindow.h:51
Quality
Quality setting.
Definition: CompositingSettingsGroup.h:83
Preferences window.
Definition: ExtendedPreferencesGraphicWindow.h:34
Quality
Quality setting.
Definition: GameSettingsGroup.h:118
Definition: PickupPersonByParamedicAction.h:21
Base window for main menu windows.
Definition: MainMenuWindowBase.h:40
qsf::RendererSettingsGroup::MapQuality mapQuality
Definition: ExtendedPreferencesGraphicWindow.h:55
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
CustomGraphicSettings()
Definition: ExtendedPreferencesGraphicWindow.h:65
Definition: ExtendedPreferencesGraphicWindow.h:46
qsf::RendererSettingsGroup::TextureFilteringQuality textureFiltering
Definition: ExtendedPreferencesGraphicWindow.h:59
bool fxaa
Definition: ExtendedPreferencesGraphicWindow.h:62
Definition: ExtendedPreferencesGraphicWindow.h:48
ShadowQuality shadowQuality
Definition: ExtendedPreferencesGraphicWindow.h:57
qsf::compositing::CompositingSettingsGroup::Quality textureDetails
Definition: ExtendedPreferencesGraphicWindow.h:58
Definition: ExtendedPreferencesGraphicWindow.h:45
ExtendedPreferencesGraphicWindow(qsf::GuiContext &guiContext)
Quality
Definition: MovementQuality.h:19
bool depthOfField
Definition: ExtendedPreferencesGraphicWindow.h:61
qsf::compositing::CompositingSettingsGroup::Quality environmentDetails
Definition: ExtendedPreferencesGraphicWindow.h:60
qsf::compositing::CompositingSettingsGroup::Quality effects
Definition: ExtendedPreferencesGraphicWindow.h:63
Definition: ExtendedPreferencesGraphicWindow.h:44
ShadowQuality
Definition: ExtendedPreferencesGraphicWindow.h:42
MapQuality
Map quality.
Definition: RendererSettingsGroup.h:128
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
qsf::compositing::CompositingSettingsGroup::Quality lightingQuality
Definition: ExtendedPreferencesGraphicWindow.h:54
float population
Definition: ExtendedPreferencesGraphicWindow.h:56