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