eric6/Network/IRC/IrcNetworkEditDialog.py

changeset 7759
51aa6c6b66f7
parent 7533
88261c96484b
child 7780
41420f82c0ac
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
135 Private slot to edit the identities. 135 Private slot to edit the identities.
136 """ 136 """
137 from .IrcIdentitiesEditDialog import IrcIdentitiesEditDialog 137 from .IrcIdentitiesEditDialog import IrcIdentitiesEditDialog
138 currentIdentity = self.identityCombo.currentText() 138 currentIdentity = self.identityCombo.currentText()
139 dlg = IrcIdentitiesEditDialog(self.__manager, currentIdentity, self) 139 dlg = IrcIdentitiesEditDialog(self.__manager, currentIdentity, self)
140 dlg.exec_() 140 dlg.exec()
141 self.__refreshIdentityCombo(currentIdentity) 141 self.__refreshIdentityCombo(currentIdentity)
142 142
143 @pyqtSlot(str) 143 @pyqtSlot(str)
144 def on_serverEdit_textChanged(self, txt): 144 def on_serverEdit_textChanged(self, txt):
145 """ 145 """
154 """ 154 """
155 Private slot to edit the server configuration. 155 Private slot to edit the server configuration.
156 """ 156 """
157 from .IrcServerEditDialog import IrcServerEditDialog 157 from .IrcServerEditDialog import IrcServerEditDialog
158 dlg = IrcServerEditDialog(self.__network.getServer()) 158 dlg = IrcServerEditDialog(self.__network.getServer())
159 if dlg.exec_() == QDialog.Accepted: 159 if dlg.exec() == QDialog.Accepted:
160 self.__network.setServer(dlg.getServer()) 160 self.__network.setServer(dlg.getServer())
161 self.serverEdit.setText(self.__network.getServerName()) 161 self.serverEdit.setText(self.__network.getServerName())
162 162
163 @pyqtSlot() 163 @pyqtSlot()
164 def on_addChannelButton_clicked(self): 164 def on_addChannelButton_clicked(self):
236 key = "" 236 key = ""
237 autoJoin = False 237 autoJoin = False
238 238
239 from .IrcChannelEditDialog import IrcChannelEditDialog 239 from .IrcChannelEditDialog import IrcChannelEditDialog
240 dlg = IrcChannelEditDialog(name, key, autoJoin, itm is not None, self) 240 dlg = IrcChannelEditDialog(name, key, autoJoin, itm is not None, self)
241 if dlg.exec_() == QDialog.Accepted: 241 if dlg.exec() == QDialog.Accepted:
242 from .IrcNetworkManager import IrcChannel 242 from .IrcNetworkManager import IrcChannel
243 name, key, autoJoin = dlg.getData() 243 name, key, autoJoin = dlg.getData()
244 channel = IrcChannel(name) 244 channel = IrcChannel(name)
245 channel.setKey(key) 245 channel.setKey(key)
246 channel.setAutoJoin(autoJoin) 246 channel.setAutoJoin(autoJoin)

eric ide

mercurial