9 #ifndef UI_ALSAWIDGET_H 10 #define UI_ALSAWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QHeaderView> 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" 32 QVBoxLayout *verticalLayout;
34 ServicePresetWidget *preset;
35 QGridLayout *gridLayout;
36 QSpacerItem *horizontalSpacer;
37 QPushButton *applyButton;
41 QSpinBox *alsaChannelsSpinBox;
42 QSpacerItem *verticalSpacer;
44 void setupUi(QWidget *AlsaWidget)
46 if (AlsaWidget->objectName().isEmpty())
47 AlsaWidget->setObjectName(QStringLiteral(
"AlsaWidget"));
48 AlsaWidget->resize(296, 204);
49 verticalLayout =
new QVBoxLayout(AlsaWidget);
50 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
51 label_2 =
new QLabel(AlsaWidget);
52 label_2->setObjectName(QStringLiteral(
"label_2"));
56 label_2->setFont(font);
57 label_2->setAlignment(Qt::AlignCenter);
59 verticalLayout->addWidget(label_2);
61 preset =
new ServicePresetWidget(AlsaWidget);
62 preset->setObjectName(QStringLiteral(
"preset"));
64 verticalLayout->addWidget(preset);
66 gridLayout =
new QGridLayout();
67 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
68 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
70 gridLayout->addItem(horizontalSpacer, 0, 2, 1, 1);
72 applyButton =
new QPushButton(AlsaWidget);
73 applyButton->setObjectName(QStringLiteral(
"applyButton"));
75 gridLayout->addWidget(applyButton, 2, 0, 1, 1);
77 label =
new QLabel(AlsaWidget);
78 label->setObjectName(QStringLiteral(
"label"));
79 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
81 gridLayout->addWidget(label, 0, 0, 1, 1);
83 lineEdit =
new QLineEdit(AlsaWidget);
84 lineEdit->setObjectName(QStringLiteral(
"lineEdit"));
86 gridLayout->addWidget(lineEdit, 0, 1, 1, 1);
88 label_3 =
new QLabel(AlsaWidget);
89 label_3->setObjectName(QStringLiteral(
"label_3"));
90 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
92 gridLayout->addWidget(label_3, 1, 0, 1, 1);
94 alsaChannelsSpinBox =
new QSpinBox(AlsaWidget);
95 alsaChannelsSpinBox->setObjectName(QStringLiteral(
"alsaChannelsSpinBox"));
96 alsaChannelsSpinBox->setMaximum(8);
97 alsaChannelsSpinBox->setValue(2);
99 gridLayout->addWidget(alsaChannelsSpinBox, 1, 1, 1, 1);
102 verticalLayout->addLayout(gridLayout);
104 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
106 verticalLayout->addItem(verticalSpacer);
108 QWidget::setTabOrder(lineEdit, alsaChannelsSpinBox);
109 QWidget::setTabOrder(alsaChannelsSpinBox, applyButton);
111 retranslateUi(AlsaWidget);
113 QMetaObject::connectSlotsByName(AlsaWidget);
116 void retranslateUi(QWidget *AlsaWidget)
118 AlsaWidget->setWindowTitle(QApplication::translate(
"AlsaWidget",
"Form",
nullptr));
119 label_2->setText(QApplication::translate(
"AlsaWidget",
"ALSA Audio",
nullptr));
120 applyButton->setText(QApplication::translate(
"AlsaWidget",
"Apply",
nullptr));
121 label->setText(QApplication::translate(
"AlsaWidget",
"PCM Device",
nullptr));
122 lineEdit->setText(QApplication::translate(
"AlsaWidget",
"default",
nullptr));
123 label_3->setText(QApplication::translate(
"AlsaWidget",
"Channels",
nullptr));
129 class AlsaWidget:
public Ui_AlsaWidget {};
134 #endif // UI_ALSAWIDGET_H Definition: addencodepresetdialog.h:24