Find class names in .ui files and headers. Handle being passed in a file instead of a directory.