10 import os.path |
10 import os.path |
11 |
11 |
12 from PyQt6.QtCore import pyqtSlot |
12 from PyQt6.QtCore import pyqtSlot |
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
14 |
14 |
15 from EricWidgets.EricCompleters import EricFileCompleter, EricDirCompleter |
15 from eric7.EricWidgets.EricCompleters import EricFileCompleter, EricDirCompleter |
16 from EricWidgets import EricFileDialog |
16 from eric7.EricWidgets import EricFileDialog |
17 |
17 |
18 from .Ui_GitCopyDialog import Ui_GitCopyDialog |
18 from .Ui_GitCopyDialog import Ui_GitCopyDialog |
19 |
19 |
20 import Utilities |
20 from eric7 import Utilities |
21 import UI.PixmapCache |
21 from eric7.EricGui import EricPixmapCache |
22 |
22 |
23 |
23 |
24 class GitCopyDialog(QDialog, Ui_GitCopyDialog): |
24 class GitCopyDialog(QDialog, Ui_GitCopyDialog): |
25 """ |
25 """ |
26 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 |
36 @param move flag indicating a move operation (boolean) |
36 @param move flag indicating a move operation (boolean) |
37 """ |
37 """ |
38 super().__init__(parent) |
38 super().__init__(parent) |
39 self.setupUi(self) |
39 self.setupUi(self) |
40 |
40 |
41 self.dirButton.setIcon(UI.PixmapCache.getIcon("open")) |
41 self.dirButton.setIcon(EricPixmapCache.getIcon("open")) |
42 |
42 |
43 self.source = source |
43 self.source = source |
44 if os.path.isdir(self.source): |
44 if os.path.isdir(self.source): |
45 self.targetCompleter = EricDirCompleter(self.targetEdit) |
45 self.targetCompleter = EricDirCompleter(self.targetEdit) |
46 else: |
46 else: |