GraphicStrokePropertyItem.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/GraphicStrokePropertyItem.h
22 
23  \brief A widget used to define the graphic stroke se object.
24  */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_GRAPHICSTROKEPROPERTYITEM_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_GRAPHICSTROKEPROPERTYITEM_H
28 
29  // TerraLib
31 #include "../Config.h"
32 
33  // Qt
34 #include <QObject>
35 
36 namespace te
37 {
38  // Forward declarations
39  namespace se
40  {
41  class GraphicStroke;
42  }
43 
44  namespace qt
45  {
46  namespace widgets
47  {
48  class GraphicFillPropertyItem;
49 
50  /*!
51  \class GraphicStrokePropertyItem
52 
53  \brief A widget used to define the graphic stroke se object.
54 
55  - initial gap
56  - gap
57  - graphic
58 
59  */
60 
62  {
63  Q_OBJECT
64 
65  public:
66  /** @name Initializer Methods
67  * Methods related to instantiation and destruction.
68  */
69  //@{
70 
71  /*! \brief Constructor */
72  GraphicStrokePropertyItem(QtProperty* parent, QtTreePropertyBrowser* propertyBrowser, StylePropertyItemListener* listener, QColor color, QColor subColor);
73 
74  /*! \brief Destructor. */
76 
77  //@}
78 
79  void setEnabled(bool enable);
80 
82 
84 
85  protected:
86 
87  QtProperty* m_gapProperty;
88  QtProperty* m_initialGapProperty;
89  };
90  }
91  }
92 }
93 
94 #endif //__TERRALIB_QT_WIDGETS_SE_INTERNAL_GRAPHICSTROKEPROPERTYITEM_H
te::qt::widgets::GraphicStrokePropertyItem::m_initialGapProperty
QtProperty * m_initialGapProperty
Definition: GraphicStrokePropertyItem.h:88
te::qt::widgets::GraphicStrokePropertyItem::setEnabled
void setEnabled(bool enable)
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::GraphicStrokePropertyItem::setGraphicStroke
bool setGraphicStroke(const te::se::GraphicStroke *graphic)
TEQTWIDGETSEXPORT
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
te::qt::widgets::GraphicStrokePropertyItem::getGraphicStroke
te::se::GraphicStroke * getGraphicStroke() const
te::se::GraphicStroke
A GraphicStroke defines a repeated-linear graphic pattern to be used for stroking a line.
Definition: GraphicStroke.h:51
te::qt::widgets::GraphicStrokePropertyItem::m_gapProperty
QtProperty * m_gapProperty
Definition: GraphicStrokePropertyItem.h:87
te::qt::widgets::GraphicStrokePropertyItem
A widget used to define the graphic stroke se object.
Definition: GraphicStrokePropertyItem.h:62
te::qt::widgets::GraphicStrokePropertyItem::~GraphicStrokePropertyItem
~GraphicStrokePropertyItem()
Destructor.
te::qt::widgets::GraphicFillPropertyItem
A widget used to define the graphic fill se object.
Definition: GraphicFillPropertyItem.h:66
GraphicFillPropertyItem.h
A widget used to define the graphic fill se object.
te::qt::widgets::GraphicStrokePropertyItem::GraphicStrokePropertyItem
GraphicStrokePropertyItem(QtProperty *parent, QtTreePropertyBrowser *propertyBrowser, StylePropertyItemListener *listener, QColor color, QColor subColor)
Constructor.