Crossfire Server, Trunk
CRESettings.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef CLASS_CRE_SETTINGS_H
14 #define CLASS_CRE_SETTINGS_H
15 
16 #include <QSettings>
17 
20 
21 class CRESettings : protected QSettings
22 {
23  public:
24  CRESettings();
25 
26  bool ensureOptions();
27 
28  QString mapCacheDirectory() const;
29 
31  void saveFilters(const CREFilterDefinitionManager& filters);
32 
34  void saveReports(const CREReportDefinitionManager& reports);
35 
36  QString facesetToDisplay() const;
37  void setFacesetToDisplay(const QString& faceset);
38  bool facesetUseFallback() const;
39  void setFacesetUseFallback(bool use);
40 
41  bool showChanges() const;
42  void setShowChanges(bool show);
43 
44  int changesLength() const;
45  void setChangesLength(int length);
46 
47  bool storeWindowsState() const;
48  void setStoreWindowState(bool store);
49 
50  QByteArray mainWindowGeometry();
51  void setMainWindowGeometry(const QByteArray &data);
52 
53  int subWindowCount() const;
54  void setSubWindowCount(int count);
55 
56  int subWindowType(int subWindow) const;
57  void setSubWindowType(int subWindow, int type);
58 
59  QByteArray subWindowPosition(int subWindow) const;
60  void setSubWindowPosition(int subWindow, const QByteArray &data);
61 
62  QString soundsDirectory() const;
63  void setSoundsDirectory(const QString &dir);
64 };
65 
66 #endif // CLASS_CRE_SETTINGS_H
CREReportDefinitionManager
Definition: CREReportDefinitionManager.h:21
CRESettings::setShowChanges
void setShowChanges(bool show)
Definition: CRESettings.cpp:108
CREReportDefinitionManager.h
CRESettings::loadReports
void loadReports(CREReportDefinitionManager &reports)
Definition: CRESettings.cpp:72
CREFilterDefinitionManager
Definition: CREFilterDefinitionManager.h:21
CRESettings::loadFilters
void loadFilters(CREFilterDefinitionManager &filters)
Definition: CRESettings.cpp:60
CRESettings::setSubWindowPosition
void setSubWindowPosition(int subWindow, const QByteArray &data)
Definition: CRESettings.cpp:158
CRESettings::storeWindowsState
bool storeWindowsState() const
Definition: CRESettings.cpp:120
CRESettings::subWindowCount
int subWindowCount() const
Definition: CRESettings.cpp:137
CRESettings::saveFilters
void saveFilters(const CREFilterDefinitionManager &filters)
Definition: CRESettings.cpp:65
CRESettings::subWindowPosition
QByteArray subWindowPosition(int subWindow) const
Definition: CRESettings.cpp:154
CRESettings::setSoundsDirectory
void setSoundsDirectory(const QString &dir)
Definition: CRESettings.cpp:167
CRESettings::setChangesLength
void setChangesLength(int length)
Definition: CRESettings.cpp:116
CRESettings::CRESettings
CRESettings()
Definition: CRESettings.cpp:19
CRESettings::subWindowType
int subWindowType(int subWindow) const
Definition: CRESettings.cpp:146
navar-midane_time.data
data
Definition: navar-midane_time.py:11
disinfect.count
int count
Definition: disinfect.py:7
CRESettings::mapCacheDirectory
QString mapCacheDirectory() const
Definition: CRESettings.cpp:55
CRESettings::changesLength
int changesLength() const
Definition: CRESettings.cpp:112
CRESettings::setSubWindowType
void setSubWindowType(int subWindow, int type)
Definition: CRESettings.cpp:150
CRESettings::setFacesetUseFallback
void setFacesetUseFallback(bool use)
Definition: CRESettings.cpp:99
CRESettings::setFacesetToDisplay
void setFacesetToDisplay(const QString &faceset)
Definition: CRESettings.cpp:89
CRESettings::mainWindowGeometry
QByteArray mainWindowGeometry()
Definition: CRESettings.cpp:128
CRESettings
Definition: CRESettings.h:21
CRESettings::setSubWindowCount
void setSubWindowCount(int count)
Definition: CRESettings.cpp:141
CRESettings::ensureOptions
bool ensureOptions()
Definition: CRESettings.cpp:23
CRESettings::facesetToDisplay
QString facesetToDisplay() const
Definition: CRESettings.cpp:84
CRESettings::facesetUseFallback
bool facesetUseFallback() const
Definition: CRESettings.cpp:94
CRESettings::saveReports
void saveReports(const CREReportDefinitionManager &reports)
Definition: CRESettings.cpp:77
CREFilterDefinitionManager.h
CRESettings::setStoreWindowState
void setStoreWindowState(bool store)
Definition: CRESettings.cpp:124
CRESettings::showChanges
bool showChanges() const
Definition: CRESettings.cpp:104
CRESettings::setMainWindowGeometry
void setMainWindowGeometry(const QByteArray &data)
Definition: CRESettings.cpp:132
is_valid_types_gen.type
list type
Definition: is_valid_types_gen.py:25
CRESettings::soundsDirectory
QString soundsDirectory() const
Definition: CRESettings.cpp:162