개정판 dec3a5e2
add symbol flip option
Change-Id: I56a2d1fe4d2cba98cf4e70f63888cfe83357b9de
DTI_PID/DTI_PID/ConfigurationDialog.py | ||
---|---|---|
572 | 572 |
else: |
573 | 573 |
self.ui.radioButtonGridNo.setChecked(True) |
574 | 574 |
self.ui.radioButtonGridYes.setChecked(False) |
575 |
configs = docData.getConfigs('Data', 'Flip') |
|
576 |
if configs: |
|
577 |
size = int(configs[0].value) |
|
578 |
self.ui.radioButtonFlipYes.setChecked(True if size == 1 else False) |
|
579 |
self.ui.radioButtonFlipNo.setChecked(True if size == -1 else False) |
|
580 |
else: |
|
581 |
self.ui.radioButtonFlipYes.setChecked(True) |
|
582 |
self.ui.radioButtonFlipNo.setChecked(False) |
|
583 |
configs = docData.getConfigs('Flip', 'Symbol') |
|
584 |
self.ui.lineEditFlip.setText(configs[0].value if configs else '') |
|
575 | 585 |
configs = docData.getConfigs('Line List', 'Use Stream No') |
576 | 586 |
if configs: |
577 | 587 |
size = int(configs[0].value) |
... | ... | |
1466 | 1476 |
configs.append( |
1467 | 1477 |
Config('Data', 'Grid', '1' if self.ui.radioButtonGridYes.isChecked() else '-1')) |
1468 | 1478 |
configs.append( |
1479 |
Config('Data', 'Flip', '1' if self.ui.radioButtonFlipYes.isChecked() else '-1')) |
|
1480 |
configs.append(Config('Flip', 'Symbol', self.ui.lineEditFlip.text())) |
|
1481 |
configs.append( |
|
1469 | 1482 |
Config('Line List', 'Use Stream No', '1' if self.ui.radioButtonLineListYes.isChecked() else '-1')) |
1470 | 1483 |
configs.append(Config('Engine', 'Address', self.ui.lineEditServerAddress.text())) |
1471 | 1484 |
configs.append(Config('Engine', 'Text Area', '1' if self.ui.radioButtonTextAreaLocal.isChecked() else '-1')) |
내보내기 Unified diff