| 1 |
# -*- coding: utf-8 -*- |
| 2 |
|
| 3 |
##################################################################### |
| 4 |
## |
| 5 |
## Copyright (C) 2016 The Qt Company Ltd. |
| 6 |
## Contact: https://www.qt.io/licensing/ |
| 7 |
## |
| 8 |
## This file is part of the autotests of the Qt Toolkit. |
| 9 |
## |
| 10 |
## $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
| 11 |
## Commercial License Usage |
| 12 |
## Licensees holding valid commercial Qt licenses may use this file in |
| 13 |
## accordance with the commercial license agreement provided with the |
| 14 |
## Software or, alternatively, in accordance with the terms contained in |
| 15 |
## a written agreement between you and The Qt Company. For licensing terms |
| 16 |
## and conditions see https://www.qt.io/terms-conditions. For further |
| 17 |
## information use the contact form at https://www.qt.io/contact-us. |
| 18 |
## |
| 19 |
## GNU General Public License Usage |
| 20 |
## Alternatively, this file may be used under the terms of the GNU |
| 21 |
## General Public License version 3 as published by the Free Software |
| 22 |
## Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
| 23 |
## included in the packaging of this file. Please review the following |
| 24 |
## information to ensure the GNU General Public License requirements will |
| 25 |
## be met: https://www.gnu.org/licenses/gpl-3.0.html. |
| 26 |
## |
| 27 |
## $QT_END_LICENSE$ |
| 28 |
## |
| 29 |
##################################################################### |
| 30 |
|
| 31 |
################################################################################ |
| 32 |
## Form generated from reading UI file 'config.ui' |
| 33 |
## |
| 34 |
## Created by: Qt User Interface Compiler version 5.14.1 |
| 35 |
## |
| 36 |
## WARNING! All changes made in this file will be lost when recompiling UI file! |
| 37 |
################################################################################ |
| 38 |
|
| 39 |
from PySide2.QtCore import * # type: ignore |
| 40 |
from PySide2.QtGui import * # type: ignore |
| 41 |
from PySide2.QtWidgets import * # type: ignore |
| 42 |
|
| 43 |
from gammaview import GammaView |
| 44 |
|
| 45 |
|
| 46 |
class Ui_Config(object): |
| 47 |
def setupUi(self, Config): |
| 48 |
if not Config.objectName(): |
| 49 |
Config.setObjectName(u"Config") |
| 50 |
Config.resize(600, 650) |
| 51 |
Config.setSizeGripEnabled(True) |
| 52 |
self.vboxLayout = QVBoxLayout(Config) |
| 53 |
self.vboxLayout.setSpacing(6) |
| 54 |
self.vboxLayout.setContentsMargins(11, 11, 11, 11) |
| 55 |
self.vboxLayout.setObjectName(u"vboxLayout") |
| 56 |
self.vboxLayout.setContentsMargins(8, 8, 8, 8) |
| 57 |
self.hboxLayout = QHBoxLayout() |
| 58 |
self.hboxLayout.setSpacing(6) |
| 59 |
self.hboxLayout.setObjectName(u"hboxLayout") |
| 60 |
self.hboxLayout.setContentsMargins(0, 0, 0, 0) |
| 61 |
self.ButtonGroup1 = QGroupBox(Config) |
| 62 |
self.ButtonGroup1.setObjectName(u"ButtonGroup1") |
| 63 |
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred) |
| 64 |
sizePolicy.setHorizontalStretch(0) |
| 65 |
sizePolicy.setVerticalStretch(0) |
| 66 |
sizePolicy.setHeightForWidth(self.ButtonGroup1.sizePolicy().hasHeightForWidth()) |
| 67 |
self.ButtonGroup1.setSizePolicy(sizePolicy) |
| 68 |
self.vboxLayout1 = QVBoxLayout(self.ButtonGroup1) |
| 69 |
self.vboxLayout1.setSpacing(6) |
| 70 |
self.vboxLayout1.setContentsMargins(11, 11, 11, 11) |
| 71 |
self.vboxLayout1.setObjectName(u"vboxLayout1") |
| 72 |
self.vboxLayout1.setContentsMargins(11, 11, 11, 11) |
| 73 |
self.size_176_220 = QRadioButton(self.ButtonGroup1) |
| 74 |
self.size_176_220.setObjectName(u"size_176_220") |
| 75 |
|
| 76 |
self.vboxLayout1.addWidget(self.size_176_220) |
| 77 |
|
| 78 |
self.size_240_320 = QRadioButton(self.ButtonGroup1) |
| 79 |
self.size_240_320.setObjectName(u"size_240_320") |
| 80 |
|
| 81 |
self.vboxLayout1.addWidget(self.size_240_320) |
| 82 |
|
| 83 |
self.size_320_240 = QRadioButton(self.ButtonGroup1) |
| 84 |
self.size_320_240.setObjectName(u"size_320_240") |
| 85 |
|
| 86 |
self.vboxLayout1.addWidget(self.size_320_240) |
| 87 |
|
| 88 |
self.size_640_480 = QRadioButton(self.ButtonGroup1) |
| 89 |
self.size_640_480.setObjectName(u"size_640_480") |
| 90 |
|
| 91 |
self.vboxLayout1.addWidget(self.size_640_480) |
| 92 |
|
| 93 |
self.size_800_600 = QRadioButton(self.ButtonGroup1) |
| 94 |
self.size_800_600.setObjectName(u"size_800_600") |
| 95 |
|
| 96 |
self.vboxLayout1.addWidget(self.size_800_600) |
| 97 |
|
| 98 |
self.size_1024_768 = QRadioButton(self.ButtonGroup1) |
| 99 |
self.size_1024_768.setObjectName(u"size_1024_768") |
| 100 |
|
| 101 |
self.vboxLayout1.addWidget(self.size_1024_768) |
| 102 |
|
| 103 |
self.hboxLayout1 = QHBoxLayout() |
| 104 |
self.hboxLayout1.setSpacing(6) |
| 105 |
self.hboxLayout1.setObjectName(u"hboxLayout1") |
| 106 |
self.hboxLayout1.setContentsMargins(0, 0, 0, 0) |
| 107 |
self.size_custom = QRadioButton(self.ButtonGroup1) |
| 108 |
self.size_custom.setObjectName(u"size_custom") |
| 109 |
sizePolicy1 = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) |
| 110 |
sizePolicy1.setHorizontalStretch(0) |
| 111 |
sizePolicy1.setVerticalStretch(0) |
| 112 |
sizePolicy1.setHeightForWidth(self.size_custom.sizePolicy().hasHeightForWidth()) |
| 113 |
self.size_custom.setSizePolicy(sizePolicy1) |
| 114 |
|
| 115 |
self.hboxLayout1.addWidget(self.size_custom) |
| 116 |
|
| 117 |
self.size_width = QSpinBox(self.ButtonGroup1) |
| 118 |
self.size_width.setObjectName(u"size_width") |
| 119 |
self.size_width.setMinimum(1) |
| 120 |
self.size_width.setMaximum(1280) |
| 121 |
self.size_width.setSingleStep(16) |
| 122 |
self.size_width.setValue(400) |
| 123 |
|
| 124 |
self.hboxLayout1.addWidget(self.size_width) |
| 125 |
|
| 126 |
self.size_height = QSpinBox(self.ButtonGroup1) |
| 127 |
self.size_height.setObjectName(u"size_height") |
| 128 |
self.size_height.setMinimum(1) |
| 129 |
self.size_height.setMaximum(1024) |
| 130 |
self.size_height.setSingleStep(16) |
| 131 |
self.size_height.setValue(300) |
| 132 |
|
| 133 |
self.hboxLayout1.addWidget(self.size_height) |
| 134 |
|
| 135 |
|
| 136 |
self.vboxLayout1.addLayout(self.hboxLayout1) |
| 137 |
|
| 138 |
|
| 139 |
self.hboxLayout.addWidget(self.ButtonGroup1) |
| 140 |
|
| 141 |
self.ButtonGroup2 = QGroupBox(Config) |
| 142 |
self.ButtonGroup2.setObjectName(u"ButtonGroup2") |
| 143 |
self.vboxLayout2 = QVBoxLayout(self.ButtonGroup2) |
| 144 |
self.vboxLayout2.setSpacing(6) |
| 145 |
self.vboxLayout2.setContentsMargins(11, 11, 11, 11) |
| 146 |
self.vboxLayout2.setObjectName(u"vboxLayout2") |
| 147 |
self.vboxLayout2.setContentsMargins(11, 11, 11, 11) |
| 148 |
self.depth_1 = QRadioButton(self.ButtonGroup2) |
| 149 |
self.depth_1.setObjectName(u"depth_1") |
| 150 |
|
| 151 |
self.vboxLayout2.addWidget(self.depth_1) |
| 152 |
|
| 153 |
self.depth_4gray = QRadioButton(self.ButtonGroup2) |
| 154 |
self.depth_4gray.setObjectName(u"depth_4gray") |
| 155 |
|
| 156 |
self.vboxLayout2.addWidget(self.depth_4gray) |
| 157 |
|
| 158 |
self.depth_8 = QRadioButton(self.ButtonGroup2) |
| 159 |
self.depth_8.setObjectName(u"depth_8") |
| 160 |
|
| 161 |
self.vboxLayout2.addWidget(self.depth_8) |
| 162 |
|
| 163 |
self.depth_12 = QRadioButton(self.ButtonGroup2) |
| 164 |
self.depth_12.setObjectName(u"depth_12") |
| 165 |
|
| 166 |
self.vboxLayout2.addWidget(self.depth_12) |
| 167 |
|
| 168 |
self.depth_15 = QRadioButton(self.ButtonGroup2) |
| 169 |
self.depth_15.setObjectName(u"depth_15") |
| 170 |
|
| 171 |
self.vboxLayout2.addWidget(self.depth_15) |
| 172 |
|
| 173 |
self.depth_16 = QRadioButton(self.ButtonGroup2) |
| 174 |
self.depth_16.setObjectName(u"depth_16") |
| 175 |
|
| 176 |
self.vboxLayout2.addWidget(self.depth_16) |
| 177 |
|
| 178 |
self.depth_18 = QRadioButton(self.ButtonGroup2) |
| 179 |
self.depth_18.setObjectName(u"depth_18") |
| 180 |
|
| 181 |
self.vboxLayout2.addWidget(self.depth_18) |
| 182 |
|
| 183 |
self.depth_24 = QRadioButton(self.ButtonGroup2) |
| 184 |
self.depth_24.setObjectName(u"depth_24") |
| 185 |
|
| 186 |
self.vboxLayout2.addWidget(self.depth_24) |
| 187 |
|
| 188 |
self.depth_32 = QRadioButton(self.ButtonGroup2) |
| 189 |
self.depth_32.setObjectName(u"depth_32") |
| 190 |
|
| 191 |
self.vboxLayout2.addWidget(self.depth_32) |
| 192 |
|
| 193 |
self.depth_32_argb = QRadioButton(self.ButtonGroup2) |
| 194 |
self.depth_32_argb.setObjectName(u"depth_32_argb") |
| 195 |
|
| 196 |
self.vboxLayout2.addWidget(self.depth_32_argb) |
| 197 |
|
| 198 |
|
| 199 |
self.hboxLayout.addWidget(self.ButtonGroup2) |
| 200 |
|
| 201 |
|
| 202 |
self.vboxLayout.addLayout(self.hboxLayout) |
| 203 |
|
| 204 |
self.hboxLayout2 = QHBoxLayout() |
| 205 |
self.hboxLayout2.setSpacing(6) |
| 206 |
self.hboxLayout2.setObjectName(u"hboxLayout2") |
| 207 |
self.hboxLayout2.setContentsMargins(0, 0, 0, 0) |
| 208 |
self.TextLabel1_3 = QLabel(Config) |
| 209 |
self.TextLabel1_3.setObjectName(u"TextLabel1_3") |
| 210 |
|
| 211 |
self.hboxLayout2.addWidget(self.TextLabel1_3) |
| 212 |
|
| 213 |
self.skin = QComboBox(Config) |
| 214 |
self.skin.addItem("") |
| 215 |
self.skin.setObjectName(u"skin") |
| 216 |
sizePolicy2 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) |
| 217 |
sizePolicy2.setHorizontalStretch(0) |
| 218 |
sizePolicy2.setVerticalStretch(0) |
| 219 |
sizePolicy2.setHeightForWidth(self.skin.sizePolicy().hasHeightForWidth()) |
| 220 |
self.skin.setSizePolicy(sizePolicy2) |
| 221 |
|
| 222 |
self.hboxLayout2.addWidget(self.skin) |
| 223 |
|
| 224 |
|
| 225 |
self.vboxLayout.addLayout(self.hboxLayout2) |
| 226 |
|
| 227 |
self.touchScreen = QCheckBox(Config) |
| 228 |
self.touchScreen.setObjectName(u"touchScreen") |
| 229 |
|
| 230 |
self.vboxLayout.addWidget(self.touchScreen) |
| 231 |
|
| 232 |
self.lcdScreen = QCheckBox(Config) |
| 233 |
self.lcdScreen.setObjectName(u"lcdScreen") |
| 234 |
|
| 235 |
self.vboxLayout.addWidget(self.lcdScreen) |
| 236 |
|
| 237 |
self.spacerItem = QSpacerItem(20, 10, QSizePolicy.Minimum, QSizePolicy.Expanding) |
| 238 |
|
| 239 |
self.vboxLayout.addItem(self.spacerItem) |
| 240 |
|
| 241 |
self.TextLabel1 = QLabel(Config) |
| 242 |
self.TextLabel1.setObjectName(u"TextLabel1") |
| 243 |
sizePolicy.setHeightForWidth(self.TextLabel1.sizePolicy().hasHeightForWidth()) |
| 244 |
self.TextLabel1.setSizePolicy(sizePolicy) |
| 245 |
self.TextLabel1.setWordWrap(True) |
| 246 |
|
| 247 |
self.vboxLayout.addWidget(self.TextLabel1) |
| 248 |
|
| 249 |
self.GroupBox1 = QGroupBox(Config) |
| 250 |
self.GroupBox1.setObjectName(u"GroupBox1") |
| 251 |
self.gridLayout = QGridLayout(self.GroupBox1) |
| 252 |
self.gridLayout.setSpacing(6) |
| 253 |
self.gridLayout.setContentsMargins(11, 11, 11, 11) |
| 254 |
self.gridLayout.setObjectName(u"gridLayout") |
| 255 |
self.gridLayout.setHorizontalSpacing(6) |
| 256 |
self.gridLayout.setVerticalSpacing(6) |
| 257 |
self.gridLayout.setContentsMargins(11, 11, 11, 11) |
| 258 |
self.TextLabel3 = QLabel(self.GroupBox1) |
| 259 |
self.TextLabel3.setObjectName(u"TextLabel3") |
| 260 |
|
| 261 |
self.gridLayout.addWidget(self.TextLabel3, 6, 0, 1, 1) |
| 262 |
|
| 263 |
self.bslider = QSlider(self.GroupBox1) |
| 264 |
self.bslider.setObjectName(u"bslider") |
| 265 |
palette = QPalette() |
| 266 |
brush = QBrush(QColor(128, 128, 128, 255)) |
| 267 |
brush.setStyle(Qt.SolidPattern) |
| 268 |
palette.setBrush(QPalette.Active, QPalette.WindowText, brush) |
| 269 |
brush1 = QBrush(QColor(0, 0, 255, 255)) |
| 270 |
brush1.setStyle(Qt.SolidPattern) |
| 271 |
palette.setBrush(QPalette.Active, QPalette.Button, brush1) |
| 272 |
brush2 = QBrush(QColor(127, 127, 255, 255)) |
| 273 |
brush2.setStyle(Qt.SolidPattern) |
| 274 |
palette.setBrush(QPalette.Active, QPalette.Light, brush2) |
| 275 |
brush3 = QBrush(QColor(38, 38, 255, 255)) |
| 276 |
brush3.setStyle(Qt.SolidPattern) |
| 277 |
palette.setBrush(QPalette.Active, QPalette.Midlight, brush3) |
| 278 |
brush4 = QBrush(QColor(0, 0, 127, 255)) |
| 279 |
brush4.setStyle(Qt.SolidPattern) |
| 280 |
palette.setBrush(QPalette.Active, QPalette.Dark, brush4) |
| 281 |
brush5 = QBrush(QColor(0, 0, 170, 255)) |
| 282 |
brush5.setStyle(Qt.SolidPattern) |
| 283 |
palette.setBrush(QPalette.Active, QPalette.Mid, brush5) |
| 284 |
brush6 = QBrush(QColor(0, 0, 0, 255)) |
| 285 |
brush6.setStyle(Qt.SolidPattern) |
| 286 |
palette.setBrush(QPalette.Active, QPalette.Text, brush6) |
| 287 |
brush7 = QBrush(QColor(255, 255, 255, 255)) |
| 288 |
brush7.setStyle(Qt.SolidPattern) |
| 289 |
palette.setBrush(QPalette.Active, QPalette.BrightText, brush7) |
| 290 |
palette.setBrush(QPalette.Active, QPalette.ButtonText, brush) |
| 291 |
palette.setBrush(QPalette.Active, QPalette.Base, brush7) |
| 292 |
brush8 = QBrush(QColor(220, 220, 220, 255)) |
| 293 |
brush8.setStyle(Qt.SolidPattern) |
| 294 |
palette.setBrush(QPalette.Active, QPalette.Window, brush8) |
| 295 |
palette.setBrush(QPalette.Active, QPalette.Shadow, brush6) |
| 296 |
brush9 = QBrush(QColor(10, 95, 137, 255)) |
| 297 |
brush9.setStyle(Qt.SolidPattern) |
| 298 |
palette.setBrush(QPalette.Active, QPalette.Highlight, brush9) |
| 299 |
palette.setBrush(QPalette.Active, QPalette.HighlightedText, brush7) |
| 300 |
palette.setBrush(QPalette.Active, QPalette.Link, brush6) |
| 301 |
palette.setBrush(QPalette.Active, QPalette.LinkVisited, brush6) |
| 302 |
brush10 = QBrush(QColor(232, 232, 232, 255)) |
| 303 |
brush10.setStyle(Qt.SolidPattern) |
| 304 |
palette.setBrush(QPalette.Active, QPalette.AlternateBase, brush10) |
| 305 |
palette.setBrush(QPalette.Inactive, QPalette.WindowText, brush) |
| 306 |
palette.setBrush(QPalette.Inactive, QPalette.Button, brush1) |
| 307 |
palette.setBrush(QPalette.Inactive, QPalette.Light, brush2) |
| 308 |
palette.setBrush(QPalette.Inactive, QPalette.Midlight, brush3) |
| 309 |
palette.setBrush(QPalette.Inactive, QPalette.Dark, brush4) |
| 310 |
palette.setBrush(QPalette.Inactive, QPalette.Mid, brush5) |
| 311 |
palette.setBrush(QPalette.Inactive, QPalette.Text, brush6) |
| 312 |
palette.setBrush(QPalette.Inactive, QPalette.BrightText, brush7) |
| 313 |
palette.setBrush(QPalette.Inactive, QPalette.ButtonText, brush) |
| 314 |
palette.setBrush(QPalette.Inactive, QPalette.Base, brush7) |
| 315 |
palette.setBrush(QPalette.Inactive, QPalette.Window, brush8) |
| 316 |
palette.setBrush(QPalette.Inactive, QPalette.Shadow, brush6) |
| 317 |
palette.setBrush(QPalette.Inactive, QPalette.Highlight, brush9) |
| 318 |
palette.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7) |
| 319 |
palette.setBrush(QPalette.Inactive, QPalette.Link, brush6) |
| 320 |
palette.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6) |
| 321 |
palette.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10) |
| 322 |
palette.setBrush(QPalette.Disabled, QPalette.WindowText, brush) |
| 323 |
palette.setBrush(QPalette.Disabled, QPalette.Button, brush1) |
| 324 |
palette.setBrush(QPalette.Disabled, QPalette.Light, brush2) |
| 325 |
palette.setBrush(QPalette.Disabled, QPalette.Midlight, brush3) |
| 326 |
palette.setBrush(QPalette.Disabled, QPalette.Dark, brush4) |
| 327 |
palette.setBrush(QPalette.Disabled, QPalette.Mid, brush5) |
| 328 |
palette.setBrush(QPalette.Disabled, QPalette.Text, brush6) |
| 329 |
palette.setBrush(QPalette.Disabled, QPalette.BrightText, brush7) |
| 330 |
palette.setBrush(QPalette.Disabled, QPalette.ButtonText, brush) |
| 331 |
palette.setBrush(QPalette.Disabled, QPalette.Base, brush7) |
| 332 |
palette.setBrush(QPalette.Disabled, QPalette.Window, brush8) |
| 333 |
palette.setBrush(QPalette.Disabled, QPalette.Shadow, brush6) |
| 334 |
palette.setBrush(QPalette.Disabled, QPalette.Highlight, brush9) |
| 335 |
palette.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7) |
| 336 |
palette.setBrush(QPalette.Disabled, QPalette.Link, brush6) |
| 337 |
palette.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6) |
| 338 |
palette.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10) |
| 339 |
self.bslider.setPalette(palette) |
| 340 |
self.bslider.setMaximum(400) |
| 341 |
self.bslider.setValue(100) |
| 342 |
self.bslider.setOrientation(Qt.Horizontal) |
| 343 |
|
| 344 |
self.gridLayout.addWidget(self.bslider, 6, 1, 1, 1) |
| 345 |
|
| 346 |
self.blabel = QLabel(self.GroupBox1) |
| 347 |
self.blabel.setObjectName(u"blabel") |
| 348 |
|
| 349 |
self.gridLayout.addWidget(self.blabel, 6, 2, 1, 1) |
| 350 |
|
| 351 |
self.TextLabel2 = QLabel(self.GroupBox1) |
| 352 |
self.TextLabel2.setObjectName(u"TextLabel2") |
| 353 |
|
| 354 |
self.gridLayout.addWidget(self.TextLabel2, 4, 0, 1, 1) |
| 355 |
|
| 356 |
self.gslider = QSlider(self.GroupBox1) |
| 357 |
self.gslider.setObjectName(u"gslider") |
| 358 |
palette1 = QPalette() |
| 359 |
palette1.setBrush(QPalette.Active, QPalette.WindowText, brush) |
| 360 |
brush11 = QBrush(QColor(0, 255, 0, 255)) |
| 361 |
brush11.setStyle(Qt.SolidPattern) |
| 362 |
palette1.setBrush(QPalette.Active, QPalette.Button, brush11) |
| 363 |
brush12 = QBrush(QColor(127, 255, 127, 255)) |
| 364 |
brush12.setStyle(Qt.SolidPattern) |
| 365 |
palette1.setBrush(QPalette.Active, QPalette.Light, brush12) |
| 366 |
brush13 = QBrush(QColor(38, 255, 38, 255)) |
| 367 |
brush13.setStyle(Qt.SolidPattern) |
| 368 |
palette1.setBrush(QPalette.Active, QPalette.Midlight, brush13) |
| 369 |
brush14 = QBrush(QColor(0, 127, 0, 255)) |
| 370 |
brush14.setStyle(Qt.SolidPattern) |
| 371 |
palette1.setBrush(QPalette.Active, QPalette.Dark, brush14) |
| 372 |
brush15 = QBrush(QColor(0, 170, 0, 255)) |
| 373 |
brush15.setStyle(Qt.SolidPattern) |
| 374 |
palette1.setBrush(QPalette.Active, QPalette.Mid, brush15) |
| 375 |
palette1.setBrush(QPalette.Active, QPalette.Text, brush6) |
| 376 |
palette1.setBrush(QPalette.Active, QPalette.BrightText, brush7) |
| 377 |
palette1.setBrush(QPalette.Active, QPalette.ButtonText, brush) |
| 378 |
palette1.setBrush(QPalette.Active, QPalette.Base, brush7) |
| 379 |
palette1.setBrush(QPalette.Active, QPalette.Window, brush8) |
| 380 |
palette1.setBrush(QPalette.Active, QPalette.Shadow, brush6) |
| 381 |
palette1.setBrush(QPalette.Active, QPalette.Highlight, brush9) |
| 382 |
palette1.setBrush(QPalette.Active, QPalette.HighlightedText, brush7) |
| 383 |
palette1.setBrush(QPalette.Active, QPalette.Link, brush6) |
| 384 |
palette1.setBrush(QPalette.Active, QPalette.LinkVisited, brush6) |
| 385 |
palette1.setBrush(QPalette.Active, QPalette.AlternateBase, brush10) |
| 386 |
palette1.setBrush(QPalette.Inactive, QPalette.WindowText, brush) |
| 387 |
palette1.setBrush(QPalette.Inactive, QPalette.Button, brush11) |
| 388 |
palette1.setBrush(QPalette.Inactive, QPalette.Light, brush12) |
| 389 |
palette1.setBrush(QPalette.Inactive, QPalette.Midlight, brush13) |
| 390 |
palette1.setBrush(QPalette.Inactive, QPalette.Dark, brush14) |
| 391 |
palette1.setBrush(QPalette.Inactive, QPalette.Mid, brush15) |
| 392 |
palette1.setBrush(QPalette.Inactive, QPalette.Text, brush6) |
| 393 |
palette1.setBrush(QPalette.Inactive, QPalette.BrightText, brush7) |
| 394 |
palette1.setBrush(QPalette.Inactive, QPalette.ButtonText, brush) |
| 395 |
palette1.setBrush(QPalette.Inactive, QPalette.Base, brush7) |
| 396 |
palette1.setBrush(QPalette.Inactive, QPalette.Window, brush8) |
| 397 |
palette1.setBrush(QPalette.Inactive, QPalette.Shadow, brush6) |
| 398 |
palette1.setBrush(QPalette.Inactive, QPalette.Highlight, brush9) |
| 399 |
palette1.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7) |
| 400 |
palette1.setBrush(QPalette.Inactive, QPalette.Link, brush6) |
| 401 |
palette1.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6) |
| 402 |
palette1.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10) |
| 403 |
palette1.setBrush(QPalette.Disabled, QPalette.WindowText, brush) |
| 404 |
palette1.setBrush(QPalette.Disabled, QPalette.Button, brush11) |
| 405 |
palette1.setBrush(QPalette.Disabled, QPalette.Light, brush12) |
| 406 |
palette1.setBrush(QPalette.Disabled, QPalette.Midlight, brush13) |
| 407 |
palette1.setBrush(QPalette.Disabled, QPalette.Dark, brush14) |
| 408 |
palette1.setBrush(QPalette.Disabled, QPalette.Mid, brush15) |
| 409 |
palette1.setBrush(QPalette.Disabled, QPalette.Text, brush6) |
| 410 |
palette1.setBrush(QPalette.Disabled, QPalette.BrightText, brush7) |
| 411 |
palette1.setBrush(QPalette.Disabled, QPalette.ButtonText, brush) |
| 412 |
palette1.setBrush(QPalette.Disabled, QPalette.Base, brush7) |
| 413 |
palette1.setBrush(QPalette.Disabled, QPalette.Window, brush8) |
| 414 |
palette1.setBrush(QPalette.Disabled, QPalette.Shadow, brush6) |
| 415 |
palette1.setBrush(QPalette.Disabled, QPalette.Highlight, brush9) |
| 416 |
palette1.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7) |
| 417 |
palette1.setBrush(QPalette.Disabled, QPalette.Link, brush6) |
| 418 |
palette1.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6) |
| 419 |
palette1.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10) |
| 420 |
self.gslider.setPalette(palette1) |
| 421 |
self.gslider.setMaximum(400) |
| 422 |
self.gslider.setValue(100) |
| 423 |
self.gslider.setOrientation(Qt.Horizontal) |
| 424 |
|
| 425 |
self.gridLayout.addWidget(self.gslider, 4, 1, 1, 1) |
| 426 |
|
| 427 |
self.glabel = QLabel(self.GroupBox1) |
| 428 |
self.glabel.setObjectName(u"glabel") |
| 429 |
|
| 430 |
self.gridLayout.addWidget(self.glabel, 4, 2, 1, 1) |
| 431 |
|
| 432 |
self.TextLabel7 = QLabel(self.GroupBox1) |
| 433 |
self.TextLabel7.setObjectName(u"TextLabel7") |
| 434 |
|
| 435 |
self.gridLayout.addWidget(self.TextLabel7, 0, 0, 1, 1) |
| 436 |
|
| 437 |
self.TextLabel8 = QLabel(self.GroupBox1) |
| 438 |
self.TextLabel8.setObjectName(u"TextLabel8") |
| 439 |
|
| 440 |
self.gridLayout.addWidget(self.TextLabel8, 0, 2, 1, 1) |
| 441 |
|
| 442 |
self.gammaslider = QSlider(self.GroupBox1) |
| 443 |
self.gammaslider.setObjectName(u"gammaslider") |
| 444 |
palette2 = QPalette() |
| 445 |
palette2.setBrush(QPalette.Active, QPalette.WindowText, brush) |
| 446 |
palette2.setBrush(QPalette.Active, QPalette.Button, brush7) |
| 447 |
palette2.setBrush(QPalette.Active, QPalette.Light, brush7) |
| 448 |
palette2.setBrush(QPalette.Active, QPalette.Midlight, brush7) |
| 449 |
brush16 = QBrush(QColor(127, 127, 127, 255)) |
| 450 |
brush16.setStyle(Qt.SolidPattern) |
| 451 |
palette2.setBrush(QPalette.Active, QPalette.Dark, brush16) |
| 452 |
brush17 = QBrush(QColor(170, 170, 170, 255)) |
| 453 |
brush17.setStyle(Qt.SolidPattern) |
| 454 |
palette2.setBrush(QPalette.Active, QPalette.Mid, brush17) |
| 455 |
palette2.setBrush(QPalette.Active, QPalette.Text, brush6) |
| 456 |
palette2.setBrush(QPalette.Active, QPalette.BrightText, brush7) |
| 457 |
palette2.setBrush(QPalette.Active, QPalette.ButtonText, brush) |
| 458 |
palette2.setBrush(QPalette.Active, QPalette.Base, brush7) |
| 459 |
palette2.setBrush(QPalette.Active, QPalette.Window, brush8) |
| 460 |
palette2.setBrush(QPalette.Active, QPalette.Shadow, brush6) |
| 461 |
palette2.setBrush(QPalette.Active, QPalette.Highlight, brush9) |
| 462 |
palette2.setBrush(QPalette.Active, QPalette.HighlightedText, brush7) |
| 463 |
palette2.setBrush(QPalette.Active, QPalette.Link, brush6) |
| 464 |
palette2.setBrush(QPalette.Active, QPalette.LinkVisited, brush6) |
| 465 |
palette2.setBrush(QPalette.Active, QPalette.AlternateBase, brush10) |
| 466 |
palette2.setBrush(QPalette.Inactive, QPalette.WindowText, brush) |
| 467 |
palette2.setBrush(QPalette.Inactive, QPalette.Button, brush7) |
| 468 |
palette2.setBrush(QPalette.Inactive, QPalette.Light, brush7) |
| 469 |
palette2.setBrush(QPalette.Inactive, QPalette.Midlight, brush7) |
| 470 |
palette2.setBrush(QPalette.Inactive, QPalette.Dark, brush16) |
| 471 |
palette2.setBrush(QPalette.Inactive, QPalette.Mid, brush17) |
| 472 |
palette2.setBrush(QPalette.Inactive, QPalette.Text, brush6) |
| 473 |
palette2.setBrush(QPalette.Inactive, QPalette.BrightText, brush7) |
| 474 |
palette2.setBrush(QPalette.Inactive, QPalette.ButtonText, brush) |
| 475 |
palette2.setBrush(QPalette.Inactive, QPalette.Base, brush7) |
| 476 |
palette2.setBrush(QPalette.Inactive, QPalette.Window, brush8) |
| 477 |
palette2.setBrush(QPalette.Inactive, QPalette.Shadow, brush6) |
| 478 |
palette2.setBrush(QPalette.Inactive, QPalette.Highlight, brush9) |
| 479 |
palette2.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7) |
| 480 |
palette2.setBrush(QPalette.Inactive, QPalette.Link, brush6) |
| 481 |
palette2.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6) |
| 482 |
palette2.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10) |
| 483 |
palette2.setBrush(QPalette.Disabled, QPalette.WindowText, brush) |
| 484 |
palette2.setBrush(QPalette.Disabled, QPalette.Button, brush7) |
| 485 |
palette2.setBrush(QPalette.Disabled, QPalette.Light, brush7) |
| 486 |
palette2.setBrush(QPalette.Disabled, QPalette.Midlight, brush7) |
| 487 |
palette2.setBrush(QPalette.Disabled, QPalette.Dark, brush16) |
| 488 |
palette2.setBrush(QPalette.Disabled, QPalette.Mid, brush17) |
| 489 |
palette2.setBrush(QPalette.Disabled, QPalette.Text, brush6) |
| 490 |
palette2.setBrush(QPalette.Disabled, QPalette.BrightText, brush7) |
| 491 |
palette2.setBrush(QPalette.Disabled, QPalette.ButtonText, brush) |
| 492 |
palette2.setBrush(QPalette.Disabled, QPalette.Base, brush7) |
| 493 |
palette2.setBrush(QPalette.Disabled, QPalette.Window, brush8) |
| 494 |
palette2.setBrush(QPalette.Disabled, QPalette.Shadow, brush6) |
| 495 |
palette2.setBrush(QPalette.Disabled, QPalette.Highlight, brush9) |
| 496 |
palette2.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7) |
| 497 |
palette2.setBrush(QPalette.Disabled, QPalette.Link, brush6) |
| 498 |
palette2.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6) |
| 499 |
palette2.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10) |
| 500 |
self.gammaslider.setPalette(palette2) |
| 501 |
self.gammaslider.setMaximum(400) |
| 502 |
self.gammaslider.setValue(100) |
| 503 |
self.gammaslider.setOrientation(Qt.Horizontal) |
| 504 |
|
| 505 |
self.gridLayout.addWidget(self.gammaslider, 0, 1, 1, 1) |
| 506 |
|
| 507 |
self.TextLabel1_2 = QLabel(self.GroupBox1) |
| 508 |
self.TextLabel1_2.setObjectName(u"TextLabel1_2") |
| 509 |
|
| 510 |
self.gridLayout.addWidget(self.TextLabel1_2, 2, 0, 1, 1) |
| 511 |
|
| 512 |
self.rlabel = QLabel(self.GroupBox1) |
| 513 |
self.rlabel.setObjectName(u"rlabel") |
| 514 |
|
| 515 |
self.gridLayout.addWidget(self.rlabel, 2, 2, 1, 1) |
| 516 |
|
| 517 |
self.rslider = QSlider(self.GroupBox1) |
| 518 |
self.rslider.setObjectName(u"rslider") |
| 519 |
palette3 = QPalette() |
| 520 |
palette3.setBrush(QPalette.Active, QPalette.WindowText, brush) |
| 521 |
brush18 = QBrush(QColor(255, 0, 0, 255)) |
| 522 |
brush18.setStyle(Qt.SolidPattern) |
| 523 |
palette3.setBrush(QPalette.Active, QPalette.Button, brush18) |
| 524 |
brush19 = QBrush(QColor(255, 127, 127, 255)) |
| 525 |
brush19.setStyle(Qt.SolidPattern) |
| 526 |
palette3.setBrush(QPalette.Active, QPalette.Light, brush19) |
| 527 |
brush20 = QBrush(QColor(255, 38, 38, 255)) |
| 528 |
brush20.setStyle(Qt.SolidPattern) |
| 529 |
palette3.setBrush(QPalette.Active, QPalette.Midlight, brush20) |
| 530 |
brush21 = QBrush(QColor(127, 0, 0, 255)) |
| 531 |
brush21.setStyle(Qt.SolidPattern) |
| 532 |
palette3.setBrush(QPalette.Active, QPalette.Dark, brush21) |
| 533 |
brush22 = QBrush(QColor(170, 0, 0, 255)) |
| 534 |
brush22.setStyle(Qt.SolidPattern) |
| 535 |
palette3.setBrush(QPalette.Active, QPalette.Mid, brush22) |
| 536 |
palette3.setBrush(QPalette.Active, QPalette.Text, brush6) |
| 537 |
palette3.setBrush(QPalette.Active, QPalette.BrightText, brush7) |
| 538 |
palette3.setBrush(QPalette.Active, QPalette.ButtonText, brush) |
| 539 |
palette3.setBrush(QPalette.Active, QPalette.Base, brush7) |
| 540 |
palette3.setBrush(QPalette.Active, QPalette.Window, brush8) |
| 541 |
palette3.setBrush(QPalette.Active, QPalette.Shadow, brush6) |
| 542 |
palette3.setBrush(QPalette.Active, QPalette.Highlight, brush9) |
| 543 |
palette3.setBrush(QPalette.Active, QPalette.HighlightedText, brush7) |
| 544 |
palette3.setBrush(QPalette.Active, QPalette.Link, brush6) |
| 545 |
palette3.setBrush(QPalette.Active, QPalette.LinkVisited, brush6) |
| 546 |
palette3.setBrush(QPalette.Active, QPalette.AlternateBase, brush10) |
| 547 |
palette3.setBrush(QPalette.Inactive, QPalette.WindowText, brush) |
| 548 |
palette3.setBrush(QPalette.Inactive, QPalette.Button, brush18) |
| 549 |
palette3.setBrush(QPalette.Inactive, QPalette.Light, brush19) |
| 550 |
palette3.setBrush(QPalette.Inactive, QPalette.Midlight, brush20) |
| 551 |
palette3.setBrush(QPalette.Inactive, QPalette.Dark, brush21) |
| 552 |
palette3.setBrush(QPalette.Inactive, QPalette.Mid, brush22) |
| 553 |
palette3.setBrush(QPalette.Inactive, QPalette.Text, brush6) |
| 554 |
palette3.setBrush(QPalette.Inactive, QPalette.BrightText, brush7) |
| 555 |
palette3.setBrush(QPalette.Inactive, QPalette.ButtonText, brush) |
| 556 |
palette3.setBrush(QPalette.Inactive, QPalette.Base, brush7) |
| 557 |
palette3.setBrush(QPalette.Inactive, QPalette.Window, brush8) |
| 558 |
palette3.setBrush(QPalette.Inactive, QPalette.Shadow, brush6) |
| 559 |
palette3.setBrush(QPalette.Inactive, QPalette.Highlight, brush9) |
| 560 |
palette3.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7) |
| 561 |
palette3.setBrush(QPalette.Inactive, QPalette.Link, brush6) |
| 562 |
palette3.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6) |
| 563 |
palette3.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10) |
| 564 |
palette3.setBrush(QPalette.Disabled, QPalette.WindowText, brush) |
| 565 |
palette3.setBrush(QPalette.Disabled, QPalette.Button, brush18) |
| 566 |
palette3.setBrush(QPalette.Disabled, QPalette.Light, brush19) |
| 567 |
palette3.setBrush(QPalette.Disabled, QPalette.Midlight, brush20) |
| 568 |
palette3.setBrush(QPalette.Disabled, QPalette.Dark, brush21) |
| 569 |
palette3.setBrush(QPalette.Disabled, QPalette.Mid, brush22) |
| 570 |
palette3.setBrush(QPalette.Disabled, QPalette.Text, brush6) |
| 571 |
palette3.setBrush(QPalette.Disabled, QPalette.BrightText, brush7) |
| 572 |
palette3.setBrush(QPalette.Disabled, QPalette.ButtonText, brush) |
| 573 |
palette3.setBrush(QPalette.Disabled, QPalette.Base, brush7) |
| 574 |
palette3.setBrush(QPalette.Disabled, QPalette.Window, brush8) |
| 575 |
palette3.setBrush(QPalette.Disabled, QPalette.Shadow, brush6) |
| 576 |
palette3.setBrush(QPalette.Disabled, QPalette.Highlight, brush9) |
| 577 |
palette3.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7) |
| 578 |
palette3.setBrush(QPalette.Disabled, QPalette.Link, brush6) |
| 579 |
palette3.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6) |
| 580 |
palette3.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10) |
| 581 |
self.rslider.setPalette(palette3) |
| 582 |
self.rslider.setMaximum(400) |
| 583 |
self.rslider.setValue(100) |
| 584 |
self.rslider.setOrientation(Qt.Horizontal) |
| 585 |
|
| 586 |
self.gridLayout.addWidget(self.rslider, 2, 1, 1, 1) |
| 587 |
|
| 588 |
self.PushButton3 = QPushButton(self.GroupBox1) |
| 589 |
self.PushButton3.setObjectName(u"PushButton3") |
| 590 |
|
| 591 |
self.gridLayout.addWidget(self.PushButton3, 8, 0, 1, 3) |
| 592 |
|
| 593 |
self.MyCustomWidget1 = GammaView(self.GroupBox1) |
| 594 |
self.MyCustomWidget1.setObjectName(u"MyCustomWidget1") |
| 595 |
|
| 596 |
self.gridLayout.addWidget(self.MyCustomWidget1, 0, 3, 9, 1) |
| 597 |
|
| 598 |
|
| 599 |
self.vboxLayout.addWidget(self.GroupBox1) |
| 600 |
|
| 601 |
self.hboxLayout3 = QHBoxLayout() |
| 602 |
self.hboxLayout3.setSpacing(6) |
| 603 |
self.hboxLayout3.setObjectName(u"hboxLayout3") |
| 604 |
self.hboxLayout3.setContentsMargins(0, 0, 0, 0) |
| 605 |
self.spacerItem1 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) |
| 606 |
|
| 607 |
self.hboxLayout3.addItem(self.spacerItem1) |
| 608 |
|
| 609 |
self.buttonOk = QPushButton(Config) |
| 610 |
self.buttonOk.setObjectName(u"buttonOk") |
| 611 |
self.buttonOk.setAutoDefault(True) |
| 612 |
|
| 613 |
self.hboxLayout3.addWidget(self.buttonOk) |
| 614 |
|
| 615 |
self.buttonCancel = QPushButton(Config) |
| 616 |
self.buttonCancel.setObjectName(u"buttonCancel") |
| 617 |
self.buttonCancel.setAutoDefault(True) |
| 618 |
|
| 619 |
self.hboxLayout3.addWidget(self.buttonCancel) |
| 620 |
|
| 621 |
|
| 622 |
self.vboxLayout.addLayout(self.hboxLayout3) |
| 623 |
|
| 624 |
|
| 625 |
self.retranslateUi(Config) |
| 626 |
self.size_width.valueChanged.connect(self.size_custom.click) |
| 627 |
self.size_height.valueChanged.connect(self.size_custom.click) |
| 628 |
|
| 629 |
self.buttonOk.setDefault(True) |
| 630 |
|
| 631 |
|
| 632 |
QMetaObject.connectSlotsByName(Config) |
| 633 |
# setupUi |
| 634 |
|
| 635 |
def retranslateUi(self, Config): |
| 636 |
Config.setWindowTitle(QCoreApplication.translate("Config", u"Configure", None)) |
| 637 |
self.ButtonGroup1.setTitle(QCoreApplication.translate("Config", u"Size", None)) |
| 638 |
self.size_176_220.setText(QCoreApplication.translate("Config", u"176x220 \"SmartPhone\"", None)) |
| 639 |
self.size_240_320.setText(QCoreApplication.translate("Config", u"240x320 \"PDA\"", None)) |
| 640 |
self.size_320_240.setText(QCoreApplication.translate("Config", u"320x240 \"TV\" / \"QVGA\"", None)) |
| 641 |
self.size_640_480.setText(QCoreApplication.translate("Config", u"640x480 \"VGA\"", None)) |
| 642 |
self.size_800_600.setText(QCoreApplication.translate("Config", u"800x600", None)) |
| 643 |
self.size_1024_768.setText(QCoreApplication.translate("Config", u"1024x768", None)) |
| 644 |
self.size_custom.setText(QCoreApplication.translate("Config", u"Custom", None)) |
| 645 |
self.ButtonGroup2.setTitle(QCoreApplication.translate("Config", u"Depth", None)) |
| 646 |
self.depth_1.setText(QCoreApplication.translate("Config", u"1 bit monochrome", None)) |
| 647 |
self.depth_4gray.setText(QCoreApplication.translate("Config", u"4 bit grayscale", None)) |
| 648 |
self.depth_8.setText(QCoreApplication.translate("Config", u"8 bit", None)) |
| 649 |
self.depth_12.setText(QCoreApplication.translate("Config", u"12 (16) bit", None)) |
| 650 |
self.depth_15.setText(QCoreApplication.translate("Config", u"15 bit", None)) |
| 651 |
self.depth_16.setText(QCoreApplication.translate("Config", u"16 bit", None)) |
| 652 |
self.depth_18.setText(QCoreApplication.translate("Config", u"18 bit", None)) |
| 653 |
self.depth_24.setText(QCoreApplication.translate("Config", u"24 bit", None)) |
| 654 |
self.depth_32.setText(QCoreApplication.translate("Config", u"32 bit", None)) |
| 655 |
self.depth_32_argb.setText(QCoreApplication.translate("Config", u"32 bit ARGB", None)) |
| 656 |
self.TextLabel1_3.setText(QCoreApplication.translate("Config", u"Skin", None)) |
| 657 |
self.skin.setItemText(0, QCoreApplication.translate("Config", u"None", None)) |
| 658 |
|
| 659 |
self.touchScreen.setText(QCoreApplication.translate("Config", u"Emulate touch screen (no mouse move)", None)) |
| 660 |
self.lcdScreen.setText(QCoreApplication.translate("Config", u"Emulate LCD screen (Only with fixed zoom of 3.0 times magnification)", None)) |
| 661 |
self.TextLabel1.setText(QCoreApplication.translate("Config", u"<p>Note that any applications using the virtual framebuffer will be terminated if you change the Size or Depth <i>above</i>. You may freely modify the Gamma <i>below</i>.", None)) |
| 662 |
self.GroupBox1.setTitle(QCoreApplication.translate("Config", u"Gamma", None)) |
| 663 |
self.TextLabel3.setText(QCoreApplication.translate("Config", u"Blue", None)) |
| 664 |
self.blabel.setText(QCoreApplication.translate("Config", u"1.0", None)) |
| 665 |
self.TextLabel2.setText(QCoreApplication.translate("Config", u"Green", None)) |
| 666 |
self.glabel.setText(QCoreApplication.translate("Config", u"1.0", None)) |
| 667 |
self.TextLabel7.setText(QCoreApplication.translate("Config", u"All", None)) |
| 668 |
self.TextLabel8.setText(QCoreApplication.translate("Config", u"1.0", None)) |
| 669 |
self.TextLabel1_2.setText(QCoreApplication.translate("Config", u"Red", None)) |
| 670 |
self.rlabel.setText(QCoreApplication.translate("Config", u"1.0", None)) |
| 671 |
self.PushButton3.setText(QCoreApplication.translate("Config", u"Set all to 1.0", None)) |
| 672 |
self.buttonOk.setText(QCoreApplication.translate("Config", u"&OK", None)) |
| 673 |
self.buttonCancel.setText(QCoreApplication.translate("Config", u"&Cancel", None)) |
| 674 |
# retranslateUi |
| 675 |
|