{"id":1289,"date":"2007-06-28T00:58:05","date_gmt":"2007-06-27T22:58:05","guid":{"rendered":"http:\/\/vizZzion.org\/blog\/2007\/06\/battery-plasmoid\/"},"modified":"2007-06-28T00:58:05","modified_gmt":"2007-06-27T22:58:05","slug":"battery-plasmoid","status":"publish","type":"post","link":"https:\/\/vizZzion.org\/blog\/2007\/06\/battery-plasmoid\/","title":{"rendered":"Battery Plasmoid."},"content":{"rendered":"<p><a href=\"http:\/\/vizzzion.org\/images\/blog\/battery-plasmoid.png\" title=\"Battery plasmoid and engineexplorer showing the dataengine\"><img decoding=\"async\" src=\"http:\/\/vizzzion.org\/images\/blog\/battery-plasmoid-thumb.png\" alt=\"Battery plasmoid and engineexplorer showing the dataengine\" title=\"Battery plasmoid and engineexplorer showing the dataengine\" align=\"right\" class=\"showonplanet\" \/><\/a><br \/>\n    Some weeks ago, I&#8217;ve started to learn a bit of C++. Trying something new once in a while<br \/>\n    is fun and earlier programming experience didn&#8217;t make it too hard to learn some of the basics.<\/p>\n<p \/>\n    About two weeks ago, I&#8217;ve started hacking on a Plasma::DataEngine which works quite nicely<br \/>\n    already although it has some smallish bugs I&#8217;ll need to look into. Now I&#8217;ve got the<br \/>\n    Plasma::Applet that visualises the data mostly working. As basis, I&#8217;ve taken the battery SVG<br \/>\n    Ken has made for me for powermanager. I needed to merge the different images. Ken had made<br \/>\n    one for every frame, I&#8217;ve put them into layers. Plasma:Svg is quite nifty, parts of the SVG can<br \/>\n    be rendered separately, so one only needs to decide which layers to render (and in what order,<br \/>\n    of course), that&#8217;s it.<\/p>\n<p \/>\n    Right now, the applet does little more than showing the current status of the battery and<br \/>\n    if the AC Adapter is plugged in. I&#8217;ve also basically implemented formfactors, so depending on<br \/>\n    what one wants to use the plasmoid for, it changes its size.<\/p>\n<p \/>\n    I&#8217;ve put the code into playground<br \/>\n    (<a href=\"http:\/\/websvn.kde.org\/trunk\/playground\/base\/plasma\/engines\/battery\">dataengine<\/a>,<br \/>\n    <a href=\"http:\/\/websvn.kde.org\/trunk\/playground\/base\/plasma\/applets\/battery\">applet<\/a>)<br \/>\n    for those who want to have a look at it and improve it. While<br \/>\n    looking at it, please bear in mind that I&#8217;m fairly new to C++, so don&#8217;t bash me right away.<br \/>\n    Comment is welcome (and ontopic on the<br \/>\n    <a href=\"https:\/\/mail.kde.org\/mailman\/listinfo\/panel-devel\">panel-devel<\/a> list, but of course<br \/>\n    I&#8217;ll also be at <a href=\"http:\/\/akademy2007.kde.org\">aKademy<\/a>).<\/p>\n<p \/>\n","protected":false},"excerpt":{"rendered":"<p>Some weeks ago, I&#8217;ve started to learn a bit of C++. Trying something new once in a while is fun and earlier programming experience didn&#8217;t make it too hard to learn some of the basics. About two weeks ago, I&#8217;ve started hacking on a Plasma::DataEngine which works quite nicely already although it has some smallish&hellip; <a class=\"more-link\" href=\"https:\/\/vizZzion.org\/blog\/2007\/06\/battery-plasmoid\/\">Continue reading <span class=\"screen-reader-text\">Battery Plasmoid.<\/span> <span class=\"meta-nav\" aria-hidden=\"true\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-1289","post","type-post","status-publish","format-standard","hentry","category-kde"],"_links":{"self":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/posts\/1289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/comments?post=1289"}],"version-history":[{"count":0,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/posts\/1289\/revisions"}],"wp:attachment":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/media?parent=1289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/categories?post=1289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/tags?post=1289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}