Salome HOME
3a52bab9eb7ad234af0f30d87eaa3c5e48c77f30
[modules/smesh.git] / src / Tools / Verima / Gui / maFenetreChoix.py
1 from desFenetreChoix import Ui_Choix
2 from PyQt4  import *
3 from PyQt4.QtCore import *
4 from PyQt4.QtGui import *
5 from monEditor import TableEditor
6
7 # Import des panels
8
9 class MaFenetreChoix(Ui_Choix ,QtGui.QDialog):
10   """
11   """
12   def __init__(self,db):
13       QtGui.QDialog.__init__(self)
14       self.setModal(True)
15       self.setupUi(self)
16       self.db=db
17       self.connecterSignaux()
18
19   def connecterSignaux(self):
20       self.connect(self.PBMailleur,SIGNAL("clicked()"),self.MailleurPush)
21       self.connect(self.PBMaillage,SIGNAL("clicked()"),self.MaillagePush)
22       self.connect(self.PBVersion,SIGNAL("clicked()"),self.VersionPush)
23       self.connect(self.PBMachine,SIGNAL("clicked()"),self.MachinePush)
24       self.connect(self.PBGroupe,SIGNAL("clicked()"),self.GroupePush)
25       self.connect(self.PBRatio,SIGNAL("clicked()"),self.RatioPush)
26       self.connect(self.PBPerf,SIGNAL("clicked()"),self.PerfPush)
27       self.connect(self.PBMaille,SIGNAL("clicked()"),self.MaillePush)
28       self.connect(self.PBTaille,SIGNAL("clicked()"),self.TaillePush)
29       self.connect(self.PBGroupesRef,SIGNAL("clicked()"),self.GroupesRefPush)
30
31   def MailleurPush(self):
32       editor=TableEditor(self.db.maTableMailleurs,self)
33       editor.exec_()
34
35   def MaillePush(self):
36       editor=TableEditor(self.db.maTableMailles,self)
37       editor.exec_()
38
39   def TaillePush(self):
40       editor=TableEditor(self.db.maTableTailles,self)
41       editor.exec_()
42       
43   def RatioPush(self):
44       editor=TableEditor(self.db.maTableRatios,self)
45       editor.exec_()
46       
47   def PerfPush(self):
48       editor=TableEditor(self.db.maTablePerfs,self)
49       editor.exec_()
50       
51   def GroupePush(self):
52       editor=TableEditor(self.db.maTableGroupes,self)
53       editor.exec_()
54       
55   def GroupesRefPush(self):
56       editor=TableEditor(self.db.maTableGroupesRef,self)
57       editor.exec_()
58
59   def MaillagePush(self):
60       editor=TableEditor(self.db.maTableMaillages,self)
61       editor.exec_()
62       
63   def VersionPush(self):
64       editor=TableEditor(self.db.maTableVersions,self)
65       editor.exec_()
66       
67   def MachinePush(self):
68       editor=TableEditor(self.db.maTableMachines,self)
69       editor.exec_()
70       
71
72   def on_buttonCancel_clicked(self):
73       QDialog.reject(self)
74
75   def on_buttonOk_clicked(self):
76       QDialog.accept(self)
77