New to list, make in applet
Aaron J. Seigo
aseigo at kde.org
Mon Dec 8 15:22:56 CET 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20081208/8f2cb571/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20081208/8f2cb571/attachment.sig
More information about the Plasma-devel
mailing list