12#include <QtCore/QVariant>
13#include <QtGui/QAction>
15#include <QtWidgets/QApplication>
16#include <QtWidgets/QDockWidget>
17#include <QtWidgets/QHBoxLayout>
18#include <QtWidgets/QHeaderView>
19#include <QtWidgets/QPushButton>
20#include <QtWidgets/QScrollArea>
21#include <QtWidgets/QSpacerItem>
22#include <QtWidgets/QTreeView>
23#include <QtWidgets/QVBoxLayout>
24#include <QtWidgets/QWidget>
31 QAction *actionStopJob;
32 QAction *actionViewLog;
34 QAction *actionRemove;
35 QAction *actionRemoveFinished;
36 QWidget *dockWidgetContents;
37 QVBoxLayout *verticalLayout_2;
38 QScrollArea *scrollArea;
39 QWidget *scrollAreaWidgetContents;
40 QVBoxLayout *verticalLayout;
42 QHBoxLayout *horizontalLayout;
43 QPushButton *menuButton;
44 QPushButton *pauseButton;
45 QPushButton *cleanButton;
46 QSpacerItem *horizontalSpacer;
48 void setupUi(QDockWidget *JobsDock)
50 if (JobsDock->objectName().isEmpty())
51 JobsDock->setObjectName(
"JobsDock");
52 JobsDock->resize(283, 279);
53#if QT_CONFIG(whatsthis)
54 JobsDock->setWhatsThis(QString::fromUtf8(
"https://forum.shotcut.org/t/jobs-panel/12945/1"));
56 actionStopJob =
new QAction(JobsDock);
57 actionStopJob->setObjectName(
"actionStopJob");
58 actionViewLog =
new QAction(JobsDock);
59 actionViewLog->setObjectName(
"actionViewLog");
60 actionRun =
new QAction(JobsDock);
61 actionRun->setObjectName(
"actionRun");
62 actionRemove =
new QAction(JobsDock);
63 actionRemove->setObjectName(
"actionRemove");
64 actionRemoveFinished =
new QAction(JobsDock);
65 actionRemoveFinished->setObjectName(
"actionRemoveFinished");
66 dockWidgetContents =
new QWidget();
67 dockWidgetContents->setObjectName(
"dockWidgetContents");
68 verticalLayout_2 =
new QVBoxLayout(dockWidgetContents);
69 verticalLayout_2->setSpacing(0);
70 verticalLayout_2->setObjectName(
"verticalLayout_2");
71 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
72 scrollArea =
new QScrollArea(dockWidgetContents);
73 scrollArea->setObjectName(
"scrollArea");
74 scrollArea->setFrameShape(QFrame::Shape::NoFrame);
75 scrollArea->setWidgetResizable(
true);
76 scrollAreaWidgetContents =
new QWidget();
77 scrollAreaWidgetContents->setObjectName(
"scrollAreaWidgetContents");
78 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 283, 219));
79 verticalLayout =
new QVBoxLayout(scrollAreaWidgetContents);
80 verticalLayout->setObjectName(
"verticalLayout");
81 verticalLayout->setContentsMargins(0, 0, 0, 0);
82 treeView =
new QTreeView(scrollAreaWidgetContents);
83 treeView->setObjectName(
"treeView");
84 treeView->setContextMenuPolicy(Qt::ContextMenuPolicy::CustomContextMenu);
85 treeView->setEditTriggers(QAbstractItemView::EditTrigger::NoEditTriggers);
86 treeView->setAlternatingRowColors(
true);
87 treeView->setTextElideMode(Qt::TextElideMode::ElideMiddle);
88 treeView->setRootIsDecorated(
false);
89 treeView->setUniformRowHeights(
true);
90 treeView->header()->setVisible(
false);
92 verticalLayout->addWidget(treeView);
94 scrollArea->setWidget(scrollAreaWidgetContents);
96 verticalLayout_2->addWidget(scrollArea);
98 horizontalLayout =
new QHBoxLayout();
99 horizontalLayout->setSpacing(6);
100 horizontalLayout->setObjectName(
"horizontalLayout");
101 menuButton =
new QPushButton(dockWidgetContents);
102 menuButton->setObjectName(
"menuButton");
104 QString iconThemeName = QString::fromUtf8(
"show-menu");
105 if (QIcon::hasThemeIcon(iconThemeName)) {
106 icon = QIcon::fromTheme(iconThemeName);
108 icon.addFile(QString::fromUtf8(
":/icons/light/32x32/show-menu.png"), QSize(), QIcon::Mode::Normal, QIcon::State::Off);
110 menuButton->setIcon(icon);
112 horizontalLayout->addWidget(menuButton);
114 pauseButton =
new QPushButton(dockWidgetContents);
115 pauseButton->setObjectName(
"pauseButton");
116 pauseButton->setCheckable(
true);
118 horizontalLayout->addWidget(pauseButton);
120 cleanButton =
new QPushButton(dockWidgetContents);
121 cleanButton->setObjectName(
"cleanButton");
123 horizontalLayout->addWidget(cleanButton);
125 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
127 horizontalLayout->addItem(horizontalSpacer);
130 verticalLayout_2->addLayout(horizontalLayout);
132 JobsDock->setWidget(dockWidgetContents);
134 retranslateUi(JobsDock);
136 QMetaObject::connectSlotsByName(JobsDock);
139 void retranslateUi(QDockWidget *JobsDock)
141 JobsDock->setWindowTitle(QCoreApplication::translate(
"JobsDock",
"Jobs",
nullptr));
142 actionStopJob->setText(QCoreApplication::translate(
"JobsDock",
"Stop This Job",
nullptr));
143#if QT_CONFIG(tooltip)
144 actionStopJob->setToolTip(QCoreApplication::translate(
"JobsDock",
"Stop the currently selected job",
nullptr));
146 actionViewLog->setText(QCoreApplication::translate(
"JobsDock",
"View Log",
nullptr));
147#if QT_CONFIG(tooltip)
148 actionViewLog->setToolTip(QCoreApplication::translate(
"JobsDock",
"View the messages of MLT and FFmpeg ",
nullptr));
150 actionRun->setText(QCoreApplication::translate(
"JobsDock",
"Run",
nullptr));
151#if QT_CONFIG(tooltip)
152 actionRun->setToolTip(QCoreApplication::translate(
"JobsDock",
"Restart a stopped job",
nullptr));
154 actionRemove->setText(QCoreApplication::translate(
"JobsDock",
"Remove",
nullptr));
155 actionRemoveFinished->setText(QCoreApplication::translate(
"JobsDock",
"Remove Finished",
nullptr));
156#if QT_CONFIG(tooltip)
157 actionRemoveFinished->setToolTip(QCoreApplication::translate(
"JobsDock",
"Remove Finished",
nullptr));
159#if QT_CONFIG(tooltip)
160 menuButton->setToolTip(QCoreApplication::translate(
"JobsDock",
"Jobs Menu",
nullptr));
162#if QT_CONFIG(tooltip)
163 pauseButton->setToolTip(QCoreApplication::translate(
"JobsDock",
"Stop automatically processing the next pending job in\n"
164"the list. This does not stop a currently running job. Right-\n"
165"-click a job to open a menu to stop a currently running job.",
nullptr));
167 pauseButton->setText(QCoreApplication::translate(
"JobsDock",
"Pause Queue",
nullptr));
168#if QT_CONFIG(tooltip)
169 cleanButton->setToolTip(QCoreApplication::translate(
"JobsDock",
"Remove all of the completed and failed jobs from the list",
nullptr));
171 cleanButton->setText(QCoreApplication::translate(
"JobsDock",
"Clean",
nullptr));
177 class JobsDock:
public Ui_JobsDock {};