9 #ifndef UI_GDIGRABWIDGET_H
10 #define UI_GDIGRABWIDGET_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/QPushButton>
19 #include <QtWidgets/QSpacerItem>
20 #include <QtWidgets/QSpinBox>
21 #include <QtWidgets/QWidget>
22 #include "widgets/servicepresetwidget.h"
26 class Ui_GDIgrabWidget
29 QGridLayout *gridLayout;
30 QSpacerItem *verticalSpacer_7;
35 QSpinBox *widthSpinBox;
36 QCheckBox *drawMouseCheckBox;
37 ServicePresetWidget *preset;
38 QComboBox *audioComboBox;
41 QCheckBox *showRegionCheckBox;
43 QSpinBox *heightSpinBox;
46 QPushButton *applyButton;
49 void setupUi(QWidget *GDIgrabWidget)
51 if (GDIgrabWidget->objectName().isEmpty())
52 GDIgrabWidget->setObjectName(QString::fromUtf8(
"GDIgrabWidget"));
53 GDIgrabWidget->resize(386, 366);
54 gridLayout =
new QGridLayout(GDIgrabWidget);
55 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
56 verticalSpacer_7 =
new QSpacerItem(68, 104, QSizePolicy::Minimum, QSizePolicy::Expanding);
58 gridLayout->addItem(verticalSpacer_7, 8, 0, 1, 1);
60 ySpinBox =
new QSpinBox(GDIgrabWidget);
61 ySpinBox->setObjectName(QString::fromUtf8(
"ySpinBox"));
62 ySpinBox->setMaximum(4096);
64 gridLayout->addWidget(ySpinBox, 2, 3, 1, 1);
66 label_9 =
new QLabel(GDIgrabWidget);
67 label_9->setObjectName(QString::fromUtf8(
"label_9"));
71 label_9->setFont(font);
72 label_9->setAlignment(Qt::AlignCenter);
74 gridLayout->addWidget(label_9, 0, 0, 1, 6);
76 label_6 =
new QLabel(GDIgrabWidget);
77 label_6->setObjectName(QString::fromUtf8(
"label_6"));
78 label_6->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
80 gridLayout->addWidget(label_6, 2, 0, 1, 1);
82 audioLabel =
new QLabel(GDIgrabWidget);
83 audioLabel->setObjectName(QString::fromUtf8(
"audioLabel"));
84 audioLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
86 gridLayout->addWidget(audioLabel, 6, 0, 1, 1);
88 widthSpinBox =
new QSpinBox(GDIgrabWidget);
89 widthSpinBox->setObjectName(QString::fromUtf8(
"widthSpinBox"));
90 widthSpinBox->setMaximum(4096);
91 widthSpinBox->setValue(1280);
93 gridLayout->addWidget(widthSpinBox, 3, 1, 1, 1);
95 drawMouseCheckBox =
new QCheckBox(GDIgrabWidget);
96 drawMouseCheckBox->setObjectName(QString::fromUtf8(
"drawMouseCheckBox"));
97 drawMouseCheckBox->setChecked(
true);
99 gridLayout->addWidget(drawMouseCheckBox, 5, 0, 1, 5);
101 preset =
new ServicePresetWidget(GDIgrabWidget);
102 preset->setObjectName(QString::fromUtf8(
"preset"));
104 gridLayout->addWidget(preset, 1, 0, 1, 6);
106 audioComboBox =
new QComboBox(GDIgrabWidget);
107 audioComboBox->addItem(QString());
108 audioComboBox->setObjectName(QString::fromUtf8(
"audioComboBox"));
110 gridLayout->addWidget(audioComboBox, 6, 1, 1, 3);
112 label_4 =
new QLabel(GDIgrabWidget);
113 label_4->setObjectName(QString::fromUtf8(
"label_4"));
115 gridLayout->addWidget(label_4, 2, 4, 1, 1);
117 label_3 =
new QLabel(GDIgrabWidget);
118 label_3->setObjectName(QString::fromUtf8(
"label_3"));
120 gridLayout->addWidget(label_3, 2, 2, 1, 1);
122 showRegionCheckBox =
new QCheckBox(GDIgrabWidget);
123 showRegionCheckBox->setObjectName(QString::fromUtf8(
"showRegionCheckBox"));
125 gridLayout->addWidget(showRegionCheckBox, 4, 0, 1, 5);
127 label_7 =
new QLabel(GDIgrabWidget);
128 label_7->setObjectName(QString::fromUtf8(
"label_7"));
129 label_7->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
131 gridLayout->addWidget(label_7, 3, 0, 1, 1);
133 heightSpinBox =
new QSpinBox(GDIgrabWidget);
134 heightSpinBox->setObjectName(QString::fromUtf8(
"heightSpinBox"));
135 heightSpinBox->setMaximum(4096);
136 heightSpinBox->setValue(720);
138 gridLayout->addWidget(heightSpinBox, 3, 3, 1, 1);
140 xSpinBox =
new QSpinBox(GDIgrabWidget);
141 xSpinBox->setObjectName(QString::fromUtf8(
"xSpinBox"));
142 xSpinBox->setMaximum(4096);
144 gridLayout->addWidget(xSpinBox, 2, 1, 1, 1);
146 label_8 =
new QLabel(GDIgrabWidget);
147 label_8->setObjectName(QString::fromUtf8(
"label_8"));
148 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
149 sizePolicy.setHorizontalStretch(0);
150 sizePolicy.setVerticalStretch(0);
151 sizePolicy.setHeightForWidth(label_8->sizePolicy().hasHeightForWidth());
152 label_8->setSizePolicy(sizePolicy);
154 gridLayout->addWidget(label_8, 3, 2, 1, 1);
156 applyButton =
new QPushButton(GDIgrabWidget);
157 applyButton->setObjectName(QString::fromUtf8(
"applyButton"));
159 gridLayout->addWidget(applyButton, 7, 0, 1, 1);
161 label_11 =
new QLabel(GDIgrabWidget);
162 label_11->setObjectName(QString::fromUtf8(
"label_11"));
164 gridLayout->addWidget(label_11, 3, 4, 1, 1);
166 QWidget::setTabOrder(xSpinBox, ySpinBox);
167 QWidget::setTabOrder(ySpinBox, widthSpinBox);
168 QWidget::setTabOrder(widthSpinBox, heightSpinBox);
169 QWidget::setTabOrder(heightSpinBox, showRegionCheckBox);
170 QWidget::setTabOrder(showRegionCheckBox, drawMouseCheckBox);
171 QWidget::setTabOrder(drawMouseCheckBox, audioComboBox);
172 QWidget::setTabOrder(audioComboBox, applyButton);
174 retranslateUi(GDIgrabWidget);
176 QMetaObject::connectSlotsByName(GDIgrabWidget);
179 void retranslateUi(QWidget *GDIgrabWidget)
181 GDIgrabWidget->setWindowTitle(QCoreApplication::translate(
"GDIgrabWidget",
"Form",
nullptr));
182 #if QT_CONFIG(tooltip)
183 ySpinBox->setToolTip(QCoreApplication::translate(
"GDIgrabWidget",
"The vertical coordinate from the top edge when using a fixed capture region.",
nullptr));
184 #endif // QT_CONFIG(tooltip)
185 label_9->setText(QCoreApplication::translate(
"GDIgrabWidget",
"Screen",
nullptr));
186 label_6->setText(QCoreApplication::translate(
"GDIgrabWidget",
"X",
nullptr));
187 audioLabel->setText(QCoreApplication::translate(
"GDIgrabWidget",
"Audio Input",
nullptr));
188 #if QT_CONFIG(tooltip)
189 widthSpinBox->setToolTip(QCoreApplication::translate(
"GDIgrabWidget",
"Width of the capture region",
nullptr));
190 #endif // QT_CONFIG(tooltip)
191 drawMouseCheckBox->setText(QCoreApplication::translate(
"GDIgrabWidget",
"Draw the mouse cursor",
nullptr));
192 audioComboBox->setItemText(0, QCoreApplication::translate(
"GDIgrabWidget",
"None",
nullptr));
194 #if QT_CONFIG(tooltip)
195 audioComboBox->setToolTip(QCoreApplication::translate(
"GDIgrabWidget",
"Choose an audio input method to use during capture.",
nullptr));
196 #endif // QT_CONFIG(tooltip)
197 label_4->setText(QCoreApplication::translate(
"GDIgrabWidget",
"pixels",
nullptr));
198 label_3->setText(QCoreApplication::translate(
"GDIgrabWidget",
"Y",
nullptr));
199 showRegionCheckBox->setText(QCoreApplication::translate(
"GDIgrabWidget",
"Show the capture region",
nullptr));
200 label_7->setText(QCoreApplication::translate(
"GDIgrabWidget",
"Resolution",
nullptr));
201 #if QT_CONFIG(tooltip)
202 heightSpinBox->setToolTip(QCoreApplication::translate(
"GDIgrabWidget",
"Height of the capture region",
nullptr));
203 #endif // QT_CONFIG(tooltip)
204 #if QT_CONFIG(tooltip)
205 xSpinBox->setToolTip(QCoreApplication::translate(
"GDIgrabWidget",
"The horizontal coordinate from the left edge when using a fixed capture region.",
nullptr));
206 #endif // QT_CONFIG(tooltip)
207 label_8->setText(QCoreApplication::translate(
"GDIgrabWidget",
"x",
nullptr));
208 applyButton->setText(QCoreApplication::translate(
"GDIgrabWidget",
"Apply",
nullptr));
209 label_11->setText(QCoreApplication::translate(
"GDIgrabWidget",
"pixels",
nullptr));
215 class GDIgrabWidget:
public Ui_GDIgrabWidget {};
220 #endif // UI_GDIGRABWIDGET_H