On Monday 08 December 2008, David Baron wrote:
> On Monday 08 December 2008 02:43:44 Aaron J. Seigo wrote:
> > * instead of having all those different svg's, you could put all the
> > elements into just one svg. more efficient all around, and probably save
> > your applet a few lines of code. obviously not critical =)
>
> I am very new to this and the only documentation is the .h files in
> /usr/include/plasma. I need better documentation. Anyway, this sounds good
> but ... tell me how :-)

make an svg (in inkscape, or whatever you're using) with each of the 
individual elements in it. give each element an id (e.g. "ringing"). call 
setContainmentsMultipleImages(true) on your Plasma::Svg, then pass the name of 
the element that should be painted to Plasma::Svg::paint. voila.

> > * lots of C like code in there, such as dealing with c strings. never fun
> > compared to Qt ;)
>
> Yep. A lot of this was lifted from "pure" c stuff like xringd and some
> examples of modem program that worked. I would eventually like to get it
> all into Qt4. I tried replacing the ringer with QSound but this is tied to
> NAS, not alsa and such.

use KNotification

> > * for the crashes, try your applet in plasmoidviewer (plasmoidviewer
> > <pluginName>) and see if you can get a backtrace from that. note that
> > plasmoidviewer does store the settings, so it's a fine way to emulate "on
> > next login"
>
> The applet does not crash into the viewer. The excerpt cited was after an
> hour sitting on the screen!
>
> Big outstanding issue is getting icons into the UI.

use KIcon.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to