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 
45 namespace 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 te::common::Singleton<AbstractPropertyManager>, public QWidget
58  {
60 
61  public:
62 
63  void setFactories(QtTreePropertyBrowser* pb);
64 
65  protected:
66 
67  /*! \brief It initializes the singleton. */
69 
70  /*! \brief Destructor. */
72 
73  public:
74  QtGroupPropertyManager* m_groupManager;
75  QtIntPropertyManager* m_intManager;
76  QtIntPropertyManager* m_intSliderManager;
77  QtDoublePropertyManager* m_doubleManager;
78  QtStringPropertyManager* m_stringManager;
79  QtStringPropertyManager* m_strDlgManager;
80  QtColorPropertyManager* m_colorManager;
81  QtFontPropertyManager* m_fontManager;
82  QtSizePropertyManager* m_sizeManager;
83  QtSizeFPropertyManager* m_sizeFManager;
84  QtEnumPropertyManager* m_enumManager;
85  QtPointFPropertyManager* m_pointFManager;
86  QtBoolPropertyManager* m_boolManager;
87 
88  QtDoubleSpinBoxFactory* m_doubleSpinBoxFactory;
89  QtCheckBoxFactory* m_checkBoxFactory;
90  QtSpinBoxFactory* m_spinBoxFactory;
91  QtDoubleSpinBoxFactory* m_spinFBoxFactory;
92  QtLineEditFactory* m_lineEditFactory;
93  QtEnumEditorFactory* m_comboBoxFactory;
94  QtSliderFactory* m_sliderFactory;
95  QtColorEditorFactory* m_colorFactory;
96  QtFontEditorFactory* m_fontFactory;
97  QtCharEditorFactory* m_charFactory;
98  QtDlgEditorFactory* m_dlgFactory;
99 
100  };
101 
102  } // end namespace af
103  } // end namespace qt
104 } // end namespace te
105 
106 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_ABSTRACTPROPERTYMANAGER_H
A singleton for holding the property browser items factories.
URI C++ Library.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
Template support for singleton pattern.
Definition: Singleton.h:100