All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 terralib/qt/af/ProjectInfoWidget.h
22 
23  \brief Contains a widget for define Project informations.
24 */
25 
26 #ifndef __TERRALIB_QT_AF_INTERNAL_PROJECTINFOWIDGET_H
27 #define __TERRALIB_QT_AF_INTERNAL_PROJECTINFOWIDGET_H
28 
29 #include <QWidget>
30 
31 #include "Config.h"
32 
33 // Forward declaration
34 namespace Ui
35 {
36  class ProjectInfoWidgetForm;
37 }
38 
39 namespace te
40 {
41  namespace qt
42  {
43  namespace af
44  {
45  // Forward declaration
46  class Project;
47 
48  /*!
49  \class ProjectInfoWidget
50 
51  \brief A widget for present te::qt::af::Project informations.
52  */
53  class TEQTAFEXPORT ProjectInfoWidget : public QWidget
54  {
55  public:
56 
57  /*!
58  \brief Constructor.
59 
60  \param parent QWidget parent.
61  */
62  ProjectInfoWidget(QWidget* parent=0);
63 
64  /*!
65  \brief Destructor.
66  */
68 
69  /*!
70  \brief Updates the te::qt::af::Project being visualized.
71 
72  \param proj The te::qt::af::Project to be presented.
73  */
74  void setProject(Project* proj);
75 
76  /*!
77  \brief Updates the te::qt::af::Project informations.
78  */
79  void updateProjectInfo();
80 
81  protected:
82 
83  Project* m_proj; //!< te::qt::af::Project being presented.
84 
85  private:
86 
87  Ui::ProjectInfoWidgetForm* m_ui; //!< Pointer to the form.
88  };
89  }
90  }
91 }
92 
93 #endif //__TERRALIB_QT_AF_INTERNAL_PROJECTINFOWIDGET_H
A widget for present te::qt::af::Project informations.
Configuration flags for the TerraLib Application Framework.
Project * m_proj
te::qt::af::Project being presented.
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:81
This class models the concept of a project for the TerraLib Application Framework.
Definition: Project.h:50
Ui::ProjectInfoWidgetForm * m_ui
Pointer to the form.