From 8412cb464a1999c43c151182f9f4754767bddc56 Mon Sep 17 00:00:00 2001 From: dismine Date: Mon, 1 Sep 2014 15:53:57 +0300 Subject: [PATCH] Draft. --HG-- branch : feature --- .../widgets/vtooloptionspropertybrowser.cpp | 557 +++++++++++++++--- src/app/widgets/vtooloptionspropertybrowser.h | 53 ++ 2 files changed, 542 insertions(+), 68 deletions(-) diff --git a/src/app/widgets/vtooloptionspropertybrowser.cpp b/src/app/widgets/vtooloptionspropertybrowser.cpp index b3a0c9a32..bd3fda554 100644 --- a/src/app/widgets/vtooloptionspropertybrowser.cpp +++ b/src/app/widgets/vtooloptionspropertybrowser.cpp @@ -67,41 +67,59 @@ void VToolOptionsPropertyBrowser::ShowItemOptions(QGraphicsItem *item) switch (item->type()) { case VToolSinglePoint::Type: - { - VToolSinglePoint *i = qgraphicsitem_cast(item); - TreeView->setTitle(tr("Base point")); - - AddPropertyPointName(i, tr("Point name")); - - VPointFProperty* itemPosition = new VPointFProperty(tr("Position")); - itemPosition->setValue(i->pos()); - AddProperty(itemPosition, QLatin1String("position")); + ShowOptionsToolSinglePoint(item); break; - } case VToolEndLine::Type: - { - VToolEndLine *i = qgraphicsitem_cast(item); - TreeView->setTitle(tr("Point at distance and angle")); - - AddPropertyPointName(i, tr("Point name")); - AddPropertyPointsList(i, tr("Base point"), i->getBasePointId(), VAbstractTool::AttrBasePoint); - AddPropertyLineType(i, tr("Line type")); - AddPropertyFormula(tr("Length"), i->getFormulaLength(), VAbstractTool::AttrLength); - AddPropertyFormula(tr("Angle"), i->getFormulaAngle(), VAbstractTool::AttrAngle); + ShowOptionsToolEndLine(item); break; - } case VToolAlongLine::Type: - { - VToolAlongLine *i = qgraphicsitem_cast(item); - TreeView->setTitle(tr("Point at distance along line")); - - AddPropertyPointName(i, tr("Point name")); - AddPropertyPointsList(i, tr("First point"), i->getBasePointId(), VAbstractTool::AttrFirstPoint); - AddPropertyPointsList(i, tr("Second point"), i->getSecondPointId(), VAbstractTool::AttrSecondPoint); - AddPropertyLineType(i, tr("Line type")); - AddPropertyFormula(tr("Length"), i->getFormulaLength(), VAbstractTool::AttrLength); + ShowOptionsToolAlongLine(item); + break; + case VToolArc::Type: + ShowOptionsToolArc(item); + break; + case VToolBisector::Type: + ShowOptionsToolBisector(item); + break; + case VToolCutArc::Type: + ShowOptionsToolCutArc(item); + break; + case VToolCutSpline::Type: + ShowOptionsToolCutSpline(item); + break; + case VToolCutSplinePath::Type: + ShowOptionsToolCutSplinePath(item); + break; + case VToolHeight::Type: + ShowOptionsToolHeight(item); + break; + case VToolLine::Type: + ShowOptionsToolLine(item); + break; + case VToolLineIntersect::Type: + ShowOptionsToolLineIntersect(item); + break; + case VToolNormal::Type: + ShowOptionsToolNormal(item); + break; + case VToolPointOfContact::Type: + ShowOptionsToolPointOfContact(item); + break; + case VToolPointOfIntersection::Type: + ShowOptionsToolPointOfIntersection(item); + break; + case VToolShoulderPoint::Type: + ShowOptionsToolShoulderPoint(item); + break; + case VToolSpline::Type: + ShowOptionsToolSpline(item); + break; + case VToolSplinePath::Type: + ShowOptionsToolSplinePath(item); + break; + case VToolTriangle::Type: + ShowOptionsToolTriangle(item); break; - } case VGraphicsSimpleTextItem::Type: currentItem = item->parentItem(); ShowItemOptions(currentItem); @@ -126,49 +144,59 @@ void VToolOptionsPropertyBrowser::UpdateOptions() switch (currentItem->type()) { case VToolSinglePoint::Type: - { - VToolSinglePoint *i = qgraphicsitem_cast(currentItem); - idToProperty[VAbstractTool::AttrName]->setValue(i->name()); - idToProperty[QLatin1String("position")]->setValue(i->pos()); + UpdateOptionsToolSinglePoint(); break; - } case VToolEndLine::Type: - { - VToolEndLine *i = qgraphicsitem_cast(currentItem); - idToProperty[VAbstractTool::AttrName]->setValue(i->name()); - idToProperty[VAbstractTool::AttrBasePoint]->setValue(i->getBasePointId()); - - QStringList styles = VAbstractTool::Styles(); - qint32 index = styles.indexOf(i->getLineType()); - idToProperty[VAbstractTool::AttrTypeLine]->setValue(index); - - QVariant valueFormula; - valueFormula.setValue(i->getFormulaLength()); - idToProperty[VAbstractTool::AttrLength]->setValue(valueFormula); - - QVariant valueAngle; - valueAngle.setValue(i->getFormulaAngle()); - idToProperty[VAbstractTool::AttrAngle]->setValue(valueAngle); - + UpdateOptionsToolEndLine(); break; - } case VToolAlongLine::Type: - { - VToolAlongLine *i = qgraphicsitem_cast(currentItem); - idToProperty[VAbstractTool::AttrName]->setValue(i->name()); - idToProperty[VAbstractTool::AttrFirstPoint]->setValue(i->getBasePointId()); - idToProperty[VAbstractTool::AttrSecondPoint]->setValue(i->getSecondPointId()); - - QStringList styles = VAbstractTool::Styles(); - qint32 index = styles.indexOf(i->getLineType()); - idToProperty[VAbstractTool::AttrTypeLine]->setValue(index); - - QVariant valueFormula; - valueFormula.setValue(i->getFormulaLength()); - idToProperty[VAbstractTool::AttrLength]->setValue(valueFormula); - + UpdateOptionsToolAlongLine(); + break; + case VToolArc::Type: + UpdateOptionsToolArc(); + break; + case VToolBisector::Type: + UpdateOptionsToolBisector(); + break; + case VToolCutArc::Type: + UpdateOptionsToolCutArc(); + break; + case VToolCutSpline::Type: + UpdateOptionsToolCutSpline(); + break; + case VToolCutSplinePath::Type: + UpdateOptionsToolCutSplinePath(); + break; + case VToolHeight::Type: + UpdateOptionsToolHeight(); + break; + case VToolLine::Type: + UpdateOptionsToolLine(); + break; + case VToolLineIntersect::Type: + UpdateOptionsToolLineIntersect(); + break; + case VToolNormal::Type: + UpdateOptionsToolNormal(); + break; + case VToolPointOfContact::Type: + UpdateOptionsToolPointOfContact(); + break; + case VToolPointOfIntersection::Type: + UpdateOptionsToolPointOfIntersection(); + break; + case VToolShoulderPoint::Type: + UpdateOptionsToolShoulderPoint(); + break; + case VToolSpline::Type: + UpdateOptionsToolSpline(); + break; + case VToolSplinePath::Type: + UpdateOptionsToolSplinePath(); + break; + case VToolTriangle::Type: + UpdateOptionsToolTriangle(); break; - } case VGraphicsSimpleTextItem::Type: ShowItemOptions(currentItem->parentItem()); break; @@ -212,6 +240,51 @@ void VToolOptionsPropertyBrowser::userChangedData(VProperty *property) case VToolAlongLine::Type: ChangeDataToolAlongLine(prop); break; + case VToolArc::Type: + ChangeDataToolArc(prop); + break; + case VToolBisector::Type: + ChangeDataToolBisector(prop); + break; + case VToolCutArc::Type: + ChangeDataToolCutArc(prop); + break; + case VToolCutSpline::Type: + ChangeDataToolCutSpline(prop); + break; + case VToolCutSplinePath::Type: + ChangeDataToolCutSplinePath(prop); + break; + case VToolHeight::Type: + ChangeDataToolHeight(prop); + break; + case VToolLine::Type: + ChangeDataToolLine(prop); + break; + case VToolLineIntersect::Type: + ChangeDataToolLineIntersect(prop); + break; + case VToolNormal::Type: + ChangeDataToolNormal(prop); + break; + case VToolPointOfContact::Type: + ChangeDataToolPointOfContact(prop); + break; + case VToolPointOfIntersection::Type: + ChangeDataToolPointOfIntersection(prop); + break; + case VToolShoulderPoint::Type: + ChangeDataToolShoulderPoint(prop); + break; + case VToolSpline::Type: + ChangeDataToolSpline(prop); + break; + case VToolSplinePath::Type: + ChangeDataToolSplinePath(prop); + break; + case VToolTriangle::Type: + ChangeDataToolTriangle(prop); + break; default: break; } @@ -407,6 +480,354 @@ void VToolOptionsPropertyBrowser::ChangeDataToolAlongLine(VProperty *property) } } +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolArc(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolBisector(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolCutArc(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolCutSpline(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolCutSplinePath(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolHeight(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolLine(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolLineIntersect(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolNormal(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolPointOfContact(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolPointOfIntersection(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolShoulderPoint(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolSpline(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolSplinePath(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ChangeDataToolTriangle(VProperty *property) +{ + +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolSinglePoint(QGraphicsItem *item) +{ + VToolSinglePoint *i = qgraphicsitem_cast(item); + TreeView->setTitle(tr("Base point")); + + AddPropertyPointName(i, tr("Point name")); + + VPointFProperty* itemPosition = new VPointFProperty(tr("Position")); + itemPosition->setValue(i->pos()); + AddProperty(itemPosition, QLatin1String("position")); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolEndLine(QGraphicsItem *item) +{ + VToolEndLine *i = qgraphicsitem_cast(item); + TreeView->setTitle(tr("Point at distance and angle")); + + AddPropertyPointName(i, tr("Point name")); + AddPropertyPointsList(i, tr("Base point"), i->getBasePointId(), VAbstractTool::AttrBasePoint); + AddPropertyLineType(i, tr("Line type")); + AddPropertyFormula(tr("Length"), i->getFormulaLength(), VAbstractTool::AttrLength); + AddPropertyFormula(tr("Angle"), i->getFormulaAngle(), VAbstractTool::AttrAngle); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolAlongLine(QGraphicsItem *item) +{ + VToolAlongLine *i = qgraphicsitem_cast(item); + TreeView->setTitle(tr("Point at distance along line")); + + AddPropertyPointName(i, tr("Point name")); + AddPropertyPointsList(i, tr("First point"), i->getBasePointId(), VAbstractTool::AttrFirstPoint); + AddPropertyPointsList(i, tr("Second point"), i->getSecondPointId(), VAbstractTool::AttrSecondPoint); + AddPropertyLineType(i, tr("Line type")); + AddPropertyFormula(tr("Length"), i->getFormulaLength(), VAbstractTool::AttrLength); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolArc(QGraphicsItem *item) +{ + VToolArc *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolBisector(QGraphicsItem *item) +{ + VToolBisector *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolCutArc(QGraphicsItem *item) +{ + VToolCutArc *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolCutSpline(QGraphicsItem *item) +{ + VToolCutSpline *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolCutSplinePath(QGraphicsItem *item) +{ + VToolCutSplinePath *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolHeight(QGraphicsItem *item) +{ + VToolHeight *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolLine(QGraphicsItem *item) +{ + VToolLine *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolLineIntersect(QGraphicsItem *item) +{ + VToolLineIntersect *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolNormal(QGraphicsItem *item) +{ + VToolNormal *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolPointOfContact(QGraphicsItem *item) +{ + VToolPointOfContact *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolPointOfIntersection(QGraphicsItem *item) +{ + VToolPointOfIntersection *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolShoulderPoint(QGraphicsItem *item) +{ + VToolShoulderPoint *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolSpline(QGraphicsItem *item) +{ + VToolSpline *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolSplinePath(QGraphicsItem *item) +{ + VToolSplinePath *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::ShowOptionsToolTriangle(QGraphicsItem *item) +{ + VToolTriangle *i = qgraphicsitem_cast(item); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolSinglePoint() +{ + VToolSinglePoint *i = qgraphicsitem_cast(currentItem); + TreeView->setTitle(tr("Base point")); + + AddPropertyPointName(i, tr("Point name")); + + VPointFProperty* itemPosition = new VPointFProperty(tr("Position")); + itemPosition->setValue(i->pos()); + AddProperty(itemPosition, QLatin1String("position")); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolEndLine() +{ + VToolEndLine *i = qgraphicsitem_cast(currentItem); + TreeView->setTitle(tr("Point at distance and angle")); + + AddPropertyPointName(i, tr("Point name")); + AddPropertyPointsList(i, tr("Base point"), i->getBasePointId(), VAbstractTool::AttrBasePoint); + AddPropertyLineType(i, tr("Line type")); + AddPropertyFormula(tr("Length"), i->getFormulaLength(), VAbstractTool::AttrLength); + AddPropertyFormula(tr("Angle"), i->getFormulaAngle(), VAbstractTool::AttrAngle); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolAlongLine() +{ + VToolAlongLine *i = qgraphicsitem_cast(currentItem); + TreeView->setTitle(tr("Point at distance along line")); + + AddPropertyPointName(i, tr("Point name")); + AddPropertyPointsList(i, tr("First point"), i->getBasePointId(), VAbstractTool::AttrFirstPoint); + AddPropertyPointsList(i, tr("Second point"), i->getSecondPointId(), VAbstractTool::AttrSecondPoint); + AddPropertyLineType(i, tr("Line type")); + AddPropertyFormula(tr("Length"), i->getFormulaLength(), VAbstractTool::AttrLength); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolArc() +{ + VToolArc *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolBisector() +{ + VToolBisector *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolCutArc() +{ + VToolCutArc *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolCutSpline() +{ + VToolCutSpline *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolCutSplinePath() +{ + VToolCutSplinePath *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolHeight() +{ + VToolHeight *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolLine() +{ + VToolLine *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolLineIntersect() +{ + VToolLineIntersect *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolNormal() +{ + VToolNormal *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolPointOfContact() +{ + VToolPointOfContact *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolPointOfIntersection() +{ + VToolPointOfIntersection *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolShoulderPoint() +{ + VToolShoulderPoint *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolSpline() +{ + VToolSpline *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolSplinePath() +{ + VToolSplinePath *i = qgraphicsitem_cast(currentItem); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolOptionsPropertyBrowser::UpdateOptionsToolTriangle() +{ + VToolTriangle *i = qgraphicsitem_cast(currentItem); +} + //--------------------------------------------------------------------------------------------------------------------- QStringList VToolOptionsPropertyBrowser::PropertiesList() const { diff --git a/src/app/widgets/vtooloptionspropertybrowser.h b/src/app/widgets/vtooloptionspropertybrowser.h index f66a62d1e..5a6b57e81 100644 --- a/src/app/widgets/vtooloptionspropertybrowser.h +++ b/src/app/widgets/vtooloptionspropertybrowser.h @@ -84,6 +84,59 @@ private: void ChangeDataToolSinglePoint(VProperty *property); void ChangeDataToolEndLine(VProperty *property); void ChangeDataToolAlongLine(VProperty *property); + void ChangeDataToolArc(VProperty *property); + void ChangeDataToolBisector(VProperty *property); + void ChangeDataToolCutArc(VProperty *property); + void ChangeDataToolCutSpline(VProperty *property); + void ChangeDataToolCutSplinePath(VProperty *property); + void ChangeDataToolHeight(VProperty *property); + void ChangeDataToolLine(VProperty *property); + void ChangeDataToolLineIntersect(VProperty *property); + void ChangeDataToolNormal(VProperty *property); + void ChangeDataToolPointOfContact(VProperty *property); + void ChangeDataToolPointOfIntersection(VProperty *property); + void ChangeDataToolShoulderPoint(VProperty *property); + void ChangeDataToolSpline(VProperty *property); + void ChangeDataToolSplinePath(VProperty *property); + void ChangeDataToolTriangle(VProperty *property); + + void ShowOptionsToolSinglePoint(QGraphicsItem *item); + void ShowOptionsToolEndLine(QGraphicsItem *item); + void ShowOptionsToolAlongLine(QGraphicsItem *item); + void ShowOptionsToolArc(QGraphicsItem *item); + void ShowOptionsToolBisector(QGraphicsItem *item); + void ShowOptionsToolCutArc(QGraphicsItem *item); + void ShowOptionsToolCutSpline(QGraphicsItem *item); + void ShowOptionsToolCutSplinePath(QGraphicsItem *item); + void ShowOptionsToolHeight(QGraphicsItem *item); + void ShowOptionsToolLine(QGraphicsItem *item); + void ShowOptionsToolLineIntersect(QGraphicsItem *item); + void ShowOptionsToolNormal(QGraphicsItem *item); + void ShowOptionsToolPointOfContact(QGraphicsItem *item); + void ShowOptionsToolPointOfIntersection(QGraphicsItem *item); + void ShowOptionsToolShoulderPoint(QGraphicsItem *item); + void ShowOptionsToolSpline(QGraphicsItem *item); + void ShowOptionsToolSplinePath(QGraphicsItem *item); + void ShowOptionsToolTriangle(QGraphicsItem *item); + + void UpdateOptionsToolSinglePoint(); + void UpdateOptionsToolEndLine(); + void UpdateOptionsToolAlongLine(); + void UpdateOptionsToolArc(); + void UpdateOptionsToolBisector(); + void UpdateOptionsToolCutArc(); + void UpdateOptionsToolCutSpline(); + void UpdateOptionsToolCutSplinePath(); + void UpdateOptionsToolHeight(); + void UpdateOptionsToolLine(); + void UpdateOptionsToolLineIntersect(); + void UpdateOptionsToolNormal(); + void UpdateOptionsToolPointOfContact(); + void UpdateOptionsToolPointOfIntersection(); + void UpdateOptionsToolShoulderPoint(); + void UpdateOptionsToolSpline(); + void UpdateOptionsToolSplinePath(); + void UpdateOptionsToolTriangle(); }; #endif // VTOOLOPTIONSPROPERTYBROWSER_H