23 ConfigurationPageBase.__init__(self) |
23 ConfigurationPageBase.__init__(self) |
24 self.setupUi(self) |
24 self.setupUi(self) |
25 self.setObjectName("TemplatesPage") |
25 self.setObjectName("TemplatesPage") |
26 |
26 |
27 # set initial values |
27 # set initial values |
28 self.templatesAutoOpenGroupsCheckBox.setChecked(\ |
28 self.templatesAutoOpenGroupsCheckBox.setChecked( |
29 Preferences.getTemplates("AutoOpenGroups")) |
29 Preferences.getTemplates("AutoOpenGroups")) |
30 self.templatesSeparatorCharEdit.setText(\ |
30 self.templatesSeparatorCharEdit.setText( |
31 Preferences.getTemplates("SeparatorChar")) |
31 Preferences.getTemplates("SeparatorChar")) |
32 if Preferences.getTemplates("SingleDialog"): |
32 if Preferences.getTemplates("SingleDialog"): |
33 self.templatesSingleDialogButton.setChecked(True) |
33 self.templatesSingleDialogButton.setChecked(True) |
34 else: |
34 else: |
35 self.templatesMultiDialogButton.setChecked(True) |
35 self.templatesMultiDialogButton.setChecked(True) |
36 self.templatesToolTipCheckBox.setChecked(\ |
36 self.templatesToolTipCheckBox.setChecked( |
37 Preferences.getTemplates("ShowTooltip")) |
37 Preferences.getTemplates("ShowTooltip")) |
38 |
38 |
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. |