move frompolyfile to widget class as static method, remove addpolygon and its alikes