CheckGeomValidityDialog.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/CheckGeomValidityDialog.h
22 
23 \brief A dialog used to check geometries validity.
24 */
25 
26 #ifndef __TERRALIB_VP_INTERNAL_CHECKGEOMVALIDITYDIALOG_H
27 #define __TERRALIB_VP_INTERNAL_CHECKGEOMVALIDITYDIALOG_H
28 
29 // TerraLib
30 #include "../../maptools/AbstractLayer.h"
31 #include "../Config.h"
32 
33 #include "../../qt/widgets/canvas/MapDisplay.h"
34 
35 // Qt
36 #include <QDialog>
37 #include <QTableWidgetItem>
38 
39 namespace Ui { class CheckGeomValidityDialogForm; }
40 
41 namespace te
42 {
43  namespace gm
44  {
45  struct Coord2D;
46  }
47 
48  namespace vp
49  {
50  /*!
51  \class CheckGeomValidityDialog
52 
53  \brief A dialog used to check geometries validity.
54  */
55  class TEVPEXPORT CheckGeomValidityDialog : public QDialog
56  {
57  Q_OBJECT
58 
59  public:
60 
61  CheckGeomValidityDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
62 
63  /*! \brief Destructor. */
65 
66  void setLayers(std::list<te::map::AbstractLayerPtr> layers, te::map::AbstractLayerPtr selectedLayer = 0);
67 
68  void setMapDisplay(te::qt::widgets::MapDisplay* md);
69 
70  private:
71 
72  void drawMark();
73 
74  protected slots:
75 
76  void onVerifyPushButtonClicked();
77 
78  void onFixPushButtonClicked();
79 
80  void onTableWidgetItemDoubleClicked(QTableWidgetItem* item);
81 
82  void onExtentChanged();
83 
84  private:
85 
86  std::auto_ptr<Ui::CheckGeomValidityDialogForm> m_ui;
87 
89 
91 
92  std::unique_ptr<te::gm::Point> m_currentCoord;
93 
94  };
95  } // end namespace vp
96 } // end namespace te
97 
98 #endif // __TERRALIB_VP_INTERNAL_CHECKGEOMVALIDITYDIALOG_H
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
std::auto_ptr< Ui::CheckGeomValidityDialogForm > m_ui
std::unique_ptr< te::gm::Point > m_currentCoord
A widget to control the display of a set of layers.
Definition: MapDisplay.h:69
te::qt::widgets::MapDisplay * m_mapDisplay
A dialog used to check geometries validity.
URI C++ Library.
te::map::AbstractLayerPtr m_currentLayer
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr