Automatically link up states to window manager events
Make all longlat projection methods virtual