Loading...
Searching...
No Matches
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
39namespace Ui { class TL4LayerSelectionWizardPageForm; }
40
41class QListWidgetItem;
42
43namespace 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 */
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 std::vector<std::pair<std::string, std::string> > rasterFiles);
80
81 void setTL4Layers(std::vector<std::string> layers);
82
83 void setTL4Tables(std::vector<std::string> tables);
84
85 void setTL4Rasters(std::vector<std::string> rasters);
86
87 void setTL4RasterFiles(std::vector<std::pair<std::string, std::string> > rasterFiles);
88
89 std::vector<std::string> getChecked();
90
91 std::vector<QListWidgetItem*> getCheckedItems();
92
93 bool hasChecked() const;
94
95 protected slots:
96
98
100
101 private:
102
103 std::unique_ptr<Ui::TL4LayerSelectionWizardPageForm> m_ui;
104 };
105 } // end namespace terralib4
106 } // end namespace plugins
107 } // end namespace qt
108} // end namespace te
109
110#endif // __TERRALIB_PLUGINS_TERRALIB4_INTERNAL_TL4LAYERSELECTIONWIZARDPAGE_H
NodeType
Auxiliary internal enumeration to control the StyleExplorer tree nodes.
void setTL4Layers(std::vector< std::string > layers)
std::unique_ptr< Ui::TL4LayerSelectionWizardPageForm > m_ui
void setTL4Tables(std::vector< std::string > tables)
void setTL4Rasters(std::vector< std::string > rasters)
void setTL4RasterFiles(std::vector< std::pair< std::string, std::string > > rasterFiles)
std::vector< QListWidgetItem * > getCheckedItems()
void setDatasets(std::vector< std::string > layers, std::vector< std::string > tables, std::vector< std::string > rasters, std::vector< std::pair< std::string, std::string > > rasterFiles)
TerraLib.
Definition: Band.h:35
#define slots
Proxy configuration file for TerraView (see terraview_config.h).