ABOUT_TEXT = """BiaCV - A resume creator/editor
Copyright 2011 V.Harishankar <hari@harishankar.net>.
-Licensed under the GNU GPL v3."""
\ No newline at end of file
+Licensed under the GNU GPL v3."""
+
+BIACV_FILE_FILTER = "BiaCV document(*.biacv);;All files(*.*)"
\ No newline at end of file
return
# open file dialog
- openfilename = PyQt4.QtGui.QFileDialog.getOpenFileName (self, lang.OPEN_TITLE)
+ openfilename = PyQt4.QtGui.QFileDialog.getOpenFileName (self, lang.OPEN_TITLE,
+ filter = lang.BIACV_FILE_FILTER)
# if no open file name then return
if openfilename == "":
return
# function to save a file as a new document
def on_file_save_as (self):
savefilename = PyQt4.QtGui.QFileDialog.getSaveFileName (self,
- lang.SAVE_TITLE)
+ lang.SAVE_TITLE, filter=lang.BIACV_FILE_FILTER)
# if save file name is not none
if savefilename <> "":
# if no current file get file name from file save dialog
if self.currentfile is None:
savefilename = PyQt4.QtGui.QFileDialog.getSaveFileName (self,
- lang.SAVE_TITLE)
+ lang.SAVE_TITLE, filter=lang.BIACV_FILE_FILTER)
if savefilename <> "":
mydata = self.get_document_data ()