From 9c68451cae8fb27f76826ffe1465f05ac6c05fcf Mon Sep 17 00:00:00 2001 From: jfniedermeyer Date: Thu, 12 Oct 2023 18:35:25 -0600 Subject: [PATCH] Add hotkeys to organize experiments in dashboard Signed-off-by: jfniedermeyer --- RELEASE_NOTES.rst | 3 +++ artiq/frontend/artiq_dashboard.py | 12 ++++++++++++ doc/manual/faq.rst | 10 ++++++++++ 3 files changed, 25 insertions(+) diff --git a/RELEASE_NOTES.rst b/RELEASE_NOTES.rst index 81edc5100..49006b8bf 100644 --- a/RELEASE_NOTES.rst +++ b/RELEASE_NOTES.rst @@ -38,6 +38,9 @@ Highlights: - The "Close all applets" command (shortcut: Ctrl-Alt-W) now ignores docked applets, making it a convenient way to clean up after exploratory work without destroying a carefully arranged default workspace. + - Hotkeys now organize experiment windows in the order they were last interacted with: + + CTRL+SHIFT+T tiles experiment windows + + CTRL+SHIFT+C cascades experiment windows * Persistent datasets are now stored in a LMDB database for improved performance. PYON databases can be converted with the script below. diff --git a/artiq/frontend/artiq_dashboard.py b/artiq/frontend/artiq_dashboard.py index 8bcf9546c..b1a7e39b0 100755 --- a/artiq/frontend/artiq_dashboard.py +++ b/artiq/frontend/artiq_dashboard.py @@ -85,6 +85,18 @@ class MdiArea(QtWidgets.QMdiArea): self.pixmap = QtGui.QPixmap(os.path.join( artiq_dir, "gui", "logo_ver.svg")) + self.setActivationOrder(self.ActivationHistoryOrder) + + self.tile = QtWidgets.QShortcut( + QtGui.QKeySequence('Ctrl+Shift+T'), self) + self.tile.activated.connect( + lambda: self.tileSubWindows()) + + self.cascade = QtWidgets.QShortcut( + QtGui.QKeySequence('Ctrl+Shift+C'), self) + self.cascade.activated.connect( + lambda: self.cascadeSubWindows()) + def paintEvent(self, event): QtWidgets.QMdiArea.paintEvent(self, event) painter = QtGui.QPainter(self.viewport()) diff --git a/doc/manual/faq.rst b/doc/manual/faq.rst index bd5d4ac89..2e48f9e5c 100644 --- a/doc/manual/faq.rst +++ b/doc/manual/faq.rst @@ -27,6 +27,16 @@ organize datasets in folders? Use the dot (".") in dataset names to separate folders. The GUI will automatically create and delete folders in the dataset tree display. +organize experiment windows in the dashboard? +--------------------------------------------- + +Experiment windows can be organized by using the following hotkeys: + +* CTRL+SHIFT+T to tile experiment windows +* CTRL+SHIFT+C to cascade experiment windows + +The windows will be organized in the order they were last interacted with. + write a generator feeding a kernel feeding an analyze function? ---------------------------------------------------------------