BuilderGatheringLayersWizardPage.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/BuilderGatheringLayersWizardPage.h
22 
23 \brief This interface is used to get the gathering layers parameters for GeoPackage Builder wizard operation.
24 */
25 
26 #ifndef __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_BUILDERGATHERINGLAYERSWIZARDPAGE_H
27 #define __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_BUILDERGATHERINGLAYERSWIZARDPAGE_H
28 
29 // TerraLib
30 #include "../Config.h"
31 
32 // STL
33 #include <memory>
34 
35 // Qt
36 #include <QWizard>
37 
38 namespace te
39 {
40  namespace qt
41  {
42  namespace widgets
43  {
44  class DoubleListWidget;
45  }
46 
47  namespace plugins
48  {
49  namespace terramobile
50  {
51  /*!
52  \class BuilderGatheringLayersWizardPage
53 
54  \brief This interface is used to get the gathering layers parameters for GeoPackage Builder wizard operation.
55  */
56  class BuilderGatheringLayersWizardPage : public QWizardPage
57  {
58  Q_OBJECT
59 
60  public:
61 
62  BuilderGatheringLayersWizardPage(QWidget* parent = 0);
63 
65 
66  public:
67 
68  bool isComplete() const;
69 
71 
72  void setLayerList(std::vector<std::string> names);
73 
74  void setSelectedLayers(std::vector<std::string> names);
75 
76  public slots:
77 
78  void onItemChanged();
79 
80  private:
81 
82  std::auto_ptr<te::qt::widgets::DoubleListWidget> m_widget;
83 
84  std::vector<std::string> m_layerNames;
85  };
86  } // end namespace thirdParty
87  } // end namespace plugins
88  } // end namespace qt
89 } // end namespace te
90 
91 #endif // __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_BUILDERGATHERINGLAYERSWIZARDPAGE_H
92 
te::qt::widgets::DoubleListWidget * getWidget() const
This interface is used to get the gathering layers parameters for GeoPackage Builder wizard operation...
URI C++ Library.
void setLayerList(std::vector< std::string > names)
void setSelectedLayers(std::vector< std::string > names)