40 self.patchFilesList.addItems(patchCheckData[0]) |
40 self.patchFilesList.addItems(patchCheckData[0]) |
41 self.stripSpinBox.setValue(patchCheckData[1]) |
41 self.stripSpinBox.setValue(patchCheckData[1]) |
42 self.eofCheckBox.setChecked(patchCheckData[2]) |
42 self.eofCheckBox.setChecked(patchCheckData[2]) |
43 self.lineCountsCheckBox.setChecked(patchCheckData[3]) |
43 self.lineCountsCheckBox.setChecked(patchCheckData[3]) |
44 |
44 |
45 self.addButton.setIcon(UI.PixmapCache.getIcon("plus.png")) |
45 self.addButton.setIcon(UI.PixmapCache.getIcon("plus")) |
46 self.deleteButton.setIcon(UI.PixmapCache.getIcon("minus.png")) |
46 self.deleteButton.setIcon(UI.PixmapCache.getIcon("minus")) |
47 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow.png")) |
47 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow")) |
48 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow.png")) |
48 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow")) |
49 |
49 |
50 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
50 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
51 self.__okButton.setEnabled(len(self.__getPatchFilesList()) > 0) |
51 self.__okButton.setEnabled(len(self.__getPatchFilesList()) > 0) |
52 |
52 |
53 self.deleteButton.setEnabled(False) |
53 self.deleteButton.setEnabled(False) |