src/ui/Clerk_Window.py
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Clerk.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(620, 415)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8("../../Desktop/logo2.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Form.setWindowIcon(icon)
self.stackedWidget = QtGui.QStackedWidget(Form)
self.stackedWidget.setGeometry(QtCore.QRect(-1, 0, 621, 421))
self.stackedWidget.setObjectName(_fromUtf8("stackedWidget"))
self.page = QtGui.QWidget()
self.page.setObjectName(_fromUtf8("page"))
self.groupBox_2 = QtGui.QGroupBox(self.page)
self.groupBox_2.setGeometry(QtCore.QRect(20, 270, 221, 111))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.groupBox_2.setFont(font)
self.groupBox_2.setStyleSheet(_fromUtf8("color : rgb(255, 255, 255)"))
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.label_6 = QtGui.QLabel(self.groupBox_2)
self.label_6.setGeometry(QtCore.QRect(10, 20, 211, 31))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.label_6.setFont(font)
self.label_6.setWordWrap(True)
self.label_6.setObjectName(_fromUtf8("label_6"))
self.label_7 = QtGui.QLabel(self.groupBox_2)
self.label_7.setGeometry(QtCore.QRect(10, 60, 211, 31))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.label_7.setFont(font)
self.label_7.setWordWrap(True)
self.label_7.setObjectName(_fromUtf8("label_7"))
self.pushButton = QtGui.QPushButton(self.page)
self.pushButton.setGeometry(QtCore.QRect(310, 330, 291, 23))
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.bkdLabel = QtGui.QLabel(self.page)
self.bkdLabel.setGeometry(QtCore.QRect(5, 12, 611, 411))
self.bkdLabel.setObjectName(_fromUtf8("bkdLabel"))
self.label_2 = QtGui.QLabel(self.page)
self.label_2.setGeometry(QtCore.QRect(20, 30, 161, 16))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Cambria"))
font.setPointSize(14)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.label_2.setFont(font)
self.label_2.setStyleSheet(_fromUtf8("color : rgb(255, 255, 255)"))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.groupBox = QtGui.QGroupBox(self.page)
self.groupBox.setGeometry(QtCore.QRect(20, 70, 231, 141))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.groupBox.setFont(font)
self.groupBox.setStyleSheet(_fromUtf8("color : rgb(255, 255, 255)"))
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.label_3 = QtGui.QLabel(self.groupBox)
self.label_3.setGeometry(QtCore.QRect(10, 60, 46, 13))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.label_3.setFont(font)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.label_4 = QtGui.QLabel(self.groupBox)
self.label_4.setGeometry(QtCore.QRect(10, 30, 46, 13))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.label_4.setFont(font)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.label_5 = QtGui.QLabel(self.groupBox)
self.label_5.setGeometry(QtCore.QRect(10, 90, 46, 13))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.label_5.setFont(font)
self.label_5.setObjectName(_fromUtf8("label_5"))
self.lineEdit = QtGui.QLineEdit(self.groupBox)
self.lineEdit.setGeometry(QtCore.QRect(60, 30, 131, 20))
self.lineEdit.setStyleSheet(_fromUtf8("color : rgb(0, 0, 0)"))
self.lineEdit.setReadOnly(True)
self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
self.lineEdit_2 = QtGui.QLineEdit(self.groupBox)
self.lineEdit_2.setGeometry(QtCore.QRect(60, 60, 131, 20))
self.lineEdit_2.setStyleSheet(_fromUtf8("color : rgb(0, 0, 0)"))
self.lineEdit_2.setReadOnly(True)
self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
self.lineEdit_3 = QtGui.QLineEdit(self.groupBox)
self.lineEdit_3.setGeometry(QtCore.QRect(60, 90, 131, 20))
self.lineEdit_3.setStyleSheet(_fromUtf8("color : rgb(0, 0, 0)"))
self.lineEdit_3.setReadOnly(True)
self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))
self.label_8 = QtGui.QLabel(self.page)
self.label_8.setGeometry(QtCore.QRect(310, 70, 291, 20))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_8.setFont(font)
self.label_8.setStyleSheet(_fromUtf8("color : rgb(255, 255, 255)"))
self.label_8.setObjectName(_fromUtf8("label_8"))
self.line = QtGui.QFrame(self.page)
self.line.setGeometry(QtCore.QRect(270, 10, 20, 411))
self.line.setFrameShape(QtGui.QFrame.VLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.tableWidget = QtGui.QTableWidget(self.page)
self.tableWidget.setGeometry(QtCore.QRect(310, 100, 291, 211))
self.tableWidget.setStyleSheet(_fromUtf8("color : rgb(0, 0, 0)"))
self.tableWidget.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
self.tableWidget.setAlternatingRowColors(True)
self.tableWidget.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
self.tableWidget.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
self.tableWidget.setTextElideMode(QtCore.Qt.ElideMiddle)
self.tableWidget.setHorizontalScrollMode(QtGui.QAbstractItemView.ScrollPerItem)
self.tableWidget.setShowGrid(True)
self.tableWidget.setGridStyle(QtCore.Qt.DashLine)
self.tableWidget.setCornerButtonEnabled(True)
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
self.tableWidget.setColumnCount(2)
self.tableWidget.setRowCount(0)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
self.tableWidget.horizontalHeader().setVisible(False)
self.tableWidget.horizontalHeader().setCascadingSectionResizes(False)
self.tableWidget.horizontalHeader().setDefaultSectionSize(120)
self.tableWidget.horizontalHeader().setMinimumSectionSize(33)
self.tableWidget.horizontalHeader().setStretchLastSection(True)
self.tableWidget.verticalHeader().setVisible(False)
self.tableWidget.verticalHeader().setHighlightSections(True)
self.bkdLabel.raise_()
self.groupBox_2.raise_()
self.pushButton.raise_()
self.label_2.raise_()
self.groupBox.raise_()
self.label_8.raise_()
self.line.raise_()
self.tableWidget.raise_()
self.stackedWidget.addWidget(self.page)
self.page_2 = QtGui.QWidget()
self.page_2.setObjectName(_fromUtf8("page_2"))
self.bkdLabel_2 = QtGui.QLabel(self.page_2)
self.bkdLabel_2.setGeometry(QtCore.QRect(0, 0, 621, 411))
self.bkdLabel_2.setObjectName(_fromUtf8("bkdLabel_2"))
self.label_14 = QtGui.QLabel(self.page_2)
self.label_14.setGeometry(QtCore.QRect(20, 20, 151, 21))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Cambria"))
font.setPointSize(14)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.label_14.setFont(font)
self.label_14.setStyleSheet(_fromUtf8("color : rgb(255, 255, 255)"))
self.label_14.setObjectName(_fromUtf8("label_14"))
self.label_9 = QtGui.QLabel(self.page_2)
self.label_9.setGeometry(QtCore.QRect(20, 70, 81, 16))
font = QtGui.QFont()
font.setPointSize(11)
font.setBold(False)
font.setWeight(50)
self.label_9.setFont(font)
self.label_9.setStyleSheet(_fromUtf8("color : rgb(255, 255, 255)"))
self.label_9.setObjectName(_fromUtf8("label_9"))
self.label_10 = QtGui.QLabel(self.page_2)
self.label_10.setGeometry(QtCore.QRect(20, 110, 81, 16))
font = QtGui.QFont()
font.setPointSize(11)
font.setBold(False)
font.setWeight(50)
self.label_10.setFont(font)
self.label_10.setStyleSheet(_fromUtf8("color : rgb(255, 255, 255)"))
self.label_10.setObjectName(_fromUtf8("label_10"))
self.lineEdit_4 = QtGui.QLineEdit(self.page_2)
self.lineEdit_4.setGeometry(QtCore.QRect(130, 70, 161, 20))
self.lineEdit_4.setObjectName(_fromUtf8("lineEdit_4"))
self.lineEdit_5 = QtGui.QLineEdit(self.page_2)
self.lineEdit_5.setGeometry(QtCore.QRect(130, 110, 161, 20))
self.lineEdit_5.setEchoMode(QtGui.QLineEdit.Password)
self.lineEdit_5.setReadOnly(False)
self.lineEdit_5.setObjectName(_fromUtf8("lineEdit_5"))
self.pushButton_2 = QtGui.QPushButton(self.page_2)
self.pushButton_2.setGeometry(QtCore.QRect(20, 170, 161, 23))
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
self.label = QtGui.QLabel(self.page_2)
self.label.setGeometry(QtCore.QRect(20, 140, 311, 16))
self.label.setText(_fromUtf8(""))
self.label.setObjectName(_fromUtf8("label"))
self.stackedWidget.addWidget(self.page_2)
self.retranslateUi(Form)
self.stackedWidget.setCurrentIndex(1)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "HMS - Clerk Portal", None))
self.groupBox_2.setTitle(_translate("Form", "Please Note", None))
self.label_6.setText(_translate("Form", "1. Select all present workers and click on \"Submit Attendance for Today\"", None))
self.label_7.setText(_translate("Form", "2. Attendance once submitted for a day can\'t be changed.", None))
self.pushButton.setText(_translate("Form", "Submit Attendance for Today", None))
self.bkdLabel.setText(_translate("Form", "TextLabel", None))
self.label_2.setText(_translate("Form", "Welcome Torvaltz", None))
self.groupBox.setTitle(_translate("Form", "Your Information", None))
self.label_3.setText(_translate("Form", "Name", None))
self.label_4.setText(_translate("Form", "ID", None))
self.label_5.setText(_translate("Form", "Hall", None))
self.label_8.setText(_translate("Form", "Today\'s Date : ", None))
item = self.tableWidget.horizontalHeaderItem(0)
item.setText(_translate("Form", "Worker ID", None))
item = self.tableWidget.horizontalHeaderItem(1)
item.setText(_translate("Form", "Worker Name", None))
self.bkdLabel_2.setText(_translate("Form", "TextLabel", None))
self.label_14.setText(_translate("Form", "Clerk Login", None))
self.label_9.setText(_translate("Form", "Clerk ID", None))
self.label_10.setText(_translate("Form", "Password", None))
self.pushButton_2.setText(_translate("Form", "Login", None))