VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiIntegerElement.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 #include <readerWriter/rwInt.h>
14 
15 class QIntValidator;
16 class QLineEdit;
17 
20 {
21  Q_OBJECT
22 
23 public:
24 
27 
29  virtual ~DtUiIntegerElement();
30 
32 
34  virtual void setValue(int);
35  virtual int value() const;
36 
37 protected:
38  virtual void createControls(QWidget*);
39  virtual void decorateElement();
40 
41 protected:
42  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
43  virtual void elementChanged();
44 
45  virtual DtString sourceValueToDisplayLabel(const int source, bool* foundDisplayValue = NULL) const;
46  virtual int displayLabelToSourceValue(const DtString& display, bool* foundSourceValue = NULL) const;
47  virtual void processUiEvent(const DtUiElementEvent& e);
48 
49 protected slots:
50  virtual void recalculateAsRestOf();
51 
52 protected:
53  QIntValidator* myValidator;
54 
57 
58  typedef std::map<DtString, int> DisplayLabelToSourceValueMap;
60 };

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)