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

# Form implementation generated from reading ui file 'Power_EZiUDP_dockwidget_base.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
#
# 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 qgis.PyQt import QtCore, QtGui, QtWidgets
import os
import resources

class Ui_eziudp_plugin2DockWidgetBase(object):
    def setupUi(self, eziudp_plugin2DockWidgetBase):
        eziudp_plugin2DockWidgetBase.setObjectName("eziudp_plugin2DockWidgetBase")
        eziudp_plugin2DockWidgetBase.resize(820, 431)
        self.dockWidgetContents = QtWidgets.QWidget()
        self.dockWidgetContents.setObjectName("dockWidgetContents")
        self.gridLayout = QtWidgets.QGridLayout(self.dockWidgetContents)
        self.gridLayout.setObjectName("gridLayout")
        self.resultsTable = QtWidgets.QTableWidget(self.dockWidgetContents)
        self.resultsTable.setMinimumSize(QtCore.QSize(0, 0))
        self.resultsTable.setObjectName("resultsTable")
        self.resultsTable.setColumnCount(8)
        self.resultsTable.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(2, item)
        item = QtWidgets.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(3, item)
        item = QtWidgets.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(4, item)
        item = QtWidgets.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(5, item)
        item = QtWidgets.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(6, item)
        item = QtWidgets.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(7, item)
        self.gridLayout.addWidget(self.resultsTable, 2, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setContentsMargins(-1, -1, 0, -1)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.checkSkipEmptyUrl = QtWidgets.QCheckBox(self.dockWidgetContents)
        self.checkSkipEmptyUrl.setObjectName("checkSkipEmptyUrl")
        self.verticalLayout_4.addWidget(self.checkSkipEmptyUrl)
        self.checkBox = QtWidgets.QCheckBox(self.dockWidgetContents)
        self.checkBox.setObjectName("checkBox")
        self.verticalLayout_4.addWidget(self.checkBox)
        self.label_2 = QtWidgets.QLabel(self.dockWidgetContents)
        font = QtGui.QFont()
        font.setPointSize(6)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_4.addWidget(self.label_2)
        self.horizontalLayout.addLayout(self.verticalLayout_4)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setContentsMargins(-1, -1, 0, -1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, -1, 0, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.jednInput = QtWidgets.QLineEdit(self.dockWidgetContents)
        self.jednInput.setEnabled(False)
        self.jednInput.setObjectName("jednInput")
        self.horizontalLayout_2.addWidget(self.jednInput)
        self.frazInput = QtWidgets.QLineEdit(self.dockWidgetContents)
        self.frazInput.setEnabled(False)
        self.frazInput.setObjectName("frazInput")
        self.horizontalLayout_2.addWidget(self.frazInput)
        self.adresInput = QtWidgets.QLineEdit(self.dockWidgetContents)
        self.adresInput.setEnabled(False)
        self.adresInput.setObjectName("adresInput")
        self.horizontalLayout_2.addWidget(self.adresInput)
        self.comboBox = QtWidgets.QComboBox(self.dockWidgetContents)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.horizontalLayout_2.addWidget(self.comboBox)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.updateButton = QtWidgets.QPushButton(self.dockWidgetContents)
        self.updateButton.setObjectName("updateButton")
        self.horizontalLayout_4.addWidget(self.updateButton)
        self.terytInput = QtWidgets.QLineEdit(self.dockWidgetContents)
        self.terytInput.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.terytInput.setObjectName("terytInput")
        self.horizontalLayout_4.addWidget(self.terytInput)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.horizontalLayout.addLayout(self.verticalLayout_3)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setContentsMargins(-1, -1, 0, -1)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setContentsMargins(-1, 0, 0, 0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.searchButton = QtWidgets.QPushButton(self.dockWidgetContents)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchButton.sizePolicy().hasHeightForWidth())
        self.searchButton.setSizePolicy(sizePolicy)
        self.searchButton.setMinimumSize(QtCore.QSize(64, 0))
        self.searchButton.setObjectName("searchButton")
        self.searchButton.setIcon(QtGui.QIcon(":/plugins/Power_EZiUDP/icons/search.svg"))
        self.searchButton.setIconSize(QtCore.QSize(18, 18))
        self.horizontalLayout_3.addWidget(self.searchButton)
        self.pointButton = QtWidgets.QPushButton(self.dockWidgetContents)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pointButton.sizePolicy().hasHeightForWidth())
        self.pointButton.setSizePolicy(sizePolicy)
        self.pointButton.setMinimumSize(QtCore.QSize(64, 0))
        self.pointButton.setObjectName("pointButton")
        self.horizontalLayout_3.addWidget(self.pointButton)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.gridLayout.addLayout(self.horizontalLayout, 3, 0, 1, 1)
        eziudp_plugin2DockWidgetBase.setWidget(self.dockWidgetContents)

        self.retranslateUi(eziudp_plugin2DockWidgetBase)
        self.checkBox.toggled['bool'].connect(self.jednInput.setEnabled) # type: ignore
        self.checkBox.toggled['bool'].connect(self.frazInput.setEnabled) # type: ignore
        self.checkBox.toggled['bool'].connect(self.adresInput.setEnabled) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(eziudp_plugin2DockWidgetBase)
        eziudp_plugin2DockWidgetBase.setTabOrder(self.searchButton, self.checkSkipEmptyUrl)
        eziudp_plugin2DockWidgetBase.setTabOrder(self.checkSkipEmptyUrl, self.pointButton)
        eziudp_plugin2DockWidgetBase.setTabOrder(self.pointButton, self.resultsTable)
        eziudp_plugin2DockWidgetBase.setTabOrder(self.resultsTable, self.checkBox)

    def retranslateUi(self, eziudp_plugin2DockWidgetBase):
        _translate = QtCore.QCoreApplication.translate
        eziudp_plugin2DockWidgetBase.setWindowTitle(_translate("eziudp_plugin2DockWidgetBase", "Power EZiUDP - ewidencja zbiorów i usług danych przestrzennych"))
        self.resultsTable.setSortingEnabled(True)
        item = self.resultsTable.horizontalHeaderItem(0)
        item.setText(_translate("eziudp_plugin2DockWidgetBase", "Identyfikator"))
        item.setToolTip(_translate("eziudp_plugin2DockWidgetBase", "Identyfikator zbioru w EZiUDP"))
        item = self.resultsTable.horizontalHeaderItem(1)
        item.setText(_translate("eziudp_plugin2DockWidgetBase", "Organ"))
        item.setToolTip(_translate("eziudp_plugin2DockWidgetBase", "Ogran administracyjny, który prowadzi zbiór"))
        item = self.resultsTable.horizontalHeaderItem(2)
        item.setText(_translate("eziudp_plugin2DockWidgetBase", "Typ"))
        item.setToolTip(_translate("eziudp_plugin2DockWidgetBase", "Nazwa zbioru którego dotyczą dane przestrzenne"))
        item = self.resultsTable.horizontalHeaderItem(3)
        item.setText(_translate("eziudp_plugin2DockWidgetBase", "TERYT"))
        item.setToolTip(_translate("eziudp_plugin2DockWidgetBase", "Numer teryt obszaru, którego dotyczy zbiór"))
        item = self.resultsTable.horizontalHeaderItem(4)
        item.setText(_translate("eziudp_plugin2DockWidgetBase", "WMS"))
        item.setToolTip(_translate("eziudp_plugin2DockWidgetBase", "Przycisk dodający usługę przeglądania do QGIS"))
        item = self.resultsTable.horizontalHeaderItem(5)
        item.setText(_translate("eziudp_plugin2DockWidgetBase", "WFS"))
        item.setToolTip(_translate("eziudp_plugin2DockWidgetBase", "Przycisk dodający usługę pobierania do QGIS"))
        item = self.resultsTable.horizontalHeaderItem(6)
        item.setText(_translate("eziudp_plugin2DockWidgetBase", "Podgląd"))
        item.setToolTip(_translate("eziudp_plugin2DockWidgetBase", "Podgląd usługi przeglądania WMS w geoportalu krajowym"))
        item = self.resultsTable.horizontalHeaderItem(7)
        item.setText(_translate("eziudp_plugin2DockWidgetBase", "Szczegóły"))
        item.setToolTip(_translate("eziudp_plugin2DockWidgetBase", "Szczegóły zbioru zamieszczone na stronie EZiUDP"))
        self.checkSkipEmptyUrl.setText(_translate("eziudp_plugin2DockWidgetBase", "pomijaj zbiory bez URL"))
        self.checkBox.setText(_translate("eziudp_plugin2DockWidgetBase", "Tryb rozszerzony"))
        self.label_2.setText(_translate("eziudp_plugin2DockWidgetBase", "ŁŚ 2025"))
        self.jednInput.setPlaceholderText(_translate("eziudp_plugin2DockWidgetBase", "Nazwa jednostki/Organ"))
        self.frazInput.setPlaceholderText(_translate("eziudp_plugin2DockWidgetBase", "Fraza w nazwie zbioru"))
        self.adresInput.setPlaceholderText(_translate("eziudp_plugin2DockWidgetBase", "Adres usługi WMS"))
        self.comboBox.setCurrentText(_translate("eziudp_plugin2DockWidgetBase", "powiaty"))
        self.comboBox.setItemText(0, _translate("eziudp_plugin2DockWidgetBase", "powiaty"))
        self.comboBox.setItemText(1, _translate("eziudp_plugin2DockWidgetBase", "gminy"))
        self.comboBox.setItemText(2, _translate("eziudp_plugin2DockWidgetBase", "wojewodztwa"))
        self.comboBox.setItemText(3, _translate("eziudp_plugin2DockWidgetBase", "jednostki centralne"))
        self.updateButton.setToolTip(_translate("eziudp_plugin2DockWidgetBase", "Backup jest wykorzystywany w sytuacji braku dostępu do serwerów EZiUDP. Aktualizuj aby utrzymać atualne adresy w bazie backup (SQLite)"))
        self.updateButton.setText(_translate("eziudp_plugin2DockWidgetBase", "Aktualizuj backup"))
        self.terytInput.setPlaceholderText(_translate("eziudp_plugin2DockWidgetBase", "Wpisz teryt lub nazwę jednostki"))
        self.searchButton.setToolTip(_translate("eziudp_plugin2DockWidgetBase", "Wyszukaj wpisany teryt lub nazwę"))
        # self.searchButton.setText(_translate("eziudp_plugin2DockWidgetBase", "🔎\nWyszukaj"))
        self.searchButton.setText("Wyszukaj")
        
        self.pointButton.setToolTip(_translate("eziudp_plugin2DockWidgetBase", "Wskaż na mapie punkt do okoła którego szukać zbioru"))
        self.pointButton.setText(_translate("eziudp_plugin2DockWidgetBase", "📍\n"
"Wskaż"))
