All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
VectorizationWizard.h
Go to the documentation of this file.
1 /* Copyright (C) 2011-2012 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_VECTORIZATIONWIZARD_H
22 #define TE_QT_WIDGETS_VECTORIZATIONWIZARD_H
23 
24 //TerraLib
25 #include "../Config.h"
26 #include "../../../maptools/AbstractLayer.h"
27 
28 //Qt
29 #include <QWizard>
30 
31 //STL
32 #include <memory>
33 
34 namespace te
35 {
36  namespace qt
37  {
38  namespace widgets
39  {
40  //Forward declarations
41  class VectorizationWizardPage;
42  class LayerSearchWizardPage;
43 
44  class TEQTWIDGETSEXPORT VectorizationWizard : public QWizard
45  {
46  public:
47 
48  VectorizationWizard(QWidget* parent=0);
49 
51 
52  bool validateCurrentPage();
53 
54  void setList(std::list<te::map::AbstractLayerPtr>& layerList);
55 
56  te::map::AbstractLayerPtr getOutputLayer();
57 
58  protected:
59 
60  void addPages();
61 
62  bool execute();
63 
64  private:
65 
66  std::auto_ptr<te::qt::widgets::VectorizationWizardPage> m_vectorPage;
67  std::auto_ptr<te::qt::widgets::LayerSearchWizardPage> m_layerSearchPage;
68 
70  };
71 
72  } // namespace widgets
73  } // namespace qt
74 } // namespace te
75 
76 #endif // TE_QT_WIDGETS_VECTORIZATIONWIZARD_H
te::map::AbstractLayerPtr m_outputLayer
std::auto_ptr< te::qt::widgets::VectorizationWizardPage > m_vectorPage
std::auto_ptr< te::qt::widgets::LayerSearchWizardPage > m_layerSearchPage
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:66
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr