Hi again, Well, after a lot of fiddling, I actually made a pretty good amount of progress. I've added tooltips to BJTs informing you if you overrate them and what specifications have been overrated.
See screenshot: http://img268.imageshack.us/img268/934/overnpn.png Work needs to be done on separating parts of the drawing code from calculation code, as it's still a big hack. Then applying it to other components like ICs, capacitors, and resistors. Finally I need to figure out how to post a patch, because I haven't really kept track of files I changed. (Though my editor, KDevelop, leaves backup files like 'main.c~' which is useful in seeing which files have been modified.) I have made a modification which lets components set their own tooltips. At the moment these tooltips are all, by default, set to the component name. I was thinking of adding useful info like power dissipation, charge in a capacitor, etc. to the tooltips. Any other ideas? Tom > Nice! I'm not a coder, but I love that feature! > > tho...@tgohome.com wrote: >> I have added a feature, just to BJTs at the moment (but I'm planning >> resistors, capacitors and most ICs soon), which warns you if you >> overrate >> the device. The problem being at the moment, is all it does is show an >> exclamation mark next to the device. >> >> I am trying to figure out how to warn the user of the specifications >> which >> have been overrated. Any ideas? I was thinking of a tooltip. But how >> could >> this be done? Any implementation ideas? >> >> See pic for what has been done so far: >> http://img14.imageshack.us/img14/5653/ktechlaboverratednpn.png >> >> If anyone wants the code they can have it, but it is very messy and >> probably breaks many standards about mixing display code and calculation >> code... >> >> Tom >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Ktechlab-devel mailing list >> Ktechlab-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/ktechlab-devel >> >> > > > ------------------------------------------------------------------------------ > _______________________________________________ > Ktechlab-devel mailing list > Ktechlab-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ktechlab-devel > ------------------------------------------------------------------------------ _______________________________________________ Ktechlab-devel mailing list Ktechlab-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ktechlab-devel