Loading...
Searching...
No Matches
GeoPackageBuilderWizard.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 \file src/terraMobilePlugin/qt/GeoPackageBuilderWizard.h
22
23 \brief This interface is used to get the input parameters for GeoPackage Builder wizard operation.
24*/
25
26#ifndef __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_GEOPACKAGEBUILDERWIZARD_H
27#define __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_GEOPACKAGEBUILDERWIZARD_H
28
29// TerraLib
30#include "../../../../maptools/AbstractLayer.h"
31#include "../Config.h"
32
33// STL
34#include <memory>
35
36// Qt
37#include <QWizard>
38
39namespace te
40{
41 namespace qt
42 {
43 namespace plugins
44 {
45 namespace terramobile
46 {
47 class BuilderInputLayersWizardPage;
48 class BuilderGatheringLayersWizardPage;
49 class BuilderFormsWizardPage;
50 class BuilderOutputWizardPage;
51
52 /*!
53 \class GeoPackageBuilderWizard
54
55 \brief This interface is used to get the input parameters for GeoPackage Builder wizard operation.
56 */
57 class GeoPackageBuilderWizard : public QWizard
58 {
59 Q_OBJECT
60
61 public:
62
63 GeoPackageBuilderWizard(QWidget* parent = 0, Qt::WindowFlags f = 0);
64
66
67 public:
68
69 void setLayerList(std::list<te::map::AbstractLayerPtr> list);
70
71 void setExtent(const te::gm::Envelope& extent);
72
73 void setSRID(int srid = 0);
74
75 protected:
76
77 virtual bool validateCurrentPage();
78
79 void addPages();
80
81 bool execute();
82
83 std::list<te::map::AbstractLayerPtr> getGatheringLayers();
84
85 std::list<te::map::AbstractLayerPtr> getInputLayers();
86
87 private:
88
89 std::list<te::map::AbstractLayerPtr> m_list;
91 int m_srid;
92
93 std::auto_ptr<te::qt::plugins::terramobile::BuilderInputLayersWizardPage> m_inputLayersPage;
94 std::auto_ptr<te::qt::plugins::terramobile::BuilderGatheringLayersWizardPage> m_gatheringLayersPage;
95 std::auto_ptr<te::qt::plugins::terramobile::BuilderFormsWizardPage> m_formsPage;
96 std::auto_ptr<te::qt::plugins::terramobile::BuilderOutputWizardPage> m_outputPage;
97 };
98 } // end namespace terramobile
99 } // end namespace plugins
100 } // end namespace qt
101} // end namespace te
102
103#endif // __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_GEOPACKAGEBUILDERWIZARD_H
104
An Envelope defines a 2D rectangular region.
Definition: Envelope.h:52
This interface is used to get the input parameters for GeoPackage Builder wizard operation.
std::auto_ptr< te::qt::plugins::terramobile::BuilderOutputWizardPage > m_outputPage
std::list< te::map::AbstractLayerPtr > getInputLayers()
void setLayerList(std::list< te::map::AbstractLayerPtr > list)
GeoPackageBuilderWizard(QWidget *parent=0, Qt::WindowFlags f=0)
std::auto_ptr< te::qt::plugins::terramobile::BuilderInputLayersWizardPage > m_inputLayersPage
std::auto_ptr< te::qt::plugins::terramobile::BuilderFormsWizardPage > m_formsPage
void setExtent(const te::gm::Envelope &extent)
std::auto_ptr< te::qt::plugins::terramobile::BuilderGatheringLayersWizardPage > m_gatheringLayersPage
std::list< te::map::AbstractLayerPtr > getGatheringLayers()
TerraLib.