9 #ifndef UI_MELTEDPLAYLISTDOCK_H 10 #define UI_MELTEDPLAYLISTDOCK_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDockWidget> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QHeaderView> 19 #include <QtWidgets/QPushButton> 20 #include <QtWidgets/QSpacerItem> 21 #include <QtWidgets/QTableView> 22 #include <QtWidgets/QVBoxLayout> 23 #include <QtWidgets/QWidget> 27 class Ui_MeltedPlaylistDock
30 QAction *actionInsertCut;
31 QAction *actionAppendCut;
33 QAction *actionRemove;
35 QAction *actionRemoveAll;
38 QWidget *dockWidgetContents;
39 QVBoxLayout *verticalLayout;
40 QTableView *tableView;
41 QHBoxLayout *horizontalLayout;
42 QPushButton *addButton;
43 QPushButton *removeButton;
44 QPushButton *menuButton;
45 QSpacerItem *horizontalSpacer;
47 void setupUi(QDockWidget *MeltedPlaylistDock)
49 if (MeltedPlaylistDock->objectName().isEmpty())
50 MeltedPlaylistDock->setObjectName(QStringLiteral(
"MeltedPlaylistDock"));
51 MeltedPlaylistDock->resize(388, 288);
53 QString iconThemeName = QStringLiteral(
"view-media-playlist");
54 if (QIcon::hasThemeIcon(iconThemeName)) {
55 icon = QIcon::fromTheme(iconThemeName);
57 icon.addFile(QStringLiteral(
":/icons/oxygen/32x32/actions/view-media-playlist.png"), QSize(), QIcon::Normal, QIcon::Off);
59 MeltedPlaylistDock->setWindowIcon(icon);
60 actionInsertCut =
new QAction(MeltedPlaylistDock);
61 actionInsertCut->setObjectName(QStringLiteral(
"actionInsertCut"));
62 actionAppendCut =
new QAction(MeltedPlaylistDock);
63 actionAppendCut->setObjectName(QStringLiteral(
"actionAppendCut"));
65 icon1.addFile(QStringLiteral(
":/icons/icons/list-add.png"), QSize(), QIcon::Normal, QIcon::Off);
66 actionAppendCut->setIcon(icon1);
67 actionOpen =
new QAction(MeltedPlaylistDock);
68 actionOpen->setObjectName(QStringLiteral(
"actionOpen"));
69 actionRemove =
new QAction(MeltedPlaylistDock);
70 actionRemove->setObjectName(QStringLiteral(
"actionRemove"));
71 actionGoto =
new QAction(MeltedPlaylistDock);
72 actionGoto->setObjectName(QStringLiteral(
"actionGoto"));
73 actionRemoveAll =
new QAction(MeltedPlaylistDock);
74 actionRemoveAll->setObjectName(QStringLiteral(
"actionRemoveAll"));
75 actionWipe =
new QAction(MeltedPlaylistDock);
76 actionWipe->setObjectName(QStringLiteral(
"actionWipe"));
77 actionClean =
new QAction(MeltedPlaylistDock);
78 actionClean->setObjectName(QStringLiteral(
"actionClean"));
79 dockWidgetContents =
new QWidget();
80 dockWidgetContents->setObjectName(QStringLiteral(
"dockWidgetContents"));
81 verticalLayout =
new QVBoxLayout(dockWidgetContents);
82 verticalLayout->setSpacing(0);
83 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
84 verticalLayout->setContentsMargins(0, 0, 0, 0);
85 tableView =
new QTableView(dockWidgetContents);
86 tableView->setObjectName(QStringLiteral(
"tableView"));
87 tableView->setContextMenuPolicy(Qt::CustomContextMenu);
88 tableView->setAlternatingRowColors(
true);
89 tableView->setSelectionMode(QAbstractItemView::SingleSelection);
90 tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
91 tableView->horizontalHeader()->setHighlightSections(
false);
92 tableView->verticalHeader()->setHighlightSections(
false);
94 verticalLayout->addWidget(tableView);
96 horizontalLayout =
new QHBoxLayout();
97 horizontalLayout->setSpacing(6);
98 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
99 addButton =
new QPushButton(dockWidgetContents);
100 addButton->setObjectName(QStringLiteral(
"addButton"));
102 iconThemeName = QStringLiteral(
"list-add");
103 if (QIcon::hasThemeIcon(iconThemeName)) {
104 icon2 = QIcon::fromTheme(iconThemeName);
106 icon2.addFile(QStringLiteral(
":/icons/oxygen/32x32/actions/list-add.png"), QSize(), QIcon::Normal, QIcon::Off);
108 addButton->setIcon(icon2);
110 horizontalLayout->addWidget(addButton);
112 removeButton =
new QPushButton(dockWidgetContents);
113 removeButton->setObjectName(QStringLiteral(
"removeButton"));
114 removeButton->setEnabled(
false);
116 iconThemeName = QStringLiteral(
"list-remove");
117 if (QIcon::hasThemeIcon(iconThemeName)) {
118 icon3 = QIcon::fromTheme(iconThemeName);
120 icon3.addFile(QStringLiteral(
":/icons/oxygen/32x32/actions/list-remove.png"), QSize(), QIcon::Normal, QIcon::Off);
122 removeButton->setIcon(icon3);
124 horizontalLayout->addWidget(removeButton);
126 menuButton =
new QPushButton(dockWidgetContents);
127 menuButton->setObjectName(QStringLiteral(
"menuButton"));
129 iconThemeName = QStringLiteral(
"format-justify-fill");
130 if (QIcon::hasThemeIcon(iconThemeName)) {
131 icon4 = QIcon::fromTheme(iconThemeName);
133 icon4.addFile(QStringLiteral(
":/icons/oxygen/32x32/actions/format-justify-fill.png"), QSize(), QIcon::Normal, QIcon::Off);
135 menuButton->setIcon(icon4);
137 horizontalLayout->addWidget(menuButton);
139 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
141 horizontalLayout->addItem(horizontalSpacer);
144 verticalLayout->addLayout(horizontalLayout);
146 MeltedPlaylistDock->setWidget(dockWidgetContents);
148 retranslateUi(MeltedPlaylistDock);
150 QMetaObject::connectSlotsByName(MeltedPlaylistDock);
153 void retranslateUi(QDockWidget *MeltedPlaylistDock)
155 MeltedPlaylistDock->setWindowTitle(QApplication::translate(
"MeltedPlaylistDock",
"Melted Playlist",
nullptr));
156 actionInsertCut->setText(QApplication::translate(
"MeltedPlaylistDock",
"Insert Cut",
nullptr));
157 actionAppendCut->setText(QApplication::translate(
"MeltedPlaylistDock",
"Append Cut",
nullptr));
158 actionOpen->setText(QApplication::translate(
"MeltedPlaylistDock",
"Open As Clip",
nullptr));
159 #ifndef QT_NO_TOOLTIP 160 actionOpen->setToolTip(QApplication::translate(
"MeltedPlaylistDock",
"Open the cut in the player",
nullptr));
161 #endif // QT_NO_TOOLTIP 162 actionRemove->setText(QApplication::translate(
"MeltedPlaylistDock",
"Remove",
nullptr));
163 actionGoto->setText(QApplication::translate(
"MeltedPlaylistDock",
"Goto",
nullptr));
164 #ifndef QT_NO_TOOLTIP 165 actionGoto->setToolTip(QApplication::translate(
"MeltedPlaylistDock",
"Go to the start of this cut in the playlist",
nullptr));
166 #endif // QT_NO_TOOLTIP 167 actionRemoveAll->setText(QApplication::translate(
"MeltedPlaylistDock",
"Remove All",
nullptr));
168 #ifndef QT_NO_TOOLTIP 169 actionRemoveAll->setToolTip(QApplication::translate(
"MeltedPlaylistDock",
"Remove all items from the playlist",
nullptr));
170 #endif // QT_NO_TOOLTIP 171 actionWipe->setText(QApplication::translate(
"MeltedPlaylistDock",
"Wipe",
nullptr));
172 #ifndef QT_NO_TOOLTIP 173 actionWipe->setToolTip(QApplication::translate(
"MeltedPlaylistDock",
"Remove all items before the currently playing clip",
nullptr));
174 #endif // QT_NO_TOOLTIP 175 actionClean->setText(QApplication::translate(
"MeltedPlaylistDock",
"Clean",
nullptr));
176 #ifndef QT_NO_TOOLTIP 177 actionClean->setToolTip(QApplication::translate(
"MeltedPlaylistDock",
"Remove all items except the currently playing clip",
nullptr));
178 #endif // QT_NO_TOOLTIP 179 #ifndef QT_NO_TOOLTIP 180 addButton->setToolTip(QApplication::translate(
"MeltedPlaylistDock",
"Add something to the playlist",
nullptr));
181 #endif // QT_NO_TOOLTIP 182 addButton->setText(QString());
183 #ifndef QT_NO_TOOLTIP 184 removeButton->setToolTip(QApplication::translate(
"MeltedPlaylistDock",
"Remove cut",
nullptr));
185 #endif // QT_NO_TOOLTIP 186 removeButton->setText(QString());
187 #ifndef QT_NO_TOOLTIP 188 menuButton->setToolTip(QApplication::translate(
"MeltedPlaylistDock",
"Display a menu of additional actions",
nullptr));
189 #endif // QT_NO_TOOLTIP 190 menuButton->setText(QString());
196 class MeltedPlaylistDock:
public Ui_MeltedPlaylistDock {};
201 #endif // UI_MELTEDPLAYLISTDOCK_H Definition: addencodepresetdialog.h:24