9 #ifndef UI_VIDEO4LINUXWIDGET_H 10 #define UI_VIDEO4LINUXWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QComboBox> 17 #include <QtWidgets/QDoubleSpinBox> 18 #include <QtWidgets/QGridLayout> 19 #include <QtWidgets/QGroupBox> 20 #include <QtWidgets/QHeaderView> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QLineEdit> 23 #include <QtWidgets/QPushButton> 24 #include <QtWidgets/QSpacerItem> 25 #include <QtWidgets/QSpinBox> 26 #include <QtWidgets/QVBoxLayout> 27 #include <QtWidgets/QWidget> 28 #include "widgets/servicepresetwidget.h" 32 class Ui_Video4LinuxWidget
35 QGridLayout *gridLayout_2;
36 QSpacerItem *verticalSpacer_7;
37 QVBoxLayout *audioLayout;
38 QPushButton *applyButton;
39 QLineEdit *v4lLineEdit;
40 QSpacerItem *horizontalSpacer_13;
43 QDoubleSpinBox *v4lFramerateSpinBox;
44 QSpinBox *v4lHeightSpinBox;
48 QGroupBox *groupBox_6;
49 QGridLayout *gridLayout;
51 QComboBox *v4lStandardCombo;
53 QSpinBox *v4lChannelSpinBox;
54 ServicePresetWidget *preset;
56 QSpinBox *v4lWidthSpinBox;
59 QComboBox *v4lAudioComboBox;
61 void setupUi(QWidget *Video4LinuxWidget)
63 if (Video4LinuxWidget->objectName().isEmpty())
64 Video4LinuxWidget->setObjectName(QStringLiteral(
"Video4LinuxWidget"));
65 Video4LinuxWidget->resize(421, 373);
66 gridLayout_2 =
new QGridLayout(Video4LinuxWidget);
67 gridLayout_2->setObjectName(QStringLiteral(
"gridLayout_2"));
68 verticalSpacer_7 =
new QSpacerItem(20, 119, QSizePolicy::Minimum, QSizePolicy::Expanding);
70 gridLayout_2->addItem(verticalSpacer_7, 10, 0, 1, 1);
72 audioLayout =
new QVBoxLayout();
73 audioLayout->setObjectName(QStringLiteral(
"audioLayout"));
75 gridLayout_2->addLayout(audioLayout, 8, 0, 1, 6);
77 applyButton =
new QPushButton(Video4LinuxWidget);
78 applyButton->setObjectName(QStringLiteral(
"applyButton"));
80 gridLayout_2->addWidget(applyButton, 9, 0, 1, 1);
82 v4lLineEdit =
new QLineEdit(Video4LinuxWidget);
83 v4lLineEdit->setObjectName(QStringLiteral(
"v4lLineEdit"));
85 gridLayout_2->addWidget(v4lLineEdit, 2, 1, 1, 3);
87 horizontalSpacer_13 =
new QSpacerItem(122, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
89 gridLayout_2->addItem(horizontalSpacer_13, 2, 5, 1, 1);
91 label_3 =
new QLabel(Video4LinuxWidget);
92 label_3->setObjectName(QStringLiteral(
"label_3"));
96 label_3->setFont(font);
97 label_3->setAlignment(Qt::AlignCenter);
99 gridLayout_2->addWidget(label_3, 0, 0, 1, 6);
101 label_10 =
new QLabel(Video4LinuxWidget);
102 label_10->setObjectName(QStringLiteral(
"label_10"));
104 gridLayout_2->addWidget(label_10, 4, 3, 1, 1);
106 v4lFramerateSpinBox =
new QDoubleSpinBox(Video4LinuxWidget);
107 v4lFramerateSpinBox->setObjectName(QStringLiteral(
"v4lFramerateSpinBox"));
108 v4lFramerateSpinBox->setMinimum(0);
109 v4lFramerateSpinBox->setMaximum(1000);
110 v4lFramerateSpinBox->setValue(15);
112 gridLayout_2->addWidget(v4lFramerateSpinBox, 4, 1, 1, 1);
114 v4lHeightSpinBox =
new QSpinBox(Video4LinuxWidget);
115 v4lHeightSpinBox->setObjectName(QStringLiteral(
"v4lHeightSpinBox"));
116 v4lHeightSpinBox->setMaximum(4096);
117 v4lHeightSpinBox->setValue(480);
119 gridLayout_2->addWidget(v4lHeightSpinBox, 3, 3, 1, 1);
121 label_9 =
new QLabel(Video4LinuxWidget);
122 label_9->setObjectName(QStringLiteral(
"label_9"));
123 label_9->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
125 gridLayout_2->addWidget(label_9, 4, 0, 1, 1);
127 label_7 =
new QLabel(Video4LinuxWidget);
128 label_7->setObjectName(QStringLiteral(
"label_7"));
129 label_7->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
131 gridLayout_2->addWidget(label_7, 3, 0, 1, 1);
133 label_5 =
new QLabel(Video4LinuxWidget);
134 label_5->setObjectName(QStringLiteral(
"label_5"));
135 label_5->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
137 gridLayout_2->addWidget(label_5, 2, 0, 1, 1);
139 groupBox_6 =
new QGroupBox(Video4LinuxWidget);
140 groupBox_6->setObjectName(QStringLiteral(
"groupBox_6"));
141 groupBox_6->setFlat(
true);
142 groupBox_6->setChecked(
false);
143 gridLayout =
new QGridLayout(groupBox_6);
144 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
145 label =
new QLabel(groupBox_6);
146 label->setObjectName(QStringLiteral(
"label"));
147 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
149 gridLayout->addWidget(label, 0, 0, 1, 1);
151 v4lStandardCombo =
new QComboBox(groupBox_6);
152 v4lStandardCombo->addItem(QString());
153 v4lStandardCombo->addItem(QString());
154 v4lStandardCombo->addItem(QString());
155 v4lStandardCombo->addItem(QString());
156 v4lStandardCombo->setObjectName(QStringLiteral(
"v4lStandardCombo"));
158 gridLayout->addWidget(v4lStandardCombo, 0, 1, 1, 1);
160 label_4 =
new QLabel(groupBox_6);
161 label_4->setObjectName(QStringLiteral(
"label_4"));
162 label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
164 gridLayout->addWidget(label_4, 1, 0, 1, 1);
166 v4lChannelSpinBox =
new QSpinBox(groupBox_6);
167 v4lChannelSpinBox->setObjectName(QStringLiteral(
"v4lChannelSpinBox"));
169 gridLayout->addWidget(v4lChannelSpinBox, 1, 1, 1, 1);
172 gridLayout_2->addWidget(groupBox_6, 5, 0, 1, 4);
174 preset =
new ServicePresetWidget(Video4LinuxWidget);
175 preset->setObjectName(QStringLiteral(
"preset"));
177 gridLayout_2->addWidget(preset, 1, 0, 1, 6);
179 label_2 =
new QLabel(Video4LinuxWidget);
180 label_2->setObjectName(QStringLiteral(
"label_2"));
181 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
183 gridLayout_2->addWidget(label_2, 6, 0, 1, 1);
185 v4lWidthSpinBox =
new QSpinBox(Video4LinuxWidget);
186 v4lWidthSpinBox->setObjectName(QStringLiteral(
"v4lWidthSpinBox"));
187 v4lWidthSpinBox->setMaximum(4096);
188 v4lWidthSpinBox->setValue(640);
190 gridLayout_2->addWidget(v4lWidthSpinBox, 3, 1, 1, 1);
192 label_11 =
new QLabel(Video4LinuxWidget);
193 label_11->setObjectName(QStringLiteral(
"label_11"));
195 gridLayout_2->addWidget(label_11, 3, 4, 1, 1);
197 label_8 =
new QLabel(Video4LinuxWidget);
198 label_8->setObjectName(QStringLiteral(
"label_8"));
199 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
200 sizePolicy.setHorizontalStretch(0);
201 sizePolicy.setVerticalStretch(0);
202 sizePolicy.setHeightForWidth(label_8->sizePolicy().hasHeightForWidth());
203 label_8->setSizePolicy(sizePolicy);
205 gridLayout_2->addWidget(label_8, 3, 2, 1, 1);
207 v4lAudioComboBox =
new QComboBox(Video4LinuxWidget);
208 v4lAudioComboBox->addItem(QString());
209 v4lAudioComboBox->addItem(QString());
210 v4lAudioComboBox->addItem(QString());
211 v4lAudioComboBox->addItem(QString());
212 v4lAudioComboBox->setObjectName(QStringLiteral(
"v4lAudioComboBox"));
214 gridLayout_2->addWidget(v4lAudioComboBox, 6, 1, 1, 3);
217 retranslateUi(Video4LinuxWidget);
219 QMetaObject::connectSlotsByName(Video4LinuxWidget);
222 void retranslateUi(QWidget *Video4LinuxWidget)
224 Video4LinuxWidget->setWindowTitle(QApplication::translate(
"Video4LinuxWidget",
"Form",
nullptr));
225 applyButton->setText(QApplication::translate(
"Video4LinuxWidget",
"Apply",
nullptr));
226 #ifndef QT_NO_TOOLTIP 227 v4lLineEdit->setToolTip(QApplication::translate(
"Video4LinuxWidget",
"Set the path to the video device file",
nullptr));
228 #endif // QT_NO_TOOLTIP 229 v4lLineEdit->setText(QApplication::translate(
"Video4LinuxWidget",
"/dev/video0",
nullptr));
230 label_3->setText(QApplication::translate(
"Video4LinuxWidget",
"Video4Linux",
nullptr));
231 label_10->setText(QApplication::translate(
"Video4LinuxWidget",
"fps",
nullptr));
232 #ifndef QT_NO_TOOLTIP 233 v4lHeightSpinBox->setToolTip(QApplication::translate(
"Video4LinuxWidget",
"Height",
nullptr));
234 #endif // QT_NO_TOOLTIP 235 label_9->setText(QApplication::translate(
"Video4LinuxWidget",
"Frame rate",
nullptr));
236 label_7->setText(QApplication::translate(
"Video4LinuxWidget",
"Resolution",
nullptr));
237 label_5->setText(QApplication::translate(
"Video4LinuxWidget",
"Device",
nullptr));
238 groupBox_6->setTitle(QApplication::translate(
"Video4LinuxWidget",
"TV Tuner",
nullptr));
239 label->setText(QApplication::translate(
"Video4LinuxWidget",
"Standard",
nullptr));
240 v4lStandardCombo->setItemText(0, QApplication::translate(
"Video4LinuxWidget",
"Automatic",
nullptr));
241 v4lStandardCombo->setItemText(1, QApplication::translate(
"Video4LinuxWidget",
"NTSC",
nullptr));
242 v4lStandardCombo->setItemText(2, QApplication::translate(
"Video4LinuxWidget",
"PAL",
nullptr));
243 v4lStandardCombo->setItemText(3, QApplication::translate(
"Video4LinuxWidget",
"SECAM",
nullptr));
245 #ifndef QT_NO_TOOLTIP 246 v4lStandardCombo->setToolTip(QApplication::translate(
"Video4LinuxWidget",
"Set the television standard",
nullptr));
247 #endif // QT_NO_TOOLTIP 248 label_4->setText(QApplication::translate(
"Video4LinuxWidget",
"Channel",
nullptr));
249 label_2->setText(QApplication::translate(
"Video4LinuxWidget",
"Audio Input",
nullptr));
250 #ifndef QT_NO_TOOLTIP 251 v4lWidthSpinBox->setToolTip(QApplication::translate(
"Video4LinuxWidget",
"Width",
nullptr));
252 #endif // QT_NO_TOOLTIP 253 label_11->setText(QApplication::translate(
"Video4LinuxWidget",
"pixels",
nullptr));
254 label_8->setText(QApplication::translate(
"Video4LinuxWidget",
"X",
nullptr));
255 v4lAudioComboBox->setItemText(0, QApplication::translate(
"Video4LinuxWidget",
"None",
nullptr));
256 v4lAudioComboBox->setItemText(1, QApplication::translate(
"Video4LinuxWidget",
"PulseAudio",
nullptr));
257 v4lAudioComboBox->setItemText(2, QApplication::translate(
"Video4LinuxWidget",
"JACK",
nullptr));
258 v4lAudioComboBox->setItemText(3, QApplication::translate(
"Video4LinuxWidget",
"ALSA",
nullptr));
265 class Video4LinuxWidget:
public Ui_Video4LinuxWidget {};
270 #endif // UI_VIDEO4LINUXWIDGET_H Definition: addencodepresetdialog.h:24