9 #ifndef UI_PQCAMERAKEYFRAMEWIDGET_H 10 #define UI_PQCAMERAKEYFRAMEWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QGridLayout> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QHeaderView> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QStackedWidget> 21 #include <QtWidgets/QTextBrowser> 22 #include <QtWidgets/QTreeWidget> 23 #include <QtWidgets/QVBoxLayout> 24 #include <QtWidgets/QWidget> 78 void setupUi(QWidget *CameraKeyFrameWidget)
80 if (CameraKeyFrameWidget->objectName().isEmpty())
81 CameraKeyFrameWidget->setObjectName(QString::fromUtf8(
"CameraKeyFrameWidget"));
82 CameraKeyFrameWidget->resize(396, 216);
83 gridLayout =
new QGridLayout(CameraKeyFrameWidget);
84 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
85 stackedWidgetMode =
new QStackedWidget(CameraKeyFrameWidget);
86 stackedWidgetMode->setObjectName(QString::fromUtf8(
"stackedWidgetMode"));
87 page_4 =
new QWidget();
88 page_4->setObjectName(QString::fromUtf8(
"page_4"));
89 gridLayout1 =
new QGridLayout(page_4);
90 gridLayout1->setContentsMargins(0, 0, 0, 0);
91 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
92 hboxLayout =
new QHBoxLayout();
93 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
94 leftPane =
new QTreeWidget(page_4);
95 new QTreeWidgetItem(leftPane);
96 new QTreeWidgetItem(leftPane);
97 new QTreeWidgetItem(leftPane);
98 leftPane->setObjectName(QString::fromUtf8(
"leftPane"));
99 leftPane->setRootIsDecorated(
false);
101 hboxLayout->addWidget(leftPane);
103 stackedWidget =
new QStackedWidget(page_4);
104 stackedWidget->setObjectName(QString::fromUtf8(
"stackedWidget"));
105 page_3 =
new QWidget();
106 page_3->setObjectName(QString::fromUtf8(
"page_3"));
107 gridLayout2 =
new QGridLayout(page_3);
108 gridLayout2->setContentsMargins(0, 0, 0, 0);
109 gridLayout2->setObjectName(QString::fromUtf8(
"gridLayout2"));
110 textBrowser =
new QTextBrowser(page_3);
111 textBrowser->setObjectName(QString::fromUtf8(
"textBrowser"));
113 gridLayout2->addWidget(textBrowser, 0, 0, 1, 1);
115 stackedWidget->addWidget(page_3);
116 page =
new QWidget();
117 page->setObjectName(QString::fromUtf8(
"page"));
118 vboxLayout =
new QVBoxLayout(page);
119 vboxLayout->setContentsMargins(0, 0, 0, 0);
120 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
122 positionContainer->setObjectName(QString::fromUtf8(
"positionContainer"));
123 positionContainer->setCheckable(
true);
125 vboxLayout->addWidget(positionContainer);
127 stackedWidget->addWidget(page);
128 page_6 =
new QWidget();
129 page_6->setObjectName(QString::fromUtf8(
"page_6"));
130 gridLayout3 =
new QGridLayout(page_6);
131 gridLayout3->setContentsMargins(0, 0, 0, 0);
132 gridLayout3->setObjectName(QString::fromUtf8(
"gridLayout3"));
134 focusContainer->setObjectName(QString::fromUtf8(
"focusContainer"));
136 gridLayout3->addWidget(focusContainer, 0, 0, 1, 1);
138 stackedWidget->addWidget(page_6);
139 page_2 =
new QWidget();
140 page_2->setObjectName(QString::fromUtf8(
"page_2"));
141 vboxLayout1 =
new QVBoxLayout(page_2);
142 vboxLayout1->setContentsMargins(0, 0, 0, 0);
143 vboxLayout1->setObjectName(QString::fromUtf8(
"vboxLayout1"));
144 gridLayout4 =
new QGridLayout();
145 gridLayout4->setObjectName(QString::fromUtf8(
"gridLayout4"));
147 viewUpX->setObjectName(QString::fromUtf8(
"viewUpX"));
148 viewUpX->setProperty(
"minimum", QVariant(-1000.000000000000000));
149 viewUpX->setProperty(
"maximum", QVariant(1000.000000000000000));
151 gridLayout4->addWidget(viewUpX, 0, 0, 1, 1);
154 viewUpY->setObjectName(QString::fromUtf8(
"viewUpY"));
155 viewUpY->setProperty(
"minimum", QVariant(-1000.000000000000000));
156 viewUpY->setProperty(
"maximum", QVariant(1000.000000000000000));
158 gridLayout4->addWidget(viewUpY, 0, 1, 1, 1);
161 viewUpZ->setObjectName(QString::fromUtf8(
"viewUpZ"));
162 viewUpZ->setProperty(
"minimum", QVariant(-1000.000000000000000));
163 viewUpZ->setProperty(
"maximum", QVariant(1000.000000000000000));
165 gridLayout4->addWidget(viewUpZ, 0, 2, 1, 1);
168 vboxLayout1->addLayout(gridLayout4);
170 spacerItem =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
172 vboxLayout1->addItem(spacerItem);
174 stackedWidget->addWidget(page_2);
176 hboxLayout->addWidget(stackedWidget);
179 gridLayout1->addLayout(hboxLayout, 0, 0, 1, 1);
181 stackedWidgetMode->addWidget(page_4);
182 page_5 =
new QWidget();
183 page_5->setObjectName(QString::fromUtf8(
"page_5"));
184 gridLayout5 =
new QGridLayout(page_5);
185 gridLayout5->setContentsMargins(0, 0, 0, 0);
186 gridLayout5->setObjectName(QString::fromUtf8(
"gridLayout5"));
187 label_10 =
new QLabel(page_5);
188 label_10->setObjectName(QString::fromUtf8(
"label_10"));
190 gridLayout5->addWidget(label_10, 1, 0, 1, 1);
193 position0->setObjectName(QString::fromUtf8(
"position0"));
195 gridLayout5->addWidget(position0, 1, 2, 1, 1);
198 position1->setObjectName(QString::fromUtf8(
"position1"));
200 gridLayout5->addWidget(position1, 1, 3, 1, 1);
203 position2->setObjectName(QString::fromUtf8(
"position2"));
205 gridLayout5->addWidget(position2, 1, 4, 1, 1);
207 label_12 =
new QLabel(page_5);
208 label_12->setObjectName(QString::fromUtf8(
"label_12"));
210 gridLayout5->addWidget(label_12, 2, 0, 1, 1);
213 focalPoint0->setObjectName(QString::fromUtf8(
"focalPoint0"));
215 gridLayout5->addWidget(focalPoint0, 2, 2, 1, 1);
218 focalPoint1->setObjectName(QString::fromUtf8(
"focalPoint1"));
220 gridLayout5->addWidget(focalPoint1, 2, 3, 1, 1);
223 focalPoint2->setObjectName(QString::fromUtf8(
"focalPoint2"));
225 gridLayout5->addWidget(focalPoint2, 2, 4, 1, 1);
227 label_13 =
new QLabel(page_5);
228 label_13->setObjectName(QString::fromUtf8(
"label_13"));
230 gridLayout5->addWidget(label_13, 3, 0, 1, 1);
233 viewUp0->setObjectName(QString::fromUtf8(
"viewUp0"));
235 gridLayout5->addWidget(viewUp0, 3, 2, 1, 1);
238 viewUp1->setObjectName(QString::fromUtf8(
"viewUp1"));
240 gridLayout5->addWidget(viewUp1, 3, 3, 1, 1);
243 viewUp2->setObjectName(QString::fromUtf8(
"viewUp2"));
245 gridLayout5->addWidget(viewUp2, 3, 4, 1, 1);
247 label_11 =
new QLabel(page_5);
248 label_11->setObjectName(QString::fromUtf8(
"label_11"));
250 gridLayout5->addWidget(label_11, 5, 0, 1, 1);
252 label =
new QLabel(page_5);
253 label->setObjectName(QString::fromUtf8(
"label"));
255 gridLayout5->addWidget(label, 6, 0, 1, 1);
257 spacerItem1 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
259 gridLayout5->addItem(spacerItem1, 8, 2, 1, 1);
261 useCurrent =
new QPushButton(page_5);
262 useCurrent->setObjectName(QString::fromUtf8(
"useCurrent"));
264 gridLayout5->addWidget(useCurrent, 7, 0, 1, 5);
266 updateCurrent =
new QPushButton(page_5);
267 updateCurrent->setObjectName(QString::fromUtf8(
"updateCurrent"));
269 gridLayout5->addWidget(updateCurrent, 8, 0, 1, 5);
272 viewAngle->setObjectName(QString::fromUtf8(
"viewAngle"));
274 gridLayout5->addWidget(viewAngle, 5, 2, 1, 3);
277 parallelScale->setObjectName(QString::fromUtf8(
"parallelScale"));
279 gridLayout5->addWidget(parallelScale, 6, 2, 1, 3);
281 stackedWidgetMode->addWidget(page_5);
283 gridLayout->addWidget(stackedWidgetMode, 0, 0, 1, 1);
288 stackedWidgetMode->setCurrentIndex(1);
289 stackedWidget->setCurrentIndex(3);
292 QMetaObject::connectSlotsByName(CameraKeyFrameWidget);
297 CameraKeyFrameWidget->setWindowTitle(QCoreApplication::translate(
"CameraKeyFrameWidget",
"Camera Animation",
nullptr));
298 QTreeWidgetItem *___qtreewidgetitem = leftPane->headerItem();
299 ___qtreewidgetitem->setText(0, QCoreApplication::translate(
"CameraKeyFrameWidget",
"1",
nullptr));
301 const bool __sortingEnabled = leftPane->isSortingEnabled();
302 leftPane->setSortingEnabled(
false);
303 QTreeWidgetItem *___qtreewidgetitem1 = leftPane->topLevelItem(0);
304 ___qtreewidgetitem1->setText(0, QCoreApplication::translate(
"CameraKeyFrameWidget",
"Camera Position",
nullptr));
305 QTreeWidgetItem *___qtreewidgetitem2 = leftPane->topLevelItem(1);
306 ___qtreewidgetitem2->setText(0, QCoreApplication::translate(
"CameraKeyFrameWidget",
"Camera Focus",
nullptr));
307 QTreeWidgetItem *___qtreewidgetitem3 = leftPane->topLevelItem(2);
308 ___qtreewidgetitem3->setText(0, QCoreApplication::translate(
"CameraKeyFrameWidget",
"Up Direction",
nullptr));
309 leftPane->setSortingEnabled(__sortingEnabled);
311 textBrowser->setHtml(QCoreApplication::translate(
"CameraKeyFrameWidget",
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" 312 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" 313 "p, li { white-space: pre-wrap; }\n" 314 "</style></head><body style=\" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;\">\n" 315 "<table border=\"0\" style=\"-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;\">\n" 317 "<td style=\"border: none;\">\n" 318 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:'Helvetica'; font-size:9pt; font-weight:600;\">Define Camera Parameters</span></p>\n" 319 "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Helvetica'; font-size:9pt; font-weight:600;\"><br /></p>\n" 320 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margi" 321 "n-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:'Helvetica'; font-size:9pt;\">Using the left pane, edit the path followed by the camera's position and focal point for the keyframe being edited.</span></p></td></tr></table></body></html>",
nullptr));
322 positionContainer->setTitle(QCoreApplication::translate(
"CameraKeyFrameWidget",
"Position Control Points",
nullptr));
323 focusContainer->setTitle(QCoreApplication::translate(
"CameraKeyFrameWidget",
"Focus Control Points",
nullptr));
324 label_10->setText(QCoreApplication::translate(
"CameraKeyFrameWidget",
"Position",
nullptr));
325 label_12->setText(QCoreApplication::translate(
"CameraKeyFrameWidget",
"Focal Point",
nullptr));
326 label_13->setText(QCoreApplication::translate(
"CameraKeyFrameWidget",
"View Up",
nullptr));
327 label_11->setText(QCoreApplication::translate(
"CameraKeyFrameWidget",
"View Angle",
nullptr));
328 label->setText(QCoreApplication::translate(
"CameraKeyFrameWidget",
"Parallel Scale",
nullptr));
329 useCurrent->setText(QCoreApplication::translate(
"CameraKeyFrameWidget",
"Use Current",
nullptr));
330 updateCurrent->setText(QCoreApplication::translate(
"CameraKeyFrameWidget",
"Apply to camera",
nullptr));
341 #endif // UI_PQCAMERAKEYFRAMEWIDGET_H
pqLineEdit is a specialization of QLineEdit which provide a new property 'text2'. ...