All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AbstractPropertyManager.h
Go to the documentation of this file.
1 /* Copyright (C) 2011-2012 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 <QtGui/QWidget>
36 #include "../../../../../third-party/qt/propertybrowser/qtpropertymanager.h"
37 #include "../../../../../third-party/qt/propertybrowser/qttreepropertybrowser.h"
38 #include "../../../../../third-party/qt/propertybrowser/qteditorfactory.h"
39 
40 namespace te
41 {
42  namespace qt
43  {
44  namespace widgets
45  {
46  /*!
47  \class AbstractPropertyManager
48 
49  \brief A singleton for holding the property browser
50  items factories.
51  */
52  class TEQTWIDGETSEXPORT AbstractPropertyManager : public te::common::Singleton<AbstractPropertyManager>, public QWidget
53  {
55 
56  public:
57 
58  void setFactories(QtTreePropertyBrowser* pb);
59 
60  protected:
61 
62  /*! \brief It initializes the singleton. */
64 
65  /*! \brief Destructor. */
67 
68  public:
69  QtGroupPropertyManager* m_groupManager;
70  QtIntPropertyManager* m_intManager;
71  QtIntPropertyManager* m_intSliderManager;
72  QtDoublePropertyManager* m_doubleManager;
73  QtStringPropertyManager* m_stringManager;
74  QtStringPropertyManager* m_strDlgManager;
75  QtColorPropertyManager* m_colorManager;
76  QtFontPropertyManager* m_fontManager;
77  QtSizePropertyManager* m_sizeManager;
78  QtEnumPropertyManager* m_enumManager;
79  QtPointFPropertyManager* m_pointFManager;
80 
81  QtDoubleSpinBoxFactory* m_doubleSpinBoxFactory;
82  QtCheckBoxFactory* m_checkBoxFactory;
83  QtSpinBoxFactory* m_spinBoxFactory;
84  QtLineEditFactory* m_lineEditFactory;
85  QtEnumEditorFactory* m_comboBoxFactory;
86  QtSliderFactory* m_sliderFactory;
87  QtColorEditorFactory* m_colorFactory;
88  QtFontEditorFactory* m_fontFactory;
89  QtCharEditorFactory* m_charFactory;
90  QtDlgEditorFactory* m_dlgFactory;
91 
92  };
93 
94  } // end namespace af
95  } // end namespace qt
96 } // end namespace te
97 
98 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_ABSTRACTPROPERTYMANAGER_H
Template support for singleton pattern.
Definition: Singleton.h:100
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:101
A singleton for holding the property browser items factories.