FillPropertyItem.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/FillPropertyItem.h
22 
23  \brief A widget used to define the fill se object.
24  */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_FILLPROPERTYITEM_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_FILLPROPERTYITEM_H
28 
29  // TerraLib
30 #include "../Config.h"
31 //#include "../propertybrowser/AbstractPropertyItem.h"
32 
33 #include "StylePropertyItem.h"
34 
35 #include <QColor>
36 
37 class QtProperty;
38 class QtTreePropertyBrowser;
39 
40 namespace te
41 {
42  // Forward declarations
43  namespace se
44  {
45  class Fill;
46  }
47 
48  namespace qt
49  {
50  namespace widgets
51  {
52  class AbstractPropertyItem;
53  class BasicFillPropertyItem;
54  class GroupPropertyItemHandler;
55  class GraphicFillPropertyItem;
56 
57  /*!
58  \class FillPropertyItem
59 
60  \brief A widget used to define the fill se object.
61 
62  - Basic
63  - Color
64  - Opacity
65  - Graphic
66 
67  */
68 
70  {
71  Q_OBJECT
72 
73  public:
74  /** @name Initializer Methods
75  * Methods related to instantiation and destruction.
76  */
77  //@{
78 
79  /*! \brief Constructor */
80  FillPropertyItem(QtTreePropertyBrowser* propertyBrowser, StylePropertyItemListener* listener, QColor c = QColor());
81 
82  /*! \brief Destructor. */
84 
85  //@}
86 
87  bool setFill(const te::se::Fill* fill);
88 
90 
91  protected:
92 
94 
97  };
98  }
99  }
100 }
101 
102 #endif //__TERRALIB_QT_WIDGETS_SE_INTERNAL_FILLPROPERTYITEM_H
A bse item to represent the style items in property tree.
A widget used to define the basic fill se object.
A widget used to define the fill se object.
te::se::Fill * getFill() const
te::qt::widgets::BasicFillPropertyItem * m_basicFillProperty
te::qt::widgets::GraphicFillPropertyItem * m_graphicFillProperty
GroupPropertyItemHandler * m_groupHandler
bool setFill(const te::se::Fill *fill)
FillPropertyItem(QtTreePropertyBrowser *propertyBrowser, StylePropertyItemListener *listener, QColor c=QColor())
Constructor.
A widget used to define the graphic fill se object.
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 Fill specifies the pattern for filling an area geometry.
Definition: Fill.h:60
TerraLib.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63