Loading...
Searching...
No Matches
PhotoViewerDialog.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/photolayer/PhotoViewerDialog.h
22
23 \brief This file has the PhotoViewerDialog class.
24*/
25
26#ifndef __TE_QT_PLUGINS_PHOTOLAYER_INTERNAL_PHOTOVIEWERDIALOG_H
27#define __TE_QT_PLUGINS_PHOTOLAYER_INTERNAL_PHOTOVIEWERDIALOG_H
28
29// TerraLib
30#include "Config.h"
31
32// STL
33#include <memory>
34
35// Qt
36#include <QDialog>
37#include <QListWidgetItem>
38
39namespace Ui { class PhotoViewerDialogForm; }
40
41namespace te
42{
43 namespace qt
44 {
45 namespace widgets
46 {
47 class MultiThreadMapDisplay;
48 class PanMiddleClick;
49 class ZoomWheel;
50 }
51
52 namespace plugins
53 {
54 namespace photolayer
55 {
56 /*!
57 \class DataViewerDialog
58
59 \brief This class is used to view a geographic data.
60 */
61 class PhotoViewerDialog : public QDialog
62 {
63 Q_OBJECT
64
65 public:
66
67 PhotoViewerDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
68
70
71 public:
72
73 void setListOfFiles(std::vector<std::string>& files);
74
75 protected:
76
77 void setURI(const std::string& uri);
78
79 protected slots:
80
81 void onItemActivated(QListWidgetItem *item);
82
83 protected:
84
85 void resizeEvent(QResizeEvent *) override;
86
87 private:
88
92
93 std::unique_ptr<Ui::PhotoViewerDialogForm> m_ui;
94 };
95
96 } // end namespace photolayer
97 } // end namespace plugins
98 } // end namespace qt
99} // end namespace te
100
101#endif // __TE_QT_PLUGINS_PHOTOLAYER_INTERNAL_PHOTOVIEWERDIALOG_H
102
void onItemActivated(QListWidgetItem *item)
te::qt::widgets::MultiThreadMapDisplay * m_mapDisplay
void setListOfFiles(std::vector< std::string > &files)
std::unique_ptr< Ui::PhotoViewerDialogForm > m_ui
void resizeEvent(QResizeEvent *) override
te::qt::widgets::ZoomWheel * m_zoomTool
Zoom tool.
PhotoViewerDialog(QWidget *parent=0, Qt::WindowFlags f=0)
te::qt::widgets::PanMiddleClick * m_panTool
Pan tool.
A multi thread Qt4 widget to control the display of a set of layers.
This class implements a concrete tool to geographic pan operation with mouse middle click.
This class implements a concrete tool to geographic zoom operation using the mouse wheel.
Definition: ZoomWheel.h:50
TerraLib.
#define slots
Proxy configuration file for TerraView (see terraview_config.h).