All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrajectoryDialog.h
Go to the documentation of this file.
1 /* Copyright (C) 2010-2013 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/charts/TrajectoryDialog.h
22 
23  \brief A dialog used to define the basic parameters of a new TrajectoryLayer.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_TRAJECTORYDIALOG_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_TRAJECTORYDIALOG_H
28 
29 //TerraLib
30 #include "../../../maptools/AbstractLayer.h"
31 #include "../Config.h"
32 
33 // Qt
34 #include <QDialog>
35 
36 #include <memory>
37 
38 namespace Ui { class TrajectoryDialogForm; }
39 
40 namespace te
41 {
42  namespace qt
43  {
44  namespace widgets
45  {
46 
47  //forward declarations
48  class TemporalPropertiesWidget;
49  class TrajectoryPropertiesWidget;
50 
51  /*!
52  \class TrajectoryDialog
53 
54  \brief A Dialog used to generate a new TrajectoryLayer
55  */
56  class TEQTWIDGETSEXPORT TrajectoryDialog : public QDialog
57  {
58 
59  Q_OBJECT
60 
61  public:
62 
63  /*!
64  \brief Constructor
65 
66  \param parent this widget's parent
67  \param f Window flags used to configure this dialog
68  */
69  TrajectoryDialog(te::map::AbstractLayerPtr layer, QWidget* parent = 0, Qt::WindowFlags f = 0);
70 
71  /*!
72  \brief Destructor
73  */
75 
76  protected slots:
77 
78  void onOkPushButtonClicked();
79  void onHelpPushButtonClicked();
80 
81  private:
82 
83  std::auto_ptr<Ui::TrajectoryDialogForm> m_ui; //!< The dialog form.
84  std::auto_ptr<TemporalPropertiesWidget> m_propertiesWidget; //!< The widget used to configure the general TrajectoryLayer's properties
85  std::auto_ptr<TrajectoryPropertiesWidget> m_uniquePropWidget; //!< The widget used to configure the unique TrajectoryLayer's properties
86  };
87  } // end namespace widgets
88  } // end namespace qt
89 } // end namespace te
90 
91 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_TRAJECTORYDIALOG_H
A Dialog used to generate a new TrajectoryLayer.
std::auto_ptr< TemporalPropertiesWidget > m_propertiesWidget
The widget used to configure the general TrajectoryLayer's properties.
std::auto_ptr< Ui::TrajectoryDialogForm > m_ui
The dialog form.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:66
std::auto_ptr< TrajectoryPropertiesWidget > m_uniquePropWidget
The widget used to configure the unique TrajectoryLayer's properties.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr