Refactored DiagLeg Plugin, to support QGIS 2.0