flandreas / antares

Digital circuit learning platform
51 stars 6 forks source link

Display subcircuit label in symbol editor tree #820

Closed flandreas closed 2 weeks ago

flandreas commented 4 weeks ago

Consider a circuit that uses many instances of the same subcircuit. For each subcircuit, you've set the "Label" property to a unique value, such a "A", "B" and so forth.

Screenshot 2024-10-31 at 12 56 20

In the symbol editor of the main circuit, the "Subcircuits" tree node lists all subcircuits, but the node name consists only of the subcircuit name, such as "Single button ctrl".

Screenshot 2024-10-31 at 12 56 49

If you now want to add a control from one of the subcircuits, you don't know which one of the nodes to look in. The tree node should also display the label, such as "Single button ctrl: A", but only if the user has overwritten the label property. Otherwise, all tree nodes would have the same label.