# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7-22.2/eric/eric7/Preferences/ShortcutDialog.ui'
#
# Created by: PyQt6 UI code generator 6.2.2
#
# 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_ShortcutDialog(object):
    def setupUi(self, ShortcutDialog):
        ShortcutDialog.setObjectName("ShortcutDialog")
        ShortcutDialog.resize(539, 134)
        self.vboxlayout = QtWidgets.QVBoxLayout(ShortcutDialog)
        self.vboxlayout.setObjectName("vboxlayout")
        self.shortcutsGroup = QtWidgets.QGroupBox(ShortcutDialog)
        self.shortcutsGroup.setTitle("")
        self.shortcutsGroup.setObjectName("shortcutsGroup")
        self.gridLayout = QtWidgets.QGridLayout(self.shortcutsGroup)
        self.gridLayout.setObjectName("gridLayout")
        self.primaryButton = QtWidgets.QRadioButton(self.shortcutsGroup)
        self.primaryButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.primaryButton.setChecked(True)
        self.primaryButton.setObjectName("primaryButton")
        self.gridLayout.addWidget(self.primaryButton, 0, 0, 1, 1)
        self.primaryClearButton = QtWidgets.QPushButton(self.shortcutsGroup)
        self.primaryClearButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.primaryClearButton.setObjectName("primaryClearButton")
        self.gridLayout.addWidget(self.primaryClearButton, 0, 1, 1, 1)
        self.keyEdit = QtWidgets.QLineEdit(self.shortcutsGroup)
        self.keyEdit.setReadOnly(True)
        self.keyEdit.setObjectName("keyEdit")
        self.gridLayout.addWidget(self.keyEdit, 0, 2, 1, 1)
        self.alternateButton = QtWidgets.QRadioButton(self.shortcutsGroup)
        self.alternateButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.alternateButton.setObjectName("alternateButton")
        self.gridLayout.addWidget(self.alternateButton, 1, 0, 1, 1)
        self.alternateClearButton = QtWidgets.QPushButton(self.shortcutsGroup)
        self.alternateClearButton.setEnabled(False)
        self.alternateClearButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.alternateClearButton.setObjectName("alternateClearButton")
        self.gridLayout.addWidget(self.alternateClearButton, 1, 1, 1, 1)
        self.alternateKeyEdit = QtWidgets.QLineEdit(self.shortcutsGroup)
        self.alternateKeyEdit.setReadOnly(True)
        self.alternateKeyEdit.setObjectName("alternateKeyEdit")
        self.gridLayout.addWidget(self.alternateKeyEdit, 1, 2, 1, 1)
        self.vboxlayout.addWidget(self.shortcutsGroup)
        self.buttonBox = QtWidgets.QDialogButtonBox(ShortcutDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.vboxlayout.addWidget(self.buttonBox)

        self.retranslateUi(ShortcutDialog)
        self.primaryButton.toggled['bool'].connect(self.primaryClearButton.setEnabled) # type: ignore
        self.alternateButton.toggled['bool'].connect(self.alternateClearButton.setEnabled) # type: ignore
        self.buttonBox.rejected.connect(ShortcutDialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(ShortcutDialog)
        ShortcutDialog.setTabOrder(self.keyEdit, self.alternateKeyEdit)
        ShortcutDialog.setTabOrder(self.alternateKeyEdit, self.buttonBox)

    def retranslateUi(self, ShortcutDialog):
        _translate = QtCore.QCoreApplication.translate
        ShortcutDialog.setWindowTitle(_translate("ShortcutDialog", "Edit Shortcut"))
        ShortcutDialog.setWhatsThis(_translate("ShortcutDialog", "Press your shortcut keys and select OK"))
        self.primaryButton.setToolTip(_translate("ShortcutDialog", "Select to change the primary keyboard shortcut"))
        self.primaryButton.setText(_translate("ShortcutDialog", "Primary Shortcut:"))
        self.primaryClearButton.setToolTip(_translate("ShortcutDialog", "Press to clear the key sequence buffer."))
        self.primaryClearButton.setText(_translate("ShortcutDialog", "Clear"))
        self.alternateButton.setToolTip(_translate("ShortcutDialog", "Select to change the alternative keyboard shortcut"))
        self.alternateButton.setText(_translate("ShortcutDialog", "Alternative Shortcut:"))
        self.alternateClearButton.setToolTip(_translate("ShortcutDialog", "Press to clear the key sequence buffer."))
        self.alternateClearButton.setText(_translate("ShortcutDialog", "Clear"))
