Loading...
Searching...
No Matches
OutputDataAccessWidget.h
Go to the documentation of this file.
1/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5TerraLib is free software: you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation, either version 3 of the License,
8or (at your option) any later version.
9
10TerraLib is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU Lesser General Public License for more details.
14
15You should have received a copy of the GNU Lesser General Public License
16along with TerraLib. See COPYING. If not, write to
17TerraLib Team at <terralib-team@terralib.org>.
18*/
19
20/*!
21 * \file src/terralib/vp/qt/OutputDataAccessWidget.h
22 *
23 * \brief Implements a widget used to return a set of Data Access object.
24 */
25
26#ifndef __TERRALIB_VP_QT_INTERNAL_OUTPUTDATAACCESSWIDGET_H
27#define __TERRALIB_VP_QT_INTERNAL_OUTPUTDATAACCESSWIDGET_H
28
29#include "../Config.h"
30
31 // STL Includes
32#include <memory>
33
34 // Qt Includes
35#include <QWidget>
36
37namespace Ui { class OutputDataAccessWidgetForm; }
38
39namespace te
40{
41 namespace da
42 {
43 class DataAccessPtr;
44 }
45
46 namespace vp
47 {
48 namespace qt
49 {
50 class OutputDataAccessItemWidget;
51
52 /*!
53 \class OutputDataAccessItemWidget
54
55 \brief Implements a widget used to return a set of Data Access object.
56 */
57 class TEVPEXPORT OutputDataAccessWidget : public QWidget
58 {
59 Q_OBJECT
60
61 public:
62
63 /*!
64 \brief Constructor.
65 */
66 OutputDataAccessWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
67
68 /*!
69 \brief Destructor.
70 */
72
73 public:
74
75 /*!
76 \brief Returns the internal widget
77
78 \return Pointer to Qt Widget OutputDataAccessWidget
79 */
80 Ui::OutputDataAccessWidgetForm* getForm() const;
81
82 /*!
83 \brief Set the number of input data access
84
85 \param nDataAccess Number of input data access
86 */
87 void setNumbersOfOutputDataAccess(const std::size_t& nDataAccess);
88
89 /*!
90 \brief Get a vector of DataAccess given the user defined parameters in the interface
91
92 \return a vector of TerraLib DataAccess object
93 */
94 std::vector<te::da::DataAccessPtr> getDataAccessVector();
95
96 //!< Resets the widget to its original clear state
97 void reset();
98
99 private:
100
101 std::vector<te::vp::qt::OutputDataAccessItemWidget*> outputDataAccessItemWidgetVec;
102
103 std::unique_ptr<Ui::OutputDataAccessWidgetForm> m_ui; //!< Pointer to Qt widget
104 };
105 } // end namespace qt
106 } // end namespace qt
107} // end namespace qt
108
109
110#endif // __TERRALIB_VP_QT_INTERNAL_OUTPUTDATAACCESSWIDGET_H
111
std::vector< te::da::DataAccessPtr > getDataAccessVector()
Get a vector of DataAccess given the user defined parameters in the interface.
std::vector< te::vp::qt::OutputDataAccessItemWidget * > outputDataAccessItemWidgetVec
std::unique_ptr< Ui::OutputDataAccessWidgetForm > m_ui
Pointer to Qt widget.
OutputDataAccessWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Constructor.
Ui::OutputDataAccessWidgetForm * getForm() const
Returns the internal widget.
void setNumbersOfOutputDataAccess(const std::size_t &nDataAccess)
Set the number of input data access.
TerraLib.
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61