Plugins/VcsPlugins/vcsSubversion/SvnCopyDialog.py

changeset 2357
f6a2cbf3f514
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 3009
bf5ae5d7477d
child 3163
9f50365a0870
equal deleted inserted replaced
2355:cb5489f9b734 2357:f6a2cbf3f514
14 14
15 from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter 15 from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter
16 from E5Gui import E5FileDialog 16 from E5Gui import E5FileDialog
17 17
18 from .Ui_SvnCopyDialog import Ui_SvnCopyDialog 18 from .Ui_SvnCopyDialog import Ui_SvnCopyDialog
19
20 import Utilities
19 21
20 22
21 class SvnCopyDialog(QDialog, Ui_SvnCopyDialog): 23 class SvnCopyDialog(QDialog, Ui_SvnCopyDialog):
22 """ 24 """
23 Class implementing a dialog to enter the data for a copy or rename operation. 25 Class implementing a dialog to enter the data for a copy or rename operation.
59 """ 61 """
60 target = self.targetEdit.text() 62 target = self.targetEdit.text()
61 if not os.path.isabs(target): 63 if not os.path.isabs(target):
62 sourceDir = os.path.dirname(self.sourceEdit.text()) 64 sourceDir = os.path.dirname(self.sourceEdit.text())
63 target = os.path.join(sourceDir, target) 65 target = os.path.join(sourceDir, target)
64 return target, self.forceCheckBox.isChecked() 66 return Utilities.toNativeSeparators(target), self.forceCheckBox.isChecked()
65 67
66 @pyqtSlot() 68 @pyqtSlot()
67 def on_dirButton_clicked(self): 69 def on_dirButton_clicked(self):
68 """ 70 """
69 Private slot to handle the button press for selecting the target via a 71 Private slot to handle the button press for selecting the target via a
82 self.targetEdit.text(), 84 self.targetEdit.text(),
83 "", 85 "",
84 E5FileDialog.Options(E5FileDialog.DontConfirmOverwrite)) 86 E5FileDialog.Options(E5FileDialog.DontConfirmOverwrite))
85 87
86 if target: 88 if target:
87 self.targetEdit.setText(target) 89 self.targetEdit.setText(Utilities.toNativeSeparators(target))
88 90
89 @pyqtSlot(str) 91 @pyqtSlot(str)
90 def on_targetEdit_textChanged(self, txt): 92 def on_targetEdit_textChanged(self, txt):
91 """ 93 """
92 Private slot to handle changes of the target. 94 Private slot to handle changes of the target.

eric ide

mercurial