/**\class Model_AttributeRefList
* \ingroup DataModel
* \brief Attribute that contains list of references to features (located in the same document).
- * For the current moment it does not support references t oobjects in other documents.
+ * For the current moment it does not support references to objects in other documents.
*/
class Model_AttributeRefList : public ModelAPI_AttributeRefList
/// Substitutes the feature by another one. Does nothing if such object is not found.
MODEL_EXPORT virtual void substitute(const ObjectPtr& theCurrent, const ObjectPtr& theNew);
- /// Substitutes the object by another one and back. So, features wil become exchanged in the list
+ /// Substitutes the object by another one and back. So, features will become exchanged in the list
MODEL_EXPORT virtual void exchange(const ObjectPtr& theObject1, const ObjectPtr& theObject2);
/// Removes the last element in the list.
}
std::list<std::pair<ResultPtr, bool> >::iterator aCIter = aConcealed.begin();
for(; aCIter != aConcealed.end(); aCIter++) {
- if (aCIter->first->isConcealed() != aCIter->second) { // somethign is changed => produce event
+ if (aCIter->first->isConcealed() != aCIter->second) { // something is changed => produce event
if (aCIter->second) { // was concealed become not => creation event
static Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_CREATED);
ModelAPI_EventCreator::get()->sendUpdated(aCIter->first, anEvent);
/// Returns true if object must be displayed in the viewer: flag is stored in the
/// data model, so on undo/redo, open/save or recreation of object by history-playing it keeps
- /// the original state i nthe current transaction.
+ /// the original state in the current transaction.
MODELAPI_EXPORT virtual bool isDisplayed();
/// Sets the displayed/hidden state of the object. If it is changed, sends the "redisplay"
/// Enables/disables the result. The disabled result does not participate in any calculation
/// and visualization: like it was removed. But it keeps the general parameters: colors,
/// visibility, etc.
- /// \param theThis pointer to this object, needed to generate all events if it is neccessary
+ /// \param theThis pointer to this object, needed to generate all events if it is necessary
/// \param theFlag makes disabled if it is true
/// \returns true if state is really changed
MODELAPI_EXPORT virtual bool setDisabled(std::shared_ptr<ModelAPI_Result> theThis,