9 #ifndef UI_GUI_SHUTDOWN_H
10 #define UI_GUI_SHUTDOWN_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QApplication>
14 #include <QtWidgets/QDialog>
15 #include <QtWidgets/QFrame>
16 #include <QtWidgets/QGridLayout>
17 #include <QtWidgets/QHBoxLayout>
18 #include <QtWidgets/QLabel>
19 #include <QtWidgets/QPushButton>
20 #include <QtWidgets/QRadioButton>
21 #include <QtWidgets/QSpinBox>
28 QGridLayout *gridLayout;
32 QPushButton *btn_cancel;
33 QRadioButton *rb_after_finished;
34 QHBoxLayout *horizontalLayout;
38 QRadioButton *rb_after_minutes;
41 void setupUi(QDialog *GUI_Shutdown)
43 if (GUI_Shutdown->objectName().isEmpty())
44 GUI_Shutdown->setObjectName(QString::fromUtf8(
"GUI_Shutdown"));
45 GUI_Shutdown->resize(383, 183);
46 gridLayout =
new QGridLayout(GUI_Shutdown);
47 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
48 line =
new QFrame(GUI_Shutdown);
49 line->setObjectName(QString::fromUtf8(
"line"));
50 line->setFrameShape(QFrame::HLine);
51 line->setFrameShadow(QFrame::Sunken);
53 gridLayout->addWidget(line, 2, 0, 1, 4);
55 btn_ok =
new QPushButton(GUI_Shutdown);
56 btn_ok->setObjectName(QString::fromUtf8(
"btn_ok"));
58 gridLayout->addWidget(btn_ok, 6, 3, 1, 1);
60 label_2 =
new QLabel(GUI_Shutdown);
61 label_2->setObjectName(QString::fromUtf8(
"label_2"));
63 gridLayout->addWidget(label_2, 4, 3, 1, 1);
65 btn_cancel =
new QPushButton(GUI_Shutdown);
66 btn_cancel->setObjectName(QString::fromUtf8(
"btn_cancel"));
68 gridLayout->addWidget(btn_cancel, 6, 2, 1, 1);
70 rb_after_finished =
new QRadioButton(GUI_Shutdown);
71 rb_after_finished->setObjectName(QString::fromUtf8(
"rb_after_finished"));
72 rb_after_finished->setChecked(
true);
74 gridLayout->addWidget(rb_after_finished, 3, 0, 1, 4);
76 horizontalLayout =
new QHBoxLayout();
77 horizontalLayout->setSpacing(15);
78 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
79 lab_icon =
new QLabel(GUI_Shutdown);
80 lab_icon->setObjectName(QString::fromUtf8(
"lab_icon"));
81 lab_icon->setStyleSheet(QString::fromUtf8(
"min-width: 6ex; max-width: 6ex; min-height: 6ex; max-height: 6ex;"));
82 lab_icon->setScaledContents(
true);
84 horizontalLayout->addWidget(lab_icon);
86 lab_title =
new QLabel(GUI_Shutdown);
87 lab_title->setObjectName(QString::fromUtf8(
"lab_title"));
89 font.setPointSize(11);
92 lab_title->setFont(font);
94 horizontalLayout->addWidget(lab_title);
97 gridLayout->addLayout(horizontalLayout, 1, 0, 1, 4);
99 sb_minutes =
new QSpinBox(GUI_Shutdown);
100 sb_minutes->setObjectName(QString::fromUtf8(
"sb_minutes"));
101 sb_minutes->setEnabled(
false);
102 sb_minutes->setValue(30);
104 gridLayout->addWidget(sb_minutes, 4, 2, 1, 1);
106 rb_after_minutes =
new QRadioButton(GUI_Shutdown);
107 rb_after_minutes->setObjectName(QString::fromUtf8(
"rb_after_minutes"));
109 gridLayout->addWidget(rb_after_minutes, 4, 0, 1, 1);
111 line_2 =
new QFrame(GUI_Shutdown);
112 line_2->setObjectName(QString::fromUtf8(
"line_2"));
113 line_2->setFrameShape(QFrame::HLine);
114 line_2->setFrameShadow(QFrame::Sunken);
116 gridLayout->addWidget(line_2, 5, 0, 1, 4);
118 QWidget::setTabOrder(rb_after_finished, rb_after_minutes);
119 QWidget::setTabOrder(rb_after_minutes, sb_minutes);
120 QWidget::setTabOrder(sb_minutes, btn_cancel);
121 QWidget::setTabOrder(btn_cancel, btn_ok);
123 retranslateUi(GUI_Shutdown);
125 QMetaObject::connectSlotsByName(GUI_Shutdown);
128 void retranslateUi(QDialog *GUI_Shutdown)
130 GUI_Shutdown->setWindowTitle(QApplication::translate(
"GUI_Shutdown",
"Shutdown",
nullptr));
131 btn_ok->setText(QApplication::translate(
"GUI_Shutdown",
"OK",
nullptr));
132 label_2->setText(QApplication::translate(
"GUI_Shutdown",
"minutes",
nullptr));
133 btn_cancel->setText(QApplication::translate(
"GUI_Shutdown",
"Cancel",
nullptr));
134 rb_after_finished->setText(QApplication::translate(
"GUI_Shutdown",
"Shutdown after playlist finished",
nullptr));
135 lab_icon->setText(QString());
136 lab_title->setText(QApplication::translate(
"GUI_Shutdown",
"Shutdown",
nullptr));
137 rb_after_minutes->setText(QApplication::translate(
"GUI_Shutdown",
"Shutdown after",
nullptr));
148 #endif // UI_GUI_SHUTDOWN_H