summaryrefslogtreecommitdiff
path: root/cad/src/outtakes/RotaryMotorPropDialog.py
blob: 5e6a7c4233459c2181be5488ddd4be453dcef1d8 (plain)
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
# -*- coding: utf-8 -*-

# Copyright 2004-2007 Nanorex, Inc.  See LICENSE file for details.
# Form implementation generated from reading ui file 'RotaryMotorPropDialog.ui'
#
# Created: Wed Sep 20 10:35:36 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_RotaryMotorPropDialog(object):
    def setupUi(self, RotaryMotorPropDialog):
        RotaryMotorPropDialog.setObjectName("RotaryMotorPropDialog")
        RotaryMotorPropDialog.resize(QtCore.QSize(QtCore.QRect(0,0,298,424).size()).expandedTo(RotaryMotorPropDialog.minimumSizeHint()))
        #RotaryMotorPropDialog.setSizeGripEnabled(True)

        self.vboxlayout = QtGui.QVBoxLayout(RotaryMotorPropDialog)
        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.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setMargin(0)
        self.hboxlayout1.setSpacing(6)
        self.hboxlayout1.setObjectName("hboxlayout1")

        self.vboxlayout1 = QtGui.QVBoxLayout()
        self.vboxlayout1.setMargin(0)
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setObjectName("vboxlayout1")

        self.nameTextLabel = QtGui.QLabel(RotaryMotorPropDialog)
        self.nameTextLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.nameTextLabel.setObjectName("nameTextLabel")
        self.vboxlayout1.addWidget(self.nameTextLabel)

        self.textLabel1 = QtGui.QLabel(RotaryMotorPropDialog)

        font = QtGui.QFont(self.textLabel1.font())
        font.setFamily("Sans Serif")
        font.setPointSize(9)
        font.setWeight(50)
        font.setItalic(False)
        font.setUnderline(False)
        font.setStrikeOut(False)
        font.setBold(False)
        self.textLabel1.setFont(font)
        self.textLabel1.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.textLabel1.setObjectName("textLabel1")
        self.vboxlayout1.addWidget(self.textLabel1)

        self.textLabel1_2_3 = QtGui.QLabel(RotaryMotorPropDialog)
        self.textLabel1_2_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.textLabel1_2_3.setObjectName("textLabel1_2_3")
        self.vboxlayout1.addWidget(self.textLabel1_2_3)

        self.textLabel1_2 = QtGui.QLabel(RotaryMotorPropDialog)
        self.textLabel1_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.textLabel1_2.setObjectName("textLabel1_2")
        self.vboxlayout1.addWidget(self.textLabel1_2)
        self.hboxlayout1.addLayout(self.vboxlayout1)

        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setMargin(0)
        self.gridlayout.setSpacing(6)
        self.gridlayout.setObjectName("gridlayout")

        self.nameLineEdit = QtGui.QLineEdit(RotaryMotorPropDialog)
        self.nameLineEdit.setAlignment(QtCore.Qt.AlignLeading)
        self.nameLineEdit.setReadOnly(False)
        self.nameLineEdit.setObjectName("nameLineEdit")
        self.gridlayout.addWidget(self.nameLineEdit,0,0,1,2)

        self.torqueLineEdit = QtGui.QLineEdit(RotaryMotorPropDialog)
        self.torqueLineEdit.setAlignment(QtCore.Qt.AlignLeading)
        self.torqueLineEdit.setObjectName("torqueLineEdit")
        self.gridlayout.addWidget(self.torqueLineEdit,1,0,1,1)

        self.speedLineEdit = QtGui.QLineEdit(RotaryMotorPropDialog)
        self.speedLineEdit.setAlignment(QtCore.Qt.AlignLeading)
        self.speedLineEdit.setObjectName("speedLineEdit")
        self.gridlayout.addWidget(self.speedLineEdit,3,0,1,1)

        self.textLabel1_4 = QtGui.QLabel(RotaryMotorPropDialog)
        self.textLabel1_4.setObjectName("textLabel1_4")
        self.gridlayout.addWidget(self.textLabel1_4,1,1,1,1)

        self.textLabel2 = QtGui.QLabel(RotaryMotorPropDialog)
        self.textLabel2.setObjectName("textLabel2")
        self.gridlayout.addWidget(self.textLabel2,3,1,1,1)

        self.textLabel2_2 = QtGui.QLabel(RotaryMotorPropDialog)
        self.textLabel2_2.setObjectName("textLabel2_2")
        self.gridlayout.addWidget(self.textLabel2_2,2,1,1,1)

        self.initialSpeedLineEdit = QtGui.QLineEdit(RotaryMotorPropDialog)
        self.initialSpeedLineEdit.setAlignment(QtCore.Qt.AlignLeading)
        self.initialSpeedLineEdit.setObjectName("initialSpeedLineEdit")
        self.gridlayout.addWidget(self.initialSpeedLineEdit,2,0,1,1)
        self.hboxlayout1.addLayout(self.gridlayout)
        self.hboxlayout.addLayout(self.hboxlayout1)

        spacerItem = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem)
        self.vboxlayout.addLayout(self.hboxlayout)

        self.hboxlayout2 = QtGui.QHBoxLayout()
        self.hboxlayout2.setMargin(0)
        self.hboxlayout2.setSpacing(6)
        self.hboxlayout2.setObjectName("hboxlayout2")

        self.vboxlayout2 = QtGui.QVBoxLayout()
        self.vboxlayout2.setMargin(0)
        self.vboxlayout2.setSpacing(6)
        self.vboxlayout2.setObjectName("vboxlayout2")

        self.dampers_textlabel = QtGui.QLabel(RotaryMotorPropDialog)
        self.dampers_textlabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.dampers_textlabel.setObjectName("dampers_textlabel")
        self.vboxlayout2.addWidget(self.dampers_textlabel)

        self.textLabel1_5 = QtGui.QLabel(RotaryMotorPropDialog)
        self.textLabel1_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.textLabel1_5.setObjectName("textLabel1_5")
        self.vboxlayout2.addWidget(self.textLabel1_5)
        self.hboxlayout2.addLayout(self.vboxlayout2)

        self.vboxlayout3 = QtGui.QVBoxLayout()
        self.vboxlayout3.setMargin(0)
        self.vboxlayout3.setSpacing(6)
        self.vboxlayout3.setObjectName("vboxlayout3")

        self.dampers_checkbox = QtGui.QCheckBox(RotaryMotorPropDialog)
        self.dampers_checkbox.setObjectName("dampers_checkbox")
        self.vboxlayout3.addWidget(self.dampers_checkbox)

        self.enable_minimize_checkbox = QtGui.QCheckBox(RotaryMotorPropDialog)
        self.enable_minimize_checkbox.setObjectName("enable_minimize_checkbox")
        self.vboxlayout3.addWidget(self.enable_minimize_checkbox)
        self.hboxlayout2.addLayout(self.vboxlayout3)

        spacerItem1 = QtGui.QSpacerItem(20,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.hboxlayout2.addItem(spacerItem1)
        self.vboxlayout.addLayout(self.hboxlayout2)

        self.groupBox1 = QtGui.QGroupBox(RotaryMotorPropDialog)
        self.groupBox1.setObjectName("groupBox1")

        self.gridlayout1 = QtGui.QGridLayout(self.groupBox1)
        self.gridlayout1.setMargin(11)
        self.gridlayout1.setSpacing(6)
        self.gridlayout1.setObjectName("gridlayout1")

        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(self.groupBox1)
        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(self.groupBox1)
        self.choose_color_btn.setEnabled(True)
        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)

        spacerItem2 = QtGui.QSpacerItem(46,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.hboxlayout3.addItem(spacerItem2)
        self.gridlayout1.addLayout(self.hboxlayout3,3,1,1,2)

        self.textLabel1_2_2_2 = QtGui.QLabel(self.groupBox1)
        self.textLabel1_2_2_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.textLabel1_2_2_2.setObjectName("textLabel1_2_2_2")
        self.gridlayout1.addWidget(self.textLabel1_2_2_2,2,0,1,1)

        self.textLabel1_3 = QtGui.QLabel(self.groupBox1)
        self.textLabel1_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.textLabel1_3.setObjectName("textLabel1_3")
        self.gridlayout1.addWidget(self.textLabel1_3,0,0,1,1)

        self.textLabel1_2_2 = QtGui.QLabel(self.groupBox1)
        self.textLabel1_2_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.textLabel1_2_2.setObjectName("textLabel1_2_2")
        self.gridlayout1.addWidget(self.textLabel1_2_2,1,0,1,1)

        self.colorTextLabel = QtGui.QLabel(self.groupBox1)
        self.colorTextLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.colorTextLabel.setObjectName("colorTextLabel")
        self.gridlayout1.addWidget(self.colorTextLabel,3,0,1,1)

        self.lengthLineEdit = QtGui.QLineEdit(self.groupBox1)
        self.lengthLineEdit.setAlignment(QtCore.Qt.AlignLeading)
        self.lengthLineEdit.setObjectName("lengthLineEdit")
        self.gridlayout1.addWidget(self.lengthLineEdit,0,1,1,1)

        self.sradiusLineEdit = QtGui.QLineEdit(self.groupBox1)
        self.sradiusLineEdit.setAlignment(QtCore.Qt.AlignLeading)
        self.sradiusLineEdit.setObjectName("sradiusLineEdit")
        self.gridlayout1.addWidget(self.sradiusLineEdit,2,1,1,1)

        self.radiusLineEdit = QtGui.QLineEdit(self.groupBox1)
        self.radiusLineEdit.setAlignment(QtCore.Qt.AlignLeading)
        self.radiusLineEdit.setObjectName("radiusLineEdit")
        self.gridlayout1.addWidget(self.radiusLineEdit,1,1,1,1)

        self.textLabel3_2 = QtGui.QLabel(self.groupBox1)
        self.textLabel3_2.setObjectName("textLabel3_2")
        self.gridlayout1.addWidget(self.textLabel3_2,1,2,1,1)

        self.textLabel3 = QtGui.QLabel(self.groupBox1)
        self.textLabel3.setObjectName("textLabel3")
        self.gridlayout1.addWidget(self.textLabel3,0,2,1,1)

        self.textLabel3_3 = QtGui.QLabel(self.groupBox1)
        self.textLabel3_3.setObjectName("textLabel3_3")
        self.gridlayout1.addWidget(self.textLabel3_3,2,2,1,1)
        self.vboxlayout.addWidget(self.groupBox1)

        spacerItem3 = QtGui.QSpacerItem(20,16,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem3)

        self.hboxlayout5 = QtGui.QHBoxLayout()
        self.hboxlayout5.setMargin(0)
        self.hboxlayout5.setSpacing(6)
        self.hboxlayout5.setObjectName("hboxlayout5")

        spacerItem4 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.hboxlayout5.addItem(spacerItem4)

        self.ok_btn = QtGui.QPushButton(RotaryMotorPropDialog)
        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(RotaryMotorPropDialog)
        self.cancel_btn.setAutoDefault(False)
        self.cancel_btn.setObjectName("cancel_btn")
        self.hboxlayout5.addWidget(self.cancel_btn)
        self.vboxlayout.addLayout(self.hboxlayout5)
        #self.textLabel1.setBuddy(RotaryMotorPropDialog.lineEdit9)
        #self.textLabel1_2_3.setBuddy(RotaryMotorPropDialog.lineEdit9_2)
        #self.textLabel1_2.setBuddy(RotaryMotorPropDialog.lineEdit9_2)

        self.retranslateUi(RotaryMotorPropDialog)
        QtCore.QObject.connect(self.cancel_btn,QtCore.SIGNAL("clicked()"),RotaryMotorPropDialog.reject)
        QtCore.QObject.connect(self.ok_btn,QtCore.SIGNAL("clicked()"),RotaryMotorPropDialog.accept)
        QtCore.QMetaObject.connectSlotsByName(RotaryMotorPropDialog)
        RotaryMotorPropDialog.setTabOrder(self.nameLineEdit,self.torqueLineEdit)
        RotaryMotorPropDialog.setTabOrder(self.torqueLineEdit,self.initialSpeedLineEdit)
        RotaryMotorPropDialog.setTabOrder(self.initialSpeedLineEdit,self.speedLineEdit)
        RotaryMotorPropDialog.setTabOrder(self.speedLineEdit,self.enable_minimize_checkbox)
        RotaryMotorPropDialog.setTabOrder(self.enable_minimize_checkbox,self.lengthLineEdit)
        RotaryMotorPropDialog.setTabOrder(self.lengthLineEdit,self.radiusLineEdit)
        RotaryMotorPropDialog.setTabOrder(self.radiusLineEdit,self.sradiusLineEdit)
        RotaryMotorPropDialog.setTabOrder(self.sradiusLineEdit,self.choose_color_btn)
        RotaryMotorPropDialog.setTabOrder(self.choose_color_btn,self.ok_btn)
        RotaryMotorPropDialog.setTabOrder(self.ok_btn,self.cancel_btn)

    def retranslateUi(self, RotaryMotorPropDialog):
        RotaryMotorPropDialog.setWindowTitle(QtGui.QApplication.translate("RotaryMotorPropDialog", "Rotary Motor Properties", None, QtGui.QApplication.UnicodeUTF8))
        RotaryMotorPropDialog.setWindowIcon(QtGui.QIcon("ui/border/RotaryMotor"))
        self.nameTextLabel.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Name :", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Torque :", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_2_3.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Initial Speed :", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_2.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Final Speed :", None, QtGui.QApplication.UnicodeUTF8))
        self.nameLineEdit.setToolTip(QtGui.QApplication.translate("RotaryMotorPropDialog", "Name of rotary motor.", None, QtGui.QApplication.UnicodeUTF8))
        self.torqueLineEdit.setToolTip(QtGui.QApplication.translate("RotaryMotorPropDialog", "Simulations will begin with the motor\'s torque set to this value.", None, QtGui.QApplication.UnicodeUTF8))
        self.speedLineEdit.setToolTip(QtGui.QApplication.translate("RotaryMotorPropDialog", "The final velocity of the motor\'s flywheel.", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_4.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "nN-nm", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel2.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "GHz", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel2_2.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "GHz", None, QtGui.QApplication.UnicodeUTF8))
        self.initialSpeedLineEdit.setToolTip(QtGui.QApplication.translate("RotaryMotorPropDialog", "The beginning velocity of the motor\'s flywheel.", None, QtGui.QApplication.UnicodeUTF8))
        self.dampers_textlabel.setToolTip(QtGui.QApplication.translate("RotaryMotorPropDialog", "If checked, dampers are enabled in the simulator.", None, QtGui.QApplication.UnicodeUTF8))
        self.dampers_textlabel.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Dampers :", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_5.setToolTip(QtGui.QApplication.translate("RotaryMotorPropDialog", "If checked, the torque value is applied to the motor\'s atoms during minimization.", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_5.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Enable in Minimize (experimental) :", None, QtGui.QApplication.UnicodeUTF8))
        self.dampers_checkbox.setToolTip(QtGui.QApplication.translate("RotaryMotorPropDialog", "If checked, dampers are enabled in the simulator.", None, QtGui.QApplication.UnicodeUTF8))
        self.enable_minimize_checkbox.setToolTip(QtGui.QApplication.translate("RotaryMotorPropDialog", "If checked, the torque value is applied to the motor\'s atoms during minimization.", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox1.setTitle(QtGui.QApplication.translate("RotaryMotorPropDialog", "Size and Color", None, QtGui.QApplication.UnicodeUTF8))
        self.choose_color_btn.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Choose...", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_2_2_2.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Spoke Radius :", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_3.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Motor Length :", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_2_2.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Motor Radius :", None, QtGui.QApplication.UnicodeUTF8))
        self.colorTextLabel.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Color :", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel3_2.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Angstroms", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel3.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Angstroms", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel3_3.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "Angstroms", None, QtGui.QApplication.UnicodeUTF8))
        self.ok_btn.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "&OK", None, QtGui.QApplication.UnicodeUTF8))
        self.ok_btn.setShortcut(QtGui.QApplication.translate("RotaryMotorPropDialog", "Alt+O", None, QtGui.QApplication.UnicodeUTF8))
        self.cancel_btn.setText(QtGui.QApplication.translate("RotaryMotorPropDialog", "&Cancel", None, QtGui.QApplication.UnicodeUTF8))
        self.cancel_btn.setShortcut(QtGui.QApplication.translate("RotaryMotorPropDialog", "Alt+C", None, QtGui.QApplication.UnicodeUTF8))