VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
depthEntryWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 
17 
18 class QLineEdit;
19 class QDoubleValidator;
20 class QHBoxLayout;
21 
22 namespace makVrf
23 {
26  {
27  Q_OBJECT
28 
29  public:
30  DtDepthEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
31 
32  //DTOR
33  virtual ~DtDepthEntryWidget();
34 
37  virtual void setLabel(const QString&);
38  virtual QString label() const;
39 
44  virtual void setRange(double bottom, double top);
45 
47  virtual void setDefaultValue(const std::string&);
48 
50 
52  virtual double depth() const;
53 
56  virtual void setDepth(double);
57 
59  virtual void setDepthDecimalPlaces(int decimalPlaces);
60 
62  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
63 
65  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
66 
69  virtual DtTaskSetVariableWidgetExtensionInterface* parameterContents(QWidget* parent, const Qt::WindowFlags& flags = 0) const;
70 
71  static makVrv::DtUnicode codeVariableType()
72  {
73  return makVrv::DtUnicode::tr("Real Unit: meters");
74  }
75 
76  static std::string designerGroup()
77  {
78  return tr("VR-Forces Position Entry").toUtf8().constData();
79  }
80 
81  static std::string headerFile()
82  {
83  return tr("<vrfGuiCoreQt/depthEntryWidget.h>").toUtf8().constData();
84  }
85 
86  static std::string variableName()
87  {
88  return tr("depth").toUtf8().constData();
89  }
90 
91  protected:
92 
96  virtual void slot_onUnitChanged(int attribute, int from, int old);
97 
100  virtual void slot_displayUnitDecimalsChanged(
102 
105  virtual void refreshLabels();
106 
107  protected:
108  QString myLabelText;
109  };
110 
114  {
115  Q_OBJECT
116 
117  public:
118  DtDepthEntryVariableWidgetExtension(makVrv::DtDe&, QWidget* w, const Qt::WindowFlags& f = 0);
120 
121  virtual int setFrom(const DtScriptedTaskVariable&, QGridLayout* parentLayout, int startRow);
122  virtual void setTo(DtScriptedTaskVariable&) const;
123 
124  virtual void setReadOnly(bool);
125 
126  public:
130  };
131 
133 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)