10#define UI_ALSAWIDGET_H
12#include <QtCore/QVariant>
13#include <QtWidgets/QApplication>
14#include <QtWidgets/QGridLayout>
15#include <QtWidgets/QLabel>
16#include <QtWidgets/QLineEdit>
17#include <QtWidgets/QPushButton>
18#include <QtWidgets/QSpacerItem>
19#include <QtWidgets/QSpinBox>
20#include <QtWidgets/QVBoxLayout>
21#include <QtWidgets/QWidget>
22#include "widgets/servicepresetwidget.h"
29 QVBoxLayout *verticalLayout;
31 ServicePresetWidget *preset;
32 QGridLayout *gridLayout;
33 QSpacerItem *horizontalSpacer;
34 QPushButton *applyButton;
38 QSpinBox *alsaChannelsSpinBox;
39 QSpacerItem *verticalSpacer;
41 void setupUi(QWidget *AlsaWidget)
43 if (AlsaWidget->objectName().isEmpty())
44 AlsaWidget->setObjectName(
"AlsaWidget");
45 AlsaWidget->resize(296, 204);
46#if QT_CONFIG(whatsthis)
47 AlsaWidget->setWhatsThis(QString::fromUtf8(
"https://forum.shotcut.org/t/open-other-alsa-audio/12940/1"));
49 verticalLayout =
new QVBoxLayout(AlsaWidget);
50 verticalLayout->setObjectName(
"verticalLayout");
51 label_2 =
new QLabel(AlsaWidget);
52 label_2->setObjectName(
"label_2");
55 label_2->setFont(font);
56 label_2->setAlignment(Qt::AlignmentFlag::AlignCenter);
58 verticalLayout->addWidget(label_2);
60 preset =
new ServicePresetWidget(AlsaWidget);
61 preset->setObjectName(
"preset");
63 verticalLayout->addWidget(preset);
65 gridLayout =
new QGridLayout();
66 gridLayout->setObjectName(
"gridLayout");
67 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
69 gridLayout->addItem(horizontalSpacer, 0, 2, 1, 1);
71 applyButton =
new QPushButton(AlsaWidget);
72 applyButton->setObjectName(
"applyButton");
74 gridLayout->addWidget(applyButton, 2, 0, 1, 1);
76 label =
new QLabel(AlsaWidget);
77 label->setObjectName(
"label");
78 label->setAlignment(Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter);
80 gridLayout->addWidget(label, 0, 0, 1, 1);
82 lineEdit =
new QLineEdit(AlsaWidget);
83 lineEdit->setObjectName(
"lineEdit");
85 gridLayout->addWidget(lineEdit, 0, 1, 1, 1);
87 label_3 =
new QLabel(AlsaWidget);
88 label_3->setObjectName(
"label_3");
89 label_3->setAlignment(Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter);
91 gridLayout->addWidget(label_3, 1, 0, 1, 1);
93 alsaChannelsSpinBox =
new QSpinBox(AlsaWidget);
94 alsaChannelsSpinBox->setObjectName(
"alsaChannelsSpinBox");
95 alsaChannelsSpinBox->setMaximum(8);
96 alsaChannelsSpinBox->setValue(2);
98 gridLayout->addWidget(alsaChannelsSpinBox, 1, 1, 1, 1);
101 verticalLayout->addLayout(gridLayout);
103 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
105 verticalLayout->addItem(verticalSpacer);
107 QWidget::setTabOrder(lineEdit, alsaChannelsSpinBox);
108 QWidget::setTabOrder(alsaChannelsSpinBox, applyButton);
110 retranslateUi(AlsaWidget);
112 QMetaObject::connectSlotsByName(AlsaWidget);
115 void retranslateUi(QWidget *AlsaWidget)
117 AlsaWidget->setWindowTitle(QCoreApplication::translate(
"AlsaWidget",
"Form",
nullptr));
118 label_2->setText(QCoreApplication::translate(
"AlsaWidget",
"ALSA Audio",
nullptr));
119 applyButton->setText(QCoreApplication::translate(
"AlsaWidget",
"Apply",
nullptr));
120 label->setText(QCoreApplication::translate(
"AlsaWidget",
"PCM Device",
nullptr));
121 lineEdit->setText(QCoreApplication::translate(
"AlsaWidget",
"default",
nullptr));
122 label_3->setText(QCoreApplication::translate(
"AlsaWidget",
"Channels",
nullptr));
128 class AlsaWidget:
public Ui_AlsaWidget {};