VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
diGuySelectionEntryWidgets.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <vrvCore/DtSimEntry.h>
15 
16 class QLabel;
17 class QComboBox;
18 class QHBoxLayout;
19 
20 namespace makVrf
21 {
24  {
25  Q_OBJECT
26 
27  public:
28  DtDiGuyAnimationSelectionEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
29 
30  //DTOR
32 
34  virtual void setLabel(const QString&);
35  virtual QString label() const;
36 
38  virtual void setRange(double bottom, double top);
39 
42  virtual void setDefaultValue(const std::string&);
43 
45  virtual DtString animation() const;
46 
48  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& data);
49 
51  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
52 
54  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
55 
56  static makVrv::DtUnicode codeVariableType()
57  {
58  return makVrv::DtUnicode::tr("String (animation)");
59  }
60 
61  static std::string designerGroup()
62  {
63  return tr("VR-Forces DI-Guy Entry").toUtf8().constData();
64  }
65 
66  static std::string headerFile()
67  {
68  return tr("<vrfGuiCoreQt/diGuySelectionEntryWidget.h>").toUtf8().constData();
69  }
70 
71  static std::string variableName()
72  {
73  return tr("diGuyAnimation").toUtf8().constData();
74  }
75 
76  protected:
77  virtual void requestMet();
78 
79  public:
82  QHBoxLayout* myContentLayout;
83 
84  protected:
86  QString myDefaultValue;
87  };
88 
91  {
92  Q_OBJECT
93 
94  public:
95  DtDiGuyAppearanceSelectionEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
96 
97  //DTOR
99 
101  virtual void setLabel(const QString&);
102  virtual QString label() const;
103 
105  virtual void setRange(double bottom, double top);
106 
108  virtual DtString appearance() const;
109 
112  virtual void setDefaultValue(const std::string&);
113 
115  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& data);
116 
118  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
119 
121  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
122 
123  static makVrv::DtUnicode codeVariableType()
124  {
125  return makVrv::DtUnicode::tr("String (appearance)");
126  }
127 
128  static std::string designerGroup()
129  {
130  return tr("VR-Forces DI-Guy Entry").toUtf8().constData();
131  }
132 
133  static std::string headerFile()
134  {
135  return tr("<vrfGuiCoreQt/diGuySelectionEntryWidget.h>").toUtf8().constData();
136  }
137 
138  static std::string variableName()
139  {
140  return tr("diGuyAppearance").toUtf8().constData();
141  }
142 
143  protected:
144  virtual void requestMet();
145 
146  public:
149  QHBoxLayout* myContentLayout;
150 
151  protected:
153  QString myDefaultValue;
154  };
155 
158  {
159  Q_OBJECT
160 
161  public:
162  DtDiGuyGestureSelectionEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
163 
164  //DTOR
166 
168  virtual void setLabel(const QString&);
169  virtual QString label() const;
170 
172  virtual void setRange(double bottom, double top);
173 
175  virtual DtString gesture() const;
176 
179  virtual void setDefaultValue(const std::string&);
180 
182  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& data);
183 
185  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
186 
188  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
189 
190  static makVrv::DtUnicode codeVariableType()
191  {
192  return makVrv::DtUnicode::tr("String (gesture)");
193  }
194 
195  static std::string designerGroup()
196  {
197  return tr("VR-Forces DI-Guy Entry").toUtf8().constData();
198  }
199 
200  static std::string headerFile()
201  {
202  return tr("<vrfGuiCoreQt/diGuySelectionEntryWidget.h>").toUtf8().constData();
203  }
204 
205  static std::string variableName()
206  {
207  return tr("diGuyGesture").toUtf8().constData();
208  }
209 
210  boost::signal<void ()> signal_requestMet;
211 
212  protected:
213  virtual void requestMet();
214 
215  public:
218  QHBoxLayout* myContentLayout;
219 
220  protected:
222  QString myDefaultValue;
223  };
224 
225 
229 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)