프로젝트

일반

사용자정보

개정판 7abc65e6

ID7abc65e62b6580988ee7326986c5f6074f7a5720
상위 d5d3fc59
하위 1bcdcbba

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

issue #506: add text transparency onoff option

Change-Id: Ie8828c806aeead7a835dd63d964e7601b8521ca0

차이점 보기:

DTI_PID/DTI_PID/ConfigurationDialog.py
125 125
            self.ui.radioButtonDiagonalYes.setChecked(False)
126 126
            self.ui.radioButtonDiagonalNo.setChecked(True)
127 127

  
128
        #configs = docData.getConfigs('Text', 'Back')
128
        configs = docData.getConfigs('Text', 'Background')
129 129
        if configs:
130 130
            size = int(configs[0].value)
131
            self.ui.radioButtonDiagonalYes.setChecked(True if size == 1 else False)
132
            self.ui.radioButtonDiagonalNo.setChecked(True if size == -1 else False)
131
            self.ui.radioButtonBackTextYes.setChecked(True if size == 1 else False)
132
            self.ui.radioButtonBackTextNo.setChecked(True if size == -1 else False)
133 133
        else:
134
            self.ui.radioButtonDiagonalYes.setChecked(False)
135
            self.ui.radioButtonDiagonalNo.setChecked(True)
134
            self.ui.radioButtonBackTextYes.setChecked(True)
135
            self.ui.radioButtonBackTextNo.setChecked(False)
136 136

  
137 137
        properties = docData.getLineProperties()
138 138
        if properties:
......
701 701
            configs.append(Config('Line Detector', 'Length to connect line', self.ui.spinBoxLengthToConnectLine.value()))
702 702
            configs.append(Config('Line', 'Default Type', self.ui.comboBoxLineType.currentText()))
703 703
            configs.append(Config('Line', 'Diagonal', '1' if self.ui.radioButtonDiagonalYes.isChecked() else '-1'))
704
            configs.append(Config('Text', 'Background', '1' if self.ui.radioButtonBackTextYes.isChecked() else '-1'))
704 705
            configs.append(Config('Note No Tag Rule', 'Note No Expression', self.ui.lineEditNoteNoExpression.text()))
705 706
            configs.append(Config('Note No Tag Rule', 'Note No Symbol Name', self.ui.lineEditNoteNoSymbolName.text()))
706 707
            configs.append(Config('OPC Tag Rule', 'From Prefix', self.ui.lineEditOPCFromPrefix.text()))
DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py
237 237

  
238 238
        # draw white background during hover
239 239
        if self.hover:
240
            painter.setPen(Qt.NoPen)
241
            painter.setBrush(Qt.white)
242
            painter.drawRect(self.boundingRect())
240
            configs = AppDocData.instance().getConfigs('Text', 'Background')
241
            if not configs or not int(configs[0].value) != 1:
242
                painter.setPen(Qt.NoPen)
243
                painter.setBrush(Qt.white)
244
                painter.drawRect(self.boundingRect())
243 245
        # up to here
244 246

  
245 247
        painter.setPen(QPen(color))

내보내기 Unified diff

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