9 #ifndef UI_PQIMAGECOMPRESSORWIDGET_H 10 #define UI_PQIMAGECOMPRESSORWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QComboBox> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QSpacerItem> 19 #include <QtWidgets/QVBoxLayout> 20 #include <QtWidgets/QWidget> 47 void setupUi(QWidget *ImageCompressorWidget)
49 if (ImageCompressorWidget->objectName().isEmpty())
50 ImageCompressorWidget->setObjectName(QString::fromUtf8(
"ImageCompressorWidget"));
51 ImageCompressorWidget->resize(551, 304);
52 mainLayout =
new QVBoxLayout(ImageCompressorWidget);
53 mainLayout->setContentsMargins(0, 0, 0, 0);
54 mainLayout->setObjectName(QString::fromUtf8(
"mainLayout"));
55 label =
new QLabel(ImageCompressorWidget);
56 label->setObjectName(QString::fromUtf8(
"label"));
57 label->setWordWrap(
true);
59 mainLayout->addWidget(label);
61 compressionType =
new QComboBox(ImageCompressorWidget);
62 compressionType->addItem(QString());
63 compressionType->addItem(QString());
64 compressionType->addItem(QString());
65 compressionType->addItem(QString());
66 compressionType->setObjectName(QString::fromUtf8(
"compressionType"));
68 mainLayout->addWidget(compressionType);
70 squirtLabel =
new QLabel(ImageCompressorWidget);
71 squirtLabel->setObjectName(QString::fromUtf8(
"squirtLabel"));
72 squirtLabel->setWordWrap(
true);
74 mainLayout->addWidget(squirtLabel);
77 squirtColorSpace->setObjectName(QString::fromUtf8(
"squirtColorSpace"));
78 squirtColorSpace->setProperty(
"minimum", QVariant(0));
79 squirtColorSpace->setProperty(
"maximum", QVariant(5));
80 squirtColorSpace->setProperty(
"value", QVariant(3));
82 mainLayout->addWidget(squirtColorSpace);
84 zlibLabel1 =
new QLabel(ImageCompressorWidget);
85 zlibLabel1->setObjectName(QString::fromUtf8(
"zlibLabel1"));
86 zlibLabel1->setWordWrap(
true);
88 mainLayout->addWidget(zlibLabel1);
91 zlibLevel->setObjectName(QString::fromUtf8(
"zlibLevel"));
92 zlibLevel->setProperty(
"minimum", QVariant(1));
93 zlibLevel->setProperty(
"maximum", QVariant(9));
94 zlibLevel->setProperty(
"value", QVariant(1));
96 mainLayout->addWidget(zlibLevel);
98 zlibLabel2 =
new QLabel(ImageCompressorWidget);
99 zlibLabel2->setObjectName(QString::fromUtf8(
"zlibLabel2"));
100 zlibLabel2->setWordWrap(
true);
102 mainLayout->addWidget(zlibLabel2);
105 zlibColorSpace->setObjectName(QString::fromUtf8(
"zlibColorSpace"));
106 zlibColorSpace->setProperty(
"minimum", QVariant(0));
107 zlibColorSpace->setProperty(
"maximum", QVariant(5));
108 zlibColorSpace->setProperty(
"value", QVariant(3));
110 mainLayout->addWidget(zlibColorSpace);
112 zlibStripAlpha =
new QCheckBox(ImageCompressorWidget);
113 zlibStripAlpha->setObjectName(QString::fromUtf8(
"zlibStripAlpha"));
115 mainLayout->addWidget(zlibStripAlpha);
117 nvpLabel =
new QLabel(ImageCompressorWidget);
118 nvpLabel->setObjectName(QString::fromUtf8(
"nvpLabel"));
119 nvpLabel->setWordWrap(
true);
121 mainLayout->addWidget(nvpLabel);
124 nvpLevel->setObjectName(QString::fromUtf8(
"nvpLevel"));
125 nvpLevel->setProperty(
"minimum", QVariant(1));
126 nvpLevel->setProperty(
"maximum", QVariant(5));
127 nvpLevel->setProperty(
"value", QVariant(4));
129 mainLayout->addWidget(nvpLevel);
131 compressorBWLayout =
new QHBoxLayout();
132 compressorBWLayout->setObjectName(QString::fromUtf8(
"compressorBWLayout"));
133 label_9 =
new QLabel(ImageCompressorWidget);
134 label_9->setObjectName(QString::fromUtf8(
"label_9"));
135 label_9->setWordWrap(
false);
137 compressorBWLayout->addWidget(label_9);
139 compressorBWOpt =
new QComboBox(ImageCompressorWidget);
140 compressorBWOpt->addItem(QString());
141 compressorBWOpt->addItem(QString());
142 compressorBWOpt->addItem(QString());
143 compressorBWOpt->addItem(QString());
144 compressorBWOpt->addItem(QString());
145 compressorBWOpt->addItem(QString());
146 compressorBWOpt->setObjectName(QString::fromUtf8(
"compressorBWOpt"));
148 compressorBWLayout->addWidget(compressorBWOpt);
150 label_10 =
new QLabel(ImageCompressorWidget);
151 label_10->setObjectName(QString::fromUtf8(
"label_10"));
152 label_10->setWordWrap(
false);
154 compressorBWLayout->addWidget(label_10);
156 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
158 compressorBWLayout->addItem(horizontalSpacer_3);
161 mainLayout->addLayout(compressorBWLayout);
163 verticalSpacer =
new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding);
165 mainLayout->addItem(verticalSpacer);
170 QMetaObject::connectSlotsByName(ImageCompressorWidget);
175 ImageCompressorWidget->setWindowTitle(QCoreApplication::translate(
"ImageCompressorWidget",
"Form",
nullptr));
176 label->setText(QCoreApplication::translate(
"ImageCompressorWidget",
"Set the compression method used when transferring rendered images from the server to the client.",
nullptr));
177 compressionType->setItemText(0, QCoreApplication::translate(
"ImageCompressorWidget",
"None",
nullptr));
178 compressionType->setItemText(1, QCoreApplication::translate(
"ImageCompressorWidget",
"LZ4",
nullptr));
179 compressionType->setItemText(2, QCoreApplication::translate(
"ImageCompressorWidget",
"Squirt (run-length encoding based compression)",
nullptr));
180 compressionType->setItemText(3, QCoreApplication::translate(
"ImageCompressorWidget",
"Zlib",
nullptr));
182 squirtLabel->setText(QCoreApplication::translate(
"ImageCompressorWidget",
"Set the Squirt/LZ4 compression level. Move to right for better compression ratio at the cost of reduced image quality.",
nullptr));
183 zlibLabel1->setText(QCoreApplication::translate(
"ImageCompressorWidget",
"Set the Zlib compression level. 1 is the fastest compression possible at the cost of compression ratio, while 9 give the best compression possible, but may be slower.",
nullptr));
184 zlibLabel2->setText(QCoreApplication::translate(
"ImageCompressorWidget",
"Set the Zlib the color sampling space width factor. Move to right for better compression ratio at the cost of image quality.",
nullptr));
185 zlibStripAlpha->setText(QCoreApplication::translate(
"ImageCompressorWidget",
"Set whether to strip alpha channel.",
nullptr));
186 nvpLabel->setText(QCoreApplication::translate(
"ImageCompressorWidget",
"Set the NvPipe compression level. 1 is high image quality; 5 is low image quality. Even at the highest setting the bandwidth cost is well below LZ4 or Squirt.\n" 188 #if QT_CONFIG(tooltip) 189 label_9->setToolTip(QCoreApplication::translate(
"ImageCompressorWidget",
"Configure the compressor using default settings tailored to a selected connection type.",
nullptr));
190 #endif // QT_CONFIG(tooltip) 191 label_9->setText(QCoreApplication::translate(
"ImageCompressorWidget",
"Apply presets for",
nullptr));
192 compressorBWOpt->setItemText(0, QCoreApplication::translate(
"ImageCompressorWidget",
"...",
nullptr));
193 compressorBWOpt->setItemText(1, QCoreApplication::translate(
"ImageCompressorWidget",
"consumer broadband/DSL",
nullptr));
194 compressorBWOpt->setItemText(2, QCoreApplication::translate(
"ImageCompressorWidget",
"Megabit Ethernet / 802.11* wireless",
nullptr));
195 compressorBWOpt->setItemText(3, QCoreApplication::translate(
"ImageCompressorWidget",
"Gigabit Ethernet",
nullptr));
196 compressorBWOpt->setItemText(4, QCoreApplication::translate(
"ImageCompressorWidget",
"10 Gigabit Ethernet",
nullptr));
197 compressorBWOpt->setItemText(5, QCoreApplication::translate(
"ImageCompressorWidget",
"shared memory/localhost",
nullptr));
199 #if QT_CONFIG(tooltip) 200 compressorBWOpt->setToolTip(QCoreApplication::translate(
"ImageCompressorWidget",
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" 201 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" 202 "p, li { white-space: pre-wrap; }\n" 203 "</style></head><body style=\" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n" 204 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Presets. </span>Configure the image compressor based on a network type. These settings will provide reasonable performance and place to start when optimizing the compressor setting for a specific network.</p></body></html>",
nullptr));
205 #endif // QT_CONFIG(tooltip) 206 #if QT_CONFIG(tooltip) 207 label_10->setToolTip(QCoreApplication::translate(
"ImageCompressorWidget",
"Configure the compressor using default settings tailored to a selected connection type.",
nullptr));
208 #endif // QT_CONFIG(tooltip) 209 label_10->setText(QCoreApplication::translate(
"ImageCompressorWidget",
"connection.",
nullptr));
220 #endif // UI_PQIMAGECOMPRESSORWIDGET_H