16 from E5Gui import E5FileDialog |
16 from E5Gui import E5FileDialog |
17 |
17 |
18 from .Ui_HgCopyDialog import Ui_HgCopyDialog |
18 from .Ui_HgCopyDialog import Ui_HgCopyDialog |
19 |
19 |
20 import Utilities |
20 import Utilities |
|
21 import UI.PixmapCache |
21 |
22 |
22 |
23 |
23 class HgCopyDialog(QDialog, Ui_HgCopyDialog): |
24 class HgCopyDialog(QDialog, Ui_HgCopyDialog): |
24 """ |
25 """ |
25 Class implementing a dialog to enter the data for a copy or rename |
26 Class implementing a dialog to enter the data for a copy or rename |
34 @param move flag indicating a move operation (boolean) |
35 @param move flag indicating a move operation (boolean) |
35 @param force flag indicating a forced operation (boolean) |
36 @param force flag indicating a forced operation (boolean) |
36 """ |
37 """ |
37 super().__init__(parent) |
38 super().__init__(parent) |
38 self.setupUi(self) |
39 self.setupUi(self) |
|
40 |
|
41 self.dirButton.setIcon(UI.PixmapCache.getIcon("open.png")) |
39 |
42 |
40 self.source = source |
43 self.source = source |
41 if os.path.isdir(self.source): |
44 if os.path.isdir(self.source): |
42 self.targetCompleter = E5DirCompleter(self.targetEdit) |
45 self.targetCompleter = E5DirCompleter(self.targetEdit) |
43 else: |
46 else: |