Extract the context menu from FileItem
This patch moves the generation and maintenance of the FileItem right-click menu into its own class/object, and all FileItems share it.
This reduces the memory consumption and makes the code more clear and organized.
Edited by Rastersoft