LayerContextMenu: Moved export function to module-level.
widgets: Removed old export dlg and ui.
widgets: Refactored export function into a separate file.