00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 from PyQt4 import QtCore, QtGui
00011
00012 class Ui_Frame(object):
00013 def setupUi(self, Frame):
00014 Frame.setObjectName("Frame")
00015 Frame.resize(702, 505)
00016 Frame.setFrameShape(QtGui.QFrame.StyledPanel)
00017 Frame.setFrameShadow(QtGui.QFrame.Raised)
00018 self.layoutWidget = QtGui.QWidget(Frame)
00019 self.layoutWidget.setGeometry(QtCore.QRect(360, 110, 321, 311))
00020 self.layoutWidget.setObjectName("layoutWidget")
00021 self.gridLayout = QtGui.QGridLayout(self.layoutWidget)
00022 self.gridLayout.setObjectName("gridLayout")
00023 self.rotate_x_pos = QtGui.QPushButton(self.layoutWidget)
00024 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00025 sizePolicy.setHorizontalStretch(0)
00026 sizePolicy.setVerticalStretch(0)
00027 sizePolicy.setHeightForWidth(self.rotate_x_pos.sizePolicy().hasHeightForWidth())
00028 self.rotate_x_pos.setSizePolicy(sizePolicy)
00029 self.rotate_x_pos.setBaseSize(QtCore.QSize(80, 80))
00030 self.rotate_x_pos.setStyleSheet("image: url(:/resources/rotate_x_neg_on.png);\n"
00031 "background-image: url(:/resources/empty.png);")
00032 self.rotate_x_pos.setText("")
00033 self.rotate_x_pos.setObjectName("rotate_x_pos")
00034 self.gridLayout.addWidget(self.rotate_x_pos, 0, 0, 1, 1)
00035 self.rotate_y_pos = QtGui.QPushButton(self.layoutWidget)
00036 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00037 sizePolicy.setHorizontalStretch(0)
00038 sizePolicy.setVerticalStretch(0)
00039 sizePolicy.setHeightForWidth(self.rotate_y_pos.sizePolicy().hasHeightForWidth())
00040 self.rotate_y_pos.setSizePolicy(sizePolicy)
00041 self.rotate_y_pos.setBaseSize(QtCore.QSize(80, 80))
00042 self.rotate_y_pos.setStyleSheet("image: url(:/resources/rotate_y_pos_on.png);\n"
00043 "background-image: url(:/resources/empty.png);")
00044 self.rotate_y_pos.setText("")
00045 self.rotate_y_pos.setObjectName("rotate_y_pos")
00046 self.gridLayout.addWidget(self.rotate_y_pos, 0, 1, 1, 1)
00047 self.rotate_x_neg = QtGui.QPushButton(self.layoutWidget)
00048 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00049 sizePolicy.setHorizontalStretch(0)
00050 sizePolicy.setVerticalStretch(0)
00051 sizePolicy.setHeightForWidth(self.rotate_x_neg.sizePolicy().hasHeightForWidth())
00052 self.rotate_x_neg.setSizePolicy(sizePolicy)
00053 self.rotate_x_neg.setBaseSize(QtCore.QSize(80, 80))
00054 self.rotate_x_neg.setStyleSheet("image: url(:/resources/rotate_x_pos_on.png);\n"
00055 "background-image: url(:/resources/empty.png);")
00056 self.rotate_x_neg.setText("")
00057 self.rotate_x_neg.setObjectName("rotate_x_neg")
00058 self.gridLayout.addWidget(self.rotate_x_neg, 0, 2, 1, 1)
00059 self.rotate_z_neg = QtGui.QPushButton(self.layoutWidget)
00060 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00061 sizePolicy.setHorizontalStretch(0)
00062 sizePolicy.setVerticalStretch(0)
00063 sizePolicy.setHeightForWidth(self.rotate_z_neg.sizePolicy().hasHeightForWidth())
00064 self.rotate_z_neg.setSizePolicy(sizePolicy)
00065 self.rotate_z_neg.setBaseSize(QtCore.QSize(80, 80))
00066 self.rotate_z_neg.setStyleSheet("image: url(:/resources/rotate_z_neg_on.png);\n"
00067 "background-image: url(:/resources/empty.png);")
00068 self.rotate_z_neg.setText("")
00069 self.rotate_z_neg.setObjectName("rotate_z_neg")
00070 self.gridLayout.addWidget(self.rotate_z_neg, 1, 0, 1, 1)
00071 self.rotate_z_pos = QtGui.QPushButton(self.layoutWidget)
00072 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00073 sizePolicy.setHorizontalStretch(0)
00074 sizePolicy.setVerticalStretch(0)
00075 sizePolicy.setHeightForWidth(self.rotate_z_pos.sizePolicy().hasHeightForWidth())
00076 self.rotate_z_pos.setSizePolicy(sizePolicy)
00077 self.rotate_z_pos.setBaseSize(QtCore.QSize(80, 80))
00078 self.rotate_z_pos.setStyleSheet("image: url(:/resources/rotate_z_pos_on.png);\n"
00079 "background-image: url(:/resources/empty.png);")
00080 self.rotate_z_pos.setText("")
00081 self.rotate_z_pos.setObjectName("rotate_z_pos")
00082 self.gridLayout.addWidget(self.rotate_z_pos, 1, 2, 1, 1)
00083 self.rotate_y_neg = QtGui.QPushButton(self.layoutWidget)
00084 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00085 sizePolicy.setHorizontalStretch(0)
00086 sizePolicy.setVerticalStretch(0)
00087 sizePolicy.setHeightForWidth(self.rotate_y_neg.sizePolicy().hasHeightForWidth())
00088 self.rotate_y_neg.setSizePolicy(sizePolicy)
00089 self.rotate_y_neg.setBaseSize(QtCore.QSize(80, 80))
00090 self.rotate_y_neg.setStyleSheet("image: url(:/resources/rotate_y_neg_on.png);\n"
00091 "background-image: url(:/resources/empty.png);")
00092 self.rotate_y_neg.setText("")
00093 self.rotate_y_neg.setObjectName("rotate_y_neg")
00094 self.gridLayout.addWidget(self.rotate_y_neg, 2, 1, 1, 1)
00095 self.label_3 = QtGui.QLabel(self.layoutWidget)
00096 self.label_3.setStyleSheet("background-image: url(:/resources/empty.png);\n"
00097 "image: url(:/resources/tool_direction.png);")
00098 self.label_3.setText("")
00099 self.label_3.setObjectName("label_3")
00100 self.gridLayout.addWidget(self.label_3, 1, 1, 1, 1)
00101 self.reset_rotation = QtGui.QPushButton(self.layoutWidget)
00102 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00103 sizePolicy.setHorizontalStretch(0)
00104 sizePolicy.setVerticalStretch(0)
00105 sizePolicy.setHeightForWidth(self.reset_rotation.sizePolicy().hasHeightForWidth())
00106 self.reset_rotation.setSizePolicy(sizePolicy)
00107 self.reset_rotation.setBaseSize(QtCore.QSize(80, 80))
00108 self.reset_rotation.setStyleSheet("font: 16pt ;\n"
00109 "background-image: url(:/resources/empty.png);")
00110 self.reset_rotation.setObjectName("reset_rotation")
00111 self.gridLayout.addWidget(self.reset_rotation, 2, 0, 1, 1)
00112 self.label_5 = QtGui.QLabel(Frame)
00113 self.label_5.setGeometry(QtCore.QRect(470, 70, 151, 31))
00114 self.label_5.setStyleSheet("font: 20pt;")
00115 self.label_5.setObjectName("label_5")
00116 self.label_4 = QtGui.QLabel(Frame)
00117 self.label_4.setGeometry(QtCore.QRect(110, 70, 151, 31))
00118 self.label_4.setStyleSheet("font: 20pt;")
00119 self.label_4.setObjectName("label_4")
00120 self.layoutWidget_2 = QtGui.QWidget(Frame)
00121 self.layoutWidget_2.setGeometry(QtCore.QRect(20, 110, 321, 311))
00122 self.layoutWidget_2.setObjectName("layoutWidget_2")
00123 self.gridLayout_2 = QtGui.QGridLayout(self.layoutWidget_2)
00124 self.gridLayout_2.setObjectName("gridLayout_2")
00125 self.translate_up = QtGui.QPushButton(self.layoutWidget_2)
00126 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00127 sizePolicy.setHorizontalStretch(0)
00128 sizePolicy.setVerticalStretch(0)
00129 sizePolicy.setHeightForWidth(self.translate_up.sizePolicy().hasHeightForWidth())
00130 self.translate_up.setSizePolicy(sizePolicy)
00131 self.translate_up.setBaseSize(QtCore.QSize(80, 80))
00132 self.translate_up.setStyleSheet("image: url(:/resources/translate_up_on.png);\n"
00133 "background-image: url(:/resources/empty.png);")
00134 self.translate_up.setText("")
00135 self.translate_up.setObjectName("translate_up")
00136 self.gridLayout_2.addWidget(self.translate_up, 0, 1, 1, 1)
00137 self.translate_left = QtGui.QPushButton(self.layoutWidget_2)
00138 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00139 sizePolicy.setHorizontalStretch(0)
00140 sizePolicy.setVerticalStretch(0)
00141 sizePolicy.setHeightForWidth(self.translate_left.sizePolicy().hasHeightForWidth())
00142 self.translate_left.setSizePolicy(sizePolicy)
00143 self.translate_left.setBaseSize(QtCore.QSize(80, 80))
00144 self.translate_left.setStyleSheet("image: url(:/resources/translate_left_on.png);\n"
00145 "background-image: url(:/resources/empty.png);")
00146 self.translate_left.setText("")
00147 self.translate_left.setObjectName("translate_left")
00148 self.gridLayout_2.addWidget(self.translate_left, 1, 0, 1, 1)
00149 self.translate_right = QtGui.QPushButton(self.layoutWidget_2)
00150 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00151 sizePolicy.setHorizontalStretch(0)
00152 sizePolicy.setVerticalStretch(0)
00153 sizePolicy.setHeightForWidth(self.translate_right.sizePolicy().hasHeightForWidth())
00154 self.translate_right.setSizePolicy(sizePolicy)
00155 self.translate_right.setBaseSize(QtCore.QSize(80, 80))
00156 self.translate_right.setStyleSheet("image: url(:/resources/translate_right_on.png);\n"
00157 "background-image: url(:/resources/empty.png);")
00158 self.translate_right.setText("")
00159 self.translate_right.setObjectName("translate_right")
00160 self.gridLayout_2.addWidget(self.translate_right, 1, 2, 1, 1)
00161 self.translate_down = QtGui.QPushButton(self.layoutWidget_2)
00162 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00163 sizePolicy.setHorizontalStretch(0)
00164 sizePolicy.setVerticalStretch(0)
00165 sizePolicy.setHeightForWidth(self.translate_down.sizePolicy().hasHeightForWidth())
00166 self.translate_down.setSizePolicy(sizePolicy)
00167 self.translate_down.setBaseSize(QtCore.QSize(80, 80))
00168 self.translate_down.setStyleSheet("image: url(:/resources/translate_down_on.png);\n"
00169 "background-image: url(:/resources/empty.png);")
00170 self.translate_down.setText("")
00171 self.translate_down.setObjectName("translate_down")
00172 self.gridLayout_2.addWidget(self.translate_down, 2, 1, 1, 1)
00173 self.label_6 = QtGui.QLabel(self.layoutWidget_2)
00174 self.label_6.setStyleSheet("background-image: url(:/resources/empty.png);\n"
00175 "image: url(:/resources/tool_direction.png);")
00176 self.label_6.setText("")
00177 self.label_6.setObjectName("label_6")
00178 self.gridLayout_2.addWidget(self.label_6, 1, 1, 1, 1)
00179 self.translate_out = QtGui.QPushButton(self.layoutWidget_2)
00180 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00181 sizePolicy.setHorizontalStretch(0)
00182 sizePolicy.setVerticalStretch(0)
00183 sizePolicy.setHeightForWidth(self.translate_out.sizePolicy().hasHeightForWidth())
00184 self.translate_out.setSizePolicy(sizePolicy)
00185 self.translate_out.setBaseSize(QtCore.QSize(80, 80))
00186 self.translate_out.setStyleSheet("image: url(:/resources/translate_out_on.png);\n"
00187 "background-image: url(:/resources/empty.png);")
00188 self.translate_out.setText("")
00189 self.translate_out.setObjectName("translate_out")
00190 self.gridLayout_2.addWidget(self.translate_out, 0, 2, 1, 1)
00191 self.translate_in = QtGui.QPushButton(self.layoutWidget_2)
00192 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
00193 sizePolicy.setHorizontalStretch(0)
00194 sizePolicy.setVerticalStretch(0)
00195 sizePolicy.setHeightForWidth(self.translate_in.sizePolicy().hasHeightForWidth())
00196 self.translate_in.setSizePolicy(sizePolicy)
00197 self.translate_in.setBaseSize(QtCore.QSize(80, 80))
00198 self.translate_in.setStyleSheet("image: url(:/resources/translate_in_on.png);\n"
00199 "background-image: url(:/resources/empty.png);")
00200 self.translate_in.setText("")
00201 self.translate_in.setObjectName("translate_in")
00202 self.gridLayout_2.addWidget(self.translate_in, 0, 0, 1, 1)
00203 self.layoutWidget_3 = QtGui.QWidget(Frame)
00204 self.layoutWidget_3.setGeometry(QtCore.QRect(20, 3, 661, 51))
00205 self.layoutWidget_3.setObjectName("layoutWidget_3")
00206 self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget_3)
00207 self.horizontalLayout_2.setSpacing(20)
00208 self.horizontalLayout_2.setObjectName("horizontalLayout_2")
00209 self.label_7 = QtGui.QLabel(self.layoutWidget_3)
00210 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
00211 sizePolicy.setHorizontalStretch(0)
00212 sizePolicy.setVerticalStretch(0)
00213 sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth())
00214 self.label_7.setSizePolicy(sizePolicy)
00215 self.label_7.setStyleSheet("font: 20pt ;")
00216 self.label_7.setObjectName("label_7")
00217 self.horizontalLayout_2.addWidget(self.label_7)
00218 self.controller_name = QtGui.QLabel(self.layoutWidget_3)
00219 self.controller_name.setStyleSheet("font: 20pt ;")
00220 self.controller_name.setObjectName("controller_name")
00221 self.horizontalLayout_2.addWidget(self.controller_name)
00222 self.widget = QtGui.QWidget(Frame)
00223 self.widget.setGeometry(QtCore.QRect(20, 440, 661, 51))
00224 self.widget.setObjectName("widget")
00225 self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
00226 self.horizontalLayout.setSpacing(20)
00227 self.horizontalLayout.setObjectName("horizontalLayout")
00228 self.label_2 = QtGui.QLabel(self.widget)
00229 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
00230 sizePolicy.setHorizontalStretch(0)
00231 sizePolicy.setVerticalStretch(0)
00232 sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
00233 self.label_2.setSizePolicy(sizePolicy)
00234 self.label_2.setStyleSheet("font: 20pt ;")
00235 self.label_2.setObjectName("label_2")
00236 self.horizontalLayout.addWidget(self.label_2)
00237 self.status_text = QtGui.QLabel(self.widget)
00238 self.status_text.setStyleSheet("font: 20pt ;")
00239 self.status_text.setObjectName("status_text")
00240 self.horizontalLayout.addWidget(self.status_text)
00241
00242 self.retranslateUi(Frame)
00243 QtCore.QMetaObject.connectSlotsByName(Frame)
00244
00245 def retranslateUi(self, Frame):
00246 Frame.setWindowTitle(QtGui.QApplication.translate("Frame", "Frame", None, QtGui.QApplication.UnicodeUTF8))
00247 self.reset_rotation.setText(QtGui.QApplication.translate("Frame", "Reset\n"
00248 "Rotation", None, QtGui.QApplication.UnicodeUTF8))
00249 self.label_5.setText(QtGui.QApplication.translate("Frame", "Rotation", None, QtGui.QApplication.UnicodeUTF8))
00250 self.label_4.setText(QtGui.QApplication.translate("Frame", "Translation", None, QtGui.QApplication.UnicodeUTF8))
00251 self.label_7.setText(QtGui.QApplication.translate("Frame", "Controller:", None, QtGui.QApplication.UnicodeUTF8))
00252 self.controller_name.setText(QtGui.QApplication.translate("Frame", "Current Controller", None, QtGui.QApplication.UnicodeUTF8))
00253 self.label_2.setText(QtGui.QApplication.translate("Frame", "Status:", None, QtGui.QApplication.UnicodeUTF8))
00254 self.status_text.setText(QtGui.QApplication.translate("Frame", "Current Status", None, QtGui.QApplication.UnicodeUTF8))
00255
00256 import icons_rc