개정판 725a0a82
issue #1171: add xml load option and update mssql script
Change-Id: I53b0f02f0d882da87939e561ea27e679caca936b
DTI_PID/DTI_PID/ConfigurationDialog.py | ||
---|---|---|
288 | 288 |
self.ui.tableWidgetColorProperty.horizontalHeaderItem(0).setSizeHint(QSize(30, 30)) |
289 | 289 |
self.setPropertyToggle(self.ui.radioButtonProperty.isChecked()) |
290 | 290 |
|
291 |
configs = docData.getConfigs('Data Load', 'Xml First') |
|
292 |
if configs: |
|
293 |
size = int(configs[0].value) |
|
294 |
self.ui.radioButtonLoadXmlYes.setChecked(True if size == 1 else False) |
|
295 |
self.ui.radioButtonLoadXmlNo.setChecked(True if size == -1 else False) |
|
296 |
else: |
|
297 |
self.ui.radioButtonLoadXmlYes.setChecked(True) |
|
298 |
self.ui.radioButtonLoadXmlNo.setChecked(False) |
|
299 |
|
|
291 | 300 |
# connect signals and slots |
292 | 301 |
self.ui.pushButtonAddProperty.clicked.connect(self.addLineProperty) |
293 | 302 |
self.ui.pushButtonDeleteProperty.clicked.connect(self.removeSelectedItem) |
... | ... | |
724 | 733 |
font = self.ui.fontComboBox.currentFont() |
725 | 734 |
configs.append(Config('Text Style', 'Font Name', font.family())) |
726 | 735 |
configs.append(Config('Text Style', 'Font Size', str(self.ui.spinBoxFontSize.value()) if self.ui.radioButtonFixedSize.isChecked() else '-1')) |
736 |
|
|
737 |
configs.append(Config('Data Load', 'Xml First', '1' if self.ui.radioButtonLoadXmlYes.isChecked() else '-1')) |
|
727 | 738 |
|
728 | 739 |
docData.saveConfigs(configs) |
729 | 740 |
docData.lineTypeConfigs = None # clear line type configurations |
내보내기 Unified diff