VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
14 
15 #include <vrvCore/DtUniqueID.h>
16 
17 class QHBoxLayout;
18 class QLabel;
19 class QComboBox;
20 class QString;
21 
22 namespace makVrf{
23 
28  {
29  Q_OBJECT
30 
31  public:
32 
33  DtEmbeddedEntitySelectionWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
35 
37  virtual void setLabel(const QString& text);
38  virtual QString label() const;
39 
41  virtual void setRange(double bottom, double top);
43  virtual void setDefaultValue(const std::string& def);
44 
48  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& simEntry);
49 
51  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
53  virtual void setupFromBoundVariable(const DtReaderWriter* variable);
54 
55  static makVrv::DtUnicode codeVariableType()
56  {
57  return makVrv::DtUnicode::tr("String (embedded entity name)");
58  }
59 
60  static std::string designerGroup()
61  {
62  return tr("VR-Forces Object Creation").toUtf8().constData();
63  }
64 
65  static std::string headerFile()
66  {
67  return tr("<vrfGuiCoreQt/embeddedEntitySelectionWidget.h>").toUtf8().constData();
68  }
69 
70  static std::string variableName()
71  {
72  return tr("embeddedEntity").toUtf8().constData();
73  }
74 
75  protected:
77  virtual void populateEeListCombo();
79  virtual void slot_onInfoCacheUpdated(const DtObjectType& updatedType);
80 
81  protected:
84 
85  public:
86  QHBoxLayout* myLayout;
89  QString myDefaultValue;
90  };
91 
93 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)