Understanding Cockpit - A development guide (work in progress...)

And here is the slightly more complex version with the controller and the event system: