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/QFrame> 19 #include <QtWidgets/QGridLayout> 20 #include <QtWidgets/QHBoxLayout> 21 #include <QtWidgets/QHeaderView> 22 #include <QtWidgets/QLabel> 23 #include <QtWidgets/QLineEdit> 24 #include <QtWidgets/QPushButton> 25 #include <QtWidgets/QSpacerItem> 26 #include "Interfaces/PlayerPlugin/PlayerPlugin.h" 33 QGridLayout *gridLayout;
35 QComboBox *combo_stream;
36 QHBoxLayout *horizontalLayout_2;
38 QPushButton *btn_close;
40 QHBoxLayout *horizontalLayout;
42 QSpacerItem *horizontalSpacer;
43 QPushButton *btn_play;
51 if (GUI_Stream->objectName().isEmpty())
52 GUI_Stream->setObjectName(QStringLiteral(
"GUI_Stream"));
53 GUI_Stream->resize(422, 147);
54 GUI_Stream->setMinimumSize(QSize(0, 147));
55 gridLayout =
new QGridLayout(GUI_Stream);
56 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
57 gridLayout->setVerticalSpacing(6);
58 gridLayout->setContentsMargins(-1, 5, -1, 0);
59 label_2 =
new QLabel(GUI_Stream);
60 label_2->setObjectName(QStringLiteral(
"label_2"));
61 label_2->setFocusPolicy(Qt::StrongFocus);
63 gridLayout->addWidget(label_2, 3, 0, 1, 1);
65 combo_stream =
new QComboBox(GUI_Stream);
66 combo_stream->setObjectName(QStringLiteral(
"combo_stream"));
67 combo_stream->setFocusPolicy(Qt::ClickFocus);
68 combo_stream->setEditable(
true);
69 combo_stream->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength);
70 combo_stream->setMinimumContentsLength(4);
72 gridLayout->addWidget(combo_stream, 2, 1, 1, 2);
74 horizontalLayout_2 =
new QHBoxLayout();
75 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
76 lab_title =
new QLabel(GUI_Stream);
77 lab_title->setObjectName(QStringLiteral(
"lab_title"));
79 font.setPointSize(11);
82 lab_title->setFont(font);
83 lab_title->setFocusPolicy(Qt::StrongFocus);
85 horizontalLayout_2->addWidget(lab_title);
87 btn_close =
new QPushButton(GUI_Stream);
88 btn_close->setObjectName(QStringLiteral(
"btn_close"));
89 QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
90 sizePolicy.setHorizontalStretch(0);
91 sizePolicy.setVerticalStretch(0);
92 sizePolicy.setHeightForWidth(btn_close->sizePolicy().hasHeightForWidth());
93 btn_close->setSizePolicy(sizePolicy);
94 btn_close->setMinimumSize(QSize(24, 24));
95 btn_close->setMaximumSize(QSize(24, 24));
96 btn_close->setFocusPolicy(Qt::StrongFocus);
97 btn_close->setIconSize(QSize(16, 16));
98 btn_close->setFlat(
true);
100 horizontalLayout_2->addWidget(btn_close);
103 gridLayout->addLayout(horizontalLayout_2, 0, 0, 1, 3);
105 label =
new QLabel(GUI_Stream);
106 label->setObjectName(QStringLiteral(
"label"));
107 label->setMaximumSize(QSize(50, 16777215));
108 label->setFocusPolicy(Qt::StrongFocus);
110 gridLayout->addWidget(label, 2, 0, 1, 1);
112 horizontalLayout =
new QHBoxLayout();
113 horizontalLayout->setSpacing(6);
114 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
116 btn_tool->setObjectName(QStringLiteral(
"btn_tool"));
118 horizontalLayout->addWidget(btn_tool);
120 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
122 horizontalLayout->addItem(horizontalSpacer);
124 btn_play =
new QPushButton(GUI_Stream);
125 btn_play->setObjectName(QStringLiteral(
"btn_play"));
126 btn_play->setFocusPolicy(Qt::StrongFocus);
128 icon.addFile(QStringLiteral(
":/Icons/play.svg.png"), QSize(), QIcon::Normal, QIcon::Off);
129 btn_play->setIcon(icon);
130 btn_play->setIconSize(QSize(18, 18));
131 btn_play->setFlat(
true);
133 horizontalLayout->addWidget(btn_play);
135 lab_listen =
new QLabel(GUI_Stream);
136 lab_listen->setObjectName(QStringLiteral(
"lab_listen"));
138 horizontalLayout->addWidget(lab_listen);
141 gridLayout->addLayout(horizontalLayout, 4, 1, 2, 2);
143 le_url =
new QLineEdit(GUI_Stream);
144 le_url->setObjectName(QStringLiteral(
"le_url"));
145 le_url->setFocusPolicy(Qt::ClickFocus);
147 gridLayout->addWidget(le_url, 3, 1, 1, 2);
149 line =
new QFrame(GUI_Stream);
150 line->setObjectName(QStringLiteral(
"line"));
151 line->setFocusPolicy(Qt::StrongFocus);
152 line->setFrameShape(QFrame::HLine);
153 line->setFrameShadow(QFrame::Sunken);
155 gridLayout->addWidget(line, 6, 0, 1, 3);
157 line_2 =
new QFrame(GUI_Stream);
158 line_2->setObjectName(QStringLiteral(
"line_2"));
159 line_2->setFrameShape(QFrame::HLine);
160 line_2->setFrameShadow(QFrame::Sunken);
162 gridLayout->addWidget(line_2, 1, 0, 1, 3);
165 retranslateUi(GUI_Stream);
166 QObject::connect(btn_close, SIGNAL(clicked()), GUI_Stream, SLOT(close()));
168 QMetaObject::connectSlotsByName(GUI_Stream);
173 label_2->setText(QApplication::translate(
"GUI_Stream",
"Url", 0));
174 #ifndef QT_NO_TOOLTIP 175 combo_stream->setToolTip(QApplication::translate(
"GUI_Stream",
"Type name you want to save the stream as", 0));
176 #endif // QT_NO_TOOLTIP 177 lab_title->setText(QString());
178 btn_close->setText(QString());
179 label->setText(QApplication::translate(
"GUI_Stream",
"Name", 0));
180 btn_tool->setText(QApplication::translate(
"GUI_Stream",
"Actions", 0));
181 #ifndef QT_NO_TOOLTIP 182 btn_play->setToolTip(QApplication::translate(
"GUI_Stream",
"Start stream", 0));
183 #endif // QT_NO_TOOLTIP 184 btn_play->setText(QString());
185 lab_listen->setText(QApplication::translate(
"GUI_Stream",
"Listen", 0));
186 #ifndef QT_NO_TOOLTIP 187 le_url->setToolTip(QApplication::translate(
"GUI_Stream",
"Enter stream url", 0));
188 #endif // QT_NO_TOOLTIP 189 Q_UNUSED(GUI_Stream);
200 #endif // UI_GUI_STREAM_H Definition: ui_GUI_SomaFM.h:200
Definition: GUI_Stream.h:32
Interface for PlayerPlugin classes. get_name() and language_changed() must be overwritten.
Definition: PlayerPlugin.h:48
Definition: ui_GUI_Stream.h:195
Definition: ui_GUI_Stream.h:30