VR-Forces 4.2 Class Documentation
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 "vrfutil/rwInt.h"
14 
15 class QIntValidator;
16 class QLineEdit;
17 
20 {
21 public:
22 
24  DtUiIntegerElement(makVrv::DtDe&);
25 
27  virtual ~DtUiIntegerElement();
28 
29  static DtUiElement* CreatorFunction(makVrv::DtDe&);
30 
32  virtual void setValue(int);
33  virtual int value() const;
34 
35 protected:
36  virtual void createControls(QWidget*);
37 
38 protected:
39  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
40  virtual void elementChanged();
41 
42  virtual DtString sourceValueToDisplayLabel(const int source, bool* foundDisplayValue = NULL) const;
43  virtual int displayLabelToSourceValue(const DtString& display, bool* foundSourceValue = NULL) const;
44 
45 protected:
46  QIntValidator* myValidator;
47 
50 
51  typedef std::map<DtString, int> DisplayLabelToSourceValueMap;
53 };

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)