109 self.defaultFonts[i] = lex.defaultFont(i) |
109 self.defaultFonts[i] = lex.defaultFont(i) |
110 |
110 |
111 self.ind2style[index] = i |
111 self.ind2style[index] = i |
112 index += 1 |
112 index += 1 |
113 |
113 |
114 self.connect(self, SIGNAL("colorChanged (const QColor&, int)"), |
114 self.colorChanged.connect(self.setColor) |
115 self.setColor) |
115 self.eolFillChanged.connect(self.setEolFill) |
116 self.connect(self, SIGNAL("eolFillChanged (bool, int)"), |
116 self.fontChanged.connect(self.setFont) |
117 self.setEolFill) |
117 self.paperChanged.connect(self.setPaper) |
118 self.connect(self, SIGNAL("fontChanged (const QFont&, int)"), |
|
119 self.setFont) |
|
120 self.connect(self, SIGNAL("paperChanged (const QColor&, int )"), |
|
121 self.setPaper) |
|
122 |
118 |
123 # read the last stored values from preferences file |
119 # read the last stored values from preferences file |
124 self.readSettings(Preferences.Prefs.settings, "Scintilla") |
120 self.readSettings(Preferences.Prefs.settings, "Scintilla") |
125 |
121 |
126 def defaultColor(self, style): |
122 def defaultColor(self, style): |