프로젝트

일반

사용자정보

개정판 ef4aed65

IDef4aed65af66b8970249cb02e2cd48053324484c
상위 0cf44537
하위 ad9b6fa6

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

issue #000: disable datalist

Change-Id: I2267d4cd1290e7327c0be72a82ccfa4b18889b94

차이점 보기:

DTI_PID/DTI_PID/ItemPropertyTableWidget.py
208 208
            self.setItem(0, 3, QTableWidgetItem(str(self._item.uid)))
209 209

  
210 210
            self.show_item_properties(item)
211
            self.show_item_attributes(item)
211 212
        finally:
212 213
            self.blockSignals(False)
213 214

  
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py
223 223
            from EngineeringTextItem import QEngineeringTextItem
224 224
            from EngineeringValveOperCodeTextItem import QEngineeringValveOperCodeTextItem
225 225
            from EngineeringLineItem import QEngineeringLineItem
226
            from EngineeringVendorItem import QEngineeringVendorItem
226 227

  
227 228
            """ get attributes of item from database """
228 229
            docData = AppDocData.instance()
229
            symbolAttrs = docData.getSymbolAttribute(self.type) if type(self) is not QEngineeringLineItem else docData.getSymbolAttribute('Line')
230
            if type(self) is QEngineeringLineItem:
231
                symbolAttrs =  docData.getSymbolAttribute('Line')
232
            elif type(self) is QEngineeringVendorItem:
233
                symbolAttrs =  docData.getSymbolAttribute('Package')
234
            else:
235
                symbolAttrs = docData.getSymbolAttribute(self.type)
230 236
            targetAttrs = []
231 237
            if type(self) is not QEngineeringLineItem:
232 238
                for attr in symbolAttrs:
DTI_PID/DTI_PID/Shapes/EngineeringEquipmentItem.py
34 34
                SymbolProp(None, 'Name', 'Text Item', Expression='self.EvaluatedName'): None
35 35
            }
36 36

  
37
        '''
37 38
        if QEngineeringEquipmentItem.EQUIP_COLUMN_LIST is None:
38 39
            from AppDocData import AppDocData
39 40

  
40 41
            appDocData = AppDocData.instance()
41 42
            QEngineeringEquipmentItem.EQUIP_COLUMN_LIST = appDocData.getColNames('EQUIPMENT_DATA_LIST')
43
        '''
42 44

  
43 45
    def texts(self):
44 46
        """ return text type of labels """
DTI_PID/DTI_PID/Shapes/EngineeringInstrumentItem.py
35 35
        self._tagSeqNo = None
36 36
        self._tagSuffix = None
37 37

  
38
        '''
38 39
        if QEngineeringInstrumentItem.INST_COLUMN_LIST is None:
39 40
            from AppDocData import AppDocData
40 41

  
41 42
            appDocData = AppDocData.instance()
42 43
            QEngineeringInstrumentItem.INST_COLUMN_LIST = appDocData.getColNames('INSTRUMENT_DATA_LIST')
44
        '''
43 45

  
44 46
    '''
45 47
        @brief  getter of measured variable code
DTI_PID/DTI_PID/Shapes/EngineeringVendorItem.py
41 41
        self.setColor(self._color if type == 'Vendor Package' else QEngineeringVendorItem.EQUIPMENT_PACKAGE_COLOR)
42 42
        self._savedColor = None
43 43

  
44
        self._properties = {SymbolProp(None, 'Name', 'Text Item', Expression='self.EvaluatedName'): None}
44
        #self._properties = {SymbolProp(None, 'Name', 'Text Item', Expression='self.EvaluatedName'): None}
45
        self._properties = {}
45 46
        self._type = type
46 47

  
47 48
        self.setFlags(QGraphicsItem.ItemIsSelectable | QGraphicsItem.ItemIsFocusable)

내보내기 Unified diff

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