20 import Utilities |
20 import Utilities |
21 |
21 |
22 |
22 |
23 class HgCopyDialog(QDialog, Ui_HgCopyDialog): |
23 class HgCopyDialog(QDialog, Ui_HgCopyDialog): |
24 """ |
24 """ |
25 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 |
|
26 operation. |
26 """ |
27 """ |
27 def __init__(self, source, parent=None, move=False, force=False): |
28 def __init__(self, source, parent=None, move=False, force=False): |
28 """ |
29 """ |
29 Constructor |
30 Constructor |
30 |
31 |
61 """ |
62 """ |
62 target = self.targetEdit.text() |
63 target = self.targetEdit.text() |
63 if not os.path.isabs(target): |
64 if not os.path.isabs(target): |
64 sourceDir = os.path.dirname(self.sourceEdit.text()) |
65 sourceDir = os.path.dirname(self.sourceEdit.text()) |
65 target = os.path.join(sourceDir, target) |
66 target = os.path.join(sourceDir, target) |
66 return Utilities.toNativeSeparators(target), self.forceCheckBox.isChecked() |
67 return Utilities.toNativeSeparators(target), \ |
|
68 self.forceCheckBox.isChecked() |
67 |
69 |
68 @pyqtSlot() |
70 @pyqtSlot() |
69 def on_dirButton_clicked(self): |
71 def on_dirButton_clicked(self): |
70 """ |
72 """ |
71 Private slot to handle the button press for selecting the target via a |
73 Private slot to handle the button press for selecting the target via a |