MarkWellKnownPropertyItem.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20  /*!
21  \file terralib/qt/widgets/se/MarkWellKnownPropertyItem.h
22 
23  \brief A widget used to define the mark well known se object.
24  */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_MARKWELLKNOWNPROPERTYITEM_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_MARKWELLKNOWNPROPERTYITEM_H
28 
29  // TerraLib
31 #include "../Config.h"
32 
33 class QColor;
34 class QStringList;
35 class QtProperty;
36 
37 namespace te
38 {
39  // Forward declarations
40  namespace se
41  {
42  class Mark;
43  }
44 
45  namespace qt
46  {
47  namespace widgets
48  {
49  class AbstractPropertyItem;
50  class BasicFillPropertyItem;
51  class BasicStrokePropertyItem;
52 
53  /*!
54  \class GraphicFillPropertyItem
55 
56  \brief A widget used to define the mark well known se object.
57 
58  - type
59  - fill
60  - stroke
61  */
62 
64  {
65  Q_OBJECT
66 
67  public:
68  /** @name Initializer Methods
69  * Methods related to instantiation and destruction.
70  */
71  //@{
72 
73  /*! \brief Constructor */
74  MarkWellKnownPropertyItem(QtProperty* parent, QtTreePropertyBrowser* propertyBrowser, StylePropertyItemListener* listener, QColor c);
75 
76  /*! \brief Destructor. */
78 
79  //@}
80 
81  bool setMark(const te::se::Mark* mark);
82 
84 
85  protected:
86 
87  QStringList getMarkTypeNames() const;
88 
89  protected:
90 
91  QtProperty* m_typeProperty;
92 
95  };
96  }
97  }
98 }
99 
100 #endif //__TERRALIB_QT_WIDGETS_SE_INTERNAL_MARKGLYPHPROPERTYITEM_H
te::qt::widgets::MarkWellKnownPropertyItem::getMark
te::se::Mark * getMark() const
te::qt::widgets::MarkWellKnownPropertyItem::~MarkWellKnownPropertyItem
~MarkWellKnownPropertyItem()
Destructor.
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::qt::widgets::StylePropertyItemListener
A widget used to define the main property items listener.
Definition: StylePropertyItemListener.h:49
te::qt::widgets::MarkWellKnownPropertyItem::getMarkTypeNames
QStringList getMarkTypeNames() const
te::qt::widgets::BasicStrokePropertyItem
Definition: BasicStrokePropertyItem.h:59
te::qt::widgets::BasicFillPropertyItem
A widget used to define the basic fill se object.
Definition: BasicFillPropertyItem.h:56
TEQTWIDGETSEXPORT
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
CheckboxStylePropertyItem.h
te::qt::widgets::MarkWellKnownPropertyItem::m_fillPropertyItem
te::qt::widgets::BasicFillPropertyItem * m_fillPropertyItem
Definition: MarkWellKnownPropertyItem.h:93
te::qt::widgets::MarkWellKnownPropertyItem::setMark
bool setMark(const te::se::Mark *mark)
te::se::Mark
A Mark specifies a geometric shape and applies coloring to it.
Definition: Mark.h:85
te::qt::widgets::MarkWellKnownPropertyItem::m_strokePropertyItem
te::qt::widgets::BasicStrokePropertyItem * m_strokePropertyItem
Definition: MarkWellKnownPropertyItem.h:94
te::qt::widgets::MarkWellKnownPropertyItem::m_typeProperty
QtProperty * m_typeProperty
Definition: MarkWellKnownPropertyItem.h:91
te::qt::widgets::CheckboxStylePropertyItem
Definition: CheckboxStylePropertyItem.h:49
te::qt::widgets::MarkWellKnownPropertyItem
Definition: MarkWellKnownPropertyItem.h:64
te::qt::widgets::MarkWellKnownPropertyItem::MarkWellKnownPropertyItem
MarkWellKnownPropertyItem(QtProperty *parent, QtTreePropertyBrowser *propertyBrowser, StylePropertyItemListener *listener, QColor c)
Constructor.