8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtCore import pyqtSlot, QUrl |
10 from PyQt6.QtCore import pyqtSlot, QUrl |
11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
12 |
12 |
13 from EricWidgets.EricCompleters import EricDirCompleter |
13 from eric7.EricWidgets.EricCompleters import EricDirCompleter |
14 from EricWidgets import EricFileDialog |
14 from eric7.EricWidgets import EricFileDialog |
15 |
15 |
16 from .Ui_GitSubmoduleAddDialog import Ui_GitSubmoduleAddDialog |
16 from .Ui_GitSubmoduleAddDialog import Ui_GitSubmoduleAddDialog |
17 from .Config import ConfigGitSchemes |
17 from .Config import ConfigGitSchemes |
18 |
18 |
19 import Utilities |
19 from eric7 import Preferences, Utilities |
20 import Preferences |
20 from eric7.EricGui import EricPixmapCache |
21 import UI.PixmapCache |
|
22 |
21 |
23 |
22 |
24 class GitSubmoduleAddDialog(QDialog, Ui_GitSubmoduleAddDialog): |
23 class GitSubmoduleAddDialog(QDialog, Ui_GitSubmoduleAddDialog): |
25 """ |
24 """ |
26 Class implementing a dialog to enter the data to add a submodule. |
25 Class implementing a dialog to enter the data to add a submodule. |
41 self.setupUi(self) |
40 self.setupUi(self) |
42 |
41 |
43 self.__vcs = vcs |
42 self.__vcs = vcs |
44 self.__repodir = repodir |
43 self.__repodir = repodir |
45 |
44 |
46 self.submoduleDirButton.setIcon(UI.PixmapCache.getIcon("open")) |
45 self.submoduleDirButton.setIcon(EricPixmapCache.getIcon("open")) |
47 self.submoduleUrlButton.setIcon(UI.PixmapCache.getIcon("open")) |
46 self.submoduleUrlButton.setIcon(EricPixmapCache.getIcon("open")) |
48 self.submoduleUrlClearHistoryButton.setIcon( |
47 self.submoduleUrlClearHistoryButton.setIcon( |
49 UI.PixmapCache.getIcon("editDelete") |
48 EricPixmapCache.getIcon("editDelete") |
50 ) |
49 ) |
51 |
50 |
52 submoduleUrlHistory = self.__vcs.getPlugin().getPreferences( |
51 submoduleUrlHistory = self.__vcs.getPlugin().getPreferences( |
53 "RepositoryUrlHistory" |
52 "RepositoryUrlHistory" |
54 ) |
53 ) |