-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Expand file tree
/
Copy pathqgisinterface.sip.in
More file actions
2003 lines (1527 loc) · 62.8 KB
/
qgisinterface.sip.in
File metadata and controls
2003 lines (1527 loc) · 62.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgisinterface.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class Qgs3DMapCanvas /External/;
%ModuleHeaderCode
class Qgs3DMapCanvas;
%End
class QgisInterface : QObject
{
%Docstring(signature="appended")
Abstract base class defining interfaces exposed by QgisApp and made
available to plugins.
Only functionality exposed by QgisInterface can be used in plugins. This
interface has to be implemented with application specific details.
QGIS implements it in QgisAppInterface class, 3rd party applications
could provide their own implementation to be able to use plugins.
%End
%TypeHeaderCode
#include "qgisinterface.h"
%End
public:
QgisInterface();
virtual QgsPluginManagerInterface *pluginManagerInterface() = 0;
virtual QgsLayerTreeView *layerTreeView() = 0;
virtual QgsGpsToolsInterface *gpsTools() = 0;
%Docstring
Returns an interface to allow plugins to use QGIS GPS tools.
%End
virtual void addCustomActionForLayerType( QAction *action, QString menu, Qgis::LayerType type, bool allLayers ) = 0;
%Docstring
Add action to context menu for layers in the layer tree. If allLayers is
``True``, then the action will be available for all layers of given
type, otherwise the action will be available only for specific layers
added with :py:func:`~QgisInterface.addCustomActionForLayer` after this
call.
If menu argument is not empty, the action will be also added to a menu
within the main window, creating menu with the given name if it does not
exist yet.
.. seealso:: :py:func:`removeCustomActionForLayerType`
.. seealso:: :py:func:`addCustomActionForLayer`
%End
virtual void addCustomActionForLayer( QAction *action, QgsMapLayer *layer ) = 0;
%Docstring
Add action to context menu for a specific layer in the layer tree. It is
necessary to first call
:py:func:`~QgisInterface.addCustomActionForLayerType` with
allLayers=false in order for this method to have any effect.
.. seealso:: :py:func:`addCustomActionForLayerType`
%End
virtual bool removeCustomActionForLayerType( QAction *action ) = 0;
%Docstring
Remove action for layers in the layer tree previously added with
:py:func:`~QgisInterface.addCustomActionForLayerType`
.. seealso:: :py:func:`addCustomActionForLayerType`
%End
virtual QList<QgsMapCanvas *> mapCanvases() = 0;
%Docstring
Returns a list of all map canvases open in the app.
%End
virtual QgsMapCanvas *createNewMapCanvas( const QString &name ) = 0;
%Docstring
Create a new map canvas with the specified unique ``name``.
.. seealso:: :py:func:`closeMapCanvas`
%End
virtual void closeMapCanvas( const QString &name ) = 0;
%Docstring
Closes the additional map canvas with matching ``name``.
.. seealso:: :py:func:`createNewMapCanvas`
%End
virtual QList<Qgs3DMapCanvas *> mapCanvases3D() = 0;
%Docstring
Returns a list of all 3D map canvases open in the app.
.. versionadded:: 3.36
%End
virtual Qgs3DMapCanvas *createNewMapCanvas3D( const QString &name, Qgis::SceneMode sceneMode = Qgis::SceneMode::Local ) = 0;
%Docstring
Create a new 3D map canvas with the specified unique ``name``.
.. note::
Scene mode (local or globe) can be selected since QGIS 3.44.
.. seealso:: :py:func:`closeMapCanvas3D`
.. versionadded:: 3.36
%End
virtual void closeMapCanvas3D( const QString &name ) = 0;
%Docstring
Closes the additional map canvas with matching ``name``.
.. seealso:: :py:func:`createNewMapCanvas3D`
.. versionadded:: 3.36
%End
virtual QSize iconSize( bool dockedToolbar = false ) const = 0;
%Docstring
Returns the toolbar icon size. If ``dockedToolbar`` is ``True``, the
icon size for toolbars contained within docks is returned.
%End
virtual QList<QgsMapLayer *> editableLayers( bool modified = false ) const = 0;
%Docstring
Returns vector layers in edit mode
:param modified: whether to return only layers that have been modified
:return: list of layers in legend order, or empty list
%End
virtual QgsMapLayer *activeLayer() = 0;
%Docstring
Returns a pointer to the active layer (layer selected in the legend)
%End
virtual QgsMapCanvas *mapCanvas() = 0;
%Docstring
Returns a pointer to the map canvas
%End
virtual QList<QgsMapDecoration *> activeDecorations() = 0;
%Docstring
Returns a list of the active decorations.
.. versionadded:: 3.22
%End
virtual QgsLayerTreeMapCanvasBridge *layerTreeCanvasBridge() = 0;
%Docstring
Returns a pointer to the layer tree canvas bridge
%End
virtual QWidget *mainWindow() = 0;
%Docstring
Returns a pointer to the main window (instance of QgisApp in case of
QGIS)
%End
virtual QgsMessageBar *messageBar() = 0;
%Docstring
Returns the message bar of the main app
%End
virtual QList<QgsLayoutDesignerInterface *> openLayoutDesigners() = 0;
%Docstring
Returns all currently open layout designers.
%End
virtual QMap<QString, QVariant> defaultStyleSheetOptions() = 0;
%Docstring
Returns changeable options built from settings and/or defaults
%End
virtual QFont defaultStyleSheetFont() = 0;
%Docstring
Returns a reference font for initial qApp (may not be same as QgisApp)
%End
virtual QgsAdvancedDigitizingDockWidget *cadDockWidget() = 0;
%Docstring
Advanced digitizing dock widget
%End
virtual QMenu *projectMenu() = 0;
%Docstring
Returns a reference to the main window "Project" menu.
%End
virtual QMenu *projectImportExportMenu() = 0;
%Docstring
Returns a reference to the main window "Import/Export" project menu.
.. seealso:: :py:func:`addProjectImportAction`
.. seealso:: :py:func:`addProjectExportAction`
.. versionadded:: 3.30
%End
virtual void addProjectImportAction( QAction *action ) = 0;
%Docstring
Adds an ``action`` to the QGIS "Import project" menu.
.. seealso:: :py:func:`removeProjectImportAction`
.. seealso:: :py:func:`addProjectExportAction`
.. versionadded:: 3.30
%End
virtual void removeProjectImportAction( QAction *action ) = 0;
%Docstring
Adds an ``action`` to the QGIS "Import project" menu.
.. seealso:: :py:func:`addProjectImportAction`
.. seealso:: :py:func:`removeProjectExportAction`
.. versionadded:: 3.30
%End
virtual void addProjectExportAction( QAction *action ) = 0;
%Docstring
Adds an ``action`` to the QGIS "Export project" menu.
.. seealso:: :py:func:`removeProjectExportAction`
.. seealso:: :py:func:`addProjectImportAction`
.. versionadded:: 3.30
%End
virtual void removeProjectExportAction( QAction *action ) = 0;
%Docstring
Adds an ``action`` to the QGIS "Export project" menu.
.. seealso:: :py:func:`addProjectExportAction`
.. seealso:: :py:func:`removeProjectImportAction`
.. versionadded:: 3.30
%End
virtual QMenu *projectModelsMenu() = 0;
%Docstring
Returns a reference to the main window "Projects" - "Models" submenu.
.. versionadded:: 3.42
%End
virtual QMenu *createProjectModelSubMenu( const QString &title ) = 0;
%Docstring
Creates a new project model submenu in the "Projects" - "Models"
submenu.
.. versionadded:: 3.42
%End
virtual QMenu *editMenu() = 0;
%Docstring
Returns a reference to the main window "Edit" menu.
%End
virtual QMenu *viewMenu() = 0;
%Docstring
Returns a reference to the main window "View" menu.
%End
virtual QMenu *layerMenu() = 0;
%Docstring
Returns a reference to the main window "Layer" menu.
%End
virtual QMenu *newLayerMenu() = 0;
%Docstring
Returns a reference to the main window "Create New Layer" menu.
%End
virtual QMenu *addLayerMenu() = 0;
%Docstring
Returns a reference to the main window "Add Layer" menu.
%End
virtual QMenu *settingsMenu() = 0;
%Docstring
Returns a reference to the main window "Settings" menu.
%End
virtual QMenu *pluginMenu() = 0;
%Docstring
Returns a reference to the main window "Plugin" menu.
%End
virtual QMenu *pluginHelpMenu() = 0;
%Docstring
Returns a reference to the main window "Plugin Help" sub-menu.
Plugins are encouraged to insert help and about actions in this submenu
instead of creating a submenu under the
:py:func:`~QgisInterface.pluginMenu` which solely contains Plugin Help
or About actions.
.. versionadded:: 3.10
%End
virtual QMenu *rasterMenu() = 0;
%Docstring
Returns a reference to the main window "Raster" menu.
%End
virtual QMenu *databaseMenu() = 0;
%Docstring
Returns a reference to the main window "Database" menu.
%End
virtual QMenu *vectorMenu() = 0;
%Docstring
Returns a reference to the main window "Vector" menu.
%End
virtual QMenu *webMenu() = 0;
%Docstring
Returns a reference to the main window "Web" menu.
%End
virtual QMenu *meshMenu() = 0;
%Docstring
Returns a reference to the main window "Mesh" menu.
.. versionadded:: 3.34
%End
virtual QMenu *firstRightStandardMenu() = 0;
%Docstring
Returns a reference to the right most standard menu, which is usually
the last menu item before the "Help" menu.
This can be used to insert additional top-level menus into their correct
position BEFORE the help menu.
%End
virtual QMenu *windowMenu() = 0;
%Docstring
Returns a reference to the main window "Window" menu.
%End
virtual QMenu *helpMenu() = 0;
%Docstring
Returns a reference to the main window "Help" menu.
%End
virtual QToolBar *fileToolBar() = 0;
%Docstring
Returns a reference to the main window "File" toolbar.
%End
virtual QToolBar *layerToolBar() = 0;
%Docstring
Returns a reference to the main window "Layer" toolbar.
%End
virtual QToolBar *dataSourceManagerToolBar() = 0;
%Docstring
Returns a reference to the main window "Data Source Manager" toolbar.
.. versionadded:: 3.4
%End
virtual void openDataSourceManagerPage( const QString &pageName ) = 0;
%Docstring
Opens a page in the main window "Data Source Manager" dialog.
This method creates and opens the dialog if it is not already visible.
.. versionadded:: 3.30
%End
virtual QToolBar *mapNavToolToolBar() = 0;
%Docstring
Returns a reference to the main window "Map Navigation" toolbar.
%End
virtual QToolBar *digitizeToolBar() = 0;
%Docstring
Returns a reference to the main window "Digitize" toolbar.
%End
virtual QToolBar *advancedDigitizeToolBar() = 0;
%Docstring
Returns a reference to the main window "Advanced Digitizing" toolbar.
%End
virtual QToolBar *shapeDigitizeToolBar() = 0;
%Docstring
Returns a reference to the main window "Shape Digitizing" toolbar.
%End
virtual QToolBar *attributesToolBar() = 0;
%Docstring
Returns a reference to the main window "Attributes" toolbar.
%End
virtual QToolBar *selectionToolBar() = 0;
%Docstring
Returns a reference to the main window "Selection" toolbar.
.. versionadded:: 3.14
%End
virtual QToolBar *pluginToolBar() = 0;
%Docstring
Returns a reference to the main window "Plugin" toolbar.
%End
virtual QToolBar *helpToolBar() = 0;
%Docstring
Returns a reference to the main window "Help" toolbar.
%End
virtual QToolBar *rasterToolBar() = 0;
%Docstring
Returns a reference to the main window "Raster" toolbar.
%End
virtual QToolBar *vectorToolBar() = 0;
%Docstring
Returns a reference to the main window "Vector" toolbar.
%End
virtual QToolBar *databaseToolBar() = 0;
%Docstring
Returns a reference to the main window "Database" toolbar.
%End
virtual QToolBar *webToolBar() = 0;
%Docstring
Returns a reference to the main window "Web" toolbar.
%End
virtual QAction *actionNewProject() = 0;
%Docstring
Returns the native New Project action.
%End
virtual QAction *actionOpenProject() = 0;
%Docstring
Returns the Open Project action.
%End
virtual QAction *actionSaveProject() = 0;
%Docstring
Returns the native Save Project action.
%End
virtual QAction *actionSaveProjectAs() = 0;
%Docstring
Returns the native Save Project As action.
%End
virtual QAction *actionSaveMapAsImage() = 0;
%Docstring
Returns the native Save Map as Image action.
%End
virtual QAction *actionProjectProperties() = 0;
%Docstring
Returns the native Project Properties action.
%End
virtual QAction *actionCreatePrintLayout() = 0;
%Docstring
Create new print layout action
%End
virtual QAction *actionShowLayoutManager() = 0;
%Docstring
Show layout manager action
%End
virtual QAction *actionExit() = 0;
%Docstring
Returns the Exit QGIS action.
%End
virtual QAction *actionCutFeatures() = 0;
%Docstring
Returns the native Cut Features action.
%End
virtual QAction *actionCopyFeatures() = 0;
%Docstring
Returns the native Copy Features action.
%End
virtual QAction *actionPasteFeatures() = 0;
%Docstring
Returns the native Paste Features action.
%End
virtual QAction *actionAddFeature() = 0;
%Docstring
Returns the native Add Feature action.
%End
virtual QAction *actionDeleteSelected() = 0;
%Docstring
Returns the native Delete Selected Features action.
%End
virtual QAction *actionMoveFeature() = 0;
%Docstring
Returns the native Move Features action.
%End
virtual QAction *actionSplitFeatures() = 0;
%Docstring
Returns the native Split Features action.
%End
virtual QAction *actionSplitParts() = 0;
%Docstring
Returns the native Split Parts action.
%End
virtual QAction *actionAddRing() = 0;
%Docstring
Returns the native Add Ring action.
%End
virtual QAction *actionAddPart() = 0;
%Docstring
Returns the native Add Part action.
%End
virtual QAction *actionSimplifyFeature() = 0;
%Docstring
Returns the native Simplify/Smooth Features action.
%End
virtual QAction *actionDeleteRing() = 0;
%Docstring
Returns the native Delete Ring action.
%End
virtual QAction *actionDeletePart() = 0;
%Docstring
Returns the native Delete Part action.
%End
virtual QAction *actionVertexTool() = 0;
%Docstring
Returns the native "Vertex Tool for All Layers" action.
.. seealso:: :py:func:`actionVertexToolActiveLayer`
%End
virtual QAction *actionVertexToolActiveLayer() = 0;
%Docstring
Returns the native "Vertex Tool for Active Layer" action.
.. seealso:: :py:func:`actionVertexTool`
.. versionadded:: 3.6
%End
virtual QActionGroup *mapToolActionGroup() = 0;
%Docstring
Returns the action group for map tools.
Any actions added by plugins for toggling a map tool should also be
added to this action group so that they behave identically to the
native, in-built map tool actions.
.. versionadded:: 3.16
%End
virtual QAction *actionPan() = 0;
%Docstring
Returns the native pan action. Call :py:func:`~QgisInterface.trigger` on
it to set the default pan map tool.
%End
virtual QAction *actionPanToSelected() = 0;
%Docstring
Returns the native pan to selected action. Call
:py:func:`~QgisInterface.trigger` on it to pan the map canvas to the
selection.
%End
virtual QAction *actionZoomIn() = 0;
%Docstring
Returns the native zoom in action. Call
:py:func:`~QgisInterface.trigger` on it to set the default zoom in map
tool.
%End
virtual QAction *actionZoomOut() = 0;
%Docstring
Returns the native zoom out action. Call
:py:func:`~QgisInterface.trigger` on it to set the default zoom out map
tool.
%End
virtual QAction *actionSelect() = 0;
%Docstring
Returns the native select action. Call :py:func:`~QgisInterface.trigger`
on it to set the default select map tool.
%End
virtual QAction *actionSelectRectangle() = 0;
%Docstring
Returns the native select rectangle action. Call
:py:func:`~QgisInterface.trigger` on it to set the default select
rectangle map tool.
%End
virtual QAction *actionSelectPolygon() = 0;
%Docstring
Returns the native select polygon action. Call
:py:func:`~QgisInterface.trigger` on it to set the default select
polygon map tool.
%End
virtual QAction *actionSelectFreehand() = 0;
%Docstring
Returns the native select freehand action. Call
:py:func:`~QgisInterface.trigger` on it to set the default select
freehand map tool.
%End
virtual QAction *actionSelectRadius() = 0;
%Docstring
Returns the native select radius action. Call
:py:func:`~QgisInterface.trigger` on it to set the default select radius
map tool.
%End
virtual QAction *actionIdentify() = 0;
%Docstring
Returns the native identify action. Call
:py:func:`~QgisInterface.trigger` on it to set the default identify map
tool.
%End
virtual QAction *actionFeatureAction() = 0;
%Docstring
Returns the native run action feature action. Call
:py:func:`~QgisInterface.trigger` on it to set the default run feature
action map tool.
%End
virtual QAction *actionMeasure() = 0;
%Docstring
Returns the native measure action. Call
:py:func:`~QgisInterface.trigger` on it to set the default measure map
tool.
%End
virtual QAction *actionMeasureArea() = 0;
%Docstring
Returns the native measure area action. Call
:py:func:`~QgisInterface.trigger` on it to set the default measure area
map tool.
%End
virtual QAction *actionZoomFullExtent() = 0;
%Docstring
Returns the native zoom full extent action. Call
:py:func:`~QgisInterface.trigger` on it to zoom to the full extent.
%End
virtual QAction *actionZoomToLayer() = 0 /Deprecated="Since 3.40. Use actionZoomToLayers() instead."/;
%Docstring
Returns the native zoom to layer action. Call
:py:func:`~QgisInterface.trigger` on it to zoom to the active layer.
.. deprecated:: 3.40
Use :py:func:`~QgisInterface.actionZoomToLayers` instead.
%End
virtual QAction *actionZoomToLayers() = 0;
%Docstring
Returns the native zoom to layers action. Call
:py:func:`~QgisInterface.trigger` on it to zoom to the selected layers.
.. versionadded:: 3.18
%End
virtual QAction *actionZoomToSelected() = 0;
%Docstring
Returns the native zoom to selected action. Call
:py:func:`~QgisInterface.trigger` on it to zoom to the current
selection.
%End
virtual QAction *actionZoomLast() = 0;
%Docstring
Returns the native zoom last action. Call
:py:func:`~QgisInterface.trigger` on it to zoom to last.
%End
virtual QAction *actionZoomNext() = 0;
%Docstring
Returns the native zoom next action. Call
:py:func:`~QgisInterface.trigger` on it to zoom to next.
%End
virtual QAction *actionZoomActualSize() = 0;
%Docstring
Returns the native zoom resolution (100%) action. Call
:py:func:`~QgisInterface.trigger` on it to zoom to actual size.
%End
virtual QAction *actionMapTips() = 0;
%Docstring
Returns the native map tips action. Call
:py:func:`~QgisInterface.trigger` on it to toggle map tips.
%End
virtual QAction *actionNewBookmark() = 0;
%Docstring
Returns the native new bookmark action. Call
:py:func:`~QgisInterface.trigger` on it to open the new bookmark dialog.
%End
virtual QAction *actionShowBookmarks() = 0;
%Docstring
Returns the native show bookmarks action. Call
:py:func:`~QgisInterface.trigger` on it to open the bookmarks dialog.
%End
virtual QAction *actionDraw() = 0;
%Docstring
Returns the native draw action.
%End
virtual QAction *actionNewVectorLayer() = 0;
virtual QAction *actionAddOgrLayer() = 0;
virtual QAction *actionAddRasterLayer() = 0;
virtual QAction *actionAddPgLayer() = 0;
virtual QAction *actionAddWmsLayer() = 0;
virtual QAction *actionAddXyzLayer() = 0;
%Docstring
Returns the native Add XYZ Layer action.
.. versionadded:: 3.14
%End
virtual QAction *actionAddVectorTileLayer() = 0;
%Docstring
Returns the native Add Vector Tile Layer action.
.. versionadded:: 3.14
%End
virtual QAction *actionAddPointCloudLayer() = 0;
%Docstring
Returns the native Add Point Cloud Layer action.
.. versionadded:: 3.18
%End
virtual QAction *actionAddAfsLayer() = 0;
%Docstring
Returns the native Add ArcGIS REST Server action.
%End
virtual QAction *actionAddAmsLayer() = 0;
%Docstring
Returns the native Add ArcGIS REST Server action.
%End
virtual QAction *actionCopyLayerStyle() = 0;
virtual QAction *actionPasteLayerStyle() = 0;
virtual QAction *actionOpenTable() = 0;
virtual QAction *actionOpenFieldCalculator() = 0;
virtual QAction *actionOpenStatisticalSummary() = 0;
%Docstring
Statistical summary action.
%End
virtual QAction *actionToggleEditing() = 0;
virtual QAction *actionSaveActiveLayerEdits() = 0;
virtual QAction *actionAllEdits() = 0;
virtual QAction *actionSaveEdits() = 0;
virtual QAction *actionSaveAllEdits() = 0;
virtual QAction *actionRollbackEdits() = 0;
virtual QAction *actionRollbackAllEdits() = 0;
virtual QAction *actionCancelEdits() = 0;
virtual QAction *actionCancelAllEdits() = 0;
virtual QAction *actionLayerSaveAs() = 0;
virtual QAction *actionDuplicateLayer() = 0;
virtual QAction *actionLayerProperties() = 0;
virtual QAction *actionAddToOverview() = 0;
virtual QAction *actionAddAllToOverview() = 0;
virtual QAction *actionRemoveAllFromOverview() = 0;
virtual QAction *actionHideAllLayers() = 0;
virtual QAction *actionShowAllLayers() = 0;
virtual QAction *actionHideSelectedLayers() = 0;
virtual QAction *actionToggleSelectedLayers() = 0;
%Docstring
Returns the Toggle Selected Layers action.
.. versionadded:: 3.14
%End
virtual QAction *actionToggleSelectedLayersIndependently() = 0;
%Docstring
Returns the Toggle Selected Layers Independently action.
.. versionadded:: 3.14
%End
virtual QAction *actionHideDeselectedLayers() = 0;
%Docstring
Returns the Hide Deselected Layers action.
%End
virtual QAction *actionShowSelectedLayers() = 0;
virtual QAction *actionManagePlugins() = 0;
virtual QAction *actionPluginListSeparator() = 0;
virtual QAction *actionShowPythonDialog() = 0;
virtual QAction *actionToggleFullScreen() = 0;
virtual QAction *actionOptions() = 0;
virtual QAction *actionCustomProjection() = 0;
virtual QAction *actionHelpContents() = 0;
virtual QAction *actionQgisHomePage() = 0;
virtual QAction *actionCheckQgisVersion() = 0;
virtual QAction *actionAbout() = 0;
virtual QAction *actionCircle2Points() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add circle from 2 points action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionCircle3Points() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add circle from 3 points action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionCircle3Tangents() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add circle from 3 tangents action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionCircle2TangentsPoint() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add circle from 2 tangents and a point action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionCircleCenterPoint() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add circle from center action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionEllipseCenter2Points() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add ellipse from center and 2 points action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionEllipseCenterPoint() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add ellipse from center and a point action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionEllipseExtent() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add ellipse from an extent action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionEllipseFoci() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add ellipse from foci action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionRectangleCenterPoint() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add rectangle from center and a point action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionRectangleExtent() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add rectangle from extent action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionRectangle3PointsDistance() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add rectangle from 3 points (distance from 2nd and
3rd points) action. Call :py:func:`~QgisInterface.trigger` on it to set
the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionRectangle3PointsProjected() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add rectangle from 3 points (distance from projected
3rd point on segment p1 and p2) action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionRegularPolygon2Points() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add regular polygon from 2 points action. Call
:py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionRegularPolygonCenterPoint() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add regular polygon from center and a point action.
Call :py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QAction *actionRegularPolygonCenterCorner() /Deprecated="Since 3.26. Shape digitizing is now part of the add feature tool. To enable the shape tool, use QgsMapToolCapture.setCurrentCaptureTechnique() and then QgsMapToolCapture.setCurrentShapeMapTool()."/;
%Docstring
Returns the native add regular polygon from center and a corner action.
Call :py:func:`~QgisInterface.trigger` on it to set the map tool.
.. deprecated:: 3.26
Shape digitizing is now part of the add feature tool. To enable the shape tool, use :py:func:`QgsMapToolCapture.setCurrentCaptureTechnique()` and then :py:func:`QgsMapToolCapture.setCurrentShapeMapTool()`.
%End
virtual QgsVectorLayerTools *vectorLayerTools() = 0;
%Docstring
Access the vector layer tools instance. With the help of this you can
access methods like addFeature, startEditing or stopEditing while giving
the user the appropriate dialogs.
:return: An instance of the vector layer tools
%End
virtual int messageTimeout() = 0;
%Docstring
Returns the timeout for timed messages: default of 5 seconds
%End
virtual QgsStatusBar *statusBarIface() = 0;
%Docstring
Returns a pointer to the app's status bar interface. This should be used
for interacting and adding widgets and messages to the app's status bar
(do not use the native Qt :py:func:`~QgisInterface.statusBar` method).