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 verticalLayout =
new QVBoxLayout(AlsaWidget);
47 verticalLayout->setObjectName(
"verticalLayout");
48 label_2 =
new QLabel(AlsaWidget);
49 label_2->setObjectName(
"label_2");
52 label_2->setFont(font);
53 label_2->setAlignment(Qt::AlignCenter);
55 verticalLayout->addWidget(label_2);
57 preset =
new ServicePresetWidget(AlsaWidget);
58 preset->setObjectName(
"preset");
60 verticalLayout->addWidget(preset);
62 gridLayout =
new QGridLayout();
63 gridLayout->setObjectName(
"gridLayout");
64 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
66 gridLayout->addItem(horizontalSpacer, 0, 2, 1, 1);
68 applyButton =
new QPushButton(AlsaWidget);
69 applyButton->setObjectName(
"applyButton");
71 gridLayout->addWidget(applyButton, 2, 0, 1, 1);
73 label =
new QLabel(AlsaWidget);
74 label->setObjectName(
"label");
75 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
77 gridLayout->addWidget(label, 0, 0, 1, 1);
79 lineEdit =
new QLineEdit(AlsaWidget);
80 lineEdit->setObjectName(
"lineEdit");
82 gridLayout->addWidget(lineEdit, 0, 1, 1, 1);
84 label_3 =
new QLabel(AlsaWidget);
85 label_3->setObjectName(
"label_3");
86 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
88 gridLayout->addWidget(label_3, 1, 0, 1, 1);
90 alsaChannelsSpinBox =
new QSpinBox(AlsaWidget);
91 alsaChannelsSpinBox->setObjectName(
"alsaChannelsSpinBox");
92 alsaChannelsSpinBox->setMaximum(8);
93 alsaChannelsSpinBox->setValue(2);
95 gridLayout->addWidget(alsaChannelsSpinBox, 1, 1, 1, 1);
98 verticalLayout->addLayout(gridLayout);
100 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
102 verticalLayout->addItem(verticalSpacer);
104 QWidget::setTabOrder(lineEdit, alsaChannelsSpinBox);
105 QWidget::setTabOrder(alsaChannelsSpinBox, applyButton);
107 retranslateUi(AlsaWidget);
109 QMetaObject::connectSlotsByName(AlsaWidget);
112 void retranslateUi(QWidget *AlsaWidget)
114 AlsaWidget->setWindowTitle(QCoreApplication::translate(
"AlsaWidget",
"Form",
nullptr));
115 label_2->setText(QCoreApplication::translate(
"AlsaWidget",
"ALSA Audio",
nullptr));
116 applyButton->setText(QCoreApplication::translate(
"AlsaWidget",
"Apply",
nullptr));
117 label->setText(QCoreApplication::translate(
"AlsaWidget",
"PCM Device",
nullptr));
118 lineEdit->setText(QCoreApplication::translate(
"AlsaWidget",
"default",
nullptr));
119 label_3->setText(QCoreApplication::translate(
"AlsaWidget",
"Channels",
nullptr));
125 class AlsaWidget:
public Ui_AlsaWidget {};