# Form implementation generated from reading ui file 'src/eric7/Plugins/VcsPlugins/vcsGit/GitSubmoduleAddDialog.ui'
#
# Created by: PyQt6 UI code generator 6.7.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_GitSubmoduleAddDialog(object):
    def setupUi(self, GitSubmoduleAddDialog):
        GitSubmoduleAddDialog.setObjectName("GitSubmoduleAddDialog")
        GitSubmoduleAddDialog.resize(562, 202)
        GitSubmoduleAddDialog.setSizeGripEnabled(True)
        self.gridLayout = QtWidgets.QGridLayout(GitSubmoduleAddDialog)
        self.gridLayout.setObjectName("gridLayout")
        self.TextLabel2 = QtWidgets.QLabel(parent=GitSubmoduleAddDialog)
        self.TextLabel2.setObjectName("TextLabel2")
        self.gridLayout.addWidget(self.TextLabel2, 0, 0, 1, 1)
        self.submoduleUrlCombo = QtWidgets.QComboBox(parent=GitSubmoduleAddDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.submoduleUrlCombo.sizePolicy().hasHeightForWidth())
        self.submoduleUrlCombo.setSizePolicy(sizePolicy)
        self.submoduleUrlCombo.setEditable(True)
        self.submoduleUrlCombo.setInsertPolicy(QtWidgets.QComboBox.InsertPolicy.InsertAtTop)
        self.submoduleUrlCombo.setSizeAdjustPolicy(QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToContents)
        self.submoduleUrlCombo.setObjectName("submoduleUrlCombo")
        self.gridLayout.addWidget(self.submoduleUrlCombo, 0, 1, 1, 1)
        self.submoduleUrlButton = QtWidgets.QToolButton(parent=GitSubmoduleAddDialog)
        self.submoduleUrlButton.setObjectName("submoduleUrlButton")
        self.gridLayout.addWidget(self.submoduleUrlButton, 0, 2, 1, 1)
        self.submoduleUrlClearHistoryButton = QtWidgets.QToolButton(parent=GitSubmoduleAddDialog)
        self.submoduleUrlClearHistoryButton.setObjectName("submoduleUrlClearHistoryButton")
        self.gridLayout.addWidget(self.submoduleUrlClearHistoryButton, 0, 3, 1, 1)
        self.TextLabel4 = QtWidgets.QLabel(parent=GitSubmoduleAddDialog)
        self.TextLabel4.setObjectName("TextLabel4")
        self.gridLayout.addWidget(self.TextLabel4, 1, 0, 1, 1)
        self.submoduleDirEdit = QtWidgets.QLineEdit(parent=GitSubmoduleAddDialog)
        self.submoduleDirEdit.setObjectName("submoduleDirEdit")
        self.gridLayout.addWidget(self.submoduleDirEdit, 1, 1, 1, 1)
        self.submoduleDirButton = QtWidgets.QToolButton(parent=GitSubmoduleAddDialog)
        self.submoduleDirButton.setObjectName("submoduleDirButton")
        self.gridLayout.addWidget(self.submoduleDirButton, 1, 2, 1, 1)
        self.label = QtWidgets.QLabel(parent=GitSubmoduleAddDialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
        self.branchEdit = QtWidgets.QLineEdit(parent=GitSubmoduleAddDialog)
        self.branchEdit.setObjectName("branchEdit")
        self.gridLayout.addWidget(self.branchEdit, 2, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(parent=GitSubmoduleAddDialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
        self.nameEdit = QtWidgets.QLineEdit(parent=GitSubmoduleAddDialog)
        self.nameEdit.setObjectName("nameEdit")
        self.gridLayout.addWidget(self.nameEdit, 3, 1, 1, 1)
        self.forceCheckBox = QtWidgets.QCheckBox(parent=GitSubmoduleAddDialog)
        self.forceCheckBox.setObjectName("forceCheckBox")
        self.gridLayout.addWidget(self.forceCheckBox, 4, 0, 1, 2)
        self.buttonBox = QtWidgets.QDialogButtonBox(parent=GitSubmoduleAddDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 5, 0, 1, 4)
        self.TextLabel2.setBuddy(self.submoduleUrlCombo)
        self.TextLabel4.setBuddy(self.submoduleDirEdit)
        self.label.setBuddy(self.branchEdit)
        self.label_2.setBuddy(self.nameEdit)

        self.retranslateUi(GitSubmoduleAddDialog)
        self.buttonBox.accepted.connect(GitSubmoduleAddDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(GitSubmoduleAddDialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(GitSubmoduleAddDialog)
        GitSubmoduleAddDialog.setTabOrder(self.submoduleUrlCombo, self.submoduleUrlButton)
        GitSubmoduleAddDialog.setTabOrder(self.submoduleUrlButton, self.submoduleUrlClearHistoryButton)
        GitSubmoduleAddDialog.setTabOrder(self.submoduleUrlClearHistoryButton, self.submoduleDirEdit)
        GitSubmoduleAddDialog.setTabOrder(self.submoduleDirEdit, self.submoduleDirButton)
        GitSubmoduleAddDialog.setTabOrder(self.submoduleDirButton, self.branchEdit)
        GitSubmoduleAddDialog.setTabOrder(self.branchEdit, self.nameEdit)
        GitSubmoduleAddDialog.setTabOrder(self.nameEdit, self.forceCheckBox)

    def retranslateUi(self, GitSubmoduleAddDialog):
        _translate = QtCore.QCoreApplication.translate
        GitSubmoduleAddDialog.setWindowTitle(_translate("GitSubmoduleAddDialog", "Add Submodule"))
        self.TextLabel2.setText(_translate("GitSubmoduleAddDialog", "&URL:"))
        self.submoduleUrlCombo.setToolTip(_translate("GitSubmoduleAddDialog", "Enter the URL of the repository"))
        self.submoduleUrlButton.setToolTip(_translate("GitSubmoduleAddDialog", "Select the repository URL via a directory selection dialog"))
        self.submoduleUrlClearHistoryButton.setToolTip(_translate("GitSubmoduleAddDialog", "Press to clear the history of entered repository URLs"))
        self.TextLabel4.setText(_translate("GitSubmoduleAddDialog", "Submodule &Directory:"))
        self.submoduleDirEdit.setToolTip(_translate("GitSubmoduleAddDialog", "Enter the directory for the submodule (leave empty to use default)."))
        self.label.setText(_translate("GitSubmoduleAddDialog", "&Branch:"))
        self.branchEdit.setToolTip(_translate("GitSubmoduleAddDialog", "Enter a branch name"))
        self.label_2.setText(_translate("GitSubmoduleAddDialog", "&Logical Name:"))
        self.nameEdit.setToolTip(_translate("GitSubmoduleAddDialog", "Enter a logical name"))
        self.forceCheckBox.setToolTip(_translate("GitSubmoduleAddDialog", "Select to enforce the operation"))
        self.forceCheckBox.setText(_translate("GitSubmoduleAddDialog", "&Force Operation"))
