9 #ifndef UI_GUI_STATIONSEARCHER_H
10 #define UI_GUI_STATIONSEARCHER_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QApplication>
14 #include <QtWidgets/QCheckBox>
15 #include <QtWidgets/QDialog>
16 #include <QtWidgets/QDialogButtonBox>
17 #include <QtWidgets/QFrame>
18 #include <QtWidgets/QGridLayout>
19 #include <QtWidgets/QHBoxLayout>
20 #include <QtWidgets/QHeaderView>
21 #include <QtWidgets/QLabel>
22 #include <QtWidgets/QLineEdit>
23 #include <QtWidgets/QProgressBar>
24 #include <QtWidgets/QPushButton>
25 #include <QtWidgets/QSpacerItem>
26 #include <QtWidgets/QSplitter>
27 #include <QtWidgets/QTableWidget>
34 QGridLayout *gridLayout;
35 QDialogButtonBox *buttonBox;
36 QHBoxLayout *horizontalLayout;
38 QPushButton *btnSearchPrev;
39 QPushButton *btnSearchNext;
40 QPushButton *btnSearch;
42 QTableWidget *twStations;
43 QTableWidget *twStreams;
47 QHBoxLayout *horizontalLayout_3;
49 QSpacerItem *horizontalSpacer_2;
51 QHBoxLayout *horizontalLayout_2;
52 QProgressBar *pbProgress;
53 QSpacerItem *horizontalSpacer;
62 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
63 gridLayout->setVerticalSpacing(6);
65 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
66 buttonBox->setStandardButtons(QDialogButtonBox::Close|QDialogButtonBox::Ok);
68 gridLayout->addWidget(buttonBox, 11, 1, 1, 1);
70 horizontalLayout =
new QHBoxLayout();
71 horizontalLayout->setSpacing(5);
72 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
73 horizontalLayout->setContentsMargins(-1, 1, -1, 1);
75 leSearch->setObjectName(QString::fromUtf8(
"leSearch"));
77 horizontalLayout->addWidget(leSearch);
80 btnSearchPrev->setObjectName(QString::fromUtf8(
"btnSearchPrev"));
81 btnSearchPrev->setText(QString::fromUtf8(
"Search previous"));
83 horizontalLayout->addWidget(btnSearchPrev);
86 btnSearchNext->setObjectName(QString::fromUtf8(
"btnSearchNext"));
87 btnSearchNext->setText(QString::fromUtf8(
"Search next"));
89 horizontalLayout->addWidget(btnSearchNext);
92 btnSearch->setObjectName(QString::fromUtf8(
"btnSearch"));
93 btnSearch->setText(QString::fromUtf8(
"Search"));
95 horizontalLayout->addWidget(btnSearch);
98 gridLayout->addLayout(horizontalLayout, 4, 0, 1, 2);
101 splitter->setObjectName(QString::fromUtf8(
"splitter"));
102 splitter->setOrientation(Qt::Vertical);
103 twStations =
new QTableWidget(splitter);
104 twStations->setObjectName(QString::fromUtf8(
"twStations"));
105 twStations->setAlternatingRowColors(
true);
106 twStations->setSelectionMode(QAbstractItemView::SingleSelection);
107 twStations->setSelectionBehavior(QAbstractItemView::SelectRows);
108 twStations->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
109 splitter->addWidget(twStations);
110 twStations->horizontalHeader()->setMinimumSectionSize(30);
111 twStations->horizontalHeader()->setStretchLastSection(
true);
112 twStations->verticalHeader()->setVisible(
false);
113 twStreams =
new QTableWidget(splitter);
114 twStreams->setObjectName(QString::fromUtf8(
"twStreams"));
115 twStreams->setAlternatingRowColors(
true);
116 twStreams->setSelectionMode(QAbstractItemView::SingleSelection);
117 twStreams->setSelectionBehavior(QAbstractItemView::SelectRows);
118 twStreams->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
119 splitter->addWidget(twStreams);
120 twStreams->horizontalHeader()->setVisible(
false);
121 twStreams->horizontalHeader()->setMinimumSectionSize(30);
122 twStreams->horizontalHeader()->setStretchLastSection(
true);
123 twStreams->verticalHeader()->setVisible(
false);
125 gridLayout->addWidget(splitter, 8, 0, 1, 2);
128 labFromTo->setObjectName(QString::fromUtf8(
"labFromTo"));
129 labFromTo->setText(QString::fromUtf8(
""));
131 gridLayout->addWidget(labFromTo, 6, 0, 1, 2);
134 line->setObjectName(QString::fromUtf8(
"line"));
135 line->setFrameShape(QFrame::HLine);
136 line->setFrameShadow(QFrame::Sunken);
138 gridLayout->addWidget(line, 3, 0, 1, 2);
141 line_2->setObjectName(QString::fromUtf8(
"line_2"));
142 line_2->setFrameShape(QFrame::HLine);
143 line_2->setFrameShadow(QFrame::Sunken);
145 gridLayout->addWidget(line_2, 5, 0, 1, 2);
147 horizontalLayout_3 =
new QHBoxLayout();
148 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
149 horizontalLayout_3->setContentsMargins(-1, 1, -1, 3);
151 label->setObjectName(QString::fromUtf8(
"label"));
155 label->setFont(font);
156 label->setText(QString::fromUtf8(
"Search Radio Station"));
158 horizontalLayout_3->addWidget(label);
160 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
162 horizontalLayout_3->addItem(horizontalSpacer_2);
165 labLink->setObjectName(QString::fromUtf8(
"labLink"));
166 labLink->setText(QString::fromUtf8(
"<a href=\"http://fmstream.org\">fmstream.org</a>"));
168 horizontalLayout_3->addWidget(labLink);
171 gridLayout->addLayout(horizontalLayout_3, 2, 0, 1, 2);
173 horizontalLayout_2 =
new QHBoxLayout();
174 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
176 pbProgress->setObjectName(QString::fromUtf8(
"pbProgress"));
177 pbProgress->setMaximum(0);
178 pbProgress->setValue(-1);
180 horizontalLayout_2->addWidget(pbProgress);
182 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
184 horizontalLayout_2->addItem(horizontalSpacer);
187 cbSave->setObjectName(QString::fromUtf8(
"cbSave"));
188 cbSave->setText(QString::fromUtf8(
"Save"));
190 horizontalLayout_2->addWidget(cbSave);
193 gridLayout->addLayout(horizontalLayout_2, 10, 1, 1, 1);
195 QWidget::setTabOrder(leSearch, btnSearchPrev);
196 QWidget::setTabOrder(btnSearchPrev, btnSearchNext);
197 QWidget::setTabOrder(btnSearchNext, btnSearch);
198 QWidget::setTabOrder(btnSearch, twStations);
199 QWidget::setTabOrder(twStations, twStreams);
208 GUI_StationSearcher->setWindowTitle(QCoreApplication::translate(
"GUI_StationSearcher",
"Search Radio Station",
nullptr));
219 #endif // UI_GUI_STATIONSEARCHER_H