VR-Forces Developer's Guide
 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
33  virtual ~DtPrecisionMovementEntryWidget() override;
34 
36  virtual void setAllowEmptyEntry(bool);
37  virtual bool allowEmptyEntry() const;
38 
42  virtual void setRange(double bottom, double top) override;
43 
45  virtual void setDefaultValue(const std::string&) override;
46 
49  virtual void setVariableData(const QString&) override;
51 
53  virtual DtString animationModel() const;
54 
56  virtual void setAnimationModel(const DtString&);
57 
59  virtual DtReaderWriter* createBoundVariable(const std::string& variableName) override;
60 
62  virtual void receiveScriptedMovementObjects(DtSimMessage* msg);
63 
65  virtual void setupFromBoundVariable(const DtReaderWriter* variableName) override;
66 
68  virtual DtTaskSetVariableWidgetExtensionInterface* parameterContents(
69  QWidget* parent, const Qt::WindowFlags& flags = 0) const override;
70 
72  {
73  return makVrv::DtUnicode::tr("String");
74  }
75 
76  static std::string designerGroup()
77  {
78  return tr("VR-Forces Entity Manipulation").toUtf8().constData();
79  }
80 
81  static std::string headerFile()
82  {
83  return tr("<vrfGuiDataEntryWidgets/precisionMovementEntryWidget.h>").toUtf8().constData();
84  }
85 
86  static std::string variableName()
87  {
88  return tr("precisionMovement").toUtf8().constData();
89  }
90 
91  protected:
92  virtual std::string variableDataFromUiDesigner(
93  const QDomElement& element, const DtScriptedTaskVariableLayoutConverter& converter) const override;
94 
95  protected slots:
96  virtual void onModelChanged();
97  virtual void onCategoryChanged();
98 
99  public:
100  QGridLayout* myLayout;
106  QString myDefaultValue;
108 
109  protected:
111  };
112 
114 }
bool myAllowEmptyEntry
Definition: precisionMovementEntryWidget.h:107
QLabel * myDescription
Definition: precisionMovementEntryWidget.h:102
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
QLabel * myCategoryLabel
Definition: precisionMovementEntryWidget.h:105
CreationFlags
Definition: taskSetVariableWidget.h:118
QString myDefaultValue
Definition: precisionMovementEntryWidget.h:106
static std::string variableName()
Definition: precisionMovementEntryWidget.h:86
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:76
static std::string headerFile()
Definition: precisionMovementEntryWidget.h:81
QGridLayout * myLayout
Definition: precisionMovementEntryWidget.h:100
DtIfScriptedMovementObjectsResponse::ScriptedMovementObjects myAnimationModels
Definition: precisionMovementEntryWidget.h:110
Basic implementation that has a label at the top.
Definition: taskSetVariableWidget.h:231
QComboBox * myCategories
Definition: precisionMovementEntryWidget.h:104
static DtUnicode tr(const char *ascii)
Ascii translation function, used to be compatible with Qt&#39;s translation tools. This will simply call ...
Definition: DtUnicode.h:92
File: simMsg.h.
Definition: simMessage.h:35
Definition: taskSetVariableWidget.h:422
DtTaskSetVariableWidgetCreator< DtPrecisionMovementEntryWidget > DtPrecisionMovementEntryWidgetCreator
Definition: precisionMovementEntryWidget.h:113
static makVrv::DtUnicode codeVariableType()
Definition: precisionMovementEntryWidget.h:71
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:22
std::vector< ScriptedMovementObject > ScriptedMovementObjects
Definition: ifScriptedMovementObjectsResponse.h:35
QLabel * myValueLabel
Definition: precisionMovementEntryWidget.h:101
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Extension interface for contents for definition of variables in the scripted task meta data variable ...
Definition: taskSetVariableWidget.h:83
QComboBox * myValue
Definition: precisionMovementEntryWidget.h:103

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)