VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
embeddedEntitySelectionWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <vrvCore/DtUniqueID.h>
15 
16 class QHBoxLayout;
17 class QLabel;
18 class QComboBox;
19 class QString;
20 
21 namespace makVrf{
22 
27  {
28  public:
29 
30  DtEmbeddedEntitySelectionWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
32 
34  virtual void setLabel(const std::string& text);
36  virtual void setRange(double bottom, double top);
38  virtual void setDefaultValue(const std::string& def);
41  virtual void setVariableData(const std::string& varData);
45  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& simEntry);
46 
48  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
50  virtual void setupFromBoundVariable(const DtReaderWriter* variable);
51 
52  static makVrv::DtUnicode codeVariableType()
53  {
54  return makVrv::DtUnicode::tr("String (embedded entity name)");
55  }
56 
57  protected:
59  virtual void populateEeListCombo();
61  virtual void slot_onInfoCacheUpdated(const DtObjectType& updatedType);
62 
63  protected:
66 
67  public:
68  QHBoxLayout* myLayout;
71  QString myDefaultValue;
72  };
73 
75 }

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)