9 #ifndef UI_X11GRABWIDGET_H 10 #define UI_X11GRABWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QComboBox> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QLineEdit> 19 #include <QtWidgets/QPushButton> 20 #include <QtWidgets/QSpacerItem> 21 #include <QtWidgets/QSpinBox> 22 #include <QtWidgets/QVBoxLayout> 23 #include <QtWidgets/QWidget> 24 #include "widgets/servicepresetwidget.h" 28 class Ui_X11grabWidget
31 QGridLayout *gridLayout;
35 QPushButton *applyButton;
37 ServicePresetWidget *preset;
40 QComboBox *positionComboBox;
43 QCheckBox *showRegionCheckBox;
45 QSpacerItem *verticalSpacer_7;
46 QComboBox *audioComboBox;
48 QCheckBox *drawMouseCheckBox;
50 QSpacerItem *horizontalSpacer_13;
51 QVBoxLayout *audioLayout;
53 QSpinBox *widthSpinBox;
54 QSpinBox *heightSpinBox;
57 void setupUi(QWidget *X11grabWidget)
59 if (X11grabWidget->objectName().isEmpty())
60 X11grabWidget->setObjectName(QString::fromUtf8(
"X11grabWidget"));
61 X11grabWidget->resize(386, 366);
62 gridLayout =
new QGridLayout(X11grabWidget);
63 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
64 label_7 =
new QLabel(X11grabWidget);
65 label_7->setObjectName(QString::fromUtf8(
"label_7"));
66 label_7->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
68 gridLayout->addWidget(label_7, 5, 0, 1, 1);
70 label_5 =
new QLabel(X11grabWidget);
71 label_5->setObjectName(QString::fromUtf8(
"label_5"));
72 label_5->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
74 gridLayout->addWidget(label_5, 2, 0, 1, 1);
76 label_9 =
new QLabel(X11grabWidget);
77 label_9->setObjectName(QString::fromUtf8(
"label_9"));
81 label_9->setFont(font);
82 label_9->setAlignment(Qt::AlignCenter);
84 gridLayout->addWidget(label_9, 0, 0, 1, 6);
86 applyButton =
new QPushButton(X11grabWidget);
87 applyButton->setObjectName(QString::fromUtf8(
"applyButton"));
89 gridLayout->addWidget(applyButton, 10, 0, 1, 1);
91 xSpinBox =
new QSpinBox(X11grabWidget);
92 xSpinBox->setObjectName(QString::fromUtf8(
"xSpinBox"));
93 xSpinBox->setEnabled(
false);
94 xSpinBox->setMaximum(4096);
96 gridLayout->addWidget(xSpinBox, 4, 1, 1, 1);
98 preset =
new ServicePresetWidget(X11grabWidget);
99 preset->setObjectName(QString::fromUtf8(
"preset"));
101 gridLayout->addWidget(preset, 1, 0, 1, 6);
103 ySpinBox =
new QSpinBox(X11grabWidget);
104 ySpinBox->setObjectName(QString::fromUtf8(
"ySpinBox"));
105 ySpinBox->setEnabled(
false);
106 ySpinBox->setMaximum(4096);
108 gridLayout->addWidget(ySpinBox, 4, 3, 1, 1);
110 label_4 =
new QLabel(X11grabWidget);
111 label_4->setObjectName(QString::fromUtf8(
"label_4"));
113 gridLayout->addWidget(label_4, 4, 4, 1, 1);
115 positionComboBox =
new QComboBox(X11grabWidget);
116 positionComboBox->addItem(QString());
117 positionComboBox->addItem(QString());
118 positionComboBox->addItem(QString());
119 positionComboBox->setObjectName(QString::fromUtf8(
"positionComboBox"));
121 gridLayout->addWidget(positionComboBox, 3, 1, 1, 4);
123 lineEdit =
new QLineEdit(X11grabWidget);
124 lineEdit->setObjectName(QString::fromUtf8(
"lineEdit"));
126 gridLayout->addWidget(lineEdit, 2, 1, 1, 3);
128 label_6 =
new QLabel(X11grabWidget);
129 label_6->setObjectName(QString::fromUtf8(
"label_6"));
130 label_6->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
132 gridLayout->addWidget(label_6, 4, 0, 1, 1);
134 showRegionCheckBox =
new QCheckBox(X11grabWidget);
135 showRegionCheckBox->setObjectName(QString::fromUtf8(
"showRegionCheckBox"));
137 gridLayout->addWidget(showRegionCheckBox, 6, 0, 1, 5);
139 label_2 =
new QLabel(X11grabWidget);
140 label_2->setObjectName(QString::fromUtf8(
"label_2"));
141 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
143 gridLayout->addWidget(label_2, 8, 0, 1, 1);
145 verticalSpacer_7 =
new QSpacerItem(68, 104, QSizePolicy::Minimum, QSizePolicy::Expanding);
147 gridLayout->addItem(verticalSpacer_7, 11, 0, 1, 1);
149 audioComboBox =
new QComboBox(X11grabWidget);
150 audioComboBox->addItem(QString());
151 audioComboBox->addItem(QString());
152 audioComboBox->addItem(QString());
153 audioComboBox->addItem(QString());
154 audioComboBox->setObjectName(QString::fromUtf8(
"audioComboBox"));
156 gridLayout->addWidget(audioComboBox, 8, 1, 1, 3);
158 label_11 =
new QLabel(X11grabWidget);
159 label_11->setObjectName(QString::fromUtf8(
"label_11"));
161 gridLayout->addWidget(label_11, 5, 4, 1, 1);
163 drawMouseCheckBox =
new QCheckBox(X11grabWidget);
164 drawMouseCheckBox->setObjectName(QString::fromUtf8(
"drawMouseCheckBox"));
165 drawMouseCheckBox->setChecked(
true);
167 gridLayout->addWidget(drawMouseCheckBox, 7, 0, 1, 5);
169 label_3 =
new QLabel(X11grabWidget);
170 label_3->setObjectName(QString::fromUtf8(
"label_3"));
172 gridLayout->addWidget(label_3, 4, 2, 1, 1);
174 horizontalSpacer_13 =
new QSpacerItem(134, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
176 gridLayout->addItem(horizontalSpacer_13, 2, 5, 1, 1);
178 audioLayout =
new QVBoxLayout();
179 audioLayout->setObjectName(QString::fromUtf8(
"audioLayout"));
181 gridLayout->addLayout(audioLayout, 9, 0, 1, 6);
183 label_8 =
new QLabel(X11grabWidget);
184 label_8->setObjectName(QString::fromUtf8(
"label_8"));
185 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
186 sizePolicy.setHorizontalStretch(0);
187 sizePolicy.setVerticalStretch(0);
188 sizePolicy.setHeightForWidth(label_8->sizePolicy().hasHeightForWidth());
189 label_8->setSizePolicy(sizePolicy);
191 gridLayout->addWidget(label_8, 5, 2, 1, 1);
193 widthSpinBox =
new QSpinBox(X11grabWidget);
194 widthSpinBox->setObjectName(QString::fromUtf8(
"widthSpinBox"));
195 widthSpinBox->setMaximum(4096);
196 widthSpinBox->setValue(1280);
198 gridLayout->addWidget(widthSpinBox, 5, 1, 1, 1);
200 heightSpinBox =
new QSpinBox(X11grabWidget);
201 heightSpinBox->setObjectName(QString::fromUtf8(
"heightSpinBox"));
202 heightSpinBox->setMaximum(4096);
203 heightSpinBox->setValue(720);
205 gridLayout->addWidget(heightSpinBox, 5, 3, 1, 1);
207 label =
new QLabel(X11grabWidget);
208 label->setObjectName(QString::fromUtf8(
"label"));
209 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
211 gridLayout->addWidget(label, 3, 0, 1, 1);
214 retranslateUi(X11grabWidget);
216 positionComboBox->setCurrentIndex(1);
219 QMetaObject::connectSlotsByName(X11grabWidget);
222 void retranslateUi(QWidget *X11grabWidget)
224 X11grabWidget->setWindowTitle(QCoreApplication::translate(
"X11grabWidget",
"Form",
nullptr));
225 label_7->setText(QCoreApplication::translate(
"X11grabWidget",
"Resolution",
nullptr));
226 label_5->setText(QCoreApplication::translate(
"X11grabWidget",
"Display",
nullptr));
227 label_9->setText(QCoreApplication::translate(
"X11grabWidget",
"Screen",
nullptr));
228 applyButton->setText(QCoreApplication::translate(
"X11grabWidget",
"Apply",
nullptr));
229 #if QT_CONFIG(tooltip) 230 xSpinBox->setToolTip(QCoreApplication::translate(
"X11grabWidget",
"The horizontal coordinate from the left edge when using a fixed capture region.",
nullptr));
231 #endif // QT_CONFIG(tooltip) 232 #if QT_CONFIG(tooltip) 233 ySpinBox->setToolTip(QCoreApplication::translate(
"X11grabWidget",
"The vertical coordinate from the top edge when using a fixed capture region.",
nullptr));
234 #endif // QT_CONFIG(tooltip) 235 label_4->setText(QCoreApplication::translate(
"X11grabWidget",
"pixels",
nullptr));
236 positionComboBox->setItemText(0, QCoreApplication::translate(
"X11grabWidget",
"Center Under Mouse",
nullptr));
237 positionComboBox->setItemText(1, QCoreApplication::translate(
"X11grabWidget",
"Fixed",
nullptr));
238 positionComboBox->setItemText(2, QCoreApplication::translate(
"X11grabWidget",
"Follow Mouse",
nullptr));
240 #if QT_CONFIG(tooltip) 241 lineEdit->setToolTip(QCoreApplication::translate(
"X11grabWidget",
"An X11 display name of the form hostname:displaynumber.screennumber\n" 242 "Most users do not need to change this.",
nullptr));
243 #endif // QT_CONFIG(tooltip) 244 lineEdit->setText(QCoreApplication::translate(
"X11grabWidget",
":0.0",
nullptr));
245 label_6->setText(QCoreApplication::translate(
"X11grabWidget",
"X",
nullptr));
246 showRegionCheckBox->setText(QCoreApplication::translate(
"X11grabWidget",
"Show the capture region",
nullptr));
247 label_2->setText(QCoreApplication::translate(
"X11grabWidget",
"Audio Input",
nullptr));
248 audioComboBox->setItemText(0, QCoreApplication::translate(
"X11grabWidget",
"None",
nullptr));
249 audioComboBox->setItemText(1, QCoreApplication::translate(
"X11grabWidget",
"PulseAudio",
nullptr));
250 audioComboBox->setItemText(2, QCoreApplication::translate(
"X11grabWidget",
"JACK",
nullptr));
251 audioComboBox->setItemText(3, QCoreApplication::translate(
"X11grabWidget",
"ALSA",
nullptr));
253 #if QT_CONFIG(tooltip) 254 audioComboBox->setToolTip(QCoreApplication::translate(
"X11grabWidget",
"Choose an audio input method to use during capture.",
nullptr));
255 #endif // QT_CONFIG(tooltip) 256 label_11->setText(QCoreApplication::translate(
"X11grabWidget",
"pixels",
nullptr));
257 drawMouseCheckBox->setText(QCoreApplication::translate(
"X11grabWidget",
"Draw the mouse cursor",
nullptr));
258 label_3->setText(QCoreApplication::translate(
"X11grabWidget",
"Y",
nullptr));
259 label_8->setText(QCoreApplication::translate(
"X11grabWidget",
"x",
nullptr));
260 #if QT_CONFIG(tooltip) 261 widthSpinBox->setToolTip(QCoreApplication::translate(
"X11grabWidget",
"Width of the capture region",
nullptr));
262 #endif // QT_CONFIG(tooltip) 263 #if QT_CONFIG(tooltip) 264 heightSpinBox->setToolTip(QCoreApplication::translate(
"X11grabWidget",
"Height of the capture region",
nullptr));
265 #endif // QT_CONFIG(tooltip) 266 label->setText(QCoreApplication::translate(
"X11grabWidget",
"Position",
nullptr));
272 class X11grabWidget:
public Ui_X11grabWidget {};
277 #endif // UI_X11GRABWIDGET_H