프로젝트

일반

사용자정보

개정판 5ed3c39a

ID5ed3c39ad048cac7632d04da4f0d921200e4f0ee
상위 fef64c89
하위 3e35441b

백흠경이(가) 약 6년 전에 추가함

issue #000: change Explode.svg

Change-Id: Ib432f414ae4fdfd538378847d60484779f778f22

차이점 보기:

DTI_PID/DTI_PID/MainWindow.py
261 261

  
262 262
        errors = []
263 263

  
264
        for item in self.graphicsView.scene.items():
265
            if type(item) is QEngineeringErrorItem:
266
                item.transfer.onRemoved.emit(item)
267
            if type(item) is QEngineeringLineItem or issubclass(type(item), SymbolSvgItem):
268
                for error in item.validate():
269
                    errors.append(error)
270

  
271
        for error in errors:
272
            error.transfer.onRemoved.connect(self.itemRemoved)
273
            self.graphicsView.scene.addItem(error)
274

  
275
        self.tableWidgetInconsistency.clearContents()
276
        self.tableWidgetInconsistency.setRowCount(len(errors))
277
        for index in range(len(errors)):
278
            items = self.makeInconsistencyTableRow(errors[index])
279
            self.tableWidgetInconsistency.setItem(index, 0, items[0])
280
            self.tableWidgetInconsistency.setItem(index, 1, items[1])
264
        try:
265
            for item in self.graphicsView.scene.items():
266
                if type(item) is QEngineeringErrorItem:
267
                    item.transfer.onRemoved.emit(item)
268
                if type(item) is QEngineeringLineItem or issubclass(type(item), SymbolSvgItem):
269
                    for error in item.validate():
270
                        errors.append(error)
271

  
272
            for error in errors:
273
                error.transfer.onRemoved.connect(self.itemRemoved)
274
                self.graphicsView.scene.addItem(error)
275

  
276
            self.tableWidgetInconsistency.clearContents()
277
            self.tableWidgetInconsistency.setRowCount(len(errors))
278
            for index in range(len(errors)):
279
                items = self.makeInconsistencyTableRow(errors[index])
280
                self.tableWidgetInconsistency.setItem(index, 0, items[0])
281
                self.tableWidgetInconsistency.setItem(index, 1, items[1])
282
        except Exception as ex:
283
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
284
            self.addMessage.emit(MessageType.Error, message)
281 285

  
282 286
    def makeInconsistencyTableRow(self, errorItem):
283 287
        '''
DTI_PID/DTI_PID/res/Explode.svg
6 6
 preserveAspectRatio="xMidYMid meet">
7 7

  
8 8
<g transform="translate(0.000000,72.000000) scale(0.050000,-0.050000)"
9
fill="#000000" stroke="none">
9
fill="url(#normal)" stroke="none">
10 10
<path d="M140 1435 c0 -4 71 -81 159 -171 178 -183 252 -281 227 -300 -8 -6
11 11
-128 -44 -265 -84 l-250 -73 231 -236 c324 -331 326 -334 233 -389 -30 -18
12 12
-55 -37 -55 -43 0 -5 12 -14 28 -20 29 -11 428 -99 449 -99 18 0 17 72 -2 190
......
14 14
-96 56 -221 182 l-103 104 293 88 c161 48 297 92 303 97 11 11 -62 87 -303
15 15
315 -221 208 -237 217 -414 222 -70 3 -128 1 -128 -3z"/>
16 16
</g>
17
<defs><linearGradient id="normal" x1="0%" x2="100%" y1="0%" y2="0%">
18
    <stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" />
19
    <stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
20
    </linearGradient><linearGradient id="hover" x2="1" y2="1">
21
    <stop offset="0%" stop-color="#FF0000" />
22
    <stop offset="50%" stop-color="#FF0000" />
23
    <stop offset="100%" stop-color="#FF0000" />
24
  </linearGradient></defs>
17 25
</svg>

내보내기 Unified diff

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