3
** Author: Peter J. Ersts ( ersts at amnh.org )
4
** Creation Date: 2007-03-06
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
//This file was created using the plugin generator distributed with QGIS evis.h
29
//is based on and a modification of the default plugin.h file which carried the
31
/***************************************************************************
36
copyright : ( C ) 2004 by Tim Sutton
37
email : tim at linfiniti.com
38
***************************************************************************/
40
/***************************************************************************
42
* This program is free software; you can redistribute it and/or modify *
43
* it under the terms of the GNU General Public License as published by *
44
* the Free Software Foundation; either version 2 of the License, or *
45
* ( at your option ) any later version. *
47
***************************************************************************/
49
/***************************************************************************
50
* QGIS Programming conventions:
52
* mVariableName - a class level member variable
53
* sVariableName - a static class level member variable
54
* variableName( ) - accessor for a class member ( no 'get' in front of name )
55
* setVariableName( ) - mutator for a class member ( prefix with 'set' )
57
* Additional useful conventions:
59
* theVariableName - a method parameter ( prefix with 'the' )
60
* myVariableName - a locally declared variable within a method ( 'my' prefix )
62
* DO: Use mixed case variable names - myVariableName
63
* DON'T: separate variable names using underscores: my_variable_name ( NO! )
65
* **************************************************************************/
70
#include <QTemporaryFile>
74
#include <qgisplugin.h>
75
#include <qgisinterface.h>
77
//forward declarations
80
class eVisEventIdTool;
84
* \brief eVis plugin for QGIS
85
* This plugin allows for generic database connectivity and also provides a browser in which
86
* users can load and view photos referenced as attributes for a feature. The browser also
87
* has the ability to interact with the map canvas and display an arrow point in the direction
88
* in which a photograph was taken
90
class eVis: public QObject, public QgisPlugin
96
eVis( QgisInterface * theInterface );
103
virtual void initGui( );
105
//! Main button actions
106
void launchDatabaseConnection( );
107
void launchEventIdTool( );
108
void launchEventBrowser( );
110
//! unload the plugin
113
//! show the help document
116
//! Add a vector layer given vectorLayerPath, baseName, providerKey ( "ogr" or "postgres" );
117
void drawVectorLayer( QString, QString, QString );
121
QgisInterface *mQGisIface;
123
QAction* mDatabaseConnectionActionPointer;
125
QAction* mEventIdToolActionPointer;
127
QAction* mEventBrowserActionPointer;
129
eVisEventIdTool* mIdTool;
131
//! List of pointers to temporary files, files are created by database queries */
132
QList<QTemporaryFile*> mTemporaryFileList;