On Mon, Jan 16, 2006 at 10:24:36PM -0500, Martin d Anjou wrote:
With the precious help of ACSpike, I was able to navigate inkscape source code, but I need more specific help to be able to pull something off:
How do I loop around the list of layers and set the visibility to style="display:inline" or style="display:none" based on a command line argument?
What is the correct way to add a command line argument that would look like this:
--layers=name1,name2,name3,... (one or more layer names)
The docs for popt are online here: http://www.rpm.org/dark_corners/popt/
You should be able to slot in your new option into the poptOption structure in main.cpp, and then include code in sp_common_main to break up the comma separated names into individual elements. If you can, code it in a way that'd allow other folks to easily add new multi-item parameters too.
Bryce