Proposition for coding style. Copied from umbrello. Needs adaption and review.