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

# Form implementation generated from reading ui file 'eric/Preferences/ShortcutDialog.ui'
#
# Created: Sun May  2 14:37:53 2010
#      by: PyQt4 UI code generator 4.6.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_ShortcutDialog(object):
    def setupUi(self, ShortcutDialog):
        ShortcutDialog.setObjectName("ShortcutDialog")
        ShortcutDialog.resize(539, 125)
        self.vboxlayout = QtGui.QVBoxLayout(ShortcutDialog)
        self.vboxlayout.setObjectName("vboxlayout")
        self.shortcutsGroup = QtGui.QGroupBox(ShortcutDialog)
        self.shortcutsGroup.setObjectName("shortcutsGroup")
        self.gridlayout = QtGui.QGridLayout(self.shortcutsGroup)
        self.gridlayout.setObjectName("gridlayout")
        self.alternateButton = QtGui.QRadioButton(self.shortcutsGroup)
        self.alternateButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.alternateButton.setObjectName("alternateButton")
        self.gridlayout.addWidget(self.alternateButton, 1, 0, 1, 1)
        self.primaryClearButton = QtGui.QPushButton(self.shortcutsGroup)
        self.primaryClearButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.primaryClearButton.setObjectName("primaryClearButton")
        self.gridlayout.addWidget(self.primaryClearButton, 0, 1, 1, 1)
        self.alternateKeyLabel = QtGui.QLabel(self.shortcutsGroup)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.alternateKeyLabel.sizePolicy().hasHeightForWidth())
        self.alternateKeyLabel.setSizePolicy(sizePolicy)
        self.alternateKeyLabel.setFrameShape(QtGui.QFrame.StyledPanel)
        self.alternateKeyLabel.setFrameShadow(QtGui.QFrame.Sunken)
        self.alternateKeyLabel.setObjectName("alternateKeyLabel")
        self.gridlayout.addWidget(self.alternateKeyLabel, 1, 2, 1, 1)
        self.keyLabel = QtGui.QLabel(self.shortcutsGroup)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.keyLabel.sizePolicy().hasHeightForWidth())
        self.keyLabel.setSizePolicy(sizePolicy)
        self.keyLabel.setFrameShape(QtGui.QFrame.StyledPanel)
        self.keyLabel.setFrameShadow(QtGui.QFrame.Sunken)
        self.keyLabel.setObjectName("keyLabel")
        self.gridlayout.addWidget(self.keyLabel, 0, 2, 1, 1)
        self.primaryButton = QtGui.QRadioButton(self.shortcutsGroup)
        self.primaryButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.primaryButton.setChecked(True)
        self.primaryButton.setObjectName("primaryButton")
        self.gridlayout.addWidget(self.primaryButton, 0, 0, 1, 1)
        self.alternateClearButton = QtGui.QPushButton(self.shortcutsGroup)
        self.alternateClearButton.setEnabled(False)
        self.alternateClearButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.alternateClearButton.setObjectName("alternateClearButton")
        self.gridlayout.addWidget(self.alternateClearButton, 1, 1, 1, 1)
        self.vboxlayout.addWidget(self.shortcutsGroup)
        self.buttonBox = QtGui.QDialogButtonBox(ShortcutDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.vboxlayout.addWidget(self.buttonBox)

        self.retranslateUi(ShortcutDialog)
        QtCore.QObject.connect(self.primaryButton, QtCore.SIGNAL("toggled(bool)"), self.primaryClearButton.setEnabled)
        QtCore.QObject.connect(self.alternateButton, QtCore.SIGNAL("toggled(bool)"), self.alternateClearButton.setEnabled)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), ShortcutDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(ShortcutDialog)

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

