ImGraph
 All Classes Functions Variables Enumerations Pages
Configuration.h
1 #ifndef _CONFIGURATOR_HEADER_
2 #define _CONFIGURATOR_HEADER_
3 
4 #ifdef _WIN32
5 #pragma warning(push)
6 #pragma warning(disable:4996 4244 4251 4275 4800 4503)
7 #endif
8 
9 #include <boost/property_tree/ptree.hpp>
10 #include <QRect>
11 #include <string>
12 
13 #ifdef _WIN32
14 #pragma warning(pop)
15 #endif
16 
17 namespace charliesoft
18 {
19  class GraphOfProcess;
20 
22  {
23  GlobalConfig(){};
24  ~GlobalConfig(){};
25  static GlobalConfig* _ptr;
26 
27  boost::property_tree::ptree _xmlTree;
28  public:
29  static GlobalConfig* getInstance();
30  static void release();
31  void loadConfig();
32  void saveConfig(GraphOfProcess* graph);
33 
34  boost::property_tree::ptree getXML() const { return _xmlTree; }
35 
36  bool processSync_;
37  std::string lastProject_;
38  std::string prefLang_;
39  std::string styleSheet_;
40  bool isMaximized;
41  QRect lastPosition;
42  };
43 }
44 
45 
46 #endif
Definition: Graph.h:26
Definition: Configuration.h:21