QScintilla/QsciScintillaCompat.py

changeset 826
2e3e2055e715
parent 791
9ec2ac20e54e
child 937
336c8f1ee7bb
child 1442
ba75374fc164
equal deleted inserted replaced
825:9cdec3c5bc07 826:2e3e2055e715
901 else: 901 else:
902 QsciScintilla.setFolding(self, QsciScintilla.PlainFoldStyle, margin) 902 QsciScintilla.setFolding(self, QsciScintilla.PlainFoldStyle, margin)
903 903
904 if style == self.ArrowFoldStyle: 904 if style == self.ArrowFoldStyle:
905 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDER, 905 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDER,
906 QsciScintilla.SC_MARK_ARROW); 906 QsciScintilla.SC_MARK_ARROW)
907 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEROPEN, 907 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEROPEN,
908 QsciScintilla.SC_MARK_ARROWDOWN); 908 QsciScintilla.SC_MARK_ARROWDOWN)
909 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERSUB); 909 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERSUB)
910 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERTAIL); 910 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERTAIL)
911 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEREND); 911 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEREND)
912 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEROPENMID); 912 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEROPENMID)
913 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERMIDTAIL); 913 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERMIDTAIL)
914 elif style == self.ArrowTreeFoldStyle: 914 elif style == self.ArrowTreeFoldStyle:
915 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDER, 915 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDER,
916 QsciScintilla.SC_MARK_ARROW); 916 QsciScintilla.SC_MARK_ARROW)
917 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEROPEN, 917 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEROPEN,
918 QsciScintilla.SC_MARK_ARROWDOWN); 918 QsciScintilla.SC_MARK_ARROWDOWN)
919 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERSUB, 919 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERSUB,
920 QsciScintilla.SC_MARK_VLINE); 920 QsciScintilla.SC_MARK_VLINE)
921 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERTAIL, 921 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERTAIL,
922 QsciScintilla.SC_MARK_LCORNER); 922 QsciScintilla.SC_MARK_LCORNER)
923 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEREND, 923 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEREND,
924 QsciScintilla.SC_MARK_ARROW); 924 QsciScintilla.SC_MARK_ARROW)
925 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEROPENMID, 925 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEROPENMID,
926 QsciScintilla.SC_MARK_ARROWDOWN); 926 QsciScintilla.SC_MARK_ARROWDOWN)
927 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERMIDTAIL, 927 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERMIDTAIL,
928 QsciScintilla.SC_MARK_TCORNER); 928 QsciScintilla.SC_MARK_TCORNER)
929 929
930 def setFoldMarkersColors(self, foreColor, backColor): 930 def setFoldMarkersColors(self, foreColor, backColor):
931 """ 931 """
932 Public method to set the foreground and background colors of the 932 Public method to set the foreground and background colors of the
933 fold markers. 933 fold markers.

eric ide

mercurial