[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Issues on writing plasmoid for KMix
From:       Igor Poboiko <igor.poboiko () gmail ! com>
Date:       2012-01-31 13:09:17
Message-ID: CAEhGRfFDq0vsg-33skNF8kk0=6VhQ9+QJ-Ana488fdhAvZ0PsQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi!
I'm working on porting KMix tray applet to plasma. Right now I have some
working code which can be found in my scratch repo -
http://quickgit.kde.org/?p=scratch%2Fpoboiko%2Fkmix-plasmoid.git&a=summary (it
requires KMix from trunk).
First issue: it isn't QML. I generate KCM UI content on-the-fly (I want
users to have an ability to select which controls they want to see in
popup, so I provide a KActionSelector with available controls), and I've
heard that it is impossible using QML. Also I didn't work with QML before.
Second issue: this applet works using "mixer" dataengine (which ships with
kmix), which gets information from KMix through DBus. It updates data in
dataengine when it receives DBus signals. The problem is: my applet doesn't
receive a dataUpdated() call every time it is actually updated. Sometimes
data is updated, but applet doesn't know anything about it. Is that a bug
or I just wrong somewhere?
And it would be great if someone look at code and review it somehow. It's
my first experience in writing plasmoids so there may be some quite serious
issues. Any suggestions and comments are welcome. Thanks in advance.
Best regards,
Igor.

[Attachment #5 (text/html)]

Hi!<div>I&#39;m working on porting KMix tray applet to plasma. Right now I have some \
working code which can be found in my scratch repo - <a \
href="http://quickgit.kde.org/?p=scratch%2Fpoboiko%2Fkmix-plasmoid.git&amp;a=summary" \
target="_blank">http://quickgit.kde.org/?p=scratch%2Fpoboiko%2Fkmix-plasmoid.git&amp;a=summary</a> \
(it requires KMix from trunk).</div>



<div>First issue: it isn&#39;t QML. I generate KCM UI content on-the-fly (I want \
users to have an ability to select which controls they want to see in popup, so I \
provide a KActionSelector with available controls), and I&#39;ve heard that it is \
impossible using QML. Also I didn&#39;t work with QML before.</div>



<div>Second issue: this applet works using &quot;mixer&quot; dataengine (which ships \
with kmix), which gets information from KMix through DBus. It updates data in \
dataengine when it receives DBus signals. The problem is: my applet doesn&#39;t \
receive a dataUpdated() call every time it is actually updated. Sometimes data is \
updated, but applet doesn&#39;t know anything about it. Is that a bug or I just wrong \
somewhere?</div>



<div>And it would be great if someone look at code and review it somehow. It&#39;s my \
first experience in writing plasmoids so there may be some quite serious issues. Any \
suggestions and comments are welcome. Thanks in advance.</div>


<div>Best regards, </div><div>
Igor.</div>



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic