From: spo Date: Tue, 14 Jul 2015 13:15:56 +0000 (+0300) Subject: Spell-checking X-Git-Tag: V_1.3.0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=055d3c94f677cdf74eca05711fe9dcae89035d58;p=modules%2Fshaper.git Spell-checking --- diff --git a/src/Config/Config_FeatureReader.h b/src/Config/Config_FeatureReader.h index a0952ec1b..409af6c7e 100644 --- a/src/Config/Config_FeatureReader.h +++ b/src/Config/Config_FeatureReader.h @@ -39,7 +39,7 @@ class Config_FeatureReader : public Config_XMLReader /// Overloaded method. Defines how to process each node virtual void processNode(xmlNodePtr aNode); - /// Overloaded method. Clears attribute cache on extit from attribute's node + /// Overloaded method. Clears attribute cache on exit from attribute's node virtual void cleanup(xmlNodePtr aNode); /// Overloaded method. Defines if the given node should be parsed recursively diff --git a/src/Events/Events_Message.h b/src/Events/Events_Message.h index 40027344a..c55149ff2 100644 --- a/src/Events/Events_Message.h +++ b/src/Events/Events_Message.h @@ -14,9 +14,9 @@ * \brief Identifier of the event kind. * * Each event ID is created in main Envent_Loop class - * that stores correspondance between the string-name of the + * that stores correspondence between the string-name of the * identifier and the pointer to the static string that is really - * used as an identifier (this is usefull for debugging of the events + * used as an identifier (this is useful for debugging of the events * with log files and in debugger). */ class EVENTS_EXPORT Events_ID diff --git a/src/Model/Model_Data.cpp b/src/Model/Model_Data.cpp index 2f1eb6f95..dd2f83130 100644 --- a/src/Model/Model_Data.cpp +++ b/src/Model/Model_Data.cpp @@ -119,7 +119,7 @@ AttributePtr Model_Data::addAttribute(const std::string& theID, const std::strin } else if (theAttrType == ModelAPI_AttributeIntArray::typeId()) { anAttr = new Model_AttributeIntArray(anAttrLab); } - // create also GeomData attributes here because only here the OCAF strucure is known + // create also GeomData attributes here because only here the OCAF structure is known else if (theAttrType == GeomData_Point::typeId()) { anAttr = new GeomData_Point(anAttrLab); } else if (theAttrType == GeomData_Dir::typeId()) { diff --git a/src/Model/Model_Document.h b/src/Model/Model_Document.h index 9dff1f2cf..997765a85 100644 --- a/src/Model/Model_Document.h +++ b/src/Model/Model_Document.h @@ -110,7 +110,7 @@ class Model_Document : public ModelAPI_Document //! Internal sub-document by ID MODEL_EXPORT virtual std::shared_ptr subDoc(std::string theDocID); - ///! Returns the id of hte document + ///! Returns the id of the document MODEL_EXPORT virtual const std::string& id() const { return myID; diff --git a/src/Model/Model_Objects.h b/src/Model/Model_Objects.h index ec81a9f6a..a78ac9418 100644 --- a/src/Model/Model_Objects.h +++ b/src/Model/Model_Objects.h @@ -94,7 +94,7 @@ class Model_Objects //! Returns the feature by zero-based index: features in the history or not std::shared_ptr internalFeature(const int theIndex); - /// Creates a construction cresults + /// Creates a construction results std::shared_ptr createConstruction( const std::shared_ptr& theFeatureData, const int theIndex = 0); /// Creates a body results diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 0083fede8..8dce5e1ca 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -108,7 +108,7 @@ void Model_Update::processEvent(const std::shared_ptr& theMessag } #endif } - // this event is for solver update, not here, do not react immideately + // this event is for solver update, not here, do not react immediately if (!isOnlyResults && !(theMessage->eventID() == kMovedEvent)) processOperation(false); } else if (theMessage->eventID() == kOpFinishEvent || theMessage->eventID() == kOpAbortEvent || @@ -348,7 +348,7 @@ ModelAPI_ExecState stateByReference(ObjectPtr theTarget, const ModelAPI_ExecStat void Model_Update::updateArguments(FeaturePtr theFeature) { // perform this method also for disabled features: to make "not done" state for - // featuers referenced to the active and modified features + // features referenced to the active and modified features static ModelAPI_ValidatorsFactory* aFactory = ModelAPI_Session::get()->validators(); diff --git a/src/ModelAPI/ModelAPI_AttributeSelectionList.h b/src/ModelAPI/ModelAPI_AttributeSelectionList.h index 170efc09a..7994c37a6 100644 --- a/src/ModelAPI/ModelAPI_AttributeSelectionList.h +++ b/src/ModelAPI/ModelAPI_AttributeSelectionList.h @@ -27,7 +27,7 @@ class ModelAPI_AttributeSelectionList : public ModelAPI_Attribute /// The type of shape is taken from the current selection type virtual void append(std::string theNamingName) = 0; - /// Returns the number ofselection attributes in the list + /// Returns the number of selection attributes in the list virtual int size() = 0; /// The type of all elements selection diff --git a/src/ModelAPI/ModelAPI_Data.h b/src/ModelAPI/ModelAPI_Data.h index dfc6ee32a..d06d7c100 100644 --- a/src/ModelAPI/ModelAPI_Data.h +++ b/src/ModelAPI/ModelAPI_Data.h @@ -141,7 +141,7 @@ class MODELAPI_EXPORT ModelAPI_Data virtual void referencesToObjects( std::list > > >& theRefs) =0; - /// Copies all atributes content into theTarget data + /// Copies all attributes content into theTarget data virtual void copyTo(std::shared_ptr theTarget) = 0; /// Returns the invalid data pointer (to avoid working with NULL shared ptrs in swig) diff --git a/src/ModelAPI/ModelAPI_Events.h b/src/ModelAPI/ModelAPI_Events.h index bcb50be1e..eb64dc19e 100644 --- a/src/ModelAPI/ModelAPI_Events.h +++ b/src/ModelAPI/ModelAPI_Events.h @@ -180,7 +180,7 @@ class ModelAPI_AttributeEvalMessage : public Events_Message return anId; } - /// usefull method that creates and sends the AttributeEvalMessage event + /// Useful method that creates and sends the AttributeEvalMessage event MODELAPI_EXPORT static void send(AttributePtr theAttribute, const void* theSender) { std::shared_ptr aMessage = diff --git a/src/ModelAPI/ModelAPI_Result.h b/src/ModelAPI/ModelAPI_Result.h index 7922612c6..97359e5ad 100644 --- a/src/ModelAPI/ModelAPI_Result.h +++ b/src/ModelAPI/ModelAPI_Result.h @@ -52,7 +52,7 @@ class ModelAPI_Result : public ModelAPI_Object /// Returns the result is disabled or not. MODELAPI_EXPORT virtual bool isDisabled() const; - // Retuns the parameters of color definition in the resources config manager + // Returns the parameters of color definition in the resources config manager virtual void colorConfigInfo(std::string& theSection, std::string& theName, std::string& theDefault) {} diff --git a/src/ModelAPI/ModelAPI_Session.h b/src/ModelAPI/ModelAPI_Session.h index fe78aebf3..2f778aa2e 100644 --- a/src/ModelAPI/ModelAPI_Session.h +++ b/src/ModelAPI/ModelAPI_Session.h @@ -44,7 +44,7 @@ class MODELAPI_EXPORT ModelAPI_Session //! Closes all documents virtual void closeAll() = 0; - //! Starts a new operation (opens a tansaction) + //! Starts a new operation (opens a transaction) //! \param theId of operation for history (optional) //! \param theAttachedToNested if it is true, it means that this transaction is attached to the nested //! where it is located and will be commited on the next commit with the nested diff --git a/src/ModuleBase/ModuleBase_IWorkshop.h b/src/ModuleBase/ModuleBase_IWorkshop.h index a4f4afc28..c148fafc7 100644 --- a/src/ModuleBase/ModuleBase_IWorkshop.h +++ b/src/ModuleBase/ModuleBase_IWorkshop.h @@ -26,7 +26,7 @@ class ModuleBase_FilterFactory; /** * \ingroup GUI - * Class which provides access to Workshop object serveces + * Class which provides access to Workshop object services */ class MODULEBASE_EXPORT ModuleBase_IWorkshop : public QObject { @@ -74,7 +74,7 @@ Q_OBJECT //! Returns true if the operation with id theId can be started virtual bool canStartOperation(QString theId) = 0; - //! Returns AIS opbject by data object + //! Returns AIS object by data object virtual AISObjectPtr findPresentation(const ObjectPtr& theObject) const = 0; //! Returns data object by AIS @@ -85,7 +85,7 @@ Q_OBJECT virtual void setSelected(const QList& theValues) = 0; signals: - /// Signal selection chaged. + /// Signal selection changed. void selectionChanged(); /// Signal which is emited after activation of property panel diff --git a/src/ModuleBase/ModuleBase_ModelWidget.h b/src/ModuleBase/ModuleBase_ModelWidget.h index 4926a1e81..031c5dd42 100644 --- a/src/ModuleBase/ModuleBase_ModelWidget.h +++ b/src/ModuleBase/ModuleBase_ModelWidget.h @@ -35,7 +35,7 @@ Q_OBJECT public: /// Constructor /// \param theParent the parent object - /// \param theData the widget configuation. The attribute of the model widget is obtained from + /// \param theData the widget configuration. The attribute of the model widget is obtained from /// \param theParentId is Id of a parent of the current attribute ModuleBase_ModelWidget(QWidget* theParent, const Config_WidgetAPI* theData, const std::string& theParentId); @@ -98,10 +98,10 @@ Q_OBJECT /// \return the state whether the widget can accept the focus virtual bool focusTo(); - /// The methiod called when widget is activated + /// The method called when widget is activated void activate(); - /// The methiod called when widget is deactivated + /// The method called when widget is deactivated virtual void deactivate() {} /// Returns list of widget controls @@ -177,7 +177,7 @@ signals: void focusOutWidget(ModuleBase_ModelWidget* theWidget); protected: - /// Sets default value of widget. Nornaly, widget should fetch this value + /// Sets default value of widget. Normally, widget should fetch this value /// from the xml. However, some widgets derived widgets could define it void setDefaultValue(const std::string& theValue); /// \brief Set the attribute name @@ -195,7 +195,7 @@ signals: /// \return True in success virtual bool storeValueCustom() const = 0; - /// The methiod called when widget is activated + /// The method called when widget is activated virtual void activateCustom() {}; protected slots: diff --git a/src/ModuleBase/ModuleBase_WidgetFileSelector.h b/src/ModuleBase/ModuleBase_WidgetFileSelector.h index ae2d0daa7..8b5987fa0 100644 --- a/src/ModuleBase/ModuleBase_WidgetFileSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetFileSelector.h @@ -33,6 +33,9 @@ class QLineEdit; * * * \endcode +* It can use following parameters: +* - id - name of object attribute +* - type - type of dialog. Possible values: open, save. */ class MODULEBASE_EXPORT ModuleBase_WidgetFileSelector : public ModuleBase_ModelWidget { @@ -40,7 +43,7 @@ class MODULEBASE_EXPORT ModuleBase_WidgetFileSelector : public ModuleBase_ModelW public: /// Constructor /// \param theParent the parent object - /// \param theData the widget configuation. The attribute of the model widget is obtained from + /// \param theData the widget configuration. The attribute of the model widget is obtained from /// \param theParentId is Id of a parent of the current attribute ModuleBase_WidgetFileSelector(QWidget* theParent, const Config_WidgetAPI* theData, diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index 770882294..a0e85e14c 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -51,7 +51,7 @@ ModuleBase_WidgetMultiSelector::ModuleBase_WidgetMultiSelector(QWidget* theParen aMainLay->addWidget(aTypeLabel, 0, 0); myTypeCombo = new QComboBox(this); - // There is no sence to paramerize list of types while we can not parametrize selection mode + // There is no sense to parameterize list of types while we can not parameterize selection mode std::string aPropertyTypes = theData->getProperty("type_choice"); QString aTypesStr = aPropertyTypes.c_str(); diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.h b/src/ModuleBase/ModuleBase_WidgetMultiSelector.h index 2fed320e4..11f9023a4 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.h @@ -43,7 +43,7 @@ class QAction; * tooltip="Select a set of objects" * type_choice="Vertices Edges Faces Solids" /> * \endcode -* It uses folloing parameters: +* It uses following parameters: * - id - is a name of corresponded attribute * - tooltip - a tooltip for the widget * - type_choice - list of expected shape types. @@ -55,7 +55,7 @@ class MODULEBASE_EXPORT ModuleBase_WidgetMultiSelector : public ModuleBase_Widge /// Constructor /// \param theParent the parent object /// \param theWorkshop instance of workshop interface - /// \param theData the widget configuation. The attribute of the model widget is obtained from + /// \param theData the widget configuration. The attribute of the model widget is obtained from /// \param theParentId is Id of a parent of the current attribute ModuleBase_WidgetMultiSelector(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop, diff --git a/src/ModuleBase/ModuleBase_WidgetSwitch.h b/src/ModuleBase/ModuleBase_WidgetSwitch.h index aafb6224f..fe89a0749 100644 --- a/src/ModuleBase/ModuleBase_WidgetSwitch.h +++ b/src/ModuleBase/ModuleBase_WidgetSwitch.h @@ -18,7 +18,7 @@ class QStackedLayout; /** * \ingroup GUI -* Implements a model widget for swithch as a container widget. It can be defined in XML with "switch" keyword +* Implements a model widget for switch as a container widget. It can be defined in XML with "switch" keyword */ class MODULEBASE_EXPORT ModuleBase_WidgetSwitch : public ModuleBase_PagedContainer { diff --git a/src/PartSet/PartSet_WidgetEditor.h b/src/PartSet/PartSet_WidgetEditor.h index a4f611146..3536ebfaf 100644 --- a/src/PartSet/PartSet_WidgetEditor.h +++ b/src/PartSet/PartSet_WidgetEditor.h @@ -16,7 +16,7 @@ class ModuleBase_IWorkshop; /** * \ingroup Modules -* Customosation of ModuleBase_WidgetEditor in order to do not show the editor value if the mouse +* Customization of ModuleBase_WidgetEditor in order to do not show the editor value if the mouse * cursor is not over the OCC window */ class PARTSET_EXPORT PartSet_WidgetEditor : public ModuleBase_WidgetEditor @@ -26,7 +26,7 @@ Q_OBJECT /// Constructor /// \param theParent the parent object /// \param theWorkshop instance of workshop interface - /// \param theData the widget configuation. The attribute of the model widget is obtained from + /// \param theData the widget configuration. The attribute of the model widget is obtained from /// \param theParentId is Id of a parent of the current attribute PartSet_WidgetEditor(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop, const Config_WidgetAPI* theData, const std::string& theParentId); @@ -42,4 +42,4 @@ private: ModuleBase_IWorkshop* myWorkshop; // the current workshop }; -#endif \ No newline at end of file +#endif