332 pasteKeys = QKeySequence(Qt.CTRL + Qt.SHIFT + Qt.Key_V) |
332 pasteKeys = QKeySequence(Qt.CTRL + Qt.SHIFT + Qt.Key_V) |
333 menu = QMenu(self) |
333 menu = QMenu(self) |
334 menu.addAction(self.tr("Copy"), self.replEdit.copy, copyKeys) |
334 menu.addAction(self.tr("Copy"), self.replEdit.copy, copyKeys) |
335 menu.addAction(self.tr("Paste"), self.__paste, pasteKeys) |
335 menu.addAction(self.tr("Paste"), self.__paste, pasteKeys) |
336 menu.addSeparator() |
336 menu.addSeparator() |
|
337 # TODO: add device specific context menu entries |
337 menu.exec_(self.replEdit.mapToGlobal(pos)) |
338 menu.exec_(self.replEdit.mapToGlobal(pos)) |
338 |
339 |
339 def setConnected(self, connected): |
340 def setConnected(self, connected): |
340 """ |
341 """ |
341 Public method to set the connection status LED. |
342 Public method to set the connection status LED. |
414 if self.__replRunning: |
415 if self.__replRunning: |
415 self.on_replButton_clicked() |
416 self.on_replButton_clicked() |
416 |
417 |
417 if self.__plotterRunning: |
418 if self.__plotterRunning: |
418 self.on_chartButton_clicked() |
419 self.on_chartButton_clicked() |
419 |
|
420 # TODO: add more |
|
421 |
420 |
422 def __disconnectSerial(self): |
421 def __disconnectSerial(self): |
423 """ |
422 """ |
424 Private slot to disconnect the serial connection. |
423 Private slot to disconnect the serial connection. |
425 """ |
424 """ |