VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
formationSelectionEntryWidget.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 <vrfutil/rwUUID.h>
15 #include <vrvCore/DtSimEntry.h>
16 
17 class QLabel;
18 class QHBoxLayout;
19 class QComboBox;
20 class QStringList;
21 
22 namespace makVrf
23 {
26  {
27  Q_OBJECT
28 
29  public:
30  DtFormationSelectionEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
31 
32  //DTOR
34 
36  virtual void setLabel(const QString&);
37  virtual QString label() const;
38 
40  virtual void setRange(double bottom, double top);
41 
43  virtual void setDefaultValue(const std::string&);
44 
46  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& data);
47 
49  virtual std::string formation() const;
50 
52  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
53 
55  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
56 
57  static makVrv::DtUnicode codeVariableType()
58  {
59  return makVrv::DtUnicode::tr("String (formation name)");
60  }
61 
62  static std::string designerGroup()
63  {
64  return tr("VR-Forces Entity Manipulation").toUtf8().constData();
65  }
66 
67  static std::string headerFile()
68  {
69  return tr("<vrfGuiCoreQt/formationSelectionEntryWidget.h>").toUtf8().constData();
70  }
71 
72  static std::string variableName()
73  {
74  return tr("formation").toUtf8().constData();
75  }
76 
77  protected:
78  virtual void merge(const std::vector<std::string>&, QStringList&) const;
79 
83  virtual void slot_receivedFormations(const DtUUID&);
84 
85  public:
88  QHBoxLayout* myContentLayout;
89  QString myDefaultValue;
90 
91  protected:
92  typedef std::map<DtUUID, makVrv::DtSimEntry*> AwaitingFormations;
94  };
95 
97 }

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)