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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
# -*- coding: utf-8 -*-
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
# Form implementation generated from reading ui file 'StatPropDialog.ui'
#
# Created: Wed Sep 20 09:07:17 2006
# by: PyQt4 UI code generator 4.0.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_StatPropDialog(object):
def setupUi(self, StatPropDialog):
StatPropDialog.setObjectName("StatPropDialog")
StatPropDialog.resize(QtCore.QSize(QtCore.QRect(0,0,299,202).size()).expandedTo(StatPropDialog.minimumSizeHint()))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(7))
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(StatPropDialog.sizePolicy().hasHeightForWidth())
StatPropDialog.setSizePolicy(sizePolicy)
StatPropDialog.setSizeGripEnabled(True)
self.vboxlayout = QtGui.QVBoxLayout(StatPropDialog)
self.vboxlayout.setMargin(11)
self.vboxlayout.setSpacing(6)
self.vboxlayout.setObjectName("vboxlayout")
self.hboxlayout = QtGui.QHBoxLayout()
self.hboxlayout.setMargin(0)
self.hboxlayout.setSpacing(6)
self.hboxlayout.setObjectName("hboxlayout")
self.vboxlayout1 = QtGui.QVBoxLayout()
self.vboxlayout1.setMargin(0)
self.vboxlayout1.setSpacing(6)
self.vboxlayout1.setObjectName("vboxlayout1")
self.nameTextLabel = QtGui.QLabel(StatPropDialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(5),QtGui.QSizePolicy.Policy(5))
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.nameTextLabel.sizePolicy().hasHeightForWidth())
self.nameTextLabel.setSizePolicy(sizePolicy)
self.nameTextLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.nameTextLabel.setObjectName("nameTextLabel")
self.vboxlayout1.addWidget(self.nameTextLabel)
self.temp_lbl = QtGui.QLabel(StatPropDialog)
self.temp_lbl.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.temp_lbl.setObjectName("temp_lbl")
self.vboxlayout1.addWidget(self.temp_lbl)
self.molnameTextLabel = QtGui.QLabel(StatPropDialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(5),QtGui.QSizePolicy.Policy(5))
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.molnameTextLabel.sizePolicy().hasHeightForWidth())
self.molnameTextLabel.setSizePolicy(sizePolicy)
self.molnameTextLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.molnameTextLabel.setObjectName("molnameTextLabel")
self.vboxlayout1.addWidget(self.molnameTextLabel)
self.colorTextLabel = QtGui.QLabel(StatPropDialog)
self.colorTextLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.colorTextLabel.setObjectName("colorTextLabel")
self.vboxlayout1.addWidget(self.colorTextLabel)
self.hboxlayout.addLayout(self.vboxlayout1)
self.vboxlayout2 = QtGui.QVBoxLayout()
self.vboxlayout2.setMargin(0)
self.vboxlayout2.setSpacing(6)
self.vboxlayout2.setObjectName("vboxlayout2")
self.nameLineEdit = QtGui.QLineEdit(StatPropDialog)
self.nameLineEdit.setEnabled(True)
self.nameLineEdit.setAlignment(QtCore.Qt.AlignLeading)
self.nameLineEdit.setObjectName("nameLineEdit")
self.vboxlayout2.addWidget(self.nameLineEdit)
self.hboxlayout1 = QtGui.QHBoxLayout()
self.hboxlayout1.setMargin(0)
self.hboxlayout1.setSpacing(6)
self.hboxlayout1.setObjectName("hboxlayout1")
self.hboxlayout2 = QtGui.QHBoxLayout()
self.hboxlayout2.setMargin(0)
self.hboxlayout2.setSpacing(6)
self.hboxlayout2.setObjectName("hboxlayout2")
self.tempSpinBox = QtGui.QSpinBox(StatPropDialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(1),QtGui.QSizePolicy.Policy(0))
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tempSpinBox.sizePolicy().hasHeightForWidth())
self.tempSpinBox.setSizePolicy(sizePolicy)
self.tempSpinBox.setMaximum(9999)
self.tempSpinBox.setProperty("value",QtCore.QVariant(300))
self.tempSpinBox.setObjectName("tempSpinBox")
self.hboxlayout2.addWidget(self.tempSpinBox)
self.K_lbl = QtGui.QLabel(StatPropDialog)
self.K_lbl.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.K_lbl.setObjectName("K_lbl")
self.hboxlayout2.addWidget(self.K_lbl)
self.hboxlayout1.addLayout(self.hboxlayout2)
spacerItem = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
self.hboxlayout1.addItem(spacerItem)
self.vboxlayout2.addLayout(self.hboxlayout1)
self.molnameLineEdit = QtGui.QLineEdit(StatPropDialog)
self.molnameLineEdit.setEnabled(True)
self.molnameLineEdit.setAlignment(QtCore.Qt.AlignLeading)
self.molnameLineEdit.setReadOnly(True)
self.molnameLineEdit.setObjectName("molnameLineEdit")
self.vboxlayout2.addWidget(self.molnameLineEdit)
self.hboxlayout3 = QtGui.QHBoxLayout()
self.hboxlayout3.setMargin(0)
self.hboxlayout3.setSpacing(6)
self.hboxlayout3.setObjectName("hboxlayout3")
self.hboxlayout4 = QtGui.QHBoxLayout()
self.hboxlayout4.setMargin(0)
self.hboxlayout4.setSpacing(6)
self.hboxlayout4.setObjectName("hboxlayout4")
self.jig_color_pixmap = QtGui.QLabel(StatPropDialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(5),QtGui.QSizePolicy.Policy(5))
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.jig_color_pixmap.sizePolicy().hasHeightForWidth())
self.jig_color_pixmap.setSizePolicy(sizePolicy)
self.jig_color_pixmap.setMinimumSize(QtCore.QSize(40,0))
self.jig_color_pixmap.setScaledContents(True)
self.jig_color_pixmap.setObjectName("jig_color_pixmap")
self.hboxlayout4.addWidget(self.jig_color_pixmap)
self.choose_color_btn = QtGui.QPushButton(StatPropDialog)
self.choose_color_btn.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(1),QtGui.QSizePolicy.Policy(0))
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.choose_color_btn.sizePolicy().hasHeightForWidth())
self.choose_color_btn.setSizePolicy(sizePolicy)
self.choose_color_btn.setAutoDefault(False)
self.choose_color_btn.setObjectName("choose_color_btn")
self.hboxlayout4.addWidget(self.choose_color_btn)
self.hboxlayout3.addLayout(self.hboxlayout4)
spacerItem1 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
self.hboxlayout3.addItem(spacerItem1)
self.vboxlayout2.addLayout(self.hboxlayout3)
self.hboxlayout.addLayout(self.vboxlayout2)
self.vboxlayout.addLayout(self.hboxlayout)
spacerItem2 = QtGui.QSpacerItem(20,20,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
self.vboxlayout.addItem(spacerItem2)
self.hboxlayout5 = QtGui.QHBoxLayout()
self.hboxlayout5.setMargin(0)
self.hboxlayout5.setSpacing(6)
self.hboxlayout5.setObjectName("hboxlayout5")
spacerItem3 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
self.hboxlayout5.addItem(spacerItem3)
self.ok_btn = QtGui.QPushButton(StatPropDialog)
self.ok_btn.setMinimumSize(QtCore.QSize(0,0))
self.ok_btn.setAutoDefault(False)
self.ok_btn.setDefault(False)
self.ok_btn.setObjectName("ok_btn")
self.hboxlayout5.addWidget(self.ok_btn)
self.cancel_btn = QtGui.QPushButton(StatPropDialog)
self.cancel_btn.setMinimumSize(QtCore.QSize(0,0))
self.cancel_btn.setAutoDefault(False)
self.cancel_btn.setDefault(False)
self.cancel_btn.setObjectName("cancel_btn")
self.hboxlayout5.addWidget(self.cancel_btn)
self.vboxlayout.addLayout(self.hboxlayout5)
self.retranslateUi(StatPropDialog)
QtCore.QObject.connect(self.cancel_btn,QtCore.SIGNAL("clicked()"),StatPropDialog.reject)
QtCore.QObject.connect(self.ok_btn,QtCore.SIGNAL("clicked()"),StatPropDialog.accept)
QtCore.QMetaObject.connectSlotsByName(StatPropDialog)
StatPropDialog.setTabOrder(self.nameLineEdit,self.tempSpinBox)
StatPropDialog.setTabOrder(self.tempSpinBox,self.molnameLineEdit)
StatPropDialog.setTabOrder(self.molnameLineEdit,self.choose_color_btn)
StatPropDialog.setTabOrder(self.choose_color_btn,self.ok_btn)
StatPropDialog.setTabOrder(self.ok_btn,self.cancel_btn)
def retranslateUi(self, StatPropDialog):
StatPropDialog.setWindowTitle(QtGui.QApplication.translate("StatPropDialog", "Stat Properties", None, QtGui.QApplication.UnicodeUTF8))
self.nameTextLabel.setText(QtGui.QApplication.translate("StatPropDialog", "Name :", None, QtGui.QApplication.UnicodeUTF8))
self.temp_lbl.setText(QtGui.QApplication.translate("StatPropDialog", "Temperature :", None, QtGui.QApplication.UnicodeUTF8))
self.molnameTextLabel.setText(QtGui.QApplication.translate("StatPropDialog", "Attached to :", None, QtGui.QApplication.UnicodeUTF8))
self.colorTextLabel.setText(QtGui.QApplication.translate("StatPropDialog", "Color :", None, QtGui.QApplication.UnicodeUTF8))
self.K_lbl.setText(QtGui.QApplication.translate("StatPropDialog", "Kelvin", None, QtGui.QApplication.UnicodeUTF8))
self.choose_color_btn.setToolTip(QtGui.QApplication.translate("StatPropDialog", "Change color", None, QtGui.QApplication.UnicodeUTF8))
self.choose_color_btn.setText(QtGui.QApplication.translate("StatPropDialog", "Choose...", None, QtGui.QApplication.UnicodeUTF8))
self.ok_btn.setText(QtGui.QApplication.translate("StatPropDialog", "&OK", None, QtGui.QApplication.UnicodeUTF8))
self.ok_btn.setShortcut(QtGui.QApplication.translate("StatPropDialog", "Alt+O", None, QtGui.QApplication.UnicodeUTF8))
self.cancel_btn.setText(QtGui.QApplication.translate("StatPropDialog", "&Cancel", None, QtGui.QApplication.UnicodeUTF8))
self.cancel_btn.setShortcut(QtGui.QApplication.translate("StatPropDialog", "Alt+C", None, QtGui.QApplication.UnicodeUTF8))
|