Hello,
There hasn't been any coding this week. It has been mostly a brainstorming session where I have been looking at ways to achieve the purpose of the tool without interfering with other tools' functioning. The approach of enabling the paint-selector object to color 'active' objects from the selection will spiral into disaster as pointed out by Krzysztof.
Now, I plan to directly access the SPDesktop object (again suggested by Krzysztof) and be working with Inkscape :: Selection . There are a few design issues that promptly come to mind which will be discussed shortly.
+ Firstly, as a followup to my previous question: "How to extract the fill information using the getStyleProperty ( ... ) function" - Is there any other method I can extract the style information ? I see recurring code of the form where a css object is created and the particular property is set using *sp_desktop_get_style(). *Will this be of any use ? I need to fetch the 'fill' property of the style of the object.
+ Problem of how to know from which objects I can access SPDekstop and related functions. And for the matter, Inkscape::Selection and realted functions too.
+ I intend to add a structure definition in gimpcolorwheel.c going as: struct WheelColorMarker { gchar id[6]; //the id is always 6 characters long (is thsi correct ?) gchar fill[7]; //#rrggbb in hex } I will use a dynamic array of this to fetch the id and color of the objects selected on the canvas and paint the color wheel with their respective markers. I will need access to functions which can create color into rgb triad of gdouble from the hex code of fill.
+Last and the most nerve wracking question: Where do I add the functions that actually will change the colors ? in paint-selector.cpp ? If yes, how do I get access to the selected objects from that class ?
Also, I remember discussing this on the mailing list, that if I change the attribute in the XML editor, it automatically gets reflected on the canvas ? Just want to confirm that if I use XML to change the solid colors of the objects then will they reflect on the canvas or not ?
Thanks, --- Arshdeep Singh Third Year, Computer Engineering Delhi Technological University Ph: +91-9654115614 https://sites.google.com/site/adsingh1729/home