QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgisinterface.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgisinterface.h
3  Interface class for exposing functions in QgisApp for use by plugins
4  -------------------
5  begin : 2004-02-11
6  copyright : (C) 2004 by Gary E.Sherman
7  email : sherman at mrcc.com
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 #ifndef QGISINTERFACE_H
19 #define QGISINTERFACE_H
20 
21 #include <QObject>
22 #include <map>
23 
24 #include "qgis.h"
25 #include "qgis_sip.h"
26 #include "qgis_gui.h"
29 
30 class QAction;
31 class QDialog;
32 class QFont;
33 class QMenu;
34 class QToolBar;
35 class QDockWidget;
36 class QMainWindow;
37 class QWidget;
38 class QActionGroup;
39 
41 class QgsAttributeDialog;
45 class QgsFeature;
47 class QgsLayerTreeView;
48 class QgsLayerTreeGroup;
49 class QgsLayout;
52 class QgsMapCanvas;
53 class QgsMapLayer;
54 enum class QgsMapLayerType;
56 class QgsMessageBar;
58 class QgsRasterLayer;
59 class QgsVectorLayer;
61 class QgsVectorTileLayer;
63 class QgsLocatorFilter;
64 class QgsStatusBar;
65 class QgsMeshLayer;
66 class QgsBrowserGuiModel;
68 class QgsGpsConnection;
71 
72 
87 class GUI_EXPORT QgisInterface : public QObject
88 {
89  Q_OBJECT
90 
91  public:
92 
94  QgisInterface() = default;
95 
97 
99 
112  virtual void addCustomActionForLayerType( QAction *action, QString menu,
113  QgsMapLayerType type, bool allLayers ) = 0;
114 
121  virtual void addCustomActionForLayer( QAction *action, QgsMapLayer *layer ) = 0;
122 
127  virtual bool removeCustomActionForLayerType( QAction *action ) = 0;
128 
133  virtual QList< QgsMapCanvas * > mapCanvases() = 0;
134 
140  virtual QgsMapCanvas *createNewMapCanvas( const QString &name ) = 0;
141 
147  virtual void closeMapCanvas( const QString &name ) = 0;
148 
153  virtual QSize iconSize( bool dockedToolbar = false ) const = 0;
154 
160  virtual QList<QgsMapLayer *> editableLayers( bool modified = false ) const = 0;
161 
163  virtual QgsMapLayer *activeLayer() = 0;
164 
166  virtual QgsMapCanvas *mapCanvas() = 0;
167 
174 
176  virtual QWidget *mainWindow() = 0;
177 
179  virtual QgsMessageBar *messageBar() = 0;
180 
185  virtual QList<QgsLayoutDesignerInterface *> openLayoutDesigners() = 0;
186 
187 
189  virtual QMap<QString, QVariant> defaultStyleSheetOptions() = 0;
190 
192  virtual QFont defaultStyleSheetFont() = 0;
193 
199 
200  /*
201  * Accessors for inserting items into menus and toolbars.
202  * An item can be inserted before any existing action.
203  */
204 
208  virtual QMenu *projectMenu() = 0;
209 
213  virtual QMenu *editMenu() = 0;
214 
218  virtual QMenu *viewMenu() = 0;
219 
223  virtual QMenu *layerMenu() = 0;
224 
228  virtual QMenu *newLayerMenu() = 0;
229 
234  virtual QMenu *addLayerMenu() = 0;
235 
239  virtual QMenu *settingsMenu() = 0;
240 
244  virtual QMenu *pluginMenu() = 0;
245 
254  virtual QMenu *pluginHelpMenu() = 0;
255 
259  virtual QMenu *rasterMenu() = 0;
260 
264  virtual QMenu *databaseMenu() = 0;
265 
269  virtual QMenu *vectorMenu() = 0;
270 
274  virtual QMenu *webMenu() = 0;
275 
283  virtual QMenu *firstRightStandardMenu() = 0;
284 
288  virtual QMenu *windowMenu() = 0;
289 
293  virtual QMenu *helpMenu() = 0;
294 
295  // ToolBars
296 
300  virtual QToolBar *fileToolBar() = 0;
301 
305  virtual QToolBar *layerToolBar() = 0;
306 
311  virtual QToolBar *dataSourceManagerToolBar() = 0;
312 
316  virtual QToolBar *mapNavToolToolBar() = 0;
317 
321  virtual QToolBar *digitizeToolBar() = 0;
322 
326  virtual QToolBar *advancedDigitizeToolBar() = 0;
327 
332  virtual QToolBar *shapeDigitizeToolBar() = 0;
333 
337  virtual QToolBar *attributesToolBar() = 0;
338 
343  virtual QToolBar *selectionToolBar() = 0;
344 
348  virtual QToolBar *pluginToolBar() = 0;
349 
353  virtual QToolBar *helpToolBar() = 0;
354 
358  virtual QToolBar *rasterToolBar() = 0;
359 
363  virtual QToolBar *vectorToolBar() = 0;
364 
368  virtual QToolBar *databaseToolBar() = 0;
369 
373  virtual QToolBar *webToolBar() = 0;
374 
375  // Project menu actions
377  virtual QAction *actionNewProject() = 0;
379  virtual QAction *actionOpenProject() = 0;
381  virtual QAction *actionSaveProject() = 0;
383  virtual QAction *actionSaveProjectAs() = 0;
385  virtual QAction *actionSaveMapAsImage() = 0;
387  virtual QAction *actionProjectProperties() = 0;
388 
390  virtual QAction *actionCreatePrintLayout() = 0;
391 
393  virtual QAction *actionShowLayoutManager() = 0;
395  virtual QAction *actionExit() = 0;
396 
397  // Edit menu actions
398 
400  virtual QAction *actionCutFeatures() = 0;
402  virtual QAction *actionCopyFeatures() = 0;
404  virtual QAction *actionPasteFeatures() = 0;
406  virtual QAction *actionAddFeature() = 0;
408  virtual QAction *actionDeleteSelected() = 0;
410  virtual QAction *actionMoveFeature() = 0;
412  virtual QAction *actionSplitFeatures() = 0;
414  virtual QAction *actionSplitParts() = 0;
416  virtual QAction *actionAddRing() = 0;
418  virtual QAction *actionAddPart() = 0;
420  virtual QAction *actionSimplifyFeature() = 0;
422  virtual QAction *actionDeleteRing() = 0;
424  virtual QAction *actionDeletePart() = 0;
425 
430  virtual QAction *actionVertexTool() = 0;
431 
437  virtual QAction *actionVertexToolActiveLayer() = 0;
438 
447  virtual QActionGroup *mapToolActionGroup() = 0;
448 
449  // View menu actions
451  virtual QAction *actionPan() = 0;
453  virtual QAction *actionPanToSelected() = 0;
455  virtual QAction *actionZoomIn() = 0;
457  virtual QAction *actionZoomOut() = 0;
459  virtual QAction *actionSelect() = 0;
461  virtual QAction *actionSelectRectangle() = 0;
463  virtual QAction *actionSelectPolygon() = 0;
465  virtual QAction *actionSelectFreehand() = 0;
467  virtual QAction *actionSelectRadius() = 0;
469  virtual QAction *actionIdentify() = 0;
471  virtual QAction *actionFeatureAction() = 0;
473  virtual QAction *actionMeasure() = 0;
475  virtual QAction *actionMeasureArea() = 0;
477  virtual QAction *actionZoomFullExtent() = 0;
479  virtual QAction *actionZoomToLayer() = 0;
481  virtual QAction *actionZoomToSelected() = 0;
483  virtual QAction *actionZoomLast() = 0;
485  virtual QAction *actionZoomNext() = 0;
487  virtual QAction *actionZoomActualSize() = 0;
489  virtual QAction *actionMapTips() = 0;
491  virtual QAction *actionNewBookmark() = 0;
493  virtual QAction *actionShowBookmarks() = 0;
495  virtual QAction *actionDraw() = 0;
496 
497  // Layer menu actions
498  virtual QAction *actionNewVectorLayer() = 0;
499  virtual QAction *actionAddOgrLayer() = 0;
500  virtual QAction *actionAddRasterLayer() = 0;
501  virtual QAction *actionAddPgLayer() = 0;
502  virtual QAction *actionAddWmsLayer() = 0;
503 
508  virtual QAction *actionAddXyzLayer() = 0;
509 
514  virtual QAction *actionAddVectorTileLayer() = 0;
516  virtual QAction *actionAddAfsLayer() = 0;
518  virtual QAction *actionAddAmsLayer() = 0;
519  virtual QAction *actionCopyLayerStyle() = 0;
520  virtual QAction *actionPasteLayerStyle() = 0;
521  virtual QAction *actionOpenTable() = 0;
522  virtual QAction *actionOpenFieldCalculator() = 0;
523 
528  virtual QAction *actionOpenStatisticalSummary() = 0;
529 
530  virtual QAction *actionToggleEditing() = 0;
531  virtual QAction *actionSaveActiveLayerEdits() = 0;
532  virtual QAction *actionAllEdits() = 0;
533  virtual QAction *actionSaveEdits() = 0;
534  virtual QAction *actionSaveAllEdits() = 0;
535  virtual QAction *actionRollbackEdits() = 0;
536  virtual QAction *actionRollbackAllEdits() = 0;
537  virtual QAction *actionCancelEdits() = 0;
538  virtual QAction *actionCancelAllEdits() = 0;
539  virtual QAction *actionLayerSaveAs() = 0;
540  virtual QAction *actionDuplicateLayer() = 0;
541  virtual QAction *actionLayerProperties() = 0;
542  virtual QAction *actionAddToOverview() = 0;
543  virtual QAction *actionAddAllToOverview() = 0;
544  virtual QAction *actionRemoveAllFromOverview() = 0;
545  virtual QAction *actionHideAllLayers() = 0;
546  virtual QAction *actionShowAllLayers() = 0;
547  virtual QAction *actionHideSelectedLayers() = 0;
548 
553  virtual QAction *actionToggleSelectedLayers() = 0;
554 
560 
565  virtual QAction *actionHideDeselectedLayers() = 0;
566  virtual QAction *actionShowSelectedLayers() = 0;
567 
568  // Plugin menu actions
569  virtual QAction *actionManagePlugins() = 0;
570  virtual QAction *actionPluginListSeparator() = 0;
571  virtual QAction *actionShowPythonDialog() = 0;
572 
573  // Settings menu actions
574  virtual QAction *actionToggleFullScreen() = 0;
575  virtual QAction *actionOptions() = 0;
576  virtual QAction *actionCustomProjection() = 0;
577 
578  // Help menu actions
579  virtual QAction *actionHelpContents() = 0;
580  virtual QAction *actionQgisHomePage() = 0;
581  virtual QAction *actionCheckQgisVersion() = 0;
582  virtual QAction *actionAbout() = 0;
583 
584  // Shape digitize actions
586  virtual QAction *actionCircle2Points() = 0;
588  virtual QAction *actionCircle3Points() = 0;
590  virtual QAction *actionCircle3Tangents() = 0;
592  virtual QAction *actionCircle2TangentsPoint() = 0;
594  virtual QAction *actionCircleCenterPoint() = 0;
596  virtual QAction *actionEllipseCenter2Points() = 0;
598  virtual QAction *actionEllipseCenterPoint() = 0;
600  virtual QAction *actionEllipseExtent() = 0;
602  virtual QAction *actionEllipseFoci() = 0;
604  virtual QAction *actionRectangleCenterPoint() = 0;
606  virtual QAction *actionRectangleExtent() = 0;
608  virtual QAction *actionRectangle3PointsDistance() = 0;
610  virtual QAction *actionRectangle3PointsProjected() = 0;
612  virtual QAction *actionRegularPolygon2Points() = 0;
614  virtual QAction *actionRegularPolygonCenterPoint() = 0;
616  virtual QAction *actionRegularPolygonCenterCorner() = 0;
617 
626 
628  virtual int messageTimeout() = 0;
629 
636  virtual QgsStatusBar *statusBarIface() = 0;
637 
645  virtual void takeAppScreenShots( const QString &saveDirectory, const int categories = 0 ) {Q_UNUSED( saveDirectory ) Q_UNUSED( categories );}
646 
653 
654  public slots: // TODO: do these functions really need to be slots?
655 
656  /* Exposed functions */
657 
661  virtual void zoomFull() = 0;
662 
666  virtual void zoomToPrevious() = 0;
667 
671  virtual void zoomToNext() = 0;
672 
676  virtual void zoomToActiveLayer() = 0;
677 
681  virtual QgsVectorLayer *addVectorLayer( const QString &vectorLayerPath, const QString &baseName, const QString &providerKey ) = 0;
682 
686  virtual QgsRasterLayer *addRasterLayer( const QString &rasterLayerPath, const QString &baseName = QString() ) = 0;
687 
691  virtual QgsRasterLayer *addRasterLayer( const QString &url, const QString &layerName, const QString &providerKey ) = 0;
692 
696  virtual QgsMeshLayer *addMeshLayer( const QString &url, const QString &baseName, const QString &providerKey ) = 0;
697 
702  virtual QgsVectorTileLayer *addVectorTileLayer( const QString &url, const QString &baseName ) = 0;
703 
705  virtual bool addProject( const QString &project ) = 0;
706 
717  virtual bool newProject( bool promptToSaveFlag = false ) = 0;
718 
726  virtual void reloadConnections( ) = 0;
727 
732  virtual bool setActiveLayer( QgsMapLayer * ) = 0;
733 
738  virtual void copySelectionToClipboard( QgsMapLayer * ) = 0;
739 
744  virtual void pasteFromClipboard( QgsMapLayer * ) = 0;
745 
747  virtual int addToolBarIcon( QAction *qAction ) = 0;
748 
757  virtual QAction *addToolBarWidget( QWidget *widget SIP_TRANSFER ) = 0;
758 
760  virtual void removeToolBarIcon( QAction *qAction ) = 0;
761 
770  virtual QAction *addRasterToolBarWidget( QWidget *widget SIP_TRANSFER ) = 0;
771 
773  virtual int addRasterToolBarIcon( QAction *qAction ) = 0;
774 
776  virtual void removeRasterToolBarIcon( QAction *qAction ) = 0;
777 
779  virtual int addVectorToolBarIcon( QAction *qAction ) = 0;
780 
789  virtual QAction *addVectorToolBarWidget( QWidget *widget SIP_TRANSFER ) = 0;
790 
792  virtual void removeVectorToolBarIcon( QAction *qAction ) = 0;
793 
795  virtual int addDatabaseToolBarIcon( QAction *qAction ) = 0;
796 
805  virtual QAction *addDatabaseToolBarWidget( QWidget *widget SIP_TRANSFER ) = 0;
806 
808  virtual void removeDatabaseToolBarIcon( QAction *qAction ) = 0;
809 
811  virtual int addWebToolBarIcon( QAction *qAction ) = 0;
812 
821  virtual QAction *addWebToolBarWidget( QWidget *widget SIP_TRANSFER ) = 0;
822 
824  virtual void removeWebToolBarIcon( QAction *qAction ) = 0;
825 
827  virtual QToolBar *addToolBar( const QString &name ) = 0 SIP_FACTORY;
828 
833  virtual void addToolBar( QToolBar *toolbar SIP_TRANSFER, Qt::ToolBarArea area = Qt::TopToolBarArea ) = 0;
834 
838  virtual void openMessageLog() = 0;
839 
841  virtual void addUserInputWidget( QWidget *widget ) = 0;
842 
847  virtual void showLayoutManager() = 0;
848 
856 
862  virtual void showOptionsDialog( QWidget *parent = nullptr, const QString &currentPage = QString() ) = 0;
863 
869  virtual void showProjectPropertiesDialog( const QString &currentPage = QString() ) = 0;
870 
875  virtual void buildStyleSheet( const QMap<QString, QVariant> &opts ) = 0;
876 
878  virtual void saveStyleSheetOptions( const QMap<QString, QVariant> &opts ) = 0;
879 
881  virtual void addPluginToMenu( const QString &name, QAction *action ) = 0;
882 
884  virtual void removePluginMenu( const QString &name, QAction *action ) = 0;
885 
887  virtual void insertAddLayerAction( QAction *action ) = 0;
888 
890  virtual void removeAddLayerAction( QAction *action ) = 0;
891 
893  virtual void addPluginToDatabaseMenu( const QString &name, QAction *action ) = 0;
894 
896  virtual void removePluginDatabaseMenu( const QString &name, QAction *action ) = 0;
897 
899  virtual void addPluginToRasterMenu( const QString &name, QAction *action ) = 0;
900 
902  virtual void removePluginRasterMenu( const QString &name, QAction *action ) = 0;
903 
905  virtual void addPluginToVectorMenu( const QString &name, QAction *action ) = 0;
906 
908  virtual void removePluginVectorMenu( const QString &name, QAction *action ) = 0;
909 
911  virtual void addPluginToWebMenu( const QString &name, QAction *action ) = 0;
912 
914  virtual void removePluginWebMenu( const QString &name, QAction *action ) = 0;
915 
922  virtual void addDockWidget( Qt::DockWidgetArea area, QDockWidget *dockwidget ) = 0;
923 
938  virtual void addTabifiedDockWidget( Qt::DockWidgetArea area, QDockWidget *dockwidget, const QStringList &tabifyWith = QStringList(), bool raiseTab = false ) = 0;
939 
945  virtual void removeDockWidget( QDockWidget *dockwidget ) = 0;
946 
948  virtual void showLayerProperties( QgsMapLayer *l ) = 0;
949 
951  virtual QDialog *showAttributeTable( QgsVectorLayer *l, const QString &filterExpression = QString() ) = 0;
952 
957  virtual void addWindow( QAction *action ) = 0;
958 
963  virtual void removeWindow( QAction *action ) = 0;
964 
966  virtual bool registerMainWindowAction( QAction *action, const QString &defaultShortcut ) = 0;
967 
969  virtual bool unregisterMainWindowAction( QAction *action ) = 0;
970 
980 
988 
998 
1006 
1016 
1024 
1033 
1040 
1052 
1059 
1073 
1080 
1089  virtual void registerCustomDropHandler( QgsCustomDropHandler *handler ) = 0;
1090 
1098 
1108 
1116 
1126 
1134 
1135  // TODO is this deprecated in favour of QgsContextHelp?
1136 
1146 #ifndef Q_MOC_RUN
1147  Q_DECL_DEPRECATED
1148 #endif
1149  virtual void openURL( const QString &url, bool useQgisDocDirectory = true ) = 0 SIP_DEPRECATED;
1150 
1159  virtual bool openFeatureForm( QgsVectorLayer *l, QgsFeature &f, bool updateFeatureOnly = false, bool showModal = true ) = 0;
1160 
1170 
1183  virtual void preloadForm( const QString &uifile ) = 0;
1184 
1191  virtual void locatorSearch( const QString &searchText ) = 0;
1192 
1202 
1213  virtual void deregisterLocatorFilter( QgsLocatorFilter *filter ) = 0;
1214 
1222  virtual void invalidateLocatorResults() = 0;
1223 
1231 
1238 
1247  virtual void setGpsPanelConnection( QgsGpsConnection *connection ) = 0;
1248 
1249  signals:
1250 
1256 
1262  void currentThemeChanged( const QString &theme );
1263 
1270 
1279 
1287 
1292 
1299  void projectRead();
1300 
1310 
1315  void layerSavedAs( QgsMapLayer *l, const QString &path );
1316 
1317 };
1319 
1320 #endif //#ifndef QGISINTERFACE_H
QgsAttributeDialog
Definition: qgsattributedialog.h:38
QgisInterface::showLayerProperties
virtual void showLayerProperties(QgsMapLayer *l)=0
Open layer properties dialog.
QgisInterface::removePluginRasterMenu
virtual void removePluginRasterMenu(const QString &name, QAction *action)=0
Remove action from the Raster menu.
QgisInterface::actionAddAmsLayer
virtual QAction * actionAddAmsLayer()=0
Returns the native Add ArcGIS MapServer action.
QgisInterface::pasteFromClipboard
virtual void pasteFromClipboard(QgsMapLayer *)=0
Paste features from clipboard to the layer.
QgisInterface::unregisterCustomDropHandler
virtual void unregisterCustomDropHandler(QgsCustomDropHandler *handler)=0
Unregister a previously registered custom drop handler.
QgsLocatorFilter
Abstract base class for filters which collect locator results.
Definition: qgslocatorfilter.h:146
QgisInterface::removeDockWidget
virtual void removeDockWidget(QDockWidget *dockwidget)=0
Removes the specified dock widget from main window (without deleting it).
QgisInterface::actionOptions
virtual QAction * actionOptions()=0
QgisInterface::addDatabaseToolBarIcon
virtual int addDatabaseToolBarIcon(QAction *qAction)=0
Add an icon to the Database toolbar.
QgisInterface::rasterMenu
virtual QMenu * rasterMenu()=0
Returns a reference to the main window "Raster" menu.
QgisInterface::mainWindow
virtual QWidget * mainWindow()=0
Returns a pointer to the main window (instance of QgisApp in case of QGIS)
QgisInterface::actionCircleCenterPoint
virtual QAction * actionCircleCenterPoint()=0
Returns the native add circle from center action. Call trigger() on it to set the map tool.
QgisInterface::actionAddRing
virtual QAction * actionAddRing()=0
Returns the native Add Ring action.
QgisInterface::addVectorToolBarIcon
virtual int addVectorToolBarIcon(QAction *qAction)=0
Add an icon to the Vector toolbar.
QgisInterface::initializationCompleted
void initializationCompleted()
Emitted when the initialization is complete.
QgsLayerTreeRegistryBridge::InsertionPoint
A structure to define the insertion point to the layer tree.
Definition: qgslayertreeregistrybridge.h:55
QgisInterface::actionVertexToolActiveLayer
virtual QAction * actionVertexToolActiveLayer()=0
Returns the native "Vertex Tool for Active Layer" action.
QgisInterface::actionAddToOverview
virtual QAction * actionAddToOverview()=0
QgisInterface::addDatabaseToolBarWidget
virtual QAction * addDatabaseToolBarWidget(QWidget *widget)=0
Add a widget to the database toolbar.
QgisInterface::actionSelectFreehand
virtual QAction * actionSelectFreehand()=0
Returns the native select freehand action. Call trigger() on it to set the default select freehand ma...
QgsVectorTileLayer
Implements a map layer that is dedicated to rendering of vector tiles.
Definition: qgsvectortilelayer.h:84
QgisInterface::actionLayerProperties
virtual QAction * actionLayerProperties()=0
QgisInterface::unregisterMapLayerConfigWidgetFactory
virtual void unregisterMapLayerConfigWidgetFactory(QgsMapLayerConfigWidgetFactory *factory)=0
Unregister a previously registered tab in the map layer properties dialog.
QgisInterface::actionSelectRadius
virtual QAction * actionSelectRadius()=0
Returns the native select radius action. Call trigger() on it to set the default select radius map to...
QgisInterface::fileToolBar
virtual QToolBar * fileToolBar()=0
Returns a reference to the main window "File" toolbar.
QgisInterface::actionAddFeature
virtual QAction * actionAddFeature()=0
Returns the native Add Feature action.
QgsOptionsWidgetFactory
A factory class for creating custom options pages.
Definition: qgsoptionswidgetfactory.h:98
QgisInterface::windowMenu
virtual QMenu * windowMenu()=0
Returns a reference to the main window "Window" menu.
QgisInterface::removePluginWebMenu
virtual void removePluginWebMenu(const QString &name, QAction *action)=0
Remove action from the Web menu.
QgisInterface::layoutDesignerOpened
void layoutDesignerOpened(QgsLayoutDesignerInterface *designer)
Emitted when a new layout designer has been opened.
QgisInterface::layoutDesignerClosed
void layoutDesignerClosed()
Emitted after a layout designer window is closed.
QgisInterface::actionEllipseCenter2Points
virtual QAction * actionEllipseCenter2Points()=0
Returns the native add ellipse from center and 2 points action. Call trigger() on it to set the map t...
QgisInterface::advancedDigitizeToolBar
virtual QToolBar * advancedDigitizeToolBar()=0
Returns a reference to the main window "Advanced Digitizing" toolbar.
QgisInterface::actionDuplicateLayer
virtual QAction * actionDuplicateLayer()=0
QgisInterface::showOptionsDialog
virtual void showOptionsDialog(QWidget *parent=nullptr, const QString &currentPage=QString())=0
Opens the options dialog.
QgisInterface::actionZoomToLayer
virtual QAction * actionZoomToLayer()=0
Returns the native zoom to layer action. Call trigger() on it to zoom to the active layer.
qgslayertreeregistrybridge.h
QgisInterface::registerCustomLayoutDropHandler
virtual void registerCustomLayoutDropHandler(QgsLayoutCustomDropHandler *handler)=0
Register a new custom drop handler for layout windows.
QgisInterface::actionMapTips
virtual QAction * actionMapTips()=0
Returns the native map tips action. Call trigger() on it to toggle map tips.
QgisInterface::actionAddPgLayer
virtual QAction * actionAddPgLayer()=0
QgisInterface::invalidateLocatorResults
virtual void invalidateLocatorResults()=0
Invalidate results from the locator filter.
QgisInterface::editMenu
virtual QMenu * editMenu()=0
Returns a reference to the main window "Edit" menu.
QgisInterface::newLayerMenu
virtual QMenu * newLayerMenu()=0
Returns a reference to the main window "Create New Layer" menu.
QgisInterface::actionToggleEditing
virtual QAction * actionToggleEditing()=0
QgisInterface::webMenu
virtual QMenu * webMenu()=0
Returns a reference to the main window "Web" menu.
QgisInterface::addRasterToolBarIcon
virtual int addRasterToolBarIcon(QAction *qAction)=0
Add an icon to the Raster toolbar.
QgisInterface::openLayoutDesigners
virtual QList< QgsLayoutDesignerInterface * > openLayoutDesigners()=0
Returns all currently open layout designers.
QgisInterface::addCustomActionForLayer
virtual void addCustomActionForLayer(QAction *action, QgsMapLayer *layer)=0
Add action to context menu for a specific layer in the layer tree.
QgisInterface::dataSourceManagerToolBar
virtual QToolBar * dataSourceManagerToolBar()=0
Returns a reference to the main window "Data Source Manager" toolbar.
QgisInterface::actionAddWmsLayer
virtual QAction * actionAddWmsLayer()=0
QgisInterface::actionPanToSelected
virtual QAction * actionPanToSelected()=0
Returns the native pan to selected action. Call trigger() on it to pan the map canvas to the selectio...
QgisInterface::browserModel
virtual QgsBrowserGuiModel * browserModel()=0
Returns the application browser model.
QgisInterface::actionShowSelectedLayers
virtual QAction * actionShowSelectedLayers()=0
QgisInterface::removeToolBarIcon
virtual void removeToolBarIcon(QAction *qAction)=0
Remove an action (icon) from the plugin toolbar.
QgsAbstractMapToolHandler
An abstract base class for map tool handlers which automatically handle all the necessary logic for t...
Definition: qgsabstractmaptoolhandler.h:62
QgisInterface::actionOpenProject
virtual QAction * actionOpenProject()=0
Returns the Open Project action.
QgisInterface::actionToggleFullScreen
virtual QAction * actionToggleFullScreen()=0
QgisInterface::actionIdentify
virtual QAction * actionIdentify()=0
Returns the native identify action. Call trigger() on it to set the default identify map tool.
QgisInterface::showProjectPropertiesDialog
virtual void showProjectPropertiesDialog(const QString &currentPage=QString())=0
Opens the project properties dialog.
QgisInterface::rasterToolBar
virtual QToolBar * rasterToolBar()=0
Returns a reference to the main window "Raster" toolbar.
QgsMapLayerType
QgsMapLayerType
Types of layers that can be added to a map.
Definition: qgsmaplayer.h:68
QgisInterface::zoomToPrevious
virtual void zoomToPrevious()=0
Zooms to the previous view extent.
QgisInterface::actionRollbackEdits
virtual QAction * actionRollbackEdits()=0
QgisInterface::actionRollbackAllEdits
virtual QAction * actionRollbackAllEdits()=0
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:85
QgisInterface::activeLayer
virtual QgsMapLayer * activeLayer()=0
Returns a pointer to the active layer (layer selected in the legend)
QgisInterface::actionLayerSaveAs
virtual QAction * actionLayerSaveAs()=0
QgisInterface::actionSaveEdits
virtual QAction * actionSaveEdits()=0
QgisInterface::addVectorToolBarWidget
virtual QAction * addVectorToolBarWidget(QWidget *widget)=0
Add a widget to the vector toolbar.
QgsVectorLayerTools
Methods in this class are used to handle basic operations on vector layers.
Definition: qgsvectorlayertools.h:40
QgisInterface::registerDevToolWidgetFactory
virtual void registerDevToolWidgetFactory(QgsDevToolWidgetFactory *factory)=0
Register a new tool in the development/debugging tools dock.
qgis.h
QgisInterface::pluginManagerInterface
virtual QgsPluginManagerInterface * pluginManagerInterface()=0
QgisInterface::actionRegularPolygon2Points
virtual QAction * actionRegularPolygon2Points()=0
Returns the native add regular polygon from 2 points action. Call trigger() on it to set the map tool...
QgisInterface::removeWebToolBarIcon
virtual void removeWebToolBarIcon(QAction *qAction)=0
Remove an action (icon) from the Web toolbar.
QgisInterface::registerCustomDropHandler
virtual void registerCustomDropHandler(QgsCustomDropHandler *handler)=0
Register a new custom drop handler.
QgisInterface::actionZoomOut
virtual QAction * actionZoomOut()=0
Returns the native zoom out action. Call trigger() on it to set the default zoom out map tool.
QgisInterface::actionDraw
virtual QAction * actionDraw()=0
Returns the native draw action.
QgisInterface::actionHideSelectedLayers
virtual QAction * actionHideSelectedLayers()=0
QgisInterface::addToolBarIcon
virtual int addToolBarIcon(QAction *qAction)=0
Add an icon to the plugins toolbar.
QgisInterface::openURL
virtual Q_DECL_DEPRECATED void openURL(const QString &url, bool useQgisDocDirectory=true)=0
Open a url in the users browser.
QgisInterface::removeRasterToolBarIcon
virtual void removeRasterToolBarIcon(QAction *qAction)=0
Remove an action (icon) from the Raster toolbar.
QgisInterface::cadDockWidget
virtual QgsAdvancedDigitizingDockWidget * cadDockWidget()=0
Advanced digitizing dock widget.
QgisInterface::addToolBarWidget
virtual QAction * addToolBarWidget(QWidget *widget)=0
Add a widget to the plugins toolbar.
QgisInterface::addLayerMenu
virtual QMenu * addLayerMenu()=0
Returns a reference to the main window "Add Layer" menu.
QgisInterface::actionNewProject
virtual QAction * actionNewProject()=0
Returns the native New Project action.
QgisInterface::addCustomActionForLayerType
virtual void addCustomActionForLayerType(QAction *action, QString menu, QgsMapLayerType type, bool allLayers)=0
Add action to context menu for layers in the layer tree.
QgisInterface::actionZoomNext
virtual QAction * actionZoomNext()=0
Returns the native zoom next action. Call trigger() on it to zoom to next.
QgisInterface::actionFeatureAction
virtual QAction * actionFeatureAction()=0
Returns the native run action feature action. Call trigger() on it to set the default run feature act...
QgisInterface::actionAddAfsLayer
virtual QAction * actionAddAfsLayer()=0
Returns the native Add ArcGIS FeatureServer action.
QgisInterface::messageBar
virtual QgsMessageBar * messageBar()=0
Returns the message bar of the main app.
QgisInterface::vectorToolBar
virtual QToolBar * vectorToolBar()=0
Returns a reference to the main window "Vector" toolbar.
QgisInterface::registerApplicationExitBlocker
virtual void registerApplicationExitBlocker(QgsApplicationExitBlockerInterface *blocker)=0
Register a new application exit blocker, which can be used to prevent the QGIS application from exiti...
QgisInterface::addToolBar
virtual void addToolBar(QToolBar *toolbar, Qt::ToolBarArea area=Qt::TopToolBarArea)=0
Add a toolbar.
QgisInterface::actionVertexTool
virtual QAction * actionVertexTool()=0
Returns the native "Vertex Tool for All Layers" action.
QgsPluginManagerInterface
Definition: qgspluginmanagerinterface.h:32
QgisInterface::QgisInterface
QgisInterface()=default
Constructor.
QgisInterface::actionProjectProperties
virtual QAction * actionProjectProperties()=0
Returns the native Project Properties action.
QgsDevToolWidgetFactory
Factory class for creating custom developer/debugging tool pages.
Definition: qgsdevtoolwidgetfactory.h:34
QgisInterface::settingsMenu
virtual QMenu * settingsMenu()=0
Returns a reference to the main window "Settings" menu.
QgisInterface::removeVectorToolBarIcon
virtual void removeVectorToolBarIcon(QAction *qAction)=0
Remove an action (icon) from the Vector toolbar.
QgisInterface::unregisterDevToolWidgetFactory
virtual void unregisterDevToolWidgetFactory(QgsDevToolWidgetFactory *factory)=0
Unregister a previously registered tool factory from the development/debugging tools dock.
SIP_FACTORY
#define SIP_FACTORY
Definition: qgis_sip.h:76
QgisInterface::buildStyleSheet
virtual void buildStyleSheet(const QMap< QString, QVariant > &opts)=0
Generate stylesheet.
QgisInterface::setGpsPanelConnection
virtual void setGpsPanelConnection(QgsGpsConnection *connection)=0
Sets a GPS connection to use within the GPS Panel widget.
QgisInterface::actionZoomLast
virtual QAction * actionZoomLast()=0
Returns the native zoom last action. Call trigger() on it to zoom to last.
QgisInterface::actionEllipseCenterPoint
virtual QAction * actionEllipseCenterPoint()=0
Returns the native add ellipse from center and a point action. Call trigger() on it to set the map to...
QgisInterface::actionPluginListSeparator
virtual QAction * actionPluginListSeparator()=0
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition: qgis_sip.h:106
QgisInterface::createNewMapCanvas
virtual QgsMapCanvas * createNewMapCanvas(const QString &name)=0
Create a new map canvas with the specified unique name.
QgisInterface::actionCircle2TangentsPoint
virtual QAction * actionCircle2TangentsPoint()=0
Returns the native add circle from 2 tangents and a point action. Call trigger() on it to set the map...
QgisInterface::actionCircle2Points
virtual QAction * actionCircle2Points()=0
Returns the native add circle from 2 points action. Call trigger() on it to set the map tool.
QgisInterface::shapeDigitizeToolBar
virtual QToolBar * shapeDigitizeToolBar()=0
Returns a reference to the main window "Shape Digitizing" toolbar.
QgisInterface::actionShowBookmarks
virtual QAction * actionShowBookmarks()=0
Returns the native show bookmarks action. Call trigger() on it to open the bookmarks dialog.
QgisInterface::mapNavToolToolBar
virtual QToolBar * mapNavToolToolBar()=0
Returns a reference to the main window "Map Navigation" toolbar.
QgisInterface::getFeatureForm
virtual QgsAttributeDialog * getFeatureForm(QgsVectorLayer *l, QgsFeature &f)=0
Returns a feature form for a given feature.
Q_NOWARN_DEPRECATED_POP
#define Q_NOWARN_DEPRECATED_POP
Definition: qgis.h:797
QgisInterface::registerMapLayerConfigWidgetFactory
virtual void registerMapLayerConfigWidgetFactory(QgsMapLayerConfigWidgetFactory *factory)=0
Register a new tab in the map layer properties dialog.
QgisInterface::actionCircle3Tangents
virtual QAction * actionCircle3Tangents()=0
Returns the native add circle from 3 tangents action. Call trigger() on it to set the map tool.
QgisInterface::closeMapCanvas
virtual void closeMapCanvas(const QString &name)=0
Closes the additional map canvas with matching name.
QgisInterface::actionMoveFeature
virtual QAction * actionMoveFeature()=0
Returns the native Move Features action.
QgisInterface::messageTimeout
virtual int messageTimeout()=0
Returns the timeout for timed messages: default of 5 seconds.
QgisInterface::actionOpenStatisticalSummary
virtual QAction * actionOpenStatisticalSummary()=0
Statistical summary action.
QgisInterface::addRasterToolBarWidget
virtual QAction * addRasterToolBarWidget(QWidget *widget)=0
Add a widget to the raster toolbar.
QgisInterface::viewMenu
virtual QMenu * viewMenu()=0
Returns a reference to the main window "View" menu.
QgisInterface::unregisterMainWindowAction
virtual bool unregisterMainWindowAction(QAction *action)=0
Unregister a previously registered action. (e.g. when plugin is going to be unloaded)
QgisInterface::addRasterLayer
virtual QgsRasterLayer * addRasterLayer(const QString &rasterLayerPath, const QString &baseName=QString())=0
Adds a raster layer to the current project, given a raster layer file name.
QgsApplicationExitBlockerInterface
An interface that may be implemented to allow plugins or scripts to temporarily block the QGIS applic...
Definition: qgsapplicationexitblockerinterface.h:56
QgisInterface::registerLocatorFilter
virtual void registerLocatorFilter(QgsLocatorFilter *filter)=0
Registers a locator filter for the app's locator bar.
QgisInterface::actionAddRasterLayer
virtual QAction * actionAddRasterLayer()=0
QgisInterface::actionDeleteSelected
virtual QAction * actionDeleteSelected()=0
Returns the native Delete Selected Features action.
QgisInterface::actionRectangleExtent
virtual QAction * actionRectangleExtent()=0
Returns the native add rectangle from extent action. Call trigger() on it to set the map tool.
QgisInterface::actionSaveProjectAs
virtual QAction * actionSaveProjectAs()=0
Returns the native Save Project As action.
QgisInterface::removeDatabaseToolBarIcon
virtual void removeDatabaseToolBarIcon(QAction *qAction)=0
Remove an action (icon) from the Database toolbar.
QgisInterface::actionAbout
virtual QAction * actionAbout()=0
QgisInterface::newProject
virtual bool newProject(bool promptToSaveFlag=false)=0
Starts a new blank project.
QgisInterface::currentThemeChanged
void currentThemeChanged(const QString &theme)
Emitted when the current theme is changed so plugins can change their tool button icons.
QgisInterface::iconSize
virtual QSize iconSize(bool dockedToolbar=false) const =0
Returns the toolbar icon size.
QgisInterface::addWindow
virtual void addWindow(QAction *action)=0
Add window to Window menu.
QgisInterface::addPluginToWebMenu
virtual void addPluginToWebMenu(const QString &name, QAction *action)=0
Add action to the Web menu.
QgisInterface::defaultStyleSheetOptions
virtual QMap< QString, QVariant > defaultStyleSheetOptions()=0
Returns changeable options built from settings and/or defaults.
QgisInterface::actionNewBookmark
virtual QAction * actionNewBookmark()=0
Returns the native new bookmark action. Call trigger() on it to open the new bookmark dialog.
QgisInterface::actionSplitFeatures
virtual QAction * actionSplitFeatures()=0
Returns the native Split Features action.
QgisInterface::unregisterApplicationExitBlocker
virtual void unregisterApplicationExitBlocker(QgsApplicationExitBlockerInterface *blocker)=0
Unregister a previously registered application exit blocker.
QgisInterface::unregisterProjectPropertiesWidgetFactory
virtual void unregisterProjectPropertiesWidgetFactory(QgsOptionsWidgetFactory *factory)=0
Unregister a previously registered tab in the options dialog.
QgsMeshLayer
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Definition: qgsmeshlayer.h:95
QgisInterface::actionPasteFeatures
virtual QAction * actionPasteFeatures()=0
Returns the native Paste Features action.
QgisInterface::actionCheckQgisVersion
virtual QAction * actionCheckQgisVersion()=0
QgisInterface::actionHideDeselectedLayers
virtual QAction * actionHideDeselectedLayers()=0
Returns the Hide Deselected Layers action.
QgisInterface::removeWindow
virtual void removeWindow(QAction *action)=0
Remove window from Window menu.
QgisInterface::actionSaveActiveLayerEdits
virtual QAction * actionSaveActiveLayerEdits()=0
QgisInterface::addDockWidget
virtual void addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget)=0
Adds a dock widget to the main window, in the specified dock area.
QgisInterface::showLayoutManager
virtual void showLayoutManager()=0
Opens the layout manager dialog.
qgis_sip.h
QgisInterface::attributesToolBar
virtual QToolBar * attributesToolBar()=0
Returns a reference to the main window "Attributes" toolbar.
QgisInterface::digitizeToolBar
virtual QToolBar * digitizeToolBar()=0
Returns a reference to the main window "Digitize" toolbar.
SIP_TRANSFER
#define SIP_TRANSFER
Definition: qgis_sip.h:36
QgsLayerTreeGroup
Layer tree group node serves as a container for layers and further groups.
Definition: qgslayertreegroup.h:35
QgisInterface::layerTreeView
virtual QgsLayerTreeView * layerTreeView()=0
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition: qgsmessagebar.h:61
QgisInterface::mapToolActionGroup
virtual QActionGroup * mapToolActionGroup()=0
Returns the action group for map tools.
QgisInterface::layerSavedAs
void layerSavedAs(QgsMapLayer *l, const QString &path)
Emitted when a layer has been saved using save as.
QgisInterface::projectMenu
virtual QMenu * projectMenu()=0
Returns a reference to the main window "Project" menu.
QgisInterface::registerProjectPropertiesWidgetFactory
virtual void registerProjectPropertiesWidgetFactory(QgsOptionsWidgetFactory *factory)=0
Register a new tab in the project properties dialog.
QgisInterface::addWebToolBarIcon
virtual int addWebToolBarIcon(QAction *qAction)=0
Add an icon to the Web toolbar.
QgisInterface::actionAddVectorTileLayer
virtual QAction * actionAddVectorTileLayer()=0
Returns the native Add Vector Tile Layer action.
QgisInterface::actionZoomActualSize
virtual QAction * actionZoomActualSize()=0
Returns the native zoom resolution (100%) action. Call trigger() on it to zoom to actual size.
QgisInterface::actionRectangleCenterPoint
virtual QAction * actionRectangleCenterPoint()=0
Returns the native add rectangle from center and a point action. Call trigger() on it to set the map ...
QgisInterface::defaultStyleSheetFont
virtual QFont defaultStyleSheetFont()=0
Returns a reference font for initial qApp (may not be same as QgisApp)
QgisInterface::deregisterLocatorFilter
virtual void deregisterLocatorFilter(QgsLocatorFilter *filter)=0
Deregisters a locator filter from the app's locator bar and deletes it.
QgisInterface::actionZoomToSelected
virtual QAction * actionZoomToSelected()=0
Returns the native zoom to selected action. Call trigger() on it to zoom to the current selection.
QgisInterface::mapCanvases
virtual QList< QgsMapCanvas * > mapCanvases()=0
Returns a list of all map canvases open in the app.
QgisInterface::removePluginVectorMenu
virtual void removePluginVectorMenu(const QString &name, QAction *action)=0
Remove action from the Vector menu.
QgisInterface::actionAddAllToOverview
virtual QAction * actionAddAllToOverview()=0
QgisInterface::layoutDesignerWillBeClosed
void layoutDesignerWillBeClosed(QgsLayoutDesignerInterface *designer)
Emitted before a layout designer is going to be closed and deleted.
QgsRasterLayer
Represents a raster layer.
Definition: qgsrasterlayer.h:71
QgisInterface::actionHelpContents
virtual QAction * actionHelpContents()=0
QgisInterface::actionSaveMapAsImage
virtual QAction * actionSaveMapAsImage()=0
Returns the native Save Map as Image action.
QgisInterface::zoomToNext
virtual void zoomToNext()=0
Zooms to the next view extent.
QgisInterface::actionCutFeatures
virtual QAction * actionCutFeatures()=0
Returns the native Cut Features action.
QgisInterface::openMessageLog
virtual void openMessageLog()=0
Opens the message log dock widget.
QgsAdvancedDigitizingDockWidget
The QgsAdvancedDigitizingDockWidget class is a dockable widget used to handle the CAD tools on top of...
Definition: qgsadvanceddigitizingdockwidget.h:49
QgisInterface::vectorMenu
virtual QMenu * vectorMenu()=0
Returns a reference to the main window "Vector" menu.
QgisInterface::setActiveLayer
virtual bool setActiveLayer(QgsMapLayer *)=0
Set the active layer (layer gets selected in the legend) returns true if the layer exists,...
QgisInterface::projectRead
void projectRead()
Emitted when a project file is successfully read.
QgsCoordinateReferenceSystem
This class represents a coordinate reference system (CRS).
Definition: qgscoordinatereferencesystem.h:206
QgisInterface::actionSaveAllEdits
virtual QAction * actionSaveAllEdits()=0
QgisInterface::webToolBar
virtual QToolBar * webToolBar()=0
Returns a reference to the main window "Web" toolbar.
QgisInterface::registerOptionsWidgetFactory
virtual void registerOptionsWidgetFactory(QgsOptionsWidgetFactory *factory)=0
Register a new tab in the options dialog.
QgisInterface::actionRegularPolygonCenterCorner
virtual QAction * actionRegularPolygonCenterCorner()=0
Returns the native add regular polygon from center and a corner action. Call trigger() on it to set t...
QgisInterface::newProjectCreated
void newProjectCreated()
Emitted when starting an entirely new project.
QgisInterface::registerCustomProjectOpenHandler
virtual void registerCustomProjectOpenHandler(QgsCustomProjectOpenHandler *handler)=0
Register a new custom project open handler.
QgisInterface::takeAppScreenShots
virtual void takeAppScreenShots(const QString &saveDirectory, const int categories=0)
Take screenshots for user documentation.
Definition: qgisinterface.h:645
QgisInterface::addWebToolBarWidget
virtual QAction * addWebToolBarWidget(QWidget *widget)=0
Add a widget to the web toolbar.
QgisInterface::actionCancelAllEdits
virtual QAction * actionCancelAllEdits()=0
QgisInterface::showAttributeTable
virtual QDialog * showAttributeTable(QgsVectorLayer *l, const QString &filterExpression=QString())=0
Open attribute table dialog.
QgisInterface::layerMenu
virtual QMenu * layerMenu()=0
Returns a reference to the main window "Layer" menu.
QgisInterface::actionManagePlugins
virtual QAction * actionManagePlugins()=0
QgisInterface::actionAllEdits
virtual QAction * actionAllEdits()=0
QgisInterface::helpMenu
virtual QMenu * helpMenu()=0
Returns a reference to the main window "Help" menu.
QgisInterface::reloadConnections
virtual void reloadConnections()=0
Triggered when connections have changed.
QgisInterface::actionZoomFullExtent
virtual QAction * actionZoomFullExtent()=0
Returns the native zoom full extent action. Call trigger() on it to zoom to the full extent.
QgisInterface::pluginToolBar
virtual QToolBar * pluginToolBar()=0
Returns a reference to the main window "Plugin" toolbar.
QgisInterface::databaseMenu
virtual QMenu * databaseMenu()=0
Returns a reference to the main window "Database" menu.
QgisInterface::copySelectionToClipboard
virtual void copySelectionToClipboard(QgsMapLayer *)=0
Copy selected features from the layer to clipboard.
QgisInterface::editableLayers
virtual QList< QgsMapLayer * > editableLayers(bool modified=false) const =0
Returns vector layers in edit mode.
QgisInterface::actionSelectPolygon
virtual QAction * actionSelectPolygon()=0
Returns the native select polygon action. Call trigger() on it to set the default select polygon map ...
QgisInterface::actionPasteLayerStyle
virtual QAction * actionPasteLayerStyle()=0
QgisInterface::zoomToActiveLayer
virtual void zoomToActiveLayer()=0
Zooms to extent of the active layer.
QgisInterface::registerMapToolHandler
virtual void registerMapToolHandler(QgsAbstractMapToolHandler *handler)=0
Register a new application map tool handler, which can be used to automatically setup all connections...
QgisInterface::vectorLayerTools
virtual QgsVectorLayerTools * vectorLayerTools()=0
Access the vector layer tools instance.
QgisInterface::actionAddPart
virtual QAction * actionAddPart()=0
Returns the native Add Part action.
QgisInterface::actionRemoveAllFromOverview
virtual QAction * actionRemoveAllFromOverview()=0
QgisInterface::actionSelectRectangle
virtual QAction * actionSelectRectangle()=0
Returns the native select rectangle action. Call trigger() on it to set the default select rectangle ...
QgisInterface::addPluginToDatabaseMenu
virtual void addPluginToDatabaseMenu(const QString &name, QAction *action)=0
Add action to the Database menu.
QgisInterface::actionCopyFeatures
virtual QAction * actionCopyFeatures()=0
Returns the native Copy Features action.
QgisInterface::selectionToolBar
virtual QToolBar * selectionToolBar()=0
Returns a reference to the main window "Selection" toolbar.
QgisInterface::actionCopyLayerStyle
virtual QAction * actionCopyLayerStyle()=0
QgisInterface::unregisterCustomLayoutDropHandler
virtual void unregisterCustomLayoutDropHandler(QgsLayoutCustomDropHandler *handler)=0
Unregister a previously registered custom drop handler for layout windows.
QgisInterface::actionShowAllLayers
virtual QAction * actionShowAllLayers()=0
QgisInterface::actionDeleteRing
virtual QAction * actionDeleteRing()=0
Returns the native Delete Ring action.
QgisInterface::actionToggleSelectedLayersIndependently
virtual QAction * actionToggleSelectedLayersIndependently()=0
Returns the Toggle Selected Layers Independently action.
QgisInterface::openFeatureForm
virtual bool openFeatureForm(QgsVectorLayer *l, QgsFeature &f, bool updateFeatureOnly=false, bool showModal=true)=0
Opens a new feature form.
QgisInterface::addVectorLayer
virtual QgsVectorLayer * addVectorLayer(const QString &vectorLayerPath, const QString &baseName, const QString &providerKey)=0
Adds a vector layer to the current project.
QgisInterface::actionEllipseExtent
virtual QAction * actionEllipseExtent()=0
Returns the native add ellipse from an extent action. Call trigger() on it to set the map tool.
QgisInterface::actionEllipseFoci
virtual QAction * actionEllipseFoci()=0
Returns the native add ellipse from foci action. Call trigger() on it to set the map tool.
QgisInterface::statusBarIface
virtual QgsStatusBar * statusBarIface()=0
Returns a pointer to the app's status bar interface.
QgsStatusBar
A proxy widget for QStatusBar.
Definition: qgsstatusbar.h:47
QgisInterface::actionOpenTable
virtual QAction * actionOpenTable()=0
QgisInterface::pluginHelpMenu
virtual QMenu * pluginHelpMenu()=0
Returns a reference to the main window "Plugin Help" sub-menu.
QgsLayout
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition: qgslayout.h:50
QgisInterface::locatorSearch
virtual void locatorSearch(const QString &searchText)=0
This will perform a search in the locator bar by setting the line edit text to searchText and automat...
QgisInterface::actionZoomIn
virtual QAction * actionZoomIn()=0
Returns the native zoom in action. Call trigger() on it to set the default zoom in map tool.
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition: qgsvectorlayer.h:387
QgisInterface::removePluginMenu
virtual void removePluginMenu(const QString &name, QAction *action)=0
Remove action from the plugins menu.
QgisInterface
QgisInterface Abstract base class defining interfaces exposed by QgisApp and made available to plugin...
Definition: qgisinterface.h:88
QgsMapLayer
Base class for all map layer types.
Definition: qgsmaplayer.h:83
QgisInterface::actionRectangle3PointsDistance
virtual QAction * actionRectangle3PointsDistance()=0
Returns the native add rectangle from 3 points (distance from 2nd and 3rd points) action....
QgisInterface::actionHideAllLayers
virtual QAction * actionHideAllLayers()=0
QgsLayoutCustomDropHandler
Abstract base class that may be implemented to handle new types of data to be dropped or pasted in QG...
Definition: qgslayoutcustomdrophandler.h:34
QgsCustomDropHandler
Abstract base class that may be implemented to handle new types of data to be dropped in QGIS.
Definition: qgscustomdrophandler.h:48
QgisInterface::addTabifiedDockWidget
virtual void addTabifiedDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget, const QStringList &tabifyWith=QStringList(), bool raiseTab=false)=0
Add a dock widget to the given area and tabify it (if other dock widgets exist in the same area).
QgsLayoutDesignerInterface
A common interface for layout designer dialogs and widgets.
Definition: qgslayoutdesignerinterface.h:55
QgisInterface::layerToolBar
virtual QToolBar * layerToolBar()=0
Returns a reference to the main window "Layer" toolbar.
QgisInterface::removePluginDatabaseMenu
virtual void removePluginDatabaseMenu(const QString &name, QAction *action)=0
Remove action from the Database menu.
QgisInterface::actionSaveProject
virtual QAction * actionSaveProject()=0
Returns the native Save Project action.
QgisInterface::removeCustomActionForLayerType
virtual bool removeCustomActionForLayerType(QAction *action)=0
Remove action for layers in the layer tree previously added with addCustomActionForLayerType()
QgisInterface::actionRectangle3PointsProjected
virtual QAction * actionRectangle3PointsProjected()=0
Returns the native add rectangle from 3 points (distance from projected 3rd point on segment p1 and p...
QgisInterface::actionShowLayoutManager
virtual QAction * actionShowLayoutManager()=0
Show layout manager action.
QgisInterface::addPluginToRasterMenu
virtual void addPluginToRasterMenu(const QString &name, QAction *action)=0
Add action to the Raster menu.
QgisInterface::unregisterOptionsWidgetFactory
virtual void unregisterOptionsWidgetFactory(QgsOptionsWidgetFactory *factory)=0
Unregister a previously registered tab in the options dialog.
QgisInterface::firstRightStandardMenu
virtual QMenu * firstRightStandardMenu()=0
Returns a reference to the right most standard menu, which is usually the last menu item before the "...
QgisInterface::addRasterLayer
virtual QgsRasterLayer * addRasterLayer(const QString &url, const QString &layerName, const QString &providerKey)=0
Adds a raster layer to the current project, from the specified raster data provider.
QgsGpsConnection
Abstract base class for connection to a GPS device.
Definition: qgsgpsconnection.h:247
QgisInterface::layerTreeCanvasBridge
virtual QgsLayerTreeMapCanvasBridge * layerTreeCanvasBridge()=0
Returns a pointer to the layer tree canvas bridge.
QgisInterface::preloadForm
virtual void preloadForm(const QString &uifile)=0
This method is only needed when using a UI form with a custom widget plugin and calling openFeatureFo...
QgisInterface::pluginMenu
virtual QMenu * pluginMenu()=0
Returns a reference to the main window "Plugin" menu.
QgisInterface::addProject
virtual bool addProject(const QString &project)=0
Adds (opens) a project.
QgisInterface::actionQgisHomePage
virtual QAction * actionQgisHomePage()=0
QgsFeature
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Definition: qgsfeature.h:56
QgisInterface::actionAddXyzLayer
virtual QAction * actionAddXyzLayer()=0
Returns the native Add XYZ Layer action.
QgisInterface::layerTreeInsertionPoint
virtual QgsLayerTreeRegistryBridge::InsertionPoint layerTreeInsertionPoint()=0
Returns the insertion point.
QgsLayerTreeView
The QgsLayerTreeView class extends QTreeView and provides some additional functionality when working ...
Definition: qgslayertreeview.h:52
QgisInterface::actionSimplifyFeature
virtual QAction * actionSimplifyFeature()=0
Returns the native Simplify/Smooth Features action.
QgisInterface::actionRegularPolygonCenterPoint
virtual QAction * actionRegularPolygonCenterPoint()=0
Returns the native add regular polygon from center and a point action. Call trigger() on it to set th...
QgisInterface::addVectorTileLayer
virtual QgsVectorTileLayer * addVectorTileLayer(const QString &url, const QString &baseName)=0
Adds a vector tile layer to the current project.
QgisInterface::actionPan
virtual QAction * actionPan()=0
Returns the native pan action. Call trigger() on it to set the default pan map tool.
QgsMasterLayoutInterface
Interface for master layout type objects, such as print layouts and reports.
Definition: qgsmasterlayoutinterface.h:43
QgisInterface::zoomFull
virtual void zoomFull()=0
Zooms to the full extent of all map layers.
QgisInterface::actionSplitParts
virtual QAction * actionSplitParts()=0
Returns the native Split Parts action.
QgisInterface::currentLayerChanged
void currentLayerChanged(QgsMapLayer *layer)
Emitted whenever current (selected) layer changes.
QgisInterface::actionOpenFieldCalculator
virtual QAction * actionOpenFieldCalculator()=0
QgisInterface::actionDeletePart
virtual QAction * actionDeletePart()=0
Returns the native Delete Part action.
QgisInterface::unregisterCustomProjectOpenHandler
virtual void unregisterCustomProjectOpenHandler(QgsCustomProjectOpenHandler *handler)=0
Unregister a previously registered custom project open handler.
QgisInterface::addToolBar
virtual QToolBar * addToolBar(const QString &name)=0
Add toolbar with specified name.
QgisInterface::removeAddLayerAction
virtual void removeAddLayerAction(QAction *action)=0
Remove "add layer" action from layer menu.
QgisInterface::actionExit
virtual QAction * actionExit()=0
Returns the Exit QGIS action.
QgisInterface::actionCircle3Points
virtual QAction * actionCircle3Points()=0
Returns the native add circle from 3 points action. Call trigger() on it to set the map tool.
Q_NOWARN_DEPRECATED_PUSH
#define Q_NOWARN_DEPRECATED_PUSH
Definition: qgis.h:796
QgisInterface::actionMeasureArea
virtual QAction * actionMeasureArea()=0
Returns the native measure area action. Call trigger() on it to set the default measure area map tool...
QgisInterface::actionSelect
virtual QAction * actionSelect()=0
Returns the native select action. Call trigger() on it to set the default select map tool.
QgisInterface::addUserInputWidget
virtual void addUserInputWidget(QWidget *widget)=0
Adds a widget to the user input tool bar.
QgisInterface::databaseToolBar
virtual QToolBar * databaseToolBar()=0
Returns a reference to the main window "Database" toolbar.
QgisInterface::mapCanvas
virtual QgsMapCanvas * mapCanvas()=0
Returns a pointer to the map canvas.
QgisInterface::addMeshLayer
virtual QgsMeshLayer * addMeshLayer(const QString &url, const QString &baseName, const QString &providerKey)=0
Adds a mesh layer to the current project.
QgisInterface::actionShowPythonDialog
virtual QAction * actionShowPythonDialog()=0
QgisInterface::actionCancelEdits
virtual QAction * actionCancelEdits()=0
qgscoordinatereferencesystem.h
QgisInterface::openLayoutDesigner
virtual QgsLayoutDesignerInterface * openLayoutDesigner(QgsMasterLayoutInterface *layout)=0
Opens a new layout designer dialog for the specified layout, or brings an already open designer windo...
QgisInterface::actionToggleSelectedLayers
virtual QAction * actionToggleSelectedLayers()=0
Returns the Toggle Selected Layers action.
QgsBrowserGuiModel
A model for showing available data sources and other items in a structured tree.
Definition: qgsbrowserguimodel.h:38
QgisInterface::addPluginToVectorMenu
virtual void addPluginToVectorMenu(const QString &name, QAction *action)=0
Add action to the Vector menu.
QgisInterface::helpToolBar
virtual QToolBar * helpToolBar()=0
Returns a reference to the main window "Help" toolbar.
QgisInterface::askForDatumTransform
virtual bool askForDatumTransform(QgsCoordinateReferenceSystem sourceCrs, QgsCoordinateReferenceSystem destinationCrs)=0
Checks available datum transforms and ask user if several are available and none is chosen.
QgisInterface::addPluginToMenu
virtual void addPluginToMenu(const QString &name, QAction *action)=0
Add action to the plugins menu.
QgsCustomProjectOpenHandler
Abstract base class that may be implemented to handle new project file types within the QGIS applicat...
Definition: qgscustomprojectopenhandler.h:38
QgisInterface::unregisterMapToolHandler
virtual void unregisterMapToolHandler(QgsAbstractMapToolHandler *handler)=0
Unregister a previously registered map tool handler.
QgisInterface::saveStyleSheetOptions
virtual void saveStyleSheetOptions(const QMap< QString, QVariant > &opts)=0
Save changed default option keys/values to user settings.
QgisInterface::actionCustomProjection
virtual QAction * actionCustomProjection()=0
QgisInterface::actionAddOgrLayer
virtual QAction * actionAddOgrLayer()=0
QgisInterface::insertAddLayerAction
virtual void insertAddLayerAction(QAction *action)=0
Add "add layer" action to layer menu.
QgisInterface::actionMeasure
virtual QAction * actionMeasure()=0
Returns the native measure action. Call trigger() on it to set the default measure map tool.
QgisInterface::actionCreatePrintLayout
virtual QAction * actionCreatePrintLayout()=0
Create new print layout action.
QgsLayerTreeMapCanvasBridge
The QgsLayerTreeMapCanvasBridge class takes care of updates of layer set for QgsMapCanvas from a laye...
Definition: qgslayertreemapcanvasbridge.h:49
QgsMapLayerConfigWidgetFactory
Factory class for creating custom map layer property pages.
Definition: qgsmaplayerconfigwidgetfactory.h:34
QgisInterface::actionNewVectorLayer
virtual QAction * actionNewVectorLayer()=0
QgisInterface::registerMainWindowAction
virtual bool registerMainWindowAction(QAction *action, const QString &defaultShortcut)=0
Register action to the shortcuts manager so its shortcut can be changed in GUI.