34 self.templatesSingleDialogButton.setChecked(True) |
36 self.templatesSingleDialogButton.setChecked(True) |
35 else: |
37 else: |
36 self.templatesMultiDialogButton.setChecked(True) |
38 self.templatesMultiDialogButton.setChecked(True) |
37 self.templatesToolTipCheckBox.setChecked( |
39 self.templatesToolTipCheckBox.setChecked( |
38 Preferences.getTemplates("ShowTooltip")) |
40 Preferences.getTemplates("ShowTooltip")) |
|
41 self.editorFont = Preferences.getTemplates("EditorFont") |
|
42 self.editorFontSample.setFont(self.editorFont) |
39 |
43 |
40 def save(self): |
44 def save(self): |
41 """ |
45 """ |
42 Public slot to save the Templates configuration. |
46 Public slot to save the Templates configuration. |
43 """ |
47 """ |
51 "SingleDialog", |
55 "SingleDialog", |
52 self.templatesSingleDialogButton.isChecked()) |
56 self.templatesSingleDialogButton.isChecked()) |
53 Preferences.setTemplates( |
57 Preferences.setTemplates( |
54 "ShowTooltip", |
58 "ShowTooltip", |
55 self.templatesToolTipCheckBox.isChecked()) |
59 self.templatesToolTipCheckBox.isChecked()) |
|
60 Preferences.setTemplates("EditorFont", self.editorFont) |
|
61 |
|
62 @pyqtSlot() |
|
63 def on_editorFontButton_clicked(self): |
|
64 """ |
|
65 Private method used to select the font to be used by the code editor. |
|
66 """ |
|
67 self.editorFont = self.selectFont( |
|
68 self.editorFontSample, self.editorFont) |
56 |
69 |
57 |
70 |
58 def create(dlg): |
71 def create(dlg): |
59 """ |
72 """ |
60 Module function to create the configuration page. |
73 Module function to create the configuration page. |