[Qgis-user] Setting the current active layer programmatically
Andreas Neumann
a.neumann at carto.net
Mon Dec 7 07:34:15 PST 2009
Hi Luca,
Sorry, I can't help with your question, but:
are you aware that the current trunk already supports undo/redo for
editing? Before you invest a lot of time with your own plugin - maybe a
review of current trunk would be useful?
Best,
Andreas
On Mon, December 7, 2009 3:49 pm, luca_manganelli at comune.trento.it wrote:
>
> Hi,
>
> I am writing a plugin that does some editing operations giving the
> possibility to undo operations.
> But the UNDO operation is enabled only if the active layer in the legend
> is
> equal to edited layer.
>
> We have the:
>
> qgsinterface::activeLayer () but no qgisinterface::setActiveLayer
> ().
>
> And the :
>
> qgsmapcanvas::setCurrentLayer (....) (then qgsmapcanvas::refresh ( ) )
> doesn't resolve the problem.
>
> Any hint?
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
--
Andreas Neumann
http://www.carto.net/neumann/
http://www.svgopen.org/
More information about the Qgis-user
mailing list