2
** File: eviseventidtool.h
3
** Author: Peter J. Ersts ( ersts at amnh.org )
4
** Creation Date: 2007-03-19
6
** Copyright ( c ) 2007, American Museum of Natural History. All rights reserved.
8
** This library/program is free software; you can redistribute it
9
** and/or modify it under the terms of the GNU Library General Public
10
** License as published by the Free Software Foundation; either
11
** version 2 of the License, or ( at your option ) any later version.
13
** This library/program is distributed in the hope that it will be useful,
14
** but WITHOUT ANY WARRANTY; without even the implied warranty of
15
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
** Library General Public License for more details.
18
** This work was made possible through a grant by the the John D. and
19
** Catherine T. MacArthur Foundation. Additionally, this program was prepared by
20
** the American Museum of Natural History under award No. NA05SEC46391002
21
** from the National Oceanic and Atmospheric Administration, U.S. Department
22
** of Commerce. The statements, findings, conclusions, and recommendations
23
** are those of the author( s ) and do not necessarily reflect the views of the
24
** National Oceanic and Atmospheric Administration or the Department of Commerce.
28
#ifndef EVISEVENTIDTOOL_H
29
#define EVISEVENTIDTOOL_H
31
#include <QMouseEvent>
34
#include "qgsmaplayer.h"
35
#include "qgsmaptool.h"
36
#include "qgsmapcanvas.h"
39
#include "evisgenericeventbrowsergui.h"
42
* \class eVisEventIdTool
43
* \brief Map tool for launching event browser
44
* The eVisEventIdTool is an id style map tool that is used to select point and launch the generic event browser
45
* to view the associated attributes for each selected feature, specifically features with associated photographic data
47
class eVisEventIdTool : public QgsMapTool
51
/** \brief Constructor */
52
eVisEventIdTool( QgsMapCanvas* );
54
/** \brief Method to handle mouse release, i.e., select, event */
55
void canvasReleaseEvent( QMouseEvent* );
59
/** \brief Pointer to a generic event browser */
60
eVisGenericEventBrowserGui* mBrowser;
62
/** \brief Selection routine called by the mouse release event */
63
void select( QgsPoint );