Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phoebus applications behaviour #436

Closed
shroffk opened this issue Nov 19, 2018 · 18 comments
Closed

Phoebus applications behaviour #436

shroffk opened this issue Nov 19, 2018 · 18 comments
Assignees

Comments

@shroffk
Copy link
Member

shroffk commented Nov 19, 2018

Observations from the epics workshops and demos
These are all from a mac machine with the java 9.0.1...I will be redoing all these tests on my windows machine once I am back. This is to note down the observations which can latter be converted to issues once they are confirmed.

Display builder

  • on mac delete on an widget does not remove it
  • no "delete" in the context menu on a widget in display builder (you have to remove widget from the widget tree)

Databrowser

  • changes to title, background, legend, and other misc properties are not applied to the open databrowser plot.
  • changes to the Misc do not mark the plt as dirty
  • changes to the Misc are not saved even with the save properties
  • can't save modified .plt files

General

  • autocomplete sometime strangely reset the typed pv
@shroffk shroffk self-assigned this Nov 19, 2018
@kasemir kasemir self-assigned this Nov 25, 2018
@kasemir
Copy link
Collaborator

kasemir commented Nov 26, 2018

Regarding the databrowser 'misc' tab: Cannot reproduce. Changing one of the fonts or the show-legend option triggers the 'dirty' state. Maybe you had the "Save Changes" option disabled?

@kasemir
Copy link
Collaborator

kasemir commented Nov 26, 2018

Regarding the Mac 'delete' key, my Mac keyboard has two keys labeled "Delete":

mac

The one in the central section next to "home", "end", .. will delete selected widgets.
The other one next to the "=+" key actually sends a "backspace" key event.
Will make that one also delete widgets.

@kasemir
Copy link
Collaborator

kasemir commented Nov 26, 2018

Context menu entries to copy, paste, delete widgets have been added

@kasemir
Copy link
Collaborator

kasemir commented Nov 26, 2018

Sorry, was about to create the pull request when I noticed I had been on the master branch.
Anyway, the 'delete' and context menu has been added.
The Data Browser issue might just be about having de-selected Misc -> Save Changes.

The autocomplete is iffy. Need an exact description of what the user is typing or clicking.

@shroffk
Copy link
Member Author

shroffk commented Nov 26, 2018

The databrowser functions fine on my windows machine (none of the mentioned issues are present). I will double check the mac version - I do remember ensuring that the save changes was enabled.

The context menu for the widgets in the editor could benefit with having the
copy, delete, move back, move front commands.

Sorry for the plethora of comments...I am hoping this makes the deployment smoother if I can try to use phoebes like one of the end user would.

@kasemir
Copy link
Collaborator

kasemir commented Nov 26, 2018

Cannot reproduce the data browser 'misc' issue on Mac, either.

The context menu now has copy, delete, paste, move back/front.

@kasemir
Copy link
Collaborator

kasemir commented Nov 26, 2018

General comment on the context menu: Its content changes depending on what's selected, usually resulting in about 10 entries. Front/back were already in the toolbar, plus the toolbar has alignment options, undo/redo, zoom. Adding them all to the context menu would add another 15 items, which makes it less useful.

On the autocomplete, I'm sure there are remaining issues, but need a specific example.

@shroffk
Copy link
Member Author

shroffk commented Dec 4, 2018

More observations:

With X forwarding on Debian machines the menu dropdown does not appear in alignment with mouse click.

image

@kasemir
Copy link
Collaborator

kasemir commented Dec 4, 2018

Should that be a separate issue?
Request for context menu in display builder was an actionable item which I could handle.
Menu behaviour with a specific Linux setup is very different, more like #256 or #353 or #367 .
Still, any difference when using -Djdk.gtk.version=2 vs -Djdk.gtk.version=3?
I'm using GTK2 because otherwise Drag & drop doesn't work, i.e. hard to arrange tabs or edit displays.

@kasemir
Copy link
Collaborator

kasemir commented Dec 11, 2018

autocomplete sometime strangely reset the typed pv

Autocomplete UI had several issues like #469, which have been fixed.

What's left on this issue is the misplaced menu dropdown seen on at least Debian.

@kasemir
Copy link
Collaborator

kasemir commented Feb 1, 2019

Display Editor:
"Delete" key pressed while editing a property can still be problematic. In case the property text field looses focus, the widget is deleted. Not fatal because "Undo" will restore the widget, but best solution for now might be to simply ignore "Delete" for widget deletion. So require context menu "Delete" option or the Ctrl-X key combination to delete widgets. Plain delete key as often used when editing text will not delete widgets.

@kasemir
Copy link
Collaborator

kasemir commented Feb 5, 2019

Regarding the original complaint that "Delete" on the mac does not delete widgets, overall user feedback has been that there's a good chance of accidentally deleting a widget by pressing delete or backspace while editing a PV name or label.
So widget deletion now requires an explicit Ctrl-X (Command-X on Mac) or use of the context menu.

@TimGuiteDiamond
Copy link

Hi, I just installed the latest copy of Phoebus to try it out and have to say that this absolutely baffled me. The DELETE key deletes things in every single editor I have ever used when a widget or selection is highlighted, why change that? CTRL+X is a cut in my mind, which can also be used on text so I don't see it being any less likely to be mistakenly used on a widget when aiming for text or vice versa.

@kasemir
Copy link
Collaborator

kasemir commented Nov 15, 2019

Flabbergasted that you're baffled, so for now DELETE is again supported.

@TimGuiteDiamond
Copy link

Thanks Kay, perhaps we are just used to different things but this works across many tools and even in CS-Studio so just seems a strange thing to deprecate at this point.

@kasemir
Copy link
Collaborator

kasemir commented Nov 15, 2019

I'm aware of the widespread use of DELETE, and as noted above, it was supported in the display editor, but then disabled because people who actually use CS-Studio/phoebus in production complained that they more often than not accidentally deleted widgets. Ask two different users, and you get three different pieces of guidance...

@georgweiss
Copy link
Collaborator

I strongly support making the DELETE key behave according to its function in most other contexts and applications.

@shroffk
Copy link
Member Author

shroffk commented Mar 9, 2021

The only open problem (X11 and menu) has its own Issue

@shroffk shroffk closed this as completed Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants