COVISE Core
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
14namespace 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
25public:
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
32public 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
81public:
82 virtual WSParameter *clone() const;
83
84 virtual const covise::covise__Parameter *getSerialisable();
85
86protected:
87 virtual bool setValueFromSerialisable(const covise::covise__Parameter *serialisable);
88
89private:
90 covise::covise__IntSliderParameter parameter;
93};
94}
95#endif // WSINTSLIDERPARAMETER_H
#define WSLIBEXPORT
Definition: coExport.h:385
GLsizei const GLfloat * value
Definition: khronos-glext.h:6760
GLuint const GLchar * name
Definition: khronos-glext.h:6722
int min(int a, int b)
Definition: cutil_math.h:60
int max(int a, int b)
Definition: cutil_math.h:55
list of all chemical elements
Definition: coConfig.h:27
Definition: WSIntSliderParameter.h:18
covise::covise__IntSliderParameter parameter
Definition: WSIntSliderParameter.h:90
static WSIntSliderParameter * prototype
Definition: WSIntSliderParameter.h:92
Definition: WSParameter.h:28