10 import copy |
10 import copy |
11 |
11 |
12 from PyQt6.QtCore import pyqtSlot |
12 from PyQt6.QtCore import pyqtSlot |
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QTreeWidgetItem |
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QTreeWidgetItem |
14 |
14 |
15 from EricWidgets import EricMessageBox |
15 from eric7.EricWidgets import EricMessageBox |
16 |
16 |
17 from .Ui_IrcNetworkEditDialog import Ui_IrcNetworkEditDialog |
17 from .Ui_IrcNetworkEditDialog import Ui_IrcNetworkEditDialog |
18 |
18 |
19 import UI.PixmapCache |
19 from eric7.EricGui import EricPixmapCache |
20 |
20 |
21 |
21 |
22 class IrcNetworkEditDialog(QDialog, Ui_IrcNetworkEditDialog): |
22 class IrcNetworkEditDialog(QDialog, Ui_IrcNetworkEditDialog): |
23 """ |
23 """ |
24 Class implementing a dialog for editing IRC network definitions. |
24 Class implementing a dialog for editing IRC network definitions. |
36 super().__init__(parent) |
36 super().__init__(parent) |
37 self.setupUi(self) |
37 self.setupUi(self) |
38 |
38 |
39 self.__manager = manager |
39 self.__manager = manager |
40 |
40 |
41 self.editIdentitiesButton.setIcon(UI.PixmapCache.getIcon("ircConfigure")) |
41 self.editIdentitiesButton.setIcon(EricPixmapCache.getIcon("ircConfigure")) |
42 self.editServerButton.setIcon(UI.PixmapCache.getIcon("ircConfigure")) |
42 self.editServerButton.setIcon(EricPixmapCache.getIcon("ircConfigure")) |
43 self.editChannelButton.setIcon(UI.PixmapCache.getIcon("ircConfigure")) |
43 self.editChannelButton.setIcon(EricPixmapCache.getIcon("ircConfigure")) |
44 self.addChannelButton.setIcon(UI.PixmapCache.getIcon("plus")) |
44 self.addChannelButton.setIcon(EricPixmapCache.getIcon("plus")) |
45 self.deleteChannelButton.setIcon(UI.PixmapCache.getIcon("minus")) |
45 self.deleteChannelButton.setIcon(EricPixmapCache.getIcon("minus")) |
46 |
46 |
47 self.__okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok) |
47 self.__okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok) |
48 |
48 |
49 if networkName: |
49 if networkName: |
50 self.__network = copy.deepcopy(self.__manager.getNetwork(networkName)) |
50 self.__network = copy.deepcopy(self.__manager.getNetwork(networkName)) |