9 #ifndef UI_GUI_STATIONSEARCHER_H
10 #define UI_GUI_STATIONSEARCHER_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/QHeaderView>
19 #include <QtWidgets/QLabel>
20 #include <QtWidgets/QLineEdit>
21 #include <QtWidgets/QProgressBar>
22 #include <QtWidgets/QPushButton>
23 #include <QtWidgets/QSpacerItem>
24 #include <QtWidgets/QSplitter>
25 #include <QtWidgets/QTableWidget>
32 QGridLayout *gridLayout;
33 QHBoxLayout *horizontalLayout;
35 QPushButton *btn_search_prev;
36 QPushButton *btn_search_next;
37 QPushButton *btn_search;
41 QTableWidget *tw_stations;
42 QTableWidget *tw_streams;
43 QHBoxLayout *horizontalLayout_2;
44 QProgressBar *pb_progress;
45 QSpacerItem *horizontalSpacer;
46 QPushButton *btn_close;
47 QPushButton *btn_listen;
48 QHBoxLayout *horizontalLayout_3;
50 QSpacerItem *horizontalSpacer_2;
60 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
61 gridLayout->setVerticalSpacing(6);
62 horizontalLayout =
new QHBoxLayout();
63 horizontalLayout->setSpacing(5);
64 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
65 horizontalLayout->setContentsMargins(-1, 1, -1, 1);
67 le_search->setObjectName(QString::fromUtf8(
"le_search"));
69 horizontalLayout->addWidget(le_search);
72 btn_search_prev->setObjectName(QString::fromUtf8(
"btn_search_prev"));
73 btn_search_prev->setText(QString::fromUtf8(
"Search previous"));
75 horizontalLayout->addWidget(btn_search_prev);
78 btn_search_next->setObjectName(QString::fromUtf8(
"btn_search_next"));
79 btn_search_next->setText(QString::fromUtf8(
"Search next"));
81 horizontalLayout->addWidget(btn_search_next);
84 btn_search->setObjectName(QString::fromUtf8(
"btn_search"));
85 btn_search->setText(QString::fromUtf8(
"Search"));
87 horizontalLayout->addWidget(btn_search);
90 gridLayout->addLayout(horizontalLayout, 4, 0, 1, 2);
93 line->setObjectName(QString::fromUtf8(
"line"));
94 line->setFrameShape(QFrame::HLine);
95 line->setFrameShadow(QFrame::Sunken);
97 gridLayout->addWidget(line, 3, 0, 1, 2);
100 lab_from_to->setObjectName(QString::fromUtf8(
"lab_from_to"));
101 lab_from_to->setText(QString::fromUtf8(
""));
103 gridLayout->addWidget(lab_from_to, 6, 0, 1, 2);
106 splitter->setObjectName(QString::fromUtf8(
"splitter"));
107 splitter->setOrientation(Qt::Vertical);
108 tw_stations =
new QTableWidget(splitter);
109 tw_stations->setObjectName(QString::fromUtf8(
"tw_stations"));
110 tw_stations->setAlternatingRowColors(
true);
111 tw_stations->setSelectionMode(QAbstractItemView::SingleSelection);
112 tw_stations->setSelectionBehavior(QAbstractItemView::SelectRows);
113 tw_stations->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
114 splitter->addWidget(tw_stations);
115 tw_stations->horizontalHeader()->setMinimumSectionSize(30);
116 tw_stations->horizontalHeader()->setStretchLastSection(
true);
117 tw_stations->verticalHeader()->setVisible(
false);
118 tw_streams =
new QTableWidget(splitter);
119 tw_streams->setObjectName(QString::fromUtf8(
"tw_streams"));
120 tw_streams->setAlternatingRowColors(
true);
121 tw_streams->setSelectionMode(QAbstractItemView::SingleSelection);
122 tw_streams->setSelectionBehavior(QAbstractItemView::SelectRows);
123 tw_streams->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
124 splitter->addWidget(tw_streams);
125 tw_streams->horizontalHeader()->setVisible(
false);
126 tw_streams->horizontalHeader()->setMinimumSectionSize(30);
127 tw_streams->horizontalHeader()->setStretchLastSection(
true);
128 tw_streams->verticalHeader()->setVisible(
false);
130 gridLayout->addWidget(splitter, 8, 0, 1, 2);
132 horizontalLayout_2 =
new QHBoxLayout();
133 horizontalLayout_2->setSpacing(5);
134 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
135 horizontalLayout_2->setContentsMargins(-1, 1, -1, 1);
137 pb_progress->setObjectName(QString::fromUtf8(
"pb_progress"));
138 pb_progress->setMaximum(0);
139 pb_progress->setValue(-1);
141 horizontalLayout_2->addWidget(pb_progress);
143 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
145 horizontalLayout_2->addItem(horizontalSpacer);
148 btn_close->setObjectName(QString::fromUtf8(
"btn_close"));
149 btn_close->setText(QString::fromUtf8(
"Close"));
151 horizontalLayout_2->addWidget(btn_close);
154 btn_listen->setObjectName(QString::fromUtf8(
"btn_listen"));
155 btn_listen->setText(QString::fromUtf8(
"Add"));
157 horizontalLayout_2->addWidget(btn_listen);
160 gridLayout->addLayout(horizontalLayout_2, 10, 0, 1, 2);
162 horizontalLayout_3 =
new QHBoxLayout();
163 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
164 horizontalLayout_3->setContentsMargins(-1, 1, -1, 3);
166 label->setObjectName(QString::fromUtf8(
"label"));
170 label->setFont(font);
171 label->setText(QString::fromUtf8(
"Search Radio Station"));
173 horizontalLayout_3->addWidget(label);
175 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
177 horizontalLayout_3->addItem(horizontalSpacer_2);
180 lab_link->setObjectName(QString::fromUtf8(
"lab_link"));
181 lab_link->setText(QString::fromUtf8(
"<a href=\"http://fmstream.org\">fmstream.org</a>"));
183 horizontalLayout_3->addWidget(lab_link);
186 gridLayout->addLayout(horizontalLayout_3, 2, 0, 1, 2);
189 line_2->setObjectName(QString::fromUtf8(
"line_2"));
190 line_2->setFrameShape(QFrame::HLine);
191 line_2->setFrameShadow(QFrame::Sunken);
193 gridLayout->addWidget(line_2, 5, 0, 1, 2);
195 QWidget::setTabOrder(le_search, btn_search_prev);
196 QWidget::setTabOrder(btn_search_prev, btn_search_next);
197 QWidget::setTabOrder(btn_search_next, btn_search);
198 QWidget::setTabOrder(btn_search, tw_stations);
199 QWidget::setTabOrder(tw_stations, tw_streams);
200 QWidget::setTabOrder(tw_streams, btn_close);
201 QWidget::setTabOrder(btn_close, btn_listen);
210 GUI_StationSearcher->setWindowTitle(QApplication::translate(
"GUI_StationSearcher",
"Search Radio Station",
nullptr));
221 #endif // UI_GUI_STATIONSEARCHER_H