I have a mixture of novice, intermediate, and advanced programming skills and I was offered this task by Campbell Barton a couple of weeks ago to demonstrate my level of skill.
The task is titled ,"Outliner Toggle inverts (not so useful)".
Seeing as that I am not a professional, I must admit that, having attempted this tasks, I simply could not figure out the professional way of accomplishing it. I've thought of many ways of accomplishing this task, but I just don't know what is considered appropriate. So I settled for what I am now submitting to any reviewer.
I tell ya, I have become very interested in how a professional would accomplish this task. So, if anyone wants to just redo this tasks, and show me how it ought to be done OR just give me some advice, that would be great.
EDIT: Oh yeah, I forgot to give a link to the original task and it's description.
Here is the link: https://developer.blender.org/T40085
Here is the description:
If you select many objects (or other items too), and select Toggle Visibility, This will act as if you press on each items visibility (which makes some sense).
However this isn't really great behavior when there is already mixed visibility state.
It would be better if this worked like (de-select all).
•If there are any items enabled, disable all.
•if none are enabled, enable all.
This goes Toggle visibility, renderability, selectability too.
This was a user request, discussed with Brecht and we agreed this would be an improvement.
Good day to you.