Show three base planes (XY, YZ, XZ) at the beginning of the feature tree and allow to create sketches on them

This commit is contained in:
jrheinlaender
2013-04-01 20:36:41 +04:30
committed by Stefan Tröger
parent 7dee0b7018
commit 417576d5eb
6 changed files with 167 additions and 102 deletions

View File

@@ -47,6 +47,7 @@ const QString FeaturePickDialog::getFeatureStatusString(const featureStatus st)
case noWire: return tr("No wire in sketch");
case isUsed: return tr("Sketch already used by other feature");
case otherBody: return tr("Sketch belongs to another Body feature");
case basePlane: return tr("Base plane");
}
return tr("");
@@ -104,6 +105,7 @@ void FeaturePickDialog::updateList()
case noWire: item->setFlags(Qt::NoItemFlags); break;
case isUsed: item->setFlags(ui->checkOtherFeature->isChecked() ? Qt::ItemIsSelectable | Qt::ItemIsEnabled : Qt::NoItemFlags); break;
case otherBody: item->setFlags(ui->checkOtherBody->isChecked() ? Qt::ItemIsSelectable | Qt::ItemIsEnabled : Qt::NoItemFlags); break;
case basePlane: item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled); break;
}
index++;