개정판 727341a8
issue #1366: prepare symbol recognition
Change-Id: Ic7e75decb028df3125a414c6925c2f74a1662b14
DTI_PID/DTI_PID/ConfigurationDialog.py | ||
---|---|---|
434 | 434 |
else: |
435 | 435 |
self.ui.radioButtonTextAreaLocal.setChecked(True) |
436 | 436 |
self.ui.radioButtonTextAreaServer.setChecked(False) |
437 |
configs = docData.getConfigs('Engine', 'Symbol') |
|
438 |
if configs: |
|
439 |
size = int(configs[0].value) |
|
440 |
self.ui.radioButtonSymbolLocal.setChecked(True if size == 1 else False) |
|
441 |
self.ui.radioButtonSymbolServer.setChecked(True if size == -1 else False) |
|
442 |
else: |
|
443 |
self.ui.radioButtonSymbolLocal.setChecked(True) |
|
444 |
self.ui.radioButtonSymbolServer.setChecked(False) |
|
437 | 445 |
configs = docData.getConfigs('Engine', 'OCR') |
438 | 446 |
if configs: |
439 | 447 |
size = int(configs[0].value) |
... | ... | |
1083 | 1091 |
Config('Data Save', 'Unknown Xml Only', '1' if self.ui.radioButtonSaveUnknownYes.isChecked() else '-1')) |
1084 | 1092 |
configs.append(Config('Engine', 'Address', self.ui.lineEditServerAddress.text())) |
1085 | 1093 |
configs.append(Config('Engine', 'Text Area', '1' if self.ui.radioButtonTextAreaLocal.isChecked() else '-1')) |
1094 |
configs.append(Config('Engine', 'Symbol', '1' if self.ui.radioButtonSymbolLocal.isChecked() else '-1')) |
|
1086 | 1095 |
configs.append(Config('Engine', 'OCR', '1' if self.ui.radioButtonOCRLocal.isChecked() else '-1')) |
1087 | 1096 |
|
1088 | 1097 |
docData.saveConfigs(configs) |
내보내기 Unified diff