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, [email protected] 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 > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-user > -- Andreas Neumann http://www.carto.net/neumann/ http://www.svgopen.org/ _______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
