102 self.__mainWindow = parent |
102 self.__mainWindow = parent |
103 self.__lastSearch = () |
103 self.__lastSearch = () |
104 |
104 |
105 # create the context menu |
105 # create the context menu |
106 self.__menu = QMenu(self) |
106 self.__menu = QMenu(self) |
107 self.__menu.addAction(self.trUtf8('Clear'), self.clear) |
107 self.__menu.addAction(self.tr('Clear'), self.clear) |
108 self.__menu.addAction(self.trUtf8('Copy'), self.copy) |
108 self.__menu.addAction(self.tr('Copy'), self.copy) |
109 self.__menu.addSeparator() |
109 self.__menu.addSeparator() |
110 self.__menu.addAction(self.trUtf8('Find'), self.__find) |
110 self.__menu.addAction(self.tr('Find'), self.__find) |
111 self.__menu.addSeparator() |
111 self.__menu.addSeparator() |
112 self.__menu.addAction(self.trUtf8('Select All'), self.selectAll) |
112 self.__menu.addAction(self.tr('Select All'), self.selectAll) |
113 self.__menu.addSeparator() |
113 self.__menu.addSeparator() |
114 self.__menu.addAction(self.trUtf8("Configure..."), self.__configure) |
114 self.__menu.addAction(self.tr("Configure..."), self.__configure) |
115 |
115 |
116 self.setContextMenuPolicy(Qt.CustomContextMenu) |
116 self.setContextMenuPolicy(Qt.CustomContextMenu) |
117 self.customContextMenuRequested.connect(self.__handleShowContextMenu) |
117 self.customContextMenuRequested.connect(self.__handleShowContextMenu) |
118 |
118 |
119 self.cNormalFormat = self.currentCharFormat() |
119 self.cNormalFormat = self.currentCharFormat() |