VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
entityAttributeSpinBox.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
9 
10 #include <boost/signals2.hpp>
11 
12 #include <QtWidgets/QDoubleSpinBox>
13 
14 namespace makVrf
15 {
18 
20  {
21  Q_OBJECT
22  public:
23  explicit DtEntityAttributeSpinBox(QWidget* parent = NULL);
25 
26  virtual void clear();
27 
30  virtual void setActualValue(double actualValue);
31 
34  virtual void setLeadingZeroes(int leadingZeroes);
35  virtual bool leadingZeroes() const;
36 
37  signals:
38  void focussed(bool focus);
39  void returnPressed();
40 
41  protected:
42  virtual void focusInEvent(QFocusEvent *e);
43  virtual void focusOutEvent(QFocusEvent *e);
44 
45  virtual QString textFromValue(double val) const;
46 
47  protected:
48  QString mySuffix;
49 
52  };
53 }
QString mySuffix
Definition: entityAttributeSpinBox.h:48
A customized spin box that supports signals for return key pressed event and focus in/out events...
Definition: entityAttributeSpinBox.h:19
int myLeadingZeroes
Definition: entityAttributeSpinBox.h:51
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:22
bool myActualValueEnabled
Definition: entityAttributeSpinBox.h:50

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)