From: Harishankar Date: Tue, 6 Dec 2011 08:36:09 +0000 (+0530) Subject: About Box implemented + Application Icon X-Git-Url: https://harishankar.org/repos/?p=biacv.git;a=commitdiff_plain;h=f6d9890395dacdd0a56a196cb339752b471f18e8 About Box implemented + Application Icon Implemented about box along with an application icon. --- diff --git a/biacv_lang.py b/biacv_lang.py index a0c8f27..769ceb1 100644 --- a/biacv_lang.py +++ b/biacv_lang.py @@ -11,3 +11,8 @@ CONFIRM_DISCARD_SAVE = "There are unsaved changes in current document. Do you wi ERROR_DATE = "There is a problem with the date range selected." SAVE_TITLE = "Save File As" OPEN_TITLE = "Open File" +ABOUT_TITLE = "About BiaCV" +ABOUT_TEXT = """BiaCV - A resume creator/editor + +Copyright 2011 V.Harishankar . +Licensed under the GNU GPL v3.""" \ No newline at end of file diff --git a/biacv_mainwindow.py b/biacv_mainwindow.py index 91599b9..b33d689 100644 --- a/biacv_mainwindow.py +++ b/biacv_mainwindow.py @@ -25,6 +25,10 @@ class Biacv_mainwindow (PyQt4.QtGui.QMainWindow, bui.Ui_biacv_mainwindow): if ans <> PyQt4.QtGui.QMessageBox.Yes: event.ignore () + # on help about dialog box + def on_help_about (self): + PyQt4.QtGui.QMessageBox.about (self, lang.ABOUT_TITLE, lang.ABOUT_TEXT) + # on file exit def on_exit (self): # call the close event diff --git a/biacv_mainwindow.ui b/biacv_mainwindow.ui index 37d6511..ceae00c 100644 --- a/biacv_mainwindow.ui +++ b/biacv_mainwindow.ui @@ -13,6 +13,10 @@ BiaCV + + + :/icon/res/icon.svg:/icon/res/icon.svg + @@ -1016,7 +1020,9 @@ - + + + addeducation @@ -1025,8 +1031,8 @@ on_add_education() - 426 - 189 + 70 + 98 730 @@ -1041,8 +1047,8 @@ on_delete_education() - 658 - 189 + 100 + 98 728 @@ -1058,7 +1064,7 @@ 100 - 217 + 102 726 @@ -1073,8 +1079,8 @@ on_update_education() - 579 - 189 + 85 + 98 728 @@ -1090,7 +1096,7 @@ 100 - 217 + 102 729 @@ -1105,8 +1111,8 @@ on_change_currentemployment() - 328 - 136 + 80 + 88 728 @@ -1121,8 +1127,8 @@ on_add_profession() - 309 - 216 + 61 + 99 729 @@ -1138,7 +1144,7 @@ 99 - 244 + 103 727 @@ -1154,7 +1160,7 @@ 99 - 244 + 103 729 @@ -1169,8 +1175,8 @@ on_delete_profession() - 596 - 216 + 99 + 99 729 @@ -1185,8 +1191,8 @@ on_update_profession() - 453 - 216 + 80 + 99 726 @@ -1201,8 +1207,8 @@ on_add_skill() - 207 - 234 + 51 + 96 730 @@ -1217,8 +1223,8 @@ on_delete_skill() - 566 - 234 + 99 + 96 728 @@ -1234,7 +1240,7 @@ 99 - 261 + 102 730 @@ -1250,7 +1256,7 @@ 99 - 261 + 102 726 @@ -1265,8 +1271,8 @@ on_update_skill() - 386 - 234 + 75 + 96 728 @@ -1281,8 +1287,8 @@ on_add_lang() - 547 - 155 + 107 + 110 729 @@ -1297,8 +1303,8 @@ on_delete_lang() - 716 - 155 + 107 + 110 733 @@ -1313,8 +1319,8 @@ on_select_lang() - 103 - 189 + 107 + 110 730 @@ -1329,8 +1335,8 @@ on_select_lang() - 103 - 189 + 107 + 110 730 @@ -1345,8 +1351,8 @@ on_update_lang() - 644 - 155 + 107 + 110 729 @@ -1425,8 +1431,8 @@ on_document_modified() - 223 - 174 + 282 + 197 538 @@ -1441,8 +1447,8 @@ on_document_modified() - 170 - 245 + 231 + 275 196 @@ -1457,8 +1463,8 @@ on_document_modified() - 437 - 248 + 461 + 275 88 @@ -1473,8 +1479,8 @@ on_document_modified() - 527 - 244 + 721 + 275 165 @@ -1489,8 +1495,8 @@ on_document_modified() - 204 - 281 + 265 + 318 -1 @@ -1505,8 +1511,8 @@ on_document_modified() - 409 - 285 + 461 + 318 575 @@ -1521,8 +1527,8 @@ on_document_modified() - 588 - 281 + 721 + 318 0 @@ -1537,8 +1543,8 @@ on_document_modified() - 93 - 328 + 154 + 361 -3 @@ -1553,8 +1559,8 @@ on_document_modified() - 372 - 323 + 660 + 361 2 @@ -1569,8 +1575,8 @@ on_document_modified() - 118 - 364 + 179 + 404 0 @@ -1585,8 +1591,8 @@ on_document_modified() - 149 - 400 + 172 + 445 1 @@ -1601,8 +1607,8 @@ on_document_modified() - 212 - 395 + 240 + 445 3 @@ -1617,8 +1623,8 @@ on_document_modified() - 303 - 400 + 343 + 445 -2 @@ -1634,7 +1640,7 @@ 99 - 101 + 89 0 @@ -1649,8 +1655,8 @@ on_document_modified() - 90 - 297 + 94 + 102 2 @@ -1665,8 +1671,8 @@ on_document_modified() - 94 - 333 + 98 + 103 1 @@ -1754,6 +1760,22 @@ + + action_About + triggered() + biacv_mainwindow + on_help_about() + + + -1 + -1 + + + 364 + 248 + + + on_add_education() @@ -1779,5 +1801,6 @@ on_file_open() on_file_save_as() on_exit() + on_help_about() diff --git a/biacv_mainwindow_ui.py b/biacv_mainwindow_ui.py index 35ef21f..5665929 100644 --- a/biacv_mainwindow_ui.py +++ b/biacv_mainwindow_ui.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'biacv_mainwindow.ui' # -# Created: Tue Dec 6 11:15:27 2011 +# Created: Tue Dec 6 14:03:31 2011 # by: PyQt4 UI code generator 4.8.6 # # WARNING! All changes made in this file will be lost! @@ -19,6 +19,9 @@ class Ui_biacv_mainwindow(object): biacv_mainwindow.setObjectName(_fromUtf8("biacv_mainwindow")) biacv_mainwindow.resize(730, 498) biacv_mainwindow.setWindowTitle(QtGui.QApplication.translate("biacv_mainwindow", "BiaCV", None, QtGui.QApplication.UnicodeUTF8)) + icon = QtGui.QIcon() + icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icon/res/icon.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) + biacv_mainwindow.setWindowIcon(icon) self.centralwidget = QtGui.QWidget(biacv_mainwindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget) @@ -611,6 +614,7 @@ class Ui_biacv_mainwindow(object): QtCore.QObject.connect(self.action_Open, QtCore.SIGNAL(_fromUtf8("triggered()")), biacv_mainwindow.on_file_open) QtCore.QObject.connect(self.actionSave_As, QtCore.SIGNAL(_fromUtf8("triggered()")), biacv_mainwindow.on_file_save_as) QtCore.QObject.connect(self.actionE_xit, QtCore.SIGNAL(_fromUtf8("triggered()")), biacv_mainwindow.on_exit) + QtCore.QObject.connect(self.action_About, QtCore.SIGNAL(_fromUtf8("triggered()")), biacv_mainwindow.on_help_about) QtCore.QMetaObject.connectSlotsByName(biacv_mainwindow) def retranslateUi(self, biacv_mainwindow): @@ -621,3 +625,4 @@ class Ui_biacv_mainwindow(object): 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)) +import biacv_res_rc diff --git a/biacv_res.qrc b/biacv_res.qrc new file mode 100644 index 0000000..5fc265f --- /dev/null +++ b/biacv_res.qrc @@ -0,0 +1,5 @@ + + + res/icon.svg + + diff --git a/biacv_res_rc.py b/biacv_res_rc.py new file mode 100644 index 0000000..a4cc8e9 --- /dev/null +++ b/biacv_res_rc.py @@ -0,0 +1,135 @@ +# -*- coding: utf-8 -*- + +# Resource object code +# +# Created: Tue Dec 6 14:04:06 2011 +# by: The Resource Compiler for PyQt (Qt v4.7.3) +# +# WARNING! All changes made in this file will be lost! + +from PyQt4 import QtCore + +qt_resource_data = "\ +\x00\x00\x05\x9d\ +\x00\ +\x00\x19\x3a\x78\x9c\xed\x58\x4b\x6f\xdb\x46\x10\xbe\xfb\x57\xb0\ +\xcc\x25\x41\x45\x72\xdf\x0f\x45\x52\x0e\x0d\x0a\x04\x68\x7b\x68\ +\x53\xf4\x4c\x93\x2b\x89\x08\x45\x0a\xcb\x95\x65\xfb\xd7\x77\x96\ +\xe2\x43\x8a\xe4\x54\x41\x8b\x20\x69\x4c\xc0\xb0\x77\xe6\x9b\xd9\ +\x99\x8f\x33\xb3\x5c\xcf\xde\xdc\x6f\xca\xe0\xce\xd8\xa6\xa8\xab\ +\x79\x88\x63\x14\x06\xa6\xca\xea\xbc\xa8\x56\xf3\xf0\xcf\xf7\x3f\ +\x47\x2a\x0c\x1a\x97\x56\x79\x5a\xd6\x95\x99\x87\x55\x1d\xbe\x59\ +\xdc\xcc\x7e\x88\xa2\xe0\x27\x6b\x52\x67\xf2\x60\x5f\xb8\x75\xf0\ +\xae\xfa\xd0\x64\xe9\xd6\x04\x2f\xd7\xce\x6d\xa7\x49\xb2\xdf\xef\ +\xe3\xa2\x13\xc6\xb5\x5d\x25\xaf\x82\x28\x5a\xdc\xdc\xcc\x9a\xbb\ +\xd5\x4d\x10\x04\xb0\x6f\xd5\x4c\xf3\x6c\x1e\x76\x06\xdb\x9d\x2d\ +\x5b\x60\x9e\x25\xa6\x34\x1b\x53\xb9\x26\xc1\x31\x4e\xc2\x11\x9e\ +\x8d\xf0\xcc\xef\x5e\xdc\x99\xac\xde\x6c\xea\xaa\x69\x2d\xab\xe6\ +\xc5\x11\xd8\xe6\xcb\x01\xed\xa3\xd9\xd3\x16\x84\xb5\xd6\x09\x22\ +\x09\x21\x11\x20\xa2\xe6\xa1\x72\xe9\x7d\x74\x6a\x0a\x31\x5e\x32\ +\x25\x08\xa1\x04\x74\x23\xf2\x3a\xd4\xb4\x01\x42\xb7\xf0\x33\xc0\ +\x7b\x41\xdc\xd4\x3b\x9b\x99\x25\xd8\x99\xb8\x32\x2e\x79\xfb\xfe\ +\xed\xa0\x8c\x50\x9c\xbb\xfc\xc8\x4d\xcf\xe7\xc9\xae\x27\x24\x57\ +\xe9\xc6\x34\xdb\x34\x33\x4d\xd2\xcb\x5b\xfb\x7d\x91\xbb\xf5\x3c\ +\xa4\x64\x7b\xdf\xae\xd7\xa6\x58\xad\xdd\x91\xa0\xc8\xe7\x21\xc4\ +\x4c\xb4\xe2\xed\xfa\xa8\x24\xf0\x01\xd0\xb9\x9b\x0e\x1a\x14\x33\ +\x15\xe3\xc0\x6a\x29\x50\x0b\xe9\xe3\x9e\xe6\x75\xe6\x03\x99\x87\ +\xbf\x99\x7d\x00\x8b\x9d\x7f\x99\x01\x09\x17\x80\x9a\xe5\x66\xd9\ +\x78\xf4\x61\x4f\xbf\x82\x4d\x65\x18\x24\xad\x76\xf0\xe1\x1d\xe4\ +\x77\x85\xd9\x8f\xd8\xdb\xb4\x39\x64\x13\x04\xdb\x74\x05\x6f\xbe\ +\xac\xed\x3c\x7c\xb1\x6c\x9f\x4e\x71\x5b\xdb\xdc\xd8\x5e\x25\xda\ +\xe7\x44\x55\x03\x3b\x85\x7b\x38\xd4\x7a\xe7\xbb\x4f\xcd\x7b\x1d\ +\xf4\xe8\xb2\xbe\x59\xa7\x79\xbd\x9f\x87\xe4\x63\xe5\x63\x5d\x6f\ +\xc0\x2b\xf0\xa5\xa5\x42\x67\xea\xec\x1e\xd8\xa6\xb1\x92\x8a\x12\ +\x7c\xa6\xf4\xf1\xa0\x98\x33\x8a\x31\x3d\x53\xee\xac\x05\xfe\xa2\ +\x32\x7d\x30\x90\x54\xfb\xab\xf7\xd0\xac\xeb\xfd\xca\x7a\x72\x9c\ +\xdd\x99\x8f\x2d\xbd\x26\xba\xbd\xad\xef\x2f\xab\xfb\x37\x13\xed\ +\xaa\xc2\x41\x29\x77\xa5\x70\x84\xd8\x17\x15\x24\x1b\x75\xd5\x83\ +\x89\x3a\xa3\xa4\x43\xf4\xf5\x24\x19\x7b\x02\x01\x31\x44\x4f\xe9\ +\x1e\x3e\xa1\xdb\xa4\xf7\xc5\xa6\x78\x34\x90\x22\xee\x8b\x64\x63\ +\x5c\x9a\xa7\x2e\x1d\x4b\xa3\x97\x10\xad\x51\x5b\x66\x80\x82\xee\ +\x9e\xfe\xfe\xf6\xe7\xc3\x0a\xd6\x59\x36\xfd\xab\xb6\x1f\xba\x25\ +\x3c\x1e\x90\xde\xd6\x3b\x88\x3b\x5c\x0c\xe2\x59\x9e\x4d\xa1\x1f\ +\x37\xa9\x5b\x14\x1b\x78\xe1\xbe\x95\x7f\x84\xfe\x9b\x25\xa3\xe2\ +\x04\xec\x1e\xb6\x66\x74\x7a\x70\x6b\xcd\xa1\xb1\x2f\x4e\xb7\x3c\ +\xdb\x14\xde\x28\xf9\xc3\x15\x65\xf9\xce\x6f\xd2\x65\x76\xe4\xb4\ +\x70\xa5\x59\xb4\x7b\x1e\xfe\xec\xb3\x48\xba\x34\xba\x24\x93\xa3\ +\x2c\x67\x49\x4f\x43\xbb\x5a\x8d\xf4\x9c\xd4\xcc\xc0\x70\x99\xde\ +\x9a\x72\x1e\xfe\xe2\x95\xc1\x99\x76\x65\xeb\xdd\x76\x53\xe7\xa6\ +\x33\xef\x69\xdd\xa6\x6e\xdd\x87\x3a\x74\xab\x4f\x07\x06\x88\x4b\ +\x6d\x38\xe8\xdc\x43\x09\xb2\xae\x9f\xa6\x30\x2d\x5e\x2f\x21\xdd\ +\xe9\x0b\xd4\x3e\xed\x22\xea\xb5\xf8\xb0\xb4\xbb\xd2\x4c\xab\xba\ +\x7a\x84\x3e\x7d\xdd\x38\x5b\x7f\x30\x03\xfe\xb0\x3c\xd4\x22\x78\ +\x93\xbc\x97\x94\x45\x65\x20\xe2\x29\xc4\x5b\xe5\xbd\x10\x18\x36\ +\xb6\x84\xca\x71\x53\xd6\xcb\xc6\xcd\x3a\x41\x9e\x42\x37\x5b\x9b\ +\x3e\xf8\x3d\xcd\xb1\xb4\x5e\x2e\x1b\xe3\xa6\x68\xc8\xc6\xb3\xe8\ +\x33\xa7\x98\xb1\x88\x86\x67\x04\x34\x45\x6e\xa0\x85\xc4\xb9\xc6\ +\x37\x3e\x41\xb1\x20\x1a\x31\x79\x41\xed\x8b\x1f\xc5\x98\x69\x2c\ +\x04\x23\xe7\x00\x8b\xc1\x6d\x2c\xb1\x90\x42\x5e\xd8\xd8\x12\x98\ +\x2b\xb1\xa6\x8a\x68\x71\x41\x9d\xda\x15\xf6\xb3\x4c\x33\xae\x31\ +\x42\xfa\x22\x82\xf8\x69\xc8\x84\xe6\x48\x8d\x80\xa1\x10\x96\x65\ +\xea\x7c\x7a\xc0\xc0\x32\x2d\x87\x11\x7c\x84\x68\x99\xf7\x7a\x74\ +\x41\x07\xdf\x0e\x75\xd7\xc0\xa3\x1a\x16\xbf\x06\x84\xc5\x9c\x2b\ +\xaa\x27\x3c\x86\x23\x80\x52\x4c\x02\x02\x53\x99\x48\x22\xc4\x84\ +\xc6\x52\x28\x88\x9a\x05\x58\xc2\xd4\x14\x40\x1e\xe0\xb4\x94\x4c\ +\x13\xe5\x65\x8c\x32\x2d\xc9\x84\xc4\x98\x33\xc9\x85\x08\x30\xd0\ +\xc0\x84\x44\x7c\x02\x93\x14\x06\x81\xe6\x84\x7a\x20\xa2\x42\x72\ +\x36\x89\x30\x78\xa4\x94\x73\x10\x8a\x58\x68\xed\x91\x11\x8f\xb9\ +\x86\x23\x82\x05\x65\x40\x63\x0e\xe3\x97\xb0\x09\xf6\xe6\x54\x71\ +\x05\x22\xcc\x31\xc1\x6a\x12\x91\x98\x20\xe5\x37\x0a\xa0\x90\x19\ +\x46\xd2\x47\xa8\x08\x91\x54\x50\x80\x31\xa5\x88\x90\x60\x29\x08\ +\x93\x02\x53\x1a\x44\x34\x46\x1a\x21\xa6\x21\x42\xf0\x46\x39\x24\ +\x10\x3c\x9e\xf3\xe3\x80\xa0\xc6\x8f\x95\x28\x83\x51\x6c\x6c\x3b\ +\x28\xe1\xec\x41\x12\x42\xf1\xa1\x5f\x61\x72\x28\x21\x41\x99\xc0\ +\x1c\x8d\x06\x03\xce\x8f\x7f\xf8\x13\xde\xa3\x79\x09\x7c\x21\xaa\ +\x98\x20\x13\x1d\x0b\xa1\x94\x40\xfc\xd5\x30\x7d\x66\xd6\x64\xee\ +\x0b\x35\xb0\x3e\x3c\xec\x8b\xb7\xb1\xcf\x91\x42\x2b\x44\x7c\x10\ +\x77\x07\x1c\x21\xfe\x08\x66\x7c\x54\xf4\xe7\x1a\xd1\xb1\x52\x18\ +\x6b\x3c\x68\xfc\x71\x1e\x23\xac\x24\xa7\x6a\x10\xb6\x9f\x15\x8a\ +\x11\x4e\xd8\xe8\xc3\xfa\x8f\x89\x4f\x52\x7c\xa0\xf5\xf0\x1d\xf3\ +\xcd\xd3\xfa\x59\xa4\x42\x13\x32\xcd\x8f\x49\x85\xe6\x93\x4a\x48\ +\xa2\x8f\x49\x85\xe2\xc6\x1c\x7a\x9f\xd3\xa7\x58\x3d\x39\x95\x8e\ +\x59\xf5\x1c\x7d\x2e\xab\x80\x3f\x61\x15\x62\xfa\xa2\x74\xfa\x0f\ +\x9a\x80\xc1\x9c\x01\x3a\x99\x1f\x34\x5c\x31\x48\xde\xcf\x2d\x44\ +\x35\xc5\x9a\x4d\x2e\x9c\x4c\x08\xf3\xf3\x59\x91\xd5\x15\x04\xec\ +\x6a\x1b\xc1\x67\xe4\x5d\xea\x76\xd6\xfc\xef\x79\x93\x4a\x32\x44\ +\xf8\x44\xc2\x94\xf7\x13\x34\xc0\x1c\x9a\x12\x2e\x19\x9a\x5f\xe6\ +\x0d\x47\xe4\x99\xb9\x63\xe6\xe0\x16\x73\x35\x75\x17\xce\xfc\xef\ +\x9a\x3a\x7e\x3d\x75\xe2\x99\xba\x13\xea\xf4\xf5\xd4\xe1\x67\xea\ +\x8e\xa9\x23\xf4\x7a\xea\x9e\x4f\x89\x53\xea\xc6\x63\xa2\x3f\x5e\ +\x9f\xa0\x8e\xff\xeb\x86\xfd\xe7\xeb\xf2\xf8\x29\xf8\x4d\x5f\x91\ +\xbf\xd2\x0b\xf2\x05\xeb\xef\xe6\x82\x2c\xaf\xbe\x20\xe3\xff\xf8\ +\x82\x4c\xce\x2f\xc8\xec\xd2\x05\x99\x7e\x15\x17\x64\xff\xe9\x03\ +\xa5\x84\xc5\x44\xc5\x5a\x70\xc1\x89\xec\x2f\xc8\xb3\x64\xb5\xb8\ +\x99\xf9\x7f\x08\x2e\x6e\xfe\x06\x4e\xd7\x6b\x68\ +" + +qt_resource_name = "\ +\x00\x04\ +\x00\x06\xfa\x5e\ +\x00\x69\ +\x00\x63\x00\x6f\x00\x6e\ +\x00\x03\ +\x00\x00\x78\xc3\ +\x00\x72\ +\x00\x65\x00\x73\ +\x00\x08\ +\x0a\x61\x57\x27\ +\x00\x69\ +\x00\x63\x00\x6f\x00\x6e\x00\x2e\x00\x73\x00\x76\x00\x67\ +" + +qt_resource_struct = "\ +\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\ +\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\ +\x00\x00\x00\x0e\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\ +\x00\x00\x00\x1a\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\ +" + +def qInitResources(): + QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data) + +def qCleanupResources(): + QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data) + +qInitResources() diff --git a/res/icon.svg b/res/icon.svg new file mode 100644 index 0000000..5f6510c --- /dev/null +++ b/res/icon.svg @@ -0,0 +1,143 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + +