-
Notifications
You must be signed in to change notification settings - Fork 95
Description
The DataSource sys, sim and loc could be supported and “://” would be added automatically.
Typing “sys” in a PV Name entry field and the auto-complete would propose “sys://time”, … “sys://user”. For system property, it would stop at “sys://system.”.
As in Excel, a tooltip could be added for the highlighted choice:
Typing “sim” would list the simulation PVs. When at least 1 parameter is required, the parenthesis will be automatically added. For example, selecting “sim://const” will result in “sim://const(“.
When parameters are required, some help could be provided like in Excel:
So having entered “sim://noise(“, the tooltip would be:
“sim://noise(minValue, maxValue, timeStep)” with the first parameter highlighted.
If there are many parameter options, a list of tooltips will be displayed. Let’s say that I have entered “sim://ramp“, then 3 tooltips will appear:
“sim://ramp“ equivalent to sim://ramp(-5, 5, 1, 1)
“sim://ramp(minValue, maxValue, timeStep)“
“sim://ramp(minValue, maxValue, step, timeStep)“
After specifying the first parameter, the tooltip would highlight the second one:
The tooltip would remain until “)” is entered.
For Local DataSource, having typing “loc:” some help about the syntax would be provided as tooltips:
“loc://pvname”
“loc://pvname”
“loc://pvname(initialValue)”
“loc://pvname(initialValue)”
After having entered some PV Name such as “loc://myLocalPV<”, the different VType would be listed: VString, VStringArray, VDouble…
If everyone is OK with that I propose that we provide this feature.