VR-Forces 4.2 Class Documentation
DtFormationSelectionEntryWidget.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 QHBoxLayout;
18 class QComboBox;
19 class QStringList;
20 
21 namespace makVrf
22 {
25  {
26  public:
27  DtFormationSelectionEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
28 
29  //DTOR
31 
33  virtual void setLabel(const std::string&);
34 
36  virtual void setRange(double bottom, double top);
37 
39  virtual void setDefaultValue(const std::string&);
40 
42  virtual void setVariableData(const std::string&);
43 
45  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& data);
46 
48  virtual std::string formation() const;
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 (formation name)");
59  }
60 
61  protected:
62  virtual void merge(const std::vector<std::string>&, QStringList&) const;
63 
67  virtual void slot_receivedFormations(const std::string&);
68 
69  public:
72  QHBoxLayout* myContentLayout;
73  QString myDefaultValue;
74 
75  protected:
76  typedef std::map<std::string, makVrv::DtSimEntry*> AwaitingFormations;
78  };
79 
81 }

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)