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

# Form implementation generated from reading ui file 'C:\Users\Stewart\.qgis2\python\plugins\DateControl\ui_checkDates.ui'
#
# Created: Sat Feb 21 19:18:13 2015
#      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_CheckDates(object):
    def setupUi(self, CheckDates):
        CheckDates.setObjectName(_fromUtf8("CheckDates"))
        CheckDates.resize(393, 531)
        self.groupBox_2 = QtGui.QGroupBox(CheckDates)
        self.groupBox_2.setGeometry(QtCore.QRect(10, 10, 371, 261))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.cbxTextDateField = QtGui.QComboBox(self.groupBox_2)
        self.cbxTextDateField.setGeometry(QtCore.QRect(180, 60, 161, 22))
        self.cbxTextDateField.setObjectName(_fromUtf8("cbxTextDateField"))
        self.label_10 = QtGui.QLabel(self.groupBox_2)
        self.label_10.setGeometry(QtCore.QRect(100, 60, 71, 16))
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.label_11 = QtGui.QLabel(self.groupBox_2)
        self.label_11.setGeometry(QtCore.QRect(110, 80, 241, 20))
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.cbxDecDateField = QtGui.QComboBox(self.groupBox_2)
        self.cbxDecDateField.setGeometry(QtCore.QRect(180, 110, 161, 22))
        self.cbxDecDateField.setObjectName(_fromUtf8("cbxDecDateField"))
        self.label_12 = QtGui.QLabel(self.groupBox_2)
        self.label_12.setGeometry(QtCore.QRect(90, 110, 91, 16))
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.label_13 = QtGui.QLabel(self.groupBox_2)
        self.label_13.setGeometry(QtCore.QRect(170, 130, 181, 16))
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.btnUpdateDecDates = QtGui.QPushButton(self.groupBox_2)
        self.btnUpdateDecDates.setGeometry(QtCore.QRect(90, 180, 121, 31))
        self.btnUpdateDecDates.setObjectName(_fromUtf8("btnUpdateDecDates"))
        self.chkSelectedOnly = QtGui.QCheckBox(self.groupBox_2)
        self.chkSelectedOnly.setGeometry(QtCore.QRect(180, 150, 151, 18))
        self.chkSelectedOnly.setObjectName(_fromUtf8("chkSelectedOnly"))
        self.txtSelectedCt = QtGui.QLineEdit(self.groupBox_2)
        self.txtSelectedCt.setEnabled(False)
        self.txtSelectedCt.setGeometry(QtCore.QRect(122, 150, 51, 20))
        self.txtSelectedCt.setObjectName(_fromUtf8("txtSelectedCt"))
        self.label_14 = QtGui.QLabel(self.groupBox_2)
        self.label_14.setGeometry(QtCore.QRect(70, 150, 46, 13))
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.cbxLayer = QtGui.QComboBox(self.groupBox_2)
        self.cbxLayer.setGeometry(QtCore.QRect(180, 22, 161, 22))
        self.cbxLayer.setObjectName(_fromUtf8("cbxLayer"))
        self.label_20 = QtGui.QLabel(self.groupBox_2)
        self.label_20.setGeometry(QtCore.QRect(140, 22, 31, 16))
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.btnUpdateTextDates = QtGui.QPushButton(self.groupBox_2)
        self.btnUpdateTextDates.setGeometry(QtCore.QRect(220, 180, 121, 31))
        self.btnUpdateTextDates.setObjectName(_fromUtf8("btnUpdateTextDates"))
        self.spbDaysIncrement = QtGui.QSpinBox(self.groupBox_2)
        self.spbDaysIncrement.setGeometry(QtCore.QRect(155, 220, 51, 22))
        self.spbDaysIncrement.setMinimum(-99)
        self.spbDaysIncrement.setObjectName(_fromUtf8("spbDaysIncrement"))
        self.btnIncrementDates = QtGui.QPushButton(self.groupBox_2)
        self.btnIncrementDates.setGeometry(QtCore.QRect(220, 220, 121, 31))
        self.btnIncrementDates.setObjectName(_fromUtf8("btnIncrementDates"))
        self.label_15 = QtGui.QLabel(self.groupBox_2)
        self.label_15.setGeometry(QtCore.QRect(70, 220, 81, 16))
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.btnHelp = QtGui.QPushButton(self.groupBox_2)
        self.btnHelp.setGeometry(QtCore.QRect(10, 20, 75, 23))
        self.btnHelp.setObjectName(_fromUtf8("btnHelp"))
        self.groupBox_3 = QtGui.QGroupBox(CheckDates)
        self.groupBox_3.setGeometry(QtCore.QRect(10, 280, 371, 241))
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.label_8 = QtGui.QLabel(self.groupBox_3)
        self.label_8.setGeometry(QtCore.QRect(280, 10, 41, 20))
        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.label_3 = QtGui.QLabel(self.groupBox_3)
        self.label_3.setGeometry(QtCore.QRect(60, 80, 111, 31))
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.spbYears = QtGui.QSpinBox(self.groupBox_3)
        self.spbYears.setGeometry(QtCore.QRect(280, 30, 61, 22))
        self.spbYears.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.spbYears.setMinimum(-10000)
        self.spbYears.setMaximum(10000)
        self.spbYears.setObjectName(_fromUtf8("spbYears"))
        self.label_6 = QtGui.QLabel(self.groupBox_3)
        self.label_6.setGeometry(QtCore.QRect(180, 10, 31, 16))
        self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.label = QtGui.QLabel(self.groupBox_3)
        self.label.setGeometry(QtCore.QRect(140, 30, 31, 16))
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.spbDecimalYear = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.spbDecimalYear.setGeometry(QtCore.QRect(180, 90, 161, 22))
        self.spbDecimalYear.setDecimals(15)
        self.spbDecimalYear.setMinimum(-10000.0)
        self.spbDecimalYear.setMaximum(10000.0)
        self.spbDecimalYear.setObjectName(_fromUtf8("spbDecimalYear"))
        self.label_2 = QtGui.QLabel(self.groupBox_3)
        self.label_2.setGeometry(QtCore.QRect(110, 60, 61, 20))
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.spbDays = QtGui.QSpinBox(self.groupBox_3)
        self.spbDays.setGeometry(QtCore.QRect(180, 30, 42, 22))
        self.spbDays.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.spbDays.setMinimum(1)
        self.spbDays.setMaximum(31)
        self.spbDays.setObjectName(_fromUtf8("spbDays"))
        self.spbMonths = QtGui.QSpinBox(self.groupBox_3)
        self.spbMonths.setGeometry(QtCore.QRect(230, 30, 42, 22))
        self.spbMonths.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.spbMonths.setMinimum(1)
        self.spbMonths.setMaximum(12)
        self.spbMonths.setObjectName(_fromUtf8("spbMonths"))
        self.spbDayNumber = QtGui.QSpinBox(self.groupBox_3)
        self.spbDayNumber.setGeometry(QtCore.QRect(180, 60, 161, 22))
        self.spbDayNumber.setMinimum(-100000000)
        self.spbDayNumber.setMaximum(100000000)
        self.spbDayNumber.setObjectName(_fromUtf8("spbDayNumber"))
        self.label_7 = QtGui.QLabel(self.groupBox_3)
        self.label_7.setGeometry(QtCore.QRect(230, 10, 41, 20))
        self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.groupBox = QtGui.QGroupBox(self.groupBox_3)
        self.groupBox.setGeometry(QtCore.QRect(20, 120, 341, 111))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.txtDateFromDayNumber = QtGui.QLineEdit(self.groupBox)
        self.txtDateFromDayNumber.setGeometry(QtCore.QRect(160, 20, 161, 20))
        self.txtDateFromDayNumber.setReadOnly(True)
        self.txtDateFromDayNumber.setObjectName(_fromUtf8("txtDateFromDayNumber"))
        self.label_4 = QtGui.QLabel(self.groupBox)
        self.label_4.setGeometry(QtCore.QRect(40, 20, 111, 20))
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.label_5 = QtGui.QLabel(self.groupBox)
        self.label_5.setGeometry(QtCore.QRect(10, 50, 141, 20))
        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.txtDayNoFromDecimalYear = QtGui.QLineEdit(self.groupBox)
        self.txtDayNoFromDecimalYear.setGeometry(QtCore.QRect(160, 50, 161, 20))
        self.txtDayNoFromDecimalYear.setReadOnly(True)
        self.txtDayNoFromDecimalYear.setObjectName(_fromUtf8("txtDayNoFromDecimalYear"))
        self.txtDateFromDecimalYear = QtGui.QLineEdit(self.groupBox)
        self.txtDateFromDecimalYear.setGeometry(QtCore.QRect(160, 80, 161, 20))
        self.txtDateFromDecimalYear.setReadOnly(True)
        self.txtDateFromDecimalYear.setObjectName(_fromUtf8("txtDateFromDecimalYear"))
        self.label_9 = QtGui.QLabel(self.groupBox)
        self.label_9.setGeometry(QtCore.QRect(10, 80, 141, 20))
        self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_9.setObjectName(_fromUtf8("label_9"))

        self.retranslateUi(CheckDates)
        QtCore.QMetaObject.connectSlotsByName(CheckDates)

    def retranslateUi(self, CheckDates):
        CheckDates.setWindowTitle(QtGui.QApplication.translate("CheckDates", "Date converter", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("CheckDates", "Update decimal date field from text field or vice versa", None, QtGui.QApplication.UnicodeUTF8))
        self.cbxTextDateField.setToolTip(QtGui.QApplication.translate("CheckDates", "Select the field holding dates to be converted to decimal years.", None, QtGui.QApplication.UnicodeUTF8))
        self.label_10.setText(QtGui.QApplication.translate("CheckDates", "Text date field", None, QtGui.QApplication.UnicodeUTF8))
        self.label_11.setText(QtGui.QApplication.translate("CheckDates", "format may be \"YYYY/MM/DD\" or \"-YYYY/MM/DD\"", None, QtGui.QApplication.UnicodeUTF8))
        self.cbxDecDateField.setToolTip(QtGui.QApplication.translate("CheckDates", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Select the field holding  decimal year dates to be calculated from the text date field (or <span style=\" font-style:italic;\">vice versa</span>).</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.label_12.setText(QtGui.QApplication.translate("CheckDates", "Decimal date field", None, QtGui.QApplication.UnicodeUTF8))
        self.label_13.setText(QtGui.QApplication.translate("CheckDates", "at least 6 dec. places recommended", None, QtGui.QApplication.UnicodeUTF8))
        self.btnUpdateDecDates.setToolTip(QtGui.QApplication.translate("CheckDates", "Converts the text dates in the specified field to decimal years in the specified field.", None, QtGui.QApplication.UnicodeUTF8))
        self.btnUpdateDecDates.setText(QtGui.QApplication.translate("CheckDates", "Update decimal dates", None, QtGui.QApplication.UnicodeUTF8))
        self.chkSelectedOnly.setToolTip(QtGui.QApplication.translate("CheckDates", "Check if only selected rows are to be updated.", None, QtGui.QApplication.UnicodeUTF8))
        self.chkSelectedOnly.setText(QtGui.QApplication.translate("CheckDates", "Update only selected rows", None, QtGui.QApplication.UnicodeUTF8))
        self.label_14.setText(QtGui.QApplication.translate("CheckDates", "Selected", None, QtGui.QApplication.UnicodeUTF8))
        self.cbxLayer.setToolTip(QtGui.QApplication.translate("CheckDates", "select the layer or table for which you want to convert the dates", None, QtGui.QApplication.UnicodeUTF8))
        self.label_20.setText(QtGui.QApplication.translate("CheckDates", "Layer", None, QtGui.QApplication.UnicodeUTF8))
        self.btnUpdateTextDates.setToolTip(QtGui.QApplication.translate("CheckDates", "Converts the decimal years in the specified field to text dates in the specified field.", None, QtGui.QApplication.UnicodeUTF8))
        self.btnUpdateTextDates.setText(QtGui.QApplication.translate("CheckDates", "Update text dates", None, QtGui.QApplication.UnicodeUTF8))
        self.btnIncrementDates.setToolTip(QtGui.QApplication.translate("CheckDates", "Increment the dates in the specified fields by the number of days specified.", None, QtGui.QApplication.UnicodeUTF8))
        self.btnIncrementDates.setText(QtGui.QApplication.translate("CheckDates", "Increment dates", None, QtGui.QApplication.UnicodeUTF8))
        self.label_15.setText(QtGui.QApplication.translate("CheckDates", "Days increment", None, QtGui.QApplication.UnicodeUTF8))
        self.btnHelp.setText(QtGui.QApplication.translate("CheckDates", "Help", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_3.setTitle(QtGui.QApplication.translate("CheckDates", "Date calculator and checker", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("CheckDates", "Years", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("CheckDates", "Decimal year", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("CheckDates", "Days", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("CheckDates", "Date", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("CheckDates", "Day number", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("CheckDates", "Months", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("CheckDates", "Calculated results", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("CheckDates", "Date from day number", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("CheckDates", "Day no. from decimal year", None, QtGui.QApplication.UnicodeUTF8))
        self.label_9.setText(QtGui.QApplication.translate("CheckDates", "Date from decimal year", None, QtGui.QApplication.UnicodeUTF8))

