Plugins/VcsPlugins/vcsMercurial/HgExportDialog.py

changeset 2962
d6c9d1ca2da4
parent 2302
f29e9405c851
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
2961:e4e2efb4846a 2962:d6c9d1ca2da4
55 enabled = False 55 enabled = False
56 56
57 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) 57 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled)
58 58
59 @pyqtSlot(str) 59 @pyqtSlot(str)
60 def on_directoryEdit_textChanged(self, p0): 60 def on_directoryEdit_textChanged(self, txt):
61 """ 61 """
62 Private slot to react on changes of the export directory edit. 62 Private slot to react on changes of the export directory edit.
63 63
64 @param txt contents of the line edit (string) 64 @param txt contents of the line edit (string)
65 """ 65 """
78 78
79 if dn: 79 if dn:
80 self.directoryEdit.setText(Utilities.toNativeSeparators(dn)) 80 self.directoryEdit.setText(Utilities.toNativeSeparators(dn))
81 81
82 @pyqtSlot(str) 82 @pyqtSlot(str)
83 def on_patternEdit_textChanged(self, p0): 83 def on_patternEdit_textChanged(self, txt):
84 """ 84 """
85 Private slot to react on changes of the export file name pattern edit. 85 Private slot to react on changes of the export file name pattern edit.
86 86
87 @param txt contents of the line edit (string) 87 @param txt contents of the line edit (string)
88 """ 88 """
90 90
91 @pyqtSlot() 91 @pyqtSlot()
92 def on_changesetsEdit_textChanged(self): 92 def on_changesetsEdit_textChanged(self):
93 """ 93 """
94 Private slot to react on changes of the changesets edit. 94 Private slot to react on changes of the changesets edit.
95
96 @param txt contents of the line edit (string)
97 """ 95 """
98 self.__updateOK() 96 self.__updateOK()
99 97
100 def getParameters(self): 98 def getParameters(self):
101 """ 99 """
102 Public method to retrieve the export data. 100 Public method to retrieve the export data.
103 101
104 @return tuple naming the output file name, the list of revisions to export, 102 @return tuple naming the output file name, the list of revisions to
105 and flags indicating to compare against the second parent, to treat all 103 export, and flags indicating to compare against the second parent,
106 files as text, to omit dates in the diff headers and to use the git extended 104 to treat all files as text, to omit dates in the diff headers and
107 diff format (string, list of strings, boolean, boolean, boolean, boolean) 105 to use the git extended diff format (string, list of strings,
106 boolean, boolean, boolean, boolean)
108 """ 107 """
109 return ( 108 return (
110 os.path.join(Utilities.toNativeSeparators(self.directoryEdit.text()), 109 os.path.join(
111 self.patternEdit.text()), 110 Utilities.toNativeSeparators(self.directoryEdit.text()),
111 self.patternEdit.text()),
112 self.changesetsEdit.toPlainText().splitlines(), 112 self.changesetsEdit.toPlainText().splitlines(),
113 self.switchParentCheckBox.isChecked(), 113 self.switchParentCheckBox.isChecked(),
114 self.textCheckBox.isChecked(), 114 self.textCheckBox.isChecked(),
115 self.datesCheckBox.isChecked(), 115 self.datesCheckBox.isChecked(),
116 self.gitCheckBox.isChecked() 116 self.gitCheckBox.isChecked()

eric ide

mercurial