VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSharedCockpitSettingsManager.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 
18 
19 namespace makVrv
20 {
21 
22  class DtSettingsBackup;
23 
27  {
28  public:
29 
31  static DtSharedCockpitSettingsManager& instance(DtDe& de);
32 
35 
39  void loadDefaultMappings( DtEntityTypeMapper& mapper, bool useFactory );
40 
43  void saveDefaultMappings(const DtEntityTypeMapper& mapper);
44 
47  void loadMapFile(const std::string& filePath, DtEntityTypeMapper& mapper);
48 
51  void saveMapFile(const std::string& filePath, const DtEntityTypeMapper& mapper);
52 
54  void saveDefaultMappings();
55 
57  void loadDefaultMappings(bool useFactory);
58 
60  virtual void mapperChanged(const DtEntityTypeMapper&);
61 
63  virtual void backupMapper(DtEntityTypeMapper&);
64 
66  virtual void entityTypeMappingsRestored(const DtSettingsBackup*);
67 
70 
72  void loadDefaultSettings( bool useOnlyFactorySettings );
73 
75  void saveDefaultSettings();
76 
78  void loadSettings( const std::string& filePath );
79 
81  void saveSettings( const std::string& filePath );
82 
84  void setAutoSave( bool b );
85 
87  bool autoSave() const;
88 
90 
94 
95  virtual void setCockpitsEnabled(bool enable);
96  virtual void setSmoothingEnabled(bool enable);
97  virtual void setSmoothingPeriod(float period);
98 
100 
102  virtual void updateCockpitSettingsState();
103 
104  protected:
105 
107  virtual bool checkCockpitMapper( const std::string& node,
109 
110  protected:
111 
114 
115  private:
116 
118  void initializeMappings();
119 
120  private:
121 
125 
126  };
127 
128 } //makVrv::

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)