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) 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 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  };
68 
69  public:
70 
71  TL4LayerSelectionWizardPage(QWidget* parent = 0);
72 
74 
75  void setDatasets(std::vector<std::string> layers,
76  std::vector<std::string> tables);
77 
78  void setTL4Layers(std::vector<std::string> layers);
79 
80  void setTL4Tables(std::vector<std::string> tables);
81 
82  std::vector<std::string> getChecked();
83 
84  std::vector<QListWidgetItem*> getCheckedItems();
85 
86  bool hasChecked() const;
87 
88  protected slots:
89 
91 
93 
94  private:
95 
96  std::auto_ptr<Ui::TL4LayerSelectionWizardPageForm> m_ui;
97  };
98  } // end namespace terralib4
99  } // end namespace plugins
100  } // end namespace qt
101 } // end namespace te
102 
103 #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)
NodeType
Auxiliary internal enumeration to control the StyleExplorer tree nodes.