Keyboard shortcuts#134
Conversation
…es a user's individual shortcut preferences. ShortcutEditorDialog handles UI interactions and updates a KSM class instance accordingly. base_instrument.py was updated to implement these new classes and add a button to edit keyboard shortcuts.
…to Station or Log. alert column on right side indicates three states: ok (white), unsaved (orange), and duplicate (red). alert displays tooltip for each tooltip. ServerGui now holds a shortcut editor and shortcut manager, which is passed to an instrument tab when opened.
|
|
||
| @staticmethod | ||
| def _matches_any_pattern(name: str, patterns: List[str]) -> bool: | ||
| def _matches_any_pattern(name: str, patterns: Optional[List[str]]) -> bool: |
There was a problem hiding this comment.
why add the Optional but not a None argument? is this really optional?
|
|
||
| # Indicates if a column is using delegates. | ||
| self.delegateColumns = delegateColumns | ||
| self.delegateColumns: List[int] = delegateColumns or [] |
There was a problem hiding this comment.
does changing the default change the behaviour downstream?
There was a problem hiding this comment.
the default set in the param list is None. the variable is used later in for loops, but if it is None, will this not raise an error? if it is empty, the loop will just exit immediately
| when Save is clicked. Use 'Save to file' / 'Load from file' to persist across sessions. | ||
|
|
||
| Each row has a small colored indicator dot in the rightmost column: | ||
| - white : saved and unique |
There was a problem hiding this comment.
I haven't been able to make it white even when saved
There was a problem hiding this comment.
is it transparent? it just looks normal to me
|
On top of the specific coding things 2 things are left on this:
|
…lso, removed 'Save' button, so only can save to file
|
A few things that should probably become issues:
|
| when Save is clicked. Use 'Save to file' / 'Load from file' to persist across sessions. | ||
|
|
||
| Each row has a small colored indicator dot in the rightmost column: | ||
| - white : saved and unique |
There was a problem hiding this comment.
is it transparent? it just looks normal to me
… shortcuts also fixed/implemented for methods. shortcut tooltips added for toolbar
Adds customizable keyboard shortcuts that a user can execute to streamline instrumentserver workflow