NewPropertyDialog.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/property/NewPropertyDialog.h
22 
23  \brief A class used to define the NewPropertyDialog class.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_PROPERTY_INTERNAL_NEWPROPERTYDIALOG_H
27 #define __TERRALIB_QT_WIDGETS_PROPERTY_INTERNAL_NEWPROPERTYDIALOG_H
28 
29 // TerraLib
30 #include "../Config.h"
31 
32 // Qt
33 #include <QDialog>
34 #include <QGridLayout>
35 
36 #include <memory>
37 
38 namespace Ui { class NewPropertyDialogForm; }
39 
40 namespace te
41 {
42  namespace dt { class SimpleProperty; }
43 
44  namespace qt
45  {
46  namespace widgets
47  {
48  class NewPropertyWidget;
49 
50  /*!
51  \class NewPropertyDialog
52 
53  \brief A dialog for creating a new property
54  */
55  class TEQTWIDGETSEXPORT NewPropertyDialog : public QDialog
56  {
57  Q_OBJECT
58 
59  public:
60 
61  NewPropertyDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
62 
64 
65  public:
66 
67  /*!
68  \brief Used to get all data types supported by this data source.
69 
70  \param id String used to define the data source id
71  */
72  void setDataSourceId(std::string id);
73 
74  /*!
75  \brief It returns a simple property class object.
76 
77  \return The caller of this method will TAKE the ownership of the returned SimpleProperty pointer.
78  */
79  te::dt::SimpleProperty* getProperty();
80 
81  public slots:
82 
83  void onOkPushButtonClicked();
84 
85  private:
86 
87  std::auto_ptr<Ui::NewPropertyDialogForm> m_ui;
89  };
90  } // end namespace widgets
91  } // end namespace qt
92 } // end namespace te
93 
94 #endif // __TERRALIB_QT_WIDGETS_PROPERTY_INTERNAL_NEWPROPERTYDIALOG_H
95 
An atomic property like an integer or double.
std::auto_ptr< Ui::NewPropertyDialogForm > m_ui
URI C++ Library.
A dialog for creating a new property.
te::qt::widgets::NewPropertyWidget * m_propWidget
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63