Changeset d9e7792 in sasview
- Timestamp:
- Nov 30, 2018 4:57:46 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
- Children:
- 99f8760, 11a336f, 9d23e4c
- Parents:
- 5d75a181
- Location:
- src/sas/qtgui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r5d75a181 rd9e7792 1102 1102 if data.plot_role != Data1D.ROLE_DATA: 1103 1103 self.active_plots[data_id].replacePlot(data_id, data) 1104 # restore minimized window, if applicable 1105 self.active_plots[data_id].showNormal() 1104 1106 return True 1105 1107 elif data_id in ids_vals: 1106 1108 if data.plot_role != Data1D.ROLE_DATA: 1107 1109 list(self.active_plots.values())[ids_vals.index(data_id)].replacePlot(data_id, data) 1110 self.active_plots[data_id].showNormal() 1108 1111 return True 1109 1112 return False … … 1649 1652 logging.error("Closing of %s failed:\n %s" % (plot_id, str(ex))) 1650 1653 1654 def minimizeAllPlots(self): 1655 """ 1656 Minimize all currently displayed plots 1657 """ 1658 for plot_id in PlotHelper.currentPlots(): 1659 plotter = PlotHelper.plotById(plot_id) 1660 plotter.showMinimized() 1661 1651 1662 def closePlotsForItem(self, item): 1652 1663 """ -
src/sas/qtgui/MainWindow/GuiManager.py
re5ae812 rd9e7792 521 521 self._workspace.actionNext.triggered.connect(self.actionNext) 522 522 self._workspace.actionPrevious.triggered.connect(self.actionPrevious) 523 self._workspace.actionMinimizePlots.triggered.connect(self.actionMinimizePlots) 523 524 self._workspace.actionClosePlots.triggered.connect(self.actionClosePlots) 524 525 # Analysis … … 994 995 pass 995 996 997 def actionMinimizePlots(self): 998 """ 999 Minimizes all Plotters and Plotter2Ds. 1000 """ 1001 self.filesWidget.minimizeAllPlots() 1002 pass 1003 996 1004 #============ HELP ================= 997 1005 def actionDocumentation(self): -
src/sas/qtgui/MainWindow/UI/MainWindowUI.ui
r6bc0840 rd9e7792 128 128 <addaction name="actionPrevious"/> 129 129 <addaction name="separator"/> 130 <addaction name="actionMinimizePlots"/> 130 131 <addaction name="actionClosePlots"/> 131 132 </widget> … … 577 578 </property> 578 579 </action> 580 <action name="actionMinimizePlots"> 581 <property name="text"> 582 <string>Minimize All Plots</string> 583 </property> 584 </action> 579 585 </widget> 580 586 <resources/> -
src/sas/qtgui/Plotting/Plotter.py
rc30822c rd9e7792 205 205 206 206 # refresh canvas 207 self.canvas.draw ()207 self.canvas.draw_idle() 208 208 209 209 def createContextMenu(self): … … 352 352 # Update the list of annotations 353 353 self.textList.append(new_text) 354 self.canvas.draw ()354 self.canvas.draw_idle() 355 355 356 356 def onRemoveText(self): … … 460 460 self.ax.set_xlabel(xl) 461 461 self.ax.set_ylabel(yl) 462 self.canvas.draw ()462 self.canvas.draw_idle() 463 463 464 464 def onFreeze(self, id): … … 694 694 self.legend_pos_loc = tuple(loc_in_norm_axes) 695 695 self.legend._loc = self.legend_pos_loc 696 # self.canvas.draw()697 696 self.canvas.draw_idle() 698 697
Note: See TracChangeset
for help on using the changeset viewer.