Changeset 17e6a2b in sasview for src/sas/qtgui
- Timestamp:
- Mar 25, 2019 9:06:44 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl
- Children:
- b38c8c8
- Parents:
- 2e7be0d
- Location:
- src/sas/qtgui/Perspectives/Fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r1d6899f r17e6a2b 522 522 self.cmdFit.setEnabled(False) 523 523 self.cmdPlot.setEnabled(False) 524 self.options_widget.cmdComputePoints.setVisible(False) # probably redundant525 524 self.chkPolydispersity.setEnabled(True) 526 525 self.chkPolydispersity.setCheckState(False) -
src/sas/qtgui/Perspectives/Fitting/OptionsWidget.py
rb764ae5 r17e6a2b 88 88 self.model.blockSignals(True) 89 89 self.updateQRange(self.qmin, self.qmax, self.npts) 90 self.txtMaxRange.setText( str(self.qmax))91 self.txtMinRange.setText( str(self.qmin))90 self.txtMaxRange.setText(GuiUtils.formatNumber(self.qmax, high=True)) 91 self.txtMinRange.setText(GuiUtils.formatNumber(self.qmin, high=True)) 92 92 self.txtNpts.setText(str(self.npts)) 93 93 self.txtNptsFit.setText(str(self.npts)) … … 181 181 Update the local model based on calculated values 182 182 """ 183 self.model.item(MODEL.index('MIN_RANGE')).setText(str(q_range_min)) 184 self.model.item(MODEL.index('MAX_RANGE')).setText(str(q_range_max)) 183 qmax = GuiUtils.formatNumber(self.qmax, high=True) 184 qmin = GuiUtils.formatNumber(self.qmin, high=True) 185 self.model.item(MODEL.index('MIN_RANGE')).setText(qmin) 186 self.model.item(MODEL.index('MAX_RANGE')).setText(qmax) 185 187 self.model.item(MODEL.index('NPTS')).setText(str(npts)) 186 188 self.qmin, self.qmax, self.npts = q_range_min, q_range_max, npts -
src/sas/qtgui/Perspectives/Fitting/UI/OptionsWidgetUI.ui
r309fa1b r17e6a2b 122 122 <item row="0" column="0"> 123 123 <layout class="QGridLayout" name="gridLayout_15"> 124 <item row="0" column="0">125 <widget class="QLabel" name="label_21">126 <property name="text">127 <string>Npts</string>128 </property>129 </widget>130 </item>131 <item row="0" column="1">132 <widget class="QLineEdit" name="txtNpts">133 <property name="toolTip">134 <string><html><head/><body><p>Total number of data points.</p></body></html></string>135 </property>136 </widget>137 </item>138 <item row="0" column="2">139 <widget class="QCheckBox" name="chkLogData">140 <property name="toolTip">141 <string><html><head/><body><p>Check to use log spaced points.</p></body></html></string>142 </property>143 <property name="text">144 <string>Log spaced points</string>145 </property>146 </widget>147 </item>148 <item row="1" column="0">149 <widget class="QLabel" name="label_22">150 <property name="text">151 <string>Npts(Fit)</string>152 </property>153 </widget>154 </item>155 <item row="1" column="1">156 <widget class="QLineEdit" name="txtNptsFit">157 <property name="toolTip">158 <string><html><head/><body><p>Number of points selected for fitting.</p></body></html></string>159 </property>160 <property name="readOnly">161 <bool>true</bool>162 </property>163 </widget>164 </item>165 <item row="2" column="0">166 <widget class="QLabel" name="label_24">167 <property name="text">168 <string><html><head/><body><p>Ï<span style=" vertical-align:super;">2</span>/Npts</p></body></html></string>169 </property>170 </widget>171 </item>172 <item row="2" column="1">173 <widget class="QLineEdit" name="txtChi2">174 <property name="readOnly">175 <bool>true</bool>176 </property>177 </widget>178 </item>179 <item row="2" column="3">180 <widget class="QPushButton" name="cmdComputePoints">181 <property name="text">182 <string>Compute</string>183 </property>184 </widget>185 </item>186 124 <item row="1" column="2"> 187 125 <spacer name="horizontalSpacer_9"> … … 197 135 </spacer> 198 136 </item> 137 <item row="0" column="1"> 138 <widget class="QLineEdit" name="txtNpts"> 139 <property name="toolTip"> 140 <string><html><head/><body><p>Total number of data points.</p></body></html></string> 141 </property> 142 </widget> 143 </item> 144 <item row="1" column="0"> 145 <widget class="QLabel" name="label_22"> 146 <property name="text"> 147 <string>Npts(Fit)</string> 148 </property> 149 </widget> 150 </item> 151 <item row="1" column="1"> 152 <widget class="QLineEdit" name="txtNptsFit"> 153 <property name="toolTip"> 154 <string><html><head/><body><p>Number of points selected for fitting.</p></body></html></string> 155 </property> 156 <property name="readOnly"> 157 <bool>true</bool> 158 </property> 159 </widget> 160 </item> 161 <item row="0" column="2"> 162 <widget class="QCheckBox" name="chkLogData"> 163 <property name="toolTip"> 164 <string><html><head/><body><p>Check to use log spaced points.</p></body></html></string> 165 </property> 166 <property name="text"> 167 <string>Log spaced points</string> 168 </property> 169 </widget> 170 </item> 171 <item row="0" column="0"> 172 <widget class="QLabel" name="label_21"> 173 <property name="text"> 174 <string>Npts</string> 175 </property> 176 </widget> 177 </item> 199 178 </layout> 200 179 </item>
Note: See TracChangeset
for help on using the changeset viewer.