Enable ParaView to handle OpenDocuments/OpenFiles events on Mac OS X
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
It would be nice if users of Mac OS X where able to double-click files to open them in ParaView. The patch maintained in
http://github.com/themiwi/ParaView/tree/patches/MacOpenFiles
implements the following:
-
A function to handle the Carbon OpenDocuments event.
-
A method that is injected into QCocoaApplicationDelegate to replace the application:openFiles: method to handle the Cocoa-event.
-
The pqOpenFilesEvent event class which holds a QStringList with the names of all files the application should open which gets sent to the QApplication object by above two functions.
Further, for the ParaView application, an extended Info.plist file is added, associating many (I hope I got them all) file types with ParaView. For VTK and OpenFOAM files I also added icons in Common/DocumentIcons.