310 def __copyMessages(self): |
310 def __copyMessages(self): |
311 """ |
311 """ |
312 Private slot to copy the selection of the messages display to the clipboard. |
312 Private slot to copy the selection of the messages display to the clipboard. |
313 """ |
313 """ |
314 self.messages.copy() |
314 self.messages.copy() |
315 |
|
316 def __cutMessages(self): |
|
317 """ |
|
318 Private slot to cut the selection of the messages display to the clipboard. |
|
319 """ |
|
320 self.messages.cut() |
|
321 |
315 |
322 def __copyAllMessages(self): |
316 def __copyAllMessages(self): |
323 """ |
317 """ |
324 Private slot to copy the contents of the messages display to the clipboard. |
318 Private slot to copy the contents of the messages display to the clipboard. |
325 """ |
319 """ |
392 def __initMessagesMenu(self): |
386 def __initMessagesMenu(self): |
393 """ |
387 """ |
394 Private slot to initialize the context menu of the messages pane. |
388 Private slot to initialize the context menu of the messages pane. |
395 """ |
389 """ |
396 self.__messagesMenu = QMenu(self) |
390 self.__messagesMenu = QMenu(self) |
397 self.__cutMessagesAct = \ |
|
398 self.__messagesMenu.addAction( |
|
399 UI.PixmapCache.getIcon("editCut.png"), |
|
400 self.trUtf8("Cut"), self.__cutMessages) |
|
401 self.__copyMessagesAct = \ |
391 self.__copyMessagesAct = \ |
402 self.__messagesMenu.addAction( |
392 self.__messagesMenu.addAction( |
403 UI.PixmapCache.getIcon("editCopy.png"), |
393 UI.PixmapCache.getIcon("editCopy.png"), |
404 self.trUtf8("Copy"), self.__copyMessages) |
394 self.trUtf8("Copy"), self.__copyMessages) |
405 self.__messagesMenu.addSeparator() |
395 self.__messagesMenu.addSeparator() |
430 Private slot to react to text selection/deselection of the messages edit. |
420 Private slot to react to text selection/deselection of the messages edit. |
431 |
421 |
432 @param yes flag signaling the availability of selected text (boolean) |
422 @param yes flag signaling the availability of selected text (boolean) |
433 """ |
423 """ |
434 self.__copyMessagesAct.setEnabled(yes) |
424 self.__copyMessagesAct.setEnabled(yes) |
435 self.__cutMessagesAct.setEnabled(yes) |
|
436 |
425 |
437 @pyqtSlot(QPoint) |
426 @pyqtSlot(QPoint) |
438 def on_messages_customContextMenuRequested(self, pos): |
427 def on_messages_customContextMenuRequested(self, pos): |
439 """ |
428 """ |
440 Private slot to show the context menu of the messages pane. |
429 Private slot to show the context menu of the messages pane. |