tag:blogger.com,1999:blog-68975400174636232372024-03-13T20:55:48.223-07:00Me, me, me, me and KDE...Pinarafhttp://www.blogger.com/profile/06605430320789585595noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-6897540017463623237.post-32913692102158479582009-08-19T16:12:00.000-07:002009-08-20T03:40:29.332-07:00QML fun...[Once or twice a year, this blogs wakes up... Quite strange, isn't it ?]<br /><br />Did you see the <a href="http://labs.trolltech.com/blogs/2009/07/28/qt-declarative-ui-samegame/">nice</a> QML <a href="http://www.youtube.com/view_play_list?p=084A46CE1D502DB3">demonstrations</a> (Qt 4.6, kinetic...) from the trolls ? These demonstrations are so amazing that I'm already using QML in a project I'm asked for my school... But for this project, I have to be able to display videos, and so far there is no video item in QML.<br /><br />So here you'll find a really really basic C++ class to implement a QML video item :<br />- <a href="http://telnet.telecom-lille1.eu/~pinaraf/QML/qfxvideo.cpp">cpp file : http://telnet.telecom-lille1.eu/~pinaraf/QML/qfxvideo.cpp</a><br />- <a href="http://telnet.telecom-lille1.eu/~pinaraf/QML/qfxvideo.h">h file : http://telnet.telecom-lille1.eu/~pinaraf/QML/qfxvideo.h</a><br /><br />These files have no licence header, no documentation of any kind, no comment, no stability test... nothing. It's just some code that may be useful. It contains weirdiness, for sure... But still it is working...<br /><br />EDIT : The files are under LGPL, copyright me... Is it enough for everybody to use it ? I must admit I seldomly care about such licensing stuff, as long as it's free...<br /><br />Usage :<br />- Include the files in your project<br />- In your QML file, put the following code for instance :<br /> Video {<br /> id: "sth"<br /> source: "/home/moi/test.ogg"<br /> width: 320<br /> height: 180<br /> }<br /><br />And that's all for now...Pinarafhttp://www.blogger.com/profile/06605430320789585595noreply@blogger.com4tag:blogger.com,1999:blog-6897540017463623237.post-15809810350170220332008-08-19T13:43:00.000-07:002008-08-19T13:50:28.335-07:00nVidia driver : at last....Good news for every nVidia user using the nVidia proprietary driver : most of the problems we had on GeForce 7 and 8 with nVidia proprietary driver seem to have been fixed in the latest nVidia driver release.<br />It's the release 177.67.<br /><br />They are still marked as beta, but I think they're worth switching to them.<br /><br /><a href="http://www.nvidia.com/object/linux_display_amd64_177.67.html">x86 64 bits : http://www.nvidia.com/object/linux_display_amd64_177.67.html</a><br /><br /><a href="http://www.nvidia.com/object/linux_display_ia32_177.67.html">x86 32 bits : http://www.nvidia.com/object/linux_display_ia32_177.67.html</a><br /><br />So every one suffering problems with 2D acceleration problems with nVidia proprietary driver should upgrade as soon as possible...Pinarafhttp://www.blogger.com/profile/06605430320789585595noreply@blogger.com16tag:blogger.com,1999:blog-6897540017463623237.post-23242722969813765392008-08-14T17:39:00.000-07:002008-08-17T07:51:12.156-07:00</gsoc2008><humour>Dipesh, I think I'm gonna sincerely hate you... You know I don't like blogging, I already told you, and despite of this you send blog posts that I have to answer if I don't want to look impolite...<br />That's a dishonest way of doing things, a treachery.</humour><br /><br />So, I won't make the whole history of the page master thing, it has already been described by dipesh, in commits, on koffice mailing list and so on... Doesn't really matter.<br />The changes we made in the branch have been reviewed by Thomas Zander on Monday, I spent a lot of time to fix every problem reported (mainly unit tests needing upgrades), and also improving the changes, Sebastian did the UI changes. The branch has been merged into trunk today, so it's done : KWord does support page styles.<br /><br />Else, I started looking at the other KWord problems (not ODF specific). There are a lot of cool things to fix, like for instance cursor blinking (too late, it's done), table support (too late, you're doomed if you try this), working support for variables in headers/footers (if possible without requiring hacks, it's gonna be hard)...<br /><br />This year, the summer of code ends quite early : on monday, it'll be over. So I'd like to thank my mentor Sebastian (despite his treacherous blog posts), the whole KOffice team, the KDE community and the folks I met at the Akademy (I won't give any name, I'm too bad at remembering names and it would hurt people if I forget them I suppose)...<br />I do not thank nokia for giving away free N810 to developers and thus killing the wireless router at the Zandpoort Youth Hostel (and I didn't manage to get any N810 :/ too bad, I wanted to port parts of KWord to it).<br /><br />Well, I think this blog post isn't messy enough to be a good one, but I have no idea to increase the mess.<br />Ho sure I have things to add.<br />For instance, I promise I'll do my best to continue working on KWord during the next year. There are so many bugs to fix, features to add...<br />Too bad, I had other things to add but I forgot them.Pinarafhttp://www.blogger.com/profile/06605430320789585595noreply@blogger.com8tag:blogger.com,1999:blog-6897540017463623237.post-51347574200272643492008-07-01T17:21:00.000-07:002008-07-01T17:36:28.806-07:00KWord progress : table of content...Hello world !<br /><br />The SoC started a few weeks ago, and I'm back for ODF and KWord again.<br />School is over only since a few days, so I didn't have as much free time as I hoped (and I had some other personal problems to fix first)...<br />Anyway, here is a screenshot of tonight KWord work : beginning of table of content support.<br />It's unusable so far, but it's good enough for a screenshot :)<br />(Of course, the lines beginning with "TOC entry" are automatically generated, else it wouldn't be funny)<br />Special thanks to dipesh for exploring the KWord/KoText codebase with me :)<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_KfGU7C_kFSs/SGrKI8Lxu8I/AAAAAAAAAAU/7ONkCMIBiB8/s1600-h/kword.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp0.blogger.com/_KfGU7C_kFSs/SGrKI8Lxu8I/AAAAAAAAAAU/7ONkCMIBiB8/s320/kword.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5218205373205429186" /></a>Pinarafhttp://www.blogger.com/profile/06605430320789585595noreply@blogger.com4tag:blogger.com,1999:blog-6897540017463623237.post-56204429769457155562007-08-28T13:35:00.000-07:002007-08-28T13:49:30.101-07:00Test documents needed...Hi folks<br /><br />As you probably know, I worked on ODF support for KWord during this Summer of Code.<br /><br />But now :<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_KfGU7C_kFSs/RtSJhNg1D1I/AAAAAAAAAAM/QF1CVgMRvDA/s1600-h/wewantyou.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_KfGU7C_kFSs/RtSJhNg1D1I/AAAAAAAAAAM/QF1CVgMRvDA/s320/wewantyou.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5103855481373658962" /></a><br /><br />Please, send me as many documents as possible. There are probably some features lacking, but I must know what are the main problems remaining.<br /><br />Send them to me at pinaraf__A_T__gmail.comPinarafhttp://www.blogger.com/profile/06605430320789585595noreply@blogger.com6tag:blogger.com,1999:blog-6897540017463623237.post-86436923759257397182007-07-03T16:37:00.000-07:002007-07-03T16:50:07.594-07:00Korganizer with kicker clock applet integration - 2Hello world<br /><br />I didn't expect that much answers from my previous blog entry...<br />What's so special with this clock applet - korganizer integration ? I don't use KOrganizer (my brain is not compatible with such applications : I'm far too messy) so perhaps I'm missing something here...<br />Thanks to Tobias Koenig for his suggestion about the KDCOPServiceStarter. I didn't know this, and it's quite great. Now the code is far less ugly. So the new patch can be downloaded <a href="http://www.pinaraf.info/clock_applet2.patch">here</a>. That's the only change I made, sorry I had no time to look at the duration of events.<br />For the upstream inclusion :<br />1- I'm not sure there will be a new KDE 3.5 release... I'd prefer a KDE 4.0 sooner if possible.<br />2- This patch introduces a new dependency in kdebase. If somebody want to look at the weird autotools and make this optional, then perhaps the patch could be accepted, but I'm not sure...<br />BTW, I'll look at KDE4 tomorrow and forward-port the patch if needed.Pinarafhttp://www.blogger.com/profile/06605430320789585595noreply@blogger.com11tag:blogger.com,1999:blog-6897540017463623237.post-28338847663490827082007-07-02T14:31:00.000-07:002007-07-02T14:41:35.763-07:00Quick and Dirty : clock applet patch for KOrganizer integrationHi<br /><br />A friend bugged me about the gnome clock applet that had evolution integration while the KDE clock applet doesn't have KOrganizer integration.<br />So I decided to hack something on it during the night...<br />The result can be seen here :<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.pinaraf.info/calendar.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px;" src="http://www.pinaraf.info/calendar.png" border="0" alt="" /></a><br />As you can see, days with an event have a blue circle for background... Ugly but enough with my graphic abilities. And when you click on a day in the calendar, korganizer opens itself on this day...<br />The patch is really simple and can be found <a href="http://www.pinaraf.info/clock_applet.patch">here : http://www.pinaraf.info/clock_applet.patch</a><br />For the compilation, I tried to understand. Well, I hope I'm not too wrong in the explanations :<br />1- download kdebase-3.5.7 (may work with another kdebase... may not work... who knows...)<br />2- extract<br />3- go into the subfolder kicker/applets/clock and apply the patch (typ : <i>patch -p1 < ~/clock_applet.patch</i> for instance)<br />4- go back into the "root" of kdebase-3.5.7<br />5- launch <i>./configure</i><br />6- launch <i>automake-1.9</i> (or if somebody still has hairs, he can look at this and explain how to do it the right way)<br />7- since you don't want to waste your CPU to compile the whole kdebase stuff compile with the following commands :<br />8- <i>cd kicker/libkicker</i><br />9- <i>make</i><br />10- <i>cd ../applets/clock</i><br />11- <i>make</i><br />12- <i>make install</i> as root.<br />Then you can relaunch kicker using the command <i>dcop kicker Panel restart</i>. Et voila...<br />You've got an ugly-looking integration between Korganizer and the clock applet, with a dependency on kdepim for a kdebase applet... Since kdepim is splitted with kdepimlibs, I hope it has already been done in KDE4... (I don't use korganizer so I didn't test this yet)<br /><br />Any comment, feature request... can be written here. But don't expect every feature request to be accepted and worked on : I consider this as a waste of time...Pinarafhttp://www.blogger.com/profile/06605430320789585595noreply@blogger.com14tag:blogger.com,1999:blog-6897540017463623237.post-29749786169948108982007-06-13T14:41:00.000-07:002007-06-13T15:12:14.063-07:00Progression on my Summer of Code work...Today (and monday late) I started implementing support for line through text styles.<br />That's quite a lot of work because that's not supported by Qt4 scribe :/<br />I'm really happy because it's basically working, and that's not something I expected to be that easy. Ok, still a lot of work to do, but the basis are working. And the next parts are only going to be writing boring code to implement the various attributes for line through text...<br />Something interesting with this : OpenOffice doesn't fully implement this. It does support only line through text types and letter through text. Nothing else. We support near of fully line through text styles, what's left is types, color and width. We don't support letter through text, but that'll be easy.<br />No screen shot currently because the result is still a little weird...Pinarafhttp://www.blogger.com/profile/06605430320789585595noreply@blogger.com1tag:blogger.com,1999:blog-6897540017463623237.post-68114780622470337492007-06-02T11:13:00.000-07:002007-06-02T17:33:27.037-07:00Fun with the testsuite...Well I wasn't able to do a lot of work on KWord recently : my KDE4 copy broke totally, I had to build it again from scratch...<br />But now I can continue my fun work : playing with the ODF testsuite. This testsuite is extremely interesting : its files are quite small, testing one feature totally...<br />Really good.<br />But some test cases are broken. For instance, no suite should be able to pass the font size test case totally except openoffice because the file isn't valid regarding the spec (there is no "Default" style defined in the spec, and it's mentionned in the file but not defined).<br />A problem with manipulating ODF files such as these : you must unzip them, then you can open each XML file in KWrite.. That's quite boring. I just wrote a ~20 lines Q&D python program (Quick and Dirty) to help me with this. It's showing on the left the file list, and on the right it shows the file, in raw text. Fast and simple. Now, I can just drop an ODF file from konqueror to the icon on my desktop and voila.<br />Mandatory screenshot : <a href="http://www.pinaraf.info/ODF_viewer.png">http://www.pinaraf.info/ODF_viewer.png</a><br />The source code (using Python + PyQt4) : <a href="http://www.pinaraf.info/ODF_explorer.tar.bz2">http://www.pinaraf.info/ODF_explorer.tar.bz2</a><br />If you consider this small piece of code usefull or a good idea or a "should be improved" thing... send my an email or post a comment. I don't plan to extend it really, it's doing its job for me, I don't need more... but if you want more, perhaps you'll get more :)<br /><br />That's all folks...<br /><br /><br /><br />P.S : I upgraded this small python thing : now it's automatically pretty-printing the ODF files, and there is some basic coloration of the XML file... Far far better :)Pinarafhttp://www.blogger.com/profile/06605430320789585595noreply@blogger.com0tag:blogger.com,1999:blog-6897540017463623237.post-82505212125530851642007-05-28T14:27:00.000-07:002007-05-28T14:36:26.343-07:00This is where the fun begins...And here we go.<br />This is the beginning of my blog for the Summer of Code 2007. Don't expect too much from this. It's the first time I blog, and I don't really like blogging.<br /><br />So, what am I doing for this SoC ? I'm just trying to have as many OpenDocuments working out of the box in KWord. That's all. Ideally, I'd like to have every single line from the over 700 pages spec implemented in KWord. Realistically, it means I'm doing my best to have more test cases working from the opendocument testsuite, and then I'll switch to some real documents.Pinarafhttp://www.blogger.com/profile/06605430320789585595noreply@blogger.com0