1331 self.tr("Show Version"), self.__showDeviceVersion) |
1331 self.tr("Show Version"), self.__showDeviceVersion) |
1332 act.setEnabled(self.__connected) |
1332 act.setEnabled(self.__connected) |
1333 act = self.__superMenu.addAction( |
1333 act = self.__superMenu.addAction( |
1334 self.tr("Show Implementation"), self.__showImplementation) |
1334 self.tr("Show Implementation"), self.__showImplementation) |
1335 act.setEnabled(self.__connected) |
1335 act.setEnabled(self.__connected) |
|
1336 act = self.__superMenu.addAction( |
|
1337 self.tr("Show Board Data"), self.__showBoardInformation) |
|
1338 act.setEnabled(self.__connected) |
1336 self.__superMenu.addSeparator() |
1339 self.__superMenu.addSeparator() |
1337 if hasTime: |
1340 if hasTime: |
1338 act = self.__superMenu.addAction( |
1341 act = self.__superMenu.addAction( |
1339 self.tr("Synchronize Time"), self.__synchronizeTime) |
1342 self.tr("Synchronize Time"), self.__synchronizeTime) |
1340 act.setEnabled(self.__connected) |
1343 act.setEnabled(self.__connected) |
1442 ) |
1445 ) |
1443 except Exception as exc: |
1446 except Exception as exc: |
1444 self.__showError("getImplementation()", str(exc)) |
1447 self.__showError("getImplementation()", str(exc)) |
1445 |
1448 |
1446 @pyqtSlot() |
1449 @pyqtSlot() |
|
1450 def __showBoardInformation(self): |
|
1451 """ |
|
1452 Private slot to show all available information about a board. |
|
1453 """ |
|
1454 try: |
|
1455 boardInfo = self.__interface.getBoardInformation() |
|
1456 |
|
1457 from .BoardDataDialog import BoardDataDialog |
|
1458 dlg = BoardDataDialog(boardInfo) |
|
1459 dlg.exec() |
|
1460 except Exception as exc: |
|
1461 self.__showError("getBoardInformation()", str(exc)) |
|
1462 |
|
1463 @pyqtSlot() |
1447 def __synchronizeTime(self, quiet=False): |
1464 def __synchronizeTime(self, quiet=False): |
1448 """ |
1465 """ |
1449 Private slot to set the time of the connected device to the local |
1466 Private slot to set the time of the connected device to the local |
1450 computer's time. |
1467 computer's time. |
1451 |
1468 |