Changeset d00475d in sasview for src/sas/qtgui/MainWindow
- Timestamp:
- Oct 26, 2018 6:44:15 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- b1b71ad
- Parents:
- a3c59503 (diff), 75906a1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- src/sas/qtgui/MainWindow
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
ra3c59503 rd00475d 1470 1470 self.manager.update_stored_data(deleted_names) 1471 1471 1472 def closeAllPlots(self): 1473 """ 1474 Close all currently displayed plots 1475 """ 1476 1477 for plot_id in PlotHelper.currentPlots(): 1478 try: 1479 plotter = PlotHelper.plotById(plot_id) 1480 plotter.close() 1481 self.plot_widgets[plot_id].close() 1482 self.plot_widgets.pop(plot_id, None) 1483 except AttributeError as ex: 1484 logging.error("Closing of %s failed:\n %s" % (plot_id, str(ex))) 1485 1472 1486 def closePlotsForItem(self, item): 1473 1487 """ -
src/sas/qtgui/MainWindow/GuiManager.py
ra3c59503 rd00475d 24 24 from sas.qtgui.Utilities.PluginManager import PluginManager 25 25 from sas.qtgui.Utilities.GridPanel import BatchOutputPanel 26 from sas.qtgui.Utilities.ResultPanel import ResultPanel 26 27 27 28 from sas.qtgui.Utilities.ReportDialog import ReportDialog … … 147 148 self.aboutWidget = AboutBox() 148 149 self.categoryManagerWidget = CategoryManager(self._parent, manager=self) 150 149 151 self.grid_window = None 150 152 self.grid_window = BatchOutputPanel(parent=self) … … 154 156 self.grid_subwindow.setVisible(False) 155 157 self.grid_window.windowClosedSignal.connect(lambda: self.grid_subwindow.setVisible(False)) 158 159 self.results_panel = ResultPanel(parent=self._parent, manager=self) 160 self.results_frame = self._workspace.workspace.addSubWindow(self.results_panel) 161 self.results_frame.setVisible(False) 162 self.results_panel.windowClosedSignal.connect(lambda: self.results_frame.setVisible(False)) 156 163 157 164 self._workspace.toolBar.setVisible(LocalConfig.TOOLBAR_SHOW) … … 443 450 """ 444 451 # disable not yet fully implemented actions 445 #self._workspace.actionOpen_Analysis.setVisible(False)446 452 self._workspace.actionUndo.setVisible(False) 447 453 self._workspace.actionRedo.setVisible(False) … … 450 456 self._workspace.actionImage_Viewer.setVisible(False) 451 457 self._workspace.actionCombine_Batch_Fit.setVisible(False) 452 self._workspace.actionFit_Results.setVisible(False)453 458 # orientation viewer set to invisible SASVIEW-1132 454 459 self._workspace.actionOrientation_Viewer.setVisible(False) … … 510 515 self._workspace.actionNext.triggered.connect(self.actionNext) 511 516 self._workspace.actionPrevious.triggered.connect(self.actionPrevious) 517 self._workspace.actionClosePlots.triggered.connect(self.actionClosePlots) 512 518 # Analysis 513 519 self._workspace.actionFitting.triggered.connect(self.actionFitting) … … 524 530 525 531 self.communicate.sendDataToGridSignal.connect(self.showBatchOutput) 532 self.communicate.resultPlotUpdateSignal.connect(self.showFitResults) 526 533 527 534 #============ FILE ================= … … 853 860 """ 854 861 """ 855 print("actionFit_Results TRIGGERED") 856 pass 862 self.showFitResults(None) 863 864 def showFitResults(self, output_data): 865 """ 866 Show bumps convergence plots 867 """ 868 self.results_frame.setVisible(True) 869 if output_data: 870 self.results_panel.onPlotResults(output_data) 857 871 858 872 def actionAdd_Custom_Model(self): … … 945 959 """ 946 960 self._workspace.workspace.activatePreviousSubWindow() 961 962 def actionClosePlots(self): 963 """ 964 Closes all Plotters and Plotter2Ds. 965 """ 966 self.filesWidget.closeAllPlots() 967 pass 947 968 948 969 #============ HELP ================= -
src/sas/qtgui/MainWindow/MainWindow.py
rb14db78 r33812c3 6 6 from PyQt5.QtWidgets import QApplication 7 7 from PyQt5.QtGui import QPixmap 8 from PyQt5.QtCore import Qt 8 9 import os 9 10 import sys … … 58 59 splash = SplashScreen() 59 60 splash.show() 60 61 app.setAttribute(Qt.AA_EnableHighDpiScaling) 61 62 # fix for pyinstaller packages app to avoid ReactorAlreadyInstalledError 62 63 import sys -
src/sas/qtgui/MainWindow/UI/MainWindowUI.ui
refaf022 r6bc0840 25 25 <y>0</y> 26 26 <width>915</width> 27 <height>2 1</height>27 <height>26</height> 28 28 </rect> 29 29 </property> … … 128 128 <addaction name="actionPrevious"/> 129 129 <addaction name="separator"/> 130 <addaction name="actionClosePlots"/> 130 131 </widget> 131 132 <widget class="QMenu" name="menuAnalysis"> … … 571 572 </property> 572 573 </action> 574 <action name="actionClosePlots"> 575 <property name="text"> 576 <string>Close All Plots</string> 577 </property> 578 </action> 573 579 </widget> 574 580 <resources/> -
src/sas/qtgui/MainWindow/DataManager.py
re2e5f3d r345b3b3 29 29 from sas.qtgui.Plotting.PlotterData import Data1D 30 30 from sas.qtgui.Plotting.PlotterData import Data2D 31 from sas.qtgui.Plotting.Plottables import Plottable32 31 from sas.qtgui.Plotting.Plottables import PlottableTheory1D 33 32 from sas.qtgui.Plotting.Plottables import PlottableFit1D
Note: See TracChangeset
for help on using the changeset viewer.