All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TL4LayerSelectionWizardPage.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/plugins/TL4LayerSelectionWizardPage.h
22 
23  \brief A wizard page for selecting the TerraLib 4.x.
24 */
25 
26 #ifndef __TERRALIB_PLUGINS_TERRALIB4_INTERNAL_TL4LAYERSELECTIONWIZARDPAGE_H
27 #define __TERRALIB_PLUGINS_TERRALIB4_INTERNAL_TL4LAYERSELECTIONWIZARDPAGE_H
28 
29 // TerraLib
30 #include "Config.h"
31 
32 // STL
33 #include <memory>
34 
35 // Qt
36 #include <QWizardPage>
37 
38 // Forward declaration
39 namespace Ui { class TL4LayerSelectionWizardPageForm; }
40 
41 class QListWidgetItem;
42 
43 namespace te
44 {
45  namespace qt
46  {
47  namespace plugins
48  {
49  namespace terralib4
50  {
51  class TL4LayerSelectionWizardPage : public QWizardPage
52  {
53  Q_OBJECT
54 
55  private:
56 
57  /*!
58  \enum NodeType
59 
60  \brief Auxiliary internal enumeration to control the StyleExplorer tree nodes.
61  */
62  enum NodeType
63  {
64  LAYER = 0, /*!< TerraLib4 Layer. */
65  THEME = 1, /*!< TerraLib4 Theme. */
66  TABLE = 2, /*!< TerraLib4 Table. */
67  RASTER = 3 /*!< TerraLib4 Raster. */
68  };
69 
70  public:
71 
72  TL4LayerSelectionWizardPage(QWidget* parent = 0);
73 
75 
76  void setDatasets(std::vector<std::string> layers,
77  std::vector<std::string> tables,
78  std::vector<std::string> rasters);
79 
80  void setTL4Layers(std::vector<std::string> layers);
81 
82  void setTL4Tables(std::vector<std::string> tables);
83 
84  void setTL4Rasters(std::vector<std::string> rasters);
85 
86  std::vector<std::string> getChecked();
87 
88  std::vector<QListWidgetItem*> getCheckedItems();
89 
90  bool hasChecked() const;
91 
92  protected slots:
93 
95 
97 
98  private:
99 
100  std::auto_ptr<Ui::TL4LayerSelectionWizardPageForm> m_ui;
101  };
102  } // end namespace terralib4
103  } // end namespace plugins
104  } // end namespace qt
105 } // end namespace te
106 
107 #endif // __TERRALIB_PLUGINS_TERRALIB4_INTERNAL_TL4LAYERSELECTIONWIZARDPAGE_H
std::auto_ptr< Ui::TL4LayerSelectionWizardPageForm > m_ui
void setDatasets(std::vector< std::string > layers, std::vector< std::string > tables, std::vector< std::string > rasters)
NodeType
Auxiliary internal enumeration to control the StyleExplorer tree nodes.