Salome HOME
updated copyright message
[modules/med.git] / src / MEDGUI / MEDGUISelectComponents.h
1 // Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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, or (at your option) any later version.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 //  MED MEDGUI : MED component GUI implementation
24 //  File   : MEDGUISelectComponents.h
25 //  Module : MED
26 //
27 #ifndef __MEDGUISELECTCOMPONENTS_H__
28 #define __MEDGUISELECTCOMPONENTS_H__
29
30 #include <QDialog>
31
32 #include "MEDCalculatorBrowserLiteStruct.hxx"
33
34
35 namespace Ui
36 {
37   class MEDGUISelectComponents;
38 }
39
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 information
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
45
46 class MEDGUISelectComponents : public QDialog
47 {
48   Q_OBJECT
49   public:
50   MEDGUISelectComponents(ParaMEDMEM::MEDCalculatorBrowserLiteStruct&, QWidget *parent = 0, int fieldInd = -1);//  Default constructor
51   ~MEDGUISelectComponents();//  Destructor
52
53 protected:
54   void changeEvent(QEvent *e);
55
56 public slots:
57   void fillSelection();//  Method to fill the Lightstruct according to the selection and modifications made by user
58
59 private:
60   Ui::MEDGUISelectComponents *ui;
61   ParaMEDMEM::MEDCalculatorBrowserLiteStruct* ls;
62   int fieldInd;
63 };
64
65 #endif