9 #ifndef UI_GUI_STREAM_H 10 #define UI_GUI_STREAM_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 QHBoxLayout *horizontalLayout;
35 QSpacerItem *horizontalSpacer;
36 QPushButton *btn_play;
41 QComboBox *combo_stream;
45 if (GUI_Stream->objectName().isEmpty())
46 GUI_Stream->setObjectName(QStringLiteral(
"GUI_Stream"));
47 GUI_Stream->resize(285, 100);
48 gridLayout =
new QGridLayout(GUI_Stream);
49 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
50 gridLayout->setVerticalSpacing(6);
51 gridLayout->setContentsMargins(-1, 5, -1, 5);
52 horizontalLayout =
new QHBoxLayout();
53 horizontalLayout->setSpacing(6);
54 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
56 btn_tool->setObjectName(QStringLiteral(
"btn_tool"));
58 horizontalLayout->addWidget(btn_tool);
60 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
62 horizontalLayout->addItem(horizontalSpacer);
64 btn_play =
new QPushButton(GUI_Stream);
65 btn_play->setObjectName(QStringLiteral(
"btn_play"));
66 btn_play->setMaximumSize(QSize(20, 16777215));
67 btn_play->setFocusPolicy(Qt::StrongFocus);
69 icon.addFile(QStringLiteral(
":/Icons/play.svg.png"), QSize(), QIcon::Normal, QIcon::Off);
70 btn_play->setIcon(icon);
71 btn_play->setIconSize(QSize(18, 18));
72 btn_play->setFlat(
true);
74 horizontalLayout->addWidget(btn_play);
76 lab_listen =
new QLabel(GUI_Stream);
77 lab_listen->setObjectName(QStringLiteral(
"lab_listen"));
79 horizontalLayout->addWidget(lab_listen);
82 gridLayout->addLayout(horizontalLayout, 3, 2, 1, 1);
84 le_url =
new QLineEdit(GUI_Stream);
85 le_url->setObjectName(QStringLiteral(
"le_url"));
86 le_url->setFocusPolicy(Qt::ClickFocus);
88 gridLayout->addWidget(le_url, 2, 2, 1, 1);
90 label_2 =
new QLabel(GUI_Stream);
91 label_2->setObjectName(QStringLiteral(
"label_2"));
92 label_2->setFocusPolicy(Qt::StrongFocus);
94 gridLayout->addWidget(label_2, 2, 1, 1, 1);
96 label =
new QLabel(GUI_Stream);
97 label->setObjectName(QStringLiteral(
"label"));
98 label->setFocusPolicy(Qt::StrongFocus);
100 gridLayout->addWidget(label, 1, 1, 1, 1);
102 combo_stream =
new QComboBox(GUI_Stream);
103 combo_stream->setObjectName(QStringLiteral(
"combo_stream"));
104 combo_stream->setFocusPolicy(Qt::StrongFocus);
105 combo_stream->setEditable(
true);
107 gridLayout->addWidget(combo_stream, 1, 2, 1, 1);
110 retranslateUi(GUI_Stream);
112 QMetaObject::connectSlotsByName(GUI_Stream);
117 btn_tool->setText(QApplication::translate(
"GUI_Stream",
"Menu", 0));
118 #ifndef QT_NO_TOOLTIP 119 btn_play->setToolTip(QApplication::translate(
"GUI_Stream",
"Start stream", 0));
120 #endif // QT_NO_TOOLTIP 121 btn_play->setText(QString());
122 lab_listen->setText(QApplication::translate(
"GUI_Stream",
"Listen", 0));
123 #ifndef QT_NO_TOOLTIP 124 le_url->setToolTip(QApplication::translate(
"GUI_Stream",
"Enter stream url", 0));
125 #endif // QT_NO_TOOLTIP 126 label_2->setText(QApplication::translate(
"GUI_Stream",
"Url", 0));
127 label->setText(QApplication::translate(
"GUI_Stream",
"Name", 0));
128 #ifndef QT_NO_TOOLTIP 129 combo_stream->setToolTip(QApplication::translate(
"GUI_Stream",
"Type name you want to save the stream as", 0));
130 #endif // QT_NO_TOOLTIP 131 Q_UNUSED(GUI_Stream);
142 #endif // UI_GUI_STREAM_H Definition: ui_GUI_SomaFM.h:217
Definition: GUI_Stream.h:32
Interface for PlayerPlugin classes. get_name() and language_changed() must be overwritten.
Definition: PlayerPlugin.h:49
Definition: ui_GUI_Stream.h:137
Definition: ui_GUI_Stream.h:29