COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 "WSParameter.h"
12 
13 namespace covise
14 {
15 
17 {
18  Q_OBJECT
19 
20  Q_PROPERTY(bool value READ getValue WRITE setValue)
21 
22 public:
23  WSBooleanParameter(const QString &name, const QString &description, bool value = false);
24 
25  virtual ~WSBooleanParameter();
26 
27 public slots:
32  bool setValue(bool inValue);
33 
38  bool getValue() const;
39 
40  virtual QString toString() const;
41 
42 public:
43  virtual WSParameter *clone() const;
44 
45  virtual const covise::covise__Parameter *getSerialisable();
46 
47 protected:
48  virtual bool setValueFromSerialisable(const covise::covise__Parameter *serialisable);
49 
50 private:
51  covise::covise__BooleanParameter parameter;
52 
55 };
56 }
57 #endif // WSBOOLEANPARAMETER_H
GLsizei const GLfloat * value
Definition: khronos-glext.h:6760
static WSBooleanParameter * prototype
Definition: WSBooleanParameter.h:54
Definition: WSParameter.h:26
GLuint const GLchar * name
Definition: khronos-glext.h:6722
#define WSLIBEXPORT
Definition: coExport.h:355
covise::covise__BooleanParameter parameter
Definition: WSBooleanParameter.h:51
Definition: WSBooleanParameter.h:16