#4469: Added lines recognition and visualising.
#4503: Added GraphViewContextMenu(not connected)
#4405: Remade ContextMenu classes hierarhy.

Also, simplified searching for action.