RasterEditWizard.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/rp/RasterEditWizard.h
22 
23  \brief A Qt dialog that allows raster data edition.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_RP_INTERNAL_RASTEREDIT_H
27 #define __TERRALIB_QT_WIDGETS_RP_INTERNAL_RASTEREDIT_H
28 
29 // TerraLib
30 #ifndef Q_MOC_RUN
31 #include "../../../maptools/AbstractLayer.h"
32 #include "../../../qt/widgets/canvas/MapDisplay.h"
33 #include "../../../qt/widgets/layer/explorer/LayerItemView.h"
34 #endif
35 #include "../Config.h"
36 
37 // STL
38 #include <memory>
39 
40 // Qt
41 #include <QWizard>
42 #include <QActionGroup>
43 
44 namespace te
45 {
46  namespace qt
47  {
48  namespace widgets
49  {
50  class RasterEditWizardPage;
51  class LayerSearchWizardPage;
52  class RasterInfoWizardPage;
53 
54  /*!
55  \class RasterEditWizard
56 
57  \brief This class is GUI used to define the raster editi operation.
58  */
59  class TEQTWIDGETSEXPORT RasterEditWizard : public QWizard
60  {
61  Q_OBJECT
62 
63  public:
64 
65  RasterEditWizard(QWidget* parent, te::qt::widgets::MapDisplay* mainMapDispPtr,
66  te::qt::widgets::LayerItemView* mainLayerExplorerPtr );
67 
69 
70  public:
71 
72  virtual bool validateCurrentPage();
73 
74  void setList(std::list<te::map::AbstractLayerPtr>& layerList);
75 
76  void setLayer(te::map::AbstractLayerPtr layer);
77 
78  void setActionGroup(QActionGroup* actionGroup);
79 
80  te::map::AbstractLayerPtr getOutputLayer();
81 
82  void onMapDisplayExtentChanged();
83 
84  protected:
85 
86  void addPages();
87 
88  bool execute();
89 
90  protected slots:
91 
92  void onPageChanged(int index);
93 
94  signals:
95 
96  void addLayer(te::map::AbstractLayerPtr layer);
97 
98  private:
99 
102  std::unique_ptr<te::qt::widgets::RasterEditWizardPage> m_rasterEditPage;
103  std::unique_ptr<te::qt::widgets::LayerSearchWizardPage> m_layerSearchPage;
104  std::unique_ptr<te::qt::widgets::RasterInfoWizardPage> m_rasterInfoPage;
106  };
107  } // end namespace widgets
108  } // end namespace qt
109 } // end namespace te
110 
111 #endif // __TERRALIB_QT_WIDGETS_RP_INTERNAL_RASTEREDIT_H
#define slots
te::qt::widgets::MapDisplay * m_mainMapDispPtr
A widget to control the display of a set of layers.
Definition: MapDisplay.h:71
std::unique_ptr< te::qt::widgets::RasterEditWizardPage > m_rasterEditPage
TerraLib.
This class is GUI used to define the raster editi operation.
A specialization of QTreeView for manipulate layers.
Definition: LayerItemView.h:78
te::qt::widgets::LayerItemView * m_mainLayerExplorerPtr
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
te::map::AbstractLayerPtr m_outputLayer
std::unique_ptr< te::qt::widgets::RasterInfoWizardPage > m_rasterInfoPage
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
std::unique_ptr< te::qt::widgets::LayerSearchWizardPage > m_layerSearchPage