Added slots, fixed mistake in EventHandler, lots of work on main window
Work on editor