RasterStatisticsWizard.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 #ifndef TE_QT_WIDGETS_RASTERSTATISTICSWIZARD_H
22 #define TE_QT_WIDGETS_RASTERSTATISTICSWIZARD_H
23 
24 //TerraLib
25 #ifndef Q_MOC_RUN
26 #include "../../../dataaccess/datasource/DataSource.h"
27 #include "../../../maptools/AbstractLayer.h"
28 #include "../../../qt/widgets/canvas/MapDisplay.h"
29 #endif
30 #include "../Config.h"
31 
32 //Qt
33 #include <QWizard>
34 #include <QActionGroup>
35 
36 //STL
37 #include <memory>
38 
39 namespace te
40 {
41  namespace qt
42  {
43  namespace widgets
44  {
45  //Forward declarations
46  class RasterStatisticsWizardPage;
47  class LayerSearchWizardPage;
48 
50  {
51  Q_OBJECT
52 
53  public:
54 
55  RasterStatisticsWizard(QWidget* parent=0);
56 
58 
60 
61  void setList(std::list<te::map::AbstractLayerPtr>& layerList);
62 
64 
65  void setActionGroup(QActionGroup* actionGroup);
66 
67  protected:
68 
69  std::unique_ptr<te::qt::widgets::RasterStatisticsWizardPage>
71  std::unique_ptr<te::qt::widgets::LayerSearchWizardPage>
73 
74  void addPages();
75 
76  bool execute();
77 
78  protected slots:
79 
80  void onPageChanged(int index);
81 
82  };
83 
84  } // namespace widgets
85  } // namespace qt
86 } // namespace te
87 
88 #endif // TE_QT_WIDGETS_RASTERSTATISTICSWIZARD_H
A widget to control the display of a set of layers.
Definition: MapDisplay.h:72
void setActionGroup(QActionGroup *actionGroup)
void setList(std::list< te::map::AbstractLayerPtr > &layerList)
std::unique_ptr< te::qt::widgets::LayerSearchWizardPage > m_layerSearchPage
std::unique_ptr< te::qt::widgets::RasterStatisticsWizardPage > m_statsPage
void setMapDisplay(te::qt::widgets::MapDisplay *mapDisplay)
TerraLib.
#define slots
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63