9 #ifndef UI_GUI_LIBRARYPREFERENCES_H
10 #define UI_GUI_LIBRARYPREFERENCES_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QApplication>
14 #include <QtWidgets/QCheckBox>
15 #include <QtWidgets/QFrame>
16 #include <QtWidgets/QGridLayout>
17 #include <QtWidgets/QGroupBox>
18 #include <QtWidgets/QLabel>
19 #include <QtWidgets/QListView>
20 #include <QtWidgets/QPushButton>
21 #include <QtWidgets/QRadioButton>
22 #include <QtWidgets/QSpacerItem>
23 #include <QtWidgets/QTabWidget>
24 #include <QtWidgets/QVBoxLayout>
25 #include <QtWidgets/QWidget>
32 QGridLayout *gridLayout;
33 QTabWidget *tab_widget;
34 QWidget *tab_libraries;
35 QGridLayout *gridLayout_5;
36 QVBoxLayout *verticalLayout_2;
38 QSpacerItem *verticalSpacer_3;
41 QPushButton *btnDelete;
42 QSpacerItem *verticalSpacer_4;
45 QLabel *labCurrentPath;
46 QWidget *tabPlaylistInteraction;
47 QGridLayout *gridLayout_3;
48 QGroupBox *groupBox_2;
49 QGridLayout *gridLayout_2;
50 QRadioButton *rbDdDoNothing;
51 QRadioButton *rbDdStartIfStopped;
52 QSpacerItem *verticalSpacer_2;
54 QVBoxLayout *verticalLayout;
55 QRadioButton *rbDcDoNothing;
56 QRadioButton *rbDcPlayIfStopped;
57 QRadioButton *rbDcPlayImmediatly;
61 QGridLayout *gridLayout_6;
62 QCheckBox *cbShowClearSelectionButton;
63 QSpacerItem *verticalSpacer_5;
64 QCheckBox *cbIgnoreArticle;
72 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
73 gridLayout->setVerticalSpacing(20);
75 tab_widget->setObjectName(QString::fromUtf8(
"tab_widget"));
76 tab_widget->setFocusPolicy(Qt::NoFocus);
77 tab_libraries =
new QWidget();
78 tab_libraries->setObjectName(QString::fromUtf8(
"tab_libraries"));
79 gridLayout_5 =
new QGridLayout(tab_libraries);
80 gridLayout_5->setObjectName(QString::fromUtf8(
"gridLayout_5"));
81 verticalLayout_2 =
new QVBoxLayout();
82 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
83 btnUp =
new QPushButton(tab_libraries);
84 btnUp->setObjectName(QString::fromUtf8(
"btnUp"));
85 btnUp->setText(QString::fromUtf8(
"\342\206\221"));
87 verticalLayout_2->addWidget(btnUp);
89 verticalSpacer_3 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
91 verticalLayout_2->addItem(verticalSpacer_3);
93 btnNew =
new QPushButton(tab_libraries);
94 btnNew->setObjectName(QString::fromUtf8(
"btnNew"));
95 btnNew->setText(QString::fromUtf8(
"New"));
97 verticalLayout_2->addWidget(btnNew);
99 btnEdit =
new QPushButton(tab_libraries);
100 btnEdit->setObjectName(QString::fromUtf8(
"btnEdit"));
101 btnEdit->setText(QString::fromUtf8(
"Edit"));
103 verticalLayout_2->addWidget(btnEdit);
105 btnDelete =
new QPushButton(tab_libraries);
106 btnDelete->setObjectName(QString::fromUtf8(
"btnDelete"));
107 btnDelete->setText(QString::fromUtf8(
"Delete"));
109 verticalLayout_2->addWidget(btnDelete);
111 verticalSpacer_4 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
113 verticalLayout_2->addItem(verticalSpacer_4);
115 btnDown =
new QPushButton(tab_libraries);
116 btnDown->setObjectName(QString::fromUtf8(
"btnDown"));
117 btnDown->setText(QString::fromUtf8(
"\342\206\223"));
119 verticalLayout_2->addWidget(btnDown);
122 gridLayout_5->addLayout(verticalLayout_2, 2, 1, 1, 1);
124 lvLibs =
new QListView(tab_libraries);
125 lvLibs->setObjectName(QString::fromUtf8(
"lvLibs"));
126 lvLibs->setAlternatingRowColors(
true);
128 gridLayout_5->addWidget(lvLibs, 2, 0, 1, 1);
130 labCurrentPath =
new QLabel(tab_libraries);
131 labCurrentPath->setObjectName(QString::fromUtf8(
"labCurrentPath"));
133 gridLayout_5->addWidget(labCurrentPath, 3, 0, 1, 2);
135 tab_widget->addTab(tab_libraries, QString());
136 tabPlaylistInteraction =
new QWidget();
137 tabPlaylistInteraction->setObjectName(QString::fromUtf8(
"tabPlaylistInteraction"));
138 gridLayout_3 =
new QGridLayout(tabPlaylistInteraction);
139 gridLayout_3->setObjectName(QString::fromUtf8(
"gridLayout_3"));
140 gridLayout_3->setVerticalSpacing(10);
141 gridLayout_3->setContentsMargins(-1, 10, -1, -1);
142 groupBox_2 =
new QGroupBox(tabPlaylistInteraction);
143 groupBox_2->setObjectName(QString::fromUtf8(
"groupBox_2"));
144 gridLayout_2 =
new QGridLayout(groupBox_2);
145 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
146 rbDdDoNothing =
new QRadioButton(groupBox_2);
147 rbDdDoNothing->setObjectName(QString::fromUtf8(
"rbDdDoNothing"));
149 gridLayout_2->addWidget(rbDdDoNothing, 0, 0, 1, 1);
151 rbDdStartIfStopped =
new QRadioButton(groupBox_2);
152 rbDdStartIfStopped->setObjectName(QString::fromUtf8(
"rbDdStartIfStopped"));
154 gridLayout_2->addWidget(rbDdStartIfStopped, 1, 0, 1, 1);
157 gridLayout_3->addWidget(groupBox_2, 2, 0, 1, 1);
159 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
161 gridLayout_3->addItem(verticalSpacer_2, 3, 0, 1, 1);
163 groupBox =
new QGroupBox(tabPlaylistInteraction);
164 groupBox->setObjectName(QString::fromUtf8(
"groupBox"));
165 verticalLayout =
new QVBoxLayout(groupBox);
166 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
167 rbDcDoNothing =
new QRadioButton(groupBox);
168 rbDcDoNothing->setObjectName(QString::fromUtf8(
"rbDcDoNothing"));
170 verticalLayout->addWidget(rbDcDoNothing);
172 rbDcPlayIfStopped =
new QRadioButton(groupBox);
173 rbDcPlayIfStopped->setObjectName(QString::fromUtf8(
"rbDcPlayIfStopped"));
175 verticalLayout->addWidget(rbDcPlayIfStopped);
177 rbDcPlayImmediatly =
new QRadioButton(groupBox);
178 rbDcPlayImmediatly->setObjectName(QString::fromUtf8(
"rbDcPlayImmediatly"));
180 verticalLayout->addWidget(rbDcPlayImmediatly);
182 label =
new QLabel(groupBox);
183 label->setObjectName(QString::fromUtf8(
"label"));
185 verticalLayout->addWidget(label);
188 gridLayout_3->addWidget(groupBox, 0, 0, 1, 1);
190 line =
new QFrame(tabPlaylistInteraction);
191 line->setObjectName(QString::fromUtf8(
"line"));
192 line->setFrameShape(QFrame::HLine);
193 line->setFrameShadow(QFrame::Sunken);
195 gridLayout_3->addWidget(line, 1, 0, 1, 1);
197 tab_widget->addTab(tabPlaylistInteraction, QString());
198 tabOther =
new QWidget();
199 tabOther->setObjectName(QString::fromUtf8(
"tabOther"));
200 gridLayout_6 =
new QGridLayout(tabOther);
201 gridLayout_6->setObjectName(QString::fromUtf8(
"gridLayout_6"));
202 cbShowClearSelectionButton =
new QCheckBox(tabOther);
203 cbShowClearSelectionButton->setObjectName(QString::fromUtf8(
"cbShowClearSelectionButton"));
205 gridLayout_6->addWidget(cbShowClearSelectionButton, 0, 0, 1, 1);
207 verticalSpacer_5 =
new QSpacerItem(20, 606, QSizePolicy::Minimum, QSizePolicy::Expanding);
209 gridLayout_6->addItem(verticalSpacer_5, 2, 0, 1, 1);
211 cbIgnoreArticle =
new QCheckBox(tabOther);
212 cbIgnoreArticle->setObjectName(QString::fromUtf8(
"cbIgnoreArticle"));
214 gridLayout_6->addWidget(cbIgnoreArticle, 1, 0, 1, 1);
216 tab_widget->addTab(tabOther, QString());
218 gridLayout->addWidget(tab_widget, 0, 0, 1, 1);
220 QWidget::setTabOrder(tab_widget, lvLibs);
221 QWidget::setTabOrder(lvLibs, btnUp);
222 QWidget::setTabOrder(btnUp, btnNew);
223 QWidget::setTabOrder(btnNew, btnEdit);
224 QWidget::setTabOrder(btnEdit, btnDelete);
225 QWidget::setTabOrder(btnDelete, btnDown);
226 QWidget::setTabOrder(btnDown, rbDcDoNothing);
227 QWidget::setTabOrder(rbDcDoNothing, rbDcPlayIfStopped);
228 QWidget::setTabOrder(rbDcPlayIfStopped, rbDcPlayImmediatly);
229 QWidget::setTabOrder(rbDcPlayImmediatly, rbDdDoNothing);
230 QWidget::setTabOrder(rbDdDoNothing, rbDdStartIfStopped);
231 QWidget::setTabOrder(rbDdStartIfStopped, cbShowClearSelectionButton);
232 QWidget::setTabOrder(cbShowClearSelectionButton, cbIgnoreArticle);
236 tab_widget->setCurrentIndex(0);
244 labCurrentPath->setText(QString());
245 tab_widget->setTabText(tab_widget->indexOf(tab_libraries), QCoreApplication::translate(
"GUI_LibraryPreferences",
"Libraries",
nullptr));
246 groupBox_2->setTitle(QCoreApplication::translate(
"GUI_LibraryPreferences",
"When drag and drop into playlist ",
nullptr));
247 rbDdDoNothing->setText(QCoreApplication::translate(
"GUI_LibraryPreferences",
"do nothing (default)",
nullptr));
248 rbDdStartIfStopped->setText(QCoreApplication::translate(
"GUI_LibraryPreferences",
"start if stopped and playlist is empty",
nullptr));
249 groupBox->setTitle(QCoreApplication::translate(
"GUI_LibraryPreferences",
"On double click, create playlist and",
nullptr));
250 rbDcDoNothing->setText(QCoreApplication::translate(
"GUI_LibraryPreferences",
"do nothing (default)",
nullptr));
251 rbDcPlayIfStopped->setText(QCoreApplication::translate(
"GUI_LibraryPreferences",
"start playback if stopped",
nullptr));
252 rbDcPlayImmediatly->setText(QCoreApplication::translate(
"GUI_LibraryPreferences",
"start playback immediately",
nullptr));
253 label->setText(QCoreApplication::translate(
"GUI_LibraryPreferences",
"(this is ignored when playlist is in 'append mode')",
nullptr));
254 tab_widget->setTabText(tab_widget->indexOf(tabPlaylistInteraction), QCoreApplication::translate(
"GUI_LibraryPreferences",
"Library-Playlist Interaction",
nullptr));
255 cbShowClearSelectionButton->setText(QCoreApplication::translate(
"GUI_LibraryPreferences",
"Show \"Clear selection\" buttons",
nullptr));
256 cbIgnoreArticle->setText(QCoreApplication::translate(
"GUI_LibraryPreferences",
"Ignore English article \"The\" in artist name",
nullptr));
257 tab_widget->setTabText(tab_widget->indexOf(tabOther), QCoreApplication::translate(
"GUI_LibraryPreferences",
"Other",
nullptr));
269 #endif // UI_GUI_LIBRARYPREFERENCES_H