GlobeEngine
LegendStyleObject.h
Go to the documentation of this file.
1 #ifndef GlobeEngine_LegendStyleObject_h
2 #define GlobeEngine_LegendStyleObject_h
3 
4 #include "OpenGL_Includes.h"
5 #include "FeatureObject.h"
6 #include <QObject>
7 #include <QStringList>
8 #include <QColor>
9 
10 namespace geViewer {
11 
12 #include <QObject>
13 
14  class LegendStyleObject : public QObject
15  {
16  Q_OBJECT
17 
18  Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
19  Q_PROPERTY(QString value READ value WRITE setValue NOTIFY valueChanged)
20  Q_PROPERTY(QString pattern READ pattern WRITE setPattern NOTIFY patternChanged)
21  Q_PROPERTY(QColor mainColor READ mainColor WRITE setMainColor NOTIFY mainColorChanged)
22 
23  public:
24  LegendStyleObject(QObject* _parent = 0);
25  LegendStyleObject(const QString& _name, const QString& _value,
26  const QString& _pattern, QColor _mainColor, QObject* _parent = 0);
27 
28  QString name() const;
29  void setName(const QString& _name);
30 
31  QString value() const;
32  void setValue(const QString& _value);
33 
34  QString pattern() const;
35  void setPattern(const QString& _pattern);
36 
37  QColor mainColor() const;
38  void setMainColor(const QColor& _mainColor);
39 
40  signals:
41  void nameChanged();
42  void valueChanged();
43  void patternChanged();
44  void mainColorChanged();
45 
46  private:
47  QColor m_mainColor;
48  QString m_name;
49  QString m_value;
50  QString m_pattern;
51 
52  };
53 }
54 #endif
void setPattern(const QString &_pattern)
Definition: LegendStyleObject.cpp:50
Definition: FeaturePanel.h:10
void setName(const QString &_name)
Definition: LegendStyleObject.cpp:24
void setMainColor(const QColor &_mainColor)
Definition: LegendStyleObject.cpp:63
QString pattern() const
Definition: LegendStyleObject.h:14
void setValue(const QString &_value)
Definition: LegendStyleObject.cpp:37