Monday, May 21, 2007

KPassivePopup Comic style

A KPassivePopup is a notification that appears briefly on your screen and you don't have to do anything with it except read it. It provides you some information about your application (I must say that I don't like them when they are used at the start of an application like yakuake or Katapult as I launch many apps and I never have time to read them hence I then miss some important info like the shortcut for Katapult...).
In KHangman, I use KPassivePopups to tell the user that the letter he/she entered has already been guessed. The popup is in Comic style
popup->setPopupStyle( KPassivePopup::Balloon );
and is prettier than a plain rectangle. It looks like that:


However on KDE4 there is something broken and it looks like that:



The code that breaks it is in KPassivePopup::updateMask() method and will probably be a one liner. However neither Pino nor me managd to find the solution so far.
We made 2 changes that improve things:
line 469 QBrush brush( Qt::color1, Qt::SolidPattern );
instead of
QBrush brush( Qt::white, Qt::SolidPattern );
and line 475:
path.arcTo(corners[i].x(),corners[i].y(),40,40, i * 90 , 90);
instead of
path.arcTo(corners[i].x(),corners[i].y(),40,40, i * 16 * 90 , 16 * 90);
(QPointArray to QPainterPath).

Will you be the one who will fix KPassivePopup in Balloon style?

Monday, May 14, 2007

ODF Sunday

We hacked until early morning saturday night/sunday morning and I was glad to have Claire in my bedroom as she is full of energy as soon as she hears the alarm (me alone I would have put it on /ignore). After a shower I was fully awake and ready to get a good breakfast. Everyone started coming even the one who went partying (no, no, I won't disclose any name) and at 9:30 we were all busy hacking again at the KDAB office. A big thanks to KDAB people who not only sponsored the event for food and drinks and offices but were also giving their time by ensuring we had everything we need. The result is that now everyone dreams to work in the same environment than they do and with such nice people. Thanks also to Claire who looked over all the practical arrangments, the hotel was so quiet and nice!
I put my pictures here.
My journey back to Toulouse went evently, the plane flew over Switzerland in order to avoid the nasty weather in France and near Toulouse I saw a magnificent thunderstorm above the clouds. I had time to buy 2 nice Berlin T-Shirts for Leah (who had her birthday on Saturday) and Clarisse and 2 pairs of socks for my husband (very imaginative, isn't it? but then they have Berlin logo!) and other small goodies. Next Thursday is yet another bank holiday in France (no school or work on Thursday and Friday, we call that a "bridge", so to jump from the Wednesday evening to the next Monday) thus we'll make up for Leah's birthday and mother's day. Credits go to my husband who handled the week-end perfectly well despite a heavy schedule on Sunday!

Saturday, May 12, 2007

ODF Saturday

I travelled to Berlin yesterday, stopping at Munich (I was amazed to see that coffee and tea are free in Munich airport! However while I picked a wifi network it did not want to go to any other webpage than the one that said: pay in order to use the wifi network!) Anyway I was there for only a short time. Thanks to the nice organization, I took a bus then the U Bahn and arrived around 9:30 pm in the front of KDAB offices except everything was dark, the gate was locked, there was no KDAB logo and noone in the neibourhood knew about it. As I don't have a cell phone, I was wondering what to do but at that point Inge and everyone arrived from dinner. The KDAB offices are really nice, we have plenty of rooms, network is working. The hotel as well is perfect, quiet (our room is on the back side) and clean. I was happy to meet Claire again! Today David Faure gave as a presentation about ODF (ODF in a nutshell!), considering the specs are more than 700 pages you can imagine there's a lot to say about it. His talk was very neat and easy to follow and we carried on after lunch which we took at the office. Thomas concluded with some slides about Flake. We then discussed about sharing a bit of KOffice libs with the rest of KDE in the extend of what is possible in order to ease the use of ODF in other KDE apps. You can read about it on the Dot! I gave my point of view on what KDE-Edu can gain using ODF. I also worked on the website. We then headed for dinner and Ellen joined us thus we were actually 3 KDE women :) No need to say it's really nice to meet people in real from Ingwe the efficient organizer to Philip to whom I talked about doc quite a lot on IRC in the past years. Thanks to the sponsors for allowing this gathering, it's so much efficient to work in real than through virtual channels!
Oh and I forgot to add that I have the "smurf" flavour in the icecream distributed network! Isn't blue great?

Sunday, May 06, 2007

Qt StyleSheet - part 2

I just like Qt StyleSheet so much that I cannot stop using it! I applied it on KHangMan widgets, I even defined a color slightly lighter for the Guess button when the mouse hovers over it (hmmm, not sure if "hovers over" is right!)
On the left, KHangMan before and on the right, after applying the Magic Sheet.



I think I do too much KDE stuff. At home the other day I said that I was going to see if the washing machine has finished compiling... And today at dinner we were talking about history and evolution and the kids said to me: there was the Homo Sapiens and Homo Habilis and you are the Homo Laptopus!

Wednesday, May 02, 2007

First aKademy

Finally I am able to go to aKademy for the first time this year. I now live in Europe and I managed to arrange day care for Clarisse which is not so easy as she cannot go to a creche for a few days, being with me at home. I'll head for Glasgow with the Toulouse crew (we're 5 said ervin) on Friday 29th and I'll leave on Thursday 5th. I'm preparing the Edu & School Day on Tuesday and I'll give a talk on Wednesday which is Tutorial Day. aKademy is therefore already productive for me and I'm looking forward meeting a lot of KDE people and thus defining my KDE contributions for the next year.
If you are building KDE 4 from source, there's been some changes since last Monday so please have a look at http://techbase.kde.org/Getting_Started/Build/KDE4 which is up-to-date.
Yesterday was a bank holiday in France and we had some friends around. Deb also is at home after a week in Switzerland and before heading to Montreal next Sunday, she'll be doing some research work for her university diploma here. In the meanwhile she is enjoying playing with Clarisse and she also has quite a lot of homework.

Sunday, April 29, 2007

On icecream and fairness

Thanks to the help of Niels and Vladimir, the solution for the QStyleSheet variable was to do:
int r, g, b;
m_theme->letterInputColor().getRgb(&r, &g, &b);
m_letterEdit->setStyleSheet(QString("border-style: solid; background-color: rgb(%1, %2, %3); border-bottom-right-radius:10; border-radius: 15px; border-width: 3px").arg(r).arg(g).arg(b));
It's the getRgb() that I failed to see how to use!

Yesterday on Saturday I went to the monthly hacking day organized by ervin in Toulouse. We were 7, sharing the power of our machines with icecream and hacking on various things.

Speaking of Icecream, B&J is now selling Fair-Trade icecreams. Nice to see fair trade spreading in lots of areas, I also noted a new trend in ethically made clothes, using organic material.

About patents: Quoting the BBC website: "The Thai government's decision to bypass the patents on two Aids drugs and one heart drug, so it can offer them to all Thai citizens, is a bold move, which has put the country on a collision course with the big pharmaceutical firms."
I do hope it'll induce a change of world ethics.
The FFII motto for its campaign against software patents Ethipat is "Sometimes less is more" (I have a poster of it in my kitchen). Sometimes less money for a few individuals in pharmaceutical firms is more health for thousands people.

Thursday, April 26, 2007

QStyleSheet

Yesterday I thought I can be a bit artistic and improve the KLettres input widget (which is a QLineEdit). So I looked at QStyleSheet and after lots of trials I found out that it cannot take any variable. You have to set
background-color: rgb(202, 217, 84);
and you cannot set
background-color: rgb(m_theme->letterInputColor());
OK, I thought I'll set the nice round corners and border width with QStyleSheet and the colors with QPalette. No luck, QStyleSheet overrides QPalette, no way you can use both.
Pino cleaned my code recently and put everything related to themes in one class in order to manage that easier. So if I use QStyleSheet I'll have to hardcode the colors in the KLettresView class...

You can see on the left the normal widget used with QPalette and on the right the widget with a QStyleSheet applied which allows the rounded corners and the border width to be customized.




The stylesheet code looks like this:
m_letterEdit->setStyleSheet("border-style: solid; color: rgb(141, 80, 17); border-color: rgb(141, 80, 17); background-color: rgb(196, 189, 94); border-bottom-right-radius:10; border-radius: 15px; border-width: 3px");
where m_letterEdit is my QLineEdit.

Note that you can easily set stylesheets in Qt Designer by right clicking on the widget and choose "Change stylesheet..." then write your stylesheet attributes in the field. The dialog checks that they are valid.

Wednesday, April 25, 2007

Edu & School Day at aKademy

There will be a special focus on Education at next aKademy, Tuesday 3rd July, at the Department of Computer & Information Sciences, University of Strathclyde in GLASGOW. Various talks about using KDE in schools, deploying Linux will look into the reality of real life for teachers. GCompris author, Bruno Coudoin, will present GCompris and will probably amaze you with his Tux Droid (Bruno demonstrated it at our LUG and as Bruno is talented to speak, he made it a very enjoyable talk). Recently Bruno also got an OLPC small laptop and integrated GCompris with it. If you don't know GCompris, it is a whole educational suite with lots of activities. Primarily targetted to kids, it is now also widely used for rehabiliting adults, as I mentioned in my previous post.

See the Dot article for more details and don't forget to add your name on the wiki page.

Please help spread the word with this nice flyer (picture by Nuno Pinheiro, flyer improvement by Melissa from the Promo team, big thanks to both). Send it around to people involved in education, to your LUG (you can print it easily) and help make a difference in spreading freedom in education!

Saturday, April 21, 2007

KLettres

I started KLettres when I was trying to get Leah learn the alphabet. The idea is simple: display a letter, listen to its sound and type it. Then at the second level you only hear the sound of the letter and you have to type it. Levels 3 and 4 are the same for syllables. The difficulty is that the program needs someone to record the letters of his language alphabet and some common syllables. So far KLettres supports 13 languages which is quite good.
Klettres is thus a very simple program. It looks so simple that it is sometimes overlooked. I am not sure it is included in Edubuntu. However, having already 13 languages shows that it is used. It is used in Uganda and in India for example. I also recently got a mail from someone who uses it for teaching kids with Cerebral Palsy. Very often, free educational software help reeducation and rehabilitation of adults. GCompris, the well known educational suite of activities for children is also used in such reeducational environment for example to help people recover their memory or to help moving hands and arms with some simple exercises and so on.
I coded support for svg backgrounds in KLettres these past 2 days. KLettres graphical interface is very simple and thus it needs nice backgrounds. Thanks to Danny Allen, KLettres has 3 svg different backgrounds, the "Desert" one was already there as png in KLettres for KDE 3 and Danny made 2 more nice backgrounds, one for kids and one more for adults. Also a big thank you to Pino Toscano who cleaned the KLettres code and provided a nice and easy management for different colors and widgets locations.
The mandatory screenshot


Leah is reading the Harry Potter books so I guess KLettres got her started well!

Friday, April 20, 2007

Back from vacation

I had a great 2 weeks holiday in Burgundy, meeting family and having a great time with the kids as you can see on the pic (we had to put Clarisse in a kid pen which of course she did not like but in this old house she could not crawl safely and freely like at home thus we took turns in the pen with her!)



It was relaxing and the weather was awesome, still is in Toulouse!
Back at home I caught up with latest KDE development and I am improving KAppTemplate, learning to use D-Bus in order to integrate it in a template. I am also writing a doc for KAppTemplate so it'll get more exposure, so far I think it was the most unknown feature of the kdesdk module. I'll blog more about it so that new KDE 4 would-be developers can use it to easily start programming.

Saturday, March 31, 2007

Holiday & Dev Items

I'll be away on holiday for 2 weeks (the kids have Easter holidays) in Burgundy to see my parents, in-laws and family. Unfortunately there's no internet connection so it'll be a break from KDE. In any case I'll be back the 15th April fueled with fresh air and good food (my mum's a great cooker). Deb will come on Wednesday from Lyon, she did not see her brother and sisters for 3 months. Blandine has no holiday so is staying in Montreal.

I'll bring qt-copy from trunk in my laptop which is now Qt 4.3 beta and I plan to test something I'd always wanted to do: put some QWidget on a former canvas, now a QGraphicsView. This is now easily possible thanks to Andreas and the Trolltech labs. The pros and cons are described in Andreas'blog.

On IRC we chatted about KDE 3 and KDE 4 environments and how to develop KDE 4 programs with KDevelop 3.4 (in KDE 3) when you have separate users for each environment. milliams came with a very good tip to do so which I share with you. You use the great Alt-F2 command and type kdevelop (yes, I know, until there, nothing new). Wait! Expand the Options and check
"Run as a different user"
then add your KDE 4 user name and password.

KDevelop 3.4 will then start but it'll load all the environment variables from KDE 4. From there you can start a Qt 4 template or import an already existing KDE 4 program. If you work with a KDE 4 imported program, import it as "Generic C++ (custom buildsystem)" and then set cmake this way: in the Project Options dialog, Make Options tab, set the name to the make executable to point to a script. This custom shell script should "source ~/.bashrc" and then run "cmake" and "make" etc.
Thanks a lot to milliams for sharing that!
Another tip: in the "Project Options" dialog, "C++ Support" tab, be sure that your Qt points to Qt 4. You can set there the path to qmake and designer.

Update: another KDevelop setting for developing KDE 4 apps can be found on techbase.

Have fun with KDevelop and KDE 4 development. This week-end is the last week-end for kdelibs changes, I can't wait to come back in 2 weeks and see the latest goodies there, KNewStuff2 being the one I am most waiting for!

Sunday, March 25, 2007

Latex Beamer

My husband is keen in using Free Software as much as possible for his work and I was telling him my friends use Latex Beamer for their presentations. He used to use SliTeX but that was not up to the job. he was happy to learn about Beamer. So we competed to see who will be first to have a Latex-Beamer working installation. Our distribution somehow did not have it so we installed from sources. I won!
As a coincidence, Thomas from my LUG asked me if I wanted to do a KDE presentation for our next LUG meeting on Wednesday evening! I felt obliged to say yes as I was not very much involved in the LUG activities these past 2 months. So here I am feeling the Ultimate Geek using LaTeX!!! I must say Beamer is very neat and the pdf output is impressive. There's a Beamer template available for KDDE presentations, thanks to Kévin, so half the work is already done. Well, the other half requires my attention now!
\end{post}

Saturday, March 17, 2007

Statistics

Someone asked me recently how many developers there was in KDE-Edu and I could not assess the number. Thus I analyzed the current situation and I'm happy to share the figures with you. It's quite amazing as you will discover. It shows that most developers are quiet people who don't blog much and stay in the shadows of KDE, especially as KDE4 is not out yet.
For KDE4 edu development, we had 12 people who joined KDE-Edu! Yes, twelve, isn't that impressive? We have new developers for KVocTrain, Kiten, KTurtle, KmPlot, Kalzium, we have new projects in development in playground,... We have a developer who made a comeback: he started a program, had to stay away from KDE develpment for a few years and now he is back in the team. This also includes an artist, Johan, who does artwork for Kalzium. From the "older" developers (KDE3), 10 are still active while 4 intend to do work but do not have so much time.
If we add it up it's quite a big team and it shows at a small scale how Free Software Projects work, with a flow of people contributing, with people very active then driven away by life (having Clarisse and moving home last year made me quite inactive for several months for example) and new people joining.
I'd like to warmly thank all the KDE-Edu team for making it such an active project and to encourage new people to join the KDE community! And welcome to the new contributors!

Wednesday, February 28, 2007

FOSDEM follow-up

After the nice edu meeting at FOSDEM last Sunday morning, I started a wiki page so people can write down their ideas. I took few notes during the meeting so it's difficult to build a report on that. The wiki will help and I already got some feedback :-)
http://wiki.kde.org/tiki-index.php?page=FOSDEM2007EduReport
I'll then send that to all people who were present and to other people who could not come. We need to promote better Free Software in Education and that's why we need to work together. The idea of a general wiki where people using Free Software could be listed would be good. Skolelinux already has a webpage listing the schools who use it.

Another side effect of FOSDEM is that I started ported KioskTool to KDE 4 but it's quite long. The more we wait for porting programs to KDE 4 the more it's painful to do so. I'm struggling with subclassing the .ui files and also with DCOP to DBUS. First goal is to make it build... Scripts like am2cmake and qt3to4 work well but there's lot of code still to be ported. Well, all KDE core devels have to do boring stuff as well so it's not an exception!

Monday, February 26, 2007

FOSDEM - Sunday

On Sunday morning I had the KDE room for 3 hours to conduct a workshop on "Free Educational Software: Working Together". The aim was to gather various people involved in Free Educational Software (developers, associations members, distributions,...) and to see how we can collaborate better. 20 to 25 people attended which was good and I'll put together a note on what we debated on. More on that in the next days. Warm thanks to all people who participated and also thanks to Bart for letting me have the room. A cool idea would be to have a scheduled track next year with presentations in FOSDEM.
In the afternoon, I attended the 3 KDE talks: Krita by Bart Coppens (the demos were excellent), KDE4 by Jos Poortvliet (the room was packed) and KDE e.V. by Sebastian Kügler.
See all that on pictures on http://www.flickr.com/photos/75461282%40N00/sets/72157594557713350/
All KDE talks were very interesting and I learnt quite a lot as I was not familiar with Nepomuk and Strigi. No need to say that I am a Krita fan and the Flake shapes are so good in KOffice (how about a kid app with the shapes and a few stamps and colors?)
It was then time to go to the airport and take the plane back to Toulouse. I enjoyed traveling with Kévin (ervin), it made the transport time go very fast :-)
Very nice meeting you all! I had a great and very productive time!
Back at home my husband dealt OK with the kids. Even if Clarisse is #5 and he is now experienced, it's a lot of work to have a crawling baby to look after. Big hug!

Sunday, February 25, 2007

FOSDEM Friday && Saturday

I arrived in Brussels by plane with ervin and after some walk to drop our things at our hotels we went to see the Grand Place and some touristical things (of course it started to rain) with Guillaume, a nice French guy who was at the Youth Hostel. I was starving as we only had a sandwiche in the plane and believe it or not, in Belgium the streets smell chocolate! We joined the Roy d'Espagne early and that was good as it got quickly packed and people could not sit anymore. I met ThomasZ and guess what, suddenly Jonathan appeared! He said the previous day he could not come but a KDE gathering has such an attraction power that he had to be there. My English was a bit rusty but it improved after 2 beers ;-) People easily recognize me from the pic and from the fact that I have a unique profile in KDE while I am not so good in recognizing them. Kurt from Skolelinux was also sitted close. We had a great time and moved to another pub after Adriaan and others arrived. Fortunately on Saturday the day started at only 10:00 am and first we had a talk about patents in Europe. The talk was very interesting and straight to the point. The OLPC talk was less interesting as Jim Gettys showed the laptop hardware specs and talked little about software and even less about potential issues. Well it's difficult to cover it all in 1 hour. The afternoon the KDE room opened and I met more people. I attended the talks there then we went to dinner. The group splitted in 2 groups and my group went to a local restaurant. There the waitres thought I was a teacher with my students! We had a good laugh about it. I got to met Claire and Wendy (yes, 3 women in a group of 10, now that's better than all figures I saw until now) and I really enjoyed the dinner. The Amarok team shared their ideas for KDE4 but took time to eat ;-)
A very friendly day!

Saturday, February 17, 2007

Hacking Day

Today Kévin "ervin" organized a hacking day in Toulouse at the University Paul Sabatier. Some of his students were here as well as 2 of Kévin's friends who want to learn more about KDE developing and it was a very pleasing day (thanks to my husband who looked after the kids, I'll be away again at FOSDEM next week-end so I'm glad he is able to do everything at home :-).
We first started by setting icecream (I managed to erase my gcc but with the help of Thiago and another guy in the Mandriva channel on IRC it was quickly repaired)

then we went on hacking. I helped Flo making a patch for icemon (window not keeping its size and text too bold). His first patch, he would like to contribute to KDE so it's a great start. Everybody was cheerful and had a good time.


At the moment I am working on KAppTemplate, an application in kdesdk. It's a script that generates KDE templates to allow you to start developing easily. At the moment it generates 1 working KDE4 template and I am working on another one which was based on DCOP and should thus include DBus calls. However I did not really get it how QdBus is working. Also I have a bit of trouble with CMake as when I run make, the .moc files are not found in the build dir although correctly generated. So more tweaking needed. I'll write a doc when the templates are working as it's one of those things that exist but few people know about it.
Thanks Kévin for a great hacking day and I'll post the group pic as soon as I get it as I don't have taken any myself.

Friday, February 09, 2007

KDE-Edu progress for KDE4

KDE-Edu is quite alive at the moment. Pino cleaned my code in KHangMan and KLettres, there's still work to do on it. I did not use enough classes when I started coding them and added code in an unruly way. Beginner trap! Albert helped me for SVG rendering in KHangMan as the "desert" theme was slow (cactus'fault). Also today I got sound support for Low Saxon in KLettres. Thanks to all!
We're also trying to fix some warnings in compilation. A new developer is looking into KVocTrain, we also have a new physics program in progress. Of course core developers work hard and are building an amazing KDE4.
Amazing life of FOSS projects!

Monday, February 05, 2007

KDE at FOSDEM

As every year, FOSDEM is again in 3 weeks (24-25 February, in Brussels). Bart Coppens has been busy preparing KDE dev room schedule at FOSDEM and together with Pascal Bleser they put it online: http://fosdem.org/2007/schedule/devroom/kde.
You can see how interesting the talks will be!
Focus has been put from KDE people to meet with other projects. Thus I get the KDE dev room for 3 hours on Sunday morning (9:00am to 12:00) for a meeting of all people interested in free educational software, while the GNOME room will be hosting a session on topics related to crossdesktop issues. I'd like to invite all people interested in Free Education come to share their ideas: developers, packagers, teachers, associations, ...
Working together while being different is the key for building something usefull, in software as in the real world!

Thursday, February 01, 2007

Solutions Linux

On Tuesday and Wednesday I went to Paris to attend the Linux Show called "Solutions Linux". I nearly missed the train to Paris as the Toulouse subway got stuck on Tuesday morning, the subway got to a halt one stop before the station and I had to run in Toulouse streets at 6:00am.
I joined the KDE booth midday on Tuesday. We had 2 PCs sponsored by Open Wengo (which also printed our flyers) plus our own laptops.
Who was there for KDE?
Several French KDE core developers (David Faure, Laurent Montel, Aurélien Gâteau) plus translators (Sébastien Renard, Éric Pignet) and KDE-France Laurent Rathle and Charles de Miramon. Gaël Beaudoin also spent some time at the booth and several other people I knew by mail came to say hello.
What were people interested in?
- KDE4: roadmap, visual preview, latest stuff
- KDE cross platforms
- some support for specific problems. For example a guy is about to open a KDE cyber café in Paris and we were able to give him precise hints on what to tweak (using kiosk) and on how to set up KDE for a best performance run on low machines)
About KDE-Edu
I did a 1 hour presentation about KDE-Edu on Tuesday afternoon which did not attract many people but the persons who attended were very interested. It was my first presentation and I enjoyed it. As it's in French, it'll be available on the KDE-France website.
I also met quite a lot of French edu-related people, people from Scideralle and Skolelinux as well as several teachers who came at the booth so I got interesting feedback. Several teachers told me how good it will be to run kde-edu apps on Windows for KDE4 as they are often dependant on what OS exist in schools. French people in general don't speak English very well so translations are very important to them.

Tuesday was Vista launch and "L'Arche de la Défense" was illuminated with Vista colors and there was fireworks. We did not attend though ;-) We had dinner in a restaurant where Benoît Jacob (Eigen) and Cyrille Berger (Krita) joined us. Needless to say how pleased I was to meet them all.
I came back home won Wednesday evening in a night train, first time I did that. I had a 2 hours wait at the station and I was reading Linux Magazine when 2 people rightly guessed that I was involved in Linux. We spent the next 2 hours chatting, he wants to set up some Free Software parental control solutions for families and seeked adequate software at the show. His assistant was trying to get familiar with the Free Software concept. When I borded the train, there was a younger woman in the same compartment than me and the compartment was so tiny we started laughing when a giant-like guy entered with ski equipment! And he had the top bunk! He laughed as well and looked resigned, in the morning he said he managed to sleep but it was really cramped for him. The girl and me chatted for more than one hour in the hallway before going to sleep, we had quite a lot of common points. It's what I like in trips, especially by trains, people relate very easily.
ToDo for next year
- have KDE posters so the booth will be more visible
- maybe sell KDE goodies
- have flyers with local French contacts as people ask about French resources and several people wanted to know how to join the translation team
- have some business cards to give to important contacts
I don't have any pics but Laurent Rathle took some. Special thanks to him as he asked me to come. He also coordinated the preparation on the KDE-France.org wiki and forum.