From 4a297f0c422df52f71815bf01900898bc795bbce Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Thu, 14 Apr 2016 17:55:44 +0800 Subject: [PATCH] browser: s/results/files/ --- artiq/browser/{results.py => files.py} | 6 +++--- artiq/frontend/artiq_browser.py | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) rename artiq/browser/{results.py => files.py} (97%) diff --git a/artiq/browser/results.py b/artiq/browser/files.py similarity index 97% rename from artiq/browser/results.py rename to artiq/browser/files.py index 718bba767..8fc2467cd 100644 --- a/artiq/browser/results.py +++ b/artiq/browser/files.py @@ -36,10 +36,10 @@ class ResultIconProvider(QtWidgets.QFileIconProvider): return QtGui.QIcon(pix) -class ResultsDock(QtWidgets.QDockWidget): +class FilesDock(QtWidgets.QDockWidget): def __init__(self, datasets, main_window, root=None): - QtWidgets.QDockWidget.__init__(self, "Results") - self.setObjectName("Results") + QtWidgets.QDockWidget.__init__(self, "Files") + self.setObjectName("Files") self.setFeatures(QtWidgets.QDockWidget.DockWidgetMovable | QtWidgets.QDockWidget.DockWidgetFloatable) diff --git a/artiq/frontend/artiq_browser.py b/artiq/frontend/artiq_browser.py index 179797332..06d823c9a 100755 --- a/artiq/frontend/artiq_browser.py +++ b/artiq/frontend/artiq_browser.py @@ -11,7 +11,7 @@ from quamash import QEventLoop from artiq import __artiq_dir__ as artiq_dir from artiq.tools import verbosity_args, init_logger, atexit_register_coroutine from artiq.gui import state, applets, models -from artiq.browser import datasets, results +from artiq.browser import datasets, files def get_argparser(): @@ -85,8 +85,8 @@ def main(): status_bar = QtWidgets.QStatusBar() main_window.setStatusBar(status_bar) - d_results = results.ResultsDock(datasets_sub, main_window) - smgr.register(d_results) + d_files = files.FilesDock(datasets_sub, main_window) + smgr.register(d_files) d_applets = applets.AppletsDock(main_window, datasets_sub) atexit_register_coroutine(d_applets.stop) @@ -100,7 +100,7 @@ def main(): mdi_area.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded) main_window.setCentralWidget(mdi_area) - main_window.addDockWidget(QtCore.Qt.LeftDockWidgetArea, d_results) + main_window.addDockWidget(QtCore.Qt.LeftDockWidgetArea, d_files) main_window.addDockWidget(QtCore.Qt.BottomDockWidgetArea, d_applets) main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, d_datasets) @@ -114,7 +114,7 @@ def main(): smgr.load() if args.PATH: - d_results.select(args.PATH) + d_files.select(args.PATH) smgr.start() atexit_register_coroutine(smgr.stop)