QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
18 #ifndef QGISINTERFACE_H
19 #define QGISINTERFACE_H
153 virtual QSize
iconSize(
bool dockedToolbar =
false )
const = 0;
645 virtual void takeAppScreenShots(
const QString &saveDirectory,
const int categories = 0 ) {Q_UNUSED( saveDirectory ) Q_UNUSED( categories );}
717 virtual bool newProject(
bool promptToSaveFlag =
false ) = 0;
862 virtual void showOptionsDialog( QWidget *parent =
nullptr,
const QString ¤tPage = QString() ) = 0;
922 virtual void addDockWidget( Qt::DockWidgetArea area, QDockWidget *dockwidget ) = 0;
938 virtual void addTabifiedDockWidget( Qt::DockWidgetArea area, QDockWidget *dockwidget,
const QStringList &tabifyWith = QStringList(),
bool raiseTab =
false ) = 0;
1320 #endif //#ifndef QGISINTERFACE_H
virtual void showLayerProperties(QgsMapLayer *l)=0
Open layer properties dialog.
virtual void removePluginRasterMenu(const QString &name, QAction *action)=0
Remove action from the Raster menu.
virtual QAction * actionAddAmsLayer()=0
Returns the native Add ArcGIS MapServer action.
virtual void pasteFromClipboard(QgsMapLayer *)=0
Paste features from clipboard to the layer.
virtual void unregisterCustomDropHandler(QgsCustomDropHandler *handler)=0
Unregister a previously registered custom drop handler.
Abstract base class for filters which collect locator results.
virtual void removeDockWidget(QDockWidget *dockwidget)=0
Removes the specified dock widget from main window (without deleting it).
virtual QAction * actionOptions()=0
virtual int addDatabaseToolBarIcon(QAction *qAction)=0
Add an icon to the Database toolbar.
virtual QMenu * rasterMenu()=0
Returns a reference to the main window "Raster" menu.
virtual QWidget * mainWindow()=0
Returns a pointer to the main window (instance of QgisApp in case of QGIS)
virtual QAction * actionCircleCenterPoint()=0
Returns the native add circle from center action. Call trigger() on it to set the map tool.
virtual QAction * actionAddRing()=0
Returns the native Add Ring action.
virtual int addVectorToolBarIcon(QAction *qAction)=0
Add an icon to the Vector toolbar.
void initializationCompleted()
Emitted when the initialization is complete.
A structure to define the insertion point to the layer tree.
virtual QAction * actionVertexToolActiveLayer()=0
Returns the native "Vertex Tool for Active Layer" action.
virtual QAction * actionAddToOverview()=0
virtual QAction * addDatabaseToolBarWidget(QWidget *widget)=0
Add a widget to the database toolbar.
virtual QAction * actionSelectFreehand()=0
Returns the native select freehand action. Call trigger() on it to set the default select freehand ma...
Implements a map layer that is dedicated to rendering of vector tiles.
virtual QAction * actionLayerProperties()=0
virtual void unregisterMapLayerConfigWidgetFactory(QgsMapLayerConfigWidgetFactory *factory)=0
Unregister a previously registered tab in the map layer properties dialog.
virtual QAction * actionSelectRadius()=0
Returns the native select radius action. Call trigger() on it to set the default select radius map to...
virtual QToolBar * fileToolBar()=0
Returns a reference to the main window "File" toolbar.
virtual QAction * actionAddFeature()=0
Returns the native Add Feature action.
virtual QMenu * windowMenu()=0
Returns a reference to the main window "Window" menu.
virtual void removePluginWebMenu(const QString &name, QAction *action)=0
Remove action from the Web menu.
void layoutDesignerOpened(QgsLayoutDesignerInterface *designer)
Emitted when a new layout designer has been opened.
void layoutDesignerClosed()
Emitted after a layout designer window is closed.
virtual QAction * actionEllipseCenter2Points()=0
Returns the native add ellipse from center and 2 points action. Call trigger() on it to set the map t...
virtual QToolBar * advancedDigitizeToolBar()=0
Returns a reference to the main window "Advanced Digitizing" toolbar.
virtual QAction * actionDuplicateLayer()=0
virtual void showOptionsDialog(QWidget *parent=nullptr, const QString ¤tPage=QString())=0
Opens the options dialog.
virtual QAction * actionZoomToLayer()=0
Returns the native zoom to layer action. Call trigger() on it to zoom to the active layer.
virtual void registerCustomLayoutDropHandler(QgsLayoutCustomDropHandler *handler)=0
Register a new custom drop handler for layout windows.
virtual QAction * actionMapTips()=0
Returns the native map tips action. Call trigger() on it to toggle map tips.
virtual QAction * actionAddPgLayer()=0
virtual void invalidateLocatorResults()=0
Invalidate results from the locator filter.
virtual QMenu * editMenu()=0
Returns a reference to the main window "Edit" menu.
virtual QMenu * newLayerMenu()=0
Returns a reference to the main window "Create New Layer" menu.
virtual QAction * actionToggleEditing()=0
virtual QMenu * webMenu()=0
Returns a reference to the main window "Web" menu.
virtual int addRasterToolBarIcon(QAction *qAction)=0
Add an icon to the Raster toolbar.
virtual QList< QgsLayoutDesignerInterface * > openLayoutDesigners()=0
Returns all currently open layout designers.
virtual void addCustomActionForLayer(QAction *action, QgsMapLayer *layer)=0
Add action to context menu for a specific layer in the layer tree.
virtual QToolBar * dataSourceManagerToolBar()=0
Returns a reference to the main window "Data Source Manager" toolbar.
virtual QAction * actionAddWmsLayer()=0
virtual QAction * actionPanToSelected()=0
Returns the native pan to selected action. Call trigger() on it to pan the map canvas to the selectio...
virtual QgsBrowserGuiModel * browserModel()=0
Returns the application browser model.
virtual QAction * actionShowSelectedLayers()=0
virtual void removeToolBarIcon(QAction *qAction)=0
Remove an action (icon) from the plugin toolbar.
virtual QAction * actionOpenProject()=0
Returns the Open Project action.
virtual QAction * actionToggleFullScreen()=0
virtual QAction * actionIdentify()=0
Returns the native identify action. Call trigger() on it to set the default identify map tool.
virtual void showProjectPropertiesDialog(const QString ¤tPage=QString())=0
Opens the project properties dialog.
virtual QToolBar * rasterToolBar()=0
Returns a reference to the main window "Raster" toolbar.
QgsMapLayerType
Types of layers that can be added to a map.
virtual void zoomToPrevious()=0
Zooms to the previous view extent.
virtual QAction * actionRollbackEdits()=0
virtual QAction * actionRollbackAllEdits()=0
Map canvas is a class for displaying all GIS data types on a canvas.
virtual QgsMapLayer * activeLayer()=0
Returns a pointer to the active layer (layer selected in the legend)
virtual QAction * actionLayerSaveAs()=0
virtual QAction * actionSaveEdits()=0
virtual QAction * addVectorToolBarWidget(QWidget *widget)=0
Add a widget to the vector toolbar.
virtual void registerDevToolWidgetFactory(QgsDevToolWidgetFactory *factory)=0
Register a new tool in the development/debugging tools dock.
virtual QgsPluginManagerInterface * pluginManagerInterface()=0
virtual QAction * actionRegularPolygon2Points()=0
Returns the native add regular polygon from 2 points action. Call trigger() on it to set the map tool...
virtual void removeWebToolBarIcon(QAction *qAction)=0
Remove an action (icon) from the Web toolbar.
virtual void registerCustomDropHandler(QgsCustomDropHandler *handler)=0
Register a new custom drop handler.
virtual QAction * actionZoomOut()=0
Returns the native zoom out action. Call trigger() on it to set the default zoom out map tool.
virtual QAction * actionDraw()=0
Returns the native draw action.
virtual QAction * actionHideSelectedLayers()=0
virtual int addToolBarIcon(QAction *qAction)=0
Add an icon to the plugins toolbar.
virtual Q_DECL_DEPRECATED void openURL(const QString &url, bool useQgisDocDirectory=true)=0
Open a url in the users browser.
virtual void removeRasterToolBarIcon(QAction *qAction)=0
Remove an action (icon) from the Raster toolbar.
virtual QgsAdvancedDigitizingDockWidget * cadDockWidget()=0
Advanced digitizing dock widget.
virtual QAction * addToolBarWidget(QWidget *widget)=0
Add a widget to the plugins toolbar.
virtual QMenu * addLayerMenu()=0
Returns a reference to the main window "Add Layer" menu.
virtual QAction * actionNewProject()=0
Returns the native New Project action.
virtual void addCustomActionForLayerType(QAction *action, QString menu, QgsMapLayerType type, bool allLayers)=0
Add action to context menu for layers in the layer tree.
virtual QAction * actionZoomNext()=0
Returns the native zoom next action. Call trigger() on it to zoom to next.
virtual QAction * actionFeatureAction()=0
Returns the native run action feature action. Call trigger() on it to set the default run feature act...
virtual QAction * actionAddAfsLayer()=0
Returns the native Add ArcGIS FeatureServer action.
virtual QgsMessageBar * messageBar()=0
Returns the message bar of the main app.
virtual QToolBar * vectorToolBar()=0
Returns a reference to the main window "Vector" toolbar.
virtual void registerApplicationExitBlocker(QgsApplicationExitBlockerInterface *blocker)=0
Register a new application exit blocker, which can be used to prevent the QGIS application from exiti...
virtual void addToolBar(QToolBar *toolbar, Qt::ToolBarArea area=Qt::TopToolBarArea)=0
Add a toolbar.
virtual QAction * actionVertexTool()=0
Returns the native "Vertex Tool for All Layers" action.
QgisInterface()=default
Constructor.
virtual QAction * actionProjectProperties()=0
Returns the native Project Properties action.
virtual QMenu * settingsMenu()=0
Returns a reference to the main window "Settings" menu.
virtual void removeVectorToolBarIcon(QAction *qAction)=0
Remove an action (icon) from the Vector toolbar.
virtual void unregisterDevToolWidgetFactory(QgsDevToolWidgetFactory *factory)=0
Unregister a previously registered tool factory from the development/debugging tools dock.
virtual void buildStyleSheet(const QMap< QString, QVariant > &opts)=0
Generate stylesheet.
virtual void setGpsPanelConnection(QgsGpsConnection *connection)=0
Sets a GPS connection to use within the GPS Panel widget.
virtual QAction * actionZoomLast()=0
Returns the native zoom last action. Call trigger() on it to zoom to last.
virtual QAction * actionEllipseCenterPoint()=0
Returns the native add ellipse from center and a point action. Call trigger() on it to set the map to...
virtual QAction * actionPluginListSeparator()=0
virtual QgsMapCanvas * createNewMapCanvas(const QString &name)=0
Create a new map canvas with the specified unique name.
virtual QAction * actionCircle2TangentsPoint()=0
Returns the native add circle from 2 tangents and a point action. Call trigger() on it to set the map...
virtual QAction * actionCircle2Points()=0
Returns the native add circle from 2 points action. Call trigger() on it to set the map tool.
virtual QToolBar * shapeDigitizeToolBar()=0
Returns a reference to the main window "Shape Digitizing" toolbar.
virtual QAction * actionShowBookmarks()=0
Returns the native show bookmarks action. Call trigger() on it to open the bookmarks dialog.
virtual QToolBar * mapNavToolToolBar()=0
Returns a reference to the main window "Map Navigation" toolbar.
virtual QgsAttributeDialog * getFeatureForm(QgsVectorLayer *l, QgsFeature &f)=0
Returns a feature form for a given feature.
#define Q_NOWARN_DEPRECATED_POP
virtual void registerMapLayerConfigWidgetFactory(QgsMapLayerConfigWidgetFactory *factory)=0
Register a new tab in the map layer properties dialog.
virtual QAction * actionCircle3Tangents()=0
Returns the native add circle from 3 tangents action. Call trigger() on it to set the map tool.
virtual void closeMapCanvas(const QString &name)=0
Closes the additional map canvas with matching name.
virtual QAction * actionMoveFeature()=0
Returns the native Move Features action.
virtual int messageTimeout()=0
Returns the timeout for timed messages: default of 5 seconds.
virtual QAction * actionOpenStatisticalSummary()=0
Statistical summary action.
virtual QAction * addRasterToolBarWidget(QWidget *widget)=0
Add a widget to the raster toolbar.
virtual QMenu * viewMenu()=0
Returns a reference to the main window "View" menu.
virtual bool unregisterMainWindowAction(QAction *action)=0
Unregister a previously registered action. (e.g. when plugin is going to be unloaded)
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.
An interface that may be implemented to allow plugins or scripts to temporarily block the QGIS applic...
virtual void registerLocatorFilter(QgsLocatorFilter *filter)=0
Registers a locator filter for the app's locator bar.
virtual QAction * actionAddRasterLayer()=0
virtual QAction * actionDeleteSelected()=0
Returns the native Delete Selected Features action.
virtual QAction * actionRectangleExtent()=0
Returns the native add rectangle from extent action. Call trigger() on it to set the map tool.
virtual QAction * actionSaveProjectAs()=0
Returns the native Save Project As action.
virtual void removeDatabaseToolBarIcon(QAction *qAction)=0
Remove an action (icon) from the Database toolbar.
virtual QAction * actionAbout()=0
virtual bool newProject(bool promptToSaveFlag=false)=0
Starts a new blank project.
void currentThemeChanged(const QString &theme)
Emitted when the current theme is changed so plugins can change their tool button icons.
virtual QSize iconSize(bool dockedToolbar=false) const =0
Returns the toolbar icon size.
virtual void addWindow(QAction *action)=0
Add window to Window menu.
virtual void addPluginToWebMenu(const QString &name, QAction *action)=0
Add action to the Web menu.
virtual QMap< QString, QVariant > defaultStyleSheetOptions()=0
Returns changeable options built from settings and/or defaults.
virtual QAction * actionNewBookmark()=0
Returns the native new bookmark action. Call trigger() on it to open the new bookmark dialog.
virtual QAction * actionSplitFeatures()=0
Returns the native Split Features action.
virtual void unregisterApplicationExitBlocker(QgsApplicationExitBlockerInterface *blocker)=0
Unregister a previously registered application exit blocker.
virtual void unregisterProjectPropertiesWidgetFactory(QgsOptionsWidgetFactory *factory)=0
Unregister a previously registered tab in the options dialog.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
virtual QAction * actionPasteFeatures()=0
Returns the native Paste Features action.
virtual QAction * actionCheckQgisVersion()=0
virtual QAction * actionHideDeselectedLayers()=0
Returns the Hide Deselected Layers action.
virtual void removeWindow(QAction *action)=0
Remove window from Window menu.
virtual QAction * actionSaveActiveLayerEdits()=0
virtual void addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget)=0
Adds a dock widget to the main window, in the specified dock area.
virtual void showLayoutManager()=0
Opens the layout manager dialog.
virtual QToolBar * attributesToolBar()=0
Returns a reference to the main window "Attributes" toolbar.
virtual QToolBar * digitizeToolBar()=0
Returns a reference to the main window "Digitize" toolbar.
Layer tree group node serves as a container for layers and further groups.
virtual QgsLayerTreeView * layerTreeView()=0
A bar for displaying non-blocking messages to the user.
virtual QActionGroup * mapToolActionGroup()=0
Returns the action group for map tools.
void layerSavedAs(QgsMapLayer *l, const QString &path)
Emitted when a layer has been saved using save as.
virtual QMenu * projectMenu()=0
Returns a reference to the main window "Project" menu.
virtual void registerProjectPropertiesWidgetFactory(QgsOptionsWidgetFactory *factory)=0
Register a new tab in the project properties dialog.
virtual int addWebToolBarIcon(QAction *qAction)=0
Add an icon to the Web toolbar.
virtual QAction * actionAddVectorTileLayer()=0
Returns the native Add Vector Tile Layer action.
virtual QAction * actionZoomActualSize()=0
Returns the native zoom resolution (100%) action. Call trigger() on it to zoom to actual size.
virtual QAction * actionRectangleCenterPoint()=0
Returns the native add rectangle from center and a point action. Call trigger() on it to set the map ...
virtual QFont defaultStyleSheetFont()=0
Returns a reference font for initial qApp (may not be same as QgisApp)
virtual void deregisterLocatorFilter(QgsLocatorFilter *filter)=0
Deregisters a locator filter from the app's locator bar and deletes it.
virtual QAction * actionZoomToSelected()=0
Returns the native zoom to selected action. Call trigger() on it to zoom to the current selection.
virtual QList< QgsMapCanvas * > mapCanvases()=0
Returns a list of all map canvases open in the app.
virtual void removePluginVectorMenu(const QString &name, QAction *action)=0
Remove action from the Vector menu.
virtual QAction * actionAddAllToOverview()=0
void layoutDesignerWillBeClosed(QgsLayoutDesignerInterface *designer)
Emitted before a layout designer is going to be closed and deleted.
Represents a raster layer.
virtual QAction * actionHelpContents()=0
virtual QAction * actionSaveMapAsImage()=0
Returns the native Save Map as Image action.
virtual void zoomToNext()=0
Zooms to the next view extent.
virtual QAction * actionCutFeatures()=0
Returns the native Cut Features action.
virtual void openMessageLog()=0
Opens the message log dock widget.
virtual QMenu * vectorMenu()=0
Returns a reference to the main window "Vector" menu.
virtual bool setActiveLayer(QgsMapLayer *)=0
Set the active layer (layer gets selected in the legend) returns true if the layer exists,...
void projectRead()
Emitted when a project file is successfully read.
This class represents a coordinate reference system (CRS).
virtual QAction * actionSaveAllEdits()=0
virtual QToolBar * webToolBar()=0
Returns a reference to the main window "Web" toolbar.
virtual void registerOptionsWidgetFactory(QgsOptionsWidgetFactory *factory)=0
Register a new tab in the options dialog.
virtual QAction * actionRegularPolygonCenterCorner()=0
Returns the native add regular polygon from center and a corner action. Call trigger() on it to set t...
void newProjectCreated()
Emitted when starting an entirely new project.
virtual void registerCustomProjectOpenHandler(QgsCustomProjectOpenHandler *handler)=0
Register a new custom project open handler.
virtual void takeAppScreenShots(const QString &saveDirectory, const int categories=0)
Take screenshots for user documentation.
virtual QAction * addWebToolBarWidget(QWidget *widget)=0
Add a widget to the web toolbar.
virtual QAction * actionCancelAllEdits()=0
virtual QDialog * showAttributeTable(QgsVectorLayer *l, const QString &filterExpression=QString())=0
Open attribute table dialog.
virtual QMenu * layerMenu()=0
Returns a reference to the main window "Layer" menu.
virtual QAction * actionManagePlugins()=0
virtual QAction * actionAllEdits()=0
virtual QMenu * helpMenu()=0
Returns a reference to the main window "Help" menu.
virtual void reloadConnections()=0
Triggered when connections have changed.
virtual QAction * actionZoomFullExtent()=0
Returns the native zoom full extent action. Call trigger() on it to zoom to the full extent.
virtual QToolBar * pluginToolBar()=0
Returns a reference to the main window "Plugin" toolbar.
virtual QMenu * databaseMenu()=0
Returns a reference to the main window "Database" menu.
virtual void copySelectionToClipboard(QgsMapLayer *)=0
Copy selected features from the layer to clipboard.
virtual QList< QgsMapLayer * > editableLayers(bool modified=false) const =0
Returns vector layers in edit mode.
virtual QAction * actionSelectPolygon()=0
Returns the native select polygon action. Call trigger() on it to set the default select polygon map ...
virtual QAction * actionPasteLayerStyle()=0
virtual void zoomToActiveLayer()=0
Zooms to extent of the active layer.
virtual void registerMapToolHandler(QgsAbstractMapToolHandler *handler)=0
Register a new application map tool handler, which can be used to automatically setup all connections...
virtual QgsVectorLayerTools * vectorLayerTools()=0
Access the vector layer tools instance.
virtual QAction * actionAddPart()=0
Returns the native Add Part action.
virtual QAction * actionRemoveAllFromOverview()=0
virtual QAction * actionSelectRectangle()=0
Returns the native select rectangle action. Call trigger() on it to set the default select rectangle ...
virtual void addPluginToDatabaseMenu(const QString &name, QAction *action)=0
Add action to the Database menu.
virtual QAction * actionCopyFeatures()=0
Returns the native Copy Features action.
virtual QToolBar * selectionToolBar()=0
Returns a reference to the main window "Selection" toolbar.
virtual QAction * actionCopyLayerStyle()=0
virtual void unregisterCustomLayoutDropHandler(QgsLayoutCustomDropHandler *handler)=0
Unregister a previously registered custom drop handler for layout windows.
virtual QAction * actionShowAllLayers()=0
virtual QAction * actionDeleteRing()=0
Returns the native Delete Ring action.
virtual QAction * actionToggleSelectedLayersIndependently()=0
Returns the Toggle Selected Layers Independently action.
virtual bool openFeatureForm(QgsVectorLayer *l, QgsFeature &f, bool updateFeatureOnly=false, bool showModal=true)=0
Opens a new feature form.
virtual QgsVectorLayer * addVectorLayer(const QString &vectorLayerPath, const QString &baseName, const QString &providerKey)=0
Adds a vector layer to the current project.
virtual QAction * actionEllipseExtent()=0
Returns the native add ellipse from an extent action. Call trigger() on it to set the map tool.
virtual QAction * actionEllipseFoci()=0
Returns the native add ellipse from foci action. Call trigger() on it to set the map tool.
virtual QgsStatusBar * statusBarIface()=0
Returns a pointer to the app's status bar interface.
A proxy widget for QStatusBar.
virtual QAction * actionOpenTable()=0
virtual QMenu * pluginHelpMenu()=0
Returns a reference to the main window "Plugin Help" sub-menu.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
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...
virtual QAction * actionZoomIn()=0
Returns the native zoom in action. Call trigger() on it to set the default zoom in map tool.
Represents a vector layer which manages a vector based data sets.
virtual void removePluginMenu(const QString &name, QAction *action)=0
Remove action from the plugins menu.
QgisInterface Abstract base class defining interfaces exposed by QgisApp and made available to plugin...
Base class for all map layer types.
virtual QAction * actionRectangle3PointsDistance()=0
Returns the native add rectangle from 3 points (distance from 2nd and 3rd points) action....
virtual QAction * actionHideAllLayers()=0
Abstract base class that may be implemented to handle new types of data to be dropped or pasted in QG...
Abstract base class that may be implemented to handle new types of data to be dropped in QGIS.
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).
A common interface for layout designer dialogs and widgets.
virtual QToolBar * layerToolBar()=0
Returns a reference to the main window "Layer" toolbar.
virtual void removePluginDatabaseMenu(const QString &name, QAction *action)=0
Remove action from the Database menu.
virtual QAction * actionSaveProject()=0
Returns the native Save Project action.
virtual bool removeCustomActionForLayerType(QAction *action)=0
Remove action for layers in the layer tree previously added with addCustomActionForLayerType()
virtual QAction * actionRectangle3PointsProjected()=0
Returns the native add rectangle from 3 points (distance from projected 3rd point on segment p1 and p...
virtual QAction * actionShowLayoutManager()=0
Show layout manager action.
virtual void addPluginToRasterMenu(const QString &name, QAction *action)=0
Add action to the Raster menu.
virtual void unregisterOptionsWidgetFactory(QgsOptionsWidgetFactory *factory)=0
Unregister a previously registered tab in the options dialog.
virtual QMenu * firstRightStandardMenu()=0
Returns a reference to the right most standard menu, which is usually the last menu item before the "...
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.
Abstract base class for connection to a GPS device.
virtual QgsLayerTreeMapCanvasBridge * layerTreeCanvasBridge()=0
Returns a pointer to the layer tree canvas bridge.
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...
virtual QMenu * pluginMenu()=0
Returns a reference to the main window "Plugin" menu.
virtual bool addProject(const QString &project)=0
Adds (opens) a project.
virtual QAction * actionQgisHomePage()=0
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
virtual QAction * actionAddXyzLayer()=0
Returns the native Add XYZ Layer action.
virtual QgsLayerTreeRegistryBridge::InsertionPoint layerTreeInsertionPoint()=0
Returns the insertion point.
The QgsLayerTreeView class extends QTreeView and provides some additional functionality when working ...
virtual QAction * actionSimplifyFeature()=0
Returns the native Simplify/Smooth Features action.
virtual QAction * actionRegularPolygonCenterPoint()=0
Returns the native add regular polygon from center and a point action. Call trigger() on it to set th...
virtual QgsVectorTileLayer * addVectorTileLayer(const QString &url, const QString &baseName)=0
Adds a vector tile layer to the current project.
virtual QAction * actionPan()=0
Returns the native pan action. Call trigger() on it to set the default pan map tool.
Interface for master layout type objects, such as print layouts and reports.
virtual void zoomFull()=0
Zooms to the full extent of all map layers.
virtual QAction * actionSplitParts()=0
Returns the native Split Parts action.
void currentLayerChanged(QgsMapLayer *layer)
Emitted whenever current (selected) layer changes.
virtual QAction * actionOpenFieldCalculator()=0
virtual QAction * actionDeletePart()=0
Returns the native Delete Part action.
virtual void unregisterCustomProjectOpenHandler(QgsCustomProjectOpenHandler *handler)=0
Unregister a previously registered custom project open handler.
virtual QToolBar * addToolBar(const QString &name)=0
Add toolbar with specified name.
virtual void removeAddLayerAction(QAction *action)=0
Remove "add layer" action from layer menu.
virtual QAction * actionExit()=0
Returns the Exit QGIS action.
virtual QAction * actionCircle3Points()=0
Returns the native add circle from 3 points action. Call trigger() on it to set the map tool.
#define Q_NOWARN_DEPRECATED_PUSH
virtual QAction * actionMeasureArea()=0
Returns the native measure area action. Call trigger() on it to set the default measure area map tool...
virtual QAction * actionSelect()=0
Returns the native select action. Call trigger() on it to set the default select map tool.
virtual void addUserInputWidget(QWidget *widget)=0
Adds a widget to the user input tool bar.
virtual QToolBar * databaseToolBar()=0
Returns a reference to the main window "Database" toolbar.
virtual QgsMapCanvas * mapCanvas()=0
Returns a pointer to the map canvas.
virtual QgsMeshLayer * addMeshLayer(const QString &url, const QString &baseName, const QString &providerKey)=0
Adds a mesh layer to the current project.
virtual QAction * actionShowPythonDialog()=0
virtual QAction * actionCancelEdits()=0
virtual QgsLayoutDesignerInterface * openLayoutDesigner(QgsMasterLayoutInterface *layout)=0
Opens a new layout designer dialog for the specified layout, or brings an already open designer windo...
virtual QAction * actionToggleSelectedLayers()=0
Returns the Toggle Selected Layers action.
A model for showing available data sources and other items in a structured tree.
virtual void addPluginToVectorMenu(const QString &name, QAction *action)=0
Add action to the Vector menu.
virtual QToolBar * helpToolBar()=0
Returns a reference to the main window "Help" toolbar.
virtual bool askForDatumTransform(QgsCoordinateReferenceSystem sourceCrs, QgsCoordinateReferenceSystem destinationCrs)=0
Checks available datum transforms and ask user if several are available and none is chosen.
virtual void addPluginToMenu(const QString &name, QAction *action)=0
Add action to the plugins menu.
Abstract base class that may be implemented to handle new project file types within the QGIS applicat...
virtual void unregisterMapToolHandler(QgsAbstractMapToolHandler *handler)=0
Unregister a previously registered map tool handler.
virtual void saveStyleSheetOptions(const QMap< QString, QVariant > &opts)=0
Save changed default option keys/values to user settings.
virtual QAction * actionCustomProjection()=0
virtual QAction * actionAddOgrLayer()=0
virtual void insertAddLayerAction(QAction *action)=0
Add "add layer" action to layer menu.
virtual QAction * actionMeasure()=0
Returns the native measure action. Call trigger() on it to set the default measure map tool.
virtual QAction * actionCreatePrintLayout()=0
Create new print layout action.
The QgsLayerTreeMapCanvasBridge class takes care of updates of layer set for QgsMapCanvas from a laye...
virtual QAction * actionNewVectorLayer()=0
virtual bool registerMainWindowAction(QAction *action, const QString &defaultShortcut)=0
Register action to the shortcuts manager so its shortcut can be changed in GUI.