프로젝트

일반

사용자정보

개정판 c2fa3351

IDc2fa335169cfb6fae4522660d885d34954e0fc44
상위 3bfe8b41
하위 04513791

함의성이(가) 일년 이상 전에 추가함

add replace context

Change-Id: If8d06ca83ce2b0ed2aa9d2a5b585bdd3cd60ad53

차이점 보기:

DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py
1150 1150
            showAction.triggered.connect(self.contextShow)
1151 1151
            menu.addAction(showAction)
1152 1152

  
1153
            replaceAction = QAction('Replace This to Selected Symbol(I)', None)
1154
            replaceAction.triggered.connect(self.contextReplace)
1155
            menu.addAction(replaceAction)
1156

  
1157
            insertAction = QAction('Insert Selected Symbol to This(J)', None)
1158
            insertAction.triggered.connect(self.contextInsert)
1159
            menu.addAction(insertAction)
1160

  
1153 1161
            if type(self) != QEngineeringSpecBreakItem:
1154 1162
                bindAction = QAction('Bind(B)', None)
1155 1163
                bindAction.triggered.connect(self.contextBind)
......
1187 1195
        event = QKeyEvent(QEvent.KeyPress, Qt.Key_Delete, Qt.NoModifier)
1188 1196
        self.scene().keyPressEvent(event)
1189 1197

  
1198
    def contextReplace(self):
1199
        event = QKeyEvent(QEvent.KeyPress, Qt.Key_I, Qt.NoModifier)
1200
        self.scene().keyPressEvent(event)
1201

  
1202
    def contextInsert(self):
1203
        event = QKeyEvent(QEvent.KeyPress, Qt.Key_J, Qt.NoModifier)
1204
        self.scene().keyPressEvent(event)
1205

  
1190 1206
    def contextShowOnARS(self):
1191 1207
        from TcpServer import TcpSocket
1192 1208

  

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)