Loading...
Searching...
No Matches
ShowValuesTool.h
Go to the documentation of this file.
1/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5TerraLib is free software: you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation, either version 3 of the License,
8or (at your option) any later version.
9
10TerraLib is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU Lesser General Public License for more details.
14
15You should have received a copy of the GNU Lesser General Public License
16along with TerraLib. See COPYING. If not, write to
17TerraLib Team at <terralib-team@terralib.org>.
18*/
19
20/*!
21\file terralib/qt/plugins/mnt/ShowValueTool.h
22
23\brief This file defines the Show MNT Values Tool
24*/
25
26#ifndef __TE_QT_PLUGINS_MNT_INTERNAL_SHOWVALUESTOOL_H
27#define __TE_QT_PLUGINS_MNT_INTERNAL_SHOWVALUESTOOL_H
28
29// TerraLib
30#include "../../af/BaseApplication.h"
31#include "../../../qt/widgets/tools/AbstractTool.h"
32
33#include "Config.h"
34
35namespace te
36{
37 namespace qt
38 {
39 namespace plugins
40 {
41 namespace mnt
42 {
44 {
45 Q_OBJECT
46
47 public:
48
50
52
53 void setAction(QAction* action) {
54 m_action = action;
55 };
56
57 /** @name AbstractTool Methods
58 * Methods related with tool behavior.
59 */
60 //@{
61
62 bool mouseMoveEvent(QMouseEvent* e);
63
64 //@}
65
66 private:
67
70 QAction* m_action;
71 };
72 }
73 }
74 }
75}
76
77#endif //__TE_QT_PLUGINS_MNT_INTERNAL_SHOWVALUESTOOL_H
This is the base class for layers.
Definition: AbstractLayer.h:78
te::map::AbstractLayer * m_layer
te::qt::af::BaseApplication * m_app
bool mouseMoveEvent(QMouseEvent *e)
This event handler can be reimplemented in a concrete tool class to receive mouse move events for the...
ShowValuesTool(te::qt::widgets::MapDisplay *display, te::qt::af::BaseApplication *app, QObject *parent=0)
This class defines an interface for objects that can receive application events and respond to them,...
Definition: AbstractTool.h:64
A widget to control the display of a set of layers.
Definition: MapDisplay.h:72
TerraLib.
Proxy configuration file for TerraView (see terraview_config.h).