Added mousePressEvent handler for adding waypoints.