1 # Copyright (C) 2013-2021 EDF R&D
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 from qtsalome import *
21 from .desFenetreChoix import Ui_Choix
22 from .monEditor import TableEditor
26 class MaFenetreChoix(Ui_Choix ,QDialog):
29 def __init__(self,db):
30 QDialog.__init__(self)
34 self.connecterSignaux()
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)
50 def MailleurPush(self):
51 editor=TableEditor(self.db.maTableMailleurs,self)
55 editor=TableEditor(self.db.maTableMailles,self)
59 editor=TableEditor(self.db.maTableTailles,self)
63 editor=TableEditor(self.db.maTableRatios,self)
66 def GroupeRatioPush(self):
67 editor=TableEditor(self.db.maTableGroupeRatios,self)
70 def GroupeTaillePush(self):
71 editor=TableEditor(self.db.maTableGroupeTailles,self)
76 editor=TableEditor(self.db.maTablePerfs,self)
80 editor=TableEditor(self.db.maTableGroupes,self)
83 def GroupesRefPush(self):
84 editor=TableEditor(self.db.maTableGroupesRef,self)
87 def MaillagePush(self):
88 editor=TableEditor(self.db.maTableMaillages,self)
91 def VersionPush(self):
92 editor=TableEditor(self.db.maTableVersions,self)
95 def MachinePush(self):
96 editor=TableEditor(self.db.maTableMachines,self)
100 def on_buttonCancel_clicked(self):
103 def on_buttonOk_clicked(self):