streamdeck-gui-ng 4.1.3__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.
- streamdeck_gui_ng-4.1.3.dist-info/METADATA +141 -0
- streamdeck_gui_ng-4.1.3.dist-info/RECORD +62 -0
- streamdeck_gui_ng-4.1.3.dist-info/WHEEL +4 -0
- streamdeck_gui_ng-4.1.3.dist-info/entry_points.txt +4 -0
- streamdeck_gui_ng-4.1.3.dist-info/licenses/LICENSE +21 -0
- streamdeck_ui/__init__.py +6 -0
- streamdeck_ui/api.py +712 -0
- streamdeck_ui/button.ui +1214 -0
- streamdeck_ui/cli/__init__.py +0 -0
- streamdeck_ui/cli/commands.py +191 -0
- streamdeck_ui/cli/server.py +292 -0
- streamdeck_ui/config.py +244 -0
- streamdeck_ui/dimmer.py +93 -0
- streamdeck_ui/display/__init__.py +0 -0
- streamdeck_ui/display/background_color_filter.py +41 -0
- streamdeck_ui/display/display_grid.py +265 -0
- streamdeck_ui/display/empty_filter.py +43 -0
- streamdeck_ui/display/filter.py +65 -0
- streamdeck_ui/display/image_filter.py +144 -0
- streamdeck_ui/display/keypress_filter.py +63 -0
- streamdeck_ui/display/pipeline.py +74 -0
- streamdeck_ui/display/pulse_filter.py +54 -0
- streamdeck_ui/display/text_filter.py +142 -0
- streamdeck_ui/fonts/roboto/LICENSE.txt +202 -0
- streamdeck_ui/fonts/roboto/Roboto-Black.ttf +0 -0
- streamdeck_ui/fonts/roboto/Roboto-BlackItalic.ttf +0 -0
- streamdeck_ui/fonts/roboto/Roboto-Bold.ttf +0 -0
- streamdeck_ui/fonts/roboto/Roboto-BoldItalic.ttf +0 -0
- streamdeck_ui/fonts/roboto/Roboto-Italic.ttf +0 -0
- streamdeck_ui/fonts/roboto/Roboto-Light.ttf +0 -0
- streamdeck_ui/fonts/roboto/Roboto-LightItalic.ttf +0 -0
- streamdeck_ui/fonts/roboto/Roboto-Medium.ttf +0 -0
- streamdeck_ui/fonts/roboto/Roboto-MediumItalic.ttf +0 -0
- streamdeck_ui/fonts/roboto/Roboto-Regular.ttf +0 -0
- streamdeck_ui/fonts/roboto/Roboto-Thin.ttf +0 -0
- streamdeck_ui/fonts/roboto/Roboto-ThinItalic.ttf +0 -0
- streamdeck_ui/gui.py +1423 -0
- streamdeck_ui/icons/add_page.png +0 -0
- streamdeck_ui/icons/cross.png +0 -0
- streamdeck_ui/icons/gear.png +0 -0
- streamdeck_ui/icons/horizontal-align.png +0 -0
- streamdeck_ui/icons/remove_page.png +0 -0
- streamdeck_ui/icons/vertical-align.png +0 -0
- streamdeck_ui/icons/warning_icon_button.png +0 -0
- streamdeck_ui/logger.py +11 -0
- streamdeck_ui/logo.png +0 -0
- streamdeck_ui/main.ui +407 -0
- streamdeck_ui/mock_streamdeck.py +204 -0
- streamdeck_ui/model.py +78 -0
- streamdeck_ui/modules/__init__.py +0 -0
- streamdeck_ui/modules/fonts.py +150 -0
- streamdeck_ui/modules/keyboard.py +447 -0
- streamdeck_ui/modules/utils/__init__.py +0 -0
- streamdeck_ui/modules/utils/timers.py +35 -0
- streamdeck_ui/resources.qrc +10 -0
- streamdeck_ui/resources_rc.py +324 -0
- streamdeck_ui/semaphore.py +38 -0
- streamdeck_ui/settings.ui +155 -0
- streamdeck_ui/stream_deck_monitor.py +157 -0
- streamdeck_ui/ui_button.py +421 -0
- streamdeck_ui/ui_main.py +267 -0
- streamdeck_ui/ui_settings.py +119 -0
streamdeck_ui/ui_main.py
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
################################################################################
|
|
4
|
+
## Form generated from reading UI file 'main.ui'
|
|
5
|
+
##
|
|
6
|
+
## Created by: Qt User Interface Compiler version 6.5.3
|
|
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 (QAction, QBrush, QColor, QConicalGradient,
|
|
15
|
+
QCursor, QFont, QFontDatabase, QGradient,
|
|
16
|
+
QIcon, QImage, QKeySequence, QLinearGradient,
|
|
17
|
+
QPainter, QPalette, QPixmap, QRadialGradient,
|
|
18
|
+
QTransform)
|
|
19
|
+
from PySide6.QtWidgets import (QApplication, QComboBox, QGridLayout, QGroupBox,
|
|
20
|
+
QHBoxLayout, QLayout, QMainWindow, QMenu,
|
|
21
|
+
QMenuBar, QProgressBar, QPushButton, QSizePolicy,
|
|
22
|
+
QSpacerItem, QStatusBar, QTabWidget, QVBoxLayout,
|
|
23
|
+
QWidget)
|
|
24
|
+
from . import resources_rc
|
|
25
|
+
|
|
26
|
+
class Ui_MainWindow(object):
|
|
27
|
+
def setupUi(self, MainWindow):
|
|
28
|
+
if not MainWindow.objectName():
|
|
29
|
+
MainWindow.setObjectName(u"MainWindow")
|
|
30
|
+
MainWindow.resize(940, 766)
|
|
31
|
+
self.actionImport = QAction(MainWindow)
|
|
32
|
+
self.actionImport.setObjectName(u"actionImport")
|
|
33
|
+
self.actionExport = QAction(MainWindow)
|
|
34
|
+
self.actionExport.setObjectName(u"actionExport")
|
|
35
|
+
self.actionExit = QAction(MainWindow)
|
|
36
|
+
self.actionExit.setObjectName(u"actionExit")
|
|
37
|
+
self.actionDocs = QAction(MainWindow)
|
|
38
|
+
self.actionDocs.setObjectName(u"actionDocs")
|
|
39
|
+
self.actionGithub = QAction(MainWindow)
|
|
40
|
+
self.actionGithub.setObjectName(u"actionGithub")
|
|
41
|
+
self.actionAbout = QAction(MainWindow)
|
|
42
|
+
self.actionAbout.setObjectName(u"actionAbout")
|
|
43
|
+
self.centralwidget = QWidget(MainWindow)
|
|
44
|
+
self.centralwidget.setObjectName(u"centralwidget")
|
|
45
|
+
self.centralwidget.setAutoFillBackground(False)
|
|
46
|
+
self.horizontalLayout = QHBoxLayout(self.centralwidget)
|
|
47
|
+
self.horizontalLayout.setSpacing(6)
|
|
48
|
+
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
|
49
|
+
self.horizontalLayout.setContentsMargins(9, -1, -1, 3)
|
|
50
|
+
self.main_horizontalLayout = QHBoxLayout()
|
|
51
|
+
self.main_horizontalLayout.setSpacing(12)
|
|
52
|
+
self.main_horizontalLayout.setObjectName(u"main_horizontalLayout")
|
|
53
|
+
self.main_horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
|
54
|
+
self.left_verticalLayout = QVBoxLayout()
|
|
55
|
+
self.left_verticalLayout.setSpacing(6)
|
|
56
|
+
self.left_verticalLayout.setObjectName(u"left_verticalLayout")
|
|
57
|
+
self.left_verticalLayout.setSizeConstraint(QLayout.SetDefaultConstraint)
|
|
58
|
+
self.left_verticalLayout.setContentsMargins(-1, 0, -1, -1)
|
|
59
|
+
self.deviceSettings_horizontalLayout = QHBoxLayout()
|
|
60
|
+
self.deviceSettings_horizontalLayout.setObjectName(u"deviceSettings_horizontalLayout")
|
|
61
|
+
self.deviceSettings_horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
|
62
|
+
self.device_list = QComboBox(self.centralwidget)
|
|
63
|
+
self.device_list.setObjectName(u"device_list")
|
|
64
|
+
self.device_list.setMinimumSize(QSize(400, 0))
|
|
65
|
+
|
|
66
|
+
self.deviceSettings_horizontalLayout.addWidget(self.device_list)
|
|
67
|
+
|
|
68
|
+
self.settingsButton = QPushButton(self.centralwidget)
|
|
69
|
+
self.settingsButton.setObjectName(u"settingsButton")
|
|
70
|
+
sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Expanding)
|
|
71
|
+
sizePolicy.setHorizontalStretch(0)
|
|
72
|
+
sizePolicy.setVerticalStretch(0)
|
|
73
|
+
sizePolicy.setHeightForWidth(self.settingsButton.sizePolicy().hasHeightForWidth())
|
|
74
|
+
self.settingsButton.setSizePolicy(sizePolicy)
|
|
75
|
+
self.settingsButton.setMinimumSize(QSize(0, 0))
|
|
76
|
+
self.settingsButton.setMaximumSize(QSize(30, 16777215))
|
|
77
|
+
icon = QIcon()
|
|
78
|
+
icon.addFile(u":/icons/icons/gear.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
79
|
+
self.settingsButton.setIcon(icon)
|
|
80
|
+
|
|
81
|
+
self.deviceSettings_horizontalLayout.addWidget(self.settingsButton)
|
|
82
|
+
|
|
83
|
+
self.cpu_usage = QProgressBar(self.centralwidget)
|
|
84
|
+
self.cpu_usage.setObjectName(u"cpu_usage")
|
|
85
|
+
sizePolicy1 = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Expanding)
|
|
86
|
+
sizePolicy1.setHorizontalStretch(0)
|
|
87
|
+
sizePolicy1.setVerticalStretch(0)
|
|
88
|
+
sizePolicy1.setHeightForWidth(self.cpu_usage.sizePolicy().hasHeightForWidth())
|
|
89
|
+
self.cpu_usage.setSizePolicy(sizePolicy1)
|
|
90
|
+
self.cpu_usage.setMaximumSize(QSize(25, 25))
|
|
91
|
+
self.cpu_usage.setMaximum(130)
|
|
92
|
+
self.cpu_usage.setValue(0)
|
|
93
|
+
self.cpu_usage.setOrientation(Qt.Vertical)
|
|
94
|
+
|
|
95
|
+
self.deviceSettings_horizontalLayout.addWidget(self.cpu_usage)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
self.left_verticalLayout.addLayout(self.deviceSettings_horizontalLayout)
|
|
99
|
+
|
|
100
|
+
self.pageActions = QHBoxLayout()
|
|
101
|
+
self.pageActions.setObjectName(u"pageActions")
|
|
102
|
+
self.pageActions.setContentsMargins(0, 0, 0, -1)
|
|
103
|
+
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
|
104
|
+
|
|
105
|
+
self.pageActions.addItem(self.horizontalSpacer)
|
|
106
|
+
|
|
107
|
+
self.add_page = QPushButton(self.centralwidget)
|
|
108
|
+
self.add_page.setObjectName(u"add_page")
|
|
109
|
+
sizePolicy.setHeightForWidth(self.add_page.sizePolicy().hasHeightForWidth())
|
|
110
|
+
self.add_page.setSizePolicy(sizePolicy)
|
|
111
|
+
self.add_page.setMaximumSize(QSize(16777215, 16777215))
|
|
112
|
+
icon1 = QIcon()
|
|
113
|
+
icon1.addFile(u":/icons/icons/add_page.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
114
|
+
self.add_page.setIcon(icon1)
|
|
115
|
+
|
|
116
|
+
self.pageActions.addWidget(self.add_page)
|
|
117
|
+
|
|
118
|
+
self.remove_page = QPushButton(self.centralwidget)
|
|
119
|
+
self.remove_page.setObjectName(u"remove_page")
|
|
120
|
+
icon2 = QIcon()
|
|
121
|
+
icon2.addFile(u":/icons/icons/remove_page.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
122
|
+
self.remove_page.setIcon(icon2)
|
|
123
|
+
|
|
124
|
+
self.pageActions.addWidget(self.remove_page)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
self.left_verticalLayout.addLayout(self.pageActions)
|
|
128
|
+
|
|
129
|
+
self.pages = QTabWidget(self.centralwidget)
|
|
130
|
+
self.pages.setObjectName(u"pages")
|
|
131
|
+
sizePolicy2 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)
|
|
132
|
+
sizePolicy2.setHorizontalStretch(0)
|
|
133
|
+
sizePolicy2.setVerticalStretch(0)
|
|
134
|
+
sizePolicy2.setHeightForWidth(self.pages.sizePolicy().hasHeightForWidth())
|
|
135
|
+
self.pages.setSizePolicy(sizePolicy2)
|
|
136
|
+
self.pages.setAutoFillBackground(False)
|
|
137
|
+
self.pages.setStyleSheet(u"b")
|
|
138
|
+
self.page_1 = QWidget()
|
|
139
|
+
self.page_1.setObjectName(u"page_1")
|
|
140
|
+
self.gridLayout_2 = QGridLayout(self.page_1)
|
|
141
|
+
self.gridLayout_2.setObjectName(u"gridLayout_2")
|
|
142
|
+
self.pages.addTab(self.page_1, "")
|
|
143
|
+
|
|
144
|
+
self.left_verticalLayout.addWidget(self.pages)
|
|
145
|
+
|
|
146
|
+
self.left_verticalLayout.setStretch(2, 1)
|
|
147
|
+
|
|
148
|
+
self.main_horizontalLayout.addLayout(self.left_verticalLayout)
|
|
149
|
+
|
|
150
|
+
self.right_horizontalLayout = QHBoxLayout()
|
|
151
|
+
self.right_horizontalLayout.setObjectName(u"right_horizontalLayout")
|
|
152
|
+
self.groupBox = QGroupBox(self.centralwidget)
|
|
153
|
+
self.groupBox.setObjectName(u"groupBox")
|
|
154
|
+
self.groupBox.setMinimumSize(QSize(250, 0))
|
|
155
|
+
self.verticalLayout_3 = QVBoxLayout(self.groupBox)
|
|
156
|
+
self.verticalLayout_3.setSpacing(10)
|
|
157
|
+
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
|
158
|
+
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
|
|
159
|
+
self.button_actions = QHBoxLayout()
|
|
160
|
+
self.button_actions.setObjectName(u"button_actions")
|
|
161
|
+
self.button_actions.setContentsMargins(-1, 10, -1, 0)
|
|
162
|
+
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
|
163
|
+
|
|
164
|
+
self.button_actions.addItem(self.horizontalSpacer_2)
|
|
165
|
+
|
|
166
|
+
self.add_button_state = QPushButton(self.groupBox)
|
|
167
|
+
self.add_button_state.setObjectName(u"add_button_state")
|
|
168
|
+
self.add_button_state.setIcon(icon1)
|
|
169
|
+
|
|
170
|
+
self.button_actions.addWidget(self.add_button_state)
|
|
171
|
+
|
|
172
|
+
self.remove_button_state = QPushButton(self.groupBox)
|
|
173
|
+
self.remove_button_state.setObjectName(u"remove_button_state")
|
|
174
|
+
self.remove_button_state.setIcon(icon2)
|
|
175
|
+
|
|
176
|
+
self.button_actions.addWidget(self.remove_button_state)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
self.verticalLayout_3.addLayout(self.button_actions)
|
|
180
|
+
|
|
181
|
+
self.button_states = QTabWidget(self.groupBox)
|
|
182
|
+
self.button_states.setObjectName(u"button_states")
|
|
183
|
+
self.tab = QWidget()
|
|
184
|
+
self.tab.setObjectName(u"tab")
|
|
185
|
+
self.verticalLayout = QVBoxLayout(self.tab)
|
|
186
|
+
self.verticalLayout.setObjectName(u"verticalLayout")
|
|
187
|
+
self.button_states.addTab(self.tab, "")
|
|
188
|
+
|
|
189
|
+
self.verticalLayout_3.addWidget(self.button_states)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
self.right_horizontalLayout.addWidget(self.groupBox)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
self.main_horizontalLayout.addLayout(self.right_horizontalLayout)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
self.horizontalLayout.addLayout(self.main_horizontalLayout)
|
|
199
|
+
|
|
200
|
+
MainWindow.setCentralWidget(self.centralwidget)
|
|
201
|
+
self.menubar = QMenuBar(MainWindow)
|
|
202
|
+
self.menubar.setObjectName(u"menubar")
|
|
203
|
+
self.menubar.setGeometry(QRect(0, 0, 940, 33))
|
|
204
|
+
self.menuFile = QMenu(self.menubar)
|
|
205
|
+
self.menuFile.setObjectName(u"menuFile")
|
|
206
|
+
self.menuHelp = QMenu(self.menubar)
|
|
207
|
+
self.menuHelp.setObjectName(u"menuHelp")
|
|
208
|
+
MainWindow.setMenuBar(self.menubar)
|
|
209
|
+
self.statusbar = QStatusBar(MainWindow)
|
|
210
|
+
self.statusbar.setObjectName(u"statusbar")
|
|
211
|
+
MainWindow.setStatusBar(self.statusbar)
|
|
212
|
+
QWidget.setTabOrder(self.device_list, self.settingsButton)
|
|
213
|
+
QWidget.setTabOrder(self.settingsButton, self.pages)
|
|
214
|
+
|
|
215
|
+
self.menubar.addAction(self.menuFile.menuAction())
|
|
216
|
+
self.menubar.addAction(self.menuHelp.menuAction())
|
|
217
|
+
self.menuFile.addAction(self.actionImport)
|
|
218
|
+
self.menuFile.addAction(self.actionExport)
|
|
219
|
+
self.menuFile.addSeparator()
|
|
220
|
+
self.menuFile.addAction(self.actionExit)
|
|
221
|
+
self.menuHelp.addAction(self.actionDocs)
|
|
222
|
+
self.menuHelp.addAction(self.actionGithub)
|
|
223
|
+
self.menuHelp.addSeparator()
|
|
224
|
+
self.menuHelp.addAction(self.actionAbout)
|
|
225
|
+
|
|
226
|
+
self.retranslateUi(MainWindow)
|
|
227
|
+
|
|
228
|
+
self.pages.setCurrentIndex(0)
|
|
229
|
+
self.button_states.setCurrentIndex(0)
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
QMetaObject.connectSlotsByName(MainWindow)
|
|
233
|
+
# setupUi
|
|
234
|
+
|
|
235
|
+
def retranslateUi(self, MainWindow):
|
|
236
|
+
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"Stream Deck UI", None))
|
|
237
|
+
self.actionImport.setText(QCoreApplication.translate("MainWindow", u"Import", None))
|
|
238
|
+
self.actionExport.setText(QCoreApplication.translate("MainWindow", u"Export", None))
|
|
239
|
+
self.actionExit.setText(QCoreApplication.translate("MainWindow", u"Exit", None))
|
|
240
|
+
self.actionDocs.setText(QCoreApplication.translate("MainWindow", u"Documentation", None))
|
|
241
|
+
self.actionGithub.setText(QCoreApplication.translate("MainWindow", u"Github", None))
|
|
242
|
+
self.actionAbout.setText(QCoreApplication.translate("MainWindow", u"About...", None))
|
|
243
|
+
self.settingsButton.setText("")
|
|
244
|
+
self.cpu_usage.setFormat("")
|
|
245
|
+
#if QT_CONFIG(tooltip)
|
|
246
|
+
self.add_page.setToolTip(QCoreApplication.translate("MainWindow", u"Add new page", None))
|
|
247
|
+
#endif // QT_CONFIG(tooltip)
|
|
248
|
+
self.add_page.setText("")
|
|
249
|
+
#if QT_CONFIG(tooltip)
|
|
250
|
+
self.remove_page.setToolTip(QCoreApplication.translate("MainWindow", u"Delete current page", None))
|
|
251
|
+
#endif // QT_CONFIG(tooltip)
|
|
252
|
+
self.remove_page.setText("")
|
|
253
|
+
self.pages.setTabText(self.pages.indexOf(self.page_1), "")
|
|
254
|
+
self.groupBox.setTitle(QCoreApplication.translate("MainWindow", u"Configure Button", None))
|
|
255
|
+
#if QT_CONFIG(tooltip)
|
|
256
|
+
self.add_button_state.setToolTip(QCoreApplication.translate("MainWindow", u"Add a new button state", None))
|
|
257
|
+
#endif // QT_CONFIG(tooltip)
|
|
258
|
+
self.add_button_state.setText("")
|
|
259
|
+
#if QT_CONFIG(tooltip)
|
|
260
|
+
self.remove_button_state.setToolTip(QCoreApplication.translate("MainWindow", u"Remove current selected button state", None))
|
|
261
|
+
#endif // QT_CONFIG(tooltip)
|
|
262
|
+
self.remove_button_state.setText("")
|
|
263
|
+
self.button_states.setTabText(self.button_states.indexOf(self.tab), "")
|
|
264
|
+
self.menuFile.setTitle(QCoreApplication.translate("MainWindow", u"File", None))
|
|
265
|
+
self.menuHelp.setTitle(QCoreApplication.translate("MainWindow", u"Help", None))
|
|
266
|
+
# retranslateUi
|
|
267
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
################################################################################
|
|
4
|
+
## Form generated from reading UI file 'settings.ui'
|
|
5
|
+
##
|
|
6
|
+
## Created by: Qt User Interface Compiler version 6.5.3
|
|
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 (QAbstractButton, QApplication, QComboBox, QDialog,
|
|
19
|
+
QDialogButtonBox, QFormLayout, QLabel, QSizePolicy,
|
|
20
|
+
QSlider, QVBoxLayout, QWidget)
|
|
21
|
+
from . import resources_rc
|
|
22
|
+
|
|
23
|
+
class Ui_SettingsDialog(object):
|
|
24
|
+
def setupUi(self, SettingsDialog):
|
|
25
|
+
if not SettingsDialog.objectName():
|
|
26
|
+
SettingsDialog.setObjectName(u"SettingsDialog")
|
|
27
|
+
SettingsDialog.setWindowModality(Qt.ApplicationModal)
|
|
28
|
+
SettingsDialog.resize(452, 156)
|
|
29
|
+
sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
|
|
30
|
+
sizePolicy.setHorizontalStretch(0)
|
|
31
|
+
sizePolicy.setVerticalStretch(0)
|
|
32
|
+
sizePolicy.setHeightForWidth(SettingsDialog.sizePolicy().hasHeightForWidth())
|
|
33
|
+
SettingsDialog.setSizePolicy(sizePolicy)
|
|
34
|
+
icon = QIcon()
|
|
35
|
+
icon.addFile(u":/icons/icons/gear.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
36
|
+
SettingsDialog.setWindowIcon(icon)
|
|
37
|
+
self.verticalLayout = QVBoxLayout(SettingsDialog)
|
|
38
|
+
self.verticalLayout.setObjectName(u"verticalLayout")
|
|
39
|
+
self.verticalLayout.setContentsMargins(9, -1, -1, -1)
|
|
40
|
+
self.verticalLayout_2 = QVBoxLayout()
|
|
41
|
+
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
|
42
|
+
self.formLayout = QFormLayout()
|
|
43
|
+
self.formLayout.setObjectName(u"formLayout")
|
|
44
|
+
self.formLayout.setHorizontalSpacing(30)
|
|
45
|
+
self.formLayout.setVerticalSpacing(6)
|
|
46
|
+
self.label = QLabel(SettingsDialog)
|
|
47
|
+
self.label.setObjectName(u"label")
|
|
48
|
+
|
|
49
|
+
self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label)
|
|
50
|
+
|
|
51
|
+
self.label_streamdeck = QLabel(SettingsDialog)
|
|
52
|
+
self.label_streamdeck.setObjectName(u"label_streamdeck")
|
|
53
|
+
|
|
54
|
+
self.formLayout.setWidget(0, QFormLayout.FieldRole, self.label_streamdeck)
|
|
55
|
+
|
|
56
|
+
self.label_brightness = QLabel(SettingsDialog)
|
|
57
|
+
self.label_brightness.setObjectName(u"label_brightness")
|
|
58
|
+
|
|
59
|
+
self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_brightness)
|
|
60
|
+
|
|
61
|
+
self.brightness = QSlider(SettingsDialog)
|
|
62
|
+
self.brightness.setObjectName(u"brightness")
|
|
63
|
+
self.brightness.setOrientation(Qt.Horizontal)
|
|
64
|
+
|
|
65
|
+
self.formLayout.setWidget(1, QFormLayout.FieldRole, self.brightness)
|
|
66
|
+
|
|
67
|
+
self.label_dim = QLabel(SettingsDialog)
|
|
68
|
+
self.label_dim.setObjectName(u"label_dim")
|
|
69
|
+
|
|
70
|
+
self.formLayout.setWidget(2, QFormLayout.LabelRole, self.label_dim)
|
|
71
|
+
|
|
72
|
+
self.dim = QComboBox(SettingsDialog)
|
|
73
|
+
self.dim.setObjectName(u"dim")
|
|
74
|
+
|
|
75
|
+
self.formLayout.setWidget(2, QFormLayout.FieldRole, self.dim)
|
|
76
|
+
|
|
77
|
+
self.label_brightness_dimmed = QLabel(SettingsDialog)
|
|
78
|
+
self.label_brightness_dimmed.setObjectName(u"label_brightness_dimmed")
|
|
79
|
+
|
|
80
|
+
self.formLayout.setWidget(3, QFormLayout.LabelRole, self.label_brightness_dimmed)
|
|
81
|
+
|
|
82
|
+
self.brightness_dimmed = QSlider(SettingsDialog)
|
|
83
|
+
self.brightness_dimmed.setObjectName(u"brightness_dimmed")
|
|
84
|
+
self.brightness_dimmed.setOrientation(Qt.Horizontal)
|
|
85
|
+
|
|
86
|
+
self.formLayout.setWidget(3, QFormLayout.FieldRole, self.brightness_dimmed)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
self.verticalLayout_2.addLayout(self.formLayout)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
self.verticalLayout.addLayout(self.verticalLayout_2)
|
|
93
|
+
|
|
94
|
+
self.buttonBox = QDialogButtonBox(SettingsDialog)
|
|
95
|
+
self.buttonBox.setObjectName(u"buttonBox")
|
|
96
|
+
self.buttonBox.setOrientation(Qt.Horizontal)
|
|
97
|
+
self.buttonBox.setStandardButtons(QDialogButtonBox.Cancel|QDialogButtonBox.Ok)
|
|
98
|
+
self.buttonBox.setCenterButtons(False)
|
|
99
|
+
|
|
100
|
+
self.verticalLayout.addWidget(self.buttonBox)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
self.retranslateUi(SettingsDialog)
|
|
104
|
+
self.buttonBox.accepted.connect(SettingsDialog.accept)
|
|
105
|
+
self.buttonBox.rejected.connect(SettingsDialog.reject)
|
|
106
|
+
|
|
107
|
+
QMetaObject.connectSlotsByName(SettingsDialog)
|
|
108
|
+
# setupUi
|
|
109
|
+
|
|
110
|
+
def retranslateUi(self, SettingsDialog):
|
|
111
|
+
SettingsDialog.setWindowTitle(QCoreApplication.translate("SettingsDialog", u"Stream Deck Settings", None))
|
|
112
|
+
self.label.setText(QCoreApplication.translate("SettingsDialog", u"Stream Deck:", None))
|
|
113
|
+
self.label_streamdeck.setText("")
|
|
114
|
+
self.label_brightness.setText(QCoreApplication.translate("SettingsDialog", u"Brightness:", None))
|
|
115
|
+
self.label_dim.setText(QCoreApplication.translate("SettingsDialog", u"Auto dim after:", None))
|
|
116
|
+
self.dim.setCurrentText("")
|
|
117
|
+
self.label_brightness_dimmed.setText(QCoreApplication.translate("SettingsDialog", u"Dim to %:", None))
|
|
118
|
+
# retranslateUi
|
|
119
|
+
|