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  QtEnumPropertyManager* m_enumManager;
84  QtPointFPropertyManager* m_pointFManager;
85 
86  QtDoubleSpinBoxFactory* m_doubleSpinBoxFactory;
87  QtCheckBoxFactory* m_checkBoxFactory;
88  QtSpinBoxFactory* m_spinBoxFactory;
89  QtLineEditFactory* m_lineEditFactory;
90  QtEnumEditorFactory* m_comboBoxFactory;
91  QtSliderFactory* m_sliderFactory;
92  QtColorEditorFactory* m_colorFactory;
93  QtFontEditorFactory* m_fontFactory;
94  QtCharEditorFactory* m_charFactory;
95  QtDlgEditorFactory* m_dlgFactory;
96 
97  };
98 
99  } // end namespace af
100  } // end namespace qt
101 } // end namespace te
102 
103 #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