]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
*** empty log message *** V1_14a2
authorPascale Noyret <pascale.noyret@edf.fr>
Thu, 27 Mar 2008 10:57:37 +0000 (10:57 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Thu, 27 Mar 2008 10:57:37 +0000 (10:57 +0000)
InterfaceQT/monOptionsEditeur.py [new file with mode: 0644]
InterfaceQT/qtEficas.py
Ui/OptionsEditeur.py
Ui/OptionsEditeur.ui

diff --git a/InterfaceQT/monOptionsEditeur.py b/InterfaceQT/monOptionsEditeur.py
new file mode 100644 (file)
index 0000000..4387494
--- /dev/null
@@ -0,0 +1,5 @@
+from OptionsEditeur import desOptions
+
+class Options(desOptions):
+   def __init__(self,parent = None,name = None,modal = 0,fl = 0):
+       desOptions.__init__(self,parent,name,modal,fl)
index 2b8b8e1eefd7be62c92604ec20ac162d73988ec0..c53c428e601ff91ea3bedd09b5c7398cbb260e81 100644 (file)
@@ -138,7 +138,7 @@ class Appli(Eficas):
         self.monAssistant.showPage( QString("%1/index.html").arg(docsPath) )
 
     def optionEditeur(self) :
-        from OptionsEditeur import Options
+        from monOptionsEditeur import Options
         monOption=Options(parent=self.viewmanager,fl=Qt.WType_Dialog)
         monOption.show()
         
index 5644148671314bfe7d509f4f09c2140ba2fbd88e..990f65054138dc1c38e248c68a8971f296af1963 100644 (file)
@@ -2,7 +2,7 @@
 
 # Form implementation generated from reading ui file 'OptionsEditeur.ui'
 #
-# Created: mer mar 26 09:38:16 2008
+# Created: jeu mar 27 11:26:38 2008
 #      by: The PyQt User Interface Compiler (pyuic) 3.13
 #
 # WARNING! All changes made in this file will be lost!
 from qt import *
 
 
-class Options(QDialog):
+class desOptions(QDialog):
     def __init__(self,parent = None,name = None,modal = 0,fl = 0):
         QDialog.__init__(self,parent,name,modal,fl)
 
         if not name:
-            self.setName("Options")
+            self.setName("desOptions")
 
 
-        OptionsLayout = QGridLayout(self,1,1,11,6,"OptionsLayout")
 
         self.groupBox1 = QGroupBox(self,"groupBox1")
+        self.groupBox1.setGeometry(QRect(10,0,578,191))
 
         self.comboBox2 = QComboBox(0,self.groupBox1,"comboBox2")
         self.comboBox2.setGeometry(QRect(30,20,90,30))
@@ -38,9 +38,23 @@ class Options(QDialog):
         self.lineEdit1_2_2 = QLineEdit(self.groupBox1,"lineEdit1_2_2")
         self.lineEdit1_2_2.setGeometry(QRect(30,140,501,31))
 
-        OptionsLayout.addWidget(self.groupBox1,0,0)
+        self.groupBox2 = QGroupBox(self,"groupBox2")
+        self.groupBox2.setGeometry(QRect(10,200,578,50))
+
+        self.textLabel3 = QLabel(self.groupBox2,"textLabel3")
+        self.textLabel3.setGeometry(QRect(19,19,141,21))
+
+        self.lineEdit7 = QLineEdit(self.groupBox2,"lineEdit7")
+        self.lineEdit7.setGeometry(QRect(170,20,101,21))
+
+        self.textLabel3_2 = QLabel(self.groupBox2,"textLabel3_2")
+        self.textLabel3_2.setGeometry(QRect(289,19,110,21))
+
+        self.lineEdit7_3 = QLineEdit(self.groupBox2,"lineEdit7_3")
+        self.lineEdit7_3.setGeometry(QRect(410,20,101,21))
 
         self.groupBox3 = QGroupBox(self,"groupBox3")
+        self.groupBox3.setGeometry(QRect(10,260,578,161))
 
         self.textLabel1 = QLabel(self.groupBox3,"textLabel1")
         self.textLabel1.setGeometry(QRect(20,20,280,20))
@@ -54,29 +68,19 @@ class Options(QDialog):
         self.textLabel1_2 = QLabel(self.groupBox3,"textLabel1_2")
         self.textLabel1_2.setGeometry(QRect(20,80,280,20))
 
-        OptionsLayout.addWidget(self.groupBox3,2,0)
-
-        self.groupBox2 = QGroupBox(self,"groupBox2")
-
-        self.textLabel3 = QLabel(self.groupBox2,"textLabel3")
-        self.textLabel3.setGeometry(QRect(19,19,141,21))
-
-        self.lineEdit7 = QLineEdit(self.groupBox2,"lineEdit7")
-        self.lineEdit7.setGeometry(QRect(170,20,101,21))
+        self.Bok = QPushButton(self,"Bok")
+        self.Bok.setGeometry(QRect(400,430,70,31))
 
-        self.textLabel3_2 = QLabel(self.groupBox2,"textLabel3_2")
-        self.textLabel3_2.setGeometry(QRect(289,19,110,21))
-
-        self.lineEdit7_3 = QLineEdit(self.groupBox2,"lineEdit7_3")
-        self.lineEdit7_3.setGeometry(QRect(410,20,101,21))
-
-        OptionsLayout.addWidget(self.groupBox2,1,0)
+        self.BCancel = QPushButton(self,"BCancel")
+        self.BCancel.setGeometry(QRect(490,430,70,31))
 
         self.languageChange()
 
         self.resize(QSize(600,480).expandedTo(self.minimumSizeHint()))
         self.clearWState(Qt.WState_Polished)
 
+        self.connect(self.BCancel,SIGNAL("clicked()"),self.reject)
+
 
     def languageChange(self):
         self.setCaption(self.__tr("Form1"))
@@ -89,18 +93,20 @@ class Options(QDialog):
         self.lineEdit1_3.setText(self.__tr("/home/noyret/Cata/V91"))
         self.textLabel1_2_2.setText(self.__trUtf8("\x52\xc3\xa9\x70\x65\x72\x74\x6f\x69\x72\x65\x20\x64\x27\x61\x63\x63\xc3\xa8\x73\x20\x61\x75\x78\x20\x6d\x61\x74\xc3\xa9\x72\x69\x61\x75\x78\x20\x3a"))
         self.lineEdit1_2_2.setText(self.__tr("/home/noyret/Mater/V91"))
+        self.groupBox2.setTitle(self.__trUtf8("\x47\xc3\xa9\x72\x65\x72\x20\x6c\x65\x73\x20\x76\x65\x72\x73\x69\x6f\x6e\x73"))
+        self.textLabel3.setText(self.__tr("Ajouter une version"))
+        self.textLabel3_2.setText(self.__tr("Supprimer une version"))
         self.groupBox3.setTitle(self.__trUtf8("\x47\xc3\xa9\x6e\xc3\xa9\x72\x61\x6c\x69\x74\xc3\xa9\x73"))
         self.textLabel1.setText(self.__trUtf8("\x52\x65\x70\x65\x72\x74\x6f\x69\x72\x65\x20\x64\x27\x61\x63\x63\x65\x73\x20\xc3\xa0\x20\x6c\x61\x20\x64\x6f\x63\x75\x6d\x65\x6e\x74\x61\x74\x69\x6f\x6e\x20\x3a"))
         self.lineEdit1.setText(self.__tr("/home/noyret/doc/asterv9"))
         self.lineEdit1_2.setText(self.__tr("acroread"))
         self.textLabel1_2.setText(self.__tr("Lecteur Pdf"))
-        self.groupBox2.setTitle(self.__trUtf8("\x47\xc3\xa9\x72\x65\x72\x20\x6c\x65\x73\x20\x76\x65\x72\x73\x69\x6f\x6e\x73"))
-        self.textLabel3.setText(self.__tr("Ajouter une version"))
-        self.textLabel3_2.setText(self.__tr("Supprimer une version"))
+        self.Bok.setText(self.__tr("Ok"))
+        self.BCancel.setText(self.__tr("Cancel"))
 
 
     def __tr(self,s,c = None):
-        return qApp.translate("Options",s,c)
+        return qApp.translate("desOptions",s,c)
 
     def __trUtf8(self,s,c = None):
-        return qApp.translate("Options",s,c,QApplication.UnicodeUTF8)
+        return qApp.translate("desOptions",s,c,QApplication.UnicodeUTF8)
index e593a38cc27ef01e77e8fe19992af79626884763..81baa5906910a6f638cb1498691e426ab62ab731 100644 (file)
@@ -1,8 +1,8 @@
 <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
-<class>Options</class>
+<class>desOptions</class>
 <widget class="QDialog">
     <property name="name">
-        <cstring>Options</cstring>
+        <cstring>desOptions</cstring>
     </property>
     <property name="geometry">
         <rect>
     </widget>
     <widget class="QPushButton">
         <property name="name">
-            <cstring>BCancel</cstring>
+            <cstring>Bok</cstring>
         </property>
         <property name="geometry">
             <rect>
-                <x>490</x>
+                <x>400</x>
                 <y>430</y>
                 <width>70</width>
                 <height>31</height>
             </rect>
         </property>
         <property name="text">
-            <string>Cancel</string>
+            <string>Ok</string>
         </property>
     </widget>
     <widget class="QPushButton">
         <property name="name">
-            <cstring>Bok</cstring>
+            <cstring>BCancel</cstring>
         </property>
         <property name="geometry">
             <rect>
-                <x>400</x>
+                <x>490</x>
                 <y>430</y>
                 <width>70</width>
                 <height>31</height>
             </rect>
         </property>
         <property name="text">
-            <string>Ok</string>
+            <string>Cancel</string>
         </property>
     </widget>
 </widget>
+<connections>
+    <connection>
+        <sender>BCancel</sender>
+        <signal>clicked()</signal>
+        <receiver>desOptions</receiver>
+        <slot>reject()</slot>
+    </connection>
+</connections>
 <layoutdefaults spacing="6" margin="11"/>
 </UI>