Changeset aa1db44 in sasview for src/sas/qtgui


Ignore:
Timestamp:
Aug 31, 2018 7:00:21 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
3a473ef
Parents:
0231f93
Message:

Added orientation and jitter viewer

Location:
src/sas/qtgui/MainWindow
Files:
2 edited

Legend:

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

    r92c714f raa1db44  
    437437        self._workspace.actionPython_Shell_Editor.triggered.connect(self.actionPython_Shell_Editor) 
    438438        self._workspace.actionImage_Viewer.triggered.connect(self.actionImage_Viewer) 
     439        self._workspace.actionOrientation_Viewer.triggered.connect(self.actionOrientation_Viewer) 
    439440        # Fitting 
    440441        self._workspace.actionNew_Fit_Page.triggered.connect(self.actionNew_Fit_Page) 
     
    682683        self._workspace.addDockWidget(Qt.RightDockWidgetArea, self.ipDockWidget) 
    683684 
     685    def actionOrientation_Viewer(self): 
     686        """ 
     687        Make sasmodels orientation & jitter viewer available 
     688        """ 
     689        from sasmodels.jitter import run as orientation_run 
     690        try: 
     691            orientation_run() 
     692        except Exception as ex: 
     693            logging.error(str(ex)) 
     694 
    684695    def actionImage_Viewer(self): 
    685696        """ 
  • src/sas/qtgui/MainWindow/UI/MainWindowUI.ui

    r3d18691 raa1db44  
    9191    <addaction name="separator"/> 
    9292    <addaction name="actionPython_Shell_Editor"/> 
     93    <addaction name="actionOrientation_Viewer"/> 
    9394    <addaction name="actionImage_Viewer"/> 
    9495   </widget> 
     
    529530   </property> 
    530531  </action> 
     532  <action name="actionOrientation_Viewer"> 
     533   <property name="text"> 
     534    <string>Orientation Viewer</string> 
     535   </property> 
     536  </action> 
    531537 </widget> 
    532538 <resources/> 
Note: See TracChangeset for help on using the changeset viewer.