300 self.setUnmatchedBraceForegroundColor( |
300 self.setUnmatchedBraceForegroundColor( |
301 Preferences.getEditorColour("NonmatchingBrace")) |
301 Preferences.getEditorColour("NonmatchingBrace")) |
302 self.setUnmatchedBraceBackgroundColor( |
302 self.setUnmatchedBraceBackgroundColor( |
303 Preferences.getEditorColour("NonmatchingBraceBack")) |
303 Preferences.getEditorColour("NonmatchingBraceBack")) |
304 if Preferences.getEditor("CustomSelectionColours"): |
304 if Preferences.getEditor("CustomSelectionColours"): |
305 self.setSelectionBackgroundColor(\ |
305 self.setSelectionBackgroundColor( |
306 Preferences.getEditorColour("SelectionBackground")) |
306 Preferences.getEditorColour("SelectionBackground")) |
307 else: |
307 else: |
308 self.setSelectionBackgroundColor(\ |
308 self.setSelectionBackgroundColor( |
309 QApplication.palette().color(QPalette.Highlight)) |
309 QApplication.palette().color(QPalette.Highlight)) |
310 if Preferences.getEditor("ColourizeSelText"): |
310 if Preferences.getEditor("ColourizeSelText"): |
311 self.resetSelectionForegroundColor() |
311 self.resetSelectionForegroundColor() |
312 elif Preferences.getEditor("CustomSelectionColours"): |
312 elif Preferences.getEditor("CustomSelectionColours"): |
313 self.setSelectionForegroundColor(\ |
313 self.setSelectionForegroundColor( |
314 Preferences.getEditorColour("SelectionForeground")) |
314 Preferences.getEditorColour("SelectionForeground")) |
315 else: |
315 else: |
316 self.setSelectionForegroundColor(\ |
316 self.setSelectionForegroundColor( |
317 QApplication.palette().color(QPalette.HighlightedText)) |
317 QApplication.palette().color(QPalette.HighlightedText)) |
318 self.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol")) |
318 self.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol")) |
319 self.setCaretForegroundColor( |
319 self.setCaretForegroundColor( |
320 Preferences.getEditorColour("CaretForeground")) |
320 Preferences.getEditorColour("CaretForeground")) |
321 self.setCaretLineBackgroundColor( |
321 self.setCaretLineBackgroundColor( |
386 |
386 |
387 def __selectHistory(self): |
387 def __selectHistory(self): |
388 """ |
388 """ |
389 Private slot to select a history entry to execute. |
389 Private slot to select a history entry to execute. |
390 """ |
390 """ |
391 cmd, ok = QInputDialog.getItem(\ |
391 cmd, ok = QInputDialog.getItem( |
392 self, |
392 self, |
393 self.trUtf8("Select History"), |
393 self.trUtf8("Select History"), |
394 self.trUtf8("Select the history entry to execute (most recent shown last)."), |
394 self.trUtf8("Select the history entry to execute (most recent shown last)."), |
395 self.history, |
395 self.history, |
396 0, False) |
396 0, False) |