Loading...
Searching...
No Matches
MarkGlyphPropertyItem.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/MarkGlyphPropertyItem.h
22
23 \brief A widget used to define the graphic mark glyph se object.
24 */
25
26#ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_MARKGLYPHPROPERTYITEM_H
27#define __TERRALIB_QT_WIDGETS_SE_INTERNAL_MARKGLYPHPROPERTYITEM_H
28
29 // TerraLib
31#include "../Config.h"
32#include "../propertybrowser/AbstractPropertyItem.h"
33
34namespace te
35{
36 // Forward declarations
37 namespace se
38 {
39 class Mark;
40 }
41
42 namespace qt
43 {
44 namespace widgets
45 {
46 class BasicFillPropertyItem;
47
48 /*!
49 \class MarkExternalGraphicPropertyItem
50
51 \brief A widget used to define the graphic mark glyph se object.
52
53 - font
54 - char
55 - fill
56
57 */
58
60 {
61 Q_OBJECT
62
63 public:
64 /** @name Initializer Methods
65 * Methods related to instantiation and destruction.
66 */
67 //@{
68
69 /*! \brief Constructor */
70 MarkGlyphPropertyItem(QtProperty* parent, QtTreePropertyBrowser* propertyBrowser, StylePropertyItemListener* listener, QColor c);
71
72 /*! \brief Destructor. */
74
75 //@}
76
77 bool setMark(const te::se::Mark* mark);
78
80
81 public slots:
82
83 virtual void setDlg(QWidget* parent, QtProperty* prop);
84
85 virtual void showCharMapDlg();
86
87 virtual void charMapSelected(const unsigned int& charCode);
88
89 signals:
90
91 /*! This signal is emitted when the internal graphic element is changed. */
92 void markGlyphEnabled(bool enable);
93
94 protected:
95
96 QtProperty* m_fontProperty;
97 QtProperty* m_charProperty;
98
100 };
101 }
102 }
103}
104
105#endif //__TERRALIB_QT_WIDGETS_SE_INTERNAL_MARKGLYPHPROPERTYITEM_H
A widget used to define the basic fill se object.
bool setMark(const te::se::Mark *mark)
virtual void charMapSelected(const unsigned int &charCode)
MarkGlyphPropertyItem(QtProperty *parent, QtTreePropertyBrowser *propertyBrowser, StylePropertyItemListener *listener, QColor c)
Constructor.
te::qt::widgets::BasicFillPropertyItem * m_basicFillPropertyItem
virtual void setDlg(QWidget *parent, QtProperty *prop)
A widget used to define the main property items listener.
A Mark specifies a geometric shape and applies coloring to it.
Definition: Mark.h:85
TerraLib.
#define slots
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63