QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
QgisInterface Abstract base class defining interfaces exposed by QgisApp and made available to plugins. More...
#include <qgisinterface.h>
Public Slots | |
virtual QAction * | actionAbout ()=0 |
virtual QAction * | actionAddAfsLayer ()=0 |
Get access to the native Add ArcGIS FeatureServer action. More... | |
virtual QAction * | actionAddAllToOverview ()=0 |
virtual QAction * | actionAddAmsLayer ()=0 |
Get access to the native Add ArcGIS MapServer action. More... | |
virtual QAction * | actionAddFeature ()=0 |
virtual QAction * | actionAddOgrLayer ()=0 |
virtual QAction * | actionAddPart ()=0 |
virtual QAction * | actionAddPgLayer ()=0 |
virtual QAction * | actionAddRasterLayer ()=0 |
virtual QAction * | actionAddRing ()=0 |
virtual QAction * | actionAddToOverview ()=0 |
virtual QAction * | actionAddWmsLayer ()=0 |
virtual QAction * | actionAllEdits ()=0 |
virtual QAction * | actionCancelAllEdits ()=0 |
virtual QAction * | actionCancelEdits ()=0 |
virtual QAction * | actionCheckQgisVersion ()=0 |
virtual QAction * | actionCopyFeatures ()=0 |
virtual QAction * | actionCopyLayerStyle ()=0 |
virtual QAction * | actionCustomProjection ()=0 |
virtual QAction * | actionCutFeatures ()=0 |
virtual QAction * | actionDeletePart ()=0 |
virtual QAction * | actionDeleteRing ()=0 |
virtual QAction * | actionDeleteSelected ()=0 |
virtual QAction * | actionDraw ()=0 |
Get access to the native draw action. More... | |
virtual QAction * | actionDuplicateLayer ()=0 |
virtual QAction * | actionExit ()=0 |
virtual QAction * | actionFeatureAction ()=0 |
Get access to the native run action feature action. Call trigger() on it to set the default run feature action map tool. More... | |
virtual QAction * | actionHelpContents ()=0 |
virtual QAction * | actionHideAllLayers ()=0 |
virtual QAction * | actionHideSelectedLayers ()=0 |
virtual QAction * | actionIdentify ()=0 |
Get access to the native identify action. Call trigger() on it to set the default identify map tool. More... | |
virtual QAction * | actionLayerProperties ()=0 |
virtual QAction * | actionLayerSaveAs ()=0 |
virtual Q_DECL_DEPRECATED QAction * | actionLayerSelectionSaveAs ()=0 |
virtual QAction * | actionManagePlugins ()=0 |
virtual QAction * | actionMapTips ()=0 |
Get access to the native map tips action. Call trigger() on it to toggle map tips. More... | |
virtual QAction * | actionMeasure ()=0 |
Get access to the native measure action. Call trigger() on it to set the default measure map tool. More... | |
virtual QAction * | actionMeasureArea ()=0 |
Get access to the native measure area action. Call trigger() on it to set the default measure area map tool. More... | |
virtual QAction * | actionMoveFeature ()=0 |
virtual QAction * | actionNewBookmark ()=0 |
Get access to the native new bookmark action. Call trigger() on it to open the new bookmark dialog. More... | |
virtual QAction * | actionNewProject ()=0 |
virtual QAction * | actionNewVectorLayer ()=0 |
virtual QAction * | actionNodeTool ()=0 |
virtual QAction * | actionOpenFieldCalculator ()=0 |
virtual QAction * | actionOpenProject ()=0 |
virtual QAction * | actionOpenTable ()=0 |
virtual QAction * | actionOptions ()=0 |
virtual QAction * | actionPan ()=0 |
Get access to the native pan action. Call trigger() on it to set the default pan map tool. More... | |
virtual QAction * | actionPanToSelected ()=0 |
Get access to the native pan to selected action. Call trigger() on it to pan the map canvas to the selection. More... | |
virtual QAction * | actionPasteFeatures ()=0 |
virtual QAction * | actionPasteLayerStyle ()=0 |
virtual QAction * | actionPluginListSeparator ()=0 |
virtual QAction * | actionPrintComposer ()=0 |
virtual QAction * | actionProjectProperties ()=0 |
virtual QAction * | actionQgisHomePage ()=0 |
virtual QAction * | actionRemoveAllFromOverview ()=0 |
virtual QAction * | actionRemoveLayer ()=0 |
virtual QAction * | actionRollbackAllEdits ()=0 |
virtual QAction * | actionRollbackEdits ()=0 |
virtual QAction * | actionSaveActiveLayerEdits ()=0 |
virtual QAction * | actionSaveAllEdits ()=0 |
virtual QAction * | actionSaveEdits ()=0 |
virtual QAction * | actionSaveMapAsImage ()=0 |
virtual QAction * | actionSaveProject ()=0 |
virtual QAction * | actionSaveProjectAs ()=0 |
virtual QAction * | actionSelect ()=0 |
Get access to the native select action. Call trigger() on it to set the default select map tool. More... | |
virtual QAction * | actionSelectFreehand ()=0 |
Get access to the native select freehand action. Call trigger() on it to set the default select freehand map tool. More... | |
virtual QAction * | actionSelectPolygon ()=0 |
Get access to the native select polygon action. Call trigger() on it to set the default select polygon map tool. More... | |
virtual QAction * | actionSelectRadius ()=0 |
Get access to the native select radius action. Call trigger() on it to set the default select radius map tool. More... | |
virtual QAction * | actionSelectRectangle ()=0 |
Get access to the native select rectangle action. Call trigger() on it to set the default select rectangle map tool. More... | |
virtual QAction * | actionShowAllLayers ()=0 |
virtual QAction * | actionShowBookmarks ()=0 |
Get access to the native show bookmarks action. Call trigger() on it to open the bookmarks dialog. More... | |
virtual QAction * | actionShowComposerManager ()=0 |
virtual QAction * | actionShowPythonDialog ()=0 |
virtual QAction * | actionShowSelectedLayers ()=0 |
virtual QAction * | actionSimplifyFeature ()=0 |
virtual QAction * | actionSplitFeatures ()=0 |
virtual QAction * | actionSplitParts ()=0 |
virtual QAction * | actionToggleEditing ()=0 |
virtual QAction * | actionToggleFullScreen ()=0 |
virtual QAction * | actionTouch ()=0 |
Get access to the native touch action. More... | |
virtual QAction * | actionZoomActualSize ()=0 |
Get access to the native zoom resolution (100%) action. Call trigger() on it to zoom to actual size. More... | |
virtual QAction * | actionZoomFullExtent ()=0 |
Get access to the native zoom full extent action. Call trigger() on it to zoom to the full extent. More... | |
virtual QAction * | actionZoomIn ()=0 |
Get access to the native zoom in action. Call trigger() on it to set the default zoom in map tool. More... | |
virtual QAction * | actionZoomLast ()=0 |
Get access to the native zoom last action. Call trigger() on it to zoom to last. More... | |
virtual QAction * | actionZoomNext ()=0 |
Get access to the native zoom next action. Call trigger() on it to zoom to next. More... | |
virtual QAction * | actionZoomOut ()=0 |
Get access to the native zoom out action. Call trigger() on it to set the default zoom out map tool. More... | |
virtual QAction * | actionZoomToLayer ()=0 |
Get access to the native zoom to layer action. Call trigger() on it to zoom to the active layer. More... | |
virtual QAction * | actionZoomToSelected ()=0 |
Get access to the native zoom to selected action. Call trigger() on it to zoom to the current selection. More... | |
virtual QList< QgsComposerView * > | activeComposers ()=0 |
Return mainwindows / composer views of running composer instances (currently only one) More... | |
virtual QgsMapLayer * | activeLayer ()=0 |
Get pointer to the active layer (layer selected in the legend) More... | |
virtual int | addDatabaseToolBarIcon (QAction *qAction)=0 |
Add an icon to the Database toolbar. More... | |
virtual QAction * | addDatabaseToolBarWidget (QWidget *widget)=0 |
Add a widget to the database toolbar. More... | |
virtual void | addDockWidget (Qt::DockWidgetArea area, QDockWidget *dockwidget)=0 |
Add a dock widget to the main window. More... | |
virtual QMenu * | addLayerMenu ()=0 |
virtual void | addPluginToDatabaseMenu (const QString &name, QAction *action)=0 |
Add action to the Database menu. More... | |
virtual void | addPluginToMenu (const QString &name, QAction *action)=0 |
Add action to the plugins menu. More... | |
virtual void | addPluginToRasterMenu (const QString &name, QAction *action)=0 |
Add action to the Raster menu. More... | |
virtual void | addPluginToVectorMenu (const QString &name, QAction *action)=0 |
Add action to the Vector menu. More... | |
virtual void | addPluginToWebMenu (const QString &name, QAction *action)=0 |
Add action to the Web menu. More... | |
virtual bool | addProject (const QString &theProject)=0 |
Add a project. More... | |
virtual QgsRasterLayer * | addRasterLayer (const QString &rasterLayerPath, const QString &baseName=QString())=0 |
Add a raster layer given a raster layer file name. More... | |
virtual QgsRasterLayer * | addRasterLayer (const QString &url, const QString &layerName, const QString &providerKey)=0 |
Add a WMS layer. More... | |
virtual int | addRasterToolBarIcon (QAction *qAction)=0 |
Add an icon to the Raster toolbar. More... | |
virtual QAction * | addRasterToolBarWidget (QWidget *widget)=0 |
Add a widget to the raster toolbar. More... | |
virtual QToolBar * | addToolBar (const QString &name)=0 |
Add toolbar with specified name. More... | |
virtual void | addToolBar (QToolBar *toolbar, Qt::ToolBarArea area=Qt::TopToolBarArea)=0 |
Add a toolbar. More... | |
virtual int | addToolBarIcon (QAction *qAction)=0 |
Add an icon to the plugins toolbar. More... | |
virtual QAction * | addToolBarWidget (QWidget *widget)=0 |
Add a widget to the plugins toolbar. More... | |
virtual void | addUserInputWidget (QWidget *widget)=0 |
Adds a widget to the user input tool bar. More... | |
virtual QgsVectorLayer * | addVectorLayer (const QString &vectorLayerPath, const QString &baseName, const QString &providerKey)=0 |
Add a vector layer. More... | |
virtual int | addVectorToolBarIcon (QAction *qAction)=0 |
Add an icon to the Vector toolbar. More... | |
virtual QAction * | addVectorToolBarWidget (QWidget *widget)=0 |
Add a widget to the vector toolbar. More... | |
virtual int | addWebToolBarIcon (QAction *qAction)=0 |
Add an icon to the Web toolbar. More... | |
virtual QAction * | addWebToolBarWidget (QWidget *widget)=0 |
Add a widget to the web toolbar. More... | |
virtual void | addWindow (QAction *action)=0 |
Add window to Window menu. More... | |
virtual QToolBar * | advancedDigitizeToolBar ()=0 |
virtual QToolBar * | attributesToolBar ()=0 |
virtual void | buildStyleSheet (const QMap< QString, QVariant > &opts)=0 |
Generate stylesheet. More... | |
virtual QgsAdvancedDigitizingDockWidget * | cadDockWidget ()=0 |
Advanced digitizing dock widget. More... | |
virtual QgsComposerView * | createNewComposer (const QString &title=QString())=0 |
Create a new composer. More... | |
virtual QMenu * | databaseMenu ()=0 |
virtual QToolBar * | databaseToolBar ()=0 |
virtual QFont | defaultStyleSheetFont ()=0 |
Get reference font for initial qApp (may not be same as QgisApp) More... | |
virtual QMap< QString, QVariant > | defaultStyleSheetOptions ()=0 |
Return changeable options built from settings and/or defaults. More... | |
virtual void | deleteComposer (QgsComposerView *composerView)=0 |
Deletes parent composer of composer view, after closing composer window. More... | |
virtual QToolBar * | digitizeToolBar ()=0 |
virtual QgsComposerView * | duplicateComposer (QgsComposerView *composerView, const QString &title=QString())=0 |
Duplicate an existing parent composer from composer view. More... | |
virtual QList< QgsMapLayer * > | editableLayers (bool modified=false) const =0 |
Return vector layers in edit mode. More... | |
virtual QMenu * | editMenu ()=0 |
virtual Q_DECL_DEPRECATED QMenu * | fileMenu ()=0 |
Accessors for inserting items into menus and toolbars. More... | |
virtual QToolBar * | fileToolBar ()=0 |
virtual QMenu * | firstRightStandardMenu ()=0 |
virtual QgsAttributeDialog * | getFeatureForm (QgsVectorLayer *l, QgsFeature &f)=0 |
Returns a feature form for a given feature. More... | |
virtual QMenu * | helpMenu ()=0 |
virtual QToolBar * | helpToolBar ()=0 |
virtual void | insertAddLayerAction (QAction *action)=0 |
Add "add layer" action to layer menu. More... | |
virtual QMenu * | layerMenu ()=0 |
virtual QToolBar * | layerToolBar ()=0 |
virtual QgsLayerTreeMapCanvasBridge * | layerTreeCanvasBridge ()=0 |
Returns a pointer to the layer tree canvas bridge. More... | |
virtual QWidget * | mainWindow ()=0 |
Return a pointer to the main window (instance of QgisApp in case of QGIS) More... | |
virtual QgsMapCanvas * | mapCanvas ()=0 |
Return a pointer to the map canvas. More... | |
virtual QToolBar * | mapNavToolToolBar ()=0 |
virtual QgsMessageBar * | messageBar ()=0 |
Return the message bar of the main app. More... | |
virtual int | messageTimeout ()=0 |
Get timeout for timed messages: default of 5 seconds. More... | |
virtual QMenu * | newLayerMenu ()=0 |
virtual void | newProject (bool thePromptToSaveFlag=false)=0 |
Start a blank project. More... | |
virtual bool | openFeatureForm (QgsVectorLayer *l, QgsFeature &f, bool updateFeatureOnly=false, bool showModal=true)=0 |
Open feature form. More... | |
virtual void | openMessageLog ()=0 |
Open the message log dock widget. More... | |
virtual Q_DECL_DEPRECATED void | openURL (const QString &url, bool useQgisDocDirectory=true)=0 |
Open a url in the users browser. More... | |
virtual QMenu * | pluginMenu ()=0 |
virtual QToolBar * | pluginToolBar ()=0 |
virtual void | preloadForm (const QString &uifile)=0 |
This method is only needed when using a UI form with a custom widget plugin and calling openFeatureForm or getFeatureForm from Python (PyQt4) and you havn't used the info tool first. More... | |
virtual QMenu * | projectMenu ()=0 |
virtual QMenu * | rasterMenu ()=0 |
virtual QToolBar * | rasterToolBar ()=0 |
virtual bool | registerMainWindowAction (QAction *action, const QString &defaultShortcut)=0 |
Register action to the shortcuts manager so its shortcut can be changed in GUI. More... | |
virtual void | registerMapLayerConfigWidgetFactory (QgsMapLayerConfigWidgetFactory *factory)=0 |
Register a new tab in the vector layer properties dialog. More... | |
virtual void | removeAddLayerAction (QAction *action)=0 |
Remove "add layer" action from layer menu. More... | |
virtual void | removeDatabaseToolBarIcon (QAction *qAction)=0 |
Remove an action (icon) from the Database toolbar. More... | |
virtual void | removeDockWidget (QDockWidget *dockwidget)=0 |
Remove specified dock widget from main window (doesn't delete it). More... | |
virtual void | removePluginDatabaseMenu (const QString &name, QAction *action)=0 |
Remove action from the Database menu. More... | |
virtual void | removePluginMenu (const QString &name, QAction *action)=0 |
Remove action from the plugins menu. More... | |
virtual void | removePluginRasterMenu (const QString &name, QAction *action)=0 |
Remove action from the Raster menu. More... | |
virtual void | removePluginVectorMenu (const QString &name, QAction *action)=0 |
Remove action from the Vector menu. More... | |
virtual void | removePluginWebMenu (const QString &name, QAction *action)=0 |
Remove action from the Web menu. More... | |
virtual void | removeRasterToolBarIcon (QAction *qAction)=0 |
Remove an action (icon) from the Raster toolbar. More... | |
virtual void | removeToolBarIcon (QAction *qAction)=0 |
Remove an action (icon) from the plugin toolbar. More... | |
virtual void | removeVectorToolBarIcon (QAction *qAction)=0 |
Remove an action (icon) from the Vector toolbar. More... | |
virtual void | removeWebToolBarIcon (QAction *qAction)=0 |
Remove an action (icon) from the Web toolbar. More... | |
virtual void | removeWindow (QAction *action)=0 |
Remove window from Window menu. More... | |
virtual void | saveStyleSheetOptions (const QMap< QString, QVariant > &opts)=0 |
Save changed default option keys/values to user settings. More... | |
virtual bool | setActiveLayer (QgsMapLayer *)=0 |
Set the active layer (layer gets selected in the legend) returns true if the layer exists, false otherwise. More... | |
virtual QMenu * | settingsMenu ()=0 |
virtual QDialog * | showAttributeTable (QgsVectorLayer *l, const QString &filterExpression=QString())=0 |
Open attribute table dialog. More... | |
virtual void | showLayerProperties (QgsMapLayer *l)=0 |
Open layer properties dialog. More... | |
virtual bool | unregisterMainWindowAction (QAction *action)=0 |
Unregister a previously registered action. More... | |
virtual void | unregisterMapLayerConfigWidgetFactory (QgsMapLayerConfigWidgetFactory *factory)=0 |
Unregister a previously registered tab in the vector layer properties dialog. More... | |
virtual QgsVectorLayerTools * | vectorLayerTools ()=0 |
Access the vector layer tools instance. More... | |
virtual QMenu * | vectorMenu ()=0 |
virtual QToolBar * | vectorToolBar ()=0 |
virtual QMenu * | viewMenu ()=0 |
virtual QMenu * | webMenu ()=0 |
virtual QToolBar * | webToolBar ()=0 |
virtual QMenu * | windowMenu ()=0 |
virtual void | zoomFull ()=0 |
Zoom to full extent of map layers. More... | |
virtual void | zoomToActiveLayer ()=0 |
Zoom to extent of the active layer. More... | |
virtual void | zoomToNext ()=0 |
Zoom to next view extent. More... | |
virtual void | zoomToPrevious ()=0 |
Zoom to previous view extent. More... | |
Signals | |
void | composerAdded (QgsComposerView *v) |
This signal is emitted when a new composer instance has been created. More... | |
void | composerRemoved (QgsComposerView *v) |
This signal is emitted when a composer instance has been removed. More... | |
void | composerWillBeRemoved (QgsComposerView *v) |
This signal is emitted before a new composer instance is going to be removed. More... | |
void | currentLayerChanged (QgsMapLayer *layer) |
Emitted whenever current (selected) layer changes. More... | |
void | initializationCompleted () |
This signal is emitted when the initialization is complete. More... | |
void | layerSavedAs (QgsMapLayer *l, const QString &path) |
This signal is emitted when a layer has been saved using save as. More... | |
void | newProjectCreated () |
Emitted when starting an entirely new project. More... | |
void | projectRead () |
Emitted when a project file is successfully read. More... | |
Public Member Functions | |
QgisInterface () | |
Constructor. More... | |
virtual | ~QgisInterface () |
Virtual destructor. More... | |
virtual QgsLayerTreeView * | layerTreeView ()=0 |
virtual QgsLegendInterface * | legendInterface ()=0 |
Get pointer to legend interface. More... | |
virtual QgsPluginManagerInterface * | pluginManagerInterface ()=0 |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
QgisInterface Abstract base class defining interfaces exposed by QgisApp and made available to plugins.
Only functionality exposed by QgisInterface can be used in plugins. This interface has to be implemented with application specific details.
QGIS implements it in QgisAppInterface class, 3rd party applications could provide their own implementation to be able to use plugins.
Definition at line 65 of file qgisinterface.h.
QgisInterface::QgisInterface | ( | ) |
Constructor.
Definition at line 21 of file qgisinterface.cpp.
|
virtual |
Virtual destructor.
Definition at line 27 of file qgisinterface.cpp.
|
pure virtualslot |
|
pure virtualslot |
Get access to the native Add ArcGIS FeatureServer action.
|
pure virtualslot |
|
pure virtualslot |
Get access to the native Add ArcGIS MapServer action.
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Get access to the native draw action.
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Get access to the native run action feature action. Call trigger() on it to set the default run feature action map tool.
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Get access to the native identify action. Call trigger() on it to set the default identify map tool.
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Get access to the native map tips action. Call trigger() on it to toggle map tips.
|
pure virtualslot |
Get access to the native measure action. Call trigger() on it to set the default measure map tool.
|
pure virtualslot |
Get access to the native measure area action. Call trigger() on it to set the default measure area map tool.
|
pure virtualslot |
|
pure virtualslot |
Get access to the native new bookmark action. Call trigger() on it to open the new bookmark dialog.
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Get access to the native pan action. Call trigger() on it to set the default pan map tool.
|
pure virtualslot |
Get access to the native pan to selected action. Call trigger() on it to pan the map canvas to the selection.
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Get access to the native select action. Call trigger() on it to set the default select map tool.
|
pure virtualslot |
Get access to the native select freehand action. Call trigger() on it to set the default select freehand map tool.
|
pure virtualslot |
Get access to the native select polygon action. Call trigger() on it to set the default select polygon map tool.
|
pure virtualslot |
Get access to the native select radius action. Call trigger() on it to set the default select radius map tool.
|
pure virtualslot |
Get access to the native select rectangle action. Call trigger() on it to set the default select rectangle map tool.
|
pure virtualslot |
|
pure virtualslot |
Get access to the native show bookmarks action. Call trigger() on it to open the bookmarks dialog.
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Get access to the native touch action.
|
pure virtualslot |
Get access to the native zoom resolution (100%) action. Call trigger() on it to zoom to actual size.
|
pure virtualslot |
Get access to the native zoom full extent action. Call trigger() on it to zoom to the full extent.
|
pure virtualslot |
Get access to the native zoom in action. Call trigger() on it to set the default zoom in map tool.
|
pure virtualslot |
Get access to the native zoom last action. Call trigger() on it to zoom to last.
|
pure virtualslot |
Get access to the native zoom next action. Call trigger() on it to zoom to next.
|
pure virtualslot |
Get access to the native zoom out action. Call trigger() on it to set the default zoom out map tool.
|
pure virtualslot |
Get access to the native zoom to layer action. Call trigger() on it to zoom to the active layer.
|
pure virtualslot |
Get access to the native zoom to selected action. Call trigger() on it to zoom to the current selection.
|
pure virtualslot |
Return mainwindows / composer views of running composer instances (currently only one)
|
pure virtualslot |
Get pointer to the active layer (layer selected in the legend)
|
pure virtualslot |
Add an icon to the Database toolbar.
Add a widget to the database toolbar.
To remove this widget again, call removeDatabaseToolBarIcon with the returned QAction.
widget | widget to add. The toolbar will take ownership of this widget |
|
pure virtualslot |
Add a dock widget to the main window.
|
pure virtualslot |
|
pure virtualslot |
Add action to the Database menu.
|
pure virtualslot |
Add action to the plugins menu.
|
pure virtualslot |
Add action to the Raster menu.
|
pure virtualslot |
Add action to the Vector menu.
|
pure virtualslot |
Add action to the Web menu.
|
pure virtualslot |
Add a project.
|
pure virtualslot |
Add a raster layer given a raster layer file name.
|
pure virtualslot |
Add a WMS layer.
|
pure virtualslot |
Add an icon to the Raster toolbar.
Add a widget to the raster toolbar.
To remove this widget again, call removeRasterToolBarIcon with the returned QAction.
widget | widget to add. The toolbar will take ownership of this widget |
Add toolbar with specified name.
|
pure virtualslot |
Add a toolbar.
|
pure virtualslot |
Add an icon to the plugins toolbar.
Add a widget to the plugins toolbar.
To remove this widget again, call removeToolBarIcon with the returned QAction.
widget | widget to add. The toolbar will take ownership of this widget |
|
pure virtualslot |
Adds a widget to the user input tool bar.
|
pure virtualslot |
Add a vector layer.
|
pure virtualslot |
Add an icon to the Vector toolbar.
Add a widget to the vector toolbar.
To remove this widget again, call removeVectorToolBarIcon with the returned QAction.
widget | widget to add. The toolbar will take ownership of this widget |
|
pure virtualslot |
Add an icon to the Web toolbar.
Add a widget to the web toolbar.
To remove this widget again, call removeWebToolBarIcon with the returned QAction.
widget | widget to add. The toolbar will take ownership of this widget |
|
pure virtualslot |
Add window to Window menu.
The action title is the window title and the action should raise, unminimize and activate the window.
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Generate stylesheet.
opts | generated default option values, or a changed copy of them |
|
pure virtualslot |
Advanced digitizing dock widget.
|
signal |
This signal is emitted when a new composer instance has been created.
|
signal |
This signal is emitted when a composer instance has been removed.
|
signal |
This signal is emitted before a new composer instance is going to be removed.
|
pure virtualslot |
Create a new composer.
title | window title for new composer (one will be generated if empty) |
|
signal |
Emitted whenever current (selected) layer changes.
The pointer to layer can be null if no layer is selected
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Get reference font for initial qApp (may not be same as QgisApp)
Return changeable options built from settings and/or defaults.
|
pure virtualslot |
Deletes parent composer of composer view, after closing composer window.
|
pure virtualslot |
|
pure virtualslot |
Duplicate an existing parent composer from composer view.
composerView | pointer to existing composer view |
title | window title for duplicated composer (one will be generated if empty) |
|
pure virtualslot |
Return vector layers in edit mode.
modified | whether to return only layers that have been modified |
|
pure virtualslot |
|
pure virtualslot |
Accessors for inserting items into menus and toolbars.
An item can be inserted before any existing action.
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Returns a feature form for a given feature.
l | The layer for which the dialog will be created |
f | The feature for which the dialog will be created |
|
pure virtualslot |
|
pure virtualslot |
|
signal |
This signal is emitted when the initialization is complete.
|
pure virtualslot |
Add "add layer" action to layer menu.
|
pure virtualslot |
|
signal |
This signal is emitted when a layer has been saved using save as.
|
pure virtualslot |
|
pure virtualslot |
Returns a pointer to the layer tree canvas bridge.
|
pure virtual |
|
pure virtual |
Get pointer to legend interface.
|
pure virtualslot |
Return a pointer to the main window (instance of QgisApp in case of QGIS)
|
pure virtualslot |
Return a pointer to the map canvas.
|
pure virtualslot |
|
pure virtualslot |
Return the message bar of the main app.
|
pure virtualslot |
Get timeout for timed messages: default of 5 seconds.
|
pure virtualslot |
|
pure virtualslot |
Start a blank project.
|
signal |
Emitted when starting an entirely new project.
|
pure virtualslot |
Open feature form.
l | vector layer |
f | feature to show/modify |
updateFeatureOnly | only update the feature update (don't change any attributes of the layer) [UNUSED] |
showModal | if true, will wait for the dialog to be executed (only shown otherwise) |
|
pure virtualslot |
Open the message log dock widget.
|
pure virtualslot |
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.
url | URL to open |
useQgisDocDirectory | If true, the URL will be formed by concatenating url to the QGIS documentation directory path (prefix/share/doc) |
|
pure virtual |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
This method is only needed when using a UI form with a custom widget plugin and calling openFeatureForm or getFeatureForm from Python (PyQt4) and you havn't used the info tool first.
Python will crash bringing QGIS wtih it if the custom form is not loaded from a C++ method call.
This method uses a QTimer to call QUiLoader in order to load the form via C++ you only need to call this once after that you can call openFeatureForm/getFeatureForm like normal
More information here: http://qt-project.org/forums/viewthread/27098/
|
pure virtualslot |
|
signal |
Emitted when a project file is successfully read.
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Register action to the shortcuts manager so its shortcut can be changed in GUI.
|
pure virtualslot |
Register a new tab in the vector layer properties dialog.
|
pure virtualslot |
Remove "add layer" action from layer menu.
|
pure virtualslot |
Remove an action (icon) from the Database toolbar.
|
pure virtualslot |
Remove specified dock widget from main window (doesn't delete it).
|
pure virtualslot |
Remove action from the Database menu.
|
pure virtualslot |
Remove action from the plugins menu.
|
pure virtualslot |
Remove action from the Raster menu.
|
pure virtualslot |
Remove action from the Vector menu.
|
pure virtualslot |
Remove action from the Web menu.
|
pure virtualslot |
Remove an action (icon) from the Raster toolbar.
|
pure virtualslot |
Remove an action (icon) from the plugin toolbar.
|
pure virtualslot |
Remove an action (icon) from the Vector toolbar.
|
pure virtualslot |
Remove an action (icon) from the Web toolbar.
|
pure virtualslot |
Remove window from Window menu.
Calling this is necessary only for windows which are hidden rather than deleted when closed.
|
pure virtualslot |
Save changed default option keys/values to user settings.
|
pure virtualslot |
Set the active layer (layer gets selected in the legend) returns true if the layer exists, false otherwise.
|
pure virtualslot |
|
pure virtualslot |
Open attribute table dialog.
|
pure virtualslot |
Open layer properties dialog.
|
pure virtualslot |
Unregister a previously registered action.
(e.g. when plugin is going to be unloaded)
|
pure virtualslot |
Unregister a previously registered tab in the vector layer properties dialog.
|
pure virtualslot |
Access the vector layer tools instance.
With the help of this you can access methods like addFeature, startEditing or stopEditing while giving the user the appropriate dialogs.
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
Zoom to full extent of map layers.
|
pure virtualslot |
Zoom to extent of the active layer.
|
pure virtualslot |
Zoom to next view extent.
|
pure virtualslot |
Zoom to previous view extent.