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