Fixed bug. Operation tools did not obey tool selection type.
--HG-- branch : develop
This commit is contained in:
parent
0941b018fd
commit
d84fd78a38
|
@ -340,6 +340,23 @@ void VAbstractOperation::AllowElArcSelecting(bool enabled)
|
||||||
AllowCurveSelecting(enabled, GOType::EllipticalArc);
|
AllowCurveSelecting(enabled, GOType::EllipticalArc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void VAbstractOperation::ToolSelectionType(const SelectionType &type)
|
||||||
|
{
|
||||||
|
VAbstractTool::ToolSelectionType(type);
|
||||||
|
QMapIterator<quint32, VAbstractSimple *> i(operatedObjects);
|
||||||
|
while (i.hasNext())
|
||||||
|
{
|
||||||
|
i.next();
|
||||||
|
if (i.value()->GetType() == GOType::Point)
|
||||||
|
{
|
||||||
|
VSimplePoint *item = qobject_cast<VSimplePoint *>(i.value());
|
||||||
|
SCASSERT(item != nullptr)
|
||||||
|
item->ToolSelectionType(selectionType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VAbstractOperation::Disable(bool disable, const QString &namePP)
|
void VAbstractOperation::Disable(bool disable, const QString &namePP)
|
||||||
{
|
{
|
||||||
|
|
|
@ -102,6 +102,7 @@ public slots:
|
||||||
void AllowElArcHover(bool enabled);
|
void AllowElArcHover(bool enabled);
|
||||||
void AllowElArcSelecting(bool enabled);
|
void AllowElArcSelecting(bool enabled);
|
||||||
|
|
||||||
|
virtual void ToolSelectionType(const SelectionType &type);
|
||||||
virtual void Disable(bool disable, const QString &namePP) Q_DECL_OVERRIDE;
|
virtual void Disable(bool disable, const QString &namePP) Q_DECL_OVERRIDE;
|
||||||
void ObjectSelected(bool selected, quint32 objId);
|
void ObjectSelected(bool selected, quint32 objId);
|
||||||
void DeleteFromLabel();
|
void DeleteFromLabel();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user