23 if(event.key() == Qt.Key_0):
24 self.
ui.changeLandmarkType(guiLogic.landmarkType.UNDEFINED, ui.coneUnknownOption)
25 elif(event.key() == Qt.Key_1):
26 self.
ui.changeLandmarkType(guiLogic.landmarkType.BLUE, ui.coneBlueOption)
27 elif(event.key() == Qt.Key_2):
28 self.
ui.changeLandmarkType(guiLogic.landmarkType.YELLOW, ui.coneYellowOption)
29 elif(event.key() == Qt.Key_3):
30 self.
ui.changeLandmarkType(guiLogic.landmarkType.ORANGE, ui.coneOrangeOption)
31 elif(event.key() == Qt.Key_4):
32 self.
ui.changeLandmarkType(guiLogic.landmarkType.BIG_ORANGE, ui.coneBigOrangeOption)
33 elif(event.key() == Qt.Key_5):
34 self.
ui.changeLandmarkType(guiLogic.landmarkType.INVISIBLE, ui.coneInvisibleOption)
35 elif(event.key() == Qt.Key_C):
36 self.
guiLogic.editorMode = guiLogic.editorMode.LANE_CONNECT_LEFT
37 self.
ui.deactiveOptionsExcept(self.
ui.laneConnectOption)
38 self.
ui.activateLaneConnection()
39 elif(event.key() == Qt.Key_T):
40 self.
ui.activateTimeKeepingLine()
41 elif(event.key() == Qt.Key_P):
42 self.
ui.startPoseSettings()
43 elif(event.key() == Qt.Key_G):
44 self.
ui.gnssSettings()
46 elif(event.key() == Qt.Key_Escape):
47 self.
guiLogic.editorMode = guiLogic.editorMode.ADD
48 self.
ui.graphicsView.checkTimeKeepingLines()
49 self.
guiLogic.graphicsView.resetLaneConnections()
50 self.
guiLogic.graphicsView.addModeInit()
51 self.
ui.changeLandmarkType(self.
guiLogic.landmarkType, self.
ui.lastLandmarkOption)