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

# Form implementation generated from reading ui file 'convert_heights_dialog_base.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_ConvertHeights(object):
    def setupUi(self, ConvertHeights):
        ConvertHeights.setObjectName("ConvertHeights")
        ConvertHeights.resize(890, 650)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(ConvertHeights.sizePolicy().hasHeightForWidth())
        ConvertHeights.setSizePolicy(sizePolicy)
        ConvertHeights.setMinimumSize(QtCore.QSize(890, 650))
        ConvertHeights.setMaximumSize(QtCore.QSize(890, 650))
        ConvertHeights.setStyleSheet("background-color:rgb(241, 249, 255)")
        self.input_system_box = QtWidgets.QComboBox(ConvertHeights)
        self.input_system_box.setGeometry(QtCore.QRect(110, 60, 261, 22))
        self.input_system_box.setToolTipDuration(-1)
        self.input_system_box.setStatusTip("")
        self.input_system_box.setStyleSheet("background-color: rgb(240, 240, 240);\n"
"selection-background-color: rgb(145, 145, 145);")
        self.input_system_box.setObjectName("input_system_box")
        self.input_system_box.addItem("")
        self.input_system_box.addItem("")
        self.input_system_box.addItem("")
        self.input_system_box.addItem("")
        self.output_system_box = QtWidgets.QComboBox(ConvertHeights)
        self.output_system_box.setGeometry(QtCore.QRect(510, 60, 261, 22))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.output_system_box.sizePolicy().hasHeightForWidth())
        self.output_system_box.setSizePolicy(sizePolicy)
        self.output_system_box.setStatusTip("")
        self.output_system_box.setStyleSheet("background-color: rgb(240, 240, 240);\n"
"selection-background-color: rgb(145, 145, 145);")
        self.output_system_box.setObjectName("output_system_box")
        self.interp_method_group = QtWidgets.QGroupBox(ConvertHeights)
        self.interp_method_group.setGeometry(QtCore.QRect(650, 140, 211, 161))
        self.interp_method_group.setStatusTip("")
        self.interp_method_group.setObjectName("interp_method_group")
        self.RBintLinear = QtWidgets.QRadioButton(self.interp_method_group)
        self.RBintLinear.setGeometry(QtCore.QRect(20, 30, 171, 17))
        self.RBintLinear.setChecked(True)
        self.RBintLinear.setObjectName("RBintLinear")
        self.RBintCubic = QtWidgets.QRadioButton(self.interp_method_group)
        self.RBintCubic.setGeometry(QtCore.QRect(20, 80, 82, 17))
        self.RBintCubic.setObjectName("RBintCubic")
        self.RBintNN = QtWidgets.QRadioButton(self.interp_method_group)
        self.RBintNN.setGeometry(QtCore.QRect(20, 130, 151, 20))
        self.RBintNN.setObjectName("RBintNN")
        self.compute_values_button = QtWidgets.QPushButton(ConvertHeights)
        self.compute_values_button.setGeometry(QtCore.QRect(350, 320, 171, 41))
        self.compute_values_button.setObjectName("compute_values_button")
        self.user_inputs_tab = QtWidgets.QTabWidget(ConvertHeights)
        self.user_inputs_tab.setGeometry(QtCore.QRect(40, 110, 551, 201))
        self.user_inputs_tab.setObjectName("user_inputs_tab")
        self.tab_dms = QtWidgets.QWidget()
        self.tab_dms.setObjectName("tab_dms")
        self.dms_h_lab = QtWidgets.QLabel(self.tab_dms)
        self.dms_h_lab.setGeometry(QtCore.QRect(30, 120, 61, 31))
        self.dms_h_lab.setObjectName("dms_h_lab")
        self.dms_lat_s = QtWidgets.QLineEdit(self.tab_dms)
        self.dms_lat_s.setGeometry(QtCore.QRect(280, 20, 121, 31))
        self.dms_lat_s.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.dms_lat_s.setClearButtonEnabled(True)
        self.dms_lat_s.setObjectName("dms_lat_s")
        self.dms_lon_m = QtWidgets.QLineEdit(self.tab_dms)
        self.dms_lon_m.setGeometry(QtCore.QRect(180, 70, 91, 31))
        self.dms_lon_m.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.dms_lon_m.setClearButtonEnabled(True)
        self.dms_lon_m.setObjectName("dms_lon_m")
        self.dms_lon_d = QtWidgets.QLineEdit(self.tab_dms)
        self.dms_lon_d.setGeometry(QtCore.QRect(110, 70, 61, 31))
        self.dms_lon_d.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.dms_lon_d.setClearButtonEnabled(True)
        self.dms_lon_d.setObjectName("dms_lon_d")
        self.dms_lon_lab = QtWidgets.QLabel(self.tab_dms)
        self.dms_lon_lab.setGeometry(QtCore.QRect(30, 70, 61, 31))
        self.dms_lon_lab.setObjectName("dms_lon_lab")
        self.dms_lat_d = QtWidgets.QLineEdit(self.tab_dms)
        self.dms_lat_d.setGeometry(QtCore.QRect(110, 20, 61, 31))
        self.dms_lat_d.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.dms_lat_d.setText("")
        self.dms_lat_d.setClearButtonEnabled(True)
        self.dms_lat_d.setObjectName("dms_lat_d")
        self.dms_lat_m = QtWidgets.QLineEdit(self.tab_dms)
        self.dms_lat_m.setGeometry(QtCore.QRect(180, 20, 91, 31))
        self.dms_lat_m.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.dms_lat_m.setText("")
        self.dms_lat_m.setClearButtonEnabled(True)
        self.dms_lat_m.setObjectName("dms_lat_m")
        self.dms_lon_s = QtWidgets.QLineEdit(self.tab_dms)
        self.dms_lon_s.setGeometry(QtCore.QRect(280, 70, 121, 31))
        self.dms_lon_s.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.dms_lon_s.setClearButtonEnabled(True)
        self.dms_lon_s.setObjectName("dms_lon_s")
        self.dms_h = QtWidgets.QLineEdit(self.tab_dms)
        self.dms_h.setGeometry(QtCore.QRect(110, 120, 161, 31))
        self.dms_h.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.dms_h.setClearButtonEnabled(True)
        self.dms_h.setObjectName("dms_h")
        self.dms_lat_lab = QtWidgets.QLabel(self.tab_dms)
        self.dms_lat_lab.setGeometry(QtCore.QRect(30, 20, 61, 31))
        self.dms_lat_lab.setObjectName("dms_lat_lab")
        self.dms_clear_button = QtWidgets.QPushButton(self.tab_dms)
        self.dms_clear_button.setGeometry(QtCore.QRect(450, 60, 71, 51))
        self.dms_clear_button.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.dms_clear_button.setObjectName("dms_clear_button")
        self.user_inputs_tab.addTab(self.tab_dms, "")
        self.tab_dd = QtWidgets.QWidget()
        self.tab_dd.setObjectName("tab_dd")
        self.dd_lon = QtWidgets.QLineEdit(self.tab_dd)
        self.dd_lon.setGeometry(QtCore.QRect(110, 70, 261, 31))
        self.dd_lon.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.dd_lon.setClearButtonEnabled(True)
        self.dd_lon.setObjectName("dd_lon")
        self.dd_lat = QtWidgets.QLineEdit(self.tab_dd)
        self.dd_lat.setGeometry(QtCore.QRect(110, 20, 261, 31))
        self.dd_lat.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.dd_lat.setClearButtonEnabled(True)
        self.dd_lat.setObjectName("dd_lat")
        self.dd_h = QtWidgets.QLineEdit(self.tab_dd)
        self.dd_h.setGeometry(QtCore.QRect(110, 120, 261, 31))
        self.dd_h.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.dd_h.setClearButtonEnabled(True)
        self.dd_h.setObjectName("dd_h")
        self.dd_h_lab = QtWidgets.QLabel(self.tab_dd)
        self.dd_h_lab.setGeometry(QtCore.QRect(30, 120, 61, 31))
        self.dd_h_lab.setObjectName("dd_h_lab")
        self.dd_lon_lab = QtWidgets.QLabel(self.tab_dd)
        self.dd_lon_lab.setGeometry(QtCore.QRect(30, 70, 61, 31))
        self.dd_lon_lab.setObjectName("dd_lon_lab")
        self.dd_lat_lab = QtWidgets.QLabel(self.tab_dd)
        self.dd_lat_lab.setGeometry(QtCore.QRect(30, 20, 61, 31))
        self.dd_lat_lab.setObjectName("dd_lat_lab")
        self.dd_clear_button = QtWidgets.QPushButton(self.tab_dd)
        self.dd_clear_button.setGeometry(QtCore.QRect(450, 60, 71, 51))
        self.dd_clear_button.setToolTip("")
        self.dd_clear_button.setObjectName("dd_clear_button")
        self.user_inputs_tab.addTab(self.tab_dd, "")
        self.tab_file = QtWidgets.QWidget()
        self.tab_file.setObjectName("tab_file")
        self.file_browser = QgsFileWidget(self.tab_file)
        self.file_browser.setEnabled(True)
        self.file_browser.setGeometry(QtCore.QRect(30, 50, 471, 51))
        self.file_browser.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.file_browser.setObjectName("file_browser")
        self.user_inputs_tab.addTab(self.tab_file, "")
        self.console_window = QtWidgets.QPlainTextEdit(ConvertHeights)
        self.console_window.setEnabled(True)
        self.console_window.setGeometry(QtCore.QRect(40, 380, 691, 181))
        self.console_window.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents)
        self.console_window.setUndoRedoEnabled(False)
        self.console_window.setReadOnly(True)
        self.console_window.setOverwriteMode(False)
        self.console_window.setObjectName("console_window")
        self.inp_label = QtWidgets.QLabel(ConvertHeights)
        self.inp_label.setGeometry(QtCore.QRect(160, 30, 191, 16))
        self.inp_label.setObjectName("inp_label")
        self.out_label = QtWidgets.QLabel(ConvertHeights)
        self.out_label.setGeometry(QtCore.QRect(570, 30, 151, 16))
        self.out_label.setObjectName("out_label")
        self.clear_console_button = QtWidgets.QPushButton(ConvertHeights)
        self.clear_console_button.setGeometry(QtCore.QRect(760, 440, 93, 51))
        self.clear_console_button.setStatusTip("")
        self.clear_console_button.setObjectName("clear_console_button")
        self.PW_logo = QtWidgets.QLabel(ConvertHeights)
        self.PW_logo.setGeometry(QtCore.QRect(430, 570, 171, 81))
        self.PW_logo.setText("")
        self.PW_logo.setPixmap(QtGui.QPixmap(":/plugins/convert_heights/logos/GIK.png"))
        self.PW_logo.setScaledContents(True)
        self.PW_logo.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
        self.PW_logo.setObjectName("PW_logo")
        self.PANSA_logo = QtWidgets.QLabel(ConvertHeights)
        self.PANSA_logo.setGeometry(QtCore.QRect(640, 587, 234, 45))
        self.PANSA_logo.setText("")
        self.PANSA_logo.setPixmap(QtGui.QPixmap(":/plugins/convert_heights/logos/PANSA_logo.png"))
        self.PANSA_logo.setScaledContents(True)
        self.PANSA_logo.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
        self.PANSA_logo.setObjectName("PANSA_logo")
        self.label = QtWidgets.QLabel(ConvertHeights)
        self.label.setGeometry(QtCore.QRect(360, 595, 71, 31))
        self.label.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
        self.label.setObjectName("label")
        self.label_2 = QtWidgets.QLabel(ConvertHeights)
        self.label_2.setGeometry(QtCore.QRect(610, 592, 16, 41))
        self.label_2.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
        self.label_2.setObjectName("label_2")
        self.help_button = QtWidgets.QPushButton(ConvertHeights)
        self.help_button.setGeometry(QtCore.QRect(40, 590, 81, 31))
        self.help_button.setObjectName("help_button")

        self.retranslateUi(ConvertHeights)
        self.user_inputs_tab.setCurrentIndex(2)
        QtCore.QMetaObject.connectSlotsByName(ConvertHeights)
        ConvertHeights.setTabOrder(self.input_system_box, self.output_system_box)
        ConvertHeights.setTabOrder(self.output_system_box, self.user_inputs_tab)
        ConvertHeights.setTabOrder(self.user_inputs_tab, self.dms_lat_d)
        ConvertHeights.setTabOrder(self.dms_lat_d, self.dms_lat_m)
        ConvertHeights.setTabOrder(self.dms_lat_m, self.dms_lat_s)
        ConvertHeights.setTabOrder(self.dms_lat_s, self.dms_lon_d)
        ConvertHeights.setTabOrder(self.dms_lon_d, self.dms_lon_m)
        ConvertHeights.setTabOrder(self.dms_lon_m, self.dms_lon_s)
        ConvertHeights.setTabOrder(self.dms_lon_s, self.dms_h)
        ConvertHeights.setTabOrder(self.dms_h, self.dd_lat)
        ConvertHeights.setTabOrder(self.dd_lat, self.dd_lon)
        ConvertHeights.setTabOrder(self.dd_lon, self.dd_h)
        ConvertHeights.setTabOrder(self.dd_h, self.RBintLinear)
        ConvertHeights.setTabOrder(self.RBintLinear, self.RBintCubic)
        ConvertHeights.setTabOrder(self.RBintCubic, self.RBintNN)
        ConvertHeights.setTabOrder(self.RBintNN, self.compute_values_button)
        ConvertHeights.setTabOrder(self.compute_values_button, self.console_window)

    def retranslateUi(self, ConvertHeights):
        _translate = QtCore.QCoreApplication.translate
        ConvertHeights.setWindowTitle(_translate("ConvertHeights", "Convert heights"))
        self.input_system_box.setToolTip(_translate("ConvertHeights", "Select height system of user data"))
        self.input_system_box.setItemText(0, _translate("ConvertHeights", "KRON86"))
        self.input_system_box.setItemText(1, _translate("ConvertHeights", "EVRF2007"))
        self.input_system_box.setItemText(2, _translate("ConvertHeights", "EGM96"))
        self.input_system_box.setItemText(3, _translate("ConvertHeights", "EGM2008"))
        self.output_system_box.setToolTip(_translate("ConvertHeights", "Select height system to convert user data"))
        self.interp_method_group.setTitle(_translate("ConvertHeights", "Interpolation method"))
        self.RBintLinear.setText(_translate("ConvertHeights", "Bilinear (recommended)"))
        self.RBintCubic.setText(_translate("ConvertHeights", "Cubic"))
        self.RBintNN.setText(_translate("ConvertHeights", "Nearest neighbour"))
        self.compute_values_button.setToolTip(_translate("ConvertHeights", "Calculate interpolation model and convert heights"))
        self.compute_values_button.setText(_translate("ConvertHeights", "Calculate"))
        self.user_inputs_tab.setToolTip(_translate("ConvertHeights", "Provide ETRF2000 coordinates of a point or choose a file to process"))
        self.dms_h_lab.setText(_translate("ConvertHeights", "Height"))
        self.dms_lat_s.setToolTip(_translate("ConvertHeights", "If not filled, default value is 0"))
        self.dms_lat_s.setPlaceholderText(_translate("ConvertHeights", "SS.SSSSS"))
        self.dms_lon_m.setToolTip(_translate("ConvertHeights", "If not filled, default value is 0"))
        self.dms_lon_m.setPlaceholderText(_translate("ConvertHeights", "MM"))
        self.dms_lon_d.setToolTip(_translate("ConvertHeights", "Provide longitude of ETRF2000 (degrees)"))
        self.dms_lon_d.setPlaceholderText(_translate("ConvertHeights", "DD"))
        self.dms_lon_lab.setText(_translate("ConvertHeights", "Longitude"))
        self.dms_lat_d.setToolTip(_translate("ConvertHeights", "Provide latitude of ETRF2000 (degrees)"))
        self.dms_lat_d.setPlaceholderText(_translate("ConvertHeights", "DD"))
        self.dms_lat_m.setToolTip(_translate("ConvertHeights", "If not filled, default value is 0"))
        self.dms_lat_m.setPlaceholderText(_translate("ConvertHeights", "MM"))
        self.dms_lon_s.setToolTip(_translate("ConvertHeights", "If not filled, default value is 0"))
        self.dms_lon_s.setPlaceholderText(_translate("ConvertHeights", "SS.SSSSS"))
        self.dms_h.setToolTip(_translate("ConvertHeights", "Provide height expressed in input height system (0 if not filled)"))
        self.dms_h.setPlaceholderText(_translate("ConvertHeights", "HHH.HHH"))
        self.dms_lat_lab.setText(_translate("ConvertHeights", "Latitude"))
        self.dms_clear_button.setToolTip(_translate("ConvertHeights", "Clear all entered data"))
        self.dms_clear_button.setText(_translate("ConvertHeights", "Clear all"))
        self.user_inputs_tab.setTabText(self.user_inputs_tab.indexOf(self.tab_dms), _translate("ConvertHeights", "Point DDMMSS"))
        self.dd_lon.setToolTip(_translate("ConvertHeights", "Provide longitude of ETRF2000 (decimal degrees)"))
        self.dd_lon.setPlaceholderText(_translate("ConvertHeights", "MM.MMMMMM"))
        self.dd_lat.setToolTip(_translate("ConvertHeights", "Provide latitude of ETRF2000 (decimal degrees)"))
        self.dd_lat.setPlaceholderText(_translate("ConvertHeights", "DD.DDDDDD"))
        self.dd_h.setToolTip(_translate("ConvertHeights", "Provide height expressed in input height system (0 if not filled)"))
        self.dd_h.setPlaceholderText(_translate("ConvertHeights", "HHH.HHH"))
        self.dd_h_lab.setText(_translate("ConvertHeights", "Height"))
        self.dd_lon_lab.setText(_translate("ConvertHeights", "Longitude"))
        self.dd_lat_lab.setText(_translate("ConvertHeights", "Latitude"))
        self.dd_clear_button.setStatusTip(_translate("ConvertHeights", "Clear all entered data"))
        self.dd_clear_button.setText(_translate("ConvertHeights", "Clear all"))
        self.user_inputs_tab.setTabText(self.user_inputs_tab.indexOf(self.tab_dd), _translate("ConvertHeights", "Point DD.DDD"))
        self.file_browser.setToolTip(_translate("ConvertHeights", "Absolute path to the file, including its name and extension"))
        self.user_inputs_tab.setTabText(self.user_inputs_tab.indexOf(self.tab_file), _translate("ConvertHeights", "File processing"))
        self.inp_label.setText(_translate("ConvertHeights", "Input height system:"))
        self.out_label.setText(_translate("ConvertHeights", "Output height system:"))
        self.clear_console_button.setToolTip(_translate("ConvertHeights", "Clear console data"))
        self.clear_console_button.setText(_translate("ConvertHeights", "Clear log"))
        self.label.setText(_translate("ConvertHeights", "Created by"))
        self.label_2.setText(_translate("ConvertHeights", "for"))
        self.help_button.setText(_translate("ConvertHeights", "Help"))

from qgsfilewidget import QgsFileWidget
import resources_rc
