Navigator2Go  2.0
Manage your local Ocean Navigator installation.
preferences.h
1 #ifndef PREFERENCES_H
2 #define PREFERENCES_H
3 
4 #include "nodiscard.h"
5 
6 #include <QString>
7 #include <QSettings>
8 
9 /***********************************************************************************/
10 struct NODISCARD BoundingBox {
11  double MinLat, MaxLat;
12  double MinLon, MaxLon;
13 };
14 
15 /***********************************************************************************/
17 class Preferences : public QSettings {
18  Q_OBJECT
19 
20 public:
21  explicit Preferences(QObject* parent = nullptr);
22  ~Preferences();
23 
24  Q_DISABLE_COPY(Preferences)
25 
26  QString ONInstallDir;
27  QString RemoteURL;
28  QString THREDDSCatalogLocation;
29  QString DataDownloadFormat{QStringLiteral("NETCDF4")};
30  bool UpdateRemoteListOnStart{true};
31  bool CheckForUpdatesOnStart{true};
32  bool FirstRun{true};
33  bool AdvancedUI{false};
34  BoundingBox DataOrderArea;
35 
36 private:
38  void readSettings();
40  void writeSettings();
41 };
42 
43 #endif // PREFERENCES_H
Contains the loaded and modified settings.
Definition: preferences.h:17
Definition: preferences.h:10