9 #ifndef UI_VIDEO4LINUXWIDGET_H 10 #define UI_VIDEO4LINUXWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QComboBox> 15 #include <QtWidgets/QDoubleSpinBox> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QGroupBox> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QLineEdit> 20 #include <QtWidgets/QPushButton> 21 #include <QtWidgets/QSpacerItem> 22 #include <QtWidgets/QSpinBox> 23 #include <QtWidgets/QVBoxLayout> 24 #include <QtWidgets/QWidget> 25 #include "widgets/servicepresetwidget.h" 29 class Ui_Video4LinuxWidget
32 QGridLayout *gridLayout_2;
33 QSpacerItem *verticalSpacer_7;
34 QVBoxLayout *audioLayout;
35 QPushButton *applyButton;
36 QLineEdit *v4lLineEdit;
37 QSpacerItem *horizontalSpacer_13;
40 QDoubleSpinBox *v4lFramerateSpinBox;
41 QSpinBox *v4lHeightSpinBox;
45 QGroupBox *groupBox_6;
46 QGridLayout *gridLayout;
48 QComboBox *v4lStandardCombo;
50 QSpinBox *v4lChannelSpinBox;
51 ServicePresetWidget *preset;
53 QSpinBox *v4lWidthSpinBox;
56 QComboBox *v4lAudioComboBox;
58 void setupUi(QWidget *Video4LinuxWidget)
60 if (Video4LinuxWidget->objectName().isEmpty())
61 Video4LinuxWidget->setObjectName(QStringLiteral(
"Video4LinuxWidget"));
62 Video4LinuxWidget->resize(421, 373);
63 gridLayout_2 =
new QGridLayout(Video4LinuxWidget);
64 gridLayout_2->setObjectName(QStringLiteral(
"gridLayout_2"));
65 verticalSpacer_7 =
new QSpacerItem(20, 119, QSizePolicy::Minimum, QSizePolicy::Expanding);
67 gridLayout_2->addItem(verticalSpacer_7, 10, 0, 1, 1);
69 audioLayout =
new QVBoxLayout();
70 audioLayout->setObjectName(QStringLiteral(
"audioLayout"));
72 gridLayout_2->addLayout(audioLayout, 8, 0, 1, 6);
74 applyButton =
new QPushButton(Video4LinuxWidget);
75 applyButton->setObjectName(QStringLiteral(
"applyButton"));
77 gridLayout_2->addWidget(applyButton, 9, 0, 1, 1);
79 v4lLineEdit =
new QLineEdit(Video4LinuxWidget);
80 v4lLineEdit->setObjectName(QStringLiteral(
"v4lLineEdit"));
82 gridLayout_2->addWidget(v4lLineEdit, 2, 1, 1, 3);
84 horizontalSpacer_13 =
new QSpacerItem(122, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
86 gridLayout_2->addItem(horizontalSpacer_13, 2, 5, 1, 1);
88 label_3 =
new QLabel(Video4LinuxWidget);
89 label_3->setObjectName(QStringLiteral(
"label_3"));
93 label_3->setFont(font);
94 label_3->setAlignment(Qt::AlignCenter);
96 gridLayout_2->addWidget(label_3, 0, 0, 1, 6);
98 label_10 =
new QLabel(Video4LinuxWidget);
99 label_10->setObjectName(QStringLiteral(
"label_10"));
101 gridLayout_2->addWidget(label_10, 4, 3, 1, 1);
103 v4lFramerateSpinBox =
new QDoubleSpinBox(Video4LinuxWidget);
104 v4lFramerateSpinBox->setObjectName(QStringLiteral(
"v4lFramerateSpinBox"));
105 v4lFramerateSpinBox->setMinimum(0);
106 v4lFramerateSpinBox->setMaximum(1000);
107 v4lFramerateSpinBox->setValue(15);
109 gridLayout_2->addWidget(v4lFramerateSpinBox, 4, 1, 1, 1);
111 v4lHeightSpinBox =
new QSpinBox(Video4LinuxWidget);
112 v4lHeightSpinBox->setObjectName(QStringLiteral(
"v4lHeightSpinBox"));
113 v4lHeightSpinBox->setMaximum(4096);
114 v4lHeightSpinBox->setValue(480);
116 gridLayout_2->addWidget(v4lHeightSpinBox, 3, 3, 1, 1);
118 label_9 =
new QLabel(Video4LinuxWidget);
119 label_9->setObjectName(QStringLiteral(
"label_9"));
120 label_9->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
122 gridLayout_2->addWidget(label_9, 4, 0, 1, 1);
124 label_7 =
new QLabel(Video4LinuxWidget);
125 label_7->setObjectName(QStringLiteral(
"label_7"));
126 label_7->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
128 gridLayout_2->addWidget(label_7, 3, 0, 1, 1);
130 label_5 =
new QLabel(Video4LinuxWidget);
131 label_5->setObjectName(QStringLiteral(
"label_5"));
132 label_5->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
134 gridLayout_2->addWidget(label_5, 2, 0, 1, 1);
136 groupBox_6 =
new QGroupBox(Video4LinuxWidget);
137 groupBox_6->setObjectName(QStringLiteral(
"groupBox_6"));
138 groupBox_6->setFlat(
true);
139 groupBox_6->setChecked(
false);
140 gridLayout =
new QGridLayout(groupBox_6);
141 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
142 label =
new QLabel(groupBox_6);
143 label->setObjectName(QStringLiteral(
"label"));
144 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
146 gridLayout->addWidget(label, 0, 0, 1, 1);
148 v4lStandardCombo =
new QComboBox(groupBox_6);
149 v4lStandardCombo->addItem(QString());
150 v4lStandardCombo->addItem(QString());
151 v4lStandardCombo->addItem(QString());
152 v4lStandardCombo->addItem(QString());
153 v4lStandardCombo->setObjectName(QStringLiteral(
"v4lStandardCombo"));
155 gridLayout->addWidget(v4lStandardCombo, 0, 1, 1, 1);
157 label_4 =
new QLabel(groupBox_6);
158 label_4->setObjectName(QStringLiteral(
"label_4"));
159 label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
161 gridLayout->addWidget(label_4, 1, 0, 1, 1);
163 v4lChannelSpinBox =
new QSpinBox(groupBox_6);
164 v4lChannelSpinBox->setObjectName(QStringLiteral(
"v4lChannelSpinBox"));
166 gridLayout->addWidget(v4lChannelSpinBox, 1, 1, 1, 1);
169 gridLayout_2->addWidget(groupBox_6, 5, 0, 1, 4);
171 preset =
new ServicePresetWidget(Video4LinuxWidget);
172 preset->setObjectName(QStringLiteral(
"preset"));
174 gridLayout_2->addWidget(preset, 1, 0, 1, 6);
176 label_2 =
new QLabel(Video4LinuxWidget);
177 label_2->setObjectName(QStringLiteral(
"label_2"));
178 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
180 gridLayout_2->addWidget(label_2, 6, 0, 1, 1);
182 v4lWidthSpinBox =
new QSpinBox(Video4LinuxWidget);
183 v4lWidthSpinBox->setObjectName(QStringLiteral(
"v4lWidthSpinBox"));
184 v4lWidthSpinBox->setMaximum(4096);
185 v4lWidthSpinBox->setValue(640);
187 gridLayout_2->addWidget(v4lWidthSpinBox, 3, 1, 1, 1);
189 label_11 =
new QLabel(Video4LinuxWidget);
190 label_11->setObjectName(QStringLiteral(
"label_11"));
192 gridLayout_2->addWidget(label_11, 3, 4, 1, 1);
194 label_8 =
new QLabel(Video4LinuxWidget);
195 label_8->setObjectName(QStringLiteral(
"label_8"));
196 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
197 sizePolicy.setHorizontalStretch(0);
198 sizePolicy.setVerticalStretch(0);
199 sizePolicy.setHeightForWidth(label_8->sizePolicy().hasHeightForWidth());
200 label_8->setSizePolicy(sizePolicy);
202 gridLayout_2->addWidget(label_8, 3, 2, 1, 1);
204 v4lAudioComboBox =
new QComboBox(Video4LinuxWidget);
205 v4lAudioComboBox->addItem(QString());
206 v4lAudioComboBox->addItem(QString());
207 v4lAudioComboBox->addItem(QString());
208 v4lAudioComboBox->addItem(QString());
209 v4lAudioComboBox->setObjectName(QStringLiteral(
"v4lAudioComboBox"));
211 gridLayout_2->addWidget(v4lAudioComboBox, 6, 1, 1, 3);
214 retranslateUi(Video4LinuxWidget);
216 QMetaObject::connectSlotsByName(Video4LinuxWidget);
219 void retranslateUi(QWidget *Video4LinuxWidget)
221 Video4LinuxWidget->setWindowTitle(QApplication::translate(
"Video4LinuxWidget",
"Form",
nullptr));
222 applyButton->setText(QApplication::translate(
"Video4LinuxWidget",
"Apply",
nullptr));
223 #ifndef QT_NO_TOOLTIP 224 v4lLineEdit->setToolTip(QApplication::translate(
"Video4LinuxWidget",
"Set the path to the video device file",
nullptr));
225 #endif // QT_NO_TOOLTIP 226 v4lLineEdit->setText(QApplication::translate(
"Video4LinuxWidget",
"/dev/video0",
nullptr));
227 label_3->setText(QApplication::translate(
"Video4LinuxWidget",
"Video4Linux",
nullptr));
228 label_10->setText(QApplication::translate(
"Video4LinuxWidget",
"fps",
nullptr));
229 #ifndef QT_NO_TOOLTIP 230 v4lHeightSpinBox->setToolTip(QApplication::translate(
"Video4LinuxWidget",
"Height",
nullptr));
231 #endif // QT_NO_TOOLTIP 232 label_9->setText(QApplication::translate(
"Video4LinuxWidget",
"Frame rate",
nullptr));
233 label_7->setText(QApplication::translate(
"Video4LinuxWidget",
"Resolution",
nullptr));
234 label_5->setText(QApplication::translate(
"Video4LinuxWidget",
"Device",
nullptr));
235 groupBox_6->setTitle(QApplication::translate(
"Video4LinuxWidget",
"TV Tuner",
nullptr));
236 label->setText(QApplication::translate(
"Video4LinuxWidget",
"Standard",
nullptr));
237 v4lStandardCombo->setItemText(0, QApplication::translate(
"Video4LinuxWidget",
"Automatic",
nullptr));
238 v4lStandardCombo->setItemText(1, QApplication::translate(
"Video4LinuxWidget",
"NTSC",
nullptr));
239 v4lStandardCombo->setItemText(2, QApplication::translate(
"Video4LinuxWidget",
"PAL",
nullptr));
240 v4lStandardCombo->setItemText(3, QApplication::translate(
"Video4LinuxWidget",
"SECAM",
nullptr));
242 #ifndef QT_NO_TOOLTIP 243 v4lStandardCombo->setToolTip(QApplication::translate(
"Video4LinuxWidget",
"Set the television standard",
nullptr));
244 #endif // QT_NO_TOOLTIP 245 label_4->setText(QApplication::translate(
"Video4LinuxWidget",
"Channel",
nullptr));
246 label_2->setText(QApplication::translate(
"Video4LinuxWidget",
"Audio Input",
nullptr));
247 #ifndef QT_NO_TOOLTIP 248 v4lWidthSpinBox->setToolTip(QApplication::translate(
"Video4LinuxWidget",
"Width",
nullptr));
249 #endif // QT_NO_TOOLTIP 250 label_11->setText(QApplication::translate(
"Video4LinuxWidget",
"pixels",
nullptr));
251 label_8->setText(QApplication::translate(
"Video4LinuxWidget",
"X",
nullptr));
252 v4lAudioComboBox->setItemText(0, QApplication::translate(
"Video4LinuxWidget",
"None",
nullptr));
253 v4lAudioComboBox->setItemText(1, QApplication::translate(
"Video4LinuxWidget",
"PulseAudio",
nullptr));
254 v4lAudioComboBox->setItemText(2, QApplication::translate(
"Video4LinuxWidget",
"JACK",
nullptr));
255 v4lAudioComboBox->setItemText(3, QApplication::translate(
"Video4LinuxWidget",
"ALSA",
nullptr));
262 class Video4LinuxWidget:
public Ui_Video4LinuxWidget {};
267 #endif // UI_VIDEO4LINUXWIDGET_H