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/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 QWidget *dockWidgetContents;
36 QVBoxLayout *verticalLayout_2;
37 QScrollArea *scrollArea;
38 QWidget *scrollAreaWidgetContents;
39 QVBoxLayout *verticalLayout;
41 QHBoxLayout *horizontalLayout;
42 QPushButton *pauseButton;
43 QPushButton *cleanButton;
44 QPushButton *menuButton;
45 QSpacerItem *horizontalSpacer;
47 void setupUi(QDockWidget *JobsDock)
49 if (JobsDock->objectName().isEmpty())
50 JobsDock->setObjectName(QStringLiteral(
"JobsDock"));
51 JobsDock->resize(283, 279);
53 QString iconThemeName = QStringLiteral(
"run-build");
54 if (QIcon::hasThemeIcon(iconThemeName)) {
55 icon = QIcon::fromTheme(iconThemeName);
57 icon.addFile(QStringLiteral(
":/icons/oxygen/32x32/actions/run-build.png"), QSize(), QIcon::Normal, QIcon::Off);
59 JobsDock->setWindowIcon(icon);
60 actionStopJob =
new QAction(JobsDock);
61 actionStopJob->setObjectName(QStringLiteral(
"actionStopJob"));
62 actionViewLog =
new QAction(JobsDock);
63 actionViewLog->setObjectName(QStringLiteral(
"actionViewLog"));
64 actionRun =
new QAction(JobsDock);
65 actionRun->setObjectName(QStringLiteral(
"actionRun"));
66 actionRemove =
new QAction(JobsDock);
67 actionRemove->setObjectName(QStringLiteral(
"actionRemove"));
68 dockWidgetContents =
new QWidget();
69 dockWidgetContents->setObjectName(QStringLiteral(
"dockWidgetContents"));
70 verticalLayout_2 =
new QVBoxLayout(dockWidgetContents);
71 verticalLayout_2->setSpacing(0);
72 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
73 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
74 scrollArea =
new QScrollArea(dockWidgetContents);
75 scrollArea->setObjectName(QStringLiteral(
"scrollArea"));
76 scrollArea->setFrameShape(QFrame::NoFrame);
77 scrollArea->setWidgetResizable(
true);
78 scrollAreaWidgetContents =
new QWidget();
79 scrollAreaWidgetContents->setObjectName(QStringLiteral(
"scrollAreaWidgetContents"));
80 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 283, 211));
81 verticalLayout =
new QVBoxLayout(scrollAreaWidgetContents);
82 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
83 verticalLayout->setContentsMargins(0, 0, 0, 0);
84 treeView =
new QTreeView(scrollAreaWidgetContents);
85 treeView->setObjectName(QStringLiteral(
"treeView"));
86 treeView->setContextMenuPolicy(Qt::CustomContextMenu);
87 treeView->setEditTriggers(QAbstractItemView::NoEditTriggers);
88 treeView->setAlternatingRowColors(
true);
89 treeView->setTextElideMode(Qt::ElideMiddle);
90 treeView->setRootIsDecorated(
false);
91 treeView->setUniformRowHeights(
true);
92 treeView->header()->setVisible(
false);
94 verticalLayout->addWidget(treeView);
96 scrollArea->setWidget(scrollAreaWidgetContents);
98 verticalLayout_2->addWidget(scrollArea);
100 horizontalLayout =
new QHBoxLayout();
101 horizontalLayout->setSpacing(6);
102 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
103 pauseButton =
new QPushButton(dockWidgetContents);
104 pauseButton->setObjectName(QStringLiteral(
"pauseButton"));
105 pauseButton->setCheckable(
true);
107 horizontalLayout->addWidget(pauseButton);
109 cleanButton =
new QPushButton(dockWidgetContents);
110 cleanButton->setObjectName(QStringLiteral(
"cleanButton"));
112 horizontalLayout->addWidget(cleanButton);
114 menuButton =
new QPushButton(dockWidgetContents);
115 menuButton->setObjectName(QStringLiteral(
"menuButton"));
117 iconThemeName = QStringLiteral(
"format-justify-fill");
118 if (QIcon::hasThemeIcon(iconThemeName)) {
119 icon1 = QIcon::fromTheme(iconThemeName);
121 icon1.addFile(QStringLiteral(
":/icons/light/32x32/format-justify-fill.png"), QSize(), QIcon::Normal, QIcon::Off);
123 menuButton->setIcon(icon1);
125 horizontalLayout->addWidget(menuButton);
127 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
129 horizontalLayout->addItem(horizontalSpacer);
132 verticalLayout_2->addLayout(horizontalLayout);
134 JobsDock->setWidget(dockWidgetContents);
136 retranslateUi(JobsDock);
138 QMetaObject::connectSlotsByName(JobsDock);
141 void retranslateUi(QDockWidget *JobsDock)
143 JobsDock->setWindowTitle(QApplication::translate(
"JobsDock",
"Jobs",
nullptr));
144 actionStopJob->setText(QApplication::translate(
"JobsDock",
"Stop This Job",
nullptr));
145 #ifndef QT_NO_TOOLTIP 146 actionStopJob->setToolTip(QApplication::translate(
"JobsDock",
"Stop the currently selected job",
nullptr));
147 #endif // QT_NO_TOOLTIP 148 actionViewLog->setText(QApplication::translate(
"JobsDock",
"View Log",
nullptr));
149 #ifndef QT_NO_TOOLTIP 150 actionViewLog->setToolTip(QApplication::translate(
"JobsDock",
"View the messages of MLT and FFmpeg ",
nullptr));
151 #endif // QT_NO_TOOLTIP 152 actionRun->setText(QApplication::translate(
"JobsDock",
"Run",
nullptr));
153 #ifndef QT_NO_TOOLTIP 154 actionRun->setToolTip(QApplication::translate(
"JobsDock",
"Restart a stopped job",
nullptr));
155 #endif // QT_NO_TOOLTIP 156 actionRemove->setText(QApplication::translate(
"JobsDock",
"Remove",
nullptr));
157 #ifndef QT_NO_TOOLTIP 158 pauseButton->setToolTip(QApplication::translate(
"JobsDock",
"Stop automatically processing the next pending job in\n" 159 "the list. This does not stop a currently running job. Right-\n" 160 "-click a job to open a menu to stop a currently running job.",
nullptr));
161 #endif // QT_NO_TOOLTIP 162 pauseButton->setText(QApplication::translate(
"JobsDock",
"Pause",
nullptr));
163 #ifndef QT_NO_TOOLTIP 164 cleanButton->setToolTip(QApplication::translate(
"JobsDock",
"Remove all of the completed and failed jobs from the list",
nullptr));
165 #endif // QT_NO_TOOLTIP 166 cleanButton->setText(QApplication::translate(
"JobsDock",
"Clean",
nullptr));
167 #ifndef QT_NO_TOOLTIP 168 menuButton->setToolTip(QApplication::translate(
"JobsDock",
"Display a menu of additional actions",
nullptr));
169 #endif // QT_NO_TOOLTIP 175 class JobsDock:
public Ui_JobsDock {};
180 #endif // UI_JOBSDOCK_H Definition: addencodepresetdialog.h:24