bec-widgets 0.118.0__py3-none-any.whl → 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. CHANGELOG.md +63 -67
  2. PKG-INFO +1 -1
  3. bec_widgets/applications/alignment/alignment_1d/alignment_1d.py +33 -89
  4. bec_widgets/applications/alignment/alignment_1d/alignment_1d.ui +413 -715
  5. bec_widgets/cli/client.py +22 -0
  6. bec_widgets/qt_utils/compact_popup.py +68 -23
  7. bec_widgets/utils/crosshair.py +11 -2
  8. bec_widgets/widgets/device_line_edit/device_line_edit.py +15 -1
  9. bec_widgets/widgets/figure/plots/waveform/waveform.py +15 -0
  10. bec_widgets/widgets/figure/plots/waveform/waveform_curve.py +3 -2
  11. bec_widgets/widgets/positioner_box/positioner_box.py +10 -4
  12. bec_widgets/widgets/positioner_group/__init__.py +0 -0
  13. bec_widgets/widgets/positioner_group/positioner_group.py +170 -0
  14. bec_widgets/widgets/positioner_group/positioner_group.pyproject +1 -0
  15. bec_widgets/widgets/positioner_group/positioner_group_plugin.py +57 -0
  16. bec_widgets/widgets/positioner_group/register_positioner_group.py +15 -0
  17. bec_widgets/widgets/scan_control/scan_control.py +74 -122
  18. bec_widgets/widgets/scan_control/scan_group_box.py +66 -11
  19. bec_widgets/widgets/stop_button/stop_button.py +1 -1
  20. bec_widgets/widgets/waveform/waveform_widget.py +10 -0
  21. {bec_widgets-0.118.0.dist-info → bec_widgets-1.0.0.dist-info}/METADATA +1 -1
  22. {bec_widgets-0.118.0.dist-info → bec_widgets-1.0.0.dist-info}/RECORD +26 -21
  23. pyproject.toml +1 -1
  24. {bec_widgets-0.118.0.dist-info → bec_widgets-1.0.0.dist-info}/WHEEL +0 -0
  25. {bec_widgets-0.118.0.dist-info → bec_widgets-1.0.0.dist-info}/entry_points.txt +0 -0
  26. {bec_widgets-0.118.0.dist-info → bec_widgets-1.0.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,284 +1,296 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <ui version="4.0">
3
- <class>Form</class>
4
- <widget class="QWidget" name="Form">
3
+ <class>mainWindow</class>
4
+ <widget class="QMainWindow" name="mainWindow">
5
5
  <property name="geometry">
6
6
  <rect>
7
7
  <x>0</x>
8
8
  <y>0</y>
9
- <width>1335</width>
10
- <height>939</height>
9
+ <width>1611</width>
10
+ <height>1019</height>
11
11
  </rect>
12
12
  </property>
13
13
  <property name="windowTitle">
14
- <string>Form</string>
14
+ <string>Alignment tool</string>
15
15
  </property>
16
- <layout class="QVBoxLayout" name="verticalLayout">
17
- <item>
18
- <layout class="QHBoxLayout" name="horizontalLayout_3" stretch="0,0,0,0,0,0,0,0,0,0,1">
19
- <item>
20
- <widget class="DarkModeButton" name="dark_mode_button"/>
21
- </item>
22
- <item>
23
- <spacer name="horizontalSpacer_6">
24
- <property name="orientation">
25
- <enum>Qt::Orientation::Horizontal</enum>
26
- </property>
27
- <property name="sizeHint" stdset="0">
28
- <size>
29
- <width>40</width>
30
- <height>20</height>
31
- </size>
32
- </property>
33
- </spacer>
34
- </item>
35
- <item>
36
- <widget class="BECStatusBox" name="bec_status_box">
37
- <property name="compact" stdset="0">
38
- <bool>true</bool>
39
- </property>
40
- <property name="label" stdset="0">
41
- <string>BEC Servers</string>
42
- </property>
43
- </widget>
44
- </item>
45
- <item>
46
- <spacer name="horizontalSpacer_4">
47
- <property name="orientation">
48
- <enum>Qt::Orientation::Horizontal</enum>
49
- </property>
50
- <property name="sizeHint" stdset="0">
51
- <size>
52
- <width>40</width>
53
- <height>20</height>
54
- </size>
55
- </property>
56
- </spacer>
57
- </item>
58
- <item>
59
- <widget class="BECQueue" name="bec_queue">
60
- <property name="compact" stdset="0">
61
- <bool>true</bool>
62
- </property>
63
- </widget>
64
- </item>
65
- <item>
66
- <spacer name="horizontalSpacer_3">
67
- <property name="orientation">
68
- <enum>Qt::Orientation::Horizontal</enum>
69
- </property>
70
- <property name="sizeHint" stdset="0">
71
- <size>
72
- <width>40</width>
73
- <height>20</height>
74
- </size>
75
- </property>
76
- </spacer>
77
- </item>
78
- <item>
79
- <widget class="QRadioButton" name="radioButton">
80
- <property name="enabled">
81
- <bool>false</bool>
82
- </property>
83
- <property name="text">
84
- <string>SLS Light On</string>
85
- </property>
86
- <property name="checkable">
87
- <bool>true</bool>
88
- </property>
89
- <property name="checked">
90
- <bool>true</bool>
91
- </property>
92
- <property name="autoExclusive">
93
- <bool>false</bool>
94
- </property>
95
- </widget>
96
- </item>
97
- <item>
98
- <spacer name="horizontalSpacer_5">
99
- <property name="orientation">
100
- <enum>Qt::Orientation::Horizontal</enum>
101
- </property>
102
- <property name="sizeHint" stdset="0">
103
- <size>
104
- <width>40</width>
105
- <height>20</height>
106
- </size>
107
- </property>
108
- </spacer>
109
- </item>
110
- <item>
111
- <widget class="QRadioButton" name="radioButton_3">
112
- <property name="enabled">
113
- <bool>false</bool>
114
- </property>
115
- <property name="text">
116
- <string>BEAMLINE Checks</string>
117
- </property>
118
- <property name="checkable">
119
- <bool>true</bool>
120
- </property>
121
- <property name="checked">
122
- <bool>true</bool>
123
- </property>
124
- <property name="autoExclusive">
125
- <bool>false</bool>
126
- </property>
127
- </widget>
128
- </item>
129
- <item>
130
- <spacer name="horizontalSpacer_7">
131
- <property name="orientation">
132
- <enum>Qt::Orientation::Horizontal</enum>
133
- </property>
134
- <property name="sizeHint" stdset="0">
135
- <size>
136
- <width>40</width>
137
- <height>20</height>
138
- </size>
139
- </property>
140
- </spacer>
141
- </item>
142
- <item>
143
- <widget class="StopButton" name="stop_button">
144
- <property name="sizePolicy">
145
- <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
146
- <horstretch>0</horstretch>
147
- <verstretch>0</verstretch>
148
- </sizepolicy>
149
- </property>
150
- <property name="minimumSize">
151
- <size>
152
- <width>200</width>
153
- <height>40</height>
154
- </size>
155
- </property>
156
- <property name="maximumSize">
157
- <size>
158
- <width>200</width>
159
- <height>40</height>
160
- </size>
161
- </property>
162
- </widget>
163
- </item>
164
- </layout>
165
- </item>
166
- <item>
167
- <layout class="QHBoxLayout" name="horizontalLayout" stretch="0">
168
- <item>
169
- <widget class="QTabWidget" name="tabWidget">
170
- <property name="sizePolicy">
171
- <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
172
- <horstretch>0</horstretch>
173
- <verstretch>0</verstretch>
174
- </sizepolicy>
175
- </property>
176
- <property name="currentIndex">
177
- <number>0</number>
178
- </property>
179
- <widget class="QWidget" name="ControlTab">
180
- <attribute name="title">
181
- <string>Alignment Control</string>
182
- </attribute>
183
- <layout class="QHBoxLayout" name="horizontalLayout_6" stretch="0,1,2">
184
- <property name="leftMargin">
185
- <number>2</number>
16
+ <widget class="QWidget" name="widget">
17
+ <layout class="QVBoxLayout" name="verticalLayout_2">
18
+ <item>
19
+ <widget class="QWidget" name="widget" native="true">
20
+ <property name="sizePolicy">
21
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
22
+ <horstretch>0</horstretch>
23
+ <verstretch>0</verstretch>
24
+ </sizepolicy>
25
+ </property>
26
+ <layout class="QHBoxLayout" name="horizontalLayout_5">
27
+ <item>
28
+ <widget class="DarkModeButton" name="dark_mode_button"/>
29
+ </item>
30
+ <item>
31
+ <spacer name="horizontalSpacer_6">
32
+ <property name="orientation">
33
+ <enum>Qt::Orientation::Horizontal</enum>
34
+ </property>
35
+ <property name="sizeHint" stdset="0">
36
+ <size>
37
+ <width>40</width>
38
+ <height>20</height>
39
+ </size>
40
+ </property>
41
+ </spacer>
42
+ </item>
43
+ <item>
44
+ <widget class="BECStatusBox" name="bec_status_box">
45
+ <property name="compact_view" stdset="0">
46
+ <bool>true</bool>
47
+ </property>
48
+ <property name="label" stdset="0">
49
+ <string>BEC Servers</string>
50
+ </property>
51
+ </widget>
52
+ </item>
53
+ <item>
54
+ <spacer name="horizontalSpacer_3">
55
+ <property name="orientation">
56
+ <enum>Qt::Orientation::Horizontal</enum>
57
+ </property>
58
+ <property name="sizeHint" stdset="0">
59
+ <size>
60
+ <width>40</width>
61
+ <height>20</height>
62
+ </size>
63
+ </property>
64
+ </spacer>
65
+ </item>
66
+ <item>
67
+ <widget class="BECQueue" name="bec_queue">
68
+ <property name="compact_view" stdset="0">
69
+ <bool>true</bool>
70
+ </property>
71
+ </widget>
72
+ </item>
73
+ <item>
74
+ <spacer name="horizontalSpacer_5">
75
+ <property name="orientation">
76
+ <enum>Qt::Orientation::Horizontal</enum>
77
+ </property>
78
+ <property name="sizeHint" stdset="0">
79
+ <size>
80
+ <width>40</width>
81
+ <height>20</height>
82
+ </size>
83
+ </property>
84
+ </spacer>
85
+ </item>
86
+ <item>
87
+ <widget class="QRadioButton" name="radioButton">
88
+ <property name="enabled">
89
+ <bool>false</bool>
90
+ </property>
91
+ <property name="text">
92
+ <string>SLS Light On</string>
186
93
  </property>
187
- <property name="topMargin">
188
- <number>2</number>
94
+ <property name="checkable">
95
+ <bool>true</bool>
189
96
  </property>
190
- <property name="rightMargin">
191
- <number>2</number>
97
+ <property name="checked">
98
+ <bool>true</bool>
192
99
  </property>
193
- <property name="bottomMargin">
194
- <number>2</number>
100
+ <property name="autoExclusive">
101
+ <bool>false</bool>
195
102
  </property>
196
- <item>
197
- <widget class="ScanControl" name="scan_control">
198
- <property name="minimumSize">
199
- <size>
200
- <width>0</width>
201
- <height>0</height>
202
- </size>
203
- </property>
204
- <property name="current_scan" stdset="0">
205
- <string>line_scan</string>
206
- </property>
207
- <property name="hide_arg_box" stdset="0">
208
- <bool>true</bool>
209
- </property>
210
- <property name="hide_kwarg_boxes" stdset="0">
211
- <bool>true</bool>
212
- </property>
213
- <property name="hide_scan_remember_toggle" stdset="0">
214
- <bool>true</bool>
215
- </property>
216
- <property name="hide_scan_control_buttons" stdset="0">
217
- <bool>true</bool>
218
- </property>
219
- <property name="hide_bundle_buttons" stdset="0">
220
- <bool>true</bool>
221
- </property>
222
- <property name="hide_args_group" stdset="0">
223
- <bool>true</bool>
224
- </property>
225
- <property name="hide_kwargs_group" stdset="0">
226
- <bool>false</bool>
227
- </property>
228
- </widget>
229
- </item>
230
- <item>
231
- <layout class="QVBoxLayout" name="control_layout" stretch="0,0,2">
103
+ </widget>
104
+ </item>
105
+ <item>
106
+ <spacer name="horizontalSpacer_7">
107
+ <property name="orientation">
108
+ <enum>Qt::Orientation::Horizontal</enum>
109
+ </property>
110
+ <property name="sizeHint" stdset="0">
111
+ <size>
112
+ <width>40</width>
113
+ <height>20</height>
114
+ </size>
115
+ </property>
116
+ </spacer>
117
+ </item>
118
+ <item>
119
+ <widget class="QRadioButton" name="radioButton_3">
120
+ <property name="enabled">
121
+ <bool>false</bool>
122
+ </property>
123
+ <property name="text">
124
+ <string>BEAMLINE Checks</string>
125
+ </property>
126
+ <property name="checkable">
127
+ <bool>true</bool>
128
+ </property>
129
+ <property name="checked">
130
+ <bool>true</bool>
131
+ </property>
132
+ <property name="autoExclusive">
133
+ <bool>false</bool>
134
+ </property>
135
+ </widget>
136
+ </item>
137
+ <item>
138
+ <spacer name="horizontalSpacer_4">
139
+ <property name="orientation">
140
+ <enum>Qt::Orientation::Horizontal</enum>
141
+ </property>
142
+ <property name="sizeHint" stdset="0">
143
+ <size>
144
+ <width>40</width>
145
+ <height>20</height>
146
+ </size>
147
+ </property>
148
+ </spacer>
149
+ </item>
150
+ <item>
151
+ <widget class="StopButton" name="stop_button">
152
+ <property name="sizePolicy">
153
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
154
+ <horstretch>0</horstretch>
155
+ <verstretch>0</verstretch>
156
+ </sizepolicy>
157
+ </property>
158
+ <property name="minimumSize">
159
+ <size>
160
+ <width>200</width>
161
+ <height>40</height>
162
+ </size>
163
+ </property>
164
+ <property name="maximumSize">
165
+ <size>
166
+ <width>200</width>
167
+ <height>40</height>
168
+ </size>
169
+ </property>
170
+ </widget>
171
+ </item>
172
+ </layout>
173
+ </widget>
174
+ </item>
175
+ <item>
176
+ <widget class="BECProgressBar" name="bec_progress_bar">
177
+ <property name="minimumSize">
178
+ <size>
179
+ <width>0</width>
180
+ <height>25</height>
181
+ </size>
182
+ </property>
183
+ <property name="maximumSize">
184
+ <size>
185
+ <width>16777215</width>
186
+ <height>25</height>
187
+ </size>
188
+ </property>
189
+ </widget>
190
+ </item>
191
+ <item>
192
+ <widget class="QTabWidget" name="tabWidget">
193
+ <property name="sizePolicy">
194
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
195
+ <horstretch>0</horstretch>
196
+ <verstretch>0</verstretch>
197
+ </sizepolicy>
198
+ </property>
199
+ <property name="currentIndex">
200
+ <number>0</number>
201
+ </property>
202
+ <widget class="QWidget" name="ControlTab">
203
+ <attribute name="title">
204
+ <string>Alignment Control</string>
205
+ </attribute>
206
+ <layout class="QHBoxLayout" name="horizontalLayout_6">
207
+ <item>
208
+ <widget class="QWidget" name="widget_4" native="true">
209
+ <property name="sizePolicy">
210
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
211
+ <horstretch>1</horstretch>
212
+ <verstretch>0</verstretch>
213
+ </sizepolicy>
214
+ </property>
215
+ <layout class="QVBoxLayout" name="verticalLayout_3">
232
216
  <item>
233
- <widget class="QGroupBox" name="device_box">
217
+ <widget class="ScanControl" name="scan_control">
218
+ <property name="sizePolicy">
219
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
220
+ <horstretch>1</horstretch>
221
+ <verstretch>0</verstretch>
222
+ </sizepolicy>
223
+ </property>
234
224
  <property name="minimumSize">
235
225
  <size>
236
- <width>450</width>
237
- <height>95</height>
226
+ <width>0</width>
227
+ <height>0</height>
238
228
  </size>
239
229
  </property>
240
- <property name="maximumSize">
241
- <size>
242
- <width>450</width>
243
- <height>16777215</height>
244
- </size>
230
+ <property name="current_scan" stdset="0">
231
+ <string>line_scan</string>
245
232
  </property>
246
- <property name="font">
247
- <font>
248
- <pointsize>15</pointsize>
249
- <bold>true</bold>
250
- </font>
233
+ <property name="hide_arg_box" stdset="0">
234
+ <bool>false</bool>
251
235
  </property>
252
- <property name="autoFillBackground">
236
+ <property name="hide_kwarg_boxes" stdset="0">
253
237
  <bool>false</bool>
254
238
  </property>
255
- <property name="title">
256
- <string>Devices</string>
239
+ <property name="hide_scan_control_buttons" stdset="0">
240
+ <bool>false</bool>
257
241
  </property>
258
- <layout class="QGridLayout" name="gridLayout" rowstretch="0,0" columnstretch="0,0,0">
259
- <property name="leftMargin">
260
- <number>8</number>
261
- </property>
262
- <property name="topMargin">
263
- <number>8</number>
264
- </property>
265
- <property name="rightMargin">
266
- <number>8</number>
267
- </property>
268
- <property name="bottomMargin">
269
- <number>8</number>
270
- </property>
271
- <item row="0" column="0">
272
- <widget class="QLabel" name="label">
273
- <property name="font">
274
- <font/>
275
- </property>
276
- <property name="text">
277
- <string>Motor</string>
278
- </property>
279
- </widget>
280
- </item>
281
- <item row="0" column="1">
242
+ <property name="hide_scan_selection_combobox" stdset="0">
243
+ <bool>true</bool>
244
+ </property>
245
+ <property name="hide_add_remove_buttons" stdset="0">
246
+ <bool>true</bool>
247
+ </property>
248
+ <property name="hide_args_group" stdset="0">
249
+ <bool>false</bool>
250
+ </property>
251
+ <property name="hide_kwargs_group" stdset="0">
252
+ <bool>false</bool>
253
+ </property>
254
+ </widget>
255
+ </item>
256
+ <item>
257
+ <widget class="PositionerGroup" name="positioner_group"/>
258
+ </item>
259
+ <item>
260
+ <spacer name="verticalSpacer">
261
+ <property name="orientation">
262
+ <enum>Qt::Orientation::Vertical</enum>
263
+ </property>
264
+ <property name="sizeHint" stdset="0">
265
+ <size>
266
+ <width>20</width>
267
+ <height>40</height>
268
+ </size>
269
+ </property>
270
+ </spacer>
271
+ </item>
272
+ </layout>
273
+ </widget>
274
+ </item>
275
+ <item>
276
+ <widget class="QWidget" name="widget_3" native="true">
277
+ <property name="sizePolicy">
278
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
279
+ <horstretch>4</horstretch>
280
+ <verstretch>0</verstretch>
281
+ </sizepolicy>
282
+ </property>
283
+ <layout class="QVBoxLayout" name="verticalLayout">
284
+ <item>
285
+ <widget class="QWidget" name="widget_2" native="true">
286
+ <property name="sizePolicy">
287
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
288
+ <horstretch>0</horstretch>
289
+ <verstretch>0</verstretch>
290
+ </sizepolicy>
291
+ </property>
292
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
293
+ <item>
282
294
  <widget class="QLabel" name="label_2">
283
295
  <property name="font">
284
296
  <font/>
@@ -288,7 +300,10 @@
288
300
  </property>
289
301
  </widget>
290
302
  </item>
291
- <item row="0" column="2">
303
+ <item>
304
+ <widget class="DeviceComboBox" name="device_combobox_2"/>
305
+ </item>
306
+ <item>
292
307
  <widget class="QLabel" name="label_3">
293
308
  <property name="font">
294
309
  <font/>
@@ -298,291 +313,59 @@
298
313
  </property>
299
314
  </widget>
300
315
  </item>
301
- <item row="1" column="0">
302
- <widget class="DeviceComboBox" name="device_combobox"/>
316
+ <item>
317
+ <widget class="DapComboBox" name="dap_combo_box"/>
303
318
  </item>
304
- <item row="1" column="1">
305
- <widget class="DeviceComboBox" name="device_combobox_2"/>
319
+ <item>
320
+ <widget class="QLabel" name="label">
321
+ <property name="text">
322
+ <string>Enable ROI</string>
323
+ </property>
324
+ </widget>
306
325
  </item>
307
- <item row="1" column="2">
308
- <widget class="DapComboBox" name="dap_combo_box"/>
326
+ <item>
327
+ <widget class="ToggleSwitch" name="toggle_switch">
328
+ <property name="sizePolicy">
329
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
330
+ <horstretch>3</horstretch>
331
+ <verstretch>0</verstretch>
332
+ </sizepolicy>
333
+ </property>
334
+ <property name="toolTip">
335
+ <string>Activate linear region select for LMFit</string>
336
+ </property>
337
+ <property name="layoutDirection">
338
+ <enum>Qt::LayoutDirection::LeftToRight</enum>
339
+ </property>
340
+ <property name="checked" stdset="0">
341
+ <bool>false</bool>
342
+ </property>
343
+ </widget>
344
+ </item>
345
+ <item>
346
+ <spacer name="horizontalSpacer_8">
347
+ <property name="orientation">
348
+ <enum>Qt::Orientation::Horizontal</enum>
349
+ </property>
350
+ <property name="sizeHint" stdset="0">
351
+ <size>
352
+ <width>40</width>
353
+ <height>20</height>
354
+ </size>
355
+ </property>
356
+ </spacer>
309
357
  </item>
310
358
  </layout>
311
359
  </widget>
312
360
  </item>
313
- <item>
314
- <widget class="QTabWidget" name="tabWidget_2">
315
- <property name="minimumSize">
316
- <size>
317
- <width>450</width>
318
- <height>343</height>
319
- </size>
320
- </property>
321
- <property name="maximumSize">
322
- <size>
323
- <width>450</width>
324
- <height>16777215</height>
325
- </size>
326
- </property>
327
- <property name="currentIndex">
328
- <number>0</number>
329
- </property>
330
- <widget class="QWidget" name="scan_control_tab">
331
- <attribute name="title">
332
- <string>LineScan</string>
333
- </attribute>
334
- <layout class="QGridLayout" name="gridLayout_2">
335
- <item row="2" column="0">
336
- <widget class="QLabel" name="label_10">
337
- <property name="font">
338
- <font>
339
- <bold>false</bold>
340
- </font>
341
- </property>
342
- <property name="text">
343
- <string>Relative</string>
344
- </property>
345
- </widget>
346
- </item>
347
- <item row="1" column="0">
348
- <widget class="QDoubleSpinBox" name="linescan_start">
349
- <property name="decimals">
350
- <number>3</number>
351
- </property>
352
- <property name="minimum">
353
- <double>-10000000.000000000000000</double>
354
- </property>
355
- <property name="maximum">
356
- <double>10000000.000000000000000</double>
357
- </property>
358
- <property name="value">
359
- <double>0.000000000000000</double>
360
- </property>
361
- </widget>
362
- </item>
363
- <item row="2" column="1">
364
- <widget class="QLabel" name="label_11">
365
- <property name="font">
366
- <font>
367
- <bold>false</bold>
368
- </font>
369
- </property>
370
- <property name="text">
371
- <string>Exposure Time</string>
372
- </property>
373
- </widget>
374
- </item>
375
- <item row="0" column="0">
376
- <widget class="QLabel" name="label_7">
377
- <property name="font">
378
- <font>
379
- <bold>false</bold>
380
- </font>
381
- </property>
382
- <property name="text">
383
- <string>Start</string>
384
- </property>
385
- </widget>
386
- </item>
387
- <item row="2" column="3">
388
- <widget class="QLabel" name="label_12">
389
- <property name="font">
390
- <font>
391
- <bold>false</bold>
392
- </font>
393
- </property>
394
- <property name="text">
395
- <string>Burst at each point</string>
396
- </property>
397
- </widget>
398
- </item>
399
- <item row="3" column="0">
400
- <widget class="QCheckBox" name="linescan_relative">
401
- <property name="text">
402
- <string/>
403
- </property>
404
- </widget>
405
- </item>
406
- <item row="0" column="1" colspan="2">
407
- <widget class="QLabel" name="label_8">
408
- <property name="font">
409
- <font>
410
- <bold>false</bold>
411
- </font>
412
- </property>
413
- <property name="text">
414
- <string>Stop</string>
415
- </property>
416
- </widget>
417
- </item>
418
- <item row="1" column="3">
419
- <widget class="QSpinBox" name="linescan_step">
420
- <property name="minimum">
421
- <number>0</number>
422
- </property>
423
- <property name="maximum">
424
- <number>10000000</number>
425
- </property>
426
- <property name="value">
427
- <number>0</number>
428
- </property>
429
- </widget>
430
- </item>
431
- <item row="5" column="0" colspan="4">
432
- <widget class="QPushButton" name="scan_button">
433
- <property name="minimumSize">
434
- <size>
435
- <width>0</width>
436
- <height>40</height>
437
- </size>
438
- </property>
439
- <property name="font">
440
- <font/>
441
- </property>
442
- <property name="text">
443
- <string>Run Scan</string>
444
- </property>
445
- <property name="autoDefault">
446
- <bool>false</bool>
447
- </property>
448
- <property name="default">
449
- <bool>false</bool>
450
- </property>
451
- </widget>
452
- </item>
453
- <item row="1" column="1" colspan="2">
454
- <widget class="QDoubleSpinBox" name="linescan_stop">
455
- <property name="decimals">
456
- <number>3</number>
457
- </property>
458
- <property name="minimum">
459
- <double>-10000000.000000000000000</double>
460
- </property>
461
- <property name="maximum">
462
- <double>10000000.000000000000000</double>
463
- </property>
464
- <property name="value">
465
- <double>0.000000000000000</double>
466
- </property>
467
- </widget>
468
- </item>
469
- <item row="3" column="3">
470
- <widget class="QSpinBox" name="linescan_step_2">
471
- <property name="minimum">
472
- <number>1</number>
473
- </property>
474
- <property name="maximum">
475
- <number>10000000</number>
476
- </property>
477
- <property name="value">
478
- <number>1</number>
479
- </property>
480
- </widget>
481
- </item>
482
- <item row="0" column="3">
483
- <widget class="QLabel" name="label_9">
484
- <property name="font">
485
- <font>
486
- <bold>false</bold>
487
- </font>
488
- </property>
489
- <property name="text">
490
- <string>Steps</string>
491
- </property>
492
- </widget>
493
- </item>
494
- <item row="3" column="1">
495
- <widget class="QDoubleSpinBox" name="linescan_exp_time">
496
- <property name="decimals">
497
- <number>3</number>
498
- </property>
499
- <property name="minimum">
500
- <double>-10000000.000000000000000</double>
501
- </property>
502
- <property name="maximum">
503
- <double>10000000.000000000000000</double>
504
- </property>
505
- <property name="value">
506
- <double>0.000000000000000</double>
507
- </property>
508
- </widget>
509
- </item>
510
- <item row="4" column="1">
511
- <spacer name="verticalSpacer_2">
512
- <property name="orientation">
513
- <enum>Qt::Orientation::Vertical</enum>
514
- </property>
515
- <property name="sizeHint" stdset="0">
516
- <size>
517
- <width>20</width>
518
- <height>40</height>
519
- </size>
520
- </property>
521
- </spacer>
522
- </item>
523
- </layout>
524
- </widget>
525
- <widget class="QWidget" name="tweak_tab">
526
- <attribute name="title">
527
- <string>MotorTweak</string>
528
- </attribute>
529
- <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,0,0">
530
- <item>
531
- <spacer name="horizontalSpacer_2">
532
- <property name="orientation">
533
- <enum>Qt::Orientation::Horizontal</enum>
534
- </property>
535
- <property name="sizeHint" stdset="0">
536
- <size>
537
- <width>40</width>
538
- <height>20</height>
539
- </size>
540
- </property>
541
- </spacer>
542
- </item>
543
- <item>
544
- <widget class="PositionerBox" name="positioner_box">
545
- <property name="hide_device_selection" stdset="0">
546
- <bool>true</bool>
547
- </property>
548
- </widget>
549
- </item>
550
- <item>
551
- <spacer name="horizontalSpacer">
552
- <property name="orientation">
553
- <enum>Qt::Orientation::Horizontal</enum>
554
- </property>
555
- <property name="sizeHint" stdset="0">
556
- <size>
557
- <width>40</width>
558
- <height>20</height>
559
- </size>
560
- </property>
561
- </spacer>
562
- </item>
563
- </layout>
564
- </widget>
565
- </widget>
566
- </item>
567
- <item>
568
- <spacer name="verticalSpacer">
569
- <property name="orientation">
570
- <enum>Qt::Orientation::Vertical</enum>
571
- </property>
572
- <property name="sizeHint" stdset="0">
573
- <size>
574
- <width>20</width>
575
- <height>40</height>
576
- </size>
577
- </property>
578
- </spacer>
579
- </item>
580
- </layout>
581
- </item>
582
- <item>
583
- <layout class="QVBoxLayout" name="plotting_layout" stretch="7,0,2">
584
361
  <item>
585
362
  <widget class="BECWaveformWidget" name="bec_waveform_widget">
363
+ <property name="sizePolicy">
364
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
365
+ <horstretch>0</horstretch>
366
+ <verstretch>1</verstretch>
367
+ </sizepolicy>
368
+ </property>
586
369
  <property name="minimumSize">
587
370
  <size>
588
371
  <width>600</width>
@@ -595,104 +378,65 @@
595
378
  </widget>
596
379
  </item>
597
380
  <item>
598
- <widget class="ToggleSwitch" name="toggle_switch">
381
+ <widget class="LMFitDialog" name="lm_fit_dialog">
599
382
  <property name="sizePolicy">
600
- <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
601
- <horstretch>3</horstretch>
383
+ <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
384
+ <horstretch>0</horstretch>
602
385
  <verstretch>0</verstretch>
603
386
  </sizepolicy>
604
387
  </property>
605
- <property name="toolTip">
606
- <string>Activate linear region select for LMFit</string>
388
+ <property name="minimumSize">
389
+ <size>
390
+ <width>0</width>
391
+ <height>190</height>
392
+ </size>
607
393
  </property>
608
- <property name="layoutDirection">
609
- <enum>Qt::LayoutDirection::LeftToRight</enum>
394
+ <property name="always_show_latest" stdset="0">
395
+ <bool>true</bool>
610
396
  </property>
611
- <property name="checked" stdset="0">
612
- <bool>false</bool>
397
+ <property name="hide_curve_selection" stdset="0">
398
+ <bool>true</bool>
399
+ </property>
400
+ <property name="hide_summary" stdset="0">
401
+ <bool>true</bool>
613
402
  </property>
614
403
  </widget>
615
404
  </item>
616
- <item>
617
- <layout class="QHBoxLayout" name="fit_dialog_layout" stretch="4">
618
- <item>
619
- <widget class="LMFitDialog" name="lm_fit_dialog">
620
- <property name="sizePolicy">
621
- <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
622
- <horstretch>0</horstretch>
623
- <verstretch>0</verstretch>
624
- </sizepolicy>
625
- </property>
626
- <property name="minimumSize">
627
- <size>
628
- <width>0</width>
629
- <height>190</height>
630
- </size>
631
- </property>
632
- <property name="always_show_latest" stdset="0">
633
- <bool>true</bool>
634
- </property>
635
- <property name="hide_curve_selection" stdset="0">
636
- <bool>true</bool>
637
- </property>
638
- <property name="hide_summary" stdset="0">
639
- <bool>true</bool>
640
- </property>
641
- </widget>
642
- </item>
643
- </layout>
644
- </item>
645
405
  </layout>
646
- </item>
647
- </layout>
648
- </widget>
649
- <widget class="QWidget" name="tab_2">
650
- <attribute name="title">
651
- <string>Logbook</string>
652
- </attribute>
653
- <layout class="QHBoxLayout" name="horizontalLayout_4">
654
- <property name="leftMargin">
655
- <number>2</number>
656
- </property>
657
- <property name="topMargin">
658
- <number>2</number>
659
- </property>
660
- <property name="rightMargin">
661
- <number>2</number>
662
- </property>
663
- <property name="bottomMargin">
664
- <number>2</number>
665
- </property>
666
- <item>
667
- <widget class="WebsiteWidget" name="website_widget">
668
- <property name="url" stdset="0">
669
- <string>https://scilog.psi.ch/login</string>
670
- </property>
671
- </widget>
672
- </item>
673
- </layout>
674
- </widget>
406
+ </widget>
407
+ </item>
408
+ </layout>
675
409
  </widget>
676
- </item>
677
- </layout>
678
- </item>
679
- <item>
680
- <widget class="BECProgressBar" name="bec_progress_bar">
681
- <property name="minimumSize">
682
- <size>
683
- <width>0</width>
684
- <height>25</height>
685
- </size>
686
- </property>
687
- <property name="maximumSize">
688
- <size>
689
- <width>16777215</width>
690
- <height>25</height>
691
- </size>
692
- </property>
693
- </widget>
694
- </item>
695
- </layout>
410
+ <widget class="QWidget" name="tab_2">
411
+ <attribute name="title">
412
+ <string>Logbook</string>
413
+ </attribute>
414
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
415
+ <property name="leftMargin">
416
+ <number>2</number>
417
+ </property>
418
+ <property name="topMargin">
419
+ <number>2</number>
420
+ </property>
421
+ <property name="rightMargin">
422
+ <number>2</number>
423
+ </property>
424
+ <property name="bottomMargin">
425
+ <number>2</number>
426
+ </property>
427
+ <item>
428
+ <widget class="WebsiteWidget" name="website_widget">
429
+ <property name="url" stdset="0">
430
+ <string>https://scilog.psi.ch/login</string>
431
+ </property>
432
+ </widget>
433
+ </item>
434
+ </layout>
435
+ </widget>
436
+ </widget>
437
+ </item>
438
+ </layout>
439
+ </widget>
696
440
  </widget>
697
441
  <customwidgets>
698
442
  <customwidget>
@@ -725,6 +469,11 @@
725
469
  <extends>QWidget</extends>
726
470
  <header>lm_fit_dialog</header>
727
471
  </customwidget>
472
+ <customwidget>
473
+ <class>PositionerGroup</class>
474
+ <extends>QWidget</extends>
475
+ <header>positioner_group</header>
476
+ </customwidget>
728
477
  <customwidget>
729
478
  <class>ScanControl</class>
730
479
  <extends>QWidget</extends>
@@ -755,90 +504,9 @@
755
504
  <extends>QWidget</extends>
756
505
  <header>dap_combo_box</header>
757
506
  </customwidget>
758
- <customwidget>
759
- <class>PositionerBox</class>
760
- <extends>QWidget</extends>
761
- <header>positioner_box</header>
762
- </customwidget>
763
507
  </customwidgets>
764
- <tabstops>
765
- <tabstop>device_combobox</tabstop>
766
- <tabstop>device_combobox_2</tabstop>
767
- <tabstop>tabWidget_2</tabstop>
768
- <tabstop>linescan_start</tabstop>
769
- <tabstop>linescan_stop</tabstop>
770
- <tabstop>linescan_step</tabstop>
771
- <tabstop>linescan_relative</tabstop>
772
- <tabstop>linescan_exp_time</tabstop>
773
- <tabstop>linescan_step_2</tabstop>
774
- <tabstop>scan_button</tabstop>
775
- </tabstops>
776
508
  <resources/>
777
509
  <connections>
778
- <connection>
779
- <sender>device_combobox_2</sender>
780
- <signal>currentTextChanged(QString)</signal>
781
- <receiver>dap_combo_box</receiver>
782
- <slot>select_y_axis(QString)</slot>
783
- <hints>
784
- <hint type="sourcelabel">
785
- <x>297</x>
786
- <y>170</y>
787
- </hint>
788
- <hint type="destinationlabel">
789
- <x>467</x>
790
- <y>170</y>
791
- </hint>
792
- </hints>
793
- </connection>
794
- <connection>
795
- <sender>dap_combo_box</sender>
796
- <signal>new_dap_config(QString,QString,QString)</signal>
797
- <receiver>bec_waveform_widget</receiver>
798
- <slot>add_dap(QString,QString,QString)</slot>
799
- <hints>
800
- <hint type="sourcelabel">
801
- <x>467</x>
802
- <y>170</y>
803
- </hint>
804
- <hint type="destinationlabel">
805
- <x>1099</x>
806
- <y>221</y>
807
- </hint>
808
- </hints>
809
- </connection>
810
- <connection>
811
- <sender>scan_button</sender>
812
- <signal>clicked()</signal>
813
- <receiver>scan_control</receiver>
814
- <slot>run_scan()</slot>
815
- <hints>
816
- <hint type="sourcelabel">
817
- <x>455</x>
818
- <y>511</y>
819
- </hint>
820
- <hint type="destinationlabel">
821
- <x>16</x>
822
- <y>441</y>
823
- </hint>
824
- </hints>
825
- </connection>
826
- <connection>
827
- <sender>device_combobox_2</sender>
828
- <signal>currentTextChanged(QString)</signal>
829
- <receiver>bec_waveform_widget</receiver>
830
- <slot>plot(QString)</slot>
831
- <hints>
832
- <hint type="sourcelabel">
833
- <x>297</x>
834
- <y>170</y>
835
- </hint>
836
- <hint type="destinationlabel">
837
- <x>1099</x>
838
- <y>201</y>
839
- </hint>
840
- </hints>
841
- </connection>
842
510
  <connection>
843
511
  <sender>toggle_switch</sender>
844
512
  <signal>enabled(bool)</signal>
@@ -872,27 +540,26 @@
872
540
  </hints>
873
541
  </connection>
874
542
  <connection>
875
- <sender>device_combobox</sender>
543
+ <sender>device_combobox_2</sender>
876
544
  <signal>currentTextChanged(QString)</signal>
877
- <receiver>positioner_box</receiver>
878
- <slot>set_positioner(QString)</slot>
545
+ <receiver>bec_waveform_widget</receiver>
546
+ <slot>plot(QString)</slot>
879
547
  <hints>
880
548
  <hint type="sourcelabel">
881
- <x>109</x>
882
- <y>155</y>
549
+ <x>297</x>
550
+ <y>170</y>
883
551
  </hint>
884
552
  <hint type="destinationlabel">
885
- <x>160</x>
886
- <y>286</y>
553
+ <x>1099</x>
554
+ <y>201</y>
887
555
  </hint>
888
556
  </hints>
889
557
  </connection>
890
- <!--
891
558
  <connection>
892
- <sender>device_combobox</sender>
559
+ <sender>device_combobox_2</sender>
893
560
  <signal>currentTextChanged(QString)</signal>
894
- <receiver>bec_waveform_widget</receiver>
895
- <slot>set_x(QString)</slot>
561
+ <receiver>dap_combo_box</receiver>
562
+ <slot>select_y_axis(QString)</slot>
896
563
  <hints>
897
564
  <hint type="sourcelabel">
898
565
  <x>297</x>
@@ -904,7 +571,22 @@
904
571
  </hint>
905
572
  </hints>
906
573
  </connection>
907
- -->
574
+ <connection>
575
+ <sender>dap_combo_box</sender>
576
+ <signal>new_dap_config(QString,QString,QString)</signal>
577
+ <receiver>bec_waveform_widget</receiver>
578
+ <slot>add_dap(QString,QString,QString)</slot>
579
+ <hints>
580
+ <hint type="sourcelabel">
581
+ <x>467</x>
582
+ <y>170</y>
583
+ </hint>
584
+ <hint type="destinationlabel">
585
+ <x>1099</x>
586
+ <y>221</y>
587
+ </hint>
588
+ </hints>
589
+ </connection>
908
590
  <connection>
909
591
  <sender>scan_control</sender>
910
592
  <signal>scan_axis(QString,double,double)</signal>
@@ -937,5 +619,21 @@
937
619
  </hint>
938
620
  </hints>
939
621
  </connection>
622
+ <connection>
623
+ <sender>scan_control</sender>
624
+ <signal>device_selected(QString)</signal>
625
+ <receiver>positioner_group</receiver>
626
+ <slot>set_positioners(QString)</slot>
627
+ <hints>
628
+ <hint type="sourcelabel">
629
+ <x>227</x>
630
+ <y>337</y>
631
+ </hint>
632
+ <hint type="destinationlabel">
633
+ <x>227</x>
634
+ <y>676</y>
635
+ </hint>
636
+ </hints>
637
+ </connection>
940
638
  </connections>
941
639
  </ui>