<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Bitstream Vera Sans'; font-size:12pt; font-weight:400; font-style:normal;">On Monday 08 December 2008, David Baron wrote:<br>
> On Monday 08 December 2008 02:43:44 Aaron J. Seigo wrote:<br>
> > * instead of having all those different svg's, you could put all the<br>
> > elements into just one svg. more efficient all around, and probably save<br>
> > your applet a few lines of code. obviously not critical =)<br>
><br>
> I am very new to this and the only documentation is the .h files in<br>
> /usr/include/plasma. I need better documentation. Anyway, this sounds good<br>
> but ... tell me how :-)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>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.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> > * lots of C like code in there, such as dealing with c strings. never fun<br>
> > compared to Qt ;)<br>
><br>
> Yep. A lot of this was lifted from "pure" c stuff like xringd and some<br>
> examples of modem program that worked. I would eventually like to get it<br>
> all into Qt4. I tried replacing the ringer with QSound but this is tied to<br>
> NAS, not alsa and such.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>use KNotification<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> > * for the crashes, try your applet in plasmoidviewer (plasmoidviewer<br>
> > <pluginName>) and see if you can get a backtrace from that. note that<br>
> > plasmoidviewer does store the settings, so it's a fine way to emulate "on<br>
> > next login"<br>
><br>
> The applet does not crash into the viewer. The excerpt cited was after an<br>
> hour sitting on the screen!<br>
><br>
> Big outstanding issue is getting icons into the UI.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>use KIcon.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
Aaron J. Seigo<br>
humru othro a kohnu se<br>
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>KDE core developer sponsored by Qt Software<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>