VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
paletteInformationSettingsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include <vrfGuiCore/vrfGuiCore.h>
15 
16 #include <boost/serialization/access.hpp>
17 #include <boost/serialization/nvp.hpp>
18 #include <boost/serialization/list.hpp>
19 #include <boost/serialization/map.hpp>
20 #include <boost/serialization/vector.hpp>
21 #include <boost/serialization/string.hpp>
22 
23 namespace makVrf
24 {
25  const int USING_FORCE_COLOR = 0x00666666;
26  const int DEFAULT_OPACITY = 0x66000000;
27 
29  {
30  public:
33 
35 
36  public:
38  int numberOfTagLines() const;
39  void setNumberOfTagLines(int);
40 
42  void setShowTopCategories(int);
43  int showTopCategories() const;
44 
46  void setShowFavoritesCategory(bool);
47  bool showFavoritesCategory() const;
48 
50  void setShowAllCategory(bool);
51  bool showAllCategory() const;
52 
54  void setShowRecentCategory(bool);
55  bool showRecentCategory() const;
56 
59  void setNoBorderStylesheet(const std::string&);
60  const std::string& noBorderStylesheet() const;
61 
64  void setBorderStylesheet(const std::string&);
65  const std::string& borderStylesheet() const;
66 
67  protected:
68  friend class boost::serialization::access;
69 
73  template<class Archive>
74  void serialize(Archive & ar, const unsigned int version)
75  {
76  if (Archive::is_loading::value)
77  {
78  if (version <= 2)
79  {
80  int myForceButtonWidth;
81  int myTagLevelTagIconWidth;
82  int myClearTagsButtonWidth;
83  int myTagButtonHeight;
84 
85  ar & BOOST_SERIALIZATION_NVP(myForceButtonWidth);
86  ar & BOOST_SERIALIZATION_NVP(myTagLevelTagIconWidth);
87  ar & BOOST_SERIALIZATION_NVP(myClearTagsButtonWidth);
88  ar & BOOST_SERIALIZATION_NVP(myTagButtonHeight);
89  }
90  }
91 
92  ar & BOOST_SERIALIZATION_NVP(myNumberOfTagLines);
93  ar & BOOST_SERIALIZATION_NVP(myShowTopCategories);
94  ar & BOOST_SERIALIZATION_NVP(myShowFavoritesCategory);
95  ar & BOOST_SERIALIZATION_NVP(myShowRecentCategory);
96  ar & BOOST_SERIALIZATION_NVP(myShowAllCategory);
97 
98  if (Archive::is_loading::value)
99  {
100  if (version == 0)
101  {
102  std::string myNoBorderStickyStylesheet, myBorderStickyStylesheet;
103  ar & BOOST_SERIALIZATION_NVP(myNoBorderStickyStylesheet);
104  ar & BOOST_SERIALIZATION_NVP(myBorderStickyStylesheet);
105  }
106  else if (version == 1)
107  {
108  std::string myNoBorderStylesheet, myBorderStylesheet;
109  ar & BOOST_SERIALIZATION_NVP(myNoBorderStylesheet);
110  ar & BOOST_SERIALIZATION_NVP(myBorderStylesheet);
111  }
112  }
113  }
114 
115  protected:
121  };
122 }
123 
int myShowTopCategories
Definition: paletteInformationSettingsRecord.h:117
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
const int DEFAULT_OPACITY
Definition: paletteInformationSettingsRecord.h:26
bool myShowAllCategory
Definition: paletteInformationSettingsRecord.h:120
bool myShowFavoritesCategory
Definition: paletteInformationSettingsRecord.h:118
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
bool myShowRecentCategory
Definition: paletteInformationSettingsRecord.h:119
const int USING_FORCE_COLOR
Definition: paletteInformationSettingsRecord.h:25
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: paletteInformationSettingsRecord.h:74
Definition: paletteInformationSettingsRecord.h:28
int myNumberOfTagLines
Definition: paletteInformationSettingsRecord.h:116

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)