StrokePropertyItem.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/StrokePropertyItem.h
22 
23  \brief A widget used to define the Stroke se object.
24  */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_STROKEPROPERTYITEM_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_STROKEPROPERTYITEM_H
28 
29  // TerraLib
30 #include "StylePropertyItem.h"
31 #include "../Config.h"
32 
33 namespace te
34 {
35  // Forward declarations
36  namespace se
37  {
38  class Stroke;
39  }
40 
41  namespace qt
42  {
43  namespace widgets
44  {
45  class BasicStrokePropertyItem;
46  class GraphicFillPropertyItem;
47  class GraphicStrokePropertyItem;
48  class GroupPropertyItemHandler;
49 
50  /*!
51  \class StrokePropertyItem
52 
53  \brief A widget used to define the stroke se object.
54 
55  - stroke
56  - opacity
57  - width
58  - linejoin
59  - linecap
60  - dasharray
61  - dashoffset
62  - GraphicFill
63  - GraphicStroke
64 
65  */
66 
68  {
69  Q_OBJECT
70 
71  public:
72  /** @name Initializer Methods
73  * Methods related to instantiation and destruction.
74  */
75  //@{
76 
77  /*! \brief Constructor */
78  StrokePropertyItem(QtTreePropertyBrowser* propertyBrowser, StylePropertyItemListener* listener, QColor c = QColor());
79 
80  /*! \brief Destructor. */
82 
83  //@}
84 
85  bool setStroke(const te::se::Stroke* stroke);
86 
88 
89  protected:
90 
92 
96  };
97  }
98  }
99 }
100 
101 #endif //__TERRALIB_QT_WIDGETS_SE_INTERNAL_STROKEPROPERTYITEM_H
A bse item to represent the style items in property tree.
A widget used to define the graphic fill se object.
A widget used to define the graphic stroke se object.
A widget used to define the stroke se object.
te::qt::widgets::GraphicStrokePropertyItem * m_graphicStrokeProperty
bool setStroke(const te::se::Stroke *stroke)
te::se::Stroke * getStroke() const
GroupPropertyItemHandler * m_groupHandler
StrokePropertyItem(QtTreePropertyBrowser *propertyBrowser, StylePropertyItemListener *listener, QColor c=QColor())
Constructor.
te::qt::widgets::GraphicFillPropertyItem * m_graphicFillProperty
te::qt::widgets::BasicStrokePropertyItem * m_basicStrokeProperty
A widget used to define the main property items listener.
A widget used to define the main property items that can be used to describe a se object.
A Stroke specifies the appearance of a linear geometry.
Definition: Stroke.h:68
TerraLib.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63