Salome HOME
0023224: [CEA 1709] Error with numpy with Windows version of SALOME
[modules/smesh.git] / src / Tools / Verima / Gui / maFenetreChoix.py
1 from desFenetreChoix_ui 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.PBGroupeRatio,SIGNAL("clicked()"),self.GroupeRatioPush)
27       self.connect(self.PBGroupeTaille,SIGNAL("clicked()"),self.GroupeTaillePush)
28       self.connect(self.PBPerf,SIGNAL("clicked()"),self.PerfPush)
29       self.connect(self.PBMaille,SIGNAL("clicked()"),self.MaillePush)
30       self.connect(self.PBTaille,SIGNAL("clicked()"),self.TaillePush)
31       self.connect(self.PBGroupesRef,SIGNAL("clicked()"),self.GroupesRefPush)
32
33   def MailleurPush(self):
34       editor=TableEditor(self.db.maTableMailleurs,self)
35       editor.exec_()
36
37   def MaillePush(self):
38       editor=TableEditor(self.db.maTableMailles,self)
39       editor.exec_()
40
41   def TaillePush(self):
42       editor=TableEditor(self.db.maTableTailles,self)
43       editor.exec_()
44       
45   def RatioPush(self):
46       editor=TableEditor(self.db.maTableRatios,self)
47       editor.exec_()
48       
49   def GroupeRatioPush(self):
50       editor=TableEditor(self.db.maTableGroupeRatios,self)
51       editor.exec_()
52
53   def GroupeTaillePush(self):
54       editor=TableEditor(self.db.maTableGroupeTailles,self)
55       editor.exec_()
56       
57       
58   def PerfPush(self):
59       editor=TableEditor(self.db.maTablePerfs,self)
60       editor.exec_()
61       
62   def GroupePush(self):
63       editor=TableEditor(self.db.maTableGroupes,self)
64       editor.exec_()
65       
66   def GroupesRefPush(self):
67       editor=TableEditor(self.db.maTableGroupesRef,self)
68       editor.exec_()
69
70   def MaillagePush(self):
71       editor=TableEditor(self.db.maTableMaillages,self)
72       editor.exec_()
73       
74   def VersionPush(self):
75       editor=TableEditor(self.db.maTableVersions,self)
76       editor.exec_()
77       
78   def MachinePush(self):
79       editor=TableEditor(self.db.maTableMachines,self)
80       editor.exec_()
81       
82
83   def on_buttonCancel_clicked(self):
84       QDialog.reject(self)
85
86   def on_buttonOk_clicked(self):
87       QDialog.accept(self)
88