VR-Forces Developer's Guide
 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  virtual QValidator::State validate(QString &input, int &pos) const override;
38 
39  virtual void setDisplayDecimals(int);
40  int displayDecimals() const;
41 
42  signals:
43  void focussed(bool focus);
44  void returnPressed();
45 
46  protected:
47  virtual void focusInEvent(QFocusEvent *e);
48  virtual void focusOutEvent(QFocusEvent *e);
49 
50  virtual QString textFromValue(double val) const;
51 
52  protected:
53  QString mySuffix;
54 
58  };
59 }
QString mySuffix
Definition: entityAttributeSpinBox.h:53
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:56
int myDisplayDecimals
Definition: entityAttributeSpinBox.h:57
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:20
bool myActualValueEnabled
Definition: entityAttributeSpinBox.h:55

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)