~ubuntu-branches/ubuntu/maverick/qgis/maverick

« back to all changes in this revision

Viewing changes to src/plugins/evis/idtool/eviseventidtool.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
** File: eviseventidtool.h
 
3
** Author: Peter J. Ersts ( ersts at amnh.org )
 
4
** Creation Date: 2007-03-19
 
5
**
 
6
** Copyright ( c ) 2007, American Museum of Natural History. All rights reserved.
 
7
**
 
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.
 
12
**
 
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.
 
17
**
 
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.
 
25
**
 
26
**/
 
27
/*  $Id: $ */
 
28
#ifndef EVISEVENTIDTOOL_H
 
29
#define EVISEVENTIDTOOL_H
 
30
 
 
31
#include <QMouseEvent>
 
32
#include <QWidget>
 
33
 
 
34
#include "qgsmaplayer.h"
 
35
#include "qgsmaptool.h"
 
36
#include "qgsmapcanvas.h"
 
37
#include "qgspoint.h"
 
38
 
 
39
#include "evisgenericeventbrowsergui.h"
 
40
 
 
41
/**
 
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
 
46
*/
 
47
class eVisEventIdTool : public QgsMapTool
 
48
{
 
49
 
 
50
  public:
 
51
    /** \brief Constructor */
 
52
    eVisEventIdTool( QgsMapCanvas* );
 
53
 
 
54
    /** \brief Method to handle mouse release, i.e., select, event */
 
55
    void canvasReleaseEvent( QMouseEvent* );
 
56
 
 
57
  private:
 
58
 
 
59
    /** \brief Pointer to a generic event browser */
 
60
    eVisGenericEventBrowserGui* mBrowser;
 
61
 
 
62
    /** \brief Selection routine called by the mouse release event */
 
63
    void select( QgsPoint );
 
64
};
 
65
#endif