Issue #526: point 4 resolved, need to be tested
resolves #524
#539 started
fixes #531, fixes #532, fixes #533 via resolves #539
resolves #507;
Issue #510: added a context menu in shapes lab and create setting dialog for shapes lab