diff -r 1b59c4ba121e -r 8cd4d08fa9f6 Project/FiletypeAssociationDialog.py --- a/Project/FiletypeAssociationDialog.py Fri Mar 11 08:55:14 2011 +0100 +++ b/Project/FiletypeAssociationDialog.py Fri Mar 11 16:51:57 2011 +0100 @@ -12,11 +12,12 @@ from .Ui_FiletypeAssociationDialog import Ui_FiletypeAssociationDialog + class FiletypeAssociationDialog(QDialog, Ui_FiletypeAssociationDialog): """ Class implementing a dialog to enter filetype associations for the project. """ - def __init__(self, project, parent = None): + def __init__(self, project, parent=None): """ Constructor @@ -31,11 +32,11 @@ self.filetypeAssociationList.header().setSortIndicator(0, Qt.AscendingOrder) # keep these lists in sync - self.filetypes = ["SOURCES", "FORMS", "TRANSLATIONS", "RESOURCES", "INTERFACES", + self.filetypes = ["SOURCES", "FORMS", "TRANSLATIONS", "RESOURCES", "INTERFACES", "OTHERS", "__IGNORE__"] self.filetypeStrings = [self.trUtf8("Sources"), self.trUtf8("Forms"), self.trUtf8("Translations"), self.trUtf8("Resources"), - self.trUtf8("Interfaces"), self.trUtf8("Others"), + self.trUtf8("Interfaces"), self.trUtf8("Others"), self.trUtf8("Ignore")] self.filetypeCombo.addItems(self.filetypeStrings) @@ -54,7 +55,7 @@ """ Private method to resort the tree. """ - self.filetypeAssociationList.sortItems(self.filetypeAssociationList.sortColumn(), + self.filetypeAssociationList.sortItems(self.filetypeAssociationList.sortColumn(), self.filetypeAssociationList.header().sortIndicatorOrder()) def __reformat(self): @@ -152,4 +153,4 @@ itm = self.filetypeAssociationList.topLevelItem(index) pattern = itm.text(0) index = self.filetypeStrings.index(itm.text(1)) - self.project.pdata["FILETYPES"][pattern] = self.filetypes[index] \ No newline at end of file + self.project.pdata["FILETYPES"][pattern] = self.filetypes[index]