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
| # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'area_groundtruth.ui'
#
# Created: Mon Jun 07 16:26:12 2010
# by: PyQt4 UI code generator 4.7.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_dialog_groundtruth(object):
def setupUi(self, dialog_groundtruth):
dialog_groundtruth.setObjectName("dialog_groundtruth")
dialog_groundtruth.resize(839, 648)
self.pushButton_save_area = QtGui.QPushButton(dialog_groundtruth)
self.pushButton_save_area.setGeometry(QtCore.QRect(195, 600, 75, 23))
self.pushButton_save_area.setObjectName("pushButton_save_area")
self.graphicsView_area_groundtruth = graphicsviewAreaCounting(dialog_groundtruth)
self.graphicsView_area_groundtruth.setGeometry(QtCore.QRect(30, 50, 522, 522))
self.graphicsView_area_groundtruth.setProperty("cursor", QtCore.Qt.CrossCursor)
self.graphicsView_area_groundtruth.setMouseTracking(False)
self.graphicsView_area_groundtruth.setAutoFillBackground(False)
self.graphicsView_area_groundtruth.setFrameShape(QtGui.QFrame.StyledPanel)
self.graphicsView_area_groundtruth.setFrameShadow(QtGui.QFrame.Sunken)
self.graphicsView_area_groundtruth.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.graphicsView_area_groundtruth.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.graphicsView_area_groundtruth.setInteractive(True)
self.graphicsView_area_groundtruth.setSceneRect(QtCore.QRectF(0.0, 0.0, 522.0, 522.0))
self.graphicsView_area_groundtruth.setRenderHints(QtGui.QPainter.TextAntialiasing)
self.graphicsView_area_groundtruth.setObjectName("graphicsView_area_groundtruth")
self.pushButton_cancel = QtGui.QPushButton(dialog_groundtruth)
self.pushButton_cancel.setGeometry(QtCore.QRect(290, 600, 75, 23))
self.pushButton_cancel.setObjectName("pushButton_cancel")
self.toolButton_line = QtGui.QToolButton(dialog_groundtruth)
self.toolButton_line.setEnabled(False)
self.toolButton_line.setGeometry(QtCore.QRect(580, 180, 71, 51))
self.toolButton_line.setObjectName("toolButton_line")
self.buttonGroup_choice = QtGui.QButtonGroup(dialog_groundtruth)
self.buttonGroup_choice.setObjectName("buttonGroup_choice")
self.buttonGroup_choice.addButton(self.toolButton_line)
self.toolButton_rect = QtGui.QToolButton(dialog_groundtruth)
self.toolButton_rect.setGeometry(QtCore.QRect(660, 180, 71, 51))
self.toolButton_rect.setObjectName("toolButton_rect")
self.buttonGroup_choice.addButton(self.toolButton_rect)
self.toolButton_poly = QtGui.QToolButton(dialog_groundtruth)
self.toolButton_poly.setEnabled(False)
self.toolButton_poly.setGeometry(QtCore.QRect(740, 180, 71, 51))
self.toolButton_poly.setObjectName("toolButton_poly")
self.buttonGroup_choice.addButton(self.toolButton_poly)
self.toolButton_move = QtGui.QToolButton(dialog_groundtruth)
self.toolButton_move.setGeometry(QtCore.QRect(660, 290, 71, 51))
self.toolButton_move.setObjectName("toolButton_move")
self.buttonGroup_choice.addButton(self.toolButton_move)
self.label_title = QtGui.QLabel(dialog_groundtruth)
self.label_title.setGeometry(QtCore.QRect(630, 30, 131, 31))
font = QtGui.QFont()
font.setPointSize(12)
font.setWeight(75)
font.setUnderline(True)
font.setBold(True)
self.label_title.setFont(font)
self.label_title.setFrameShape(QtGui.QFrame.NoFrame)
self.label_title.setAlignment(QtCore.Qt.AlignCenter)
self.label_title.setObjectName("label_title")
self.label_action = QtGui.QLabel(dialog_groundtruth)
self.label_action.setGeometry(QtCore.QRect(620, 80, 151, 31))
font = QtGui.QFont()
font.setPointSize(10)
font.setWeight(75)
font.setItalic(False)
font.setBold(True)
self.label_action.setFont(font)
self.label_action.setFrameShape(QtGui.QFrame.StyledPanel)
self.label_action.setFrameShadow(QtGui.QFrame.Plain)
self.label_action.setLineWidth(0)
self.label_action.setMidLineWidth(0)
self.label_action.setAlignment(QtCore.Qt.AlignCenter)
self.label_action.setObjectName("label_action")
self.label_instructions = QtGui.QLabel(dialog_groundtruth)
self.label_instructions.setGeometry(QtCore.QRect(630, 390, 131, 31))
font = QtGui.QFont()
font.setPointSize(12)
font.setWeight(75)
font.setUnderline(True)
font.setBold(True)
self.label_instructions.setFont(font)
self.label_instructions.setFrameShape(QtGui.QFrame.NoFrame)
self.label_instructions.setAlignment(QtCore.Qt.AlignCenter)
self.label_instructions.setObjectName("label_instructions")
self.line_1 = QtGui.QFrame(dialog_groundtruth)
self.line_1.setEnabled(True)
self.line_1.setGeometry(QtCore.QRect(580, 140, 231, 20))
font = QtGui.QFont()
font.setWeight(50)
font.setBold(False)
self.line_1.setFont(font)
self.line_1.setToolTip("")
self.line_1.setFrameShadow(QtGui.QFrame.Sunken)
self.line_1.setLineWidth(1)
self.line_1.setMidLineWidth(0)
self.line_1.setFrameShape(QtGui.QFrame.HLine)
self.line_1.setFrameShadow(QtGui.QFrame.Sunken)
self.line_1.setObjectName("line_1")
self.line_2 = QtGui.QFrame(dialog_groundtruth)
self.line_2.setEnabled(True)
self.line_2.setGeometry(QtCore.QRect(580, 250, 231, 20))
font = QtGui.QFont()
font.setWeight(50)
font.setBold(False)
self.line_2.setFont(font)
self.line_2.setToolTip("")
self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
self.line_2.setLineWidth(1)
self.line_2.setMidLineWidth(0)
self.line_2.setFrameShape(QtGui.QFrame.HLine)
self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.line_3 = QtGui.QFrame(dialog_groundtruth)
self.line_3.setEnabled(True)
self.line_3.setGeometry(QtCore.QRect(580, 360, 231, 20))
font = QtGui.QFont()
font.setWeight(50)
font.setBold(False)
self.line_3.setFont(font)
self.line_3.setToolTip("")
self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
self.line_3.setLineWidth(1)
self.line_3.setMidLineWidth(0)
self.line_3.setFrameShape(QtGui.QFrame.HLine)
self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
self.line_3.setObjectName("line_3")
self.label_creation_sentence = QtGui.QLabel(dialog_groundtruth)
self.label_creation_sentence.setGeometry(QtCore.QRect(625, 450, 181, 16))
font = QtGui.QFont()
font.setUnderline(False)
self.label_creation_sentence.setFont(font)
self.label_creation_sentence.setObjectName("label_creation_sentence")
self.label_moving_sentence = QtGui.QLabel(dialog_groundtruth)
self.label_moving_sentence.setGeometry(QtCore.QRect(625, 480, 211, 16))
font = QtGui.QFont()
font.setUnderline(False)
self.label_moving_sentence.setFont(font)
self.label_moving_sentence.setObjectName("label_moving_sentence")
self.label_creation_title = QtGui.QLabel(dialog_groundtruth)
self.label_creation_title.setGeometry(QtCore.QRect(555, 447, 61, 20))
font = QtGui.QFont()
font.setPointSize(9)
font.setWeight(50)
font.setUnderline(True)
font.setBold(False)
self.label_creation_title.setFont(font)
self.label_creation_title.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_creation_title.setObjectName("label_creation_title")
self.label_moving_title = QtGui.QLabel(dialog_groundtruth)
self.label_moving_title.setGeometry(QtCore.QRect(555, 477, 61, 20))
font = QtGui.QFont()
font.setPointSize(9)
font.setUnderline(True)
self.label_moving_title.setFont(font)
self.label_moving_title.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_moving_title.setObjectName("label_moving_title")
self.label_deletion_title = QtGui.QLabel(dialog_groundtruth)
self.label_deletion_title.setGeometry(QtCore.QRect(555, 507, 61, 20))
font = QtGui.QFont()
font.setPointSize(9)
font.setWeight(50)
font.setUnderline(True)
font.setBold(False)
self.label_deletion_title.setFont(font)
self.label_deletion_title.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_deletion_title.setObjectName("label_deletion_title")
self.label_deletion_sentence_1 = QtGui.QLabel(dialog_groundtruth)
self.label_deletion_sentence_1.setGeometry(QtCore.QRect(625, 510, 211, 16))
font = QtGui.QFont()
font.setUnderline(False)
self.label_deletion_sentence_1.setFont(font)
self.label_deletion_sentence_1.setObjectName("label_deletion_sentence_1")
self.label_deletion_sentence_2 = QtGui.QLabel(dialog_groundtruth)
self.label_deletion_sentence_2.setGeometry(QtCore.QRect(625, 530, 231, 16))
font = QtGui.QFont()
font.setUnderline(False)
self.label_deletion_sentence_2.setFont(font)
self.label_deletion_sentence_2.setObjectName("label_deletion_sentence_2")
self.label_direction = QtGui.QLabel(dialog_groundtruth)
self.label_direction.setGeometry(QtCore.QRect(150, 15, 91, 20))
font = QtGui.QFont()
font.setWeight(75)
font.setUnderline(True)
font.setBold(True)
self.label_direction.setFont(font)
self.label_direction.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_direction.setObjectName("label_direction")
self.comboBox_direction = QtGui.QComboBox(dialog_groundtruth)
self.comboBox_direction.setGeometry(QtCore.QRect(250, 15, 141, 22))
self.comboBox_direction.setObjectName("comboBox_direction")
self.comboBox_direction.addItem("")
self.comboBox_direction.addItem("")
self.comboBox_direction.addItem("")
self.comboBox_direction.addItem("")
self.retranslateUi(dialog_groundtruth)
QtCore.QObject.connect(self.pushButton_cancel, QtCore.SIGNAL("clicked()"), dialog_groundtruth.close)
QtCore.QMetaObject.connectSlotsByName(dialog_groundtruth)
def retranslateUi(self, dialog_groundtruth):
dialog_groundtruth.setWindowTitle(QtGui.QApplication.translate("dialog_groundtruth", "Area Counting", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_save_area.setText(QtGui.QApplication.translate("dialog_groundtruth", "Save Area", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_cancel.setText(QtGui.QApplication.translate("dialog_groundtruth", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
self.toolButton_line.setText(QtGui.QApplication.translate("dialog_groundtruth", "Line", None, QtGui.QApplication.UnicodeUTF8))
self.toolButton_rect.setText(QtGui.QApplication.translate("dialog_groundtruth", "Rect", None, QtGui.QApplication.UnicodeUTF8))
self.toolButton_poly.setText(QtGui.QApplication.translate("dialog_groundtruth", "Poly", None, QtGui.QApplication.UnicodeUTF8))
self.toolButton_move.setText(QtGui.QApplication.translate("dialog_groundtruth", "Move", None, QtGui.QApplication.UnicodeUTF8))
self.label_title.setText(QtGui.QApplication.translate("dialog_groundtruth", "Current Action", None, QtGui.QApplication.UnicodeUTF8))
self.label_action.setText(QtGui.QApplication.translate("dialog_groundtruth", "nothing", None, QtGui.QApplication.UnicodeUTF8))
self.label_instructions.setText(QtGui.QApplication.translate("dialog_groundtruth", "Instructions", None, QtGui.QApplication.UnicodeUTF8))
self.label_creation_sentence.setText(QtGui.QApplication.translate("dialog_groundtruth", "select an object and draw it (LMB)", None, QtGui.QApplication.UnicodeUTF8))
self.label_moving_sentence.setText(QtGui.QApplication.translate("dialog_groundtruth", "select a blue object and move it (LMB)", None, QtGui.QApplication.UnicodeUTF8))
self.label_creation_title.setText(QtGui.QApplication.translate("dialog_groundtruth", "Creation:", None, QtGui.QApplication.UnicodeUTF8))
self.label_moving_title.setText(QtGui.QApplication.translate("dialog_groundtruth", "Moving:", None, QtGui.QApplication.UnicodeUTF8))
self.label_deletion_title.setText(QtGui.QApplication.translate("dialog_groundtruth", "Deletion:", None, QtGui.QApplication.UnicodeUTF8))
self.label_deletion_sentence_1.setText(QtGui.QApplication.translate("dialog_groundtruth", "One: select it (LMB) and click on \'del\'", None, QtGui.QApplication.UnicodeUTF8))
self.label_deletion_sentence_2.setText(QtGui.QApplication.translate("dialog_groundtruth", "All : select them (LMB) and click on \'esc\'", None, QtGui.QApplication.UnicodeUTF8))
self.label_direction.setText(QtGui.QApplication.translate("dialog_groundtruth", "Direction:", None, QtGui.QApplication.UnicodeUTF8))
self.comboBox_direction.setItemText(0, QtGui.QApplication.translate("dialog_groundtruth", "from bottom to top", None, QtGui.QApplication.UnicodeUTF8))
self.comboBox_direction.setItemText(1, QtGui.QApplication.translate("dialog_groundtruth", "from top to bottom", None, QtGui.QApplication.UnicodeUTF8))
self.comboBox_direction.setItemText(2, QtGui.QApplication.translate("dialog_groundtruth", "from left to right", None, QtGui.QApplication.UnicodeUTF8))
self.comboBox_direction.setItemText(3, QtGui.QApplication.translate("dialog_groundtruth", "from right to left", None, QtGui.QApplication.UnicodeUTF8))
from graphicsviewGroundTruth import graphicsviewAreaCounting
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
dialog_groundtruth = QtGui.QDialog()
ui = Ui_dialog_groundtruth()
ui.setupUi(dialog_groundtruth)
dialog_groundtruth.show()
sys.exit(app.exec_()) |
Partager