|
32 | 32 | <string>Worker Parameters</string> |
33 | 33 | </property> |
34 | 34 | <layout class="QFormLayout" name="formLayout"> |
| 35 | + <item row="0" column="0"> |
| 36 | + <widget class="QLabel" name="amount_label"> |
| 37 | + <property name="sizePolicy"> |
| 38 | + <sizepolicy hsizetype="Maximum" vsizetype="Preferred"> |
| 39 | + <horstretch>0</horstretch> |
| 40 | + <verstretch>0</verstretch> |
| 41 | + </sizepolicy> |
| 42 | + </property> |
| 43 | + <property name="minimumSize"> |
| 44 | + <size> |
| 45 | + <width>110</width> |
| 46 | + <height>0</height> |
| 47 | + </size> |
| 48 | + </property> |
| 49 | + <property name="maximumSize"> |
| 50 | + <size> |
| 51 | + <width>110</width> |
| 52 | + <height>16777215</height> |
| 53 | + </size> |
| 54 | + </property> |
| 55 | + <property name="text"> |
| 56 | + <string>Amount</string> |
| 57 | + </property> |
| 58 | + <property name="buddy"> |
| 59 | + <cstring>spread_input</cstring> |
| 60 | + </property> |
| 61 | + </widget> |
| 62 | + </item> |
| 63 | + <item row="0" column="1"> |
| 64 | + <widget class="QDoubleSpinBox" name="amount_input"> |
| 65 | + <property name="sizePolicy"> |
| 66 | + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
| 67 | + <horstretch>0</horstretch> |
| 68 | + <verstretch>0</verstretch> |
| 69 | + </sizepolicy> |
| 70 | + </property> |
| 71 | + <property name="minimumSize"> |
| 72 | + <size> |
| 73 | + <width>151</width> |
| 74 | + <height>0</height> |
| 75 | + </size> |
| 76 | + </property> |
| 77 | + <property name="locale"> |
| 78 | + <locale language="English" country="UnitedStates"/> |
| 79 | + </property> |
| 80 | + <property name="suffix"> |
| 81 | + <string/> |
| 82 | + </property> |
| 83 | + <property name="decimals"> |
| 84 | + <number>8</number> |
| 85 | + </property> |
| 86 | + <property name="maximum"> |
| 87 | + <double>100000.000000000000000</double> |
| 88 | + </property> |
| 89 | + <property name="value"> |
| 90 | + <double>0.000000000000000</double> |
| 91 | + </property> |
| 92 | + </widget> |
| 93 | + </item> |
35 | 94 | <item row="1" column="0"> |
36 | 95 | <widget class="QLabel" name="spread_label"> |
37 | 96 | <property name="sizePolicy"> |
|
200 | 259 | </property> |
201 | 260 | </widget> |
202 | 261 | </item> |
203 | | - <item row="5" column="0"> |
| 262 | + <item row="9" column="0"> |
204 | 263 | <widget class="QLabel" name="upper_bound_label"> |
205 | 264 | <property name="sizePolicy"> |
206 | 265 | <sizepolicy hsizetype="Maximum" vsizetype="Preferred"> |
|
228 | 287 | </property> |
229 | 288 | </widget> |
230 | 289 | </item> |
231 | | - <item row="5" column="1"> |
| 290 | + <item row="9" column="1"> |
232 | 291 | <widget class="QDoubleSpinBox" name="upper_bound_input"> |
233 | 292 | <property name="sizePolicy"> |
234 | 293 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
|
256 | 315 | </property> |
257 | 316 | </widget> |
258 | 317 | </item> |
259 | | - <item row="0" column="1"> |
260 | | - <widget class="QDoubleSpinBox" name="amount_input"> |
| 318 | + <item row="6" column="0"> |
| 319 | + <widget class="QLabel" name="center_price_label"> |
261 | 320 | <property name="sizePolicy"> |
262 | | - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
| 321 | + <sizepolicy hsizetype="Maximum" vsizetype="Preferred"> |
263 | 322 | <horstretch>0</horstretch> |
264 | 323 | <verstretch>0</verstretch> |
265 | 324 | </sizepolicy> |
266 | 325 | </property> |
267 | 326 | <property name="minimumSize"> |
268 | 327 | <size> |
269 | | - <width>151</width> |
| 328 | + <width>110</width> |
270 | 329 | <height>0</height> |
271 | 330 | </size> |
272 | 331 | </property> |
273 | | - <property name="locale"> |
274 | | - <locale language="English" country="UnitedStates"/> |
275 | | - </property> |
276 | | - <property name="suffix"> |
277 | | - <string/> |
278 | | - </property> |
279 | | - <property name="decimals"> |
280 | | - <number>8</number> |
| 332 | + <property name="maximumSize"> |
| 333 | + <size> |
| 334 | + <width>110</width> |
| 335 | + <height>16777215</height> |
| 336 | + </size> |
281 | 337 | </property> |
282 | | - <property name="maximum"> |
283 | | - <double>100000.000000000000000</double> |
| 338 | + <property name="text"> |
| 339 | + <string>Center Price</string> |
284 | 340 | </property> |
285 | | - <property name="value"> |
286 | | - <double>0.000000000000000</double> |
| 341 | + <property name="buddy"> |
| 342 | + <cstring>center_price_input</cstring> |
287 | 343 | </property> |
288 | 344 | </widget> |
289 | 345 | </item> |
290 | | - <item row="0" column="0"> |
291 | | - <widget class="QLabel" name="amount_label"> |
| 346 | + <item row="6" column="1"> |
| 347 | + <widget class="QDoubleSpinBox" name="center_price_input"> |
| 348 | + <property name="enabled"> |
| 349 | + <bool>false</bool> |
| 350 | + </property> |
292 | 351 | <property name="sizePolicy"> |
293 | | - <sizepolicy hsizetype="Maximum" vsizetype="Preferred"> |
| 352 | + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
294 | 353 | <horstretch>0</horstretch> |
295 | 354 | <verstretch>0</verstretch> |
296 | 355 | </sizepolicy> |
297 | 356 | </property> |
298 | 357 | <property name="minimumSize"> |
299 | 358 | <size> |
300 | | - <width>110</width> |
| 359 | + <width>140</width> |
301 | 360 | <height>0</height> |
302 | 361 | </size> |
303 | 362 | </property> |
304 | | - <property name="maximumSize"> |
305 | | - <size> |
306 | | - <width>110</width> |
307 | | - <height>16777215</height> |
308 | | - </size> |
| 363 | + <property name="locale"> |
| 364 | + <locale language="English" country="UnitedStates"/> |
| 365 | + </property> |
| 366 | + <property name="accelerated"> |
| 367 | + <bool>false</bool> |
309 | 368 | </property> |
| 369 | + <property name="showGroupSeparator" stdset="0"> |
| 370 | + <bool>false</bool> |
| 371 | + </property> |
| 372 | + <property name="decimals"> |
| 373 | + <number>8</number> |
| 374 | + </property> |
| 375 | + <property name="minimum"> |
| 376 | + <double>0.000000000000000</double> |
| 377 | + </property> |
| 378 | + <property name="maximum"> |
| 379 | + <double>999999999.998999953269958</double> |
| 380 | + </property> |
| 381 | + </widget> |
| 382 | + </item> |
| 383 | + <item row="8" column="1"> |
| 384 | + <widget class="QCheckBox" name="center_price_dynamic_checkbox"> |
310 | 385 | <property name="text"> |
311 | | - <string>Amount</string> |
| 386 | + <string>Calculate center price dynamically</string> |
312 | 387 | </property> |
313 | | - <property name="buddy"> |
314 | | - <cstring>spread_input</cstring> |
| 388 | + <property name="checked"> |
| 389 | + <bool>true</bool> |
315 | 390 | </property> |
316 | 391 | </widget> |
317 | 392 | </item> |
|
376 | 451 | </layout> |
377 | 452 | </widget> |
378 | 453 | <resources/> |
379 | | - <connections/> |
| 454 | + <connections> |
| 455 | + <connection> |
| 456 | + <sender>center_price_dynamic_checkbox</sender> |
| 457 | + <signal>clicked(bool)</signal> |
| 458 | + <receiver>center_price_input</receiver> |
| 459 | + <slot>setDisabled(bool)</slot> |
| 460 | + <hints> |
| 461 | + <hint type="sourcelabel"> |
| 462 | + <x>252</x> |
| 463 | + <y>165</y> |
| 464 | + </hint> |
| 465 | + <hint type="destinationlabel"> |
| 466 | + <x>208</x> |
| 467 | + <y>136</y> |
| 468 | + </hint> |
| 469 | + </hints> |
| 470 | + </connection> |
| 471 | + </connections> |
380 | 472 | </ui> |
0 commit comments