Network/IRC/IrcChannelWidget.py

branch
5_3_x
changeset 2449
b5b9d235e2cd
parent 2448
9bf183ba828d
child 2476
3137ed00325e
equal deleted inserted replaced
2448:9bf183ba828d 2449:b5b9d235e2cd
1084 """ 1084 """
1085 Private slot to copy the selection of the messages display to the clipboard. 1085 Private slot to copy the selection of the messages display to the clipboard.
1086 """ 1086 """
1087 self.messages.copy() 1087 self.messages.copy()
1088 1088
1089 def __cutMessages(self):
1090 """
1091 Private slot to cut the selection of the messages display to the clipboard.
1092 """
1093 self.messages.cut()
1094
1095 def __copyAllMessages(self): 1089 def __copyAllMessages(self):
1096 """ 1090 """
1097 Private slot to copy the contents of the messages display to the clipboard. 1091 Private slot to copy the contents of the messages display to the clipboard.
1098 """ 1092 """
1099 txt = self.messages.toPlainText() 1093 txt = self.messages.toPlainText()
1165 def __initMessagesMenu(self): 1159 def __initMessagesMenu(self):
1166 """ 1160 """
1167 Private slot to initialize the context menu of the messages pane. 1161 Private slot to initialize the context menu of the messages pane.
1168 """ 1162 """
1169 self.__messagesMenu = QMenu(self) 1163 self.__messagesMenu = QMenu(self)
1170 self.__cutMessagesAct = \
1171 self.__messagesMenu.addAction(
1172 UI.PixmapCache.getIcon("editCut.png"),
1173 self.trUtf8("Cut"), self.__cutMessages)
1174 self.__copyMessagesAct = \ 1164 self.__copyMessagesAct = \
1175 self.__messagesMenu.addAction( 1165 self.__messagesMenu.addAction(
1176 UI.PixmapCache.getIcon("editCopy.png"), 1166 UI.PixmapCache.getIcon("editCopy.png"),
1177 self.trUtf8("Copy"), self.__copyMessages) 1167 self.trUtf8("Copy"), self.__copyMessages)
1178 self.__messagesMenu.addSeparator() 1168 self.__messagesMenu.addSeparator()
1210 Private slot to react to text selection/deselection of the messages edit. 1200 Private slot to react to text selection/deselection of the messages edit.
1211 1201
1212 @param yes flag signaling the availability of selected text (boolean) 1202 @param yes flag signaling the availability of selected text (boolean)
1213 """ 1203 """
1214 self.__copyMessagesAct.setEnabled(yes) 1204 self.__copyMessagesAct.setEnabled(yes)
1215 self.__cutMessagesAct.setEnabled(yes)
1216 1205
1217 @pyqtSlot(QPoint) 1206 @pyqtSlot(QPoint)
1218 def on_messages_customContextMenuRequested(self, pos): 1207 def on_messages_customContextMenuRequested(self, pos):
1219 """ 1208 """
1220 Private slot to show the context menu of the messages pane. 1209 Private slot to show the context menu of the messages pane.

eric ide

mercurial