9 #ifndef UI_NEWPROJECTFOLDER_H 10 #define UI_NEWPROJECTFOLDER_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QFrame> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QLineEdit> 20 #include <QtWidgets/QListView> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QVBoxLayout> 24 #include <QtWidgets/QWidget> 28 class Ui_NewProjectFolder
31 QAction *actionProfileAutomatic;
32 QAction *actionAddCustomProfile;
33 QAction *actionProfileRemove;
34 QGridLayout *gridLayout_2;
36 QVBoxLayout *verticalLayout_2;
37 QLabel *newProjectLabel_2;
39 QVBoxLayout *verticalLayout_3;
40 QListView *recentListView;
42 QVBoxLayout *verticalLayout;
43 QLabel *newProjectLabel;
45 QGridLayout *gridLayout;
46 QPushButton *videoModeButton;
47 QHBoxLayout *horizontalLayout;
48 QPushButton *startButton;
49 QSpacerItem *horizontalSpacer;
53 QLineEdit *projectNameLineEdit;
55 QPushButton *projectsFolderButton;
56 QSpacerItem *verticalSpacer_2;
57 QSpacerItem *verticalSpacer;
59 void setupUi(QWidget *NewProjectFolder)
61 if (NewProjectFolder->objectName().isEmpty())
62 NewProjectFolder->setObjectName(QStringLiteral(
"NewProjectFolder"));
63 NewProjectFolder->resize(510, 425);
64 NewProjectFolder->setMinimumSize(QSize(320, 180));
65 actionProfileAutomatic =
new QAction(NewProjectFolder);
66 actionProfileAutomatic->setObjectName(QStringLiteral(
"actionProfileAutomatic"));
67 actionProfileAutomatic->setCheckable(
true);
68 actionProfileAutomatic->setChecked(
true);
69 actionAddCustomProfile =
new QAction(NewProjectFolder);
70 actionAddCustomProfile->setObjectName(QStringLiteral(
"actionAddCustomProfile"));
71 actionProfileRemove =
new QAction(NewProjectFolder);
72 actionProfileRemove->setObjectName(QStringLiteral(
"actionProfileRemove"));
73 gridLayout_2 =
new QGridLayout(NewProjectFolder);
74 gridLayout_2->setObjectName(QStringLiteral(
"gridLayout_2"));
75 frame_2 =
new QFrame(NewProjectFolder);
76 frame_2->setObjectName(QStringLiteral(
"frame_2"));
77 frame_2->setFrameShape(QFrame::Box);
78 verticalLayout_2 =
new QVBoxLayout(frame_2);
79 verticalLayout_2->setSpacing(0);
80 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
81 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
82 newProjectLabel_2 =
new QLabel(frame_2);
83 newProjectLabel_2->setObjectName(QStringLiteral(
"newProjectLabel_2"));
87 newProjectLabel_2->setFont(font);
88 newProjectLabel_2->setAlignment(Qt::AlignCenter);
89 newProjectLabel_2->setMargin(4);
91 verticalLayout_2->addWidget(newProjectLabel_2);
93 widget_2 =
new QWidget(frame_2);
94 widget_2->setObjectName(QStringLiteral(
"widget_2"));
95 verticalLayout_3 =
new QVBoxLayout(widget_2);
96 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
97 verticalLayout_3->setContentsMargins(0, 0, 0, 0);
98 recentListView =
new QListView(widget_2);
99 recentListView->setObjectName(QStringLiteral(
"recentListView"));
100 recentListView->setFrameShape(QFrame::NoFrame);
101 recentListView->setEditTriggers(QAbstractItemView::NoEditTriggers);
102 recentListView->setAlternatingRowColors(
true);
103 recentListView->setSpacing(2);
105 verticalLayout_3->addWidget(recentListView);
108 verticalLayout_2->addWidget(widget_2);
111 gridLayout_2->addWidget(frame_2, 0, 1, 1, 1);
113 frame =
new QFrame(NewProjectFolder);
114 frame->setObjectName(QStringLiteral(
"frame"));
115 frame->setFrameShape(QFrame::Panel);
116 verticalLayout =
new QVBoxLayout(frame);
117 verticalLayout->setSpacing(0);
118 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
119 verticalLayout->setContentsMargins(0, 0, 0, 0);
120 newProjectLabel =
new QLabel(frame);
121 newProjectLabel->setObjectName(QStringLiteral(
"newProjectLabel"));
122 newProjectLabel->setFont(font);
123 newProjectLabel->setAlignment(Qt::AlignCenter);
124 newProjectLabel->setMargin(4);
126 verticalLayout->addWidget(newProjectLabel);
128 widget =
new QWidget(frame);
129 widget->setObjectName(QStringLiteral(
"widget"));
130 gridLayout =
new QGridLayout(widget);
131 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
132 videoModeButton =
new QPushButton(widget);
133 videoModeButton->setObjectName(QStringLiteral(
"videoModeButton"));
134 videoModeButton->setMaximumSize(QSize(250, 16777215));
136 gridLayout->addWidget(videoModeButton, 2, 1, 1, 1);
138 horizontalLayout =
new QHBoxLayout();
139 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
140 startButton =
new QPushButton(widget);
141 startButton->setObjectName(QStringLiteral(
"startButton"));
142 startButton->setEnabled(
false);
144 horizontalLayout->addWidget(startButton);
146 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
148 horizontalLayout->addItem(horizontalSpacer);
151 gridLayout->addLayout(horizontalLayout, 4, 1, 1, 1);
153 label_4 =
new QLabel(widget);
154 label_4->setObjectName(QStringLiteral(
"label_4"));
155 label_4->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
156 label_4->setWordWrap(
true);
158 gridLayout->addWidget(label_4, 3, 1, 1, 1);
160 label =
new QLabel(widget);
161 label->setObjectName(QStringLiteral(
"label"));
162 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
164 gridLayout->addWidget(label, 0, 0, 1, 1);
166 label_3 =
new QLabel(widget);
167 label_3->setObjectName(QStringLiteral(
"label_3"));
168 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
170 gridLayout->addWidget(label_3, 2, 0, 1, 1);
172 projectNameLineEdit =
new QLineEdit(widget);
173 projectNameLineEdit->setObjectName(QStringLiteral(
"projectNameLineEdit"));
174 projectNameLineEdit->setMaximumSize(QSize(500, 16777215));
176 gridLayout->addWidget(projectNameLineEdit, 1, 1, 1, 1);
178 label_2 =
new QLabel(widget);
179 label_2->setObjectName(QStringLiteral(
"label_2"));
180 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
182 gridLayout->addWidget(label_2, 1, 0, 1, 1);
184 projectsFolderButton =
new QPushButton(widget);
185 projectsFolderButton->setObjectName(QStringLiteral(
"projectsFolderButton"));
186 projectsFolderButton->setMaximumSize(QSize(500, 16777215));
188 gridLayout->addWidget(projectsFolderButton, 0, 1, 1, 1);
190 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
192 gridLayout->addItem(verticalSpacer_2, 5, 1, 1, 1);
195 verticalLayout->addWidget(widget);
198 gridLayout_2->addWidget(frame, 0, 0, 1, 1);
200 verticalSpacer =
new QSpacerItem(20, 95, QSizePolicy::Minimum, QSizePolicy::Expanding);
202 gridLayout_2->addItem(verticalSpacer, 1, 0, 1, 1);
204 QWidget::setTabOrder(projectsFolderButton, projectNameLineEdit);
205 QWidget::setTabOrder(projectNameLineEdit, videoModeButton);
206 QWidget::setTabOrder(videoModeButton, startButton);
208 retranslateUi(NewProjectFolder);
210 QMetaObject::connectSlotsByName(NewProjectFolder);
213 void retranslateUi(QWidget *NewProjectFolder)
215 NewProjectFolder->setWindowTitle(QApplication::translate(
"NewProjectFolder",
"Form",
nullptr));
216 actionProfileAutomatic->setText(QApplication::translate(
"NewProjectFolder",
"Automatic",
nullptr));
217 actionAddCustomProfile->setText(QApplication::translate(
"NewProjectFolder",
"Add...",
nullptr));
218 actionProfileRemove->setText(QApplication::translate(
"NewProjectFolder",
"Remove...",
nullptr));
219 newProjectLabel_2->setText(QApplication::translate(
"NewProjectFolder",
"Recent Projects",
nullptr));
220 newProjectLabel->setText(QApplication::translate(
"NewProjectFolder",
"New Project",
nullptr));
221 videoModeButton->setText(QApplication::translate(
"NewProjectFolder",
"PushButton",
nullptr));
222 startButton->setText(QApplication::translate(
"NewProjectFolder",
"Start",
nullptr));
223 label_4->setText(QApplication::translate(
"NewProjectFolder",
"Automatic means the resolution and frame rate are based on the <b>first</b> file you <b>add</b> to your project. If the first file is not a video clip (for example, image or audio), then it will be 1920x1080p 25 fps.",
nullptr));
224 label->setText(QApplication::translate(
"NewProjectFolder",
"Projects folder",
nullptr));
225 label_3->setText(QApplication::translate(
"NewProjectFolder",
"Video mode",
nullptr));
226 #ifndef QT_NO_TOOLTIP 227 projectNameLineEdit->setToolTip(QApplication::translate(
"NewProjectFolder",
"A folder with this name will be created containing\n" 228 "a project file with the same name.",
nullptr));
229 #endif // QT_NO_TOOLTIP 230 label_2->setText(QApplication::translate(
"NewProjectFolder",
"Project name",
nullptr));
231 #ifndef QT_NO_TOOLTIP 232 projectsFolderButton->setToolTip(QApplication::translate(
"NewProjectFolder",
"This is the folder to contain Shotcut project folders.\n" 233 "A folder will be created in this folder for each project.",
nullptr));
234 #endif // QT_NO_TOOLTIP 235 projectsFolderButton->setText(QApplication::translate(
"NewProjectFolder",
"PushButton",
nullptr));
241 class NewProjectFolder:
public Ui_NewProjectFolder {};
246 #endif // UI_NEWPROJECTFOLDER_H