COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
WSIntSliderParameter.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef WSINTSLIDERPARAMETER_H
9 #define WSINTSLIDERPARAMETER_H
10 
11 #include "WSExport.h"
12 #include "WSParameter.h"
13 
14 namespace covise
15 {
16 
18 {
19  Q_OBJECT
20 
21  Q_PROPERTY(int value READ getValue WRITE setValue)
22  Q_PROPERTY(int min READ getMin WRITE setMin)
23  Q_PROPERTY(int max READ getMax WRITE setMax)
24 
25 public:
26  WSIntSliderParameter(const QString &name, const QString &description);
27 
28  WSIntSliderParameter(const QString &name, const QString &description, int value, int min, int max);
29 
30  virtual ~WSIntSliderParameter();
31 
32 public slots:
37  void setMin(int inMin);
38 
43  int getMin() const;
44 
49  void setMax(int inMax);
50 
55  int getMax() const;
56 
62  bool setValue(int inValue);
63 
71  bool setValue(int value, int minimum, int maximum);
72 
77  int getValue() const;
78 
79  virtual QString toString() const;
80 
81 public:
82  virtual WSParameter *clone() const;
83 
84  virtual const covise::covise__Parameter *getSerialisable();
85 
86 protected:
87  virtual bool setValueFromSerialisable(const covise::covise__Parameter *serialisable);
88 
89 private:
90  covise::covise__IntSliderParameter parameter;
91  WSIntSliderParameter();
92  static WSIntSliderParameter *prototype;
93 };
94 }
95 #endif // WSINTSLIDERPARAMETER_H
GLuint const GLchar * name
Definition: khronos-glext.h:6722
int max(int a, int b)
Definition: cutil_math.h:55
Definition: WSParameter.h:27
GLsizei const GLfloat * value
Definition: khronos-glext.h:6760
int min(int a, int b)
Definition: cutil_math.h:60
#define WSLIBEXPORT
Definition: coExport.h:373
Definition: WSIntSliderParameter.h:17