GraphicProperty.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/GraphicPropertyItem.h
22 
23  \brief A widget used to define the general properties of a se object.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_GRAPHICPROPERTY_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_GRAPHICPROPERTY_H
28 
29 // TerraLib
30 #include "../Config.h"
31 
32 
33 // Qt
34 #include <QWidget>
35 
36 namespace te
37 {
38  //forward declaration
39  namespace se
40  {
41  class Graphic;
42  }
43 
44  namespace qt
45  {
46  namespace widgets
47  {
48  class GraphicPropertyItem;
49  class WellKnownMarkPropertyItem;
50  class GlyphMarkPropertyItem;
51  class LocalImagePropertyItem;
52 
53  /*!
54  \class GraphicProperty
55 
56  \brief A widget used to define the general properties of a se object.
57 
58  */
59 
60  class TEQTWIDGETSEXPORT GraphicProperty : public QWidget
61  {
62  Q_OBJECT
63 
64  public:
65  /** @name Initializer Methods
66  * Methods related to instantiation and destruction.
67  */
68  //@{
69 
70  /*! \brief Constructor */
71  GraphicProperty(QWidget* parent);
72 
73  /*! \brief Destructor. */
74  ~GraphicProperty();
75 
76  //@}
77 
78  public:
79 
80  /** @name Re-implementation of Pure Virtual Method
81  * AbstractGraphicWidget methods.
82  */
83  //@{
84 
85  bool setGraphic(const te::se::Graphic* graphic);
86 
87  te::se::Graphic* getGraphic() const;
88 
89  //@}
90 
91  public slots:
92 
93  void onGraphicPropertyChanged();
94 
95  void onWellKnownMarkChanged();
96 
97  void onGlyphMarkChanged();
98 
99  void onLocalImageChanged();
100 
101  signals:
102 
103  /*! This signal is emitted when the internal graphic element is changed. */
104  void graphicChanged();
105 
106  protected:
107 
112 
114 
116  };
117  }
118  }
119 }
120 
121 #endif //__TERRALIB_QT_WIDGETS_SE_INTERNAL_GRAPHICPROPERTY_H
A widget used to define a glyph object.
A widget used to define the general properties of a se object.
A widget used to define the mark se properties.
te::qt::widgets::WellKnownMarkPropertyItem * m_mp
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
Definition: Graphic.h:66
A widget used to define the general properties of a se object.
URI C++ Library.
te::qt::widgets::GraphicPropertyItem * m_graphp
#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::LocalImagePropertyItem * m_li
A widget used to define a local image graphic for a se symbolizer.
te::qt::widgets::GlyphMarkPropertyItem * m_gp