9 #ifndef UI_PQSPLINEPROPERTYWIDGET_H 10 #define UI_PQSPLINEPROPERTYWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QCheckBox> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QHeaderView> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QToolButton> 21 #include <QtWidgets/QVBoxLayout> 22 #include <QtWidgets/QWidget> 42 void setupUi(QWidget *SplinePropertyWidget)
44 if (SplinePropertyWidget->objectName().isEmpty())
45 SplinePropertyWidget->setObjectName(QString::fromUtf8(
"SplinePropertyWidget"));
46 SplinePropertyWidget->resize(286, 299);
47 verticalLayout_2 =
new QVBoxLayout(SplinePropertyWidget);
48 verticalLayout_2->setSpacing(2);
49 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
50 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
51 show3DWidget =
new QCheckBox(SplinePropertyWidget);
52 show3DWidget->setObjectName(QString::fromUtf8(
"show3DWidget"));
53 show3DWidget->setChecked(
true);
55 verticalLayout_2->addWidget(show3DWidget);
57 horizontalLayout =
new QHBoxLayout();
58 horizontalLayout->setSpacing(2);
59 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
61 PointsTable->setObjectName(QString::fromUtf8(
"PointsTable"));
62 PointsTable->setAlternatingRowColors(
true);
63 PointsTable->setSelectionBehavior(QAbstractItemView::SelectRows);
65 horizontalLayout->addWidget(PointsTable);
67 verticalLayout =
new QVBoxLayout();
68 verticalLayout->setSpacing(2);
69 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
70 Add =
new QToolButton(SplinePropertyWidget);
71 Add->setObjectName(QString::fromUtf8(
"Add"));
73 icon.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
76 verticalLayout->addWidget(Add);
78 Remove =
new QToolButton(SplinePropertyWidget);
79 Remove->setObjectName(QString::fromUtf8(
"Remove"));
81 icon1.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
82 Remove->setIcon(icon1);
84 verticalLayout->addWidget(Remove);
86 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
88 verticalLayout->addItem(verticalSpacer);
90 DeleteAll =
new QToolButton(SplinePropertyWidget);
91 DeleteAll->setObjectName(QString::fromUtf8(
"DeleteAll"));
93 icon2.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqDelete.svg"), QSize(), QIcon::Normal, QIcon::Off);
94 DeleteAll->setIcon(icon2);
96 verticalLayout->addWidget(DeleteAll);
99 horizontalLayout->addLayout(verticalLayout);
102 verticalLayout_2->addLayout(horizontalLayout);
104 Hints =
new QLabel(SplinePropertyWidget);
105 Hints->setObjectName(QString::fromUtf8(
"Hints"));
106 Hints->setWordWrap(
true);
108 verticalLayout_2->addWidget(Hints);
110 Closed =
new QCheckBox(SplinePropertyWidget);
111 Closed->setObjectName(QString::fromUtf8(
"Closed"));
113 verticalLayout_2->addWidget(Closed);
118 QMetaObject::connectSlotsByName(SplinePropertyWidget);
123 SplinePropertyWidget->setWindowTitle(QCoreApplication::translate(
"SplinePropertyWidget",
"Form",
nullptr));
124 show3DWidget->setText(QCoreApplication::translate(
"SplinePropertyWidget",
"Show Spline",
nullptr));
125 #if QT_CONFIG(tooltip) 126 Add->setToolTip(QCoreApplication::translate(
"SplinePropertyWidget",
"Add new point",
nullptr));
127 #endif // QT_CONFIG(tooltip) 128 Add->setText(QCoreApplication::translate(
"SplinePropertyWidget",
"...",
nullptr));
129 #if QT_CONFIG(tooltip) 130 Remove->setToolTip(QCoreApplication::translate(
"SplinePropertyWidget",
"Remove selected point(s)",
nullptr));
131 #endif // QT_CONFIG(tooltip) 132 Remove->setText(QCoreApplication::translate(
"SplinePropertyWidget",
"...",
nullptr));
133 #if QT_CONFIG(tooltip) 134 DeleteAll->setToolTip(QCoreApplication::translate(
"SplinePropertyWidget",
"Remove all points",
nullptr));
135 #endif // QT_CONFIG(tooltip) 136 DeleteAll->setText(QCoreApplication::translate(
"SplinePropertyWidget",
"...",
nullptr));
137 Hints->setText(QCoreApplication::translate(
"SplinePropertyWidget",
"<html><head/><body><p>Use <span style=\" font-weight:600;\">P</span> to place selected point on mesh or <span style=\" font-weight:600;\">Ctrl+P</span> to snap the selected point to closest mesh point. Use <span style=\" font-weight:600;\">1 </span>/ <span style=\" font-weight:600;\">Ctrl+1</span> for first point and <span style=\" font-weight:600;\">2 </span>/ <span style=\" font-weight:600;\">Ctrl+2</span> for the last point.<br/><span style=\" font-weight:600;\">Click</span> to select a point, <span style=\" font-weight:600;\">Shift+Click</span> to remove a point, <span style=\" font-weight:600;\">Ctrl+Click</span> to insert a point on the line, <span style=\" font-weight:600;\">Alt+Click</span> to add a point after the selected extremity.</p></body></html>",
nullptr));
138 Closed->setText(QCoreApplication::translate(
"SplinePropertyWidget",
"Closed Spline",
nullptr));
149 #endif // UI_PQSPLINEPROPERTYWIDGET_H
pqExpandableTableView extends pqTableView to add support for the following features: ...