Skip to content

Commit cf519de

Browse files
author
jef
committedDec 7, 2009
[FEATURE] add QgisInterface::setActiveLayer()
also fixes #2167 git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12358 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

9 files changed

+175
-132
lines changed

9 files changed

+175
-132
lines changed
 

‎python/gui/qgisinterface.sip

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ class QgisInterface : QObject
5252
//! Get pointer to the active layer (layer selected in the legend)
5353
virtual QgsMapLayer *activeLayer()=0;
5454

55+
//! Get pointer to the active layer (layer selected in the legend)
56+
//! added in 1.4
57+
virtual bool setActiveLayer( QgsMapLayer * )=0;
58+
5559
//! Add an icon to the plugins toolbar
5660
virtual int addToolBarIcon(QAction *qAction) =0;
5761
//! Remove an action (icon) from the plugin toolbar

0 commit comments

Comments
 (0)
Please sign in to comment.