ISISComputingGroup / IBEX

Top level repository for IBEX stories
5 stars 2 forks source link

Reflectometry: Front Panel View #4291

Closed ThomasLohnert closed 4 years ago

ThomasLohnert commented 5 years ago

As a reflectometry scientist, I would like to have a reflectometry perspective containing all the relevant GUI elements in one place, namely:

I think the right solution would be to implement this via #4290.

If we are do not have time to finish that ticket before the first IBEX reflectometer comes online, we can also consider creating a dedicated "Reflectometry" perspective with the components mentioned above.

John-Holt-Tessella commented 5 years ago

Solutions:

  1. Create front panel with console that points to shared console backends (only do if easy)
  2. Add OPI into scripting window with flag in menu that adds it
aaron-long commented 5 years ago

Some initial findings on experimenting with adding scripting to other perspectives. The ability to add the scripting view as a part stack can be achieved for a given perspective. I added the scripting windows to the Device Screens perspective:

stack

This was just pointing at the org.eclipse.ui.console.ConsoleView ID, with the URI bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView. Importantly this means that this points to the same PyDev console underneath.

This does however bring up some discussion points for the solution, and what we want to do:

  1. Add scripting to device screens
  2. Add devices screens to scripting
  3. Add an instrument front panel with device screens and scripting
  4. Add scripting as a collapsible view at the bottom of the GUI available from any perspective
ThomasLohnert commented 4 years ago

Work in progress - I have added a reflectometry perspective containing the scripting console and reflectometry front panel OPI. The plot window still needs some work, as I have not managed to get it to open in its intended viewpart, nor to get it to scale to it in a nice way.

I am away on leave until Jan 6. I will take my face off it for now in case someone wants to pick it up. I have committed my changes so far to ibex_gui branch Ticket4921_refl_front_panel_view.

(Anyone should be able to pick this up, no reflectometry knowledge required)