9 #ifndef UI_PLAYLISTDOCK_H
10 #define UI_PLAYLISTDOCK_H
12 #include <QtCore/QVariant>
13 #include <QtGui/QIcon>
14 #include <QtWidgets/QAction>
15 #include <QtWidgets/QApplication>
16 #include <QtWidgets/QDockWidget>
17 #include <QtWidgets/QHBoxLayout>
18 #include <QtWidgets/QHeaderView>
19 #include <QtWidgets/QPushButton>
20 #include <QtWidgets/QSpacerItem>
21 #include <QtWidgets/QStackedWidget>
22 #include <QtWidgets/QTextBrowser>
23 #include <QtWidgets/QVBoxLayout>
24 #include <QtWidgets/QWidget>
25 #include "widgets/playlistlistview.h"
26 #include "widgets/playlisttable.h"
33 QAction *actionInsertCut;
34 QAction *actionAppendCut;
35 QAction *actionInsertBlank;
36 QAction *actionAppendBlank;
37 QAction *actionUpdate;
39 QAction *actionRemove;
40 QAction *actionSetFileDate;
42 QAction *actionRemoveAll;
43 QAction *actionThumbnailsHidden;
44 QAction *actionLeftAndRight;
45 QAction *actionTopAndBottom;
46 QAction *actionInOnlySmall;
47 QAction *actionInOnlyLarge;
48 QAction *actionAddToTimeline;
49 QAction *actionSortByName;
50 QAction *actionSortByDate;
51 QAction *actionDetailed;
55 QAction *actionPlayAfterOpen;
56 QAction *actionSelectAll;
57 QAction *actionSelectNone;
58 QAction *actionUpdateThumbnails;
59 QWidget *dockWidgetContents;
60 QVBoxLayout *verticalLayout;
61 QStackedWidget *stackedWidget;
63 QVBoxLayout *verticalLayout_2;
64 QTextBrowser *textBrowser;
66 QVBoxLayout *verticalLayout_3;
67 PlaylistTable *tableView;
68 PlaylistListView *listView;
69 QHBoxLayout *horizontalLayout;
70 QPushButton *addButton;
71 QPushButton *removeButton;
72 QPushButton *updateButton;
73 QPushButton *tilesButton;
74 QPushButton *iconsButton;
75 QPushButton *detailsButton;
76 QPushButton *menuButton;
77 QSpacerItem *horizontalSpacer;
79 void setupUi(QDockWidget *PlaylistDock)
81 if (PlaylistDock->objectName().isEmpty())
82 PlaylistDock->setObjectName(QString::fromUtf8(
"PlaylistDock"));
83 PlaylistDock->resize(460, 278);
85 QString iconThemeName = QString::fromUtf8(
"view-media-playlist");
86 if (QIcon::hasThemeIcon(iconThemeName)) {
87 icon = QIcon::fromTheme(iconThemeName);
89 icon.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/view-media-playlist.png"), QSize(), QIcon::Normal, QIcon::Off);
91 PlaylistDock->setWindowIcon(icon);
92 actionInsertCut =
new QAction(PlaylistDock);
93 actionInsertCut->setObjectName(QString::fromUtf8(
"actionInsertCut"));
94 actionAppendCut =
new QAction(PlaylistDock);
95 actionAppendCut->setObjectName(QString::fromUtf8(
"actionAppendCut"));
97 iconThemeName = QString::fromUtf8(
"list-add");
98 if (QIcon::hasThemeIcon(iconThemeName)) {
99 icon1 = QIcon::fromTheme(iconThemeName);
101 icon1.addFile(QString::fromUtf8(
"."), QSize(), QIcon::Normal, QIcon::Off);
103 actionAppendCut->setIcon(icon1);
104 actionInsertBlank =
new QAction(PlaylistDock);
105 actionInsertBlank->setObjectName(QString::fromUtf8(
"actionInsertBlank"));
106 actionAppendBlank =
new QAction(PlaylistDock);
107 actionAppendBlank->setObjectName(QString::fromUtf8(
"actionAppendBlank"));
108 actionUpdate =
new QAction(PlaylistDock);
109 actionUpdate->setObjectName(QString::fromUtf8(
"actionUpdate"));
110 actionOpen =
new QAction(PlaylistDock);
111 actionOpen->setObjectName(QString::fromUtf8(
"actionOpen"));
112 actionRemove =
new QAction(PlaylistDock);
113 actionRemove->setObjectName(QString::fromUtf8(
"actionRemove"));
114 actionSetFileDate =
new QAction(PlaylistDock);
115 actionSetFileDate->setObjectName(QString::fromUtf8(
"actionSetFileDate"));
116 actionGoto =
new QAction(PlaylistDock);
117 actionGoto->setObjectName(QString::fromUtf8(
"actionGoto"));
118 actionRemoveAll =
new QAction(PlaylistDock);
119 actionRemoveAll->setObjectName(QString::fromUtf8(
"actionRemoveAll"));
120 actionThumbnailsHidden =
new QAction(PlaylistDock);
121 actionThumbnailsHidden->setObjectName(QString::fromUtf8(
"actionThumbnailsHidden"));
122 actionThumbnailsHidden->setCheckable(
true);
123 actionLeftAndRight =
new QAction(PlaylistDock);
124 actionLeftAndRight->setObjectName(QString::fromUtf8(
"actionLeftAndRight"));
125 actionLeftAndRight->setCheckable(
true);
126 actionTopAndBottom =
new QAction(PlaylistDock);
127 actionTopAndBottom->setObjectName(QString::fromUtf8(
"actionTopAndBottom"));
128 actionTopAndBottom->setCheckable(
true);
129 actionInOnlySmall =
new QAction(PlaylistDock);
130 actionInOnlySmall->setObjectName(QString::fromUtf8(
"actionInOnlySmall"));
131 actionInOnlySmall->setCheckable(
true);
132 actionInOnlyLarge =
new QAction(PlaylistDock);
133 actionInOnlyLarge->setObjectName(QString::fromUtf8(
"actionInOnlyLarge"));
134 actionInOnlyLarge->setCheckable(
true);
135 actionAddToTimeline =
new QAction(PlaylistDock);
136 actionAddToTimeline->setObjectName(QString::fromUtf8(
"actionAddToTimeline"));
137 actionSortByName =
new QAction(PlaylistDock);
138 actionSortByName->setObjectName(QString::fromUtf8(
"actionSortByName"));
139 actionSortByDate =
new QAction(PlaylistDock);
140 actionSortByDate->setObjectName(QString::fromUtf8(
"actionSortByDate"));
141 actionDetailed =
new QAction(PlaylistDock);
142 actionDetailed->setObjectName(QString::fromUtf8(
"actionDetailed"));
143 actionDetailed->setCheckable(
true);
144 actionTiled =
new QAction(PlaylistDock);
145 actionTiled->setObjectName(QString::fromUtf8(
"actionTiled"));
146 actionTiled->setCheckable(
true);
147 actionIcons =
new QAction(PlaylistDock);
148 actionIcons->setObjectName(QString::fromUtf8(
"actionIcons"));
149 actionIcons->setCheckable(
true);
150 actionCopy =
new QAction(PlaylistDock);
151 actionCopy->setObjectName(QString::fromUtf8(
"actionCopy"));
152 actionPlayAfterOpen =
new QAction(PlaylistDock);
153 actionPlayAfterOpen->setObjectName(QString::fromUtf8(
"actionPlayAfterOpen"));
154 actionPlayAfterOpen->setCheckable(
true);
155 actionSelectAll =
new QAction(PlaylistDock);
156 actionSelectAll->setObjectName(QString::fromUtf8(
"actionSelectAll"));
157 actionSelectNone =
new QAction(PlaylistDock);
158 actionSelectNone->setObjectName(QString::fromUtf8(
"actionSelectNone"));
159 actionUpdateThumbnails =
new QAction(PlaylistDock);
160 actionUpdateThumbnails->setObjectName(QString::fromUtf8(
"actionUpdateThumbnails"));
161 dockWidgetContents =
new QWidget();
162 dockWidgetContents->setObjectName(QString::fromUtf8(
"dockWidgetContents"));
163 verticalLayout =
new QVBoxLayout(dockWidgetContents);
164 verticalLayout->setSpacing(0);
165 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
166 verticalLayout->setContentsMargins(0, 0, 0, 0);
167 stackedWidget =
new QStackedWidget(dockWidgetContents);
168 stackedWidget->setObjectName(QString::fromUtf8(
"stackedWidget"));
169 page =
new QWidget();
170 page->setObjectName(QString::fromUtf8(
"page"));
171 verticalLayout_2 =
new QVBoxLayout(page);
172 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
173 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
174 textBrowser =
new QTextBrowser(page);
175 textBrowser->setObjectName(QString::fromUtf8(
"textBrowser"));
177 verticalLayout_2->addWidget(textBrowser);
179 stackedWidget->addWidget(page);
180 page_2 =
new QWidget();
181 page_2->setObjectName(QString::fromUtf8(
"page_2"));
182 verticalLayout_3 =
new QVBoxLayout(page_2);
183 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
184 verticalLayout_3->setContentsMargins(0, 0, 0, 0);
185 tableView =
new PlaylistTable(page_2);
186 tableView->setObjectName(QString::fromUtf8(
"tableView"));
187 tableView->setContextMenuPolicy(Qt::CustomContextMenu);
188 tableView->setDragEnabled(
false);
189 tableView->setAlternatingRowColors(
true);
190 tableView->setSelectionMode(QAbstractItemView::ExtendedSelection);
191 tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
192 tableView->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
193 tableView->horizontalHeader()->setHighlightSections(
false);
194 tableView->verticalHeader()->setVisible(
false);
196 verticalLayout_3->addWidget(tableView);
198 listView =
new PlaylistListView(page_2);
199 listView->setObjectName(QString::fromUtf8(
"listView"));
200 listView->setContextMenuPolicy(Qt::CustomContextMenu);
201 listView->setSelectionMode(QAbstractItemView::ExtendedSelection);
202 listView->setMovement(QListView::Static);
204 verticalLayout_3->addWidget(listView);
206 stackedWidget->addWidget(page_2);
208 verticalLayout->addWidget(stackedWidget);
210 horizontalLayout =
new QHBoxLayout();
211 horizontalLayout->setSpacing(6);
212 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
213 addButton =
new QPushButton(dockWidgetContents);
214 addButton->setObjectName(QString::fromUtf8(
"addButton"));
215 addButton->setEnabled(
false);
217 iconThemeName = QString::fromUtf8(
"list-add");
218 if (QIcon::hasThemeIcon(iconThemeName)) {
219 icon2 = QIcon::fromTheme(iconThemeName);
221 icon2.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/list-add.png"), QSize(), QIcon::Normal, QIcon::Off);
223 addButton->setIcon(icon2);
225 horizontalLayout->addWidget(addButton);
227 removeButton =
new QPushButton(dockWidgetContents);
228 removeButton->setObjectName(QString::fromUtf8(
"removeButton"));
229 removeButton->setEnabled(
false);
231 iconThemeName = QString::fromUtf8(
"list-remove");
232 if (QIcon::hasThemeIcon(iconThemeName)) {
233 icon3 = QIcon::fromTheme(iconThemeName);
235 icon3.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/list-remove.png"), QSize(), QIcon::Normal, QIcon::Off);
237 removeButton->setIcon(icon3);
239 horizontalLayout->addWidget(removeButton);
241 updateButton =
new QPushButton(dockWidgetContents);
242 updateButton->setObjectName(QString::fromUtf8(
"updateButton"));
243 updateButton->setEnabled(
false);
245 iconThemeName = QString::fromUtf8(
"dialog-ok");
246 if (QIcon::hasThemeIcon(iconThemeName)) {
247 icon4 = QIcon::fromTheme(iconThemeName);
249 icon4.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/dialog-ok.png"), QSize(), QIcon::Normal, QIcon::Off);
251 updateButton->setIcon(icon4);
253 horizontalLayout->addWidget(updateButton);
255 tilesButton =
new QPushButton(dockWidgetContents);
256 tilesButton->setObjectName(QString::fromUtf8(
"tilesButton"));
258 iconThemeName = QString::fromUtf8(
"view-list-details");
259 if (QIcon::hasThemeIcon(iconThemeName)) {
260 icon5 = QIcon::fromTheme(iconThemeName);
262 icon5.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/view-list-details.png"), QSize(), QIcon::Normal, QIcon::Off);
264 tilesButton->setIcon(icon5);
266 horizontalLayout->addWidget(tilesButton);
268 iconsButton =
new QPushButton(dockWidgetContents);
269 iconsButton->setObjectName(QString::fromUtf8(
"iconsButton"));
271 iconThemeName = QString::fromUtf8(
"view-list-icons");
272 if (QIcon::hasThemeIcon(iconThemeName)) {
273 icon6 = QIcon::fromTheme(iconThemeName);
275 icon6.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/view-list-icons.png"), QSize(), QIcon::Normal, QIcon::Off);
277 iconsButton->setIcon(icon6);
279 horizontalLayout->addWidget(iconsButton);
281 detailsButton =
new QPushButton(dockWidgetContents);
282 detailsButton->setObjectName(QString::fromUtf8(
"detailsButton"));
284 iconThemeName = QString::fromUtf8(
"view-list-text");
285 if (QIcon::hasThemeIcon(iconThemeName)) {
286 icon7 = QIcon::fromTheme(iconThemeName);
288 icon7.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/view-list-text.png"), QSize(), QIcon::Normal, QIcon::Off);
290 detailsButton->setIcon(icon7);
292 horizontalLayout->addWidget(detailsButton);
294 menuButton =
new QPushButton(dockWidgetContents);
295 menuButton->setObjectName(QString::fromUtf8(
"menuButton"));
297 iconThemeName = QString::fromUtf8(
"format-justify-fill");
298 if (QIcon::hasThemeIcon(iconThemeName)) {
299 icon8 = QIcon::fromTheme(iconThemeName);
301 icon8.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/format-justify-fill.png"), QSize(), QIcon::Normal, QIcon::Off);
303 menuButton->setIcon(icon8);
305 horizontalLayout->addWidget(menuButton);
307 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
309 horizontalLayout->addItem(horizontalSpacer);
312 verticalLayout->addLayout(horizontalLayout);
314 PlaylistDock->setWidget(dockWidgetContents);
316 retranslateUi(PlaylistDock);
318 stackedWidget->setCurrentIndex(0);
321 QMetaObject::connectSlotsByName(PlaylistDock);
324 void retranslateUi(QDockWidget *PlaylistDock)
326 PlaylistDock->setWindowTitle(QCoreApplication::translate(
"PlaylistDock",
"Playlist",
nullptr));
327 actionInsertCut->setText(QCoreApplication::translate(
"PlaylistDock",
"Insert",
nullptr));
328 #if QT_CONFIG(tooltip)
329 actionInsertCut->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"Insert",
nullptr));
330 #endif // QT_CONFIG(tooltip)
331 #if QT_CONFIG(shortcut)
332 actionInsertCut->setShortcut(QCoreApplication::translate(
"PlaylistDock",
"Shift+V",
nullptr));
333 #endif // QT_CONFIG(shortcut)
334 actionAppendCut->setText(QCoreApplication::translate(
"PlaylistDock",
"Append",
nullptr));
335 #if QT_CONFIG(tooltip)
336 actionAppendCut->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"Append",
nullptr));
337 #endif // QT_CONFIG(tooltip)
338 #if QT_CONFIG(shortcut)
339 actionAppendCut->setShortcut(QCoreApplication::translate(
"PlaylistDock",
"Shift+A",
nullptr));
340 #endif // QT_CONFIG(shortcut)
341 actionInsertBlank->setText(QCoreApplication::translate(
"PlaylistDock",
"Insert Blank",
nullptr));
342 actionAppendBlank->setText(QCoreApplication::translate(
"PlaylistDock",
"Append Blank",
nullptr));
343 actionUpdate->setText(QCoreApplication::translate(
"PlaylistDock",
"Replace",
nullptr));
344 #if QT_CONFIG(shortcut)
345 actionUpdate->setShortcut(QCoreApplication::translate(
"PlaylistDock",
"Shift+B",
nullptr));
346 #endif // QT_CONFIG(shortcut)
347 actionOpen->setText(QCoreApplication::translate(
"PlaylistDock",
"Open ",
nullptr));
348 #if QT_CONFIG(tooltip)
349 actionOpen->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"Open the clip in the Source player",
nullptr));
350 #endif // QT_CONFIG(tooltip)
351 #if QT_CONFIG(shortcut)
352 actionOpen->setShortcut(QCoreApplication::translate(
"PlaylistDock",
"Return",
nullptr));
353 #endif // QT_CONFIG(shortcut)
354 actionRemove->setText(QCoreApplication::translate(
"PlaylistDock",
"Remove",
nullptr));
355 #if QT_CONFIG(shortcut)
356 actionRemove->setShortcut(QCoreApplication::translate(
"PlaylistDock",
"Shift+X",
nullptr));
357 #endif // QT_CONFIG(shortcut)
358 actionSetFileDate->setText(QCoreApplication::translate(
"PlaylistDock",
"Set Creation Time...",
nullptr));
359 actionGoto->setText(QCoreApplication::translate(
"PlaylistDock",
"Goto",
nullptr));
360 #if QT_CONFIG(tooltip)
361 actionGoto->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"Go to the start of this clip in the Project player",
nullptr));
362 #endif // QT_CONFIG(tooltip)
363 #if QT_CONFIG(shortcut)
364 actionGoto->setShortcut(QCoreApplication::translate(
"PlaylistDock",
"Shift+Return",
nullptr));
365 #endif // QT_CONFIG(shortcut)
366 actionRemoveAll->setText(QCoreApplication::translate(
"PlaylistDock",
"Remove All",
nullptr));
367 #if QT_CONFIG(tooltip)
368 actionRemoveAll->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"Remove all items from the playlist",
nullptr));
369 #endif // QT_CONFIG(tooltip)
370 actionThumbnailsHidden->setText(QCoreApplication::translate(
"PlaylistDock",
"Hidden",
nullptr));
371 actionLeftAndRight->setText(QCoreApplication::translate(
"PlaylistDock",
"In and Out - Left/Right",
nullptr));
372 #if QT_CONFIG(tooltip)
373 actionLeftAndRight->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"In and Out - Left/Right",
nullptr));
374 #endif // QT_CONFIG(tooltip)
375 actionTopAndBottom->setText(QCoreApplication::translate(
"PlaylistDock",
"In and Out - Top/Bottom",
nullptr));
376 #if QT_CONFIG(tooltip)
377 actionTopAndBottom->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"In and Out - Top/Bottom",
nullptr));
378 #endif // QT_CONFIG(tooltip)
379 actionInOnlySmall->setText(QCoreApplication::translate(
"PlaylistDock",
"In Only - Small",
nullptr));
380 actionInOnlyLarge->setText(QCoreApplication::translate(
"PlaylistDock",
"In Only - Large",
nullptr));
381 actionAddToTimeline->setText(QCoreApplication::translate(
"PlaylistDock",
"Add Selected to Timeline",
nullptr));
382 actionSortByName->setText(QCoreApplication::translate(
"PlaylistDock",
"Sort By Name",
nullptr));
383 actionSortByDate->setText(QCoreApplication::translate(
"PlaylistDock",
"Sort By Date",
nullptr));
384 actionDetailed->setText(QCoreApplication::translate(
"PlaylistDock",
"Details",
nullptr));
385 #if QT_CONFIG(tooltip)
386 actionDetailed->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"View as details",
nullptr));
387 #endif // QT_CONFIG(tooltip)
388 actionTiled->setText(QCoreApplication::translate(
"PlaylistDock",
"Tiles",
nullptr));
389 #if QT_CONFIG(tooltip)
390 actionTiled->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"View as tiles",
nullptr));
391 #endif // QT_CONFIG(tooltip)
392 actionIcons->setText(QCoreApplication::translate(
"PlaylistDock",
"Icons",
nullptr));
393 #if QT_CONFIG(tooltip)
394 actionIcons->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"View as icons",
nullptr));
395 #endif // QT_CONFIG(tooltip)
396 actionCopy->setText(QCoreApplication::translate(
"PlaylistDock",
"Copy",
nullptr));
397 #if QT_CONFIG(tooltip)
398 actionCopy->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"Open a copy of the clip in the Source player",
nullptr));
399 #endif // QT_CONFIG(tooltip)
400 #if QT_CONFIG(shortcut)
401 actionCopy->setShortcut(QCoreApplication::translate(
"PlaylistDock",
"Shift+C",
nullptr));
402 #endif // QT_CONFIG(shortcut)
403 actionPlayAfterOpen->setText(QCoreApplication::translate(
"PlaylistDock",
"Play After Open",
nullptr));
404 actionSelectAll->setText(QCoreApplication::translate(
"PlaylistDock",
"Select All",
nullptr));
405 #if QT_CONFIG(shortcut)
406 actionSelectAll->setShortcut(QCoreApplication::translate(
"PlaylistDock",
"Ctrl+Shift+A",
nullptr));
407 #endif // QT_CONFIG(shortcut)
408 actionSelectNone->setText(QCoreApplication::translate(
"PlaylistDock",
"Select None",
nullptr));
409 #if QT_CONFIG(shortcut)
410 actionSelectNone->setShortcut(QCoreApplication::translate(
"PlaylistDock",
"Ctrl+Shift+D",
nullptr));
411 #endif // QT_CONFIG(shortcut)
412 actionUpdateThumbnails->setText(QCoreApplication::translate(
"PlaylistDock",
"Update Thumbnails",
nullptr));
413 textBrowser->setHtml(QCoreApplication::translate(
"PlaylistDock",
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
414 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
415 "p, li { white-space: pre-wrap; }\n"
416 "</style></head><body>\n"
417 "<p style=\" margin-top:12px; margin-bottom:16px; margin-left:-24px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Double-click</span> a playlist item to open it in the player.</p>\n"
418 "<p style=\" margin-top:0px; margin-bottom:16px; margin-left:-24px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">You can freely preview clips without necessarily adding them to the playlist or closing it.</p>\n"
419 "<p style=\" margin-top:0px; margin-bottom:16px; margin-left:-24px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">To trim or adjust a playlist item <span style=\" font-weight:600;\">Double-click</span> to open it, make the changes, and click the <span style=\" font-weight:600;\">Update</span> icon.</p>\n"
421 "yle=\" margin-top:0px; margin-bottom:16px; margin-left:-24px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Drag-n-drop</span> to rearrange the items.</p></body></html>",
nullptr));
422 #if QT_CONFIG(tooltip)
423 tableView->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"<html><head/><body><p>Double-click a playlist item to open it in the player.</p></body></html>",
nullptr));
424 #endif // QT_CONFIG(tooltip)
425 #if QT_CONFIG(tooltip)
426 addButton->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"Add the Source to the playlist",
nullptr));
427 #endif // QT_CONFIG(tooltip)
428 addButton->setText(QString());
429 #if QT_CONFIG(tooltip)
430 removeButton->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"Remove cut",
nullptr));
431 #endif // QT_CONFIG(tooltip)
432 removeButton->setText(QString());
433 #if QT_CONFIG(tooltip)
434 updateButton->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"Update",
nullptr));
435 #endif // QT_CONFIG(tooltip)
436 updateButton->setText(QString());
437 #if QT_CONFIG(tooltip)
438 tilesButton->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"View as tiles",
nullptr));
439 #endif // QT_CONFIG(tooltip)
440 tilesButton->setText(QString());
441 #if QT_CONFIG(tooltip)
442 iconsButton->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"View as icons",
nullptr));
443 #endif // QT_CONFIG(tooltip)
444 iconsButton->setText(QString());
445 #if QT_CONFIG(tooltip)
446 detailsButton->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"View as details",
nullptr));
447 #endif // QT_CONFIG(tooltip)
448 detailsButton->setText(QString());
449 #if QT_CONFIG(tooltip)
450 menuButton->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"Display a menu of additional actions",
nullptr));
451 #endif // QT_CONFIG(tooltip)
452 menuButton->setText(QString());
458 class PlaylistDock:
public Ui_PlaylistDock {};
463 #endif // UI_PLAYLISTDOCK_H