1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2012-2014 CEA/DEN, EDF R&D, OPEN CASCADE
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 # Form implementation generated from reading ui file 'minmax.ui'
23 # Created: Thu Mar 1 15:23:57 2012
24 # by: PyQt4 UI code generator 4.8.1
26 # WARNING! All changes made in this file will be lost!
28 from PyQt4 import QtCore, QtGui
31 _fromUtf8 = QtCore.QString.fromUtf8
32 except AttributeError:
33 _fromUtf8 = lambda s: s
35 class Ui_Dialog(object):
36 def setupUi(self, Dialog):
37 Dialog.setObjectName(_fromUtf8("Dialog"))
38 Dialog.resize(178, 156)
39 Dialog.setSizeGripEnabled(True)
40 self.gridLayout = QtGui.QGridLayout(Dialog)
41 self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
42 self.label_2 = QtGui.QLabel(Dialog)
43 self.label_2.setObjectName(_fromUtf8("label_2"))
44 self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
45 self.mesh = QtGui.QLineEdit(Dialog)
46 self.mesh.setReadOnly(True)
47 self.mesh.setObjectName(_fromUtf8("mesh"))
48 self.gridLayout.addWidget(self.mesh, 0, 1, 1, 2)
49 self.label_3 = QtGui.QLabel(Dialog)
50 self.label_3.setObjectName(_fromUtf8("label_3"))
51 self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
52 self.control = QtGui.QComboBox(Dialog)
53 self.control.setObjectName(_fromUtf8("control"))
54 self.gridLayout.addWidget(self.control, 1, 1, 1, 2)
55 self.label = QtGui.QLabel(Dialog)
56 self.label.setObjectName(_fromUtf8("label"))
57 self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
58 self.minvalue = QtGui.QLineEdit(Dialog)
59 self.minvalue.setReadOnly(True)
60 self.minvalue.setObjectName(_fromUtf8("minvalue"))
61 self.gridLayout.addWidget(self.minvalue, 2, 1, 1, 2)
62 self.label_4 = QtGui.QLabel(Dialog)
63 self.label_4.setObjectName(_fromUtf8("label_4"))
64 self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
65 self.maxvalue = QtGui.QLineEdit(Dialog)
66 self.maxvalue.setReadOnly(True)
67 self.maxvalue.setObjectName(_fromUtf8("maxvalue"))
68 self.gridLayout.addWidget(self.maxvalue, 3, 1, 1, 2)
69 self.buttonBox = QtGui.QDialogButtonBox(Dialog)
70 self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
71 self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close|QtGui.QDialogButtonBox.Help)
72 self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
73 self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 3)
75 self.retranslateUi(Dialog)
76 QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.OnCancel)
77 QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("helpRequested()")), Dialog.helpMessage)
78 QtCore.QObject.connect(self.control, QtCore.SIGNAL(_fromUtf8("activated(QString)")), Dialog.compute_minmax)
79 QtCore.QMetaObject.connectSlotsByName(Dialog)
80 Dialog.setTabOrder(self.mesh, self.control)
81 Dialog.setTabOrder(self.control, self.minvalue)
82 Dialog.setTabOrder(self.minvalue, self.maxvalue)
83 Dialog.setTabOrder(self.maxvalue, self.buttonBox)
85 def retranslateUi(self, Dialog):
86 Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Get min and max value of control", None, QtGui.QApplication.UnicodeUTF8))
87 self.label_2.setText(QtGui.QApplication.translate("Dialog", "Mesh", None, QtGui.QApplication.UnicodeUTF8))
88 self.label_3.setText(QtGui.QApplication.translate("Dialog", "Control", None, QtGui.QApplication.UnicodeUTF8))
89 self.label.setText(QtGui.QApplication.translate("Dialog", "Min", None, QtGui.QApplication.UnicodeUTF8))
90 self.label_4.setText(QtGui.QApplication.translate("Dialog", "Max", None, QtGui.QApplication.UnicodeUTF8))