From 2e45e0b32df3a0039ac6e70c6f54fdf6b4d71d52 Mon Sep 17 00:00:00 2001 From: spo Date: Wed, 25 Nov 2015 11:11:45 +0300 Subject: [PATCH] Spell-checking --- .../ConnectorPlugin_ExportFeature.py | 2 +- src/Events/Events_Loop.h | 2 +- src/FeaturesPlugin/FeaturesPlugin_Placement.h | 2 +- src/GeomAPI/GeomAPI_Shape.h | 2 +- src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h | 2 +- src/Model/Model_AttributeSelection.cpp | 14 +++++++------- src/Model/Model_AttributeSelection.h | 12 ++++++------ src/Model/Model_AttributeSelectionList.h | 4 ++-- src/Model/Model_Data.cpp | 2 +- src/Model/Model_Document.cpp | 2 +- src/Model/Model_Update.h | 2 +- src/ModelAPI/ModelAPI_AttributeSelection.h | 8 ++++---- src/ModelAPI/ModelAPI_AttributeSelectionList.h | 2 +- src/ModelAPI/ModelAPI_Feature.h | 2 +- 14 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py index 30844b674..b7fe76304 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py @@ -35,7 +35,7 @@ class ExportFeature(ModelAPI.ModelAPI_Feature): def getKind(self): return ExportFeature.ID() - ## This feature is action: has no property pannel and executes immideately. + ## This feature is action: has no property pannel and executes immediately. def isAction(self): return True diff --git a/src/Events/Events_Loop.h b/src/Events/Events_Loop.h index 66ed3070d..5dfcb235d 100644 --- a/src/Events/Events_Loop.h +++ b/src/Events/Events_Loop.h @@ -24,7 +24,7 @@ class Events_MessageGroup; * One per application, initialized on start. Listeners must register in this loop * to get events, called by senders. Sending of events is very fast (just adding to container). * Performing of events is processed in separated thread, so, sender takes - * control back immideately. + * control back immediately. */ class Events_Loop { diff --git a/src/FeaturesPlugin/FeaturesPlugin_Placement.h b/src/FeaturesPlugin/FeaturesPlugin_Placement.h index 498a771b2..895403775 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Placement.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Placement.h @@ -21,7 +21,7 @@ class GeomAPI_Shape; * * Locates the selected placement_attractable_object (face, edge, vertex) of the solid into * the selected placement_base_object. Faces must be planar, edges must be linear. - * Orientation of the placed solid depends on the underlied planes of both faces. + * Orientation of the placed solid depends on the underlying planes of both faces. */ class FeaturesPlugin_Placement : public ModelAPI_Feature { diff --git a/src/GeomAPI/GeomAPI_Shape.h b/src/GeomAPI/GeomAPI_Shape.h index 8f31318d6..aae392cae 100644 --- a/src/GeomAPI/GeomAPI_Shape.h +++ b/src/GeomAPI/GeomAPI_Shape.h @@ -30,7 +30,7 @@ public: GEOMAPI_EXPORT GeomAPI_Shape(); - /// Returns true if the underlied shape is null + /// Returns true if the underlying shape is null GEOMAPI_EXPORT bool isNull() const; diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h b/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h index 5e863f34c..edf7fb950 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h @@ -23,7 +23,7 @@ class GEOMALGOAPI_EXPORT GeomAlgoAPI_CompoundBuilder { public: - /// Creates compund of the given shapes + /// Creates compound of the given shapes /// \param theShapes a list of shapes static std::shared_ptr compound( std::list > theShapes); diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 2353e002f..76bfcb29e 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -61,7 +61,7 @@ using namespace std; #ifdef DEB_NAMING #include #endif -/// adeed to the index in the packed map to signalize that the vertex of edge is seleted +/// Added to the index in the packed map to signalize that the vertex of edge is selected /// (multiplied by the index of the edge) static const int kSTART_VERTEX_DELTA = 1000000; // identifier that there is simple reference: selection equals to context @@ -300,7 +300,7 @@ ResultPtr Model_AttributeSelection::context() { if (aPart.get() && aPart->data() == aResult->data()) { ResultPtr aPartResult = std::dynamic_pointer_cast(aPart); FeaturePtr anOwnerFeature = std::dynamic_pointer_cast(owner()); - // check that this result is not this-feature result (it is forbidden t oselect itself) + // check that this result is not this-feature result (it is forbidden to select itself) if (anOwnerFeature.get() && anOwnerFeature->firstResult() != aPartResult) { return aPartResult; } @@ -320,7 +320,7 @@ void Model_AttributeSelection::setObject(const std::shared_ptr& TDF_LabelMap& Model_AttributeSelection::scope() { if (myScope.IsEmpty()) { // create a new scope if not yet done - // gets all featueres with named shapes that are bofore this feature label (before in history) + // gets all features with named shapes that are before this feature label (before in history) DocumentPtr aMyDoc = owner()->document(); std::list > allFeatures = aMyDoc->allFeatures(); std::list >::iterator aFIter = allFeatures.begin(); @@ -335,7 +335,7 @@ TDF_LabelMap& Model_AttributeSelection::scope() aCompositeOwnerOwner = ModelAPI_Tools::compositeOwner(aCompositeOwner); } } - // for group Scope is not limitet: this is always up to date objects + // for group Scope is not limited: this is always up to date objects bool isGroup = aFeature.get() && aFeature->getKind() == "Group"; for(; aFIter != allFeatures.end(); aFIter++) { if (*aFIter == owner()) { // the left features are created later (except subs of composite) @@ -518,7 +518,7 @@ bool Model_AttributeSelection::update() if (allCurves.IsBound(aCurve)) { aFound++; int anOrient = allCurves.Find(aCurve); - if (anOrient != 0) { // extra comparision score is orientation + if (anOrient != 0) { // extra comparison score is orientation if (edgeOrientation(aFace, anEdge) == anOrient) aSameOrientation++; } @@ -681,7 +681,7 @@ static void registerSubShape(TDF_Label theMainLabel, TopoDS_Shape theShape, aName<<"f"; else if (theOrientation == -1) aName<<"r"; - } else { // make a compisite name from all sub-elements indexes: "1_2_3_4" + } else { // make a composite name from all sub-elements indexes: "1_2_3_4" TColStd_MapIteratorOfPackedMapOfInteger aRef(theRefs->GetMap()); for(; aRef.More(); aRef.Next()) { aName<<"-"<data()->name(); if (!theSubShape.get() || theSubShape->isNull()) {// the whole part shape is selected diff --git a/src/Model/Model_AttributeSelection.h b/src/Model/Model_AttributeSelection.h index 665758341..a987fdf83 100644 --- a/src/Model/Model_AttributeSelection.h +++ b/src/Model/Model_AttributeSelection.h @@ -30,7 +30,7 @@ public: /// \param theContext object where the sub-shape was selected /// \param theSubShape selected sub-shape (if null, the whole context is selected) /// \param theTemporarily if it is true, do not store and name the added in the data framework - /// (used to remove immideately, without the following updates) + /// (used to remove immediately, without the following updates) MODEL_EXPORT virtual void setValue( const ResultPtr& theContext, const std::shared_ptr& theSubShape, const bool theTemporarily = false); @@ -44,27 +44,27 @@ public: /// Sets the feature object MODEL_EXPORT virtual void setObject(const std::shared_ptr& theObject); - /// Updates the underlied selection due to the changes in the referenced objects + /// Updates the underlying selection due to the changes in the referenced objects /// \returns false if update is failed MODEL_EXPORT virtual bool update(); /// Returns a textual string of the selection /// \param theDefaultValue a name, which is returned if the naming name can not be obtained MODEL_EXPORT virtual std::string namingName(const std::string& theDefaultValue = ""); - + /// Returns an Id of the selection /// NOTE: This method has been added for temporary export of groups towards old GEOM /// It should then be removed when a direct use of objects from NewGeom /// will be possible from SMESH module of SALOME. MODEL_EXPORT virtual int Id(); - /// Selects (i.e. creates Naming data structure) of sub-shape specifed by textual name + /// Selects (i.e. creates Naming data structure) of sub-shape specified by textual name MODEL_EXPORT virtual void selectSubShape(const std::string& theType, const std::string& theSubShapeName); /// Returns true if attribute was initialized by some value MODEL_EXPORT virtual bool isInitialized(); - /// Returns true if recomute of selection become impossible + /// Returns true if recompute of selection become impossible MODEL_EXPORT virtual bool isInvalid(); @@ -85,7 +85,7 @@ protected: /// \param theContext the result - owner of the selection /// \param theSubShape selected shape /// \param theUpdate flag that shows that it must be just update, theShape is null - /// \returns true if eveything is selected correctly + /// \returns true if everything is selected correctly virtual bool selectPart( const ResultPtr& theContext, const std::shared_ptr& theSubShape, const bool theUpdate = false); diff --git a/src/Model/Model_AttributeSelectionList.h b/src/Model/Model_AttributeSelectionList.h index 6721dd8ad..a452778a2 100644 --- a/src/Model/Model_AttributeSelectionList.h +++ b/src/Model/Model_AttributeSelectionList.h @@ -30,7 +30,7 @@ public: /// \param theContext object where the sub-shape was selected /// \param theSubShape selected sub-shape (if null, the whole context is selected) /// \param theTemporarily if it is true, do not store and name the added in the data framework - /// (used to remove immideately, without the following updates) + /// (used to remove immediately, without the following updates) MODEL_EXPORT virtual void append( const ResultPtr& theContext, const std::shared_ptr& theSubShape, const bool theTemporarily = false); @@ -42,7 +42,7 @@ public: /// Removes the last element in the list MODEL_EXPORT virtual void removeLast(); - /// Returns the number ofselection attributes in the list + /// Returns the number of selection attributes in the list MODEL_EXPORT virtual int size(); /// The type of all elements selection diff --git a/src/Model/Model_Data.cpp b/src/Model/Model_Data.cpp index ed612e518..eb7f67bab 100644 --- a/src/Model/Model_Data.cpp +++ b/src/Model/Model_Data.cpp @@ -379,7 +379,7 @@ void Model_Data::removeBackReference(AttributePtr theAttr) myRefsToMe.erase(theAttr); - // remove concealment immideately: on deselection it must be posible to reselect in GUI the same + // remove concealment immediately: on deselection it must be posible to reselect in GUI the same FeaturePtr aFeatureOwner = std::dynamic_pointer_cast(theAttr->owner()); if (aFeatureOwner.get() && ModelAPI_Session::get()->validators()->isConcealed(aFeatureOwner->getKind(), theAttr->id())) { diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index d96069a65..e508fbcf1 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -971,7 +971,7 @@ void Model_Document::setCurrentFeature( ModelAPI_EventCreator::get()->sendUpdated(anIter, aRedispEvent /*, false*/); aWasChanged = true; } - // update for everyone the concealment flag immideately: on edit feature in the midle of history + // update for everyone the concealment flag immediately: on edit feature in the midle of history if (aWasChanged) { const std::list >& aResList = anIter->results(); std::list >::const_iterator aRes = aResList.begin(); diff --git a/src/Model/Model_Update.h b/src/Model/Model_Update.h index 2e44ea321..a3eb6352c 100644 --- a/src/Model/Model_Update.h +++ b/src/Model/Model_Update.h @@ -50,7 +50,7 @@ class Model_Update : public Events_Listener std::shared_ptr myMain; /// The currently iterated sub-object of root document std::shared_ptr mySub; - /// If this is true, this iteration must be breaked immideately + /// If this is true, this iteration must be breaked immediately bool myBreaked; /// If this flag is true, the virtual iteration is performed, unbreackable bool myIsVirtual; diff --git a/src/ModelAPI/ModelAPI_AttributeSelection.h b/src/ModelAPI/ModelAPI_AttributeSelection.h index fccb6b018..1af82645e 100644 --- a/src/ModelAPI/ModelAPI_AttributeSelection.h +++ b/src/ModelAPI/ModelAPI_AttributeSelection.h @@ -22,7 +22,7 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute /// \param theContext object where the sub-shape was selected /// \param theSubShape selected sub-shape (if null, the whole context is selected) /// \param theTemporarily if it is true, do not store and name the added in the data framework - /// (used to remove immideately, without the following updates) + /// (used to remove immediately, without the following updates) virtual void setValue( const ResultPtr& theContext, const std::shared_ptr& theSubShape, const bool theTemporarily = false) = 0; @@ -33,7 +33,7 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute /// Returns the context of the selection (the whole shape owner) virtual ResultPtr context() = 0; - /// Updates the underlied selection due to the changes in the referenced objects + /// Updates the underlying selection due to the changes in the referenced objects /// \returns false if update is failed virtual bool update() = 0; @@ -49,7 +49,7 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute /// Returns a textual string of the selection /// \param theDefaultValue a value, which is used if the naming name can not be obtained virtual std::string namingName(const std::string& theDefaultValue = "") = 0; - + /// Returns an id of the selection virtual int Id() = 0; @@ -57,7 +57,7 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute /// Selects sub-shape by the textual Name virtual void selectSubShape(const std::string& theType, const std::string& theSubShapeName) = 0; - /// Returns true if recomute of selection become impossible + /// Returns true if recompute of selection become impossible virtual bool isInvalid() = 0; /// To virtually destroy the fields of successors diff --git a/src/ModelAPI/ModelAPI_AttributeSelectionList.h b/src/ModelAPI/ModelAPI_AttributeSelectionList.h index e2cad1e1f..52eec8ca1 100644 --- a/src/ModelAPI/ModelAPI_AttributeSelectionList.h +++ b/src/ModelAPI/ModelAPI_AttributeSelectionList.h @@ -23,7 +23,7 @@ class ModelAPI_AttributeSelectionList : public ModelAPI_Attribute /// \param theContext object where the sub-shape was selected /// \param theSubShape selected sub-shape (if null, the whole context is selected) /// \param theTemporarily if it is true, do not store and name the added in the data framework - /// (used to remove immideately, without the following updates) + /// (used to remove immediately, without the following updates) virtual void append(const ResultPtr& theContext, const GeomShapePtr& theSubShape, const bool theTemporarily = false) = 0; diff --git a/src/ModelAPI/ModelAPI_Feature.h b/src/ModelAPI/ModelAPI_Feature.h index af55636cb..8a648e7c5 100644 --- a/src/ModelAPI/ModelAPI_Feature.h +++ b/src/ModelAPI/ModelAPI_Feature.h @@ -85,7 +85,7 @@ class ModelAPI_Feature : public ModelAPI_Object const int theIndex); /// removes the result from the feature MODELAPI_EXPORT void removeResult(const std::shared_ptr& theResult); - /// removes all results starting from the gived index (zero-based) + /// removes all results starting from the given index (zero-based) /// \param theSinceIndex - index of the deleted result and all after also will be deleted /// \param theFlush - if it is false, REDISPLAY message is not flushed MODELAPI_EXPORT void removeResults(const int theSinceIndex, const bool theFlush = true); -- 2.39.2