| Summary: | [UiCustom] refactor icon features | ||
|---|---|---|---|
| Product: | [Modeling] MoDisco | Reporter: | Nicolas Bros <nicolas.bros> |
| Component: | Infrastructure | Assignee: | Nicolas Bros <nicolas.bros> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | hugo.bruneliere, modisco.web-inbox |
| Version: | 0.9.0 | Flags: | nicolas.bros:
indigo+
|
| Target Milestone: | 0.9.0 M3 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Done in revision 3353. Bug fixed. |
At the moment, there are 3 cusomizable icon features: icon ("Type Icon"): - appears on the metaclass in the Types panel - appears on instances - appears on Facets if there is no facetMainIcon defined - appears as a "sticker" if there is neither a facetMainIcon nor an overlay icon defined facetMainIcon ("Instance Icon"): - appears as the main icon on instances that have this Facet (first Facet "wins") facetOverlayIcon ("Overlay Icon") : - appears as an overlay on top of the main icon The problem is that the "Type Icon" defines too many things at once. So, it can be hard to customize exactly what's wanted in some cases. To improve this, we will: * add 3 new customizable features: - metaclassIcon: the icon that appears on the metaclass in the Types panel - instanceIcon: the icon that appears only on the instance. If the instance has Facets, then the first Facet with an icon defines the instanceIcon. Otherwise, the icon is the one which is defined on the metaclass of the instance. - stickerIcon: the icon that appears on the right of the instance * deprecate "icon" : it will still be handled now, but removed in a future version. Add a message in the UiCustom editor to indicate it is deprecated. * deprecate facetMainIcon : it becomes redundant with instanceIcon. When loading the customization model, replace facetMainIcon by instanceIcon.