ProjectInfoDialog.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 ProjectInfoDialog.h
22 
23 \brief A dialog for edition of Project informations.
24 */
25 
26 #ifndef __TERRAVIEW_INTERNAL_PROJECTINFODIALOG_H
27 #define __TERRAVIEW_INTERNAL_PROJECTINFODIALOG_H
28 
29 #include <QDialog>
30 
31 // Forward declaration
32 struct ProjectMetadata;
33 class ProjectInfoWidget;
34 
35 /*!
36  \class
37 
38  \brief
39 */
40 class ProjectInfoDialog : public QDialog
41 {
42  Q_OBJECT
43 
44  public:
45 
46  /*!
47  \brief Constructor.
48 
49  \param parent QWidget parent.
50  */
51  ProjectInfoDialog(QWidget* parent=0);
52 
53  /*!
54  \brief Destructor.
55  */
57 
58  /*!
59  \brief Sets the project to be inspected.
60 
61  \param proj The te::qt::af::Project to be presented.
62  */
63  void setProject(ProjectMetadata* proj);
64 
65  protected slots:
66 
67  /*!
68  \brief Called on ok button pressed.
69  */
70  void onOkPushButtonPressed();
71 
72  /*!
73  \brief Called on help button pressed.
74  */
76 
77  protected:
78 
79  ProjectInfoWidget* m_info; //!< Pointer to the widget that contains information about te::qt::af::Project.
80 };
81 
82 
83 #endif //__TERRALIB_QT_AF_INTERNAL_PROJECTINFODIALOG_H
~ProjectInfoDialog()
Destructor.
void onHelpPushButtonPressed()
Called on help button pressed.
void onOkPushButtonPressed()
Called on ok button pressed.
ProjectInfoWidget * m_info
Pointer to the widget that contains information about te::qt::af::Project.
A widget for present te::qt::af::Project informations.
ProjectInfoDialog(QWidget *parent=0)
Constructor.
void setProject(ProjectMetadata *proj)
Sets the project to be inspected.