61 |
61 |
62 self.channelCombo.lineEdit().returnPressed.connect(self.on_joinButton_clicked) |
62 self.channelCombo.lineEdit().returnPressed.connect(self.on_joinButton_clicked) |
63 self.nickCombo.lineEdit().returnPressed.connect( |
63 self.nickCombo.lineEdit().returnPressed.connect( |
64 self.on_nickCombo_currentIndexChanged) |
64 self.on_nickCombo_currentIndexChanged) |
65 |
65 |
|
66 self.setConnected(False) |
|
67 |
66 self.__initMessagesMenu() |
68 self.__initMessagesMenu() |
67 |
69 |
68 self.__manager = None |
70 self.__manager = None |
69 self.__connected = False |
71 self.__connected = False |
70 self.__registered = False |
72 self.__registered = False |
281 @param connected flag indicating the connection state (boolean) |
283 @param connected flag indicating the connection state (boolean) |
282 """ |
284 """ |
283 self.__connected = connected |
285 self.__connected = connected |
284 if self.__connected: |
286 if self.__connected: |
285 self.connectButton.setIcon(UI.PixmapCache.getIcon("ircDisconnect.png")) |
287 self.connectButton.setIcon(UI.PixmapCache.getIcon("ircDisconnect.png")) |
|
288 self.connectButton.setToolTip( |
|
289 self.trUtf8("Press to disconnect from the network")) |
286 else: |
290 else: |
287 self.connectButton.setIcon(UI.PixmapCache.getIcon("ircConnect.png")) |
291 self.connectButton.setIcon(UI.PixmapCache.getIcon("ircConnect.png")) |
|
292 self.connectButton.setToolTip( |
|
293 self.trUtf8("Press to connect to the selected network")) |
288 |
294 |
289 def isConnected(self): |
295 def isConnected(self): |
290 """ |
296 """ |
291 Public method to check, if the network is connected. |
297 Public method to check, if the network is connected. |
292 |
298 |