Changeset 61a92d4 in sasview for src/sas/qtgui/Perspectives/Fitting


Ignore:
Timestamp:
Apr 28, 2017 9:26:55 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
28a09b0
Parents:
0215e0a
Message:

Minor UI resizing.
Refactored ObjectFactory?

Location:
src/sas/qtgui/Perspectives/Fitting
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py

    r0215e0a r61a92d4  
    66 
    77import sas.qtgui.Utilities.GuiUtils as GuiUtils 
    8 import sas.qtgui.ObjectFactory as ObjectFactory 
     8import sas.qtgui.Utilities.ObjectLibrary as ObjectLibrary 
    99 
    1010from FittingWidget import FittingWidget 
     
    7575        """ 
    7676        tab     = FittingWidget(parent=self.parent, data=data, id=self.maxIndex+1) 
    77         # Add this tab to the object factory so it can be retrieved by scripting/jupyter 
    78         ObjectFactory.addObject(self.tabName(), tab) 
     77        # Add this tab to the object library so it can be retrieved by scripting/jupyter 
     78        ObjectLibrary.addObject(self.tabName(), tab) 
    7979        self.tabs.append(tab) 
    8080        self.maxIndex += 1 
     
    9696        if len(self.tabs) <= 1: 
    9797            return 
    98         ObjectFactory.deleteObject(self.tabs[index].accessibleName()) 
     98        ObjectLibrary.deleteObjectByRef(self.tabs[index]) 
    9999        del self.tabs[index] 
    100100        self.removeTab(index) 
  • TabularUnified src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r180bd54 r61a92d4  
    122122        self.model_parameters = None 
    123123        self.lstParams.setAlternatingRowColors(True) 
     124        stylesheet = """ 
     125            QTreeView{ 
     126                alternate-background-color: #f6fafb; 
     127                background: #e8f4fc; 
     128            } 
     129        """ 
     130        self.lstParams.setStyleSheet(stylesheet) 
    124131 
    125132        # Poly model displayed in poly list 
     
    572579        self.q_range_min, self.q_range_max, self.npts, self.log_points, self.weighting = \ 
    573580            self.options_widget.state() 
     581        # set Q range labels on the main tab 
     582        self.lblMinRangeDef.setText(str(self.q_range_min)) 
     583        self.lblMaxRangeDef.setText(str(self.q_range_max)) 
    574584        self.onPlot() 
    575585 
  • TabularUnified src/sas/qtgui/Perspectives/Fitting/OptionsWidget.py

    r180bd54 r61a92d4  
    141141        #print "MODEL CHANGED for property: %s. The value is now: %s" % \ 
    142142        #    (MODEL[top.row()], str(self.model.item(top.row()).text())) 
     143 
    143144        # update if there's something to update 
    144         if str(self.model.item(top.row()).text()): #and 'RANGE' in MODEL[top.row()]: 
     145        if str(self.model.item(top.row()).text()): 
    145146            self.plot_signal.emit() 
    146147 
Note: See TracChangeset for help on using the changeset viewer.