X-Git-Url: https://harishankar.org/repos/?p=biacv.git;a=blobdiff_plain;f=biacv_mainwindow_ui.py;h=b0dbee9f78e15ef2c7c3dc931ff30da6f35675fe;hp=ce4a164c80181affaba8bb42b0441cfb79224fa3;hb=12735f250b64468c4fb88d37d1952e99e7da3594;hpb=2329fe7718e8c0aa0d1c2cc92c56653ec7757e5c diff --git a/biacv_mainwindow_ui.py b/biacv_mainwindow_ui.py index ce4a164..b0dbee9 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: Wed Nov 30 18:36:56 2011 +# Created: Tue Dec 6 18:21:16 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) @@ -31,7 +34,9 @@ class Ui_biacv_mainwindow(object): self.title.setObjectName(_fromUtf8("title")) self.gridLayout_2.addWidget(self.title, 0, 1, 1, 1) self.pages = QtGui.QTabWidget(self.centralwidget) + self.pages.setAutoFillBackground(False) self.pages.setTabShape(QtGui.QTabWidget.Rounded) + self.pages.setUsesScrollButtons(True) self.pages.setDocumentMode(True) self.pages.setObjectName(_fromUtf8("pages")) self.tab = QtGui.QWidget() @@ -409,16 +414,21 @@ class Ui_biacv_mainwindow(object): 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.updateskill = QtGui.QPushButton(self.tab_4) + self.updateskill.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Update", None, QtGui.QApplication.UnicodeUTF8)) + self.updateskill.setObjectName(_fromUtf8("updateskill")) + self.gridLayout_5.addWidget(self.updateskill, 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 = QtGui.QTreeWidget(self.tab_4) + self.skillslist.setAlternatingRowColors(True) + self.skillslist.setRootIsDecorated(False) + self.skillslist.setUniformRowHeights(True) self.skillslist.setObjectName(_fromUtf8("skillslist")) + self.skillslist.headerItem().setText(0, QtGui.QApplication.translate("biacv_mainwindow", "Skill set", None, QtGui.QApplication.UnicodeUTF8)) + self.skillslist.headerItem().setText(1, QtGui.QApplication.translate("biacv_mainwindow", "Description", None, QtGui.QApplication.UnicodeUTF8)) self.gridLayout_5.addWidget(self.skillslist, 3, 0, 1, 4) self.pages.addTab(self.tab_4, _fromUtf8("")) self.tab_5 = QtGui.QWidget() @@ -443,36 +453,43 @@ class Ui_biacv_mainwindow(object): 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.language = QtGui.QLineEdit(self.frame) + self.language.setObjectName(_fromUtf8("language")) + self.gridLayout_6.addWidget(self.language, 1, 1, 1, 1) + self.canspeak = QtGui.QCheckBox(self.frame) + self.canspeak.setText(QtGui.QApplication.translate("biacv_mainwindow", "Spoken", None, QtGui.QApplication.UnicodeUTF8)) + self.canspeak.setChecked(True) + self.canspeak.setObjectName(_fromUtf8("canspeak")) + self.gridLayout_6.addWidget(self.canspeak, 1, 2, 1, 1) + self.canreadwrite = QtGui.QCheckBox(self.frame) + self.canreadwrite.setText(QtGui.QApplication.translate("biacv_mainwindow", "Read/write", None, QtGui.QApplication.UnicodeUTF8)) + self.canreadwrite.setObjectName(_fromUtf8("canreadwrite")) + self.gridLayout_6.addWidget(self.canreadwrite, 1, 3, 1, 2) + self.isproficient = QtGui.QCheckBox(self.frame) + self.isproficient.setText(QtGui.QApplication.translate("biacv_mainwindow", "Proficient", None, QtGui.QApplication.UnicodeUTF8)) + self.isproficient.setObjectName(_fromUtf8("isproficient")) + self.gridLayout_6.addWidget(self.isproficient, 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.updatelanguage = QtGui.QPushButton(self.frame) + self.updatelanguage.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Update", None, QtGui.QApplication.UnicodeUTF8)) + self.updatelanguage.setObjectName(_fromUtf8("updatelanguage")) + self.gridLayout_6.addWidget(self.updatelanguage, 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 = QtGui.QTreeWidget(self.frame) + self.languageslist.setAlternatingRowColors(True) + self.languageslist.setRootIsDecorated(False) + self.languageslist.setUniformRowHeights(True) self.languageslist.setObjectName(_fromUtf8("languageslist")) + self.languageslist.headerItem().setText(0, QtGui.QApplication.translate("biacv_mainwindow", "Language", None, QtGui.QApplication.UnicodeUTF8)) + self.languageslist.headerItem().setText(1, QtGui.QApplication.translate("biacv_mainwindow", "Can speak", None, QtGui.QApplication.UnicodeUTF8)) + self.languageslist.headerItem().setText(2, QtGui.QApplication.translate("biacv_mainwindow", "Can read/write", None, QtGui.QApplication.UnicodeUTF8)) + self.languageslist.headerItem().setText(3, QtGui.QApplication.translate("biacv_mainwindow", "Proficient", None, QtGui.QApplication.UnicodeUTF8)) 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) @@ -492,9 +509,6 @@ class Ui_biacv_mainwindow(object): 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")) @@ -504,36 +518,45 @@ class Ui_biacv_mainwindow(object): 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.setStatusTip(QtGui.QApplication.translate("biacv_mainwindow", "Create a new file", None, QtGui.QApplication.UnicodeUTF8)) self.action_New.setObjectName(_fromUtf8("action_New")) + self.action_Open = QtGui.QAction(biacv_mainwindow) + self.action_Open.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Open...", None, QtGui.QApplication.UnicodeUTF8)) + self.action_Open.setStatusTip(QtGui.QApplication.translate("biacv_mainwindow", "Open an existing file", None, QtGui.QApplication.UnicodeUTF8)) + self.action_Open.setObjectName(_fromUtf8("action_Open")) self.action_Save = QtGui.QAction(biacv_mainwindow) - self.action_Save.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Open...", None, QtGui.QApplication.UnicodeUTF8)) + self.action_Save.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Save", None, QtGui.QApplication.UnicodeUTF8)) + self.action_Save.setStatusTip(QtGui.QApplication.translate("biacv_mainwindow", "Save current file", None, QtGui.QApplication.UnicodeUTF8)) + self.action_Save.setShortcut(QtGui.QApplication.translate("biacv_mainwindow", "Ctrl+S", 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.setStatusTip(QtGui.QApplication.translate("biacv_mainwindow", "Save as a different file", 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.setStatusTip(QtGui.QApplication.translate("biacv_mainwindow", "Export as HTML document", 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.setStatusTip(QtGui.QApplication.translate("biacv_mainwindow", "Export as an OpenOffice document", 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.setStatusTip(QtGui.QApplication.translate("biacv_mainwindow", "Show program information", 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.action_Export = QtGui.QAction(biacv_mainwindow) + self.action_Export.setText(QtGui.QApplication.translate("biacv_mainwindow", "&Export...", None, QtGui.QApplication.UnicodeUTF8)) + self.action_Export.setObjectName(_fromUtf8("action_Export")) self.menu_File.addAction(self.action_New) - self.menu_File.addAction(self.action_Save) + self.menu_File.addAction(self.action_Open) self.menu_File.addSeparator() - self.menu_File.addAction(self.action_Save_2) + self.menu_File.addAction(self.action_Save) self.menu_File.addAction(self.actionSave_As) - self.menu_File.addAction(self.menu_Export.menuAction()) + self.menu_File.addAction(self.action_Export) self.menu_File.addSeparator() self.menu_File.addAction(self.actionE_xit) self.menu_Help.addAction(self.action_About) @@ -552,6 +575,44 @@ class Ui_biacv_mainwindow(object): QtCore.QObject.connect(self.professionlist, QtCore.SIGNAL(_fromUtf8("itemSelectionChanged()")), biacv_mainwindow.on_select_profession) QtCore.QObject.connect(self.professionlist, QtCore.SIGNAL(_fromUtf8("activated(QModelIndex)")), biacv_mainwindow.on_select_profession) QtCore.QObject.connect(self.deletehistory, QtCore.SIGNAL(_fromUtf8("clicked()")), biacv_mainwindow.on_delete_profession) + QtCore.QObject.connect(self.updatehistory, QtCore.SIGNAL(_fromUtf8("clicked()")), biacv_mainwindow.on_update_profession) + QtCore.QObject.connect(self.addskill, QtCore.SIGNAL(_fromUtf8("clicked()")), biacv_mainwindow.on_add_skill) + QtCore.QObject.connect(self.deleteskill, QtCore.SIGNAL(_fromUtf8("clicked()")), biacv_mainwindow.on_delete_skill) + QtCore.QObject.connect(self.skillslist, QtCore.SIGNAL(_fromUtf8("activated(QModelIndex)")), biacv_mainwindow.on_select_skill) + QtCore.QObject.connect(self.skillslist, QtCore.SIGNAL(_fromUtf8("itemSelectionChanged()")), biacv_mainwindow.on_select_skill) + QtCore.QObject.connect(self.updateskill, QtCore.SIGNAL(_fromUtf8("clicked()")), biacv_mainwindow.on_update_skill) + QtCore.QObject.connect(self.addlanguage, QtCore.SIGNAL(_fromUtf8("clicked()")), biacv_mainwindow.on_add_lang) + QtCore.QObject.connect(self.deletelanguage, QtCore.SIGNAL(_fromUtf8("clicked()")), biacv_mainwindow.on_delete_lang) + QtCore.QObject.connect(self.languageslist, QtCore.SIGNAL(_fromUtf8("activated(QModelIndex)")), biacv_mainwindow.on_select_lang) + QtCore.QObject.connect(self.languageslist, QtCore.SIGNAL(_fromUtf8("itemSelectionChanged()")), biacv_mainwindow.on_select_lang) + QtCore.QObject.connect(self.updatelanguage, QtCore.SIGNAL(_fromUtf8("clicked()")), biacv_mainwindow.on_update_lang) + QtCore.QObject.connect(self.title, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.nametitle, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.firstname, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.lastname, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.dateofbirth, QtCore.SIGNAL(_fromUtf8("dateChanged(QDate)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.street, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.countrycode_landline, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.telephone, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.area, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.countrycode_mobile, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.mobilenumber, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.city, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.email, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.areacode, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.married, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.single, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.unspecified, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.shorttermcareer, QtCore.SIGNAL(_fromUtf8("textChanged()")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.longtermgoals, QtCore.SIGNAL(_fromUtf8("textChanged()")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.additionalinformation, QtCore.SIGNAL(_fromUtf8("textChanged()")), biacv_mainwindow.on_document_modified) + QtCore.QObject.connect(self.action_New, QtCore.SIGNAL(_fromUtf8("triggered()")), biacv_mainwindow.on_file_new) + QtCore.QObject.connect(self.action_Save, QtCore.SIGNAL(_fromUtf8("triggered()")), biacv_mainwindow.on_file_save) + 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.QObject.connect(self.action_Export, QtCore.SIGNAL(_fromUtf8("triggered()")), biacv_mainwindow.on_file_export) QtCore.QMetaObject.connectSlotsByName(biacv_mainwindow) def retranslateUi(self, biacv_mainwindow): @@ -562,3 +623,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