QGIS API Documentation  3.17.0-Master (df2c9ff931)
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;
62 class QgsPointCloudLayer;
64 class QgsLocatorFilter;
65 class QgsStatusBar;
66 class QgsMeshLayer;
67 class QgsBrowserGuiModel;
69 class QgsGpsConnection;
72 
87 class GUI_EXPORT QgisInterface : public QObject
88 {
89  Q_OBJECT
90 
91  public:
92 
94  QgisInterface() = default;
95 
96  virtual QgsPluginManagerInterface *pluginManagerInterface() = 0;
97 
98  virtual QgsLayerTreeView *layerTreeView() = 0;
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 
173  virtual QgsLayerTreeMapCanvasBridge *layerTreeCanvasBridge() = 0;
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 
198  virtual QgsAdvancedDigitizingDockWidget *cadDockWidget() = 0;
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;
478 
484  Q_DECL_DEPRECATED virtual QAction *actionZoomToLayer() = 0 SIP_DEPRECATED;
485 
490  virtual QAction *actionZoomToLayers() = 0;
491 
493  virtual QAction *actionZoomToSelected() = 0;
495  virtual QAction *actionZoomLast() = 0;
497  virtual QAction *actionZoomNext() = 0;
499  virtual QAction *actionZoomActualSize() = 0;
501  virtual QAction *actionMapTips() = 0;
503  virtual QAction *actionNewBookmark() = 0;
505  virtual QAction *actionShowBookmarks() = 0;
507  virtual QAction *actionDraw() = 0;
508 
509  // Layer menu actions
510  virtual QAction *actionNewVectorLayer() = 0;
511  virtual QAction *actionAddOgrLayer() = 0;
512  virtual QAction *actionAddRasterLayer() = 0;
513  virtual QAction *actionAddPgLayer() = 0;
514  virtual QAction *actionAddWmsLayer() = 0;
515 
520  virtual QAction *actionAddXyzLayer() = 0;
521 
526  virtual QAction *actionAddVectorTileLayer() = 0;
527 
532  virtual QAction *actionAddPointCloudLayer() = 0;
533 
535  virtual QAction *actionAddAfsLayer() = 0;
537  virtual QAction *actionAddAmsLayer() = 0;
538  virtual QAction *actionCopyLayerStyle() = 0;
539  virtual QAction *actionPasteLayerStyle() = 0;
540  virtual QAction *actionOpenTable() = 0;
541  virtual QAction *actionOpenFieldCalculator() = 0;
542 
547  virtual QAction *actionOpenStatisticalSummary() = 0;
548 
549  virtual QAction *actionToggleEditing() = 0;
550  virtual QAction *actionSaveActiveLayerEdits() = 0;
551  virtual QAction *actionAllEdits() = 0;
552  virtual QAction *actionSaveEdits() = 0;
553  virtual QAction *actionSaveAllEdits() = 0;
554  virtual QAction *actionRollbackEdits() = 0;
555  virtual QAction *actionRollbackAllEdits() = 0;
556  virtual QAction *actionCancelEdits() = 0;
557  virtual QAction *actionCancelAllEdits() = 0;
558  virtual QAction *actionLayerSaveAs() = 0;
559  virtual QAction *actionDuplicateLayer() = 0;
560  virtual QAction *actionLayerProperties() = 0;
561  virtual QAction *actionAddToOverview() = 0;
562  virtual QAction *actionAddAllToOverview() = 0;
563  virtual QAction *actionRemoveAllFromOverview() = 0;
564  virtual QAction *actionHideAllLayers() = 0;
565  virtual QAction *actionShowAllLayers() = 0;
566  virtual QAction *actionHideSelectedLayers() = 0;
567 
572  virtual QAction *actionToggleSelectedLayers() = 0;
573 
578  virtual QAction *actionToggleSelectedLayersIndependently() = 0;
579 
584  virtual QAction *actionHideDeselectedLayers() = 0;
585  virtual QAction *actionShowSelectedLayers() = 0;
586 
587  // Plugin menu actions
588  virtual QAction *actionManagePlugins() = 0;
589  virtual QAction *actionPluginListSeparator() = 0;
590  virtual QAction *actionShowPythonDialog() = 0;
591 
592  // Settings menu actions
593  virtual QAction *actionToggleFullScreen() = 0;
594  virtual QAction *actionOptions() = 0;
595  virtual QAction *actionCustomProjection() = 0;
596 
597  // Help menu actions
598  virtual QAction *actionHelpContents() = 0;
599  virtual QAction *actionQgisHomePage() = 0;
600  virtual QAction *actionCheckQgisVersion() = 0;
601  virtual QAction *actionAbout() = 0;
602 
603  // Shape digitize actions
605  virtual QAction *actionCircle2Points() = 0;
607  virtual QAction *actionCircle3Points() = 0;
609  virtual QAction *actionCircle3Tangents() = 0;
611  virtual QAction *actionCircle2TangentsPoint() = 0;
613  virtual QAction *actionCircleCenterPoint() = 0;
615  virtual QAction *actionEllipseCenter2Points() = 0;
617  virtual QAction *actionEllipseCenterPoint() = 0;
619  virtual QAction *actionEllipseExtent() = 0;
621  virtual QAction *actionEllipseFoci() = 0;
623  virtual QAction *actionRectangleCenterPoint() = 0;
625  virtual QAction *actionRectangleExtent() = 0;
627  virtual QAction *actionRectangle3PointsDistance() = 0;
629  virtual QAction *actionRectangle3PointsProjected() = 0;
631  virtual QAction *actionRegularPolygon2Points() = 0;
633  virtual QAction *actionRegularPolygonCenterPoint() = 0;
635  virtual QAction *actionRegularPolygonCenterCorner() = 0;
636 
644  virtual QgsVectorLayerTools *vectorLayerTools() = 0;
645 
647  virtual int messageTimeout() = 0;
648 
655  virtual QgsStatusBar *statusBarIface() = 0;
656 
664  virtual void takeAppScreenShots( const QString &saveDirectory, const int categories = 0 ) {Q_UNUSED( saveDirectory ) Q_UNUSED( categories );}
665 
671  virtual QgsLayerTreeRegistryBridge::InsertionPoint layerTreeInsertionPoint() = 0;
672 
673  public slots: // TODO: do these functions really need to be slots?
674 
675  /* Exposed functions */
676 
680  virtual void zoomFull() = 0;
681 
685  virtual void zoomToPrevious() = 0;
686 
690  virtual void zoomToNext() = 0;
691 
695  virtual void zoomToActiveLayer() = 0;
696 
700  virtual QgsVectorLayer *addVectorLayer( const QString &vectorLayerPath, const QString &baseName, const QString &providerKey ) = 0;
701 
705  virtual QgsRasterLayer *addRasterLayer( const QString &rasterLayerPath, const QString &baseName = QString() ) = 0;
706 
710  virtual QgsRasterLayer *addRasterLayer( const QString &url, const QString &layerName, const QString &providerKey ) = 0;
711 
715  virtual QgsMeshLayer *addMeshLayer( const QString &url, const QString &baseName, const QString &providerKey ) = 0;
716 
721  virtual QgsVectorTileLayer *addVectorTileLayer( const QString &url, const QString &baseName ) = 0;
722 
727  virtual QgsPointCloudLayer *addPointCloudLayer( const QString &url, const QString &baseName, const QString &providerKey ) = 0;
728 
730  virtual bool addProject( const QString &project ) = 0;
731 
742  virtual bool newProject( bool promptToSaveFlag = false ) = 0;
743 
751  virtual void reloadConnections( ) = 0;
752 
757  virtual bool setActiveLayer( QgsMapLayer * ) = 0;
758 
763  virtual void copySelectionToClipboard( QgsMapLayer * ) = 0;
764 
769  virtual void pasteFromClipboard( QgsMapLayer * ) = 0;
770 
772  virtual int addToolBarIcon( QAction *qAction ) = 0;
773 
782  virtual QAction *addToolBarWidget( QWidget *widget SIP_TRANSFER ) = 0;
783 
785  virtual void removeToolBarIcon( QAction *qAction ) = 0;
786 
795  virtual QAction *addRasterToolBarWidget( QWidget *widget SIP_TRANSFER ) = 0;
796 
798  virtual int addRasterToolBarIcon( QAction *qAction ) = 0;
799 
801  virtual void removeRasterToolBarIcon( QAction *qAction ) = 0;
802 
804  virtual int addVectorToolBarIcon( QAction *qAction ) = 0;
805 
814  virtual QAction *addVectorToolBarWidget( QWidget *widget SIP_TRANSFER ) = 0;
815 
817  virtual void removeVectorToolBarIcon( QAction *qAction ) = 0;
818 
820  virtual int addDatabaseToolBarIcon( QAction *qAction ) = 0;
821 
830  virtual QAction *addDatabaseToolBarWidget( QWidget *widget SIP_TRANSFER ) = 0;
831 
833  virtual void removeDatabaseToolBarIcon( QAction *qAction ) = 0;
834 
836  virtual int addWebToolBarIcon( QAction *qAction ) = 0;
837 
846  virtual QAction *addWebToolBarWidget( QWidget *widget SIP_TRANSFER ) = 0;
847 
849  virtual void removeWebToolBarIcon( QAction *qAction ) = 0;
850 
852  virtual QToolBar *addToolBar( const QString &name ) = 0 SIP_FACTORY;
853 
858  virtual void addToolBar( QToolBar *toolbar SIP_TRANSFER, Qt::ToolBarArea area = Qt::TopToolBarArea ) = 0;
859 
863  virtual void openMessageLog() = 0;
864 
866  virtual void addUserInputWidget( QWidget *widget ) = 0;
867 
872  virtual void showLayoutManager() = 0;
873 
880  virtual QgsLayoutDesignerInterface *openLayoutDesigner( QgsMasterLayoutInterface *layout ) = 0;
881 
887  virtual void showOptionsDialog( QWidget *parent = nullptr, const QString &currentPage = QString() ) = 0;
888 
894  virtual void showProjectPropertiesDialog( const QString &currentPage = QString() ) = 0;
895 
900  virtual void buildStyleSheet( const QMap<QString, QVariant> &opts ) = 0;
901 
903  virtual void saveStyleSheetOptions( const QMap<QString, QVariant> &opts ) = 0;
904 
906  virtual void addPluginToMenu( const QString &name, QAction *action ) = 0;
907 
909  virtual void removePluginMenu( const QString &name, QAction *action ) = 0;
910 
912  virtual void insertAddLayerAction( QAction *action ) = 0;
913 
915  virtual void removeAddLayerAction( QAction *action ) = 0;
916 
918  virtual void addPluginToDatabaseMenu( const QString &name, QAction *action ) = 0;
919 
921  virtual void removePluginDatabaseMenu( const QString &name, QAction *action ) = 0;
922 
924  virtual void addPluginToRasterMenu( const QString &name, QAction *action ) = 0;
925 
927  virtual void removePluginRasterMenu( const QString &name, QAction *action ) = 0;
928 
930  virtual void addPluginToVectorMenu( const QString &name, QAction *action ) = 0;
931 
933  virtual void removePluginVectorMenu( const QString &name, QAction *action ) = 0;
934 
936  virtual void addPluginToWebMenu( const QString &name, QAction *action ) = 0;
937 
939  virtual void removePluginWebMenu( const QString &name, QAction *action ) = 0;
940 
947  virtual void addDockWidget( Qt::DockWidgetArea area, QDockWidget *dockwidget ) = 0;
948 
963  virtual void addTabifiedDockWidget( Qt::DockWidgetArea area, QDockWidget *dockwidget, const QStringList &tabifyWith = QStringList(), bool raiseTab = false ) = 0;
964 
970  virtual void removeDockWidget( QDockWidget *dockwidget ) = 0;
971 
973  virtual void showLayerProperties( QgsMapLayer *l ) = 0;
974 
976  virtual QDialog *showAttributeTable( QgsVectorLayer *l, const QString &filterExpression = QString() ) = 0;
977 
982  virtual void addWindow( QAction *action ) = 0;
983 
988  virtual void removeWindow( QAction *action ) = 0;
989 
991  virtual bool registerMainWindowAction( QAction *action, const QString &defaultShortcut ) = 0;
992 
994  virtual bool unregisterMainWindowAction( QAction *action ) = 0;
995 
1004  virtual void registerMapLayerConfigWidgetFactory( QgsMapLayerConfigWidgetFactory *factory ) = 0;
1005 
1012  virtual void unregisterMapLayerConfigWidgetFactory( QgsMapLayerConfigWidgetFactory *factory ) = 0;
1013 
1022  virtual void registerOptionsWidgetFactory( QgsOptionsWidgetFactory *factory ) = 0;
1023 
1030  virtual void unregisterOptionsWidgetFactory( QgsOptionsWidgetFactory *factory ) = 0;
1031 
1040  virtual void registerProjectPropertiesWidgetFactory( QgsOptionsWidgetFactory *factory ) = 0;
1041 
1048  virtual void unregisterProjectPropertiesWidgetFactory( QgsOptionsWidgetFactory *factory ) = 0;
1049 
1057  virtual void registerDevToolWidgetFactory( QgsDevToolWidgetFactory *factory ) = 0;
1058 
1064  virtual void unregisterDevToolWidgetFactory( QgsDevToolWidgetFactory *factory ) = 0;
1065 
1076  virtual void registerApplicationExitBlocker( QgsApplicationExitBlockerInterface *blocker ) = 0;
1077 
1083  virtual void unregisterApplicationExitBlocker( QgsApplicationExitBlockerInterface *blocker ) = 0;
1084 
1097  virtual void registerMapToolHandler( QgsAbstractMapToolHandler *handler ) = 0;
1098 
1104  virtual void unregisterMapToolHandler( QgsAbstractMapToolHandler *handler ) = 0;
1105 
1114  virtual void registerCustomDropHandler( QgsCustomDropHandler *handler ) = 0;
1115 
1122  virtual void unregisterCustomDropHandler( QgsCustomDropHandler *handler ) = 0;
1123 
1132  virtual void registerCustomProjectOpenHandler( QgsCustomProjectOpenHandler *handler ) = 0;
1133 
1140  virtual void unregisterCustomProjectOpenHandler( QgsCustomProjectOpenHandler *handler ) = 0;
1141 
1150  virtual void registerCustomLayoutDropHandler( QgsLayoutCustomDropHandler *handler ) = 0;
1151 
1158  virtual void unregisterCustomLayoutDropHandler( QgsLayoutCustomDropHandler *handler ) = 0;
1159 
1160  // TODO is this deprecated in favour of QgsContextHelp?
1161 
1171 #ifndef Q_MOC_RUN
1172  Q_DECL_DEPRECATED
1173 #endif
1174  virtual void openURL( const QString &url, bool useQgisDocDirectory = true ) = 0 SIP_DEPRECATED;
1175 
1184  virtual bool openFeatureForm( QgsVectorLayer *l, QgsFeature &f, bool updateFeatureOnly = false, bool showModal = true ) = 0;
1185 
1194  virtual QgsAttributeDialog *getFeatureForm( QgsVectorLayer *l, QgsFeature &f ) = 0;
1195 
1208  virtual void preloadForm( const QString &uifile ) = 0;
1209 
1216  virtual void locatorSearch( const QString &searchText ) = 0;
1217 
1226  virtual void registerLocatorFilter( QgsLocatorFilter *filter SIP_TRANSFER ) = 0;
1227 
1238  virtual void deregisterLocatorFilter( QgsLocatorFilter *filter ) = 0;
1239 
1247  virtual void invalidateLocatorResults() = 0;
1248 
1255  virtual bool askForDatumTransform( QgsCoordinateReferenceSystem sourceCrs, QgsCoordinateReferenceSystem destinationCrs ) = 0;
1256 
1262  virtual QgsBrowserGuiModel *browserModel() = 0;
1263 
1272  virtual void setGpsPanelConnection( QgsGpsConnection *connection ) = 0;
1273 
1274  signals:
1275 
1280  void currentLayerChanged( QgsMapLayer *layer );
1281 
1287  void currentThemeChanged( const QString &theme );
1288 
1294  void layoutDesignerOpened( QgsLayoutDesignerInterface *designer );
1295 
1303  void layoutDesignerWillBeClosed( QgsLayoutDesignerInterface *designer );
1304 
1311  void layoutDesignerClosed();
1312 
1316  void initializationCompleted();
1317 
1324  void projectRead();
1325 
1334  void newProjectCreated();
1335 
1340  void layerSavedAs( QgsMapLayer *l, const QString &path );
1341 
1342 };
1344 
1345 #endif //#ifndef QGISINTERFACE_H
Methods in this class are used to handle basic operations on vector layers.
Layer tree group node serves as a container for layers and further groups.
Base class for all map layer types.
Definition: qgsmaplayer.h:84
An abstract base class for map tool handlers which automatically handle all the necessary logic for t...
The QgsLayerTreeView class extends QTreeView and provides some additional functionality when working ...
Implements a map layer that is dedicated to rendering of vector tiles.
The QgsLayerTreeMapCanvasBridge class takes care of updates of layer set for QgsMapCanvas from a laye...
Represents a raster layer.
An interface that may be implemented to allow plugins or scripts to temporarily block the QGIS applic...
Factory class for creating custom map layer property pages.
Factory class for creating custom developer/debugging tool pages.
#define Q_NOWARN_DEPRECATED_PUSH
Definition: qgis.h:797
A bar for displaying non-blocking messages to the user.
Definition: qgsmessagebar.h:60
A common interface for layout designer dialogs and widgets.
Abstract base class that may be implemented to handle new project file types within the QGIS applicat...
A model for showing available data sources and other items in a structured tree.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Definition: qgsfeature.h:55
Abstract base class that may be implemented to handle new types of data to be dropped or pasted in QG...
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:85
Abstract base class that may be implemented to handle new types of data to be dropped in QGIS...
#define SIP_TRANSFER
Definition: qgis_sip.h:36
Abstract base class for filters which collect locator results.
#define SIP_FACTORY
Definition: qgis_sip.h:76
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition: qgslayout.h:49
#define SIP_DEPRECATED
Definition: qgis_sip.h:106
QSize iconSize(bool dockableToolbar)
Returns the user-preferred size of a window&#39;s toolbar icons.
QgisInterface Abstract base class defining interfaces exposed by QgisApp and made available to plugin...
Definition: qgisinterface.h:87
Represents a map layer supporting display of point clouds.
#define Q_NOWARN_DEPRECATED_POP
Definition: qgis.h:798
This class represents a coordinate reference system (CRS).
A factory class for creating custom options pages.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Definition: qgsmeshlayer.h:94
QgsMapLayerType
Types of layers that can be added to a map.
Definition: qgsmaplayer.h:68
A structure to define the insertion point to the layer tree.
Interface for master layout type objects, such as print layouts and reports.
The QgsAdvancedDigitizingDockWidget class is a dockable widget used to handle the CAD tools on top of...
Represents a vector layer which manages a vector based data sets.
virtual void takeAppScreenShots(const QString &saveDirectory, const int categories=0)
Take screenshots for user documentation.
Abstract base class for connection to a GPS device.
A proxy widget for QStatusBar.
Definition: qgsstatusbar.h:46