From 00723dd126808540b3344d8909732ca6106c08ce Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 28 Nov 2017 14:35:43 +0300 Subject: [PATCH] typo-fix by Kunda http://www.salome-platform.org/forum/forum_9/74205286 --- README | 2 +- doc/dev/sphinx/medcalc-develguide.rst | 6 +++--- doc/dev/sphinx/medcalc-userguide-api.rst | 2 +- src/MEDCalc/cmp/MEDDataManager_i.cxx | 26 ++++++++++++------------ src/MEDCalc/tui/medevents.py | 2 +- src/MEDGUI/MEDGUIFileContentDial.cxx | 8 ++++---- src/MEDGUI/MEDGUIFileContentDial.h | 6 +++--- 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/README b/README index 28f828b51..410977a67 100644 --- a/README +++ b/README @@ -31,7 +31,7 @@ should be done for the get/set field classes methods: parameter; - the getValueI (resp. setValueI) should be replaced by getRow(int ) (resp. setRow(int ,T*) if the field is in full interlacing mode (using the - method getInterlacingType() of the classe FIELD_). If the field is stored in + method getInterlacingType() of the class FIELD_). If the field is stored in no interlacing mode getValueIJ (resp. setValueIJ) should be replaced by getColumn(int ) (resp. setColumn(int ,T*)). diff --git a/doc/dev/sphinx/medcalc-develguide.rst b/doc/dev/sphinx/medcalc-develguide.rst index 1984584f8..1dd6107ea 100644 --- a/doc/dev/sphinx/medcalc-develguide.rst +++ b/doc/dev/sphinx/medcalc-develguide.rst @@ -185,9 +185,9 @@ Ecrire un service CORBA qui retourne une structure CORBA: _fieldHandlerMap[fieldHandler->id] = fieldHandler; // >>> WARNING: CORBA struct specification indicates that the - // assignement acts as a desctructor for the structure that is - // pointed to. The values of the fields are copy first in the new - // structure that receives the assignement and finally the initial + // assignment acts as a destructor for the structure that its + // pointed to. The values of the fields are copied first in the new + // structure that receives the assignment and finally the initial // structure is destroyed. In the present case, WE WANT to keep // the initial fieldHandler in the map. We must then make a deep // copy of the structure found in the map and return the copy. The diff --git a/doc/dev/sphinx/medcalc-userguide-api.rst b/doc/dev/sphinx/medcalc-userguide-api.rst index 35403edd6..a15fff8d3 100644 --- a/doc/dev/sphinx/medcalc-userguide-api.rst +++ b/doc/dev/sphinx/medcalc-userguide-api.rst @@ -42,7 +42,7 @@ installed together with this module by the installation process of SALOME. Nevertheless, it is possible for low-weight deployment to install only the MEDMEM library from the source files embedded in the SALOME MED module. Keep in mind that the MEDMEM library is designed to -be a self-consistent library with very few third party softwares (only +be a self-consistent library with very few third party software (only med-file, glibc and mpi typically). In particular, it is strictly independent from the SALOME framework even if it distributed with SALOME for convenience reasons. diff --git a/src/MEDCalc/cmp/MEDDataManager_i.cxx b/src/MEDCalc/cmp/MEDDataManager_i.cxx index bd9b60c54..5a7b01737 100644 --- a/src/MEDCalc/cmp/MEDDataManager_i.cxx +++ b/src/MEDCalc/cmp/MEDDataManager_i.cxx @@ -153,7 +153,7 @@ MEDCALC::DatasourceHandler * MEDDataManager_i::loadDatasource(const char *filepa // As a consequence, before loading values of a field, we have // to determine the types of spatial discretization defined for - // this field and to chooose one. + // this field and to choose one. vector listOfTypes = GetTypesOfField(filepath, meshName, @@ -269,12 +269,12 @@ MEDCALC::MeshHandler * MEDDataManager_i::getMeshHandler(CORBA::Long meshId) { /*! * This function returns the list of mesh handlers associated to the - * specified datasource. It corresponds to the list ofmeshes defined + * specified datasource. It corresponds to the list of meshes defined * in the datasource. */ MEDCALC::MeshHandlerList * MEDDataManager_i::getMeshHandlerList(CORBA::Long datasourceId) { - // We initiate a list with the maximum lentgh + // We initiate a list with the maximum length MEDCALC::MeshHandlerList_var meshHandlerList = new MEDCALC::MeshHandlerList(); meshHandlerList->length(_meshHandlerMap.size()); @@ -298,7 +298,7 @@ MEDCALC::MeshHandlerList * MEDDataManager_i::getMeshHandlerList(CORBA::Long data * specified mesh. */ MEDCALC::FieldseriesHandlerList * MEDDataManager_i::getFieldseriesListOnMesh(CORBA::Long meshId) { - // We initiate a list with the maximum lentgh + // We initiate a list with the maximum length MEDCALC::FieldseriesHandlerList_var fieldseriesHandlerList = new MEDCALC::FieldseriesHandlerList(); fieldseriesHandlerList->length(_fieldseriesHandlerMap.size()); @@ -324,7 +324,7 @@ MEDCALC::FieldseriesHandlerList * MEDDataManager_i::getFieldseriesListOnMesh(COR */ MEDCALC::FieldHandlerList * MEDDataManager_i::getFieldListInFieldseries(CORBA::Long fieldseriesId) { - // We initiate a list with the maximum lentgh + // We initiate a list with the maximum length MEDCALC::FieldHandlerList_var fieldHandlerList = new MEDCALC::FieldHandlerList(); fieldHandlerList->length(_fieldHandlerMap.size()); @@ -369,9 +369,9 @@ MEDCALC::FieldHandler * MEDDataManager_i::getFieldHandler(CORBA::Long fieldHandl FieldHandlerMapIterator fieldIt = _fieldHandlerMap.find(fieldHandlerId); if ( fieldIt != _fieldHandlerMap.end() ) { // >>> WARNING: CORBA struct specification indicates that the - // assignement acts as a desctructor for the structure that is - // pointed to. The values of the fields are copy first in the new - // structure that receives the assignement and finally the initial + // assignment acts as a destructor for the structure that its + // pointed to. The values of the fields are copied first in the new + // structure that receives the assignment and finally the initial // structure is destroyed. In the present case, WE WANT to keep // the initial fieldHandler in the map. We must then make a deep // copy of the structure found in the map and return the copy. The @@ -593,7 +593,7 @@ long MEDDataManager_i::getUMeshId(const MEDCouplingMesh * mesh) { * i.e. the MEDCoupling field associated to the specified field * handler. If the field source is a file and the data ar not loaded * yet, the this function load the data from the file in a MEDCoupling - * field instance. Otherwize, it just returns the MEDCoupling field + * field instance. Otherwise, it just returns the MEDCoupling field * instance. */ MEDCouplingFieldDouble * MEDDataManager_i::getFieldDouble(const MEDCALC::FieldHandler * fieldHandler) @@ -674,7 +674,7 @@ MEDCALC::FieldHandler * MEDDataManager_i::addField(MEDCouplingFieldDouble * fiel // WARN: note that the variables "iteration" and "order" are passed // by reference to the function getTime (see documentation of // MEDCouplingField). As a consequence, the values of these - // variables are updated by this function call. This is the mean to + // variables are updated by this function call. This is the means to // retrieve the iteration and order of the field. double timestamp = fieldDouble->getTime(iteration, order); @@ -691,7 +691,7 @@ MEDCALC::FieldHandler * MEDDataManager_i::addField(MEDCouplingFieldDouble * fiel source->c_str()); if ( meshHandlerId == LONG_UNDEFINED ) { - // We have to gess the id of the underlying mesh to preserve data + // We have to guess the id of the underlying mesh to preserve data // integrity (a fieldHandler must have an attribute that contains // the id of its underlying mesh): // @@ -714,9 +714,9 @@ MEDCALC::FieldHandler * MEDDataManager_i::addField(MEDCouplingFieldDouble * fiel _fieldHandlerMap[fieldHandler->id] = fieldHandler; _fieldDoubleMap[fieldHandler->id] = fieldDouble; - // >>> WARNING: CORBA structure assignement specification ==> return + // >>> WARNING: CORBA structure assignment specification ==> return // >>> a deep copy to avoid the destruction of the fieldHandler - // >>> registered in the map (assignement acts as a destructor for + // >>> registered in the map (assignment acts as a destructor for // >>> CORBA struct). return new MEDCALC::FieldHandler(*fieldHandler); } diff --git a/src/MEDCalc/tui/medevents.py b/src/MEDCalc/tui/medevents.py index 52be16a11..276c65a37 100644 --- a/src/MEDCalc/tui/medevents.py +++ b/src/MEDCalc/tui/medevents.py @@ -39,7 +39,7 @@ def connectEventListener(): except SALOME.SALOME_Exception, e: medcalc.wrn("The event listener is not running yet") msg ="When you'll have loaded the MED GUI, " - msg+="call explicitely \"medcalc.medevents.connectEventListener()\" " + msg+="call explicitly \"medcalc.medevents.connectEventListener()\" " msg+="to connect the GUI event listener" medcalc.inf(msg) __eventListener = None diff --git a/src/MEDGUI/MEDGUIFileContentDial.cxx b/src/MEDGUI/MEDGUIFileContentDial.cxx index fec683302..7936a3e38 100644 --- a/src/MEDGUI/MEDGUIFileContentDial.cxx +++ b/src/MEDGUI/MEDGUIFileContentDial.cxx @@ -318,7 +318,7 @@ void MEDGUIFileContentDial::fieldsStateChange(QTreeWidgetItem* qtwi, int col) } } -// Show the selection on standart output using std::cout and str methods from MEDGUILiteStruct +// Show the selection on standard output using std::cout and str methods from MEDGUILiteStruct void MEDGUIFileContentDial::sendSelectionToDB() { std::vector lt2send2db; @@ -438,7 +438,7 @@ void MEDGUIFileContentDial::selStepsPopup(bool checkable) } -// Methode to set all elements of a MEDGUILiteStruct to (un)selected according to a string (such as "all", "none", ...) +// Method to set all elements of a MEDGUILiteStruct to (un)selected according to a string (such as "all", "none", ...) // 3 cases : // - you want to select all time steps of all fields, the selection is made directly // - you want to unselect all time steps of all fields, the unselection is made directly @@ -478,7 +478,7 @@ void MEDGUIFileContentDial::selFromFile(QTreeWidgetItem* qtwi, QString sel) } } -// Methode to set all elements of a MEDGUIField to (un)selected according to a string (such as "all", "none", ...) +// Method to set all elements of a MEDGUIField to (un)selected according to a string (such as "all", "none", ...) // If empty string, no change are made // Else : // First get the file and field id @@ -585,7 +585,7 @@ void MEDGUIFileContentDial::selFromField(QTreeWidgetItem* qtwi, QString sel) } } -// Methode to set all elements of a MEDGUIField when selection is made from a MEDGUIStep to (un)selected according to a string (such as "all", "none", ...) +// Method to set all elements of a MEDGUIField when selection is made from a MEDGUIStep to (un)selected according to a string (such as "all", "none", ...) // Calling it on a step is the same as calling it from is father (the corresponding field) void MEDGUIFileContentDial::selFromStep(QTreeWidgetItem* qtwi,QString sel) { diff --git a/src/MEDGUI/MEDGUIFileContentDial.h b/src/MEDGUI/MEDGUIFileContentDial.h index 8ec0efbe4..2e0f61f08 100644 --- a/src/MEDGUI/MEDGUIFileContentDial.h +++ b/src/MEDGUI/MEDGUIFileContentDial.h @@ -48,9 +48,9 @@ class MEDGUIFileContentDial : public QDialog protected: void changeEvent(QEvent *e); - void selFromFile(QTreeWidgetItem*, QString);// Methode to set all elements of a MedGUI_LiteStruct to (un)selected according to a string (such as "all", "none", ...) - void selFromField(QTreeWidgetItem*, QString);// Methode to set all elements of a MedGUI_Field to (un)selected according to a string (such as "all", "none", ...) - void selFromStep(QTreeWidgetItem*,QString);// Methode to set all elements of a MedGUI_Field when selection is made from a MedGUI_Step to (un)selected according to a string (such as "all", "none", ...) + void selFromFile(QTreeWidgetItem*, QString);// Method to set all elements of a MedGUI_LiteStruct to (un)selected according to a string (such as "all", "none", ...) + void selFromField(QTreeWidgetItem*, QString);// Method to set all elements of a MedGUI_Field to (un)selected according to a string (such as "all", "none", ...) + void selFromStep(QTreeWidgetItem*,QString);// Method to set all elements of a MedGUI_Field when selection is made from a MedGUI_Step to (un)selected according to a string (such as "all", "none", ...) public slots: void openFile();// Create a new MedGUI_LiteStruct from a file and add content to QTreeWidgets -- 2.39.2