Skip to content

Commit

Permalink
[FEATURE] add QgisInterface::setActiveLayer()
Browse files Browse the repository at this point in the history
also fixes #2167


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12358 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 7, 2009
1 parent 266e511 commit cf519de
Show file tree
Hide file tree
Showing 9 changed files with 175 additions and 132 deletions.
4 changes: 4 additions & 0 deletions python/gui/qgisinterface.sip
Expand Up @@ -52,6 +52,10 @@ class QgisInterface : QObject
//! Get pointer to the active layer (layer selected in the legend)
virtual QgsMapLayer *activeLayer()=0;

//! Get pointer to the active layer (layer selected in the legend)
//! added in 1.4
virtual bool setActiveLayer( QgsMapLayer * )=0;

//! Add an icon to the plugins toolbar
virtual int addToolBarIcon(QAction *qAction) =0;
//! Remove an action (icon) from the plugin toolbar
Expand Down

0 comments on commit cf519de

Please sign in to comment.