-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-// MED MEDGUI : MED component GUI implemetation
+// MED MEDGUI : MED component GUI implementation
// File : MEDGUIFileContentDial.cxx
// Module : MED
#include "MEDGUIFileContentDial.h"
// Connect buttons to actions, close statement is already connect in the .ui file
// Set QTreeWidgets parameters : header labels, selection mode
// Connect QTreeWidget itemClicked signal to meshes and fieldsStateChange
-// Put mouse tracking on, so this class received mouse positions informations when mouse is above treewidget
+// Put mouse tracking on, so this class received mouse positions information when mouse is above treewidget
// Add contextual menu to treewidget's items with the call to selectCompoPopup and selStepPopup
// Connect those actions to corresponding signals
MEDGUIFileContentDial::MEDGUIFileContentDial(MEDGUIDataBaseDockWidget* db, QWidget* parent):
// Then, after checking if the name already exist
// - if yes, try to add "_#" where # begin at 2
// - if not, continue
-// Create a new MEDGUILiteStruct with the complet file name and the simplified file name as parameters
+// Create a new MEDGUILiteStruct with the complete file name and the simplified file name as parameters
// Add items to the two QTreeWidget get information from the new MEDGUILiteStruct
void MEDGUIFileContentDial::openFile()
{
}
}
-// 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<ParaMEDMEM::MEDCalculatorBrowserLiteStruct> lt2send2db;
}
// Show in red the corresponding meshes from a field or a step or a field hoovered by mouse
-// First clean alrady colored meshes list (color back in black and empty coloredMeshes vector)
+// First clean already colored meshes list (color back in black and empty coloredMeshes vector)
// Then, get the id of the MEDGUILiteStruct corresponding to the currently hovered item
// Get corresponding meshes as string from the currently hovered item
// Get the corresponding root of the meshes QTreeWidget from the root of the fields QTreeWidget
}
-// 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
}
}
-// 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
}
}
-// 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)
{