VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiRealElement.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
13 
14 class QDoubleValidator;
15 
19 {
20  Q_OBJECT
21 
22 public:
23 
26 
28  virtual ~DtUiRealElement();
29 
30  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
31 
33 
36  virtual int decimalPlaces() const;
37  virtual void setDecimalPlaces(int num);
39 
41  virtual void setValue(double);
42  virtual double value() const;
43 
44  virtual void elementChanged();
45 
46 protected:
47  virtual void createControls(QWidget*);
48  virtual void decorateElement();
49 
50  virtual DtString sourceValueToDisplayLabel(const double source, bool* foundDisplayValue = NULL) const;
51  virtual double displayLabelToSourceValue(const DtString& display, bool* foundSourceValue = NULL) const;
52  virtual void processUiEvent(const DtUiElementEvent& e);
53 
54 protected slots:
55  virtual void recalculateAsRestOf();
56 
57 public:
58  QDoubleValidator* myValidator;
59 
60 protected:
62  typedef std::map<DtString, double> DisplayLabelToSourceValueMap;
65 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)