Skip to content
Permalink
Browse files

[FEATURE] add QgisInterface::setActiveLayer()

also fixes #2167


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12358 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 7, 2009
1 parent 266e511 commit cf519de641b200ec195c96b986f1451810e29c56
@@ -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

0 comments on commit cf519de

Please sign in to comment.
You can’t perform that action at this time.