Move ScriptingDock contructor to cxx file