VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtApplicationSettingsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
12 
13 namespace makArchives
14 {
19  {
20  public:
23 
26 
29 
32 
34  void setViewControlEnabled(bool enabled);
35 
37  bool viewControlEnabled() const;
38 
40  void setScreenCaptureFilePath(const std::string& filePath);
41 
43  const std::string& screenCaptureFilePath() const;
44 
47  void setMouseHideEnabled(bool enabled);
48 
51  bool mouseHideEnabled() const;
52 
55  void setMouseHideTime(float hideTime);
56 
58  float mouseHideTime() const;
59 
61  void setShowQuitDialogOnClose(bool show);
62 
64  bool showQuitDialogOnClose() const;
65 
67  void setPaperMapLayerTimeout(double val);
68 
70  double paperMapLayerTimeout() const;
71 
73  virtual void setDarkModeEnabled(bool show);
74 
76  virtual bool darkModeEnabled() const;
77 
79  virtual void setLightModeDarkModeIconsEnabled(bool show);
80 
82  virtual bool lightModeDarkModeIconsEnabled() const;
83 
84  protected:
85 
86  friend class boost::serialization::access;
87 
91  template<class Archive>
92  void serialize(Archive & ar, const unsigned int version)
93  {
94 
95  ar & BOOST_SERIALIZATION_NVP(myViewControlEnabled);
96  if ( version >= 2)
97  {
98  ar & BOOST_SERIALIZATION_NVP(myScreenCaptureFilePath);
99  }
100  if (version >= 3)
101  {
102  ar & BOOST_SERIALIZATION_NVP(myMouseHideEnabled);
103  ar & BOOST_SERIALIZATION_NVP(myMouseHideTime);
104  }
105  if (version >= 4)
106  {
107  ar & BOOST_SERIALIZATION_NVP(myShowQuitDialogOnClose);
108  }
109  if (version >= 5)
110  {
111  ar& BOOST_SERIALIZATION_NVP(myPaperMapLayerTimeout);
112  }
113  if (version >= 6)
114  {
115  ar& BOOST_SERIALIZATION_NVP(myDarkModeEnabled);
116  ar& BOOST_SERIALIZATION_NVP(myLightModeDarkModeIconsEnabled);
117  }
118  }
119 
128  };
129 }
130 
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
Record for the settings associated with the application that don&#39;t merit an additional settings file ...
Definition: DtApplicationSettingsRecord.h:18
std::string myScreenCaptureFilePath
Definition: DtApplicationSettingsRecord.h:121
Contains DLL export macros.
double myPaperMapLayerTimeout
Definition: DtApplicationSettingsRecord.h:125
bool myShowQuitDialogOnClose
Definition: DtApplicationSettingsRecord.h:124
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the &amp; operator is defined similar to &lt;&lt;...
Definition: DtApplicationSettingsRecord.h:92
bool myDarkModeEnabled
Definition: DtApplicationSettingsRecord.h:126
bool myMouseHideEnabled
Definition: DtApplicationSettingsRecord.h:122
bool myViewControlEnabled
Definition: DtApplicationSettingsRecord.h:120
float myMouseHideTime
Definition: DtApplicationSettingsRecord.h:123
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
bool myLightModeDarkModeIconsEnabled
Definition: DtApplicationSettingsRecord.h:127

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)