Loading...
Searching...
No Matches
AbstractPropertyManager.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/AbstractPropertyManager.h
22
23 \brief A singleton for holding the property browser
24 items factories.
25*/
26
27#ifndef __TERRALIB_QT_WIDGETS_INTERNAL_ABSTRACTPROPERTYMANAGER_H
28#define __TERRALIB_QT_WIDGETS_INTERNAL_ABSTRACTPROPERTYMANAGER_H
29
30// TerraLib
31#include "../../../common/Singleton.h"
32#include "../Config.h"
33
34// Qt
35#include <QWidget>
36
37// QtPropertyBrowser
38#include <QtPropertyBrowser/QtCheckBoxFactory>
39#include <QtPropertyBrowser/QtDoubleSpinBoxFactory>
40#include <QtPropertyBrowser/QtGroupPropertyManager>
41#include <QtPropertyBrowser/QtSpinBoxFactory>
42#include <QtPropertyBrowser/QtTreePropertyBrowser>
43#include <QtPropertyBrowser/QtVariantPropertyManager>
44
45namespace te
46{
47 namespace qt
48 {
49 namespace widgets
50 {
51 /*!
52 \class AbstractPropertyManager
53
54 \brief A singleton for holding the property browser
55 items factories.
56 */
57 class TEQTWIDGETSEXPORT AbstractPropertyManager : public QObject, public te::common::Singleton<AbstractPropertyManager>
58 {
59 Q_OBJECT
60
62
63 public:
64
65 void setFactories(QtTreePropertyBrowser* pb);
66
67 protected:
68
69 /*! \brief It initializes the singleton. */
71
72 /*! \brief Destructor. */
74
75 public:
76 QtGroupPropertyManager* m_groupManager;
77 QtIntPropertyManager* m_intManager;
78 QtIntPropertyManager* m_intSliderManager;
79 QtDoublePropertyManager* m_doubleManager;
80 QtStringPropertyManager* m_stringManager;
81 QtStringPropertyManager* m_strDlgManager;
82 QtColorPropertyManager* m_colorManager;
83 QtFontPropertyManager* m_fontManager;
84 QtSizePropertyManager* m_sizeManager;
85 QtSizeFPropertyManager* m_sizeFManager;
86 QtEnumPropertyManager* m_enumManager;
87 QtPointFPropertyManager* m_pointFManager;
88 QtBoolPropertyManager* m_boolManager;
89
90 QtDoubleSpinBoxFactory* m_doubleSpinBoxFactory;
91 QtCheckBoxFactory* m_checkBoxFactory;
92 QtSpinBoxFactory* m_spinBoxFactory;
93 QtDoubleSpinBoxFactory* m_spinFBoxFactory;
94 QtLineEditFactory* m_lineEditFactory;
95 QtEnumEditorFactory* m_comboBoxFactory;
96 QtSliderFactory* m_sliderFactory;
97 QtColorEditorFactory* m_colorFactory;
98 QtFontEditorFactory* m_fontFactory;
99 QtCharEditorFactory* m_charFactory;
100 QtDlgEditorFactory* m_dlgFactory;
101 };
102 } // end namespace af
103 } // end namespace qt
104} // end namespace te
105
106#endif // __TERRALIB_QT_WIDGETS_INTERNAL_ABSTRACTPROPERTYMANAGER_H
Template support for singleton pattern.
Definition: Singleton.h:101
A singleton for holding the property browser items factories.
void setFactories(QtTreePropertyBrowser *pb)
AbstractPropertyManager()
It initializes the singleton.
TerraLib.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63