예제 #1
0
class Ui_imageViewWidget(object):
		def setupUi(self, imageViewWidget):
				imageViewWidget.setObjectName(_fromUtf8("imageViewWidget"))
				imageViewWidget.resize(479, 334)
				self.gridLayout = QtModule.QGridLayout(imageViewWidget)
				self.gridLayout.setContentsMargins ( 4, 4, 4, 4 )
				self.gridLayout.setHorizontalSpacing(4)
				self.gridLayout.setVerticalSpacing(2)
				self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
				self.horizontalLayout = QtModule.QHBoxLayout()
				self.horizontalLayout.setSpacing(8)
				self.horizontalLayout.setContentsMargins(0, -1, 0, -1)
				self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
				self.label = QtModule.QLabel(imageViewWidget)
				self.label.setObjectName(_fromUtf8("label"))
				self.horizontalLayout.addWidget(self.label)
				self.selector = QtModule.QComboBox(imageViewWidget)
				self.selector.setMinimumSize(QtCore.QSize(120, 20))
				self.selector.setMaximumSize(QtCore.QSize(16777215, 20))
				self.selector.setFrame(True)
				self.selector.setObjectName(_fromUtf8("selector"))
				self.horizontalLayout.addWidget(self.selector)
				self.btn_reset = QtModule.QToolButton(imageViewWidget)
				self.btn_reset.setObjectName(_fromUtf8("btn_reset"))
				self.horizontalLayout.addWidget(self.btn_reset)
				spacerItem = QtModule.QSpacerItem(68, 20, QtModule.QSizePolicy.Expanding, QtModule.QSizePolicy.Minimum)
				self.horizontalLayout.addItem(spacerItem)
				self.chk_auto = QtModule.QCheckBox(imageViewWidget)
				self.chk_auto.setObjectName(_fromUtf8("chk_auto"))
				self.horizontalLayout.addWidget(self.chk_auto)
				self.btn_render = QtModule.QPushButton(imageViewWidget)
				self.btn_render.setMaximumSize(QtCore.QSize(16777215, 20))
				self.btn_render.setObjectName(_fromUtf8("btn_render"))
				self.horizontalLayout.addWidget(self.btn_render)
				self.horizontalLayout.setStretch(3, 1)
				self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
				self.imageArea = ImageView(imageViewWidget)
				self.imageArea.setObjectName(_fromUtf8("imageArea"))
				self.gridLayout.addWidget(self.imageArea, 1, 0, 1, 1)
				self.gridLayout.setRowStretch(1, 1)

				self.retranslateUi(imageViewWidget)
				if  usePyQt4 :
					QtCore.QObject.connect(self.btn_render, QtCore.SIGNAL(_fromUtf8("clicked()")), imageViewWidget.updateViewer)
					QtCore.QObject.connect(self.btn_reset, QtCore.SIGNAL(_fromUtf8("clicked()")), self.imageArea.resetZoom)
				else :
					self.btn_render.clicked.connect( imageViewWidget.updateViewer)
					self.btn_reset.clicked.connect( self.imageArea.resetZoom)
				QtCore.QMetaObject.connectSlotsByName(imageViewWidget)

		def retranslateUi(self, imageViewWidget):
				imageViewWidget.setWindowTitle(_translate("imageViewWidget", "ImageView", None))
				self.label.setText(_translate("imageViewWidget", "Node", None))
				self.btn_reset.setToolTip(_translate("imageViewWidget", "Reset zoom", None))
				self.btn_reset.setText(_translate("imageViewWidget", "1:1", None))
				self.chk_auto.setText(_translate("imageViewWidget", "auto", None))
				self.btn_render.setText(_translate("imageViewWidget", "Update", None))
예제 #2
0
    def setupUi(self, imageViewWidget):
        imageViewWidget.setObjectName(_fromUtf8("imageViewWidget"))
        imageViewWidget.resize(479, 520)
        self.gridLayout = QtGui.QGridLayout(imageViewWidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(imageViewWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.selector = QtGui.QComboBox(imageViewWidget)
        self.selector.setMinimumSize(QtCore.QSize(120, 20))
        self.selector.setMaximumSize(QtCore.QSize(16777215, 20))
        self.selector.setFrame(True)
        self.selector.setObjectName(_fromUtf8("selector"))
        self.horizontalLayout.addWidget(self.selector)
        self.btn_render = QtGui.QPushButton(imageViewWidget)
        self.btn_render.setMaximumSize(QtCore.QSize(16777215, 20))
        self.btn_render.setObjectName(_fromUtf8("btn_render"))
        self.horizontalLayout.addWidget(self.btn_render)
        spacerItem = QtGui.QSpacerItem(68, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.imageArea = ImageView(imageViewWidget)
        self.imageArea.setObjectName(_fromUtf8("imageArea"))
        self.gridLayout.addWidget(self.imageArea, 1, 0, 1, 1)

        self.retranslateUi(imageViewWidget)
        QtCore.QObject.connect(self.btn_render, QtCore.SIGNAL(_fromUtf8("clicked()")), imageViewWidget.updateViewer)
        QtCore.QMetaObject.connectSlotsByName(imageViewWidget)
예제 #3
0
    def setupUi(self, imageViewWidget):
        imageViewWidget.setObjectName(_fromUtf8("imageViewWidget"))
        imageViewWidget.resize(479, 334)
        self.gridLayout = QtGui.QGridLayout(imageViewWidget)
        self.gridLayout.setMargin(4)
        self.gridLayout.setHorizontalSpacing(4)
        self.gridLayout.setVerticalSpacing(2)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(8)
        self.horizontalLayout.setContentsMargins(0, -1, 0, -1)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(imageViewWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.selector = QtGui.QComboBox(imageViewWidget)
        self.selector.setMinimumSize(QtCore.QSize(120, 20))
        self.selector.setMaximumSize(QtCore.QSize(16777215, 20))
        self.selector.setFrame(True)
        self.selector.setObjectName(_fromUtf8("selector"))
        self.horizontalLayout.addWidget(self.selector)
        self.btn_reset = QtGui.QToolButton(imageViewWidget)
        self.btn_reset.setObjectName(_fromUtf8("btn_reset"))
        self.horizontalLayout.addWidget(self.btn_reset)
        spacerItem = QtGui.QSpacerItem(68, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.chk_auto = QtGui.QCheckBox(imageViewWidget)
        self.chk_auto.setObjectName(_fromUtf8("chk_auto"))
        self.horizontalLayout.addWidget(self.chk_auto)
        self.btn_render = QtGui.QPushButton(imageViewWidget)
        self.btn_render.setMaximumSize(QtCore.QSize(16777215, 20))
        self.btn_render.setObjectName(_fromUtf8("btn_render"))
        self.horizontalLayout.addWidget(self.btn_render)
        self.horizontalLayout.setStretch(3, 1)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.imageArea = ImageView(imageViewWidget)
        self.imageArea.setObjectName(_fromUtf8("imageArea"))
        self.gridLayout.addWidget(self.imageArea, 1, 0, 1, 1)
        self.gridLayout.setRowStretch(1, 1)

        self.retranslateUi(imageViewWidget)
        QtCore.QObject.connect(self.btn_render, QtCore.SIGNAL(_fromUtf8("clicked()")), imageViewWidget.updateViewer)
        QtCore.QObject.connect(self.btn_reset, QtCore.SIGNAL(_fromUtf8("clicked()")), self.imageArea.resetZoom)
        QtCore.QMetaObject.connectSlotsByName(imageViewWidget)