Changes in / [07d744c:1c98850] in sasview


Ignore:
Location:
src/sas/qtgui
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Calculators/DataOperationUtilityPanel.py

    r33c0561 r42787fb  
    2626        self.manager = parent 
    2727        self.communicator = self.manager.communicator() 
    28         # disable the context help icon 
    29         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    3028 
    3129        # To store input datafiles 
  • src/sas/qtgui/Calculators/DensityPanel.py

    r33c0561 rb6f47be  
    4848        self.manager = parent 
    4949        self.setupUi() 
    50         # disable the context help icon 
    51         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    52  
    5350        self.setupModel() 
    5451        self.setupMapper() 
  • src/sas/qtgui/Calculators/GenericScatteringCalculator.py

    r33c0561 r8c85ac1  
    3838        super(GenericScatteringCalculator, self).__init__() 
    3939        self.setupUi(self) 
    40         # disable the context help icon 
    41         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    42  
    4340        self.manager = parent 
    4441        self.communicator = self.manager.communicator() 
  • src/sas/qtgui/Calculators/KiessigPanel.py

    r33c0561 rccdee50  
    1515        super(KiessigPanel, self).__init__() 
    1616        self.setupUi(self) 
    17         # disable the context help icon 
    18         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    1917 
    2018        self.setWindowTitle("Kiessig Thickness Calculator") 
  • src/sas/qtgui/Calculators/ResolutionCalculatorPanel.py

    r33c0561 r93c813f  
    4141        super(ResolutionCalculatorPanel, self).__init__() 
    4242        self.setupUi(self) 
    43         # disable the context help icon 
    44         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    45  
    4643        self.manager = parent 
    4744 
  • src/sas/qtgui/Calculators/SldPanel.py

    r33c0561 rbd39d6c  
    8989 
    9090        self.setupUi() 
    91         # disable the context help icon 
    92         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    93  
    9491        self.setupModel() 
    9592        self.setupMapper() 
  • src/sas/qtgui/Calculators/SlitSizeCalculator.py

    r33c0561 rfa05c6c1  
    2525        super(SlitSizeCalculator, self).__init__() 
    2626        self.setupUi(self) 
    27         # disable the context help icon 
    28         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    2927 
    3028        self.setWindowTitle("Slit Size Calculator") 
  • src/sas/qtgui/MainWindow/AboutBox.py

    r33c0561 r7385fec  
    11import functools 
    2 from PyQt5 import QtWidgets, QtCore 
     2from PyQt5 import QtWidgets 
    33 
    44import sas.sasview 
     
    1414        super(AboutBox, self).__init__(parent) 
    1515        self.setupUi(self) 
    16         # disable the context help icon 
    17         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    1816 
    1917        self.setWindowTitle("About") 
  • src/sas/qtgui/MainWindow/CategoryManager.py

    r33c0561 r3d18691  
    135135        super(CategoryManager, self).__init__(parent) 
    136136        self.setupUi(self) 
    137  
    138         # disable the context help icon 
    139         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    140137 
    141138        self.communicator = manager.communicator() 
     
    330327        super(ChangeCategory, self).__init__(parent) 
    331328        self.setupUi(self) 
    332         # disable the context help icon 
    333         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    334329 
    335330        self.model = model 
  • src/sas/qtgui/MainWindow/DataExplorer.py

    rd1ad101 r04a884a  
    640640        # Figure out which rows are checked 
    641641        ind = -1 
    642  
    643         deleted_items = [] 
    644         deleted_names = [] 
     642        # Use 'while' so the row count is forced at every iteration 
    645643        while ind < self.theory_model.rowCount(): 
    646644            ind += 1 
    647645            item = self.theory_model.item(ind) 
    648  
    649646            if item and item.isCheckable() and item.checkState() == QtCore.Qt.Checked: 
    650647                # Delete these rows from the model 
    651                 deleted_names.append(str(self.theory_model.item(ind).text())) 
    652                 deleted_items.append(item) 
    653  
    654648                self.theory_model.removeRow(ind) 
    655649                # Decrement index since we just deleted it 
    656650                ind -= 1 
    657651 
    658         # Let others know we deleted data 
    659         self.communicator.dataDeletedSignal.emit(deleted_items) 
    660  
    661         # update stored_data 
    662         self.manager.update_stored_data(deleted_names) 
     652        # pass temporarily kept as a breakpoint anchor 
     653        pass 
    663654 
    664655    def sendData(self, event=None): 
     
    18191810            raise AttributeError(msg) 
    18201811 
    1821         # Check if there exists an item for this tab 
    1822         # If so, replace it 
     1812        # Check if there are any other items for this tab 
     1813        # If so, delete them 
    18231814        current_tab_name = model_item.text() 
    18241815        for current_index in range(self.theory_model.rowCount()): 
    1825             current_item = self.theory_model.item(current_index) 
    1826             if current_tab_name == current_item.text(): 
    1827                 # replace data instead 
    1828                 new_data = GuiUtils.dataFromItem(model_item) 
    1829                 current_item.child(0).setData(new_data) 
    1830                 return current_item 
    1831  
    1832         # add the new item to the model 
     1816            if current_tab_name == self.theory_model.item(current_index).text(): 
     1817                self.theory_model.removeRow(current_index) 
     1818                break 
     1819        # send in the new item 
    18331820        self.theory_model.appendRow(model_item) 
    1834         return model_item 
    18351821 
    18361822    def deleteIntermediateTheoryPlotsByModelID(self, model_id): 
  • src/sas/qtgui/MainWindow/GuiManager.py

    r33c0561 rb1626bea  
    5959        QDialog.__init__(self, parent) 
    6060        self.setupUi(self) 
    61         # disable the context help icon 
    62         self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint) 
    63  
    6461 
    6562class GuiManager(object): 
     
    10521049        Send the request to the DataExplorer for updating the theory model. 
    10531050        """ 
    1054         item = self.filesWidget.updateTheoryFromPerspective(index) 
    1055         # Now notify the perspective that the item was/wasn't replaced 
    1056         per = self.perspective() 
    1057         if not isinstance(per, FittingWindow): 
    1058             # currently only fitting supports generation of theories. 
    1059             return 
    1060         per.currentTab.setTheoryItem(item) 
     1051        self.filesWidget.updateTheoryFromPerspective(index) 
    10611052 
    10621053    def deleteIntermediateTheoryPlotsByModelID(self, model_id): 
  • src/sas/qtgui/MainWindow/MainWindow.py

    r33c0561 r09b7da68  
    6060    splash.show() 
    6161    app.setAttribute(Qt.AA_EnableHighDpiScaling) 
    62  
    6362    # fix for pyinstaller packages app to avoid ReactorAlreadyInstalledError 
    6463    import sys 
  • src/sas/qtgui/MainWindow/UI/MainWindowUI.ui

    rc3fc919 r09b7da68  
    7575    <addaction name="actionHide_LogExplorer"/> 
    7676    <addaction name="separator"/> 
     77    <addaction name="actionMinimizePlots"/> 
     78    <addaction name="actionClosePlots"/> 
     79    <addaction name="separator"/> 
    7780    <addaction name="actionStartup_Settings"/> 
    7881   </widget> 
     
    126129    <addaction name="actionNext"/> 
    127130    <addaction name="actionPrevious"/> 
    128      <addaction name="separator"/> 
    129      <addaction name="actionMinimizePlots"/> 
    130      <addaction name="actionClosePlots"/> 
    131131   </widget> 
    132132   <widget class="QMenu" name="menuAnalysis"> 
  • src/sas/qtgui/Perspectives/Fitting/ComplexConstraint.py

    rcf9f39e r9c207f5  
    2626    constraintReadySignal = QtCore.pyqtSignal(tuple) 
    2727    def __init__(self, parent=None, tabs=None): 
    28         super(ComplexConstraint, self).__init__(parent) 
     28        super(ComplexConstraint, self).__init__() 
    2929 
    3030        self.setupUi(self) 
    3131        self.setModal(True) 
    32  
    33         # disable the context help icon 
    34         windowFlags = self.windowFlags() 
    35         self.setWindowFlags(windowFlags & ~QtCore.Qt.WindowContextHelpButtonHint) 
    3632 
    3733        # Useful globals 
     
    6561        self.cmdOK.clicked.connect(self.onApply) 
    6662        self.cmdHelp.clicked.connect(self.onHelp) 
    67         self.cmdAddAll.clicked.connect(self.onSetAll) 
    68  
    6963        self.txtConstraint.editingFinished.connect(self.validateFormula) 
    7064        self.cbModel1.currentIndexChanged.connect(self.onModelIndexChange) 
     
    8478        self.setupParamWidgets() 
    8579 
    86  
    8780        self.setupMenu() 
    8881 
    8982    def setupMenu(self): 
    90         # Show Add All button, if necessary 
     83        # Add menu to the Apply button, if necessary 
    9184        if self.cbModel1.currentText() ==self.cbModel2.currentText(): 
    92             self.cmdAddAll.setVisible(False) 
    93         else: 
    94             self.cmdAddAll.setVisible(True) 
    95         return 
     85            self.cmdOK.setArrowType(QtCore.Qt.NoArrow) 
     86            self.cmdOK.setPopupMode(QtWidgets.QToolButton.DelayedPopup) 
     87            self.cmdOK.setMenu(None) 
     88            return 
     89        self.all_menu   = QtWidgets.QMenu() 
     90        self.actionAddAll = QtWidgets.QAction(self) 
     91        self.actionAddAll.setObjectName("actionAddAll") 
     92        self.actionAddAll.setText(QtCore.QCoreApplication.translate("self", "Add all")) 
     93        ttip = "Add constraints between all identically named parameters in both fitpages" 
     94        self.actionAddAll.setToolTip(ttip) 
     95        self.actionAddAll.triggered.connect(self.onSetAll) 
     96        self.all_menu.addAction(self.actionAddAll) 
     97        # https://bugreports.qt.io/browse/QTBUG-13663 
     98        self.all_menu.setToolTipsVisible(True) 
     99        self.cmdOK.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup) 
     100        self.cmdOK.setArrowType(QtCore.Qt.DownArrow) 
     101        self.cmdOK.setMenu(self.all_menu) 
    96102 
    97103    def setupParamWidgets(self): 
     
    121127        if len(items1)==0: 
    122128            self.cmdOK.setEnabled(False) 
    123             self.cmdAddAll.setEnabled(False) 
    124129            txt = "No parameters in model "+self.tab_names[0] +\ 
    125130                " are available for constraining." 
     
    127132        else: 
    128133            self.cmdOK.setEnabled(True) 
    129             self.cmdAddAll.setEnabled(True) 
    130134            txt = "" 
    131135            self.lblWarning.setText(txt) 
     
    189193        if not formula_is_valid: 
    190194            self.cmdOK.setEnabled(False) 
    191             self.cmdAddAll.setEnabled(False) 
    192195            self.txtConstraint.setStyleSheet("QLineEdit {background-color: red;}") 
    193196        else: 
    194197            self.cmdOK.setEnabled(True) 
    195             self.cmdAddAll.setEnabled(True) 
    196198            self.txtConstraint.setStyleSheet("QLineEdit {background-color: white;}") 
    197199 
  • src/sas/qtgui/Perspectives/Fitting/ConstraintWidget.py

    r33c0561 r2e5081b  
    112112        self.parent = parent 
    113113        self.setupUi(self) 
    114  
    115114        self.currentType = "FitPage" 
    116115        # Page id for fitting 
     
    215214        tab_object = ObjectLibrary.getObject(tab) 
    216215 
    217         # Disconnect all local slots, if connected 
    218         if tab_object.receivers(tab_object.newModelSignal) > 0: 
    219             tab_object.newModelSignal.disconnect() 
    220         if tab_object.receivers(tab_object.constraintAddedSignal) > 0: 
    221             tab_object.constraintAddedSignal.disconnect() 
     216        # Disconnect all local slots 
     217        #tab_object.disconnect() 
    222218 
    223219        # Reconnect tab signals to local slots 
  • src/sas/qtgui/Perspectives/Fitting/FittingOptions.py

    r33c0561 r8873ab7  
    4141        super(FittingOptions, self).__init__(parent) 
    4242        self.setupUi(self) 
    43         # disable the context help icon 
    44         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    4543 
    4644        self.config = config 
  • src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py

    rcf9f39e r9817207  
    653653    num_rows = model.rowCount() 
    654654    if num_rows < 1: 
    655         return param 
     655        return None 
    656656 
    657657    for row in range(num_rows): 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    rbbcf9f0 rce67f35  
    284284        # Data for chosen model 
    285285        self.model_data = None 
    286         self._previous_model_index = 0 
    287286 
    288287        # Which shell is being currently displayed? 
     
    20212020        React to changes in the smearing widget 
    20222021        """ 
    2023         # update display 
    2024         smearing, accuracy, smearing_min, smearing_max = self.smearing_widget.state() 
    2025         self.lblCurrentSmearing.setText(smearing) 
    20262022        self.calculateQGridForModel() 
    20272023 
     
    26232619        """ 
    26242620        name = self.nameFromData(fitted_data) 
    2625         # Modify the item or add it if new 
    2626         theory_item = GuiUtils.createModelItemWithPlot(fitted_data, name=name) 
    2627         self.communicate.updateTheoryFromPerspectiveSignal.emit(theory_item) 
    2628  
    2629     def setTheoryItem(self, item): 
    2630         """ 
    2631         Reset the theory item based on the data explorer update 
    2632         """ 
    2633         self.theory_item = item 
     2621        # Notify the GUI manager so it can create the theory model in DataExplorer 
     2622        self.theory_item = GuiUtils.createModelItemWithPlot(fitted_data, name=name) 
     2623        self.communicate.updateTheoryFromPerspectiveSignal.emit(self.theory_item) 
    26342624 
    26352625    def nameFromData(self, fitted_data): 
  • src/sas/qtgui/Perspectives/Fitting/GPUOptions.py

    r33c0561 r133812c7  
    4545        self.parent = parent 
    4646        self.setupUi(self) 
    47         # disable the context help icon 
    48         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    4947        self.addOpenCLOptions() 
    5048        self.createLinks() 
  • src/sas/qtgui/Perspectives/Fitting/MultiConstraint.py

    rcf9f39e r09e0c32  
    1010 
    1111from PyQt5 import QtWidgets 
    12 from PyQt5 import QtCore 
    1312 
    1413import sas.qtgui.Utilities.GuiUtils as GuiUtils 
     
    2625        params: tuple of strings describing model parameters 
    2726        """ 
    28         super(MultiConstraint, self).__init__(parent) 
     27        super(MultiConstraint, self).__init__() 
    2928 
    3029        self.setupUi(self) 
    3130        self.setModal(True) 
    32  
    33         # disable the context help icon 
    34         windowFlags = self.windowFlags() 
    35         self.setWindowFlags(windowFlags & ~QtCore.Qt.WindowContextHelpButtonHint) 
    36  
    3731        self.params = params 
    3832        self.parent = parent 
  • src/sas/qtgui/Perspectives/Fitting/UI/ComplexConstraintUI.ui

    r33c0561 r2e5081b  
    139139       <property name="sizeHint" stdset="0"> 
    140140        <size> 
    141          <width>58</width> 
     141         <width>88</width> 
    142142         <height>20</height> 
    143143        </size> 
     
    146146     </item> 
    147147     <item> 
    148       <widget class="QToolButton" name="cmdAddAll"> 
    149        <property name="sizePolicy"> 
    150         <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 
    151          <horstretch>0</horstretch> 
    152          <verstretch>0</verstretch> 
    153         </sizepolicy> 
    154        </property> 
     148      <widget class="QToolButton" name="cmdOK"> 
    155149       <property name="minimumSize"> 
    156150        <size> 
     
    160154       </property> 
    161155       <property name="toolTip"> 
    162         <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Add constraints between all identically named parameters in both fitpages&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     156        <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Add the constraint as defined by the above expression.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    163157       </property> 
    164158       <property name="text"> 
    165         <string>Add All</string> 
     159        <string>Add</string> 
    166160       </property> 
    167161       <property name="popupMode"> 
     
    180174     </item> 
    181175     <item> 
    182       <widget class="QToolButton" name="cmdOK"> 
    183        <property name="sizePolicy"> 
    184         <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 
    185          <horstretch>0</horstretch> 
    186          <verstretch>0</verstretch> 
    187         </sizepolicy> 
    188        </property> 
    189        <property name="minimumSize"> 
    190         <size> 
    191          <width>93</width> 
    192          <height>28</height> 
    193         </size> 
    194        </property> 
     176      <widget class="QPushButton" name="cmdCancel"> 
    195177       <property name="toolTip"> 
    196         <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Add the constraint as defined by the above expression.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     178        <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Close the window.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    197179       </property> 
    198180       <property name="text"> 
    199         <string>Add</string> 
    200        </property> 
    201        <property name="popupMode"> 
    202         <enum>QToolButton::InstantPopup</enum> 
    203        </property> 
    204        <property name="toolButtonStyle"> 
    205         <enum>Qt::ToolButtonTextOnly</enum> 
    206        </property> 
    207        <property name="autoRaise"> 
    208         <bool>false</bool> 
    209        </property> 
    210        <property name="arrowType"> 
    211         <enum>Qt::DownArrow</enum> 
     181        <string>Close</string> 
    212182       </property> 
    213183      </widget> 
     
    225195 </widget> 
    226196 <resources/> 
    227  <connections/> 
     197 <connections> 
     198  <connection> 
     199   <sender>cmdCancel</sender> 
     200   <signal>clicked()</signal> 
     201   <receiver>ComplexConstraintUI</receiver> 
     202   <slot>reject()</slot> 
     203   <hints> 
     204    <hint type="sourcelabel"> 
     205     <x>230</x> 
     206     <y>144</y> 
     207    </hint> 
     208    <hint type="destinationlabel"> 
     209     <x>179</x> 
     210     <y>82</y> 
     211    </hint> 
     212   </hints> 
     213  </connection> 
     214 </connections> 
    228215</ui> 
  • src/sas/qtgui/Plotting/AddText.py

    r33c0561 r53c771e  
    1212        super(AddText, self).__init__(parent) 
    1313        self.setupUi(self) 
    14         # disable the context help icon 
    15         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    1614 
    1715        self._font = QtGui.QFont() 
  • src/sas/qtgui/Plotting/ColorMap.py

    r33c0561 r8fad50b  
    2828        self.setupUi(self) 
    2929        assert(isinstance(data, Data2D)) 
    30         # disable the context help icon 
    31         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    3230 
    3331        self.data = data 
  • src/sas/qtgui/Plotting/LinearFit.py

    r33c0561 re4c475b7  
    3030 
    3131        self.setupUi(self) 
    32         # disable the context help icon 
    33         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    34  
    3532        assert(isinstance(max_range, tuple)) 
    3633        assert(isinstance(fit_range, tuple)) 
  • src/sas/qtgui/Plotting/MaskEditor.py

    r33c0561 r133812c7  
    33import numpy as np 
    44 
    5 from PyQt5 import QtWidgets, QtCore 
     5from PyQt5 import QtWidgets 
    66 
    77from sas.qtgui.Plotting.PlotterData import Data2D 
     
    2424 
    2525        self.setupUi(self) 
    26         # disable the context help icon 
    27         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    2826 
    2927        self.data = data 
  • src/sas/qtgui/Plotting/PlotProperties.py

    r33c0561 rfacf4ca  
    1818        super(PlotProperties, self).__init__(parent) 
    1919        self.setupUi(self) 
    20         # disable the context help icon 
    21         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    22  
    2320        self.setFixedSize(self.minimumSizeHint()) 
    2421 
  • src/sas/qtgui/Plotting/ScaleProperties.py

    r33c0561 r54492dc  
    2727        super(ScaleProperties, self).__init__(parent) 
    2828        self.setupUi(self) 
    29         # disable the context help icon 
    30         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    3129 
    3230        # Set up comboboxes 
  • src/sas/qtgui/Plotting/SetGraphRange.py

    r33c0561 rd6b8a1d  
    1717 
    1818        self.setupUi(self) 
    19         # disable the context help icon 
    20         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    21  
    2219        assert(isinstance(x_range, tuple)) 
    2320        assert(isinstance(y_range, tuple)) 
  • src/sas/qtgui/Plotting/WindowTitle.py

    r33c0561 r4992ff2  
    33from "Graph_n" to any ASCII text. 
    44""" 
    5 from PyQt5 import QtWidgets, QtCore 
     5from PyQt5 import QtWidgets 
    66 
    77from sas.qtgui.Plotting.UI.WindowTitleUI import Ui_WindowTitle 
     
    1212        super(WindowTitle, self).__init__(parent) 
    1313        self.setupUi(self) 
    14         # disable the context help icon 
    15         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    16  
    1714        self.txtTitle.setText(new_title) 
    1815 
  • src/sas/qtgui/Utilities/AddMultEditor.py

    r33c0561 r287d356  
    5656 
    5757        self.setupUi(self) 
    58         # disable the context help icon 
    59         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    6058 
    6159        #  uncheck self.chkOverwrite 
  • src/sas/qtgui/Utilities/GuiUtils.py

    r10786bc2 r04a884a  
    3030from sas.qtgui.Plotting.Plottables import Plottable 
    3131from sas.sascalc.dataloader.data_info import Sample, Source, Vector 
    32 from sas.sascalc.dataloader.data_info import Detector, Process, TransmissionSpectrum 
    33 from sas.sascalc.dataloader.data_info import Aperture, Collimation 
    3432from sas.qtgui.Plotting.Plottables import View 
    3533from sas.qtgui.Plotting.Plottables import PlottableTheory1D 
     
    11831181        if isinstance(o, (Sample, Source, Vector, FResult)): 
    11841182            return add_type(o.__dict__, type(o)) 
    1185         # detector 
    1186         if isinstance(o, (Detector, Process, TransmissionSpectrum, Aperture, Collimation)): 
    1187             return add_type(o.__dict__, type(o)) 
    1188  
    11891183        if isinstance(o, (Plottable, View)): 
    11901184            return add_type(o.__dict__, type(o)) 
     
    12261220        Sample, Source, Vector, 
    12271221        Plottable, Data1D, Data2D, PlottableTheory1D, PlottableFit1D, Text, Chisq, View, 
    1228         Detector, Process, TransmissionSpectrum, Collimation, Aperture, 
    12291222        DataState, np.ndarray, FResult, FitData1D, FitData2D, SasviewModel] 
    12301223 
     
    12591252 
    12601253        # "simple" types 
    1261         if cls in (Sample, Source, Vector, FResult, FitData1D, FitData2D, 
    1262                    SasviewModel, Detector, Process, TransmissionSpectrum, 
    1263                    Collimation, Aperture): 
     1254        if cls in (Sample, Source, Vector, FResult, FitData1D, FitData2D, SasviewModel): 
    12641255            return simple_type(cls, data, level) 
    12651256        if issubclass(cls, Plottable) or (cls == View): 
  • src/sas/qtgui/Utilities/ModelEditor.py

    r33c0561 rf2e199e  
    1515        super(ModelEditor, self).__init__(parent) 
    1616        self.setupUi(self) 
    17         # disable the context help icon 
    18         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    1917 
    2018        self.is_python = is_python 
  • src/sas/qtgui/Utilities/PluginManager.py

    r33c0561 raed0532  
    33from shutil import copyfile 
    44 
    5 from PyQt5 import QtWidgets, QtCore 
     5from PyQt5 import QtWidgets 
    66 
    77from sas.sascalc.fit import models 
     
    2121        super(PluginManager, self).__init__(parent._parent) 
    2222        self.setupUi(self) 
    23  
    24         # disable the context help icon 
    25         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    2623 
    2724        self.parent = parent 
  • src/sas/qtgui/Utilities/ReportDialog.py

    r33c0561 r133812c7  
    66from xhtml2pdf import pisa 
    77 
    8 from PyQt5 import QtWidgets, QtCore 
     8from PyQt5 import QtWidgets 
    99from PyQt5 import QtPrintSupport 
    1010 
     
    2323        super(ReportDialog, self).__init__(parent._parent) 
    2424        self.setupUi(self) 
    25         # disable the context help icon 
    26         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    2725 
    2826        assert isinstance(report_list, list) 
  • src/sas/qtgui/Utilities/TabbedModelEditor.py

    r33c0561 r59b925c1  
    66import traceback 
    77 
    8 from PyQt5 import QtWidgets, QtCore 
     8from PyQt5 import QtWidgets 
    99 
    1010from sas.sascalc.fit import models 
     
    2828 
    2929        self.setupUi(self) 
    30  
    31         # disable the context help icon 
    32         self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    3330 
    3431        # globals 
Note: See TracChangeset for help on using the changeset viewer.