InputDataAccessWidget.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 src/terralib/vp/qt/InputDataAccessWidget.h
22  *
23  * \brief Implements a widget used to return a set of Data Access object.
24  */
25 
26 #ifndef __TERRALIB_VP_QT_INTERNAL_INPUTDATAACCESSWIDGET_H
27 #define __TERRALIB_VP_QT_INTERNAL_INPUTDATAACCESSWIDGET_H
28 
29 #include "../Config.h"
30 
31  // TerraLib Includes
32 #include "../../maptools/AbstractLayer.h"
33 
34 // STL Includes
35 #include <memory>
36 
37  // Qt Includes
38 #include <QWidget>
39 
40 namespace Ui { class InputDataAccessWidgetForm; }
41 
42 namespace te
43 {
44  namespace da
45  {
46  class DataAccessPtr;
47  }
48 
49  namespace vp
50  {
51  namespace qt
52  {
53  class InputDataAccessItemWidget;
54 
55  /*!
56  \class InputDataAccessWidget
57 
58  \brief Implements a widget used to return a set of Data Access object.
59  */
60  class TEVPEXPORT InputDataAccessWidget : public QWidget
61  {
62  Q_OBJECT
63 
64  public:
65 
66  /*!
67  \brief Constructor.
68  */
69  InputDataAccessWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
70 
71  /*!
72  \brief Destructor.
73  */
75 
76  public:
77 
78  /*!
79  \brief Returns the internal widget
80 
81  \return Pointer to Qt Widget InputDataAccessWidgetForm
82  */
83  Ui::InputDataAccessWidgetForm* getForm() const;
84 
85  /*!
86  \brief Set the number of input data access
87 
88  \param nDataAccess Number of input data access
89  */
90  void setNumbersOfInputDataAccess(const std::size_t& nDataAccess, const std::list<te::map::AbstractLayerPtr>& layers);
91 
92  /*!
93  \brief Get a vector of DataAccess given the user defined parameters in the interface
94 
95  \return a vector of TerraLib DataAccess object
96  */
97  std::vector<te::da::DataAccessPtr> getDataAccessVector();
98 
99  //!< Configures the widget to allow the filter of properties
100  void setFilterPropertiesEnabled(bool enabled);
101 
102  protected slots:
103 
105 
106  signals:
107 
109 
110  private:
111 
112  std::vector<te::vp::qt::InputDataAccessItemWidget*> inputDataAccessItemWidgetVec;
113 
114  std::unique_ptr<Ui::InputDataAccessWidgetForm> m_ui; //!< Pointer to Qt widget
115  };
116  } // end namespace qt
117  } // end namespace qt
118 } // end namespace qt
119 
120 
121 #endif // __TERRALIB_VP_QT_INTERNAL_INPUTDATAACCESSWIDGET_H
122 
Implements a widget used to return a set of Data Access object.
std::vector< te::da::DataAccessPtr > getDataAccessVector()
Get a vector of DataAccess given the user defined parameters in the interface.
void setNumbersOfInputDataAccess(const std::size_t &nDataAccess, const std::list< te::map::AbstractLayerPtr > &layers)
Set the number of input data access.
std::vector< te::vp::qt::InputDataAccessItemWidget * > inputDataAccessItemWidgetVec
std::unique_ptr< Ui::InputDataAccessWidgetForm > m_ui
Pointer to Qt widget.
InputDataAccessWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Constructor.
Ui::InputDataAccessWidgetForm * getForm() const
Returns the internal widget.
void setFilterPropertiesEnabled(bool enabled)
TerraLib.
#define slots
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61