SymbolInfoDialog.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/widgets/se/SymbolInfoDialog.h
22 
23  \brief A dialog used to configure informations about a symbol.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_SYMBOLINFODIALOG_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_SYMBOLINFODIALOG_H
28 
29 // TerraLib
30 #include "../Config.h"
31 #include "SymbolInfo.h"
32 
33 // Qt
34 #include <QDialog>
35 
36 // STL
37 #include <memory>
38 
39 // Forward declaraion
40 namespace Ui { class SymbolInfoDialogForm; }
41 
42 namespace te
43 {
44  namespace qt
45  {
46  namespace widgets
47  {
48  /*!
49  \class SymbolInfoDialog
50 
51  \brief A dialog used to configure informations about a symbol.
52  */
53  class TEQTWIDGETSEXPORT SymbolInfoDialog : public QDialog
54  {
55  public:
56 
57  /** @name Initializer Methods
58  * Methods related to instantiation and destruction.
59  */
60  //@{
61 
62  /*! \brief Constructs a symbol info dialog which is a child of parent, with widget flags set to f. */
63  SymbolInfoDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
64 
65  /*! \brief Destructor. */
67 
68  //@}
69 
70  public:
71 
72  /*!
73  \brief Gets the configured symbol information.
74 
75  \return The configured symbol information.
76  */
77  SymbolInfo getSymbolInfo() const;
78 
79  /*!
80  \brief Sets the symbol information to this dialog.
81 
82  \param info The symbol information.
83 
84  \note The dialog form will be update based on given information parameters.
85  */
86  void setSymbolInfo(const SymbolInfo& info);
87 
88  void setReadMode(bool enable = true);
89 
90  private:
91 
92  /*! \brief Updates the dialog form based on internal symbol info object. */
93  void updateUi();
94 
95  private:
96 
97  std::auto_ptr<Ui::SymbolInfoDialogForm> m_ui; //!< Dialog form.
98  SymbolInfo m_symbolInfo; //!< Symbol information that will be configured by the dialog.
99  };
100 
101  } // end namespace widgets
102  } // end namespace qt
103 } // end namespace te
104 
105 #endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_SYMBOLINFODIALOG_H
A dialog used to configure informations about a symbol.
Information about a given Symbol.
URI C++ Library.
Information about a given Symbol.
Definition: SymbolInfo.h:60
std::auto_ptr< Ui::SymbolInfoDialogForm > m_ui
Dialog form.
SymbolInfo m_symbolInfo
Symbol information that will be configured by the dialog.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63