/*  Copyright (C) 2011-2012 National Institute For Space Research (INPE) - Brazil.

    This file is part of the TerraLib - a Framework for building GIS enabled applications.

    TerraLib is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License,
    or (at your option) any later version.

    TerraLib is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with TerraLib. See COPYING. If not, write to
    TerraLib Team at <terralib-team@terralib.org>.
 */

/*! 
  \file terralib/qt/af/ProjectInfoDialog.h

  \brief A dialog for edition of te::qt::af::Project informations.
*/

#ifndef __TERRALIB_QT_AF_INTERNAL_PROJECTINFODIALOG_H
#define __TERRALIB_QT_AF_INTERNAL_PROJECTINFODIALOG_H

#include <QDialog>

#include "Config.h"

namespace te
{
  namespace qt
  {
    namespace af
    {
      // Forward declaration
      class Project;
      class ProjectInfoWidget;

      /*!
        \class

        \brief
      */
      class TEQTAFEXPORT ProjectInfoDialog : public QDialog
      {
        Q_OBJECT

        public:

          /*!
            \brief Constructor.

            \param parent QWidget parent.
          */
          ProjectInfoDialog(QWidget* parent=0);

          /*!
            \brief Destructor.
          */
          ~ProjectInfoDialog();

          /*!
            \brief Sets the project to be inspected.

            \param proj The te::qt::af::Project to be presented.
          */
          void setProject(Project* proj);

        protected slots:

          /*!
            \brief Called on ok button pressed.
          */
          void onOkPushButtonPressed();

          /*!
            \brief Called on help button pressed.
          */
          void onHelpPushButtonPressed();

        protected:

          ProjectInfoWidget* m_info;    //!< Pointer to the widget that contains information about te::qt::af::Project.
      };
    }
  }
}


#endif //__TERRALIB_QT_AF_INTERNAL_PROJECTINFODIALOG_H