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 |
19 |
|
20 |
20 class SvnCopyDialog(QDialog, Ui_SvnCopyDialog): |
21 class SvnCopyDialog(QDialog, Ui_SvnCopyDialog): |
21 """ |
22 """ |
22 Class implementing a dialog to enter the data for a copy operation. |
23 Class implementing a dialog to enter the data for a copy operation. |
23 """ |
24 """ |
24 def __init__(self, source, parent = None, move = False, force = False): |
25 def __init__(self, source, parent=None, move=False, force=False): |
25 """ |
26 """ |
26 Constructor |
27 Constructor |
27 |
28 |
28 @param source name of the source file/directory (string) |
29 @param source name of the source file/directory (string) |
29 @param parent parent widget (QWidget) |
30 @param parent parent widget (QWidget) |
57 return self.targetEdit.text(), self.forceCheckBox.isChecked() |
58 return self.targetEdit.text(), self.forceCheckBox.isChecked() |
58 |
59 |
59 @pyqtSlot() |
60 @pyqtSlot() |
60 def on_dirButton_clicked(self): |
61 def on_dirButton_clicked(self): |
61 """ |
62 """ |
62 Private slot to handle the button press for selecting the target via a |
63 Private slot to handle the button press for selecting the target via a |
63 selection dialog. |
64 selection dialog. |
64 """ |
65 """ |
65 if os.path.isdir(self.source): |
66 if os.path.isdir(self.source): |
66 target = E5FileDialog.getExistingDirectory( |
67 target = E5FileDialog.getExistingDirectory( |
67 None, |
68 None, |