I don't know about the flying abilities of time, but it does pass quickly when you love what you are doing! Such is the case with my Google Summer of Code. It's time for mid-term evaluations already!
For those who do not know what I'm talking about, check out my previous post. I have been working a lot in the last month and have achieved quite a lot. Obviously, none of that was possible without continuous support and help from my mentor, Jan Holesovsky.
So, what have I achieved till now? Let's take a look at the screenshot of the Select Persona Dialog the way it looks now:
The users can enter their favorite terms to search for related themes. What happens then?
- The Mozilla's AMO API is used to get the search results. If anyone is interested in the data that is retrieved, click this.
- The retrieved XML is parsed and the learnmore tag's value is used to get the HTML content of the theme from which, the various attributes of the persona, such as it's name, preview file URL, header file URL. text color etc are retrieved and saved.
- The preview URLs are used to get the images and these are displayed in the dialog.
All this parsing and fetching is done in a separate thread. So no hanging of the UI :-)
I know, it's too geeeky! Let's see how it looks:
Yes, I'm a South Park fan, if you haven't guessed till now ;-)
Now, when the user clicks OK after selecting a theme, the header and footer files for the theme are downloaded and applied (this too in a separate thread), and voila!
Presently, I am working on the functionality of using the default themes that are provided with the LibreOffice suite. After this, the main task of the GSoC will be over (pretty cool, huh?), and I'll be looking towards Jan for more work ;-). Hoping to get my code merged in the core repo soon!
Keep watching this space for more. Cheers!
There are comments.