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@12358 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 7, 2009
1 parent 43183fa commit 35e9935
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
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit 35e9935

Please sign in to comment.