more main menu event -> command migration.

It builds this time (bug already reported).
more file menu events -> command migration.
more menu event -> command migration.