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