Open-Systems-Pharmacology / MoBi

MoBi® is a software tool for multiscale physiological modeling and simulation
Other
29 stars 10 forks source link

Parameter Values BB -> Add parameter value: better UI #1367

Closed PavelBal closed 1 month ago

PavelBal commented 3 months ago

If the user wants to overwrite a default parameter value in the PV BB, he has to manually add this parameter as long it is not a protein expression or a local molecule parameter. The currently implemented workflow is not intuitive:

image

After clicking on "New Parameter Value," an empty row with the columns "Parameter Name" and "Parameter Value" is created. The user would have to manually add columns "Path Element n" to be able to enter the path.

A possible solution would be a dialog where the user can either select a parameter that is present somewhere (like in all the places where the user selects a parameter), or enters the whole path which is then separated by | to create an entry in the PV BB.

rwmcintosh commented 3 months ago

We can just unhide 3 or 4 columns if there aren't any PV in the building block. Would that work?

I would also add a context menu here when the user right clicks in the blank space and allow them to add that way. We have recently implemented something like that in copy formula feature.

PavelBal commented 3 months ago

We can just unhide 3 or 4 columns if there aren't any PV in the building block. Would that work?

Would work, but still very inconvenient.

rwmcintosh commented 3 months ago

We should enable paste of paths here. Recent feature allows you to copy paths to the Windows Clipboard. We could also paste them into the PV through context menu

rwmcintosh commented 3 months ago

A possible solution would be a dialog where the user can either select a parameter that is present somewhere (like in all the places where the user selects a parameter), or enters the whole path which is then separated by | to create an entry in the PV BB.

Is there an existing view you're thinking of?

PavelBal commented 3 months ago

Yes, the "Possible fererences objects" viel from formula creation/editing. But without "absolute/relative path", it is always absolute in this case.

image

PavelBal commented 2 months ago

"Multiselect" would be awesome. I.e., I can select multiple entries in the tree view and it will add multiple entires to the PV BB.

PavelBal commented 2 months ago

Recent feature allows you to copy paths to the Windows Clipboard.

@rwmcintosh where and how? Cannot find it.

rwmcintosh commented 2 months ago

I think it's only implemented as a keyboard shortcut. But we will add a context menu for it too.

@benjaperez1983 is working on it now.