9#ifndef UI_PLAYLISTDOCK_H
10#define UI_PLAYLISTDOCK_H
12#include <QtCore/QVariant>
13#include <QtWidgets/QApplication>
14#include <QtWidgets/QDockWidget>
15#include <QtWidgets/QHBoxLayout>
16#include <QtWidgets/QHeaderView>
17#include <QtWidgets/QSplitter>
18#include <QtWidgets/QStackedWidget>
19#include <QtWidgets/QTextBrowser>
20#include <QtWidgets/QVBoxLayout>
21#include <QtWidgets/QWidget>
22#include "docks/playlistdock.h"
23#include "widgets/playlistlistview.h"
24#include "widgets/playlisttable.h"
31 QWidget *dockWidgetContents;
32 QVBoxLayout *verticalLayout;
33 QStackedWidget *stackedWidget;
35 QVBoxLayout *verticalLayout_2;
36 QTextBrowser *textBrowser;
38 QVBoxLayout *verticalLayout_4;
39 QHBoxLayout *filtersLayout;
42 QWidget *layoutWidget;
43 QVBoxLayout *verticalLayout_3;
44 PlaylistTable *tableView;
45 PlaylistListView *listView;
47 void setupUi(QDockWidget *PlaylistDock)
49 if (PlaylistDock->objectName().isEmpty())
50 PlaylistDock->setObjectName(
"PlaylistDock");
51 PlaylistDock->resize(460, 278);
52#if QT_CONFIG(whatsthis)
53 PlaylistDock->setWhatsThis(QString::fromUtf8(
"https://forum.shotcut.org/t/about-the-playlist/12951/1"));
55 dockWidgetContents =
new QWidget();
56 dockWidgetContents->setObjectName(
"dockWidgetContents");
57 verticalLayout =
new QVBoxLayout(dockWidgetContents);
58 verticalLayout->setSpacing(0);
59 verticalLayout->setObjectName(
"verticalLayout");
60 verticalLayout->setContentsMargins(0, 0, 0, 0);
61 stackedWidget =
new QStackedWidget(dockWidgetContents);
62 stackedWidget->setObjectName(
"stackedWidget");
64 page->setObjectName(
"page");
65 verticalLayout_2 =
new QVBoxLayout(page);
66 verticalLayout_2->setObjectName(
"verticalLayout_2");
67 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
68 textBrowser =
new QTextBrowser(page);
69 textBrowser->setObjectName(
"textBrowser");
71 verticalLayout_2->addWidget(textBrowser);
73 stackedWidget->addWidget(page);
74 page_2 =
new QWidget();
75 page_2->setObjectName(
"page_2");
76 verticalLayout_4 =
new QVBoxLayout(page_2);
77 verticalLayout_4->setSpacing(0);
78 verticalLayout_4->setObjectName(
"verticalLayout_4");
79 verticalLayout_4->setContentsMargins(0, 0, 0, 0);
80 filtersLayout =
new QHBoxLayout();
81 filtersLayout->setObjectName(
"filtersLayout");
83 verticalLayout_4->addLayout(filtersLayout);
85 splitter =
new QSplitter(page_2);
86 splitter->setObjectName(
"splitter");
87 splitter->setOrientation(Qt::Orientation::Horizontal);
88 treeWidget =
new BinTree(splitter);
89 QTreeWidgetItem *__qtreewidgetitem =
new QTreeWidgetItem();
90 __qtreewidgetitem->setText(0, QString::fromUtf8(
"1"));
91 treeWidget->setHeaderItem(__qtreewidgetitem);
92 treeWidget->setObjectName(
"treeWidget");
93 treeWidget->setAcceptDrops(
true);
94 treeWidget->setStyleSheet(QString::fromUtf8(
"QTreeWidget::item { padding: 10px }"));
95 treeWidget->setAlternatingRowColors(
true);
96 treeWidget->setRootIsDecorated(
false);
97 splitter->addWidget(treeWidget);
98 treeWidget->header()->setVisible(
false);
99 layoutWidget =
new QWidget(splitter);
100 layoutWidget->setObjectName(
"layoutWidget");
101 verticalLayout_3 =
new QVBoxLayout(layoutWidget);
102 verticalLayout_3->setObjectName(
"verticalLayout_3");
103 verticalLayout_3->setContentsMargins(0, 0, 0, 0);
104 tableView =
new PlaylistTable(layoutWidget);
105 tableView->setObjectName(
"tableView");
106 tableView->setContextMenuPolicy(Qt::ContextMenuPolicy::CustomContextMenu);
107 tableView->setDragEnabled(
false);
108 tableView->setAlternatingRowColors(
true);
109 tableView->setSelectionMode(QAbstractItemView::SelectionMode::ExtendedSelection);
110 tableView->setSelectionBehavior(QAbstractItemView::SelectionBehavior::SelectRows);
111 tableView->setHorizontalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
112 tableView->horizontalHeader()->setHighlightSections(
false);
113 tableView->verticalHeader()->setVisible(
false);
115 verticalLayout_3->addWidget(tableView);
117 listView =
new PlaylistListView(layoutWidget);
118 listView->setObjectName(
"listView");
119 listView->setContextMenuPolicy(Qt::ContextMenuPolicy::CustomContextMenu);
120 listView->setSelectionMode(QAbstractItemView::SelectionMode::ExtendedSelection);
121 listView->setMovement(QListView::Movement::Static);
123 verticalLayout_3->addWidget(listView);
125 splitter->addWidget(layoutWidget);
127 verticalLayout_4->addWidget(splitter);
129 stackedWidget->addWidget(page_2);
131 verticalLayout->addWidget(stackedWidget);
133 PlaylistDock->setWidget(dockWidgetContents);
135 retranslateUi(PlaylistDock);
137 stackedWidget->setCurrentIndex(1);
140 QMetaObject::connectSlotsByName(PlaylistDock);
143 void retranslateUi(QDockWidget *PlaylistDock)
145 PlaylistDock->setWindowTitle(QCoreApplication::translate(
"PlaylistDock",
"Playlist",
nullptr));
146 textBrowser->setHtml(QCoreApplication::translate(
"PlaylistDock",
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
147"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
148"p, li { white-space: pre-wrap; }\n"
149"</style></head><body>\n"
150"<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"
151"<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"
152"<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"
154 "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));
155#if QT_CONFIG(tooltip)
156 tableView->setToolTip(QCoreApplication::translate(
"PlaylistDock",
"<html><head/><body><p>Double-click a playlist item to open it in the player.</p></body></html>",
nullptr));
163 class PlaylistDock:
public Ui_PlaylistDock {};