VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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  public:
28  DtFormationSelectionEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
29 
30  //DTOR
32 
34  virtual void setLabel(const std::string&);
35 
37  virtual void setRange(double bottom, double top);
38 
40  virtual void setDefaultValue(const std::string&);
41 
43  virtual void setVariableData(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  protected:
63  virtual void merge(const std::vector<std::string>&, QStringList&) const;
64 
68  virtual void slot_receivedFormations(const DtUUID&);
69 
70  public:
73  QHBoxLayout* myContentLayout;
74  QString myDefaultValue;
75 
76  protected:
77  typedef std::map<DtUUID, makVrv::DtSimEntry*> AwaitingFormations;
79  };
80 
82 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)