@@ -28,6 +28,7 @@ class QWidget;
28
28
class QgsAttributeDialog ;
29
29
class QgsComposerView ;
30
30
class QgsFeature ;
31
+ class QgsLayerTreeMapCanvasBridge ;
31
32
class QgsLayerTreeView ;
32
33
class QgsLegendInterface ;
33
34
class QgsMapCanvas ;
@@ -205,6 +206,13 @@ class GUI_EXPORT QgisInterface : public QObject
205
206
/* * Return a pointer to the map canvas */
206
207
virtual QgsMapCanvas * mapCanvas () = 0;
207
208
209
+ /* *
210
+ * Returns a pointer to the layer tree canvas bridge
211
+ *
212
+ * @note added in 2.12
213
+ */
214
+ virtual QgsLayerTreeMapCanvasBridge* layerTreeCanvasBridge () = 0;
215
+
208
216
/* * Return a pointer to the main window (instance of QgisApp in case of QGIS) */
209
217
virtual QWidget * mainWindow () = 0;
210
218
@@ -291,10 +299,10 @@ class GUI_EXPORT QgisInterface : public QObject
291
299
/* * Remove specified dock widget from main window (doesn't delete it). */
292
300
virtual void removeDockWidget ( QDockWidget * dockwidget ) = 0;
293
301
294
- /* * open layer properties dialog */
302
+ /* * Open layer properties dialog */
295
303
virtual void showLayerProperties ( QgsMapLayer *l ) = 0;
296
304
297
- /* * open attribute table dialog */
305
+ /* * Open attribute table dialog */
298
306
virtual void showAttributeTable ( QgsVectorLayer *l ) = 0;
299
307
300
308
/* * Add window to Window menu. The action title is the window title
@@ -568,14 +576,14 @@ class GUI_EXPORT QgisInterface : public QObject
568
576
* This signal is emitted when the initialization is complete
569
577
*/
570
578
void initializationCompleted ();
571
- /* * emitted when a project file is successfully read
579
+ /* * Emitted when a project file is successfully read
572
580
@note
573
581
This is useful for plug-ins that store properties with project files. A
574
582
plug-in can connect to this signal. When it is emitted, the plug-in
575
583
knows to then check the project properties for any relevant state.
576
584
*/
577
585
void projectRead ();
578
- /* * emitted when starting an entirely new project
586
+ /* * Emitted when starting an entirely new project
579
587
@note
580
588
This is similar to projectRead(); plug-ins might want to be notified
581
589
that they're in a new project. Yes, projectRead() could have been
@@ -585,7 +593,7 @@ class GUI_EXPORT QgisInterface : public QObject
585
593
*/
586
594
void newProjectCreated ();
587
595
588
- /* *This signal is emitted when a layer has been saved using save as
596
+ /* * This signal is emitted when a layer has been saved using save as
589
597
@note
590
598
added in version 2.7
591
599
*/
0 commit comments