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

# Form implementation generated from reading ui file 'review.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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


class Ui_ReviewToolbar(object):
    def setupUi(self, ReviewToolbar):
        ReviewToolbar.setObjectName("ReviewToolbar")
        ReviewToolbar.resize(335, 50)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Preferred,
            QtWidgets.QSizePolicy.Policy.MinimumExpanding,
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(ReviewToolbar.sizePolicy().hasHeightForWidth())
        ReviewToolbar.setSizePolicy(sizePolicy)
        ReviewToolbar.setMinimumSize(QtCore.QSize(0, 24))
        ReviewToolbar.setMaximumSize(QtCore.QSize(500, 50))
        ReviewToolbar.setToolTip("")
        self.gridLayout = QtWidgets.QGridLayout(ReviewToolbar)
        self.gridLayout.setObjectName("gridLayout")
        self.reviewPushButton = QtWidgets.QPushButton(ReviewToolbar)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.reviewPushButton.sizePolicy().hasHeightForWidth()
        )
        self.reviewPushButton.setSizePolicy(sizePolicy)
        self.reviewPushButton.setMinimumSize(QtCore.QSize(24, 24))
        self.reviewPushButton.setMaximumSize(QtCore.QSize(24, 24))
        self.reviewPushButton.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(":/plugins/DsgTools/icons/review.png"),
            QtGui.QIcon.Mode.Normal,
            QtGui.QIcon.State.Off,
        )
        self.reviewPushButton.setIcon(icon)
        self.reviewPushButton.setIconSize(QtCore.QSize(16, 16))
        self.reviewPushButton.setCheckable(True)
        self.reviewPushButton.setObjectName("reviewPushButton")
        self.gridLayout.addWidget(self.reviewPushButton, 0, 0, 1, 1)
        self.splitter = QtWidgets.QSplitter(ReviewToolbar)
        self.splitter.setMinimumSize(QtCore.QSize(0, 24))
        self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.splitter.setObjectName("splitter")
        self.mMapLayerComboBox = QgsMapLayerComboBox(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.MinimumExpanding,
            QtWidgets.QSizePolicy.Policy.Fixed,
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mMapLayerComboBox.sizePolicy().hasHeightForWidth()
        )
        self.mMapLayerComboBox.setSizePolicy(sizePolicy)
        self.mMapLayerComboBox.setMinimumSize(QtCore.QSize(0, 24))
        self.mMapLayerComboBox.setObjectName("mMapLayerComboBox")
        self.mMapLayerComboBox.setFilters(
            core.QgsMapLayerProxyModel.Filter.PolygonLayer
        )

        self.setActiveLayerPushButton = QtWidgets.QPushButton(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.setActiveLayerPushButton.sizePolicy().hasHeightForWidth()
        )
        self.setActiveLayerPushButton.setSizePolicy(sizePolicy)
        self.setActiveLayerPushButton.setMinimumSize(QtCore.QSize(0, 24))
        self.setActiveLayerPushButton.setMaximumSize(QtCore.QSize(24, 24))
        self.setActiveLayerPushButton.setText("")
        iconSetCurrentLayer = QtGui.QIcon()
        iconSetCurrentLayer.addPixmap(
            QtGui.QPixmap(":/plugins/DsgTools/icons/reload.png"),
            QtGui.QIcon.Mode.Normal,
            QtGui.QIcon.State.Off,
        )
        self.setActiveLayerPushButton.setIcon(iconSetCurrentLayer)
        self.setActiveLayerPushButton.setIconSize(QtCore.QSize(16, 16))
        self.setActiveLayerPushButton.setObjectName("setActiveLayerPushButton")

        self.rankFieldComboBox = QgsFieldComboBox(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.MinimumExpanding,
            QtWidgets.QSizePolicy.Policy.Fixed,
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.rankFieldComboBox.sizePolicy().hasHeightForWidth()
        )
        self.rankFieldComboBox.setSizePolicy(sizePolicy)
        self.rankFieldComboBox.setMinimumSize(QtCore.QSize(0, 24))
        self.rankFieldComboBox.setObjectName("rankFieldComboBox")
        self.visitedFieldComboBox = QgsFieldComboBox(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.MinimumExpanding,
            QtWidgets.QSizePolicy.Policy.Fixed,
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.visitedFieldComboBox.sizePolicy().hasHeightForWidth()
        )
        self.visitedFieldComboBox.setSizePolicy(sizePolicy)
        self.visitedFieldComboBox.setMinimumSize(QtCore.QSize(0, 24))
        self.visitedFieldComboBox.setObjectName("visitedFieldComboBox")
        self.zoomComboBox = QtWidgets.QComboBox(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.MinimumExpanding,
            QtWidgets.QSizePolicy.Policy.Fixed,
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.zoomComboBox.sizePolicy().hasHeightForWidth())
        self.zoomComboBox.setSizePolicy(sizePolicy)
        self.zoomComboBox.setMinimumSize(QtCore.QSize(0, 24))
        self.zoomComboBox.setObjectName("zoomComboBox")
        self.zoomComboBox.addItem(self.tr("Zoom to next"))
        self.zoomComboBox.addItem(self.tr("Pan to next"))
        self.zoomComboBox.addItem(self.tr("Do nothing"))
        self.preparePushButton = QtWidgets.QPushButton(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.preparePushButton.sizePolicy().hasHeightForWidth()
        )
        self.preparePushButton.setSizePolicy(sizePolicy)
        self.preparePushButton.setMinimumSize(QtCore.QSize(0, 24))
        self.preparePushButton.setMaximumSize(QtCore.QSize(24, 24))
        self.preparePushButton.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(":/plugins/DsgTools/icons/config.png"),
            QtGui.QIcon.Mode.Normal,
            QtGui.QIcon.State.Off,
        )
        self.preparePushButton.setIcon(icon1)
        self.preparePushButton.setIconSize(QtCore.QSize(16, 16))
        self.preparePushButton.setObjectName("preparePushButton")
        self.previousTileButton = QtWidgets.QPushButton(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.previousTileButton.sizePolicy().hasHeightForWidth()
        )
        self.previousTileButton.setSizePolicy(sizePolicy)
        self.previousTileButton.setMinimumSize(QtCore.QSize(24, 24))
        self.previousTileButton.setMaximumSize(QtCore.QSize(24, 24))
        self.previousTileButton.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(":/plugins/DsgTools/icons/backInspect.png"),
            QtGui.QIcon.Mode.Normal,
            QtGui.QIcon.State.Off,
        )
        self.previousTileButton.setIcon(icon)
        self.previousTileButton.setIconSize(QtCore.QSize(16, 16))
        self.previousTileButton.setObjectName("previousTileButton")
        self.nextTileButton = QtWidgets.QPushButton(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.nextTileButton.sizePolicy().hasHeightForWidth()
        )
        self.nextTileButton.setSizePolicy(sizePolicy)
        self.nextTileButton.setMinimumSize(QtCore.QSize(24, 24))
        self.nextTileButton.setMaximumSize(QtCore.QSize(24, 24))
        self.nextTileButton.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(":/plugins/DsgTools/icons/nextInspect.png"),
            QtGui.QIcon.Mode.Normal,
            QtGui.QIcon.State.Off,
        )
        self.nextTileButton.setIcon(icon1)
        self.nextTileButton.setIconSize(QtCore.QSize(16, 16))
        self.nextTileButton.setObjectName("nextTileButton")
        self.applyPushButton = QtWidgets.QPushButton(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.applyPushButton.sizePolicy().hasHeightForWidth()
        )
        self.applyPushButton.setSizePolicy(sizePolicy)
        self.applyPushButton.setMinimumSize(QtCore.QSize(0, 24))
        self.applyPushButton.setMaximumSize(QtCore.QSize(24, 24))
        self.applyPushButton.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(
            QtGui.QPixmap(":/plugins/DsgTools/icons/attributeSelector.png"),
            QtGui.QIcon.Mode.Normal,
            QtGui.QIcon.State.Off,
        )
        self.applyPushButton.setIcon(icon2)
        self.applyPushButton.setIconSize(QtCore.QSize(16, 16))
        self.applyPushButton.setObjectName("applyPushButton")

        self.resetPushButton = QtWidgets.QPushButton(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.resetPushButton.sizePolicy().hasHeightForWidth()
        )
        self.resetPushButton.setSizePolicy(sizePolicy)
        self.resetPushButton.setMinimumSize(QtCore.QSize(0, 24))
        self.resetPushButton.setMaximumSize(QtCore.QSize(24, 24))
        self.resetPushButton.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(
            QtGui.QPixmap(":/plugins/DsgTools/icons/reset.png"),
            QtGui.QIcon.Mode.Normal,
            QtGui.QIcon.State.Off,
        )
        self.resetPushButton.setIcon(icon2)
        self.resetPushButton.setIconSize(QtCore.QSize(16, 16))
        self.resetPushButton.setObjectName("resetPushButton")

        self.gridLayout.addWidget(self.splitter, 0, 1, 1, 1)

        self.retranslateUi(ReviewToolbar)
        QtCore.QMetaObject.connectSlotsByName(ReviewToolbar)

    def retranslateUi(self, ReviewToolbar):
        _translate = QtCore.QCoreApplication.translate
        ReviewToolbar.setWindowTitle(_translate("ReviewToolbar", "Form"))
        self.reviewPushButton.setToolTip(_translate("ReviewToolbar", "Review Toolbar"))


from qgis import core
from qgis.gui import QgsFieldComboBox, QgsMapLayerComboBox
import resources_rc
