Hello,
As a follow-up to my first week, I have been digging into numerous source files to get a hold to the functionality that handles coloring objects selected on the canvas ( desktop ) .

The file paint-selector.cpp is a generic file which handles the different color selectors like the color-wheel selector( sp-color-wheel-selector.cpp ) which is our attention right now. 

Now, the FillNStroke class (fill-style.cpp) puts the Paint Selector in the appropriate mode.

The Paint Selector then passes control to the color selector which repaints the object on the canvas which is selected. There is just one problem with respect to the demands of my project : The color selector will apply changes to ALL objects currently in the SELECTION list.
What I need is that a group of objects are selected, with the ONLY ONE object selected or atleast the color selector thinks so ?

Any ideas on how I actually create such pseudo-selection criteria ?

I have an approach in mind that goes like this:
I can include an extra Paint Selector mode by the name of MODE_RECOLOR and in that mode the desktop handles the selection differently that it maintains a list of background selections and an ACTIVE selection. The ACTIVE selection is what the color selector sees. When I toggle the selection, the appropriate object becomes the ACTIVE SELECTION. There must be many experienced developers here who know the in and outs of the coloring mechanism. Can you guys suggest a better solution/ go-ahead whether my proposed way is possible/ an easier method ?

Waiting eagerly for a reply. 

--
Arshdeep Singh
Third Year, Computer Engineering
Delhi Technological University
Ph: +91-9654115614
https://sites.google.com/site/adsingh1729/home