Loading...
Searching...
No Matches
MultipartToSinglepartDialog.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/vp/qt/MultipartToSinglepartDialog.h
22
23 \brief A Multipart to Singlepart operation dialog
24*/
25
26#ifndef __TERRALIB_VP_INTERNAL_MULTIPARTTOSINGLEPARTDIALOG_H
27#define __TERRALIB_VP_INTERNAL_MULTIPARTTOSINGLEPARTDIALOG_H
28
29// TerraLib
30#ifndef Q_MOC_RUN
31#include "../../dataaccess/datasource/DataSourceInfo.h"
32#include "../../datatype/Property.h"
33#include "../../maptools/AbstractLayer.h"
34#endif
35#include "../../statistics/core/Enums.h"
36#include "../Config.h"
37#include "../Enums.h"
38
39// STL
40#include <list>
41#include <map>
42#include <memory>
43
44// Qt
45#include <QDialog>
46
47namespace Ui { class MultipartToSinglepartDialogForm; }
48
49// Forward declarations
50class QListWidgetItem;
51class QModelIndex;
52class QTreeWidgetItem;
53
54namespace te
55{
56 namespace vp
57 {
58// Forward declarations
59 class LayerTreeModel;
60
62 {
63 Q_OBJECT
64
65 public:
66
67 MultipartToSinglepartDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
68
70
71 /*!
72 \brief Set the layer that can be used
73
74 \param layers List of AbstractLayerPtr
75 */
76 void setLayers(std::list<te::map::AbstractLayerPtr> layers);
77
78 /*!
79 \brief Get the generated layer.
80
81 \return the generated layer.
82 */
84
85 protected slots:
86
87 void onLayerComboBoxChanged(int index);
88
90
92
94
96
97 private:
98
99 std::unique_ptr<Ui::MultipartToSinglepartDialogForm> m_ui;
100 te::da::DataSourceInfoPtr m_outputDatasource; //!< DataSource information.
101 std::list<te::map::AbstractLayerPtr> m_layers; //!< List of layers.
102 te::map::AbstractLayerPtr m_selectedLayer; //!< Layer used for operation
103 te::map::AbstractLayerPtr m_layer; //!< Generated Layer.
105 };
106 } // end namespace vp
107} // end namespace te
108
109#endif // __TERRALIB_VP_INTERNAL_MULTIPARTTOSINGLEPARTDIALOG_H
std::unique_ptr< Ui::MultipartToSinglepartDialogForm > m_ui
te::da::DataSourceInfoPtr m_outputDatasource
DataSource information.
te::map::AbstractLayerPtr m_selectedLayer
Layer used for operation.
te::map::AbstractLayerPtr getLayer()
Get the generated layer.
MultipartToSinglepartDialog(QWidget *parent=0, Qt::WindowFlags f=0)
std::list< te::map::AbstractLayerPtr > m_layers
List of layers.
te::map::AbstractLayerPtr m_layer
Generated Layer.
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
TerraLib.
#define slots
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61