VR-Forces 4.8 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 
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("<vrfGuiDataEntryWidgets/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 }
bool myAllowEmptyEntry
Definition: precisionMovementEntryWidget.h:105
QLabel * myDescription
Definition: precisionMovementEntryWidget.h:100
A unicode string.
Definition: DtUnicode.h:33
QLabel * myCategoryLabel
Definition: precisionMovementEntryWidget.h:103
CreationFlags
Definition: taskSetVariableWidget.h:115
QString myDefaultValue
Definition: precisionMovementEntryWidget.h:104
static std::string variableName()
Definition: precisionMovementEntryWidget.h:85
This class will parse the UI file for known scripted task variable types and pull out specified scrip...
Definition: scriptedTaskVariableLayoutConverter.h:32
Definition: readerWriter.h:85
static std::string designerGroup()
Definition: precisionMovementEntryWidget.h:75
static std::string headerFile()
Definition: precisionMovementEntryWidget.h:80
QGridLayout * myLayout
Definition: precisionMovementEntryWidget.h:98
DtIfScriptedMovementObjectsResponse::ScriptedMovementObjects myAnimationModels
Definition: precisionMovementEntryWidget.h:108
Basic implementation that has a label at the top.
Definition: taskSetVariableWidget.h:215
QComboBox * myCategories
Definition: precisionMovementEntryWidget.h:102
static DtUnicode tr(const char *ascii)
Ascii translation function, used to be compatible with Qt&#39;s translation tools.
Definition: DtUnicode.h:92
File: simMsg.h.
Definition: simMessage.h:35
Definition: taskSetVariableWidget.h:393
DtTaskSetVariableWidgetCreator< DtPrecisionMovementEntryWidget > DtPrecisionMovementEntryWidgetCreator
Definition: precisionMovementEntryWidget.h:111
static makVrv::DtUnicode codeVariableType()
Definition: precisionMovementEntryWidget.h:70
The DtPrecisionMovementEntryWidget class will show a combo box that will allow for the selection of e...
Definition: precisionMovementEntryWidget.h:24
#define DT_DLL_VRFGUIDATAENTRYWIDGETS
Definition: vrfGuiDataEntryWidgets.h:23
std::vector< ScriptedMovementObject > ScriptedMovementObjects
Definition: ifScriptedMovementObjectsResponse.h:35
QLabel * myValueLabel
Definition: precisionMovementEntryWidget.h:99
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Extension interface for contents for definition of variables in the scripted task meta data variable ...
Definition: taskSetVariableWidget.h:80
QComboBox * myValue
Definition: precisionMovementEntryWidget.h:101

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)