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

# Form implementation generated from reading ui file 'track_changes/ui/about_dialog.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 PyQt5 import QtCore, QtWidgets
from qgsfilewidget import QgsFileWidget

class Ui_About(object):
    def setupUi(self, About):
        About.setObjectName("About")
        About.resize(640, 615)
        self.gridLayout = QtWidgets.QGridLayout(About)
        self.gridLayout.setObjectName("gridLayout")
        self.mainTab = QtWidgets.QTabWidget(About)
        self.mainTab.setObjectName("mainTab")
        self.about_tab = QtWidgets.QWidget()
        self.about_tab.setObjectName("about_tab")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.about_tab)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtWidgets.QLabel(self.about_tab)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        spacerItem = QtWidgets.QSpacerItem(
            20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding
        )
        self.verticalLayout.addItem(spacerItem)
        self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1)
        self.mainTab.addTab(self.about_tab, "")
        self.change_history = QtWidgets.QWidget()
        self.change_history.setObjectName("change_history")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.change_history)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.changeHistoryTab = QtWidgets.QTabWidget(self.change_history)
        self.changeHistoryTab.setObjectName("changeHistoryTab")
        self.dashboardTab = QtWidgets.QWidget()
        self.dashboardTab.setObjectName("dashboardTab")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.dashboardTab)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.version_picker = QtWidgets.QComboBox(self.dashboardTab)
        self.version_picker.setObjectName("version_picker")
        self.horizontalLayout.addWidget(self.version_picker)
        spacerItem1 = QtWidgets.QSpacerItem(
            40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum
        )
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.Chart = QtWidgets.QVBoxLayout()
        self.Chart.setObjectName("Chart")
        self.verticalLayout_3.addLayout(self.Chart)
        spacerItem2 = QtWidgets.QSpacerItem(
            20, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding
        )
        self.verticalLayout_3.addItem(spacerItem2)
        self.horizontalLayout_2.addLayout(self.verticalLayout_3)
        self.data_version_description = QtWidgets.QLabel(self.dashboardTab)
        self.data_version_description.setObjectName("data_version_description")
        self.horizontalLayout_2.addWidget(self.data_version_description)
        self.gridLayout_5.addLayout(self.horizontalLayout_2, 0, 0, 1, 1)
        self.changeHistoryTab.addTab(self.dashboardTab, "")
        self.tableTab = QtWidgets.QWidget()
        self.tableTab.setObjectName("tableTab")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.tableTab)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.changeHistoryTable = QtWidgets.QTableWidget(self.tableTab)
        self.changeHistoryTable.setObjectName("changeHistoryTable")
        self.changeHistoryTable.setColumnCount(7)
        self.changeHistoryTable.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.changeHistoryTable.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.changeHistoryTable.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.changeHistoryTable.setHorizontalHeaderItem(2, item)
        item = QtWidgets.QTableWidgetItem()
        self.changeHistoryTable.setHorizontalHeaderItem(3, item)
        item = QtWidgets.QTableWidgetItem()
        self.changeHistoryTable.setHorizontalHeaderItem(4, item)
        item = QtWidgets.QTableWidgetItem()
        self.changeHistoryTable.setHorizontalHeaderItem(5, item)
        item = QtWidgets.QTableWidgetItem()
        self.changeHistoryTable.setHorizontalHeaderItem(6, item)
        self.gridLayout_4.addWidget(self.changeHistoryTable, 0, 0, 1, 1)
        self.changeHistoryTab.addTab(self.tableTab, "")
        self.verticalLayout_2.addWidget(self.changeHistoryTab)
        self.gridLayout_3.addLayout(self.verticalLayout_2, 1, 0, 1, 1)
        self.inputGpkgFile = QgsFileWidget(self.change_history)
        self.inputGpkgFile.setObjectName("inputGpkgFile")
        self.gridLayout_3.addWidget(self.inputGpkgFile, 0, 0, 1, 1)
        self.mainTab.addTab(self.change_history, "")
        self.compareData = QtWidgets.QWidget()
        self.compareData.setObjectName("compareData")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.compareData)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout()
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.label_3 = QtWidgets.QLabel(self.compareData)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_4.addWidget(self.label_3)
        self.file_compare_1 = QgsFileWidget(self.compareData)
        self.file_compare_1.setObjectName("file_compare_1")
        self.verticalLayout_4.addWidget(self.file_compare_1)
        self.horizontalLayout_4.addLayout(self.verticalLayout_4)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.label_4 = QtWidgets.QLabel(self.compareData)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_5.addWidget(self.label_4)
        self.file_compare_2 = QgsFileWidget(self.compareData)
        self.file_compare_2.setObjectName("file_compare_2")
        self.verticalLayout_5.addWidget(self.file_compare_2)
        self.horizontalLayout_4.addLayout(self.verticalLayout_5)
        self.verticalLayout_8.addLayout(self.horizontalLayout_4)
        self.verticalLayout_7 = QtWidgets.QVBoxLayout()
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem3 = QtWidgets.QSpacerItem(
            40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum
        )
        self.horizontalLayout_3.addItem(spacerItem3)
        self.compare_button = QtWidgets.QPushButton(self.compareData)
        self.compare_button.setObjectName("compare_button")
        self.horizontalLayout_3.addWidget(self.compare_button)
        self.verticalLayout_7.addLayout(self.horizontalLayout_3)
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.layout_compare = QtWidgets.QVBoxLayout()
        self.layout_compare.setObjectName("layout_compare")
        self.verticalLayout_6.addLayout(self.layout_compare)
        spacerItem4 = QtWidgets.QSpacerItem(
            20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding
        )
        self.verticalLayout_6.addItem(spacerItem4)
        self.verticalLayout_7.addLayout(self.verticalLayout_6)
        self.verticalLayout_8.addLayout(self.verticalLayout_7)
        self.gridLayout_6.addLayout(self.verticalLayout_8, 0, 0, 1, 1)
        self.mainTab.addTab(self.compareData, "")
        self.gridLayout.addWidget(self.mainTab, 0, 0, 1, 1)

        self.retranslateUi(About)
        self.mainTab.setCurrentIndex(0)
        self.changeHistoryTab.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(About)

    def retranslateUi(self, About):
        _translate = QtCore.QCoreApplication.translate
        About.setWindowTitle(_translate("About", "QGIS Tracking Changes"))
        self.label.setText(
            _translate(
                "About",
                '<html><head/><body><p><span style=" font-weight:600;">QGIS Track Changes</span><br/>Version: 0.4.0<br/><br/>This plugin helps track changes in vector layer data, including:<br/>- Feature modifications<br/>- Geometry updates<br/>- Attribute changes<br/><br/>It ensures data integrity by logging changes efficiently within QGIS.<br/><br/><span style=" font-weight:600;">Developer:</span> Ahmad Zaenun Faiz<br/><span style=" font-weight:600;">License:</span> GPL-3.0<br/><br/>For documentation, visit:<br/><a href="https://qgis-track-changes.readthedocs.io/en/latest/"><span style=" text-decoration: underline; color:#419cff;">QGIS Track Changes Documentation</span></a></p></body></html>',
            )
        )
        self.mainTab.setTabText(
            self.mainTab.indexOf(self.about_tab), _translate("About", "About")
        )
        self.data_version_description.setText(
            _translate(
                "About",
                '<html><head/><body><p><span style=" font-size:14pt;">Committed Data version:</span></p><p><span style=" font-size:48pt; font-weight:600;">0.0.0</span></p><p><span style=" font-size:12pt;">Data changes:</span></p><table border="1" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;" cellspacing="0" cellpadding="2"><thead><tr><td><p align="center"><span style=" font-size:10px; font-weight:600;">Code</span></p></td><td><p align="center"><span style=" font-size:10px; font-weight:600;">Explanation</span></p></td><td><p align="center"><span style=" font-size:10px; font-weight:600;">Count</span></p></td></tr></thead><tr><td><p><span style=" font-size:10px;">10</span></p></td><td><p><span style=" font-size:10px;">start editing</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">11</span></p></td><td><p><span style=" font-size:10px;">stop editing</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">20</span></p></td><td><p><span style=" font-size:10px;">features selection</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">21</span></p></td><td><p><span style=" font-size:10px;">feature add</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">22</span></p></td><td><p><span style=" font-size:10px;">feature delete</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">23</span></p></td><td><p><span style=" font-size:10px;">feature geometry change</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">24</span></p></td><td><p><span style=" font-size:10px;">feature add committed</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">25</span></p></td><td><p><span style=" font-size:10px;">feature delete committed</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">26</span></p></td><td><p><span style=" font-size:10px;">features geometry change committed</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">30</span></p></td><td><p><span style=" font-size:10px;">attribute add</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">31</span></p></td><td><p><span style=" font-size:10px;">attribute delete</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">32</span></p></td><td><p><span style=" font-size:10px;">attribute value change</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">33</span></p></td><td><p><span style=" font-size:10px;">attribute add committed</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">34</span></p></td><td><p><span style=" font-size:10px;">attribute delete committed</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr><tr><td><p><span style=" font-size:10px;">35</span></p></td><td><p><span style=" font-size:10px;">attribute values change committed</span></p></td><td><p><span style=" font-size:10px;">0</span></p></td></tr></table></body></html>',
            )
        )
        self.changeHistoryTab.setTabText(
            self.changeHistoryTab.indexOf(self.dashboardTab),
            _translate("About", "Dashboard"),
        )
        item = self.changeHistoryTable.horizontalHeaderItem(0)
        item.setText(_translate("About", "Last Modified"))
        item = self.changeHistoryTable.horizontalHeaderItem(1)
        item.setText(_translate("About", "Version"))
        item = self.changeHistoryTable.horizontalHeaderItem(2)
        item.setText(_translate("About", "Author"))
        item = self.changeHistoryTable.horizontalHeaderItem(3)
        item.setText(_translate("About", "Layer"))
        item = self.changeHistoryTable.horizontalHeaderItem(4)
        item.setText(_translate("About", "Feature ID"))
        item = self.changeHistoryTable.horizontalHeaderItem(5)
        item.setText(_translate("About", "Message"))
        item = self.changeHistoryTable.horizontalHeaderItem(6)
        item.setText(_translate("About", "Data"))
        self.changeHistoryTab.setTabText(
            self.changeHistoryTab.indexOf(self.tableTab), _translate("About", "Table")
        )
        self.mainTab.setTabText(
            self.mainTab.indexOf(self.change_history),
            _translate("About", "Change History"),
        )
        self.label_3.setText(_translate("About", "GeoPackage File 1"))
        self.label_4.setText(_translate("About", "GeoPackage File 2"))
        self.compare_button.setText(_translate("About", "Compare"))
        self.mainTab.setTabText(
            self.mainTab.indexOf(self.compareData), _translate("About", "Compare Data")
        )
