9 #ifndef UI_X11GRABWIDGET_H 10 #define UI_X11GRABWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QComboBox> 18 #include <QtWidgets/QGridLayout> 19 #include <QtWidgets/QHeaderView> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QLineEdit> 22 #include <QtWidgets/QPushButton> 23 #include <QtWidgets/QSpacerItem> 24 #include <QtWidgets/QSpinBox> 25 #include <QtWidgets/QVBoxLayout> 26 #include <QtWidgets/QWidget> 27 #include "widgets/servicepresetwidget.h" 31 class Ui_X11grabWidget
34 QGridLayout *gridLayout;
38 QPushButton *applyButton;
40 ServicePresetWidget *preset;
43 QComboBox *positionComboBox;
46 QCheckBox *showRegionCheckBox;
48 QSpacerItem *verticalSpacer_7;
49 QComboBox *audioComboBox;
51 QCheckBox *drawMouseCheckBox;
53 QSpacerItem *horizontalSpacer_13;
54 QVBoxLayout *audioLayout;
56 QSpinBox *widthSpinBox;
57 QSpinBox *heightSpinBox;
60 void setupUi(QWidget *X11grabWidget)
62 if (X11grabWidget->objectName().isEmpty())
63 X11grabWidget->setObjectName(QStringLiteral(
"X11grabWidget"));
64 X11grabWidget->resize(386, 366);
65 gridLayout =
new QGridLayout(X11grabWidget);
66 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
67 label_7 =
new QLabel(X11grabWidget);
68 label_7->setObjectName(QStringLiteral(
"label_7"));
69 label_7->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
71 gridLayout->addWidget(label_7, 5, 0, 1, 1);
73 label_5 =
new QLabel(X11grabWidget);
74 label_5->setObjectName(QStringLiteral(
"label_5"));
75 label_5->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
77 gridLayout->addWidget(label_5, 2, 0, 1, 1);
79 label_9 =
new QLabel(X11grabWidget);
80 label_9->setObjectName(QStringLiteral(
"label_9"));
84 label_9->setFont(font);
85 label_9->setAlignment(Qt::AlignCenter);
87 gridLayout->addWidget(label_9, 0, 0, 1, 6);
89 applyButton =
new QPushButton(X11grabWidget);
90 applyButton->setObjectName(QStringLiteral(
"applyButton"));
92 gridLayout->addWidget(applyButton, 10, 0, 1, 1);
94 xSpinBox =
new QSpinBox(X11grabWidget);
95 xSpinBox->setObjectName(QStringLiteral(
"xSpinBox"));
96 xSpinBox->setEnabled(
false);
97 xSpinBox->setMaximum(4096);
99 gridLayout->addWidget(xSpinBox, 4, 1, 1, 1);
101 preset =
new ServicePresetWidget(X11grabWidget);
102 preset->setObjectName(QStringLiteral(
"preset"));
104 gridLayout->addWidget(preset, 1, 0, 1, 6);
106 ySpinBox =
new QSpinBox(X11grabWidget);
107 ySpinBox->setObjectName(QStringLiteral(
"ySpinBox"));
108 ySpinBox->setEnabled(
false);
109 ySpinBox->setMaximum(4096);
111 gridLayout->addWidget(ySpinBox, 4, 3, 1, 1);
113 label_4 =
new QLabel(X11grabWidget);
114 label_4->setObjectName(QStringLiteral(
"label_4"));
116 gridLayout->addWidget(label_4, 4, 4, 1, 1);
118 positionComboBox =
new QComboBox(X11grabWidget);
119 positionComboBox->setObjectName(QStringLiteral(
"positionComboBox"));
121 gridLayout->addWidget(positionComboBox, 3, 1, 1, 4);
123 lineEdit =
new QLineEdit(X11grabWidget);
124 lineEdit->setObjectName(QStringLiteral(
"lineEdit"));
126 gridLayout->addWidget(lineEdit, 2, 1, 1, 3);
128 label_6 =
new QLabel(X11grabWidget);
129 label_6->setObjectName(QStringLiteral(
"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(QStringLiteral(
"showRegionCheckBox"));
137 gridLayout->addWidget(showRegionCheckBox, 6, 0, 1, 5);
139 label_2 =
new QLabel(X11grabWidget);
140 label_2->setObjectName(QStringLiteral(
"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->setObjectName(QStringLiteral(
"audioComboBox"));
152 gridLayout->addWidget(audioComboBox, 8, 1, 1, 3);
154 label_11 =
new QLabel(X11grabWidget);
155 label_11->setObjectName(QStringLiteral(
"label_11"));
157 gridLayout->addWidget(label_11, 5, 4, 1, 1);
159 drawMouseCheckBox =
new QCheckBox(X11grabWidget);
160 drawMouseCheckBox->setObjectName(QStringLiteral(
"drawMouseCheckBox"));
161 drawMouseCheckBox->setChecked(
true);
163 gridLayout->addWidget(drawMouseCheckBox, 7, 0, 1, 5);
165 label_3 =
new QLabel(X11grabWidget);
166 label_3->setObjectName(QStringLiteral(
"label_3"));
168 gridLayout->addWidget(label_3, 4, 2, 1, 1);
170 horizontalSpacer_13 =
new QSpacerItem(134, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
172 gridLayout->addItem(horizontalSpacer_13, 2, 5, 1, 1);
174 audioLayout =
new QVBoxLayout();
175 audioLayout->setObjectName(QStringLiteral(
"audioLayout"));
177 gridLayout->addLayout(audioLayout, 9, 0, 1, 6);
179 label_8 =
new QLabel(X11grabWidget);
180 label_8->setObjectName(QStringLiteral(
"label_8"));
181 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
182 sizePolicy.setHorizontalStretch(0);
183 sizePolicy.setVerticalStretch(0);
184 sizePolicy.setHeightForWidth(label_8->sizePolicy().hasHeightForWidth());
185 label_8->setSizePolicy(sizePolicy);
187 gridLayout->addWidget(label_8, 5, 2, 1, 1);
189 widthSpinBox =
new QSpinBox(X11grabWidget);
190 widthSpinBox->setObjectName(QStringLiteral(
"widthSpinBox"));
191 widthSpinBox->setMaximum(4096);
192 widthSpinBox->setValue(1280);
194 gridLayout->addWidget(widthSpinBox, 5, 1, 1, 1);
196 heightSpinBox =
new QSpinBox(X11grabWidget);
197 heightSpinBox->setObjectName(QStringLiteral(
"heightSpinBox"));
198 heightSpinBox->setMaximum(4096);
199 heightSpinBox->setValue(720);
201 gridLayout->addWidget(heightSpinBox, 5, 3, 1, 1);
203 label =
new QLabel(X11grabWidget);
204 label->setObjectName(QStringLiteral(
"label"));
205 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
207 gridLayout->addWidget(label, 3, 0, 1, 1);
210 retranslateUi(X11grabWidget);
212 positionComboBox->setCurrentIndex(1);
215 QMetaObject::connectSlotsByName(X11grabWidget);
218 void retranslateUi(QWidget *X11grabWidget)
220 X11grabWidget->setWindowTitle(QApplication::translate(
"X11grabWidget",
"Form", Q_NULLPTR));
221 label_7->setText(QApplication::translate(
"X11grabWidget",
"Resolution", Q_NULLPTR));
222 label_5->setText(QApplication::translate(
"X11grabWidget",
"Display", Q_NULLPTR));
223 label_9->setText(QApplication::translate(
"X11grabWidget",
"Screen", Q_NULLPTR));
224 applyButton->setText(QApplication::translate(
"X11grabWidget",
"Apply", Q_NULLPTR));
225 #ifndef QT_NO_TOOLTIP 226 xSpinBox->setToolTip(QApplication::translate(
"X11grabWidget",
"The horizontal coordinate from the left edge when using a fixed capture region.", Q_NULLPTR));
227 #endif // QT_NO_TOOLTIP 228 #ifndef QT_NO_TOOLTIP 229 ySpinBox->setToolTip(QApplication::translate(
"X11grabWidget",
"The vertical coordinate from the top edge when using a fixed capture region.", Q_NULLPTR));
230 #endif // QT_NO_TOOLTIP 231 label_4->setText(QApplication::translate(
"X11grabWidget",
"pixels", Q_NULLPTR));
232 positionComboBox->clear();
233 positionComboBox->insertItems(0, QStringList()
234 << QApplication::translate(
"X11grabWidget",
"Center Under Mouse", Q_NULLPTR)
235 << QApplication::translate(
"X11grabWidget",
"Fixed", Q_NULLPTR)
236 << QApplication::translate(
"X11grabWidget",
"Follow Mouse", Q_NULLPTR)
238 #ifndef QT_NO_TOOLTIP 239 lineEdit->setToolTip(QApplication::translate(
"X11grabWidget",
"An X11 display name of the form hostname:displaynumber.screennumber\n" 240 "Most users do not need to change this.", Q_NULLPTR));
241 #endif // QT_NO_TOOLTIP 242 lineEdit->setText(QApplication::translate(
"X11grabWidget",
":0.0", Q_NULLPTR));
243 label_6->setText(QApplication::translate(
"X11grabWidget",
"X", Q_NULLPTR));
244 showRegionCheckBox->setText(QApplication::translate(
"X11grabWidget",
"Show the capture region", Q_NULLPTR));
245 label_2->setText(QApplication::translate(
"X11grabWidget",
"Audio Input", Q_NULLPTR));
246 audioComboBox->clear();
247 audioComboBox->insertItems(0, QStringList()
248 << QApplication::translate(
"X11grabWidget",
"None", Q_NULLPTR)
249 << QApplication::translate(
"X11grabWidget",
"PulseAudio", Q_NULLPTR)
250 << QApplication::translate(
"X11grabWidget",
"JACK", Q_NULLPTR)
251 << QApplication::translate(
"X11grabWidget",
"ALSA", Q_NULLPTR)
253 #ifndef QT_NO_TOOLTIP 254 audioComboBox->setToolTip(QApplication::translate(
"X11grabWidget",
"Choose an audio input method to use during capture.", Q_NULLPTR));
255 #endif // QT_NO_TOOLTIP 256 label_11->setText(QApplication::translate(
"X11grabWidget",
"pixels", Q_NULLPTR));
257 drawMouseCheckBox->setText(QApplication::translate(
"X11grabWidget",
"Draw the mouse cursor", Q_NULLPTR));
258 label_3->setText(QApplication::translate(
"X11grabWidget",
"Y", Q_NULLPTR));
259 label_8->setText(QApplication::translate(
"X11grabWidget",
"x", Q_NULLPTR));
260 #ifndef QT_NO_TOOLTIP 261 widthSpinBox->setToolTip(QApplication::translate(
"X11grabWidget",
"Width of the capture region", Q_NULLPTR));
262 #endif // QT_NO_TOOLTIP 263 #ifndef QT_NO_TOOLTIP 264 heightSpinBox->setToolTip(QApplication::translate(
"X11grabWidget",
"Height of the capture region", Q_NULLPTR));
265 #endif // QT_NO_TOOLTIP 266 label->setText(QApplication::translate(
"X11grabWidget",
"Position", Q_NULLPTR));
272 class X11grabWidget:
public Ui_X11grabWidget {};
277 #endif // UI_X11GRABWIDGET_H Definition: addencodepresetdialog.h:24