source: sasview/src/sas/qtgui/UI/LinearFitUI.ui @ 2e3e959

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 2e3e959 was 2e3e959, checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago

Code review issues addressed.
More unit tests for plotting.

  • Property mode set to 100755
File size: 10.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
3 <class>LinearFitUI</class>
4 <widget class="QDialog" name="LinearFitUI">
5  <property name="geometry">
6   <rect>
7    <x>0</x>
8    <y>0</y>
9    <width>439</width>
10    <height>324</height>
11   </rect>
12  </property>
13  <property name="sizePolicy">
14   <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
15    <horstretch>0</horstretch>
16    <verstretch>0</verstretch>
17   </sizepolicy>
18  </property>
19  <property name="windowTitle">
20   <string>Linear Fit</string>
21  </property>
22  <property name="windowIcon">
23   <iconset resource="main_resources.qrc">
24    <normaloff>:/res/ball.ico</normaloff>:/res/ball.ico</iconset>
25  </property>
26  <layout class="QGridLayout" name="gridLayout_4">
27   <item row="0" column="0">
28    <widget class="QLabel" name="label">
29     <property name="text">
30      <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Perform fit for &lt;span style=&quot; font-weight:600; font-style:italic;&quot;&gt;y(x) = ax + b&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
31     </property>
32    </widget>
33   </item>
34   <item row="1" column="0" colspan="2">
35    <widget class="QGroupBox" name="groupBox_2">
36     <property name="title">
37      <string>Fit ranges</string>
38     </property>
39     <layout class="QGridLayout" name="gridLayout_3">
40      <item row="0" column="0">
41       <layout class="QGridLayout" name="gridLayout_2">
42        <item row="0" column="1">
43         <widget class="QLabel" name="label_9">
44          <property name="text">
45           <string>Min</string>
46          </property>
47         </widget>
48        </item>
49        <item row="0" column="2">
50         <widget class="QLabel" name="label_10">
51          <property name="text">
52           <string>Max</string>
53          </property>
54         </widget>
55        </item>
56        <item row="1" column="0">
57         <widget class="QLabel" name="label_8">
58          <property name="text">
59           <string>Range (linear scale)</string>
60          </property>
61         </widget>
62        </item>
63        <item row="1" column="1">
64         <widget class="QLineEdit" name="txtRangeMin">
65          <property name="toolTip">
66           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Minimum value on the x-axis for the plotted data.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
67          </property>
68          <property name="autoFillBackground">
69           <bool>true</bool>
70          </property>
71          <property name="readOnly">
72           <bool>true</bool>
73          </property>
74         </widget>
75        </item>
76        <item row="1" column="2">
77         <widget class="QLineEdit" name="txtRangeMax">
78          <property name="toolTip">
79           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Maximum value on the x-axis for the plotted data.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
80          </property>
81          <property name="autoFillBackground">
82           <bool>true</bool>
83          </property>
84          <property name="readOnly">
85           <bool>true</bool>
86          </property>
87         </widget>
88        </item>
89        <item row="2" column="0">
90         <widget class="QLabel" name="lblRange">
91          <property name="text">
92           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Fit range&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
93          </property>
94         </widget>
95        </item>
96        <item row="2" column="1">
97         <widget class="QLineEdit" name="txtFitRangeMin">
98          <property name="toolTip">
99           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enter the minimum value on the x-axis to be included in the fit.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
100          </property>
101         </widget>
102        </item>
103        <item row="2" column="2">
104         <widget class="QLineEdit" name="txtFitRangeMax">
105          <property name="toolTip">
106           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enter the maximum value on the x-axis to be included in the fit.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
107          </property>
108         </widget>
109        </item>
110       </layout>
111      </item>
112     </layout>
113    </widget>
114   </item>
115   <item row="2" column="0" colspan="2">
116    <widget class="QGroupBox" name="groupBox">
117     <property name="title">
118      <string>Fit parameters</string>
119     </property>
120     <layout class="QGridLayout" name="gridLayout">
121      <item row="0" column="0">
122       <layout class="QFormLayout" name="formLayout">
123        <item row="0" column="0">
124         <widget class="QLabel" name="label_3">
125          <property name="text">
126           <string>a</string>
127          </property>
128         </widget>
129        </item>
130        <item row="0" column="1">
131         <widget class="QLineEdit" name="txtA">
132          <property name="toolTip">
133           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Fit value for the slope parameter.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
134          </property>
135          <property name="readOnly">
136           <bool>true</bool>
137          </property>
138         </widget>
139        </item>
140        <item row="1" column="0">
141         <widget class="QLabel" name="label_4">
142          <property name="text">
143           <string>b</string>
144          </property>
145         </widget>
146        </item>
147        <item row="1" column="1">
148         <widget class="QLineEdit" name="txtB">
149          <property name="toolTip">
150           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Fit value for the constant parameter.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
151          </property>
152          <property name="readOnly">
153           <bool>true</bool>
154          </property>
155         </widget>
156        </item>
157        <item row="2" column="0">
158         <widget class="QLabel" name="label_7">
159          <property name="text">
160           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;χ&lt;span style=&quot; vertical-align:super;&quot;&gt;2&lt;/span&gt;/dof&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
161          </property>
162         </widget>
163        </item>
164        <item row="2" column="1">
165         <widget class="QLineEdit" name="txtChi2">
166          <property name="toolTip">
167           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;χ&lt;span style=&quot; vertical-align:super;&quot;&gt;2&lt;/span&gt; over degrees of freedom.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
168          </property>
169          <property name="readOnly">
170           <bool>true</bool>
171          </property>
172         </widget>
173        </item>
174       </layout>
175      </item>
176      <item row="0" column="1">
177       <layout class="QFormLayout" name="formLayout_2">
178        <item row="0" column="0">
179         <widget class="QLabel" name="label_5">
180          <property name="text">
181           <string>+/-</string>
182          </property>
183         </widget>
184        </item>
185        <item row="0" column="1">
186         <widget class="QLineEdit" name="txtAerr">
187          <property name="toolTip">
188           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Error on the slope parameter.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
189          </property>
190          <property name="readOnly">
191           <bool>true</bool>
192          </property>
193         </widget>
194        </item>
195        <item row="1" column="0">
196         <widget class="QLabel" name="label_6">
197          <property name="text">
198           <string>+/-</string>
199          </property>
200         </widget>
201        </item>
202        <item row="1" column="1">
203         <widget class="QLineEdit" name="txtBerr">
204          <property name="toolTip">
205           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Error on the constant parameter.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
206          </property>
207          <property name="readOnly">
208           <bool>true</bool>
209          </property>
210         </widget>
211        </item>
212       </layout>
213      </item>
214     </layout>
215    </widget>
216   </item>
217   <item row="3" column="0" colspan="2">
218    <widget class="QLabel" name="label_2">
219     <property name="text">
220      <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; color:#000000;&quot;&gt;Resolution is NOT accounted for.&lt;br/&gt;Slit smeared data will give very wrong answers!&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
221     </property>
222    </widget>
223   </item>
224   <item row="4" column="1">
225    <spacer name="verticalSpacer">
226     <property name="orientation">
227      <enum>Qt::Vertical</enum>
228     </property>
229     <property name="sizeHint" stdset="0">
230      <size>
231       <width>20</width>
232       <height>3</height>
233      </size>
234     </property>
235    </spacer>
236   </item>
237   <item row="5" column="0" colspan="2">
238    <layout class="QHBoxLayout" name="horizontalLayout_2">
239     <item>
240      <spacer name="horizontalSpacer">
241       <property name="orientation">
242        <enum>Qt::Horizontal</enum>
243       </property>
244       <property name="sizeHint" stdset="0">
245        <size>
246         <width>40</width>
247         <height>20</height>
248        </size>
249       </property>
250      </spacer>
251     </item>
252     <item>
253      <layout class="QHBoxLayout" name="horizontalLayout">
254       <item>
255        <widget class="QPushButton" name="cmdFit">
256         <property name="text">
257          <string>Fit</string>
258         </property>
259        </widget>
260       </item>
261       <item>
262        <widget class="QPushButton" name="cmdClose">
263         <property name="text">
264          <string>Close</string>
265         </property>
266        </widget>
267       </item>
268      </layout>
269     </item>
270    </layout>
271   </item>
272  </layout>
273 </widget>
274 <resources>
275  <include location="main_resources.qrc"/>
276 </resources>
277 <connections>
278  <connection>
279   <sender>cmdClose</sender>
280   <signal>clicked()</signal>
281   <receiver>LinearFitUI</receiver>
282   <slot>accept()</slot>
283   <hints>
284    <hint type="sourcelabel">
285     <x>284</x>
286     <y>304</y>
287    </hint>
288    <hint type="destinationlabel">
289     <x>166</x>
290     <y>163</y>
291    </hint>
292   </hints>
293  </connection>
294 </connections>
295</ui>
Note: See TracBrowser for help on using the repository browser.