Skip to content

Commit 2b74e89

Browse files
committed
API documentation for QgisInterface
1 parent b114dce commit 2b74e89

File tree

1 file changed

+31
-9
lines changed

1 file changed

+31
-9
lines changed

src/gui/qgisinterface.h

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ class GUI_EXPORT QgisInterface : public QObject
373373
* An item can be inserted before any existing action.
374374
*/
375375

376-
//! Menus
376+
// Menus
377377
#ifndef Q_MOC_RUN
378378
Q_DECL_DEPRECATED
379379
#endif
@@ -401,7 +401,7 @@ class GUI_EXPORT QgisInterface : public QObject
401401
virtual QMenu *windowMenu() = 0;
402402
virtual QMenu *helpMenu() = 0;
403403

404-
//! ToolBars
404+
// ToolBars
405405
virtual QToolBar *fileToolBar() = 0;
406406
virtual QToolBar *layerToolBar() = 0;
407407
virtual QToolBar *mapNavToolToolBar() = 0;
@@ -423,7 +423,7 @@ class GUI_EXPORT QgisInterface : public QObject
423423
*/
424424
virtual QToolBar *webToolBar() = 0;
425425

426-
//! Project menu actions
426+
// Project menu actions
427427
virtual QAction *actionNewProject() = 0;
428428
virtual QAction *actionOpenProject() = 0;
429429
virtual QAction *actionSaveProject() = 0;
@@ -434,7 +434,7 @@ class GUI_EXPORT QgisInterface : public QObject
434434
virtual QAction *actionShowComposerManager() = 0;
435435
virtual QAction *actionExit() = 0;
436436

437-
//! Edit menu actions
437+
// Edit menu actions
438438
virtual QAction *actionCutFeatures() = 0;
439439
virtual QAction *actionCopyFeatures() = 0;
440440
virtual QAction *actionPasteFeatures() = 0;
@@ -450,31 +450,53 @@ class GUI_EXPORT QgisInterface : public QObject
450450
virtual QAction *actionDeletePart() = 0;
451451
virtual QAction *actionNodeTool() = 0;
452452

453-
//! View menu actions
453+
// View menu actions
454+
//! Get access to the native pan action. Call trigger() on it to set the default pan map tool.
454455
virtual QAction *actionPan() = 0;
456+
//! Get access to the native touch action.
455457
virtual QAction *actionTouch() = 0;
458+
//! Get access to the native pan to selected action. Call trigger() on it to pan the map canvas to the selection.
456459
virtual QAction *actionPanToSelected() = 0;
460+
//! Get access to the native zoom in action. Call trigger() on it to set the default zoom in map tool.
457461
virtual QAction *actionZoomIn() = 0;
462+
//! Get access to the native zoom out action. Call trigger() on it to set the default zoom out map tool.
458463
virtual QAction *actionZoomOut() = 0;
464+
//! Get access to the native select action. Call trigger() on it to set the default select map tool.
459465
virtual QAction *actionSelect() = 0;
466+
//! Get access to the native select rectangle action. Call trigger() on it to set the default select rectangle map tool.
460467
virtual QAction *actionSelectRectangle() = 0;
468+
//! Get access to the native select polygon action. Call trigger() on it to set the default select polygon map tool.
461469
virtual QAction *actionSelectPolygon() = 0;
470+
//! Get access to the native select freehand action. Call trigger() on it to set the default select freehand map tool.
462471
virtual QAction *actionSelectFreehand() = 0;
472+
//! Get access to the native select radius action. Call trigger() on it to set the default select radius map tool.
463473
virtual QAction *actionSelectRadius() = 0;
474+
//! Get access to the native identify action. Call trigger() on it to set the default identify map tool.
464475
virtual QAction *actionIdentify() = 0;
476+
//! Get access to the native measure action. Call trigger() on it to set the default measure map tool.
465477
virtual QAction *actionMeasure() = 0;
478+
//! Get access to the native measure area action. Call trigger() on it to set the default measure area map tool.
466479
virtual QAction *actionMeasureArea() = 0;
480+
//! Get access to the native zoom full extent action. Call trigger() on it to zoom to the full extent.
467481
virtual QAction *actionZoomFullExtent() = 0;
482+
//! Get access to the native zoom to layer action. Call trigger() on it to zoom to the active layer.
468483
virtual QAction *actionZoomToLayer() = 0;
484+
//! Get access to the native zoom to selected action. Call trigger() on it to zoom to the current selection.
469485
virtual QAction *actionZoomToSelected() = 0;
486+
//! Get access to the native zoom last action. Call trigger() on it to zoom to last.
470487
virtual QAction *actionZoomLast() = 0;
488+
//! Get access to the native zoom actual size action. Call trigger() on it to zoom to actual size.
471489
virtual QAction *actionZoomActualSize() = 0;
490+
//! Get access to the native map tips action. Call trigger() on it to toggle map tips.
472491
virtual QAction *actionMapTips() = 0;
492+
//! Get access to the native new bookmark action. Call trigger() on it to open the new bookmark dialog.
473493
virtual QAction *actionNewBookmark() = 0;
494+
//! Get access to the native show bookmarks action. Call trigger() on it to open the bookmarks dialog.
474495
virtual QAction *actionShowBookmarks() = 0;
496+
//! Get access to the native draw action.
475497
virtual QAction *actionDraw() = 0;
476498

477-
//! Layer menu actions
499+
// Layer menu actions
478500
virtual QAction *actionNewVectorLayer() = 0;
479501
virtual QAction *actionAddOgrLayer() = 0;
480502
virtual QAction *actionAddRasterLayer() = 0;
@@ -515,17 +537,17 @@ class GUI_EXPORT QgisInterface : public QObject
515537
virtual QAction *actionHideAllLayers() = 0;
516538
virtual QAction *actionShowAllLayers() = 0;
517539

518-
//! Plugin menu actions
540+
// Plugin menu actions
519541
virtual QAction *actionManagePlugins() = 0;
520542
virtual QAction *actionPluginListSeparator() = 0;
521543
virtual QAction *actionShowPythonDialog() = 0;
522544

523-
//! Settings menu actions
545+
// Settings menu actions
524546
virtual QAction *actionToggleFullScreen() = 0;
525547
virtual QAction *actionOptions() = 0;
526548
virtual QAction *actionCustomProjection() = 0;
527549

528-
//! Help menu actions
550+
// Help menu actions
529551
virtual QAction *actionHelpContents() = 0;
530552
virtual QAction *actionQgisHomePage() = 0;
531553
virtual QAction *actionCheckQgisVersion() = 0;

0 commit comments

Comments
 (0)