add EditMode enum to Editor and fix enum case conventions