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(QString::fromUtf8(
"AlsaWidget"));
45 AlsaWidget->resize(296, 204);
46 verticalLayout =
new QVBoxLayout(AlsaWidget);
47 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
48 label_2 =
new QLabel(AlsaWidget);
49 label_2->setObjectName(QString::fromUtf8(
"label_2"));
53 label_2->setFont(font);
54 label_2->setAlignment(Qt::AlignCenter);
56 verticalLayout->addWidget(label_2);
58 preset =
new ServicePresetWidget(AlsaWidget);
59 preset->setObjectName(QString::fromUtf8(
"preset"));
61 verticalLayout->addWidget(preset);
63 gridLayout =
new QGridLayout();
64 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
65 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
67 gridLayout->addItem(horizontalSpacer, 0, 2, 1, 1);
69 applyButton =
new QPushButton(AlsaWidget);
70 applyButton->setObjectName(QString::fromUtf8(
"applyButton"));
72 gridLayout->addWidget(applyButton, 2, 0, 1, 1);
74 label =
new QLabel(AlsaWidget);
75 label->setObjectName(QString::fromUtf8(
"label"));
76 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
78 gridLayout->addWidget(label, 0, 0, 1, 1);
80 lineEdit =
new QLineEdit(AlsaWidget);
81 lineEdit->setObjectName(QString::fromUtf8(
"lineEdit"));
83 gridLayout->addWidget(lineEdit, 0, 1, 1, 1);
85 label_3 =
new QLabel(AlsaWidget);
86 label_3->setObjectName(QString::fromUtf8(
"label_3"));
87 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
89 gridLayout->addWidget(label_3, 1, 0, 1, 1);
91 alsaChannelsSpinBox =
new QSpinBox(AlsaWidget);
92 alsaChannelsSpinBox->setObjectName(QString::fromUtf8(
"alsaChannelsSpinBox"));
93 alsaChannelsSpinBox->setMaximum(8);
94 alsaChannelsSpinBox->setValue(2);
96 gridLayout->addWidget(alsaChannelsSpinBox, 1, 1, 1, 1);
99 verticalLayout->addLayout(gridLayout);
101 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
103 verticalLayout->addItem(verticalSpacer);
105 QWidget::setTabOrder(lineEdit, alsaChannelsSpinBox);
106 QWidget::setTabOrder(alsaChannelsSpinBox, applyButton);
108 retranslateUi(AlsaWidget);
110 QMetaObject::connectSlotsByName(AlsaWidget);
113 void retranslateUi(QWidget *AlsaWidget)
115 AlsaWidget->setWindowTitle(QCoreApplication::translate(
"AlsaWidget",
"Form",
nullptr));
116 label_2->setText(QCoreApplication::translate(
"AlsaWidget",
"ALSA Audio",
nullptr));
117 applyButton->setText(QCoreApplication::translate(
"AlsaWidget",
"Apply",
nullptr));
118 label->setText(QCoreApplication::translate(
"AlsaWidget",
"PCM Device",
nullptr));
119 lineEdit->setText(QCoreApplication::translate(
"AlsaWidget",
"default",
nullptr));
120 label_3->setText(QCoreApplication::translate(
"AlsaWidget",
"Channels",
nullptr));
126 class AlsaWidget:
public Ui_AlsaWidget {};