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/QScrollArea> 23 #include <QtWidgets/QSpacerItem> 24 #include <QtWidgets/QVBoxLayout> 25 #include <QtWidgets/QWidget> 29 class Ui_NewProjectFolder
32 QAction *actionProfileAutomatic;
33 QAction *actionAddCustomProfile;
34 QAction *actionProfileRemove;
35 QGridLayout *gridLayout_2;
37 QVBoxLayout *verticalLayout_2;
38 QLabel *newProjectLabel_2;
40 QVBoxLayout *verticalLayout_3;
41 QListView *recentListView;
43 QVBoxLayout *verticalLayout;
44 QLabel *newProjectLabel;
46 QGridLayout *gridLayout;
48 QSpacerItem *verticalSpacer_2;
49 QPushButton *videoModeButton;
50 QPushButton *projectsFolderButton;
51 QLineEdit *projectNameLineEdit;
52 QHBoxLayout *horizontalLayout;
53 QPushButton *startButton;
54 QSpacerItem *horizontalSpacer;
57 QScrollArea *scrollArea;
58 QWidget *scrollAreaWidgetContents;
59 QHBoxLayout *horizontalLayout_2;
61 QSpacerItem *verticalSpacer;
63 void setupUi(QWidget *NewProjectFolder)
65 if (NewProjectFolder->objectName().isEmpty())
66 NewProjectFolder->setObjectName(QString::fromUtf8(
"NewProjectFolder"));
67 NewProjectFolder->resize(510, 382);
68 NewProjectFolder->setMinimumSize(QSize(320, 180));
69 actionProfileAutomatic =
new QAction(NewProjectFolder);
70 actionProfileAutomatic->setObjectName(QString::fromUtf8(
"actionProfileAutomatic"));
71 actionProfileAutomatic->setCheckable(
true);
72 actionProfileAutomatic->setChecked(
true);
73 actionAddCustomProfile =
new QAction(NewProjectFolder);
74 actionAddCustomProfile->setObjectName(QString::fromUtf8(
"actionAddCustomProfile"));
75 actionProfileRemove =
new QAction(NewProjectFolder);
76 actionProfileRemove->setObjectName(QString::fromUtf8(
"actionProfileRemove"));
77 gridLayout_2 =
new QGridLayout(NewProjectFolder);
78 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
79 frame_2 =
new QFrame(NewProjectFolder);
80 frame_2->setObjectName(QString::fromUtf8(
"frame_2"));
81 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
82 sizePolicy.setHorizontalStretch(0);
83 sizePolicy.setVerticalStretch(1);
84 sizePolicy.setHeightForWidth(frame_2->sizePolicy().hasHeightForWidth());
85 frame_2->setSizePolicy(sizePolicy);
86 frame_2->setFrameShape(QFrame::Box);
87 verticalLayout_2 =
new QVBoxLayout(frame_2);
88 verticalLayout_2->setSpacing(0);
89 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
90 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
91 newProjectLabel_2 =
new QLabel(frame_2);
92 newProjectLabel_2->setObjectName(QString::fromUtf8(
"newProjectLabel_2"));
96 newProjectLabel_2->setFont(font);
97 newProjectLabel_2->setAlignment(Qt::AlignCenter);
98 newProjectLabel_2->setMargin(4);
100 verticalLayout_2->addWidget(newProjectLabel_2);
102 widget_2 =
new QWidget(frame_2);
103 widget_2->setObjectName(QString::fromUtf8(
"widget_2"));
104 verticalLayout_3 =
new QVBoxLayout(widget_2);
105 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
106 verticalLayout_3->setContentsMargins(0, 0, 0, 0);
107 recentListView =
new QListView(widget_2);
108 recentListView->setObjectName(QString::fromUtf8(
"recentListView"));
109 recentListView->setFrameShape(QFrame::NoFrame);
110 recentListView->setEditTriggers(QAbstractItemView::NoEditTriggers);
111 recentListView->setAlternatingRowColors(
true);
112 recentListView->setSpacing(2);
114 verticalLayout_3->addWidget(recentListView);
117 verticalLayout_2->addWidget(widget_2);
120 gridLayout_2->addWidget(frame_2, 0, 1, 1, 1);
122 frame =
new QFrame(NewProjectFolder);
123 frame->setObjectName(QString::fromUtf8(
"frame"));
124 frame->setFrameShape(QFrame::Panel);
125 verticalLayout =
new QVBoxLayout(frame);
126 verticalLayout->setSpacing(0);
127 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
128 verticalLayout->setContentsMargins(0, 0, 0, 0);
129 newProjectLabel =
new QLabel(frame);
130 newProjectLabel->setObjectName(QString::fromUtf8(
"newProjectLabel"));
131 newProjectLabel->setFont(font);
132 newProjectLabel->setAlignment(Qt::AlignCenter);
133 newProjectLabel->setMargin(4);
135 verticalLayout->addWidget(newProjectLabel);
137 widget =
new QWidget(frame);
138 widget->setObjectName(QString::fromUtf8(
"widget"));
139 gridLayout =
new QGridLayout(widget);
140 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
141 label =
new QLabel(widget);
142 label->setObjectName(QString::fromUtf8(
"label"));
143 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
145 gridLayout->addWidget(label, 0, 0, 1, 1);
147 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
149 gridLayout->addItem(verticalSpacer_2, 5, 1, 1, 1);
151 videoModeButton =
new QPushButton(widget);
152 videoModeButton->setObjectName(QString::fromUtf8(
"videoModeButton"));
153 videoModeButton->setMaximumSize(QSize(250, 16777215));
155 gridLayout->addWidget(videoModeButton, 2, 1, 1, 1);
157 projectsFolderButton =
new QPushButton(widget);
158 projectsFolderButton->setObjectName(QString::fromUtf8(
"projectsFolderButton"));
159 projectsFolderButton->setMaximumSize(QSize(500, 16777215));
161 gridLayout->addWidget(projectsFolderButton, 0, 1, 1, 1);
163 projectNameLineEdit =
new QLineEdit(widget);
164 projectNameLineEdit->setObjectName(QString::fromUtf8(
"projectNameLineEdit"));
165 projectNameLineEdit->setMaximumSize(QSize(500, 16777215));
167 gridLayout->addWidget(projectNameLineEdit, 1, 1, 1, 1);
169 horizontalLayout =
new QHBoxLayout();
170 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
171 startButton =
new QPushButton(widget);
172 startButton->setObjectName(QString::fromUtf8(
"startButton"));
173 startButton->setEnabled(
false);
175 horizontalLayout->addWidget(startButton);
177 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
179 horizontalLayout->addItem(horizontalSpacer);
182 gridLayout->addLayout(horizontalLayout, 4, 1, 1, 1);
184 label_3 =
new QLabel(widget);
185 label_3->setObjectName(QString::fromUtf8(
"label_3"));
186 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
188 gridLayout->addWidget(label_3, 2, 0, 1, 1);
190 label_2 =
new QLabel(widget);
191 label_2->setObjectName(QString::fromUtf8(
"label_2"));
192 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
194 gridLayout->addWidget(label_2, 1, 0, 1, 1);
196 scrollArea =
new QScrollArea(widget);
197 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
198 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);
199 sizePolicy1.setHorizontalStretch(0);
200 sizePolicy1.setVerticalStretch(1);
201 sizePolicy1.setHeightForWidth(scrollArea->sizePolicy().hasHeightForWidth());
202 scrollArea->setSizePolicy(sizePolicy1);
203 scrollArea->setFrameShape(QFrame::NoFrame);
204 scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
205 scrollArea->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
206 scrollArea->setWidgetResizable(
true);
207 scrollAreaWidgetContents =
new QWidget();
208 scrollAreaWidgetContents->setObjectName(QString::fromUtf8(
"scrollAreaWidgetContents"));
209 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 146, 144));
210 horizontalLayout_2 =
new QHBoxLayout(scrollAreaWidgetContents);
211 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
212 horizontalLayout_2->setContentsMargins(0, 0, 0, 0);
213 label_4 =
new QLabel(scrollAreaWidgetContents);
214 label_4->setObjectName(QString::fromUtf8(
"label_4"));
215 label_4->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
216 label_4->setWordWrap(
true);
218 horizontalLayout_2->addWidget(label_4);
220 scrollArea->setWidget(scrollAreaWidgetContents);
222 gridLayout->addWidget(scrollArea, 3, 1, 1, 1);
225 verticalLayout->addWidget(widget);
228 gridLayout_2->addWidget(frame, 0, 0, 1, 1);
230 verticalSpacer =
new QSpacerItem(20, 95, QSizePolicy::Minimum, QSizePolicy::Expanding);
232 gridLayout_2->addItem(verticalSpacer, 1, 0, 1, 1);
234 QWidget::setTabOrder(projectsFolderButton, projectNameLineEdit);
235 QWidget::setTabOrder(projectNameLineEdit, videoModeButton);
236 QWidget::setTabOrder(videoModeButton, startButton);
238 retranslateUi(NewProjectFolder);
240 QMetaObject::connectSlotsByName(NewProjectFolder);
243 void retranslateUi(QWidget *NewProjectFolder)
245 NewProjectFolder->setWindowTitle(QApplication::translate(
"NewProjectFolder",
"Form",
nullptr));
246 actionProfileAutomatic->setText(QApplication::translate(
"NewProjectFolder",
"Automatic",
nullptr));
247 actionAddCustomProfile->setText(QApplication::translate(
"NewProjectFolder",
"Add...",
nullptr));
248 actionProfileRemove->setText(QApplication::translate(
"NewProjectFolder",
"Remove...",
nullptr));
249 newProjectLabel_2->setText(QApplication::translate(
"NewProjectFolder",
"Recent Projects",
nullptr));
250 newProjectLabel->setText(QApplication::translate(
"NewProjectFolder",
"New Project",
nullptr));
251 label->setText(QApplication::translate(
"NewProjectFolder",
"Projects folder",
nullptr));
252 videoModeButton->setText(QApplication::translate(
"NewProjectFolder",
"PushButton",
nullptr));
253 #ifndef QT_NO_TOOLTIP 254 projectsFolderButton->setToolTip(QApplication::translate(
"NewProjectFolder",
"This is the folder to contain Shotcut project folders.\n" 255 "A folder will be created in this folder for each project.",
nullptr));
256 #endif // QT_NO_TOOLTIP 257 projectsFolderButton->setText(QApplication::translate(
"NewProjectFolder",
"PushButton",
nullptr));
258 #ifndef QT_NO_TOOLTIP 259 projectNameLineEdit->setToolTip(QApplication::translate(
"NewProjectFolder",
"A folder with this name will be created containing\n" 260 "a project file with the same name.",
nullptr));
261 #endif // QT_NO_TOOLTIP 262 startButton->setText(QApplication::translate(
"NewProjectFolder",
"Start",
nullptr));
263 label_3->setText(QApplication::translate(
"NewProjectFolder",
"Video mode",
nullptr));
264 label_2->setText(QApplication::translate(
"NewProjectFolder",
"Project name",
nullptr));
265 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));
271 class NewProjectFolder:
public Ui_NewProjectFolder {};
276 #endif // UI_NEWPROJECTFOLDER_H