Fild additional angle for tool normal did not work.

--HG--
branch : develop
This commit is contained in:
dismine 2014-10-24 19:53:13 +03:00
parent ea0e733602
commit 147ff0d505
2 changed files with 11 additions and 9 deletions

View File

@ -458,6 +458,9 @@
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="minimum">
<double>-360.000000000000000</double>
</property>
<property name="maximum"> <property name="maximum">
<double>360.000000000000000</double> <double>360.000000000000000</double>
</property> </property>

View File

@ -709,7 +709,7 @@ void VToolOptionsPropertyBrowser::ChangeDataToolNormal(VProperty *property)
case 0: // VAbstractTool::AttrName case 0: // VAbstractTool::AttrName
SetPointName<VToolNormal>(value.toString()); SetPointName<VToolNormal>(value.toString());
break; break;
case 22: // VAbstractTool::AttrAngle case 5: // VAbstractTool::AttrAngle
i->setAngle(value.toDouble()); i->setAngle(value.toDouble());
break; break;
case 3: // VAbstractTool::AttrTypeLine case 3: // VAbstractTool::AttrTypeLine
@ -803,7 +803,7 @@ void VToolOptionsPropertyBrowser::ChangeDataToolSpline(VProperty *property)
SCASSERT(i != nullptr); SCASSERT(i != nullptr);
switch (PropertiesList().indexOf(id)) switch (PropertiesList().indexOf(id))
{ {
case 26: // VAbstractTool::AttrKCurve case 25: // VAbstractTool::AttrKCurve
{ {
VSpline spl = i->getSpline(); VSpline spl = i->getSpline();
spl.SetKcurve(value.toDouble()); spl.SetKcurve(value.toDouble());
@ -828,7 +828,7 @@ void VToolOptionsPropertyBrowser::ChangeDataToolSplinePath(VProperty *property)
SCASSERT(i != nullptr); SCASSERT(i != nullptr);
switch (PropertiesList().indexOf(id)) switch (PropertiesList().indexOf(id))
{ {
case 26: // VAbstractTool::AttrKCurve case 25: // VAbstractTool::AttrKCurve
{ {
VSplinePath splPath = i->getSplinePath(); VSplinePath splPath = i->getSplinePath();
splPath.setKCurve(value.toDouble()); splPath.setKCurve(value.toDouble());
@ -1054,7 +1054,7 @@ void VToolOptionsPropertyBrowser::ShowOptionsToolNormal(QGraphicsItem *item)
VDoubleProperty* itemAngle = new VDoubleProperty(tr("Additional angle degrees")); VDoubleProperty* itemAngle = new VDoubleProperty(tr("Additional angle degrees"));
itemAngle->setValue(i->getAngle()); itemAngle->setValue(i->getAngle());
itemAngle->setSetting("Min", 0); itemAngle->setSetting("Min", -360);
itemAngle->setSetting("Max", 360); itemAngle->setSetting("Max", 360);
itemAngle->setSetting("Precision", 3); itemAngle->setSetting("Precision", 3);
AddProperty(itemAngle, VAbstractTool::AttrAngle); AddProperty(itemAngle, VAbstractTool::AttrAngle);
@ -1439,10 +1439,9 @@ QStringList VToolOptionsPropertyBrowser::PropertiesList() const
<< VAbstractTool::AttrP2Line1 /* 19 */ << VAbstractTool::AttrP2Line1 /* 19 */
<< VAbstractTool::AttrP1Line2 /* 20 */ << VAbstractTool::AttrP1Line2 /* 20 */
<< VAbstractTool::AttrP2Line2 /* 21 */ << VAbstractTool::AttrP2Line2 /* 21 */
<< VAbstractTool::AttrAngle /* 22 */ << VAbstractTool::AttrPShoulder /* 22 */
<< VAbstractTool::AttrPShoulder /* 23 */ << VAbstractTool::AttrAxisP1 /* 23 */
<< VAbstractTool::AttrAxisP1 /* 24 */ << VAbstractTool::AttrAxisP2 /* 24 */
<< VAbstractTool::AttrAxisP2 /* 25 */ << VAbstractTool::AttrKCurve; /* 25 */
<< VAbstractTool::AttrKCurve; /* 26 */
return attr; return attr;
} }