source: sasview/src/sas/qtgui/Perspectives/Fitting/UI/ComplexConstraintUI.ui @ 2e5081b

ESS_GUIESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 2e5081b was 2e5081b, checked in by Piotr Rozyczko <piotr.rozyczko@…>, 5 years ago

Redone the widget slightly, to fit with requirements in trac#1135.
Added comboboxes for all available fitpage names
Removed constraint of needing two selected fitpages
Removed the "Swap" button - it is redundant now.
Added context dependence on the "Select All" action.
Removed immediate constraint validation to allow for more complex
formulas

  • Property mode set to 100755
File size: 6.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
3 <class>ComplexConstraintUI</class>
4 <widget class="QDialog" name="ComplexConstraintUI">
5  <property name="geometry">
6   <rect>
7    <x>0</x>
8    <y>0</y>
9    <width>496</width>
10    <height>260</height>
11   </rect>
12  </property>
13  <property name="windowTitle">
14   <string>Complex Constraint</string>
15  </property>
16  <layout class="QGridLayout" name="gridLayout_2">
17   <item row="0" column="0">
18    <widget class="QGroupBox" name="groupBox">
19     <property name="title">
20      <string>2 parameter constraint</string>
21     </property>
22     <layout class="QGridLayout" name="gridLayout">
23      <item row="0" column="0">
24       <layout class="QHBoxLayout" name="horizontalLayout">
25        <item>
26         <widget class="QComboBox" name="cbModel1"/>
27        </item>
28        <item>
29         <widget class="QComboBox" name="cbParam1">
30          <property name="sizePolicy">
31           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
32            <horstretch>0</horstretch>
33            <verstretch>0</verstretch>
34           </sizepolicy>
35          </property>
36          <property name="sizeAdjustPolicy">
37           <enum>QComboBox::AdjustToContents</enum>
38          </property>
39          <item>
40           <property name="text">
41            <string>sld</string>
42           </property>
43          </item>
44         </widget>
45        </item>
46        <item>
47         <widget class="QComboBox" name="cbOperator">
48          <item>
49           <property name="text">
50            <string>&gt;</string>
51           </property>
52          </item>
53         </widget>
54        </item>
55        <item>
56         <widget class="QComboBox" name="cbModel2"/>
57        </item>
58        <item>
59         <widget class="QComboBox" name="cbParam2">
60          <property name="sizePolicy">
61           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
62            <horstretch>0</horstretch>
63            <verstretch>0</verstretch>
64           </sizepolicy>
65          </property>
66          <property name="sizeAdjustPolicy">
67           <enum>QComboBox::AdjustToContents</enum>
68          </property>
69          <item>
70           <property name="text">
71            <string>sld_a</string>
72           </property>
73          </item>
74         </widget>
75        </item>
76       </layout>
77      </item>
78      <item row="1" column="0">
79       <layout class="QHBoxLayout" name="horizontalLayout_2">
80        <item>
81         <widget class="QLabel" name="txtParam">
82          <property name="sizePolicy">
83           <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
84            <horstretch>0</horstretch>
85            <verstretch>0</verstretch>
86           </sizepolicy>
87          </property>
88          <property name="text">
89           <string>param1</string>
90          </property>
91         </widget>
92        </item>
93        <item>
94         <widget class="QLabel" name="txtOperator">
95          <property name="text">
96           <string>=</string>
97          </property>
98         </widget>
99        </item>
100        <item>
101         <widget class="QLineEdit" name="txtConstraint">
102          <property name="text">
103           <string/>
104          </property>
105         </widget>
106        </item>
107       </layout>
108      </item>
109     </layout>
110    </widget>
111   </item>
112   <item row="1" column="0">
113    <widget class="QLabel" name="lblWarning">
114     <property name="text">
115      <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; color:#ff0000;&quot;&gt;Warning! Polydisperse parameter selected.&lt;br/&gt;&lt;/span&gt;Constraints involving polydisperse parameters only apply to&lt;br/&gt;starting values and are not re-applied during size or angle polydispersity&lt;br/&gt;integrations. To do so requires creating a custom model.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
116     </property>
117    </widget>
118   </item>
119   <item row="2" column="0">
120    <spacer name="verticalSpacer_2">
121     <property name="orientation">
122      <enum>Qt::Vertical</enum>
123     </property>
124     <property name="sizeHint" stdset="0">
125      <size>
126       <width>20</width>
127       <height>9</height>
128      </size>
129     </property>
130    </spacer>
131   </item>
132   <item row="3" column="0">
133    <layout class="QHBoxLayout" name="horizontalLayout_3">
134     <item>
135      <spacer name="horizontalSpacer_2">
136       <property name="orientation">
137        <enum>Qt::Horizontal</enum>
138       </property>
139       <property name="sizeHint" stdset="0">
140        <size>
141         <width>88</width>
142         <height>20</height>
143        </size>
144       </property>
145      </spacer>
146     </item>
147     <item>
148      <widget class="QToolButton" name="cmdOK">
149       <property name="minimumSize">
150        <size>
151         <width>93</width>
152         <height>28</height>
153        </size>
154       </property>
155       <property name="toolTip">
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>
157       </property>
158       <property name="text">
159        <string>Add</string>
160       </property>
161       <property name="popupMode">
162        <enum>QToolButton::InstantPopup</enum>
163       </property>
164       <property name="toolButtonStyle">
165        <enum>Qt::ToolButtonTextOnly</enum>
166       </property>
167       <property name="autoRaise">
168        <bool>false</bool>
169       </property>
170       <property name="arrowType">
171        <enum>Qt::DownArrow</enum>
172       </property>
173      </widget>
174     </item>
175     <item>
176      <widget class="QPushButton" name="cmdCancel">
177       <property name="toolTip">
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>
179       </property>
180       <property name="text">
181        <string>Close</string>
182       </property>
183      </widget>
184     </item>
185     <item>
186      <widget class="QPushButton" name="cmdHelp">
187       <property name="text">
188        <string>Help</string>
189       </property>
190      </widget>
191     </item>
192    </layout>
193   </item>
194  </layout>
195 </widget>
196 <resources/>
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>
215</ui>
Note: See TracBrowser for help on using the repository browser.