From 55e67ef107163647d9e97ea060221ac8f70fb85e Mon Sep 17 00:00:00 2001 From: Harishankar Date: Wed, 30 Nov 2011 10:07:04 +0530 Subject: [PATCH] First commit First commit of BiaCV 1. Created main window with controls 2. Added the basic framework of the Qt application --- .gitignore | 1 + biacv | 17 + biacv_mainwindow.py | 12 + biacv_mainwindow.ui | 843 +++++++++++++++++++++++++++++++++++++++++ biacv_mainwindow_ui.py | 514 +++++++++++++++++++++++++ 5 files changed, 1387 insertions(+) create mode 100644 .gitignore create mode 100755 biacv create mode 100644 biacv_mainwindow.py create mode 100644 biacv_mainwindow.ui create mode 100644 biacv_mainwindow_ui.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d20b64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc diff --git a/biacv b/biacv new file mode 100755 index 0000000..4463fc2 --- /dev/null +++ b/biacv @@ -0,0 +1,17 @@ +#!/usr/bin/env python + +# BiaCV main executable + +import sys +import PyQt4 +import biacv_mainwindow + +def main (): + app = PyQt4.QtGui.QApplication (sys.argv) + wnd = biacv_mainwindow.Biacv_mainwindow () + wnd.show () + sys.exit (app.exec_ ()) + +# run the application +if __name__=="__main__": + main () \ No newline at end of file diff --git a/biacv_mainwindow.py b/biacv_mainwindow.py new file mode 100644 index 0000000..5b27e6d --- /dev/null +++ b/biacv_mainwindow.py @@ -0,0 +1,12 @@ +# class for main window + +import PyQt4 +import biacv_mainwindow_ui as bui + +class Biacv_mainwindow (PyQt4.QtGui.QMainWindow, bui.Ui_biacv_mainwindow): + def __init__ (self): + PyQt4.QtGui.QMainWindow.__init__ (self) + self.setupUi (self) + + def on_add_education (self): + print "Education" \ No newline at end of file diff --git a/biacv_mainwindow.ui b/biacv_mainwindow.ui new file mode 100644 index 0000000..30f8de2 --- /dev/null +++ b/biacv_mainwindow.ui @@ -0,0 +1,843 @@ + + + biacv_mainwindow + + + + 0 + 0 + 730 + 498 + + + + BiaCV + + + + + + + CV title + + + + + + + + + + 1 + + + + Personal information + + + + + + + 0 + 0 + + + + First name + + + + + + + + 0 + 0 + + + + Last name + + + + + + + Title + + + + + + + true + + + + + + + + + Mr. + + + + + Mrs. + + + + + Ms. + + + + + Dr. + + + + + + + + + + + + + + + + + + + + + + Date of birth + + + + + + + + 1970 + 1 + 1 + + + + dd MMM, yyyy + + + true + + + + + + + + 0 + 0 + + + + Residential address + + + + + + + Street + + + + + + + + + + Landline + + + + + + + + + + + + + + + + 0 + 0 + + + + + 60 + 0 + + + + + 40 + 16777215 + + + + + + + + - + + + + + + + + + + Area + + + + + + + + + + Mobile number + + + + + + + + + + + + + + + + 0 + 0 + + + + + 40 + 0 + + + + + 60 + 16777215 + + + + + + + + - + + + + + + + + + + City + + + + + + + + + + E-mail ID + + + + + + + + + + Areacode + + + + + + + + + + Marital status + + + + + + + Married + + + + + + + Single + + + + + + + Unspecified + + + true + + + + + + + + Educational Qualifications + + + + + + Degree/diploma/certificate name + + + + + + + + + + Month and year of passing/qualification/graduating + + + + + + + + 1988 + 1 + 1 + + + + MMM, yyyy + + + true + + + + + + + Name of institution + + + + + + + + + + University + + + + + + + + + + Passing class/grade + + + + + + + + + + Percentage + + + + + + + 100.000000000000000 + + + 0.100000000000000 + + + 50.000000000000000 + + + + + + + &Add + + + + + + + &Edit + + + + + + + &Delete + + + + + + + + 0 + 0 + + + + + + + + + Professional History + + + + + + Designation/title + + + + + + + + + + Date of joining post + + + + + + + dd MMM, yyyy + + + true + + + + + + + Date of leaving post + + + + + + + + 2003 + 1 + 1 + + + + dd MMM, yyyy + + + true + + + + + + + Current employment + + + + + + + Organization name + + + + + + + + + + Additional information + + + + + + + + + + &Add + + + + + + + &Edit + + + + + + + &Delete + + + + + + + + + + + Skill sets + + + + + + Skill set title + + + + + + + + + + Description/details + + + + + + + + 0 + 0 + + + + + 0 + 120 + + + + + 16777215 + 120 + + + + Qt::ScrollBarAlwaysOn + + + + + + + &Add + + + + + + + &Edit + + + + + + + &Delete + + + + + + + + + + + Additional information + + + + + + QFrame::Panel + + + QFrame::Sunken + + + + + + + 75 + true + + + + Languages known + + + + + + + Language + + + + + + + + + + Spoken + + + true + + + + + + + Written + + + + + + + Proficient + + + + + + + &Add + + + + + + + &Edit + + + + + + + &Delete + + + + + + + + + + + + + Additional information/disclaimer/declaration (added at the bottom of the CV) + + + + + + + Qt::ScrollBarAlwaysOn + + + + + + + + + + + + + 0 + 0 + 730 + 21 + + + + + &File + + + + &Export + + + + + + + + + + + + + + + + &Help + + + + + + + + + + &New... + + + + + &Open + + + + + &Save + + + + + Save &As... + + + + + &HTML... + + + + + OpenDocument ODT... + + + + + E&xit + + + + + &About + + + + + + + addeducation + clicked() + biacv_mainwindow + on_add_education() + + + 534 + 198 + + + 730 + 144 + + + + + + on_add_education() + + diff --git a/biacv_mainwindow_ui.py b/biacv_mainwindow_ui.py new file mode 100644 index 0000000..65fbd07 --- /dev/null +++ b/biacv_mainwindow_ui.py @@ -0,0 +1,514 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'biacv_mainwindow.ui' +# +# Created: Wed Nov 30 10:05:57 2011 +# by: PyQt4 UI code generator 4.8.6 +# +# 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_biacv_mainwindow(object): + def setupUi(self, biacv_mainwindow): + biacv_mainwindow.setObjectName(_fromUtf8("biacv_mainwindow")) + biacv_mainwindow.resize(730, 498) + biacv_mainwindow.setWindowTitle(QtGui.QApplication.translate("biacv_mainwindow", "BiaCV", None, QtGui.QApplication.UnicodeUTF8)) + self.centralwidget = QtGui.QWidget(biacv_mainwindow) + self.centralwidget.setObjectName(_fromUtf8("centralwidget")) + self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget) + self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) + self.label = QtGui.QLabel(self.centralwidget) + self.label.setText(QtGui.QApplication.translate("biacv_mainwindow", "CV title", None, QtGui.QApplication.UnicodeUTF8)) + self.label.setObjectName(_fromUtf8("label")) + self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) + self.title = QtGui.QLineEdit(self.centralwidget) + self.title.setObjectName(_fromUtf8("title")) + self.gridLayout_2.addWidget(self.title, 0, 1, 1, 1) + self.pages = QtGui.QTabWidget(self.centralwidget) + self.pages.setObjectName(_fromUtf8("pages")) + self.tab = QtGui.QWidget() + self.tab.setObjectName(_fromUtf8("tab")) + self.gridLayout = QtGui.QGridLayout(self.tab) + self.gridLayout.setObjectName(_fromUtf8("gridLayout")) + self.label_13 = QtGui.QLabel(self.tab) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_13.sizePolicy().hasHeightForWidth()) + self.label_13.setSizePolicy(sizePolicy) + self.label_13.setText(QtGui.QApplication.translate("biacv_mainwindow", "First name", None, QtGui.QApplication.UnicodeUTF8)) + self.label_13.setObjectName(_fromUtf8("label_13")) + self.gridLayout.addWidget(self.label_13, 0, 4, 1, 3) + self.label_14 = QtGui.QLabel(self.tab) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_14.sizePolicy().hasHeightForWidth()) + self.label_14.setSizePolicy(sizePolicy) + self.label_14.setText(QtGui.QApplication.translate("biacv_mainwindow", "Last name", None, QtGui.QApplication.UnicodeUTF8)) + self.label_14.setObjectName(_fromUtf8("label_14")) + self.gridLayout.addWidget(self.label_14, 0, 8, 1, 4) + self.label_2 = QtGui.QLabel(self.tab) + self.label_2.setText(QtGui.QApplication.translate("biacv_mainwindow", "Title", None, QtGui.QApplication.UnicodeUTF8)) + self.label_2.setObjectName(_fromUtf8("label_2")) + self.gridLayout.addWidget(self.label_2, 1, 0, 1, 2) + self.nametitle = QtGui.QComboBox(self.tab) + self.nametitle.setEditable(True) + self.nametitle.setObjectName(_fromUtf8("nametitle")) + self.nametitle.addItem(_fromUtf8("")) + self.nametitle.setItemText(0, _fromUtf8("")) + self.nametitle.addItem(_fromUtf8("")) + self.nametitle.setItemText(1, QtGui.QApplication.translate("biacv_mainwindow", "Mr.", None, QtGui.QApplication.UnicodeUTF8)) + self.nametitle.addItem(_fromUtf8("")) + self.nametitle.setItemText(2, QtGui.QApplication.translate("biacv_mainwindow", "Mrs.", None, QtGui.QApplication.UnicodeUTF8)) + self.nametitle.addItem(_fromUtf8("")) + self.nametitle.setItemText(3, QtGui.QApplication.translate("biacv_mainwindow", "Ms.", None, QtGui.QApplication.UnicodeUTF8)) + self.nametitle.addItem(_fromUtf8("")) + self.nametitle.setItemText(4, QtGui.QApplication.translate("biacv_mainwindow", "Dr.", None, QtGui.QApplication.UnicodeUTF8)) + self.gridLayout.addWidget(self.nametitle, 1, 2, 1, 2) + self.firstname = QtGui.QLineEdit(self.tab) + self.firstname.setText(_fromUtf8("")) + self.firstname.setObjectName(_fromUtf8("firstname")) + self.gridLayout.addWidget(self.firstname, 1, 4, 1, 3) + self.lastname = QtGui.QLineEdit(self.tab) + self.lastname.setText(_fromUtf8("")) + self.lastname.setObjectName(_fromUtf8("lastname")) + self.gridLayout.addWidget(self.lastname, 1, 8, 1, 4) + self.label_3 = QtGui.QLabel(self.tab) + self.label_3.setText(QtGui.QApplication.translate("biacv_mainwindow", "Date of birth", None, QtGui.QApplication.UnicodeUTF8)) + self.label_3.setObjectName(_fromUtf8("label_3")) + self.gridLayout.addWidget(self.label_3, 2, 0, 1, 3) + self.dateofbirth = QtGui.QDateEdit(self.tab) + self.dateofbirth.setDate(QtCore.QDate(1970, 1, 1)) + self.dateofbirth.setDisplayFormat(QtGui.QApplication.translate("biacv_mainwindow", "dd MMM, yyyy", None, QtGui.QApplication.UnicodeUTF8)) + self.dateofbirth.setCalendarPopup(True) + self.dateofbirth.setObjectName(_fromUtf8("dateofbirth")) + self.gridLayout.addWidget(self.dateofbirth, 2, 3, 1, 3) + self.label_4 = QtGui.QLabel(self.tab) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) + self.label_4.setSizePolicy(sizePolicy) + self.label_4.setText(QtGui.QApplication.translate("biacv_mainwindow", "Residential address", None, QtGui.QApplication.UnicodeUTF8)) + self.label_4.setObjectName(_fromUtf8("label_4")) + self.gridLayout.addWidget(self.label_4, 3, 0, 1, 4) + self.label_15 = QtGui.QLabel(self.tab) + self.label_15.setText(QtGui.QApplication.translate("biacv_mainwindow", "Street", None, QtGui.QApplication.UnicodeUTF8)) + self.label_15.setObjectName(_fromUtf8("label_15")) + self.gridLayout.addWidget(self.label_15, 4, 0, 1, 1) + self.street = QtGui.QLineEdit(self.tab) + self.street.setObjectName(_fromUtf8("street")) + self.gridLayout.addWidget(self.street, 4, 1, 1, 5) + self.label_5 = QtGui.QLabel(self.tab) + self.label_5.setText(QtGui.QApplication.translate("biacv_mainwindow", "Landline", None, QtGui.QApplication.UnicodeUTF8)) + self.label_5.setObjectName(_fromUtf8("label_5")) + self.gridLayout.addWidget(self.label_5, 4, 6, 1, 1) + self.label_10 = QtGui.QLabel(self.tab) + self.label_10.setText(QtGui.QApplication.translate("biacv_mainwindow", "+", None, QtGui.QApplication.UnicodeUTF8)) + self.label_10.setObjectName(_fromUtf8("label_10")) + self.gridLayout.addWidget(self.label_10, 4, 8, 1, 1) + self.countrycode_landline = QtGui.QLineEdit(self.tab) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.countrycode_landline.sizePolicy().hasHeightForWidth()) + self.countrycode_landline.setSizePolicy(sizePolicy) + self.countrycode_landline.setMinimumSize(QtCore.QSize(60, 0)) + self.countrycode_landline.setMaximumSize(QtCore.QSize(40, 16777215)) + self.countrycode_landline.setObjectName(_fromUtf8("countrycode_landline")) + self.gridLayout.addWidget(self.countrycode_landline, 4, 9, 1, 1) + self.label_6 = QtGui.QLabel(self.tab) + self.label_6.setText(QtGui.QApplication.translate("biacv_mainwindow", "-", None, QtGui.QApplication.UnicodeUTF8)) + self.label_6.setObjectName(_fromUtf8("label_6")) + self.gridLayout.addWidget(self.label_6, 4, 10, 1, 1) + self.telephone = QtGui.QLineEdit(self.tab) + self.telephone.setObjectName(_fromUtf8("telephone")) + self.gridLayout.addWidget(self.telephone, 4, 11, 1, 1) + self.label_16 = QtGui.QLabel(self.tab) + self.label_16.setText(QtGui.QApplication.translate("biacv_mainwindow", "Area", None, QtGui.QApplication.UnicodeUTF8)) + self.label_16.setObjectName(_fromUtf8("label_16")) + self.gridLayout.addWidget(self.label_16, 5, 0, 1, 1) + self.area = QtGui.QLineEdit(self.tab) + self.area.setObjectName(_fromUtf8("area")) + self.gridLayout.addWidget(self.area, 5, 1, 1, 5) + self.label_7 = QtGui.QLabel(self.tab) + self.label_7.setText(QtGui.QApplication.translate("biacv_mainwindow", "Mobile number", None, QtGui.QApplication.UnicodeUTF8)) + self.label_7.setObjectName(_fromUtf8("label_7")) + self.gridLayout.addWidget(self.label_7, 5, 6, 1, 2) + self.label_8 = QtGui.QLabel(self.tab) + self.label_8.setText(QtGui.QApplication.translate("biacv_mainwindow", "+", None, QtGui.QApplication.UnicodeUTF8)) + self.label_8.setObjectName(_fromUtf8("label_8")) + self.gridLayout.addWidget(self.label_8, 5, 8, 1, 1) + self.countrycode_mobile = QtGui.QLineEdit(self.tab) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.countrycode_mobile.sizePolicy().hasHeightForWidth()) + self.countrycode_mobile.setSizePolicy(sizePolicy) + self.countrycode_mobile.setMinimumSize(QtCore.QSize(40, 0)) + self.countrycode_mobile.setMaximumSize(QtCore.QSize(60, 16777215)) + self.countrycode_mobile.setObjectName(_fromUtf8("countrycode_mobile")) + self.gridLayout.addWidget(self.countrycode_mobile, 5, 9, 1, 1) + self.label_9 = QtGui.QLabel(self.tab) + self.label_9.setText(QtGui.QApplication.translate("biacv_mainwindow", "-", None, QtGui.QApplication.UnicodeUTF8)) + self.label_9.setObjectName(_fromUtf8("label_9")) + self.gridLayout.addWidget(self.label_9, 5, 10, 1, 1) + self.mobilenumber = QtGui.QLineEdit(self.tab) + self.mobilenumber.setObjectName(_fromUtf8("mobilenumber")) + self.gridLayout.addWidget(self.mobilenumber, 5, 11, 1, 1) + self.label_17 = QtGui.QLabel(self.tab) + self.label_17.setText(QtGui.QApplication.translate("biacv_mainwindow", "City", None, QtGui.QApplication.UnicodeUTF8)) + self.label_17.setObjectName(_fromUtf8("label_17")) + self.gridLayout.addWidget(self.label_17, 6, 0, 1, 1) + self.city = QtGui.QLineEdit(self.tab) + self.city.setObjectName(_fromUtf8("city")) + self.gridLayout.addWidget(self.city, 6, 1, 1, 5) + self.label_11 = QtGui.QLabel(self.tab) + self.label_11.setText(QtGui.QApplication.translate("biacv_mainwindow", "E-mail ID", None, QtGui.QApplication.UnicodeUTF8)) + self.label_11.setObjectName(_fromUtf8("label_11")) + self.gridLayout.addWidget(self.label_11, 6, 6, 1, 1) + self.email = QtGui.QLineEdit(self.tab) + self.email.setObjectName(_fromUtf8("email")) + self.gridLayout.addWidget(self.email, 6, 7, 1, 5) + self.label_18 = QtGui.QLabel(self.tab) + self.label_18.setText(QtGui.QApplication.translate("biacv_mainwindow", "Areacode", None, QtGui.QApplication.UnicodeUTF8)) + self.label_18.setObjectName(_fromUtf8("label_18")) + self.gridLayout.addWidget(self.label_18, 7, 0, 1, 1) + self.areacode = QtGui.QLineEdit(self.tab) + self.areacode.setObjectName(_fromUtf8("areacode")) + self.gridLayout.addWidget(self.areacode, 7, 1, 1, 5) + self.label_12 = QtGui.QLabel(self.tab) + self.label_12.setText(QtGui.QApplication.translate("biacv_mainwindow", "Marital status", None, QtGui.QApplication.UnicodeUTF8)) + self.label_12.setObjectName(_fromUtf8("label_12")) + self.gridLayout.addWidget(self.label_12, 8, 0, 1, 3) + self.married = QtGui.QRadioButton(self.tab) + self.married.setText(QtGui.QApplication.translate("biacv_mainwindow", "Married", None, QtGui.QApplication.UnicodeUTF8)) + self.married.setObjectName(_fromUtf8("married")) + self.gridLayout.addWidget(self.married, 8, 3, 1, 1) + self.single = QtGui.QRadioButton(self.tab) + self.single.setText(QtGui.QApplication.translate("biacv_mainwindow", "Single", None, QtGui.QApplication.UnicodeUTF8)) + self.single.setObjectName(_fromUtf8("single")) + self.gridLayout.addWidget(self.single, 8, 4, 1, 1) + self.unspecified = QtGui.QRadioButton(self.tab) + self.unspecified.setText(QtGui.QApplication.translate("biacv_mainwindow", "Unspecified", None, QtGui.QApplication.UnicodeUTF8)) + self.unspecified.setChecked(True) + self.unspecified.setObjectName(_fromUtf8("unspecified")) + self.gridLayout.addWidget(self.unspecified, 8, 5, 1, 2) + self.pages.addTab(self.tab, _fromUtf8("")) + self.tab_2 = QtGui.QWidget() + self.tab_2.setObjectName(_fromUtf8("tab_2")) + self.gridLayout_3 = QtGui.QGridLayout(self.tab_2) + self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) + self.label_19 = QtGui.QLabel(self.tab_2) + self.label_19.setText(QtGui.QApplication.translate("biacv_mainwindow", "Degree/diploma/certificate name", None, QtGui.QApplication.UnicodeUTF8)) + self.label_19.setObjectName(_fromUtf8("label_19")) + self.gridLayout_3.addWidget(self.label_19, 0, 0, 1, 2) + self.degree_name = QtGui.QLineEdit(self.tab_2) + self.degree_name.setObjectName(_fromUtf8("degree_name")) + self.gridLayout_3.addWidget(self.degree_name, 0, 2, 1, 6) + self.label_20 = QtGui.QLabel(self.tab_2) + self.label_20.setText(QtGui.QApplication.translate("biacv_mainwindow", "Month and year of passing/qualification/graduating", None, QtGui.QApplication.UnicodeUTF8)) + self.label_20.setObjectName(_fromUtf8("label_20")) + self.gridLayout_3.addWidget(self.label_20, 1, 0, 1, 3) + self.yearofpassing = QtGui.QDateEdit(self.tab_2) + self.yearofpassing.setDate(QtCore.QDate(1988, 1, 1)) + self.yearofpassing.setDisplayFormat(QtGui.QApplication.translate("biacv_mainwindow", "MMM, yyyy", None, QtGui.QApplication.UnicodeUTF8)) + self.yearofpassing.setCalendarPopup(True) + self.yearofpassing.setObjectName(_fromUtf8("yearofpassing")) + self.gridLayout_3.addWidget(self.yearofpassing, 1, 3, 1, 5) + self.label_21 = QtGui.QLabel(self.tab_2) + self.label_21.setText(QtGui.QApplication.translate("biacv_mainwindow", "Name of institution", None, QtGui.QApplication.UnicodeUTF8)) + self.label_21.setObjectName(_fromUtf8("label_21")) + self.gridLayout_3.addWidget(self.label_21, 2, 0, 1, 1) + self.institution = QtGui.QLineEdit(self.tab_2) + self.institution.setObjectName(_fromUtf8("institution")) + self.gridLayout_3.addWidget(self.institution, 2, 1, 1, 3) + self.label_22 = QtGui.QLabel(self.tab_2) + self.label_22.setText(QtGui.QApplication.translate("biacv_mainwindow", "University", None, QtGui.QApplication.UnicodeUTF8)) + self.label_22.setObjectName(_fromUtf8("label_22")) + self.gridLayout_3.addWidget(self.label_22, 2, 4, 1, 1) + self.university = QtGui.QLineEdit(self.tab_2) + self.university.setObjectName(_fromUtf8("university")) + self.gridLayout_3.addWidget(self.university, 2, 5, 1, 3) + self.label_23 = QtGui.QLabel(self.tab_2) + self.label_23.setText(QtGui.QApplication.translate("biacv_mainwindow", "Passing class/grade", None, QtGui.QApplication.UnicodeUTF8)) + self.label_23.setObjectName(_fromUtf8("label_23")) + self.gridLayout_3.addWidget(self.label_23, 3, 0, 1, 1) + self.grade = QtGui.QLineEdit(self.tab_2) + self.grade.setObjectName(_fromUtf8("grade")) + self.gridLayout_3.addWidget(self.grade, 3, 1, 1, 3) + self.label_24 = QtGui.QLabel(self.tab_2) + self.label_24.setText(QtGui.QApplication.translate("biacv_mainwindow", "Percentage", None, QtGui.QApplication.UnicodeUTF8)) + self.label_24.setObjectName(_fromUtf8("label_24")) + self.gridLayout_3.addWidget(self.label_24, 3, 4, 1, 1) + self.percentage = QtGui.QDoubleSpinBox(self.tab_2) + self.percentage.setMaximum(100.0) + self.percentage.setSingleStep(0.1) + self.percentage.setProperty("value", 50.0) + self.percentage.setObjectName(_fromUtf8("percentage")) + self.gridLayout_3.addWidget(self.percentage, 3, 5, 1, 3) + self.addeducation = QtGui.QPushButton(self.tab_2) + self.addeducation.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Add", None, QtGui.QApplication.UnicodeUTF8)) + self.addeducation.setObjectName(_fromUtf8("addeducation")) + self.gridLayout_3.addWidget(self.addeducation, 4, 4, 1, 2) + self.editeducation = QtGui.QPushButton(self.tab_2) + self.editeducation.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Edit", None, QtGui.QApplication.UnicodeUTF8)) + self.editeducation.setObjectName(_fromUtf8("editeducation")) + self.gridLayout_3.addWidget(self.editeducation, 4, 6, 1, 1) + self.deleteeducation = QtGui.QPushButton(self.tab_2) + self.deleteeducation.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Delete", None, QtGui.QApplication.UnicodeUTF8)) + self.deleteeducation.setObjectName(_fromUtf8("deleteeducation")) + self.gridLayout_3.addWidget(self.deleteeducation, 4, 7, 1, 1) + self.educationlist = QtGui.QColumnView(self.tab_2) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.educationlist.sizePolicy().hasHeightForWidth()) + self.educationlist.setSizePolicy(sizePolicy) + self.educationlist.setObjectName(_fromUtf8("educationlist")) + self.gridLayout_3.addWidget(self.educationlist, 5, 0, 1, 8) + self.pages.addTab(self.tab_2, _fromUtf8("")) + self.tab_3 = QtGui.QWidget() + self.tab_3.setObjectName(_fromUtf8("tab_3")) + self.gridLayout_4 = QtGui.QGridLayout(self.tab_3) + self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) + self.label_28 = QtGui.QLabel(self.tab_3) + self.label_28.setText(QtGui.QApplication.translate("biacv_mainwindow", "Designation/title", None, QtGui.QApplication.UnicodeUTF8)) + self.label_28.setObjectName(_fromUtf8("label_28")) + self.gridLayout_4.addWidget(self.label_28, 0, 0, 1, 1) + self.positions = QtGui.QLineEdit(self.tab_3) + self.positions.setObjectName(_fromUtf8("positions")) + self.gridLayout_4.addWidget(self.positions, 0, 1, 1, 4) + self.label_26 = QtGui.QLabel(self.tab_3) + self.label_26.setText(QtGui.QApplication.translate("biacv_mainwindow", "Date of joining post", None, QtGui.QApplication.UnicodeUTF8)) + self.label_26.setObjectName(_fromUtf8("label_26")) + self.gridLayout_4.addWidget(self.label_26, 1, 0, 1, 1) + self.joindate = QtGui.QDateEdit(self.tab_3) + self.joindate.setDisplayFormat(QtGui.QApplication.translate("biacv_mainwindow", "dd MMM, yyyy", None, QtGui.QApplication.UnicodeUTF8)) + self.joindate.setCalendarPopup(True) + self.joindate.setObjectName(_fromUtf8("joindate")) + self.gridLayout_4.addWidget(self.joindate, 1, 1, 1, 1) + self.label_27 = QtGui.QLabel(self.tab_3) + self.label_27.setText(QtGui.QApplication.translate("biacv_mainwindow", "Date of leaving post", None, QtGui.QApplication.UnicodeUTF8)) + self.label_27.setObjectName(_fromUtf8("label_27")) + self.gridLayout_4.addWidget(self.label_27, 2, 0, 1, 1) + self.leavedate = QtGui.QDateEdit(self.tab_3) + self.leavedate.setDate(QtCore.QDate(2003, 1, 1)) + self.leavedate.setDisplayFormat(QtGui.QApplication.translate("biacv_mainwindow", "dd MMM, yyyy", None, QtGui.QApplication.UnicodeUTF8)) + self.leavedate.setCalendarPopup(True) + self.leavedate.setObjectName(_fromUtf8("leavedate")) + self.gridLayout_4.addWidget(self.leavedate, 2, 1, 1, 1) + self.checkBox = QtGui.QCheckBox(self.tab_3) + self.checkBox.setText(QtGui.QApplication.translate("biacv_mainwindow", "Current employment", None, QtGui.QApplication.UnicodeUTF8)) + self.checkBox.setObjectName(_fromUtf8("checkBox")) + self.gridLayout_4.addWidget(self.checkBox, 2, 2, 1, 2) + self.label_25 = QtGui.QLabel(self.tab_3) + self.label_25.setText(QtGui.QApplication.translate("biacv_mainwindow", "Organization name", None, QtGui.QApplication.UnicodeUTF8)) + self.label_25.setObjectName(_fromUtf8("label_25")) + self.gridLayout_4.addWidget(self.label_25, 3, 0, 1, 1) + self.organization = QtGui.QLineEdit(self.tab_3) + self.organization.setObjectName(_fromUtf8("organization")) + self.gridLayout_4.addWidget(self.organization, 3, 1, 1, 4) + self.label_30 = QtGui.QLabel(self.tab_3) + self.label_30.setText(QtGui.QApplication.translate("biacv_mainwindow", "Additional information", None, QtGui.QApplication.UnicodeUTF8)) + self.label_30.setObjectName(_fromUtf8("label_30")) + self.gridLayout_4.addWidget(self.label_30, 4, 0, 1, 1) + self.additionalinfo = QtGui.QLineEdit(self.tab_3) + self.additionalinfo.setObjectName(_fromUtf8("additionalinfo")) + self.gridLayout_4.addWidget(self.additionalinfo, 4, 1, 1, 4) + self.addhistory = QtGui.QPushButton(self.tab_3) + self.addhistory.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Add", None, QtGui.QApplication.UnicodeUTF8)) + self.addhistory.setObjectName(_fromUtf8("addhistory")) + self.gridLayout_4.addWidget(self.addhistory, 5, 2, 1, 1) + self.edithistory = QtGui.QPushButton(self.tab_3) + self.edithistory.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Edit", None, QtGui.QApplication.UnicodeUTF8)) + self.edithistory.setObjectName(_fromUtf8("edithistory")) + self.gridLayout_4.addWidget(self.edithistory, 5, 3, 1, 1) + self.deletehistory = QtGui.QPushButton(self.tab_3) + self.deletehistory.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Delete", None, QtGui.QApplication.UnicodeUTF8)) + self.deletehistory.setObjectName(_fromUtf8("deletehistory")) + self.gridLayout_4.addWidget(self.deletehistory, 5, 4, 1, 1) + self.historylist = QtGui.QColumnView(self.tab_3) + self.historylist.setObjectName(_fromUtf8("historylist")) + self.gridLayout_4.addWidget(self.historylist, 6, 0, 1, 5) + self.pages.addTab(self.tab_3, _fromUtf8("")) + self.tab_4 = QtGui.QWidget() + self.tab_4.setObjectName(_fromUtf8("tab_4")) + self.gridLayout_5 = QtGui.QGridLayout(self.tab_4) + self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) + self.label_29 = QtGui.QLabel(self.tab_4) + self.label_29.setText(QtGui.QApplication.translate("biacv_mainwindow", "Skill set title", None, QtGui.QApplication.UnicodeUTF8)) + self.label_29.setObjectName(_fromUtf8("label_29")) + self.gridLayout_5.addWidget(self.label_29, 0, 0, 1, 1) + self.skillsettitle = QtGui.QLineEdit(self.tab_4) + self.skillsettitle.setObjectName(_fromUtf8("skillsettitle")) + self.gridLayout_5.addWidget(self.skillsettitle, 0, 1, 1, 3) + self.label_31 = QtGui.QLabel(self.tab_4) + self.label_31.setText(QtGui.QApplication.translate("biacv_mainwindow", "Description/details", None, QtGui.QApplication.UnicodeUTF8)) + self.label_31.setObjectName(_fromUtf8("label_31")) + self.gridLayout_5.addWidget(self.label_31, 1, 0, 1, 1) + self.skilldescription = QtGui.QPlainTextEdit(self.tab_4) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.skilldescription.sizePolicy().hasHeightForWidth()) + self.skilldescription.setSizePolicy(sizePolicy) + self.skilldescription.setMinimumSize(QtCore.QSize(0, 120)) + self.skilldescription.setMaximumSize(QtCore.QSize(16777215, 120)) + self.skilldescription.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) + self.skilldescription.setObjectName(_fromUtf8("skilldescription")) + self.gridLayout_5.addWidget(self.skilldescription, 1, 1, 1, 3) + self.addskill = QtGui.QPushButton(self.tab_4) + self.addskill.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Add", None, QtGui.QApplication.UnicodeUTF8)) + self.addskill.setObjectName(_fromUtf8("addskill")) + self.gridLayout_5.addWidget(self.addskill, 2, 1, 1, 1) + self.editskill = QtGui.QPushButton(self.tab_4) + self.editskill.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Edit", None, QtGui.QApplication.UnicodeUTF8)) + self.editskill.setObjectName(_fromUtf8("editskill")) + self.gridLayout_5.addWidget(self.editskill, 2, 2, 1, 1) + self.deleteskill = QtGui.QPushButton(self.tab_4) + self.deleteskill.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Delete", None, QtGui.QApplication.UnicodeUTF8)) + self.deleteskill.setObjectName(_fromUtf8("deleteskill")) + self.gridLayout_5.addWidget(self.deleteskill, 2, 3, 1, 1) + self.skillslist = QtGui.QColumnView(self.tab_4) + self.skillslist.setObjectName(_fromUtf8("skillslist")) + self.gridLayout_5.addWidget(self.skillslist, 3, 0, 1, 4) + self.pages.addTab(self.tab_4, _fromUtf8("")) + self.tab_5 = QtGui.QWidget() + self.tab_5.setObjectName(_fromUtf8("tab_5")) + self.gridLayout_7 = QtGui.QGridLayout(self.tab_5) + self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) + self.frame = QtGui.QFrame(self.tab_5) + self.frame.setFrameShape(QtGui.QFrame.Panel) + self.frame.setFrameShadow(QtGui.QFrame.Sunken) + self.frame.setObjectName(_fromUtf8("frame")) + self.gridLayout_6 = QtGui.QGridLayout(self.frame) + self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) + self.label_32 = QtGui.QLabel(self.frame) + font = QtGui.QFont() + font.setBold(True) + font.setWeight(75) + self.label_32.setFont(font) + self.label_32.setText(QtGui.QApplication.translate("biacv_mainwindow", "Languages known", None, QtGui.QApplication.UnicodeUTF8)) + self.label_32.setObjectName(_fromUtf8("label_32")) + self.gridLayout_6.addWidget(self.label_32, 0, 0, 1, 2) + self.label_33 = QtGui.QLabel(self.frame) + self.label_33.setText(QtGui.QApplication.translate("biacv_mainwindow", "Language", None, QtGui.QApplication.UnicodeUTF8)) + self.label_33.setObjectName(_fromUtf8("label_33")) + self.gridLayout_6.addWidget(self.label_33, 1, 0, 1, 1) + self.lineEdit = QtGui.QLineEdit(self.frame) + self.lineEdit.setObjectName(_fromUtf8("lineEdit")) + self.gridLayout_6.addWidget(self.lineEdit, 1, 1, 1, 1) + self.checkBox_2 = QtGui.QCheckBox(self.frame) + self.checkBox_2.setText(QtGui.QApplication.translate("biacv_mainwindow", "Spoken", None, QtGui.QApplication.UnicodeUTF8)) + self.checkBox_2.setChecked(True) + self.checkBox_2.setObjectName(_fromUtf8("checkBox_2")) + self.gridLayout_6.addWidget(self.checkBox_2, 1, 2, 1, 1) + self.checkBox_3 = QtGui.QCheckBox(self.frame) + self.checkBox_3.setText(QtGui.QApplication.translate("biacv_mainwindow", "Written", None, QtGui.QApplication.UnicodeUTF8)) + self.checkBox_3.setObjectName(_fromUtf8("checkBox_3")) + self.gridLayout_6.addWidget(self.checkBox_3, 1, 3, 1, 2) + self.checkBox_4 = QtGui.QCheckBox(self.frame) + self.checkBox_4.setText(QtGui.QApplication.translate("biacv_mainwindow", "Proficient", None, QtGui.QApplication.UnicodeUTF8)) + self.checkBox_4.setObjectName(_fromUtf8("checkBox_4")) + self.gridLayout_6.addWidget(self.checkBox_4, 1, 5, 1, 2) + self.addlanguage = QtGui.QPushButton(self.frame) + self.addlanguage.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Add", None, QtGui.QApplication.UnicodeUTF8)) + self.addlanguage.setObjectName(_fromUtf8("addlanguage")) + self.gridLayout_6.addWidget(self.addlanguage, 2, 2, 1, 2) + self.editlanguage = QtGui.QPushButton(self.frame) + self.editlanguage.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Edit", None, QtGui.QApplication.UnicodeUTF8)) + self.editlanguage.setObjectName(_fromUtf8("editlanguage")) + self.gridLayout_6.addWidget(self.editlanguage, 2, 4, 1, 2) + self.deletelanguage = QtGui.QPushButton(self.frame) + self.deletelanguage.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Delete", None, QtGui.QApplication.UnicodeUTF8)) + self.deletelanguage.setObjectName(_fromUtf8("deletelanguage")) + self.gridLayout_6.addWidget(self.deletelanguage, 2, 6, 1, 1) + self.languageslist = QtGui.QColumnView(self.frame) + self.languageslist.setObjectName(_fromUtf8("languageslist")) + self.gridLayout_6.addWidget(self.languageslist, 3, 0, 1, 7) + self.gridLayout_7.addWidget(self.frame, 0, 0, 1, 1) + self.label_34 = QtGui.QLabel(self.tab_5) + self.label_34.setText(QtGui.QApplication.translate("biacv_mainwindow", "Additional information/disclaimer/declaration (added at the bottom of the CV)", None, QtGui.QApplication.UnicodeUTF8)) + self.label_34.setObjectName(_fromUtf8("label_34")) + self.gridLayout_7.addWidget(self.label_34, 1, 0, 1, 1) + self.additionalinformation = QtGui.QPlainTextEdit(self.tab_5) + self.additionalinformation.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) + self.additionalinformation.setObjectName(_fromUtf8("additionalinformation")) + self.gridLayout_7.addWidget(self.additionalinformation, 3, 0, 1, 1) + self.pages.addTab(self.tab_5, _fromUtf8("")) + self.gridLayout_2.addWidget(self.pages, 1, 0, 1, 2) + biacv_mainwindow.setCentralWidget(self.centralwidget) + self.menubar = QtGui.QMenuBar(biacv_mainwindow) + self.menubar.setGeometry(QtCore.QRect(0, 0, 730, 21)) + self.menubar.setObjectName(_fromUtf8("menubar")) + self.menu_File = QtGui.QMenu(self.menubar) + self.menu_File.setTitle(QtGui.QApplication.translate("biacv_mainwindow", "&File", None, QtGui.QApplication.UnicodeUTF8)) + self.menu_File.setObjectName(_fromUtf8("menu_File")) + self.menu_Export = QtGui.QMenu(self.menu_File) + self.menu_Export.setTitle(QtGui.QApplication.translate("biacv_mainwindow", "&Export", None, QtGui.QApplication.UnicodeUTF8)) + self.menu_Export.setObjectName(_fromUtf8("menu_Export")) + self.menu_Help = QtGui.QMenu(self.menubar) + self.menu_Help.setTitle(QtGui.QApplication.translate("biacv_mainwindow", "&Help", None, QtGui.QApplication.UnicodeUTF8)) + self.menu_Help.setObjectName(_fromUtf8("menu_Help")) + biacv_mainwindow.setMenuBar(self.menubar) + self.statusbar = QtGui.QStatusBar(biacv_mainwindow) + self.statusbar.setObjectName(_fromUtf8("statusbar")) + biacv_mainwindow.setStatusBar(self.statusbar) + self.action_New = QtGui.QAction(biacv_mainwindow) + self.action_New.setText(QtGui.QApplication.translate("biacv_mainwindow", "&New...", None, QtGui.QApplication.UnicodeUTF8)) + self.action_New.setObjectName(_fromUtf8("action_New")) + self.action_Save = QtGui.QAction(biacv_mainwindow) + self.action_Save.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Open", None, QtGui.QApplication.UnicodeUTF8)) + self.action_Save.setObjectName(_fromUtf8("action_Save")) + self.action_Save_2 = QtGui.QAction(biacv_mainwindow) + self.action_Save_2.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Save", None, QtGui.QApplication.UnicodeUTF8)) + self.action_Save_2.setObjectName(_fromUtf8("action_Save_2")) + self.actionSave_As = QtGui.QAction(biacv_mainwindow) + self.actionSave_As.setText(QtGui.QApplication.translate("biacv_mainwindow", "Save &As...", None, QtGui.QApplication.UnicodeUTF8)) + self.actionSave_As.setObjectName(_fromUtf8("actionSave_As")) + self.action_HTML = QtGui.QAction(biacv_mainwindow) + self.action_HTML.setText(QtGui.QApplication.translate("biacv_mainwindow", "&HTML...", None, QtGui.QApplication.UnicodeUTF8)) + self.action_HTML.setObjectName(_fromUtf8("action_HTML")) + self.actionOpenDocument_ODT = QtGui.QAction(biacv_mainwindow) + self.actionOpenDocument_ODT.setText(QtGui.QApplication.translate("biacv_mainwindow", "OpenDocument ODT...", None, QtGui.QApplication.UnicodeUTF8)) + self.actionOpenDocument_ODT.setObjectName(_fromUtf8("actionOpenDocument_ODT")) + self.actionE_xit = QtGui.QAction(biacv_mainwindow) + self.actionE_xit.setText(QtGui.QApplication.translate("biacv_mainwindow", "E&xit", None, QtGui.QApplication.UnicodeUTF8)) + self.actionE_xit.setObjectName(_fromUtf8("actionE_xit")) + self.action_About = QtGui.QAction(biacv_mainwindow) + self.action_About.setText(QtGui.QApplication.translate("biacv_mainwindow", "&About", None, QtGui.QApplication.UnicodeUTF8)) + self.action_About.setObjectName(_fromUtf8("action_About")) + self.menu_Export.addAction(self.action_HTML) + self.menu_Export.addAction(self.actionOpenDocument_ODT) + self.menu_File.addAction(self.action_New) + self.menu_File.addAction(self.action_Save) + self.menu_File.addSeparator() + self.menu_File.addAction(self.action_Save_2) + self.menu_File.addAction(self.actionSave_As) + self.menu_File.addAction(self.menu_Export.menuAction()) + self.menu_File.addSeparator() + self.menu_File.addAction(self.actionE_xit) + self.menu_Help.addAction(self.action_About) + self.menubar.addAction(self.menu_File.menuAction()) + self.menubar.addAction(self.menu_Help.menuAction()) + + self.retranslateUi(biacv_mainwindow) + self.pages.setCurrentIndex(1) + QtCore.QObject.connect(self.addeducation, QtCore.SIGNAL(_fromUtf8("clicked()")), biacv_mainwindow.on_add_education) + QtCore.QMetaObject.connectSlotsByName(biacv_mainwindow) + + def retranslateUi(self, biacv_mainwindow): + self.pages.setTabText(self.pages.indexOf(self.tab), QtGui.QApplication.translate("biacv_mainwindow", "Personal information", None, QtGui.QApplication.UnicodeUTF8)) + self.pages.setTabText(self.pages.indexOf(self.tab_2), QtGui.QApplication.translate("biacv_mainwindow", "Educational Qualifications", None, QtGui.QApplication.UnicodeUTF8)) + self.pages.setTabText(self.pages.indexOf(self.tab_3), QtGui.QApplication.translate("biacv_mainwindow", "Professional History", None, QtGui.QApplication.UnicodeUTF8)) + self.pages.setTabText(self.pages.indexOf(self.tab_4), QtGui.QApplication.translate("biacv_mainwindow", "Skill sets", None, QtGui.QApplication.UnicodeUTF8)) + self.pages.setTabText(self.pages.indexOf(self.tab_5), QtGui.QApplication.translate("biacv_mainwindow", "Additional information", None, QtGui.QApplication.UnicodeUTF8)) + -- 2.20.1