219 Private slot to join a channel. |
219 Private slot to join a channel. |
220 """ |
220 """ |
221 channel = self.channelCombo.currentText() |
221 channel = self.channelCombo.currentText() |
222 self.joinChannel.emit(channel) |
222 self.joinChannel.emit(channel) |
223 |
223 |
224 @pyqtSlot(str) |
224 @pyqtSlot(int) |
225 def on_networkCombo_currentIndexChanged(self, networkName): |
225 def on_networkCombo_currentIndexChanged(self, index): |
226 """ |
226 """ |
227 Private slot to handle selections of a network. |
227 Private slot to handle selections of a network. |
228 |
228 |
229 @param networkName selected network name (string) |
229 @param index index of the selected entry |
230 """ |
230 @type int |
|
231 """ |
|
232 networkName = self.networkCombo.itemText(index) |
231 network = self.__manager.getNetwork(networkName) |
233 network = self.__manager.getNetwork(networkName) |
232 self.nickCombo.clear() |
234 self.nickCombo.clear() |
233 self.channelCombo.clear() |
235 self.channelCombo.clear() |
234 if network: |
236 if network: |
235 channels = network.getChannelNames() |
237 channels = network.getChannelNames() |
251 """ |
253 """ |
252 networkName = self.networkCombo.currentText() |
254 networkName = self.networkCombo.currentText() |
253 network = self.__manager.getNetwork(networkName) |
255 network = self.__manager.getNetwork(networkName) |
254 return network.getChannels() |
256 return network.getChannels() |
255 |
257 |
256 @pyqtSlot(str) |
258 @pyqtSlot(int) |
257 @pyqtSlot() |
259 @pyqtSlot() |
258 def on_nickCombo_currentIndexChanged(self, nick=""): |
260 def on_nickCombo_currentIndexChanged(self, nick=0): |
259 """ |
261 """ |
260 Private slot to use another nick name. |
262 Private slot to use another nick name. |
261 |
263 |
262 @param nick nick name to use (string) |
264 @param nick index of the selected nick name (unused) |
263 """ |
265 """ |
264 if self.__connected: |
266 if self.__connected: |
265 self.nickChanged.emit(self.nickCombo.currentText()) |
267 self.nickChanged.emit(self.nickCombo.currentText()) |
266 |
268 |
267 def getNickname(self): |
269 def getNickname(self): |