VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindowConfiguration.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvUtil/vrvUtil.h>
15 
16 #include <string>
17 #include <list>
18 
19 namespace makVrv
20 {
21 
23 
27  {
28 
29  public:
30 
31  static const char* DefaultWindowString;
32 
34  {
39  FramelessWindow
40  };
41 
45  DtWindowConfiguration(const std::string& name = DefaultWindowString);
46 
50 
53  DtWindowConfiguration& operator=(const DtWindowConfiguration& copy);
54 
56  virtual ~DtWindowConfiguration();
57 
59  DtChannelConfigurations& channelConfigurations();
61  const DtChannelConfigurations& channelConfigurations() const;
63 
65  WindowType windowType() const;
66 
68  void setWindowType(WindowType wt);
69 
71  bool windowStaysOnTop() const;
72 
74  void setWindowStaysOnTop(bool stayOnTop);
75 
77  int screenNumber() const;
78 
81  void setScreenNumber(int number);
82 
84  int x() const;
85 
87  int y() const;
88 
90  void setPosition(int x, int y);
91 
93  unsigned int width() const;
94 
96  unsigned int height() const;
97 
99  void setSize(unsigned int width,unsigned int height);
100 
102  bool isFixedSize() const;
103 
105  void setFixedSize(bool fixed);
106 
113 
114  protected:
115 
116  template<class Archive>
117  void _serialize(Archive& ar, const unsigned int version)
118  {
121  ar & DT_SERIALIZE_MEMBER(myChannelConfigurations);
122  ar & DT_SERIALIZE_MEMBER(myWindowType);
123  if (version >= 2)
124  {
125  ar & DT_SERIALIZE_MEMBER(myStaysOnTop);
126  }
127  ar & DT_SERIALIZE_MEMBER(myScreenNumber);
128  ar & DT_SERIALIZE_MEMBER(myX);
129  ar & DT_SERIALIZE_MEMBER(myY);
130  ar & DT_SERIALIZE_MEMBER(myWidth);
131  ar & DT_SERIALIZE_MEMBER(myHeight);
132  ar & DT_SERIALIZE_MEMBER(myFixedSizeFlag);
133  }
134 
136 
139 
142 
145 
148 
150  int myX;
151 
153  int myY;
154 
156  unsigned int myWidth;
157 
159  unsigned int myHeight;
160 
163  };
164 }
165 
166 
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
Contains makVrv:DtConfigurationCollection class.
#define DT_SERIALIZE_BASE(BASE_CLASS)
Serialize the base class implementation.
Definition: DtSerialize.h:161
unsigned int myWidth
Default is 300.
Definition: DtWindowConfiguration.h:156
Definition: DtWindowConfiguration.h:38
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
Contains makVrv::DtChannelConfiguration class.
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:26
int myScreenNumber
Default is 0.
Definition: DtWindowConfiguration.h:147
bool myFixedSizeFlag
Default is False.
Definition: DtWindowConfiguration.h:162
Definition: DtWindowConfiguration.h:36
void _serialize(Archive &ar, const unsigned int version)
Declare serialize functions Call via serialize(Archive ar, unsigned int version); Where Archive can b...
Definition: DtWindowConfiguration.h:117
static const char * DefaultWindowString
Definition: DtWindowConfiguration.h:31
Contains DLL export macros.
DtConfigurationCollection< DtChannelConfiguration > DtChannelConfigurations
Definition: DtWindowConfiguration.h:22
bool myStaysOnTop
Default is false.
Definition: DtWindowConfiguration.h:144
Definition: DtWindowConfiguration.h:35
#define DT_DECLARE_ALL_serialize_FUNCTIONS
Definition: DtSerialize.h:134
WindowType
Definition: DtWindowConfiguration.h:33
WindowType myWindowType
Default is Window.
Definition: DtWindowConfiguration.h:141
int myX
Default is 100.
Definition: DtWindowConfiguration.h:150
int myY
Default is 100.
Definition: DtWindowConfiguration.h:153
DtChannelConfigurations myChannelConfigurations
All copy semantics members.
Definition: DtWindowConfiguration.h:138
The base implementation of a configuration.
Definition: DtConfiguration.h:24
#define DT_SERIALIZE_MEMBER(NAME)
Serialize a Member whose name starts with &#39;my&#39; If your member does not have that name, use Dt_SERIALIZE.
Definition: DtSerialize.h:158
Definition: DtWindowConfiguration.h:37
unsigned int myHeight
Default is 300.
Definition: DtWindowConfiguration.h:159

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)