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

# Form implementation generated from reading ui file '/usr/obj/qgis-1.7.3/qgis-1.7.3/python/plugins/fTools/tools/frmRandPoints.ui'
#
# Created: Mon Jul 30 21:11:39 2012
#      by: PyQt4 UI code generator 4.8.4
#
# 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_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.setWindowModality(QtCore.Qt.NonModal)
        Dialog.resize(384, 435)
        Dialog.setSizeGripEnabled(True)
        self.gridLayout = QtGui.QGridLayout(Dialog)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_3 = QtGui.QLabel(Dialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
        self.inShape = QtGui.QComboBox(Dialog)
        self.inShape.setObjectName(_fromUtf8("inShape"))
        self.gridLayout.addWidget(self.inShape, 1, 0, 1, 2)
        self.groupBox = QtGui.QGroupBox(Dialog)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridlayout = QtGui.QGridLayout(self.groupBox)
        self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
        self.label = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setWeight(75)
        font.setBold(True)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridlayout.addWidget(self.label, 0, 0, 1, 1)
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setObjectName(_fromUtf8("hboxlayout"))
        self.rdoUnstratified = QtGui.QRadioButton(self.groupBox)
        self.rdoUnstratified.setChecked(True)
        self.rdoUnstratified.setObjectName(_fromUtf8("rdoUnstratified"))
        self.hboxlayout.addWidget(self.rdoUnstratified)
        self.spnUnstratified = QtGui.QSpinBox(self.groupBox)
        self.spnUnstratified.setEnabled(True)
        self.spnUnstratified.setMinimum(1)
        self.spnUnstratified.setMaximum(1000000)
        self.spnUnstratified.setObjectName(_fromUtf8("spnUnstratified"))
        self.hboxlayout.addWidget(self.spnUnstratified)
        self.gridlayout.addLayout(self.hboxlayout, 1, 0, 1, 1)
        self.label_4 = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setWeight(75)
        font.setBold(True)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridlayout.addWidget(self.label_4, 2, 0, 1, 1)
        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setObjectName(_fromUtf8("hboxlayout1"))
        self.rdoStratified = QtGui.QRadioButton(self.groupBox)
        self.rdoStratified.setObjectName(_fromUtf8("rdoStratified"))
        self.hboxlayout1.addWidget(self.rdoStratified)
        self.spnStratified = QtGui.QSpinBox(self.groupBox)
        self.spnStratified.setEnabled(False)
        self.spnStratified.setMinimum(1)
        self.spnStratified.setMaximum(1000000)
        self.spnStratified.setObjectName(_fromUtf8("spnStratified"))
        self.hboxlayout1.addWidget(self.spnStratified)
        self.gridlayout.addLayout(self.hboxlayout1, 3, 0, 1, 1)
        self.hboxlayout2 = QtGui.QHBoxLayout()
        self.hboxlayout2.setObjectName(_fromUtf8("hboxlayout2"))
        self.rdoDensity = QtGui.QRadioButton(self.groupBox)
        self.rdoDensity.setObjectName(_fromUtf8("rdoDensity"))
        self.hboxlayout2.addWidget(self.rdoDensity)
        self.spnDensity = QtGui.QDoubleSpinBox(self.groupBox)
        self.spnDensity.setEnabled(False)
        self.spnDensity.setDecimals(4)
        self.spnDensity.setMinimum(0.0001)
        self.spnDensity.setMaximum(9999.0)
        self.spnDensity.setSingleStep(0.0001)
        self.spnDensity.setProperty(_fromUtf8("value"), 0.0001)
        self.spnDensity.setObjectName(_fromUtf8("spnDensity"))
        self.hboxlayout2.addWidget(self.spnDensity)
        self.gridlayout.addLayout(self.hboxlayout2, 4, 0, 1, 1)
        self.hboxlayout3 = QtGui.QHBoxLayout()
        self.hboxlayout3.setObjectName(_fromUtf8("hboxlayout3"))
        self.rdoField = QtGui.QRadioButton(self.groupBox)
        self.rdoField.setObjectName(_fromUtf8("rdoField"))
        self.hboxlayout3.addWidget(self.rdoField)
        self.cmbField = QtGui.QComboBox(self.groupBox)
        self.cmbField.setEnabled(False)
        self.cmbField.setObjectName(_fromUtf8("cmbField"))
        self.hboxlayout3.addWidget(self.cmbField)
        self.gridlayout.addLayout(self.hboxlayout3, 5, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox, 2, 0, 1, 2)
        self.label_2 = QtGui.QLabel(Dialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
        self.hboxlayout4 = QtGui.QHBoxLayout()
        self.hboxlayout4.setObjectName(_fromUtf8("hboxlayout4"))
        self.outShape = QtGui.QLineEdit(Dialog)
        self.outShape.setReadOnly(True)
        self.outShape.setObjectName(_fromUtf8("outShape"))
        self.hboxlayout4.addWidget(self.outShape)
        self.toolOut = QtGui.QToolButton(Dialog)
        self.toolOut.setObjectName(_fromUtf8("toolOut"))
        self.hboxlayout4.addWidget(self.toolOut)
        self.gridLayout.addLayout(self.hboxlayout4, 4, 0, 1, 2)
        self.progressBar = QtGui.QProgressBar(Dialog)
        self.progressBar.setProperty(_fromUtf8("value"), 24)
        self.progressBar.setAlignment(QtCore.Qt.AlignCenter)
        self.progressBar.setTextVisible(True)
        self.progressBar.setObjectName(_fromUtf8("progressBar"))
        self.gridLayout.addWidget(self.progressBar, 5, 0, 1, 1)
        self.buttonBox_2 = QtGui.QDialogButtonBox(Dialog)
        self.buttonBox_2.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox_2.setStandardButtons(QtGui.QDialogButtonBox.Close|QtGui.QDialogButtonBox.Ok)
        self.buttonBox_2.setObjectName(_fromUtf8("buttonBox_2"))
        self.gridLayout.addWidget(self.buttonBox_2, 5, 1, 1, 1)

        self.retranslateUi(Dialog)
        QtCore.QObject.connect(self.buttonBox_2, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept)
        QtCore.QObject.connect(self.buttonBox_2, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.close)
        QtCore.QObject.connect(self.rdoUnstratified, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.spnUnstratified.setEnabled)
        QtCore.QObject.connect(self.rdoStratified, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.spnStratified.setEnabled)
        QtCore.QObject.connect(self.rdoField, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.cmbField.setEnabled)
        QtCore.QObject.connect(self.rdoDensity, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.spnDensity.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Generate Random Points", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("Dialog", "Input Boundary Layer", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("Dialog", "Sample Size", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("Dialog", "Unstratified Sampling Design (Entire layer)", None, QtGui.QApplication.UnicodeUTF8))
        self.rdoUnstratified.setText(QtGui.QApplication.translate("Dialog", "Use this number of points", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("Dialog", "Stratified Sampling Design (Individual polygons)", None, QtGui.QApplication.UnicodeUTF8))
        self.rdoStratified.setText(QtGui.QApplication.translate("Dialog", "Use this number of points", None, QtGui.QApplication.UnicodeUTF8))
        self.rdoDensity.setText(QtGui.QApplication.translate("Dialog", "Use this density of points", None, QtGui.QApplication.UnicodeUTF8))
        self.rdoField.setText(QtGui.QApplication.translate("Dialog", "Use value from input field", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("Dialog", "Output Shapefile", None, QtGui.QApplication.UnicodeUTF8))
        self.toolOut.setText(QtGui.QApplication.translate("Dialog", "Browse", None, QtGui.QApplication.UnicodeUTF8))

