Guest User

Untitled

a guest
Apr 19th, 2010
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.46 KB | None | 0 0
  1. /***************************************************************************
  2.                           qgsspatialqueryplugin.h
  3.     A plugin that makes spatial queries on vector layers
  4.                              -------------------
  5.     begin                : Dec 29, 2009
  6.     copyright            : (C) 2009 by Diego Moreira And Luiz Motta
  7.     email                : moreira.geo at gmail.com And motta.luiz at gmail.comm
  8.  
  9.  ***************************************************************************/
  10.  
  11. /***************************************************************************
  12.  *                                                                         *
  13.  *   This program is free software; you can redistribute it and/or modify  *
  14.  *   it under the terms of the GNU General Public License as published by  *
  15.  *   the Free Software Foundation; either version 2 of the License, or     *
  16.  *   (at your option) any later version.                                   *
  17.  *                                                                         *
  18.  ***************************************************************************/
  19. /*  $Id: $ */
  20.  
  21. #ifndef SPATIALQUERYPLUGIN_H
  22. #define SPATIALQUERYPLUGIN_H
  23.  
  24. //
  25. //QGIS Includes
  26. //
  27. #include "qgisplugin.h"
  28.  
  29. class QgisInterface;
  30. class QgsSpatialQueryDialog;
  31.  
  32. //
  33. //QT Includes
  34. //
  35. #include <QIcon>
  36. #include <QObject>
  37. class QAction;
  38.  
  39.  
  40. /**
  41. * \class QgsSpatialQueryPlugin
  42. * \brief Spatial Query plugin for QGIS
  43. *
  44. */
  45. class QgsSpatialQueryPlugin: public QObject, public QgisPlugin
  46. {
  47.     Q_OBJECT
  48.     public:
  49.     /**
  50.     * \brief Constructor for a plugin. The QgisInterface pointer is passed by
  51.     * QGIS when it attempts to instantiate the plugin.
  52.     * \param iface Pointer to the QgisInterface object.
  53.     */
  54.     QgsSpatialQueryPlugin(QgisInterface* iface);
  55.     //! Destructor
  56.     ~QgsSpatialQueryPlugin();
  57.  
  58.     public slots:
  59.     //! init the gui
  60.     void initGui();
  61.     //! unload the plugin
  62.     void unload();
  63.     //! Show the dialog box
  64.     void run();
  65.     //! update the plugins theme when the app tells us its theme is changed
  66.     void setCurrentTheme( QString theThemeName );
  67.     QIcon getThemeIcon( const QString &theThemeName );
  68.  
  69.     private:
  70.  
  71.     QgsSpatialQueryDialog  *mDialog;
  72.     //! Pointer to the QgisInterface object
  73.     QgisInterface* mIface;
  74.     //! Pointer to the QAction used in the menu and on the toolbar
  75.     QAction* mSpatialQueryAction;
  76.  
  77.  
  78.     void MsgDEBUG(QString sMSg);
  79.  
  80. };
  81. #endif
Advertisement
Add Comment
Please, Sign In to add comment