898 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEROPENMID, |
898 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDEROPENMID, |
899 QsciScintilla.SC_MARK_ARROWDOWN); |
899 QsciScintilla.SC_MARK_ARROWDOWN); |
900 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERMIDTAIL, |
900 self.__setFoldMarker(QsciScintilla.SC_MARKNUM_FOLDERMIDTAIL, |
901 QsciScintilla.SC_MARK_TCORNER); |
901 QsciScintilla.SC_MARK_TCORNER); |
902 |
902 |
|
903 def setFoldMarkersColors(self, foreColor, backColor): |
|
904 """ |
|
905 Public method to set the foreground and background colors of the |
|
906 fold markers. |
|
907 |
|
908 @param foreColor foreground color (QColor) |
|
909 @param backColor background color (QColor) |
|
910 """ |
|
911 self.SendScintilla(QsciScintilla.SCI_MARKERSETFORE, |
|
912 QsciScintilla.SC_MARKNUM_FOLDER, foreColor) |
|
913 self.SendScintilla(QsciScintilla.SCI_MARKERSETBACK, |
|
914 QsciScintilla.SC_MARKNUM_FOLDER, backColor) |
|
915 |
|
916 self.SendScintilla(QsciScintilla.SCI_MARKERSETFORE, |
|
917 QsciScintilla.SC_MARKNUM_FOLDEROPEN, foreColor) |
|
918 self.SendScintilla(QsciScintilla.SCI_MARKERSETBACK, |
|
919 QsciScintilla.SC_MARKNUM_FOLDEROPEN, backColor) |
|
920 |
|
921 self.SendScintilla(QsciScintilla.SCI_MARKERSETFORE, |
|
922 QsciScintilla.SC_MARKNUM_FOLDEROPENMID, foreColor) |
|
923 self.SendScintilla(QsciScintilla.SCI_MARKERSETBACK, |
|
924 QsciScintilla.SC_MARKNUM_FOLDEROPENMID, backColor) |
|
925 |
|
926 self.SendScintilla(QsciScintilla.SCI_MARKERSETFORE, |
|
927 QsciScintilla.SC_MARKNUM_FOLDERSUB, foreColor) |
|
928 self.SendScintilla(QsciScintilla.SCI_MARKERSETBACK, |
|
929 QsciScintilla.SC_MARKNUM_FOLDERSUB, backColor) |
|
930 |
|
931 self.SendScintilla(QsciScintilla.SCI_MARKERSETFORE, |
|
932 QsciScintilla.SC_MARKNUM_FOLDERTAIL, foreColor) |
|
933 self.SendScintilla(QsciScintilla.SCI_MARKERSETBACK, |
|
934 QsciScintilla.SC_MARKNUM_FOLDERTAIL, backColor) |
|
935 |
|
936 self.SendScintilla(QsciScintilla.SCI_MARKERSETFORE, |
|
937 QsciScintilla.SC_MARKNUM_FOLDERMIDTAIL, foreColor) |
|
938 self.SendScintilla(QsciScintilla.SCI_MARKERSETBACK, |
|
939 QsciScintilla.SC_MARKNUM_FOLDERMIDTAIL, backColor) |
|
940 |
|
941 self.SendScintilla(QsciScintilla.SCI_MARKERSETFORE, |
|
942 QsciScintilla.SC_MARKNUM_FOLDEREND, foreColor) |
|
943 self.SendScintilla(QsciScintilla.SCI_MARKERSETBACK, |
|
944 QsciScintilla.SC_MARKNUM_FOLDEREND, backColor) |
|
945 |
|
946 |
903 ##################################################################################### |
947 ##################################################################################### |
904 # interface methods to the standard keyboard command set |
948 # interface methods to the standard keyboard command set |
905 ##################################################################################### |
949 ##################################################################################### |
906 |
950 |
907 def clearKeys(self): |
951 def clearKeys(self): |