From cf35480bdcf8954a7af2cb2495c5603a696425c8 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Thu, 27 Mar 2008 10:57:37 +0000 Subject: [PATCH] *** empty log message *** --- InterfaceQT/monOptionsEditeur.py | 5 +++ InterfaceQT/qtEficas.py | 2 +- Ui/OptionsEditeur.py | 58 ++++++++++++++++++-------------- Ui/OptionsEditeur.ui | 24 ++++++++----- 4 files changed, 54 insertions(+), 35 deletions(-) create mode 100644 InterfaceQT/monOptionsEditeur.py diff --git a/InterfaceQT/monOptionsEditeur.py b/InterfaceQT/monOptionsEditeur.py new file mode 100644 index 00000000..43874949 --- /dev/null +++ b/InterfaceQT/monOptionsEditeur.py @@ -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) diff --git a/InterfaceQT/qtEficas.py b/InterfaceQT/qtEficas.py index 2b8b8e1e..c53c428e 100644 --- a/InterfaceQT/qtEficas.py +++ b/InterfaceQT/qtEficas.py @@ -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() diff --git a/Ui/OptionsEditeur.py b/Ui/OptionsEditeur.py index 56441486..990f6505 100644 --- a/Ui/OptionsEditeur.py +++ b/Ui/OptionsEditeur.py @@ -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! @@ -11,17 +11,17 @@ 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) diff --git a/Ui/OptionsEditeur.ui b/Ui/OptionsEditeur.ui index e593a38c..81baa590 100644 --- a/Ui/OptionsEditeur.ui +++ b/Ui/OptionsEditeur.ui @@ -1,8 +1,8 @@ -Options +desOptions - Options + desOptions @@ -279,36 +279,44 @@ - BCancel + Bok - 490 + 400 430 70 31 - Cancel + Ok - Bok + BCancel - 400 + 490 430 70 31 - Ok + Cancel + + + BCancel + clicked() + desOptions + reject() + + -- 2.39.2