This documentation is taken from CVS and is certain to be incomplete at any given time
#include <qgisiface.h>
Inheritance diagram for QgisIface:


Public Member Functions | |
| QgisIface (QgisApp *qgis=0, const char *name=0) | |
| ~QgisIface () | |
| void | zoomFull () |
| Zoom map to full extent. | |
| void | zoomPrevious () |
| Zoom map to previous extent. | |
| void | zoomActiveLayer () |
| Zoom to active layer. | |
| bool | addVectorLayer (QString vectorLayerPath, QString baseName, QString providerKey) |
| Add a vector layer. | |
| bool | addRasterLayer (QString rasterLayerPath) |
| Add a raster layer given its file name. | |
| bool | addRasterLayer (QgsRasterLayer *theRasterLayer, bool theForceRenderFlag=false) |
| Add a raster layer given a raster layer obj. | |
| bool | addProject (QString theProjectName) |
| Add a project. | |
| void | newProject (bool thePromptToSaveFlag=false) |
| Start a new blank project. | |
| QgsMapLayer * | activeLayer () |
| Get pointer to the active layer (layer selected in the legend). | |
| QString | activeLayerSource () |
| Get source of the active layer. | |
| int | addMenu (QString menuText, QPopupMenu *menu) |
| Add a menu to the main menu bar of the application, positioned to the left of Help. | |
| QPopupMenu * | getPluginMenu (QString menuName) |
| void | removePluginMenuItem (QString name, int menuId) |
| int | addToolBarIcon (QAction *qAction) |
| Add an icon to the plugins toolbar. | |
| void | removeToolBarIcon (QAction *qAction) |
| Remove an icon (action) from the plugin toolbar. | |
| void | openURL (QString url, bool useQgisDocDirectory=true) |
| std::map< QString, int > | menuMapByName () |
| std::map< int, QString > | menuMapById () |
| QgsMapCanvas * | getMapCanvas () |
| QgsMapLayerRegistry * | getLayerRegistry () |
| QgisApp * | app () |
Private Member Functions | |
| QgisIface (QgisIface const &) | |
| QgisIface aren't copied. | |
| QgisIface & | operator= (QgisIface const &) |
| QgisIface aren't copied. | |
Private Attributes | |
| QgisApp * | qgis |
| Pointer to the QgisApp object. | |
Only those functions "exposed" by QgisIface can be called from within a plugin.
Definition at line 32 of file qgisiface.h.
|
||||||||||||
|
Constructor.
|
|
|
|
|
|
QgisIface aren't copied.
|
|
|
Get pointer to the active layer (layer selected in the legend).
Implements QgisInterface. |
|
|
Get source of the active layer.
|
|
||||||||||||
|
Add a menu to the main menu bar of the application, positioned to the left of Help.
Implements QgisInterface. |
|
|
Add a project.
Implements QgisInterface. |
|
||||||||||||
|
Add a raster layer given a raster layer obj.
Implements QgisInterface. |
|
|
Add a raster layer given its file name.
Implements QgisInterface. |
|
|
Add an icon to the plugins toolbar.
Implements QgisInterface. |
|
||||||||||||||||
|
Add a vector layer.
Implements QgisInterface. |
|
|
Gives access to main QgisApp object Even though this class is supposed to act as a Facade for the QgisApp, the plug-ins need direct access to the application object for their connect() calls.
|
|
|
Return a pointer to the map layer registry Implements QgisInterface. |
|
|
Return a pointer to the map canvas used by qgisapp Implements QgisInterface. |
|
|
|
|
|
Get the menu info mapped by menu id (key is menu id, value is name) Implements QgisInterface. |
|
|
Get the menu info mapped by menu name (key is name, value is menu id) Implements QgisInterface. |
|
|
Start a new blank project.
Implements QgisInterface. |
|
||||||||||||
|
Open a url in the users browser. By default the QGIS doc directory is used as the base for the URL. To open a URL that is not relative to the installed QGIS documentation, set useQgisDocDirectory to false.
Implements QgisInterface. |
|
|
QgisIface aren't copied.
|
|
||||||||||||
|
|
|
|
Remove an icon (action) from the plugin toolbar.
Implements QgisInterface. |
|
|
Zoom to active layer.
Implements QgisInterface. |
|
|
Zoom map to full extent.
Implements QgisInterface. |
|
|
Zoom map to previous extent.
Implements QgisInterface. |
|
|
Pointer to the QgisApp object.
Definition at line 117 of file qgisiface.h. |
1.4.0