Hello everyone,
We are currently working on the scheme editor in v5 and have a couple of questions on how to go about implementing some features.
The first feature I want to talk about is grouping components:
The idea is, with the click of a button, to group multiple components so that whenever a component is selected in the view, the whole group would be selected also. In addition to that, there would be a treeview displaying all the components and the group hierarchy within said scheme.
The group itself would be a new BaseComponent class and they would be saved under different xmlElement than the other component so to not mess with how the file is handled in ScadaWeb.
The second feature would require the first one, it is the creation of symbols via the editor:
The idea is to create a scheme and turn that scheme into a symbol so it can be added to new schemes.
The idea is to only add a reference to the symbol file in the scheme so that when the symbol is edited, it will impact all the schemes using it.
The symbol would work like a component group described earlier with the addition of allowing the user to create custom variables within it which the symbol’s components can then use.
The symbol files would be by default saved in a symbol directory within the SchemeEditor folder and they would be listed within a config file along with their path and their UUID.
There is a couple of options to save the symbol file:
-have a Save As Symbol button that groups the current scheme into a symbol
-have a new symbol button that initialize a new scheme with an empty symbol to wich every new component will be added
What do you think?