Misc. Typos
This commit is contained in:
@@ -70,7 +70,7 @@ public:
|
||||
/**
|
||||
* Verifies the linked Profile and returns it if it is a valid 2D object
|
||||
* @param silent if profile property is malformed and the parameter is true
|
||||
* silently returns nullptr, otherwice throw a Base::Exception.
|
||||
* silently returns nullptr, otherwise throw a Base::Exception.
|
||||
* Default is false.
|
||||
*/
|
||||
Part::Part2DObject* getVerifiedSketch(bool silent=false) const;
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
/**
|
||||
* Verifies the linked Profile and returns it if it is a valid object
|
||||
* @param silent if profile property is malformed and the parameter is true
|
||||
* silently returns nullptr, otherwice throw a Base::Exception.
|
||||
* silently returns nullptr, otherwise throw a Base::Exception.
|
||||
* Default is false.
|
||||
*/
|
||||
Part::Feature* getVerifiedObject(bool silent=false) const;
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
/**
|
||||
* Verifies the linked Object and returns the shape used as profile
|
||||
* @param silent if profirle property is malformed and the parameter is true
|
||||
* silently returns nullptr, otherwice throw a Base::Exception.
|
||||
* silently returns nullptr, otherwise throw a Base::Exception.
|
||||
* Default is false.
|
||||
*/
|
||||
TopoDS_Shape getVerifiedFace(bool silent = false) const;
|
||||
|
||||
@@ -348,7 +348,7 @@ void CmdPartDesignMigrate::activated(int iMsg)
|
||||
std::set<PartDesign::Feature*> migrateFeatures;
|
||||
|
||||
|
||||
// Retrive all PartDesign Features objects and filter out features already belongs to some body
|
||||
// Retrieve all PartDesign Features objects and filter out features already belonging to some body
|
||||
for ( const auto & feat: doc->getObjects( ) ) {
|
||||
if( feat->isDerivedFrom( PartDesign::Feature::getClassTypeId() ) &&
|
||||
!PartDesign::Body::findBodyOf( feat ) && PartDesign::Body::isSolidFeature ( feat ) ) {
|
||||
@@ -414,8 +414,8 @@ void CmdPartDesignMigrate::activated(int iMsg)
|
||||
if ( std::next ( baseFeatIt ) == chainIt->end() ) {
|
||||
// just append our chain to already found
|
||||
chainIt->splice ( chainIt->end(), chain );
|
||||
// TODO If we will hit a third part everything will be messed up again.
|
||||
// Probably it will require a yet another smart-ass find_if. (2015-08-10, Fat-Zer)
|
||||
// TODO: If we will hit a third part everything will be messed up again.
|
||||
// Probably it will require a yet another smart-ass find_if. (2015-08-10, Fat-Zer)
|
||||
} else {
|
||||
// We have a fork of a partDesign feature here
|
||||
// add a chain for current body
|
||||
@@ -430,7 +430,7 @@ void CmdPartDesignMigrate::activated(int iMsg)
|
||||
// The feature is not present in list pending for migration,
|
||||
// This generally shouldn't happen but may be if we run into some broken file
|
||||
// Try to find out the body we should insert into
|
||||
// TODO Some error/warning is needed here (2015-08-10, Fat-Zer)
|
||||
// TODO: Some error/warning is needed here (2015-08-10, Fat-Zer)
|
||||
auto newChainIt = featureChains.emplace (featureChains.end());
|
||||
newChainIt->splice (newChainIt->end(), chain);
|
||||
}
|
||||
@@ -438,10 +438,10 @@ void CmdPartDesignMigrate::activated(int iMsg)
|
||||
}
|
||||
migrateFeatures.erase ( featIt );
|
||||
featIt = migrateFeatures.begin ();
|
||||
// TODO Align visibility (2015-08-17, Fat-Zer)
|
||||
// TODO: Align visibility (2015-08-17, Fat-Zer)
|
||||
} /* for */
|
||||
|
||||
// TODO make it work without parts (2015-09-04, Fat-Zer)
|
||||
// TODO: make it work without parts (2015-09-04, Fat-Zer)
|
||||
// add a part if there is no active yet
|
||||
App::Part *actPart = PartDesignGui::assertActivePart ();
|
||||
|
||||
@@ -518,7 +518,7 @@ void CmdPartDesignMigrate::activated(int iMsg)
|
||||
arg(QString::fromUtf8(sketch->Label.getValue()) ) );
|
||||
}
|
||||
} else {
|
||||
// TODO Message that sketchbased is based not on a sketch (2015-08-11, Fat-Zer)
|
||||
// TODO: Message that sketchbased is based not on a sketch (2015-08-11, Fat-Zer)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -922,8 +922,8 @@ void CmdPartDesignMoveFeatureInTree::activated(int iMsg)
|
||||
}
|
||||
|
||||
// Remove and re-insert the feature to/from the Body
|
||||
// TODO if tip was moved the new position of tip is quite undetermined (2015-08-07, Fat-Zer)
|
||||
// TODO warn the user if we are moving an object to some place before the object's link (2015-08-07, Fat-Zer)
|
||||
// TODO: if tip was moved the new position of tip is quite undetermined (2015-08-07, Fat-Zer)
|
||||
// TODO: warn the user if we are moving an object to some place before the object's link (2015-08-07, Fat-Zer)
|
||||
doCommand ( Doc,"App.activeDocument().%s.removeObject(App.activeDocument().%s)",
|
||||
body->getNameInDocument(), feat->getNameInDocument() );
|
||||
doCommand ( Doc, "App.activeDocument().%s.insertObject(App.activeDocument().%s, %s, True)",
|
||||
|
||||
@@ -69,7 +69,7 @@ void ViewProviderDatumPlane::attach ( App::DocumentObject *obj ) {
|
||||
getShapeRoot ()->addChild(lineSet);
|
||||
|
||||
PartGui::SoBrepFaceSet *faceSet = new PartGui::SoBrepFaceSet();
|
||||
// SoBrepFaceSet supports only triangles (otherwice we recive incorrect highlighting
|
||||
// SoBrepFaceSet supports only triangles (otherwise we receive incorrect highlighting)
|
||||
faceSet->partIndex.set1Value(0, 2); // One face, two triangles
|
||||
faceSet->coordIndex.setNum(8);
|
||||
// first triangle
|
||||
|
||||
@@ -167,7 +167,7 @@ Workflow WorkflowManager::determinWorkflow( App::Document *doc) {
|
||||
msgBox.addButton ( QMessageBox::No );
|
||||
}
|
||||
msgBox.setDefaultButton ( yesBtn );
|
||||
// TODO Add some description of manual migration mode (2015-08-09, Fat-Zer)
|
||||
// TODO: Add some description of manual migration mode (2015-08-09, Fat-Zer)
|
||||
|
||||
msgBox.exec();
|
||||
|
||||
@@ -192,7 +192,7 @@ void WorkflowManager::forceWorkflow( const App::Document *doc, Workflow wf) {
|
||||
}
|
||||
|
||||
Workflow WorkflowManager::guessWorkflow(const App::Document *doc) {
|
||||
// Retrive bodies of the document
|
||||
// Retrieve bodies of the document
|
||||
auto features = doc->getObjectsOfType( PartDesign::Feature::getClassTypeId() );
|
||||
|
||||
if( features.empty() ) {
|
||||
@@ -212,7 +212,7 @@ Workflow WorkflowManager::guessWorkflow(const App::Document *doc) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// if there are features not belonging to any body itmeans that migration was incomplete, otherwice it's Modern
|
||||
// if there are features not belonging to any body it means that migration was incomplete, otherwise it's Modern
|
||||
return features_without_bodies ? Workflow::Undetermined : Workflow::Modern;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user