COVISE Core
WSBooleanParameter.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 WSBOOLEANPARAMETER_H
9#define WSBOOLEANPARAMETER_H
10
11#include "WSExport.h"
12#include "WSParameter.h"
13
14namespace covise
15{
16
18{
19 Q_OBJECT
20
21 Q_PROPERTY(bool value READ getValue WRITE setValue)
22
23public:
24 WSBooleanParameter(const QString &name, const QString &description, bool value = false);
25
26 virtual ~WSBooleanParameter();
27
28public slots:
33 bool setValue(bool inValue);
34
39 bool getValue() const;
40
41 virtual QString toString() const;
42
43public:
44 virtual WSParameter *clone() const;
45
46 virtual const covise::covise__Parameter *getSerialisable();
47
48protected:
49 virtual bool setValueFromSerialisable(const covise::covise__Parameter *serialisable);
50
51private:
52 covise::covise__BooleanParameter parameter;
53
56};
57}
58#endif // WSBOOLEANPARAMETER_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
list of all chemical elements
Definition: coConfig.h:27
Definition: WSBooleanParameter.h:18
covise::covise__BooleanParameter parameter
Definition: WSBooleanParameter.h:52
static WSBooleanParameter * prototype
Definition: WSBooleanParameter.h:55
Definition: WSParameter.h:28