QScintilla/Shell.py

changeset 2077
68a34718a0ce
parent 2010
07ae45dc6986
child 2084
d3f083dd0222
equal deleted inserted replaced
2076:0d6286344ac1 2077:68a34718a0ce
13 from PyQt4.QtCore import pyqtSignal, QFileInfo, Qt, QEvent 13 from PyQt4.QtCore import pyqtSignal, QFileInfo, Qt, QEvent
14 from PyQt4.QtGui import QDialog, QInputDialog, QApplication, QClipboard, QMenu, \ 14 from PyQt4.QtGui import QDialog, QInputDialog, QApplication, QClipboard, QMenu, \
15 QPalette, QFont, QWidget, QHBoxLayout, QVBoxLayout, QShortcut 15 QPalette, QFont, QWidget, QHBoxLayout, QVBoxLayout, QShortcut
16 from PyQt4.Qsci import QsciScintilla 16 from PyQt4.Qsci import QsciScintilla
17 17
18 from E5Gui.E5Application import e5App 18 from E5Gui.E5Application import e5App, E5Application
19 from E5Gui import E5MessageBox 19 from E5Gui import E5MessageBox
20 20
21 from . import Lexers 21 from . import Lexers
22 from .QsciScintillaCompat import QsciScintillaCompat 22 from .QsciScintillaCompat import QsciScintillaCompat
23 23
375 if Preferences.getEditor("CustomSelectionColours"): 375 if Preferences.getEditor("CustomSelectionColours"):
376 self.setSelectionBackgroundColor( 376 self.setSelectionBackgroundColor(
377 Preferences.getEditorColour("SelectionBackground")) 377 Preferences.getEditorColour("SelectionBackground"))
378 else: 378 else:
379 self.setSelectionBackgroundColor( 379 self.setSelectionBackgroundColor(
380 QApplication.palette().color(QPalette.Highlight)) 380 E5Application.palette().color(QPalette.Highlight))
381 if Preferences.getEditor("ColourizeSelText"): 381 if Preferences.getEditor("ColourizeSelText"):
382 self.resetSelectionForegroundColor() 382 self.resetSelectionForegroundColor()
383 elif Preferences.getEditor("CustomSelectionColours"): 383 elif Preferences.getEditor("CustomSelectionColours"):
384 self.setSelectionForegroundColor( 384 self.setSelectionForegroundColor(
385 Preferences.getEditorColour("SelectionForeground")) 385 Preferences.getEditorColour("SelectionForeground"))
386 else: 386 else:
387 self.setSelectionForegroundColor( 387 self.setSelectionForegroundColor(
388 QApplication.palette().color(QPalette.HighlightedText)) 388 E5Application.palette().color(QPalette.HighlightedText))
389 self.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol")) 389 self.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol"))
390 self.setCaretForegroundColor( 390 self.setCaretForegroundColor(
391 Preferences.getEditorColour("CaretForeground")) 391 Preferences.getEditorColour("CaretForeground"))
392 self.setCaretLineBackgroundColor( 392 self.setCaretLineBackgroundColor(
393 Preferences.getEditorColour("CaretLineBackground")) 393 Preferences.getEditorColour("CaretLineBackground"))

eric ide

mercurial