Changeset 91ad45c in sasview
- Timestamp:
- Mar 1, 2018 8:02:28 AM (7 years ago)
- 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:
- e4c475b7
- Parents:
- fde5bcd
- Location:
- src/sas/qtgui/Perspectives/Fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/ConstraintWidget.py
rc736154 r91ad45c 32 32 self.page_id = 301 33 33 34 # Are we chain fitting? 35 self.is_chain_fitting = False 36 34 37 # Remember previous content of modified cell 35 38 self.current_cell = "" … … 66 69 self.tblTabList.customContextMenuRequested.connect(self.showModelContextMenu) 67 70 71 # Single Fit is the default, so disable chainfit 72 self.chkChain.setVisible(False) 73 68 74 # disabled constraint 69 75 labels = ['Constraint'] … … 86 92 self.cmdFit.clicked.connect(self.onFit) 87 93 self.cmdHelp.clicked.connect(self.onHelp) 94 self.chkChain.toggled.connect(self.onChainFit) 88 95 89 96 # QTableWidgets … … 117 124 source = self.sender().objectName() 118 125 self.currentType = "BatchPage" if source == "btnBatch" else "FitPage" 126 self.chkChain.setVisible(source=="btnBatch") 119 127 self.initializeFitList() 120 128 … … 130 138 """ 131 139 return [tab for tab in self.tabs_for_fitting if self.tabs_for_fitting[tab]] 140 141 def onChainFit(self, is_checked): 142 """ 143 Respond to selecting the Chain Fit checkbox 144 """ 145 self.is_chain_fitting = is_checked 132 146 133 147 def onFit(self): … … 192 206 page_id=page_ids, 193 207 updatefn=updater, 194 completefn=completefn) 208 completefn=completefn, 209 reset_flag=self.is_chain_fitting) 195 210 196 211 if LocalConfig.USING_TWISTED: … … 370 385 object = ObjectLibrary.getObject(tab) 371 386 if not isinstance(object, FittingWidget): return False 372 if object.data is None: return False387 if not object.data_is_loaded : return False 373 388 return True 374 389 -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
rfde5bcd r91ad45c 1117 1117 page_id=[[self.page_id]], 1118 1118 updatefn=updater, 1119 completefn=completefn) 1119 completefn=completefn, 1120 reset_flag=self.is_chain_fitting) 1120 1121 1121 1122 if LocalConfig.USING_TWISTED: -
src/sas/qtgui/Perspectives/Fitting/UI/ConstraintWidgetUI.ui
rbe8f4b0 r91ad45c 7 7 <x>0</x> 8 8 <y>0</y> 9 <width> 340</width>10 <height>4 41</height>9 <width>428</width> 10 <height>457</height> 11 11 </rect> 12 12 </property> … … 14 14 <string>Constrained and Simultaneous Fit</string> 15 15 </property> 16 <layout class="QGridLayout" name="gridLayout _3">16 <layout class="QGridLayout" name="gridLayout"> 17 17 <item row="0" column="0"> 18 18 <widget class="QGroupBox" name="groupBox"> … … 20 20 <string>Source choice for simultaneous fitting</string> 21 21 </property> 22 <layout class="Q GridLayout" name="gridLayout">23 <item row="0" column="0">22 <layout class="QVBoxLayout" name="verticalLayout"> 23 <item> 24 24 <layout class="QHBoxLayout" name="horizontalLayout_2"> 25 25 <item> … … 41 41 </item> 42 42 <item> 43 <widget class="QCheckBox" name="chkChain"> 44 <property name="text"> 45 <string>Chained fit</string> 46 </property> 47 </widget> 48 </item> 49 <item> 43 50 <spacer name="horizontalSpacer"> 44 51 <property name="orientation"> … … 47 54 <property name="sizeHint" stdset="0"> 48 55 <size> 49 <width>1 98</width>50 <height> 20</height>56 <width>18</width> 57 <height>17</height> 51 58 </size> 52 59 </property> … … 55 62 </layout> 56 63 </item> 57 <item row="1" column="0">64 <item> 58 65 <widget class="QTableWidget" name="tblTabList"> 59 66 <property name="sizePolicy">
Note: See TracChangeset
for help on using the changeset viewer.