50 self.startdir = startdir |
50 self.startdir = startdir |
51 self.on_filterComboBox_highlighted('(*.py)') |
51 self.on_filterComboBox_highlighted('(*.py)') |
52 # enable all dialog elements |
52 # enable all dialog elements |
53 if filter == 'source': # it is a source file |
53 if filter == 'source': # it is a source file |
54 self.filterComboBox.addItem( |
54 self.filterComboBox.addItem( |
55 self.trUtf8("Source Files"), "SOURCES") |
55 self.tr("Source Files"), "SOURCES") |
56 elif filter == 'form': |
56 elif filter == 'form': |
57 self.filterComboBox.addItem( |
57 self.filterComboBox.addItem( |
58 self.trUtf8("Forms Files"), "FORMS") |
58 self.tr("Forms Files"), "FORMS") |
59 elif filter == 'resource': |
59 elif filter == 'resource': |
60 self.filterComboBox.addItem( |
60 self.filterComboBox.addItem( |
61 self.trUtf8("Resource Files"), "RESOURCES") |
61 self.tr("Resource Files"), "RESOURCES") |
62 elif filter == 'interface': |
62 elif filter == 'interface': |
63 self.filterComboBox.addItem( |
63 self.filterComboBox.addItem( |
64 self.trUtf8("Interface Files"), "INTERFACES") |
64 self.tr("Interface Files"), "INTERFACES") |
65 elif filter == 'others': |
65 elif filter == 'others': |
66 self.filterComboBox.addItem( |
66 self.filterComboBox.addItem( |
67 self.trUtf8("Other Files (*)"), "OTHERS") |
67 self.tr("Other Files (*)"), "OTHERS") |
68 self.on_filterComboBox_highlighted('(*)') |
68 self.on_filterComboBox_highlighted('(*)') |
69 else: |
69 else: |
70 self.filterComboBox.addItem( |
70 self.filterComboBox.addItem( |
71 self.trUtf8("Source Files"), "SOURCES") |
71 self.tr("Source Files"), "SOURCES") |
72 self.filterComboBox.addItem( |
72 self.filterComboBox.addItem( |
73 self.trUtf8("Forms Files"), "FORMS") |
73 self.tr("Forms Files"), "FORMS") |
74 self.filterComboBox.addItem( |
74 self.filterComboBox.addItem( |
75 self.trUtf8("Resource Files"), "RESOURCES") |
75 self.tr("Resource Files"), "RESOURCES") |
76 self.filterComboBox.addItem( |
76 self.filterComboBox.addItem( |
77 self.trUtf8("Interface Files"), "INTERFACES") |
77 self.tr("Interface Files"), "INTERFACES") |
78 self.filterComboBox.addItem( |
78 self.filterComboBox.addItem( |
79 self.trUtf8("Other Files (*)"), "OTHERS") |
79 self.tr("Other Files (*)"), "OTHERS") |
80 self.filterComboBox.setCurrentIndex(0) |
80 self.filterComboBox.setCurrentIndex(0) |
81 |
81 |
82 @pyqtSlot(str) |
82 @pyqtSlot(str) |
83 def on_filterComboBox_highlighted(self, fileType): |
83 def on_filterComboBox_highlighted(self, fileType): |
84 """ |
84 """ |