Loading...
Searching...
No Matches
QueryLayerBuilderWizard.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/widgets/query/QueryLayerBuilderWizard.h
22
23 \brief A Qt dialog that allows users to create query builder based on TerraLib query framework.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_QUERYLAYERBUILDERWIZARD_H
27#define __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_QUERYLAYERBUILDERWIZARD_H
28
29// TerraLib
30#ifndef Q_MOC_RUN
31#include "../../../maptools/AbstractLayer.h"
32#include "../../../dataaccess/datasource/DataSource.h"
33#include "../../../maptools/AbstractLayer.h"
34#endif
35#include "../Config.h"
36
37// Qt
38#include <QWizard>
39
40namespace te
41{
42 namespace da { class Select; }
43 namespace qt
44 {
45 namespace widgets
46 {
47 class DataSourceSelectorWizardPage;
48 class DataSetWizardPage;
49 class FieldsWizardPage;
50 class GroupByWizardPage;
51 class LayerAttributesWizardPage;
52 class OrderByWizardPage;
53 class WhereClauseWizardPage;
54
56 {
57 Q_OBJECT
58
59 public:
60
61 QueryLayerBuilderWizard(QWidget* parent);
62
64
65 virtual bool validateCurrentPage();
66
68
69 void setLayerList(std::list<te::map::AbstractLayerPtr>& layerList);
70
72
74
75 protected:
76
77 void addPages();
78
80
82
84
85 private:
86
87 std::unique_ptr<te::qt::widgets::DataSourceSelectorWizardPage> m_dataSourcePage;
88 std::unique_ptr<te::qt::widgets::DataSetWizardPage> m_dataSetPage;
89 std::unique_ptr<te::qt::widgets::FieldsWizardPage> m_fieldPage;
90 std::unique_ptr<te::qt::widgets::GroupByWizardPage> m_groupByPage;
91 std::unique_ptr<te::qt::widgets::LayerAttributesWizardPage> m_layerAttrPage;
92 std::unique_ptr<te::qt::widgets::OrderByWizardPage> m_orderByPage;
93 std::unique_ptr<te::qt::widgets::WhereClauseWizardPage> m_whereClausePage;
94
96 };
97 } // end namespace widgets
98 } // end namespace qt
99} // end namespace te
100
101#endif // __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_QUERYLAYERBUILDERWIZARD_H
A Select models a query to be used when retrieving data from a DataSource.
Definition: Select.h:67
void setLayerList(std::list< te::map::AbstractLayerPtr > &layerList)
std::unique_ptr< te::qt::widgets::WhereClauseWizardPage > m_whereClausePage
std::unique_ptr< te::qt::widgets::FieldsWizardPage > m_fieldPage
std::unique_ptr< te::qt::widgets::GroupByWizardPage > m_groupByPage
std::unique_ptr< te::qt::widgets::LayerAttributesWizardPage > m_layerAttrPage
std::unique_ptr< te::qt::widgets::OrderByWizardPage > m_orderByPage
std::unique_ptr< te::qt::widgets::DataSourceSelectorWizardPage > m_dataSourcePage
std::unique_ptr< te::qt::widgets::DataSetWizardPage > m_dataSetPage
te::map::AbstractLayerPtr getQueryLayer()
void setDataSource(const te::da::DataSourcePtr &ds)
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1449
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
TerraLib.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63