biosignal-device-interface 0.1.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.
- biosignal_device_interface/__init__.py +4 -0
- biosignal_device_interface/constants/__init__.py +0 -0
- biosignal_device_interface/constants/devices/__init__.py +0 -0
- biosignal_device_interface/constants/devices/core/base_device_constants.py +51 -0
- biosignal_device_interface/constants/devices/otb/otb_muovi_constants.py +129 -0
- biosignal_device_interface/constants/devices/otb/otb_quattrocento_constants.py +59 -0
- biosignal_device_interface/constants/plots/color_palette.py +59 -0
- biosignal_device_interface/devices/__init__.py +9 -0
- biosignal_device_interface/devices/core/__init__.py +0 -0
- biosignal_device_interface/devices/core/base_device.py +413 -0
- biosignal_device_interface/devices/otb/__init__.py +9 -0
- biosignal_device_interface/devices/otb/otb_muovi.py +291 -0
- biosignal_device_interface/devices/otb/otb_quattrocento.py +235 -0
- biosignal_device_interface/gui/device_template_widgets/__init__.py +6 -0
- biosignal_device_interface/gui/device_template_widgets/all_devices_widget.py +39 -0
- biosignal_device_interface/gui/device_template_widgets/core/base_device_widget.py +121 -0
- biosignal_device_interface/gui/device_template_widgets/core/base_multiple_devices_widget.py +105 -0
- biosignal_device_interface/gui/device_template_widgets/otb/__init__.py +10 -0
- biosignal_device_interface/gui/device_template_widgets/otb/otb_devices_widget.py +32 -0
- biosignal_device_interface/gui/device_template_widgets/otb/otb_muovi_plus_widget.py +158 -0
- biosignal_device_interface/gui/device_template_widgets/otb/otb_muovi_widget.py +158 -0
- biosignal_device_interface/gui/device_template_widgets/otb/otb_quattrocento_light_widget.py +170 -0
- biosignal_device_interface/gui/plot_widgets/biosignal_plot_widget.py +496 -0
- biosignal_device_interface/gui/ui/devices_template_widget.ui +38 -0
- biosignal_device_interface/gui/ui/otb_muovi_plus_template_widget.ui +171 -0
- biosignal_device_interface/gui/ui/otb_muovi_template_widget.ui +171 -0
- biosignal_device_interface/gui/ui/otb_quattrocento_light_template_widget.ui +266 -0
- biosignal_device_interface/gui/ui_compiled/devices_template_widget.py +56 -0
- biosignal_device_interface/gui/ui_compiled/otb_muovi_plus_template_widget.py +153 -0
- biosignal_device_interface/gui/ui_compiled/otb_muovi_template_widget.py +153 -0
- biosignal_device_interface/gui/ui_compiled/otb_quattrocento_light_template_widget.py +217 -0
- biosignal_device_interface-0.1.0.dist-info/LICENSE +395 -0
- biosignal_device_interface-0.1.0.dist-info/METADATA +138 -0
- biosignal_device_interface-0.1.0.dist-info/RECORD +35 -0
- biosignal_device_interface-0.1.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<ui version="4.0">
|
|
3
|
+
<class>MuoviForm</class>
|
|
4
|
+
<widget class="QWidget" name="MuoviForm">
|
|
5
|
+
<property name="geometry">
|
|
6
|
+
<rect>
|
|
7
|
+
<x>0</x>
|
|
8
|
+
<y>0</y>
|
|
9
|
+
<width>400</width>
|
|
10
|
+
<height>324</height>
|
|
11
|
+
</rect>
|
|
12
|
+
</property>
|
|
13
|
+
<property name="windowTitle">
|
|
14
|
+
<string>MuoviForm</string>
|
|
15
|
+
</property>
|
|
16
|
+
<layout class="QGridLayout" name="gridLayout">
|
|
17
|
+
<item row="4" column="0">
|
|
18
|
+
<spacer name="verticalSpacer">
|
|
19
|
+
<property name="orientation">
|
|
20
|
+
<enum>Qt::Vertical</enum>
|
|
21
|
+
</property>
|
|
22
|
+
<property name="sizeHint" stdset="0">
|
|
23
|
+
<size>
|
|
24
|
+
<width>20</width>
|
|
25
|
+
<height>86</height>
|
|
26
|
+
</size>
|
|
27
|
+
</property>
|
|
28
|
+
</spacer>
|
|
29
|
+
</item>
|
|
30
|
+
<item row="0" column="0" colspan="2">
|
|
31
|
+
<widget class="QGroupBox" name="connectionGroupBox">
|
|
32
|
+
<property name="title">
|
|
33
|
+
<string>Connection parameters</string>
|
|
34
|
+
</property>
|
|
35
|
+
<layout class="QGridLayout" name="gridLayout_7">
|
|
36
|
+
<item row="1" column="1">
|
|
37
|
+
<widget class="QLabel" name="connectionPortLabel">
|
|
38
|
+
<property name="text">
|
|
39
|
+
<string>54321</string>
|
|
40
|
+
</property>
|
|
41
|
+
</widget>
|
|
42
|
+
</item>
|
|
43
|
+
<item row="1" column="0">
|
|
44
|
+
<widget class="QLabel" name="label_7">
|
|
45
|
+
<property name="text">
|
|
46
|
+
<string>Port</string>
|
|
47
|
+
</property>
|
|
48
|
+
</widget>
|
|
49
|
+
</item>
|
|
50
|
+
<item row="0" column="0">
|
|
51
|
+
<widget class="QLabel" name="label_6">
|
|
52
|
+
<property name="text">
|
|
53
|
+
<string>IP</string>
|
|
54
|
+
</property>
|
|
55
|
+
</widget>
|
|
56
|
+
</item>
|
|
57
|
+
<item row="0" column="2">
|
|
58
|
+
<widget class="QPushButton" name="connectionUpdatePushButton">
|
|
59
|
+
<property name="text">
|
|
60
|
+
<string>Update</string>
|
|
61
|
+
</property>
|
|
62
|
+
</widget>
|
|
63
|
+
</item>
|
|
64
|
+
<item row="0" column="1">
|
|
65
|
+
<widget class="QComboBox" name="connectionIPComboBox"/>
|
|
66
|
+
</item>
|
|
67
|
+
</layout>
|
|
68
|
+
</widget>
|
|
69
|
+
</item>
|
|
70
|
+
<item row="2" column="0" rowspan="2" colspan="2">
|
|
71
|
+
<widget class="QGroupBox" name="commandsGroupBox">
|
|
72
|
+
<property name="title">
|
|
73
|
+
<string>Commands</string>
|
|
74
|
+
</property>
|
|
75
|
+
<layout class="QGridLayout" name="gridLayout_3">
|
|
76
|
+
<item row="0" column="0">
|
|
77
|
+
<widget class="QPushButton" name="commandConnectionPushButton">
|
|
78
|
+
<property name="text">
|
|
79
|
+
<string>Connect</string>
|
|
80
|
+
</property>
|
|
81
|
+
</widget>
|
|
82
|
+
</item>
|
|
83
|
+
<item row="1" column="0">
|
|
84
|
+
<widget class="QPushButton" name="commandConfigurationPushButton">
|
|
85
|
+
<property name="text">
|
|
86
|
+
<string>Configure</string>
|
|
87
|
+
</property>
|
|
88
|
+
</widget>
|
|
89
|
+
</item>
|
|
90
|
+
<item row="2" column="0">
|
|
91
|
+
<widget class="QPushButton" name="commandStreamPushButton">
|
|
92
|
+
<property name="text">
|
|
93
|
+
<string>Stream</string>
|
|
94
|
+
</property>
|
|
95
|
+
</widget>
|
|
96
|
+
</item>
|
|
97
|
+
</layout>
|
|
98
|
+
</widget>
|
|
99
|
+
</item>
|
|
100
|
+
<item row="1" column="0" colspan="2">
|
|
101
|
+
<widget class="QGroupBox" name="inputGroupBox">
|
|
102
|
+
<property name="title">
|
|
103
|
+
<string>Input Parameters</string>
|
|
104
|
+
</property>
|
|
105
|
+
<layout class="QGridLayout" name="gridLayout_4">
|
|
106
|
+
<item row="1" column="1">
|
|
107
|
+
<widget class="QComboBox" name="inputDetectionModeComboBox">
|
|
108
|
+
<property name="currentIndex">
|
|
109
|
+
<number>1</number>
|
|
110
|
+
</property>
|
|
111
|
+
<item>
|
|
112
|
+
<property name="text">
|
|
113
|
+
<string>Monopolar - High Gain</string>
|
|
114
|
+
</property>
|
|
115
|
+
</item>
|
|
116
|
+
<item>
|
|
117
|
+
<property name="text">
|
|
118
|
+
<string>Monopolar - Low Gain</string>
|
|
119
|
+
</property>
|
|
120
|
+
</item>
|
|
121
|
+
<item>
|
|
122
|
+
<property name="text">
|
|
123
|
+
<string>Impedance Check</string>
|
|
124
|
+
</property>
|
|
125
|
+
</item>
|
|
126
|
+
<item>
|
|
127
|
+
<property name="text">
|
|
128
|
+
<string>Test</string>
|
|
129
|
+
</property>
|
|
130
|
+
</item>
|
|
131
|
+
</widget>
|
|
132
|
+
</item>
|
|
133
|
+
<item row="1" column="0">
|
|
134
|
+
<widget class="QLabel" name="label_10">
|
|
135
|
+
<property name="text">
|
|
136
|
+
<string>Detection Mode</string>
|
|
137
|
+
</property>
|
|
138
|
+
</widget>
|
|
139
|
+
</item>
|
|
140
|
+
<item row="0" column="0">
|
|
141
|
+
<widget class="QLabel" name="label">
|
|
142
|
+
<property name="text">
|
|
143
|
+
<string>Working Mode</string>
|
|
144
|
+
</property>
|
|
145
|
+
</widget>
|
|
146
|
+
</item>
|
|
147
|
+
<item row="0" column="1">
|
|
148
|
+
<widget class="QComboBox" name="inputWorkingModeComboBox">
|
|
149
|
+
<property name="currentIndex">
|
|
150
|
+
<number>1</number>
|
|
151
|
+
</property>
|
|
152
|
+
<item>
|
|
153
|
+
<property name="text">
|
|
154
|
+
<string>EEG</string>
|
|
155
|
+
</property>
|
|
156
|
+
</item>
|
|
157
|
+
<item>
|
|
158
|
+
<property name="text">
|
|
159
|
+
<string>EMG</string>
|
|
160
|
+
</property>
|
|
161
|
+
</item>
|
|
162
|
+
</widget>
|
|
163
|
+
</item>
|
|
164
|
+
</layout>
|
|
165
|
+
</widget>
|
|
166
|
+
</item>
|
|
167
|
+
</layout>
|
|
168
|
+
</widget>
|
|
169
|
+
<resources/>
|
|
170
|
+
<connections/>
|
|
171
|
+
</ui>
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<ui version="4.0">
|
|
3
|
+
<class>QuattrocentoLightForm</class>
|
|
4
|
+
<widget class="QWidget" name="QuattrocentoLightForm">
|
|
5
|
+
<property name="geometry">
|
|
6
|
+
<rect>
|
|
7
|
+
<x>0</x>
|
|
8
|
+
<y>0</y>
|
|
9
|
+
<width>400</width>
|
|
10
|
+
<height>422</height>
|
|
11
|
+
</rect>
|
|
12
|
+
</property>
|
|
13
|
+
<property name="windowTitle">
|
|
14
|
+
<string>Form</string>
|
|
15
|
+
</property>
|
|
16
|
+
<layout class="QGridLayout" name="gridLayout_2">
|
|
17
|
+
<item row="0" column="0">
|
|
18
|
+
<widget class="QWidget" name="widget" native="true">
|
|
19
|
+
<layout class="QGridLayout" name="gridLayout_4">
|
|
20
|
+
<item row="3" column="0">
|
|
21
|
+
<widget class="QGroupBox" name="commandsGroupBox">
|
|
22
|
+
<property name="title">
|
|
23
|
+
<string>Commands</string>
|
|
24
|
+
</property>
|
|
25
|
+
<layout class="QGridLayout" name="gridLayout_3">
|
|
26
|
+
<item row="0" column="0" rowspan="2">
|
|
27
|
+
<widget class="QPushButton" name="commandConnectionPushButton">
|
|
28
|
+
<property name="sizePolicy">
|
|
29
|
+
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
|
30
|
+
<horstretch>0</horstretch>
|
|
31
|
+
<verstretch>0</verstretch>
|
|
32
|
+
</sizepolicy>
|
|
33
|
+
</property>
|
|
34
|
+
<property name="text">
|
|
35
|
+
<string>Connect</string>
|
|
36
|
+
</property>
|
|
37
|
+
</widget>
|
|
38
|
+
</item>
|
|
39
|
+
<item row="2" column="0">
|
|
40
|
+
<widget class="QPushButton" name="commandConfigurationPushButton">
|
|
41
|
+
<property name="sizePolicy">
|
|
42
|
+
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
|
43
|
+
<horstretch>0</horstretch>
|
|
44
|
+
<verstretch>0</verstretch>
|
|
45
|
+
</sizepolicy>
|
|
46
|
+
</property>
|
|
47
|
+
<property name="text">
|
|
48
|
+
<string>Configure</string>
|
|
49
|
+
</property>
|
|
50
|
+
</widget>
|
|
51
|
+
</item>
|
|
52
|
+
<item row="3" column="0">
|
|
53
|
+
<widget class="QPushButton" name="commandStreamPushButton">
|
|
54
|
+
<property name="sizePolicy">
|
|
55
|
+
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
|
56
|
+
<horstretch>0</horstretch>
|
|
57
|
+
<verstretch>0</verstretch>
|
|
58
|
+
</sizepolicy>
|
|
59
|
+
</property>
|
|
60
|
+
<property name="text">
|
|
61
|
+
<string>Stream</string>
|
|
62
|
+
</property>
|
|
63
|
+
</widget>
|
|
64
|
+
</item>
|
|
65
|
+
</layout>
|
|
66
|
+
</widget>
|
|
67
|
+
</item>
|
|
68
|
+
<item row="2" column="0">
|
|
69
|
+
<widget class="QGroupBox" name="gridSelectionGroupBox">
|
|
70
|
+
<property name="title">
|
|
71
|
+
<string>Grid Selection</string>
|
|
72
|
+
</property>
|
|
73
|
+
<layout class="QGridLayout" name="gridLayout_5">
|
|
74
|
+
<item row="1" column="1">
|
|
75
|
+
<widget class="QCheckBox" name="gridFourCheckBox">
|
|
76
|
+
<property name="text">
|
|
77
|
+
<string>Grid 4</string>
|
|
78
|
+
</property>
|
|
79
|
+
</widget>
|
|
80
|
+
</item>
|
|
81
|
+
<item row="1" column="0">
|
|
82
|
+
<widget class="QCheckBox" name="gridThreeCheckBox">
|
|
83
|
+
<property name="text">
|
|
84
|
+
<string>Grid 3</string>
|
|
85
|
+
</property>
|
|
86
|
+
</widget>
|
|
87
|
+
</item>
|
|
88
|
+
<item row="1" column="2">
|
|
89
|
+
<widget class="QCheckBox" name="gridFiveCheckBox">
|
|
90
|
+
<property name="text">
|
|
91
|
+
<string>Grid 5</string>
|
|
92
|
+
</property>
|
|
93
|
+
</widget>
|
|
94
|
+
</item>
|
|
95
|
+
<item row="1" column="3">
|
|
96
|
+
<widget class="QCheckBox" name="gridSixCheckBox">
|
|
97
|
+
<property name="text">
|
|
98
|
+
<string>Grid 6</string>
|
|
99
|
+
</property>
|
|
100
|
+
</widget>
|
|
101
|
+
</item>
|
|
102
|
+
<item row="0" column="3">
|
|
103
|
+
<widget class="QCheckBox" name="gridTwoCheckBox">
|
|
104
|
+
<property name="layoutDirection">
|
|
105
|
+
<enum>Qt::LeftToRight</enum>
|
|
106
|
+
</property>
|
|
107
|
+
<property name="text">
|
|
108
|
+
<string>Grid 2</string>
|
|
109
|
+
</property>
|
|
110
|
+
</widget>
|
|
111
|
+
</item>
|
|
112
|
+
<item row="0" column="0">
|
|
113
|
+
<widget class="QCheckBox" name="gridOneCheckBox">
|
|
114
|
+
<property name="text">
|
|
115
|
+
<string>Grid 1</string>
|
|
116
|
+
</property>
|
|
117
|
+
</widget>
|
|
118
|
+
</item>
|
|
119
|
+
</layout>
|
|
120
|
+
</widget>
|
|
121
|
+
</item>
|
|
122
|
+
<item row="1" column="0">
|
|
123
|
+
<widget class="QGroupBox" name="acquisitionGroupBox">
|
|
124
|
+
<property name="title">
|
|
125
|
+
<string>Acquisiton Parameters</string>
|
|
126
|
+
</property>
|
|
127
|
+
<layout class="QGridLayout" name="gridLayout">
|
|
128
|
+
<item row="0" column="1">
|
|
129
|
+
<widget class="QComboBox" name="acquisitionSamplingFrequencyComboBox">
|
|
130
|
+
<property name="currentIndex">
|
|
131
|
+
<number>1</number>
|
|
132
|
+
</property>
|
|
133
|
+
<item>
|
|
134
|
+
<property name="text">
|
|
135
|
+
<string>512</string>
|
|
136
|
+
</property>
|
|
137
|
+
</item>
|
|
138
|
+
<item>
|
|
139
|
+
<property name="text">
|
|
140
|
+
<string>2048</string>
|
|
141
|
+
</property>
|
|
142
|
+
</item>
|
|
143
|
+
<item>
|
|
144
|
+
<property name="text">
|
|
145
|
+
<string>5120</string>
|
|
146
|
+
</property>
|
|
147
|
+
</item>
|
|
148
|
+
<item>
|
|
149
|
+
<property name="text">
|
|
150
|
+
<string>10240</string>
|
|
151
|
+
</property>
|
|
152
|
+
</item>
|
|
153
|
+
</widget>
|
|
154
|
+
</item>
|
|
155
|
+
<item row="1" column="1">
|
|
156
|
+
<widget class="QComboBox" name="acquisitionStreamingFrequencyComboBox">
|
|
157
|
+
<property name="currentIndex">
|
|
158
|
+
<number>5</number>
|
|
159
|
+
</property>
|
|
160
|
+
<item>
|
|
161
|
+
<property name="text">
|
|
162
|
+
<string>1</string>
|
|
163
|
+
</property>
|
|
164
|
+
</item>
|
|
165
|
+
<item>
|
|
166
|
+
<property name="text">
|
|
167
|
+
<string>2</string>
|
|
168
|
+
</property>
|
|
169
|
+
</item>
|
|
170
|
+
<item>
|
|
171
|
+
<property name="text">
|
|
172
|
+
<string>4</string>
|
|
173
|
+
</property>
|
|
174
|
+
</item>
|
|
175
|
+
<item>
|
|
176
|
+
<property name="text">
|
|
177
|
+
<string>8</string>
|
|
178
|
+
</property>
|
|
179
|
+
</item>
|
|
180
|
+
<item>
|
|
181
|
+
<property name="text">
|
|
182
|
+
<string>16</string>
|
|
183
|
+
</property>
|
|
184
|
+
</item>
|
|
185
|
+
<item>
|
|
186
|
+
<property name="text">
|
|
187
|
+
<string>32</string>
|
|
188
|
+
</property>
|
|
189
|
+
</item>
|
|
190
|
+
</widget>
|
|
191
|
+
</item>
|
|
192
|
+
<item row="1" column="0">
|
|
193
|
+
<widget class="QLabel" name="label_2">
|
|
194
|
+
<property name="text">
|
|
195
|
+
<string>Streaming Frequency</string>
|
|
196
|
+
</property>
|
|
197
|
+
</widget>
|
|
198
|
+
</item>
|
|
199
|
+
<item row="0" column="0">
|
|
200
|
+
<widget class="QLabel" name="label">
|
|
201
|
+
<property name="text">
|
|
202
|
+
<string>Sampling Frequency</string>
|
|
203
|
+
</property>
|
|
204
|
+
</widget>
|
|
205
|
+
</item>
|
|
206
|
+
</layout>
|
|
207
|
+
</widget>
|
|
208
|
+
</item>
|
|
209
|
+
<item row="0" column="0">
|
|
210
|
+
<widget class="QGroupBox" name="connectionGroupBox">
|
|
211
|
+
<property name="title">
|
|
212
|
+
<string>Connection parameters</string>
|
|
213
|
+
</property>
|
|
214
|
+
<layout class="QGridLayout" name="gridLayout_7">
|
|
215
|
+
<item row="0" column="0">
|
|
216
|
+
<widget class="QLabel" name="label_4">
|
|
217
|
+
<property name="text">
|
|
218
|
+
<string>IP</string>
|
|
219
|
+
</property>
|
|
220
|
+
</widget>
|
|
221
|
+
</item>
|
|
222
|
+
<item row="1" column="0">
|
|
223
|
+
<widget class="QLabel" name="label_5">
|
|
224
|
+
<property name="text">
|
|
225
|
+
<string>Port</string>
|
|
226
|
+
</property>
|
|
227
|
+
</widget>
|
|
228
|
+
</item>
|
|
229
|
+
<item row="0" column="1">
|
|
230
|
+
<widget class="QLabel" name="connectionIPLabel">
|
|
231
|
+
<property name="text">
|
|
232
|
+
<string>127.0.0.1</string>
|
|
233
|
+
</property>
|
|
234
|
+
</widget>
|
|
235
|
+
</item>
|
|
236
|
+
<item row="1" column="1">
|
|
237
|
+
<widget class="QLabel" name="connectionPortLabel">
|
|
238
|
+
<property name="text">
|
|
239
|
+
<string>31000</string>
|
|
240
|
+
</property>
|
|
241
|
+
</widget>
|
|
242
|
+
</item>
|
|
243
|
+
</layout>
|
|
244
|
+
</widget>
|
|
245
|
+
</item>
|
|
246
|
+
</layout>
|
|
247
|
+
</widget>
|
|
248
|
+
</item>
|
|
249
|
+
<item row="1" column="0">
|
|
250
|
+
<spacer name="verticalSpacer">
|
|
251
|
+
<property name="orientation">
|
|
252
|
+
<enum>Qt::Vertical</enum>
|
|
253
|
+
</property>
|
|
254
|
+
<property name="sizeHint" stdset="0">
|
|
255
|
+
<size>
|
|
256
|
+
<width>20</width>
|
|
257
|
+
<height>40</height>
|
|
258
|
+
</size>
|
|
259
|
+
</property>
|
|
260
|
+
</spacer>
|
|
261
|
+
</item>
|
|
262
|
+
</layout>
|
|
263
|
+
</widget>
|
|
264
|
+
<resources/>
|
|
265
|
+
<connections/>
|
|
266
|
+
</ui>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
################################################################################
|
|
4
|
+
## Form generated from reading UI file 'devices_template_widget.ui'
|
|
5
|
+
##
|
|
6
|
+
## Created by: Qt User Interface Compiler version 6.6.0
|
|
7
|
+
##
|
|
8
|
+
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
9
|
+
################################################################################
|
|
10
|
+
|
|
11
|
+
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
|
12
|
+
QMetaObject, QObject, QPoint, QRect,
|
|
13
|
+
QSize, QTime, QUrl, Qt)
|
|
14
|
+
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
|
15
|
+
QFont, QFontDatabase, QGradient, QIcon,
|
|
16
|
+
QImage, QKeySequence, QLinearGradient, QPainter,
|
|
17
|
+
QPalette, QPixmap, QRadialGradient, QTransform)
|
|
18
|
+
from PySide6.QtWidgets import (QApplication, QComboBox, QGridLayout, QLabel,
|
|
19
|
+
QSizePolicy, QStackedWidget, QWidget)
|
|
20
|
+
|
|
21
|
+
class Ui_DeviceWidgetForm(object):
|
|
22
|
+
def setupUi(self, DeviceWidgetForm):
|
|
23
|
+
if not DeviceWidgetForm.objectName():
|
|
24
|
+
DeviceWidgetForm.setObjectName(u"DeviceWidgetForm")
|
|
25
|
+
DeviceWidgetForm.resize(400, 300)
|
|
26
|
+
self.gridLayout = QGridLayout(DeviceWidgetForm)
|
|
27
|
+
self.gridLayout.setObjectName(u"gridLayout")
|
|
28
|
+
self.label = QLabel(DeviceWidgetForm)
|
|
29
|
+
self.label.setObjectName(u"label")
|
|
30
|
+
|
|
31
|
+
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
|
32
|
+
|
|
33
|
+
self.deviceSelectionComboBox = QComboBox(DeviceWidgetForm)
|
|
34
|
+
self.deviceSelectionComboBox.setObjectName(u"deviceSelectionComboBox")
|
|
35
|
+
|
|
36
|
+
self.gridLayout.addWidget(self.deviceSelectionComboBox, 0, 1, 1, 1)
|
|
37
|
+
|
|
38
|
+
self.deviceStackedWidget = QStackedWidget(DeviceWidgetForm)
|
|
39
|
+
self.deviceStackedWidget.setObjectName(u"deviceStackedWidget")
|
|
40
|
+
|
|
41
|
+
self.gridLayout.addWidget(self.deviceStackedWidget, 1, 0, 1, 2)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self.retranslateUi(DeviceWidgetForm)
|
|
45
|
+
|
|
46
|
+
self.deviceStackedWidget.setCurrentIndex(-1)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
QMetaObject.connectSlotsByName(DeviceWidgetForm)
|
|
50
|
+
# setupUi
|
|
51
|
+
|
|
52
|
+
def retranslateUi(self, DeviceWidgetForm):
|
|
53
|
+
DeviceWidgetForm.setWindowTitle(QCoreApplication.translate("DeviceWidgetForm", u"Form", None))
|
|
54
|
+
self.label.setText(QCoreApplication.translate("DeviceWidgetForm", u"Device", None))
|
|
55
|
+
# retranslateUi
|
|
56
|
+
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
################################################################################
|
|
4
|
+
## Form generated from reading UI file 'muovi_plus_template_widget.ui'
|
|
5
|
+
##
|
|
6
|
+
## Created by: Qt User Interface Compiler version 6.6.0
|
|
7
|
+
##
|
|
8
|
+
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
9
|
+
################################################################################
|
|
10
|
+
|
|
11
|
+
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
|
12
|
+
QMetaObject, QObject, QPoint, QRect,
|
|
13
|
+
QSize, QTime, QUrl, Qt)
|
|
14
|
+
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
|
15
|
+
QFont, QFontDatabase, QGradient, QIcon,
|
|
16
|
+
QImage, QKeySequence, QLinearGradient, QPainter,
|
|
17
|
+
QPalette, QPixmap, QRadialGradient, QTransform)
|
|
18
|
+
from PySide6.QtWidgets import (QApplication, QComboBox, QGridLayout, QGroupBox,
|
|
19
|
+
QLabel, QPushButton, QSizePolicy, QSpacerItem,
|
|
20
|
+
QWidget)
|
|
21
|
+
|
|
22
|
+
class Ui_MuoviPlusForm(object):
|
|
23
|
+
def setupUi(self, MuoviPlusForm):
|
|
24
|
+
if not MuoviPlusForm.objectName():
|
|
25
|
+
MuoviPlusForm.setObjectName(u"MuoviPlusForm")
|
|
26
|
+
MuoviPlusForm.resize(400, 324)
|
|
27
|
+
self.gridLayout = QGridLayout(MuoviPlusForm)
|
|
28
|
+
self.gridLayout.setObjectName(u"gridLayout")
|
|
29
|
+
self.verticalSpacer = QSpacerItem(20, 86, QSizePolicy.Minimum, QSizePolicy.Expanding)
|
|
30
|
+
|
|
31
|
+
self.gridLayout.addItem(self.verticalSpacer, 4, 0, 1, 1)
|
|
32
|
+
|
|
33
|
+
self.connectionGroupBox = QGroupBox(MuoviPlusForm)
|
|
34
|
+
self.connectionGroupBox.setObjectName(u"connectionGroupBox")
|
|
35
|
+
self.gridLayout_7 = QGridLayout(self.connectionGroupBox)
|
|
36
|
+
self.gridLayout_7.setObjectName(u"gridLayout_7")
|
|
37
|
+
self.connectionPortLabel = QLabel(self.connectionGroupBox)
|
|
38
|
+
self.connectionPortLabel.setObjectName(u"connectionPortLabel")
|
|
39
|
+
|
|
40
|
+
self.gridLayout_7.addWidget(self.connectionPortLabel, 1, 1, 1, 1)
|
|
41
|
+
|
|
42
|
+
self.label_7 = QLabel(self.connectionGroupBox)
|
|
43
|
+
self.label_7.setObjectName(u"label_7")
|
|
44
|
+
|
|
45
|
+
self.gridLayout_7.addWidget(self.label_7, 1, 0, 1, 1)
|
|
46
|
+
|
|
47
|
+
self.label_6 = QLabel(self.connectionGroupBox)
|
|
48
|
+
self.label_6.setObjectName(u"label_6")
|
|
49
|
+
|
|
50
|
+
self.gridLayout_7.addWidget(self.label_6, 0, 0, 1, 1)
|
|
51
|
+
|
|
52
|
+
self.connectionUpdatePushButton = QPushButton(self.connectionGroupBox)
|
|
53
|
+
self.connectionUpdatePushButton.setObjectName(u"connectionUpdatePushButton")
|
|
54
|
+
|
|
55
|
+
self.gridLayout_7.addWidget(self.connectionUpdatePushButton, 0, 2, 1, 1)
|
|
56
|
+
|
|
57
|
+
self.connectionIPComboBox = QComboBox(self.connectionGroupBox)
|
|
58
|
+
self.connectionIPComboBox.setObjectName(u"connectionIPComboBox")
|
|
59
|
+
|
|
60
|
+
self.gridLayout_7.addWidget(self.connectionIPComboBox, 0, 1, 1, 1)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
self.gridLayout.addWidget(self.connectionGroupBox, 0, 0, 1, 2)
|
|
64
|
+
|
|
65
|
+
self.commandsGroupBox = QGroupBox(MuoviPlusForm)
|
|
66
|
+
self.commandsGroupBox.setObjectName(u"commandsGroupBox")
|
|
67
|
+
self.gridLayout_3 = QGridLayout(self.commandsGroupBox)
|
|
68
|
+
self.gridLayout_3.setObjectName(u"gridLayout_3")
|
|
69
|
+
self.commandConnectionPushButton = QPushButton(self.commandsGroupBox)
|
|
70
|
+
self.commandConnectionPushButton.setObjectName(u"commandConnectionPushButton")
|
|
71
|
+
|
|
72
|
+
self.gridLayout_3.addWidget(self.commandConnectionPushButton, 0, 0, 1, 1)
|
|
73
|
+
|
|
74
|
+
self.commandConfigurationPushButton = QPushButton(self.commandsGroupBox)
|
|
75
|
+
self.commandConfigurationPushButton.setObjectName(u"commandConfigurationPushButton")
|
|
76
|
+
|
|
77
|
+
self.gridLayout_3.addWidget(self.commandConfigurationPushButton, 1, 0, 1, 1)
|
|
78
|
+
|
|
79
|
+
self.commandStreamPushButton = QPushButton(self.commandsGroupBox)
|
|
80
|
+
self.commandStreamPushButton.setObjectName(u"commandStreamPushButton")
|
|
81
|
+
|
|
82
|
+
self.gridLayout_3.addWidget(self.commandStreamPushButton, 2, 0, 1, 1)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
self.gridLayout.addWidget(self.commandsGroupBox, 2, 0, 2, 2)
|
|
86
|
+
|
|
87
|
+
self.inputGroupBox = QGroupBox(MuoviPlusForm)
|
|
88
|
+
self.inputGroupBox.setObjectName(u"inputGroupBox")
|
|
89
|
+
self.gridLayout_4 = QGridLayout(self.inputGroupBox)
|
|
90
|
+
self.gridLayout_4.setObjectName(u"gridLayout_4")
|
|
91
|
+
self.inputDetectionModeComboBox = QComboBox(self.inputGroupBox)
|
|
92
|
+
self.inputDetectionModeComboBox.addItem("")
|
|
93
|
+
self.inputDetectionModeComboBox.addItem("")
|
|
94
|
+
self.inputDetectionModeComboBox.addItem("")
|
|
95
|
+
self.inputDetectionModeComboBox.addItem("")
|
|
96
|
+
self.inputDetectionModeComboBox.setObjectName(u"inputDetectionModeComboBox")
|
|
97
|
+
|
|
98
|
+
self.gridLayout_4.addWidget(self.inputDetectionModeComboBox, 1, 1, 1, 1)
|
|
99
|
+
|
|
100
|
+
self.label_10 = QLabel(self.inputGroupBox)
|
|
101
|
+
self.label_10.setObjectName(u"label_10")
|
|
102
|
+
|
|
103
|
+
self.gridLayout_4.addWidget(self.label_10, 1, 0, 1, 1)
|
|
104
|
+
|
|
105
|
+
self.label = QLabel(self.inputGroupBox)
|
|
106
|
+
self.label.setObjectName(u"label")
|
|
107
|
+
|
|
108
|
+
self.gridLayout_4.addWidget(self.label, 0, 0, 1, 1)
|
|
109
|
+
|
|
110
|
+
self.inputWorkingModeComboBox = QComboBox(self.inputGroupBox)
|
|
111
|
+
self.inputWorkingModeComboBox.addItem("")
|
|
112
|
+
self.inputWorkingModeComboBox.addItem("")
|
|
113
|
+
self.inputWorkingModeComboBox.setObjectName(u"inputWorkingModeComboBox")
|
|
114
|
+
|
|
115
|
+
self.gridLayout_4.addWidget(self.inputWorkingModeComboBox, 0, 1, 1, 1)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
self.gridLayout.addWidget(self.inputGroupBox, 1, 0, 1, 2)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
self.retranslateUi(MuoviPlusForm)
|
|
122
|
+
|
|
123
|
+
self.inputDetectionModeComboBox.setCurrentIndex(1)
|
|
124
|
+
self.inputWorkingModeComboBox.setCurrentIndex(1)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
QMetaObject.connectSlotsByName(MuoviPlusForm)
|
|
128
|
+
# setupUi
|
|
129
|
+
|
|
130
|
+
def retranslateUi(self, MuoviPlusForm):
|
|
131
|
+
MuoviPlusForm.setWindowTitle(QCoreApplication.translate("MuoviPlusForm", u"MuoviPlusForm", None))
|
|
132
|
+
self.connectionGroupBox.setTitle(QCoreApplication.translate("MuoviPlusForm", u"Connection parameters", None))
|
|
133
|
+
self.connectionPortLabel.setText(QCoreApplication.translate("MuoviPlusForm", u"54321", None))
|
|
134
|
+
self.label_7.setText(QCoreApplication.translate("MuoviPlusForm", u"Port", None))
|
|
135
|
+
self.label_6.setText(QCoreApplication.translate("MuoviPlusForm", u"IP", None))
|
|
136
|
+
self.connectionUpdatePushButton.setText(QCoreApplication.translate("MuoviPlusForm", u"Update", None))
|
|
137
|
+
self.commandsGroupBox.setTitle(QCoreApplication.translate("MuoviPlusForm", u"Commands", None))
|
|
138
|
+
self.commandConnectionPushButton.setText(QCoreApplication.translate("MuoviPlusForm", u"Connect", None))
|
|
139
|
+
self.commandConfigurationPushButton.setText(QCoreApplication.translate("MuoviPlusForm", u"Configure", None))
|
|
140
|
+
self.commandStreamPushButton.setText(QCoreApplication.translate("MuoviPlusForm", u"Stream", None))
|
|
141
|
+
self.inputGroupBox.setTitle(QCoreApplication.translate("MuoviPlusForm", u"Input Parameters", None))
|
|
142
|
+
self.inputDetectionModeComboBox.setItemText(0, QCoreApplication.translate("MuoviPlusForm", u"Monopolar - High Gain", None))
|
|
143
|
+
self.inputDetectionModeComboBox.setItemText(1, QCoreApplication.translate("MuoviPlusForm", u"Monopolar - Low Gain", None))
|
|
144
|
+
self.inputDetectionModeComboBox.setItemText(2, QCoreApplication.translate("MuoviPlusForm", u"Impedance Check", None))
|
|
145
|
+
self.inputDetectionModeComboBox.setItemText(3, QCoreApplication.translate("MuoviPlusForm", u"Test", None))
|
|
146
|
+
|
|
147
|
+
self.label_10.setText(QCoreApplication.translate("MuoviPlusForm", u"Detection Mode", None))
|
|
148
|
+
self.label.setText(QCoreApplication.translate("MuoviPlusForm", u"Working Mode", None))
|
|
149
|
+
self.inputWorkingModeComboBox.setItemText(0, QCoreApplication.translate("MuoviPlusForm", u"EEG", None))
|
|
150
|
+
self.inputWorkingModeComboBox.setItemText(1, QCoreApplication.translate("MuoviPlusForm", u"EMG", None))
|
|
151
|
+
|
|
152
|
+
# retranslateUi
|
|
153
|
+
|