개정판 e75b5c63
reducer validate
Change-Id: I0889367840a11222b56dc0665ab3e16b25331915
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
195 | 195 |
from EngineeringTextItem import QEngineeringTextItem |
196 | 196 |
from EngineeringEquipmentItem import QEngineeringEquipmentItem |
197 | 197 |
from EngineeringEndBreakItem import QEngineeringEndBreakItem |
198 |
from EngineeringReducerItem import QEngineeringReducerItem |
|
199 |
from QEngineeringSizeTextItem import QEngineeringSizeTextItem |
|
198 | 200 |
errors = [] |
199 | 201 |
|
200 | 202 |
try: |
... | ... | |
294 | 296 |
error.name = 'Error' |
295 | 297 |
errors.append(error) |
296 | 298 |
|
299 |
if type(self) is QEngineeringReducerItem: |
|
300 |
if not [size for size in self.associations() if type(size) is QEngineeringSizeTextItem]: |
|
301 |
error = SymbolSvgItem.createItem('Error', None, dataPath) |
|
302 |
error.parent = self |
|
303 |
error.msg = self.tr('No size label error') |
|
304 |
error.setToolTip(error.msg) |
|
305 |
error.area = self.area |
|
306 |
error.name = 'Error' |
|
307 |
errors.append(error) |
|
308 |
|
|
297 | 309 |
if self.iType == 34 or self.iType == 17 or self.iType == 22: |
298 | 310 |
if not self.EvaluatedLabel('OWNERSYMBOL'): |
299 | 311 |
error = SymbolSvgItem.createItem('Error', None, dataPath) |
내보내기 Unified diff