25 @signal connectNetwork(str,bool) emitted to connect or disconnect from a network |
25 @signal connectNetwork(str,bool) emitted to connect or disconnect from a network |
26 @signal editNetwork(str) emitted to edit a network configuration |
26 @signal editNetwork(str) emitted to edit a network configuration |
27 @signal joinChannel(str) emitted to join a channel |
27 @signal joinChannel(str) emitted to join a channel |
28 @signal nickChanged(str) emitted to change the nick name |
28 @signal nickChanged(str) emitted to change the nick name |
29 @signal sendData(str) emitted to send a message to the channel |
29 @signal sendData(str) emitted to send a message to the channel |
|
30 @signal away(bool) emitted to indicate the away status |
30 """ |
31 """ |
31 connectNetwork = pyqtSignal(str, bool) |
32 connectNetwork = pyqtSignal(str, bool) |
32 editNetwork = pyqtSignal(str) |
33 editNetwork = pyqtSignal(str) |
33 joinChannel = pyqtSignal(str) |
34 joinChannel = pyqtSignal(str) |
34 nickChanged = pyqtSignal(str) |
35 nickChanged = pyqtSignal(str) |
35 sendData = pyqtSignal(str) |
36 sendData = pyqtSignal(str) |
|
37 away = pyqtSignal(bool) |
36 |
38 |
37 |
39 |
38 # TODO: add context menu to messages pane with these entries: |
40 # TODO: add context menu to messages pane with these entries: |
39 # Copy |
41 # Copy |
40 # Copy Link Location |
42 # Copy Link Location |
126 identityName = self.__manager.getNetwork(networkName).getIdentityName() |
128 identityName = self.__manager.getNetwork(networkName).getIdentityName() |
127 awayMessage = self.__manager.getIdentity(identityName).getAwayMessage() |
129 awayMessage = self.__manager.getIdentity(identityName).getAwayMessage() |
128 self.sendData.emit("AWAY :" + awayMessage) |
130 self.sendData.emit("AWAY :" + awayMessage) |
129 self.awayButton.setIcon(UI.PixmapCache.getIcon("ircUserAway.png")) |
131 self.awayButton.setIcon(UI.PixmapCache.getIcon("ircUserAway.png")) |
130 self.__away = True |
132 self.__away = True |
|
133 self.away.emit(self.__away) |
131 |
134 |
132 @pyqtSlot() |
135 @pyqtSlot() |
133 def on_editButton_clicked(self): |
136 def on_editButton_clicked(self): |
134 """ |
137 """ |
135 Private slot to edit a network. |
138 Private slot to edit a network. |