accusleepy 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.
@@ -0,0 +1,598 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ ################################################################################
4
+ ## Form generated from reading UI file 'viewer_window.ui'
5
+ ##
6
+ ## Created by: Qt User Interface Compiler version 6.8.3
7
+ ##
8
+ ## WARNING! All changes made in this file will be lost when recompiling UI file!
9
+ ################################################################################
10
+
11
+ from PySide6.QtCore import (
12
+ QCoreApplication,
13
+ QMetaObject,
14
+ QSize,
15
+ Qt,
16
+ )
17
+ from PySide6.QtGui import (
18
+ QIcon,
19
+ )
20
+ from PySide6.QtWidgets import (
21
+ QCheckBox,
22
+ QFrame,
23
+ QGridLayout,
24
+ QHBoxLayout,
25
+ QLabel,
26
+ QLayout,
27
+ QPushButton,
28
+ QSizePolicy,
29
+ QSpacerItem,
30
+ QVBoxLayout,
31
+ )
32
+
33
+ import accusleepy.gui.resources_rc # noqa F401
34
+ from accusleepy.gui.mplwidget import MplWidget
35
+
36
+
37
+ class Ui_ViewerWindow(object):
38
+ def setupUi(self, ViewerWindow):
39
+ if not ViewerWindow.objectName():
40
+ ViewerWindow.setObjectName("ViewerWindow")
41
+ ViewerWindow.resize(1200, 700)
42
+ sizePolicy = QSizePolicy(
43
+ QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred
44
+ )
45
+ sizePolicy.setHorizontalStretch(0)
46
+ sizePolicy.setVerticalStretch(0)
47
+ sizePolicy.setHeightForWidth(ViewerWindow.sizePolicy().hasHeightForWidth())
48
+ ViewerWindow.setSizePolicy(sizePolicy)
49
+ ViewerWindow.setStyleSheet("background-color: white;")
50
+ self.horizontalLayout = QHBoxLayout(ViewerWindow)
51
+ self.horizontalLayout.setObjectName("horizontalLayout")
52
+ self.all_plots = QVBoxLayout()
53
+ self.all_plots.setSpacing(1)
54
+ self.all_plots.setObjectName("all_plots")
55
+ self.all_plots.setSizeConstraint(QLayout.SizeConstraint.SetMinimumSize)
56
+ self.upperfigure = MplWidget(ViewerWindow)
57
+ self.upperfigure.setObjectName("upperfigure")
58
+ sizePolicy.setHeightForWidth(self.upperfigure.sizePolicy().hasHeightForWidth())
59
+ self.upperfigure.setSizePolicy(sizePolicy)
60
+ self.upperfigure.setAutoFillBackground(False)
61
+
62
+ self.all_plots.addWidget(self.upperfigure)
63
+
64
+ self.line = QFrame(ViewerWindow)
65
+ self.line.setObjectName("line")
66
+ self.line.setLineWidth(2)
67
+ self.line.setFrameShape(QFrame.Shape.HLine)
68
+ self.line.setFrameShadow(QFrame.Shadow.Sunken)
69
+
70
+ self.all_plots.addWidget(self.line)
71
+
72
+ self.lowerfigure = MplWidget(ViewerWindow)
73
+ self.lowerfigure.setObjectName("lowerfigure")
74
+ sizePolicy.setHeightForWidth(self.lowerfigure.sizePolicy().hasHeightForWidth())
75
+ self.lowerfigure.setSizePolicy(sizePolicy)
76
+ self.lowerfigure.setAutoFillBackground(False)
77
+
78
+ self.all_plots.addWidget(self.lowerfigure)
79
+
80
+ self.all_plots.setStretch(0, 50)
81
+ self.all_plots.setStretch(1, 1)
82
+ self.all_plots.setStretch(2, 50)
83
+
84
+ self.horizontalLayout.addLayout(self.all_plots)
85
+
86
+ self.all_controls = QVBoxLayout()
87
+ self.all_controls.setSpacing(20)
88
+ self.all_controls.setObjectName("all_controls")
89
+ self.all_controls.setSizeConstraint(QLayout.SizeConstraint.SetDefaultConstraint)
90
+ self.top_plot_buttons = QVBoxLayout()
91
+ self.top_plot_buttons.setObjectName("top_plot_buttons")
92
+ self.topcontroltopspacer = QSpacerItem(
93
+ 5, 10, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed
94
+ )
95
+
96
+ self.top_plot_buttons.addItem(self.topcontroltopspacer)
97
+
98
+ self.save_help_buttons = QHBoxLayout()
99
+ self.save_help_buttons.setSpacing(20)
100
+ self.save_help_buttons.setObjectName("save_help_buttons")
101
+ self.save_help_buttons.setSizeConstraint(
102
+ QLayout.SizeConstraint.SetDefaultConstraint
103
+ )
104
+ self.savebutton = QPushButton(ViewerWindow)
105
+ self.savebutton.setObjectName("savebutton")
106
+ sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed)
107
+ sizePolicy1.setHorizontalStretch(0)
108
+ sizePolicy1.setVerticalStretch(0)
109
+ sizePolicy1.setHeightForWidth(self.savebutton.sizePolicy().hasHeightForWidth())
110
+ self.savebutton.setSizePolicy(sizePolicy1)
111
+ self.savebutton.setStyleSheet("background-color: rgb(237, 241, 241);")
112
+ icon = QIcon()
113
+ icon.addFile(":/icons/save.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
114
+ self.savebutton.setIcon(icon)
115
+ self.savebutton.setIconSize(QSize(28, 28))
116
+ self.savebutton.setAutoRepeat(True)
117
+
118
+ self.save_help_buttons.addWidget(self.savebutton)
119
+
120
+ self.helpbutton = QPushButton(ViewerWindow)
121
+ self.helpbutton.setObjectName("helpbutton")
122
+ sizePolicy1.setHeightForWidth(self.helpbutton.sizePolicy().hasHeightForWidth())
123
+ self.helpbutton.setSizePolicy(sizePolicy1)
124
+ self.helpbutton.setStyleSheet("background-color: rgb(237, 241, 241);")
125
+ icon1 = QIcon()
126
+ icon1.addFile(
127
+ ":/icons/question.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off
128
+ )
129
+ self.helpbutton.setIcon(icon1)
130
+ self.helpbutton.setIconSize(QSize(28, 28))
131
+ self.helpbutton.setAutoRepeat(True)
132
+
133
+ self.save_help_buttons.addWidget(self.helpbutton)
134
+
135
+ self.top_plot_buttons.addLayout(self.save_help_buttons)
136
+
137
+ self.topcontrolmidspacer = QSpacerItem(
138
+ 5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Preferred
139
+ )
140
+
141
+ self.top_plot_buttons.addItem(self.topcontrolmidspacer)
142
+
143
+ self.zoom_and_brightness = QVBoxLayout()
144
+ self.zoom_and_brightness.setObjectName("zoom_and_brightness")
145
+ self.brightness_buttons = QHBoxLayout()
146
+ self.brightness_buttons.setObjectName("brightness_buttons")
147
+ self.specbrighter = QPushButton(ViewerWindow)
148
+ self.specbrighter.setObjectName("specbrighter")
149
+ sizePolicy1.setHeightForWidth(
150
+ self.specbrighter.sizePolicy().hasHeightForWidth()
151
+ )
152
+ self.specbrighter.setSizePolicy(sizePolicy1)
153
+ self.specbrighter.setStyleSheet("background-color: rgb(237, 241, 241);")
154
+ icon2 = QIcon()
155
+ icon2.addFile(
156
+ ":/icons/brightness_up.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off
157
+ )
158
+ self.specbrighter.setIcon(icon2)
159
+ self.specbrighter.setIconSize(QSize(24, 24))
160
+ self.specbrighter.setAutoRepeat(True)
161
+
162
+ self.brightness_buttons.addWidget(self.specbrighter)
163
+
164
+ self.specdimmer = QPushButton(ViewerWindow)
165
+ self.specdimmer.setObjectName("specdimmer")
166
+ sizePolicy1.setHeightForWidth(self.specdimmer.sizePolicy().hasHeightForWidth())
167
+ self.specdimmer.setSizePolicy(sizePolicy1)
168
+ self.specdimmer.setStyleSheet("background-color: rgb(237, 241, 241);")
169
+ icon3 = QIcon()
170
+ icon3.addFile(
171
+ ":/icons/brightness_down.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off
172
+ )
173
+ self.specdimmer.setIcon(icon3)
174
+ self.specdimmer.setIconSize(QSize(24, 24))
175
+ self.specdimmer.setAutoRepeat(True)
176
+
177
+ self.brightness_buttons.addWidget(self.specdimmer)
178
+
179
+ self.zoom_and_brightness.addLayout(self.brightness_buttons)
180
+
181
+ self.zoom_buttons = QHBoxLayout()
182
+ self.zoom_buttons.setObjectName("zoom_buttons")
183
+ self.zoom_buttons.setSizeConstraint(QLayout.SizeConstraint.SetDefaultConstraint)
184
+ self.zoom_buttons.setContentsMargins(2, -1, 2, -1)
185
+ self.xzoomin = QPushButton(ViewerWindow)
186
+ self.xzoomin.setObjectName("xzoomin")
187
+ sizePolicy1.setHeightForWidth(self.xzoomin.sizePolicy().hasHeightForWidth())
188
+ self.xzoomin.setSizePolicy(sizePolicy1)
189
+ self.xzoomin.setStyleSheet("background-color: rgb(237, 241, 241);")
190
+ icon4 = QIcon()
191
+ icon4.addFile(
192
+ ":/icons/zoom_in.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off
193
+ )
194
+ self.xzoomin.setIcon(icon4)
195
+ self.xzoomin.setIconSize(QSize(20, 20))
196
+ self.xzoomin.setAutoRepeat(True)
197
+
198
+ self.zoom_buttons.addWidget(self.xzoomin)
199
+
200
+ self.xzoomout = QPushButton(ViewerWindow)
201
+ self.xzoomout.setObjectName("xzoomout")
202
+ sizePolicy1.setHeightForWidth(self.xzoomout.sizePolicy().hasHeightForWidth())
203
+ self.xzoomout.setSizePolicy(sizePolicy1)
204
+ self.xzoomout.setStyleSheet("background-color: rgb(237, 241, 241);")
205
+ icon5 = QIcon()
206
+ icon5.addFile(
207
+ ":/icons/zoom_out.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off
208
+ )
209
+ self.xzoomout.setIcon(icon5)
210
+ self.xzoomout.setIconSize(QSize(20, 20))
211
+ self.xzoomout.setAutoRepeat(True)
212
+
213
+ self.zoom_buttons.addWidget(self.xzoomout)
214
+
215
+ self.xzoomreset = QPushButton(ViewerWindow)
216
+ self.xzoomreset.setObjectName("xzoomreset")
217
+ sizePolicy1.setHeightForWidth(self.xzoomreset.sizePolicy().hasHeightForWidth())
218
+ self.xzoomreset.setSizePolicy(sizePolicy1)
219
+ self.xzoomreset.setStyleSheet("background-color: rgb(237, 241, 241);")
220
+ icon6 = QIcon()
221
+ icon6.addFile(":/icons/home.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
222
+ self.xzoomreset.setIcon(icon6)
223
+ self.xzoomreset.setIconSize(QSize(20, 20))
224
+ self.xzoomreset.setAutoRepeat(True)
225
+
226
+ self.zoom_buttons.addWidget(self.xzoomreset)
227
+
228
+ self.zoom_and_brightness.addLayout(self.zoom_buttons)
229
+
230
+ self.top_plot_buttons.addLayout(self.zoom_and_brightness)
231
+
232
+ self.topcontrolbottomspacer = QSpacerItem(
233
+ 5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Preferred
234
+ )
235
+
236
+ self.top_plot_buttons.addItem(self.topcontrolbottomspacer)
237
+
238
+ self.top_plot_buttons.setStretch(0, 1)
239
+ self.top_plot_buttons.setStretch(1, 10)
240
+ self.top_plot_buttons.setStretch(2, 3)
241
+ self.top_plot_buttons.setStretch(3, 10)
242
+ self.top_plot_buttons.setStretch(4, 10)
243
+
244
+ self.all_controls.addLayout(self.top_plot_buttons)
245
+
246
+ self.allcontrolmidspacer = QSpacerItem(
247
+ 5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Preferred
248
+ )
249
+
250
+ self.all_controls.addItem(self.allcontrolmidspacer)
251
+
252
+ self.bottom_plot_buttons = QVBoxLayout()
253
+ self.bottom_plot_buttons.setObjectName("bottom_plot_buttons")
254
+ self.verticalSpacer_3 = QSpacerItem(
255
+ 5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Preferred
256
+ )
257
+
258
+ self.bottom_plot_buttons.addItem(self.verticalSpacer_3)
259
+
260
+ self.eeg_emg_buttons = QVBoxLayout()
261
+ self.eeg_emg_buttons.setSpacing(20)
262
+ self.eeg_emg_buttons.setObjectName("eeg_emg_buttons")
263
+ self.eegbuttons = QGridLayout()
264
+ self.eegbuttons.setObjectName("eegbuttons")
265
+ self.eegbuttons.setHorizontalSpacing(10)
266
+ self.eegbuttons.setVerticalSpacing(20)
267
+ self.eegshiftup = QPushButton(ViewerWindow)
268
+ self.eegshiftup.setObjectName("eegshiftup")
269
+ sizePolicy1.setHeightForWidth(self.eegshiftup.sizePolicy().hasHeightForWidth())
270
+ self.eegshiftup.setSizePolicy(sizePolicy1)
271
+ self.eegshiftup.setStyleSheet("background-color: rgb(237, 241, 241);")
272
+ icon7 = QIcon()
273
+ icon7.addFile(
274
+ ":/icons/double_up_arrow.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off
275
+ )
276
+ self.eegshiftup.setIcon(icon7)
277
+ self.eegshiftup.setIconSize(QSize(20, 20))
278
+ self.eegshiftup.setAutoRepeat(True)
279
+
280
+ self.eegbuttons.addWidget(self.eegshiftup, 0, 1, 1, 1)
281
+
282
+ self.eegzoomout = QPushButton(ViewerWindow)
283
+ self.eegzoomout.setObjectName("eegzoomout")
284
+ sizePolicy1.setHeightForWidth(self.eegzoomout.sizePolicy().hasHeightForWidth())
285
+ self.eegzoomout.setSizePolicy(sizePolicy1)
286
+ self.eegzoomout.setStyleSheet("background-color: rgb(237, 241, 241);")
287
+ self.eegzoomout.setIcon(icon5)
288
+ self.eegzoomout.setIconSize(QSize(20, 20))
289
+ self.eegzoomout.setAutoRepeat(True)
290
+
291
+ self.eegbuttons.addWidget(self.eegzoomout, 1, 0, 1, 1)
292
+
293
+ self.eegshiftdown = QPushButton(ViewerWindow)
294
+ self.eegshiftdown.setObjectName("eegshiftdown")
295
+ sizePolicy1.setHeightForWidth(
296
+ self.eegshiftdown.sizePolicy().hasHeightForWidth()
297
+ )
298
+ self.eegshiftdown.setSizePolicy(sizePolicy1)
299
+ self.eegshiftdown.setStyleSheet("background-color: rgb(237, 241, 241);")
300
+ icon8 = QIcon()
301
+ icon8.addFile(
302
+ ":/icons/double_down_arrow.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off
303
+ )
304
+ self.eegshiftdown.setIcon(icon8)
305
+ self.eegshiftdown.setIconSize(QSize(20, 20))
306
+ self.eegshiftdown.setAutoRepeat(True)
307
+
308
+ self.eegbuttons.addWidget(self.eegshiftdown, 1, 1, 1, 1)
309
+
310
+ self.eegzoomin = QPushButton(ViewerWindow)
311
+ self.eegzoomin.setObjectName("eegzoomin")
312
+ sizePolicy1.setHeightForWidth(self.eegzoomin.sizePolicy().hasHeightForWidth())
313
+ self.eegzoomin.setSizePolicy(sizePolicy1)
314
+ self.eegzoomin.setStyleSheet("background-color: rgb(237, 241, 241);")
315
+ self.eegzoomin.setIcon(icon4)
316
+ self.eegzoomin.setIconSize(QSize(20, 20))
317
+ self.eegzoomin.setAutoRepeat(True)
318
+
319
+ self.eegbuttons.addWidget(self.eegzoomin, 0, 0, 1, 1)
320
+
321
+ self.eeg_emg_buttons.addLayout(self.eegbuttons)
322
+
323
+ self.verticalSpacer_5 = QSpacerItem(
324
+ 5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Preferred
325
+ )
326
+
327
+ self.eeg_emg_buttons.addItem(self.verticalSpacer_5)
328
+
329
+ self.emgbuttons = QGridLayout()
330
+ self.emgbuttons.setObjectName("emgbuttons")
331
+ self.emgbuttons.setHorizontalSpacing(10)
332
+ self.emgbuttons.setVerticalSpacing(20)
333
+ self.emgzoomin = QPushButton(ViewerWindow)
334
+ self.emgzoomin.setObjectName("emgzoomin")
335
+ sizePolicy1.setHeightForWidth(self.emgzoomin.sizePolicy().hasHeightForWidth())
336
+ self.emgzoomin.setSizePolicy(sizePolicy1)
337
+ self.emgzoomin.setStyleSheet("background-color: rgb(237, 241, 241);")
338
+ self.emgzoomin.setIcon(icon4)
339
+ self.emgzoomin.setIconSize(QSize(20, 20))
340
+ self.emgzoomin.setAutoRepeat(True)
341
+
342
+ self.emgbuttons.addWidget(self.emgzoomin, 0, 0, 1, 1)
343
+
344
+ self.emgshiftdown = QPushButton(ViewerWindow)
345
+ self.emgshiftdown.setObjectName("emgshiftdown")
346
+ sizePolicy1.setHeightForWidth(
347
+ self.emgshiftdown.sizePolicy().hasHeightForWidth()
348
+ )
349
+ self.emgshiftdown.setSizePolicy(sizePolicy1)
350
+ self.emgshiftdown.setStyleSheet("background-color: rgb(237, 241, 241);")
351
+ self.emgshiftdown.setIcon(icon8)
352
+ self.emgshiftdown.setIconSize(QSize(20, 20))
353
+ self.emgshiftdown.setAutoRepeat(True)
354
+
355
+ self.emgbuttons.addWidget(self.emgshiftdown, 1, 1, 1, 1)
356
+
357
+ self.emgshiftup = QPushButton(ViewerWindow)
358
+ self.emgshiftup.setObjectName("emgshiftup")
359
+ sizePolicy1.setHeightForWidth(self.emgshiftup.sizePolicy().hasHeightForWidth())
360
+ self.emgshiftup.setSizePolicy(sizePolicy1)
361
+ self.emgshiftup.setStyleSheet("background-color: rgb(237, 241, 241);")
362
+ self.emgshiftup.setIcon(icon7)
363
+ self.emgshiftup.setIconSize(QSize(20, 20))
364
+ self.emgshiftup.setAutoRepeat(True)
365
+
366
+ self.emgbuttons.addWidget(self.emgshiftup, 0, 1, 1, 1)
367
+
368
+ self.emgzoomout = QPushButton(ViewerWindow)
369
+ self.emgzoomout.setObjectName("emgzoomout")
370
+ sizePolicy1.setHeightForWidth(self.emgzoomout.sizePolicy().hasHeightForWidth())
371
+ self.emgzoomout.setSizePolicy(sizePolicy1)
372
+ self.emgzoomout.setStyleSheet("background-color: rgb(237, 241, 241);")
373
+ self.emgzoomout.setIcon(icon5)
374
+ self.emgzoomout.setIconSize(QSize(20, 20))
375
+ self.emgzoomout.setAutoRepeat(True)
376
+
377
+ self.emgbuttons.addWidget(self.emgzoomout, 1, 0, 1, 1)
378
+
379
+ self.eeg_emg_buttons.addLayout(self.emgbuttons)
380
+
381
+ self.bottom_plot_buttons.addLayout(self.eeg_emg_buttons)
382
+
383
+ self.verticalSpacer = QSpacerItem(
384
+ 5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Preferred
385
+ )
386
+
387
+ self.bottom_plot_buttons.addItem(self.verticalSpacer)
388
+
389
+ self.autoscroll_layout = QVBoxLayout()
390
+ self.autoscroll_layout.setObjectName("autoscroll_layout")
391
+ self.autoscroll_layout.setContentsMargins(30, -1, 20, -1)
392
+ self.autoscroll = QCheckBox(ViewerWindow)
393
+ self.autoscroll.setObjectName("autoscroll")
394
+ sizePolicy1.setHeightForWidth(self.autoscroll.sizePolicy().hasHeightForWidth())
395
+ self.autoscroll.setSizePolicy(sizePolicy1)
396
+
397
+ self.autoscroll_layout.addWidget(self.autoscroll)
398
+
399
+ self.bottom_plot_buttons.addLayout(self.autoscroll_layout)
400
+
401
+ self.verticalSpacer_2 = QSpacerItem(
402
+ 5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Preferred
403
+ )
404
+
405
+ self.bottom_plot_buttons.addItem(self.verticalSpacer_2)
406
+
407
+ self.epoch_controls = QGridLayout()
408
+ self.epoch_controls.setObjectName("epoch_controls")
409
+ self.epoch_controls.setHorizontalSpacing(2)
410
+ self.epoch_controls.setVerticalSpacing(10)
411
+ self.shownepochslabel = QLabel(ViewerWindow)
412
+ self.shownepochslabel.setObjectName("shownepochslabel")
413
+ sizePolicy2 = QSizePolicy(
414
+ QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Preferred
415
+ )
416
+ sizePolicy2.setHorizontalStretch(0)
417
+ sizePolicy2.setVerticalStretch(0)
418
+ sizePolicy2.setHeightForWidth(
419
+ self.shownepochslabel.sizePolicy().hasHeightForWidth()
420
+ )
421
+ self.shownepochslabel.setSizePolicy(sizePolicy2)
422
+ self.shownepochslabel.setAlignment(
423
+ Qt.AlignmentFlag.AlignLeading
424
+ | Qt.AlignmentFlag.AlignLeft
425
+ | Qt.AlignmentFlag.AlignVCenter
426
+ )
427
+
428
+ self.epoch_controls.addWidget(self.shownepochslabel, 0, 1, 1, 1)
429
+
430
+ self.epochsword = QLabel(ViewerWindow)
431
+ self.epochsword.setObjectName("epochsword")
432
+ sizePolicy1.setHeightForWidth(self.epochsword.sizePolicy().hasHeightForWidth())
433
+ self.epochsword.setSizePolicy(sizePolicy1)
434
+
435
+ self.epoch_controls.addWidget(self.epochsword, 0, 0, 1, 1)
436
+
437
+ self.shownepochsplus = QPushButton(ViewerWindow)
438
+ self.shownepochsplus.setObjectName("shownepochsplus")
439
+ sizePolicy1.setHeightForWidth(
440
+ self.shownepochsplus.sizePolicy().hasHeightForWidth()
441
+ )
442
+ self.shownepochsplus.setSizePolicy(sizePolicy1)
443
+ self.shownepochsplus.setStyleSheet("background-color: rgb(237, 241, 241);")
444
+ icon9 = QIcon()
445
+ icon9.addFile(
446
+ ":/icons/up_arrow.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off
447
+ )
448
+ self.shownepochsplus.setIcon(icon9)
449
+ self.shownepochsplus.setIconSize(QSize(20, 20))
450
+ self.shownepochsplus.setAutoRepeat(False)
451
+
452
+ self.epoch_controls.addWidget(self.shownepochsplus, 1, 1, 1, 1)
453
+
454
+ self.shownepochsminus = QPushButton(ViewerWindow)
455
+ self.shownepochsminus.setObjectName("shownepochsminus")
456
+ sizePolicy1.setHeightForWidth(
457
+ self.shownepochsminus.sizePolicy().hasHeightForWidth()
458
+ )
459
+ self.shownepochsminus.setSizePolicy(sizePolicy1)
460
+ self.shownepochsminus.setStyleSheet("background-color: rgb(237, 241, 241);")
461
+ icon10 = QIcon()
462
+ icon10.addFile(
463
+ ":/icons/down_arrow.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off
464
+ )
465
+ self.shownepochsminus.setIcon(icon10)
466
+ self.shownepochsminus.setIconSize(QSize(20, 20))
467
+ self.shownepochsminus.setAutoRepeat(False)
468
+
469
+ self.epoch_controls.addWidget(self.shownepochsminus, 1, 0, 1, 1)
470
+
471
+ self.epoch_controls.setColumnStretch(0, 1)
472
+ self.epoch_controls.setColumnStretch(1, 1)
473
+
474
+ self.bottom_plot_buttons.addLayout(self.epoch_controls)
475
+
476
+ self.verticalSpacer_4 = QSpacerItem(
477
+ 5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed
478
+ )
479
+
480
+ self.bottom_plot_buttons.addItem(self.verticalSpacer_4)
481
+
482
+ self.bottom_plot_buttons.setStretch(0, 1)
483
+ self.bottom_plot_buttons.setStretch(1, 6)
484
+ self.bottom_plot_buttons.setStretch(2, 1)
485
+ self.bottom_plot_buttons.setStretch(3, 3)
486
+ self.bottom_plot_buttons.setStretch(4, 1)
487
+ self.bottom_plot_buttons.setStretch(5, 4)
488
+ self.bottom_plot_buttons.setStretch(6, 1)
489
+
490
+ self.all_controls.addLayout(self.bottom_plot_buttons)
491
+
492
+ self.all_controls.setStretch(0, 50)
493
+ self.all_controls.setStretch(1, 1)
494
+ self.all_controls.setStretch(2, 50)
495
+
496
+ self.horizontalLayout.addLayout(self.all_controls)
497
+
498
+ self.horizontalLayout.setStretch(0, 20)
499
+ self.horizontalLayout.setStretch(1, 1)
500
+
501
+ self.retranslateUi(ViewerWindow)
502
+
503
+ QMetaObject.connectSlotsByName(ViewerWindow)
504
+
505
+ # setupUi
506
+
507
+ def retranslateUi(self, ViewerWindow):
508
+ # if QT_CONFIG(tooltip)
509
+ self.savebutton.setToolTip(
510
+ QCoreApplication.translate("ViewerWindow", "Save labels (Ctrl+S)", None)
511
+ )
512
+ # endif // QT_CONFIG(tooltip)
513
+ self.savebutton.setText("")
514
+ # if QT_CONFIG(tooltip)
515
+ self.helpbutton.setToolTip(
516
+ QCoreApplication.translate("ViewerWindow", "User manual", None)
517
+ )
518
+ # endif // QT_CONFIG(tooltip)
519
+ self.helpbutton.setText("")
520
+ # if QT_CONFIG(tooltip)
521
+ self.specbrighter.setToolTip(
522
+ QCoreApplication.translate("ViewerWindow", "Increase brightness", None)
523
+ )
524
+ # endif // QT_CONFIG(tooltip)
525
+ self.specbrighter.setText("")
526
+ # if QT_CONFIG(tooltip)
527
+ self.specdimmer.setToolTip(
528
+ QCoreApplication.translate("ViewerWindow", "Decrease brightness", None)
529
+ )
530
+ # endif // QT_CONFIG(tooltip)
531
+ self.specdimmer.setText("")
532
+ # if QT_CONFIG(tooltip)
533
+ self.xzoomin.setToolTip(
534
+ QCoreApplication.translate("ViewerWindow", "Zoom in (+)", None)
535
+ )
536
+ # endif // QT_CONFIG(tooltip)
537
+ self.xzoomin.setText("")
538
+ # if QT_CONFIG(tooltip)
539
+ self.xzoomout.setToolTip(
540
+ QCoreApplication.translate("ViewerWindow", "Zoom out (-)", None)
541
+ )
542
+ # endif // QT_CONFIG(tooltip)
543
+ self.xzoomout.setText("")
544
+ # if QT_CONFIG(tooltip)
545
+ self.xzoomreset.setToolTip(
546
+ QCoreApplication.translate("ViewerWindow", "Reset zoom", None)
547
+ )
548
+ # endif // QT_CONFIG(tooltip)
549
+ self.xzoomreset.setText("")
550
+ # if QT_CONFIG(tooltip)
551
+ self.eegshiftup.setToolTip(
552
+ QCoreApplication.translate("ViewerWindow", "Shift signal up", None)
553
+ )
554
+ # endif // QT_CONFIG(tooltip)
555
+ self.eegshiftup.setText("")
556
+ # if QT_CONFIG(tooltip)
557
+ self.eegzoomout.setToolTip(
558
+ QCoreApplication.translate("ViewerWindow", "Scale signal down", None)
559
+ )
560
+ # endif // QT_CONFIG(tooltip)
561
+ self.eegzoomout.setText("")
562
+ # if QT_CONFIG(tooltip)
563
+ self.eegshiftdown.setToolTip(
564
+ QCoreApplication.translate("ViewerWindow", "Shift signal down", None)
565
+ )
566
+ # endif // QT_CONFIG(tooltip)
567
+ self.eegshiftdown.setText("")
568
+ # if QT_CONFIG(tooltip)
569
+ self.eegzoomin.setToolTip(
570
+ QCoreApplication.translate("ViewerWindow", "Scale signal up", None)
571
+ )
572
+ # endif // QT_CONFIG(tooltip)
573
+ self.eegzoomin.setText("")
574
+ self.emgzoomin.setText("")
575
+ self.emgshiftdown.setText("")
576
+ self.emgshiftup.setText("")
577
+ self.emgzoomout.setText("")
578
+ # if QT_CONFIG(tooltip)
579
+ self.autoscroll.setToolTip(
580
+ QCoreApplication.translate(
581
+ "ViewerWindow", "Step forward when setting brain state", None
582
+ )
583
+ )
584
+ # endif // QT_CONFIG(tooltip)
585
+ self.autoscroll.setText(
586
+ QCoreApplication.translate("ViewerWindow", "Auto scroll", None)
587
+ )
588
+ self.shownepochslabel.setText(
589
+ QCoreApplication.translate("ViewerWindow", "5", None)
590
+ )
591
+ self.epochsword.setText(
592
+ QCoreApplication.translate("ViewerWindow", "Epochs:", None)
593
+ )
594
+ self.shownepochsplus.setText("")
595
+ self.shownepochsminus.setText("")
596
+ pass
597
+
598
+ # retranslateUi