[Qgis-developer] 3rd party vector editing tools & undo/redo

Alexander Bruy alexander.bruy at gmail.com
Sun Mar 7 14:20:07 EST 2010


Hi,

seems that plugin developers don't implement support of undo/redo stack.
It is not hard to fix this, I think. Only add few lines of code:

layer.beginEditCommand( "Operation name here" )
<do something with feature(s) here>
layer.endEditCommand()


On Sun, 07 Mar 2010 18:33:30 +0000
Giovanni Manghi <giovanni.manghi at gmail.com> wrote:

> Hi all,
> 
> new qgis users are always pretty impressed by the undo/redo feature, but
> then they often ask why not all the vector editing tools do have their
> actions reflected in the undo/redo stack. 
> 
> That is, I'm speaking about vector editing 3rd party plugins: cad tools,
> numerical vertex edit, etc.
> 
> any thoughts?
> 
> cheers
> 
> -- Giovanni --
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Alexander Bruy


More information about the Qgis-developer mailing list