~ubuntu-branches/ubuntu/hardy/qgis/hardy

« back to all changes in this revision

Viewing changes to src/plugins/delimited_text/qgsdelimitedtextplugin.h

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          qgsdelimitedtextplugin.h 
 
3
 Functions:
 
4
                             -------------------
 
5
    begin                : Jan 21, 2004
 
6
    copyright            : (C) 2004 by Tim Sutton
 
7
    email                : tim@linfiniti.com
 
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: qgsdelimitedtextplugin.h 5450 2006-05-14 04:54:03Z g_j_m $ */
 
20
#ifndef PLUGIN
 
21
#define PLUGIN
 
22
#include "../qgisplugin.h"
 
23
#include <qwidget.h>
 
24
#include "ui_qgsdelimitedtextpluginguibase.h"
 
25
#include "qgisapp.h"
 
26
 
 
27
/**
 
28
* \class QgsDelimitedTextPlugin
 
29
* \brief OpenModeller plugin for QGIS
 
30
*
 
31
*/
 
32
class QgsDelimitedTextPlugin:public QObject, public QgisPlugin, private Ui::QgsDelimitedTextPluginGuiBase
 
33
{
 
34
  Q_OBJECT public:
 
35
      /** 
 
36
       * Constructor for a plugin. The QgisApp and QgisIface pointers are passed by 
 
37
       * QGIS when it attempts to instantiate the plugin.
 
38
       * @param qgis Pointer to the QgisApp object
 
39
       * @param qI Pointer to the QgisIface object. 
 
40
       */
 
41
      QgsDelimitedTextPlugin(QgisApp * , QgisIface * );
 
42
  /**
 
43
   * Virtual function to return the name of the plugin. The name will be used when presenting a list 
 
44
   * of installable plugins to the user
 
45
   */
 
46
  virtual QString name();
 
47
  /**
 
48
   * Virtual function to return the version of the plugin. 
 
49
   */
 
50
  virtual QString version();
 
51
  /**
 
52
   * Virtual function to return a description of the plugins functions 
 
53
   */
 
54
  virtual QString description();
 
55
  /**
 
56
   * Return the plugin type
 
57
   */
 
58
  virtual int type();
 
59
  //! Destructor
 
60
  virtual ~ QgsDelimitedTextPlugin();
 
61
  public slots:
 
62
  //! init the gui
 
63
  virtual void initGui();
 
64
  //! Show the dialog box
 
65
  void run();
 
66
  //! Add a vector layer given vectorLayerPath, baseName, providerKey ("ogr" or "postgres");
 
67
  void drawVectorLayer(QString,QString,QString);
 
68
  //! unload the plugin
 
69
  void unload();
 
70
  //! show the help document
 
71
  void help();
 
72
    private:
 
73
 
 
74
 
 
75
  //! Name of the plugin
 
76
  QString pluginNameQString;
 
77
  //! Version
 
78
  QString pluginVersionQString;
 
79
  //! Descrption of the plugin
 
80
  QString pluginDescriptionQString;
 
81
  //! Plugin type as defined in Plugin::PLUGINTYPE
 
82
  int pluginType;
 
83
  //! Pionter to QGIS main application object
 
84
  QgisApp *qgisMainWindowPointer;
 
85
  //! Pointer to the QGIS interface object
 
86
  QgisIface *qGisInterface;
 
87
  //! Pointer to the QAction object used in the menu and toolbar
 
88
  QAction *myQActionPointer;
 
89
};
 
90
 
 
91
#endif