From: roucaries b. <rou...@gm...> - 2007-08-26 13:40:31
|
On 8/25/07, Oswald Buddenhagen <os...@kd...> wrote: > On Sat, Aug 25, 2007 at 11:08:35PM +0530, Gopala Krishna wrote: > > I [...] decided to drop out the future svg-ification of all the > > components's schematic drawings because of following disadvantages. > > > > *) Basic reason is "unnecessity". Svg is needed for cool appearance at > > all transformations(esp zoom). We can achieve this easily without svg > > for our simple schematics. > > > pretty short-sighted, if you ask me. I agree we you it is sight. Svg is not cool it is a standard therefore instead you should use iy instead to reinvent the wheel. Have you read http://www.carto.net/papers/svg/samples/styles.shtml. > > *) Second reason is performance . Though this can be combated by > > intelligent caching, we can not get very high improvements. > > > actually, the improvements are pretty drastical, as only the first time > a particular symbol is needed with certain parameters it is rendered. > afterwards it's just pixmaps as usual. I agree performance of a gui is not really important. And caching could improve all the drawback. Morevoer scg is device independant, that is we could use it for printing without any degradation. > > *) I couldn't discover a way to change the pen/stroke of an svg in > > runtime. > > > like that, you mean? > http://trolltech.com/developer/task-tracker/index_html?method=entry&id=126834 > :} > > > This is needed because i plan to introduce a feature to change the > > color of component schematic (in runtime ofcourse!). > > > you can apply stylesheets to svgs. > you could either load it into a QDom, manipulate it (some > "qucs-standardized" node) and dump it back into a QByteArray or you just > manipulate the svg in text form (the svg could contain a <!-- Put Qucs > styles here --> string to be replaced) - i think i'd do the latter, as > it is simpler and faster (even though it feels a bit hacky). The best think for a performance point of view is: - use one svg file by component and use external style as css - create an unique datafile including all the component and rewrite the external css file as internal using CDATA technic. The creating is made using a script. Therefore no penalty at runtime. What do you think? > -- > Hi! I'm a .signature virus! Copy me into your ~/.signature, please! > -- > Chaos, panic, and disorder - my work here is done. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Qucs-devel mailing list > Quc...@li... > https://lists.sourceforge.net/lists/listinfo/qucs-devel > |