CSC400 3DVis ScanPropmpt.py

From CSclasswiki
Jump to: navigation, search
# -*- coding: utf-8 -*-
#
# Created: Sat Feb 21 23:00:32 2009
#      by: PyQt4 UI code generator 4.3.3
#
# Note added by K Dwan, 5.3.09: This has been changed since being generated, so much
# that re-generating the .ui file will actually break things. That said, it's a little
# difficult to document this because it was written by a code-generator.

from PyQt4 import QtCore, QtGui
from DrawPoints import Points

class Ui_MainWindow(object):
	def setupUi(self, MainWindow, imgdir, scan):
		MainWindow.setObjectName("MainWindow")
		MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,1100,850).size()).expandedTo(MainWindow.minimumSizeHint()))

		self.centralwidget = QtGui.QWidget(MainWindow)
		self.centralwidget.setObjectName("centralwidget")

		self.widget = QtGui.QWidget(self.centralwidget)
		self.widget.setGeometry(QtCore.QRect(0,0,MainWindow.width(),MainWindow.height()-20))
		self.widget.setObjectName("widget")

		self.vboxlayout = QtGui.QVBoxLayout(self.widget)
		self.vboxlayout.setObjectName("vboxlayout")

		self.splitter = QtGui.QSplitter(self.widget)
		self.splitter.setOrientation(QtCore.Qt.Vertical)
		self.splitter.setObjectName("splitter")

		#This is the textbox above the image
		self.textEdit = QtGui.QTextEdit(self.splitter)
		self.textEdit.setObjectName("textEdit")
		self.textEdit.setMaximumSize(MainWindow.width(),60)

		#This is the image widget, as defined in DrawPoints.py
		self.widget1 = Points(self.textEdit, imgdir, scan, QtGui.QWidget(self.splitter))
		self.widget1.setObjectName("widget1")

		self.vboxlayout.addWidget(self.splitter)

		self.hboxlayout = QtGui.QHBoxLayout()
		self.hboxlayout.setObjectName("hboxlayout")

		self.nextButton = QtGui.QPushButton(self.widget)
		self.nextButton.setObjectName("nextButton")
		self.hboxlayout.addWidget(self.nextButton)

		# In the planning stages thse buttons did something.
		#  now they're left because they possibly could be useful in future.
		#self.startButton = QtGui.QPushButton(self.widget)
		#self.startButton.setObjectName("startButton")
		#self.hboxlayout.addWidget(self.startButton)
		#self.selectButton = QtGui.QPushButton(self.widget)
		#self.selectButton.setObjectName("selectButton")
		#self.hboxlayout.addWidget(self.selectButton)

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

		self.saveButton = QtGui.QPushButton(self.widget)
		self.saveButton.setObjectName("saveButton")
		self.hboxlayout.addWidget(self.saveButton)
		self.vboxlayout.addLayout(self.hboxlayout)
		MainWindow.setCentralWidget(self.centralwidget)

		self.statusbar = QtGui.QStatusBar(MainWindow)
		self.statusbar.setObjectName("statusbar")
		MainWindow.setStatusBar(self.statusbar)

		self.retranslateUi(MainWindow)
		QtCore.QMetaObject.connectSlotsByName(MainWindow)

	def retranslateUi(self, MainWindow):
		MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
		self.nextButton.setText(QtGui.QApplication.translate("MainWindow", "Next", None, QtGui.QApplication.UnicodeUTF8))
		self.saveButton.setText(QtGui.QApplication.translate("MainWindow", "Exit", None, QtGui.QApplication.UnicodeUTF8))
		#self.selectButton.setText(QtGui.QApplication.translate("MainWindow", "Selection", None, QtGui.QApplication.UnicodeUTF8))
		#self.startButton.setText(QtGui.QApplication.translate("MainWindow", "Start", None, QtGui.QApplication.UnicodeUTF8))