<!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>
&gt; On Monday 08 December 2008 02:43:44 Aaron J. Seigo wrote:<br>
&gt; &gt; * instead of having all those different svg's, you could put all the<br>
&gt; &gt; elements into just one svg. more efficient all around, and probably save<br>
&gt; &gt; your applet a few lines of code. obviously not critical =)<br>
&gt;<br>
&gt; I am very new to this and the only documentation is the .h files in<br>
&gt; /usr/include/plasma. I need better documentation. Anyway, this sounds good<br>
&gt; 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>&gt; &gt; * lots of C like code in there, such as dealing with c strings. never fun<br>
&gt; &gt; compared to Qt ;)<br>
&gt;<br>
&gt; Yep. A lot of this was lifted from "pure" c stuff like xringd and some<br>
&gt; examples of modem program that worked. I would eventually like to get it<br>
&gt; all into Qt4. I tried replacing the ringer with QSound but this is tied to<br>
&gt; 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>&gt; &gt; * for the crashes, try your applet in plasmoidviewer (plasmoidviewer<br>
&gt; &gt; &lt;pluginName&gt;) and see if you can get a backtrace from that. note that<br>
&gt; &gt; plasmoidviewer does store the settings, so it's a fine way to emulate "on<br>
&gt; &gt; next login"<br>
&gt;<br>
&gt; The applet does not crash into the viewer. The excerpt cited was after an<br>
&gt; hour sitting on the screen!<br>
&gt;<br>
&gt; 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>