Loading...
Searching...
No Matches
ProjectInfoWidget.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 ProjectInfoWidget.h
22
23 \brief Contains a widget for define Project informations.
24*/
25
26#ifndef __TERRAVIEW_INTERNAL_PROJECTINFOWIDGET_H
27#define __TERRAVIEW_INTERNAL_PROJECTINFOWIDGET_H
28
29#include <QWidget>
30
31// Forward declaration
32namespace Ui
33{
34 class ProjectInfoWidgetForm;
35}
36
37// Forward declaration
38struct ProjectMetadata;
39
40/*!
41 \class ProjectInfoWidget
42
43 \brief A widget for present te::qt::af::Project informations.
44*/
45class ProjectInfoWidget : public QWidget
46{
47 public:
48
49 /*!
50 \brief Constructor.
51
52 \param parent QWidget parent.
53 */
54 ProjectInfoWidget(QWidget* parent=0);
55
56 /*!
57 \brief Destructor.
58 */
60
61 /*!
62 \brief Updates the te::qt::af::Project being visualized.
63
64 \param proj The te::qt::af::Project to be presented.
65 */
67
68 /*!
69 \brief Updates the te::qt::af::Project informations.
70 */
72
73 protected:
74
75 ProjectMetadata* m_proj; //!< te::qt::af::Project being presented.
76
77 private:
78
79 Ui::ProjectInfoWidgetForm* m_ui; //!< Pointer to the form.
80};
81
82#endif //__TERRAVIEW_INTERNAL_PROJECTINFOWIDGET_H
A widget for present te::qt::af::Project informations.
ProjectInfoWidget(QWidget *parent=0)
Constructor.
~ProjectInfoWidget()
Destructor.
void setProject(ProjectMetadata *proj)
Updates the te::qt::af::Project being visualized.
void updateProjectInfo()
Updates the te::qt::af::Project informations.
Ui::ProjectInfoWidgetForm * m_ui
Pointer to the form.
ProjectMetadata * m_proj
te::qt::af::Project being presented.