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

# Form implementation generated from reading ui file './mw4/gui/widgets/hemisphere.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_HemisphereDialog(object):
    def setupUi(self, HemisphereDialog):
        HemisphereDialog.setObjectName("HemisphereDialog")
        HemisphereDialog.resize(800, 600)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(HemisphereDialog.sizePolicy().hasHeightForWidth())
        HemisphereDialog.setSizePolicy(sizePolicy)
        HemisphereDialog.setMinimumSize(QtCore.QSize(800, 600))
        HemisphereDialog.setMaximumSize(QtCore.QSize(1600, 1230))
        HemisphereDialog.setSizeIncrement(QtCore.QSize(10, 10))
        HemisphereDialog.setBaseSize(QtCore.QSize(10, 10))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        HemisphereDialog.setFont(font)
        self.verticalLayout = QtWidgets.QVBoxLayout(HemisphereDialog)
        self.verticalLayout.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout.setSpacing(10)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setSpacing(5)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.operationModeGroup = QtWidgets.QGroupBox(HemisphereDialog)
        self.operationModeGroup.setMinimumSize(QtCore.QSize(120, 0))
        self.operationModeGroup.setProperty("large", True)
        self.operationModeGroup.setObjectName("operationModeGroup")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.operationModeGroup)
        self.gridLayout_7.setContentsMargins(10, 15, 15, 10)
        self.gridLayout_7.setHorizontalSpacing(15)
        self.gridLayout_7.setVerticalSpacing(5)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.normalModeHem = QtWidgets.QRadioButton(self.operationModeGroup)
        self.normalModeHem.setMinimumSize(QtCore.QSize(0, 21))
        self.normalModeHem.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.normalModeHem.setFont(font)
        self.normalModeHem.setChecked(True)
        self.normalModeHem.setObjectName("normalModeHem")
        self.gridLayout_7.addWidget(self.normalModeHem, 0, 0, 1, 1)
        self.editModeHem = QtWidgets.QRadioButton(self.operationModeGroup)
        self.editModeHem.setMinimumSize(QtCore.QSize(0, 21))
        self.editModeHem.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.editModeHem.setFont(font)
        self.editModeHem.setObjectName("editModeHem")
        self.gridLayout_7.addWidget(self.editModeHem, 1, 0, 1, 1)
        self.alignmentModeHem = QtWidgets.QRadioButton(self.operationModeGroup)
        self.alignmentModeHem.setEnabled(True)
        self.alignmentModeHem.setMinimumSize(QtCore.QSize(0, 21))
        self.alignmentModeHem.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.alignmentModeHem.setFont(font)
        self.alignmentModeHem.setObjectName("alignmentModeHem")
        self.gridLayout_7.addWidget(self.alignmentModeHem, 2, 0, 1, 1)
        self.horizontalLayout.addWidget(self.operationModeGroup)
        self.groupBox_3 = QtWidgets.QGroupBox(HemisphereDialog)
        self.groupBox_3.setProperty("large", True)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout.setContentsMargins(10, 15, 15, 10)
        self.gridLayout.setHorizontalSpacing(15)
        self.gridLayout.setVerticalSpacing(10)
        self.gridLayout.setObjectName("gridLayout")
        self.showCelestial = QtWidgets.QCheckBox(self.groupBox_3)
        self.showCelestial.setMinimumSize(QtCore.QSize(0, 21))
        self.showCelestial.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.showCelestial.setFont(font)
        self.showCelestial.setObjectName("showCelestial")
        self.gridLayout.addWidget(self.showCelestial, 0, 1, 1, 1)
        self.showMountLimits = QtWidgets.QCheckBox(self.groupBox_3)
        self.showMountLimits.setMinimumSize(QtCore.QSize(0, 21))
        self.showMountLimits.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.showMountLimits.setFont(font)
        self.showMountLimits.setObjectName("showMountLimits")
        self.gridLayout.addWidget(self.showMountLimits, 0, 2, 1, 1)
        self.showAlignStar = QtWidgets.QCheckBox(self.groupBox_3)
        self.showAlignStar.setMinimumSize(QtCore.QSize(0, 21))
        self.showAlignStar.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.showAlignStar.setFont(font)
        self.showAlignStar.setObjectName("showAlignStar")
        self.gridLayout.addWidget(self.showAlignStar, 0, 0, 1, 1)
        self.showPolar = QtWidgets.QCheckBox(self.groupBox_3)
        self.showPolar.setEnabled(True)
        self.showPolar.setMinimumSize(QtCore.QSize(0, 21))
        self.showPolar.setMaximumSize(QtCore.QSize(16777215, 20))
        self.showPolar.setObjectName("showPolar")
        self.gridLayout.addWidget(self.showPolar, 1, 2, 1, 1)
        self.showSlewPath = QtWidgets.QCheckBox(self.groupBox_3)
        self.showSlewPath.setMinimumSize(QtCore.QSize(0, 21))
        self.showSlewPath.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.showSlewPath.setFont(font)
        self.showSlewPath.setObjectName("showSlewPath")
        self.gridLayout.addWidget(self.showSlewPath, 1, 1, 1, 1)
        self.showTerrain = QtWidgets.QCheckBox(self.groupBox_3)
        self.showTerrain.setMinimumSize(QtCore.QSize(0, 21))
        self.showTerrain.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.showTerrain.setFont(font)
        self.showTerrain.setObjectName("showTerrain")
        self.gridLayout.addWidget(self.showTerrain, 0, 3, 1, 1)
        self.showHorizon = QtWidgets.QCheckBox(self.groupBox_3)
        self.showHorizon.setMinimumSize(QtCore.QSize(0, 21))
        self.showHorizon.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.showHorizon.setFont(font)
        self.showHorizon.setChecked(True)
        self.showHorizon.setObjectName("showHorizon")
        self.gridLayout.addWidget(self.showHorizon, 1, 0, 1, 1)
        self.showIsoModel = QtWidgets.QCheckBox(self.groupBox_3)
        self.showIsoModel.setMinimumSize(QtCore.QSize(0, 21))
        self.showIsoModel.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.showIsoModel.setFont(font)
        self.showIsoModel.setObjectName("showIsoModel")
        self.gridLayout.addWidget(self.showIsoModel, 1, 3, 1, 1)
        self.horizontalLayout.addWidget(self.groupBox_3)
        self.operationMode = QtWidgets.QGroupBox(HemisphereDialog)
        self.operationMode.setProperty("large", True)
        self.operationMode.setObjectName("operationMode")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.operationMode)
        self.gridLayout_2.setContentsMargins(10, 15, 15, 10)
        self.gridLayout_2.setHorizontalSpacing(15)
        self.gridLayout_2.setVerticalSpacing(8)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label = QtWidgets.QLabel(self.operationMode)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMinimumSize(QtCore.QSize(50, 21))
        self.label.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.azimuth = QtWidgets.QLineEdit(self.operationMode)
        self.azimuth.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.azimuth.sizePolicy().hasHeightForWidth())
        self.azimuth.setSizePolicy(sizePolicy)
        self.azimuth.setMinimumSize(QtCore.QSize(0, 21))
        self.azimuth.setMaximumSize(QtCore.QSize(50, 20))
        self.azimuth.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.azimuth.setObjectName("azimuth")
        self.gridLayout_2.addWidget(self.azimuth, 3, 1, 1, 1)
        self.altitude = QtWidgets.QLineEdit(self.operationMode)
        self.altitude.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.altitude.sizePolicy().hasHeightForWidth())
        self.altitude.setSizePolicy(sizePolicy)
        self.altitude.setMinimumSize(QtCore.QSize(0, 21))
        self.altitude.setMaximumSize(QtCore.QSize(50, 20))
        self.altitude.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.altitude.setObjectName("altitude")
        self.gridLayout_2.addWidget(self.altitude, 0, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.operationMode)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setMinimumSize(QtCore.QSize(50, 21))
        self.label_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 3, 0, 1, 1)
        self.horizontalLayout.addWidget(self.operationMode)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.horizontalLayout.setStretch(3, 1)
        self.verticalLayout.addLayout(self.horizontalLayout)
        spacerItem1 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem1)
        self.tabWidget = QtWidgets.QTabWidget(HemisphereDialog)
        self.tabWidget.setElideMode(QtCore.Qt.ElideNone)
        self.tabWidget.setMovable(False)
        self.tabWidget.setObjectName("tabWidget")
        self.HemisphereTab = QtWidgets.QWidget()
        self.HemisphereTab.setObjectName("HemisphereTab")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.HemisphereTab)
        self.gridLayout_4.setContentsMargins(8, 12, 8, 8)
        self.gridLayout_4.setSpacing(4)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.hemisphere = Hemisphere(self.HemisphereTab)
        self.hemisphere.setObjectName("hemisphere")
        self.gridLayout_4.addWidget(self.hemisphere, 0, 0, 2, 1)
        self.tabWidget.addTab(self.HemisphereTab, "")
        self.HorizonTab = QtWidgets.QWidget()
        self.HorizonTab.setObjectName("HorizonTab")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.HorizonTab)
        self.gridLayout_5.setContentsMargins(8, 12, 8, 8)
        self.gridLayout_5.setSpacing(4)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.terrainImageGroup = QtWidgets.QGroupBox(self.HorizonTab)
        self.terrainImageGroup.setMinimumSize(QtCore.QSize(120, 0))
        self.terrainImageGroup.setMaximumSize(QtCore.QSize(120, 16777215))
        self.terrainImageGroup.setProperty("large", True)
        self.terrainImageGroup.setObjectName("terrainImageGroup")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.terrainImageGroup)
        self.gridLayout_6.setContentsMargins(5, 15, 5, 5)
        self.gridLayout_6.setSpacing(5)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.terrainAlpha = QtWidgets.QDoubleSpinBox(self.terrainImageGroup)
        self.terrainAlpha.setMinimumSize(QtCore.QSize(0, 21))
        self.terrainAlpha.setMaximumSize(QtCore.QSize(16777215, 20))
        self.terrainAlpha.setDecimals(1)
        self.terrainAlpha.setMaximum(1.0)
        self.terrainAlpha.setSingleStep(0.1)
        self.terrainAlpha.setProperty("value", 0.3)
        self.terrainAlpha.setObjectName("terrainAlpha")
        self.gridLayout_6.addWidget(self.terrainAlpha, 5, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.terrainImageGroup)
        self.label_4.setMinimumSize(QtCore.QSize(0, 21))
        self.label_4.setObjectName("label_4")
        self.gridLayout_6.addWidget(self.label_4, 5, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.terrainImageGroup)
        self.label_6.setMinimumSize(QtCore.QSize(0, 21))
        self.label_6.setObjectName("label_6")
        self.gridLayout_6.addWidget(self.label_6, 4, 0, 1, 1)
        self.terrainFileName = QtWidgets.QLineEdit(self.terrainImageGroup)
        self.terrainFileName.setMinimumSize(QtCore.QSize(0, 21))
        self.terrainFileName.setObjectName("terrainFileName")
        self.gridLayout_6.addWidget(self.terrainFileName, 2, 0, 1, 2)
        self.label_3 = QtWidgets.QLabel(self.terrainImageGroup)
        self.label_3.setMinimumSize(QtCore.QSize(60, 21))
        self.label_3.setObjectName("label_3")
        self.gridLayout_6.addWidget(self.label_3, 3, 0, 1, 1)
        self.azimuthShift = QtWidgets.QDoubleSpinBox(self.terrainImageGroup)
        self.azimuthShift.setMinimumSize(QtCore.QSize(50, 21))
        self.azimuthShift.setMaximumSize(QtCore.QSize(16777215, 20))
        self.azimuthShift.setDecimals(0)
        self.azimuthShift.setMinimum(-180.0)
        self.azimuthShift.setMaximum(180.0)
        self.azimuthShift.setSingleStep(5.0)
        self.azimuthShift.setObjectName("azimuthShift")
        self.gridLayout_6.addWidget(self.azimuthShift, 3, 1, 1, 1)
        self.altitudeShift = QtWidgets.QDoubleSpinBox(self.terrainImageGroup)
        self.altitudeShift.setMinimumSize(QtCore.QSize(0, 21))
        self.altitudeShift.setMaximumSize(QtCore.QSize(16777215, 20))
        self.altitudeShift.setDecimals(0)
        self.altitudeShift.setMinimum(-30.0)
        self.altitudeShift.setMaximum(30.0)
        self.altitudeShift.setObjectName("altitudeShift")
        self.gridLayout_6.addWidget(self.altitudeShift, 4, 1, 1, 1)
        self.loadTerrainFile = QtWidgets.QPushButton(self.terrainImageGroup)
        self.loadTerrainFile.setMinimumSize(QtCore.QSize(0, 21))
        self.loadTerrainFile.setObjectName("loadTerrainFile")
        self.gridLayout_6.addWidget(self.loadTerrainFile, 0, 0, 1, 2)
        self.clearTerrainFile = QtWidgets.QPushButton(self.terrainImageGroup)
        self.clearTerrainFile.setMinimumSize(QtCore.QSize(0, 21))
        self.clearTerrainFile.setObjectName("clearTerrainFile")
        self.gridLayout_6.addWidget(self.clearTerrainFile, 1, 0, 1, 2)
        self.gridLayout_5.addWidget(self.terrainImageGroup, 2, 0, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_5.addItem(spacerItem2, 3, 0, 1, 1)
        self.groupBox_4 = QtWidgets.QGroupBox(self.HorizonTab)
        self.groupBox_4.setMinimumSize(QtCore.QSize(120, 0))
        self.groupBox_4.setMaximumSize(QtCore.QSize(120, 16777215))
        self.groupBox_4.setProperty("large", True)
        self.groupBox_4.setObjectName("groupBox_4")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_4)
        self.verticalLayout_2.setContentsMargins(5, 15, 5, 5)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.normalModeHor = QtWidgets.QRadioButton(self.groupBox_4)
        self.normalModeHor.setMinimumSize(QtCore.QSize(0, 21))
        self.normalModeHor.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.normalModeHor.setFont(font)
        self.normalModeHor.setChecked(True)
        self.normalModeHor.setObjectName("normalModeHor")
        self.verticalLayout_2.addWidget(self.normalModeHor)
        self.editModeHor = QtWidgets.QRadioButton(self.groupBox_4)
        self.editModeHor.setMinimumSize(QtCore.QSize(0, 21))
        self.editModeHor.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.editModeHor.setFont(font)
        self.editModeHor.setObjectName("editModeHor")
        self.verticalLayout_2.addWidget(self.editModeHor)
        self.addPositionToHorizon = QtWidgets.QPushButton(self.groupBox_4)
        self.addPositionToHorizon.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.addPositionToHorizon.sizePolicy().hasHeightForWidth())
        self.addPositionToHorizon.setSizePolicy(sizePolicy)
        self.addPositionToHorizon.setMinimumSize(QtCore.QSize(0, 21))
        self.addPositionToHorizon.setMaximumSize(QtCore.QSize(16777215, 20))
        self.addPositionToHorizon.setObjectName("addPositionToHorizon")
        self.verticalLayout_2.addWidget(self.addPositionToHorizon)
        self.gridLayout_5.addWidget(self.groupBox_4, 0, 0, 1, 1)
        self.horizonFileGroup = QtWidgets.QGroupBox(self.HorizonTab)
        self.horizonFileGroup.setMinimumSize(QtCore.QSize(120, 0))
        self.horizonFileGroup.setMaximumSize(QtCore.QSize(120, 16777215))
        self.horizonFileGroup.setProperty("large", True)
        self.horizonFileGroup.setObjectName("horizonFileGroup")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.horizonFileGroup)
        self.verticalLayout_3.setContentsMargins(5, 15, 5, 5)
        self.verticalLayout_3.setSpacing(5)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.loadHorizonMask = QtWidgets.QPushButton(self.horizonFileGroup)
        self.loadHorizonMask.setMinimumSize(QtCore.QSize(0, 21))
        self.loadHorizonMask.setObjectName("loadHorizonMask")
        self.verticalLayout_3.addWidget(self.loadHorizonMask)
        self.saveHorizonMask = QtWidgets.QPushButton(self.horizonFileGroup)
        self.saveHorizonMask.setMinimumSize(QtCore.QSize(0, 21))
        self.saveHorizonMask.setObjectName("saveHorizonMask")
        self.verticalLayout_3.addWidget(self.saveHorizonMask)
        self.saveHorizonMaskAs = QtWidgets.QPushButton(self.horizonFileGroup)
        self.saveHorizonMaskAs.setMinimumSize(QtCore.QSize(0, 21))
        self.saveHorizonMaskAs.setObjectName("saveHorizonMaskAs")
        self.verticalLayout_3.addWidget(self.saveHorizonMaskAs)
        self.clearHorizonMask = QtWidgets.QPushButton(self.horizonFileGroup)
        self.clearHorizonMask.setMinimumSize(QtCore.QSize(0, 21))
        self.clearHorizonMask.setObjectName("clearHorizonMask")
        self.verticalLayout_3.addWidget(self.clearHorizonMask)
        self.horizonMaskFileName = QtWidgets.QLineEdit(self.horizonFileGroup)
        self.horizonMaskFileName.setMinimumSize(QtCore.QSize(0, 21))
        self.horizonMaskFileName.setObjectName("horizonMaskFileName")
        self.verticalLayout_3.addWidget(self.horizonMaskFileName)
        self.gridLayout_5.addWidget(self.horizonFileGroup, 1, 0, 1, 1)
        self.horizon = PlotBase(self.HorizonTab)
        self.horizon.setObjectName("horizon")
        self.gridLayout_5.addWidget(self.horizon, 0, 1, 4, 1)
        self.tabWidget.addTab(self.HorizonTab, "")
        self.verticalLayout.addWidget(self.tabWidget)
        self.verticalLayout.setStretch(2, 1)

        self.retranslateUi(HemisphereDialog)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(HemisphereDialog)

    def retranslateUi(self, HemisphereDialog):
        _translate = QtCore.QCoreApplication.translate
        HemisphereDialog.setWindowTitle(_translate("HemisphereDialog", "Hemisphere"))
        self.operationModeGroup.setTitle(_translate("HemisphereDialog", "Operation Mode"))
        self.normalModeHem.setToolTip(_translate("HemisphereDialog", "Switching the hemisphere window to normal working mode."))
        self.normalModeHem.setText(_translate("HemisphereDialog", "Normal"))
        self.editModeHem.setToolTip(_translate("HemisphereDialog", "Enabling the edit mode for model build points."))
        self.editModeHem.setText(_translate("HemisphereDialog", "Edit Model"))
        self.alignmentModeHem.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Enabling the polar or ortho align procedure. For starting the procedure, enable align stars and choose a polar align star with mouse double click and chose the type of alignment.</p></body></html>"))
        self.alignmentModeHem.setText(_translate("HemisphereDialog", "Polar / Otho Align"))
        self.groupBox_3.setToolTip(_translate("HemisphereDialog", "Showing different elements on the hemisphere diagram."))
        self.groupBox_3.setTitle(_translate("HemisphereDialog", "Show Elements"))
        self.showCelestial.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Show the celestial circles in the view</p></body></html>"))
        self.showCelestial.setText(_translate("HemisphereDialog", "Celestial paths "))
        self.showMountLimits.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Show the mount limits</p></body></html>"))
        self.showMountLimits.setText(_translate("HemisphereDialog", "Mount limits "))
        self.showAlignStar.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Show the align stars in horizin view</p></body></html>"))
        self.showAlignStar.setText(_translate("HemisphereDialog", "Align stars "))
        self.showPolar.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Show an additional polar diagram on right side in hemisphere view</p></body></html>"))
        self.showPolar.setText(_translate("HemisphereDialog", "Show Polar"))
        self.showSlewPath.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Show the slew path of the mount</p></body></html>"))
        self.showSlewPath.setText(_translate("HemisphereDialog", "Slew path "))
        self.showTerrain.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Show the terrain image in background</p></body></html>"))
        self.showTerrain.setText(_translate("HemisphereDialog", "Terrain"))
        self.showHorizon.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Use horizon mask in hemisphere window.</p></body></html>"))
        self.showHorizon.setText(_translate("HemisphereDialog", "Horizon mask "))
        self.showIsoModel.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Showing the actual used mount model as reference.</p></body></html>"))
        self.showIsoModel.setText(_translate("HemisphereDialog", "Model Error"))
        self.operationMode.setTitle(_translate("HemisphereDialog", "Coordinates"))
        self.label.setText(_translate("HemisphereDialog", "Altitude:"))
        self.label_2.setText(_translate("HemisphereDialog", "Azimuth:"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.HemisphereTab), _translate("HemisphereDialog", "Hemisphere for Modelling"))
        self.terrainImageGroup.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Adjusting the terrain image to view</p></body></html>"))
        self.terrainImageGroup.setTitle(_translate("HemisphereDialog", "Terrain Image"))
        self.label_4.setText(_translate("HemisphereDialog", "Alpha"))
        self.label_6.setText(_translate("HemisphereDialog", "Altitude"))
        self.label_3.setText(_translate("HemisphereDialog", "Azimuth"))
        self.loadTerrainFile.setText(_translate("HemisphereDialog", "Load"))
        self.clearTerrainFile.setText(_translate("HemisphereDialog", "Clear "))
        self.groupBox_4.setTitle(_translate("HemisphereDialog", "Horizon Positions"))
        self.normalModeHor.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Switching the horizon view to normal working mode.</p></body></html>"))
        self.normalModeHor.setText(_translate("HemisphereDialog", "Normal"))
        self.editModeHor.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Enabling the edit mode for horizon mask.</p></body></html>"))
        self.editModeHor.setText(_translate("HemisphereDialog", "Edit Horizon"))
        self.addPositionToHorizon.setToolTip(_translate("HemisphereDialog", "<html><head/><body><p>Add actual telescope position (Alt/Az) as point to the horizon.</p></body></html>"))
        self.addPositionToHorizon.setText(_translate("HemisphereDialog", "Add actual pos"))
        self.horizonFileGroup.setTitle(_translate("HemisphereDialog", "Mask File"))
        self.loadHorizonMask.setText(_translate("HemisphereDialog", "Load"))
        self.saveHorizonMask.setText(_translate("HemisphereDialog", "Save"))
        self.saveHorizonMaskAs.setText(_translate("HemisphereDialog", "Save as"))
        self.clearHorizonMask.setText(_translate("HemisphereDialog", "Clear "))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.HorizonTab), _translate("HemisphereDialog", "Define Horizon Mask and Terrain Image"))
from gui.utilities.tools4pyqtgraph import Hemisphere, PlotBase


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    HemisphereDialog = QtWidgets.QWidget()
    ui = Ui_HemisphereDialog()
    ui.setupUi(HemisphereDialog)
    HemisphereDialog.show()
    sys.exit(app.exec_())
