OgrPlugin Class Reference

#include <plugin.h>

Inheritance diagram for OgrPlugin:

Inheritance graph
[legend]
Collaboration diagram for OgrPlugin:

Collaboration graph
[legend]
List of all members.

Detailed Description

Translates vector layers between formats supported by OGR library.

Definition at line 33 of file plugin.h.

Public Slots

virtual void initGui ()
 Initialize the GUI interface for the plugin.
void run ()
 Slot called when the menu item is triggered.
void unload ()
 Unload the plugin by cleaning up the GUI.
void help ()
 show the help document

Public Member Functions

 OgrPlugin (QgisInterface *theInterface)
 Constructor for a plugin.
virtual ~OgrPlugin ()
 Destructor.

Private Attributes

int mPluginType
QgisInterfacemQGisIface
 Pointer to the QGIS interface object.
QAction * mQActionPointer
 pointer to the qaction for this plugin


Constructor & Destructor Documentation

OgrPlugin::OgrPlugin ( QgisInterface theInterface  ) 

Constructor for a plugin.

The QgisInterface pointer is passed by QGIS when it attempts to instantiate the plugin.

Parameters:
theInterface Pointer to the QgisInterface object.

Definition at line 42 of file plugin.cpp.

References mQGisIface.

OgrPlugin::~OgrPlugin (  )  [virtual]

Destructor.

Definition at line 50 of file plugin.cpp.


Member Function Documentation

void OgrPlugin::initGui (  )  [virtual, slot]

Initialize the GUI interface for the plugin.

This is only called once when the plugin is added to the plugin registry in the QGIS application.

Implements QgisPlugin.

Definition at line 54 of file plugin.cpp.

References QgisInterface::addPluginToMenu(), QgisInterface::addToolBarIcon(), mQActionPointer, mQGisIface, and run().

void OgrPlugin::run (  )  [slot]

Slot called when the menu item is triggered.

If you created more menu items / toolbar buttons in initiGui, you should create a separate handler for each action - this single run() method will not be enough.

Definition at line 76 of file plugin.cpp.

References QgisInterface::mainWindow(), QgisGui::ModalDialogFlags, and mQGisIface.

Referenced by initGui().

void OgrPlugin::unload (  )  [virtual, slot]

Unload the plugin by cleaning up the GUI.

Implements QgisPlugin.

Definition at line 85 of file plugin.cpp.

References mQActionPointer, mQGisIface, QgisInterface::removePluginMenu(), and QgisInterface::removeToolBarIcon().

void OgrPlugin::help (  )  [slot]

show the help document

Definition at line 71 of file plugin.cpp.


Member Data Documentation

int OgrPlugin::mPluginType [private]

Definition at line 85 of file plugin.h.

QgisInterface* OgrPlugin::mQGisIface [private]

Pointer to the QGIS interface object.

Definition at line 88 of file plugin.h.

Referenced by initGui(), OgrPlugin(), run(), and unload().

QAction* OgrPlugin::mQActionPointer [private]

pointer to the qaction for this plugin

Definition at line 91 of file plugin.h.

Referenced by initGui(), and unload().


The documentation for this class was generated from the following files:
Generated on Tue Oct 28 16:51:53 2008 for Quantum GIS API Documentation by  doxygen 1.5.1