/usr/lib/python2.7/dist-packages/code_saturne/Pages/StartRestartForm.py is in code-saturne-data 4.2.0+repack-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'StartRestartForm.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_StartRestartForm(object):
def setupUi(self, StartRestartForm):
StartRestartForm.setObjectName(_fromUtf8("StartRestartForm"))
StartRestartForm.resize(400, 218)
self.gridlayout = QtGui.QGridLayout(StartRestartForm)
self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
self.groupBox = QtGui.QGroupBox(StartRestartForm)
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.gridlayout1 = QtGui.QGridLayout(self.groupBox)
self.gridlayout1.setObjectName(_fromUtf8("gridlayout1"))
self.horizontalLayout_3 = QtGui.QHBoxLayout()
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
spacerItem = QtGui.QSpacerItem(21, 21, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem)
self.label = QtGui.QLabel(self.groupBox)
self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout_3.addWidget(self.label)
self.radioButtonYes = QtGui.QRadioButton(self.groupBox)
self.radioButtonYes.setObjectName(_fromUtf8("radioButtonYes"))
self.horizontalLayout_3.addWidget(self.radioButtonYes)
self.radioButtonNo = QtGui.QRadioButton(self.groupBox)
self.radioButtonNo.setObjectName(_fromUtf8("radioButtonNo"))
self.horizontalLayout_3.addWidget(self.radioButtonNo)
spacerItem1 = QtGui.QSpacerItem(21, 21, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem1)
self.gridlayout1.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)
self.frameRestart = QtGui.QFrame(self.groupBox)
self.frameRestart.setFrameShape(QtGui.QFrame.NoFrame)
self.frameRestart.setFrameShadow(QtGui.QFrame.Raised)
self.frameRestart.setObjectName(_fromUtf8("frameRestart"))
self.verticalLayout = QtGui.QVBoxLayout(self.frameRestart)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.labelRestartDir = QtGui.QLabel(self.frameRestart)
self.labelRestartDir.setObjectName(_fromUtf8("labelRestartDir"))
self.verticalLayout.addWidget(self.labelRestartDir)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.lineEdit = QtGui.QLineEdit(self.frameRestart)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineEdit.sizePolicy().hasHeightForWidth())
self.lineEdit.setSizePolicy(sizePolicy)
self.lineEdit.setMinimumSize(QtCore.QSize(320, 0))
self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
self.horizontalLayout_2.addWidget(self.lineEdit)
self.toolButton = QtGui.QToolButton(self.frameRestart)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/new/prefix1/icons/22x22/document-open.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.toolButton.setIcon(icon)
self.toolButton.setObjectName(_fromUtf8("toolButton"))
self.horizontalLayout_2.addWidget(self.toolButton)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.line = QtGui.QFrame(self.frameRestart)
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.verticalLayout.addWidget(self.line)
self.hboxlayout = QtGui.QHBoxLayout()
self.hboxlayout.setObjectName(_fromUtf8("hboxlayout"))
spacerItem2 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.hboxlayout.addItem(spacerItem2)
self.label_2 = QtGui.QLabel(self.frameRestart)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.hboxlayout.addWidget(self.label_2)
self.checkBox = QtGui.QCheckBox(self.frameRestart)
self.checkBox.setText(_fromUtf8(""))
self.checkBox.setObjectName(_fromUtf8("checkBox"))
self.hboxlayout.addWidget(self.checkBox)
spacerItem3 = QtGui.QSpacerItem(16, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.hboxlayout.addItem(spacerItem3)
self.verticalLayout.addLayout(self.hboxlayout)
self.gridlayout1.addWidget(self.frameRestart, 1, 0, 1, 1)
self.lineICCVFG = QtGui.QFrame(self.groupBox)
self.lineICCVFG.setFrameShape(QtGui.QFrame.HLine)
self.lineICCVFG.setFrameShadow(QtGui.QFrame.Sunken)
self.lineICCVFG.setObjectName(_fromUtf8("lineICCVFG"))
self.gridlayout1.addWidget(self.lineICCVFG, 3, 0, 1, 1)
self.hboxlayout1 = QtGui.QHBoxLayout()
self.hboxlayout1.setObjectName(_fromUtf8("hboxlayout1"))
spacerItem4 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.hboxlayout1.addItem(spacerItem4)
self.label_3 = QtGui.QLabel(self.groupBox)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.hboxlayout1.addWidget(self.label_3)
self.toolButtonAdvanced = QtGui.QToolButton(self.groupBox)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/new/prefix1/icons/22x22/preferences-system.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.toolButtonAdvanced.setIcon(icon1)
self.toolButtonAdvanced.setIconSize(QtCore.QSize(22, 22))
self.toolButtonAdvanced.setObjectName(_fromUtf8("toolButtonAdvanced"))
self.hboxlayout1.addWidget(self.toolButtonAdvanced)
spacerItem5 = QtGui.QSpacerItem(16, 16, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.hboxlayout1.addItem(spacerItem5)
self.gridlayout1.addLayout(self.hboxlayout1, 4, 0, 1, 1)
self.gridlayout.addWidget(self.groupBox, 0, 0, 1, 1)
spacerItem6 = QtGui.QSpacerItem(16, 16, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.gridlayout.addItem(spacerItem6, 3, 0, 1, 1)
self.retranslateUi(StartRestartForm)
QtCore.QObject.connect(self.radioButtonYes, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.lineICCVFG.show)
QtCore.QObject.connect(self.radioButtonNo, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.lineICCVFG.hide)
QtCore.QMetaObject.connectSlotsByName(StartRestartForm)
def retranslateUi(self, StartRestartForm):
StartRestartForm.setWindowTitle(_translate("StartRestartForm", "Form", None))
self.groupBox.setTitle(_translate("StartRestartForm", "Checkpoint/Restart", None))
self.label.setText(_translate("StartRestartForm", "Calculation restart:", None))
self.radioButtonYes.setText(_translate("StartRestartForm", "on", None))
self.radioButtonNo.setText(_translate("StartRestartForm", "off", None))
self.labelRestartDir.setText(_translate("StartRestartForm", "Restart directory", None))
self.toolButton.setToolTip(_translate("StartRestartForm", "Selection of the restart directory", None))
self.toolButton.setText(_translate("StartRestartForm", "...", None))
self.label_2.setToolTip(_translate("StartRestartForm", "Code_Saturne key word: ICCVFG", None))
self.label_2.setText(_translate("StartRestartForm", "Calculation on frozen velocity and pressure fields", None))
self.label_3.setText(_translate("StartRestartForm", "Advanced options", None))
self.toolButtonAdvanced.setText(_translate("StartRestartForm", "...", None))
self.toolButtonAdvanced.setShortcut(_translate("StartRestartForm", "Ctrl+S", None))
import resources_pages_rc
|