source: sasview/src/sas/qtgui/UI/LinearFitUI.ui @ 570a58f9

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 570a58f9 was 570a58f9, checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago

Linear fits for 1D charts

  • Property mode set to 100755
File size: 9.9 KB
RevLine 
[570a58f9]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>413</width>
10    <height>327</height>
11   </rect>
12  </property>
13  <property name="sizePolicy">
14   <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
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-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">
36     <property name="title">
37      <string>Fit parameters</string>
38     </property>
39     <layout class="QGridLayout" name="gridLayout">
40      <item row="0" column="0">
41       <layout class="QFormLayout" name="formLayout">
42        <item row="0" column="0">
43         <widget class="QLabel" name="label_3">
44          <property name="text">
45           <string>a</string>
46          </property>
47         </widget>
48        </item>
49        <item row="0" column="1">
50         <widget class="QLineEdit" name="txtA">
51          <property name="toolTip">
52           <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>
53          </property>
54          <property name="readOnly">
55           <bool>true</bool>
56          </property>
57         </widget>
58        </item>
59        <item row="1" column="0">
60         <widget class="QLabel" name="label_4">
61          <property name="text">
62           <string>b</string>
63          </property>
64         </widget>
65        </item>
66        <item row="1" column="1">
67         <widget class="QLineEdit" name="txtB">
68          <property name="toolTip">
69           <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>
70          </property>
71          <property name="readOnly">
72           <bool>true</bool>
73          </property>
74         </widget>
75        </item>
76        <item row="2" column="0">
77         <widget class="QLabel" name="label_7">
78          <property name="text">
79           <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>
80          </property>
81         </widget>
82        </item>
83        <item row="2" column="1">
84         <widget class="QLineEdit" name="txtChi2">
85          <property name="toolTip">
86           <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>
87          </property>
88          <property name="readOnly">
89           <bool>true</bool>
90          </property>
91         </widget>
92        </item>
93       </layout>
94      </item>
95      <item row="0" column="1">
96       <layout class="QFormLayout" name="formLayout_2">
97        <item row="0" column="0">
98         <widget class="QLabel" name="label_5">
99          <property name="text">
100           <string>+/-</string>
101          </property>
102         </widget>
103        </item>
104        <item row="0" column="1">
105         <widget class="QLineEdit" name="txtAerr">
106          <property name="toolTip">
107           <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>
108          </property>
109          <property name="readOnly">
110           <bool>true</bool>
111          </property>
112         </widget>
113        </item>
114        <item row="1" column="0">
115         <widget class="QLabel" name="label_6">
116          <property name="text">
117           <string>+/-</string>
118          </property>
119         </widget>
120        </item>
121        <item row="1" column="1">
122         <widget class="QLineEdit" name="txtBerr">
123          <property name="toolTip">
124           <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>
125          </property>
126          <property name="readOnly">
127           <bool>true</bool>
128          </property>
129         </widget>
130        </item>
131       </layout>
132      </item>
133     </layout>
134    </widget>
135   </item>
136   <item row="2" column="0" colspan="2">
137    <widget class="QGroupBox" name="groupBox_2">
138     <property name="title">
139      <string>Fit ranges</string>
140     </property>
141     <layout class="QGridLayout" name="gridLayout_3">
142      <item row="0" column="0">
143       <layout class="QGridLayout" name="gridLayout_2">
144        <item row="0" column="1">
145         <widget class="QLabel" name="label_9">
146          <property name="text">
147           <string>Min</string>
148          </property>
149         </widget>
150        </item>
151        <item row="0" column="2">
152         <widget class="QLabel" name="label_10">
153          <property name="text">
154           <string>Max</string>
155          </property>
156         </widget>
157        </item>
158        <item row="1" column="0">
159         <widget class="QLabel" name="label_8">
160          <property name="text">
161           <string>Range (linear scale)</string>
162          </property>
163         </widget>
164        </item>
165        <item row="1" column="1">
166         <widget class="QLineEdit" name="txtRangeMin">
167          <property name="toolTip">
168           <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>
169          </property>
170          <property name="readOnly">
171           <bool>true</bool>
172          </property>
173         </widget>
174        </item>
175        <item row="1" column="2">
176         <widget class="QLineEdit" name="txtRangeMax">
177          <property name="toolTip">
178           <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>
179          </property>
180          <property name="readOnly">
181           <bool>true</bool>
182          </property>
183         </widget>
184        </item>
185        <item row="2" column="0">
186         <widget class="QLabel" name="lblRange">
187          <property name="text">
188           <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>
189          </property>
190         </widget>
191        </item>
192        <item row="2" column="1">
193         <widget class="QLineEdit" name="txtFitRangeMin">
194          <property name="toolTip">
195           <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>
196          </property>
197         </widget>
198        </item>
199        <item row="2" column="2">
200         <widget class="QLineEdit" name="txtFitRangeMax">
201          <property name="toolTip">
202           <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>
203          </property>
204         </widget>
205        </item>
206       </layout>
207      </item>
208     </layout>
209    </widget>
210   </item>
211   <item row="3" column="0" colspan="2">
212    <widget class="QLabel" name="label_2">
213     <property name="text">
214      <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; color:#ff0000;&quot;&gt;WARNING! Resolution is NOT accounted for.&lt;br/&gt;Thus slit smeared data will give very wrong answers!&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
215     </property>
216    </widget>
217   </item>
218   <item row="4" column="1">
219    <spacer name="verticalSpacer">
220     <property name="orientation">
221      <enum>Qt::Vertical</enum>
222     </property>
223     <property name="sizeHint" stdset="0">
224      <size>
225       <width>20</width>
226       <height>3</height>
227      </size>
228     </property>
229    </spacer>
230   </item>
231   <item row="5" column="0" colspan="2">
232    <layout class="QHBoxLayout" name="horizontalLayout_2">
233     <item>
234      <spacer name="horizontalSpacer">
235       <property name="orientation">
236        <enum>Qt::Horizontal</enum>
237       </property>
238       <property name="sizeHint" stdset="0">
239        <size>
240         <width>40</width>
241         <height>20</height>
242        </size>
243       </property>
244      </spacer>
245     </item>
246     <item>
247      <layout class="QHBoxLayout" name="horizontalLayout">
248       <item>
249        <widget class="QPushButton" name="cmdFit">
250         <property name="text">
251          <string>Fit</string>
252         </property>
253        </widget>
254       </item>
255       <item>
256        <widget class="QPushButton" name="cmdClose">
257         <property name="text">
258          <string>Close</string>
259         </property>
260        </widget>
261       </item>
262      </layout>
263     </item>
264    </layout>
265   </item>
266  </layout>
267 </widget>
268 <resources>
269  <include location="main_resources.qrc"/>
270 </resources>
271 <connections>
272  <connection>
273   <sender>cmdClose</sender>
274   <signal>clicked()</signal>
275   <receiver>LinearFitUI</receiver>
276   <slot>accept()</slot>
277   <hints>
278    <hint type="sourcelabel">
279     <x>284</x>
280     <y>304</y>
281    </hint>
282    <hint type="destinationlabel">
283     <x>166</x>
284     <y>163</y>
285    </hint>
286   </hints>
287  </connection>
288 </connections>
289</ui>
Note: See TracBrowser for help on using the repository browser.