개정판 fef64c89
issue #000: clean codes
Change-Id: I73f5a6a6f7040bca4698207267f5b3c269b42be2
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
314 | 314 |
keyItem.setBackground(QColor(220, 220, 220)) |
315 | 315 |
keyItem.tag = key |
316 | 316 |
valueItem = QTableWidgetItem(str(value)) |
317 |
if key.AttributeType == 'Size Text Item' or key.AttributeType == 'Text Item' or key.AttributeType == 'Valve Oper Code' or key.AttributeType == 'Symbol Item':
|
|
317 |
if key.is_selectable:
|
|
318 | 318 |
from PyQt5 import QtGui |
319 | 319 |
icon = QtGui.QIcon() |
320 | 320 |
icon.addPixmap(QtGui.QPixmap(":/newPrefix/doubleclick.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
330 | 330 |
maxProgressValue = int(maxProgressValue*0.5) + len(textAreas) |
331 | 331 | |
332 | 332 |
worker.displayTitle.emit(worker.tr('Detecting texts...')) |
333 |
#textDetector.recognizeText(appDocData.imgSrc, (0,0), textAreas, searchedSymbolList, worker, listWidget, maxProgressValue) |
|
334 | 333 |
textDetector.recognizeText(appDocData.imgSrc, offset, textAreas, searchedSymbolList, worker, listWidget, maxProgressValue) |
335 | 334 |
textInfoList = textDetector.textInfoList.copy() if textDetector.textInfoList is not None else None |
336 | 335 |
otherTextInfoList = textDetector.otherTextInfoList.copy() if textDetector.otherTextInfoList is not None else None |
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
21 | 21 |
import shapely |
22 | 22 | |
23 | 23 |
class QEngineeringLineItem(QGraphicsLineItem, QEngineeringAbstractItem): |
24 |
""" |
|
25 |
This is engineering line item |
|
26 |
""" |
|
27 | ||
24 | 28 |
ARROW_SIZE = 30 |
25 | 29 |
ZVALUE = 100 |
26 | 30 |
HIGHLIGHT = '#BC4438' |
DTI_PID/DTI_PID/SymbolAttr.py | ||
---|---|---|
16 | 16 |
self.Expression = None |
17 | 17 |
self.Length = None |
18 | 18 | |
19 |
@property |
|
20 |
def is_selectable(self): |
|
21 |
""" |
|
22 |
return if attribute is selectable |
|
23 |
""" |
|
24 |
return (self.AttributeType == 'Size Text Item' or self.AttributeType == 'Text Item' or self.AttributeType == 'Valve Oper Code' or self.AttributeType == 'Symbol Item') |
|
25 | ||
19 | 26 |
@staticmethod |
20 | 27 |
def fromXml(node): |
21 | 28 |
""" |
내보내기 Unified diff