Opened 8 years ago
Last modified 8 years ago
#665 assigned defect
Rapid Access improvements
| Reported by: | Owned by: | Eric Pettersen | |
|---|---|---|---|
| Priority: | blocker | Milestone: | |
| Component: | General Controls | Version: | |
| Keywords: | Cc: | Tom Goddard, Elaine Meng | |
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description (last modified by )
Change History (3)
comment:1 by , 8 years ago
| Cc: | added |
|---|---|
| Description: | modified (diff) |
comment:2 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:3 by , 8 years ago
Here are some observations about how to allow deleting individual file history entries. One ideas is to put context menu entry "Remove selected from history". The QWebEngineView can report the selected text -- unfortunately that is not enough to uniquely tell which thumbnails were selected -- testing shows it only gives the actual text caption of the thumbnail and that may be the same for multiple entries. We really need to get an attribute out of the HTML tag for the given thumbnail and there is no QWebEngine call to get that directly. So it requires running some Javascript to get the selected thumbnail attributes. There is a QWebEngine call runJavaScript(script, return_value_callback) to do this. The actual Javascript code may be a bit complex. Another idea is to have a menu entry just to delete the item clicked on to raise the context menu, and a third possibility is a menu entry "Edit history..." that adds "x" buttons next every entry and clicking those buttons runs some Javascript that call a Qt callback.
Any way we go it looks like at least a half day work, and probably not high enough priority to work on any time soon.
To 3) add: delete individual entries from context menu