9 #ifndef UI_GUI_PODCASTS_H 10 #define UI_GUI_PODCASTS_H 12 #include <GUI/Helper/MenuTool/MenuTool.h> 13 #include <QtCore/QVariant> 14 #include <QtWidgets/QAction> 15 #include <QtWidgets/QApplication> 16 #include <QtWidgets/QButtonGroup> 17 #include <QtWidgets/QComboBox> 18 #include <QtWidgets/QGridLayout> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QHeaderView> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QLineEdit> 23 #include <QtWidgets/QPushButton> 24 #include <QtWidgets/QSpacerItem> 25 #include "Interfaces/PlayerPlugin/PlayerPlugin.h" 32 QGridLayout *gridLayout;
33 QComboBox *combo_stream;
36 QHBoxLayout *horizontalLayout;
38 QSpacerItem *horizontalSpacer;
39 QPushButton *btn_play;
45 if (GUI_Podcasts->objectName().isEmpty())
46 GUI_Podcasts->setObjectName(QStringLiteral(
"GUI_Podcasts"));
47 GUI_Podcasts->resize(320, 100);
48 gridLayout =
new QGridLayout(GUI_Podcasts);
49 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
50 gridLayout->setVerticalSpacing(6);
51 gridLayout->setContentsMargins(-1, 5, -1, 5);
52 combo_stream =
new QComboBox(GUI_Podcasts);
53 combo_stream->setObjectName(QStringLiteral(
"combo_stream"));
54 combo_stream->setFocusPolicy(Qt::StrongFocus);
55 combo_stream->setEditable(
true);
57 gridLayout->addWidget(combo_stream, 1, 2, 1, 1);
59 label_2 =
new QLabel(GUI_Podcasts);
60 label_2->setObjectName(QStringLiteral(
"label_2"));
61 label_2->setFocusPolicy(Qt::StrongFocus);
63 gridLayout->addWidget(label_2, 2, 1, 1, 1);
65 le_url =
new QLineEdit(GUI_Podcasts);
66 le_url->setObjectName(QStringLiteral(
"le_url"));
67 le_url->setFocusPolicy(Qt::ClickFocus);
69 gridLayout->addWidget(le_url, 2, 2, 1, 1);
71 horizontalLayout =
new QHBoxLayout();
72 horizontalLayout->setSpacing(6);
73 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
75 btn_tool->setObjectName(QStringLiteral(
"btn_tool"));
77 horizontalLayout->addWidget(btn_tool);
79 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
81 horizontalLayout->addItem(horizontalSpacer);
83 btn_play =
new QPushButton(GUI_Podcasts);
84 btn_play->setObjectName(QStringLiteral(
"btn_play"));
85 btn_play->setMaximumSize(QSize(20, 16777215));
86 btn_play->setFocusPolicy(Qt::StrongFocus);
88 icon.addFile(QStringLiteral(
":/Icons/play.svg.png"), QSize(), QIcon::Normal, QIcon::Off);
89 btn_play->setIcon(icon);
90 btn_play->setIconSize(QSize(18, 18));
91 btn_play->setFlat(
true);
93 horizontalLayout->addWidget(btn_play);
95 lab_listen =
new QLabel(GUI_Podcasts);
96 lab_listen->setObjectName(QStringLiteral(
"lab_listen"));
98 horizontalLayout->addWidget(lab_listen);
101 gridLayout->addLayout(horizontalLayout, 3, 2, 1, 1);
103 label =
new QLabel(GUI_Podcasts);
104 label->setObjectName(QStringLiteral(
"label"));
105 label->setFocusPolicy(Qt::StrongFocus);
107 gridLayout->addWidget(label, 1, 1, 1, 1);
110 retranslateUi(GUI_Podcasts);
112 QMetaObject::connectSlotsByName(GUI_Podcasts);
117 #ifndef QT_NO_TOOLTIP 118 combo_stream->setToolTip(QApplication::translate(
"GUI_Podcasts",
"Type name you want to save the stream as", Q_NULLPTR));
119 #endif // QT_NO_TOOLTIP 120 label_2->setText(QApplication::translate(
"GUI_Podcasts",
"Url", Q_NULLPTR));
121 #ifndef QT_NO_TOOLTIP 122 le_url->setToolTip(QApplication::translate(
"GUI_Podcasts",
"Enter stream url", Q_NULLPTR));
123 #endif // QT_NO_TOOLTIP 124 btn_tool->setText(QApplication::translate(
"GUI_Podcasts",
"Menu", Q_NULLPTR));
125 #ifndef QT_NO_TOOLTIP 126 btn_play->setToolTip(QApplication::translate(
"GUI_Podcasts",
"Start stream", Q_NULLPTR));
127 #endif // QT_NO_TOOLTIP 128 btn_play->setText(QString());
129 lab_listen->setText(QApplication::translate(
"GUI_Podcasts",
"Listen", Q_NULLPTR));
130 label->setText(QApplication::translate(
"GUI_Podcasts",
"Name", Q_NULLPTR));
131 Q_UNUSED(GUI_Podcasts);
142 #endif // UI_GUI_PODCASTS_H Definition: ui_GUI_SomaFM.h:217
Definition: ui_GUI_Podcasts.h:29
Interface for PlayerPlugin classes. get_name() and language_changed() must be overwritten.
Definition: PlayerPlugin.h:49
Definition: GUI_Podcasts.h:33
Definition: ui_GUI_Podcasts.h:137