[Part] add preview for changes to primitives location

- unset keyboardTracking for the dialog edits
- don't hide the location dialog on creation
This commit is contained in:
donovaly
2020-11-08 17:50:40 +01:00
committed by wmayer
parent 371c5ba5ee
commit f7bb206d63
4 changed files with 343 additions and 2 deletions

View File

@@ -1573,8 +1573,9 @@ void DlgPrimitives::onChangeRegularPolygon(QWidget* widget)
/* TRANSLATOR PartGui::Location */
Location::Location(QWidget* parent, Part::Feature* feature)
: QWidget(parent)
, featurePtr(feature)
{
Q_UNUSED(parent);
mode = 0;
ui.setupUi(this);
@@ -1600,8 +1601,19 @@ Location::Location(QWidget* parent, Part::Feature* feature)
ui.XDirectionEdit->setValue(rotationAxes.x);
ui.YDirectionEdit->setValue(rotationAxes.y);
ui.ZDirectionEdit->setValue(rotationAxes.z);
// the angle is in this format: 180° = PI, thus transform it to deg
// the angle is rad, transform it for display to degrees
ui.AngleQSB->setValue(Base::toDegrees<double>(rotationAngle));
//connect signals
QSignalMapper* mapper = new QSignalMapper(this);
connect(mapper, SIGNAL(mapped(QWidget*)), this, SLOT(onChangePosRot(QWidget*)));
connectSignalMapper(ui.XPositionQSB, SIGNAL(valueChanged(double)), mapper);
connectSignalMapper(ui.YPositionQSB, SIGNAL(valueChanged(double)), mapper);
connectSignalMapper(ui.ZPositionQSB, SIGNAL(valueChanged(double)), mapper);
connectSignalMapper(ui.AngleQSB, SIGNAL(valueChanged(double)), mapper);
connectSignalMapper(ui.XDirectionEdit, SIGNAL(valueChanged(double)), mapper);
connectSignalMapper(ui.YDirectionEdit, SIGNAL(valueChanged(double)), mapper);
connectSignalMapper(ui.ZDirectionEdit, SIGNAL(valueChanged(double)), mapper);
}
}
@@ -1620,6 +1632,120 @@ Location::~Location()
}
}
void Location::connectSignalMapper(QWidget* sender, const char* signal, QSignalMapper* mapper)
{
connect(sender, signal, mapper, SLOT(map()));
mapper->setMapping(sender, sender);
}
void Location::onChangePosRot(QWidget* widget)
{
App::Document* doc = featurePtr->getDocument();
Base::Type type = featurePtr->getTypeId();
// read dialog values
Base::Vector3d loc;
loc.x = ui.XPositionQSB->rawValue();
loc.y = ui.YPositionQSB->rawValue();
loc.z = ui.ZPositionQSB->rawValue();
double angle = ui.AngleQSB->rawValue();
// the angle is displayed in degrees, transform it to rad
angle = Base::toRadians<double>(angle);
Base::Vector3d rot;
rot.x = ui.XDirectionEdit->value();
rot.y = ui.YDirectionEdit->value();
rot.z = ui.ZDirectionEdit->value();
// set placement and rotation
Base::Placement placement;
Base::Rotation rotation(rot, angle);
placement.setPosition(loc);
placement.setRotation(rotation);
// apply new placement to the feature
if (type == Part::Plane::getClassTypeId()) {
Part::Plane* plane = featurePtr.get<Part::Plane>();
plane->Placement.setValue(placement);
plane->recomputeFeature();
}
else if (type == Part::Box::getClassTypeId()) {
Part::Box* box = featurePtr.get<Part::Box>();
box->Placement.setValue(placement);
box->recomputeFeature();
}
else if (type == Part::Cylinder::getClassTypeId()) {
Part::Cylinder* cylinder = featurePtr.get<Part::Cylinder>();
cylinder->Placement.setValue(placement);
cylinder->recomputeFeature();
}
else if (type == Part::Cone::getClassTypeId()) {
Part::Cone* cone = featurePtr.get<Part::Cone>();
cone->Placement.setValue(placement);
cone->recomputeFeature();
}
else if (type == Part::Sphere::getClassTypeId()) {
Part::Sphere* sphere = featurePtr.get<Part::Sphere>();
sphere->Placement.setValue(placement);
sphere->recomputeFeature();
}
else if (type == Part::Ellipsoid::getClassTypeId()) {
Part::Ellipsoid* ellipsoid = featurePtr.get<Part::Ellipsoid>();
ellipsoid->Placement.setValue(placement);
ellipsoid->recomputeFeature();
}
else if (type == Part::Torus::getClassTypeId()) {
Part::Torus* torus = featurePtr.get<Part::Torus>();
torus->Placement.setValue(placement);
torus->recomputeFeature();
}
else if (type == Part::Prism::getClassTypeId()) {
Part::Prism* prism = featurePtr.get<Part::Prism>();
prism->Placement.setValue(placement);
prism->recomputeFeature();
}
else if (type == Part::Wedge::getClassTypeId()) {
Part::Wedge* wedge = featurePtr.get<Part::Wedge>();
wedge->Placement.setValue(placement);
wedge->recomputeFeature();
}
else if (type == Part::Helix::getClassTypeId()) {
Part::Helix* helix = featurePtr.get<Part::Helix>();
helix->Placement.setValue(placement);
helix->recomputeFeature();
}
else if (type == Part::Spiral::getClassTypeId()) {
Part::Spiral* spiral = featurePtr.get<Part::Spiral>();
spiral->Placement.setValue(placement);
spiral->recomputeFeature();
}
else if (type == Part::Circle::getClassTypeId()) {
Part::Circle* circle = featurePtr.get<Part::Circle>();
circle->Placement.setValue(placement);
circle->recomputeFeature();
}
else if (type == Part::Ellipse::getClassTypeId()) {
Part::Ellipse* ellipse = featurePtr.get<Part::Ellipse>();
ellipse->Placement.setValue(placement);
ellipse->recomputeFeature();
}
else if (type == Part::Vertex::getClassTypeId()) {
Part::Vertex* vertex = featurePtr.get<Part::Vertex>();
vertex->Placement.setValue(placement);
vertex->recomputeFeature();
}
else if (type == Part::Line::getClassTypeId()) {
Part::Line* line = featurePtr.get<Part::Line>();
line->Placement.setValue(placement);
line->recomputeFeature();
}
else if (type == Part::RegularPolygon::getClassTypeId()) {
Part::RegularPolygon* polygon = featurePtr.get<Part::RegularPolygon>();
polygon->Placement.setValue(placement);
polygon->recomputeFeature();
}
}
void Location::on_viewPositionButton_clicked()
{
Gui::Document* doc = Gui::Application::Instance->activeDocument();

View File

@@ -112,13 +112,18 @@ public:
QString toPlacement() const;
private Q_SLOTS:
void onChangePosRot(QWidget*);
void on_viewPositionButton_clicked();
private:
void connectSignalMapper(QWidget* sender, const char* signal, QSignalMapper* mapper);
private:
static void pickCallback(void * ud, SoEventCallback * n);
int mode;
QPointer<QWidget> activeView;
Ui_Location ui;
App::DocumentObjectWeakPtrT featurePtr;
};
class TaskPrimitives : public Gui::TaskView::TaskDialog

View File

@@ -236,6 +236,9 @@
</property>
<item row="0" column="2">
<widget class="Gui::QuantitySpinBox" name="planeLength">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -260,6 +263,9 @@
</item>
<item row="1" column="2">
<widget class="Gui::QuantitySpinBox" name="planeWidth">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -337,6 +343,9 @@
</property>
<item row="1" column="2">
<widget class="Gui::QuantitySpinBox" name="boxWidth">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -347,6 +356,9 @@
</item>
<item row="2" column="2">
<widget class="Gui::QuantitySpinBox" name="boxHeight">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -378,6 +390,9 @@
</item>
<item row="0" column="2">
<widget class="Gui::QuantitySpinBox" name="boxLength">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -433,6 +448,9 @@
</item>
<item>
<widget class="Gui::QuantitySpinBox" name="cylinderAngle">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -502,6 +520,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="cylinderHeight">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -512,6 +533,9 @@
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="cylinderRadius">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -567,6 +591,9 @@
</item>
<item>
<widget class="Gui::QuantitySpinBox" name="coneAngle">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -622,6 +649,9 @@
</property>
<item row="3" column="2">
<widget class="Gui::QuantitySpinBox" name="coneHeight">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -632,6 +662,9 @@
</item>
<item row="0" column="2">
<widget class="Gui::QuantitySpinBox" name="coneRadius1">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -663,6 +696,9 @@
</item>
<item row="1" column="2">
<widget class="Gui::QuantitySpinBox" name="coneRadius2">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -751,6 +787,9 @@
</item>
<item row="1" column="2">
<widget class="Gui::QuantitySpinBox" name="sphereAngle1">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -761,6 +800,9 @@
</item>
<item row="2" column="2">
<widget class="Gui::QuantitySpinBox" name="sphereAngle2">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -771,6 +813,9 @@
</item>
<item row="0" column="2">
<widget class="Gui::QuantitySpinBox" name="sphereAngle3">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -823,6 +868,9 @@
</item>
<item>
<widget class="Gui::QuantitySpinBox" name="sphereRadius">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -915,6 +963,9 @@
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="ellipsoidRadius1">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -925,6 +976,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="ellipsoidRadius2">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -935,6 +989,9 @@
</item>
<item row="2" column="1">
<widget class="Gui::QuantitySpinBox" name="ellipsoidRadius3">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -994,6 +1051,9 @@
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="ellipsoidAngle3">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1004,6 +1064,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="ellipsoidAngle1">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1014,6 +1077,9 @@
</item>
<item row="2" column="1">
<widget class="Gui::QuantitySpinBox" name="ellipsoidAngle2">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1102,6 +1168,9 @@
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="torusAngle3">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1112,6 +1181,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="torusAngle1">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1122,6 +1194,9 @@
</item>
<item row="2" column="1">
<widget class="Gui::QuantitySpinBox" name="torusAngle2">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1167,6 +1242,9 @@
</property>
<item row="0" column="2">
<widget class="Gui::QuantitySpinBox" name="torusRadius1">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1191,6 +1269,9 @@
</item>
<item row="1" column="2">
<widget class="Gui::QuantitySpinBox" name="torusRadius2">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1239,6 +1320,9 @@
</property>
<item row="1" column="2">
<widget class="Gui::QuantitySpinBox" name="prismCircumradius">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1256,6 +1340,9 @@
</item>
<item row="0" column="2">
<widget class="QSpinBox" name="prismPolygon">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="minimum">
<number>3</number>
</property>
@@ -1283,6 +1370,9 @@
</item>
<item row="2" column="2">
<widget class="Gui::QuantitySpinBox" name="prismHeight">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1303,6 +1393,9 @@
<property name="toolTip">
<string>Angle in first direction</string>
</property>
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1326,6 +1419,9 @@
<property name="toolTip">
<string>Angle in second direction</string>
</property>
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1401,6 +1497,9 @@
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="wedgeXmin">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1408,6 +1507,9 @@
</item>
<item row="0" column="2">
<widget class="Gui::QuantitySpinBox" name="wedgeXmax">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1418,6 +1520,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="wedgeYmin">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1425,6 +1530,9 @@
</item>
<item row="1" column="2">
<widget class="Gui::QuantitySpinBox" name="wedgeYmax">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1435,6 +1543,9 @@
</item>
<item row="2" column="1">
<widget class="Gui::QuantitySpinBox" name="wedgeZmin">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1442,6 +1553,9 @@
</item>
<item row="2" column="2">
<widget class="Gui::QuantitySpinBox" name="wedgeZmax">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1452,6 +1566,9 @@
</item>
<item row="3" column="1">
<widget class="Gui::QuantitySpinBox" name="wedgeX2min">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1462,6 +1579,9 @@
</item>
<item row="3" column="2">
<widget class="Gui::QuantitySpinBox" name="wedgeX2max">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1472,6 +1592,9 @@
</item>
<item row="4" column="1">
<widget class="Gui::QuantitySpinBox" name="wedgeZ2min">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1482,6 +1605,9 @@
</item>
<item row="4" column="2">
<widget class="Gui::QuantitySpinBox" name="wedgeZ2max">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1605,6 +1731,9 @@
</item>
<item row="3" column="1">
<widget class="Gui::QuantitySpinBox" name="helixAngle">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1612,6 +1741,9 @@
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="helixPitch">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1622,6 +1754,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="helixHeight">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1632,6 +1767,9 @@
</item>
<item row="2" column="1">
<widget class="Gui::QuantitySpinBox" name="helixRadius">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1714,6 +1852,9 @@
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="spiralGrowth">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1724,6 +1865,9 @@
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="spiralRotation">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="maximum">
<double>1000.000000000000000</double>
</property>
@@ -1734,6 +1878,9 @@
</item>
<item row="2" column="1">
<widget class="Gui::QuantitySpinBox" name="spiralRadius">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1788,6 +1935,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="circleAngle0">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1795,6 +1945,9 @@
</item>
<item row="2" column="1">
<widget class="Gui::QuantitySpinBox" name="circleAngle1">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1805,6 +1958,9 @@
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="circleRadius">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1888,6 +2044,9 @@
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="ellipseMajorRadius">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1898,6 +2057,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="ellipseMinorRadius">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1908,6 +2070,9 @@
</item>
<item row="2" column="1">
<widget class="Gui::QuantitySpinBox" name="ellipseAngle0">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1915,6 +2080,9 @@
</item>
<item row="3" column="1">
<widget class="Gui::QuantitySpinBox" name="ellipseAngle1">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
@@ -1976,6 +2144,9 @@
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="vertexX">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1983,6 +2154,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="vertexY">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -1990,6 +2164,9 @@
</item>
<item row="2" column="1">
<widget class="Gui::QuantitySpinBox" name="vertexZ">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -2102,6 +2279,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="edgeX1">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -2109,6 +2289,9 @@
</item>
<item row="2" column="1">
<widget class="Gui::QuantitySpinBox" name="edgeY1">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -2116,6 +2299,9 @@
</item>
<item row="3" column="1">
<widget class="Gui::QuantitySpinBox" name="edgeZ1">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -2123,6 +2309,9 @@
</item>
<item row="6" column="1">
<widget class="Gui::QuantitySpinBox" name="edgeX2">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -2133,6 +2322,9 @@
</item>
<item row="7" column="1">
<widget class="Gui::QuantitySpinBox" name="edgeY2">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -2143,6 +2335,9 @@
</item>
<item row="8" column="1">
<widget class="Gui::QuantitySpinBox" name="edgeZ2">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
@@ -2211,6 +2406,9 @@
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="regularPolygonPolygon">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="minimum">
<number>3</number>
</property>
@@ -2231,6 +2429,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="regularPolygonCircumradius">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>

View File

@@ -40,6 +40,9 @@
</item>
<item>
<widget class="Gui::QuantitySpinBox" name="XPositionQSB">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
</property>
@@ -58,6 +61,9 @@
</item>
<item>
<widget class="Gui::QuantitySpinBox" name="YPositionQSB">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
</property>
@@ -76,6 +82,9 @@
</item>
<item>
<widget class="Gui::QuantitySpinBox" name="ZPositionQSB">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
</property>