Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EnterValueFormLogic.h
Go to the documentation of this file.
1 #ifndef ENTERVALUEFORMLOGIC_H
2 #define ENTERVALUEFORMLOGIC_H
3 
4 #include "GeneralFormLogic.h"
5 
7 {
8  Q_OBJECT
9 
10 public:
12  virtual ~EnterValueFormLogic();
13 
14  unsigned long GetValue( bool *ok = nullptr ) const;
15 
16  void SetTextInformationLabel( const QString &text );
17  void SetCaptionText( const QString &text );
18  void SetDefaultValue( unsigned long defaultValue );
19  void SetUnitText( const QString &unitText );
20  void SetMaxLength( unsigned int maxLength );
21  void ClearLineEdit();
22  void SetFocusLineEdit();
23 
24  void ClearProgressPanel();
25 
26 signals:
27  void OnReturnPressed();
28 
29 private:
31 
32  class DataClass;
33  QScopedPointer<DataClass> d;
34 
36 };
37 
38 #endif // ENTERVALUEFORMLOGIC_H
Definition: GeneralFormLogic.h:7
virtual ~EnterValueFormLogic()
Definition: EnterValueFormLogic.cpp:36
void SetFocusLineEdit()
Definition: EnterValueFormLogic.cpp:83
void SetDefaultValue(unsigned long defaultValue)
Definition: EnterValueFormLogic.cpp:59
void SetTextInformationLabel(const QString &text)
Definition: EnterValueFormLogic.cpp:49
void SetCaptionText(const QString &text)
Definition: EnterValueFormLogic.cpp:54
void ClearProgressPanel()
Definition: EnterValueFormLogic.cpp:89
void SetUnitText(const QString &unitText)
Definition: EnterValueFormLogic.cpp:64
void ClearLineEdit()
Definition: EnterValueFormLogic.cpp:78
EnterValueFormLogic()
Definition: EnterValueFormLogic.cpp:28
Definition: EnterValueFormLogic.cpp:10
unsigned long GetValue(bool *ok=nullptr) const
Definition: EnterValueFormLogic.cpp:40
void SetMaxLength(unsigned int maxLength)
Definition: EnterValueFormLogic.cpp:69
Definition: EnterValueFormLogic.h:6