1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // MED MEDGUI : MED component GUI implemetation
24 // File : MEDGUISelectComponents.h
27 #ifndef __MEDGUISELECTCOMPONENTS_H__
28 #define __MEDGUISELECTCOMPONENTS_H__
32 #include "MEDCalculatorBrowserLiteStruct.hxx"
37 class MEDGUISelectComponents;
40 // This class is implemented to provide a dialog box for selecting fields components and/or setting components names
41 // The basic graphic part was made with QtDesigner4 and is in MedGUI_FileContentDial.ui file
42 // It use a MedGUI_LiteStruct object to get components informations
43 // If one field is selected (call made from a step or a field), the box will only display components from this field
44 // If all fields are selected (call made on MED file), the box will display all the components for each field
46 class MEDGUISelectComponents : public QDialog
50 MEDGUISelectComponents(ParaMEDMEM::MEDCalculatorBrowserLiteStruct&, QWidget *parent = 0, int fieldInd = -1);// Default constructor
51 ~MEDGUISelectComponents();// Destructor
54 void changeEvent(QEvent *e);
57 void fillSelection();// Method to fill the Lightstruct according to the selection and modifications made by user
60 Ui::MEDGUISelectComponents *ui;
61 ParaMEDMEM::MEDCalculatorBrowserLiteStruct* ls;