src/eric7/Preferences/ConfigurationPages/Ui_NotificationsPage.py

branch
eric7
changeset 10743
5d3a5a05114e
child 10745
2921faddeaec
equal deleted inserted replaced
10742:7aa41173b44b 10743:5d3a5a05114e
1 # Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_default/src/eric7/Preferences/ConfigurationPages/NotificationsPage.ui'
2 #
3 # Created by: PyQt6 UI code generator 6.7.0
4 #
5 # WARNING: Any manual changes made to this file will be lost when pyuic6 is
6 # run again. Do not edit this file unless you know what you are doing.
7
8
9 from PyQt6 import QtCore, QtGui, QtWidgets
10
11
12 class Ui_NotificationsPage(object):
13 def setupUi(self, NotificationsPage):
14 NotificationsPage.setObjectName("NotificationsPage")
15 NotificationsPage.resize(550, 615)
16 NotificationsPage.setWindowTitle("")
17 self.verticalLayout_3 = QtWidgets.QVBoxLayout(NotificationsPage)
18 self.verticalLayout_3.setObjectName("verticalLayout_3")
19 self.headerLabel = QtWidgets.QLabel(parent=NotificationsPage)
20 self.headerLabel.setObjectName("headerLabel")
21 self.verticalLayout_3.addWidget(self.headerLabel)
22 self.line11 = QtWidgets.QFrame(parent=NotificationsPage)
23 self.line11.setFrameShape(QtWidgets.QFrame.Shape.HLine)
24 self.line11.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
25 self.line11.setFrameShape(QtWidgets.QFrame.Shape.HLine)
26 self.line11.setObjectName("line11")
27 self.verticalLayout_3.addWidget(self.line11)
28 self.gridLayout_2 = QtWidgets.QGridLayout()
29 self.gridLayout_2.setObjectName("gridLayout_2")
30 self.label = QtWidgets.QLabel(parent=NotificationsPage)
31 self.label.setObjectName("label")
32 self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
33 self.timeoutSpinBox = QtWidgets.QSpinBox(parent=NotificationsPage)
34 self.timeoutSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
35 self.timeoutSpinBox.setMinimum(1)
36 self.timeoutSpinBox.setMaximum(10)
37 self.timeoutSpinBox.setObjectName("timeoutSpinBox")
38 self.gridLayout_2.addWidget(self.timeoutSpinBox, 0, 1, 1, 1)
39 spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
40 self.gridLayout_2.addItem(spacerItem, 0, 2, 1, 1)
41 self.groupBox = QtWidgets.QGroupBox(parent=NotificationsPage)
42 self.groupBox.setObjectName("groupBox")
43 self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
44 self.gridLayout.setObjectName("gridLayout")
45 self.label_2 = QtWidgets.QLabel(parent=self.groupBox)
46 self.label_2.setObjectName("label_2")
47 self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
48 self.xSpinBox = QtWidgets.QSpinBox(parent=self.groupBox)
49 self.xSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
50 self.xSpinBox.setMinimum(-10000)
51 self.xSpinBox.setMaximum(10000)
52 self.xSpinBox.setObjectName("xSpinBox")
53 self.gridLayout.addWidget(self.xSpinBox, 0, 1, 1, 1)
54 self.label_3 = QtWidgets.QLabel(parent=self.groupBox)
55 self.label_3.setObjectName("label_3")
56 self.gridLayout.addWidget(self.label_3, 0, 2, 1, 1)
57 self.ySpinBox = QtWidgets.QSpinBox(parent=self.groupBox)
58 self.ySpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
59 self.ySpinBox.setMinimum(-10000)
60 self.ySpinBox.setMaximum(10000)
61 self.ySpinBox.setObjectName("ySpinBox")
62 self.gridLayout.addWidget(self.ySpinBox, 0, 3, 1, 1)
63 self.visualButton = QtWidgets.QPushButton(parent=self.groupBox)
64 self.visualButton.setCheckable(True)
65 self.visualButton.setObjectName("visualButton")
66 self.gridLayout.addWidget(self.visualButton, 1, 0, 1, 4)
67 self.gridLayout_2.addWidget(self.groupBox, 1, 0, 1, 2)
68 self.verticalLayout_3.addLayout(self.gridLayout_2)
69 self.groupBox_2 = QtWidgets.QGroupBox(parent=NotificationsPage)
70 self.groupBox_2.setObjectName("groupBox_2")
71 self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2)
72 self.gridLayout_3.setObjectName("gridLayout_3")
73 self.warningFgButton = QtWidgets.QPushButton(parent=self.groupBox_2)
74 self.warningFgButton.setObjectName("warningFgButton")
75 self.gridLayout_3.addWidget(self.warningFgButton, 0, 0, 1, 1)
76 self.warningBgButton = QtWidgets.QPushButton(parent=self.groupBox_2)
77 self.warningBgButton.setObjectName("warningBgButton")
78 self.gridLayout_3.addWidget(self.warningBgButton, 0, 1, 1, 1)
79 self.warningResetButton = QtWidgets.QPushButton(parent=self.groupBox_2)
80 self.warningResetButton.setObjectName("warningResetButton")
81 self.gridLayout_3.addWidget(self.warningResetButton, 0, 2, 1, 1)
82 self.warningDefaultButton = QtWidgets.QPushButton(parent=self.groupBox_2)
83 self.warningDefaultButton.setObjectName("warningDefaultButton")
84 self.gridLayout_3.addWidget(self.warningDefaultButton, 0, 3, 1, 1)
85 self.warningFrame = QtWidgets.QFrame(parent=self.groupBox_2)
86 self.warningFrame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
87 self.warningFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
88 self.warningFrame.setObjectName("warningFrame")
89 self.horizontalLayout = QtWidgets.QHBoxLayout(self.warningFrame)
90 self.horizontalLayout.setObjectName("horizontalLayout")
91 self.warningIcon = QtWidgets.QLabel(parent=self.warningFrame)
92 self.warningIcon.setMaximumSize(QtCore.QSize(48, 48))
93 self.warningIcon.setText("")
94 self.warningIcon.setObjectName("warningIcon")
95 self.horizontalLayout.addWidget(self.warningIcon)
96 self.warningLayout = QtWidgets.QVBoxLayout()
97 self.warningLayout.setObjectName("warningLayout")
98 self.warningHeading = QtWidgets.QLabel(parent=self.warningFrame)
99 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
100 sizePolicy.setHorizontalStretch(0)
101 sizePolicy.setVerticalStretch(0)
102 sizePolicy.setHeightForWidth(self.warningHeading.sizePolicy().hasHeightForWidth())
103 self.warningHeading.setSizePolicy(sizePolicy)
104 self.warningHeading.setMinimumSize(QtCore.QSize(335, 0))
105 font = QtGui.QFont()
106 font.setBold(True)
107 font.setWeight(75)
108 self.warningHeading.setFont(font)
109 self.warningHeading.setObjectName("warningHeading")
110 self.warningLayout.addWidget(self.warningHeading)
111 self.warningMessage = QtWidgets.QLabel(parent=self.warningFrame)
112 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
113 sizePolicy.setHorizontalStretch(0)
114 sizePolicy.setVerticalStretch(0)
115 sizePolicy.setHeightForWidth(self.warningMessage.sizePolicy().hasHeightForWidth())
116 self.warningMessage.setSizePolicy(sizePolicy)
117 self.warningMessage.setMinimumSize(QtCore.QSize(335, 0))
118 self.warningMessage.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
119 self.warningMessage.setWordWrap(True)
120 self.warningMessage.setObjectName("warningMessage")
121 self.warningLayout.addWidget(self.warningMessage)
122 self.horizontalLayout.addLayout(self.warningLayout)
123 self.gridLayout_3.addWidget(self.warningFrame, 1, 0, 1, 4)
124 self.verticalLayout_3.addWidget(self.groupBox_2)
125 self.groupBox_3 = QtWidgets.QGroupBox(parent=NotificationsPage)
126 self.groupBox_3.setObjectName("groupBox_3")
127 self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3)
128 self.gridLayout_4.setObjectName("gridLayout_4")
129 self.criticalFgButton = QtWidgets.QPushButton(parent=self.groupBox_3)
130 self.criticalFgButton.setObjectName("criticalFgButton")
131 self.gridLayout_4.addWidget(self.criticalFgButton, 0, 0, 1, 1)
132 self.criticalBgButton = QtWidgets.QPushButton(parent=self.groupBox_3)
133 self.criticalBgButton.setObjectName("criticalBgButton")
134 self.gridLayout_4.addWidget(self.criticalBgButton, 0, 1, 1, 1)
135 self.criticalResetButton = QtWidgets.QPushButton(parent=self.groupBox_3)
136 self.criticalResetButton.setObjectName("criticalResetButton")
137 self.gridLayout_4.addWidget(self.criticalResetButton, 0, 2, 1, 1)
138 self.criticalDefaultButton = QtWidgets.QPushButton(parent=self.groupBox_3)
139 self.criticalDefaultButton.setObjectName("criticalDefaultButton")
140 self.gridLayout_4.addWidget(self.criticalDefaultButton, 0, 3, 1, 1)
141 self.criticalFrame = QtWidgets.QFrame(parent=self.groupBox_3)
142 self.criticalFrame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
143 self.criticalFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
144 self.criticalFrame.setObjectName("criticalFrame")
145 self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.criticalFrame)
146 self.horizontalLayout_2.setObjectName("horizontalLayout_2")
147 self.criticalIcon = QtWidgets.QLabel(parent=self.criticalFrame)
148 self.criticalIcon.setMaximumSize(QtCore.QSize(48, 48))
149 self.criticalIcon.setText("")
150 self.criticalIcon.setObjectName("criticalIcon")
151 self.horizontalLayout_2.addWidget(self.criticalIcon)
152 self.criticalLayout = QtWidgets.QVBoxLayout()
153 self.criticalLayout.setObjectName("criticalLayout")
154 self.criticalHeading = QtWidgets.QLabel(parent=self.criticalFrame)
155 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
156 sizePolicy.setHorizontalStretch(0)
157 sizePolicy.setVerticalStretch(0)
158 sizePolicy.setHeightForWidth(self.criticalHeading.sizePolicy().hasHeightForWidth())
159 self.criticalHeading.setSizePolicy(sizePolicy)
160 self.criticalHeading.setMinimumSize(QtCore.QSize(335, 0))
161 font = QtGui.QFont()
162 font.setBold(True)
163 font.setWeight(75)
164 self.criticalHeading.setFont(font)
165 self.criticalHeading.setObjectName("criticalHeading")
166 self.criticalLayout.addWidget(self.criticalHeading)
167 self.criticalMessage = QtWidgets.QLabel(parent=self.criticalFrame)
168 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
169 sizePolicy.setHorizontalStretch(0)
170 sizePolicy.setVerticalStretch(0)
171 sizePolicy.setHeightForWidth(self.criticalMessage.sizePolicy().hasHeightForWidth())
172 self.criticalMessage.setSizePolicy(sizePolicy)
173 self.criticalMessage.setMinimumSize(QtCore.QSize(335, 0))
174 self.criticalMessage.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
175 self.criticalMessage.setWordWrap(True)
176 self.criticalMessage.setObjectName("criticalMessage")
177 self.criticalLayout.addWidget(self.criticalMessage)
178 self.horizontalLayout_2.addLayout(self.criticalLayout)
179 self.gridLayout_4.addWidget(self.criticalFrame, 1, 0, 1, 4)
180 self.verticalLayout_3.addWidget(self.groupBox_3)
181 spacerItem1 = QtWidgets.QSpacerItem(20, 142, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
182 self.verticalLayout_3.addItem(spacerItem1)
183
184 self.retranslateUi(NotificationsPage)
185 QtCore.QMetaObject.connectSlotsByName(NotificationsPage)
186 NotificationsPage.setTabOrder(self.timeoutSpinBox, self.xSpinBox)
187 NotificationsPage.setTabOrder(self.xSpinBox, self.ySpinBox)
188 NotificationsPage.setTabOrder(self.ySpinBox, self.visualButton)
189 NotificationsPage.setTabOrder(self.visualButton, self.warningFgButton)
190 NotificationsPage.setTabOrder(self.warningFgButton, self.warningBgButton)
191 NotificationsPage.setTabOrder(self.warningBgButton, self.warningResetButton)
192 NotificationsPage.setTabOrder(self.warningResetButton, self.warningDefaultButton)
193 NotificationsPage.setTabOrder(self.warningDefaultButton, self.criticalFgButton)
194 NotificationsPage.setTabOrder(self.criticalFgButton, self.criticalBgButton)
195 NotificationsPage.setTabOrder(self.criticalBgButton, self.criticalResetButton)
196 NotificationsPage.setTabOrder(self.criticalResetButton, self.criticalDefaultButton)
197
198 def retranslateUi(self, NotificationsPage):
199 _translate = QtCore.QCoreApplication.translate
200 self.headerLabel.setText(_translate("NotificationsPage", "<b>Configure notification settings</b>"))
201 self.label.setText(_translate("NotificationsPage", "Auto Close Timeout:"))
202 self.timeoutSpinBox.setToolTip(_translate("NotificationsPage", "Enter the timeout for closing the notification"))
203 self.timeoutSpinBox.setSuffix(_translate("NotificationsPage", " s"))
204 self.groupBox.setTitle(_translate("NotificationsPage", "Position"))
205 self.label_2.setText(_translate("NotificationsPage", "X:"))
206 self.xSpinBox.setToolTip(_translate("NotificationsPage", "Enter the X-position the notification should be shown at"))
207 self.label_3.setText(_translate("NotificationsPage", "Y:"))
208 self.ySpinBox.setToolTip(_translate("NotificationsPage", "Enter the Y-position the notification should be shown at"))
209 self.visualButton.setToolTip(_translate("NotificationsPage", "Press to select the position visually, release to get it"))
210 self.visualButton.setText(_translate("NotificationsPage", "Visual Selection"))
211 self.groupBox_2.setTitle(_translate("NotificationsPage", "Warning Notification"))
212 self.warningFgButton.setToolTip(_translate("NotificationsPage", "Press to select the foreground color"))
213 self.warningFgButton.setText(_translate("NotificationsPage", "Foreground"))
214 self.warningBgButton.setToolTip(_translate("NotificationsPage", "Press to select the background color"))
215 self.warningBgButton.setText(_translate("NotificationsPage", "Background"))
216 self.warningResetButton.setToolTip(_translate("NotificationsPage", "Press to reset the colors to the current values"))
217 self.warningResetButton.setText(_translate("NotificationsPage", "Reset"))
218 self.warningDefaultButton.setToolTip(_translate("NotificationsPage", "Press to reset the colors to default values"))
219 self.warningDefaultButton.setText(_translate("NotificationsPage", "Default"))
220 self.warningHeading.setText(_translate("NotificationsPage", "Warning"))
221 self.warningMessage.setText(_translate("NotificationsPage", "This is a message to notify about a warning."))
222 self.groupBox_3.setTitle(_translate("NotificationsPage", "Critical Notification"))
223 self.criticalFgButton.setToolTip(_translate("NotificationsPage", "Press to select the foreground color"))
224 self.criticalFgButton.setText(_translate("NotificationsPage", "Foreground"))
225 self.criticalBgButton.setToolTip(_translate("NotificationsPage", "Press to select the background color"))
226 self.criticalBgButton.setText(_translate("NotificationsPage", "Background"))
227 self.criticalResetButton.setToolTip(_translate("NotificationsPage", "Press to reset the colors to the current values"))
228 self.criticalResetButton.setText(_translate("NotificationsPage", "Reset"))
229 self.criticalDefaultButton.setToolTip(_translate("NotificationsPage", "Press to reset the colors to default values"))
230 self.criticalDefaultButton.setText(_translate("NotificationsPage", "Default"))
231 self.criticalHeading.setText(_translate("NotificationsPage", "Critical"))
232 self.criticalMessage.setText(_translate("NotificationsPage", "This is a message to notify about a critical event."))

eric ide

mercurial