
On Thu, 2006-10-05 at 21:55 -0700, Ted Gould wrote:
An idea that I had a long time ago (noting the copyright statement, it was in 2004) is contained in svg-profile.h. The idea was that every verb could contain an Inkscape::SvgProfile object. Then you could adjust which verbs were visible (active) based on the SVG profile. The header file basically implements a fancy bitmask that can grow easily. The idea was also to make everything in a way that could be built into the static verb arrays also.
Looking through the code today, there is a little bit to be desired, but I think it works. I don't believe it's ever been checked in in a state where it is linked into the build.
This doesn't solve many of the SVG feature analysis issues, but it does solve some of the UI issues in 'limiting' Inkscape features so that you don't create invalid SVG.
--Ted
This is very cool Ted...I think you should check it in and we can start fixing it up. I'm very eager to put this SVG Tiny goal on target to drive myself and others to ultimate victory over all that is vector :)
No really, I think if you commit this and document how to do this, this will help us get closer to the UI goal of disabling certain features based upon profiles.
Is there also a class that reads in different profiles so we can start filling out what is in the different specs...something that we can flesh out?
Jon