# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'ImageDisplay.ui'
#
# Created: Thu May 05 09:38:21 2016
#      by: pyside-uic 0.2.15 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!

from PySide import QtCore, QtGui

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(510, 637)
        MainWindow.setUnifiedTitleAndToolBarOnMac(False)
        self.centralwidget = QtGui.QWidget(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.label_4 = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_4.addWidget(self.label_4)
        self.label_5 = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_4.addWidget(self.label_5)
        self.horizontalLayout_2.addLayout(self.verticalLayout_4)
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.seriesLabel = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.seriesLabel.sizePolicy().hasHeightForWidth())
        self.seriesLabel.setSizePolicy(sizePolicy)
        self.seriesLabel.setAutoFillBackground(False)
        self.seriesLabel.setStyleSheet("background-color : white")
        self.seriesLabel.setText("")
        self.seriesLabel.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
        self.seriesLabel.setObjectName("seriesLabel")
        self.verticalLayout_5.addWidget(self.seriesLabel)
        self.fileNameLabel = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fileNameLabel.sizePolicy().hasHeightForWidth())
        self.fileNameLabel.setSizePolicy(sizePolicy)
        self.fileNameLabel.setStyleSheet("background-color : white")
        self.fileNameLabel.setText("")
        self.fileNameLabel.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
        self.fileNameLabel.setObjectName("fileNameLabel")
        self.verticalLayout_5.addWidget(self.fileNameLabel)
        self.horizontalLayout_2.addLayout(self.verticalLayout_5)
        self.verticalLayout_6.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setObjectName("label_3")
        self.verticalLayout.addWidget(self.label_3)
        self.label_2 = QtGui.QLabel(self.centralwidget)
        self.label_2.setObjectName("label_2")
        self.verticalLayout.addWidget(self.label_2)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.spinTime = QtGui.QSpinBox(self.centralwidget)
        self.spinTime.setMinimum(1)
        self.spinTime.setObjectName("spinTime")
        self.verticalLayout_2.addWidget(self.spinTime)
        self.spinSlice = QtGui.QSpinBox(self.centralwidget)
        self.spinSlice.setMinimum(1)
        self.spinSlice.setMaximum(100)
        self.spinSlice.setObjectName("spinSlice")
        self.verticalLayout_2.addWidget(self.spinSlice)
        self.horizontalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.sliderTime = QtGui.QSlider(self.centralwidget)
        self.sliderTime.setMinimum(1)
        self.sliderTime.setOrientation(QtCore.Qt.Horizontal)
        self.sliderTime.setObjectName("sliderTime")
        self.verticalLayout_3.addWidget(self.sliderTime)
        self.sliderSlice = QtGui.QSlider(self.centralwidget)
        self.sliderSlice.setMinimum(1)
        self.sliderSlice.setOrientation(QtCore.Qt.Horizontal)
        self.sliderSlice.setObjectName("sliderSlice")
        self.verticalLayout_3.addWidget(self.sliderSlice)
        self.horizontalLayout.addLayout(self.verticalLayout_3)
        self.verticalLayout_6.addLayout(self.horizontalLayout)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.pixelVal = QtGui.QLabel(self.centralwidget)
        self.pixelVal.setObjectName("pixelVal")
        self.horizontalLayout_3.addWidget(self.pixelVal)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.roiFreehand = QtGui.QToolButton(self.centralwidget)
        self.roiFreehand.setCheckable(True)
        self.roiFreehand.setObjectName("roiFreehand")
        self.horizontalLayout_3.addWidget(self.roiFreehand)
        self.roiButton = QtGui.QToolButton(self.centralwidget)
        self.roiButton.setCheckable(True)
        self.roiButton.setObjectName("roiButton")
        self.horizontalLayout_3.addWidget(self.roiButton)
        self.roiClearSlice = QtGui.QToolButton(self.centralwidget)
        self.roiClearSlice.setObjectName("roiClearSlice")
        self.horizontalLayout_3.addWidget(self.roiClearSlice)
        self.roiClear = QtGui.QToolButton(self.centralwidget)
        self.roiClear.setObjectName("roiClear")
        self.horizontalLayout_3.addWidget(self.roiClear)
        self.verticalLayout_6.addLayout(self.horizontalLayout_3)
        self.scrollArea = QtGui.QScrollArea(self.centralwidget)
        self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame)
        self.scrollArea.setFrameShadow(QtGui.QFrame.Plain)
        self.scrollArea.setLineWidth(1)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 490, 450))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scrollAreaWidgetContents.sizePolicy().hasHeightForWidth())
        self.scrollAreaWidgetContents.setSizePolicy(sizePolicy)
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.gridLayout_2 = QtGui.QGridLayout(self.scrollAreaWidgetContents)
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label = ImageSliceDisplayLabel(self.scrollAreaWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setAutoFillBackground(False)
        self.label.setFrameShape(QtGui.QFrame.Box)
        self.label.setText("")
        self.label.setScaledContents(True)
        self.label.setMargin(0)
        self.label.setIndent(0)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout_6.addWidget(self.scrollArea)
        self.gridLayout.addLayout(self.verticalLayout_6, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 510, 21))
        self.menubar.setObjectName("menubar")
        self.menuImage = QtGui.QMenu(self.menubar)
        self.menuImage.setObjectName("menuImage")
        self.menuOpen = QtGui.QMenu(self.menuImage)
        self.menuOpen.setObjectName("menuOpen")
        self.menuSave_ROI = QtGui.QMenu(self.menuImage)
        self.menuSave_ROI.setObjectName("menuSave_ROI")
        self.menuLoad_ROI = QtGui.QMenu(self.menuImage)
        self.menuLoad_ROI.setObjectName("menuLoad_ROI")
        self.menuAnalysis = QtGui.QMenu(self.menubar)
        self.menuAnalysis.setObjectName("menuAnalysis")
        self.menuROI = QtGui.QMenu(self.menubar)
        self.menuROI.setObjectName("menuROI")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionMaximum_Intensity_Map = QtGui.QAction(MainWindow)
        self.actionMaximum_Intensity_Map.setObjectName("actionMaximum_Intensity_Map")
        self.actionMean_baseline_image = QtGui.QAction(MainWindow)
        self.actionMean_baseline_image.setObjectName("actionMean_baseline_image")
        self.actionAorta_Seed_Voxel = QtGui.QAction(MainWindow)
        self.actionAorta_Seed_Voxel.setObjectName("actionAorta_Seed_Voxel")
        self.actionFloodfill_from_seed = QtGui.QAction(MainWindow)
        self.actionFloodfill_from_seed.setObjectName("actionFloodfill_from_seed")
        self.actionSelect_AIF_voxels = QtGui.QAction(MainWindow)
        self.actionSelect_AIF_voxels.setObjectName("actionSelect_AIF_voxels")
        self.actionSave = QtGui.QAction(MainWindow)
        self.actionSave.setObjectName("actionSave")
        self.actionDICOM = QtGui.QAction(MainWindow)
        self.actionDICOM.setObjectName("actionDICOM")
        self.actionNpz = QtGui.QAction(MainWindow)
        self.actionNpz.setObjectName("actionNpz")
        self.actionMaximum_intensity_timepoint_map = QtGui.QAction(MainWindow)
        self.actionMaximum_intensity_timepoint_map.setObjectName("actionMaximum_intensity_timepoint_map")
        self.actionAorta_seed_score_map = QtGui.QAction(MainWindow)
        self.actionAorta_seed_score_map.setObjectName("actionAorta_seed_score_map")
        self.actionSave_ROI = QtGui.QAction(MainWindow)
        self.actionSave_ROI.setObjectName("actionSave_ROI")
        self.actionSelect_voxels_2 = QtGui.QAction(MainWindow)
        self.actionSelect_voxels_2.setObjectName("actionSelect_voxels_2")
        self.actionZeros_map = QtGui.QAction(MainWindow)
        self.actionZeros_map.setObjectName("actionZeros_map")
        self.actionShow_data = QtGui.QAction(MainWindow)
        self.actionShow_data.setObjectName("actionShow_data")
        self.actionAorta_mask_method_auto = QtGui.QAction(MainWindow)
        self.actionAorta_mask_method_auto.setObjectName("actionAorta_mask_method_auto")
        self.actionLoad_ROI = QtGui.QAction(MainWindow)
        self.actionLoad_ROI.setObjectName("actionLoad_ROI")
        self.action_saveROIasRaw = QtGui.QAction(MainWindow)
        self.action_saveROIasRaw.setObjectName("action_saveROIasRaw")
        self.action_saveROIasNpz = QtGui.QAction(MainWindow)
        self.action_saveROIasNpz.setObjectName("action_saveROIasNpz")
        self.actionLoadROI_raw = QtGui.QAction(MainWindow)
        self.actionLoadROI_raw.setObjectName("actionLoadROI_raw")
        self.actionLoadRoi_npz = QtGui.QAction(MainWindow)
        self.actionLoadRoi_npz.setObjectName("actionLoadRoi_npz")
        self.actionFit_2CFM = QtGui.QAction(MainWindow)
        self.actionFit_2CFM.setObjectName("actionFit_2CFM")
        self.menuOpen.addAction(self.actionDICOM)
        self.menuOpen.addAction(self.actionNpz)
        self.menuSave_ROI.addAction(self.action_saveROIasRaw)
        self.menuSave_ROI.addAction(self.action_saveROIasNpz)
        self.menuLoad_ROI.addAction(self.actionLoadROI_raw)
        self.menuLoad_ROI.addAction(self.actionLoadRoi_npz)
        self.menuImage.addAction(self.menuOpen.menuAction())
        self.menuImage.addAction(self.actionShow_data)
        self.menuImage.addSeparator()
        self.menuImage.addAction(self.actionSave)
        self.menuImage.addSeparator()
        self.menuImage.addAction(self.menuSave_ROI.menuAction())
        self.menuImage.addAction(self.menuLoad_ROI.menuAction())
        self.menuAnalysis.addAction(self.actionMaximum_Intensity_Map)
        self.menuAnalysis.addAction(self.actionMean_baseline_image)
        self.menuAnalysis.addAction(self.actionMaximum_intensity_timepoint_map)
        self.menuAnalysis.addAction(self.actionZeros_map)
        self.menuAnalysis.addAction(self.actionAorta_seed_score_map)
        self.menuROI.addAction(self.actionSelect_AIF_voxels)
        self.menuROI.addAction(self.actionAorta_mask_method_auto)
        self.menuROI.addAction(self.actionSelect_voxels_2)
        self.menubar.addAction(self.menuImage.menuAction())
        self.menubar.addAction(self.menuAnalysis.menuAction())
        self.menubar.addAction(self.menuROI.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.spinSlice, QtCore.SIGNAL("valueChanged(int)"), self.sliderSlice.setValue)
        QtCore.QObject.connect(self.sliderSlice, QtCore.SIGNAL("valueChanged(int)"), self.spinSlice.setValue)
        QtCore.QObject.connect(self.spinTime, QtCore.SIGNAL("valueChanged(int)"), self.sliderTime.setValue)
        QtCore.QObject.connect(self.sliderTime, QtCore.SIGNAL("valueChanged(int)"), self.spinTime.setValue)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "DCE-MR analysis: FOR RESEARCH PURPOSES ONLY.", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("MainWindow", "Series name", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("MainWindow", "File name", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("MainWindow", "time point", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("MainWindow", "slice", None, QtGui.QApplication.UnicodeUTF8))
        self.pixelVal.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.roiFreehand.setText(QtGui.QApplication.translate("MainWindow", "Draw freehand", None, QtGui.QApplication.UnicodeUTF8))
        self.roiButton.setText(QtGui.QApplication.translate("MainWindow", "Draw ROI", None, QtGui.QApplication.UnicodeUTF8))
        self.roiClearSlice.setText(QtGui.QApplication.translate("MainWindow", "Clear Slice", None, QtGui.QApplication.UnicodeUTF8))
        self.roiClear.setText(QtGui.QApplication.translate("MainWindow", "Clear ROI", None, QtGui.QApplication.UnicodeUTF8))
        self.menuImage.setTitle(QtGui.QApplication.translate("MainWindow", "Image", None, QtGui.QApplication.UnicodeUTF8))
        self.menuOpen.setTitle(QtGui.QApplication.translate("MainWindow", "Open", None, QtGui.QApplication.UnicodeUTF8))
        self.menuSave_ROI.setTitle(QtGui.QApplication.translate("MainWindow", "Save ROI", None, QtGui.QApplication.UnicodeUTF8))
        self.menuLoad_ROI.setTitle(QtGui.QApplication.translate("MainWindow", "Load ROI", None, QtGui.QApplication.UnicodeUTF8))
        self.menuAnalysis.setTitle(QtGui.QApplication.translate("MainWindow", "Analysis", None, QtGui.QApplication.UnicodeUTF8))
        self.menuROI.setTitle(QtGui.QApplication.translate("MainWindow", "AIF", None, QtGui.QApplication.UnicodeUTF8))
        self.actionMaximum_Intensity_Map.setText(QtGui.QApplication.translate("MainWindow", "Maximum intensity map", None, QtGui.QApplication.UnicodeUTF8))
        self.actionMean_baseline_image.setText(QtGui.QApplication.translate("MainWindow", "Mean baseline map", None, QtGui.QApplication.UnicodeUTF8))
        self.actionAorta_Seed_Voxel.setText(QtGui.QApplication.translate("MainWindow", "Aorta Seed Voxel", None, QtGui.QApplication.UnicodeUTF8))
        self.actionFloodfill_from_seed.setText(QtGui.QApplication.translate("MainWindow", "Floodfill from seed", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSelect_AIF_voxels.setText(QtGui.QApplication.translate("MainWindow", "Aorta mask method user", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave.setText(QtGui.QApplication.translate("MainWindow", "Save series as npz", None, QtGui.QApplication.UnicodeUTF8))
        self.actionDICOM.setText(QtGui.QApplication.translate("MainWindow", "DICOM", None, QtGui.QApplication.UnicodeUTF8))
        self.actionNpz.setText(QtGui.QApplication.translate("MainWindow", "npz", None, QtGui.QApplication.UnicodeUTF8))
        self.actionMaximum_intensity_timepoint_map.setText(QtGui.QApplication.translate("MainWindow", "Time to peak map", None, QtGui.QApplication.UnicodeUTF8))
        self.actionAorta_seed_score_map.setText(QtGui.QApplication.translate("MainWindow", "Aorta seed score map", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_ROI.setText(QtGui.QApplication.translate("MainWindow", "Save ROI raw", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSelect_voxels_2.setText(QtGui.QApplication.translate("MainWindow", "Global automated method", None, QtGui.QApplication.UnicodeUTF8))
        self.actionZeros_map.setText(QtGui.QApplication.translate("MainWindow", "Zero minimum intensity map", None, QtGui.QApplication.UnicodeUTF8))
        self.actionShow_data.setText(QtGui.QApplication.translate("MainWindow", "Show data", None, QtGui.QApplication.UnicodeUTF8))
        self.actionAorta_mask_method_auto.setText(QtGui.QApplication.translate("MainWindow", "Aorta mask method auto", None, QtGui.QApplication.UnicodeUTF8))
        self.actionLoad_ROI.setText(QtGui.QApplication.translate("MainWindow", "Load ROI", None, QtGui.QApplication.UnicodeUTF8))
        self.action_saveROIasRaw.setText(QtGui.QApplication.translate("MainWindow", "raw for PMI", None, QtGui.QApplication.UnicodeUTF8))
        self.action_saveROIasNpz.setText(QtGui.QApplication.translate("MainWindow", "npz", None, QtGui.QApplication.UnicodeUTF8))
        self.actionLoadROI_raw.setText(QtGui.QApplication.translate("MainWindow", "raw from pmi", None, QtGui.QApplication.UnicodeUTF8))
        self.actionLoadRoi_npz.setText(QtGui.QApplication.translate("MainWindow", "npz", None, QtGui.QApplication.UnicodeUTF8))
        self.actionFit_2CFM.setText(QtGui.QApplication.translate("MainWindow", "Fit 2CFM", None, QtGui.QApplication.UnicodeUTF8))

from ImageDisplayWindow.ImageSliceDisplayLabel import ImageSliceDisplayLabel
