Salome HOME
Copyright update 2022
[modules/smesh.git] / src / Tools / Verima / Gui / maFenetreChoix.py
1 # Copyright (C) 2013-2022  EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 from qtsalome import *
21 from .desFenetreChoix import Ui_Choix
22 from .monEditor import TableEditor
23
24 # Import des panels
25
26 class MaFenetreChoix(Ui_Choix ,QDialog):
27   """
28   """
29   def __init__(self,db):
30       QDialog.__init__(self)
31       self.setModal(True)
32       self.setupUi(self)
33       self.db=db
34       self.connecterSignaux()
35
36   def connecterSignaux(self):
37       self.PBMailleur.clicked.connect(self.MailleurPush)
38       self.PBMaillage.clicked.connect(self.MaillagePush)
39       self.PBVersion.clicked.connect(self.VersionPush)
40       self.PBMachine.clicked.connect(self.MachinePush)
41       self.PBGroupe.clicked.connect(self.GroupePush)
42       self.PBRatio.clicked.connect(self.RatioPush)
43       self.PBGroupeRatio.clicked.connect(self.GroupeRatioPush)
44       self.PBGroupeTaille.clicked.connect(self.GroupeTaillePush)
45       self.PBPerf.clicked.connect(self.PerfPush)
46       self.PBMaille.clicked.connect(self.MaillePush)
47       self.PBTaille.clicked.connect(self.TaillePush)
48       self.PBGroupesRef.clicked.connect(self.GroupesRefPush)
49
50   def MailleurPush(self):
51       editor=TableEditor(self.db.maTableMailleurs,self)
52       editor.exec_()
53
54   def MaillePush(self):
55       editor=TableEditor(self.db.maTableMailles,self)
56       editor.exec_()
57
58   def TaillePush(self):
59       editor=TableEditor(self.db.maTableTailles,self)
60       editor.exec_()
61       
62   def RatioPush(self):
63       editor=TableEditor(self.db.maTableRatios,self)
64       editor.exec_()
65       
66   def GroupeRatioPush(self):
67       editor=TableEditor(self.db.maTableGroupeRatios,self)
68       editor.exec_()
69
70   def GroupeTaillePush(self):
71       editor=TableEditor(self.db.maTableGroupeTailles,self)
72       editor.exec_()
73       
74       
75   def PerfPush(self):
76       editor=TableEditor(self.db.maTablePerfs,self)
77       editor.exec_()
78       
79   def GroupePush(self):
80       editor=TableEditor(self.db.maTableGroupes,self)
81       editor.exec_()
82       
83   def GroupesRefPush(self):
84       editor=TableEditor(self.db.maTableGroupesRef,self)
85       editor.exec_()
86
87   def MaillagePush(self):
88       editor=TableEditor(self.db.maTableMaillages,self)
89       editor.exec_()
90       
91   def VersionPush(self):
92       editor=TableEditor(self.db.maTableVersions,self)
93       editor.exec_()
94       
95   def MachinePush(self):
96       editor=TableEditor(self.db.maTableMachines,self)
97       editor.exec_()
98       
99
100   def on_buttonCancel_clicked(self):
101       QDialog.reject(self)
102
103   def on_buttonOk_clicked(self):
104       QDialog.accept(self)
105