Extended file dialog (added option to select/unselect files by pattern)

Patch has originally been written by Ronny Binder <<rbi@hinderlingvolkart.com>>