]> SALOME platform Git repositories - tools/eficas.git/blob - Ui/desMCFact.py
Salome HOME
CCAR: merge de la version 1.14 dans la branche principale
[tools/eficas.git] / Ui / desMCFact.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'desMCFact.ui'
4 #
5 # Created: mar mar 25 10:05:08 2008
6 #      by: The PyQt User Interface Compiler (pyuic) 3.13
7 #
8 # WARNING! All changes made in this file will be lost!
9
10
11 from qt import *
12
13
14 class DMCFact(QWidget):
15     def __init__(self,parent = None,name = None,fl = 0):
16         QWidget.__init__(self,parent,name,fl)
17
18         if not name:
19             self.setName("DMCFact")
20
21         self.setMinimumSize(QSize(505,0))
22
23         DMCFactLayout = QGridLayout(self,1,1,11,6,"DMCFactLayout")
24
25         self.TWChoix = QTabWidget(self,"TWChoix")
26
27         self.MotClef = QWidget(self.TWChoix,"MotClef")
28         MotClefLayout = QGridLayout(self.MotClef,1,1,11,6,"MotClefLayout")
29
30         self.textLabel1 = QLabel(self.MotClef,"textLabel1")
31         self.textLabel1.setMinimumSize(QSize(0,0))
32
33         MotClefLayout.addWidget(self.textLabel1,0,0)
34
35         self.LBMCPermis = QListBox(self.MotClef,"LBMCPermis")
36         self.LBMCPermis.setMinimumSize(QSize(0,0))
37
38         MotClefLayout.addWidget(self.LBMCPermis,1,0)
39
40         self.LBRegles = QListBox(self.MotClef,"LBRegles")
41
42         MotClefLayout.addWidget(self.LBRegles,1,1)
43
44         self.textLabel1_2 = QLabel(self.MotClef,"textLabel1_2")
45
46         MotClefLayout.addWidget(self.textLabel1_2,0,1)
47         self.TWChoix.insertTab(self.MotClef,QString(""))
48
49         DMCFactLayout.addMultiCellWidget(self.TWChoix,0,0,0,2)
50
51         self.bSup = QPushButton(self,"bSup")
52         self.bSup.setAutoDefault(1)
53
54         DMCFactLayout.addWidget(self.bSup,2,0)
55
56         self.Commentaire = QLabel(self,"Commentaire")
57
58         DMCFactLayout.addMultiCellWidget(self.Commentaire,1,1,0,2)
59
60         self.bHelp = QPushButton(self,"bHelp")
61         self.bHelp.setAutoDefault(1)
62
63         DMCFactLayout.addWidget(self.bHelp,2,2)
64
65         self.bOk = QPushButton(self,"bOk")
66         self.bOk.setAutoDefault(1)
67         self.bOk.setDefault(1)
68
69         DMCFactLayout.addWidget(self.bOk,2,1)
70
71         self.languageChange()
72
73         self.resize(QSize(511,499).expandedTo(self.minimumSizeHint()))
74         self.clearWState(Qt.WState_Polished)
75
76         self.connect(self.bSup,SIGNAL("pressed()"),self.BSupPressed)
77         self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
78         self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
79
80
81     def languageChange(self):
82         self.setCaption(self.__tr("DMacro"))
83         self.textLabel1.setText(self.__tr("<h3><p align=\"center\"><u><b>Mots Clefs Permis</b></u></p></h3>"))
84         self.textLabel1_2.setText(self.__trUtf8("\x3c\x68\x33\x3e\x3c\x70\x20\x61\x6c\x69\x67\x6e\x3d\x22\x63\x65\x6e\x74\x65\x72\x22\x3e\x3c\x75\x3e\x3c\x62\x3e\x52\xc3\xa9\x67\x6c\x65\x73\x3c\x2f\x62\x3e\x3c\x2f\x75\x3e\x3c\x2f\x70\x3e\x3c\x2f\x68\x33\x3e"))
85         self.TWChoix.changeTab(self.MotClef,self.__tr("Ajouter Mot-Clef"))
86         self.bSup.setText(self.__tr("&Supprimer"))
87         self.bSup.setAccel(self.__tr("Alt+S"))
88         QToolTip.add(self.bSup,self.__tr("suppression du mot clef"))
89         self.Commentaire.setText(QString.null)
90         self.bHelp.setText(self.__tr("&Documentation"))
91         self.bHelp.setAccel(self.__tr("Alt+D"))
92         QToolTip.add(self.bHelp,self.__tr("affichage documentation aster"))
93         self.bOk.setText(self.__tr("&Valider"))
94         self.bOk.setAccel(self.__tr("Shift+A, Alt+A, Alt+A, Alt+A"))
95         QToolTip.add(self.bOk,self.__tr("validation de la saisie"))
96
97
98     def ViewDoc(self):
99         print "DMCFact.ViewDoc(): Not implemented yet"
100
101     def BSupPressed(self):
102         print "DMCFact.BSupPressed(): Not implemented yet"
103
104     def BOkPressed(self):
105         print "DMCFact.BOkPressed(): Not implemented yet"
106
107     def __tr(self,s,c = None):
108         return qApp.translate("DMCFact",s,c)
109
110     def __trUtf8(self,s,c = None):
111         return qApp.translate("DMCFact",s,c,QApplication.UnicodeUTF8)