OpenImageIO/oiio — pull request #257 by skelet (2012-03-20 20:37:20+00:00)
Title: Various small improvements for IV

Hello,

This is Casian, introduced myself on the ML yesterday I believe, regarding GSoC.

I gave IV a spin and noticed a couple of things that didn't seem consistent with what I was used with. So I decided to try to fix them.

There are mainly improvements to the file dialogs. The open dialog starts on homeDir() - seems more appropriate than the directory of the application's executable. It also remembers the path between successive opens. Put some filters for the types of images supported by OIIO, to give a consistent feel with other applications. Anyway, I believe we don't want to see binaries and strange files when looking to open images.

I have a bunch of directories with a huge number of images, so I felt that an add directory feature was necessary.

Noticed #include , that isn't good for compile time afaik. I think there are some recommendations in KDE techbase regarding this. Anyway, changed that towards including each class separately and measured the compile times - apparently this change makes IV compile 30% faster.

IV behaved strangely when an image was closed, it didn't change the displayed image and that was quite confusing. Found a FIXME and tried to put some code that produces ok behavior in that case. I hope it's good enough.

As a KDE user, I'm used to Gwenview, which navigates through images using space and backspace. So I thought adding these keys for navigation in IV besides the arrows and PgUp/Down doesn't hurt.