From: pascale.noyret
Date: Mon, 7 Mar 2016 10:58:17 +0000 (+0100)
Subject: mse a jour du 07/03/2016 pour sauvegarde
X-Git-Tag: V8_1_0~40
X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=42895950e564e837c445896b5bac263370bdf37b;p=tools%2Feficas.git
mse a jour du 07/03/2016 pour sauvegarde
---
diff --git a/CarmelCND/qtEficas_CarmelCND.py b/CarmelCND/qtEficas_CarmelCND.py
index b1254f2c..f49b9bcb 100755
--- a/CarmelCND/qtEficas_CarmelCND.py
+++ b/CarmelCND/qtEficas_CarmelCND.py
@@ -27,7 +27,6 @@
import sys,os
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'..'))
-from PyQt4.QtCore import *
import prefs
from InterfaceQT4 import eficas_go
eficas_go.lance_eficas(code=prefs.code)
diff --git a/Extensions/localisation.py b/Extensions/localisation.py
index f9d0e6d4..25e1e2e6 100644
--- a/Extensions/localisation.py
+++ b/Extensions/localisation.py
@@ -18,10 +18,13 @@
Creates and loads two ``QTranslator`` objects, one for pure Qt, one for Eficas,
and installs them to a ``QApplication``.
-``PyQt4`` is currently supported.
"""
-from PyQt4.QtCore import QTranslator
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtCore import QTranslator
+else :
+ from PyQt4.QtCore import QTranslator
qt_translator = QTranslator()
eficas_translator = QTranslator()
@@ -40,9 +43,15 @@ def localise(application, locale=None ):
If no locale is specified by the user, the system locale
is used instead, for both Qt base and Eficas translators.
"""
- from PyQt4.QtCore import QLibraryInfo
- from PyQt4.QtCore import QLocale
- from PyQt4.QtGui import QApplication
+ if monEnvQT5 :
+ from PyQt5.QtCore import QLibraryInfo
+ from PyQt5.QtCore import QLocale
+ from PyQt5.QtWidgets import QApplication
+ else :
+ from PyQt4.QtCore import QLibraryInfo
+ from PyQt4.QtCore import QLocale
+ from PyQt4.QtGui import QApplication
+
sys_locale = QLocale.system().name()
if locale is None:
diff --git a/Extensions/translation.py b/Extensions/translation.py
index ba4940f4..75cd3302 100644
--- a/Extensions/translation.py
+++ b/Extensions/translation.py
@@ -1,295 +1,7 @@
-# -*- coding: utf-8 -*-
-# copyright 2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
-# contact http://www.logilab.fr -- mailto:contact@logilab.fr
-#
-# This program is free software: you can redistribute it and/or modify it under
-# the terms of the GNU Lesser General Public License as published by the Free
-# Software Foundation, either version 2.1 of the License, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-# details.
-#
-# You should have received a copy of the GNU Lesser General Public License along
-# with this program. If not, see .
-"""
-Main module of the ``i18n`` package, for internationalizing strings via the Qt
-mechanism, in the ``Eficas`` application of EDF. Handles unformatted and
-formatted strings, according to all formatting schemes: via dictionaries,
-tuples, or atoms.
-
-``PyQt4`` is currently supported.
-"""
-from Extensions.eficas_exception import EficasException
-def _reformat_qstring_from_tuple(qstring, params):
- """
- _reformat_qstring_from_tuple(QString, tuple) -> QString
-
- Module-internal method.
- Returns a formatted QString from an unformatted QString
- and a tuple specifying the parameters of the QString.
- """
- from PyQt4.QtCore import QRegExp, QString
- reg = QRegExp("\%\.[1-9]{1,2}f")
- for p, j in zip(params, range(len(params))):
- try:
- i += 1 + qstring[i + 1:].indexOf("%")
- except NameError:
- i = qstring.indexOf("%")
- if i == reg.indexIn(qstring):
- precision = reg.cap(0).split('.')[1].split('f')[0]
- qstring = qstring[:i + 2 + len(precision)].\
- replace("%." + precision, "%" + unicode(1 + j)) + \
- qstring[i + 3 + len(precision):]
- qstring = qstring.arg(QString.number(float(params[j]), 'f',\
- int(precision)))
- else:
- qstring = qstring[:i + 1].replace("%", "%" + unicode(1 + j)) + \
- qstring[i + 2:]
- if isinstance(params[j], unicode):
- qstring = qstring.arg(params[j])
- elif isinstance(params[j], float):
- qstring = qstring.arg(QString.number(params[j], 'f',\
- len(unicode(params[j]).\
- split('.')[1])))
- elif isinstance(params[j], int):
- qstring = qstring.arg(QString.number(params[j], 10))
- elif isinstance(params[j], list):
- qstring = qstring.arg(repr(params[j]))
- else:
- raise EficasException("TypeError: i18n.translation: \
- Unicode, list or number expected!")
- return qstring
-
-def _reformat_qstring_from_dict(qstring, params):
- """
- _reformat_qstring_from_dict(QString, dict) -> QString
-
- Module-internal method.
- Returns a formatted QString from an unformatted QString
- and a dictionary specifying the parameters of the QString.
- """
- from PyQt4.QtCore import QRegExp, QString
- for p, j in zip(params, range(len(params))):
- p_reg = QRegExp("\%\("+ p + "\)\.[1-9]{1,2}f")
- p_index = p_reg.indexIn(qstring)
- if p_index != -1:
- precision = p_reg.cap(0).split('.')[1].split('f')[0]
- qstring = qstring.replace("%(" + p + ")." + precision + "f",\
- "%" + unicode(1 + j)).\
- arg(QString.number(float(params[p]), \
- 'f', \
- int(precision)))
- else:
- qstring.remove(QRegExp("\\)[sdf]{1}"))
- qstring = qstring.replace("%(" + p, "%" + unicode(1 + j))
- if isinstance(params[p], unicode):
- qstring = qstring.arg(params[p])
- elif isinstance(params[p], float):
- qstring = qstring.arg(QString.number(params[p], 'f', \
- len(unicode(params[p]).split('.')[1])))
- elif isinstance(params[p], int):
- qstring = qstring.arg(QString.number(params[p], 10))
- elif isinstance(params[p], list):
- qstring = qstring.arg(repr(params[p]))
- else:
- raise EficasException("TypeError: i18n.translation: \
- Improper string parameter type.")
- return qstring
-
-def _reformat_qstring_from_atom(qstring, params):
- """
- _reformat_qstring_from_atom(QString, int-or-float) -> QString
-
- Module-internal method.
- Returns a formatted QString from an unformatted QString
- and an integer or a float specifying the parameter of
- the QString.
- """
- from PyQt4.QtCore import QRegExp, QString
- reg = QRegExp("\%\.[1-9]{1,2}f")
- if qstring.count("%") == 0:
- qstring.append("%1")
- try:
- qstring = qstring.arg(unicode(params))
- except AttributeError:
- qstring = qstring.arg(params)
- elif qstring.count("%") == 1:
- i = qstring.indexOf("%")
- if i == reg.indexIn(qstring):
- precision = reg.cap(0).split('.')[1].split('f')[0]
- qstring = qstring[: i + 2 + len(precision)].\
- replace("%." + precision, "%1") + \
- qstring[i + 3 + len(precision):]
- qstring = qstring.arg(QString.number(float(params), 'f',\
- int(precision)))
- else:
- qstring = qstring[:i + 1].replace("%", "%1") + \
- qstring[i + 2:]
- if isinstance(params, (unicode, str)):
- qstring = qstring.arg(_preprocess_atom(params))
- elif isinstance(params, float):
- qstring = qstring.arg(QString.number(params, 'f', \
- len(unicode(params).\
- split('.')[1])))
- elif isinstance(params, int):
- qstring = qstring.arg(QString.number(params, 10))
- else:
- raise EficasException("TypeError: i18n.translation: Unicode, \
- string or number expected!")
- return qstring
-
-def _reformat_qstring_from_list(qstring, params):
- """
- _reformat_qstring_from_list(QString, tuple) -> QString
-
- Module-internal method.
- Returns a formatted QString from an unformatted QString
- and a list whose concatenation specifies the parameter
- of the QString.
- """
- # XXX to add further functionality, e.g. list processing
- # when ``%`` not at the end.
- if qstring.count("%") == 1 and \
- unicode(qstring).strip()[:-1].endswith("%"):
- qstring = qstring[:qstring.indexOf("%") + 1].append("1")
- qstring = qstring.arg(u' '.join(map(unicode, params)))
- elif qstring.count("%") == 0:
- qstring.append("%1")
- qstring = qstring.arg(u' '.join(map(unicode, params)))
- else:
- raise EficasException("ValueError: i18n.translation: \
- At most one '%' expected!")
- return qstring
-
-def _preprocess_atom(string):
- """
- _preprocess_atom(string-or-number-or-unicode) -> unicode
- Test if input is a Unicode object or a number; if so, then return it;
- otherwise, test if the input is a string; if so, then try to create
- a Unicode object out of it. To this end, assume the string is encoded
- in utf-8; if this fails, then assume the string is encoded in Latin-9.
- """
- if isinstance(string, (unicode, int, float, complex)):
- return string
- elif isinstance(string, str):
- return _str_to_unicode(string)
- else:
- raise EficasException("TypeError: Expected number, string or\
- Unicode object!")
-
-def _str_to_unicode(string):
- """
- _str_to_unicode(string) -> unicode
- Tries to create a Unicode object out of the input string; assumes
- the string is UTF-8 encoded; if not, then assume the string is
- Latin-9 encoded.
- """
- try:
- string = unicode(string, "utf-8")
- except UnicodeDecodeError:
- try:
- string = unicode(string, "iso-8859-15")
- except UnicodeDecodeError:
- raise EficasException("UnicodeDecodeError: UTF-8, Latin-1 \
- or Latin-9 expected")
- return string
-
-def tr(string, *args):
- """tr(string-or-unicode, iterable-or-float-or-int) -> unicode
- tr(string-or-unicode) -> unicode
-
- Returns a formatted Unicode object from an unformatted
- string or Unicode object with formatting specifications, and,
- optionally, an iterable or an int or float.
- Lets Python do the string formatting."""
- from PyQt4.QtGui import QApplication
- string = _preprocess_atom(string)
- if len(args) == 0:
- r = unicode(QApplication.translate("@default", string))
- elif len(args) == 1:
- if isinstance(args[0], (dict, tuple)):
- if string.count("%") == len(args[0]):
- r = unicode(QApplication.translate("@default", string)) % args[0]
- elif string.count("%") == 1 and string.count("%(") == 0:
- r = unicode(QApplication.translate("@default", string))\
- % _preprocess_atom(repr(args[0]))
- elif string.count("%") == 0:
- r = (unicode(QApplication.translate("@default", string)), args[0])
- else:
- raise EficasException("ValueError: i18n.translate.tr: \
- Improper input string formatting")
- elif isinstance(args[0], (unicode, str, int, float, complex)):
- if string.count("%") == 1:
- r = unicode(QApplication.translate("@default", string))\
- % _preprocess_atom(args[0])
- else:
- r = unicode(QApplication.translate("@default", string)) +\
- unicode(_preprocess_atom(args[0]))
- elif isinstance(args[0], list) or args[0] is None:
- if string.count("%") == 1:
- r = unicode(QApplication.translate("@default", string))\
- % _preprocess_atom(repr(args[0]))
- else:
- r = (unicode(QApplication.translate("@default", string)), args[0])
-
- else:
- raise EficasException("ValueError: i18n.translation.tr: \
- Wrong type for formatted string \
- arguments: %s" % type(args[0]))
- else:
- raise EficasException("ValueError: i18n.translation.tr: \
- Wrong formatted string arguments")
- return r
-
-
-def tr_qt(string, *args):
- """tr_qt(string, iterable-or-float-or-int) -> unicode
- t_qtr(string) -> unicode
-
- Returns a formatted string from an unformatted
- Unicode string with formatting specifications, and,
- optionally, an iterable or an int or float.
- Lets PyQt4 do the string formatting. To this end,
- a conversion from Python to Qt string formatting
- syntax is performed."""
- string = _preprocess_atom(string)
- from PyQt4.QtGui import QApplication
- if len(args) == 0:
- r = QApplication.translate("@default", string)
- elif len(args) == 1:
- r = QApplication.translate("@default", string)
- if isinstance(args[0], (dict, tuple)):
- if r.count("%") == len(args[0]):
- if isinstance(args[0], dict):
- r = _reformat_qstring_from_dict(r, args[0])
- elif isinstance(args[0], tuple):
- r = _reformat_qstring_from_tuple(r, args[0])
- # XXX Pay attention to this: distinguish between tuple,
- # dict and dict with key given in string.
- elif r.count("%") in range(2) and r.count("%(") == 0:
- r = _reformat_qstring_from_atom(r, _preproces_atom(repr(args[0])))
- else:
- raise EficasException("ValueError: i18n.translation.tr_qt: \
- Improper formatting string parameters")
- elif isinstance(args[0], (unicode, str, int, float, complex)):
- r = _reformat_qstring_from_atom(r, args[0])
- elif isinstance(args[0], list):
- r = _reformat_qstring_from_list(r, args[0])
- elif args[0] is None:
- r = _reformat_qstring_from_atom(r, _preprocess_string_from_atom(repr(args[0])))
- else:
- raise EficasException("ValueError: i18n.translation.tr_qt: \
- Wrong string formatting parameter types")
- else:
- raise EficasException("ValueError: i18n.translation.tr_qt: \
- Improper formatted string parameter set")
- return unicode(r)
-
-
-if __name__ == "__main__":
- import sys
- tr(sys.argv[1], *args)
- tr_qt(sys.argv[1], *args)
+from determine import monEnvQT5
+if monEnvQT5 :
+ from translationQT5 import tr
+ from translationQT5 import tr_qt
+else :
+ from translationQT4 import tr
+ from translationQT4 import tr_qt
diff --git a/Extensions/translationQT4.py b/Extensions/translationQT4.py
new file mode 100644
index 00000000..ba4940f4
--- /dev/null
+++ b/Extensions/translationQT4.py
@@ -0,0 +1,295 @@
+# -*- coding: utf-8 -*-
+# copyright 2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr -- mailto:contact@logilab.fr
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License along
+# with this program. If not, see .
+"""
+Main module of the ``i18n`` package, for internationalizing strings via the Qt
+mechanism, in the ``Eficas`` application of EDF. Handles unformatted and
+formatted strings, according to all formatting schemes: via dictionaries,
+tuples, or atoms.
+
+``PyQt4`` is currently supported.
+"""
+from Extensions.eficas_exception import EficasException
+def _reformat_qstring_from_tuple(qstring, params):
+ """
+ _reformat_qstring_from_tuple(QString, tuple) -> QString
+
+ Module-internal method.
+ Returns a formatted QString from an unformatted QString
+ and a tuple specifying the parameters of the QString.
+ """
+ from PyQt4.QtCore import QRegExp, QString
+ reg = QRegExp("\%\.[1-9]{1,2}f")
+ for p, j in zip(params, range(len(params))):
+ try:
+ i += 1 + qstring[i + 1:].indexOf("%")
+ except NameError:
+ i = qstring.indexOf("%")
+ if i == reg.indexIn(qstring):
+ precision = reg.cap(0).split('.')[1].split('f')[0]
+ qstring = qstring[:i + 2 + len(precision)].\
+ replace("%." + precision, "%" + unicode(1 + j)) + \
+ qstring[i + 3 + len(precision):]
+ qstring = qstring.arg(QString.number(float(params[j]), 'f',\
+ int(precision)))
+ else:
+ qstring = qstring[:i + 1].replace("%", "%" + unicode(1 + j)) + \
+ qstring[i + 2:]
+ if isinstance(params[j], unicode):
+ qstring = qstring.arg(params[j])
+ elif isinstance(params[j], float):
+ qstring = qstring.arg(QString.number(params[j], 'f',\
+ len(unicode(params[j]).\
+ split('.')[1])))
+ elif isinstance(params[j], int):
+ qstring = qstring.arg(QString.number(params[j], 10))
+ elif isinstance(params[j], list):
+ qstring = qstring.arg(repr(params[j]))
+ else:
+ raise EficasException("TypeError: i18n.translation: \
+ Unicode, list or number expected!")
+ return qstring
+
+def _reformat_qstring_from_dict(qstring, params):
+ """
+ _reformat_qstring_from_dict(QString, dict) -> QString
+
+ Module-internal method.
+ Returns a formatted QString from an unformatted QString
+ and a dictionary specifying the parameters of the QString.
+ """
+ from PyQt4.QtCore import QRegExp, QString
+ for p, j in zip(params, range(len(params))):
+ p_reg = QRegExp("\%\("+ p + "\)\.[1-9]{1,2}f")
+ p_index = p_reg.indexIn(qstring)
+ if p_index != -1:
+ precision = p_reg.cap(0).split('.')[1].split('f')[0]
+ qstring = qstring.replace("%(" + p + ")." + precision + "f",\
+ "%" + unicode(1 + j)).\
+ arg(QString.number(float(params[p]), \
+ 'f', \
+ int(precision)))
+ else:
+ qstring.remove(QRegExp("\\)[sdf]{1}"))
+ qstring = qstring.replace("%(" + p, "%" + unicode(1 + j))
+ if isinstance(params[p], unicode):
+ qstring = qstring.arg(params[p])
+ elif isinstance(params[p], float):
+ qstring = qstring.arg(QString.number(params[p], 'f', \
+ len(unicode(params[p]).split('.')[1])))
+ elif isinstance(params[p], int):
+ qstring = qstring.arg(QString.number(params[p], 10))
+ elif isinstance(params[p], list):
+ qstring = qstring.arg(repr(params[p]))
+ else:
+ raise EficasException("TypeError: i18n.translation: \
+ Improper string parameter type.")
+ return qstring
+
+def _reformat_qstring_from_atom(qstring, params):
+ """
+ _reformat_qstring_from_atom(QString, int-or-float) -> QString
+
+ Module-internal method.
+ Returns a formatted QString from an unformatted QString
+ and an integer or a float specifying the parameter of
+ the QString.
+ """
+ from PyQt4.QtCore import QRegExp, QString
+ reg = QRegExp("\%\.[1-9]{1,2}f")
+ if qstring.count("%") == 0:
+ qstring.append("%1")
+ try:
+ qstring = qstring.arg(unicode(params))
+ except AttributeError:
+ qstring = qstring.arg(params)
+ elif qstring.count("%") == 1:
+ i = qstring.indexOf("%")
+ if i == reg.indexIn(qstring):
+ precision = reg.cap(0).split('.')[1].split('f')[0]
+ qstring = qstring[: i + 2 + len(precision)].\
+ replace("%." + precision, "%1") + \
+ qstring[i + 3 + len(precision):]
+ qstring = qstring.arg(QString.number(float(params), 'f',\
+ int(precision)))
+ else:
+ qstring = qstring[:i + 1].replace("%", "%1") + \
+ qstring[i + 2:]
+ if isinstance(params, (unicode, str)):
+ qstring = qstring.arg(_preprocess_atom(params))
+ elif isinstance(params, float):
+ qstring = qstring.arg(QString.number(params, 'f', \
+ len(unicode(params).\
+ split('.')[1])))
+ elif isinstance(params, int):
+ qstring = qstring.arg(QString.number(params, 10))
+ else:
+ raise EficasException("TypeError: i18n.translation: Unicode, \
+ string or number expected!")
+ return qstring
+
+def _reformat_qstring_from_list(qstring, params):
+ """
+ _reformat_qstring_from_list(QString, tuple) -> QString
+
+ Module-internal method.
+ Returns a formatted QString from an unformatted QString
+ and a list whose concatenation specifies the parameter
+ of the QString.
+ """
+ # XXX to add further functionality, e.g. list processing
+ # when ``%`` not at the end.
+ if qstring.count("%") == 1 and \
+ unicode(qstring).strip()[:-1].endswith("%"):
+ qstring = qstring[:qstring.indexOf("%") + 1].append("1")
+ qstring = qstring.arg(u' '.join(map(unicode, params)))
+ elif qstring.count("%") == 0:
+ qstring.append("%1")
+ qstring = qstring.arg(u' '.join(map(unicode, params)))
+ else:
+ raise EficasException("ValueError: i18n.translation: \
+ At most one '%' expected!")
+ return qstring
+
+def _preprocess_atom(string):
+ """
+ _preprocess_atom(string-or-number-or-unicode) -> unicode
+ Test if input is a Unicode object or a number; if so, then return it;
+ otherwise, test if the input is a string; if so, then try to create
+ a Unicode object out of it. To this end, assume the string is encoded
+ in utf-8; if this fails, then assume the string is encoded in Latin-9.
+ """
+ if isinstance(string, (unicode, int, float, complex)):
+ return string
+ elif isinstance(string, str):
+ return _str_to_unicode(string)
+ else:
+ raise EficasException("TypeError: Expected number, string or\
+ Unicode object!")
+
+def _str_to_unicode(string):
+ """
+ _str_to_unicode(string) -> unicode
+ Tries to create a Unicode object out of the input string; assumes
+ the string is UTF-8 encoded; if not, then assume the string is
+ Latin-9 encoded.
+ """
+ try:
+ string = unicode(string, "utf-8")
+ except UnicodeDecodeError:
+ try:
+ string = unicode(string, "iso-8859-15")
+ except UnicodeDecodeError:
+ raise EficasException("UnicodeDecodeError: UTF-8, Latin-1 \
+ or Latin-9 expected")
+ return string
+
+def tr(string, *args):
+ """tr(string-or-unicode, iterable-or-float-or-int) -> unicode
+ tr(string-or-unicode) -> unicode
+
+ Returns a formatted Unicode object from an unformatted
+ string or Unicode object with formatting specifications, and,
+ optionally, an iterable or an int or float.
+ Lets Python do the string formatting."""
+ from PyQt4.QtGui import QApplication
+ string = _preprocess_atom(string)
+ if len(args) == 0:
+ r = unicode(QApplication.translate("@default", string))
+ elif len(args) == 1:
+ if isinstance(args[0], (dict, tuple)):
+ if string.count("%") == len(args[0]):
+ r = unicode(QApplication.translate("@default", string)) % args[0]
+ elif string.count("%") == 1 and string.count("%(") == 0:
+ r = unicode(QApplication.translate("@default", string))\
+ % _preprocess_atom(repr(args[0]))
+ elif string.count("%") == 0:
+ r = (unicode(QApplication.translate("@default", string)), args[0])
+ else:
+ raise EficasException("ValueError: i18n.translate.tr: \
+ Improper input string formatting")
+ elif isinstance(args[0], (unicode, str, int, float, complex)):
+ if string.count("%") == 1:
+ r = unicode(QApplication.translate("@default", string))\
+ % _preprocess_atom(args[0])
+ else:
+ r = unicode(QApplication.translate("@default", string)) +\
+ unicode(_preprocess_atom(args[0]))
+ elif isinstance(args[0], list) or args[0] is None:
+ if string.count("%") == 1:
+ r = unicode(QApplication.translate("@default", string))\
+ % _preprocess_atom(repr(args[0]))
+ else:
+ r = (unicode(QApplication.translate("@default", string)), args[0])
+
+ else:
+ raise EficasException("ValueError: i18n.translation.tr: \
+ Wrong type for formatted string \
+ arguments: %s" % type(args[0]))
+ else:
+ raise EficasException("ValueError: i18n.translation.tr: \
+ Wrong formatted string arguments")
+ return r
+
+
+def tr_qt(string, *args):
+ """tr_qt(string, iterable-or-float-or-int) -> unicode
+ t_qtr(string) -> unicode
+
+ Returns a formatted string from an unformatted
+ Unicode string with formatting specifications, and,
+ optionally, an iterable or an int or float.
+ Lets PyQt4 do the string formatting. To this end,
+ a conversion from Python to Qt string formatting
+ syntax is performed."""
+ string = _preprocess_atom(string)
+ from PyQt4.QtGui import QApplication
+ if len(args) == 0:
+ r = QApplication.translate("@default", string)
+ elif len(args) == 1:
+ r = QApplication.translate("@default", string)
+ if isinstance(args[0], (dict, tuple)):
+ if r.count("%") == len(args[0]):
+ if isinstance(args[0], dict):
+ r = _reformat_qstring_from_dict(r, args[0])
+ elif isinstance(args[0], tuple):
+ r = _reformat_qstring_from_tuple(r, args[0])
+ # XXX Pay attention to this: distinguish between tuple,
+ # dict and dict with key given in string.
+ elif r.count("%") in range(2) and r.count("%(") == 0:
+ r = _reformat_qstring_from_atom(r, _preproces_atom(repr(args[0])))
+ else:
+ raise EficasException("ValueError: i18n.translation.tr_qt: \
+ Improper formatting string parameters")
+ elif isinstance(args[0], (unicode, str, int, float, complex)):
+ r = _reformat_qstring_from_atom(r, args[0])
+ elif isinstance(args[0], list):
+ r = _reformat_qstring_from_list(r, args[0])
+ elif args[0] is None:
+ r = _reformat_qstring_from_atom(r, _preprocess_string_from_atom(repr(args[0])))
+ else:
+ raise EficasException("ValueError: i18n.translation.tr_qt: \
+ Wrong string formatting parameter types")
+ else:
+ raise EficasException("ValueError: i18n.translation.tr_qt: \
+ Improper formatted string parameter set")
+ return unicode(r)
+
+
+if __name__ == "__main__":
+ import sys
+ tr(sys.argv[1], *args)
+ tr_qt(sys.argv[1], *args)
diff --git a/Extensions/translationQT5.py b/Extensions/translationQT5.py
new file mode 100644
index 00000000..565cec79
--- /dev/null
+++ b/Extensions/translationQT5.py
@@ -0,0 +1,324 @@
+# -*- coding: utf-8 -*-
+# copyright 2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr -- mailto:contact@logilab.fr
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License along
+# with this program. If not, see .
+"""
+Main module of the ``i18n`` package, for internationalizing strings via the Qt
+mechanism, in the ``Eficas`` application of EDF. Handles unformatted and
+formatted strings, according to all formatting schemes: via dictionaries,
+tuples, or atoms.
+
+``PyQt4`` is currently supported.
+"""
+from Extensions.eficas_exception import EficasException
+import re
+regex=re.compile(r"% *[0-9]+")
+
+
+
+
+def _reformat_qstring_from_tuple(qstring, params):
+ """
+ _reformat_qstring_from_tuple(string, tuple) -> string
+
+ Module-internal method.
+ Returns a formatted string from an unformatted string
+ and a tuple specifying the parameters of the string.
+ """
+ from PyQt5.QtCore import QRegExp
+ reg = QRegExp("\%\.[1-9]{1,2}f")
+ for p, j in zip(params, range(len(params))):
+ try:
+ i += 1 + qstring[i + 1:].indexOf("%")
+ except NameError:
+ i = qstring.indexOf("%")
+ if i == reg.indexIn(qstring):
+ precision = reg.cap(0).split('.')[1].split('f')[0]
+ qstring = qstring[:i + 2 + len(precision)].\
+ replace("%." + precision, "%" + unicode(1 + j)) + \
+ qstring[i + 3 + len(precision):]
+ qstring=regex.sub("{}",qstring)
+ #qstring = qstring.format(QString.number(float(params[j]), 'f', int(precision)))
+ qstring = qstring.format(float(params[j]))
+ else:
+ qstring = qstring[:i + 1].replace("%", "%" + unicode(1 + j)) + \
+ qstring[i + 2:]
+ if isinstance(params[j], unicode):
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format(params[j])
+ elif isinstance(params[j], float):
+ qstring=regex.sub("{}",qstring)
+ #qstring = qstring.format(QString.number(params[j], 'f',\ len(unicode(params[j]).\
+ # split('.')[1])))
+ qstring = qstring.format(params[j])
+ elif isinstance(params[j], int):
+ qstring=regex.sub("{}",qstring)
+ #qstring = qstring.format(QString.number(params[j], 10))
+ qstring = qstring.format(params[j])
+ elif isinstance(params[j], list):
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format(repr(params[j]))
+ else:
+ raise EficasException("TypeError: i18n.translation: \
+ Unicode, list or number expected!")
+ return qstring
+
+def _reformat_qstring_from_dict(qstring, params):
+ """
+ _reformat_qstring_from_dict(string, dict) -> string
+
+ Module-internal method.
+ Returns a formatted string from an unformatted string
+ and a dictionary specifying the parameters of the string.
+ """
+ from PyQt5.QtCore import QRegExp
+ for p, j in zip(params, range(len(params))):
+ p_reg = QRegExp("\%\("+ p + "\)\.[1-9]{1,2}f")
+ p_index = p_reg.indexIn(qstring)
+ if p_index != -1:
+ precision = p_reg.cap(0).split('.')[1].split('f')[0]
+ #qstring = qstring.replace("%(" + p + ")." + precision + "f",\
+ # "%" + unicode(1 + j)).\
+ # arg(QString.number(float(params[p]), \
+ # 'f', \
+ # int(precision)))
+ qstring = qstring.replace("%(" + p + ")." + precision + "f","%" + unicode(1 + j))
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format(float(params[p]))
+ else:
+ qstring.remove(QRegExp("\\)[sdf]{1}"))
+ qstring = qstring.replace("%(" + p, "%" + unicode(1 + j))
+ if isinstance(params[p], unicode):
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format(params[p])
+ elif isinstance(params[p], float):
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format(params[p])
+ #qstring = qstring.format(QString.number(params[p], 'f', \
+ # len(unicode(params[p]).split('.')[1])))
+ elif isinstance(params[p], int):
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format(params[p])
+ elif isinstance(params[p], list):
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format(repr(params[p]))
+ else:
+ raise EficasException("TypeError: i18n.translation: \
+ Improper string parameter type.")
+ return qstring
+
+def _reformat_qstring_from_atom(qstring, params):
+ """
+ _reformat_qstring_from_atom(string, int-or-float) -> string
+
+ Module-internal method.
+ Returns a formatted string from an unformatted string
+ and an integer or a float specifying the parameter of
+ the string.
+ """
+ from PyQt5.QtCore import QRegExp
+ reg = QRegExp("\%\.[1-9]{1,2}f")
+ if qstring.count("%") == 0:
+ qstring.append("%1")
+ try:
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format(unicode(params))
+ except AttributeError:
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format(params)
+ elif qstring.count("%") == 1:
+ i = qstring.indexOf("%")
+ if i == reg.indexIn(qstring):
+ precision = reg.cap(0).split('.')[1].split('f')[0]
+ qstring = qstring[: i + 2 + len(precision)].\
+ replace("%." + precision, "%1") + \
+ qstring[i + 3 + len(precision):]
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format((params))
+ #qstring = qstring.format(QString.number(float(params), 'f',\
+ # int(precision)))
+ else:
+ qstring = qstring[:i + 1].replace("%", "%1") + \
+ qstring[i + 2:]
+ if isinstance(params, (unicode, str)):
+ qstring = qstring.format(_preprocess_atom(params))
+ elif isinstance(params, float):
+ #qstring = qstring.format(QString.number(params, 'f', \
+ # len(unicode(params).\
+ # split('.')[1])))
+ qstring = qstring.format(params)
+ elif isinstance(params, int):
+ qstring=regex.sub("{}",qstring)
+ #qstring = qstring.format(QString.number(params, 10))
+ qstring = qstring.format(params)
+ else:
+ raise EficasException("TypeError: i18n.translation: Unicode, \
+ string or number expected!")
+ return qstring
+
+def _reformat_qstring_from_list(qstring, params):
+ """
+ _reformat_qstring_from_list(string, tuple) -> string
+
+ Module-internal method.
+ Returns a formatted string from an unformatted string
+ and a list whose concatenation specifies the parameter
+ of the string.
+ """
+ # XXX to add further functionality, e.g. list processing
+ # when ``%`` not at the end.
+ if qstring.count("%") == 1 and \
+ unicode(qstring).strip()[:-1].endswith("%"):
+ qstring = qstring[:qstring.indexOf("%") + 1].append("1")
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format(u' '.join(map(unicode, params)))
+ elif qstring.count("%") == 0:
+ qstring.append("%1")
+ qstring=regex.sub("{}",qstring)
+ qstring = qstring.format(u' '.join(map(unicode, params)))
+ else:
+ raise EficasException("ValueError: i18n.translation: \
+ At most one '%' expected!")
+ return qstring
+
+def _preprocess_atom(string):
+ """
+ _preprocess_atom(string-or-number-or-unicode) -> unicode
+ Test if input is a Unicode object or a number; if so, then return it;
+ otherwise, test if the input is a string; if so, then try to create
+ a Unicode object out of it. To this end, assume the string is encoded
+ in utf-8; if this fails, then assume the string is encoded in Latin-9.
+ """
+ if isinstance(string, (unicode, int, float, complex)):
+ return string
+ elif isinstance(string, str):
+ return _str_to_unicode(string)
+ else:
+ raise EficasException("TypeError: Expected number, string or\
+ Unicode object!")
+
+def _str_to_unicode(string):
+ """
+ _str_to_unicode(string) -> unicode
+ Tries to create a Unicode object out of the input string; assumes
+ the string is UTF-8 encoded; if not, then assume the string is
+ Latin-9 encoded.
+ """
+ try:
+ string = unicode(string, "utf-8")
+ except UnicodeDecodeError:
+ try:
+ string = unicode(string, "iso-8859-15")
+ except UnicodeDecodeError:
+ raise EficasException("UnicodeDecodeError: UTF-8, Latin-1 \
+ or Latin-9 expected")
+ return string
+
+def tr(string, *args):
+ """tr(string-or-unicode, iterable-or-float-or-int) -> unicode
+ tr(string-or-unicode) -> unicode
+
+ Returns a formatted Unicode object from an unformatted
+ string or Unicode object with formatting specifications, and,
+ optionally, an iterable or an int or float.
+ Lets Python do the string formatting."""
+ from PyQt5.QtWidgets import QApplication
+ string = _preprocess_atom(string)
+ if len(args) == 0:
+ r = unicode(QApplication.translate("@default", string))
+ elif len(args) == 1:
+ if isinstance(args[0], (dict, tuple)):
+ if string.count("%") == len(args[0]):
+ r = unicode(QApplication.translate("@default", string)) % args[0]
+ elif string.count("%") == 1 and string.count("%(") == 0:
+ r = unicode(QApplication.translate("@default", string))\
+ % _preprocess_atom(repr(args[0]))
+ elif string.count("%") == 0:
+ r = (unicode(QApplication.translate("@default", string)), args[0])
+ else:
+ raise EficasException("ValueError: i18n.translate.tr: \
+ Improper input string formatting")
+ elif isinstance(args[0], (unicode, str, int, float, complex)):
+ if string.count("%") == 1:
+ r = unicode(QApplication.translate("@default", string))\
+ % _preprocess_atom(args[0])
+ else:
+ r = unicode(QApplication.translate("@default", string)) +\
+ unicode(_preprocess_atom(args[0]))
+ elif isinstance(args[0], list) or args[0] is None:
+ if string.count("%") == 1:
+ r = unicode(QApplication.translate("@default", string))\
+ % _preprocess_atom(repr(args[0]))
+ else:
+ r = (unicode(QApplication.translate("@default", string)), args[0])
+
+ else:
+ raise EficasException("ValueError: i18n.translation.tr: \
+ Wrong type for formatted string \
+ arguments: %s" % type(args[0]))
+ else:
+ raise EficasException("ValueError: i18n.translation.tr: \
+ Wrong formatted string arguments")
+ return r
+
+
+def tr_qt(string, *args):
+ """tr_qt(string, iterable-or-float-or-int) -> unicode
+ t_qtr(string) -> unicode
+
+ Returns a formatted string from an unformatted
+ Unicode string with formatting specifications, and,
+ optionally, an iterable or an int or float.
+ Lets PyQt4 do the string formatting. To this end,
+ a conversion from Python to Qt string formatting
+ syntax is performed."""
+ string = _preprocess_atom(string)
+ from PyQt5.QtWidgets import QApplication
+ if len(args) == 0:
+ r = QApplication.translate("@default", string)
+ elif len(args) == 1:
+ r = QApplication.translate("@default", string)
+ if isinstance(args[0], (dict, tuple)):
+ if r.count("%") == len(args[0]):
+ if isinstance(args[0], dict):
+ r = _reformat_qstring_from_dict(r, args[0])
+ elif isinstance(args[0], tuple):
+ r = _reformat_qstring_from_tuple(r, args[0])
+ # XXX Pay attention to this: distinguish between tuple,
+ # dict and dict with key given in string.
+ elif r.count("%") in range(2) and r.count("%(") == 0:
+ r = _reformat_qstring_from_atom(r, _preproces_atom(repr(args[0])))
+ else:
+ raise EficasException("ValueError: i18n.translation.tr_qt: \
+ Improper formatting string parameters")
+ elif isinstance(args[0], (unicode, str, int, float, complex)):
+ r = _reformat_qstring_from_atom(r, args[0])
+ elif isinstance(args[0], list):
+ r = _reformat_qstring_from_list(r, args[0])
+ elif args[0] is None:
+ r = _reformat_qstring_from_atom(r, _preprocess_string_from_atom(repr(args[0])))
+ else:
+ raise EficasException("ValueError: i18n.translation.tr_qt: \
+ Wrong string formatting parameter types")
+ else:
+ raise EficasException("ValueError: i18n.translation.tr_qt: \
+ Improper formatted string parameter set")
+ return unicode(r)
+
+
+if __name__ == "__main__":
+ import sys
+ tr(sys.argv[1], *args)
+ tr_qt(sys.argv[1], *args)
diff --git a/InterfaceQT4/browser.py b/InterfaceQT4/browser.py
index 2745b6b1..ca143810 100644
--- a/InterfaceQT4/browser.py
+++ b/InterfaceQT4/browser.py
@@ -22,10 +22,15 @@ import string,re
import types,sys,os
import traceback
import typeNode
-import pdb
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+#import pdb
+
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QTreeWidget , QTreeWidgetItem
+ from PyQt5.QtGui import QIcon
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
from Extensions.i18n import tr
from gereRegles import GereRegles
from monChoixCommande import MonChoixCommande
@@ -56,9 +61,14 @@ class JDCTree( QTreeWidget,GereRegles ):
self.itemCourrant=None
- self.connect(self, SIGNAL("itemClicked ( QTreeWidgetItem * ,int) "), self.handleOnItem)
- self.connect(self, SIGNAL("itemCollapsed ( QTreeWidgetItem *) "), self.handleCollapsedItem)
- self.connect(self, SIGNAL("itemExpanded ( QTreeWidgetItem *) "), self.handleExpandedItem)
+ if monEnvQT5 :
+ self.itemClicked.connect(self.handleOnItem)
+ self.itemCollapsed.connect(self.handleCollapsedItem)
+ self.itemExpanded.connect(self.handleExpandedItem)
+ else :
+ self.connect(self, SIGNAL("itemClicked ( QTreeWidgetItem * ,int) "), self.handleOnItem)
+ self.connect(self, SIGNAL("itemCollapsed ( QTreeWidgetItem *) "), self.handleCollapsedItem)
+ self.connect(self, SIGNAL("itemExpanded ( QTreeWidgetItem *) "), self.handleExpandedItem)
#PNPNPN verifier dans quel cas on se trouve : affiche l arbre ou la commande
self.node_selected=self.racine
@@ -199,14 +209,18 @@ class JDCNode(QTreeWidgetItem,GereRegles):
from InterfaceQT4 import compoparam
from InterfaceQT4 import composimp
if (isinstance(self.item,compocomm.COMMTreeItem)) : name=tr("Commentaire")
- elif (isinstance(self.item,compoparam.PARAMTreeItem)) : name=self.appliEficas.trUtf8(str(item.GetLabelText()[0]))
- else: name = self.appliEficas.trUtf8(str(tr( item.nom))+" :")
- value = self.appliEficas.trUtf8(str( item.GetText() ) )
+ elif (isinstance(self.item,compoparam.PARAMTreeItem)) : name=tr(str(item.GetLabelText()[0]))
+ else: name = tr(str(tr( item.nom))+" :")
+ value = tr(str( item.GetText() ) )
- mesColonnes=QStringList()
- if self.editor.enteteQTree=='complet': mesColonnes << name << value
- else : mesColonnes << name
+ if monEnvQT5:
+ if self.editor.enteteQTree=='complet':mesColonnes=(name,value)
+ else : mesColonnes=(name,)
+ else :
+ mesColonnes=QStringList()
+ if self.editor.enteteQTree=='complet': mesColonnes << name << value
+ else : mesColonnes << name
if self.treeParent.plie==True :
self.plie = True
@@ -233,10 +247,15 @@ class JDCNode(QTreeWidgetItem,GereRegles):
else :
QTreeWidgetItem.__init__(self,self.treeParent,mesColonnes)
- self.setToolTip(0,QString(self.item.get_fr()))
- self.setToolTip(1,QString(self.item.get_fr()))
+ if monEnvQT5 :
+ self.setToolTip(0,self.item.get_fr())
+ self.setToolTip(1,self.item.get_fr())
+ repIcon=self.appliEficas.repIcon
+ else :
+ self.setToolTip(0,QString(self.item.get_fr()))
+ self.setToolTip(1,QString(self.item.get_fr()))
+ repIcon=QString(self.appliEficas.repIcon)
- repIcon=QString(self.appliEficas.repIcon)
monIcone = QIcon(repIcon+"/" +self.item.GetIconName() + ".png")
self.setIcon(0,monIcone)
@@ -624,7 +643,8 @@ class JDCNode(QTreeWidgetItem,GereRegles):
"""Cette methode remet a jour la validite du noeud (icone)
Elle appelle isvalid
"""
- repIcon=QString(self.appliEficas.repIcon)
+ if monEnvQT5 : repIcon=self.appliEficas.repIcon
+ else : repIcon=QString(self.appliEficas.repIcon)
monIcone = QIcon(repIcon+"/" +self.item.GetIconName() + ".png")
self.setIcon(0,monIcone)
diff --git a/InterfaceQT4/compobloc.py b/InterfaceQT4/compobloc.py
index cd1c1e29..bed58457 100644
--- a/InterfaceQT4/compobloc.py
+++ b/InterfaceQT4/compobloc.py
@@ -18,8 +18,7 @@
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-from PyQt4 import *
-from PyQt4.QtGui import *
+
from Editeur import Objecttreeitem
import compofact
diff --git a/InterfaceQT4/compocomm.py b/InterfaceQT4/compocomm.py
index e87cb443..424baf7c 100644
--- a/InterfaceQT4/compocomm.py
+++ b/InterfaceQT4/compocomm.py
@@ -18,10 +18,15 @@
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
import string
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QAction
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
from Editeur import Objecttreeitem
import browser
import typeNode
@@ -39,7 +44,8 @@ class Node(browser.JDCNode,typeNode.PopUpMenuNodePartiel):
def createPopUpMenu(self):
typeNode.PopUpMenuNodePartiel.createPopUpMenu(self)
self.Decommente = QAction(tr("Decommenter"),self.tree)
- self.tree.connect(self.Decommente,SIGNAL("triggered()"),self.Decommenter)
+ if monEnvQT5 : self.tree.connect(self.Decommente,SIGNAL("triggered()"),self.Decommenter)
+ else : self.Decommente.triggered(self.Decommenter)
self.Decommente.setStatusTip(tr("Decommente la commande "))
if hasattr(self.item,'uncomment'):
diff --git a/InterfaceQT4/compofact.py b/InterfaceQT4/compofact.py
index c5ee1cdd..ab893a6b 100644
--- a/InterfaceQT4/compofact.py
+++ b/InterfaceQT4/compofact.py
@@ -18,9 +18,6 @@
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
import browser
import typeNode
from Extensions.i18n import tr
diff --git a/InterfaceQT4/compomacro.py b/InterfaceQT4/compomacro.py
index 2bba03e8..e5e6162e 100644
--- a/InterfaceQT4/compomacro.py
+++ b/InterfaceQT4/compomacro.py
@@ -29,8 +29,14 @@ from Extensions.i18n import tr
import compooper
import browser
import typeNode
-from PyQt4.QtGui import QAction
-from PyQt4.QtCore import Qt, SIGNAL, QVariant
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QAction
+ from PyQt5.QtCore import Qt
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
class MACRONode(browser.JDCNode,typeNode.PopUpMenuNode):
@@ -44,7 +50,10 @@ class MACRONode(browser.JDCNode,typeNode.PopUpMenuNode):
typeNode.PopUpMenuNode.createPopUpMenu(self)
if ("AFFE_CARA_ELEM" in self.item.get_genealogie()) and self.editor.salome:
self.ViewElt = QAction(tr('View3D'),self.tree)
- self.tree.connect(self.ViewElt,SIGNAL("triggered()"),self.view3D)
+ if monEnvQT5:
+ self.ViewElt.triggered.connect(self.View3D)
+ else :
+ self.tree.connect(self.ViewElt,SIGNAL("triggered()"),self.view3D)
self.ViewElt.setStatusTip(tr("affiche dans Geom les elements de structure"))
self.menu.addAction(self.ViewElt)
if self.item.isvalid() :
diff --git a/InterfaceQT4/compooper.py b/InterfaceQT4/compooper.py
index fb3020de..9978be11 100644
--- a/InterfaceQT4/compooper.py
+++ b/InterfaceQT4/compooper.py
@@ -19,9 +19,15 @@
#
import os
import tempfile
-from PyQt4.QtGui import QMessageBox, QAction, QApplication, QCursor
-from PyQt4.QtGui import *
-from PyQt4.QtCore import Qt, SIGNAL, QVariant
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QMessageBox, QAction, QApplication
+ from PyQt5.QtGui import QCursor
+ from PyQt5.QtCore import Qt
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
from Extensions.i18n import tr
from Extensions.eficas_exception import EficasException
@@ -74,7 +80,8 @@ class Node(browser.JDCNode, typeNode.PopUpMenuNode):
self.ViewElt.setEnabled(0)
if self.item.get_nom() == "DISTRIBUTION" :
self.Graphe = QAction(tr('Graphique'),self.tree)
- self.tree.connect(self.Graphe,SIGNAL("triggered()"),self.viewPng)
+ if monEnvQT5 : self.Graphe.triggered.connect(self.viewPng)
+ else : self.tree.connect(self.Graphe,SIGNAL("triggered()"),self.viewPng)
self.Graphe.setStatusTip(tr("affiche la distribution "))
self.menu.addAction(self.Graphe)
if self.item.isvalid() :
diff --git a/InterfaceQT4/configuration.py b/InterfaceQT4/configuration.py
index db417830..97b46c0d 100644
--- a/InterfaceQT4/configuration.py
+++ b/InterfaceQT4/configuration.py
@@ -23,7 +23,11 @@
# Modules Python
import os, sys, string, types, re
import traceback
-from PyQt4.QtGui import QMessageBox
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QMessageBox
+else :
+ from PyQt4.QtGui import QMessageBox
from Editeur.utils import read_file
from Extensions.i18n import tr
diff --git a/InterfaceQT4/determine.py b/InterfaceQT4/determine.py
new file mode 100644
index 00000000..f115eae5
--- /dev/null
+++ b/InterfaceQT4/determine.py
@@ -0,0 +1,23 @@
+import os
+
+class envQT(object):
+ _instance = None
+ def __new__(cls, *args, **kwargs):
+ if not cls._instance:
+ cls._instance = super(envQT, cls).__new__(
+ cls, *args, **kwargs)
+
+ return cls._instance
+
+ def __init__(self):
+ if hasattr(self,'inQt5') : return
+ if 'PYQT_ROOT_DIR' in os.environ.keys(): qt=os.environ['PYQT_ROOT_DIR']
+ else : qt="Pyqt4"
+ if 'Pyqt-5' in qt : self.inQt5=True
+ else : self.inQt5=False
+
+
+monEnvQT5=envQT().inQt5
+if __name__=='__main__':
+ inQt5_1=envQT().inQt5
+ inQt5_2=envQT().inQt5
diff --git a/InterfaceQT4/editor.py b/InterfaceQT4/editor.py
index 6562ba77..076c60a2 100755
--- a/InterfaceQT4/editor.py
+++ b/InterfaceQT4/editor.py
@@ -20,9 +20,15 @@
import types,sys,os, re
import subprocess
import traceback
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QWidget, QMessageBox, QFileDialog, QApplication
+ from PyQt5.QtGui import QPalette
+ from PyQt5.QtCore import QProcess, QFileInfo, QTimer, Qt
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
import time
import pdb
from datetime import date
@@ -37,7 +43,6 @@ from Editeur import comploader
from Editeur import Objecttreeitem
from desBaseWidget import Ui_baseWidget
from monViewTexte import ViewText
-from monViewTexte import ViewText2
from monWidgetCreeParam import MonWidgetCreeParam
import browser
import readercata
@@ -46,7 +51,7 @@ DictExtensions= {"MAP" : ".map"}
-class JDCEditor(Ui_baseWidget,QtGui.QWidget):
+class JDCEditor(Ui_baseWidget,QWidget):
# ----------------------------------------- #
"""
Editeur de jdc
@@ -55,7 +60,7 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
def __init__ (self,appli,fichier = None, jdc = None, QWParent=None, units = None, include=0 , vm=None):
#----------------------------------------------------------------------------------------------------------#
- QtGui.QWidget.__init__(self,None)
+ QWidget.__init__(self,None)
self.setupUi(self)
self.widgetOptionnel=None
self.fenetreCentraleAffichee=None
@@ -194,7 +199,7 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
txt_exception = self.jdc.cr.get_mess_exception()
if txt_exception:
self.jdc = None
- qApp.restoreOverrideCursor()
+ QApplication.restoreOverrideCursor()
self.affiche_infos(tr("Erreur fatale au chargement de %s",str(fichier)),Qt.red)
if (self.appliEficas.ssIhm == False) : QMessageBox.critical( self, tr("Erreur fatale au chargement d'un fichier"), txt_exception)
else:
@@ -397,8 +402,12 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
f=open(nomFichier,'w')
f.write(txt)
f.close()
- self.connect(self.monExe, SIGNAL("readyReadStandardOutput()"), self.readFromStdOut )
- self.connect(self.monExe, SIGNAL("readyReadStandardError()"), self.readFromStdErr )
+ if monEnvQT5 :
+ self.monExe.readyReadStandardOutput.connect( self.readFromStdOut)
+ self.monExe.readyReadStandardError.connect( self.readFromStdErr)
+ else :
+ self.connect(self.monExe, SIGNAL("readyReadStandardOutput()"), self.readFromStdOutQT4 )
+ self.connect(self.monExe, SIGNAL("readyReadStandardError()"), self.readFromStdErrQT4 )
exe='sh ' + nomFichier
self.monExe.start(exe)
self.monExe.closeWriteChannel()
@@ -409,12 +418,19 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
except :
pass
-
def readFromStdErr(self):
+ a=self.monExe.readAllStandardError()
+ self.w.view.append(str(a.data(),len(a)))
+
+ def readFromStdErr(self) :
+ a=self.monExe.readAllStandardOutput()
+ self.w.view.append(str(a.data(),len(a)))
+
+ def readFromStdErrQT4(self):
a=self.monExe.readAllStandardError()
self.w.view.append(QString.fromUtf8(a.data(),len(a))) ;
- def readFromStdOut(self) :
+ def readFromStdOutQT4(self) :
a=self.monExe.readAllStandardOutput()
self.w.view.append(QString.fromUtf8(a.data(),len(a))) ;
@@ -469,10 +485,9 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
#----------------------------------------------#
if self.sb:
mapalette=self.sb.palette()
- from PyQt4.QtGui import QPalette
mapalette.setColor( QPalette.WindowText, couleur )
self.sb.setPalette( mapalette );
- self.sb.showMessage(QString.fromUtf8(message),4000)
+ self.sb.showMessage(message,4000)
self.couleur=couleur
#------------------------------#
@@ -753,7 +768,7 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
fichier = QFileDialog.getOpenFileName(self.appliEficas,
tr('Ouvrir Fichier'),
self.appliEficas.CONFIGURATION.savedir,
- self.appliEficas.trUtf8('Wrapper Files (*.xml);;''All Files (*)'))
+ tr('Wrapper Files (*.xml);;''All Files (*)'))
return fichier
#--------------------------------------------------#
@@ -762,7 +777,7 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
"""
Public slot to write the text to a file.
- @param fn filename to write to (string or QString)
+ @param fn filename to write to string
@return flag indicating success
"""
@@ -785,9 +800,8 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
f.close()
return 1
except IOError, why:
- QMessageBox.critical(self, self.trUtf8('Save File'),
- self.trUtf8('The file %1 could not be saved.
Reason: %2')
- .arg(unicode(fn)).arg(str(why)))
+ QMessageBox.critical(self, tr('Sauvegarde du Fichier'),
+ tr('Le fichier')+str(fn) + tr('n a pas pu etre sauvegarde : ') + str(why))
return 0
#-----------------------------------------------------------#
@@ -928,9 +942,9 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
#-----------------------------------------------------#
if DictExtensions.has_key(self.appli.code) :
chaine1="JDC (*"+DictExtensions[self.appli.code]+");;"
- extensions= self.trUtf8(chaine1+ "All Files (*)")
+ extensions= tr(chaine1+ "All Files (*)")
else :
- extensions= self.trUtf8("JDC (*.comm);;" "All Files (*)")
+ extensions= tr("JDC (*.comm);;" "All Files (*)")
if self.appli.code == "MAP" :
extensions = extensions + ";; Run (*.input);;"
@@ -940,6 +954,9 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
extensions,None,
QFileDialog.DontConfirmOverwrite)
if fn.isNull(): return (0, None)
+ if fn == None : return (0, None)
+ if monEnvQT5 : fn=fn[0]
+
ext = QFileInfo(fn).suffix()
if ext.isEmpty(): fn.append(extension)
@@ -948,7 +965,7 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
tr("Sauvegarde du Fichier"),
tr("Le fichier %s existe deja.",str(fn)),
tr("&Ecraser"),
- self.trUtf8("&Abandonner"))
+ tr("&Abandonner"))
if abort == 1 : return (0, "")
return (1,fn)
@@ -989,15 +1006,19 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
for b in c.children():
if isinstance(b,QPushButton):
avant=b.text()
- if avant.toLatin1()=="&Open":
- b.setText("Save")
- mesFiltres=QStringList()
- mesFiltres << "input Map (*.input)" << "All Files (*)"
+ if (not monEnvQT5) and avant.toLatin1()=="&Open": b.setText("Save")
+ if monEnvQT5 and avant=="&Open": b.setText("Save")
+ if monEnvQT5 :
+ mesFiltres= "input Map (*.input);;All Files (*)"
+ else :
+ mesFiltres=QStringList()
+ mesFiltres << "input Map (*.input)" << "All Files (*)"
monDialog.setNameFilters(mesFiltres)
if monNomFichier!="" : monDialog.selectFile(monNomFichier)
BOk=monDialog.exec_()
if BOk==0: return
- fn=str(monDialog.selectedFiles()[0].toLatin1())
+ if monEnvQT5 : fn=str(monDialog.selectedFiles()[0])
+ else : fn=str(monDialog.selectedFiles()[0].toLatin1())
if fn == "" or fn == None : return
if not fn.endswith(".input"):
fn += ".input"
@@ -1185,14 +1206,15 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
texte = tr("Le fichier %s contient une commande POURSUITE\n", fic_origine)
texte = texte+tr('Donnez le nom du fichier dont vous \n voulez faire une poursuite')
- QMessageBox.information( self, titre,QString.fromUtf8(texte))
+ QMessageBox.information( self, titre,texte)
fn = QFileDialog.getOpenFileName(self.appliEficas,
titre,
self.appliEficas.CONFIGURATION.savedir)
- if fn.isNull():
# ce retour est impose par le get_file d'I_JDC
- return None," "
+ if fn.isNull(): return None," "
+ if not fn : return (0, " ")
+ if monEnvQT5 : fn=fn[0]
ulfile = os.path.abspath(unicode(fn))
self.appliEficas.CONFIGURATION.savedir=os.path.split(ulfile)[0]
@@ -1320,7 +1342,8 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
QSfichier = QFileDialog.getOpenFileName(self.appliEficas,
caption='Fichier Med',
filter=extensions)
- self.fichierMED=str(QSfichier.toLatin1())
+ if monEnvQT5 : QSfichier=QSfichier[0]
+ self.fichierMED=QSfichier
from acquiertGroupes import getGroupes
erreur,self.listeGroupes,self.nomMaillage,self.dicoCoord=getGroupes(self.fichierMED)
if erreur != "" : print "a traiter"
@@ -1349,7 +1372,7 @@ class JDCEditor(Ui_baseWidget,QtGui.QWidget):
#---------------------------#
QSfichier=self.openfile.selectedFiles()[0]
- self.fichierMED=str(QSfichier.toLatin1())
+ self.fichierMED=str(QSfichier)
from acquiertGroupes import getGroupes
erreur,self.listeGroupes,self.nomMaillage=getGroupes(self.fichierMED)
if erreur != "" : print "a traiter"
diff --git a/InterfaceQT4/eficas_go.py b/InterfaceQT4/eficas_go.py
index a4a05b35..3416834e 100644
--- a/InterfaceQT4/eficas_go.py
+++ b/InterfaceQT4/eficas_go.py
@@ -22,14 +22,19 @@
# Modules Python
import sys,os
repIni=os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)),".."))
-ihmQTDir=os.path.join(repIni,"UiQT4")
+from determine import monEnvQT5
+if monEnvQT5 :
+ ihmQTDir=os.path.join(repIni,"UiQT5")
+ from PyQt5.QtWidgets import QApplication
+else :
+ ihmQTDir=os.path.join(repIni,"UiQT4")
+ from PyQt4.QtGui import QApplication
editeurDir=os.path.join(repIni,"Editeur")
ihmDir=os.path.join(repIni,"InterfaceQT4")
if ihmDir not in sys.path : sys.path.append(ihmDir)
if ihmQTDir not in sys.path : sys.path.append(ihmQTDir)
if editeurDir not in sys.path :sys.path.append(editeurDir)
-from PyQt4.QtGui import *
def lance_eficas(code=None,fichier=None,ssCode=None,multi=False,langue='en'):
"""
diff --git a/InterfaceQT4/feuille.py b/InterfaceQT4/feuille.py
index 53e928e1..d314472a 100644
--- a/InterfaceQT4/feuille.py
+++ b/InterfaceQT4/feuille.py
@@ -21,11 +21,16 @@
import string,types,os
import traceback
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QToolButton ,QWidget
+ from PyQt5.QtGui import QFont, QFontMetrics
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
from Extensions.i18n import tr
+
from gereIcones import ContientIcones
from gereIcones import FacultatifOuOptionnel
from qtSaisie import SaisieValeur
@@ -123,7 +128,7 @@ class Feuille(QWidget,ContientIcones,SaisieValeur,FacultatifOuOptionnel):
else :
commentaire=tr("Entrez entre ")+str(mc.min)+(" et ")+str(mc.max) +" " +tr(d_aides[type])+'\n'
aideval=self.node.item.aide()
- commentaire=commentaire + QString.toUtf8(QString(aideval))
+ commentaire=commentaire + tr(aideval)
self.monCommentaireLabel.setText(str(commentaire))
return str(commentaire)
diff --git a/InterfaceQT4/gereIcones.py b/InterfaceQT4/gereIcones.py
index 590763b6..0d1b912a 100644
--- a/InterfaceQT4/gereIcones.py
+++ b/InterfaceQT4/gereIcones.py
@@ -20,10 +20,17 @@
# Modules Python
import string,types,os,re,sys
import traceback
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QMessageBox, QFileDialog
+ from PyQt5.QtGui import QIcon
+ from PyQt5.QtCore import QFileInfo, Qt
+
+else:
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
listeSuffixe=('bmp','png','jpg' ,'txt','med')
@@ -41,7 +48,8 @@ class FacultatifOuOptionnel:
else :
icon3=QIcon(self.repIcon+"/lettreRblanc30.png")
self.RBRegle.setIcon(icon3)
- self.connect( self.RBRegle,SIGNAL("clicked()"),self.viewRegles)
+ if monEnvQT5 :self.RBRegle.clicked.connect(self.viewRegles)
+ else : self.connect( self.RBRegle,SIGNAL("clicked()"),self.viewRegles)
cle_doc=None
if not hasattr(self,"RBInfo"):return
@@ -54,6 +62,7 @@ class FacultatifOuOptionnel:
else :
self.cle_doc = self.node.item.get_docu()
if self.cle_doc == None : self.RBInfo.close()
+ elif monEnvQT5 : self.RBInfo.clicked.connect (self.viewDoc)
else : self.connect (self.RBInfo,SIGNAL("clicked()"),self.viewDoc)
@@ -90,7 +99,8 @@ class FacultatifOuOptionnel:
return
icon=QIcon(self.repIcon+"/deleteRond.png")
self.RBPoubelle.setIcon(icon)
- self.connect(self.RBPoubelle,SIGNAL("clicked()"),self.aDetruire)
+ if monEnvQT5 : self.RBPoubelle.clicked.connect(self.aDetruire)
+ else : self.connect(self.RBPoubelle,SIGNAL("clicked()"),self.aDetruire)
def setIconesSalome(self):
if not (hasattr(self,"RBSalome")): return
@@ -104,7 +114,8 @@ class FacultatifOuOptionnel:
if enable_salome_selection:
icon=QIcon(self.repIcon+"/flecheSalome.png")
self.RBSalome.setIcon(icon)
- self.connect(self.RBSalome,SIGNAL("pressed()"),self.BSalomePressed)
+ if monEnvQT5 : self.RBSalome.pressed.connect(self.BSalomePressed)
+ else : self.connect(self.RBSalome,SIGNAL("pressed()"),self.BSalomePressed)
#PNPN --> Telemac A revoir surement
# cela ou le catalogue grpma ou salomeEntry
@@ -113,7 +124,8 @@ class FacultatifOuOptionnel:
else :
icon1=QIcon(self.repIcon+"/eye.png")
self.RBSalomeVue.setIcon(icon1)
- self.connect(self.RBSalomeVue,SIGNAL("clicked()"),self.BView2DPressed)
+ if monEnvQT5 : self.RBSalomeVue.clicked.connect(self.BView2DPressed)
+ else : self.connect(self.RBSalomeVue,SIGNAL("clicked()"),self.BView2DPressed)
else:
self.RBSalome.close()
self.RBSalomeVue.close()
@@ -125,11 +137,14 @@ class FacultatifOuOptionnel:
mctype = mc.type[0]
if mctype == "Repertoire":
self.BRepertoire=self.BFichier
- self.connect(self.BRepertoire,SIGNAL("clicked()"),self.BRepertoirePressed)
+ if monEnvQT5 : self.BRepertoire.clicked.connect(self.BRepertoirePressed)
+ else : self.connect(self.BRepertoire,SIGNAL("clicked()"),self.BRepertoirePressed)
self.BVisuFichier.close()
else :
- self.connect(self.BFichier,SIGNAL("clicked()"),self.BFichierPressed)
- self.connect(self.BVisuFichier,SIGNAL("clicked()"),self.BFichierVisu)
+ if monEnvQT5 : self.BFichier.clicked.connect(self.BFichierPressed)
+ else : self.connect(self.BFichier,SIGNAL("clicked()"),self.BFichierPressed)
+ if monEnvQT5 : self.BVisuFichier.clicked.connect(self.BFichierVisu)
+ else : self.connect(self.BVisuFichier,SIGNAL("clicked()"),self.BFichierVisu)
@@ -219,7 +234,7 @@ class ContientIcones:
elif hasattr(mctype[0], "filters"):
filters = mctype[0].filters
else:
- filters = QString()
+ filters = None
if len(mctype) > 2 and mctype[2] == "Sauvegarde":
fichier = QFileDialog.getSaveFileName(self.appliEficas,
tr('Sauvegarder Fichier'),
@@ -232,6 +247,7 @@ class ContientIcones:
filters)
if not(fichier.isNull()):
+ if monEnvQT5 : fichier=fichier[0]
ulfile = os.path.abspath(unicode(fichier))
self.appliEficas.CONFIGURATION.savedir=os.path.split(ulfile)[0]
self.lineEditVal.setText(fichier)
@@ -245,7 +261,8 @@ class ContientIcones:
self.BSelectInFile.setObjectName("BSelectInFile")
self.gridLayout.addWidget(self.BSelectInFile,1,1,1,1)
self.BSelectInFile.setText(tr("Selection"))
- self.connect(self.BSelectInFile,SIGNAL("clicked()"),self.BSelectInFilePressed)
+ if monEnvQT5 : self.BSelectInFile.clicked.connect(self.BSelectInFilePressed)
+ else : self.connect(self.BSelectInFile,SIGNAL("clicked()"),self.BSelectInFilePressed)
else :
self.BSelectInFile.setVisible(1)
elif hasattr(self, "BSelectInFile"):
@@ -314,8 +331,8 @@ class ContientIcones:
def BView2DPressed(self):
valeur=self.lineEditVal.text()
- if valeur == QString("") : return
valeur = str(valeur)
+ if valeur == str("") : return
if valeur :
ok, msgError = self.appliEficas.displayShape(valeur)
if not ok:
diff --git a/InterfaceQT4/gereListe.py b/InterfaceQT4/gereListe.py
index d8309912..a0426de0 100644
--- a/InterfaceQT4/gereListe.py
+++ b/InterfaceQT4/gereListe.py
@@ -21,9 +21,14 @@
import string,types,os
import traceback
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QLineEdit, QLabel, QIcon
+ from PyQt5.QtCore import QEvent
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
from Extensions.i18n import tr
from monViewTexte import ViewText
@@ -93,15 +98,23 @@ class GereListe:
# ------------- #
def __init__(self):
- self.connecterSignaux()
+ if monEnvQT5 :self.connecterSignaux()
+ else : self.connecterSignauxQT4()
- def connecterSignaux(self):
+ def connecterSignauxQT4(self):
self.connect(self.RBHaut,SIGNAL("clicked()"),self.hautPushed)
self.connect(self.RBBas,SIGNAL("clicked()"),self.basPushed)
self.connect(self.RBMoins,SIGNAL("clicked()"),self.moinsPushed)
self.connect(self.RBPlus,SIGNAL("clicked()"),self.plusPushed)
self.connect(self.RBVoisListe,SIGNAL("clicked()"),self.voisListePushed)
+ def connecterSignaux(self):
+ self.RBHaut.clicked.connect(self.hautPushed)
+ self.RBBas.clicked.connect(self.basPushed)
+ self.RBMoins.clicked.connect(self.moinsPushed)
+ self.RBPlus.clicked.connect(self.plusPushed)
+ self.RBVoisListe.clicked.connect(self.voisListePushed)
+
def hautPushed(self):
if self.NumLineEditEnCours == 1 : return
else : numEchange=self.NumLineEditEnCours-1
@@ -218,7 +231,8 @@ class GerePlie:
fichier=os.path.join(repIcon, 'minusnode.png')
icon = QIcon(fichier)
self.BFermeListe.setIcon(icon)
- self.connect(self.BFermeListe,SIGNAL("clicked()"), self.selectWidgetPlie)
+ if monEnvQT5 : self.BFermeListe.clicked.connect( self.selectWidgetPlie)
+ else : self.connect(self.BFermeListe,SIGNAL("clicked()"), self.selectWidgetPlie)
def selectWidgetPlie(self):
self.editor.listeDesListesOuvertes.remove(self.node.item)
diff --git a/InterfaceQT4/gereRegles.py b/InterfaceQT4/gereRegles.py
index c2923535..0ef22692 100644
--- a/InterfaceQT4/gereRegles.py
+++ b/InterfaceQT4/gereRegles.py
@@ -18,7 +18,11 @@
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtCore import Qt
+else:
+ from PyQt4.QtCore import *
from monViewRegles import ViewRegles
class GereRegles :
diff --git a/InterfaceQT4/gereTraduction.py b/InterfaceQT4/gereTraduction.py
index fce86785..34011519 100644
--- a/InterfaceQT4/gereTraduction.py
+++ b/InterfaceQT4/gereTraduction.py
@@ -16,9 +16,13 @@
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QFileDialog, QApplication
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
import os
from Extensions.i18n import tr
@@ -37,10 +41,11 @@ def traduction(directPath,editor,version):
fn = QFileDialog.getOpenFileName(
editor.appliEficas,
tr('Traduire Fichier'),
- QString(directPath) ,
+ directPath ,
tr('Fichiers JDC (*.comm);;''Tous les Fichiers (*)'))
+ if monEnvQT5 : fn=fn[0]
FichieraTraduire=str(fn)
if (FichieraTraduire == "" or FichieraTraduire == () ) : return
i=FichieraTraduire.rfind(".")
@@ -53,11 +58,11 @@ def traduction(directPath,editor,version):
os.system("rm -rf "+log)
os.system("rm -rf "+FichierTraduit)
- qApp.setOverrideCursor(QCursor(Qt.WaitCursor))
+ QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
if version == "V9V10" : traduitV9V10.traduc(FichieraTraduire,FichierTraduit,log)
if version == "V10V11" : traduitV10V11.traduc(FichieraTraduire,FichierTraduit,log)
if version == "V11V12" : traduitV11V12.traduc(FichieraTraduire,FichierTraduit,log)
- qApp.setOverrideCursor(QCursor(Qt.ArrowCursor))
+ QApplication.setOverrideCursor(QCursor(Qt.ArrowCursor))
Entete=tr("Fichier Traduit : %s\n\n",str(FichierTraduit))
if os.stat(log)[6] != 0L :
diff --git a/InterfaceQT4/groupe.py b/InterfaceQT4/groupe.py
index c1eb58ca..86b304ec 100644
--- a/InterfaceQT4/groupe.py
+++ b/InterfaceQT4/groupe.py
@@ -19,9 +19,14 @@
# Modules Python
# Modules Eficas
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QWidget
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+from Extensions.i18n import tr
+
from Extensions.i18n import tr
from gereIcones import FacultatifOuOptionnel
import Accas
@@ -29,11 +34,11 @@ import Accas
# Import des panels
-class Groupe(QtGui.QWidget,FacultatifOuOptionnel):
+class Groupe(QWidget,FacultatifOuOptionnel):
"""
"""
def __init__(self,node,editor,parentQt,definition,obj,niveau,commande=None):
- QtGui.QWidget.__init__(self,None)
+ QWidget.__init__(self,None)
self.node=node
self.node.fenetre=self
#print "groupe : ",self.node.item.nom," ",self.node.fenetre
@@ -57,8 +62,10 @@ class Groupe(QtGui.QWidget,FacultatifOuOptionnel):
self.afficheMots()
self.listeMCAAjouter=[]
self.dictMCVenantDesBlocs={}
- if hasattr(self,'RBDeplie') : self.connect(self.RBDeplie,SIGNAL("clicked()"), self.Deplie)
- if hasattr(self,'RBPlie') : self.connect(self.RBPlie,SIGNAL("clicked()"), self.Plie)
+ if hasattr(self,'RBDeplie') and not monEnvQT5 : self.connect(self.RBDeplie,SIGNAL("clicked()"), self.Deplie)
+ if hasattr(self,'RBPlie') and not monEnvQT5: self.connect(self.RBPlie,SIGNAL("clicked()"), self.Plie)
+ if hasattr(self,'RBDeplie') and monEnvQT5: self.RBDeplie.clicked.connect(self.Deplie)
+ if hasattr(self,'RBPlie') and monEnvQT5: self.RBPlie.clicked.connect( self.Plie)
self.setAcceptDrops(True)
#self.donneFocus()
diff --git a/InterfaceQT4/monBoutonValide.py b/InterfaceQT4/monBoutonValide.py
index 7ae919ff..0027be39 100644
--- a/InterfaceQT4/monBoutonValide.py
+++ b/InterfaceQT4/monBoutonValide.py
@@ -20,8 +20,12 @@
#
import re
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QToolButton
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
from Extensions.i18n import tr
class MonBoutonValide(QToolButton) :
diff --git a/InterfaceQT4/monChoixCata.py b/InterfaceQT4/monChoixCata.py
index 1a4199a2..7527606f 100644
--- a/InterfaceQT4/monChoixCata.py
+++ b/InterfaceQT4/monChoixCata.py
@@ -21,14 +21,16 @@
# Modules Eficas
from desChoixCata import Ui_DChoixCata
-from PyQt4 import *
-from PyQt4.QtCore import *
-from PyQt4.QtGui import *
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QDialog
+else:
+ from PyQt4.QtGui import *
from Extensions.i18n import tr
# Import des panels
-class MonChoixCata(Ui_DChoixCata,QtGui.QDialog):
+class MonChoixCata(Ui_DChoixCata,QDialog):
"""
Classe définissant le panel associé aux mots-clés qui demandent
à l'utilisateur de choisir une seule valeur parmi une liste de valeurs
diff --git a/InterfaceQT4/monChoixCode.py b/InterfaceQT4/monChoixCode.py
index fcd19856..e362e581 100644
--- a/InterfaceQT4/monChoixCode.py
+++ b/InterfaceQT4/monChoixCode.py
@@ -22,8 +22,13 @@
import os,sys,re
from desChoixCode import Ui_ChoixCode
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+f monEnvQT5:
+ from PyQt5.QtWidgets import QDialog, QRadioButton
+ from PyQt5.QtGui import QPalette
+ from PyQt5.QtCore import QProcess, QFileInfo, Qt
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
# Import des panels
@@ -41,8 +46,12 @@ class MonChoixCode(Ui_ChoixCode,QDialog):
self.parentAppli=parentAppli
self.verifieInstall()
self.code=None
- self.connect(self.pB_OK,SIGNAL("clicked()"),self.choisitCode)
- self.connect(self.pB_cancel,SIGNAL("clicked()"),self.sortie)
+ if monEnvQT5:
+ self.pB_OK.clicked.connect(self.choisitCode)
+ self.pB_cancel.clicked.connect(self.sortie)
+ else :
+ self.connect(self.pB_OK,SIGNAL("clicked()"),self.choisitCode)
+ self.connect(self.pB_cancel,SIGNAL("clicked()"),self.sortie)
def sortie(self):
QDialog.reject(self)
diff --git a/InterfaceQT4/monChoixCommande.py b/InterfaceQT4/monChoixCommande.py
index aa84ce67..a8cc984e 100644
--- a/InterfaceQT4/monChoixCommande.py
+++ b/InterfaceQT4/monChoixCommande.py
@@ -20,28 +20,33 @@
# Modules Eficas
from desChoixCommandes import Ui_ChoixCommandes
-from PyQt4 import *
-from PyQt4.QtCore import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QWidget, QAction ,QButtonGroup, QRadioButton, QLabel
+ from PyQt5.QtGui import QIcon
+ from PyQt5.QtCore import QSize
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
from Extensions.i18n import tr
import os
# Import des panels
-class MonChoixCommande(Ui_ChoixCommandes,QtGui.QWidget):
+class MonChoixCommande(Ui_ChoixCommandes,QWidget):
"""
"""
def __init__(self,node, jdc_item, editor):
- QtGui.QWidget.__init__(self,None)
+ QWidget.__init__(self,None)
self.setupUi(self)
self.repIcon=os.path.join( os.path.dirname(os.path.abspath(__file__)),'..','Editeur','icons')
iconeFile=os.path.join(self.repIcon,'lettreRblanc30.png')
icon = QIcon(iconeFile)
self.RBRegle.setIcon(icon)
- self.RBRegle.setIconSize(QtCore.QSize(21, 31))
+ self.RBRegle.setIconSize(QSize(21, 31))
self.item = jdc_item
self.node = node
@@ -58,15 +63,26 @@ class MonChoixCommande(Ui_ChoixCommandes,QtGui.QWidget):
#print self.node.tree
- self.connect(self.RBalpha,SIGNAL("clicked()"),self.afficheAlpha)
- self.connect(self.RBGroupe,SIGNAL("clicked()"),self.afficheGroupe)
- self.connect(self.RBOrdre,SIGNAL("clicked()"),self.afficheOrdre)
- self.connect(self.RBClear,SIGNAL("clicked()"),self.clearFiltre)
- self.connect(self.RBCasse,SIGNAL("toggled(bool)"),self.ajouteRadioButtons)
+ if monEnvQT5 :
+ self.RBalpha.clicked.connect(self.afficheAlpha)
+ self.RBGroupe.clicked.connect(self.afficheGroupe)
+ self.RBOrdre.clicked.connect(self.afficheOrdre)
+ self.RBClear.clicked.connect(self.clearFiltre)
+ self.RBCasse.toggled.connect(self.ajouteRadioButtons)
+ self.LEFiltre.returnPressed.connect(self.ajouteRadioButtons)
+ else :
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.afficheAlpha)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.afficheGroupe)
+ self.connect(self.RBOrdre,SIGNAL("clicked()"),self.afficheOrdre)
+ self.connect(self.RBClear,SIGNAL("clicked()"),self.clearFiltre)
+ self.connect(self.RBCasse,SIGNAL("toggled(bool)"),self.ajouteRadioButtons)
+ self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.ajouteRadioButtons)
if self.node.tree.item.get_regles() == () :
self.RBRegle.close()
self.labelRegle.close()
- else : self.connect(self.RBRegle,SIGNAL("clicked()"),self.afficheRegle)
+ else :
+ if monEnvQT5 : self.RBRegle.clicked.connect(self.afficheRegle)
+ else : self.connect(self.RBRegle,SIGNAL("clicked()"),self.afficheRegle)
if self.editor.Ordre_Des_Commandes == None : self.RBOrdre.close()
@@ -76,7 +92,6 @@ class MonChoixCommande(Ui_ChoixCommandes,QtGui.QWidget):
self.editor.widgetOptionnel.close()
self.editor.widgetOptionnel=None
self.name=None
- self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.ajouteRadioButtons)
self.affiche_alpha=0
self.affiche_groupe=0
@@ -176,13 +191,19 @@ class MonChoixCommande(Ui_ChoixCommandes,QtGui.QWidget):
self.buttonGroup.addButton(rbcmd)
self.commandesLayout.addWidget(rbcmd)
rbcmd.mouseDoubleClickEvent=self.mouseDoubleClickEvent
- self.connect(self.buttonGroup, SIGNAL("buttonClicked(QAbstractButton*)"),self.rbClique)
+ if monEnvQT5:
+ self.buttonGroup.buttonClicked.connect(self.rbClique)
+ else :
+ self.connect(self.buttonGroup, SIGNAL("buttonClicked(QAbstractButton*)"),self.rbClique)
elif self.affiche_groupe==1 :
listeGroupes,dictGroupes=self.jdc.get_groups()
for grp in listeGroupes:
if grp == "CACHE" : continue
label=QLabel(self)
- text=QString.fromUtf8('
Groupe : '+tr(grp)+'
')
+ if monEnvQT5 :
+ text=tr('Groupe : '+tr(grp)+'
')
+ else :
+ text=QString.fromUtf8('Groupe : '+tr(grp)+'
')
label.setText(text)
self.listeWidget.append(label)
aAjouter=1
@@ -198,7 +219,10 @@ class MonChoixCommande(Ui_ChoixCommandes,QtGui.QWidget):
self.buttonGroup.addButton(rbcmd)
self.commandesLayout.addWidget(rbcmd)
rbcmd.mouseDoubleClickEvent=self.mouseDoubleClickEvent
- self.connect(self.buttonGroup, SIGNAL("buttonClicked(QAbstractButton*)"),self.rbClique)
+ if monEnvQT5:
+ self.buttonGroup.buttonClicked.connect(self.rbClique)
+ else :
+ self.connect(self.buttonGroup, SIGNAL("buttonClicked(QAbstractButton*)"),self.rbClique)
label2=QLabel(self)
label2.setText(" ")
self.listeWidget.append(label2)
@@ -217,7 +241,10 @@ class MonChoixCommande(Ui_ChoixCommandes,QtGui.QWidget):
self.buttonGroup.addButton(rbcmd)
self.commandesLayout.addWidget(rbcmd)
rbcmd.mouseDoubleClickEvent=self.mouseDoubleClickEvent
- self.connect(self.buttonGroup, SIGNAL("buttonClicked(QAbstractButton*)"),self.rbClique)
+ if monEnvQT5:
+ self.buttonGroup.buttonClicked.connect(self.rbClique)
+ else :
+ self.connect(self.buttonGroup, SIGNAL("buttonClicked(QAbstractButton*)"),self.rbClique)
@@ -226,7 +253,7 @@ class MonChoixCommande(Ui_ChoixCommandes,QtGui.QWidget):
self.ajouteRadioButtons()
def rbClique(self,id):
- self.name=self.dicoCmd[str(id.text().toLatin1())]
+ self.name=self.dicoCmd[str(id.text())]
definitionEtape=getattr(self.jdc.cata[0],self.name)
commentaire=getattr(definitionEtape,self.jdc.lang)
try :
diff --git a/InterfaceQT4/monFonctionPanel.py b/InterfaceQT4/monFonctionPanel.py
index 85ab25db..92364818 100644
--- a/InterfaceQT4/monFonctionPanel.py
+++ b/InterfaceQT4/monFonctionPanel.py
@@ -19,13 +19,17 @@
#
# Modules Python
import string,types,os
+if monEnvQT5:
+ from PyQt5.QtCore import Qt
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
# Modules Eficas
from qtSaisie import SaisieValeur
from monPlusieursBasePanel import MonPlusieursBasePanel
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
# Import des panels
@@ -60,7 +64,6 @@ class MonFonctionPanel(MonPlusieursBasePanel):
l_valeurs=[]
if ((len(liste)% self.nbValeursASaisir != 0 and (len(liste)% self.nbValeurs))):
message=tr("La cardinalite n'est pas correcte, la derniere valeur est ignoree")
- #self.Commentaire.setText(QString(commentaire))
self.editor.affiche_infos(message,Qt.red)
i=0
while ( i < len(liste) ) :
@@ -90,7 +93,7 @@ class MonFonctionPanel(MonPlusieursBasePanel):
TupleEnTexte = TupleEnTexte[0:-2] +")"
self.LBValeurs.addItem(TupleEnTexte)
else :
- self.LBValeurs.addItem(QString(str(valeur)))
+ self.LBValeurs.addItem(str(valeur))
def ajout1Valeur(self,liste=[]):
@@ -106,11 +109,11 @@ class MonFonctionPanel(MonPlusieursBasePanel):
if liste ==[] : return
if (self.node.item.wait_tuple()== 1 and len(liste) != self.nbValeurs):
- commentaire = QString(str(liste))
- commentaire += QString(tr(" n est pas un tuple de "))
- commentaire += QString(str(self.nbValeursASaisir))
- commentaire += QString(tr(" valeurs"))
- self.LEValeur.setText(QString(str(liste)))
+ commentaire = str(liste)
+ commentaire += tr(" n est pas un tuple de ")
+ commentaire += str(self.nbValeursASaisir)
+ commentaire += tr(" valeurs")
+ self.LEValeur.setText(str(liste))
self.editor.affiche_infos(commentaire,Qt.red)
return
@@ -134,11 +137,11 @@ class MonFonctionPanel(MonPlusieursBasePanel):
validite,comm,comm2,listeRetour=self.politique.AjoutTuple(liste,index,listeVal)
else :
validite,comm,comm2,listeRetour=self.politique.AjoutValeurs(liste,index,listeVal)
- self.Commentaire.setText(QString.fromUtf8(QString(comm2)))
+ self.Commentaire.setText(tr(comm2))
if not validite :
self.editor.affiche_infos(comm,Qt.red)
else:
- self.LEValeur.setText(QString(""))
+ self.LEValeur.setText("")
l1=self.listeValeursCourantes[:indexListe]
l3=self.listeValeursCourantes[indexListe:]
if self.node.item.wait_tuple()== 1 :
diff --git a/InterfaceQT4/monLabelClic.py b/InterfaceQT4/monLabelClic.py
index a9d3604c..e1dea24d 100644
--- a/InterfaceQT4/monLabelClic.py
+++ b/InterfaceQT4/monLabelClic.py
@@ -19,9 +19,15 @@
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-import re
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QLabel, QFrame
+ from PyQt5.QtCore import QEvent
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+from Extensions.i18n import tr
+
#from Extensions.i18n import tr
class MonLabelClic(QLabel) :
diff --git a/InterfaceQT4/monRecherche.py b/InterfaceQT4/monRecherche.py
index 10595c99..a0f6a664 100644
--- a/InterfaceQT4/monRecherche.py
+++ b/InterfaceQT4/monRecherche.py
@@ -21,28 +21,37 @@
# Modules Eficas
from desRecherche import Ui_desRecherche
-from PyQt4 import *
-from PyQt4.QtCore import *
-from PyQt4.QtGui import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QDialog
+ from PyQt4.QtCore import Qt
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
# Import des panels
-class DRecherche(Ui_desRecherche ,QtGui.QDialog):
+class DRecherche(Ui_desRecherche ,QDialog):
"""
Classe définissant le panel associé aux mots-clés qui demandent
à l'utilisateur de choisir une seule valeur parmi une liste de valeurs
discrètes
"""
def __init__(self,parent = None , name = None,fl = 0):
- QtGui.QDialog.__init__(self,parent)
+ QDialog.__init__(self,parent)
self.parentQT=parent
self.tree=self.parentQT.tree
self.setModal(True)
self.setupUi(self)
self.PBSuivant.setDefault(True)
self.PBSuivant.setAutoDefault(False)
- self.connect(self.PBSuivant,SIGNAL("clicked()"), self.suivantClicked)
- self.connect(self.LERecherche,SIGNAL("returnPressed()"),self.recherche)
+ if monEnvQT5 :
+ self.PBSuivant.clicked.connect( self.suivantClicked)
+ self.LERecherche.returnPressed.connect(self.recherche)
+ else :
+ self.connect(self.PBSuivant,SIGNAL("clicked()"), self.suivantClicked)
+ self.connect(self.LERecherche,SIGNAL("returnPressed()"),self.recherche)
self.surLigne=0
self.listeTrouvee=()
self.nodeSurligne=None
diff --git a/InterfaceQT4/monSelectVal.py b/InterfaceQT4/monSelectVal.py
index 94fff672..b4a32be6 100644
--- a/InterfaceQT4/monSelectVal.py
+++ b/InterfaceQT4/monSelectVal.py
@@ -21,8 +21,14 @@
# Modules Eficas
from desSelectVal import Ui_DSelVal
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+
+fromm determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QDialog
+ from PyQt5.QtCore import QTimer
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
class DSelVal(Ui_DSelVal,QDialog):
def __init__(self,parent ,modal ) :
@@ -48,6 +54,14 @@ class MonSelectVal(DSelVal):
self.connecterSignaux()
def connecterSignaux(self) :
+ self.Bespace.clicked.connect(self.SelectEsp)
+ self.BpointVirgule.clicked.connect(self.SelectPoint)
+ self.Bvirgule.clicked.connect(self.SelectVir)
+ self.BImportSel.clicked.connect(self.BImportSelPressed)
+ self.BImportTout.clicked.connect(self.BImportToutPressed)
+ self.parent.editor.sb.messageChanged(self.messageAChanger)
+
+ def connecterSignauxQT4(self) :
self.connect(self.Bespace,SIGNAL("clicked()"),self.SelectEsp)
self.connect(self.BpointVirgule,SIGNAL("clicked()"),self.SelectPoint)
self.connect(self.Bvirgule,SIGNAL("clicked()"),self.SelectVir)
@@ -61,7 +75,7 @@ class MonSelectVal(DSelVal):
from PyQt4.QtGui import QPalette
mapalette.setColor( QPalette.WindowText, self.parent.editor.couleur )
self.sb.setPalette( mapalette );
- self.sb.setText(QString.fromUtf8(message))
+ self.sb.setText(tr(message))
QTimer.singleShot(3000, self.efface)
def efface(self):
diff --git a/InterfaceQT4/monViewRegles.py b/InterfaceQT4/monViewRegles.py
index d180e671..ca178b3a 100644
--- a/InterfaceQT4/monViewRegles.py
+++ b/InterfaceQT4/monViewRegles.py
@@ -22,8 +22,13 @@ import string,types,os
import traceback
from Extensions.i18n import tr
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtCore import Qt
+ from PyQt5.QtWidgets import QDialog
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
from desViewRegles import Ui_viewRegles
# ------------------------------------ #
diff --git a/InterfaceQT4/monViewTexte.py b/InterfaceQT4/monViewTexte.py
index 8aeddc7c..690d8403 100644
--- a/InterfaceQT4/monViewTexte.py
+++ b/InterfaceQT4/monViewTexte.py
@@ -22,8 +22,13 @@ import string,types,os
import traceback
from Extensions.i18n import tr
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QDialog, QMessageBox
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
from desViewTexte import Ui_dView
# ------------------------------- #
@@ -38,8 +43,12 @@ class ViewText(Ui_dView,QDialog):
self.setupUi(self)
self.resize( QSize(largeur,hauteur).expandedTo(self.minimumSizeHint()) )
- self.connect( self.bclose,SIGNAL("clicked()"), self, SLOT("close()") )
- self.connect( self.bsave,SIGNAL("clicked()"), self.saveFile )
+ if monEnvQT5 :
+ self.bclose.clicked.connect(self.close)
+ self.bsave.clicked.connect(self.saveFile )
+ else :
+ self.connect( self.bclose,SIGNAL("clicked()"), self, SLOT("close()") )
+ self.connect( self.bsave,SIGNAL("clicked()"), self.saveFile )
if entete != None : self.setWindowTitle (entete)
if entete != None : self.setText (texte)
@@ -57,6 +66,9 @@ class ViewText(Ui_dView,QDialog):
tr("Sauvegarder le fichier"),
dir)
if fn.isNull() : return
+ if fn == None : return (0, None)
+ if monEnvQT5 : fn=fn[0]
+
ulfile = os.path.abspath(unicode(fn))
if self.editor != None :
self.editor.appliEficas.CONFIGURATION.savedir=os.path.split(ulfile)[0]
@@ -67,17 +79,8 @@ class ViewText(Ui_dView,QDialog):
return 1
except IOError, why:
QMessageBox.critical(self, tr("Sauvegarder le fichier"),
- tr("Le fichier %(v_1)s n'a pu etre sauvegarde.
Raison : %(v_2)s", {'v_1': unicode(fn), 'v_2': unicode(why)}))
+ tr('Le fichier')+str(fn) + tr('n a pas pu etre sauvegarde : ') + str(why))
return
-class ViewText2(ViewText):
- def __init__(self,parent,cmd,editor=None,entete=None,texte=None,largeur=600,hauteur=600):
- ViewText.__init__(self,parent,editor,entete,texte,largeur,hauteur)
- import subprocess
- p = subprocess.Popen(cmd,stdout=subprocess.PIPE)
- (output, err) = p.communicate()
- if output != None : self.view.append(QString.fromUtf8(output,len(output))) ;
- if err != None : self.view.append(QString.fromUtf8(err,len(err))) ;
-
diff --git a/InterfaceQT4/monVisu.py b/InterfaceQT4/monVisu.py
index 79cb99f1..7d5a4945 100644
--- a/InterfaceQT4/monVisu.py
+++ b/InterfaceQT4/monVisu.py
@@ -21,9 +21,13 @@
# Modules Eficas
from desVisu import Ui_DVisu
-from PyQt4 import *
-from PyQt4.QtCore import *
-from PyQt4.QtGui import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QDialog
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
# Import des panels
diff --git a/InterfaceQT4/monWidget4a6RadioButton.py b/InterfaceQT4/monWidget4a6RadioButton.py
index 9fcba5d0..e7e28c3d 100644
--- a/InterfaceQT4/monWidget4a6RadioButton.py
+++ b/InterfaceQT4/monWidget4a6RadioButton.py
@@ -21,8 +21,6 @@
import string,types,os
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
from monWidgetRadioButton import MonWidgetRadioButtonCommun
diff --git a/InterfaceQT4/monWidget4a6RadioButtonSD.py b/InterfaceQT4/monWidget4a6RadioButtonSD.py
index 3d34403b..6b74f109 100644
--- a/InterfaceQT4/monWidget4a6RadioButtonSD.py
+++ b/InterfaceQT4/monWidget4a6RadioButtonSD.py
@@ -21,8 +21,6 @@
import string,types,os
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
from monWidgetRadioButton import MonWidgetRadioButtonCommun
diff --git a/InterfaceQT4/monWidgetBloc.py b/InterfaceQT4/monWidgetBloc.py
index b4fa2344..0b1ef79e 100644
--- a/InterfaceQT4/monWidgetBloc.py
+++ b/InterfaceQT4/monWidgetBloc.py
@@ -21,8 +21,6 @@
from desWidgetBloc import Ui_WidgetBloc
from groupe import Groupe
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
# Import des panels
diff --git a/InterfaceQT4/monWidgetCB.py b/InterfaceQT4/monWidgetCB.py
index 19bebd47..1468c3a6 100644
--- a/InterfaceQT4/monWidgetCB.py
+++ b/InterfaceQT4/monWidgetCB.py
@@ -21,8 +21,6 @@
import string,types,os
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
from feuille import Feuille
@@ -71,7 +69,7 @@ class MonWidgetCBCommun (Ui_WidgetCB,Feuille):
" font : italic ;\n"
" background: rgb(235,235,235);\n"
" }"))
- valeur=str(self.CBChoix.currentText().toLatin1())
+ valeur=str(self.CBChoix.currentText())
SaisieValeur.LEValeurPressed(self,valeur)
self.reaffiche()
diff --git a/InterfaceQT4/monWidgetCBSD.py b/InterfaceQT4/monWidgetCBSD.py
index 3fb8f86e..61553b9f 100644
--- a/InterfaceQT4/monWidgetCBSD.py
+++ b/InterfaceQT4/monWidgetCBSD.py
@@ -21,8 +21,6 @@
import string,types,os
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
from feuille import Feuille
@@ -64,6 +62,6 @@ class MonWidgetCB (Ui_WidgetCB,Feuille):
self.CBChoix.setCompleter(monCompleteur)
def ChoixSaisi(self):
- valeur=str(self.CBChoix.currentText().toLatin1())
+ valeur=str(self.CBChoix.currentText())
SaisieValeur.LEValeurPressed(self,valeur)
self.reaffiche()
diff --git a/InterfaceQT4/monWidgetCommande.py b/InterfaceQT4/monWidgetCommande.py
index feb1eadb..83b94672 100644
--- a/InterfaceQT4/monWidgetCommande.py
+++ b/InterfaceQT4/monWidgetCommande.py
@@ -22,8 +22,17 @@
from desWidgetCommande import Ui_WidgetCommande
from groupe import Groupe
from gereIcones import FacultatifOuOptionnel
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+
+if monEnvQT5:
+ from PyQt5.QtWidgets import QApplication, QWidget
+ from PyQt5.QtGui import QFont, QIcon
+ from PyQt5.QtCore import QTimer
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
+
from Extensions.i18n import tr
import Accas
import os
@@ -57,18 +66,29 @@ class MonWidgetCommande(Ui_WidgetCommande,Groupe):
self.commandesLayout.focusInEvent=self.focusInEvent
self.scrollAreaCommandes.focusInEvent=self.focusInEvent
- if self.editor.code in ['MAP','CARMELCND'] : self.bCatalogue.close()
- else : self.connect(self.bCatalogue,SIGNAL("clicked()"), self.afficheCatalogue)
- if self.editor.code in ['Adao','MAP'] :
- self.bAvant.close()
- self.bApres.close()
+
+ if monEnvQT5 :
+ if self.editor.code in ['MAP','CARMELCND'] : self.bCatalogue.close()
+ else : self.bCatalogue.clicked.connect(self.afficheCatalogue)
+ if self.editor.code in ['Adao','MAP'] :
+ self.bAvant.close()
+ self.bApres.close()
+ else :
+ self.bAvant.clicked.connect(self.afficheAvant)
+ self.bApres.clicked.connect(self.afficheApres)
+ self.LENom.returnPressed.connect(self.nomChange)
else :
- self.connect(self.bAvant,SIGNAL("clicked()"), self.afficheAvant)
- self.connect(self.bApres,SIGNAL("clicked()"), self.afficheApres)
-
-
- self.connect(self.LENom,SIGNAL("returnPressed()"),self.nomChange)
- self.racine=self.node.tree.racine
+ if self.editor.code in ['MAP','CARMELCND'] : self.bCatalogue.close()
+ else : self.connect(self.bCatalogue,SIGNAL("clicked()"), self.afficheCatalogue)
+ if self.editor.code in ['Adao','MAP'] :
+ self.bAvant.close()
+ self.bApres.close()
+ else :
+ self.connect(self.bAvant,SIGNAL("clicked()"), self.afficheAvant)
+ self.connect(self.bApres,SIGNAL("clicked()"), self.afficheApres)
+ self.connect(self.LENom,SIGNAL("returnPressed()"),self.nomChange)
+
+ self.racine=self.node.tree.racine
if self.node.item.GetIconName() == "ast-red-square" : self.LENom.setDisabled(True)
self.setAcceptDrops(True)
@@ -92,10 +112,10 @@ class MonWidgetCommande(Ui_WidgetCommande,Groupe):
def donnePremier(self):
#print "dans donnePremier"
- qApp.processEvents()
+ QApplication.processEvents()
if self.listeAffichageWidget != [] :
self.listeAffichageWidget[0].setFocus(7)
- qApp.processEvents()
+ QApplication.processEvents()
#print self.focusWidget()
@@ -213,7 +233,7 @@ class MonWidgetCommande(Ui_WidgetCommande,Groupe):
def recentre(self):
- qApp.processEvents()
+ QApplication.processEvents()
s=self.editor.fenetreCentraleAffichee.scrollAreaCommandes
s.horizontalScrollBar().setSliderPosition(self.avantH)
s.verticalScrollBar().setSliderPosition(self.avantV)
@@ -224,7 +244,7 @@ class MonWidgetCommande(Ui_WidgetCommande,Groupe):
QTimer.singleShot(1, self.rendVisible)
def rendVisible(self):
- qApp.processEvents()
+ QApplication.processEvents()
self.f.setFocus(7)
self.editor.fenetreCentraleAffichee.scrollAreaCommandes.ensureWidgetVisible(self.f)
diff --git a/InterfaceQT4/monWidgetCommentaire.py b/InterfaceQT4/monWidgetCommentaire.py
index 1738fc5b..1d422a77 100644
--- a/InterfaceQT4/monWidgetCommentaire.py
+++ b/InterfaceQT4/monWidgetCommentaire.py
@@ -19,10 +19,15 @@
# Modules Python
# Modules Eficas
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QWidget
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import
+
from desWidgetCommentaire import Ui_WidgetCommentaire
from gereIcones import FacultatifOuOptionnel
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
import Accas
import os
@@ -45,8 +50,10 @@ class MonWidgetCommentaire(QWidget,Ui_WidgetCommentaire,FacultatifOuOptionnel):
self.setIconePoubelle()
self.remplitTexte()
if self.editor.code in ['MAP','CARMELCND'] : self.bCatalogue.close()
+ elif monEnvQT5 : self.bCatalogue.clicked.connect(self.afficheCatalogue)
else : self.connect(self.bCatalogue,SIGNAL("clicked()"), self.afficheCatalogue)
- self.connect(self.commentaireLE,SIGNAL("returnPressed()"),self.TexteCommentaireEntre)
+ if monEnvQT5 : self.commentaireLE.returnPressed(TexteCommentaireEntre)
+ else : self.connect(self.commentaireLE,SIGNAL("returnPressed()"),self.TexteCommentaireEntre)
def afficheCatalogue(self):
if self.editor.code != "CARMELCND" : self.monOptionnel.hide()
@@ -59,7 +66,7 @@ class MonWidgetCommentaire(QWidget,Ui_WidgetCommentaire,FacultatifOuOptionnel):
self.commentaireLE.setText(texte)
if self.editor.code == "CARMELCND" and texte[0:16]=="Cree - fichier :" :
self.commentaireLE.setDisabled(True)
- self.commentaireLE.setStyleSheet(QString.fromUtf8("background:rgb(244,244,244);\n" "border:0px;\n"))
+ self.commentaireLE.setStyleSheet("background:rgb(244,244,244);\n" "border:0px;\n")
self.commentaireLE.setToolTip(tr("Valeur non modifiable"))
def donnePremier(self):
diff --git a/InterfaceQT4/monWidgetCreeParam.py b/InterfaceQT4/monWidgetCreeParam.py
index a1c90593..34feff33 100644
--- a/InterfaceQT4/monWidgetCreeParam.py
+++ b/InterfaceQT4/monWidgetCreeParam.py
@@ -23,9 +23,12 @@ pattern_name = re.compile(r'^[^\d\W]\w*\Z')
# Modules Eficas
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QDialog
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
from Extensions.i18n import tr
from desWidgetCreeParam import Ui_desWidgetCreeParam
@@ -38,16 +41,20 @@ class MonWidgetCreeParam(Ui_desWidgetCreeParam,QDialog):
self.editor.affiche_infos("")
QDialog.__init__(self,editor)
self.setupUi(self)
- self.connecterSignaux()
+ if monEnvQT5 : self.connecterSignaux()
+ else : self.connecterSignauxQT4()
self.dejaExistant=0
self.listeTousParam=self.editor.jdc.params
self.dictListe={}
self.initToutesVal()
- def connecterSignaux(self) :
+ def connecterSignauxQT4(self) :
self.connect(self.lineEditVal,SIGNAL("returnPressed()"),self.lineEditValReturnPressed)
self.connect(self.lineEditNom,SIGNAL("returnPressed()"),self.lineEditNomReturnPressed)
+ def connecterSignaux(self) :
+ self.lineEditVal.returnPressed(self.lineEditValReturnPressed)
+ self.lineEditNom.returnPressed(self.lineEditNomReturnPressed)
def CreeParametre(self):
nom=str(self.lineEditNom.text())
diff --git a/InterfaceQT4/monWidgetDate.py b/InterfaceQT4/monWidgetDate.py
index 05f6897f..845661d2 100644
--- a/InterfaceQT4/monWidgetDate.py
+++ b/InterfaceQT4/monWidgetDate.py
@@ -21,8 +21,6 @@
import string,types,os
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
from feuille import Feuille
diff --git a/InterfaceQT4/monWidgetFact.py b/InterfaceQT4/monWidgetFact.py
index 77756ad4..7b60cf8f 100644
--- a/InterfaceQT4/monWidgetFact.py
+++ b/InterfaceQT4/monWidgetFact.py
@@ -17,12 +17,19 @@
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
# Modules Python
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtCore import Qt
+ from PyQt5.QtWidgets import QWidget
+else :
+ from PyQt4.QtCore import *
+ from PyQt4.QtGui import *
+
+
# Modules Eficas
-from desWidgetFact import Ui_WidgetFact
from groupe import Groupe
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from desWidgetFact import Ui_WidgetFact
from Extensions.i18n import tr
# Import des panels
diff --git a/InterfaceQT4/monWidgetFactPlie.py b/InterfaceQT4/monWidgetFactPlie.py
index 5804200a..ea31461e 100644
--- a/InterfaceQT4/monWidgetFactPlie.py
+++ b/InterfaceQT4/monWidgetFactPlie.py
@@ -21,8 +21,6 @@
from desWidgetFactPlie import Ui_WidgetFactPlie
from groupe import Groupe
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
# Import des panels
diff --git a/InterfaceQT4/monWidgetHeure.py b/InterfaceQT4/monWidgetHeure.py
index b576b589..a2f1bc03 100644
--- a/InterfaceQT4/monWidgetHeure.py
+++ b/InterfaceQT4/monWidgetHeure.py
@@ -21,8 +21,6 @@
import string,types,os
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
from feuille import Feuille
diff --git a/InterfaceQT4/monWidgetInactif.py b/InterfaceQT4/monWidgetInactif.py
index de91d898..c3929af5 100644
--- a/InterfaceQT4/monWidgetInactif.py
+++ b/InterfaceQT4/monWidgetInactif.py
@@ -19,8 +19,13 @@
# Modules Python
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QWidget
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
from Extensions.i18n import tr
from desWidgetInactif import Ui_WidgetInactif
import Accas
@@ -47,9 +52,14 @@ class MonWidgetInactif(QWidget,Ui_WidgetInactif):
self.editor.splitter.addWidget(self.monOptionnel)
self.editor.restoreSplitterSizes()
self.afficheOptionnel()
- self.connect(self.bAvant,SIGNAL("clicked()"), self.afficheAvant)
- self.connect(self.bApres,SIGNAL("clicked()"), self.afficheApres)
- self.connect(self.bCatalogue,SIGNAL("clicked()"), self.afficheCatalogue)
+ if monEnvQT5 :
+ self.bAvant.clicked.connect(self.afficheAvant)
+ self.bApres.clicked.connect(self.afficheApres)
+ self.bCatalogue.clicked.connect(self.afficheCatalogue)
+ else :
+ self.connect(self.bAvant,SIGNAL("clicked()"), self.afficheAvant)
+ self.connect(self.bApres,SIGNAL("clicked()"), self.afficheApres)
+ self.connect(self.bCatalogue,SIGNAL("clicked()"), self.afficheCatalogue)
self.labelNomCommande.setText(tr(self.node.item.nom))
self.labelNomCommande.setEnabled(False)
diff --git a/InterfaceQT4/monWidgetInfo.py b/InterfaceQT4/monWidgetInfo.py
index 402171d5..f359d298 100644
--- a/InterfaceQT4/monWidgetInfo.py
+++ b/InterfaceQT4/monWidgetInfo.py
@@ -21,8 +21,12 @@
import string,types,os
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QWidget
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
from Extensions.i18n import tr
from desWidgetInformation import Ui_WidgetInformative
diff --git a/InterfaceQT4/monWidgetMatrice.py b/InterfaceQT4/monWidgetMatrice.py
index 10bda4ea..7e3cca49 100644
--- a/InterfaceQT4/monWidgetMatrice.py
+++ b/InterfaceQT4/monWidgetMatrice.py
@@ -21,14 +21,13 @@
import string,types,os,sys
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
from feuille import Feuille
from desWidgetMatrice import Ui_desWidgetMatrice
+from determine import monEnvQT5
class MonWidgetMatrice (Ui_desWidgetMatrice,Feuille):
# c est juste la taille des differents widgets de base qui change
@@ -41,7 +40,8 @@ class MonWidgetMatrice (Ui_desWidgetMatrice,Feuille):
self.nbCols=0
self.nomVariables={}
self.creeColonnes()
- self.connecterSignaux()
+ if monEnvQT5 : self.connecterSignaux()
+ else : self.connecterSignauxQT4()
if self.node.item.get_valeur()== None: self.initialSsValeur()
else :
try : self.initialValeur()
@@ -55,10 +55,14 @@ class MonWidgetMatrice (Ui_desWidgetMatrice,Feuille):
- def connecterSignaux(self) :
+ def connecterSignauxQT4(self) :
self.connect(self.TBMatrice,SIGNAL("itemChanged(QTableWidgetItem *)"),self.itemChanged)
self.connect(self.PBrefresh,SIGNAL("clicked()"), self.afficheEntete)
+ def connecterSignaux(self) :
+ self.TBMatrice.itemChanged.connect(self.itemChanged)
+ self.PBrefresh.clicked.connect( self.afficheEntete)
+
def afficheEntete(self):
self.objSimp.changeEnteteMatrice()
self.TBMatrice.clear()
diff --git a/InterfaceQT4/monWidgetOptionnel.py b/InterfaceQT4/monWidgetOptionnel.py
index f8fe210b..b63c469e 100644
--- a/InterfaceQT4/monWidgetOptionnel.py
+++ b/InterfaceQT4/monWidgetOptionnel.py
@@ -19,8 +19,13 @@
# Modules Python
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QCheckBox, QWidget
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
from Extensions.i18n import tr
from desWidgetOptionnel import Ui_WidgetOptionnel
@@ -30,7 +35,7 @@ from desWidgetOptionnel import Ui_WidgetOptionnel
class monButtonCustom(QCheckBox):
def __init__(self,texte,monOptionnel,parent=None):
- QCheckBox.__init__(self,QString(tr(texte)),parent)
+ QCheckBox.__init__(self,tr(texte),parent)
self.texte=texte
self.monOptionnel=monOptionnel
diff --git a/InterfaceQT4/monWidgetParam.py b/InterfaceQT4/monWidgetParam.py
index af61dd5c..b9c02483 100644
--- a/InterfaceQT4/monWidgetParam.py
+++ b/InterfaceQT4/monWidgetParam.py
@@ -21,8 +21,13 @@
from desWidgetParam import Ui_WidgetParam
from gereIcones import FacultatifOuOptionnel
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QWidget
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
from Extensions.i18n import tr
from Extensions.eficas_exception import EficasException
import Accas
@@ -50,13 +55,24 @@ class MonWidgetParam(QWidget,Ui_WidgetParam,FacultatifOuOptionnel):
self.setIconePoubelle()
self.remplit()
if self.editor.code in ['MAP','CARMELCND'] : self.bCatalogue.close()
+ elif monEnvQt5 : self.bCatalogue.clicked.connect(self.afficheCatalogue)
else : self.connect(self.bCatalogue,SIGNAL("clicked()"), self.afficheCatalogue)
- self.connect(self.lineEditVal,SIGNAL("returnPressed()"),self.LEValeurPressed)
- self.connect(self.lineEditNom,SIGNAL("returnPressed()"),self.LENomPressed)
- self.connect(self.bAvant,SIGNAL("clicked()"), self.afficheAvant)
- self.connect(self.bApres,SIGNAL("clicked()"), self.afficheApres)
- self.connect(self.bVerifie,SIGNAL("clicked()"), self.verifiePressed)
- self.editor.affiche_infos("")
+
+ if monEnvQt5 :
+ self.lineEditVal.returnPressed.connect.(self.LEValeurPressed)
+ self.lineEditNom.returnPressed.connect.(self.LENomPressed)
+ self.bAvant.clicked.connect.(self.afficheAvant)
+ self.bApres.clicked.connect.(self.afficheApres)
+ self.bVerifie.clicked.connect.(self.verifiePressed)
+ else :
+ self.connect(self.lineEditVal,SIGNAL("returnPressed()"),self.LEValeurPressed)
+ self.connect(self.lineEditNom,SIGNAL("returnPressed()"),self.LENomPressed)
+ self.connect(self.bAvant,SIGNAL("clicked()"), self.afficheAvant)
+ self.connect(self.bApres,SIGNAL("clicked()"), self.afficheApres)
+ self.connect(self.bVerifie,SIGNAL("clicked()"), self.verifiePressed)
+ self.editor.affiche_infos("")
+
+
if self.editor.widgetOptionnel!= None :
self.editor.widgetOptionnel.close()
self.editor.widgetOptionnel=None
diff --git a/InterfaceQT4/monWidgetPlusieursASSDIntoOrdonne.py b/InterfaceQT4/monWidgetPlusieursASSDIntoOrdonne.py
index f60a713c..6b9a6a22 100644
--- a/InterfaceQT4/monWidgetPlusieursASSDIntoOrdonne.py
+++ b/InterfaceQT4/monWidgetPlusieursASSDIntoOrdonne.py
@@ -21,16 +21,12 @@
import string,types,os,sys
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
-
from monWidgetPlusieursIntoOrdonne import MonWidgetPlusieursIntoOrdonne
from politiquesValidation import PolitiquePlusieurs
-
class MonWidgetPlusieursASSDIntoOrdonne (MonWidgetPlusieursIntoOrdonne):
def __init__(self,node,monSimpDef,nom,objSimp,parentQt,commande):
diff --git a/InterfaceQT4/monWidgetPlusieursBase.py b/InterfaceQT4/monWidgetPlusieursBase.py
index 55b8dcc4..cb1b427a 100644
--- a/InterfaceQT4/monWidgetPlusieursBase.py
+++ b/InterfaceQT4/monWidgetPlusieursBase.py
@@ -20,9 +20,15 @@
# Modules Python
import string,types,os,sys
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtGui import Qicon, QApplication
+ from PyQt5.QtCore import QTimer, QSize, QT
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
from feuille import Feuille
@@ -88,7 +94,7 @@ class MonWidgetPlusieursBase (Ui_WidgetPlusieursBase,Feuille,GereListe,GerePlie)
else : aConstruire=self.monSimpDef.max
for i in range(1,aConstruire):
self.ajoutLineEdit()
- qApp.processEvents()
+ QApplication.processEvents()
self.scrollArea.ensureWidgetVisible(self.lineEditVal1)
self.listeValeursCourantes=self.node.item.GetListeValeurs()
index=1
@@ -139,7 +145,7 @@ class MonWidgetPlusieursBase (Ui_WidgetPlusieursBase,Feuille,GereListe,GerePlie)
def rendVisibleLigne(self):
- qApp.processEvents()
+ QApplication.processEvents()
self.estVisible.setFocus()
self.scrollArea.ensureWidgetVisible(self.estVisible,0,0)
@@ -177,7 +183,7 @@ class MonWidgetPlusieursBase (Ui_WidgetPlusieursBase,Feuille,GereListe,GerePlie)
nomLineEdit="lineEditVal"+str(i)
courant=getattr(self,nomLineEdit)
valeur=courant.text()
- if valeur == None or valeur == QString("") :
+ if valeur == None or valeur == "" :
ajoute=True
courant.setText(str(val))
commentaire=self.ajout1Valeur(val)
diff --git a/InterfaceQT4/monWidgetPlusieursInto.py b/InterfaceQT4/monWidgetPlusieursInto.py
index 85b61bf0..efb01914 100644
--- a/InterfaceQT4/monWidgetPlusieursInto.py
+++ b/InterfaceQT4/monWidgetPlusieursInto.py
@@ -21,8 +21,14 @@
import string,types,os
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QCheckBox, QScrollbar, QFrame, QApplication
+ from PyQt5.QtCore import QT
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import
+
from Extensions.i18n import tr
from feuille import Feuille
@@ -118,7 +124,7 @@ class MonWidgetPlusieursInto (Ui_WidgetPlusieursInto,Feuille,GerePlie):
if hasattr(self,nomCB) : return
nouveauCB = QCheckBox(self.scrollArea)
self.CBLayout.addWidget(nouveauCB)
- qApp.processEvents()
+ QApplication.processEvents()
nouveauCB.setText("")
if index % 2 == 1 : nouveauCB.setStyleSheet("background:rgb(210,210,210)")
else : nouveauCB.setStyleSheet("background:rgb(240,240,240)")
diff --git a/InterfaceQT4/monWidgetPlusieursIntoOrdonne.py b/InterfaceQT4/monWidgetPlusieursIntoOrdonne.py
index 7bd475a6..878fa2be 100644
--- a/InterfaceQT4/monWidgetPlusieursIntoOrdonne.py
+++ b/InterfaceQT4/monWidgetPlusieursIntoOrdonne.py
@@ -21,10 +21,6 @@
import string,types,os,sys
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
-from Extensions.i18n import tr
-
from feuille import Feuille
from desWidgetPlusieursIntoOrdonne import Ui_WidgetPlusieursIntoOrdonne
from politiquesValidation import PolitiquePlusieurs
@@ -34,6 +30,13 @@ from gereListe import GerePlie
from gereListe import LECustom
from gereListe import MonLabelListeClic
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import Qicon, QScrollbar, QFrame, QApplication
+ from PyQt5.QtCore import QTimer, QSize, Qt
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import
class MonWidgetPlusieursIntoOrdonne (Ui_WidgetPlusieursIntoOrdonne, Feuille,GereListe,GerePlie):
@@ -44,7 +47,7 @@ class MonWidgetPlusieursIntoOrdonne (Ui_WidgetPlusieursIntoOrdonne, Feuille,Gere
self.listeLE=[]
self.ouAjouter=0
self.NumLineEditEnCours=0
- Feuille.__init__(self,node,monSimpDef,nom,objSimp,parentQt,commande)
+ Feuille.__init__(self,node,monSimpDef,nom,objSimp,parent,commanme)
GereListe.__init__(self)
self.finCommentaireListe()
self.gereIconePlier()
@@ -148,7 +151,7 @@ class MonWidgetPlusieursIntoOrdonne (Ui_WidgetPlusieursIntoOrdonne, Feuille,Gere
self.CBLayout.insertWidget(index -1,nouveauLE)
self.listeLE.append(nouveauLE)
nouveauLE.setFrameShape(QFrame.NoFrame)
- qApp.processEvents()
+ QApplication.processEvents()
nouveauLE.setText("")
if index % 2 == 1 : nouveauLE.setStyleSheet("background:rgb(210,210,210)")
else : nouveauLE.setStyleSheet("background:rgb(240,240,240)")
@@ -226,7 +229,7 @@ class MonWidgetPlusieursIntoOrdonne (Ui_WidgetPlusieursIntoOrdonne, Feuille,Gere
self.setValide()
#
def rendVisibleLigneRE(self):
- qApp.processEvents()
+ QApplication.processEvents()
self.estVisibleRE.setFocus()
self.scrollArea.ensureWidgetVisible(self.estVisibleRE,0,0)
#
diff --git a/InterfaceQT4/monWidgetPlusieursPlie.py b/InterfaceQT4/monWidgetPlusieursPlie.py
index ed9d2a06..a12875fc 100644
--- a/InterfaceQT4/monWidgetPlusieursPlie.py
+++ b/InterfaceQT4/monWidgetPlusieursPlie.py
@@ -21,8 +21,14 @@
import string,types,os,sys
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+#if monEnvQT5:
+# from PyQt5.QtWidgets import Qicon, QScrollbar, QFrame
+# from PyQt5.QtCore import QTimer, QSize, QT
+#else :
+# from PyQt4.QtGui import *
+# from PyQt4.QtCore import
+
from Extensions.i18n import tr
from feuille import Feuille
@@ -38,7 +44,10 @@ class MonWidgetPlusieursPlie (Ui_WidgetPlusieursPlie,Feuille):
self.AAfficher=self.lineEditVal
self.maCommande.listeAffichageWidget.append(self.lineEditVal)
- self.connect(self.BVisuListe,SIGNAL("clicked()"), self.selectWidgetDeplie)
+ if monEnvQT5 :
+ self.BVisuListe.clicked(self.selectWidgetDeplie)
+ else :
+ self.connect(self.BVisuListe,SIGNAL("clicked()"), self.selectWidgetDeplie)
def setValeurs(self):
diff --git a/InterfaceQT4/monWidgetPlusieursTuple.py b/InterfaceQT4/monWidgetPlusieursTuple.py
index 30ad88e4..93a20088 100644
--- a/InterfaceQT4/monWidgetPlusieursTuple.py
+++ b/InterfaceQT4/monWidgetPlusieursTuple.py
@@ -21,8 +21,13 @@
import string,types,os,sys
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QIcon, QSize, QFrame,QApplication
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import
+
from Extensions.i18n import tr
@@ -52,7 +57,8 @@ class TupleCustom :
courant=getattr(self,nomLE)
courant.num=index
courant.dansUnTuple=True
- self.connect(courant,SIGNAL("returnPressed()"),self.valueChange)
+ if monEnvQt5 : courant.returnPressed.connect(self.valueChange)
+ else : self.connect(courant,SIGNAL("returnPressed()"),self.valueChange)
def valueChange(self):
@@ -161,7 +167,10 @@ class MonWidgetPlusieursTuple(Feuille,GereListe):
icon3 = QIcon(fichier3)
self.BSelectFichier.setIcon(icon3)
self.BSelectFichier.setIconSize(QSize(32, 32))
- self.connect(self.BSelectFichier,SIGNAL("clicked()"), self.selectInFile)
+ if monEnvQt5 :
+ self.BSelectFichier.clicked.connect(self.selectInFile)
+ else :
+ self.connect(self.BSelectFichier,SIGNAL("clicked()"), self.selectInFile)
@@ -214,7 +223,7 @@ class MonWidgetPlusieursTuple(Feuille,GereListe):
for i in range(len(valeurs),aCreer) : self.ajoutLineEdit(inInit=True)
def rendVisibleLigne(self):
- qApp.processEvents()
+ QApplication.processEvents()
self.estVisible.setFocus(True)
self.scrollArea.ensureWidgetVisible(self.estVisible,0,0)
@@ -249,7 +258,7 @@ class MonWidgetPlusieursTuple(Feuille,GereListe):
self.listeAffichageWidget[-2].setFocus(True)
else :
try :
- qApp.processEvents()
+ QApplication.processEvents()
w=self.listeAffichageWidget[self.listeAffichageWidget.index(aLeFocus)+1]
w.setFocus(True)
self.scrollArea.ensureWidgetVisible(w,0,0)
diff --git a/InterfaceQT4/monWidgetPlusieursTuple2.py b/InterfaceQT4/monWidgetPlusieursTuple2.py
index 0acaae01..a446a06f 100644
--- a/InterfaceQT4/monWidgetPlusieursTuple2.py
+++ b/InterfaceQT4/monWidgetPlusieursTuple2.py
@@ -21,9 +21,6 @@
import string,types,os
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
-from Extensions.i18n import tr
from feuille import Feuille
from monWidgetPlusieursTuple import MonWidgetPlusieursTuple
diff --git a/InterfaceQT4/monWidgetPlusieursTuple3.py b/InterfaceQT4/monWidgetPlusieursTuple3.py
index 83a911a4..e7239b85 100644
--- a/InterfaceQT4/monWidgetPlusieursTuple3.py
+++ b/InterfaceQT4/monWidgetPlusieursTuple3.py
@@ -21,9 +21,6 @@
import string,types,os
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
-from Extensions.i18n import tr
from feuille import Feuille
from monWidgetPlusieursTuple import MonWidgetPlusieursTuple
diff --git a/InterfaceQT4/monWidgetRadioButton.py b/InterfaceQT4/monWidgetRadioButton.py
index 176dbee0..a0016171 100644
--- a/InterfaceQT4/monWidgetRadioButton.py
+++ b/InterfaceQT4/monWidgetRadioButton.py
@@ -20,9 +20,16 @@
# Modules Python
import string,types,os
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtCore import Qt
+ from PyQt5.QtWidgets import QWidget
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+
from Extensions.i18n import tr
from feuille import Feuille
@@ -68,7 +75,8 @@ class MonWidgetRadioButtonCommun (Feuille):
if not(type(valeur) in types.StringTypes) : valeur=str(valeur)
bouton.setText(tr(valeur))
self.dict_bouton[valeur]=bouton
- self.connect(bouton,SIGNAL("clicked()"),self.boutonclic)
+ if monEnvQT5 : bouton.clicked.connect(self.boutonclic)
+ else : self.connect(bouton,SIGNAL("clicked()"),self.boutonclic)
bouton.keyPressEvent=self.keyPressEvent
setattr(self,nomBouton,bouton)
i=i+1
diff --git a/InterfaceQT4/monWidgetSimpTxt.py b/InterfaceQT4/monWidgetSimpTxt.py
index 40231104..41a5226e 100644
--- a/InterfaceQT4/monWidgetSimpTxt.py
+++ b/InterfaceQT4/monWidgetSimpTxt.py
@@ -21,8 +21,6 @@
import string,types,os
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
from desWidgetSimpTxt import Ui_WidgetSimpTxt
diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py
index 31f94df5..c5b6bc99 100755
--- a/InterfaceQT4/qtEficas.py
+++ b/InterfaceQT4/qtEficas.py
@@ -19,16 +19,21 @@
#
import os, sys
-
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
-from myMain import Ui_Eficas
-from viewManager import MyTabview
-from getVersion import getEficasVersion
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QApplication, QMainWindow, QBoxLayout, QMenu, QAction
+ from PyQt5.QtGui import QIcon
+ from PyQt5.QtCore import Qt
+else:
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
from Extensions.i18n import tr
from Extensions.eficas_exception import EficasException
+from myMain import Ui_Eficas
+from viewManager import MyTabview
+from getVersion import getEficasVersion
from Editeur import session
@@ -53,7 +58,8 @@ class Appli(Ui_Eficas,QMainWindow):
self.code=code
self.indice=0
self.dict_reels={}
- self.recent = QStringList()
+ if monEnvQT5 : self.recent = []
+ else : self.recent = QStringList()
self.ficRecents={}
self.listeAEnlever=[]
self.ListeCode=['Aster','Carmel3D','Cuve2dg','Openturns_Study','Openturns_Wrapper','MAP','ZCracks', 'CarmelCND','MT']
@@ -92,13 +98,13 @@ class Appli(Ui_Eficas,QMainWindow):
eficas_root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
self.viewmanager = MyTabview(self)
- #self.recentMenu=self.menuFichier.addMenu(tr('&Recents'))
self.recentMenu=QMenu(tr('&Recents'))
#self.menuFichier.insertMenu(self.actionOuvrir,self.recentMenu)
# actionARemplacer ne sert que pour l insert Menu
self.menuFichier.insertMenu(self.actionARemplacer ,self.recentMenu)
self.menuFichier.removeAction(self.actionARemplacer)
- self.connecterSignaux()
+ if monEnvQT5 : self.connecterSignaux()
+ else : self.connecterSignauxQT4()
self.toolBar.addSeparator()
if self.code != None : self.construitMenu()
@@ -189,7 +195,8 @@ class Appli(Ui_Eficas,QMainWindow):
if not(self.actionExecution in self.toolBar.actions()):
self.toolBar.addAction(self.actionExecution)
self.actionExecution.setText(QApplication.translate("Eficas", "Execution ", None, QApplication.UnicodeUTF8))
- self.connect(self.actionExecution,SIGNAL("triggered()"),self.run)
+ if monEnvQT5 : self.actionExecution.triggered.connect(self.run)
+ else : self.connect(self.actionExecution,SIGNAL("triggered()"),self.run)
def ajoutSauveExecution(self):
self.actionSaveRun = QAction(self)
@@ -200,7 +207,8 @@ class Appli(Ui_Eficas,QMainWindow):
if not(self.actionSaveRun in self.toolBar.actions()):
self.toolBar.addAction(self.actionSaveRun)
self.actionSaveRun.setText(QApplication.translate("Eficas", "Save Run", None, QApplication.UnicodeUTF8))
- self.connect(self.actionSaveRun,SIGNAL("triggered()"),self.saveRun)
+ if monEnvQT5 : self.actionSaveRun.triggered.connect(self.saveRun)
+ else : self.connect(self.actionSaveRun,SIGNAL("triggered()"),self.saveRun)
def griserActionsStructures(self):
self.actionCouper.setEnabled(False)
@@ -297,7 +305,8 @@ class Appli(Ui_Eficas,QMainWindow):
self.actionParametres_Eficas.setText('Help PSEN')
#
#Oself.disconnect(self.actionParametres_Eficas)
- self.connect(self.actionParametres_Eficas,SIGNAL("triggered()"),self.aidePSEN)
+ if monEnvQT5 : self.actionParametres_Eficas.triggered.connect(self.aidePSEN)
+ else : self.connect(self.actionParametres_Eficas,SIGNAL("triggered()"),self.aidePSEN)
@@ -345,7 +354,8 @@ class Appli(Ui_Eficas,QMainWindow):
- def connecterSignaux(self) :
+
+ def connecterSignauxQT4(self) :
self.connect(self.recentMenu,SIGNAL('aboutToShow()'),self.handleShowRecentMenu)
self.connect(self.action_Nouveau,SIGNAL("triggered()"),self.fileNew)
@@ -374,8 +384,6 @@ class Appli(Ui_Eficas,QMainWindow):
self.connect(self.actionFichier_Resultat,SIGNAL("triggered()"),self.visuJdcPy)
- #self.connect(self.helpIndexAction,SIGNAL("triggered()"),self.helpIndex)
- #self.connect(self.helpContentsAction,SIGNAL("triggered()"),self.helpContents)
# Pour Aster
self.actionTraduitV9V10 = QAction(self)
@@ -413,6 +421,68 @@ class Appli(Ui_Eficas,QMainWindow):
self.actionCode.setText(tr("Specificites Maille"))
self.connect(self.actionCode,SIGNAL("triggered()"),self.aideCode)
+ def connecterSignaux(self) :
+ self.recentMenu.aboutToShow.connect(self.handleShowRecentMenu)
+ self.action_Nouveau.triggered.connect(self.fileNew)
+ self.actionNouvel_Include.triggered.connect(self.NewInclude)
+ self.actionOuvrir.triggered.connect(self.fileOpen)
+ self.actionEnregistrer.triggered.connect(self.fileSave)
+ self.actionEnregistrer_sous.triggered.connect(self.fileSaveAs)
+ self.actionFermer.triggered.connect(self.fileClose)
+ self.actionFermer_tout.triggered.connect(self.fileCloseAll)
+ self.actionQuitter.triggered.connect(self.fileExit)
+
+ self.actionEficas.triggered.connect(self.aidePPal)
+ self.actionVersion.triggered.connect(self.version)
+ self.actionParametres.triggered.connect(self.gestionParam)
+
+ self.actionCouper.triggered.connect(self.editCut)
+ self.actionCopier.triggered.connect(self.editCopy)
+ self.actionColler.triggered.connect(self.editPaste)
+ self.actionSupprimer.triggered.connect(self.supprimer)
+ self.actionRechercher.triggered.connect(self.rechercher)
+ self.actionDeplier_replier.triggered.connect(self.Deplier)
+
+ self.actionRapport_de_Validation.triggered.connect(self.jdcRapport)
+ self.actionRegles_du_JdC.triggered.connect(self.jdcRegles)
+ self.actionFichier_Source.triggered.connect(self.jdcFichierSource)
+ self.actionFichier_Resultat.triggered.connect(self.visuJdcPy)
+
+
+ # Pour Aster
+ self.actionTraduitV9V10 = QAction(self)
+ self.actionTraduitV9V10.setObjectName("actionTraduitV9V10")
+ self.actionTraduitV9V10.setText(tr("TraduitV9V10"))
+ self.actionTraduitV10V11 = QAction(self)
+ self.actionTraduitV10V11.setObjectName("actionTraduitV10V11")
+ self.actionTraduitV10V11.setText(tr("TraduitV10V11"))
+ self.actionTraduitV11V12 = QAction(self)
+ self.actionTraduitV11V12.setObjectName("actionTraduitV11V12")
+ self.actionTraduitV11V12.setText(tr("TraduitV11V12"))
+ self.actionSauveLigne = QAction(self)
+ self.actionSauveLigne.setText(tr("Sauve Format Ligne"))
+
+ #self.actionParametres_Eficas.triggered.connect(self.optionEditeur)
+ self.actionTraduitV9V10.triggered.connect(self.traductionV9V10)
+ self.actionTraduitV10V11.triggered.connect(self.traductionV10V11)
+ self.actionTraduitV11V12.triggered.connect(self.traductionV11V12)
+ self.actionSauveLigne.triggered.connect(self.sauveLigne)
+
+ # Pour Carmel
+ self.actionChercheGrpMaille = QAction(self)
+ self.actionChercheGrpMaille.setText(tr("Acquiert Groupe Maille"))
+
+ # Pour CarmelCND
+ self.actionChercheGrp = QAction(self)
+ self.actionChercheGrp.setText(tr("Accquisition Groupe Maille"))
+ self.actionChercheGrp.triggered.connect(self.ChercheGrp)
+
+ # Pour Aide
+ self.actionCode = QAction(self)
+ self.actionCode.setText(tr("Specificites Maille"))
+ self.actionCode.triggered.connect(self.aideCode)
+
+
def Deplier(self):
self.viewmanager.handleDeplier()
@@ -457,14 +527,13 @@ class Appli(Ui_Eficas,QMainWindow):
for fichier in self.listePatrons.liste[nomSsMenu]:
id = ssmenu.addAction(fichier)
self.ficPatrons[id]=fichier
- self.connect(id, SIGNAL('triggered()'),self.handleOpenPatrons)
+ if monEnvQT5 : self.id.triggered.connect(self.handleOpenPatrons)
+ else : self.connect(id, SIGNAL('triggered()'),self.handleOpenPatrons)
# self.Patrons.setItemParameter(id,idx)
idx=idx+1
def initRecents(self):
- self.recent = QStringList()
try :
- #if 1 :
if sys.platform[0:5]=="linux" :
rep=os.path.join(os.environ['HOME'],'.config/Eficas',self.code)
else :
@@ -479,13 +548,21 @@ class Appli(Ui_Eficas,QMainWindow):
self.recent.append(l)
index=index+1
except :
- #else :
pass
try : f.close()
except : pass
def addToRecentList(self, fn):
+ if not monEnvQT5 : addToRecentListQT4(self, fn); return
+
+ while fn in self.recent: self.recent.remove(fn)
+ self.recent.insert(0,fn)
+ if len(self.recent) > 9:
+ self.recent = self.recent[:9]
+
+
+ def addToRecentListQT4(self, fn):
"""
Public slot to add a filename to the list of recently opened files.
@@ -606,7 +683,8 @@ class Appli(Ui_Eficas,QMainWindow):
for rp in self.recent:
id = self.recentMenu.addAction(rp)
self.ficRecents[id]=rp
- self.connect(id, SIGNAL('triggered()'),self.handleOpenRecent)
+ if monEnvQT5 : self.id.triggered.connect(self.handleOpenRecent)
+ else : self.connect(id, SIGNAL('triggered()'),self.handleOpenRecent)
self.recentMenu.addSeparator()
self.recentMenu.addAction(tr('&Effacer'), self.handleClearRecent)
@@ -748,7 +826,6 @@ if __name__=='__main__':
Eficas=Appli()
Eficas.show()
- #app.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
#mw.ouvreFichiers()
#mw.show()
diff --git a/InterfaceQT4/qtSaisie.py b/InterfaceQT4/qtSaisie.py
index f70fdce4..0008809f 100644
--- a/InterfaceQT4/qtSaisie.py
+++ b/InterfaceQT4/qtSaisie.py
@@ -19,11 +19,15 @@
#
# Modules Python
import string,types,os
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtCore import Qt
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
# Import des panels
@@ -40,14 +44,14 @@ class SaisieValeur:
if valeur == None :
nouvelleValeur=str(self.lineEditVal.text())
else :
- if hasattr(self,"lineEditVal"):self.lineEditVal.setText(QString(valeur.nom))
+ if hasattr(self,"lineEditVal"):self.lineEditVal.setText(tr(valeur.nom))
nouvelleValeur=valeur
nouvelleValeurFormat=self.politique.GetValeurTexte(nouvelleValeur)
validite,commentaire=self.politique.RecordValeur(nouvelleValeurFormat)
if commentaire != "" :
#PNPNPNP Il faut trouver une solution pour les 2 cas
# self.editor.affiche_infos(commentaire)
- #self.Commentaire.setText(QString(commentaire))
+ #self.Commentaire.setText(tr(commentaire))
if validite :
self.editor.affiche_commentaire(commentaire)
else :
diff --git a/InterfaceQT4/readercata.py b/InterfaceQT4/readercata.py
index 721b1d78..d9440083 100644
--- a/InterfaceQT4/readercata.py
+++ b/InterfaceQT4/readercata.py
@@ -42,9 +42,12 @@ from monChoixCata import MonChoixCata
from Extensions.i18n import tr
from Extensions.eficas_exception import EficasException
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5 :
+ from PyQt5.QtWidgets import QMessageBox
+else :
+ from PyQt4.QtGui import *
+
class READERCATA:
diff --git a/InterfaceQT4/typeNode.py b/InterfaceQT4/typeNode.py
index aab893db..bb2bbb7d 100644
--- a/InterfaceQT4/typeNode.py
+++ b/InterfaceQT4/typeNode.py
@@ -17,9 +17,13 @@
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-from PyQt4 import *
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QAction, QMenu
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
+
from Extensions.i18n import tr
import types
@@ -33,7 +37,10 @@ class PopUpMenuRacine :
def createPopUpMenu(self):
#print "createPopUpMenu"
self.ParamApres = QAction(tr('Parametre'),self.tree)
- self.tree.connect(self.ParamApres,SIGNAL("triggered()"),self.addParametersApres)
+ if monEnvQT5 :
+ self.ParamApres.triggered.connect(self.addParametersApres)
+ else :
+ self.tree.connect(self.ParamApres,SIGNAL("triggered()"),self.addParametersApres)
self.ParamApres.setStatusTip(tr("Insere un parametre"))
self.menu = QMenu(self.tree)
self.menu.addAction(self.ParamApres)
@@ -51,7 +58,8 @@ class PopUpMenuNodeMinimal :
def createPopUpMenu(self):
#print "createPopUpMenu"
#self.appliEficas.salome=True
- self.createActions()
+ if monEnvQT5 : self.createActions()
+ else : self.createActionsQT4()
self.menu = QMenu(self.tree)
#self.menu.setStyleSheet("background:rgb(235,235,235); QMenu::item:selected { background-color: red; }")
#ne fonctionne pas --> la ligne de commentaire devient rouge
@@ -74,20 +82,36 @@ class PopUpMenuNodeMinimal :
tip=commande[5]
self.action=QAction(label,self.tree)
self.action.setStatusTip(tip)
- if numero==4:
- self.tree.connect(self.action,SIGNAL("triggered()"),self.AppelleFonction4)
- if numero==3:
- self.tree.connect(self.action,SIGNAL("triggered()"),self.AppelleFonction3)
- numero=4
- if numero==2:
- self.tree.connect(self.action,SIGNAL("triggered()"),self.AppelleFonction2)
- numero=3
- if numero==1:
- self.tree.connect(self.action,SIGNAL("triggered()"),self.AppelleFonction1)
- numero=2
- if numero==0:
- self.tree.connect(self.action,SIGNAL("triggered()"),self.AppelleFonction0)
- numero=1
+ if monEnvQT5 :
+ if numero==4:
+ self.action.triggered.connect(self.AppelleFonction4)
+ if numero==3:
+ self.action.triggered.connect(self.AppelleFonction3)
+ numero=4
+ if numero==2:
+ self.action.triggered.connect(self.AppelleFonction2)
+ numero=3
+ if numero==1:
+ self.action.triggered.connect(self.AppelleFonction1)
+ numero=2
+ if numero==0:
+ self.action.triggered.connect(self.AppelleFonction0)
+ numero=1
+ else:
+ if numero==4:
+ self.tree.connect(self.action,SIGNAL("triggered()"),self.AppelleFonction4)
+ if numero==3:
+ self.tree.connect(self.action,SIGNAL("triggered()"),self.AppelleFonction3)
+ numero=4
+ if numero==2:
+ self.tree.connect(self.action,SIGNAL("triggered()"),self.AppelleFonction2)
+ numero=3
+ if numero==1:
+ self.tree.connect(self.action,SIGNAL("triggered()"),self.AppelleFonction1)
+ numero=2
+ if numero==0:
+ self.tree.connect(self.action,SIGNAL("triggered()"),self.AppelleFonction0)
+ numero=1
self.menu.addAction(self.action)
@@ -114,8 +138,7 @@ class PopUpMenuNodeMinimal :
if (self.tree.currentItem().item.isvalid() == 0 and conditionValid == True):
QMessageBox.warning( None,
tr("item invalide"),
- tr("l item doit etre valide"),
- tr("&Ok"))
+ tr("l item doit etre valide"),)
return
fonction=commande[0]
listenomparam=commande[2]
@@ -130,7 +153,7 @@ class PopUpMenuNodeMinimal :
fonction(listeparam)
- def createActions(self):
+ def createActionsQT4(self):
self.CommApres = QAction(tr('apres'),self.tree)
self.tree.connect(self.CommApres,SIGNAL("triggered()"),self.addCommApres)
self.CommApres.setStatusTip(tr("Insere un commentaire apres la commande "))
@@ -150,6 +173,27 @@ class PopUpMenuNodeMinimal :
self.Supprime.setStatusTip(tr("supprime le mot clef "))
self.Documentation = QAction(tr('Documentation'),self.tree)
self.tree.connect(self.Documentation,SIGNAL("triggered()"),self.viewDoc)
+
+ def createActions(self):
+ self.CommApres = QAction(tr('apres'),self.tree)
+ self.CommApres.triggered.connect(self.addCommApres)
+ self.CommApres.setStatusTip(tr("Insere un commentaire apres la commande "))
+ self.CommAvant = QAction(tr('avant'),self.tree)
+ self.CommAvant.triggered.connect(self.addCommAvant)
+ self.CommAvant.setStatusTip(tr("Insere un commentaire avant la commande "))
+
+ self.ParamApres = QAction(tr('apres'),self.tree)
+ self.ParamApres.triggered.connect(self.addParamatersApres)
+ self.ParamApres.setStatusTip(tr("Insere un parametre apres la commande "))
+ self.ParamAvant = QAction(tr('avant'),self.tree)
+ self.ParamAvant.triggered.connect(self.addParamatersAvant)
+ self.ParamAvant.setStatusTip(tr("Insere un parametre avant la commande "))
+
+ self.Supprime = QAction(tr('Supprimer'),self.tree)
+ self.Supprime.triggered.connect(self.supprimeNoeud)
+ self.Supprime.setStatusTip(tr("supprime le mot clef "))
+ self.Documentation = QAction(tr('Documentation'),self.tree)
+ self.Documentation.triggered.connect(self.viewDoc)
self.Documentation.setStatusTip(tr("documentation sur la commande "))
def supprimeNoeud(self):
diff --git a/InterfaceQT4/viewManager.py b/InterfaceQT4/viewManager.py
index 6e5501a5..4d970ad8 100644
--- a/InterfaceQT4/viewManager.py
+++ b/InterfaceQT4/viewManager.py
@@ -19,9 +19,14 @@
#
import os, string
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
from Extensions.i18n import tr
+from determine import monEnvQT5
+if monEnvQT5:
+ from PyQt5.QtWidgets import QFileDialog
+ from PyQt5.QtCore import QFileInfo
+else :
+ from PyQt4.QtGui import *
+ from PyQt4.QtCore import *
DictExtensions= {"MAP" : ".map"}
class MyTabview:
@@ -37,9 +42,14 @@ class MyTabview:
self.doubles = {}
self.myQtab = self.appliEficas.myQtab
- self.myQtab.connect(self.myQtab, SIGNAL('tabCloseRequested(int)'), self.closeTab)
- if self.appliEficas.multi== True:
- self.myQtab.connect(self.myQtab,SIGNAL("currentChanged(int)"),self.indexChanged)
+
+ if monEnvQT5:
+ self.myQtab.currentChanged.connect(self.indexChanged)
+ self.myQtab.tabCloseRequested.connect(self.closeTab)
+ else :
+ self.myQtab.connect(self.myQtab, SIGNAL('tabCloseRequested(int)'), self.closeTab)
+ if self.appliEficas.multi== True:
+ self.myQtab.connect(self.myQtab,SIGNAL("currentChanged(int)"),self.indexChanged)
def indexChanged(self):
index=self.myQtab.currentIndex()
diff --git a/Telemac/qtEficas_Telemac.py b/Telemac/qtEficas_Telemac.py
index b1254f2c..f49b9bcb 100755
--- a/Telemac/qtEficas_Telemac.py
+++ b/Telemac/qtEficas_Telemac.py
@@ -27,7 +27,6 @@
import sys,os
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'..'))
-from PyQt4.QtCore import *
import prefs
from InterfaceQT4 import eficas_go
eficas_go.lance_eficas(code=prefs.code)
diff --git a/UiQT4/desWidgetOptionnelMC.ui b/UiQT4/desWidgetOptionnelMC.ui
new file mode 100644
index 00000000..950792e0
--- /dev/null
+++ b/UiQT4/desWidgetOptionnelMC.ui
@@ -0,0 +1,127 @@
+
+
+ desWidgetOptionnel
+
+
+
+ 0
+ 0
+ 384
+ 218
+
+
+
+ Form
+
+
+
+ 0
+
+ -
+
+
-
+
+
+ Qt::Horizontal
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 12121213
+ 25
+
+
+
+ TextLabel
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ background : rgb(247,247,247)
+
+
+ QFrame::NoFrame
+
+
+ 0
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 384
+ 185
+
+
+
+
+ 0
+ 0
+
+
+
+
-
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 75
+
+
+
+
+
+
+
+
+
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT4/makefile b/UiQT4/makefile
index 9a3fb8c4..2c0ed33f 100644
--- a/UiQT4/makefile
+++ b/UiQT4/makefile
@@ -6,7 +6,7 @@ QTRELEASE = lrelease-qt4
PY_FILES = myMain.py desBaseWidget.py desChoixCata.py desChoixCode.py desChoixCommandes.py desRecherche.py \
desSelectVal.py desViewTexte.py desViewRegles.py desVisu.py desWidgetCreeParam.py desWidgetCommande.py \
- desWidgetOptionnel.py Tuple2.py Tuple3.py \
+ desWidgetOptionnel.py desWidgetOptionnelMC.py Tuple2.py Tuple3.py \
desWidgetBloc.py desWidgetCB.py desWidgetCommentaire.py desWidgetDate.py \
desWidgetFact.py desWidgetFactPlie.py desWidgetHeure.py desWidgetInformation.py \
desWidgetInactif.py \
diff --git a/UiQT5/CMakeLists.txt b/UiQT5/CMakeLists.txt
new file mode 100644
index 00000000..e5182e8f
--- /dev/null
+++ b/UiQT5/CMakeLists.txt
@@ -0,0 +1,107 @@
+# -*- coding: utf-8 -*-
+# CONFIGURATION MANAGEMENT OF EDF VERSION
+# ======================================================================
+# COPYRIGHT (C) 1991 - 2002, 2013 EDF R&D WWW.CODE-ASTER.ORG
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
+# (AT YOUR OPTION) ANY LATER VERSION.
+#
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
+#
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
+# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
+#
+#
+# ======================================================================
+
+set ( _PYFILES )
+macro ( eficas_compile_ui uifile )
+ get_filename_component ( _file_we ${uifile} NAME_WE )
+ set ( _pyfile "${_file_we}.py" )
+ add_custom_command ( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_pyfile}
+ COMMAND ${PYUIC4} ARGS -x -o ${CMAKE_CURRENT_BINARY_DIR}/${_pyfile} ${CMAKE_CURRENT_SOURCE_DIR}/${uifile}
+ MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/${uifile}
+ COMMENT "Compiling ${uifile}"
+ )
+ list ( APPEND _PYFILES ${CMAKE_CURRENT_BINARY_DIR}/${_pyfile} )
+endmacro ( eficas_compile_ui )
+
+eficas_compile_ui ( myMain.ui )
+eficas_compile_ui ( desBaseWidget.ui )
+eficas_compile_ui ( desChoixCata.ui )
+eficas_compile_ui ( desChoixCode.ui )
+eficas_compile_ui ( desChoixCommandes.ui )
+eficas_compile_ui ( desRecherche.ui )
+eficas_compile_ui ( desSelectVal.ui )
+eficas_compile_ui ( desViewTexte.ui )
+eficas_compile_ui ( desViewRegles.ui )
+eficas_compile_ui ( desVisu.ui )
+eficas_compile_ui ( desWidgetCreeParam.ui )
+eficas_compile_ui ( desWidgetCommande.ui )
+eficas_compile_ui ( desWidgetOptionnel.ui )
+eficas_compile_ui ( Tuple2.ui )
+eficas_compile_ui ( Tuple3.ui )
+#
+eficas_compile_ui ( desWidgetBloc.ui )
+eficas_compile_ui ( desWidgetCB.ui )
+eficas_compile_ui ( desWidgetCommentaire.ui )
+eficas_compile_ui ( desWidgetDate.ui )
+eficas_compile_ui ( desWidgetFact.ui )
+eficas_compile_ui ( desWidgetFactPlie.ui )
+eficas_compile_ui ( desWidgetHeure.ui )
+eficas_compile_ui ( desWidgetInactif.ui )
+eficas_compile_ui ( desWidgetInformation.ui )
+eficas_compile_ui ( desWidgetMatrice.ui )
+eficas_compile_ui ( desWidgetParam.ui )
+eficas_compile_ui ( desWidgetPlusieursBase.ui )
+eficas_compile_ui ( desWidgetPlusieursInto.ui )
+eficas_compile_ui ( desWidgetPlusieursIntoOrdonne.ui )
+eficas_compile_ui ( desWidgetPlusieursTuple.ui )
+eficas_compile_ui ( desWidgetPlusieursPlie.ui )
+eficas_compile_ui ( desWidgetRadioButton.ui )
+eficas_compile_ui ( desWidget4a6RadioButton.ui )
+eficas_compile_ui ( desWidgetSDCOInto.ui )
+eficas_compile_ui ( desWidgetSimpBase.ui )
+eficas_compile_ui ( desWidgetSimpBool.ui )
+eficas_compile_ui ( desWidgetSimpComplexe.ui )
+eficas_compile_ui ( desWidgetSimpFichier.ui )
+eficas_compile_ui ( desWidgetSimpSalome.ui )
+eficas_compile_ui ( desWidgetSimpTxt.ui )
+eficas_compile_ui ( desWidgetTuple2.ui )
+eficas_compile_ui ( desWidgetTuple3.ui )
+eficas_compile_ui ( desWidgetUniqueSDCO.ui )
+eficas_compile_ui ( desWidgetVide.ui )
+
+add_custom_target ( CompileUI ALL DEPENDS ${_PYFILES}
+ COMMENT "Built UI files"
+ )
+
+install ( FILES ${_PYFILES}
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/UiQT4
+ )
+
+# Rules to compile TS files
+SET(TSFILES eficas_en.ts
+ eficas_fr.ts)
+
+SET(QMFILES)
+FOREACH(input ${TSFILES})
+ GET_FILENAME_COMPONENT(base ${input} NAME_WE)
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${base}.qm)
+ SET(QMFILES ${QMFILES} ${output})
+ ADD_CUSTOM_COMMAND(OUTPUT ${output}
+ COMMAND ${QT_LRELEASE_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${input} -qm ${output}
+ MAIN_DEPENDENCY ${input})
+ENDFOREACH(input ${TSFILES})
+
+ADD_CUSTOM_TARGET(CompileTS ALL DEPENDS ${QMFILES})
+INSTALL(FILES ${QMFILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/UiQT4)
+
+### Local Variables:
+### mode: cmake
+### End:
diff --git a/UiQT5/Newdoc.tgz b/UiQT5/Newdoc.tgz
new file mode 100644
index 00000000..1ec9456b
Binary files /dev/null and b/UiQT5/Newdoc.tgz differ
diff --git a/UiQT5/Tuple2.py b/UiQT5/Tuple2.py
new file mode 100644
index 00000000..c9214716
--- /dev/null
+++ b/UiQT5/Tuple2.py
@@ -0,0 +1,85 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'Tuple2.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_Tuple2(object):
+ def setupUi(self, Tuple2):
+ Tuple2.setObjectName("Tuple2")
+ Tuple2.resize(482, 34)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(Tuple2.sizePolicy().hasHeightForWidth())
+ Tuple2.setSizePolicy(sizePolicy)
+ self.horizontalLayout = QtWidgets.QHBoxLayout(Tuple2)
+ self.horizontalLayout.setContentsMargins(0, 1, 0, 0)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.label_5 = QtWidgets.QLabel(Tuple2)
+ self.label_5.setObjectName("label_5")
+ self.horizontalLayout.addWidget(self.label_5)
+ self.lineEditVal_1 = LECustomTuple(Tuple2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal_1.sizePolicy().hasHeightForWidth())
+ self.lineEditVal_1.setSizePolicy(sizePolicy)
+ self.lineEditVal_1.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal_1.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal_1.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;\n"
+"\n"
+"")
+ self.lineEditVal_1.setText("")
+ self.lineEditVal_1.setReadOnly(False)
+ self.lineEditVal_1.setObjectName("lineEditVal_1")
+ self.horizontalLayout.addWidget(self.lineEditVal_1)
+ self.label_6 = QtWidgets.QLabel(Tuple2)
+ self.label_6.setObjectName("label_6")
+ self.horizontalLayout.addWidget(self.label_6)
+ self.lineEditVal_2 = LECustomTuple(Tuple2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal_2.sizePolicy().hasHeightForWidth())
+ self.lineEditVal_2.setSizePolicy(sizePolicy)
+ self.lineEditVal_2.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal_2.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal_2.setFocusPolicy(QtCore.Qt.StrongFocus)
+ self.lineEditVal_2.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal_2.setObjectName("lineEditVal_2")
+ self.horizontalLayout.addWidget(self.lineEditVal_2)
+ self.label_7 = QtWidgets.QLabel(Tuple2)
+ self.label_7.setObjectName("label_7")
+ self.horizontalLayout.addWidget(self.label_7)
+ spacerItem = QtWidgets.QSpacerItem(5, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+
+ self.retranslateUi(Tuple2)
+ QtCore.QMetaObject.connectSlotsByName(Tuple2)
+
+ def retranslateUi(self, Tuple2):
+ _translate = QtCore.QCoreApplication.translate
+ Tuple2.setWindowTitle(_translate("Tuple2", "Form"))
+ self.label_5.setText(_translate("Tuple2", "(
"))
+ self.label_6.setText(_translate("Tuple2", ",
"))
+ self.label_7.setText(_translate("Tuple2", ")
"))
+
+from gereListe import LECustomTuple
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ Tuple2 = QtWidgets.QWidget()
+ ui = Ui_Tuple2()
+ ui.setupUi(Tuple2)
+ Tuple2.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/Tuple2.ui b/UiQT5/Tuple2.ui
new file mode 100644
index 00000000..fb7c2ab6
--- /dev/null
+++ b/UiQT5/Tuple2.ui
@@ -0,0 +1,149 @@
+
+
+ Tuple2
+
+
+
+ 0
+ 0
+ 482
+ 34
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">(</span></p></body></html>
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+
+
+
+
+ false
+
+
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">,</span></p></body></html>
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ Qt::StrongFocus
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">)</span></p></body></html>
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Preferred
+
+
+
+ 5
+ 20
+
+
+
+
+
+
+
+
+ LECustomTuple
+ QLineEdit
+
+
+
+
+
+
diff --git a/UiQT5/Tuple3.py b/UiQT5/Tuple3.py
new file mode 100644
index 00000000..61c69ac4
--- /dev/null
+++ b/UiQT5/Tuple3.py
@@ -0,0 +1,96 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'Tuple3.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_Tuple3(object):
+ def setupUi(self, Tuple3):
+ Tuple3.setObjectName("Tuple3")
+ Tuple3.resize(880, 33)
+ self.horizontalLayout = QtWidgets.QHBoxLayout(Tuple3)
+ self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.label_5 = QtWidgets.QLabel(Tuple3)
+ self.label_5.setObjectName("label_5")
+ self.horizontalLayout.addWidget(self.label_5)
+ self.lineEditVal_1 = LECustomTuple(Tuple3)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal_1.sizePolicy().hasHeightForWidth())
+ self.lineEditVal_1.setSizePolicy(sizePolicy)
+ self.lineEditVal_1.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal_1.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal_1.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;\n"
+"\n"
+"")
+ self.lineEditVal_1.setReadOnly(False)
+ self.lineEditVal_1.setObjectName("lineEditVal_1")
+ self.horizontalLayout.addWidget(self.lineEditVal_1)
+ self.label_6 = QtWidgets.QLabel(Tuple3)
+ self.label_6.setObjectName("label_6")
+ self.horizontalLayout.addWidget(self.label_6)
+ self.lineEditVal_2 = LECustomTuple(Tuple3)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal_2.sizePolicy().hasHeightForWidth())
+ self.lineEditVal_2.setSizePolicy(sizePolicy)
+ self.lineEditVal_2.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal_2.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal_2.setFocusPolicy(QtCore.Qt.StrongFocus)
+ self.lineEditVal_2.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal_2.setObjectName("lineEditVal_2")
+ self.horizontalLayout.addWidget(self.lineEditVal_2)
+ self.label_8 = QtWidgets.QLabel(Tuple3)
+ self.label_8.setObjectName("label_8")
+ self.horizontalLayout.addWidget(self.label_8)
+ self.lineEditVal_3 = LECustomTuple(Tuple3)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal_3.sizePolicy().hasHeightForWidth())
+ self.lineEditVal_3.setSizePolicy(sizePolicy)
+ self.lineEditVal_3.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal_3.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal_3.setFocusPolicy(QtCore.Qt.StrongFocus)
+ self.lineEditVal_3.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal_3.setObjectName("lineEditVal_3")
+ self.horizontalLayout.addWidget(self.lineEditVal_3)
+ self.label_7 = QtWidgets.QLabel(Tuple3)
+ self.label_7.setObjectName("label_7")
+ self.horizontalLayout.addWidget(self.label_7)
+ spacerItem = QtWidgets.QSpacerItem(123, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+
+ self.retranslateUi(Tuple3)
+ QtCore.QMetaObject.connectSlotsByName(Tuple3)
+
+ def retranslateUi(self, Tuple3):
+ _translate = QtCore.QCoreApplication.translate
+ Tuple3.setWindowTitle(_translate("Tuple3", "Form"))
+ self.label_5.setText(_translate("Tuple3", "(
"))
+ self.label_6.setText(_translate("Tuple3", ",
"))
+ self.label_8.setText(_translate("Tuple3", ",
"))
+ self.label_7.setText(_translate("Tuple3", ")
"))
+
+from gereListe import LECustomTuple
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ Tuple3 = QtWidgets.QWidget()
+ ui = Ui_Tuple3()
+ ui.setupUi(Tuple3)
+ Tuple3.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/Tuple3.ui b/UiQT5/Tuple3.ui
new file mode 100644
index 00000000..10c44979
--- /dev/null
+++ b/UiQT5/Tuple3.ui
@@ -0,0 +1,164 @@
+
+
+ Tuple3
+
+
+
+ 0
+ 0
+ 880
+ 33
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">(</span></p></body></html>
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+
+ false
+
+
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">,</span></p></body></html>
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ Qt::StrongFocus
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">,</span></p></body></html>
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ Qt::StrongFocus
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">)</span></p></body></html>
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 123
+ 20
+
+
+
+
+
+
+
+
+ LECustomTuple
+ QLineEdit
+
+
+
+
+
+
diff --git a/UiQT5/desBaseWidget.py b/UiQT5/desBaseWidget.py
new file mode 100644
index 00000000..b774e47a
--- /dev/null
+++ b/UiQT5/desBaseWidget.py
@@ -0,0 +1,73 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desBaseWidget.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_baseWidget(object):
+ def setupUi(self, baseWidget):
+ baseWidget.setObjectName("baseWidget")
+ baseWidget.resize(1038, 557)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(baseWidget.sizePolicy().hasHeightForWidth())
+ baseWidget.setSizePolicy(sizePolicy)
+ baseWidget.setMinimumSize(QtCore.QSize(0, 0))
+ baseWidget.setStyleSheet("")
+ self.verticalLayout = QtWidgets.QVBoxLayout(baseWidget)
+ self.verticalLayout.setContentsMargins(0, 0, 0, 0)
+ self.verticalLayout.setSpacing(3)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.splitter = QtWidgets.QSplitter(baseWidget)
+ self.splitter.setOrientation(QtCore.Qt.Horizontal)
+ self.splitter.setObjectName("splitter")
+ self.widgetTree = QtWidgets.QWidget(self.splitter)
+ self.widgetTree.setStyleSheet("background:rgb(247,247,247);\n"
+"\n"
+"")
+ self.widgetTree.setObjectName("widgetTree")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widgetTree)
+ self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
+ self.verticalLayout_2.setSpacing(6)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.widgetCentrale = QtWidgets.QWidget(self.splitter)
+ self.widgetCentrale.setObjectName("widgetCentrale")
+ self.widgetCentraleLayout = QtWidgets.QVBoxLayout(self.widgetCentrale)
+ self.widgetCentraleLayout.setContentsMargins(0, 0, 0, 0)
+ self.widgetCentraleLayout.setSpacing(6)
+ self.widgetCentraleLayout.setObjectName("widgetCentraleLayout")
+ self.verticalLayout.addWidget(self.splitter)
+ self.labelCommentaire = QtWidgets.QLabel(baseWidget)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.labelCommentaire.sizePolicy().hasHeightForWidth())
+ self.labelCommentaire.setSizePolicy(sizePolicy)
+ self.labelCommentaire.setMinimumSize(QtCore.QSize(0, 0))
+ self.labelCommentaire.setStyleSheet("")
+ self.labelCommentaire.setText("")
+ self.labelCommentaire.setObjectName("labelCommentaire")
+ self.verticalLayout.addWidget(self.labelCommentaire)
+
+ self.retranslateUi(baseWidget)
+ QtCore.QMetaObject.connectSlotsByName(baseWidget)
+
+ def retranslateUi(self, baseWidget):
+ _translate = QtCore.QCoreApplication.translate
+ baseWidget.setWindowTitle(_translate("baseWidget", "DMacro"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ baseWidget = QtWidgets.QWidget()
+ ui = Ui_baseWidget()
+ ui.setupUi(baseWidget)
+ baseWidget.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desBaseWidget.ui b/UiQT5/desBaseWidget.ui
new file mode 100644
index 00000000..49e74693
--- /dev/null
+++ b/UiQT5/desBaseWidget.ui
@@ -0,0 +1,92 @@
+
+
+ baseWidget
+
+
+
+ 0
+ 0
+ 1038
+ 557
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ DMacro
+
+
+
+
+
+
+ 3
+
+
+ 0
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ background:rgb(247,247,247);
+
+
+
+
+
+ 0
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+ qPixmapFromMimeSource
+
+
+
diff --git a/UiQT5/desChoixCata.py b/UiQT5/desChoixCata.py
new file mode 100644
index 00000000..5af1961e
--- /dev/null
+++ b/UiQT5/desChoixCata.py
@@ -0,0 +1,99 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desChoixCata.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_DChoixCata(object):
+ def setupUi(self, DChoixCata):
+ DChoixCata.setObjectName("DChoixCata")
+ DChoixCata.resize(466, 206)
+ DChoixCata.setSizeGripEnabled(True)
+ self.verticalLayout = QtWidgets.QVBoxLayout(DChoixCata)
+ self.verticalLayout.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout.setSpacing(6)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_3.setSpacing(6)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.TLNb = QtWidgets.QLabel(DChoixCata)
+ self.TLNb.setMinimumSize(QtCore.QSize(0, 0))
+ self.TLNb.setWordWrap(False)
+ self.TLNb.setObjectName("TLNb")
+ self.horizontalLayout_3.addWidget(self.TLNb)
+ spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem)
+ self.verticalLayout.addLayout(self.horizontalLayout_3)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 45, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem1)
+ self.CBChoixCata = QtWidgets.QComboBox(DChoixCata)
+ self.CBChoixCata.setEnabled(True)
+ self.CBChoixCata.setMinimumSize(QtCore.QSize(400, 41))
+ self.CBChoixCata.setMaximumSize(QtCore.QSize(150, 16777215))
+ self.CBChoixCata.setObjectName("CBChoixCata")
+ self.verticalLayout.addWidget(self.CBChoixCata)
+ spacerItem2 = QtWidgets.QSpacerItem(20, 45, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem2)
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout.setSpacing(6)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem3)
+ self.buttonCancel = QtWidgets.QPushButton(DChoixCata)
+ self.buttonCancel.setMinimumSize(QtCore.QSize(140, 40))
+ self.buttonCancel.setToolTip("")
+ self.buttonCancel.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.buttonCancel.setShortcut("")
+ self.buttonCancel.setAutoDefault(True)
+ self.buttonCancel.setObjectName("buttonCancel")
+ self.horizontalLayout.addWidget(self.buttonCancel)
+ spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem4)
+ self.buttonOk = QtWidgets.QPushButton(DChoixCata)
+ self.buttonOk.setMinimumSize(QtCore.QSize(140, 40))
+ self.buttonOk.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"\n"
+"")
+ self.buttonOk.setShortcut("")
+ self.buttonOk.setAutoDefault(True)
+ self.buttonOk.setDefault(True)
+ self.buttonOk.setObjectName("buttonOk")
+ self.horizontalLayout.addWidget(self.buttonOk)
+ self.verticalLayout.addLayout(self.horizontalLayout)
+
+ self.retranslateUi(DChoixCata)
+ QtCore.QMetaObject.connectSlotsByName(DChoixCata)
+
+ def retranslateUi(self, DChoixCata):
+ _translate = QtCore.QCoreApplication.translate
+ DChoixCata.setWindowTitle(_translate("DChoixCata", "Choix d\'une version du code Aster"))
+ self.TLNb.setText(_translate("DChoixCata", "\n"
+"\n"
+"2 versions sont disponibles
"))
+ self.buttonCancel.setText(_translate("DChoixCata", "&Cancel"))
+ self.buttonOk.setToolTip(_translate("DChoixCata", "Validate choice"))
+ self.buttonOk.setText(_translate("DChoixCata", "&OK"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ DChoixCata = QtWidgets.QDialog()
+ ui = Ui_DChoixCata()
+ ui.setupUi(DChoixCata)
+ DChoixCata.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desChoixCata.ui b/UiQT5/desChoixCata.ui
new file mode 100644
index 00000000..39a16c5a
--- /dev/null
+++ b/UiQT5/desChoixCata.ui
@@ -0,0 +1,201 @@
+
+
+ DChoixCata
+
+
+
+ 0
+ 0
+ 466
+ 206
+
+
+
+ Choix d'une version du code Aster
+
+
+ true
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">2 versions sont disponibles</span></p></body></html>
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 45
+
+
+
+
+ -
+
+
+ true
+
+
+
+ 400
+ 41
+
+
+
+
+ 150
+ 16777215
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 45
+
+
+
+
+ -
+
+
-
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+
+ 140
+ 40
+
+
+
+
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ &Cancel
+
+
+
+
+
+ true
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+
+ 140
+ 40
+
+
+
+ Validate choice
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+
+ &OK
+
+
+
+
+
+ true
+
+
+ true
+
+
+
+
+
+
+
+
+ qPixmapFromMimeSource
+
+
+
diff --git a/UiQT5/desChoixCode.py b/UiQT5/desChoixCode.py
new file mode 100644
index 00000000..f96cdb0d
--- /dev/null
+++ b/UiQT5/desChoixCode.py
@@ -0,0 +1,92 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desChoixCode.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_ChoixCode(object):
+ def setupUi(self, ChoixCode):
+ ChoixCode.setObjectName("ChoixCode")
+ ChoixCode.resize(555, 332)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(ChoixCode.sizePolicy().hasHeightForWidth())
+ ChoixCode.setSizePolicy(sizePolicy)
+ self.verticalLayout = QtWidgets.QVBoxLayout(ChoixCode)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.label_choix = QtWidgets.QLabel(ChoixCode)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label_choix.sizePolicy().hasHeightForWidth())
+ self.label_choix.setSizePolicy(sizePolicy)
+ self.label_choix.setMinimumSize(QtCore.QSize(0, 30))
+ self.label_choix.setObjectName("label_choix")
+ self.verticalLayout.addWidget(self.label_choix)
+ self.groupBox = QtWidgets.QGroupBox(ChoixCode)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
+ self.groupBox.setSizePolicy(sizePolicy)
+ self.groupBox.setTitle("")
+ self.groupBox.setObjectName("groupBox")
+ self.verticalLayout.addWidget(self.groupBox)
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.pB_cancel = QtWidgets.QPushButton(ChoixCode)
+ self.pB_cancel.setMinimumSize(QtCore.QSize(140, 40))
+ self.pB_cancel.setToolTip("")
+ self.pB_cancel.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.pB_cancel.setShortcut("")
+ self.pB_cancel.setAutoDefault(True)
+ self.pB_cancel.setObjectName("pB_cancel")
+ self.horizontalLayout.addWidget(self.pB_cancel)
+ spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem1)
+ self.pB_OK = QtWidgets.QPushButton(ChoixCode)
+ self.pB_OK.setMinimumSize(QtCore.QSize(140, 40))
+ self.pB_OK.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"\n"
+"")
+ self.pB_OK.setShortcut("")
+ self.pB_OK.setAutoDefault(True)
+ self.pB_OK.setDefault(True)
+ self.pB_OK.setObjectName("pB_OK")
+ self.horizontalLayout.addWidget(self.pB_OK)
+ self.verticalLayout.addLayout(self.horizontalLayout)
+
+ self.retranslateUi(ChoixCode)
+ QtCore.QMetaObject.connectSlotsByName(ChoixCode)
+
+ def retranslateUi(self, ChoixCode):
+ _translate = QtCore.QCoreApplication.translate
+ ChoixCode.setWindowTitle(_translate("ChoixCode", "Choix du code"))
+ self.label_choix.setText(_translate("ChoixCode", "Veuillez choisir un code :"))
+ self.pB_cancel.setText(_translate("ChoixCode", "&Cancel"))
+ self.pB_OK.setToolTip(_translate("ChoixCode", "Validate choice"))
+ self.pB_OK.setText(_translate("ChoixCode", "&OK"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ ChoixCode = QtWidgets.QWidget()
+ ui = Ui_ChoixCode()
+ ui.setupUi(ChoixCode)
+ ChoixCode.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desChoixCode.ui b/UiQT5/desChoixCode.ui
new file mode 100644
index 00000000..33ea0f8b
--- /dev/null
+++ b/UiQT5/desChoixCode.ui
@@ -0,0 +1,155 @@
+
+
+ ChoixCode
+
+
+
+ 0
+ 0
+ 555
+ 332
+
+
+
+
+ 0
+ 0
+
+
+
+ Choix du code
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 30
+
+
+
+ Veuillez choisir un code :
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ -
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+
+ 140
+ 40
+
+
+
+
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ &Cancel
+
+
+
+
+
+ true
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+
+ 140
+ 40
+
+
+
+ Validate choice
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+
+ &OK
+
+
+
+
+
+ true
+
+
+ true
+
+
+
+
+
+
+
+
+
+
diff --git a/UiQT5/desChoixCommandes.py b/UiQT5/desChoixCommandes.py
new file mode 100644
index 00000000..872a707b
--- /dev/null
+++ b/UiQT5/desChoixCommandes.py
@@ -0,0 +1,202 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desChoixCommandes.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_ChoixCommandes(object):
+ def setupUi(self, ChoixCommandes):
+ ChoixCommandes.setObjectName("ChoixCommandes")
+ ChoixCommandes.resize(1244, 652)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(ChoixCommandes.sizePolicy().hasHeightForWidth())
+ ChoixCommandes.setSizePolicy(sizePolicy)
+ ChoixCommandes.setMinimumSize(QtCore.QSize(505, 0))
+ ChoixCommandes.setStyleSheet("background-color : rgb(248,247,246)")
+ self.verticalLayout_4 = QtWidgets.QVBoxLayout(ChoixCommandes)
+ self.verticalLayout_4.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_4.setSpacing(6)
+ self.verticalLayout_4.setObjectName("verticalLayout_4")
+ self.frameAffichage = QtWidgets.QFrame(ChoixCommandes)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.frameAffichage.sizePolicy().hasHeightForWidth())
+ self.frameAffichage.setSizePolicy(sizePolicy)
+ self.frameAffichage.setMinimumSize(QtCore.QSize(0, 130))
+ self.frameAffichage.setMaximumSize(QtCore.QSize(16777215, 130))
+ self.frameAffichage.setStyleSheet("background-color:rgb(224,223,222)")
+ self.frameAffichage.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.frameAffichage.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.frameAffichage.setObjectName("frameAffichage")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frameAffichage)
+ self.horizontalLayout_3.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_3.setSpacing(6)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.label = QtWidgets.QLabel(self.frameAffichage)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setObjectName("label")
+ self.verticalLayout_2.addWidget(self.label)
+ self.RBalpha = QtWidgets.QRadioButton(self.frameAffichage)
+ self.RBalpha.setObjectName("RBalpha")
+ self.verticalLayout_2.addWidget(self.RBalpha)
+ self.RBOrdre = QtWidgets.QRadioButton(self.frameAffichage)
+ self.RBOrdre.setObjectName("RBOrdre")
+ self.verticalLayout_2.addWidget(self.RBOrdre)
+ self.RBGroupe = QtWidgets.QRadioButton(self.frameAffichage)
+ self.RBGroupe.setObjectName("RBGroupe")
+ self.verticalLayout_2.addWidget(self.RBGroupe)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_2)
+ spacerItem = QtWidgets.QSpacerItem(109, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem)
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_3.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_3.setSpacing(0)
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.textLabel6 = QtWidgets.QLabel(self.frameAffichage)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.textLabel6.sizePolicy().hasHeightForWidth())
+ self.textLabel6.setSizePolicy(sizePolicy)
+ self.textLabel6.setMinimumSize(QtCore.QSize(141, 35))
+ self.textLabel6.setMaximumSize(QtCore.QSize(16777215, 35))
+ self.textLabel6.setFrameShape(QtWidgets.QFrame.Box)
+ self.textLabel6.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.textLabel6.setLineWidth(1)
+ self.textLabel6.setWordWrap(False)
+ self.textLabel6.setObjectName("textLabel6")
+ self.verticalLayout_3.addWidget(self.textLabel6)
+ self.LEFiltre = QtWidgets.QLineEdit(self.frameAffichage)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.LEFiltre.sizePolicy().hasHeightForWidth())
+ self.LEFiltre.setSizePolicy(sizePolicy)
+ self.LEFiltre.setMinimumSize(QtCore.QSize(195, 30))
+ self.LEFiltre.setStyleSheet("background-color : rgb(248,247,246)")
+ self.LEFiltre.setFrame(False)
+ self.LEFiltre.setObjectName("LEFiltre")
+ self.verticalLayout_3.addWidget(self.LEFiltre)
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_2.setSpacing(6)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.RBCasse = QtWidgets.QRadioButton(self.frameAffichage)
+ self.RBCasse.setAutoExclusive(False)
+ self.RBCasse.setObjectName("RBCasse")
+ self.horizontalLayout_2.addWidget(self.RBCasse)
+ self.RBClear = QtWidgets.QPushButton(self.frameAffichage)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.RBClear.sizePolicy().hasHeightForWidth())
+ self.RBClear.setSizePolicy(sizePolicy)
+ self.RBClear.setMinimumSize(QtCore.QSize(200, 40))
+ self.RBClear.setMaximumSize(QtCore.QSize(200, 40))
+ self.RBClear.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.RBClear.setObjectName("RBClear")
+ self.horizontalLayout_2.addWidget(self.RBClear)
+ self.verticalLayout_3.addLayout(self.horizontalLayout_2)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_3)
+ spacerItem1 = QtWidgets.QSpacerItem(108, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem1)
+ self.verticalLayout_5 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_5.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_5.setSpacing(6)
+ self.verticalLayout_5.setObjectName("verticalLayout_5")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout.setSpacing(6)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.RBRegle = QtWidgets.QToolButton(self.frameAffichage)
+ self.RBRegle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBRegle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBRegle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBRegle.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/lettreRblanc30.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBRegle.setIcon(icon)
+ self.RBRegle.setIconSize(QtCore.QSize(21, 31))
+ self.RBRegle.setObjectName("RBRegle")
+ self.horizontalLayout.addWidget(self.RBRegle)
+ self.labelRegle = QtWidgets.QLabel(self.frameAffichage)
+ self.labelRegle.setObjectName("labelRegle")
+ self.horizontalLayout.addWidget(self.labelRegle)
+ self.verticalLayout_5.addLayout(self.horizontalLayout)
+ spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_5.addItem(spacerItem2)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_5)
+ self.verticalLayout_4.addWidget(self.frameAffichage)
+ self.scrollAreaCommandes = QtWidgets.QScrollArea(ChoixCommandes)
+ self.scrollAreaCommandes.setStyleSheet("")
+ self.scrollAreaCommandes.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollAreaCommandes.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
+ self.scrollAreaCommandes.setWidgetResizable(True)
+ self.scrollAreaCommandes.setObjectName("scrollAreaCommandes")
+ self.scrollAreaWidgetContents = QtWidgets.QWidget()
+ self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 1226, 498))
+ self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
+ self.verticalLayout = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
+ self.verticalLayout.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout.setSpacing(6)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.commandesLayout = QtWidgets.QVBoxLayout()
+ self.commandesLayout.setContentsMargins(11, 11, 11, 11)
+ self.commandesLayout.setSpacing(0)
+ self.commandesLayout.setObjectName("commandesLayout")
+ self.verticalLayout.addLayout(self.commandesLayout)
+ self.scrollAreaCommandes.setWidget(self.scrollAreaWidgetContents)
+ self.verticalLayout_4.addWidget(self.scrollAreaCommandes)
+
+ self.retranslateUi(ChoixCommandes)
+ QtCore.QMetaObject.connectSlotsByName(ChoixCommandes)
+
+ def retranslateUi(self, ChoixCommandes):
+ _translate = QtCore.QCoreApplication.translate
+ ChoixCommandes.setWindowTitle(_translate("ChoixCommandes", "DMacro"))
+ self.label.setText(_translate("ChoixCommandes", "Affichage
"))
+ self.RBalpha.setToolTip(_translate("ChoixCommandes", "affiche les commandes par ordre alphabetique"))
+ self.RBalpha.setText(_translate("ChoixCommandes", "Alphabetique"))
+ self.RBOrdre.setToolTip(_translate("ChoixCommandes", "affiche les commandes selon les thèmes"))
+ self.RBOrdre.setText(_translate("ChoixCommandes", "Ordre de la modélisation"))
+ self.RBGroupe.setToolTip(_translate("ChoixCommandes", "affiche les commandes selon les thèmes"))
+ self.RBGroupe.setText(_translate("ChoixCommandes", "Par Groupe"))
+ self.textLabel6.setToolTip(_translate("ChoixCommandes", "selectionne les mots qui CONTIENNENT l expression"))
+ self.textLabel6.setText(_translate("ChoixCommandes", "Filtre Commande
"))
+ self.LEFiltre.setToolTip(_translate("ChoixCommandes", "filter commands"))
+ self.RBCasse.setText(_translate("ChoixCommandes", "Sensible à la casse"))
+ self.RBClear.setToolTip(_translate("ChoixCommandes", "ré-affiche toutes les commandes"))
+ self.RBClear.setText(_translate("ChoixCommandes", "Effacer "))
+ self.RBRegle.setToolTip(_translate("ChoixCommandes", "affiche les régles de validité"))
+ self.RBRegle.setText(_translate("ChoixCommandes", "..."))
+ self.labelRegle.setText(_translate("ChoixCommandes", "Règles de construction"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ ChoixCommandes = QtWidgets.QWidget()
+ ui = Ui_ChoixCommandes()
+ ui.setupUi(ChoixCommandes)
+ ChoixCommandes.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desChoixCommandes.ui b/UiQT5/desChoixCommandes.ui
new file mode 100644
index 00000000..47c13539
--- /dev/null
+++ b/UiQT5/desChoixCommandes.ui
@@ -0,0 +1,371 @@
+
+
+ ChoixCommandes
+
+
+
+ 0
+ 0
+ 1244
+ 652
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 505
+ 0
+
+
+
+ DMacro
+
+
+ background-color : rgb(248,247,246)
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 130
+
+
+
+
+ 16777215
+ 130
+
+
+
+ background-color:rgb(224,223,222)
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Raised
+
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ <html><head/><body><p align="center"><span style=" text-decoration: underline;">Affichage</span></p></body></html>
+
+
+
+ -
+
+
+ affiche les commandes par ordre alphabetique
+
+
+ Alphabetique
+
+
+
+ -
+
+
+ affiche les commandes selon les thèmes
+
+
+ Ordre de la modélisation
+
+
+
+ -
+
+
+ affiche les commandes selon les thèmes
+
+
+ Par Groupe
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 109
+ 20
+
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 141
+ 35
+
+
+
+
+ 16777215
+ 35
+
+
+
+ selectionne les mots qui CONTIENNENT l expression
+
+
+ QFrame::Box
+
+
+ QFrame::Raised
+
+
+ 1
+
+
+ <html><head/><body><p align="center">Filtre Commande</p></body></html>
+
+
+ false
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 195
+ 30
+
+
+
+ filter commands
+
+
+ background-color : rgb(248,247,246)
+
+
+ false
+
+
+
+ -
+
+
-
+
+
+ Sensible à la casse
+
+
+ false
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 200
+ 40
+
+
+
+
+ 200
+ 40
+
+
+
+ ré-affiche toutes les commandes
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ Effacer
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 108
+ 20
+
+
+
+
+ -
+
+
-
+
+
-
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ affiche les régles de validité
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/lettreRblanc30.png../Editeur/icons/lettreRblanc30.png
+
+
+
+ 21
+ 31
+
+
+
+
+ -
+
+
+ Règles de construction
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+ QFrame::NoFrame
+
+
+ Qt::ScrollBarAsNeeded
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 1226
+ 498
+
+
+
+
-
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+ qPixmapFromMimeSource
+
+
+
diff --git a/UiQT5/desRecherche.py b/UiQT5/desRecherche.py
new file mode 100644
index 00000000..785a563a
--- /dev/null
+++ b/UiQT5/desRecherche.py
@@ -0,0 +1,58 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desRecherche.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_desRecherche(object):
+ def setupUi(self, desRecherche):
+ desRecherche.setObjectName("desRecherche")
+ desRecherche.resize(525, 55)
+ self.LERecherche = QtWidgets.QLineEdit(desRecherche)
+ self.LERecherche.setGeometry(QtCore.QRect(0, 10, 411, 41))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.LERecherche.sizePolicy().hasHeightForWidth())
+ self.LERecherche.setSizePolicy(sizePolicy)
+ self.LERecherche.setStyleSheet("background:rgb(240,240,240)")
+ self.LERecherche.setObjectName("LERecherche")
+ self.PBSuivant = QtWidgets.QPushButton(desRecherche)
+ self.PBSuivant.setEnabled(True)
+ self.PBSuivant.setGeometry(QtCore.QRect(420, 10, 101, 41))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.PBSuivant.sizePolicy().hasHeightForWidth())
+ self.PBSuivant.setSizePolicy(sizePolicy)
+ self.PBSuivant.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.PBSuivant.setAutoDefault(False)
+ self.PBSuivant.setDefault(True)
+ self.PBSuivant.setObjectName("PBSuivant")
+
+ self.retranslateUi(desRecherche)
+ QtCore.QMetaObject.connectSlotsByName(desRecherche)
+
+ def retranslateUi(self, desRecherche):
+ _translate = QtCore.QCoreApplication.translate
+ desRecherche.setWindowTitle(_translate("desRecherche", "Rechercher dans le JDC"))
+ desRecherche.setToolTip(_translate("desRecherche", "Next"))
+ self.PBSuivant.setText(_translate("desRecherche", "Suivant"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ desRecherche = QtWidgets.QWidget()
+ ui = Ui_desRecherche()
+ ui.setupUi(desRecherche)
+ desRecherche.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desRecherche.ui b/UiQT5/desRecherche.ui
new file mode 100644
index 00000000..a0a44f98
--- /dev/null
+++ b/UiQT5/desRecherche.ui
@@ -0,0 +1,75 @@
+
+
+ desRecherche
+
+
+
+ 0
+ 0
+ 525
+ 55
+
+
+
+ Rechercher dans le JDC
+
+
+ Next
+
+
+
+
+ 0
+ 10
+ 411
+ 41
+
+
+
+
+ 0
+ 0
+
+
+
+ background:rgb(240,240,240)
+
+
+
+
+ true
+
+
+
+ 420
+ 10
+ 101
+ 41
+
+
+
+
+ 0
+ 0
+
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ Suivant
+
+
+ false
+
+
+ true
+
+
+
+
+
+
diff --git a/UiQT5/desSelectVal.py b/UiQT5/desSelectVal.py
new file mode 100644
index 00000000..841b8a0f
--- /dev/null
+++ b/UiQT5/desSelectVal.py
@@ -0,0 +1,133 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desSelectVal.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_DSelVal(object):
+ def setupUi(self, DSelVal):
+ DSelVal.setObjectName("DSelVal")
+ DSelVal.resize(633, 705)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(DSelVal.sizePolicy().hasHeightForWidth())
+ DSelVal.setSizePolicy(sizePolicy)
+ DSelVal.setStyleSheet("background:rgb(235,235,235)")
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout(DSelVal)
+ self.verticalLayout_3.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_3.setSpacing(6)
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.TBtext = QtWidgets.QTextEdit(DSelVal)
+ self.TBtext.setMinimumSize(QtCore.QSize(0, 400))
+ self.TBtext.setStyleSheet("background:rgb(250,250,250)")
+ self.TBtext.setObjectName("TBtext")
+ self.verticalLayout_3.addWidget(self.TBtext)
+ spacerItem = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
+ self.verticalLayout_3.addItem(spacerItem)
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout.setSpacing(6)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.BGSeparateur = QtWidgets.QGroupBox(DSelVal)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.BGSeparateur.sizePolicy().hasHeightForWidth())
+ self.BGSeparateur.setSizePolicy(sizePolicy)
+ self.BGSeparateur.setMinimumSize(QtCore.QSize(280, 150))
+ self.BGSeparateur.setObjectName("BGSeparateur")
+ self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.BGSeparateur)
+ self.verticalLayout_4.setContentsMargins(11, 15, 11, 0)
+ self.verticalLayout_4.setSpacing(6)
+ self.verticalLayout_4.setObjectName("verticalLayout_4")
+ spacerItem1 = QtWidgets.QSpacerItem(20, 7, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
+ self.verticalLayout_4.addItem(spacerItem1)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.verticalLayout.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout.setSpacing(0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.Bespace = QtWidgets.QRadioButton(self.BGSeparateur)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.Bespace.sizePolicy().hasHeightForWidth())
+ self.Bespace.setSizePolicy(sizePolicy)
+ self.Bespace.setChecked(True)
+ self.Bespace.setObjectName("Bespace")
+ self.verticalLayout.addWidget(self.Bespace)
+ self.Bvirgule = QtWidgets.QRadioButton(self.BGSeparateur)
+ self.Bvirgule.setObjectName("Bvirgule")
+ self.verticalLayout.addWidget(self.Bvirgule)
+ self.BpointVirgule = QtWidgets.QRadioButton(self.BGSeparateur)
+ self.BpointVirgule.setObjectName("BpointVirgule")
+ self.verticalLayout.addWidget(self.BpointVirgule)
+ self.verticalLayout_4.addLayout(self.verticalLayout)
+ self.horizontalLayout.addWidget(self.BGSeparateur)
+ spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem2)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ spacerItem3 = QtWidgets.QSpacerItem(23, 43, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
+ self.verticalLayout_2.addItem(spacerItem3)
+ self.BImportTout = QtWidgets.QPushButton(DSelVal)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.BImportTout.sizePolicy().hasHeightForWidth())
+ self.BImportTout.setSizePolicy(sizePolicy)
+ self.BImportTout.setMinimumSize(QtCore.QSize(200, 40))
+ self.BImportTout.setMaximumSize(QtCore.QSize(200, 40))
+ self.BImportTout.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.BImportTout.setObjectName("BImportTout")
+ self.verticalLayout_2.addWidget(self.BImportTout)
+ self.BImportSel = QtWidgets.QPushButton(DSelVal)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.BImportSel.sizePolicy().hasHeightForWidth())
+ self.BImportSel.setSizePolicy(sizePolicy)
+ self.BImportSel.setMinimumSize(QtCore.QSize(200, 40))
+ self.BImportSel.setMaximumSize(QtCore.QSize(200, 40))
+ self.BImportSel.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.BImportSel.setObjectName("BImportSel")
+ self.verticalLayout_2.addWidget(self.BImportSel)
+ self.horizontalLayout.addLayout(self.verticalLayout_2)
+ self.verticalLayout_3.addLayout(self.horizontalLayout)
+
+ self.retranslateUi(DSelVal)
+ QtCore.QMetaObject.connectSlotsByName(DSelVal)
+
+ def retranslateUi(self, DSelVal):
+ _translate = QtCore.QCoreApplication.translate
+ DSelVal.setWindowTitle(_translate("DSelVal", "Sélection de valeurs"))
+ self.BGSeparateur.setTitle(_translate("DSelVal", "Separateur"))
+ self.Bespace.setText(_translate("DSelVal", "espace"))
+ self.Bvirgule.setText(_translate("DSelVal", "virgule"))
+ self.BpointVirgule.setText(_translate("DSelVal", "point-virgule"))
+ self.BImportTout.setText(_translate("DSelVal", "Importer Tout"))
+ self.BImportSel.setText(_translate("DSelVal", "Ajouter Selection"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ DSelVal = QtWidgets.QWidget()
+ ui = Ui_DSelVal()
+ ui.setupUi(DSelVal)
+ DSelVal.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desSelectVal.ui b/UiQT5/desSelectVal.ui
new file mode 100644
index 00000000..34baf93a
--- /dev/null
+++ b/UiQT5/desSelectVal.ui
@@ -0,0 +1,252 @@
+
+
+ DSelVal
+
+
+
+ 0
+ 0
+ 633
+ 705
+
+
+
+
+ 0
+ 0
+
+
+
+ Sélection de valeurs
+
+
+ background:rgb(235,235,235)
+
+
+ -
+
+
+
+ 0
+ 400
+
+
+
+ background:rgb(250,250,250)
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+ QSizePolicy::Fixed
+
+
+
+ 20
+ 10
+
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 280
+ 150
+
+
+
+ Separateur
+
+
+
+ 15
+
+
+ 0
+
+
-
+
+
+ Qt::Vertical
+
+
+ QSizePolicy::Fixed
+
+
+
+ 20
+ 7
+
+
+
+
+ -
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ espace
+
+
+ true
+
+
+
+ -
+
+
+ virgule
+
+
+
+ -
+
+
+ point-virgule
+
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+
+ 23
+ 43
+
+
+
+ Qt::Vertical
+
+
+ QSizePolicy::Fixed
+
+
+
+ 20
+ 40
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 200
+ 40
+
+
+
+
+ 200
+ 40
+
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ Importer Tout
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 200
+ 40
+
+
+
+
+ 200
+ 40
+
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ Ajouter Selection
+
+
+
+
+
+
+
+
+
+
+ qPixmapFromMimeSource
+
+
+
diff --git a/UiQT5/desViewRegles.py b/UiQT5/desViewRegles.py
new file mode 100644
index 00000000..59a55256
--- /dev/null
+++ b/UiQT5/desViewRegles.py
@@ -0,0 +1,50 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desViewRegles.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_viewRegles(object):
+ def setupUi(self, viewRegles):
+ viewRegles.setObjectName("viewRegles")
+ viewRegles.resize(411, 322)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout(viewRegles)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.scrollArea = QtWidgets.QScrollArea(viewRegles)
+ self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollArea.setWidgetResizable(True)
+ self.scrollArea.setObjectName("scrollArea")
+ self.scrollAreaWidgetContents = QtWidgets.QWidget()
+ self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 393, 304))
+ self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
+ self.verticalLayout = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
+ self.verticalLayout.setContentsMargins(0, 0, 0, 0)
+ self.verticalLayout.setSpacing(0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.LBRegles = QtWidgets.QListWidget(self.scrollAreaWidgetContents)
+ self.LBRegles.setObjectName("LBRegles")
+ self.verticalLayout.addWidget(self.LBRegles)
+ self.scrollArea.setWidget(self.scrollAreaWidgetContents)
+ self.verticalLayout_2.addWidget(self.scrollArea)
+
+ self.retranslateUi(viewRegles)
+ QtCore.QMetaObject.connectSlotsByName(viewRegles)
+
+ def retranslateUi(self, viewRegles):
+ _translate = QtCore.QCoreApplication.translate
+ viewRegles.setWindowTitle(_translate("viewRegles", "Dialog"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ viewRegles = QtWidgets.QDialog()
+ ui = Ui_viewRegles()
+ ui.setupUi(viewRegles)
+ viewRegles.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desViewRegles.ui b/UiQT5/desViewRegles.ui
new file mode 100644
index 00000000..03938cd2
--- /dev/null
+++ b/UiQT5/desViewRegles.ui
@@ -0,0 +1,52 @@
+
+
+ viewRegles
+
+
+
+ 0
+ 0
+ 411
+ 322
+
+
+
+ Dialog
+
+
+ -
+
+
+ QFrame::NoFrame
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 393
+ 304
+
+
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/UiQT5/desViewTexte.py b/UiQT5/desViewTexte.py
new file mode 100644
index 00000000..b0ae88b2
--- /dev/null
+++ b/UiQT5/desViewTexte.py
@@ -0,0 +1,50 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desViewTexte.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_dView(object):
+ def setupUi(self, dView):
+ dView.setObjectName("dView")
+ dView.resize(400, 322)
+ self.gridLayout = QtWidgets.QGridLayout(dView)
+ self.gridLayout.setObjectName("gridLayout")
+ self.view = QtWidgets.QTextBrowser(dView)
+ self.view.setObjectName("view")
+ self.gridLayout.addWidget(self.view, 0, 0, 1, 4)
+ spacerItem = QtWidgets.QSpacerItem(209, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.gridLayout.addItem(spacerItem, 1, 0, 1, 1)
+ self.bclose = QtWidgets.QPushButton(dView)
+ self.bclose.setObjectName("bclose")
+ self.gridLayout.addWidget(self.bclose, 1, 2, 1, 1)
+ self.bsave = QtWidgets.QPushButton(dView)
+ self.bsave.setObjectName("bsave")
+ self.gridLayout.addWidget(self.bsave, 1, 1, 1, 1)
+ self.view.raise_()
+ self.bclose.raise_()
+ self.bsave.raise_()
+
+ self.retranslateUi(dView)
+ QtCore.QMetaObject.connectSlotsByName(dView)
+
+ def retranslateUi(self, dView):
+ _translate = QtCore.QCoreApplication.translate
+ dView.setWindowTitle(_translate("dView", "Dialog"))
+ self.bclose.setText(_translate("dView", "Fermer"))
+ self.bsave.setText(_translate("dView", "Sauver"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ dView = QtWidgets.QDialog()
+ ui = Ui_dView()
+ ui.setupUi(dView)
+ dView.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desViewTexte.ui b/UiQT5/desViewTexte.ui
new file mode 100644
index 00000000..6cfa950e
--- /dev/null
+++ b/UiQT5/desViewTexte.ui
@@ -0,0 +1,53 @@
+
+ dView
+
+
+
+ 0
+ 0
+ 400
+ 322
+
+
+
+ Dialog
+
+
+ -
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 209
+ 20
+
+
+
+
+ -
+
+
+ Fermer
+
+
+
+ -
+
+
+ Sauver
+
+
+
+
+ view
+ bclose
+ bsave
+
+
+
+
diff --git a/UiQT5/desVisu.py b/UiQT5/desVisu.py
new file mode 100644
index 00000000..394e426f
--- /dev/null
+++ b/UiQT5/desVisu.py
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desVisu.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_DVisu(object):
+ def setupUi(self, DVisu):
+ DVisu.setObjectName("DVisu")
+ DVisu.resize(501, 61)
+ self.horizontalLayout = QtWidgets.QHBoxLayout(DVisu)
+ self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.TB = QtWidgets.QTextBrowser(DVisu)
+ self.TB.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.TB.setFrameShadow(QtWidgets.QFrame.Plain)
+ self.TB.setObjectName("TB")
+ self.horizontalLayout.addWidget(self.TB)
+
+ self.retranslateUi(DVisu)
+ QtCore.QMetaObject.connectSlotsByName(DVisu)
+
+ def retranslateUi(self, DVisu):
+ _translate = QtCore.QCoreApplication.translate
+ DVisu.setWindowTitle(_translate("DVisu", "Visualisation Include Materiau"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ DVisu = QtWidgets.QWidget()
+ ui = Ui_DVisu()
+ ui.setupUi(DVisu)
+ DVisu.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desVisu.ui b/UiQT5/desVisu.ui
new file mode 100644
index 00000000..6f25807a
--- /dev/null
+++ b/UiQT5/desVisu.ui
@@ -0,0 +1,39 @@
+
+
+ DVisu
+
+
+
+ 0
+ 0
+ 501
+ 61
+
+
+
+ Visualisation Include Materiau
+
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Plain
+
+
+
+
+
+
+ qPixmapFromMimeSource
+
+
+
diff --git a/UiQT5/desWidget4a6RadioButton.py b/UiQT5/desWidget4a6RadioButton.py
new file mode 100644
index 00000000..1bfe16d2
--- /dev/null
+++ b/UiQT5/desWidget4a6RadioButton.py
@@ -0,0 +1,170 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidget4a6RadioButton.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_Widget4a6RadioButton(object):
+ def setupUi(self, Widget4a6RadioButton):
+ Widget4a6RadioButton.setObjectName("Widget4a6RadioButton")
+ Widget4a6RadioButton.resize(949, 73)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(Widget4a6RadioButton.sizePolicy().hasHeightForWidth())
+ Widget4a6RadioButton.setSizePolicy(sizePolicy)
+ Widget4a6RadioButton.setMinimumSize(QtCore.QSize(0, 0))
+ Widget4a6RadioButton.setMaximumSize(QtCore.QSize(16777215, 16777215))
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout(Widget4a6RadioButton)
+ self.horizontalLayout_2.setContentsMargins(0, 2, 0, 2)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_3.setSpacing(0)
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(Widget4a6RadioButton)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout_3.addLayout(self.horizontalLayout)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_3.addItem(spacerItem1)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_3)
+ self.label = MonLabelClic(Widget4a6RadioButton)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_2.addWidget(self.label)
+ self.frame = QtWidgets.QFrame(Widget4a6RadioButton)
+ self.frame.setFrameShape(QtWidgets.QFrame.Box)
+ self.frame.setObjectName("frame")
+ self.gridLayout = QtWidgets.QGridLayout(self.frame)
+ self.gridLayout.setContentsMargins(1, 0, 1, 0)
+ self.gridLayout.setHorizontalSpacing(1)
+ self.gridLayout.setVerticalSpacing(0)
+ self.gridLayout.setObjectName("gridLayout")
+ self.radioButton_1 = QtWidgets.QRadioButton(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.radioButton_1.sizePolicy().hasHeightForWidth())
+ self.radioButton_1.setSizePolicy(sizePolicy)
+ self.radioButton_1.setObjectName("radioButton_1")
+ self.gridLayout.addWidget(self.radioButton_1, 0, 0, 1, 1)
+ self.radioButton_2 = QtWidgets.QRadioButton(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.radioButton_2.sizePolicy().hasHeightForWidth())
+ self.radioButton_2.setSizePolicy(sizePolicy)
+ self.radioButton_2.setObjectName("radioButton_2")
+ self.gridLayout.addWidget(self.radioButton_2, 0, 1, 1, 1)
+ self.radioButton_3 = QtWidgets.QRadioButton(self.frame)
+ self.radioButton_3.setObjectName("radioButton_3")
+ self.gridLayout.addWidget(self.radioButton_3, 0, 2, 1, 1)
+ self.radioButton_4 = QtWidgets.QRadioButton(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.radioButton_4.sizePolicy().hasHeightForWidth())
+ self.radioButton_4.setSizePolicy(sizePolicy)
+ self.radioButton_4.setObjectName("radioButton_4")
+ self.gridLayout.addWidget(self.radioButton_4, 1, 0, 1, 1)
+ self.radioButton_5 = QtWidgets.QRadioButton(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.radioButton_5.sizePolicy().hasHeightForWidth())
+ self.radioButton_5.setSizePolicy(sizePolicy)
+ self.radioButton_5.setObjectName("radioButton_5")
+ self.gridLayout.addWidget(self.radioButton_5, 1, 1, 1, 1)
+ self.radioButton_6 = QtWidgets.QRadioButton(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.radioButton_6.sizePolicy().hasHeightForWidth())
+ self.radioButton_6.setSizePolicy(sizePolicy)
+ self.radioButton_6.setObjectName("radioButton_6")
+ self.gridLayout.addWidget(self.radioButton_6, 1, 2, 1, 1)
+ self.horizontalLayout_2.addWidget(self.frame)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ spacerItem2 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
+ self.verticalLayout_2.addItem(spacerItem2)
+ spacerItem3 = QtWidgets.QSpacerItem(17, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem3)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_2)
+ self.verticalLayout_4 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_4.setObjectName("verticalLayout_4")
+ self.RBPoubelle = QtWidgets.QToolButton(Widget4a6RadioButton)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.StrongFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.verticalLayout_4.addWidget(self.RBPoubelle)
+ spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_4.addItem(spacerItem4)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_4)
+
+ self.retranslateUi(Widget4a6RadioButton)
+ QtCore.QMetaObject.connectSlotsByName(Widget4a6RadioButton)
+ Widget4a6RadioButton.setTabOrder(self.radioButton_1, self.radioButton_4)
+ Widget4a6RadioButton.setTabOrder(self.radioButton_4, self.RBPoubelle)
+
+ def retranslateUi(self, Widget4a6RadioButton):
+ _translate = QtCore.QCoreApplication.translate
+ Widget4a6RadioButton.setWindowTitle(_translate("Widget4a6RadioButton", "Form"))
+ self.RBValide.setToolTip(_translate("Widget4a6RadioButton", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("Widget4a6RadioButton", "..."))
+ self.label.setText(_translate("Widget4a6RadioButton", "aaa
dqsklmdqm
"))
+ self.radioButton_1.setText(_translate("Widget4a6RadioButton", "RadioButton"))
+ self.radioButton_2.setText(_translate("Widget4a6RadioButton", "RadioButton"))
+ self.radioButton_3.setText(_translate("Widget4a6RadioButton", "RadioButton"))
+ self.radioButton_4.setText(_translate("Widget4a6RadioButton", "RadioButton"))
+ self.radioButton_5.setText(_translate("Widget4a6RadioButton", "RadioButton"))
+ self.radioButton_6.setText(_translate("Widget4a6RadioButton", "RadioButton"))
+ self.RBPoubelle.setToolTip(_translate("Widget4a6RadioButton", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("Widget4a6RadioButton", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ Widget4a6RadioButton = QtWidgets.QWidget()
+ ui = Ui_Widget4a6RadioButton()
+ ui.setupUi(Widget4a6RadioButton)
+ Widget4a6RadioButton.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidget4a6RadioButton.ui b/UiQT5/desWidget4a6RadioButton.ui
new file mode 100644
index 00000000..71780e85
--- /dev/null
+++ b/UiQT5/desWidget4a6RadioButton.ui
@@ -0,0 +1,376 @@
+
+
+ Widget4a6RadioButton
+
+
+
+ 0
+ 0
+ 949
+ 73
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 16777215
+ 16777215
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 2
+
+
+ 0
+
+
+ 2
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+ QFrame::Box
+
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ RadioButton
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ RadioButton
+
+
+
+ -
+
+
+ RadioButton
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ RadioButton
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ RadioButton
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ RadioButton
+
+
+
+
+
+
+ -
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Maximum
+
+
+
+ 10
+ 20
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 17
+ 40
+
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 25
+ 25
+
+
+
+
+ 25
+ 25
+
+
+
+ Qt::StrongFocus
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+ radioButton_1
+ radioButton_4
+ RBPoubelle
+
+
+
+
diff --git a/UiQT5/desWidgetBloc.py b/UiQT5/desWidgetBloc.py
new file mode 100644
index 00000000..a5d89b6a
--- /dev/null
+++ b/UiQT5/desWidgetBloc.py
@@ -0,0 +1,49 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetBloc.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetBloc(object):
+ def setupUi(self, WidgetBloc):
+ WidgetBloc.setObjectName("WidgetBloc")
+ WidgetBloc.resize(1033, 25)
+ WidgetBloc.setStyleSheet(" QGroupBox {\n"
+" border: 1px solid gray;\n"
+" border-radius: 5px;\n"
+" margin-top: 1ex; /* leave space at the top for the title */\n"
+" }\n"
+"\n"
+" QGroupBox::title {\n"
+" padding: 0 3px;\n"
+" }")
+ self.verticalLayout = QtWidgets.QVBoxLayout(WidgetBloc)
+ self.verticalLayout.setContentsMargins(0, 0, 0, 0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.commandesLayout = QtWidgets.QVBoxLayout()
+ self.commandesLayout.setContentsMargins(-1, 5, -1, -1)
+ self.commandesLayout.setSpacing(0)
+ self.commandesLayout.setObjectName("commandesLayout")
+ self.verticalLayout.addLayout(self.commandesLayout)
+
+ self.retranslateUi(WidgetBloc)
+ QtCore.QMetaObject.connectSlotsByName(WidgetBloc)
+
+ def retranslateUi(self, WidgetBloc):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetBloc.setWindowTitle(_translate("WidgetBloc", "Form"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetBloc = QtWidgets.QWidget()
+ ui = Ui_WidgetBloc()
+ ui.setupUi(WidgetBloc)
+ WidgetBloc.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetBloc.ui b/UiQT5/desWidgetBloc.ui
new file mode 100644
index 00000000..439dd60f
--- /dev/null
+++ b/UiQT5/desWidgetBloc.ui
@@ -0,0 +1,45 @@
+
+
+ WidgetBloc
+
+
+
+ 0
+ 0
+ 1033
+ 25
+
+
+
+ Form
+
+
+ QGroupBox {
+ border: 1px solid gray;
+ border-radius: 5px;
+ margin-top: 1ex; /* leave space at the top for the title */
+ }
+
+ QGroupBox::title {
+ padding: 0 3px;
+ }
+
+
+
+ 0
+
+ -
+
+
+ 0
+
+
+ 5
+
+
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetCB.py b/UiQT5/desWidgetCB.py
new file mode 100644
index 00000000..6679b1d4
--- /dev/null
+++ b/UiQT5/desWidgetCB.py
@@ -0,0 +1,142 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetCB.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetCB(object):
+ def setupUi(self, WidgetCB):
+ WidgetCB.setObjectName("WidgetCB")
+ WidgetCB.resize(739, 63)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetCB.sizePolicy().hasHeightForWidth())
+ WidgetCB.setSizePolicy(sizePolicy)
+ WidgetCB.setMinimumSize(QtCore.QSize(0, 0))
+ WidgetCB.setMaximumSize(QtCore.QSize(1493, 85))
+ WidgetCB.setStyleSheet("QComboBox{combobox-popup:0;};")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(WidgetCB)
+ self.horizontalLayout_3.setContentsMargins(0, 2, 0, 1)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetCB)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(WidgetCB)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_3.addWidget(self.label)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setSpacing(0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.CBChoix = QtWidgets.QComboBox(WidgetCB)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.CBChoix.sizePolicy().hasHeightForWidth())
+ self.CBChoix.setSizePolicy(sizePolicy)
+ self.CBChoix.setMinimumSize(QtCore.QSize(361, 25))
+ self.CBChoix.setAccessibleName("")
+ self.CBChoix.setAccessibleDescription("")
+ self.CBChoix.setStyleSheet("QComboBox {\n"
+" background:rgb(235,235,235);\n"
+" }\n"
+"/*QComboBox: on {\n"
+" font : italic\n"
+" }\n"
+"background:rgb(235,235,235);\n"
+"border:0px;\n"
+"\n"
+"\n"
+"QComboBox:!editable:on, QComboBox::drop-down:editable:on {\n"
+"background: black;\n"
+" font : italic 14px\n"
+" }\n"
+"QComboBox:on { \n"
+" font : italic 20px;\n"
+" background: red ;\n"
+"}/*\n"
+"")
+ self.CBChoix.setMaxVisibleItems(100)
+ self.CBChoix.setFrame(False)
+ self.CBChoix.setObjectName("CBChoix")
+ self.horizontalLayout_2.addWidget(self.CBChoix)
+ spacerItem2 = QtWidgets.QSpacerItem(301, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem2)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetCB)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_2.addWidget(self.RBPoubelle)
+ self.verticalLayout.addLayout(self.horizontalLayout_2)
+ spacerItem3 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem3)
+ self.horizontalLayout_3.addLayout(self.verticalLayout)
+
+ self.retranslateUi(WidgetCB)
+ QtCore.QMetaObject.connectSlotsByName(WidgetCB)
+
+ def retranslateUi(self, WidgetCB):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetCB.setWindowTitle(_translate("WidgetCB", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetCB", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetCB", "..."))
+ self.label.setText(_translate("WidgetCB", "aaa
dqsklmdqm
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetCB", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetCB", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetCB = QtWidgets.QWidget()
+ ui = Ui_WidgetCB()
+ ui.setupUi(WidgetCB)
+ WidgetCB.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetCB.ui b/UiQT5/desWidgetCB.ui
new file mode 100644
index 00000000..c5f16d2c
--- /dev/null
+++ b/UiQT5/desWidgetCB.ui
@@ -0,0 +1,314 @@
+
+
+ WidgetCB
+
+
+
+ 0
+ 0
+ 739
+ 63
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 1493
+ 85
+
+
+
+ Form
+
+
+ QComboBox{combobox-popup:0;};
+
+
+
+ 0
+
+
+ 0
+
+
+ 2
+
+
+ 0
+
+
+ 1
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 361
+ 25
+
+
+
+
+
+
+
+
+
+ QComboBox {
+ background:rgb(235,235,235);
+ }
+/*QComboBox: on {
+ font : italic
+ }
+background:rgb(235,235,235);
+border:0px;
+
+
+QComboBox:!editable:on, QComboBox::drop-down:editable:on {
+background: black;
+ font : italic 14px
+ }
+QComboBox:on {
+ font : italic 20px;
+ background: red ;
+}/*
+
+
+
+ 100
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Expanding
+
+
+
+ 301
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetCommande.py b/UiQT5/desWidgetCommande.py
new file mode 100644
index 00000000..0cab2233
--- /dev/null
+++ b/UiQT5/desWidgetCommande.py
@@ -0,0 +1,286 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetCommande.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetCommande(object):
+ def setupUi(self, WidgetCommande):
+ WidgetCommande.setObjectName("WidgetCommande")
+ WidgetCommande.resize(1031, 250)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetCommande.sizePolicy().hasHeightForWidth())
+ WidgetCommande.setSizePolicy(sizePolicy)
+ WidgetCommande.setMinimumSize(QtCore.QSize(0, 0))
+ WidgetCommande.setToolTip("")
+ WidgetCommande.setStyleSheet("background-color : rgb(224,223,222);\n"
+"font : \'times\' 9px")
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout(WidgetCommande)
+ self.verticalLayout_3.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_3.setSpacing(6)
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_4.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_4.setSpacing(6)
+ self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+ self.frame_2 = QtWidgets.QFrame(WidgetCommande)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
+ self.frame_2.setSizePolicy(sizePolicy)
+ self.frame_2.setFrameShape(QtWidgets.QFrame.Box)
+ self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.frame_2.setObjectName("frame_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2)
+ self.horizontalLayout.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(self.frame_2)
+ self.RBValide.setMinimumSize(QtCore.QSize(17, 31))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(21, 31))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ spacerItem1 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem1)
+ self.labelNomCommande = MonLabelClic(self.frame_2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.labelNomCommande.sizePolicy().hasHeightForWidth())
+ self.labelNomCommande.setSizePolicy(sizePolicy)
+ self.labelNomCommande.setMinimumSize(QtCore.QSize(150, 31))
+ self.labelNomCommande.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.labelNomCommande.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.labelNomCommande.setObjectName("labelNomCommande")
+ self.horizontalLayout.addWidget(self.labelNomCommande)
+ spacerItem2 = QtWidgets.QSpacerItem(2, 40, QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem2)
+ self.LENom = QtWidgets.QLineEdit(self.frame_2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.LENom.sizePolicy().hasHeightForWidth())
+ self.LENom.setSizePolicy(sizePolicy)
+ self.LENom.setStyleSheet(" QLineEdit {\n"
+" border: 2px solid gray;\n"
+" border-radius: 10px;\n"
+" padding: 0 8px;\n"
+" background: darkgray;\n"
+" /* selection-background-color: darkgray;*/\n"
+" }\n"
+"QLineEdit:disabled\n"
+"{\n"
+" background: lightgray;\n"
+"}\n"
+"/*read-only {\n"
+" background: lightblue;*/")
+ self.LENom.setReadOnly(False)
+ self.LENom.setObjectName("LENom")
+ self.horizontalLayout.addWidget(self.LENom)
+ spacerItem3 = QtWidgets.QSpacerItem(2, 40, QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem3)
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_2.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_2.setSpacing(4)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.RBRun = QtWidgets.QToolButton(self.frame_2)
+ self.RBRun.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBRun.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBRun.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBRun.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/roue.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBRun.setIcon(icon1)
+ self.RBRun.setIconSize(QtCore.QSize(21, 31))
+ self.RBRun.setObjectName("RBRun")
+ self.horizontalLayout_2.addWidget(self.RBRun)
+ self.RBInfo = QtWidgets.QToolButton(self.frame_2)
+ self.RBInfo.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBInfo.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBInfo.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBInfo.setStyleSheet("border : 0px")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(QtGui.QPixmap("../Editeur/icons/point-interrogation30.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBInfo.setIcon(icon2)
+ self.RBInfo.setIconSize(QtCore.QSize(21, 31))
+ self.RBInfo.setObjectName("RBInfo")
+ self.horizontalLayout_2.addWidget(self.RBInfo)
+ self.RBRegle = QtWidgets.QToolButton(self.frame_2)
+ self.RBRegle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBRegle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBRegle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBRegle.setStyleSheet("border : 0px")
+ icon3 = QtGui.QIcon()
+ icon3.addPixmap(QtGui.QPixmap("../Editeur/icons/lettreRblanc30.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBRegle.setIcon(icon3)
+ self.RBRegle.setIconSize(QtCore.QSize(21, 31))
+ self.RBRegle.setObjectName("RBRegle")
+ self.horizontalLayout_2.addWidget(self.RBRegle)
+ self.horizontalLayout.addLayout(self.horizontalLayout_2)
+ spacerItem4 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem4)
+ self.RBPoubelle = QtWidgets.QToolButton(self.frame_2)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon4 = QtGui.QIcon()
+ icon4.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon4)
+ self.RBPoubelle.setIconSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout.addWidget(self.RBPoubelle)
+ self.RBValide.raise_()
+ self.labelNomCommande.raise_()
+ self.LENom.raise_()
+ self.RBPoubelle.raise_()
+ self.horizontalLayout_4.addWidget(self.frame_2)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_2.setSpacing(6)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.bCatalogue = QtWidgets.QPushButton(WidgetCommande)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bCatalogue.sizePolicy().hasHeightForWidth())
+ self.bCatalogue.setSizePolicy(sizePolicy)
+ self.bCatalogue.setMinimumSize(QtCore.QSize(160, 31))
+ self.bCatalogue.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.bCatalogue.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bCatalogue.setAutoDefault(True)
+ self.bCatalogue.setDefault(True)
+ self.bCatalogue.setObjectName("bCatalogue")
+ self.verticalLayout_2.addWidget(self.bCatalogue)
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_3.setSpacing(6)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.bAvant = QtWidgets.QPushButton(WidgetCommande)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bAvant.sizePolicy().hasHeightForWidth())
+ self.bAvant.setSizePolicy(sizePolicy)
+ self.bAvant.setMinimumSize(QtCore.QSize(60, 24))
+ self.bAvant.setMaximumSize(QtCore.QSize(60, 24))
+ self.bAvant.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.bAvant.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bAvant.setAutoDefault(True)
+ self.bAvant.setDefault(True)
+ self.bAvant.setObjectName("bAvant")
+ self.horizontalLayout_3.addWidget(self.bAvant)
+ self.bApres = QtWidgets.QPushButton(WidgetCommande)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bApres.sizePolicy().hasHeightForWidth())
+ self.bApres.setSizePolicy(sizePolicy)
+ self.bApres.setMinimumSize(QtCore.QSize(60, 24))
+ self.bApres.setMaximumSize(QtCore.QSize(60, 24))
+ self.bApres.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.bApres.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bApres.setAutoDefault(True)
+ self.bApres.setDefault(True)
+ self.bApres.setObjectName("bApres")
+ self.horizontalLayout_3.addWidget(self.bApres)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_3)
+ self.horizontalLayout_4.addLayout(self.verticalLayout_2)
+ self.verticalLayout_3.addLayout(self.horizontalLayout_4)
+ self.labelDoc = QtWidgets.QLabel(WidgetCommande)
+ self.labelDoc.setObjectName("labelDoc")
+ self.verticalLayout_3.addWidget(self.labelDoc)
+ self.scrollAreaCommandes = QtWidgets.QScrollArea(WidgetCommande)
+ self.scrollAreaCommandes.setMinimumSize(QtCore.QSize(0, 81))
+ self.scrollAreaCommandes.setStyleSheet("background : rgb(247,247,247)\n"
+"\n"
+"\n"
+"")
+ self.scrollAreaCommandes.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollAreaCommandes.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
+ self.scrollAreaCommandes.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
+ self.scrollAreaCommandes.setWidgetResizable(True)
+ self.scrollAreaCommandes.setObjectName("scrollAreaCommandes")
+ self.scrollAreaWidgetContents = QtWidgets.QWidget()
+ self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 1013, 129))
+ self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
+ self.verticalLayout = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
+ self.verticalLayout.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout.setSpacing(6)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.commandesLayout = QtWidgets.QVBoxLayout()
+ self.commandesLayout.setContentsMargins(11, 11, 11, 11)
+ self.commandesLayout.setSpacing(1)
+ self.commandesLayout.setObjectName("commandesLayout")
+ self.verticalLayout.addLayout(self.commandesLayout)
+ spacerItem5 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem5)
+ self.scrollAreaCommandes.setWidget(self.scrollAreaWidgetContents)
+ self.verticalLayout_3.addWidget(self.scrollAreaCommandes)
+
+ self.retranslateUi(WidgetCommande)
+ QtCore.QMetaObject.connectSlotsByName(WidgetCommande)
+
+ def retranslateUi(self, WidgetCommande):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetCommande.setWindowTitle(_translate("WidgetCommande", "DCommandeUnique"))
+ self.RBValide.setToolTip(_translate("WidgetCommande", "Affiche le rapport de validité de la commande"))
+ self.RBValide.setText(_translate("WidgetCommande", "..."))
+ self.labelNomCommande.setText(_translate("WidgetCommande", "commande
"))
+ self.LENom.setToolTip(_translate("WidgetCommande", "Nom de l\'objet. Seuls, les objets valides peuvent être nommés"))
+ self.RBRun.setToolTip(_translate("WidgetCommande", "Lance un script associé à la commande"))
+ self.RBRun.setText(_translate("WidgetCommande", "..."))
+ self.RBInfo.setToolTip(_translate("WidgetCommande", "ouvre un navigateur sur l\'aide contextuelle"))
+ self.RBInfo.setText(_translate("WidgetCommande", "..."))
+ self.RBRegle.setToolTip(_translate("WidgetCommande", "affiche les régles de validité"))
+ self.RBRegle.setText(_translate("WidgetCommande", "..."))
+ self.RBPoubelle.setToolTip(_translate("WidgetCommande", "Détruit la commande"))
+ self.RBPoubelle.setText(_translate("WidgetCommande", "..."))
+ self.bCatalogue.setToolTip(_translate("WidgetCommande", "Affiche les commandes possibles"))
+ self.bCatalogue.setText(_translate("WidgetCommande", "&Commandes"))
+ self.bCatalogue.setShortcut(_translate("WidgetCommande", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.bAvant.setToolTip(_translate("WidgetCommande", "Affiche le formulaire de la commande précédente"))
+ self.bAvant.setText(_translate("WidgetCommande", "<<"))
+ self.bAvant.setShortcut(_translate("WidgetCommande", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.bApres.setToolTip(_translate("WidgetCommande", "Affiche le formulaire de la commande suivante"))
+ self.bApres.setText(_translate("WidgetCommande", ">>"))
+ self.bApres.setShortcut(_translate("WidgetCommande", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.labelDoc.setText(_translate("WidgetCommande", "TextLabel"))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetCommande = QtWidgets.QWidget()
+ ui = Ui_WidgetCommande()
+ ui.setupUi(WidgetCommande)
+ WidgetCommande.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetCommande.ui b/UiQT5/desWidgetCommande.ui
new file mode 100644
index 00000000..a48c8947
--- /dev/null
+++ b/UiQT5/desWidgetCommande.ui
@@ -0,0 +1,629 @@
+
+
+ WidgetCommande
+
+
+
+ 0
+ 0
+ 1031
+ 250
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ DCommandeUnique
+
+
+
+
+
+ background-color : rgb(224,223,222);
+font : 'times' 9px
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ QFrame::Box
+
+
+ QFrame::Raised
+
+
+
+ 0
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 17
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validité de la commande
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 21
+ 31
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 150
+ 31
+
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Raised
+
+
+ <html><head/><body><p><span style=" color:#0000ff;">commande </span></p></body></html>
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Maximum
+
+
+
+ 2
+ 40
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Nom de l'objet. Seuls, les objets valides peuvent être nommés
+
+
+ QLineEdit {
+ border: 2px solid gray;
+ border-radius: 10px;
+ padding: 0 8px;
+ background: darkgray;
+ /* selection-background-color: darkgray;*/
+ }
+QLineEdit:disabled
+{
+ background: lightgray;
+}
+/*read-only {
+ background: lightblue;*/
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Ignored
+
+
+
+ 2
+ 40
+
+
+
+
+ -
+
+
+ 4
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Lance un script associé à la commande
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/roue.png../Editeur/icons/roue.png
+
+
+
+ 21
+ 31
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ ouvre un navigateur sur l'aide contextuelle
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/point-interrogation30.png../Editeur/icons/point-interrogation30.png
+
+
+
+ 21
+ 31
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ affiche les régles de validité
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/lettreRblanc30.png../Editeur/icons/lettreRblanc30.png
+
+
+
+ 21
+ 31
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Détruit la commande
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 21
+ 31
+
+
+
+
+
+ RBValide
+ labelNomCommande
+ LENom
+ horizontalSpacer_3
+ horizontalSpacer_4
+ RBPoubelle
+ horizontalSpacer_5
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 160
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche les commandes possibles
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ &Commandes
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 60
+ 24
+
+
+
+
+ 60
+ 24
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le formulaire de la commande précédente
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ <<
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 60
+ 24
+
+
+
+
+ 60
+ 24
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le formulaire de la commande suivante
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ >>
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+
+
+
+
+
+
+ -
+
+
+ TextLabel
+
+
+
+ -
+
+
+
+ 0
+ 81
+
+
+
+ background : rgb(247,247,247)
+
+
+
+
+
+ QFrame::NoFrame
+
+
+ Qt::ScrollBarAsNeeded
+
+
+ Qt::ScrollBarAsNeeded
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 1013
+ 129
+
+
+
+
-
+
+
+ 1
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+
+
+
+ qPixmapFromMimeSource
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetCommentaire.py b/UiQT5/desWidgetCommentaire.py
new file mode 100644
index 00000000..9be68be6
--- /dev/null
+++ b/UiQT5/desWidgetCommentaire.py
@@ -0,0 +1,214 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetCommentaire.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetCommentaire(object):
+ def setupUi(self, WidgetCommentaire):
+ WidgetCommentaire.setObjectName("WidgetCommentaire")
+ WidgetCommentaire.resize(1031, 177)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetCommentaire.sizePolicy().hasHeightForWidth())
+ WidgetCommentaire.setSizePolicy(sizePolicy)
+ WidgetCommentaire.setMinimumSize(QtCore.QSize(0, 0))
+ WidgetCommentaire.setToolTip("")
+ WidgetCommentaire.setStyleSheet("background-color : rgb(224,223,222);\n"
+"font : \'times\' 9px")
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout(WidgetCommentaire)
+ self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
+ self.verticalLayout_3.setSpacing(0)
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_2.setSpacing(6)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.frame_2 = QtWidgets.QFrame(WidgetCommentaire)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
+ self.frame_2.setSizePolicy(sizePolicy)
+ self.frame_2.setFrameShape(QtWidgets.QFrame.Box)
+ self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.frame_2.setObjectName("frame_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2)
+ self.horizontalLayout.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout.setSpacing(6)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(self.frame_2)
+ self.RBValide.setMinimumSize(QtCore.QSize(17, 31))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBValide.setToolTip("")
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(21, 31))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ spacerItem1 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem1)
+ self.labelNomCommande = QtWidgets.QLabel(self.frame_2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.labelNomCommande.sizePolicy().hasHeightForWidth())
+ self.labelNomCommande.setSizePolicy(sizePolicy)
+ self.labelNomCommande.setMinimumSize(QtCore.QSize(150, 31))
+ self.labelNomCommande.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.labelNomCommande.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.labelNomCommande.setObjectName("labelNomCommande")
+ self.horizontalLayout.addWidget(self.labelNomCommande)
+ spacerItem2 = QtWidgets.QSpacerItem(78, 40, QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem2)
+ self.RBPoubelle = QtWidgets.QToolButton(self.frame_2)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout.addWidget(self.RBPoubelle)
+ self.RBValide.raise_()
+ self.labelNomCommande.raise_()
+ self.RBPoubelle.raise_()
+ self.horizontalLayout_2.addWidget(self.frame_2)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_2.setSpacing(6)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.bCatalogue = QtWidgets.QPushButton(WidgetCommentaire)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bCatalogue.sizePolicy().hasHeightForWidth())
+ self.bCatalogue.setSizePolicy(sizePolicy)
+ self.bCatalogue.setMinimumSize(QtCore.QSize(160, 31))
+ self.bCatalogue.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bCatalogue.setAutoDefault(True)
+ self.bCatalogue.setDefault(True)
+ self.bCatalogue.setObjectName("bCatalogue")
+ self.verticalLayout_2.addWidget(self.bCatalogue)
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_3.setSpacing(6)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.bAvant = QtWidgets.QPushButton(WidgetCommentaire)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bAvant.sizePolicy().hasHeightForWidth())
+ self.bAvant.setSizePolicy(sizePolicy)
+ self.bAvant.setMinimumSize(QtCore.QSize(60, 24))
+ self.bAvant.setMaximumSize(QtCore.QSize(60, 24))
+ self.bAvant.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.bAvant.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bAvant.setAutoDefault(True)
+ self.bAvant.setDefault(True)
+ self.bAvant.setObjectName("bAvant")
+ self.horizontalLayout_3.addWidget(self.bAvant)
+ self.bApres = QtWidgets.QPushButton(WidgetCommentaire)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bApres.sizePolicy().hasHeightForWidth())
+ self.bApres.setSizePolicy(sizePolicy)
+ self.bApres.setMinimumSize(QtCore.QSize(60, 24))
+ self.bApres.setMaximumSize(QtCore.QSize(60, 24))
+ self.bApres.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.bApres.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bApres.setAutoDefault(True)
+ self.bApres.setDefault(True)
+ self.bApres.setObjectName("bApres")
+ self.horizontalLayout_3.addWidget(self.bApres)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_3)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_2)
+ self.verticalLayout_3.addLayout(self.horizontalLayout_2)
+ self.scrollAreaCommandes = QtWidgets.QScrollArea(WidgetCommentaire)
+ self.scrollAreaCommandes.setMinimumSize(QtCore.QSize(0, 0))
+ self.scrollAreaCommandes.setStyleSheet("\n"
+"\n"
+"\n"
+"")
+ self.scrollAreaCommandes.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollAreaCommandes.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
+ self.scrollAreaCommandes.setWidgetResizable(True)
+ self.scrollAreaCommandes.setObjectName("scrollAreaCommandes")
+ self.scrollAreaWidgetContents = QtWidgets.QWidget()
+ self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 1031, 110))
+ self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
+ self.verticalLayout = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
+ self.verticalLayout.setContentsMargins(0, 11, 0, 11)
+ self.verticalLayout.setSpacing(6)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.commentaireLE = QtWidgets.QLineEdit(self.scrollAreaWidgetContents)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.commentaireLE.sizePolicy().hasHeightForWidth())
+ self.commentaireLE.setSizePolicy(sizePolicy)
+ self.commentaireLE.setMinimumSize(QtCore.QSize(0, 43))
+ self.commentaireLE.setMaximumSize(QtCore.QSize(16777215, 43))
+ self.commentaireLE.setStyleSheet("background : rgb(247,247,247)")
+ self.commentaireLE.setFrame(False)
+ self.commentaireLE.setObjectName("commentaireLE")
+ self.verticalLayout.addWidget(self.commentaireLE)
+ spacerItem3 = QtWidgets.QSpacerItem(20, 32, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem3)
+ self.scrollAreaCommandes.setWidget(self.scrollAreaWidgetContents)
+ self.verticalLayout_3.addWidget(self.scrollAreaCommandes)
+
+ self.retranslateUi(WidgetCommentaire)
+ QtCore.QMetaObject.connectSlotsByName(WidgetCommentaire)
+ WidgetCommentaire.setTabOrder(self.RBPoubelle, self.bCatalogue)
+ WidgetCommentaire.setTabOrder(self.bCatalogue, self.RBValide)
+ WidgetCommentaire.setTabOrder(self.RBValide, self.scrollAreaCommandes)
+
+ def retranslateUi(self, WidgetCommentaire):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetCommentaire.setWindowTitle(_translate("WidgetCommentaire", "DCommandeUnique"))
+ self.RBValide.setText(_translate("WidgetCommentaire", "..."))
+ self.labelNomCommande.setText(_translate("WidgetCommentaire", "Commentaire
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetCommentaire", "Détruit le commentaire"))
+ self.RBPoubelle.setText(_translate("WidgetCommentaire", "..."))
+ self.bCatalogue.setToolTip(_translate("WidgetCommentaire", "Affiche les commandes possibles"))
+ self.bCatalogue.setText(_translate("WidgetCommentaire", "&Commandes"))
+ self.bCatalogue.setShortcut(_translate("WidgetCommentaire", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.bAvant.setToolTip(_translate("WidgetCommentaire", "Affiche le formulaire de la commande précédente"))
+ self.bAvant.setText(_translate("WidgetCommentaire", "<<"))
+ self.bAvant.setShortcut(_translate("WidgetCommentaire", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.bApres.setToolTip(_translate("WidgetCommentaire", "Affiche le formulaire de la commande suivante"))
+ self.bApres.setText(_translate("WidgetCommentaire", ">>"))
+ self.bApres.setShortcut(_translate("WidgetCommentaire", "Shift+A, Alt+A, Alt+A, Alt+A"))
+
+from monBoutonValide import MonBoutonValide
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetCommentaire = QtWidgets.QWidget()
+ ui = Ui_WidgetCommentaire()
+ ui.setupUi(WidgetCommentaire)
+ WidgetCommentaire.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetCommentaire.ui b/UiQT5/desWidgetCommentaire.ui
new file mode 100644
index 00000000..c6946972
--- /dev/null
+++ b/UiQT5/desWidgetCommentaire.ui
@@ -0,0 +1,452 @@
+
+
+ WidgetCommentaire
+
+
+
+ 0
+ 0
+ 1031
+ 177
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ DCommandeUnique
+
+
+
+
+
+ background-color : rgb(224,223,222);
+font : 'times' 9px
+
+
+
+ 0
+
+
+ 0
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ QFrame::Box
+
+
+ QFrame::Raised
+
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 17
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 21
+ 31
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 150
+ 31
+
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Raised
+
+
+ <html><head/><body><p><span style=" color:#0000ff;">Commentaire</span></p></body></html>
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Maximum
+
+
+
+ 78
+ 40
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Détruit le commentaire
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 21
+ 31
+
+
+
+
+
+ RBValide
+ labelNomCommande
+ horizontalSpacer_3
+ RBPoubelle
+ horizontalSpacer_5
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 160
+ 31
+
+
+
+ Affiche les commandes possibles
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ &Commandes
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 60
+ 24
+
+
+
+
+ 60
+ 24
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le formulaire de la commande précédente
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ <<
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 60
+ 24
+
+
+
+
+ 60
+ 24
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le formulaire de la commande suivante
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ >>
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+
+
+ QFrame::NoFrame
+
+
+ Qt::ScrollBarAsNeeded
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 1031
+ 110
+
+
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 43
+
+
+
+
+ 16777215
+ 43
+
+
+
+ background : rgb(247,247,247)
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 32
+
+
+
+
+
+
+
+
+
+
+
+ qPixmapFromMimeSource
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+
+ RBPoubelle
+ bCatalogue
+ RBValide
+ scrollAreaCommandes
+
+
+
+
diff --git a/UiQT5/desWidgetCreeParam.py b/UiQT5/desWidgetCreeParam.py
new file mode 100644
index 00000000..37a32f3b
--- /dev/null
+++ b/UiQT5/desWidgetCreeParam.py
@@ -0,0 +1,124 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetCreeParam.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_desWidgetCreeParam(object):
+ def setupUi(self, desWidgetCreeParam):
+ desWidgetCreeParam.setObjectName("desWidgetCreeParam")
+ desWidgetCreeParam.resize(728, 530)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout(desWidgetCreeParam)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.scrollArea = QtWidgets.QScrollArea(desWidgetCreeParam)
+ self.scrollArea.setMinimumSize(QtCore.QSize(701, 291))
+ self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollArea.setWidgetResizable(True)
+ self.scrollArea.setObjectName("scrollArea")
+ self.scrollAreaWidgetContents = QtWidgets.QWidget()
+ self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 710, 349))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollAreaWidgetContents.sizePolicy().hasHeightForWidth())
+ self.scrollAreaWidgetContents.setSizePolicy(sizePolicy)
+ self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
+ self.verticalLayout = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
+ self.verticalLayout.setContentsMargins(0, 0, 0, 0)
+ self.verticalLayout.setSpacing(0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.LBParam = QtWidgets.QListWidget(self.scrollAreaWidgetContents)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.LBParam.sizePolicy().hasHeightForWidth())
+ self.LBParam.setSizePolicy(sizePolicy)
+ self.LBParam.setMinimumSize(QtCore.QSize(701, 291))
+ self.LBParam.setStyleSheet("alternate-background-color:rgb(235,235,235); \n"
+"background-color: rgb(247,247,247);\n"
+"")
+ self.LBParam.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.LBParam.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.LBParam.setAlternatingRowColors(True)
+ self.LBParam.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
+ self.LBParam.setObjectName("LBParam")
+ self.verticalLayout.addWidget(self.LBParam)
+ self.scrollArea.setWidget(self.scrollAreaWidgetContents)
+ self.verticalLayout_2.addWidget(self.scrollArea)
+ spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
+ self.verticalLayout_2.addItem(spacerItem)
+ self.frame = QtWidgets.QFrame(desWidgetCreeParam)
+ self.frame.setMinimumSize(QtCore.QSize(701, 131))
+ self.frame.setStyleSheet("background:rgb(247,247,247)")
+ self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
+ self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.frame.setObjectName("frame")
+ self.layoutWidget = QtWidgets.QWidget(self.frame)
+ self.layoutWidget.setGeometry(QtCore.QRect(30, 40, 531, 70))
+ self.layoutWidget.setObjectName("layoutWidget")
+ self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget)
+ self.gridLayout.setObjectName("gridLayout")
+ self.lineEditVal = QtWidgets.QLineEdit(self.layoutWidget)
+ self.lineEditVal.setMinimumSize(QtCore.QSize(231, 31))
+ self.lineEditVal.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal.setFrame(False)
+ self.lineEditVal.setObjectName("lineEditVal")
+ self.gridLayout.addWidget(self.lineEditVal, 1, 1, 1, 1)
+ self.textLabel2_2 = QtWidgets.QLabel(self.layoutWidget)
+ self.textLabel2_2.setWordWrap(False)
+ self.textLabel2_2.setObjectName("textLabel2_2")
+ self.gridLayout.addWidget(self.textLabel2_2, 0, 0, 1, 1)
+ self.lineEditNom = QtWidgets.QLineEdit(self.layoutWidget)
+ self.lineEditNom.setMinimumSize(QtCore.QSize(231, 31))
+ self.lineEditNom.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditNom.setFrame(False)
+ self.lineEditNom.setObjectName("lineEditNom")
+ self.gridLayout.addWidget(self.lineEditNom, 0, 1, 1, 1)
+ self.textLabel2 = QtWidgets.QLabel(self.layoutWidget)
+ self.textLabel2.setWordWrap(False)
+ self.textLabel2.setObjectName("textLabel2")
+ self.gridLayout.addWidget(self.textLabel2, 1, 0, 1, 1)
+ self.layoutWidget_2 = QtWidgets.QWidget(self.frame)
+ self.layoutWidget_2.setGeometry(QtCore.QRect(30, 10, 531, 22))
+ self.layoutWidget_2.setObjectName("layoutWidget_2")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.layoutWidget_2)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.textLabel2_2_2 = QtWidgets.QLabel(self.layoutWidget_2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Ignored)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.textLabel2_2_2.sizePolicy().hasHeightForWidth())
+ self.textLabel2_2_2.setSizePolicy(sizePolicy)
+ self.textLabel2_2_2.setWordWrap(False)
+ self.textLabel2_2_2.setObjectName("textLabel2_2_2")
+ self.horizontalLayout_2.addWidget(self.textLabel2_2_2)
+ spacerItem1 = QtWidgets.QSpacerItem(288, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem1)
+ self.verticalLayout_2.addWidget(self.frame)
+
+ self.retranslateUi(desWidgetCreeParam)
+ QtCore.QMetaObject.connectSlotsByName(desWidgetCreeParam)
+
+ def retranslateUi(self, desWidgetCreeParam):
+ _translate = QtCore.QCoreApplication.translate
+ desWidgetCreeParam.setWindowTitle(_translate("desWidgetCreeParam", "Gestion des Paramètres"))
+ self.textLabel2_2.setText(_translate("desWidgetCreeParam", "Nom:
"))
+ self.textLabel2.setText(_translate("desWidgetCreeParam", "Valeur:
"))
+ self.textLabel2_2_2.setText(_translate("desWidgetCreeParam", "Créer un paramètre
"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ desWidgetCreeParam = QtWidgets.QWidget()
+ ui = Ui_desWidgetCreeParam()
+ ui.setupUi(desWidgetCreeParam)
+ desWidgetCreeParam.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetCreeParam.ui b/UiQT5/desWidgetCreeParam.ui
new file mode 100644
index 00000000..787f61c9
--- /dev/null
+++ b/UiQT5/desWidgetCreeParam.ui
@@ -0,0 +1,236 @@
+
+
+ desWidgetCreeParam
+
+
+
+ 0
+ 0
+ 728
+ 530
+
+
+
+ Gestion des Paramètres
+
+
+ -
+
+
+
+ 701
+ 291
+
+
+
+ QFrame::NoFrame
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 710
+ 349
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 701
+ 291
+
+
+
+ alternate-background-color:rgb(235,235,235);
+background-color: rgb(247,247,247);
+
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Raised
+
+
+ true
+
+
+ QAbstractItemView::SingleSelection
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+ QSizePolicy::Fixed
+
+
+
+ 20
+ 20
+
+
+
+
+ -
+
+
+
+ 701
+ 131
+
+
+
+ background:rgb(247,247,247)
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
+
+ 30
+ 40
+ 531
+ 70
+
+
+
+
-
+
+
+
+ 231
+ 31
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+ false
+
+
+
+ -
+
+
+ <html><head/><body><p>Nom: </p></body></html>
+
+
+ false
+
+
+
+ -
+
+
+
+ 231
+ 31
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+ false
+
+
+
+ -
+
+
+ <html><head/><body><p>Valeur: </p></body></html>
+
+
+ false
+
+
+
+
+
+
+
+
+ 30
+ 10
+ 531
+ 22
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ <html><head/><body><p><span style=" text-decoration: underline;">Créer un paramètre</span></p></body></html>
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 288
+ 20
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetDate.py b/UiQT5/desWidgetDate.py
new file mode 100644
index 00000000..f869ec6c
--- /dev/null
+++ b/UiQT5/desWidgetDate.py
@@ -0,0 +1,120 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetDate.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetDate(object):
+ def setupUi(self, WidgetDate):
+ WidgetDate.setObjectName("WidgetDate")
+ WidgetDate.resize(736, 62)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetDate.sizePolicy().hasHeightForWidth())
+ WidgetDate.setSizePolicy(sizePolicy)
+ WidgetDate.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(WidgetDate)
+ self.horizontalLayout_3.setContentsMargins(0, 1, 0, 1)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetDate)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout_2.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_2)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(WidgetDate)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_3.addWidget(self.label)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.label_2 = QtWidgets.QLabel(WidgetDate)
+ self.label_2.setText("")
+ self.label_2.setObjectName("label_2")
+ self.horizontalLayout.addWidget(self.label_2)
+ spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem2)
+ self.dateEdit = QtWidgets.QDateEdit(WidgetDate)
+ self.dateEdit.setObjectName("dateEdit")
+ self.horizontalLayout.addWidget(self.dateEdit)
+ spacerItem3 = QtWidgets.QSpacerItem(411, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem3)
+ self.label_5 = QtWidgets.QLabel(WidgetDate)
+ self.label_5.setText("")
+ self.label_5.setObjectName("label_5")
+ self.horizontalLayout.addWidget(self.label_5)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetDate)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout.addWidget(self.RBPoubelle)
+ self.verticalLayout.addLayout(self.horizontalLayout)
+ spacerItem4 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem4)
+ self.horizontalLayout_3.addLayout(self.verticalLayout)
+
+ self.retranslateUi(WidgetDate)
+ QtCore.QMetaObject.connectSlotsByName(WidgetDate)
+
+ def retranslateUi(self, WidgetDate):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetDate.setWindowTitle(_translate("WidgetDate", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetDate", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetDate", "..."))
+ self.label.setText(_translate("WidgetDate", "aaa
dqsklmdqm
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetDate", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetDate", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetDate = QtWidgets.QWidget()
+ ui = Ui_WidgetDate()
+ ui.setupUi(WidgetDate)
+ WidgetDate.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetDate.ui b/UiQT5/desWidgetDate.ui
new file mode 100644
index 00000000..873ab4f7
--- /dev/null
+++ b/UiQT5/desWidgetDate.ui
@@ -0,0 +1,283 @@
+
+
+ WidgetDate
+
+
+
+ 0
+ 0
+ 736
+ 62
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
-
+
+
-
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Preferred
+
+
+
+ 20
+ 20
+
+
+
+
+ -
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 411
+ 20
+
+
+
+
+ -
+
+
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetFact.py b/UiQT5/desWidgetFact.py
new file mode 100644
index 00000000..7bff4c3c
--- /dev/null
+++ b/UiQT5/desWidgetFact.py
@@ -0,0 +1,164 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetFact.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetFact(object):
+ def setupUi(self, WidgetFact):
+ WidgetFact.setObjectName("WidgetFact")
+ WidgetFact.resize(949, 49)
+ WidgetFact.setFocusPolicy(QtCore.Qt.StrongFocus)
+ WidgetFact.setStyleSheet(" QGroupBox {\n"
+" border: 1px solid gray;\n"
+" border-radius: 5px;\n"
+" margin-top: 1ex; /* leave space at the top for the title */\n"
+" }\n"
+"\n"
+" QGroupBox::title {\n"
+" padding: 0 3px;\n"
+" }")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(WidgetFact)
+ self.horizontalLayout_3.setContentsMargins(0, 2, 0, 0)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setSpacing(0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ spacerItem = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
+ self.verticalLayout.addItem(spacerItem)
+ self.RBPlie = QtWidgets.QToolButton(WidgetFact)
+ self.RBPlie.setMinimumSize(QtCore.QSize(21, 15))
+ self.RBPlie.setMaximumSize(QtCore.QSize(21, 21))
+ self.RBPlie.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/minusnode.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPlie.setIcon(icon)
+ self.RBPlie.setIconSize(QtCore.QSize(21, 21))
+ self.RBPlie.setObjectName("RBPlie")
+ self.verticalLayout.addWidget(self.RBPlie)
+ self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+ self.line_7 = QtWidgets.QFrame(WidgetFact)
+ self.line_7.setFrameShape(QtWidgets.QFrame.VLine)
+ self.line_7.setFrameShadow(QtWidgets.QFrame.Sunken)
+ self.line_7.setObjectName("line_7")
+ self.horizontalLayout_4.addWidget(self.line_7)
+ self.verticalLayout.addLayout(self.horizontalLayout_4)
+ self.horizontalLayout_3.addLayout(self.verticalLayout)
+ self.gridLayout = QtWidgets.QGridLayout()
+ self.gridLayout.setHorizontalSpacing(0)
+ self.gridLayout.setObjectName("gridLayout")
+ self.RBValide = MonBoutonValide(WidgetFact)
+ self.RBValide.setMinimumSize(QtCore.QSize(17, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon1)
+ self.RBValide.setIconSize(QtCore.QSize(21, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.gridLayout.addWidget(self.RBValide, 0, 0, 1, 1)
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.GroupBox = MonLabelClic(WidgetFact)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.GroupBox.sizePolicy().hasHeightForWidth())
+ self.GroupBox.setSizePolicy(sizePolicy)
+ self.GroupBox.setMinimumSize(QtCore.QSize(0, 25))
+ self.GroupBox.setMaximumSize(QtCore.QSize(12121213, 25))
+ self.GroupBox.setObjectName("GroupBox")
+ self.horizontalLayout.addWidget(self.GroupBox)
+ spacerItem1 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem1)
+ self.line_4 = QtWidgets.QFrame(WidgetFact)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.line_4.sizePolicy().hasHeightForWidth())
+ self.line_4.setSizePolicy(sizePolicy)
+ self.line_4.setMinimumSize(QtCore.QSize(200, 0))
+ self.line_4.setMaximumSize(QtCore.QSize(1500, 16))
+ self.line_4.setFrameShape(QtWidgets.QFrame.HLine)
+ self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
+ self.line_4.setObjectName("line_4")
+ self.horizontalLayout.addWidget(self.line_4)
+ spacerItem2 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem2)
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.RBInfo = QtWidgets.QToolButton(WidgetFact)
+ self.RBInfo.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBInfo.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBInfo.setStyleSheet("border : 0px")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(QtGui.QPixmap("../Editeur/icons/point-interrogation30.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBInfo.setIcon(icon2)
+ self.RBInfo.setIconSize(QtCore.QSize(21, 25))
+ self.RBInfo.setObjectName("RBInfo")
+ self.horizontalLayout_2.addWidget(self.RBInfo)
+ self.RBRegle = QtWidgets.QToolButton(WidgetFact)
+ self.RBRegle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBRegle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBRegle.setStyleSheet("border : 0px")
+ icon3 = QtGui.QIcon()
+ icon3.addPixmap(QtGui.QPixmap("../Editeur/icons/lettreRblanc30.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBRegle.setIcon(icon3)
+ self.RBRegle.setIconSize(QtCore.QSize(21, 25))
+ self.RBRegle.setObjectName("RBRegle")
+ self.horizontalLayout_2.addWidget(self.RBRegle)
+ self.horizontalLayout.addLayout(self.horizontalLayout_2)
+ spacerItem3 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem3)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetFact)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon4 = QtGui.QIcon()
+ icon4.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon4)
+ self.RBPoubelle.setIconSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout.addWidget(self.RBPoubelle)
+ self.gridLayout.addLayout(self.horizontalLayout, 0, 1, 1, 1)
+ self.commandesLayout = QtWidgets.QVBoxLayout()
+ self.commandesLayout.setContentsMargins(-1, 2, -1, -1)
+ self.commandesLayout.setSpacing(0)
+ self.commandesLayout.setObjectName("commandesLayout")
+ self.gridLayout.addLayout(self.commandesLayout, 1, 1, 1, 1)
+ self.horizontalLayout_3.addLayout(self.gridLayout)
+
+ self.retranslateUi(WidgetFact)
+ QtCore.QMetaObject.connectSlotsByName(WidgetFact)
+
+ def retranslateUi(self, WidgetFact):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetFact.setWindowTitle(_translate("WidgetFact", "Form"))
+ self.RBPlie.setText(_translate("WidgetFact", "..."))
+ self.RBValide.setText(_translate("WidgetFact", "..."))
+ self.GroupBox.setText(_translate("WidgetFact", "TextLabel
"))
+ self.RBInfo.setText(_translate("WidgetFact", "..."))
+ self.RBRegle.setText(_translate("WidgetFact", "..."))
+ self.RBPoubelle.setText(_translate("WidgetFact", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetFact = QtWidgets.QWidget()
+ ui = Ui_WidgetFact()
+ ui.setupUi(WidgetFact)
+ WidgetFact.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetFact.ui b/UiQT5/desWidgetFact.ui
new file mode 100644
index 00000000..ac200236
--- /dev/null
+++ b/UiQT5/desWidgetFact.ui
@@ -0,0 +1,390 @@
+
+
+ WidgetFact
+
+
+
+ 0
+ 0
+ 949
+ 49
+
+
+
+ Qt::StrongFocus
+
+
+ Form
+
+
+ QGroupBox {
+ border: 1px solid gray;
+ border-radius: 5px;
+ margin-top: 1ex; /* leave space at the top for the title */
+ }
+
+ QGroupBox::title {
+ padding: 0 3px;
+ }
+
+
+
+ 0
+
+
+ 0
+
+
+ 2
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+ 0
+
+
-
+
+
+ Qt::Vertical
+
+
+ QSizePolicy::Fixed
+
+
+
+ 20
+ 5
+
+
+
+
+ -
+
+
+
+ 21
+ 15
+
+
+
+
+ 21
+ 21
+
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/minusnode.png../Editeur/icons/minusnode.png
+
+
+
+ 21
+ 21
+
+
+
+
+ -
+
+
-
+
+
+ Qt::Vertical
+
+
+
+
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+
+ 17
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 21
+ 25
+
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 12121213
+ 25
+
+
+
+ <html><head/><body><p><span style=" font-style:italic;">TextLabel</span></p></body></html>
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 200
+ 0
+
+
+
+
+ 1500
+ 16
+
+
+
+ Qt::Horizontal
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/point-interrogation30.png../Editeur/icons/point-interrogation30.png
+
+
+
+ 21
+ 25
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/lettreRblanc30.png../Editeur/icons/lettreRblanc30.png
+
+
+
+ 21
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 21
+ 25
+
+
+
+
+
+
+ -
+
+
+ 0
+
+
+ 2
+
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetFactPlie.py b/UiQT5/desWidgetFactPlie.py
new file mode 100644
index 00000000..99c5eea6
--- /dev/null
+++ b/UiQT5/desWidgetFactPlie.py
@@ -0,0 +1,119 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetFactPlie.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetFactPlie(object):
+ def setupUi(self, WidgetFactPlie):
+ WidgetFactPlie.setObjectName("WidgetFactPlie")
+ WidgetFactPlie.resize(727, 27)
+ WidgetFactPlie.setStyleSheet(" QGroupBox {\n"
+" border: 1px solid gray;\n"
+" border-radius: 5px;\n"
+" margin-top: 1ex; /* leave space at the top for the title */\n"
+" }\n"
+"\n"
+" QGroupBox::title {\n"
+" padding: 0 3px;\n"
+" }")
+ self.horizontalLayout = QtWidgets.QHBoxLayout(WidgetFactPlie)
+ self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.RBDeplie = QtWidgets.QToolButton(WidgetFactPlie)
+ self.RBDeplie.setMinimumSize(QtCore.QSize(21, 15))
+ self.RBDeplie.setMaximumSize(QtCore.QSize(21, 21))
+ self.RBDeplie.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/plusnode.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBDeplie.setIcon(icon)
+ self.RBDeplie.setIconSize(QtCore.QSize(25, 25))
+ self.RBDeplie.setObjectName("RBDeplie")
+ self.horizontalLayout.addWidget(self.RBDeplie)
+ self.widget_5 = QtWidgets.QWidget(WidgetFactPlie)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.widget_5.sizePolicy().hasHeightForWidth())
+ self.widget_5.setSizePolicy(sizePolicy)
+ self.widget_5.setObjectName("widget_5")
+ self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.widget_5)
+ self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout_5.setSpacing(0)
+ self.horizontalLayout_5.setObjectName("horizontalLayout_5")
+ self.RBValide = MonBoutonValide(self.widget_5)
+ self.RBValide.setMinimumSize(QtCore.QSize(17, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon1)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout_5.addWidget(self.RBValide)
+ self.horizontalLayout.addWidget(self.widget_5)
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSpacing(22)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.groupBox = MonLabelClic(WidgetFactPlie)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
+ self.groupBox.setSizePolicy(sizePolicy)
+ self.groupBox.setMinimumSize(QtCore.QSize(0, 25))
+ self.groupBox.setMaximumSize(QtCore.QSize(12121213, 25))
+ self.groupBox.setObjectName("groupBox")
+ self.horizontalLayout_2.addWidget(self.groupBox)
+ self.line_5 = QtWidgets.QFrame(WidgetFactPlie)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.line_5.sizePolicy().hasHeightForWidth())
+ self.line_5.setSizePolicy(sizePolicy)
+ self.line_5.setMinimumSize(QtCore.QSize(500, 0))
+ self.line_5.setMaximumSize(QtCore.QSize(1500, 16))
+ self.line_5.setFrameShape(QtWidgets.QFrame.HLine)
+ self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken)
+ self.line_5.setObjectName("line_5")
+ self.horizontalLayout_2.addWidget(self.line_5)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetFactPlie)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon2)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_2.addWidget(self.RBPoubelle)
+ self.horizontalLayout.addLayout(self.horizontalLayout_2)
+
+ self.retranslateUi(WidgetFactPlie)
+ QtCore.QMetaObject.connectSlotsByName(WidgetFactPlie)
+
+ def retranslateUi(self, WidgetFactPlie):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetFactPlie.setWindowTitle(_translate("WidgetFactPlie", "Form"))
+ self.RBDeplie.setText(_translate("WidgetFactPlie", "..."))
+ self.RBValide.setText(_translate("WidgetFactPlie", "..."))
+ self.groupBox.setText(_translate("WidgetFactPlie", "TextLabel"))
+ self.RBPoubelle.setText(_translate("WidgetFactPlie", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetFactPlie = QtWidgets.QWidget()
+ ui = Ui_WidgetFactPlie()
+ ui.setupUi(WidgetFactPlie)
+ WidgetFactPlie.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetFactPlie.ui b/UiQT5/desWidgetFactPlie.ui
new file mode 100644
index 00000000..57ccde00
--- /dev/null
+++ b/UiQT5/desWidgetFactPlie.ui
@@ -0,0 +1,221 @@
+
+
+ WidgetFactPlie
+
+
+
+ 0
+ 0
+ 727
+ 27
+
+
+
+ Form
+
+
+ QGroupBox {
+ border: 1px solid gray;
+ border-radius: 5px;
+ margin-top: 1ex; /* leave space at the top for the title */
+ }
+
+ QGroupBox::title {
+ padding: 0 3px;
+ }
+
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+
+ 21
+ 15
+
+
+
+
+ 21
+ 21
+
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/plusnode.png../Editeur/icons/plusnode.png
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+
+ 17
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+
+ -
+
+
+ 22
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 12121213
+ 25
+
+
+
+ TextLabel
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 500
+ 0
+
+
+
+
+ 1500
+ 16
+
+
+
+ Qt::Horizontal
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetHeure.py b/UiQT5/desWidgetHeure.py
new file mode 100644
index 00000000..be8f3c76
--- /dev/null
+++ b/UiQT5/desWidgetHeure.py
@@ -0,0 +1,110 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetHeure.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetHeure(object):
+ def setupUi(self, WidgetHeure):
+ WidgetHeure.setObjectName("WidgetHeure")
+ WidgetHeure.resize(658, 61)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetHeure.sizePolicy().hasHeightForWidth())
+ WidgetHeure.setSizePolicy(sizePolicy)
+ WidgetHeure.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(WidgetHeure)
+ self.horizontalLayout_3.setContentsMargins(0, 1, 0, 0)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetHeure)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.horizontalLayout_3.addLayout(self.horizontalLayout)
+ self.label = MonLabelClic(WidgetHeure)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_3.addWidget(self.label)
+ self.label_2 = QtWidgets.QLabel(WidgetHeure)
+ self.label_2.setObjectName("label_2")
+ self.horizontalLayout_3.addWidget(self.label_2)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ spacerItem1 = QtWidgets.QSpacerItem(17, 17, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem1)
+ self.timeEdit = QtWidgets.QTimeEdit(WidgetHeure)
+ self.timeEdit.setObjectName("timeEdit")
+ self.horizontalLayout_2.addWidget(self.timeEdit)
+ spacerItem2 = QtWidgets.QSpacerItem(454, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem2)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetHeure)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_2.addWidget(self.RBPoubelle)
+ self.verticalLayout.addLayout(self.horizontalLayout_2)
+ spacerItem3 = QtWidgets.QSpacerItem(20, 3, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem3)
+ self.horizontalLayout_3.addLayout(self.verticalLayout)
+
+ self.retranslateUi(WidgetHeure)
+ QtCore.QMetaObject.connectSlotsByName(WidgetHeure)
+
+ def retranslateUi(self, WidgetHeure):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetHeure.setWindowTitle(_translate("WidgetHeure", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetHeure", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetHeure", "..."))
+ self.label.setText(_translate("WidgetHeure", "aaa
dqsklmdqm
"))
+ self.label_2.setText(_translate("WidgetHeure", "
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetHeure", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetHeure", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetHeure = QtWidgets.QWidget()
+ ui = Ui_WidgetHeure()
+ ui.setupUi(WidgetHeure)
+ WidgetHeure.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetHeure.ui b/UiQT5/desWidgetHeure.ui
new file mode 100644
index 00000000..03d5dfba
--- /dev/null
+++ b/UiQT5/desWidgetHeure.ui
@@ -0,0 +1,256 @@
+
+
+ WidgetHeure
+
+
+
+ 0
+ 0
+ 658
+ 61
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+ <html><head/><body><p><br/></p></body></html>
+
+
+
+ -
+
+
-
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Preferred
+
+
+
+ 17
+ 17
+
+
+
+
+ -
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 454
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 3
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetInactif.py b/UiQT5/desWidgetInactif.py
new file mode 100644
index 00000000..6a7228b7
--- /dev/null
+++ b/UiQT5/desWidgetInactif.py
@@ -0,0 +1,206 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetInactif.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetInactif(object):
+ def setupUi(self, WidgetInactif):
+ WidgetInactif.setObjectName("WidgetInactif")
+ WidgetInactif.resize(946, 495)
+ WidgetInactif.setMinimumSize(QtCore.QSize(350, 0))
+ self.verticalLayout = QtWidgets.QVBoxLayout(WidgetInactif)
+ self.verticalLayout.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout.setSpacing(6)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_4.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_4.setSpacing(6)
+ self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+ self.frame = QtWidgets.QFrame(WidgetInactif)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
+ self.frame.setSizePolicy(sizePolicy)
+ self.frame.setFrameShape(QtWidgets.QFrame.Box)
+ self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.frame.setObjectName("frame")
+ self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
+ self.horizontalLayout.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = QtWidgets.QCheckBox(self.frame)
+ self.RBValide.setMinimumSize(QtCore.QSize(17, 31))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ self.RBValide.setText("")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-white-square.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(21, 31))
+ self.RBValide.setCheckable(False)
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ spacerItem1 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem1)
+ self.labelNomCommande = MonLabelClic(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.labelNomCommande.sizePolicy().hasHeightForWidth())
+ self.labelNomCommande.setSizePolicy(sizePolicy)
+ self.labelNomCommande.setMinimumSize(QtCore.QSize(150, 31))
+ self.labelNomCommande.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.labelNomCommande.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.labelNomCommande.setObjectName("labelNomCommande")
+ self.horizontalLayout.addWidget(self.labelNomCommande)
+ spacerItem2 = QtWidgets.QSpacerItem(2, 40, QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem2)
+ spacerItem3 = QtWidgets.QSpacerItem(2, 40, QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem3)
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_2.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_2.setSpacing(4)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.horizontalLayout.addLayout(self.horizontalLayout_2)
+ spacerItem4 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem4)
+ self.RBPoubelle = QtWidgets.QToolButton(self.frame)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout.addWidget(self.RBPoubelle)
+ self.RBValide.raise_()
+ self.labelNomCommande.raise_()
+ self.RBPoubelle.raise_()
+ self.horizontalLayout_4.addWidget(self.frame)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_2.setSpacing(6)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.bCatalogue = QtWidgets.QPushButton(WidgetInactif)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bCatalogue.sizePolicy().hasHeightForWidth())
+ self.bCatalogue.setSizePolicy(sizePolicy)
+ self.bCatalogue.setMinimumSize(QtCore.QSize(160, 31))
+ self.bCatalogue.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.bCatalogue.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bCatalogue.setAutoDefault(True)
+ self.bCatalogue.setDefault(True)
+ self.bCatalogue.setObjectName("bCatalogue")
+ self.verticalLayout_2.addWidget(self.bCatalogue)
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_3.setSpacing(6)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.bAvant = QtWidgets.QPushButton(WidgetInactif)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bAvant.sizePolicy().hasHeightForWidth())
+ self.bAvant.setSizePolicy(sizePolicy)
+ self.bAvant.setMinimumSize(QtCore.QSize(60, 24))
+ self.bAvant.setMaximumSize(QtCore.QSize(60, 24))
+ self.bAvant.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.bAvant.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bAvant.setAutoDefault(True)
+ self.bAvant.setDefault(True)
+ self.bAvant.setObjectName("bAvant")
+ self.horizontalLayout_3.addWidget(self.bAvant)
+ self.bApres = QtWidgets.QPushButton(WidgetInactif)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bApres.sizePolicy().hasHeightForWidth())
+ self.bApres.setSizePolicy(sizePolicy)
+ self.bApres.setMinimumSize(QtCore.QSize(60, 24))
+ self.bApres.setMaximumSize(QtCore.QSize(60, 24))
+ self.bApres.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.bApres.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bApres.setAutoDefault(True)
+ self.bApres.setDefault(True)
+ self.bApres.setObjectName("bApres")
+ self.horizontalLayout_3.addWidget(self.bApres)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_3)
+ self.horizontalLayout_4.addLayout(self.verticalLayout_2)
+ self.verticalLayout.addLayout(self.horizontalLayout_4)
+ spacerItem5 = QtWidgets.QSpacerItem(20, 66, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem5)
+ self.textLabel1_3 = QtWidgets.QLabel(WidgetInactif)
+ self.textLabel1_3.setMinimumSize(QtCore.QSize(0, 0))
+ self.textLabel1_3.setWordWrap(False)
+ self.textLabel1_3.setObjectName("textLabel1_3")
+ self.verticalLayout.addWidget(self.textLabel1_3)
+ spacerItem6 = QtWidgets.QSpacerItem(20, 67, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem6)
+ self.textLabel1 = QtWidgets.QLabel(WidgetInactif)
+ self.textLabel1.setWordWrap(False)
+ self.textLabel1.setObjectName("textLabel1")
+ self.verticalLayout.addWidget(self.textLabel1)
+ spacerItem7 = QtWidgets.QSpacerItem(20, 66, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem7)
+
+ self.retranslateUi(WidgetInactif)
+ QtCore.QMetaObject.connectSlotsByName(WidgetInactif)
+
+ def retranslateUi(self, WidgetInactif):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetInactif.setWindowTitle(_translate("WidgetInactif", "DInactif"))
+ self.RBValide.setToolTip(_translate("WidgetInactif", "Affiche le rapport de validité de la commande"))
+ self.labelNomCommande.setText(_translate("WidgetInactif", "commande
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetInactif", "Détruit la commande"))
+ self.RBPoubelle.setText(_translate("WidgetInactif", "..."))
+ self.bCatalogue.setToolTip(_translate("WidgetInactif", "Affiche les commandes possibles"))
+ self.bCatalogue.setText(_translate("WidgetInactif", "&Commandes"))
+ self.bCatalogue.setShortcut(_translate("WidgetInactif", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.bAvant.setToolTip(_translate("WidgetInactif", "Affiche le formulaire de la commande précédente"))
+ self.bAvant.setText(_translate("WidgetInactif", "<<"))
+ self.bAvant.setShortcut(_translate("WidgetInactif", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.bApres.setToolTip(_translate("WidgetInactif", "Affiche le formulaire de la commande suivante"))
+ self.bApres.setText(_translate("WidgetInactif", ">>"))
+ self.bApres.setShortcut(_translate("WidgetInactif", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.textLabel1_3.setText(_translate("WidgetInactif", "Le noeud sélectionné
ne correspond pas à un objet actif
"))
+ self.textLabel1.setText(_translate("WidgetInactif", "\n"
+"\n"
+"Seules les commandes placées
\n"
+" entre : DEBUT / FIN sont actives
"))
+
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetInactif = QtWidgets.QWidget()
+ ui = Ui_WidgetInactif()
+ ui.setupUi(WidgetInactif)
+ WidgetInactif.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetInactif.ui b/UiQT5/desWidgetInactif.ui
new file mode 100644
index 00000000..336a26fa
--- /dev/null
+++ b/UiQT5/desWidgetInactif.ui
@@ -0,0 +1,471 @@
+
+
+ WidgetInactif
+
+
+
+ 0
+ 0
+ 946
+ 495
+
+
+
+
+ 350
+ 0
+
+
+
+ DInactif
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ QFrame::Box
+
+
+ QFrame::Raised
+
+
+
+ 0
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 17
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validité de la commande
+
+
+ border : 0px
+
+
+
+
+
+
+ ../Editeur/icons/ast-white-square.png../Editeur/icons/ast-white-square.png
+
+
+
+ 21
+ 31
+
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 150
+ 31
+
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Raised
+
+
+ <html><head/><body><p><span style=" color:#0000ff;">commande </span></p></body></html>
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Maximum
+
+
+
+ 2
+ 40
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Ignored
+
+
+
+ 2
+ 40
+
+
+
+
+ -
+
+
+ 4
+
+
+ QLayout::SetFixedSize
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Détruit la commande
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 21
+ 31
+
+
+
+
+
+ RBValide
+ labelNomCommande
+ horizontalSpacer_3
+ horizontalSpacer_4
+ RBPoubelle
+ horizontalSpacer_5
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 160
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche les commandes possibles
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ &Commandes
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 60
+ 24
+
+
+
+
+ 60
+ 24
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le formulaire de la commande précédente
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ <<
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 60
+ 24
+
+
+
+
+ 60
+ 24
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le formulaire de la commande suivante
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ >>
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 66
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ <html><head/><body><p align="center"><span style=" font-size:16pt;">Le noeud sélectionné</span></p><p align="center"><span style=" font-size:16pt;">ne correspond pas à un objet actif</span></p></body></html>
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 67
+
+
+
+
+ -
+
+
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
+<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:x-large;"><span style=" font-size:x-large;">Seules les commandes placées</span></p>
+<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:x-large;"><span style=" font-size:x-large;"> entre : DEBUT / FIN sont actives </span></p></body></html>
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 66
+
+
+
+
+
+
+
+ qPixmapFromMimeSource
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetInformation.py b/UiQT5/desWidgetInformation.py
new file mode 100644
index 00000000..4238af88
--- /dev/null
+++ b/UiQT5/desWidgetInformation.py
@@ -0,0 +1,58 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetInformation.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetInformative(object):
+ def setupUi(self, WidgetInformative):
+ WidgetInformative.setObjectName("WidgetInformative")
+ WidgetInformative.resize(837, 44)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetInformative.sizePolicy().hasHeightForWidth())
+ WidgetInformative.setSizePolicy(sizePolicy)
+ WidgetInformative.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout = QtWidgets.QHBoxLayout(WidgetInformative)
+ self.horizontalLayout.setContentsMargins(0, 1, 0, 1)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(38, 17, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.lineEditVal = QtWidgets.QLineEdit(WidgetInformative)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal.sizePolicy().hasHeightForWidth())
+ self.lineEditVal.setSizePolicy(sizePolicy)
+ self.lineEditVal.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal.setMaximumSize(QtCore.QSize(16777215, 16777215))
+ self.lineEditVal.setStyleSheet("background:rgb(255,255,235);\n"
+"border:0px;")
+ self.lineEditVal.setObjectName("lineEditVal")
+ self.horizontalLayout.addWidget(self.lineEditVal)
+ spacerItem1 = QtWidgets.QSpacerItem(13, 17, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem1)
+
+ self.retranslateUi(WidgetInformative)
+ QtCore.QMetaObject.connectSlotsByName(WidgetInformative)
+
+ def retranslateUi(self, WidgetInformative):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetInformative.setWindowTitle(_translate("WidgetInformative", "Form"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetInformative = QtWidgets.QWidget()
+ ui = Ui_WidgetInformative()
+ ui.setupUi(WidgetInformative)
+ WidgetInformative.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetInformation.ui b/UiQT5/desWidgetInformation.ui
new file mode 100644
index 00000000..25e2933f
--- /dev/null
+++ b/UiQT5/desWidgetInformation.ui
@@ -0,0 +1,106 @@
+
+
+ WidgetInformative
+
+
+
+ 0
+ 0
+ 837
+ 44
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 38
+ 17
+
+
+
+
+ -
+
+
+
+ 1
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 16777215
+ 16777215
+
+
+
+ background:rgb(255,255,235);
+border:0px;
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 13
+ 17
+
+
+
+
+
+
+
+ lineEditVal
+
+
+
+
diff --git a/UiQT5/desWidgetMatrice.py b/UiQT5/desWidgetMatrice.py
new file mode 100644
index 00000000..44ef7a3d
--- /dev/null
+++ b/UiQT5/desWidgetMatrice.py
@@ -0,0 +1,92 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetMatrice.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_desWidgetMatrice(object):
+ def setupUi(self, desWidgetMatrice):
+ desWidgetMatrice.setObjectName("desWidgetMatrice")
+ desWidgetMatrice.resize(802, 300)
+ self.horizontalLayout = QtWidgets.QHBoxLayout(desWidgetMatrice)
+ self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout.setSpacing(4)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(desWidgetMatrice)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../../../../../../home/A96028/GitEficasTravail/eficas/Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout_2.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_2)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 15, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.PBrefresh = QtWidgets.QPushButton(desWidgetMatrice)
+ self.PBrefresh.setText("")
+ icon = QtGui.QIcon.fromTheme("view-refresh")
+ self.PBrefresh.setIcon(icon)
+ self.PBrefresh.setObjectName("PBrefresh")
+ self.verticalLayout_2.addWidget(self.PBrefresh)
+ spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem2)
+ self.horizontalLayout.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(desWidgetMatrice)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout.addWidget(self.label)
+ self.TBMatrice = QtWidgets.QTableWidget(desWidgetMatrice)
+ self.TBMatrice.setObjectName("TBMatrice")
+ self.TBMatrice.setColumnCount(0)
+ self.TBMatrice.setRowCount(0)
+ self.horizontalLayout.addWidget(self.TBMatrice)
+
+ self.retranslateUi(desWidgetMatrice)
+ QtCore.QMetaObject.connectSlotsByName(desWidgetMatrice)
+
+ def retranslateUi(self, desWidgetMatrice):
+ _translate = QtCore.QCoreApplication.translate
+ desWidgetMatrice.setWindowTitle(_translate("desWidgetMatrice", "Dialog"))
+ self.RBValide.setToolTip(_translate("desWidgetMatrice", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("desWidgetMatrice", "..."))
+ self.PBrefresh.setToolTip(_translate("desWidgetMatrice", "Met à jour l\'en-tête
"))
+ self.label.setText(_translate("desWidgetMatrice", "aaa
dqsklmdqm
"))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ desWidgetMatrice = QtWidgets.QDialog()
+ ui = Ui_desWidgetMatrice()
+ ui.setupUi(desWidgetMatrice)
+ desWidgetMatrice.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetMatrice.ui b/UiQT5/desWidgetMatrice.ui
new file mode 100644
index 00000000..7d0a82a6
--- /dev/null
+++ b/UiQT5/desWidgetMatrice.ui
@@ -0,0 +1,191 @@
+
+
+ desWidgetMatrice
+
+
+
+ 0
+ 0
+ 802
+ 300
+
+
+
+ Dialog
+
+
+
+ 4
+
+
+ 0
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../../../../../../home/A96028/GitEficasTravail/eficas/Editeur/icons/ast-green-ball.png../../../../../../home/A96028/GitEficasTravail/eficas/Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+ QSizePolicy::Fixed
+
+
+
+ 20
+ 15
+
+
+
+
+ -
+
+
+ <html><head/><body><p>Met à jour l'en-tête</p></body></html>
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetOptionnel.py b/UiQT5/desWidgetOptionnel.py
new file mode 100644
index 00000000..8d8f63a8
--- /dev/null
+++ b/UiQT5/desWidgetOptionnel.py
@@ -0,0 +1,111 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetOptionnel.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetOptionnel(object):
+ def setupUi(self, WidgetOptionnel):
+ WidgetOptionnel.setObjectName("WidgetOptionnel")
+ WidgetOptionnel.resize(297, 199)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetOptionnel.sizePolicy().hasHeightForWidth())
+ WidgetOptionnel.setSizePolicy(sizePolicy)
+ WidgetOptionnel.setMinimumSize(QtCore.QSize(0, 0))
+ WidgetOptionnel.setStyleSheet("background-color : rgb(224,223,222);\n"
+"font : \'times\' 9px")
+ self.verticalLayout = QtWidgets.QVBoxLayout(WidgetOptionnel)
+ self.verticalLayout.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout.setSpacing(6)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.frame_2 = QtWidgets.QFrame(WidgetOptionnel)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
+ self.frame_2.setSizePolicy(sizePolicy)
+ self.frame_2.setFrameShape(QtWidgets.QFrame.Box)
+ self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.frame_2.setObjectName("frame_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2)
+ self.horizontalLayout.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout.setSpacing(6)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.GeneaLabel = QtWidgets.QLabel(self.frame_2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.GeneaLabel.sizePolicy().hasHeightForWidth())
+ self.GeneaLabel.setSizePolicy(sizePolicy)
+ self.GeneaLabel.setMinimumSize(QtCore.QSize(0, 31))
+ self.GeneaLabel.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.GeneaLabel.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.GeneaLabel.setObjectName("GeneaLabel")
+ self.horizontalLayout.addWidget(self.GeneaLabel)
+ spacerItem = QtWidgets.QSpacerItem(1037, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.verticalLayout.addWidget(self.frame_2)
+ self.widget_2 = QtWidgets.QWidget(WidgetOptionnel)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.widget_2.sizePolicy().hasHeightForWidth())
+ self.widget_2.setSizePolicy(sizePolicy)
+ self.widget_2.setObjectName("widget_2")
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.widget_2)
+ self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
+ self.verticalLayout_3.setSpacing(0)
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.scrollAreaCommandesOptionnelles = QtWidgets.QScrollArea(self.widget_2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollAreaCommandesOptionnelles.sizePolicy().hasHeightForWidth())
+ self.scrollAreaCommandesOptionnelles.setSizePolicy(sizePolicy)
+ self.scrollAreaCommandesOptionnelles.setStyleSheet("background : rgb(247,247,247)")
+ self.scrollAreaCommandesOptionnelles.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollAreaCommandesOptionnelles.setLineWidth(0)
+ self.scrollAreaCommandesOptionnelles.setWidgetResizable(True)
+ self.scrollAreaCommandesOptionnelles.setObjectName("scrollAreaCommandesOptionnelles")
+ self.commandesOptionnellesWidget = QtWidgets.QWidget()
+ self.commandesOptionnellesWidget.setGeometry(QtCore.QRect(0, 0, 279, 124))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.commandesOptionnellesWidget.sizePolicy().hasHeightForWidth())
+ self.commandesOptionnellesWidget.setSizePolicy(sizePolicy)
+ self.commandesOptionnellesWidget.setObjectName("commandesOptionnellesWidget")
+ self.commandesOptionnellesLayout = QtWidgets.QVBoxLayout(self.commandesOptionnellesWidget)
+ self.commandesOptionnellesLayout.setContentsMargins(11, 11, 11, 11)
+ self.commandesOptionnellesLayout.setSpacing(6)
+ self.commandesOptionnellesLayout.setObjectName("commandesOptionnellesLayout")
+ spacerItem1 = QtWidgets.QSpacerItem(20, 75, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.commandesOptionnellesLayout.addItem(spacerItem1)
+ self.scrollAreaCommandesOptionnelles.setWidget(self.commandesOptionnellesWidget)
+ self.verticalLayout_3.addWidget(self.scrollAreaCommandesOptionnelles)
+ self.verticalLayout.addWidget(self.widget_2)
+
+ self.retranslateUi(WidgetOptionnel)
+ QtCore.QMetaObject.connectSlotsByName(WidgetOptionnel)
+
+ def retranslateUi(self, WidgetOptionnel):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetOptionnel.setWindowTitle(_translate("WidgetOptionnel", "WidgetOptionnel"))
+ self.GeneaLabel.setText(_translate("WidgetOptionnel", "commande
"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetOptionnel = QtWidgets.QWidget()
+ ui = Ui_WidgetOptionnel()
+ ui.setupUi(WidgetOptionnel)
+ WidgetOptionnel.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetOptionnel.ui b/UiQT5/desWidgetOptionnel.ui
new file mode 100644
index 00000000..ca162eef
--- /dev/null
+++ b/UiQT5/desWidgetOptionnel.ui
@@ -0,0 +1,166 @@
+
+
+ WidgetOptionnel
+
+
+
+ 0
+ 0
+ 297
+ 199
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ WidgetOptionnel
+
+
+ background-color : rgb(224,223,222);
+font : 'times' 9px
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ QFrame::Box
+
+
+ QFrame::Raised
+
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 31
+
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Raised
+
+
+ <html><head/><body><p><span style=" color:#0000ff;">commande </span></p></body></html>
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 1037
+ 20
+
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ background : rgb(247,247,247)
+
+
+ QFrame::NoFrame
+
+
+ 0
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 279
+ 124
+
+
+
+
+ 0
+ 0
+
+
+
+
-
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 75
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ qPixmapFromMimeSource
+
+
+
diff --git a/UiQT5/desWidgetOptionnelMC.py b/UiQT5/desWidgetOptionnelMC.py
new file mode 100644
index 00000000..032d8bd7
--- /dev/null
+++ b/UiQT5/desWidgetOptionnelMC.py
@@ -0,0 +1,85 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetOptionnelMC.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_desWidgetOptionnel(object):
+ def setupUi(self, desWidgetOptionnel):
+ desWidgetOptionnel.setObjectName("desWidgetOptionnel")
+ desWidgetOptionnel.resize(384, 218)
+ self.verticalLayout = QtWidgets.QVBoxLayout(desWidgetOptionnel)
+ self.verticalLayout.setContentsMargins(0, 0, 0, 0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.line = QtWidgets.QFrame(desWidgetOptionnel)
+ self.line.setFrameShape(QtWidgets.QFrame.HLine)
+ self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
+ self.line.setObjectName("line")
+ self.horizontalLayout.addWidget(self.line)
+ self.nomMC = MonLabelClic(desWidgetOptionnel)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.nomMC.sizePolicy().hasHeightForWidth())
+ self.nomMC.setSizePolicy(sizePolicy)
+ self.nomMC.setMinimumSize(QtCore.QSize(0, 25))
+ self.nomMC.setMaximumSize(QtCore.QSize(12121213, 25))
+ self.nomMC.setObjectName("nomMC")
+ self.horizontalLayout.addWidget(self.nomMC)
+ self.line_2 = QtWidgets.QFrame(desWidgetOptionnel)
+ self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
+ self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
+ self.line_2.setObjectName("line_2")
+ self.horizontalLayout.addWidget(self.line_2)
+ self.verticalLayout.addLayout(self.horizontalLayout)
+ self.scrollAreaCommandesOptionnelles = QtWidgets.QScrollArea(desWidgetOptionnel)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollAreaCommandesOptionnelles.sizePolicy().hasHeightForWidth())
+ self.scrollAreaCommandesOptionnelles.setSizePolicy(sizePolicy)
+ self.scrollAreaCommandesOptionnelles.setStyleSheet("background : rgb(247,247,247)")
+ self.scrollAreaCommandesOptionnelles.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollAreaCommandesOptionnelles.setLineWidth(0)
+ self.scrollAreaCommandesOptionnelles.setWidgetResizable(True)
+ self.scrollAreaCommandesOptionnelles.setObjectName("scrollAreaCommandesOptionnelles")
+ self.commandesOptionnellesWidget = QtWidgets.QWidget()
+ self.commandesOptionnellesWidget.setGeometry(QtCore.QRect(0, 0, 384, 185))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.commandesOptionnellesWidget.sizePolicy().hasHeightForWidth())
+ self.commandesOptionnellesWidget.setSizePolicy(sizePolicy)
+ self.commandesOptionnellesWidget.setObjectName("commandesOptionnellesWidget")
+ self.commandesOptionnellesLayout = QtWidgets.QVBoxLayout(self.commandesOptionnellesWidget)
+ self.commandesOptionnellesLayout.setObjectName("commandesOptionnellesLayout")
+ spacerItem = QtWidgets.QSpacerItem(20, 75, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.commandesOptionnellesLayout.addItem(spacerItem)
+ self.scrollAreaCommandesOptionnelles.setWidget(self.commandesOptionnellesWidget)
+ self.verticalLayout.addWidget(self.scrollAreaCommandesOptionnelles)
+
+ self.retranslateUi(desWidgetOptionnel)
+ QtCore.QMetaObject.connectSlotsByName(desWidgetOptionnel)
+
+ def retranslateUi(self, desWidgetOptionnel):
+ _translate = QtCore.QCoreApplication.translate
+ desWidgetOptionnel.setWindowTitle(_translate("desWidgetOptionnel", "Form"))
+ self.nomMC.setText(_translate("desWidgetOptionnel", "TextLabel"))
+
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ desWidgetOptionnel = QtWidgets.QWidget()
+ ui = Ui_desWidgetOptionnel()
+ ui.setupUi(desWidgetOptionnel)
+ desWidgetOptionnel.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetOptionnelMC.ui b/UiQT5/desWidgetOptionnelMC.ui
new file mode 100644
index 00000000..950792e0
--- /dev/null
+++ b/UiQT5/desWidgetOptionnelMC.ui
@@ -0,0 +1,127 @@
+
+
+ desWidgetOptionnel
+
+
+
+ 0
+ 0
+ 384
+ 218
+
+
+
+ Form
+
+
+
+ 0
+
+ -
+
+
-
+
+
+ Qt::Horizontal
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 12121213
+ 25
+
+
+
+ TextLabel
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ background : rgb(247,247,247)
+
+
+ QFrame::NoFrame
+
+
+ 0
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 384
+ 185
+
+
+
+
+ 0
+ 0
+
+
+
+
-
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 75
+
+
+
+
+
+
+
+
+
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetParam.py b/UiQT5/desWidgetParam.py
new file mode 100644
index 00000000..d298a5a0
--- /dev/null
+++ b/UiQT5/desWidgetParam.py
@@ -0,0 +1,257 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetParam.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetParam(object):
+ def setupUi(self, WidgetParam):
+ WidgetParam.setObjectName("WidgetParam")
+ WidgetParam.resize(1058, 440)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetParam.sizePolicy().hasHeightForWidth())
+ WidgetParam.setSizePolicy(sizePolicy)
+ WidgetParam.setMinimumSize(QtCore.QSize(0, 0))
+ WidgetParam.setToolTip("")
+ WidgetParam.setStyleSheet("background-color : rgb(224,223,222);\n"
+"font : \'times\' 9px")
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout(WidgetParam)
+ self.verticalLayout_3.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_3.setSpacing(6)
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_2.setSpacing(6)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.frame_2 = QtWidgets.QFrame(WidgetParam)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
+ self.frame_2.setSizePolicy(sizePolicy)
+ self.frame_2.setFrameShape(QtWidgets.QFrame.Box)
+ self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.frame_2.setObjectName("frame_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2)
+ self.horizontalLayout.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout.setSpacing(6)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(self.frame_2)
+ self.RBValide.setMinimumSize(QtCore.QSize(17, 31))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBValide.setToolTip("")
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(21, 31))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ spacerItem1 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem1)
+ self.labelNomCommande = QtWidgets.QLabel(self.frame_2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.labelNomCommande.sizePolicy().hasHeightForWidth())
+ self.labelNomCommande.setSizePolicy(sizePolicy)
+ self.labelNomCommande.setMinimumSize(QtCore.QSize(150, 31))
+ self.labelNomCommande.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.labelNomCommande.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.labelNomCommande.setObjectName("labelNomCommande")
+ self.horizontalLayout.addWidget(self.labelNomCommande)
+ spacerItem2 = QtWidgets.QSpacerItem(78, 40, QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem2)
+ self.RBPoubelle = QtWidgets.QToolButton(self.frame_2)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout.addWidget(self.RBPoubelle)
+ self.RBValide.raise_()
+ self.labelNomCommande.raise_()
+ self.RBPoubelle.raise_()
+ self.horizontalLayout_2.addWidget(self.frame_2)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout_2.setSpacing(6)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.bCatalogue = QtWidgets.QPushButton(WidgetParam)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bCatalogue.sizePolicy().hasHeightForWidth())
+ self.bCatalogue.setSizePolicy(sizePolicy)
+ self.bCatalogue.setMinimumSize(QtCore.QSize(160, 31))
+ self.bCatalogue.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bCatalogue.setAutoDefault(True)
+ self.bCatalogue.setDefault(True)
+ self.bCatalogue.setObjectName("bCatalogue")
+ self.verticalLayout_2.addWidget(self.bCatalogue)
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setContentsMargins(11, 11, 11, 11)
+ self.horizontalLayout_3.setSpacing(6)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.bAvant = QtWidgets.QPushButton(WidgetParam)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bAvant.sizePolicy().hasHeightForWidth())
+ self.bAvant.setSizePolicy(sizePolicy)
+ self.bAvant.setMinimumSize(QtCore.QSize(60, 24))
+ self.bAvant.setMaximumSize(QtCore.QSize(60, 24))
+ self.bAvant.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.bAvant.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bAvant.setAutoDefault(True)
+ self.bAvant.setDefault(True)
+ self.bAvant.setObjectName("bAvant")
+ self.horizontalLayout_3.addWidget(self.bAvant)
+ self.bApres = QtWidgets.QPushButton(WidgetParam)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bApres.sizePolicy().hasHeightForWidth())
+ self.bApres.setSizePolicy(sizePolicy)
+ self.bApres.setMinimumSize(QtCore.QSize(60, 24))
+ self.bApres.setMaximumSize(QtCore.QSize(60, 24))
+ self.bApres.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.bApres.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bApres.setAutoDefault(True)
+ self.bApres.setDefault(True)
+ self.bApres.setObjectName("bApres")
+ self.horizontalLayout_3.addWidget(self.bApres)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_3)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_2)
+ self.verticalLayout_3.addLayout(self.horizontalLayout_2)
+ self.scrollAreaCommandes = QtWidgets.QScrollArea(WidgetParam)
+ self.scrollAreaCommandes.setMinimumSize(QtCore.QSize(0, 81))
+ self.scrollAreaCommandes.setStyleSheet("background : rgb(247,247,247);\n"
+"\n"
+"\n"
+"\n"
+"")
+ self.scrollAreaCommandes.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollAreaCommandes.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
+ self.scrollAreaCommandes.setWidgetResizable(True)
+ self.scrollAreaCommandes.setObjectName("scrollAreaCommandes")
+ self.scrollAreaWidgetContents = QtWidgets.QWidget()
+ self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 1040, 349))
+ self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
+ self.verticalLayout = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
+ self.verticalLayout.setContentsMargins(11, 11, 11, 11)
+ self.verticalLayout.setSpacing(6)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.gridLayout = QtWidgets.QGridLayout()
+ self.gridLayout.setContentsMargins(11, 11, 11, 11)
+ self.gridLayout.setSpacing(25)
+ self.gridLayout.setObjectName("gridLayout")
+ self.textLabelVal = QtWidgets.QLabel(self.scrollAreaWidgetContents)
+ self.textLabelVal.setWordWrap(False)
+ self.textLabelVal.setObjectName("textLabelVal")
+ self.gridLayout.addWidget(self.textLabelVal, 1, 0, 1, 1)
+ self.lineEditNom = QtWidgets.QLineEdit(self.scrollAreaWidgetContents)
+ self.lineEditNom.setMinimumSize(QtCore.QSize(231, 31))
+ self.lineEditNom.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;\n"
+"\n"
+"")
+ self.lineEditNom.setObjectName("lineEditNom")
+ self.gridLayout.addWidget(self.lineEditNom, 0, 1, 1, 1)
+ self.lineEditVal = QtWidgets.QLineEdit(self.scrollAreaWidgetContents)
+ self.lineEditVal.setMinimumSize(QtCore.QSize(231, 31))
+ self.lineEditVal.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal.setObjectName("lineEditVal")
+ self.gridLayout.addWidget(self.lineEditVal, 1, 1, 1, 1)
+ self.textLabelNom = QtWidgets.QLabel(self.scrollAreaWidgetContents)
+ self.textLabelNom.setWordWrap(False)
+ self.textLabelNom.setObjectName("textLabelNom")
+ self.gridLayout.addWidget(self.textLabelNom, 0, 0, 1, 1)
+ spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.gridLayout.addItem(spacerItem3, 2, 0, 1, 1)
+ self.bVerifie = QtWidgets.QPushButton(self.scrollAreaWidgetContents)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.bVerifie.sizePolicy().hasHeightForWidth())
+ self.bVerifie.setSizePolicy(sizePolicy)
+ self.bVerifie.setMinimumSize(QtCore.QSize(160, 31))
+ self.bVerifie.setStyleSheet("background-color:rgb(104,110,149);\n"
+"color :white;\n"
+"border-radius : 12px\n"
+"")
+ self.bVerifie.setAutoDefault(True)
+ self.bVerifie.setDefault(True)
+ self.bVerifie.setObjectName("bVerifie")
+ self.gridLayout.addWidget(self.bVerifie, 2, 1, 1, 1)
+ self.verticalLayout.addLayout(self.gridLayout)
+ self.LECommentaire = QtWidgets.QLabel(self.scrollAreaWidgetContents)
+ self.LECommentaire.setWordWrap(False)
+ self.LECommentaire.setObjectName("LECommentaire")
+ self.verticalLayout.addWidget(self.LECommentaire)
+ spacerItem4 = QtWidgets.QSpacerItem(20, 70, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem4)
+ self.scrollAreaCommandes.setWidget(self.scrollAreaWidgetContents)
+ self.verticalLayout_3.addWidget(self.scrollAreaCommandes)
+
+ self.retranslateUi(WidgetParam)
+ QtCore.QMetaObject.connectSlotsByName(WidgetParam)
+ WidgetParam.setTabOrder(self.RBPoubelle, self.bCatalogue)
+ WidgetParam.setTabOrder(self.bCatalogue, self.RBValide)
+ WidgetParam.setTabOrder(self.RBValide, self.scrollAreaCommandes)
+
+ def retranslateUi(self, WidgetParam):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetParam.setWindowTitle(_translate("WidgetParam", "DCommandeUnique"))
+ self.RBValide.setText(_translate("WidgetParam", "..."))
+ self.labelNomCommande.setText(_translate("WidgetParam", "Paramètre
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetParam", "Détruit le commentaire"))
+ self.RBPoubelle.setText(_translate("WidgetParam", "..."))
+ self.bCatalogue.setToolTip(_translate("WidgetParam", "Affiche les commandes possibles"))
+ self.bCatalogue.setText(_translate("WidgetParam", "&Commandes"))
+ self.bCatalogue.setShortcut(_translate("WidgetParam", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.bAvant.setToolTip(_translate("WidgetParam", "Affiche le formulaire de la commande précédente"))
+ self.bAvant.setText(_translate("WidgetParam", "<<"))
+ self.bAvant.setShortcut(_translate("WidgetParam", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.bApres.setToolTip(_translate("WidgetParam", "Affiche le formulaire de la commande suivante"))
+ self.bApres.setText(_translate("WidgetParam", ">>"))
+ self.bApres.setShortcut(_translate("WidgetParam", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.textLabelVal.setText(_translate("WidgetParam", "Valeur:
"))
+ self.textLabelNom.setText(_translate("WidgetParam", "Nom:
"))
+ self.bVerifie.setToolTip(_translate("WidgetParam", "Affiche les commandes possibles"))
+ self.bVerifie.setText(_translate("WidgetParam", "Verifie la valeur"))
+ self.bVerifie.setShortcut(_translate("WidgetParam", "Shift+A, Alt+A, Alt+A, Alt+A"))
+ self.LECommentaire.setText(_translate("WidgetParam", "
"))
+
+from monBoutonValide import MonBoutonValide
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetParam = QtWidgets.QWidget()
+ ui = Ui_WidgetParam()
+ ui.setupUi(WidgetParam)
+ WidgetParam.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetParam.ui b/UiQT5/desWidgetParam.ui
new file mode 100644
index 00000000..42e2fe3e
--- /dev/null
+++ b/UiQT5/desWidgetParam.ui
@@ -0,0 +1,530 @@
+
+
+ WidgetParam
+
+
+
+ 0
+ 0
+ 1058
+ 440
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ DCommandeUnique
+
+
+
+
+
+ background-color : rgb(224,223,222);
+font : 'times' 9px
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ QFrame::Box
+
+
+ QFrame::Raised
+
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 17
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 21
+ 31
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 150
+ 31
+
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Raised
+
+
+ <html><head/><body><p><span style=" color:#000000;">Paramètre</span></p></body></html>
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Maximum
+
+
+
+ 78
+ 40
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Détruit le commentaire
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 21
+ 31
+
+
+
+
+
+ RBValide
+ labelNomCommande
+ horizontalSpacer_3
+ RBPoubelle
+ horizontalSpacer_5
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 160
+ 31
+
+
+
+ Affiche les commandes possibles
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ &Commandes
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 60
+ 24
+
+
+
+
+ 60
+ 24
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le formulaire de la commande précédente
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ <<
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 60
+ 24
+
+
+
+
+ 60
+ 24
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le formulaire de la commande suivante
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ >>
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 81
+
+
+
+ background : rgb(247,247,247);
+
+
+
+
+
+
+ QFrame::NoFrame
+
+
+ Qt::ScrollBarAsNeeded
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 1040
+ 349
+
+
+
+
-
+
+
+ 25
+
+
-
+
+
+ <html><head/><body><p>Valeur: </p></body></html>
+
+
+ false
+
+
+
+ -
+
+
+
+ 231
+ 31
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+
+
+ -
+
+
+
+ 231
+ 31
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ <html><head/><body><p>Nom: </p></body></html>
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 160
+ 31
+
+
+
+ Affiche les commandes possibles
+
+
+ background-color:rgb(104,110,149);
+color :white;
+border-radius : 12px
+
+
+
+ Verifie la valeur
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+ true
+
+
+ true
+
+
+
+
+
+ -
+
+
+ <html><head/><body><p><br/></p></body></html>
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 70
+
+
+
+
+
+
+
+
+
+
+
+ qPixmapFromMimeSource
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+
+ RBPoubelle
+ bCatalogue
+ RBValide
+ scrollAreaCommandes
+
+
+
+
diff --git a/UiQT5/desWidgetPlusieursBase.py b/UiQT5/desWidgetPlusieursBase.py
new file mode 100644
index 00000000..cf56fb07
--- /dev/null
+++ b/UiQT5/desWidgetPlusieursBase.py
@@ -0,0 +1,341 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetPlusieursBase.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetPlusieursBase(object):
+ def setupUi(self, WidgetPlusieursBase):
+ WidgetPlusieursBase.setObjectName("WidgetPlusieursBase")
+ WidgetPlusieursBase.resize(764, 202)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetPlusieursBase.sizePolicy().hasHeightForWidth())
+ WidgetPlusieursBase.setSizePolicy(sizePolicy)
+ WidgetPlusieursBase.setMinimumSize(QtCore.QSize(100, 20))
+ WidgetPlusieursBase.setStyleSheet("/* QFrame {\n"
+"border: 1px solid gray;\n"
+"}*/\n"
+"")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout(WidgetPlusieursBase)
+ self.horizontalLayout_2.setContentsMargins(0, 2, 2, 0)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_3.setSpacing(0)
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.BFermeListe = QtWidgets.QToolButton(WidgetPlusieursBase)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.BFermeListe.sizePolicy().hasHeightForWidth())
+ self.BFermeListe.setSizePolicy(sizePolicy)
+ self.BFermeListe.setMaximumSize(QtCore.QSize(21, 25))
+ self.BFermeListe.setStyleSheet("border:0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/minusnode.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.BFermeListe.setIcon(icon)
+ self.BFermeListe.setIconSize(QtCore.QSize(25, 25))
+ self.BFermeListe.setObjectName("BFermeListe")
+ self.horizontalLayout.addWidget(self.BFermeListe)
+ self.RBValide = MonBoutonValide(WidgetPlusieursBase)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon1)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout_3.addLayout(self.horizontalLayout)
+ spacerItem = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_3.addItem(spacerItem)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_3)
+ self.verticalLayout_4 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_4.setSpacing(0)
+ self.verticalLayout_4.setObjectName("verticalLayout_4")
+ self.label = MonLabelClic(WidgetPlusieursBase)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.verticalLayout_4.addWidget(self.label)
+ self.scrollArea_2 = QtWidgets.QScrollArea(WidgetPlusieursBase)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollArea_2.sizePolicy().hasHeightForWidth())
+ self.scrollArea_2.setSizePolicy(sizePolicy)
+ self.scrollArea_2.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollArea_2.setFrameShadow(QtWidgets.QFrame.Plain)
+ self.scrollArea_2.setWidgetResizable(True)
+ self.scrollArea_2.setObjectName("scrollArea_2")
+ self.scrollAreaWidgetContents_2 = QtWidgets.QWidget()
+ self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 112, 138))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollAreaWidgetContents_2.sizePolicy().hasHeightForWidth())
+ self.scrollAreaWidgetContents_2.setSizePolicy(sizePolicy)
+ self.scrollAreaWidgetContents_2.setObjectName("scrollAreaWidgetContents_2")
+ self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.scrollAreaWidgetContents_2)
+ self.horizontalLayout_7.setObjectName("horizontalLayout_7")
+ self.monCommentaireLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents_2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.MinimumExpanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.monCommentaireLabel.sizePolicy().hasHeightForWidth())
+ self.monCommentaireLabel.setSizePolicy(sizePolicy)
+ self.monCommentaireLabel.setObjectName("monCommentaireLabel")
+ self.horizontalLayout_7.addWidget(self.monCommentaireLabel)
+ self.scrollArea_2.setWidget(self.scrollAreaWidgetContents_2)
+ self.verticalLayout_4.addWidget(self.scrollArea_2)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_4)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.scrollArea = QtWidgets.QScrollArea(WidgetPlusieursBase)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
+ self.scrollArea.setSizePolicy(sizePolicy)
+ self.scrollArea.setMinimumSize(QtCore.QSize(400, 50))
+ self.scrollArea.setStyleSheet("background : rgb(247,247,247);\n"
+"border: 1px solid gray;\n"
+"/* QFrame {\n"
+"border: 1px solid gray;\n"
+"}*/\n"
+"\n"
+"")
+ self.scrollArea.setFrameShape(QtWidgets.QFrame.Box)
+ self.scrollArea.setFrameShadow(QtWidgets.QFrame.Plain)
+ self.scrollArea.setLineWidth(1)
+ self.scrollArea.setWidgetResizable(True)
+ self.scrollArea.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
+ self.scrollArea.setObjectName("scrollArea")
+ self.verticalWidgetLE = QtWidgets.QWidget()
+ self.verticalWidgetLE.setGeometry(QtCore.QRect(0, 0, 398, 161))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.verticalWidgetLE.sizePolicy().hasHeightForWidth())
+ self.verticalWidgetLE.setSizePolicy(sizePolicy)
+ self.verticalWidgetLE.setObjectName("verticalWidgetLE")
+ self.verticalLayoutLE = QtWidgets.QVBoxLayout(self.verticalWidgetLE)
+ self.verticalLayoutLE.setContentsMargins(2, 0, 2, 0)
+ self.verticalLayoutLE.setSpacing(2)
+ self.verticalLayoutLE.setObjectName("verticalLayoutLE")
+ spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayoutLE.addItem(spacerItem1)
+ self.scrollArea.setWidget(self.verticalWidgetLE)
+ self.verticalLayout_2.addWidget(self.scrollArea)
+ self.frame = QtWidgets.QFrame(WidgetPlusieursBase)
+ self.frame.setFrameShape(QtWidgets.QFrame.Box)
+ self.frame.setObjectName("frame")
+ self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.frame)
+ self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout_6.setObjectName("horizontalLayout_6")
+ spacerItem2 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_6.addItem(spacerItem2)
+ self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_4.setSpacing(0)
+ self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+ self.RBHaut = QtWidgets.QToolButton(self.frame)
+ self.RBHaut.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBHaut.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBHaut.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBHaut.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon.fromTheme("go-up")
+ self.RBHaut.setIcon(icon)
+ self.RBHaut.setIconSize(QtCore.QSize(32, 32))
+ self.RBHaut.setObjectName("RBHaut")
+ self.horizontalLayout_4.addWidget(self.RBHaut)
+ self.RBBas = QtWidgets.QToolButton(self.frame)
+ self.RBBas.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBBas.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBBas.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBBas.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon.fromTheme("go-down")
+ self.RBBas.setIcon(icon)
+ self.RBBas.setIconSize(QtCore.QSize(32, 32))
+ self.RBBas.setObjectName("RBBas")
+ self.horizontalLayout_4.addWidget(self.RBBas)
+ self.RBMoins = QtWidgets.QToolButton(self.frame)
+ self.RBMoins.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBMoins.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBMoins.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBMoins.setStyleSheet("border : 0px")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(QtGui.QPixmap("../Editeur/icons/MoinsBleu2.png"), QtGui.QIcon.Normal, QtGui.QIcon.On)
+ self.RBMoins.setIcon(icon2)
+ self.RBMoins.setIconSize(QtCore.QSize(32, 32))
+ self.RBMoins.setObjectName("RBMoins")
+ self.horizontalLayout_4.addWidget(self.RBMoins)
+ self.RBPlus = QtWidgets.QToolButton(self.frame)
+ self.RBPlus.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPlus.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPlus.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPlus.setStyleSheet("border : 0px")
+ icon3 = QtGui.QIcon()
+ icon3.addPixmap(QtGui.QPixmap("../Editeur/icons/PlusBleu.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPlus.setIcon(icon3)
+ self.RBPlus.setIconSize(QtCore.QSize(32, 32))
+ self.RBPlus.setObjectName("RBPlus")
+ self.horizontalLayout_4.addWidget(self.RBPlus)
+ self.horizontalLayout_6.addLayout(self.horizontalLayout_4)
+ spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_6.addItem(spacerItem3)
+ self.RBVoisListe = QtWidgets.QToolButton(self.frame)
+ self.RBVoisListe.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBVoisListe.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBVoisListe.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBVoisListe.setStyleSheet("border : 0px")
+ icon4 = QtGui.QIcon()
+ icon4.addPixmap(QtGui.QPixmap("../Editeur/icons/verre-loupe-icone-6087-64.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBVoisListe.setIcon(icon4)
+ self.RBVoisListe.setIconSize(QtCore.QSize(32, 32))
+ self.RBVoisListe.setObjectName("RBVoisListe")
+ self.horizontalLayout_6.addWidget(self.RBVoisListe)
+ spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_6.addItem(spacerItem4)
+ self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_5.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_5.setSpacing(0)
+ self.horizontalLayout_5.setObjectName("horizontalLayout_5")
+ self.RBSalome = QtWidgets.QToolButton(self.frame)
+ self.RBSalome.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBSalome.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBSalome.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBSalome.setStyleSheet("border : 0px")
+ icon5 = QtGui.QIcon()
+ icon5.addPixmap(QtGui.QPixmap("../Editeur/icons/flecheSalome.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBSalome.setIcon(icon5)
+ self.RBSalome.setIconSize(QtCore.QSize(32, 32))
+ self.RBSalome.setObjectName("RBSalome")
+ self.horizontalLayout_5.addWidget(self.RBSalome)
+ self.RBSalomeVue = QtWidgets.QToolButton(self.frame)
+ self.RBSalomeVue.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBSalomeVue.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBSalomeVue.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBSalomeVue.setStyleSheet("border : 0px")
+ icon6 = QtGui.QIcon()
+ icon6.addPixmap(QtGui.QPixmap("../Editeur/icons/eye.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBSalomeVue.setIcon(icon6)
+ self.RBSalomeVue.setIconSize(QtCore.QSize(32, 32))
+ self.RBSalomeVue.setObjectName("RBSalomeVue")
+ self.horizontalLayout_5.addWidget(self.RBSalomeVue)
+ self.horizontalLayout_6.addLayout(self.horizontalLayout_5)
+ self.verticalLayout_2.addWidget(self.frame)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_2)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setContentsMargins(0, -1, 0, -1)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.BSelectFichier = QtWidgets.QToolButton(WidgetPlusieursBase)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.BSelectFichier.sizePolicy().hasHeightForWidth())
+ self.BSelectFichier.setSizePolicy(sizePolicy)
+ self.BSelectFichier.setMaximumSize(QtCore.QSize(25, 30))
+ self.BSelectFichier.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.BSelectFichier.setStyleSheet("border:0px")
+ icon = QtGui.QIcon.fromTheme("text-x-generic")
+ self.BSelectFichier.setIcon(icon)
+ self.BSelectFichier.setIconSize(QtCore.QSize(32, 32))
+ self.BSelectFichier.setObjectName("BSelectFichier")
+ self.horizontalLayout_3.addWidget(self.BSelectFichier)
+ spacerItem5 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem5)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetPlusieursBase)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon7 = QtGui.QIcon()
+ icon7.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon7)
+ self.RBPoubelle.setIconSize(QtCore.QSize(32, 32))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_3.addWidget(self.RBPoubelle)
+ self.verticalLayout.addLayout(self.horizontalLayout_3)
+ spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem6)
+ self.horizontalLayout_2.addLayout(self.verticalLayout)
+ self.label.raise_()
+ self.monCommentaireLabel.raise_()
+ self.scrollArea_2.raise_()
+
+ self.retranslateUi(WidgetPlusieursBase)
+ QtCore.QMetaObject.connectSlotsByName(WidgetPlusieursBase)
+ WidgetPlusieursBase.setTabOrder(self.scrollArea, self.RBHaut)
+ WidgetPlusieursBase.setTabOrder(self.RBHaut, self.RBBas)
+ WidgetPlusieursBase.setTabOrder(self.RBBas, self.RBMoins)
+ WidgetPlusieursBase.setTabOrder(self.RBMoins, self.RBVoisListe)
+ WidgetPlusieursBase.setTabOrder(self.RBVoisListe, self.RBSalome)
+ WidgetPlusieursBase.setTabOrder(self.RBSalome, self.RBSalomeVue)
+ WidgetPlusieursBase.setTabOrder(self.RBSalomeVue, self.BSelectFichier)
+ WidgetPlusieursBase.setTabOrder(self.BSelectFichier, self.RBPoubelle)
+
+ def retranslateUi(self, WidgetPlusieursBase):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetPlusieursBase.setWindowTitle(_translate("WidgetPlusieursBase", "Form"))
+ self.BFermeListe.setToolTip(_translate("WidgetPlusieursBase", "permet de gérer la liste"))
+ self.BFermeListe.setText(_translate("WidgetPlusieursBase", "..."))
+ self.RBValide.setToolTip(_translate("WidgetPlusieursBase", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetPlusieursBase", "..."))
+ self.label.setText(_translate("WidgetPlusieursBase", "aaa
dqsklmdqm
"))
+ self.monCommentaireLabel.setText(_translate("WidgetPlusieursBase", "TextLabel"))
+ self.RBHaut.setToolTip(_translate("WidgetPlusieursBase", "Remonte la ligne"))
+ self.RBHaut.setText(_translate("WidgetPlusieursBase", "..."))
+ self.RBBas.setToolTip(_translate("WidgetPlusieursBase", "Descend la ligne"))
+ self.RBBas.setText(_translate("WidgetPlusieursBase", "..."))
+ self.RBMoins.setToolTip(_translate("WidgetPlusieursBase", "supprime une ligne"))
+ self.RBMoins.setText(_translate("WidgetPlusieursBase", "..."))
+ self.RBPlus.setToolTip(_translate("WidgetPlusieursBase", "Ajoute une ligne"))
+ self.RBPlus.setText(_translate("WidgetPlusieursBase", "..."))
+ self.RBVoisListe.setToolTip(_translate("WidgetPlusieursBase", "Montre l\'ensemble des valeurs"))
+ self.RBVoisListe.setText(_translate("WidgetPlusieursBase", "..."))
+ self.RBSalome.setToolTip(_translate("WidgetPlusieursBase", "Sélectionne depuis Salome"))
+ self.RBSalome.setText(_translate("WidgetPlusieursBase", "..."))
+ self.RBSalomeVue.setToolTip(_translate("WidgetPlusieursBase", "Visualise dans Salome"))
+ self.RBSalomeVue.setText(_translate("WidgetPlusieursBase", "..."))
+ self.BSelectFichier.setToolTip(_translate("WidgetPlusieursBase", "Ouvre un fichier de sélection des valeurs"))
+ self.BSelectFichier.setText(_translate("WidgetPlusieursBase", "..."))
+ self.RBPoubelle.setToolTip(_translate("WidgetPlusieursBase", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetPlusieursBase", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetPlusieursBase = QtWidgets.QWidget()
+ ui = Ui_WidgetPlusieursBase()
+ ui.setupUi(WidgetPlusieursBase)
+ WidgetPlusieursBase.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetPlusieursBase.ui b/UiQT5/desWidgetPlusieursBase.ui
new file mode 100644
index 00000000..799a330e
--- /dev/null
+++ b/UiQT5/desWidgetPlusieursBase.ui
@@ -0,0 +1,842 @@
+
+
+ WidgetPlusieursBase
+
+
+
+ 0
+ 0
+ 764
+ 202
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 100
+ 20
+
+
+
+ Form
+
+
+ /* QFrame {
+border: 1px solid gray;
+}*/
+
+
+
+
+ 0
+
+
+ 0
+
+
+ 2
+
+
+ 2
+
+
+ 0
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 21
+ 25
+
+
+
+ permet de gérer la liste
+
+
+ border:0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/minusnode.png../Editeur/icons/minusnode.png
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Plain
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 112
+ 138
+
+
+
+
+ 0
+ 0
+
+
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ TextLabel
+
+
+
+
+
+
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 400
+ 50
+
+
+
+ background : rgb(247,247,247);
+border: 1px solid gray;
+/* QFrame {
+border: 1px solid gray;
+}*/
+
+
+
+
+ QFrame::Box
+
+
+ QFrame::Plain
+
+
+ 1
+
+
+ true
+
+
+ Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft
+
+
+
+
+ 0
+ 0
+ 398
+ 161
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 2
+
+
+ 2
+
+
+ 0
+
+
+ 2
+
+
+ 0
+
+
-
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+
+ -
+
+
+ QFrame::Box
+
+
+
+ 0
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Remonte la ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+
+
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Descend la ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+
+
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ supprime une ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/MoinsBleu2.png
+
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Ajoute une ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/PlusBleu.png../Editeur/icons/PlusBleu.png
+
+
+
+ 32
+ 32
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Minimum
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Montre l'ensemble des valeurs
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/verre-loupe-icone-6087-64.png../Editeur/icons/verre-loupe-icone-6087-64.png
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Minimum
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Sélectionne depuis Salome
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/flecheSalome.png../Editeur/icons/flecheSalome.png
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Visualise dans Salome
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/eye.png../Editeur/icons/eye.png
+
+
+
+ 32
+ 32
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 25
+ 30
+
+
+
+ Qt::ClickFocus
+
+
+ Ouvre un fichier de sélection des valeurs
+
+
+ border:0px
+
+
+ ...
+
+
+
+
+
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 32
+ 32
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+
+ label
+ monCommentaireLabel
+ scrollArea_2
+ layoutWidget
+ verticalSpacer_6
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+ scrollArea
+ RBHaut
+ RBBas
+ RBMoins
+ RBVoisListe
+ RBSalome
+ RBSalomeVue
+ BSelectFichier
+ RBPoubelle
+
+
+
+
diff --git a/UiQT5/desWidgetPlusieursInto.py b/UiQT5/desWidgetPlusieursInto.py
new file mode 100644
index 00000000..492f6571
--- /dev/null
+++ b/UiQT5/desWidgetPlusieursInto.py
@@ -0,0 +1,187 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetPlusieursInto.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetPlusieursInto(object):
+ def setupUi(self, WidgetPlusieursInto):
+ WidgetPlusieursInto.setObjectName("WidgetPlusieursInto")
+ WidgetPlusieursInto.resize(938, 236)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetPlusieursInto.sizePolicy().hasHeightForWidth())
+ WidgetPlusieursInto.setSizePolicy(sizePolicy)
+ WidgetPlusieursInto.setMinimumSize(QtCore.QSize(0, 60))
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout(WidgetPlusieursInto)
+ self.horizontalLayout_2.setContentsMargins(0, 2, 2, 0)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.BFermeListe = QtWidgets.QToolButton(WidgetPlusieursInto)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.BFermeListe.sizePolicy().hasHeightForWidth())
+ self.BFermeListe.setSizePolicy(sizePolicy)
+ self.BFermeListe.setMaximumSize(QtCore.QSize(21, 25))
+ self.BFermeListe.setStyleSheet("border:0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/minusnode.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.BFermeListe.setIcon(icon)
+ self.BFermeListe.setIconSize(QtCore.QSize(25, 25))
+ self.BFermeListe.setObjectName("BFermeListe")
+ self.horizontalLayout.addWidget(self.BFermeListe)
+ self.RBValide = MonBoutonValide(WidgetPlusieursInto)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon1)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout)
+ spacerItem = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_2)
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.label = MonLabelClic(WidgetPlusieursInto)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(280, 25))
+ self.label.setMaximumSize(QtCore.QSize(280, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.verticalLayout_3.addWidget(self.label)
+ self.scrollArea_2 = QtWidgets.QScrollArea(WidgetPlusieursInto)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollArea_2.sizePolicy().hasHeightForWidth())
+ self.scrollArea_2.setSizePolicy(sizePolicy)
+ self.scrollArea_2.setMinimumSize(QtCore.QSize(300, 0))
+ self.scrollArea_2.setMaximumSize(QtCore.QSize(300, 16777215))
+ self.scrollArea_2.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollArea_2.setLineWidth(0)
+ self.scrollArea_2.setWidgetResizable(True)
+ self.scrollArea_2.setObjectName("scrollArea_2")
+ self.scrollAreaWidgetContents_2 = QtWidgets.QWidget()
+ self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 300, 166))
+ self.scrollAreaWidgetContents_2.setObjectName("scrollAreaWidgetContents_2")
+ self.gridLayout_2 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_2)
+ self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
+ self.gridLayout_2.setHorizontalSpacing(0)
+ self.gridLayout_2.setObjectName("gridLayout_2")
+ self.monCommentaireLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents_2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.monCommentaireLabel.sizePolicy().hasHeightForWidth())
+ self.monCommentaireLabel.setSizePolicy(sizePolicy)
+ self.monCommentaireLabel.setMinimumSize(QtCore.QSize(78, 25))
+ self.monCommentaireLabel.setMaximumSize(QtCore.QSize(278, 16777215))
+ self.monCommentaireLabel.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.monCommentaireLabel.setScaledContents(False)
+ self.monCommentaireLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.monCommentaireLabel.setObjectName("monCommentaireLabel")
+ self.gridLayout_2.addWidget(self.monCommentaireLabel, 0, 0, 1, 1)
+ self.scrollArea_2.setWidget(self.scrollAreaWidgetContents_2)
+ self.verticalLayout_3.addWidget(self.scrollArea_2)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_3)
+ self.scrollArea = QtWidgets.QScrollArea(WidgetPlusieursInto)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
+ self.scrollArea.setSizePolicy(sizePolicy)
+ self.scrollArea.setStyleSheet("background : rgb(247,247,247)")
+ self.scrollArea.setFrameShape(QtWidgets.QFrame.Box)
+ self.scrollArea.setLineWidth(1)
+ self.scrollArea.setWidgetResizable(True)
+ self.scrollArea.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
+ self.scrollArea.setObjectName("scrollArea")
+ self.verticalWidgetLE = QtWidgets.QWidget()
+ self.verticalWidgetLE.setGeometry(QtCore.QRect(0, 0, 543, 232))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.verticalWidgetLE.sizePolicy().hasHeightForWidth())
+ self.verticalWidgetLE.setSizePolicy(sizePolicy)
+ self.verticalWidgetLE.setObjectName("verticalWidgetLE")
+ self.CBLayout = QtWidgets.QVBoxLayout(self.verticalWidgetLE)
+ self.CBLayout.setContentsMargins(0, 0, 0, 0)
+ self.CBLayout.setSpacing(0)
+ self.CBLayout.setObjectName("CBLayout")
+ self.scrollArea.setWidget(self.verticalWidgetLE)
+ self.horizontalLayout_2.addWidget(self.scrollArea)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 17, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem1)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetPlusieursInto)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon2)
+ self.RBPoubelle.setIconSize(QtCore.QSize(32, 32))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.verticalLayout.addWidget(self.RBPoubelle)
+ self.CBCheck = QtWidgets.QCheckBox(WidgetPlusieursInto)
+ self.CBCheck.setText("")
+ self.CBCheck.setChecked(True)
+ self.CBCheck.setObjectName("CBCheck")
+ self.verticalLayout.addWidget(self.CBCheck)
+ spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem2)
+ self.horizontalLayout_2.addLayout(self.verticalLayout)
+ self.scrollArea.raise_()
+
+ self.retranslateUi(WidgetPlusieursInto)
+ QtCore.QMetaObject.connectSlotsByName(WidgetPlusieursInto)
+
+ def retranslateUi(self, WidgetPlusieursInto):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetPlusieursInto.setWindowTitle(_translate("WidgetPlusieursInto", "Form"))
+ self.BFermeListe.setToolTip(_translate("WidgetPlusieursInto", "permet de gérer la liste"))
+ self.BFermeListe.setText(_translate("WidgetPlusieursInto", "..."))
+ self.RBValide.setToolTip(_translate("WidgetPlusieursInto", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetPlusieursInto", "..."))
+ self.label.setText(_translate("WidgetPlusieursInto", "aaa
dqsklmdqm
"))
+ self.monCommentaireLabel.setText(_translate("WidgetPlusieursInto", "aaa
dqsklmdqm
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetPlusieursInto", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetPlusieursInto", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetPlusieursInto = QtWidgets.QWidget()
+ ui = Ui_WidgetPlusieursInto()
+ ui.setupUi(WidgetPlusieursInto)
+ WidgetPlusieursInto.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetPlusieursInto.ui b/UiQT5/desWidgetPlusieursInto.ui
new file mode 100644
index 00000000..569a8ecd
--- /dev/null
+++ b/UiQT5/desWidgetPlusieursInto.ui
@@ -0,0 +1,415 @@
+
+
+ WidgetPlusieursInto
+
+
+
+ 0
+ 0
+ 938
+ 236
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 60
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 2
+
+
+ 2
+
+
+ 0
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 21
+ 25
+
+
+
+ permet de gérer la liste
+
+
+ border:0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/minusnode.png../Editeur/icons/minusnode.png
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 280
+ 25
+
+
+
+
+ 280
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 0
+
+
+
+
+ 300
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ 0
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 300
+ 166
+
+
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 78
+ 25
+
+
+
+
+ 278
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ background : rgb(247,247,247)
+
+
+ QFrame::Box
+
+
+ 1
+
+
+ true
+
+
+ Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft
+
+
+
+
+ 0
+ 0
+ 543
+ 232
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+
+
+ 0
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Preferred
+
+
+
+ 20
+ 17
+
+
+
+
+ -
+
+
-
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+
+
+ true
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+ horizontalSpacer
+ scrollArea
+
+ layoutWidget
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetPlusieursIntoOrdonne.py b/UiQT5/desWidgetPlusieursIntoOrdonne.py
new file mode 100644
index 00000000..86f51042
--- /dev/null
+++ b/UiQT5/desWidgetPlusieursIntoOrdonne.py
@@ -0,0 +1,302 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetPlusieursIntoOrdonne.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetPlusieursIntoOrdonne(object):
+ def setupUi(self, WidgetPlusieursIntoOrdonne):
+ WidgetPlusieursIntoOrdonne.setObjectName("WidgetPlusieursIntoOrdonne")
+ WidgetPlusieursIntoOrdonne.resize(1013, 243)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetPlusieursIntoOrdonne.sizePolicy().hasHeightForWidth())
+ WidgetPlusieursIntoOrdonne.setSizePolicy(sizePolicy)
+ WidgetPlusieursIntoOrdonne.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout(WidgetPlusieursIntoOrdonne)
+ self.horizontalLayout_2.setContentsMargins(0, 2, 0, 7)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_3.setSpacing(0)
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.BFermeListe = QtWidgets.QToolButton(WidgetPlusieursIntoOrdonne)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.BFermeListe.sizePolicy().hasHeightForWidth())
+ self.BFermeListe.setSizePolicy(sizePolicy)
+ self.BFermeListe.setMaximumSize(QtCore.QSize(21, 25))
+ self.BFermeListe.setStyleSheet("border:0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/minusnode.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.BFermeListe.setIcon(icon)
+ self.BFermeListe.setIconSize(QtCore.QSize(25, 25))
+ self.BFermeListe.setObjectName("BFermeListe")
+ self.horizontalLayout.addWidget(self.BFermeListe)
+ self.RBValide = MonBoutonValide(WidgetPlusieursIntoOrdonne)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon1)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout_3.addLayout(self.horizontalLayout)
+ spacerItem = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_3.addItem(spacerItem)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_3)
+ self.verticalLayout_4 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_4.setSpacing(0)
+ self.verticalLayout_4.setObjectName("verticalLayout_4")
+ self.label = MonLabelClic(WidgetPlusieursIntoOrdonne)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.verticalLayout_4.addWidget(self.label)
+ self.scrollArea_2 = QtWidgets.QScrollArea(WidgetPlusieursIntoOrdonne)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollArea_2.sizePolicy().hasHeightForWidth())
+ self.scrollArea_2.setSizePolicy(sizePolicy)
+ self.scrollArea_2.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollArea_2.setFrameShadow(QtWidgets.QFrame.Plain)
+ self.scrollArea_2.setWidgetResizable(True)
+ self.scrollArea_2.setObjectName("scrollArea_2")
+ self.scrollAreaWidgetContents = QtWidgets.QWidget()
+ self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 112, 172))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollAreaWidgetContents.sizePolicy().hasHeightForWidth())
+ self.scrollAreaWidgetContents.setSizePolicy(sizePolicy)
+ self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
+ self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
+ self.verticalLayout_6.setObjectName("verticalLayout_6")
+ self.monCommentaireLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.monCommentaireLabel.sizePolicy().hasHeightForWidth())
+ self.monCommentaireLabel.setSizePolicy(sizePolicy)
+ self.monCommentaireLabel.setObjectName("monCommentaireLabel")
+ self.verticalLayout_6.addWidget(self.monCommentaireLabel)
+ self.scrollArea_2.setWidget(self.scrollAreaWidgetContents)
+ self.verticalLayout_4.addWidget(self.scrollArea_2)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_4)
+ spacerItem1 = QtWidgets.QSpacerItem(8, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem1)
+ self.scrollArea = QtWidgets.QScrollArea(WidgetPlusieursIntoOrdonne)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
+ self.scrollArea.setSizePolicy(sizePolicy)
+ self.scrollArea.setStyleSheet("background : rgb(247,247,247)")
+ self.scrollArea.setFrameShape(QtWidgets.QFrame.Box)
+ self.scrollArea.setFrameShadow(QtWidgets.QFrame.Plain)
+ self.scrollArea.setLineWidth(1)
+ self.scrollArea.setWidgetResizable(True)
+ self.scrollArea.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
+ self.scrollArea.setObjectName("scrollArea")
+ self.verticalWidgetLE = QtWidgets.QWidget()
+ self.verticalWidgetLE.setGeometry(QtCore.QRect(0, 0, 301, 232))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.verticalWidgetLE.sizePolicy().hasHeightForWidth())
+ self.verticalWidgetLE.setSizePolicy(sizePolicy)
+ self.verticalWidgetLE.setObjectName("verticalWidgetLE")
+ self.CBLayout = QtWidgets.QVBoxLayout(self.verticalWidgetLE)
+ self.CBLayout.setContentsMargins(0, 0, 0, 0)
+ self.CBLayout.setSpacing(0)
+ self.CBLayout.setObjectName("CBLayout")
+ spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.CBLayout.addItem(spacerItem2)
+ self.scrollArea.setWidget(self.verticalWidgetLE)
+ self.horizontalLayout_2.addWidget(self.scrollArea)
+ spacerItem3 = QtWidgets.QSpacerItem(8, 108, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem3)
+ self.verticalLayout_5 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_5.setObjectName("verticalLayout_5")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.scrollAreaRE = QtWidgets.QScrollArea(WidgetPlusieursIntoOrdonne)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollAreaRE.sizePolicy().hasHeightForWidth())
+ self.scrollAreaRE.setSizePolicy(sizePolicy)
+ self.scrollAreaRE.setStyleSheet("background : rgb(247,247,247)")
+ self.scrollAreaRE.setFrameShape(QtWidgets.QFrame.Box)
+ self.scrollAreaRE.setFrameShadow(QtWidgets.QFrame.Plain)
+ self.scrollAreaRE.setLineWidth(1)
+ self.scrollAreaRE.setWidgetResizable(True)
+ self.scrollAreaRE.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
+ self.scrollAreaRE.setObjectName("scrollAreaRE")
+ self.verticalWidgetLEChoisis = QtWidgets.QWidget()
+ self.verticalWidgetLEChoisis.setGeometry(QtCore.QRect(0, 0, 297, 187))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.verticalWidgetLEChoisis.sizePolicy().hasHeightForWidth())
+ self.verticalWidgetLEChoisis.setSizePolicy(sizePolicy)
+ self.verticalWidgetLEChoisis.setObjectName("verticalWidgetLEChoisis")
+ self.CBChoisis = QtWidgets.QVBoxLayout(self.verticalWidgetLEChoisis)
+ self.CBChoisis.setContentsMargins(0, 0, 0, 0)
+ self.CBChoisis.setSpacing(0)
+ self.CBChoisis.setObjectName("CBChoisis")
+ spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.CBChoisis.addItem(spacerItem4)
+ self.scrollAreaRE.setWidget(self.verticalWidgetLEChoisis)
+ self.verticalLayout_2.addWidget(self.scrollAreaRE)
+ self.verticalLayout_5.addLayout(self.verticalLayout_2)
+ self.frame = QtWidgets.QFrame(WidgetPlusieursIntoOrdonne)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
+ self.frame.setSizePolicy(sizePolicy)
+ self.frame.setFrameShape(QtWidgets.QFrame.Box)
+ self.frame.setObjectName("frame")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame)
+ self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_4.setSpacing(0)
+ self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+ self.RBHaut = QtWidgets.QToolButton(self.frame)
+ self.RBHaut.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBHaut.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBHaut.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon.fromTheme("go-up")
+ self.RBHaut.setIcon(icon)
+ self.RBHaut.setIconSize(QtCore.QSize(32, 32))
+ self.RBHaut.setObjectName("RBHaut")
+ self.horizontalLayout_4.addWidget(self.RBHaut)
+ self.RBBas = QtWidgets.QToolButton(self.frame)
+ self.RBBas.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBBas.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBBas.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon.fromTheme("go-down")
+ self.RBBas.setIcon(icon)
+ self.RBBas.setIconSize(QtCore.QSize(32, 32))
+ self.RBBas.setObjectName("RBBas")
+ self.horizontalLayout_4.addWidget(self.RBBas)
+ self.RBMoins = QtWidgets.QToolButton(self.frame)
+ self.RBMoins.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBMoins.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBMoins.setStyleSheet("border : 0px")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(QtGui.QPixmap("../Editeur/icons/MoinsBleu2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBMoins.setIcon(icon2)
+ self.RBMoins.setIconSize(QtCore.QSize(32, 32))
+ self.RBMoins.setObjectName("RBMoins")
+ self.horizontalLayout_4.addWidget(self.RBMoins)
+ self.RBPlus = QtWidgets.QToolButton(self.frame)
+ self.RBPlus.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPlus.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPlus.setStyleSheet("border : 0px")
+ icon3 = QtGui.QIcon()
+ icon3.addPixmap(QtGui.QPixmap("../Editeur/icons/PlusBleu.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPlus.setIcon(icon3)
+ self.RBPlus.setIconSize(QtCore.QSize(32, 32))
+ self.RBPlus.setObjectName("RBPlus")
+ self.horizontalLayout_4.addWidget(self.RBPlus)
+ self.horizontalLayout_3.addLayout(self.horizontalLayout_4)
+ spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem5)
+ self.RBVoisListe = QtWidgets.QToolButton(self.frame)
+ self.RBVoisListe.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBVoisListe.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBVoisListe.setStyleSheet("border : 0px")
+ icon4 = QtGui.QIcon()
+ icon4.addPixmap(QtGui.QPixmap("../Editeur/icons/verre-loupe-icone-6087-64.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBVoisListe.setIcon(icon4)
+ self.RBVoisListe.setIconSize(QtCore.QSize(32, 32))
+ self.RBVoisListe.setObjectName("RBVoisListe")
+ self.horizontalLayout_3.addWidget(self.RBVoisListe)
+ spacerItem6 = QtWidgets.QSpacerItem(18, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem6)
+ self.verticalLayout_5.addWidget(self.frame)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_5)
+ spacerItem7 = QtWidgets.QSpacerItem(20, 17, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem7)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetPlusieursIntoOrdonne)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon5 = QtGui.QIcon()
+ icon5.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon5)
+ self.RBPoubelle.setIconSize(QtCore.QSize(32, 32))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.verticalLayout.addWidget(self.RBPoubelle)
+ spacerItem8 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem8)
+ self.horizontalLayout_2.addLayout(self.verticalLayout)
+ self.scrollArea.raise_()
+
+ self.retranslateUi(WidgetPlusieursIntoOrdonne)
+ QtCore.QMetaObject.connectSlotsByName(WidgetPlusieursIntoOrdonne)
+
+ def retranslateUi(self, WidgetPlusieursIntoOrdonne):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetPlusieursIntoOrdonne.setWindowTitle(_translate("WidgetPlusieursIntoOrdonne", "Form"))
+ self.BFermeListe.setToolTip(_translate("WidgetPlusieursIntoOrdonne", "permet de gérer la liste"))
+ self.BFermeListe.setText(_translate("WidgetPlusieursIntoOrdonne", "..."))
+ self.RBValide.setToolTip(_translate("WidgetPlusieursIntoOrdonne", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetPlusieursIntoOrdonne", "..."))
+ self.label.setText(_translate("WidgetPlusieursIntoOrdonne", "aaa
dqsklmdqm
"))
+ self.monCommentaireLabel.setText(_translate("WidgetPlusieursIntoOrdonne", "TextLabel"))
+ self.RBHaut.setToolTip(_translate("WidgetPlusieursIntoOrdonne", "Remonte d\'une ligne"))
+ self.RBHaut.setText(_translate("WidgetPlusieursIntoOrdonne", "..."))
+ self.RBBas.setToolTip(_translate("WidgetPlusieursIntoOrdonne", "Descend d\'une ligne"))
+ self.RBBas.setText(_translate("WidgetPlusieursIntoOrdonne", "..."))
+ self.RBMoins.setToolTip(_translate("WidgetPlusieursIntoOrdonne", "Détruit une ligne"))
+ self.RBMoins.setText(_translate("WidgetPlusieursIntoOrdonne", "..."))
+ self.RBPlus.setToolTip(_translate("WidgetPlusieursIntoOrdonne", "ajoute une ligne"))
+ self.RBPlus.setText(_translate("WidgetPlusieursIntoOrdonne", "..."))
+ self.RBVoisListe.setToolTip(_translate("WidgetPlusieursIntoOrdonne", "visualise l\'ensemble des valeurs"))
+ self.RBVoisListe.setText(_translate("WidgetPlusieursIntoOrdonne", "..."))
+ self.RBPoubelle.setToolTip(_translate("WidgetPlusieursIntoOrdonne", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetPlusieursIntoOrdonne", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetPlusieursIntoOrdonne = QtWidgets.QWidget()
+ ui = Ui_WidgetPlusieursIntoOrdonne()
+ ui.setupUi(WidgetPlusieursIntoOrdonne)
+ WidgetPlusieursIntoOrdonne.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetPlusieursIntoOrdonne.ui b/UiQT5/desWidgetPlusieursIntoOrdonne.ui
new file mode 100644
index 00000000..b6871e96
--- /dev/null
+++ b/UiQT5/desWidgetPlusieursIntoOrdonne.ui
@@ -0,0 +1,733 @@
+
+
+ WidgetPlusieursIntoOrdonne
+
+
+
+ 0
+ 0
+ 1013
+ 243
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 2
+
+
+ 0
+
+
+ 7
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 21
+ 25
+
+
+
+ permet de gérer la liste
+
+
+ border:0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/minusnode.png../Editeur/icons/minusnode.png
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Plain
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 112
+ 172
+
+
+
+
+ 0
+ 0
+
+
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ TextLabel
+
+
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 8
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ background : rgb(247,247,247)
+
+
+ QFrame::Box
+
+
+ QFrame::Plain
+
+
+ 1
+
+
+ true
+
+
+ Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft
+
+
+
+
+ 0
+ 0
+ 301
+ 232
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Preferred
+
+
+
+ 8
+ 108
+
+
+
+
+ -
+
+
-
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ background : rgb(247,247,247)
+
+
+ QFrame::Box
+
+
+ QFrame::Plain
+
+
+ 1
+
+
+ true
+
+
+ Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft
+
+
+
+
+ 0
+ 0
+ 297
+ 187
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ QFrame::Box
+
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Remonte d'une ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+
+
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Descend d'une ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+
+
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Détruit une ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/MoinsBleu2.png../Editeur/icons/MoinsBleu2.png
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ ajoute une ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/PlusBleu.png../Editeur/icons/PlusBleu.png
+
+
+
+ 32
+ 32
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ visualise l'ensemble des valeurs
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/verre-loupe-icone-6087-64.png../Editeur/icons/verre-loupe-icone-6087-64.png
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 18
+ 20
+
+
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Preferred
+
+
+
+ 20
+ 17
+
+
+
+
+ -
+
+
-
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+ horizontalSpacer
+ horizontalSpacer_2
+ horizontalSpacer_3
+ scrollArea
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetPlusieursPlie.py b/UiQT5/desWidgetPlusieursPlie.py
new file mode 100644
index 00000000..e4fac059
--- /dev/null
+++ b/UiQT5/desWidgetPlusieursPlie.py
@@ -0,0 +1,145 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetPlusieursPlie.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetPlusieursPlie(object):
+ def setupUi(self, WidgetPlusieursPlie):
+ WidgetPlusieursPlie.setObjectName("WidgetPlusieursPlie")
+ WidgetPlusieursPlie.resize(1095, 62)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetPlusieursPlie.sizePolicy().hasHeightForWidth())
+ WidgetPlusieursPlie.setSizePolicy(sizePolicy)
+ WidgetPlusieursPlie.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout_4 = QtWidgets.QHBoxLayout(WidgetPlusieursPlie)
+ self.horizontalLayout_4.setContentsMargins(0, 1, 0, 1)
+ self.horizontalLayout_4.setSpacing(0)
+ self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.BVisuListe = QtWidgets.QToolButton(WidgetPlusieursPlie)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.BVisuListe.sizePolicy().hasHeightForWidth())
+ self.BVisuListe.setSizePolicy(sizePolicy)
+ self.BVisuListe.setMaximumSize(QtCore.QSize(21, 25))
+ self.BVisuListe.setStyleSheet("border:0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/plusnode.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.BVisuListe.setIcon(icon)
+ self.BVisuListe.setIconSize(QtCore.QSize(25, 25))
+ self.BVisuListe.setObjectName("BVisuListe")
+ self.horizontalLayout.addWidget(self.BVisuListe)
+ self.RBValide = MonBoutonValide(WidgetPlusieursPlie)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon1)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout.addLayout(self.horizontalLayout)
+ spacerItem = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem)
+ self.horizontalLayout_4.addLayout(self.verticalLayout)
+ self.label = MonLabelClic(WidgetPlusieursPlie)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_4.addWidget(self.label)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.lineEditVal = QtWidgets.QLineEdit(WidgetPlusieursPlie)
+ self.lineEditVal.setEnabled(False)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal.sizePolicy().hasHeightForWidth())
+ self.lineEditVal.setSizePolicy(sizePolicy)
+ self.lineEditVal.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal.setStyleSheet("background:rgb(195,195,195);\n"
+"border:0px;\n"
+"")
+ self.lineEditVal.setObjectName("lineEditVal")
+ self.horizontalLayout_3.addWidget(self.lineEditVal)
+ spacerItem1 = QtWidgets.QSpacerItem(71, 20, QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem1)
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ spacerItem2 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem2)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetPlusieursPlie)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.RBPoubelle.sizePolicy().hasHeightForWidth())
+ self.RBPoubelle.setSizePolicy(sizePolicy)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon2)
+ self.RBPoubelle.setIconSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_2.addWidget(self.RBPoubelle)
+ self.horizontalLayout_3.addLayout(self.horizontalLayout_2)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_3)
+ spacerItem3 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem3)
+ self.horizontalLayout_4.addLayout(self.verticalLayout_2)
+
+ self.retranslateUi(WidgetPlusieursPlie)
+ QtCore.QMetaObject.connectSlotsByName(WidgetPlusieursPlie)
+ WidgetPlusieursPlie.setTabOrder(self.lineEditVal, self.RBPoubelle)
+ WidgetPlusieursPlie.setTabOrder(self.RBPoubelle, self.RBValide)
+
+ def retranslateUi(self, WidgetPlusieursPlie):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetPlusieursPlie.setWindowTitle(_translate("WidgetPlusieursPlie", "Form"))
+ self.BVisuListe.setToolTip(_translate("WidgetPlusieursPlie", "permet de gérer la liste"))
+ self.BVisuListe.setText(_translate("WidgetPlusieursPlie", "..."))
+ self.RBValide.setToolTip(_translate("WidgetPlusieursPlie", "Affiche le rapport de validité du mot-clef"))
+ self.RBValide.setText(_translate("WidgetPlusieursPlie", "..."))
+ self.label.setText(_translate("WidgetPlusieursPlie", "aaa
dqsklmdqm
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetPlusieursPlie", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetPlusieursPlie", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetPlusieursPlie = QtWidgets.QWidget()
+ ui = Ui_WidgetPlusieursPlie()
+ ui.setupUi(WidgetPlusieursPlie)
+ WidgetPlusieursPlie.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetPlusieursPlie.ui b/UiQT5/desWidgetPlusieursPlie.ui
new file mode 100644
index 00000000..c9dbe943
--- /dev/null
+++ b/UiQT5/desWidgetPlusieursPlie.ui
@@ -0,0 +1,330 @@
+
+
+ WidgetPlusieursPlie
+
+
+
+ 0
+ 0
+ 1095
+ 62
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+ -
+
+
-
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 21
+ 25
+
+
+
+ permet de gérer la liste
+
+
+ border:0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/plusnode.png../Editeur/icons/plusnode.png
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Affiche le rapport de validité du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
-
+
+
-
+
+
+ false
+
+
+
+ 1
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ background:rgb(195,195,195);
+border:0px;
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::MinimumExpanding
+
+
+
+ 71
+ 20
+
+
+
+
+ -
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 21
+ 25
+
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+ QSizePolicy::Expanding
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+ lineEditVal
+ RBPoubelle
+ RBValide
+
+
+
+
diff --git a/UiQT5/desWidgetPlusieursTuple.py b/UiQT5/desWidgetPlusieursTuple.py
new file mode 100644
index 00000000..4dcd2480
--- /dev/null
+++ b/UiQT5/desWidgetPlusieursTuple.py
@@ -0,0 +1,277 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetPlusieursTuple.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetPlusieursTuple(object):
+ def setupUi(self, WidgetPlusieursTuple):
+ WidgetPlusieursTuple.setObjectName("WidgetPlusieursTuple")
+ WidgetPlusieursTuple.resize(612, 175)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetPlusieursTuple.sizePolicy().hasHeightForWidth())
+ WidgetPlusieursTuple.setSizePolicy(sizePolicy)
+ WidgetPlusieursTuple.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout(WidgetPlusieursTuple)
+ self.horizontalLayout_2.setContentsMargins(0, 2, 0, 2)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.verticalLayout_5 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_5.setObjectName("verticalLayout_5")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetPlusieursTuple)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.verticalLayout_5.addLayout(self.verticalLayout_2)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_5)
+ self.verticalLayout_6 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_6.setSpacing(0)
+ self.verticalLayout_6.setObjectName("verticalLayout_6")
+ self.label = MonLabelClic(WidgetPlusieursTuple)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.verticalLayout_6.addWidget(self.label)
+ self.scrollArea_2 = QtWidgets.QScrollArea(WidgetPlusieursTuple)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollArea_2.sizePolicy().hasHeightForWidth())
+ self.scrollArea_2.setSizePolicy(sizePolicy)
+ self.scrollArea_2.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollArea_2.setFrameShadow(QtWidgets.QFrame.Plain)
+ self.scrollArea_2.setWidgetResizable(True)
+ self.scrollArea_2.setObjectName("scrollArea_2")
+ self.scrollAreaWidgetContents = QtWidgets.QWidget()
+ self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 112, 109))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollAreaWidgetContents.sizePolicy().hasHeightForWidth())
+ self.scrollAreaWidgetContents.setSizePolicy(sizePolicy)
+ self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
+ self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
+ self.verticalLayout_7.setObjectName("verticalLayout_7")
+ self.monCommentaireLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.monCommentaireLabel.sizePolicy().hasHeightForWidth())
+ self.monCommentaireLabel.setSizePolicy(sizePolicy)
+ self.monCommentaireLabel.setObjectName("monCommentaireLabel")
+ self.verticalLayout_7.addWidget(self.monCommentaireLabel)
+ self.scrollArea_2.setWidget(self.scrollAreaWidgetContents)
+ self.verticalLayout_6.addWidget(self.scrollArea_2)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_6)
+ self.verticalLayout_4 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_4.setObjectName("verticalLayout_4")
+ self.frame = QtWidgets.QFrame(WidgetPlusieursTuple)
+ self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.frame.setObjectName("frame")
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame)
+ self.verticalLayout_3.setContentsMargins(0, -1, 0, -1)
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.scrollArea = QtWidgets.QScrollArea(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
+ self.scrollArea.setSizePolicy(sizePolicy)
+ self.scrollArea.setStyleSheet("background : rgb(247,247,247)")
+ self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollArea.setLineWidth(1)
+ self.scrollArea.setWidgetResizable(True)
+ self.scrollArea.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
+ self.scrollArea.setObjectName("scrollArea")
+ self.verticalWidgetLE = QtWidgets.QWidget()
+ self.verticalWidgetLE.setGeometry(QtCore.QRect(0, 0, 197, 110))
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.verticalWidgetLE.sizePolicy().hasHeightForWidth())
+ self.verticalWidgetLE.setSizePolicy(sizePolicy)
+ self.verticalWidgetLE.setObjectName("verticalWidgetLE")
+ self.verticalLayoutLE = QtWidgets.QVBoxLayout(self.verticalWidgetLE)
+ self.verticalLayoutLE.setContentsMargins(0, 0, 0, 0)
+ self.verticalLayoutLE.setSpacing(0)
+ self.verticalLayoutLE.setObjectName("verticalLayoutLE")
+ spacerItem2 = QtWidgets.QSpacerItem(20, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayoutLE.addItem(spacerItem2)
+ self.scrollArea.setWidget(self.verticalWidgetLE)
+ self.verticalLayout_3.addWidget(self.scrollArea)
+ self.verticalLayout_4.addWidget(self.frame)
+ self.frame1 = QtWidgets.QFrame(WidgetPlusieursTuple)
+ self.frame1.setFrameShape(QtWidgets.QFrame.Box)
+ self.frame1.setObjectName("frame1")
+ self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.frame1)
+ self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout_6.setObjectName("horizontalLayout_6")
+ self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_5.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_5.setSpacing(0)
+ self.horizontalLayout_5.setObjectName("horizontalLayout_5")
+ self.RBHaut = QtWidgets.QToolButton(self.frame1)
+ self.RBHaut.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBHaut.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBHaut.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBHaut.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon.fromTheme("go-up")
+ self.RBHaut.setIcon(icon)
+ self.RBHaut.setIconSize(QtCore.QSize(32, 32))
+ self.RBHaut.setObjectName("RBHaut")
+ self.horizontalLayout_5.addWidget(self.RBHaut)
+ self.RBBas = QtWidgets.QToolButton(self.frame1)
+ self.RBBas.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBBas.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBBas.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBBas.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon.fromTheme("go-down")
+ self.RBBas.setIcon(icon)
+ self.RBBas.setIconSize(QtCore.QSize(32, 32))
+ self.RBBas.setObjectName("RBBas")
+ self.horizontalLayout_5.addWidget(self.RBBas)
+ self.RBMoins = QtWidgets.QToolButton(self.frame1)
+ self.RBMoins.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBMoins.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBMoins.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBMoins.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/MoinsBleu2.png"), QtGui.QIcon.Normal, QtGui.QIcon.On)
+ self.RBMoins.setIcon(icon1)
+ self.RBMoins.setIconSize(QtCore.QSize(32, 32))
+ self.RBMoins.setObjectName("RBMoins")
+ self.horizontalLayout_5.addWidget(self.RBMoins)
+ self.RBPlus = QtWidgets.QToolButton(self.frame1)
+ self.RBPlus.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPlus.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPlus.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPlus.setStyleSheet("border : 0px")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(QtGui.QPixmap("../Editeur/icons/PlusBleu.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPlus.setIcon(icon2)
+ self.RBPlus.setIconSize(QtCore.QSize(32, 32))
+ self.RBPlus.setObjectName("RBPlus")
+ self.horizontalLayout_5.addWidget(self.RBPlus)
+ self.horizontalLayout_6.addLayout(self.horizontalLayout_5)
+ spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_6.addItem(spacerItem3)
+ self.RBVoisListe = QtWidgets.QToolButton(self.frame1)
+ self.RBVoisListe.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBVoisListe.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBVoisListe.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBVoisListe.setStyleSheet("border : 0px")
+ icon3 = QtGui.QIcon()
+ icon3.addPixmap(QtGui.QPixmap("../Editeur/icons/verre-loupe-icone-6087-64.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBVoisListe.setIcon(icon3)
+ self.RBVoisListe.setIconSize(QtCore.QSize(32, 32))
+ self.RBVoisListe.setObjectName("RBVoisListe")
+ self.horizontalLayout_6.addWidget(self.RBVoisListe)
+ self.verticalLayout_4.addWidget(self.frame1)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_4)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.BSelectFichier = QtWidgets.QToolButton(WidgetPlusieursTuple)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.BSelectFichier.sizePolicy().hasHeightForWidth())
+ self.BSelectFichier.setSizePolicy(sizePolicy)
+ self.BSelectFichier.setMaximumSize(QtCore.QSize(25, 30))
+ self.BSelectFichier.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.BSelectFichier.setStyleSheet("border:0px")
+ icon = QtGui.QIcon.fromTheme("text-x-generic")
+ self.BSelectFichier.setIcon(icon)
+ self.BSelectFichier.setIconSize(QtCore.QSize(32, 32))
+ self.BSelectFichier.setObjectName("BSelectFichier")
+ self.horizontalLayout_3.addWidget(self.BSelectFichier)
+ spacerItem4 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem4)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetPlusieursTuple)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon4 = QtGui.QIcon()
+ icon4.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon4)
+ self.RBPoubelle.setIconSize(QtCore.QSize(32, 32))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_3.addWidget(self.RBPoubelle)
+ self.verticalLayout.addLayout(self.horizontalLayout_3)
+ spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem5)
+ self.horizontalLayout_2.addLayout(self.verticalLayout)
+
+ self.retranslateUi(WidgetPlusieursTuple)
+ QtCore.QMetaObject.connectSlotsByName(WidgetPlusieursTuple)
+
+ def retranslateUi(self, WidgetPlusieursTuple):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetPlusieursTuple.setWindowTitle(_translate("WidgetPlusieursTuple", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetPlusieursTuple", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetPlusieursTuple", "..."))
+ self.label.setText(_translate("WidgetPlusieursTuple", "aaa
dqsklmdqm
"))
+ self.monCommentaireLabel.setText(_translate("WidgetPlusieursTuple", "TextLabel"))
+ self.RBHaut.setToolTip(_translate("WidgetPlusieursTuple", "Remonte la ligne"))
+ self.RBHaut.setText(_translate("WidgetPlusieursTuple", "..."))
+ self.RBBas.setToolTip(_translate("WidgetPlusieursTuple", "Descend la ligne"))
+ self.RBBas.setText(_translate("WidgetPlusieursTuple", "..."))
+ self.RBMoins.setToolTip(_translate("WidgetPlusieursTuple", "supprime une ligne"))
+ self.RBMoins.setText(_translate("WidgetPlusieursTuple", "..."))
+ self.RBPlus.setToolTip(_translate("WidgetPlusieursTuple", "Ajoute une ligne"))
+ self.RBPlus.setText(_translate("WidgetPlusieursTuple", "..."))
+ self.RBVoisListe.setToolTip(_translate("WidgetPlusieursTuple", "Montre l\'ensemble des valeurs"))
+ self.RBVoisListe.setText(_translate("WidgetPlusieursTuple", "..."))
+ self.BSelectFichier.setToolTip(_translate("WidgetPlusieursTuple", "Ouvre un fichier de sélection des valeurs"))
+ self.BSelectFichier.setText(_translate("WidgetPlusieursTuple", "..."))
+ self.RBPoubelle.setToolTip(_translate("WidgetPlusieursTuple", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetPlusieursTuple", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetPlusieursTuple = QtWidgets.QWidget()
+ ui = Ui_WidgetPlusieursTuple()
+ ui.setupUi(WidgetPlusieursTuple)
+ WidgetPlusieursTuple.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetPlusieursTuple.ui b/UiQT5/desWidgetPlusieursTuple.ui
new file mode 100644
index 00000000..391a2325
--- /dev/null
+++ b/UiQT5/desWidgetPlusieursTuple.ui
@@ -0,0 +1,668 @@
+
+
+ WidgetPlusieursTuple
+
+
+
+ 0
+ 0
+ 612
+ 175
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 2
+
+
+ 0
+
+
+ 2
+
+ -
+
+
-
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Plain
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 112
+ 109
+
+
+
+
+ 0
+ 0
+
+
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ TextLabel
+
+
+
+
+
+
+
+
+
+ -
+
+
-
+
+
+ QFrame::NoFrame
+
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ background : rgb(247,247,247)
+
+
+ QFrame::NoFrame
+
+
+ 1
+
+
+ true
+
+
+ Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft
+
+
+
+
+ 0
+ 0
+ 197
+ 110
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 13
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+ QFrame::Box
+
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Remonte la ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+
+
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Descend la ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+
+
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ supprime une ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/MoinsBleu2.png
+
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Ajoute une ligne
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/PlusBleu.png../Editeur/icons/PlusBleu.png
+
+
+
+ 32
+ 32
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Minimum
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Montre l'ensemble des valeurs
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/verre-loupe-icone-6087-64.png../Editeur/icons/verre-loupe-icone-6087-64.png
+
+
+
+ 32
+ 32
+
+
+
+
+
+
+
+
+
+ -
+
+
-
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 25
+ 30
+
+
+
+ Qt::ClickFocus
+
+
+ Ouvre un fichier de sélection des valeurs
+
+
+ border:0px
+
+
+ ...
+
+
+
+
+
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 32
+ 32
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetRadioButton.py b/UiQT5/desWidgetRadioButton.py
new file mode 100644
index 00000000..981a2aab
--- /dev/null
+++ b/UiQT5/desWidgetRadioButton.py
@@ -0,0 +1,141 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetRadioButton.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetRadioButton(object):
+ def setupUi(self, WidgetRadioButton):
+ WidgetRadioButton.setObjectName("WidgetRadioButton")
+ WidgetRadioButton.resize(851, 62)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetRadioButton.sizePolicy().hasHeightForWidth())
+ WidgetRadioButton.setSizePolicy(sizePolicy)
+ WidgetRadioButton.setMinimumSize(QtCore.QSize(0, 0))
+ WidgetRadioButton.setMaximumSize(QtCore.QSize(16777215, 16777215))
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(WidgetRadioButton)
+ self.horizontalLayout_3.setContentsMargins(0, 1, 0, 1)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetRadioButton)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(WidgetRadioButton)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_3.addWidget(self.label)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setSpacing(0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.radioButton_1 = QtWidgets.QRadioButton(WidgetRadioButton)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.radioButton_1.sizePolicy().hasHeightForWidth())
+ self.radioButton_1.setSizePolicy(sizePolicy)
+ self.radioButton_1.setMinimumSize(QtCore.QSize(0, 25))
+ self.radioButton_1.setObjectName("radioButton_1")
+ self.horizontalLayout_2.addWidget(self.radioButton_1)
+ spacerItem2 = QtWidgets.QSpacerItem(2, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem2)
+ self.radioButton_2 = QtWidgets.QRadioButton(WidgetRadioButton)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.radioButton_2.sizePolicy().hasHeightForWidth())
+ self.radioButton_2.setSizePolicy(sizePolicy)
+ self.radioButton_2.setObjectName("radioButton_2")
+ self.horizontalLayout_2.addWidget(self.radioButton_2)
+ spacerItem3 = QtWidgets.QSpacerItem(2, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem3)
+ self.radioButton_3 = QtWidgets.QRadioButton(WidgetRadioButton)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.radioButton_3.sizePolicy().hasHeightForWidth())
+ self.radioButton_3.setSizePolicy(sizePolicy)
+ self.radioButton_3.setObjectName("radioButton_3")
+ self.horizontalLayout_2.addWidget(self.radioButton_3)
+ spacerItem4 = QtWidgets.QSpacerItem(5, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem4)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetRadioButton)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_2.addWidget(self.RBPoubelle)
+ self.verticalLayout.addLayout(self.horizontalLayout_2)
+ spacerItem5 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem5)
+ self.horizontalLayout_3.addLayout(self.verticalLayout)
+
+ self.retranslateUi(WidgetRadioButton)
+ QtCore.QMetaObject.connectSlotsByName(WidgetRadioButton)
+
+ def retranslateUi(self, WidgetRadioButton):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetRadioButton.setWindowTitle(_translate("WidgetRadioButton", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetRadioButton", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetRadioButton", "..."))
+ self.label.setText(_translate("WidgetRadioButton", "aaa
dqsklmdqm
"))
+ self.radioButton_1.setText(_translate("WidgetRadioButton", "RadioButton"))
+ self.radioButton_2.setText(_translate("WidgetRadioButton", "RadioButton"))
+ self.radioButton_3.setText(_translate("WidgetRadioButton", "RadioButton"))
+ self.RBPoubelle.setToolTip(_translate("WidgetRadioButton", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetRadioButton", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetRadioButton = QtWidgets.QWidget()
+ ui = Ui_WidgetRadioButton()
+ ui.setupUi(WidgetRadioButton)
+ WidgetRadioButton.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetRadioButton.ui b/UiQT5/desWidgetRadioButton.ui
new file mode 100644
index 00000000..a5581881
--- /dev/null
+++ b/UiQT5/desWidgetRadioButton.ui
@@ -0,0 +1,336 @@
+
+
+ WidgetRadioButton
+
+
+
+ 0
+ 0
+ 851
+ 62
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 16777215
+ 16777215
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+ RadioButton
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 2
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ RadioButton
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 2
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ RadioButton
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 5
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetSDCOInto.py b/UiQT5/desWidgetSDCOInto.py
new file mode 100644
index 00000000..e0c6eed0
--- /dev/null
+++ b/UiQT5/desWidgetSDCOInto.py
@@ -0,0 +1,163 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetSDCOInto.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetSDCOInto(object):
+ def setupUi(self, WidgetSDCOInto):
+ WidgetSDCOInto.setObjectName("WidgetSDCOInto")
+ WidgetSDCOInto.resize(858, 312)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetSDCOInto.sizePolicy().hasHeightForWidth())
+ WidgetSDCOInto.setSizePolicy(sizePolicy)
+ WidgetSDCOInto.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout(WidgetSDCOInto)
+ self.horizontalLayout_2.setContentsMargins(0, 1, 0, 1)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetSDCOInto)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(WidgetSDCOInto)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_2.addWidget(self.label)
+ self.frame = QtWidgets.QFrame(WidgetSDCOInto)
+ self.frame.setFrameShape(QtWidgets.QFrame.Box)
+ self.frame.setObjectName("frame")
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame)
+ self.verticalLayout_3.setSpacing(0)
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.textLabel2 = QtWidgets.QLabel(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.textLabel2.sizePolicy().hasHeightForWidth())
+ self.textLabel2.setSizePolicy(sizePolicy)
+ self.textLabel2.setMaximumSize(QtCore.QSize(16777215, 31))
+ self.textLabel2.setWordWrap(False)
+ self.textLabel2.setObjectName("textLabel2")
+ self.verticalLayout_3.addWidget(self.textLabel2)
+ self.scrollArea = QtWidgets.QScrollArea(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
+ self.scrollArea.setSizePolicy(sizePolicy)
+ self.scrollArea.setMaximumSize(QtCore.QSize(16777215, 200))
+ self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.scrollArea.setWidgetResizable(True)
+ self.scrollArea.setObjectName("scrollArea")
+ self.scrollAreaWidgetContents = QtWidgets.QWidget()
+ self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 462, 200))
+ self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
+ self.gridLayout = QtWidgets.QGridLayout(self.scrollAreaWidgetContents)
+ self.gridLayout.setObjectName("gridLayout")
+ self.LBSDCO = QtWidgets.QListWidget(self.scrollAreaWidgetContents)
+ self.LBSDCO.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.LBSDCO.setObjectName("LBSDCO")
+ self.gridLayout.addWidget(self.LBSDCO, 0, 0, 1, 1)
+ self.scrollArea.setWidget(self.scrollAreaWidgetContents)
+ self.verticalLayout_3.addWidget(self.scrollArea)
+ self.label_3 = QtWidgets.QLabel(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
+ self.label_3.setSizePolicy(sizePolicy)
+ self.label_3.setObjectName("label_3")
+ self.verticalLayout_3.addWidget(self.label_3)
+ self.LESDCO = QtWidgets.QLineEdit(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.LESDCO.sizePolicy().hasHeightForWidth())
+ self.LESDCO.setSizePolicy(sizePolicy)
+ self.LESDCO.setMinimumSize(QtCore.QSize(0, 25))
+ self.LESDCO.setMaximumSize(QtCore.QSize(805, 31))
+ self.LESDCO.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.LESDCO.setObjectName("LESDCO")
+ self.verticalLayout_3.addWidget(self.LESDCO)
+ self.horizontalLayout_2.addWidget(self.frame)
+ spacerItem2 = QtWidgets.QSpacerItem(20, 17, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem2)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetSDCOInto)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(32, 32))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.verticalLayout.addWidget(self.RBPoubelle)
+ spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem3)
+ self.horizontalLayout_2.addLayout(self.verticalLayout)
+
+ self.retranslateUi(WidgetSDCOInto)
+ QtCore.QMetaObject.connectSlotsByName(WidgetSDCOInto)
+
+ def retranslateUi(self, WidgetSDCOInto):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetSDCOInto.setWindowTitle(_translate("WidgetSDCOInto", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetSDCOInto", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetSDCOInto", "..."))
+ self.label.setText(_translate("WidgetSDCOInto", "aaa
dqsklmdqm
"))
+ self.textLabel2.setText(_translate("WidgetSDCOInto", "Structures de données du type requis
"))
+ self.label_3.setText(_translate("WidgetSDCOInto", "ou Nom du concept
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetSDCOInto", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetSDCOInto", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetSDCOInto = QtWidgets.QWidget()
+ ui = Ui_WidgetSDCOInto()
+ ui.setupUi(WidgetSDCOInto)
+ WidgetSDCOInto.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetSDCOInto.ui b/UiQT5/desWidgetSDCOInto.ui
new file mode 100644
index 00000000..8974f213
--- /dev/null
+++ b/UiQT5/desWidgetSDCOInto.ui
@@ -0,0 +1,360 @@
+
+
+ WidgetSDCOInto
+
+
+
+ 0
+ 0
+ 858
+ 312
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+ QFrame::Box
+
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 16777215
+ 31
+
+
+
+ <html><head/><body><p>Structures de données du type requis </p><p><br/></p></body></html>
+
+
+ false
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 16777215
+ 200
+
+
+
+ QFrame::NoFrame
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 462
+ 200
+
+
+
+
-
+
+
+ QFrame::NoFrame
+
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ <html><head/><body><p>ou Nom du concept</p></body></html>
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 31
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Preferred
+
+
+
+ 20
+ 17
+
+
+
+
+ -
+
+
-
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetSimpBase.py b/UiQT5/desWidgetSimpBase.py
new file mode 100644
index 00000000..b71968ac
--- /dev/null
+++ b/UiQT5/desWidgetSimpBase.py
@@ -0,0 +1,123 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetSimpBase.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetSimpBase(object):
+ def setupUi(self, WidgetSimpBase):
+ WidgetSimpBase.setObjectName("WidgetSimpBase")
+ WidgetSimpBase.resize(743, 60)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetSimpBase.sizePolicy().hasHeightForWidth())
+ WidgetSimpBase.setSizePolicy(sizePolicy)
+ WidgetSimpBase.setMinimumSize(QtCore.QSize(0, 0))
+ WidgetSimpBase.setMaximumSize(QtCore.QSize(1677721, 60))
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(WidgetSimpBase)
+ self.horizontalLayout_3.setContentsMargins(0, 1, 0, 1)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetSimpBase)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(WidgetSimpBase)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_3.addWidget(self.label)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setSpacing(0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.lineEditVal = QtWidgets.QLineEdit(WidgetSimpBase)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal.sizePolicy().hasHeightForWidth())
+ self.lineEditVal.setSizePolicy(sizePolicy)
+ self.lineEditVal.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal.setObjectName("lineEditVal")
+ self.horizontalLayout_2.addWidget(self.lineEditVal)
+ spacerItem2 = QtWidgets.QSpacerItem(3, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem2)
+ spacerItem3 = QtWidgets.QSpacerItem(58, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem3)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetSimpBase)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_2.addWidget(self.RBPoubelle)
+ self.verticalLayout.addLayout(self.horizontalLayout_2)
+ spacerItem4 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem4)
+ self.horizontalLayout_3.addLayout(self.verticalLayout)
+
+ self.retranslateUi(WidgetSimpBase)
+ QtCore.QMetaObject.connectSlotsByName(WidgetSimpBase)
+
+ def retranslateUi(self, WidgetSimpBase):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetSimpBase.setWindowTitle(_translate("WidgetSimpBase", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetSimpBase", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetSimpBase", "..."))
+ self.label.setText(_translate("WidgetSimpBase", "aaa
dqsklmdqm
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetSimpBase", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetSimpBase", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetSimpBase = QtWidgets.QWidget()
+ ui = Ui_WidgetSimpBase()
+ ui.setupUi(WidgetSimpBase)
+ WidgetSimpBase.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetSimpBase.ui b/UiQT5/desWidgetSimpBase.ui
new file mode 100644
index 00000000..60c7dce5
--- /dev/null
+++ b/UiQT5/desWidgetSimpBase.ui
@@ -0,0 +1,304 @@
+
+
+ WidgetSimpBase
+
+
+
+ 0
+ 0
+ 743
+ 60
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 1677721
+ 60
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 3
+ 20
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Expanding
+
+
+
+ 58
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetSimpBool.py b/UiQT5/desWidgetSimpBool.py
new file mode 100644
index 00000000..46009759
--- /dev/null
+++ b/UiQT5/desWidgetSimpBool.py
@@ -0,0 +1,127 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetSimpBool.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetSimpBool(object):
+ def setupUi(self, WidgetSimpBool):
+ WidgetSimpBool.setObjectName("WidgetSimpBool")
+ WidgetSimpBool.resize(1065, 62)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetSimpBool.sizePolicy().hasHeightForWidth())
+ WidgetSimpBool.setSizePolicy(sizePolicy)
+ WidgetSimpBool.setMinimumSize(QtCore.QSize(0, 0))
+ WidgetSimpBool.setMaximumSize(QtCore.QSize(1493, 85))
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(WidgetSimpBool)
+ self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetSimpBool)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout_2.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_2)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(WidgetSimpBool)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_3.addWidget(self.label)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.RBTrue = QtWidgets.QRadioButton(WidgetSimpBool)
+ self.RBTrue.setObjectName("RBTrue")
+ self.horizontalLayout.addWidget(self.RBTrue)
+ spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem2)
+ self.RBFalse = QtWidgets.QRadioButton(WidgetSimpBool)
+ self.RBFalse.setObjectName("RBFalse")
+ self.horizontalLayout.addWidget(self.RBFalse)
+ spacerItem3 = QtWidgets.QSpacerItem(50, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem3)
+ self.verticalLayout.addLayout(self.horizontalLayout)
+ spacerItem4 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem4)
+ self.horizontalLayout_3.addLayout(self.verticalLayout)
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetSimpBool)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.RBPoubelle.sizePolicy().hasHeightForWidth())
+ self.RBPoubelle.setSizePolicy(sizePolicy)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.verticalLayout_3.addWidget(self.RBPoubelle)
+ spacerItem5 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_3.addItem(spacerItem5)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_3)
+
+ self.retranslateUi(WidgetSimpBool)
+ QtCore.QMetaObject.connectSlotsByName(WidgetSimpBool)
+
+ def retranslateUi(self, WidgetSimpBool):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetSimpBool.setWindowTitle(_translate("WidgetSimpBool", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetSimpBool", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetSimpBool", "..."))
+ self.label.setText(_translate("WidgetSimpBool", "aaa
dqsklmdqm
"))
+ self.RBTrue.setText(_translate("WidgetSimpBool", "True"))
+ self.RBFalse.setText(_translate("WidgetSimpBool", "False"))
+ self.RBPoubelle.setToolTip(_translate("WidgetSimpBool", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetSimpBool", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetSimpBool = QtWidgets.QWidget()
+ ui = Ui_WidgetSimpBool()
+ ui.setupUi(WidgetSimpBool)
+ WidgetSimpBool.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetSimpBool.ui b/UiQT5/desWidgetSimpBool.ui
new file mode 100644
index 00000000..013c2183
--- /dev/null
+++ b/UiQT5/desWidgetSimpBool.ui
@@ -0,0 +1,297 @@
+
+
+ WidgetSimpBool
+
+
+
+ 0
+ 0
+ 1065
+ 62
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 1493
+ 85
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
-
+
+
-
+
+
+ True
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+ False
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 50
+ 20
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetSimpComplexe.py b/UiQT5/desWidgetSimpComplexe.py
new file mode 100644
index 00000000..6f57bd96
--- /dev/null
+++ b/UiQT5/desWidgetSimpComplexe.py
@@ -0,0 +1,171 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetSimpComplexe.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetSimpComplexe(object):
+ def setupUi(self, WidgetSimpComplexe):
+ WidgetSimpComplexe.setObjectName("WidgetSimpComplexe")
+ WidgetSimpComplexe.resize(1242, 87)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetSimpComplexe.sizePolicy().hasHeightForWidth())
+ WidgetSimpComplexe.setSizePolicy(sizePolicy)
+ WidgetSimpComplexe.setMinimumSize(QtCore.QSize(940, 0))
+ WidgetSimpComplexe.setMaximumSize(QtCore.QSize(1493, 1400))
+ WidgetSimpComplexe.setStyleSheet("QLineEdit {\n"
+"background:rgb(235,235,235);\n"
+"border:0px;\n"
+"}")
+ self.horizontalLayout_5 = QtWidgets.QHBoxLayout(WidgetSimpComplexe)
+ self.horizontalLayout_5.setContentsMargins(0, 1, 0, 1)
+ self.horizontalLayout_5.setSpacing(0)
+ self.horizontalLayout_5.setObjectName("horizontalLayout_5")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetSimpComplexe)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.horizontalLayout_5.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(WidgetSimpComplexe)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_5.addWidget(self.label)
+ self.frame = QtWidgets.QFrame(WidgetSimpComplexe)
+ self.frame.setFrameShape(QtWidgets.QFrame.Box)
+ self.frame.setObjectName("frame")
+ self.gridLayout = QtWidgets.QGridLayout(self.frame)
+ self.gridLayout.setObjectName("gridLayout")
+ self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+ self.label_2 = QtWidgets.QLabel(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
+ self.label_2.setSizePolicy(sizePolicy)
+ self.label_2.setMinimumSize(QtCore.QSize(0, 29))
+ self.label_2.setMaximumSize(QtCore.QSize(16777215, 29))
+ self.label_2.setObjectName("label_2")
+ self.horizontalLayout_4.addWidget(self.label_2)
+ spacerItem2 = QtWidgets.QSpacerItem(19, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_4.addItem(spacerItem2)
+ self.gridLayout.addLayout(self.horizontalLayout_4, 0, 0, 1, 1)
+ self.LEComp = QtWidgets.QLineEdit(self.frame)
+ self.LEComp.setFrame(False)
+ self.LEComp.setObjectName("LEComp")
+ self.gridLayout.addWidget(self.LEComp, 1, 0, 1, 1)
+ self.label_3 = QtWidgets.QLabel(self.frame)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
+ self.label_3.setSizePolicy(sizePolicy)
+ self.label_3.setMaximumSize(QtCore.QSize(50, 24))
+ self.label_3.setObjectName("label_3")
+ self.gridLayout.addWidget(self.label_3, 0, 1, 1, 1)
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setContentsMargins(4, -1, 0, -1)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.RBRI = QtWidgets.QRadioButton(self.frame)
+ self.RBRI.setObjectName("RBRI")
+ self.horizontalLayout_2.addWidget(self.RBRI)
+ self.RBMP = QtWidgets.QRadioButton(self.frame)
+ self.RBMP.setObjectName("RBMP")
+ self.horizontalLayout_2.addWidget(self.RBMP)
+ self.gridLayout.addLayout(self.horizontalLayout_2, 0, 2, 1, 1)
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.LEReel = QtWidgets.QLineEdit(self.frame)
+ self.LEReel.setFrame(False)
+ self.LEReel.setObjectName("LEReel")
+ self.horizontalLayout_3.addWidget(self.LEReel)
+ spacerItem3 = QtWidgets.QSpacerItem(5, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem3)
+ self.LEImag = QtWidgets.QLineEdit(self.frame)
+ self.LEImag.setFrame(False)
+ self.LEImag.setObjectName("LEImag")
+ self.horizontalLayout_3.addWidget(self.LEImag)
+ self.gridLayout.addLayout(self.horizontalLayout_3, 1, 2, 1, 1)
+ spacerItem4 = QtWidgets.QSpacerItem(17, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.gridLayout.addItem(spacerItem4, 1, 1, 1, 1)
+ self.horizontalLayout_5.addWidget(self.frame)
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetSimpComplexe)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(32, 32))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.verticalLayout_3.addWidget(self.RBPoubelle)
+ spacerItem5 = QtWidgets.QSpacerItem(18, 47, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_3.addItem(spacerItem5)
+ self.horizontalLayout_5.addLayout(self.verticalLayout_3)
+
+ self.retranslateUi(WidgetSimpComplexe)
+ QtCore.QMetaObject.connectSlotsByName(WidgetSimpComplexe)
+ WidgetSimpComplexe.setTabOrder(self.LEComp, self.RBRI)
+ WidgetSimpComplexe.setTabOrder(self.RBRI, self.RBMP)
+ WidgetSimpComplexe.setTabOrder(self.RBMP, self.RBPoubelle)
+
+ def retranslateUi(self, WidgetSimpComplexe):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetSimpComplexe.setWindowTitle(_translate("WidgetSimpComplexe", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetSimpComplexe", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetSimpComplexe", "..."))
+ self.label.setText(_translate("WidgetSimpComplexe", "aaa
dqsklmdqm
"))
+ self.label_2.setText(_translate("WidgetSimpComplexe", "Complexe : a+bj"))
+ self.label_3.setText(_translate("WidgetSimpComplexe", "OU
"))
+ self.RBRI.setText(_translate("WidgetSimpComplexe", "Réel/Imaginaire"))
+ self.RBMP.setText(_translate("WidgetSimpComplexe", "Module/Phase"))
+ self.RBPoubelle.setText(_translate("WidgetSimpComplexe", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetSimpComplexe = QtWidgets.QWidget()
+ ui = Ui_WidgetSimpComplexe()
+ ui.setupUi(WidgetSimpComplexe)
+ WidgetSimpComplexe.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetSimpComplexe.ui b/UiQT5/desWidgetSimpComplexe.ui
new file mode 100644
index 00000000..4e9db7e6
--- /dev/null
+++ b/UiQT5/desWidgetSimpComplexe.ui
@@ -0,0 +1,390 @@
+
+
+ WidgetSimpComplexe
+
+
+
+ 0
+ 0
+ 1242
+ 87
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 940
+ 0
+
+
+
+
+ 1493
+ 1400
+
+
+
+ Form
+
+
+ QLineEdit {
+background:rgb(235,235,235);
+border:0px;
+}
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+ QFrame::Box
+
+
+
-
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 29
+
+
+
+
+ 16777215
+ 29
+
+
+
+ Complexe : a+bj
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 19
+ 20
+
+
+
+
+
+
+ -
+
+
+ false
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 50
+ 24
+
+
+
+ <html><head/><body><p align="center">OU </p></body></html>
+
+
+
+ -
+
+
+ 4
+
+
+ 0
+
+
-
+
+
+ Réel/Imaginaire
+
+
+
+ -
+
+
+ Module/Phase
+
+
+
+
+
+ -
+
+
-
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 5
+ 20
+
+
+
+
+ -
+
+
+ false
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 17
+ 20
+
+
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 18
+ 47
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+ LEComp
+ RBRI
+ RBMP
+ RBPoubelle
+
+
+
+
diff --git a/UiQT5/desWidgetSimpFichier.py b/UiQT5/desWidgetSimpFichier.py
new file mode 100644
index 00000000..522d2223
--- /dev/null
+++ b/UiQT5/desWidgetSimpFichier.py
@@ -0,0 +1,157 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetSimpFichier.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetSimpFichier(object):
+ def setupUi(self, WidgetSimpFichier):
+ WidgetSimpFichier.setObjectName("WidgetSimpFichier")
+ WidgetSimpFichier.resize(1095, 62)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetSimpFichier.sizePolicy().hasHeightForWidth())
+ WidgetSimpFichier.setSizePolicy(sizePolicy)
+ WidgetSimpFichier.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout_4 = QtWidgets.QHBoxLayout(WidgetSimpFichier)
+ self.horizontalLayout_4.setContentsMargins(0, 1, 0, 1)
+ self.horizontalLayout_4.setSpacing(0)
+ self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetSimpFichier)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout.addLayout(self.horizontalLayout)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem1)
+ self.horizontalLayout_4.addLayout(self.verticalLayout)
+ self.label = MonLabelClic(WidgetSimpFichier)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_4.addWidget(self.label)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.lineEditVal = QtWidgets.QLineEdit(WidgetSimpFichier)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal.sizePolicy().hasHeightForWidth())
+ self.lineEditVal.setSizePolicy(sizePolicy)
+ self.lineEditVal.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal.setObjectName("lineEditVal")
+ self.horizontalLayout_3.addWidget(self.lineEditVal)
+ spacerItem2 = QtWidgets.QSpacerItem(71, 20, QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem2)
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.BFichier = QtWidgets.QToolButton(WidgetSimpFichier)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.BFichier.sizePolicy().hasHeightForWidth())
+ self.BFichier.setSizePolicy(sizePolicy)
+ self.BFichier.setMaximumSize(QtCore.QSize(25, 25))
+ self.BFichier.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon.fromTheme("system-file-manager")
+ self.BFichier.setIcon(icon)
+ self.BFichier.setIconSize(QtCore.QSize(25, 25))
+ self.BFichier.setObjectName("BFichier")
+ self.horizontalLayout_2.addWidget(self.BFichier)
+ self.BVisuFichier = QtWidgets.QToolButton(WidgetSimpFichier)
+ self.BVisuFichier.setMaximumSize(QtCore.QSize(25, 25))
+ self.BVisuFichier.setStyleSheet("border:0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/visuFichier.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.BVisuFichier.setIcon(icon1)
+ self.BVisuFichier.setIconSize(QtCore.QSize(25, 25))
+ self.BVisuFichier.setObjectName("BVisuFichier")
+ self.horizontalLayout_2.addWidget(self.BVisuFichier)
+ spacerItem3 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem3)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetSimpFichier)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.RBPoubelle.sizePolicy().hasHeightForWidth())
+ self.RBPoubelle.setSizePolicy(sizePolicy)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon2)
+ self.RBPoubelle.setIconSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_2.addWidget(self.RBPoubelle)
+ self.horizontalLayout_3.addLayout(self.horizontalLayout_2)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_3)
+ spacerItem4 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem4)
+ self.horizontalLayout_4.addLayout(self.verticalLayout_2)
+
+ self.retranslateUi(WidgetSimpFichier)
+ QtCore.QMetaObject.connectSlotsByName(WidgetSimpFichier)
+ WidgetSimpFichier.setTabOrder(self.lineEditVal, self.BFichier)
+ WidgetSimpFichier.setTabOrder(self.BFichier, self.BVisuFichier)
+ WidgetSimpFichier.setTabOrder(self.BVisuFichier, self.RBPoubelle)
+ WidgetSimpFichier.setTabOrder(self.RBPoubelle, self.RBValide)
+
+ def retranslateUi(self, WidgetSimpFichier):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetSimpFichier.setWindowTitle(_translate("WidgetSimpFichier", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetSimpFichier", "Affiche le rapport de validité du mot-clef"))
+ self.RBValide.setText(_translate("WidgetSimpFichier", "..."))
+ self.label.setText(_translate("WidgetSimpFichier", "aaa
dqsklmdqm
"))
+ self.BFichier.setToolTip(_translate("WidgetSimpFichier", "affiche l\'explorateur de fichier"))
+ self.BFichier.setText(_translate("WidgetSimpFichier", "..."))
+ self.BVisuFichier.setToolTip(_translate("WidgetSimpFichier", "ouvre le fichier choisi"))
+ self.BVisuFichier.setText(_translate("WidgetSimpFichier", "..."))
+ self.RBPoubelle.setToolTip(_translate("WidgetSimpFichier", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetSimpFichier", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetSimpFichier = QtWidgets.QWidget()
+ ui = Ui_WidgetSimpFichier()
+ ui.setupUi(WidgetSimpFichier)
+ WidgetSimpFichier.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetSimpFichier.ui b/UiQT5/desWidgetSimpFichier.ui
new file mode 100644
index 00000000..408f8dfb
--- /dev/null
+++ b/UiQT5/desWidgetSimpFichier.ui
@@ -0,0 +1,374 @@
+
+
+ WidgetSimpFichier
+
+
+
+ 0
+ 0
+ 1095
+ 62
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+ -
+
+
-
+
+
+ 0
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Affiche le rapport de validité du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
-
+
+
-
+
+
+
+ 1
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::MinimumExpanding
+
+
+
+ 71
+ 20
+
+
+
+
+ -
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 25
+ 25
+
+
+
+ affiche l'explorateur de fichier
+
+
+ border : 0px
+
+
+ ...
+
+
+
+
+
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+
+ 25
+ 25
+
+
+
+ ouvre le fichier choisi
+
+
+ border:0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/visuFichier.png../Editeur/icons/visuFichier.png
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 21
+ 25
+
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+ QSizePolicy::Expanding
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+ lineEditVal
+ BFichier
+ BVisuFichier
+ RBPoubelle
+ RBValide
+
+
+
+
diff --git a/UiQT5/desWidgetSimpSalome.py b/UiQT5/desWidgetSimpSalome.py
new file mode 100644
index 00000000..feb7ef3a
--- /dev/null
+++ b/UiQT5/desWidgetSimpSalome.py
@@ -0,0 +1,158 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetSimpSalome.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetSimpSalome(object):
+ def setupUi(self, WidgetSimpSalome):
+ WidgetSimpSalome.setObjectName("WidgetSimpSalome")
+ WidgetSimpSalome.resize(1095, 62)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetSimpSalome.sizePolicy().hasHeightForWidth())
+ WidgetSimpSalome.setSizePolicy(sizePolicy)
+ WidgetSimpSalome.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout_4 = QtWidgets.QHBoxLayout(WidgetSimpSalome)
+ self.horizontalLayout_4.setContentsMargins(0, 1, 0, 1)
+ self.horizontalLayout_4.setSpacing(0)
+ self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetSimpSalome)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout.addLayout(self.horizontalLayout)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem1)
+ self.horizontalLayout_4.addLayout(self.verticalLayout)
+ self.label = MonLabelClic(WidgetSimpSalome)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_4.addWidget(self.label)
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.lineEditVal = QtWidgets.QLineEdit(WidgetSimpSalome)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal.sizePolicy().hasHeightForWidth())
+ self.lineEditVal.setSizePolicy(sizePolicy)
+ self.lineEditVal.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal.setObjectName("lineEditVal")
+ self.horizontalLayout_3.addWidget(self.lineEditVal)
+ spacerItem2 = QtWidgets.QSpacerItem(71, 20, QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem2)
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.RBSalome = QtWidgets.QToolButton(WidgetSimpSalome)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.RBSalome.sizePolicy().hasHeightForWidth())
+ self.RBSalome.setSizePolicy(sizePolicy)
+ self.RBSalome.setMaximumSize(QtCore.QSize(25, 25))
+ self.RBSalome.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/flecheSalome.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBSalome.setIcon(icon1)
+ self.RBSalome.setIconSize(QtCore.QSize(25, 25))
+ self.RBSalome.setObjectName("RBSalome")
+ self.horizontalLayout_2.addWidget(self.RBSalome)
+ self.RBSalomeVue = QtWidgets.QToolButton(WidgetSimpSalome)
+ self.RBSalomeVue.setMaximumSize(QtCore.QSize(25, 25))
+ self.RBSalomeVue.setStyleSheet("border:0px")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(QtGui.QPixmap("../Editeur/icons/eye.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBSalomeVue.setIcon(icon2)
+ self.RBSalomeVue.setIconSize(QtCore.QSize(25, 25))
+ self.RBSalomeVue.setObjectName("RBSalomeVue")
+ self.horizontalLayout_2.addWidget(self.RBSalomeVue)
+ spacerItem3 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem3)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetSimpSalome)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.RBPoubelle.sizePolicy().hasHeightForWidth())
+ self.RBPoubelle.setSizePolicy(sizePolicy)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon3 = QtGui.QIcon()
+ icon3.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon3)
+ self.RBPoubelle.setIconSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_2.addWidget(self.RBPoubelle)
+ self.horizontalLayout_3.addLayout(self.horizontalLayout_2)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_3)
+ spacerItem4 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem4)
+ self.horizontalLayout_4.addLayout(self.verticalLayout_2)
+
+ self.retranslateUi(WidgetSimpSalome)
+ QtCore.QMetaObject.connectSlotsByName(WidgetSimpSalome)
+ WidgetSimpSalome.setTabOrder(self.lineEditVal, self.RBSalome)
+ WidgetSimpSalome.setTabOrder(self.RBSalome, self.RBSalomeVue)
+ WidgetSimpSalome.setTabOrder(self.RBSalomeVue, self.RBPoubelle)
+ WidgetSimpSalome.setTabOrder(self.RBPoubelle, self.RBValide)
+
+ def retranslateUi(self, WidgetSimpSalome):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetSimpSalome.setWindowTitle(_translate("WidgetSimpSalome", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetSimpSalome", "Affiche le rapport de validité du mot-clef"))
+ self.RBValide.setText(_translate("WidgetSimpSalome", "..."))
+ self.label.setText(_translate("WidgetSimpSalome", "aaa
dqsklmdqm
"))
+ self.RBSalome.setToolTip(_translate("WidgetSimpSalome", "affiche l\'explorateur de fichier"))
+ self.RBSalome.setText(_translate("WidgetSimpSalome", "..."))
+ self.RBSalomeVue.setToolTip(_translate("WidgetSimpSalome", "ouvre le fichier choisi"))
+ self.RBSalomeVue.setText(_translate("WidgetSimpSalome", "..."))
+ self.RBPoubelle.setToolTip(_translate("WidgetSimpSalome", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetSimpSalome", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetSimpSalome = QtWidgets.QWidget()
+ ui = Ui_WidgetSimpSalome()
+ ui.setupUi(WidgetSimpSalome)
+ WidgetSimpSalome.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetSimpSalome.ui b/UiQT5/desWidgetSimpSalome.ui
new file mode 100644
index 00000000..ba8ed2fd
--- /dev/null
+++ b/UiQT5/desWidgetSimpSalome.ui
@@ -0,0 +1,373 @@
+
+
+ WidgetSimpSalome
+
+
+
+ 0
+ 0
+ 1095
+ 62
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+ -
+
+
-
+
+
+ 0
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Affiche le rapport de validité du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
-
+
+
-
+
+
+
+ 1
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::MinimumExpanding
+
+
+
+ 71
+ 20
+
+
+
+
+ -
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 25
+ 25
+
+
+
+ affiche l'explorateur de fichier
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/flecheSalome.png../Editeur/icons/flecheSalome.png
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+
+ 25
+ 25
+
+
+
+ ouvre le fichier choisi
+
+
+ border:0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/eye.png../Editeur/icons/eye.png
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 21
+ 25
+
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+ QSizePolicy::Expanding
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+ lineEditVal
+ RBSalome
+ RBSalomeVue
+ RBPoubelle
+ RBValide
+
+
+
+
diff --git a/UiQT5/desWidgetSimpTxt.py b/UiQT5/desWidgetSimpTxt.py
new file mode 100644
index 00000000..41511062
--- /dev/null
+++ b/UiQT5/desWidgetSimpTxt.py
@@ -0,0 +1,123 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetSimpTxt.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetSimpTxt(object):
+ def setupUi(self, WidgetSimpTxt):
+ WidgetSimpTxt.setObjectName("WidgetSimpTxt")
+ WidgetSimpTxt.resize(743, 60)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetSimpTxt.sizePolicy().hasHeightForWidth())
+ WidgetSimpTxt.setSizePolicy(sizePolicy)
+ WidgetSimpTxt.setMinimumSize(QtCore.QSize(0, 0))
+ WidgetSimpTxt.setMaximumSize(QtCore.QSize(1677721, 60))
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(WidgetSimpTxt)
+ self.horizontalLayout_3.setContentsMargins(1, 0, 0, 1)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetSimpTxt)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(WidgetSimpTxt)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_3.addWidget(self.label)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setSpacing(0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.lineEditVal = QtWidgets.QLineEdit(WidgetSimpTxt)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal.sizePolicy().hasHeightForWidth())
+ self.lineEditVal.setSizePolicy(sizePolicy)
+ self.lineEditVal.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal.setObjectName("lineEditVal")
+ self.horizontalLayout_2.addWidget(self.lineEditVal)
+ spacerItem2 = QtWidgets.QSpacerItem(3, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem2)
+ spacerItem3 = QtWidgets.QSpacerItem(5, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem3)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetSimpTxt)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_2.addWidget(self.RBPoubelle)
+ self.verticalLayout.addLayout(self.horizontalLayout_2)
+ spacerItem4 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem4)
+ self.horizontalLayout_3.addLayout(self.verticalLayout)
+
+ self.retranslateUi(WidgetSimpTxt)
+ QtCore.QMetaObject.connectSlotsByName(WidgetSimpTxt)
+
+ def retranslateUi(self, WidgetSimpTxt):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetSimpTxt.setWindowTitle(_translate("WidgetSimpTxt", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetSimpTxt", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetSimpTxt", "..."))
+ self.label.setText(_translate("WidgetSimpTxt", "aaa
dqsklmdqm
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetSimpTxt", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetSimpTxt", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetSimpTxt = QtWidgets.QWidget()
+ ui = Ui_WidgetSimpTxt()
+ ui.setupUi(WidgetSimpTxt)
+ WidgetSimpTxt.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetSimpTxt.ui b/UiQT5/desWidgetSimpTxt.ui
new file mode 100644
index 00000000..6fa4b7e9
--- /dev/null
+++ b/UiQT5/desWidgetSimpTxt.ui
@@ -0,0 +1,304 @@
+
+
+ WidgetSimpTxt
+
+
+
+ 0
+ 0
+ 743
+ 60
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 1677721
+ 60
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
-
+
+
+
+ 1
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 3
+ 20
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Expanding
+
+
+
+ 5
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetTuple2.py b/UiQT5/desWidgetTuple2.py
new file mode 100644
index 00000000..81114105
--- /dev/null
+++ b/UiQT5/desWidgetTuple2.py
@@ -0,0 +1,152 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetTuple2.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetTuple2(object):
+ def setupUi(self, WidgetTuple2):
+ WidgetTuple2.setObjectName("WidgetTuple2")
+ WidgetTuple2.resize(936, 62)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetTuple2.sizePolicy().hasHeightForWidth())
+ WidgetTuple2.setSizePolicy(sizePolicy)
+ WidgetTuple2.setMinimumSize(QtCore.QSize(0, 0))
+ WidgetTuple2.setStyleSheet("")
+ self.horizontalLayout_4 = QtWidgets.QHBoxLayout(WidgetTuple2)
+ self.horizontalLayout_4.setContentsMargins(0, 1, 0, 1)
+ self.horizontalLayout_4.setSpacing(0)
+ self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetTuple2)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout_3.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_3)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.horizontalLayout_4.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(WidgetTuple2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_4.addWidget(self.label)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.label_2 = QtWidgets.QLabel(WidgetTuple2)
+ self.label_2.setObjectName("label_2")
+ self.horizontalLayout_2.addWidget(self.label_2)
+ self.lineEditVal1 = QtWidgets.QLineEdit(WidgetTuple2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal1.sizePolicy().hasHeightForWidth())
+ self.lineEditVal1.setSizePolicy(sizePolicy)
+ self.lineEditVal1.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal1.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal1.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;\n"
+"\n"
+"")
+ self.lineEditVal1.setReadOnly(False)
+ self.lineEditVal1.setObjectName("lineEditVal1")
+ self.horizontalLayout_2.addWidget(self.lineEditVal1)
+ self.label_4 = QtWidgets.QLabel(WidgetTuple2)
+ self.label_4.setObjectName("label_4")
+ self.horizontalLayout_2.addWidget(self.label_4)
+ self.lineEditVal2 = QtWidgets.QLineEdit(WidgetTuple2)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal2.sizePolicy().hasHeightForWidth())
+ self.lineEditVal2.setSizePolicy(sizePolicy)
+ self.lineEditVal2.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal2.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal2.setFocusPolicy(QtCore.Qt.StrongFocus)
+ self.lineEditVal2.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal2.setObjectName("lineEditVal2")
+ self.horizontalLayout_2.addWidget(self.lineEditVal2)
+ self.label_3 = QtWidgets.QLabel(WidgetTuple2)
+ self.label_3.setObjectName("label_3")
+ self.horizontalLayout_2.addWidget(self.label_3)
+ self.horizontalLayout.addLayout(self.horizontalLayout_2)
+ spacerItem2 = QtWidgets.QSpacerItem(58, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem2)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetTuple2)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout.addWidget(self.RBPoubelle)
+ self.verticalLayout.addLayout(self.horizontalLayout)
+ spacerItem3 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem3)
+ self.horizontalLayout_4.addLayout(self.verticalLayout)
+
+ self.retranslateUi(WidgetTuple2)
+ QtCore.QMetaObject.connectSlotsByName(WidgetTuple2)
+ WidgetTuple2.setTabOrder(self.lineEditVal1, self.lineEditVal2)
+
+ def retranslateUi(self, WidgetTuple2):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetTuple2.setWindowTitle(_translate("WidgetTuple2", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetTuple2", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetTuple2", "..."))
+ self.label.setText(_translate("WidgetTuple2", "aaa
dqsklmdqm
"))
+ self.label_2.setText(_translate("WidgetTuple2", "(
"))
+ self.label_4.setText(_translate("WidgetTuple2", ",
"))
+ self.label_3.setText(_translate("WidgetTuple2", ")
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetTuple2", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetTuple2", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetTuple2 = QtWidgets.QWidget()
+ ui = Ui_WidgetTuple2()
+ ui.setupUi(WidgetTuple2)
+ WidgetTuple2.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetTuple2.ui b/UiQT5/desWidgetTuple2.ui
new file mode 100644
index 00000000..9c45154b
--- /dev/null
+++ b/UiQT5/desWidgetTuple2.ui
@@ -0,0 +1,345 @@
+
+
+ WidgetTuple2
+
+
+
+ 0
+ 0
+ 936
+ 62
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 1
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
-
+
+
-
+
+
-
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">(</span></p></body></html>
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+
+ false
+
+
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">,</span></p></body></html>
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ Qt::StrongFocus
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">)</span></p></body></html>
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Expanding
+
+
+
+ 58
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+ lineEditVal1
+ lineEditVal2
+
+
+
+
diff --git a/UiQT5/desWidgetTuple3.py b/UiQT5/desWidgetTuple3.py
new file mode 100644
index 00000000..845b1229
--- /dev/null
+++ b/UiQT5/desWidgetTuple3.py
@@ -0,0 +1,161 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetTuple3.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetTuple3(object):
+ def setupUi(self, WidgetTuple3):
+ WidgetTuple3.setObjectName("WidgetTuple3")
+ WidgetTuple3.resize(1282, 61)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetTuple3.sizePolicy().hasHeightForWidth())
+ WidgetTuple3.setSizePolicy(sizePolicy)
+ WidgetTuple3.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(WidgetTuple3)
+ self.horizontalLayout_3.setContentsMargins(1, 0, 0, 1)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetTuple3)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout_2.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_2)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(WidgetTuple3)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout_3.addWidget(self.label)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.label_2 = QtWidgets.QLabel(WidgetTuple3)
+ self.label_2.setObjectName("label_2")
+ self.horizontalLayout.addWidget(self.label_2)
+ self.lineEditVal1 = QtWidgets.QLineEdit(WidgetTuple3)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal1.sizePolicy().hasHeightForWidth())
+ self.lineEditVal1.setSizePolicy(sizePolicy)
+ self.lineEditVal1.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal1.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal1.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal1.setObjectName("lineEditVal1")
+ self.horizontalLayout.addWidget(self.lineEditVal1)
+ self.label_4 = QtWidgets.QLabel(WidgetTuple3)
+ self.label_4.setObjectName("label_4")
+ self.horizontalLayout.addWidget(self.label_4)
+ self.lineEditVal2 = QtWidgets.QLineEdit(WidgetTuple3)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal2.sizePolicy().hasHeightForWidth())
+ self.lineEditVal2.setSizePolicy(sizePolicy)
+ self.lineEditVal2.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal2.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal2.setFocusPolicy(QtCore.Qt.StrongFocus)
+ self.lineEditVal2.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal2.setObjectName("lineEditVal2")
+ self.horizontalLayout.addWidget(self.lineEditVal2)
+ self.label_3 = QtWidgets.QLabel(WidgetTuple3)
+ self.label_3.setObjectName("label_3")
+ self.horizontalLayout.addWidget(self.label_3)
+ self.lineEditVal3 = QtWidgets.QLineEdit(WidgetTuple3)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal3.sizePolicy().hasHeightForWidth())
+ self.lineEditVal3.setSizePolicy(sizePolicy)
+ self.lineEditVal3.setMinimumSize(QtCore.QSize(0, 25))
+ self.lineEditVal3.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal3.setFocusPolicy(QtCore.Qt.StrongFocus)
+ self.lineEditVal3.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal3.setObjectName("lineEditVal3")
+ self.horizontalLayout.addWidget(self.lineEditVal3)
+ self.label_5 = QtWidgets.QLabel(WidgetTuple3)
+ self.label_5.setObjectName("label_5")
+ self.horizontalLayout.addWidget(self.label_5)
+ spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem2)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetTuple3)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout.addWidget(self.RBPoubelle)
+ self.verticalLayout.addLayout(self.horizontalLayout)
+ spacerItem3 = QtWidgets.QSpacerItem(20, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem3)
+ self.horizontalLayout_3.addLayout(self.verticalLayout)
+
+ self.retranslateUi(WidgetTuple3)
+ QtCore.QMetaObject.connectSlotsByName(WidgetTuple3)
+
+ def retranslateUi(self, WidgetTuple3):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetTuple3.setWindowTitle(_translate("WidgetTuple3", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetTuple3", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetTuple3", "..."))
+ self.label.setText(_translate("WidgetTuple3", "aaa
dqsklmdqm
"))
+ self.label_2.setText(_translate("WidgetTuple3", "(
"))
+ self.label_4.setText(_translate("WidgetTuple3", ",
"))
+ self.label_3.setText(_translate("WidgetTuple3", ",
"))
+ self.label_5.setText(_translate("WidgetTuple3", ")
"))
+ self.RBPoubelle.setToolTip(_translate("WidgetTuple3", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetTuple3", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetTuple3 = QtWidgets.QWidget()
+ ui = Ui_WidgetTuple3()
+ ui.setupUi(WidgetTuple3)
+ WidgetTuple3.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetTuple3.ui b/UiQT5/desWidgetTuple3.ui
new file mode 100644
index 00000000..a31e9b55
--- /dev/null
+++ b/UiQT5/desWidgetTuple3.ui
@@ -0,0 +1,362 @@
+
+
+ WidgetTuple3
+
+
+
+ 0
+ 0
+ 1282
+ 61
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 1
+
+
+ 0
+
+
+ 0
+
+
+ 1
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 5
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
-
+
+
-
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">(</span></p></body></html>
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">,</span></p></body></html>
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ Qt::StrongFocus
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">,</span></p></body></html>
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ Qt::StrongFocus
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ <html><head/><body><p><span style=" font-size:14pt;">)</span></p></body></html>
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 13
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+
+
diff --git a/UiQT5/desWidgetUniqueSDCO.py b/UiQT5/desWidgetUniqueSDCO.py
new file mode 100644
index 00000000..055f5523
--- /dev/null
+++ b/UiQT5/desWidgetUniqueSDCO.py
@@ -0,0 +1,119 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetUniqueSDCO.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetUniqueSDCO(object):
+ def setupUi(self, WidgetUniqueSDCO):
+ WidgetUniqueSDCO.setObjectName("WidgetUniqueSDCO")
+ WidgetUniqueSDCO.resize(1069, 56)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetUniqueSDCO.sizePolicy().hasHeightForWidth())
+ WidgetUniqueSDCO.setSizePolicy(sizePolicy)
+ WidgetUniqueSDCO.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout = QtWidgets.QHBoxLayout(WidgetUniqueSDCO)
+ self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout.setSpacing(1)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_2.setSpacing(0)
+ self.verticalLayout_2.setObjectName("verticalLayout_2")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetUniqueSDCO)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(25, 25))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout_3.addWidget(self.RBValide)
+ self.verticalLayout_2.addLayout(self.horizontalLayout_3)
+ spacerItem1 = QtWidgets.QSpacerItem(20, 2, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_2.addItem(spacerItem1)
+ self.horizontalLayout.addLayout(self.verticalLayout_2)
+ self.label = MonLabelClic(WidgetUniqueSDCO)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 25))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setScaledContents(False)
+ self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
+ self.label.setObjectName("label")
+ self.horizontalLayout.addWidget(self.label)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setSpacing(0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.LESDCO = QtWidgets.QLineEdit(WidgetUniqueSDCO)
+ self.LESDCO.setMinimumSize(QtCore.QSize(0, 25))
+ self.LESDCO.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.LESDCO.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.LESDCO.setObjectName("LESDCO")
+ self.verticalLayout.addWidget(self.LESDCO)
+ self.label_2 = QtWidgets.QLabel(WidgetUniqueSDCO)
+ self.label_2.setObjectName("label_2")
+ self.verticalLayout.addWidget(self.label_2)
+ self.horizontalLayout.addLayout(self.verticalLayout)
+ spacerItem2 = QtWidgets.QSpacerItem(79, 17, QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem2)
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_3.setObjectName("verticalLayout_3")
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetUniqueSDCO)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 25))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon1)
+ self.RBPoubelle.setIconSize(QtCore.QSize(25, 25))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.verticalLayout_3.addWidget(self.RBPoubelle)
+ spacerItem3 = QtWidgets.QSpacerItem(20, 2, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout_3.addItem(spacerItem3)
+ self.horizontalLayout.addLayout(self.verticalLayout_3)
+
+ self.retranslateUi(WidgetUniqueSDCO)
+ QtCore.QMetaObject.connectSlotsByName(WidgetUniqueSDCO)
+
+ def retranslateUi(self, WidgetUniqueSDCO):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetUniqueSDCO.setWindowTitle(_translate("WidgetUniqueSDCO", "Form"))
+ self.RBValide.setToolTip(_translate("WidgetUniqueSDCO", "Affiche le rapport de validation du mot-clef"))
+ self.RBValide.setText(_translate("WidgetUniqueSDCO", "..."))
+ self.label.setText(_translate("WidgetUniqueSDCO", "aaa
dqsklmdqm
"))
+ self.label_2.setText(_translate("WidgetUniqueSDCO", "Attend un objet de type CO "))
+ self.RBPoubelle.setToolTip(_translate("WidgetUniqueSDCO", "Détruit le mot-clef"))
+ self.RBPoubelle.setText(_translate("WidgetUniqueSDCO", "..."))
+
+from monBoutonValide import MonBoutonValide
+from monLabelClic import MonLabelClic
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetUniqueSDCO = QtWidgets.QWidget()
+ ui = Ui_WidgetUniqueSDCO()
+ ui.setupUi(WidgetUniqueSDCO)
+ WidgetUniqueSDCO.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetUniqueSDCO.ui b/UiQT5/desWidgetUniqueSDCO.ui
new file mode 100644
index 00000000..178cfc04
--- /dev/null
+++ b/UiQT5/desWidgetUniqueSDCO.ui
@@ -0,0 +1,277 @@
+
+
+ WidgetUniqueSDCO
+
+
+
+ 0
+ 0
+ 1069
+ 56
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 1
+
+
+ 0
+
+ -
+
+
+ 0
+
+
-
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Affiche le rapport de validation du mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 25
+ 25
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 2
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 25
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p>aaa</p><p>dqsklmdqm</p></body></html>
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 25
+
+
+
+
+ 805
+ 16777215
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+
+ -
+
+
+ Attend un objet de type CO
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::MinimumExpanding
+
+
+
+ 79
+ 17
+
+
+
+
+ -
+
+
-
+
+
+
+ 21
+ 25
+
+
+
+
+ 21
+ 25
+
+
+
+ Qt::ClickFocus
+
+
+ Détruit le mot-clef
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 25
+ 25
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 2
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+ MonLabelClic
+ QLabel
+
+
+
+
+ LESDCO
+
+
+
+
diff --git a/UiQT5/desWidgetVide.py b/UiQT5/desWidgetVide.py
new file mode 100644
index 00000000..0ecb9696
--- /dev/null
+++ b/UiQT5/desWidgetVide.py
@@ -0,0 +1,140 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desWidgetVide.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_WidgetVide(object):
+ def setupUi(self, WidgetVide):
+ WidgetVide.setObjectName("WidgetVide")
+ WidgetVide.resize(1069, 55)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(WidgetVide.sizePolicy().hasHeightForWidth())
+ WidgetVide.setSizePolicy(sizePolicy)
+ WidgetVide.setMinimumSize(QtCore.QSize(0, 0))
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(WidgetVide)
+ self.horizontalLayout_3.setContentsMargins(0, 2, 0, 0)
+ self.horizontalLayout_3.setSpacing(0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout.setSpacing(0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ spacerItem = QtWidgets.QSpacerItem(21, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.RBValide = MonBoutonValide(WidgetVide)
+ self.RBValide.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBValide.setMaximumSize(QtCore.QSize(21, 35))
+ self.RBValide.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBValide.setStyleSheet("border : 0px")
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/ast-green-ball.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBValide.setIcon(icon)
+ self.RBValide.setIconSize(QtCore.QSize(32, 32))
+ self.RBValide.setObjectName("RBValide")
+ self.horizontalLayout.addWidget(self.RBValide)
+ self.horizontalLayout_3.addLayout(self.horizontalLayout)
+ self.label = QtWidgets.QLabel(WidgetVide)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMinimumSize(QtCore.QSize(300, 24))
+ self.label.setMaximumSize(QtCore.QSize(178, 16777215))
+ self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.label.setObjectName("label")
+ self.horizontalLayout_3.addWidget(self.label)
+ self.lineEditVal = QtWidgets.QLineEdit(WidgetVide)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lineEditVal.sizePolicy().hasHeightForWidth())
+ self.lineEditVal.setSizePolicy(sizePolicy)
+ self.lineEditVal.setMinimumSize(QtCore.QSize(0, 32))
+ self.lineEditVal.setMaximumSize(QtCore.QSize(805, 16777215))
+ self.lineEditVal.setStyleSheet("background:rgb(235,235,235);\n"
+"border:0px;")
+ self.lineEditVal.setObjectName("lineEditVal")
+ self.horizontalLayout_3.addWidget(self.lineEditVal)
+ spacerItem1 = QtWidgets.QSpacerItem(79, 17, QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_3.addItem(spacerItem1)
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setSpacing(0)
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.RBSalome = QtWidgets.QToolButton(WidgetVide)
+ self.RBSalome.setMinimumSize(QtCore.QSize(25, 30))
+ self.RBSalome.setMaximumSize(QtCore.QSize(25, 30))
+ self.RBSalome.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBSalome.setStyleSheet("border : 0px")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(QtGui.QPixmap("../Editeur/icons/flecheSalome.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBSalome.setIcon(icon1)
+ self.RBSalome.setIconSize(QtCore.QSize(32, 32))
+ self.RBSalome.setObjectName("RBSalome")
+ self.horizontalLayout_2.addWidget(self.RBSalome)
+ self.RBSalomeVue = QtWidgets.QToolButton(WidgetVide)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.RBSalomeVue.sizePolicy().hasHeightForWidth())
+ self.RBSalomeVue.setSizePolicy(sizePolicy)
+ self.RBSalomeVue.setMinimumSize(QtCore.QSize(25, 30))
+ self.RBSalomeVue.setMaximumSize(QtCore.QSize(25, 30))
+ self.RBSalomeVue.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBSalomeVue.setStyleSheet("border:0px")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(QtGui.QPixmap("../Editeur/icons/icon_salome.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBSalomeVue.setIcon(icon2)
+ self.RBSalomeVue.setIconSize(QtCore.QSize(32, 32))
+ self.RBSalomeVue.setObjectName("RBSalomeVue")
+ self.horizontalLayout_2.addWidget(self.RBSalomeVue)
+ spacerItem2 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
+ self.horizontalLayout_2.addItem(spacerItem2)
+ self.RBPoubelle = QtWidgets.QToolButton(WidgetVide)
+ self.RBPoubelle.setMinimumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setMaximumSize(QtCore.QSize(21, 31))
+ self.RBPoubelle.setFocusPolicy(QtCore.Qt.ClickFocus)
+ self.RBPoubelle.setStyleSheet("border : 0px")
+ icon3 = QtGui.QIcon()
+ icon3.addPixmap(QtGui.QPixmap("../Editeur/icons/deleteRond.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.RBPoubelle.setIcon(icon3)
+ self.RBPoubelle.setIconSize(QtCore.QSize(21, 32))
+ self.RBPoubelle.setObjectName("RBPoubelle")
+ self.horizontalLayout_2.addWidget(self.RBPoubelle)
+ self.horizontalLayout_3.addLayout(self.horizontalLayout_2)
+
+ self.retranslateUi(WidgetVide)
+ QtCore.QMetaObject.connectSlotsByName(WidgetVide)
+ WidgetVide.setTabOrder(self.lineEditVal, self.RBSalome)
+ WidgetVide.setTabOrder(self.RBSalome, self.RBSalomeVue)
+ WidgetVide.setTabOrder(self.RBSalomeVue, self.RBValide)
+ WidgetVide.setTabOrder(self.RBValide, self.RBPoubelle)
+
+ def retranslateUi(self, WidgetVide):
+ _translate = QtCore.QCoreApplication.translate
+ WidgetVide.setWindowTitle(_translate("WidgetVide", "Form"))
+ self.RBValide.setText(_translate("WidgetVide", "..."))
+ self.label.setText(_translate("WidgetVide", "Label
"))
+ self.lineEditVal.setText(_translate("WidgetVide", "Attend un objet de type XXXX. Il faut le créer"))
+ self.RBSalome.setText(_translate("WidgetVide", "..."))
+ self.RBSalomeVue.setText(_translate("WidgetVide", "..."))
+ self.RBPoubelle.setText(_translate("WidgetVide", "..."))
+
+from monBoutonValide import MonBoutonValide
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ WidgetVide = QtWidgets.QWidget()
+ ui = Ui_WidgetVide()
+ ui.setupUi(WidgetVide)
+ WidgetVide.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/desWidgetVide.ui b/UiQT5/desWidgetVide.ui
new file mode 100644
index 00000000..03a815f7
--- /dev/null
+++ b/UiQT5/desWidgetVide.ui
@@ -0,0 +1,330 @@
+
+
+ WidgetVide
+
+
+
+ 0
+ 0
+ 1069
+ 55
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ Form
+
+
+
+ 0
+
+
+ 0
+
+
+ 2
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+ 0
+
+
+ QLayout::SetFixedSize
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 21
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 35
+
+
+
+ Qt::ClickFocus
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/ast-green-ball.png../Editeur/icons/ast-green-ball.png
+
+
+
+ 32
+ 32
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 24
+
+
+
+
+ 178
+ 16777215
+
+
+
+ QFrame::NoFrame
+
+
+ <html><head/><body><p><span style=" color:#0055ff;">Label</span></p></body></html>
+
+
+
+ -
+
+
+
+ 1
+ 0
+
+
+
+
+ 0
+ 32
+
+
+
+
+ 805
+ 16777215
+
+
+
+ background:rgb(235,235,235);
+border:0px;
+
+
+ Attend un objet de type XXXX. Il faut le créer
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::MinimumExpanding
+
+
+
+ 79
+ 17
+
+
+
+
+ -
+
+
+ 0
+
+
-
+
+
+
+ 25
+ 30
+
+
+
+
+ 25
+ 30
+
+
+
+ Qt::ClickFocus
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/flecheSalome.png../Editeur/icons/flecheSalome.png
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 25
+ 30
+
+
+
+
+ 25
+ 30
+
+
+
+ Qt::ClickFocus
+
+
+ border:0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/icon_salome.png../Editeur/icons/icon_salome.png
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 13
+ 20
+
+
+
+
+ -
+
+
+
+ 21
+ 31
+
+
+
+
+ 21
+ 31
+
+
+
+ Qt::ClickFocus
+
+
+ border : 0px
+
+
+ ...
+
+
+
+ ../Editeur/icons/deleteRond.png../Editeur/icons/deleteRond.png
+
+
+
+ 21
+ 32
+
+
+
+
+
+
+
+
+
+
+ MonBoutonValide
+ QToolButton
+
+
+
+
+ lineEditVal
+ RBSalome
+ RBSalomeVue
+ RBValide
+ RBPoubelle
+
+
+
+
diff --git a/UiQT5/eficas_en.qm b/UiQT5/eficas_en.qm
new file mode 100644
index 00000000..885409ee
Binary files /dev/null and b/UiQT5/eficas_en.qm differ
diff --git a/UiQT5/eficas_en.ts b/UiQT5/eficas_en.ts
new file mode 100644
index 00000000..e514c2ef
--- /dev/null
+++ b/UiQT5/eficas_en.ts
@@ -0,0 +1,3948 @@
+
+
+
+ @default
+
+
+
+ unable to read file :
+
+
+
+
+ unable to open file %s
+
+
+
+
+ Unable to translate the file. it probably contains mistake
+ask eficas team
+%s
+
+
+
+
+ Unsupported format %s
+
+
+
+
+ unable to open file: %s
+
+
+
+
+ Error!
+
+
+
+
+ Error in recherche_enfants : %s
+
+
+
+
+ Error when creating %s
+
+
+
+
+ unable to open file : %s
+
+
+
+
+ text is no eficas text:
+
+
+
+
+ error when searching command's name :
+
+
+
+
+ error when searching argument's command :
+
+
+
+
+ error when searching command's name :
+
+
+
+
+ error when searching argument's command :
+
+
+
+
+ %d is not a valid index for append-brother
+
+
+
+
+ commands file %s does not exist
+
+
+
+
+ You have to define principal commands file before a secondary (poursuite) file %s
+
+
+
+
+ the secondary (poursuite) file does not exist
+
+
+
+
+ include is not correct %s
+
+
+
+
+ You have to define principal commands file before include %s
+
+
+
+
+ include file does not exist
+
+
+
+
+ v_1
+ jdc %(v_1)s : .comm %(v_2)s does not exist
+
+
+
+
+ file %s does not exist
+
+
+
+
+ jdc %s does not have jdc option in command line
+
+
+
+
+ v_1
+ %(v_1)s include %(v_2)s : %(v_3)s
+
+
+
+
+ v_1
+ %(v_1)ssecondary (poursuite) file %(v_2)s
+
+
+
+
+ study's name : %s
+
+
+
+
+ use : %prog[options]
+
+
+
+
+ principal .comm file's name
+
+
+
+
+ secondary (poursuite) file's name
+
+
+
+
+ unit number and include file's name
+
+
+
+
+ file containing a study
+
+
+
+
+ catalog's version
+
+
+
+
+ code's name
+
+
+
+
+ debug level
+
+
+
+
+ schema
+
+
+
+
+ incorrect number of arguments
+
+
+
+
+ specified localization for the application.
+
+
+
+
+ unable to transfer files to : %s
+
+
+
+
+ error
+
+
+
+
+ fatale error
+
+
+
+
+ unable to construct command
+
+
+
+
+ comment object has no value
+
+
+
+
+ start function %s
+
+
+
+
+ end function %s
+
+
+
+
+ Concept's name %s is already existing
+
+
+
+
+ incorrect length
+
+
+
+
+ min must be an integer :
+
+
+
+
+ max must be an integer :
+
+
+
+
+ min and max are invalid:
+
+
+
+
+ 'fr' must be a string
+
+
+
+
+ values for statut arguments are : 'o','f','c' or 'd'
+
+
+
+
+ docu must be a string
+
+
+
+
+ end
+
+
+
+
+ None is not a valid value for Eval parameter %s
+
+
+
+
+ No name for parameter EVAL
+
+
+
+
+ parameter's name can not exceed 8 characters
+
+
+
+
+ Concept's name %s is already existing!
+
+
+
+
+ ERROR
+
+
+
+
+ format : %s not implemented
+
+
+
+
+ object type not expected : %s
+
+
+
+
+ mesh group %s is associated with at least one material and at least a source.
+
+
+
+
+ mesh group %s is associated with no material or no source.
+
+
+
+
+
+
+
+
+
+ all data are not available
+
+
+
+
+ pattern file %s does not exist.
+
+
+
+
+ not implemented
+
+
+
+
+ Unknown or unsupported entity : %s
+
+
+
+
+ Unknown or unsupported entity : %s. ignored
+
+
+
+
+ Tuple are not allowed for format ini : %s
+
+
+
+
+ nom
+ Unsupported type of value for .ini format %(nom)s
+%(exception)s
+
+
+
+
+ problem when creating XML
+
+
+
+
+ problem when creating STD
+
+
+
+
+ unkown ou unsupported entity : %s. ignored
+
+
+
+
+ Tag %s not defined. Ask developpeurs team.
+
+
+
+
+ mandatory keyword : %s.
+
+
+
+
+ inst_name
+ concept %(inst_name)s of type %(class_name)s
+
+
+
+
+ concept's name must be a python identifier
+
+
+
+
+ allready existing concept
+
+
+
+
+ operator 'reentrant' but concept does not exist
+
+
+
+
+ Operator 're-entrant' and concept exists
+
+
+
+
+ already existing concept of not supported type
+
+
+
+
+ Name is refused : already existing concept
+
+
+
+
+ Concept named
+
+
+
+
+ unable to name %s
+
+
+
+
+ formula expects a list of arguments : no left parenthesis
+
+
+
+
+ formula expects a list of arguments : no right parenthes
+
+
+
+
+ no name given
+
+
+
+
+ name too long (8 characters max)
+
+
+
+
+ name does not begin with a figure
+
+
+
+
+ no type is specified for the return value
+
+
+
+
+ impossible to return a value of type : %s
+
+
+
+
+ unable to add the keyword (commande)
+
+
+
+
+ unable to add the keyword (commande)
+
+
+
+
+ not implemented
+
+
+
+
+ already defined concept
+
+
+
+
+ already defined concept :
+
+
+
+
+ unable to find file corresponding to unit
+
+
+
+
+ is not an existing file
+
+
+
+
+ invalid file %s
+
+
+
+
+ unable to create the jdc corresponding to the file
+
+
+
+
+ Error when reading the 'include' file
+
+
+
+
+ the file is ignored
+%s
+
+
+
+
+ the file is ignored : associated file is not defined
+
+
+
+
+ file is not defined
+
+
+
+
+ file must declare a single output variable
+
+
+
+
+ invalid file
+
+
+
+
+ the file will be ignored :
+%s
+
+
+
+
+ include file is not defined
+
+
+
+
+ file will be ignored
+
+
+
+
+
+ Error when creating secondary (poursuite) file
+
+
+
+
+ v_1
+ Object %(v_1)s can not be a child for %(v_2)s
+
+
+
+
+ Object %s can not be repeated
+
+
+
+
+ Error - mclist does not exist : %s
+
+
+
+
+ Error - keyword "mot-clef facteur" nammed : %s
+
+
+
+
+ unexpected task
+
+
+
+
+ Object %s cannot be add
+
+
+
+
+ None is not a valid value
+
+
+
+
+ concept already exists
+
+
+
+
+ concept created
+
+
+
+
+ n_lign
+ matrix is not a %(n_lign)d x %(n_col)d matrix
+
+
+
+
+ uncomment
+
+
+
+
+ uncomment the command
+
+
+
+
+ mandatory keyword cannot be deleted
+
+
+
+
+ Keyword %s deleted
+
+
+
+
+ internal problem : unable to delete keyword
+
+
+
+
+ comment is deleted
+
+
+
+
+ command %s is deleted
+
+
+
+
+ internal problem : unable to delete object
+
+
+
+
+ unable to convert .comm file in order to open it with Eficas
+
+
+
+
+ include file is empty
+
+
+
+
+ include file must be correct
+
+
+
+
+ unable to delete this keyword
+
+
+
+
+ View3D
+
+
+
+
+ diplay SE in Geom
+
+
+
+
+ graphic
+
+
+
+
+ display distribution
+
+
+
+
+ unable to delete a mandatory keyword
+
+
+
+
+ Keyword %s is deleted
+
+
+
+
+ defines a parameter
+
+
+
+
+ import configuration file
+
+
+
+
+ Error when reading configuration file
+
+
+
+
+ fatal error when loading %s
+
+
+
+
+ Fatal error when loading file
+
+
+
+
+ file updated
+
+
+
+
+ Warning ! this file was modified outside Eficas
+
+
+
+
+ unsupported file type
+
+
+
+
+ Eficas is not able to open this file's type : %s
+
+
+
+
+ Eficas is not able to open this file's type
+
+
+
+
+ unable to copy
+
+
+
+
+ you have to select an object to copy
+
+
+
+
+ You have to select a single object : copy will be done after the selected node
+
+
+
+
+ No object was cut or copied
+
+
+
+
+ rejected copy
+
+
+
+
+ Eficas cannot copy this object
+
+
+
+
+ Copy rejected : bad object type
+
+
+
+
+ move rejected
+
+
+
+
+ move rejected. no move between two files : only copy is available
+
+
+
+
+ unable to copy here
+
+
+
+
+ select a command; a parameter, a comment or a macro
+
+
+
+
+ Choice of XML file
+
+
+
+
+ Open file
+
+
+
+
+ Error when generating
+
+
+
+
+ Eficas is unable to convert JDC
+
+
+
+
+ not supported format %s
+
+
+
+
+ Unable to execute
+
+
+
+
+ JDC has to be valid before run
+
+
+
+
+ JDC must contains a single componant
+
+
+
+
+ save
+
+
+
+
+ save file
+
+
+
+
+ file <b>%s</b> already exists.
+
+
+
+
+ &Replace
+
+
+
+
+ Choose file corresponding to unit
+
+
+
+
+ Choose poursuite file
+
+
+
+
+ file %s contains a POURSUITE command
+
+
+
+
+ file translation
+
+
+
+
+ JDC files(*.comm);; All FIles(*)
+
+
+
+
+ Translated file : %s
+
+
+
+
+ No difference between the primary file and the translated file
+
+
+
+
+ %d catalogs versions are available
+
+
+
+
+ &Ok
+
+
+
+
+ enter
+
+
+
+
+ values
+
+
+
+
+ enter between
+
+
+
+
+ and
+
+
+
+
+ selection
+
+
+
+
+ unkown type
+
+
+
+
+ view file
+
+
+
+
+ Unable to display file
+
+
+
+
+ save File
+
+
+
+
+ file selected
+
+
+
+
+ valid expression
+
+
+
+
+ unvalid expression
+
+
+
+
+ expression is not as a+bj
+
+
+
+
+ Please, enter a single value
+
+
+
+
+ choose complex's type
+
+
+
+
+ save file
+
+
+
+
+ v_1
+ file <b>%(v_1)s</b> was not saved. Raison : %(v_2)s
+
+
+
+
+ &Recently Opened
+
+
+
+
+ code's help
+
+
+
+
+ translation
+
+
+
+
+ Options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ version
+
+
+
+
+ for
+
+
+
+
+ no help avalaible
+
+
+
+
+ Options
+
+
+
+
+ Choose a code
+
+
+
+
+ no options avalaible for configuration
+
+
+
+
+ &Delete
+
+
+
+
+ enter a complex
+
+
+
+
+ Loading catalog
+
+
+
+
+ No catalog for this code
+
+
+
+
+ No catalog
+
+
+
+
+ with catalog
+
+
+
+
+ unable to load catalog
+
+
+
+
+ Choose a version for
+
+
+
+
+ choose a version
+
+
+
+
+ parameter
+
+
+
+
+ insert a parameter
+
+
+
+
+ invalid item
+
+
+
+
+ item must be valid
+
+
+
+
+ after
+
+
+
+
+ insert a comment after the command
+
+
+
+
+ before
+
+
+
+
+ insert a comment before the command
+
+
+
+
+ insert a parameter after the command
+
+
+
+
+ insert a parameter before the commande
+
+
+
+
+ delete
+
+
+
+
+ delete keyword
+
+
+
+
+ documentation
+
+
+
+
+ command's documentation
+
+
+
+
+ empty documentation
+
+
+
+
+ no documentation is available for this node
+
+
+
+
+ unable to find command
+
+
+
+
+ PDF reader
+
+
+
+
+ unable to open
+
+
+
+
+ Comment
+
+
+
+
+ this node
+
+
+
+
+ comment this node
+
+
+
+
+ JDC Files (*.comm);;All Files(*)
+
+
+
+
+ &Exit
+
+
+
+
+ Exit
+
+
+
+
+ file is duplicated
+
+
+
+
+ File will not be saved.
+
+
+
+
+ &Cancel
+
+
+
+
+ File
+
+
+
+
+ File <b>%s</b> is already open.
+
+
+
+
+ &Duplication
+
+
+
+
+ &Abort
+
+
+
+
+ File is modified
+
+
+
+
+ file %s was not saved.
+
+
+
+
+ &Save
+
+
+
+
+ Error when loadind :
+%s
+
+
+
+
+ File %s already exists : unable to create a directory with the same name
+
+
+
+
+ Unable to create directory : check your access rights
+
+
+
+
+ use for application translation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ is not correct - no possible "append_brother"
+
+
+
+
+ Internal error
+
+
+
+
+ unable to display law's PDF.
+
+
+
+
+ file contains MODEL command
+
+
+
+
+
+
+
+
+
+ Choice for unit %d
+
+
+
+
+ File for unit
+
+
+
+
+ formula must be written as tuple
+
+
+
+
+ Beginning
+
+
+
+
+ None is not a valid value for EVAL
+
+
+
+
+ No name given
+
+
+
+
+ None is an incorrect value for parameter %s
+
+
+
+
+ Not implemented format
+
+
+
+
+ nom
+ unsupported type of value
+
+
+
+
+ unable to verify formula
+
+
+
+
+ internal problem : unable to delete keyword
+
+
+
+
+ Eficas is not able to manage many instructions on a same line
+
+
+
+
+ text is not valid for a command or a operaor
+
+
+
+
+ v_1
+ text is not valid for command %(v_1)s %(v_2)s
+
+
+
+
+ v_1
+ text is not valid for command %(v_1)s %(v_2)s
+
+
+
+
+ v_1
+ file %(v_1)s need a .comm file in section %(v_2)s
+
+
+
+
+ v_1
+ file %(v_1)s need an include file %(v_2)s,%(v_3)s does not exist
+
+
+
+
+ v_1
+ file %(v_1)s need a .comm file in section %(v_2)s
+
+
+
+
+ v_1
+ jdc%(v_1)s, .comm %(v_2)s does not exist
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ nom
+
+
+
+
+
+ Invalid include file. text will not be included
+
+
+
+
+ unable to read file
+
+
+
+
+ include file contains errors
+
+
+
+
+ PARAMETER
+
+
+
+
+ Eficas does not know how to convert data according to the defined format
+
+
+
+
+ Before a run action, JDC must be valid
+
+
+
+
+ Save before run action
+
+
+
+
+ unable to save input file
+
+
+
+
+ file must be valid to create a .input file
+
+
+
+
+ You have to choose a component
+
+
+
+
+ file %s contains an "INCLUDE" command
+
+
+
+
+ Name the principal file
+
+
+
+
+ Med Files (*.med);;All Files(*)
+
+
+
+
+ Med File
+
+
+
+
+ Choose a Med file
+
+
+
+
+ float
+
+
+
+
+ integer
+
+
+
+
+ complex
+
+
+
+
+ Help is not available
+
+
+
+
+ export Med Mesh in a file
+
+
+
+
+ Unable to export file
+
+
+
+
+ valid object
+
+
+
+
+ value can not be changed
+
+
+
+
+ Settings
+
+
+
+
+ minimal number of values :
+
+
+
+
+ Maximal number of values :
+
+
+
+
+ expression must be as a+bj
+
+
+
+
+ Value is recorded
+
+
+
+
+ Value is not authorized
+
+
+
+
+ unnamed file
+
+
+
+
+ SOURCE
+
+
+
+
+ Bounding_Box
+
+
+
+
+
+
+
+
+
+ Direction_Vector
+
+
+
+
+ Center
+
+
+
+
+ Section
+
+
+
+
+ Amplitude
+
+
+
+
+ NbTurns
+
+
+
+
+ CONDUCTOR
+
+
+
+
+ Conductivity
+
+
+
+
+ Relative_Permeability
+
+
+
+
+ DIELECTRIC
+
+
+
+
+ CUT
+
+
+
+
+ Orientation
+
+
+
+
+ ZS
+
+
+
+
+ SETTINGS
+
+
+
+
+ Carmel_Directory
+
+
+
+
+ Formula
+
+
+
+
+ Frequency
+
+
+
+
+ Max_Nb_Iterations
+
+
+
+
+ Max_Error
+
+
+
+
+ non implemented format
+
+
+
+
+
+
+
+
+
+ data file
+
+
+
+
+ all files (*)
+
+
+
+
+ select
+
+
+
+
+ minimal number of values :
+
+
+
+
+ maximum number of values
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ save file in line format
+
+
+
+
+ value recorded
+
+
+
+
+ unvalid value
+
+
+
+
+ %s is not a valid file
+
+
+
+
+ valids type in a tuple
+
+
+
+
+ unvalid type for values
+
+
+
+
+ unvalid multiplicity. last value will be ignored
+
+
+
+
+ is not a tuple
+
+
+
+
+ values
+
+
+
+
+ incorrect value
+
+
+
+
+ is not a valid name
+
+
+
+
+ Float expected
+
+
+
+
+ float lower than
+
+
+
+
+ float superior than
+
+
+
+
+ bad run
+
+
+
+
+ unable to run method
+
+
+
+
+ bad command
+
+
+
+
+ no possible variable
+
+
+
+
+ bad matrix dimension
+
+
+
+
+ number of lines is not
+
+
+
+
+ number of columns is not
+
+
+
+
+ bad value
+
+
+
+
+ element
+
+
+
+
+ is not correct
+
+
+
+
+ unable to modify
+
+
+
+
+ parameter is not valid
+
+
+
+
+ is not a correct name
+
+
+
+
+ incorrect value :
+
+
+
+
+ incorrect value
+
+
+
+
+ valid value
+
+
+
+
+ unable to evaluate :
+
+
+
+
+ already existing concept with name : %s !
+
+
+
+
+ already exists
+
+
+
+
+ header does not match with matrix
+
+
+
+
+ keyword
+
+
+
+
+ has to be inserted before
+
+
+
+
+ unable to insert keyword
+
+
+
+
+ has to be inserted after
+
+
+
+
+ Maximal number of values
+
+
+
+
+ No specific rules for building this dataset
+
+
+
+
+ Mesh Menu
+
+
+
+
+ Read elements mesh
+
+
+
+
+ Read elements mesh
+
+
+
+
+ VERSION_EN
+
+
+
+
+ NUMBER
+
+
+
+
+ FILETYPE
+
+
+
+
+ Parametres
+
+
+
+
+ FichierMaillage
+
+
+
+
+ MeshScale
+
+
+
+
+ Fomulation
+
+
+
+
+ TimeProblem
+
+
+
+
+ EssaiSpectral
+
+
+
+
+ Basis
+
+
+
+
+ Fourier
+
+
+
+
+ Ordre
+
+
+
+
+ Frequency
+
+
+
+
+ Minimisation
+
+
+
+
+ no
+
+
+
+
+ yes
+
+
+
+
+ NbProcs
+
+
+
+
+ Polymer_en_Anglais
+
+
+
+
+ MoDEL_DATa_Anglais
+
+
+
+
+ Srabilise_Anglais
+
+
+
+
+ Non Stabilise anglais
+
+
+
+
+ local_anglais
+
+
+
+
+ essai_option_anglais
+
+
+
+
+ mater_anglais
+
+
+
+
+ cable_anglais
+
+
+
+
+ peinture_anglais
+
+
+
+
+ tuyau_anglais
+
+
+
+
+ mat_cable_anglais
+
+
+
+
+ pe_anglais
+
+
+
+
+ epdm_anglais
+
+
+
+
+ modele_anglais
+
+
+
+
+
+
+
+
+ ChoixCode
+
+
+
+ Choose code
+
+
+
+
+ Choose code :
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ChoixCommandes
+
+
+
+ DMacro
+
+
+
+
+ alphabetic sort
+
+
+
+
+ Sort by group
+
+
+
+
+ <html><head/><body><p align="center"><span style=" text-decoration: underline;">Order</span></p></body></html>
+
+
+
+
+ display commands in alphabetic order
+
+
+
+
+ display commands by thema
+
+
+
+
+ ordered by modelisation
+
+
+
+
+ <html><head/><body><p align="center">Filters Commands</p></body></html>
+
+
+
+
+ filters commands
+
+
+
+
+ display validity rules
+
+
+
+
+
+
+
+
+
+ Building Rules
+
+
+
+
+ case-sensitive
+
+
+
+
+ Clear
+
+
+
+
+ select words that CONTAINS the filter
+
+
+
+
+ re-display the list of commands
+
+
+
+ DChoixCata
+
+
+
+ Choose a version for code Aster
+
+
+
+
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">2 catalogs are available </span></p></body></html>
+
+
+
+
+ &Ok
+
+
+
+
+ &Cancel
+
+
+
+
+ validate choice
+
+
+
+ DSelVal
+
+
+
+ Values Selections
+
+
+
+
+ marker
+
+
+
+
+ space
+
+
+
+
+ comma
+
+
+
+
+ semi-colon
+
+
+
+
+ add selected value
+
+
+
+
+ imports all values
+
+
+
+ DVisu
+
+
+
+ View Include
+
+
+
+ Eficas
+
+
+
+ Main Window
+
+
+
+
+ &File
+
+
+
+
+ &Help
+
+
+
+
+ toolBar
+
+
+
+
+ &New
+
+
+
+
+ Ctrl+N
+
+
+
+
+ New Include
+
+
+
+
+ &Open
+
+
+
+
+ Ctrl+O
+
+
+
+
+ Save
+
+
+
+
+ Save as
+
+
+
+
+ Close
+
+
+
+
+
+
+
+
+
+ Close all
+
+
+
+
+ Cut
+
+
+
+
+ Ctrl+X
+
+
+
+
+ Copy
+
+
+
+
+ Ctrl+C
+
+
+
+
+ Paste
+
+
+
+
+ Ctrl+V
+
+
+
+
+ Exit
+
+
+
+
+ Ctrl+Q
+
+
+
+
+ Validation Report
+
+
+
+
+ Source File
+
+
+
+
+ Result File
+
+
+
+
+ Eficas Parameters
+
+
+
+
+ documentation reader
+
+
+
+
+ Eficas
+
+
+
+
+ Version
+
+
+
+
+ Delete
+
+
+
+
+ Find
+
+
+
+
+ Find in Data Tree
+
+
+
+
+ Ctrl+F
+
+
+
+
+ Expand/Collapse
+
+
+
+
+ Run
+
+
+
+
+ Run
+
+
+
+
+ Patterns
+
+
+
+
+
+
+
+
+
+ &Edit
+
+
+
+
+ &Data
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Find Keyword
+
+
+
+
+ Find Keyword in Catalog
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Comment
+
+
+
+
+
+
+
+
+
+ Parameters
+
+
+
+
+ Managing parameters
+
+
+
+
+
+
+
+
+
+ Eficas Settings
+
+
+
+
+ Save run
+
+
+
+
+ run
+
+
+
+
+
+
+
+
+
+ Rules for dataset
+
+
+
+ JDCEditor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ &Cancel
+
+
+
+ Tuple2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tuple3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Widget4a6RadioButton
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetBloc
+
+
+
+
+
+
+
+ WidgetCB
+
+
+
+ display validation report for the keyword
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetCommande
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ <html><head/><body><p><span style=" color:#0000ff;">command </span></p></body></html
+
+
+
+
+ Object Name. Only valid objects can be named
+
+
+
+
+ Run associated script
+
+
+
+
+ open a browser to navigate to contextual help
+
+
+
+
+ display validity rules
+
+
+
+
+ Delete the command
+
+
+
+
+ display allowed commands
+
+
+
+
+ &Commands
+
+
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+
+
+ display previous command
+
+
+
+
+ display next command
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetCommentaire
+
+
+
+ <html><head/><body><p><span style=" color:#0000ff;">Comment</span></p></body></html>
+
+
+
+
+ display allowed commands
+
+
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+
+
+ Delete the comment
+
+
+
+
+ &Commands
+
+
+
+
+ display previous command
+
+
+
+
+ display next command
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetDate
+
+
+
+ Display validity report for keyword
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetFact
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetFactPlie
+
+
+
+ TextLabel
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetHeure
+
+
+
+ Display validity report for keyword
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetInformative
+
+
+
+
+
+
+
+ WidgetOptionnel
+
+
+
+ <html><head/><body><p><span style=" color:#0000ff;">command </span></p></body></html
+
+
+
+
+
+
+
+
+ WidgetParam
+
+
+
+ <html><head/><body><p><span style=" color:#000000;">Parameter</span></p></body></html>
+
+
+
+
+ Delete the comment
+
+
+
+
+ Display allowed commands
+
+
+
+
+ &Commands
+
+
+
+
+ Shift+A, Alt+A, Alt+A, Alt+A
+
+
+
+
+ Display previous command
+
+
+
+
+ Display next command
+
+
+
+
+ <html><head/><body><p>Value: </p></body></html<
+
+
+
+
+ <html><head/><body><p>Name: </p></body></html>
+
+
+
+
+ Valid the value
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetPlusieursBase
+
+
+
+ Display validity report for keyword
+
+
+
+
+ up
+
+
+
+
+ down
+
+
+
+
+ deletes a line
+
+
+
+
+ add a line
+
+
+
+
+ display all the value
+
+
+
+
+ from salome
+
+
+
+
+ Show in salome
+
+
+
+
+ Open a file for selection
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ manage list
+
+
+
+
+ TextLabel
+
+
+
+ WidgetPlusieursInto
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ manage list
+
+
+
+ WidgetPlusieursIntoOrdonne
+
+
+
+ display validity report for the keyword
+
+
+
+
+ TextLabel
+
+
+
+
+ Up
+
+
+
+
+ Down
+
+
+
+
+ Delete a line
+
+
+
+
+ add a line
+
+
+
+
+ show all values
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ manage list
+
+
+
+ WidgetPlusieursPlie
+
+
+
+
+
+
+
+
+ Display validity report for the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ manage list
+
+
+
+
+ Delete the keyword
+
+
+
+ WidgetPlusieursTuple
+
+
+
+
+
+
+
+
+ Display validity report for the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Up
+
+
+
+
+ Down
+
+
+
+
+ delete a line
+
+
+
+
+ add a line
+
+
+
+
+ show all values
+
+
+
+
+ import data from a file
+
+
+
+
+ Delete the keyword
+
+
+
+
+ TextLabel
+
+
+
+ WidgetRadioButton
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSDCOInto
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ <html><head/><body><p>Objects with the recquired type</p><p><br/></p></body></html>
+
+
+
+
+ or name the object
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSimpBase
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSimpBool
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSimpComplexe
+
+
+
+ Complex : a+bj
+
+
+
+
+ Real/Imaginary
+
+
+
+
+ Module/Phase
+
+
+
+
+ Display validity report for the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSimpFichier
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ open file explorer
+
+
+
+
+ Open the file
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSimpTxt
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetTuple2
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetTuple3
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetUniqueSDCO
+
+
+
+ Display validity report for the keyword
+
+
+
+
+ expect a CO Object
+
+
+
+
+ Delete the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetVide
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ object must be created
+
+
+
+ baseWidget
+
+
+
+ DMacro
+
+
+
+ dView
+
+
+
+ Dialog
+
+
+
+
+ Close
+
+
+
+
+ Save
+
+
+
+ desRecherche
+
+
+
+ Find in JDC
+
+
+
+
+ Next
+
+
+
+
+
+
+
+
+ desWidgetCreeParam
+
+
+
+ Parameters
+
+
+
+
+ Name
+
+
+
+
+ Value
+
+
+
+
+ <html><head/><body><p><span style=" text-decoration: underline;">New Parameter</span></p></body></html>
+
+
+
+ desWidgetMatrice
+
+
+
+ Dialog
+
+
+
+
+ Display validity report for the keyword
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ self.appliEficas
+
+
+
+
+
+
+
+
+
+
+
+
+ viewRegles
+
+
+
+ Dialog
+
+
+
diff --git a/UiQT5/eficas_fr.qm b/UiQT5/eficas_fr.qm
new file mode 100644
index 00000000..9bfe4253
Binary files /dev/null and b/UiQT5/eficas_fr.qm differ
diff --git a/UiQT5/eficas_fr.ts b/UiQT5/eficas_fr.ts
new file mode 100644
index 00000000..22d9c577
--- /dev/null
+++ b/UiQT5/eficas_fr.ts
@@ -0,0 +1,4745 @@
+
+
+
+ @default
+
+
+ Valeurs_Des_Traceurs_Dans_La_Pluie
+
+
+
+ Profondeur_Limite_Pour_Procedure_De_Ressuyage
+
+
+
+ Titre
+
+
+
+ Type_De_Projection_Spatiale
+
+
+
+ Modele_De_Diffusion_Stochastique
+
+
+
+ Fichier_Des_Flotteurs
+
+
+
+ Coordonnees_De_L'origine
+
+
+
+ Epaisseur_Des_Algues
+
+
+
+ Vitesses_Des_Sources_Selon_X
+
+
+
+ Vitesses_Des_Sources_Selon_Y
+
+
+
+ Schema_En_Volumes_Finis
+
+
+
+ Masse_Volumique_Des_Algues
+
+
+
+ Fichier_De_Geometrie
+
+
+
+ Modele_De_Turbulence
+
+
+
+ Modele_De_Nappes_D'hydrocarbures
+
+
+
+ Definition_De_Zones
+
+
+
+ Pluie_Ou_Evaporation
+
+
+
+ Fichier_Des_Sources
+
+
+
+ Coefficient_De_Frottement
+
+
+
+ Vent
+
+
+
+ Option_Pour_Les_Conditions_Aux_Limites_De_Maree
+
+
+
+ Coefficient_De_Calage_Des_Vitesses_De_Courant
+
+
+
+ Remise_A_Zero_Du_Temps
+
+
+
+ Maximum_D'iterations_Pour_La_Diffusion_Des_Traceurs
+
+
+
+ Fichier_De_Resultats_Binaire
+
+
+
+ Nombre_De_Flotteurs
+
+
+
+ Pression_Atmospherique
+
+
+
+ Profondeur_Moyenne_Pour_La_Linearisation
+
+
+
+ Controle_Des_Limites
+
+
+
+ Compatibilite_Du_Gradient_De_Surface_Libre
+
+
+
+ Valeurs_Imposees_Des_Traceurs
+
+
+
+ Saint-venant_Ef
+
+
+
+ Coefficient_De_Diffusion_Des_Vitesses
+
+
+
+ Pas_De_Temps
+
+
+
+ Validation
+
+
+
+ Coefficient_De_Rugosite_Des_Bords
+
+
+
+ Effets_De_Densite
+
+
+
+ Coefficient_D'implicitation_Des_Traceurs
+
+
+
+ Fichier_De_Resultats_Formate
+
+
+
+ Debugger
+
+
+
+ Fichier_Des_Frontieres_Liquides
+
+
+
+ Fichier_De_Sortie_Des_Sections_De_Controle
+
+
+
+ Nombre_De_Tableaux_Prives
+
+
+
+ Coefficient_D'influence_Du_Vent
+
+
+
+ Hauteur_Dans_Les_Termes_De_Frottement
+
+
+
+ Coefficient_De_Calage_Du_Niveau_De_Mer
+
+
+
+ Variables_A_Imprimer
+
+
+
+ Preconditionnement
+
+
+
+ Fonction_Cout
+
+
+
+ Type_Des_Sources
+
+
+
+ Bancs_Decouvrants
+
+
+
+ Base_Ascii_De_Donnees_De_Maree
+
+
+
+ Date_De_L'origine_Des_Temps
+
+
+
+ Temperature_Moyenne
+
+
+
+ Cote_Initiale
+
+
+
+ Fichier_De_Donnees_Des_Buses
+
+
+
+ Fichier_Des_Conditions_Aux_Limites
+
+
+
+ Breche
+
+
+
+ Traitement_Du_Systeme_Lineaire
+
+
+
+ Cotes_Imposees
+
+
+
+ Liste_De_Points
+
+
+
+ Periode_Pour_Les_Sorties_Listing
+
+
+
+ Ordre_Du_Tir_Initial_Pour_H
+
+
+
+ Format_Du_Fichier_De_Geometrie
+
+
+
+ Coefficient_1_De_La_Loi_De_Degradation_Des_Traceurs
+
+
+
+ Nombre_De_Derives_Lagrangiennes
+
+
+
+ Fichier_De_Donnees_Des_Seuils
+
+
+
+ Pluie_Ou_Evaporation_En_Mm_Par_Jour
+
+
+
+ Interpolation_De_Composantes_Mineures
+
+
+
+ Nombre_Maximum_De_Domaines_De_Frottement
+
+
+
+ Elements_Masques_Par_L'utilisateur
+
+
+
+ Sections_De_Controle
+
+
+
+ Nombre_De_Pas_De_Temps
+
+
+
+ Precision_Du_Solveur
+
+
+
+ Courants_De_Houle
+
+
+
+ Nombre_De_Siphons
+
+
+
+ Equations
+
+
+
+ Maximum_D'iterations_Pour_L'identification
+
+
+
+ Coefficient_De_Diffusion_Des_Traceurs
+
+
+
+ Option_Pour_La_Diffusion_Des_Vitesses
+
+
+
+ Coefficient_De_Calage_Du_Marnage
+
+
+
+ Fichier_De_Donnees_Binaire_1
+
+
+
+ Fichier_De_Donnees_Binaire_2
+
+
+
+ Solveur
+
+
+
+ Implicitation_Pour_La_Vitesse
+
+
+
+ Longitude_Du_Point_Origine
+
+
+
+ Heure_De_L'origine_Des_Temps
+
+
+
+ Loi_De_Frottement_Sur_Les_Parois_Laterales
+
+
+
+ Propagation
+
+
+
+ Solveur_Pour_La_Diffusion_Des_Traceurs
+
+
+
+ Discretisations_En_Espace
+
+
+
+ Option_Du_Solveur
+
+
+
+ Convection_De_H
+
+
+
+ Sortie_Des_Conditions_Initiales
+
+
+
+ Enregistrement_Pour_Suite_De_Calcul
+
+
+
+ Precision_Pour_La_Diffusion_Des_Traceurs
+
+
+
+ Ordre_Du_Tir_Initial_Pour_U
+
+
+
+ Convection_De_K_Et_Epsilon
+
+
+
+ Methode_D'identification
+
+
+
+ Noms_Des_Points
+
+
+
+ Numero_De_Fuseau_Ou_Projection_Dans_Le_Systeme_Geographique
+
+
+
+ Stockage_Des_Matrices
+
+
+
+ Type_Des_Algues
+
+
+
+ Masse_Volumique_De_L'eau
+
+
+
+ Coefficient_D'integration_En_Temps_De_Newmark
+
+
+
+ Fichier_De_Donnees_Pour_Le_Frottement
+
+
+
+ Implicitation_Pour_La_Diffusion_Des_Vitesses
+
+
+
+ Valeurs_Limites
+
+
+
+ Convection
+
+
+
+ Systeme_Geographique
+
+
+
+ Fichier_Des_Resultats
+
+
+
+ Modele_De_Transport_Des_Algues
+
+
+
+ Traitement_Des_Hauteurs_Negatives
+
+
+
+ Ordonnees_Des_Sources
+
+
+
+ Coefficient_De_Coriolis
+
+
+
+ Debits_Des_Sources
+
+
+
+ Convection_De_U_Et_V
+
+
+
+ Latitude_Du_Point_Origine
+
+
+
+ Base_Binaire_1_De_Donnees_De_Maree
+
+
+
+ Coriolis
+
+
+
+ Nombre_De_Courant_Souhaite
+
+
+
+ Variables_Pour_Les_Sorties_Graphiques
+
+
+
+ Bornes_En_Temps_Pour_L'analyse_De_Fourier
+
+
+
+ Periode_Pour_Les_Sorties_Graphiques
+
+
+
+ Force_Generatrice_De_La_Maree
+
+
+
+ Preconditionnement_Pour_La_Diffusion_Des_Traceurs
+
+
+
+ Nombre_De_Buses
+
+
+
+ Structures_Verticales
+
+
+
+ Arret_Si_Un_Etat_Permanent_Est_Atteint
+
+
+
+ Nombre_De_Seuils
+
+
+
+ Sortie_Listing
+
+
+
+ Fichier_Du_Calcul_Precedent
+
+
+
+ Fichier_Fortran
+
+
+
+ Fichier_Des_Sections_De_Controle
+
+
+
+ Base_Binaire_2_De_Donnees_De_Maree
+
+
+
+ Format_Du_Fichier_Des_Resultats
+
+
+
+ Precision_Sur_K
+
+
+
+ Fichier_Du_Modele_De_Maree
+
+
+
+ Periodes_D'analyse_De_Fourier
+
+
+
+ Clipping_De_H
+
+
+
+ Precisions_Pour_L'identification
+
+
+
+ Format_Du_Fichier_Du_Calcul_Precedent
+
+
+
+ Debits_Imposes
+
+
+
+ Fichier_Des_Fonds
+
+
+
+ Implicitation_Pour_La_Hauteur
+
+
+
+ Format_Du_Fichier_De_Reference
+
+
+
+ Diffusion_Des_Traceurs
+
+
+
+ Fichier_De_Donnees_Formate_1
+
+
+
+ Fichier_De_Donnees_Formate_2
+
+
+
+ Suite_De_Calcul
+
+
+
+ Fichier_De_Donnees_Des_Breches
+
+
+
+ Diffusion_Des_Vitesses
+
+
+
+ Forme_De_La_Convection
+
+
+
+ Option_Du_Solveur_Pour_La_Diffusion_Des_Traceurs
+
+
+
+ Convection_Des_Traceurs
+
+
+
+ Periode_Pour_Les_Sorties_De_Flotteurs
+
+
+
+ Option_De_Traitement_Des_Bancs_Decouvrants
+
+
+
+ Parametres_Physiques_Du_Tsunami
+
+
+
+ Maximum_D'iterations_Pour_K_Et_Epsilon
+
+
+
+ Base_De_Donnees_De_Maree
+
+
+
+ Maximum_D'iterations_Pour_Le_Solveur
+
+
+
+ Nombre_De_Traceurs
+
+
+
+ Profondeur_Limite_Pour_Le_Vent
+
+
+
+ Acceleration_De_La_Pesanteur
+
+
+
+ Option_Pour_Les_Caracteristiques
+
+
+
+ Espacement_Des_Elements_De_Frottement
+
+
+
+ Processeurs_Paralleles
+
+
+
+ Fichier_Des_Constantes_Harmoniques
+
+
+
+ Coordonnees_Spheriques
+
+
+
+ Estimation_De_Parametre
+
+
+
+ Propagation_Linearisee
+
+
+
+ Precision_Sur_Epsilon
+
+
+
+ Diametre_Des_Elements_De_Frottement
+
+
+
+ Numero_Du_Premier_Pas_De_Temps_Pour_Les_Sorties_Graphiques
+
+
+
+ Seuil_Pour_Les_Profondeurs_Negatives
+
+
+
+ Vitesse_Du_Vent_Suivant_X
+
+
+
+ Vitesse_Du_Vent_Suivant_Y
+
+
+
+ Informations_Sur_Le_Solveur
+
+
+
+ Conditions_Initiales
+
+
+
+ Fichier_De_Donnees_Des_Siphons
+
+
+
+ Maximum_D'iterations_Pour_Les_Schemas_De_Convection
+
+
+
+ Regime_De_Turbulence_Pour_Les_Parois
+
+
+
+ Correction_De_Continuite
+
+
+
+ Loi_De_Frottement_Sur_Le_Fond
+
+
+
+ Option_Pour_La_Generation_De_Tsunami
+
+
+
+ Type_Des_Seuils
+
+
+
+ Numero_De_L'enregistrement_Dans_Le_Fichier_De_Houle
+
+
+
+ Abscisses_Des_Sources
+
+
+
+ Valeurs_Des_Traceurs_Des_Sources
+
+
+
+ Traitement_Des_Flux_Aux_Frontieres
+
+
+
+ Impression_Du_Cumul_Des_Flux
+
+
+
+ Calcul_Compatible_Des_Flux
+
+
+
+ Lissages_Du_Fond
+
+
+
+ Hauteur_Initiale
+
+
+
+ Valeur_Minimum_De_H
+
+
+
+ Option_Pour_La_Diffusion_Des_Traceurs
+
+
+
+ Duree_Du_Calcul
+
+
+
+ Criteres_D'arret
+
+
+
+ Vitesses_Imposees
+
+
+
+ Valeurs_Initiales_Des_Traceurs
+
+
+
+ Fichier_De_Reference
+
+
+
+
+ unable to read file
+
+
+
+
+ unable to read file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ v_1
+
+
+
+
+
+ v_1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ nom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ nom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ inst_name
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ v_1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ n_lign
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ v_1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ &Ok
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ v_1
+
+
+
+
+
+ v_1
+
+
+
+
+
+ v_1
+
+
+
+
+
+ v_1
+
+
+
+
+
+ v_1
+
+
+
+
+
+ v_1
+
+
+
+
+
+ v_1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ nom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ChoixCode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ChoixCommandes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DChoixCata
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DSelVal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DVisu
+
+
+
+
+
+
+
+ Eficas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ME VOILA
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ JDCEditor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ &Abandonner
+
+
+
+ Tuple2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tuple3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Widget4a6RadioButton
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetBloc
+
+
+
+
+
+
+
+ WidgetCB
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetCommande
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetCommentaire
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetDate
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetFact
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetFactPlie
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetHeure
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetInformative
+
+
+
+
+
+
+
+ WidgetOptionnel
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetParam
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetPlusieursBase
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetPlusieursInto
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetPlusieursIntoOrdonne
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetPlusieursPlie
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetPlusieursTuple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetRadioButton
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSDCOInto
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSimpBase
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSimpBool
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSimpComplexe
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSimpFichier
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetSimpTxt
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetTuple2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetTuple3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetUniqueSDCO
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WidgetVide
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ baseWidget
+
+
+
+
+
+
+
+ dView
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ desRecherche
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ desWidgetCreeParam
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ desWidgetMatrice
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ self.appliEficas
+
+
+
+
+
+
+
+
+
+
+
+
+ viewRegles
+
+
+
+
+
+
+
diff --git a/UiQT5/makefile b/UiQT5/makefile
new file mode 100644
index 00000000..c7a1146a
--- /dev/null
+++ b/UiQT5/makefile
@@ -0,0 +1,33 @@
+PYUIC = pyuic5
+QTRELEASE = lrelease
+.PHONY : all
+.SUFFIXES : .ui .py .ts .qm
+
+
+PY_FILES = myMain.py desBaseWidget.py desChoixCata.py desChoixCode.py desChoixCommandes.py desRecherche.py \
+ desSelectVal.py desViewTexte.py desViewRegles.py desVisu.py desWidgetCreeParam.py desWidgetCommande.py \
+ desWidgetOptionnel.py desWidgetOptionnelMC.py Tuple2.py Tuple3.py \
+ desWidgetBloc.py desWidgetCB.py desWidgetCommentaire.py desWidgetDate.py \
+ desWidgetFact.py desWidgetFactPlie.py desWidgetHeure.py desWidgetInformation.py \
+ desWidgetInactif.py \
+ desWidgetMatrice.py desWidgetParam.py desWidgetPlusieursBase.py desWidgetPlusieursInto.py \
+ desWidgetPlusieursIntoOrdonne.py desWidgetPlusieursTuple.py desWidgetRadioButton.py \
+ desWidget4a6RadioButton.py desWidgetSimpBase.py desWidgetSDCOInto.py desWidgetSimpBool.py \
+ desWidgetSimpSalome.py \
+ desWidgetSimpComplexe.py desWidgetSimpFichier.py desWidgetSimpTxt.py desWidgetTuple2.py \
+ desWidgetTuple3.py desWidgetVide.py desWidgetUniqueSDCO.py desWidgetPlusieursPlie.py
+
+
+
+QM_FILES=eficas_en.qm
+
+%.py:%.ui
+ ${PYUIC} -x -o $@ $<
+
+%.qm:%.ts
+ ${QTRELEASE} -qm $@ $<
+
+all : $(PY_FILES) $(QM_FILES)
+clean :
+ -rm -rf $(PY_FILES) *.pyc
+
diff --git a/UiQT5/myMain.py b/UiQT5/myMain.py
new file mode 100644
index 00000000..3a4fffa1
--- /dev/null
+++ b/UiQT5/myMain.py
@@ -0,0 +1,294 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'myMain.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_Eficas(object):
+ def setupUi(self, Eficas):
+ Eficas.setObjectName("Eficas")
+ Eficas.resize(1676, 811)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(Eficas.sizePolicy().hasHeightForWidth())
+ Eficas.setSizePolicy(sizePolicy)
+ Eficas.setStyleSheet("/* QMenuBar {\n"
+" background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,\n"
+" stop:0 rgb(226,255,253), stop:1 rgb(191,237,255));\n"
+" }*/\n"
+"\n"
+"QMenuBar {\n"
+" background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,\n"
+" stop:0 rgb(164,165,178), stop:1 rgb(55,66,126));\n"
+" }\n"
+" QMenuBar::item {\n"
+" spacing: 3px; /* spacing between menu bar items */\n"
+" color: white;\n"
+" padding: 1px 4px;\n"
+" background: transparent;\n"
+" border-radius: 4px;\n"
+" }\n"
+"\n"
+" QMenuBar::item:selected { /* when selected using mouse or keyboard */\n"
+" background: #a8a8a8;\n"
+" }\n"
+"\n"
+" QMenuBar::item:pressed {\n"
+" background: #888888;\n"
+" }\n"
+"\n"
+"\n"
+"\n"
+"\n"
+"\n"
+"\n"
+"\n"
+"\n"
+"")
+ self.centralwidget = QtWidgets.QWidget(Eficas)
+ self.centralwidget.setStyleSheet("QComboBox{combobox-popup:0;}")
+ self.centralwidget.setObjectName("centralwidget")
+ self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
+ self.verticalLayout.setContentsMargins(0, 0, 0, 0)
+ self.verticalLayout.setSpacing(0)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.frameEntete = QtWidgets.QFrame(self.centralwidget)
+ self.frameEntete.setMinimumSize(QtCore.QSize(0, 61))
+ self.frameEntete.setMaximumSize(QtCore.QSize(16777215, 61))
+ self.frameEntete.setStyleSheet("/*background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,\n"
+" stop:0 rgb(218,229,248), stop:1 rgb(9,86,109));*/\n"
+"/*background-color:rgb(208,225,238)*/")
+ self.frameEntete.setFrameShape(QtWidgets.QFrame.NoFrame)
+ self.frameEntete.setFrameShadow(QtWidgets.QFrame.Raised)
+ self.frameEntete.setLineWidth(2)
+ self.frameEntete.setObjectName("frameEntete")
+ self.verticalLayout.addWidget(self.frameEntete)
+ self.myQtab = QtWidgets.QTabWidget(self.centralwidget)
+ self.myQtab.setStyleSheet("background-color:rgb(224,223,222)")
+ self.myQtab.setTabPosition(QtWidgets.QTabWidget.North)
+ self.myQtab.setTabsClosable(True)
+ self.myQtab.setObjectName("myQtab")
+ self.tab_3 = QtWidgets.QWidget()
+ self.tab_3.setObjectName("tab_3")
+ self.myQtab.addTab(self.tab_3, "")
+ self.verticalLayout.addWidget(self.myQtab)
+ Eficas.setCentralWidget(self.centralwidget)
+ self.menubar = QtWidgets.QMenuBar(Eficas)
+ self.menubar.setGeometry(QtCore.QRect(0, 0, 1676, 30))
+ self.menubar.setObjectName("menubar")
+ self.menuFichier = QtWidgets.QMenu(self.menubar)
+ self.menuFichier.setObjectName("menuFichier")
+ self.menuEdition = QtWidgets.QMenu(self.menubar)
+ self.menuEdition.setObjectName("menuEdition")
+ self.menuJdC = QtWidgets.QMenu(self.menubar)
+ self.menuJdC.setObjectName("menuJdC")
+ self.menuAide = QtWidgets.QMenu(self.menubar)
+ self.menuAide.setObjectName("menuAide")
+ Eficas.setMenuBar(self.menubar)
+ self.statusbar = QtWidgets.QStatusBar(Eficas)
+ self.statusbar.setObjectName("statusbar")
+ Eficas.setStatusBar(self.statusbar)
+ self.toolBar = QtWidgets.QToolBar(Eficas)
+ self.toolBar.setIconSize(QtCore.QSize(36, 36))
+ self.toolBar.setObjectName("toolBar")
+ Eficas.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
+ self.action_Nouveau = QtWidgets.QAction(Eficas)
+ icon = QtGui.QIcon.fromTheme("document-new")
+ self.action_Nouveau.setIcon(icon)
+ self.action_Nouveau.setObjectName("action_Nouveau")
+ self.actionNouvel_Include = QtWidgets.QAction(Eficas)
+ self.actionNouvel_Include.setObjectName("actionNouvel_Include")
+ self.actionARemplacer = QtWidgets.QAction(Eficas)
+ self.actionARemplacer.setObjectName("actionARemplacer")
+ self.actionOuvrir = QtWidgets.QAction(Eficas)
+ icon = QtGui.QIcon.fromTheme("document-open")
+ self.actionOuvrir.setIcon(icon)
+ self.actionOuvrir.setObjectName("actionOuvrir")
+ self.actionEnregistrer = QtWidgets.QAction(Eficas)
+ icon = QtGui.QIcon.fromTheme("document-save")
+ self.actionEnregistrer.setIcon(icon)
+ self.actionEnregistrer.setObjectName("actionEnregistrer")
+ self.actionParametres_Eficas = QtWidgets.QAction(Eficas)
+ self.actionParametres_Eficas.setObjectName("actionParametres_Eficas")
+ self.actionEnregistrer_sous = QtWidgets.QAction(Eficas)
+ icon = QtGui.QIcon.fromTheme("document-save-as")
+ self.actionEnregistrer_sous.setIcon(icon)
+ self.actionEnregistrer_sous.setObjectName("actionEnregistrer_sous")
+ self.actionFermer = QtWidgets.QAction(Eficas)
+ self.actionFermer.setObjectName("actionFermer")
+ self.actionFermer_tout = QtWidgets.QAction(Eficas)
+ self.actionFermer_tout.setObjectName("actionFermer_tout")
+ self.actionCouper = QtWidgets.QAction(Eficas)
+ icon = QtGui.QIcon.fromTheme("edit-cut")
+ self.actionCouper.setIcon(icon)
+ self.actionCouper.setShortcutContext(QtCore.Qt.ApplicationShortcut)
+ self.actionCouper.setObjectName("actionCouper")
+ self.actionCopier = QtWidgets.QAction(Eficas)
+ icon = QtGui.QIcon.fromTheme("edit-copy")
+ self.actionCopier.setIcon(icon)
+ self.actionCopier.setShortcutContext(QtCore.Qt.ApplicationShortcut)
+ self.actionCopier.setObjectName("actionCopier")
+ self.actionColler = QtWidgets.QAction(Eficas)
+ icon = QtGui.QIcon.fromTheme("edit-paste")
+ self.actionColler.setIcon(icon)
+ self.actionColler.setShortcutContext(QtCore.Qt.ApplicationShortcut)
+ self.actionColler.setObjectName("actionColler")
+ self.actionQuitter = QtWidgets.QAction(Eficas)
+ self.actionQuitter.setObjectName("actionQuitter")
+ self.actionRapport_de_Validation = QtWidgets.QAction(Eficas)
+ self.actionRapport_de_Validation.setAutoRepeat(False)
+ self.actionRapport_de_Validation.setObjectName("actionRapport_de_Validation")
+ self.actionFichier_Source = QtWidgets.QAction(Eficas)
+ self.actionFichier_Source.setObjectName("actionFichier_Source")
+ self.actionFichier_Resultat = QtWidgets.QAction(Eficas)
+ self.actionFichier_Resultat.setObjectName("actionFichier_Resultat")
+ self.actionLecteur_Pdf = QtWidgets.QAction(Eficas)
+ self.actionLecteur_Pdf.setObjectName("actionLecteur_Pdf")
+ self.actionEficas = QtWidgets.QAction(Eficas)
+ self.actionEficas.setObjectName("actionEficas")
+ self.actionVersion = QtWidgets.QAction(Eficas)
+ self.actionVersion.setObjectName("actionVersion")
+ self.actionSupprimer = QtWidgets.QAction(Eficas)
+ icon = QtGui.QIcon.fromTheme("edit-delete")
+ self.actionSupprimer.setIcon(icon)
+ self.actionSupprimer.setObjectName("actionSupprimer")
+ self.actionRechercherDsCatalogue = QtWidgets.QAction(Eficas)
+ self.actionRechercherDsCatalogue.setShortcutContext(QtCore.Qt.ApplicationShortcut)
+ self.actionRechercherDsCatalogue.setObjectName("actionRechercherDsCatalogue")
+ self.actionRechercher = QtWidgets.QAction(Eficas)
+ icon = QtGui.QIcon.fromTheme("edit-find")
+ self.actionRechercher.setIcon(icon)
+ self.actionRechercher.setShortcutContext(QtCore.Qt.ApplicationShortcut)
+ self.actionRechercher.setObjectName("actionRechercher")
+ self.actionDeplier_replier = QtWidgets.QAction(Eficas)
+ self.actionDeplier_replier.setObjectName("actionDeplier_replier")
+ self.actionCommentaire = QtWidgets.QAction(Eficas)
+ self.actionCommentaire.setObjectName("actionCommentaire")
+ self.actionParametres = QtWidgets.QAction(Eficas)
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../Editeur/icons/parametres.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.actionParametres.setIcon(icon)
+ self.actionParametres.setObjectName("actionParametres")
+ self.actionParametre_Eficas = QtWidgets.QAction(Eficas)
+ self.actionParametre_Eficas.setObjectName("actionParametre_Eficas")
+ self.actionRegles_du_JdC = QtWidgets.QAction(Eficas)
+ self.actionRegles_du_JdC.setObjectName("actionRegles_du_JdC")
+ self.menuFichier.addAction(self.action_Nouveau)
+ self.menuFichier.addAction(self.actionNouvel_Include)
+ self.menuFichier.addAction(self.actionOuvrir)
+ self.menuFichier.addAction(self.actionARemplacer)
+ self.menuFichier.addSeparator()
+ self.menuFichier.addAction(self.actionEnregistrer)
+ self.menuFichier.addAction(self.actionEnregistrer_sous)
+ self.menuFichier.addAction(self.actionFermer)
+ self.menuFichier.addAction(self.actionFermer_tout)
+ self.menuFichier.addSeparator()
+ self.menuFichier.addAction(self.actionQuitter)
+ self.menuEdition.addAction(self.actionCouper)
+ self.menuEdition.addAction(self.actionCopier)
+ self.menuEdition.addAction(self.actionColler)
+ self.menuEdition.addAction(self.actionSupprimer)
+ self.menuEdition.addSeparator()
+ self.menuEdition.addAction(self.actionRechercher)
+ self.menuEdition.addAction(self.actionRechercherDsCatalogue)
+ self.menuEdition.addAction(self.actionDeplier_replier)
+ self.menuJdC.addAction(self.actionRapport_de_Validation)
+ self.menuJdC.addAction(self.actionRegles_du_JdC)
+ self.menuJdC.addAction(self.actionFichier_Source)
+ self.menuJdC.addAction(self.actionFichier_Resultat)
+ self.menuJdC.addSeparator()
+ self.menuJdC.addAction(self.actionCommentaire)
+ self.menuJdC.addAction(self.actionParametres)
+ self.menuAide.addAction(self.actionEficas)
+ self.menuAide.addAction(self.actionParametres_Eficas)
+ self.menuAide.addAction(self.actionVersion)
+ self.menubar.addAction(self.menuFichier.menuAction())
+ self.menubar.addAction(self.menuEdition.menuAction())
+ self.menubar.addAction(self.menuJdC.menuAction())
+ self.menubar.addAction(self.menuAide.menuAction())
+ self.toolBar.addAction(self.action_Nouveau)
+ self.toolBar.addAction(self.actionOuvrir)
+ self.toolBar.addAction(self.actionEnregistrer)
+ self.toolBar.addSeparator()
+ self.toolBar.addAction(self.actionCopier)
+ self.toolBar.addAction(self.actionColler)
+ self.toolBar.addAction(self.actionSupprimer)
+ self.toolBar.addAction(self.actionCouper)
+ self.toolBar.addSeparator()
+ self.toolBar.addAction(self.actionParametres)
+
+ self.retranslateUi(Eficas)
+ self.myQtab.setCurrentIndex(0)
+ QtCore.QMetaObject.connectSlotsByName(Eficas)
+
+ def retranslateUi(self, Eficas):
+ _translate = QtCore.QCoreApplication.translate
+ Eficas.setWindowTitle(_translate("Eficas", "MainWindow"))
+ self.myQtab.setTabText(self.myQtab.indexOf(self.tab_3), _translate("Eficas", "Tab 1"))
+ self.menuFichier.setTitle(_translate("Eficas", "&Fichier"))
+ self.menuEdition.setTitle(_translate("Eficas", "&Edition"))
+ self.menuJdC.setTitle(_translate("Eficas", "&JeuDeDonnées"))
+ self.menuAide.setTitle(_translate("Eficas", "&Aide"))
+ self.toolBar.setWindowTitle(_translate("Eficas", "toolBar"))
+ self.action_Nouveau.setText(_translate("Eficas", "&Nouveau"))
+ self.action_Nouveau.setShortcut(_translate("Eficas", "Ctrl+N"))
+ self.actionNouvel_Include.setText(_translate("Eficas", "Nouvel Include"))
+ self.actionNouvel_Include.setShortcut(_translate("Eficas", "Shift+I"))
+ self.actionARemplacer.setText(_translate("Eficas", "&bad"))
+ self.actionOuvrir.setText(_translate("Eficas", "&Ouvrir"))
+ self.actionOuvrir.setShortcut(_translate("Eficas", "Ctrl+O"))
+ self.actionEnregistrer.setText(_translate("Eficas", "Enregistrer"))
+ self.actionEnregistrer.setShortcut(_translate("Eficas", "Ctrl+S"))
+ self.actionParametres_Eficas.setText(_translate("Eficas", "Parametres Eficas"))
+ self.actionEnregistrer_sous.setText(_translate("Eficas", "Enregistrer sous"))
+ self.actionEnregistrer_sous.setShortcut(_translate("Eficas", "Ctrl+Shift+S"))
+ self.actionFermer.setText(_translate("Eficas", "Fermer "))
+ self.actionFermer.setShortcut(_translate("Eficas", "Ctrl+W"))
+ self.actionFermer_tout.setText(_translate("Eficas", "Fermer tout"))
+ self.actionCouper.setText(_translate("Eficas", "Couper"))
+ self.actionCouper.setShortcut(_translate("Eficas", "Ctrl+X"))
+ self.actionCopier.setText(_translate("Eficas", "Copier"))
+ self.actionCopier.setShortcut(_translate("Eficas", "Ctrl+C"))
+ self.actionColler.setText(_translate("Eficas", "Coller"))
+ self.actionColler.setShortcut(_translate("Eficas", "Ctrl+V"))
+ self.actionQuitter.setText(_translate("Eficas", "Quitter"))
+ self.actionQuitter.setShortcut(_translate("Eficas", "Ctrl+Q"))
+ self.actionRapport_de_Validation.setText(_translate("Eficas", "Rapport de Validation"))
+ self.actionRapport_de_Validation.setShortcut(_translate("Eficas", "Shift+V"))
+ self.actionFichier_Source.setText(_translate("Eficas", "Fichier Source"))
+ self.actionFichier_Resultat.setText(_translate("Eficas", "Fichier Résultat"))
+ self.actionLecteur_Pdf.setText(_translate("Eficas", "Lecteur documentation"))
+ self.actionEficas.setText(_translate("Eficas", "Eficas"))
+ self.actionVersion.setText(_translate("Eficas", "Version"))
+ self.actionSupprimer.setText(_translate("Eficas", "Supprimer"))
+ self.actionRechercherDsCatalogue.setText(_translate("Eficas", "Chercher Mot-Clef"))
+ self.actionRechercherDsCatalogue.setToolTip(_translate("Eficas", " Rechercher dans le catalogue"))
+ self.actionRechercherDsCatalogue.setShortcut(_translate("Eficas", "Shift+F"))
+ self.actionRechercher.setText(_translate("Eficas", "Rechercher"))
+ self.actionRechercher.setToolTip(_translate("Eficas", " Rechercher dans l\'arbre d\'etude"))
+ self.actionRechercher.setShortcut(_translate("Eficas", "Ctrl+F"))
+ self.actionDeplier_replier.setText(_translate("Eficas", "Replier/Deplier"))
+ self.actionDeplier_replier.setShortcut(_translate("Eficas", "Shift+D"))
+ self.actionCommentaire.setText(_translate("Eficas", "Commentaire"))
+ self.actionCommentaire.setShortcut(_translate("Eficas", "Shift+C"))
+ self.actionParametres.setText(_translate("Eficas", "Paramètres"))
+ self.actionParametres.setToolTip(_translate("Eficas", "Gestion des paramètres"))
+ self.actionParametres.setShortcut(_translate("Eficas", "Shift+P"))
+ self.actionParametre_Eficas.setText(_translate("Eficas", "Parametre Eficas"))
+ self.actionRegles_du_JdC.setText(_translate("Eficas", "Régles du JdC"))
+
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ Eficas = QtWidgets.QMainWindow()
+ ui = Ui_Eficas()
+ ui.setupUi(Eficas)
+ Eficas.show()
+ sys.exit(app.exec_())
+
diff --git a/UiQT5/myMain.ui b/UiQT5/myMain.ui
new file mode 100644
index 00000000..04f25f74
--- /dev/null
+++ b/UiQT5/myMain.ui
@@ -0,0 +1,474 @@
+
+
+ Eficas
+
+
+
+ 0
+ 0
+ 1676
+ 811
+
+
+
+
+ 0
+ 0
+
+
+
+ MainWindow
+
+
+ /* QMenuBar {
+ background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
+ stop:0 rgb(226,255,253), stop:1 rgb(191,237,255));
+ }*/
+
+QMenuBar {
+ background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
+ stop:0 rgb(164,165,178), stop:1 rgb(55,66,126));
+ }
+ QMenuBar::item {
+ spacing: 3px; /* spacing between menu bar items */
+ color: white;
+ padding: 1px 4px;
+ background: transparent;
+ border-radius: 4px;
+ }
+
+ QMenuBar::item:selected { /* when selected using mouse or keyboard */
+ background: #a8a8a8;
+ }
+
+ QMenuBar::item:pressed {
+ background: #888888;
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+ QComboBox{combobox-popup:0;}
+
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+
+ 0
+ 61
+
+
+
+
+ 16777215
+ 61
+
+
+
+ /*background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
+ stop:0 rgb(218,229,248), stop:1 rgb(9,86,109));*/
+/*background-color:rgb(208,225,238)*/
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Raised
+
+
+ 2
+
+
+
+ -
+
+
+ background-color:rgb(224,223,222)
+
+
+ QTabWidget::North
+
+
+ 0
+
+
+ true
+
+
+
+ Tab 1
+
+
+
+
+
+
+
+
+
+
+ toolBar
+
+
+
+ 36
+ 36
+
+
+
+ TopToolBarArea
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ &Nouveau
+
+
+ Ctrl+N
+
+
+
+
+ Nouvel Include
+
+
+ Shift+I
+
+
+
+
+ &bad
+
+
+
+
+
+
+
+
+
+ &Ouvrir
+
+
+ Ctrl+O
+
+
+
+
+
+
+
+
+
+ Enregistrer
+
+
+ Ctrl+S
+
+
+
+
+ Parametres Eficas
+
+
+
+
+
+
+
+
+
+ Enregistrer sous
+
+
+ Ctrl+Shift+S
+
+
+
+
+ Fermer
+
+
+ Ctrl+W
+
+
+
+
+ Fermer tout
+
+
+
+
+
+
+
+
+
+ Couper
+
+
+ Ctrl+X
+
+
+ Qt::ApplicationShortcut
+
+
+
+
+
+
+
+
+
+ Copier
+
+
+ Ctrl+C
+
+
+ Qt::ApplicationShortcut
+
+
+
+
+
+
+
+
+
+ Coller
+
+
+ Ctrl+V
+
+
+ Qt::ApplicationShortcut
+
+
+
+
+ Quitter
+
+
+ Ctrl+Q
+
+
+
+
+ Rapport de Validation
+
+
+ Shift+V
+
+
+ false
+
+
+
+
+ Fichier Source
+
+
+
+
+ Fichier Résultat
+
+
+
+
+ Lecteur documentation
+
+
+
+
+ Eficas
+
+
+
+
+ Version
+
+
+
+
+
+
+
+
+
+ Supprimer
+
+
+
+
+ Chercher Mot-Clef
+
+
+ Rechercher dans le catalogue
+
+
+ Shift+F
+
+
+ Qt::ApplicationShortcut
+
+
+
+
+
+
+
+
+
+ Rechercher
+
+
+ Rechercher dans l'arbre d'etude
+
+
+ Ctrl+F
+
+
+ Qt::ApplicationShortcut
+
+
+
+
+ Replier/Deplier
+
+
+ Shift+D
+
+
+
+
+ Commentaire
+
+
+ Shift+C
+
+
+
+
+
+ ../Editeur/icons/parametres.png../Editeur/icons/parametres.png
+
+
+ Paramètres
+
+
+ Gestion des paramètres
+
+
+ Shift+P
+
+
+
+
+ Parametre Eficas
+
+
+
+
+ Régles du JdC
+
+
+
+
+
+