![]()
Some weeks ago, I’ve started to learn a bit of C++. Trying something new once in a while
is fun and earlier programming experience didn’t make it too hard to learn some of the basics.
already although it has some smallish bugs I’ll need to look into. Now I’ve got the
Plasma::Applet that visualises the data mostly working. As basis, I’ve taken the battery SVG
Ken has made for me for powermanager. I needed to merge the different images. Ken had made
one for every frame, I’ve put them into layers. Plasma:Svg is quite nifty, parts of the SVG can
be rendered separately, so one only needs to decide which layers to render (and in what order,
of course), that’s it. Right now, the applet does little more than showing the current status of the battery and
if the AC Adapter is plugged in. I’ve also basically implemented formfactors, so depending on
what one wants to use the plasmoid for, it changes its size. I’ve put the code into playground
(dataengine,
applet)
for those who want to have a look at it and improve it. While
looking at it, please bear in mind that I’m fairly new to C++, so don’t bash me right away.
Comment is welcome (and ontopic on the
panel-devel list, but of course
I’ll also be at aKademy).