COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
WSStringParameter.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 WSSTRINGPARAMETER_H
9 #define WSSTRINGPARAMETER_H
10 
11 #include "WSExport.h"
12 #include "WSParameter.h"
13 #include "WSTools.h"
14 
15 namespace covise
16 {
17 
19 {
20 
21  Q_OBJECT
22 
23  Q_PROPERTY(QString value READ getValue WRITE setValue)
24 
25 public:
26  WSStringParameter(const QString &name, const QString &description, const QString &value = QString::null);
27 
28  virtual ~WSStringParameter();
29 
30 public slots:
36  bool setValue(const QString &inValue);
37 
42  const QString getValue() const;
43 
44  virtual QString toString() const;
45 
46 public:
47  virtual WSParameter *clone() const;
48 
49  virtual const covise::covise__Parameter *getSerialisable();
50 
51 protected:
52  virtual bool setValueFromSerialisable(const covise::covise__Parameter *serialisable);
53 
54  virtual QString toCoviseString() const;
55 
56 private:
57  covise::covise__StringParameter parameter;
60 };
61 }
62 #endif // WSSTRINGPARAMETER_H
GLuint const GLchar * name
Definition: khronos-glext.h:6722
#define WSLIBEXPORT
Definition: coExport.h:355
Definition: WSStringParameter.h:18
static WSStringParameter * prototype
Definition: WSStringParameter.h:59
covise::covise__StringParameter parameter
Definition: WSStringParameter.h:57
Definition: WSParameter.h:27
GLsizei const GLfloat * value
Definition: khronos-glext.h:6760