22 import Utilities |
22 import Utilities |
23 |
23 |
24 |
24 |
25 class SvnCopyDialog(QDialog, Ui_SvnCopyDialog): |
25 class SvnCopyDialog(QDialog, Ui_SvnCopyDialog): |
26 """ |
26 """ |
27 Class implementing a dialog to enter the data for a copy or rename operation. |
27 Class implementing a dialog to enter the data for a copy or rename |
|
28 operation. |
28 """ |
29 """ |
29 def __init__(self, source, parent=None, move=False, force=False): |
30 def __init__(self, source, parent=None, move=False, force=False): |
30 """ |
31 """ |
31 Constructor |
32 Constructor |
32 |
33 |
63 """ |
64 """ |
64 target = self.targetEdit.text() |
65 target = self.targetEdit.text() |
65 if not os.path.isabs(target): |
66 if not os.path.isabs(target): |
66 sourceDir = os.path.dirname(self.sourceEdit.text()) |
67 sourceDir = os.path.dirname(self.sourceEdit.text()) |
67 target = os.path.join(sourceDir, target) |
68 target = os.path.join(sourceDir, target) |
68 return Utilities.toNativeSeparators(target), self.forceCheckBox.isChecked() |
69 return (Utilities.toNativeSeparators(target), |
|
70 self.forceCheckBox.isChecked()) |
69 |
71 |
70 @pyqtSlot() |
72 @pyqtSlot() |
71 def on_dirButton_clicked(self): |
73 def on_dirButton_clicked(self): |
72 """ |
74 """ |
73 Private slot to handle the button press for selecting the target via a |
75 Private slot to handle the button press for selecting the target via a |