editor: Only include the UI header in the corresponding cpp file

This allows to reduce the compilation time to only the needed part.

Signed-off-by: Guillaume Clement <gclement@baobob.org>