Theming: Visual feedback for multiple windows of a program.

Registered by Matias Särs

I think dockbarx needs a way to show if there are multiple open windows of a program, directly on the groupbuttons. Win7 for instance uses multiple borders on the buttons to show this. How it's shown should be decided by the individual theme-maker.
I guess the best way to show this is to add a windows attribute to the <if></if> element. It should accept values like "3", "!3", "2:3", ":3", "3:" and "!2:3".

Blueprint information

Status:
Complete
Approver:
None
Priority:
High
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Discussion
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Matias Särs
Completed by
Matias Särs

Related branches

Sprints

Whiteboard

Feedback needed: What kind of improvements to the theme would be needed/nice to have to make it possible to visualize the numbers of windows? Send mock-ups if you like.

- Is there a need to make a command for generating text, so that numbers could be added? Or is it better that people make pixmaps for eventual text? I guess the later options is better?

Alex: @Matias, an <if window="n"> function would be awesome. However, please allow for the <, >, >=, <=, and !=. The default would be ==.

The format should be '<if window=">=3">'.

Matias: I completely changed the syntax because "<" isn't allowed by the sax parser even if it is within "". Now it uses numbers "3" or ranges "2:3". They can also be left open ":3" means <=3 and "4:" means 4 or more. Is this intuitive or should it be changed to "3..5", 3-5" or something else instead? See rev. 106 for this.

Alex: The setup looks good, though the "!3:4" syntax is a bit non-obvious. For instance, what would "!2:5" do?

Anyway, can't wait for the next release.

Matias: "!2:5" is true for all but the windows in range 2:5. The code will be executed for 0,1,6,7, 8,... windows.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.