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

# Form implementation generated from reading ui file 'D:/src/qgis-1.8.0/python/plugins/db_manager/ui/DlgCreateConstraint.ui'
#
# Created: Mon Jul 29 21:42:39 2013
#      by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_DlgCreateConstraint(object):
    def setupUi(self, DlgCreateConstraint):
        DlgCreateConstraint.setObjectName(_fromUtf8("DlgCreateConstraint"))
        DlgCreateConstraint.resize(284, 138)
        self.gridLayout = QtGui.QGridLayout(DlgCreateConstraint)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(DlgCreateConstraint)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.cboColumn = QtGui.QComboBox(DlgCreateConstraint)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboColumn.sizePolicy().hasHeightForWidth())
        self.cboColumn.setSizePolicy(sizePolicy)
        self.cboColumn.setObjectName(_fromUtf8("cboColumn"))
        self.gridLayout.addWidget(self.cboColumn, 0, 1, 1, 1)
        self.radPrimaryKey = QtGui.QRadioButton(DlgCreateConstraint)
        self.radPrimaryKey.setChecked(True)
        self.radPrimaryKey.setObjectName(_fromUtf8("radPrimaryKey"))
        self.gridLayout.addWidget(self.radPrimaryKey, 1, 1, 1, 1)
        self.radUnique = QtGui.QRadioButton(DlgCreateConstraint)
        self.radUnique.setObjectName(_fromUtf8("radUnique"))
        self.gridLayout.addWidget(self.radUnique, 2, 1, 1, 1)
        self.buttonBox = QtGui.QDialogButtonBox(DlgCreateConstraint)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 2)

        self.retranslateUi(DlgCreateConstraint)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgCreateConstraint.reject)
        QtCore.QMetaObject.connectSlotsByName(DlgCreateConstraint)

    def retranslateUi(self, DlgCreateConstraint):
        DlgCreateConstraint.setWindowTitle(QtGui.QApplication.translate("DlgCreateConstraint", "Add constraint", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("DlgCreateConstraint", "Column", None, QtGui.QApplication.UnicodeUTF8))
        self.radPrimaryKey.setText(QtGui.QApplication.translate("DlgCreateConstraint", "Primary key", None, QtGui.QApplication.UnicodeUTF8))
        self.radUnique.setText(QtGui.QApplication.translate("DlgCreateConstraint", "Unique", None, QtGui.QApplication.UnicodeUTF8))

