개정판 796570a1
add title text find
Change-Id: I8dc4c8b00fe365c0b7791a395936e0caf49154da
DTI_PID/DTI_PID/TextItemEditDialog.py | ||
---|---|---|
412 | 412 |
text_items = list(duplication.values()) |
413 | 413 |
elif text.upper() == 'AREA': |
414 | 414 |
text_items = [item for item in self.mainWindow.graphicsView.scene().items() if issubclass(type(item), QEngineeringTextItem) and item.area and item.area != 'None'] |
415 |
elif text.upper() == 'TITLE': |
|
416 |
app_doc_data = AppDocData.instance() |
|
417 |
title_areas = app_doc_data.getTitleBlockProperties() |
|
418 |
title_areas = [area[0] for area in title_areas] |
|
419 |
text_items = [item for item in self.mainWindow.graphicsView.scene().items() if issubclass(type(item), QEngineeringTextItem) and item.area in title_areas] |
|
415 | 420 |
else: |
416 | 421 |
text_items = [item for item in self.mainWindow.graphicsView.scene().items() |
417 | 422 |
if issubclass(type(item), QEngineeringTextItem) and (item.text().upper().count(text.upper()) if not self.ui.checkBoxMatch.isChecked() else item.text().upper() == text.upper())] |
내보내기 Unified diff