Very hard work has been done in these days to improve more and more the Previewer. The first thing i focused on was making a good DBus interface. Helped by Fabrizio Montesi (fmontesi on irc) i made some methods to allow a good integration with JOLIE. So these methods came out:
void openFile(QString filename)
void goToPage(uint page)
QString currentFile()
uint currentPage()
Actually goToPage and currentPage only work when an Okular part is loaded. They allow the client/server communication provided by JOLIE. You can have a look at this screencast made by Fabrizio to show JOLIE+Previewer working together =). http://jolie.sf.net/videos/vision-previewer.ogv
This works for most of you (Thank you Fabrizio): http://jolie.sf.net/videos/vision-previewer.avi
Btw there are also some graphical improvements to talk about =). First of all Nuno Pinheiro made a really nice icon for the Previewer. Currently it looks this way, enjoy:
the Previewer Icon
Now let’s have a look to multiple previews handling. Previewer stores recently opened files in the context menu. Now we have a nicer and faster way to retrieve recently previewed files just by clicking on the left side of the dialog, where a list of recent files is shown. Pictures will talk in place of me =)
multiple previews
I made the list as “Plasmy” (awful term) as possible so that it looks not so alien as other widgets do. It reacts well to theme changing:
previewer glassified
Nice huh? =)
Now, as you (ok, some of you =) ) noticed, there are two more icons near the close button. We got a trash:
the trash icon
As suggested by friedrich| on irc, some of you would need to delete some recently opened files from the history. So here comes that trash: click on it to remove the currently opened file both from the Previewer and from its history. Simple! =)
The second added icon is the resize one =). Since scrolling the wheel to resize the previewer was getting hateful for me i decided to make something different (more like is done for your applets on the desktop).
resize icon
So, as the tooltip suggests, just drag that icon to resize your dialog. =)
Oh! Forgetting.. Some of you asked for an integration with Dolphin/Konqueror. Currently Previewer provides a service menu:
previewer and service menu
“Preview this file” sends the file to Previewer and shows it.. This isn’t a real Dolphin integration. Btw I’m keeping in touch with Peter Penz to integrate this behavior in Dolphin natively. It doesn’t seem so easy to implement but i’m sure that Peter will do a great job for this!! =)
That’s it guys. Of course comments are always welcome!
Cheers
Alessandro.