프로젝트

일반

사용자정보

개정판 e09ebb6d

IDe09ebb6d8cf1beac8c550861a8fc85e1c4311354
상위 644f87af
하위 665c8265

함의성이(가) 약 2년 전에 추가함

cad graphic test

Change-Id: I26dbecd8d38422a2c1bc2f0a5c320719b134d385

차이점 보기:

DTI_PID/DTI_PID/AppDocData.py
99 99
        self.tracerLineNos = []
100 100
        self.lineIndicators = []
101 101

  
102
        # for cad graphic items to sppid
103
        self.cadGraphics = []
104

  
102 105
        # caches
103 106
        self._configs = None
104 107
        self._symbolBase = {}
......
161 164
        self.unknowns.clear()
162 165
        self.allItems.clear()
163 166
        self.tracerLineNos.clear()
167
        self.cadGraphics.clear()
164 168
        self.lineIndicators.clear()
165 169
        self.lineNoFromToIndicator.clear()
166 170
        self.SpecBreakUpDownIndicator.clear()
DTI_PID/DTI_PID/Commands/LoadCommand.py
354 354
                        item = QEngineeringVendorItem.fromXml(vendor)
355 355
                        scene.addItem(item)
356 356

  
357
            # cad graphic item load
358
            if root.find('GRAPHICS') is not None:
359
                for graphic in root.find('GRAPHICS').iter('GRAPHIC'):
360
                    app_doc_data.cadGraphics.append(graphic)
361
            # up to here
362

  
357 363
            # connect flow item to line
358 364
            for line in lines:
359 365
                line.update_arrow()
DTI_PID/DTI_PID/MainWindow.py
1295 1295

  
1296 1296
            app_doc_data.clearItemList(False)
1297 1297

  
1298
            items = self.graphicsView.scene().items()
1298
            #items = self.graphicsView.scene().items()
1299 1299

  
1300 1300
            self._save_work_cmd = SaveWorkCommand(self.graphicsView.scene())
1301 1301
            self._save_work_cmd.show_progress.connect(self.progress_bar.setValue)
DTI_PID/DTI_PID/XmlGenerator.py
483 483
                else:
484 484
                    resultDic[key][1].append(str(line.uid))
485 485

  
486
        for graphic in app_doc_data.cadGraphics:
487
            graphicListNode.append(graphic)
488

  
486 489
        xml.append(symbolListNode)
487 490
        xml.append(textInfoListNode)
488 491
        xml.append(noteTextInfoListNode)

내보내기 Unified diff

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