VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
precisionMovementEntryWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
16 class DtSimMessage;
17 class QComboBox;
18 class QGridLayout;
19 
20 namespace makVrf
21 {
25  {
26  Q_OBJECT
27  Q_PROPERTY(bool allowEmptyEntry READ allowEmptyEntry WRITE setAllowEmptyEntry);
28 
29  public:
30  DtPrecisionMovementEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
31 
32  //DTOR
34 
36  virtual void setAllowEmptyEntry(bool);
37  virtual bool allowEmptyEntry() const;
38 
42  virtual void setRange(double bottom, double top);
43 
45  virtual void setDefaultValue(const std::string&);
46 
49  virtual void setVariableData(const QString&);
51 
53  virtual DtString animationModel() const;
54 
56  virtual void setAnimationModel(const DtString&);
57 
59  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
60 
62  virtual void receiveScriptedMovementObjects(DtSimMessage* msg);
63 
65  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
66 
68  virtual DtTaskSetVariableWidgetExtensionInterface* parameterContents(QWidget* parent, const Qt::WindowFlags& flags = 0) const;
69 
70  static makVrv::DtUnicode codeVariableType()
71  {
72  return makVrv::DtUnicode::tr("String");
73  }
74 
75  static std::string designerGroup()
76  {
77  return tr("VR-Forces Entity Manipulation").toUtf8().constData();
78  }
79 
80  static std::string headerFile()
81  {
82  return tr("<vrfGuiCoreQt/precisionMovementEntryWidget.h>").toUtf8().constData();
83  }
84 
85  static std::string variableName()
86  {
87  return tr("precisionMovement").toUtf8().constData();
88  }
89 
90  protected:
91  virtual std::string variableDataFromUiDesigner(const QDomElement& element, const DtScriptedTaskVariableLayoutConverter& converter) const;
92 
93  protected slots:
94  virtual void onModelChanged();
95  virtual void onCategoryChanged();
96 
97  public:
98  QGridLayout* myLayout;
104  QString myDefaultValue;
106 
107  protected:
109  };
110 
112 }

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)