…just another hippy blog

Software development, cold beer, photography and other high-caffeine, bikini powered, topics.

Blog Post #743827

Snail on sail
Originally uploaded by Colours of Infinity.

The photo above is in no way related to the slowness of the development on movida. Ok?!?

Ok, enought with it. This post is not about bikinis or naked racoons, in case you are wondering, so feel free to stop reading and close this page.

There’s been lot’s of progress on movida since my last post and mainly on the Smart View (how does it come that I call something I have written “smart”?!?) and on the bug-side :D
In short, this post is about zooming the Smart View, new movie attributes, new smart view controls and compressed SVGs. No, no bikinis!

As to the smart view, I have completely rewritten the painting code for the item delegate and the tile size handling:

Zooming the Smart View

As you can see, it has three predefined zoom levels: small, medium and large. Small tiles will show 4 lines of text (enough to display title, release year, running time and director!), whilst larger tiles show 6 or 8 (!) lines.

There have been other visual improvements related to the text, like a bold movie title and advanced trimming. The title will always show on one line (as to the current version), but directors, cast and producers will be layed out on up to two lines, eliding at word boundaries if possible. And this is IMHO the best improvement to me.

Another big update: the tiles are now featuring a few controls to set the rating (yeah!) and two of the three new movie attributes (wow!): mark as “seen”, mark as “special” and (shows on the tiles but as an overlay icon to the movie poster) mark as “loaned”.

The good old tree/list/details/call-it-whatever-you-want-view had some minor aesthetic improvements too, and it’s now showing the rating and the three new “mark as” attributes as fancy icons.

Hold on folks, I just realized I didn’t post about my super-stunning svgz plugin! You already know that Qt4 added support for SVG rendering, right? If you didn’t know, well now you know, so read this post again from the top! The only problem is that there is another cool thing called compressed SVGs (or svgz - and plural is “svgzs”, I suppose - but that’s getting too long for me). If you spent the last decade on Mars, it’s just GZIP compressed svgs.

So, I had to take Qt’s SVG icon plugin and add a couple of lines of code to add support for compressed icons. Given that Qt is already statically linked to zlib and that zlib allows to decompress GZIP streams with ease…. well here’s the rest (and the source code) of the story.

Btw. I have borrowed most of the icons from the KDE4 Oxygen project, until someone offers himself to design some cooooool original artwork for movida. Let’s hope the Oxygen guys (I love their work!) won’t kill me :D
Ok, I think that’s all for today. I came up with a new logo for movida (look closely at the screenshots :D) but the new website is not ready yet. I’m just too busy and I really suck as a designer :D

No comments yet. Be the first.

Leave a reply