Commit b32e6a72 authored by DN's avatar DN
Browse files

Changed label of apply Roi Button.

parent 02b4d25d
......@@ -58,6 +58,19 @@ class RectRoiWidget(Qt.QWidget):
layout = Qt.QHBoxLayout(self)
layout.setContentsMargins(0, 0, 0, 0)
layout.addWidget(Qt.QLabel('x='))
self._xEdit = edit = Qt.QLineEdit()
layout.addWidget(edit, stretch=0, alignment=Qt.Qt.AlignLeft)
layout.addWidget(Qt.QLabel('y='))
self._yEdit = edit = Qt.QLineEdit()
layout.addWidget(edit, stretch=0, alignment=Qt.Qt.AlignLeft)
self._wEdit = edit = Qt.QLineEdit()
layout.addWidget(Qt.QLabel('w='))
layout.addWidget(edit, stretch=0, alignment=Qt.Qt.AlignLeft)
self._hEdit = edit = Qt.QLineEdit()
layout.addWidget(Qt.QLabel('h='))
layout.addWidget(edit, stretch=0, alignment=Qt.Qt.AlignLeft)
style = Qt.QApplication.style()
icon = style.standardIcon(Qt.QStyle.SP_DialogCloseButton)
self.__discardBn = discardBn = Qt.QToolButton()
......@@ -73,23 +86,12 @@ class RectRoiWidget(Qt.QWidget):
applyBn.setToolTip('Apply ROI')
applyBn.setStatusTip('Apply ROI')
applyBn.setIcon(icon)
applyBn.setToolButtonStyle(Qt.Qt.ToolButtonTextBesideIcon)
applyBn.setText('To Q Space')
applyBn.setEnabled(False)
layout.addWidget(applyBn)
applyBn.clicked.connect(self.__applyRoi)
layout.addWidget(Qt.QLabel('x='))
self._xEdit = edit = Qt.QLineEdit()
layout.addWidget(edit, stretch=0, alignment=Qt.Qt.AlignLeft)
layout.addWidget(Qt.QLabel('y='))
self._yEdit = edit = Qt.QLineEdit()
layout.addWidget(edit, stretch=0, alignment=Qt.Qt.AlignLeft)
self._wEdit = edit = Qt.QLineEdit()
layout.addWidget(Qt.QLabel('w='))
layout.addWidget(edit, stretch=0, alignment=Qt.Qt.AlignLeft)
self._hEdit = edit = Qt.QLineEdit()
layout.addWidget(Qt.QLabel('h='))
layout.addWidget(edit, stretch=0, alignment=Qt.Qt.AlignLeft)
fm = edit.fontMetrics()
padding = 2 * fm.width('0')
text = '0' * 8
......@@ -184,14 +186,6 @@ class IntensityView(Qt.QMainWindow):
**kwargs):
super(IntensityView, self).__init__(parent=parent)
# self.__plotWindow = plotWindow = PlotWindow(aspectRatio=True,
# curveStyle=False,
# mask=False,
# roi=False,
# **kwargs)
# plotWindow.setKeepDataAspectRatio(True)
# plotWindow.setActiveCurveHandling(False)
self.__plotWindow = plotWindow = XsocsPlot2D()
dock = Qt.QDockWidget(self)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment