Refactor how views access their main window
Code in KisCanvasControllerWidget assumed that they are children of the main window. This assumption will be broken by the detached canvas mode. Instead, the access is now routed through KisViewManager. To ensure that KisView knows of KisViewManager early enough, its construction has been refactored as well.
Showing with 36 additions and 52 deletions