Changeset 20f4857 in sasview for src/sas


Ignore:
Timestamp:
Sep 26, 2018 4:46:21 AM (6 years ago)
Author:
Laura Forster <Awork@…>
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:
8eea1b1
Parents:
9b9ec10
Message:

Few fixes for Copy Excel/Latex? menu option

Just connecting these up in the same way as main copy function so that only current FitPage? tab can be accessed

Location:
src/sas/qtgui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/GuiManager.py

    ree22241 r20f4857  
    597597        can be saved to the clipboard 
    598598        """ 
    599         self.communicate.copyFitParamsSignal.emit("Excel") 
     599        self.communicate.copyExcelFitParamsSignal.emit("Excel") 
    600600 
    601601    def actionLatex(self): 
     
    604604        can be saved to the clipboard 
    605605        """ 
    606         self.communicate.copyFitParamsSignal.emit("Latex") 
     606        self.communicate.copyLatexFitParamsSignal.emit("Latex") 
    607607 
    608608    #============ VIEW ================= 
  • src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py

    r9b9ec10 r20f4857  
    6565        self.communicate.copyFitParamsSignal.connect(self.onParamCopy) 
    6666        self.communicate.pasteFitParamsSignal.connect(self.onParamPaste) 
     67        self.communicate.copyExcelFitParamsSignal.connect(self.onExcelCopy) 
     68        self.communicate.copyLatexFitParamsSignal.connect(self.onLatexCopy) 
     69 
    6770 
    6871        # Perspective window not allowed to close by default 
     
    103106    def onParamPaste(self): 
    104107        self.currentTab.onParameterPaste() 
     108 
     109    def onExcelCopy(self): 
     110        self.currentTab.onParameterCopy("Excel") 
     111 
     112    def onLatexCopy(self): 
     113        self.currentTab.onParameterCopy("Latex") 
    105114 
    106115    def closeEvent(self, event): 
  • src/sas/qtgui/Utilities/GuiUtils.py

    ree22241 r20f4857  
    271271    # Fitting parameter copy to clipboard 
    272272    copyFitParamsSignal = QtCore.pyqtSignal(str) 
     273 
     274    # Fitting parameter copy to clipboard for Excel 
     275    copyExcelFitParamsSignal = QtCore.pyqtSignal(str) 
     276 
     277    # Fitting parameter copy to clipboard for Latex 
     278    copyLatexFitParamsSignal = QtCore.pyqtSignal(str) 
    273279 
    274280    # Fitting parameter paste from clipboard 
Note: See TracChangeset for help on using the changeset viewer.