getting started with plasmoid development

D. R. Evans doc.evans at gmail.com
Thu Dec 18 01:47:23 CET 2008


Aaron J. Seigo said the following at 12/15/2008 03:42 PM :

> 
> so, the "Plasma Way" to do this would be to create a DataEngine that handles 
> the NOAA part. it would download and parse the data for the Applet. the Applet 
> would connect to it by doing something like (assuming you called your 
> dataengine "noaa", probably a better name for it ;):
>

> 
> in the Applet part, for plotting we have Plasma::SignalPlotter ... it's a bit 
> of a beast, but rather powerful.
> 
> you'd make a dataUpdated(const QString &sourceName, const 
> Plasma::DataEngine::Data &data) method in your applet (or whatever you connect 
> the source to) .. sourceName would be "solarflux" in this example, and the data 
> would contain whatever the engine sends your way.
> 
> the updateInterval, engine loading, etc is all handled automagically for you.


Where is there some documentation for SignalPlotter (the python version;
I've decided that python is the way to go for this simple plasmoid)? I have
a draft of the DataEngine written (doubtless with bugs, but I understand
the principle so it's basically just debugging that's needed). I couldn't
find an example of a python plasmoid that uses a SignalPlotter the way that
I could for the DataEngine, though, so I have nothing to steal and no
documentation to get an understanding of what SignalPlotter does and how to
make it do what I want.

  Doc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20081217/00384477/attachment-0001.sig 


More information about the Plasma-devel mailing list