프로젝트

일반

사용자정보

개정판 3015e48e

ID3015e48efa9002b049801831b93bc4bcb2e86a34
상위 1d2fdd35
하위 0853bc78, 33f84426

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

bm on going

Change-Id: I0b9e4b17629cc65d03621fc3e6447799cabfc258

차이점 보기:

DTI_PID/DTI_PID/BMSettingDialog.py
176 176
        self.ui.tableViewAttributeList.setColumnWidth(1, 50)
177 177
        
178 178
        self.ui.tableViewSymbolList.clicked.connect(self.on_symbol_changed)
179
        self.ui.pushButtonAdd.clicked.connect(self.on_add_symbol)
180
        self.ui.pushButtonDelete.clicked.connect(self.on_delete_symbol)
179 181
        self.ui.buttonBox.accepted.connect(self.accept)
180 182
        self.ui.buttonBox.rejected.connect(self.reject)
181 183

  
......
248 250
    '''
249 251
    # up to here
250 252

  
253
    def on_add_symbol(self):
254
        from BMSymbolAddDialog import QBMSymbolAddDialog
255

  
256
        dialog = QBMSymbolAddDialog(self, list(self.symbol_mapping.keys()))
257
        isAccepted, name = dialog.showDialog()
258
        if isAccepted:
259
            items = [QStandardItem(name)]
260
            items[0].setEditable(False)
261
            self.symbolListModel.appendRow(items)
262
            self.symbol_mapping[name] = []
263

  
264
    def on_delete_symbol(self):
265
        index = self.ui.tableViewSymbolList.currentIndex()
266
        selected_symbol = self.symbolListModel.itemFromIndex(index)
267
        if selected_symbol.text() not in self.symbolListModel.SymbolList:
268
            self.symbol_mapping.pop(selected_symbol.text())
269
            self.symbolListModel.removeRow(index.row())
270

  
251 271
    def load_BM_setting(self):
252 272
        app_doc_data = AppDocData.instance()
253 273

  

내보내기 Unified diff

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