VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
35  virtual void setValue(double);
36  virtual double value() const;
37 
38  virtual void elementChanged();
39 
40 protected:
41  virtual void createControls(QWidget*);
42  virtual void decorateElement();
43 
44  virtual DtString sourceValueToDisplayLabel(const double source, bool* foundDisplayValue = NULL) const;
45  virtual double displayLabelToSourceValue(const DtString& display, bool* foundSourceValue = NULL) const;
46  virtual void processUiEvent(const DtUiElementEvent& e);
47 
48 protected slots:
49  virtual void recalculateAsRestOf();
50 
51 public:
52  QDoubleValidator* myValidator;
53 
54 protected:
56  typedef std::map<DtString, double> DisplayLabelToSourceValueMap;
59 };

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)