39 def save(self): |
39 def save(self): |
40 """ |
40 """ |
41 Public slot to save the Templates configuration. |
41 Public slot to save the Templates configuration. |
42 """ |
42 """ |
43 Preferences.setTemplates("AutoOpenGroups", |
43 Preferences.setTemplates("AutoOpenGroups", |
44 int(self.templatesAutoOpenGroupsCheckBox.isChecked())) |
44 self.templatesAutoOpenGroupsCheckBox.isChecked()) |
45 sepChar = self.templatesSeparatorCharEdit.text() |
45 sepChar = self.templatesSeparatorCharEdit.text() |
46 if sepChar: |
46 if sepChar: |
47 Preferences.setTemplates("SeparatorChar", sepChar) |
47 Preferences.setTemplates("SeparatorChar", sepChar) |
48 Preferences.setTemplates("SingleDialog", |
48 Preferences.setTemplates("SingleDialog", |
49 int(self.templatesSingleDialogButton.isChecked())) |
49 self.templatesSingleDialogButton.isChecked()) |
50 Preferences.setTemplates("ShowTooltip", |
50 Preferences.setTemplates("ShowTooltip", |
51 int(self.templatesToolTipCheckBox.isChecked())) |
51 self.templatesToolTipCheckBox.isChecked()) |
52 |
52 |
53 def create(dlg): |
53 def create(dlg): |
54 """ |
54 """ |
55 Module function to create the configuration page. |
55 Module function to create the configuration page. |
56 |
56 |