13 from E5Gui import E5MessageBox |
13 from E5Gui import E5MessageBox |
14 |
14 |
15 from .Ui_IrcNetworkListDialog import Ui_IrcNetworkListDialog |
15 from .Ui_IrcNetworkListDialog import Ui_IrcNetworkListDialog |
16 |
16 |
17 from .IrcNetworkManager import IrcIdentity |
17 from .IrcNetworkManager import IrcIdentity |
|
18 from .IrcNetworkEditDialog import IrcNetworkEditDialog |
18 |
19 |
19 |
20 |
20 class IrcNetworkListDialog(QDialog, Ui_IrcNetworkListDialog): |
21 class IrcNetworkListDialog(QDialog, Ui_IrcNetworkListDialog): |
21 """ |
22 """ |
22 Class implementing a dialog to list the configured IRC networks. |
23 Class implementing a dialog to list the configured IRC networks. |
97 raise NotImplementedError |
98 raise NotImplementedError |
98 |
99 |
99 @pyqtSlot() |
100 @pyqtSlot() |
100 def on_editButton_clicked(self): |
101 def on_editButton_clicked(self): |
101 """ |
102 """ |
102 Slot documentation goes here. |
103 Private slot to edit the selected network. |
103 """ |
104 """ |
104 # TODO: not implemented yet |
105 itm = self.networksList.selectedItems()[0] |
105 raise NotImplementedError |
106 if itm: |
|
107 networkName = itm.text(0) |
|
108 dlg = IrcNetworkEditDialog(self.__manager, networkName, self) |
|
109 if dlg.exec_() == QDialog.Accepted: |
|
110 pass |
|
111 # TODO: not implemented yet |
106 |
112 |
107 @pyqtSlot() |
113 @pyqtSlot() |
108 def on_deleteButton_clicked(self): |
114 def on_deleteButton_clicked(self): |
109 """ |
115 """ |
110 Private slot to delete the selected entry. |
116 Private slot to delete the selected entry. |