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 import Utilities |
20 import Utilities |
21 |
21 import UI.PixmapCache |
22 |
22 |
23 class SvnCopyDialog(QDialog, Ui_SvnCopyDialog): |
23 class SvnCopyDialog(QDialog, Ui_SvnCopyDialog): |
24 """ |
24 """ |
25 Class implementing a dialog to enter the data for a copy or rename |
25 Class implementing a dialog to enter the data for a copy or rename |
26 operation. |
26 operation. |
34 @param move flag indicating a move operation (boolean) |
34 @param move flag indicating a move operation (boolean) |
35 @param force flag indicating a forced operation (boolean) |
35 @param force flag indicating a forced operation (boolean) |
36 """ |
36 """ |
37 super().__init__(parent) |
37 super().__init__(parent) |
38 self.setupUi(self) |
38 self.setupUi(self) |
39 |
39 |
|
40 self.dirButton.setIcon(UI.PixmapCache.getIcon("open.png")) |
|
41 |
40 self.source = source |
42 self.source = source |
41 if os.path.isdir(self.source): |
43 if os.path.isdir(self.source): |
42 self.targetCompleter = E5DirCompleter(self.targetEdit) |
44 self.targetCompleter = E5DirCompleter(self.targetEdit) |
43 else: |
45 else: |
44 self.targetCompleter = E5FileCompleter(self.targetEdit) |
46 self.targetCompleter = E5FileCompleter(self.targetEdit) |