From 9a3a23e04c21820df3c1db6332e5c6c90f45a9b9 Mon Sep 17 00:00:00 2001 From: Scott Kitterman Date: Mon, 22 Sep 2014 03:09:22 +0100 Subject: [PATCH] Import qscintilla2_2.8.4+dfsg.orig.tar.gz [dgit import orig qscintilla2_2.8.4+dfsg.orig.tar.gz] --- GPL_EXCEPTION.TXT | 90 + GPL_EXCEPTION_ADDENDUM.TXT | 248 + LICENSE.GPL2 | 351 + LICENSE.GPL3 | 685 ++ NEWS | 327 + OPENSOURCE-NOTICE.TXT | 46 + Python/configure-old.py | 422 + Python/configure.py | 1682 +++ Python/sip/qsciabstractapis.sip | 59 + Python/sip/qsciapis.sip | 75 + Python/sip/qscicommand.sip | 147 + Python/sip/qscicommandset.sip | 54 + Python/sip/qscidocument.sip | 37 + Python/sip/qscilexer.sip | 91 + Python/sip/qscilexeravs.sip | 82 + Python/sip/qscilexerbash.sip | 83 + Python/sip/qscilexerbatch.sip | 65 + Python/sip/qscilexercmake.sip | 80 + Python/sip/qscilexercoffeescript.sip | 95 + Python/sip/qscilexercpp.sip | 131 + Python/sip/qscilexercsharp.sip | 52 + Python/sip/qscilexercss.sip | 97 + Python/sip/qscilexercustom.sip | 53 + Python/sip/qscilexerd.sip | 92 + Python/sip/qscilexerdiff.sip | 61 + Python/sip/qscilexerfortran.sip | 46 + Python/sip/qscilexerfortran77.sip | 80 + Python/sip/qscilexerhtml.sip | 189 + Python/sip/qscilexeridl.sip | 49 + Python/sip/qscilexerjava.sip | 47 + Python/sip/qscilexerjavascript.sip | 53 + Python/sip/qscilexerlua.sip | 86 + Python/sip/qscilexermakefile.sip | 63 + Python/sip/qscilexermatlab.sip | 63 + Python/sip/qscilexeroctave.sip | 48 + Python/sip/qscilexerpascal.sip | 86 + Python/sip/qscilexerperl.sip | 117 + Python/sip/qscilexerpo.sip | 80 + Python/sip/qscilexerpostscript.sip | 87 + Python/sip/qscilexerpov.sip | 88 + Python/sip/qscilexerproperties.sip | 75 + Python/sip/qscilexerpython.sip | 106 + Python/sip/qscilexerruby.sip | 97 + Python/sip/qscilexerspice.sip | 63 + Python/sip/qscilexersql.sip | 101 + Python/sip/qscilexertcl.sip | 86 + Python/sip/qscilexertex.sip | 74 + Python/sip/qscilexerverilog.sip | 90 + Python/sip/qscilexervhdl.sip | 89 + Python/sip/qscilexerxml.sip | 60 + Python/sip/qscilexeryaml.sip | 76 + Python/sip/qscimacro.sip | 56 + Python/sip/qscimod3.sip | 31 + Python/sip/qscimod4.sip | 31 + Python/sip/qscimod5.sip | 36 + Python/sip/qscimodcommon.sip | 106 + Python/sip/qsciprinter.sip | 50 + Python/sip/qsciscintilla.sip | 564 + Python/sip/qsciscintillabase3.sip | 1363 +++ Python/sip/qsciscintillabase4.sip | 1364 +++ Python/sip/qscistyle.sip | 73 + Python/sip/qscistyledtext.sip | 38 + Qt3/InputMethod.cpp | 10 + Qt3/ListBoxQt.cpp | 333 + Qt3/ListBoxQt.h | 81 + Qt3/MacPasteboardMime.cpp | 116 + Qt3/PlatQt.cpp | 1093 ++ Qt3/Qsci/qsciabstractapis.h | 106 + Qt3/Qsci/qsciapis.h | 228 + Qt3/Qsci/qscicommand.h | 418 + Qt3/Qsci/qscicommandset.h | 102 + Qt3/Qsci/qscidocument.h | 74 + Qt3/Qsci/qsciglobal.h | 67 + Qt3/Qsci/qscilexer.h | 363 + Qt3/Qsci/qscilexeravs.h | 187 + Qt3/Qsci/qscilexerbash.h | 191 + Qt3/Qsci/qscilexerbatch.h | 128 + Qt3/Qsci/qscilexercmake.h | 173 + Qt3/Qsci/qscilexercoffeescript.h | 274 + Qt3/Qsci/qscilexercpp.h | 362 + Qt3/Qsci/qscilexercsharp.h | 90 + Qt3/Qsci/qscilexercss.h | 265 + Qt3/Qsci/qscilexercustom.h | 116 + Qt3/Qsci/qscilexerd.h | 255 + Qt3/Qsci/qscilexerdiff.h | 108 + Qt3/Qsci/qscilexerfortran.h | 72 + Qt3/Qsci/qscilexerfortran77.h | 181 + Qt3/Qsci/qscilexerhtml.h | 545 + Qt3/Qsci/qscilexeridl.h | 77 + Qt3/Qsci/qscilexerjava.h | 68 + Qt3/Qsci/qscilexerjavascript.h | 94 + Qt3/Qsci/qscilexerlua.h | 207 + Qt3/Qsci/qscilexermakefile.h | 118 + Qt3/Qsci/qscilexermatlab.h | 117 + Qt3/Qsci/qscilexeroctave.h | 73 + Qt3/Qsci/qscilexerpascal.h | 240 + Qt3/Qsci/qscilexerperl.h | 325 + Qt3/Qsci/qscilexerpo.h | 176 + Qt3/Qsci/qscilexerpostscript.h | 217 + Qt3/Qsci/qscilexerpov.h | 216 + Qt3/Qsci/qscilexerproperties.h | 163 + Qt3/Qsci/qscilexerpython.h | 334 + Qt3/Qsci/qscilexerruby.h | 253 + Qt3/Qsci/qscilexerspice.h | 119 + Qt3/Qsci/qscilexersql.h | 296 + Qt3/Qsci/qscilexertcl.h | 202 + Qt3/Qsci/qscilexertex.h | 176 + Qt3/Qsci/qscilexerverilog.h | 236 + Qt3/Qsci/qscilexervhdl.h | 231 + Qt3/Qsci/qscilexerxml.h | 119 + Qt3/Qsci/qscilexeryaml.h | 160 + Qt3/Qsci/qscimacro.h | 112 + Qt3/Qsci/qsciprinter.h | 125 + Qt3/Qsci/qsciscintilla.h | 2121 ++++ Qt3/Qsci/qsciscintillabase.h | 3432 ++++++ Qt3/Qsci/qscistyle.h | 202 + Qt3/Qsci/qscistyledtext.h | 77 + Qt3/SciClasses.cpp | 151 + Qt3/SciClasses.h | 139 + Qt3/SciNamespace.h | 40 + Qt3/ScintillaQt.cpp | 627 + Qt3/ScintillaQt.h | 134 + Qt3/qsciabstractapis.cpp | 56 + Qt3/qsciapis.cpp | 1021 ++ Qt3/qscicommand.cpp | 148 + Qt3/qscicommandset.cpp | 996 ++ Qt3/qscidocument.cpp | 156 + Qt3/qscilexer.cpp | 745 ++ Qt3/qscilexeravs.cpp | 435 + Qt3/qscilexerbash.cpp | 371 + Qt3/qscilexerbatch.cpp | 217 + Qt3/qscilexercmake.cpp | 318 + Qt3/qscilexercoffeescript.cpp | 485 + Qt3/qscilexercpp.cpp | 782 ++ Qt3/qscilexercsharp.cpp | 123 + Qt3/qscilexercss.cpp | 482 + Qt3/qscilexercustom.cpp | 110 + Qt3/qscilexerd.cpp | 479 + Qt3/qscilexerdiff.cpp | 132 + Qt3/qscilexerfortran.cpp | 114 + Qt3/qscilexerfortran77.cpp | 310 + Qt3/qscilexerhtml.cpp | 1242 ++ Qt3/qscilexeridl.cpp | 105 + Qt3/qscilexerjava.cpp | 62 + Qt3/qscilexerjavascript.cpp | 125 + Qt3/qscilexerlua.cpp | 382 + Qt3/qscilexermakefile.cpp | 163 + Qt3/qscilexermatlab.cpp | 166 + Qt3/qscilexeroctave.cpp | 73 + Qt3/qscilexerpascal.cpp | 469 + Qt3/qscilexerperl.cpp | 703 ++ Qt3/qscilexerpo.cpp | 245 + Qt3/qscilexerpostscript.cpp | 486 + Qt3/qscilexerpov.cpp | 493 + Qt3/qscilexerproperties.cpp | 235 + Qt3/qscilexerpython.cpp | 566 + Qt3/qscilexerruby.cpp | 467 + Qt3/qscilexerspice.cpp | 199 + Qt3/qscilexersql.cpp | 587 + Qt3/qscilexertcl.cpp | 452 + Qt3/qscilexertex.cpp | 345 + Qt3/qscilexerverilog.cpp | 475 + Qt3/qscilexervhdl.cpp | 464 + Qt3/qscilexerxml.cpp | 266 + Qt3/qscilexeryaml.cpp | 283 + Qt3/qscimacro.cpp | 314 + Qt3/qscintilla.pro | 382 + Qt3/qscintilla_cs.qm | Bin 0 -> 43834 bytes Qt3/qscintilla_cs.ts | 3612 ++++++ Qt3/qscintilla_de.qm | Bin 0 -> 70647 bytes Qt3/qscintilla_de.ts | 3612 ++++++ Qt3/qscintilla_es.qm | Bin 0 -> 73517 bytes Qt3/qscintilla_es.ts | 3612 ++++++ Qt3/qscintilla_fr.qm | Bin 0 -> 48639 bytes Qt3/qscintilla_fr.ts | 3612 ++++++ Qt3/qscintilla_pt_br.qm | Bin 0 -> 48688 bytes Qt3/qscintilla_pt_br.ts | 3612 ++++++ Qt3/qsciprinter.cpp | 195 + Qt3/qsciscintilla.cpp | 4171 +++++++ Qt3/qsciscintillabase.cpp | 836 ++ Qt3/qscistyle.cpp | 185 + Qt3/qscistyledtext.cpp | 59 + Qt4Qt5/InputMethod.cpp | 184 + Qt4Qt5/ListBoxQt.cpp | 329 + Qt4Qt5/ListBoxQt.h | 81 + Qt4Qt5/MacPasteboardMime.cpp | 116 + Qt4Qt5/PlatQt.cpp | 1104 ++ Qt4Qt5/Qsci/qsciabstractapis.h | 105 + Qt4Qt5/Qsci/qsciapis.h | 228 + Qt4Qt5/Qsci/qscicommand.h | 418 + Qt4Qt5/Qsci/qscicommandset.h | 102 + Qt4Qt5/Qsci/qscidocument.h | 74 + Qt4Qt5/Qsci/qsciglobal.h | 67 + Qt4Qt5/Qsci/qscilexer.h | 363 + Qt4Qt5/Qsci/qscilexeravs.h | 187 + Qt4Qt5/Qsci/qscilexerbash.h | 191 + Qt4Qt5/Qsci/qscilexerbatch.h | 128 + Qt4Qt5/Qsci/qscilexercmake.h | 173 + Qt4Qt5/Qsci/qscilexercoffeescript.h | 274 + Qt4Qt5/Qsci/qscilexercpp.h | 360 + Qt4Qt5/Qsci/qscilexercsharp.h | 90 + Qt4Qt5/Qsci/qscilexercss.h | 265 + Qt4Qt5/Qsci/qscilexercustom.h | 116 + Qt4Qt5/Qsci/qscilexerd.h | 255 + Qt4Qt5/Qsci/qscilexerdiff.h | 108 + Qt4Qt5/Qsci/qscilexerfortran.h | 72 + Qt4Qt5/Qsci/qscilexerfortran77.h | 181 + Qt4Qt5/Qsci/qscilexerhtml.h | 545 + Qt4Qt5/Qsci/qscilexeridl.h | 77 + Qt4Qt5/Qsci/qscilexerjava.h | 68 + Qt4Qt5/Qsci/qscilexerjavascript.h | 94 + Qt4Qt5/Qsci/qscilexerlua.h | 207 + Qt4Qt5/Qsci/qscilexermakefile.h | 118 + Qt4Qt5/Qsci/qscilexermatlab.h | 117 + Qt4Qt5/Qsci/qscilexeroctave.h | 73 + Qt4Qt5/Qsci/qscilexerpascal.h | 240 + Qt4Qt5/Qsci/qscilexerperl.h | 325 + Qt4Qt5/Qsci/qscilexerpo.h | 176 + Qt4Qt5/Qsci/qscilexerpostscript.h | 217 + Qt4Qt5/Qsci/qscilexerpov.h | 216 + Qt4Qt5/Qsci/qscilexerproperties.h | 163 + Qt4Qt5/Qsci/qscilexerpython.h | 334 + Qt4Qt5/Qsci/qscilexerruby.h | 253 + Qt4Qt5/Qsci/qscilexerspice.h | 119 + Qt4Qt5/Qsci/qscilexersql.h | 296 + Qt4Qt5/Qsci/qscilexertcl.h | 202 + Qt4Qt5/Qsci/qscilexertex.h | 176 + Qt4Qt5/Qsci/qscilexerverilog.h | 236 + Qt4Qt5/Qsci/qscilexervhdl.h | 231 + Qt4Qt5/Qsci/qscilexerxml.h | 119 + Qt4Qt5/Qsci/qscilexeryaml.h | 160 + Qt4Qt5/Qsci/qscimacro.h | 112 + Qt4Qt5/Qsci/qsciprinter.h | 125 + Qt4Qt5/Qsci/qsciscintilla.h | 2136 ++++ Qt4Qt5/Qsci/qsciscintillabase.h | 3452 ++++++ Qt4Qt5/Qsci/qscistyle.h | 202 + Qt4Qt5/Qsci/qscistyledtext.h | 75 + Qt4Qt5/SciClasses.cpp | 217 + Qt4Qt5/SciClasses.h | 123 + Qt4Qt5/SciNamespace.h | 40 + Qt4Qt5/ScintillaQt.cpp | 611 + Qt4Qt5/ScintillaQt.h | 135 + Qt4Qt5/features/qscintilla2.prf | 25 + Qt4Qt5/qsciabstractapis.cpp | 56 + Qt4Qt5/qsciapis.cpp | 972 ++ Qt4Qt5/qscicommand.cpp | 148 + Qt4Qt5/qscicommandset.cpp | 996 ++ Qt4Qt5/qscidocument.cpp | 156 + Qt4Qt5/qscilexer.cpp | 745 ++ Qt4Qt5/qscilexeravs.cpp | 419 + Qt4Qt5/qscilexerbash.cpp | 355 + Qt4Qt5/qscilexerbatch.cpp | 217 + Qt4Qt5/qscilexercmake.cpp | 310 + Qt4Qt5/qscilexercoffeescript.cpp | 453 + Qt4Qt5/qscilexercpp.cpp | 717 ++ Qt4Qt5/qscilexercsharp.cpp | 123 + Qt4Qt5/qscilexercss.cpp | 442 + Qt4Qt5/qscilexercustom.cpp | 110 + Qt4Qt5/qscilexerd.cpp | 455 + Qt4Qt5/qscilexerdiff.cpp | 132 + Qt4Qt5/qscilexerfortran.cpp | 114 + Qt4Qt5/qscilexerfortran77.cpp | 302 + Qt4Qt5/qscilexerhtml.cpp | 1186 ++ Qt4Qt5/qscilexeridl.cpp | 105 + Qt4Qt5/qscilexerjava.cpp | 62 + Qt4Qt5/qscilexerjavascript.cpp | 125 + Qt4Qt5/qscilexerlua.cpp | 374 + Qt4Qt5/qscilexermakefile.cpp | 163 + Qt4Qt5/qscilexermatlab.cpp | 166 + Qt4Qt5/qscilexeroctave.cpp | 73 + Qt4Qt5/qscilexerpascal.cpp | 437 + Qt4Qt5/qscilexerperl.cpp | 663 + Qt4Qt5/qscilexerpo.cpp | 229 + Qt4Qt5/qscilexerpostscript.cpp | 453 + Qt4Qt5/qscilexerpov.cpp | 469 + Qt4Qt5/qscilexerproperties.cpp | 219 + Qt4Qt5/qscilexerpython.cpp | 494 + Qt4Qt5/qscilexerruby.cpp | 451 + Qt4Qt5/qscilexerspice.cpp | 199 + Qt4Qt5/qscilexersql.cpp | 523 + Qt4Qt5/qscilexertcl.cpp | 444 + Qt4Qt5/qscilexertex.cpp | 313 + Qt4Qt5/qscilexerverilog.cpp | 435 + Qt4Qt5/qscilexervhdl.cpp | 424 + Qt4Qt5/qscilexerxml.cpp | 258 + Qt4Qt5/qscilexeryaml.cpp | 275 + Qt4Qt5/qscimacro.cpp | 323 + Qt4Qt5/qscintilla.pro | 382 + Qt4Qt5/qscintilla_cs.qm | Bin 0 -> 43834 bytes Qt4Qt5/qscintilla_cs.ts | 3612 ++++++ Qt4Qt5/qscintilla_de.qm | Bin 0 -> 70647 bytes Qt4Qt5/qscintilla_de.ts | 3612 ++++++ Qt4Qt5/qscintilla_es.qm | Bin 0 -> 73517 bytes Qt4Qt5/qscintilla_es.ts | 3612 ++++++ Qt4Qt5/qscintilla_fr.qm | Bin 0 -> 48639 bytes Qt4Qt5/qscintilla_fr.ts | 3612 ++++++ Qt4Qt5/qscintilla_pt_br.qm | Bin 0 -> 48688 bytes Qt4Qt5/qscintilla_pt_br.ts | 3612 ++++++ Qt4Qt5/qsciprinter.cpp | 193 + Qt4Qt5/qsciscintilla.cpp | 4346 +++++++ Qt4Qt5/qsciscintillabase.cpp | 810 ++ Qt4Qt5/qscistyle.cpp | 185 + Qt4Qt5/qscistyledtext.cpp | 59 + README | 5 + designer-Qt3/designer.pro | 12 + designer-Qt3/qscintillaplugin.cpp | 154 + designer-Qt4Qt5/designer.pro | 26 + designer-Qt4Qt5/qscintillaplugin.cpp | 167 + designer-Qt4Qt5/qscintillaplugin.h | 38 + doc/README-Qt3.doc | 211 + doc/README-Qt4Qt5.doc | 215 + doc/Scintilla/Design.html | 249 + doc/Scintilla/Icons.html | 56 + doc/Scintilla/Lexer.txt | 226 + doc/Scintilla/SciBreak.jpg | Bin 0 -> 33592 bytes doc/Scintilla/SciCoding.html | 259 + doc/Scintilla/SciRest.jpg | Bin 0 -> 16680 bytes doc/Scintilla/SciTEIco.png | Bin 0 -> 10091 bytes doc/Scintilla/SciWord.jpg | Bin 0 -> 6164 bytes doc/Scintilla/ScintillaDoc.html | 7512 ++++++++++++ doc/Scintilla/ScintillaDownload.html | 70 + doc/Scintilla/ScintillaHistory.html | 9468 +++++++++++++++ doc/Scintilla/ScintillaRelated.html | 552 + doc/Scintilla/ScintillaToDo.html | 127 + doc/Scintilla/ScintillaUsage.html | 375 + doc/Scintilla/Steps.html | 142 + doc/Scintilla/annotations.png | Bin 0 -> 33549 bytes doc/Scintilla/index.html | 182 + doc/Scintilla/styledmargin.png | Bin 0 -> 17138 bytes doc/html-Qt3/annotated.html | 119 + doc/html-Qt3/bc_s.png | Bin 0 -> 677 bytes doc/html-Qt3/classQsciAPIs-members.html | 92 + doc/html-Qt3/classQsciAPIs.html | 400 + .../classQsciAbstractAPIs-members.html | 75 + doc/html-Qt3/classQsciAbstractAPIs.html | 214 + doc/html-Qt3/classQsciCommand-members.html | 176 + doc/html-Qt3/classQsciCommand.html | 625 + doc/html-Qt3/classQsciCommandSet-members.html | 76 + doc/html-Qt3/classQsciCommandSet.html | 152 + doc/html-Qt3/classQsciDocument-members.html | 73 + doc/html-Qt3/classQsciDocument.html | 87 + doc/html-Qt3/classQsciLexer-members.html | 122 + doc/html-Qt3/classQsciLexer.html | 1027 ++ doc/html-Qt3/classQsciLexerAVS-members.html | 143 + doc/html-Qt3/classQsciLexerAVS.html | 468 + doc/html-Qt3/classQsciLexerBash-members.html | 142 + doc/html-Qt3/classQsciLexerBash.html | 488 + doc/html-Qt3/classQsciLexerBatch-members.html | 132 + doc/html-Qt3/classQsciLexerBatch.html | 292 + doc/html-Qt3/classQsciLexerCMake-members.html | 141 + doc/html-Qt3/classQsciLexerCMake.html | 447 + doc/html-Qt3/classQsciLexerCPP-members.html | 190 + doc/html-Qt3/classQsciLexerCPP.html | 829 ++ doc/html-Qt3/classQsciLexerCSS-members.html | 158 + doc/html-Qt3/classQsciLexerCSS.html | 606 + .../classQsciLexerCSharp-members.html | 192 + doc/html-Qt3/classQsciLexerCSharp.html | 207 + .../classQsciLexerCoffeeScript-members.html | 155 + doc/html-Qt3/classQsciLexerCoffeeScript.html | 610 + .../classQsciLexerCustom-members.html | 128 + doc/html-Qt3/classQsciLexerCustom.html | 259 + doc/html-Qt3/classQsciLexerD-members.html | 153 + doc/html-Qt3/classQsciLexerD.html | 576 + doc/html-Qt3/classQsciLexerDiff-members.html | 132 + doc/html-Qt3/classQsciLexerDiff.html | 223 + .../classQsciLexerFortran-members.html | 143 + doc/html-Qt3/classQsciLexerFortran.html | 158 + .../classQsciLexerFortran77-members.html | 141 + doc/html-Qt3/classQsciLexerFortran77.html | 459 + doc/html-Qt3/classQsciLexerHTML-members.html | 248 + doc/html-Qt3/classQsciLexerHTML.html | 1115 ++ doc/html-Qt3/classQsciLexerIDL-members.html | 192 + doc/html-Qt3/classQsciLexerIDL.html | 161 + doc/html-Qt3/classQsciLexerJava-members.html | 192 + doc/html-Qt3/classQsciLexerJava.html | 138 + .../classQsciLexerJavaScript-members.html | 192 + doc/html-Qt3/classQsciLexerJavaScript.html | 207 + doc/html-Qt3/classQsciLexerLua-members.html | 146 + doc/html-Qt3/classQsciLexerLua.html | 477 + .../classQsciLexerMakefile-members.html | 131 + doc/html-Qt3/classQsciLexerMakefile.html | 265 + .../classQsciLexerMatlab-members.html | 133 + doc/html-Qt3/classQsciLexerMatlab.html | 274 + .../classQsciLexerOctave-members.html | 135 + doc/html-Qt3/classQsciLexerOctave.html | 158 + doc/html-Qt3/classQsciLexerPO-members.html | 143 + doc/html-Qt3/classQsciLexerPO.html | 443 + doc/html-Qt3/classQsciLexerPOV-members.html | 147 + doc/html-Qt3/classQsciLexerPOV.html | 540 + .../classQsciLexerPascal-members.html | 147 + doc/html-Qt3/classQsciLexerPascal.html | 578 + doc/html-Qt3/classQsciLexerPerl-members.html | 175 + doc/html-Qt3/classQsciLexerPerl.html | 728 ++ .../classQsciLexerPostScript-members.html | 148 + doc/html-Qt3/classQsciLexerPostScript.html | 571 + .../classQsciLexerProperties-members.html | 134 + doc/html-Qt3/classQsciLexerProperties.html | 432 + .../classQsciLexerPython-members.html | 164 + doc/html-Qt3/classQsciLexerPython.html | 818 ++ doc/html-Qt3/classQsciLexerRuby-members.html | 159 + doc/html-Qt3/classQsciLexerRuby.html | 561 + doc/html-Qt3/classQsciLexerSQL-members.html | 161 + doc/html-Qt3/classQsciLexerSQL.html | 750 ++ doc/html-Qt3/classQsciLexerSpice-members.html | 133 + doc/html-Qt3/classQsciLexerSpice.html | 270 + doc/html-Qt3/classQsciLexerTCL-members.html | 148 + doc/html-Qt3/classQsciLexerTCL.html | 477 + doc/html-Qt3/classQsciLexerTeX-members.html | 138 + doc/html-Qt3/classQsciLexerTeX.html | 478 + doc/html-Qt3/classQsciLexerVHDL-members.html | 149 + doc/html-Qt3/classQsciLexerVHDL.html | 607 + .../classQsciLexerVerilog-members.html | 148 + doc/html-Qt3/classQsciLexerVerilog.html | 602 + doc/html-Qt3/classQsciLexerXML-members.html | 252 + doc/html-Qt3/classQsciLexerXML.html | 332 + doc/html-Qt3/classQsciLexerYAML-members.html | 136 + doc/html-Qt3/classQsciLexerYAML.html | 428 + doc/html-Qt3/classQsciMacro-members.html | 78 + doc/html-Qt3/classQsciMacro.html | 180 + doc/html-Qt3/classQsciPrinter-members.html | 77 + doc/html-Qt3/classQsciPrinter.html | 240 + doc/html-Qt3/classQsciScintilla-members.html | 1522 +++ doc/html-Qt3/classQsciScintilla.html | 6255 ++++++++++ .../classQsciScintillaBase-members.html | 1154 ++ doc/html-Qt3/classQsciScintillaBase.html | 3400 ++++++ doc/html-Qt3/classQsciStyle-members.html | 96 + doc/html-Qt3/classQsciStyle.html | 549 + doc/html-Qt3/classQsciStyledText-members.html | 75 + doc/html-Qt3/classQsciStyledText.html | 145 + doc/html-Qt3/classes.html | 94 + doc/html-Qt3/closed.png | Bin 0 -> 126 bytes .../dir_47b4af07057faef408fa20558528d44e.html | 71 + .../dir_dc3d54424d2c2d2a2c76580a8d31cb7d.html | 121 + doc/html-Qt3/dirs.html | 67 + doc/html-Qt3/doxygen.css | 946 ++ doc/html-Qt3/doxygen.png | Bin 0 -> 3942 bytes doc/html-Qt3/functions.html | 364 + doc/html-Qt3/functions_0x62.html | 201 + doc/html-Qt3/functions_0x63.html | 389 + doc/html-Qt3/functions_0x64.html | 435 + doc/html-Qt3/functions_0x65.html | 209 + doc/html-Qt3/functions_0x66.html | 271 + doc/html-Qt3/functions_0x67.html | 122 + doc/html-Qt3/functions_0x68.html | 198 + doc/html-Qt3/functions_0x69.html | 226 + doc/html-Qt3/functions_0x6a.html | 145 + doc/html-Qt3/functions_0x6b.html | 214 + doc/html-Qt3/functions_0x6c.html | 427 + doc/html-Qt3/functions_0x6d.html | 241 + doc/html-Qt3/functions_0x6e.html | 150 + doc/html-Qt3/functions_0x6f.html | 141 + doc/html-Qt3/functions_0x70.html | 346 + doc/html-Qt3/functions_0x71.html | 145 + doc/html-Qt3/functions_0x72.html | 252 + doc/html-Qt3/functions_0x73.html | 1575 +++ doc/html-Qt3/functions_0x74.html | 202 + doc/html-Qt3/functions_0x75.html | 159 + doc/html-Qt3/functions_0x76.html | 186 + doc/html-Qt3/functions_0x77.html | 268 + doc/html-Qt3/functions_0x78.html | 115 + doc/html-Qt3/functions_0x7a.html | 124 + doc/html-Qt3/functions_0x7e.html | 238 + doc/html-Qt3/functions_enum.html | 131 + doc/html-Qt3/functions_eval.html | 275 + doc/html-Qt3/functions_eval_0x62.html | 185 + doc/html-Qt3/functions_eval_0x63.html | 289 + doc/html-Qt3/functions_eval_0x64.html | 242 + doc/html-Qt3/functions_eval_0x65.html | 153 + doc/html-Qt3/functions_eval_0x66.html | 135 + doc/html-Qt3/functions_eval_0x67.html | 115 + doc/html-Qt3/functions_eval_0x68.html | 173 + doc/html-Qt3/functions_eval_0x69.html | 150 + doc/html-Qt3/functions_eval_0x6a.html | 144 + doc/html-Qt3/functions_eval_0x6b.html | 172 + doc/html-Qt3/functions_eval_0x6c.html | 202 + doc/html-Qt3/functions_eval_0x6d.html | 156 + doc/html-Qt3/functions_eval_0x6e.html | 149 + doc/html-Qt3/functions_eval_0x6f.html | 137 + doc/html-Qt3/functions_eval_0x70.html | 302 + doc/html-Qt3/functions_eval_0x71.html | 138 + doc/html-Qt3/functions_eval_0x72.html | 140 + doc/html-Qt3/functions_eval_0x73.html | 935 ++ doc/html-Qt3/functions_eval_0x74.html | 176 + doc/html-Qt3/functions_eval_0x75.html | 145 + doc/html-Qt3/functions_eval_0x76.html | 164 + doc/html-Qt3/functions_eval_0x77.html | 180 + doc/html-Qt3/functions_eval_0x78.html | 114 + doc/html-Qt3/functions_eval_0x7a.html | 111 + doc/html-Qt3/functions_func.html | 182 + doc/html-Qt3/functions_func_0x62.html | 115 + doc/html-Qt3/functions_func_0x63.html | 195 + doc/html-Qt3/functions_func_0x64.html | 294 + doc/html-Qt3/functions_func_0x65.html | 152 + doc/html-Qt3/functions_func_0x66.html | 235 + doc/html-Qt3/functions_func_0x67.html | 109 + doc/html-Qt3/functions_func_0x68.html | 127 + doc/html-Qt3/functions_func_0x69.html | 172 + doc/html-Qt3/functions_func_0x6b.html | 144 + doc/html-Qt3/functions_func_0x6c.html | 327 + doc/html-Qt3/functions_func_0x6d.html | 181 + doc/html-Qt3/functions_func_0x6f.html | 106 + doc/html-Qt3/functions_func_0x70.html | 144 + doc/html-Qt3/functions_func_0x71.html | 109 + doc/html-Qt3/functions_func_0x72.html | 214 + doc/html-Qt3/functions_func_0x73.html | 742 ++ doc/html-Qt3/functions_func_0x74.html | 126 + doc/html-Qt3/functions_func_0x75.html | 116 + doc/html-Qt3/functions_func_0x76.html | 124 + doc/html-Qt3/functions_func_0x77.html | 176 + doc/html-Qt3/functions_func_0x7a.html | 112 + doc/html-Qt3/functions_func_0x7e.html | 235 + doc/html-Qt3/hierarchy.html | 133 + doc/html-Qt3/index.html | 156 + doc/html-Qt3/nav_f.png | Bin 0 -> 159 bytes doc/html-Qt3/nav_h.png | Bin 0 -> 97 bytes doc/html-Qt3/open.png | Bin 0 -> 118 bytes doc/html-Qt3/tab_a.png | Bin 0 -> 140 bytes doc/html-Qt3/tab_b.png | Bin 0 -> 178 bytes doc/html-Qt3/tab_h.png | Bin 0 -> 192 bytes doc/html-Qt3/tab_s.png | Bin 0 -> 189 bytes doc/html-Qt3/tabs.css | 59 + doc/html-Qt4Qt5/annotated.html | 119 + doc/html-Qt4Qt5/bc_s.png | Bin 0 -> 677 bytes doc/html-Qt4Qt5/classQsciAPIs-members.html | 92 + doc/html-Qt4Qt5/classQsciAPIs.html | 390 + .../classQsciAbstractAPIs-members.html | 75 + doc/html-Qt4Qt5/classQsciAbstractAPIs.html | 204 + doc/html-Qt4Qt5/classQsciCommand-members.html | 176 + doc/html-Qt4Qt5/classQsciCommand.html | 625 + .../classQsciCommandSet-members.html | 76 + doc/html-Qt4Qt5/classQsciCommandSet.html | 152 + .../classQsciDocument-members.html | 73 + doc/html-Qt4Qt5/classQsciDocument.html | 87 + doc/html-Qt4Qt5/classQsciLexer-members.html | 122 + doc/html-Qt4Qt5/classQsciLexer.html | 1017 ++ .../classQsciLexerAVS-members.html | 143 + doc/html-Qt4Qt5/classQsciLexerAVS.html | 458 + .../classQsciLexerBash-members.html | 142 + doc/html-Qt4Qt5/classQsciLexerBash.html | 478 + .../classQsciLexerBatch-members.html | 132 + doc/html-Qt4Qt5/classQsciLexerBatch.html | 282 + .../classQsciLexerCMake-members.html | 141 + doc/html-Qt4Qt5/classQsciLexerCMake.html | 437 + .../classQsciLexerCPP-members.html | 190 + doc/html-Qt4Qt5/classQsciLexerCPP.html | 823 ++ .../classQsciLexerCSS-members.html | 158 + doc/html-Qt4Qt5/classQsciLexerCSS.html | 596 + .../classQsciLexerCSharp-members.html | 192 + doc/html-Qt4Qt5/classQsciLexerCSharp.html | 197 + .../classQsciLexerCoffeeScript-members.html | 155 + .../classQsciLexerCoffeeScript.html | 600 + .../classQsciLexerCustom-members.html | 128 + doc/html-Qt4Qt5/classQsciLexerCustom.html | 249 + doc/html-Qt4Qt5/classQsciLexerD-members.html | 153 + doc/html-Qt4Qt5/classQsciLexerD.html | 566 + .../classQsciLexerDiff-members.html | 132 + doc/html-Qt4Qt5/classQsciLexerDiff.html | 213 + .../classQsciLexerFortran-members.html | 143 + doc/html-Qt4Qt5/classQsciLexerFortran.html | 148 + .../classQsciLexerFortran77-members.html | 141 + doc/html-Qt4Qt5/classQsciLexerFortran77.html | 449 + .../classQsciLexerHTML-members.html | 248 + doc/html-Qt4Qt5/classQsciLexerHTML.html | 1105 ++ .../classQsciLexerIDL-members.html | 192 + doc/html-Qt4Qt5/classQsciLexerIDL.html | 151 + .../classQsciLexerJava-members.html | 192 + doc/html-Qt4Qt5/classQsciLexerJava.html | 128 + .../classQsciLexerJavaScript-members.html | 192 + doc/html-Qt4Qt5/classQsciLexerJavaScript.html | 197 + .../classQsciLexerLua-members.html | 146 + doc/html-Qt4Qt5/classQsciLexerLua.html | 467 + .../classQsciLexerMakefile-members.html | 131 + doc/html-Qt4Qt5/classQsciLexerMakefile.html | 255 + .../classQsciLexerMatlab-members.html | 133 + doc/html-Qt4Qt5/classQsciLexerMatlab.html | 264 + .../classQsciLexerOctave-members.html | 135 + doc/html-Qt4Qt5/classQsciLexerOctave.html | 148 + doc/html-Qt4Qt5/classQsciLexerPO-members.html | 143 + doc/html-Qt4Qt5/classQsciLexerPO.html | 433 + .../classQsciLexerPOV-members.html | 147 + doc/html-Qt4Qt5/classQsciLexerPOV.html | 530 + .../classQsciLexerPascal-members.html | 147 + doc/html-Qt4Qt5/classQsciLexerPascal.html | 568 + .../classQsciLexerPerl-members.html | 175 + doc/html-Qt4Qt5/classQsciLexerPerl.html | 718 ++ .../classQsciLexerPostScript-members.html | 148 + doc/html-Qt4Qt5/classQsciLexerPostScript.html | 561 + .../classQsciLexerProperties-members.html | 134 + doc/html-Qt4Qt5/classQsciLexerProperties.html | 422 + .../classQsciLexerPython-members.html | 164 + doc/html-Qt4Qt5/classQsciLexerPython.html | 808 ++ .../classQsciLexerRuby-members.html | 159 + doc/html-Qt4Qt5/classQsciLexerRuby.html | 551 + .../classQsciLexerSQL-members.html | 161 + doc/html-Qt4Qt5/classQsciLexerSQL.html | 740 ++ .../classQsciLexerSpice-members.html | 133 + doc/html-Qt4Qt5/classQsciLexerSpice.html | 260 + .../classQsciLexerTCL-members.html | 148 + doc/html-Qt4Qt5/classQsciLexerTCL.html | 467 + .../classQsciLexerTeX-members.html | 138 + doc/html-Qt4Qt5/classQsciLexerTeX.html | 468 + .../classQsciLexerVHDL-members.html | 149 + doc/html-Qt4Qt5/classQsciLexerVHDL.html | 597 + .../classQsciLexerVerilog-members.html | 148 + doc/html-Qt4Qt5/classQsciLexerVerilog.html | 592 + .../classQsciLexerXML-members.html | 252 + doc/html-Qt4Qt5/classQsciLexerXML.html | 322 + .../classQsciLexerYAML-members.html | 136 + doc/html-Qt4Qt5/classQsciLexerYAML.html | 418 + doc/html-Qt4Qt5/classQsciMacro-members.html | 78 + doc/html-Qt4Qt5/classQsciMacro.html | 174 + doc/html-Qt4Qt5/classQsciPrinter-members.html | 77 + doc/html-Qt4Qt5/classQsciPrinter.html | 240 + .../classQsciScintilla-members.html | 1527 +++ doc/html-Qt4Qt5/classQsciScintilla.html | 6250 ++++++++++ .../classQsciScintillaBase-members.html | 1156 ++ doc/html-Qt4Qt5/classQsciScintillaBase.html | 3428 ++++++ doc/html-Qt4Qt5/classQsciStyle-members.html | 96 + doc/html-Qt4Qt5/classQsciStyle.html | 549 + .../classQsciStyledText-members.html | 74 + doc/html-Qt4Qt5/classQsciStyledText.html | 145 + doc/html-Qt4Qt5/classes.html | 94 + doc/html-Qt4Qt5/closed.png | Bin 0 -> 126 bytes .../dir_323cc71d1ff40353d88845668e7ef2a3.html | 71 + .../dir_f9222a1fccc2f15158792f848cf34349.html | 121 + doc/html-Qt4Qt5/dirs.html | 67 + doc/html-Qt4Qt5/doxygen.css | 946 ++ doc/html-Qt4Qt5/doxygen.png | Bin 0 -> 3942 bytes doc/html-Qt4Qt5/functions.html | 364 + doc/html-Qt4Qt5/functions_0x62.html | 201 + doc/html-Qt4Qt5/functions_0x63.html | 399 + doc/html-Qt4Qt5/functions_0x64.html | 435 + doc/html-Qt4Qt5/functions_0x65.html | 209 + doc/html-Qt4Qt5/functions_0x66.html | 274 + doc/html-Qt4Qt5/functions_0x67.html | 122 + doc/html-Qt4Qt5/functions_0x68.html | 195 + doc/html-Qt4Qt5/functions_0x69.html | 229 + doc/html-Qt4Qt5/functions_0x6a.html | 145 + doc/html-Qt4Qt5/functions_0x6b.html | 214 + doc/html-Qt4Qt5/functions_0x6c.html | 427 + doc/html-Qt4Qt5/functions_0x6d.html | 241 + doc/html-Qt4Qt5/functions_0x6e.html | 150 + doc/html-Qt4Qt5/functions_0x6f.html | 141 + doc/html-Qt4Qt5/functions_0x70.html | 346 + doc/html-Qt4Qt5/functions_0x71.html | 145 + doc/html-Qt4Qt5/functions_0x72.html | 252 + doc/html-Qt4Qt5/functions_0x73.html | 1575 +++ doc/html-Qt4Qt5/functions_0x74.html | 205 + doc/html-Qt4Qt5/functions_0x75.html | 159 + doc/html-Qt4Qt5/functions_0x76.html | 180 + doc/html-Qt4Qt5/functions_0x77.html | 268 + doc/html-Qt4Qt5/functions_0x78.html | 115 + doc/html-Qt4Qt5/functions_0x7a.html | 124 + doc/html-Qt4Qt5/functions_0x7e.html | 238 + doc/html-Qt4Qt5/functions_enum.html | 131 + doc/html-Qt4Qt5/functions_eval.html | 275 + doc/html-Qt4Qt5/functions_eval_0x62.html | 185 + doc/html-Qt4Qt5/functions_eval_0x63.html | 289 + doc/html-Qt4Qt5/functions_eval_0x64.html | 242 + doc/html-Qt4Qt5/functions_eval_0x65.html | 153 + doc/html-Qt4Qt5/functions_eval_0x66.html | 135 + doc/html-Qt4Qt5/functions_eval_0x67.html | 115 + doc/html-Qt4Qt5/functions_eval_0x68.html | 173 + doc/html-Qt4Qt5/functions_eval_0x69.html | 150 + doc/html-Qt4Qt5/functions_eval_0x6a.html | 144 + doc/html-Qt4Qt5/functions_eval_0x6b.html | 172 + doc/html-Qt4Qt5/functions_eval_0x6c.html | 202 + doc/html-Qt4Qt5/functions_eval_0x6d.html | 156 + doc/html-Qt4Qt5/functions_eval_0x6e.html | 149 + doc/html-Qt4Qt5/functions_eval_0x6f.html | 137 + doc/html-Qt4Qt5/functions_eval_0x70.html | 302 + doc/html-Qt4Qt5/functions_eval_0x71.html | 138 + doc/html-Qt4Qt5/functions_eval_0x72.html | 140 + doc/html-Qt4Qt5/functions_eval_0x73.html | 935 ++ doc/html-Qt4Qt5/functions_eval_0x74.html | 176 + doc/html-Qt4Qt5/functions_eval_0x75.html | 145 + doc/html-Qt4Qt5/functions_eval_0x76.html | 164 + doc/html-Qt4Qt5/functions_eval_0x77.html | 180 + doc/html-Qt4Qt5/functions_eval_0x78.html | 114 + doc/html-Qt4Qt5/functions_eval_0x7a.html | 111 + doc/html-Qt4Qt5/functions_func.html | 182 + doc/html-Qt4Qt5/functions_func_0x62.html | 115 + doc/html-Qt4Qt5/functions_func_0x63.html | 205 + doc/html-Qt4Qt5/functions_func_0x64.html | 294 + doc/html-Qt4Qt5/functions_func_0x65.html | 152 + doc/html-Qt4Qt5/functions_func_0x66.html | 238 + doc/html-Qt4Qt5/functions_func_0x67.html | 109 + doc/html-Qt4Qt5/functions_func_0x68.html | 124 + doc/html-Qt4Qt5/functions_func_0x69.html | 175 + doc/html-Qt4Qt5/functions_func_0x6b.html | 144 + doc/html-Qt4Qt5/functions_func_0x6c.html | 327 + doc/html-Qt4Qt5/functions_func_0x6d.html | 181 + doc/html-Qt4Qt5/functions_func_0x6f.html | 106 + doc/html-Qt4Qt5/functions_func_0x70.html | 144 + doc/html-Qt4Qt5/functions_func_0x71.html | 109 + doc/html-Qt4Qt5/functions_func_0x72.html | 214 + doc/html-Qt4Qt5/functions_func_0x73.html | 742 ++ doc/html-Qt4Qt5/functions_func_0x74.html | 129 + doc/html-Qt4Qt5/functions_func_0x75.html | 116 + doc/html-Qt4Qt5/functions_func_0x76.html | 118 + doc/html-Qt4Qt5/functions_func_0x77.html | 176 + doc/html-Qt4Qt5/functions_func_0x7a.html | 112 + doc/html-Qt4Qt5/functions_func_0x7e.html | 235 + doc/html-Qt4Qt5/hierarchy.html | 133 + doc/html-Qt4Qt5/index.html | 159 + doc/html-Qt4Qt5/nav_f.png | Bin 0 -> 159 bytes doc/html-Qt4Qt5/nav_h.png | Bin 0 -> 97 bytes doc/html-Qt4Qt5/open.png | Bin 0 -> 118 bytes doc/html-Qt4Qt5/tab_a.png | Bin 0 -> 140 bytes doc/html-Qt4Qt5/tab_b.png | Bin 0 -> 178 bytes doc/html-Qt4Qt5/tab_h.png | Bin 0 -> 192 bytes doc/html-Qt4Qt5/tab_s.png | Bin 0 -> 189 bytes doc/html-Qt4Qt5/tabs.css | 59 + doc/qscintilla-Qt3.dxy | 1514 +++ doc/qscintilla-Qt4Qt5.dxy | 1514 +++ example-Qt3/application.cpp | 271 + example-Qt3/application.h | 48 + example-Qt3/application.pro | 10 + example-Qt3/fileopen.xpm | 22 + example-Qt3/fileprint.xpm | 24 + example-Qt3/filesave.xpm | 22 + example-Qt3/main.cpp | 21 + example-Qt4Qt5/application.pro | 9 + example-Qt4Qt5/application.qrc | 10 + example-Qt4Qt5/images/copy.png | Bin 0 -> 1339 bytes example-Qt4Qt5/images/cut.png | Bin 0 -> 1323 bytes example-Qt4Qt5/images/new.png | Bin 0 -> 852 bytes example-Qt4Qt5/images/open.png | Bin 0 -> 2073 bytes example-Qt4Qt5/images/paste.png | Bin 0 -> 1745 bytes example-Qt4Qt5/images/save.png | Bin 0 -> 1187 bytes example-Qt4Qt5/main.cpp | 34 + example-Qt4Qt5/mainwindow.cpp | 311 + example-Qt4Qt5/mainwindow.h | 82 + include/ILexer.h | 98 + include/License.txt | 20 + include/Platform.h | 534 + include/SciLexer.h | 1688 +++ include/Scintilla.h | 1119 ++ include/Scintilla.iface | 4464 +++++++ include/ScintillaWidget.h | 51 + lexers/LexA68k.cpp | 347 + lexers/LexAPDL.cpp | 259 + lexers/LexASY.cpp | 271 + lexers/LexAU3.cpp | 910 ++ lexers/LexAVE.cpp | 231 + lexers/LexAVS.cpp | 293 + lexers/LexAbaqus.cpp | 620 + lexers/LexAda.cpp | 515 + lexers/LexAsm.cpp | 460 + lexers/LexAsn1.cpp | 188 + lexers/LexBaan.cpp | 196 + lexers/LexBash.cpp | 825 ++ lexers/LexBasic.cpp | 510 + lexers/LexBullant.cpp | 233 + lexers/LexCLW.cpp | 682 ++ lexers/LexCOBOL.cpp | 381 + lexers/LexCPP.cpp | 1309 ++ lexers/LexCSS.cpp | 567 + lexers/LexCaml.cpp | 456 + lexers/LexCmake.cpp | 461 + lexers/LexCoffeeScript.cpp | 563 + lexers/LexConf.cpp | 192 + lexers/LexCrontab.cpp | 226 + lexers/LexCsound.cpp | 214 + lexers/LexD.cpp | 568 + lexers/LexECL.cpp | 521 + lexers/LexEScript.cpp | 276 + lexers/LexEiffel.cpp | 241 + lexers/LexErlang.cpp | 623 + lexers/LexFlagship.cpp | 354 + lexers/LexForth.cpp | 179 + lexers/LexFortran.cpp | 484 + lexers/LexGAP.cpp | 266 + lexers/LexGui4Cli.cpp | 316 + lexers/LexHTML.cpp | 2184 ++++ lexers/LexHaskell.cpp | 1111 ++ lexers/LexInno.cpp | 290 + lexers/LexKVIrc.cpp | 473 + lexers/LexKix.cpp | 129 + lexers/LexLaTeX.cpp | 539 + lexers/LexLisp.cpp | 285 + lexers/LexLout.cpp | 215 + lexers/LexLua.cpp | 436 + lexers/LexMMIXAL.cpp | 189 + lexers/LexMPT.cpp | 193 + lexers/LexMSSQL.cpp | 354 + lexers/LexMagik.cpp | 448 + lexers/LexMarkdown.cpp | 421 + lexers/LexMatlab.cpp | 306 + lexers/LexMetapost.cpp | 402 + lexers/LexModula.cpp | 743 ++ lexers/LexMySQL.cpp | 580 + lexers/LexNimrod.cpp | 433 + lexers/LexNsis.cpp | 662 + lexers/LexOScript.cpp | 548 + lexers/LexOpal.cpp | 525 + lexers/LexOthers.cpp | 1148 ++ lexers/LexPB.cpp | 365 + lexers/LexPLM.cpp | 201 + lexers/LexPO.cpp | 213 + lexers/LexPOV.cpp | 319 + lexers/LexPS.cpp | 350 + lexers/LexPascal.cpp | 615 + lexers/LexPerl.cpp | 1729 +++ lexers/LexPowerPro.cpp | 630 + lexers/LexPowerShell.cpp | 248 + lexers/LexProgress.cpp | 282 + lexers/LexPython.cpp | 571 + lexers/LexR.cpp | 216 + lexers/LexRebol.cpp | 325 + lexers/LexRuby.cpp | 1779 +++ lexers/LexRust.cpp | 768 ++ lexers/LexSML.cpp | 223 + lexers/LexSQL.cpp | 933 ++ lexers/LexSTTXT.cpp | 406 + lexers/LexScriptol.cpp | 411 + lexers/LexSmalltalk.cpp | 326 + lexers/LexSorcus.cpp | 208 + lexers/LexSpecman.cpp | 292 + lexers/LexSpice.cpp | 206 + lexers/LexTACL.cpp | 400 + lexers/LexTADS3.cpp | 903 ++ lexers/LexTAL.cpp | 399 + lexers/LexTCL.cpp | 370 + lexers/LexTCMD.cpp | 511 + lexers/LexTeX.cpp | 497 + lexers/LexTxt2tags.cpp | 480 + lexers/LexVB.cpp | 319 + lexers/LexVHDL.cpp | 476 + lexers/LexVerilog.cpp | 345 + lexers/LexVisualProlog.cpp | 504 + lexers/LexYAML.cpp | 317 + lexers/License.txt | 20 + lexlib/Accessor.cpp | 79 + lexlib/Accessor.h | 35 + lexlib/CharacterCategory.cpp | 3303 +++++ lexlib/CharacterCategory.h | 31 + lexlib/CharacterSet.cpp | 61 + lexlib/CharacterSet.h | 178 + lexlib/LexAccessor.h | 214 + lexlib/LexerBase.cpp | 92 + lexlib/LexerBase.h | 41 + lexlib/LexerModule.cpp | 119 + lexlib/LexerModule.h | 82 + lexlib/LexerNoExceptions.cpp | 68 + lexlib/LexerNoExceptions.h | 32 + lexlib/LexerSimple.cpp | 57 + lexlib/LexerSimple.h | 30 + lexlib/License.txt | 20 + lexlib/OptionSet.h | 142 + lexlib/PropSetSimple.cpp | 161 + lexlib/PropSetSimple.h | 32 + lexlib/SparseState.h | 110 + lexlib/StyleContext.cpp | 56 + lexlib/StyleContext.h | 231 + lexlib/SubStyles.h | 177 + lexlib/WordList.cpp | 238 + lexlib/WordList.h | 41 + qsci/api/python/Python-2.4.api | 7663 ++++++++++++ qsci/api/python/Python-2.5.api | 8539 +++++++++++++ qsci/api/python/Python-2.6.api | 8216 +++++++++++++ qsci/api/python/Python-2.7.api | 8270 +++++++++++++ qsci/api/python/Python-3.1.api | 7235 +++++++++++ qsci/api/python/Python-3.2.api | 6296 ++++++++++ qsci/api/python/Python-3.3.api | 10055 ++++++++++++++++ qsci/api/python/Python-3.4.api | 9992 +++++++++++++++ src/AutoComplete.cpp | 296 + src/AutoComplete.h | 95 + src/CallTip.cpp | 333 + src/CallTip.h | 93 + src/CaseConvert.cpp | 630 + src/CaseConvert.h | 47 + src/CaseFolder.cpp | 68 + src/CaseFolder.h | 45 + src/Catalogue.cpp | 191 + src/Catalogue.h | 26 + src/CellBuffer.cpp | 776 ++ src/CellBuffer.h | 219 + src/CharClassify.cpp | 64 + src/CharClassify.h | 35 + src/ContractionState.cpp | 280 + src/ContractionState.h | 68 + src/Decoration.cpp | 194 + src/Decoration.h | 64 + src/Document.cpp | 2308 ++++ src/Document.h | 504 + src/Editor.cpp | 9655 +++++++++++++++ src/Editor.h | 683 ++ src/ExternalLexer.cpp | 193 + src/ExternalLexer.h | 101 + src/FontQuality.h | 28 + src/Indicator.cpp | 163 + src/Indicator.h | 33 + src/KeyMap.cpp | 173 + src/KeyMap.h | 50 + src/License.txt | 20 + src/LineMarker.cpp | 384 + src/LineMarker.h | 76 + src/Partitioning.h | 198 + src/PerLine.cpp | 486 + src/PerLine.h | 119 + src/PositionCache.cpp | 657 + src/PositionCache.h | 203 + src/RESearch.cpp | 961 ++ src/RESearch.h | 74 + src/RunStyles.cpp | 288 + src/RunStyles.h | 54 + src/SciTE.properties | 6 + src/ScintillaBase.cpp | 1027 ++ src/ScintillaBase.h | 100 + src/Selection.cpp | 380 + src/Selection.h | 188 + src/SplitVector.h | 291 + src/Style.cpp | 166 + src/Style.h | 91 + src/UniConversion.cpp | 265 + src/UniConversion.h | 58 + src/UnicodeFromUTF8.h | 32 + src/ViewStyle.cpp | 524 + src/ViewStyle.h | 192 + src/XPM.cpp | 434 + src/XPM.h | 124 + 922 files changed, 416515 insertions(+) create mode 100644 GPL_EXCEPTION.TXT create mode 100644 GPL_EXCEPTION_ADDENDUM.TXT create mode 100644 LICENSE.GPL2 create mode 100644 LICENSE.GPL3 create mode 100644 NEWS create mode 100644 OPENSOURCE-NOTICE.TXT create mode 100644 Python/configure-old.py create mode 100644 Python/configure.py create mode 100644 Python/sip/qsciabstractapis.sip create mode 100644 Python/sip/qsciapis.sip create mode 100644 Python/sip/qscicommand.sip create mode 100644 Python/sip/qscicommandset.sip create mode 100644 Python/sip/qscidocument.sip create mode 100644 Python/sip/qscilexer.sip create mode 100644 Python/sip/qscilexeravs.sip create mode 100644 Python/sip/qscilexerbash.sip create mode 100644 Python/sip/qscilexerbatch.sip create mode 100644 Python/sip/qscilexercmake.sip create mode 100644 Python/sip/qscilexercoffeescript.sip create mode 100644 Python/sip/qscilexercpp.sip create mode 100644 Python/sip/qscilexercsharp.sip create mode 100644 Python/sip/qscilexercss.sip create mode 100644 Python/sip/qscilexercustom.sip create mode 100644 Python/sip/qscilexerd.sip create mode 100644 Python/sip/qscilexerdiff.sip create mode 100644 Python/sip/qscilexerfortran.sip create mode 100644 Python/sip/qscilexerfortran77.sip create mode 100644 Python/sip/qscilexerhtml.sip create mode 100644 Python/sip/qscilexeridl.sip create mode 100644 Python/sip/qscilexerjava.sip create mode 100644 Python/sip/qscilexerjavascript.sip create mode 100644 Python/sip/qscilexerlua.sip create mode 100644 Python/sip/qscilexermakefile.sip create mode 100644 Python/sip/qscilexermatlab.sip create mode 100644 Python/sip/qscilexeroctave.sip create mode 100644 Python/sip/qscilexerpascal.sip create mode 100644 Python/sip/qscilexerperl.sip create mode 100644 Python/sip/qscilexerpo.sip create mode 100644 Python/sip/qscilexerpostscript.sip create mode 100644 Python/sip/qscilexerpov.sip create mode 100644 Python/sip/qscilexerproperties.sip create mode 100644 Python/sip/qscilexerpython.sip create mode 100644 Python/sip/qscilexerruby.sip create mode 100644 Python/sip/qscilexerspice.sip create mode 100644 Python/sip/qscilexersql.sip create mode 100644 Python/sip/qscilexertcl.sip create mode 100644 Python/sip/qscilexertex.sip create mode 100644 Python/sip/qscilexerverilog.sip create mode 100644 Python/sip/qscilexervhdl.sip create mode 100644 Python/sip/qscilexerxml.sip create mode 100644 Python/sip/qscilexeryaml.sip create mode 100644 Python/sip/qscimacro.sip create mode 100644 Python/sip/qscimod3.sip create mode 100644 Python/sip/qscimod4.sip create mode 100644 Python/sip/qscimod5.sip create mode 100644 Python/sip/qscimodcommon.sip create mode 100644 Python/sip/qsciprinter.sip create mode 100644 Python/sip/qsciscintilla.sip create mode 100644 Python/sip/qsciscintillabase3.sip create mode 100644 Python/sip/qsciscintillabase4.sip create mode 100644 Python/sip/qscistyle.sip create mode 100644 Python/sip/qscistyledtext.sip create mode 100644 Qt3/InputMethod.cpp create mode 100644 Qt3/ListBoxQt.cpp create mode 100644 Qt3/ListBoxQt.h create mode 100644 Qt3/MacPasteboardMime.cpp create mode 100644 Qt3/PlatQt.cpp create mode 100644 Qt3/Qsci/qsciabstractapis.h create mode 100644 Qt3/Qsci/qsciapis.h create mode 100644 Qt3/Qsci/qscicommand.h create mode 100644 Qt3/Qsci/qscicommandset.h create mode 100644 Qt3/Qsci/qscidocument.h create mode 100644 Qt3/Qsci/qsciglobal.h create mode 100644 Qt3/Qsci/qscilexer.h create mode 100644 Qt3/Qsci/qscilexeravs.h create mode 100644 Qt3/Qsci/qscilexerbash.h create mode 100644 Qt3/Qsci/qscilexerbatch.h create mode 100644 Qt3/Qsci/qscilexercmake.h create mode 100644 Qt3/Qsci/qscilexercoffeescript.h create mode 100644 Qt3/Qsci/qscilexercpp.h create mode 100644 Qt3/Qsci/qscilexercsharp.h create mode 100644 Qt3/Qsci/qscilexercss.h create mode 100644 Qt3/Qsci/qscilexercustom.h create mode 100644 Qt3/Qsci/qscilexerd.h create mode 100644 Qt3/Qsci/qscilexerdiff.h create mode 100644 Qt3/Qsci/qscilexerfortran.h create mode 100644 Qt3/Qsci/qscilexerfortran77.h create mode 100644 Qt3/Qsci/qscilexerhtml.h create mode 100644 Qt3/Qsci/qscilexeridl.h create mode 100644 Qt3/Qsci/qscilexerjava.h create mode 100644 Qt3/Qsci/qscilexerjavascript.h create mode 100644 Qt3/Qsci/qscilexerlua.h create mode 100644 Qt3/Qsci/qscilexermakefile.h create mode 100644 Qt3/Qsci/qscilexermatlab.h create mode 100644 Qt3/Qsci/qscilexeroctave.h create mode 100644 Qt3/Qsci/qscilexerpascal.h create mode 100644 Qt3/Qsci/qscilexerperl.h create mode 100644 Qt3/Qsci/qscilexerpo.h create mode 100644 Qt3/Qsci/qscilexerpostscript.h create mode 100644 Qt3/Qsci/qscilexerpov.h create mode 100644 Qt3/Qsci/qscilexerproperties.h create mode 100644 Qt3/Qsci/qscilexerpython.h create mode 100644 Qt3/Qsci/qscilexerruby.h create mode 100644 Qt3/Qsci/qscilexerspice.h create mode 100644 Qt3/Qsci/qscilexersql.h create mode 100644 Qt3/Qsci/qscilexertcl.h create mode 100644 Qt3/Qsci/qscilexertex.h create mode 100644 Qt3/Qsci/qscilexerverilog.h create mode 100644 Qt3/Qsci/qscilexervhdl.h create mode 100644 Qt3/Qsci/qscilexerxml.h create mode 100644 Qt3/Qsci/qscilexeryaml.h create mode 100644 Qt3/Qsci/qscimacro.h create mode 100644 Qt3/Qsci/qsciprinter.h create mode 100644 Qt3/Qsci/qsciscintilla.h create mode 100644 Qt3/Qsci/qsciscintillabase.h create mode 100644 Qt3/Qsci/qscistyle.h create mode 100644 Qt3/Qsci/qscistyledtext.h create mode 100644 Qt3/SciClasses.cpp create mode 100644 Qt3/SciClasses.h create mode 100644 Qt3/SciNamespace.h create mode 100644 Qt3/ScintillaQt.cpp create mode 100644 Qt3/ScintillaQt.h create mode 100644 Qt3/qsciabstractapis.cpp create mode 100644 Qt3/qsciapis.cpp create mode 100644 Qt3/qscicommand.cpp create mode 100644 Qt3/qscicommandset.cpp create mode 100644 Qt3/qscidocument.cpp create mode 100644 Qt3/qscilexer.cpp create mode 100644 Qt3/qscilexeravs.cpp create mode 100644 Qt3/qscilexerbash.cpp create mode 100644 Qt3/qscilexerbatch.cpp create mode 100644 Qt3/qscilexercmake.cpp create mode 100644 Qt3/qscilexercoffeescript.cpp create mode 100644 Qt3/qscilexercpp.cpp create mode 100644 Qt3/qscilexercsharp.cpp create mode 100644 Qt3/qscilexercss.cpp create mode 100644 Qt3/qscilexercustom.cpp create mode 100644 Qt3/qscilexerd.cpp create mode 100644 Qt3/qscilexerdiff.cpp create mode 100644 Qt3/qscilexerfortran.cpp create mode 100644 Qt3/qscilexerfortran77.cpp create mode 100644 Qt3/qscilexerhtml.cpp create mode 100644 Qt3/qscilexeridl.cpp create mode 100644 Qt3/qscilexerjava.cpp create mode 100644 Qt3/qscilexerjavascript.cpp create mode 100644 Qt3/qscilexerlua.cpp create mode 100644 Qt3/qscilexermakefile.cpp create mode 100644 Qt3/qscilexermatlab.cpp create mode 100644 Qt3/qscilexeroctave.cpp create mode 100644 Qt3/qscilexerpascal.cpp create mode 100644 Qt3/qscilexerperl.cpp create mode 100644 Qt3/qscilexerpo.cpp create mode 100644 Qt3/qscilexerpostscript.cpp create mode 100644 Qt3/qscilexerpov.cpp create mode 100644 Qt3/qscilexerproperties.cpp create mode 100644 Qt3/qscilexerpython.cpp create mode 100644 Qt3/qscilexerruby.cpp create mode 100644 Qt3/qscilexerspice.cpp create mode 100644 Qt3/qscilexersql.cpp create mode 100644 Qt3/qscilexertcl.cpp create mode 100644 Qt3/qscilexertex.cpp create mode 100644 Qt3/qscilexerverilog.cpp create mode 100644 Qt3/qscilexervhdl.cpp create mode 100644 Qt3/qscilexerxml.cpp create mode 100644 Qt3/qscilexeryaml.cpp create mode 100644 Qt3/qscimacro.cpp create mode 100644 Qt3/qscintilla.pro create mode 100644 Qt3/qscintilla_cs.qm create mode 100644 Qt3/qscintilla_cs.ts create mode 100644 Qt3/qscintilla_de.qm create mode 100644 Qt3/qscintilla_de.ts create mode 100644 Qt3/qscintilla_es.qm create mode 100644 Qt3/qscintilla_es.ts create mode 100644 Qt3/qscintilla_fr.qm create mode 100644 Qt3/qscintilla_fr.ts create mode 100644 Qt3/qscintilla_pt_br.qm create mode 100644 Qt3/qscintilla_pt_br.ts create mode 100644 Qt3/qsciprinter.cpp create mode 100644 Qt3/qsciscintilla.cpp create mode 100644 Qt3/qsciscintillabase.cpp create mode 100644 Qt3/qscistyle.cpp create mode 100644 Qt3/qscistyledtext.cpp create mode 100644 Qt4Qt5/InputMethod.cpp create mode 100644 Qt4Qt5/ListBoxQt.cpp create mode 100644 Qt4Qt5/ListBoxQt.h create mode 100644 Qt4Qt5/MacPasteboardMime.cpp create mode 100644 Qt4Qt5/PlatQt.cpp create mode 100644 Qt4Qt5/Qsci/qsciabstractapis.h create mode 100644 Qt4Qt5/Qsci/qsciapis.h create mode 100644 Qt4Qt5/Qsci/qscicommand.h create mode 100644 Qt4Qt5/Qsci/qscicommandset.h create mode 100644 Qt4Qt5/Qsci/qscidocument.h create mode 100644 Qt4Qt5/Qsci/qsciglobal.h create mode 100644 Qt4Qt5/Qsci/qscilexer.h create mode 100644 Qt4Qt5/Qsci/qscilexeravs.h create mode 100644 Qt4Qt5/Qsci/qscilexerbash.h create mode 100644 Qt4Qt5/Qsci/qscilexerbatch.h create mode 100644 Qt4Qt5/Qsci/qscilexercmake.h create mode 100644 Qt4Qt5/Qsci/qscilexercoffeescript.h create mode 100644 Qt4Qt5/Qsci/qscilexercpp.h create mode 100644 Qt4Qt5/Qsci/qscilexercsharp.h create mode 100644 Qt4Qt5/Qsci/qscilexercss.h create mode 100644 Qt4Qt5/Qsci/qscilexercustom.h create mode 100644 Qt4Qt5/Qsci/qscilexerd.h create mode 100644 Qt4Qt5/Qsci/qscilexerdiff.h create mode 100644 Qt4Qt5/Qsci/qscilexerfortran.h create mode 100644 Qt4Qt5/Qsci/qscilexerfortran77.h create mode 100644 Qt4Qt5/Qsci/qscilexerhtml.h create mode 100644 Qt4Qt5/Qsci/qscilexeridl.h create mode 100644 Qt4Qt5/Qsci/qscilexerjava.h create mode 100644 Qt4Qt5/Qsci/qscilexerjavascript.h create mode 100644 Qt4Qt5/Qsci/qscilexerlua.h create mode 100644 Qt4Qt5/Qsci/qscilexermakefile.h create mode 100644 Qt4Qt5/Qsci/qscilexermatlab.h create mode 100644 Qt4Qt5/Qsci/qscilexeroctave.h create mode 100644 Qt4Qt5/Qsci/qscilexerpascal.h create mode 100644 Qt4Qt5/Qsci/qscilexerperl.h create mode 100644 Qt4Qt5/Qsci/qscilexerpo.h create mode 100644 Qt4Qt5/Qsci/qscilexerpostscript.h create mode 100644 Qt4Qt5/Qsci/qscilexerpov.h create mode 100644 Qt4Qt5/Qsci/qscilexerproperties.h create mode 100644 Qt4Qt5/Qsci/qscilexerpython.h create mode 100644 Qt4Qt5/Qsci/qscilexerruby.h create mode 100644 Qt4Qt5/Qsci/qscilexerspice.h create mode 100644 Qt4Qt5/Qsci/qscilexersql.h create mode 100644 Qt4Qt5/Qsci/qscilexertcl.h create mode 100644 Qt4Qt5/Qsci/qscilexertex.h create mode 100644 Qt4Qt5/Qsci/qscilexerverilog.h create mode 100644 Qt4Qt5/Qsci/qscilexervhdl.h create mode 100644 Qt4Qt5/Qsci/qscilexerxml.h create mode 100644 Qt4Qt5/Qsci/qscilexeryaml.h create mode 100644 Qt4Qt5/Qsci/qscimacro.h create mode 100644 Qt4Qt5/Qsci/qsciprinter.h create mode 100644 Qt4Qt5/Qsci/qsciscintilla.h create mode 100644 Qt4Qt5/Qsci/qsciscintillabase.h create mode 100644 Qt4Qt5/Qsci/qscistyle.h create mode 100644 Qt4Qt5/Qsci/qscistyledtext.h create mode 100644 Qt4Qt5/SciClasses.cpp create mode 100644 Qt4Qt5/SciClasses.h create mode 100644 Qt4Qt5/SciNamespace.h create mode 100644 Qt4Qt5/ScintillaQt.cpp create mode 100644 Qt4Qt5/ScintillaQt.h create mode 100644 Qt4Qt5/features/qscintilla2.prf create mode 100644 Qt4Qt5/qsciabstractapis.cpp create mode 100644 Qt4Qt5/qsciapis.cpp create mode 100644 Qt4Qt5/qscicommand.cpp create mode 100644 Qt4Qt5/qscicommandset.cpp create mode 100644 Qt4Qt5/qscidocument.cpp create mode 100644 Qt4Qt5/qscilexer.cpp create mode 100644 Qt4Qt5/qscilexeravs.cpp create mode 100644 Qt4Qt5/qscilexerbash.cpp create mode 100644 Qt4Qt5/qscilexerbatch.cpp create mode 100644 Qt4Qt5/qscilexercmake.cpp create mode 100644 Qt4Qt5/qscilexercoffeescript.cpp create mode 100644 Qt4Qt5/qscilexercpp.cpp create mode 100644 Qt4Qt5/qscilexercsharp.cpp create mode 100644 Qt4Qt5/qscilexercss.cpp create mode 100644 Qt4Qt5/qscilexercustom.cpp create mode 100644 Qt4Qt5/qscilexerd.cpp create mode 100644 Qt4Qt5/qscilexerdiff.cpp create mode 100644 Qt4Qt5/qscilexerfortran.cpp create mode 100644 Qt4Qt5/qscilexerfortran77.cpp create mode 100644 Qt4Qt5/qscilexerhtml.cpp create mode 100644 Qt4Qt5/qscilexeridl.cpp create mode 100644 Qt4Qt5/qscilexerjava.cpp create mode 100644 Qt4Qt5/qscilexerjavascript.cpp create mode 100644 Qt4Qt5/qscilexerlua.cpp create mode 100644 Qt4Qt5/qscilexermakefile.cpp create mode 100644 Qt4Qt5/qscilexermatlab.cpp create mode 100644 Qt4Qt5/qscilexeroctave.cpp create mode 100644 Qt4Qt5/qscilexerpascal.cpp create mode 100644 Qt4Qt5/qscilexerperl.cpp create mode 100644 Qt4Qt5/qscilexerpo.cpp create mode 100644 Qt4Qt5/qscilexerpostscript.cpp create mode 100644 Qt4Qt5/qscilexerpov.cpp create mode 100644 Qt4Qt5/qscilexerproperties.cpp create mode 100644 Qt4Qt5/qscilexerpython.cpp create mode 100644 Qt4Qt5/qscilexerruby.cpp create mode 100644 Qt4Qt5/qscilexerspice.cpp create mode 100644 Qt4Qt5/qscilexersql.cpp create mode 100644 Qt4Qt5/qscilexertcl.cpp create mode 100644 Qt4Qt5/qscilexertex.cpp create mode 100644 Qt4Qt5/qscilexerverilog.cpp create mode 100644 Qt4Qt5/qscilexervhdl.cpp create mode 100644 Qt4Qt5/qscilexerxml.cpp create mode 100644 Qt4Qt5/qscilexeryaml.cpp create mode 100644 Qt4Qt5/qscimacro.cpp create mode 100644 Qt4Qt5/qscintilla.pro create mode 100644 Qt4Qt5/qscintilla_cs.qm create mode 100644 Qt4Qt5/qscintilla_cs.ts create mode 100644 Qt4Qt5/qscintilla_de.qm create mode 100644 Qt4Qt5/qscintilla_de.ts create mode 100644 Qt4Qt5/qscintilla_es.qm create mode 100644 Qt4Qt5/qscintilla_es.ts create mode 100644 Qt4Qt5/qscintilla_fr.qm create mode 100644 Qt4Qt5/qscintilla_fr.ts create mode 100644 Qt4Qt5/qscintilla_pt_br.qm create mode 100644 Qt4Qt5/qscintilla_pt_br.ts create mode 100644 Qt4Qt5/qsciprinter.cpp create mode 100644 Qt4Qt5/qsciscintilla.cpp create mode 100644 Qt4Qt5/qsciscintillabase.cpp create mode 100644 Qt4Qt5/qscistyle.cpp create mode 100644 Qt4Qt5/qscistyledtext.cpp create mode 100644 README create mode 100644 designer-Qt3/designer.pro create mode 100644 designer-Qt3/qscintillaplugin.cpp create mode 100644 designer-Qt4Qt5/designer.pro create mode 100644 designer-Qt4Qt5/qscintillaplugin.cpp create mode 100644 designer-Qt4Qt5/qscintillaplugin.h create mode 100644 doc/README-Qt3.doc create mode 100644 doc/README-Qt4Qt5.doc create mode 100644 doc/Scintilla/Design.html create mode 100644 doc/Scintilla/Icons.html create mode 100644 doc/Scintilla/Lexer.txt create mode 100644 doc/Scintilla/SciBreak.jpg create mode 100644 doc/Scintilla/SciCoding.html create mode 100644 doc/Scintilla/SciRest.jpg create mode 100644 doc/Scintilla/SciTEIco.png create mode 100644 doc/Scintilla/SciWord.jpg create mode 100644 doc/Scintilla/ScintillaDoc.html create mode 100644 doc/Scintilla/ScintillaDownload.html create mode 100644 doc/Scintilla/ScintillaHistory.html create mode 100644 doc/Scintilla/ScintillaRelated.html create mode 100644 doc/Scintilla/ScintillaToDo.html create mode 100644 doc/Scintilla/ScintillaUsage.html create mode 100644 doc/Scintilla/Steps.html create mode 100644 doc/Scintilla/annotations.png create mode 100644 doc/Scintilla/index.html create mode 100644 doc/Scintilla/styledmargin.png create mode 100644 doc/html-Qt3/annotated.html create mode 100644 doc/html-Qt3/bc_s.png create mode 100644 doc/html-Qt3/classQsciAPIs-members.html create mode 100644 doc/html-Qt3/classQsciAPIs.html create mode 100644 doc/html-Qt3/classQsciAbstractAPIs-members.html create mode 100644 doc/html-Qt3/classQsciAbstractAPIs.html create mode 100644 doc/html-Qt3/classQsciCommand-members.html create mode 100644 doc/html-Qt3/classQsciCommand.html create mode 100644 doc/html-Qt3/classQsciCommandSet-members.html create mode 100644 doc/html-Qt3/classQsciCommandSet.html create mode 100644 doc/html-Qt3/classQsciDocument-members.html create mode 100644 doc/html-Qt3/classQsciDocument.html create mode 100644 doc/html-Qt3/classQsciLexer-members.html create mode 100644 doc/html-Qt3/classQsciLexer.html create mode 100644 doc/html-Qt3/classQsciLexerAVS-members.html create mode 100644 doc/html-Qt3/classQsciLexerAVS.html create mode 100644 doc/html-Qt3/classQsciLexerBash-members.html create mode 100644 doc/html-Qt3/classQsciLexerBash.html create mode 100644 doc/html-Qt3/classQsciLexerBatch-members.html create mode 100644 doc/html-Qt3/classQsciLexerBatch.html create mode 100644 doc/html-Qt3/classQsciLexerCMake-members.html create mode 100644 doc/html-Qt3/classQsciLexerCMake.html create mode 100644 doc/html-Qt3/classQsciLexerCPP-members.html create mode 100644 doc/html-Qt3/classQsciLexerCPP.html create mode 100644 doc/html-Qt3/classQsciLexerCSS-members.html create mode 100644 doc/html-Qt3/classQsciLexerCSS.html create mode 100644 doc/html-Qt3/classQsciLexerCSharp-members.html create mode 100644 doc/html-Qt3/classQsciLexerCSharp.html create mode 100644 doc/html-Qt3/classQsciLexerCoffeeScript-members.html create mode 100644 doc/html-Qt3/classQsciLexerCoffeeScript.html create mode 100644 doc/html-Qt3/classQsciLexerCustom-members.html create mode 100644 doc/html-Qt3/classQsciLexerCustom.html create mode 100644 doc/html-Qt3/classQsciLexerD-members.html create mode 100644 doc/html-Qt3/classQsciLexerD.html create mode 100644 doc/html-Qt3/classQsciLexerDiff-members.html create mode 100644 doc/html-Qt3/classQsciLexerDiff.html create mode 100644 doc/html-Qt3/classQsciLexerFortran-members.html create mode 100644 doc/html-Qt3/classQsciLexerFortran.html create mode 100644 doc/html-Qt3/classQsciLexerFortran77-members.html create mode 100644 doc/html-Qt3/classQsciLexerFortran77.html create mode 100644 doc/html-Qt3/classQsciLexerHTML-members.html create mode 100644 doc/html-Qt3/classQsciLexerHTML.html create mode 100644 doc/html-Qt3/classQsciLexerIDL-members.html create mode 100644 doc/html-Qt3/classQsciLexerIDL.html create mode 100644 doc/html-Qt3/classQsciLexerJava-members.html create mode 100644 doc/html-Qt3/classQsciLexerJava.html create mode 100644 doc/html-Qt3/classQsciLexerJavaScript-members.html create mode 100644 doc/html-Qt3/classQsciLexerJavaScript.html create mode 100644 doc/html-Qt3/classQsciLexerLua-members.html create mode 100644 doc/html-Qt3/classQsciLexerLua.html create mode 100644 doc/html-Qt3/classQsciLexerMakefile-members.html create mode 100644 doc/html-Qt3/classQsciLexerMakefile.html create mode 100644 doc/html-Qt3/classQsciLexerMatlab-members.html create mode 100644 doc/html-Qt3/classQsciLexerMatlab.html create mode 100644 doc/html-Qt3/classQsciLexerOctave-members.html create mode 100644 doc/html-Qt3/classQsciLexerOctave.html create mode 100644 doc/html-Qt3/classQsciLexerPO-members.html create mode 100644 doc/html-Qt3/classQsciLexerPO.html create mode 100644 doc/html-Qt3/classQsciLexerPOV-members.html create mode 100644 doc/html-Qt3/classQsciLexerPOV.html create mode 100644 doc/html-Qt3/classQsciLexerPascal-members.html create mode 100644 doc/html-Qt3/classQsciLexerPascal.html create mode 100644 doc/html-Qt3/classQsciLexerPerl-members.html create mode 100644 doc/html-Qt3/classQsciLexerPerl.html create mode 100644 doc/html-Qt3/classQsciLexerPostScript-members.html create mode 100644 doc/html-Qt3/classQsciLexerPostScript.html create mode 100644 doc/html-Qt3/classQsciLexerProperties-members.html create mode 100644 doc/html-Qt3/classQsciLexerProperties.html create mode 100644 doc/html-Qt3/classQsciLexerPython-members.html create mode 100644 doc/html-Qt3/classQsciLexerPython.html create mode 100644 doc/html-Qt3/classQsciLexerRuby-members.html create mode 100644 doc/html-Qt3/classQsciLexerRuby.html create mode 100644 doc/html-Qt3/classQsciLexerSQL-members.html create mode 100644 doc/html-Qt3/classQsciLexerSQL.html create mode 100644 doc/html-Qt3/classQsciLexerSpice-members.html create mode 100644 doc/html-Qt3/classQsciLexerSpice.html create mode 100644 doc/html-Qt3/classQsciLexerTCL-members.html create mode 100644 doc/html-Qt3/classQsciLexerTCL.html create mode 100644 doc/html-Qt3/classQsciLexerTeX-members.html create mode 100644 doc/html-Qt3/classQsciLexerTeX.html create mode 100644 doc/html-Qt3/classQsciLexerVHDL-members.html create mode 100644 doc/html-Qt3/classQsciLexerVHDL.html create mode 100644 doc/html-Qt3/classQsciLexerVerilog-members.html create mode 100644 doc/html-Qt3/classQsciLexerVerilog.html create mode 100644 doc/html-Qt3/classQsciLexerXML-members.html create mode 100644 doc/html-Qt3/classQsciLexerXML.html create mode 100644 doc/html-Qt3/classQsciLexerYAML-members.html create mode 100644 doc/html-Qt3/classQsciLexerYAML.html create mode 100644 doc/html-Qt3/classQsciMacro-members.html create mode 100644 doc/html-Qt3/classQsciMacro.html create mode 100644 doc/html-Qt3/classQsciPrinter-members.html create mode 100644 doc/html-Qt3/classQsciPrinter.html create mode 100644 doc/html-Qt3/classQsciScintilla-members.html create mode 100644 doc/html-Qt3/classQsciScintilla.html create mode 100644 doc/html-Qt3/classQsciScintillaBase-members.html create mode 100644 doc/html-Qt3/classQsciScintillaBase.html create mode 100644 doc/html-Qt3/classQsciStyle-members.html create mode 100644 doc/html-Qt3/classQsciStyle.html create mode 100644 doc/html-Qt3/classQsciStyledText-members.html create mode 100644 doc/html-Qt3/classQsciStyledText.html create mode 100644 doc/html-Qt3/classes.html create mode 100644 doc/html-Qt3/closed.png create mode 100644 doc/html-Qt3/dir_47b4af07057faef408fa20558528d44e.html create mode 100644 doc/html-Qt3/dir_dc3d54424d2c2d2a2c76580a8d31cb7d.html create mode 100644 doc/html-Qt3/dirs.html create mode 100644 doc/html-Qt3/doxygen.css create mode 100644 doc/html-Qt3/doxygen.png create mode 100644 doc/html-Qt3/functions.html create mode 100644 doc/html-Qt3/functions_0x62.html create mode 100644 doc/html-Qt3/functions_0x63.html create mode 100644 doc/html-Qt3/functions_0x64.html create mode 100644 doc/html-Qt3/functions_0x65.html create mode 100644 doc/html-Qt3/functions_0x66.html create mode 100644 doc/html-Qt3/functions_0x67.html create mode 100644 doc/html-Qt3/functions_0x68.html create mode 100644 doc/html-Qt3/functions_0x69.html create mode 100644 doc/html-Qt3/functions_0x6a.html create mode 100644 doc/html-Qt3/functions_0x6b.html create mode 100644 doc/html-Qt3/functions_0x6c.html create mode 100644 doc/html-Qt3/functions_0x6d.html create mode 100644 doc/html-Qt3/functions_0x6e.html create mode 100644 doc/html-Qt3/functions_0x6f.html create mode 100644 doc/html-Qt3/functions_0x70.html create mode 100644 doc/html-Qt3/functions_0x71.html create mode 100644 doc/html-Qt3/functions_0x72.html create mode 100644 doc/html-Qt3/functions_0x73.html create mode 100644 doc/html-Qt3/functions_0x74.html create mode 100644 doc/html-Qt3/functions_0x75.html create mode 100644 doc/html-Qt3/functions_0x76.html create mode 100644 doc/html-Qt3/functions_0x77.html create mode 100644 doc/html-Qt3/functions_0x78.html create mode 100644 doc/html-Qt3/functions_0x7a.html create mode 100644 doc/html-Qt3/functions_0x7e.html create mode 100644 doc/html-Qt3/functions_enum.html create mode 100644 doc/html-Qt3/functions_eval.html create mode 100644 doc/html-Qt3/functions_eval_0x62.html create mode 100644 doc/html-Qt3/functions_eval_0x63.html create mode 100644 doc/html-Qt3/functions_eval_0x64.html create mode 100644 doc/html-Qt3/functions_eval_0x65.html create mode 100644 doc/html-Qt3/functions_eval_0x66.html create mode 100644 doc/html-Qt3/functions_eval_0x67.html create mode 100644 doc/html-Qt3/functions_eval_0x68.html create mode 100644 doc/html-Qt3/functions_eval_0x69.html create mode 100644 doc/html-Qt3/functions_eval_0x6a.html create mode 100644 doc/html-Qt3/functions_eval_0x6b.html create mode 100644 doc/html-Qt3/functions_eval_0x6c.html create mode 100644 doc/html-Qt3/functions_eval_0x6d.html create mode 100644 doc/html-Qt3/functions_eval_0x6e.html create mode 100644 doc/html-Qt3/functions_eval_0x6f.html create mode 100644 doc/html-Qt3/functions_eval_0x70.html create mode 100644 doc/html-Qt3/functions_eval_0x71.html create mode 100644 doc/html-Qt3/functions_eval_0x72.html create mode 100644 doc/html-Qt3/functions_eval_0x73.html create mode 100644 doc/html-Qt3/functions_eval_0x74.html create mode 100644 doc/html-Qt3/functions_eval_0x75.html create mode 100644 doc/html-Qt3/functions_eval_0x76.html create mode 100644 doc/html-Qt3/functions_eval_0x77.html create mode 100644 doc/html-Qt3/functions_eval_0x78.html create mode 100644 doc/html-Qt3/functions_eval_0x7a.html create mode 100644 doc/html-Qt3/functions_func.html create mode 100644 doc/html-Qt3/functions_func_0x62.html create mode 100644 doc/html-Qt3/functions_func_0x63.html create mode 100644 doc/html-Qt3/functions_func_0x64.html create mode 100644 doc/html-Qt3/functions_func_0x65.html create mode 100644 doc/html-Qt3/functions_func_0x66.html create mode 100644 doc/html-Qt3/functions_func_0x67.html create mode 100644 doc/html-Qt3/functions_func_0x68.html create mode 100644 doc/html-Qt3/functions_func_0x69.html create mode 100644 doc/html-Qt3/functions_func_0x6b.html create mode 100644 doc/html-Qt3/functions_func_0x6c.html create mode 100644 doc/html-Qt3/functions_func_0x6d.html create mode 100644 doc/html-Qt3/functions_func_0x6f.html create mode 100644 doc/html-Qt3/functions_func_0x70.html create mode 100644 doc/html-Qt3/functions_func_0x71.html create mode 100644 doc/html-Qt3/functions_func_0x72.html create mode 100644 doc/html-Qt3/functions_func_0x73.html create mode 100644 doc/html-Qt3/functions_func_0x74.html create mode 100644 doc/html-Qt3/functions_func_0x75.html create mode 100644 doc/html-Qt3/functions_func_0x76.html create mode 100644 doc/html-Qt3/functions_func_0x77.html create mode 100644 doc/html-Qt3/functions_func_0x7a.html create mode 100644 doc/html-Qt3/functions_func_0x7e.html create mode 100644 doc/html-Qt3/hierarchy.html create mode 100644 doc/html-Qt3/index.html create mode 100644 doc/html-Qt3/nav_f.png create mode 100644 doc/html-Qt3/nav_h.png create mode 100644 doc/html-Qt3/open.png create mode 100644 doc/html-Qt3/tab_a.png create mode 100644 doc/html-Qt3/tab_b.png create mode 100644 doc/html-Qt3/tab_h.png create mode 100644 doc/html-Qt3/tab_s.png create mode 100644 doc/html-Qt3/tabs.css create mode 100644 doc/html-Qt4Qt5/annotated.html create mode 100644 doc/html-Qt4Qt5/bc_s.png create mode 100644 doc/html-Qt4Qt5/classQsciAPIs-members.html create mode 100644 doc/html-Qt4Qt5/classQsciAPIs.html create mode 100644 doc/html-Qt4Qt5/classQsciAbstractAPIs-members.html create mode 100644 doc/html-Qt4Qt5/classQsciAbstractAPIs.html create mode 100644 doc/html-Qt4Qt5/classQsciCommand-members.html create mode 100644 doc/html-Qt4Qt5/classQsciCommand.html create mode 100644 doc/html-Qt4Qt5/classQsciCommandSet-members.html create mode 100644 doc/html-Qt4Qt5/classQsciCommandSet.html create mode 100644 doc/html-Qt4Qt5/classQsciDocument-members.html create mode 100644 doc/html-Qt4Qt5/classQsciDocument.html create mode 100644 doc/html-Qt4Qt5/classQsciLexer-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexer.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerAVS-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerAVS.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerBash-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerBash.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerBatch-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerBatch.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCMake-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCMake.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCPP-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCPP.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCSS-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCSS.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCSharp-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCSharp.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCoffeeScript-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCoffeeScript.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCustom-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerCustom.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerD-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerD.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerDiff-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerDiff.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerFortran-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerFortran.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerFortran77-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerFortran77.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerHTML-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerHTML.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerIDL-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerIDL.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerJava-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerJava.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerJavaScript-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerJavaScript.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerLua-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerLua.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerMakefile-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerMakefile.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerMatlab-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerMatlab.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerOctave-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerOctave.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPO-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPO.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPOV-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPOV.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPascal-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPascal.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPerl-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPerl.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPostScript-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPostScript.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerProperties-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerProperties.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPython-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerPython.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerRuby-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerRuby.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerSQL-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerSQL.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerSpice-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerSpice.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerTCL-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerTCL.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerTeX-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerTeX.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerVHDL-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerVHDL.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerVerilog-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerVerilog.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerXML-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerXML.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerYAML-members.html create mode 100644 doc/html-Qt4Qt5/classQsciLexerYAML.html create mode 100644 doc/html-Qt4Qt5/classQsciMacro-members.html create mode 100644 doc/html-Qt4Qt5/classQsciMacro.html create mode 100644 doc/html-Qt4Qt5/classQsciPrinter-members.html create mode 100644 doc/html-Qt4Qt5/classQsciPrinter.html create mode 100644 doc/html-Qt4Qt5/classQsciScintilla-members.html create mode 100644 doc/html-Qt4Qt5/classQsciScintilla.html create mode 100644 doc/html-Qt4Qt5/classQsciScintillaBase-members.html create mode 100644 doc/html-Qt4Qt5/classQsciScintillaBase.html create mode 100644 doc/html-Qt4Qt5/classQsciStyle-members.html create mode 100644 doc/html-Qt4Qt5/classQsciStyle.html create mode 100644 doc/html-Qt4Qt5/classQsciStyledText-members.html create mode 100644 doc/html-Qt4Qt5/classQsciStyledText.html create mode 100644 doc/html-Qt4Qt5/classes.html create mode 100644 doc/html-Qt4Qt5/closed.png create mode 100644 doc/html-Qt4Qt5/dir_323cc71d1ff40353d88845668e7ef2a3.html create mode 100644 doc/html-Qt4Qt5/dir_f9222a1fccc2f15158792f848cf34349.html create mode 100644 doc/html-Qt4Qt5/dirs.html create mode 100644 doc/html-Qt4Qt5/doxygen.css create mode 100644 doc/html-Qt4Qt5/doxygen.png create mode 100644 doc/html-Qt4Qt5/functions.html create mode 100644 doc/html-Qt4Qt5/functions_0x62.html create mode 100644 doc/html-Qt4Qt5/functions_0x63.html create mode 100644 doc/html-Qt4Qt5/functions_0x64.html create mode 100644 doc/html-Qt4Qt5/functions_0x65.html create mode 100644 doc/html-Qt4Qt5/functions_0x66.html create mode 100644 doc/html-Qt4Qt5/functions_0x67.html create mode 100644 doc/html-Qt4Qt5/functions_0x68.html create mode 100644 doc/html-Qt4Qt5/functions_0x69.html create mode 100644 doc/html-Qt4Qt5/functions_0x6a.html create mode 100644 doc/html-Qt4Qt5/functions_0x6b.html create mode 100644 doc/html-Qt4Qt5/functions_0x6c.html create mode 100644 doc/html-Qt4Qt5/functions_0x6d.html create mode 100644 doc/html-Qt4Qt5/functions_0x6e.html create mode 100644 doc/html-Qt4Qt5/functions_0x6f.html create mode 100644 doc/html-Qt4Qt5/functions_0x70.html create mode 100644 doc/html-Qt4Qt5/functions_0x71.html create mode 100644 doc/html-Qt4Qt5/functions_0x72.html create mode 100644 doc/html-Qt4Qt5/functions_0x73.html create mode 100644 doc/html-Qt4Qt5/functions_0x74.html create mode 100644 doc/html-Qt4Qt5/functions_0x75.html create mode 100644 doc/html-Qt4Qt5/functions_0x76.html create mode 100644 doc/html-Qt4Qt5/functions_0x77.html create mode 100644 doc/html-Qt4Qt5/functions_0x78.html create mode 100644 doc/html-Qt4Qt5/functions_0x7a.html create mode 100644 doc/html-Qt4Qt5/functions_0x7e.html create mode 100644 doc/html-Qt4Qt5/functions_enum.html create mode 100644 doc/html-Qt4Qt5/functions_eval.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x62.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x63.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x64.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x65.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x66.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x67.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x68.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x69.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x6a.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x6b.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x6c.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x6d.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x6e.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x6f.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x70.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x71.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x72.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x73.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x74.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x75.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x76.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x77.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x78.html create mode 100644 doc/html-Qt4Qt5/functions_eval_0x7a.html create mode 100644 doc/html-Qt4Qt5/functions_func.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x62.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x63.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x64.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x65.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x66.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x67.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x68.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x69.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x6b.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x6c.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x6d.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x6f.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x70.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x71.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x72.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x73.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x74.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x75.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x76.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x77.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x7a.html create mode 100644 doc/html-Qt4Qt5/functions_func_0x7e.html create mode 100644 doc/html-Qt4Qt5/hierarchy.html create mode 100644 doc/html-Qt4Qt5/index.html create mode 100644 doc/html-Qt4Qt5/nav_f.png create mode 100644 doc/html-Qt4Qt5/nav_h.png create mode 100644 doc/html-Qt4Qt5/open.png create mode 100644 doc/html-Qt4Qt5/tab_a.png create mode 100644 doc/html-Qt4Qt5/tab_b.png create mode 100644 doc/html-Qt4Qt5/tab_h.png create mode 100644 doc/html-Qt4Qt5/tab_s.png create mode 100644 doc/html-Qt4Qt5/tabs.css create mode 100644 doc/qscintilla-Qt3.dxy create mode 100644 doc/qscintilla-Qt4Qt5.dxy create mode 100644 example-Qt3/application.cpp create mode 100644 example-Qt3/application.h create mode 100644 example-Qt3/application.pro create mode 100644 example-Qt3/fileopen.xpm create mode 100644 example-Qt3/fileprint.xpm create mode 100644 example-Qt3/filesave.xpm create mode 100644 example-Qt3/main.cpp create mode 100644 example-Qt4Qt5/application.pro create mode 100644 example-Qt4Qt5/application.qrc create mode 100644 example-Qt4Qt5/images/copy.png create mode 100644 example-Qt4Qt5/images/cut.png create mode 100644 example-Qt4Qt5/images/new.png create mode 100644 example-Qt4Qt5/images/open.png create mode 100644 example-Qt4Qt5/images/paste.png create mode 100644 example-Qt4Qt5/images/save.png create mode 100644 example-Qt4Qt5/main.cpp create mode 100644 example-Qt4Qt5/mainwindow.cpp create mode 100644 example-Qt4Qt5/mainwindow.h create mode 100644 include/ILexer.h create mode 100644 include/License.txt create mode 100644 include/Platform.h create mode 100644 include/SciLexer.h create mode 100644 include/Scintilla.h create mode 100644 include/Scintilla.iface create mode 100644 include/ScintillaWidget.h create mode 100644 lexers/LexA68k.cpp create mode 100644 lexers/LexAPDL.cpp create mode 100644 lexers/LexASY.cpp create mode 100644 lexers/LexAU3.cpp create mode 100644 lexers/LexAVE.cpp create mode 100644 lexers/LexAVS.cpp create mode 100644 lexers/LexAbaqus.cpp create mode 100644 lexers/LexAda.cpp create mode 100644 lexers/LexAsm.cpp create mode 100644 lexers/LexAsn1.cpp create mode 100644 lexers/LexBaan.cpp create mode 100644 lexers/LexBash.cpp create mode 100644 lexers/LexBasic.cpp create mode 100644 lexers/LexBullant.cpp create mode 100644 lexers/LexCLW.cpp create mode 100644 lexers/LexCOBOL.cpp create mode 100644 lexers/LexCPP.cpp create mode 100644 lexers/LexCSS.cpp create mode 100644 lexers/LexCaml.cpp create mode 100644 lexers/LexCmake.cpp create mode 100644 lexers/LexCoffeeScript.cpp create mode 100644 lexers/LexConf.cpp create mode 100644 lexers/LexCrontab.cpp create mode 100644 lexers/LexCsound.cpp create mode 100644 lexers/LexD.cpp create mode 100644 lexers/LexECL.cpp create mode 100644 lexers/LexEScript.cpp create mode 100644 lexers/LexEiffel.cpp create mode 100644 lexers/LexErlang.cpp create mode 100644 lexers/LexFlagship.cpp create mode 100644 lexers/LexForth.cpp create mode 100644 lexers/LexFortran.cpp create mode 100644 lexers/LexGAP.cpp create mode 100644 lexers/LexGui4Cli.cpp create mode 100644 lexers/LexHTML.cpp create mode 100644 lexers/LexHaskell.cpp create mode 100644 lexers/LexInno.cpp create mode 100644 lexers/LexKVIrc.cpp create mode 100644 lexers/LexKix.cpp create mode 100644 lexers/LexLaTeX.cpp create mode 100644 lexers/LexLisp.cpp create mode 100644 lexers/LexLout.cpp create mode 100644 lexers/LexLua.cpp create mode 100644 lexers/LexMMIXAL.cpp create mode 100644 lexers/LexMPT.cpp create mode 100644 lexers/LexMSSQL.cpp create mode 100644 lexers/LexMagik.cpp create mode 100644 lexers/LexMarkdown.cpp create mode 100644 lexers/LexMatlab.cpp create mode 100644 lexers/LexMetapost.cpp create mode 100644 lexers/LexModula.cpp create mode 100644 lexers/LexMySQL.cpp create mode 100644 lexers/LexNimrod.cpp create mode 100644 lexers/LexNsis.cpp create mode 100644 lexers/LexOScript.cpp create mode 100644 lexers/LexOpal.cpp create mode 100644 lexers/LexOthers.cpp create mode 100644 lexers/LexPB.cpp create mode 100644 lexers/LexPLM.cpp create mode 100644 lexers/LexPO.cpp create mode 100644 lexers/LexPOV.cpp create mode 100644 lexers/LexPS.cpp create mode 100644 lexers/LexPascal.cpp create mode 100644 lexers/LexPerl.cpp create mode 100644 lexers/LexPowerPro.cpp create mode 100644 lexers/LexPowerShell.cpp create mode 100644 lexers/LexProgress.cpp create mode 100644 lexers/LexPython.cpp create mode 100644 lexers/LexR.cpp create mode 100644 lexers/LexRebol.cpp create mode 100644 lexers/LexRuby.cpp create mode 100644 lexers/LexRust.cpp create mode 100644 lexers/LexSML.cpp create mode 100644 lexers/LexSQL.cpp create mode 100644 lexers/LexSTTXT.cpp create mode 100644 lexers/LexScriptol.cpp create mode 100644 lexers/LexSmalltalk.cpp create mode 100644 lexers/LexSorcus.cpp create mode 100644 lexers/LexSpecman.cpp create mode 100644 lexers/LexSpice.cpp create mode 100644 lexers/LexTACL.cpp create mode 100644 lexers/LexTADS3.cpp create mode 100644 lexers/LexTAL.cpp create mode 100644 lexers/LexTCL.cpp create mode 100644 lexers/LexTCMD.cpp create mode 100644 lexers/LexTeX.cpp create mode 100644 lexers/LexTxt2tags.cpp create mode 100644 lexers/LexVB.cpp create mode 100644 lexers/LexVHDL.cpp create mode 100644 lexers/LexVerilog.cpp create mode 100644 lexers/LexVisualProlog.cpp create mode 100644 lexers/LexYAML.cpp create mode 100644 lexers/License.txt create mode 100644 lexlib/Accessor.cpp create mode 100644 lexlib/Accessor.h create mode 100644 lexlib/CharacterCategory.cpp create mode 100644 lexlib/CharacterCategory.h create mode 100644 lexlib/CharacterSet.cpp create mode 100644 lexlib/CharacterSet.h create mode 100644 lexlib/LexAccessor.h create mode 100644 lexlib/LexerBase.cpp create mode 100644 lexlib/LexerBase.h create mode 100644 lexlib/LexerModule.cpp create mode 100644 lexlib/LexerModule.h create mode 100644 lexlib/LexerNoExceptions.cpp create mode 100644 lexlib/LexerNoExceptions.h create mode 100644 lexlib/LexerSimple.cpp create mode 100644 lexlib/LexerSimple.h create mode 100644 lexlib/License.txt create mode 100644 lexlib/OptionSet.h create mode 100644 lexlib/PropSetSimple.cpp create mode 100644 lexlib/PropSetSimple.h create mode 100644 lexlib/SparseState.h create mode 100644 lexlib/StyleContext.cpp create mode 100644 lexlib/StyleContext.h create mode 100644 lexlib/SubStyles.h create mode 100644 lexlib/WordList.cpp create mode 100644 lexlib/WordList.h create mode 100644 qsci/api/python/Python-2.4.api create mode 100644 qsci/api/python/Python-2.5.api create mode 100644 qsci/api/python/Python-2.6.api create mode 100644 qsci/api/python/Python-2.7.api create mode 100644 qsci/api/python/Python-3.1.api create mode 100644 qsci/api/python/Python-3.2.api create mode 100644 qsci/api/python/Python-3.3.api create mode 100644 qsci/api/python/Python-3.4.api create mode 100644 src/AutoComplete.cpp create mode 100644 src/AutoComplete.h create mode 100644 src/CallTip.cpp create mode 100644 src/CallTip.h create mode 100644 src/CaseConvert.cpp create mode 100644 src/CaseConvert.h create mode 100644 src/CaseFolder.cpp create mode 100644 src/CaseFolder.h create mode 100644 src/Catalogue.cpp create mode 100644 src/Catalogue.h create mode 100644 src/CellBuffer.cpp create mode 100644 src/CellBuffer.h create mode 100644 src/CharClassify.cpp create mode 100644 src/CharClassify.h create mode 100644 src/ContractionState.cpp create mode 100644 src/ContractionState.h create mode 100644 src/Decoration.cpp create mode 100644 src/Decoration.h create mode 100644 src/Document.cpp create mode 100644 src/Document.h create mode 100644 src/Editor.cpp create mode 100644 src/Editor.h create mode 100644 src/ExternalLexer.cpp create mode 100644 src/ExternalLexer.h create mode 100644 src/FontQuality.h create mode 100644 src/Indicator.cpp create mode 100644 src/Indicator.h create mode 100644 src/KeyMap.cpp create mode 100644 src/KeyMap.h create mode 100644 src/License.txt create mode 100644 src/LineMarker.cpp create mode 100644 src/LineMarker.h create mode 100644 src/Partitioning.h create mode 100644 src/PerLine.cpp create mode 100644 src/PerLine.h create mode 100644 src/PositionCache.cpp create mode 100644 src/PositionCache.h create mode 100644 src/RESearch.cpp create mode 100644 src/RESearch.h create mode 100644 src/RunStyles.cpp create mode 100644 src/RunStyles.h create mode 100644 src/SciTE.properties create mode 100644 src/ScintillaBase.cpp create mode 100644 src/ScintillaBase.h create mode 100644 src/Selection.cpp create mode 100644 src/Selection.h create mode 100644 src/SplitVector.h create mode 100644 src/Style.cpp create mode 100644 src/Style.h create mode 100644 src/UniConversion.cpp create mode 100644 src/UniConversion.h create mode 100644 src/UnicodeFromUTF8.h create mode 100644 src/ViewStyle.cpp create mode 100644 src/ViewStyle.h create mode 100644 src/XPM.cpp create mode 100644 src/XPM.h diff --git a/GPL_EXCEPTION.TXT b/GPL_EXCEPTION.TXT new file mode 100644 index 0000000..1333589 --- /dev/null +++ b/GPL_EXCEPTION.TXT @@ -0,0 +1,90 @@ + +Riverbank GPL Exception version 1.1 +=================================== + +Additional rights granted beyond the GPL (the "Exception"). + +As a special exception to the terms and conditions of version 2.0 of the GPL, +Riverbank hereby grants you the rights described below, provided you agree to +the terms and conditions in this Exception, including its obligations and +restrictions on use. + +Nothing in this Exception gives you or anyone else the right to change the +licensing terms of the QScintilla Open Source Edition. + +Below, "Licensed Software" shall refer to the software licensed under the GPL +and this exception. + +1) The right to use Open Source Licenses not compatible with the GNU +General Public License: Your software (hereafter referred to as "Your +Software") may import the Licensed Software and/or distribute binaries of Your +Software that imports the Licensed Software, provided that: + +A) Your Software is licensed under one of the following licenses: + + +License name Version(s)/Copyright Date +Academic Free License 2.0, 2.1, 3.0 +Apache Software License 1.0 or 1.1 +Apache License 2.0 +Apple Public Source License 2.0 +Artistic license From Perl 5.8.0 +BSD license "July 22 1999" +Common Development and + Distribution License (CDDL) 1.0 +Common Public License 1.0 +Eclipse Public License 1.0 +GNU Library or "Lesser" +General Public License (LGPL) 2.0 or 2.1 +Jabber Open Source License 1.0 +MIT License (as set forth in the addendum file) +Mozilla Public License (MPL) 1.0 or 1.1 +Open Software License 2.0, 3.0 +OpenSSL license (with original +SSLeay license) "2003" ("1998") +PHP License 3.0 +Python license (CNRI Python License) (as set forth in the addendum file) +Python Software Foundation License 2.1.1 +Q Public License v1.0 +Sleepycat License "1999" +W3C License "2001" +X11 License X11R6.6 +Zlib/libpng License (as set forth in the addendum file) +Zope Public License 2.0, 2.1 + + +(Licenses without a specific version number or date are reproduced +in the file GPL_Exception_Addendum.txt in your source package). + + +and + +B) You must, on request, make a complete package including + the complete source code of Your Software (as defined + in the GNU General Public License version 2, section 3, + but excluding anything excluded by the special + exception in the same section) available to Riverbank + under the same license as that granted to other + recipients of the source code of Your Software. + +and + +C) Your or any other contributor's rights to: + + i) distribute the source code of Your Software to anyone for + any purpose; + + and + + ii) publicly discuss the development project for Your + Software and its goals in any form and in any forum + +are not prohibited by any legal instrument, including but not limited to +contracts, non-disclosure agreements, and employee contracts. + + +2) The right to link non-Open Source applications with pre-installed versions of +the Licensed Software: You may link applications with binary pre-installed +versions of the Licensed Software, provided that such applications have been +developed and are deployed in accordance with the terms and conditions of the +QScintilla Commercial License Agreement. diff --git a/GPL_EXCEPTION_ADDENDUM.TXT b/GPL_EXCEPTION_ADDENDUM.TXT new file mode 100644 index 0000000..4da94f8 --- /dev/null +++ b/GPL_EXCEPTION_ADDENDUM.TXT @@ -0,0 +1,248 @@ +Addendum to the Riverbank GPL Exception version 1.1 +=================================================== + + +-------------------------------------------------------------------------- + + The "Artistic License" + + Preamble + +The intent of this document is to state the conditions under which a +Package may be copied, such that the Copyright Holder maintains some +semblance of artistic control over the development of the package, +while giving the users of the package the right to use and distribute +the Package in a more-or-less customary fashion, plus the right to make +reasonable modifications. + +Definitions: + + "Package" refers to the collection of files distributed by the + Copyright Holder, and derivatives of that collection of files + created through textual modification. + + "Standard Version" refers to such a Package if it has not been + modified, or has been modified in accordance with the wishes + of the Copyright Holder as specified below. + + "Copyright Holder" is whoever is named in the copyright or + copyrights for the package. + + "You" is you, if you're thinking about copying or distributing + this Package. + + "Reasonable copying fee" is whatever you can justify on the + basis of media cost, duplication charges, time of people involved, + and so on. (You will not be required to justify it to the + Copyright Holder, but only to the computing community at large + as a market that must bear the fee.) + + "Freely Available" means that no fee is charged for the item + itself, though there may be fees involved in handling the item. + It also means that recipients of the item may redistribute it + under the same conditions they received it. + +1. You may make and give away verbatim copies of the source form of the +Standard Version of this Package without restriction, provided that you +duplicate all of the original copyright notices and associated disclaimers. + +2. You may apply bug fixes, portability fixes and other modifications +derived from the Public Domain or from the Copyright Holder. A Package +modified in such a way shall still be considered the Standard Version. + +3. You may otherwise modify your copy of this Package in any way, provided +that you insert a prominent notice in each changed file stating how and +when you changed that file, and provided that you do at least ONE of the +following: + +a) place your modifications in the Public Domain or otherwise make them +Freely Available, such as by posting said modifications to Usenet or +an equivalent medium, or placing the modifications on a major archive +site such as uunet.uu.net, or by allowing the Copyright Holder to include +your modifications in the Standard Version of the Package. + +b) use the modified Package only within your corporation or organization. + +c) rename any non-standard executables so the names do not conflict +with standard executables, which must also be provided, and provide +a separate manual page for each non-standard executable that clearly +documents how it differs from the Standard Version. + +d) make other distribution arrangements with the Copyright Holder. + +4. You may distribute the programs of this Package in object code or +executable form, provided that you do at least ONE of the following: + +a) distribute a Standard Version of the executables and library files, +together with instructions (in the manual page or equivalent) on where +to get the Standard Version. + +b) accompany the distribution with the machine-readable source of +the Package with your modifications. + +c) give non-standard executables non-standard names, and clearly +document the differences in manual pages (or equivalent), together +with instructions on where to get the Standard Version. + +d) make other distribution arrangements with the Copyright Holder. + +5. You may charge a reasonable copying fee for any distribution of this +Package. You may charge any fee you choose for support of this +Package. You may not charge a fee for this Package itself. However, +you may distribute this Package in aggregate with other (possibly +commercial) programs as part of a larger (possibly commercial) software +distribution provided that you do not advertise this Package as a +product of your own. You may embed this Package's interpreter within +an executable of yours (by linking); this shall be construed as a mere +form of aggregation, provided that the complete Standard Version of the +interpreter is so embedded. + +6. The scripts and library files supplied as input to or produced as +output from the programs of this Package do not automatically fall +under the copyright of this Package, but belong to whoever generated +them, and may be sold commercially, and may be aggregated with this +Package. If such scripts or library files are aggregated with this +Package via the so-called "undump" or "unexec" methods of producing a +binary executable image, then distribution of such an image shall +neither be construed as a distribution of this Package nor shall it +fall under the restrictions of Paragraphs 3 and 4, provided that you do +not represent such an executable image as a Standard Version of this +Package. + +7. C subroutines (or comparably compiled subroutines in other +languages) supplied by you and linked into this Package in order to +emulate subroutines and variables of the language defined by this +Package shall not be considered part of this Package, but are the +equivalent of input as in Paragraph 6, provided these subroutines do +not change the language in any way that would cause it to fail the +regression tests for the language. + +8. Aggregation of this Package with a commercial distribution is always +permitted provided that the use of this Package is embedded; that is, +when no overt attempt is made to make this Package's interfaces visible +to the end user of the commercial distribution. Such use shall not be +construed as a distribution of this Package. + +9. The name of the Copyright Holder may not be used to endorse or promote +products derived from this software without specific prior written permission. + +10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + The End + +-------------------------------------------------------------------------- + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +-------------------------------------------------------------------------- + +Python License (CNRI Python License) + +CNRI OPEN SOURCE LICENSE AGREEMENT + +IMPORTANT: PLEASE READ THE FOLLOWING AGREEMENT CAREFULLY. + +BY CLICKING ON "ACCEPT" WHERE INDICATED BELOW, OR BY COPYING, INSTALLING OR +OTHERWISE USING PYTHON 1.6, beta 1 SOFTWARE, YOU ARE DEEMED TO HAVE AGREED TO +THE TERMS AND CONDITIONS OF THIS LICENSE AGREEMENT. + +1. This LICENSE AGREEMENT is between the Corporation for National Research +Initiatives, having an office at 1895 Preston White Drive, Reston, VA 20191 +("CNRI"), and the Individual or Organization ("Licensee") accessing and +otherwise using Python 1.6, beta 1 software in source or binary form and its +associated documentation, as released at the www.python.org Internet site on +August 4, 2000 ("Python 1.6b1"). + +2. Subject to the terms and conditions of this License Agreement, CNRI hereby +grants Licensee a non-exclusive, royalty-free, world-wide license to reproduce, +analyze, test, perform and/or display publicly, prepare derivative works, +distribute, and otherwise use Python 1.6b1 alone or in any derivative version, +provided, however, that CNRIs License Agreement is retained in Python 1.6b1, +alone or in any derivative version prepared by Licensee. + +Alternately, in lieu of CNRIs License Agreement, Licensee may substitute the +following text (omitting the quotes): "Python 1.6, beta 1, is made available +subject to the terms and conditions in CNRIs License Agreement. This Agreement +may be located on the Internet using the following unique, persistent identifier +(known as a handle): 1895.22/1011. This Agreement may also be obtained from a +proxy server on the Internet using the URL:http://hdl.handle.net/1895.22/1011". + +3. In the event Licensee prepares a derivative work that is based on or +incorporates Python 1.6b1or any part thereof, and wants to make the derivative +work available to the public as provided herein, then Licensee hereby agrees to +indicate in any such work the nature of the modifications made to Python 1.6b1. + +4. CNRI is making Python 1.6b1 available to Licensee on an "AS IS" basis. CNRI +MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, +BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY +OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF +PYTHON 1.6b1WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. + +5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE SOFTWARE FOR +ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF USING, +MODIFYING OR DISTRIBUTING PYTHON 1.6b1, OR ANY DERIVATIVE THEREOF, EVEN IF +ADVISED OF THE POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material breach of +its terms and conditions. + +7. This License Agreement shall be governed by and interpreted in all respects +by the law of the State of Virginia, excluding conflict of law provisions. +Nothing in this License Agreement shall be deemed to create any relationship of +agency, partnership, or joint venture between CNRI and Licensee. This License +Agreement does not grant permission to use CNRI trademarks or trade name in a +trademark sense to endorse or promote products or services of Licensee, or any +third party. + +8. By clicking on the "ACCEPT" button where indicated, or by copying, installing +or otherwise using Python 1.6b1, Licensee agrees to be bound by the terms and +conditions of this License Agreement. + + + +ACCEPT + +-------------------------------------------------------------------------- + +The zlib/libpng License + +Copyright (c) + +This software is provided 'as-is', without any express or implied warranty. In +no event will the authors be held liable for any damages arising from the use of +this software. + +Permission is granted to anyone to use this software for any purpose, including +commercial applications, and to alter it and redistribute it freely, subject to +the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim +that you wrote the original software. If you use this software in a product, an +acknowledgment in the product documentation would be appreciated but is not +required. + +2. Altered source versions must be plainly marked as such, and must not be +misrepresented as being the original software. + +3. This notice may not be removed or altered from any source distribution. + +-------------------------------------------------------------------------- diff --git a/LICENSE.GPL2 b/LICENSE.GPL2 new file mode 100644 index 0000000..25b5420 --- /dev/null +++ b/LICENSE.GPL2 @@ -0,0 +1,351 @@ + + QScintilla is Copyright (C) 2014 Riverbank Computing Limited + + + You may use, distribute and copy QScintilla under the terms of GNU + General Public License version 2, which is displayed below. + +------------------------------------------------------------------------- + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. + +------------------------------------------------------------------------- diff --git a/LICENSE.GPL3 b/LICENSE.GPL3 new file mode 100644 index 0000000..5343747 --- /dev/null +++ b/LICENSE.GPL3 @@ -0,0 +1,685 @@ + + QScintilla is Copyright (C) 2014 Riverbank Computing Limited + + + You may use, distribute and copy QScintilla under the terms of GNU + General Public License version 3, which is displayed below. + +------------------------------------------------------------------------- + + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + +------------------------------------------------------------------------- diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..11f0020 --- /dev/null +++ b/NEWS @@ -0,0 +1,327 @@ +v2.8.4 11th September 2014 + - Added setHotspotForegroundColor(), resetHotspotForegroundColor(), + setHotspotBackgroundColor(), resetHotspotBackgroundColor(), + setHotspotUnderline() and setHotspotWrap() to QsciScintilla. + - Added SCI_SETHOTSPOTSINGLELINE to QsciScintillaBase. + - Bug fixes. + +v2.8.3 3rd July 2014 + - Added the QsciLexerCoffeeScript class. + - Font sizes are now handled as floating point values rather than integers. + - Bug fixes. + +v2.8.2 26th May 2014 + - Added the QsciLexerAVS class. + - Added the QsciLexerPO class. + - Added the --sysroot, --no-sip-files and --no-qsci-api options to the Python + bindings' configure.py. + - Cross-compilation (specifically to iOS and Android) is now supported. + - configure.py has been refactored and relicensed so that it can be used as a + template for wrapping other bindings. + - Bug fixes. + +v2.8.1 14th March 2014 + - Added support for iOS and Android. + - Added support for retina displays. + - A qscintilla2.prf file is installed so that application .pro files only + need to add CONFIG += qscintilla2. + - Updated the keywords recognised by the Octave lexer. + - Bug fixes. + +v2.8 9th November 2013 + - Based on Scintilla v3.3.6. + - Added the SCN_FOCUSIN() and SCN_FOCUSOUT() signals to QsciScintillaBase. + - Added PreProcessorCommentLineDoc and InactivePreProcessorCommentLineDoc to + QsciLexerCPP. + - Added SCLEX_LITERATEHASKELL, SCLEX_KVIRC, SCLEX_RUST and SCLEX_STTXT to + QsciScintillaBase. + - Added ThickCompositionIndicator to QsciScintilla::IndicatorStyle. + - Added INDIC_COMPOSITIONTHICK to QsciScintillaBase. + - Added SC_FOLDACTION_CONTRACT, SC_FOLDACTION_EXPAND and SC_FOLDACTION_TOGGLE + to QsciScintillaBase. + - Added SCI_FOLDLINE, SCI_FOLDCHILDREN, SCI_EXPANDCHILDREN and SCI_FOLDALL to + QsciScintillaBase. + - Added SC_AUTOMATICFOLD_SHOW, SC_AUTOMATICFOLD_CLICK and + SC_AUTOMATICFOLD_CHANGE to QsciScintillaBase. + - Added SCI_SETAUTOMATICFOLD and SCI_GETAUTOMATICFOLD to QsciScintillaBase. + - Added SC_ORDER_PRESORTED, SC_ORDER_PERFORMSORT and SC_ORDER_CUSTOM to + QsciScintillaBase. + - Added SCI_AUTOCSETORDER and SCI_AUTOCGETORDER to QsciScintillaBase. + - Added SCI_POSITIONRELATIVE to QsciScintillaBase. + - Added SCI_RELEASEALLEXTENDEDSTYLES and SCI_ALLOCATEEXTENDEDSTYLES to + QsciScintillaBase. + - Added SCI_SCROLLRANGE to QsciScintillaBase. + - Added SCI_SETCARETLINEVISIBLEALWAYS and SCI_GETCARETLINEVISIBLEALWAYS to + QsciScintillaBase. + - Added SCI_SETMOUSESELECTIONRECTANGULARSWITCH and + SCI_GETMOUSESELECTIONRECTANGULARSWITCH to QsciScintillaBase. + - Added SCI_SETREPRESENTATION, SCI_GETREPRESENTATION and + SCI_CLEARREPRESENTATION to QsciScintillaBase. + - Input methods are now properly supported. + +v2.7.2 16th June 2013 + - The build script for the Python bindings now has a --pyqt argument for + specifying PyQt4 or PyQt5. + - The default EOL mode on OS/X is now EolUnix. + - Bug fixes. + +v2.7.1 1st March 2013 + - Added support for the final release of Qt v5. + - The build script for the Python bindings should now work with SIP v5. + - Bug fixes. + +v2.7 8th December 2012 + - Based on Scintilla v3.2.3. + - Added support for Qt v5-rc1. + - Added HashQuotedString, InactiveHashQuotedString, PreProcessorComment, + InactivePreProcessorComment, setHighlightHashQuotedStrings() and + highlightHashQuotedStrings() to QsciLexerCpp. + - Added Variable, setHSSLanguage(), HSSLanguage(), setLessLanguage(), + LessLanguage(), setSCCSLanguage() and SCCSLanguage() to QsciLexerCSS. + - Added setOverwriteMode() and overwriteMode() to QsciScintilla. + - Added wordAtLineIndex() to QsciScintilla. + - Added findFirstInSelection() to QsciScintilla. + - Added CallTipsPosition, callTipsPosition() and setCallTipsPosition() to + QsciScintilla. + - Added WrapFlagInMargin to QsciScintilla::WrapVisualFlag. + - Added SquigglePixmapIndicator to QsciScintilla::IndicatorStyle. + - The weight of a font (rather than whether it is just bold or not) is now + respected. + - Added SCLEX_AVS, SCLEX_COFFEESCRIPT, SCLEX_ECL, SCLEX_OSCRIPT, + SCLEX_TCMD and SCLEX_VISUALPROLOG to QsciScintillaBase. + - Added SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE and + SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE to QsciScintillaBase. + - Added SC_FONT_SIZE_MULTIPLIER to QsciScintillaBase. + - Added SC_WEIGHT_NORMAL, SC_WEIGHT_SEMIBOLD and SC_WEIGHT_BOLD to + QsciScintillaBase. + - Added SC_WRAPVISUALFLAG_MARGIN to QsciScintillaBase. + - Added INDIC_SQUIGGLEPIXMAP to QsciScintillaBase. + - Added SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR, + SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR, SCI_CALLTIPSETPOSITION, + SCI_COUNTCHARACTERS, SCI_CREATELOADER, SCI_DELETERANGE, + SCI_FINDINDICATORFLASH, SCI_FINDINDICATORHIDE, SCI_FINDINDICATORSHOW, + SCI_GETALLLINESVISIBLE, SCI_GETGAPPOSITION, SCI_GETPUNCTUATIONCHARS, + SCI_GETRANGEPOINTER, SCI_GETSELECTIONEMPTY, SCI_GETTECHNOLOGY, + SCI_GETWHITESPACECHARS, SCI_GETWORDCHARS, SCI_RGBAIMAGESETSCALE, + SCI_SETPUNCTUATIONCHARS, SCI_SETTECHNOLOGY, SCI_STYLESETSIZEFRACTIONAL, + SCI_STYLEGETSIZEFRACTIONAL, SCI_STYLESETWEIGHT and SCI_STYLEGETWEIGHT to + QsciScintillaBase. + - Removed SCI_GETUSEPALETTE and SCI_SETUSEPALETTE from QsciScintillaBase. + - Bug fixes. + +v2.6.2 20th June 2012 + - Added support for Qt v5-alpha. + - QsciLexer::wordCharacters() is now part of the public API. + - Bug fixes. + +v2.6.1 10th February 2012 + - Support SCI_NAMESPACE to enable all internal Scintilla classes to be put + into the Scintilla namespace. + - APIs now allow for spaces between the end of a word and the opening + parenthesis. + - Building against Qt v3 is fixed. + +v2.6 11th November 2011 + - Based on Scintilla v2.29. + - Added Command, command() and execute() to QsciCommand. + - Added boundTo() and find() to QsciCommandSet. + - Added createStandardContextMenu() to QsciScintilla. + - Added StraightBoxIndicator, DashesIndicator, DotsIndicator, + SquiggleLowIndicator and DotBoxIndicator to QsciScintilla::IndicatorStyle. + - Added markerDefine() to QsciScintilla. + - Added MoNone, MoSublineSelect, marginOptions() and setMarginOptions() to + QsciScintilla. + - Added registerImage() to QsciScintilla. + - Added setIndicatorOutlineColor() to QsciScintilla. + - Added setMatchedBraceIndicator(), resetMatchedBraceIndicator(), + setUnmatchedBraceIndicator() and resetUnmatchedBraceIndicator() to + QsciScintilla. + - Added highlightTripleQuotedStrings() and setHighlightTripleQuotedStrings() + to QsciLexerCpp. + - Added Label to QsciLexerLua. + - Added DoubleQuotedStringVar, Translation, RegexVar, SubstitutionVar, + BackticksVar, DoubleQuotedHereDocumentVar, BacktickHereDocumentVar, + QuotedStringQQVar, QuotedStringQXVar, QuotedStringQRVar, setFoldAtElse() + and foldAtElse() to QsciLexerPerl. + - Added highlightSubidentifiers() and setHighlightSubidentifiers() to + QsciLexerPython. + - Added INDIC_STRAIGHTBOX, INDIC_DASH, INDIC_DOTS, INDIC_SQUIGGLELOW and + INDIC_DOTBOX to QsciScintillaBase. + - Added SC_MARGINOPTION_NONE and SC_MARGINOPTION_SUBLINESELECT to + QsciScintillaBase. + - Added SC_MARK_RGBAIMAGE to QsciScintillaBase. + - Added SCI_BRACEBADLIGHTINDICATOR, SCI_BRACEHIGHLIGHTINDICATOR, + SCI_GETIDENTIFIER, SCI_GETMARGINOPTIONS, SCI_INDICGETOUTLINEALPHA, + SCI_INDICSETOUTLINEALPHA, SCI_MARKERDEFINERGBAIMAGE, + SCI_MARKERENABLEHIGHLIGHT, SCI_MARKERSETBACKSELECTED, + SCI_MOVESELECTEDLINESDOWN, SCI_MOVESELECTEDLINESUP, SCI_REGISTERRGBAIMAGE, + SCI_RGBAIMAGESETHEIGHT, SCI_RGBAIMAGESETWIDTH, SCI_SCROLLTOEND, + SCI_SCROLLTOSTART, SCI_SETEMPTYSELECTION, SCI_SETIDENTIFIER and + SCI_SETMARGINOPTIONS to QsciScintillaBase. + +v2.5.1 17th April 2011 + - Added QsciLexerMatlab and QsciLexerOctave. + +v2.5 29th March 2011 + - Based on Scintilla v2.25. + - Rectangular selections are now fully supported and compatible with SciTE. + - The signature of the fromMimeData() and toMimeData() methods of + QsciScintillaBase have changed incompatibly in order to support rectangular + selections. + - Added QsciScintilla::setAutoCompletionUseSingle() to replace the now + deprecated setAutoCompletionShowSingle(). + - Added QsciScintilla::autoCompletionUseSingle() to replace the now + deprecated autoCompletionShowSingle(). + - QsciScintilla::setAutoCompletionCaseSensitivity() is no longer ignored if a + lexer has been set. + - Added FullRectangle, LeftRectangle and Underline to the + QsciScintilla::MarkerSymbol enum. + - Added setExtraAscent(), extraAscent(), setExtraDescent() and extraDescent() + to QsciScintilla. + - Added setWhitespaceSize() and whitespaceSize() to QsciScintilla. + - Added replaceSelectedText() to QsciScintilla. + - Added setWhitespaceBackgroundColor() and setWhitespaceForegroundColor() to + QsciScintilla. + - Added setWrapIndentMode() and wrapIndentMode() to QsciScintilla. + - Added setFirstVisibleLine() to QsciScintilla. + - Added setContractedFolds() and contractedFolds() to QsciScintilla. + - Added the SCN_HOTSPOTRELEASECLICK() signal to QsciScintillaBase. + - The signature of the QsciScintillaBase::SCN_UPDATEUI() signal has changed. + - Added the RawString and inactive styles to QsciLexerCPP. + - Added MediaRule to QsciLexerCSS. + - Added BackquoteString, RawString, KeywordSet5, KeywordSet6 and KeywordSet7 + to QsciLexerD. + - Added setDjangoTemplates(), djangoTemplates(), setMakoTemplates() and + makoTemplates() to QsciLexerHTML. + - Added KeywordSet5, KeywordSet6, KeywordSet7 and KeywordSet8 to + QsciLexerLua. + - Added setInitialSpaces() and initialSpaces() to QsciLexerProperties. + - Added setFoldCompact(), foldCompact(), setStringsOverNewlineAllowed() and + stringsOverNewlineAllowed() to QsciLexerPython. + - Added setFoldComments(), foldComments(), setFoldCompact() and foldCompact() + to QsciLexerRuby. + - Added setFoldComments() and foldComments(), and removed setFoldCompact() + and foldCompact() from QsciLexerTCL. + - Added setFoldComments(), foldComments(), setFoldCompact(), foldCompact(), + setProcessComments(), processComments(), setProcessIf(), and processIf() to + QsciLexerTeX. + - Added QuotedIdentifier, setDottedWords(), dottedWords(), setFoldAtElse(), + foldAtElse(), setFoldOnlyBegin(), foldOnlyBegin(), setHashComments(), + hashComments(), setQuotedIdentifiers() and quotedIdentifiers() to + QsciLexerSQL. + - The Python bindings now allow optional arguments to be specified as keyword + arguments. + - The Python bindings will now build using the protected-is-public hack if + possible. + +v2.4.6 23rd December 2010 + - Added support for indicators to the high-level API, i.e. added the + IndicatorStyle enum, the clearIndicatorRange(), fillIndicatorRange(), + indicatorDefine(), indicatorDrawUnder(), setIndicatorDrawUnder() and + setIndicatorForegroundColor methods, and the indicatorClicked() and + indicatorReleased() signals to QsciScintilla. + - Added support for the Key style in QsciLexerProperties. + - Added an API file for Python v2.7. + - Added the --no-timestamp command line option to the Python bindings' + configure.py. + +v2.4.5 31st August 2010 + - A bug fix release. + +v2.4.4 12th July 2010 + - Added the canInsertFromMimeData(), fromMimeData() and toMimeData() methods + to QsciScintillaBase. + - QsciScintilla::markerDefine() now allows existing markers to be redefined. + +v2.4.3 17th March 2010 + - Added clearFolds() to QsciScintilla. + +v2.4.2 20th January 2010 + - Updated Spanish translations from Jaime Seuma. + - Fixed compilation problems with Qt v3 and Qt v4 prior to v4.5. + +v2.4.1 14th January 2010 + - Added the QsciLexerSpice and QsciLexerVerilog classes. + - Significant performance improvements when handling long lines. + - The Python bindings include automatically generated docstrings by default. + - Added an API file for Python v3. + +v2.4 5th June 2009 + - Based on Scintilla v1.78. + - Added the QsciLexerCustom, QsciStyle and QsciStyledText classes. + - Added annotate(), annotation(), clearAnnotations(), setAnnotationDisplay() + and annotationDisplay() to QsciScintilla. + - Added setMarginText(), clearMarginText(), setMarginType() and marginType() + to QsciScintilla. + - Added QsciLexer::lexerId() so that container lexers can be implemented. + - Added editor() and styleBitsNeeded() to QsciLexer. + - Added setDollarsAllowed() and dollarsAllowed() to QsciLexerCPP. + - Added setFoldScriptComments(), foldScriptComments(), + setFoldScriptHeredocs() and foldScriptHeredocs() to QsciLexerHTML. + - Added setSmartHighlighting() and smartHighlighting() to QsciLexerPascal. + (Note that the Scintilla Pascal lexer has changed so that any saved colour + and font settings will not be properly restored.) + - Added setFoldPackages(), foldPackages(), setFoldPODBlocks() and + foldPODBlocks() to QsciLexerPerl. + - Added setV2UnicodeAllowed(), v2UnicodeAllowed(), setV3BinaryOctalAllowed(), + v3BinaryOctalAllowed(), setV3BytesAllowed and v3BytesAllowed() to + QsciLexerPython. + - Added setScriptsStyled() and scriptsStyled() to QsciLexerXML. + - Added Spanish translations from Jaime Seuma. + +v2.3.2 17th November 2008 + - A bug fix release. + +v2.3.1 6th November 2008 + - Based on Scintilla v1.77. + - Added the read() and write() methods to QsciScintilla to allow a file to be + read and written while minimising the conversions. + - Added the positionFromLineIndex() and lineIndexFromPosition() methods to + QsciScintilla to convert between a Scintilla character address and a + QScintilla character address. + - Added QsciScintilla::wordAtPoint() to return the word at the given screen + coordinates. + - QSciScintilla::setSelection() now allows the carat to be left at either the + start or the end of the selection. + - 'with' is now treated as a keyword by the Python lexer. + +v2.3 20th September 2008 + - Based on Scintilla v1.76. + - The new QsciAbstractAPIs class allows applications to replace the default + implementation of the language APIs used for auto-completion lists and call + tips. + - Added QsciScintilla::apiContext() to allow applications to determine the + context used for auto-completion and call tips. + - Added the QsciLexerFortran, QsciLexerFortran77, QsciLexerPascal, + QsciLexerPostScript, QsciLexerTCL, QsciLexerXML and QsciLexerYAML classes. + - QsciScintilla::setFolding() will now accept an optional margin number. + +v2.2 27th February 2008 + - Based on Scintilla v1.75. + - A lexer's default colour, paper and font are now written to and read from + the settings. + - Windows64 is now supported. + - The signature of the QsciScintillaBase::SCN_MACRORECORD() signal has + changed slightly. + - Changed the licensing to match the current Qt licenses, including GPL v3. + +v2.1 1st June 2007 + - A slightly revised API, incompatible with QScintilla v2.0. + - Lexers now remember their style settings. A lexer no longer has to be the + current lexer when changing a style's color, end-of-line fill, font or + paper. + - The color(), eolFill(), font() and paper() methods of QsciLexer now return + the current values for a style rather than the default values. + - The setDefaultColor(), setDefaultFont() and setDefaultPaper() methods of + QsciLexer are no longer slots and no longer virtual. + - The defaultColor(), defaultFont() and defaultPaper() methods of QsciLexer + are no longer virtual. + - The color(), eolFill(), font() and paper() methods of all QsciLexer derived + classes (except for QsciLexer itself) have been renamed defaultColor(), + defaultEolFill(), defaultFont() and defaultPaper() respectively. + +v2.0 26th May 2007 + - A revised API, incompatible with QScintilla v1. + - Hugely improved autocompletion and call tips support. + - Supports both Qt v3 and Qt v4. + - Includes Python bindings. diff --git a/OPENSOURCE-NOTICE.TXT b/OPENSOURCE-NOTICE.TXT new file mode 100644 index 0000000..4dbb577 --- /dev/null +++ b/OPENSOURCE-NOTICE.TXT @@ -0,0 +1,46 @@ +THIS IS THE OPEN SOURCE VERSION OF PyQt, RELEASED UNDER THE GPL +LICENSE. PLEASE READ THIS FILE TO FIND OUT WHAT THAT MEANS TO YOU. + +INTRODUCTION +============ + +PyQt is licensed under two licenses: the GNU General Public License +(GPL) and a commercial license. You are currently using the Open +Source (GPL) version of PyQt. This file explains the principle of dual +licensing, and which obligations using the GPL version of PyQt implies. + + +ABOUT DUAL LICENSING +==================== + +Dual Licensing is based on the principle of Quid Pro Quo - something +for something. If you, your company or your organization derive +commercial benefit from Riverbank's products and do not wish to +release your complete source code, you are required to purchase the +appropriate number of commercial licenses. + +Alternatively, if you are willing to follow the terms of the GPL +(General Public License), Riverbank software is available to you under +Open Source licenses which allows you to develop, modify and +distribute your software freely. If you wish to use an open source +version of Riverbank's products, you must contribute all your source +code to the open source community, according to the terms of the +applicable open source license. + +By offering both open source and commercial licenses, Riverbank +ensures the availability of resources for ongoing development and +improvement of PyQt. By purchasing commercial licenses, you are no +longer obligated to publish your source code. + + +COMMERCIAL AND OPEN SOURCE LICENSES +=================================== + +Riverbanks's Commercial licenses allow customers to develop, use and +distribute their applications under standard commercial terms. + +Riverbanks's Open Source versions are available under the terms of the +GPL - General Public License. The main obligation for software +development under the GPL is that anyone using your PyQt-based software +must have access to the complete source code, and must be able to +modify and redistribute that software to anyone free of charge. diff --git a/Python/configure-old.py b/Python/configure-old.py new file mode 100644 index 0000000..c07ce48 --- /dev/null +++ b/Python/configure-old.py @@ -0,0 +1,422 @@ +# This script configures QScintilla for PyQt v3 and/or v4. +# +# Copyright (c) 2014 Riverbank Computing Limited +# +# This file is part of QScintilla. +# +# This file may be used under the terms of the GNU General Public +# License versions 2.0 or 3.0 as published by the Free Software +# Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +# included in the packaging of this file. Alternatively you may (at +# your option) use any later version of the GNU General Public +# License if such license has been publicly approved by Riverbank +# Computing Limited (or its successors, if any) and the KDE Free Qt +# Foundation. In addition, as a special exception, Riverbank gives you +# certain additional rights. These rights are described in the Riverbank +# GPL Exception version 1.1, which can be found in the file +# GPL_EXCEPTION.txt in this package. +# +# If you are unsure which license is appropriate for your use, please +# contact the sales department at sales@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import sys +import os +import glob +import optparse + + +# Import SIP's configuration module so that we have access to the error +# reporting. Then try and import the configuration modules for both PyQt3 and +# PyQt4. +try: + import sipconfig +except ImportError: + sys.stderr.write("Unable to import sipconfig. Please make sure SIP is installed.\n") + sys.exit(1) + +try: + import PyQt4.pyqtconfig as pyqt4 +except: + pyqt4 = None + +try: + import pyqtconfig as pyqt3 +except: + pyqt3 = None + +if pyqt4 is not None: + pyqt = pyqt4.Configuration() + qt_data_dir = pyqt.qt_data_dir +elif pyqt3 is not None: + pyqt = pyqt3.Configuration() + qt_data_dir = pyqt.qt_dir +else: + sipconfig.error("Unable to find either PyQt v3 or v4.") + + +# This must be kept in sync with Python/configure.py, qscintilla.pro, +# example-Qt4Qt5/application.pro and designer-Qt4Qt5/designer.pro. +QSCI_API_MAJOR = 11 + + +# Initialise the globals. +sip_min_version = 0x040c00 + +if sys.platform == "win32": + qsci_define = "QSCINTILLA_DLL" +else: + qsci_define = "" + + +def create_optparser(): + """Create the parser for the command line. + """ + + def store_abspath(option, opt_str, value, parser): + setattr(parser.values, option.dest, os.path.abspath(value)) + + def store_abspath_dir(option, opt_str, value, parser): + if not os.path.isdir(value): + raise optparse.OptionValueError("'%s' is not a directory" % value) + setattr(parser.values, option.dest, os.path.abspath(value)) + + p = optparse.OptionParser(usage="python %prog [options]", + version="2.8.4") + + p.add_option("-a", "--apidir", action="callback", default=None, + type="string", metavar="DIR", dest="qscidir", + callback=store_abspath, help="where QScintilla's API file will be " + "installed [default: QTDIR/qsci]") + p.add_option("-c", "--concatenate", action="store_true", default=False, + dest="concat", help="concatenate the C++ source files") + p.add_option("-d", "--destdir", action="callback", + default=pyqt.pyqt_mod_dir, type="string", metavar="DIR", + dest="qscimoddir", callback=store_abspath, help="where the " + "QScintilla module will be installed [default: %s]" % + pyqt.pyqt_mod_dir) + p.add_option("-j", "--concatenate-split", type="int", default=1, + metavar="N", dest="split", help="split the concatenated C++ " + "source files into N pieces [default: 1]") + p.add_option("-k", "--static", action="store_true", default=False, + dest="static", help="build the QScintilla module as a static " + "library") + p.add_option("-n", action="callback", default=None, type="string", + metavar="DIR", dest="qsciincdir", callback=store_abspath_dir, + help="the directory containing the QScintilla Qsci header file " + "directory [default: %s]" % pyqt.qt_inc_dir) + p.add_option("--no-docstrings", action="store_true", default=False, + dest="no_docstrings", help="disable the generation of docstrings") + p.add_option("-o", action="callback", default=None, type="string", + metavar="DIR", dest="qscilibdir", callback=store_abspath_dir, + help="the directory containing the QScintilla library [default: " + "%s]" % pyqt.qt_lib_dir) + p.add_option("-p", type="int", default=-1, metavar="3|4", dest="pyqt_major", + help="specifically configure for PyQt v3 or v4 [default v4, if " + "found]") + p.add_option("-r", "--trace", action="store_true", default=False, + dest="tracing", help="build the QScintilla module with tracing " + "enabled") + p.add_option("-s", action="store_true", default=False, dest="not_dll", + help="QScintilla is a static library and not a DLL (Windows only)") + p.add_option("-u", "--debug", action="store_true", default=False, + help="build the QScintilla module with debugging symbols") + p.add_option("-v", "--sipdir", action="callback", default=None, + metavar="DIR", dest="qscisipdir", callback=store_abspath, + type="string", help="where the QScintilla .sip files will be " + "installed [default: %s]" % pyqt.pyqt_sip_dir) + p.add_option("-T", "--no-timestamp", action="store_true", default=False, + dest="no_timestamp", help="suppress timestamps in the header " + "comments of generated code [default: include timestamps]") + + if sys.platform != 'win32': + if sys.platform.startswith('linux') or sys.platform == 'darwin': + pip_default = True + pip_default_str = "enabled" + else: + pip_default = False + pip_default_str = "disabled" + + p.add_option("--protected-is-public", action="store_true", + default=pip_default, dest="prot_is_public", + help="enable building with 'protected' redefined as 'public' " + "[default: %s]" % pip_default_str) + p.add_option("--protected-not-public", action="store_false", + dest="prot_is_public", + help="disable building with 'protected' redefined as 'public'") + + return p + + +def inform_user(): + """Tell the user the option values that are going to be used. + """ + sipconfig.inform("PyQt %s is being used." % pyqt.pyqt_version_str) + sipconfig.inform("Qt v%s %s edition is being used." % (sipconfig.version_to_string(pyqt.qt_version), pyqt.qt_edition)) + sipconfig.inform("SIP %s is being used." % pyqt.sip_version_str) + + sipconfig.inform("The QScintilla module will be installed in %s." % opts.qscimoddir) + sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opts.qscidir, "api", "python")) + sipconfig.inform("The QScintilla .sip files will be installed in %s." % opts.qscisipdir) + + if opts.no_docstrings: + sipconfig.inform("The QScintilla module is being built without generated docstrings.") + else: + sipconfig.inform("The QScintilla module is being built with generated docstrings.") + + if opts.prot_is_public: + sipconfig.inform("The QScintilla module is being built with 'protected' redefined as 'public'.") + + +def check_qscintilla(): + """See if QScintilla can be found and what its version is. + """ + # Find the QScintilla header files. + sciglobal = os.path.join(opts.qsciincdir, "Qsci", "qsciglobal.h") + + if os.access(sciglobal, os.F_OK): + # Get the QScintilla version string. + _, sciversstr = sipconfig.read_version(sciglobal, "QScintilla", "QSCINTILLA_VERSION", "QSCINTILLA_VERSION_STR") + + if glob.glob(os.path.join(opts.qscilibdir, "*qscintilla2*")): + # Because we include the Python bindings with the C++ code we can + # reasonably force the same version to be used and not bother about + # versioning. + if sciversstr != "2.8.4": + sipconfig.error("QScintilla %s is being used but the Python bindings 2.8.4 are being built. Please use matching versions." % sciversstr) + + sipconfig.inform("QScintilla %s is being used." % sciversstr) + else: + sipconfig.error("The QScintilla library could not be found in %s. If QScintilla is installed then use the -o argument to explicitly specify the correct directory." % opts.qscilibdir) + else: + sipconfig.error("Qsci/qsciglobal.h could not be found in %s. If QScintilla is installed then use the -n argument to explicitly specify the correct directory." % opts.qsciincdir) + + +def sip_flags(): + """Return the SIP flags. + """ + # Get the flags used for the main PyQt module. + if pyqt.pyqt_version >= 0x040000: + flags = pyqt.pyqt_sip_flags.split() + else: + flags = pyqt.pyqt_qt_sip_flags.split() + flags.append("-x") + flags.append("Qsci_Qt4") + + # Generate the API file. + flags.append("-a") + flags.append("QScintilla2.api") + + # Add PyQt's .sip files to the search path. + flags.append("-I") + flags.append(pyqt.pyqt_sip_dir) + + return flags + + +def generate_code(): + """Generate the code for the QScintilla module. + """ + if pyqt.pyqt_version >= 0x040000: + mname = "Qsci" + else: + mname = "qsci" + + sipconfig.inform("Generating the C++ source for the %s module..." % mname) + + # Build the SIP command line. + argv = ['"' + pyqt.sip_bin + '"'] + + argv.extend(sip_flags()) + + if opts.no_timestamp: + argv.append("-T") + + if not opts.no_docstrings: + argv.append("-o"); + + if opts.prot_is_public: + argv.append("-P"); + + if opts.concat: + argv.append("-j") + argv.append(str(opts.split)) + + if opts.tracing: + argv.append("-r") + + argv.append("-c") + argv.append(".") + + buildfile = os.path.join("qsci.sbf") + argv.append("-b") + argv.append(buildfile) + + if pyqt.pyqt_version >= 0x040000: + argv.append("sip/qscimod4.sip") + else: + argv.append("sip/qscimod3.sip") + + os.system(" ".join(argv)) + + # Check the result. + if not os.access(buildfile, os.F_OK): + sipconfig.error("Unable to create the C++ code.") + + # Generate the Makefile. + sipconfig.inform("Creating the Makefile for the %s module..." % mname) + + def fix_install(mfile): + if sys.platform != "darwin" or opts.static: + return + + mfile.write("\tinstall_name_tool -change libqscintilla2.%u.dylib %s/libqscintilla2.%u.dylib $(DESTDIR)%s/$(TARGET)\n" % (QSCI_API_MAJOR, opts.qscilibdir, QSCI_API_MAJOR, opts.qscimoddir)) + + if pyqt.pyqt_version >= 0x040000: + class Makefile(pyqt4.QtGuiModuleMakefile): + def generate_target_install(self, mfile): + pyqt4.QtGuiModuleMakefile.generate_target_install(self, mfile) + fix_install(mfile) + else: + class Makefile(pyqt3.QtModuleMakefile): + def generate_target_install(self, mfile): + pyqt3.QtModuleMakefile.generate_target_install(self, mfile) + fix_install(mfile) + + installs = [] + sipfiles = [] + + for s in glob.glob("sip/*.sip"): + sipfiles.append(os.path.join("sip", os.path.basename(s))) + + installs.append([sipfiles, os.path.join(opts.qscisipdir, mname)]) + + installs.append(("QScintilla2.api", os.path.join(opts.qscidir, "api", "python"))) + + # PyQt v4.2 and later can handle MacOS/X universal binaries. + if pyqt.pyqt_version >= 0x040200: + makefile = Makefile( + configuration=pyqt, + build_file="qsci.sbf", + install_dir=opts.qscimoddir, + installs=installs, + static=opts.static, + debug=opts.debug, + universal=pyqt.universal, + arch=pyqt.arch, + prot_is_public=opts.prot_is_public, + deployment_target=pyqt.deployment_target + ) + else: + makefile = Makefile( + configuration=pyqt, + build_file="qsci.sbf", + install_dir=opts.qscimoddir, + installs=installs, + static=opts.static, + debug=opts.debug + ) + + if qsci_define: + makefile.extra_defines.append(qsci_define) + + makefile.extra_include_dirs.append(opts.qsciincdir) + makefile.extra_lib_dirs.append(opts.qscilibdir) + makefile.extra_libs.append("qscintilla2") + + makefile.generate() + + +def main(argv): + """Create the configuration module module. + + argv is the list of command line arguments. + """ + global pyqt + + # Check SIP is new enough. + if "snapshot" not in pyqt.sip_version_str: + if pyqt.sip_version < sip_min_version: + sipconfig.error("This version of QScintilla requires SIP v%s or later" % sipconfig.version_to_string(sip_min_version)) + + # Parse the command line. + global opts + + p = create_optparser() + opts, args = p.parse_args() + + if args: + p.print_help() + sys.exit(2) + + # Provide defaults for platform-specific options. + if sys.platform == 'win32': + opts.prot_is_public = False + + if opts.not_dll: + global qsci_define + qsci_define = "" + + # Set the version of PyQt explicitly. + global qt_data_dir + + if opts.pyqt_major == 4: + if pyqt4 is None: + sipconfig.error("PyQt v4 was specified with the -p argument but doesn't seem to be installed.") + else: + pyqt = pyqt4.Configuration() + qt_data_dir = pyqt.qt_data_dir + elif opts.pyqt_major == 3: + if pyqt3 is None: + sipconfig.error("PyQt v3 was specified with the -p argument but doesn't seem to be installed.") + else: + pyqt = pyqt3.Configuration() + qt_data_dir = pyqt.qt_dir + elif opts.pyqt_major >= 0: + sipconfig.error("Specify either 3 or 4 with the -p argument.") + + # Now we know which version of PyQt to use we can set defaults for those + # arguments that weren't specified. + if opts.qscimoddir is None: + opts.qscimoddir = pyqt.pyqt_mod_dir + + if opts.qsciincdir is None: + opts.qsciincdir = pyqt.qt_inc_dir + + if opts.qscilibdir is None: + opts.qscilibdir = pyqt.qt_lib_dir + + if opts.qscisipdir is None: + opts.qscisipdir = pyqt.pyqt_sip_dir + + if opts.qscidir is None: + opts.qscidir = os.path.join(qt_data_dir, "qsci") + + # Check for QScintilla. + check_qscintilla() + + # Tell the user what's been found. + inform_user() + + # Generate the code. + generate_code() + + +############################################################################### +# The script starts here. +############################################################################### + +if __name__ == "__main__": + try: + main(sys.argv) + except SystemExit: + raise + except: + sys.stderr.write( +"""An internal error occured. Please report all the output from the program, +including the following traceback, to support@riverbankcomputing.com. +""") + raise diff --git a/Python/configure.py b/Python/configure.py new file mode 100644 index 0000000..c774afe --- /dev/null +++ b/Python/configure.py @@ -0,0 +1,1682 @@ +# Copyright (c) 2014, Riverbank Computing Limited +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. + +# This is v1.2 of this boilerplate. + + +import sys +import os +import glob +import optparse + +try: + import sysconfig +except ImportError: + from distutils import sysconfig + + +############################################################################### +# You shouldn't need to modify anything above this line. +############################################################################### + + +# This must be kept in sync with Python/configure-old.py, qscintilla.pro, +# example-Qt4Qt5/application.pro and designer-Qt4Qt5/designer.pro. +QSCI_API_MAJOR = 11 + + +class ModuleConfiguration(object): + """ This class encapsulates all the module specific information needed by + the rest of this script to implement a configure.py script for modules that + build on top of PyQt. Functions implemented by the rest of this script + that begin with an underscore are considered internal and shouldn't be + called from here. + """ + + # The name of the module as it would be used in an import statement. + name = 'Qsci' + + # The descriptive name of the module. This is used in help text and error + # messages. + descriptive_name = "QScintilla" + + # The version of the module as a string. Set it to None if you don't + # provide version information. + version = '2.8.4' + + # Set if a configuration script is provided that handles versions of PyQt4 + # prior to v4.10 (i.e. versions where the pyqtconfig.py module is + # available). If provided the script must be called configure-old.py and + # be in the same directory as this script. + legacy_configuration_script = True + + # The minimum version of SIP that is required. This should be a + # dot-separated string of two or three integers (e.g. '1.0', '4.10.3'). If + # it is None or an empty string then the version is not checked. + minimum_sip_version = '4.16' + + # Set if support for C++ exceptions can be disabled. + no_exceptions = True + + # Set if the module supports redefining 'protected' as 'public'. + protected_is_public_is_supported = True + + # Set if the module supports PyQt4. + pyqt4_is_supported = True + + # Set if the module supports PyQt5. + pyqt5_is_supported = True + + # Set if the PyQt5 support is the default. It is ignored unless both + # 'pyqt4_is_supported' and 'pyqt5_is_supported' are set. + pyqt5_is_default = False + + # The name (without the .api extension) of the name of the QScintilla API + # file to be generated. If it is None or an empty string then an API file + # is not generated. + qscintilla_api_file = 'QScintilla2' + + # The email address that will be included when an error in the script is + # detected. Leave it blank if you don't want to include an address. + support_email_address = 'support@riverbankcomputing.com' + + # Set if the user can provide a configuration file. It is normally only + # used if cross-compilation is supported. + user_configuration_file_is_supported = True + + # Set if the user is allowed to pass PyQt sip flags on the command line. + # It is normally only used if cross-compilation is supported. It is + # ignored unless at least one of 'pyqt4_is_supported' or + # 'pyqt5_is_supported' is set. + user_pyqt_sip_flags_is_supported = True + + def init_target_configuration(self, target_configuration): + """ Perform any module specific initialisation of the target + target configuration. Typically this is the initialisation of module + specific attributes. To avoid name clashes attributes should be given + a module specific prefix. target_configuration is the target + configuration. + """ + + target_configuration.qsci_version = None + target_configuration.qsci_inc_dir = None + target_configuration.qsci_lib_dir = None + target_configuration.qsci_is_dll = (target_configuration.py_platform == 'win32') + target_configuration.qsci_sip_dir = None + + def init_optparser(self, optparser, target_configuration): + """ Perform any module specific initialisation of the command line + option parser. To avoid name clashes destination attributes should be + given a module specific prefix. optparser is the option parser. + target_configuration is the target configuration. + """ + + optparser.add_option('--qsci-incdir', '-n', dest='qsci_inc_dir', + type='string', default=None, action='callback', + callback=optparser_store_abspath_dir, metavar="DIR", + help="the directory containing the QScintilla Qsci header " + "file directory is DIR [default: QT_INSTALL_HEADERS]") + + optparser.add_option('--qsci-libdir', '-o', dest='qsci_lib_dir', + type='string', default=None, action='callback', + callback=optparser_store_abspath_dir, metavar="DIR", + help="the directory containing the QScintilla library is DIR " + "[default: QT_INSTALL_LIBS]") + + optparser.add_option('--no-dll', '-s', dest='qsci_is_dll', + default=None, action='store_false', + help="QScintilla is a static library and not a Windows DLL") + + optparser.add_option('--qsci-sipdir', '-v', dest='qsci_sip_dir', + type='string', default=None, action='callback', + callback=optparser_store_abspath_dir, metavar="DIR", + help="the QScintilla .sip files will be installed in DIR " + "[default: %s]" % target_configuration.pyqt_sip_dir) + + optparser.add_option("--no-sip-files", action="store_true", + default=False, dest="qsci_no_sip_files", + help="disable the installation of the .sip files " + "[default: enabled]") + + def apply_options(self, target_configuration, options): + """ Apply the module specific command line options to the target + configuration. target_configuration is the target configuration. + options are the parsed options. + """ + + if options.qsci_inc_dir is not None: + target_configuration.qsci_inc_dir = options.qsci_inc_dir + + if options.qsci_lib_dir is not None: + target_configuration.qsci_lib_dir = options.qsci_lib_dir + + if options.qsci_is_dll is not None: + target_configuration.qsci_is_dll = options.qsci_is_dll + + if options.qsci_sip_dir is not None: + target_configuration.qsci_sip_dir = options.qsci_sip_dir + else: + target_configuration.qsci_sip_dir = target_configuration.pyqt_sip_dir + + if options.qsci_no_sip_files: + target_configuration.qsci_sip_dir = '' + + def check_module(self, target_configuration): + """ Perform any module specific checks now that the target + configuration is complete. target_configuration is the target + configuration. + """ + + # Find the QScintilla header files. + inc_dir = target_configuration.qsci_inc_dir + if inc_dir is None: + inc_dir = target_configuration.qt_inc_dir + + sciglobal = os.path.join(inc_dir, 'Qsci', 'qsciglobal.h') + + if not os.access(sciglobal, os.F_OK): + error( + "Qsci/qsciglobal.h could not be found in %s. If " + "QScintilla is installed then use the --qsci-incdir " + "argument to explicitly specify the correct " + "directory." % inc_dir) + + # Get the QScintilla version string. + qsci_version = read_define(sciglobal, 'QSCINTILLA_VERSION_STR') + if qsci_version is None: + error( + "The QScintilla version number could not be determined by " + "reading %s." % sciglobal) + + lib_dir = target_configuration.qsci_lib_dir + if lib_dir is None: + lib_dir = target_configuration.qt_lib_dir + + if not glob.glob(os.path.join(lib_dir, '*qscintilla2*')): + error( + "The QScintilla library could not be found in %s. If " + "QScintilla is installed then use the --qsci-libdir " + "argument to explicitly specify the correct " + "directory." % lib_dir) + + # Because we include the Python bindings with the C++ code we can + # reasonably force the same version to be used and not bother about + # versioning in the .sip files. + if qsci_version != self.version: + error( + "QScintilla %s is being used but the Python bindings %s " + "are being built. Please use matching " + "versions." % (qsci_version, self.version)) + + target_configuration.qsci_version = qsci_version + + def inform_user(self, target_configuration): + """ Inform the user about module specific configuration information. + target_configuration is the target configuration. + """ + + inform("QScintilla %s is being used." % + target_configuration.qsci_version) + + if target_configuration.qsci_sip_dir != '': + inform("The QScintilla .sip files will be installed in %s." % + target_configuration.qsci_sip_dir) + + def pre_code_generation(self, target_config): + """ Perform any module specific initialisation prior to generating the + code. target_config is the target configuration. + """ + + # Nothing to do. + + def get_sip_flags(self, target_configuration): + """ Return the list of module-specific flags to pass to SIP. + target_configuration is the target configuration. + """ + + # Nothing to do. + return [] + + def get_sip_file(self, target_configuration): + """ Return the name of the module's .sip file. target_configuration is + the target configuration. + """ + + return 'sip/qscimod5.sip' if target_configuration.pyqt_package == 'PyQt5' else 'sip/qscimod4.sip' + + def get_sip_installs(self, target_configuration): + """ Return a tuple of the installation directory of the module's .sip + files and a sequence of the names of each of the .sip files relative to + the directory containing this configuration script. None is returned + if the module's .sip files are not to be installed. + target_configuration is the target configuration. + """ + + if target_configuration.qsci_sip_dir == '': + return None + + path = os.path.join(target_configuration.qsci_sip_dir, 'Qsci') + files = glob.glob('sip/*.sip') + + return path, files + + def get_qmake_configuration(self, target_configuration): + """ Return a dict of qmake configuration values for CONFIG, DEFINES, + INCLUDEPATH, LIBS and QT. If value names (i.e. dict keys) have either + 'Qt4' or 'Qt5' prefixes then they are specific to the corresponding + version of Qt. target_configuration is the target configuration. + """ + + qmake = {'CONFIG': 'qscintilla2'} + + if target_configuration.qsci_inc_dir is not None: + qmake['INCLUDEPATH'] = quote(target_configuration.qsci_inc_dir) + + if target_configuration.qsci_lib_dir is not None: + qmake['LIBS'] = '-L%s' % quote(target_configuration.qsci_lib_dir) + + if target_configuration.qsci_is_dll: + qmake['DEFINES'] = 'QSCINTILLA_DLL' + + return qmake + + def get_mac_wrapped_library_file(self, target_configuration): + """ Return the full pathname of the file that implements the library + being wrapped by the module as it would be called on OS/X so that the + module will reference it explicitly without DYLD_LIBRARY_PATH being + set. If it is None or an empty string then the default is used. + target_configuration is the target configuration. + """ + + lib_dir = target_configuration.qsci_lib_dir + if lib_dir is None: + lib_dir = target_configuration.qt_lib_dir + + return os.path.join(lib_dir, + 'libqscintilla2.%s.dylib' % QSCI_API_MAJOR) + + +############################################################################### +# You shouldn't need to modify anything below this line. +############################################################################### + + +def error(msg): + """ Display an error message and terminate. msg is the text of the error + message. + """ + + sys.stderr.write(_format("Error: " + msg) + "\n") + sys.exit(1) + + +def inform(msg): + """ Display an information message. msg is the text of the error message. + """ + + sys.stdout.write(_format(msg) + "\n") + + +def quote(path): + """ Return a path with quotes added if it contains spaces. path is the + path. + """ + + if ' ' in path: + path = '"%s"' % path + + return path + + +def optparser_store_abspath(option, opt_str, value, parser): + """ An optparser callback that saves an option as an absolute pathname. """ + + setattr(parser.values, option.dest, os.path.abspath(value)) + + +def optparser_store_abspath_dir(option, opt_str, value, parser): + """ An optparser callback that saves an option as the absolute pathname + of an existing directory. + """ + + if not os.path.isdir(value): + raise optparse.OptionValueError("'%s' is not a directory" % value) + + setattr(parser.values, option.dest, os.path.abspath(value)) + + +def optparser_store_abspath_exe(option, opt_str, value, parser): + """ An optparser callback that saves an option as the absolute pathname + of an existing executable. + """ + + if not os.access(value, os.X_OK): + raise optparse.OptionValueError("'%s' is not an executable" % value) + + setattr(parser.values, option.dest, os.path.abspath(value)) + + +def read_define(filename, define): + """ Read the value of a #define from a file. filename is the name of the + file. define is the name of the #define. None is returned if there was no + such #define. + """ + + f = open(filename) + + for l in f: + wl = l.split() + if len(wl) >= 3 and wl[0] == "#define" and wl[1] == define: + # Take account of embedded spaces. + value = ' '.join(wl[2:])[1:-1] + break + else: + value = None + + f.close() + + return value + + +def version_from_string(version_str): + """ Convert a version string of the form m, m.n or m.n.o to an encoded + version number (or None if it was an invalid format). version_str is the + version string. + """ + + parts = version_str.split('.') + if not isinstance(parts, list): + return None + + if len(parts) == 1: + parts.append('0') + + if len(parts) == 2: + parts.append('0') + + if len(parts) != 3: + return None + + version = 0 + + for part in parts: + try: + v = int(part) + except ValueError: + return None + + version = (version << 8) + v + + return version + + +def _format(msg, left_margin=0, right_margin=78): + """ Format a message by inserting line breaks at appropriate places. msg + is the text of the message. left_margin is the position of the left + margin. right_margin is the position of the right margin. Returns the + formatted message. + """ + + curs = left_margin + fmsg = " " * left_margin + + for w in msg.split(): + l = len(w) + if curs != left_margin and curs + l > right_margin: + fmsg = fmsg + "\n" + (" " * left_margin) + curs = left_margin + + if curs > left_margin: + fmsg = fmsg + " " + curs = curs + 1 + + fmsg = fmsg + w + curs = curs + l + + return fmsg + + +class _ConfigurationFileParser: + """ A parser for configuration files. """ + + def __init__(self, config_file): + """ Read and parse a configuration file. """ + + self._config = {} + self._extrapolating = [] + + cfg = open(config_file) + line_nr = 0 + last_name = None + + section = '' + section_config = {} + self._config[section] = section_config + + for l in cfg: + line_nr += 1 + + # Strip comments. + l = l.split('#')[0] + + # See if this might be part of a multi-line. + multiline = (last_name is not None and len(l) != 0 and l[0] == ' ') + + l = l.strip() + + if l == '': + last_name = None + continue + + # See if this is a new section. + if l[0] == '[' and l[-1] == ']': + section = l[1:-1].strip() + if section == '': + error( + "%s:%d: Empty section name." % ( + config_file, line_nr)) + + if section in self._config: + error( + "%s:%d: Section '%s' defined more than once." % ( + config_file, line_nr, section)) + + section_config = {} + self._config[section] = section_config + + last_name = None + continue + + parts = l.split('=', 1) + if len(parts) == 2: + name = parts[0].strip() + value = parts[1].strip() + elif multiline: + name = last_name + value = section_config[last_name] + value += ' ' + l + else: + name = value = '' + + if name == '' or value == '': + error("%s:%d: Invalid line." % (config_file, line_nr)) + + section_config[name] = value + last_name = name + + cfg.close() + + def sections(self): + """ Return the list of sections, excluding the default one. """ + + return [s for s in self._config.keys() if s != ''] + + def preset(self, name, value): + """ Add a preset value to the configuration. """ + + self._config[''][name] = value + + def get(self, section, name, default=None): + """ Get a configuration value while extrapolating. """ + + # Get the name from the section, or the default section. + value = self._config[section].get(name) + if value is None: + value = self._config[''].get(name) + if value is None: + if default is None: + error( + "Configuration file references non-existent name " + "'%s'." % name) + + return default + + # Handle any extrapolations. + parts = value.split('%(', 1) + while len(parts) == 2: + prefix, tail = parts + + parts = tail.split(')', 1) + if len(parts) != 2: + error( + "Configuration file contains unterminated " + "extrapolated name '%s'." % tail) + + xtra_name, suffix = parts + + if xtra_name in self._extrapolating: + error( + "Configuration file contains a recursive reference to " + "'%s'." % xtra_name) + + self._extrapolating.append(xtra_name) + xtra_value = self.get(section, xtra_name) + self._extrapolating.pop() + + value = prefix + xtra_value + suffix + + parts = value.split('%(', 1) + + return value + + def getboolean(self, section, name, default): + """ Get a boolean configuration value while extrapolating. """ + + value = self.get(section, name, default) + + # In case the default was returned. + if isinstance(value, bool): + return value + + if value in ('True', 'true', '1'): + return True + + if value in ('False', 'false', '0'): + return False + + error( + "Configuration file contains invalid boolean value for " + "'%s'." % name) + + def getlist(self, section, name, default): + """ Get a list configuration value while extrapolating. """ + + value = self.get(section, name, default) + + # In case the default was returned. + if isinstance(value, list): + return value + + return value.split() + + +class _HostPythonConfiguration: + """ A container for the host Python configuration. """ + + def __init__(self): + """ Initialise the configuration. """ + + self.platform = sys.platform + self.version = sys.hexversion >> 8 + + if hasattr(sysconfig, 'get_path'): + # The modern API. + self.inc_dir = sysconfig.get_path('include') + self.module_dir = sysconfig.get_path('platlib') + else: + # The legacy distutils API. + self.inc_dir = sysconfig.get_python_inc(plat_specific=1) + self.module_dir = sysconfig.get_python_lib(plat_specific=1) + + if sys.platform == 'win32': + self.data_dir = sys.prefix + self.lib_dir = sys.prefix + '\\libs' + else: + self.data_dir = sys.prefix + '/share' + self.lib_dir = sys.prefix + '/lib' + + +class _TargetQtConfiguration: + """ A container for the target Qt configuration. """ + + def __init__(self, qmake): + """ Initialise the configuration. qmake is the full pathname of the + qmake executable that will provide the configuration. + """ + + pipe = os.popen(' '.join([qmake, '-query'])) + + for l in pipe: + l = l.strip() + + tokens = l.split(':', 1) + if isinstance(tokens, list): + if len(tokens) != 2: + error("Unexpected output from qmake: '%s'\n" % l) + + name, value = tokens + else: + name = tokens + value = None + + name = name.replace('/', '_') + + setattr(self, name, value) + + pipe.close() + + +class _TargetConfiguration: + """ A container for the target configuration. """ + + def __init__(self, module_config): + """ Initialise the configuration with default values. module_config is + the module configuration. + """ + + # Values based on the host Python configuration. + py_config = _HostPythonConfiguration() + self.py_platform = py_config.platform + self.py_version = py_config.version + self.py_module_dir = py_config.module_dir + self.py_inc_dir = py_config.inc_dir + self.py_pylib_dir = py_config.lib_dir + self.py_sip_dir = os.path.join(py_config.data_dir, 'sip') + self.sip_inc_dir = py_config.inc_dir + + # The default qmake spec. + if self.py_platform == 'win32': + if self.py_version >= 0x030300: + self.qmake_spec = 'win32-msvc2010' + elif self.py_version >= 0x020600: + self.qmake_spec = 'win32-msvc2008' + elif self.py_version >= 0x020400: + self.qmake_spec = 'win32-msvc.net' + else: + self.qmake_spec = 'win32-msvc' + else: + # Use the Qt default. (We may update it for MacOS/X later.) + self.qmake_spec = '' + + # Remaining values. + self.pyqt_sip_flags = None + self.pyqt_version_str = '' + self.qmake = self._find_exe('qmake') + self.qt_version_str = '' + self.sip = self._find_exe('sip') + self.sip_version = None + self.sysroot = '' + + self.prot_is_public = (self.py_platform.startswith('linux') or self.py_platform == 'darwin') + + if module_config.pyqt5_is_supported and module_config.pyqt4_is_supported: + pyqt = 'PyQt5' if module_config.pyqt5_is_default else 'PyQt4' + elif module_config.pyqt5_is_supported and not module_config.pyqt4_is_supported: + pyqt = 'PyQt5' + elif not module_config.pyqt5_is_supported and module_config.pyqt4_is_supported: + pyqt = 'PyQt4' + else: + pyqt = None + + if pyqt is not None: + self.module_dir = os.path.join(py_config.module_dir, pyqt) + self.pyqt_sip_dir = os.path.join(self.py_sip_dir, pyqt) + else: + self.module_dir = py_config.module_dir + self.pyqt_sip_dir = None + + self.pyqt_package = pyqt + + module_config.init_target_configuration(self) + + def update_from_configuration_file(self, config_file): + """ Update the configuration with values from a file. config_file + is the name of the configuration file. + """ + + inform("Reading configuration from %s..." % config_file) + + parser = _ConfigurationFileParser(config_file) + + # Populate some presets from the command line. + parser.preset('py_major', str(self.py_version >> 16)) + parser.preset('py_minor', str((self.py_version >> 8) & 0xff)) + parser.preset('sysroot', self.sysroot) + + if self.pyqt_package is None: + section = '' + else: + # At the moment we only need to distinguish between PyQt4 and + # PyQt5. If that changes we may need a --target-pyqt-version + # command line option. + pyqt_version = 0x050000 if self.pyqt_package == 'PyQt5' else 0x040000 + + # Find the section corresponding to the version of PyQt. + section = None + latest_section = -1 + + for name in parser.sections(): + parts = name.split() + if len(parts) != 2 or parts[0] != 'PyQt': + continue + + section_pyqt_version = version_from_string(parts[1]) + if section_pyqt_version is None: + continue + + # Major versions must match. + if section_pyqt_version >> 16 != pyqt_version >> 16: + continue + + # It must be no later that the version of PyQt. + if section_pyqt_version > pyqt_version: + continue + + # Save it if it is the latest so far. + if section_pyqt_version > latest_section: + section = name + latest_section = section_pyqt_version + + if section is None: + error( + "%s does not define a section that covers PyQt " + "v%s." % (config_file, self.pyqt_version_str)) + + self.py_platform = parser.get(section, 'py_platform', self.py_platform) + self.py_inc_dir = parser.get(section, 'py_inc_dir', self.py_inc_dir) + self.py_pylib_dir = parser.get(section, 'py_pylib_dir', + self.py_pylib_dir) + + self.sip_inc_dir = self.py_inc_dir + + self.module_dir = parser.get(section, 'module_dir', self.module_dir) + + if self.pyqt_package is not None: + self.py_sip_dir = parser.get(section, 'py_sip_dir', + self.py_sip_dir) + + # Construct the SIP flags. + flags = [] + + flags.append('-t') + flags.append(self._get_platform_tag()) + + qt_version = version_from_string(self.qt_version_str) + if qt_version is None: + error("Unable to determine the version of Qt.") + + if self.pyqt_package == 'PyQt5': + if qt_version < 0x050000: + error("PyQt5 requires Qt v5.0 or later.") + + if qt_version > 0x060000: + qt_version = 0x060000 + + backstop = 'Qt_6_0_0' + else: + if qt_version > 0x050000: + qt_version = 0x050000 + + backstop = 'Qt_5_0_0' + + major = (qt_version >> 16) & 0xff + minor = (qt_version >> 8) & 0xff + patch = qt_version & 0xff + + flags.append('-t') + flags.append('Qt_%d_%d_%d' % (major, minor, patch)) + + flags.append('-B') + flags.append(backstop) + + for feat in parser.getlist(section, 'pyqt_disabled_features', []): + flags.append('-x') + flags.append(feat) + + self.pyqt_sip_flags = ' '.join(flags) + + def _get_platform_tag(self): + """ Return the tag for the target platform. """ + + # This replicates the logic in PyQt's configure scripts. + if self.py_platform == 'win32': + plattag = 'WS_WIN' + elif self.py_platform == 'darwin': + plattag = 'WS_MACX' + else: + plattag = 'WS_X11' + + return plattag + + def introspect_pyqt(self, module_config): + """ Introspect PyQt to determine the sip flags required. module_config + is the module configuration. + """ + + if self.pyqt_package == 'PyQt5': + try: + from PyQt5 import QtCore + except ImportError: + error( + "Unable to import PyQt5.QtCore. Make sure PyQt5 is " + "installed.") + else: + try: + from PyQt4 import QtCore + except ImportError: + error( + "Unable to import PyQt4.QtCore. Make sure PyQt4 is " + "installed.") + + self.pyqt_version_str = QtCore.PYQT_VERSION_STR + self.qt_version_str = QtCore.qVersion() + + # See if we have a PyQt that embeds its configuration. + try: + pyqt_config = QtCore.PYQT_CONFIGURATION + except AttributeError: + pyqt_config = None + + if pyqt_config is None: + if module_config.legacy_configuration_script: + # Fallback to the old configuration script. + config_script = sys.argv[0].replace('configure', 'configure-old') + args = [sys.executable, config_script] + sys.argv[1:] + + try: + os.execv(sys.executable, args) + except OSError: + pass + + error("Unable to execute '%s'" % config_script) + + error("PyQt v4.10 or later is required.") + + self.pyqt_sip_flags = pyqt_config['sip_flags'] + + def apply_sysroot(self): + """ Apply sysroot where necessary. """ + + if self.sysroot != '': + self.py_inc_dir = self._apply_sysroot(self.py_inc_dir) + self.py_pylib_dir = self._apply_sysroot(self.py_pylib_dir) + self.py_sip_dir = self._apply_sysroot(self.py_sip_dir) + self.module_dir = self._apply_sysroot(self.module_dir) + self.sip_inc_dir = self._apply_sysroot(self.sip_inc_dir) + + def _apply_sysroot(self, dir_name): + """ Replace any leading sys.prefix of a directory name with sysroot. + """ + + if dir_name.startswith(sys.prefix): + dir_name = self.sysroot + dir_name[len(sys.prefix):] + + return dir_name + + def get_qt_configuration(self, opts): + """ Get the Qt configuration that can be extracted from qmake. opts + are the command line options. + """ + + try: + qmake = opts.qmake + except AttributeError: + # Windows. + qmake = None + + if qmake is not None: + self.qmake = qmake + elif self.qmake is None: + # Under Windows qmake and the Qt DLLs must be on the system PATH + # otherwise the dynamic linker won't be able to resolve the + # symbols. On other systems we assume we can just run qmake by + # using its full pathname. + if sys.platform == 'win32': + error("Make sure you have a working Qt qmake on your PATH.") + else: + error( + "Make sure you have a working Qt qmake on your PATH " + "or use the --qmake argument to explicitly specify a " + "working Qt qmake.") + + # Query qmake. + qt_config = _TargetQtConfiguration(self.qmake) + + # The binary MacOS/X Qt installer defaults to XCode. If this is what + # we might have then use macx-clang (Qt v5) or macx-g++ (Qt v4). + if sys.platform == 'darwin': + try: + # Qt v5. + if qt_config.QMAKE_SPEC == 'macx-xcode': + # This will exist (and we can't check anyway). + self.qmake_spec = 'macx-clang' + else: + # No need to explicitly name the default. + self.qmake_spec = '' + except AttributeError: + # Qt v4. + self.qmake_spec = 'macx-g++' + + self.qt_version_str = getattr(qt_config, 'QT_VERSION', '') + self.api_dir = os.path.join(qt_config.QT_INSTALL_DATA, 'qsci') + self.qt_inc_dir = qt_config.QT_INSTALL_HEADERS + self.qt_lib_dir = qt_config.QT_INSTALL_LIBS + + if self.sysroot == '': + self.sysroot = getattr(qt_config, 'QT_SYSROOT', '') + + def apply_pre_options(self, opts): + """ Apply options from the command line that influence subsequent + configuration. opts are the command line options. + """ + + # Get the system root. + if opts.sysroot is not None: + self.sysroot = opts.sysroot + + if self.pyqt_package is not None: + try: + self.pyqt_package = opts.pyqt_package + except AttributeError: + # Multiple PyQt versions are not supported. + pass + + self.module_dir = os.path.join(self.py_module_dir, + self.pyqt_package) + + def apply_post_options(self, opts, module_config): + """ Apply options from the command line that override the previous + configuration. opts are the command line options. module_config is + the module configuration. + """ + + if self.pyqt_package is not None: + if module_config.user_pyqt_sip_flags_is_supported: + if opts.pyqt_sip_flags is not None: + self.pyqt_sip_flags = opts.pyqt_sip_flags + + if opts.pyqt_sip_dir is not None: + self.pyqt_sip_dir = opts.pyqt_sip_dir + else: + self.pyqt_sip_dir = os.path.join(self.py_sip_dir, + self.pyqt_package) + + if module_config.qscintilla_api_file: + if opts.apidir is not None: + self.api_dir = opts.apidir + + if opts.no_qsci_api: + self.api_dir = '' + + if opts.destdir is not None: + self.module_dir = opts.destdir + + if opts.qmakespec is not None: + self.qmake_spec = opts.qmakespec + + if module_config.protected_is_public_is_supported: + if opts.prot_is_public is not None: + self.prot_is_public = opts.prot_is_public + else: + self.prot_is_public = False + + if opts.sip_inc_dir is not None: + self.sip_inc_dir = opts.sip_inc_dir + + if opts.sip is not None: + self.sip = opts.sip + + module_config.apply_options(self, opts) + + @staticmethod + def _find_exe(exe): + """ Find an executable, ie. the first on the path. """ + + try: + path = os.environ['PATH'] + except KeyError: + path = '' + + if sys.platform == 'win32': + exe = exe + '.exe' + + for d in path.split(os.pathsep): + exe_path = os.path.join(d, exe) + + if os.access(exe_path, os.X_OK): + return exe_path + + return None + + +def _create_optparser(target_config, module_config): + """ Create the parser for the command line. target_config is the target + configuration containing default values. module_config is the module + configuration. + """ + + module_name = module_config.descriptive_name + + p = optparse.OptionParser(usage="python %prog [options]", + version=module_config.version) + + p.add_option('--spec', dest='qmakespec', default=None, action='store', + metavar="SPEC", + help="pass -spec SPEC to qmake [default: %s]" % "don't pass -spec" if target_config.qmake_spec == '' else target_config.qmake_spec) + + if module_config.qscintilla_api_file: + p.add_option('--apidir', '-a', dest='apidir', type='string', + default=None, action='callback', + callback=optparser_store_abspath, metavar="DIR", + help="the QScintilla API file will be installed in DIR " + "[default: QT_INSTALL_DATA/qsci]") + p.add_option('--no-qsci-api', dest='no_qsci_api', default=False, + action='store_true', + help="disable the installation of the QScintilla API file " + "[default: enabled]") + + if module_config.user_configuration_file_is_supported: + p.add_option('--configuration', dest='config_file', type='string', + default=None, action='callback', + callback=optparser_store_abspath, metavar="FILE", + help="FILE defines the target configuration") + + p.add_option('--destdir', '-d', dest='destdir', type='string', + default=None, action='callback', callback=optparser_store_abspath, + metavar="DIR", + help="install the %s module in DIR [default: %s]" % + (module_name, target_config.module_dir)) + + if module_config.protected_is_public_is_supported: + p.add_option('--protected-is-public', dest='prot_is_public', + default=None, action='store_true', + help="enable building with 'protected' redefined as 'public' " + "[default: %s]" % target_config.prot_is_public) + p.add_option('--protected-not-public', dest='prot_is_public', + action='store_false', + help="disable building with 'protected' redefined as 'public'") + + if target_config.pyqt_package is not None: + pyqt = target_config.pyqt_package + + if module_config.pyqt5_is_supported and module_config.pyqt4_is_supported: + p.add_option('--pyqt', dest='pyqt_package', type='choice', + choices=['PyQt4', 'PyQt5'], default=pyqt, + action='store', metavar="PyQtn", + help="configure for PyQt4 or PyQt5 [default: %s]" % pyqt) + + if module_config.user_pyqt_sip_flags_is_supported: + p.add_option('--pyqt-sip-flags', dest='pyqt_sip_flags', + default=None, action='store', metavar="FLAGS", + help="the sip flags used to build PyQt [default: query PyQt]") + + if sys.platform != 'win32': + p.add_option('--qmake', '-q', dest='qmake', type='string', + default=None, action='callback', + callback=optparser_store_abspath_exe, metavar="FILE", + help="the pathname of qmake is FILE [default: " + "%s]" % (target_config.qmake or "None")) + + p.add_option('--sip', dest='sip', type='string', default=None, + action='callback', callback=optparser_store_abspath_exe, + metavar="FILE", + help="the pathname of sip is FILE [default: " + "%s]" % (target_config.sip or "None")) + p.add_option('--sip-incdir', dest='sip_inc_dir', type='string', + default=None, action='callback', + callback=optparser_store_abspath_dir, metavar="DIR", + help="the directory containing the sip.h header file file is DIR " + "[default: %s]" % target_config.sip_inc_dir) + + if target_config.pyqt_package is not None: + p.add_option('--pyqt-sipdir', dest='pyqt_sip_dir', type='string', + default=None, action='callback', + callback=optparser_store_abspath_dir, metavar="DIR", + help="the directory containing the PyQt .sip files is DIR " + "[default: %s]" % target_config.pyqt_sip_dir) + + p.add_option('--concatenate', '-c', dest='concat', default=False, + action='store_true', + help="concatenate the C++ source files") + p.add_option('--concatenate-split', '-j', dest='split', type='int', + default=1, metavar="N", + help="split the concatenated C++ source files into N pieces " + "[default: 1]") + p.add_option('--static', '-k', dest='static', default=False, + action='store_true', + help="build the %s module as a static library" % module_name) + p.add_option("--sysroot", dest='sysroot', type='string', action='callback', + callback=optparser_store_abspath_dir, metavar="DIR", + help="DIR is the target system root directory") + p.add_option('--no-docstrings', dest='no_docstrings', default=False, + action='store_true', + help="disable the generation of docstrings") + p.add_option('--trace', '-r', dest='tracing', default=False, + action='store_true', + help="build the %s module with tracing enabled" % module_name) + p.add_option('--debug', '-u', default=False, action='store_true', + help="build the %s module with debugging symbols" % module_name) + p.add_option('--verbose', '-w', dest='verbose', default=False, + action='store_true', + help="enable verbose output during configuration") + p.add_option('--no-timestamp', '-T', dest='no_timestamp', default=False, + action='store_true', + help="suppress timestamps in the header comments of generated " + "code [default: include timestamps]") + + module_config.init_optparser(p, target_config) + + return p + + +def _inform_user(target_config, module_config): + """ Tell the user the values that are going to be used. target_config is + the target configuration. module_config is the module configuration. + """ + + module_name = module_config.descriptive_name + + inform("Configuring %s %s..." % (module_name, module_config.version)) + + module_config.inform_user(target_config) + + inform("The %s module will be installed in %s." % + (module_name, target_config.module_dir)) + + if target_config.pyqt_version_str != '': + inform("PyQt %s is being used." % target_config.pyqt_version_str) + else: + inform("%s is being used." % target_config.pyqt_package) + + if target_config.qt_version_str != '': + inform("Qt %s is being used." % target_config.qt_version_str) + + if target_config.sysroot != '': + inform("The system root directory is %s." % target_config.sysroot) + + inform("sip %s is being used." % target_config.sip_version) + inform("The sip executable is %s." % target_config.sip) + + if target_config.prot_is_public: + inform( + "The %s module is being built with 'protected' redefined as " + "'public'." % module_name) + + if module_config.qscintilla_api_file and target_config.api_dir != '': + inform("The QScintilla API file will be installed in %s." % + os.path.join(target_config.api_dir, 'api', 'python')) + + +def _generate_code(target_config, opts, module_config): + """ Generate the code for the QScintilla module. target_config is the + target configuration. opts are the command line options. module_config is + the module configuration. + """ + + inform( + "Generating the C++ source for the %s module..." % + module_config.name) + + # Build the SIP command line. + argv = [quote(target_config.sip)] + + # Add the module-specific flags. + argv.extend(module_config.get_sip_flags(target_config)) + + if target_config.pyqt_package is not None: + # Get the flags used for the main PyQt module. + argv.extend(target_config.pyqt_sip_flags.split()) + + # Add PyQt's .sip files to the search path. + argv.append('-I') + argv.append(target_config.pyqt_sip_dir) + + if module_config.qscintilla_api_file and target_config.api_dir != '': + # Generate the API file. + argv.append('-a') + argv.append(module_config.qscintilla_api_file + '.api') + + if target_config.prot_is_public: + argv.append('-P'); + + if opts.no_timestamp: + argv.append('-T') + + if not opts.no_docstrings: + argv.append('-o'); + + if opts.concat: + argv.append('-j') + argv.append(str(opts.split)) + + if opts.tracing: + argv.append('-r') + + argv.append('-c') + argv.append('.') + + argv.append(module_config.get_sip_file(target_config)) + + check_file = 'sipAPI%s.h' % module_config.name + _remove_file(check_file) + + _run_command(' '.join(argv), opts.verbose) + + if not os.access(check_file, os.F_OK): + error("Unable to create the C++ code.") + + # Generate the .pro file. + pro = _generate_pro(target_config, opts, module_config) + + # Generate the Makefile. + _run_qmake(target_config, opts.verbose, pro, module_config) + + +def _get_qt_qmake_config(qmake_config, qt_version): + """ Return a dict of qmake configuration values for a specific Qt version. + """ + + qt_qmake_config = {} + + for name, value in qmake_config.items(): + name_parts = name.split(':') + if len(name_parts) == 2 and name_parts[0] == qt_version: + qt_qmake_config[name_parts[1]] = value + + return qt_qmake_config + + +def _write_qt_qmake_config(qt_qmake_config, pro): + """ Write the qmake configuration values to a .pro file. """ + + for name in ('QT', 'CONFIG', 'DEFINES', 'INCLUDEPATH', 'LIBS'): + value = qt_qmake_config.get(name) + if value: + pro.write(' %s += %s\n' % (name, value)) + + +def _generate_pro(target_config, opts, module_config): + """ Generate the .pro file for the module and return its name. + target_config is the target configuration. opts are the command line + options. module_config is the module configuration. + """ + + inform("Generating the .pro file for the %s module..." % module_config.name) + + # Without the 'no_check_exist' magic the target.files must exist when qmake + # is run otherwise the install and uninstall targets are not generated. + + qmake_config = module_config.get_qmake_configuration(target_config) + + pro_name = module_config.name + '.pro' + + pro = open(pro_name, 'w') + + pro.write('TEMPLATE = lib\n') + + qt = qmake_config.get('QT') + if qt: + pro.write('QT += %s\n' % qt) + + pro.write('CONFIG += %s\n' % ('debug' if opts.debug else 'release')) + pro.write('CONFIG += %s\n' % ('staticlib' if opts.static else 'plugin')) + + config = qmake_config.get('CONFIG') + if config: + pro.write('CONFIG += %s\n' % config) + + # Work around QTBUG-39300. + pro.write('CONFIG -= android_install\n') + + qt5_qmake_config = _get_qt_qmake_config(qmake_config, 'Qt5') + qt4_qmake_config = _get_qt_qmake_config(qmake_config, 'Qt4') + + if qt5_qmake_config or qt4_qmake_config: + pro.write(''' +greaterThan(QT_MAJOR_VERSION, 4) { +''') + + if qt5_qmake_config: + _write_qt_qmake_config(qt5_qmake_config, pro) + + if qt4_qmake_config: + pro.write('} else {\n') + _write_qt_qmake_config(qt4_qmake_config, pro) + + pro.write('}\n') + + mname = module_config.name + + if not opts.static: + pro.write(''' +win32 { + PY_MODULE = %s.pyd + target.files = %s.pyd + LIBS += -L%s +} else { + PY_MODULE = %s.so + target.files = %s.so +} + +target.CONFIG = no_check_exist +''' % (mname, mname, quote(target_config.py_pylib_dir), mname, mname)) + + pro.write(''' +target.path = %s +INSTALLS += target +''' % quote(target_config.module_dir)) + + if module_config.qscintilla_api_file and target_config.api_dir != '': + pro.write(''' +api.path = %s/api/python +api.files = %s.api +INSTALLS += api +''' % (target_config.api_dir, module_config.qscintilla_api_file)) + + sip_installs = module_config.get_sip_installs(target_config) + if sip_installs is not None: + path, files = sip_installs + + pro.write(''' +sip.path = %s +sip.files =''' % quote(path)) + + for f in files: + pro.write(' \\\n %s' % f) + + pro.write(''' +INSTALLS += sip +''') + + pro.write('\n') + + # These optimisations could apply to other platforms. + if module_config.no_exceptions: + if target_config.py_platform.startswith('linux') or target_config.py_platform == 'darwin': + pro.write('QMAKE_CXXFLAGS += -fno-exceptions\n') + + if target_config.py_platform.startswith('linux') and not opts.static: + if target_config.py_version >= 0x030000: + entry_point = 'PyInit_%s' % mname + else: + entry_point = 'init%s' % mname + + exp = open('%s.exp' % mname, 'wt') + exp.write('{ global: %s; local: *; };' % entry_point) + exp.close() + + pro.write('QMAKE_LFLAGS += -Wl,--version-script=%s.exp\n' % mname) + + if target_config.prot_is_public: + pro.write('DEFINES += SIP_PROTECTED_IS_PUBLIC protected=public\n') + + defines = qmake_config.get('DEFINES') + if defines: + pro.write('DEFINES += %s\n' % defines) + + includepath = qmake_config.get('INCLUDEPATH') + if includepath: + pro.write('INCLUDEPATH += %s\n' % includepath) + + # Make sure the SIP include directory is searched before the Python include + # directory if they are different. + pro.write('INCLUDEPATH += %s\n' % quote(target_config.sip_inc_dir)) + if target_config.py_inc_dir != target_config.sip_inc_dir: + pro.write('INCLUDEPATH += %s\n' % quote(target_config.py_inc_dir)) + + libs = qmake_config.get('LIBS') + if libs: + pro.write('LIBS += %s\n' % libs) + + if not opts.static: + pro.write(''' +win32 { + QMAKE_POST_LINK = $(COPY_FILE) $(DESTDIR_TARGET) $$PY_MODULE +} else { + QMAKE_POST_LINK = $(COPY_FILE) $(TARGET) $$PY_MODULE +} + +macx { + QMAKE_LFLAGS += "-undefined dynamic_lookup" + greaterThan(QT_MAJOR_VERSION, 4) { + QMAKE_LFLAGS += "-install_name $$absolute_path($$PY_MODULE, $$target.path)" + } +''') + + dylib = module_config.get_mac_wrapped_library_file(target_config) + + if dylib: + pro.write(''' + QMAKE_POST_LINK = $$QMAKE_POST_LINK$$escape_expand(\\\\n\\\\t)$$quote(install_name_tool -change %s %s $$PY_MODULE) +''' % (os.path.basename(dylib), dylib)) + + pro.write('}\n') + + pro.write('\n') + pro.write('TARGET = %s\n' % mname) + pro.write('HEADERS = sipAPI%s.h\n' % mname) + + pro.write('SOURCES =') + for s in glob.glob('*.cpp'): + pro.write(' \\\n %s' % s) + pro.write('\n') + + pro.close() + + return pro_name + + +def _run_qmake(target_config, verbose, pro_name, module_config): + """ Run qmake against a .pro file. target_config is the target + configuration. verbose is set if the output is to be displayed. pro_name + is the name of the .pro file. module_config is the module configuration. + """ + + inform("Creating the Makefile for the %s module..." % module_config.name) + + # qmake doesn't behave consistently if it is not run from the directory + # containing the .pro file - so make sure it is. + pro_dir, pro_file = os.path.split(pro_name) + if pro_dir != '': + cwd = os.getcwd() + os.chdir(pro_dir) + else: + cwd = None + + mf = 'Makefile' + + _remove_file(mf) + + args = [quote(target_config.qmake)] + + if target_config.qmake_spec != '': + args.append('-spec') + args.append(target_config.qmake_spec) + + args.append(pro_file) + + _run_command(' '.join(args), verbose) + + if not os.access(mf, os.F_OK): + error( + "%s failed to create a Makefile from %s." % + (target_config.qmake, pro_name)) + + # Restore the current directory. + if cwd is not None: + os.chdir(cwd) + + +def _run_command(cmd, verbose): + """ Run a command and display the output if requested. cmd is the command + to run. verbose is set if the output is to be displayed. + """ + + if verbose: + sys.stdout.write(cmd + "\n") + + fout = _get_command_output(cmd) + + # Read stdout and stderr until there is no more output. + lout = fout.readline() + while lout: + if verbose: + if sys.hexversion >= 0x03000000: + sys.stdout.write(str(lout, encoding=sys.stdout.encoding)) + else: + sys.stdout.write(lout) + + lout = fout.readline() + + fout.close() + + try: + os.wait() + except: + pass + + +def _get_command_output(cmd): + """ Return a pipe from which a command's output can be read. cmd is the + command. + """ + + try: + import subprocess + except ImportError: + _, sout = os.popen4(cmd) + + return sout + + p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, + stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + + return p.stdout + + +def _remove_file(fname): + """ Remove a file which may or may not exist. fname is the name of the + file. + """ + + try: + os.remove(fname) + except OSError: + pass + + +def _check_sip(target_config, module_config): + """ Check that the version of sip is good enough. target_config is the + target configuration. module_config is the module configuration. + """ + + if target_config.sip is None: + error( + "Make sure you have a working sip on your PATH or use the " + "--sip argument to explicitly specify a working sip.") + + pipe = os.popen(' '.join([target_config.sip, '-V'])) + + for l in pipe: + version_str = l.strip() + break + else: + error("'%s -V' did not generate any output." % target_config.sip) + + pipe.close() + + if 'snapshot' not in version_str and 'preview' not in version_str: + version = version_from_string(version_str) + if version is None: + error( + "'%s -V' generated unexpected output: '%s'." % ( + target_config.sip, version_str)) + + min_sip_version = module_config.minimum_sip_version + if min_sip_version: + min_version = version_from_string(min_sip_version) + if version < min_version: + error( + "This version of %s requires sip %s or later." % + (module_config.descriptive_name, + min_sip_version)) + + target_config.sip_version = version_str + + +def _main(argv, module_config): + """ Create the configuration module module. argv is the list of command + line arguments. module_config is the module configuration. + """ + + # Create the default target configuration. + target_config = _TargetConfiguration(module_config) + + # Parse the command line. + p = _create_optparser(target_config, module_config) + opts, args = p.parse_args() + + if args: + p.print_help() + sys.exit(2) + + target_config.apply_pre_options(opts) + + # Query qmake for the basic configuration information. + target_config.get_qt_configuration(opts) + + # Update the target configuration. + if module_config.user_configuration_file_is_supported: + config_file = opts.config_file + else: + config_file = None + + if config_file is not None: + target_config.update_from_configuration_file(config_file) + else: + target_config.apply_sysroot() + + target_config.apply_post_options(opts, module_config) + + if target_config.pyqt_package is not None: + if target_config.pyqt_sip_flags is None: + target_config.introspect_pyqt(module_config) + + # Check SIP is new enough. + _check_sip(target_config, module_config) + + # Perform any module specific checks now that all other information has + # been captured. + module_config.check_module(target_config) + + # Tell the user what's been found. + _inform_user(target_config, module_config) + + # Allow for module specific hacks. + module_config.pre_code_generation(target_config) + + # Generate the code. + _generate_code(target_config, opts, module_config) + + +############################################################################### +# The script starts here. +############################################################################### + +if __name__ == '__main__': + module_config = ModuleConfiguration() + + try: + _main(sys.argv, module_config) + except SystemExit: + raise + except: + if module_config.support_email_address: + sys.stderr.write( +"""An internal error occured. Please report all the output from the program, +including the following traceback, to %s. +""" % module_config.support_email_address) + + raise diff --git a/Python/sip/qsciabstractapis.sip b/Python/sip/qsciabstractapis.sip new file mode 100644 index 0000000..d5f8a42 --- /dev/null +++ b/Python/sip/qsciabstractapis.sip @@ -0,0 +1,59 @@ +// This is the SIP interface definition for QsciAbstractAPIs. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciAbstractAPIs : QObject +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciAbstractAPIs(QsciLexer *lexer /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciAbstractAPIs(QsciLexer *lexer /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciAbstractAPIs(); + + QsciLexer *lexer() const; + + virtual void updateAutoCompletionList(const QStringList &context, + QStringList &list) = 0; + virtual void autoCompletionSelected(const QString &selection); + +%If (Qsci_Qt4) + virtual QStringList callTips(const QStringList &context, int commas, + QsciScintilla::CallTipsStyle style, QList &shifts) = 0; +%End +%If (!Qsci_Qt4) + virtual QStringList callTips(const QStringList &context, int commas, + QsciScintilla::CallTipsStyle style, QValueList &shifts) = 0; +%End + +private: + QsciAbstractAPIs(const QsciAbstractAPIs &); +}; diff --git a/Python/sip/qsciapis.sip b/Python/sip/qsciapis.sip new file mode 100644 index 0000000..a4662b2 --- /dev/null +++ b/Python/sip/qsciapis.sip @@ -0,0 +1,75 @@ +// This is the SIP interface definition for QsciAPIs. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciAPIs : QsciAbstractAPIs +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciAPIs(QsciLexer *lexer /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciAPIs(QsciLexer *lexer /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciAPIs(); + + void add(const QString &entry); + void clear(); + bool load(const QString &fname); + void remove(const QString &entry); + void prepare(); + void cancelPreparation(); + QString defaultPreparedName() const; + bool isPrepared(const QString &filename = QString()) const; + bool loadPrepared(const QString &filename = QString()); + bool savePrepared(const QString &filename = QString()) const; + virtual bool event(QEvent *e); + QStringList installedAPIFiles() const; + + virtual void updateAutoCompletionList(const QStringList &context, + QStringList &list); + virtual void autoCompletionSelected(const QString &selection); + +%If (Qsci_Qt4) + virtual QStringList callTips(const QStringList &context, int commas, + QsciScintilla::CallTipsStyle style, QList &shifts); +%End +%If (!Qsci_Qt4) + virtual QStringList callTips(const QStringList &context, int commas, + QsciScintilla::CallTipsStyle style, QValueList &shifts); +%End + +signals: + void apiPreparationCancelled(); + void apiPreparationStarted(); + void apiPreparationFinished(); + +private: + QsciAPIs(const QsciAPIs &); +}; diff --git a/Python/sip/qscicommand.sip b/Python/sip/qscicommand.sip new file mode 100644 index 0000000..9d4fca2 --- /dev/null +++ b/Python/sip/qscicommand.sip @@ -0,0 +1,147 @@ +// This is the SIP interface definition for QsciCommand. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciCommand +{ +%TypeHeaderCode +#include +%End + +public: + enum Command { + LineDown, + LineDownExtend, + LineDownRectExtend, + LineScrollDown, + LineUp, + LineUpExtend, + LineUpRectExtend, + LineScrollUp, + ScrollToStart, + ScrollToEnd, + VerticalCentreCaret, + ParaDown, + ParaDownExtend, + ParaUp, + ParaUpExtend, + CharLeft, + CharLeftExtend, + CharLeftRectExtend, + CharRight, + CharRightExtend, + CharRightRectExtend, + WordLeft, + WordLeftExtend, + WordRight, + WordRightExtend, + WordLeftEnd, + WordLeftEndExtend, + WordRightEnd, + WordRightEndExtend, + WordPartLeft, + WordPartLeftExtend, + WordPartRight, + WordPartRightExtend, + Home, + HomeExtend, + HomeRectExtend, + HomeDisplay, + HomeDisplayExtend, + HomeWrap, + HomeWrapExtend, + VCHome, + VCHomeExtend, + VCHomeRectExtend, + VCHomeWrap, + VCHomeWrapExtend, + LineEnd, + LineEndExtend, + LineEndRectExtend, + LineEndDisplay, + LineEndDisplayExtend, + LineEndWrap, + LineEndWrapExtend, + DocumentStart, + DocumentStartExtend, + DocumentEnd, + DocumentEndExtend, + PageUp, + PageUpExtend, + PageUpRectExtend, + PageDown, + PageDownExtend, + PageDownRectExtend, + StutteredPageUp, + StutteredPageUpExtend, + StutteredPageDown, + StutteredPageDownExtend, + Delete, + DeleteBack, + DeleteBackNotLine, + DeleteWordLeft, + DeleteWordRight, + DeleteWordRightEnd, + DeleteLineLeft, + DeleteLineRight, + LineDelete, + LineCut, + LineCopy, + LineTranspose, + LineDuplicate, + SelectAll, + MoveSelectedLinesUp, + MoveSelectedLinesDown, + SelectionDuplicate, + SelectionLowerCase, + SelectionUpperCase, + SelectionCut, + SelectionCopy, + Paste, + EditToggleOvertype, + Newline, + Formfeed, + Tab, + Backtab, + Cancel, + Undo, + Redo, + ZoomIn, + ZoomOut, + }; + + Command command() const; + void execute(); + void setKey(int key); + void setAlternateKey(int altkey); + int key() const; + int alternateKey() const; + static bool validKey(int key); + QString description() const; + +private: + QsciCommand(QsciScintilla *qs, Command cmd, int key, int altkey, + const char *desc); + QsciCommand(const QsciCommand &); +}; diff --git a/Python/sip/qscicommandset.sip b/Python/sip/qscicommandset.sip new file mode 100644 index 0000000..ac0a447 --- /dev/null +++ b/Python/sip/qscicommandset.sip @@ -0,0 +1,54 @@ +// This is the SIP interface definition for the QsciCommandSet. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciCommandSet +{ +%TypeHeaderCode +#include +%End + +public: + bool readSettings(QSettings &qs, const char *prefix = "/Scintilla"); + bool writeSettings(QSettings &qs, const char *prefix = "/Scintilla"); + +%If (Qsci_Qt4) + QList &commands(); +%End +%If (!Qsci_Qt4) + QPtrList &commands(); +%End + + void clearKeys(); + void clearAlternateKeys(); + + QsciCommand *boundTo(int key) const; + QsciCommand *find(QsciCommand::Command command) const; + +private: + QsciCommandSet(QsciScintilla *qs); + ~QsciCommandSet(); + + QsciCommandSet(const QsciCommandSet &); +}; diff --git a/Python/sip/qscidocument.sip b/Python/sip/qscidocument.sip new file mode 100644 index 0000000..02bfbfd --- /dev/null +++ b/Python/sip/qscidocument.sip @@ -0,0 +1,37 @@ +// This is the SIP interface definition for QsciDocument. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciDocument +{ +%TypeHeaderCode +#include +%End + +public: + QsciDocument(); + virtual ~QsciDocument(); + + QsciDocument(const QsciDocument &); +}; diff --git a/Python/sip/qscilexer.sip b/Python/sip/qscilexer.sip new file mode 100644 index 0000000..2106e52 --- /dev/null +++ b/Python/sip/qscilexer.sip @@ -0,0 +1,91 @@ +// This is the SIP interface definition for QsciLexer. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexer : QObject +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciLexer(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexer(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexer(); + + virtual const char *language() const = 0; + virtual const char *lexer() const; + virtual int lexerId() const; + QsciAbstractAPIs *apis() const; + int autoIndentStyle(); + virtual QColor color(int style) const; + virtual bool eolFill(int style) const; + virtual QFont font(int style) const; + virtual const char *keywords(int set) const; + virtual QString description(int style) const = 0; + virtual QColor paper(int style) const; + QColor defaultColor() const; + virtual QColor defaultColor(int style) const; + virtual bool defaultEolFill(int style) const; + QFont defaultFont() const; + virtual QFont defaultFont(int style) const; + QColor defaultPaper() const; + virtual QColor defaultPaper(int style) const; + QsciScintilla *editor() const; + virtual void refreshProperties(); + void setAPIs(QsciAbstractAPIs *apis); + void setDefaultColor(const QColor &c); + void setDefaultFont(const QFont &f); + void setDefaultPaper(const QColor &c); + virtual int styleBitsNeeded() const; + virtual const char *wordCharacters() const; + bool readSettings(QSettings &qs, const char *prefix = "/Scintilla"); + bool writeSettings(QSettings &qs, const char *prefix = "/Scintilla") const; + +public slots: + virtual void setAutoIndentStyle(int autoindentstyle); + virtual void setColor(const QColor &c, int style = -1); + virtual void setEolFill(bool eolfill, int style = -1); + virtual void setFont(const QFont &f, int style = -1); + virtual void setPaper(const QColor &c, int style = -1); + +signals: + void colorChanged(const QColor &c, int style); + void eolFillChanged(bool eolfilled, int style); + void fontChanged(const QFont &f, int style); + void paperChanged(const QColor &c, int style); + void propertyChanged(const char *prop, const char *val); + +protected: + virtual bool readProperties(QSettings &qs, const QString &prefix); + virtual bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexer(const QsciLexer &); +}; diff --git a/Python/sip/qscilexeravs.sip b/Python/sip/qscilexeravs.sip new file mode 100644 index 0000000..4592c22 --- /dev/null +++ b/Python/sip/qscilexeravs.sip @@ -0,0 +1,82 @@ +// This is the SIP interface definition for QsciLexerAVS. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerAVS : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + BlockComment, + NestedBlockComment, + LineComment, + Number, + Operator, + Identifier, + String, + TripleString, + Keyword, + Filter, + Plugin, + Function, + ClipProperty, + KeywordSet6 + }; + +%If (Qsci_Qt4) + QsciLexerAVS(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerAVS(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerAVS(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + QFont defaultFont(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + bool foldComments() const; + bool foldCompact() const; + +public slots: + virtual void setFoldComments(bool fold); + virtual void setFoldCompact(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerAVS(const QsciLexerAVS &); +}; diff --git a/Python/sip/qscilexerbash.sip b/Python/sip/qscilexerbash.sip new file mode 100644 index 0000000..e1a585b --- /dev/null +++ b/Python/sip/qscilexerbash.sip @@ -0,0 +1,83 @@ +// This is the SIP interface definition for QsciLexerBash. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerBash : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Error, + Comment, + Number, + Keyword, + DoubleQuotedString, + SingleQuotedString, + Operator, + Identifier, + Scalar, + ParameterExpansion, + Backticks, + HereDocumentDelimiter, + SingleQuotedHereDocument + }; + +%If (Qsci_Qt4) + QsciLexerBash(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerBash(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerBash(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + bool foldComments() const; + bool foldCompact() const; + +public slots: + virtual void setFoldComments(bool fold); + virtual void setFoldCompact(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerBash(const QsciLexerBash &); +}; diff --git a/Python/sip/qscilexerbatch.sip b/Python/sip/qscilexerbatch.sip new file mode 100644 index 0000000..2db27eb --- /dev/null +++ b/Python/sip/qscilexerbatch.sip @@ -0,0 +1,65 @@ +// This is the SIP interface definition for QsciLexerBatch. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerBatch : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + Keyword, + Label, + HideCommandChar, + ExternalCommand, + Variable, + Operator + }; + +%If (Qsci_Qt4) + QsciLexerBatch(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerBatch(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerBatch(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + +private: + QsciLexerBatch(const QsciLexerBatch &); +}; diff --git a/Python/sip/qscilexercmake.sip b/Python/sip/qscilexercmake.sip new file mode 100644 index 0000000..5c94ee8 --- /dev/null +++ b/Python/sip/qscilexercmake.sip @@ -0,0 +1,80 @@ +// This is the SIP interface definition for QsciLexerCMake. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerCMake : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + String, + StringLeftQuote, + StringRightQuote, + Function, + Variable, + Label, + KeywordSet3, + BlockWhile, + BlockForeach, + BlockIf, + BlockMacro, + StringVariable, + Number + }; + +%If (Qsci_Qt4) + QsciLexerCMake(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerCMake(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerCMake(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + + void refreshProperties(); + bool foldAtElse() const; + +public slots: + virtual void setFoldAtElse(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerCMake(const QsciLexerCMake &); +}; diff --git a/Python/sip/qscilexercoffeescript.sip b/Python/sip/qscilexercoffeescript.sip new file mode 100644 index 0000000..308e6df --- /dev/null +++ b/Python/sip/qscilexercoffeescript.sip @@ -0,0 +1,95 @@ +// This is the SIP interface definition for QsciLexerCoffeeScript. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerCoffeeScript : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + CommentLine, + CommentDoc, + Number, + Keyword, + DoubleQuotedString, + SingleQuotedString, + UUID, + PreProcessor, + Operator, + Identifier, + UnclosedString, + VerbatimString, + Regex, + CommentLineDoc, + KeywordSet2, + CommentDocKeyword, + CommentDocKeywordError, + GlobalClass, + CommentBlock, + BlockRegex, + BlockRegexComment, + }; + +%If (Qsci_Qt4) + QsciLexerCoffeeScript(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerCoffeeScript(QObject *parent /TransferThis/ = 0, + const char *name = 0); +%End + + virtual ~QsciLexerCoffeeScript(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + bool dollarsAllowed() const; + void setDollarsAllowed(bool allowed); + bool foldComments() const; + void setFoldComments(bool fold); + bool foldCompact() const; + void setFoldCompact(bool fold); + bool stylePreprocessor() const; + void setStylePreprocessor(bool style); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerCoffeeScript(const QsciLexerCoffeeScript &); +}; diff --git a/Python/sip/qscilexercpp.sip b/Python/sip/qscilexercpp.sip new file mode 100644 index 0000000..3b95833 --- /dev/null +++ b/Python/sip/qscilexercpp.sip @@ -0,0 +1,131 @@ +// This is the SIP interface definition for QsciLexerCPP. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerCPP : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + InactiveDefault, + Comment, + InactiveComment, + CommentLine, + InactiveCommentLine, + CommentDoc, + InactiveCommentDoc, + Number, + InactiveNumber, + Keyword, + InactiveKeyword, + DoubleQuotedString, + InactiveDoubleQuotedString, + SingleQuotedString, + InactiveSingleQuotedString, + UUID, + InactiveUUID, + PreProcessor, + InactivePreProcessor, + Operator, + InactiveOperator, + Identifier, + InactiveIdentifier, + UnclosedString, + InactiveUnclosedString, + VerbatimString, + InactiveVerbatimString, + Regex, + InactiveRegex, + CommentLineDoc, + InactiveCommentLineDoc, + KeywordSet2, + InactiveKeywordSet2, + CommentDocKeyword, + InactiveCommentDocKeyword, + CommentDocKeywordError, + InactiveCommentDocKeywordError, + GlobalClass, + InactiveGlobalClass, + RawString, + InactiveRawString, + TripleQuotedVerbatimString, + InactiveTripleQuotedVerbatimString, + HashQuotedString, + InactiveHashQuotedString, + PreProcessorComment, + InactivePreProcessorComment, + PreProcessorCommentLineDoc, + InactivePreProcessorCommentLineDoc, + }; + +%If (Qsci_Qt4) + QsciLexerCPP(QObject *parent /TransferThis/ = 0, + bool caseInsensitiveKeywords = false); +%End +%If (!Qsci_Qt4) + QsciLexerCPP(QObject *parent /TransferThis/ = 0, const char *name = 0, + bool caseInsensitiveKeywords = false); +%End + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + bool foldAtElse() const; + bool foldComments() const; + bool foldCompact() const; + bool foldPreprocessor() const; + bool stylePreprocessor() const; + void setDollarsAllowed(bool allowed); + bool dollarsAllowed() const; + void setHighlightTripleQuotedStrings(bool enable); + bool highlightTripleQuotedStrings() const; + void setHighlightHashQuotedStrings(bool enable); + bool highlightHashQuotedStrings() const; + +public slots: + virtual void setFoldAtElse(bool fold); + virtual void setFoldComments(bool fold); + virtual void setFoldCompact(bool fold); + virtual void setFoldPreprocessor(bool fold); + virtual void setStylePreprocessor(bool style); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerCPP(const QsciLexerCPP &); +}; diff --git a/Python/sip/qscilexercsharp.sip b/Python/sip/qscilexercsharp.sip new file mode 100644 index 0000000..4bef809 --- /dev/null +++ b/Python/sip/qscilexercsharp.sip @@ -0,0 +1,52 @@ +// This is the SIP interface definition for QsciLexerCSharp. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerCSharp : QsciLexerCPP +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciLexerCSharp(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerCSharp(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerCSharp(); + + const char *language() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + +private: + QsciLexerCSharp(const QsciLexerCSharp &); +}; diff --git a/Python/sip/qscilexercss.sip b/Python/sip/qscilexercss.sip new file mode 100644 index 0000000..8dd66e0 --- /dev/null +++ b/Python/sip/qscilexercss.sip @@ -0,0 +1,97 @@ +// This is the SIP interface definition for QsciLexerCSS. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerCSS : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Tag, + ClassSelector, + PseudoClass, + UnknownPseudoClass, + Operator, + CSS1Property, + UnknownProperty, + Value, + Comment, + IDSelector, + Important, + AtRule, + DoubleQuotedString, + SingleQuotedString, + CSS2Property, + Attribute, + CSS3Property, + PseudoElement, + ExtendedCSSProperty, + ExtendedPseudoClass, + ExtendedPseudoElement, + MediaRule, + Variable, + }; + +%If (Qsci_Qt4) + QsciLexerCSS(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerCSS(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerCSS(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + QFont defaultFont(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + bool foldComments() const; + bool foldCompact() const; + void setHSSLanguage(bool enable); + bool HSSLanguage() const; + void setLessLanguage(bool enable); + bool LessLanguage() const; + void setSCSSLanguage(bool enable); + bool SCSSLanguage() const; + +public slots: + virtual void setFoldComments(bool fold); + virtual void setFoldCompact(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerCSS(const QsciLexerCSS &); +}; diff --git a/Python/sip/qscilexercustom.sip b/Python/sip/qscilexercustom.sip new file mode 100644 index 0000000..dd8c5f7 --- /dev/null +++ b/Python/sip/qscilexercustom.sip @@ -0,0 +1,53 @@ +// This is the SIP interface definition for QsciLexerCustom. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerCustom : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciLexerCustom(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerCustom(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerCustom(); + + virtual void setEditor(QsciScintilla *editor); + virtual int styleBitsNeeded() const; + + void setStyling(int length, int style); + void setStyling(int length, const QsciStyle &style); + + void startStyling(int pos, int styleBits = 0); + virtual void styleText(int start, int end) = 0; + +private: + QsciLexerCustom(const QsciLexerCustom &); +}; diff --git a/Python/sip/qscilexerd.sip b/Python/sip/qscilexerd.sip new file mode 100644 index 0000000..7ea3bbe --- /dev/null +++ b/Python/sip/qscilexerd.sip @@ -0,0 +1,92 @@ +// This is the SIP interface definition for QsciLexerD. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerD : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + CommentLine, + CommentDoc, + CommentNested, + Number, + Keyword, + KeywordSecondary, + KeywordDoc, + Typedefs, + String, + UnclosedString, + Character, + Operator, + Identifier, + CommentLineDoc, + CommentDocKeyword, + CommentDocKeywordError, + BackquoteString, + RawString, + KeywordSet5, + KeywordSet6, + KeywordSet7, + }; + +%If (Qsci_Qt4) + QsciLexerD(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerD(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + bool foldAtElse() const; + bool foldComments() const; + bool foldCompact() const; + +public slots: + virtual void setFoldAtElse(bool fold); + virtual void setFoldComments(bool fold); + virtual void setFoldCompact(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerD(const QsciLexerD &); +}; diff --git a/Python/sip/qscilexerdiff.sip b/Python/sip/qscilexerdiff.sip new file mode 100644 index 0000000..76b6afb --- /dev/null +++ b/Python/sip/qscilexerdiff.sip @@ -0,0 +1,61 @@ +// This is the SIP interface definition for QsciLexerDiff. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerDiff : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + Command, + Header, + Position, + LineRemoved, + LineAdded, + LineChanged + }; + +%If (Qsci_Qt4) + QsciLexerDiff(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerDiff(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerDiff(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + QString description(int style) const; + const char *wordCharacters() const; + +private: + QsciLexerDiff(const QsciLexerDiff &); +}; diff --git a/Python/sip/qscilexerfortran.sip b/Python/sip/qscilexerfortran.sip new file mode 100644 index 0000000..aed7379 --- /dev/null +++ b/Python/sip/qscilexerfortran.sip @@ -0,0 +1,46 @@ +// This is the SIP interface definition for QsciLexerFortran. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerFortran : QsciLexerFortran77 +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciLexerFortran(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerFortran(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + const char *language() const; + const char *lexer() const; + const char *keywords(int set) const; + +private: + QsciLexerFortran(const QsciLexerFortran &); +}; diff --git a/Python/sip/qscilexerfortran77.sip b/Python/sip/qscilexerfortran77.sip new file mode 100644 index 0000000..09c4d37 --- /dev/null +++ b/Python/sip/qscilexerfortran77.sip @@ -0,0 +1,80 @@ +// This is the SIP interface definition for QsciLexerFortran77. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerFortran77 : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + Number, + SingleQuotedString, + DoubleQuotedString, + UnclosedString, + Operator, + Identifier, + Keyword, + IntrinsicFunction, + ExtendedFunction, + PreProcessor, + DottedOperator, + Label, + Continuation, + }; + +%If (Qsci_Qt4) + QsciLexerFortran77(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerFortran77(QObject *parent /TransferThis/ = 0, + const char *name = 0); +%End + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + + void refreshProperties(); + bool foldCompact() const; + +public slots: + virtual void setFoldCompact(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerFortran77(const QsciLexerFortran77 &); +}; diff --git a/Python/sip/qscilexerhtml.sip b/Python/sip/qscilexerhtml.sip new file mode 100644 index 0000000..5543b82 --- /dev/null +++ b/Python/sip/qscilexerhtml.sip @@ -0,0 +1,189 @@ +// This is the SIP interface definition for QsciLexerHTML. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerHTML : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Tag, + UnknownTag, + Attribute, + UnknownAttribute, + HTMLNumber, + HTMLDoubleQuotedString, + HTMLSingleQuotedString, + OtherInTag, + HTMLComment, + Entity, + XMLTagEnd, + XMLStart, + XMLEnd, + Script, + ASPAtStart, + ASPStart, + CDATA, + PHPStart, + HTMLValue, + ASPXCComment, + SGMLDefault, + SGMLCommand, + SGMLParameter, + SGMLDoubleQuotedString, + SGMLSingleQuotedString, + SGMLError, + SGMLSpecial, + SGMLEntity, + SGMLComment, + SGMLParameterComment, + SGMLBlockDefault, + JavaScriptStart, + JavaScriptDefault, + JavaScriptComment, + JavaScriptCommentLine, + JavaScriptCommentDoc, + JavaScriptNumber, + JavaScriptWord, + JavaScriptKeyword, + JavaScriptDoubleQuotedString, + JavaScriptSingleQuotedString, + JavaScriptSymbol, + JavaScriptUnclosedString, + JavaScriptRegex, + ASPJavaScriptStart, + ASPJavaScriptDefault, + ASPJavaScriptComment, + ASPJavaScriptCommentLine, + ASPJavaScriptCommentDoc, + ASPJavaScriptNumber, + ASPJavaScriptWord, + ASPJavaScriptKeyword, + ASPJavaScriptDoubleQuotedString, + ASPJavaScriptSingleQuotedString, + ASPJavaScriptSymbol, + ASPJavaScriptUnclosedString, + ASPJavaScriptRegex, + VBScriptStart, + VBScriptDefault, + VBScriptComment, + VBScriptNumber, + VBScriptKeyword, + VBScriptString, + VBScriptIdentifier, + VBScriptUnclosedString, + ASPVBScriptStart, + ASPVBScriptDefault, + ASPVBScriptComment, + ASPVBScriptNumber, + ASPVBScriptKeyword, + ASPVBScriptString, + ASPVBScriptIdentifier, + ASPVBScriptUnclosedString, + PythonStart, + PythonDefault, + PythonComment, + PythonNumber, + PythonDoubleQuotedString, + PythonSingleQuotedString, + PythonKeyword, + PythonTripleSingleQuotedString, + PythonTripleDoubleQuotedString, + PythonClassName, + PythonFunctionMethodName, + PythonOperator, + PythonIdentifier, + ASPPythonStart, + ASPPythonDefault, + ASPPythonComment, + ASPPythonNumber, + ASPPythonDoubleQuotedString, + ASPPythonSingleQuotedString, + ASPPythonKeyword, + ASPPythonTripleSingleQuotedString, + ASPPythonTripleDoubleQuotedString, + ASPPythonClassName, + ASPPythonFunctionMethodName, + ASPPythonOperator, + ASPPythonIdentifier, + PHPDefault, + PHPDoubleQuotedString, + PHPSingleQuotedString, + PHPKeyword, + PHPNumber, + PHPVariable, + PHPComment, + PHPCommentLine, + PHPDoubleQuotedVariable, + PHPOperator + }; + +%If (Qsci_Qt4) + QsciLexerHTML(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerHTML(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerHTML(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + bool caseSensitiveTags() const; + void setDjangoTemplates(bool enable); + bool djangoTemplates() const; + bool foldCompact() const; + bool foldPreprocessor() const; + void setFoldScriptComments(bool fold); + bool foldScriptComments() const; + void setFoldScriptHeredocs(bool fold); + bool foldScriptHeredocs() const; + void setMakoTemplates(bool enable); + bool makoTemplates() const; + +public slots: + virtual void setFoldCompact(bool fold); + virtual void setFoldPreprocessor(bool fold); + virtual void setCaseSensitiveTags(bool sens); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerHTML(const QsciLexerHTML &); +}; diff --git a/Python/sip/qscilexeridl.sip b/Python/sip/qscilexeridl.sip new file mode 100644 index 0000000..e1f5420 --- /dev/null +++ b/Python/sip/qscilexeridl.sip @@ -0,0 +1,49 @@ +// This is the SIP interface definition for QsciLexerIDL. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerIDL : QsciLexerCPP +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciLexerIDL(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerIDL(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerIDL(); + + const char *language() const; + QColor defaultColor(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + +private: + QsciLexerIDL(const QsciLexerIDL &); +}; diff --git a/Python/sip/qscilexerjava.sip b/Python/sip/qscilexerjava.sip new file mode 100644 index 0000000..bd93fda --- /dev/null +++ b/Python/sip/qscilexerjava.sip @@ -0,0 +1,47 @@ +// This is the SIP interface definition for QsciLexerJava. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerJava : QsciLexerCPP +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciLexerJava(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerJava(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerJava(); + + const char *language() const; + const char *keywords(int set) const; + +private: + QsciLexerJava(const QsciLexerJava &); +}; diff --git a/Python/sip/qscilexerjavascript.sip b/Python/sip/qscilexerjavascript.sip new file mode 100644 index 0000000..0511523 --- /dev/null +++ b/Python/sip/qscilexerjavascript.sip @@ -0,0 +1,53 @@ +// This is the SIP interface definition for QsciLexerJavaScript. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerJavaScript : QsciLexerCPP +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciLexerJavaScript(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerJavaScript(QObject *parent /TransferThis/ = 0, + const char *name = 0); +%End + + virtual ~QsciLexerJavaScript(); + + const char *language() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + +private: + QsciLexerJavaScript(const QsciLexerJavaScript &); +}; diff --git a/Python/sip/qscilexerlua.sip b/Python/sip/qscilexerlua.sip new file mode 100644 index 0000000..ea3e07f --- /dev/null +++ b/Python/sip/qscilexerlua.sip @@ -0,0 +1,86 @@ +// This is the SIP interface definition for QsciLexerLua. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerLua : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + LineComment, + Number, + Keyword, + String, + Character, + LiteralString, + Preprocessor, + Operator, + Identifier, + UnclosedString, + BasicFunctions, + StringTableMathsFunctions, + CoroutinesIOSystemFacilities, + KeywordSet5, + KeywordSet6, + KeywordSet7, + KeywordSet8, + Label, + }; + +%If (Qsci_Qt4) + QsciLexerLua(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerLua(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerLua(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + + void refreshProperties(); + bool foldCompact() const; + +public slots: + virtual void setFoldCompact(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerLua(const QsciLexerLua &); +}; diff --git a/Python/sip/qscilexermakefile.sip b/Python/sip/qscilexermakefile.sip new file mode 100644 index 0000000..2597e3f --- /dev/null +++ b/Python/sip/qscilexermakefile.sip @@ -0,0 +1,63 @@ +// This is the SIP interface definition for QsciLexerMakefile. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerMakefile : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + Preprocessor, + Variable, + Operator, + Target, + Error + }; + +%If (Qsci_Qt4) + QsciLexerMakefile(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerMakefile(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerMakefile(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + QString description(int style) const; + const char *wordCharacters() const; + +private: + QsciLexerMakefile(const QsciLexerMakefile &); +}; diff --git a/Python/sip/qscilexermatlab.sip b/Python/sip/qscilexermatlab.sip new file mode 100644 index 0000000..c6db252 --- /dev/null +++ b/Python/sip/qscilexermatlab.sip @@ -0,0 +1,63 @@ +// This is the SIP interface definition for QsciLexerMatlab. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerMatlab : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + Command, + Number, + Keyword, + SingleQuotedString, + Operator, + Identifier, + DoubleQuotedString + }; + +%If (Qsci_Qt4) + QsciLexerMatlab(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerMatlab(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerMatlab(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + QFont defaultFont(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + +private: + QsciLexerMatlab(const QsciLexerMatlab &); +}; diff --git a/Python/sip/qscilexeroctave.sip b/Python/sip/qscilexeroctave.sip new file mode 100644 index 0000000..4f63a4f --- /dev/null +++ b/Python/sip/qscilexeroctave.sip @@ -0,0 +1,48 @@ +// This is the SIP interface definition for QsciLexerOctave. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerOctave : QsciLexerMatlab +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciLexerOctave(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerOctave(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerOctave(); + + const char *language() const; + const char *lexer() const; + const char *keywords(int set) const; + +private: + QsciLexerOctave(const QsciLexerOctave &); +}; diff --git a/Python/sip/qscilexerpascal.sip b/Python/sip/qscilexerpascal.sip new file mode 100644 index 0000000..a1be6da --- /dev/null +++ b/Python/sip/qscilexerpascal.sip @@ -0,0 +1,86 @@ +// This is the SIP interface definition for QsciLexerPascal. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerPascal : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Identifier, + Comment, + CommentParenthesis, + CommentLine, + PreProcessor, + PreProcessorParenthesis, + Number, + HexNumber, + Keyword, + SingleQuotedString, + UnclosedString, + Character, + Operator, + Asm, + }; + +%If (Qsci_Qt4) + QsciLexerPascal(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerPascal(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + + void refreshProperties(); + bool foldComments() const; + bool foldCompact() const; + bool foldPreprocessor() const; + + void setSmartHighlighting(bool enabled); + bool smartHighlighting() const; + +public slots: + virtual void setFoldComments(bool fold); + virtual void setFoldCompact(bool fold); + virtual void setFoldPreprocessor(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerPascal(const QsciLexerPascal &); +}; diff --git a/Python/sip/qscilexerperl.sip b/Python/sip/qscilexerperl.sip new file mode 100644 index 0000000..0952bca --- /dev/null +++ b/Python/sip/qscilexerperl.sip @@ -0,0 +1,117 @@ +// This is the SIP interface definition for QsciLexerPerl. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerPerl : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Error, + Comment, + POD, + Number, + Keyword, + DoubleQuotedString, + SingleQuotedString, + Operator, + Identifier, + Scalar, + Array, + Hash, + SymbolTable, + Regex, + Substitution, + Backticks, + DataSection, + HereDocumentDelimiter, + SingleQuotedHereDocument, + DoubleQuotedHereDocument, + BacktickHereDocument, + QuotedStringQ, + QuotedStringQQ, + QuotedStringQX, + QuotedStringQR, + QuotedStringQW, + PODVerbatim, + SubroutinePrototype, + FormatIdentifier, + FormatBody, + DoubleQuotedStringVar, + Translation, + RegexVar, + SubstitutionVar, + BackticksVar, + DoubleQuotedHereDocumentVar, + BacktickHereDocumentVar, + QuotedStringQQVar, + QuotedStringQXVar, + QuotedStringQRVar, + }; + +%If (Qsci_Qt4) + QsciLexerPerl(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerPerl(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerPerl(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + bool foldComments() const; + bool foldCompact() const; + + void setFoldAtElse(bool fold); + bool foldAtElse() const; + void setFoldPackages(bool fold); + bool foldPackages() const; + void setFoldPODBlocks(bool fold); + bool foldPODBlocks() const; + +public slots: + virtual void setFoldComments(bool fold); + virtual void setFoldCompact(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerPerl(const QsciLexerPerl &); +}; diff --git a/Python/sip/qscilexerpo.sip b/Python/sip/qscilexerpo.sip new file mode 100644 index 0000000..0517828 --- /dev/null +++ b/Python/sip/qscilexerpo.sip @@ -0,0 +1,80 @@ +// This is the SIP interface definition for QsciLexerPO. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerPO : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + MessageId, + MessageIdText, + MessageString, + MessageStringText, + MessageContext, + MessageContextText, + Fuzzy, + ProgrammerComment, + Reference, + Flags, + MessageIdTextEOL, + MessageStringTextEOL, + MessageContextTextEOL + }; + +%If (Qsci_Qt4) + QsciLexerPO(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerPO(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerPO(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + QFont defaultFont(int style) const; + QString description(int style) const; + + void refreshProperties(); + bool foldComments() const; + bool foldCompact() const; + +public slots: + virtual void setFoldComments(bool fold); + virtual void setFoldCompact(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerPO(const QsciLexerPO &); +}; diff --git a/Python/sip/qscilexerpostscript.sip b/Python/sip/qscilexerpostscript.sip new file mode 100644 index 0000000..3998fe3 --- /dev/null +++ b/Python/sip/qscilexerpostscript.sip @@ -0,0 +1,87 @@ +// This is the SIP interface definition for QsciLexerPostScript. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerPostScript : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + DSCComment, + DSCCommentValue, + Number, + Name, + Keyword, + Literal, + ImmediateEvalLiteral, + ArrayParenthesis, + DictionaryParenthesis, + ProcedureParenthesis, + Text, + HexString, + Base85String, + BadStringCharacter + }; + +%If (Qsci_Qt4) + QsciLexerPostScript(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerPostScript(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerPostScript(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + + void refreshProperties(); + bool tokenize() const; + int level() const; + bool foldCompact() const; + bool foldAtElse() const; + +public slots: + virtual void setTokenize(bool tokenize); + virtual void setLevel(int level); + virtual void setFoldCompact(bool fold); + virtual void setFoldAtElse(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerPostScript(const QsciLexerPostScript &); +}; diff --git a/Python/sip/qscilexerpov.sip b/Python/sip/qscilexerpov.sip new file mode 100644 index 0000000..929401f --- /dev/null +++ b/Python/sip/qscilexerpov.sip @@ -0,0 +1,88 @@ +// This is the SIP interface definition for QsciLexerPOV. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerPOV : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + CommentLine, + Number, + Operator, + Identifier, + String, + UnclosedString, + Directive, + BadDirective, + ObjectsCSGAppearance, + TypesModifiersItems, + PredefinedIdentifiers, + PredefinedFunctions, + KeywordSet6, + KeywordSet7, + KeywordSet8 + }; + +%If (Qsci_Qt4) + QsciLexerPOV(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerPOV(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerPOV(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + bool foldComments() const; + bool foldCompact() const; + bool foldDirectives() const; + +public slots: + virtual void setFoldComments(bool fold); + virtual void setFoldCompact(bool fold); + virtual void setFoldDirectives(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerPOV(const QsciLexerPOV &); +}; diff --git a/Python/sip/qscilexerproperties.sip b/Python/sip/qscilexerproperties.sip new file mode 100644 index 0000000..4f9e616 --- /dev/null +++ b/Python/sip/qscilexerproperties.sip @@ -0,0 +1,75 @@ +// This is the SIP interface definition for QsciLexerProperties. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerProperties : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + Section, + Assignment, + DefaultValue, + Key + }; + +%If (Qsci_Qt4) + QsciLexerProperties(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerProperties(QObject *parent /TransferThis/ = 0, + const char *name = 0); +%End + + virtual ~QsciLexerProperties(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + bool foldCompact() const; + void setInitialSpaces(bool enable); + bool initialSpaces() const; + +public slots: + virtual void setFoldCompact(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerProperties(const QsciLexerProperties &); +}; diff --git a/Python/sip/qscilexerpython.sip b/Python/sip/qscilexerpython.sip new file mode 100644 index 0000000..d05c913 --- /dev/null +++ b/Python/sip/qscilexerpython.sip @@ -0,0 +1,106 @@ +// This is the SIP interface definition for QsciLexerPython. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerPython : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + Number, + DoubleQuotedString, + SingleQuotedString, + Keyword, + TripleSingleQuotedString, + TripleDoubleQuotedString, + ClassName, + FunctionMethodName, + Operator, + Identifier, + CommentBlock, + UnclosedString, + HighlightedIdentifier, + Decorator, + }; + + enum IndentationWarning { + NoWarning, + Inconsistent, + TabsAfterSpaces, + Spaces, + Tabs + }; + +%If (Qsci_Qt4) + QsciLexerPython(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerPython(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerPython(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + + void refreshProperties(); + bool foldComments() const; + void setFoldCompact(bool fold); + bool foldCompact() const; + bool foldQuotes() const; + QsciLexerPython::IndentationWarning indentationWarning() const; + void setHighlightSubidentifiers(bool enabled); + bool highlightSubidentifiers() const; + void setStringsOverNewlineAllowed(bool allowed); + bool stringsOverNewlineAllowed() const; + void setV2UnicodeAllowed(bool allowed); + bool v2UnicodeAllowed() const; + void setV3BinaryOctalAllowed(bool allowed); + bool v3BinaryOctalAllowed() const; + void setV3BytesAllowed(bool allowed); + bool v3BytesAllowed() const; + +public slots: + virtual void setFoldComments(bool fold); + virtual void setFoldQuotes(bool fold); + virtual void setIndentationWarning(QsciLexerPython::IndentationWarning warn); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerPython(const QsciLexerPython &); +}; diff --git a/Python/sip/qscilexerruby.sip b/Python/sip/qscilexerruby.sip new file mode 100644 index 0000000..c7a0c78 --- /dev/null +++ b/Python/sip/qscilexerruby.sip @@ -0,0 +1,97 @@ +// This is the SIP interface definition for QsciLexerRuby. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerRuby : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Error, + Comment, + POD, + Number, + Keyword, + DoubleQuotedString, + SingleQuotedString, + ClassName, + FunctionMethodName, + Operator, + Identifier, + Regex, + Global, + Symbol, + ModuleName, + InstanceVariable, + ClassVariable, + Backticks, + DataSection, + HereDocumentDelimiter, + HereDocument, + PercentStringq, + PercentStringQ, + PercentStringx, + PercentStringr, + PercentStringw, + DemotedKeyword, + Stdin, + Stdout, + Stderr + }; + +%If (Qsci_Qt4) + QsciLexerRuby(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerRuby(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerRuby(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int) const; + QString description(int style) const; + + void refreshProperties(); + void setFoldComments(bool fold); + bool foldComments() const; + void setFoldCompact(bool fold); + bool foldCompact() const; + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerRuby(const QsciLexerRuby &); +}; diff --git a/Python/sip/qscilexerspice.sip b/Python/sip/qscilexerspice.sip new file mode 100644 index 0000000..4f7802b --- /dev/null +++ b/Python/sip/qscilexerspice.sip @@ -0,0 +1,63 @@ +// This is the SIP interface definition for QsciLexerSpice. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerSpice : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Identifier, + Command, + Function, + Parameter, + Number, + Delimiter, + Value, + Comment + }; + +%If (Qsci_Qt4) + QsciLexerSpice(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerSpice(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerSpice(); + + const char *language() const; + const char *lexer() const; + const char *keywords(int set) const; + QColor defaultColor(int style) const; + QFont defaultFont(int style) const; + QString description(int style) const; + +private: + QsciLexerSpice(const QsciLexerSpice &); +}; diff --git a/Python/sip/qscilexersql.sip b/Python/sip/qscilexersql.sip new file mode 100644 index 0000000..032f515 --- /dev/null +++ b/Python/sip/qscilexersql.sip @@ -0,0 +1,101 @@ +// This is the SIP interface definition for QsciLexerSQL. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerSQL : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + CommentLine, + CommentDoc, + Number, + Keyword, + DoubleQuotedString, + SingleQuotedString, + PlusKeyword, + PlusPrompt, + Operator, + Identifier, + PlusComment, + CommentLineHash, + CommentDocKeyword, + CommentDocKeywordError, + KeywordSet5, + KeywordSet6, + KeywordSet7, + KeywordSet8, + QuotedIdentifier, + }; + +%If (Qsci_Qt4) + QsciLexerSQL(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerSQL(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerSQL(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + + void refreshProperties(); + bool backslashEscapes() const; + void setDottedWords(bool enable); + bool dottedWords() const; + void setFoldAtElse(bool fold); + bool foldAtElse() const; + bool foldComments() const; + bool foldCompact() const; + void setFoldOnlyBegin(bool fold); + bool foldOnlyBegin() const; + void setHashComments(bool enable); + bool hashComments() const; + void setQuotedIdentifiers(bool enable); + bool quotedIdentifiers() const; + +public slots: + virtual void setBackslashEscapes(bool enable); + virtual void setFoldComments(bool fold); + virtual void setFoldCompact(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerSQL(const QsciLexerSQL &); +}; diff --git a/Python/sip/qscilexertcl.sip b/Python/sip/qscilexertcl.sip new file mode 100644 index 0000000..5b6f4ab --- /dev/null +++ b/Python/sip/qscilexertcl.sip @@ -0,0 +1,86 @@ +// This is the SIP interface definition for QsciLexerTCL. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerTCL : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + CommentLine, + Number, + QuotedKeyword, + QuotedString, + Operator, + Identifier, + Substitution, + SubstitutionBrace, + Modifier, + ExpandKeyword, + TCLKeyword, + TkKeyword, + ITCLKeyword, + TkCommand, + KeywordSet6, + KeywordSet7, + KeywordSet8, + KeywordSet9, + CommentBox, + CommentBlock + }; + +%If (Qsci_Qt4) + QsciLexerTCL(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerTCL(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerTCL(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + + void refreshProperties(); + void setFoldComments(bool fold); + bool foldComments() const; + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerTCL(const QsciLexerTCL &); +}; diff --git a/Python/sip/qscilexertex.sip b/Python/sip/qscilexertex.sip new file mode 100644 index 0000000..47de84c --- /dev/null +++ b/Python/sip/qscilexertex.sip @@ -0,0 +1,74 @@ +// This is the SIP interface definition for QsciLexerTeX. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerTeX : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Special, + Group, + Symbol, + Command, + Text + }; + +%If (Qsci_Qt4) + QsciLexerTeX(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerTeX(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerTeX(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + void setFoldComments(bool fold); + bool foldComments() const; + void setFoldCompact(bool fold); + bool foldCompact() const; + void setProcessComments(bool enable); + bool processComments() const; + void setProcessIf(bool enable); + bool processIf() const; + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerTeX(const QsciLexerTeX &); +}; diff --git a/Python/sip/qscilexerverilog.sip b/Python/sip/qscilexerverilog.sip new file mode 100644 index 0000000..6024c2a --- /dev/null +++ b/Python/sip/qscilexerverilog.sip @@ -0,0 +1,90 @@ +// This is the SIP interface definition for QsciLexerVerilog. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerVerilog : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + CommentLine, + CommentBang, + Number, + Keyword, + String, + KeywordSet2, + SystemTask, + Preprocessor, + Operator, + Identifier, + UnclosedString, + UserKeywordSet, + }; + +%If (Qsci_Qt4) + QsciLexerVerilog(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerVerilog(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + const char *wordCharacters() const; + + void refreshProperties(); + + void setFoldAtElse(bool fold); + bool foldAtElse() const; + + void setFoldComments(bool fold); + bool foldComments() const; + + void setFoldCompact(bool fold); + bool foldCompact() const; + + void setFoldPreprocessor(bool fold); + bool foldPreprocessor() const; + + void setFoldAtModule(bool fold); + bool foldAtModule() const; + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerVerilog(const QsciLexerVerilog &); +}; diff --git a/Python/sip/qscilexervhdl.sip b/Python/sip/qscilexervhdl.sip new file mode 100644 index 0000000..e6b99d7 --- /dev/null +++ b/Python/sip/qscilexervhdl.sip @@ -0,0 +1,89 @@ +// This is the SIP interface definition for QsciLexerVHDL. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerVHDL : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + CommentLine, + Number, + String, + Operator, + Identifier, + UnclosedString, + Keyword, + StandardOperator, + Attribute, + StandardFunction, + StandardPackage, + StandardType, + KeywordSet7 + }; + +%If (Qsci_Qt4) + QsciLexerVHDL(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerVHDL(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerVHDL(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + + void refreshProperties(); + bool foldComments() const; + bool foldCompact() const; + bool foldAtElse() const; + bool foldAtBegin() const; + bool foldAtParenthesis() const; + +public slots: + virtual void setFoldComments(bool fold); + virtual void setFoldCompact(bool fold); + virtual void setFoldAtElse(bool fold); + virtual void setFoldAtBegin(bool fold); + virtual void setFoldAtParenthesis(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerVHDL(const QsciLexerVHDL &); +}; diff --git a/Python/sip/qscilexerxml.sip b/Python/sip/qscilexerxml.sip new file mode 100644 index 0000000..1d3a947 --- /dev/null +++ b/Python/sip/qscilexerxml.sip @@ -0,0 +1,60 @@ +// This is the SIP interface definition for QsciLexerXML. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerXML : QsciLexerHTML +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciLexerXML(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerXML(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerXML(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + + void refreshProperties(); + void setScriptsStyled(bool styled); + bool scriptsStyled() const; + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerXML(const QsciLexerXML &); +}; diff --git a/Python/sip/qscilexeryaml.sip b/Python/sip/qscilexeryaml.sip new file mode 100644 index 0000000..833a04f --- /dev/null +++ b/Python/sip/qscilexeryaml.sip @@ -0,0 +1,76 @@ +// This is the SIP interface definition for QsciLexerYAML. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciLexerYAML : QsciLexer +{ +%TypeHeaderCode +#include +%End + +public: + enum { + Default, + Comment, + Identifier, + Keyword, + Number, + Reference, + DocumentDelimiter, + TextBlockMarker, + SyntaxErrorMarker, + Operator + }; + +%If (Qsci_Qt4) + QsciLexerYAML(QObject *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciLexerYAML(QObject *parent /TransferThis/ = 0, const char *name = 0); +%End + + virtual ~QsciLexerYAML(); + + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + bool defaultEolFill(int style) const; + QFont defaultFont(int style) const; + QColor defaultPaper(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + + void refreshProperties(); + bool foldComments() const; + +public slots: + virtual void setFoldComments(bool fold); + +protected: + bool readProperties(QSettings &qs, const QString &prefix); + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + QsciLexerYAML(const QsciLexerYAML &); +}; diff --git a/Python/sip/qscimacro.sip b/Python/sip/qscimacro.sip new file mode 100644 index 0000000..025c393 --- /dev/null +++ b/Python/sip/qscimacro.sip @@ -0,0 +1,56 @@ +// This is the SIP interface definition for QsciMacro. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciMacro : QObject +{ +%TypeHeaderCode +#include +%End + +public: +%If (Qsci_Qt4) + QsciMacro(QsciScintilla *parent /TransferThis/); + QsciMacro(const QString &asc, QsciScintilla *parent /TransferThis/); +%End +%If (!Qsci_Qt4) + QsciMacro(QsciScintilla *parent /TransferThis/, const char *name = 0); + QsciMacro(const QString &asc, QsciScintilla *parent /TransferThis/, + const char *name = 0); +%End + + virtual ~QsciMacro(); + + void clear(); + bool load(const QString &asc); + QString save() const; + +public slots: + virtual void play(); + virtual void startRecording(); + virtual void endRecording(); + +private: + QsciMacro(const QsciMacro &); +}; diff --git a/Python/sip/qscimod3.sip b/Python/sip/qscimod3.sip new file mode 100644 index 0000000..d1ba8f7 --- /dev/null +++ b/Python/sip/qscimod3.sip @@ -0,0 +1,31 @@ +// This is the SIP interface definition for the qsci module of PyQt3. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +%Module qsci 0 + +%Import qt/qtmod.sip + +%Include qscimodcommon.sip +%Include qsciscintillabase3.sip diff --git a/Python/sip/qscimod4.sip b/Python/sip/qscimod4.sip new file mode 100644 index 0000000..96e1f8e --- /dev/null +++ b/Python/sip/qscimod4.sip @@ -0,0 +1,31 @@ +// This is the SIP interface definition for the Qsci module of PyQt4. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +%Module(name=PyQt4.Qsci, keyword_arguments="Optional") + +%Import QtGui/QtGuimod.sip + +%Include qscimodcommon.sip +%Include qsciscintillabase4.sip diff --git a/Python/sip/qscimod5.sip b/Python/sip/qscimod5.sip new file mode 100644 index 0000000..8ff78c0 --- /dev/null +++ b/Python/sip/qscimod5.sip @@ -0,0 +1,36 @@ +// This is the SIP interface definition for the Qsci module of PyQt5. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +%Module(name=PyQt5.Qsci, keyword_arguments="Optional") + +%Import QtGui/QtGuimod.sip +%Import QtWidgets/QtWidgetsmod.sip + +%Include qscimodcommon.sip +%Include qsciscintillabase4.sip + +%If (PyQt_Printer) +%Import QtPrintSupport/QtPrintSupportmod.sip +%End diff --git a/Python/sip/qscimodcommon.sip b/Python/sip/qscimodcommon.sip new file mode 100644 index 0000000..1984597 --- /dev/null +++ b/Python/sip/qscimodcommon.sip @@ -0,0 +1,106 @@ +// This is the SIP interface definition for the parts of the Qsci module common +// to the Qt v3 and v4 versions. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +%Feature Qsci_Qt4 + + +%Copying +Copyright (c) 2014 Riverbank Computing Limited + +This file is part of QScintilla. + +This file may be used under the terms of the GNU General Public +License versions 2.0 or 3.0 as published by the Free Software +Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +included in the packaging of this file. Alternatively you may (at +your option) use any later version of the GNU General Public +License if such license has been publicly approved by Riverbank +Computing Limited (or its successors, if any) and the KDE Free Qt +Foundation. In addition, as a special exception, Riverbank gives you +certain additional rights. These rights are described in the Riverbank +GPL Exception version 1.1, which can be found in the file +GPL_EXCEPTION.txt in this package. + +If you are unsure which license is appropriate for your use, please +contact the sales department at sales@riverbankcomputing.com. + +This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +%End + + +const int QSCINTILLA_VERSION; +const char *QSCINTILLA_VERSION_STR; + + +%Include qsciscintilla.sip +%Include qsciabstractapis.sip +%Include qsciapis.sip +%Include qscicommand.sip +%Include qscicommandset.sip +%Include qscidocument.sip +%Include qscilexer.sip +%Include qscilexeravs.sip +%Include qscilexerbash.sip +%Include qscilexerbatch.sip +%Include qscilexercmake.sip +%Include qscilexercoffeescript.sip +%Include qscilexercpp.sip +%Include qscilexercsharp.sip +%Include qscilexercss.sip +%Include qscilexercustom.sip +%Include qscilexerd.sip +%Include qscilexerdiff.sip +%Include qscilexerfortran.sip +%Include qscilexerfortran77.sip +%Include qscilexerhtml.sip +%Include qscilexeridl.sip +%Include qscilexerjava.sip +%Include qscilexerjavascript.sip +%Include qscilexerlua.sip +%Include qscilexermakefile.sip +%Include qscilexermatlab.sip +%Include qscilexeroctave.sip +%Include qscilexerpascal.sip +%Include qscilexerperl.sip +%Include qscilexerpostscript.sip +%Include qscilexerpo.sip +%Include qscilexerpov.sip +%Include qscilexerproperties.sip +%Include qscilexerpython.sip +%Include qscilexerruby.sip +%Include qscilexerspice.sip +%Include qscilexersql.sip +%Include qscilexertcl.sip +%Include qscilexertex.sip +%Include qscilexerverilog.sip +%Include qscilexervhdl.sip +%Include qscilexerxml.sip +%Include qscilexeryaml.sip +%Include qscimacro.sip +%Include qsciprinter.sip +%Include qscistyle.sip +%Include qscistyledtext.sip diff --git a/Python/sip/qsciprinter.sip b/Python/sip/qsciprinter.sip new file mode 100644 index 0000000..3f8e15c --- /dev/null +++ b/Python/sip/qsciprinter.sip @@ -0,0 +1,50 @@ +// This is the SIP interface definition for QsciPrinter. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +%If (PyQt_Printer) + +class QsciPrinter : QPrinter +{ +%TypeHeaderCode +#include +%End + +public: + QsciPrinter(QPrinter::PrinterMode mode = QPrinter::ScreenResolution); + virtual ~QsciPrinter(); + + virtual void formatPage(QPainter &painter, bool drawing, QRect &area, + int pagenr); + int magnification() const; + virtual void setMagnification(int magnification); + virtual int printRange(QsciScintillaBase *qsb, int from = -1, int to = -1); + QsciScintilla::WrapMode wrapMode() const; + virtual void setWrapMode(QsciScintilla::WrapMode); + +private: + QsciPrinter(const QsciPrinter &); +}; + +%End diff --git a/Python/sip/qsciscintilla.sip b/Python/sip/qsciscintilla.sip new file mode 100644 index 0000000..30db063 --- /dev/null +++ b/Python/sip/qsciscintilla.sip @@ -0,0 +1,564 @@ +// This is the SIP interface definition for QsciScintilla. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciScintilla : QsciScintillaBase +{ +%TypeHeaderCode +#include +%End + +public: + enum { + AiMaintain, + AiOpening, + AiClosing + }; + + enum AnnotationDisplay { + AnnotationHidden, + AnnotationStandard, + AnnotationBoxed + }; + + enum AutoCompletionSource { + AcsNone, + AcsAll, + AcsDocument, + AcsAPIs + }; + + enum AutoCompletionUseSingle { + AcusNever, + AcusExplicit, + AcusAlways + }; + + enum BraceMatch { + NoBraceMatch, + StrictBraceMatch, + SloppyBraceMatch + }; + + enum CallTipsPosition { + CallTipsBelowText, + CallTipsAboveText, + }; + + enum CallTipsStyle { + CallTipsNone, + CallTipsNoContext, + CallTipsNoAutoCompletionContext, + CallTipsContext + }; + + enum EdgeMode { + EdgeNone, + EdgeLine, + EdgeBackground + }; + + enum EolMode { + EolWindows, + EolUnix, + EolMac + }; + + enum FoldStyle { + NoFoldStyle, + PlainFoldStyle, + CircledFoldStyle, + BoxedFoldStyle, + CircledTreeFoldStyle, + BoxedTreeFoldStyle + }; + + enum IndicatorStyle { + PlainIndicator, + SquiggleIndicator, + TTIndicator, + DiagonalIndicator, + StrikeIndicator, + HiddenIndicator, + BoxIndicator, + RoundBoxIndicator, + StraightBoxIndicator, + DashesIndicator, + DotsIndicator, + SquiggleLowIndicator, + DotBoxIndicator, + SquigglePixmapIndicator, + }; + + enum { + MoNone, + MoSublineSelect, + }; + + enum MarginType { + SymbolMargin, + SymbolMarginDefaultForegroundColor, + SymbolMarginDefaultBackgroundColor, + NumberMargin, + TextMargin, + TextMarginRightJustified + }; + + enum MarkerSymbol { + Circle, + Rectangle, + RightTriangle, + SmallRectangle, + RightArrow, + Invisible, + DownTriangle, + Minus, + Plus, + VerticalLine, + BottomLeftCorner, + LeftSideSplitter, + BoxedPlus, + BoxedPlusConnected, + BoxedMinus, + BoxedMinusConnected, + RoundedBottomLeftCorner, + LeftSideRoundedSplitter, + CircledPlus, + CircledPlusConnected, + CircledMinus, + CircledMinusConnected, + Background, + ThreeDots, + ThreeRightArrows, + FullRectangle, + LeftRectangle, + Underline + }; + + enum WhitespaceVisibility { + WsInvisible, + WsVisible, + WsVisibleAfterIndent + }; + + enum WrapMode { + WrapNone, + WrapWord, + WrapCharacter, + }; + + enum WrapVisualFlag { + WrapFlagNone, + WrapFlagByText, + WrapFlagByBorder, + WrapFlagInMargin, + }; + + enum WrapIndentMode { + WrapIndentFixed, + WrapIndentSame, + WrapIndentIndented, + }; + +%If (Qsci_Qt4) + QsciScintilla(QWidget *parent /TransferThis/ = 0); +%End +%If (!Qsci_Qt4) + QsciScintilla(QWidget *parent /TransferThis/ = 0, const char *name = 0, + WFlags f = 0); +%End + + virtual ~QsciScintilla(); + + virtual QStringList apiContext(int pos, int &context_start, + int &last_word_start); + + void annotate(int line, const QString &text, int style); + void annotate(int line, const QString &text, const QsciStyle &style); + void annotate(int line, const QsciStyledText &text); +%If (Qsci_Qt4) + void annotate(int line, const QList &text); +%End +%If (!Qsci_Qt4) + void annotate(int line, const QValueList &text); +%End + QString annotation(int line) const; + AnnotationDisplay annotationDisplay() const; + void clearAnnotations(int line = -1); + + bool autoCompletionCaseSensitivity() const; + bool autoCompletionFillupsEnabled() const; + bool autoCompletionReplaceWord() const; + bool autoCompletionShowSingle() const; + AutoCompletionSource autoCompletionSource() const; + int autoCompletionThreshold() const; + AutoCompletionUseSingle autoCompletionUseSingle() const; + bool autoIndent() const; + + bool backspaceUnindents() const; + void beginUndoAction(); + BraceMatch braceMatching() const; + + CallTipsPosition callTipsPosition() const; + CallTipsStyle callTipsStyle() const; + int callTipsVisible() const; + void cancelList(); + bool caseSensitive() const; + void clearRegisteredImages(); + QColor color() const; +%If (Qsci_Qt4) + QList contractedFolds() const; +%End +%If (!Qsci_Qt4) + QValueList contractedFolds() const; +%End + void convertEols(EolMode mode); +%If (Qsci_Qt4) + QMenu *createStandardContextMenu() /Factory/; +%End + + QsciDocument document() const; + + void endUndoAction(); + QColor edgeColor() const; + int edgeColumn() const; + EdgeMode edgeMode() const; + EolMode eolMode() const; + bool eolVisibility() const; + + int extraAscent() const; + int extraDescent() const; + + virtual bool findFirst(const QString &expr, bool re, bool cs, bool wo, + bool wrap, bool forward = true, int line = -1, int index = -1, + bool show = true, bool posix = false); + virtual bool findFirstInSelection(const QString &expr, bool re, bool cs, + bool wo, bool forward = true, bool show = true, + bool posix = false); + virtual bool findNext(); + int firstVisibleLine() const; + FoldStyle folding() const; + + void getCursorPosition(int *line, int *index) const; + void getSelection(int *lineFrom, int *indexFrom, int *lineTo, + int *indexTo) const; + + bool hasSelectedText() const; + + int indentation(int line) const; + bool indentationGuides() const; + bool indentationsUseTabs() const; + int indentationWidth() const; + + void clearIndicatorRange(int lineFrom, int indexFrom, int lineTo, + int indexTo, int indicatorNumber); + void fillIndicatorRange(int lineFrom, int indexFrom, int lineTo, + int indexTo, int indicatorNumber); + int indicatorDefine(IndicatorStyle style, int indicatorNumber = -1); + bool indicatorDrawUnder(int indicatorNumber) const; + + bool isCallTipActive() const; + bool isListActive() const; + bool isModified() const; + bool isReadOnly() const; + bool isRedoAvailable() const; + bool isUndoAvailable() const; + bool isUtf8() const; + bool isWordCharacter(char ch) const; + + int lineAt(const QPoint &pos) const; + void lineIndexFromPosition(int position, int *line, int *index) const; + int lineLength(int line) const; + int lines() const; + int length() const; + QsciLexer *lexer() const; + + bool marginLineNumbers(int margin) const; + int marginMarkerMask(int margin) const; + int marginOptions() const; + bool marginSensitivity(int margin) const; + MarginType marginType(int margin) const; + int marginWidth(int margin) const; + + int markerDefine(MarkerSymbol sym, int markerNumber = -1); + int markerDefine(char ch, int markerNumber = -1); + int markerDefine(const QPixmap &pm, int markerNumber = -1); + int markerDefine(const QImage &im, int markerNumber = -1); + int markerAdd(int linenr, int markerNumber); + unsigned markersAtLine(int linenr) const; + void markerDelete(int linenr, int markerNumber = -1); + void markerDeleteAll(int markerNumber = -1); + void markerDeleteHandle(int mhandle); + int markerLine(int mhandle) const; + int markerFindNext(int linenr, unsigned mask) const; + int markerFindPrevious(int linenr, unsigned mask) const; + + bool overwriteMode() const; + + QColor paper() const; + int positionFromLineIndex(int line, int index) const; + + bool read(QIODevice *io) /ReleaseGIL/; + virtual void recolor(int start = 0, int end = -1); + void registerImage(int id, const QPixmap &pm); + void registerImage(int id, const QImage &im); + virtual void replace(const QString &replaceStr); + void resetFoldMarginColors(); + void resetHotspotBackgroundColor(); + void resetHotspotForegroundColor(); + + void setFoldMarginColors(const QColor &fore, const QColor &back); + + void setAnnotationDisplay(AnnotationDisplay display); + + void setAutoCompletionFillupsEnabled(bool enabled); + void setAutoCompletionFillups(const char *fillups); + void setAutoCompletionWordSeparators(const QStringList &separators); + + void setCallTipsBackgroundColor(const QColor &col); + void setCallTipsForegroundColor(const QColor &col); + void setCallTipsHighlightColor(const QColor &col); + void setCallTipsPosition(CallTipsPosition position); + void setCallTipsStyle(CallTipsStyle style); + void setCallTipsVisible(int nr); +%If (Qsci_Qt4) + void setContractedFolds(const QList &folds); +%End +%If (!Qsci_Qt4) + void setContractedFolds(const QValueList &folds); +%End + + void setDocument(const QsciDocument &document); + + void setEdgeColor(const QColor &col); + void setEdgeColumn(int colnr); + void setEdgeMode(EdgeMode mode); + + void setFirstVisibleLine(int linenr); + void setFont(const QFont &f); + + void setHotspotBackgroundColor(const QColor &col); + void setHotspotForegroundColor(const QColor &col); + void setHotspotUnderline(bool enable); + void setHotspotWrap(bool enable); + + void setIndicatorDrawUnder(bool under, int indicatorNumber = -1); + void setIndicatorForegroundColor(const QColor &col, + int indicatorNumber = -1); + void setIndicatorOutlineColor(const QColor &col, int indicatorNumber = -1); + + void setMarginOptions(int options); + void setMarginText(int line, const QString &text, int style); + void setMarginText(int line, const QString &text, const QsciStyle &style); + void setMarginText(int line, const QsciStyledText &text); +%If (Qsci_Qt4) + void setMarginText(int line, const QList &text); +%End +%If (!Qsci_Qt4) + void setMarginText(int line, const QValueList &text); +%End + void setMarginType(int margin, MarginType type); + void clearMarginText(int line = -1); + + void setMarkerBackgroundColor(const QColor &col, int markerNumber = -1); + void setMarkerForegroundColor(const QColor &col, int markerNumber = -1); + + void setMatchedBraceBackgroundColor(const QColor &col); + void setMatchedBraceForegroundColor(const QColor &col); + void setMatchedBraceIndicator(int indicatorNumber); + void resetMatchedBraceIndicator(); + void setUnmatchedBraceBackgroundColor(const QColor &col); + void setUnmatchedBraceForegroundColor(const QColor &col); + void setUnmatchedBraceIndicator(int indicatorNumber); + void resetUnmatchedBraceIndicator(); + + void setWrapVisualFlags(WrapVisualFlag endFlag, + WrapVisualFlag startFlag = QsciScintilla::WrapFlagNone, + int indent = 0); + + QString selectedText() const; + bool selectionToEol() const; + void setSelectionToEol(bool filled); + + void setExtraAscent(int extra); + void setExtraDescent(int extra); + + void setOverwriteMode(bool overwrite); + + void setWhitespaceBackgroundColor(const QColor &col); + void setWhitespaceForegroundColor(const QColor &col); + void setWhitespaceSize(int size); + + void setWrapIndentMode(WrapIndentMode mode); + void showUserList(int id, const QStringList &list); + QsciCommandSet *standardCommands() const; + + bool tabIndents() const; + int tabWidth() const; + QString text() const; + QString text(int line) const; + int textHeight(int linenr) const; + + int whitespaceSize() const; + WhitespaceVisibility whitespaceVisibility() const; + + QString wordAtLineIndex(int line, int index) const; + QString wordAtPoint(const QPoint &point) const; + const char *wordCharacters() const; + WrapMode wrapMode() const; + WrapIndentMode wrapIndentMode() const; + bool write(QIODevice *io) const /ReleaseGIL/; + +public slots: + virtual void append(const QString &text); + virtual void autoCompleteFromAll(); + virtual void autoCompleteFromAPIs(); + virtual void autoCompleteFromDocument(); + virtual void callTip(); + virtual void clear(); + virtual void copy(); + virtual void cut(); + + virtual void ensureCursorVisible(); + virtual void ensureLineVisible(int line); + virtual void foldAll(bool children = false); + virtual void foldLine(int line); + virtual void indent(int line); + virtual void insert(const QString &text); + virtual void insertAt(const QString &text, int line, int index); + virtual void moveToMatchingBrace(); + virtual void paste(); + virtual void redo(); + virtual void removeSelectedText(); + virtual void replaceSelectedText(const QString &text); + virtual void resetSelectionBackgroundColor(); + virtual void resetSelectionForegroundColor(); + virtual void selectAll(bool select = true); + virtual void selectToMatchingBrace(); + + virtual void setAutoCompletionCaseSensitivity(bool cs); + virtual void setAutoCompletionReplaceWord(bool replace); + virtual void setAutoCompletionShowSingle(bool single); + virtual void setAutoCompletionSource(AutoCompletionSource source); + virtual void setAutoCompletionThreshold(int thresh); + virtual void setAutoCompletionUseSingle(AutoCompletionUseSingle single); + virtual void setAutoIndent(bool autoindent); + virtual void setBraceMatching(BraceMatch bm); + virtual void setBackspaceUnindents(bool unindent); + virtual void setCaretForegroundColor(const QColor &col); + virtual void setCaretLineBackgroundColor(const QColor &col); + virtual void setCaretLineVisible(bool enable); + virtual void setCaretWidth(int width); + virtual void setColor(const QColor &col); + virtual void setCursorPosition(int line, int index); + virtual void setEolMode(EolMode mode); + virtual void setEolVisibility(bool visible); + virtual void setFolding(FoldStyle fold, int margin=2); + void clearFolds(); + + virtual void setIndentation(int line, int indentation); + virtual void setIndentationGuides(bool enable); + virtual void setIndentationGuidesBackgroundColor(const QColor &col); + virtual void setIndentationGuidesForegroundColor(const QColor &col); + virtual void setIndentationsUseTabs(bool tabs); + virtual void setIndentationWidth(int width); + + virtual void setLexer(QsciLexer *lexer = 0); + + virtual void setMarginsBackgroundColor(const QColor &col); + virtual void setMarginsFont(const QFont &f); + virtual void setMarginsForegroundColor(const QColor &col); + + virtual void setMarginLineNumbers(int margin, bool lnrs); + virtual void setMarginMarkerMask(int margin, int mask); + virtual void setMarginSensitivity(int margin, bool sens); + virtual void setMarginWidth(int margin, int width); + virtual void setMarginWidth(int margin, const QString &s); + + virtual void setModified(bool m); + virtual void setPaper(const QColor &c); + virtual void setReadOnly(bool ro); + virtual void setSelection(int lineFrom, int indexFrom, int lineTo, + int indexTo); + virtual void setSelectionBackgroundColor(const QColor &col); + virtual void setSelectionForegroundColor(const QColor &col); + virtual void setTabIndents(bool indent); + virtual void setTabWidth(int width); + virtual void setText(const QString &text); + virtual void setUtf8(bool cp); + virtual void setWhitespaceVisibility(WhitespaceVisibility mode); + virtual void setWrapMode(WrapMode mode); + + virtual void undo(); + virtual void unindent(int line); + + virtual void zoomIn(int range); + virtual void zoomIn(); + virtual void zoomOut(int range); + virtual void zoomOut(); + virtual void zoomTo(int size); + +signals: + void cursorPositionChanged(int line, int index); + void copyAvailable(bool yes); + +%If (Qsci_Qt4) + void indicatorClicked(int line, int index, Qt::KeyboardModifiers state); +%End +%If (!Qsci_Qt4) + void indicatorClicked(int line, int index, Qt::ButtonState state); +%End + +%If (Qsci_Qt4) + void indicatorReleased(int line, int index, Qt::KeyboardModifiers state); +%End +%If (!Qsci_Qt4) + void indicatorReleased(int line, int index, Qt::ButtonState state); +%End + + void linesChanged(); + +%If (Qsci_Qt4) + void marginClicked(int margin, int line, Qt::KeyboardModifiers state); +%End +%If (!Qsci_Qt4) + void marginClicked(int margin, int line, Qt::ButtonState state); +%End + + void modificationAttempted(); + void modificationChanged(bool m); + void selectionChanged(); + void textChanged(); + void userListActivated(int id, const QString &string); + +protected: +%If (Qsci_Qt4) + virtual bool event(QEvent *event); + virtual void changeEvent(QEvent *event); + virtual void contextMenuEvent(QContextMenuEvent *event); +%End + +private: + QsciScintilla(const QsciScintilla &); +}; diff --git a/Python/sip/qsciscintillabase3.sip b/Python/sip/qsciscintillabase3.sip new file mode 100644 index 0000000..d31e5b4 --- /dev/null +++ b/Python/sip/qsciscintillabase3.sip @@ -0,0 +1,1363 @@ +// This is the SIP interface definition for QsciScintillaBase. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciScintillaBase : QWidget +{ +%TypeHeaderCode +#include +%End + +public: + enum { + SCI_START, + SCI_OPTIONAL_START, + SCI_LEXER_START, + SCI_ADDTEXT, + SCI_ADDSTYLEDTEXT, + SCI_INSERTTEXT, + SCI_CLEARALL, + SCI_CLEARDOCUMENTSTYLE, + SCI_GETLENGTH, + SCI_GETCHARAT, + SCI_GETCURRENTPOS, + SCI_GETANCHOR, + SCI_GETSTYLEAT, + SCI_REDO, + SCI_SETUNDOCOLLECTION, + SCI_SELECTALL, + SCI_SETSAVEPOINT, + SCI_GETSTYLEDTEXT, + SCI_CANREDO, + SCI_MARKERLINEFROMHANDLE, + SCI_MARKERDELETEHANDLE, + SCI_GETUNDOCOLLECTION, + SCI_GETVIEWWS, + SCI_SETVIEWWS, + SCI_POSITIONFROMPOINT, + SCI_POSITIONFROMPOINTCLOSE, + SCI_GOTOLINE, + SCI_GOTOPOS, + SCI_SETANCHOR, + SCI_GETCURLINE, + SCI_GETENDSTYLED, + SCI_CONVERTEOLS, + SCI_GETEOLMODE, + SCI_SETEOLMODE, + SCI_STARTSTYLING, + SCI_SETSTYLING, + SCI_GETBUFFEREDDRAW, + SCI_SETBUFFEREDDRAW, + SCI_SETTABWIDTH, + SCI_GETTABWIDTH, + SCI_SETCODEPAGE, + SCI_MARKERDEFINE, + SCI_MARKERSETFORE, + SCI_MARKERSETBACK, + SCI_MARKERADD, + SCI_MARKERDELETE, + SCI_MARKERDELETEALL, + SCI_MARKERGET, + SCI_MARKERNEXT, + SCI_MARKERPREVIOUS, + SCI_MARKERDEFINEPIXMAP, + SCI_SETMARGINTYPEN, + SCI_GETMARGINTYPEN, + SCI_SETMARGINWIDTHN, + SCI_GETMARGINWIDTHN, + SCI_SETMARGINMASKN, + SCI_GETMARGINMASKN, + SCI_SETMARGINSENSITIVEN, + SCI_GETMARGINSENSITIVEN, + SCI_SETMARGINCURSORN, + SCI_GETMARGINCURSORN, + SCI_STYLECLEARALL, + SCI_STYLESETFORE, + SCI_STYLESETBACK, + SCI_STYLESETBOLD, + SCI_STYLESETITALIC, + SCI_STYLESETSIZE, + SCI_STYLESETFONT, + SCI_STYLESETEOLFILLED, + SCI_STYLERESETDEFAULT, + SCI_STYLESETUNDERLINE, + SCI_STYLESETCASE, + SCI_STYLESETCHARACTERSET, + SCI_SETSELFORE, + SCI_SETSELBACK, + SCI_SETCARETFORE, + SCI_ASSIGNCMDKEY, + SCI_CLEARCMDKEY, + SCI_CLEARALLCMDKEYS, + SCI_SETSTYLINGEX, + SCI_STYLESETVISIBLE, + SCI_GETCARETPERIOD, + SCI_SETCARETPERIOD, + SCI_SETWORDCHARS, + SCI_BEGINUNDOACTION, + SCI_ENDUNDOACTION, + SCI_INDICSETSTYLE, + SCI_INDICGETSTYLE, + SCI_INDICSETFORE, + SCI_INDICGETFORE, + SCI_SETWHITESPACEFORE, + SCI_SETWHITESPACEBACK, + SCI_SETWHITESPACESIZE, + SCI_GETWHITESPACESIZE, + SCI_SETSTYLEBITS, + SCI_GETSTYLEBITS, + SCI_SETLINESTATE, + SCI_GETLINESTATE, + SCI_GETMAXLINESTATE, + SCI_GETCARETLINEVISIBLE, + SCI_SETCARETLINEVISIBLE, + SCI_GETCARETLINEBACK, + SCI_SETCARETLINEBACK, + SCI_STYLESETCHANGEABLE, + SCI_AUTOCSHOW, + SCI_AUTOCCANCEL, + SCI_AUTOCACTIVE, + SCI_AUTOCPOSSTART, + SCI_AUTOCCOMPLETE, + SCI_AUTOCSTOPS, + SCI_AUTOCSETSEPARATOR, + SCI_AUTOCGETSEPARATOR, + SCI_AUTOCSELECT, + SCI_AUTOCSETCANCELATSTART, + SCI_AUTOCGETCANCELATSTART, + SCI_AUTOCSETFILLUPS, + SCI_AUTOCSETCHOOSESINGLE, + SCI_AUTOCGETCHOOSESINGLE, + SCI_AUTOCSETIGNORECASE, + SCI_AUTOCGETIGNORECASE, + SCI_USERLISTSHOW, + SCI_AUTOCSETAUTOHIDE, + SCI_AUTOCGETAUTOHIDE, + SCI_AUTOCSETDROPRESTOFWORD, + SCI_AUTOCGETDROPRESTOFWORD, + SCI_SETINDENT, + SCI_GETINDENT, + SCI_SETUSETABS, + SCI_GETUSETABS, + SCI_SETLINEINDENTATION, + SCI_GETLINEINDENTATION, + SCI_GETLINEINDENTPOSITION, + SCI_GETCOLUMN, + SCI_SETHSCROLLBAR, + SCI_GETHSCROLLBAR, + SCI_SETINDENTATIONGUIDES, + SCI_GETINDENTATIONGUIDES, + SCI_SETHIGHLIGHTGUIDE, + SCI_GETHIGHLIGHTGUIDE, + SCI_GETLINEENDPOSITION, + SCI_GETCODEPAGE, + SCI_GETCARETFORE, + SCI_GETREADONLY, + SCI_SETCURRENTPOS, + SCI_SETSELECTIONSTART, + SCI_GETSELECTIONSTART, + SCI_SETSELECTIONEND, + SCI_GETSELECTIONEND, + SCI_SETPRINTMAGNIFICATION, + SCI_GETPRINTMAGNIFICATION, + SCI_SETPRINTCOLOURMODE, + SCI_GETPRINTCOLOURMODE, + SCI_FINDTEXT, + SCI_FORMATRANGE, + SCI_GETFIRSTVISIBLELINE, + SCI_GETLINE, + SCI_GETLINECOUNT, + SCI_SETMARGINLEFT, + SCI_GETMARGINLEFT, + SCI_SETMARGINRIGHT, + SCI_GETMARGINRIGHT, + SCI_GETMODIFY, + SCI_SETSEL, + SCI_GETSELTEXT, + SCI_GETTEXTRANGE, + SCI_HIDESELECTION, + SCI_POINTXFROMPOSITION, + SCI_POINTYFROMPOSITION, + SCI_LINEFROMPOSITION, + SCI_POSITIONFROMLINE, + SCI_LINESCROLL, + SCI_SCROLLCARET, + SCI_REPLACESEL, + SCI_SETREADONLY, + SCI_NULL, + SCI_CANPASTE, + SCI_CANUNDO, + SCI_EMPTYUNDOBUFFER, + SCI_UNDO, + SCI_CUT, + SCI_COPY, + SCI_PASTE, + SCI_CLEAR, + SCI_SETTEXT, + SCI_GETTEXT, + SCI_GETTEXTLENGTH, + SCI_GETDIRECTFUNCTION, + SCI_GETDIRECTPOINTER, + SCI_SETOVERTYPE, + SCI_GETOVERTYPE, + SCI_SETCARETWIDTH, + SCI_GETCARETWIDTH, + SCI_SETTARGETSTART, + SCI_GETTARGETSTART, + SCI_SETTARGETEND, + SCI_GETTARGETEND, + SCI_REPLACETARGET, + SCI_REPLACETARGETRE, + SCI_SEARCHINTARGET, + SCI_SETSEARCHFLAGS, + SCI_GETSEARCHFLAGS, + SCI_CALLTIPSHOW, + SCI_CALLTIPCANCEL, + SCI_CALLTIPACTIVE, + SCI_CALLTIPPOSSTART, + SCI_CALLTIPSETHLT, + SCI_CALLTIPSETBACK, + SCI_CALLTIPSETFORE, + SCI_CALLTIPSETFOREHLT, + SCI_AUTOCSETMAXWIDTH, + SCI_AUTOCGETMAXWIDTH, + SCI_AUTOCSETMAXHEIGHT, + SCI_AUTOCGETMAXHEIGHT, + SCI_CALLTIPUSESTYLE, + SCI_VISIBLEFROMDOCLINE, + SCI_DOCLINEFROMVISIBLE, + SCI_SETFOLDLEVEL, + SCI_GETFOLDLEVEL, + SCI_GETLASTCHILD, + SCI_GETFOLDPARENT, + SCI_SHOWLINES, + SCI_HIDELINES, + SCI_GETLINEVISIBLE, + SCI_SETFOLDEXPANDED, + SCI_GETFOLDEXPANDED, + SCI_TOGGLEFOLD, + SCI_ENSUREVISIBLE, + SCI_SETFOLDFLAGS, + SCI_ENSUREVISIBLEENFORCEPOLICY, + SCI_WRAPCOUNT, + SCI_SETTABINDENTS, + SCI_GETTABINDENTS, + SCI_SETBACKSPACEUNINDENTS, + SCI_GETBACKSPACEUNINDENTS, + SCI_SETMOUSEDWELLTIME, + SCI_GETMOUSEDWELLTIME, + SCI_WORDSTARTPOSITION, + SCI_WORDENDPOSITION, + SCI_SETWRAPMODE, + SCI_GETWRAPMODE, + SCI_SETLAYOUTCACHE, + SCI_GETLAYOUTCACHE, + SCI_SETSCROLLWIDTH, + SCI_GETSCROLLWIDTH, + SCI_TEXTWIDTH, + SCI_SETENDATLASTLINE, + SCI_GETENDATLASTLINE, + SCI_TEXTHEIGHT, + SCI_SETVSCROLLBAR, + SCI_GETVSCROLLBAR, + SCI_APPENDTEXT, + SCI_GETTWOPHASEDRAW, + SCI_SETTWOPHASEDRAW, + SCI_AUTOCGETTYPESEPARATOR, + SCI_AUTOCSETTYPESEPARATOR, + SCI_TARGETFROMSELECTION, + SCI_LINESJOIN, + SCI_LINESSPLIT, + SCI_SETFOLDMARGINCOLOUR, + SCI_SETFOLDMARGINHICOLOUR, + SCI_MARKERSETBACKSELECTED, + SCI_MARKERENABLEHIGHLIGHT, + SCI_LINEDOWN, + SCI_LINEDOWNEXTEND, + SCI_LINEUP, + SCI_LINEUPEXTEND, + SCI_CHARLEFT, + SCI_CHARLEFTEXTEND, + SCI_CHARRIGHT, + SCI_CHARRIGHTEXTEND, + SCI_WORDLEFT, + SCI_WORDLEFTEXTEND, + SCI_WORDRIGHT, + SCI_WORDRIGHTEXTEND, + SCI_HOME, + SCI_HOMEEXTEND, + SCI_LINEEND, + SCI_LINEENDEXTEND, + SCI_DOCUMENTSTART, + SCI_DOCUMENTSTARTEXTEND, + SCI_DOCUMENTEND, + SCI_DOCUMENTENDEXTEND, + SCI_PAGEUP, + SCI_PAGEUPEXTEND, + SCI_PAGEDOWN, + SCI_PAGEDOWNEXTEND, + SCI_EDITTOGGLEOVERTYPE, + SCI_CANCEL, + SCI_DELETEBACK, + SCI_TAB, + SCI_BACKTAB, + SCI_NEWLINE, + SCI_FORMFEED, + SCI_VCHOME, + SCI_VCHOMEEXTEND, + SCI_ZOOMIN, + SCI_ZOOMOUT, + SCI_DELWORDLEFT, + SCI_DELWORDRIGHT, + SCI_LINECUT, + SCI_LINEDELETE, + SCI_LINETRANSPOSE, + SCI_LOWERCASE, + SCI_UPPERCASE, + SCI_LINESCROLLDOWN, + SCI_LINESCROLLUP, + SCI_DELETEBACKNOTLINE, + SCI_HOMEDISPLAY, + SCI_HOMEDISPLAYEXTEND, + SCI_LINEENDDISPLAY, + SCI_LINEENDDISPLAYEXTEND, + SCI_MOVECARETINSIDEVIEW, + SCI_LINELENGTH, + SCI_BRACEHIGHLIGHT, + SCI_BRACEBADLIGHT, + SCI_BRACEMATCH, + SCI_GETVIEWEOL, + SCI_SETVIEWEOL, + SCI_GETDOCPOINTER, + SCI_SETDOCPOINTER, + SCI_SETMODEVENTMASK, + SCI_GETEDGECOLUMN, + SCI_SETEDGECOLUMN, + SCI_GETEDGEMODE, + SCI_SETEDGEMODE, + SCI_GETEDGECOLOUR, + SCI_SETEDGECOLOUR, + SCI_SEARCHANCHOR, + SCI_SEARCHNEXT, + SCI_SEARCHPREV, + SCI_LINESONSCREEN, + SCI_USEPOPUP, + SCI_SELECTIONISRECTANGLE, + SCI_SETZOOM, + SCI_GETZOOM, + SCI_CREATEDOCUMENT, + SCI_ADDREFDOCUMENT, + SCI_RELEASEDOCUMENT, + SCI_GETMODEVENTMASK, + SCI_SETFOCUS, + SCI_GETFOCUS, + SCI_SETSTATUS, + SCI_GETSTATUS, + SCI_SETMOUSEDOWNCAPTURES, + SCI_GETMOUSEDOWNCAPTURES, + SCI_SETCURSOR, + SCI_GETCURSOR, + SCI_SETCONTROLCHARSYMBOL, + SCI_GETCONTROLCHARSYMBOL, + SCI_WORDPARTLEFT, + SCI_WORDPARTLEFTEXTEND, + SCI_WORDPARTRIGHT, + SCI_WORDPARTRIGHTEXTEND, + SCI_SETVISIBLEPOLICY, + SCI_DELLINELEFT, + SCI_DELLINERIGHT, + SCI_SETXOFFSET, + SCI_GETXOFFSET, + SCI_CHOOSECARETX, + SCI_GRABFOCUS, + SCI_SETXCARETPOLICY, + SCI_SETYCARETPOLICY, + SCI_LINEDUPLICATE, + SCI_REGISTERIMAGE, + SCI_SETPRINTWRAPMODE, + SCI_GETPRINTWRAPMODE, + SCI_CLEARREGISTEREDIMAGES, + SCI_STYLESETHOTSPOT, + SCI_SETHOTSPOTACTIVEFORE, + SCI_SETHOTSPOTACTIVEBACK, + SCI_SETHOTSPOTACTIVEUNDERLINE, + SCI_SETHOTSPOTSINGLELINE, + SCI_PARADOWN, + SCI_PARADOWNEXTEND, + SCI_PARAUP, + SCI_PARAUPEXTEND, + SCI_POSITIONBEFORE, + SCI_POSITIONAFTER, + SCI_COPYRANGE, + SCI_COPYTEXT, + SCI_SETSELECTIONMODE, + SCI_GETSELECTIONMODE, + SCI_GETLINESELSTARTPOSITION, + SCI_GETLINESELENDPOSITION, + SCI_LINEDOWNRECTEXTEND, + SCI_LINEUPRECTEXTEND, + SCI_CHARLEFTRECTEXTEND, + SCI_CHARRIGHTRECTEXTEND, + SCI_HOMERECTEXTEND, + SCI_VCHOMERECTEXTEND, + SCI_LINEENDRECTEXTEND, + SCI_PAGEUPRECTEXTEND, + SCI_PAGEDOWNRECTEXTEND, + SCI_STUTTEREDPAGEUP, + SCI_STUTTEREDPAGEUPEXTEND, + SCI_STUTTEREDPAGEDOWN, + SCI_STUTTEREDPAGEDOWNEXTEND, + SCI_WORDLEFTEND, + SCI_WORDLEFTENDEXTEND, + SCI_WORDRIGHTEND, + SCI_WORDRIGHTENDEXTEND, + SCI_SETWHITESPACECHARS, + SCI_SETCHARSDEFAULT, + SCI_AUTOCGETCURRENT, + SCI_ALLOCATE, + SCI_HOMEWRAP, + SCI_HOMEWRAPEXTEND, + SCI_LINEENDWRAP, + SCI_LINEENDWRAPEXTEND, + SCI_VCHOMEWRAP, + SCI_VCHOMEWRAPEXTEND, + SCI_LINECOPY, + SCI_FINDCOLUMN, + SCI_GETCARETSTICKY, + SCI_SETCARETSTICKY, + SCI_TOGGLECARETSTICKY, + SCI_SETWRAPVISUALFLAGS, + SCI_GETWRAPVISUALFLAGS, + SCI_SETWRAPVISUALFLAGSLOCATION, + SCI_GETWRAPVISUALFLAGSLOCATION, + SCI_SETWRAPSTARTINDENT, + SCI_GETWRAPSTARTINDENT, + SCI_MARKERADDSET, + SCI_SETPASTECONVERTENDINGS, + SCI_GETPASTECONVERTENDINGS, + SCI_SELECTIONDUPLICATE, + SCI_SETCARETLINEBACKALPHA, + SCI_GETCARETLINEBACKALPHA, + SCI_SETWRAPINDENTMODE, + SCI_GETWRAPINDENTMODE, + SCI_MARKERSETALPHA, + SCI_GETSELALPHA, + SCI_SETSELALPHA, + SCI_GETSELEOLFILLED, + SCI_SETSELEOLFILLED, + SCI_STYLEGETFORE, + SCI_STYLEGETBACK, + SCI_STYLEGETBOLD, + SCI_STYLEGETITALIC, + SCI_STYLEGETSIZE, + SCI_STYLEGETFONT, + SCI_STYLEGETEOLFILLED, + SCI_STYLEGETUNDERLINE, + SCI_STYLEGETCASE, + SCI_STYLEGETCHARACTERSET, + SCI_STYLEGETVISIBLE, + SCI_STYLEGETCHANGEABLE, + SCI_STYLEGETHOTSPOT, + SCI_GETHOTSPOTACTIVEFORE, + SCI_GETHOTSPOTACTIVEBACK, + SCI_GETHOTSPOTACTIVEUNDERLINE, + SCI_GETHOTSPOTSINGLELINE, + SCI_BRACEHIGHLIGHTINDICATOR, + SCI_BRACEBADLIGHTINDICATOR, + SCI_SETINDICATORCURRENT, + SCI_GETINDICATORCURRENT, + SCI_SETINDICATORVALUE, + SCI_GETINDICATORVALUE, + SCI_INDICATORFILLRANGE, + SCI_INDICATORCLEARRANGE, + SCI_INDICATORALLONFOR, + SCI_INDICATORVALUEAT, + SCI_INDICATORSTART, + SCI_INDICATOREND, + SCI_INDICSETUNDER, + SCI_INDICGETUNDER, + SCI_SETCARETSTYLE, + SCI_GETCARETSTYLE, + SCI_SETPOSITIONCACHE, + SCI_GETPOSITIONCACHE, + SCI_SETSCROLLWIDTHTRACKING, + SCI_GETSCROLLWIDTHTRACKING, + SCI_DELWORDRIGHTEND, + SCI_COPYALLOWLINE, + SCI_GETCHARACTERPOINTER, + SCI_SETKEYSUNICODE, + SCI_GETKEYSUNICODE, + SCI_INDICSETALPHA, + SCI_INDICGETALPHA, + SCI_SETEXTRAASCENT, + SCI_GETEXTRAASCENT, + SCI_SETEXTRADESCENT, + SCI_GETEXTRADESCENT, + SCI_MARKERSYMBOLDEFINED, + SCI_MARGINSETTEXT, + SCI_MARGINGETTEXT, + SCI_MARGINSETSTYLE, + SCI_MARGINGETSTYLE, + SCI_MARGINSETSTYLES, + SCI_MARGINGETSTYLES, + SCI_MARGINTEXTCLEARALL, + SCI_MARGINSETSTYLEOFFSET, + SCI_MARGINGETSTYLEOFFSET, + SCI_SETMARGINOPTIONS, + SCI_ANNOTATIONSETTEXT, + SCI_ANNOTATIONGETTEXT, + SCI_ANNOTATIONSETSTYLE, + SCI_ANNOTATIONGETSTYLE, + SCI_ANNOTATIONSETSTYLES, + SCI_ANNOTATIONGETSTYLES, + SCI_ANNOTATIONGETLINES, + SCI_ANNOTATIONCLEARALL, + SCI_ANNOTATIONSETVISIBLE, + SCI_ANNOTATIONGETVISIBLE, + SCI_ANNOTATIONSETSTYLEOFFSET, + SCI_ANNOTATIONGETSTYLEOFFSET, + SCI_SETEMPTYSELECTION, + SCI_GETMARGINOPTIONS, + SCI_INDICSETOUTLINEALPHA, + SCI_INDICGETOUTLINEALPHA, + SCI_ADDUNDOACTION, + SCI_CHARPOSITIONFROMPOINT, + SCI_CHARPOSITIONFROMPOINTCLOSE, + SCI_SETMULTIPLESELECTION, + SCI_GETMULTIPLESELECTION, + SCI_SETADDITIONALSELECTIONTYPING, + SCI_GETADDITIONALSELECTIONTYPING, + SCI_SETADDITIONALCARETSBLINK, + SCI_GETADDITIONALCARETSBLINK, + SCI_SCROLLRANGE, + SCI_SETADDITIONALCARETSVISIBLE, + SCI_GETADDITIONALCARETSVISIBLE, + SCI_AUTOCGETCURRENTTEXT, + SCI_GETSELECTIONS, + SCI_CLEARSELECTIONS, + SCI_SETSELECTION, + SCI_ADDSELECTION, + SCI_SETMAINSELECTION, + SCI_GETMAINSELECTION, + SCI_SETSELECTIONNCARET, + SCI_GETSELECTIONNCARET, + SCI_SETSELECTIONNANCHOR, + SCI_GETSELECTIONNANCHOR, + SCI_SETSELECTIONNCARETVIRTUALSPACE, + SCI_GETSELECTIONNCARETVIRTUALSPACE, + SCI_SETSELECTIONNANCHORVIRTUALSPACE, + SCI_GETSELECTIONNANCHORVIRTUALSPACE, + SCI_SETSELECTIONNSTART, + SCI_GETSELECTIONNSTART, + SCI_SETSELECTIONNEND, + SCI_GETSELECTIONNEND, + SCI_SETRECTANGULARSELECTIONCARET, + SCI_GETRECTANGULARSELECTIONCARET, + SCI_SETRECTANGULARSELECTIONANCHOR, + SCI_GETRECTANGULARSELECTIONANCHOR, + SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE, + SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE, + SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE, + SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE, + SCI_SETVIRTUALSPACEOPTIONS, + SCI_GETVIRTUALSPACEOPTIONS, + SCI_SETRECTANGULARSELECTIONMODIFIER, + SCI_GETRECTANGULARSELECTIONMODIFIER, + SCI_SETADDITIONALSELFORE, + SCI_SETADDITIONALSELBACK, + SCI_SETADDITIONALSELALPHA, + SCI_GETADDITIONALSELALPHA, + SCI_SETADDITIONALCARETFORE, + SCI_GETADDITIONALCARETFORE, + SCI_ROTATESELECTION, + SCI_SWAPMAINANCHORCARET, + SCI_SETFONTQUALITY, + SCI_GETFONTQUALITY, + SCI_SETFIRSTVISIBLELINE, + SCI_SETMULTIPASTE, + SCI_GETMULTIPASTE, + SCI_GETTAG, + SCI_CHANGELEXERSTATE, + SCI_CONTRACTEDFOLDNEXT, + SCI_VERTICALCENTRECARET, + SCI_MOVESELECTEDLINESUP, + SCI_MOVESELECTEDLINESDOWN, + SCI_SETIDENTIFIER, + SCI_GETIDENTIFIER, + SCI_RGBAIMAGESETWIDTH, + SCI_RGBAIMAGESETHEIGHT, + SCI_MARKERDEFINERGBAIMAGE, + SCI_REGISTERRGBAIMAGE, + SCI_SCROLLTOSTART, + SCI_SCROLLTOEND, + SCI_STARTRECORD, + SCI_STOPRECORD, + SCI_SETLEXER, + SCI_GETLEXER, + SCI_COLOURISE, + SCI_SETPROPERTY, + SCI_SETKEYWORDS, + SCI_SETLEXERLANGUAGE, + SCI_LOADLEXERLIBRARY, + SCI_GETPROPERTY, + SCI_GETPROPERTYEXPANDED, + SCI_GETPROPERTYINT, + SCI_GETSTYLEBITSNEEDED, + SCI_GETLEXERLANGUAGE, + SCI_PRIVATELEXERCALL, + SCI_PROPERTYNAMES, + SCI_PROPERTYTYPE, + SCI_DESCRIBEPROPERTY, + SCI_DESCRIBEKEYWORDSETS, + + SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR, + SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR, + SCI_CALLTIPSETPOSITION, + SCI_COUNTCHARACTERS, + SCI_CREATELOADER, + SCI_DELETERANGE, + SCI_FINDINDICATORFLASH, + SCI_FINDINDICATORHIDE, + SCI_FINDINDICATORSHOW, + SCI_GETALLLINESVISIBLE, + SCI_GETGAPPOSITION, + SCI_GETPUNCTUATIONCHARS, + SCI_GETRANGEPOINTER, + SCI_GETSELECTIONEMPTY, + SCI_GETTECHNOLOGY, + SCI_GETWHITESPACECHARS, + SCI_GETWORDCHARS, + SCI_RGBAIMAGESETSCALE, + SCI_SETPUNCTUATIONCHARS, + SCI_SETTECHNOLOGY, + SCI_STYLESETSIZEFRACTIONAL, + SCI_STYLEGETSIZEFRACTIONAL, + SCI_STYLESETWEIGHT, + SCI_STYLEGETWEIGHT, + + SCI_FOLDLINE, + SCI_FOLDCHILDREN, + SCI_EXPANDCHILDREN, + SCI_FOLDALL, + SCI_SETAUTOMATICFOLD, + SCI_GETAUTOMATICFOLD, + SCI_AUTOCSETORDER, + SCI_AUTOCGETORDER, + SCI_POSITIONRELATIVE, + SCI_RELEASEALLEXTENDEDSTYLES, + SCI_ALLOCATEEXTENDEDSTYLES, + SCI_SETMOUSESELECTIONRECTANGULARSWITCH, + SCI_GETMOUSESELECTIONRECTANGULARSWITCH, + SCI_GETCARETLINEVISIBLEALWAYS, + SCI_SETCARETLINEVISIBLEALWAYS, + SCI_SETREPRESENTATION, + SCI_GETREPRESENTATION, + SCI_CLEARREPRESENTATION, + }; + + enum { + SC_ALPHA_TRANSPARENT, + SC_ALPHA_OPAQUE, + SC_ALPHA_NOALPHA, + }; + + enum { + SC_CARETSTICKY_OFF, + SC_CARETSTICKY_ON, + SC_CARETSTICKY_WHITESPACE, + }; + + enum { + SC_EFF_QUALITY_MASK, + SC_EFF_QUALITY_DEFAULT, + SC_EFF_QUALITY_NON_ANTIALIASED, + SC_EFF_QUALITY_ANTIALIASED, + SC_EFF_QUALITY_LCD_OPTIMIZED, + }; + + enum { + SC_MARGINOPTION_NONE, + SC_MARGINOPTION_SUBLINESELECT, + }; + + enum { + SC_MULTIPASTE_ONCE, + SC_MULTIPASTE_EACH, + }; + + enum { + SC_TYPE_BOOLEAN, + SC_TYPE_INTEGER, + SC_TYPE_STRING, + }; + + enum { + SC_UPDATE_CONTENT, + SC_UPDATE_SELECTION, + SC_UPDATE_V_SCROLL, + SC_UPDATE_H_SCROLL, + }; + + enum { + SC_WRAPVISUALFLAG_NONE, + SC_WRAPVISUALFLAG_END, + SC_WRAPVISUALFLAG_START, + SC_WRAPVISUALFLAG_MARGIN, + }; + + enum { + SC_WRAPVISUALFLAGLOC_DEFAULT, + SC_WRAPVISUALFLAGLOC_END_BY_TEXT, + SC_WRAPVISUALFLAGLOC_START_BY_TEXT + }; + + enum { + SC_SEL_STREAM, + SC_SEL_RECTANGLE, + SC_SEL_LINES, + SC_SEL_THIN, + }; + + enum { + SCVS_NONE, + SCVS_RECTANGULARSELECTION, + SCVS_USERACCESSIBLE, + }; + + enum { + SCWS_INVISIBLE, + SCWS_VISIBLEALWAYS, + SCWS_VISIBLEAFTERINDENT + }; + + enum { + SC_EOL_CRLF, + SC_EOL_CR, + SC_EOL_LF + }; + + enum { + SC_CP_DBCS, + SC_CP_UTF8 + }; + + enum { + SC_MARK_CIRCLE, + SC_MARK_ROUNDRECT, + SC_MARK_ARROW, + SC_MARK_SMALLRECT, + SC_MARK_SHORTARROW, + SC_MARK_EMPTY, + SC_MARK_ARROWDOWN, + SC_MARK_MINUS, + SC_MARK_PLUS, + SC_MARK_VLINE, + SC_MARK_LCORNER, + SC_MARK_TCORNER, + SC_MARK_BOXPLUS, + SC_MARK_BOXPLUSCONNECTED, + SC_MARK_BOXMINUS, + SC_MARK_BOXMINUSCONNECTED, + SC_MARK_LCORNERCURVE, + SC_MARK_TCORNERCURVE, + SC_MARK_CIRCLEPLUS, + SC_MARK_CIRCLEPLUSCONNECTED, + SC_MARK_CIRCLEMINUS, + SC_MARK_CIRCLEMINUSCONNECTED, + SC_MARK_BACKGROUND, + SC_MARK_DOTDOTDOT, + SC_MARK_ARROWS, + SC_MARK_PIXMAP, + SC_MARK_FULLRECT, + SC_MARK_LEFTRECT, + SC_MARK_AVAILABLE, + SC_MARK_UNDERLINE, + SC_MARK_RGBAIMAGE, + SC_MARK_CHARACTER + }; + + enum { + SC_MARKNUM_FOLDEREND, + SC_MARKNUM_FOLDEROPENMID, + SC_MARKNUM_FOLDERMIDTAIL, + SC_MARKNUM_FOLDERTAIL, + SC_MARKNUM_FOLDERSUB, + SC_MARKNUM_FOLDER, + SC_MARKNUM_FOLDEROPEN, + SC_MASK_FOLDERS + }; + + enum { + SC_MARGIN_SYMBOL, + SC_MARGIN_NUMBER, + SC_MARGIN_BACK, + SC_MARGIN_FORE, + SC_MARGIN_TEXT, + SC_MARGIN_RTEXT, + }; + + enum { + STYLE_DEFAULT, + STYLE_LINENUMBER, + STYLE_BRACELIGHT, + STYLE_BRACEBAD, + STYLE_CONTROLCHAR, + STYLE_INDENTGUIDE, + STYLE_CALLTIP, + STYLE_LASTPREDEFINED, + STYLE_MAX + }; + + enum { + SC_CHARSET_ANSI, + SC_CHARSET_DEFAULT, + SC_CHARSET_BALTIC, + SC_CHARSET_CHINESEBIG5, + SC_CHARSET_EASTEUROPE, + SC_CHARSET_GB2312, + SC_CHARSET_GREEK, + SC_CHARSET_HANGUL, + SC_CHARSET_MAC, + SC_CHARSET_OEM, + SC_CHARSET_RUSSIAN, + SC_CHARSET_SHIFTJIS, + SC_CHARSET_SYMBOL, + SC_CHARSET_TURKISH, + SC_CHARSET_JOHAB, + SC_CHARSET_HEBREW, + SC_CHARSET_ARABIC, + SC_CHARSET_VIETNAMESE, + SC_CHARSET_THAI, + SC_CHARSET_8859_15, + }; + + enum { + SC_CASE_MIXED, + SC_CASE_UPPER, + SC_CASE_LOWER + }; + + enum + { + SC_IV_NONE, + SC_IV_REAL, + SC_IV_LOOKFORWARD, + SC_IV_LOOKBOTH + }; + + enum { + INDIC_PLAIN, + INDIC_SQUIGGLE, + INDIC_TT, + INDIC_DIAGONAL, + INDIC_STRIKE, + INDIC_HIDDEN, + INDIC_BOX, + INDIC_ROUNDBOX, + INDIC_STRAIGHTBOX, + INDIC_DASH, + INDIC_DOTS, + INDIC_SQUIGGLELOW, + INDIC_DOTBOX, + INDIC_SQUIGGLEPIXMAP, + INDIC_COMPOSITIONTHICK, + + INDIC_CONTAINER, + INDIC_MAX, + INDIC0_MASK, + INDIC1_MASK, + INDIC2_MASK, + INDICS_MASK + }; + + enum { + SC_PRINT_NORMAL, + SC_PRINT_INVERTLIGHT, + SC_PRINT_BLACKONWHITE, + SC_PRINT_COLOURONWHITE, + SC_PRINT_COLOURONWHITEDEFAULTBG + }; + + enum { + SCFIND_WHOLEWORD, + SCFIND_MATCHCASE, + SCFIND_WORDSTART, + SCFIND_REGEXP, + SCFIND_POSIX + }; + + enum { + SC_FOLDLEVELBASE, + SC_FOLDLEVELWHITEFLAG, + SC_FOLDLEVELHEADERFLAG, + SC_FOLDLEVELNUMBERMASK + }; + + enum + { + SC_FOLDFLAG_LINEBEFORE_EXPANDED, + SC_FOLDFLAG_LINEBEFORE_CONTRACTED, + SC_FOLDFLAG_LINEAFTER_EXPANDED, + SC_FOLDFLAG_LINEAFTER_CONTRACTED, + SC_FOLDFLAG_LEVELNUMBERS + }; + + enum { + SC_TIME_FOREVER + }; + + enum { + SC_WRAP_NONE, + SC_WRAP_WORD, + SC_WRAP_CHAR, + }; + + enum { + SC_WRAPINDENT_FIXED, + SC_WRAPINDENT_SAME, + SC_WRAPINDENT_INDENT, + }; + + enum { + SC_CACHE_NONE, + SC_CACHE_CARET, + SC_CACHE_PAGE, + SC_CACHE_DOCUMENT + }; + + enum { + ANNOTATION_HIDDEN, + ANNOTATION_STANDARD, + ANNOTATION_BOXED, + }; + + enum { + EDGE_NONE, + EDGE_LINE, + EDGE_BACKGROUND + }; + + enum { + SC_CURSORNORMAL, + SC_CURSORARROW, + SC_CURSORWAIT, + SC_CURSORREVERSEARROW + }; + + enum { + UNDO_MAY_COALESCE, + }; + + enum { + VISIBLE_SLOP, + VISIBLE_STRICT + }; + + enum { + CARET_SLOP, + CARET_STRICT, + CARET_JUMPS, + CARET_EVEN + }; + + enum + { + CARETSTYLE_INVISIBLE, + CARETSTYLE_LINE, + CARETSTYLE_BLOCK + }; + + enum { + SC_MOD_INSERTTEXT, + SC_MOD_DELETETEXT, + SC_MOD_CHANGESTYLE, + SC_MOD_CHANGEFOLD, + SC_PERFORMED_USER, + SC_PERFORMED_UNDO, + SC_PERFORMED_REDO, + SC_MULTISTEPUNDOREDO, + SC_LASTSTEPINUNDOREDO, + SC_MOD_CHANGEMARKER, + SC_MOD_BEFOREINSERT, + SC_MOD_BEFOREDELETE, + SC_MULTILINEUNDOREDO, + SC_STARTACTION, + SC_MOD_CHANGEINDICATOR, + SC_MOD_CHANGELINESTATE, + SC_MOD_CHANGEMARGIN, + SC_MOD_CHANGEANNOTATION, + SC_MOD_CONTAINER, + SC_MOD_LEXERSTATE, + SC_MODEVENTMASKALL + }; + + enum { + SCK_DOWN, + SCK_UP, + SCK_LEFT, + SCK_RIGHT, + SCK_HOME, + SCK_END, + SCK_PRIOR, + SCK_NEXT, + SCK_DELETE, + SCK_INSERT, + SCK_ESCAPE, + SCK_BACK, + SCK_TAB, + SCK_RETURN, + SCK_ADD, + SCK_SUBTRACT, + SCK_DIVIDE, + SCK_WIN, + SCK_RWIN, + SCK_MENU + }; + + enum { + SCMOD_NORM, + SCMOD_SHIFT, + SCMOD_CTRL, + SCMOD_ALT, + SCMOD_SUPER, + SCMOD_META, + }; + + enum { + SCLEX_CONTAINER, + SCLEX_NULL, + SCLEX_PYTHON, + SCLEX_CPP, + SCLEX_HTML, + SCLEX_XML, + SCLEX_PERL, + SCLEX_SQL, + SCLEX_VB, + SCLEX_PROPERTIES, + SCLEX_ERRORLIST, + SCLEX_MAKEFILE, + SCLEX_BATCH, + SCLEX_LATEX, + SCLEX_LUA, + SCLEX_DIFF, + SCLEX_CONF, + SCLEX_PASCAL, + SCLEX_AVE, + SCLEX_ADA, + SCLEX_LISP, + SCLEX_RUBY, + SCLEX_EIFFEL, + SCLEX_EIFFELKW, + SCLEX_TCL, + SCLEX_NNCRONTAB, + SCLEX_BULLANT, + SCLEX_VBSCRIPT, + SCLEX_ASP, + SCLEX_PHP, + SCLEX_BAAN, + SCLEX_MATLAB, + SCLEX_SCRIPTOL, + SCLEX_ASM, + SCLEX_CPPNOCASE, + SCLEX_FORTRAN, + SCLEX_F77, + SCLEX_CSS, + SCLEX_POV, + SCLEX_LOUT, + SCLEX_ESCRIPT, + SCLEX_PS, + SCLEX_NSIS, + SCLEX_MMIXAL, + SCLEX_CLW, + SCLEX_CLWNOCASE, + SCLEX_LOT, + SCLEX_YAML, + SCLEX_TEX, + SCLEX_METAPOST, + SCLEX_POWERBASIC, + SCLEX_FORTH, + SCLEX_ERLANG, + SCLEX_OCTAVE, + SCLEX_MSSQL, + SCLEX_VERILOG, + SCLEX_KIX, + SCLEX_GUI4CLI, + SCLEX_SPECMAN, + SCLEX_AU3, + SCLEX_APDL, + SCLEX_BASH, + SCLEX_ASN1, + SCLEX_VHDL, + SCLEX_CAML, + SCLEX_BLITZBASIC, + SCLEX_PUREBASIC, + SCLEX_HASKELL, + SCLEX_PHPSCRIPT, + SCLEX_TADS3, + SCLEX_REBOL, + SCLEX_SMALLTALK, + SCLEX_FLAGSHIP, + SCLEX_CSOUND, + SCLEX_FREEBASIC, + SCLEX_INNOSETUP, + SCLEX_OPAL, + SCLEX_SPICE, + SCLEX_D, + SCLEX_CMAKE, + SCLEX_GAP, + SCLEX_PLM, + SCLEX_PROGRESS, + SCLEX_ABAQUS, + SCLEX_ASYMPTOTE, + SCLEX_R, + SCLEX_MAGIK, + SCLEX_POWERSHELL, + SCLEX_MYSQL, + SCLEX_PO, + SCLEX_TAL, + SCLEX_COBOL, + SCLEX_TACL, + SCLEX_SORCUS, + SCLEX_POWERPRO, + SCLEX_NIMROD, + SCLEX_SML, + SCLEX_MARKDOWN, + SCLEX_TXT2TAGS, + SCLEX_A68K, + SCLEX_MODULA, + SCLEX_COFFEESCRIPT, + SCLEX_TCMD, + SCLEX_AVS, + SCLEX_ECL, + SCLEX_OSCRIPT, + SCLEX_VISUALPROLOG, + SCLEX_LITERATEHASKELL, + SCLEX_STTXT, + SCLEX_KVIRC, + SCLEX_RUST, + }; + + enum { + SC_WEIGHT_NORMAL, + SC_WEIGHT_SEMIBOLD, + SC_WEIGHT_BOLD, + }; + + enum { + SC_TECHNOLOGY_DEFAULT, + SC_TECHNOLOGY_DIRECTWRITE, + }; + + enum { + SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE, + SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE, + }; + + enum { + SC_FONT_SIZE_MULTIPLIER, + }; + + enum + { + SC_FOLDACTION_CONTRACT, + SC_FOLDACTION_EXPAND, + SC_FOLDACTION_TOGGLE, + }; + + enum + { + SC_AUTOMATICFOLD_SHOW, + SC_AUTOMATICFOLD_CLICK, + SC_AUTOMATICFOLD_CHANGE, + }; + + enum + { + SC_ORDER_PRESORTED, + SC_ORDER_PERFORMSORT, + SC_ORDER_CUSTOM, + }; + + QsciScintillaBase(QWidget *parent /TransferThis/ = 0, const char *name = 0, + WFlags f = 0); + virtual ~QsciScintillaBase(); + +%ConvertToSubClassCode +static struct class_graph { + const char *name; + sipTypeDef **type; + int yes, no; +} graph[] = { + {sipName_QsciScintillaBase, &sipType_QsciScintillaBase, 4, 1}, + {sipName_QsciMacro, &sipType_QsciMacro, -1, 2}, + {sipName_QsciLexer, &sipType_QsciLexer, 5, 3}, + {sipName_QsciAbstractAPIs, &sipType_QsciAbstractAPIs, 42, -1}, + {sipName_QsciScintilla, &sipType_QsciScintilla, -1, -1}, + {sipName_QsciLexerPO, &sipType_QsciLexerPO, -1, 6}, + {sipName_QsciLexerBash, &sipType_QsciLexerBash, -1, 7}, + {sipName_QsciLexerPython, &sipType_QsciLexerPython, -1, 8}, + {sipName_QsciLexerSQL, &sipType_QsciLexerSQL, -1, 9}, + {sipName_QsciLexerPascal, &sipType_QsciLexerPascal, -1, 10}, + {sipName_QsciLexerDiff, &sipType_QsciLexerDiff, -1, 11}, + {sipName_QsciLexerCustom, &sipType_QsciLexerCustom, -1, 12}, + {sipName_QsciLexerPOV, &sipType_QsciLexerPOV, -1, 13}, + {sipName_QsciLexerLua, &sipType_QsciLexerLua, -1, 14}, + {sipName_QsciLexerSpice, &sipType_QsciLexerSpice, -1, 15}, + {sipName_QsciLexerMatlab, &sipType_QsciLexerMatlab, 35, 16}, + {sipName_QsciLexerCSS, &sipType_QsciLexerCSS, -1, 17}, + {sipName_QsciLexerCMake, &sipType_QsciLexerCMake, -1, 18}, + {sipName_QsciLexerVHDL, &sipType_QsciLexerVHDL, -1, 19}, + {sipName_QsciLexerVerilog, &sipType_QsciLexerVerilog, -1, 20}, + {sipName_QsciLexerHTML, &sipType_QsciLexerHTML, 36, 21}, + {sipName_QsciLexerMakefile, &sipType_QsciLexerMakefile, -1, 22}, + {sipName_QsciLexerPostScript, &sipType_QsciLexerPostScript, -1, 23}, + {sipName_QsciLexerTCL, &sipType_QsciLexerTCL, -1, 24}, + {sipName_QsciLexerAVS, &sipType_QsciLexerAVS, -1, 25}, + {sipName_QsciLexerPerl, &sipType_QsciLexerPerl, -1, 26}, + {sipName_QsciLexerCoffeeScript, &sipType_QsciLexerCoffeeScript, -1, 27}, + {sipName_QsciLexerFortran77, &sipType_QsciLexerFortran77, 37, 28}, + {sipName_QsciLexerYAML, &sipType_QsciLexerYAML, -1, 29}, + {sipName_QsciLexerRuby, &sipType_QsciLexerRuby, -1, 30}, + {sipName_QsciLexerProperties, &sipType_QsciLexerProperties, -1, 31}, + {sipName_QsciLexerTeX, &sipType_QsciLexerTeX, -1, 32}, + {sipName_QsciLexerD, &sipType_QsciLexerD, -1, 33}, + {sipName_QsciLexerCPP, &sipType_QsciLexerCPP, 38, 34}, + {sipName_QsciLexerBatch, &sipType_QsciLexerBatch, -1, -1}, + {sipName_QsciLexerOctave, &sipType_QsciLexerOctave, -1, -1}, + {sipName_QsciLexerXML, &sipType_QsciLexerXML, -1, -1}, + {sipName_QsciLexerFortran, &sipType_QsciLexerFortran, -1, -1}, + {sipName_QsciLexerJava, &sipType_QsciLexerJava, -1, 39}, + {sipName_QsciLexerCSharp, &sipType_QsciLexerCSharp, -1, 40}, + {sipName_QsciLexerIDL, &sipType_QsciLexerIDL, -1, 41}, + {sipName_QsciLexerJavaScript, &sipType_QsciLexerJavaScript, -1, -1}, + {sipName_QsciAPIs, &sipType_QsciAPIs, -1, -1}, +}; + +int i = 0; + +sipType = NULL; + +do +{ + struct class_graph *cg = &graph[i]; + + if (cg->name != NULL && sipCpp->inherits(cg->name)) + { + sipType = *cg->type; + i = cg->yes; + } + else + i = cg->no; +} +while (i >= 0); +%End + + static QsciScintillaBase *pool(); + + long SendScintilla(unsigned int msg, unsigned long wParam = 0, + long lParam = 0) const; + long SendScintilla(unsigned int msg, unsigned long wParam, + void *lParam) const; + long SendScintilla(unsigned int msg, unsigned long wParam, + const char *lParam /DocType="Py_v3:bytes;str", Encoding="None"/) const; + long SendScintilla(unsigned int msg, + const char *lParam /DocType="Py_v3:bytes;str", Encoding="None"/); const + long SendScintilla(unsigned int msg, + const char *wParam /DocType="Py_v3:bytes;str", Encoding="None"/, + const char *lParam /DocType="Py_v3:bytes;str", Encoding="None"/) const; + long SendScintilla(unsigned int msg, long wParam) const; + //long SendScintilla(unsigned int msg, int wParam) const; + long SendScintilla(unsigned int msg, long cpMin, long cpMax, + char *lpstrText /DocType="Py_v3:bytes;str", Encoding="None"/) const; + long SendScintilla(unsigned int msg, unsigned long wParam, + const QColor &col) const; + long SendScintilla(unsigned int msg, const QColor &col) const; + long SendScintilla(unsigned int msg, unsigned long wParam, QPainter *hdc, + const QRect &rc, long cpMin, long cpMax) const; + long SendScintilla(unsigned int msg, unsigned long wParam, + const QPixmap &lParam) const; + long SendScintilla(unsigned int msg, unsigned long wParam, + const QImage &lParam) const; + + void *SendScintillaPtrResult(unsigned int msg) const; + + QScrollBar *horizontalScrollBar() const; + QScrollBar *verticalScrollBar() const; + QWidget *viewport() const; + virtual bool eventFilter(QObject *o, QEvent *e); + +signals: + void QSCN_SELCHANGED(bool yes); + + void SCEN_CHANGE(); + + void SCN_AUTOCCANCELLED(); + void SCN_AUTOCCHARDELETED(); + void SCN_AUTOCSELECTION(const char *selection, int position); + void SCN_CALLTIPCLICK(int direction); + void SCN_CHARADDED(int charadded); + void SCN_DOUBLECLICK(int position, int line, int modifiers); + void SCN_DWELLEND(int, int, int); + void SCN_DWELLSTART(int, int, int); + void SCN_FOCUSIN(); + void SCN_FOCUSOUT(); + void SCN_HOTSPOTCLICK(int position, int modifiers); + void SCN_HOTSPOTDOUBLECLICK(int position, int modifiers); + void SCN_HOTSPOTRELEASECLICK(int position, int modifiers); + void SCN_INDICATORCLICK(int position, int modifiers); + void SCN_INDICATORRELEASE(int position, int modifiers); + void SCN_MACRORECORD(unsigned int, unsigned long, void *); + void SCN_MARGINCLICK(int position, int modifiers, int margin); + void SCN_MODIFIED(int, int, const char *, int, int, int, int, int, int, int); + void SCN_MODIFYATTEMPTRO(); + void SCN_NEEDSHOWN(int, int); + void SCN_PAINTED(); + void SCN_SAVEPOINTLEFT(); + void SCN_SAVEPOINTREACHED(); + void SCN_STYLENEEDED(int position); + void SCN_UPDATEUI(int updated); + void SCN_USERLISTSELECTION(const char *, int); + void SCN_ZOOM(); + +protected: + + virtual void contextMenuEvent(QContextMenuEvent *e); + virtual void dragEnterEvent(QDragEnterEvent *e); + virtual void dragLeaveEvent(QDragLeaveEvent *e); + virtual void dragMoveEvent(QDragMoveEvent *e); + virtual void dropEvent(QDropEvent *e); + virtual void focusInEvent(QFocusEvent *e); + virtual void focusOutEvent(QFocusEvent *e); + virtual bool focusNextPrevChild(bool next); + virtual void keyPressEvent(QKeyEvent *e); + virtual void mouseDoubleClickEvent(QMouseEvent *e); + virtual void mouseMoveEvent(QMouseEvent *e); + virtual void mousePressEvent(QMouseEvent *e); + virtual void mouseReleaseEvent(QMouseEvent *e); + virtual void paintEvent(QPaintEvent *e); + virtual void resizeEvent(QResizeEvent *e); + +private: + QsciScintillaBase(const QsciScintillaBase &); +}; diff --git a/Python/sip/qsciscintillabase4.sip b/Python/sip/qsciscintillabase4.sip new file mode 100644 index 0000000..a4273d2 --- /dev/null +++ b/Python/sip/qsciscintillabase4.sip @@ -0,0 +1,1364 @@ +// This is the SIP interface definition for QsciScintillaBase. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciScintillaBase : QAbstractScrollArea +{ +%TypeHeaderCode +#include +%End + +public: + enum { + SCI_START, + SCI_OPTIONAL_START, + SCI_LEXER_START, + SCI_ADDTEXT, + SCI_ADDSTYLEDTEXT, + SCI_INSERTTEXT, + SCI_CLEARALL, + SCI_CLEARDOCUMENTSTYLE, + SCI_GETLENGTH, + SCI_GETCHARAT, + SCI_GETCURRENTPOS, + SCI_GETANCHOR, + SCI_GETSTYLEAT, + SCI_REDO, + SCI_SETUNDOCOLLECTION, + SCI_SELECTALL, + SCI_SETSAVEPOINT, + SCI_GETSTYLEDTEXT, + SCI_CANREDO, + SCI_MARKERLINEFROMHANDLE, + SCI_MARKERDELETEHANDLE, + SCI_GETUNDOCOLLECTION, + SCI_GETVIEWWS, + SCI_SETVIEWWS, + SCI_POSITIONFROMPOINT, + SCI_POSITIONFROMPOINTCLOSE, + SCI_GOTOLINE, + SCI_GOTOPOS, + SCI_SETANCHOR, + SCI_GETCURLINE, + SCI_GETENDSTYLED, + SCI_CONVERTEOLS, + SCI_GETEOLMODE, + SCI_SETEOLMODE, + SCI_STARTSTYLING, + SCI_SETSTYLING, + SCI_GETBUFFEREDDRAW, + SCI_SETBUFFEREDDRAW, + SCI_SETTABWIDTH, + SCI_GETTABWIDTH, + SCI_SETCODEPAGE, + SCI_MARKERDEFINE, + SCI_MARKERSETFORE, + SCI_MARKERSETBACK, + SCI_MARKERADD, + SCI_MARKERDELETE, + SCI_MARKERDELETEALL, + SCI_MARKERGET, + SCI_MARKERNEXT, + SCI_MARKERPREVIOUS, + SCI_MARKERDEFINEPIXMAP, + SCI_SETMARGINTYPEN, + SCI_GETMARGINTYPEN, + SCI_SETMARGINWIDTHN, + SCI_GETMARGINWIDTHN, + SCI_SETMARGINMASKN, + SCI_GETMARGINMASKN, + SCI_SETMARGINSENSITIVEN, + SCI_GETMARGINSENSITIVEN, + SCI_SETMARGINCURSORN, + SCI_GETMARGINCURSORN, + SCI_STYLECLEARALL, + SCI_STYLESETFORE, + SCI_STYLESETBACK, + SCI_STYLESETBOLD, + SCI_STYLESETITALIC, + SCI_STYLESETSIZE, + SCI_STYLESETFONT, + SCI_STYLESETEOLFILLED, + SCI_STYLERESETDEFAULT, + SCI_STYLESETUNDERLINE, + SCI_STYLESETCASE, + SCI_STYLESETCHARACTERSET, + SCI_SETSELFORE, + SCI_SETSELBACK, + SCI_SETCARETFORE, + SCI_ASSIGNCMDKEY, + SCI_CLEARCMDKEY, + SCI_CLEARALLCMDKEYS, + SCI_SETSTYLINGEX, + SCI_STYLESETVISIBLE, + SCI_GETCARETPERIOD, + SCI_SETCARETPERIOD, + SCI_SETWORDCHARS, + SCI_BEGINUNDOACTION, + SCI_ENDUNDOACTION, + SCI_INDICSETSTYLE, + SCI_INDICGETSTYLE, + SCI_INDICSETFORE, + SCI_INDICGETFORE, + SCI_SETWHITESPACEFORE, + SCI_SETWHITESPACEBACK, + SCI_SETWHITESPACESIZE, + SCI_GETWHITESPACESIZE, + SCI_SETSTYLEBITS, + SCI_GETSTYLEBITS, + SCI_SETLINESTATE, + SCI_GETLINESTATE, + SCI_GETMAXLINESTATE, + SCI_GETCARETLINEVISIBLE, + SCI_SETCARETLINEVISIBLE, + SCI_GETCARETLINEBACK, + SCI_SETCARETLINEBACK, + SCI_STYLESETCHANGEABLE, + SCI_AUTOCSHOW, + SCI_AUTOCCANCEL, + SCI_AUTOCACTIVE, + SCI_AUTOCPOSSTART, + SCI_AUTOCCOMPLETE, + SCI_AUTOCSTOPS, + SCI_AUTOCSETSEPARATOR, + SCI_AUTOCGETSEPARATOR, + SCI_AUTOCSELECT, + SCI_AUTOCSETCANCELATSTART, + SCI_AUTOCGETCANCELATSTART, + SCI_AUTOCSETFILLUPS, + SCI_AUTOCSETCHOOSESINGLE, + SCI_AUTOCGETCHOOSESINGLE, + SCI_AUTOCSETIGNORECASE, + SCI_AUTOCGETIGNORECASE, + SCI_USERLISTSHOW, + SCI_AUTOCSETAUTOHIDE, + SCI_AUTOCGETAUTOHIDE, + SCI_AUTOCSETDROPRESTOFWORD, + SCI_AUTOCGETDROPRESTOFWORD, + SCI_SETINDENT, + SCI_GETINDENT, + SCI_SETUSETABS, + SCI_GETUSETABS, + SCI_SETLINEINDENTATION, + SCI_GETLINEINDENTATION, + SCI_GETLINEINDENTPOSITION, + SCI_GETCOLUMN, + SCI_SETHSCROLLBAR, + SCI_GETHSCROLLBAR, + SCI_SETINDENTATIONGUIDES, + SCI_GETINDENTATIONGUIDES, + SCI_SETHIGHLIGHTGUIDE, + SCI_GETHIGHLIGHTGUIDE, + SCI_GETLINEENDPOSITION, + SCI_GETCODEPAGE, + SCI_GETCARETFORE, + SCI_GETREADONLY, + SCI_SETCURRENTPOS, + SCI_SETSELECTIONSTART, + SCI_GETSELECTIONSTART, + SCI_SETSELECTIONEND, + SCI_GETSELECTIONEND, + SCI_SETPRINTMAGNIFICATION, + SCI_GETPRINTMAGNIFICATION, + SCI_SETPRINTCOLOURMODE, + SCI_GETPRINTCOLOURMODE, + SCI_FINDTEXT, + SCI_FORMATRANGE, + SCI_GETFIRSTVISIBLELINE, + SCI_GETLINE, + SCI_GETLINECOUNT, + SCI_SETMARGINLEFT, + SCI_GETMARGINLEFT, + SCI_SETMARGINRIGHT, + SCI_GETMARGINRIGHT, + SCI_GETMODIFY, + SCI_SETSEL, + SCI_GETSELTEXT, + SCI_GETTEXTRANGE, + SCI_HIDESELECTION, + SCI_POINTXFROMPOSITION, + SCI_POINTYFROMPOSITION, + SCI_LINEFROMPOSITION, + SCI_POSITIONFROMLINE, + SCI_LINESCROLL, + SCI_SCROLLCARET, + SCI_REPLACESEL, + SCI_SETREADONLY, + SCI_NULL, + SCI_CANPASTE, + SCI_CANUNDO, + SCI_EMPTYUNDOBUFFER, + SCI_UNDO, + SCI_CUT, + SCI_COPY, + SCI_PASTE, + SCI_CLEAR, + SCI_SETTEXT, + SCI_GETTEXT, + SCI_GETTEXTLENGTH, + SCI_GETDIRECTFUNCTION, + SCI_GETDIRECTPOINTER, + SCI_SETOVERTYPE, + SCI_GETOVERTYPE, + SCI_SETCARETWIDTH, + SCI_GETCARETWIDTH, + SCI_SETTARGETSTART, + SCI_GETTARGETSTART, + SCI_SETTARGETEND, + SCI_GETTARGETEND, + SCI_REPLACETARGET, + SCI_REPLACETARGETRE, + SCI_SEARCHINTARGET, + SCI_SETSEARCHFLAGS, + SCI_GETSEARCHFLAGS, + SCI_CALLTIPSHOW, + SCI_CALLTIPCANCEL, + SCI_CALLTIPACTIVE, + SCI_CALLTIPPOSSTART, + SCI_CALLTIPSETHLT, + SCI_CALLTIPSETBACK, + SCI_CALLTIPSETFORE, + SCI_CALLTIPSETFOREHLT, + SCI_AUTOCSETMAXWIDTH, + SCI_AUTOCGETMAXWIDTH, + SCI_AUTOCSETMAXHEIGHT, + SCI_AUTOCGETMAXHEIGHT, + SCI_CALLTIPUSESTYLE, + SCI_VISIBLEFROMDOCLINE, + SCI_DOCLINEFROMVISIBLE, + SCI_SETFOLDLEVEL, + SCI_GETFOLDLEVEL, + SCI_GETLASTCHILD, + SCI_GETFOLDPARENT, + SCI_SHOWLINES, + SCI_HIDELINES, + SCI_GETLINEVISIBLE, + SCI_SETFOLDEXPANDED, + SCI_GETFOLDEXPANDED, + SCI_TOGGLEFOLD, + SCI_ENSUREVISIBLE, + SCI_SETFOLDFLAGS, + SCI_ENSUREVISIBLEENFORCEPOLICY, + SCI_WRAPCOUNT, + SCI_SETTABINDENTS, + SCI_GETTABINDENTS, + SCI_SETBACKSPACEUNINDENTS, + SCI_GETBACKSPACEUNINDENTS, + SCI_SETMOUSEDWELLTIME, + SCI_GETMOUSEDWELLTIME, + SCI_WORDSTARTPOSITION, + SCI_WORDENDPOSITION, + SCI_SETWRAPMODE, + SCI_GETWRAPMODE, + SCI_SETLAYOUTCACHE, + SCI_GETLAYOUTCACHE, + SCI_SETSCROLLWIDTH, + SCI_GETSCROLLWIDTH, + SCI_TEXTWIDTH, + SCI_SETENDATLASTLINE, + SCI_GETENDATLASTLINE, + SCI_TEXTHEIGHT, + SCI_SETVSCROLLBAR, + SCI_GETVSCROLLBAR, + SCI_APPENDTEXT, + SCI_GETTWOPHASEDRAW, + SCI_SETTWOPHASEDRAW, + SCI_AUTOCGETTYPESEPARATOR, + SCI_AUTOCSETTYPESEPARATOR, + SCI_TARGETFROMSELECTION, + SCI_LINESJOIN, + SCI_LINESSPLIT, + SCI_SETFOLDMARGINCOLOUR, + SCI_SETFOLDMARGINHICOLOUR, + SCI_MARKERSETBACKSELECTED, + SCI_MARKERENABLEHIGHLIGHT, + SCI_LINEDOWN, + SCI_LINEDOWNEXTEND, + SCI_LINEUP, + SCI_LINEUPEXTEND, + SCI_CHARLEFT, + SCI_CHARLEFTEXTEND, + SCI_CHARRIGHT, + SCI_CHARRIGHTEXTEND, + SCI_WORDLEFT, + SCI_WORDLEFTEXTEND, + SCI_WORDRIGHT, + SCI_WORDRIGHTEXTEND, + SCI_HOME, + SCI_HOMEEXTEND, + SCI_LINEEND, + SCI_LINEENDEXTEND, + SCI_DOCUMENTSTART, + SCI_DOCUMENTSTARTEXTEND, + SCI_DOCUMENTEND, + SCI_DOCUMENTENDEXTEND, + SCI_PAGEUP, + SCI_PAGEUPEXTEND, + SCI_PAGEDOWN, + SCI_PAGEDOWNEXTEND, + SCI_EDITTOGGLEOVERTYPE, + SCI_CANCEL, + SCI_DELETEBACK, + SCI_TAB, + SCI_BACKTAB, + SCI_NEWLINE, + SCI_FORMFEED, + SCI_VCHOME, + SCI_VCHOMEEXTEND, + SCI_ZOOMIN, + SCI_ZOOMOUT, + SCI_DELWORDLEFT, + SCI_DELWORDRIGHT, + SCI_LINECUT, + SCI_LINEDELETE, + SCI_LINETRANSPOSE, + SCI_LOWERCASE, + SCI_UPPERCASE, + SCI_LINESCROLLDOWN, + SCI_LINESCROLLUP, + SCI_DELETEBACKNOTLINE, + SCI_HOMEDISPLAY, + SCI_HOMEDISPLAYEXTEND, + SCI_LINEENDDISPLAY, + SCI_LINEENDDISPLAYEXTEND, + SCI_MOVECARETINSIDEVIEW, + SCI_LINELENGTH, + SCI_BRACEHIGHLIGHT, + SCI_BRACEBADLIGHT, + SCI_BRACEMATCH, + SCI_GETVIEWEOL, + SCI_SETVIEWEOL, + SCI_GETDOCPOINTER, + SCI_SETDOCPOINTER, + SCI_SETMODEVENTMASK, + SCI_GETEDGECOLUMN, + SCI_SETEDGECOLUMN, + SCI_GETEDGEMODE, + SCI_SETEDGEMODE, + SCI_GETEDGECOLOUR, + SCI_SETEDGECOLOUR, + SCI_SEARCHANCHOR, + SCI_SEARCHNEXT, + SCI_SEARCHPREV, + SCI_LINESONSCREEN, + SCI_USEPOPUP, + SCI_SELECTIONISRECTANGLE, + SCI_SETZOOM, + SCI_GETZOOM, + SCI_CREATEDOCUMENT, + SCI_ADDREFDOCUMENT, + SCI_RELEASEDOCUMENT, + SCI_GETMODEVENTMASK, + SCI_SETFOCUS, + SCI_GETFOCUS, + SCI_SETSTATUS, + SCI_GETSTATUS, + SCI_SETMOUSEDOWNCAPTURES, + SCI_GETMOUSEDOWNCAPTURES, + SCI_SETCURSOR, + SCI_GETCURSOR, + SCI_SETCONTROLCHARSYMBOL, + SCI_GETCONTROLCHARSYMBOL, + SCI_WORDPARTLEFT, + SCI_WORDPARTLEFTEXTEND, + SCI_WORDPARTRIGHT, + SCI_WORDPARTRIGHTEXTEND, + SCI_SETVISIBLEPOLICY, + SCI_DELLINELEFT, + SCI_DELLINERIGHT, + SCI_SETXOFFSET, + SCI_GETXOFFSET, + SCI_CHOOSECARETX, + SCI_GRABFOCUS, + SCI_SETXCARETPOLICY, + SCI_SETYCARETPOLICY, + SCI_LINEDUPLICATE, + SCI_REGISTERIMAGE, + SCI_SETPRINTWRAPMODE, + SCI_GETPRINTWRAPMODE, + SCI_CLEARREGISTEREDIMAGES, + SCI_STYLESETHOTSPOT, + SCI_SETHOTSPOTACTIVEFORE, + SCI_SETHOTSPOTACTIVEBACK, + SCI_SETHOTSPOTACTIVEUNDERLINE, + SCI_SETHOTSPOTSINGLELINE, + SCI_PARADOWN, + SCI_PARADOWNEXTEND, + SCI_PARAUP, + SCI_PARAUPEXTEND, + SCI_POSITIONBEFORE, + SCI_POSITIONAFTER, + SCI_COPYRANGE, + SCI_COPYTEXT, + SCI_SETSELECTIONMODE, + SCI_GETSELECTIONMODE, + SCI_GETLINESELSTARTPOSITION, + SCI_GETLINESELENDPOSITION, + SCI_LINEDOWNRECTEXTEND, + SCI_LINEUPRECTEXTEND, + SCI_CHARLEFTRECTEXTEND, + SCI_CHARRIGHTRECTEXTEND, + SCI_HOMERECTEXTEND, + SCI_VCHOMERECTEXTEND, + SCI_LINEENDRECTEXTEND, + SCI_PAGEUPRECTEXTEND, + SCI_PAGEDOWNRECTEXTEND, + SCI_STUTTEREDPAGEUP, + SCI_STUTTEREDPAGEUPEXTEND, + SCI_STUTTEREDPAGEDOWN, + SCI_STUTTEREDPAGEDOWNEXTEND, + SCI_WORDLEFTEND, + SCI_WORDLEFTENDEXTEND, + SCI_WORDRIGHTEND, + SCI_WORDRIGHTENDEXTEND, + SCI_SETWHITESPACECHARS, + SCI_SETCHARSDEFAULT, + SCI_AUTOCGETCURRENT, + SCI_ALLOCATE, + SCI_HOMEWRAP, + SCI_HOMEWRAPEXTEND, + SCI_LINEENDWRAP, + SCI_LINEENDWRAPEXTEND, + SCI_VCHOMEWRAP, + SCI_VCHOMEWRAPEXTEND, + SCI_LINECOPY, + SCI_FINDCOLUMN, + SCI_GETCARETSTICKY, + SCI_SETCARETSTICKY, + SCI_TOGGLECARETSTICKY, + SCI_SETWRAPVISUALFLAGS, + SCI_GETWRAPVISUALFLAGS, + SCI_SETWRAPVISUALFLAGSLOCATION, + SCI_GETWRAPVISUALFLAGSLOCATION, + SCI_SETWRAPSTARTINDENT, + SCI_GETWRAPSTARTINDENT, + SCI_MARKERADDSET, + SCI_SETPASTECONVERTENDINGS, + SCI_GETPASTECONVERTENDINGS, + SCI_SELECTIONDUPLICATE, + SCI_SETCARETLINEBACKALPHA, + SCI_GETCARETLINEBACKALPHA, + SCI_SETWRAPINDENTMODE, + SCI_GETWRAPINDENTMODE, + SCI_MARKERSETALPHA, + SCI_GETSELALPHA, + SCI_SETSELALPHA, + SCI_GETSELEOLFILLED, + SCI_SETSELEOLFILLED, + SCI_STYLEGETFORE, + SCI_STYLEGETBACK, + SCI_STYLEGETBOLD, + SCI_STYLEGETITALIC, + SCI_STYLEGETSIZE, + SCI_STYLEGETFONT, + SCI_STYLEGETEOLFILLED, + SCI_STYLEGETUNDERLINE, + SCI_STYLEGETCASE, + SCI_STYLEGETCHARACTERSET, + SCI_STYLEGETVISIBLE, + SCI_STYLEGETCHANGEABLE, + SCI_STYLEGETHOTSPOT, + SCI_GETHOTSPOTACTIVEFORE, + SCI_GETHOTSPOTACTIVEBACK, + SCI_GETHOTSPOTACTIVEUNDERLINE, + SCI_GETHOTSPOTSINGLELINE, + SCI_BRACEHIGHLIGHTINDICATOR, + SCI_BRACEBADLIGHTINDICATOR, + SCI_SETINDICATORCURRENT, + SCI_GETINDICATORCURRENT, + SCI_SETINDICATORVALUE, + SCI_GETINDICATORVALUE, + SCI_INDICATORFILLRANGE, + SCI_INDICATORCLEARRANGE, + SCI_INDICATORALLONFOR, + SCI_INDICATORVALUEAT, + SCI_INDICATORSTART, + SCI_INDICATOREND, + SCI_INDICSETUNDER, + SCI_INDICGETUNDER, + SCI_SETCARETSTYLE, + SCI_GETCARETSTYLE, + SCI_SETPOSITIONCACHE, + SCI_GETPOSITIONCACHE, + SCI_SETSCROLLWIDTHTRACKING, + SCI_GETSCROLLWIDTHTRACKING, + SCI_DELWORDRIGHTEND, + SCI_COPYALLOWLINE, + SCI_GETCHARACTERPOINTER, + SCI_SETKEYSUNICODE, + SCI_GETKEYSUNICODE, + SCI_INDICSETALPHA, + SCI_INDICGETALPHA, + SCI_SETEXTRAASCENT, + SCI_GETEXTRAASCENT, + SCI_SETEXTRADESCENT, + SCI_GETEXTRADESCENT, + SCI_MARKERSYMBOLDEFINED, + SCI_MARGINSETTEXT, + SCI_MARGINGETTEXT, + SCI_MARGINSETSTYLE, + SCI_MARGINGETSTYLE, + SCI_MARGINSETSTYLES, + SCI_MARGINGETSTYLES, + SCI_MARGINTEXTCLEARALL, + SCI_MARGINSETSTYLEOFFSET, + SCI_MARGINGETSTYLEOFFSET, + SCI_SETMARGINOPTIONS, + SCI_ANNOTATIONSETTEXT, + SCI_ANNOTATIONGETTEXT, + SCI_ANNOTATIONSETSTYLE, + SCI_ANNOTATIONGETSTYLE, + SCI_ANNOTATIONSETSTYLES, + SCI_ANNOTATIONGETSTYLES, + SCI_ANNOTATIONGETLINES, + SCI_ANNOTATIONCLEARALL, + SCI_ANNOTATIONSETVISIBLE, + SCI_ANNOTATIONGETVISIBLE, + SCI_ANNOTATIONSETSTYLEOFFSET, + SCI_ANNOTATIONGETSTYLEOFFSET, + SCI_SETEMPTYSELECTION, + SCI_GETMARGINOPTIONS, + SCI_INDICSETOUTLINEALPHA, + SCI_INDICGETOUTLINEALPHA, + SCI_ADDUNDOACTION, + SCI_CHARPOSITIONFROMPOINT, + SCI_CHARPOSITIONFROMPOINTCLOSE, + SCI_SETMULTIPLESELECTION, + SCI_GETMULTIPLESELECTION, + SCI_SETADDITIONALSELECTIONTYPING, + SCI_GETADDITIONALSELECTIONTYPING, + SCI_SETADDITIONALCARETSBLINK, + SCI_GETADDITIONALCARETSBLINK, + SCI_SCROLLRANGE, + SCI_SETADDITIONALCARETSVISIBLE, + SCI_GETADDITIONALCARETSVISIBLE, + SCI_AUTOCGETCURRENTTEXT, + SCI_GETSELECTIONS, + SCI_CLEARSELECTIONS, + SCI_SETSELECTION, + SCI_ADDSELECTION, + SCI_SETMAINSELECTION, + SCI_GETMAINSELECTION, + SCI_SETSELECTIONNCARET, + SCI_GETSELECTIONNCARET, + SCI_SETSELECTIONNANCHOR, + SCI_GETSELECTIONNANCHOR, + SCI_SETSELECTIONNCARETVIRTUALSPACE, + SCI_GETSELECTIONNCARETVIRTUALSPACE, + SCI_SETSELECTIONNANCHORVIRTUALSPACE, + SCI_GETSELECTIONNANCHORVIRTUALSPACE, + SCI_SETSELECTIONNSTART, + SCI_GETSELECTIONNSTART, + SCI_SETSELECTIONNEND, + SCI_GETSELECTIONNEND, + SCI_SETRECTANGULARSELECTIONCARET, + SCI_GETRECTANGULARSELECTIONCARET, + SCI_SETRECTANGULARSELECTIONANCHOR, + SCI_GETRECTANGULARSELECTIONANCHOR, + SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE, + SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE, + SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE, + SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE, + SCI_SETVIRTUALSPACEOPTIONS, + SCI_GETVIRTUALSPACEOPTIONS, + SCI_SETRECTANGULARSELECTIONMODIFIER, + SCI_GETRECTANGULARSELECTIONMODIFIER, + SCI_SETADDITIONALSELFORE, + SCI_SETADDITIONALSELBACK, + SCI_SETADDITIONALSELALPHA, + SCI_GETADDITIONALSELALPHA, + SCI_SETADDITIONALCARETFORE, + SCI_GETADDITIONALCARETFORE, + SCI_ROTATESELECTION, + SCI_SWAPMAINANCHORCARET, + SCI_SETFONTQUALITY, + SCI_GETFONTQUALITY, + SCI_SETFIRSTVISIBLELINE, + SCI_SETMULTIPASTE, + SCI_GETMULTIPASTE, + SCI_GETTAG, + SCI_CHANGELEXERSTATE, + SCI_CONTRACTEDFOLDNEXT, + SCI_VERTICALCENTRECARET, + SCI_MOVESELECTEDLINESUP, + SCI_MOVESELECTEDLINESDOWN, + SCI_SETIDENTIFIER, + SCI_GETIDENTIFIER, + SCI_RGBAIMAGESETWIDTH, + SCI_RGBAIMAGESETHEIGHT, + SCI_MARKERDEFINERGBAIMAGE, + SCI_REGISTERRGBAIMAGE, + SCI_SCROLLTOSTART, + SCI_SCROLLTOEND, + SCI_STARTRECORD, + SCI_STOPRECORD, + SCI_SETLEXER, + SCI_GETLEXER, + SCI_COLOURISE, + SCI_SETPROPERTY, + SCI_SETKEYWORDS, + SCI_SETLEXERLANGUAGE, + SCI_LOADLEXERLIBRARY, + SCI_GETPROPERTY, + SCI_GETPROPERTYEXPANDED, + SCI_GETPROPERTYINT, + SCI_GETSTYLEBITSNEEDED, + SCI_GETLEXERLANGUAGE, + SCI_PRIVATELEXERCALL, + SCI_PROPERTYNAMES, + SCI_PROPERTYTYPE, + SCI_DESCRIBEPROPERTY, + SCI_DESCRIBEKEYWORDSETS, + + SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR, + SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR, + SCI_CALLTIPSETPOSITION, + SCI_COUNTCHARACTERS, + SCI_CREATELOADER, + SCI_DELETERANGE, + SCI_FINDINDICATORFLASH, + SCI_FINDINDICATORHIDE, + SCI_FINDINDICATORSHOW, + SCI_GETALLLINESVISIBLE, + SCI_GETGAPPOSITION, + SCI_GETPUNCTUATIONCHARS, + SCI_GETRANGEPOINTER, + SCI_GETSELECTIONEMPTY, + SCI_GETTECHNOLOGY, + SCI_GETWHITESPACECHARS, + SCI_GETWORDCHARS, + SCI_RGBAIMAGESETSCALE, + SCI_SETPUNCTUATIONCHARS, + SCI_SETTECHNOLOGY, + SCI_STYLESETSIZEFRACTIONAL, + SCI_STYLEGETSIZEFRACTIONAL, + SCI_STYLESETWEIGHT, + SCI_STYLEGETWEIGHT, + + SCI_FOLDLINE, + SCI_FOLDCHILDREN, + SCI_EXPANDCHILDREN, + SCI_FOLDALL, + SCI_SETAUTOMATICFOLD, + SCI_GETAUTOMATICFOLD, + SCI_AUTOCSETORDER, + SCI_AUTOCGETORDER, + SCI_POSITIONRELATIVE, + SCI_RELEASEALLEXTENDEDSTYLES, + SCI_ALLOCATEEXTENDEDSTYLES, + SCI_SETMOUSESELECTIONRECTANGULARSWITCH, + SCI_GETMOUSESELECTIONRECTANGULARSWITCH, + SCI_GETCARETLINEVISIBLEALWAYS, + SCI_SETCARETLINEVISIBLEALWAYS, + SCI_SETREPRESENTATION, + SCI_GETREPRESENTATION, + SCI_CLEARREPRESENTATION, + }; + + enum { + SC_ALPHA_TRANSPARENT, + SC_ALPHA_OPAQUE, + SC_ALPHA_NOALPHA, + }; + + enum { + SC_CARETSTICKY_OFF, + SC_CARETSTICKY_ON, + SC_CARETSTICKY_WHITESPACE, + }; + + enum { + SC_EFF_QUALITY_MASK, + SC_EFF_QUALITY_DEFAULT, + SC_EFF_QUALITY_NON_ANTIALIASED, + SC_EFF_QUALITY_ANTIALIASED, + SC_EFF_QUALITY_LCD_OPTIMIZED, + }; + + enum { + SC_MARGINOPTION_NONE, + SC_MARGINOPTION_SUBLINESELECT, + }; + + enum { + SC_MULTIPASTE_ONCE, + SC_MULTIPASTE_EACH, + }; + + enum { + SC_TYPE_BOOLEAN, + SC_TYPE_INTEGER, + SC_TYPE_STRING, + }; + + enum { + SC_UPDATE_CONTENT, + SC_UPDATE_SELECTION, + SC_UPDATE_V_SCROLL, + SC_UPDATE_H_SCROLL, + }; + + enum { + SC_WRAPVISUALFLAG_NONE, + SC_WRAPVISUALFLAG_END, + SC_WRAPVISUALFLAG_START, + SC_WRAPVISUALFLAG_MARGIN, + }; + + enum { + SC_WRAPVISUALFLAGLOC_DEFAULT, + SC_WRAPVISUALFLAGLOC_END_BY_TEXT, + SC_WRAPVISUALFLAGLOC_START_BY_TEXT + }; + + enum { + SC_SEL_STREAM, + SC_SEL_RECTANGLE, + SC_SEL_LINES, + SC_SEL_THIN, + }; + + enum { + SCVS_NONE, + SCVS_RECTANGULARSELECTION, + SCVS_USERACCESSIBLE, + }; + + enum { + SCWS_INVISIBLE, + SCWS_VISIBLEALWAYS, + SCWS_VISIBLEAFTERINDENT + }; + + enum { + SC_EOL_CRLF, + SC_EOL_CR, + SC_EOL_LF + }; + + enum { + SC_CP_DBCS, + SC_CP_UTF8 + }; + + enum { + SC_MARK_CIRCLE, + SC_MARK_ROUNDRECT, + SC_MARK_ARROW, + SC_MARK_SMALLRECT, + SC_MARK_SHORTARROW, + SC_MARK_EMPTY, + SC_MARK_ARROWDOWN, + SC_MARK_MINUS, + SC_MARK_PLUS, + SC_MARK_VLINE, + SC_MARK_LCORNER, + SC_MARK_TCORNER, + SC_MARK_BOXPLUS, + SC_MARK_BOXPLUSCONNECTED, + SC_MARK_BOXMINUS, + SC_MARK_BOXMINUSCONNECTED, + SC_MARK_LCORNERCURVE, + SC_MARK_TCORNERCURVE, + SC_MARK_CIRCLEPLUS, + SC_MARK_CIRCLEPLUSCONNECTED, + SC_MARK_CIRCLEMINUS, + SC_MARK_CIRCLEMINUSCONNECTED, + SC_MARK_BACKGROUND, + SC_MARK_DOTDOTDOT, + SC_MARK_ARROWS, + SC_MARK_PIXMAP, + SC_MARK_FULLRECT, + SC_MARK_LEFTRECT, + SC_MARK_AVAILABLE, + SC_MARK_UNDERLINE, + SC_MARK_RGBAIMAGE, + SC_MARK_CHARACTER + }; + + enum { + SC_MARKNUM_FOLDEREND, + SC_MARKNUM_FOLDEROPENMID, + SC_MARKNUM_FOLDERMIDTAIL, + SC_MARKNUM_FOLDERTAIL, + SC_MARKNUM_FOLDERSUB, + SC_MARKNUM_FOLDER, + SC_MARKNUM_FOLDEROPEN, + SC_MASK_FOLDERS + }; + + enum { + SC_MARGIN_SYMBOL, + SC_MARGIN_NUMBER, + SC_MARGIN_BACK, + SC_MARGIN_FORE, + SC_MARGIN_TEXT, + SC_MARGIN_RTEXT, + }; + + enum { + STYLE_DEFAULT, + STYLE_LINENUMBER, + STYLE_BRACELIGHT, + STYLE_BRACEBAD, + STYLE_CONTROLCHAR, + STYLE_INDENTGUIDE, + STYLE_CALLTIP, + STYLE_LASTPREDEFINED, + STYLE_MAX + }; + + enum { + SC_CHARSET_ANSI, + SC_CHARSET_DEFAULT, + SC_CHARSET_BALTIC, + SC_CHARSET_CHINESEBIG5, + SC_CHARSET_EASTEUROPE, + SC_CHARSET_GB2312, + SC_CHARSET_GREEK, + SC_CHARSET_HANGUL, + SC_CHARSET_MAC, + SC_CHARSET_OEM, + SC_CHARSET_RUSSIAN, + SC_CHARSET_SHIFTJIS, + SC_CHARSET_SYMBOL, + SC_CHARSET_TURKISH, + SC_CHARSET_JOHAB, + SC_CHARSET_HEBREW, + SC_CHARSET_ARABIC, + SC_CHARSET_VIETNAMESE, + SC_CHARSET_THAI, + SC_CHARSET_8859_15, + }; + + enum { + SC_CASE_MIXED, + SC_CASE_UPPER, + SC_CASE_LOWER + }; + + enum + { + SC_IV_NONE, + SC_IV_REAL, + SC_IV_LOOKFORWARD, + SC_IV_LOOKBOTH + }; + + enum { + INDIC_PLAIN, + INDIC_SQUIGGLE, + INDIC_TT, + INDIC_DIAGONAL, + INDIC_STRIKE, + INDIC_HIDDEN, + INDIC_BOX, + INDIC_ROUNDBOX, + INDIC_STRAIGHTBOX, + INDIC_DASH, + INDIC_DOTS, + INDIC_SQUIGGLELOW, + INDIC_DOTBOX, + INDIC_SQUIGGLEPIXMAP, + INDIC_COMPOSITIONTHICK, + + INDIC_CONTAINER, + INDIC_MAX, + INDIC0_MASK, + INDIC1_MASK, + INDIC2_MASK, + INDICS_MASK + }; + + enum { + SC_PRINT_NORMAL, + SC_PRINT_INVERTLIGHT, + SC_PRINT_BLACKONWHITE, + SC_PRINT_COLOURONWHITE, + SC_PRINT_COLOURONWHITEDEFAULTBG + }; + + enum { + SCFIND_WHOLEWORD, + SCFIND_MATCHCASE, + SCFIND_WORDSTART, + SCFIND_REGEXP, + SCFIND_POSIX + }; + + enum { + SC_FOLDLEVELBASE, + SC_FOLDLEVELWHITEFLAG, + SC_FOLDLEVELHEADERFLAG, + SC_FOLDLEVELNUMBERMASK + }; + + enum + { + SC_FOLDFLAG_LINEBEFORE_EXPANDED, + SC_FOLDFLAG_LINEBEFORE_CONTRACTED, + SC_FOLDFLAG_LINEAFTER_EXPANDED, + SC_FOLDFLAG_LINEAFTER_CONTRACTED, + SC_FOLDFLAG_LEVELNUMBERS + }; + + enum { + SC_TIME_FOREVER + }; + + enum { + SC_WRAP_NONE, + SC_WRAP_WORD, + SC_WRAP_CHAR, + }; + + enum { + SC_WRAPINDENT_FIXED, + SC_WRAPINDENT_SAME, + SC_WRAPINDENT_INDENT, + }; + + enum { + SC_CACHE_NONE, + SC_CACHE_CARET, + SC_CACHE_PAGE, + SC_CACHE_DOCUMENT + }; + + enum { + ANNOTATION_HIDDEN, + ANNOTATION_STANDARD, + ANNOTATION_BOXED, + }; + + enum { + EDGE_NONE, + EDGE_LINE, + EDGE_BACKGROUND + }; + + enum { + SC_CURSORNORMAL, + SC_CURSORARROW, + SC_CURSORWAIT, + SC_CURSORREVERSEARROW + }; + + enum { + UNDO_MAY_COALESCE, + }; + + enum { + VISIBLE_SLOP, + VISIBLE_STRICT + }; + + enum { + CARET_SLOP, + CARET_STRICT, + CARET_JUMPS, + CARET_EVEN + }; + + enum + { + CARETSTYLE_INVISIBLE, + CARETSTYLE_LINE, + CARETSTYLE_BLOCK + }; + + enum { + SC_MOD_INSERTTEXT, + SC_MOD_DELETETEXT, + SC_MOD_CHANGESTYLE, + SC_MOD_CHANGEFOLD, + SC_PERFORMED_USER, + SC_PERFORMED_UNDO, + SC_PERFORMED_REDO, + SC_MULTISTEPUNDOREDO, + SC_LASTSTEPINUNDOREDO, + SC_MOD_CHANGEMARKER, + SC_MOD_BEFOREINSERT, + SC_MOD_BEFOREDELETE, + SC_MULTILINEUNDOREDO, + SC_STARTACTION, + SC_MOD_CHANGEINDICATOR, + SC_MOD_CHANGELINESTATE, + SC_MOD_CHANGEMARGIN, + SC_MOD_CHANGEANNOTATION, + SC_MOD_CONTAINER, + SC_MOD_LEXERSTATE, + SC_MODEVENTMASKALL + }; + + enum { + SCK_DOWN, + SCK_UP, + SCK_LEFT, + SCK_RIGHT, + SCK_HOME, + SCK_END, + SCK_PRIOR, + SCK_NEXT, + SCK_DELETE, + SCK_INSERT, + SCK_ESCAPE, + SCK_BACK, + SCK_TAB, + SCK_RETURN, + SCK_ADD, + SCK_SUBTRACT, + SCK_DIVIDE, + SCK_WIN, + SCK_RWIN, + SCK_MENU + }; + + enum { + SCMOD_NORM, + SCMOD_SHIFT, + SCMOD_CTRL, + SCMOD_ALT, + SCMOD_SUPER, + SCMOD_META, + }; + + enum { + SCLEX_CONTAINER, + SCLEX_NULL, + SCLEX_PYTHON, + SCLEX_CPP, + SCLEX_HTML, + SCLEX_XML, + SCLEX_PERL, + SCLEX_SQL, + SCLEX_VB, + SCLEX_PROPERTIES, + SCLEX_ERRORLIST, + SCLEX_MAKEFILE, + SCLEX_BATCH, + SCLEX_LATEX, + SCLEX_LUA, + SCLEX_DIFF, + SCLEX_CONF, + SCLEX_PASCAL, + SCLEX_AVE, + SCLEX_ADA, + SCLEX_LISP, + SCLEX_RUBY, + SCLEX_EIFFEL, + SCLEX_EIFFELKW, + SCLEX_TCL, + SCLEX_NNCRONTAB, + SCLEX_BULLANT, + SCLEX_VBSCRIPT, + SCLEX_ASP, + SCLEX_PHP, + SCLEX_BAAN, + SCLEX_MATLAB, + SCLEX_SCRIPTOL, + SCLEX_ASM, + SCLEX_CPPNOCASE, + SCLEX_FORTRAN, + SCLEX_F77, + SCLEX_CSS, + SCLEX_POV, + SCLEX_LOUT, + SCLEX_ESCRIPT, + SCLEX_PS, + SCLEX_NSIS, + SCLEX_MMIXAL, + SCLEX_CLW, + SCLEX_CLWNOCASE, + SCLEX_LOT, + SCLEX_YAML, + SCLEX_TEX, + SCLEX_METAPOST, + SCLEX_POWERBASIC, + SCLEX_FORTH, + SCLEX_ERLANG, + SCLEX_OCTAVE, + SCLEX_MSSQL, + SCLEX_VERILOG, + SCLEX_KIX, + SCLEX_GUI4CLI, + SCLEX_SPECMAN, + SCLEX_AU3, + SCLEX_APDL, + SCLEX_BASH, + SCLEX_ASN1, + SCLEX_VHDL, + SCLEX_CAML, + SCLEX_BLITZBASIC, + SCLEX_PUREBASIC, + SCLEX_HASKELL, + SCLEX_PHPSCRIPT, + SCLEX_TADS3, + SCLEX_REBOL, + SCLEX_SMALLTALK, + SCLEX_FLAGSHIP, + SCLEX_CSOUND, + SCLEX_FREEBASIC, + SCLEX_INNOSETUP, + SCLEX_OPAL, + SCLEX_SPICE, + SCLEX_D, + SCLEX_CMAKE, + SCLEX_GAP, + SCLEX_PLM, + SCLEX_PROGRESS, + SCLEX_ABAQUS, + SCLEX_ASYMPTOTE, + SCLEX_R, + SCLEX_MAGIK, + SCLEX_POWERSHELL, + SCLEX_MYSQL, + SCLEX_PO, + SCLEX_TAL, + SCLEX_COBOL, + SCLEX_TACL, + SCLEX_SORCUS, + SCLEX_POWERPRO, + SCLEX_NIMROD, + SCLEX_SML, + SCLEX_MARKDOWN, + SCLEX_TXT2TAGS, + SCLEX_A68K, + SCLEX_MODULA, + SCLEX_COFFEESCRIPT, + SCLEX_TCMD, + SCLEX_AVS, + SCLEX_ECL, + SCLEX_OSCRIPT, + SCLEX_VISUALPROLOG, + SCLEX_LITERATEHASKELL, + SCLEX_STTXT, + SCLEX_KVIRC, + SCLEX_RUST, + }; + + enum { + SC_WEIGHT_NORMAL, + SC_WEIGHT_SEMIBOLD, + SC_WEIGHT_BOLD, + }; + + enum { + SC_TECHNOLOGY_DEFAULT, + SC_TECHNOLOGY_DIRECTWRITE, + }; + + enum { + SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE, + SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE, + }; + + enum { + SC_FONT_SIZE_MULTIPLIER, + }; + + enum + { + SC_FOLDACTION_CONTRACT, + SC_FOLDACTION_EXPAND, + SC_FOLDACTION_TOGGLE, + }; + + enum + { + SC_AUTOMATICFOLD_SHOW, + SC_AUTOMATICFOLD_CLICK, + SC_AUTOMATICFOLD_CHANGE, + }; + + enum + { + SC_ORDER_PRESORTED, + SC_ORDER_PERFORMSORT, + SC_ORDER_CUSTOM, + }; + + explicit QsciScintillaBase(QWidget *parent /TransferThis/ = 0); + virtual ~QsciScintillaBase(); + +%ConvertToSubClassCode +static struct class_graph { + const char *name; + sipTypeDef **type; + int yes, no; +} graph[] = { + {sipName_QsciScintillaBase, &sipType_QsciScintillaBase, 4, 1}, + {sipName_QsciMacro, &sipType_QsciMacro, -1, 2}, + {sipName_QsciLexer, &sipType_QsciLexer, 5, 3}, + {sipName_QsciAbstractAPIs, &sipType_QsciAbstractAPIs, 42, -1}, + {sipName_QsciScintilla, &sipType_QsciScintilla, -1, -1}, + {sipName_QsciLexerPO, &sipType_QsciLexerPO, -1, 6}, + {sipName_QsciLexerBash, &sipType_QsciLexerBash, -1, 7}, + {sipName_QsciLexerPython, &sipType_QsciLexerPython, -1, 8}, + {sipName_QsciLexerSQL, &sipType_QsciLexerSQL, -1, 9}, + {sipName_QsciLexerPascal, &sipType_QsciLexerPascal, -1, 10}, + {sipName_QsciLexerDiff, &sipType_QsciLexerDiff, -1, 11}, + {sipName_QsciLexerCustom, &sipType_QsciLexerCustom, -1, 12}, + {sipName_QsciLexerPOV, &sipType_QsciLexerPOV, -1, 13}, + {sipName_QsciLexerLua, &sipType_QsciLexerLua, -1, 14}, + {sipName_QsciLexerSpice, &sipType_QsciLexerSpice, -1, 15}, + {sipName_QsciLexerMatlab, &sipType_QsciLexerMatlab, 35, 16}, + {sipName_QsciLexerCSS, &sipType_QsciLexerCSS, -1, 17}, + {sipName_QsciLexerCMake, &sipType_QsciLexerCMake, -1, 18}, + {sipName_QsciLexerVHDL, &sipType_QsciLexerVHDL, -1, 19}, + {sipName_QsciLexerVerilog, &sipType_QsciLexerVerilog, -1, 20}, + {sipName_QsciLexerHTML, &sipType_QsciLexerHTML, 36, 21}, + {sipName_QsciLexerMakefile, &sipType_QsciLexerMakefile, -1, 22}, + {sipName_QsciLexerPostScript, &sipType_QsciLexerPostScript, -1, 23}, + {sipName_QsciLexerTCL, &sipType_QsciLexerTCL, -1, 24}, + {sipName_QsciLexerAVS, &sipType_QsciLexerAVS, -1, 25}, + {sipName_QsciLexerPerl, &sipType_QsciLexerPerl, -1, 26}, + {sipName_QsciLexerCoffeeScript, &sipType_QsciLexerCoffeeScript, -1, 27}, + {sipName_QsciLexerFortran77, &sipType_QsciLexerFortran77, 37, 28}, + {sipName_QsciLexerYAML, &sipType_QsciLexerYAML, -1, 29}, + {sipName_QsciLexerRuby, &sipType_QsciLexerRuby, -1, 30}, + {sipName_QsciLexerProperties, &sipType_QsciLexerProperties, -1, 31}, + {sipName_QsciLexerTeX, &sipType_QsciLexerTeX, -1, 32}, + {sipName_QsciLexerD, &sipType_QsciLexerD, -1, 33}, + {sipName_QsciLexerCPP, &sipType_QsciLexerCPP, 38, 34}, + {sipName_QsciLexerBatch, &sipType_QsciLexerBatch, -1, -1}, + {sipName_QsciLexerOctave, &sipType_QsciLexerOctave, -1, -1}, + {sipName_QsciLexerXML, &sipType_QsciLexerXML, -1, -1}, + {sipName_QsciLexerFortran, &sipType_QsciLexerFortran, -1, -1}, + {sipName_QsciLexerJava, &sipType_QsciLexerJava, -1, 39}, + {sipName_QsciLexerCSharp, &sipType_QsciLexerCSharp, -1, 40}, + {sipName_QsciLexerIDL, &sipType_QsciLexerIDL, -1, 41}, + {sipName_QsciLexerJavaScript, &sipType_QsciLexerJavaScript, -1, -1}, + {sipName_QsciAPIs, &sipType_QsciAPIs, -1, -1}, +}; + +int i = 0; + +sipType = NULL; + +do +{ + struct class_graph *cg = &graph[i]; + + if (cg->name != NULL && sipCpp->inherits(cg->name)) + { + sipType = *cg->type; + i = cg->yes; + } + else + i = cg->no; +} +while (i >= 0); +%End + + static QsciScintillaBase *pool(); + + long SendScintilla(unsigned int msg, unsigned long wParam = 0, + long lParam = 0) const; + long SendScintilla(unsigned int msg, unsigned long wParam, + void *lParam) const; + long SendScintilla(unsigned int msg, unsigned long wParam, + const char *lParam /DocType="Py_v3:bytes;str", Encoding="None"/) const; + long SendScintilla(unsigned int msg, + const char *lParam /DocType="Py_v3:bytes;str", Encoding="None"/); const + long SendScintilla(unsigned int msg, + const char *wParam /DocType="Py_v3:bytes;str", Encoding="None"/, + const char *lParam /DocType="Py_v3:bytes;str", Encoding="None"/) const; + long SendScintilla(unsigned int msg, long wParam) const; + //long SendScintilla(unsigned int msg, int wParam) const; + long SendScintilla(unsigned int msg, long cpMin, long cpMax, + char *lpstrText /DocType="Py_v3:bytes;str", Encoding="None"/) const; + long SendScintilla(unsigned int msg, unsigned long wParam, + const QColor &col) const; + long SendScintilla(unsigned int msg, const QColor &col) const; + long SendScintilla(unsigned int msg, unsigned long wParam, QPainter *hdc, + const QRect &rc, long cpMin, long cpMax) const; + long SendScintilla(unsigned int msg, unsigned long wParam, + const QPixmap &lParam) const; + long SendScintilla(unsigned int msg, unsigned long wParam, + const QImage &lParam) const; + + void *SendScintillaPtrResult(unsigned int msg) const; + + +signals: + void QSCN_SELCHANGED(bool yes); + + void SCEN_CHANGE(); + + void SCN_AUTOCCANCELLED(); + void SCN_AUTOCCHARDELETED(); + void SCN_AUTOCSELECTION(const char *selection, int position); + void SCN_CALLTIPCLICK(int direction); + void SCN_CHARADDED(int charadded); + void SCN_DOUBLECLICK(int position, int line, int modifiers); + void SCN_DWELLEND(int, int, int); + void SCN_DWELLSTART(int, int, int); + void SCN_FOCUSIN(); + void SCN_FOCUSOUT(); + void SCN_HOTSPOTCLICK(int position, int modifiers); + void SCN_HOTSPOTDOUBLECLICK(int position, int modifiers); + void SCN_HOTSPOTRELEASECLICK(int position, int modifiers); + void SCN_INDICATORCLICK(int position, int modifiers); + void SCN_INDICATORRELEASE(int position, int modifiers); + void SCN_MACRORECORD(unsigned int, unsigned long, void *); + void SCN_MARGINCLICK(int position, int modifiers, int margin); + void SCN_MODIFIED(int, int, const char *, int, int, int, int, int, int, int); + void SCN_MODIFYATTEMPTRO(); + void SCN_NEEDSHOWN(int, int); + void SCN_PAINTED(); + void SCN_SAVEPOINTLEFT(); + void SCN_SAVEPOINTREACHED(); + void SCN_STYLENEEDED(int position); + void SCN_UPDATEUI(int updated); + void SCN_USERLISTSELECTION(const char *, int); + void SCN_ZOOM(); + +protected: + virtual bool canInsertFromMimeData(const QMimeData *source) const; + virtual QByteArray fromMimeData(const QMimeData *source, bool &rectangular) const; + virtual QMimeData *toMimeData(const QByteArray &text, bool rectangular) const; + + virtual void contextMenuEvent(QContextMenuEvent *e); + virtual void dragEnterEvent(QDragEnterEvent *e); + virtual void dragLeaveEvent(QDragLeaveEvent *e); + virtual void dragMoveEvent(QDragMoveEvent *e); + virtual void dropEvent(QDropEvent *e); + virtual void focusInEvent(QFocusEvent *e); + virtual void focusOutEvent(QFocusEvent *e); + virtual bool focusNextPrevChild(bool next); + virtual void keyPressEvent(QKeyEvent *e); + virtual void inputMethodEvent(QInputMethodEvent *e); + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual void mouseDoubleClickEvent(QMouseEvent *e); + virtual void mouseMoveEvent(QMouseEvent *e); + virtual void mousePressEvent(QMouseEvent *e); + virtual void mouseReleaseEvent(QMouseEvent *e); + virtual void paintEvent(QPaintEvent *e); + virtual void resizeEvent(QResizeEvent *e); + virtual void scrollContentsBy(int dx, int dy); + +private: + QsciScintillaBase(const QsciScintillaBase &); +}; diff --git a/Python/sip/qscistyle.sip b/Python/sip/qscistyle.sip new file mode 100644 index 0000000..9f7d5d7 --- /dev/null +++ b/Python/sip/qscistyle.sip @@ -0,0 +1,73 @@ +// This is the SIP interface definition for QsciStyle. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciStyle +{ +%TypeHeaderCode +#include +%End + +public: + enum TextCase { + OriginalCase, + UpperCase, + LowerCase + }; + + QsciStyle(int style = -1); + QsciStyle(int style, const QString &description, const QColor &color, + const QColor &paper, const QFont &font, bool eolFill = false); + + int style() const; + + void setDescription(const QString &description); + QString description() const; + + void setColor(const QColor &color); + QColor color() const; + + void setPaper(const QColor &paper); + QColor paper() const; + + void setFont(const QFont &font); + QFont font() const; + + void setEolFill(bool fill); + bool eolFill() const; + + void setTextCase(TextCase text_case); + TextCase textCase() const; + + void setVisible(bool visible); + bool visible() const; + + void setChangeable(bool changeable); + bool changeable() const; + + void setHotspot(bool hotspot); + bool hotspot() const; + + void refresh(); +}; diff --git a/Python/sip/qscistyledtext.sip b/Python/sip/qscistyledtext.sip new file mode 100644 index 0000000..e074658 --- /dev/null +++ b/Python/sip/qscistyledtext.sip @@ -0,0 +1,38 @@ +// This is the SIP interface definition for QsciStyledText. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +class QsciStyledText +{ +%TypeHeaderCode +#include +%End + +public: + QsciStyledText(const QString &text, int style); + QsciStyledText(const QString &text, const QsciStyle &style); + + const QString &text(); + int style() const; +}; diff --git a/Qt3/InputMethod.cpp b/Qt3/InputMethod.cpp new file mode 100644 index 0000000..7ad184b --- /dev/null +++ b/Qt3/InputMethod.cpp @@ -0,0 +1,10 @@ +// Copyright (c) 2014 Riverbank Computing Limited +// Copyright (c) 2011 Archaeopteryx Software, Inc. +// Copyright (c) 1990-2011, Scientific Toolworks, Inc. +// +// The License.txt file describes the conditions under which this software may +// be distributed. + + +#include + diff --git a/Qt3/ListBoxQt.cpp b/Qt3/ListBoxQt.cpp new file mode 100644 index 0000000..9871e5f --- /dev/null +++ b/Qt3/ListBoxQt.cpp @@ -0,0 +1,333 @@ +// This module implements the specialisation of QListBox that handles the +// Scintilla double-click callback. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "ListBoxQt.h" + +#include + +#include "SciClasses.h" +#include "Qsci/qsciscintilla.h" + + +QsciListBoxQt::QsciListBoxQt() + : cb_action(0), cb_data(0), slb(0), visible_rows(5), utf8(false) +{ +} + + +void QsciListBoxQt::SetFont(QSCI_SCI_NAMESPACE(Font) &font) +{ + QFont *f = reinterpret_cast(font.GetID()); + + if (f) + slb->setFont(*f); +} + + +void QsciListBoxQt::Create(QSCI_SCI_NAMESPACE(Window) &parent, int, + QSCI_SCI_NAMESPACE(Point), int, bool unicodeMode, int) +{ + utf8 = unicodeMode; + + // The parent we want is the QsciScintillaBase, not the text area. + wid = slb = new QsciSciListBox(reinterpret_cast(parent.GetID())->parentWidget(), this); +} + + +void QsciListBoxQt::SetAverageCharWidth(int) +{ + // We rely on sizeHint() for the size of the list box rather than make + // calculations based on the average character width and the number of + // visible rows. +} + + +void QsciListBoxQt::SetVisibleRows(int vrows) +{ + // We only pretend to implement this. + visible_rows = vrows; +} + + +int QsciListBoxQt::GetVisibleRows() const +{ + return visible_rows; +} + + +QSCI_SCI_NAMESPACE(PRectangle) QsciListBoxQt::GetDesiredRect() +{ + QSCI_SCI_NAMESPACE(PRectangle) rc(0, 0, 100, 100); + + if (slb) + { + QSize sh = slb->sizeHint(); + + rc.right = sh.width(); + rc.bottom = sh.height(); + } + + return rc; +} + + +int QsciListBoxQt::CaretFromEdge() +{ + int dist = 0; + + // Find the width of the biggest image. + for (xpmMap::const_iterator it = xset.begin(); it != xset.end(); ++it) + { + int w = it.data().width(); + + if (dist < w) + dist = w; + } + + if (slb) + dist += slb->frameWidth(); + + // Fudge factor - adjust if required. + dist += 3; + + return dist; +} + + +void QsciListBoxQt::Clear() +{ + Q_ASSERT(slb); + + slb->clear(); +} + + +void QsciListBoxQt::Append(char *s, int type) +{ + Q_ASSERT(slb); + + QString qs; + + if (utf8) + qs = QString::fromUtf8(s); + else + qs = QString::fromLatin1(s); + + xpmMap::const_iterator it; + + if (type < 0 || (it = xset.find(type)) == xset.end()) + slb->addItem(qs); + else + slb->addItemPixmap(it.data(), qs); +} + + +int QsciListBoxQt::Length() +{ + Q_ASSERT(slb); + + return slb->count(); +} + + +void QsciListBoxQt::Select(int n) +{ + Q_ASSERT(slb); + + slb->setCurrentRow(n); +} + + +int QsciListBoxQt::GetSelection() +{ + Q_ASSERT(slb); + + return slb->currentRow(); +} + + +int QsciListBoxQt::Find(const char *prefix) +{ + Q_ASSERT(slb); + + return slb->find(prefix); +} + + +void QsciListBoxQt::GetValue(int n, char *value, int len) +{ + Q_ASSERT(slb); + + QString selection = slb->text(n); + + bool trim_selection = false; + QObject *sci_obj = slb->parent(); + + if (sci_obj->inherits("QsciScintilla")) + { + QsciScintilla *sci = static_cast(sci_obj); + + if (sci->isAutoCompletionList()) + { + // Save the full selection and trim the value we return. + sci->acSelection = selection; + trim_selection = true; + } + } + + if (selection.isEmpty() || len <= 0) + value[0] = '\0'; + else + { + const char *s; + int slen; + + QCString bytes; + + if (utf8) + { + bytes = selection.utf8(); + s = bytes.data(); + slen = bytes.length(); + } + else + { + s = selection.latin1(); + slen = (s ? qstrlen(s) : 0); + } + + while (slen-- && len--) + { + if (trim_selection && *s == ' ') + break; + + *value++ = *s++; + } + + *value = '\0'; + } +} + + +void QsciListBoxQt::Sort() +{ + Q_ASSERT(slb); + + slb->sortItems(); +} + + +void QsciListBoxQt::RegisterImage(int type, const char *xpm_data) +{ + xset.insert(type, *reinterpret_cast(xpm_data)); +} + + +void QsciListBoxQt::RegisterRGBAImage(int type, int, int, + const unsigned char *pixelsImage) +{ + QPixmap pm; + + pm.convertFromImage(*reinterpret_cast(pixelsImage)); + + xset.insert(type, pm); +} + + +void QsciListBoxQt::ClearRegisteredImages() +{ + xset.clear(); +} + + +void QsciListBoxQt::SetDoubleClickAction( + QSCI_SCI_NAMESPACE(CallBackAction) action, void *data) +{ + cb_action = action; + cb_data = data; +} + + +void QsciListBoxQt::SetList(const char *list, char separator, char typesep) +{ + char *words; + + Clear(); + + if ((words = qstrdup(list)) != NULL) + { + char *startword = words; + char *numword = NULL; + + for (int i = 0; words[i] != '\0'; i++) + { + if (words[i] == separator) + { + words[i] = '\0'; + + if (numword) + *numword = '\0'; + + Append(startword, numword ? atoi(numword + 1) : -1); + + startword = words + i + 1; + numword = NULL; + } + else if (words[i] == typesep) + { + numword = words + i; + } + } + + if (startword) + { + if (numword) + *numword = '\0'; + + Append(startword, numword ? atoi(numword + 1) : -1); + } + + delete[] words; + } +} + + +// The ListBox methods that need to be implemented explicitly. + +QSCI_SCI_NAMESPACE(ListBox)::ListBox() +{ +} + + +QSCI_SCI_NAMESPACE(ListBox)::~ListBox() +{ +} + + +QSCI_SCI_NAMESPACE(ListBox) *QSCI_SCI_NAMESPACE(ListBox)::Allocate() +{ + return new QsciListBoxQt(); +} diff --git a/Qt3/ListBoxQt.h b/Qt3/ListBoxQt.h new file mode 100644 index 0000000..912e468 --- /dev/null +++ b/Qt3/ListBoxQt.h @@ -0,0 +1,81 @@ +// This defines the specialisation of QListBox that handles the Scintilla +// double-click callback. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include +#include +#include + +#include "SciNamespace.h" + +#include "Platform.h" + + +class QsciSciListBox; + + +// This is an internal class but it is referenced by a public class so it has +// to have a Qsci prefix rather than being put in the Scintilla namespace +// which would mean exposing the SCI_NAMESPACE mechanism). +class QsciListBoxQt : public QSCI_SCI_NAMESPACE(ListBox) +{ +public: + QsciListBoxQt(); + + QSCI_SCI_NAMESPACE(CallBackAction) cb_action; + void *cb_data; + + virtual void SetFont(QSCI_SCI_NAMESPACE(Font) &font); + virtual void Create(QSCI_SCI_NAMESPACE(Window) &parent, int, + QSCI_SCI_NAMESPACE(Point), int, bool unicodeMode, int); + virtual void SetAverageCharWidth(int); + virtual void SetVisibleRows(int); + virtual int GetVisibleRows() const; + virtual QSCI_SCI_NAMESPACE(PRectangle) GetDesiredRect(); + virtual int CaretFromEdge(); + virtual void Clear(); + virtual void Append(char *s, int type = -1); + virtual int Length(); + virtual void Select(int n); + virtual int GetSelection(); + virtual int Find(const char *prefix); + virtual void GetValue(int n, char *value, int len); + virtual void Sort(); + virtual void RegisterImage(int type, const char *xpm_data); + virtual void RegisterRGBAImage(int type, int width, int height, + const unsigned char *pixelsImage); + virtual void ClearRegisteredImages(); + virtual void SetDoubleClickAction( + QSCI_SCI_NAMESPACE(CallBackAction) action, void *data); + virtual void SetList(const char *list, char separator, char typesep); + +private: + QsciSciListBox *slb; + int visible_rows; + bool utf8; + + typedef QMap xpmMap; + xpmMap xset; +}; diff --git a/Qt3/MacPasteboardMime.cpp b/Qt3/MacPasteboardMime.cpp new file mode 100644 index 0000000..fe93255 --- /dev/null +++ b/Qt3/MacPasteboardMime.cpp @@ -0,0 +1,116 @@ +// This module implements part of the support for rectangular selections on +// OS/X. It is a separate file to avoid clashes between OS/X and Scintilla +// data types. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include + +#if (QT_VERSION >= 0x040200 && QT_VERSION < 0x050000 && defined(Q_OS_MAC)) || (QT_VERSION >= 0x050200 && defined(Q_OS_OSX)) + +#include +#include +#include +#include +#include +#include + +#include + + +static const QLatin1String mimeRectangular("text/x-qscintilla-rectangular"); +static const QLatin1String utiRectangularMac("com.scintilla.utf16-plain-text.rectangular"); + + +class RectangularPasteboardMime : public QMacPasteboardMime +{ +public: + RectangularPasteboardMime() : QMacPasteboardMime(MIME_ALL) + { + } + + bool canConvert(const QString &mime, QString flav) + { + return mime == mimeRectangular && flav == utiRectangularMac; + } + + QList convertFromMime(const QString &, QVariant data, QString) + { + QList converted; + + converted.append(data.toByteArray()); + + return converted; + } + + QVariant convertToMime(const QString &, QList data, QString) + { + QByteArray converted; + + foreach (QByteArray i, data) + { + converted += i; + } + + return QVariant(converted); + } + + QString convertorName() + { + return QString("QScintillaRectangular"); + } + + QString flavorFor(const QString &mime) + { + if (mime == mimeRectangular) + return QString(utiRectangularMac); + + return QString(); + } + + QString mimeFor(QString flav) + { + if (flav == utiRectangularMac) + return QString(mimeRectangular); + + return QString(); + } +}; + + +// Initialise the singleton instance. +void initialiseRectangularPasteboardMime() +{ + static RectangularPasteboardMime *instance = 0; + + if (!instance) + { + instance = new RectangularPasteboardMime(); + + qRegisterDraggedTypes(QStringList(utiRectangularMac)); + } +} + + +#endif diff --git a/Qt3/PlatQt.cpp b/Qt3/PlatQt.cpp new file mode 100644 index 0000000..8d55c76 --- /dev/null +++ b/Qt3/PlatQt.cpp @@ -0,0 +1,1093 @@ +// This module implements the portability layer for the Qt port of Scintilla. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "SciNamespace.h" + +#include "Platform.h" +#include "XPM.h" + +#include "Qsci/qsciscintillabase.h" +#include "SciClasses.h" + +#include "FontQuality.h" + + +QSCI_BEGIN_SCI_NAMESPACE + +// Type convertors. +static QFont *PFont(FontID fid) +{ + return reinterpret_cast(fid); +} + +static QWidget *PWindow(WindowID wid) +{ + return reinterpret_cast(wid); +} + +static QsciSciPopup *PMenu(MenuID mid) +{ + return reinterpret_cast(mid); +} + + +// Create a Point instance from a long value. +Point Point::FromLong(long lpoint) +{ + return Point(Platform::LowShortFromLong(lpoint), + Platform::HighShortFromLong(lpoint)); +} + + +// Font management. +Font::Font() : fid(0) +{ +} + +Font::~Font() +{ +} + +void Font::Create(const FontParameters &fp) +{ + Release(); + + QFont *f = new QFont(); + + QFont::StyleStrategy strategy; + + switch (fp.extraFontFlag & SC_EFF_QUALITY_MASK) + { + case SC_EFF_QUALITY_NON_ANTIALIASED: + strategy = QFont::NoAntialias; + break; + + case SC_EFF_QUALITY_ANTIALIASED: + strategy = QFont::PreferAntialias; + break; + + default: + strategy = QFont::PreferDefault; + } + +#if defined(Q_OS_MAC) +#if QT_VERSION >= 0x040700 + strategy = static_cast(strategy | QFont::ForceIntegerMetrics); +#else +#warning "Correct handling of QFont metrics requires Qt v4.7.0 or later" +#endif +#endif + + f->setStyleStrategy(strategy); + + // If name of the font begins with a '-', assume, that it is an XLFD. + if (fp.faceName[0] == '-') + { + f->setRawName(fp.faceName); + } + else + { + f->setFamily(fp.faceName); + f->setPointSizeF(fp.size); + + // See if the Qt weight has been passed via the back door. Otherwise + // map Scintilla weights to Qt weights ensuring that the SC_WEIGHT_* + // values get mapped to the correct QFont::Weight values. + int qt_weight; + + if (fp.weight < 0) + qt_weight = -fp.weight; + else if (fp.weight <= 200) + qt_weight = QFont::Light; + else if (fp.weight <= QsciScintillaBase::SC_WEIGHT_NORMAL) + qt_weight = QFont::Normal; + else if (fp.weight <= 600) + qt_weight = QFont::DemiBold; + else if (fp.weight <= 850) + qt_weight = QFont::Bold; + else + qt_weight = QFont::Black; + + f->setWeight(qt_weight); + + f->setItalic(fp.italic); + } + + fid = f; +} + +void Font::Release() +{ + if (fid) + { + delete PFont(fid); + fid = 0; + } +} + + +// A surface abstracts a place to draw. +class SurfaceImpl : public Surface +{ +public: + SurfaceImpl(); + virtual ~SurfaceImpl(); + + void Init(WindowID wid); + void Init(SurfaceID sid, WindowID); + void Init(QPainter *p); + void InitPixMap(int width, int height, Surface *, WindowID wid); + + void Release(); + bool Initialised() {return painter;} + void PenColour(ColourDesired fore); + int LogPixelsY() {return QPaintDeviceMetrics(pd).logicalDpiY();} + int DeviceHeightFont(int points) {return points;} + void MoveTo(int x_,int y_); + void LineTo(int x_,int y_); + void Polygon(Point *pts, int npts, ColourDesired fore, + ColourDesired back); + void RectangleDraw(PRectangle rc, ColourDesired fore, + ColourDesired back); + void FillRectangle(PRectangle rc, ColourDesired back); + void FillRectangle(PRectangle rc, Surface &surfacePattern); + void RoundedRectangle(PRectangle rc, ColourDesired fore, + ColourDesired back); + void AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill, + int alphaFill, ColourDesired outline, int alphaOutline, + int flags); + void DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage); + void Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back); + void Copy(PRectangle rc, Point from, Surface &surfaceSource); + + void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore, ColourDesired back); + void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore, ColourDesired back); + void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore); + void MeasureWidths(Font &font_, const char *s, int len, + XYPOSITION *positions); + XYPOSITION WidthText(Font &font_, const char *s, int len); + XYPOSITION WidthChar(Font &font_, char ch); + XYPOSITION Ascent(Font &font_); + XYPOSITION Descent(Font &font_); + XYPOSITION InternalLeading(Font &font_) {return 0;} + XYPOSITION ExternalLeading(Font &font_); + XYPOSITION Height(Font &font_); + XYPOSITION AverageCharWidth(Font &font_); + + void SetClip(PRectangle rc); + void FlushCachedState(); + + void SetUnicodeMode(bool unicodeMode_) {unicodeMode = unicodeMode_;} + void SetDBCSMode(int codePage) {} + + void DrawXPM(PRectangle rc, const XPM *xpm); + +private: + void drawRect(const PRectangle &rc); + void drawText(const PRectangle &rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore); + static QFont convertQFont(Font &font); + QFontMetrics metrics(Font &font_); + QString convertText(const char *s, int len); + static QColor convertQColor(const ColourDesired &col, + unsigned alpha = 255); + static QRgb convertQRgb(const ColourDesired &col, unsigned alpha); + + bool unicodeMode; + QPaintDevice *pd; + QPainter *painter; + bool my_resources; + int pen_x, pen_y; +}; + +Surface *Surface::Allocate(int) +{ + return new SurfaceImpl; +} + +SurfaceImpl::SurfaceImpl() + : unicodeMode(false), pd(0), painter(0), my_resources(false), pen_x(0), + pen_y(0) +{ +} + +SurfaceImpl::~SurfaceImpl() +{ + Release(); +} + +void SurfaceImpl::Init(WindowID wid) +{ + Release(); + + pd = reinterpret_cast(wid); +} + +void SurfaceImpl::Init(SurfaceID sid, WindowID) +{ + Release(); + + // This method, and the SurfaceID type, is only used when printing. As it + // is actually a void * we pass (when using SCI_FORMATRANGE) a pointer to a + // QPainter rather than a pointer to a SurfaceImpl as might be expected. + QPainter *p = reinterpret_cast(sid); + + pd = p->device(); + painter = p; +} + +void SurfaceImpl::Init(QPainter *p) +{ + Release(); + + pd = p->device(); + painter = p; +} + +void SurfaceImpl::InitPixMap(int width, int height, Surface *, WindowID wid) +{ + Release(); + +#if QT_VERSION >= 0x050100 + int dpr = PWindow(wid)->devicePixelRatio(); + QPixmap *pixmap = new QPixmap(width * dpr, height * dpr); + pixmap->setDevicePixelRatio(dpr); +#else + QPixmap *pixmap = new QPixmap(width, height); + Q_UNUSED(wid); +#endif + + pd = pixmap; + + painter = new QPainter(pd); + my_resources = true; +} + +void SurfaceImpl::Release() +{ + if (my_resources) + { + if (painter) + delete painter; + + if (pd) + delete pd; + + my_resources = false; + } + + painter = 0; + pd = 0; +} + +void SurfaceImpl::MoveTo(int x_, int y_) +{ + Q_ASSERT(painter); + + pen_x = x_; + pen_y = y_; +} + +void SurfaceImpl::LineTo(int x_, int y_) +{ + Q_ASSERT(painter); + + painter->drawLine(pen_x, pen_y, x_, y_); + + pen_x = x_; + pen_y = y_; +} + +void SurfaceImpl::PenColour(ColourDesired fore) +{ + Q_ASSERT(painter); + + painter->setPen(convertQColor(fore)); +} + +void SurfaceImpl::Polygon(Point *pts, int npts, ColourDesired fore, + ColourDesired back) +{ + Q_ASSERT(painter); + + QPointArray qpts(npts); + + for (int i = 0; i < npts; ++i) + qpts.setPoint(i, pts[i].x, pts[i].y); + + painter->setPen(convertQColor(fore)); + painter->setBrush(convertQColor(back)); + painter->drawPolygon(qpts); +} + +void SurfaceImpl::RectangleDraw(PRectangle rc, ColourDesired fore, + ColourDesired back) +{ + Q_ASSERT(painter); + + painter->setPen(convertQColor(fore)); + painter->setBrush(convertQColor(back)); + drawRect(rc); +} + +void SurfaceImpl::FillRectangle(PRectangle rc, ColourDesired back) +{ + Q_ASSERT(painter); + + painter->setPen(Qt::NoPen); + painter->setBrush(convertQColor(back)); + drawRect(rc); +} + +void SurfaceImpl::FillRectangle(PRectangle rc, Surface &surfacePattern) +{ + Q_ASSERT(painter); + + SurfaceImpl &si = static_cast(surfacePattern); + QPixmap *pm = static_cast(si.pd); + + if (pm) + { + QBrush brsh(Qt::black, *pm); + + painter->setPen(Qt::NoPen); + painter->setBrush(brsh); + drawRect(rc); + } + else + { + FillRectangle(rc, ColourDesired(0)); + } +} + +void SurfaceImpl::RoundedRectangle(PRectangle rc, ColourDesired fore, + ColourDesired back) +{ + Q_ASSERT(painter); + + painter->setPen(convertQColor(fore)); + painter->setBrush(convertQColor(back)); + painter->drawRoundRect(rc.left, rc.top, rc.right - rc.left, + rc.bottom - rc.top); +} + +void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, + ColourDesired fill, int alphaFill, ColourDesired outline, + int alphaOutline, int) +{ + Q_ASSERT(painter); + + int w = rc.right - rc.left; + int h = rc.bottom - rc.top; + QImage img(w, h, 32); + + img.fill(convertQRgb(fill, alphaFill)); + img.setAlphaBuffer(true); + + // Assume that "cornerSize" means outline width (which it doesn't but keep + // this for historical reasons). + if (cornerSize > 0) + { + QRgb oline = convertQRgb(outline, alphaOutline); + + int linew = cornerSize; + + if (linew > w) + linew = w; + + for (int y = 0; y < h; ++y) + { + int x; + + if (y < cornerSize || y >= (h - cornerSize)) + for (x = 0; x < w; ++x) + img.setPixel(x, y, oline); + else + { + for (x = 0; x < linew; ++x) + img.setPixel(x, y, oline); + + for (x = w - 1; x >= w - linew; --x) + img.setPixel(x, y, oline); + } + } + } + + painter->drawImage(rc.left, rc.top, img); +} + +void SurfaceImpl::drawRect(const PRectangle &rc) +{ + painter->drawRect(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top); +} + +void SurfaceImpl::Ellipse(PRectangle rc, ColourDesired fore, + ColourDesired back) +{ + Q_ASSERT(painter); + + painter->setPen(convertQColor(fore)); + painter->setBrush(convertQColor(back)); + painter->drawEllipse(rc.left, rc.top, rc.right - rc.left, + rc.bottom - rc.top); +} + +void SurfaceImpl::Copy(PRectangle rc, Point from, Surface &surfaceSource) +{ + Q_ASSERT(painter); + + SurfaceImpl &si = static_cast(surfaceSource); + + if (si.pd) + { + si.painter->end(); + painter->end(); + + bitBlt(pd, rc.left, rc.top, si.pd, from.x, from.y, rc.right - rc.left, + rc.bottom - rc.top); + + si.painter->begin(si.pd); + painter->begin(pd); + } +} + +void SurfaceImpl::DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore, ColourDesired back) +{ + Q_ASSERT(painter); + + FillRectangle(rc, back); + drawText(rc, font_, ybase, s, len, fore); +} + +void SurfaceImpl::DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore, ColourDesired back) +{ + Q_ASSERT(painter); + + SetClip(rc); + DrawTextNoClip(rc, font_, ybase, s, len, fore, back); + painter->setClipping(false); +} + +void SurfaceImpl::DrawTextTransparent(PRectangle rc, Font &font_, + XYPOSITION ybase, const char *s, int len, ColourDesired fore) +{ + // Only draw if there is a non-space. + for (int i = 0; i < len; ++i) + if (s[i] != ' ') + { + drawText(rc, font_, ybase, s, len, fore); + return; + } +} + +void SurfaceImpl::drawText(const PRectangle &rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore) +{ + QString qs = convertText(s, len); + + QFont *f = PFont(font_.GetID()); + + if (f) + painter->setFont(*f); + + painter->setPen(convertQColor(fore)); + painter->drawText(rc.left, ybase, qs); +} + +void SurfaceImpl::DrawXPM(PRectangle rc, const XPM *xpm) +{ + Q_ASSERT(painter); + + XYPOSITION x, y; + const QPixmap &qpm = xpm->Pixmap(); + + x = rc.left + (rc.Width() - qpm.width()) / 2.0; + y = rc.top + (rc.Height() - qpm.height()) / 2.0; + + painter->drawPixmap(x, y, qpm); +} + +void SurfaceImpl::DrawRGBAImage(PRectangle rc, int width, int height, + const unsigned char *pixelsImage) +{ + Q_ASSERT(painter); + + const QImage *qim = reinterpret_cast(pixelsImage); + + painter->drawImage(rc.left, rc.top, *qim); +} + +void SurfaceImpl::MeasureWidths(Font &font_, const char *s, int len, + XYPOSITION *positions) +{ + QString qs = convertText(s, len); + QFontMetrics fm = metrics(font_); + + // The position for each byte of a character is the offset from the start + // where the following character should be drawn. + int i_byte = 0; + + for (int i_char = 0; i_char < qs.length(); ++i_char) + { + // We can't just add the individual character widths together because + // of kerning. + XYPOSITION width = qRound(fm.width(qs.left(i_char + 1))); + + if (unicodeMode) + { + // Set the same position for each byte of the character. + int nbytes = qs.mid(i_char, 1).utf8().length(); + + while (nbytes--) + positions[i_byte++] = width; + } + else + { + positions[i_byte++] = width; + } + } +} + +XYPOSITION SurfaceImpl::WidthText(Font &font_, const char *s, int len) +{ + return metrics(font_).width(convertText(s, len)); + +} + +XYPOSITION SurfaceImpl::WidthChar(Font &font_, char ch) +{ + return metrics(font_).width(ch); +} + +XYPOSITION SurfaceImpl::Ascent(Font &font_) +{ + return metrics(font_).ascent(); +} + +XYPOSITION SurfaceImpl::Descent(Font &font_) +{ + // Qt doesn't include the baseline in the descent, so add it. Note that + // a descent from Qt4 always seems to be 2 pixels larger (irrespective of + // font or size) than the same descent from Qt3. This means that text is a + // little more spaced out with Qt4 - and will be more noticeable with + // smaller fonts. + return metrics(font_).descent() + 1; +} + +XYPOSITION SurfaceImpl::ExternalLeading(Font &font_) +{ + // Scintilla doesn't use this at the moment, which is good because Qt4 can + // return a negative value. + return metrics(font_).leading(); +} + +XYPOSITION SurfaceImpl::Height(Font &font_) +{ + return metrics(font_).height(); +} + +XYPOSITION SurfaceImpl::AverageCharWidth(Font &font_) +{ +#if QT_VERSION >= 0x040200 + return metrics(font_).averageCharWidth(); +#else + return WidthChar(font_, 'n'); +#endif +} + +void SurfaceImpl::SetClip(PRectangle rc) +{ + Q_ASSERT(painter); + + painter->setClipRect(rc.left, rc.top, rc.right - rc.left, + rc.bottom - rc.top); +} + +void SurfaceImpl::FlushCachedState() +{ +} + +// Return the QFont for a Font. +QFont SurfaceImpl::convertQFont(Font &font) +{ + QFont *f = PFont(font.GetID()); + + if (f) + return *f; + + return QApplication::font(); +} + +// Get the metrics for a font. +QFontMetrics SurfaceImpl::metrics(Font &font_) +{ + QFont fnt = convertQFont(font_); + + if (painter && painter->isActive()) + { + painter->setFont(fnt); + + return painter->fontMetrics(); + } + + return QFontMetrics(fnt); +} + +// Convert a Scintilla string to a Qt Unicode string. +QString SurfaceImpl::convertText(const char *s, int len) +{ + if (unicodeMode) + return QString::fromUtf8(s, len); + + return QString::fromLatin1(s, len); +} + +// Convert a Scintilla colour and alpha component to a Qt QRgb. +QRgb SurfaceImpl::convertQRgb(const ColourDesired &col, unsigned alpha) +{ + long c = col.AsLong(); + + unsigned r = c & 0xff; + unsigned g = (c >> 8) & 0xff; + unsigned b = (c >> 16) & 0xff; + + return qRgba(r, g, b, alpha); +} + +// Convert a Scintilla colour, and alpha component, to a Qt QColor. +QColor SurfaceImpl::convertQColor(const ColourDesired &col, unsigned alpha) +{ + QColor c; + c.setRgb(convertQRgb(col, alpha)); + + return c; +} + + +// Window (widget) management. +Window::~Window() +{ +} + +void Window::Destroy() +{ + QWidget *w = PWindow(wid); + + if (w) + { + // Delete the widget next time round the event loop rather than + // straight away. This gets round a problem when auto-completion lists + // are cancelled after an entry has been double-clicked, ie. the list's + // dtor is called from one of the list's slots. There are other ways + // around the problem but this is the simplest and doesn't seem to + // cause problems of its own. + w->deleteLater(); + wid = 0; + } +} + +bool Window::HasFocus() +{ + return PWindow(wid)->hasFocus(); +} + +PRectangle Window::GetPosition() +{ + QWidget *w = PWindow(wid); + + // Before any size allocated pretend its big enough not to be scrolled. + PRectangle rc(0,0,5000,5000); + + if (w) + { + const QRect &r = w->geometry(); + + rc.right = r.right() - r.left() + 1; + rc.bottom = r.bottom() - r.top() + 1; + } + + return rc; +} + +void Window::SetPosition(PRectangle rc) +{ + PWindow(wid)->setGeometry(rc.left, rc.top, rc.right - rc.left, + rc.bottom - rc.top); +} + +void Window::SetPositionRelative(PRectangle rc, Window relativeTo) +{ + QWidget *rel = PWindow(relativeTo.wid); + QPoint pos = rel->mapToGlobal(rel->pos()); + + int x = pos.x() + rc.left; + int y = pos.y() + rc.top; + + PWindow(wid)->setGeometry(x, y, rc.right - rc.left, rc.bottom - rc.top); +} + +PRectangle Window::GetClientPosition() +{ + return GetPosition(); +} + +void Window::Show(bool show) +{ + QWidget *w = PWindow(wid); + + if (show) + w->show(); + else + w->hide(); +} + +void Window::InvalidateAll() +{ + QWidget *w = PWindow(wid); + + if (w) + w->update(); +} + +void Window::InvalidateRectangle(PRectangle rc) +{ + QWidget *w = PWindow(wid); + + if (w) + w->update(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top); +} + +void Window::SetFont(Font &font) +{ + PWindow(wid)->setFont(*PFont(font.GetID())); +} + +void Window::SetCursor(Cursor curs) +{ + Qt::CursorShape qc; + + switch (curs) + { + case cursorText: + qc = Qt::IbeamCursor; + break; + + case cursorUp: + qc = Qt::UpArrowCursor; + break; + + case cursorWait: + qc = Qt::WaitCursor; + break; + + case cursorHoriz: + qc = Qt::SizeHorCursor; + break; + + case cursorVert: + qc = Qt::SizeVerCursor; + break; + + case cursorHand: + qc = Qt::PointingHandCursor; + break; + + default: + // Note that Qt doesn't have a standard cursor that could be used to + // implement cursorReverseArrow. + qc = Qt::ArrowCursor; + } + + PWindow(wid)->setCursor(qc); +} + +void Window::SetTitle(const char *s) +{ + PWindow(wid)->setCaption(s); +} + + +PRectangle Window::GetMonitorRect(Point) +{ + return PRectangle(); +} + + +// Menu management. +Menu::Menu() : mid(0) +{ +} + +void Menu::CreatePopUp() +{ + Destroy(); + mid = new QsciSciPopup(); +} + +void Menu::Destroy() +{ + QsciSciPopup *m = PMenu(mid); + + if (m) + { + delete m; + mid = 0; + } +} + +void Menu::Show(Point pt, Window &) +{ + PMenu(mid)->popup(QPoint(pt.x, pt.y)); +} + + +class DynamicLibraryImpl : public DynamicLibrary +{ +public: + DynamicLibraryImpl(const char *modulePath) + { + m = new QLibrary(modulePath); + m->load(); + } + + virtual ~DynamicLibraryImpl() + { + if (m) + delete m; + } + + virtual Function FindFunction(const char *name) + { + if (m) + return (Function)m->resolve(name); + + return 0; + } + + virtual bool IsValid() + { + return m && m->isLoaded(); + } + +private: + QLibrary* m; +}; + +DynamicLibrary *DynamicLibrary::Load(const char *modulePath) +{ + return new DynamicLibraryImpl(modulePath); +} + + +// Elapsed time. This implementation assumes that the maximum elapsed time is +// less than 48 hours. +ElapsedTime::ElapsedTime() +{ + QTime now = QTime::currentTime(); + + bigBit = now.hour() * 60 * 60 + now.minute() * 60 + now.second(); + littleBit = now.msec(); +} + +double ElapsedTime::Duration(bool reset) +{ + long endBigBit, endLittleBit; + QTime now = QTime::currentTime(); + + endBigBit = now.hour() * 60 * 60 + now.minute() * 60 + now.second(); + endLittleBit = now.msec(); + + double duration = endBigBit - bigBit; + + if (duration < 0 || (duration == 0 && endLittleBit < littleBit)) + duration += 24 * 60 * 60; + + duration += (endLittleBit - littleBit) / 1000.0; + + if (reset) + { + bigBit = endBigBit; + littleBit = endLittleBit; + } + + return duration; +} + + +// Manage system wide parameters. +ColourDesired Platform::Chrome() +{ + return ColourDesired(0xe0,0xe0,0xe0); +} + +ColourDesired Platform::ChromeHighlight() +{ + return ColourDesired(0xff,0xff,0xff); +} + +const char *Platform::DefaultFont() +{ + return QApplication::font().family().ascii(); +} + +int Platform::DefaultFontSize() +{ + return QApplication::font().pointSize(); +} + +unsigned int Platform::DoubleClickTime() +{ + return QApplication::doubleClickInterval(); +} + +bool Platform::MouseButtonBounce() +{ + return true; +} + +void Platform::DebugDisplay(const char *s) +{ + qDebug("%s", s); +} + +bool Platform::IsKeyDown(int) +{ + return false; +} + +long Platform::SendScintilla(WindowID w, unsigned int msg, + unsigned long wParam, long lParam) +{ + // This is never called. + return 0; +} + +long Platform::SendScintillaPointer(WindowID w, unsigned int msg, + unsigned long wParam, void *lParam) +{ + // This is never called. + return 0; +} + +bool Platform::IsDBCSLeadByte(int, char) +{ + // We don't support DBCS. + return false; +} + +int Platform::DBCSCharLength(int, const char *) +{ + // We don't support DBCS. + return 1; +} + +int Platform::DBCSCharMaxLength() +{ + // We don't support DBCS. + return 2; +} + +int Platform::Minimum(int a, int b) +{ + return (a < b) ? a : b; +} + +int Platform::Maximum(int a, int b) +{ + return (a > b) ? a : b; +} + +int Platform::Clamp(int val, int minVal, int maxVal) +{ + if (val > maxVal) + val = maxVal; + + if (val < minVal) + val = minVal; + + return val; +} + + +//#define TRACE + +#ifdef TRACE +void Platform::DebugPrintf(const char *format, ...) +{ + char buffer[2000]; + va_list pArguments; + + va_start(pArguments, format); + vsprintf(buffer, format, pArguments); + va_end(pArguments); + + DebugDisplay(buffer); +} +#else +void Platform::DebugPrintf(const char *, ...) +{ +} +#endif + +static bool assertionPopUps = true; + +bool Platform::ShowAssertionPopUps(bool assertionPopUps_) +{ + bool ret = assertionPopUps; + + assertionPopUps = assertionPopUps_; + + return ret; +} + +void Platform::Assert(const char *c, const char *file, int line) +{ + qFatal("Assertion [%s] failed at %s %d\n", c, file, line); +} + +QSCI_END_SCI_NAMESPACE diff --git a/Qt3/Qsci/qsciabstractapis.h b/Qt3/Qsci/qsciabstractapis.h new file mode 100644 index 0000000..3c367b9 --- /dev/null +++ b/Qt3/Qsci/qsciabstractapis.h @@ -0,0 +1,106 @@ +// This module defines interface to the QsciAbstractAPIs class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIABSTRACTAPIS_H +#define QSCIABSTRACTAPIS_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include + +#include + +#include +#include + + +class QsciLexer; + + +//! \brief The QsciAbstractAPIs class represents the interface to the textual +//! API information used in call tips and for auto-completion. A sub-class +//! will provide the actual implementation of the interface. +//! +//! API information is specific to a particular language lexer but can be +//! shared by multiple instances of the lexer. +class QSCINTILLA_EXPORT QsciAbstractAPIs : public QObject +{ + Q_OBJECT + +public: + //! Constructs a QsciAbstractAPIs instance attached to lexer \a lexer and + //! with name \a name. \a lexer becomes the instance's parent object + //! although the instance can also be subsequently attached to other + //! lexers. + QsciAbstractAPIs(QsciLexer *lexer, const char *name = 0); + + //! Destroy the QsciAbstractAPIs instance. + virtual ~QsciAbstractAPIs(); + + //! Return the lexer that the instance is attached to. + QsciLexer *lexer() const; + + //! Update the list \a list with API entries derived from \a context. \a + //! context is the list of words in the text preceding the cursor position. + //! The characters that make up a word and the characters that separate + //! words are defined by the lexer. The last word is a partial word and + //! may be empty if the user has just entered a word separator. + virtual void updateAutoCompletionList(const QStringList &context, + QStringList &list) = 0; + + //! This is called when the user selects the entry \a selection from the + //! auto-completion list. A sub-class can use this as a hint to provide + //! more specific API entries in future calls to + //! updateAutoCompletionList(). The default implementation does nothing. + virtual void autoCompletionSelected(const QString &selection); + + //! Return the call tips valid for the context \a context. (Note that the + //! last word of the context will always be empty.) \a commas is the number + //! of commas the user has typed after the context and before the cursor + //! position. The exact position of the list of call tips can be adjusted + //! by specifying a corresponding left character shift in \a shifts. This + //! is normally done to correct for any displayed context according to \a + //! style. + //! + //! \sa updateAutoCompletionList() + virtual QStringList callTips(const QStringList &context, int commas, + QsciScintilla::CallTipsStyle style, + QValueList &shifts) = 0; + +private: + QsciLexer *lex; + + QsciAbstractAPIs(const QsciAbstractAPIs &); + QsciAbstractAPIs &operator=(const QsciAbstractAPIs &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qsciapis.h b/Qt3/Qsci/qsciapis.h new file mode 100644 index 0000000..f7e14bc --- /dev/null +++ b/Qt3/Qsci/qsciapis.h @@ -0,0 +1,228 @@ +// This module defines interface to the QsciAPIs class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIAPIS_H +#define QSCIAPIS_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include +#include + +#include + +#include +#include +#include + + +class QsciAPIsPrepared; +class QsciAPIsWorker; +class QsciLexer; + + +//! \brief The QsciAPIs class provies an implementation of the textual API +//! information used in call tips and for auto-completion. +//! +//! Raw API information is read from one or more files. Each API function is +//! described by a single line of text comprising the function's name, followed +//! by the function's optional comma separated parameters enclosed in +//! parenthesis, and finally followed by optional explanatory text. +//! +//! A function name may be followed by a `?' and a number. The number is used +//! by auto-completion to display a registered QPixmap with the function name. +//! +//! All function names are used by auto-completion, but only those that include +//! function parameters are used in call tips. +//! +//! QScintilla only deals with prepared API information and not the raw +//! information described above. This is done so that large APIs can be +//! handled while still being responsive to user input. The conversion of raw +//! information to prepared information is time consuming (think tens of +//! seconds) and implemented in a separate thread. Prepared information can +//! be quickly saved to and loaded from files. Such files are portable between +//! different architectures. +//! +//! QScintilla based applications that want to support large APIs would +//! normally provide the user with the ability to specify a set of, possibly +//! project specific, raw API files and convert them to prepared files that are +//! loaded quickly when the application is invoked. +class QSCINTILLA_EXPORT QsciAPIs : public QsciAbstractAPIs +{ + Q_OBJECT + +public: + //! Constructs a QsciAPIs instance attached to lexer \a lexer and with name + //! \a name. \a lexer becomes the instance's parent object although the + //! instance can also be subsequently attached to other lexers. + QsciAPIs(QsciLexer *lexer, const char *name = 0); + + //! Destroy the QsciAPIs instance. + virtual ~QsciAPIs(); + + //! Add the single raw API entry \a entry to the current set. + //! + //! \sa clear(), load(), remove() + void add(const QString &entry); + + //! Deletes all raw API information. + //! + //! \sa add(), load(), remove() + void clear(); + + //! Load the API information from the file named \a filename, adding it to + //! the current set. Returns true if successful, otherwise false. + bool load(const QString &filename); + + //! Remove the single raw API entry \a entry from the current set. + //! + //! \sa add(), clear(), load() + void remove(const QString &entry); + + //! Convert the current raw API information to prepared API information. + //! This is implemented by a separate thread. + //! + //! \sa cancelPreparation() + void prepare(); + + //! Cancel the conversion of the current raw API information to prepared + //! API information. + //! + //! \sa prepare() + void cancelPreparation(); + + //! Return the default name of the prepared API information file. It is + //! based on the name of the associated lexer and in the directory defined + //! by the QSCIDIR environment variable. If the environment variable isn't + //! set then $HOME/.qsci is used. + QString defaultPreparedName() const; + + //! Check to see is a prepared API information file named \a filename + //! exists. If \a filename is empty then the value returned by + //! defaultPreparedName() is used. Returns true if successful, otherwise + //! false. + //! + //! \sa defaultPreparedName() + bool isPrepared(const QString &filename = QString()) const; + + //! Load the prepared API information from the file named \a filename. If + //! \a filename is empty then a name is constructed based on the name of + //! the associated lexer and saved in the directory defined by the QSCIDIR + //! environment variable. If the environment variable isn't set then + //! $HOME/.qsci is used. Returns true if successful, otherwise false. + bool loadPrepared(const QString &filename = QString()); + + //! Save the prepared API information to the file named \a filename. If + //! \a filename is empty then a name is constructed based on the name of + //! the associated lexer and saved in the directory defined by the QSCIDIR + //! environment variable. If the environment variable isn't set then + //! $HOME/.qsci is used. Returns true if successful, otherwise false. + bool savePrepared(const QString &filename = QString()) const; + + //! \reimp + virtual void updateAutoCompletionList(const QStringList &context, + QStringList &list); + + //! \reimp + virtual void autoCompletionSelected(const QString &sel); + + //! \reimp + virtual QStringList callTips(const QStringList &context, int commas, + QsciScintilla::CallTipsStyle style, + QValueList &shifts); + + //! \internal Reimplemented to receive termination events from the worker + //! thread. + virtual bool event(QEvent *e); + + //! Return a list of the installed raw API file names for the associated + //! lexer. + QStringList installedAPIFiles() const; + +signals: + //! This signal is emitted when the conversion of raw API information to + //! prepared API information has been cancelled. + //! + //! \sa apiPreparationFinished(), apiPreparationStarted() + void apiPreparationCancelled(); + + //! This signal is emitted when the conversion of raw API information to + //! prepared API information starts and can be used to give some visual + //! feedback to the user. + //! + //! \sa apiPreparationCancelled(), apiPreparationFinished() + void apiPreparationStarted(); + + //! This signal is emitted when the conversion of raw API information to + //! prepared API information has finished. + //! + //! \sa apiPreparationCancelled(), apiPreparationStarted() + void apiPreparationFinished(); + +private: + friend class QsciAPIsPrepared; + friend class QsciAPIsWorker; + + // This indexes a word in a set of raw APIs. The first part indexes the + // entry in the set, the second part indexes the word within the entry. + typedef QPair WordIndex; + + // This is a list of word indexes. + typedef QValueList WordIndexList; + + QsciAPIsWorker *worker; + QStringList old_context; + QStringList::const_iterator origin; + int origin_len; + QString unambiguous_context; + QStringList apis; + QsciAPIsPrepared *prep; + + static bool enoughCommas(const QString &s, int commas); + + QStringList positionOrigin(const QStringList &context, QString &path); + bool originStartsWith(const QString &path, const QString &wsep); + const WordIndexList *wordIndexOf(const QString &word) const; + void lastCompleteWord(const QString &word, QStringList &with_context, + bool &unambig); + void lastPartialWord(const QString &word, QStringList &with_context, + bool &unambig); + void addAPIEntries(const WordIndexList &wl, bool complete, + QStringList &with_context, bool &unambig); + QString prepName(const QString &filename, bool mkpath = false) const; + void deleteWorker(); + + QsciAPIs(const QsciAPIs &); + QsciAPIs &operator=(const QsciAPIs &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscicommand.h b/Qt3/Qsci/qscicommand.h new file mode 100644 index 0000000..7a8745a --- /dev/null +++ b/Qt3/Qsci/qscicommand.h @@ -0,0 +1,418 @@ +// This defines the interface to the QsciCommand class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCICOMMAND_H +#define QSCICOMMAND_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +class QsciScintilla; + + +//! \brief The QsciCommand class represents an internal editor command that may +//! have one or two keys bound to it. +//! +//! Methods are provided to change the keys bound to the command and to remove +//! a key binding. Each command has a user friendly description of the command +//! for use in key mapping dialogs. +class QSCINTILLA_EXPORT QsciCommand +{ +public: + //! This enum defines the different commands that can be assigned to a key. + enum Command { + //! Move down one line. + LineDown = QsciScintillaBase::SCI_LINEDOWN, + + //! Extend the selection down one line. + LineDownExtend = QsciScintillaBase::SCI_LINEDOWNEXTEND, + + //! Extend the rectangular selection down one line. + LineDownRectExtend = QsciScintillaBase::SCI_LINEDOWNRECTEXTEND, + + //! Scroll the view down one line. + LineScrollDown = QsciScintillaBase::SCI_LINESCROLLDOWN, + + //! Move up one line. + LineUp = QsciScintillaBase::SCI_LINEUP, + + //! Extend the selection up one line. + LineUpExtend = QsciScintillaBase::SCI_LINEUPEXTEND, + + //! Extend the rectangular selection up one line. + LineUpRectExtend = QsciScintillaBase::SCI_LINEUPRECTEXTEND, + + //! Scroll the view up one line. + LineScrollUp = QsciScintillaBase::SCI_LINESCROLLUP, + + //! Scroll to the start of the document. + ScrollToStart = QsciScintillaBase::SCI_SCROLLTOSTART, + + //! Scroll to the end of the document. + ScrollToEnd = QsciScintillaBase::SCI_SCROLLTOEND, + + //! Scroll vertically to centre the current line. + VerticalCentreCaret = QsciScintillaBase::SCI_VERTICALCENTRECARET, + + //! Move down one paragraph. + ParaDown = QsciScintillaBase::SCI_PARADOWN, + + //! Extend the selection down one paragraph. + ParaDownExtend = QsciScintillaBase::SCI_PARADOWNEXTEND, + + //! Move up one paragraph. + ParaUp = QsciScintillaBase::SCI_PARAUP, + + //! Extend the selection up one paragraph. + ParaUpExtend = QsciScintillaBase::SCI_PARAUPEXTEND, + + //! Move left one character. + CharLeft = QsciScintillaBase::SCI_CHARLEFT, + + //! Extend the selection left one character. + CharLeftExtend = QsciScintillaBase::SCI_CHARLEFTEXTEND, + + //! Extend the rectangular selection left one character. + CharLeftRectExtend = QsciScintillaBase::SCI_CHARLEFTRECTEXTEND, + + //! Move right one character. + CharRight = QsciScintillaBase::SCI_CHARRIGHT, + + //! Extend the selection right one character. + CharRightExtend = QsciScintillaBase::SCI_CHARRIGHTEXTEND, + + //! Extend the rectangular selection right one character. + CharRightRectExtend = QsciScintillaBase::SCI_CHARRIGHTRECTEXTEND, + + //! Move left one word. + WordLeft = QsciScintillaBase::SCI_WORDLEFT, + + //! Extend the selection left one word. + WordLeftExtend = QsciScintillaBase::SCI_WORDLEFTEXTEND, + + //! Move right one word. + WordRight = QsciScintillaBase::SCI_WORDRIGHT, + + //! Extend the selection right one word. + WordRightExtend = QsciScintillaBase::SCI_WORDRIGHTEXTEND, + + //! Move to the end of the previous word. + WordLeftEnd = QsciScintillaBase::SCI_WORDLEFTEND, + + //! Extend the selection to the end of the previous word. + WordLeftEndExtend = QsciScintillaBase::SCI_WORDLEFTENDEXTEND, + + //! Move to the end of the next word. + WordRightEnd = QsciScintillaBase::SCI_WORDRIGHTEND, + + //! Extend the selection to the end of the next word. + WordRightEndExtend = QsciScintillaBase::SCI_WORDRIGHTENDEXTEND, + + //! Move left one word part. + WordPartLeft = QsciScintillaBase::SCI_WORDPARTLEFT, + + //! Extend the selection left one word part. + WordPartLeftExtend = QsciScintillaBase::SCI_WORDPARTLEFTEXTEND, + + //! Move right one word part. + WordPartRight = QsciScintillaBase::SCI_WORDPARTRIGHT, + + //! Extend the selection right one word part. + WordPartRightExtend = QsciScintillaBase::SCI_WORDPARTRIGHTEXTEND, + + //! Move to the start of the document line. + Home = QsciScintillaBase::SCI_HOME, + + //! Extend the selection to the start of the document line. + HomeExtend = QsciScintillaBase::SCI_HOMEEXTEND, + + //! Extend the rectangular selection to the start of the document line. + HomeRectExtend = QsciScintillaBase::SCI_HOMERECTEXTEND, + + //! Move to the start of the displayed line. + HomeDisplay = QsciScintillaBase::SCI_HOMEDISPLAY, + + //! Extend the selection to the start of the displayed line. + HomeDisplayExtend = QsciScintillaBase::SCI_HOMEDISPLAYEXTEND, + + //! Move to the start of the displayed or document line. + HomeWrap = QsciScintillaBase::SCI_HOMEWRAP, + + //! Extend the selection to the start of the displayed or document + //! line. + HomeWrapExtend = QsciScintillaBase::SCI_HOMEWRAPEXTEND, + + //! Move to the first visible character in the document line. + VCHome = QsciScintillaBase::SCI_VCHOME, + + //! Extend the selection to the first visible character in the document + //! line. + VCHomeExtend = QsciScintillaBase::SCI_VCHOMEEXTEND, + + //! Extend the rectangular selection to the first visible character in + //! the document line. + VCHomeRectExtend = QsciScintillaBase::SCI_VCHOMERECTEXTEND, + + //! Move to the first visible character of the displayed or document + //! line. + VCHomeWrap = QsciScintillaBase::SCI_VCHOMEWRAP, + + //! Extend the selection to the first visible character of the + //! displayed or document line. + VCHomeWrapExtend = QsciScintillaBase::SCI_VCHOMEWRAPEXTEND, + + //! Move to the end of the document line. + LineEnd = QsciScintillaBase::SCI_LINEEND, + + //! Extend the selection to the end of the document line. + LineEndExtend = QsciScintillaBase::SCI_LINEENDEXTEND, + + //! Extend the rectangular selection to the end of the document line. + LineEndRectExtend = QsciScintillaBase::SCI_LINEENDRECTEXTEND, + + //! Move to the end of the displayed line. + LineEndDisplay = QsciScintillaBase::SCI_LINEENDDISPLAY, + + //! Extend the selection to the end of the displayed line. + LineEndDisplayExtend = QsciScintillaBase::SCI_LINEENDDISPLAYEXTEND, + + //! Move to the end of the displayed or document line. + LineEndWrap = QsciScintillaBase::SCI_LINEENDWRAP, + + //! Extend the selection to the end of the displayed or document line. + LineEndWrapExtend = QsciScintillaBase::SCI_LINEENDWRAPEXTEND, + + //! Move to the start of the document. + DocumentStart = QsciScintillaBase::SCI_DOCUMENTSTART, + + //! Extend the selection to the start of the document. + DocumentStartExtend = QsciScintillaBase::SCI_DOCUMENTSTARTEXTEND, + + //! Move to the end of the document. + DocumentEnd = QsciScintillaBase::SCI_DOCUMENTEND, + + //! Extend the selection to the end of the document. + DocumentEndExtend = QsciScintillaBase::SCI_DOCUMENTENDEXTEND, + + //! Move up one page. + PageUp = QsciScintillaBase::SCI_PAGEUP, + + //! Extend the selection up one page. + PageUpExtend = QsciScintillaBase::SCI_PAGEUPEXTEND, + + //! Extend the rectangular selection up one page. + PageUpRectExtend = QsciScintillaBase::SCI_PAGEUPRECTEXTEND, + + //! Move down one page. + PageDown = QsciScintillaBase::SCI_PAGEDOWN, + + //! Extend the selection down one page. + PageDownExtend = QsciScintillaBase::SCI_PAGEDOWNEXTEND, + + //! Extend the rectangular selection down one page. + PageDownRectExtend = QsciScintillaBase::SCI_PAGEDOWNRECTEXTEND, + + //! Stuttered move up one page. + StutteredPageUp = QsciScintillaBase::SCI_STUTTEREDPAGEUP, + + //! Stuttered extend the selection up one page. + StutteredPageUpExtend = QsciScintillaBase::SCI_STUTTEREDPAGEUPEXTEND, + + //! Stuttered move down one page. + StutteredPageDown = QsciScintillaBase::SCI_STUTTEREDPAGEDOWN, + + //! Stuttered extend the selection down one page. + StutteredPageDownExtend = QsciScintillaBase::SCI_STUTTEREDPAGEDOWNEXTEND, + + //! Delete the current character. + Delete = QsciScintillaBase::SCI_CLEAR, + + //! Delete the previous character. + DeleteBack = QsciScintillaBase::SCI_DELETEBACK, + + //! Delete the previous character if not at start of line. + DeleteBackNotLine = QsciScintillaBase::SCI_DELETEBACKNOTLINE, + + //! Delete the word to the left. + DeleteWordLeft = QsciScintillaBase::SCI_DELWORDLEFT, + + //! Delete the word to the right. + DeleteWordRight = QsciScintillaBase::SCI_DELWORDRIGHT, + + //! Delete right to the end of the next word. + DeleteWordRightEnd = QsciScintillaBase::SCI_DELWORDRIGHTEND, + + //! Delete the line to the left. + DeleteLineLeft = QsciScintillaBase::SCI_DELLINELEFT, + + //! Delete the line to the right. + DeleteLineRight = QsciScintillaBase::SCI_DELLINERIGHT, + + //! Delete the current line. + LineDelete = QsciScintillaBase::SCI_LINEDELETE, + + //! Cut the current line to the clipboard. + LineCut = QsciScintillaBase::SCI_LINECUT, + + //! Copy the current line to the clipboard. + LineCopy = QsciScintillaBase::SCI_LINECOPY, + + //! Transpose the current and previous lines. + LineTranspose = QsciScintillaBase::SCI_LINETRANSPOSE, + + //! Duplicate the current line. + LineDuplicate = QsciScintillaBase::SCI_LINEDUPLICATE, + + //! Select the whole document. + SelectAll = QsciScintillaBase::SCI_SELECTALL, + + //! Move the selected lines up one line. + MoveSelectedLinesUp = QsciScintillaBase::SCI_MOVESELECTEDLINESUP, + + //! Move the selected lines down one line. + MoveSelectedLinesDown = QsciScintillaBase::SCI_MOVESELECTEDLINESDOWN, + + //! Duplicate the selection. + SelectionDuplicate = QsciScintillaBase::SCI_SELECTIONDUPLICATE, + + //! Convert the selection to lower case. + SelectionLowerCase = QsciScintillaBase::SCI_LOWERCASE, + + //! Convert the selection to upper case. + SelectionUpperCase = QsciScintillaBase::SCI_UPPERCASE, + + //! Cut the selection to the clipboard. + SelectionCut = QsciScintillaBase::SCI_CUT, + + //! Copy the selection to the clipboard. + SelectionCopy = QsciScintillaBase::SCI_COPY, + + //! Paste from the clipboard. + Paste = QsciScintillaBase::SCI_PASTE, + + //! Toggle insert/overtype. + EditToggleOvertype = QsciScintillaBase::SCI_EDITTOGGLEOVERTYPE, + + //! Insert a platform dependent newline. + Newline = QsciScintillaBase::SCI_NEWLINE, + + //! Insert a formfeed. + Formfeed = QsciScintillaBase::SCI_FORMFEED, + + //! Indent one level. + Tab = QsciScintillaBase::SCI_TAB, + + //! De-indent one level. + Backtab = QsciScintillaBase::SCI_BACKTAB, + + //! Cancel any current operation. + Cancel = QsciScintillaBase::SCI_CANCEL, + + //! Undo the last command. + Undo = QsciScintillaBase::SCI_UNDO, + + //! Redo the last command. + Redo = QsciScintillaBase::SCI_REDO, + + //! Zoom in. + ZoomIn = QsciScintillaBase::SCI_ZOOMIN, + + //! Zoom out. + ZoomOut = QsciScintillaBase::SCI_ZOOMOUT, + }; + + //! Return the command that will be executed by this instance. + Command command() const {return scicmd;} + + //! Execute the command. + void execute(); + + //! Binds the key \a key to the command. If \a key is 0 then the key + //! binding is removed. If \a key is invalid then the key binding is + //! unchanged. Valid keys are any visible or control character or any + //! of \c Qt::Key_Down, \c Qt::Key_Up, \c Qt::Key_Left, \c Qt::Key_Right, + //! \c Qt::Key_Home, \c Qt::Key_End, \c Qt::Key_PageUp, + //! \c Qt::Key_PageDown, \c Qt::Key_Delete, \c Qt::Key_Insert, + //! \c Qt::Key_Escape, \c Qt::Key_Backspace, \c Qt::Key_Tab, + //! \c Qt::Key_Backtab, \c Qt::Key_Return, \c Qt::Key_Enter, + //! \c Qt::Key_Super_L, \c Qt::Key_Super_R or \c Qt::Key_Menu. Keys may be + //! modified with any combination of \c Qt::ShiftModifier, + //! \c Qt::ControlModifier, \c Qt::AltModifier and \c Qt::MetaModifier. + //! + //! \sa key(), setAlternateKey(), validKey() + void setKey(int key); + + //! Binds the alternate key \a altkey to the command. If \a key is 0 + //! then the alternate key binding is removed. + //! + //! \sa alternateKey(), setKey(), validKey() + void setAlternateKey(int altkey); + + //! The key that is currently bound to the command is returned. + //! + //! \sa setKey(), alternateKey() + int key() const {return qkey;} + + //! The alternate key that is currently bound to the command is + //! returned. + //! + //! \sa setAlternateKey(), key() + int alternateKey() const {return qaltkey;} + + //! If the key \a key is valid then true is returned. + static bool validKey(int key); + + //! The user friendly description of the command is returned. + QString description() const; + +private: + friend class QsciCommandSet; + + QsciCommand(QsciScintilla *qs, Command cmd, int key, int altkey, + const char *desc); + + void bindKey(int key,int &qk,int &scik); + + QsciScintilla *qsCmd; + Command scicmd; + int qkey, scikey, qaltkey, scialtkey; + const char *descCmd; + + QsciCommand(const QsciCommand &); + QsciCommand &operator=(const QsciCommand &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscicommandset.h b/Qt3/Qsci/qscicommandset.h new file mode 100644 index 0000000..6af2927 --- /dev/null +++ b/Qt3/Qsci/qscicommandset.h @@ -0,0 +1,102 @@ +// This defines the interface to the QsciCommandSet class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCICOMMANDSET_H +#define QSCICOMMANDSET_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include + +#include +#include + + +QT_BEGIN_NAMESPACE +class QSettings; +QT_END_NAMESPACE + +class QsciScintilla; + + +//! \brief The QsciCommandSet class represents the set of all internal editor +//! commands that may have keys bound. +//! +//! Methods are provided to access the individual commands and to read and +//! write the current bindings from and to settings files. +class QSCINTILLA_EXPORT QsciCommandSet +{ +public: + //! The key bindings for each command in the set are read from the + //! settings \a qs. \a prefix is prepended to the key of each entry. + //! true is returned if there was no error. + //! + //! \sa writeSettings() + bool readSettings(QSettings &qs, const char *prefix = "/Scintilla"); + + //! The key bindings for each command in the set are written to the + //! settings \a qs. \a prefix is prepended to the key of each entry. + //! true is returned if there was no error. + //! + //! \sa readSettings() + bool writeSettings(QSettings &qs, const char *prefix = "/Scintilla"); + + //! The commands in the set are returned as a list. + QPtrList &commands() {return cmds;} + + //! The primary keys bindings for all commands are removed. + void clearKeys(); + + //! The alternate keys bindings for all commands are removed. + void clearAlternateKeys(); + + // Find the command that is bound to \a key. + QsciCommand *boundTo(int key) const; + + // Find a specific command \a command. + QsciCommand *find(QsciCommand::Command command) const; + +private: + friend class QsciScintilla; + + QsciCommandSet(QsciScintilla *qs); + ~QsciCommandSet(); + + QsciScintilla *qsci; + QPtrList cmds; + + QsciCommandSet(const QsciCommandSet &); + QsciCommandSet &operator=(const QsciCommandSet &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscidocument.h b/Qt3/Qsci/qscidocument.h new file mode 100644 index 0000000..8264317 --- /dev/null +++ b/Qt3/Qsci/qscidocument.h @@ -0,0 +1,74 @@ +// This defines the interface to the QsciDocument class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIDOCUMENT_H +#define QSCIDOCUMENT_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + + +class QsciScintillaBase; +class QsciDocumentP; + + +//! \brief The QsciDocument class represents a document to be edited. +//! +//! It is an opaque class that can be attached to multiple instances of +//! QsciScintilla to create different simultaneous views of the same document. +//! QsciDocument uses implicit sharing so that copying class instances is a +//! cheap operation. +class QSCINTILLA_EXPORT QsciDocument +{ +public: + //! Create a new unattached document. + QsciDocument(); + virtual ~QsciDocument(); + + QsciDocument(const QsciDocument &); + QsciDocument &operator=(const QsciDocument &); + +private: + friend class QsciScintilla; + + void attach(const QsciDocument &that); + void detach(); + void display(QsciScintillaBase *qsb, const QsciDocument *from); + void undisplay(QsciScintillaBase *qsb); + + bool isModified() const; + void setModified(bool m); + + QsciDocumentP *pdoc; +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qsciglobal.h b/Qt3/Qsci/qsciglobal.h new file mode 100644 index 0000000..dae1532 --- /dev/null +++ b/Qt3/Qsci/qsciglobal.h @@ -0,0 +1,67 @@ +// This module defines various things common to all of the Scintilla Qt port. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIGLOBAL_H +#define QSCIGLOBAL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + + +#define QSCINTILLA_VERSION 0x020804 +#define QSCINTILLA_VERSION_STR "2.8.4" + + +// Under Windows, define QSCINTILLA_MAKE_DLL to create a Scintilla DLL, or +// define QSCINTILLA_DLL to link against a Scintilla DLL, or define neither +// to either build or link against a static Scintilla library. +#if defined(Q_OS_WIN) + +#if defined(QSCINTILLA_DLL) +#define QSCINTILLA_EXPORT __declspec(dllimport) +#elif defined(QSCINTILLA_MAKE_DLL) +#define QSCINTILLA_EXPORT __declspec(dllexport) +#endif + +#endif + +#if !defined(QSCINTILLA_EXPORT) +#define QSCINTILLA_EXPORT +#endif + + +#if !defined(QT_BEGIN_NAMESPACE) +#define QT_BEGIN_NAMESPACE +#define QT_END_NAMESPACE +#endif + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexer.h b/Qt3/Qsci/qscilexer.h new file mode 100644 index 0000000..aaf1215 --- /dev/null +++ b/Qt3/Qsci/qscilexer.h @@ -0,0 +1,363 @@ +// This defines the interface to the QsciLexer class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXER_H +#define QSCILEXER_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include +#include +#include +#include + +#include + + +QT_BEGIN_NAMESPACE +class QSettings; +QT_END_NAMESPACE + +class QsciAbstractAPIs; +class QsciScintilla; + + +//! \brief The QsciLexer class is an abstract class used as a base for language +//! lexers. +//! +//! A lexer scans the text breaking it up into separate language objects, e.g. +//! keywords, strings, operators. The lexer then uses a different style to +//! draw each object. A style is identified by a style number and has a number +//! of attributes, including colour and font. A specific language lexer will +//! implement appropriate default styles which can be overriden by an +//! application by further sub-classing the specific language lexer. +//! +//! A lexer may provide one or more sets of words to be recognised as keywords. +//! Most lexers only provide one set, but some may support languages embedded +//! in other languages and provide several sets. +//! +//! QsciLexer provides convenience methods for saving and restoring user +//! preferences for fonts and colours. +//! +//! If you want to write a lexer for a new language then you can add it to the +//! underlying Scintilla code and implement a corresponding QsciLexer sub-class +//! to manage the different styles used. Alternatively you can implement a +//! sub-class of QsciLexerCustom. +class QSCINTILLA_EXPORT QsciLexer : public QObject +{ + Q_OBJECT + +public: + //! Construct a QsciLexer with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexer(QObject *parent = 0, const char *name = 0); + + //! Destroy the QSciLexer. + virtual ~QsciLexer(); + + //! Returns the name of the language. It must be re-implemented by a + //! sub-class. + virtual const char *language() const = 0; + + //! Returns the name of the lexer. If 0 is returned then the lexer's + //! numeric identifier is used. The default implementation returns 0. + //! + //! \sa lexerId() + virtual const char *lexer() const; + + //! Returns the identifier (i.e. a QsciScintillaBase::SCLEX_* value) of the + //! lexer. This is only used if lexer() returns 0. The default + //! implementation returns QsciScintillaBase::SCLEX_CONTAINER. + //! + //! \sa lexer() + virtual int lexerId() const; + + //! Returns the current API set or 0 if there isn't one. + //! + //! \sa setAPIs() + QsciAbstractAPIs *apis() const; + + //! \internal Returns the characters that can fill up auto-completion. + virtual const char *autoCompletionFillups() const; + + //! \internal Returns the list of character sequences that can separate + //! auto-completion words. The first in the list is assumed to be the + //! sequence used to separate words in the lexer's API files. + virtual QStringList autoCompletionWordSeparators() const; + + //! Returns the auto-indentation style. The default is 0 if the + //! language is block structured, or QsciScintilla::AiMaintain if not. + //! + //! \sa setAutoIndentStyle(), QsciScintilla::AiMaintain, + //! QsciScintilla::AiOpening, QsciScintilla::AiClosing + int autoIndentStyle(); + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The style is returned via \a style. + virtual const char *blockEnd(int *style = 0) const; + + //! \internal Returns the number of lines prior to the current one when + //! determining the scope of a block when auto-indenting. + virtual int blockLookback() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The style is returned via \a style. + virtual const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a + //! particular style that define the start of a block for + //! auto-indentation. The style is returned via \a style. + virtual const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + virtual int braceStyle() const; + + //! \internal Returns true if the language is case sensitive. The default + //! is true. + virtual bool caseSensitive() const; + + //! Returns the foreground colour of the text for style number \a style. + //! The default colour is that returned by defaultColor(). + //! + //! \sa defaultColor(), paper() + virtual QColor color(int style) const; + + //! Returns the end-of-line for style number \a style. The default is + //! false. + virtual bool eolFill(int style) const; + + //! Returns the font for style number \a style. The default font is + //! that returned by defaultFont(). + //! + //! \sa defaultFont() + virtual QFont font(int style) const; + + //! \internal Returns the view used for indentation guides. + virtual int indentationGuideView() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. 0 is returned if there + //! is no such set. + virtual const char *keywords(int set) const; + + //! \internal Returns the number of the style used for whitespace. The + //! default implementation returns 0 which is the convention adopted by + //! most lexers. + virtual int defaultStyle() const; + + //! Returns the descriptive name for style number \a style. For a valid + //! style number for this language a non-empty QString must be returned. + //! If the style number is invalid then an empty QString must be returned. + //! This is intended to be used in user preference dialogs. + virtual QString description(int style) const = 0; + + //! Returns the background colour of the text for style number + //! \a style. + //! + //! \sa defaultPaper(), color() + virtual QColor paper(int style) const; + + //! Returns the default text colour. + //! + //! \sa setDefaultColor() + QColor defaultColor() const; + + //! Returns the default text colour for style number \a style. + virtual QColor defaultColor(int style) const; + + //! Returns the default end-of-line for style number \a style. The default + //! is false. + virtual bool defaultEolFill(int style) const; + + //! Returns the default font. + //! + //! \sa setDefaultFont() + QFont defaultFont() const; + + //! Returns the default font for style number \a style. + virtual QFont defaultFont(int style) const; + + //! Returns the default paper colour. + //! + //! \sa setDefaultPaper() + QColor defaultPaper() const; + + //! Returns the default paper colour for style number \a style. + virtual QColor defaultPaper(int style) const; + + //! Returns the QsciScintilla instance that the lexer is currently attached + //! to or 0 if it is unattached. + QsciScintilla *editor() const {return attached_editor;} + + //! The current set of APIs is set to \a apis. If \a apis is 0 then any + //! existing APIs for this lexer are removed. + //! + //! \sa apis() + void setAPIs(QsciAbstractAPIs *apis); + + //! The default text colour is set to \a c. + //! + //! \sa defaultColor(), color() + void setDefaultColor(const QColor &c); + + //! The default font is set to \a f. + //! + //! \sa defaultFont(), font() + void setDefaultFont(const QFont &f); + + //! The default paper colour is set to \a c. + //! + //! \sa defaultPaper(), paper() + void setDefaultPaper(const QColor &c); + + //! \internal Set the QsciScintilla instance that the lexer is attached to. + virtual void setEditor(QsciScintilla *editor); + + //! The colour, paper, font and end-of-line for each style number, and + //! all lexer specific properties are read from the settings \a qs. + //! \a prefix is prepended to the key of each entry. true is returned + //! if there was no error. + //! + //! \sa writeSettings(), QsciScintilla::setLexer() + bool readSettings(QSettings &qs,const char *prefix = "/Scintilla"); + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + virtual void refreshProperties(); + + //! Returns the number of style bits needed by the lexer. Normally this + //! should only be re-implemented by custom lexers. + virtual int styleBitsNeeded() const; + + //! Returns the string of characters that comprise a word. The default is + //! 0 which implies the upper and lower case alphabetic characters and + //! underscore. + virtual const char *wordCharacters() const; + + //! The colour, paper, font and end-of-line for each style number, and + //! all lexer specific properties are written to the settings \a qs. + //! \a prefix is prepended to the key of each entry. true is returned + //! if there was no error. + //! + //! \sa readSettings() + bool writeSettings(QSettings &qs, + const char *prefix = "/Scintilla") const; + +public slots: + //! The auto-indentation style is set to \a autoindentstyle. + //! + //! \sa autoIndentStyle(), QsciScintilla::AiMaintain, + //! QsciScintilla::AiOpening, QsciScintilla::AiClosing + virtual void setAutoIndentStyle(int autoindentstyle); + + //! The foreground colour for style number \a style is set to \a c. If + //! \a style is -1 then the colour is set for all styles. + virtual void setColor(const QColor &c,int style = -1); + + //! The end-of-line fill for style number \a style is set to + //! \a eoffill. If \a style is -1 then the fill is set for all styles. + virtual void setEolFill(bool eoffill,int style = -1); + + //! The font for style number \a style is set to \a f. If \a style is + //! -1 then the font is set for all styles. + virtual void setFont(const QFont &f,int style = -1); + + //! The background colour for style number \a style is set to \a c. If + //! \a style is -1 then the colour is set for all styles. + virtual void setPaper(const QColor &c,int style = -1); + +signals: + //! This signal is emitted when the foreground colour of style number + //! \a style has changed. The new colour is \a c. + void colorChanged(const QColor &c,int style); + + //! This signal is emitted when the end-of-file fill of style number + //! \a style has changed. The new fill is \a eolfilled. + void eolFillChanged(bool eolfilled,int style); + + //! This signal is emitted when the font of style number \a style has + //! changed. The new font is \a f. + void fontChanged(const QFont &f,int style); + + //! This signal is emitted when the background colour of style number + //! \a style has changed. The new colour is \a c. + void paperChanged(const QColor &c,int style); + + //! This signal is emitted when the value of the lexer property \a prop + //! needs to be changed. The new value is \a val. + void propertyChanged(const char *prop, const char *val); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + virtual bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + virtual bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + struct StyleData { + QFont font; + QColor color; + QColor paper; + bool eol_fill; + }; + + struct StyleDataMap { + bool style_data_set; + QMap style_data; + }; + + StyleDataMap *style_map; + + int autoIndStyle; + QFont defFont; + QColor defColor; + QColor defPaper; + QsciAbstractAPIs *apiSet; + QsciScintilla *attached_editor; + + void setStyleDefaults() const; + StyleData &styleData(int style) const; + + QsciLexer(const QsciLexer &); + QsciLexer &operator=(const QsciLexer &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexeravs.h b/Qt3/Qsci/qscilexeravs.h new file mode 100644 index 0000000..0817c1c --- /dev/null +++ b/Qt3/Qsci/qscilexeravs.h @@ -0,0 +1,187 @@ +// This defines the interface to the QsciLexerAVS class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERAVS_H +#define QSCILEXERAVS_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerAVS class encapsulates the Scintilla AVS lexer. +class QSCINTILLA_EXPORT QsciLexerAVS : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! AVS lexer. + enum { + //! The default. + Default = 0, + + //! A block comment. + BlockComment = 1, + + //! A nested block comment. + NestedBlockComment = 2, + + //! A line comment. + LineComment = 3, + + //! A number. + Number = 4, + + //! An operator. + Operator = 5, + + //! An identifier + Identifier = 6, + + //! A string. + String = 7, + + //! A triple quoted string. + TripleString = 8, + + //! A keyword (as defined by keyword set number 1).. + Keyword = 9, + + //! A filter (as defined by keyword set number 2). + Filter = 10, + + //! A plugin (as defined by keyword set number 3). + Plugin = 11, + + //! A function (as defined by keyword set number 4). + Function = 12, + + //! A clip property (as defined by keyword set number 5). + ClipProperty = 13, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet6 = 14 + }; + + //! Construct a QsciLexerAVS with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerAVS(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerAVS instance. + virtual ~QsciLexerAVS(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + + bool fold_comments; + bool fold_compact; + + QsciLexerAVS(const QsciLexerAVS &); + QsciLexerAVS &operator=(const QsciLexerAVS &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerbash.h b/Qt3/Qsci/qscilexerbash.h new file mode 100644 index 0000000..d8444c4 --- /dev/null +++ b/Qt3/Qsci/qscilexerbash.h @@ -0,0 +1,191 @@ +// This defines the interface to the QsciLexerBash class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERBASH_H +#define QSCILEXERBASH_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerBash class encapsulates the Scintilla Bash lexer. +class QSCINTILLA_EXPORT QsciLexerBash : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Bash lexer. + enum { + //! The default. + Default = 0, + + //! An error. + Error = 1, + + //! A comment. + Comment = 2, + + //! A number. + Number = 3, + + //! A keyword. + Keyword = 4, + + //! A double-quoted string. + DoubleQuotedString = 5, + + //! A single-quoted string. + SingleQuotedString = 6, + + //! An operator. + Operator = 7, + + //! An identifier + Identifier = 8, + + //! A scalar. + Scalar = 9, + + //! Parameter expansion. + ParameterExpansion = 10, + + //! Backticks. + Backticks = 11, + + //! A here document delimiter. + HereDocumentDelimiter = 12, + + //! A single quoted here document. + SingleQuotedHereDocument = 13 + }; + + //! Construct a QsciLexerBash with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerBash(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerBash instance. + virtual ~QsciLexerBash(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + + bool fold_comments; + bool fold_compact; + + QsciLexerBash(const QsciLexerBash &); + QsciLexerBash &operator=(const QsciLexerBash &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerbatch.h b/Qt3/Qsci/qscilexerbatch.h new file mode 100644 index 0000000..f72d4ff --- /dev/null +++ b/Qt3/Qsci/qscilexerbatch.h @@ -0,0 +1,128 @@ +// This defines the interface to the QsciLexerBatch class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERBATCH_H +#define QSCILEXERBATCH_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerBatch class encapsulates the Scintilla batch file +//! lexer. +class QSCINTILLA_EXPORT QsciLexerBatch : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! batch file lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A keyword. + Keyword = 2, + + //! A label. + Label = 3, + + //! An hide command character. + HideCommandChar = 4, + + //! An external command . + ExternalCommand = 5, + + //! A variable. + Variable = 6, + + //! An operator + Operator = 7 + }; + + //! Construct a QsciLexerBatch with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerBatch(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerBatch instance. + virtual ~QsciLexerBatch(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! \internal Returns true if the language is case sensitive. + bool caseSensitive() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerBatch(const QsciLexerBatch &); + QsciLexerBatch &operator=(const QsciLexerBatch &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexercmake.h b/Qt3/Qsci/qscilexercmake.h new file mode 100644 index 0000000..1f92f7a --- /dev/null +++ b/Qt3/Qsci/qscilexercmake.h @@ -0,0 +1,173 @@ +// This defines the interface to the QsciLexerCMake class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCMAKE_H +#define QSCILEXERCMAKE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerCMake class encapsulates the Scintilla CMake lexer. +class QSCINTILLA_EXPORT QsciLexerCMake : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! CMake lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A string. + String = 2, + + //! A left quoted string. + StringLeftQuote = 3, + + //! A right quoted string. + StringRightQuote = 4, + + //! A function. (Defined by keyword set number 1.) + Function = 5, + + //! A variable. (Defined by keyword set number 2.) + Variable = 6, + + //! A label. + Label = 7, + + //! A keyword defined in keyword set number 3. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet3 = 8, + + //! A WHILE block. + BlockWhile = 9, + + //! A FOREACH block. + BlockForeach = 10, + + //! An IF block. + BlockIf = 11, + + //! A MACRO block. + BlockMacro = 12, + + //! A variable within a string. + StringVariable = 13, + + //! A number. + Number = 14 + }; + + //! Construct a QsciLexerCMake with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerCMake(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerCMake instance. + virtual ~QsciLexerCMake(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if ELSE blocks can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const; + +public slots: + //! If \a fold is true then ELSE blocks can be folded. The default is + //! false. + //! + //! \sa foldAtElse() + virtual void setFoldAtElse(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setAtElseProp(); + + bool fold_atelse; + + QsciLexerCMake(const QsciLexerCMake &); + QsciLexerCMake &operator=(const QsciLexerCMake &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexercoffeescript.h b/Qt3/Qsci/qscilexercoffeescript.h new file mode 100644 index 0000000..ea43fcd --- /dev/null +++ b/Qt3/Qsci/qscilexercoffeescript.h @@ -0,0 +1,274 @@ +// This defines the interface to the QsciLexerCoffeeScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCOFFEESCRIPT_H +#define QSCILEXERCOFFEESCRIPT_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerCoffeeScript class encapsulates the Scintilla +//! CoffeeScript lexer. +class QSCINTILLA_EXPORT QsciLexerCoffeeScript : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! C++ lexer. + enum { + //! The default. + Default = 0, + + //! A C-style comment. + Comment = 1, + + //! A C++-style comment line. + CommentLine = 2, + + //! A JavaDoc/Doxygen C-style comment. + CommentDoc = 3, + + //! A number. + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A double-quoted string. + DoubleQuotedString = 6, + + //! A single-quoted string. + SingleQuotedString = 7, + + //! An IDL UUID. + UUID = 8, + + //! A pre-processor block. + PreProcessor = 9, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! The end of a line where a string is not closed. + UnclosedString = 12, + + //! A C# verbatim string. + VerbatimString = 13, + + //! A regular expression. + Regex = 14, + + //! A JavaDoc/Doxygen C++-style comment line. + CommentLineDoc = 15, + + //! A keyword defined in keyword set number 2. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet2 = 16, + + //! A JavaDoc/Doxygen keyword. + CommentDocKeyword = 17, + + //! A JavaDoc/Doxygen keyword error defined in keyword set number 3. + //! The class must be sub-classed and re-implement keywords() to make + //! use of this style. + CommentDocKeywordError = 18, + + //! A global class defined in keyword set number 4. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + GlobalClass = 19, + + //! A block comment. + CommentBlock = 22, + + //! A block regular expression. + BlockRegex = 23, + + //! A block regular expression comment. + BlockRegexComment = 24, + }; + + //! Construct a QsciLexerCoffeeScript with parent \a parent and name \a + //! name. \a parent is typically the QsciScintilla instance. + QsciLexerCoffeeScript(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerCoffeeScript instance. + virtual ~QsciLexerCoffeeScript(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a + //! particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. Set 1 is normally used for + //! primary keywords and identifiers. Set 2 is normally used for secondary + //! keywords and identifiers. Set 3 is normally used for documentation + //! comment keywords. Set 4 is normally used for global classes and + //! typedefs. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if '$' characters are allowed in identifier names. + //! + //! \sa setDollarsAllowed() + bool dollarsAllowed() const {return dollars;} + + //! If \a allowed is true then '$' characters are allowed in identifier + //! names. The default is true. + //! + //! \sa dollarsAllowed() + void setDollarsAllowed(bool allowed); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + void setFoldComments(bool fold); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + void setFoldCompact(bool fold); + + //! Returns true if preprocessor lines (after the preprocessor + //! directive) are styled. + //! + //! \sa setStylePreprocessor() + bool stylePreprocessor() const {return style_preproc;} + + //! If \a style is true then preprocessor lines (after the preprocessor + //! directive) are styled. The default is false. + //! + //! \sa stylePreprocessor() + void setStylePreprocessor(bool style); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setStylePreprocProp(); + void setDollarsProp(); + + bool fold_comments; + bool fold_compact; + bool style_preproc; + bool dollars; + + QsciLexerCoffeeScript(const QsciLexerCoffeeScript &); + QsciLexerCoffeeScript &operator=(const QsciLexerCoffeeScript &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexercpp.h b/Qt3/Qsci/qscilexercpp.h new file mode 100644 index 0000000..8c7c0d1 --- /dev/null +++ b/Qt3/Qsci/qscilexercpp.h @@ -0,0 +1,362 @@ +// This defines the interface to the QsciLexerCPP class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCPP_H +#define QSCILEXERCPP_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerCPP class encapsulates the Scintilla C++ +//! lexer. +class QSCINTILLA_EXPORT QsciLexerCPP : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! C++ lexer. + enum { + //! The default. + Default = 0, + InactiveDefault = Default + 64, + + //! A C comment. + Comment = 1, + InactiveComment = Comment + 64, + + //! A C++ comment line. + CommentLine = 2, + InactiveCommentLine = CommentLine + 64, + + //! A JavaDoc/Doxygen style C comment. + CommentDoc = 3, + InactiveCommentDoc = CommentDoc + 64, + + //! A number. + Number = 4, + InactiveNumber = Number + 64, + + //! A keyword. + Keyword = 5, + InactiveKeyword = Keyword + 64, + + //! A double-quoted string. + DoubleQuotedString = 6, + InactiveDoubleQuotedString = DoubleQuotedString + 64, + + //! A single-quoted string. + SingleQuotedString = 7, + InactiveSingleQuotedString = SingleQuotedString + 64, + + //! An IDL UUID. + UUID = 8, + InactiveUUID = UUID + 64, + + //! A pre-processor block. + PreProcessor = 9, + InactivePreProcessor = PreProcessor + 64, + + //! An operator. + Operator = 10, + InactiveOperator = Operator + 64, + + //! An identifier + Identifier = 11, + InactiveIdentifier = Identifier + 64, + + //! The end of a line where a string is not closed. + UnclosedString = 12, + InactiveUnclosedString = UnclosedString + 64, + + //! A C# verbatim string. + VerbatimString = 13, + InactiveVerbatimString = VerbatimString + 64, + + //! A JavaScript regular expression. + Regex = 14, + InactiveRegex = Regex + 64, + + //! A JavaDoc/Doxygen style C++ comment line. + CommentLineDoc = 15, + InactiveCommentLineDoc = CommentLineDoc + 64, + + //! A keyword defined in keyword set number 2. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet2 = 16, + InactiveKeywordSet2 = KeywordSet2 + 64, + + //! A JavaDoc/Doxygen keyword. + CommentDocKeyword = 17, + InactiveCommentDocKeyword = CommentDocKeyword + 64, + + //! A JavaDoc/Doxygen keyword error. + CommentDocKeywordError = 18, + InactiveCommentDocKeywordError = CommentDocKeywordError + 64, + + //! A global class or typedef defined in keyword set number 5. The + //! class must be sub-classed and re-implement keywords() to make use + //! of this style. + GlobalClass = 19, + InactiveGlobalClass = GlobalClass + 64, + + //! A C++ raw string. + RawString = 20, + InactiveRawString = RawString + 20, + + //! A Vala triple-quoted verbatim string. + TripleQuotedVerbatimString = 21, + InactiveTripleQuotedVerbatimString = TripleQuotedVerbatimString + 21, + + //! A Pike hash-quoted string. + HashQuotedString = 22, + InactiveHashQuotedString = HashQuotedString + 22, + + //! A pre-processor stream comment. + PreProcessorComment = 23, + InactivePreProcessorComment = PreProcessorComment + 23, + + //! A JavaDoc/Doxygen style pre-processor comment. + PreProcessorCommentLineDoc = 24, + InactivePreProcessorCommentLineDoc = PreProcessorCommentLineDoc + 64, + }; + + //! Construct a QsciLexerCPP with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. \a + //! caseInsensitiveKeywords is true if the lexer ignores the case of + //! keywords. + QsciLexerCPP(QObject *parent = 0, const char *name = 0, + bool caseInsensitiveKeywords = false); + + //! Destroys the QsciLexerCPP instance. + virtual ~QsciLexerCPP(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a + //! particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. Set 1 is normally used for + //! primary keywords and identifiers. Set 2 is normally used for secondary + //! keywords and identifiers. Set 3 is normally used for documentation + //! comment keywords. Set 4 is normally used for global classes and + //! typedefs. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if "} else {" lines can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const {return fold_atelse;} + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! Returns true if preprocessor blocks can be folded. + //! + //! \sa setFoldPreprocessor() + bool foldPreprocessor() const {return fold_preproc;} + + //! Returns true if preprocessor lines (after the preprocessor + //! directive) are styled. + //! + //! \sa setStylePreprocessor() + bool stylePreprocessor() const {return style_preproc;} + + //! If \a allowed is true then '$' characters are allowed in identifier + //! names. The default is true. + //! + //! \sa dollarsAllowed() + void setDollarsAllowed(bool allowed); + + //! Returns true if '$' characters are allowed in identifier names. + //! + //! \sa setDollarsAllowed() + bool dollarsAllowed() const {return dollars;} + + //! If \a enabled is true then triple quoted strings are highlighted. The + //! default is false. + //! + //! \sa highlightTripleQuotedStrings() + void setHighlightTripleQuotedStrings(bool enabled); + + //! Returns true if triple quoted strings should be highlighted. + //! + //! \sa setHighlightTripleQuotedStrings() + bool highlightTripleQuotedStrings() const {return highlight_triple;} + + //! If \a enabled is true then hash quoted strings are highlighted. The + //! default is false. + //! + //! \sa highlightHashQuotedStrings() + void setHighlightHashQuotedStrings(bool enabled); + + //! Returns true if hash quoted strings should be highlighted. + //! + //! \sa setHighlightHashQuotedStrings() + bool highlightHashQuotedStrings() const {return highlight_hash;} + +public slots: + //! If \a fold is true then "} else {" lines can be folded. The + //! default is false. + //! + //! \sa foldAtElse() + virtual void setFoldAtElse(bool fold); + + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then preprocessor blocks can be folded. The + //! default is true. + //! + //! \sa foldPreprocessor() + virtual void setFoldPreprocessor(bool fold); + + //! If \a style is true then preprocessor lines (after the preprocessor + //! directive) are styled. The default is false. + //! + //! \sa stylePreprocessor() + virtual void setStylePreprocessor(bool style); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setAtElseProp(); + void setCommentProp(); + void setCompactProp(); + void setPreprocProp(); + void setStylePreprocProp(); + void setDollarsProp(); + void setHighlightTripleProp(); + void setHighlightHashProp(); + + bool fold_atelse; + bool fold_comments; + bool fold_compact; + bool fold_preproc; + bool style_preproc; + bool dollars; + bool highlight_triple; + bool highlight_hash; + + bool nocase; + + QsciLexerCPP(const QsciLexerCPP &); + QsciLexerCPP &operator=(const QsciLexerCPP &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexercsharp.h b/Qt3/Qsci/qscilexercsharp.h new file mode 100644 index 0000000..01998ac --- /dev/null +++ b/Qt3/Qsci/qscilexercsharp.h @@ -0,0 +1,90 @@ +// This defines the interface to the QsciLexerCSharp class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCSHARP_H +#define QSCILEXERCSHARP_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerCSharp class encapsulates the Scintilla C# +//! lexer. +class QSCINTILLA_EXPORT QsciLexerCSharp : public QsciLexerCPP +{ + Q_OBJECT + +public: + //! Construct a QsciLexerCSharp with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerCSharp(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerCSharp instance. + virtual ~QsciLexerCSharp(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerCSharp(const QsciLexerCSharp &); + QsciLexerCSharp &operator=(const QsciLexerCSharp &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexercss.h b/Qt3/Qsci/qscilexercss.h new file mode 100644 index 0000000..7e8bb8d --- /dev/null +++ b/Qt3/Qsci/qscilexercss.h @@ -0,0 +1,265 @@ +// This defines the interface to the QsciLexerCSS class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCSS_H +#define QSCILEXERCSS_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerCSS class encapsulates the Scintilla CSS lexer. +class QSCINTILLA_EXPORT QsciLexerCSS : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! CSS lexer. + enum { + //! The default. + Default = 0, + + //! A tag. + Tag = 1, + + //! A class selector. + ClassSelector = 2, + + //! A pseudo class. The list of pseudo classes is defined by keyword + //! set 2. + PseudoClass = 3, + + //! An unknown pseudo class. + UnknownPseudoClass = 4, + + //! An operator. + Operator = 5, + + //! A CSS1 property. The list of CSS1 properties is defined by keyword + //! set 1. + CSS1Property = 6, + + //! An unknown property. + UnknownProperty = 7, + + //! A value. + Value = 8, + + //! A comment. + Comment = 9, + + //! An ID selector. + IDSelector = 10, + + //! An important value. + Important = 11, + + //! An @-rule. + AtRule = 12, + + //! A double-quoted string. + DoubleQuotedString = 13, + + //! A single-quoted string. + SingleQuotedString = 14, + + //! A CSS2 property. The list of CSS2 properties is defined by keyword + //! set 3. + CSS2Property = 15, + + //! An attribute. + Attribute = 16, + + //! A CSS3 property. The list of CSS3 properties is defined by keyword + //! set 4. + CSS3Property = 17, + + //! A pseudo element. The list of pseudo elements is defined by + //! keyword set 5. + PseudoElement = 18, + + //! An extended (browser specific) CSS property. The list of extended + //! CSS properties is defined by keyword set 6. + ExtendedCSSProperty = 19, + + //! An extended (browser specific) pseudo class. The list of extended + //! pseudo classes is defined by keyword set 7. + ExtendedPseudoClass = 20, + + //! An extended (browser specific) pseudo element. The list of + //! extended pseudo elements is defined by keyword set 8. + ExtendedPseudoElement = 21, + + //! A media rule. + MediaRule = 22, + + //! A variable. + Variable = 23, + }; + + //! Construct a QsciLexerCSS with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerCSS(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerCSS instance. + virtual ~QsciLexerCSS(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! If \a enabled is true then support for HSS is enabled. The default is + //! false. + //! + //! \sa HSSLanguage() + void setHSSLanguage(bool enabled); + + //! Returns true if support for HSS is enabled. + //! + //! \sa setHSSLanguage() + bool HSSLanguage() const {return hss_language;} + + //! If \a enabled is true then support for Less CSS is enabled. The + //! default is false. + //! + //! \sa LessLanguage() + void setLessLanguage(bool enabled); + + //! Returns true if support for Less CSS is enabled. + //! + //! \sa setLessLanguage() + bool LessLanguage() const {return less_language;} + + //! If \a enabled is true then support for Sassy CSS is enabled. The + //! default is false. + //! + //! \sa SCSSLanguage() + void setSCSSLanguage(bool enabled); + + //! Returns true if support for Sassy CSS is enabled. + //! + //! \sa setSCSSLanguage() + bool SCSSLanguage() const {return scss_language;} + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setHSSProp(); + void setLessProp(); + void setSCSSProp(); + + bool fold_comments; + bool fold_compact; + bool hss_language; + bool less_language; + bool scss_language; + + QsciLexerCSS(const QsciLexerCSS &); + QsciLexerCSS &operator=(const QsciLexerCSS &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexercustom.h b/Qt3/Qsci/qscilexercustom.h new file mode 100644 index 0000000..5a9a724 --- /dev/null +++ b/Qt3/Qsci/qscilexercustom.h @@ -0,0 +1,116 @@ +// This defines the interface to the QsciLexerCustom class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCUSTOM_H +#define QSCILEXERCUSTOM_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include + + +class QsciScintilla; +class QsciStyle; + + +//! \brief The QsciLexerCustom class is an abstract class used as a base for +//! new language lexers. +//! +//! The advantage of implementing a new lexer this way (as opposed to adding +//! the lexer to the underlying Scintilla code) is that it does not require the +//! QScintilla library to be re-compiled. It also makes it possible to +//! integrate external lexers. +//! +//! All that is necessary to implement a new lexer is to define appropriate +//! styles and to re-implement the styleText() method. +class QSCINTILLA_EXPORT QsciLexerCustom : public QsciLexer +{ + Q_OBJECT + +public: + //! Construct a QsciLexerCustom with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerCustom(QObject *parent = 0, const char *name = 0); + + //! Destroy the QSciLexerCustom. + virtual ~QsciLexerCustom(); + + //! The next \a length characters starting from the current styling + //! position have their style set to style number \a style. The current + //! styling position is moved. The styling position is initially set by + //! calling startStyling(). + //! + //! \sa startStyling(), styleText() + void setStyling(int length, int style); + + //! The next \a length characters starting from the current styling + //! position have their style set to style \a style. The current styling + //! position is moved. The styling position is initially set by calling + //! startStyling(). + //! + //! \sa startStyling(), styleText() + void setStyling(int length, const QsciStyle &style); + + //! The styling position is set to \a start and the mask of style bits that + //! can be set is set to \a styleBits. \a styleBits allows the styling of + //! text to be done over several passes by setting different style bits on + //! each pass. If \a styleBits is 0 then all style bits (as returned by + //! styleBitsNeeded()) are set. + //! + //! \sa setStyling(), styleBitsNeeded(), styleText() + void startStyling(int pos, int styleBits = 0); + + //! This is called when the section of text beginning at position \a start + //! and up to position \a end needs to be styled. \a start will always be + //! at the start of a line. The text is styled by calling startStyling() + //! followed by one or more calls to setStyling(). It must be + //! re-implemented by a sub-class. + //! + //! \sa setStyling(), startStyling() + virtual void styleText(int start, int end) = 0; + + //! \reimp + virtual void setEditor(QsciScintilla *editor); + + //! \reimp This re-implementation returns 5 as the number of style bits + //! needed. + virtual int styleBitsNeeded() const; + +private slots: + void handleStyleNeeded(int pos); + +private: + QsciLexerCustom(const QsciLexerCustom &); + QsciLexerCustom &operator=(const QsciLexerCustom &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerd.h b/Qt3/Qsci/qscilexerd.h new file mode 100644 index 0000000..7d86c41 --- /dev/null +++ b/Qt3/Qsci/qscilexerd.h @@ -0,0 +1,255 @@ +// This defines the interface to the QsciLexerD class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERD_H +#define QSCILEXERD_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerD class encapsulates the Scintilla D lexer. +class QSCINTILLA_EXPORT QsciLexerD : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the D + //! lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A comment line. + CommentLine = 2, + + //! A JavaDoc and Doxygen comment. + CommentDoc = 3, + + //! A nested comment. + CommentNested = 4, + + //! A number. + Number = 5, + + //! A keyword. + Keyword = 6, + + //! A secondary keyword. + KeywordSecondary = 7, + + //! A doc keyword + KeywordDoc = 8, + + //! Typedefs and aliases + Typedefs = 9, + + //! A string. + String = 10, + + //! The end of a line where a string is not closed. + UnclosedString = 11, + + //! A character + Character = 12, + + //! An operator. + Operator = 13, + + //! An identifier + Identifier = 14, + + //! A JavaDoc and Doxygen line. + CommentLineDoc = 15, + + //! A JavaDoc and Doxygen keyword. + CommentDocKeyword = 16, + + //! A JavaDoc and Doxygen keyword error. + CommentDocKeywordError = 17, + + //! A backquoted string. + BackquoteString = 18, + + //! A raw, hexadecimal or delimited string. + RawString = 19, + + //! A keyword defined in keyword set number 5. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet5 = 20, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet6 = 21, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet7 = 22, + }; + + //! Construct a QsciLexerD with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerD(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerD instance. + virtual ~QsciLexerD(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in a + //! particular style that define the end of a block for auto-indentation. + //! The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in a + //! particular style that define the start of a block for auto-indentation. + //! The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a particular + //! style that define the start of a block for auto-indentation. The + //! styles is returned via \a style. + const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised by + //! the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the style + //! is invalid for this language then an empty QString is returned. This + //! is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if "} else {" lines can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const; + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then "} else {" lines can be folded. The default is + //! false. + //! + //! \sa foldAtElse() + virtual void setFoldAtElse(bool fold); + + //! If \a fold is true then multi-line comment blocks can be folded. The + //! default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setAtElseProp(); + void setCommentProp(); + void setCompactProp(); + + bool fold_atelse; + bool fold_comments; + bool fold_compact; + + QsciLexerD(const QsciLexerD &); + QsciLexerD &operator=(const QsciLexerD &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerdiff.h b/Qt3/Qsci/qscilexerdiff.h new file mode 100644 index 0000000..a7dbf6d --- /dev/null +++ b/Qt3/Qsci/qscilexerdiff.h @@ -0,0 +1,108 @@ +// This defines the interface to the QsciLexerDiff class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERDIFF_H +#define QSCILEXERDIFF_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerDiff class encapsulates the Scintilla Diff +//! lexer. +class QSCINTILLA_EXPORT QsciLexerDiff : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Diff lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A command. + Command = 2, + + //! A header. + Header = 3, + + //! A position. + Position = 4, + + //! A removed line. + LineRemoved = 5, + + //! An added line. + LineAdded = 6, + + //! A changed line. + LineChanged = 7 + }; + + //! Construct a QsciLexerDiff with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerDiff(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerDiff instance. + virtual ~QsciLexerDiff(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + QColor defaultColor(int style) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerDiff(const QsciLexerDiff &); + QsciLexerDiff &operator=(const QsciLexerDiff &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerfortran.h b/Qt3/Qsci/qscilexerfortran.h new file mode 100644 index 0000000..2d82f56 --- /dev/null +++ b/Qt3/Qsci/qscilexerfortran.h @@ -0,0 +1,72 @@ +// This defines the interface to the QsciLexerFortran class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERFORTRAN_H +#define QSCILEXERFORTRAN_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerFortran class encapsulates the Scintilla Fortran lexer. +class QSCINTILLA_EXPORT QsciLexerFortran : public QsciLexerFortran77 +{ + Q_OBJECT + +public: + //! Construct a QsciLexerFortran with parent \a parent and name \a name. + //! \a parent is typically the QsciScintilla instance. + QsciLexerFortran(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerFortran instance. + virtual ~QsciLexerFortran(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + +private: + QsciLexerFortran(const QsciLexerFortran &); + QsciLexerFortran &operator=(const QsciLexerFortran &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerfortran77.h b/Qt3/Qsci/qscilexerfortran77.h new file mode 100644 index 0000000..b70b1cc --- /dev/null +++ b/Qt3/Qsci/qscilexerfortran77.h @@ -0,0 +1,181 @@ +// This defines the interface to the QsciLexerFortran77 class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERFORTRAN77_H +#define QSCILEXERFORTRAN77_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerFortran77 class encapsulates the Scintilla Fortran77 +//! lexer. +class QSCINTILLA_EXPORT QsciLexerFortran77 : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Fortran77 lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A number. + Number = 2, + + //! A single-quoted string. + SingleQuotedString = 3, + + //! A double-quoted string. + DoubleQuotedString = 4, + + //! The end of a line where a string is not closed. + UnclosedString = 5, + + //! An operator. + Operator = 6, + + //! An identifier + Identifier = 7, + + //! A keyword. + Keyword = 8, + + //! An intrinsic function. + IntrinsicFunction = 9, + + //! An extended, non-standard or user defined function. + ExtendedFunction = 10, + + //! A pre-processor block. + PreProcessor = 11, + + //! An operator in .NAME. format. + DottedOperator = 12, + + //! A label. + Label = 13, + + //! A continuation. + Continuation = 14 + }; + + //! Construct a QsciLexerFortran77 with parent \a parent and name \a name. + //! \a parent is typically the QsciScintilla instance. + QsciLexerFortran77(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerFortran77 instance. + virtual ~QsciLexerFortran77(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCompactProp(); + + bool fold_compact; + + QsciLexerFortran77(const QsciLexerFortran77 &); + QsciLexerFortran77 &operator=(const QsciLexerFortran77 &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerhtml.h b/Qt3/Qsci/qscilexerhtml.h new file mode 100644 index 0000000..ec017f0 --- /dev/null +++ b/Qt3/Qsci/qscilexerhtml.h @@ -0,0 +1,545 @@ +// This defines the interface to the QsciLexerHTML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERHTML_H +#define QSCILEXERHTML_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerHTML class encapsulates the Scintilla HTML lexer. +class QSCINTILLA_EXPORT QsciLexerHTML : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! HTML lexer. + enum { + //! The default. + Default = 0, + + //! A tag. + Tag = 1, + + //! An unknown tag. + UnknownTag = 2, + + //! An attribute. + Attribute = 3, + + //! An unknown attribute. + UnknownAttribute = 4, + + //! An HTML number. + HTMLNumber = 5, + + //! An HTML double-quoted string. + HTMLDoubleQuotedString = 6, + + //! An HTML single-quoted string. + HTMLSingleQuotedString = 7, + + //! Other text within a tag. + OtherInTag = 8, + + //! An HTML comment. + HTMLComment = 9, + + //! An entity. + Entity = 10, + + //! The end of an XML style tag. + XMLTagEnd = 11, + + //! The start of an XML fragment. + XMLStart = 12, + + //! The end of an XML fragment. + XMLEnd = 13, + + //! A script tag. + Script = 14, + + //! The start of an ASP fragment with @. + ASPAtStart = 15, + + //! The start of an ASP fragment. + ASPStart = 16, + + //! CDATA. + CDATA = 17, + + //! The start of a PHP fragment. + PHPStart = 18, + + //! An unquoted HTML value. + HTMLValue = 19, + + //! An ASP X-Code comment. + ASPXCComment = 20, + + //! The default for SGML. + SGMLDefault = 21, + + //! An SGML command. + SGMLCommand = 22, + + //! The first parameter of an SGML command. + SGMLParameter = 23, + + //! An SGML double-quoted string. + SGMLDoubleQuotedString = 24, + + //! An SGML single-quoted string. + SGMLSingleQuotedString = 25, + + //! An SGML error. + SGMLError = 26, + + //! An SGML special entity. + SGMLSpecial = 27, + + //! An SGML entity. + SGMLEntity = 28, + + //! An SGML comment. + SGMLComment = 29, + + //! A comment with the first parameter of an SGML command. + SGMLParameterComment = 30, + + //! The default for an SGML block. + SGMLBlockDefault = 31, + + //! The start of a JavaScript fragment. + JavaScriptStart = 40, + + //! The default for JavaScript. + JavaScriptDefault = 41, + + //! A JavaScript comment. + JavaScriptComment = 42, + + //! A JavaScript line comment. + JavaScriptCommentLine = 43, + + //! A JavaDoc style JavaScript comment. + JavaScriptCommentDoc = 44, + + //! A JavaScript number. + JavaScriptNumber = 45, + + //! A JavaScript word. + JavaScriptWord = 46, + + //! A JavaScript keyword. + JavaScriptKeyword = 47, + + //! A JavaScript double-quoted string. + JavaScriptDoubleQuotedString = 48, + + //! A JavaScript single-quoted string. + JavaScriptSingleQuotedString = 49, + + //! A JavaScript symbol. + JavaScriptSymbol = 50, + + //! The end of a JavaScript line where a string is not closed. + JavaScriptUnclosedString = 51, + + //! A JavaScript regular expression. + JavaScriptRegex = 52, + + //! The start of an ASP JavaScript fragment. + ASPJavaScriptStart = 55, + + //! The default for ASP JavaScript. + ASPJavaScriptDefault = 56, + + //! An ASP JavaScript comment. + ASPJavaScriptComment = 57, + + //! An ASP JavaScript line comment. + ASPJavaScriptCommentLine = 58, + + //! An ASP JavaDoc style JavaScript comment. + ASPJavaScriptCommentDoc = 59, + + //! An ASP JavaScript number. + ASPJavaScriptNumber = 60, + + //! An ASP JavaScript word. + ASPJavaScriptWord = 61, + + //! An ASP JavaScript keyword. + ASPJavaScriptKeyword = 62, + + //! An ASP JavaScript double-quoted string. + ASPJavaScriptDoubleQuotedString = 63, + + //! An ASP JavaScript single-quoted string. + ASPJavaScriptSingleQuotedString = 64, + + //! An ASP JavaScript symbol. + ASPJavaScriptSymbol = 65, + + //! The end of an ASP JavaScript line where a string is not + //! closed. + ASPJavaScriptUnclosedString = 66, + + //! An ASP JavaScript regular expression. + ASPJavaScriptRegex = 67, + + //! The start of a VBScript fragment. + VBScriptStart = 70, + + //! The default for VBScript. + VBScriptDefault = 71, + + //! A VBScript comment. + VBScriptComment = 72, + + //! A VBScript number. + VBScriptNumber = 73, + + //! A VBScript keyword. + VBScriptKeyword = 74, + + //! A VBScript string. + VBScriptString = 75, + + //! A VBScript identifier. + VBScriptIdentifier = 76, + + //! The end of a VBScript line where a string is not closed. + VBScriptUnclosedString = 77, + + //! The start of an ASP VBScript fragment. + ASPVBScriptStart = 80, + + //! The default for ASP VBScript. + ASPVBScriptDefault = 81, + + //! An ASP VBScript comment. + ASPVBScriptComment = 82, + + //! An ASP VBScript number. + ASPVBScriptNumber = 83, + + //! An ASP VBScript keyword. + ASPVBScriptKeyword = 84, + + //! An ASP VBScript string. + ASPVBScriptString = 85, + + //! An ASP VBScript identifier. + ASPVBScriptIdentifier = 86, + + //! The end of an ASP VBScript line where a string is not + //! closed. + ASPVBScriptUnclosedString = 87, + + //! The start of a Python fragment. + PythonStart = 90, + + //! The default for Python. + PythonDefault = 91, + + //! A Python comment. + PythonComment = 92, + + //! A Python number. + PythonNumber = 93, + + //! A Python double-quoted string. + PythonDoubleQuotedString = 94, + + //! A Python single-quoted string. + PythonSingleQuotedString = 95, + + //! A Python keyword. + PythonKeyword = 96, + + //! A Python triple single-quoted string. + PythonTripleSingleQuotedString = 97, + + //! A Python triple double-quoted string. + PythonTripleDoubleQuotedString = 98, + + //! The name of a Python class. + PythonClassName = 99, + + //! The name of a Python function or method. + PythonFunctionMethodName = 100, + + //! A Python operator. + PythonOperator = 101, + + //! A Python identifier. + PythonIdentifier = 102, + + //! The start of an ASP Python fragment. + ASPPythonStart = 105, + + //! The default for ASP Python. + ASPPythonDefault = 106, + + //! An ASP Python comment. + ASPPythonComment = 107, + + //! An ASP Python number. + ASPPythonNumber = 108, + + //! An ASP Python double-quoted string. + ASPPythonDoubleQuotedString = 109, + + //! An ASP Python single-quoted string. + ASPPythonSingleQuotedString = 110, + + //! An ASP Python keyword. + ASPPythonKeyword = 111, + + //! An ASP Python triple single-quoted string. + ASPPythonTripleSingleQuotedString = 112, + + //! An ASP Python triple double-quoted string. + ASPPythonTripleDoubleQuotedString = 113, + + //! The name of an ASP Python class. + ASPPythonClassName = 114, + + //! The name of an ASP Python function or method. + ASPPythonFunctionMethodName = 115, + + //! An ASP Python operator. + ASPPythonOperator = 116, + + //! An ASP Python identifier + ASPPythonIdentifier = 117, + + //! The default for PHP. + PHPDefault = 118, + + //! A PHP double-quoted string. + PHPDoubleQuotedString = 119, + + //! A PHP single-quoted string. + PHPSingleQuotedString = 120, + + //! A PHP keyword. + PHPKeyword = 121, + + //! A PHP number. + PHPNumber = 122, + + //! A PHP variable. + PHPVariable = 123, + + //! A PHP comment. + PHPComment = 124, + + //! A PHP line comment. + PHPCommentLine = 125, + + //! A PHP double-quoted variable. + PHPDoubleQuotedVariable = 126, + + //! A PHP operator. + PHPOperator = 127 + }; + + //! Construct a QsciLexerHTML with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerHTML(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerHTML instance. + virtual ~QsciLexerHTML(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the auto-completion fillup characters. + const char *autoCompletionFillups() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if tags are case sensitive. + //! + //! \sa setCaseSensitiveTags() + bool caseSensitiveTags() const {return case_sens_tags;} + + //! If \a enabled is true then Django templates are enabled. The default + //! is false. + //! + //! \sa djangoTemplates() + void setDjangoTemplates(bool enabled); + + //! Returns true if support for Django templates is enabled. + //! + //! \sa setDjangoTemplates() + bool djangoTemplates() const {return django_templates;} + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! Returns true if preprocessor blocks can be folded. + //! + //! \sa setFoldPreprocessor() + bool foldPreprocessor() const {return fold_preproc;} + + //! If \a fold is true then script comments can be folded. The default is + //! false. + //! + //! \sa foldScriptComments() + void setFoldScriptComments(bool fold); + + //! Returns true if script comments can be folded. + //! + //! \sa setFoldScriptComments() + bool foldScriptComments() const {return fold_script_comments;} + + //! If \a fold is true then script heredocs can be folded. The default is + //! false. + //! + //! \sa foldScriptHeredocs() + void setFoldScriptHeredocs(bool fold); + + //! Returns true if script heredocs can be folded. + //! + //! \sa setFoldScriptHeredocs() + bool foldScriptHeredocs() const {return fold_script_heredocs;} + + //! If \a enabled is true then Mako templates are enabled. The default is + //! false. + //! + //! \sa makoTemplates() + void setMakoTemplates(bool enabled); + + //! Returns true if support for Mako templates is enabled. + //! + //! \sa setMakoTemplates() + bool makoTemplates() const {return mako_templates;} + +public slots: + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then preprocessor blocks can be folded. The + //! default is false. + //! + //! \sa foldPreprocessor() + virtual void setFoldPreprocessor(bool fold); + + //! If \a sens is true then tags are case sensitive. The default is false. + //! + //! \sa caseSensitiveTags() + virtual void setCaseSensitiveTags(bool sens); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCompactProp(); + void setPreprocProp(); + void setCaseSensTagsProp(); + void setScriptCommentsProp(); + void setScriptHeredocsProp(); + void setDjangoProp(); + void setMakoProp(); + + bool fold_compact; + bool fold_preproc; + bool case_sens_tags; + bool fold_script_comments; + bool fold_script_heredocs; + bool django_templates; + bool mako_templates; + + QsciLexerHTML(const QsciLexerHTML &); + QsciLexerHTML &operator=(const QsciLexerHTML &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexeridl.h b/Qt3/Qsci/qscilexeridl.h new file mode 100644 index 0000000..4bbf336 --- /dev/null +++ b/Qt3/Qsci/qscilexeridl.h @@ -0,0 +1,77 @@ +// This defines the interface to the QsciLexerIDL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERIDL_H +#define QSCILEXERIDL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerIDL class encapsulates the Scintilla IDL +//! lexer. +class QSCINTILLA_EXPORT QsciLexerIDL : public QsciLexerCPP +{ + Q_OBJECT + +public: + //! Construct a QsciLexerIDL with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerIDL(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerIDL instance. + virtual ~QsciLexerIDL(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the foreground colour of the text for style number \a style. + QColor defaultColor(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerIDL(const QsciLexerIDL &); + QsciLexerIDL &operator=(const QsciLexerIDL &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerjava.h b/Qt3/Qsci/qscilexerjava.h new file mode 100644 index 0000000..69681ea --- /dev/null +++ b/Qt3/Qsci/qscilexerjava.h @@ -0,0 +1,68 @@ +// This defines the interface to the QsciLexerJava class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERJAVA_H +#define QSCILEXERJAVA_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerJava class encapsulates the Scintilla Java lexer. +class QSCINTILLA_EXPORT QsciLexerJava : public QsciLexerCPP +{ + Q_OBJECT + +public: + //! Construct a QsciLexerJava with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerJava(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerJava instance. + virtual ~QsciLexerJava(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + +private: + QsciLexerJava(const QsciLexerJava &); + QsciLexerJava &operator=(const QsciLexerJava &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerjavascript.h b/Qt3/Qsci/qscilexerjavascript.h new file mode 100644 index 0000000..0fd4b26 --- /dev/null +++ b/Qt3/Qsci/qscilexerjavascript.h @@ -0,0 +1,94 @@ +// This defines the interface to the QsciLexerJavaScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERJSCRIPT_H +#define QSCILEXERJSCRIPT_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerJavaScript class encapsulates the Scintilla JavaScript +//! lexer. +class QSCINTILLA_EXPORT QsciLexerJavaScript : public QsciLexerCPP +{ + Q_OBJECT + +public: + //! Construct a QsciLexerJavaScript with parent \a parent and name \a name. + //! \a parent is typically the QsciScintilla instance. + QsciLexerJavaScript(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerJavaScript instance. + virtual ~QsciLexerJavaScript(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + friend class QsciLexerHTML; + + static const char *keywordClass; + + QsciLexerJavaScript(const QsciLexerJavaScript &); + QsciLexerJavaScript &operator=(const QsciLexerJavaScript &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerlua.h b/Qt3/Qsci/qscilexerlua.h new file mode 100644 index 0000000..c5ebb9d --- /dev/null +++ b/Qt3/Qsci/qscilexerlua.h @@ -0,0 +1,207 @@ +// This defines the interface to the QsciLexerLua class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERLUA_H +#define QSCILEXERLUA_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerLua class encapsulates the Scintilla Lua +//! lexer. +class QSCINTILLA_EXPORT QsciLexerLua : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Lua lexer. + enum { + //! The default. + Default = 0, + + //! A block comment. + Comment = 1, + + //! A line comment. + LineComment = 2, + + //! A number. + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A string. + String = 6, + + //! A character. + Character = 7, + + //! A literal string. + LiteralString = 8, + + //! Preprocessor + Preprocessor = 9, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! The end of a line where a string is not closed. + UnclosedString = 12, + + //! Basic functions. + BasicFunctions = 13, + + //! String, table and maths functions. + StringTableMathsFunctions = 14, + + //! Coroutines, I/O and system facilities. + CoroutinesIOSystemFacilities = 15, + + //! A keyword defined in keyword set number 5. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet5 = 16, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet6 = 17, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet7 = 18, + + //! A keyword defined in keyword set number 8. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet8 = 19, + + //! A label. + Label = 20 + }; + + //! Construct a QsciLexerLua with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerLua(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerLua instance. + virtual ~QsciLexerLua(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCompactProp(); + + bool fold_compact; + + QsciLexerLua(const QsciLexerLua &); + QsciLexerLua &operator=(const QsciLexerLua &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexermakefile.h b/Qt3/Qsci/qscilexermakefile.h new file mode 100644 index 0000000..f3bfc02 --- /dev/null +++ b/Qt3/Qsci/qscilexermakefile.h @@ -0,0 +1,118 @@ +// This defines the interface to the QsciLexerMakefile class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERMAKEFILE_H +#define QSCILEXERMAKEFILE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerMakefile class encapsulates the Scintilla +//! Makefile lexer. +class QSCINTILLA_EXPORT QsciLexerMakefile : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Makefile lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A pre-processor directive. + Preprocessor = 2, + + //! A variable. + Variable = 3, + + //! An operator. + Operator = 4, + + //! A target. + Target = 5, + + //! An error. + Error = 9 + }; + + //! Construct a QsciLexerMakefile with parent \a parent and name \a name. + //! \a parent is typically the QsciScintilla instance. + QsciLexerMakefile(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerMakefile instance. + virtual ~QsciLexerMakefile(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerMakefile(const QsciLexerMakefile &); + QsciLexerMakefile &operator=(const QsciLexerMakefile &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexermatlab.h b/Qt3/Qsci/qscilexermatlab.h new file mode 100644 index 0000000..70a12f4 --- /dev/null +++ b/Qt3/Qsci/qscilexermatlab.h @@ -0,0 +1,117 @@ +// This defines the interface to the QsciLexerMatlab class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERMATLAB_H +#define QSCILEXERMATLAB_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerMatlab class encapsulates the Scintilla Matlab file +//! lexer. +class QSCINTILLA_EXPORT QsciLexerMatlab : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Matlab file lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A command. + Command = 2, + + //! A number. + Number = 3, + + //! A keyword. + Keyword = 4, + + //! A single quoted string. + SingleQuotedString = 5, + + //! An operator + Operator = 6, + + //! An identifier. + Identifier = 7, + + //! A double quoted string. + DoubleQuotedString = 8 + }; + + //! Construct a QsciLexerMatlab with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerMatlab(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerMatlab instance. + virtual ~QsciLexerMatlab(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerMatlab(const QsciLexerMatlab &); + QsciLexerMatlab &operator=(const QsciLexerMatlab &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexeroctave.h b/Qt3/Qsci/qscilexeroctave.h new file mode 100644 index 0000000..ef16b4d --- /dev/null +++ b/Qt3/Qsci/qscilexeroctave.h @@ -0,0 +1,73 @@ +// This defines the interface to the QsciLexerOctave class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXEROCTAVE_H +#define QSCILEXEROCTAVE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerOctave class encapsulates the Scintilla Octave file +//! lexer. +class QSCINTILLA_EXPORT QsciLexerOctave : public QsciLexerMatlab +{ + Q_OBJECT + +public: + //! Construct a QsciLexerOctave with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerOctave(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerOctave instance. + virtual ~QsciLexerOctave(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + +private: + QsciLexerOctave(const QsciLexerOctave &); + QsciLexerOctave &operator=(const QsciLexerOctave &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerpascal.h b/Qt3/Qsci/qscilexerpascal.h new file mode 100644 index 0000000..1b5069a --- /dev/null +++ b/Qt3/Qsci/qscilexerpascal.h @@ -0,0 +1,240 @@ +// This defines the interface to the QsciLexerPascal class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPASCAL_H +#define QSCILEXERPASCAL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerPascal class encapsulates the Scintilla Pascal lexer. +class QSCINTILLA_EXPORT QsciLexerPascal : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! C++ lexer. + enum { + //! The default. + Default = 0, + + //! An identifier + Identifier = 1, + + //! A '{ ... }' style comment. + Comment = 2, + + //! A '(* ... *)' style comment. + CommentParenthesis = 3, + + //! A comment line. + CommentLine = 4, + + //! A '{$ ... }' style pre-processor block. + PreProcessor = 5, + + //! A '(*$ ... *)' style pre-processor block. + PreProcessorParenthesis = 6, + + //! A number. + Number = 7, + + //! A hexadecimal number. + HexNumber = 8, + + //! A keyword. + Keyword = 9, + + //! A single-quoted string. + SingleQuotedString = 10, + + //! The end of a line where a string is not closed. + UnclosedString = 11, + + //! A character. + Character = 12, + + //! An operator. + Operator = 13, + + //! Inline Asm. + Asm = 14 + }; + + //! Construct a QsciLexerPascal with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerPascal(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerPascal instance. + virtual ~QsciLexerPascal(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a + //! particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! Returns true if preprocessor blocks can be folded. + //! + //! \sa setFoldPreprocessor() + bool foldPreprocessor() const; + + //! If \a enabled is true then some keywords will only be highlighted in an + //! appropriate context (similar to how the Delphi IDE works). The default + //! is true. + //! + //! \sa smartHighlighting() + void setSmartHighlighting(bool enabled); + + //! Returns true if some keywords will only be highlighted in an + //! appropriate context (similar to how the Delphi IDE works). + //! + //! \sa setSmartHighlighting() + bool smartHighlighting() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then preprocessor blocks can be folded. The + //! default is true. + //! + //! \sa foldPreprocessor() + virtual void setFoldPreprocessor(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setPreprocProp(); + void setSmartHighlightProp(); + + bool fold_comments; + bool fold_compact; + bool fold_preproc; + bool smart_highlight; + + QsciLexerPascal(const QsciLexerPascal &); + QsciLexerPascal &operator=(const QsciLexerPascal &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerperl.h b/Qt3/Qsci/qscilexerperl.h new file mode 100644 index 0000000..f9fd937 --- /dev/null +++ b/Qt3/Qsci/qscilexerperl.h @@ -0,0 +1,325 @@ +// This defines the interface to the QsciLexerPerl class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPERL_H +#define QSCILEXERPERL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerPerl class encapsulates the Scintilla Perl +//! lexer. +class QSCINTILLA_EXPORT QsciLexerPerl : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Perl lexer. + enum { + //! The default. + Default = 0, + + //! An error. + Error = 1, + + //! A comment. + Comment = 2, + + //! A POD. + POD = 3, + + //! A number. + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A double-quoted string. + DoubleQuotedString = 6, + + //! A single-quoted string. + SingleQuotedString = 7, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! A scalar. + Scalar = 12, + + //! An array. + Array = 13, + + //! A hash. + Hash = 14, + + //! A symbol table. + SymbolTable = 15, + + //! A regular expression. + Regex = 17, + + //! A substitution. + Substitution = 18, + + //! Backticks. + Backticks = 20, + + //! A data section. + DataSection = 21, + + //! A here document delimiter. + HereDocumentDelimiter = 22, + + //! A single quoted here document. + SingleQuotedHereDocument = 23, + + //! A double quoted here document. + DoubleQuotedHereDocument = 24, + + //! A backtick here document. + BacktickHereDocument = 25, + + //! A quoted string (q). + QuotedStringQ = 26, + + //! A quoted string (qq). + QuotedStringQQ = 27, + + //! A quoted string (qx). + QuotedStringQX = 28, + + //! A quoted string (qr). + QuotedStringQR = 29, + + //! A quoted string (qw). + QuotedStringQW = 30, + + //! A verbatim POD. + PODVerbatim = 31, + + //! A Subroutine prototype. + SubroutinePrototype = 40, + + //! A format identifier. + FormatIdentifier = 41, + + //! A format body. + FormatBody = 42, + + //! A double-quoted string (interpolated variable). + DoubleQuotedStringVar = 43, + + //! A translation. + Translation = 44, + + //! A regular expression (interpolated variable). + RegexVar = 54, + + //! A substitution (interpolated variable). + SubstitutionVar = 55, + + //! Backticks (interpolated variable). + BackticksVar = 57, + + //! A double quoted here document (interpolated variable). + DoubleQuotedHereDocumentVar = 61, + + //! A backtick here document (interpolated variable). + BacktickHereDocumentVar = 62, + + //! A quoted string (qq, interpolated variable). + QuotedStringQQVar = 64, + + //! A quoted string (qx, interpolated variable). + QuotedStringQXVar = 65, + + //! A quoted string (qr, interpolated variable). + QuotedStringQRVar = 66 + }; + + //! Construct a QsciLexerPerl with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerPerl(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerPerl instance. + virtual ~QsciLexerPerl(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number + //! \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a fold is true then "} else {" lines can be folded. The default is + //! false. + //! + //! \sa foldAtElse() + void setFoldAtElse(bool fold); + + //! Returns true if "} else {" lines can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const {return fold_atelse;} + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! If \a fold is true then packages can be folded. The default is true. + //! + //! \sa foldPackages() + void setFoldPackages(bool fold); + + //! Returns true if packages can be folded. + //! + //! \sa setFoldPackages() + bool foldPackages() const; + + //! If \a fold is true then POD blocks can be folded. The default is true. + //! + //! \sa foldPODBlocks() + void setFoldPODBlocks(bool fold); + + //! Returns true if POD blocks can be folded. + //! + //! \sa setFoldPODBlocks() + bool foldPODBlocks() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setAtElseProp(); + void setCommentProp(); + void setCompactProp(); + void setPackagesProp(); + void setPODBlocksProp(); + + bool fold_atelse; + bool fold_comments; + bool fold_compact; + bool fold_packages; + bool fold_pod_blocks; + + QsciLexerPerl(const QsciLexerPerl &); + QsciLexerPerl &operator=(const QsciLexerPerl &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerpo.h b/Qt3/Qsci/qscilexerpo.h new file mode 100644 index 0000000..2a08fd7 --- /dev/null +++ b/Qt3/Qsci/qscilexerpo.h @@ -0,0 +1,176 @@ +// This defines the interface to the QsciLexerPO class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPO_H +#define QSCILEXERPO_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerPO class encapsulates the Scintilla PO lexer. +class QSCINTILLA_EXPORT QsciLexerPO : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! PO lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A message identifier. + MessageId = 2, + + //! The text of a message identifier. + MessageIdText = 3, + + //! A message string. + MessageString = 4, + + //! The text of a message string. + MessageStringText = 5, + + //! A message context. + MessageContext = 6, + + //! The text of a message context. + MessageContextText = 7, + + //! The "fuzzy" flag. + Fuzzy = 8, + + //! A programmer comment. + ProgrammerComment = 9, + + //! A reference. + Reference = 10, + + //! A flag. + Flags = 11, + + //! A message identifier text end-of-line. + MessageIdTextEOL = 12, + + //! A message string text end-of-line. + MessageStringTextEOL = 13, + + //! A message context text end-of-line. + MessageContextTextEOL = 14 + }; + + //! Construct a QsciLexerPO with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerPO(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerPO instance. + virtual ~QsciLexerPO(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + + bool fold_comments; + bool fold_compact; + + QsciLexerPO(const QsciLexerPO &); + QsciLexerPO &operator=(const QsciLexerPO &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerpostscript.h b/Qt3/Qsci/qscilexerpostscript.h new file mode 100644 index 0000000..bd43a4f --- /dev/null +++ b/Qt3/Qsci/qscilexerpostscript.h @@ -0,0 +1,217 @@ +// This defines the interface to the QsciLexerPostScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPOSTSCRIPT_H +#define QSCILEXERPOSTSCRIPT_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerPostScript class encapsulates the Scintilla PostScript +//! lexer. +class QSCINTILLA_EXPORT QsciLexerPostScript : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! PostScript lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A DSC comment. + DSCComment = 2, + + //! A DSC comment value. + DSCCommentValue = 3, + + //! A number. + Number = 4, + + //! A name. + Name = 5, + + //! A keyword. + Keyword = 6, + + //! A literal. + Literal = 7, + + //! An immediately evaluated literal. + ImmediateEvalLiteral = 8, + + //! Array parenthesis. + ArrayParenthesis = 9, + + //! Dictionary parenthesis. + DictionaryParenthesis = 10, + + //! Procedure parenthesis. + ProcedureParenthesis = 11, + + //! Text. + Text = 12, + + //! A hexadecimal string. + HexString = 13, + + //! A base85 string. + Base85String = 14, + + //! A bad string character. + BadStringCharacter = 15 + }; + + //! Construct a QsciLexerPostScript with parent \a parent and name \a name. + //! \a parent is typically the QsciScintilla instance. + QsciLexerPostScript(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerPostScript instance. + virtual ~QsciLexerPostScript(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. Set 5 can be used to provide + //! additional user defined keywords. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if tokens should be marked. + //! + //! \sa setTokenize() + bool tokenize() const; + + //! Returns the PostScript level. + //! + //! \sa setLevel() + int level() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! Returns true if else blocks can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const; + +public slots: + //! If \a tokenize is true then tokens are marked. The default is false. + //! + //! \sa tokenize() + virtual void setTokenize(bool tokenize); + + //! The PostScript level is set to \a level. The default is 3. + //! + //! \sa level() + virtual void setLevel(int level); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then else blocks can be folded. The default is + //! false. + //! + //! \sa foldAtElse() + virtual void setFoldAtElse(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setTokenizeProp(); + void setLevelProp(); + void setCompactProp(); + void setAtElseProp(); + + bool ps_tokenize; + int ps_level; + bool fold_compact; + bool fold_atelse; + + QsciLexerPostScript(const QsciLexerPostScript &); + QsciLexerPostScript &operator=(const QsciLexerPostScript &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerpov.h b/Qt3/Qsci/qscilexerpov.h new file mode 100644 index 0000000..b065877 --- /dev/null +++ b/Qt3/Qsci/qscilexerpov.h @@ -0,0 +1,216 @@ +// This defines the interface to the QsciLexerPOV class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPOV_H +#define QSCILEXERPOV_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerPOV class encapsulates the Scintilla POV lexer. +class QSCINTILLA_EXPORT QsciLexerPOV : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! POV lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A comment line. + CommentLine = 2, + + //! A number. + Number = 3, + + //! An operator. + Operator = 4, + + //! An identifier + Identifier = 5, + + //! A string. + String = 6, + + //! The end of a line where a string is not closed. + UnclosedString = 7, + + //! A directive. + Directive = 8, + + //! A bad directive. + BadDirective = 9, + + //! Objects, CSG and appearance. + ObjectsCSGAppearance = 10, + + //! Types, modifiers and items. + TypesModifiersItems = 11, + + //! Predefined identifiers. + PredefinedIdentifiers = 12, + + //! Predefined identifiers. + PredefinedFunctions = 13, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet6 = 14, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet7 = 15, + + //! A keyword defined in keyword set number 8. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet8 = 16 + }; + + //! Construct a QsciLexerPOV with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerPOV(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerPOV instance. + virtual ~QsciLexerPOV(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! Returns true if directives can be folded. + //! + //! \sa setFoldDirectives() + bool foldDirectives() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then directives can be folded. The default is + //! false. + //! + //! \sa foldDirectives() + virtual void setFoldDirectives(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setDirectiveProp(); + + bool fold_comments; + bool fold_compact; + bool fold_directives; + + QsciLexerPOV(const QsciLexerPOV &); + QsciLexerPOV &operator=(const QsciLexerPOV &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerproperties.h b/Qt3/Qsci/qscilexerproperties.h new file mode 100644 index 0000000..aa2b22a --- /dev/null +++ b/Qt3/Qsci/qscilexerproperties.h @@ -0,0 +1,163 @@ +// This defines the interface to the QsciLexerProperties class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPROPERTIES_H +#define QSCILEXERPROPERTIES_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerProperties class encapsulates the Scintilla +//! Properties lexer. +class QSCINTILLA_EXPORT QsciLexerProperties : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Properties lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A section. + Section = 2, + + //! An assignment operator. + Assignment = 3, + + //! A default value. + DefaultValue = 4, + + //! A key. + Key = 5 + }; + + //! Construct a QsciLexerProperties with parent \a parent and name \a name. + //! \a parent is typically the QsciScintilla instance. + QsciLexerProperties(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerProperties instance. + virtual ~QsciLexerProperties(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the descriptive name for style number \a style. If the style + //! is invalid for this language then an empty QString is returned. This + //! is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! If \a enable is true then initial spaces in a line are allowed. The + //! default is true. + //! + //! \sa initialSpaces() + void setInitialSpaces(bool enable); + + //! Returns true if initial spaces in a line are allowed. + //! + //! \sa setInitialSpaces() + bool initialSpaces() const {return initial_spaces;} + +public slots: + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCompactProp(); + void setInitialSpacesProp(); + + bool fold_compact; + bool initial_spaces; + + QsciLexerProperties(const QsciLexerProperties &); + QsciLexerProperties &operator=(const QsciLexerProperties &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerpython.h b/Qt3/Qsci/qscilexerpython.h new file mode 100644 index 0000000..52ab033 --- /dev/null +++ b/Qt3/Qsci/qscilexerpython.h @@ -0,0 +1,334 @@ +// This defines the interface to the QsciLexerPython class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPYTHON_H +#define QSCILEXERPYTHON_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include +#include "Qsci/qsciscintillabase.h" + + +//! \brief The QsciLexerPython class encapsulates the Scintilla Python lexer. +class QSCINTILLA_EXPORT QsciLexerPython : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Python lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A number. + Number = 2, + + //! A double-quoted string. + DoubleQuotedString = 3, + + //! A single-quoted string. + SingleQuotedString = 4, + + //! A keyword. + Keyword = 5, + + //! A triple single-quoted string. + TripleSingleQuotedString = 6, + + //! A triple double-quoted string. + TripleDoubleQuotedString = 7, + + //! The name of a class. + ClassName = 8, + + //! The name of a function or method. + FunctionMethodName = 9, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! A comment block. + CommentBlock = 12, + + //! The end of a line where a string is not closed. + UnclosedString = 13, + + //! A highlighted identifier. These are defined by keyword set + //! 2. Reimplement keywords() to define keyword set 2. + HighlightedIdentifier = 14, + + //! A decorator. + Decorator = 15 + }; + + //! This enum defines the different conditions that can cause + //! indentations to be displayed as being bad. + enum IndentationWarning { + //! Bad indentation is not displayed differently. + NoWarning = 0, + + //! The indentation is inconsistent when compared to the + //! previous line, ie. it is made up of a different combination + //! of tabs and/or spaces. + Inconsistent = 1, + + //! The indentation is made up of spaces followed by tabs. + TabsAfterSpaces = 2, + + //! The indentation contains spaces. + Spaces = 3, + + //! The indentation contains tabs. + Tabs = 4 + }; + + //! Construct a QsciLexerPython with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerPython(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerPython instance. + virtual ~QsciLexerPython(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns the number of lines prior to the current one when + //! determining the scope of a block when auto-indenting. + int blockLookback() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! \internal Returns the view used for indentation guides. + virtual int indentationGuideView() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if indented comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + void setFoldCompact(bool fold); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! Returns true if triple quoted strings can be folded. + //! + //! \sa setFoldQuotes() + bool foldQuotes() const {return fold_quotes;} + + //! Returns the condition that will cause bad indentations to be + //! displayed. + //! + //! \sa setIndentationWarning() + QsciLexerPython::IndentationWarning indentationWarning() const {return indent_warn;} + + //! If \a enabled is true then sub-identifiers defined in keyword set 2 + //! will be highlighted. For example, if it is false and "open" is defined + //! in keyword set 2 then "foo.open" will not be highlighted. The default + //! is true. + //! + //! \sa highlightSubidentifiers() + void setHighlightSubidentifiers(bool enabled); + + //! Returns true if string literals are allowed to span newline characters. + //! + //! \sa setHighlightSubidentifiers() + bool highlightSubidentifiers() const {return highlight_subids;} + + //! If \a allowed is true then string literals are allowed to span newline + //! characters. The default is false. + //! + //! \sa stringsOverNewlineAllowed() + void setStringsOverNewlineAllowed(bool allowed); + + //! Returns true if string literals are allowed to span newline characters. + //! + //! \sa setStringsOverNewlineAllowed() + bool stringsOverNewlineAllowed() const {return strings_over_newline;} + + //! If \a allowed is true then Python v2 unicode string literals (e.g. + //! u"utf8") are allowed. The default is true. + //! + //! \sa v2UnicodeAllowed() + void setV2UnicodeAllowed(bool allowed); + + //! Returns true if Python v2 unicode string literals (e.g. u"utf8") are + //! allowed. + //! + //! \sa setV2UnicodeAllowed() + bool v2UnicodeAllowed() const {return v2_unicode;} + + //! If \a allowed is true then Python v3 binary and octal literals (e.g. + //! 0b1011, 0o712) are allowed. The default is true. + //! + //! \sa v3BinaryOctalAllowed() + void setV3BinaryOctalAllowed(bool allowed); + + //! Returns true if Python v3 binary and octal literals (e.g. 0b1011, + //! 0o712) are allowed. + //! + //! \sa setV3BinaryOctalAllowed() + bool v3BinaryOctalAllowed() const {return v3_binary_octal;} + + //! If \a allowed is true then Python v3 bytes string literals (e.g. + //! b"bytes") are allowed. The default is true. + //! + //! \sa v3BytesAllowed() + void setV3BytesAllowed(bool allowed); + + //! Returns true if Python v3 bytes string literals (e.g. b"bytes") are + //! allowed. + //! + //! \sa setV3BytesAllowed() + bool v3BytesAllowed() const {return v3_bytes;} + +public slots: + //! If \a fold is true then indented comment blocks can be folded. The + //! default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then triple quoted strings can be folded. The + //! default is false. + //! + //! \sa foldQuotes() + virtual void setFoldQuotes(bool fold); + + //! Sets the condition that will cause bad indentations to be + //! displayed. + //! + //! \sa indentationWarning() + virtual void setIndentationWarning(QsciLexerPython::IndentationWarning warn); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setQuotesProp(); + void setTabWhingeProp(); + void setStringsOverNewlineProp(); + void setV2UnicodeProp(); + void setV3BinaryOctalProp(); + void setV3BytesProp(); + void setHighlightSubidsProp(); + + bool fold_comments; + bool fold_compact; + bool fold_quotes; + IndentationWarning indent_warn; + bool strings_over_newline; + bool v2_unicode; + bool v3_binary_octal; + bool v3_bytes; + bool highlight_subids; + + friend class QsciLexerHTML; + + static const char *keywordClass; + + QsciLexerPython(const QsciLexerPython &); + QsciLexerPython &operator=(const QsciLexerPython &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerruby.h b/Qt3/Qsci/qscilexerruby.h new file mode 100644 index 0000000..1472900 --- /dev/null +++ b/Qt3/Qsci/qscilexerruby.h @@ -0,0 +1,253 @@ +// This defines the interface to the QsciLexerRuby class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERRUBY_H +#define QSCILEXERRUBY_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerRuby class encapsulates the Scintilla Ruby lexer. +class QSCINTILLA_EXPORT QsciLexerRuby : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Ruby lexer. + enum { + //! The default. + Default = 0, + + //! An error. + Error = 1, + + //! A comment. + Comment = 2, + + //! A POD. + POD = 3, + + //! A number. + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A double-quoted string. + DoubleQuotedString = 6, + + //! A single-quoted string. + SingleQuotedString = 7, + + //! The name of a class. + ClassName = 8, + + //! The name of a function or method. + FunctionMethodName = 9, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! A regular expression. + Regex = 12, + + //! A global. + Global = 13, + + //! A symbol. + Symbol = 14, + + //! The name of a module. + ModuleName = 15, + + //! An instance variable. + InstanceVariable = 16, + + //! A class variable. + ClassVariable = 17, + + //! Backticks. + Backticks = 18, + + //! A data section. + DataSection = 19, + + //! A here document delimiter. + HereDocumentDelimiter = 20, + + //! A here document. + HereDocument = 21, + + //! A %q string. + PercentStringq = 24, + + //! A %Q string. + PercentStringQ = 25, + + //! A %x string. + PercentStringx = 26, + + //! A %r string. + PercentStringr = 27, + + //! A %w string. + PercentStringw = 28, + + //! A demoted keyword. + DemotedKeyword = 29, + + //! stdin. + Stdin = 30, + + //! stdout. + Stdout = 31, + + //! stderr. + Stderr = 40 + }; + + //! Construct a QsciLexerRuby with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerRuby(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerRuby instance. + virtual ~QsciLexerRuby(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The style is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a + //! particular style that define the start of a block for + //! auto-indentation. The style is returned via \a style. + const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultpaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the style + //! is invalid for this language then an empty QString is returned. This + //! is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + void setFoldComments(bool fold); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + void setFoldCompact(bool fold); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs, const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + + bool fold_comments; + bool fold_compact; + + QsciLexerRuby(const QsciLexerRuby &); + QsciLexerRuby &operator=(const QsciLexerRuby &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerspice.h b/Qt3/Qsci/qscilexerspice.h new file mode 100644 index 0000000..20545aa --- /dev/null +++ b/Qt3/Qsci/qscilexerspice.h @@ -0,0 +1,119 @@ +// This defines the interface to the QsciLexerSpice class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERSPICE_H +#define QSCILEXERSPICE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerSpice class encapsulates the Scintilla Spice lexer. +class QSCINTILLA_EXPORT QsciLexerSpice : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Spice lexer. + enum { + //! The default. + Default = 0, + + //! An identifier. + Identifier = 1, + + //! A command. + Command = 2, + + //! A function. + Function = 3, + + //! A parameter. + Parameter = 4, + + //! A number. + Number = 5, + + //! A delimiter. + Delimiter = 6, + + //! A value. + Value = 7, + + //! A comment. + Comment = 8 + }; + + //! Construct a QsciLexerSpice with parent \a parent and name \a name. + //! \a parent is typically the QsciScintilla instance. + QsciLexerSpice(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerSpice instance. + virtual ~QsciLexerSpice(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerSpice(const QsciLexerSpice &); + QsciLexerSpice &operator=(const QsciLexerSpice &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexersql.h b/Qt3/Qsci/qscilexersql.h new file mode 100644 index 0000000..2c3f6f2 --- /dev/null +++ b/Qt3/Qsci/qscilexersql.h @@ -0,0 +1,296 @@ +// This defines the interface to the QsciLexerSQL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERSQL_H +#define QSCILEXERSQL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerSQL class encapsulates the Scintilla SQL lexer. +class QSCINTILLA_EXPORT QsciLexerSQL : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! SQL lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A line comment. + CommentLine = 2, + + //! A JavaDoc/Doxygen style comment. + CommentDoc = 3, + + //! A number. + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A double-quoted string. + DoubleQuotedString = 6, + + //! A single-quoted string. + SingleQuotedString = 7, + + //! An SQL*Plus keyword. + PlusKeyword = 8, + + //! An SQL*Plus prompt. + PlusPrompt = 9, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! An SQL*Plus comment. + PlusComment = 13, + + //! A '#' line comment. + CommentLineHash = 15, + + //! A JavaDoc/Doxygen keyword. + CommentDocKeyword = 17, + + //! A JavaDoc/Doxygen keyword error. + CommentDocKeywordError = 18, + + //! A keyword defined in keyword set number 5. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + //! Note that keywords must be defined using lower case. + KeywordSet5 = 19, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + //! Note that keywords must be defined using lower case. + KeywordSet6 = 20, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + //! Note that keywords must be defined using lower case. + KeywordSet7 = 21, + + //! A keyword defined in keyword set number 8. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + //! Note that keywords must be defined using lower case. + KeywordSet8 = 22, + + //! A quoted identifier. + QuotedIdentifier = 23 + }; + + //! Construct a QsciLexerSQL with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerSQL(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerSQL instance. + virtual ~QsciLexerSQL(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised by + //! the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the style + //! is invalid for this language then an empty QString is returned. This + //! is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if backslash escapes are enabled. + //! + //! \sa setBackslashEscapes() + bool backslashEscapes() const {return backslash_escapes;} + + //! If \a enable is true then words may contain dots (i.e. periods or full + //! stops). The default is false. + //! + //! \sa dottedWords() + void setDottedWords(bool enable); + + //! Returns true if words may contain dots (i.e. periods or full stops). + //! + //! \sa setDottedWords() + bool dottedWords() const {return allow_dotted_word;} + + //! If \a fold is true then ELSE blocks can be folded. The default is + //! false. + //! + //! \sa foldAtElse() + void setFoldAtElse(bool fold); + + //! Returns true if ELSE blocks can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const {return at_else;} + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! If \a fold is true then only BEGIN blocks can be folded. The default + //! is false. + //! + //! \sa foldOnlyBegin() + void setFoldOnlyBegin(bool fold); + + //! Returns true if BEGIN blocks only can be folded. + //! + //! \sa setFoldOnlyBegin() + bool foldOnlyBegin() const {return only_begin;} + + //! If \a enable is true then '#' is used as a comment character. It is + //! typically enabled for MySQL and disabled for Oracle. The default is + //! false. + //! + //! \sa hashComments() + void setHashComments(bool enable); + + //! Returns true if '#' is used as a comment character. + //! + //! \sa setHashComments() + bool hashComments() const {return numbersign_comment;} + + //! If \a enable is true then quoted identifiers are enabled. The default + //! is false. + //! + //! \sa quotedIdentifiers() + void setQuotedIdentifiers(bool enable); + + //! Returns true if quoted identifiers are enabled. + //! + //! \sa setQuotedIdentifiers() + bool quotedIdentifiers() const {return backticks_identifier;} + +public slots: + //! If \a enable is true then backslash escapes are enabled. The + //! default is false. + //! + //! \sa backslashEscapes() + virtual void setBackslashEscapes(bool enable); + + //! If \a fold is true then multi-line comment blocks can be folded. The + //! default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs, const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + void setAtElseProp(); + void setCommentProp(); + void setCompactProp(); + void setOnlyBeginProp(); + void setBackticksIdentifierProp(); + void setNumbersignCommentProp(); + void setBackslashEscapesProp(); + void setAllowDottedWordProp(); + + bool at_else; + bool fold_comments; + bool fold_compact; + bool only_begin; + bool backticks_identifier; + bool numbersign_comment; + bool backslash_escapes; + bool allow_dotted_word; + + QsciLexerSQL(const QsciLexerSQL &); + QsciLexerSQL &operator=(const QsciLexerSQL &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexertcl.h b/Qt3/Qsci/qscilexertcl.h new file mode 100644 index 0000000..cfc71f2 --- /dev/null +++ b/Qt3/Qsci/qscilexertcl.h @@ -0,0 +1,202 @@ +// This defines the interface to the QsciLexerTCL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERTCL_H +#define QSCILEXERTCL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerTCL class encapsulates the Scintilla TCL lexer. +class QSCINTILLA_EXPORT QsciLexerTCL : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the TCL + //! lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A comment line. + CommentLine = 2, + + //! A number. + Number = 3, + + //! A quoted keyword. + QuotedKeyword = 4, + + //! A quoted string. + QuotedString = 5, + + //! An operator. + Operator = 6, + + //! An identifier + Identifier = 7, + + //! A substitution. + Substitution = 8, + + //! A substitution starting with a brace. + SubstitutionBrace = 9, + + //! A modifier. + Modifier = 10, + + //! Expand keyword (defined in keyword set number 5). + ExpandKeyword = 11, + + //! A TCL keyword (defined in keyword set number 1). + TCLKeyword = 12, + + //! A Tk keyword (defined in keyword set number 2). + TkKeyword = 13, + + //! An iTCL keyword (defined in keyword set number 3). + ITCLKeyword = 14, + + //! A Tk command (defined in keyword set number 4). + TkCommand = 15, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet6 = 16, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet7 = 17, + + //! A keyword defined in keyword set number 8. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet8 = 18, + + //! A keyword defined in keyword set number 9. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet9 = 19, + + //! A comment box. + CommentBox = 20, + + //! A comment block. + CommentBlock = 21 + }; + + //! Construct a QsciLexerTCL with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerTCL(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerTCL instance. + virtual ~QsciLexerTCL(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the style + //! is invalid for this language then an empty QString is returned. This + //! is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a fold is true then multi-line comment blocks can be folded. The + //! default is false. + //! + //! \sa foldComments() + void setFoldComments(bool fold); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + + bool fold_comments; + + QsciLexerTCL(const QsciLexerTCL &); + QsciLexerTCL &operator=(const QsciLexerTCL &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexertex.h b/Qt3/Qsci/qscilexertex.h new file mode 100644 index 0000000..345c7ed --- /dev/null +++ b/Qt3/Qsci/qscilexertex.h @@ -0,0 +1,176 @@ +// This defines the interface to the QsciLexerTeX class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERTEX_H +#define QSCILEXERTEX_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerTeX class encapsulates the Scintilla TeX lexer. +class QSCINTILLA_EXPORT QsciLexerTeX : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! TeX lexer. + enum { + //! The default. + Default = 0, + + //! A special. + Special = 1, + + //! A group. + Group = 2, + + //! A symbol. + Symbol = 3, + + //! A command. + Command = 4, + + //! Text. + Text = 5 + }; + + //! Construct a QsciLexerTeX with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerTeX(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerTeX instance. + virtual ~QsciLexerTeX(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + QColor defaultColor(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a fold is true then multi-line comment blocks can be folded. The + //! default is false. + //! + //! \sa foldComments() + void setFoldComments(bool fold); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + void setFoldCompact(bool fold); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! If \a enable is true then comments are processed as TeX source + //! otherwise they are ignored. The default is false. + //! + //! \sa processComments() + void setProcessComments(bool enable); + + //! Returns true if comments are processed as TeX source. + //! + //! \sa setProcessComments() + bool processComments() const {return process_comments;} + + //! If \a enable is true then \\if processed is processed as a + //! command. The default is true. + //! + //! \sa processIf() + void setProcessIf(bool enable); + + //! Returns true if \\if is processed as a command. + //! + //! \sa setProcessIf() + bool processIf() const {return process_if;} + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs, const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setProcessCommentsProp(); + void setAutoIfProp(); + + bool fold_comments; + bool fold_compact; + bool process_comments; + bool process_if; + + QsciLexerTeX(const QsciLexerTeX &); + QsciLexerTeX &operator=(const QsciLexerTeX &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerverilog.h b/Qt3/Qsci/qscilexerverilog.h new file mode 100644 index 0000000..79d5fcc --- /dev/null +++ b/Qt3/Qsci/qscilexerverilog.h @@ -0,0 +1,236 @@ +// This defines the interface to the QsciLexerVerilog class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERVERILOG_H +#define QSCILEXERVERILOG_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerVerilog class encapsulates the Scintilla Verilog +//! lexer. +class QSCINTILLA_EXPORT QsciLexerVerilog : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Verilog lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A line comment. + CommentLine = 2, + + //! A bang comment. + CommentBang = 3, + + //! A number + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A string. + String = 6, + + //! A keyword defined in keyword set number 2. The class must + //! be sub-classed and re-implement keywords() to make use of + //! this style. + KeywordSet2 = 7, + + //! A system task. + SystemTask = 8, + + //! A pre-processor block. + Preprocessor = 9, + + //! An operator. + Operator = 10, + + //! An identifier. + Identifier = 11, + + //! The end of a line where a string is not closed. + UnclosedString = 12, + + //! A keyword defined in keyword set number 4. The class must + //! be sub-classed and re-implement keywords() to make use of + //! this style. This set is intended to be used for user defined + //! identifiers and tasks. + UserKeywordSet = 19 + }; + + //! Construct a QsciLexerVerilog with parent \a parent and name \a name. + //! \a parent is typically the QsciScintilla instance. + QsciLexerVerilog(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerVerilog instance. + virtual ~QsciLexerVerilog(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a fold is true then "} else {" lines can be folded. The + //! default is false. + //! + //! \sa foldAtElse() + void setFoldAtElse(bool fold); + + //! Returns true if "} else {" lines can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const; + + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + void setFoldComments(bool fold); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + void setFoldCompact(bool fold); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! If \a fold is true then preprocessor blocks can be folded. The + //! default is true. + //! + //! \sa foldPreprocessor() + void setFoldPreprocessor(bool fold); + + //! Returns true if preprocessor blocks can be folded. + //! + //! \sa setFoldPreprocessor() + bool foldPreprocessor() const; + + //! If \a fold is true then modules can be folded. The default is false. + //! + //! \sa foldAtModule() + void setFoldAtModule(bool fold); + + //! Returns true if modules can be folded. + //! + //! \sa setFoldAtModule() + bool foldAtModule() const; + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setAtElseProp(); + void setCommentProp(); + void setCompactProp(); + void setPreprocProp(); + void setAtModuleProp(); + + bool fold_atelse; + bool fold_comments; + bool fold_compact; + bool fold_preproc; + bool fold_atmodule; + + QsciLexerVerilog(const QsciLexerVerilog &); + QsciLexerVerilog &operator=(const QsciLexerVerilog &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexervhdl.h b/Qt3/Qsci/qscilexervhdl.h new file mode 100644 index 0000000..d206bc7 --- /dev/null +++ b/Qt3/Qsci/qscilexervhdl.h @@ -0,0 +1,231 @@ +// This defines the interface to the QsciLexerVHDL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERVHDL_H +#define QSCILEXERVHDL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerVHDL class encapsulates the Scintilla VHDL lexer. +class QSCINTILLA_EXPORT QsciLexerVHDL : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! VHDL lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A comment line. + CommentLine = 2, + + //! A number. + Number = 3, + + //! A string. + String = 4, + + //! An operator. + Operator = 5, + + //! An identifier + Identifier = 6, + + //! The end of a line where a string is not closed. + UnclosedString = 7, + + //! A keyword. + Keyword = 8, + + //! A standard operator. + StandardOperator = 9, + + //! An attribute. + Attribute = 10, + + //! A standard function. + StandardFunction = 11, + + //! A standard package. + StandardPackage = 12, + + //! A standard type. + StandardType = 13, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet7 = 14 + }; + + //! Construct a QsciLexerVHDL with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerVHDL(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerVHDL instance. + virtual ~QsciLexerVHDL(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! Returns true if else blocks can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const; + + //! Returns true if begin blocks can be folded. + //! + //! \sa setFoldAtBegin() + bool foldAtBegin() const; + + //! Returns true if blocks can be folded at a parenthesis. + //! + //! \sa setFoldAtParenthesis() + bool foldAtParenthesis() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is true. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then else blocks can be folded. The default is + //! true. + //! + //! \sa foldAtElse() + virtual void setFoldAtElse(bool fold); + + //! If \a fold is true then begin blocks can be folded. The default is + //! true. + //! + //! \sa foldAtBegin() + virtual void setFoldAtBegin(bool fold); + + //! If \a fold is true then blocks can be folded at a parenthesis. The + //! default is true. + //! + //! \sa foldAtParenthesis() + virtual void setFoldAtParenthesis(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setAtElseProp(); + void setAtBeginProp(); + void setAtParenthProp(); + + bool fold_comments; + bool fold_compact; + bool fold_atelse; + bool fold_atbegin; + bool fold_atparenth; + + QsciLexerVHDL(const QsciLexerVHDL &); + QsciLexerVHDL &operator=(const QsciLexerVHDL &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexerxml.h b/Qt3/Qsci/qscilexerxml.h new file mode 100644 index 0000000..b623942 --- /dev/null +++ b/Qt3/Qsci/qscilexerxml.h @@ -0,0 +1,119 @@ +// This defines the interface to the QsciLexerXML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERXML_H +#define QSCILEXERXML_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerXML class encapsulates the Scintilla XML lexer. +class QSCINTILLA_EXPORT QsciLexerXML : public QsciLexerHTML +{ + Q_OBJECT + +public: + //! Construct a QsciLexerXML with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerXML(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerXML instance. + virtual ~QsciLexerXML(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a allowed is true then scripts are styled. The default is true. + //! + //! \sa scriptsStyled() + void setScriptsStyled(bool styled); + + //! Returns true if scripts are styled. + //! + //! \sa setScriptsStyled() + bool scriptsStyled() const; + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs, const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + void setScriptsProp(); + + bool scripts; + + QsciLexerXML(const QsciLexerXML &); + QsciLexerXML &operator=(const QsciLexerXML &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscilexeryaml.h b/Qt3/Qsci/qscilexeryaml.h new file mode 100644 index 0000000..bf273c8 --- /dev/null +++ b/Qt3/Qsci/qscilexeryaml.h @@ -0,0 +1,160 @@ +// This defines the interface to the QsciLexerYAML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERYAML_H +#define QSCILEXERYAML_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerYAML class encapsulates the Scintilla YAML lexer. +class QSCINTILLA_EXPORT QsciLexerYAML : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! YAML lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! An identifier. + Identifier = 2, + + //! A keyword + Keyword = 3, + + //! A number. + Number = 4, + + //! A reference. + Reference = 5, + + //! A document delimiter. + DocumentDelimiter = 6, + + //! A text block marker. + TextBlockMarker = 7, + + //! A syntax error marker. + SyntaxErrorMarker = 8, + + //! An operator. + Operator = 9 + }; + + //! Construct a QsciLexerYAML with parent \a parent and name \a name. \a + //! parent is typically the QsciScintilla instance. + QsciLexerYAML(QObject *parent = 0, const char *name = 0); + + //! Destroys the QsciLexerYAML instance. + virtual ~QsciLexerYAML(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + + bool fold_comments; + + QsciLexerYAML(const QsciLexerYAML &); + QsciLexerYAML &operator=(const QsciLexerYAML &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscimacro.h b/Qt3/Qsci/qscimacro.h new file mode 100644 index 0000000..f1ff5d1 --- /dev/null +++ b/Qt3/Qsci/qscimacro.h @@ -0,0 +1,112 @@ +// This defines the interface to the QsciMacro class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIMACRO_H +#define QSCIMACRO_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include + +#include + +#include + + +class QsciScintilla; + + +//! \brief The QsciMacro class represents a sequence of recordable editor +//! commands. +//! +//! Methods are provided to convert convert a macro to and from a textual +//! representation so that they can be easily written to and read from +//! permanent storage. +class QSCINTILLA_EXPORT QsciMacro : public QObject +{ + Q_OBJECT + +public: + //! Construct a QsciMacro with parent \a parent and name \a name. + QsciMacro(QsciScintilla *parent, const char *name = 0); + + //! Construct a QsciMacro from the printable ASCII representation \a asc, + //! with parent \a parent and name \a name. + QsciMacro(const QString &asc, QsciScintilla *parent, const char *name = 0); + + //! Destroy the QsciMacro instance. + virtual ~QsciMacro(); + + //! Clear the contents of the macro. + void clear(); + + //! Load the macro from the printable ASCII representation \a asc. Returns + //! true if there was no error. + //! + //! \sa save() + bool load(const QString &asc); + + //! Return a printable ASCII representation of the macro. It is guaranteed + //! that only printable ASCII characters are used and that double quote + //! characters will not be used. + //! + //! \sa load() + QString save() const; + +public slots: + //! Play the macro. + virtual void play(); + + //! Start recording user commands and add them to the macro. + virtual void startRecording(); + + //! Stop recording user commands. + virtual void endRecording(); + +private slots: + void record(unsigned int msg, unsigned long wParam, void *lParam); + +private: + struct Macro { + unsigned int msg; + unsigned long wParam; + QCString text; + }; + + QsciScintilla *qsci; + QValueList macro; + + QsciMacro(const QsciMacro &); + QsciMacro &operator=(const QsciMacro &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qsciprinter.h b/Qt3/Qsci/qsciprinter.h new file mode 100644 index 0000000..1c75ffa --- /dev/null +++ b/Qt3/Qsci/qsciprinter.h @@ -0,0 +1,125 @@ +// This module defines interface to the QsciPrinter class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIPRINTER_H +#define QSCIPRINTER_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +// This is needed for Qt v5.0.0-alpha. +#if defined(B0) +#undef B0 +#endif + +#include + +#if !defined(QT_NO_PRINTER) + +#include +#include + + +QT_BEGIN_NAMESPACE +class QRect; +class QPainter; +QT_END_NAMESPACE + +class QsciScintillaBase; + + +//! \brief The QsciPrinter class is a sub-class of the Qt QPrinter class that +//! is able to print the text of a Scintilla document. +//! +//! The class can be further sub-classed to alter to layout of the text, adding +//! headers and footers for example. +class QSCINTILLA_EXPORT QsciPrinter : public QPrinter +{ +public: + //! Constructs a printer paint device with mode \a mode. + QsciPrinter(PrinterMode mode = ScreenResolution); + + //! Destroys the QsciPrinter instance. + virtual ~QsciPrinter(); + + //! Format a page, by adding headers and footers for example, before the + //! document text is drawn on it. \a painter is the painter to be used to + //! add customised text and graphics. \a drawing is true if the page is + //! actually being drawn rather than being sized. \a painter drawing + //! methods must only be called when \a drawing is true. \a area is the + //! area of the page that will be used to draw the text. This should be + //! modified if it is necessary to reserve space for any customised text or + //! graphics. By default the area is relative to the printable area of the + //! page. Use QPrinter::setFullPage() because calling printRange() if you + //! want to try and print over the whole page. \a pagenr is the number of + //! the page. The first page is numbered 1. + virtual void formatPage(QPainter &painter, bool drawing, QRect &area, + int pagenr); + + //! Return the number of points to add to each font when printing. + //! + //! \sa setMagnification() + int magnification() const {return mag;} + + //! Sets the number of points to add to each font when printing to \a + //! magnification. + //! + //! \sa magnification() + virtual void setMagnification(int magnification); + + //! Print a range of lines from the Scintilla instance \a qsb. \a from is + //! the first line to print and a negative value signifies the first line + //! of text. \a to is the last line to print and a negative value + //! signifies the last line of text. true is returned if there was no + //! error. + virtual int printRange(QsciScintillaBase *qsb, int from = -1, int to = -1); + + //! Return the line wrap mode used when printing. The default is + //! QsciScintilla::WrapWord. + //! + //! \sa setWrapMode() + QsciScintilla::WrapMode wrapMode() const {return wrap;} + + //! Sets the line wrap mode used when printing to \a wmode. + //! + //! \sa wrapMode() + virtual void setWrapMode(QsciScintilla::WrapMode wmode); + +private: + int mag; + QsciScintilla::WrapMode wrap; + + QsciPrinter(const QsciPrinter &); + QsciPrinter &operator=(const QsciPrinter &); +}; + +#endif + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qsciscintilla.h b/Qt3/Qsci/qsciscintilla.h new file mode 100644 index 0000000..1be0d59 --- /dev/null +++ b/Qt3/Qsci/qsciscintilla.h @@ -0,0 +1,2121 @@ +// This module defines the "official" high-level API of the Qt port of +// Scintilla. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCISCINTILLA_H +#define QSCISCINTILLA_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include + +#include +#include +#include + +#include +#include +#include +#include + + +QT_BEGIN_NAMESPACE +class QAction; +class QImage; +class QIODevice; +class QMenu; +class QPoint; +QT_END_NAMESPACE + +class QsciCommandSet; +class QsciLexer; +class QsciStyle; +class QsciStyledText; +class QsciListBoxQt; + + +//! \brief The QsciScintilla class implements a higher level, more Qt-like, +//! API to the Scintilla editor widget. +//! +//! QsciScintilla implements methods, signals and slots similar to those found +//! in other Qt editor classes. It also provides a higher level interface to +//! features specific to Scintilla such as syntax styling, call tips, +//! auto-indenting and auto-completion than that provided by QsciScintillaBase. +class QSCINTILLA_EXPORT QsciScintilla : public QsciScintillaBase +{ + Q_OBJECT + +public: + //! This enum defines the different auto-indentation styles. + enum { + //! A line is automatically indented to match the previous line. + AiMaintain = 0x01, + + //! If the language supported by the current lexer has a specific start + //! of block character (e.g. { in C++), then a line that begins with + //! that character is indented as well as the lines that make up the + //! block. It may be logically ored with AiClosing. + AiOpening = 0x02, + + //! If the language supported by the current lexer has a specific end + //! of block character (e.g. } in C++), then a line that begins with + //! that character is indented as well as the lines that make up the + //! block. It may be logically ored with AiOpening. + AiClosing = 0x04 + }; + + //! This enum defines the different annotation display styles. + enum AnnotationDisplay { + //! Annotations are not displayed. + AnnotationHidden = ANNOTATION_HIDDEN, + + //! Annotations are drawn left justified with no adornment. + AnnotationStandard = ANNOTATION_STANDARD, + + //! Annotations are surrounded by a box. + AnnotationBoxed = ANNOTATION_BOXED + }; + + //! This enum defines the behavior if an auto-completion list contains a + //! single entry. + enum AutoCompletionUseSingle { + //! The single entry is not used automatically and the auto-completion + //! list is displayed. + AcusNever, + + //! The single entry is used automatically when auto-completion is + //! explicitly requested (using autoCompleteFromAPIs() or + //! autoCompleteFromDocument()) but not when auto-completion is + //! triggered as the user types. + AcusExplicit, + + //! The single entry is used automatically and the auto-completion list + //! is not displayed. + AcusAlways + }; + + //! This enum defines the different sources for auto-completion lists. + enum AutoCompletionSource { + //! No sources are used, ie. automatic auto-completion is disabled. + AcsNone, + + //! The source is all available sources. + AcsAll, + + //! The source is the current document. + AcsDocument, + + //! The source is any installed APIs. + AcsAPIs + }; + + //! This enum defines the different brace matching modes. The character + //! pairs {}, [] and () are treated as braces. The Python lexer will also + //! match a : with the end of the corresponding indented block. + enum BraceMatch { + //! Brace matching is disabled. + NoBraceMatch, + + //! Brace matching is enabled for a brace immediately before the + //! current position. + StrictBraceMatch, + + //! Brace matching is enabled for a brace immediately before or after + //! the current position. + SloppyBraceMatch + }; + + //! This enum defines the different call tip positions. + enum CallTipsPosition { + //! Call tips are placed below the text. + CallTipsBelowText, + + //! Call tips are placed above the text. + CallTipsAboveText, + }; + + //! This enum defines the different call tip styles. + enum CallTipsStyle { + //! Call tips are disabled. + CallTipsNone, + + //! Call tips are displayed without a context. A context is any scope + //! (e.g. a C++ namespace or a Python module) prior to the function + //! name. + CallTipsNoContext, + + //! Call tips are displayed with a context only if the user hasn't + //! already implicitly identified the context using autocompletion. + //! Note that this style may not always be able to align the call tip + //! with the text being entered. + CallTipsNoAutoCompletionContext, + + //! Call tips are displayed with a context. Note that this style + //! may not always be able to align the call tip with the text being + //! entered. + CallTipsContext + }; + + //! This enum defines the different edge modes for long lines. + enum EdgeMode { + //! Long lines are not marked. + EdgeNone = EDGE_NONE, + + //! A vertical line is drawn at the column set by setEdgeColumn(). + //! This is recommended for monospace fonts. + EdgeLine = EDGE_LINE, + + //! The background color of characters after the column limit is + //! changed to the color set by setEdgeColor(). This is recommended + //! for proportional fonts. + EdgeBackground = EDGE_BACKGROUND + }; + + //! This enum defines the different end-of-line modes. + enum EolMode { + //! A carriage return/line feed as used on Windows systems. + EolWindows = SC_EOL_CRLF, + + //! A line feed as used on Unix systems, including OS/X. + EolUnix = SC_EOL_LF, + + //! A carriage return as used on Mac systems prior to OS/X. + EolMac = SC_EOL_CR + }; + + //! This enum defines the different styles for the folding margin. + enum FoldStyle { + //! Folding is disabled. + NoFoldStyle, + + //! Plain folding style using plus and minus symbols. + PlainFoldStyle, + + //! Circled folding style using circled plus and minus symbols. + CircledFoldStyle, + + //! Boxed folding style using boxed plus and minus symbols. + BoxedFoldStyle, + + //! Circled tree style using a flattened tree with circled plus and + //! minus symbols and rounded corners. + CircledTreeFoldStyle, + + //! Boxed tree style using a flattened tree with boxed plus and minus + //! symbols and right-angled corners. + BoxedTreeFoldStyle + }; + + //! This enum defines the different indicator styles. + enum IndicatorStyle { + //! A single straight underline. + PlainIndicator = INDIC_PLAIN, + + //! A squiggly underline that requires 3 pixels of descender space. + SquiggleIndicator = INDIC_SQUIGGLE, + + //! A line of small T shapes. + TTIndicator = INDIC_TT, + + //! Diagonal hatching. + DiagonalIndicator = INDIC_DIAGONAL, + + //! Strike out. + StrikeIndicator = INDIC_STRIKE, + + //! An indicator with no visual appearence. + HiddenIndicator = INDIC_HIDDEN, + + //! A rectangle around the text. + BoxIndicator = INDIC_BOX, + + //! A rectangle with rounded corners around the text with the interior + //! usually more transparent than the border. + RoundBoxIndicator = INDIC_ROUNDBOX, + + //! A rectangle around the text with the interior usually more + //! transparent than the border. + StraightBoxIndicator = INDIC_STRAIGHTBOX, + + //! A dashed underline. + DashesIndicator = INDIC_DASH, + + //! A dotted underline. + DotsIndicator = INDIC_DOTS, + + //! A squiggly underline that requires 2 pixels of descender space and + //! so will fit under smaller fonts. + SquiggleLowIndicator = INDIC_SQUIGGLELOW, + + //! A dotted rectangle around the text with the interior usually more + //! transparent than the border. + DotBoxIndicator = INDIC_DOTBOX, + + //! A version of SquiggleIndicator that uses a pixmap. This is quicker + //! but may be of lower quality. + SquigglePixmapIndicator = INDIC_SQUIGGLEPIXMAP, + + //! A thick underline typically used during Asian language input + //! composition. + ThickCompositionIndicator = INDIC_COMPOSITIONTHICK, + }; + + //! This enum defines the different margin options. + enum { + //! Reset all margin options. + MoNone = SC_MARGINOPTION_NONE, + + //! If this is set then only the first sub-line of a wrapped line will + //! be selected when clicking on a margin. + MoSublineSelect = SC_MARGINOPTION_SUBLINESELECT + }; + + //! This enum defines the different margin types. + enum MarginType { + //! The margin contains symbols, including those used for folding. + SymbolMargin = SC_MARGIN_SYMBOL, + + //! The margin contains symbols and uses the default foreground color + //! as its background color. + SymbolMarginDefaultForegroundColor = SC_MARGIN_FORE, + + //! The margin contains symbols and uses the default background color + //! as its background color. + SymbolMarginDefaultBackgroundColor = SC_MARGIN_BACK, + + //! The margin contains line numbers. + NumberMargin = SC_MARGIN_NUMBER, + + //! The margin contains styled text. + TextMargin = SC_MARGIN_TEXT, + + //! The margin contains right justified styled text. + TextMarginRightJustified = SC_MARGIN_RTEXT + }; + + //! This enum defines the different pre-defined marker symbols. + enum MarkerSymbol { + //! A circle. + Circle = SC_MARK_CIRCLE, + + //! A rectangle. + Rectangle = SC_MARK_ROUNDRECT, + + //! A triangle pointing to the right. + RightTriangle = SC_MARK_ARROW, + + //! A smaller rectangle. + SmallRectangle = SC_MARK_SMALLRECT, + + //! An arrow pointing to the right. + RightArrow = SC_MARK_SHORTARROW, + + //! An invisible marker that allows code to track the movement + //! of lines. + Invisible = SC_MARK_EMPTY, + + //! A triangle pointing down. + DownTriangle = SC_MARK_ARROWDOWN, + + //! A drawn minus sign. + Minus = SC_MARK_MINUS, + + //! A drawn plus sign. + Plus = SC_MARK_PLUS, + + //! A vertical line drawn in the background colour. + VerticalLine = SC_MARK_VLINE, + + //! A bottom left corner drawn in the background colour. + BottomLeftCorner = SC_MARK_LCORNER, + + //! A vertical line with a centre right horizontal line drawn + //! in the background colour. + LeftSideSplitter = SC_MARK_TCORNER, + + //! A drawn plus sign in a box. + BoxedPlus = SC_MARK_BOXPLUS, + + //! A drawn plus sign in a connected box. + BoxedPlusConnected = SC_MARK_BOXPLUSCONNECTED, + + //! A drawn minus sign in a box. + BoxedMinus = SC_MARK_BOXMINUS, + + //! A drawn minus sign in a connected box. + BoxedMinusConnected = SC_MARK_BOXMINUSCONNECTED, + + //! A rounded bottom left corner drawn in the background + //! colour. + RoundedBottomLeftCorner = SC_MARK_LCORNERCURVE, + + //! A vertical line with a centre right curved line drawn in the + //! background colour. + LeftSideRoundedSplitter = SC_MARK_TCORNERCURVE, + + //! A drawn plus sign in a circle. + CircledPlus = SC_MARK_CIRCLEPLUS, + + //! A drawn plus sign in a connected box. + CircledPlusConnected = SC_MARK_CIRCLEPLUSCONNECTED, + + //! A drawn minus sign in a circle. + CircledMinus = SC_MARK_CIRCLEMINUS, + + //! A drawn minus sign in a connected circle. + CircledMinusConnected = SC_MARK_CIRCLEMINUSCONNECTED, + + //! No symbol is drawn but the line is drawn with the same background + //! color as the marker's. + Background = SC_MARK_BACKGROUND, + + //! Three drawn dots. + ThreeDots = SC_MARK_DOTDOTDOT, + + //! Three drawn arrows pointing right. + ThreeRightArrows = SC_MARK_ARROWS, + + //! A full rectangle (ie. the margin background) using the marker's + //! background color. + FullRectangle = SC_MARK_FULLRECT, + + //! A left rectangle (ie. the left part of the margin background) using + //! the marker's background color. + LeftRectangle = SC_MARK_LEFTRECT, + + //! No symbol is drawn but the line is drawn underlined using the + //! marker's background color. + Underline = SC_MARK_UNDERLINE + }; + + //! This enum defines the different whitespace visibility modes. When + //! whitespace is visible spaces are displayed as small centred dots and + //! tabs are displayed as light arrows pointing to the right. + enum WhitespaceVisibility { + //! Whitespace is invisible. + WsInvisible = SCWS_INVISIBLE, + + //! Whitespace is always visible. + WsVisible = SCWS_VISIBLEALWAYS, + + //! Whitespace is visible after the whitespace used for indentation. + WsVisibleAfterIndent = SCWS_VISIBLEAFTERINDENT + }; + + //! This enum defines the different line wrap modes. + enum WrapMode { + //! Lines are not wrapped. + WrapNone = SC_WRAP_NONE, + + //! Lines are wrapped at word boundaries. + WrapWord = SC_WRAP_WORD, + + //! Lines are wrapped at character boundaries. + WrapCharacter = SC_WRAP_CHAR + }; + + //! This enum defines the different line wrap visual flags. + enum WrapVisualFlag { + //! No wrap flag is displayed. + WrapFlagNone, + + //! A wrap flag is displayed by the text. + WrapFlagByText, + + //! A wrap flag is displayed by the border. + WrapFlagByBorder, + + //! A wrap flag is displayed in the line number margin. + WrapFlagInMargin + }; + + //! This enum defines the different line wrap indentation modes. + enum WrapIndentMode { + //! Wrapped sub-lines are indented by the amount set by + //! setWrapVisualFlags(). + WrapIndentFixed = SC_WRAPINDENT_FIXED, + + //! Wrapped sub-lines are indented by the same amount as the first + //! sub-line. + WrapIndentSame = SC_WRAPINDENT_SAME, + + //! Wrapped sub-lines are indented by the same amount as the first + //! sub-line plus one more level of indentation. + WrapIndentIndented = SC_WRAPINDENT_INDENT + }; + + //! Construct an empty QsciScintilla with parent \a parent, name \a name, + //! and widget flags \a f. + QsciScintilla(QWidget *parent = 0, const char *name = 0, WFlags f = 0); + + //! Destroys the QsciScintilla instance. + virtual ~QsciScintilla(); + + //! Returns the API context, which is a list of words, before the position + //! \a pos in the document. The context can be used by auto-completion and + //! call tips to help to identify which API call the user is referring to. + //! In the default implementation the current lexer determines what + //! characters make up a word, and what characters determine the boundaries + //! of words (ie. the start characters). If there is no current lexer then + //! the context will consist of a single word. On return \a context_start + //! will contain the position in the document of the start of the context + //! and \a last_word_start will contain the position in the document of the + //! start of the last word of the context. + virtual QStringList apiContext(int pos, int &context_start, + int &last_word_start); + + //! Annotate the line \a line with the text \a text using the style number + //! \a style. + void annotate(int line, const QString &text, int style); + + //! Annotate the line \a line with the text \a text using the style \a + //! style. + void annotate(int line, const QString &text, const QsciStyle &style); + + //! Annotate the line \a line with the styled text \a text. + void annotate(int line, const QsciStyledText &text); + + //! Annotate the line \a line with the list of styled text \a text. + void annotate(int line, const QValueList &text); + + //! Returns the annotation on line \a line, if any. + QString annotation(int line) const; + + //! Returns the display style for annotations. + //! + //! \sa setAnnotationDisplay() + AnnotationDisplay annotationDisplay() const; + + //! The annotations on line \a line are removed. If \a line is negative + //! then all annotations are removed. + void clearAnnotations(int line = -1); + + //! Returns true if auto-completion lists are case sensitive. + //! + //! \sa setAutoCompletionCaseSensitivity() + bool autoCompletionCaseSensitivity() const; + + //! Returns true if auto-completion fill-up characters are enabled. + //! + //! \sa setAutoCompletionFillups(), setAutoCompletionFillupsEnabled() + bool autoCompletionFillupsEnabled() const; + + //! Returns true if the rest of the word to the right of the current cursor + //! is removed when an item from an auto-completion list is selected. + //! + //! \sa setAutoCompletionReplaceWord() + bool autoCompletionReplaceWord() const; + + //! Returns true if the only item in an auto-completion list with a single + //! entry is automatically used and the list not displayed. Note that this + //! is deprecated and autoCompletionUseSingle() should be used instead. + //! + //! \sa setAutoCompletionShowSingle() + bool autoCompletionShowSingle() const; + + //! Returns the current source for the auto-completion list when it is + //! being displayed automatically as the user types. + //! + //! \sa setAutoCompletionSource() + AutoCompletionSource autoCompletionSource() const {return acSource;} + + //! Returns the current threshold for the automatic display of the + //! auto-completion list as the user types. + //! + //! \sa setAutoCompletionThreshold() + int autoCompletionThreshold() const {return acThresh;} + + //! Returns the current behavior when an auto-completion list contains a + //! single entry. + //! + //! \sa setAutoCompletionUseSingle() + AutoCompletionUseSingle autoCompletionUseSingle() const; + + //! Returns true if auto-indentation is enabled. + //! + //! \sa setAutoIndent() + bool autoIndent() const {return autoInd;} + + //! Returns true if the backspace key unindents a line instead of deleting + //! a character. The default is false. + //! + //! \sa setBackspaceUnindents(), tabIndents(), setTabIndents() + bool backspaceUnindents() const; + + //! Mark the beginning of a sequence of actions that can be undone by a + //! single call to undo(). + //! + //! \sa endUndoAction(), undo() + void beginUndoAction(); + + //! Returns the brace matching mode. + //! + //! \sa setBraceMatching() + BraceMatch braceMatching() const {return braceMode;} + + //! Returns the current call tip position. + //! + //! \sa setCallTipsPosition() + CallTipsPosition callTipsPosition() const {return call_tips_position;} + + //! Returns the current call tip style. + //! + //! \sa setCallTipsStyle() + CallTipsStyle callTipsStyle() const {return call_tips_style;} + + //! Returns the maximum number of call tips that are displayed. + //! + //! \sa setCallTipsVisible() + int callTipsVisible() const {return maxCallTips;} + + //! Cancel any current auto-completion or user defined list. + void cancelList(); + + //! Returns true if the current language lexer is case sensitive. If there + //! is no current lexer then true is returned. + bool caseSensitive() const; + + //! Clear all current folds, i.e. ensure that all lines are displayed + //! unfolded. + //! + //! \sa setFolding() + void clearFolds(); + + //! Clears the range of text with indicator \a indicatorNumber starting at + //! position \a indexFrom in line \a lineFrom and finishing at position + //! \a indexTo in line \a lineTo. + //! + //! \sa fillIndicatorRange() + void clearIndicatorRange(int lineFrom, int indexFrom, int lineTo, + int indexTo, int indicatorNumber); + + //! Clear all registered images. + //! + //! \sa registerImage() + void clearRegisteredImages(); + + //! Returns the widget's text (ie. foreground) colour. + //! + //! \sa setColor() + QColor color() const; + + //! Returns a list of the line numbers that have contracted folds. This is + //! typically used to save the fold state of a document. + //! + //! \sa setContractedFolds() + QValueList contractedFolds() const; + + //! All the lines of the text have their end-of-lines converted to mode + //! \a mode. + //! + //! \sa eolMode(), setEolMode() + void convertEols(EolMode mode); + + + //! Returns the attached document. + //! + //! \sa setDocument() + QsciDocument document() const {return doc;} + + //! Mark the end of a sequence of actions that can be undone by a single + //! call to undo(). + //! + //! \sa beginUndoAction(), undo() + void endUndoAction(); + + //! Returns the color of the marker used to show that a line has exceeded + //! the length set by setEdgeColumn(). + //! + //! \sa setEdgeColor(), \sa setEdgeColumn + QColor edgeColor() const; + + //! Returns the number of the column after which lines are considered to be + //! long. + //! + //! \sa setEdgeColumn() + int edgeColumn() const; + + //! Returns the edge mode which determines how long lines are marked. + //! + //! \sa setEdgeMode() + EdgeMode edgeMode() const; + + //! Set the default font. This has no effect if a language lexer has been + //! set. + void setFont(const QFont &f); + + //! Returns the end-of-line mode. + //! + //! \sa setEolMode() + EolMode eolMode() const; + + //! Returns the visibility of end-of-lines. + //! + //! \sa setEolVisibility() + bool eolVisibility() const; + + //! Returns the extra space added to the height of a line above the + //! baseline of the text. + //! + //! \sa setExtraAscent(), extraDescent() + int extraAscent() const; + + //! Returns the extra space added to the height of a line below the + //! baseline of the text. + //! + //! \sa setExtraDescent(), extraAscent() + int extraDescent() const; + + //! Fills the range of text with indicator \a indicatorNumber starting at + //! position \a indexFrom in line \a lineFrom and finishing at position + //! \a indexTo in line \a lineTo. + //! + //! \sa clearIndicatorRange() + void fillIndicatorRange(int lineFrom, int indexFrom, int lineTo, + int indexTo, int indicatorNumber); + + //! Find the first occurrence of the string \a expr and return true if + //! \a expr was found, otherwise returns false. If \a expr is found it + //! becomes the current selection. + //! + //! If \a re is true then \a expr is interpreted as a regular expression + //! rather than a simple string. + //! + //! If \a cs is true then the search is case sensitive. + //! + //! If \a wo is true then the search looks for whole word matches only, + //! otherwise it searches for any matching text. + //! + //! If \a wrap is true then the search wraps around the end of the text. + //! + //! If \a forward is true (the default) then the search is forward from the + //! starting position to the end of the text, otherwise it is backwards to + //! the beginning of the text. + //! + //! If either \a line or \a index are negative (the default) then the + //! search begins from the current cursor position. Otherwise the search + //! begins at position \a index of line \a line. + //! + //! If \a show is true (the default) then any text found is made visible + //! (ie. it is unfolded). + //! + //! If \a posix is true then a regular expression is treated in a more + //! POSIX compatible manner by interpreting bare ( and ) as tagged sections + //! rather than \( and \). + //! + //! \sa findFirstInSelection(), findNext(), replace() + virtual bool findFirst(const QString &expr, bool re, bool cs, bool wo, + bool wrap, bool forward = true, int line = -1, int index = -1, + bool show = true, bool posix = false); + + //! Find the first occurrence of the string \a expr in the current + //! selection and return true if \a expr was found, otherwise returns + //! false. If \a expr is found it becomes the current selection. The + //! original selection is restored when a subsequent call to findNext() + //! returns false. + //! + //! If \a re is true then \a expr is interpreted as a regular expression + //! rather than a simple string. + //! + //! If \a cs is true then the search is case sensitive. + //! + //! If \a wo is true then the search looks for whole word matches only, + //! otherwise it searches for any matching text. + //! + //! If \a forward is true (the default) then the search is forward from the + //! start to the end of the selection, otherwise it is backwards from the + //! end to the start of the selection. + //! + //! If \a show is true (the default) then any text found is made visible + //! (ie. it is unfolded). + //! + //! If \a posix is true then a regular expression is treated in a more + //! POSIX compatible manner by interpreting bare ( and ) as tagged sections + //! rather than \( and \). + //! + //! \sa findFirstInSelection(), findNext(), replace() + virtual bool findFirstInSelection(const QString &expr, bool re, bool cs, + bool wo, bool forward = true, bool show = true, + bool posix = false); + + //! Find the next occurence of the string found using findFirst() or + //! findFirstInSelection(). + //! + //! \sa findFirst(), findFirstInSelection(), replace() + virtual bool findNext(); + + //! Returns the number of the first visible line. + //! + //! \sa setFirstVisibleLine() + int firstVisibleLine() const; + + //! Returns the current folding style. + //! + //! \sa setFolding() + FoldStyle folding() const {return fold;} + + //! Sets \a *line and \a *index to the line and index of the cursor. + //! + //! \sa setCursorPosition() + void getCursorPosition(int *line, int *index) const; + + //! If there is a selection, \a *lineFrom is set to the line number in + //! which the selection begins and \a *lineTo is set to the line number in + //! which the selection ends. (They could be the same.) \a *indexFrom is + //! set to the index at which the selection begins within \a *lineFrom, and + //! \a *indexTo is set to the index at which the selection ends within + //! \a *lineTo. If there is no selection, \a *lineFrom, \a *indexFrom, + //! \a *lineTo and \a *indexTo are all set to -1. + //! + //! \sa setSelection() + void getSelection(int *lineFrom, int *indexFrom, int *lineTo, + int *indexTo) const; + + //! Returns true if some text is selected. + //! + //! \sa selectedText() + bool hasSelectedText() const {return selText;} + + //! Returns the number of characters that line \a line is indented by. + //! + //! \sa setIndentation() + int indentation(int line) const; + + //! Returns true if the display of indentation guides is enabled. + //! + //! \sa setIndentationGuides() + bool indentationGuides() const; + + //! Returns true if indentations are created using tabs and spaces, rather + //! than just spaces. The default is true. + //! + //! \sa setIndentationsUseTabs() + bool indentationsUseTabs() const; + + //! Returns the indentation width in characters. The default is 0 which + //! means that the value returned by tabWidth() is actually used. + //! + //! \sa setIndentationWidth(), tabWidth() + int indentationWidth() const; + + //! Define a type of indicator using the style \a style with the indicator + //! number \a indicatorNumber. If \a indicatorNumber is -1 then the + //! indicator number is automatically allocated. The indicator number is + //! returned or -1 if too many types of indicator have been defined. + //! + //! Indicators are used to display additional information over the top of + //! styling. They can be used to show, for example, syntax errors, + //! deprecated names and bad indentation by drawing lines under text or + //! boxes around text. + //! + //! There may be up to 32 types of indicator defined at a time. The first + //! 8 are normally used by lexers. By default indicator number 0 is a + //! dark green SquiggleIndicator, 1 is a blue TTIndicator, and 2 is a red + //! PlainIndicator. + int indicatorDefine(IndicatorStyle style, int indicatorNumber = -1); + + //! Returns true if the indicator \a indicatorNumber is drawn under the + //! text (i.e. in the background). The default is false. + //! + //! \sa setIndicatorDrawUnder() + bool indicatorDrawUnder(int indicatorNumber) const; + + //! Returns true if a call tip is currently active. + bool isCallTipActive() const; + + //! Returns true if an auto-completion or user defined list is currently + //! active. + bool isListActive() const; + + //! Returns true if the text has been modified. + //! + //! \sa setModified(), modificationChanged() + bool isModified() const; + + //! Returns true if the text edit is read-only. + //! + //! \sa setReadOnly() + bool isReadOnly() const; + + //! Returns true if there is something that can be redone. + //! + //! \sa redo() + bool isRedoAvailable() const; + + //! Returns true if there is something that can be undone. + //! + //! \sa undo() + bool isUndoAvailable() const; + + //! Returns true if text is interpreted as being UTF8 encoded. The default + //! is to interpret the text as Latin1 encoded. + //! + //! \sa setUtf8() + bool isUtf8() const; + + //! Returns true if character \a ch is a valid word character. + //! + //! \sa wordCharacters() + bool isWordCharacter(char ch) const; + + //! Returns the line which is at \a point pixel coordinates or -1 if there + //! is no line at that point. + int lineAt(const QPoint &point) const; + + //! QScintilla uses the combination of a line number and a character index + //! from the start of that line to specify the position of a character + //! within the text. The underlying Scintilla instead uses a byte index + //! from the start of the text. This will convert the \a position byte + //! index to the \a *line line number and \a *index character index. + //! + //! \sa positionFromLineIndex() + void lineIndexFromPosition(int position, int *line, int *index) const; + + //! Returns the length of line \a line int bytes or -1 if there is no such + //! line. In order to get the length in characters use text(line).length(). + int lineLength(int line) const; + + //! Returns the number of lines of text. + int lines() const; + + //! Returns the length of the text edit's text in bytes. In order to get + //! the length in characters use text().length(). + int length() const; + + //! Returns the current language lexer used to style text. If it is 0 then + //! syntax styling is disabled. + //! + //! \sa setLexer() + QsciLexer *lexer() const; + + //! Returns true if line numbers are enabled for margin \a margin. + //! + //! \sa setMarginLineNumbers(), marginType(), SCI_GETMARGINTYPEN + bool marginLineNumbers(int margin) const; + + //! Returns the marker mask of margin \a margin. + //! + //! \sa setMarginMask(), QsciMarker, SCI_GETMARGINMASKN + int marginMarkerMask(int margin) const; + + //! Returns the margin options. The default is MoNone. + //! + //! \sa setMarginOptions(), MoNone, MoSublineSelect. + int marginOptions() const; + + //! Returns true if margin \a margin is sensitive to mouse clicks. + //! + //! \sa setMarginSensitivity(), marginClicked(), SCI_GETMARGINTYPEN + bool marginSensitivity(int margin) const; + + //! Returns the type of margin \a margin. + //! + //! \sa setMarginType(), SCI_GETMARGINTYPEN + MarginType marginType(int margin) const; + + //! Returns the width in pixels of margin \a margin. + //! + //! \sa setMarginWidth(), SCI_GETMARGINWIDTHN + int marginWidth(int margin) const; + + //! Define a type of marker using the symbol \a sym with the marker number + //! \a markerNumber. If \a markerNumber is -1 then the marker number is + //! automatically allocated. The marker number is returned or -1 if too + //! many types of marker have been defined. + //! + //! Markers are small geometric symbols and characters used, for example, + //! to indicate the current line or, in debuggers, to indicate breakpoints. + //! If a margin has a width of 0 then its markers are not drawn, but their + //! background colours affect the background colour of the corresponding + //! line of text. + //! + //! There may be up to 32 types of marker defined at a time and each line + //! of text has a set of marker instances associated with it. Markers are + //! drawn according to their numerical identifier. Markers try to move + //! with their text by tracking where the start of their line moves to. + //! For example, when a line is deleted its markers are added to previous + //! line's markers. + //! + //! Each marker type is identified by a marker number. Each instance of a + //! marker is identified by a marker handle. + int markerDefine(MarkerSymbol sym, int markerNumber = -1); + + //! Define a marker using the character \a ch with the marker number + //! \a markerNumber. If \a markerNumber is -1 then the marker number is + //! automatically allocated. The marker number is returned or -1 if too + //! many markers have been defined. + int markerDefine(char ch, int markerNumber = -1); + + //! Define a marker using a copy of the pixmap \a pm with the marker number + //! \a markerNumber. If \a markerNumber is -1 then the marker number is + //! automatically allocated. The marker number is returned or -1 if too + //! many markers have been defined. + int markerDefine(const QPixmap &pm, int markerNumber = -1); + + //! Define a marker using a copy of the image \a im with the marker number + //! \a markerNumber. If \a markerNumber is -1 then the marker number is + //! automatically allocated. The marker number is returned or -1 if too + //! many markers have been defined. + int markerDefine(const QImage &im, int markerNumber = -1); + + //! Add an instance of marker number \a markerNumber to line number + //! \a linenr. A handle for the marker is returned which can be used to + //! track the marker's position, or -1 if the \a markerNumber was invalid. + //! + //! \sa markerDelete(), markerDeleteAll(), markerDeleteHandle() + int markerAdd(int linenr, int markerNumber); + + //! Returns the 32 bit mask of marker numbers at line number \a linenr. + //! + //! \sa markerAdd() + unsigned markersAtLine(int linenr) const; + + //! Delete all markers with the marker number \a markerNumber in the line + //! \a linenr. If \a markerNumber is -1 then delete all markers from line + //! \a linenr. + //! + //! \sa markerAdd(), markerDeleteAll(), markerDeleteHandle() + void markerDelete(int linenr, int markerNumber = -1); + + //! Delete the all markers with the marker number \a markerNumber. If + //! \a markerNumber is -1 then delete all markers. + //! + //! \sa markerAdd(), markerDelete(), markerDeleteHandle() + void markerDeleteAll(int markerNumber = -1); + + //! Delete the the marker instance with the marker handle \a mhandle. + //! + //! \sa markerAdd(), markerDelete(), markerDeleteAll() + void markerDeleteHandle(int mhandle); + + //! Return the line number that contains the marker instance with the + //! marker handle \a mhandle. + int markerLine(int mhandle) const; + + //! Return the number of the next line to contain at least one marker from + //! a 32 bit mask of markers. \a linenr is the line number to start the + //! search from. \a mask is the mask of markers to search for. + //! + //! \sa markerFindPrevious() + int markerFindNext(int linenr, unsigned mask) const; + + //! Return the number of the previous line to contain at least one marker + //! from a 32 bit mask of markers. \a linenr is the line number to start + //! the search from. \a mask is the mask of markers to search for. + //! + //! \sa markerFindNext() + int markerFindPrevious(int linenr, unsigned mask) const; + + //! Returns true if text entered by the user will overwrite existing text. + //! + //! \sa setOverwriteMode() + bool overwriteMode() const; + + //! Returns the widget's paper (ie. background) colour. + //! + //! \sa setPaper() + QColor paper() const; + + //! QScintilla uses the combination of a line number and a character index + //! from the start of that line to specify the position of a character + //! within the text. The underlying Scintilla instead uses a byte index + //! from the start of the text. This will return the byte index + //! corresponding to the \a line line number and \a index character index. + //! + //! \sa lineIndexFromPosition() + int positionFromLineIndex(int line, int index) const; + + //! Reads the current document from the \a io device and returns true if + //! there was no error. + //! + //! \sa write() + bool read(QIODevice *io); + + //! Recolours the document between the \a start and \a end positions. + //! \a start defaults to the start of the document and \a end defaults to + //! the end of the document. + virtual void recolor(int start = 0, int end = -1); + + //! Register an image \a pm with ID \a id. Registered images can be + //! displayed in auto-completion lists. + //! + //! \sa clearRegisteredImages(), QsciLexer::apiLoad() + void registerImage(int id, const QPixmap &pm); + + //! Register an image \a im with ID \a id. Registered images can be + //! displayed in auto-completion lists. + //! + //! \sa clearRegisteredImages(), QsciLexer::apiLoad() + void registerImage(int id, const QImage &im); + + //! Replace the current selection, set by a previous call to findFirst(), + //! findFirstInSelection() or findNext(), with \a replaceStr. + //! + //! \sa findFirst(), findFirstInSelection(), findNext() + virtual void replace(const QString &replaceStr); + + //! Reset the fold margin colours to their defaults. + //! + //! \sa setFoldMarginColors() + void resetFoldMarginColors(); + + //! Resets the background colour of an active hotspot area to the default. + //! + //! \sa setHotspotBackgroundColor(), resetHotspotForegroundColor() + void resetHotspotBackgroundColor(); + + //! Resets the foreground colour of an active hotspot area to the default. + //! + //! \sa setHotspotForegroundColor(), resetHotspotBackgroundColor() + void resetHotspotForegroundColor(); + + //! The fold margin may be drawn as a one pixel sized checkerboard pattern + //! of two colours, \a fore and \a back. + //! + //! \sa resetFoldMarginColors() + void setFoldMarginColors(const QColor &fore, const QColor &back); + + //! Set the display style for annotations. The default is + //! AnnotationStandard. + //! + //! \sa annotationDisplay() + void setAnnotationDisplay(AnnotationDisplay display); + + //! Enable the use of fill-up characters, either those explicitly set or + //! those set by a lexer. By default, fill-up characters are disabled. + //! + //! \sa autoCompletionFillupsEnabled(), setAutoCompletionFillups() + void setAutoCompletionFillupsEnabled(bool enabled); + + //! A fill-up character is one that, when entered while an auto-completion + //! list is being displayed, causes the currently selected item from the + //! list to be added to the text followed by the fill-up character. + //! \a fillups is the set of fill-up characters. If a language lexer has + //! been set then this is ignored and the lexer defines the fill-up + //! characters. The default is that no fill-up characters are set. + //! + //! \sa autoCompletionFillupsEnabled(), setAutoCompletionFillupsEnabled() + void setAutoCompletionFillups(const char *fillups); + + //! A word separator is a sequence of characters that, when entered, causes + //! the auto-completion list to be displayed. If a language lexer has been + //! set then this is ignored and the lexer defines the word separators. + //! The default is that no word separators are set. + //! + //! \sa setAutoCompletionThreshold() + void setAutoCompletionWordSeparators(const QStringList &separators); + + //! Set the background colour of call tips to \a col. The default is + //! white. + void setCallTipsBackgroundColor(const QColor &col); + + //! Set the foreground colour of call tips to \a col. The default is + //! mid-gray. + void setCallTipsForegroundColor(const QColor &col); + + //! Set the highlighted colour of call tip text to \a col. The default is + //! dark blue. + void setCallTipsHighlightColor(const QColor &col); + + //! Set the current call tip position. The default is CallTipsBelowText. + //! + //! \sa callTipsPosition() + void setCallTipsPosition(CallTipsPosition position); + + //! Set the current call tip style. The default is CallTipsNoContext. + //! + //! \sa callTipsStyle() + void setCallTipsStyle(CallTipsStyle style); + + //! Set the maximum number of call tips that are displayed to \a nr. If + //! the maximum number is 0 then all applicable call tips are displayed. + //! If the maximum number is -1 then one call tip will be displayed with up + //! and down arrows that allow the use to scroll through the full list. + //! The default is -1. + //! + //! \sa callTipsVisible() + void setCallTipsVisible(int nr); + + //! Sets each line in the \a folds list of line numbers to be a contracted + //! fold. This is typically used to restore the fold state of a document. + //! + //! \sa contractedFolds() + void setContractedFolds(const QValueList &folds); + + //! Attach the document \a document, replacing the currently attached + //! document. + //! + //! \sa document() + void setDocument(const QsciDocument &document); + + //! Set the color of the marker used to show that a line has exceeded the + //! length set by setEdgeColumn(). + //! + //! \sa edgeColor(), \sa setEdgeColumn + void setEdgeColor(const QColor &col); + + //! Set the number of the column after which lines are considered to be + //! long. + //! + //! \sa edgeColumn() + void setEdgeColumn(int colnr); + + //! Set the edge mode which determines how long lines are marked. + //! + //! \sa edgeMode() + void setEdgeMode(EdgeMode mode); + + //! Set the number of the first visible line to \a linenr. + //! + //! \sa firstVisibleLine() + void setFirstVisibleLine(int linenr); + + //! Enables or disables, according to \a under, if the indicator + //! \a indicatorNumber is drawn under or over the text (i.e. in the + //! background or foreground). If \a indicatorNumber is -1 then the state + //! of all indicators is set. + //! + //! \sa indicatorDrawUnder() + void setIndicatorDrawUnder(bool under, int indicatorNumber = -1); + + //! Set the foreground colour of indicator \a indicatorNumber to \a col. + //! If \a indicatorNumber is -1 then the colour of all indicators is set. + void setIndicatorForegroundColor(const QColor &col, int indicatorNumber = -1); + + //! Set the outline colour of indicator \a indicatorNumber to \a col. + //! If \a indicatorNumber is -1 then the colour of all indicators is set. + //! At the moment only the alpha value of the colour has any affect. + void setIndicatorOutlineColor(const QColor &col, int indicatorNumber = -1); + + //! Set the margin options to \a options. + //! + //! \sa marginOptions(), MoNone, MoSublineSelect. + void setMarginOptions(int options); + + //! Set the margin text of line \a line with the text \a text using the + //! style number \a style. + void setMarginText(int line, const QString &text, int style); + + //! Set the margin text of line \a line with the text \a text using the + //! style \a style. + void setMarginText(int line, const QString &text, const QsciStyle &style); + + //! Set the margin text of line \a line with the styled text \a text. + void setMarginText(int line, const QsciStyledText &text); + + //! Set the margin text of line \a line with the list of styled text \a + //! text. + void setMarginText(int line, const QValueList &text); + + //! Set the type of margin \a margin to type \a type. + //! + //! \sa marginType(), SCI_SETMARGINTYPEN + void setMarginType(int margin, MarginType type); + + //! The margin text on line \a line is removed. If \a line is negative + //! then all margin text is removed. + void clearMarginText(int line = -1); + + //! Set the background colour, including the alpha component, of marker + //! \a markerNumber to \a col. If \a markerNumber is -1 then the colour of + //! all markers is set. The default is white. + //! + //! \sa setMarkerForegroundColor() + void setMarkerBackgroundColor(const QColor &col, int markerNumber = -1); + + //! Set the foreground colour of marker \a markerNumber to \a col. If + //! \a markerNumber is -1 then the colour of all markers is set. The + //! default is black. + //! + //! \sa setMarkerBackgroundColor() + void setMarkerForegroundColor(const QColor &col, int markerNumber = -1); + + //! Set the background colour used to display matched braces to \a col. It + //! is ignored if an indicator is being used. The default is white. + //! + //! \sa setMatchedBraceForegroundColor(), setMatchedBraceIndicator() + void setMatchedBraceBackgroundColor(const QColor &col); + + //! Set the foreground colour used to display matched braces to \a col. It + //! is ignored if an indicator is being used. The default is red. + //! + //! \sa setMatchedBraceBackgroundColor(), setMatchedBraceIndicator() + void setMatchedBraceForegroundColor(const QColor &col); + + //! Set the indicator used to display matched braces to \a indicatorNumber. + //! The default is not to use an indicator. + //! + //! \sa resetMatchedBraceIndicator(), setMatchedBraceBackgroundColor() + void setMatchedBraceIndicator(int indicatorNumber); + + //! Stop using an indicator to display matched braces. + //! + //! \sa setMatchedBraceIndicator() + void resetMatchedBraceIndicator(); + + //! Set the background colour used to display unmatched braces to \a col. + //! It is ignored if an indicator is being used. The default is white. + //! + //! \sa setUnmatchedBraceForegroundColor(), setUnmatchedBraceIndicator() + void setUnmatchedBraceBackgroundColor(const QColor &col); + + //! Set the foreground colour used to display unmatched braces to \a col. + //! It is ignored if an indicator is being used. The default is blue. + //! + //! \sa setUnmatchedBraceBackgroundColor(), setUnmatchedBraceIndicator() + void setUnmatchedBraceForegroundColor(const QColor &col); + + //! Set the indicator used to display unmatched braces to + //! \a indicatorNumber. The default is not to use an indicator. + //! + //! \sa resetUnmatchedBraceIndicator(), setUnmatchedBraceBackgroundColor() + void setUnmatchedBraceIndicator(int indicatorNumber); + + //! Stop using an indicator to display unmatched braces. + //! + //! \sa setUnmatchedBraceIndicator() + void resetUnmatchedBraceIndicator(); + + //! Set the visual flags displayed when a line is wrapped. \a endFlag + //! determines if and where the flag at the end of a line is displayed. + //! \a startFlag determines if and where the flag at the start of a line is + //! displayed. \a indent is the number of characters a wrapped line is + //! indented by. By default no visual flags are displayed. + void setWrapVisualFlags(WrapVisualFlag endFlag, + WrapVisualFlag startFlag = WrapFlagNone, int indent = 0); + + //! Returns the selected text or an empty string if there is no currently + //! selected text. + //! + //! \sa hasSelectedText() + QString selectedText() const; + + //! Returns whether or not the selection is drawn up to the right hand + //! border. + //! + //! \sa setSelectionToEol() + bool selectionToEol() const; + + //! Sets the background colour of an active hotspot area to \a col. + //! + //! \sa resetHotspotBackgroundColor(), setHotspotForegroundColor() + void setHotspotBackgroundColor(const QColor &col); + + //! Sets the foreground colour of an active hotspot area to \a col. + //! + //! \sa resetHotspotForegroundColor(), setHotspotBackgroundColor() + void setHotspotForegroundColor(const QColor &col); + + //! Enables or disables, according to \a enable, the underlining of an + //! active hotspot area. The default is false. + void setHotspotUnderline(bool enable); + + //! Enables or disables, according to \a enable, the wrapping of a hotspot + //! area to following lines. The default is true. + void setHotspotWrap(bool enable); + + //! Sets whether or not the selection is drawn up to the right hand border. + //! \a filled is set if the selection is drawn to the border. + //! + //! \sa selectionToEol() + void setSelectionToEol(bool filled); + + //! Sets the extra space added to the height of a line above the baseline + //! of the text to \a extra. + //! + //! \sa extraAscent(), setExtraDescent() + void setExtraAscent(int extra); + + //! Sets the extra space added to the height of a line below the baseline + //! of the text to \a extra. + //! + //! \sa extraDescent(), setExtraAscent() + void setExtraDescent(int extra); + + //! Text entered by the user will overwrite existing text if \a overwrite + //! is true. + //! + //! \sa overwriteMode() + void setOverwriteMode(bool overwrite); + + //! Sets the background colour of visible whitespace to \a col. If \a col + //! is an invalid color (the default) then the color specified by the + //! current lexer is used. + void setWhitespaceBackgroundColor(const QColor &col); + + //! Sets the foreground colour of visible whitespace to \a col. If \a col + //! is an invalid color (the default) then the color specified by the + //! current lexer is used. + void setWhitespaceForegroundColor(const QColor &col); + + //! Sets the size of the dots used to represent visible whitespace. + //! + //! \sa whitespaceSize() + void setWhitespaceSize(int size); + + //! Sets the line wrap indentation mode to \a mode. The default is + //! WrapIndentFixed. + //! + //! \sa wrapIndentMode() + void setWrapIndentMode(WrapIndentMode mode); + + //! Displays a user defined list which can be interacted with like an + //! auto-completion list. \a id is an identifier for the list which is + //! passed as an argument to the userListActivated() signal and must be at + //! least 1. \a list is the text with which the list is populated. + //! + //! \sa cancelList(), isListActive(), userListActivated() + void showUserList(int id, const QStringList &list); + + //! The standard command set is returned. + QsciCommandSet *standardCommands() const {return stdCmds;} + + //! Returns true if the tab key indents a line instead of inserting a tab + //! character. The default is true. + //! + //! \sa setTabIndents(), backspaceUnindents(), setBackspaceUnindents() + bool tabIndents() const; + + //! Returns the tab width in characters. The default is 8. + //! + //! \sa setTabWidth() + int tabWidth() const; + + //! Returns the text of the current document. + //! + //! \sa setText() + QString text() const; + + //! \overload + //! + //! Returns the text of line \a line. + //! + //! \sa setText() + QString text(int line) const; + + //! Returns the height in pixels of the text in line number \a linenr. + int textHeight(int linenr) const; + + //! Returns the size of the dots used to represent visible whitespace. + //! + //! \sa setWhitespaceSize() + int whitespaceSize() const; + + //! Returns the visibility of whitespace. + //! + //! \sa setWhitespaceVisibility() + WhitespaceVisibility whitespaceVisibility() const; + + //! Returns the word at the \a line line number and \a index character + //! index. + QString wordAtLineIndex(int line, int index) const; + + //! Returns the word at the \a point pixel coordinates. + QString wordAtPoint(const QPoint &point) const; + + //! Returns the set of valid word character as defined by the current + //! language lexer. If there is no current lexer then the set contains an + //! an underscore, numbers and all upper and lower case alphabetic + //! characters. + //! + //! \sa isWordCharacter() + const char *wordCharacters() const; + + //! Returns the line wrap mode. + //! + //! \sa setWrapMode() + WrapMode wrapMode() const; + + //! Returns the line wrap indentation mode. + //! + //! \sa setWrapIndentMode() + WrapIndentMode wrapIndentMode() const; + + //! Writes the current document to the \a io device and returns true if + //! there was no error. + //! + //! \sa read() + bool write(QIODevice *io) const; + +public slots: + //! Appends the text \a text to the end of the text edit. Note that the + //! undo/redo history is cleared by this function. + virtual void append(const QString &text); + + //! Display an auto-completion list based on any installed APIs, the + //! current contents of the document and the characters immediately to the + //! left of the cursor. + //! + //! \sa autoCompleteFromAPIs(), autoCompleteFromDocument() + virtual void autoCompleteFromAll(); + + //! Display an auto-completion list based on any installed APIs and the + //! characters immediately to the left of the cursor. + //! + //! \sa autoCompleteFromAll(), autoCompleteFromDocument(), + //! setAutoCompletionAPIs() + virtual void autoCompleteFromAPIs(); + + //! Display an auto-completion list based on the current contents of the + //! document and the characters immediately to the left of the cursor. + //! + //! \sa autoCompleteFromAll(), autoCompleteFromAPIs() + virtual void autoCompleteFromDocument(); + + //! Display a call tip based on the the characters immediately to the left + //! of the cursor. + virtual void callTip(); + + //! Deletes all the text in the text edit. + virtual void clear(); + + //! Copies any selected text to the clipboard. + //! + //! \sa copyAvailable(), cut(), paste() + virtual void copy(); + + //! Copies any selected text to the clipboard and then deletes the text. + //! + //! \sa copy(), paste() + virtual void cut(); + + //! Ensures that the cursor is visible. + virtual void ensureCursorVisible(); + + //! Ensures that the line number \a line is visible. + virtual void ensureLineVisible(int line); + + //! If any lines are currently folded then they are all unfolded. + //! Otherwise all lines are folded. This has the same effect as clicking + //! in the fold margin with the shift and control keys pressed. If + //! \a children is not set (the default) then only the top level fold + //! points are affected, otherwise the state of all fold points are + //! changed. + virtual void foldAll(bool children = false); + + //! If the line \a line is folded then it is unfolded. Otherwise it is + //! folded. This has the same effect as clicking in the fold margin. + virtual void foldLine(int line); + + //! Increases the indentation of line \a line by an indentation width. + //! + //! \sa unindent() + virtual void indent(int line); + + //! Insert the text \a text at the current position. + virtual void insert(const QString &text); + + //! Insert the text \a text in the line \a line at the position + //! \a index. + virtual void insertAt(const QString &text, int line, int index); + + //! If the cursor is either side of a brace character then move it to the + //! position of the corresponding brace. + virtual void moveToMatchingBrace(); + + //! Pastes any text from the clipboard into the text edit at the current + //! cursor position. + //! + //! \sa copy(), cut() + virtual void paste(); + + //! Redo the last change or sequence of changes. + //! + //! \sa isRedoAvailable() + virtual void redo(); + + //! Removes any selected text. + //! + //! \sa replaceSelectedText() + virtual void removeSelectedText(); + + //! Replaces any selected text with \a text. + //! + //! \sa removeSelectedText() + virtual void replaceSelectedText(const QString &text); + + //! Resets the background colour of selected text to the default. + //! + //! \sa setSelectionBackgroundColor(), resetSelectionForegroundColor() + virtual void resetSelectionBackgroundColor(); + + //! Resets the foreground colour of selected text to the default. + //! + //! \sa setSelectionForegroundColor(), resetSelectionBackgroundColor() + virtual void resetSelectionForegroundColor(); + + //! If \a select is true (the default) then all the text is selected. If + //! \a select is false then any currently selected text is deselected. + virtual void selectAll(bool select = true); + + //! If the cursor is either side of a brace character then move it to the + //! position of the corresponding brace and select the text between the + //! braces. + virtual void selectToMatchingBrace(); + + //! If \a cs is true then auto-completion lists are case sensitive. The + //! default is true. Note that setting a lexer may change the case + //! sensitivity. + //! + //! \sa autoCompletionCaseSensitivity() + virtual void setAutoCompletionCaseSensitivity(bool cs); + + //! If \a replace is true then when an item from an auto-completion list is + //! selected, the rest of the word to the right of the current cursor is + //! removed. The default is false. + //! + //! \sa autoCompletionReplaceWord() + virtual void setAutoCompletionReplaceWord(bool replace); + + //! If \a single is true then when there is only a single entry in an + //! auto-completion list it is automatically used and the list is not + //! displayed. This only has an effect when auto-completion is explicitly + //! requested (using autoCompleteFromAPIs() and autoCompleteFromDocument()) + //! and has no effect when auto-completion is triggered as the user types. + //! The default is false. Note that this is deprecated and + //! setAutoCompletionUseSingle() should be used instead. + //! + //! \sa autoCompletionShowSingle() + virtual void setAutoCompletionShowSingle(bool single); + + //! Sets the source for the auto-completion list when it is being displayed + //! automatically as the user types to \a source. The default is AcsNone, + //! ie. it is disabled. + //! + //! \sa autoCompletionSource() + virtual void setAutoCompletionSource(AutoCompletionSource source); + + //! Sets the threshold for the automatic display of the auto-completion + //! list as the user types to \a thresh. The threshold is the number of + //! characters that the user must type before the list is displayed. If + //! the threshold is less than or equal to 0 then the list is disabled. + //! The default is -1. + //! + //! \sa autoCompletionThreshold(), setAutoCompletionWordSeparators() + virtual void setAutoCompletionThreshold(int thresh); + + //! Sets the behavior of the auto-completion list when it has a single + //! entry. The default is AcusNever. + //! + //! \sa autoCompletionUseSingle() + virtual void setAutoCompletionUseSingle(AutoCompletionUseSingle single); + + //! If \a autoindent is true then auto-indentation is enabled. The default + //! is false. + //! + //! \sa autoIndent() + virtual void setAutoIndent(bool autoindent); + + //! Sets the brace matching mode to \a bm. The default is NoBraceMatching. + //! + //! \sa braceMatching() + virtual void setBraceMatching(BraceMatch bm); + + //! If \a deindent is true then the backspace key will unindent a line + //! rather then delete a character. + //! + //! \sa backspaceUnindents(), tabIndents(), setTabIndents() + virtual void setBackspaceUnindents(bool unindent); + + //! Sets the foreground colour of the caret to \a col. + virtual void setCaretForegroundColor(const QColor &col); + + //! Sets the background colour, including the alpha component, of the line + //! containing the caret to \a col. + //! + //! \sa setCaretLineVisible() + virtual void setCaretLineBackgroundColor(const QColor &col); + + //! Enables or disables, according to \a enable, the background color of + //! the line containing the caret. + //! + //! \sa setCaretLineBackgroundColor() + virtual void setCaretLineVisible(bool enable); + + //! Sets the width of the caret to \a width pixels. A \a width of 0 makes + //! the caret invisible. + virtual void setCaretWidth(int width); + + //! The widget's text (ie. foreground) colour is set to \a c. This has no + //! effect if a language lexer has been set. + //! + //! \sa color() + virtual void setColor(const QColor &c); + + //! Sets the cursor to the line \a line at the position \a index. + //! + //! \sa getCursorPosition() + virtual void setCursorPosition(int line, int index); + + //! Sets the end-of-line mode to \a mode. The default is the platform's + //! natural mode. + //! + //! \sa eolMode() + virtual void setEolMode(EolMode mode); + + //! If \a visible is true then end-of-lines are made visible. The default + //! is that they are invisible. + //! + //! \sa eolVisibility() + virtual void setEolVisibility(bool visible); + + //! Sets the folding style for margin \a margin to \a fold. The default + //! style is NoFoldStyle (ie. folding is disabled) and the default margin + //! is 2. + //! + //! \sa folding() + virtual void setFolding(FoldStyle fold, int margin = 2); + + //! Sets the indentation of line \a line to \a indentation characters. + //! + //! \sa indentation() + virtual void setIndentation(int line, int indentation); + + //! Enables or disables, according to \a enable, this display of + //! indentation guides. + //! + //! \sa indentationGuides() + virtual void setIndentationGuides(bool enable); + + //! Set the background colour of indentation guides to \a col. + //! + //! \sa setIndentationGuidesForegroundColor() + virtual void setIndentationGuidesBackgroundColor(const QColor &col); + + //! Set the foreground colour of indentation guides to \a col. + //! + //! \sa setIndentationGuidesBackgroundColor() + virtual void setIndentationGuidesForegroundColor(const QColor &col); + + //! If \a tabs is true then indentations are created using tabs and spaces, + //! rather than just spaces. + //! + //! \sa indentationsUseTabs() + virtual void setIndentationsUseTabs(bool tabs); + + //! Sets the indentation width to \a width characters. If \a width is 0 + //! then the value returned by tabWidth() is used. + //! + //! \sa indentationWidth(), tabWidth() + virtual void setIndentationWidth(int width); + + //! Sets the specific language lexer used to style text to \a lex. If + //! \a lex is 0 then syntax styling is disabled. + //! + //! \sa lexer() + virtual void setLexer(QsciLexer *lexer = 0); + + //! Set the background colour of all margins to \a col. The default is a + //! gray. + //! + //! \sa setMarginsForegroundColor() + virtual void setMarginsBackgroundColor(const QColor &col); + + //! Set the font used in all margins to \a f. + virtual void setMarginsFont(const QFont &f); + + //! Set the foreground colour of all margins to \a col. The default is + //! black. + //! + //! \sa setMarginsBackgroundColor() + virtual void setMarginsForegroundColor(const QColor &col); + + //! Enables or disables, according to \a lnrs, the display of line numbers + //! in margin \a margin. + //! + //! \sa marginLineNumbers(), setMarginType(), SCI_SETMARGINTYPEN + virtual void setMarginLineNumbers(int margin, bool lnrs); + + //! Sets the marker mask of margin \a margin to \a mask. Only those + //! markers whose bit is set in the mask are displayed in the margin. + //! + //! \sa marginMarkerMask(), QsciMarker, SCI_SETMARGINMASKN + virtual void setMarginMarkerMask(int margin, int mask); + + //! Enables or disables, according to \a sens, the sensitivity of margin + //! \a margin to mouse clicks. If the user clicks in a sensitive margin + //! the marginClicked() signal is emitted. + //! + //! \sa marginSensitivity(), marginClicked(), SCI_SETMARGINSENSITIVEN + virtual void setMarginSensitivity(int margin, bool sens); + + //! Sets the width of margin \a margin to \a width pixels. If the width of + //! a margin is 0 then it is not displayed. + //! + //! \sa marginWidth(), SCI_SETMARGINWIDTHN + virtual void setMarginWidth(int margin, int width); + + //! Sets the width of margin \a margin so that it is wide enough to display + //! \a s in the current margin font. + //! + //! \sa marginWidth(), SCI_SETMARGINWIDTHN + virtual void setMarginWidth(int margin, const QString &s); + + //! Sets the modified state of the text edit to \a m. Note that it is only + //! possible to clear the modified state (where \a m is false). Attempts + //! to set the modified state (where \a m is true) are ignored. + //! + //! \sa isModified(), modificationChanged() + virtual void setModified(bool m); + + //! The widget's paper (ie. background) colour is set to \a c. This has no + //! effect if a language lexer has been set. + //! + //! \sa paper() + virtual void setPaper(const QColor &c); + + //! Sets the read-only state of the text edit to \a ro. + //! + //! \sa isReadOnly() + virtual void setReadOnly(bool ro); + + //! Sets the selection which starts at position \a indexFrom in line + //! \a lineFrom and ends at position \a indexTo in line \a lineTo. The + //! cursor is moved to position \a indexTo in \a lineTo. + //! + //! \sa getSelection() + virtual void setSelection(int lineFrom, int indexFrom, int lineTo, + int indexTo); + + //! Sets the background colour, including the alpha component, of selected + //! text to \a col. + //! + //! \sa resetSelectionBackgroundColor(), setSelectionForegroundColor() + virtual void setSelectionBackgroundColor(const QColor &col); + + //! Sets the foreground colour of selected text to \a col. + //! + //! \sa resetSelectionForegroundColor(), setSelectionBackgroundColor() + virtual void setSelectionForegroundColor(const QColor &col); + + //! If \a indent is true then the tab key will indent a line rather than + //! insert a tab character. + //! + //! \sa tabIndents(), backspaceUnindents(), setBackspaceUnindents() + virtual void setTabIndents(bool indent); + + //! Sets the tab width to \a width characters. + //! + //! \sa tabWidth() + virtual void setTabWidth(int width); + + //! Replaces all of the current text with \a text. Note that the + //! undo/redo history is cleared by this function. + //! + //! \sa text() + virtual void setText(const QString &text); + + //! Sets the current text encoding. If \a cp is true then UTF8 is used, + //! otherwise Latin1 is used. + //! + //! \sa isUtf8() + virtual void setUtf8(bool cp); + + //! Sets the visibility of whitespace to mode \a mode. The default is that + //! whitespace is invisible. + //! + //! \sa whitespaceVisibility() + virtual void setWhitespaceVisibility(WhitespaceVisibility mode); + + //! Sets the line wrap mode to \a mode. The default is that lines are not + //! wrapped. + //! + //! \sa wrapMode() + virtual void setWrapMode(WrapMode mode); + + //! Undo the last change or sequence of changes. + //! + //! Scintilla has multiple level undo and redo. It will continue to record + //! undoable actions until memory runs out. Sequences of typing or + //! deleting are compressed into single actions to make it easier to undo + //! and redo at a sensible level of detail. Sequences of actions can be + //! combined into actions that are undone as a unit. These sequences occur + //! between calls to beginUndoAction() and endUndoAction(). These + //! sequences can be nested and only the top level sequences are undone as + //! units. + //! + //! \sa beginUndoAction(), endUndoAction(), isUndoAvailable() + virtual void undo(); + + //! Decreases the indentation of line \a line by an indentation width. + //! + //! \sa indent() + virtual void unindent(int line); + + //! Zooms in on the text by by making the base font size \a range points + //! larger and recalculating all font sizes. + //! + //! \sa zoomOut(), zoomTo() + virtual void zoomIn(int range); + + //! \overload + //! + //! Zooms in on the text by by making the base font size one point larger + //! and recalculating all font sizes. + virtual void zoomIn(); + + //! Zooms out on the text by by making the base font size \a range points + //! smaller and recalculating all font sizes. + //! + //! \sa zoomIn(), zoomTo() + virtual void zoomOut(int range); + + //! \overload + //! + //! Zooms out on the text by by making the base font size one point larger + //! and recalculating all font sizes. + virtual void zoomOut(); + + //! Zooms the text by making the base font size \a size points and + //! recalculating all font sizes. + //! + //! \sa zoomIn(), zoomOut() + virtual void zoomTo(int size); + +signals: + //! This signal is emitted whenever the cursor position changes. \a line + //! contains the line number and \a index contains the character index + //! within the line. + void cursorPositionChanged(int line, int index); + + //! This signal is emitted whenever text is selected or de-selected. + //! \a yes is true if text has been selected and false if text has been + //! deselected. If \a yes is true then copy() can be used to copy the + //! selection to the clipboard. If \a yes is false then copy() does + //! nothing. + //! + //! \sa copy(), selectionChanged() + void copyAvailable(bool yes); + + //! This signal is emitted whenever the user clicks on an indicator. \a + //! line is the number of the line where the user clicked. \a index is the + //! character index within the line. \a state is the state of the modifier + //! keys (ShiftButton, ControlButton and AltButton) when the user clicked. + //! + //! \sa indicatorReleased() + void indicatorClicked(int line, int index, Qt::ButtonState state); + + //! This signal is emitted whenever the user releases the mouse on an + //! indicator. \a line is the number of the line where the user clicked. + //! \a index is the character index within the line. \a state is the state + //! of the modifier keys (ShiftButton, ControlButton and AltButton) when + //! the user released the mouse. + //! + //! \sa indicatorClicked() + void indicatorReleased(int line, int index, Qt::ButtonState state); + + //! This signal is emitted whenever the number of lines of text changes. + void linesChanged(); + + //! This signal is emitted whenever the user clicks on a sensitive margin. + //! \a margin is the margin. \a line is the number of the line where the + //! user clicked. \a state is the state of the modifier keys (ShiftButton, + //! ControlButton and AltButton) when the user clicked. + //! + //! \sa marginSensitivity(), setMarginSensitivity() + void marginClicked(int margin, int line, Qt::ButtonState state); + + //! This signal is emitted whenever the user attempts to modify read-only + //! text. + //! + //! \sa isReadOnly(), setReadOnly() + void modificationAttempted(); + + //! This signal is emitted whenever the modification state of the text + //! changes. \a m is true if the text has been modified. + //! + //! \sa isModified(), setModified() + void modificationChanged(bool m); + + //! This signal is emitted whenever the selection changes. + //! + //! \sa copyAvailable() + void selectionChanged(); + + //! This signal is emitted whenever the text in the text edit changes. + void textChanged(); + + //! This signal is emitted when an item in a user defined list is activated + //! (selected). \a id is the list identifier. \a string is the text of + //! the item. + //! + //! \sa showUserList() + void userListActivated(int id, const QString &string); + +protected: + +private slots: + void handleCallTipClick(int dir); + void handleCharAdded(int charadded); + void handleIndicatorClick(int pos, int modifiers); + void handleIndicatorRelease(int pos, int modifiers); + void handleMarginClick(int pos, int margin, int modifiers); + void handleModified(int pos, int mtype, const char *text, int len, + int added, int line, int foldNow, int foldPrev, int token, + int annotationLinesAdded); + void handlePropertyChange(const char *prop, const char *val); + void handleSavePointReached(); + void handleSavePointLeft(); + void handleSelectionChanged(bool yes); + void handleAutoCompletionSelection(); + void handleUserListSelection(const char *text, int id); + + void handleStyleColorChange(const QColor &c, int style); + void handleStyleEolFillChange(bool eolfill, int style); + void handleStyleFontChange(const QFont &f, int style); + void handleStylePaperChange(const QColor &c, int style); + + void handleUpdateUI(int updated); + + +private: + void detachLexer(); + + enum IndentState { + isNone, + isKeywordStart, + isBlockStart, + isBlockEnd + }; + + void maintainIndentation(char ch, long pos); + void autoIndentation(char ch, long pos); + void autoIndentLine(long pos, int line, int indent); + int blockIndent(int line); + IndentState getIndentState(int line); + bool rangeIsWhitespace(long spos, long epos); + int findStyledWord(const char *text, int style, const char *words); + + void checkMarker(int &markerNumber); + void checkIndicator(int &indicatorNumber); + static void allocateId(int &id, unsigned &allocated, int min, int max); + int currentIndent() const; + int indentWidth() const; + bool doFind(); + int simpleFind(); + void foldClick(int lineClick, int bstate); + void foldChanged(int line, int levelNow, int levelPrev); + void foldExpand(int &line, bool doExpand, bool force = false, + int visLevels = 0, int level = -1); + void setFoldMarker(int marknr, int mark = SC_MARK_EMPTY); + void setLexerStyle(int style); + void setStylesFont(const QFont &f, int style); + void setEnabledColors(int style, QColor &fore, QColor &back); + + void braceMatch(); + bool findMatchingBrace(long &brace, long &other, BraceMatch mode); + long checkBrace(long pos, int brace_style, bool &colonMode); + void gotoMatchingBrace(bool select); + + void startAutoCompletion(AutoCompletionSource acs, bool checkThresh, + bool choose_single); + + int adjustedCallTipPosition(int ctshift) const; + bool getSeparator(int &pos) const; + QString getWord(int &pos) const; + char getCharacter(int &pos) const; + bool isStartChar(char ch) const; + + bool ensureRW(); + void insertAtPos(const QString &text, int pos); + static int mapModifiers(int modifiers); + + QString wordAtPosition(int position) const; + + ScintillaBytes styleText(const QValueList &styled_text, + char **styles, int style_offset = 0); + + struct FindState + { + enum Status + { + Finding, + FindingInSelection, + Idle + }; + + FindState() : status(Idle) {} + + Status status; + QString expr; + bool wrap; + bool forward; + int flags; + long startpos, startpos_orig; + long endpos, endpos_orig; + bool show; + }; + + FindState findState; + + unsigned allocatedMarkers; + unsigned allocatedIndicators; + int oldPos; + int ctPos; + bool selText; + FoldStyle fold; + int foldmargin; + bool autoInd; + BraceMatch braceMode; + AutoCompletionSource acSource; + int acThresh; + QStringList wseps; + const char *wchars; + CallTipsPosition call_tips_position; + CallTipsStyle call_tips_style; + int maxCallTips; + QStringList ct_entries; + int ct_cursor; + QValueList ct_shifts; + AutoCompletionUseSingle use_single; + QGuardedPtr lex; + QsciCommandSet *stdCmds; + QsciDocument doc; + QColor nl_text_colour; + QColor nl_paper_colour; + QCString explicit_fillups; + bool fillups_enabled; + + // The following allow QsciListBoxQt to distinguish between an + // auto-completion list and a user list, and to return the full selection + // of an auto-completion list. + friend class QsciListBoxQt; + + QString acSelection; + bool isAutoCompletionList() const; + + + QsciScintilla(const QsciScintilla &); + QsciScintilla &operator=(const QsciScintilla &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qsciscintillabase.h b/Qt3/Qsci/qsciscintillabase.h new file mode 100644 index 0000000..5a4ff22 --- /dev/null +++ b/Qt3/Qsci/qsciscintillabase.h @@ -0,0 +1,3432 @@ +// This class defines the "official" low-level API. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCISCINTILLABASE_H +#define QSCISCINTILLABASE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + +#include +#include + +#include + + +QT_BEGIN_NAMESPACE +class QColor; +class QImage; +class QPainter; +class QPixmap; +class QObject; +class QScrollBar; +QT_END_NAMESPACE + +class QsciScintillaQt; + + +//! \brief The QsciScintillaBase class implements the Scintilla editor widget +//! and its low-level API. +//! +//! Scintilla (http://www.scintilla.org) is a powerful C++ editor class that +//! supports many features including syntax styling, error indicators, code +//! completion and call tips. It is particularly useful as a programmer's +//! editor. +//! +//! QsciScintillaBase is a port to Qt of Scintilla. It implements the standard +//! Scintilla API which consists of a number of messages each taking up to +//! two arguments. +//! +//! See QsciScintilla for the implementation of a higher level API that is more +//! consistent with the rest of the Qt toolkit. +class QSCINTILLA_EXPORT QsciScintillaBase : public QWidget +{ + Q_OBJECT + +public: + //! The low-level Scintilla API is implemented as a set of messages each of + //! which takes up to two parameters (\a wParam and \a lParam) and + //! optionally return a value. This enum defines all the possible messages. + enum + { + //! + SCI_START = 2000, + + //! + SCI_OPTIONAL_START = 3000, + + //! + SCI_LEXER_START = 4000, + + //! This message appends some text to the end of the document. + //! \a wParam is the length of the text. + //! \a lParam is the text to be appended. + SCI_ADDTEXT = 2001, + + //! + SCI_ADDSTYLEDTEXT = 2002, + + //! + SCI_INSERTTEXT = 2003, + + //! + SCI_CLEARALL = 2004, + + //! + SCI_CLEARDOCUMENTSTYLE = 2005, + + //! + SCI_GETLENGTH = 2006, + + //! + SCI_GETCHARAT = 2007, + + //! This message returns the current position. + //! + //! \sa SCI_SETCURRENTPOS + SCI_GETCURRENTPOS = 2008, + + //! This message returns the anchor. + //! + //! \sa SCI_SETANCHOR + SCI_GETANCHOR = 2009, + + //! + SCI_GETSTYLEAT = 2010, + + //! + SCI_REDO = 2011, + + //! + SCI_SETUNDOCOLLECTION = 2012, + + //! + SCI_SELECTALL = 2013, + + //! This message marks the current state of the text as the the save + //! point. This is usually done when the text is saved or loaded. + //! + //! \sa SCN_SAVEPOINTREACHED(), SCN_SAVEPOINTLEFT() + SCI_SETSAVEPOINT = 2014, + + //! + SCI_GETSTYLEDTEXT = 2015, + + //! + SCI_CANREDO = 2016, + + //! This message returns the line that contains a particular instance + //! of a marker. + //! \a wParam is the handle of the marker. + //! + //! \sa SCI_MARKERADD + SCI_MARKERLINEFROMHANDLE = 2017, + + //! This message removes a particular instance of a marker. + //! \a wParam is the handle of the marker. + //! + //! \sa SCI_MARKERADD + SCI_MARKERDELETEHANDLE = 2018, + + //! + SCI_GETUNDOCOLLECTION = 2019, + + //! + SCI_GETVIEWWS = 2020, + + //! + SCI_SETVIEWWS = 2021, + + //! + SCI_POSITIONFROMPOINT = 2022, + + //! + SCI_POSITIONFROMPOINTCLOSE = 2023, + + //! + SCI_GOTOLINE = 2024, + + //! This message clears the current selection and sets the current + //! position. + //! \a wParam is the new current position. + //! + //! \sa SCI_SETCURRENTPOS + SCI_GOTOPOS = 2025, + + //! This message sets the anchor. + //! \a wParam is the new anchor. + //! + //! \sa SCI_GETANCHOR + SCI_SETANCHOR = 2026, + + //! + SCI_GETCURLINE = 2027, + + //! This message returns the character position of the start of the + //! text that needs to be syntax styled. + //! + //! \sa SCN_STYLENEEDED() + SCI_GETENDSTYLED = 2028, + + //! + SCI_CONVERTEOLS = 2029, + + //! + SCI_GETEOLMODE = 2030, + + //! + SCI_SETEOLMODE = 2031, + + //! + SCI_STARTSTYLING = 2032, + + //! + SCI_SETSTYLING = 2033, + + //! + SCI_GETBUFFEREDDRAW = 2034, + + //! + SCI_SETBUFFEREDDRAW = 2035, + + //! + SCI_SETTABWIDTH = 2036, + + //! + SCI_GETTABWIDTH = 2121, + + //! + SCI_SETCODEPAGE = 2037, + + //! This message sets the symbol used to draw one of 32 markers. Some + //! markers have pre-defined uses, see the SC_MARKNUM_* values. + //! \a wParam is the number of the marker. + //! \a lParam is the marker symbol and is one of the SC_MARK_* values. + //! + //! \sa SCI_MARKERADD, SCI_MARKERDEFINEPIXMAP, + //! SCI_MARKERDEFINERGBAIMAGE + SCI_MARKERDEFINE = 2040, + + //! This message sets the foreground colour used to draw a marker. A + //! colour is represented as a 24 bit value. The 8 least significant + //! bits correspond to red, the middle 8 bits correspond to green, and + //! the 8 most significant bits correspond to blue. The default value + //! is 0x000000. + //! \a wParam is the number of the marker. + //! \a lParam is the colour. + //! + //! \sa SCI_MARKERSETBACK + SCI_MARKERSETFORE = 2041, + + //! This message sets the background colour used to draw a marker. A + //! colour is represented as a 24 bit value. The 8 least significant + //! bits correspond to red, the middle 8 bits correspond to green, and + //! the 8 most significant bits correspond to blue. The default value + //! is 0xffffff. + //! \a wParam is the number of the marker. + //! \a lParam is the colour. + //! + //! \sa SCI_MARKERSETFORE + SCI_MARKERSETBACK = 2042, + + //! This message adds a marker to a line. A handle for the marker is + //! returned which can be used to track the marker's position. + //! \a wParam is the line number. + //! \a lParam is the number of the marker. + //! + //! \sa SCI_MARKERDELETE, SCI_MARKERDELETEALL, + //! SCI_MARKERDELETEHANDLE + SCI_MARKERADD = 2043, + + //! This message deletes a marker from a line. + //! \a wParam is the line number. + //! \a lParam is the number of the marker. + //! + //! \sa SCI_MARKERADD, SCI_MARKERDELETEALL + SCI_MARKERDELETE = 2044, + + //! This message deletes all occurences of a marker. + //! \a wParam is the number of the marker. If \a wParam is -1 then all + //! markers are removed. + //! + //! \sa SCI_MARKERADD, SCI_MARKERDELETE + SCI_MARKERDELETEALL = 2045, + + //! This message returns the 32 bit mask of markers at a line. + //! \a wParam is the line number. + SCI_MARKERGET = 2046, + + //! This message looks for the next line to contain at least one marker + //! contained in a 32 bit mask of markers and returns the line number. + //! \a wParam is the line number to start the search from. + //! \a lParam is the mask of markers to search for. + //! + //! \sa SCI_MARKERPREVIOUS + SCI_MARKERNEXT = 2047, + + //! This message looks for the previous line to contain at least one + //! marker contained in a 32 bit mask of markers and returns the line + //! number. + //! \a wParam is the line number to start the search from. + //! \a lParam is the mask of markers to search for. + //! + //! \sa SCI_MARKERNEXT + SCI_MARKERPREVIOUS = 2048, + + //! This message sets the symbol used to draw one of the 32 markers to + //! a pixmap. Pixmaps use the SC_MARK_PIXMAP marker symbol. + //! \a wParam is the number of the marker. + //! \a lParam is a pointer to a QPixmap instance. Note that in other + //! ports of Scintilla this is a pointer to either raw or textual XPM + //! image data. + //! + //! \sa SCI_MARKERDEFINE, SCI_MARKERDEFINERGBAIMAGE + SCI_MARKERDEFINEPIXMAP = 2049, + + //! This message sets what can be displayed in a margin. + //! \a wParam is the number of the margin. + //! \a lParam is the logical or of the SC_MARGIN_* values. + //! + //! \sa SCI_GETMARGINTYPEN + SCI_SETMARGINTYPEN = 2240, + + //! This message returns what can be displayed in a margin. + //! \a wParam is the number of the margin. + //! + //! \sa SCI_SETMARGINTYPEN + SCI_GETMARGINTYPEN = 2241, + + //! This message sets the width of a margin in pixels. + //! \a wParam is the number of the margin. + //! \a lParam is the new margin width. + //! + //! \sa SCI_GETMARGINWIDTHN + SCI_SETMARGINWIDTHN = 2242, + + //! This message returns the width of a margin in pixels. + //! \a wParam is the number of the margin. + //! + //! \sa SCI_SETMARGINWIDTHN + SCI_GETMARGINWIDTHN = 2243, + + //! This message sets the mask of a margin. The mask is a 32 value + //! with one bit for each possible marker. If a bit is set then the + //! corresponding marker is displayed. By default, all markers are + //! displayed. + //! \a wParam is the number of the margin. + //! \a lParam is the new margin mask. + //! + //! \sa SCI_GETMARGINMASKN, SCI_MARKERDEFINE + SCI_SETMARGINMASKN = 2244, + + //! This message returns the mask of a margin. + //! \a wParam is the number of the margin. + //! + //! \sa SCI_SETMARGINMASKN + SCI_GETMARGINMASKN = 2245, + + //! This message sets the sensitivity of a margin to mouse clicks. + //! \a wParam is the number of the margin. + //! \a lParam is non-zero to make the margin sensitive to mouse clicks. + //! When the mouse is clicked the SCN_MARGINCLICK() signal is emitted. + //! + //! \sa SCI_GETMARGINSENSITIVEN, SCN_MARGINCLICK() + SCI_SETMARGINSENSITIVEN = 2246, + + //! This message returns the sensitivity of a margin to mouse clicks. + //! \a wParam is the number of the margin. + //! + //! \sa SCI_SETMARGINSENSITIVEN, SCN_MARGINCLICK() + SCI_GETMARGINSENSITIVEN = 2247, + + //! This message sets the cursor shape displayed over a margin. + //! \a wParam is the number of the margin. + //! \a lParam is the cursor shape, normally either SC_CURSORARROW or + //! SC_CURSORREVERSEARROW. Note that, currently, QScintilla implements + //! both of these as Qt::ArrowCursor. + //! + //! \sa SCI_GETMARGINCURSORN + SCI_SETMARGINCURSORN = 2248, + + //! This message returns the cursor shape displayed over a margin. + //! \a wParam is the number of the margin. + //! + //! \sa SCI_SETMARGINCURSORN + SCI_GETMARGINCURSORN = 2249, + + //! + SCI_STYLECLEARALL = 2050, + + //! + SCI_STYLESETFORE = 2051, + + //! + SCI_STYLESETBACK = 2052, + + //! + SCI_STYLESETBOLD = 2053, + + //! + SCI_STYLESETITALIC = 2054, + + //! + SCI_STYLESETSIZE = 2055, + + //! + SCI_STYLESETFONT = 2056, + + //! + SCI_STYLESETEOLFILLED = 2057, + + //! + SCI_STYLERESETDEFAULT = 2058, + + //! + SCI_STYLESETUNDERLINE = 2059, + + //! + SCI_STYLESETCASE = 2060, + + //! + SCI_STYLESETSIZEFRACTIONAL = 2061, + + //! + SCI_STYLEGETSIZEFRACTIONAL = 2062, + + //! + SCI_STYLESETWEIGHT = 2063, + + //! + SCI_STYLEGETWEIGHT = 2064, + + //! + SCI_STYLESETCHARACTERSET = 2066, + + //! + SCI_SETSELFORE = 2067, + + //! + SCI_SETSELBACK = 2068, + + //! + SCI_SETCARETFORE = 2069, + + //! + SCI_ASSIGNCMDKEY = 2070, + + //! + SCI_CLEARCMDKEY = 2071, + + //! + SCI_CLEARALLCMDKEYS = 2072, + + //! + SCI_SETSTYLINGEX = 2073, + + //! + SCI_STYLESETVISIBLE = 2074, + + //! + SCI_GETCARETPERIOD = 2075, + + //! + SCI_SETCARETPERIOD = 2076, + + //! + SCI_SETWORDCHARS = 2077, + + //! + SCI_BEGINUNDOACTION = 2078, + + //! + SCI_ENDUNDOACTION = 2079, + + //! + SCI_INDICSETSTYLE = 2080, + + //! + SCI_INDICGETSTYLE = 2081, + + //! + SCI_INDICSETFORE = 2082, + + //! + SCI_INDICGETFORE = 2083, + + //! + SCI_SETWHITESPACEFORE = 2084, + + //! + SCI_SETWHITESPACEBACK = 2085, + + //! + SCI_SETWHITESPACESIZE = 2086, + + //! + SCI_GETWHITESPACESIZE = 2087, + + //! + SCI_SETSTYLEBITS = 2090, + + //! + SCI_GETSTYLEBITS = 2091, + + //! + SCI_SETLINESTATE = 2092, + + //! + SCI_GETLINESTATE = 2093, + + //! + SCI_GETMAXLINESTATE = 2094, + + //! + SCI_GETCARETLINEVISIBLE = 2095, + + //! + SCI_SETCARETLINEVISIBLE = 2096, + + //! + SCI_GETCARETLINEBACK = 2097, + + //! + SCI_SETCARETLINEBACK = 2098, + + //! + SCI_STYLESETCHANGEABLE = 2099, + + //! + SCI_AUTOCSHOW = 2100, + + //! + SCI_AUTOCCANCEL = 2101, + + //! + SCI_AUTOCACTIVE = 2102, + + //! + SCI_AUTOCPOSSTART = 2103, + + //! + SCI_AUTOCCOMPLETE = 2104, + + //! + SCI_AUTOCSTOPS = 2105, + + //! + SCI_AUTOCSETSEPARATOR = 2106, + + //! + SCI_AUTOCGETSEPARATOR = 2107, + + //! + SCI_AUTOCSELECT = 2108, + + //! + SCI_AUTOCSETCANCELATSTART = 2110, + + //! + SCI_AUTOCGETCANCELATSTART = 2111, + + //! + SCI_AUTOCSETFILLUPS = 2112, + + //! + SCI_AUTOCSETCHOOSESINGLE = 2113, + + //! + SCI_AUTOCGETCHOOSESINGLE = 2114, + + //! + SCI_AUTOCSETIGNORECASE = 2115, + + //! + SCI_AUTOCGETIGNORECASE = 2116, + + //! + SCI_USERLISTSHOW = 2117, + + //! + SCI_AUTOCSETAUTOHIDE = 2118, + + //! + SCI_AUTOCGETAUTOHIDE = 2119, + + //! + SCI_AUTOCSETDROPRESTOFWORD = 2270, + + //! + SCI_AUTOCGETDROPRESTOFWORD = 2271, + + //! + SCI_SETINDENT = 2122, + + //! + SCI_GETINDENT = 2123, + + //! + SCI_SETUSETABS = 2124, + + //! + SCI_GETUSETABS = 2125, + + //! + SCI_SETLINEINDENTATION = 2126, + + //! + SCI_GETLINEINDENTATION = 2127, + + //! + SCI_GETLINEINDENTPOSITION = 2128, + + //! + SCI_GETCOLUMN = 2129, + + //! + SCI_SETHSCROLLBAR = 2130, + + //! + SCI_GETHSCROLLBAR = 2131, + + //! + SCI_SETINDENTATIONGUIDES = 2132, + + //! + SCI_GETINDENTATIONGUIDES = 2133, + + //! + SCI_SETHIGHLIGHTGUIDE = 2134, + + //! + SCI_GETHIGHLIGHTGUIDE = 2135, + + //! + SCI_GETLINEENDPOSITION = 2136, + + //! + SCI_GETCODEPAGE = 2137, + + //! + SCI_GETCARETFORE = 2138, + + //! This message returns a non-zero value if the document is read-only. + //! + //! \sa SCI_SETREADONLY + SCI_GETREADONLY = 2140, + + //! This message sets the current position. + //! \a wParam is the new current position. + //! + //! \sa SCI_GETCURRENTPOS + SCI_SETCURRENTPOS = 2141, + + //! + SCI_SETSELECTIONSTART = 2142, + + //! + SCI_GETSELECTIONSTART = 2143, + + //! + SCI_SETSELECTIONEND = 2144, + + //! + SCI_GETSELECTIONEND = 2145, + + //! + SCI_SETPRINTMAGNIFICATION = 2146, + + //! + SCI_GETPRINTMAGNIFICATION = 2147, + + //! + SCI_SETPRINTCOLOURMODE = 2148, + + //! + SCI_GETPRINTCOLOURMODE = 2149, + + //! + SCI_FINDTEXT = 2150, + + //! + SCI_FORMATRANGE = 2151, + + //! + SCI_GETFIRSTVISIBLELINE = 2152, + + //! + SCI_GETLINE = 2153, + + //! + SCI_GETLINECOUNT = 2154, + + //! + SCI_SETMARGINLEFT = 2155, + + //! + SCI_GETMARGINLEFT = 2156, + + //! + SCI_SETMARGINRIGHT = 2157, + + //! + SCI_GETMARGINRIGHT = 2158, + + //! This message returns a non-zero value if the document has been + //! modified. + SCI_GETMODIFY = 2159, + + //! + SCI_SETSEL = 2160, + + //! + SCI_GETSELTEXT = 2161, + + //! + SCI_GETTEXTRANGE = 2162, + + //! + SCI_HIDESELECTION = 2163, + + //! + SCI_POINTXFROMPOSITION = 2164, + + //! + SCI_POINTYFROMPOSITION = 2165, + + //! + SCI_LINEFROMPOSITION = 2166, + + //! + SCI_POSITIONFROMLINE = 2167, + + //! + SCI_LINESCROLL = 2168, + + //! + SCI_SCROLLCARET = 2169, + + //! + SCI_REPLACESEL = 2170, + + //! This message sets the read-only state of the document. + //! \a wParam is the new read-only state of the document. + //! + //! \sa SCI_GETREADONLY + SCI_SETREADONLY = 2171, + + //! + SCI_NULL = 2172, + + //! + SCI_CANPASTE = 2173, + + //! + SCI_CANUNDO = 2174, + + //! This message empties the undo buffer. + SCI_EMPTYUNDOBUFFER = 2175, + + //! + SCI_UNDO = 2176, + + //! + SCI_CUT = 2177, + + //! + SCI_COPY = 2178, + + //! + SCI_PASTE = 2179, + + //! + SCI_CLEAR = 2180, + + //! This message sets the text of the document. + //! \a wParam is unused. + //! \a lParam is the new text of the document. + //! + //! \sa SCI_GETTEXT + SCI_SETTEXT = 2181, + + //! This message gets the text of the document. + //! \a wParam is size of the buffer that the text is copied to. + //! \a lParam is the address of the buffer that the text is copied to. + //! + //! \sa SCI_SETTEXT + SCI_GETTEXT = 2182, + + //! This message returns the length of the document. + SCI_GETTEXTLENGTH = 2183, + + //! + SCI_GETDIRECTFUNCTION = 2184, + + //! + SCI_GETDIRECTPOINTER = 2185, + + //! + SCI_SETOVERTYPE = 2186, + + //! + SCI_GETOVERTYPE = 2187, + + //! + SCI_SETCARETWIDTH = 2188, + + //! + SCI_GETCARETWIDTH = 2189, + + //! + SCI_SETTARGETSTART = 2190, + + //! + SCI_GETTARGETSTART = 2191, + + //! + SCI_SETTARGETEND = 2192, + + //! + SCI_GETTARGETEND = 2193, + + //! + SCI_REPLACETARGET = 2194, + + //! + SCI_REPLACETARGETRE = 2195, + + //! + SCI_SEARCHINTARGET = 2197, + + //! + SCI_SETSEARCHFLAGS = 2198, + + //! + SCI_GETSEARCHFLAGS = 2199, + + //! + SCI_CALLTIPSHOW = 2200, + + //! + SCI_CALLTIPCANCEL = 2201, + + //! + SCI_CALLTIPACTIVE = 2202, + + //! + SCI_CALLTIPPOSSTART = 2203, + + //! + SCI_CALLTIPSETHLT = 2204, + + //! + SCI_CALLTIPSETBACK = 2205, + + //! + SCI_CALLTIPSETFORE = 2206, + + //! + SCI_CALLTIPSETFOREHLT = 2207, + + //! + SCI_AUTOCSETMAXWIDTH = 2208, + + //! + SCI_AUTOCGETMAXWIDTH = 2209, + + //! This message is not implemented. + SCI_AUTOCSETMAXHEIGHT = 2210, + + //! + SCI_AUTOCGETMAXHEIGHT = 2211, + + //! + SCI_CALLTIPUSESTYLE = 2212, + + //! + SCI_CALLTIPSETPOSITION = 2213, + + //! + SCI_VISIBLEFROMDOCLINE = 2220, + + //! + SCI_DOCLINEFROMVISIBLE = 2221, + + //! + SCI_SETFOLDLEVEL = 2222, + + //! + SCI_GETFOLDLEVEL = 2223, + + //! + SCI_GETLASTCHILD = 2224, + + //! + SCI_GETFOLDPARENT = 2225, + + //! + SCI_SHOWLINES = 2226, + + //! + SCI_HIDELINES = 2227, + + //! + SCI_GETLINEVISIBLE = 2228, + + //! + SCI_SETFOLDEXPANDED = 2229, + + //! + SCI_GETFOLDEXPANDED = 2230, + + //! + SCI_TOGGLEFOLD = 2231, + + //! + SCI_ENSUREVISIBLE = 2232, + + //! + SCI_SETFOLDFLAGS = 2233, + + //! + SCI_ENSUREVISIBLEENFORCEPOLICY = 2234, + + //! + SCI_WRAPCOUNT = 2235, + + //! + SCI_GETALLLINESVISIBLE = 2236, + + //! + SCI_FOLDLINE = 2237, + + //! + SCI_FOLDCHILDREN = 2238, + + //! + SCI_EXPANDCHILDREN = 2239, + + //! + SCI_SETTABINDENTS = 2260, + + //! + SCI_GETTABINDENTS = 2261, + + //! + SCI_SETBACKSPACEUNINDENTS = 2262, + + //! + SCI_GETBACKSPACEUNINDENTS = 2263, + + //! + SCI_SETMOUSEDWELLTIME = 2264, + + //! + SCI_GETMOUSEDWELLTIME = 2265, + + //! + SCI_WORDSTARTPOSITION = 2266, + + //! + SCI_WORDENDPOSITION = 2267, + + //! + SCI_SETWRAPMODE = 2268, + + //! + SCI_GETWRAPMODE = 2269, + + //! + SCI_SETLAYOUTCACHE = 2272, + + //! + SCI_GETLAYOUTCACHE = 2273, + + //! + SCI_SETSCROLLWIDTH = 2274, + + //! + SCI_GETSCROLLWIDTH = 2275, + + //! This message returns the width of some text when rendered in a + //! particular style. + //! \a wParam is the style number and is one of the STYLE_* values or + //! one of the styles defined by a lexer. + //! \a lParam is a pointer to the text. + SCI_TEXTWIDTH = 2276, + + //! + SCI_SETENDATLASTLINE = 2277, + + //! + SCI_GETENDATLASTLINE = 2278, + + //! + SCI_TEXTHEIGHT = 2279, + + //! + SCI_SETVSCROLLBAR = 2280, + + //! + SCI_GETVSCROLLBAR = 2281, + + //! + SCI_APPENDTEXT = 2282, + + //! + SCI_GETTWOPHASEDRAW = 2283, + + //! + SCI_SETTWOPHASEDRAW = 2284, + + //! + SCI_AUTOCGETTYPESEPARATOR = 2285, + + //! + SCI_AUTOCSETTYPESEPARATOR = 2286, + + //! + SCI_TARGETFROMSELECTION = 2287, + + //! + SCI_LINESJOIN = 2288, + + //! + SCI_LINESSPLIT = 2289, + + //! + SCI_SETFOLDMARGINCOLOUR = 2290, + + //! + SCI_SETFOLDMARGINHICOLOUR = 2291, + + //! + SCI_MARKERSETBACKSELECTED = 2292, + + //! + SCI_MARKERENABLEHIGHLIGHT = 2293, + + //! + SCI_LINEDOWN = 2300, + + //! + SCI_LINEDOWNEXTEND = 2301, + + //! + SCI_LINEUP = 2302, + + //! + SCI_LINEUPEXTEND = 2303, + + //! + SCI_CHARLEFT = 2304, + + //! + SCI_CHARLEFTEXTEND = 2305, + + //! + SCI_CHARRIGHT = 2306, + + //! + SCI_CHARRIGHTEXTEND = 2307, + + //! + SCI_WORDLEFT = 2308, + + //! + SCI_WORDLEFTEXTEND = 2309, + + //! + SCI_WORDRIGHT = 2310, + + //! + SCI_WORDRIGHTEXTEND = 2311, + + //! + SCI_HOME = 2312, + + //! + SCI_HOMEEXTEND = 2313, + + //! + SCI_LINEEND = 2314, + + //! + SCI_LINEENDEXTEND = 2315, + + //! + SCI_DOCUMENTSTART = 2316, + + //! + SCI_DOCUMENTSTARTEXTEND = 2317, + + //! + SCI_DOCUMENTEND = 2318, + + //! + SCI_DOCUMENTENDEXTEND = 2319, + + //! + SCI_PAGEUP = 2320, + + //! + SCI_PAGEUPEXTEND = 2321, + + //! + SCI_PAGEDOWN = 2322, + + //! + SCI_PAGEDOWNEXTEND = 2323, + + //! + SCI_EDITTOGGLEOVERTYPE = 2324, + + //! + SCI_CANCEL = 2325, + + //! + SCI_DELETEBACK = 2326, + + //! + SCI_TAB = 2327, + + //! + SCI_BACKTAB = 2328, + + //! + SCI_NEWLINE = 2329, + + //! + SCI_FORMFEED = 2330, + + //! + SCI_VCHOME = 2331, + + //! + SCI_VCHOMEEXTEND = 2332, + + //! + SCI_ZOOMIN = 2333, + + //! + SCI_ZOOMOUT = 2334, + + //! + SCI_DELWORDLEFT = 2335, + + //! + SCI_DELWORDRIGHT = 2336, + + //! + SCI_LINECUT = 2337, + + //! + SCI_LINEDELETE = 2338, + + //! + SCI_LINETRANSPOSE = 2339, + + //! + SCI_LOWERCASE = 2340, + + //! + SCI_UPPERCASE = 2341, + + //! + SCI_LINESCROLLDOWN = 2342, + + //! + SCI_LINESCROLLUP = 2343, + + //! + SCI_DELETEBACKNOTLINE = 2344, + + //! + SCI_HOMEDISPLAY = 2345, + + //! + SCI_HOMEDISPLAYEXTEND = 2346, + + //! + SCI_LINEENDDISPLAY = 2347, + + //! + SCI_LINEENDDISPLAYEXTEND = 2348, + + //! + SCI_MOVECARETINSIDEVIEW = 2401, + + //! + SCI_LINELENGTH = 2350, + + //! + SCI_BRACEHIGHLIGHT = 2351, + + //! + SCI_BRACEBADLIGHT = 2352, + + //! + SCI_BRACEMATCH = 2353, + + //! + SCI_GETVIEWEOL = 2355, + + //! + SCI_SETVIEWEOL = 2356, + + //! + SCI_GETDOCPOINTER = 2357, + + //! + SCI_SETDOCPOINTER = 2358, + + //! + SCI_SETMODEVENTMASK = 2359, + + //! + SCI_GETEDGECOLUMN = 2360, + + //! + SCI_SETEDGECOLUMN = 2361, + + //! + SCI_GETEDGEMODE = 2362, + + //! + SCI_SETEDGEMODE = 2363, + + //! + SCI_GETEDGECOLOUR = 2364, + + //! + SCI_SETEDGECOLOUR = 2365, + + //! + SCI_SEARCHANCHOR = 2366, + + //! + SCI_SEARCHNEXT = 2367, + + //! + SCI_SEARCHPREV = 2368, + + //! + SCI_LINESONSCREEN = 2370, + + //! + SCI_USEPOPUP = 2371, + + //! + SCI_SELECTIONISRECTANGLE = 2372, + + //! + SCI_SETZOOM = 2373, + + //! + SCI_GETZOOM = 2374, + + //! + SCI_CREATEDOCUMENT = 2375, + + //! + SCI_ADDREFDOCUMENT = 2376, + + //! + SCI_RELEASEDOCUMENT = 2377, + + //! + SCI_GETMODEVENTMASK = 2378, + + //! + SCI_SETFOCUS = 2380, + + //! + SCI_GETFOCUS = 2381, + + //! + SCI_SETSTATUS = 2382, + + //! + SCI_GETSTATUS = 2383, + + //! + SCI_SETMOUSEDOWNCAPTURES = 2384, + + //! + SCI_GETMOUSEDOWNCAPTURES = 2385, + + //! + SCI_SETCURSOR = 2386, + + //! + SCI_GETCURSOR = 2387, + + //! + SCI_SETCONTROLCHARSYMBOL = 2388, + + //! + SCI_GETCONTROLCHARSYMBOL = 2389, + + //! + SCI_WORDPARTLEFT = 2390, + + //! + SCI_WORDPARTLEFTEXTEND = 2391, + + //! + SCI_WORDPARTRIGHT = 2392, + + //! + SCI_WORDPARTRIGHTEXTEND = 2393, + + //! + SCI_SETVISIBLEPOLICY = 2394, + + //! + SCI_DELLINELEFT = 2395, + + //! + SCI_DELLINERIGHT = 2396, + + //! + SCI_SETXOFFSET = 2397, + + //! + SCI_GETXOFFSET = 2398, + + //! + SCI_CHOOSECARETX = 2399, + + //! + SCI_GRABFOCUS = 2400, + + //! + SCI_SETXCARETPOLICY = 2402, + + //! + SCI_SETYCARETPOLICY = 2403, + + //! + SCI_LINEDUPLICATE = 2404, + + //! This message takes a copy of an image and registers it so that it + //! can be refered to by a unique integer identifier. + //! \a wParam is the image's identifier. + //! \a lParam is a pointer to a QPixmap instance. Note that in other + //! ports of Scintilla this is a pointer to either raw or textual XPM + //! image data. + //! + //! \sa SCI_CLEARREGISTEREDIMAGES, SCI_REGISTERRGBAIMAGE + SCI_REGISTERIMAGE = 2405, + + //! + SCI_SETPRINTWRAPMODE = 2406, + + //! + SCI_GETPRINTWRAPMODE = 2407, + + //! This message de-registers all currently registered images. + //! + //! \sa SCI_REGISTERIMAGE, SCI_REGISTERRGBAIMAGE + SCI_CLEARREGISTEREDIMAGES = 2408, + + //! + SCI_STYLESETHOTSPOT = 2409, + + //! + SCI_SETHOTSPOTACTIVEFORE = 2410, + + //! + SCI_SETHOTSPOTACTIVEBACK = 2411, + + //! + SCI_SETHOTSPOTACTIVEUNDERLINE = 2412, + + //! + SCI_PARADOWN = 2413, + + //! + SCI_PARADOWNEXTEND = 2414, + + //! + SCI_PARAUP = 2415, + + //! + SCI_PARAUPEXTEND = 2416, + + //! + SCI_POSITIONBEFORE = 2417, + + //! + SCI_POSITIONAFTER = 2418, + + //! + SCI_COPYRANGE = 2419, + + //! + SCI_COPYTEXT = 2420, + + //! + SCI_SETHOTSPOTSINGLELINE = 2421, + + //! + SCI_SETSELECTIONMODE = 2422, + + //! + SCI_GETSELECTIONMODE = 2423, + + //! + SCI_GETLINESELSTARTPOSITION = 2424, + + //! + SCI_GETLINESELENDPOSITION = 2425, + + //! + SCI_LINEDOWNRECTEXTEND = 2426, + + //! + SCI_LINEUPRECTEXTEND = 2427, + + //! + SCI_CHARLEFTRECTEXTEND = 2428, + + //! + SCI_CHARRIGHTRECTEXTEND = 2429, + + //! + SCI_HOMERECTEXTEND = 2430, + + //! + SCI_VCHOMERECTEXTEND = 2431, + + //! + SCI_LINEENDRECTEXTEND = 2432, + + //! + SCI_PAGEUPRECTEXTEND = 2433, + + //! + SCI_PAGEDOWNRECTEXTEND = 2434, + + //! + SCI_STUTTEREDPAGEUP = 2435, + + //! + SCI_STUTTEREDPAGEUPEXTEND = 2436, + + //! + SCI_STUTTEREDPAGEDOWN = 2437, + + //! + SCI_STUTTEREDPAGEDOWNEXTEND = 2438, + + //! + SCI_WORDLEFTEND = 2439, + + //! + SCI_WORDLEFTENDEXTEND = 2440, + + //! + SCI_WORDRIGHTEND = 2441, + + //! + SCI_WORDRIGHTENDEXTEND = 2442, + + //! + SCI_SETWHITESPACECHARS = 2443, + + //! + SCI_SETCHARSDEFAULT = 2444, + + //! + SCI_AUTOCGETCURRENT = 2445, + + //! + SCI_ALLOCATE = 2446, + + //! + SCI_HOMEWRAP = 2349, + + //! + SCI_HOMEWRAPEXTEND = 2450, + + //! + SCI_LINEENDWRAP = 2451, + + //! + SCI_LINEENDWRAPEXTEND = 2452, + + //! + SCI_VCHOMEWRAP = 2453, + + //! + SCI_VCHOMEWRAPEXTEND = 2454, + + //! + SCI_LINECOPY = 2455, + + //! + SCI_FINDCOLUMN = 2456, + + //! + SCI_GETCARETSTICKY = 2457, + + //! + SCI_SETCARETSTICKY = 2458, + + //! + SCI_TOGGLECARETSTICKY = 2459, + + //! + SCI_SETWRAPVISUALFLAGS = 2460, + + //! + SCI_GETWRAPVISUALFLAGS = 2461, + + //! + SCI_SETWRAPVISUALFLAGSLOCATION = 2462, + + //! + SCI_GETWRAPVISUALFLAGSLOCATION = 2463, + + //! + SCI_SETWRAPSTARTINDENT = 2464, + + //! + SCI_GETWRAPSTARTINDENT = 2465, + + //! + SCI_MARKERADDSET = 2466, + + //! + SCI_SETPASTECONVERTENDINGS = 2467, + + //! + SCI_GETPASTECONVERTENDINGS = 2468, + + //! + SCI_SELECTIONDUPLICATE = 2469, + + //! + SCI_SETCARETLINEBACKALPHA = 2470, + + //! + SCI_GETCARETLINEBACKALPHA = 2471, + + //! + SCI_SETWRAPINDENTMODE = 2472, + + //! + SCI_GETWRAPINDENTMODE = 2473, + + //! + SCI_MARKERSETALPHA = 2476, + + //! + SCI_GETSELALPHA = 2477, + + //! + SCI_SETSELALPHA = 2478, + + //! + SCI_GETSELEOLFILLED = 2479, + + //! + SCI_SETSELEOLFILLED = 2480, + + //! + SCI_STYLEGETFORE = 2481, + + //! + SCI_STYLEGETBACK = 2482, + + //! + SCI_STYLEGETBOLD = 2483, + + //! + SCI_STYLEGETITALIC = 2484, + + //! + SCI_STYLEGETSIZE = 2485, + + //! + SCI_STYLEGETFONT = 2486, + + //! + SCI_STYLEGETEOLFILLED = 2487, + + //! + SCI_STYLEGETUNDERLINE = 2488, + + //! + SCI_STYLEGETCASE = 2489, + + //! + SCI_STYLEGETCHARACTERSET = 2490, + + //! + SCI_STYLEGETVISIBLE = 2491, + + //! + SCI_STYLEGETCHANGEABLE = 2492, + + //! + SCI_STYLEGETHOTSPOT = 2493, + + //! + SCI_GETHOTSPOTACTIVEFORE = 2494, + + //! + SCI_GETHOTSPOTACTIVEBACK = 2495, + + //! + SCI_GETHOTSPOTACTIVEUNDERLINE = 2496, + + //! + SCI_GETHOTSPOTSINGLELINE = 2497, + + //! + SCI_BRACEHIGHLIGHTINDICATOR = 2498, + + //! + SCI_BRACEBADLIGHTINDICATOR = 2499, + + //! + SCI_SETINDICATORCURRENT = 2500, + + //! + SCI_GETINDICATORCURRENT = 2501, + + //! + SCI_SETINDICATORVALUE = 2502, + + //! + SCI_GETINDICATORVALUE = 2503, + + //! + SCI_INDICATORFILLRANGE = 2504, + + //! + SCI_INDICATORCLEARRANGE = 2505, + + //! + SCI_INDICATORALLONFOR = 2506, + + //! + SCI_INDICATORVALUEAT = 2507, + + //! + SCI_INDICATORSTART = 2508, + + //! + SCI_INDICATOREND = 2509, + + //! + SCI_INDICSETUNDER = 2510, + + //! + SCI_INDICGETUNDER = 2511, + + //! + SCI_SETCARETSTYLE = 2512, + + //! + SCI_GETCARETSTYLE = 2513, + + //! + SCI_SETPOSITIONCACHE = 2514, + + //! + SCI_GETPOSITIONCACHE = 2515, + + //! + SCI_SETSCROLLWIDTHTRACKING = 2516, + + //! + SCI_GETSCROLLWIDTHTRACKING = 2517, + + //! + SCI_DELWORDRIGHTEND = 2518, + + //! This message copies the selection. If the selection is empty then + //! copy the line with the caret. + SCI_COPYALLOWLINE = 2519, + + //! This message returns a pointer to the document text. Any + //! subsequent message will invalidate the pointer. + SCI_GETCHARACTERPOINTER = 2520, + + //! + SCI_SETKEYSUNICODE = 2521, + + //! + SCI_GETKEYSUNICODE = 2522, + + //! + SCI_INDICSETALPHA = 2523, + + //! + SCI_INDICGETALPHA = 2524, + + //! + SCI_SETEXTRAASCENT = 2525, + + //! + SCI_GETEXTRAASCENT = 2526, + + //! + SCI_SETEXTRADESCENT = 2527, + + //! + SCI_GETEXTRADESCENT = 2528, + + //! + SCI_MARKERSYMBOLDEFINED = 2529, + + //! + SCI_MARGINSETTEXT = 2530, + + //! + SCI_MARGINGETTEXT = 2531, + + //! + SCI_MARGINSETSTYLE = 2532, + + //! + SCI_MARGINGETSTYLE = 2533, + + //! + SCI_MARGINSETSTYLES = 2534, + + //! + SCI_MARGINGETSTYLES = 2535, + + //! + SCI_MARGINTEXTCLEARALL = 2536, + + //! + SCI_MARGINSETSTYLEOFFSET = 2537, + + //! + SCI_MARGINGETSTYLEOFFSET = 2538, + + //! + SCI_SETMARGINOPTIONS = 2539, + + //! + SCI_ANNOTATIONSETTEXT = 2540, + + //! + SCI_ANNOTATIONGETTEXT = 2541, + + //! + SCI_ANNOTATIONSETSTYLE = 2542, + + //! + SCI_ANNOTATIONGETSTYLE = 2543, + + //! + SCI_ANNOTATIONSETSTYLES = 2544, + + //! + SCI_ANNOTATIONGETSTYLES = 2545, + + //! + SCI_ANNOTATIONGETLINES = 2546, + + //! + SCI_ANNOTATIONCLEARALL = 2547, + + //! + SCI_ANNOTATIONSETVISIBLE = 2548, + + //! + SCI_ANNOTATIONGETVISIBLE = 2549, + + //! + SCI_ANNOTATIONSETSTYLEOFFSET = 2550, + + //! + SCI_ANNOTATIONGETSTYLEOFFSET = 2551, + + //! + SCI_RELEASEALLEXTENDEDSTYLES = 2552, + + //! + SCI_ALLOCATEEXTENDEDSTYLES = 2553, + + //! + SCI_SETEMPTYSELECTION = 2556, + + //! + SCI_GETMARGINOPTIONS = 2557, + + //! + SCI_INDICSETOUTLINEALPHA = 2558, + + //! + SCI_INDICGETOUTLINEALPHA = 2559, + + //! + SCI_ADDUNDOACTION = 2560, + + //! + SCI_CHARPOSITIONFROMPOINT = 2561, + + //! + SCI_CHARPOSITIONFROMPOINTCLOSE = 2562, + + //! + SCI_SETMULTIPLESELECTION = 2563, + + //! + SCI_GETMULTIPLESELECTION = 2564, + + //! + SCI_SETADDITIONALSELECTIONTYPING = 2565, + + //! + SCI_GETADDITIONALSELECTIONTYPING = 2566, + + //! + SCI_SETADDITIONALCARETSBLINK = 2567, + + //! + SCI_GETADDITIONALCARETSBLINK = 2568, + + //! + SCI_SCROLLRANGE = 2569, + + //! + SCI_SETADDITIONALCARETSVISIBLE = 2608, + + //! + SCI_GETADDITIONALCARETSVISIBLE = 2609, + + //! + SCI_AUTOCGETCURRENTTEXT = 2610, + + //! + SCI_GETSELECTIONS = 2570, + + //! + SCI_CLEARSELECTIONS = 2571, + + //! + SCI_SETSELECTION = 2572, + + //! + SCI_ADDSELECTION = 2573, + + //! + SCI_SETMAINSELECTION = 2574, + + //! + SCI_GETMAINSELECTION = 2575, + + //! + SCI_SETSELECTIONNCARET = 2576, + + //! + SCI_GETSELECTIONNCARET = 2577, + + //! + SCI_SETSELECTIONNANCHOR = 2578, + + //! + SCI_GETSELECTIONNANCHOR = 2579, + + //! + SCI_SETSELECTIONNCARETVIRTUALSPACE = 2580, + + //! + SCI_GETSELECTIONNCARETVIRTUALSPACE = 2581, + + //! + SCI_SETSELECTIONNANCHORVIRTUALSPACE = 2582, + + //! + SCI_GETSELECTIONNANCHORVIRTUALSPACE = 2583, + + //! + SCI_SETSELECTIONNSTART = 2584, + + //! + SCI_GETSELECTIONNSTART = 2585, + + //! + SCI_SETSELECTIONNEND = 2586, + + //! + SCI_GETSELECTIONNEND = 2587, + + //! + SCI_SETRECTANGULARSELECTIONCARET = 2588, + + //! + SCI_GETRECTANGULARSELECTIONCARET = 2589, + + //! + SCI_SETRECTANGULARSELECTIONANCHOR = 2590, + + //! + SCI_GETRECTANGULARSELECTIONANCHOR = 2591, + + //! + SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2592, + + //! + SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2593, + + //! + SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2594, + + //! + SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2595, + + //! + SCI_SETVIRTUALSPACEOPTIONS = 2596, + + //! + SCI_GETVIRTUALSPACEOPTIONS = 2597, + + //! + SCI_SETRECTANGULARSELECTIONMODIFIER = 2598, + + //! + SCI_GETRECTANGULARSELECTIONMODIFIER = 2599, + + //! + SCI_SETADDITIONALSELFORE = 2600, + + //! + SCI_SETADDITIONALSELBACK = 2601, + + //! + SCI_SETADDITIONALSELALPHA = 2602, + + //! + SCI_GETADDITIONALSELALPHA = 2603, + + //! + SCI_SETADDITIONALCARETFORE = 2604, + + //! + SCI_GETADDITIONALCARETFORE = 2605, + + //! + SCI_ROTATESELECTION = 2606, + + //! + SCI_SWAPMAINANCHORCARET = 2607, + + //! + SCI_SETFONTQUALITY = 2611, + + //! + SCI_GETFONTQUALITY = 2612, + + //! + SCI_SETFIRSTVISIBLELINE = 2613, + + //! + SCI_SETMULTIPASTE = 2614, + + //! + SCI_GETMULTIPASTE = 2615, + + //! + SCI_GETTAG = 2616, + + //! + SCI_CHANGELEXERSTATE = 2617, + + //! + SCI_CONTRACTEDFOLDNEXT = 2618, + + //! + SCI_VERTICALCENTRECARET = 2619, + + //! + SCI_MOVESELECTEDLINESUP = 2620, + + //! + SCI_MOVESELECTEDLINESDOWN = 2621, + + //! + SCI_SETIDENTIFIER = 2622, + + //! + SCI_GETIDENTIFIER = 2623, + + //! This message sets the width of an RGBA image specified by a future + //! call to SCI_MARKERDEFINERGBAIMAGE or SCI_REGISTERRGBAIMAGE. + //! + //! \sa SCI_RGBAIMAGESETHEIGHT, SCI_MARKERDEFINERGBAIMAGE, + //! SCI_REGISTERRGBAIMAGE. + SCI_RGBAIMAGESETWIDTH = 2624, + + //! This message sets the height of an RGBA image specified by a future + //! call to SCI_MARKERDEFINERGBAIMAGE or SCI_REGISTERRGBAIMAGE. + //! + //! \sa SCI_RGBAIMAGESETWIDTH, SCI_MARKERDEFINERGBAIMAGE, + //! SCI_REGISTERRGBAIMAGE. + SCI_RGBAIMAGESETHEIGHT = 2625, + + //! This message sets the symbol used to draw one of the 32 markers to + //! an RGBA image. RGBA images use the SC_MARK_RGBAIMAGE marker + //! symbol. + //! \a wParam is the number of the marker. + //! \a lParam is a pointer to a QImage instance. Note that in other + //! ports of Scintilla this is a pointer to raw RGBA image data. + //! + //! \sa SCI_MARKERDEFINE, SCI_MARKERDEFINEPIXMAP + SCI_MARKERDEFINERGBAIMAGE = 2626, + + //! This message takes a copy of an image and registers it so that it + //! can be refered to by a unique integer identifier. + //! \a wParam is the image's identifier. + //! \a lParam is a pointer to a QImage instance. Note that in other + //! ports of Scintilla this is a pointer to raw RGBA image data. + //! + //! \sa SCI_CLEARREGISTEREDIMAGES, SCI_REGISTERIMAGE + SCI_REGISTERRGBAIMAGE = 2627, + + //! + SCI_SCROLLTOSTART = 2628, + + //! + SCI_SCROLLTOEND = 2629, + + //! + SCI_SETTECHNOLOGY = 2630, + + //! + SCI_GETTECHNOLOGY = 2631, + + //! + SCI_CREATELOADER = 2632, + + //! + SCI_COUNTCHARACTERS = 2633, + + //! + SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR = 2634, + + //! + SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR = 2635, + + //! + SCI_FINDINDICATORSHOW = 2640, + + //! + SCI_FINDINDICATORFLASH = 2641, + + //! + SCI_FINDINDICATORHIDE = 2642, + + //! + SCI_GETRANGEPOINTER = 2643, + + //! + SCI_GETGAPPOSITION = 2644, + + //! + SCI_DELETERANGE = 2645, + + //! + SCI_GETWORDCHARS = 2646, + + //! + SCI_GETWHITESPACECHARS = 2647, + + //! + SCI_SETPUNCTUATIONCHARS = 2648, + + //! + SCI_GETPUNCTUATIONCHARS = 2649, + + //! + SCI_GETSELECTIONEMPTY = 2650, + + //! + SCI_RGBAIMAGESETSCALE = 2651, + + //! + SCI_VCHOMEDISPLAY = 2652, + + //! + SCI_GETCARETLINEVISIBLEALWAYS = 2654, + + //! + SCI_SETCARETLINEVISIBLEALWAYS = 2655, + + //! + SCI_VCHOMEDISPLAYEXTEND = 2653, + + //! + SCI_AUTOCSETORDER = 2660, + + //! + SCI_AUTOCGETORDER = 2661, + + //! + SCI_FOLDALL = 2662, + + //! + SCI_SETAUTOMATICFOLD = 2663, + + //! + SCI_GETAUTOMATICFOLD = 2664, + + //! + SCI_SETREPRESENTATION = 2665, + + //! + SCI_GETREPRESENTATION = 2666, + + //! + SCI_CLEARREPRESENTATION = 2667, + + //! + SCI_SETMOUSESELECTIONRECTANGULARSWITCH = 2668, + + //! + SCI_GETMOUSESELECTIONRECTANGULARSWITCH = 2669, + + //! + SCI_POSITIONRELATIVE = 2670, + + //! + SCI_STARTRECORD = 3001, + + //! + SCI_STOPRECORD = 3002, + + //! This message sets the number of the lexer to use for syntax + //! styling. + //! \a wParam is the number of the lexer and is one of the SCLEX_* + //! values. + SCI_SETLEXER = 4001, + + //! This message returns the number of the lexer being used for syntax + //! styling. + SCI_GETLEXER = 4002, + + //! + SCI_COLOURISE = 4003, + + //! + SCI_SETPROPERTY = 4004, + + //! + SCI_SETKEYWORDS = 4005, + + //! This message sets the name of the lexer to use for syntax styling. + //! \a wParam is unused. + //! \a lParam is the name of the lexer. + SCI_SETLEXERLANGUAGE = 4006, + + //! + SCI_LOADLEXERLIBRARY = 4007, + + //! + SCI_GETPROPERTY = 4008, + + //! + SCI_GETPROPERTYEXPANDED = 4009, + + //! + SCI_GETPROPERTYINT = 4010, + + //! + SCI_GETSTYLEBITSNEEDED = 4011, + + //! + SCI_GETLEXERLANGUAGE = 4012, + + //! + SCI_PRIVATELEXERCALL = 4013, + + //! + SCI_PROPERTYNAMES = 4014, + + //! + SCI_PROPERTYTYPE = 4015, + + //! + SCI_DESCRIBEPROPERTY = 4016, + + //! + SCI_DESCRIBEKEYWORDSETS = 4017, + }; + + enum + { + SC_ALPHA_TRANSPARENT = 0, + SC_ALPHA_OPAQUE = 255, + SC_ALPHA_NOALPHA = 256 + }; + + enum + { + SC_CARETSTICKY_OFF = 0, + SC_CARETSTICKY_ON = 1, + SC_CARETSTICKY_WHITESPACE = 2 + }; + + enum + { + SC_EFF_QUALITY_MASK = 0x0f, + SC_EFF_QUALITY_DEFAULT = 0, + SC_EFF_QUALITY_NON_ANTIALIASED = 1, + SC_EFF_QUALITY_ANTIALIASED = 2, + SC_EFF_QUALITY_LCD_OPTIMIZED = 3 + }; + + enum + { + SC_MARGINOPTION_NONE = 0x00, + SC_MARGINOPTION_SUBLINESELECT = 0x01 + }; + + enum + { + SC_MULTIPASTE_ONCE = 0, + SC_MULTIPASTE_EACH = 1 + }; + + enum + { + SC_TYPE_BOOLEAN = 0, + SC_TYPE_INTEGER = 1, + SC_TYPE_STRING = 2 + }; + + enum + { + SC_UPDATE_CONTENT = 0x01, + SC_UPDATE_SELECTION = 0x02, + SC_UPDATE_V_SCROLL = 0x04, + SC_UPDATE_H_SCROLL = 0x08 + }; + + enum + { + SC_WRAPVISUALFLAG_NONE = 0x0000, + SC_WRAPVISUALFLAG_END = 0x0001, + SC_WRAPVISUALFLAG_START = 0x0002, + SC_WRAPVISUALFLAG_MARGIN = 0x0004 + }; + + enum + { + SC_WRAPVISUALFLAGLOC_DEFAULT = 0x0000, + SC_WRAPVISUALFLAGLOC_END_BY_TEXT = 0x0001, + SC_WRAPVISUALFLAGLOC_START_BY_TEXT = 0x0002 + }; + + //! This enum defines the different selection modes. + //! + //! \sa SCI_GETSELECTIONMODE, SCI_SETSELECTIONMODE + enum + { + SC_SEL_STREAM = 0, + SC_SEL_RECTANGLE = 1, + SC_SEL_LINES = 2, + SC_SEL_THIN = 3 + }; + + enum + { + SCVS_NONE = 0, + SCVS_RECTANGULARSELECTION = 1, + SCVS_USERACCESSIBLE = 2 + }; + + enum + { + SCWS_INVISIBLE = 0, + SCWS_VISIBLEALWAYS = 1, + SCWS_VISIBLEAFTERINDENT = 2 + }; + + enum + { + SC_EOL_CRLF = 0, + SC_EOL_CR = 1, + SC_EOL_LF = 2 + }; + + enum + { + SC_CP_DBCS = 1, + SC_CP_UTF8 = 65001 + }; + + //! This enum defines the different marker symbols. + //! + //! \sa SCI_MARKERDEFINE + enum + { + //! A circle. + SC_MARK_CIRCLE = 0, + + //! A rectangle. + SC_MARK_ROUNDRECT = 1, + + //! A triangle pointing to the right. + SC_MARK_ARROW = 2, + + //! A smaller rectangle. + SC_MARK_SMALLRECT = 3, + + //! An arrow pointing to the right. + SC_MARK_SHORTARROW = 4, + + //! An invisible marker that allows code to track the movement + //! of lines. + SC_MARK_EMPTY = 5, + + //! A triangle pointing down. + SC_MARK_ARROWDOWN = 6, + + //! A drawn minus sign. + SC_MARK_MINUS = 7, + + //! A drawn plus sign. + SC_MARK_PLUS = 8, + + //! A vertical line drawn in the background colour. + SC_MARK_VLINE = 9, + + //! A bottom left corner drawn in the background colour. + SC_MARK_LCORNER = 10, + + //! A vertical line with a centre right horizontal line drawn + //! in the background colour. + SC_MARK_TCORNER = 11, + + //! A drawn plus sign in a box. + SC_MARK_BOXPLUS = 12, + + //! A drawn plus sign in a connected box. + SC_MARK_BOXPLUSCONNECTED = 13, + + //! A drawn minus sign in a box. + SC_MARK_BOXMINUS = 14, + + //! A drawn minus sign in a connected box. + SC_MARK_BOXMINUSCONNECTED = 15, + + //! A rounded bottom left corner drawn in the background + //! colour. + SC_MARK_LCORNERCURVE = 16, + + //! A vertical line with a centre right curved line drawn in + //! the background colour. + SC_MARK_TCORNERCURVE = 17, + + //! A drawn plus sign in a circle. + SC_MARK_CIRCLEPLUS = 18, + + //! A drawn plus sign in a connected box. + SC_MARK_CIRCLEPLUSCONNECTED = 19, + + //! A drawn minus sign in a circle. + SC_MARK_CIRCLEMINUS = 20, + + //! A drawn minus sign in a connected circle. + SC_MARK_CIRCLEMINUSCONNECTED = 21, + + //! No symbol is drawn but the line is drawn with the same background + //! color as the marker's. + SC_MARK_BACKGROUND = 22, + + //! Three drawn dots. + SC_MARK_DOTDOTDOT = 23, + + //! Three drawn arrows pointing right. + SC_MARK_ARROWS = 24, + + //! An XPM format pixmap. + SC_MARK_PIXMAP = 25, + + //! A full rectangle (ie. the margin background) using the marker's + //! background color. + SC_MARK_FULLRECT = 26, + + //! A left rectangle (ie. the left part of the margin background) using + //! the marker's background color. + SC_MARK_LEFTRECT = 27, + + //! The value is available for plugins to use. + SC_MARK_AVAILABLE = 28, + + //! The line is underlined using the marker's background color. + SC_MARK_UNDERLINE = 29, + + //! A RGBA format image. + SC_MARK_RGBAIMAGE = 30, + + //! Characters can be used as symbols by adding this to the ASCII value + //! of the character. + SC_MARK_CHARACTER = 10000 + }; + + enum + { + SC_MARKNUM_FOLDEREND = 25, + SC_MARKNUM_FOLDEROPENMID = 26, + SC_MARKNUM_FOLDERMIDTAIL = 27, + SC_MARKNUM_FOLDERTAIL = 28, + SC_MARKNUM_FOLDERSUB = 29, + SC_MARKNUM_FOLDER = 30, + SC_MARKNUM_FOLDEROPEN = 31, + SC_MASK_FOLDERS = 0xfe000000 + }; + + //! This enum defines what can be displayed in a margin. + //! + //! \sa SCI_GETMARGINTYPEN, SCI_SETMARGINTYPEN + enum + { + //! The margin can display symbols. Note that all margins can display + //! symbols. + SC_MARGIN_SYMBOL = 0, + + //! The margin will display line numbers. + SC_MARGIN_NUMBER = 1, + + //! The margin's background color will be set to the default background + //! color. + SC_MARGIN_BACK = 2, + + //! The margin's background color will be set to the default foreground + //! color. + SC_MARGIN_FORE = 3, + + //! The margin will display text. + SC_MARGIN_TEXT = 4, + + //! The margin will display right justified text. + SC_MARGIN_RTEXT = 5 + }; + + enum + { + STYLE_DEFAULT = 32, + STYLE_LINENUMBER = 33, + STYLE_BRACELIGHT = 34, + STYLE_BRACEBAD = 35, + STYLE_CONTROLCHAR = 36, + STYLE_INDENTGUIDE = 37, + STYLE_CALLTIP = 38, + STYLE_LASTPREDEFINED = 39, + STYLE_MAX = 255 + }; + + enum + { + SC_CHARSET_ANSI = 0, + SC_CHARSET_DEFAULT = 1, + SC_CHARSET_BALTIC = 186, + SC_CHARSET_CHINESEBIG5 = 136, + SC_CHARSET_EASTEUROPE = 238, + SC_CHARSET_GB2312 = 134, + SC_CHARSET_GREEK = 161, + SC_CHARSET_HANGUL = 129, + SC_CHARSET_MAC = 77, + SC_CHARSET_OEM = 255, + SC_CHARSET_RUSSIAN = 204, + SC_CHARSET_SHIFTJIS = 128, + SC_CHARSET_SYMBOL = 2, + SC_CHARSET_TURKISH = 162, + SC_CHARSET_JOHAB = 130, + SC_CHARSET_HEBREW = 177, + SC_CHARSET_ARABIC = 178, + SC_CHARSET_VIETNAMESE = 163, + SC_CHARSET_THAI = 222, + SC_CHARSET_8859_15 = 1000 + }; + + enum + { + SC_CASE_MIXED = 0, + SC_CASE_UPPER = 1, + SC_CASE_LOWER = 2 + }; + + //! This enum defines the different indentation guide views. + //! + //! \sa SCI_GETINDENTATIONGUIDES, SCI_SETINDENTATIONGUIDES + enum + { + //! No indentation guides are shown. + SC_IV_NONE = 0, + + //! Indentation guides are shown inside real indentation white space. + SC_IV_REAL = 1, + + //! Indentation guides are shown beyond the actual indentation up to + //! the level of the next non-empty line. If the previous non-empty + //! line was a fold header then indentation guides are shown for one + //! more level of indent than that line. This setting is good for + //! Python. + SC_IV_LOOKFORWARD = 2, + + //! Indentation guides are shown beyond the actual indentation up to + //! the level of the next non-empty line or previous non-empty line + //! whichever is the greater. This setting is good for most languages. + SC_IV_LOOKBOTH = 3 + }; + + enum + { + INDIC_PLAIN = 0, + INDIC_SQUIGGLE = 1, + INDIC_TT = 2, + INDIC_DIAGONAL = 3, + INDIC_STRIKE = 4, + INDIC_HIDDEN = 5, + INDIC_BOX = 6, + INDIC_ROUNDBOX = 7, + INDIC_STRAIGHTBOX = 8, + INDIC_DASH = 9, + INDIC_DOTS = 10, + INDIC_SQUIGGLELOW = 11, + INDIC_DOTBOX = 12, + INDIC_SQUIGGLEPIXMAP = 13, + INDIC_COMPOSITIONTHICK = 14, + + INDIC_CONTAINER = 8, + INDIC_MAX = 31, + INDIC0_MASK = 0x20, + INDIC1_MASK = 0x40, + INDIC2_MASK = 0x80, + INDICS_MASK = 0xe0 + }; + + enum + { + SC_PRINT_NORMAL = 0, + SC_PRINT_INVERTLIGHT = 1, + SC_PRINT_BLACKONWHITE = 2, + SC_PRINT_COLOURONWHITE = 3, + SC_PRINT_COLOURONWHITEDEFAULTBG = 4 + }; + + enum + { + SCFIND_WHOLEWORD = 2, + SCFIND_MATCHCASE = 4, + SCFIND_WORDSTART = 0x00100000, + SCFIND_REGEXP = 0x00200000, + SCFIND_POSIX = 0x00400000 + }; + + enum + { + SC_FOLDLEVELBASE = 0x00400, + SC_FOLDLEVELWHITEFLAG = 0x01000, + SC_FOLDLEVELHEADERFLAG = 0x02000, + SC_FOLDLEVELNUMBERMASK = 0x00fff + }; + + enum + { + SC_FOLDFLAG_LINEBEFORE_EXPANDED = 0x0002, + SC_FOLDFLAG_LINEBEFORE_CONTRACTED = 0x0004, + SC_FOLDFLAG_LINEAFTER_EXPANDED = 0x0008, + SC_FOLDFLAG_LINEAFTER_CONTRACTED = 0x0010, + SC_FOLDFLAG_LEVELNUMBERS = 0x0040 + }; + + enum + { + SC_TIME_FOREVER = 10000000 + }; + + enum + { + SC_WRAP_NONE = 0, + SC_WRAP_WORD = 1, + SC_WRAP_CHAR = 2 + }; + + enum + { + SC_WRAPINDENT_FIXED = 0, + SC_WRAPINDENT_SAME = 1, + SC_WRAPINDENT_INDENT = 2 + }; + + enum + { + SC_CACHE_NONE = 0, + SC_CACHE_CARET = 1, + SC_CACHE_PAGE = 2, + SC_CACHE_DOCUMENT = 3 + }; + + enum + { + ANNOTATION_HIDDEN = 0, + ANNOTATION_STANDARD = 1, + ANNOTATION_BOXED = 2 + }; + + enum + { + EDGE_NONE = 0, + EDGE_LINE = 1, + EDGE_BACKGROUND = 2 + }; + + enum + { + SC_CURSORNORMAL = -1, + SC_CURSORARROW = 2, + SC_CURSORWAIT = 4, + SC_CURSORREVERSEARROW = 7 + }; + + enum + { + UNDO_MAY_COALESCE = 1 + }; + + enum + { + VISIBLE_SLOP = 0x01, + VISIBLE_STRICT = 0x04 + }; + + enum + { + CARET_SLOP = 0x01, + CARET_STRICT = 0x04, + CARET_JUMPS = 0x10, + CARET_EVEN = 0x08 + }; + + enum + { + CARETSTYLE_INVISIBLE = 0, + CARETSTYLE_LINE = 1, + CARETSTYLE_BLOCK = 2 + }; + + enum + { + SC_MOD_INSERTTEXT = 0x1, + SC_MOD_DELETETEXT = 0x2, + SC_MOD_CHANGESTYLE = 0x4, + SC_MOD_CHANGEFOLD = 0x8, + SC_PERFORMED_USER = 0x10, + SC_PERFORMED_UNDO = 0x20, + SC_PERFORMED_REDO = 0x40, + SC_MULTISTEPUNDOREDO = 0x80, + SC_LASTSTEPINUNDOREDO = 0x100, + SC_MOD_CHANGEMARKER = 0x200, + SC_MOD_BEFOREINSERT = 0x400, + SC_MOD_BEFOREDELETE = 0x800, + SC_MULTILINEUNDOREDO = 0x1000, + SC_STARTACTION = 0x2000, + SC_MOD_CHANGEINDICATOR = 0x4000, + SC_MOD_CHANGELINESTATE = 0x8000, + SC_MOD_CHANGEMARGIN = 0x10000, + SC_MOD_CHANGEANNOTATION = 0x20000, + SC_MOD_CONTAINER = 0x40000, + SC_MOD_LEXERSTATE = 0x80000, + SC_MODEVENTMASKALL = 0xfffff + }; + + enum + { + SCK_DOWN = 300, + SCK_UP = 301, + SCK_LEFT = 302, + SCK_RIGHT = 303, + SCK_HOME = 304, + SCK_END = 305, + SCK_PRIOR = 306, + SCK_NEXT = 307, + SCK_DELETE = 308, + SCK_INSERT = 309, + SCK_ESCAPE = 7, + SCK_BACK = 8, + SCK_TAB = 9, + SCK_RETURN = 13, + SCK_ADD = 310, + SCK_SUBTRACT = 311, + SCK_DIVIDE = 312, + SCK_WIN = 313, + SCK_RWIN = 314, + SCK_MENU = 315 + }; + + //! This enum defines the different modifier keys. + enum + { + //! No modifier key. + SCMOD_NORM = 0, + + //! Shift key. + SCMOD_SHIFT = 1, + + //! Control key (the Command key on OS/X, the Ctrl key on other + //! platforms). + SCMOD_CTRL = 2, + + //! Alt key. + SCMOD_ALT = 4, + + //! This is the same as SCMOD_META on all platforms. + SCMOD_SUPER = 8, + + //! Meta key (the Ctrl key on OS/X, the Windows key on other + //! platforms). + SCMOD_META = 16 + }; + + //! This enum defines the different language lexers. + //! + //! \sa SCI_GETLEXER, SCI_SETLEXER + enum + { + //! No lexer is selected and the SCN_STYLENEEDED signal is emitted so + //! that the application can style the text as needed. This is the + //! default. + SCLEX_CONTAINER = 0, + + //! Select the null lexer that does no syntax styling. + SCLEX_NULL = 1, + + //! Select the Python lexer. + SCLEX_PYTHON = 2, + + //! Select the C++ lexer. + SCLEX_CPP = 3, + + //! Select the HTML lexer. + SCLEX_HTML = 4, + + //! Select the XML lexer. + SCLEX_XML = 5, + + //! Select the Perl lexer. + SCLEX_PERL = 6, + + //! Select the SQL lexer. + SCLEX_SQL = 7, + + //! Select the Visual Basic lexer. + SCLEX_VB = 8, + + //! Select the lexer for properties style files. + SCLEX_PROPERTIES = 9, + + //! Select the lexer for error list style files. + SCLEX_ERRORLIST = 10, + + //! Select the Makefile lexer. + SCLEX_MAKEFILE = 11, + + //! Select the Windows batch file lexer. + SCLEX_BATCH = 12, + + //! Select the LaTex lexer. + SCLEX_LATEX = 14, + + //! Select the Lua lexer. + SCLEX_LUA = 15, + + //! Select the lexer for diff output. + SCLEX_DIFF = 16, + + //! Select the lexer for Apache configuration files. + SCLEX_CONF = 17, + + //! Select the Pascal lexer. + SCLEX_PASCAL = 18, + + //! Select the Avenue lexer. + SCLEX_AVE = 19, + + //! Select the Ada lexer. + SCLEX_ADA = 20, + + //! Select the Lisp lexer. + SCLEX_LISP = 21, + + //! Select the Ruby lexer. + SCLEX_RUBY = 22, + + //! Select the Eiffel lexer. + SCLEX_EIFFEL = 23, + + //! Select the Eiffel lexer folding at keywords. + SCLEX_EIFFELKW = 24, + + //! Select the Tcl lexer. + SCLEX_TCL = 25, + + //! Select the lexer for nnCron files. + SCLEX_NNCRONTAB = 26, + + //! Select the Bullant lexer. + SCLEX_BULLANT = 27, + + //! Select the VBScript lexer. + SCLEX_VBSCRIPT = 28, + + //! Select the ASP lexer. + SCLEX_ASP = SCLEX_HTML, + + //! Select the PHP lexer. + SCLEX_PHP = SCLEX_HTML, + + //! Select the Baan lexer. + SCLEX_BAAN = 31, + + //! Select the Matlab lexer. + SCLEX_MATLAB = 32, + + //! Select the Scriptol lexer. + SCLEX_SCRIPTOL = 33, + + //! Select the assembler lexer. + SCLEX_ASM = 34, + + //! Select the C++ lexer with case insensitive keywords. + SCLEX_CPPNOCASE = 35, + + //! Select the FORTRAN lexer. + SCLEX_FORTRAN = 36, + + //! Select the FORTRAN77 lexer. + SCLEX_F77 = 37, + + //! Select the CSS lexer. + SCLEX_CSS = 38, + + //! Select the POV lexer. + SCLEX_POV = 39, + + //! Select the Basser Lout typesetting language lexer. + SCLEX_LOUT = 40, + + //! Select the EScript lexer. + SCLEX_ESCRIPT = 41, + + //! Select the PostScript lexer. + SCLEX_PS = 42, + + //! Select the NSIS lexer. + SCLEX_NSIS = 43, + + //! Select the MMIX assembly language lexer. + SCLEX_MMIXAL = 44, + + //! Select the Clarion lexer. + SCLEX_CLW = 45, + + //! Select the Clarion lexer with case insensitive keywords. + SCLEX_CLWNOCASE = 46, + + //! Select the MPT text log file lexer. + SCLEX_LOT = 47, + + //! Select the YAML lexer. + SCLEX_YAML = 48, + + //! Select the TeX lexer. + SCLEX_TEX = 49, + + //! Select the Metapost lexer. + SCLEX_METAPOST = 50, + + //! Select the PowerBASIC lexer. + SCLEX_POWERBASIC = 51, + + //! Select the Forth lexer. + SCLEX_FORTH = 52, + + //! Select the Erlang lexer. + SCLEX_ERLANG = 53, + + //! Select the Octave lexer. + SCLEX_OCTAVE = 54, + + //! Select the MS SQL lexer. + SCLEX_MSSQL = 55, + + //! Select the Verilog lexer. + SCLEX_VERILOG = 56, + + //! Select the KIX-Scripts lexer. + SCLEX_KIX = 57, + + //! Select the Gui4Cli lexer. + SCLEX_GUI4CLI = 58, + + //! Select the Specman E lexer. + SCLEX_SPECMAN = 59, + + //! Select the AutoIt3 lexer. + SCLEX_AU3 = 60, + + //! Select the APDL lexer. + SCLEX_APDL = 61, + + //! Select the Bash lexer. + SCLEX_BASH = 62, + + //! Select the ASN.1 lexer. + SCLEX_ASN1 = 63, + + //! Select the VHDL lexer. + SCLEX_VHDL = 64, + + //! Select the Caml lexer. + SCLEX_CAML = 65, + + //! Select the BlitzBasic lexer. + SCLEX_BLITZBASIC = 66, + + //! Select the PureBasic lexer. + SCLEX_PUREBASIC = 67, + + //! Select the Haskell lexer. + SCLEX_HASKELL = 68, + + //! Select the PHPScript lexer. + SCLEX_PHPSCRIPT = 69, + + //! Select the TADS3 lexer. + SCLEX_TADS3 = 70, + + //! Select the REBOL lexer. + SCLEX_REBOL = 71, + + //! Select the Smalltalk lexer. + SCLEX_SMALLTALK = 72, + + //! Select the FlagShip lexer. + SCLEX_FLAGSHIP = 73, + + //! Select the Csound lexer. + SCLEX_CSOUND = 74, + + //! Select the FreeBasic lexer. + SCLEX_FREEBASIC = 75, + + //! Select the InnoSetup lexer. + SCLEX_INNOSETUP = 76, + + //! Select the Opal lexer. + SCLEX_OPAL = 77, + + //! Select the Spice lexer. + SCLEX_SPICE = 78, + + //! Select the D lexer. + SCLEX_D = 79, + + //! Select the CMake lexer. + SCLEX_CMAKE = 80, + + //! Select the GAP lexer. + SCLEX_GAP = 81, + + //! Select the PLM lexer. + SCLEX_PLM = 82, + + //! Select the Progress lexer. + SCLEX_PROGRESS = 83, + + //! Select the Abaqus lexer. + SCLEX_ABAQUS = 84, + + //! Select the Asymptote lexer. + SCLEX_ASYMPTOTE = 85, + + //! Select the R lexer. + SCLEX_R = 86, + + //! Select the MagikSF lexer. + SCLEX_MAGIK = 87, + + //! Select the PowerShell lexer. + SCLEX_POWERSHELL = 88, + + //! Select the MySQL lexer. + SCLEX_MYSQL = 89, + + //! Select the gettext .po file lexer. + SCLEX_PO = 90, + + //! Select the TAL lexer. + SCLEX_TAL = 91, + + //! Select the COBOL lexer. + SCLEX_COBOL = 92, + + //! Select the TACL lexer. + SCLEX_TACL = 93, + + //! Select the Sorcus lexer. + SCLEX_SORCUS = 94, + + //! Select the PowerPro lexer. + SCLEX_POWERPRO = 95, + + //! Select the Nimrod lexer. + SCLEX_NIMROD = 96, + + //! Select the SML lexer. + SCLEX_SML = 97, + + //! Select the Markdown lexer. + SCLEX_MARKDOWN = 98, + + //! Select the txt2tags lexer. + SCLEX_TXT2TAGS = 99, + + //! Select the 68000 assembler lexer. + SCLEX_A68K = 100, + + //! Select the Modula 3 lexer. + SCLEX_MODULA = 101, + + //! Select the CoffeeScript lexer. + SCLEX_COFFEESCRIPT = 102, + + //! Select the Take Command lexer. + SCLEX_TCMD = 103, + + //! Select the AviSynth lexer. + SCLEX_AVS = 104, + + //! Select the ECL lexer. + SCLEX_ECL = 105, + + //! Select the OScript lexer. + SCLEX_OSCRIPT = 106, + + //! Select the Visual Prolog lexer. + SCLEX_VISUALPROLOG = 107, + + //! Select the Literal Haskell lexer. + SCLEX_LITERATEHASKELL = 108, + + //! Select the Structured Text lexer. + SCLEX_STTXT = 109, + + //! Select the KVIrc lexer. + SCLEX_KVIRC = 110, + + //! Select the Rust lexer. + SCLEX_RUST = 111, + }; + + enum + { + SC_WEIGHT_NORMAL = 400, + SC_WEIGHT_SEMIBOLD = 600, + SC_WEIGHT_BOLD = 700, + }; + + enum + { + SC_TECHNOLOGY_DEFAULT = 0, + SC_TECHNOLOGY_DIRECTWRITE = 1, + }; + + enum + { + SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE = 0, + SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE = 1, + }; + + enum + { + SC_FONT_SIZE_MULTIPLIER = 100, + }; + + enum + { + SC_FOLDACTION_CONTRACT = 0, + SC_FOLDACTION_EXPAND = 1, + SC_FOLDACTION_TOGGLE = 2, + }; + + enum + { + SC_AUTOMATICFOLD_SHOW = 0x0001, + SC_AUTOMATICFOLD_CLICK = 0x0002, + SC_AUTOMATICFOLD_CHANGE = 0x0004, + }; + + enum + { + SC_ORDER_PRESORTED = 0, + SC_ORDER_PERFORMSORT = 1, + SC_ORDER_CUSTOM = 2, + }; + + //! Construct an empty QsciScintillaBase with parent \a parent, name \a + //! name, and widget flags \a f. + QsciScintillaBase(QWidget *parent = 0, const char *name = 0, WFlags f = 0); + + //! Destroys the QsciScintillaBase instance. + virtual ~QsciScintillaBase(); + + //! Returns a pointer to a QsciScintillaBase instance, or 0 if there isn't + //! one. This can be used by the higher level API to send messages that + //! aren't associated with a particular instance. + static QsciScintillaBase *pool(); + + //! Send the Scintilla message \a msg with the optional parameters \a + //! wParam and \a lParam. + long SendScintilla(unsigned int msg, unsigned long wParam = 0, + long lParam = 0) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, + void *lParam) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, + const char *lParam) const; + + //! \overload + long SendScintilla(unsigned int msg, const char *lParam) const; + + //! \overload + long SendScintilla(unsigned int msg, const char *wParam, + const char *lParam) const; + + //! \overload + long SendScintilla(unsigned int msg, long wParam) const; + + //! \overload + long SendScintilla(unsigned int msg, int wParam) const; + + //! \overload + long SendScintilla(unsigned int msg, long cpMin, long cpMax, + char *lpstrText) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, + const QColor &col) const; + + //! \overload + long SendScintilla(unsigned int msg, const QColor &col) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, QPainter *hdc, + const QRect &rc, long cpMin, long cpMax) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, + const QPixmap &lParam) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, + const QImage &lParam) const; + + //! Send the Scintilla message \a msg and return a pointer result. + void *SendScintillaPtrResult(unsigned int msg) const; + + //! Returns the horizontal scrollbar widget. + QScrollBar *horizontalScrollBar() const; + + //! Returns the vertical scrollbar widget. + QScrollBar *verticalScrollBar() const; + + //! Returns the viewport widget. This is the widget that actually contains + //! the text. + QWidget *viewport() const; + + //! Re-implemented to filter certain events. + virtual bool eventFilter(QObject *o, QEvent *e); + + //! \internal + static int commandKey(int qt_key, int &modifiers); + +signals: + //! This signal is emitted when text is selected or de-selected. + //! \a yes is true if text has been selected and false if text has been + //! deselected. + void QSCN_SELCHANGED(bool yes); + + //! This signal is emitted when the user cancels an auto-completion list. + //! + //! \sa SCN_AUTOCSELECTION() + void SCN_AUTOCCANCELLED(); + + //! This signal is emitted when the user deletes a character when an + //! auto-completion list is active. + void SCN_AUTOCCHARDELETED(); + + //! This signal is emitted when the user selects an item in an + //! auto-completion list. It is emitted before the selection is inserted. + //! The insertion can be cancelled by sending an SCI_AUTOCANCEL message + //! from a connected slot. + //! \a selection is the text of the selection. + //! \a position is the start position of the word being completed. + //! + //! \sa SCN_AUTOCCANCELLED() + void SCN_AUTOCSELECTION(const char *selection, int position); + + //! This signal is emitted when the document has changed for any reason. + void SCEN_CHANGE(); + + //! This signal ir emitted when the user clicks on a calltip. + //! \a direction is 1 if the user clicked on the up arrow, 2 if the user + //! clicked on the down arrow, and 0 if the user clicked elsewhere. + void SCN_CALLTIPCLICK(int direction); + + //! This signal is emitted whenever the user enters an ordinary character + //! into the text. + //! \a charadded is the character. It can be used to decide to display a + //! call tip or an auto-completion list. + void SCN_CHARADDED(int charadded); + + //! This signal is emitted when the user double clicks. + //! \a position is the position in the text where the click occured. + //! \a line is the number of the line in the text where the click occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user double clicked. + void SCN_DOUBLECLICK(int position, int line, int modifiers); + + //! + void SCN_DWELLEND(int, int, int); + + //! + void SCN_DWELLSTART(int, int, int); + + //! This signal is emitted when focus is received. + void SCN_FOCUSIN(); + + //! This signal is emitted when focus is lost. + void SCN_FOCUSOUT(); + + //! This signal is emitted when the user clicks on text in a style with the + //! hotspot attribute set. + //! \a position is the position in the text where the click occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user clicked. + void SCN_HOTSPOTCLICK(int position, int modifiers); + + //! This signal is emitted when the user double clicks on text in a style + //! with the hotspot attribute set. + //! \a position is the position in the text where the double click occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user double clicked. + void SCN_HOTSPOTDOUBLECLICK(int position, int modifiers); + + //! This signal is emitted when the user releases the mouse button on text + //! in a style with the hotspot attribute set. + //! \a position is the position in the text where the release occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user released the button. + void SCN_HOTSPOTRELEASECLICK(int position, int modifiers); + + //! This signal is emitted when the user clicks on text that has an + //! indicator. + //! \a position is the position in the text where the click occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user clicked. + void SCN_INDICATORCLICK(int position, int modifiers); + + //! This signal is emitted when the user releases the mouse button on text + //! that has an indicator. + //! \a position is the position in the text where the release occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user released. + void SCN_INDICATORRELEASE(int position, int modifiers); + + //! This signal is emitted when a recordable editor command has been + //! executed. + void SCN_MACRORECORD(unsigned int, unsigned long, void *); + + //! This signal is emitted when the user clicks on a sensitive margin. + //! \a position is the position of the start of the line against which the + //! user clicked. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user clicked. + //! \a margin is the number of the margin the user clicked in: 0, 1 or 2. + //! + //! \sa SCI_GETMARGINSENSITIVEN, SCI_SETMARGINSENSITIVEN + void SCN_MARGINCLICK(int position, int modifiers, int margin); + + //! + void SCN_MODIFIED(int, int, const char *, int, int, int, int, int, int, int); + + //! This signal is emitted when the user attempts to modify read-only + //! text. + void SCN_MODIFYATTEMPTRO(); + + //! + void SCN_NEEDSHOWN(int, int); + + //! This signal is emitted when painting has been completed. It is useful + //! to trigger some other change but to have the paint be done first to + //! appear more reponsive to the user. + void SCN_PAINTED(); + + //! This signal is emitted when the current state of the text no longer + //! corresponds to the state of the text at the save point. + //! + //! \sa SCI_SETSAVEPOINT, SCN_SAVEPOINTREACHED() + void SCN_SAVEPOINTLEFT(); + + //! This signal is emitted when the current state of the text corresponds + //! to the state of the text at the save point. This allows feedback to be + //! given to the user as to whether the text has been modified since it was + //! last saved. + //! + //! \sa SCI_SETSAVEPOINT, SCN_SAVEPOINTLEFT() + void SCN_SAVEPOINTREACHED(); + + //! This signal is emitted when a range of text needs to be syntax styled. + //! The range is from the value returned by the SCI_GETENDSTYLED message + //! and \a position. It is only emitted if the currently selected lexer is + //! SCLEX_CONTAINER. + //! + //! \sa SCI_COLOURISE, SCI_GETENDSTYLED + void SCN_STYLENEEDED(int position); + + //! This signal is emitted when either the text or styling of the text has + //! changed or the selection range or scroll position has changed. + //! \a updated contains the set of SC_UPDATE_* flags describing the changes + //! since the signal was last emitted. + void SCN_UPDATEUI(int updated); + + //! + void SCN_USERLISTSELECTION(const char *, int); + + //! + void SCN_ZOOM(); + +protected: + + //! Re-implemented to handle the context menu. + virtual void contextMenuEvent(QContextMenuEvent *e); + + //! Re-implemented to handle drag enters. + virtual void dragEnterEvent(QDragEnterEvent *e); + + //! Re-implemented to handle drag leaves. + virtual void dragLeaveEvent(QDragLeaveEvent *e); + + //! Re-implemented to handle drag moves. + virtual void dragMoveEvent(QDragMoveEvent *e); + + //! Re-implemented to handle drops. + virtual void dropEvent(QDropEvent *e); + + //! Re-implemented to tell Scintilla it has the focus. + virtual void focusInEvent(QFocusEvent *e); + + //! Re-implemented to tell Scintilla it has lost the focus. + virtual void focusOutEvent(QFocusEvent *e); + + //! Re-implemented to allow tabs to be entered as text. + virtual bool focusNextPrevChild(bool next); + + //! Re-implemented to handle key presses. + virtual void keyPressEvent(QKeyEvent *e); + + + //! Re-implemented to handle mouse double-clicks. + virtual void mouseDoubleClickEvent(QMouseEvent *e); + + //! Re-implemented to handle mouse moves. + virtual void mouseMoveEvent(QMouseEvent *e); + + //! Re-implemented to handle mouse presses. + virtual void mousePressEvent(QMouseEvent *e); + + //! Re-implemented to handle mouse releases. + virtual void mouseReleaseEvent(QMouseEvent *e); + + //! Re-implemented to paint the viewport. + virtual void paintEvent(QPaintEvent *e); + + //! Re-implemented to handle resizes. + virtual void resizeEvent(QResizeEvent *e); + + + //! \internal This helps to work around some Scintilla bugs. + void setScrollBars(); + + //! \internal Qt3 portability. + typedef QCString ScintillaBytes; + +#define ScintillaBytesConstData(b) (b).operator const char *() + + + //! \internal Convert a QString to encoded bytes. + ScintillaBytes textAsBytes(const QString &text) const; + + //! \internal Convert encoded bytes to a QString. + QString bytesAsText(const char *bytes) const; + +private slots: + void handleTimer(); + void handleVSb(int value); + void handleHSb(int value); + void handleSelection(); + +private: + // This is needed to allow QsciScintillaQt to emit this class's signals. + friend class QsciScintillaQt; + + QsciScintillaQt *sci; + QPoint triple_click_at; + QTimer triple_click; + QScrollBar *vsb; + QScrollBar *hsb; + QWidget *txtarea; + + + QsciScintillaBase(const QsciScintillaBase &); + QsciScintillaBase &operator=(const QsciScintillaBase &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscistyle.h b/Qt3/Qsci/qscistyle.h new file mode 100644 index 0000000..078c04e --- /dev/null +++ b/Qt3/Qsci/qscistyle.h @@ -0,0 +1,202 @@ +// This module defines interface to the QsciStyle class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCISTYLE_H +#define QSCISTYLE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include +#include + +#include + + +class QsciScintillaBase; + + +//! \brief The QsciStyle class encapsulates all the attributes of a style. +//! +//! Each character of a document has an associated style which determines how +//! the character is displayed, e.g. its font and color. A style is identified +//! by a number. Lexers define styles for each of the language's features so +//! that they are displayed differently. Some style numbers have hard-coded +//! meanings, e.g. the style used for call tips. +class QSCINTILLA_EXPORT QsciStyle +{ +public: + //! This enum defines the different ways the displayed case of the text can + //! be changed. + enum TextCase { + //! The text is displayed as its original case. + OriginalCase = 0, + + //! The text is displayed as upper case. + UpperCase = 1, + + //! The text is displayed as lower case. + LowerCase = 2 + }; + + //! Constructs a QsciStyle instance for style number \a style. If \a style + //! is negative then a new style number is automatically allocated. + QsciStyle(int style = -1); + + //! Constructs a QsciStyle instance for style number \a style. If \a style + //! is negative then a new style number is automatically allocated. The + //! styles description, color, paper color, font and end-of-line fill are + //! set to \a description, \a color, \a paper, \a font and \a eolFill + //! respectively. + QsciStyle(int style, const QString &description, const QColor &color, + const QColor &paper, const QFont &font, bool eolFill = false); + + //! \internal Apply the style to a particular editor. + void apply(QsciScintillaBase *sci) const; + + //! Returns the number of the style. + int style() const {return style_nr;} + + //! The style's description is set to \a description. + //! + //! \sa description() + void setDescription(const QString &description) {style_description = description;} + + //! Returns the style's description. + //! + //! \sa setDescription() + QString description() const {return style_description;} + + //! The style's foreground color is set to \a color. The default is taken + //! from the application's default palette. + //! + //! \sa color() + void setColor(const QColor &color); + + //! Returns the style's foreground color. + //! + //! \sa setColor() + QColor color() const {return style_color;} + + //! The style's background color is set to \a paper. The default is taken + //! from the application's default palette. + //! + //! \sa paper() + void setPaper(const QColor &paper); + + //! Returns the style's background color. + //! + //! \sa setPaper() + QColor paper() const {return style_paper;} + + //! The style's font is set to \a font. The default is the application's + //! default font. + //! + //! \sa font() + void setFont(const QFont &font); + + //! Returns the style's font. + //! + //! \sa setFont() + QFont font() const {return style_font;} + + //! The style's end-of-line fill is set to \a fill. The default is false. + //! + //! \sa eolFill() + void setEolFill(bool fill); + + //! Returns the style's end-of-line fill. + //! + //! \sa setEolFill() + bool eolFill() const {return style_eol_fill;} + + //! The style's text case is set to \a text_case. The default is + //! OriginalCase. + //! + //! \sa textCase() + void setTextCase(TextCase text_case); + + //! Returns the style's text case. + //! + //! \sa setTextCase() + TextCase textCase() const {return style_case;} + + //! The style's visibility is set to \a visible. The default is true. + //! + //! \sa visible() + void setVisible(bool visible); + + //! Returns the style's visibility. + //! + //! \sa setVisible() + bool visible() const {return style_visible;} + + //! The style's changeability is set to \a changeable. The default is + //! true. + //! + //! \sa changeable() + void setChangeable(bool changeable); + + //! Returns the style's changeability. + //! + //! \sa setChangeable() + bool changeable() const {return style_changeable;} + + //! The style's sensitivity to mouse clicks is set to \a hotspot. The + //! default is false. + //! + //! \sa hotspot() + void setHotspot(bool hotspot); + + //! Returns the style's sensitivity to mouse clicks. + //! + //! \sa setHotspot() + bool hotspot() const {return style_hotspot;} + + //! Refresh the style settings. + void refresh(); + +private: + int style_nr; + QString style_description; + QColor style_color; + QColor style_paper; + QFont style_font; + bool style_eol_fill; + TextCase style_case; + bool style_visible; + bool style_changeable; + bool style_hotspot; + + void init(int style); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/Qsci/qscistyledtext.h b/Qt3/Qsci/qscistyledtext.h new file mode 100644 index 0000000..a66867a --- /dev/null +++ b/Qt3/Qsci/qscistyledtext.h @@ -0,0 +1,77 @@ +// This module defines interface to the QsciStyledText class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCISTYLEDTEXT_H +#define QSCISTYLEDTEXT_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include + + +class QsciScintillaBase; +class QsciStyle; + + +//! \brief The QsciStyledText class is a container for a piece of text and the +//! style used to display the text. +class QSCINTILLA_EXPORT QsciStyledText +{ +public: + //! Constructs a QsciStyledText instance for text \a text and style number + //! \a style. + QsciStyledText(const QString &text, int style); + + //! Constructs a QsciStyledText instance for text \a text and style \a + //! style. + QsciStyledText(const QString &text, const QsciStyle &style); + + //! \internal A default constructor needed by Qt v3's QValueList. + QsciStyledText() {} + + //! \internal Apply the style to a particular editor. + void apply(QsciScintillaBase *sci) const; + + //! Returns a reference to the text. + const QString &text() const {return styled_text;} + + //! Returns the number of the style. + int style() const; + +private: + QString styled_text; + int style_nr; + const QsciStyle *explicit_style; +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt3/SciClasses.cpp b/Qt3/SciClasses.cpp new file mode 100644 index 0000000..aa69e82 --- /dev/null +++ b/Qt3/SciClasses.cpp @@ -0,0 +1,151 @@ +// The implementation of various Qt version independent classes used by the +// rest of the port. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "SciNamespace.h" +#include "SciClasses.h" + +#include +#include + +#include "ScintillaQt.h" +#include "ListBoxQt.h" + + +// Create a call tip. +QsciSciCallTip::QsciSciCallTip(QWidget *parent, QsciScintillaQt *sci_) + : QWidget(parent, 0, Qt::WType_Popup|Qt::WStyle_Customize|Qt::WStyle_NoBorder), + sci(sci_) +{ + // Ensure that the main window keeps the focus (and the caret flashing) + // when this is displayed. + setFocusProxy(parent); +} + + +// Destroy a call tip. +QsciSciCallTip::~QsciSciCallTip() +{ + // Ensure that the main window doesn't receive a focus out event when + // this is destroyed. + setFocusProxy(0); +} + + +// Paint a call tip. +void QsciSciCallTip::paintEvent(QPaintEvent *) +{ + QSCI_SCI_NAMESPACE(Surface) *surfaceWindow = QSCI_SCI_NAMESPACE(Surface)::Allocate(SC_TECHNOLOGY_DEFAULT); + + if (!surfaceWindow) + return; + + QPainter p(this); + + surfaceWindow->Init(&p); + surfaceWindow->SetUnicodeMode(sci->CodePage() == SC_CP_UTF8); + sci->ct.PaintCT(surfaceWindow); + + delete surfaceWindow; +} + + +// Handle a mouse press in a call tip. +void QsciSciCallTip::mousePressEvent(QMouseEvent *e) +{ + QSCI_SCI_NAMESPACE(Point) pt; + + pt.x = e->x(); + pt.y = e->y(); + + sci->ct.MouseClick(pt); + sci->CallTipClick(); + + update(); +} + + + +// Add an item and associated command to the popup and enable it if required. +void QsciSciPopup::addItem(const QString &label, int cmd, bool enabled, + QsciScintillaQt *sci_) +{ + insertItem(label, this, SLOT(on_triggered(int)), 0, cmd); + setItemEnabled(cmd, enabled); + sci = sci_; +} + + +// Add a separator to the popup. +void QsciSciPopup::addSeparator() +{ + insertSeparator(); +} + + +// A slot to handle a menu action being triggered. +void QsciSciPopup::on_triggered(int cmd) +{ + sci->Command(cmd); +} + + + +QsciSciListBox::QsciSciListBox(QWidget *parent, QsciListBoxQt *lbx_) + : QListBox(parent,0,Qt::WType_Popup|Qt::WStyle_Customize|Qt::WStyle_NoBorder|Qt::WStaticContents), lbx(lbx_) +{ + setFocusProxy(parent); + + setFrameShape(StyledPanel); + setFrameShadow(Plain); + + connect(this,SIGNAL(doubleClicked(QListBoxItem *)), + SLOT(handleSelection())); + + connect(this,SIGNAL(highlighted(QListBoxItem *)), + SLOT(ensureCurrentVisible())); +} + + +int QsciSciListBox::find(const QString &prefix) +{ + return index(findItem(prefix, Qt::CaseSensitive|Qt::BeginsWith)); +} + + + +QsciSciListBox::~QsciSciListBox() +{ + // Ensure that the main widget doesn't get a focus out event when this is + // destroyed. + setFocusProxy(0); +} + + +void QsciSciListBox::handleSelection() +{ + if (lbx && lbx->cb_action) + lbx->cb_action(lbx->cb_data); +} diff --git a/Qt3/SciClasses.h b/Qt3/SciClasses.h new file mode 100644 index 0000000..7584302 --- /dev/null +++ b/Qt3/SciClasses.h @@ -0,0 +1,139 @@ +// The definition of various Qt version independent classes used by the rest of +// the port. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef _SCICLASSES_H +#define _SCICLASSES_H + +#include +#include + +#include + + +QT_BEGIN_NAMESPACE +class QMouseEvent; +class QPaintEvent; +QT_END_NAMESPACE + +class QsciScintillaQt; +class QsciListBoxQt; + + +// A simple QWidget sub-class to implement a call tip. This is not put into +// the Scintilla namespace because of moc's problems with preprocessor macros. +class QsciSciCallTip : public QWidget +{ + Q_OBJECT + +public: + QsciSciCallTip(QWidget *parent, QsciScintillaQt *sci_); + ~QsciSciCallTip(); + +protected: + void paintEvent(QPaintEvent *e); + void mousePressEvent(QMouseEvent *e); + +private: + QsciScintillaQt *sci; +}; + + +// A popup menu where options correspond to a numeric command. This is not put +// into the Scintilla namespace because of moc's problems with preprocessor +// macros. + +#include + +class QsciSciPopup : public QPopupMenu +{ + Q_OBJECT + +public: + void addItem(const QString &label, int cmd, bool enabled, + QsciScintillaQt *sci_); + void addSeparator(); + +private slots: + void on_triggered(int cmd); + +private: + QsciScintillaQt *sci; +}; + + + +// This sub-class of QListBox is needed to provide slots from which we can call +// QsciListBox's double-click callback (and you thought this was a C++ +// program). This is not put into the Scintilla namespace because of moc's +// problems with preprocessor macros. + + +#include + +class QsciSciListBox : public QListBox +{ + Q_OBJECT + +public: + QsciSciListBox(QWidget *parent, QsciListBoxQt *lbx_); + virtual ~QsciSciListBox(); + + void addItem(const QString &txt) + { + insertItem(txt); + } + + void addItemPixmap(const QPixmap &pm, const QString &txt) + { + insertItem(pm, txt); + } + + int currentRow() + { + return currentItem(); + } + + void setCurrentRow(int n) + { + setSelected(n, true); + } + + int find(const QString &prefix); + + void sortItems() + { + sort(); + } + +private slots: + void handleSelection(); + +private: + QsciListBoxQt *lbx; +}; + + +#endif diff --git a/Qt3/SciNamespace.h b/Qt3/SciNamespace.h new file mode 100644 index 0000000..83c80f5 --- /dev/null +++ b/Qt3/SciNamespace.h @@ -0,0 +1,40 @@ +// Support for building the Scintilla code in the Scintilla namespace using the +// -DSCI_NAMESPACE compiler flag. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef _SCINAMESPACE_H +#define _SCINAMESPACE_H + +#ifdef SCI_NAMESPACE +#define QSCI_SCI_NAMESPACE(name) Scintilla::name +#define QSCI_BEGIN_SCI_NAMESPACE namespace Scintilla { +#define QSCI_END_SCI_NAMESPACE }; +#else +#define QSCI_SCI_NAMESPACE(name) name +#define QSCI_BEGIN_SCI_NAMESPACE +#define QSCI_END_SCI_NAMESPACE +#endif + +#endif diff --git a/Qt3/ScintillaQt.cpp b/Qt3/ScintillaQt.cpp new file mode 100644 index 0000000..ef5dca8 --- /dev/null +++ b/Qt3/ScintillaQt.cpp @@ -0,0 +1,627 @@ +// The implementation of the Qt specific subclass of ScintillaBase. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include + +#include +#include +#include +#include +#include + +#include +#include + +#include "Qsci/qsciscintillabase.h" +#include "ScintillaQt.h" +#include "SciClasses.h" + + +// We want to use the Scintilla notification names as Qt signal names. +#undef SCEN_CHANGE +#undef SCN_AUTOCCANCELLED +#undef SCN_AUTOCCHARDELETED +#undef SCN_AUTOCSELECTION +#undef SCN_CALLTIPCLICK +#undef SCN_CHARADDED +#undef SCN_DOUBLECLICK +#undef SCN_DWELLEND +#undef SCN_DWELLSTART +#undef SCN_FOCUSIN +#undef SCN_FOCUSOUT +#undef SCN_HOTSPOTCLICK +#undef SCN_HOTSPOTDOUBLECLICK +#undef SCN_HOTSPOTRELEASECLICK +#undef SCN_INDICATORCLICK +#undef SCN_INDICATORRELEASE +#undef SCN_MACRORECORD +#undef SCN_MARGINCLICK +#undef SCN_MODIFIED +#undef SCN_MODIFYATTEMPTRO +#undef SCN_NEEDSHOWN +#undef SCN_PAINTED +#undef SCN_SAVEPOINTLEFT +#undef SCN_SAVEPOINTREACHED +#undef SCN_STYLENEEDED +#undef SCN_UPDATEUI +#undef SCN_USERLISTSELECTION +#undef SCN_ZOOM + +enum +{ + SCEN_CHANGE = 768, + SCN_AUTOCCANCELLED = 2025, + SCN_AUTOCCHARDELETED = 2026, + SCN_AUTOCSELECTION = 2022, + SCN_CALLTIPCLICK = 2021, + SCN_CHARADDED = 2001, + SCN_DOUBLECLICK = 2006, + SCN_DWELLEND = 2017, + SCN_DWELLSTART = 2016, + SCN_FOCUSIN = 2028, + SCN_FOCUSOUT = 2029, + SCN_HOTSPOTCLICK = 2019, + SCN_HOTSPOTDOUBLECLICK = 2020, + SCN_HOTSPOTRELEASECLICK = 2027, + SCN_INDICATORCLICK = 2023, + SCN_INDICATORRELEASE = 2024, + SCN_MACRORECORD = 2009, + SCN_MARGINCLICK = 2010, + SCN_MODIFIED = 2008, + SCN_MODIFYATTEMPTRO = 2004, + SCN_NEEDSHOWN = 2011, + SCN_PAINTED = 2013, + SCN_SAVEPOINTLEFT = 2003, + SCN_SAVEPOINTREACHED = 2002, + SCN_STYLENEEDED = 2000, + SCN_UPDATEUI = 2007, + SCN_USERLISTSELECTION = 2014, + SCN_ZOOM = 2018 +}; + + +// The ctor. +QsciScintillaQt::QsciScintillaQt(QsciScintillaBase *qsb_) + : capturedMouse(false), qsb(qsb_) +{ + wMain = qsb->viewport(); + + // We aren't a QObject so we use the API class to do QObject related things + // for us. + qsb->connect(&qtimer, SIGNAL(timeout()), SLOT(handleTimer())); + + Initialise(); +} + + +// The dtor. +QsciScintillaQt::~QsciScintillaQt() +{ + Finalise(); +} + + +// Initialise the instance. +void QsciScintillaQt::Initialise() +{ + SetTicking(true); +} + + +// Tidy up the instance. +void QsciScintillaQt::Finalise() +{ + SetTicking(false); + ScintillaBase::Finalise(); +} + + +// Start a drag. +void QsciScintillaQt::StartDrag() +{ + inDragDrop = ddDragging; + + QDragObject *dobj = new QTextDrag(textRange(&drag), qsb->viewport()); + + // Remove the dragged text if it was a move to another widget or + // application. + if (dobj->drag() && dobj->target() != qsb->viewport()) + ClearSelection(); + + SetDragPosition(QSCI_SCI_NAMESPACE(SelectionPosition)()); + inDragDrop = ddNone; +} + + +// Re-implement to trap certain messages. +sptr_t QsciScintillaQt::WndProc(unsigned int iMessage, uptr_t wParam, + sptr_t lParam) +{ + switch (iMessage) + { + case SCI_GETDIRECTFUNCTION: + return reinterpret_cast(DirectFunction); + + case SCI_GETDIRECTPOINTER: + return reinterpret_cast(this); + } + + return ScintillaBase::WndProc(iMessage, wParam, lParam); +} + + +// Windows nonsense. +sptr_t QsciScintillaQt::DefWndProc(unsigned int, uptr_t, sptr_t) +{ + return 0; +} + + +// Manage the timer. +void QsciScintillaQt::SetTicking(bool on) +{ + if (timer.ticking != on) + { + timer.ticking = on; + + if (timer.ticking) + qtimer.start(timer.tickSize); + else + qtimer.stop(); + } + + timer.ticksToWait = caret.period; +} + + +// Grab or release the mouse (and keyboard). +void QsciScintillaQt::SetMouseCapture(bool on) +{ + if (mouseDownCaptures) + if (on) + qsb->viewport()->grabMouse(); + else + qsb->viewport()->releaseMouse(); + + capturedMouse = on; +} + + +// Return true if the mouse/keyboard are currently grabbed. +bool QsciScintillaQt::HaveMouseCapture() +{ + return capturedMouse; +} + + +// Set the position of the vertical scrollbar. +void QsciScintillaQt::SetVerticalScrollPos() +{ + qsb->verticalScrollBar()->setValue(topLine); +} + + +// Set the position of the horizontal scrollbar. +void QsciScintillaQt::SetHorizontalScrollPos() +{ + qsb->horizontalScrollBar()->setValue(xOffset); +} + + +// Set the extent of the vertical and horizontal scrollbars and return true if +// the view needs re-drawing. +bool QsciScintillaQt::ModifyScrollBars(int nMax,int nPage) +{ + qsb->verticalScrollBar()->setMinValue(0); + qsb->verticalScrollBar()->setMaxValue(nMax - nPage + 1); + qsb->verticalScrollBar()->setPageStep(nPage); + qsb->verticalScrollBar()->setLineStep(1); + + qsb->horizontalScrollBar()->setMinValue(0); + qsb->horizontalScrollBar()->setMaxValue(scrollWidth); + qsb->horizontalScrollBar()->setPageStep(scrollWidth / 10); + + return true; +} + + +// Called after SCI_SETWRAPMODE and SCI_SETHSCROLLBAR. +void QsciScintillaQt::ReconfigureScrollBars() +{ + // Hide or show the scrollbars if needed. + bool hsb = (horizontalScrollBarVisible && !Wrapping()); + + if (hsb) + qsb->horizontalScrollBar()->show(); + else + qsb->horizontalScrollBar()->hide(); + + if (verticalScrollBarVisible) + qsb->verticalScrollBar()->show(); + else + qsb->verticalScrollBar()->hide(); +} + + +// Notify interested parties of any change in the document. +void QsciScintillaQt::NotifyChange() +{ + emit qsb->SCEN_CHANGE(); +} + + +// Notify interested parties of various events. This is the main mapping +// between Scintilla notifications and Qt signals. +void QsciScintillaQt::NotifyParent(QSCI_SCI_NAMESPACE(SCNotification) scn) +{ + switch (scn.nmhdr.code) + { + case SCN_CALLTIPCLICK: + emit qsb->SCN_CALLTIPCLICK(scn.position); + break; + + case SCN_AUTOCCANCELLED: + emit qsb->SCN_AUTOCCANCELLED(); + break; + + case SCN_AUTOCCHARDELETED: + emit qsb->SCN_AUTOCCHARDELETED(); + break; + + case SCN_AUTOCSELECTION: + emit qsb->SCN_AUTOCSELECTION(scn.text, scn.lParam); + break; + + case SCN_CHARADDED: + emit qsb->SCN_CHARADDED(scn.ch); + break; + + case SCN_DOUBLECLICK: + emit qsb->SCN_DOUBLECLICK(scn.position, scn.line, scn.modifiers); + break; + + case SCN_DWELLEND: + emit qsb->SCN_DWELLEND(scn.position, scn.x, scn.y); + break; + + case SCN_DWELLSTART: + emit qsb->SCN_DWELLSTART(scn.position, scn.x, scn.y); + break; + + case SCN_FOCUSIN: + emit qsb->SCN_FOCUSIN(); + break; + + case SCN_FOCUSOUT: + emit qsb->SCN_FOCUSOUT(); + break; + + case SCN_HOTSPOTCLICK: + emit qsb->SCN_HOTSPOTCLICK(scn.position, scn.modifiers); + break; + + case SCN_HOTSPOTDOUBLECLICK: + emit qsb->SCN_HOTSPOTDOUBLECLICK(scn.position, scn.modifiers); + break; + + case SCN_HOTSPOTRELEASECLICK: + emit qsb->SCN_HOTSPOTRELEASECLICK(scn.position, scn.modifiers); + break; + + case SCN_INDICATORCLICK: + emit qsb->SCN_INDICATORCLICK(scn.position, scn.modifiers); + break; + + case SCN_INDICATORRELEASE: + emit qsb->SCN_INDICATORRELEASE(scn.position, scn.modifiers); + break; + + case SCN_MACRORECORD: + emit qsb->SCN_MACRORECORD(scn.message, scn.wParam, + reinterpret_cast(scn.lParam)); + break; + + case SCN_MARGINCLICK: + emit qsb->SCN_MARGINCLICK(scn.position, scn.modifiers, scn.margin); + break; + + case SCN_MODIFIED: + { + char *text; + + // Give some protection to the Python bindings. + if (scn.text && (scn.modificationType & (SC_MOD_INSERTTEXT|SC_MOD_DELETETEXT) != 0)) + { + text = new char[scn.length + 1]; + memcpy(text, scn.text, scn.length); + text[scn.length] = '\0'; + } + else + { + text = 0; + } + + emit qsb->SCN_MODIFIED(scn.position, scn.modificationType, text, + scn.length, scn.linesAdded, scn.line, scn.foldLevelNow, + scn.foldLevelPrev, scn.token, scn.annotationLinesAdded); + + if (text) + delete[] text; + + break; + } + + case SCN_MODIFYATTEMPTRO: + emit qsb->SCN_MODIFYATTEMPTRO(); + break; + + case SCN_NEEDSHOWN: + emit qsb->SCN_NEEDSHOWN(scn.position, scn.length); + break; + + case SCN_PAINTED: + emit qsb->SCN_PAINTED(); + break; + + case SCN_SAVEPOINTLEFT: + emit qsb->SCN_SAVEPOINTLEFT(); + break; + + case SCN_SAVEPOINTREACHED: + emit qsb->SCN_SAVEPOINTREACHED(); + break; + + case SCN_STYLENEEDED: + emit qsb->SCN_STYLENEEDED(scn.position); + break; + + case SCN_UPDATEUI: + emit qsb->SCN_UPDATEUI(scn.updated); + break; + + case SCN_USERLISTSELECTION: + emit qsb->SCN_USERLISTSELECTION(scn.text, scn.wParam); + break; + + case SCN_ZOOM: + emit qsb->SCN_ZOOM(); + break; + + default: + qWarning("Unknown notification: %u", scn.nmhdr.code); + } +} + + + +// Convert a text range to a QString. +QString QsciScintillaQt::textRange( + const QSCI_SCI_NAMESPACE(SelectionText) *text) const +{ + const char *text_data = text->Data(); + + if (!text_data) + return QString(); + + if (IsUnicodeMode()) + return QString::fromUtf8(text_data); + + return QString::fromLatin1(text_data); +} + + + +// Copy the selected text to the clipboard. +void QsciScintillaQt::CopyToClipboard( + const QSCI_SCI_NAMESPACE(SelectionText) &selectedText) +{ + QApplication::clipboard()->setText(textRange(&selectedText)); +} + + +// Implement copy. +void QsciScintillaQt::Copy() +{ + if (!sel.Empty()) + { + QSCI_SCI_NAMESPACE(SelectionText) text; + + CopySelectionRange(&text); + CopyToClipboard(text); + } +} + + +// Implement pasting text. +void QsciScintillaQt::Paste() +{ + pasteFromClipboard(QClipboard::Clipboard); +} + + +// Paste text from either the clipboard or selection. +void QsciScintillaQt::pasteFromClipboard(QClipboard::Mode mode) +{ + int len; + const char *s; + bool rectangular; + + // This code is historical. We could support rectangular selections and + // not do the unnecessary UTF-8 conversions but we no longer actively + // support Qt v3. + QString str = QApplication::clipboard()->text(mode); + + if (str.isEmpty()) + return; + + QCString bytes; + + if (IsUnicodeMode()) + { + bytes = str.utf8(); + + len = bytes.length(); + s = bytes.data(); + } + else + { + s = str.latin1(); + len = (s ? qstrlen(s) : 0); + } + + rectangular = false; + + std::string dest = QSCI_SCI_NAMESPACE(Document)::TransformLineEnds(s, len, + pdoc->eolMode); + + QSCI_SCI_NAMESPACE(SelectionText) selText; + selText.Copy(dest, (IsUnicodeMode() ? SC_CP_UTF8 : 0), + vs.styles[STYLE_DEFAULT].characterSet, rectangular, false); + + QSCI_SCI_NAMESPACE(UndoGroup) ug(pdoc); + + ClearSelection(); + + QSCI_SCI_NAMESPACE(SelectionPosition) start = sel.IsRectangular() + ? sel.Rectangular().Start() : sel.Range(sel.Main()).Start(); + + if (selText.rectangular) + PasteRectangular(start, selText.Data(), selText.Length()); + else + InsertPaste(start, selText.Data(), selText.Length()); + + NotifyChange(); + Redraw(); +} + + +// Create a call tip window. +void QsciScintillaQt::CreateCallTipWindow(QSCI_SCI_NAMESPACE(PRectangle) rc) +{ + if (!ct.wCallTip.Created()) + ct.wCallTip = ct.wDraw = new QsciSciCallTip(qsb, this); + + QsciSciCallTip *w = reinterpret_cast(ct.wCallTip.GetID()); + + w->resize(rc.right - rc.left, rc.bottom - rc.top); + ct.wCallTip.Show(); +} + + +// Add an item to the right button menu. +void QsciScintillaQt::AddToPopUp(const char *label, int cmd, bool enabled) +{ + QsciSciPopup *pm = static_cast(popup.GetID()); + + if (*label) + pm->addItem(qApp->translate("ContextMenu", label), cmd, enabled, this); + else + pm->addSeparator(); +} + + +// Claim the selection. +void QsciScintillaQt::ClaimSelection() +{ + bool isSel = !sel.Empty(); + + if (isSel) + { + QClipboard *cb = QApplication::clipboard(); + + // If we support X11 style selection then make it available now. + if (cb->supportsSelection()) + { + QSCI_SCI_NAMESPACE(SelectionText) text; + + CopySelectionRange(&text); + + if (text.Data()) + cb->setText(textRange(&text), QClipboard::Selection); + } + + primarySelection = true; + } + else + primarySelection = false; + + emit qsb->QSCN_SELCHANGED(isSel); +} + + +// Unclaim the selection. +void QsciScintillaQt::UnclaimSelection() +{ + if (primarySelection) + { + primarySelection = false; + qsb->viewport()->update(); + } +} + + +// Implemented to provide compatibility with the Windows version. +sptr_t QsciScintillaQt::DirectFunction(QsciScintillaQt *sciThis, unsigned int iMessage, + uptr_t wParam, sptr_t lParam) +{ + return sciThis->WndProc(iMessage,wParam,lParam); +} + + +// Draw the contents of the widget. +void QsciScintillaQt::paintEvent(QPaintEvent *e) +{ + QSCI_SCI_NAMESPACE(Surface) *sw = QSCI_SCI_NAMESPACE(Surface)::Allocate(SC_TECHNOLOGY_DEFAULT); + + if (!sw) + return; + + paintState = painting; + + const QRect &qr = e->rect(); + + rcPaint.left = qr.left(); + rcPaint.top = qr.top(); + rcPaint.right = qr.right() + 1; + rcPaint.bottom = qr.bottom() + 1; + + QSCI_SCI_NAMESPACE(PRectangle) rcText = GetTextRectangle(); + paintingAllText = rcPaint.Contains(rcText); + + QPainter painter(qsb->viewport()); + + sw->Init(&painter); + sw->SetUnicodeMode(CodePage() == SC_CP_UTF8); + Paint(sw, rcPaint); + + delete sw; + + // If the painting area was insufficient to cover the new style or brace + // highlight positions then repaint the whole thing. + if (paintState == paintAbandoned) + qsb->viewport()->update(); + + paintState = notPainting; +} diff --git a/Qt3/ScintillaQt.h b/Qt3/ScintillaQt.h new file mode 100644 index 0000000..0082492 --- /dev/null +++ b/Qt3/ScintillaQt.h @@ -0,0 +1,134 @@ +// The definition of the Qt specific subclass of ScintillaBase. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef SCINTILLAQT_H +#define SCINTILLAQT_H + + +#include +#include + +#include + +#include "SciNamespace.h" + +// These are needed because Scintilla class header files don't manage their own +// dependencies properly. +#include +#include +#include +#include +#include +#include +#include "ILexer.h" +#include "Platform.h" +#include "Scintilla.h" +#include "SplitVector.h" +#include "Partitioning.h" +#include "CellBuffer.h" +#include "CharClassify.h" +#include "RunStyles.h" +#include "CaseFolder.h" +#include "Decoration.h" +#include "Document.h" +#include "Style.h" +#include "XPM.h" +#include "LineMarker.h" +#include "Indicator.h" +#include "ViewStyle.h" +#include "KeyMap.h" +#include "ContractionState.h" +#include "Selection.h" +#include "PositionCache.h" +#include "Editor.h" +#include "AutoComplete.h" +#include "CallTip.h" +#include "LexAccessor.h" +#include "Accessor.h" + +#include "ScintillaBase.h" + + +QT_BEGIN_NAMESPACE +class QPaintEvent; +class QDropEvent; +QT_END_NAMESPACE + +class QsciScintillaBase; +class QsciSciCallTip; +class QsciSciPopup; + + +// This is an internal class but it is referenced by a public class so it has +// to have a Qsci prefix rather than being put in the Scintilla namespace +// which would mean exposing the SCI_NAMESPACE mechanism). +class QsciScintillaQt : public QSCI_SCI_NAMESPACE(ScintillaBase) +{ + friend class QsciScintillaBase; + friend class QsciSciCallTip; + friend class QsciSciPopup; + +public: + QsciScintillaQt(QsciScintillaBase *qsb_); + virtual ~QsciScintillaQt(); + + virtual sptr_t WndProc(unsigned int iMessage, uptr_t wParam, + sptr_t lParam); + +private: + void Initialise(); + void Finalise(); + void StartDrag(); + sptr_t DefWndProc(unsigned int, uptr_t, sptr_t); + void SetTicking(bool); + void SetMouseCapture(bool on); + bool HaveMouseCapture(); + void SetVerticalScrollPos(); + void SetHorizontalScrollPos(); + bool ModifyScrollBars(int nMax, int nPage); + void ReconfigureScrollBars(); + void NotifyChange(); + void NotifyParent(QSCI_SCI_NAMESPACE(SCNotification) scn); + void CopyToClipboard( + const QSCI_SCI_NAMESPACE(SelectionText) &selectedText); + void Copy(); + void Paste(); + void CreateCallTipWindow(QSCI_SCI_NAMESPACE(PRectangle) rc); + void AddToPopUp(const char *label, int cmd = 0, bool enabled = true); + void ClaimSelection(); + void UnclaimSelection(); + static sptr_t DirectFunction(QsciScintillaQt *sci, unsigned int iMessage, + uptr_t wParam,sptr_t lParam); + + QString textRange(const QSCI_SCI_NAMESPACE(SelectionText) *text) const; + void paintEvent(QPaintEvent *e); + void pasteFromClipboard(QClipboard::Mode mode); + + bool capturedMouse; + QsciScintillaBase *qsb; + QTimer qtimer; +}; + +#endif diff --git a/Qt3/qsciabstractapis.cpp b/Qt3/qsciabstractapis.cpp new file mode 100644 index 0000000..200555b --- /dev/null +++ b/Qt3/qsciabstractapis.cpp @@ -0,0 +1,56 @@ +// This module implements the QsciAbstractAPIs class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qsciabstractapis.h" + +#include "Qsci/qscilexer.h" + + +// The ctor. +QsciAbstractAPIs::QsciAbstractAPIs(QsciLexer *lexer, const char *name) + : QObject(lexer, name), + lex(lexer) +{ + lexer->setAPIs(this); +} + + +// The dtor. +QsciAbstractAPIs::~QsciAbstractAPIs() +{ +} + + +// Return the lexer. +QsciLexer *QsciAbstractAPIs::lexer() const +{ + return lex; +} + + +// Called when the user has made a selection from the auto-completion list. +void QsciAbstractAPIs::autoCompletionSelected(const QString &selection) +{ +} diff --git a/Qt3/qsciapis.cpp b/Qt3/qsciapis.cpp new file mode 100644 index 0000000..3ea1502 --- /dev/null +++ b/Qt3/qsciapis.cpp @@ -0,0 +1,1021 @@ +// This module implements the QsciAPIs class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include + +#include "Qsci/qsciapis.h" + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "Qsci/qscilexer.h" + + + +// The version number of the prepared API information format. +const unsigned char PreparedDataFormatVersion = 0; + + +// This class contains prepared API information. +struct QsciAPIsPrepared +{ + // The word dictionary is a map of individual words and a list of positions + // each occurs in the sorted list of APIs. A position is a tuple of the + // index into the list of APIs and the index into the particular API. + QMap wdict; + + // The case dictionary maps the case insensitive words to the form in which + // they are to be used. It is only used if the language is case + // insensitive. + QMap cdict; + + // The Qt v3 QMap doesn't support lowerBound() so we keep a separate copy + // of the sorted keys and use a local implementation. + QStringList words; + + static QStringList::const_iterator lowerBound(const QStringList &list, + const QString &word); + + // The raw API information. + QStringList raw_apis; + + QStringList apiWords(int api_idx, const QStringList &wseps, + bool strip_image) const; + static QString apiBaseName(const QString &api); +}; + + +// Implement qLowerBound() for a QStringList for Qt v3. +QStringList::const_iterator QsciAPIsPrepared::lowerBound(const QStringList &list, const QString &word) +{ + // It would be nice to be able to do a binary search but random access of a + // QValueList is "slow" - it probably does a search from the start of the + // list. Therefore we just do a simple linear search and hope it is quick + // enough. If not we will have to implement a new data type. + QStringList::const_iterator it = list.begin(); + + while (it != list.end()) + { + if (word <= (*it)) + break; + + ++it; + } + + return it; +} + +// Return a particular API entry as a list of words. +QStringList QsciAPIsPrepared::apiWords(int api_idx, const QStringList &wseps, + bool strip_image) const +{ + QString base = apiBaseName(raw_apis[api_idx]); + + // Remove any embedded image reference if necessary. + if (strip_image) + { + int tail = base.find('?'); + + if (tail >= 0) + base.truncate(tail); + } + + if (wseps.isEmpty()) + return QStringList(base); + + return QStringList::split(wseps.first(), base); +} + + +// Return the name of an API function, ie. without the arguments. +QString QsciAPIsPrepared::apiBaseName(const QString &api) +{ + QString base = api; + int tail = base.find('('); + + if (tail >= 0) + base.truncate(tail); + + return base.simplifyWhiteSpace(); +} + + +// The user event type that signals that the worker thread has started. +const QEvent::Type WorkerStarted = static_cast(QEvent::User + 1012); + + +// The user event type that signals that the worker thread has finished. +const QEvent::Type WorkerFinished = static_cast(QEvent::User + 1013); + + +// The user event type that signals that the worker thread has aborted. +const QEvent::Type WorkerAborted = static_cast(QEvent::User + 1014); + + +// This class is the worker thread that post-processes the API set. +class QsciAPIsWorker : public QThread +{ +public: + QsciAPIsWorker(QsciAPIs *apis); + virtual ~QsciAPIsWorker(); + + virtual void run(); + + QsciAPIsPrepared *prepared; + +private: + QsciAPIs *proxy; + bool abort; +}; + + +// The worker thread ctor. +QsciAPIsWorker::QsciAPIsWorker(QsciAPIs *apis) + : proxy(apis), prepared(0), abort(false) +{ +} + + +// The worker thread dtor. +QsciAPIsWorker::~QsciAPIsWorker() +{ + // Tell the thread to stop. There is no need to bother with a mutex. + abort = true; + + // Wait for it to do so and hit it if it doesn't. + if (!wait(500)) + terminate(); + + if (prepared) + delete prepared; +} + + +// The worker thread entry point. +void QsciAPIsWorker::run() +{ + // Sanity check. + if (!prepared) + return; + + // Tell the main thread we have started. + QApplication::postEvent(proxy, new QEvent(WorkerStarted)); + + // Sort the full list. + prepared->raw_apis.sort(); + + QStringList wseps = proxy->lexer()->autoCompletionWordSeparators(); + bool cs = proxy->lexer()->caseSensitive(); + + // Split each entry into separate words but ignoring any arguments. + for (int a = 0; a < prepared->raw_apis.count(); ++a) + { + // Check to see if we should stop. + if (abort) + break; + + QStringList words = prepared->apiWords(a, wseps, true); + + for (int w = 0; w < words.count(); ++w) + { + const QString &word = words[w]; + + // Add the word's position to any existing list for this word. + QsciAPIs::WordIndexList wil = prepared->wdict[word]; + + // If the language is case insensitive and we haven't seen this + // word before then save it in the case dictionary. + if (!cs && wil.count() == 0) + prepared->cdict[word.upper()] = word; + + wil.append(QsciAPIs::WordIndex(a, w)); + prepared->wdict[word] = wil; + } + } + + if (cs) + prepared->words = prepared->wdict.keys(); + else + prepared->words = prepared->cdict.keys(); + + // Tell the main thread we have finished. + QApplication::postEvent(proxy, new QEvent(abort ? WorkerAborted : WorkerFinished)); +} + + +// The ctor. +QsciAPIs::QsciAPIs(QsciLexer *lexer, const char *name) + : QsciAbstractAPIs(lexer, name), + worker(0), origin_len(0) +{ + prep = new QsciAPIsPrepared; +} + + +// The dtor. +QsciAPIs::~QsciAPIs() +{ + deleteWorker(); + delete prep; +} + + +// Delete the worker thread if there is one. +void QsciAPIs::deleteWorker() +{ + if (worker) + { + delete worker; + worker = 0; + } +} + + +//! Handle termination events from the worker thread. +bool QsciAPIs::event(QEvent *e) +{ + switch (e->type()) + { + case WorkerStarted: + emit apiPreparationStarted(); + return true; + + case WorkerAborted: + deleteWorker(); + emit apiPreparationCancelled(); + return true; + + case WorkerFinished: + delete prep; + old_context.clear(); + + prep = worker->prepared; + worker->prepared = 0; + deleteWorker(); + + // Allow the raw API information to be modified. + apis = prep->raw_apis; + + emit apiPreparationFinished(); + + return true; + } + + return QObject::event(e); +} + + +// Clear the current raw API entries. +void QsciAPIs::clear() +{ + apis.clear(); +} + + +// Clear out all API information. +bool QsciAPIs::load(const QString &filename) +{ + QFile f(filename); + + if (!f.open(IO_ReadOnly)) + return false; + + QTextStream ts(&f); + + for (;;) + { + QString line = ts.readLine(); + + if (line.isEmpty()) + break; + + apis.append(line); + } + + return true; +} + + +// Add a single API entry. +void QsciAPIs::add(const QString &entry) +{ + apis.append(entry); +} + + +// Remove a single API entry. +void QsciAPIs::remove(const QString &entry) +{ + QStringList::iterator it = apis.find(entry); + + if (it != apis.end()) + apis.remove(it); +} + + +// Position the "origin" cursor into the API entries according to the user +// supplied context. +QStringList QsciAPIs::positionOrigin(const QStringList &context, QString &path) +{ + // Get the list of words and see if the context is the same as last time we + // were called. + QStringList new_context; + bool same_context = (old_context.count() > 0 && old_context.count() < context.count()); + + for (int i = 0; i < context.count(); ++i) + { + QString word = context[i]; + + if (!lexer()->caseSensitive()) + word = word.upper(); + + if (i < old_context.count() && old_context[i] != word) + same_context = false; + + new_context << word; + } + + // If the context has changed then reset the origin. + if (!same_context) + origin_len = 0; + + // If we have a current origin (ie. the user made a specific selection in + // the current context) then adjust the origin to include the last complete + // word as the user may have entered more parts of the name without using + // auto-completion. + if (origin_len > 0) + { + const QString wsep = lexer()->autoCompletionWordSeparators().first(); + + int start_new = old_context.count(); + int end_new = new_context.count() - 1; + + if (start_new == end_new) + { + path = old_context.join(wsep); + origin_len = path.length(); + } + else + { + QString fixed = *origin; + fixed.truncate(origin_len); + + path = fixed; + + while (start_new < end_new) + { + // Add this word to the current path. + path.append(wsep); + path.append(new_context[start_new]); + origin_len = path.length(); + + // Skip entries in the current origin that don't match the + // path. + while (origin != prep->raw_apis.end()) + { + // See if the current origin has come to an end. + if (!originStartsWith(fixed, wsep)) + origin = prep->raw_apis.end(); + else if (originStartsWith(path, wsep)) + break; + else + ++origin; + } + + if (origin == prep->raw_apis.end()) + break; + + ++start_new; + } + } + + // Terminate the path. + path.append(wsep); + + // If the new text wasn't recognised then reset the origin. + if (origin == prep->raw_apis.end()) + origin_len = 0; + } + + if (origin_len == 0) + path.truncate(0); + + // Save the "committed" context for next time. + old_context = new_context; + old_context.remove(old_context.fromLast()); + + return new_context; +} + + +// Return true if the origin starts with the given path. +bool QsciAPIs::originStartsWith(const QString &path, const QString &wsep) +{ + const QString &orig = *origin; + + if (!orig.startsWith(path)) + return false; + + // Check that the path corresponds to the end of a word, ie. that what + // follows in the origin is either a word separator or a (. + QString tail = orig.mid(path.length()); + + return (!tail.isEmpty() && (tail.startsWith(wsep) || tail.at(0) == '(')); +} + + +// Add auto-completion words to an existing list. +void QsciAPIs::updateAutoCompletionList(const QStringList &context, + QStringList &list) +{ + QString path; + QStringList new_context = positionOrigin(context, path); + + if (origin_len > 0) + { + const QString wsep = lexer()->autoCompletionWordSeparators().first(); + QStringList::const_iterator it = origin; + + unambiguous_context = path; + + while (it != prep->raw_apis.end()) + { + QString base = QsciAPIsPrepared::apiBaseName(*it); + + if (!base.startsWith(path)) + break; + + // Make sure we have something after the path. + if (base != path) + { + // Get the word we are interested in (ie. the one after the + // current origin in path). + QString w = QStringList::split(wsep, base.mid(origin_len + wsep.length())).first(); + + // Append the space, we know the origin is unambiguous. + w.append(' '); + + if (!list.contains(w)) + list << w; + } + + ++it; + } + } + else + { + // At the moment we assume we will add words from multiple contexts. + unambiguous_context.truncate(0); + + bool unambig = true; + QStringList with_context; + + if (new_context.last().isEmpty()) + lastCompleteWord(new_context[new_context.count() - 2], with_context, unambig); + else + lastPartialWord(new_context.last(), with_context, unambig); + + for (int i = 0; i < with_context.count(); ++i) + { + // Remove any unambigious context. + QString noc = with_context[i]; + + if (unambig) + { + int op = noc.find('('); + + if (op >= 0) + noc.truncate(op); + } + + list << noc; + } + } +} + + +// Get the index list for a particular word if there is one. +const QsciAPIs::WordIndexList *QsciAPIs::wordIndexOf(const QString &word) const +{ + QString csword; + + // Indirect through the case dictionary if the language isn't case + // sensitive. + if (lexer()->caseSensitive()) + csword = word; + else + { + csword = prep->cdict[word]; + + if (csword.isEmpty()) + return 0; + } + + // Get the possible API entries if any. + const WordIndexList *wl = &prep->wdict[csword]; + + if (wl->isEmpty()) + return 0; + + return wl; +} + + +// Add auto-completion words based on the last complete word entered. +void QsciAPIs::lastCompleteWord(const QString &word, QStringList &with_context, bool &unambig) +{ + // Get the possible API entries if any. + const WordIndexList *wl = wordIndexOf(word); + + if (wl) + addAPIEntries(*wl, true, with_context, unambig); +} + + +// Add auto-completion words based on the last partial word entered. +void QsciAPIs::lastPartialWord(const QString &word, QStringList &with_context, bool &unambig) +{ + if (lexer()->caseSensitive()) + { + QMap::const_iterator it; + QStringList::const_iterator wit = QsciAPIsPrepared::lowerBound(prep->words, word); + + if (wit == prep->words.end()) + it = prep->wdict.end(); + else + it = prep->wdict.find(*wit); + + while (it != prep->wdict.end()) + { + if (!it.key().startsWith(word)) + break; + + addAPIEntries(it.data(), false, with_context, unambig); + + ++it; + } + } + else + { + QMap::const_iterator it; + QStringList::const_iterator wit = QsciAPIsPrepared::lowerBound(prep->words, word); + + if (wit == prep->words.end()) + it = prep->cdict.end(); + else + it = prep->cdict.find(*wit); + + while (it != prep->cdict.end()) + { + if (!it.key().startsWith(word)) + break; + + addAPIEntries(prep->wdict[it.data()], false, with_context, unambig); + + ++it; + } + } +} + + +// Handle the selection of an entry in the auto-completion list. +void QsciAPIs::autoCompletionSelected(const QString &selection) +{ + // If the selection is an API (ie. it has a space separating the selected + // word and the optional origin) then remember the origin. + QStringList lst = QStringList::split(' ', selection); + + if (lst.count() != 2) + { + origin_len = 0; + return; + } + + const QString &path = lst[1]; + QString owords; + + if (path.isEmpty()) + owords = unambiguous_context; + else + { + // Check the parenthesis. + if (!path.startsWith("(") || !path.endsWith(")")) + { + origin_len = 0; + return; + } + + // Remove the parenthesis. + owords = path.mid(1, path.length() - 2); + } + + origin = QsciAPIsPrepared::lowerBound(prep->raw_apis, owords); + origin_len = owords.length(); +} + + +// Add auto-completion words for a particular word (defined by where it appears +// in the APIs) and depending on whether the word was complete (when it's +// actually the next word in the API entry that is of interest) or not. +void QsciAPIs::addAPIEntries(const WordIndexList &wl, bool complete, + QStringList &with_context, bool &unambig) +{ + QStringList wseps = lexer()->autoCompletionWordSeparators(); + + for (int w = 0; w < wl.count(); ++w) + { + const WordIndex &wi = wl[w]; + + QStringList api_words = prep->apiWords(wi.first, wseps, false); + + int idx = wi.second; + + if (complete) + { + // Skip if this is the last word. + if (++idx >= api_words.count()) + continue; + } + + QString api_word; + + if (idx == 0) + api_word = api_words[0] + ' '; + else + { + QStringList orgl; + + for (int i = 0; i < idx; ++i) + orgl.append(api_words[i]); + + QString org = orgl.join(wseps.first()); + + api_word = QString("%1 (%2)").arg(api_words[idx]).arg(org); + + // See if the origin has been used before. + if (unambig) + if (unambiguous_context.isEmpty()) + unambiguous_context = org; + else if (unambiguous_context != org) + { + unambiguous_context.truncate(0); + unambig = false; + } + } + + if (!with_context.contains(api_word)) + with_context.append(api_word); + } +} + + +// Return the call tip for a function. +QStringList QsciAPIs::callTips(const QStringList &context, int commas, + QsciScintilla::CallTipsStyle style, + QValueList &shifts) +{ + QString path; + QStringList new_context = positionOrigin(context, path); + QStringList wseps = lexer()->autoCompletionWordSeparators(); + QStringList cts; + + if (origin_len > 0) + { + QStringList::const_iterator it = origin; + QString prev; + + // Work out the length of the context. + const QString &wsep = wseps.first(); + QStringList strip = QStringList::split(wsep, path); + strip.remove(strip.fromLast()); + int ctstart = strip.join(wsep).length(); + + if (ctstart) + ctstart += wsep.length(); + + int shift; + + if (style == QsciScintilla::CallTipsContext) + { + shift = ctstart; + ctstart = 0; + } + else + shift = 0; + + // Make sure we only look at the functions we are interested in. + path.append('('); + + while (it != prep->raw_apis.end() && (*it).startsWith(path)) + { + QString w = (*it).mid(ctstart); + + if (w != prev && enoughCommas(w, commas)) + { + shifts << shift; + cts << w; + prev = w; + } + + ++it; + } + } + else + { + const QString &fname = new_context[new_context.count() - 2]; + + // Find everywhere the function name appears in the APIs. + const WordIndexList *wil = wordIndexOf(fname); + + if (wil) + for (int i = 0; i < wil->count(); ++i) + { + const WordIndex &wi = (*wil)[i]; + QStringList awords = prep->apiWords(wi.first, wseps, true); + + // Check the word is the function name and not part of any + // context. + if (wi.second != awords.count() - 1) + continue; + + const QString &api = prep->raw_apis[wi.first]; + + int tail = api.find('('); + + if (tail < 0) + continue; + + if (!enoughCommas(api, commas)) + continue; + + if (style == QsciScintilla::CallTipsNoContext) + { + shifts << 0; + cts << (fname + api.mid(tail)); + } + else + { + shifts << tail - fname.length(); + cts << api; + } + } + } + + return cts; +} + + +// Return true if a string has enough commas in the argument list. +bool QsciAPIs::enoughCommas(const QString &s, int commas) +{ + int end = s.find(')'); + + if (end < 0) + return false; + + QString w = s.left(end); + + return (w.contains(',') >= commas); +} + + +// Ensure the list is ready. +void QsciAPIs::prepare() +{ + // Handle the trivial case. + if (worker) + return; + + QsciAPIsPrepared *new_apis = new QsciAPIsPrepared; + new_apis->raw_apis = apis; + + worker = new QsciAPIsWorker(this); + worker->prepared = new_apis; + worker->start(); +} + + +// Cancel any current preparation. +void QsciAPIs::cancelPreparation() +{ + deleteWorker(); +} + + +// Check that a prepared API file exists. +bool QsciAPIs::isPrepared(const QString &filename) const +{ + QString pname = prepName(filename); + + if (pname.isEmpty()) + return false; + + QFileInfo fi(pname); + + return fi.exists(); +} + + +// Load the prepared API information. +bool QsciAPIs::loadPrepared(const QString &filename) +{ + QString pname = prepName(filename); + + if (pname.isEmpty()) + return false; + + // Read the prepared data and decompress it. + QFile pf(pname); + + if (!pf.open(IO_ReadOnly)) + return false; + + QByteArray cpdata = pf.readAll(); + + pf.close(); + + if (cpdata.count() == 0) + return false; + + QByteArray pdata = qUncompress(cpdata); + + // Extract the data. + QDataStream pds(pdata, IO_ReadOnly); + + unsigned char vers; + pds >> vers; + + if (vers > PreparedDataFormatVersion) + return false; + + char *lex_name; + pds >> lex_name; + + if (qstrcmp(lex_name, lexer()->lexer()) != 0) + { + delete[] lex_name; + return false; + } + + delete[] lex_name; + + prep->wdict.clear(); + pds >> prep->wdict; + + if (!lexer()->caseSensitive()) + { + // Build up the case dictionary. + prep->cdict.clear(); + + QMap::const_iterator it = prep->wdict.begin(); + + while (it != prep->wdict.end()) + { + prep->cdict[it.key().upper()] = it.key(); + + ++it; + } + + prep->words = prep->cdict.keys(); + } + else + prep->words = prep->wdict.keys(); + + prep->raw_apis.clear(); + pds >> prep->raw_apis; + + // Allow the raw API information to be modified. + apis = prep->raw_apis; + + return true; +} + + +// Save the prepared API information. +bool QsciAPIs::savePrepared(const QString &filename) const +{ + QString pname = prepName(filename, true); + + if (pname.isEmpty()) + return false; + + // Write the prepared data to a memory buffer. + QByteArray pdata; + QDataStream pds(pdata, IO_WriteOnly); + + // Use a serialisation format supported by Qt v3.0 and later. + pds.setVersion(4); + pds << PreparedDataFormatVersion; + pds << lexer()->lexer(); + pds << prep->wdict; + pds << prep->raw_apis; + + // Compress the data and write it. + QFile pf(pname); + + if (!pf.open(IO_WriteOnly|IO_Truncate)) + return false; + + if (pf.writeBlock(qCompress(pdata)) < 0) + { + pf.close(); + return false; + } + + pf.close(); + return true; +} + + +// Return the name of the default prepared API file. +QString QsciAPIs::defaultPreparedName() const +{ + return prepName(QString()); +} + + +// Return the name of a prepared API file. +QString QsciAPIs::prepName(const QString &filename, bool mkpath) const +{ + // Handle the tivial case. + if (!filename.isEmpty()) + return filename; + + QString pdname; + char *qsci = getenv("QSCIDIR"); + + if (qsci) + pdname = qsci; + else + { + static const char *qsci_dir = ".qsci"; + + QDir pd = QDir::home(); + + if (mkpath && !pd.exists(qsci_dir) && !pd.mkdir(qsci_dir)) + return QString(); + + pdname = pd.filePath(qsci_dir); + } + + return QString("%1/%2.pap").arg(pdname).arg(lexer()->lexer()); +} + + +// Return installed API files. +QStringList QsciAPIs::installedAPIFiles() const +{ + const char *qtdir = getenv("QTDIR"); + + if (!qtdir) + return QStringList(); + + QDir apidir = QDir(QString("%1/qsci/api/%2").arg(qtdir).arg(lexer()->lexer())); + QStringList filenames; + + const QFileInfoList *flist = apidir.entryInfoList("*.api", QDir::Files, QDir::IgnoreCase); + + if (flist) + { + QPtrListIterator it(*flist); + QFileInfo *fi; + + while ((fi = it.current()) != 0) + { + filenames << fi->absFilePath(); + ++it; + } + } + + return filenames; +} diff --git a/Qt3/qscicommand.cpp b/Qt3/qscicommand.cpp new file mode 100644 index 0000000..fb5d4bb --- /dev/null +++ b/Qt3/qscicommand.cpp @@ -0,0 +1,148 @@ +// This module implements the QsciCommand class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscicommand.h" + +#include +#include + +#include "Qsci/qsciscintilla.h" +#include "Qsci/qsciscintillabase.h" + + +static int convert(int key); + + +// The ctor. +QsciCommand::QsciCommand(QsciScintilla *qs, QsciCommand::Command cmd, int key, + int altkey, const char *desc) + : qsCmd(qs), scicmd(cmd), qkey(key), qaltkey(altkey), descCmd(desc) +{ + scikey = convert(qkey); + + if (scikey) + qsCmd->SendScintilla(QsciScintillaBase::SCI_ASSIGNCMDKEY, scikey, + scicmd); + + scialtkey = convert(qaltkey); + + if (scialtkey) + qsCmd->SendScintilla(QsciScintillaBase::SCI_ASSIGNCMDKEY, scialtkey, + scicmd); +} + + +// Execute the command. +void QsciCommand::execute() +{ + qsCmd->SendScintilla(scicmd); +} + + +// Bind a key to a command. +void QsciCommand::setKey(int key) +{ + bindKey(key,qkey,scikey); +} + + +// Bind an alternate key to a command. +void QsciCommand::setAlternateKey(int altkey) +{ + bindKey(altkey,qaltkey,scialtkey); +} + + +// Do the hard work of binding a key. +void QsciCommand::bindKey(int key,int &qk,int &scik) +{ + int new_scikey; + + // Ignore if it is invalid, allowing for the fact that we might be + // unbinding it. + if (key) + { + new_scikey = convert(key); + + if (!new_scikey) + return; + } + else + new_scikey = 0; + + if (scik) + qsCmd->SendScintilla(QsciScintillaBase::SCI_CLEARCMDKEY, scik); + + qk = key; + scik = new_scikey; + + if (scik) + qsCmd->SendScintilla(QsciScintillaBase::SCI_ASSIGNCMDKEY, scik, scicmd); +} + + +// See if a key is valid. +bool QsciCommand::validKey(int key) +{ + return convert(key); +} + + +// Convert a Qt character to the Scintilla equivalent. Return zero if it is +// invalid. +static int convert(int key) +{ + // Convert the modifiers. + int sci_mod = 0; + + if (key & Qt::SHIFT) + sci_mod |= QsciScintillaBase::SCMOD_SHIFT; + + if (key & Qt::CTRL) + sci_mod |= QsciScintillaBase::SCMOD_CTRL; + + if (key & Qt::ALT) + sci_mod |= QsciScintillaBase::SCMOD_ALT; + + if (key & Qt::META) + sci_mod |= QsciScintillaBase::SCMOD_META; + + key &= ~Qt::MODIFIER_MASK; + + // Convert the key. + int sci_key = QsciScintillaBase::commandKey(key, sci_mod); + + if (sci_key) + sci_key |= (sci_mod << 16); + + return sci_key; +} + + +// Return the translated user friendly description. +QString QsciCommand::description() const +{ + return qApp->translate("QsciCommand", descCmd); +} diff --git a/Qt3/qscicommandset.cpp b/Qt3/qscicommandset.cpp new file mode 100644 index 0000000..43f71c9 --- /dev/null +++ b/Qt3/qscicommandset.cpp @@ -0,0 +1,996 @@ +// This module implements the QsciCommandSet class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscicommandset.h" + +#include + +#include "Qsci/qscicommand.h" +#include "Qsci/qsciscintilla.h" +#include "Qsci/qsciscintillabase.h" + + +// Starting with QScintilla v2.7 the standard OS/X keyboard shortcuts are used +// where possible. In order to restore the behaviour of earlier versions then +// #define DONT_USE_OSX_KEYS here or add it to the qmake project (.pro) file. +#if defined(Q_OS_MAC) && !defined(DONT_USE_OSX_KEYS) +#define USING_OSX_KEYS +#else +#undef USING_OSX_KEYS +#endif + + +// The ctor. +QsciCommandSet::QsciCommandSet(QsciScintilla *qs) : qsci(qs) +{ + struct sci_cmd { + QsciCommand::Command cmd; + int key; + int altkey; + const char *desc; + }; + + static struct sci_cmd cmd_table[] = { + { + QsciCommand::LineDown, + Qt::Key_Down, +#if defined(USING_OSX_KEYS) + Qt::Key_N | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Move down one line") + }, + { + QsciCommand::LineDownExtend, + Qt::Key_Down | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_N | Qt::META | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection down one line") + }, + { + QsciCommand::LineDownRectExtend, + Qt::Key_Down | Qt::ALT | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_N | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection down one line") + }, + { + QsciCommand::LineScrollDown, + Qt::Key_Down | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Scroll view down one line") + }, + { + QsciCommand::LineUp, + Qt::Key_Up, +#if defined(USING_OSX_KEYS) + Qt::Key_P | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Move up one line") + }, + { + QsciCommand::LineUpExtend, + Qt::Key_Up | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_P | Qt::META | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection up one line") + }, + { + QsciCommand::LineUpRectExtend, + Qt::Key_Up | Qt::ALT | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_P | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection up one line") + }, + { + QsciCommand::LineScrollUp, + Qt::Key_Up | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Scroll view up one line") + }, + { + QsciCommand::ScrollToStart, +#if defined(USING_OSX_KEYS) + Qt::Key_Home, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Scroll to start of document") + }, + { + QsciCommand::ScrollToEnd, +#if defined(USING_OSX_KEYS) + Qt::Key_End, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Scroll to end of document") + }, + { + QsciCommand::VerticalCentreCaret, +#if defined(USING_OSX_KEYS) + Qt::Key_L | Qt::META, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Scroll vertically to centre current line") + }, + { + QsciCommand::ParaDown, + Qt::Key_BracketRight | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move down one paragraph") + }, + { + QsciCommand::ParaDownExtend, + Qt::Key_BracketRight | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection down one paragraph") + }, + { + QsciCommand::ParaUp, + Qt::Key_BracketLeft | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move up one paragraph") + }, + { + QsciCommand::ParaUpExtend, + Qt::Key_BracketLeft | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection up one paragraph") + }, + { + QsciCommand::CharLeft, + Qt::Key_Left, +#if defined(USING_OSX_KEYS) + Qt::Key_B | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Move left one character") + }, + { + QsciCommand::CharLeftExtend, + Qt::Key_Left | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_B | Qt::META | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection left one character") + }, + { + QsciCommand::CharLeftRectExtend, + Qt::Key_Left | Qt::ALT | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_B | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection left one character") + }, + { + QsciCommand::CharRight, + Qt::Key_Right, +#if defined(USING_OSX_KEYS) + Qt::Key_F | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Move right one character") + }, + { + QsciCommand::CharRightExtend, + Qt::Key_Right | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_F | Qt::META | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection right one character") + }, + { + QsciCommand::CharRightRectExtend, + Qt::Key_Right | Qt::ALT | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_F | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection right one character") + }, + { + QsciCommand::WordLeft, +#if defined(USING_OSX_KEYS) + Qt::Key_Left | Qt::ALT, +#else + Qt::Key_Left | Qt::CTRL, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move left one word") + }, + { + QsciCommand::WordLeftExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Left | Qt::ALT | Qt::SHIFT, +#else + Qt::Key_Left | Qt::CTRL | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection left one word") + }, + { + QsciCommand::WordRight, +#if defined(USING_OSX_KEYS) + 0, +#else + Qt::Key_Right | Qt::CTRL, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move right one word") + }, + { + QsciCommand::WordRightExtend, + Qt::Key_Right | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection right one word") + }, + { + QsciCommand::WordLeftEnd, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to end of previous word") + }, + { + QsciCommand::WordLeftEndExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of previous word") + }, + { + QsciCommand::WordRightEnd, +#if defined(USING_OSX_KEYS) + Qt::Key_Right | Qt::ALT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to end of next word") + }, + { + QsciCommand::WordRightEndExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Right | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of next word") + }, + { + QsciCommand::WordPartLeft, + Qt::Key_Slash | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move left one word part") + }, + { + QsciCommand::WordPartLeftExtend, + Qt::Key_Slash | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection left one word part") + }, + { + QsciCommand::WordPartRight, + Qt::Key_Backslash | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move right one word part") + }, + { + QsciCommand::WordPartRightExtend, + Qt::Key_Backslash | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection right one word part") + }, + { + QsciCommand::Home, +#if defined(USING_OSX_KEYS) + Qt::Key_A | Qt::META, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to start of document line") + }, + { + QsciCommand::HomeExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_A | Qt::META | Qt::SHIFT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to start of document line") + }, + { + QsciCommand::HomeRectExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_A | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection to start of document line") + }, + { + QsciCommand::HomeDisplay, +#if defined(USING_OSX_KEYS) + Qt::Key_Left | Qt::CTRL, +#else + Qt::Key_Home | Qt::ALT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to start of display line") + }, + { + QsciCommand::HomeDisplayExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Left | Qt::CTRL | Qt::SHIFT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to start of display line") + }, + { + QsciCommand::HomeWrap, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Move to start of display or document line") + }, + { + QsciCommand::HomeWrapExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to start of display or document line") + }, + { + QsciCommand::VCHome, +#if defined(USING_OSX_KEYS) + 0, +#else + Qt::Key_Home, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Move to first visible character in document line") + }, + { + QsciCommand::VCHomeExtend, +#if defined(USING_OSX_KEYS) + 0, +#else + Qt::Key_Home | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to first visible character in document line") + }, + { + QsciCommand::VCHomeRectExtend, +#if defined(USING_OSX_KEYS) + 0, +#else + Qt::Key_Home | Qt::ALT | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection to first visible character in document line") + }, + { + QsciCommand::VCHomeWrap, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Move to first visible character of display in document line") + }, + { + QsciCommand::VCHomeWrapExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to first visible character in display or document line") + }, + { + QsciCommand::LineEnd, +#if defined(USING_OSX_KEYS) + Qt::Key_E | Qt::META, +#else + Qt::Key_End, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to end of document line") + }, + { + QsciCommand::LineEndExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_E | Qt::META | Qt::SHIFT, +#else + Qt::Key_End | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of document line") + }, + { + QsciCommand::LineEndRectExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_E | Qt::META | Qt::ALT | Qt::SHIFT, +#else + Qt::Key_End | Qt::ALT | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection to end of document line") + }, + { + QsciCommand::LineEndDisplay, +#if defined(USING_OSX_KEYS) + Qt::Key_Right | Qt::CTRL, +#else + Qt::Key_End | Qt::ALT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to end of display line") + }, + { + QsciCommand::LineEndDisplayExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Right | Qt::CTRL | Qt::SHIFT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of display line") + }, + { + QsciCommand::LineEndWrap, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Move to end of display or document line") + }, + { + QsciCommand::LineEndWrapExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of display or document line") + }, + { + QsciCommand::DocumentStart, +#if defined(USING_OSX_KEYS) + Qt::Key_Up | Qt::CTRL, +#else + Qt::Key_Home | Qt::CTRL, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to start of document") + }, + { + QsciCommand::DocumentStartExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Up | Qt::CTRL | Qt::SHIFT, +#else + Qt::Key_Home | Qt::CTRL | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to start of document") + }, + { + QsciCommand::DocumentEnd, +#if defined(USING_OSX_KEYS) + Qt::Key_Down | Qt::CTRL, +#else + Qt::Key_End | Qt::CTRL, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to end of document") + }, + { + QsciCommand::DocumentEndExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Down | Qt::CTRL | Qt::SHIFT, +#else + Qt::Key_End | Qt::CTRL | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of document") + }, + { + QsciCommand::PageUp, + Qt::Key_Prior, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move up one page") + }, + { + QsciCommand::PageUpExtend, + Qt::Key_Prior | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection up one page") + }, + { + QsciCommand::PageUpRectExtend, + Qt::Key_Prior | Qt::ALT | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection up one page") + }, + { + QsciCommand::PageDown, + Qt::Key_Next, +#if defined(USING_OSX_KEYS) + Qt::Key_V | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Move down one page") + }, + { + QsciCommand::PageDownExtend, + Qt::Key_Next | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_V | Qt::META | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection down one page") + }, + { + QsciCommand::PageDownRectExtend, + Qt::Key_Next | Qt::ALT | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_V | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection down one page") + }, + { + QsciCommand::StutteredPageUp, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Stuttered move up one page") + }, + { + QsciCommand::StutteredPageUpExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Stuttered extend selection up one page") + }, + { + QsciCommand::StutteredPageDown, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Stuttered move down one page") + }, + { + QsciCommand::StutteredPageDownExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Stuttered extend selection down one page") + }, + { + QsciCommand::Delete, + Qt::Key_Delete, +#if defined(USING_OSX_KEYS) + Qt::Key_D | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Delete current character") + }, + { + QsciCommand::DeleteBack, + Qt::Key_Backspace, +#if defined(USING_OSX_KEYS) + Qt::Key_H | Qt::META, +#else + Qt::Key_Backspace | Qt::SHIFT, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Delete previous character") + }, + { + QsciCommand::DeleteBackNotLine, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Delete previous character if not at start of line") + }, + { + QsciCommand::DeleteWordLeft, + Qt::Key_Backspace | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Delete word to left") + }, + { + QsciCommand::DeleteWordRight, + Qt::Key_Delete | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Delete word to right") + }, + { + QsciCommand::DeleteWordRightEnd, +#if defined(USING_OSX_KEYS) + Qt::Key_Delete | Qt::ALT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Delete right to end of next word") + }, + { + QsciCommand::DeleteLineLeft, + Qt::Key_Backspace | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Delete line to left") + }, + { + QsciCommand::DeleteLineRight, +#if defined(USING_OSX_KEYS) + Qt::Key_K | Qt::META, +#else + Qt::Key_Delete | Qt::CTRL | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Delete line to right") + }, + { + QsciCommand::LineDelete, + Qt::Key_L | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Delete current line") + }, + { + QsciCommand::LineCut, + Qt::Key_L | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Cut current line") + }, + { + QsciCommand::LineCopy, + Qt::Key_T | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Copy current line") + }, + { + QsciCommand::LineTranspose, + Qt::Key_T | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Transpose current and previous lines") + }, + { + QsciCommand::LineDuplicate, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Duplicate the current line") + }, + { + QsciCommand::SelectAll, + Qt::Key_A | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Select all") + }, + { + QsciCommand::MoveSelectedLinesUp, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move selected lines up one line") + }, + { + QsciCommand::MoveSelectedLinesDown, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Move selected lines down one line") + }, + { + QsciCommand::SelectionDuplicate, + Qt::Key_D | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Duplicate selection") + }, + { + QsciCommand::SelectionLowerCase, + Qt::Key_U | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Convert selection to lower case") + }, + { + QsciCommand::SelectionUpperCase, + Qt::Key_U | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Convert selection to upper case") + }, + { + QsciCommand::SelectionCut, + Qt::Key_X | Qt::CTRL, + Qt::Key_Delete | Qt::SHIFT, + QT_TRANSLATE_NOOP("QsciCommand", "Cut selection") + }, + { + QsciCommand::SelectionCopy, + Qt::Key_C | Qt::CTRL, + Qt::Key_Insert | Qt::CTRL, + QT_TRANSLATE_NOOP("QsciCommand", "Copy selection") + }, + { + QsciCommand::Paste, + Qt::Key_V | Qt::CTRL, + Qt::Key_Insert | Qt::SHIFT, + QT_TRANSLATE_NOOP("QsciCommand", "Paste") + }, + { + QsciCommand::EditToggleOvertype, + Qt::Key_Insert, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Toggle insert/overtype") + }, + { + QsciCommand::Newline, + Qt::Key_Return, + Qt::Key_Return | Qt::SHIFT, + QT_TRANSLATE_NOOP("QsciCommand", "Insert newline") + }, + { + QsciCommand::Formfeed, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Formfeed") + }, + { + QsciCommand::Tab, + Qt::Key_Tab, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Indent one level") + }, + { + QsciCommand::Backtab, + Qt::Key_Tab | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "De-indent one level") + }, + { + QsciCommand::Cancel, + Qt::Key_Escape, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Cancel") + }, + { + QsciCommand::Undo, + Qt::Key_Z | Qt::CTRL, + Qt::Key_Backspace | Qt::ALT, + QT_TRANSLATE_NOOP("QsciCommand", "Undo last command") + }, + { + QsciCommand::Redo, +#if defined(USING_OSX_KEYS) + Qt::Key_Z | Qt::CTRL | Qt::SHIFT, +#else + Qt::Key_Y | Qt::CTRL, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Redo last command") + }, + { + QsciCommand::ZoomIn, + Qt::Key_Plus | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Zoom in") + }, + { + QsciCommand::ZoomOut, + Qt::Key_Minus | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Zoom out") + }, + }; + + // Clear the default map. + qsci->SendScintilla(QsciScintillaBase::SCI_CLEARALLCMDKEYS); + + // By default control characters don't do anything (rather than insert the + // control character into the text). + for (int k = 'A'; k <= 'Z'; ++k) + qsci->SendScintilla(QsciScintillaBase::SCI_ASSIGNCMDKEY, + k + (QsciScintillaBase::SCMOD_CTRL << 16), + QsciScintillaBase::SCI_NULL); + + for (int i = 0; i < sizeof (cmd_table) / sizeof (cmd_table[0]); ++i) + cmds.append( + new QsciCommand(qsci, cmd_table[i].cmd, cmd_table[i].key, + cmd_table[i].altkey, cmd_table[i].desc)); +} + + +// The dtor. +QsciCommandSet::~QsciCommandSet() +{ + for (int i = 0; i < cmds.count(); ++i) + delete cmds.at(i); +} + + +// Read the command set from settings. +bool QsciCommandSet::readSettings(QSettings &qs, const char *prefix) +{ + bool rc = true; + QString skey; + + for (int i = 0; i < cmds.count(); ++i) + { + QsciCommand *cmd = cmds.at(i); + + skey.sprintf("%s/keymap/c%d/", prefix, + static_cast(cmd->command())); + + int key; + bool ok; + + // Read the key. + key = qs.readNumEntry(skey + "key", 0, &ok); + + if (ok) + cmd->setKey(key); + else + rc = false; + + // Read the alternate key. + key = qs.readNumEntry(skey + "alt", 0, &ok); + + if (ok) + cmd->setAlternateKey(key); + else + rc = false; + } + + return rc; +} + + +// Write the command set to settings. +bool QsciCommandSet::writeSettings(QSettings &qs, const char *prefix) +{ + bool rc = true; + QString skey; + + for (int i = 0; i < cmds.count(); ++i) + { + QsciCommand *cmd = cmds.at(i); + + skey.sprintf("%s/keymap/c%d/", prefix, + static_cast(cmd->command())); + + // Write the key. + if (!qs.writeEntry(skey + "key", cmd->key())) + rc = false; + + // Write the alternate key. + if (!qs.writeEntry(skey + "alt", cmd->alternateKey())) + rc = false; + } + + return rc; +} + + +// Clear the key bindings. +void QsciCommandSet::clearKeys() +{ + for (int i = 0; i < cmds.count(); ++i) + cmds.at(i)->setKey(0); +} + + +// Clear the alternate key bindings. +void QsciCommandSet::clearAlternateKeys() +{ + for (int i = 0; i < cmds.count(); ++i) + cmds.at(i)->setAlternateKey(0); +} + + +// Find the command bound to a key. +QsciCommand *QsciCommandSet::boundTo(int key) const +{ + for (int i = 0; i < cmds.count(); ++i) + { + QsciCommand *cmd = const_cast(this)->cmds.at(i); + + if (cmd->key() == key || cmd->alternateKey() == key) + return cmd; + } + + return 0; +} + + +// Find a command. +QsciCommand *QsciCommandSet::find(QsciCommand::Command command) const +{ + for (int i = 0; i < cmds.count(); ++i) + { + QsciCommand *cmd = const_cast(this)->cmds.at(i); + + if (cmd->command() == command) + return cmd; + } + + // This should never happen. + return 0; +} diff --git a/Qt3/qscidocument.cpp b/Qt3/qscidocument.cpp new file mode 100644 index 0000000..d8077f7 --- /dev/null +++ b/Qt3/qscidocument.cpp @@ -0,0 +1,156 @@ +// This module implements the QsciDocument class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscidocument.h" +#include "Qsci/qsciscintillabase.h" + + +// This internal class encapsulates the underlying document and is shared by +// QsciDocument instances. +class QsciDocumentP +{ +public: + QsciDocumentP() : doc(0), nr_displays(0), nr_attaches(1), modified(false) {} + + void *doc; // The Scintilla document. + int nr_displays; // The number of displays. + int nr_attaches; // The number of attaches. + bool modified; // Set if not at a save point. +}; + + +// The ctor. +QsciDocument::QsciDocument() +{ + pdoc = new QsciDocumentP(); +} + + +// The dtor. +QsciDocument::~QsciDocument() +{ + detach(); +} + + +// The copy ctor. +QsciDocument::QsciDocument(const QsciDocument &that) +{ + attach(that); +} + + +// The assignment operator. +QsciDocument &QsciDocument::operator=(const QsciDocument &that) +{ + if (pdoc != that.pdoc) + { + detach(); + attach(that); + } + + return *this; +} + + +// Attach an existing document to this one. +void QsciDocument::attach(const QsciDocument &that) +{ + ++that.pdoc->nr_attaches; + pdoc = that.pdoc; +} + + +// Detach the underlying document. +void QsciDocument::detach() +{ + if (!pdoc) + return; + + if (--pdoc->nr_attaches == 0) + { + if (pdoc->doc && pdoc->nr_displays == 0) + { + QsciScintillaBase *qsb = QsciScintillaBase::pool(); + + // Release the explicit reference to the document. If the pool is + // empty then we just accept the memory leak. + if (qsb) + qsb->SendScintilla(QsciScintillaBase::SCI_RELEASEDOCUMENT, 0, + pdoc->doc); + } + + delete pdoc; + } + + pdoc = 0; +} + + +// Undisplay and detach the underlying document. +void QsciDocument::undisplay(QsciScintillaBase *qsb) +{ + if (--pdoc->nr_attaches == 0) + delete pdoc; + else if (--pdoc->nr_displays == 0) + { + // Create an explicit reference to the document to keep it alive. + qsb->SendScintilla(QsciScintillaBase::SCI_ADDREFDOCUMENT, 0, pdoc->doc); + } + + pdoc = 0; +} + + +// Display the underlying document. +void QsciDocument::display(QsciScintillaBase *qsb, const QsciDocument *from) +{ + void *ndoc = (from ? from->pdoc->doc : 0); + + // SCI_SETDOCPOINTER appears to reset the EOL mode so save and restore it. + int eol_mode = qsb->SendScintilla(QsciScintillaBase::SCI_GETEOLMODE); + + qsb->SendScintilla(QsciScintillaBase::SCI_SETDOCPOINTER, 0, ndoc); + ndoc = qsb->SendScintillaPtrResult(QsciScintillaBase::SCI_GETDOCPOINTER); + + qsb->SendScintilla(QsciScintillaBase::SCI_SETEOLMODE, eol_mode); + + pdoc->doc = ndoc; + ++pdoc->nr_displays; +} + + +// Return the modified state of the document. +bool QsciDocument::isModified() const +{ + return pdoc->modified; +} + + +// Set the modified state of the document. +void QsciDocument::setModified(bool m) +{ + pdoc->modified = m; +} diff --git a/Qt3/qscilexer.cpp b/Qt3/qscilexer.cpp new file mode 100644 index 0000000..008e04e --- /dev/null +++ b/Qt3/qscilexer.cpp @@ -0,0 +1,745 @@ +// This module implements the QsciLexer class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexer.h" + +#include +#include +#include +#include + +#include "Qsci/qsciapis.h" +#include "Qsci/qsciscintilla.h" +#include "Qsci/qsciscintillabase.h" + + +// The ctor. +QsciLexer::QsciLexer(QObject *parent, const char *name) + : QObject(parent, name), + autoIndStyle(-1), apiSet(0), attached_editor(0) +{ +#if defined(Q_OS_WIN) + defFont = QFont("Verdana",10); +#elif defined(Q_OS_MAC) + defFont = QFont("Verdana", 12); +#else + defFont = QFont("Bitstream Vera Sans",9); +#endif + + // Set the default fore and background colours. + QColorGroup cg = QApplication::palette().active(); + defColor = cg.text(); + defPaper = cg.base(); + + // Putting this on the heap means we can keep the style getters const. + style_map = new StyleDataMap; + style_map->style_data_set = false; +} + + +// The dtor. +QsciLexer::~QsciLexer() +{ + delete style_map; +} + + +// Set the attached editor. +void QsciLexer::setEditor(QsciScintilla *editor) +{ + attached_editor = editor; + + if (attached_editor) + { + attached_editor->SendScintilla(QsciScintillaBase::SCI_SETSTYLEBITS, + styleBitsNeeded()); + } +} + + +// Return the lexer name. +const char *QsciLexer::lexer() const +{ + return 0; +} + + +// Return the lexer identifier. +int QsciLexer::lexerId() const +{ + return QsciScintillaBase::SCLEX_CONTAINER; +} + + +// Return the number of style bits needed by the lexer. +int QsciLexer::styleBitsNeeded() const +{ + if (!attached_editor) + return 5; + + return attached_editor->SendScintilla(QsciScintillaBase::SCI_GETSTYLEBITSNEEDED); +} + + +// Make sure the style defaults have been set. +void QsciLexer::setStyleDefaults() const +{ + if (!style_map->style_data_set) + { + for (int i = 0; i < 128; ++i) + if (!description(i).isEmpty()) + styleData(i); + + style_map->style_data_set = true; + } +} + + +// Return a reference to a style's data, setting up the defaults if needed. +QsciLexer::StyleData &QsciLexer::styleData(int style) const +{ + StyleData &sd = style_map->style_data[style]; + + // See if this is a new style by checking if the colour is valid. + if (!sd.color.isValid()) + { + sd.color = defaultColor(style); + sd.paper = defaultPaper(style); + sd.font = defaultFont(style); + sd.eol_fill = defaultEolFill(style); + } + + return sd; +} + + +// Set the APIs associated with the lexer. +void QsciLexer::setAPIs(QsciAbstractAPIs *apis) +{ + apiSet = apis; +} + + +// Return a pointer to the current APIs if there are any. +QsciAbstractAPIs *QsciLexer::apis() const +{ + return apiSet; +} + + +// Default implementation to return the set of fill up characters that can end +// auto-completion. +const char *QsciLexer::autoCompletionFillups() const +{ + return "("; +} + + +// Default implementation to return the view used for indentation guides. +int QsciLexer::indentationGuideView() const +{ + return QsciScintillaBase::SC_IV_LOOKBOTH; +} + + +// Default implementation to return the list of character sequences that can +// separate auto-completion words. +QStringList QsciLexer::autoCompletionWordSeparators() const +{ + return QStringList(); +} + + +// Default implementation to return the list of keywords that can start a +// block. +const char *QsciLexer::blockStartKeyword(int *) const +{ + return 0; +} + + +// Default implementation to return the list of characters that can start a +// block. +const char *QsciLexer::blockStart(int *) const +{ + return 0; +} + + +// Default implementation to return the list of characters that can end a +// block. +const char *QsciLexer::blockEnd(int *) const +{ + return 0; +} + + +// Default implementation to return the style used for braces. +int QsciLexer::braceStyle() const +{ + return -1; +} + + +// Default implementation to return the number of lines to look back when +// auto-indenting. +int QsciLexer::blockLookback() const +{ + return 20; +} + + +// Default implementation to return the case sensitivity of the language. +bool QsciLexer::caseSensitive() const +{ + return true; +} + + +// Default implementation to return the characters that make up a word. +const char *QsciLexer::wordCharacters() const +{ + return 0; +} + + +// Default implementation to return the style used for whitespace. +int QsciLexer::defaultStyle() const +{ + return 0; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexer::color(int style) const +{ + return styleData(style).color; +} + + +// Returns the background colour of the text for a style. +QColor QsciLexer::paper(int style) const +{ + return styleData(style).paper; +} + + +// Returns the font for a style. +QFont QsciLexer::font(int style) const +{ + return styleData(style).font; +} + + +// Returns the end-of-line fill for a style. +bool QsciLexer::eolFill(int style) const +{ + return styleData(style).eol_fill; +} + + +// Returns the set of keywords. +const char *QsciLexer::keywords(int) const +{ + return 0; +} + + +// Returns the default EOL fill for a style. +bool QsciLexer::defaultEolFill(int) const +{ + return false; +} + + +// Returns the default font for a style. +QFont QsciLexer::defaultFont(int) const +{ + return defaultFont(); +} + + +// Returns the default font. +QFont QsciLexer::defaultFont() const +{ + return defFont; +} + + +// Sets the default font. +void QsciLexer::setDefaultFont(const QFont &f) +{ + defFont = f; +} + + +// Returns the default text colour for a style. +QColor QsciLexer::defaultColor(int) const +{ + return defaultColor(); +} + + +// Returns the default text colour. +QColor QsciLexer::defaultColor() const +{ + return defColor; +} + + +// Sets the default text colour. +void QsciLexer::setDefaultColor(const QColor &c) +{ + defColor = c; +} + + +// Returns the default paper colour for a styles. +QColor QsciLexer::defaultPaper(int) const +{ + return defaultPaper(); +} + + +// Returns the default paper colour. +QColor QsciLexer::defaultPaper() const +{ + return defPaper; +} + + +// Sets the default paper colour. +void QsciLexer::setDefaultPaper(const QColor &c) +{ + defPaper = c; + + // Normally the default values are only intended to provide defaults when a + // lexer is first setup because once a style has been referenced then a + // copy of the default is made. However the default paper is a special + // case because there is no other way to set the background colour used + // where there is no text. Therefore we also actively set it. + setPaper(c, QsciScintillaBase::STYLE_DEFAULT); +} + + +// Read properties from the settings. +bool QsciLexer::readProperties(QSettings &,const QString &) +{ + return true; +} + + +// Refresh all properties. +void QsciLexer::refreshProperties() +{ +} + + +// Write properties to the settings. +bool QsciLexer::writeProperties(QSettings &,const QString &) const +{ + return true; +} + + +// Restore the user settings. +bool QsciLexer::readSettings(QSettings &qs,const char *prefix) +{ + bool ok, flag, rc = true; + int num; + QString key, full_key; + QStringList fdesc; + + setStyleDefaults(); + + // Read the styles. + for (int i = 0; i < 128; ++i) + { + // Ignore invalid styles. + if (description(i).isEmpty()) + continue; + + key.sprintf("%s/%s/style%d/",prefix,language(),i); + + // Read the foreground colour. + full_key = key + "color"; + + num = qs.readNumEntry(full_key, 0, &ok); + + if (ok) + setColor(QColor((num >> 16) & 0xff, (num >> 8) & 0xff, num & 0xff), i); + else + rc = false; + + // Read the end-of-line fill. + full_key = key + "eolfill"; + + flag = qs.readBoolEntry(full_key, 0, &ok); + + if (ok) + setEolFill(flag, i); + else + rc = false; + + // Read the font. First try the deprecated format that uses an integer + // point size. + full_key = key + "font"; + + fdesc = qs.readListEntry(full_key, ',', &ok); + + if (ok && fdesc.count() == 5) + { + QFont f; + + f.setFamily(fdesc[0]); + f.setPointSize(fdesc[1].toInt()); + f.setBold(fdesc[2].toInt()); + f.setItalic(fdesc[3].toInt()); + f.setUnderline(fdesc[4].toInt()); + + setFont(f, i); + } + else + rc = false; + + // Now try the newer font format that uses a floating point point size. + // It is not an error if it doesn't exist. + full_key = key + "font2"; + + fdesc = qs.readListEntry(full_key, ',', &ok); + + if (ok) + { + // Allow for future versions with more fields. + if (fdesc.count() >= 5) + { + QFont f; + + f.setFamily(fdesc[0]); + f.setPointSizeF(fdesc[1].toDouble()); + f.setBold(fdesc[2].toInt()); + f.setItalic(fdesc[3].toInt()); + f.setUnderline(fdesc[4].toInt()); + + setFont(f, i); + } + else + { + rc = false; + } + } + + // Read the background colour. + full_key = key + "paper"; + + num = qs.readNumEntry(full_key, 0, &ok); + + if (ok) + setPaper(QColor((num >> 16) & 0xff, (num >> 8) & 0xff, num & 0xff), i); + else + rc = false; + } + + // Read the properties. + key.sprintf("%s/%s/properties/",prefix,language()); + + if (!readProperties(qs,key)) + rc = false; + + refreshProperties(); + + // Read the rest. + key.sprintf("%s/%s/",prefix,language()); + + // Read the default foreground colour. + full_key = key + "defaultcolor"; + + num = qs.readNumEntry(full_key, 0, &ok); + + if (ok) + setDefaultColor(QColor((num >> 16) & 0xff, (num >> 8) & 0xff, num & 0xff)); + else + rc = false; + + // Read the default background colour. + full_key = key + "defaultpaper"; + + num = qs.readNumEntry(full_key, 0, &ok); + + if (ok) + setDefaultPaper(QColor((num >> 16) & 0xff, (num >> 8) & 0xff, num & 0xff)); + else + rc = false; + + // Read the default font. First try the deprecated format that uses an + // integer point size. + full_key = key + "defaultfont"; + + fdesc = qs.readListEntry(full_key, ',', &ok); + + if (ok && fdesc.count() == 5) + { + QFont f; + + f.setFamily(fdesc[0]); + f.setPointSize(fdesc[1].toInt()); + f.setBold(fdesc[2].toInt()); + f.setItalic(fdesc[3].toInt()); + f.setUnderline(fdesc[4].toInt()); + + setDefaultFont(f); + } + else + rc = false; + + // Now try the newer font format that uses a floating point point size. It + // is not an error if it doesn't exist. + full_key = key + "defaultfont2"; + + fdesc = qs.readListEntry(full_key, ',', &ok); + + if (ok) + { + // Allow for future versions with more fields. + if (fdesc.count() >= 5) + { + QFont f; + + f.setFamily(fdesc[0]); + f.setPointSizeF(fdesc[1].toDouble()); + f.setBold(fdesc[2].toInt()); + f.setItalic(fdesc[3].toInt()); + f.setUnderline(fdesc[4].toInt()); + + setDefaultFont(f); + } + else + { + rc = false; + } + } + + full_key = key + "autoindentstyle"; + + num = qs.readNumEntry(full_key, 0, &ok); + + if (ok) + setAutoIndentStyle(num); + else + rc = false; + + return rc; +} + + +// Save the user settings. +bool QsciLexer::writeSettings(QSettings &qs,const char *prefix) const +{ + bool rc = true; + QString key, fmt("%1"); + int num; + QStringList fdesc; + + setStyleDefaults(); + + // Write the styles. + for (int i = 0; i < 128; ++i) + { + // Ignore invalid styles. + if (description(i).isEmpty()) + continue; + + QColor c; + + key.sprintf("%s/%s/style%d/",prefix,language(),i); + + // Write the foreground colour. + c = color(i); + num = (c.red() << 16) | (c.green() << 8) | c.blue(); + + if (!qs.writeEntry(key + "color", num)) + rc = false; + + // Write the end-of-line fill. + if (!qs.writeEntry(key + "eolfill", eolFill(i))) + rc = false; + + // Write the font using the deprecated format. + QFont f = font(i); + + fdesc.clear(); + fdesc += f.family(); + fdesc += fmt.arg(f.pointSize()); + + // The casts are for Borland. + fdesc += fmt.arg((int)f.bold()); + fdesc += fmt.arg((int)f.italic()); + fdesc += fmt.arg((int)f.underline()); + + if (!qs.writeEntry(key + "font", fdesc, ',')) + rc = false; + + // Write the font using the newer format. + fdesc[1] = fmt.arg(f.pointSizeF()); + + if (!qs.writeEntry(key + "font2", fdesc, ',')) + rc = false; + + // Write the background colour. + c = paper(i); + num = (c.red() << 16) | (c.green() << 8) | c.blue(); + + if (!qs.writeEntry(key + "paper", num)) + rc = false; + } + + // Write the properties. + key.sprintf("%s/%s/properties/",prefix,language()); + + if (!writeProperties(qs,key)) + rc = false; + + // Write the rest. + key.sprintf("%s/%s/",prefix,language()); + + // Write the default foreground colour. + num = (defColor.red() << 16) | (defColor.green() << 8) | defColor.blue(); + + if (!qs.writeEntry(key + "defaultcolor", num)) + rc = false; + + // Write the default background colour. + num = (defPaper.red() << 16) | (defPaper.green() << 8) | defPaper.blue(); + + if (!qs.writeEntry(key + "defaultpaper", num)) + rc = false; + + // Write the default font using the deprecated format. + fdesc.clear(); + fdesc += defFont.family(); + fdesc += fmt.arg(defFont.pointSize()); + + // The casts are for Borland. + fdesc += fmt.arg((int)defFont.bold()); + fdesc += fmt.arg((int)defFont.italic()); + fdesc += fmt.arg((int)defFont.underline()); + + if (!qs.writeEntry(key + "defaultfont", fdesc, ',')) + rc = false; + + // Write the font using the newer format. + fdesc[1] = fmt.arg(defFont.pointSizeF()); + + if (!qs.writeEntry(key + "defaultfont2", fdesc, ',')) + rc = false; + + if (!qs.writeEntry(key + "autoindentstyle", autoIndStyle)) + rc = false; + + return rc; +} + + +// Return the auto-indentation style. +int QsciLexer::autoIndentStyle() +{ + // We can't do this in the ctor because we want the virtuals to work. + if (autoIndStyle < 0) + autoIndStyle = (blockStartKeyword() || blockStart() || blockEnd()) ? + 0 : QsciScintilla::AiMaintain; + + return autoIndStyle; +} + + +// Set the auto-indentation style. +void QsciLexer::setAutoIndentStyle(int autoindentstyle) +{ + autoIndStyle = autoindentstyle; +} + + +// Set the foreground colour for a style. +void QsciLexer::setColor(const QColor &c, int style) +{ + if (style >= 0) + { + styleData(style).color = c; + emit colorChanged(c, style); + } + else + for (int i = 0; i < 128; ++i) + if (!description(i).isEmpty()) + setColor(c, i); +} + + +// Set the end-of-line fill for a style. +void QsciLexer::setEolFill(bool eolfill, int style) +{ + if (style >= 0) + { + styleData(style).eol_fill = eolfill; + emit eolFillChanged(eolfill, style); + } + else + for (int i = 0; i < 128; ++i) + if (!description(i).isEmpty()) + setEolFill(eolfill, i); +} + + +// Set the font for a style. +void QsciLexer::setFont(const QFont &f, int style) +{ + if (style >= 0) + { + styleData(style).font = f; + emit fontChanged(f, style); + } + else + for (int i = 0; i < 128; ++i) + if (!description(i).isEmpty()) + setFont(f, i); +} + + +// Set the background colour for a style. +void QsciLexer::setPaper(const QColor &c, int style) +{ + if (style >= 0) + { + styleData(style).paper = c; + emit paperChanged(c, style); + } + else + { + for (int i = 0; i < 128; ++i) + if (!description(i).isEmpty()) + setPaper(c, i); + + emit paperChanged(c, QsciScintillaBase::STYLE_DEFAULT); + } +} diff --git a/Qt3/qscilexeravs.cpp b/Qt3/qscilexeravs.cpp new file mode 100644 index 0000000..a97d5b0 --- /dev/null +++ b/Qt3/qscilexeravs.cpp @@ -0,0 +1,435 @@ +// This module implements the QsciLexerAVS class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexeravs.h" + +#include +#include +#include + + +// The ctor. +QsciLexerAVS::QsciLexerAVS(QObject *parent, const char *name) + : QsciLexer(parent,name), + fold_comments(false), fold_compact(true) +{ +} + + +// The dtor. +QsciLexerAVS::~QsciLexerAVS() +{ +} + + +// Returns the language name. +const char *QsciLexerAVS::language() const +{ + return "AVS"; +} + + +// Returns the lexer name. +const char *QsciLexerAVS::lexer() const +{ + return "avs"; +} + + +// Return the style used for braces. +int QsciLexerAVS::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerAVS::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerAVS::defaultColor(int style) const +{ + switch (style) + { + case Default: + case Operator: + return QColor(0x00, 0x00, 0x00); + + case BlockComment: + case NestedBlockComment: + case LineComment: + return QColor(0x00, 0x7f, 0x00); + + case Number: + case Function: + return QColor(0x00, 0x7f, 0x7f); + + case String: + case TripleString: + return QColor(0x7f, 0x00, 0x7f); + + case Keyword: + case Filter: + case ClipProperty: + return QColor(0x00, 0x00, 0x7f); + + case Plugin: + return QColor(0x00, 0x80, 0xc0); + + case KeywordSet6: + return QColor(0x80, 0x00, 0xff); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerAVS::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case BlockComment: + case NestedBlockComment: + case LineComment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS", 9); +#elif defined(Q_OS_MAC) + f = QFont("Georgia", 13); +#else + f = QFont("Bitstream Vera Serif", 9); +#endif + break; + + case Keyword: + case Filter: + case Plugin: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerAVS::keywords(int set) const +{ + if (set == 1) + return "true false return global"; + + if (set == 2) + return + "addborders alignedsplice amplify amplifydb animate applyrange " + "assumebff assumefieldbased assumefps assumeframebased " + "assumesamplerate assumescaledfps assumetff audiodub audiodubex " + "avifilesource avisource bicubicresize bilinearresize " + "blackmanresize blackness blankclip blur bob cache changefps " + "colorbars colorkeymask coloryuv compare complementparity " + "conditionalfilter conditionalreader convertaudio " + "convertaudioto16bit convertaudioto24bit convertaudioto32bit " + "convertaudioto8bit convertaudiotofloat convertbacktoyuy2 " + "convertfps converttobackyuy2 converttomono converttorgb " + "converttorgb24 converttorgb32 converttoy8 converttoyv16 " + "converttoyv24 converttoyv411 converttoyuy2 converttoyv12 crop " + "cropbottom delayaudio deleteframe dissolve distributor " + "doubleweave duplicateframe ensurevbrmp3sync fadein fadein0 " + "fadein2 fadeio fadeio0 fadeio2 fadeout fadeout0 fadeout2 " + "fixbrokenchromaupsampling fixluminance fliphorizontal " + "flipvertical frameevaluate freezeframe gaussresize " + "generalconvolution getchannel getchannels getmtmode getparity " + "grayscale greyscale histogram horizontalreduceby2 imagereader " + "imagesource imagewriter info interleave internalcache " + "internalcachemt invert killaudio killvideo lanczos4resize " + "lanczosresize layer letterbox levels limiter loop mask maskhs " + "max merge mergeargb mergechannels mergechroma mergeluma mergergb " + "messageclip min mixaudio monotostereo normalize null " + "opendmlsource overlay peculiarblend pointresize pulldown " + "reduceby2 resampleaudio resetmask reverse rgbadjust scriptclip " + "segmentedavisource segmenteddirectshowsource selecteven " + "selectevery selectodd selectrangeevery separatefields setmtmode " + "sharpen showalpha showblue showfiveversions showframenumber " + "showgreen showred showsmpte showtime sincresize skewrows " + "spatialsoften spline16resize spline36resize spline64resize ssrc " + "stackhorizontal stackvertical subtitle subtract supereq " + "swapfields swapuv temporalsoften timestretch tone trim turn180 " + "turnleft turnright tweak unalignedsplice utoy utoy8 version " + "verticalreduceby2 vtoy vtoy8 wavsource weave writefile " + "writefileend writefileif writefilestart ytouv"; + + if (set == 3) + return + "addgrain addgrainc agc_hdragc analyzelogo animeivtc asharp " + "audiograph autocrop autoyuy2 avsrecursion awarpsharp " + "bassaudiosource bicublinresize bifrost binarize blendfields " + "blindpp blockbuster bordercontrol cfielddiff cframediff " + "chromashift cnr2 colormatrix combmask contra convolution3d " + "convolution3dyv12 dctfilter ddcc deblendlogo deblock deblock_qed " + "decimate decomb dedup deen deflate degrainmedian depan " + "depanestimate depaninterleave depanscenes depanstabilize " + "descratch despot dfttest dgbob dgsource directshowsource " + "distancefunction dss2 dup dupmc edeen edgemask ediupsizer eedi2 " + "eedi3 eedi3_rpow2 expand faerydust fastbicubicresize " + "fastbilinearresize fastediupsizer dedgemask fdecimate " + "ffaudiosource ffdshow ffindex ffmpegsource ffmpegsource2 " + "fft3dfilter fft3dgpu ffvideosource fielddeinterlace fielddiff " + "fillmargins fity2uv fity2u fity2v fitu2y fitv2y fluxsmooth " + "fluxsmoothst fluxsmootht framediff framenumber frfun3b frfun7 " + "gicocu golddust gradfun2db grapesmoother greedyhma grid " + "guavacomb hqdn3d hybridfupp hysteresymask ibob " + "improvesceneswitch inflate inpand inpaintlogo interframe " + "interlacedresize interlacedwarpedresize interleaved2planar " + "iscombed iscombedt iscombedtivtc kerneldeint leakkernelbob " + "leakkerneldeint limitedsharpen limitedsharpenfaster logic lsfmod " + "lumafilter lumayv12 manalyse maskeddeinterlace maskedmerge " + "maskedmix mblockfps mcompensate mctemporaldenoise " + "mctemporaldenoisepp mdegrain1 mdegrain2 mdegrain3 mdepan " + "medianblur mergehints mflow mflowblur mflowfps mflowinter " + "minblur mipsmooth mmask moderatesharpen monitorfilter motionmask " + "mpasource mpeg2source mrecalculate mscdetection msharpen mshow " + "msmooth msu_fieldshiftfixer msu_frc msuper mt mt_adddiff " + "mt_average mt_binarize mt_circle mt_clamp mt_convolution " + "mt_deflate mt_diamond mt_edge mt_ellipse mt_expand " + "mt_freeellipse mt_freelosange mt_freerectangle mt_hysteresis " + "mt_infix mt_inflate mt_inpand mt_invert mt_logic mt_losange " + "mt_lut mt_lutf mt_luts mt_lutspa mt_lutsx mt_lutxy mt_lutxyz " + "mt_makediff mt_mappedblur mt_merge mt_motion mt_polish " + "mt_rectangle mt_square mti mtsource multidecimate mvanalyse " + "mvblockfps mvchangecompensate mvcompensate mvdegrain1 mvdegrain2 " + "mvdegrain3 mvdenoise mvdepan mvflow mvflowblur mvflowfps " + "mvflowfps2 mvflowinter mvincrease mvmask mvrecalculate " + "mvscdetection mvshow nicac3source nicdtssource niclpcmsource " + "nicmpasource nicmpg123source nnedi nnedi2 nnedi2_rpow2 nnedi3 " + "nnedi3_rpow2 nomosmooth overlaymask peachsmoother pixiedust " + "planar2interleaved qtgmc qtinput rawavsource rawsource " + "reduceflicker reinterpolate411 removedirt removedust removegrain " + "removegrainhd removetemporalgrain repair requestlinear " + "reversefielddominance rgb3dlut rgdeinterlace rgsdeinterlace " + "rgblut rotate sangnom seesaw sharpen2 showchannels " + "showcombedtivtc smartdecimate smartdeinterlace smdegrain " + "smoothdeinterlace smoothuv soothess soxfilter spacedust sshiq " + "ssim ssiq stmedianfilter t3dlut tanisotropic tbilateral tcanny " + "tcomb tcombmask tcpserver tcpsource tdecimate tdeint tedgemask " + "telecide temporalcleaner temporalrepair temporalsmoother " + "tfieldblank tfm tisophote tivtc tmaskblank tmaskedmerge " + "tmaskedmerge3 tmm tmonitor tnlmeans tomsmocomp toon textsub " + "ttempsmooth ttempsmoothf tunsharp unblock uncomb undot unfilter " + "unsharpmask vaguedenoiser variableblur verticalcleaner " + "videoscope vinverse vobsub vqmcalc warpedresize warpsharp " + "xsharpen yadif yadifmod yuy2lut yv12convolution " + "yv12interlacedreduceby2 yv12interlacedselecttopfields yv12layer " + "yv12lut yv12lutxy yv12substract yv12torgb24 yv12toyuy2"; + + if (set == 4) + return + "abs apply assert bool ceil chr clip continueddenominator " + "continuednumerator cos default defined eval averagechromau " + "averagechromav averageluma chromaudifference chromavdifference " + "lumadifference exist exp findstr float floor frac hexvalue " + "import int isbool isclip isfloat isint isstring lcase leftstr " + "load_stdcall_plugin loadcplugin loadplugin loadvfapiplugin " + "loadvirtualdubplugin log midstr muldiv nop opt_allowfloataudio " + "opt_avipadscanlines opt_dwchannelmask opt_usewaveextensible " + "opt_vdubplanarhack pi pow rand revstr rightstr round scriptdir " + "scriptfile scriptname select setmemorymax " + "setplanarlegacyalignment rgbdifference rgbdifferencefromprevious " + "rgbdifferencetonext udifferencefromprevious udifferencetonext " + "setworkingdir sign sin spline sqrt string strlen time ucase " + "undefined value versionnumber versionstring uplanemax " + "uplanemedian uplanemin uplaneminmaxdifference " + "vdifferencefromprevious vdifferencetonext vplanemax vplanemedian " + "vplanemin vplaneminmaxdifference ydifferencefromprevious " + "ydifferencetonext yplanemax yplanemedian yplanemin " + "yplaneminmaxdifference"; + + if (set == 5) + return + "audiobits audiochannels audiolength audiolengthf audiorate " + "framecount framerate frameratedenominator frameratenumerator " + "getleftchannel getrightchannel hasaudio hasvideo height " + "isaudiofloat isaudioint isfieldbased isframebased isinterleaved " + "isplanar isrgb isrgb24 isrgb32 isyuv isyuy2 isyv12 width"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerAVS::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case BlockComment: + return tr("Block comment"); + + case NestedBlockComment: + return tr("Nested block comment"); + + case LineComment: + return tr("Line comment"); + + case Number: + return tr("Number"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case String: + return tr("Double-quoted string"); + + case TripleString: + return tr("Triple double-quoted string"); + + case Keyword: + return tr("Keyword"); + + case Filter: + return tr("Filter"); + + case Plugin: + return tr("Plugin"); + + case Function: + return tr("Function"); + + case ClipProperty: + return tr("Clip property"); + + case KeywordSet6: + return tr("User defined"); + } + + return QString(); +} + + +// Refresh all properties. +void QsciLexerAVS::refreshProperties() +{ + setCommentProp(); + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerAVS::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerAVS::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerAVS::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerAVS::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerAVS::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerAVS::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerAVS::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerAVS::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} diff --git a/Qt3/qscilexerbash.cpp b/Qt3/qscilexerbash.cpp new file mode 100644 index 0000000..3830378 --- /dev/null +++ b/Qt3/qscilexerbash.cpp @@ -0,0 +1,371 @@ +// This module implements the QsciLexerBash class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerbash.h" + +#include +#include +#include + + +// The ctor. +QsciLexerBash::QsciLexerBash(QObject *parent, const char *name) + : QsciLexer(parent, name), fold_comments(false), fold_compact(true) +{ +} + + +// The dtor. +QsciLexerBash::~QsciLexerBash() +{ +} + + +// Returns the language name. +const char *QsciLexerBash::language() const +{ + return "Bash"; +} + + +// Returns the lexer name. +const char *QsciLexerBash::lexer() const +{ + return "bash"; +} + + +// Return the style used for braces. +int QsciLexerBash::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerBash::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$@%&"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerBash::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Error: + case Backticks: + return QColor(0xff,0xff,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + case SingleQuotedHereDocument: + return QColor(0x7f,0x00,0x7f); + + case Operator: + case Identifier: + case Scalar: + case ParameterExpansion: + case HereDocumentDelimiter: + return QColor(0x00,0x00,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerBash::defaultEolFill(int style) const +{ + switch (style) + { + case SingleQuotedHereDocument: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerBash::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DoubleQuotedString: + case SingleQuotedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerBash::keywords(int set) const +{ + if (set == 1) + return + "alias ar asa awk banner basename bash bc bdiff break " + "bunzip2 bzip2 cal calendar case cat cc cd chmod " + "cksum clear cmp col comm compress continue cp cpio " + "crypt csplit ctags cut date dc dd declare deroff dev " + "df diff diff3 dircmp dirname do done du echo ed " + "egrep elif else env esac eval ex exec exit expand " + "export expr false fc fgrep fi file find fmt fold for " + "function functions getconf getopt getopts grep gres " + "hash head help history iconv id if in integer jobs " + "join kill local lc let line ln logname look ls m4 " + "mail mailx make man mkdir more mt mv newgrp nl nm " + "nohup ntps od pack paste patch pathchk pax pcat perl " + "pg pr print printf ps pwd read readonly red return " + "rev rm rmdir sed select set sh shift size sleep sort " + "spell split start stop strings strip stty sum " + "suspend sync tail tar tee test then time times touch " + "tr trap true tsort tty type typeset ulimit umask " + "unalias uname uncompress unexpand uniq unpack unset " + "until uudecode uuencode vi vim vpax wait wc whence " + "which while who wpaste wstart xargs zcat " + + "chgrp chown chroot dir dircolors factor groups " + "hostid install link md5sum mkfifo mknod nice pinky " + "printenv ptx readlink seq sha1sum shred stat su tac " + "unlink users vdir whoami yes"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerBash::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Error: + return tr("Error"); + + case Comment: + return tr("Comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case Scalar: + return tr("Scalar"); + + case ParameterExpansion: + return tr("Parameter expansion"); + + case Backticks: + return tr("Backticks"); + + case HereDocumentDelimiter: + return tr("Here document delimiter"); + + case SingleQuotedHereDocument: + return tr("Single-quoted here document"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerBash::defaultPaper(int style) const +{ + switch (style) + { + case Error: + return QColor(0xff,0x00,0x00); + + case Scalar: + return QColor(0xff,0xe0,0xe0); + + case ParameterExpansion: + return QColor(0xff,0xff,0xe0); + + case Backticks: + return QColor(0xa0,0x80,0x80); + + case HereDocumentDelimiter: + case SingleQuotedHereDocument: + return QColor(0xdd,0xd0,0xdd); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerBash::refreshProperties() +{ + setCommentProp(); + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerBash::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerBash::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerBash::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerBash::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerBash::setCommentProp() +{ + emit propertyChanged("fold.comment", (fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerBash::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerBash::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerBash::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} diff --git a/Qt3/qscilexerbatch.cpp b/Qt3/qscilexerbatch.cpp new file mode 100644 index 0000000..923dd9b --- /dev/null +++ b/Qt3/qscilexerbatch.cpp @@ -0,0 +1,217 @@ +// This module implements the QsciLexerBatch class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerbatch.h" + +#include +#include +#include + + +// The ctor. +QsciLexerBatch::QsciLexerBatch(QObject *parent, const char *name) + : QsciLexer(parent, name) +{ +} + + +// The dtor. +QsciLexerBatch::~QsciLexerBatch() +{ +} + + +// Returns the language name. +const char *QsciLexerBatch::language() const +{ + return "Batch"; +} + + +// Returns the lexer name. +const char *QsciLexerBatch::lexer() const +{ + return "batch"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerBatch::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerBatch::defaultColor(int style) const +{ + switch (style) + { + case Default: + case Operator: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Keyword: + case ExternalCommand: + return QColor(0x00,0x00,0x7f); + + case Label: + return QColor(0x7f,0x00,0x7f); + + case HideCommandChar: + return QColor(0x7f,0x7f,0x00); + + case Variable: + return QColor(0x80,0x00,0x80); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerBatch::defaultEolFill(int style) const +{ + switch (style) + { + case Label: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerBatch::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case ExternalCommand: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerBatch::keywords(int set) const +{ + if (set == 1) + return + "rem set if exist errorlevel for in do break call " + "chcp cd chdir choice cls country ctty date del " + "erase dir echo exit goto loadfix loadhigh mkdir md " + "move path pause prompt rename ren rmdir rd shift " + "time type ver verify vol com con lpt nul"; + + return 0; +} + + +// Return the case sensitivity. +bool QsciLexerBatch::caseSensitive() const +{ + return false; +} + + +// Returns the user name of a style. +QString QsciLexerBatch::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Keyword: + return tr("Keyword"); + + case Label: + return tr("Label"); + + case HideCommandChar: + return tr("Hide command character"); + + case ExternalCommand: + return tr("External command"); + + case Variable: + return tr("Variable"); + + case Operator: + return tr("Operator"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerBatch::defaultPaper(int style) const +{ + switch (style) + { + case Label: + return QColor(0x60,0x60,0x60); + } + + return QsciLexer::defaultPaper(style); +} diff --git a/Qt3/qscilexercmake.cpp b/Qt3/qscilexercmake.cpp new file mode 100644 index 0000000..6a49bdf --- /dev/null +++ b/Qt3/qscilexercmake.cpp @@ -0,0 +1,318 @@ +// This module implements the QsciLexerCMake class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercmake.h" + +#include +#include +#include + + +// The ctor. +QsciLexerCMake::QsciLexerCMake(QObject *parent, const char *name) + : QsciLexer(parent,name), + fold_atelse(false) +{ +} + + +// The dtor. +QsciLexerCMake::~QsciLexerCMake() +{ +} + + +// Returns the language name. +const char *QsciLexerCMake::language() const +{ + return "CMake"; +} + + +// Returns the lexer name. +const char *QsciLexerCMake::lexer() const +{ + return "cmake"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerCMake::defaultColor(int style) const +{ + switch (style) + { + case Default: + case KeywordSet3: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case String: + case StringLeftQuote: + case StringRightQuote: + return QColor(0x7f,0x00,0x7f); + + case Function: + case BlockWhile: + case BlockForeach: + case BlockIf: + case BlockMacro: + return QColor(0x00,0x00,0x7f); + + case Variable: + return QColor(0x80,0x00,0x00); + + case Label: + case StringVariable: + return QColor(0xcc,0x33,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerCMake::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Function: + case BlockWhile: + case BlockForeach: + case BlockIf: + case BlockMacro: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerCMake::keywords(int set) const +{ + if (set == 1) + return + "add_custom_command add_custom_target add_definitions " + "add_dependencies add_executable add_library add_subdirectory " + "add_test aux_source_directory build_command build_name " + "cmake_minimum_required configure_file create_test_sourcelist " + "else elseif enable_language enable_testing endforeach endif " + "endmacro endwhile exec_program execute_process " + "export_library_dependencies file find_file find_library " + "find_package find_path find_program fltk_wrap_ui foreach " + "get_cmake_property get_directory_property get_filename_component " + "get_source_file_property get_target_property get_test_property " + "if include include_directories include_external_msproject " + "include_regular_expression install install_files " + "install_programs install_targets link_directories link_libraries " + "list load_cache load_command macro make_directory " + "mark_as_advanced math message option output_required_files " + "project qt_wrap_cpp qt_wrap_ui remove remove_definitions " + "separate_arguments set set_directory_properties " + "set_source_files_properties set_target_properties " + "set_tests_properties site_name source_group string " + "subdir_depends subdirs target_link_libraries try_compile try_run " + "use_mangled_mesa utility_source variable_requires " + "vtk_make_instantiator vtk_wrap_java vtk_wrap_python vtk_wrap_tcl " + "while write_file"; + + if (set == 2) + return + "ABSOLUTE ABSTRACT ADDITIONAL_MAKE_CLEAN_FILES ALL AND APPEND " + "ARGS ASCII BEFORE CACHE CACHE_VARIABLES CLEAR COMMAND COMMANDS " + "COMMAND_NAME COMMENT COMPARE COMPILE_FLAGS COPYONLY DEFINED " + "DEFINE_SYMBOL DEPENDS DOC EQUAL ESCAPE_QUOTES EXCLUDE " + "EXCLUDE_FROM_ALL EXISTS EXPORT_MACRO EXT EXTRA_INCLUDE " + "FATAL_ERROR FILE FILES FORCE FUNCTION GENERATED GLOB " + "GLOB_RECURSE GREATER GROUP_SIZE HEADER_FILE_ONLY HEADER_LOCATION " + "IMMEDIATE INCLUDES INCLUDE_DIRECTORIES INCLUDE_INTERNALS " + "INCLUDE_REGULAR_EXPRESSION LESS LINK_DIRECTORIES LINK_FLAGS " + "LOCATION MACOSX_BUNDLE MACROS MAIN_DEPENDENCY MAKE_DIRECTORY " + "MATCH MATCHALL MATCHES MODULE NAME NAME_WE NOT NOTEQUAL " + "NO_SYSTEM_PATH OBJECT_DEPENDS OPTIONAL OR OUTPUT OUTPUT_VARIABLE " + "PATH PATHS POST_BUILD POST_INSTALL_SCRIPT PREFIX PREORDER " + "PRE_BUILD PRE_INSTALL_SCRIPT PRE_LINK PROGRAM PROGRAM_ARGS " + "PROPERTIES QUIET RANGE READ REGEX REGULAR_EXPRESSION REPLACE " + "REQUIRED RETURN_VALUE RUNTIME_DIRECTORY SEND_ERROR SHARED " + "SOURCES STATIC STATUS STREQUAL STRGREATER STRLESS SUFFIX TARGET " + "TOLOWER TOUPPER VAR VARIABLES VERSION WIN32 WRAP_EXCLUDE WRITE " + "APPLE MINGW MSYS CYGWIN BORLAND WATCOM MSVC MSVC_IDE MSVC60 " + "MSVC70 MSVC71 MSVC80 CMAKE_COMPILER_2005 OFF ON"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerCMake::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case String: + return tr("String"); + + case StringLeftQuote: + return tr("Left quoted string"); + + case StringRightQuote: + return tr("Right quoted string"); + + case Function: + return tr("Function"); + + case Variable: + return tr("Variable"); + + case Label: + return tr("Label"); + + case KeywordSet3: + return tr("User defined"); + + case BlockWhile: + return tr("WHILE block"); + + case BlockForeach: + return tr("FOREACH block"); + + case BlockIf: + return tr("IF block"); + + case BlockMacro: + return tr("MACRO block"); + + case StringVariable: + return tr("Variable within a string"); + + case Number: + return tr("Number"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerCMake::defaultPaper(int style) const +{ + switch (style) + { + case String: + case StringLeftQuote: + case StringRightQuote: + case StringVariable: + return QColor(0xee,0xee,0xee); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerCMake::refreshProperties() +{ + setAtElseProp(); +} + + +// Read properties from the settings. +bool QsciLexerCMake::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldatelse", false, &ok); + + if (ok) + fold_atelse = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerCMake::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldatelse", fold_atelse)) + rc = false; + + return rc; +} + + +// Return true if ELSE blocks can be folded. +bool QsciLexerCMake::foldAtElse() const +{ + return fold_atelse; +} + + +// Set if ELSE blocks can be folded. +void QsciLexerCMake::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerCMake::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} diff --git a/Qt3/qscilexercoffeescript.cpp b/Qt3/qscilexercoffeescript.cpp new file mode 100644 index 0000000..1a013cb --- /dev/null +++ b/Qt3/qscilexercoffeescript.cpp @@ -0,0 +1,485 @@ +// This module implements the QsciLexerCoffeeScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercoffeescript.h" + +#include +#include +#include + + +// The ctor. +QsciLexerCoffeeScript::QsciLexerCoffeeScript(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_comments(false), fold_compact(true), style_preproc(false), + dollars(true) +{ +} + + +// The dtor. +QsciLexerCoffeeScript::~QsciLexerCoffeeScript() +{ +} + + +// Returns the language name. +const char *QsciLexerCoffeeScript::language() const +{ + return "CoffeeScript"; +} + + +// Returns the lexer name. +const char *QsciLexerCoffeeScript::lexer() const +{ + return "coffeescript"; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerCoffeeScript::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "."; + + return wl; +} + + +// Return the list of keywords that can start a block. +const char *QsciLexerCoffeeScript::blockStartKeyword(int *style) const +{ + if (style) + *style = Keyword; + + return "catch class do else finally for if try until when while"; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerCoffeeScript::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "{"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerCoffeeScript::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "}"; +} + + +// Return the style used for braces. +int QsciLexerCoffeeScript::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerCoffeeScript::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerCoffeeScript::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80, 0x80, 0x80); + + case Comment: + case CommentLine: + case CommentBlock: + case BlockRegexComment: + return QColor(0x00, 0x7f, 0x00); + + case CommentDoc: + case CommentLineDoc: + return QColor(0x3f, 0x70, 0x3f); + + case Number: + return QColor(0x00, 0x7f, 0x7f); + + case Keyword: + return QColor(0x00, 0x00, 0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + return QColor(0x7f, 0x00, 0x7f); + + case PreProcessor: + return QColor(0x7f, 0x7f, 0x00); + + case Operator: + case UnclosedString: + return QColor(0x00, 0x00, 0x00); + + case VerbatimString: + return QColor(0x00, 0x7f, 0x00); + + case Regex: + case BlockRegex: + return QColor(0x3f, 0x7f, 0x3f); + + case CommentDocKeyword: + return QColor(0x30, 0x60, 0xa0); + + case CommentDocKeywordError: + return QColor(0x80, 0x40, 0x20); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerCoffeeScript::defaultEolFill(int style) const +{ + switch (style) + { + case UnclosedString: + case VerbatimString: + case Regex: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerCoffeeScript::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case CommentDoc: + case CommentLineDoc: + case CommentDocKeyword: + case CommentDocKeywordError: + case CommentBlock: + case BlockRegexComment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DoubleQuotedString: + case SingleQuotedString: + case UnclosedString: + case VerbatimString: + case Regex: + case BlockRegex: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerCoffeeScript::keywords(int set) const +{ + if (set == 1) + return + "true false null this new delete typeof in instanceof return " + "throw break continue debugger if else switch for while do try " + "catch finally class extends super " + "undefined then unless until loop of by when and or is isnt not " + "yes no on off"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerCoffeeScript::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("C-style comment"); + + case CommentLine: + return tr("C++-style comment"); + + case CommentDoc: + return tr("JavaDoc C-style comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case UUID: + return tr("IDL UUID"); + + case PreProcessor: + return tr("Pre-processor block"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case UnclosedString: + return tr("Unclosed string"); + + case VerbatimString: + return tr("C# verbatim string"); + + case Regex: + return tr("Regular expression"); + + case CommentLineDoc: + return tr("JavaDoc C++-style comment"); + + case KeywordSet2: + return tr("Secondary keywords and identifiers"); + + case CommentDocKeyword: + return tr("JavaDoc keyword"); + + case CommentDocKeywordError: + return tr("JavaDoc keyword error"); + + case GlobalClass: + return tr("Global classes"); + + case CommentBlock: + return tr("Block comment"); + + case BlockRegex: + return tr("Block regular expression"); + + case BlockRegexComment: + return tr("Block regular expression comment"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerCoffeeScript::defaultPaper(int style) const +{ + switch (style) + { + case UnclosedString: + return QColor(0xe0,0xc0,0xe0); + + case VerbatimString: + return QColor(0xe0,0xff,0xe0); + + case Regex: + return QColor(0xe0,0xf0,0xe0); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerCoffeeScript::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setStylePreprocProp(); + setDollarsProp(); +} + + +// Read properties from the settings. +bool QsciLexerCoffeeScript::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "stylepreprocessor", false, &ok); + + if (ok) + style_preproc = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "dollars", true, &ok); + + if (ok) + dollars = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerCoffeeScript::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "stylepreprocessor", style_preproc)) + rc = false; + + if (!qs.writeEntry(prefix + "dollars", dollars)) + rc = false; + + return rc; +} + + +// Set if comments can be folded. +void QsciLexerCoffeeScript::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerCoffeeScript::setCommentProp() +{ + emit propertyChanged("fold.coffeescript.comment", + (fold_comments ? "1" : "0")); +} + + +// Set if folds are compact +void QsciLexerCoffeeScript::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerCoffeeScript::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} + + +// Set if preprocessor lines are styled. +void QsciLexerCoffeeScript::setStylePreprocessor(bool style) +{ + style_preproc = style; + + setStylePreprocProp(); +} + + +// Set the "styling.within.preprocessor" property. +void QsciLexerCoffeeScript::setStylePreprocProp() +{ + emit propertyChanged("styling.within.preprocessor", + (style_preproc ? "1" : "0")); +} + + +// Set if '$' characters are allowed. +void QsciLexerCoffeeScript::setDollarsAllowed(bool allowed) +{ + dollars = allowed; + + setDollarsProp(); +} + + +// Set the "lexer.cpp.allow.dollars" property. +void QsciLexerCoffeeScript::setDollarsProp() +{ + emit propertyChanged("lexer.cpp.allow.dollars", (dollars ? "1" : "0")); +} diff --git a/Qt3/qscilexercpp.cpp b/Qt3/qscilexercpp.cpp new file mode 100644 index 0000000..22c973b --- /dev/null +++ b/Qt3/qscilexercpp.cpp @@ -0,0 +1,782 @@ +// This module implements the QsciLexerCPP class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercpp.h" + +#include +#include +#include + + +// The ctor. +QsciLexerCPP::QsciLexerCPP(QObject *parent, const char *name, + bool caseInsensitiveKeywords) + : QsciLexer(parent, name), + fold_atelse(false), fold_comments(false), fold_compact(true), + fold_preproc(true), style_preproc(false), dollars(true), + highlight_triple(false), highlight_hash(false), + nocase(caseInsensitiveKeywords) +{ +} + + +// The dtor. +QsciLexerCPP::~QsciLexerCPP() +{ +} + + +// Returns the language name. +const char *QsciLexerCPP::language() const +{ + return "C++"; +} + + +// Returns the lexer name. +const char *QsciLexerCPP::lexer() const +{ + return (nocase ? "cppnocase" : "cpp"); +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerCPP::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "::" << "->" << "."; + + return wl; +} + + +// Return the list of keywords that can start a block. +const char *QsciLexerCPP::blockStartKeyword(int *style) const +{ + if (style) + *style = Keyword; + + return "case catch class default do else finally for if private " + "protected public struct try union while"; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerCPP::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "{"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerCPP::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "}"; +} + + +// Return the style used for braces. +int QsciLexerCPP::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerCPP::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerCPP::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80, 0x80, 0x80); + + case Comment: + case CommentLine: + return QColor(0x00, 0x7f, 0x00); + + case CommentDoc: + case CommentLineDoc: + case PreProcessorCommentLineDoc: + return QColor(0x3f, 0x70, 0x3f); + + case Number: + return QColor(0x00, 0x7f, 0x7f); + + case Keyword: + return QColor(0x00, 0x00, 0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + case RawString: + return QColor(0x7f, 0x00, 0x7f); + + case PreProcessor: + return QColor(0x7f, 0x7f, 0x00); + + case Operator: + case UnclosedString: + return QColor(0x00, 0x00, 0x00); + + case VerbatimString: + case TripleQuotedVerbatimString: + case HashQuotedString: + return QColor(0x00, 0x7f, 0x00); + + case Regex: + return QColor(0x3f, 0x7f, 0x3f); + + case CommentDocKeyword: + return QColor(0x30, 0x60, 0xa0); + + case CommentDocKeywordError: + return QColor(0x80, 0x40, 0x20); + + case PreProcessorComment: + return QColor(0x65, 0x99, 0x00); + + case InactiveDefault: + case InactiveUUID: + case InactiveCommentLineDoc: + case InactiveKeywordSet2: + case InactiveCommentDocKeyword: + case InactiveCommentDocKeywordError: + case InactivePreProcessorCommentLineDoc: + return QColor(0xc0, 0xc0, 0xc0); + + case InactiveComment: + case InactiveCommentLine: + case InactiveNumber: + case InactiveVerbatimString: + case InactiveTripleQuotedVerbatimString: + case InactiveHashQuotedString: + return QColor(0x90, 0xb0, 0x90); + + case InactiveCommentDoc: + return QColor(0xd0, 0xd0, 0xd0); + + case InactiveKeyword: + return QColor(0x90, 0x90, 0xb0); + + case InactiveDoubleQuotedString: + case InactiveSingleQuotedString: + case InactiveRawString: + return QColor(0xb0, 0x90, 0xb0); + + case InactivePreProcessor: + return QColor(0xb0, 0xb0, 0x90); + + case InactiveOperator: + case InactiveIdentifier: + case InactiveGlobalClass: + return QColor(0xb0, 0xb0, 0xb0); + + case InactiveUnclosedString: + return QColor(0x00, 0x00, 0x00); + + case InactiveRegex: + return QColor(0x7f, 0xaf, 0x7f); + + case InactivePreProcessorComment: + return QColor(0xa0, 0xc0, 0x90); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerCPP::defaultEolFill(int style) const +{ + switch (style) + { + case UnclosedString: + case InactiveUnclosedString: + case VerbatimString: + case InactiveVerbatimString: + case Regex: + case InactiveRegex: + case TripleQuotedVerbatimString: + case InactiveTripleQuotedVerbatimString: + case HashQuotedString: + case InactiveHashQuotedString: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerCPP::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case InactiveComment: + case CommentLine: + case InactiveCommentLine: + case CommentDoc: + case InactiveCommentDoc: + case CommentLineDoc: + case InactiveCommentLineDoc: + case CommentDocKeyword: + case InactiveCommentDocKeyword: + case CommentDocKeywordError: + case InactiveCommentDocKeywordError: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case InactiveKeyword: + case Operator: + case InactiveOperator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DoubleQuotedString: + case InactiveDoubleQuotedString: + case SingleQuotedString: + case InactiveSingleQuotedString: + case UnclosedString: + case InactiveUnclosedString: + case VerbatimString: + case InactiveVerbatimString: + case Regex: + case InactiveRegex: + case TripleQuotedVerbatimString: + case InactiveTripleQuotedVerbatimString: + case HashQuotedString: + case InactiveHashQuotedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerCPP::keywords(int set) const +{ + if (set == 1) + return + "and and_eq asm auto bitand bitor bool break case " + "catch char class compl const const_cast continue " + "default delete do double dynamic_cast else enum " + "explicit export extern false float for friend goto if " + "inline int long mutable namespace new not not_eq " + "operator or or_eq private protected public register " + "reinterpret_cast return short signed sizeof static " + "static_cast struct switch template this throw true " + "try typedef typeid typename union unsigned using " + "virtual void volatile wchar_t while xor xor_eq"; + + if (set == 3) + return + "a addindex addtogroup anchor arg attention author b " + "brief bug c class code date def defgroup deprecated " + "dontinclude e em endcode endhtmlonly endif " + "endlatexonly endlink endverbatim enum example " + "exception f$ f[ f] file fn hideinitializer " + "htmlinclude htmlonly if image include ingroup " + "internal invariant interface latexonly li line link " + "mainpage name namespace nosubgrouping note overload " + "p page par param post pre ref relates remarks return " + "retval sa section see showinitializer since skip " + "skipline struct subsection test throw todo typedef " + "union until var verbatim verbinclude version warning " + "weakgroup $ @ \\ & < > # { }"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerCPP::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case InactiveDefault: + return tr("Inactive default"); + + case Comment: + return tr("C comment"); + + case InactiveComment: + return tr("Inactive C comment"); + + case CommentLine: + return tr("C++ comment"); + + case InactiveCommentLine: + return tr("Inactive C++ comment"); + + case CommentDoc: + return tr("JavaDoc style C comment"); + + case InactiveCommentDoc: + return tr("Inactive JavaDoc style C comment"); + + case Number: + return tr("Number"); + + case InactiveNumber: + return tr("Inactive number"); + + case Keyword: + return tr("Keyword"); + + case InactiveKeyword: + return tr("Inactive keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case InactiveDoubleQuotedString: + return tr("Inactive double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case InactiveSingleQuotedString: + return tr("Inactive single-quoted string"); + + case UUID: + return tr("IDL UUID"); + + case InactiveUUID: + return tr("Inactive IDL UUID"); + + case PreProcessor: + return tr("Pre-processor block"); + + case InactivePreProcessor: + return tr("Inactive pre-processor block"); + + case Operator: + return tr("Operator"); + + case InactiveOperator: + return tr("Inactive operator"); + + case Identifier: + return tr("Identifier"); + + case InactiveIdentifier: + return tr("Inactive identifier"); + + case UnclosedString: + return tr("Unclosed string"); + + case InactiveUnclosedString: + return tr("Inactive unclosed string"); + + case VerbatimString: + return tr("C# verbatim string"); + + case InactiveVerbatimString: + return tr("Inactive C# verbatim string"); + + case Regex: + return tr("JavaScript regular expression"); + + case InactiveRegex: + return tr("Inactive JavaScript regular expression"); + + case CommentLineDoc: + return tr("JavaDoc style C++ comment"); + + case InactiveCommentLineDoc: + return tr("Inactive JavaDoc style C++ comment"); + + case KeywordSet2: + return tr("Secondary keywords and identifiers"); + + case InactiveKeywordSet2: + return tr("Inactive secondary keywords and identifiers"); + + case CommentDocKeyword: + return tr("JavaDoc keyword"); + + case InactiveCommentDocKeyword: + return tr("Inactive JavaDoc keyword"); + + case CommentDocKeywordError: + return tr("JavaDoc keyword error"); + + case InactiveCommentDocKeywordError: + return tr("Inactive JavaDoc keyword error"); + + case GlobalClass: + return tr("Global classes and typedefs"); + + case InactiveGlobalClass: + return tr("Inactive global classes and typedefs"); + + case RawString: + return tr("C++ raw string"); + + case InactiveRawString: + return tr("Inactive C++ raw string"); + + case TripleQuotedVerbatimString: + return tr("Vala triple-quoted verbatim string"); + + case InactiveTripleQuotedVerbatimString: + return tr("Inactive Vala triple-quoted verbatim string"); + + case HashQuotedString: + return tr("Pike hash-quoted string"); + + case InactiveHashQuotedString: + return tr("Inactive Pike hash-quoted string"); + + case PreProcessorComment: + return tr("Pre-processor C comment"); + + case InactivePreProcessorComment: + return tr("Inactive pre-processor C comment"); + + case PreProcessorCommentLineDoc: + return tr("JavaDoc style pre-processor comment"); + + case InactivePreProcessorCommentLineDoc: + return tr("Inactive JavaDoc style pre-processor comment"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerCPP::defaultPaper(int style) const +{ + switch (style) + { + case UnclosedString: + case InactiveUnclosedString: + return QColor(0xe0,0xc0,0xe0); + + case VerbatimString: + case InactiveVerbatimString: + case TripleQuotedVerbatimString: + case InactiveTripleQuotedVerbatimString: + return QColor(0xe0,0xff,0xe0); + + case Regex: + case InactiveRegex: + return QColor(0xe0,0xf0,0xe0); + + case RawString: + case InactiveRawString: + return QColor(0xff,0xf3,0xff); + + case HashQuotedString: + case InactiveHashQuotedString: + return QColor(0xe7,0xff,0xd7); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerCPP::refreshProperties() +{ + setAtElseProp(); + setCommentProp(); + setCompactProp(); + setPreprocProp(); + setStylePreprocProp(); + setDollarsProp(); + setHighlightTripleProp(); + setHighlightHashProp(); +} + + +// Read properties from the settings. +bool QsciLexerCPP::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldatelse", false, &ok); + + if (ok) + fold_atelse = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldpreprocessor", true, &ok); + + if (ok) + fold_preproc = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "stylepreprocessor", false, &ok); + + if (ok) + style_preproc = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "dollars", true, &ok); + + if (ok) + dollars = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "highlighttriple", false, &ok); + + if (ok) + highlight_triple = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "highlighthash", false, &ok); + + if (ok) + highlight_hash = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerCPP::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldatelse", fold_atelse)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "foldpreprocessor", fold_preproc)) + rc = false; + + if (!qs.writeEntry(prefix + "stylepreprocessor", style_preproc)) + rc = false; + + if (!qs.writeEntry(prefix + "dollars", dollars)) + rc = false; + + if (!qs.writeEntry(prefix + "highlighttriple", highlight_triple)) + rc = false; + + if (!qs.writeEntry(prefix + "highlighthash", highlight_hash)) + rc = false; + + return rc; +} + + +// Set if else can be folded. +void QsciLexerCPP::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerCPP::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} + + +// Set if comments can be folded. +void QsciLexerCPP::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerCPP::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Set if folds are compact +void QsciLexerCPP::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerCPP::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Set if preprocessor blocks can be folded. +void QsciLexerCPP::setFoldPreprocessor(bool fold) +{ + fold_preproc = fold; + + setPreprocProp(); +} + + +// Set the "fold.preprocessor" property. +void QsciLexerCPP::setPreprocProp() +{ + emit propertyChanged("fold.preprocessor",(fold_preproc ? "1" : "0")); +} + + +// Set if preprocessor lines are styled. +void QsciLexerCPP::setStylePreprocessor(bool style) +{ + style_preproc = style; + + setStylePreprocProp(); +} + + +// Set the "styling.within.preprocessor" property. +void QsciLexerCPP::setStylePreprocProp() +{ + emit propertyChanged("styling.within.preprocessor",(style_preproc ? "1" : "0")); +} + + +// Set if '$' characters are allowed. +void QsciLexerCPP::setDollarsAllowed(bool allowed) +{ + dollars = allowed; + + setDollarsProp(); +} + + +// Set the "lexer.cpp.allow.dollars" property. +void QsciLexerCPP::setDollarsProp() +{ + emit propertyChanged("lexer.cpp.allow.dollars",(dollars ? "1" : "0")); +} + + +// Set if triple quoted strings are highlighted. +void QsciLexerCPP::setHighlightTripleQuotedStrings(bool enabled) +{ + highlight_triple = enabled; + + setHighlightTripleProp(); +} + + +// Set the "lexer.cpp.triplequoted.strings" property. +void QsciLexerCPP::setHighlightTripleProp() +{ + emit propertyChanged("lexer.cpp.triplequoted.strings", + (highlight_triple ? "1" : "0")); +} + + +// Set if hash quoted strings are highlighted. +void QsciLexerCPP::setHighlightHashQuotedStrings(bool enabled) +{ + highlight_hash = enabled; + + setHighlightHashProp(); +} + + +// Set the "lexer.cpp.hashquoted.strings" property. +void QsciLexerCPP::setHighlightHashProp() +{ + emit propertyChanged("lexer.cpp.hashquoted.strings", + (highlight_hash ? "1" : "0")); +} diff --git a/Qt3/qscilexercsharp.cpp b/Qt3/qscilexercsharp.cpp new file mode 100644 index 0000000..e05c74c --- /dev/null +++ b/Qt3/qscilexercsharp.cpp @@ -0,0 +1,123 @@ +// This module implements the QsciLexerCSharp class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercsharp.h" + +#include +#include + + +// The ctor. +QsciLexerCSharp::QsciLexerCSharp(QObject *parent, const char *name) + : QsciLexerCPP(parent, name) +{ +} + + +// The dtor. +QsciLexerCSharp::~QsciLexerCSharp() +{ +} + + +// Returns the language name. +const char *QsciLexerCSharp::language() const +{ + return "C#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerCSharp::defaultColor(int style) const +{ + if (style == VerbatimString) + return QColor(0x00,0x7f,0x00); + + return QsciLexerCPP::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerCSharp::defaultEolFill(int style) const +{ + if (style == VerbatimString) + return true; + + return QsciLexerCPP::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerCSharp::defaultFont(int style) const +{ + if (style == VerbatimString) +#if defined(Q_OS_WIN) + return QFont("Courier New",10); +#elif defined(Q_OS_MAC) + return QFont("Courier", 12); +#else + return QFont("Bitstream Vera Sans Mono",9); +#endif + + return QsciLexerCPP::defaultFont(style); +} + + +// Returns the set of keywords. +const char *QsciLexerCSharp::keywords(int set) const +{ + if (set != 1) + return 0; + + return "abstract as base bool break byte case catch char checked " + "class const continue decimal default delegate do double else " + "enum event explicit extern false finally fixed float for " + "foreach goto if implicit in int interface internal is lock " + "long namespace new null object operator out override params " + "private protected public readonly ref return sbyte sealed " + "short sizeof stackalloc static string struct switch this " + "throw true try typeof uint ulong unchecked unsafe ushort " + "using virtual void while"; +} + + +// Returns the user name of a style. +QString QsciLexerCSharp::description(int style) const +{ + if (style == VerbatimString) + return tr("Verbatim string"); + + return QsciLexerCPP::description(style); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerCSharp::defaultPaper(int style) const +{ + if (style == VerbatimString) + return QColor(0xe0,0xff,0xe0); + + return QsciLexer::defaultPaper(style); +} diff --git a/Qt3/qscilexercss.cpp b/Qt3/qscilexercss.cpp new file mode 100644 index 0000000..aa783c4 --- /dev/null +++ b/Qt3/qscilexercss.cpp @@ -0,0 +1,482 @@ +// This module implements the QsciLexerCSS class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercss.h" + +#include +#include +#include + + +// The ctor. +QsciLexerCSS::QsciLexerCSS(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_comments(false), fold_compact(true), hss_language(false), + less_language(false), scss_language(false) +{ +} + + +// The dtor. +QsciLexerCSS::~QsciLexerCSS() +{ +} + + +// Returns the language name. +const char *QsciLexerCSS::language() const +{ + return "CSS"; +} + + +// Returns the lexer name. +const char *QsciLexerCSS::lexer() const +{ + return "css"; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerCSS::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "{"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerCSS::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "}"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerCSS::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerCSS::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0xff,0x00,0x80); + + case Tag: + return QColor(0x00,0x00,0x7f); + + case PseudoClass: + case Attribute: + return QColor(0x80,0x00,0x00); + + case UnknownPseudoClass: + case UnknownProperty: + return QColor(0xff,0x00,0x00); + + case Operator: + return QColor(0x00,0x00,0x00); + + case CSS1Property: + return QColor(0x00,0x40,0xe0); + + case Value: + case DoubleQuotedString: + case SingleQuotedString: + return QColor(0x7f,0x00,0x7f); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case IDSelector: + return QColor(0x00,0x7f,0x7f); + + case Important: + return QColor(0xff,0x80,0x00); + + case AtRule: + case MediaRule: + return QColor(0x7f,0x7f,0x00); + + case CSS2Property: + return QColor(0x00,0xa0,0xe0); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerCSS::defaultFont(int style) const +{ + QFont f; + + if (style == Comment) +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + else + { + f = QsciLexer::defaultFont(style); + + switch (style) + { + case Tag: + case Important: + case MediaRule: + f.setBold(true); + break; + + case IDSelector: + f.setItalic(true); + break; + } + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerCSS::keywords(int set) const +{ + if (set == 1) + return + "color background-color background-image " + "background-repeat background-attachment " + "background-position background font-family " + "font-style font-variant font-weight font-size font " + "word-spacing letter-spacing text-decoration " + "vertical-align text-transform text-align " + "text-indent line-height margin-top margin-right " + "margin-bottom margin-left margin padding-top " + "padding-right padding-bottom padding-left padding " + "border-top-width border-right-width " + "border-bottom-width border-left-width border-width " + "border-top border-right border-bottom border-left " + "border border-color border-style width height float " + "clear display white-space list-style-type " + "list-style-image list-style-position list-style"; + + if (set == 2) + return + "first-letter first-line link active visited " + "first-child focus hover lang before after left " + "right first"; + + if (set == 3) + return + "border-top-color border-right-color " + "border-bottom-color border-left-color border-color " + "border-top-style border-right-style " + "border-bottom-style border-left-style border-style " + "top right bottom left position z-index direction " + "unicode-bidi min-width max-width min-height " + "max-height overflow clip visibility content quotes " + "counter-reset counter-increment marker-offset size " + "marks page-break-before page-break-after " + "page-break-inside page orphans widows font-stretch " + "font-size-adjust unicode-range units-per-em src " + "panose-1 stemv stemh slope cap-height x-height " + "ascent descent widths bbox definition-src baseline " + "centerline mathline topline text-shadow " + "caption-side table-layout border-collapse " + "border-spacing empty-cells speak-header cursor " + "outline outline-width outline-style outline-color " + "volume speak pause-before pause-after pause " + "cue-before cue-after cue play-during azimuth " + "elevation speech-rate voice-family pitch " + "pitch-range stress richness speak-punctuation " + "speak-numeral"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerCSS::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Tag: + return tr("Tag"); + + case ClassSelector: + return tr("Class selector"); + + case PseudoClass: + return tr("Pseudo-class"); + + case UnknownPseudoClass: + return tr("Unknown pseudo-class"); + + case Operator: + return tr("Operator"); + + case CSS1Property: + return tr("CSS1 property"); + + case UnknownProperty: + return tr("Unknown property"); + + case Value: + return tr("Value"); + + case IDSelector: + return tr("ID selector"); + + case Important: + return tr("Important"); + + case AtRule: + return tr("@-rule"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case CSS2Property: + return tr("CSS2 property"); + + case Attribute: + return tr("Attribute"); + + case CSS3Property: + return tr("CSS3 property"); + + case PseudoElement: + return tr("Pseudo-element"); + + case ExtendedCSSProperty: + return tr("Extended CSS property"); + + case ExtendedPseudoClass: + return tr("Extended pseudo-class"); + + case ExtendedPseudoElement: + return tr("Extended pseudo-element"); + + case MediaRule: + return tr("Media rule"); + + case Variable: + return tr("Variable"); + } + + return QString(); +} + + +// Refresh all properties. +void QsciLexerCSS::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setHSSProp(); + setLessProp(); + setSCSSProp(); +} + + +// Read properties from the settings. +bool QsciLexerCSS::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "hsslanguage", false, &ok); + + if (ok) + hss_language = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "lesslanguage", false, &ok); + + if (ok) + less_language = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "scsslanguage", false, &ok); + + if (ok) + scss_language = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerCSS::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "hsslanguage", hss_language)) + rc = false; + + if (!qs.writeEntry(prefix + "lesslanguage", less_language)) + rc = false; + + if (!qs.writeEntry(prefix + "scsslanguage", scss_language)) + rc = false; + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerCSS::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerCSS::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerCSS::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerCSS::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerCSS::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerCSS::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Set if HSS is supported. +void QsciLexerCSS::setHSSLanguage(bool enabled) +{ + hss_language = enabled; + + setHSSProp(); +} + + +// Set the "lexer.css.hss.language" property. +void QsciLexerCSS::setHSSProp() +{ + emit propertyChanged("lexer.css.hss.language",(hss_language ? "1" : "0")); +} + + +// Set if Less CSS is supported. +void QsciLexerCSS::setLessLanguage(bool enabled) +{ + less_language = enabled; + + setLessProp(); +} + + +// Set the "lexer.css.less.language" property. +void QsciLexerCSS::setLessProp() +{ + emit propertyChanged("lexer.css.less.language",(less_language ? "1" : "0")); +} + + +// Set if Sassy CSS is supported. +void QsciLexerCSS::setSCSSLanguage(bool enabled) +{ + scss_language = enabled; + + setSCSSProp(); +} + + +// Set the "lexer.css.scss.language" property. +void QsciLexerCSS::setSCSSProp() +{ + emit propertyChanged("lexer.css.scss.language",(scss_language ? "1" : "0")); +} diff --git a/Qt3/qscilexercustom.cpp b/Qt3/qscilexercustom.cpp new file mode 100644 index 0000000..d97210b --- /dev/null +++ b/Qt3/qscilexercustom.cpp @@ -0,0 +1,110 @@ +// This module implements the QsciLexerCustom class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercustom.h" + +#include "Qsci/qsciscintilla.h" +#include "Qsci/qsciscintillabase.h" +#include "Qsci/qscistyle.h" + + +// The ctor. +QsciLexerCustom::QsciLexerCustom(QObject *parent, const char *name) + : QsciLexer(parent, name) +{ +} + + +// The dtor. +QsciLexerCustom::~QsciLexerCustom() +{ +} + + +// Start styling. +void QsciLexerCustom::startStyling(int start, int styleBits) +{ + if (!editor()) + return; + + if (styleBits == 0) + styleBits = (1 << styleBitsNeeded()) - 1; + + editor()->SendScintilla(QsciScintillaBase::SCI_STARTSTYLING, start, + styleBits); +} + + +// Set the style for a number of characters. +void QsciLexerCustom::setStyling(int length, int style) +{ + if (!editor()) + return; + + editor()->SendScintilla(QsciScintillaBase::SCI_SETSTYLING, length, style); +} + + +// Set the style for a number of characters. +void QsciLexerCustom::setStyling(int length, const QsciStyle &style) +{ + setStyling(length, style.style()); +} + + +// Set the attached editor. +void QsciLexerCustom::setEditor(QsciScintilla *new_editor) +{ + if (editor()) + disconnect(editor(), SIGNAL(SCN_STYLENEEDED(int)), this, + SLOT(handleStyleNeeded(int))); + + QsciLexer::setEditor(new_editor); + + if (editor()) + connect(editor(), SIGNAL(SCN_STYLENEEDED(int)), this, + SLOT(handleStyleNeeded(int))); +} + + +// Return the number of style bits needed by the lexer. +int QsciLexerCustom::styleBitsNeeded() const +{ + return 5; +} + + +// Handle a request to style some text. +void QsciLexerCustom::handleStyleNeeded(int pos) +{ + int start = editor()->SendScintilla(QsciScintillaBase::SCI_GETENDSTYLED); + int line = editor()->SendScintilla(QsciScintillaBase::SCI_LINEFROMPOSITION, + start); + start = editor()->SendScintilla(QsciScintillaBase::SCI_POSITIONFROMLINE, + line); + + if (start != pos) + styleText(start, pos); +} diff --git a/Qt3/qscilexerd.cpp b/Qt3/qscilexerd.cpp new file mode 100644 index 0000000..f8d7579 --- /dev/null +++ b/Qt3/qscilexerd.cpp @@ -0,0 +1,479 @@ +// This module implements the QsciLexerD class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerd.h" + +#include +#include +#include + + +// The ctor. +QsciLexerD::QsciLexerD(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_atelse(false), fold_comments(false), fold_compact(true) +{ +} + + +// The dtor. +QsciLexerD::~QsciLexerD() +{ +} + + +// Returns the language name. +const char *QsciLexerD::language() const +{ + return "D"; +} + + +// Returns the lexer name. +const char *QsciLexerD::lexer() const +{ + return "d"; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerD::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "."; + + return wl; +} + + +// Return the list of keywords that can start a block. +const char *QsciLexerD::blockStartKeyword(int *style) const +{ + if (style) + *style = Keyword; + + return "case catch class default do else finally for foreach " + "foreach_reverse if private protected public struct try union " + "while"; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerD::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "{"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerD::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "}"; +} + + +// Return the style used for braces. +int QsciLexerD::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerD::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerD::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + case CommentLine: + return QColor(0x00,0x7f,0x00); + + case CommentDoc: + case CommentLineDoc: + return QColor(0x3f,0x70,0x3f); + + case CommentNested: + return QColor(0xa0,0xc0,0xa0); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + case KeywordSecondary: + case KeywordDoc: + case Typedefs: + return QColor(0x00,0x00,0x7f); + + case String: + return QColor(0x7f,0x00,0x7f); + + case Character: + return QColor(0x7f,0x00,0x7f); + + case Operator: + case UnclosedString: + return QColor(0x00,0x00,0x00); + + case Identifier: + break; + + case CommentDocKeyword: + return QColor(0x30,0x60,0xa0); + + case CommentDocKeywordError: + return QColor(0x80,0x40,0x20); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerD::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerD::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case CommentDoc: + case CommentNested: + case CommentLineDoc: + case CommentDocKeyword: + case CommentDocKeywordError: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case KeywordSecondary: + case KeywordDoc: + case Typedefs: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case String: + case UnclosedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerD::keywords(int set) const +{ + if (set == 1) + return + "abstract alias align asm assert auto body bool break byte case " + "cast catch cdouble cent cfloat char class const continue creal " + "dchar debug default delegate delete deprecated do double else " + "enum export extern false final finally float for foreach " + "foreach_reverse function goto idouble if ifloat import in inout " + "int interface invariant ireal is lazy long mixin module new null " + "out override package pragma private protected public real return " + "scope short static struct super switch synchronized template " + "this throw true try typedef typeid typeof ubyte ucent uint ulong " + "union unittest ushort version void volatile wchar while with"; + + if (set == 3) + return + "a addindex addtogroup anchor arg attention author b brief bug c " + "class code date def defgroup deprecated dontinclude e em endcode " + "endhtmlonly endif endlatexonly endlink endverbatim enum example " + "exception f$ f[ f] file fn hideinitializer htmlinclude htmlonly " + "if image include ingroup internal invariant interface latexonly " + "li line link mainpage name namespace nosubgrouping note overload " + "p page par param post pre ref relates remarks return retval sa " + "section see showinitializer since skip skipline struct " + "subsection test throw todo typedef union until var verbatim " + "verbinclude version warning weakgroup $ @ \\ & < > # { }"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerD::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Block comment"); + + case CommentLine: + return tr("Line comment"); + + case CommentDoc: + return tr("DDoc style block comment"); + + case CommentNested: + return tr("Nesting comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case KeywordSecondary: + return tr("Secondary keyword"); + + case KeywordDoc: + return tr("Documentation keyword"); + + case Typedefs: + return tr("Type definition"); + + case String: + return tr("String"); + + case UnclosedString: + return tr("Unclosed string"); + + case Character: + return tr("Character"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case CommentLineDoc: + return tr("DDoc style line comment"); + + case CommentDocKeyword: + return tr("DDoc keyword"); + + case CommentDocKeywordError: + return tr("DDoc keyword error"); + + case BackquoteString: + return tr("Backquoted string"); + + case RawString: + return tr("Raw string"); + + case KeywordSet5: + return tr("User defined 1"); + + case KeywordSet6: + return tr("User defined 2"); + + case KeywordSet7: + return tr("User defined 3"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerD::defaultPaper(int style) const +{ + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerD::refreshProperties() +{ + setAtElseProp(); + setCommentProp(); + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerD::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldatelse", false, &ok); + + if (ok) + fold_atelse = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerD::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldatelse", fold_atelse)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + return rc; +} + + +// Return true if else can be folded. +bool QsciLexerD::foldAtElse() const +{ + return fold_atelse; +} + + +// Set if else can be folded. +void QsciLexerD::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerD::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} + + +// Return true if comments can be folded. +bool QsciLexerD::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerD::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerD::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerD::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerD::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerD::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} diff --git a/Qt3/qscilexerdiff.cpp b/Qt3/qscilexerdiff.cpp new file mode 100644 index 0000000..2685c75 --- /dev/null +++ b/Qt3/qscilexerdiff.cpp @@ -0,0 +1,132 @@ +// This module implements the QsciLexerDiff class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerdiff.h" + +#include +#include +#include + + +// The ctor. +QsciLexerDiff::QsciLexerDiff(QObject *parent, const char *name) + : QsciLexer(parent, name) +{ +} + + +// The dtor. +QsciLexerDiff::~QsciLexerDiff() +{ +} + + +// Returns the language name. +const char *QsciLexerDiff::language() const +{ + return "Diff"; +} + + +// Returns the lexer name. +const char *QsciLexerDiff::lexer() const +{ + return "diff"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerDiff::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerDiff::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Command: + return QColor(0x7f,0x7f,0x00); + + case Header: + return QColor(0x7f,0x00,0x00); + + case Position: + return QColor(0x7f,0x00,0x7f); + + case LineRemoved: + return QColor(0x00,0x7f,0x7f); + + case LineAdded: + return QColor(0x00,0x00,0x7f); + + case LineChanged: + return QColor(0x7f,0x7f,0x7f); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the user name of a style. +QString QsciLexerDiff::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Command: + return tr("Command"); + + case Header: + return tr("Header"); + + case Position: + return tr("Position"); + + case LineRemoved: + return tr("Removed line"); + + case LineAdded: + return tr("Added line"); + + case LineChanged: + return tr("Changed line"); + } + + return QString(); +} diff --git a/Qt3/qscilexerfortran.cpp b/Qt3/qscilexerfortran.cpp new file mode 100644 index 0000000..44f8e88 --- /dev/null +++ b/Qt3/qscilexerfortran.cpp @@ -0,0 +1,114 @@ +// This module implements the QsciLexerFortran class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerfortran.h" + +#include +#include +#include + + +// The ctor. +QsciLexerFortran::QsciLexerFortran(QObject *parent, const char *name) + : QsciLexerFortran77(parent, name) +{ +} + + +// The dtor. +QsciLexerFortran::~QsciLexerFortran() +{ +} + + +// Returns the language name. +const char *QsciLexerFortran::language() const +{ + return "Fortran"; +} + + +// Returns the lexer name. +const char *QsciLexerFortran::lexer() const +{ + return "fortran"; +} + + +// Returns the set of keywords. +const char *QsciLexerFortran::keywords(int set) const +{ + if (set == 2) + return + "abs achar acos acosd adjustl adjustr aimag aimax0 aimin0 aint " + "ajmax0 ajmin0 akmax0 akmin0 all allocated alog alog10 amax0 " + "amax1 amin0 amin1 amod anint any asin asind associated atan " + "atan2 atan2d atand bitest bitl bitlr bitrl bjtest bit_size " + "bktest break btest cabs ccos cdabs cdcos cdexp cdlog cdsin " + "cdsqrt ceiling cexp char clog cmplx conjg cos cosd cosh count " + "cpu_time cshift csin csqrt dabs dacos dacosd dasin dasind datan " + "datan2 datan2d datand date date_and_time dble dcmplx dconjg dcos " + "dcosd dcosh dcotan ddim dexp dfloat dflotk dfloti dflotj digits " + "dim dimag dint dlog dlog10 dmax1 dmin1 dmod dnint dot_product " + "dprod dreal dsign dsin dsind dsinh dsqrt dtan dtand dtanh " + "eoshift epsilon errsns exp exponent float floati floatj floatk " + "floor fraction free huge iabs iachar iand ibclr ibits ibset " + "ichar idate idim idint idnint ieor ifix iiabs iiand iibclr " + "iibits iibset iidim iidint iidnnt iieor iifix iint iior iiqint " + "iiqnnt iishft iishftc iisign ilen imax0 imax1 imin0 imin1 imod " + "index inint inot int int1 int2 int4 int8 iqint iqnint ior ishft " + "ishftc isign isnan izext jiand jibclr jibits jibset jidim jidint " + "jidnnt jieor jifix jint jior jiqint jiqnnt jishft jishftc jisign " + "jmax0 jmax1 jmin0 jmin1 jmod jnint jnot jzext kiabs kiand kibclr " + "kibits kibset kidim kidint kidnnt kieor kifix kind kint kior " + "kishft kishftc kisign kmax0 kmax1 kmin0 kmin1 kmod knint knot " + "kzext lbound leadz len len_trim lenlge lge lgt lle llt log log10 " + "logical lshift malloc matmul max max0 max1 maxexponent maxloc " + "maxval merge min min0 min1 minexponent minloc minval mod modulo " + "mvbits nearest nint not nworkers number_of_processors pack " + "popcnt poppar precision present product radix random " + "random_number random_seed range real repeat reshape rrspacing " + "rshift scale scan secnds selected_int_kind selected_real_kind " + "set_exponent shape sign sin sind sinh size sizeof sngl snglq " + "spacing spread sqrt sum system_clock tan tand tanh tiny transfer " + "transpose trim ubound unpack verify"; + + if (set == 3) + return + "cdabs cdcos cdexp cdlog cdsin cdsqrt cotan cotand dcmplx dconjg " + "dcotan dcotand decode dimag dll_export dll_import doublecomplex " + "dreal dvchk encode find flen flush getarg getcharqq getcl getdat " + "getenv gettim hfix ibchng identifier imag int1 int2 int4 intc " + "intrup invalop iostat_msg isha ishc ishl jfix lacfar locking " + "locnear map nargs nbreak ndperr ndpexc offset ovefl peekcharqq " + "precfill prompt qabs qacos qacosd qasin qasind qatan qatand " + "qatan2 qcmplx qconjg qcos qcosd qcosh qdim qexp qext qextd " + "qfloat qimag qlog qlog10 qmax1 qmin1 qmod qreal qsign qsin qsind " + "qsinh qsqrt qtan qtand qtanh ran rand randu rewrite segment " + "setdat settim system timer undfl unlock union val virtual " + "volatile zabs zcos zexp zlog zsin zsqrt"; + + return QsciLexerFortran77::keywords(set); +} diff --git a/Qt3/qscilexerfortran77.cpp b/Qt3/qscilexerfortran77.cpp new file mode 100644 index 0000000..793d27f --- /dev/null +++ b/Qt3/qscilexerfortran77.cpp @@ -0,0 +1,310 @@ +// This module implements the QsciLexerFortran77 class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerfortran77.h" + +#include +#include +#include + + +// The ctor. +QsciLexerFortran77::QsciLexerFortran77(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_compact(true) +{ +} + + +// The dtor. +QsciLexerFortran77::~QsciLexerFortran77() +{ +} + + +// Returns the language name. +const char *QsciLexerFortran77::language() const +{ + return "Fortran77"; +} + + +// Returns the lexer name. +const char *QsciLexerFortran77::lexer() const +{ + return "f77"; +} + + +// Return the style used for braces. +int QsciLexerFortran77::braceStyle() const +{ + return Default; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerFortran77::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case SingleQuotedString: + case DoubleQuotedString: + return QColor(0x7f,0x00,0x7f); + + case UnclosedString: + case Operator: + case DottedOperator: + case Continuation: + return QColor(0x00,0x00,0x00); + + case Identifier: + break; + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case IntrinsicFunction: + return QColor(0xb0,0x00,0x40); + + case ExtendedFunction: + return QColor(0xb0,0x40,0x80); + + case PreProcessor: + return QColor(0x7f,0x7f,0x00); + + case Label: + return QColor(0xe0,0xc0,0xe0); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerFortran77::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerFortran77::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Operator: + case DottedOperator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerFortran77::keywords(int set) const +{ + if (set == 1) + return + "access action advance allocatable allocate apostrophe assign " + "assignment associate asynchronous backspace bind blank blockdata " + "call case character class close common complex contains continue " + "cycle data deallocate decimal delim default dimension direct do " + "dowhile double doubleprecision else elseif elsewhere encoding " + "end endassociate endblockdata enddo endfile endforall " + "endfunction endif endinterface endmodule endprogram endselect " + "endsubroutine endtype endwhere entry eor equivalence err errmsg " + "exist exit external file flush fmt forall form format formatted " + "function go goto id if implicit in include inout integer inquire " + "intent interface intrinsic iomsg iolength iostat kind len " + "logical module name named namelist nextrec nml none nullify " + "number only open opened operator optional out pad parameter pass " + "pause pending pointer pos position precision print private " + "program protected public quote read readwrite real rec recl " + "recursive result return rewind save select selectcase selecttype " + "sequential sign size stat status stop stream subroutine target " + "then to type unformatted unit use value volatile wait where " + "while write"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerFortran77::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Number: + return tr("Number"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case UnclosedString: + return tr("Unclosed string"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case Keyword: + return tr("Keyword"); + + case IntrinsicFunction: + return tr("Intrinsic function"); + + case ExtendedFunction: + return tr("Extended function"); + + case PreProcessor: + return tr("Pre-processor block"); + + case DottedOperator: + return tr("Dotted operator"); + + case Label: + return tr("Label"); + + case Continuation: + return tr("Continuation"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerFortran77::defaultPaper(int style) const +{ + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + if (style == Continuation) + return QColor(0xf0,0xe0,0x80); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerFortran77::refreshProperties() +{ + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerFortran77::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerFortran77::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + return rc; +} + + +// Return true if folds are compact. +bool QsciLexerFortran77::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerFortran77::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerFortran77::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} diff --git a/Qt3/qscilexerhtml.cpp b/Qt3/qscilexerhtml.cpp new file mode 100644 index 0000000..edef749 --- /dev/null +++ b/Qt3/qscilexerhtml.cpp @@ -0,0 +1,1242 @@ +// This module implements the QsciLexerHTML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerhtml.h" + +#include +#include +#include + +#include "Qsci/qscilexerjavascript.h" +#include "Qsci/qscilexerpython.h" + + +// The ctor. +QsciLexerHTML::QsciLexerHTML(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_compact(true), fold_preproc(true), case_sens_tags(false), + fold_script_comments(false), fold_script_heredocs(false), + django_templates(false), mako_templates(false) +{ +} + + +// The dtor. +QsciLexerHTML::~QsciLexerHTML() +{ +} + + +// Returns the language name. +const char *QsciLexerHTML::language() const +{ + return "HTML"; +} + + +// Returns the lexer name. +const char *QsciLexerHTML::lexer() const +{ + return "hypertext"; +} + + +// Return the auto-completion fillup characters. +const char *QsciLexerHTML::autoCompletionFillups() const +{ + return "/>"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerHTML::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerHTML::defaultColor(int style) const +{ + switch (style) + { + case Default: + case JavaScriptDefault: + case JavaScriptWord: + case JavaScriptSymbol: + case ASPJavaScriptDefault: + case ASPJavaScriptWord: + case ASPJavaScriptSymbol: + case VBScriptDefault: + case ASPVBScriptDefault: + case PHPOperator: + return QColor(0x00,0x00,0x00); + + case Tag: + case XMLTagEnd: + case Script: + case SGMLDefault: + case SGMLCommand: + case VBScriptKeyword: + case VBScriptIdentifier: + case VBScriptUnclosedString: + case ASPVBScriptKeyword: + case ASPVBScriptIdentifier: + case ASPVBScriptUnclosedString: + return QColor(0x00,0x00,0x80); + + case UnknownTag: + case UnknownAttribute: + return QColor(0xff,0x00,0x00); + + case Attribute: + case VBScriptNumber: + case ASPVBScriptNumber: + return QColor(0x00,0x80,0x80); + + case HTMLNumber: + case JavaScriptNumber: + case ASPJavaScriptNumber: + case PythonNumber: + case PythonFunctionMethodName: + case ASPPythonNumber: + case ASPPythonFunctionMethodName: + return QColor(0x00,0x7f,0x7f); + + case HTMLDoubleQuotedString: + case HTMLSingleQuotedString: + case JavaScriptDoubleQuotedString: + case JavaScriptSingleQuotedString: + case ASPJavaScriptDoubleQuotedString: + case ASPJavaScriptSingleQuotedString: + case PythonDoubleQuotedString: + case PythonSingleQuotedString: + case ASPPythonDoubleQuotedString: + case ASPPythonSingleQuotedString: + case PHPKeyword: + return QColor(0x7f,0x00,0x7f); + + case OtherInTag: + case Entity: + case VBScriptString: + case ASPVBScriptString: + return QColor(0x80,0x00,0x80); + + case HTMLComment: + case SGMLComment: + return QColor(0x80,0x80,0x00); + + case XMLStart: + case XMLEnd: + case PHPStart: + case PythonClassName: + case ASPPythonClassName: + return QColor(0x00,0x00,0xff); + + case HTMLValue: + return QColor(0xff,0x00,0xff); + + case SGMLParameter: + return QColor(0x00,0x66,0x00); + + case SGMLDoubleQuotedString: + case SGMLError: + return QColor(0x80,0x00,0x00); + + case SGMLSingleQuotedString: + return QColor(0x99,0x33,0x00); + + case SGMLSpecial: + return QColor(0x33,0x66,0xff); + + case SGMLEntity: + return QColor(0x33,0x33,0x33); + + case SGMLBlockDefault: + return QColor(0x00,0x00,0x66); + + case JavaScriptStart: + case ASPJavaScriptStart: + return QColor(0x7f,0x7f,0x00); + + case JavaScriptComment: + case JavaScriptCommentLine: + case ASPJavaScriptComment: + case ASPJavaScriptCommentLine: + case PythonComment: + case ASPPythonComment: + case PHPDoubleQuotedString: + return QColor(0x00,0x7f,0x00); + + case JavaScriptCommentDoc: + return QColor(0x3f,0x70,0x3f); + + case JavaScriptKeyword: + case ASPJavaScriptKeyword: + case PythonKeyword: + case ASPPythonKeyword: + case PHPVariable: + case PHPDoubleQuotedVariable: + return QColor(0x00,0x00,0x7f); + + case ASPJavaScriptCommentDoc: + return QColor(0x7f,0x7f,0x7f); + + case VBScriptComment: + case ASPVBScriptComment: + return QColor(0x00,0x80,0x00); + + case PythonStart: + case PythonDefault: + case ASPPythonStart: + case ASPPythonDefault: + return QColor(0x80,0x80,0x80); + + case PythonTripleSingleQuotedString: + case PythonTripleDoubleQuotedString: + case ASPPythonTripleSingleQuotedString: + case ASPPythonTripleDoubleQuotedString: + return QColor(0x7f,0x00,0x00); + + case PHPDefault: + return QColor(0x00,0x00,0x33); + + case PHPSingleQuotedString: + return QColor(0x00,0x9f,0x00); + + case PHPNumber: + return QColor(0xcc,0x99,0x00); + + case PHPComment: + return QColor(0x99,0x99,0x99); + + case PHPCommentLine: + return QColor(0x66,0x66,0x66); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerHTML::defaultEolFill(int style) const +{ + switch (style) + { + case JavaScriptDefault: + case JavaScriptComment: + case JavaScriptCommentDoc: + case JavaScriptUnclosedString: + case ASPJavaScriptDefault: + case ASPJavaScriptComment: + case ASPJavaScriptCommentDoc: + case ASPJavaScriptUnclosedString: + case VBScriptDefault: + case VBScriptComment: + case VBScriptNumber: + case VBScriptKeyword: + case VBScriptString: + case VBScriptIdentifier: + case VBScriptUnclosedString: + case ASPVBScriptDefault: + case ASPVBScriptComment: + case ASPVBScriptNumber: + case ASPVBScriptKeyword: + case ASPVBScriptString: + case ASPVBScriptIdentifier: + case ASPVBScriptUnclosedString: + case PythonDefault: + case PythonComment: + case PythonNumber: + case PythonDoubleQuotedString: + case PythonSingleQuotedString: + case PythonKeyword: + case PythonTripleSingleQuotedString: + case PythonTripleDoubleQuotedString: + case PythonClassName: + case PythonFunctionMethodName: + case PythonOperator: + case PythonIdentifier: + case ASPPythonDefault: + case ASPPythonComment: + case ASPPythonNumber: + case ASPPythonDoubleQuotedString: + case ASPPythonSingleQuotedString: + case ASPPythonKeyword: + case ASPPythonTripleSingleQuotedString: + case ASPPythonTripleDoubleQuotedString: + case ASPPythonClassName: + case ASPPythonFunctionMethodName: + case ASPPythonOperator: + case ASPPythonIdentifier: + case PHPDefault: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerHTML::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Default: + case Entity: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman",11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter",10); +#endif + break; + + case HTMLComment: +#if defined(Q_OS_WIN) + f = QFont("Verdana",9); +#elif defined(Q_OS_MAC) + f = QFont("Verdana", 12); +#else + f = QFont("Bitstream Vera Sans",8); +#endif + break; + + case SGMLCommand: + case PythonKeyword: + case PythonClassName: + case PythonFunctionMethodName: + case PythonOperator: + case ASPPythonKeyword: + case ASPPythonClassName: + case ASPPythonFunctionMethodName: + case ASPPythonOperator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case JavaScriptDefault: + case JavaScriptCommentDoc: + case JavaScriptKeyword: + case JavaScriptSymbol: + case ASPJavaScriptDefault: + case ASPJavaScriptCommentDoc: + case ASPJavaScriptKeyword: + case ASPJavaScriptSymbol: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + f.setBold(true); + break; + + case JavaScriptComment: + case JavaScriptCommentLine: + case JavaScriptNumber: + case JavaScriptWord: + case JavaScriptDoubleQuotedString: + case JavaScriptSingleQuotedString: + case ASPJavaScriptComment: + case ASPJavaScriptCommentLine: + case ASPJavaScriptNumber: + case ASPJavaScriptWord: + case ASPJavaScriptDoubleQuotedString: + case ASPJavaScriptSingleQuotedString: + case VBScriptComment: + case ASPVBScriptComment: + case PythonComment: + case ASPPythonComment: + case PHPComment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case VBScriptDefault: + case VBScriptNumber: + case VBScriptString: + case VBScriptIdentifier: + case VBScriptUnclosedString: + case ASPVBScriptDefault: + case ASPVBScriptNumber: + case ASPVBScriptString: + case ASPVBScriptIdentifier: + case ASPVBScriptUnclosedString: +#if defined(Q_OS_WIN) + f = QFont("Lucida Sans Unicode",9); +#elif defined(Q_OS_MAC) + f = QFont("Lucida Grande", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case VBScriptKeyword: + case ASPVBScriptKeyword: +#if defined(Q_OS_WIN) + f = QFont("Lucida Sans Unicode",9); +#elif defined(Q_OS_MAC) + f = QFont("Lucida Grande", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + f.setBold(true); + break; + + case PythonDoubleQuotedString: + case PythonSingleQuotedString: + case ASPPythonDoubleQuotedString: + case ASPPythonSingleQuotedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier New", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + case PHPKeyword: + case PHPVariable: + case PHPDoubleQuotedVariable: + f = QsciLexer::defaultFont(style); + f.setItalic(true); + break; + + case PHPCommentLine: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + f.setItalic(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerHTML::keywords(int set) const +{ + if (set == 1) + return + "a abbr acronym address applet area " + "b base basefont bdo big blockquote body br button " + "caption center cite code col colgroup " + "dd del dfn dir div dl dt " + "em " + "fieldset font form frame frameset " + "h1 h2 h3 h4 h5 h6 head hr html " + "i iframe img input ins isindex " + "kbd " + "label legend li link " + "map menu meta " + "noframes noscript " + "object ol optgroup option " + "p param pre " + "q " + "s samp script select small span strike strong style " + "sub sup " + "table tbody td textarea tfoot th thead title tr tt " + "u ul " + "var " + "xml xmlns " + "abbr accept-charset accept accesskey action align " + "alink alt archive axis " + "background bgcolor border " + "cellpadding cellspacing char charoff charset checked " + "cite class classid clear codebase codetype color " + "cols colspan compact content coords " + "data datafld dataformatas datapagesize datasrc " + "datetime declare defer dir disabled " + "enctype event " + "face for frame frameborder " + "headers height href hreflang hspace http-equiv " + "id ismap label lang language leftmargin link " + "longdesc " + "marginwidth marginheight maxlength media method " + "multiple " + "name nohref noresize noshade nowrap " + "object onblur onchange onclick ondblclick onfocus " + "onkeydown onkeypress onkeyup onload onmousedown " + "onmousemove onmouseover onmouseout onmouseup onreset " + "onselect onsubmit onunload " + "profile prompt " + "readonly rel rev rows rowspan rules " + "scheme scope selected shape size span src standby " + "start style summary " + "tabindex target text title topmargin type " + "usemap " + "valign value valuetype version vlink vspace " + "width " + "text password checkbox radio submit reset file " + "hidden image " + "public !doctype"; + + if (set == 2) + return QsciLexerJavaScript::keywordClass; + + if (set == 3) + return + // Move these to QsciLexerVisualBasic when we + // get round to implementing it. + "and begin case call continue do each else elseif end " + "erase error event exit false for function get gosub " + "goto if implement in load loop lset me mid new next " + "not nothing on or property raiseevent rem resume " + "return rset select set stop sub then to true unload " + "until wend while with withevents attribute alias as " + "boolean byref byte byval const compare currency date " + "declare dim double enum explicit friend global " + "integer let lib long module object option optional " + "preserve private property public redim single static " + "string type variant"; + + if (set == 4) + return QsciLexerPython::keywordClass; + + if (set == 5) + return + "and argv as argc break case cfunction class continue " + "declare default do die " + "echo else elseif empty enddeclare endfor endforeach " + "endif endswitch endwhile e_all e_parse e_error " + "e_warning eval exit extends " + "false for foreach function global " + "http_cookie_vars http_get_vars http_post_vars " + "http_post_files http_env_vars http_server_vars " + "if include include_once list new not null " + "old_function or " + "parent php_os php_self php_version print " + "require require_once return " + "static switch stdclass this true var xor virtual " + "while " + "__file__ __line__ __sleep __wakeup"; + + if (set == 6) + return "ELEMENT DOCTYPE ATTLIST ENTITY NOTATION"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerHTML::description(int style) const +{ + switch (style) + { + case Default: + return tr("HTML default"); + + case Tag: + return tr("Tag"); + + case UnknownTag: + return tr("Unknown tag"); + + case Attribute: + return tr("Attribute"); + + case UnknownAttribute: + return tr("Unknown attribute"); + + case HTMLNumber: + return tr("HTML number"); + + case HTMLDoubleQuotedString: + return tr("HTML double-quoted string"); + + case HTMLSingleQuotedString: + return tr("HTML single-quoted string"); + + case OtherInTag: + return tr("Other text in a tag"); + + case HTMLComment: + return tr("HTML comment"); + + case Entity: + return tr("Entity"); + + case XMLTagEnd: + return tr("End of a tag"); + + case XMLStart: + return tr("Start of an XML fragment"); + + case XMLEnd: + return tr("End of an XML fragment"); + + case Script: + return tr("Script tag"); + + case ASPAtStart: + return tr("Start of an ASP fragment with @"); + + case ASPStart: + return tr("Start of an ASP fragment"); + + case CDATA: + return tr("CDATA"); + + case PHPStart: + return tr("Start of a PHP fragment"); + + case HTMLValue: + return tr("Unquoted HTML value"); + + case ASPXCComment: + return tr("ASP X-Code comment"); + + case SGMLDefault: + return tr("SGML default"); + + case SGMLCommand: + return tr("SGML command"); + + case SGMLParameter: + return tr("First parameter of an SGML command"); + + case SGMLDoubleQuotedString: + return tr("SGML double-quoted string"); + + case SGMLSingleQuotedString: + return tr("SGML single-quoted string"); + + case SGMLError: + return tr("SGML error"); + + case SGMLSpecial: + return tr("SGML special entity"); + + case SGMLComment: + return tr("SGML comment"); + + case SGMLParameterComment: + return tr("First parameter comment of an SGML command"); + + case SGMLBlockDefault: + return tr("SGML block default"); + + case JavaScriptStart: + return tr("Start of a JavaScript fragment"); + + case JavaScriptDefault: + return tr("JavaScript default"); + + case JavaScriptComment: + return tr("JavaScript comment"); + + case JavaScriptCommentLine: + return tr("JavaScript line comment"); + + case JavaScriptCommentDoc: + return tr("JavaDoc style JavaScript comment"); + + case JavaScriptNumber: + return tr("JavaScript number"); + + case JavaScriptWord: + return tr("JavaScript word"); + + case JavaScriptKeyword: + return tr("JavaScript keyword"); + + case JavaScriptDoubleQuotedString: + return tr("JavaScript double-quoted string"); + + case JavaScriptSingleQuotedString: + return tr("JavaScript single-quoted string"); + + case JavaScriptSymbol: + return tr("JavaScript symbol"); + + case JavaScriptUnclosedString: + return tr("JavaScript unclosed string"); + + case JavaScriptRegex: + return tr("JavaScript regular expression"); + + case ASPJavaScriptStart: + return tr("Start of an ASP JavaScript fragment"); + + case ASPJavaScriptDefault: + return tr("ASP JavaScript default"); + + case ASPJavaScriptComment: + return tr("ASP JavaScript comment"); + + case ASPJavaScriptCommentLine: + return tr("ASP JavaScript line comment"); + + case ASPJavaScriptCommentDoc: + return tr("JavaDoc style ASP JavaScript comment"); + + case ASPJavaScriptNumber: + return tr("ASP JavaScript number"); + + case ASPJavaScriptWord: + return tr("ASP JavaScript word"); + + case ASPJavaScriptKeyword: + return tr("ASP JavaScript keyword"); + + case ASPJavaScriptDoubleQuotedString: + return tr("ASP JavaScript double-quoted string"); + + case ASPJavaScriptSingleQuotedString: + return tr("ASP JavaScript single-quoted string"); + + case ASPJavaScriptSymbol: + return tr("ASP JavaScript symbol"); + + case ASPJavaScriptUnclosedString: + return tr("ASP JavaScript unclosed string"); + + case ASPJavaScriptRegex: + return tr("ASP JavaScript regular expression"); + + case VBScriptStart: + return tr("Start of a VBScript fragment"); + + case VBScriptDefault: + return tr("VBScript default"); + + case VBScriptComment: + return tr("VBScript comment"); + + case VBScriptNumber: + return tr("VBScript number"); + + case VBScriptKeyword: + return tr("VBScript keyword"); + + case VBScriptString: + return tr("VBScript string"); + + case VBScriptIdentifier: + return tr("VBScript identifier"); + + case VBScriptUnclosedString: + return tr("VBScript unclosed string"); + + case ASPVBScriptStart: + return tr("Start of an ASP VBScript fragment"); + + case ASPVBScriptDefault: + return tr("ASP VBScript default"); + + case ASPVBScriptComment: + return tr("ASP VBScript comment"); + + case ASPVBScriptNumber: + return tr("ASP VBScript number"); + + case ASPVBScriptKeyword: + return tr("ASP VBScript keyword"); + + case ASPVBScriptString: + return tr("ASP VBScript string"); + + case ASPVBScriptIdentifier: + return tr("ASP VBScript identifier"); + + case ASPVBScriptUnclosedString: + return tr("ASP VBScript unclosed string"); + + case PythonStart: + return tr("Start of a Python fragment"); + + case PythonDefault: + return tr("Python default"); + + case PythonComment: + return tr("Python comment"); + + case PythonNumber: + return tr("Python number"); + + case PythonDoubleQuotedString: + return tr("Python double-quoted string"); + + case PythonSingleQuotedString: + return tr("Python single-quoted string"); + + case PythonKeyword: + return tr("Python keyword"); + + case PythonTripleDoubleQuotedString: + return tr("Python triple double-quoted string"); + + case PythonTripleSingleQuotedString: + return tr("Python triple single-quoted string"); + + case PythonClassName: + return tr("Python class name"); + + case PythonFunctionMethodName: + return tr("Python function or method name"); + + case PythonOperator: + return tr("Python operator"); + + case PythonIdentifier: + return tr("Python identifier"); + + case ASPPythonStart: + return tr("Start of an ASP Python fragment"); + + case ASPPythonDefault: + return tr("ASP Python default"); + + case ASPPythonComment: + return tr("ASP Python comment"); + + case ASPPythonNumber: + return tr("ASP Python number"); + + case ASPPythonDoubleQuotedString: + return tr("ASP Python double-quoted string"); + + case ASPPythonSingleQuotedString: + return tr("ASP Python single-quoted string"); + + case ASPPythonKeyword: + return tr("ASP Python keyword"); + + case ASPPythonTripleDoubleQuotedString: + return tr("ASP Python triple double-quoted string"); + + case ASPPythonTripleSingleQuotedString: + return tr("ASP Python triple single-quoted string"); + + case ASPPythonClassName: + return tr("ASP Python class name"); + + case ASPPythonFunctionMethodName: + return tr("ASP Python function or method name"); + + case ASPPythonOperator: + return tr("ASP Python operator"); + + case ASPPythonIdentifier: + return tr("ASP Python identifier"); + + case PHPDefault: + return tr("PHP default"); + + case PHPDoubleQuotedString: + return tr("PHP double-quoted string"); + + case PHPSingleQuotedString: + return tr("PHP single-quoted string"); + + case PHPKeyword: + return tr("PHP keyword"); + + case PHPNumber: + return tr("PHP number"); + + case PHPVariable: + return tr("PHP variable"); + + case PHPComment: + return tr("PHP comment"); + + case PHPCommentLine: + return tr("PHP line comment"); + + case PHPDoubleQuotedVariable: + return tr("PHP double-quoted variable"); + + case PHPOperator: + return tr("PHP operator"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerHTML::defaultPaper(int style) const +{ + switch (style) + { + case ASPAtStart: + return QColor(0xff,0xff,0x00); + + case ASPStart: + case CDATA: + return QColor(0xff,0xdf,0x00); + + case PHPStart: + return QColor(0xff,0xef,0xbf); + + case HTMLValue: + return QColor(0xff,0xef,0xff); + + case SGMLDefault: + case SGMLCommand: + case SGMLParameter: + case SGMLDoubleQuotedString: + case SGMLSingleQuotedString: + case SGMLSpecial: + case SGMLEntity: + case SGMLComment: + return QColor(0xef,0xef,0xff); + + case SGMLError: + return QColor(0xff,0x66,0x66); + + case SGMLBlockDefault: + return QColor(0xcc,0xcc,0xe0); + + case JavaScriptDefault: + case JavaScriptComment: + case JavaScriptCommentLine: + case JavaScriptCommentDoc: + case JavaScriptNumber: + case JavaScriptWord: + case JavaScriptKeyword: + case JavaScriptDoubleQuotedString: + case JavaScriptSingleQuotedString: + case JavaScriptSymbol: + return QColor(0xf0,0xf0,0xff); + + case JavaScriptUnclosedString: + case ASPJavaScriptUnclosedString: + return QColor(0xbf,0xbb,0xb0); + + case JavaScriptRegex: + case ASPJavaScriptRegex: + return QColor(0xff,0xbb,0xb0); + + case ASPJavaScriptDefault: + case ASPJavaScriptComment: + case ASPJavaScriptCommentLine: + case ASPJavaScriptCommentDoc: + case ASPJavaScriptNumber: + case ASPJavaScriptWord: + case ASPJavaScriptKeyword: + case ASPJavaScriptDoubleQuotedString: + case ASPJavaScriptSingleQuotedString: + case ASPJavaScriptSymbol: + return QColor(0xdf,0xdf,0x7f); + + case VBScriptDefault: + case VBScriptComment: + case VBScriptNumber: + case VBScriptKeyword: + case VBScriptString: + case VBScriptIdentifier: + return QColor(0xef,0xef,0xff); + + case VBScriptUnclosedString: + case ASPVBScriptUnclosedString: + return QColor(0x7f,0x7f,0xff); + + case ASPVBScriptDefault: + case ASPVBScriptComment: + case ASPVBScriptNumber: + case ASPVBScriptKeyword: + case ASPVBScriptString: + case ASPVBScriptIdentifier: + return QColor(0xcf,0xcf,0xef); + + case PythonDefault: + case PythonComment: + case PythonNumber: + case PythonDoubleQuotedString: + case PythonSingleQuotedString: + case PythonKeyword: + case PythonTripleSingleQuotedString: + case PythonTripleDoubleQuotedString: + case PythonClassName: + case PythonFunctionMethodName: + case PythonOperator: + case PythonIdentifier: + return QColor(0xef,0xff,0xef); + + case ASPPythonDefault: + case ASPPythonComment: + case ASPPythonNumber: + case ASPPythonDoubleQuotedString: + case ASPPythonSingleQuotedString: + case ASPPythonKeyword: + case ASPPythonTripleSingleQuotedString: + case ASPPythonTripleDoubleQuotedString: + case ASPPythonClassName: + case ASPPythonFunctionMethodName: + case ASPPythonOperator: + case ASPPythonIdentifier: + return QColor(0xcf,0xef,0xcf); + + case PHPDefault: + case PHPDoubleQuotedString: + case PHPSingleQuotedString: + case PHPKeyword: + case PHPNumber: + case PHPVariable: + case PHPComment: + case PHPCommentLine: + case PHPDoubleQuotedVariable: + case PHPOperator: + return QColor(0xff,0xf8,0xf8); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerHTML::refreshProperties() +{ + setCompactProp(); + setPreprocProp(); + setCaseSensTagsProp(); + setScriptCommentsProp(); + setScriptHeredocsProp(); + setDjangoProp(); + setMakoProp(); +} + + +// Read properties from the settings. +bool QsciLexerHTML::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldpreprocessor", false, &ok); + + if (ok) + fold_preproc = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "casesensitivetags", false, &ok); + + if (ok) + case_sens_tags = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldscriptcomments", false, &ok); + + if (ok) + fold_script_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldscriptheredocs", false, &ok); + + if (ok) + fold_script_heredocs = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "djangotemplates", false, &ok); + + if (ok) + django_templates = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "makotemplates", false, &ok); + + if (ok) + mako_templates = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerHTML::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "foldpreprocessor", fold_preproc)) + rc = false; + + if (!qs.writeEntry(prefix + "casesensitivetags", case_sens_tags)) + rc = false; + + if (!qs.writeEntry(prefix + "foldscriptcomments", fold_script_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldscriptheredocs", fold_script_heredocs)) + rc = false; + + if (!qs.writeEntry(prefix + "djangotemplates", django_templates)) + rc = false; + + if (!qs.writeEntry(prefix + "makotemplates", mako_templates)) + rc = false; + + return rc; +} + + +// Set if tags are case sensitive. +void QsciLexerHTML::setCaseSensitiveTags(bool sens) +{ + case_sens_tags = sens; + + setCaseSensTagsProp(); +} + + +// Set the "html.tags.case.sensitive" property. +void QsciLexerHTML::setCaseSensTagsProp() +{ + emit propertyChanged("html.tags.case.sensitive",(case_sens_tags ? "1" : "0")); +} + + +// Set if folds are compact +void QsciLexerHTML::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerHTML::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Set if preprocessor blocks can be folded. +void QsciLexerHTML::setFoldPreprocessor(bool fold) +{ + fold_preproc = fold; + + setPreprocProp(); +} + + +// Set the "fold.html.preprocessor" property. +void QsciLexerHTML::setPreprocProp() +{ + emit propertyChanged("fold.html.preprocessor",(fold_preproc ? "1" : "0")); +} + + +// Set if script comments can be folded. +void QsciLexerHTML::setFoldScriptComments(bool fold) +{ + fold_script_comments = fold; + + setScriptCommentsProp(); +} + + +// Set the "fold.hypertext.comment" property. +void QsciLexerHTML::setScriptCommentsProp() +{ + emit propertyChanged("fold.hypertext.comment",(fold_script_comments ? "1" : "0")); +} + + +// Set if script heredocs can be folded. +void QsciLexerHTML::setFoldScriptHeredocs(bool fold) +{ + fold_script_heredocs = fold; + + setScriptHeredocsProp(); +} + + +// Set the "fold.hypertext.heredoc" property. +void QsciLexerHTML::setScriptHeredocsProp() +{ + emit propertyChanged("fold.hypertext.heredoc",(fold_script_heredocs ? "1" : "0")); +} + + +// Set if Django templates are supported. +void QsciLexerHTML::setDjangoTemplates(bool enable) +{ + django_templates = enable; + + setDjangoProp(); +} + + +// Set the "lexer.html.django" property. +void QsciLexerHTML::setDjangoProp() +{ + emit propertyChanged("lexer.html.django", (django_templates ? "1" : "0")); +} + + +// Set if Mako templates are supported. +void QsciLexerHTML::setMakoTemplates(bool enable) +{ + mako_templates = enable; + + setMakoProp(); +} + + +// Set the "lexer.html.mako" property. +void QsciLexerHTML::setMakoProp() +{ + emit propertyChanged("lexer.html.mako", (mako_templates ? "1" : "0")); +} diff --git a/Qt3/qscilexeridl.cpp b/Qt3/qscilexeridl.cpp new file mode 100644 index 0000000..de9abe7 --- /dev/null +++ b/Qt3/qscilexeridl.cpp @@ -0,0 +1,105 @@ +// This module implements the QsciLexerIDL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexeridl.h" + +#include +#include + + +// The ctor. +QsciLexerIDL::QsciLexerIDL(QObject *parent, const char *name) + : QsciLexerCPP(parent, name) +{ +} + + +// The dtor. +QsciLexerIDL::~QsciLexerIDL() +{ +} + + +// Returns the language name. +const char *QsciLexerIDL::language() const +{ + return "IDL"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerIDL::defaultColor(int style) const +{ + if (style == UUID) + return QColor(0x80,0x40,0x80); + + return QsciLexerCPP::defaultColor(style); +} + + +// Returns the set of keywords. +const char *QsciLexerIDL::keywords(int set) const +{ + if (set != 1) + return 0; + + return "aggregatable allocate appobject arrays async async_uuid " + "auto_handle bindable boolean broadcast byte byte_count " + "call_as callback char coclass code comm_status const " + "context_handle context_handle_noserialize " + "context_handle_serialize control cpp_quote custom decode " + "default defaultbind defaultcollelem defaultvalue " + "defaultvtable dispinterface displaybind dllname double dual " + "enable_allocate encode endpoint entry enum error_status_t " + "explicit_handle fault_status first_is float handle_t heap " + "helpcontext helpfile helpstring helpstringcontext " + "helpstringdll hidden hyper id idempotent ignore iid_as iid_is " + "immediatebind implicit_handle import importlib in include " + "in_line int __int64 __int3264 interface last_is lcid " + "length_is library licensed local long max_is maybe message " + "methods midl_pragma midl_user_allocate midl_user_free min_is " + "module ms_union ncacn_at_dsp ncacn_dnet_nsp ncacn_http " + "ncacn_ip_tcp ncacn_nb_ipx ncacn_nb_nb ncacn_nb_tcp ncacn_np " + "ncacn_spx ncacn_vns_spp ncadg_ip_udp ncadg_ipx ncadg_mq " + "ncalrpc nocode nonbrowsable noncreatable nonextensible notify " + "object odl oleautomation optimize optional out out_of_line " + "pipe pointer_default pragma properties propget propput " + "propputref ptr public range readonly ref represent_as " + "requestedit restricted retval shape short signed size_is " + "small source strict_context_handle string struct switch " + "switch_is switch_type transmit_as typedef uidefault union " + "unique unsigned user_marshal usesgetlasterror uuid v1_enum " + "vararg version void wchar_t wire_marshal"; +} + + +// Returns the user name of a style. +QString QsciLexerIDL::description(int style) const +{ + if (style == UUID) + return tr("UUID"); + + return QsciLexerCPP::description(style); +} diff --git a/Qt3/qscilexerjava.cpp b/Qt3/qscilexerjava.cpp new file mode 100644 index 0000000..8cb21f9 --- /dev/null +++ b/Qt3/qscilexerjava.cpp @@ -0,0 +1,62 @@ +// This module implements the QsciLexerJava class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerjava.h" + + +// The ctor. +QsciLexerJava::QsciLexerJava(QObject *parent, const char *name) + : QsciLexerCPP(parent, name) +{ +} + + +// The dtor. +QsciLexerJava::~QsciLexerJava() +{ +} + + +// Returns the language name. +const char *QsciLexerJava::language() const +{ + return "Java"; +} + + +// Returns the set of keywords. +const char *QsciLexerJava::keywords(int set) const +{ + if (set != 1) + return 0; + + return "abstract assert boolean break byte case catch char class " + "const continue default do double else extends final finally " + "float for future generic goto if implements import inner " + "instanceof int interface long native new null operator outer " + "package private protected public rest return short static " + "super switch synchronized this throw throws transient try var " + "void volatile while"; +} diff --git a/Qt3/qscilexerjavascript.cpp b/Qt3/qscilexerjavascript.cpp new file mode 100644 index 0000000..775bc58 --- /dev/null +++ b/Qt3/qscilexerjavascript.cpp @@ -0,0 +1,125 @@ +// This module implements the QsciLexerJavaScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerjavascript.h" + +#include +#include + + +// The list of JavaScript keywords that can be used by other friendly lexers. +const char *QsciLexerJavaScript::keywordClass = + "abstract boolean break byte case catch char class const continue " + "debugger default delete do double else enum export extends final " + "finally float for function goto if implements import in instanceof " + "int interface long native new package private protected public " + "return short static super switch synchronized this throw throws " + "transient try typeof var void volatile while with"; + + +// The ctor. +QsciLexerJavaScript::QsciLexerJavaScript(QObject *parent, const char *name) + : QsciLexerCPP(parent, name) +{ +} + + +// The dtor. +QsciLexerJavaScript::~QsciLexerJavaScript() +{ +} + + +// Returns the language name. +const char *QsciLexerJavaScript::language() const +{ + return "JavaScript"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerJavaScript::defaultColor(int style) const +{ + if (style == Regex) + return QColor(0x3f,0x7f,0x3f); + + return QsciLexerCPP::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerJavaScript::defaultEolFill(int style) const +{ + if (style == Regex) + return true; + + return QsciLexerCPP::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerJavaScript::defaultFont(int style) const +{ + if (style == Regex) +#if defined(Q_OS_WIN) + return QFont("Courier New",10); +#elif defined(Q_OS_MAC) + return QFont("Courier", 12); +#else + return QFont("Bitstream Vera Sans Mono",9); +#endif + + return QsciLexerCPP::defaultFont(style); +} + + +// Returns the set of keywords. +const char *QsciLexerJavaScript::keywords(int set) const +{ + if (set != 1) + return 0; + + return keywordClass; +} + + +// Returns the user name of a style. +QString QsciLexerJavaScript::description(int style) const +{ + if (style == Regex) + return tr("Regular expression"); + + return QsciLexerCPP::description(style); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerJavaScript::defaultPaper(int style) const +{ + if (style == Regex) + return QColor(0xe0,0xf0,0xff); + + return QsciLexer::defaultPaper(style); +} diff --git a/Qt3/qscilexerlua.cpp b/Qt3/qscilexerlua.cpp new file mode 100644 index 0000000..375eda2 --- /dev/null +++ b/Qt3/qscilexerlua.cpp @@ -0,0 +1,382 @@ +// This module implements the QsciLexerLua class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerlua.h" + +#include +#include +#include + + +// The ctor. +QsciLexerLua::QsciLexerLua(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_compact(true) +{ +} + + +// The dtor. +QsciLexerLua::~QsciLexerLua() +{ +} + + +// Returns the language name. +const char *QsciLexerLua::language() const +{ + return "Lua"; +} + + +// Returns the lexer name. +const char *QsciLexerLua::lexer() const +{ + return "lua"; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerLua::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << ":" << "."; + + return wl; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerLua::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return ""; +} + + +// Return the style used for braces. +int QsciLexerLua::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerLua::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x00,0x00,0x00); + + case Comment: + case LineComment: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + case BasicFunctions: + case StringTableMathsFunctions: + case CoroutinesIOSystemFacilities: + return QColor(0x00,0x00,0x7f); + + case String: + case Character: + case LiteralString: + return QColor(0x7f,0x00,0x7f); + + case Preprocessor: + case Label: + return QColor(0x7f,0x7f,0x00); + + case Operator: + case Identifier: + break; + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerLua::defaultEolFill(int style) const +{ + if (style == Comment || style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerLua::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case LineComment: + case LiteralString: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerLua::keywords(int set) const +{ + if (set == 1) + // Keywords. + return + "and break do else elseif end false for function if " + "in local nil not or repeat return then true until " + "while"; + + if (set == 2) + // Basic functions. + return + "_ALERT _ERRORMESSAGE _INPUT _PROMPT _OUTPUT _STDERR " + "_STDIN _STDOUT call dostring foreach foreachi getn " + "globals newtype rawget rawset require sort tinsert " + "tremove " + + "G getfenv getmetatable ipairs loadlib next pairs " + "pcall rawegal rawget rawset require setfenv " + "setmetatable xpcall string table math coroutine io " + "os debug"; + + if (set == 3) + // String, table and maths functions. + return + "abs acos asin atan atan2 ceil cos deg exp floor " + "format frexp gsub ldexp log log10 max min mod rad " + "random randomseed sin sqrt strbyte strchar strfind " + "strlen strlower strrep strsub strupper tan " + + "string.byte string.char string.dump string.find " + "string.len string.lower string.rep string.sub " + "string.upper string.format string.gfind string.gsub " + "table.concat table.foreach table.foreachi table.getn " + "table.sort table.insert table.remove table.setn " + "math.abs math.acos math.asin math.atan math.atan2 " + "math.ceil math.cos math.deg math.exp math.floor " + "math.frexp math.ldexp math.log math.log10 math.max " + "math.min math.mod math.pi math.rad math.random " + "math.randomseed math.sin math.sqrt math.tan"; + + if (set == 4) + // Coroutine, I/O and system facilities. + return + "openfile closefile readfrom writeto appendto remove " + "rename flush seek tmpfile tmpname read write clock " + "date difftime execute exit getenv setlocale time " + + "coroutine.create coroutine.resume coroutine.status " + "coroutine.wrap coroutine.yield io.close io.flush " + "io.input io.lines io.open io.output io.read " + "io.tmpfile io.type io.write io.stdin io.stdout " + "io.stderr os.clock os.date os.difftime os.execute " + "os.exit os.getenv os.remove os.rename os.setlocale " + "os.time os.tmpname"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerLua::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case LineComment: + return tr("Line comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case String: + return tr("String"); + + case Character: + return tr("Character"); + + case LiteralString: + return tr("Literal string"); + + case Preprocessor: + return tr("Preprocessor"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case UnclosedString: + return tr("Unclosed string"); + + case BasicFunctions: + return tr("Basic functions"); + + case StringTableMathsFunctions: + return tr("String, table and maths functions"); + + case CoroutinesIOSystemFacilities: + return tr("Coroutines, i/o and system facilities"); + + case KeywordSet5: + return tr("User defined 1"); + + case KeywordSet6: + return tr("User defined 2"); + + case KeywordSet7: + return tr("User defined 3"); + + case KeywordSet8: + return tr("User defined 4"); + + case Label: + return tr("Label"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerLua::defaultPaper(int style) const +{ + switch (style) + { + case Comment: + return QColor(0xd0,0xf0,0xf0); + + case LiteralString: + return QColor(0xe0,0xff,0xff); + + case UnclosedString: + return QColor(0xe0,0xc0,0xe0); + + case BasicFunctions: + return QColor(0xd0,0xff,0xd0); + + case StringTableMathsFunctions: + return QColor(0xd0,0xd0,0xff); + + case CoroutinesIOSystemFacilities: + return QColor(0xff,0xd0,0xd0); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerLua::refreshProperties() +{ + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerLua::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerLua::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + return rc; +} + + +// Return true if folds are compact. +bool QsciLexerLua::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact. +void QsciLexerLua::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerLua::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} diff --git a/Qt3/qscilexermakefile.cpp b/Qt3/qscilexermakefile.cpp new file mode 100644 index 0000000..d5e2614 --- /dev/null +++ b/Qt3/qscilexermakefile.cpp @@ -0,0 +1,163 @@ +// This module implements the QsciLexerMakefile class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexermakefile.h" + +#include +#include + + +// The ctor. +QsciLexerMakefile::QsciLexerMakefile(QObject *parent, const char *name) + : QsciLexer(parent, name) +{ +} + + +// The dtor. +QsciLexerMakefile::~QsciLexerMakefile() +{ +} + + +// Returns the language name. +const char *QsciLexerMakefile::language() const +{ + return "Makefile"; +} + + +// Returns the lexer name. +const char *QsciLexerMakefile::lexer() const +{ + return "makefile"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerMakefile::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerMakefile::defaultColor(int style) const +{ + switch (style) + { + case Default: + case Operator: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Preprocessor: + return QColor(0x7f,0x7f,0x00); + + case Variable: + return QColor(0x00,0x00,0x80); + + case Target: + return QColor(0xa0,0x00,0x00); + + case Error: + return QColor(0xff,0xff,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerMakefile::defaultEolFill(int style) const +{ + if (style == Error) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerMakefile::defaultFont(int style) const +{ + QFont f; + + if (style == Comment) +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + else + f = QsciLexer::defaultFont(style); + + return f; +} + + +// Returns the user name of a style. +QString QsciLexerMakefile::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Preprocessor: + return tr("Preprocessor"); + + case Variable: + return tr("Variable"); + + case Operator: + return tr("Operator"); + + case Target: + return tr("Target"); + + case Error: + return tr("Error"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerMakefile::defaultPaper(int style) const +{ + if (style == Error) + return QColor(0xff,0x00,0x00); + + return QsciLexer::defaultPaper(style); +} diff --git a/Qt3/qscilexermatlab.cpp b/Qt3/qscilexermatlab.cpp new file mode 100644 index 0000000..76c6bec --- /dev/null +++ b/Qt3/qscilexermatlab.cpp @@ -0,0 +1,166 @@ +// This module implements the QsciLexerMatlab class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexermatlab.h" + +#include +#include + + +// The ctor. +QsciLexerMatlab::QsciLexerMatlab(QObject *parent, const char *name) + : QsciLexer(parent, name) +{ +} + + +// The dtor. +QsciLexerMatlab::~QsciLexerMatlab() +{ +} + + +// Returns the language name. +const char *QsciLexerMatlab::language() const +{ + return "Matlab"; +} + + +// Returns the lexer name. +const char *QsciLexerMatlab::lexer() const +{ + return "matlab"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerMatlab::defaultColor(int style) const +{ + switch (style) + { + case Default: + case Operator: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Command: + return QColor(0x7f,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case SingleQuotedString: + case DoubleQuotedString: + return QColor(0x7f,0x00,0x7f); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerMatlab::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerMatlab::keywords(int set) const +{ + if (set == 1) + return + "break case catch continue else elseif end for function " + "global if otherwise persistent return switch try while"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerMatlab::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Command: + return tr("Command"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + } + + return QString(); +} diff --git a/Qt3/qscilexeroctave.cpp b/Qt3/qscilexeroctave.cpp new file mode 100644 index 0000000..7448e26 --- /dev/null +++ b/Qt3/qscilexeroctave.cpp @@ -0,0 +1,73 @@ +// This module implements the QsciLexerOctave class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexeroctave.h" + +#include +#include + + +// The ctor. +QsciLexerOctave::QsciLexerOctave(QObject *parent, const char *name) + : QsciLexerMatlab(parent, name) +{ +} + + +// The dtor. +QsciLexerOctave::~QsciLexerOctave() +{ +} + + +// Returns the language name. +const char *QsciLexerOctave::language() const +{ + return "Octave"; +} + + +// Returns the lexer name. +const char *QsciLexerOctave::lexer() const +{ + return "octave"; +} + + +// Returns the set of keywords. +const char *QsciLexerOctave::keywords(int set) const +{ + if (set == 1) + return + "__FILE__ __LINE__ break case catch classdef continue do else " + "elseif end end_try_catch end_unwind_protect endclassdef " + "endenumeration endevents endfor endfunction endif endmethods " + "endparfor endproperties endswitch endwhile enumeration events " + "for function get global if methods otherwise parfor persistent " + "properties return set static switch try until unwind_protect " + "unwind_protect_cleanup while"; + + return 0; +} diff --git a/Qt3/qscilexerpascal.cpp b/Qt3/qscilexerpascal.cpp new file mode 100644 index 0000000..3f2f985 --- /dev/null +++ b/Qt3/qscilexerpascal.cpp @@ -0,0 +1,469 @@ +// This module implements the QsciLexerPascal class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerpascal.h" + +#include +#include +#include + + +// The ctor. +QsciLexerPascal::QsciLexerPascal(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_comments(false), fold_compact(true), fold_preproc(false), + smart_highlight(true) +{ +} + + +// The dtor. +QsciLexerPascal::~QsciLexerPascal() +{ +} + + +// Returns the language name. +const char *QsciLexerPascal::language() const +{ + return "Pascal"; +} + + +// Returns the lexer name. +const char *QsciLexerPascal::lexer() const +{ + return "pascal"; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerPascal::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "." << "^"; + + return wl; +} + + +// Return the list of keywords that can start a block. +const char *QsciLexerPascal::blockStartKeyword(int *style) const +{ + if (style) + *style = Keyword; + + return + "case class do else for then private protected public published " + "repeat try while type"; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerPascal::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "begin"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerPascal::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "end"; +} + + +// Return the style used for braces. +int QsciLexerPascal::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPascal::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Identifier: + break; + + case Comment: + case CommentParenthesis: + case CommentLine: + return QColor(0x00,0x7f,0x00); + + case PreProcessor: + case PreProcessorParenthesis: + return QColor(0x7f,0x7f,0x00); + + case Number: + case HexNumber: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case SingleQuotedString: + case Character: + return QColor(0x7f,0x00,0x7f); + + case UnclosedString: + case Operator: + return QColor(0x00,0x00,0x00); + + case Asm: + return QColor(0x80,0x40,0x80); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerPascal::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPascal::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentParenthesis: + case CommentLine: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case SingleQuotedString: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman", 11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter", 10); +#endif + f.setItalic(true); + break; + + case UnclosedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New", 10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono", 9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerPascal::defaultPaper(int style) const +{ + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Returns the set of keywords. +const char *QsciLexerPascal::keywords(int set) const +{ + if (set == 1) + return + "absolute abstract and array as asm assembler automated begin " + "case cdecl class const constructor delayed deprecated destructor " + "dispid dispinterface div do downto dynamic else end except " + "experimental export exports external far file final finalization " + "finally for forward function goto helper if implementation in " + "inherited initialization inline interface is label library " + "message mod near nil not object of on operator or out overload " + "override packed pascal platform private procedure program " + "property protected public published raise record reference " + "register reintroduce repeat resourcestring safecall sealed set " + "shl shr static stdcall strict string then threadvar to try type " + "unit unsafe until uses var varargs virtual while winapi with xor" + "add default implements index name nodefault read readonly remove " + "stored write writeonly" + "package contains requires"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerPascal::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Identifier: + return tr("Identifier"); + + case Comment: + return tr("'{ ... }' style comment"); + + case CommentParenthesis: + return tr("'(* ... *)' style comment"); + + case CommentLine: + return tr("Line comment"); + + case PreProcessor: + return tr("'{$ ... }' style pre-processor block"); + + case PreProcessorParenthesis: + return tr("'(*$ ... *)' style pre-processor block"); + + case Number: + return tr("Number"); + + case HexNumber: + return tr("Hexadecimal number"); + + case Keyword: + return tr("Keyword"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case UnclosedString: + return tr("Unclosed string"); + + case Character: + return tr("Character"); + + case Operator: + return tr("Operator"); + + case Asm: + return tr("Inline asm"); + } + + return QString(); +} + + +// Refresh all properties. +void QsciLexerPascal::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setPreprocProp(); + setSmartHighlightProp(); +} + + +// Read properties from the settings. +bool QsciLexerPascal::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldpreprocessor", true, &ok); + + if (ok) + fold_preproc = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "smarthighlight", true, &ok); + + if (ok) + smart_highlight = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPascal::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "foldpreprocessor", fold_preproc)) + rc = false; + + if (!qs.writeEntry(prefix + "smarthighlight", smart_highlight)) + rc = false; + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerPascal::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerPascal::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerPascal::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerPascal::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerPascal::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPascal::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if preprocessor blocks can be folded. +bool QsciLexerPascal::foldPreprocessor() const +{ + return fold_preproc; +} + + +// Set if preprocessor blocks can be folded. +void QsciLexerPascal::setFoldPreprocessor(bool fold) +{ + fold_preproc = fold; + + setPreprocProp(); +} + + +// Set the "fold.preprocessor" property. +void QsciLexerPascal::setPreprocProp() +{ + emit propertyChanged("fold.preprocessor",(fold_preproc ? "1" : "0")); +} + + +// Return true if smart highlighting is enabled. +bool QsciLexerPascal::smartHighlighting() const +{ + return smart_highlight; +} + + +// Set if smart highlighting is enabled. +void QsciLexerPascal::setSmartHighlighting(bool enabled) +{ + smart_highlight = enabled; + + setSmartHighlightProp(); +} + + +// Set the "lexer.pascal.smart.highlighting" property. +void QsciLexerPascal::setSmartHighlightProp() +{ + emit propertyChanged("lexer.pascal.smart.highlighting", (smart_highlight ? "1" : "0")); +} diff --git a/Qt3/qscilexerperl.cpp b/Qt3/qscilexerperl.cpp new file mode 100644 index 0000000..68779b3 --- /dev/null +++ b/Qt3/qscilexerperl.cpp @@ -0,0 +1,703 @@ +// This module implements the QsciLexerPerl class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerperl.h" + +#include +#include +#include + + +// The ctor. +QsciLexerPerl::QsciLexerPerl(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_atelse(false), fold_comments(false), fold_compact(true), + fold_packages(true), fold_pod_blocks(true) +{ +} + + +// The dtor. +QsciLexerPerl::~QsciLexerPerl() +{ +} + + +// Returns the language name. +const char *QsciLexerPerl::language() const +{ + return "Perl"; +} + + +// Returns the lexer name. +const char *QsciLexerPerl::lexer() const +{ + return "perl"; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerPerl::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "::" << "->"; + + return wl; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerPerl::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "{"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerPerl::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "}"; +} + + +// Return the style used for braces. +int QsciLexerPerl::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerPerl::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$@%&"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPerl::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Error: + case Backticks: + case QuotedStringQX: + return QColor(0xff,0xff,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case POD: + case PODVerbatim: + return QColor(0x00,0x40,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + case SingleQuotedHereDocument: + case DoubleQuotedHereDocument: + case BacktickHereDocument: + case QuotedStringQ: + case QuotedStringQQ: + return QColor(0x7f,0x00,0x7f); + + case Operator: + case Identifier: + case Scalar: + case Array: + case Hash: + case SymbolTable: + case Regex: + case Substitution: + case HereDocumentDelimiter: + case QuotedStringQR: + case QuotedStringQW: + case SubroutinePrototype: + case Translation: + return QColor(0x00,0x00,0x00); + + case DataSection: + return QColor(0x60,0x00,0x00); + + case FormatIdentifier: + case FormatBody: + return QColor(0xc0,0x00,0xc0); + + case DoubleQuotedStringVar: + case RegexVar: + case SubstitutionVar: + case BackticksVar: + case DoubleQuotedHereDocumentVar: + case BacktickHereDocumentVar: + case QuotedStringQQVar: + case QuotedStringQXVar: + case QuotedStringQRVar: + return QColor(0xd0, 0x00, 0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerPerl::defaultEolFill(int style) const +{ + switch (style) + { + case POD: + case DataSection: + case SingleQuotedHereDocument: + case DoubleQuotedHereDocument: + case BacktickHereDocument: + case PODVerbatim: + case FormatBody: + case DoubleQuotedHereDocumentVar: + case BacktickHereDocumentVar: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPerl::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case POD: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman",11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter",10); +#endif + break; + + case Keyword: + case Operator: + case DoubleQuotedHereDocument: + case FormatIdentifier: + case RegexVar: + case SubstitutionVar: + case BackticksVar: + case DoubleQuotedHereDocumentVar: + case BacktickHereDocumentVar: + case QuotedStringQXVar: + case QuotedStringQRVar: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DoubleQuotedString: + case SingleQuotedString: + case QuotedStringQQ: + case PODVerbatim: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + case BacktickHereDocument: + case SubroutinePrototype: + f = QsciLexer::defaultFont(style); + f.setItalic(true); + break; + + case DoubleQuotedStringVar: + case QuotedStringQQVar: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerPerl::keywords(int set) const +{ + if (set == 1) + return + "NULL __FILE__ __LINE__ __PACKAGE__ __DATA__ __END__ " + "AUTOLOAD BEGIN CORE DESTROY END EQ GE GT INIT LE LT " + "NE CHECK abs accept alarm and atan2 bind binmode " + "bless caller chdir chmod chomp chop chown chr chroot " + "close closedir cmp connect continue cos crypt " + "dbmclose dbmopen defined delete die do dump each " + "else elsif endgrent endhostent endnetent endprotoent " + "endpwent endservent eof eq eval exec exists exit exp " + "fcntl fileno flock for foreach fork format formline " + "ge getc getgrent getgrgid getgrnam gethostbyaddr " + "gethostbyname gethostent getlogin getnetbyaddr " + "getnetbyname getnetent getpeername getpgrp getppid " + "getpriority getprotobyname getprotobynumber " + "getprotoent getpwent getpwnam getpwuid getservbyname " + "getservbyport getservent getsockname getsockopt glob " + "gmtime goto grep gt hex if index int ioctl join keys " + "kill last lc lcfirst le length link listen local " + "localtime lock log lstat lt m map mkdir msgctl " + "msgget msgrcv msgsnd my ne next no not oct open " + "opendir or ord our pack package pipe pop pos print " + "printf prototype push q qq qr quotemeta qu qw qx " + "rand read readdir readline readlink readpipe recv " + "redo ref rename require reset return reverse " + "rewinddir rindex rmdir s scalar seek seekdir select " + "semctl semget semop send setgrent sethostent " + "setnetent setpgrp setpriority setprotoent setpwent " + "setservent setsockopt shift shmctl shmget shmread " + "shmwrite shutdown sin sleep socket socketpair sort " + "splice split sprintf sqrt srand stat study sub " + "substr symlink syscall sysopen sysread sysseek " + "system syswrite tell telldir tie tied time times tr " + "truncate uc ucfirst umask undef unless unlink unpack " + "unshift untie until use utime values vec wait " + "waitpid wantarray warn while write x xor y"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerPerl::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Error: + return tr("Error"); + + case Comment: + return tr("Comment"); + + case POD: + return tr("POD"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case Scalar: + return tr("Scalar"); + + case Array: + return tr("Array"); + + case Hash: + return tr("Hash"); + + case SymbolTable: + return tr("Symbol table"); + + case Regex: + return tr("Regular expression"); + + case Substitution: + return tr("Substitution"); + + case Backticks: + return tr("Backticks"); + + case DataSection: + return tr("Data section"); + + case HereDocumentDelimiter: + return tr("Here document delimiter"); + + case SingleQuotedHereDocument: + return tr("Single-quoted here document"); + + case DoubleQuotedHereDocument: + return tr("Double-quoted here document"); + + case BacktickHereDocument: + return tr("Backtick here document"); + + case QuotedStringQ: + return tr("Quoted string (q)"); + + case QuotedStringQQ: + return tr("Quoted string (qq)"); + + case QuotedStringQX: + return tr("Quoted string (qx)"); + + case QuotedStringQR: + return tr("Quoted string (qr)"); + + case QuotedStringQW: + return tr("Quoted string (qw)"); + + case PODVerbatim: + return tr("POD verbatim"); + + case SubroutinePrototype: + return tr("Subroutine prototype"); + + case FormatIdentifier: + return tr("Format identifier"); + + case FormatBody: + return tr("Format body"); + + case DoubleQuotedStringVar: + return tr("Double-quoted string (interpolated variable)"); + + case Translation: + return tr("Translation"); + + case RegexVar: + return tr("Regular expression (interpolated variable)"); + + case SubstitutionVar: + return tr("Substitution (interpolated variable)"); + + case BackticksVar: + return tr("Backticks (interpolated variable)"); + + case DoubleQuotedHereDocumentVar: + return tr("Double-quoted here document (interpolated variable)"); + + case BacktickHereDocumentVar: + return tr("Backtick here document (interpolated variable)"); + + case QuotedStringQQVar: + return tr("Quoted string (qq, interpolated variable)"); + + case QuotedStringQXVar: + return tr("Quoted string (qx, interpolated variable)"); + + case QuotedStringQRVar: + return tr("Quoted string (qr, interpolated variable)"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerPerl::defaultPaper(int style) const +{ + switch (style) + { + case Error: + return QColor(0xff,0x00,0x00); + + case POD: + return QColor(0xe0,0xff,0xe0); + + case Scalar: + return QColor(0xff,0xe0,0xe0); + + case Array: + return QColor(0xff,0xff,0xe0); + + case Hash: + return QColor(0xff,0xe0,0xff); + + case SymbolTable: + return QColor(0xe0,0xe0,0xe0); + + case Regex: + return QColor(0xa0,0xff,0xa0); + + case Substitution: + case Translation: + return QColor(0xf0,0xe0,0x80); + + case Backticks: + case BackticksVar: + case QuotedStringQXVar: + return QColor(0xa0,0x80,0x80); + + case DataSection: + return QColor(0xff,0xf0,0xd8); + + case HereDocumentDelimiter: + case SingleQuotedHereDocument: + case DoubleQuotedHereDocument: + case BacktickHereDocument: + case DoubleQuotedHereDocumentVar: + case BacktickHereDocumentVar: + return QColor(0xdd,0xd0,0xdd); + + case PODVerbatim: + return QColor(0xc0,0xff,0xc0); + + case FormatBody: + return QColor(0xff,0xf0,0xff); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerPerl::refreshProperties() +{ + setAtElseProp(); + setCommentProp(); + setCompactProp(); + setPackagesProp(); + setPODBlocksProp(); +} + + +// Read properties from the settings. +bool QsciLexerPerl::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldatelse", false, &ok); + + if (ok) + fold_atelse = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldpackages", true, &ok); + + if (ok) + fold_packages = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldpodblocks", true, &ok); + + if (ok) + fold_pod_blocks = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPerl::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldatelse", fold_atelse)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "foldpackages", fold_packages)) + rc = false; + + if (!qs.writeEntry(prefix + "foldpodblocks", fold_pod_blocks)) + rc = false; + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerPerl::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerPerl::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerPerl::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerPerl::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerPerl::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPerl::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if packages can be folded. +bool QsciLexerPerl::foldPackages() const +{ + return fold_packages; +} + + +// Set if packages can be folded. +void QsciLexerPerl::setFoldPackages(bool fold) +{ + fold_packages = fold; + + setPackagesProp(); +} + + +// Set the "fold.perl.package" property. +void QsciLexerPerl::setPackagesProp() +{ + emit propertyChanged("fold.perl.package",(fold_packages ? "1" : "0")); +} + + +// Return true if POD blocks can be folded. +bool QsciLexerPerl::foldPODBlocks() const +{ + return fold_pod_blocks; +} + + +// Set if POD blocks can be folded. +void QsciLexerPerl::setFoldPODBlocks(bool fold) +{ + fold_pod_blocks = fold; + + setPODBlocksProp(); +} + + +// Set the "fold.perl.pod" property. +void QsciLexerPerl::setPODBlocksProp() +{ + emit propertyChanged("fold.perl.pod",(fold_pod_blocks ? "1" : "0")); +} + + +// Set if else can be folded. +void QsciLexerPerl::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.perl.at.else" property. +void QsciLexerPerl::setAtElseProp() +{ + emit propertyChanged("fold.perl.at.else",(fold_atelse ? "1" : "0")); +} diff --git a/Qt3/qscilexerpo.cpp b/Qt3/qscilexerpo.cpp new file mode 100644 index 0000000..bb7c6b8 --- /dev/null +++ b/Qt3/qscilexerpo.cpp @@ -0,0 +1,245 @@ +// This module implements the QsciLexerPO class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerpo.h" + +#include +#include +#include + + +// The ctor. +QsciLexerPO::QsciLexerPO(QObject *parent, const char *name) + : QsciLexer(parent,name), + fold_comments(false), fold_compact(true) +{ +} + + +// The dtor. +QsciLexerPO::~QsciLexerPO() +{ +} + + +// Returns the language name. +const char *QsciLexerPO::language() const +{ + return "PO"; +} + + +// Returns the lexer name. +const char *QsciLexerPO::lexer() const +{ + return "po"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPO::defaultColor(int style) const +{ + switch (style) + { + case Comment: + return QColor(0x00, 0x7f, 0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPO::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS", 9); +#elif defined(Q_OS_MAC) + f = QFont("Georgia", 13); +#else + f = QFont("Bitstream Vera Serif", 9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the user name of a style. +QString QsciLexerPO::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case MessageId: + return tr("Message identifier"); + + case MessageIdText: + return tr("Message identifier text"); + + case MessageString: + return tr("Message string"); + + case MessageStringText: + return tr("Message string text"); + + case MessageContext: + return tr("Message context"); + + case MessageContextText: + return tr("Message context text"); + + case Fuzzy: + return tr("Fuzzy flag"); + + case ProgrammerComment: + return tr("Programmer comment"); + + case Reference: + return tr("Reference"); + + case Flags: + return tr("Flags"); + + case MessageIdTextEOL: + return tr("Message identifier text end-of-line"); + + case MessageStringTextEOL: + return tr("Message string text end-of-line"); + + case MessageContextTextEOL: + return tr("Message context text end-of-line"); + } + + return QString(); +} + + +// Refresh all properties. +void QsciLexerPO::refreshProperties() +{ + setCommentProp(); + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerPO::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPO::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerPO::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerPO::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerPO::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerPO::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerPO::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPO::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} diff --git a/Qt3/qscilexerpostscript.cpp b/Qt3/qscilexerpostscript.cpp new file mode 100644 index 0000000..b90f00b --- /dev/null +++ b/Qt3/qscilexerpostscript.cpp @@ -0,0 +1,486 @@ +// This module implements the QsciLexerPostScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerpostscript.h" + +#include +#include +#include + + +// The ctor. +QsciLexerPostScript::QsciLexerPostScript(QObject *parent, const char *name) + : QsciLexer(parent,name), + ps_tokenize(false), ps_level(3), fold_compact(true), fold_atelse(false) +{ +} + + +// The dtor. +QsciLexerPostScript::~QsciLexerPostScript() +{ +} + + +// Returns the language name. +const char *QsciLexerPostScript::language() const +{ + return "PostScript"; +} + + +// Returns the lexer name. +const char *QsciLexerPostScript::lexer() const +{ + return "ps"; +} + + +// Return the style used for braces. +int QsciLexerPostScript::braceStyle() const +{ + return ProcedureParenthesis; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPostScript::defaultColor(int style) const +{ + switch (style) + { + case Comment: + return QColor(0x00,0x7f,0x00); + + case DSCComment: + return QColor(0x3f,0x70,0x3f); + + case DSCCommentValue: + case DictionaryParenthesis: + return QColor(0x30,0x60,0xa0); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Name: + case ProcedureParenthesis: + return QColor(0x00,0x00,0x00); + + case Keyword: + case ArrayParenthesis: + return QColor(0x00,0x00,0x7f); + + case Literal: + case ImmediateEvalLiteral: + return QColor(0x7f,0x7f,0x00); + + case Text: + case Base85String: + return QColor(0x7f,0x00,0x7f); + + case HexString: + return QColor(0x3f,0x7f,0x3f); + + case BadStringCharacter: + return QColor(0xff,0xff,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPostScript::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case DSCComment: + case DSCCommentValue: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case ProcedureParenthesis: + f = QsciLexer::defaultFont(style); + f.setBold(true); + + case Text: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman", 11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter", 10); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerPostScript::keywords(int set) const +{ + if (set == 1) + return + "$error = == FontDirectory StandardEncoding UserObjects abs add " + "aload anchorsearch and arc arcn arcto array ashow astore atan " + "awidthshow begin bind bitshift bytesavailable cachestatus " + "ceiling charpath clear cleardictstack cleartomark clip clippath " + "closefile closepath concat concatmatrix copy copypage cos count " + "countdictstack countexecstack counttomark currentcmykcolor " + "currentcolorspace currentdash currentdict currentfile " + "currentflat currentfont currentgray currenthsbcolor " + "currentlinecap currentlinejoin currentlinewidth currentmatrix " + "currentmiterlimit currentpagedevice currentpoint currentrgbcolor " + "currentscreen currenttransfer cvi cvlit cvn cvr cvrs cvs cvx def " + "defaultmatrix definefont dict dictstack div dtransform dup echo " + "end eoclip eofill eq erasepage errordict exch exec execstack " + "executeonly executive exit exp false file fill findfont " + "flattenpath floor flush flushfile for forall ge get getinterval " + "grestore grestoreall gsave gt idetmatrix idiv idtransform if " + "ifelse image imagemask index initclip initgraphics initmatrix " + "inustroke invertmatrix itransform known kshow le length lineto " + "ln load log loop lt makefont mark matrix maxlength mod moveto " + "mul ne neg newpath noaccess nor not null nulldevice or pathbbox " + "pathforall pop print prompt pstack put putinterval quit rand " + "rcheck rcurveto read readhexstring readline readonly readstring " + "rectstroke repeat resetfile restore reversepath rlineto rmoveto " + "roll rotate round rrand run save scale scalefont search " + "setblackgeneration setcachedevice setcachelimit setcharwidth " + "setcolorscreen setcolortransfer setdash setflat setfont setgray " + "sethsbcolor setlinecap setlinejoin setlinewidth setmatrix " + "setmiterlimit setpagedevice setrgbcolor setscreen settransfer " + "setvmthreshold show showpage sin sqrt srand stack start status " + "statusdict stop stopped store string stringwidth stroke " + "strokepath sub systemdict token token transform translate true " + "truncate type ueofill undefineresource userdict usertime version " + "vmstatus wcheck where widthshow write writehexstring writestring " + "xcheck xor"; + + if (set == 2) + return + "GlobalFontDirectory ISOLatin1Encoding SharedFontDirectory " + "UserObject arct colorimage cshow currentblackgeneration " + "currentcacheparams currentcmykcolor currentcolor " + "currentcolorrendering currentcolorscreen currentcolorspace " + "currentcolortransfer currentdevparams currentglobal " + "currentgstate currenthalftone currentobjectformat " + "currentoverprint currentpacking currentpagedevice currentshared " + "currentstrokeadjust currentsystemparams currentundercolorremoval " + "currentuserparams defineresource defineuserobject deletefile " + "execform execuserobject filenameforall fileposition filter " + "findencoding findresource gcheck globaldict glyphshow gstate " + "ineofill infill instroke inueofill inufill inustroke " + "languagelevel makepattern packedarray printobject product " + "realtime rectclip rectfill rectstroke renamefile resourceforall " + "resourcestatus revision rootfont scheck selectfont serialnumber " + "setbbox setblackgeneration setcachedevice2 setcacheparams " + "setcmykcolor setcolor setcolorrendering setcolorscreen " + "setcolorspace setcolortranfer setdevparams setfileposition " + "setglobal setgstate sethalftone setobjectformat setoverprint " + "setpacking setpagedevice setpattern setshared setstrokeadjust " + "setsystemparams setucacheparams setundercolorremoval " + "setuserparams setvmthreshold shareddict startjob uappend ucache " + "ucachestatus ueofill ufill undef undefinefont undefineresource " + "undefineuserobject upath ustroke ustrokepath vmreclaim " + "writeobject xshow xyshow yshow"; + + if (set == 3) + return + "cliprestore clipsave composefont currentsmoothness " + "findcolorrendering setsmoothness shfill"; + + if (set == 4) + return + ".begintransparencygroup .begintransparencymask .bytestring " + ".charboxpath .currentaccuratecurves .currentblendmode " + ".currentcurvejoin .currentdashadapt .currentdotlength " + ".currentfilladjust2 .currentlimitclamp .currentopacityalpha " + ".currentoverprintmode .currentrasterop .currentshapealpha " + ".currentsourcetransparent .currenttextknockout " + ".currenttexturetransparent .dashpath .dicttomark " + ".discardtransparencygroup .discardtransparencymask " + ".endtransparencygroup .endtransparencymask .execn .filename " + ".filename .fileposition .forceput .forceundef .forgetsave " + ".getbitsrect .getdevice .inittransparencymask .knownget " + ".locksafe .makeoperator .namestring .oserrno .oserrorstring " + ".peekstring .rectappend .runandhide .setaccuratecurves " + ".setblendmode .setcurvejoin .setdashadapt .setdebug " + ".setdefaultmatrix .setdotlength .setfilladjust2 .setlimitclamp " + ".setmaxlength .setopacityalpha .setoverprintmode .setrasterop " + ".setsafe .setshapealpha .setsourcetransparent .settextknockout " + ".settexturetransparent .stringbreak .stringmatch .tempfile " + ".type1decrypt .type1encrypt .type1execchar .unread arccos " + "arcsin copydevice copyscanlines currentdevice finddevice " + "findlibfile findprotodevice flushpage getdeviceprops getenv " + "makeimagedevice makewordimagedevice max min putdeviceprops " + "setdevice"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerPostScript::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case DSCComment: + return tr("DSC comment"); + + case DSCCommentValue: + return tr("DSC comment value"); + + case Number: + return tr("Number"); + + case Name: + return tr("Name"); + + case Keyword: + return tr("Keyword"); + + case Literal: + return tr("Literal"); + + case ImmediateEvalLiteral: + return tr("Immediately evaluated literal"); + + case ArrayParenthesis: + return tr("Array parenthesis"); + + case DictionaryParenthesis: + return tr("Dictionary parenthesis"); + + case ProcedureParenthesis: + return tr("Procedure parenthesis"); + + case Text: + return tr("Text"); + + case HexString: + return tr("Hexadecimal string"); + + case Base85String: + return tr("Base85 string"); + + case BadStringCharacter: + return tr("Bad string character"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerPostScript::defaultPaper(int style) const +{ + if (style == BadStringCharacter) + return QColor(0xff,0x00,0x00); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerPostScript::refreshProperties() +{ + setTokenizeProp(); + setLevelProp(); + setCompactProp(); + setAtElseProp(); +} + + +// Read properties from the settings. +bool QsciLexerPostScript::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + int i_val; + + flag = qs.readBoolEntry(prefix + "pstokenize", true, &ok); + + if (ok) + ps_tokenize = flag; + else + rc = false; + + i_val = qs.readNumEntry(prefix + "pslevel", 3, &ok); + + if (ok) + ps_level = i_val; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldatelse", false, &ok); + + if (ok) + fold_atelse = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPostScript::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "pstokenize", ps_tokenize)) + rc = false; + + if (!qs.writeEntry(prefix + "pslevel", ps_level)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "foldatelse", fold_atelse)) + rc = false; + + return rc; +} + + +// Return true if tokens are marked. +bool QsciLexerPostScript::tokenize() const +{ + return ps_tokenize; +} + + +// Set if tokens are marked. +void QsciLexerPostScript::setTokenize(bool tokenize) +{ + ps_tokenize = tokenize; + + setTokenizeProp(); +} + + +// Set the "ps.tokenize" property. +void QsciLexerPostScript::setTokenizeProp() +{ + emit propertyChanged("ps.tokenize",(ps_tokenize ? "1" : "0")); +} + + +// Return the PostScript level. +int QsciLexerPostScript::level() const +{ + return ps_level; +} + + +// Set the PostScript level. +void QsciLexerPostScript::setLevel(int level) +{ + ps_level = level; + + setLevelProp(); +} + + +// Set the "ps.level" property. +void QsciLexerPostScript::setLevelProp() +{ + emit propertyChanged("ps.level", QString::number(ps_level)); +} + + +// Return true if folds are compact. +bool QsciLexerPostScript::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerPostScript::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPostScript::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if else blocks can be folded. +bool QsciLexerPostScript::foldAtElse() const +{ + return fold_atelse; +} + + +// Set if else blocks can be folded. +void QsciLexerPostScript::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerPostScript::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} diff --git a/Qt3/qscilexerpov.cpp b/Qt3/qscilexerpov.cpp new file mode 100644 index 0000000..4676508 --- /dev/null +++ b/Qt3/qscilexerpov.cpp @@ -0,0 +1,493 @@ +// This module implements the QsciLexerPOV class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerpov.h" + +#include +#include +#include + + +// The ctor. +QsciLexerPOV::QsciLexerPOV(QObject *parent, const char *name) + : QsciLexer(parent,name), + fold_comments(false), fold_compact(true), fold_directives(false) +{ +} + + +// The dtor. +QsciLexerPOV::~QsciLexerPOV() +{ +} + + +// Returns the language name. +const char *QsciLexerPOV::language() const +{ + return "POV"; +} + + +// Returns the lexer name. +const char *QsciLexerPOV::lexer() const +{ + return "pov"; +} + + +// Return the style used for braces. +int QsciLexerPOV::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerPOV::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPOV::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0xff,0x00,0x80); + + case Comment: + case CommentLine: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Operator: + return QColor(0x00,0x00,0x00); + + case String: + return QColor(0x7f,0x00,0x7f); + + case Directive: + return QColor(0x7f,0x7f,0x00); + + case BadDirective: + return QColor(0x80,0x40,0x20); + + case ObjectsCSGAppearance: + case TypesModifiersItems: + case PredefinedIdentifiers: + case PredefinedFunctions: + case KeywordSet6: + case KeywordSet7: + case KeywordSet8: + return QColor(0x00,0x00,0x7f); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerPOV::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPOV::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case UnclosedString: + case PredefinedIdentifiers: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case BadDirective: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + f.setItalic(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerPOV::keywords(int set) const +{ + if (set == 1) + return + "declare local include undef fopen fclose read write " + "default version case range break debug error " + "warning if ifdef ifndef switch while macro else end"; + + if (set == 2) + return + "camera light_source light_group object blob sphere " + "cylinder box cone height_field julia_fractal lathe " + "prism sphere_sweep superellipsoid sor text torus " + "bicubic_patch disc mesh mesh2 polygon triangle " + "smooth_triangle plane poly cubic quartic quadric " + "isosurface parametric union intersection difference " + "merge function array spline vertex_vectors " + "normal_vectors uv_vectors face_indices " + "normal_indices uv_indices texture texture_list " + "interior_texture texture_map material_map image_map " + "color_map colour_map pigment_map normal_map " + "slope_map bump_map density_map pigment normal " + "material interior finish reflection irid slope " + "pigment_pattern image_pattern warp media scattering " + "density background fog sky_sphere rainbow " + "global_settings radiosity photons pattern transform " + "looks_like projected_through contained_by " + "clipped_by bounded_by"; + + if (set == 3) + return + "linear_spline quadratic_spline cubic_spline " + "natural_spline bezier_spline b_spline read write " + "append inverse open perspective orthographic " + "fisheye ultra_wide_angle omnimax panoramic " + "spherical spotlight jitter circular orient " + "media_attenuation media_interaction shadowless " + "parallel refraction collect pass_through " + "global_lights hierarchy sturm smooth gif tga iff " + "pot png pgm ppm jpeg tiff sys ttf quaternion " + "hypercomplex linear_sweep conic_sweep type " + "all_intersections split_union cutaway_textures " + "no_shadow no_image no_reflection double_illuminate " + "hollow uv_mapping all use_index use_color " + "use_colour no_bump_scale conserve_energy fresnel " + "average agate boxed bozo bumps cells crackle " + "cylindrical density_file dents facets granite " + "leopard marble onion planar quilted radial ripples " + "spotted waves wood wrinkles solid use_alpha " + "interpolate magnet noise_generator toroidal " + "ramp_wave triangle_wave sine_wave scallop_wave " + "cubic_wave poly_wave once map_type method fog_type " + "hf_gray_16 charset ascii utf8 rotate scale " + "translate matrix location right up direction sky " + "angle look_at aperture blur_samples focal_point " + "confidence variance radius falloff tightness " + "point_at area_light adaptive fade_distance " + "fade_power threshold strength water_level tolerance " + "max_iteration precision slice u_steps v_steps " + "flatness inside_vector accuracy max_gradient " + "evaluate max_trace precompute target ior dispersion " + "dispersion_samples caustics color colour rgb rgbf " + "rgbt rgbft red green blue filter transmit gray hf " + "fade_color fade_colour quick_color quick_colour " + "brick checker hexagon brick_size mortar bump_size " + "ambient diffuse brilliance crand phong phong_size " + "metallic specular roughness reflection_exponent " + "exponent thickness gradient spiral1 spiral2 " + "agate_turb form metric offset df3 coords size " + "mandel exterior julia control0 control1 altitude " + "turbulence octaves omega lambda repeat flip " + "black-hole orientation dist_exp major_radius " + "frequency phase intervals samples ratio absorption " + "emission aa_threshold aa_level eccentricity " + "extinction distance turb_depth fog_offset fog_alt " + "width arc_angle falloff_angle adc_bailout " + "ambient_light assumed_gamma irid_wavelength " + "number_of_waves always_sample brigthness count " + "error_bound gray_threshold load_file " + "low_error_factor max_sample minimum_reuse " + "nearest_count pretrace_end pretrace_start " + "recursion_limit save_file spacing gather " + "max_trace_level autostop expand_thresholds"; + + if (set == 4) + return + "x y z t u v yes no true false on off clock " + "clock_delta clock_on final_clock final_frame " + "frame_number image_height image_width initial_clock " + "initial_frame pi version"; + + if (set == 5) + return + "abs acos acosh asc asin asinh atan atanh atan2 ceil " + "cos cosh defined degrees dimensions dimension_size " + "div exp file_exists floor inside int ln log max min " + "mod pow prod radians rand seed select sin sinh sqrt " + "strcmp strlen sum tan tanh val vdot vlength " + "min_extent max_extent trace vaxis_rotate vcross " + "vrotate vnormalize vturbulence chr concat str " + "strlwr strupr substr vstr sqr cube reciprocal pwr"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerPOV::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case CommentLine: + return tr("Comment line"); + + case Number: + return tr("Number"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case String: + return tr("String"); + + case UnclosedString: + return tr("Unclosed string"); + + case Directive: + return tr("Directive"); + + case BadDirective: + return tr("Bad directive"); + + case ObjectsCSGAppearance: + return tr("Objects, CSG and appearance"); + + case TypesModifiersItems: + return tr("Types, modifiers and items"); + + case PredefinedIdentifiers: + return tr("Predefined identifiers"); + + case PredefinedFunctions: + return tr("Predefined functions"); + + case KeywordSet6: + return tr("User defined 1"); + + case KeywordSet7: + return tr("User defined 2"); + + case KeywordSet8: + return tr("User defined 3"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerPOV::defaultPaper(int style) const +{ + switch (style) + { + case UnclosedString: + return QColor(0xe0,0xc0,0xe0); + + case ObjectsCSGAppearance: + return QColor(0xff,0xd0,0xd0); + + case TypesModifiersItems: + return QColor(0xff,0xff,0xd0); + + case PredefinedFunctions: + return QColor(0xd0,0xd0,0xff); + + case KeywordSet6: + return QColor(0xd0,0xff,0xd0); + + case KeywordSet7: + return QColor(0xd0,0xd0,0xd0); + + case KeywordSet8: + return QColor(0xe0,0xe0,0xe0); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerPOV::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setDirectiveProp(); +} + + +// Read properties from the settings. +bool QsciLexerPOV::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "folddirectives", false, &ok); + + if (ok) + fold_directives = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPOV::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "folddirectives", fold_directives)) + rc = false; + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerPOV::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerPOV::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerPOV::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerPOV::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerPOV::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPOV::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if directives can be folded. +bool QsciLexerPOV::foldDirectives() const +{ + return fold_directives; +} + + +// Set if directives can be folded. +void QsciLexerPOV::setFoldDirectives(bool fold) +{ + fold_directives = fold; + + setDirectiveProp(); +} + + +// Set the "fold.directive" property. +void QsciLexerPOV::setDirectiveProp() +{ + emit propertyChanged("fold.directive",(fold_directives ? "1" : "0")); +} diff --git a/Qt3/qscilexerproperties.cpp b/Qt3/qscilexerproperties.cpp new file mode 100644 index 0000000..5955701 --- /dev/null +++ b/Qt3/qscilexerproperties.cpp @@ -0,0 +1,235 @@ +// This module implements the QsciLexerProperties class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerproperties.h" + +#include +#include +#include + + +// The ctor. +QsciLexerProperties::QsciLexerProperties(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_compact(true), initial_spaces(true) +{ +} + + +// The dtor. +QsciLexerProperties::~QsciLexerProperties() +{ +} + + +// Returns the language name. +const char *QsciLexerProperties::language() const +{ + return "Properties"; +} + + +// Returns the lexer name. +const char *QsciLexerProperties::lexer() const +{ + return "props"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerProperties::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerProperties::defaultColor(int style) const +{ + switch (style) + { + case Comment: + return QColor(0x00,0x7f,0x7f); + + case Section: + return QColor(0x7f,0x00,0x7f); + + case Assignment: + return QColor(0xb0,0x60,0x00); + + case DefaultValue: + return QColor(0x7f,0x7f,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerProperties::defaultEolFill(int style) const +{ + if (style == Section) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerProperties::defaultFont(int style) const +{ + QFont f; + + if (style == Comment) +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + else + f = QsciLexer::defaultFont(style); + + return f; +} + + +// Returns the user name of a style. +QString QsciLexerProperties::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Section: + return tr("Section"); + + case Assignment: + return tr("Assignment"); + + case DefaultValue: + return tr("Default value"); + + case Key: + return tr("Key"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerProperties::defaultPaper(int style) const +{ + if (style == Section) + return QColor(0xe0,0xf0,0xf0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerProperties::refreshProperties() +{ + setCompactProp(); + setInitialSpacesProp(); +} + + +// Read properties from the settings. +bool QsciLexerProperties::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "initialspaces", true, &ok); + + if (ok) + initial_spaces = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerProperties::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "initialspaces", initial_spaces)) + rc = false; + + return rc; +} + + +// Set if folds are compact +void QsciLexerProperties::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerProperties::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} + + +// Set if initial spaces are allowed. +void QsciLexerProperties::setInitialSpaces(bool enable) +{ + initial_spaces = enable; + + setInitialSpacesProp(); +} + + +// Set the "lexer.props.allow.initial.spaces" property. +void QsciLexerProperties::setInitialSpacesProp() +{ + emit propertyChanged("lexer.props.allow.initial.spaces", (fold_compact ? "1" : "0")); +} diff --git a/Qt3/qscilexerpython.cpp b/Qt3/qscilexerpython.cpp new file mode 100644 index 0000000..8518f3d --- /dev/null +++ b/Qt3/qscilexerpython.cpp @@ -0,0 +1,566 @@ +// This module implements the QsciLexerPython class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerpython.h" + +#include +#include +#include + + +// The list of Python keywords that can be used by other friendly lexers. +const char *QsciLexerPython::keywordClass = + "and as assert break class continue def del elif else except exec " + "finally for from global if import in is lambda None not or pass " + "print raise return try while with yield"; + + +// The ctor. +QsciLexerPython::QsciLexerPython(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_comments(false), fold_compact(true), fold_quotes(false), + indent_warn(NoWarning), strings_over_newline(false), v2_unicode(true), + v3_binary_octal(true), v3_bytes(true), highlight_subids(true) +{ +} + + +// The dtor. +QsciLexerPython::~QsciLexerPython() +{ +} + + +// Returns the language name. +const char *QsciLexerPython::language() const +{ + return "Python"; +} + + +// Returns the lexer name. +const char *QsciLexerPython::lexer() const +{ + return "python"; +} + + +// Return the view used for indentation guides. +int QsciLexerPython::indentationGuideView() const +{ + return QsciScintillaBase::SC_IV_LOOKFORWARD; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerPython::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "."; + + return wl; +} + +// Return the list of characters that can start a block. +const char *QsciLexerPython::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return ":"; +} + + +// Return the number of lines to look back when auto-indenting. +int QsciLexerPython::blockLookback() const +{ + // This must be 0 otherwise de-indenting a Python block gets very + // difficult. + return 0; +} + + +// Return the style used for braces. +int QsciLexerPython::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPython::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + return QColor(0x7f,0x00,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case TripleSingleQuotedString: + case TripleDoubleQuotedString: + return QColor(0x7f,0x00,0x00); + + case ClassName: + return QColor(0x00,0x00,0xff); + + case FunctionMethodName: + return QColor(0x00,0x7f,0x7f); + + case Operator: + case Identifier: + break; + + case CommentBlock: + return QColor(0x7f,0x7f,0x7f); + + case UnclosedString: + return QColor(0x00,0x00,0x00); + + case HighlightedIdentifier: + return QColor(0x40,0x70,0x90); + + case Decorator: + return QColor(0x80,0x50,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerPython::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPython::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case DoubleQuotedString: + case SingleQuotedString: + case UnclosedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + case Keyword: + case ClassName: + case FunctionMethodName: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerPython::keywords(int set) const +{ + if (set != 1) + return 0; + + return keywordClass; +} + + +// Returns the user name of a style. +QString QsciLexerPython::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Number: + return tr("Number"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case Keyword: + return tr("Keyword"); + + case TripleSingleQuotedString: + return tr("Triple single-quoted string"); + + case TripleDoubleQuotedString: + return tr("Triple double-quoted string"); + + case ClassName: + return tr("Class name"); + + case FunctionMethodName: + return tr("Function or method name"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case CommentBlock: + return tr("Comment block"); + + case UnclosedString: + return tr("Unclosed string"); + + case HighlightedIdentifier: + return tr("Highlighted identifier"); + + case Decorator: + return tr("Decorator"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerPython::defaultPaper(int style) const +{ + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerPython::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setQuotesProp(); + setTabWhingeProp(); + setStringsOverNewlineProp(); + setV2UnicodeProp(); + setV3BinaryOctalProp(); + setV3BytesProp(); + setHighlightSubidsProp(); +} + + +// Read properties from the settings. +bool QsciLexerPython::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true, num; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldquotes", false, &ok); + + if (ok) + fold_quotes = flag; + else + rc = false; + + num = qs.readNumEntry(prefix + "indentwarning", (int)NoWarning, &ok); + + if (ok) + indent_warn = (IndentationWarning)num; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "stringsovernewline", false, &ok); + + if (ok) + strings_over_newline = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "v2unicode", true, &ok); + + if (ok) + v2_unicode = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "v3binaryoctal", true, &ok); + + if (ok) + v3_binary_octal = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "v3bytes", true, &ok); + + if (ok) + v3_bytes = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "highlightsubids", true, &ok); + + if (ok) + highlight_subids = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPython::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "foldquotes", fold_quotes)) + rc = false; + + if (!qs.writeEntry(prefix + "indentwarning", (int)indent_warn)) + rc = false; + + if (!qs.writeEntry(prefix + "stringsovernewline", strings_over_newline)) + rc = false; + + if (!qs.writeEntry(prefix + "v2unicode", v2_unicode)) + rc = false; + + if (!qs.writeEntry(prefix + "v3binaryoctal", v3_binary_octal)) + rc = false; + + if (!qs.writeEntry(prefix + "v3bytes", v3_bytes)) + rc = false; + + if (!qs.writeEntry(prefix + "highlightsubids", highlight_subids)) + rc = false; + + return rc; +} + + +// Set if comments can be folded. +void QsciLexerPython::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment.python" property. +void QsciLexerPython::setCommentProp() +{ + emit propertyChanged("fold.comment.python",(fold_comments ? "1" : "0")); +} + + +// Set if folds are compact. +void QsciLexerPython::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPython::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Set if quotes can be folded. +void QsciLexerPython::setFoldQuotes(bool fold) +{ + fold_quotes = fold; + + setQuotesProp(); +} + + +// Set the "fold.quotes.python" property. +void QsciLexerPython::setQuotesProp() +{ + emit propertyChanged("fold.quotes.python",(fold_quotes ? "1" : "0")); +} + + +// Set the indentation warning. +void QsciLexerPython::setIndentationWarning(QsciLexerPython::IndentationWarning warn) +{ + indent_warn = warn; + + setTabWhingeProp(); +} + + +// Set the "tab.timmy.whinge.level" property. +void QsciLexerPython::setTabWhingeProp() +{ + emit propertyChanged("tab.timmy.whinge.level", QString::number(indent_warn)); +} + + +// Set if string literals can span newlines. +void QsciLexerPython::setStringsOverNewlineAllowed(bool allowed) +{ + strings_over_newline = allowed; + + setStringsOverNewlineProp(); +} + + +// Set the "lexer.python.strings.u" property. +void QsciLexerPython::setStringsOverNewlineProp() +{ + emit propertyChanged("lexer.python.strings.over.newline", (strings_over_newline ? "1" : "0")); +} + + +// Set if v2 unicode string literals are allowed. +void QsciLexerPython::setV2UnicodeAllowed(bool allowed) +{ + v2_unicode = allowed; + + setV2UnicodeProp(); +} + + +// Set the "lexer.python.strings.u" property. +void QsciLexerPython::setV2UnicodeProp() +{ + emit propertyChanged("lexer.python.strings.u", (v2_unicode ? "1" : "0")); +} + + +// Set if v3 binary and octal literals are allowed. +void QsciLexerPython::setV3BinaryOctalAllowed(bool allowed) +{ + v3_binary_octal = allowed; + + setV3BinaryOctalProp(); +} + + +// Set the "lexer.python.literals.binary" property. +void QsciLexerPython::setV3BinaryOctalProp() +{ + emit propertyChanged("lexer.python.literals.binary", (v3_binary_octal ? "1" : "0")); +} + + +// Set if v3 bytes string literals are allowed. +void QsciLexerPython::setV3BytesAllowed(bool allowed) +{ + v3_bytes = allowed; + + setV3BytesProp(); +} + + +// Set the "lexer.python.strings.b" property. +void QsciLexerPython::setV3BytesProp() +{ + emit propertyChanged("lexer.python.strings.b",(v3_bytes ? "1" : "0")); +} + + +// Set if sub-identifiers are highlighted. +void QsciLexerPython::setHighlightSubidentifiers(bool enabled) +{ + highlight_subids = enabled; + + setHighlightSubidsProp(); +} + + +// Set the "lexer.python.keywords2.no.sub.identifiers" property. +void QsciLexerPython::setHighlightSubidsProp() +{ + emit propertyChanged("lexer.python.keywords2.no.sub.identifiers", + (highlight_subids ? "0" : "1")); +} diff --git a/Qt3/qscilexerruby.cpp b/Qt3/qscilexerruby.cpp new file mode 100644 index 0000000..d737912 --- /dev/null +++ b/Qt3/qscilexerruby.cpp @@ -0,0 +1,467 @@ +// This module implements the QsciLexerRuby class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerruby.h" + +#include +#include +#include + + +// The ctor. +QsciLexerRuby::QsciLexerRuby(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_comments(false), fold_compact(true) +{ +} + + +// The dtor. +QsciLexerRuby::~QsciLexerRuby() +{ +} + + +// Returns the language name. +const char *QsciLexerRuby::language() const +{ + return "Ruby"; +} + + +// Returns the lexer name. +const char *QsciLexerRuby::lexer() const +{ + return "ruby"; +} + + +// Return the list of words that can start a block. +const char *QsciLexerRuby::blockStart(int *style) const +{ + if (style) + *style = Keyword; + + return "do"; +} + + +// Return the list of words that can start end a block. +const char *QsciLexerRuby::blockEnd(int *style) const +{ + if (style) + *style = Keyword; + + return "end"; +} + + +// Return the list of words that can start end a block. +const char *QsciLexerRuby::blockStartKeyword(int *style) const +{ + if (style) + *style = Keyword; + + return "def class if do elsif else case while for"; +} + + +// Return the style used for braces. +int QsciLexerRuby::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerRuby::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case POD: + return QColor(0x00,0x40,0x00); + + case Number: + case FunctionMethodName: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + case DemotedKeyword: + return QColor(0x00,0x00,0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + case HereDocument: + case PercentStringq: + case PercentStringQ: + return QColor(0x7f,0x00,0x7f); + + case ClassName: + return QColor(0x00,0x00,0xff); + + case Regex: + case HereDocumentDelimiter: + case PercentStringr: + case PercentStringw: + return QColor(0x00,0x00,0x00); + + case Global: + return QColor(0x80,0x00,0x80); + + case Symbol: + return QColor(0xc0,0xa0,0x30); + + case ModuleName: + return QColor(0xa0,0x00,0xa0); + + case InstanceVariable: + return QColor(0xb0,0x00,0x80); + + case ClassVariable: + return QColor(0x80,0x00,0xb0); + + case Backticks: + case PercentStringx: + return QColor(0xff,0xff,0x00); + + case DataSection: + return QColor(0x60,0x00,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerRuby::defaultEolFill(int style) const +{ + bool fill; + + switch (style) + { + case POD: + case DataSection: + case HereDocument: + fill = true; + break; + + default: + fill = QsciLexer::defaultEolFill(style); + } + + return fill; +} + + +// Returns the font of the text for a style. +QFont QsciLexerRuby::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case POD: + case DoubleQuotedString: + case SingleQuotedString: + case PercentStringq: + case PercentStringQ: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + case Keyword: + case ClassName: + case FunctionMethodName: + case Operator: + case ModuleName: + case DemotedKeyword: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerRuby::keywords(int set) const +{ + if (set == 1) + return + "__FILE__ and def end in or self unless __LINE__ " + "begin defined? ensure module redo super until BEGIN " + "break do false next rescue then when END case else " + "for nil require retry true while alias class elsif " + "if not return undef yield"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerRuby::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Error: + return tr("Error"); + + case Comment: + return tr("Comment"); + + case POD: + return tr("POD"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case ClassName: + return tr("Class name"); + + case FunctionMethodName: + return tr("Function or method name"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case Regex: + return tr("Regular expression"); + + case Global: + return tr("Global"); + + case Symbol: + return tr("Symbol"); + + case ModuleName: + return tr("Module name"); + + case InstanceVariable: + return tr("Instance variable"); + + case ClassVariable: + return tr("Class variable"); + + case Backticks: + return tr("Backticks"); + + case DataSection: + return tr("Data section"); + + case HereDocumentDelimiter: + return tr("Here document delimiter"); + + case HereDocument: + return tr("Here document"); + + case PercentStringq: + return tr("%q string"); + + case PercentStringQ: + return tr("%Q string"); + + case PercentStringx: + return tr("%x string"); + + case PercentStringr: + return tr("%r string"); + + case PercentStringw: + return tr("%w string"); + + case DemotedKeyword: + return tr("Demoted keyword"); + + case Stdin: + return tr("stdin"); + + case Stdout: + return tr("stdout"); + + case Stderr: + return tr("stderr"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerRuby::defaultPaper(int style) const +{ + switch (style) + { + case Error: + return QColor(0xff,0x00,0x00); + + case POD: + return QColor(0xc0,0xff,0xc0); + + case Regex: + case PercentStringr: + return QColor(0xa0,0xff,0xa0); + + case Backticks: + case PercentStringx: + return QColor(0xa0,0x80,0x80); + + case DataSection: + return QColor(0xff,0xf0,0xd8); + + case HereDocumentDelimiter: + case HereDocument: + return QColor(0xdd,0xd0,0xdd); + + case PercentStringw: + return QColor(0xff,0xff,0xe0); + + case Stdin: + case Stdout: + case Stderr: + return QColor(0xff,0x80,0x80); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerRuby::refreshProperties() +{ + setCommentProp(); + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerRuby::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = true; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerRuby::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + return rc; +} + + +// Set if comments can be folded. +void QsciLexerRuby::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerRuby::setCommentProp() +{ + emit propertyChanged("fold.comment", (fold_comments ? "1" : "0")); +} + + +// Set if folds are compact +void QsciLexerRuby::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerRuby::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} diff --git a/Qt3/qscilexerspice.cpp b/Qt3/qscilexerspice.cpp new file mode 100644 index 0000000..d06e08a --- /dev/null +++ b/Qt3/qscilexerspice.cpp @@ -0,0 +1,199 @@ +// This module implements the QsciLexerSpice class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerspice.h" + +#include +#include + + +// The ctor. +QsciLexerSpice::QsciLexerSpice(QObject *parent, const char *name) + : QsciLexer(parent, name) +{ +} + + +// The dtor. +QsciLexerSpice::~QsciLexerSpice() +{ +} + + +// Returns the language name. +const char *QsciLexerSpice::language() const +{ + return "Spice"; +} + + +// Returns the lexer name. +const char *QsciLexerSpice::lexer() const +{ + return "spice"; +} + + +// Return the style used for braces. +int QsciLexerSpice::braceStyle() const +{ + return Parameter; +} + + +// Returns the set of keywords. +const char *QsciLexerSpice::keywords(int set) const +{ + if (set == 1) + return + "ac alias alter alterparam append askvalues assertvalid " + "autoscale break compose copy copytodoc dc delete destroy " + "destroyvec diff display disto dowhile echo else end errorstop " + "fftinit filter foreach fourier freqtotime function " + "functionundef goto homecursors if isdisplayed label let " + "linearize listing load loadaccumulator makelabel movelabel " + "makesmithplot movecursorleft movecursorright msgbox nameplot " + "newplot nextparam noise nopoints op plot plotf plotref poly " + "print printcursors printevent printname printplot printstatus " + "printtext printtol printunits printval printvector pwl pz quit " + "removesmithplot rename repeat resume rotate runs rusage save " + "sendplot sendscript sens set setcursor setdoc setlabel " + "setlabeltype setmargins setnthtrigger setunits setvec setparam " + "setplot setquery setscaletype settracecolor settracestyle " + "setsource settrigger setvec setxlimits setylimits show showmod " + "sort status step stop switch tf timetofreq timetowave tran " + "unalias unlet unset unalterparam update version view wavefilter " + "wavetotime where while write"; + + if (set == 2) + return + "abs askvalue atan average ceil cos db differentiate " + "differentiatex exp finalvalue floor getcursorx getcursory " + "getcursory0 getcursory1 getparam im ln initialvalue integrate " + "integratex interpolate isdef isdisplayed j log length mag max " + "maxscale mean meanpts min minscale nextplot nextvector norm " + "operatingpoint ph phase phaseextend pk_pk pos pulse re rms " + "rmspts rnd sameplot sin sqrt stddev stddevpts tan tfall " + "tolerance trise unitvec vector"; + + if (set == 3) + return "param nodeset include options dcconv subckt ends model"; + + return 0; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerSpice::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Command: + case Function: + return QColor(0x00,0x00,0x7f); + + case Parameter: + return QColor(0x00,0x40,0xe0); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Delimiter: + return QColor(0x00,0x00,0x00); + + case Value: + return QColor(0x7f,0x00,0x7f); + + case Comment: + return QColor(0x00,0x7f,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerSpice::defaultFont(int style) const +{ + QFont f; + + if (style == Comment) +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + else + { + f = QsciLexer::defaultFont(style); + + if (style == Function || style == Delimiter) + f.setBold(true); + } + + return f; +} + + +// Returns the user name of a style. +QString QsciLexerSpice::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Identifier: + return tr("Identifier"); + + case Command: + return tr("Command"); + + case Function: + return tr("Function"); + + case Parameter: + return tr("Parameter"); + + case Number: + return tr("Number"); + + case Delimiter: + return tr("Delimiter"); + + case Value: + return tr("Value"); + + case Comment: + return tr("Comment"); + } + + return QString(); +} diff --git a/Qt3/qscilexersql.cpp b/Qt3/qscilexersql.cpp new file mode 100644 index 0000000..ac95cb1 --- /dev/null +++ b/Qt3/qscilexersql.cpp @@ -0,0 +1,587 @@ +// This module implements the QsciLexerSQL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexersql.h" + +#include +#include +#include + + +// The ctor. +QsciLexerSQL::QsciLexerSQL(QObject *parent, const char *name) + : QsciLexer(parent, name), + at_else(false), fold_comments(false), fold_compact(true), + only_begin(false), backticks_identifier(false), + numbersign_comment(false), backslash_escapes(false), + allow_dotted_word(false) +{ +} + + +// The dtor. +QsciLexerSQL::~QsciLexerSQL() +{ +} + + +// Returns the language name. +const char *QsciLexerSQL::language() const +{ + return "SQL"; +} + + +// Returns the lexer name. +const char *QsciLexerSQL::lexer() const +{ + return "sql"; +} + + +// Return the style used for braces. +int QsciLexerSQL::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerSQL::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + case CommentLine: + case PlusPrompt: + case PlusComment: + case CommentLineHash: + return QColor(0x00,0x7f,0x00); + + case CommentDoc: + return QColor(0x7f,0x7f,0x7f); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + return QColor(0x7f,0x00,0x7f); + + case PlusKeyword: + return QColor(0x7f,0x7f,0x00); + + case Operator: + case Identifier: + break; + + case CommentDocKeyword: + return QColor(0x30,0x60,0xa0); + + case CommentDocKeywordError: + return QColor(0x80,0x40,0x20); + + case KeywordSet5: + return QColor(0x4b,0x00,0x82); + + case KeywordSet6: + return QColor(0xb0,0x00,0x40); + + case KeywordSet7: + return QColor(0x8b,0x00,0x00); + + case KeywordSet8: + return QColor(0x80,0x00,0x80); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerSQL::defaultEolFill(int style) const +{ + if (style == PlusPrompt) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerSQL::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case PlusComment: + case CommentLineHash: + case CommentDocKeyword: + case CommentDocKeywordError: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DoubleQuotedString: + case SingleQuotedString: + case PlusPrompt: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerSQL::keywords(int set) const +{ + if (set == 1) + return + "absolute action add admin after aggregate alias all " + "allocate alter and any are array as asc assertion " + "at authorization before begin binary bit blob " + "boolean both breadth by call cascade cascaded case " + "cast catalog char character check class clob close " + "collate collation column commit completion connect " + "connection constraint constraints constructor " + "continue corresponding create cross cube current " + "current_date current_path current_role current_time " + "current_timestamp current_user cursor cycle data " + "date day deallocate dec decimal declare default " + "deferrable deferred delete depth deref desc " + "describe descriptor destroy destructor " + "deterministic dictionary diagnostics disconnect " + "distinct domain double drop dynamic each else end " + "end-exec equals escape every except exception exec " + "execute external false fetch first float for " + "foreign found from free full function general get " + "global go goto grant group grouping having host " + "hour identity if ignore immediate in indicator " + "initialize initially inner inout input insert int " + "integer intersect interval into is isolation " + "iterate join key language large last lateral " + "leading left less level like limit local localtime " + "localtimestamp locator map match minute modifies " + "modify module month names national natural nchar " + "nclob new next no none not null numeric object of " + "off old on only open operation option or order " + "ordinality out outer output pad parameter " + "parameters partial path postfix precision prefix " + "preorder prepare preserve primary prior privileges " + "procedure public read reads real recursive ref " + "references referencing relative restrict result " + "return returns revoke right role rollback rollup " + "routine row rows savepoint schema scroll scope " + "search second section select sequence session " + "session_user set sets size smallint some| space " + "specific specifictype sql sqlexception sqlstate " + "sqlwarning start state statement static structure " + "system_user table temporary terminate than then " + "time timestamp timezone_hour timezone_minute to " + "trailing transaction translation treat trigger " + "true under union unique unknown unnest update usage " + "user using value values varchar variable varying " + "view when whenever where with without work write " + "year zone"; + + if (set == 3) + return + "param author since return see deprecated todo"; + + if (set == 4) + return + "acc~ept a~ppend archive log attribute bre~ak " + "bti~tle c~hange cl~ear col~umn comp~ute conn~ect " + "copy def~ine del desc~ribe disc~onnect e~dit " + "exec~ute exit get help ho~st i~nput l~ist passw~ord " + "pau~se pri~nt pro~mpt quit recover rem~ark " + "repf~ooter reph~eader r~un sav~e set sho~w shutdown " + "spo~ol sta~rt startup store timi~ng tti~tle " + "undef~ine var~iable whenever oserror whenever " + "sqlerror"; + + if (set == 5) + return + "dbms_output.disable dbms_output.enable dbms_output.get_line " + "dbms_output.get_lines dbms_output.new_line dbms_output.put " + "dbms_output.put_line"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerSQL::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case CommentLine: + return tr("Comment line"); + + case CommentDoc: + return tr("JavaDoc style comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case PlusKeyword: + return tr("SQL*Plus keyword"); + + case PlusPrompt: + return tr("SQL*Plus prompt"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case PlusComment: + return tr("SQL*Plus comment"); + + case CommentLineHash: + return tr("# comment line"); + + case CommentDocKeyword: + return tr("JavaDoc keyword"); + + case CommentDocKeywordError: + return tr("JavaDoc keyword error"); + + case KeywordSet5: + return tr("User defined 1"); + + case KeywordSet6: + return tr("User defined 2"); + + case KeywordSet7: + return tr("User defined 3"); + + case KeywordSet8: + return tr("User defined 4"); + + case QuotedIdentifier: + return tr("Quoted identifier"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerSQL::defaultPaper(int style) const +{ + if (style == PlusPrompt) + return QColor(0xe0,0xff,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerSQL::refreshProperties() +{ + setAtElseProp(); + setCommentProp(); + setCompactProp(); + setOnlyBeginProp(); + setBackticksIdentifierProp(); + setNumbersignCommentProp(); + setBackslashEscapesProp(); + setAllowDottedWordProp(); +} + + +// Read properties from the settings. +bool QsciLexerSQL::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "atelse", false, &ok); + + if (ok) + at_else = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "onlybegin", false, &ok); + + if (ok) + only_begin = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "backticksidentifier", false, &ok); + + if (ok) + backticks_identifier = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "numbersigncomment", false, &ok); + + if (ok) + numbersign_comment = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "backslashescapes", false, &ok); + + if (ok) + backslash_escapes = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "allowdottedword", false, &ok); + + if (ok) + allow_dotted_word = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerSQL::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "atelse", at_else)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "onlybegin", only_begin)) + rc = false; + + if (!qs.writeEntry(prefix + "backticksidentifier", backticks_identifier)) + rc = false; + + if (!qs.writeEntry(prefix + "numbersigncomment", numbersign_comment)) + rc = false; + + if (!qs.writeEntry(prefix + "backslashescapes", backslash_escapes)) + rc = false; + + if (!qs.writeEntry(prefix + "allowdottedword", allow_dotted_word)) + rc = false; + + return rc; +} + + +// Set if ELSE blocks can be folded. +void QsciLexerSQL::setFoldAtElse(bool fold) +{ + at_else = fold; + + setAtElseProp(); +} + + +// Set the "fold.sql.at.else" property. +void QsciLexerSQL::setAtElseProp() +{ + emit propertyChanged("fold.sql.at.else", (at_else ? "1" : "0")); +} + + +// Set if comments can be folded. +void QsciLexerSQL::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerSQL::setCommentProp() +{ + emit propertyChanged("fold.comment", (fold_comments ? "1" : "0")); +} + + +// Set if folds are compact +void QsciLexerSQL::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerSQL::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} + + +// Set if BEGIN blocks only can be folded. +void QsciLexerSQL::setFoldOnlyBegin(bool fold) +{ + only_begin = fold; + + setOnlyBeginProp(); +} + + +// Set the "fold.sql.only.begin" property. +void QsciLexerSQL::setOnlyBeginProp() +{ + emit propertyChanged("fold.sql.only.begin", (only_begin ? "1" : "0")); +} + + +// Enable quoted identifiers. +void QsciLexerSQL::setQuotedIdentifiers(bool enable) +{ + backticks_identifier = enable; + + setBackticksIdentifierProp(); +} + + +// Set the "lexer.sql.backticks.identifier" property. +void QsciLexerSQL::setBackticksIdentifierProp() +{ + emit propertyChanged("lexer.sql.backticks.identifier", (backticks_identifier ? "1" : "0")); +} + + +// Enable '#' as a comment character. +void QsciLexerSQL::setHashComments(bool enable) +{ + numbersign_comment = enable; + + setNumbersignCommentProp(); +} + + +// Set the "lexer.sql.numbersign.comment" property. +void QsciLexerSQL::setNumbersignCommentProp() +{ + emit propertyChanged("lexer.sql.numbersign.comment", (numbersign_comment ? "1" : "0")); +} + + +// Enable/disable backslash escapes. +void QsciLexerSQL::setBackslashEscapes(bool enable) +{ + backslash_escapes = enable; + + setBackslashEscapesProp(); +} + + +// Set the "sql.backslash.escapes" property. +void QsciLexerSQL::setBackslashEscapesProp() +{ + emit propertyChanged("sql.backslash.escapes", (backslash_escapes ? "1" : "0")); +} + + +// Enable dotted words. +void QsciLexerSQL::setDottedWords(bool enable) +{ + allow_dotted_word = enable; + + setAllowDottedWordProp(); +} + + +// Set the "lexer.sql.allow.dotted.word" property. +void QsciLexerSQL::setAllowDottedWordProp() +{ + emit propertyChanged("lexer.sql.allow.dotted.word", (allow_dotted_word ? "1" : "0")); +} diff --git a/Qt3/qscilexertcl.cpp b/Qt3/qscilexertcl.cpp new file mode 100644 index 0000000..b722165 --- /dev/null +++ b/Qt3/qscilexertcl.cpp @@ -0,0 +1,452 @@ +// This module implements the QsciLexerTCL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexertcl.h" + +#include +#include +#include + + +// The ctor. +QsciLexerTCL::QsciLexerTCL(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_comments(false) +{ +} + + +// The dtor. +QsciLexerTCL::~QsciLexerTCL() +{ +} + + +// Returns the language name. +const char *QsciLexerTCL::language() const +{ + return "TCL"; +} + + +// Returns the lexer name. +const char *QsciLexerTCL::lexer() const +{ + return "tcl"; +} + + +// Return the style used for braces. +int QsciLexerTCL::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerTCL::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + case CommentLine: + case CommentBox: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case QuotedKeyword: + case QuotedString: + case Modifier: + return QColor(0x7f,0x00,0x7f); + + case Operator: + return QColor(0x00,0x00,0x00); + + case Identifier: + case ExpandKeyword: + case TCLKeyword: + case TkKeyword: + case ITCLKeyword: + case TkCommand: + case KeywordSet6: + case KeywordSet7: + case KeywordSet8: + case KeywordSet9: + return QColor(0x00,0x00,0x7f); + + case Substitution: + case SubstitutionBrace: + return QColor(0x7f,0x7f,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerTCL::defaultEolFill(int style) const +{ + switch (style) + { + case QuotedString: + case CommentBox: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerTCL::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case CommentBox: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS", 9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif", 9); +#endif + break; + + case QuotedKeyword: + case Operator: + case ExpandKeyword: + case TCLKeyword: + case TkKeyword: + case ITCLKeyword: + case TkCommand: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case CommentBlock: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS", 8); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 11); +#else + f = QFont("Serif", 9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerTCL::keywords(int set) const +{ + if (set == 1) + return + "after append array auto_execok auto_import auto_load " + "auto_load_index auto_qualify beep bgerror binary break case " + "catch cd clock close concat continue dde default echo else " + "elseif encoding eof error eval exec exit expr fblocked " + "fconfigure fcopy file fileevent flush for foreach format gets " + "glob global history http if incr info interp join lappend lindex " + "linsert list llength load loadTk lrange lreplace lsearch lset " + "lsort memory msgcat namespace open package pid pkg::create " + "pkg_mkIndex Platform-specific proc puts pwd re_syntax read " + "regexp registry regsub rename resource return scan seek set " + "socket source split string subst switch tclLog tclMacPkgSearch " + "tclPkgSetup tclPkgUnknown tell time trace unknown unset update " + "uplevel upvar variable vwait while"; + + if (set == 2) + return + "bell bind bindtags bitmap button canvas checkbutton clipboard " + "colors console cursors destroy entry event focus font frame grab " + "grid image Inter-client keysyms label labelframe listbox lower " + "menu menubutton message option options pack panedwindow photo " + "place radiobutton raise scale scrollbar selection send spinbox " + "text tk tk_chooseColor tk_chooseDirectory tk_dialog tk_focusNext " + "tk_getOpenFile tk_messageBox tk_optionMenu tk_popup " + "tk_setPalette tkerror tkvars tkwait toplevel winfo wish wm"; + + if (set == 3) + return + "@scope body class code common component configbody constructor " + "define destructor hull import inherit itcl itk itk_component " + "itk_initialize itk_interior itk_option iwidgets keep method " + "private protected public"; + + if (set == 4) + return + "tk_bisque tk_chooseColor tk_dialog tk_focusFollowsMouse " + "tk_focusNext tk_focusPrev tk_getOpenFile tk_getSaveFile " + "tk_messageBox tk_optionMenu tk_popup tk_setPalette tk_textCopy " + "tk_textCut tk_textPaste tkButtonAutoInvoke tkButtonDown " + "tkButtonEnter tkButtonInvoke tkButtonLeave tkButtonUp " + "tkCancelRepeat tkCheckRadioDown tkCheckRadioEnter " + "tkCheckRadioInvoke tkColorDialog tkColorDialog_BuildDialog " + "tkColorDialog_CancelCmd tkColorDialog_Config " + "tkColorDialog_CreateSelector tkColorDialog_DrawColorScale " + "tkColorDialog_EnterColorBar tkColorDialog_HandleRGB Entry " + "tkColorDialog_HandleSelEntry tkColorDialog_InitValues " + "tkColorDialog_LeaveColorBar tkColorDialog_MoveSelector " + "tkColorDialog_OkCmd tkColorDialog_RedrawColorBars " + "tkColorDialog_RedrawFinalColor tkColorDialog_ReleaseMouse " + "tkColorDialog_ResizeColorBars tkColorDialog_RgbToX " + "tkColorDialog_SetRGBValue tkColorDialog_StartMove " + "tkColorDialog_XToRgb tkConsoleAbout tkConsoleBind tkConsoleExit " + "tkConsoleHistory tkConsoleInit tkConsoleInsert tkConsoleInvoke " + "tkConsoleOutput tkConsolePrompt tkConsoleSource tkDarken " + "tkEntryAutoScan tkEntryBackspace tkEntryButton1 " + "tkEntryClosestGap tkEntryGetSelection tkEntryInsert " + "tkEntryKeySelect tkEntryMouseSelect tkEntryNextWord tkEntryPaste " + "tkEntryPreviousWord tkEntrySeeInsert tkEntrySetCursor " + "tkEntryTranspose tkEventMotifBindings tkFDGetFileTypes " + "tkFirstMenu tkFocusGroup_BindIn tkFocusGroup_BindOut " + "tkFocusGroup_Create tkFocusGroup_Destroy tkFocusGroup_In " + "tkFocusGroup_Out tkFocusOK tkGenerateMenuSelect tkIconList " + "tkIconList_Add tkIconList_Arrange tkIconList_AutoScan " + "tkIconList_Btn1 tkIconList_Config tkIconList_Create " + "tkIconList_CtrlBtn1 tkIconList_Curselection tkIconList_DeleteAll " + "tkIconList_Double1 tkIconList_DrawSelection tkIconList_FocusIn " + "tkIconList_FocusOut tkIconList_Get tkIconList_Goto " + "tkIconList_Index tkIconList_Invoke tkIconList_KeyPress " + "tkIconList_Leave1 tkIconList_LeftRight tkIconList_Motion1 " + "tkIconList_Reset tkIconList_ReturnKey tkIconList_See " + "tkIconList_Select tkIconList_Selection tkIconList_ShiftBtn1 " + "tkIconList_UpDown tkListbox tkListboxAutoScan " + "tkListboxBeginExtend tkListboxBeginSelect tkListboxBeginToggle " + "tkListboxCancel tkListboxDataExtend tkListboxExtendUpDown " + "tkListboxKeyAccel_Goto tkListboxKeyAccel_Key " + "tkListboxKeyAccel_Reset tkListboxKeyAccel_Set " + "tkListboxKeyAccel_Unset tkListboxMotion tkListboxSelectAll " + "tkListboxUpDown tkMbButtonUp tkMbEnter tkMbLeave tkMbMotion " + "tkMbPost tkMenuButtonDown tkMenuDownArrow tkMenuDup tkMenuEscape " + "tkMenuFind tkMenuFindName tkMenuFirstEntry tkMenuInvoke " + "tkMenuLeave tkMenuLeftArrow tkMenuMotion tkMenuNextEntry " + "tkMenuNextMenu tkMenuRightArrow tkMenuUnpost tkMenuUpArrow " + "tkMessageBox tkMotifFDialog tkMotifFDialog_ActivateDList " + "tkMotifFDialog_ActivateFEnt tkMotifFDialog_ActivateFList " + "tkMotifFDialog_ActivateSEnt tkMotifFDialog_BrowseDList " + "tkMotifFDialog_BrowseFList tkMotifFDialog_BuildUI " + "tkMotifFDialog_CancelCmd tkMotifFDialog_Config " + "tkMotifFDialog_Create tkMotifFDialog_FileTypes " + "tkMotifFDialog_FilterCmd tkMotifFDialog_InterpFilter " + "tkMotifFDialog_LoadFiles tkMotifFDialog_MakeSList " + "tkMotifFDialog_OkCmd tkMotifFDialog_SetFilter " + "tkMotifFDialog_SetListMode tkMotifFDialog_Update tkPostOverPoint " + "tkRecolorTree tkRestoreOldGrab tkSaveGrabInfo tkScaleActivate " + "tkScaleButton2Down tkScaleButtonDown tkScaleControlPress " + "tkScaleDrag tkScaleEndDrag tkScaleIncrement tkScreenChanged " + "tkScrollButton2Down tkScrollButtonDown tkScrollButtonDrag " + "tkScrollButtonUp tkScrollByPages tkScrollByUnits tkScrollDrag " + "tkScrollEndDrag tkScrollSelect tkScrollStartDrag " + "tkScrollTopBottom tkScrollToPos tkTabToWindow tkTearOffMenu " + "tkTextAutoScan tkTextButton1 tkTextClosestGap tkTextInsert " + "tkTextKeyExtend tkTextKeySelect tkTextNextPara tkTextNextPos " + "tkTextNextWord tkTextPaste tkTextPrevPara tkTextPrevPos " + "tkTextPrevWord tkTextResetAnchor tkTextScrollPages " + "tkTextSelectTo tkTextSetCursor tkTextTranspose tkTextUpDownLine " + "tkTraverseToMenu tkTraverseWithinMenu"; + + if (set == 5) + return "expand"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerTCL::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case CommentLine: + return tr("Comment line"); + + case Number: + return tr("Number"); + + case QuotedKeyword: + return tr("Quoted keyword"); + + case QuotedString: + return tr("Quoted string"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case Substitution: + return tr("Substitution"); + + case SubstitutionBrace: + return tr("Brace substitution"); + + case Modifier: + return tr("Modifier"); + + case ExpandKeyword: + return tr("Expand keyword"); + + case TCLKeyword: + return tr("TCL keyword"); + + case TkKeyword: + return tr("Tk keyword"); + + case ITCLKeyword: + return tr("iTCL keyword"); + + case TkCommand: + return tr("Tk command"); + + case KeywordSet6: + return tr("User defined 1"); + + case KeywordSet7: + return tr("User defined 2"); + + case KeywordSet8: + return tr("User defined 3"); + + case KeywordSet9: + return tr("User defined 4"); + + case CommentBox: + return tr("Comment box"); + + case CommentBlock: + return tr("Comment block"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerTCL::defaultPaper(int style) const +{ + switch (style) + { + case Comment: + return QColor(0xf0,0xff,0xe0); + + case QuotedKeyword: + case QuotedString: + case ITCLKeyword: + return QColor(0xff,0xf0,0xf0); + + case Substitution: + return QColor(0xef,0xff,0xf0); + + case ExpandKeyword: + return QColor(0xff,0xff,0x80); + + case TkKeyword: + return QColor(0xe0,0xff,0xf0); + + case TkCommand: + return QColor(0xff,0xd0,0xd0); + + case CommentBox: + case CommentBlock: + return QColor(0xf0,0xff,0xf0); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerTCL::refreshProperties() +{ + setCommentProp(); +} + + +// Read properties from the settings. +bool QsciLexerTCL::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerTCL::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + return rc; +} + + +// Set if comments can be folded. +void QsciLexerTCL::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerTCL::setCommentProp() +{ + emit propertyChanged("fold.comment", (fold_comments ? "1" : "0")); +} diff --git a/Qt3/qscilexertex.cpp b/Qt3/qscilexertex.cpp new file mode 100644 index 0000000..d9c8d5b --- /dev/null +++ b/Qt3/qscilexertex.cpp @@ -0,0 +1,345 @@ +// This module implements the QsciLexerTeX class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexertex.h" + +#include +#include +#include + + +// The ctor. +QsciLexerTeX::QsciLexerTeX(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_comments(false), fold_compact(true), process_comments(false), + process_if(true) +{ +} + + +// The dtor. +QsciLexerTeX::~QsciLexerTeX() +{ +} + + +// Returns the language name. +const char *QsciLexerTeX::language() const +{ + return "TeX"; +} + + +// Returns the lexer name. +const char *QsciLexerTeX::lexer() const +{ + return "tex"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerTeX::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\\@"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerTeX::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x3f,0x3f,0x3f); + + case Special: + return QColor(0x00,0x7f,0x7f); + + case Group: + return QColor(0x7f,0x00,0x00); + + case Symbol: + return QColor(0x7f,0x7f,0x00); + + case Command: + return QColor(0x00,0x7f,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the set of keywords. +const char *QsciLexerTeX::keywords(int set) const +{ + if (set == 1) + return + "above abovedisplayshortskip abovedisplayskip " + "abovewithdelims accent adjdemerits advance " + "afterassignment aftergroup atop atopwithdelims " + "badness baselineskip batchmode begingroup " + "belowdisplayshortskip belowdisplayskip binoppenalty " + "botmark box boxmaxdepth brokenpenalty catcode char " + "chardef cleaders closein closeout clubpenalty copy " + "count countdef cr crcr csname day deadcycles def " + "defaulthyphenchar defaultskewchar delcode delimiter " + "delimiterfactor delimeters delimitershortfall " + "delimeters dimen dimendef discretionary " + "displayindent displaylimits displaystyle " + "displaywidowpenalty displaywidth divide " + "doublehyphendemerits dp dump edef else " + "emergencystretch end endcsname endgroup endinput " + "endlinechar eqno errhelp errmessage " + "errorcontextlines errorstopmode escapechar everycr " + "everydisplay everyhbox everyjob everymath everypar " + "everyvbox exhyphenpenalty expandafter fam fi " + "finalhyphendemerits firstmark floatingpenalty font " + "fontdimen fontname futurelet gdef global group " + "globaldefs halign hangafter hangindent hbadness " + "hbox hfil horizontal hfill horizontal hfilneg hfuzz " + "hoffset holdinginserts hrule hsize hskip hss " + "horizontal ht hyphenation hyphenchar hyphenpenalty " + "hyphen if ifcase ifcat ifdim ifeof iffalse ifhbox " + "ifhmode ifinner ifmmode ifnum ifodd iftrue ifvbox " + "ifvmode ifvoid ifx ignorespaces immediate indent " + "input inputlineno input insert insertpenalties " + "interlinepenalty jobname kern language lastbox " + "lastkern lastpenalty lastskip lccode leaders left " + "lefthyphenmin leftskip leqno let limits linepenalty " + "line lineskip lineskiplimit long looseness lower " + "lowercase mag mark mathaccent mathbin mathchar " + "mathchardef mathchoice mathclose mathcode mathinner " + "mathop mathopen mathord mathpunct mathrel " + "mathsurround maxdeadcycles maxdepth meaning " + "medmuskip message mkern month moveleft moveright " + "mskip multiply muskip muskipdef newlinechar noalign " + "noboundary noexpand noindent nolimits nonscript " + "scriptscript nonstopmode nulldelimiterspace " + "nullfont number omit openin openout or outer output " + "outputpenalty over overfullrule overline " + "overwithdelims pagedepth pagefilllstretch " + "pagefillstretch pagefilstretch pagegoal pageshrink " + "pagestretch pagetotal par parfillskip parindent " + "parshape parskip patterns pausing penalty " + "postdisplaypenalty predisplaypenalty predisplaysize " + "pretolerance prevdepth prevgraf radical raise read " + "relax relpenalty right righthyphenmin rightskip " + "romannumeral scriptfont scriptscriptfont " + "scriptscriptstyle scriptspace scriptstyle " + "scrollmode setbox setlanguage sfcode shipout show " + "showbox showboxbreadth showboxdepth showlists " + "showthe skewchar skip skipdef spacefactor spaceskip " + "span special splitbotmark splitfirstmark " + "splitmaxdepth splittopskip string tabskip textfont " + "textstyle the thickmuskip thinmuskip time toks " + "toksdef tolerance topmark topskip tracingcommands " + "tracinglostchars tracingmacros tracingonline " + "tracingoutput tracingpages tracingparagraphs " + "tracingrestores tracingstats uccode uchyph " + "underline unhbox unhcopy unkern unpenalty unskip " + "unvbox unvcopy uppercase vadjust valign vbadness " + "vbox vcenter vfil vfill vfilneg vfuzz voffset vrule " + "vsize vskip vsplit vss vtop wd widowpenalty write " + "xdef xleaders xspaceskip year " + "TeX bgroup egroup endgraf space empty null newcount " + "newdimen newskip newmuskip newbox newtoks newhelp " + "newread newwrite newfam newlanguage newinsert newif " + "maxdimen magstephalf magstep frenchspacing " + "nonfrenchspacing normalbaselines obeylines " + "obeyspaces raggedr ight ttraggedright thinspace " + "negthinspace enspace enskip quad qquad smallskip " + "medskip bigskip removelastskip topglue vglue hglue " + "break nobreak allowbreak filbreak goodbreak " + "smallbreak medbreak bigbreak line leftline " + "rightline centerline rlap llap underbar strutbox " + "strut cases matrix pmatrix bordermatrix eqalign " + "displaylines eqalignno leqalignno pageno folio " + "tracingall showhyphens fmtname fmtversion hphantom " + "vphantom phantom smash"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerTeX::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Special: + return tr("Special"); + + case Group: + return tr("Group"); + + case Symbol: + return tr("Symbol"); + + case Command: + return tr("Command"); + + case Text: + return tr("Text"); + } + + return QString(); +} + + +// Refresh all properties. +void QsciLexerTeX::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setProcessCommentsProp(); + setAutoIfProp(); +} + + +// Read properties from the settings. +bool QsciLexerTeX::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = true; + + flag = qs.readBoolEntry(prefix + "processcomments", false, &ok); + + if (ok) + process_comments = flag; + else + rc = true; + + flag = qs.readBoolEntry(prefix + "processif", true, &ok); + + if (ok) + process_if = flag; + else + rc = true; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerTeX::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "processcomments", process_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "processif", process_if)) + rc = false; + + return rc; +} + + +// Set if comments can be folded. +void QsciLexerTeX::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerTeX::setCommentProp() +{ + emit propertyChanged("fold.comment", (fold_comments ? "1" : "0")); +} + + +// Set if folds are compact. +void QsciLexerTeX::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerTeX::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} + + +// Set if comments are processed +void QsciLexerTeX::setProcessComments(bool enable) +{ + process_comments = enable; + + setProcessCommentsProp(); +} + + +// Set the "lexer.tex.comment.process" property. +void QsciLexerTeX::setProcessCommentsProp() +{ + emit propertyChanged("lexer.tex.comment.process", (process_comments ? "1" : "0")); +} + + +// Set if \if is processed +void QsciLexerTeX::setProcessIf(bool enable) +{ + process_if = enable; + + setAutoIfProp(); +} + + +// Set the "lexer.tex.auto.if" property. +void QsciLexerTeX::setAutoIfProp() +{ + emit propertyChanged("lexer.tex.auto.if", (process_if ? "1" : "0")); +} diff --git a/Qt3/qscilexerverilog.cpp b/Qt3/qscilexerverilog.cpp new file mode 100644 index 0000000..81d6fb7 --- /dev/null +++ b/Qt3/qscilexerverilog.cpp @@ -0,0 +1,475 @@ +// This module implements the QsciLexerVerilog class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerverilog.h" + +#include +#include +#include + + +// The ctor. +QsciLexerVerilog::QsciLexerVerilog(QObject *parent, const char *name) + : QsciLexer(parent, name), + fold_atelse(false), fold_comments(false), fold_compact(true), + fold_preproc(false), fold_atmodule(false) +{ +} + + +// The dtor. +QsciLexerVerilog::~QsciLexerVerilog() +{ +} + + +// Returns the language name. +const char *QsciLexerVerilog::language() const +{ + return "Verilog"; +} + + +// Returns the lexer name. +const char *QsciLexerVerilog::lexer() const +{ + return "verilog"; +} + + +// Return the style used for braces. +int QsciLexerVerilog::braceStyle() const +{ + return Operator; +} + + +// Returns the set of keywords. +const char *QsciLexerVerilog::keywords(int set) const +{ + if (set == 1) + return + "always and assign automatic begin buf bufif0 bufif1 case casex " + "casez cell cmos config deassign default defparam design disable " + "edge else end endcase endconfig endfunction endgenerate " + "endmodule endprimitiveendspecify endtable endtask event for " + "force forever fork function generate genvar highz0 highz1 if " + "ifnone incdir include initial inout input instance integer join " + "large liblist library localparam macromodule medium module nand " + "negedge nmos nor noshowcancelled not notif0 notif1 or output " + "parameter pmos posedge primitive pull0 pull1 pulldown pullup " + "pulsestyle_ondetect pulsestyle_onevent rcmos real realtime reg " + "release repeat rnmos rpmos rtran rtranif0 rtranif1 scalared " + "showcancelled signed small specify specparam strong0 strong1 " + "supply0 supply1 table task time tran tranif0 tranif1 tri tri0 " + "tri1 triand trior trireg unsigned use vectored wait wand weak0 " + "weak1 while wire wor xnor xor"; + + if (set == 3) + return + "$async$and$array $async$and$plane $async$nand$array " + "$async$nand$plane $async$nor$array $async$nor$plane " + "$async$or$array $async$or$plane $bitstoreal $countdrivers " + "$display $displayb $displayh $displayo $dist_chi_square " + "$dist_erlang $dist_exponential $dist_normal $dist_poisson " + "$dist_t $dist_uniform $dumpall $dumpfile $dumpflush $dumplimit " + "$dumpoff $dumpon $dumpportsall $dumpportsflush $dumpportslimit " + "$dumpportsoff $dumpportson $dumpvars $fclose $fdisplayh " + "$fdisplay $fdisplayf $fdisplayb $ferror $fflush $fgetc $fgets " + "$finish $fmonitorb $fmonitor $fmonitorf $fmonitorh $fopen " + "$fread $fscanf $fseek $fsscanf $fstrobe $fstrobebb $fstrobef " + "$fstrobeh $ftel $fullskew $fwriteb $fwritef $fwriteh $fwrite " + "$getpattern $history $hold $incsave $input $itor $key $list " + "$log $monitorb $monitorh $monitoroff $monitoron $monitor " + "$monitoro $nochange $nokey $nolog $period $printtimescale " + "$q_add $q_exam $q_full $q_initialize $q_remove $random " + "$readmemb $readmemh $readmemh $realtime $realtobits $recovery " + "$recrem $removal $reset_count $reset $reset_value $restart " + "$rewind $rtoi $save $scale $scope $sdf_annotate $setup " + "$setuphold $sformat $showscopes $showvariables $showvars " + "$signed $skew $sreadmemb $sreadmemh $stime $stop $strobeb " + "$strobe $strobeh $strobeo $swriteb $swriteh $swriteo $swrite " + "$sync$and$array $sync$and$plane $sync$nand$array " + "$sync$nand$plane $sync$nor$array $sync$nor$plane $sync$or$array " + "$sync$or$plane $test$plusargs $time $timeformat $timeskew " + "$ungetc $unsigned $value$plusargs $width $writeb $writeh $write " + "$writeo"; + + return 0; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerVerilog::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerVerilog::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + case CommentLine: + return QColor(0x00,0x7f,0x00); + + case CommentBang: + return QColor(0x3f,0x7f,0x3f); + + case Number: + case KeywordSet2: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case String: + return QColor(0x7f,0x00,0x7f); + + case SystemTask: + case UserKeywordSet: + return QColor(0x80,0x40,0x20); + + case Preprocessor: + return QColor(0x7f,0x7f,0x00); + + case Operator: + return QColor(0x00,0x70,0x70); + + case UnclosedString: + return QColor(0x00,0x00,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerVerilog::defaultEolFill(int style) const +{ + if (style == CommentBang || style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerVerilog::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case CommentBang: + case UserKeywordSet: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the user name of a style. +QString QsciLexerVerilog::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case CommentLine: + return tr("Line comment"); + + case CommentBang: + return tr("Bang comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Primary keywords and identifiers"); + + case String: + return tr("String"); + + case KeywordSet2: + return tr("Secondary keywords and identifiers"); + + case SystemTask: + return tr("System task"); + + case Preprocessor: + return tr("Preprocessor block"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case UnclosedString: + return tr("Unclosed string"); + + case UserKeywordSet: + return tr("User defined tasks and identifiers"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerVerilog::defaultPaper(int style) const +{ + if (style == CommentBang) + return QColor(0xe0,0xf0,0xff); + + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerVerilog::refreshProperties() +{ + setAtElseProp(); + setCommentProp(); + setCompactProp(); + setPreprocProp(); +} + + +// Read properties from the settings. +bool QsciLexerVerilog::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldatelse", false, &ok); + + if (ok) + fold_atelse = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldpreprocessor", false, &ok); + + if (ok) + fold_preproc = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldverilogflags", false, &ok); + + if (ok) + fold_atmodule = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerVerilog::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldatelse", fold_atelse)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "foldpreprocessor", fold_preproc)) + rc = false; + + if (!qs.writeEntry(prefix + "foldverilogflags", fold_atmodule)) + rc = false; + + return rc; +} + + +// Return true if else can be folded. +bool QsciLexerVerilog::foldAtElse() const +{ + return fold_atelse; +} + + +// Set if else can be folded. +void QsciLexerVerilog::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerVerilog::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} + + +// Return true if comments can be folded. +bool QsciLexerVerilog::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerVerilog::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerVerilog::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerVerilog::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerVerilog::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerVerilog::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if preprocessor blocks can be folded. +bool QsciLexerVerilog::foldPreprocessor() const +{ + return fold_preproc; +} + + +// Set if preprocessor blocks can be folded. +void QsciLexerVerilog::setFoldPreprocessor(bool fold) +{ + fold_preproc = fold; + + setPreprocProp(); +} + + +// Set the "fold.preprocessor" property. +void QsciLexerVerilog::setPreprocProp() +{ + emit propertyChanged("fold.preprocessor",(fold_preproc ? "1" : "0")); +} + + +// Return true if modules can be folded. +bool QsciLexerVerilog::foldAtModule() const +{ + return fold_atmodule; +} + + +// Set if modules can be folded. +void QsciLexerVerilog::setFoldAtModule(bool fold) +{ + fold_atmodule = fold; + + setAtModuleProp(); +} + + +// Set the "fold.verilog.flags" property. +void QsciLexerVerilog::setAtModuleProp() +{ + emit propertyChanged("fold.verilog.flags",(fold_atmodule ? "1" : "0")); +} diff --git a/Qt3/qscilexervhdl.cpp b/Qt3/qscilexervhdl.cpp new file mode 100644 index 0000000..5119b1a --- /dev/null +++ b/Qt3/qscilexervhdl.cpp @@ -0,0 +1,464 @@ +// This module implements the QsciLexerVHDL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexervhdl.h" + +#include +#include +#include + + +// The ctor. +QsciLexerVHDL::QsciLexerVHDL(QObject *parent, const char *name) + : QsciLexer(parent,name), + fold_comments(true), fold_compact(true), fold_atelse(true), + fold_atbegin(true), fold_atparenth(true) +{ +} + + +// The dtor. +QsciLexerVHDL::~QsciLexerVHDL() +{ +} + + +// Returns the language name. +const char *QsciLexerVHDL::language() const +{ + return "VHDL"; +} + + +// Returns the lexer name. +const char *QsciLexerVHDL::lexer() const +{ + return "vhdl"; +} + + +// Return the style used for braces. +int QsciLexerVHDL::braceStyle() const +{ + return Attribute; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerVHDL::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x00,0x80); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case CommentLine: + return QColor(0x3f,0x7f,0x3f); + + case Number: + case StandardOperator: + return QColor(0x00,0x7f,0x7f); + + case String: + return QColor(0x7f,0x00,0x7f); + + case UnclosedString: + return QColor(0x00,0x00,0x00); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case Attribute: + return QColor(0x80,0x40,0x20); + + case StandardFunction: + return QColor(0x80,0x80,0x20); + + case StandardPackage: + return QColor(0x20,0x80,0x20); + + case StandardType: + return QColor(0x20,0x80,0x80); + + case KeywordSet7: + return QColor(0x80,0x40,0x20); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerVHDL::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerVHDL::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case KeywordSet7: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerVHDL::keywords(int set) const +{ + if (set == 1) + return + "access after alias all architecture array assert attribute begin " + "block body buffer bus case component configuration constant " + "disconnect downto else elsif end entity exit file for function " + "generate generic group guarded if impure in inertial inout is " + "label library linkage literal loop map new next null of on open " + "others out package port postponed procedure process pure range " + "record register reject report return select severity shared " + "signal subtype then to transport type unaffected units until use " + "variable wait when while with"; + + if (set == 2) + return + "abs and mod nand nor not or rem rol ror sla sll sra srl xnor xor"; + + if (set == 3) + return + "left right low high ascending image value pos val succ pred " + "leftof rightof base range reverse_range length delayed stable " + "quiet transaction event active last_event last_active last_value " + "driving driving_value simple_name path_name instance_name"; + + if (set == 4) + return + "now readline read writeline write endfile resolved to_bit " + "to_bitvector to_stdulogic to_stdlogicvector to_stdulogicvector " + "to_x01 to_x01z to_UX01 rising_edge falling_edge is_x shift_left " + "shift_right rotate_left rotate_right resize to_integer " + "to_unsigned to_signed std_match to_01"; + + if (set == 5) + return + "std ieee work standard textio std_logic_1164 std_logic_arith " + "std_logic_misc std_logic_signed std_logic_textio " + "std_logic_unsigned numeric_bit numeric_std math_complex " + "math_real vital_primitives vital_timing"; + + if (set == 6) + return + "boolean bit character severity_level integer real time " + "delay_length natural positive string bit_vector file_open_kind " + "file_open_status line text side width std_ulogic " + "std_ulogic_vector std_logic std_logic_vector X01 X01Z UX01 UX01Z " + "unsigned signed"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerVHDL::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case CommentLine: + return tr("Comment line"); + + case Number: + return tr("Number"); + + case String: + return tr("String"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case UnclosedString: + return tr("Unclosed string"); + + case Keyword: + return tr("Keyword"); + + case StandardOperator: + return tr("Standard operator"); + + case Attribute: + return tr("Attribute"); + + case StandardFunction: + return tr("Standard function"); + + case StandardPackage: + return tr("Standard package"); + + case StandardType: + return tr("Standard type"); + + case KeywordSet7: + return tr("User defined"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerVHDL::defaultPaper(int style) const +{ + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerVHDL::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setAtElseProp(); + setAtBeginProp(); + setAtParenthProp(); +} + + +// Read properties from the settings. +bool QsciLexerVHDL::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", true, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldcompact", true, &ok); + + if (ok) + fold_compact = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldatelse", true, &ok); + + if (ok) + fold_atelse = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldatbegin", true, &ok); + + if (ok) + fold_atbegin = flag; + else + rc = false; + + flag = qs.readBoolEntry(prefix + "foldatparenthesis", true, &ok); + + if (ok) + fold_atparenth = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerVHDL::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + if (!qs.writeEntry(prefix + "foldcompact", fold_compact)) + rc = false; + + if (!qs.writeEntry(prefix + "foldatelse", fold_atelse)) + rc = false; + + if (!qs.writeEntry(prefix + "foldatbegin", fold_atbegin)) + rc = false; + + if (!qs.writeEntry(prefix + "foldatparenthesis", fold_atparenth)) + rc = false; + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerVHDL::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerVHDL::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerVHDL::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerVHDL::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerVHDL::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerVHDL::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if else blocks can be folded. +bool QsciLexerVHDL::foldAtElse() const +{ + return fold_atelse; +} + + +// Set if else blocks can be folded. +void QsciLexerVHDL::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerVHDL::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} + + +// Return true if begin blocks can be folded. +bool QsciLexerVHDL::foldAtBegin() const +{ + return fold_atbegin; +} + + +// Set if begin blocks can be folded. +void QsciLexerVHDL::setFoldAtBegin(bool fold) +{ + fold_atbegin = fold; + + setAtBeginProp(); +} + + +// Set the "fold.at.Begin" property. +void QsciLexerVHDL::setAtBeginProp() +{ + emit propertyChanged("fold.at.Begin",(fold_atelse ? "1" : "0")); +} + + +// Return true if blocks can be folded at a parenthesis. +bool QsciLexerVHDL::foldAtParenthesis() const +{ + return fold_atparenth; +} + + +// Set if blocks can be folded at a parenthesis. +void QsciLexerVHDL::setFoldAtParenthesis(bool fold) +{ + fold_atparenth = fold; + + setAtParenthProp(); +} + + +// Set the "fold.at.Parenthese" property. +void QsciLexerVHDL::setAtParenthProp() +{ + emit propertyChanged("fold.at.Parenthese",(fold_atparenth ? "1" : "0")); +} diff --git a/Qt3/qscilexerxml.cpp b/Qt3/qscilexerxml.cpp new file mode 100644 index 0000000..a968f6f --- /dev/null +++ b/Qt3/qscilexerxml.cpp @@ -0,0 +1,266 @@ +// This module implements the QsciLexerXML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerxml.h" + +#include +#include +#include + + +// The ctor. +QsciLexerXML::QsciLexerXML(QObject *parent, const char *name) + : QsciLexerHTML(parent, name), + scripts(true) +{ +} + + +// The dtor. +QsciLexerXML::~QsciLexerXML() +{ +} + + +// Returns the language name. +const char *QsciLexerXML::language() const +{ + return "XML"; +} + + +// Returns the lexer name. +const char *QsciLexerXML::lexer() const +{ + return "xml"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerXML::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x00,0x00,0x00); + + case Tag: + case UnknownTag: + case XMLTagEnd: + case SGMLDefault: + case SGMLCommand: + return QColor(0x00,0x00,0x80); + + case Attribute: + case UnknownAttribute: + return QColor(0x00,0x80,0x80); + + case HTMLNumber: + return QColor(0x00,0x7f,0x7f); + + case HTMLDoubleQuotedString: + case HTMLSingleQuotedString: + return QColor(0x7f,0x00,0x7f); + + case OtherInTag: + case Entity: + case XMLStart: + case XMLEnd: + return QColor(0x80,0x00,0x80); + + case HTMLComment: + case SGMLComment: + return QColor(0x80,0x80,0x00); + + case CDATA: + case PHPStart: + case SGMLDoubleQuotedString: + case SGMLError: + return QColor(0x80,0x00,0x00); + + case HTMLValue: + return QColor(0x60,0x80,0x60); + + case SGMLParameter: + return QColor(0x00,0x66,0x00); + + case SGMLSingleQuotedString: + return QColor(0x99,0x33,0x00); + + case SGMLSpecial: + return QColor(0x33,0x66,0xff); + + case SGMLEntity: + return QColor(0x33,0x33,0x33); + + case SGMLBlockDefault: + return QColor(0x00,0x00,0x66); + } + + return QsciLexerHTML::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerXML::defaultEolFill(int style) const +{ + if (style == CDATA) + return true; + + return QsciLexerHTML::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerXML::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Default: + case Entity: + case CDATA: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman",11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter",10); +#endif + break; + + case XMLStart: + case XMLEnd: + case SGMLCommand: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexerHTML::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerXML::keywords(int set) const +{ + if (set == 6) + return QsciLexerHTML::keywords(set); + + return 0; +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerXML::defaultPaper(int style) const +{ + switch (style) + { + case CDATA: + return QColor(0xff,0xf0,0xf0); + + case SGMLDefault: + case SGMLCommand: + case SGMLParameter: + case SGMLDoubleQuotedString: + case SGMLSingleQuotedString: + case SGMLSpecial: + case SGMLEntity: + case SGMLComment: + return QColor(0xef,0xef,0xff); + + case SGMLError: + return QColor(0xff,0x66,0x66); + + case SGMLBlockDefault: + return QColor(0xcc,0xcc,0xe0); + } + + return QsciLexerHTML::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerXML::refreshProperties() +{ + setScriptsProp(); +} + + +// Read properties from the settings. +bool QsciLexerXML::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = QsciLexerHTML::readProperties(qs, prefix), num; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "scriptsstyled", true, &ok); + + if (ok) + scripts = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerXML::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = QsciLexerHTML::writeProperties(qs, prefix); + + if (!qs.writeEntry(prefix + "scriptsstyled", scripts)) + rc = false; + + return rc; +} + + +// Return true if scripts are styled. +bool QsciLexerXML::scriptsStyled() const +{ + return scripts; +} + + +// Set if scripts are styled. +void QsciLexerXML::setScriptsStyled(bool styled) +{ + scripts = styled; + + setScriptsProp(); +} + + +// Set the "lexer.xml.allow.scripts" property. +void QsciLexerXML::setScriptsProp() +{ + emit propertyChanged("lexer.xml.allow.scripts",(scripts ? "1" : "0")); +} diff --git a/Qt3/qscilexeryaml.cpp b/Qt3/qscilexeryaml.cpp new file mode 100644 index 0000000..c39c41f --- /dev/null +++ b/Qt3/qscilexeryaml.cpp @@ -0,0 +1,283 @@ +// This module implements the QsciLexerYAML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexeryaml.h" + +#include +#include +#include + + +// The ctor. +QsciLexerYAML::QsciLexerYAML(QObject *parent, const char *name) + : QsciLexer(parent,name), + fold_comments(false) +{ +} + + +// The dtor. +QsciLexerYAML::~QsciLexerYAML() +{ +} + + +// Returns the language name. +const char *QsciLexerYAML::language() const +{ + return "YAML"; +} + + +// Returns the lexer name. +const char *QsciLexerYAML::lexer() const +{ + return "yaml"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerYAML::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x88,0x00); + + case Identifier: + return QColor(0x00,0x00,0x88); + + case Keyword: + return QColor(0x88,0x00,0x88); + + case Number: + return QColor(0x88,0x00,0x00); + + case Reference: + return QColor(0x00,0x88,0x88); + + case DocumentDelimiter: + case SyntaxErrorMarker: + return QColor(0xff,0xff,0xff); + + case TextBlockMarker: + return QColor(0x33,0x33,0x66); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerYAML::defaultEolFill(int style) const +{ + if (style == DocumentDelimiter || style == SyntaxErrorMarker) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerYAML::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Default: + case TextBlockMarker: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman", 11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter", 10); +#endif + break; + + case Identifier: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DocumentDelimiter: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + f.setBold(true); + break; + + case SyntaxErrorMarker: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman", 11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter", 10); +#endif + f.setBold(true); + f.setItalic(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerYAML::keywords(int set) const +{ + if (set == 1) + return "true false yes no"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerYAML::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Identifier: + return tr("Identifier"); + + case Keyword: + return tr("Keyword"); + + case Number: + return tr("Number"); + + case Reference: + return tr("Reference"); + + case DocumentDelimiter: + return tr("Document delimiter"); + + case TextBlockMarker: + return tr("Text block marker"); + + case SyntaxErrorMarker: + return tr("Syntax error marker"); + + case Operator: + return tr("Operator"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerYAML::defaultPaper(int style) const +{ + switch (style) + { + case DocumentDelimiter: + return QColor(0x00,0x00,0x88); + + case SyntaxErrorMarker: + return QColor(0xff,0x00,0x00); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerYAML::refreshProperties() +{ + setCommentProp(); +} + + +// Read properties from the settings. +bool QsciLexerYAML::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + bool ok, flag; + + flag = qs.readBoolEntry(prefix + "foldcomments", false, &ok); + + if (ok) + fold_comments = flag; + else + rc = false; + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerYAML::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + if (!qs.writeEntry(prefix + "foldcomments", fold_comments)) + rc = false; + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerYAML::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerYAML::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment.yaml" property. +void QsciLexerYAML::setCommentProp() +{ + emit propertyChanged("fold.comment.yaml",(fold_comments ? "1" : "0")); +} diff --git a/Qt3/qscimacro.cpp b/Qt3/qscimacro.cpp new file mode 100644 index 0000000..f4e4014 --- /dev/null +++ b/Qt3/qscimacro.cpp @@ -0,0 +1,314 @@ +// This module implements the QsciMacro class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscimacro.h" + +#include + +#include "Qsci/qsciscintilla.h" + + +static int fromHex(unsigned char ch); + + + +// The ctor. +QsciMacro::QsciMacro(QsciScintilla *parent, const char *name) + : QObject(parent, name), qsci(parent) +{ +} + + +// The ctor that initialises the macro. +QsciMacro::QsciMacro(const QString &asc, QsciScintilla *parent, + const char *name) + : QObject(parent, name), qsci(parent) +{ + load(asc); +} + + +// The dtor. +QsciMacro::~QsciMacro() +{ +} + + +// Clear the contents of the macro. +void QsciMacro::clear() +{ + macro.clear(); +} + + +// Read a macro from a string. +bool QsciMacro::load(const QString &asc) +{ + bool ok = true; + + macro.clear(); + + QStringList fields = QStringList::split(' ', asc); + + int f = 0; + + while (f < fields.size()) + { + Macro cmd; + unsigned len; + + // Extract the 3 fixed fields. + if (f + 3 > fields.size()) + { + ok = false; + break; + } + + cmd.msg = fields[f++].toUInt(&ok); + + if (!ok) + break; + + cmd.wParam = fields[f++].toULong(&ok); + + if (!ok) + break; + + len = fields[f++].toUInt(&ok); + + if (!ok) + break; + + // Extract any text. + if (len) + { + if (f + 1 > fields.size()) + { + ok = false; + break; + } + + const char *sp = fields[f++].ascii(); + + if (!sp) + { + ok = false; + break; + } + + // Because of historical bugs the length field is unreliable. + bool embedded_null = false; + unsigned char ch; + + while ((ch = *sp++) != '\0') + { + if (ch == '"' || ch <= ' ' || ch >= 0x7f) + { + ok = false; + break; + } + + if (ch == '\\') + { + int b1, b2; + + if ((b1 = fromHex(*sp++)) < 0 || + (b2 = fromHex(*sp++)) < 0) + { + ok = false; + break; + } + + ch = (b1 << 4) + b2; + } + + if (ch == '\0') + { + // Don't add it now as it may be the terminating '\0'. + embedded_null = true; + } + else + { + if (embedded_null) + { + // Add the pending embedded '\0'. + cmd.text += '\0'; + embedded_null = false; + } + + cmd.text += ch; + } + } + + if (!ok) + break; + + cmd.text += '\0'; + } + + macro.append(cmd); + } + + if (!ok) + macro.clear(); + + return ok; +} + + +// Write a macro to a string. +QString QsciMacro::save() const +{ + QString ms; + + QValueList::const_iterator it; + + for (it = macro.begin(); it != macro.end(); ++it) + { + if (!ms.isEmpty()) + ms += ' '; + + unsigned len = (*it).text.size(); + QString m; + + ms += m.sprintf("%u %lu %u", (*it).msg, (*it).wParam, len); + + if (len) + { + + ms += ' '; + + const char *cp = (*it).text.data(); + + while (len--) + { + unsigned char ch = *cp++; + + if (ch == '\\' || ch == '"' || ch <= ' ' || ch >= 0x7f) + { + QString buf; + + ms += buf.sprintf("\\%02x", ch); + } + else + ms += ch; + } + } + } + + return ms; +} + + +// Play the macro. +void QsciMacro::play() +{ + if (!qsci) + return; + + QValueList::const_iterator it; + + for (it = macro.begin(); it != macro.end(); ++it) + qsci->SendScintilla((*it).msg, (*it).wParam, (*it).text.data()); +} + + +// Start recording. +void QsciMacro::startRecording() +{ + if (!qsci) + return; + + macro.clear(); + + connect(qsci, SIGNAL(SCN_MACRORECORD(unsigned int, unsigned long, void *)), + SLOT(record(unsigned int, unsigned long, void *))); + + qsci->SendScintilla(QsciScintillaBase::SCI_STARTRECORD); +} + + +// End recording. +void QsciMacro::endRecording() +{ + if (!qsci) + return; + + qsci->SendScintilla(QsciScintillaBase::SCI_STOPRECORD); + qsci->disconnect(this); +} + + +// Record a command. +void QsciMacro::record(unsigned int msg, unsigned long wParam, void *lParam) +{ + Macro m; + + m.msg = msg; + m.wParam = wParam; + + // Determine commands which need special handling of the parameters. + switch (msg) + { + case QsciScintillaBase::SCI_ADDTEXT: + m.text.duplicate(reinterpret_cast(lParam), wParam); + break; + + case QsciScintillaBase::SCI_REPLACESEL: + if (!macro.isEmpty() && macro.last().msg == QsciScintillaBase::SCI_REPLACESEL) + { + // This is the command used for ordinary user input so it's a + // significant space reduction to append it to the previous + // command. + + macro.last().text.append(reinterpret_cast(lParam)); + return; + } + + /* Drop through. */ + + case QsciScintillaBase::SCI_INSERTTEXT: + case QsciScintillaBase::SCI_APPENDTEXT: + case QsciScintillaBase::SCI_SEARCHNEXT: + case QsciScintillaBase::SCI_SEARCHPREV: + m.text.append(reinterpret_cast(lParam)); + break; + } + + macro.append(m); +} + + +// Return the given hex character as a binary. +static int fromHex(unsigned char ch) +{ + if (ch >= '0' && ch <= '9') + return ch - '0'; + + if (ch >= 'a' && ch <= 'f') + return ch - 'a' + 10; + + return -1; +} diff --git a/Qt3/qscintilla.pro b/Qt3/qscintilla.pro new file mode 100644 index 0000000..0ec6126 --- /dev/null +++ b/Qt3/qscintilla.pro @@ -0,0 +1,382 @@ +# The project file for the QScintilla library. +# +# Copyright (c) 2014 Riverbank Computing Limited +# +# This file is part of QScintilla. +# +# This file may be used under the terms of the GNU General Public +# License versions 2.0 or 3.0 as published by the Free Software +# Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +# included in the packaging of this file. Alternatively you may (at +# your option) use any later version of the GNU General Public +# License if such license has been publicly approved by Riverbank +# Computing Limited (or its successors, if any) and the KDE Free Qt +# Foundation. In addition, as a special exception, Riverbank gives you +# certain additional rights. These rights are described in the Riverbank +# GPL Exception version 1.1, which can be found in the file +# GPL_EXCEPTION.txt in this package. +# +# If you are unsure which license is appropriate for your use, please +# contact the sales department at sales@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +# This must be kept in sync with Python/configure.py, Python/configure-old.py, +# example-Qt4Qt5/application.pro and designer-Qt4Qt5/designer.pro. +!win32:VERSION = 11.3.0 + +TEMPLATE = lib +TARGET = qscintilla2 +CONFIG += qt warn_off release thread exceptions +INCLUDEPATH += . ../include ../lexlib ../src + +DEFINES += QSCINTILLA_MAKE_DLL SCINTILLA_QT SCI_LEXER +greaterThan(QT_MAJOR_VERSION, 3) { + CONFIG(staticlib) { + DEFINES -= QSCINTILLA_MAKE_DLL + } +} + +greaterThan(QT_MAJOR_VERSION, 4) { + QT += widgets printsupport + + greaterThan(QT_MINOR_VERSION, 1) { + macx:QT += macextras + } + + # Work around QTBUG-39300. + CONFIG -= android_install +} + +# Comment this in if you want the internal Scintilla classes to be placed in a +# Scintilla namespace rather than pollute the global namespace. +#DEFINES += SCI_NAMESPACE + +# Handle both Qt v4 and v3. +target.path = $$[QT_INSTALL_LIBS] +isEmpty(target.path) { + target.path = $(QTDIR)/lib +} + +header.path = $$[QT_INSTALL_HEADERS] +header.files = Qsci +isEmpty(header.path) { + header.path = $(QTDIR)/include/Qsci + header.files = Qsci/qsci*.h +} + +trans.path = $$[QT_INSTALL_TRANSLATIONS] +trans.files = qscintilla_*.qm +isEmpty(trans.path) { + trans.path = $(QTDIR)/translations +} + +qsci.path = $$[QT_INSTALL_DATA] +qsci.files = ../qsci +isEmpty(qsci.path) { + qsci.path = $(QTDIR) +} + +INSTALLS += header trans qsci target + +greaterThan(QT_MAJOR_VERSION, 3) { + features.path = $$[QT_INSTALL_DATA]/mkspecs/features + features.files = $$PWD/features/qscintilla2.prf + INSTALLS += features +} + +HEADERS = \ + ./Qsci/qsciglobal.h \ + ./Qsci/qsciscintilla.h \ + ./Qsci/qsciscintillabase.h \ + ./Qsci/qsciabstractapis.h \ + ./Qsci/qsciapis.h \ + ./Qsci/qscicommand.h \ + ./Qsci/qscicommandset.h \ + ./Qsci/qscidocument.h \ + ./Qsci/qscilexer.h \ + ./Qsci/qscilexeravs.h \ + ./Qsci/qscilexerbash.h \ + ./Qsci/qscilexerbatch.h \ + ./Qsci/qscilexercmake.h \ + ./Qsci/qscilexercoffeescript.h \ + ./Qsci/qscilexercpp.h \ + ./Qsci/qscilexercsharp.h \ + ./Qsci/qscilexercss.h \ + ./Qsci/qscilexercustom.h \ + ./Qsci/qscilexerd.h \ + ./Qsci/qscilexerdiff.h \ + ./Qsci/qscilexerfortran.h \ + ./Qsci/qscilexerfortran77.h \ + ./Qsci/qscilexerhtml.h \ + ./Qsci/qscilexeridl.h \ + ./Qsci/qscilexerjava.h \ + ./Qsci/qscilexerjavascript.h \ + ./Qsci/qscilexerlua.h \ + ./Qsci/qscilexermakefile.h \ + ./Qsci/qscilexermatlab.h \ + ./Qsci/qscilexeroctave.h \ + ./Qsci/qscilexerpascal.h \ + ./Qsci/qscilexerperl.h \ + ./Qsci/qscilexerpostscript.h \ + ./Qsci/qscilexerpo.h \ + ./Qsci/qscilexerpov.h \ + ./Qsci/qscilexerproperties.h \ + ./Qsci/qscilexerpython.h \ + ./Qsci/qscilexerruby.h \ + ./Qsci/qscilexerspice.h \ + ./Qsci/qscilexersql.h \ + ./Qsci/qscilexertcl.h \ + ./Qsci/qscilexertex.h \ + ./Qsci/qscilexerverilog.h \ + ./Qsci/qscilexervhdl.h \ + ./Qsci/qscilexerxml.h \ + ./Qsci/qscilexeryaml.h \ + ./Qsci/qscimacro.h \ + ./Qsci/qsciprinter.h \ + ./Qsci/qscistyle.h \ + ./Qsci/qscistyledtext.h \ + ListBoxQt.h \ + SciClasses.h \ + SciNamespace.h \ + ScintillaQt.h \ + ../include/ILexer.h \ + ../include/Platform.h \ + ../include/SciLexer.h \ + ../include/Scintilla.h \ + ../include/ScintillaWidget.h \ + ../lexlib/Accessor.h \ + ../lexlib/CharacterCategory.h \ + ../lexlib/CharacterSet.h \ + ../lexlib/LexAccessor.h \ + ../lexlib/LexerBase.h \ + ../lexlib/LexerModule.h \ + ../lexlib/LexerNoExceptions.h \ + ../lexlib/LexerSimple.h \ + ../lexlib/OptionSet.h \ + ../lexlib/PropSetSimple.h \ + ../lexlib/StyleContext.h \ + ../lexlib/SubStyles.h \ + ../lexlib/WordList.h \ + ../src/AutoComplete.h \ + ../src/CallTip.h \ + ../src/CaseConvert.h \ + ../src/CaseFolder.h \ + ../src/Catalogue.h \ + ../src/CellBuffer.h \ + ../src/CharClassify.h \ + ../src/ContractionState.h \ + ../src/Decoration.h \ + ../src/Document.h \ + ../src/Editor.h \ + ../src/ExternalLexer.h \ + ../src/FontQuality.h \ + ../src/Indicator.h \ + ../src/KeyMap.h \ + ../src/LineMarker.h \ + ../src/Partitioning.h \ + ../src/PerLine.h \ + ../src/PositionCache.h \ + ../src/RESearch.h \ + ../src/RunStyles.h \ + ../src/ScintillaBase.h \ + ../src/Selection.h \ + ../src/SplitVector.h \ + ../src/Style.h \ + ../src/UnicodeFromUTF8.h \ + ../src/UniConversion.h \ + ../src/ViewStyle.h \ + ../src/XPM.h + +SOURCES = \ + qsciscintilla.cpp \ + qsciscintillabase.cpp \ + qsciabstractapis.cpp \ + qsciapis.cpp \ + qscicommand.cpp \ + qscicommandset.cpp \ + qscidocument.cpp \ + qscilexer.cpp \ + qscilexeravs.cpp \ + qscilexerbash.cpp \ + qscilexerbatch.cpp \ + qscilexercmake.cpp \ + qscilexercoffeescript.cpp \ + qscilexercpp.cpp \ + qscilexercsharp.cpp \ + qscilexercss.cpp \ + qscilexercustom.cpp \ + qscilexerd.cpp \ + qscilexerdiff.cpp \ + qscilexerfortran.cpp \ + qscilexerfortran77.cpp \ + qscilexerhtml.cpp \ + qscilexeridl.cpp \ + qscilexerjava.cpp \ + qscilexerjavascript.cpp \ + qscilexerlua.cpp \ + qscilexermakefile.cpp \ + qscilexermatlab.cpp \ + qscilexeroctave.cpp \ + qscilexerpascal.cpp \ + qscilexerperl.cpp \ + qscilexerpostscript.cpp \ + qscilexerpo.cpp \ + qscilexerpov.cpp \ + qscilexerproperties.cpp \ + qscilexerpython.cpp \ + qscilexerruby.cpp \ + qscilexerspice.cpp \ + qscilexersql.cpp \ + qscilexertcl.cpp \ + qscilexertex.cpp \ + qscilexerverilog.cpp \ + qscilexervhdl.cpp \ + qscilexerxml.cpp \ + qscilexeryaml.cpp \ + qscimacro.cpp \ + qsciprinter.cpp \ + qscistyle.cpp \ + qscistyledtext.cpp \ + MacPasteboardMime.cpp \ + InputMethod.cpp \ + SciClasses.cpp \ + ListBoxQt.cpp \ + PlatQt.cpp \ + ScintillaQt.cpp \ + ../lexers/LexA68k.cpp \ + ../lexers/LexAbaqus.cpp \ + ../lexers/LexAda.cpp \ + ../lexers/LexAPDL.cpp \ + ../lexers/LexAsm.cpp \ + ../lexers/LexAsn1.cpp \ + ../lexers/LexASY.cpp \ + ../lexers/LexAU3.cpp \ + ../lexers/LexAVE.cpp \ + ../lexers/LexAVS.cpp \ + ../lexers/LexBaan.cpp \ + ../lexers/LexBash.cpp \ + ../lexers/LexBasic.cpp \ + ../lexers/LexBullant.cpp \ + ../lexers/LexCaml.cpp \ + ../lexers/LexCLW.cpp \ + ../lexers/LexCmake.cpp \ + ../lexers/LexCOBOL.cpp \ + ../lexers/LexCoffeeScript.cpp \ + ../lexers/LexConf.cpp \ + ../lexers/LexCPP.cpp \ + ../lexers/LexCrontab.cpp \ + ../lexers/LexCsound.cpp \ + ../lexers/LexCSS.cpp \ + ../lexers/LexD.cpp \ + ../lexers/LexECL.cpp \ + ../lexers/LexEiffel.cpp \ + ../lexers/LexErlang.cpp \ + ../lexers/LexEScript.cpp \ + ../lexers/LexFlagship.cpp \ + ../lexers/LexForth.cpp \ + ../lexers/LexFortran.cpp \ + ../lexers/LexGAP.cpp \ + ../lexers/LexGui4Cli.cpp \ + ../lexers/LexHaskell.cpp \ + ../lexers/LexHTML.cpp \ + ../lexers/LexInno.cpp \ + ../lexers/LexKix.cpp \ + ../lexers/LexKVIrc.cpp \ + ../lexers/LexLaTex.cpp \ + ../lexers/LexLisp.cpp \ + ../lexers/LexLout.cpp \ + ../lexers/LexLua.cpp \ + ../lexers/LexMagik.cpp \ + ../lexers/LexMarkdown.cpp \ + ../lexers/LexMatlab.cpp \ + ../lexers/LexMetapost.cpp \ + ../lexers/LexMMIXAL.cpp \ + ../lexers/LexModula.cpp \ + ../lexers/LexMPT.cpp \ + ../lexers/LexMSSQL.cpp \ + ../lexers/LexMySQL.cpp \ + ../lexers/LexNimrod.cpp \ + ../lexers/LexNsis.cpp \ + ../lexers/LexOpal.cpp \ + ../lexers/LexOScript.cpp \ + ../lexers/LexOthers.cpp \ + ../lexers/LexPascal.cpp \ + ../lexers/LexPB.cpp \ + ../lexers/LexPerl.cpp \ + ../lexers/LexPLM.cpp \ + ../lexers/LexPO.cpp \ + ../lexers/LexPOV.cpp \ + ../lexers/LexPowerPro.cpp \ + ../lexers/LexPowerShell.cpp \ + ../lexers/LexProgress.cpp \ + ../lexers/LexPS.cpp \ + ../lexers/LexPython.cpp \ + ../lexers/LexR.cpp \ + ../lexers/LexRebol.cpp \ + ../lexers/LexRuby.cpp \ + ../lexers/LexRust.cpp \ + ../lexers/LexScriptol.cpp \ + ../lexers/LexSmalltalk.cpp \ + ../lexers/LexSML.cpp \ + ../lexers/LexSorcus.cpp \ + ../lexers/LexSpecman.cpp \ + ../lexers/LexSpice.cpp \ + ../lexers/LexSQL.cpp \ + ../lexers/LexSTTXT.cpp \ + ../lexers/LexTACL.cpp \ + ../lexers/LexTADS3.cpp \ + ../lexers/LexTAL.cpp \ + ../lexers/LexTCL.cpp \ + ../lexers/LexTCMD.cpp \ + ../lexers/LexTeX.cpp \ + ../lexers/LexTxt2tags.cpp \ + ../lexers/LexVB.cpp \ + ../lexers/LexVerilog.cpp \ + ../lexers/LexVHDL.cpp \ + ../lexers/LexVisualProlog.cpp \ + ../lexers/LexYAML.cpp \ + ../lexlib/Accessor.cpp \ + ../lexlib/CharacterCategory.cpp \ + ../lexlib/CharacterSet.cpp \ + ../lexlib/LexerBase.cpp \ + ../lexlib/LexerModule.cpp \ + ../lexlib/LexerNoExceptions.cpp \ + ../lexlib/LexerSimple.cpp \ + ../lexlib/PropSetSimple.cpp \ + ../lexlib/StyleContext.cpp \ + ../lexlib/WordList.cpp \ + ../src/AutoComplete.cpp \ + ../src/CallTip.cpp \ + ../src/CaseConvert.cpp \ + ../src/CaseFolder.cpp \ + ../src/Catalogue.cpp \ + ../src/CellBuffer.cpp \ + ../src/CharClassify.cpp \ + ../src/ContractionState.cpp \ + ../src/Decoration.cpp \ + ../src/Document.cpp \ + ../src/Editor.cpp \ + ../src/ExternalLexer.cpp \ + ../src/Indicator.cpp \ + ../src/KeyMap.cpp \ + ../src/LineMarker.cpp \ + ../src/PerLine.cpp \ + ../src/PositionCache.cpp \ + ../src/RESearch.cpp \ + ../src/RunStyles.cpp \ + ../src/ScintillaBase.cpp \ + ../src/Selection.cpp \ + ../src/Style.cpp \ + ../src/UniConversion.cpp \ + ../src/ViewStyle.cpp \ + ../src/XPM.cpp + +TRANSLATIONS = \ + qscintilla_cs.ts \ + qscintilla_de.ts \ + qscintilla_es.ts \ + qscintilla_fr.ts \ + qscintilla_pt_br.ts diff --git a/Qt3/qscintilla_cs.qm b/Qt3/qscintilla_cs.qm new file mode 100644 index 0000000000000000000000000000000000000000..78d1ea154409d42fd32c93331377caaab750d7a4 GIT binary patch literal 43834 zcmd5_34D~*wZ9>m?3n}-StATPL_iFSV5vY7AYgz`{h-~WDRzWsj749oB74-PZ) z-E+=8_iXpv<(u<^;NV|;aL>MfA6fmAtG@B%>vfEkcQLkdI%6C55WFduvDF(GJ10SK z%>kD8?taF4i<#$vql^U@^L+QOjO`1siI+Xgn13{z?JZ!eX(3y5!?lbpe3Lcq-^p0= z2y42#ov~r#35Hh_?D-wR?Vqq^cRt0~-eYXV#vd^@;t)aKGX&57oM5PiwcUI_V`q(F zmtX%FW0S5VczZRwvN*-qcGq!Uf+q@fmUC_twY+JzC z4M*60kN%dirH`=tfBSdFzWf+_{57<@XgYg-DEhN&Ec?~(cQDo+V}Fc&$XG`c!SKJc zk3w%U)?Sq}Xk0(W`t8XHef)LC293+veBI07>&H2pKg9O~zMXT;Pr=X1Kjj=4dz7)t z>vIlP0q@1X$a%V(<9(Un%{2sXKT2@lr#ZiV8_y5kO0c?w;D~mDW7`N$d7WVGW`gHG zPB8c`!F8_?T>oDLd*33s`67bX+(_`oa)P^d5WMq6f(QELy!Po73~qJKv0E{I6V~S( z`#OhDhV&8v*H?(X-}Y_uyJ*zct{o-h1St~b92&$Z-M zEC-&-4|3#y^Jk-IrrM%;Q5@o+#Qu;7;AVvcgMd%-YcHS-L?HNWBq@h z`*iFvjQ76W7pw2bb06gXW$qq~!|l1BJcn`2%gZZx=Pt$;2lA%hGnTROhx0DGA9O12 z%e(B)pj$CNujA&Ipzr_4i;RO_wB+RNUkrUj%cozu8u;$Zd+wnhf{$~7FqYuPcM0A!#Z&en z=q$g`_6^L{s< zv1vae*tvyZ`~bmQZyePjB52_`l+D?NX?^(bRY4&~Q8`%}hZ59QCj5_;Ac z%U=`6_k%9W-}>4x$fX~_a}N@n_1*kCUJN2Wd@ui=3FD#f!}9Na5dLAtr}>ZX`xayM zbMl|u{XAorgz{h54fzaNM6h}r!4a}~X8 zbw@#g7xoo;w4nT3`xq;_s-XPO9>8M-gB}sMsU?&R-zVlu9rJchIzVkTrYG-%B zg9i&3yDka10k9G9Rlu(Uz61F4f(H-r@6Rsy!>)sfQ$Hwp{iz4Q@B0PE{s{hO|Gtpj z{YS>GIJ>ZD4SsL9pm5xA@OSaT!kTj6UDjJTt#dEDSZCqdC$EE_IbOKsl`9dyE-Kvi z(jdkb+*^3#Tj<|;M+pXgNpSsy!kZ(ljFo&`c-z(RlfJVEj+{tv(jJ0q&nw*b$YI95 zbW`D>S|kOr&4mx$13&LyS$O21&oLHlEqwPQ@OR~w!awZPr!=iCh$3uU%5!`mTXznz$TQj$4-j-MGs$z&uy<29nQh;gPtci^f7{?stHcqLvZq!3C{d0 z!F59k_H+{5`Z2-nHxRt}fubW1!LM(*z3Atw#vs3WujuzDz6`(d{bCjdzhz~`o=FQB zyWU@1`N2`dxvPo?|Ic*Bn%j!UzXLe(o5eMcv@kX_k6>yf!R!87ymJX-65KtN;O%L8`<|xHcm0OoSAp*u-v3~6 z*VDgcZ0oM#b^kI6`D0b_`p_PXqT+W~w?bbI6n|8CKV#nE#UHJn0eEjo*_y-9rvWA2xzLB@50#9%Z3klmA1|43 z?{?V#{*o`%zJNUDi;^#0`F+OfhLz0!G2%e^@sb6vK8yVLv640S9z}jSwqYTssbMW<0adsk3s(OX~}Iz&qAK`0l|e25ZrfD$xr(FA>WFW zJilcCW1|leoYF<`mLHblYZ=DT4vZ$!^>GJ1bN0*oW`fbQ#$;i^byUn~9R zc=(6r7fL_hcq{zU+Oh#GkZ(J| z^ZE!*>m@k*dV-xb1mlYdCPM_TeSzRzR};MZ8`HVhK{U^cMg#;tF5KN?> z>q|ekZ4P~Z(>8*)_V?cRH~5P=CEojgau{;{oA-MYH!ybXm%KkaRE4;)-TQnr4}N;D z_t#C}wZCb-N~K6u_9_@D0b(OZFM(l5)Wp9B8S zT3Np0Kk$89L;22H;9W7KeD}l@;@P*$AB!%4UCu6lip%BF4du@s#qX6v%inn9S;jX1 z3dzBNhjTHpC}pczg7xJ1S(v2?`BWpH|Ec#!1EEL({#kNyG7zqhb$9!t!5rSAk+rct z){a(w7G<9?A4{SPzIr(AN{p2g$s_g7~&a>39G7SiH{{=t(3((UdO|j*5FaTu7i7qHoU` z#u5rTuY^vKp-^g*B&n^%5X8WoTShDDds5DP4mII6^H|0)*|Ru-wMZJX$x4!J6W1QL zPU-mI2Ix&Hq;MGM@+bU(R45@7L5&lB!AMmaC|HiwI6ZO|6;vV!nMWk^P*q<>%n?dT zAL>X6xi(0}gg7qQBeYMEN>!R?8FeDu*(Jtpln7aI5aqQlu)K+DuSw=Z(%9pPP;WTa zll0jO-5?h@frw-*F$cM9h$VuV$i;-%S}rnbYq|JX1B@gNR>QDc)wa!QUD?nRkAwq$ zD51S_uVyQ_Na1czUz3*p*umSevj6f$nwjHDFa`# zU}Gv24f+!BrT%DVPsE>4x$*^L8=}4#w9Qh7TeIYmoP7|c8R7i{XFLc{m{6UbOYY+S zPO&#^&yqW?X|e?QzqO&rN(;}mm1G3ADoN5_^@FF8VY7BmwPjh-br(Eec?x(oswr0w z?oW_yD5^TamfN1Vy`o;8C6}bAA}=RWSXVq+s%xEq$7~IIcv@PDi*aGha~$ZqGg=$U zmOXEDpsX4s&jz_03`!2e562fm>`4bqjbj^a-TycuerLiT?-B;jC9YYCf(>`R!OVJ3bGg+apKYB%!Z@SHoL$v zCN**E_S~y1>4_{DIewUV8DYbV<>MC2*|x+)V58^>gv`x-i9?};w3?TjdyH~YcC(qOp_23D%!*7a8!s9DNzy0L3E zGIZ{gy%{pmR4(}3|3Yva=~Y5`(kgmrEt3_SL9r+tC4z| z{mGPgjyelPRjwwze6Eg}CVVv-pO9wz{1dl5n#=Q9GM|W?K!L%}HYvWh|B6r$B~VcC z1*rBa%;RWwL8TO`J96}0Y4n-7;~_19L@W~V^@c+mTzF+l4YDIG8jnF*@=huS1%S{( z5N$dTLX5o-A+ItA@rPGj&rMgO;~2H1G#JwNiiiic#yUGAAzwI}MD6)p#G*v1FD@QX zF9x(1#nzOePF}D&7V8EE;o$H_QmNa}s8DJY>k;R~UKE`|tOMH6gYKvizMvu0;qQq^ zjY@eEgvae+YMk zsS+zfauND?0{)KM%6s5giAoAj1s8?-WY=lNP{Wp_Eh(nt8XOm|pYci>Ej6Ur8#$LM z7)zUYv6Y(@xD)rTIHwdEBr&5j%U{;h-EP&B3S?MuaFQ?yp>R1?5B#Z^RE#!vpiww* zDM`C|{WbGJ9M+l$$D!9j*JC*liW=wIjnU+Sqq=WU>3LC|Kd>$p4y;RZX_YC;SLaW5 zN!nK-tx$+$UBFk4(qa}gbffHoW~W)(1r&=}JqCj>d#MF>&w@mPhE>pDI%LZ2gVJHD zZUiCYw8MnT(_9+sL5h;9b+JK>p#&enKo1w5FBpo1yTj=P4FRz%j8TXsGiwx}aIhOe z3zvo?XgP|C2a?z46B{0A{V+hkBv0-PRe4r6qdwG)HKK$sv@!0FCb7n7q06N(NFIxM zC{bNmeoMfQI=V%hg{l_5CuT6_(l4?XdTw3vkyDuZMy$y6WGPY11@ zZc9g~?;2V|478l|zgD5v0wWH?k8*dPfckVIGD@L79ZmSuf#(qFRQzmC3zO4uJcT87 zT24n2kq9N_EW#|sOntr?gM)`MH*o3h%?(FMjxEF{Ln_?Caiik%L#}dBwNG!09M*=g}6$q>$SO70o^BK7ut+h76cZA6kK5p9lPgpW=!K_lF z&!bvGfmk%?PxQ%lLq?9UoStr4*!dYqlFX7Ah1eZ}9Qb~w-W*=Fpjj5JHA@qA#fHjP zMgx&p(qir{`-3VrFFjh^-*AaxloTBK^Cl;HC_rnNX`woSm(7Rja}#I>OKNqYXnqQl z{q`OzXqnqp!}we9|9Kc9UM==x;P`Zr*RoVBW%VsB=lP%?nDVCj42qHFK*m(-h^f{A z(}XlnLQKHEnN7prbJ9^9?lEn=U9UTA+-EbdVS}EuT%vWh$w75GSOJF0Cq0}M^ zDRaN2u-z=N+yniODQSW_JuhuehI)dr$x<31*2OdH57K<+vsQ?xQxQ;ZtKU##lSMO0 z@*HZy!wXwnxZH1A8)3!D=(;H1<^8*w$QWGhOrJTu~I4^H9yU! zYC}1TjMWC)sY+dKNSwYL)`n=NX_yTvhkVSYrAr5AgW*(UXg27Fqmbq%5gxEYnEl#d z{(q1J+HiLUyuS_glT8b4P#2>1%$L~I9r8u>+AZhFtp)1ZlSe(x0`)Wz>Y>sCF`pWx6DCZ&_|h;c`wE)k`N1H1 zE$@R@%i9g%jtVPSJ22^OO_5H}tO7X}pO9fDh*c$R2lE?4 z{vfSb3fiG_(2-5h56t)#p%ga9l3{)X%c6JH(pIt%rjNWzBITk2(Uz_Vbz?!@R=Dou zG(hoH*x{B+_@n2a@7iZswLQ&gn-$qCT&6Xu%v`4x9;e#5RXYbSY1Pc7x3p@0D)JyJ z+-D#eup)i3!N3ad6x4cJVB|hc@iQRReyIFuwLfCu{FY{)rs%2JDWSTN#@3}xIk~!7 zm$4nfio9XP*bbg^wF7sW@|ZN;&1OH#XhTn|wnPZno8`cswvH*@xMCECro=Cxx6px} za&$@Yw&rav+D$IQ3|*H_0osftMr49L3kWX8Eiq>qh(whgGJ+n?u}2TZbTbJVX&@=C z$P36fJCNrq@`{j=DY#!SH)>f@w|FmFKNlE}QIyHP?)I2;09(+Pc@BMvLX_?b&chAj z>@nA$1@s*>1=S4yafZ`6eyG`tWa_74lgJU;XE$b1d2_dF3b#BOTB(>6AZ~kgzGID;BgHtf>~f zSgsT)G_^XRt_@k}gcTWQN3R`ednfM`cSYb?`)kBy>s75(ncqkt+Kwn0Vp^5?GL5`5 zQDBHxN|3#$)M}$!F9~y1UANvN@N+UhW~_hNZJQJbs7*Yan28zr z$}X@7xXVClH41latPY8wo7At0%cHF>z1nS)F6a_JeJgusH{FISXNw-BSmOaM0TLSBrj8GA?wSDWPtZ!tUR={A?RLeZ{?sJ1`ov__y2C6$+#U^8YmIncD z47QPV)#UnEdPkjUtFRKY-K|_3tyCvLPkqDu*7+9xze?J}%%v0HP6fpcYze))@&w>U2+wjA0d9%9?OfgM5rOtl%0bT6kq?(nZn#WAHf{N#?zhnWYytm(|fC?gkqTwGBfic(o?x`$R8S;~3U z?xr)!SEo|+w7tu#(@+)Xbo`8lyAv8iBHS0!LILp|f^C(CQ^B0_64jGbY*2 zn5Y*S#Ii=Egdy*(F+TuyCl}*Q8$L$K$Xu2dZ42 z!bucgDzq_$BagPJ&|rl5Myd2{6=qAC8=GB6S?OVW57eMgJQZGNFy}4pAL=Ac(|^g>`$e04;YxzoOLNuc)rji2HsbeVg!3eLO>S2jSVA#h&B z9EYvfQkBfA*ip)HI8-@!MoRt6zOEsui(5|v_os4hP!}a!OPo6l_!w~RzChYvu3t(U zS8a-;!wqPyEZ8d}bXgFUpSQQ;g$C+kYj&S74@+~IfiYibV8OcR$sN6Q$#Zy`bY|tw z2?pxUMG<*q9m^p`)XwRUJZAQ;f~&Je5e3FvmKKGrJsTCz%BsuL$Q%rNnVzdtHhGaX zDg%3Ob6~|-F3dDoj7m!+^Ae^}NT;fFY2YXWS@D}f`9cj85^JSWiR1!MnP?;b%S)yrg>_E0zK6N4k&EjW$Wz9-T%Oe47eo{{w%9mMa>ui-$ z*OKv2AdC}*{CJUN(QP2@>qo|yM7dL*)u<)J;&e7{T|k_IO%Z;0PkxUEKYn5{)59+x z@daunSs31u!VP;=p43bz914p*6E!&zGU6Yk!Ot@)2gKt9h&AEC#Qsn%dRoDCpipC? zV6Jl;J5jBnqLkhp=*%?HaVj?H2WGTNGwL&xm>fu(bwMVri?t?UjxdsxlMwqVbFF1h zoh3WcNYbr%%^E28(KvX6jU*hTH^H(yY0Q$9`q(_hhD>skDfl*oQ(eA!7OMuMOoXiK z{<=;$RsMA`LOvoS@T?Ooj`8q&T=Nbk?U6qLYM%{isWzYpuS7;^?b~WG z$&yR&d`E|JCJ21C!`p2F)LxeX|EHj@Tp3N@NF?IG0_|;(%-)$yynZ>?o1Irk~Opk(@F*xm&Hn%t>2UHAbb#n7I z@k^nQn5qV4cpN=<*sE=B;BuF?p`nhkQrr`uToa(TDQQ%759haF-fFyOP9A*y{b-XA zC3xuJhu8V5T;y8=_#0+;&PXjms*Cnqu{q$`}^5zK zyf8AS@YK%9BDX!abF#>7Pwt#7^683~)E{P=E>Jtj+?~touXt>JJyAzEf-8!2I;-_q zqKCQNVf%~qm2no0T-u(fwT?fN0g76H$$T(*f<+V==C}G2ogwL{zC{a{$FnV3JD;dh z&uK69ry~A#DYUs8HDOaXr>cYvPxC1uAV&ERvD~KVJWa4R3fKo<5?;!gi_hc0{X?E@4I~9m2Ip@+E3IP6uilsS`#+u5E56 z%(l#r4Q<7ZX^=v9EGS*zo4#QQdA*1N2L05fM`mX9kzG2bY$s0rS%_m58#kFwL` zO7$$b794klx^@x5hFMsF1)gl+* zg;-RSUMQ&eR?qxI!Y^IBrB=q8LkZ}j-f_s+Is0rbmKC(Kx(1pag$r;ONNss5ZSbf3 zxNS;0AH*%u_GxVxGCqj5%TS!9?dN<8i}}9gZ1?62YtUV-?I=aCa+;G#LFetKAI1hc z1<7l~#oi*}qa$bHUTa06vT%dOj)CP&OFse>4vtFD!lj!sw$zP7Zu4@fAZhzhDIW6S z-38KpSE51Fq3nOL_G*9Mg!L00n+z~E$)-&r3pyLJXtPn+21;;}C0yeW0AmIhg)0iZ z!i7i5c0JtvrQr%YXCNLL1*g--(w3g~B$m`sKsH`DLOdFtmd->|-A<&o7!-FQNG-_Y zwv!aC%ezk4EE{L)XDkspcpGs$ov4cE<8s>0sC=wQ(}M2iL`~k16lh=6;O6lLb*qhw z$IH@>`;@gi7mW&V&8w^!;>R)I1F;|4?p$~=UDPS>chqE3(oTa6rrE-#)mZ0~uE<4t zVb~9(Ipk3$&#jdUbA`zGyqV9L`8Aq+4+x-=+Z8q7&RgZQuDQ8x__cYF`B6yiG^Zm% zn*3&Ib)+{U~#v9XIF&3DI1p;sk3VC zZG@Dv$WScsWIa(+_1M902noB)Q-p2LK==^S)vpQ3S^UYI19y67j*yLI*iWWE4`TX`ZAv0sOwN1#(DV$=a6-wt(ipE~7S!7g$`ih?RK0_oa8oS>8qj)p9 zviRqKb%XmyH@bdQo(fAvEh7V&hZg~cYE090?~Q;TGGAYkzE4`b z^n@=XXFB2K(~B(hsjkA%aQnH0GO}fj)~^pzke!KXy+SODplOs7Mv!iU)4Zfc3h+^B zpFh8uP+BonR;C_1_ys>Zs5{gnj4Nn)_*Z> zcHwU&hf_zmG0prH8B{=kHO-Npq->S~6M$+@5~8#iOaXFDZe`$CXJ6$CH`toj9XGs> zLmulh;E)YWN)C@#KIpYxCwYJM$s%{T6HXRaW_$Qt?u5$@xyzk!GIHmwSn6x=TH@gV zy`|4x^boalvtLHkE(<>_LgU~eL`|IEULtDcPC}}hw$@Wz&bE|j#&n7!walQK0W>p{ z#qgPtI1HY-LB{S~?qp{6Y z%AZ4I@glbJx6tu7r{bL$O7!$B!nuXGJ|0VLbRn~#g-(7tJ(sV}BJ5brYsK9u0$dWG z^V7vdyBD*mbA`6X^w|`5?ncn?lz0gNUN>$+&@2l-A;gkd9bJIJ!Pf{{xO6sxmM2@a z6`*vd4;9J=cf2Yq9Eo+hUj7uf%wqJ!h_cd3<7P84YKMUpH*z_);>Q0E-hU)!>}2&$ zjMbg$sXBYoOGn9W+Zo)TLS(THXX%^~=fm EKaF3@p#T5? literal 0 HcmV?d00001 diff --git a/Qt3/qscintilla_cs.ts b/Qt3/qscintilla_cs.ts new file mode 100644 index 0000000..d438921 --- /dev/null +++ b/Qt3/qscintilla_cs.ts @@ -0,0 +1,3612 @@ + + + + + QsciCommand + + + Move down one line + Posun o jednu řádku dolů + + + + Extend selection down one line + Rozšířit výběr o jednu řádku dolů + + + + Scroll view down one line + Rolovat pohled o jednu řádku dolů + + + + Extend rectangular selection down one line + Rozšířit obdélníkový výběr o jednu řádku dolů + + + + Move up one line + Posun o jednu řádku nahoru + + + + Extend selection up one line + Rozšířit výběr o jednu řádku nahoru + + + + Scroll view up one line + Rolovat pohled o jednu řádku nahoru + + + + Extend rectangular selection up one line + Rozšířit obdélníkový výběr o jednu řádku nahoru + + + + Move up one paragraph + Posun o jeden odstavec nahoru + + + + Extend selection up one paragraph + Rozšířit výběr o jeden odstavec nahoru + + + + Move down one paragraph + Posun o jeden odstavec dolů + + + + Scroll to start of document + + + + + Scroll to end of document + + + + + Scroll vertically to centre current line + + + + + Extend selection down one paragraph + Rozšířit výběr o jeden odstavec dolů + + + + Move left one character + Posun o jedno písmeno doleva + + + + Extend selection left one character + Rozšířit výběr o jedno písmeno doleva + + + + Move left one word + Posun o jedno slovo vlevo + + + + Extend selection left one word + Rozšířit výběr o jedno slovo doleva + + + + Extend rectangular selection left one character + Rozšířit obdélníkový výběr o jedno písmeno doleva + + + + Move right one character + Posun o jedno písmeno doprava + + + + Extend selection right one character + Rozšířit výběr o jedno písmeno doprava + + + + Move right one word + Posun o jedno slovo doprava + + + + Extend selection right one word + Rozšířit výběr o jedno slovo doprava + + + + Extend rectangular selection right one character + Rozšířit obdélníkový výběr o jedno písmeno doprava + + + + Move to end of previous word + + + + + Extend selection to end of previous word + + + + + Move to end of next word + + + + + Extend selection to end of next word + + + + + Move left one word part + Posun o část slova doleva + + + + Extend selection left one word part + Rozšířit výběr o část slova doleva + + + + Move right one word part + Posun o část slova doprava + + + + Extend selection right one word part + Rozšířit výběr o část slova doprava + + + + Move up one page + Posun na předchozí stranu + + + + Extend selection up one page + Rozšířit výběr na předchozí stranu + + + + Extend rectangular selection up one page + Rozšířit obdélníkový výběr na předchozí stranu + + + + Move down one page + Posun na další stranu + + + + Extend selection down one page + Rozšířit výběr na další stranu + + + + Extend rectangular selection down one page + Rozšířit obdélníkový výběr na další stranu + + + + Delete current character + Smazat aktuální znak + + + + Cut selection + Vyjmout výběr + + + + Delete word to right + Smazat slovo doprava + + + + Move to start of document line + + + + + Extend selection to start of document line + + + + + Extend rectangular selection to start of document line + + + + + Move to start of display line + + + + + Extend selection to start of display line + + + + + Move to start of display or document line + + + + + Extend selection to start of display or document line + + + + + Move to first visible character in document line + + + + + Extend selection to first visible character in document line + + + + + Extend rectangular selection to first visible character in document line + + + + + Move to first visible character of display in document line + + + + + Extend selection to first visible character in display or document line + + + + + Move to end of document line + + + + + Extend selection to end of document line + + + + + Extend rectangular selection to end of document line + + + + + Move to end of display line + + + + + Extend selection to end of display line + + + + + Move to end of display or document line + + + + + Extend selection to end of display or document line + + + + + Move to start of document + + + + + Extend selection to start of document + + + + + Move to end of document + + + + + Extend selection to end of document + + + + + Stuttered move up one page + + + + + Stuttered extend selection up one page + + + + + Stuttered move down one page + + + + + Stuttered extend selection down one page + + + + + Delete previous character if not at start of line + + + + + Delete right to end of next word + + + + + Delete line to right + Smazat řádku doprava + + + + Transpose current and previous lines + + + + + Duplicate the current line + + + + + Select all + Select document + + + + + Move selected lines up one line + + + + + Move selected lines down one line + + + + + Toggle insert/overtype + Přepnout vkládání/přepisování + + + + Paste + Vložit + + + + Copy selection + Kopírovat výběr + + + + Insert newline + + + + + De-indent one level + + + + + Cancel + ZruÅ¡it + + + + Delete previous character + Smazat předchozí znak + + + + Delete word to left + Smazat slovo doleva + + + + Delete line to left + Smazat řádku doleva + + + + Undo last command + + + + + Redo last command + Znovu použít poslední příkaz + + + + Indent one level + Odsadit o jednu úroveň + + + + Zoom in + ZvětÅ¡it + + + + Zoom out + ZmenÅ¡it + + + + Formfeed + Vysunout + + + + Cut current line + Vyjmout aktuální řádku + + + + Delete current line + Smazat aktuální řádku + + + + Copy current line + Kopírovat aktuální řádku + + + + Convert selection to lower case + Vybraný text převést na malá písmena + + + + Convert selection to upper case + Vybraný text převést na velká písmena + + + + Duplicate selection + Duplikovat výběr + + + + QsciLexerAVS + + + Default + Default + + + + Block comment + + + + + Nested block comment + + + + + Line comment + Jednořádkový komentář + + + + Number + Číslo + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Triple double-quoted string + String ve třech dvojitých uvozovkách + + + + Keyword + Klíčové slovo + + + + Filter + + + + + Plugin + + + + + Function + + + + + Clip property + + + + + User defined + + + + + QsciLexerBash + + + Default + Default + + + + Error + Chyba + + + + Comment + Komentář + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Scalar + Skalár + + + + Parameter expansion + Rozklad parametru + + + + Backticks + Zpětný chod + + + + Here document delimiter + Zde je oddělovač dokumentu + + + + Single-quoted here document + Jednoduché uvozovky zde v dokumentu + + + + QsciLexerBatch + + + Default + Default + + + + Comment + Komentář + + + + Keyword + Klíčové slovo + + + + Label + Nadpis + + + + Hide command character + Skrýt písmeno příkazu + + + + External command + Externí příkaz + + + + Variable + Proměnná + + + + Operator + Operátor + + + + QsciLexerCMake + + + Default + Default + + + + Comment + Komentář + + + + String + + + + + Left quoted string + + + + + Right quoted string + + + + + Function + + + + + Variable + Proměnná + + + + Label + Nadpis + + + + User defined + + + + + WHILE block + + + + + FOREACH block + + + + + IF block + + + + + MACRO block + + + + + Variable within a string + + + + + Number + Číslo + + + + QsciLexerCPP + + + Default + Default + + + + Inactive default + + + + + C comment + C komentář + + + + Inactive C comment + + + + + C++ comment + C++ komentář + + + + Inactive C++ comment + + + + + JavaDoc style C comment + JavaDoc styl C komentáře + + + + Inactive JavaDoc style C comment + + + + + Number + Číslo + + + + Inactive number + + + + + Keyword + Klíčové slovo + + + + Inactive keyword + + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Inactive double-quoted string + + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Inactive single-quoted string + + + + + IDL UUID + + + + + Inactive IDL UUID + + + + + Pre-processor block + Pre-procesor blok + + + + Inactive pre-processor block + + + + + Operator + Operátor + + + + Inactive operator + + + + + Identifier + Identifikátor + + + + Inactive identifier + + + + + Unclosed string + Neuzavřený string + + + + Inactive unclosed string + + + + + C# verbatim string + + + + + Inactive C# verbatim string + + + + + JavaScript regular expression + JavaSript regulární výraz + + + + Inactive JavaScript regular expression + + + + + JavaDoc style C++ comment + JavaDoc styl C++ komentáře + + + + Inactive JavaDoc style C++ comment + + + + + Secondary keywords and identifiers + Sekundární klíčová slova a identifikátory + + + + Inactive secondary keywords and identifiers + + + + + JavaDoc keyword + JavaDoc klíčové slovo + + + + Inactive JavaDoc keyword + + + + + JavaDoc keyword error + JavaDoc klíčové slovo chyby + + + + Inactive JavaDoc keyword error + + + + + Global classes and typedefs + Globální třídy a definice typů + + + + Inactive global classes and typedefs + + + + + C++ raw string + + + + + Inactive C++ raw string + + + + + Vala triple-quoted verbatim string + + + + + Inactive Vala triple-quoted verbatim string + + + + + Pike hash-quoted string + + + + + Inactive Pike hash-quoted string + + + + + Pre-processor C comment + + + + + Inactive pre-processor C comment + + + + + JavaDoc style pre-processor comment + + + + + Inactive JavaDoc style pre-processor comment + + + + + QsciLexerCSS + + + Default + Default + + + + Tag + Tag + + + + Class selector + Selektor třídy + + + + Pseudo-class + Pseudotřída + + + + Unknown pseudo-class + Nedefinovaná pseudotřída + + + + Operator + Operátor + + + + CSS1 property + CSS1 vlastnost + + + + Unknown property + Nedefinovaná vlastnost + + + + Value + Hodnota + + + + ID selector + ID selektor + + + + Important + Important + + + + @-rule + @-pravidlo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + CSS2 property + CSS2 vlastnost + + + + Attribute + Atribut + + + + CSS3 property + CSS2 vlastnost {3 ?} + + + + Pseudo-element + + + + + Extended CSS property + + + + + Extended pseudo-class + + + + + Extended pseudo-element + + + + + Media rule + + + + + Variable + Proměnná + + + + QsciLexerCSharp + + + Verbatim string + + + + + QsciLexerCoffeeScript + + + Default + Default + + + + C-style comment + + + + + C++-style comment + + + + + JavaDoc C-style comment + + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + IDL UUID + + + + + Pre-processor block + Pre-procesor blok + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Unclosed string + Neuzavřený string + + + + C# verbatim string + + + + + Regular expression + Regulární výraz + + + + JavaDoc C++-style comment + + + + + Secondary keywords and identifiers + Sekundární klíčová slova a identifikátory + + + + JavaDoc keyword + JavaDoc klíčové slovo + + + + JavaDoc keyword error + JavaDoc klíčové slovo chyby + + + + Global classes + + + + + Block comment + + + + + Block regular expression + + + + + Block regular expression comment + + + + + QsciLexerD + + + Default + Default + + + + Block comment + + + + + Line comment + Jednořádkový komentář + + + + DDoc style block comment + + + + + Nesting comment + + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Secondary keyword + + + + + Documentation keyword + + + + + Type definition + + + + + String + + + + + Unclosed string + Neuzavřený string + + + + Character + Znak + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + DDoc style line comment + + + + + DDoc keyword + + + + + DDoc keyword error + + + + + Backquoted string + + + + + Raw string + + + + + User defined 1 + Definováno uživatelem 1 + + + + User defined 2 + Definováno uživatelem 2 + + + + User defined 3 + Definováno uživatelem 3 + + + + QsciLexerDiff + + + Default + Default + + + + Comment + Komentář + + + + Command + Příkaz + + + + Header + Hlavička + + + + Position + Pozice + + + + Removed line + Odebraná řádka + + + + Added line + Přidaná řádka + + + + Changed line + + + + + QsciLexerFortran77 + + + Default + Default + + + + Comment + Komentář + + + + Number + Číslo + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Unclosed string + Neuzavřený string + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Keyword + Klíčové slovo + + + + Intrinsic function + + + + + Extended function + + + + + Pre-processor block + Pre-procesor blok + + + + Dotted operator + + + + + Label + Nadpis + + + + Continuation + + + + + QsciLexerHTML + + + HTML default + + + + + Tag + + + + + Unknown tag + Nedefinovaný tag + + + + Attribute + Atribut + + + + Unknown attribute + Nedefinovaný atribut + + + + HTML number + HTML číslo + + + + HTML double-quoted string + HTML string ve dojtých uvozovkách + + + + HTML single-quoted string + HTML string v jednoduchých uvozovkách + + + + Other text in a tag + Další text v tagu + + + + HTML comment + HTML komentář + + + + Entity + Entita + + + + End of a tag + Konec tagu + + + + Start of an XML fragment + Začátek XML části + + + + End of an XML fragment + Konec XML části + + + + Script tag + Tag skriptu + + + + Start of an ASP fragment with @ + Začátek ASP kódu s @ + + + + Start of an ASP fragment + Začátek ASP kódu + + + + CDATA + + + + + Start of a PHP fragment + Začátek PHP kódu + + + + Unquoted HTML value + HTML hodnota bez uvozovek + + + + ASP X-Code comment + ASP X-Code komentář + + + + SGML default + + + + + SGML command + SGML příkaz + + + + First parameter of an SGML command + První parametr v SGML příkazu + + + + SGML double-quoted string + SGML string ve dvojitých uvozovkách + + + + SGML single-quoted string + SGML string v jednoduchých uvozovkách + + + + SGML error + SGML chyba + + + + SGML special entity + SGML speciální entita + + + + SGML comment + SGML komentář + + + + First parameter comment of an SGML command + Komentář prvního parametru SGML příkazu + + + + SGML block default + SGML defaultní blok + + + + Start of a JavaScript fragment + Začátek JavaScript kódu + + + + JavaScript default + + + + + JavaScript comment + JavaScript komentář + + + + JavaScript line comment + JavaScript jednořádkový komentář + + + + JavaDoc style JavaScript comment + JavaDoc styl JavaScript komentáře + + + + JavaScript number + JavaScript číslo + + + + JavaScript word + JavaSript slovo + + + + JavaScript keyword + JavaSript klíčové slovo + + + + JavaScript double-quoted string + JavaSript string ve dvojitých uvozovkách + + + + JavaScript single-quoted string + JavaSript string v jednoduchých uvozovkách + + + + JavaScript symbol + + + + + JavaScript unclosed string + JavaSript neuzavřený string + + + + JavaScript regular expression + JavaSript regulární výraz + + + + Start of an ASP JavaScript fragment + Začátek ASP JavaScript kódu + + + + ASP JavaScript default + + + + + ASP JavaScript comment + ASP JavaScript komentář + + + + ASP JavaScript line comment + ASP JavaScript jednořádkový komenář + + + + JavaDoc style ASP JavaScript comment + JavaDoc styl ASP JavaScript komentář + + + + ASP JavaScript number + ASP JavaScript číslo + + + + ASP JavaScript word + ASP JavaScript slovo + + + + ASP JavaScript keyword + ASP JavaScript klíčové slovo + + + + ASP JavaScript double-quoted string + ASP JavaScript string ve dvojitých uvozovkách + + + + ASP JavaScript single-quoted string + ASP JavaScript v jednoduchých uvozovkách + + + + ASP JavaScript symbol + + + + + ASP JavaScript unclosed string + ASP JavaScript neuzavřený string + + + + ASP JavaScript regular expression + ASP JavaScript regulární výraz + + + + Start of a VBScript fragment + Začátek VBScript kódu + + + + VBScript default + + + + + VBScript comment + VBScript komentář + + + + VBScript number + VBScript číslo + + + + VBScript keyword + VBScript klíčové slovo + + + + VBScript string + + + + + VBScript identifier + VBScript identifikátor + + + + VBScript unclosed string + VBScript neuzavřený string + + + + Start of an ASP VBScript fragment + Začátek ASP VBScript kódu + + + + ASP VBScript default + + + + + ASP VBScript comment + ASP VBScript komentář + + + + ASP VBScript number + ASP VBScript číslo + + + + ASP VBScript keyword + ASP VBScript klíčové slovo + + + + ASP VBScript string + + + + + ASP VBScript identifier + ASP VBScript identifikátor + + + + ASP VBScript unclosed string + ASP VBScript neuzavřený string + + + + Start of a Python fragment + Začátek Python kódu + + + + Python default + + + + + Python comment + Python komentář + + + + Python number + Python číslo + + + + Python double-quoted string + Python string ve dojtých uvozovkách + + + + Python single-quoted string + Python string v jednoduchých uvozovkách + + + + Python keyword + Python klíčové slovo + + + + Python triple double-quoted string + Python string ve třech dvojitých uvozovkách + + + + Python triple single-quoted string + Python ve třech jednoduchých uvozovkách + + + + Python class name + Python jméno třídy + + + + Python function or method name + Python jméno funkce nebo metody + + + + Python operator + Python operátor + + + + Python identifier + Python identifikátor + + + + Start of an ASP Python fragment + Začátek ASP Python kódu + + + + ASP Python default + + + + + ASP Python comment + ASP Python komentář + + + + ASP Python number + ASP Python číslo + + + + ASP Python double-quoted string + ASP Python string ve dvojitých uvozovkách + + + + ASP Python single-quoted string + ASP Python v jednoduchých uvozovkách + + + + ASP Python keyword + ASP Python klíčové slovo + + + + ASP Python triple double-quoted string + ASP Python ve třech dvojitých uvozovkách + + + + ASP Python triple single-quoted string + ASP Python ve třech jednoduchých uvozovkách + + + + ASP Python class name + ASP Python jméno třídy + + + + ASP Python function or method name + ASP Python jméno funkce nebo metody + + + + ASP Python operator + ASP Python operátor + + + + ASP Python identifier + ASP Python identifikátor + + + + PHP default + + + + + PHP double-quoted string + PHP string ve dvojitých uvozovkách + + + + PHP single-quoted string + PHP v jednoduchých uvozovkách + + + + PHP keyword + PHP klíčové slovo + + + + PHP number + PHP číslo + + + + PHP variable + PHP proměnná + + + + PHP comment + PHP komentář + + + + PHP line comment + PHP jednořádkový komentář + + + + PHP double-quoted variable + PHP proměnná ve dvojitých uvozovkách + + + + PHP operator + PHP operátor + + + + QsciLexerIDL + + + UUID + + + + + QsciLexerJavaScript + + + Regular expression + Regulární výraz + + + + QsciLexerLua + + + Default + + + + + Comment + Komentář + + + + Line comment + Jednořádkový komentář + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + String + + + + + Character + Znak + + + + Literal string + + + + + Preprocessor + + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Unclosed string + Neuzavřený string + + + + Basic functions + Základní funkce + + + + String, table and maths functions + String, tabulka a matematické funkce + + + + Coroutines, i/o and system facilities + + + + + User defined 1 + Definováno uživatelem 1 + + + + User defined 2 + Definováno uživatelem 2 + + + + User defined 3 + Definováno uživatelem 3 + + + + User defined 4 + Definováno uživatelem 4 + + + + Label + Nadpis + + + + QsciLexerMakefile + + + Default + + + + + Comment + Komentář + + + + Preprocessor + + + + + Variable + Proměnná + + + + Operator + Operátor + + + + Target + Cíl + + + + Error + Chyba + + + + QsciLexerMatlab + + + Default + Default + + + + Comment + Komentář + + + + Command + Příkaz + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + QsciLexerPO + + + Default + Default + + + + Comment + Komentář + + + + Message identifier + + + + + Message identifier text + + + + + Message string + + + + + Message string text + + + + + Message context + + + + + Message context text + + + + + Fuzzy flag + + + + + Programmer comment + + + + + Reference + + + + + Flags + + + + + Message identifier text end-of-line + + + + + Message string text end-of-line + + + + + Message context text end-of-line + + + + + QsciLexerPOV + + + Default + + + + + Comment + Komentář + + + + Comment line + Jednořádkový komentář + + + + Number + Číslo + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + String + + + + + Unclosed string + Neuzavřený string + + + + Directive + Direktiva + + + + Bad directive + + + + + Objects, CSG and appearance + + + + + Types, modifiers and items + + + + + Predefined identifiers + + + + + Predefined functions + + + + + User defined 1 + + + + + User defined 2 + + + + + User defined 3 + + + + + QsciLexerPascal + + + Default + Default + + + + Line comment + Jednořádkový komentář + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + '{ ... }' style comment + + + + + '(* ... *)' style comment + + + + + '{$ ... }' style pre-processor block + + + + + '(*$ ... *)' style pre-processor block + + + + + Hexadecimal number + + + + + Unclosed string + Neuzavřený string + + + + Character + Znak + + + + Inline asm + + + + + QsciLexerPerl + + + Default + + + + + Error + Chyba + + + + Comment + Komentář + + + + POD + + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Scalar + Skalár + + + + Array + Pole + + + + Hash + + + + + Symbol table + + + + + Regular expression + Regulární výraz + + + + Substitution + + + + + Backticks + + + + + Data section + + + + + Here document delimiter + Zde je oddělovač dokumentu + + + + Single-quoted here document + Zde je dokument v jednoduchých uvozovkách + + + + Double-quoted here document + Zde je dokument ve dvojitých uvozovkách + + + + Backtick here document + + + + + Quoted string (q) + + + + + Quoted string (qq) + + + + + Quoted string (qx) + + + + + Quoted string (qr) + + + + + Quoted string (qw) + + + + + POD verbatim + + + + + Subroutine prototype + + + + + Format identifier + + + + + Format body + + + + + Double-quoted string (interpolated variable) + + + + + Translation + + + + + Regular expression (interpolated variable) + + + + + Substitution (interpolated variable) + + + + + Backticks (interpolated variable) + + + + + Double-quoted here document (interpolated variable) + + + + + Backtick here document (interpolated variable) + + + + + Quoted string (qq, interpolated variable) + + + + + Quoted string (qx, interpolated variable) + + + + + Quoted string (qr, interpolated variable) + + + + + QsciLexerPostScript + + + Default + Default + + + + Comment + Komentář + + + + DSC comment + + + + + DSC comment value + + + + + Number + Číslo + + + + Name + + + + + Keyword + Klíčové slovo + + + + Literal + + + + + Immediately evaluated literal + + + + + Array parenthesis + + + + + Dictionary parenthesis + + + + + Procedure parenthesis + + + + + Text + + + + + Hexadecimal string + + + + + Base85 string + + + + + Bad string character + + + + + QsciLexerProperties + + + Default + + + + + Comment + + + + + Section + + + + + Assignment + + + + + Default value + + + + + Key + + + + + QsciLexerPython + + + Default + + + + + Comment + Komentář + + + + Number + Číslo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Keyword + Klíčové slovo + + + + Triple single-quoted string + String ve třech jednoduchých uvozovkách + + + + Triple double-quoted string + String ve třech dvojitých uvozovkách + + + + Class name + Jméno třídy + + + + Function or method name + Jméno funkce nebo metody + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Comment block + Blok komentáře + + + + Unclosed string + Neuzavřený string + + + + Highlighted identifier + Zvýrazněný identifikátor + + + + Decorator + Dekorátor + + + + QsciLexerRuby + + + Default + + + + + Comment + Komentář + + + + Number + Číslo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Keyword + Klíčové slovo + + + + Class name + Jméno třídy + + + + Function or method name + Jméno funkce nebo metody + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Error + Chyba + + + + POD + POD + + + + Regular expression + Regulární výraz + + + + Global + + + + + Symbol + + + + + Module name + Jméno modulu + + + + Instance variable + Proměnná instance + + + + Class variable + Proměnná třídy + + + + Backticks + + + + + Data section + Datová sekce + + + + Here document delimiter + Zde je oddělovač dokumentu + + + + Here document + Zde je dokument + + + + %q string + + + + + %Q string + + + + + %x string + + + + + %r string + + + + + %w string + + + + + Demoted keyword + + + + + stdin + + + + + stdout + + + + + stderr + + + + + QsciLexerSQL + + + Default + + + + + Comment + Komentář + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Comment line + Jednořádkový komentář + + + + JavaDoc style comment + JavaDoc styl komentář + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + SQL*Plus keyword + SQL*Plus klíčové slovo + + + + SQL*Plus prompt + + + + + SQL*Plus comment + SQL*Plus komentář + + + + # comment line + # jednořádkový komentář + + + + JavaDoc keyword + JavaDoc klíčové slovo + + + + JavaDoc keyword error + JavaDoc klíčové slovo chyby + + + + User defined 1 + Definováno uživatelem 1 + + + + User defined 2 + Definováno uživatelem 2 + + + + User defined 3 + Definováno uživatelem 3 + + + + User defined 4 + Definováno uživatelem 4 + + + + Quoted identifier + + + + + QsciLexerSpice + + + Default + Default + + + + Identifier + Identifikátor + + + + Command + Příkaz + + + + Function + + + + + Parameter + + + + + Number + Číslo + + + + Delimiter + + + + + Value + Hodnota + + + + Comment + Komentář + + + + QsciLexerTCL + + + Default + Default + + + + Comment + Komentář + + + + Comment line + Jednořádkový komentář + + + + Number + Číslo + + + + Quoted keyword + + + + + Quoted string + + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Substitution + + + + + Brace substitution + + + + + Modifier + + + + + Expand keyword + + + + + TCL keyword + + + + + Tk keyword + + + + + iTCL keyword + + + + + Tk command + + + + + User defined 1 + Definováno uživatelem 1 + + + + User defined 2 + Definováno uživatelem 2 + + + + User defined 3 + Definováno uživatelem 3 + + + + User defined 4 + Definováno uživatelem 4 + + + + Comment box + + + + + Comment block + Blok komentáře + + + + QsciLexerTeX + + + Default + + + + + Special + + + + + Group + Skupina + + + + Symbol + + + + + Command + Příkaz + + + + Text + + + + + QsciLexerVHDL + + + Default + Default + + + + Comment + Komentář + + + + Comment line + Jednořádkový komentář + + + + Number + Číslo + + + + String + + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Unclosed string + Neuzavřený string + + + + Keyword + Klíčové slovo + + + + Standard operator + + + + + Attribute + Atribut + + + + Standard function + + + + + Standard package + + + + + Standard type + + + + + User defined + + + + + QsciLexerVerilog + + + Default + Default + + + + Comment + Komentář + + + + Line comment + Jednořádkový komentář + + + + Bang comment + + + + + Number + Číslo + + + + Primary keywords and identifiers + + + + + String + + + + + Secondary keywords and identifiers + Sekundární klíčová slova a identifikátory + + + + System task + + + + + Preprocessor block + + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Unclosed string + Neuzavřený string + + + + User defined tasks and identifiers + + + + + QsciLexerYAML + + + Default + Default + + + + Comment + Komentář + + + + Identifier + Identifikátor + + + + Keyword + Klíčové slovo + + + + Number + Číslo + + + + Reference + + + + + Document delimiter + + + + + Text block marker + + + + + Syntax error marker + + + + + Operator + Operátor + + + + QsciScintilla + + + &Undo + + + + + &Redo + + + + + Cu&t + + + + + &Copy + + + + + &Paste + + + + + Delete + + + + + Select All + + + + diff --git a/Qt3/qscintilla_de.qm b/Qt3/qscintilla_de.qm new file mode 100644 index 0000000000000000000000000000000000000000..09d94f47916fbb25b339de8dbe7ac69d653d4fef GIT binary patch literal 70647 zcmc(I34ByV(s+ktlF7_u0wEj%;ut~*2#6365iukIg3A#}K*V#BnS>#enJ_Z}0=ljT zpX;@{UhBc<2_Aqq-mB|@$L_j{g1Wlif)`%M;rY4$s_uFH-kaC`ju8C+_(74$bX9eA zbyanBb@${)LjC{o&6=zJb?BhKoqqEZ?^Y4g=QBc%|2rYCen-gs3PLt}7<}(_LKZD2 zLEK*(Q1WY)EfgiQR9!8@li`1GR;{$~rBJ?vvb?uwB)S3gC_H@nEZ z6@MkoMSS#35Pz%6brzotHIu@2P~e@68H~A4bUZ)meu>wSkZ+?OEe` z{RndUZ`Pzsb`o;zD_O@Z+D1sfsaexoLEbN%o;B|Y7_Y$}Wrg?MK*-pwS<7!v5i)KT zgQxChaPi=*Rp-1;$fzw@tG)wzhbFVmdKSKS#U)wS?yVr?o@mzfLji9|Mb_HlJ%n63 zGwY5=0De`Jb!W7Mke7O9-GBHAFb=n8ZCc$y$e4v$Pq$(J9%t~w0Stc8$l$KSv$lK! z_{L9R@TkWbJjTyp{Wbw_B* zKA-i$uLwtEedH=4WZSx|kA8T7keZ{jc2v$Mpr~0p?%M(IZ$0wYKS#*QOM4vpuV)DP z@#h{x4&F=1dn0?yS^NX&-|;;{zdQ~&xD0eyHUd;KbyKU2@je)PJv zpuaz6|Mf+{v*eiUr{fR8{Q7hDD}$haS-Y}dKeB<4N9Je0{{^(WuQ2<=ON$9P`Rwdn z#{!>MOw8Urt~Vh^Y|H-PIp|-`>YUvB#}Tq`M^4_Se<9?5R^*gk=mI@mlT)z<g&slp?ijZKRoQ)#^|Nph;Jc{$>^rv#3 z-uip!$E`Wf-3#M;-m;u6lVJQSuE=?<9Qt+F?wr^2D+sx|D(B6eAcq_OnDd{vfUiD# zb3R^p1|jdHa(1qS@5guN>>0L)kk&Sr>-}P|L-SpEPxuK5zs}$-6B&Hr{}_CqxC*|5 zeq6lT2QB<5rA_LmrZ=otn-naSYSM+2;e z@14Tn9fvUZa32OgS;OGhe*#!T$Q=m=Klz5iuRnB6{TRmk(?>(UMqti-^bu*cQCkfGlSoaXK>#j27lV-YRz^LGVFF&qW^C2vClKuJf6Ytm${Np z{0jY8>snTI5cuI$u2qw+0{gwwb?rIl5HjgG24DQ%b;l(zUh9c#!}uPcPyc1`s8tNs z>|?O;2?m$k&R}8#gKGyfxZ!#RA6UWQV>t{ydoY8q_h#_jg$#aF#NcNw4DPI9aM%3| z?!Az~pN@BJxD4h?t?7zQ6ag~8o#F!)1(>z;o=|8}11y7#D)33-1rgWsO$ zdTde!A#Z=>dg{qRg!I_x+OmBbA$irVw{O3KkeBRH+~KieLWXb59kKaYLN@KmJ@(WTA*)Z$J>@Hy_oK>lPiu$v%p=Ug7PahyJVc3cm*ZEiBLLcV`LM*Z<}X zpD>gVcT3*zvmS(Txi4=-=ZWzBo_Q5NUk~+^!~Z00Y*UoUk3PhLZ06Q@JEPWJb95HiU~RC z!o2kx!T!JhL*Dv_U>|at-g|lPT)Y*a!(!& z{FXJjY5etEsXKDS?;uXw>t6B%=zGuk?j>&l-Wjvq@go55&=1{bym2b%`3denZ0$$L zIRoA2uBjsAv$x#me+=?o+|1xD+ZlXxg8RZ~10lW6a9{fS9T4aKjlrok44yih!SxmH zt8UC8WadowRrhZqWO=>&wz1&1HeKOfKW7~wqxZP)T{9Nq%(3preujQMFxmaoYryxM z2i*T2c_hT|0r&f-L;qgxbnmze@YFoPVB;$HXS;#_HSfE>ya0Z`;%@i8!GPxvyWKzD zb|u8ATk`XN|2n{>`DJ5Ey_vxiuVpZ}j=`l{7~F6ugHN5s z;MPYN{LexLKfFHwv3tS)zIJ&2-xrobynRLff4({f^mTmxk8i@yO$iT)K);F}_P9n) z1O40K$=!Vd#N&+~-z(z@>Hn>#_cz-J`SY8e{$ErOa>?VKLym#p*PY-g>DPx4Z=+|} zr|@~zSDxWt0{_Q#dPdw|PsovvF!;oS48GOuIczR`?_Z-mV?G0YdUT^_`iVDyzwYOm zxpWHni^ZP$PaXt5+ZlZ8R?njUf}9V(!*gmsz+3mOCp0k!;)~-LT%Ta@(<%nPS?vi; zE(W@L89e%J29NoP!T4DWwm-<=t%Df6<2eS`-^t*{Um3jrYzCj~Wbmc07<_dogRgC3 z@a=I7e((WyBC4J9z4X`;|G}E_cnM7 zPTK@}d%o9yY!2wH%RAr}`1!u8y(O2fhB*9WZ|PMar-v7NhiwFTj(pf#e$#niH(&8i z{3GBg`_y~%*cTz*{@Q!=sSgwK`x@`mC&AwjzR)}E&CRghe#(2=P1|6->Gw7**a30k z-QLha5GUOh_lD-Ig?RW5Z@3un-E@h!eJl9u#-ZM2r!0qYU&-LgC*JMX)5U9c`3%iufN-Y=i8fO+{NgMUBFyX&ms5SOp__4xN+K%Nc0{BNg$e8>0- zhF=8pb{B)6Z}Sb94tn_AcfLUd3kmsRuy4v6z}J-{e8+A46WF)s8JzMMgP)D`oiJ-P z*o9TT6ZX9W`G*<4=9j+%zgg>xyPhHBsA2}6d5FPxcKL2U80_=8TYUG7EG8s!r|;>) z=O7=n&iCR#SpUqO;Cu0xp)k&S82ovPZ_8AmoA}nZHGeh&EOA?@clgOP0*_uzMpr4ygb+Weq90WR}3#GDi}@3lbaZPJ66#9 zHt7EiZ3V*~0XdDFRd7_rI6`h+P*7P0KVSV`LFEV-*Q>89IPJsUkZ-!WplMwrAxqCF zNSz74AO8miTT2;S`wD}Py~W_(e-)f_!8YJ;P{Da8!#scH@PgGjA49ydvf$!lVf`~W!G@1hphpWBYRtOGv(a%90Xr|*FE=NAQUj)w2AX()KNZ!z@ip9R~` ze;NGu_JSR2Ko9TfTd=DW;2B%}J+__z{%?Xmx9S{-BR2aBn!ba)!Q1{q@8__dJOW>}81e`A`{&+~Psmf>`xjjB0wGte^`Ec_=HbO-{HI(5{r>%{ z{_xce5Z{gQFJ2COTkb|eV-%lH21;1J}!KK3vF1itr|cK@ovZLm(9#Api9^UaLRx-;D9aK`;AnbpxHFV+<}hk-?My!C>>N45qGUaN}hRK7JL0 zf4_;rH{1-qzmUNl7x{19TLtmVOa67I&;OjmA3$Yxq>$UzD-&za#h)4WeW9=UM+g57@8rl>gVUenRR`X7HjBh5aip2mf$QVTlXqy>xlukTU_E`agxk&OQn9 z77rDUy&3SF^h{yJVSwkbPYWmh2jJMoLK+V~->-1q%h3Lc9ffT}q1~646n0c@1Ap7f zVC7y0_jDAV_j)PJ%UOjNj4g&Z`I^GZhNpnf;e`*zrh&bhTKE)>*I&vDH*bUAANp3| zJ3EF#Jb7B-hxc!W`1-@bA2(hF_Vm{X7`d;rA#qVerjkbZlOSQzL>9xpF*hbOa`A6< zFxC`~fE1ff-w1W1I$;NRcD|HJhEjqrQKm?SCq zP9tK5-*=EU+9pOq@JUod?U3qtY*{#w3M9kPa8oK0j|EckKs3HQoCq`plVKqn(-Wh1> zNF>6sR3I9OiTfBZ^ihV;PZ4tY2_-hcg4rN+BMEGKo5mHAp4N2QfV@ z;O8jWmzIoHBK>PXVN+o)l%~bOM6f9pP6*{c(m+YCEMgka5giSwvXtpGFG}Ur3QWtG zR}dpYI^V+0DIwqGI>d^(NSUB6PV=mwPDEN3i*b)gvgk)MCXzhR9e7J`IBP(hgS)K8cZL`fm%jn@31l3q+a&v3M#F1XWK3 z!Pdo_<@5ejG7p$wq;UWnff0l&sS(8~z>H{sno|5tjBKahN0W=}2gnIvdJ^;}xe5f* z?9%Z;9SFxl$XG1AA{AI3PlSZ}P|9(mYFUkzqGpKBRL#mXXq_mTf>^F(Wd@TJ0ztM@ z=2t=oGOcs(nvV8pq$vn9+uSTwSj=d1G6PgHsl}=hkxuZaMk`P|T7mTzVBY8@(A5Uu zH#jz#E(sMEH47bbjB5*u02Mz%KS^k;{)lNSQm7UQ@XWzjOGh-AP^A(G#h1sJftC5N zu5(?_`9b|YAY8WxTg09>)+Jdh212!FD&N|fBA52zrqYgriKfyvw|MQ{&b)p;%Gn=d z%04qQ=#I_#Pub>QY!DNm+%;hSTB*52bI6S1N~%ySN|X1Y!n6;nkqpI~I@(Obx9c4D z1G!R7coL=~a{`T^{x}9`*jaq3su%`oq8{7pZLL*rnN*Rann@pS#fD$&&Likh)okEMUw5&V5fYodzo#gDrZ_0?2Up66XyX$SGqOM zMz`V#8&QxkW2$sT#5igU#yz-zlP$`OGg~9^bW|p^&ql+euriI4-T$CV30hP)Yh+KZ z5h25b+W-8AT$ILXrSfW?2WjjApUY@ghOOI;SsFQ)W)kIjFsX^U!N939>PWG>799IO z<7S9voY?{-ZCq^4!gGETA=tB+lbv?da;3FM+B@-zsw)O@xQJ_Y{bXh7uXJqb#jJ~r z=Kky6cw3#brD?OIV9Wrl#_5;FX3IW1933i?kNJ{s08xbyqZv2cQ>L4*d|$*p zJ)UT54u{1X3bNfjmcSP6?)98$XKSyF%z+pR_hywPi<0}p#CS988e)vAZgBc%#*(-V z9Sbj)CgDeDb|M!+Yh|ZbUC8ovKkt3f?D(>582rXR_zWr6H0cA9Vp~y6)!qGnhAD zh^a)F>WJi{Sq^d{{pldsT_G#eN$rYOg+%y!XW*AgX^cVoA}NVTWOl(^P>QL;`MDgn zHnGkGDJhDD^BDD5ZveHw)ppsa)rZm!Gba@e(WOYz#spPTf!)Ja+9vZ+K19Tnm5Zu@ z{QxEf;{r||<0WDDGeNWLdJ8y^vY;-2LRK+dvk7@ouwyq)lQB3)IKyG0KRUtza!jF(Kg}mkl_187D32El$M*s-8ub&9T#iqpf-X zwIYg%u(cnkDuj69;oM>!tgxsqGOTRY5-w3O6PdFU4a5H0t>IEOZCS2KoMjPn`W2*X z>KtTb!OVWm;Uw)#$&OA9ma-ww2r3bcJ^;|V_)K5glTxvAo`ZQ%9MCLc0uXM*apRqP zW*s(Zh^<7ws4wyjxJ*v_XgM_xuY0E1HLhG-b-`pxT**>FW`UK!Z9oj5kTV?5X86mB zcb7vL5KiaGvEMYb;yv#*FC2nWT)-Y^Vl}|RwDMT4EF%3xvdpt$X>K%w#6k5ER%Ii}dDX0pDl}4Bq)2Zn(UO*=`D@(eWXLV5I z9G97JoE|ADzqKI0dXVOR%akk1AeEaoT_#1!!}R^+A=5|?$l$Li3K~EsDq6K#W3O`=*<=Qt!kH zXSHRpZrV8BAugC01Wq*y8jnS}ctoQO{xCZab$gtFf~sh|sg*iXu<6K#4-ePO3a3DaO{5&O~&IA&_cm$>FD4PJP*m9>wqUkdgMtSvwCP*K(J_3?gy{UV8M~ogO64NTCagfR~ zR!XZhJu~s>NTfN!&T<&(V%8gb8U-2Pp&2~Uv>fO|oS@41ci~PYm1e{+I4xtA%aUu2 zZx$ZV!01b=G?UZHtEdSwhDIbUNl+y_>RCJ|3_)Zl&}gltZs47s{^EVjozv0QC=*ss zG8YsYXCoG*fslAJ_gv84U@A^e%ot_lBX!V;4r&|JkRvGNY)$K-Yqnoem|Jd%s$U?m!{Z z_0XYkG}0DH+bjVYN47`M-l_2spfH`mg74d$!h)9NFo)6i;0Y@9B22#eSebedF3sL` zP-EH#2kR0LFSkSR0VhJyhzpSWzznwn>L`-n2y*LT^%SHwMbKuV$sjB44X*v8wm~t= zXt#nK|G;{1VX8}8tQ~v_qquA}_o(J1i}fT`FDmGu-AV4(*oRaTGZ6M>xu_*3Q&yzM zmpW7Gc6h3R3$G_`Gbdufs5YY@LRbMoygpa4j4Dqf{g-ZB(50GAu$)Za+DM4GO^jA` zn~EZ0PN$Rzhlk9jnhwztXTvos*vL+vidxv5RpO=#D6t6q+X(uvl5{T!CL%!yxlk2F zO`YpU_3U74m^u)r`k}TQ0OoiulmJZwS6dBJP!p7JX%$SLJ8#<5>RJ|q==oPM*^K$r zu4|jl1U5vZ-7}|~Q?)y~DzS;M{y`_t4zn(W5CGT2X_pU5tgOG3AcRNRTpmTU@WhuP zau)ThFDM@hb{+^>)Iaa+snzr5ns?FEDTs(p(v)=Jwo+I6*n1wH4z}0H{xU1dC6-&y z*B2s&_ahP$q3a2OH~Kc)lTcL-jM;TfL42qz>bXsf6m_-@6e+z7zdyoZ^`PJg(N_AZwwIP*c zJ`H`@xx573i^h&=XGS#{Vx#*-)k6Z14`~dhB5j(Et3k6uasaS=82m9~+gp9uVdjjF z0CkVU+6t$xg3oG%{D?IXTyDyqJ*#T$)^8G88_B|@%;0e_NrsUZN&_$d2&NaptT2Nm zof=3d46k;*lU}AnD|JCPa7HxVhyej?G$g~x0D5f9altx>E@X@x^aK^I0VNKAD$U3L za|L$KteF*_9@3`QyU`@O!&??FyDQ4|B16dp)+hqARpmu>gSjIvi ztgM`k^J0=MM$G3)z(6>e>V!Ot#jG)kUL*r+tu2v}x6f$tcfJsA4 z7b+`EW4d^xgdxbhkAk#sQ#hG~;sIe|P|=S$To+LFFivR)KN}D-JP%BA3&f~VU=wp3 zD8;Gpa}vxqtLJUyMz&1H8tmgm+EZ{t1iKvq*6a!3Exl+r>PoYLd;n4e5gOe{BOYLe zMMuLRFc@W>ts}!Yv#MUzMOwpw#gGd#OGYcQTP$D`LpF4D)@+KCjOJ_n!?;uzK>8v8 zfh?pM6;^G9Ii&`kaTIYkPP7LARn%$61di6Y8K4Nl=$5RzZ$F!Qu*!sGK2_mpp`n`r zP~Gl~NJ=?ZElxv|aszWX2AIfL34ht1ihi@9Hzx)u3*oMV(s83lMmJ;aR@9L;bteN1 ztm8=Q6a9sp*_a^XuP`cBMASb{=%eWn&V68InhoY^9zs{|zY8CYM)WX|L5V9a6 zkBJ$&E69z}ATB;VS-R;W4p|!wBm;EA39mQ7D4UsURSnQ&D;rY#z;v^eE4%LpH-gPn zQ8huya8o=M3MM+02!w^@s)kA;b6i~NBV=o9VQv;x3z5{NUDX_@(Z^H@xIk%P?hrjK zu1HWWQr`H0sSz1$Cq`ixT)c&;sOSjpaqS0vg|=e73HC7yRLsJ;G6OA~Wb%l= zpMu*~#AcL{b#!)61_i62Y?7e|vNL;ve+@(_2$6Zchtb>ud!_dlU7TY*+ zOjCfyuiH#u8yhwp(2%d6qeyRb7hOodI$b1g;WPxATfTs%Xb)VxU((eu-%l!G4aAHIRC#b;m0LL~(ZTk8 zG_tB^l|?;a(S$WTxC+F}an+)O{HZBeYczJS3SwhR46*9r&k^7Qra^1A^_HX?q(SgC zDyD+!`uZazHA(O*n*CL`>E4VL(!kY{mI{_gg_T-8PNyI5OPUT86)S}?#@W#qLd_bO zj%bGwTc)mfXVzFKiXZl5l$-uwc5y!PXSTJ+6L9NhMwOnTV7TRnrTe&V5(9~1{zhvK zJhQ{0NHAb#5@ahfNnMsgxxY?|qOtPTSq{+v9TM?S_|s@iN8q<`IBB)YB@M71R);9N zA(&CisEBAJcTHHIf)@(2>11v|d(Mxw#_ab2f^T=jc;a;~?y7?p6&NRh&5clF!$~&wH>|eU3Ktl+01J6-OLaZm%H2*~Pgl!y`>4p`&2WtY zi^?fVcu$nhJJY-=*fnE}*Pm4bi?gOC6sw$41dAlwsSU_@(5975csbxZxhAyjZ0Yub z&DT+EO{!V1nIN^=+Ageigw9?FV8YLD5(}8nA8fwU%UzXUzk`cD*#xW2-CGk3j<#`4 z@a$JA!l`m~IjiDK>5P4{P7sSyP$ptKaJeWGqE3?=Ca6ra9475-raMe9bVnAz1bwL; z=fG!e(LCXnoeBQ`@972;-VRt8XhKsB#GGZ7MF|KKGS+TjUiu9bJQay4f7}9KYyEU} zAs_T!ct*fbQt06!PR)LWN||{4`VuzIMSivRt(44GrLdy1pFj82WE4tdq8noeoiJ%$ zq(!Y}%rgm;X$bI|I+M7oKSj#|6Pn!9##@=l%QeVZD2&TYEGw0Tb^SEx@pzsYc6%X8 zCQlRS@MtgC#|n9R0E?;~DxKNUs6H@a^!9wH+=J(yG`o_SlpJ~b%*IY#MrQjipV7)h zGzO%CGGQl)=D9s%7T3_voSPvXPKO2`})DfIpzxGU7;0O`3b`Xx0AROCOgySR#$B7Zvf_cGnS9lr_PnF>9ecCNtFp33iTtL;oRDAFvN~<3flIBY+W3z7`_mcanQCd zp5)U&&=L;@VfG6JgcmHx2F*7wjK}*;ht00kig-8!H&3SE0Q-?g(qZolr$5-cSeV+! z6PdVirsnf}@Dw3f+YaiMaO7l&?2Un}^K2KHa;!HBB$+4|ZL zc?j5dYJFWmQw^d?Wvb@3wqf=xYU1!sQZqWTYS2t7nwn4n6}(c~jEW>ggx<38yM7Vmxtn82%7&3mZS*0QBBI(HUmFnu#GG0fC4S)rkTu@M%G)x&C{ z4c2;aVHlS}rudVcZH;kyW0ima-X?F>^Z5|KIIn;ioG}oB;zj{4R(h7clbLt4cLo*Z zHWUGBd>xl{vkoMdg0(VS<^twIf3gfKOW_&;PJl|Xt~0e5k_faKAP|F_1N0#`w~Y8S zv6zG`ky3>GE9gbHV{qK6Wc2LItgRNaxuwO&m_%H6pM^a{(@O`|b&iCwjF1XKE&c78 zShT>#7prh_XIwv~B^q{=*ed`hUEoHD#qp5Y0IPFRKL}1Hr223@0c%I1 z9dC0dGFT$k%tHKL8ZnvLZ<%V!79Dibrj=g1@DNN|)i&wnVWpeq)>x~L4lHp@DmZi3 zAU>*NKR_wd3{)?kcpg+KmK0F(r;~x0 zM%=C`F3X(;c{g^Ap`caBxIqG3;W#0em{!EyP7EfnzBBW-DfS&)2e9wgL++RL3n#sD z6|&l+5!30L$9NetyM-!kwWt(hf%+NHP5j7^+~v{WbeaxhJmL0^kte;JtvD*l+iIyI>OyRYd&DDOPgzN5`0*7dN>0ly^kuYW*sc1WI9;Z}DXt2&( zmNRHNW+NFkSV~Mk%X?|in$Gp#<}{zcSs6a7(w-g8rM zkz^nhUXg-Js!hW+JULNIw-V$o-CI{%XW`ND6bC~iGj9}$xm`PsBk4X%)*pFyV8W_6 z53)Pe><1D9jI@_&?o$-ZQrrns#AsFbL<5j{8qpKNL?*vw~lT?V%9o8tr1y>T$jr)My;zlr9-X%?I%nQ^*n2h1#S zq-cR<%BVa8sdezBjGwtN>6?K!bLtnQMPNGnGgV4v0}9i~EX+WSfv5d328tdzum{Z! z84#yh?Yoqcv|OAghZl7Vr{+oF4DKAru@tg*N+u=4%m~iA716v2t9CXwI(;>GH5nS! zTHDCL4AS6`2T4AT$#CyI&*flgkEE9w9GUlOmIhDvnbCu24;&a#t#C#6<9jGVe$}5K z-l=rZ5p&gJ%sbGyks8wVaF-q4sfDMXm6xF~i;3ll`rKk~+NETBxG55h2JnV0X`-4If&Q6< zE#zNiqw4~CU?bY7!3vN{?oJHSS7_5)z5|t#9U!wV+u6y{b=k&Vj_fi7fzK!x-iCl1 zGqOu*;K?s`6GBjXIgJ4IU@2<7@%AbR<UNetL6WE!RII1*ompKq}+r ztDpe_?3pW}Le8w|T4;n2m2d&W<*TAL-43r5pzc~8v_J2Qy)393rjY&?^&I03>Tm%z ztuOADBgVb?`3yC#NuSHX*RAlFNfLHuJ7D6mtJbj?5cYRfnN|h0wfPyBQO@cJQf&54 zpQ^W#DDCVXGcmS2j_y?BbEo*=7t8g==o_&!;SI>Sv=k0|g{M9+bDo56VK&&TuS2Wj z33z!B-&q_Ph#VfL_v0r!;jy;1Ky$Du5{1(@>CLX8G(ErBHI$|&IJ<_j zf@_oh*lLAXDeW5SUfkc{OIFR1sFT;MB#o`!7nC%!Ig2H&yD*g{n9%sp+zFR>ZbLB9 z5~i2UN!r-F=1bDr`kbtKYuD^xDjIC0PTcMo3me<>f5N7}$$?5CWk=3eh{37<6(TWp zPr?>9bz9i>fF1f1QnRa6UT!$*=2C66r%;Aw#ZZHXb&0KX&ZXZ><}=SVJsNDG&dAWP zgf4HHze_-vh#pXe#xuQR<;u=LGay5AX}~oYm_Yv;VyB)V_-v)8Y%m0cA_dM);cR%n zBiMq~tud@e5F#rxM@HjXEz;r)q_omOhNIO^!66q%oS|VEwL&d$ z=?1XeONp9ndJMzRF-2L~xk7g~6u^9)d4WqCCX z22oj1Va5VKSFgkvIJa>L3?rl-s_SRaHB_*@Jq)$+X62$8)6m^Z|A_me%<@% z@Uvm1$91h3)~=Aa#23?L3p+(|#+neoI(@TjW?u~%)!b*SAQeK6t{^fBViME_;w3~l zNAV57*&r6Y=NW~xKilgbD0Q`SAd}emS=%8WcBLbsGj}D9&J}g}x zuQBUtKwB3~!b|7WnodrWDHRZsWPb!j8f8GZG=p-x?v)E#z<~x`$VC}&u}Z_inHC-G zH*6K9cBb8KPNW31on$2Jcd>NXD%L|z(@6*IWt4@ovFB`rO-rD16GQYMHH~Nia2bGc zFUG+7vi73d@CvxcsVUMHjB2Vng?JtLA|VF$mS7Y(Qntw0<5PI$0rHpNX4*3|MyphV z$u_C_bbZ;XnF(Fa1PeQ8>TiWDY`Q;T+uvXjtdUfAT6|%5+>oB73r?;DuBnMcuoD$P z-3qM>CzuVZplXh;4P#4u1fl~J9i54fBYl>;f4N9@8O)g(PHib(gLk&MRs(V;^*ImdmF7v#}P^9;3kTtWJSTHpo%ssvu( z#`gxfn0+kf7=qd*S!46&eLjSZc#UluyBM)%;Q9i?5?9SrQpn2$4I*`XHv zCfQZN7^bBAP|6V<%MsiU0gluQkR?4FO3rHELC|UC+C#Q|wvsG|xubn)#tXM3!p>Nr zF&>iH<}xtlxHe-bA~X}^r>e{kxFH}*l}fbv+e1dEcm#nVzaR6H$6XVy}p zdd*(Pcf`>zDidX?%rTajOzU#86#l44i!zZ)vCgx^imP*seVqpc!wpXYK z$Ow19iaoP#4G$;cXXx5fn33dWzPP@lF1dpF}B|i6)M$Ibf`S&*7Z%w`K4PYs<5;-y&nrmO(>!m>o>4EeMd{Wf**0$2-_>c+4 zbLl(YL9Y^^@T1bVa2j>2Z%u@*wDFyIyNWiJT2omvQ`uP=Ght5^9??vNqn&{;il3%wpyC#bJ55#2 z=@LNN2fu{3ymX1FDHm>dDnfs~X3m`S4XILsrYjF=E5%pfMl2SX;C{8(F!h1m>ZWk0 z1Cn%hb;b=FV)`1DoQ8B^ij<)uFkKz#rEU`br`^=_Oid;uEivVyG7XLdo?ga!YDat2 zQUs3Yqn>_$FgoaFu(So|V#r`03Tnd5!H#H3XdCp%iU3*01r=P;vws(+D}QN6ir}P9 zBg_;;5TkQNtryCJXIT_iB}LFTZA94qfbrT_4|`Ktxhg@EPo~%VIvNgPV^P(B@mbD- z>U7nBXroKZNew6@R%BqEhCcO?Ujr|vCxR*VFtm^tdukzU`kN%qgp?;5imjbq?b~lU z97sV;5!~l1B&qBOETe)(yS*6xhoKX0H(74k*G5_vN8vA~5cG*CAvH%?A0Y;(Mqh}; z)cy)v*v$P1+a9oWhLGCAjChjAjo^YYserdSV*UMB1U+Uv?&5 z$kwbbvSqRAOS2+7;Vxw50By>trfV=6N{$DS>H~W|5Zoo?4?SKJTC1zZc^!?N)EXnA zrM3_)wMJxTNs&J^VU1|HEsmC3BU)h#(F$`!UD>eX0(R&!g+rvjKYtmGA|miF-Ja)T z?Ptzc*?!b7TRA^=S5X2+_G{;kGhokc3dm2QFFhsFk7S}B!Gm`lU}Ti|-w+x>q(xtf z;xa0%f%mDVb9WLLO(pngAWRc9E6K9*>qN9o{>Ou3k_S zz=x(lx4R=jbYQoRxKJGh5ds+vCNsg~p?YH2zmmwNY_FNIWD1KgdC`ER-%eu^0Z&Eg z3PgP6KJ&Q-@9cP}1N^NLxC@$_1~h{2+YDy}Ev>h*_&9ZQ3Y_CTVDXfoyFP6`lFx=* zmVuP01GY&)l!bFjlK@Yq;O)PR1UT=LC*1}jG)~0@Eh6;kO9^90gdT(DO>&_L9AuU- z79c~w;~LUy>BAS=%5MJ* zN0!Ujyu03=H)1|;&&?ZYsn^^p4^SI4lIwFHyu3iY!CF(IYsBl+3L7z)T2bTIZ5mNy z!zr|kf+;-9_OO*UTb@}~$8hN=d-wWOHI7h%{Qxsw{%*M)P-V-L*h`MM; zQZWH&O^itKrm#$;)*+sXTodCNk>k}3naHQn!ojj|X>+OPgi*PPnvr_*_A0eV*CRPmk8ON1E7~bGv>?)YhIu z5w*k41TZY86K(@@mZky8;NFg1Ik21Q^;Fjr2u zJ?Q#Q4RiAAlt(>e{JKf{<|p1o*8*kNO+*cCm3Es0ZKZfqx2P%+glIjPvEi+1e?xUw zBNwHmC~~or;x_Wo-)Mqi)fOi!xLCYAQ668Rx4~xIIEtebME2C)*a>{rM*k`?-35a2 zVfz?S$Oo|Ph^S$;@1M4!9UgemF7}NC94WW4d4Ji#E-qv@EUxJ3EwO}6=Z2A<kvYt8{vgC?e5qbrrY`8&@Wy*(T)d8xhlG5Kp9ti z#(YY*@Pqy-m+Wd2c6s&eE?sde%cO*{OD5a<#xFa6RBb_R`tCZrv6q_B;7vuY)rK<@ zV6r!Uf`*Q~ji9~LC8z*}slyR`-=@bAv_#vduYAb3B9CiuFSw~S778ZR)8D9Z zHMg`0WYnFzj{@`oC`ZDJ5pm|=j-TPAKbM+seiAOTNT2JMNNf--7{tKDEMwrS3dUNr z*@B*YRkk3Uh(zNpj%rK9t?f-}aa%|8T8yI0XI{nVOsBcHiOrcVZj5hg2rnq4+mvxA zI%?&L0e79KR}}_$m5vzkEQ%Nxz1x8RZXqcV73P_6oraM=JITT{Qn^sU>?(*rT>?&5 zL&;-0@JiBaG1NR4EwmLgR0j-T-4G+wolKQL5mp@SU{~03WH!V-!>jYv`%KZ0!Szyn z)V%fVzS2}M*^0ASjH5fPkC?)7Is;@dKU75;81KNpdPj8OpQxBzKin$J^Bdr1ed3o-GoMvb&gZ zagJLEWi*F?xdgRgZW-K4kWvF9eajL^$ssYeXIVxM4Jt4GvddysOs=wd;ZU5%3wlI- zf%rUL1G1f_G_=QHU1jrQ(#8Xz@l?7!kxUoCVwD>5q*BkR?kH2YH}%A^jC&v0l=Mjo zF0@?8zJ{fJ9|Sa&*G*XQ`f_k(i{UdZT~9sWXi5d9MrlntRXUaWAHm-C$jbVEp8DG< literal 0 HcmV?d00001 diff --git a/Qt3/qscintilla_de.ts b/Qt3/qscintilla_de.ts new file mode 100644 index 0000000..44c0fa1 --- /dev/null +++ b/Qt3/qscintilla_de.ts @@ -0,0 +1,3612 @@ + + + + + QsciCommand + + + Move left one character + Ein Zeichen nach links + + + + Move right one character + Ein Zeichen nach rechts + + + + Move up one line + Eine Zeile nach oben + + + + Move down one line + Eine Zeile nach unten + + + + Move left one word part + Ein Wortteil nach links + + + + Move right one word part + Ein Wortteil nach rechts + + + + Move left one word + Ein Wort nach links + + + + Move right one word + Ein Wort nach rechts + + + + Scroll view down one line + Eine Zeile nach unten rollen + + + + Scroll view up one line + Eine Zeile nach oben rollen + + + + Move up one page + Eine Seite hoch + + + + Move down one page + Eine Seite nach unten + + + + Indent one level + Eine Ebene einrücken + + + + Extend selection left one character + Auswahl um ein Zeichen nach links erweitern + + + + Extend selection right one character + Auswahl um ein Zeichen nach rechts erweitern + + + + Extend selection up one line + Auswahl um eine Zeile nach oben erweitern + + + + Extend selection down one line + Auswahl um eine Zeile nach unten erweitern + + + + Extend selection left one word part + Auswahl um einen Wortteil nach links erweitern + + + + Extend selection right one word part + Auswahl um einen Wortteil nach rechts erweitern + + + + Extend selection left one word + Auswahl um ein Wort nach links erweitern + + + + Extend selection right one word + Auswahl um ein Wort nach rechts erweitern + + + + Extend selection up one page + Auswahl um eine Seite nach oben erweitern + + + + Extend selection down one page + Auswahl um eine Seite nach unten erweitern + + + + Delete previous character + Zeichen links löschen + + + + Delete current character + Aktuelles Zeichen löschen + + + + Delete word to left + Wort links löschen + + + + Delete word to right + Wort rechts löschen + + + + Delete line to left + Zeile links löschen + + + + Delete line to right + Zeile rechts löschen + + + + Delete current line + Aktuelle Zeile löschen + + + + Cut current line + Aktuelle Zeile ausschneiden + + + + Cut selection + Auswahl ausschneiden + + + + Copy selection + Auswahl kopieren + + + + Paste + Einfügen + + + + Redo last command + Letzten Befehl wiederholen + + + + Cancel + Abbrechen + + + + Toggle insert/overtype + Einfügen/Überschreiben umschalten + + + + Scroll to start of document + Zum Dokumentenanfang rollen + + + + Scroll to end of document + Zum Dokumentenende rollen + + + + Scroll vertically to centre current line + Vertical rollen, um aktuelle Zeile zu zentrieren + + + + Move to end of previous word + Zum Ende des vorigen Wortes springen + + + + Extend selection to end of previous word + Auswahl bis zum Ende des vorigen Wortes erweitern + + + + Move to end of next word + Zum Ende des nächsten Wortes springen + + + + Extend selection to end of next word + Auswahl bis zum Ende des nächsten Wortes erweitern + + + + Move to start of document line + Zum Beginn der Dokumentenzeile springen + + + + Extend selection to start of document line + Auswahl zum Beginn der Dokumentenzeile erweitern + + + + Extend rectangular selection to start of document line + Rechteckige Auswahl zum Beginn der Dokumentenzeile erweitern + + + + Move to start of display line + Zum Beginn der Anzeigezeile springen + + + + Extend selection to start of display line + Auswahl zum Beginn der Anzeigezeile erweitern + + + + Move to start of display or document line + Zum Beginn der Dokumenten- oder Anzeigezeile springen + + + + Extend selection to start of display or document line + Rechteckige Auswahl zum Beginn der Dokumenten- oder Anzeigezeile erweitern + + + + Move to first visible character in document line + Zum ersten sichtbaren Zeichen der Dokumentzeile springen + + + + Extend selection to first visible character in document line + Auswahl zum ersten sichtbaren Zeichen der Dokumentzeile erweitern + + + + Extend rectangular selection to first visible character in document line + Rechteckige Auswahl zum ersten sichtbaren Zeichen der Dokumentzeile erweitern + + + + Move to first visible character of display in document line + Zum ersten angezeigten Zeichen der Dokumentzeile springen + + + + Extend selection to first visible character in display or document line + Auswahl zum ersten sichtbaren Zeichen der Dokument- oder Anzeigezeile erweitern + + + + Move to end of document line + Zum Ende der Dokumentzeile springen + + + + Extend selection to end of document line + Auswahl zum Ende der Dokumentenzeile erweitern + + + + Extend rectangular selection to end of document line + Rechteckige Auswahl zum Ende der Dokumentenzeile erweitern + + + + Move to end of display line + Zum Ende der Anzeigezeile springen + + + + Extend selection to end of display line + Auswahl zum Ende der Anzeigezeile erweitern + + + + Move to end of display or document line + Zum Ende der Dokumenten- oder Anzeigezeile springen + + + + Extend selection to end of display or document line + Rechteckige Auswahl zum Ende der Dokumenten- oder Anzeigezeile erweitern + + + + Move to start of document + Zum Dokumentenanfang springen + + + + Extend selection to start of document + Auswahl zum Dokumentenanfang erweitern + + + + Move to end of document + Zum Dokumentenende springen + + + + Extend selection to end of document + Auswahl zum Dokumentenende erweitern + + + + Stuttered move up one page + "Stotternd" um eine Seite nach oben + + + + Stuttered extend selection up one page + Auswahl "stotternd" um eine Seite nach oben erweitern + + + + Stuttered move down one page + "Stotternd" um eine Seite nach unten + + + + Stuttered extend selection down one page + Auswahl "stotternd" um eine Seite nach unten erweitern + + + + Delete previous character if not at start of line + Zeichen links löschen, wenn nicht am Zeilenanfang + + + + Delete right to end of next word + Rechts bis zum Ende des nächsten Wortes löschen + + + + Transpose current and previous lines + Aktuelle und vorherige Zeile tauschen + + + + Duplicate the current line + Aktuelle Zeile duplizieren + + + + Select all + Select document + Alle auswählen + + + + Move selected lines up one line + Ausgewählte Zeilen um eine Zeile nach oben + + + + Move selected lines down one line + Ausgewählte Zeilen um eine Zeile nach unten + + + + Convert selection to lower case + Auswahl in Kleinbuchstaben umwandeln + + + + Convert selection to upper case + Auswahl in Großbuchstaben umwandeln + + + + Insert newline + Neue Zeile einfügen + + + + De-indent one level + Eine Ebene ausrücken + + + + Undo last command + Letzten Befehl rückgängig machen + + + + Zoom in + Vergrößern + + + + Zoom out + Verkleinern + + + + Move up one paragraph + Einen Absatz nach oben + + + + Move down one paragraph + Einen Absatz nach unten + + + + Extend selection up one paragraph + Auswahl um einen Absatz nach oben erweitern + + + + Extend selection down one paragraph + Auswahl um einen Absatz nach unten erweitern + + + + Copy current line + Aktuelle Zeile kopieren + + + + Extend rectangular selection down one line + Rechteckige Auswahl um eine Zeile nach unten erweitern + + + + Extend rectangular selection up one line + Rechteckige Auswahl um eine Zeile nach oben erweitern + + + + Extend rectangular selection left one character + Rechteckige Auswahl um ein Zeichen nach links erweitern + + + + Extend rectangular selection right one character + Rechteckige Auswahl um ein Zeichen nach rechts erweitern + + + + Extend rectangular selection up one page + Rechteckige Auswahl um eine Seite nach oben erweitern + + + + Extend rectangular selection down one page + Rechteckige Auswahl um eine Seite nach unten erweitern + + + + Formfeed + Seitenumbruch + + + + Duplicate selection + Auswahl duplizieren + + + + QsciLexerAVS + + + Default + Standard + + + + Block comment + Blockkommentar + + + + Nested block comment + Verschachtelter Blockkommentar + + + + Line comment + Zeilenkommentar + + + + Number + Zahl + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Triple double-quoted string + Zeichenkette in dreifachen Anführungszeichen + + + + Keyword + Schlüsselwort + + + + Filter + Filter + + + + Plugin + Plugin + + + + Function + Funktion + + + + Clip property + Clip Eigenschaft + + + + User defined + Nutzer definiert + + + + QsciLexerBash + + + Default + Standard + + + + Error + Fehler + + + + Comment + Kommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Scalar + Skalar + + + + Parameter expansion + Parametererweiterung + + + + Backticks + Backticks + + + + Here document delimiter + Here Dokument-Begrenzer + + + + Single-quoted here document + Here Dokument in Hochkommata + + + + QsciLexerBatch + + + Default + Standard + + + + Comment + Kommentar + + + + Keyword + Schlüsselwort + + + + Label + Marke + + + + Variable + Variable + + + + Operator + Operator + + + + Hide command character + "Befehl verbergen" Zeichen + + + + External command + Externer Befehl + + + + QsciLexerCMake + + + Default + Standard + + + + Comment + Kommentar + + + + String + Zeichenkette + + + + Left quoted string + Links quotierte Zeichenkette + + + + Right quoted string + Rechts quotierte Zeichenkette + + + + Function + Funktion + + + + Variable + Variable + + + + Label + Marke + + + + User defined + Nutzer definiert + + + + WHILE block + WHILE Block + + + + FOREACH block + FOREACH Block + + + + IF block + IF Block + + + + MACRO block + MACRO Block + + + + Variable within a string + Variable in einer Zeichenkette + + + + Number + Zahl + + + + QsciLexerCPP + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + IDL UUID + IDL UUID + + + + Pre-processor block + Präprozessorblock + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Unclosed string + Unbeendete Zeichenkette + + + + Default + Standard + + + + Inactive default + Inaktiver Standard + + + + C comment + C Kommentar + + + + Inactive C comment + Inaktiver C Kommentar + + + + C++ comment + C++ Kommentar + + + + Inactive C++ comment + Inaktiver C++ Kommentar + + + + JavaDoc style C comment + JavaDoc C Kommentar + + + + Inactive JavaDoc style C comment + Inaktiver JavaDoc C Kommentar + + + + Inactive number + Inaktive Zahl + + + + Inactive keyword + Inaktives Schlüsselwort + + + + Inactive double-quoted string + Inaktive Zeichenkette in Anführungszeichen + + + + Inactive single-quoted string + Inaktive Zeichenkette in Hochkommata + + + + Inactive IDL UUID + Inaktive IDL UUID + + + + Inactive pre-processor block + Inaktiver Präprozessorblock + + + + Inactive operator + Inaktiver Operator + + + + Inactive identifier + Inaktiver Bezeichner + + + + Inactive unclosed string + Inaktive unbeendete Zeichenkette + + + + C# verbatim string + Uninterpretierte C# Zeichenkette + + + + Inactive C# verbatim string + Inaktive, Uninterpretierte C# Zeichenkette + + + + JavaScript regular expression + JavaScript Regulärer Ausdruck + + + + Inactive JavaScript regular expression + JavaScript Inaktiver Regulärer Ausdruck + + + + JavaDoc style C++ comment + JavaDoc C++ Kommentar + + + + Inactive JavaDoc style C++ comment + Inaktiver JavaDoc C++ Kommentar + + + + Inactive secondary keywords and identifiers + Inaktive sekundäre Schlusselwörter und Bezeichner + + + + JavaDoc keyword + JavaDoc Schlüsselwort + + + + Inactive JavaDoc keyword + Inaktives JavaDoc Schlüsselwort + + + + JavaDoc keyword error + JavaDoc Schlüsselwortfehler + + + + Inactive global classes and typedefs + Inaktive globale Klassen und Typdefinitionen + + + + C++ raw string + Rohe C++ Zeichenkette + + + + Inactive C++ raw string + Inaktive rohe C++ Zeichenkette + + + + Vala triple-quoted verbatim string + Vala Zeichenkette in dreifachen Hochkommata + + + + Inactive Vala triple-quoted verbatim string + Inaktive Vala Zeichenkette in dreifachen Hochkommata + + + + Pike hash-quoted string + Pike Zeichenkette in '#-Anführungszeichen' + + + + Inactive Pike hash-quoted string + Inaktive Pike Zeichenkette in '#-Anführungszeichen' + + + + Pre-processor C comment + C Präprozessorkommentar + + + + Inactive pre-processor C comment + Inaktiver C Präprozessorkommentar + + + + JavaDoc style pre-processor comment + JavaDoc Präprozessorkommentar + + + + Inactive JavaDoc style pre-processor comment + Inaktiver JavaDoc Präprozessorkommentar + + + + Secondary keywords and identifiers + Sekundäre Schlusselwörter und Bezeichner + + + + Inactive JavaDoc keyword error + Inaktiver JavaDoc Schlüsselwortfehler + + + + Global classes and typedefs + Globale Klassen und Typdefinitionen + + + + QsciLexerCSS + + + Default + Standard + + + + Tag + Tag + + + + Class selector + Klassenselektor + + + + Pseudo-class + Pseudoklasse + + + + Unknown pseudo-class + Unbekannte Pseudoklasse + + + + Operator + Operator + + + + CSS1 property + CSS1 Eigenschaft + + + + Unknown property + Unbekannte Eigenschaft + + + + Value + Wert + + + + ID selector + ID-Selektor + + + + Important + Wichtig + + + + @-rule + @-Regel + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + CSS2 property + CSS2 Eigenschaft + + + + Attribute + Attribut + + + + CSS3 property + CSS3 Eigenschaft + + + + Pseudo-element + Pseudoelement + + + + Extended CSS property + Erweiterte CSS Eigenschaft + + + + Extended pseudo-class + Erweiterte Pseudoklasse + + + + Extended pseudo-element + Erweitertes Pseudoelement + + + + Media rule + Medienregel + + + + Variable + Variable + + + + QsciLexerCSharp + + + Verbatim string + Uninterpretierte Zeichenkette + + + + QsciLexerCoffeeScript + + + Default + Standard + + + + C-style comment + C Kommentar + + + + C++-style comment + C++ Kommentar + + + + JavaDoc C-style comment + JavaDoc C Kommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + IDL UUID + IDL UUID + + + + Pre-processor block + Präprozessorblock + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Unclosed string + Unbeendete Zeichenkette + + + + C# verbatim string + Uninterpretierte C# Zeichenkette + + + + Regular expression + Regulärer Ausdruck + + + + JavaDoc C++-style comment + JavaDoc C++ Kommentar + + + + Secondary keywords and identifiers + Sekundäre Schlusselwörter und Bezeichner + + + + JavaDoc keyword + JavaDoc Schlüsselwort + + + + JavaDoc keyword error + JavaDoc Schlüsselwortfehler + + + + Global classes + Globale Klassen + + + + Block comment + Blockkommentar + + + + Block regular expression + Regulärer Ausdrucksblock + + + + Block regular expression comment + Regulärer Ausdrucksblockkommentar + + + + QsciLexerD + + + Default + Standard + + + + Block comment + Blockkommentar + + + + Line comment + Zeilenkommentar + + + + DDoc style block comment + DDoc Blockkommentar + + + + Nesting comment + schachtelbarer Kommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Secondary keyword + Sekundäres Schlüsselwort + + + + Documentation keyword + Dokumentationsschlüsselwort + + + + Type definition + Typdefinition + + + + String + Zeichenkette + + + + Unclosed string + Unbeendete Zeichenkette + + + + Character + Zeichen + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + DDoc style line comment + DDoc Zeilenkommentar + + + + DDoc keyword + DDoc Schlüsselwort + + + + DDoc keyword error + DDoc Schlüsselwortfehler + + + + Backquoted string + Zeichenkette in Rückwärtsstrichen + + + + Raw string + Rohe Zeichenkette + + + + User defined 1 + Nutzer definiert 1 + + + + User defined 2 + Nutzer definiert 2 + + + + User defined 3 + Nutzer definiert 3 + + + + QsciLexerDiff + + + Default + Standard + + + + Comment + Kommentar + + + + Command + Befehl + + + + Header + Kopfzeilen + + + + Position + Position + + + + Removed line + Entfernte Zeile + + + + Added line + Hinzugefügte Zeile + + + + Changed line + Geänderte Zeile + + + + QsciLexerFortran77 + + + Default + Standard + + + + Comment + Kommentar + + + + Number + Zahl + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Unclosed string + Unbeendete Zeichenkette + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Keyword + Schlüsselwort + + + + Intrinsic function + Intrinsic-Funktion + + + + Extended function + Erweiterte Funktion + + + + Pre-processor block + Präprozessorblock + + + + Dotted operator + Dotted Operator + + + + Label + Marke + + + + Continuation + Fortsetzung + + + + QsciLexerHTML + + + HTML default + HTML Standard + + + + Tag + Tag + + + + Unknown tag + Unbekanntes Tag + + + + Attribute + Attribut + + + + Unknown attribute + Unbekanntes Attribut + + + + HTML number + HTML Zahl + + + + HTML double-quoted string + HTML Zeichenkette in Anführungszeichen + + + + HTML single-quoted string + HTML Zeichenkette in Hochkommata + + + + Other text in a tag + Anderer Text in einem Tag + + + + HTML comment + HTML Kommentar + + + + Entity + Entität + + + + End of a tag + Tagende + + + + Start of an XML fragment + Beginn eines XML Fragmentes + + + + End of an XML fragment + Ende eines XML Fragmentes + + + + Script tag + Skript Tag + + + + Start of an ASP fragment with @ + Beginn eines ASP Fragmentes mit @ + + + + Start of an ASP fragment + Beginn eines ASP Fragmentes + + + + CDATA + CDATA + + + + Start of a PHP fragment + Beginn eines PHP Fragmentes + + + + Unquoted HTML value + HTML Wert ohne Anführungszeichen + + + + ASP X-Code comment + ASP X-Code Kommentar + + + + SGML default + SGML Standard + + + + SGML command + SGML Befehl + + + + First parameter of an SGML command + Erster Parameter eines SGML Befehls + + + + SGML double-quoted string + SGML Zeichenkette in Anführungszeichen + + + + SGML single-quoted string + SGML Zeichenkette in Hochkommata + + + + SGML error + SGML Fehler + + + + SGML special entity + SGML Spezielle Entität + + + + SGML comment + SGML Kommentar + + + + First parameter comment of an SGML command + Kommentar des ersten Parameters eines SGML Befehls + + + + SGML block default + SGML Standardblock + + + + Start of a JavaScript fragment + Beginn eines JavaScript Fragmentes + + + + JavaScript default + JavaScript Standard + + + + JavaScript comment + JavaScript Kommentar + + + + JavaScript line comment + JavaScript Zeilenkommentar + + + + JavaDoc style JavaScript comment + JavaDoc JavaScript Kommentar + + + + JavaScript number + JavaScript Zahl + + + + JavaScript word + JavaScript Wort + + + + JavaScript keyword + JavaScript Schlüsselwort + + + + JavaScript double-quoted string + JavaScript Zeichenkette in Anführungszeichen + + + + JavaScript single-quoted string + JavaScript Zeichenkette in Hochkommata + + + + JavaScript symbol + JavaScript Symbol + + + + JavaScript unclosed string + JavaScript Unbeendete Zeichenkette + + + + JavaScript regular expression + JavaScript Regulärer Ausdruck + + + + Start of an ASP JavaScript fragment + Beginn eines ASP JavaScript Fragmentes + + + + ASP JavaScript default + ASP JavaScript Standard + + + + ASP JavaScript comment + ASP JavaScript Kommentar + + + + ASP JavaScript line comment + ASP JavaScript Zeilenkommentar + + + + JavaDoc style ASP JavaScript comment + JavaDoc ASP JavaScript Kommentar + + + + ASP JavaScript number + ASP JavaScript Zahl + + + + ASP JavaScript word + ASP JavaScript Wort + + + + ASP JavaScript keyword + ASP JavaScript Schlüsselwort + + + + ASP JavaScript double-quoted string + ASP JavaScript Zeichenkette in Anführungszeichen + + + + ASP JavaScript single-quoted string + ASP JavaScript Zeichenkette in Hochkommata + + + + ASP JavaScript symbol + ASP JavaScript Symbol + + + + ASP JavaScript unclosed string + ASP JavaScript Unbeendete Zeichenkette + + + + ASP JavaScript regular expression + ASP JavaScript Regulärer Ausdruck + + + + Start of a VBScript fragment + Beginn eines VBScript Fragmentes + + + + VBScript default + VBScript Standard + + + + VBScript comment + VBScript Kommentar + + + + VBScript number + VBScript Zahl + + + + VBScript keyword + VBScript Schlüsselwort + + + + VBScript string + VBScript Zeichenkette + + + + VBScript identifier + VBScript Bezeichner + + + + VBScript unclosed string + VBScript Unbeendete Zeichenkette + + + + Start of an ASP VBScript fragment + Beginn eines ASP VBScript Fragmentes + + + + ASP VBScript default + ASP VBScript Standard + + + + ASP VBScript comment + ASP VBScript Kommentar + + + + ASP VBScript number + ASP VBScript Zahl + + + + ASP VBScript keyword + ASP VBScript Schlüsselwort + + + + ASP VBScript string + ASP VBScript Zeichenkette + + + + ASP VBScript identifier + ASP VBScript Bezeichner + + + + ASP VBScript unclosed string + ASP VBScript Unbeendete Zeichenkette + + + + Start of a Python fragment + Beginn eines Python Fragmentes + + + + Python default + Python Standard + + + + Python comment + Python Kommentar + + + + Python number + Python Zahl + + + + Python double-quoted string + Python Zeichenkette in Anführungszeichen + + + + Python single-quoted string + Python Zeichenkette in Hochkommata + + + + Python keyword + Python Schlüsselwort + + + + Python triple double-quoted string + Python Zeichenkette in dreifachen Anführungszeichen + + + + Python triple single-quoted string + Python Zeichenkette in dreifachen Hochkommata + + + + Python class name + Python Klassenname + + + + Python function or method name + Python Funktions- oder Methodenname + + + + Python operator + Python Operator + + + + Python identifier + Python Bezeichner + + + + Start of an ASP Python fragment + Beginn eines ASP Python Fragmentes + + + + ASP Python default + ASP Python Standard + + + + ASP Python comment + ASP Python Kommentar + + + + ASP Python number + ASP Python Zahl + + + + ASP Python double-quoted string + ASP Python Zeichenkette in Anführungszeichen + + + + ASP Python single-quoted string + ASP Python Zeichenkette in Hochkommata + + + + ASP Python keyword + ASP Python Schlüsselwort + + + + ASP Python triple double-quoted string + ASP Python Zeichenkette in dreifachen Anführungszeichen + + + + ASP Python triple single-quoted string + ASP Python Zeichenkette in dreifachen Hochkommata + + + + ASP Python class name + ASP Python Klassenname + + + + ASP Python function or method name + ASP Python Funktions- oder Methodenname + + + + ASP Python operator + ASP Python Operator + + + + ASP Python identifier + ASP Python Bezeichner + + + + PHP default + PHP Standard + + + + PHP double-quoted string + PHP Zeichenkette in Anführungszeichen + + + + PHP single-quoted string + PHP Zeichenkette in Hochkommata + + + + PHP keyword + PHP Schlüsselwort + + + + PHP number + PHP Zahl + + + + PHP comment + PHP Kommentar + + + + PHP line comment + PHP Zeilenkommentar + + + + PHP double-quoted variable + PHP Variable in Anführungszeichen + + + + PHP operator + PHP Operator + + + + PHP variable + PHP Variable + + + + QsciLexerIDL + + + UUID + UUID + + + + QsciLexerJavaScript + + + Regular expression + Regulärer Ausdruck + + + + QsciLexerLua + + + Default + Standard + + + + Comment + Kommentar + + + + Line comment + Zeilenkommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + String + Zeichenkette + + + + Character + Zeichen + + + + Literal string + Uninterpretierte Zeichenkette + + + + Preprocessor + Präprozessor + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Unclosed string + Unbeendete Zeichenkette + + + + Basic functions + Basisfunktionen + + + + String, table and maths functions + Zeichenketten-, Tabelle- und mathematische Funktionen + + + + Coroutines, i/o and system facilities + Koroutinen, I/O- und Systemfunktionen + + + + User defined 1 + Nutzer definiert 1 + + + + User defined 2 + Nutzer definiert 2 + + + + User defined 3 + Nutzer definiert 3 + + + + User defined 4 + Nutzer definiert 4 + + + + Label + Marke + + + + QsciLexerMakefile + + + Default + Standard + + + + Comment + Kommentar + + + + Preprocessor + Präprozessor + + + + Variable + Variable + + + + Operator + Operator + + + + Target + Ziel + + + + Error + Fehler + + + + QsciLexerMatlab + + + Default + Standard + + + + Comment + Kommentar + + + + Command + Befehl + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + QsciLexerPO + + + Default + Standard + + + + Comment + Kommentar + + + + Message identifier + Meldungsbezeichner + + + + Message identifier text + Meldungsbezeichnertext + + + + Message string + Meldungszeichenkette + + + + Message string text + Meldungszeichenkettentext + + + + Message context + Meldungskontext + + + + Message context text + Meldungskontexttext + + + + Fuzzy flag + Unschrfmarkierung + + + + Programmer comment + Programmiererkommentar + + + + Reference + Referenz + + + + Flags + Markierung + + + + Message identifier text end-of-line + Meldungsbezeichnertext Zeilenende + + + + Message string text end-of-line + Meldungszeichenkettentext Zeilenende + + + + Message context text end-of-line + Meldungskontexttext Zeilenende + + + + QsciLexerPOV + + + Default + Standard + + + + Comment + Kommentar + + + + Comment line + Kommentarzeile + + + + Number + Zahl + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + String + Zeichenkette + + + + Unclosed string + Unbeendete Zeichenkette + + + + Directive + Direktive + + + + Bad directive + Ungültige Direktive + + + + Objects, CSG and appearance + Objekte, CSG und Erscheinung + + + + Types, modifiers and items + Typen, Modifizierer und Items + + + + Predefined identifiers + Vordefinierter Bezeichner + + + + Predefined functions + Vordefinierte Funktion + + + + User defined 1 + Nutzer definiert 1 + + + + User defined 2 + Nutzer definiert 2 + + + + User defined 3 + Nutzer definiert 3 + + + + QsciLexerPascal + + + Default + Standard + + + + Line comment + Zeilenkommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + '{ ... }' style comment + '{ ... }' Kommentar + + + + '(* ... *)' style comment + '(* ... *)' Kommentar + + + + '{$ ... }' style pre-processor block + '{$ ... }' Präprozessorblock + + + + '(*$ ... *)' style pre-processor block + '(*$ ... *)' Präprozessorblock + + + + Hexadecimal number + Hexadezimale Zahl + + + + Unclosed string + Unbeendete Zeichenkette + + + + Character + Zeichen + + + + Inline asm + Inline Assembler + + + + QsciLexerPerl + + + Default + Standard + + + + Error + Fehler + + + + Comment + Kommentar + + + + POD + POD + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Scalar + Skalar + + + + Array + Feld + + + + Hash + Hash + + + + Symbol table + Symboltabelle + + + + Regular expression + Regulärer Ausdruck + + + + Substitution + Ersetzung + + + + Backticks + Backticks + + + + Data section + Datensektion + + + + Here document delimiter + Here Dokument-Begrenzer + + + + Single-quoted here document + Here Dokument in Hochkommata + + + + Double-quoted here document + Here Dokument in Anführungszeichen + + + + Backtick here document + Here Dokument in Backticks + + + + Quoted string (q) + Zeichenkette (q) + + + + Quoted string (qq) + Zeichenkette (qq) + + + + Quoted string (qx) + Zeichenkette (qx) + + + + Quoted string (qr) + Zeichenkette (qr) + + + + Quoted string (qw) + Zeichenkette (qw) + + + + POD verbatim + POD wörtlich + + + + Subroutine prototype + Subroutinen Prototyp + + + + Format identifier + Formatidentifikator + + + + Format body + Formatzweig + + + + Double-quoted string (interpolated variable) + Zeichenkette in Anführungszeichen (interpolierte Variable) + + + + Translation + Übersetzung + + + + Regular expression (interpolated variable) + Regulärer Ausdruck (interpolierte Variable) + + + + Substitution (interpolated variable) + Ersetzung (interpolierte Variable) + + + + Backticks (interpolated variable) + Backticks (interpolierte Variable) + + + + Double-quoted here document (interpolated variable) + Here Dokument in Anführungszeichen (interpolierte Variable) + + + + Backtick here document (interpolated variable) + Here Dokument in Backticks (interpolierte Variable) + + + + Quoted string (qq, interpolated variable) + Zeichenkette (qq, interpolierte Variable) + + + + Quoted string (qx, interpolated variable) + Zeichenkette (qx, interpolierte Variable) + + + + Quoted string (qr, interpolated variable) + Zeichenkette (qr, interpolierte Variable) + + + + QsciLexerPostScript + + + Default + Standard + + + + Comment + Kommentar + + + + DSC comment + DSC Kommentar + + + + DSC comment value + DSC Kommentarwert + + + + Number + Zahl + + + + Name + Name + + + + Keyword + Schlüsselwort + + + + Literal + Literal + + + + Immediately evaluated literal + Direkt ausgeführtes Literal + + + + Array parenthesis + Feldklammern + + + + Dictionary parenthesis + Dictionary-Klammern + + + + Procedure parenthesis + Prozedurklammern + + + + Text + Text + + + + Hexadecimal string + Hexadezimale Zeichenkette + + + + Base85 string + Base85 Zeichenkette + + + + Bad string character + Ungültiges Zeichen für Zeichenkette + + + + QsciLexerProperties + + + Default + Standard + + + + Comment + Kommentar + + + + Section + Abschnitt + + + + Assignment + Zuweisung + + + + Default value + Standardwert + + + + Key + Schlüssel + + + + QsciLexerPython + + + Comment + Kommentar + + + + Number + Zahl + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Keyword + Schlüsselwort + + + + Triple single-quoted string + Zeichenkette in dreifachen Hochkommata + + + + Triple double-quoted string + Zeichenkette in dreifachen Anführungszeichen + + + + Class name + Klassenname + + + + Function or method name + Funktions- oder Methodenname + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Comment block + Kommentarblock + + + + Unclosed string + Unbeendete Zeichenkette + + + + Default + Standard + + + + Highlighted identifier + Hervorgehobener Bezeichner + + + + Decorator + Dekorator + + + + QsciLexerRuby + + + Default + Standard + + + + Comment + Kommentar + + + + Number + Zahl + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Keyword + Schlüsselwort + + + + Class name + Klassenname + + + + Function or method name + Funktions- oder Methodenname + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Error + Fehler + + + + POD + POD + + + + Regular expression + Regulärer Ausdruck + + + + Global + Global + + + + Symbol + Symbol + + + + Module name + Modulname + + + + Instance variable + Instanzvariable + + + + Class variable + Klassenvariable + + + + Backticks + Backticks + + + + Data section + Datensektion + + + + Here document delimiter + Here Dokument-Begrenzer + + + + Here document + Here Dokument + + + + %q string + %q Zeichenkette + + + + %Q string + %Q Zeichenkette + + + + %x string + %x Zeichenkette + + + + %r string + %r Zeichenkette + + + + %w string + %w Zeichenkette + + + + Demoted keyword + zurückgestuftes Schlüsselwort + + + + stdin + Stdin + + + + stdout + Stdout + + + + stderr + Stderr + + + + QsciLexerSQL + + + Default + Standard + + + + Comment + Kommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Comment line + Kommentarzeile + + + + JavaDoc style comment + JavaDoc Kommentar + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + SQL*Plus keyword + SQL*Plus Schlüsselwort + + + + SQL*Plus prompt + SQL*Plus Eingabe + + + + SQL*Plus comment + SQL*Plus Kommentar + + + + # comment line + # Kommentarzeile + + + + JavaDoc keyword + JavaDoc Schlüsselwort + + + + JavaDoc keyword error + JavaDoc Schlüsselwortfehler + + + + User defined 1 + Nutzer definiert 1 + + + + User defined 2 + Nutzer definiert 2 + + + + User defined 3 + Nutzer definiert 3 + + + + User defined 4 + Nutzer definiert 4 + + + + Quoted identifier + Bezeichner in Anführungszeichen + + + + QsciLexerSpice + + + Default + Standard + + + + Identifier + Bezeichner + + + + Command + Befehl + + + + Function + Funktion + + + + Parameter + Parameter + + + + Number + Zahl + + + + Delimiter + Delimiter + + + + Value + Wert + + + + Comment + Kommentar + + + + QsciLexerTCL + + + Default + Standard + + + + Comment + Kommentar + + + + Comment line + Kommentarzeile + + + + Number + Zahl + + + + Quoted keyword + angeführtes Schlüsselwort + + + + Quoted string + Zeichenkette + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Substitution + Ersetzung + + + + Brace substitution + Klammerersetzung + + + + Modifier + Modifizierer + + + + Expand keyword + Erweiterungsschlüsselwort + + + + TCL keyword + TCL Schlüsselwort + + + + Tk keyword + Tk Schlüsselwort + + + + iTCL keyword + iTCL Schlüsselwort + + + + Tk command + Tk Befehl + + + + User defined 1 + Nutzer definiert 1 + + + + User defined 2 + Nutzer definiert 2 + + + + User defined 3 + Nutzer definiert 3 + + + + User defined 4 + Nutzer definiert 4 + + + + Comment box + Kommentarbox + + + + Comment block + Kommentarblock + + + + QsciLexerTeX + + + Default + Standard + + + + Special + Spezial + + + + Group + Gruppe + + + + Symbol + Symbol + + + + Command + Befehl + + + + Text + Text + + + + QsciLexerVHDL + + + Default + Standard + + + + Comment + Kommentar + + + + Comment line + Kommentarzeile + + + + Number + Zahl + + + + String + Zeichenkette + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Unclosed string + Unbeendete Zeichenkette + + + + Keyword + Schlüsselwort + + + + Standard operator + Standardoperator + + + + Attribute + Attribut + + + + Standard function + Standardfunktion + + + + Standard package + Standardpaket + + + + Standard type + Standardtyp + + + + User defined + Nutzer definiert + + + + QsciLexerVerilog + + + Default + Standard + + + + Comment + Kommentar + + + + Line comment + Zeilenkommentar + + + + Bang comment + Bang Kommentar + + + + Number + Zahl + + + + Primary keywords and identifiers + Primäre Schlusselwörter und Bezeichner + + + + String + Zeichenkette + + + + Secondary keywords and identifiers + Sekundäre Schlusselwörter und Bezeichner + + + + System task + Systemtask + + + + Preprocessor block + Präprozessorblock + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Unclosed string + Unbeendete Zeichenkette + + + + User defined tasks and identifiers + Nutzerdefinierte Tasks und Bezeichner + + + + QsciLexerYAML + + + Default + Standard + + + + Comment + Kommentar + + + + Identifier + Bezeichner + + + + Keyword + Schlüsselwort + + + + Number + Zahl + + + + Reference + Referenz + + + + Document delimiter + Dokumentbegrenzer + + + + Text block marker + Textblock Markierung + + + + Syntax error marker + Syntaxfehler Markierung + + + + Operator + Operator + + + + QsciScintilla + + + &Undo + &Rückgängig + + + + &Redo + Wieder&herstellen + + + + Cu&t + &Ausschneiden + + + + &Copy + &Kopieren + + + + &Paste + Ein&fügen + + + + Delete + Löschen + + + + Select All + Alle auswählen + + + diff --git a/Qt3/qscintilla_es.qm b/Qt3/qscintilla_es.qm new file mode 100644 index 0000000000000000000000000000000000000000..e79c2db5cfa2d8c843c15c2dd7c0940cc5605c46 GIT binary patch literal 73517 zcmd6Q34ByV@^DX*$uW~mI3ge*j1UMn2vHGP4N16^Ba(oKE;yN)gdvleFf)M!kM&-U z^;lPTbr)~Ez!Sk;S@FLA-r{|N;)NH2iuYIbYF@vq-<$V_u)lBpEtO2BtE#K3tE#K3 zyC?rA)aRM6S6}|zf&Cvm@w(0LRx`HWr;Hu*G-GcsWNdyVW6z#X@Y6pswrC||jXepj zX=HgfZ(**&HkSA46^uRe6m!own6WqeF!!xn7`vs0xo_JIzyC_`=Si$+W;tVZQC4wg zim`uR%7!2R7-Ki(un{+PGFQPr*vJd+1bmE*d<@~C>@Z&eV;5h^s#|Yo>=6%}e$MHP zop(B$am9IzJvM;Ny0Ve6$=?yY^LBzyZzuTC8*FyPhm76x4V&}#hZy_mDmJgB+kaQ=;qjh)O+ICCRoK{vr&6>PBw_`NpD;+r-wcJ8Mv`N1cQT{D`k zTKgMgpKV|#T>^Zb+@GC%L>^G`6klk?4%Z&Xsm)-dC4~+fk ze0F=~sf=}WXZOAZ_%1q{J=u3RV_!VZo*nxgW1|MLXWu@XvHM1|kK*4lc3T?Wvrq1HN0#*oyzU{0CPsc65nr>_h7qtLf{S(EUe{(|4{( z7w%xJ_CnVm7Hwgy&%a#LS~?kfvC1`XGmMx2ELZsZs~J1wY1hh|Q;Z!thhT6s!PW(? zlg@aRv4c{slfDIdgP(K#=~4LJl@GeE{H~I*d&jx{H3aaMKjd0dwwtlbTU@vN2jCAU zyKapRV(itUTrHo@LqzEPYAXp2zK@)xON@E_4NcFnM3gZ-X!?Or3Bx*kKiXu2!1(%;4hmb=yJc{ zdZ{7-dO61R^3R}ePvpB^y#V^Pr^xlzPh%J>IKlP7Mez9_7q~vS8sW9B4}L>f?Aqq; z!Pt96u5EknVQj|NuI*Lx83@?5{qF4mH|7+reVnn=T5=A2?h)p456KyPz;~c8*XPVx zx`(kbkLQGbxsS1@d^t@IgFek(kh8Sgc*cs(%Q<~D;JNpPoGTiiXYALOoa>jo&e#>f zoO?lUT?NnPJXHzvv+nVn7d;yp`z@UF%3<*Rl23D9X#;w`Yja*bd_P3@5nv0_)^AV2jxyaEX7#<=eY~Mg8m)4 zCimETE@SNcn{r!!t7WYJ6S=3q1aw@Lxo7t*XY9}8bI-m5@cw;K?zsIRT<&Eby~kLnf9{Q6?g#qtM()~^VE#;N&b{xSYe0Wna_@f%@Wda? zeK@|6vCsFBuWT-_6*NIeC?D0T$6Vn&X@2-c@MvGD)i%myvOf? z@jbsS@5M=vFgEeJyqAYTzc#ezy;@Ys*y@FOukQdk+_*OH?Kgq1-lOwATzE2L+gIf6 zSOwp2|99T*irtJY&vm=sF9SPtio0O5kFl111aE00_~H(NpPuV3`4;+d={;`WiVnuQ zo#pO*$X75f=M((lFn8}@im@}x-2R4-7(3}MclqSU!0sOA9&r(TzTp}7s3jo3(=T&Z zy*Y)kWIe&#ZzQ<+0)k)vhv1$DfYtE5^#t$8C%E|wg5T^ zezS_;kG%laGIqyP1iyKk;EyZaQ$B?84)k?b7hJ|zBF}yN-*z+By3KvUM3B>@c?6G` zMX>f2f(!Q$TsEHI^7#Zi|3Prw!vxn~L2%RK1Rwc~;IsV+zF9}`z269a@-@LP+X;TV zf#CN(g1`JKL6>U)!TcWXmRvVuBd&5M`s@OqdN0A2P6@hl&T=O={|5bdz`de+fAGUU zx=)&PIb-`zcVBtN8H^oy0Ku2ub>DI!jMrUJ_qu~~z;1d8{^3!AGp``nd?&%Su>?C> z2(E1+xIW!((`oek!;cXBzrPWDZ#lt_?cd+};XP|%Iz2Ls?ze9K8)L6eaqqln3u71F>E3hZS&X?K&fot>m_I|W&97Mge_%I8 z<`0jRfq#7`f5c;t0$rAW)AC>1JQ4bHbpFeqfL+~qNdA^TgZ!#K&i~+J=+D*l z1qD8s|Lay16s`pMEV-$m^k&e*(nSTOUxEIXepS%>)3 z3r2Jv$JpX+1(iSl3+(&z1qZJNc{l%BaLCDk=c}U&CSsiM;~NE4r7(^|ekiC}cMrsi z=NBw#-v)NKZ$W4T=>78%fDy)?TLkcF#$ML@@WDqQhm)!bK5hYikK0!8%`1R+YGEO}@*~EsTU=PQ1ipXHlER@? zk26+LQ8;uv^!u`}3rCc~_x}1q;mBXWUp~{Ta6O@@tDh&&L*?_DXN?t3MQ;xw@LMZ$B&i z^M@es*0lt09YFA*&kN6wHZay>Y2n4EZfC4IKycb9g296c-gQgi<=5mvT(Q0I^7R`S zJ7sX;P2<6D{r8%}wR3J{Z2XIbcdZ@|arp^_n|_9VZK^GN=w;x${-DA)Mjgu7+(!!E zKN0%(`rU=wZwEXxmk?}jE&OyB@PC85@Qd@{@26f=`27IDbI#+1Ki+g1W4U(}6`lGj z!1+Z($5p_**h%pH_lhR$f&TV>zv##b*nW3W)yeb0|4lENa`u^wH5^`4d(3KxPfCm8 zmt6~gPZnKLl>+_wz3A$z0sk>C7u|9VjN`enqT7D>0pjCVi|+KThdBSxqPrKv@BiFb zwEn){Fn*z;4KDcJ#EAqaUqEoiIRqDX5^TDW;L7U>-hB=vS`y? z;D6t~u;}T9iM|GJ!&fG-!4!7u45q{FY^?? za4=(it35rx-U4x4si)89m5lvuyJz4Z;O`B)JcD}g$C&pgPsJzj`Sf+3;a>p%bBB9I ztgmP6@Fxg9zM0^*6Fnp6!uMXA<{9@X=+nbXJ=2c68tm=eo|(&!VC;xZp8AhB0-w(i z+;*#H(eEJV3Fmtj_XfQ4+dZL)d0@x#2;TKE!JU%{{xsYZnp_6!tx|$jO9@u5CfI&B z!4;hZZ(T_6&UCxG2h#8NbP&96CBY}IBKTS^!MD=w-|0oae>j!k=Lv#4Qv`S2Pw?k8 z1b_cUg08$ z^_-mdXZZdu&*gjI`wcOC@%-nWTfZ0rab6G4U9Z9XJM$IK{eMY; zpZJO3cz62y_uNCjZ%Tjf z;R^cw$@KSM`-Ogg>wbdod`a-b7YXig5!|_+;O?CSe_BHDmxCqfVv`Bxee8K@)khGY zdOV*lY5;pS#;_hd?hcEs& zV`q)=PI&g$iedV8C9$+cTxy*b$%T(BMD#5Qkee~6QAd(<16vj*bfwcc@lrhN2#b=yT?-?k8}N&o(BW%04I&IY@1dGWE|zXSP)isGi{zXiYP zD~`J#VeAh>2|n{Z!H)+P-+Tbr=kwMV-#Mxb)?uZ^50^d;cEeTtRKFJR0}m8G^~(?# z=WitF%0I36#VJ6y*`GJ<3j`c?jNqeB6a3&Ug1`MHL09hDlIz@Of!}<$WZj1;u)Es`F8!6@ zjxS3#wZrG%uPS-u#O*NteM(**1K+=XMajFp%AjA{OFsJZ^Nh{8qGbDO(8G<-m+b5W zc*gC%oL7zo|F_JSUwsDTp(goCf-ugWg}zenXRw}~?yLCk%ixC&@EulsHhh1e?+CLAKU=r_?qwb;VT*Y;CSDE)&L*hjrBcoQyIh$*ZZD~BP4I9(EgtXl(r6mcHeI;ZLit_e!hj^)E5Z;eoX0Eua-kz=8Dqu z#+O09ZBywb!&AWLz|xJesgS4pwe%qzud8O2KDGt^UOuz*o$W&)o}5{_b^T+Ey)~iq z$J;IkdwOq#xr)kjA#u@-)vy4Iu^*u5s+*69znClcXU${&ry#J%$C&>F_(wZ2^7IiBMpM(JVB@M!#Vp4}fEY5|| zvo<_B5(}Yd zfL1vr1ky|bNk8ac9R5YEO|h-;6U=k?w@qRQt!M;(M%HA#MSZ3bN!tj{@>HKPFxp@JaW_zlwiCSVoWQ>Gay4tBLUtvDoa>>_?I zz#4J>@J{&Cosh;9H7OhmA-l0~N6No4o(KuGs#?dh26viM6s6La%&LsUELB-QcQO;z z2#|MKR%e-@xjL7FeQO87MWHLC$^swB@%F53Z;M8P0kAUGW^;r9t=bTX>{nj}d1|R* z#!L-Oj7?=7(oBm<2AJF&j)%eG!)G+-QL|!_-bjH2d~Q&F-Pocw1=uo`F&{CtBZVrI zfLI_9Yi^GQ5{fkZq4>%e8F@1w+Sa9fx4{%|PR|jVKeAS4&3Rj(S?v8!>oU&$X=PLU zG$+nstmPO)!Bt3OU~OSf{vUToJXgnAc7==<1`XDIIYZDFC)0ooteLS@PhIQ<8RIw% zVmn066!9q0PNij!6ayTJ2isdM!_Awzq*vtmkWVxbMu)uurVqN4M(7vDao8U@K5^Fb z8JT+C6iFmg{uPmAq%o=*Qhy`{h9i?S&hJ8Lh~fZptj>CTNTwe1=pb|dy4EnN`=K^1 z7+7Oy24Rsi4v|M?xV8cBwbi|WZYH9izWM;vYsid57g_6Q>bgQIm0oEi%+d^LXNDelaRU0hi zniGMxrNT&csUv|AYepleW{#BCJf1bOYSZJM=$KUu=k!sqosio&#+*gdkl)!nMy@c) zfF1*VqI#aHmLc%D9eyoDDh2VN0^;>($gxO8F3>po;$WrRprm#KloK5DX+88}{svm` zXFBfA782QvyO>!kVOkG*lR%iFXwQCBM=_9;69nJ53UpSTi>WY(RTafWl5NpIr}^st zoc|58Fwx|chIM#4!A57|2^;a)yuIp}HIqhrpptkxQWScFWqZX`c44m^J}GYA$gH`3 zbO<;$51-Id*~<{=-G(7!#9gm(A}ah_XNg4C*ZD-$bBZ|%Q3laU&OEDVYUVBz$l09N zOp7LRdFoJ5XhLky%ITt6X|-HRn;ly-^`b8Ade^NNCp+zQ#xlEOgM=MQg7y#F||zzaa{KyGC))QdqMsXH+%* zLs6cLO7DDeMj^SfC8~~pMG1ob2Ek@Z3W$c=+N&vfTb`f*J(U;TqQ$={SEkEYXI$A? z#&TY{DLBwfR@Teda%q=80m*C}9NE3lB7mp3Ig!F?@kDD=I4s`08N_CS3q>5X7c1Dc z<(Rt7w6if=C1Jz~p=>N07tzFZ3d&3$f!oY0h9UbSfm6%4 zZ{J5!0=qc~BW-)bAg0|@N85A^7HGP>H)9}XL@xyE0a&Wx2K6inb6W}I@i(pG$0{l* zA0T}bhs>E3I#3c6Irnf#S_md>7^P+VoKd6i8Yp5lldGSlVYI7qF8w4{l!a(0Qw$yL zN;W_V>}69bOxUy)6KnmBSaQ~(BiSC6l&oUhx-2Dx)6SZW{(327j9Hy1jXpnMp2;9n zpoqgdd!e<5V)2X8@8ax)UIv*n5-GuWWXd~q-Qs(kJZ4r|hK%F*_birmnYN;}X;>=e z%63co@JzjgN+{X1*xH3|Fda1GYE_g@w9X?OAhWA1|1#MDuPO@wx*!KV zqE)ztlIg;yI_rgxv2XjS`)0lH@vu5@Ubv=K3Q^s4fn-Wt;WdiQgRheus9feJ@O)T2 z-zvoeLHM^7km2H5DfsC=FC2n`c);opQU$(nYeGD@Vz-k)*Xx6ccr>ai=9H^TgoI}Z zWlx07%3`e<=%+BC7%Hpjwp7T1ay9{T2~l24g}ceb9@drE zW+juU@Uwa;43w*RXjO!HnG}qTdOCROrE?;FkhxGDMX6R)!#K=ST;gJQhuI^!vJSOD zyCS1=D_V19ul8kFeX2bLX98dy7N#;*CF#mbS51vrN)YVqJ?DI2G8o#S7QClN&y;hm zyUWD0tko)W54;KG&Gov!!dt@Q6J~v~n0d{!elH^?V)p3KlQuSv9pLo?}3aJ<6*m5;f`=(%7S|7wB0a>Gf;o=WJwsT zA?AzZEIy^}@K_UUYAaZ4qLDTjlsKGYOLdB|_5!TfjxaR=W<0s31Re#o;if=))P$!> zX-5GARmxal@Pf-I3SuJAQ#tzu);nGOtDO2PtBtoqk?!c_?eP>?%Va7Mi8YJaEN0W7 z+ZZQ-2zUqcr$wUa(^p1$`Jf5TXx#JxYt9=LPHT@zM-0W3`ocB@bqHfJEZ4@s0ohlk zo@XW=G>bGv=;W7?c3+SxMi=RWGLl5_H;6_!9|cE;JLQC?5d$6EGt(hHZ#lN&S$K#G zV?$E~nrK%ofn78ek+hO2@-CYbhOjo|Z_KQ%#cU27wnY9l12(6f_;*G1c#X_gzCpbd>`7Km6|Bokf2ElqVGxl}SWWg<=CoD|?0;Ix(r8auHl zg68|kqzEW^Ak;#4uAbTMsfh%snV>;P@?Ch23%vvSZpkdbz@Z|MdT7pTz-Q>$vCs(P zPWrx|4TCrb)m+qOI2Uv884yE)Vx`Y4gu>BCYb0&$1k7b&w}e=n87={ej5A-*#^%%) zv>YSF%b32!*hW5YPUC@}CZIwbtq`s66yMXc4l2G|;V^FkqVzThX5h>@Is^d;ACSO9 z>txUsFOXjkYrcSFlLW1zpe(xMJK3lMv=KX1T(F=bO16qCO}~0@p^8ggs#YPB?j2%c z3bn?M_N+KTrbx0(OH%RT0-@M9EIyT0N(IR*Ik7CF_Og9UCs#nU;q>vw1Za=q=DJ~d zMIsi6s&g$OgpB%MYU zA{^a7p)t6@Q{gx>lv6tHS%F46H!p5y%R!5qE|4UHr+KAAV7&i@3j&Eq0K!02Pf^os zbf#u@pd~E1vg~w5Y2P0XDf4(8hH@GVIaVc4fmt(yccNt4+<8-{)XbpBNZS(ym#v6Y z5rNXMhmMJvY#JwBICGjcRcE8E5UsUs7btOz|C%3Y=`jmWj2a?+QE&U`dOKSZ_B=M1 z_t`spO3l2v*4@tNhD4yoW-8=@O}e(9me&dnyPFr45ox* z&#&ieB~drJEXEWe@5UTXWksb%>6=O>7#ECk>ILm5b|03Lyt92|3*lcGNiBsPw18@< zDB@7BK*zEfu&A2_7dL{5k#4o|9y?>^tf|%t)CWcdQ}L7?PKV>bY7NIyR3lz+)zsBV zwr7xTTx-~1XpfEo57kRskQ`T!n!$d^;4}tOkycgrlptS5+TV;VHj<6x=)5%}M_Mz7 z3rsF+J`Q-V1E!^LRZ^qD=tGQ&z)DNzoLF09*Y;89FD68Z2}}k1Avi}9kLg`p_u(g) z{7S*UxE@7)Y*Gb0{ia9bjTjujc1$vy^rPR#%p0uDqy?3cUN=y`T2Megn-BlN&wQK; zXV%X0&!0cD7JY`XVHQEX5y=QsjiKcUMJt#PS3;m3Gh=YEO$16CGw8T}%mg|P-KGmh zFesAp?!5c`6f!o|e~f8oK>ZDrln#|Cl$_2C9rHj$J2QG~P-mJVSU9WE1q-ITbIjIi zQf;1Y0_@~Yjsoq*Ee~3im=8%GPV=b1ia>2V=x-6_sbq810I^Vd5e=l!RvOD$f-tS5 z+?RnFTt5flQ>}=VQ5#^!j6W=|(~bH*!&F6(K|I-n2@p&JF3_IO$V$P=H(Cm`B5!CwZZTEp=?FW`<&h zlHp)H778Rf%WZioHl`60k}()aXm}p))!-+C0UC0%j4> zxoKsfP*mbH*v^c?PJGC6Wj4-ozLLhsepHIexJ@Xv6$e)DeH_Rs?x&+@73@t0qbppc zgXpMNsDvgVAE($`rf4g!!z_`QCdGC3>F%$in<<2AFrl1z#@ms?U@bRV6JQyqP0Th< z<0EhY(sme(In9L|r(nh;p|Oe0ttw-~X)tzO5IS;+^>!2=PBPJ)8a_`<9hQosCUVc< zmBu*pN}Nj1It>*I*Ryb6xgO5Tp!zJm%RbvwGwPK-%P4Royg#M$?f41|Zq%B(S8EAQ zdr-Cu2A@cuwN>yZDgSGQX}kv0_`Se1L4#>R226ugHMW@M zl`Fq+otR#{aD2WR%y6b}Uey=h$eqkG<(n3fJ_eH4Y}$1i#)8T!PPO%%xqwV&bBx8P zD*M0~fJ$XgTn78mQG1B408<9pjsO}M%C<|)a(M#t@;cVuvs0<41L^2`p0A_2dZIk2^L zZIlJ7w<2>srkrwdUB+QUGoYZ*4I4+~OCz!zng4}b;Re*KNFcW%psUi9hYTlx(R5;P ziuE&?jltZac7k=AA8U!>jn3jaRT(wTUqy&~9MaK?Ir=h=KI1rfq}@r(3@bH0Zg5)d zQfY!wHEeE#8XMvkp4z`^a&KHAN*5Tn150^TOiew!J@ zA7U%Erxl2(wz&`0Hj6W?7If#CM6B}aDsx`goF~5-PwI5E1#kM8OR($3$I)bG*8=;v z3_Vw`XSG{V-C>hop5fqnwc9T`H|{M8rvmV8QD?iWMv{Z1%PXE;?uvn-A+7WgpmERHkvbdnmA z`ppT7Qezf^-n$%`mb7_}%z^=@2@?xc88asqZEdDdEHHF+Zoz`opv>-%>qC!u!fiwg z?El}SFf4c+4^~heu87xYnoK#Dh-q=K1wFlUb(+wyKz)R*uHbT0dlC^d30qa$58d$u zg`t?y!-J^WE(^@`IO(M}w|uXZ040yxzytA$}+d(OQ?{T3z9X z9vudSPRc%zz+6@7Tn{w?CBLsHW9^z$(WbQeRXZwukNQXiDKwH&it0#DPZrfgl;9_K z#1CI(B-&d=6put&(R30d>G_>(Ik?1iNb=a~vyu9Par?oTORt4M4I(_ir`n;_)5{|M zFrqNkN3PN86LR|Ydwo7mkFeZi%rR{ttynRs!&xiElW?%pXEmZ3U8J4`n|@K>45L)F zeWoHTUdhRM_RP~%Z|c!lhe5dZ)^5=%Tan!jS#pek_4xOy%2|)B9P9~JW#aBAp3sy_ zgGkqLyARS%yyvA2P@YL==OU=vBKG#y>*zTgui+49pXE6}_^Xm!_NmYM`41AY>m0q3 zan_5&xk`xjn5v=b75UP$)|~+q%ufRc7RG?R=3{r32D7ND3hY3KNrS=)>egjqwI zk%U?Eu3lc7(b;F)8D<3c*2$aUwZ2+m3hcSo!4#5{XR117ZY+CEsju^^YG739Tg3#= zXqY`qGJ2J;yKRb76=+~MWW3WuPfJx*E1-pWcy)MbO<9~AFx$W#tn0PeH3|Z@CR(m} zESNMExoW{9pm&tW&x5Eb;#98*=@UB~^wV`;zeW_WF+x`wYlqB!IxI%ig}DPU|AOu8=tWg|pRbb`c=9Q5K(cD6Rg zrF+W+BrxM)f3{hr#s=ubFDMfg&^Oj~+v#FY9WD7@8v%hzP+-ih;QEv}!uwAa0^Phgdoot&vxa30GD1NL#y>K_)g`gtfa$ zY?gL>sNmFt)p$r#IIZ~V1&Lq^>+1srXh9jwHB)St)w=1xCYw16mGD%|SRaDIERA$h zh!5gWmAL7wlj&7Y0zoZsG=;5sQwhzAI|q`(C8c?mTOQN}P{u0?Sj$i{3#!v4+t%Ug zIBqI+*kEL+JdENfW2ma7Vr?)hZP^7K2V9oDHT}tG9V#uYgEQe-TZf@0*1@bJ(nRJ1 zV`(F*b^1w04f9FHJ8Uv_NlR8a_ac}UxZ5xCY`PwSa#+PT{WSw-FS^MT5iEoPW1JKq z2(B2C9bY)QCZ4{g$8hr*j|lA691BF^0kX9)OB&b|PS{;jJEdWYiFX{wq#Q)-4q`*k)7ifaMSZa;fOsVz8fw3w#B+Ufua9vT0)-q9sDR*@cDL@K+ zvVw`k*Y(}3TT-So692<`6K{FD^$jjDW>Z=HwBk``cvVK6kKU; z8QS5o1JUHF1D9UMx%Sr0sLK!o41mZ6ngEa1i#G|CwSChs1!Tm|ELtDr*?}pm65KeJ3(#MGshAd2&q$mz-S06J);nPLpKEsfY0vY1OGf#P|l2sgYcR33!9m2FobK|C_ zcwQUx=RO&!WojGk9B-R(n#(w?XSzPuprzn!zV}P_!oifU7LGyY6t;>@J~9K+dfY25gk(H*AWiSf* z8(dU9%)&ItI_1DR=)){A1J-F>W6F6@y7$i0&A9YZheX-%qYC}_;OaPXAR&DrNjl4t z(WLZ{@+(xQZEaSl{L3nnQ*0wwW0oP&XN448=2<|VOUl?w!e-q+z2{RT=*(p9FG<0H z!7S5M`0EAXk5st121*OO-eACT*rG7 zk+yI!0$01@-Djq0$Z|lhNw5L|vaxs!Ieh^kN9;+j0L)Xa)!-Q9DrS9}Qj~bLT5}Aj zPX*xRdnw7QTHa(x$KuY36ArWiTyGUkjO8*Ao8*|7(L=zSTfCdHGq%n+AK{RyZZCol zC%i$%Df3O13_Y%MNSl<&BALgz8LV&<^Xt-d8JKdabuv3Dr^4A7sAt38n9SNMxtNX6 zfqG`_4wKVaAW4MFppTwx2KiSx?7S?0+3YL#;25MYQcE3l{T^l<- z=4G(*brJ#}G7NUaD11s^;*++t`s*H)lIrgAbq@jcB|k#cVk53ct<(>DWz^=De2j8~ z1aPWs2q;-7T&MBP46Zvp=f~2A38ig^74n@E0=~`8J(za*z=zw*0 zN5O0z!C2o!s-voig!7$o^yWmiDPktUm ziF4Apm3RMe4-q3iKjdEUT4s98Pq{#7ESuYQY zxhqnhKQhuaGrTl``PLNY!Qw$inGsCLt8D=uq{7icOQ5Vwe6#S?H&~P?likQ&#*-q( zCN|HA7#rd(5+--WE4_zH9QhsZ7=Rej?A3WtBf2@N!$9(+SBxwEgy++6`ruV$SmlS8 zqvJatm^`3KvK64-L_j!+&ytRUni+VcN}4RKfz;9@KSX3=G%zcx9$YJ1Yke)FtS-)v zd|I9;HHy$V0n0O`T|vO|RB2ZbsN^cEJ+@jYR$BW8y*u|$_!e1HBL zvN_vLT4y!oO>iM6jcgfANStiyM`!XI0*U6ZbRD2+TU&2WnY8w$y|L8^U*(3i*@09v z&?p4}_D5aV+=Lmy4CPxMy1Xs#Tr-CP0P8)PRX1Dl7w~i%XTBva66+&7Ib+xiQ2$UuwR^%FKI^)GJ;svtPq0#ZC(elj* z2Eke%kfESREaDzAJ?)~~Kw+{*%6J?c!z;As%IynEZ77CV_;>w)_BK*87xoE`gq~g#Qf+V~Ri|tW6tIy|l6c*i zsGNa_W0iM2{hBrg?vm}|CZb1OBHj!Y+pSO%rOJ01q+2H4EsQnGX!r064cHChSc>L_ zo8aN(SWr4xXlUFYil)hMlHEfT#;5H{sskZ^D3SNFU=0qbSxEGR%oeM%GEIcd2vi}F4X6B>h!{wWt5+`-F~xc4 z*2XfqE?WA_=&Hb0N*6w*N6>f^P&&Rzk1A%z)HkOqz37V&NH~#{#uf4} zttLIuoBixp`EqBRFT!oE^0OykbCsVx0h_CQnE;j+7z`bZEg3=7SBymHfPMuV#zw&3 z#z_D9;pgG1d*k=77&gK`X3QA>h~X9Kg9R$Lp@i&pfn+ccm2CD2&Ym@~WUJhiv7x|N zxsJ0o@w+HOF0pLHzKBjz@o@^PV17QWdsmz!adC=W@ht2j@tnle!U3i@OXU?Okz_be zP6T5&moJp669*|oP_8SbTMBllLyBUkA_XHFCG*>3Mz{lR@Crs+A^WTBDhV-X;X#FX zdI1MXh}Y@iG0aF~GF4Fs&&-%qH5^E`VoW2%;q;neA(Fk$w+pdmj1h#bY&vdX+y6mA zL1mrx)*lJG;DK#;dXTP@&qDWgBV!N>;!6+8ZKJrhM^(ZFaWf#J zz}*kV8K(foF=)QEZHB{Vv|J{rWV#3!?(Zf*S(U)O7hcPoiUeEya3%sSd`#bGYQkj) z?9iLhHm5AS7#KJmCcUnV)nBx`fIX6XoRGHCDb*5S!?_U0i23yoi$H=S(H4&e@On78 zx_r1vKjh*?xvs!WIz=)yDV7loTSMAuD2TeUvj=kW4*O?6NhatMrK^I{3U3!Epd2OO zxnn%Xti*oBwSiOsUbKPr8r={oz~;mO2%0b3=ko&RkoE?PezlqhZ0$^pXjT)0lg@H7 zOt4_op~mc^e7Rsm7sHfMCuL-Nr4|N$rnX(#Sc*|v;ZWkpp;WB*jRc)TXVNa2NUQ{s zXHFCRoPZ8V^M{)1Gh z0+!(ho}h%tNvz^b90`@g4dO_ciQKt35?v*Z#6A_rN-J@!G!ut2k#|_p=rE(54yhOHKHxSwVo$+OhRe(W7rZ=?f&xy{RmwC8N23voWc{66{c<%;hsrky za`Q^L9c5^fnoCqwE3kU$W>l)QGm%dj;G^^b%0@38Zv$+cH2nr5`Ee$6l(&|~MK8DNkQ*^{jN)J;&p?aSOWKO-t35Y*o z86p)OLPCHmei?2TrlX0V`XL`vN_}-+zZ&r3o#zwT!5k}WLMFo#4^AUSk(#2jzsfd6 zVRpepE$Cwn=gC`JuX#D#6rJ`og)Br-R$EJ;yNUoLPtxyqnv!v{rZ+`0-cqZuI);=L zckd|ZQtD)S)kdV8Lm<&B7adFFtKwxEdCu%c?E8 zz_kx5oOE*oZ<;qJedn+#(Tr;*)0T%=DiT#c1k=LCqyokIiZbm76%fI2s2$Ruc1@N? zDK$~L*pM!;GG(+3lEP>^n2hs{gClG{Ot=+DD{E3)y(KJ>YgD9@|0pCOVyrYl z0b#BNjUYhYucF#;FrEmc=(&1fb0-QTM6i$2izc*0!5-yG2)8OzH>WtuKZ6Uca z7KI>w5I1hF<2oXpEaQZF&4@HFjl%yiDWXl&3F%~!-7>+GZIv+{QI_;PqqP>2wwdD+ zw%uoI79lnL9TGTma3{p+%_RLA5|K7I17miJgpfEEYp5d?d&Grn!!&ubn;?YbyKqBP zF^oNQeHy}!;WMFV$T6yLTUkTSYj5n7w9VLfxvKGUr;SynZ%D#v`Ivs{r_>Jj1O5Bp@d*8MhI^DBXfYuTg=DdsWA-66?N}EGnPzY zxi2r#Fp;0r#jJoozc8+EWxHSkwxbsD5%tcFhuXnQ%b~phS;l}z(8gxCBWRgq)_oRj2|A05H`NnSd{pu&w`rmv#gc}hzCrp?X_HLB`<=Q3J@1t#-3IiNw{Sy? zi1fUzfHj#&926$So8&_ixDLRCu@P)A1d7IkO;)Qo-(dOdh2X3~{V{X{gnehJl*7wy zyYT3PjM9n2G%~c09Ga0(7Piia#QGv{GJ5hIV^RqO*A?kTW8KT}M*P*V-{j*M!MFIFyhKpDGQhTR}1bp$ot2s(H--uQg9)Rqhx(UL*2Nbn-;;_W+Yhk*} zPj{!&d8*h0@~Eo%G!X`$>QEX~*79L5lyiVe zI2YB)kNuc&?ooCLcz4|kVbm1l#$l#5^XkgHjbdRG*|Ef=7dC;j6cTH7yk*@f|*jMB;UF?MiNy4r^> z62U{S^xzcwOx!BOj`KU{ct?FxJKEs6D0Ongh&qeOVMNjkPAKCeX1e3}oRdOWB1-2Q z#q!QLvy2oS2PX1BSU=-zQOU?V<4e~h3O&3`244YEXQAyNF3}V_ibdtPT*oLn>jxnk zfbm(puU_bnwf@LnC4I*YC}IO^;q5&QEmD}3eznZVj9;>kLOm9svJ|=V(81l6}ljth(zPfl5w_gSH$g|m;o_{EG&T-ky-AEGK@Tntw?AVT#k}KLchcR zc!T^o?X8V;WJ}C}O}ij&tbZ+q*ruCTl*&IWz|qz`!L3KiWvhN(J0&L4U{T?Nvyv{p z!E0}nC=fqY2M)*#*6ydZSG8*O*CpV#0w`onhlWYIKqZ6^YDgEVpiYY!Tc`^?^+f4F zHOj>NmKv;o#uIyKQ;Jhd#oQn$po^nL&4#^V^$J2!ht8Z9R)v_KhkoQSK;Z#du*cgr)g{zh)dA-p@g569={a$rcAn zV&7OPM)|lYvnf;J#8L^GkCSY=A!WvgRoW{7<)h2);D`wCau3+SXvbPuvs0g(#Vkyr zfK#V?69Nsj9! zO9eV;gUJsztVMq`m-q7!Q*wCpJ`M*(F=&!!yL>oRQHSnWTupY`nvjo?M{5I4)sdll zXidCLIc8lSgfp0tXq0ZNFNQ{SK)+ejB!4K}5|UCvGi{r0&}JUAq5B>{Xk2yOL+6D< zaUO|ioArQZwa^R>TmvyIOIJ6XA2V%8%g6*Y$AM59<<+zgRkotF#EK!n!GXjmS80(C vdFrrfzo@DTZ~M|7zrfl@OpqyK;;9Eb!IXbWR63U+DVak5T<}^sF4zA9&f + + + + QsciCommand + + + Move down one line + Desplazar una línea hacia abajo + + + + Extend selection down one line + Extender la selección una línea hacia abajo + + + + Scroll view down one line + Desplazar la vista una línea hacia abajo + + + + Extend rectangular selection down one line + Extender la selección rectangular una línea hacia abajo + + + + Move up one line + Desplazar una línea hacia arriba + + + + Extend selection up one line + Extender la selección una línea hacia arriba + + + + Scroll view up one line + Desplazar la vista una línea hacia arriba + + + + Extend rectangular selection up one line + Extender la selección rectangular una línea hacia arriba + + + + Move up one paragraph + Desplazar un párrafo hacia arriba + + + + Extend selection up one paragraph + Extender la selección un párrafo hacia arriba + + + + Move down one paragraph + Desplazar un párrafo hacia abajo + + + + Scroll to start of document + Desplazar al principio del documento + + + + Scroll to end of document + Desplazar al final del documento + + + + Scroll vertically to centre current line + Desplazar verticalmente al centro de la línea actual + + + + Extend selection down one paragraph + Extender la selección un párrafo hacia abajo + + + + Move left one character + Mover un carácter hacia la izquierda + + + + Extend selection left one character + Extender la selección un carácter hacia la izquierda + + + + Move left one word + Mover una palabra hacia la izquierda + + + + Extend selection left one word + Extender la selección una palabra a la izquierda + + + + Extend rectangular selection left one character + Extender la selección rectangular un carácter hacia la izquierda + + + + Move right one character + Mover un carácter hacia la derecha + + + + Extend selection right one character + Extender la selección un carácter hacia la derecha + + + + Move right one word + Mover una palabra hacia la derecha + + + + Extend selection right one word + Extender la selección una palabra a la derecha + + + + Extend rectangular selection right one character + Extender la selección rectangular un carácter hacia la derecha + + + + Move to end of previous word + Mover al final de palabra anterior + + + + Extend selection to end of previous word + Extender selección al final de la palabra anterior + + + + Move to end of next word + Mover al final de la palabra siguiente + + + + Extend selection to end of next word + Extender la selección hasta el final de la palabra siguiente + + + + Move left one word part + Mover parte de una palabra hacia la izquierda + + + + Extend selection left one word part + Extender la selección parte de una palabra a la izquierda + + + + Move right one word part + Mover parte de una palabra hacia la derecha + + + + Extend selection right one word part + Extender la selección parte de una palabra a la derecha + + + + Move up one page + Mover hacia arriba una página + + + + Extend selection up one page + Extender la selección hacia arriba una página + + + + Extend rectangular selection up one page + Extender la selección rectangular hacia arriba una página + + + + Move down one page + Mover hacia abajo una página + + + + Extend selection down one page + Extender la selección hacia abajo una página + + + + Extend rectangular selection down one page + Extender la selección rectangular una página hacia abajo + + + + Delete current character + Borrar el carácter actual + + + + Cut selection + Cortar selección + + + + Delete word to right + Borrar palabra hacia la derecha + + + + Move to start of document line + Mover al principio de la línea del documento + + + + Extend selection to start of document line + Extender selección al principio de la línea del documento + + + + Extend rectangular selection to start of document line + Extender selección rectangular al principio de la línea del documento + + + + Move to start of display line + Mover al principio de la línea visualizada + + + + Extend selection to start of display line + Extender selección al principio de la línea visualizada + + + + Move to start of display or document line + Mover al principio de la línea visualizada o del documento + + + + Extend selection to start of display or document line + Extender selección al principio de la línea visualizada o del documento + + + + Move to first visible character in document line + Mover al primer carácter visible en la línea del documento + + + + Extend selection to first visible character in document line + Extender selección al primer carácter visible en la línea del documento + + + + Extend rectangular selection to first visible character in document line + Extender selección rectangular al primer carácter visible en la línea del documento + + + + Move to first visible character of display in document line + Extender selección al primer carácter visualizado en la línea del documento + + + + Extend selection to first visible character in display or document line + Extender selección al primer carácter de línea visualizada o del documento + + + + Move to end of document line + Mover al final de la línea del documento + + + + Extend selection to end of document line + Extender selección al final de la línea del documento + + + + Extend rectangular selection to end of document line + Extender selección rectangular al final de la línea del documento + + + + Move to end of display line + Mover al final de la línea visualizada + + + + Extend selection to end of display line + Extender selección al final de la línea visualizada + + + + Move to end of display or document line + Mover al final de la línea visualizada o del documento + + + + Extend selection to end of display or document line + Extender selección al final de la línea visualizada o del documento + + + + Move to start of document + Mover al principio del documento + + + + Extend selection to start of document + Extender selección al principio del documento + + + + Move to end of document + Mover al final del documento + + + + Extend selection to end of document + Extender selección al final del documento + + + + Stuttered move up one page + Mover progresivamente una página hacia arriba + + + + Stuttered extend selection up one page + Extender progresivamente selección hacia arriba una página + + + + Stuttered move down one page + Mover progresivamente una página hacia abajo + + + + Stuttered extend selection down one page + Extender progresivamente selección hacia abajo una página + + + + Delete previous character if not at start of line + Borrar carácter anterior si no está al principio de una línea + + + + Delete right to end of next word + Borrar a la derecha hasta el final de la siguiente palabra + + + + Delete line to right + Borrar línea hacia la derecha + + + + Transpose current and previous lines + Transponer líneas actual y anterior + + + + Duplicate the current line + Duplicar línea actual + + + + Select all + Select document + Seleccionar todo + + + + Move selected lines up one line + Mover las líneas seleccionadas una línea hacia arriba + + + + Move selected lines down one line + Mover las líneas seleccionadas una línea hacia abajo + + + + Toggle insert/overtype + Conmutar insertar/sobreescribir + + + + Paste + Pegar + + + + Copy selection + Copiar selección + + + + Insert newline + Insertar carácter de nueva línea + + + + De-indent one level + Deshacer un nivel de indentado + + + + Cancel + Cancelar + + + + Delete previous character + Borrar carácter anterior + + + + Delete word to left + Borrar palabra hacia la izquierda + + + + Delete line to left + Borrar línea hacia la izquierda + + + + Undo last command + Deshacer último comando + + + + Redo last command + Rehacer último comando + + + + Indent one level + Indentar un nivel + + + + Zoom in + Aumentar zoom + + + + Zoom out + Disminuir zoom + + + + Formfeed + Carga de la página + + + + Cut current line + Cortar línea actual + + + + Delete current line + Borrar línea actual + + + + Copy current line + Copiar línea actual + + + + Convert selection to lower case + Convertir selección a minúsculas + + + + Convert selection to upper case + Convertir selección a mayúsculas + + + + Duplicate selection + Duplicar selección + + + + QsciLexerAVS + + + Default + Por defecto + + + + Block comment + Comentario de bloque + + + + Nested block comment + Comentario de bloque anidado + + + + Line comment + Comentario de línea + + + + Number + Número + + + + Operator + Operador + + + + Identifier + Identificador + + + + Double-quoted string + Cadena con comillas dobles + + + + Triple double-quoted string + Cadena con triple comilla doble + + + + Keyword + Palabra clave + + + + Filter + Filtro + + + + Plugin + Plugin + + + + Function + Función + + + + Clip property + Propiedad de recorte + + + + User defined + Definido por el usuario + + + + QsciLexerBash + + + Default + Por defecto + + + + Error + Error + + + + Comment + Comentario + + + + Number + Número + + + + Keyword + Palabra clave + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comillas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Scalar + Escalar + + + + Parameter expansion + Expansión de parámetros + + + + Backticks + Comilla inversa + + + + Here document delimiter + Delimitador de documento integrado (here document) + + + + Single-quoted here document + Documento integrado (here document) con comilla simple + + + + QsciLexerBatch + + + Default + Por defecto + + + + Comment + Comentario + + + + Keyword + Palabra clave + + + + Label + Etiqueta + + + + Hide command character + Ocultar caracteres de comando + + + + External command + Comando externo + + + + Variable + Variable + + + + Operator + Operador + + + + QsciLexerCMake + + + Default + Por defecto + + + + Comment + Comentario + + + + String + Cadena de caracteres + + + + Left quoted string + Cadena con comillas a la izquierda + + + + Right quoted string + Cadena con comillas a la derecha + + + + Function + Función + + + + Variable + Variable + + + + Label + Etiqueta + + + + User defined + Definido por el usuario + + + + WHILE block + Bloque WHILE + + + + FOREACH block + Bloque FOREACH + + + + IF block + Bloque IF + + + + MACRO block + Bloque MACRO + + + + Variable within a string + Variable en una cadena + + + + Number + Número + + + + QsciLexerCPP + + + Default + Por defecto + + + + Inactive default + Por defecto inactivo + + + + C comment + Comentario C + + + + Inactive C comment + Comentario C inactivo + + + + C++ comment + Comentario C++ + + + + Inactive C++ comment + Comentario C++ inactivo + + + + JavaDoc style C comment + Comentario C de estilo JavaDoc + + + + Inactive JavaDoc style C comment + Comentario C estilo JavaDoc inactivo + + + + Number + Número + + + + Inactive number + Número inactivo + + + + Keyword + Palabra clave + + + + Inactive keyword + Palabra clave inactiva + + + + Double-quoted string + Cadena con comillas dobles + + + + Inactive double-quoted string + Cadena con doble comilla inactiva + + + + Single-quoted string + Cadena con comillas simples + + + + Inactive single-quoted string + Cadena con comilla simple inactiva + + + + IDL UUID + IDL UUID + + + + Inactive IDL UUID + IDL UUID inactivo + + + + Pre-processor block + Bloque de preprocesador + + + + Inactive pre-processor block + Bloque de preprocesador inactivo + + + + Operator + Operador + + + + Inactive operator + Operador inactivo + + + + Identifier + Identificador + + + + Inactive identifier + Identificador inactivo + + + + Unclosed string + Cadena sin cerrar + + + + Inactive unclosed string + Cadena sin cerrar inactiva + + + + C# verbatim string + Cadena C# textual + + + + Inactive C# verbatim string + Cadena C# textual inactiva + + + + JavaScript regular expression + Expresión regular JavaScript + + + + Inactive JavaScript regular expression + Expresión regular JavaScript inactiva + + + + JavaDoc style C++ comment + Comentario C++ de estilo JavaDoc + + + + Inactive JavaDoc style C++ comment + Comentario C++ estilo JavaDoc inactivo + + + + Secondary keywords and identifiers + Identificadores y palabras clave secundarios + + + + Inactive secondary keywords and identifiers + Identificadores y palabras clave secundarios inactivos + + + + JavaDoc keyword + Palabra clave de Javadoc + + + + Inactive JavaDoc keyword + Palabra clave de JavaDoc inactiva + + + + JavaDoc keyword error + Error en palabra clave de Javadoc + + + + Inactive JavaDoc keyword error + Error en palabra clave de Javadoc inactivo + + + + Global classes and typedefs + Clases globales y typedefs + + + + Inactive global classes and typedefs + Clases globales y typedefs inactivos + + + + C++ raw string + Cadena en bruto C++ + + + + Inactive C++ raw string + Cadena inactiva C++ + + + + Vala triple-quoted verbatim string + Cadena Vala con triple comilla textual + + + + Inactive Vala triple-quoted verbatim string + Cadena Vala con triple comilla textual inactiva + + + + Pike hash-quoted string + Cadena Pike con hash entrecomillado + + + + Inactive Pike hash-quoted string + Cadena Pike con hash entrecomillado inactiva + + + + Pre-processor C comment + Comentario C de preprocesador + + + + Inactive pre-processor C comment + Comentario C de preprocesador inactivo + + + + JavaDoc style pre-processor comment + Comentario de preprocesador estilo JavaDoc + + + + Inactive JavaDoc style pre-processor comment + Comentario de preprocesador estilo JavaDoc inactivo + + + + QsciLexerCSS + + + Default + Por defecto + + + + Tag + Etiqueta + + + + Class selector + Selector de clase + + + + Pseudo-class + Pseudoclase + + + + Unknown pseudo-class + Pseudoclase desconocida + + + + Operator + Operador + + + + CSS1 property + Propiedad CSS1 + + + + Unknown property + Propiedad desconocida + + + + Value + Valor + + + + ID selector + Selector de ID + + + + Important + Importante + + + + @-rule + Regla-@ + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comillas simples + + + + CSS2 property + Propiedad CSS2 + + + + Attribute + Atributo + + + + CSS3 property + Propiedad CSS3 + + + + Pseudo-element + Pseudoelemento + + + + Extended CSS property + Propiedad CSS extendida + + + + Extended pseudo-class + Pseudoclase extendida + + + + Extended pseudo-element + Pseudoelemento extendido + + + + Media rule + Regla de '@media' + + + + Variable + Variable + + + + QsciLexerCSharp + + + Verbatim string + Cadena textual + + + + QsciLexerCoffeeScript + + + Default + Por defecto + + + + C-style comment + Comentario de estilo C + + + + C++-style comment + Comentario de estilo C++ + + + + JavaDoc C-style comment + Comentario de estilo JavaDoc C + + + + Number + Número + + + + Keyword + Palabra clave + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comilla simple + + + + IDL UUID + IDL UUID + + + + Pre-processor block + Bloque de preprocesador + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadena sin cerrar + + + + C# verbatim string + Cadena C# textual + + + + Regular expression + Expresión regular + + + + JavaDoc C++-style comment + Comentario de estilo JavaDoc C++ + + + + Secondary keywords and identifiers + Identificadores y palabras clave secundarios + + + + JavaDoc keyword + Palabra clave de JavaDoc + + + + JavaDoc keyword error + Error en palabra clave de JavaDoc + + + + Global classes + Clases globales + + + + Block comment + Comentario de bloque + + + + Block regular expression + Expresión regular de bloque + + + + Block regular expression comment + Comentario de expresión regular de bloque + + + + QsciLexerD + + + Default + Por defecto + + + + Block comment + Comentario de bloque + + + + Line comment + Comentario de línea + + + + DDoc style block comment + Comentario de bloque estilo DDoc + + + + Nesting comment + Comentario anidado + + + + Number + Número + + + + Keyword + Palabra clave + + + + Secondary keyword + Palabra clave secundaria + + + + Documentation keyword + Palabra clave de documentación + + + + Type definition + Definición de tipo + + + + String + Cadena de caracteres + + + + Unclosed string + Cadena sin cerrar + + + + Character + Carácter + + + + Operator + Operador + + + + Identifier + Identificador + + + + DDoc style line comment + Comentario de línea estilo DDoc + + + + DDoc keyword + Palabra clave DDoc + + + + DDoc keyword error + Error en palabra clave DDOC + + + + Backquoted string + Cadena con comillas hacia atrás + + + + Raw string + Cadena en bruto + + + + User defined 1 + Definido por el usuario 1 + + + + User defined 2 + Definido por el usuario 2 + + + + User defined 3 + Definido por el usuario 3 + + + + QsciLexerDiff + + + Default + Por defecto + + + + Comment + Comentario + + + + Command + Comando + + + + Header + Encabezado + + + + Position + Posición + + + + Removed line + Línea eliminada + + + + Added line + Línea añadida + + + + Changed line + Línea modificada + + + + QsciLexerFortran77 + + + Default + Por defecto + + + + Comment + Comentario + + + + Number + Número + + + + Single-quoted string + Cadena con comillas simples + + + + Double-quoted string + Cadena con comillas dobles + + + + Unclosed string + Cadena sin cerrar + + + + Operator + Operador + + + + Identifier + Identificador + + + + Keyword + Palabra clave + + + + Intrinsic function + Función intrínseca + + + + Extended function + Función extendida + + + + Pre-processor block + Bloque de preprocesador + + + + Dotted operator + Operador punteado + + + + Label + Etiqueta + + + + Continuation + Continuación + + + + QsciLexerHTML + + + HTML default + HTML por defecto + + + + Tag + Etiqueta + + + + Unknown tag + Etiqueta desconocida + + + + Attribute + Atributo + + + + Unknown attribute + Atributo desconocido + + + + HTML number + Número HTML + + + + HTML double-quoted string + Cadena HTML con comillas dobles + + + + HTML single-quoted string + Cadena HTML con comillas simples + + + + Other text in a tag + Otro texto en una etiqueta + + + + HTML comment + Comentario HTML + + + + Entity + Entidad + + + + End of a tag + Final de una etiqueta + + + + Start of an XML fragment + Inicio de un fragmento XML + + + + End of an XML fragment + Fin de un fragmento XML + + + + Script tag + Etiqueta de script + + + + Start of an ASP fragment with @ + Inicio de un fragmento ASP con @ + + + + Start of an ASP fragment + Inicio de un fragmento ASP + + + + CDATA + CDATA + + + + Start of a PHP fragment + Inicio de un fragmento PHP + + + + Unquoted HTML value + Valor HTML sin comillas + + + + ASP X-Code comment + Comentario ASP X-Code + + + + SGML default + SGML por defecto + + + + SGML command + Comando SGML + + + + First parameter of an SGML command + Primer parametro de un comando SGML + + + + SGML double-quoted string + Cadena SGML con comillas dobles + + + + SGML single-quoted string + Cadena SGML con comillas simples + + + + SGML error + Error SGML + + + + SGML special entity + Entidad SGML especial + + + + SGML comment + Comentario SGML + + + + First parameter comment of an SGML command + Comentario de primer parametro de un comando SGML + + + + SGML block default + Bloque SGML por defecto + + + + Start of a JavaScript fragment + Inicio de un fragmento JavaScript + + + + JavaScript default + JavaScript por defecto + + + + JavaScript comment + Comentario JavaScript + + + + JavaScript line comment + Comentario de línea de JavaScript + + + + JavaDoc style JavaScript comment + Comentario JavaScript de estilo JavaDoc + + + + JavaScript number + Número JavaScript + + + + JavaScript word + Palabra JavaScript + + + + JavaScript keyword + Palabra clave JavaScript + + + + JavaScript double-quoted string + Cadena JavaScript con comillas dobles + + + + JavaScript single-quoted string + Cadena JavaScript con comillas simples + + + + JavaScript symbol + Símbolo JavaScript + + + + JavaScript unclosed string + Cadena JavaScript sin cerrar + + + + JavaScript regular expression + Expresión regular JavaScript + + + + Start of an ASP JavaScript fragment + Inicio de un fragmento de ASP JavaScript + + + + ASP JavaScript default + ASP JavaScript por defecto + + + + ASP JavaScript comment + Comentario de ASP JavaScript + + + + ASP JavaScript line comment + Comentario de línea de ASP JavaScript + + + + JavaDoc style ASP JavaScript comment + Comentario ASP JavaScript de estilo JavaDoc + + + + ASP JavaScript number + Número ASP JavaScript + + + + ASP JavaScript word + Palabra ASP JavaScript + + + + ASP JavaScript keyword + Palabra clave ASP JavaScript + + + + ASP JavaScript double-quoted string + Cadena ASP JavaScript con comillas dobles + + + + ASP JavaScript single-quoted string + Cadena ASP JavaScript con comillas simples + + + + ASP JavaScript symbol + Símbolo ASP JavaScript + + + + ASP JavaScript unclosed string + Cadena ASP JavaScript sin cerrar + + + + ASP JavaScript regular expression + Expresión regular ASP JavaScript + + + + Start of a VBScript fragment + Inicio de un fragmento VBScript + + + + VBScript default + VBScript por defecto + + + + VBScript comment + Comentario VBScript + + + + VBScript number + Número VBScript + + + + VBScript keyword + Palabra clave VBScript + + + + VBScript string + Cadena de caracteres VBScript + + + + VBScript identifier + Identificador VBScript + + + + VBScript unclosed string + Cadena VBScript sin cerrar + + + + Start of an ASP VBScript fragment + Inicio de un fragmento de ASP VBScript + + + + ASP VBScript default + ASP VBScript por defecto + + + + ASP VBScript comment + Comentario de ASP VBScript + + + + ASP VBScript number + Número ASP VBScript + + + + ASP VBScript keyword + Palabra clave ASP VBScript + + + + ASP VBScript string + Cadena de caracteres ASP VBScript + + + + ASP VBScript identifier + Identificador ASP VBScript + + + + ASP VBScript unclosed string + Cadena ASP VBScript sin cerrar + + + + Start of a Python fragment + Inicio de un fragmento Python + + + + Python default + Python por defecto + + + + Python comment + Comentario Python + + + + Python number + Número Python + + + + Python double-quoted string + Cadena Python con comillas dobles + + + + Python single-quoted string + Cadena Python con comillas simples + + + + Python keyword + Palabra clave de Python + + + + Python triple double-quoted string + Cadena Python con triple comilla doble + + + + Python triple single-quoted string + Cadena Python con triple comilla simple + + + + Python class name + Nombre de clase Python + + + + Python function or method name + Nombre de método o función Python + + + + Python operator + Operador Python + + + + Python identifier + Identificador Python + + + + Start of an ASP Python fragment + Inicio de un fragmento ASP Python + + + + ASP Python default + ASP Python por defecto + + + + ASP Python comment + Comentario ASP Python + + + + ASP Python number + Número ASP Python + + + + ASP Python double-quoted string + Cadena ASP Python con comillas dobles + + + + ASP Python single-quoted string + Cadena ASP Python con comillas simples + + + + ASP Python keyword + Palabra clave de ASP Python + + + + ASP Python triple double-quoted string + Cadena ASP Python con triple comilla doble + + + + ASP Python triple single-quoted string + Cadena ASP Python con triple comilla simple + + + + ASP Python class name + Nombre de clase ASP Python + + + + ASP Python function or method name + Nombre de método o función ASP Python + + + + ASP Python operator + Operador ASP Python + + + + ASP Python identifier + Identificador ASP Python + + + + PHP default + PHP por defecto + + + + PHP double-quoted string + Cadena PHP con comillas dobles + + + + PHP single-quoted string + Cadena PHP con comillas simples + + + + PHP keyword + Palabra clave PHP + + + + PHP number + Número PHP + + + + PHP variable + Variable PHP + + + + PHP comment + Comentario PHP + + + + PHP line comment + Comentario de línea PHP + + + + PHP double-quoted variable + Variable PHP con comillas dobles + + + + PHP operator + Operador PHP + + + + QsciLexerIDL + + + UUID + UUID + + + + QsciLexerJavaScript + + + Regular expression + Expresión regular + + + + QsciLexerLua + + + Default + Por defecto + + + + Comment + Comentario + + + + Line comment + Comentario de línea + + + + Number + Número + + + + Keyword + Palabra clave + + + + String + Cadena de caracteres + + + + Character + Carácter + + + + Literal string + Cadena literal + + + + Preprocessor + Preprocesador + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadena sin cerrar + + + + Basic functions + Funciones basicas + + + + String, table and maths functions + Funcines de cadena, tabla y matemáticas + + + + Coroutines, i/o and system facilities + Co-rutinas, e/s y funciones del sistema + + + + User defined 1 + Definido por el usuario 1 + + + + User defined 2 + Definido por el usuario 2 + + + + User defined 3 + Definido por el usuario 3 + + + + User defined 4 + Definido por el usuario 4 + + + + Label + Etiqueta + + + + QsciLexerMakefile + + + Default + Por defecto + + + + Comment + Comentario + + + + Preprocessor + Preprocesador + + + + Variable + Variable + + + + Operator + Operador + + + + Target + Objetivo + + + + Error + Error + + + + QsciLexerMatlab + + + Default + Por defecto + + + + Comment + Comentario + + + + Command + Comando + + + + Number + Número + + + + Keyword + Palabra clave + + + + Single-quoted string + Cadena con comillas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Double-quoted string + Cadena con comillas dobles + + + + QsciLexerPO + + + Default + Por defecto + + + + Comment + Comentario + + + + Message identifier + Identificador de mensaje + + + + Message identifier text + Texto identificador de mensaje + + + + Message string + Cadena de mensaje + + + + Message string text + Texto de cadena de mensaje + + + + Message context + Contexto de mensaje + + + + Message context text + Texto de contexto de mensaje + + + + Fuzzy flag + Señalador difuso + + + + Programmer comment + Comentario de programador + + + + Reference + Referencia + + + + Flags + Señaladores + + + + Message identifier text end-of-line + Fin de línea de texto identificador de mensaje + + + + Message string text end-of-line + Fin de línea de texto de cadena de mensaje + + + + Message context text end-of-line + Fin de línea de texto de contexto de mensaje + + + + QsciLexerPOV + + + Default + Por defecto + + + + Comment + Comentario + + + + Comment line + Línea de comentario + + + + Number + Número + + + + Operator + Operador + + + + Identifier + Identificador + + + + String + Cadena de caracteres + + + + Unclosed string + Cadena sin cerrar + + + + Directive + Directiva + + + + Bad directive + Mala directiva + + + + Objects, CSG and appearance + Objetos, CSG y apariencia + + + + Types, modifiers and items + Tipos, modificadores y elementos + + + + Predefined identifiers + Identificadores predefinidos + + + + Predefined functions + Funciones predefinidas + + + + User defined 1 + Definido por el usuario 1 + + + + User defined 2 + Definido por el usuario 2 + + + + User defined 3 + Definido por el usuario 3 + + + + QsciLexerPascal + + + Default + Por defecto + + + + Line comment + Comentario de línea + + + + Number + Número + + + + Keyword + Palabra clave + + + + Single-quoted string + Cadena con comillas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + '{ ... }' style comment + Comentario de estilo '{ ... }' + + + + '(* ... *)' style comment + Comentario de estilo '(* ... *)' + + + + '{$ ... }' style pre-processor block + Bloque de preprocesador de estilo '{$ ... }' + + + + '(*$ ... *)' style pre-processor block + Bloque de preprocesador de estilo '(*$ ... *)' + + + + Hexadecimal number + Número hexadecimal + + + + Unclosed string + Cadena sin cerrar + + + + Character + Carácter + + + + Inline asm + asm inline + + + + QsciLexerPerl + + + Default + Por defecto + + + + Error + Error + + + + Comment + Comentario + + + + POD + POD + + + + Number + Número + + + + Keyword + Palabra clave + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comillas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Scalar + Escalar + + + + Array + Array + + + + Hash + Hash + + + + Symbol table + Tabla de símbolos + + + + Regular expression + Expresión regular + + + + Substitution + Sustitución + + + + Backticks + Comilla inversa + + + + Data section + Sección de datos + + + + Here document delimiter + Delimitador de documento integrado (here document) + + + + Single-quoted here document + Documento integrado (here document) con comilla simple + + + + Double-quoted here document + Documento integrado (here document) con comilla doble + + + + Backtick here document + Documento integrado (here document) con comilla inversa + + + + Quoted string (q) + Cadena con comillas (q) + + + + Quoted string (qq) + Cadena con comillas (qq) + + + + Quoted string (qx) + Cadena con comillas (qx) + + + + Quoted string (qr) + Cadena con comillas (qr) + + + + Quoted string (qw) + Cadena con comillas (qw) + + + + POD verbatim + POD textual + + + + Subroutine prototype + Prototipo de subrutina + + + + Format identifier + Identificador de formato + + + + Format body + Cuerpo de formato + + + + Double-quoted string (interpolated variable) + Cadena con doble comilla (variable interpolada) + + + + Translation + Traducción + + + + Regular expression (interpolated variable) + Expresión regular (variable interpolada) + + + + Substitution (interpolated variable) + Substitución (variable interpolada) + + + + Backticks (interpolated variable) + Comilla hacia atrás (variable interpolada) + + + + Double-quoted here document (interpolated variable) + Here document con comilla doble (variable interpolada) + + + + Backtick here document (interpolated variable) + Here document con comilla hacia atrás (variable interpolada) + + + + Quoted string (qq, interpolated variable) + Cadena entrecomillada (qq, variable interpolada) + + + + Quoted string (qx, interpolated variable) + Cadena entrecomillada (qx, variable interpolada) + + + + Quoted string (qr, interpolated variable) + Cadena entrecomillada (qr, variable interpolada) + + + + QsciLexerPostScript + + + Default + Por defecto + + + + Comment + Comentario + + + + DSC comment + Comentario DSC + + + + DSC comment value + Valor de comentario DSC + + + + Number + Número + + + + Name + Nombre + + + + Keyword + Palabra clave + + + + Literal + Literal + + + + Immediately evaluated literal + Literal de evaluación inmediata + + + + Array parenthesis + Paréntesis de array + + + + Dictionary parenthesis + Paréntesis de diccionario + + + + Procedure parenthesis + Paréntesis de procedimiento + + + + Text + Texto + + + + Hexadecimal string + Cadena hexadecimal + + + + Base85 string + Cadena Base85 + + + + Bad string character + Carácter de cadena mala + + + + QsciLexerProperties + + + Default + Por defecto + + + + Comment + Comentario + + + + Section + Sección + + + + Assignment + Asignación + + + + Default value + Valor por defecto + + + + Key + Clave + + + + QsciLexerPython + + + Default + Por defecto + + + + Comment + Comentario + + + + Number + Número + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comillas simples + + + + Keyword + Palabra clave + + + + Triple single-quoted string + Cadena con triple comilla simple + + + + Triple double-quoted string + Cadena con triple comilla doble + + + + Class name + Nombre de clase + + + + Function or method name + Nombre de método o función + + + + Operator + Operador + + + + Identifier + Identificador + + + + Comment block + Bloque de comentario + + + + Unclosed string + Cadena sin cerrar + + + + Highlighted identifier + Identificador resaltado + + + + Decorator + Decorador + + + + QsciLexerRuby + + + Default + Por defecto + + + + Comment + Comentario + + + + Number + Número + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comillas simples + + + + Keyword + Palabra clave + + + + Class name + Nombre de clase + + + + Function or method name + Nombre de método o función + + + + Operator + Operador + + + + Identifier + Identificador + + + + Error + Error + + + + POD + POD + + + + Regular expression + Expresión regular + + + + Global + Global + + + + Symbol + Símbolo + + + + Module name + Nombre de módulo + + + + Instance variable + Variable de instancia + + + + Class variable + Variable de clase + + + + Backticks + Comilla inversa + + + + Data section + Sección de datos + + + + Here document delimiter + Delimitador de documento integrado (here document) + + + + Here document + Documento integrado (here document) + + + + %q string + Cadena %q + + + + %Q string + Cadena %Q + + + + %x string + Cadena %x + + + + %r string + Cadena %r + + + + %w string + Cadena %w + + + + Demoted keyword + Palabra clave degradada + + + + stdin + stdin + + + + stdout + stdout + + + + stderr + stderr + + + + QsciLexerSQL + + + Default + Por defecto + + + + Comment + Comentario + + + + Number + Número + + + + Keyword + Palabra clave + + + + Single-quoted string + Cadena con comillas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Comment line + Línea de comentario + + + + JavaDoc style comment + Comentario de estilo JavaDoc + + + + Double-quoted string + Cadena con comillas dobles + + + + SQL*Plus keyword + Palabra clave SQL*Plus + + + + SQL*Plus prompt + Prompt SQL*Plus + + + + SQL*Plus comment + Comentario SQL*Plus + + + + # comment line + # línea de comentario + + + + JavaDoc keyword + Palabra clave de Javadoc + + + + JavaDoc keyword error + Error en palabra clave de Javadoc + + + + User defined 1 + Definido por el usuario 1 + + + + User defined 2 + Definido por el usuario 2 + + + + User defined 3 + Definido por el usuario 3 + + + + User defined 4 + Definido por el usuario 4 + + + + Quoted identifier + Identificador entrecomillado + + + + QsciLexerSpice + + + Default + Por defecto + + + + Identifier + Identificador + + + + Command + Comando + + + + Function + Función + + + + Parameter + Parámetro + + + + Number + Número + + + + Delimiter + Delimitador + + + + Value + Valor + + + + Comment + Comentario + + + + QsciLexerTCL + + + Default + Por defecto + + + + Comment + Comentario + + + + Comment line + Línea de comentario + + + + Number + Número + + + + Quoted keyword + Palabra clave entrecomillada + + + + Quoted string + Cadena entrecomillada + + + + Operator + Operador + + + + Identifier + Identificador + + + + Substitution + Sustitución + + + + Brace substitution + Sustitución de corchetes + + + + Modifier + Modificador + + + + Expand keyword + Expandir palabra clave + + + + TCL keyword + Palabra clave TCL + + + + Tk keyword + Palabra clave Tk + + + + iTCL keyword + Palabra clave iTCL + + + + Tk command + Comando Tk + + + + User defined 1 + Definido por el usuario 1 + + + + User defined 2 + Definido por el usuario 2 + + + + User defined 3 + Definido por el usuario 3 + + + + User defined 4 + Definido por el usuario 4 + + + + Comment box + Caja de comentario + + + + Comment block + Bloque de comentario + + + + QsciLexerTeX + + + Default + Por defecto + + + + Special + Especial + + + + Group + Grupo + + + + Symbol + Símbolo + + + + Command + Comando + + + + Text + Texto + + + + QsciLexerVHDL + + + Default + Por defecto + + + + Comment + Comentario + + + + Comment line + Línea de comentario + + + + Number + Número + + + + String + Cadena de caracteres + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadena sin cerrar + + + + Keyword + Palabra clave + + + + Standard operator + Operador estándar + + + + Attribute + Atributo + + + + Standard function + Función estándar + + + + Standard package + Paquete estándar + + + + Standard type + Tipo estándar + + + + User defined + Definido por el usuario + + + + QsciLexerVerilog + + + Default + Por defecto + + + + Comment + Comentario + + + + Line comment + Comentario de línea + + + + Bang comment + Comentario'Bang + + + + Number + + + + + Primary keywords and identifiers + Identificadores y palabras clave primarios + + + + String + Cadena + + + + Secondary keywords and identifiers + Palabras clave e identificadores secundarios + + + + System task + Tarea de sistema + + + + Preprocessor block + Bloque de preprocesador + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadena sin cerrar + + + + User defined tasks and identifiers + Tareas definidas por el usuario e identificadores + + + + QsciLexerYAML + + + Default + Por defecto + + + + Comment + Comentario + + + + Identifier + Identificador + + + + Keyword + Palabra clave + + + + Number + Número + + + + Reference + Referencia + + + + Document delimiter + Delimitador de documento + + + + Text block marker + Marcador de bloque de texto + + + + Syntax error marker + Marcador de error de sintaxis + + + + Operator + Operador + + + + QsciScintilla + + + &Undo + &Deshacer + + + + &Redo + &Rehacer + + + + Cu&t + Cor&tar + + + + &Copy + &Copiar + + + + &Paste + &Pegar + + + + Delete + Borrar + + + + Select All + Seleccionar todo + + + diff --git a/Qt3/qscintilla_fr.qm b/Qt3/qscintilla_fr.qm new file mode 100644 index 0000000000000000000000000000000000000000..a5db0a22bcb72a5811212bb9b1218dc59d3d8eac GIT binary patch literal 48639 zcmd5l3wV^(u_q*($7Zt$2@qa}6_7_jzz`8AN+987c?1$3MJsNyn`C9P8}>m6h$xDR z??+KlR8Rr&L8+qFw$?thw!N)=fO=bPueTKh>$O$eYTJ9;JM+)}=l}Qr&;QzNv|m0Q zHrX?0&YYP!b7tn8GwbVt!9V`vo?SmZbNGvw?t9@ka~Ui3F}AXnv7P4=+7SF^>tTNoShD#7mO2wt~>;N1bX^setPcHjhCvFTfkjXp^5te+8_{Z)do zm)WWt_A@qQE4%pWXBewlO7Nk_*d^`+V;!%u=r@i+ztdU#?ROb#f0}K%4d|JBggyN9 zFBx02jqU&CCydQ+WY7K@zPIvu_R3Hg$Nin`CvWax?DC21o#;o5B?<^`n#4X1{*JN8 zn>m$Z`Z3n;)tum8A7E_Q`kXD>Ut?@&WzLq5;P->NbGCgS`uBe`=f1O!Ggi4d=aB(` z_sjEgzT1g-zeVuA7J?5a2tGO?=jSKk`@{c4(Dz${qoV{TikzAN^l~hpTelz6IuK((0VIA3(S-=k0$YEXn!Z zr%y9Bt|I3|-Acw-ZO)0WodEdLenpSH%-DiO{g!ro%Glsf`*oDnFjjDHzlYYn!Puos z`W>4A-!B5#1>bWI%=P9c;d|S2%a%d=!S3AiJa;fQ{h8cZGk|Zdy}7HO{t9Eu-^#t} z7tk)JEq6!7XvUU?b9WpD{$5g@d($;X85`J@``zd>jNN-I_h-ZR!+Z?O{ctwm@n4er z>B}&0dEd$_c=v9`nx4q3-E$UWXFrg4(SGQ!;{CjfK7jr!5_xSm90R%jV_tX+$iXGC zyn7abyg|$F9=ihieI@VZBhLdJkLJBrRLfZ4K;9dFcm(7+k@ttq-(&3j)h^e64FI|N zm#g3fFJsdt6YOdvcw;NU-Osy9J_7t}m%F?hH!S7mF0u?v~Y z*ZdC1=X}@bS)f0w4!I_-1Ns+6Ty?*i!`K(*5llWu@XC7$KKLoYNB#nEE`0AHf*S`B zyz*}Z_pTkZkL#j4 z{|xgMc3nIj_;JP-f@cmSI3|bSgjod7oknnG6~Wmj2*!64-25!Ttv?`mbs53ye@gI{ zFB81ub%MK7cpfOG&krRDJ~Ef!p{WEPzlq@Cm9E&}j~Sadl;E^G2|m%!wQ=qcuy==D zySHy=?97t{Z+y}9=*=(>n>M>1Ker#~LJoGTZCvJBgnQ<}b%l!loE^&Q$%W<%KXXIDE^nJ#z_*eeyOF#}++>pPn3w}TB zK>pTW4`Xb?V+7BAmSEkw{5yXZV66P5{5|8wG8X=J{@%wYfj-=v|Lm@Vj4h7mzi`_t zjI~~n|HIpWZ)Y4Pc;+I4qklzkLX_YXKf!Zj1ZOTISXV_b{u6@T9}wL9KEW%31h1Y? zaAyv|J3Rz$yjrJ!T4!lSMrY+jNb-!DBn{s?Q-DT13d-n zlD`9c|6W0$8szGRivWfI<^uc?z^4KJjj|11v4z+D9_XB2LvTYL!KEj+RZ?0RHO;Wz&AGGklo3r~Fv^sO&0e19jtBWiNaV z72Q^sVC=zBMUOuC2GIXN(G#D1!dP@y(O11s!Myyv=xdk2=azj%M|0rs!$%SvF`wYr zn+Q&h5S+S<;03!0_8cO3?T-oG-c0bWw+P;My6786z>eSg=b|6284Z5Q*Nfi#AMk;8 zcDPvx=qX;j9v7gd+fUa$L71MpK4;P>MDXerV!k<&An*D1z=Bh zxSLMGyxn#V!CgOe2d3vSHtQjRn?4}8FG29Y26tfA0KoTSf}_S0JZm|@S#J`&pn~9r zI)dF(3HGGEzvU=>zWfS;J9-G-d=J4}2NJw3_4~WL^!dKg1os^#_|R_&9(OgYl2~o_qa+6B#>L>D~~$1J>!ExOaUD{99A#-t$a=v1=E&_x*hZ_z$1BkGwt? z*10F$-?}LQ_T?nO5k&+?g$SN?JHfGy1Si)Joa!bxV=%$)}eRuKuKd5DFWEH_1Kk@YY z&%0rqHJ+kB&4Y0*_LPjj5#;?F1Roymx!`r^ucgtm`mb++o%kP5+p8ZjHu*1}sOx)- z`Em$e_dLOS+@6DHfW26r=lO2w%b<_q}FIPhyv$xX8xVBheklKU661AiwH zJnuPzGhZV(r-fj09>FWe5xmAraF?6lp^phZ@lMI(zfXXFeUf19WP*F1EBW4~CxEZ{ zC2vf+2IS+8k`H@e-WJ{M?RRW7*vD#bNh|QPFzziaJ`Mitz233k{3Y1;SG_YlJK%ej z-t!*`f*<~#ch$~UU|s&myZR`|)0h74{ql`K{}-S32JdPHKlxH`M>pVKeZ(6&5rg$_ zt2bN~0Q(>GcAtdr1y6dnl*0HImU-_(J~owmA1(xZBli)UxS!yZ-xEAixli0kFRQ()&sz z5A^9w@6Q(ly(Qh=W9z}6-S)Ki50}As&ws`H&l<4f)i)4abG&qL-5p?e)|8Ig3V3Rs zFRh&b^ba{)y5d#%eM>><&Kkh`~nt#i}~S~b77<4Wph{rev&NAf-F{un}>Y-uihVN4TcNgpT*1Lt)cp8XQw|B z$iX&iSv`wFn~m6l#aT%D;pW0>Hi_t4&TAww8Gz$@J&B_PDsBA!oPg16Ix== zarg%HALsp#sEHqus%nuhkz9_Az08c9|o>l3iV9giVn+ z)&=85j@jT5=R^PcXjhM~H5rQqBMDzP6cLYnjIe_^J1tFXE3jRfB#zcAq2;_4a+8Qo zvM$F&m(?c|c4^k)H>SA+v6_>70h`C#;KvUV6$JT0IZFV)12CB=hki*4ksYVtUpm?3 z>>1nuQkMwwF|>C0WB%4eFeYSF9cu#oUGRfAvNhUtLIS{CA+|WJoh(u05akz(h(i#dKhj%Gem$m3=m4 zs3c|z)B!@7WC=b|<4nhs>@ruNzBL5K3Y5_(3>By)quI#JWL2g3&D|3lX6n*j(`U@d zbc1R_ogw!w>lJlAaE8d)YKNu351+^fQ5zY(;U8tp#V&Bb+GGB%4xvvH=_Ro`&j8d- zO{$SS)Dvve2KG)i6%WG>k^0%^M50e1WN4yS48@tH`B%Ik*(b6?u?brxF9w7`>=Awz zav)khM(YIE?vl}0f*_)Dgb9`Z29h8m*^IH~q7dk{1Up%8hwE5twZ`^t;$;mJJEGck z)Q~zu>mTkF_hjuyN7>B!Yw0}Gh>PadzZ!xch$<%e6B&`wPcyX*{iy{Gx(@5Ks;6{V^*?iUjftfC8 zr=*QjWU^l>UlQFIwBc|x*y`7=Q=#eAP?VNh_G(vL(w&;h^ii9O$O;=oWaL~F)iNigg#z`dCeQSTL+ z-an%m5s{*0g!z;#v?U=<7R54&6;=zO^#sV0X>YMh>($UIHCm3=u2s@5VguEqHn&P1 zDQX{1+k8Nf_UjBW#pyQ6in{xOOK5A~7llf8{Gw{}sUiv>u@a5(Qd18m`xXZ`1!HqoHA&gN6)Eoub9FTF_<#Lk z8HeAF0}m_-w2??7vl75i>=iSBEs~(e*?3O%fQD$YB^*3^Lo%8O27K{EEEH)+4(Q1k z4lbGOkcD6fA&CS`C_rkFBXlo9|0~oMqEw9@jh8I}S`zGRXdY&#dBcJ)276>vt#36> zQdHC@*&~$o4@pvm<~TmjV$7qUiUB?15qa2BNg7&UViX05n7wAL4_PkcHU?2pWGb zIwGLM1I7xiL%LG9=EY(p7J?=hOA8?`>zIyD36-R>DA@R!QbIH{2@pQq)18)N1C0PW zi?iTo9*E|AHYxQ(pA@;MTo{a@RJ0~>3VeZJIMf+RSjWu)u^Ja)8Q(9BXZ1#N7r zrl9RalifDO(flwwr-0XLOHt7XG0{#)Q^$P4Olsewu;cy$x#u`>xpg4z*AikdO`4N+U*Ptp=o%qbxsyIdWoN zyejLIXeIMx-@b@i`?zsSIdq_PvSwn6TUkHKFoqI~_`_=dPK0t6pu{=}49t_irC!&S z3JF@_u!cwEPYzlb3eY+S)j{cLb5W;u6jIdA4J#5_C$;>$7W-Q$!Xj#6TOUP@%h)R5 z4SHFA@>;kA7q0ThLVoaBP+Ub#Gn140CI0n6X&K8zPL$Sm`J}Y4v~|iLl}6|f;lAes zE1!__Ex(ETb|Qq18LrSWl≷H>>Bp7uAbhvHHeFiRo3wIM@U>f#WHzpD@83ll|#a zTr`=AY?!)Uc-k@YRuv`PZG<59c%>;UEsGGE7B6pvBhaT_{ z)jr&?1>tB5S|-?k#)EMmnhe}71%hpoSEpx5Mvj0UO;x(r52RlR1H>(uw7&8AExpjc z(cchl^{p4}24n`+sJ$$S4LDqim8JF-hCK|_^xzB1zL}nCw9sUAb&}0{jRWI*V0w@O z@t7**9^;7~@XReVq0XdF&;$ql4$<^$r8!u;w+RFWy;pS&9XgxnW1x#FM>ph=qE~}f zx=U61a0d1Z@qkcQ0xF28dI-Q@xwzXy&$9`B&f%Sx)HgMq z;{zFjctfH`BRnY@%rMoYVXCpfG|q&k8lY|qn+pG*&9go<1M}QxG<$^ z4Yh$37_~zOP0!$L2y$;$_|y>cz?3xbQ5P?2uo!YVd>^AdQIHEN^i(R%iWYTtMPpE> zsflvQ?8?OArN|r#Q;#l4Qi>na%9?UZIPspwcrY1=o-Mf)Vp+@v(|cn*Qls%mVP{;$ zU`(9;+-AQf;3+e1v{3NT_K;1+lM@P_vXznb5v+_g*UM@^Dr6|=kP+$u9JM8@J<`4j zt(7_`>ssXxC#4OOUL$Ne{`!XKva5|T)fHii7(LNW&fwBj!B~qw5$aS$mrMEnyuJx4 z`@0ob4$<9q^)g( zXo90}eL<6s$Juq#x&D=}5c=RIeSB_?rwL8j&}+wQhzUJ??TVUoT@HqqN_+V^Dn8jo z_3DFCZf++VQc;$)+#4)8@;)wo7w&1$Y{9jNdSfoi)yS3Ix3&xWaU5;Sj7+W;i5>f- zZIgv0r52^7ozph3ZQQgCdlgaCBI|4I(DpY)%AsLSS{(`V;ob{=M=l@wC6ZeNVz2C_ zyepw@0McP?kSz}Q&OryZx5$<4RXXyTY#^V?RXrW~R1xx_kV00@eBqH=tOCGIrQ)}` z=L7;Ua``Nml6YwdwY5oBqYUhgIQJlBbRmX_eG3{oiNp(<+qVFM#$H$_Bd}#pu=jA@ zIoI+R2K@ob?h9I#fp;E-?E#Ob@^*!d(Rc_?K^u&@kpiEw8=PuCa1M( zqcj{bDsd7JJ;^ZrBxIN2B&f1df?nnuPPnE>4F+$*8s7Ub&48r?`Q~y^tuAS^+08&r zHxXX{CLCk0l0-mKx|pA->0F#J5)jh&a%g0Lv~n0vE2$CHuy8e<2rAwK9zhFu8R;oQ zfgEx<&`wair?Vw0-3%k(%cWVbwo)Q@X|ovaV3H*AWevO>>P|wX*|xQc|l1@+9knQnw)BJ2wUDnKoaHMru|9 zGpzkpY%;a}pt=ZVoEb#$#z~s&#I#K?lsoyGS37xy>1)u{j3VIc~`~@aZtM zJWe)o&bl>q*qj{NFz6P<#mbW!o;Hp4{HTeBO0WjPUg)FHvYGB~OY6s)v+JX&nql2> z4DN^6En*Sa7dLd@0DgWmo5QEtRo^hDd5*yvSf$R)1Ha^Y9qE9UDtPCa2la~4HlN>@ zprpN^a~~Xnz%a1v2I83~ti@UnzgYwFznGIWNX8cNty!|z*9P~S=#Qsxe&ERtJR66h zLFLp^{yZq0q8c0lEiK^7VKp5d?4TNN-C+VwC)N}gpKp@?suZ6$u?1)|j4=T6%EaY|){V+G{=R)UhZ&gC3+^T@Eam zgDR#RrZO|zgv;DqJFx~zuTDMYA=0QE_{xJcW>?FmVhN$CdCl&~jFx>GnS+&nm7$R{ ziJx$lvM$XXon9h~X4rPfZK*@r$Q)bKBvF9*S1K2_O^@+{Am9~Op>o^!s|{jSW=f^T zZmwERoPWW1V9uSY*$CCh9VnZAza}6@$X;{b=>kJ>BEi8VrhI#&S&ve+dCI}H5irzl z6U|WfS8>eLntXPZZz_^XJ6Aa{%q-MTp0B{WmlDaOB#0L)_;!Qxj zWW*#uZ{@BIRmp)pXLWdL;~@OrtYNi!K6lTER=LjapS^93r_?~vY`o3Wo9xZMCP^< zum83?!*Z8St>a)Ej{~zfS9@R&hM8&KL-l=cR2}*g==>nv##S&p=JwY(sGzsM>B!5F zTpOl#fW}Qr$KpmTrdD;RLGVp2h91OX5ogP$_!yZ)NqijG!of!3!;OP9G7B*nm*TLz z_rn_|DsueJ!VshGffl4Zg&oF=bo!q7cOC(oR@`5CG+ z4qP%grjis3Os#~^z)I-Rm8Q^Hn2YSol#$VpWy*owaFPX9%{44e<0KCv^AP;V6!)Bm z-}|0sBL-_|cEIOqh|no3sVPxTkQ>L7JT@X&#*rg!v`oQf z909EY|6Gc(S&Wl#nUBy(d`0QisZkyx@yLNm9t1&6eq9X=Q_Ci|gpi+*7I@XO-mI9C6 z`&7rhb)1y@@^yz29lkn)yq48~((_Si1G1Ho!fO;$(G4!+@_AN)twym-JC_b)OgnSR zk@S~Ooch)0)deWEnY%P}D(hM-BQ&;z)6_>-fifk55{F?@SVvGL!D+5o8A;t@D5X0# z%12%WRF5;<%xPqsBQN7JY+f`lMo=_hwyjg}n)?rUA2u!yw5Dk;Uj$|u(Otpmw%pD5 zbTJeoqzcjIdzvcEp2i4YDJRl&XEW15*vq;r)3kqc=3T*LSjA5V^YPk?o))r|@T0yl zAaCW$MGa_llw;Y88mJOHYX?Lt_{kE*w~%VhM?!`@y$BB@t+MNa@fO9aDxK?(hgyB| zrd@Nr$l|15!f5|QqcUE(t&_tt`qm32OMq8y&`~kGVKvSs!gxY#GW=G)Xh~akh$D_e z@CMU)ryy^yjQFhjXbf(Fh2v!LiN4U}sC36tyaz56?)0_!TSH+uMHDpPgZ&dv`jKRG zLPn3q&e<4!EAvw^`tKVXU=kyq?BWL4{S9o^Qd_VvAs@#;%( z^A#hYr_u7vj=qWQ(>nU5c-0189)vf)7+oFYfvbb~%|YqfFY^EytL6c*Q;_`Oj8)wW zr>Ck-sOosSO}?-Y6`@s?jUeU0J4)oshRsw6ug8WOUrr3Tj(7p_M5yn98~!BK>GUT$ z;#LO4Np+Z&bvC~kNM>|aPn_x*?-af1nbY2*H$8RQd-Szj0MZY&){2GPiOKKJS24Wc zu`LvKddZ^!0;`LD4Vu}u5C-itG7|>4uuKmxs8UMCrWjWdl#_1uQnunQ^4XsH)sva{L?8(J=o z!dAAWU)VYu6JQizG`xsdNQo0slpgPv?(=V4CdsjVG1N81+9N!>iT7qow^+gA8-Rad zB?KLbfzSolsFJzLOesdQo~^DCsU>mY~aE`k5=eAQMwqU>Ou)^X!ccdCt31}Wpp#4vORUP zuC!IeYdKL3kri~q2ztddi}?QgY1|;vs5py;Hp8{MFoT`Zfb>{K>LO0qB^r$3vvYCf zVLJ6eO)pi^3zk##HeK9IskiCk%INKfER+=lo)v<-{v9p?!sZ!SEg>dn9)M~DS=ho0 z39_`L!dA8ooUrxh>{+O|+Sghx9KILqnY>>I_k!Cf*PK|)FWoPz#LydqF_PdqSadN^ zVfHe`2KcM>!!m>9hh=;w&r$Gxd;44sN94qb6O13LcV(}O4wX}^1zr3I{DA+XS`j@B z{)8Vcd6iBe;~Fi%Xx{}AG|v2?khDDspZj4AX%7h5nVD>8Q5rGoheFcHQQ~$2R#t=ZNk7chR)!TJI;l?h48qM!F2sQz1zcuI-`X_$dI&~0y#s}uXG8TSsHIa8{4K^ z&^8~Urpr_}Dd#pWlhPuBuMVcKf@5ZMQLP6W`{4aJ>9SgbNgtVtucFV3)#tK>Lv6>J zvJEPk?Y~_8sG4uwhVceSv9=T?&lss1ZMhb0FYv}x@sXM2r5k4q~qHdj-s2u)f4HS18;z| zN91GHDm?U<0c1uUhouaW*!QOlQH<2oq?na*lr&I{tB+Tn7^3y2`;MH!1@JzHEaHZZ zP1Ve4$n zy5sdsNQsl8Xr;`}sM_0zCab4j{|!hps@N8i_8G=L6f4-Hq<^{>&rsY)A>clE4i6*&q7P8bbD*M(@PewN8)Uh$tlaY}^>(TV)9U?up z-n=Jb=Rr?-{%Ro7CfcB2F|XA#p1dErmq&FDKtCQk)=uBb(%9*n*tT{0rp5`pCbk^3 z7cZg>Loi0!yp;hPs~f|~xU90M|9Zswg9O$HRR;<52&<&pSe!R_W)v)o5xP=NA5_V9 zc4^+jlVuIdaC{cSV5E|1bFdYjqxOwrrSu4jtgW&x>;zKojzvnoX8ne3*n zP%G7qI$4QC?d>lhqShJNZV@6&OCxTCZ?fZswc@u0MQxn$OVN?$dRq6h6JgTh&4NcD zlW2cJ^<-o;oq9Bulc{f#!LlI_ID=@tzJI6I$)@p>X>^L-rt!-Zy-nknDSDg6PeyOg z_^IYBxJC+aWF+aSwjQW!q(fHl9zEYhxE8=ksjhS + + + + QsciCommand + + + Move down one line + Déplacement d'une ligne vers le bas + + + + Extend selection down one line + Extension de la sélection d'une ligne vers le bas + + + + Scroll view down one line + Decendre la vue d'une ligne + + + + Extend rectangular selection down one line + Extension de la sélection rectangulaire d'une ligne vers le bas + + + + Move up one line + Déplacement d'une ligne vers le haut + + + + Extend selection up one line + Extension de la sélection d'une ligne vers le haut + + + + Scroll view up one line + Remonter la vue d'une ligne + + + + Extend rectangular selection up one line + Extension de la sélection rectangulaire d'une ligne vers le haut + + + + Move up one paragraph + Déplacement d'un paragraphe vers le haut + + + + Extend selection up one paragraph + Extension de la sélection d'un paragraphe vers le haut + + + + Move down one paragraph + Déplacement d'un paragraphe vers le bas + + + + Scroll to start of document + + + + + Scroll to end of document + + + + + Scroll vertically to centre current line + + + + + Extend selection down one paragraph + Extension de la sélection d'un paragraphe vers le bas + + + + Move left one character + Déplacement d'un caractère vers la gauche + + + + Extend selection left one character + Extension de la sélection d'un caractère vers la gauche + + + + Move left one word + Déplacement d'un mot vers la gauche + + + + Extend selection left one word + Extension de la sélection d'un mot vers la gauche + + + + Extend rectangular selection left one character + Extension de la sélection rectangulaire d'un caractère vers la gauche + + + + Move right one character + Déplacement d'un caractère vers la droite + + + + Extend selection right one character + Extension de la sélection d'un caractère vers la droite + + + + Move right one word + Déplacement d'un mot vers la droite + + + + Extend selection right one word + Extension de la sélection d'un mot vers la droite + + + + Extend rectangular selection right one character + Extension de la sélection rectangulaire d'un caractère vers la droite + + + + Move to end of previous word + + + + + Extend selection to end of previous word + + + + + Move to end of next word + + + + + Extend selection to end of next word + + + + + Move left one word part + Déplacement d'une part de mot vers la gauche + + + + Extend selection left one word part + Extension de la sélection d'une part de mot vers la gauche + + + + Move right one word part + Déplacement d'une part de mot vers la droite + + + + Extend selection right one word part + Extension de la sélection d'une part de mot vers la droite + + + + Move up one page + Déplacement d'une page vers le haut + + + + Extend selection up one page + Extension de la sélection d'une page vers le haut + + + + Extend rectangular selection up one page + Extension de la sélection rectangulaire d'une page vers le haut + + + + Move down one page + Déplacement d'une page vers le bas + + + + Extend selection down one page + Extension de la sélection d'une page vers le bas + + + + Extend rectangular selection down one page + Extension de la sélection rectangulaire d'une page vers le bas + + + + Delete current character + Effacement du caractère courant + + + + Cut selection + Couper la sélection + + + + Delete word to right + Suppression du mot de droite + + + + Move to start of document line + + + + + Extend selection to start of document line + + + + + Extend rectangular selection to start of document line + + + + + Move to start of display line + + + + + Extend selection to start of display line + + + + + Move to start of display or document line + + + + + Extend selection to start of display or document line + + + + + Move to first visible character in document line + + + + + Extend selection to first visible character in document line + + + + + Extend rectangular selection to first visible character in document line + + + + + Move to first visible character of display in document line + + + + + Extend selection to first visible character in display or document line + + + + + Move to end of document line + + + + + Extend selection to end of document line + + + + + Extend rectangular selection to end of document line + + + + + Move to end of display line + + + + + Extend selection to end of display line + + + + + Move to end of display or document line + + + + + Extend selection to end of display or document line + + + + + Move to start of document + + + + + Extend selection to start of document + + + + + Move to end of document + + + + + Extend selection to end of document + + + + + Stuttered move up one page + + + + + Stuttered extend selection up one page + + + + + Stuttered move down one page + + + + + Stuttered extend selection down one page + + + + + Delete previous character if not at start of line + + + + + Delete right to end of next word + + + + + Delete line to right + Suppression de la partie droite de la ligne + + + + Transpose current and previous lines + + + + + Duplicate the current line + + + + + Select all + Select document + + + + + Move selected lines up one line + + + + + Move selected lines down one line + + + + + Toggle insert/overtype + Basculement Insertion /Ecrasement + + + + Paste + Coller + + + + Copy selection + Copier la sélection + + + + Insert newline + + + + + De-indent one level + + + + + Cancel + Annuler + + + + Delete previous character + Suppression du dernier caractère + + + + Delete word to left + Suppression du mot de gauche + + + + Delete line to left + Effacer la partie gauche de la ligne + + + + Undo last command + + + + + Redo last command + Refaire la dernière commande + + + + Indent one level + Indentation d'un niveau + + + + Zoom in + Zoom avant + + + + Zoom out + Zoom arrière + + + + Formfeed + Chargement de la page + + + + Cut current line + Couper la ligne courante + + + + Delete current line + Suppression de la ligne courante + + + + Copy current line + Copier la ligne courante + + + + Convert selection to lower case + Conversion de la ligne courante en minuscules + + + + Convert selection to upper case + Conversion de la ligne courante en majuscules + + + + Duplicate selection + + + + + QsciLexerAVS + + + Default + Par défaut + + + + Block comment + + + + + Nested block comment + + + + + Line comment + Commentaire de ligne + + + + Number + Nombre + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Triple double-quoted string + Chaine de caractères HTML (guillemets simples) + + + + Keyword + Mot-clé + + + + Filter + + + + + Plugin + + + + + Function + + + + + Clip property + + + + + User defined + + + + + QsciLexerBash + + + Default + Par défaut + + + + Error + Erreur + + + + Comment + Commentaire + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Scalar + Scalaire + + + + Parameter expansion + Extension de paramètre + + + + Backticks + Quotes inverses + + + + Here document delimiter + Délimiteur de texte intégré (cat <<EOF....EOF) + + + + Single-quoted here document + Document intégré guillemets simples + + + + QsciLexerBatch + + + Default + Par défaut + + + + Comment + Commentaire + + + + Keyword + Mot-clé + + + + Label + Titre + + + + Hide command character + Cacher le caratère de commande + + + + External command + Commande externe + + + + Variable + Variable + + + + Operator + Opérateur + + + + QsciLexerCMake + + + Default + Par défaut + + + + Comment + Commentaire + + + + String + Chaîne de caractères + + + + Left quoted string + + + + + Right quoted string + + + + + Function + + + + + Variable + Variable + + + + Label + Titre + + + + User defined + + + + + WHILE block + + + + + FOREACH block + + + + + IF block + + + + + MACRO block + + + + + Variable within a string + + + + + Number + Nombre + + + + QsciLexerCPP + + + Default + Par défaut + + + + Inactive default + + + + + C comment + Commentaire C + + + + Inactive C comment + + + + + C++ comment + Commentaire C++ + + + + Inactive C++ comment + + + + + JavaDoc style C comment + Commentaire C de style JavaDoc + + + + Inactive JavaDoc style C comment + + + + + Number + Nombre + + + + Inactive number + + + + + Keyword + Mot-clé + + + + Inactive keyword + + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Inactive double-quoted string + + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Inactive single-quoted string + + + + + IDL UUID + + + + + Inactive IDL UUID + + + + + Pre-processor block + Instructions de pré-processing + + + + Inactive pre-processor block + + + + + Operator + Opérateur + + + + Inactive operator + + + + + Identifier + Identificateur + + + + Inactive identifier + + + + + Unclosed string + Chaine de caractères non refermée + + + + Inactive unclosed string + + + + + C# verbatim string + + + + + Inactive C# verbatim string + + + + + JavaScript regular expression + Expression régulière JavaScript + + + + Inactive JavaScript regular expression + + + + + JavaDoc style C++ comment + Commentaire C++ de style JavaDoc + + + + Inactive JavaDoc style C++ comment + + + + + Secondary keywords and identifiers + Seconds mots-clés et identificateurs + + + + Inactive secondary keywords and identifiers + + + + + JavaDoc keyword + Mot-clé JavaDoc + + + + Inactive JavaDoc keyword + + + + + JavaDoc keyword error + Erreur de mot-clé JavaDoc + + + + Inactive JavaDoc keyword error + + + + + Global classes and typedefs + Classes globales et définitions de types + + + + Inactive global classes and typedefs + + + + + C++ raw string + + + + + Inactive C++ raw string + + + + + Vala triple-quoted verbatim string + + + + + Inactive Vala triple-quoted verbatim string + + + + + Pike hash-quoted string + + + + + Inactive Pike hash-quoted string + + + + + Pre-processor C comment + + + + + Inactive pre-processor C comment + + + + + JavaDoc style pre-processor comment + + + + + Inactive JavaDoc style pre-processor comment + + + + + QsciLexerCSS + + + Default + Par défaut + + + + Tag + Balise + + + + Class selector + Classe + + + + Pseudo-class + Pseudo-classe + + + + Unknown pseudo-class + Peudo-classe inconnue + + + + Operator + Opérateur + + + + CSS1 property + Propriété CSS1 + + + + Unknown property + Propriété inconnue + + + + Value + Valeur + + + + ID selector + ID + + + + Important + Important + + + + @-rule + règle-@ + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + CSS2 property + Propriété CSS2 + + + + Attribute + Attribut + + + + CSS3 property + Propriété CSS2 {3 ?} + + + + Pseudo-element + + + + + Extended CSS property + + + + + Extended pseudo-class + + + + + Extended pseudo-element + + + + + Media rule + + + + + Variable + Variable + + + + QsciLexerCSharp + + + Verbatim string + Chaine verbatim + + + + QsciLexerCoffeeScript + + + Default + Par défaut + + + + C-style comment + + + + + C++-style comment + + + + + JavaDoc C-style comment + + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + IDL UUID + + + + + Pre-processor block + Instructions de pré-processing + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Unclosed string + Chaine de caractères non refermée + + + + C# verbatim string + + + + + Regular expression + Expression régulière + + + + JavaDoc C++-style comment + + + + + Secondary keywords and identifiers + Seconds mots-clés et identificateurs + + + + JavaDoc keyword + Mot-clé JavaDoc + + + + JavaDoc keyword error + Erreur de mot-clé JavaDoc + + + + Global classes + + + + + Block comment + + + + + Block regular expression + + + + + Block regular expression comment + + + + + QsciLexerD + + + Default + Par défaut + + + + Block comment + + + + + Line comment + Commentaire de ligne + + + + DDoc style block comment + + + + + Nesting comment + + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Secondary keyword + + + + + Documentation keyword + + + + + Type definition + + + + + String + Chaîne de caractères + + + + Unclosed string + Chaine de caractères non refermée + + + + Character + Caractère + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + DDoc style line comment + + + + + DDoc keyword + Mot-clé JavaDoc + + + + DDoc keyword error + Erreur de mot-clé JavaDoc + + + + Backquoted string + + + + + Raw string + + + + + User defined 1 + Définition utilisateur 1 + + + + User defined 2 + Définition utilisateur 2 + + + + User defined 3 + Définition utilisateur 3 + + + + QsciLexerDiff + + + Default + Par défaut + + + + Comment + Commentaire + + + + Command + Commande + + + + Header + En-tête + + + + Position + Position + + + + Removed line + Ligne supprimée + + + + Added line + Ligne ajoutée + + + + Changed line + + + + + QsciLexerFortran77 + + + Default + Par défaut + + + + Comment + Commentaire + + + + Number + Nombre + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Unclosed string + Chaine de caractères non refermée + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Keyword + Mot-clé + + + + Intrinsic function + + + + + Extended function + + + + + Pre-processor block + Instructions de pré-processing + + + + Dotted operator + + + + + Label + Titre + + + + Continuation + + + + + QsciLexerHTML + + + HTML default + HTML par défaut + + + + Tag + Balise + + + + Unknown tag + Balise inconnue + + + + Attribute + Attribut + + + + Unknown attribute + Attribut inconnu + + + + HTML number + Nombre HTML + + + + HTML double-quoted string + Chaine de caractères HTML (guillemets doubles) + + + + HTML single-quoted string + Chaine de caractères HTML (guillemets simples) + + + + Other text in a tag + Autre texte dans les balises + + + + HTML comment + Commentaire HTML + + + + Entity + Entité + + + + End of a tag + Balise fermante + + + + Start of an XML fragment + Début de block XML + + + + End of an XML fragment + Fin de block XML + + + + Script tag + Balise de script + + + + Start of an ASP fragment with @ + Début de block ASP avec @ + + + + Start of an ASP fragment + Début de block ASP + + + + CDATA + CDATA + + + + Start of a PHP fragment + Début de block PHP + + + + Unquoted HTML value + Valeur HTML sans guillemets + + + + ASP X-Code comment + Commentaire X-Code ASP + + + + SGML default + SGML par défaut + + + + SGML command + Commande SGML + + + + First parameter of an SGML command + Premier paramètre de commande SGML + + + + SGML double-quoted string + Chaine de caractères SGML (guillemets doubles) + + + + SGML single-quoted string + Chaine de caractères SGML (guillemets simples) + + + + SGML error + Erreur SGML + + + + SGML special entity + Entité SGML spéciale + + + + SGML comment + Commentaire SGML + + + + First parameter comment of an SGML command + Premier paramètre de commentaire de commande SGML + + + + SGML block default + Block SGML par défaut + + + + Start of a JavaScript fragment + Début de block JavaScript + + + + JavaScript default + JavaScript par défaut + + + + JavaScript comment + Commentaire JavaScript + + + + JavaScript line comment + Commentaire de ligne JavaScript + + + + JavaDoc style JavaScript comment + Commentaire JavaScript de style JavaDoc + + + + JavaScript number + Nombre JavaScript + + + + JavaScript word + Mot JavaScript + + + + JavaScript keyword + Mot-clé JavaScript + + + + JavaScript double-quoted string + Chaine de caractères JavaScript (guillemets doubles) + + + + JavaScript single-quoted string + Chaine de caractères JavaScript (guillemets simples) + + + + JavaScript symbol + Symbole JavaScript + + + + JavaScript unclosed string + Chaine de caractères JavaScript non refermée + + + + JavaScript regular expression + Expression régulière JavaScript + + + + Start of an ASP JavaScript fragment + Début de block JavaScript ASP + + + + ASP JavaScript default + JavaScript ASP par défaut + + + + ASP JavaScript comment + Commentaire JavaScript ASP + + + + ASP JavaScript line comment + Commentaire de ligne JavaScript ASP + + + + JavaDoc style ASP JavaScript comment + Commentaire JavaScript ASP de style JavaDoc + + + + ASP JavaScript number + Nombre JavaScript ASP + + + + ASP JavaScript word + Mot JavaScript ASP + + + + ASP JavaScript keyword + Mot-clé JavaScript ASP + + + + ASP JavaScript double-quoted string + Chaine de caractères JavaScript ASP (guillemets doubles) + + + + ASP JavaScript single-quoted string + Chaine de caractères JavaScript ASP (guillemets simples) + + + + ASP JavaScript symbol + Symbole JavaScript ASP + + + + ASP JavaScript unclosed string + Chaine de caractères JavaScript ASP non refermée + + + + ASP JavaScript regular expression + Expression régulière JavaScript ASP + + + + Start of a VBScript fragment + Début de block VBScript + + + + VBScript default + VBScript par défaut + + + + VBScript comment + Commentaire VBScript + + + + VBScript number + Nombre VBScript + + + + VBScript keyword + Mot-clé VBScript + + + + VBScript string + Chaine de caractères VBScript + + + + VBScript identifier + Identificateur VBScript + + + + VBScript unclosed string + Chaine de caractères VBScript non refermée + + + + Start of an ASP VBScript fragment + Début de block VBScript ASP + + + + ASP VBScript default + VBScript ASP par défaut + + + + ASP VBScript comment + Commentaire VBScript ASP + + + + ASP VBScript number + Nombre VBScript ASP + + + + ASP VBScript keyword + Mot-clé VBScript ASP + + + + ASP VBScript string + Chaine de caractères VBScript ASP + + + + ASP VBScript identifier + Identificateur VBScript ASP + + + + ASP VBScript unclosed string + Chaine de caractères VBScript ASP non refermée + + + + Start of a Python fragment + Début de block Python + + + + Python default + Python par défaut + + + + Python comment + Commentaire Python + + + + Python number + Nombre Python + + + + Python double-quoted string + Chaine de caractères Python (guillemets doubles) + + + + Python single-quoted string + Chaine de caractères Python (guillemets simples) + + + + Python keyword + Mot-clé Python + + + + Python triple double-quoted string + Chaine de caractères Python (triples guillemets doubles) + + + + Python triple single-quoted string + Chaine de caractères Python (triples guillemets simples) + + + + Python class name + Nom de classe Python + + + + Python function or method name + Méthode ou fonction Python + + + + Python operator + Opérateur Python + + + + Python identifier + Identificateur Python + + + + Start of an ASP Python fragment + Début de block Python ASP + + + + ASP Python default + Python ASP par défaut + + + + ASP Python comment + Commentaire Python ASP + + + + ASP Python number + Nombre Python ASP + + + + ASP Python double-quoted string + Chaine de caractères Python ASP (guillemets doubles) + + + + ASP Python single-quoted string + Chaine de caractères Python ASP (guillemets simples) + + + + ASP Python keyword + Mot-clé Python ASP + + + + ASP Python triple double-quoted string + Chaine de caractères Python ASP (triples guillemets doubles) + + + + ASP Python triple single-quoted string + Chaine de caractères Python ASP (triples guillemets simples) + + + + ASP Python class name + Nom de classe Python ASP + + + + ASP Python function or method name + Méthode ou fonction Python ASP + + + + ASP Python operator + Opérateur Python ASP + + + + ASP Python identifier + Identificateur Python ASP + + + + PHP default + PHP par défaut + + + + PHP double-quoted string + Chaine de caractères PHP (guillemets doubles) + + + + PHP single-quoted string + Chaine de caractères PHP (guillemets simples) + + + + PHP keyword + Mot-clé PHP + + + + PHP number + Nombre PHP + + + + PHP variable + Variable PHP + + + + PHP comment + Commentaire PHP + + + + PHP line comment + Commentaire de ligne PHP + + + + PHP double-quoted variable + Variable PHP (guillemets doubles) + + + + PHP operator + Opérateur PHP + + + + QsciLexerIDL + + + UUID + UUID + + + + QsciLexerJavaScript + + + Regular expression + Expression régulière + + + + QsciLexerLua + + + Default + Par défaut + + + + Comment + Commentaire + + + + Line comment + Commentaire de ligne + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + String + Chaîne de caractères + + + + Character + Caractère + + + + Literal string + Chaîne littérale + + + + Preprocessor + Préprocessing + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Unclosed string + Chaine de caractères non refermée + + + + Basic functions + Fonctions de base + + + + String, table and maths functions + Fonctions sur les chaines, tables et fonctions math + + + + Coroutines, i/o and system facilities + Coroutines, i/o et fonctions système + + + + User defined 1 + Définition utilisateur 1 + + + + User defined 2 + Définition utilisateur 2 + + + + User defined 3 + Définition utilisateur 3 + + + + User defined 4 + Définition utilisateur 4 + + + + Label + Titre + + + + QsciLexerMakefile + + + Default + Par défaut + + + + Comment + Commentaire + + + + Preprocessor + Préprocessing + + + + Variable + Variable + + + + Operator + Opérateur + + + + Target + Cible + + + + Error + Erreur + + + + QsciLexerMatlab + + + Default + Par défaut + + + + Comment + Commentaire + + + + Command + Commande + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + QsciLexerPO + + + Default + Par défaut + + + + Comment + Commentaire + + + + Message identifier + + + + + Message identifier text + + + + + Message string + + + + + Message string text + + + + + Message context + + + + + Message context text + + + + + Fuzzy flag + + + + + Programmer comment + + + + + Reference + + + + + Flags + + + + + Message identifier text end-of-line + + + + + Message string text end-of-line + + + + + Message context text end-of-line + + + + + QsciLexerPOV + + + Default + Par défaut + + + + Comment + Commentaire + + + + Comment line + Ligne commentée + + + + Number + Nombre + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + String + Chaîne de caractères + + + + Unclosed string + Chaine de caractères non refermée + + + + Directive + Directive + + + + Bad directive + Mauvaise directive + + + + Objects, CSG and appearance + Objets, CSG et apparence + + + + Types, modifiers and items + Types, modifieurs et éléments + + + + Predefined identifiers + Identifiants prédéfinis + + + + Predefined functions + Fonctions prédéfinies + + + + User defined 1 + Définition utilisateur 1 + + + + User defined 2 + Définition utilisateur 2 + + + + User defined 3 + Définition utilisateur 3 + + + + QsciLexerPascal + + + Default + Par défaut + + + + Line comment + Commentaire de ligne + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + '{ ... }' style comment + + + + + '(* ... *)' style comment + + + + + '{$ ... }' style pre-processor block + + + + + '(*$ ... *)' style pre-processor block + + + + + Hexadecimal number + + + + + Unclosed string + Chaine de caractères non refermée + + + + Character + Caractère + + + + Inline asm + + + + + QsciLexerPerl + + + Default + Par défaut + + + + Error + Erreur + + + + Comment + Commentaire + + + + POD + POD + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Scalar + Scalaire + + + + Array + Tableau + + + + Hash + Hashage + + + + Symbol table + Table de symboles + + + + Regular expression + Expression régulière + + + + Substitution + Substitution + + + + Backticks + Quotes inverses + + + + Data section + Section de données + + + + Here document delimiter + Délimiteur de texte intégré (cat <<EOF....EOF) + + + + Single-quoted here document + Document intégré guillemets simples + + + + Double-quoted here document + Document intégré guillemets doubles + + + + Backtick here document + Document intégré quotes inverses + + + + Quoted string (q) + Chaine quotée (q) + + + + Quoted string (qq) + Chaine quotée (qq) + + + + Quoted string (qx) + Chaine quotée (qx) + + + + Quoted string (qr) + Chaine quotée (qr) + + + + Quoted string (qw) + Chaine quotée (qw) + + + + POD verbatim + POD verbatim + + + + Subroutine prototype + + + + + Format identifier + + + + + Format body + + + + + Double-quoted string (interpolated variable) + + + + + Translation + + + + + Regular expression (interpolated variable) + + + + + Substitution (interpolated variable) + + + + + Backticks (interpolated variable) + + + + + Double-quoted here document (interpolated variable) + + + + + Backtick here document (interpolated variable) + + + + + Quoted string (qq, interpolated variable) + + + + + Quoted string (qx, interpolated variable) + + + + + Quoted string (qr, interpolated variable) + + + + + QsciLexerPostScript + + + Default + Par défaut + + + + Comment + Commentaire + + + + DSC comment + + + + + DSC comment value + + + + + Number + Nombre + + + + Name + + + + + Keyword + Mot-clé + + + + Literal + + + + + Immediately evaluated literal + + + + + Array parenthesis + + + + + Dictionary parenthesis + + + + + Procedure parenthesis + + + + + Text + Texte + + + + Hexadecimal string + + + + + Base85 string + + + + + Bad string character + + + + + QsciLexerProperties + + + Default + Par défaut + + + + Comment + Commentaire + + + + Section + Section + + + + Assignment + Affectation + + + + Default value + Valeur par défaut + + + + Key + + + + + QsciLexerPython + + + Default + Par défaut + + + + Comment + Commentaire + + + + Number + Nombre + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Keyword + Mot-clé + + + + Triple single-quoted string + Chaine de caractères HTML (guillemets simples) + + + + Triple double-quoted string + Chaine de caractères HTML (guillemets simples) + + + + Class name + Nom de classe + + + + Function or method name + Nom de méthode ou de fonction + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Comment block + Block de commentaires + + + + Unclosed string + Chaine de caractères non refermée + + + + Highlighted identifier + + + + + Decorator + + + + + QsciLexerRuby + + + Default + Par défaut + + + + Comment + Commentaire + + + + Number + Nombre + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Keyword + Mot-clé + + + + Class name + Nom de classe + + + + Function or method name + Nom de méthode ou de fonction + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Error + Erreur + + + + POD + POD + + + + Regular expression + Expression régulière + + + + Global + + + + + Symbol + Symbole + + + + Module name + + + + + Instance variable + + + + + Class variable + + + + + Backticks + Quotes inverses + + + + Data section + Section de données + + + + Here document delimiter + Délimiteur de texte intégré (cat <<EOF....EOF) + + + + Here document + + + + + %q string + + + + + %Q string + + + + + %x string + + + + + %r string + + + + + %w string + + + + + Demoted keyword + + + + + stdin + + + + + stdout + + + + + stderr + + + + + QsciLexerSQL + + + Default + Par défaut + + + + Comment + Commentaire + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Comment line + Ligne commentée + + + + JavaDoc style comment + Commentaire style JavaDoc + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + SQL*Plus keyword + Mot-clé SQL*Plus + + + + SQL*Plus prompt + Prompt SQL*Plus + + + + SQL*Plus comment + Commentaire SQL*Plus + + + + # comment line + # Ligne commentée + + + + JavaDoc keyword + Mot-clé JavaDoc + + + + JavaDoc keyword error + Erreur de mot-clé JavaDoc + + + + User defined 1 + Définition utilisateur 1 + + + + User defined 2 + Définition utilisateur 2 + + + + User defined 3 + Définition utilisateur 3 + + + + User defined 4 + Définition utilisateur 4 + + + + Quoted identifier + + + + + QsciLexerSpice + + + Default + Par défaut + + + + Identifier + Identificateur + + + + Command + Commande + + + + Function + + + + + Parameter + + + + + Number + Nombre + + + + Delimiter + + + + + Value + Valeur + + + + Comment + Commentaire + + + + QsciLexerTCL + + + Default + Par défaut + + + + Comment + Commentaire + + + + Comment line + Ligne commentée + + + + Number + Nombre + + + + Quoted keyword + + + + + Quoted string + + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Substitution + Substitution + + + + Brace substitution + + + + + Modifier + + + + + Expand keyword + + + + + TCL keyword + + + + + Tk keyword + + + + + iTCL keyword + + + + + Tk command + + + + + User defined 1 + Définition utilisateur 1 + + + + User defined 2 + Définition utilisateur 2 + + + + User defined 3 + Définition utilisateur 3 + + + + User defined 4 + Définition utilisateur 4 + + + + Comment box + + + + + Comment block + Block de commentaires + + + + QsciLexerTeX + + + Default + Par défaut + + + + Special + Spécial + + + + Group + Groupe + + + + Symbol + Symbole + + + + Command + Commande + + + + Text + Texte + + + + QsciLexerVHDL + + + Default + Par défaut + + + + Comment + Commentaire + + + + Comment line + Ligne commentée + + + + Number + Nombre + + + + String + Chaîne de caractères + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Unclosed string + Chaine de caractères non refermée + + + + Keyword + Mot-clé + + + + Standard operator + + + + + Attribute + Attribut + + + + Standard function + + + + + Standard package + + + + + Standard type + + + + + User defined + + + + + QsciLexerVerilog + + + Default + Par défaut + + + + Comment + Commentaire + + + + Line comment + Commentaire de ligne + + + + Bang comment + + + + + Number + Nombre + + + + Primary keywords and identifiers + + + + + String + Chaîne de caractères + + + + Secondary keywords and identifiers + Seconds mots-clés et identificateurs + + + + System task + + + + + Preprocessor block + + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Unclosed string + Chaine de caractères non refermée + + + + User defined tasks and identifiers + + + + + QsciLexerYAML + + + Default + Par défaut + + + + Comment + Commentaire + + + + Identifier + Identificateur + + + + Keyword + Mot-clé + + + + Number + Nombre + + + + Reference + + + + + Document delimiter + + + + + Text block marker + + + + + Syntax error marker + + + + + Operator + Opérateur + + + + QsciScintilla + + + &Undo + + + + + &Redo + + + + + Cu&t + + + + + &Copy + + + + + &Paste + + + + + Delete + + + + + Select All + + + + diff --git a/Qt3/qscintilla_pt_br.qm b/Qt3/qscintilla_pt_br.qm new file mode 100644 index 0000000000000000000000000000000000000000..39f24e221c9cf499839ba04fa327311e658af442 GIT binary patch literal 48688 zcmd5l34D~*@h>EsW3$-=5;+3KB_MD73^w7Cml^APpG|Y;FxHaE=3aL-V~e)4d3SDR zY}01eu%nf+lZO)Qd4u5fYuUovUtnzSHnzC;ImSkRPH;>i!Sg;P82x~?+_0Omq1UrZ zuX&2G$)yAze4SnHj5F486^lIcBx4J|X0f+FV66Qjwr&gXG4pHo;1j=MZ0W6R_pkoR zSpC!NyT66+HGhx2S_=H%v!4CW@2+L+iWc^M%UJk78Nbc9j6$OM5b2>_oi3 zCAf28#_LDm_obBt%d!cMeuQAf9D-8{37-89!SnVKjP545b_cj-}1j|6YoMQ~dl z!5vAw_Z+6r4>b`y5XgA@W*CptUdnj;9)MMYGv59$eokb(`_&VSow_9B@XRHk3}CR3tcG7nhAn5O7S)p+-?w38Bb?1E0FKGGV!3}`# z)~r_^{XX!qA?uC28pixJS#SMi7wGRzS$|pkBgW3X(c$=03Fy)Nj-2P+jMX#|>nDUwZq-r%b0VAW7t`rFn06J1b6p2hWX-*&AZv*X?`E{ajRqObeJbg zb~~z80RMA7bjV0!R`wPUY$em{yPZn83C}4 zv2)HN*u9(J)vW~Y|AOG2IKXA2*!zrnceaa=kT;~NNGxt8F!vj{$X#PR5~ zOJTkw2=4vb@%hb%z|M`#u6+3=#;(lIKL2vi!;4mBujqpRAO8F7^}ij-SjFE6PWd&# z8TV%2_6t8_MccA>R*YvX^j!9R`zOJCcqRM0+xIed;i=irZ+Vrm*2lAdvIXQ;`XRxx z^#sdLC0Ow+!AUs;r`%3(>JEZ4RuYVTO|UnY;JOlm8xjPsnMH8(5`x<{5&YIzg7+>b zxO*nShki=%VJE=@zt8^V^HZTe8QF)f-^7^bqwKejKtI|p%*k=X{EM~b6z<*5Sl*R6 zg`YTJ{^sWld#IeTrYSiS&H}sQ_&R68m0*V)3v*va~NB8S?-kfZD6g|<*s^uBV+m1xmUaiK6%jDxmO(= z2KMsf-0R;1KF*Cp3VK&9^fmp zE-!Dx8^F(>^Ttgc&)CS(1h+5CJAVqaTm5q0%qy0FJuS|QY`YIWUzoRLW}LD6n)3GD z`xf|Vf8N9Y{3m0Pr}DnzejNP%IeCv=4xd|d@}A6q-;Y>KaMVVEV}C@j>NA38)DfKi z62ZP_30`-E;MNxi-nok4&NuR&c@*sUt>L`amW_pY-5cn-P;4J?1 z5csn?=kPz*K+N;3bNmMY$Ifw9KHdcVdxhY&3klva(m8+4493d7=WIFx<96#_f_Jnz z{Zq5R{=Q4F&qeToeFXPbI{nj27#meY(32ooeiy-WM-ZGom*ARaf<2cI?3+z+-G>CP zxQF1iI|$w~j^LID3EuiS!8;BR+&P5c18)=DHHhH8B>iu{LZ2Ub#Oc2h`=8}peQy=S zXD>U~1h#_SZFO${3gowRlym1(e#Wj_;=KRgiy@9!?R@mjS&Yq}>wNB}IE-Hz!BGnc zdY&Ly{u_d0Zzfpv9KkcP37#Dycy0^9>6-~gs|fb&B-po!;1y#Cu1~_NzoyUEc?jMT zB)H`W!L3Prcb-X~civC%!6d)Cw$bOkD+%uVHNpK3f{*;!`OCGSFO8#|A1-f(`I_bY zvUoRR?oXXxE0sA1HzL z;k)y%su>I48<~I0p_3r)IhWv~QBEAi&>~|LPS(7#r71uzCx@dvfxBIx7M3 z$)Ws%+X4TEy!<~baxivV3&A`8oB!7z*MOgFAo$IIYtXOnfcdc4mG{|f=+`z^!Gs$b z+d7%xt{JWwZvs8<)2^le_&vneOI&R~{{rmZHLi%`M-cDNCwTo^uDvINomli^*NcU( zzmg$h+{96lFyi*M8lb;sE*Tesph6qj_O)xfs z;KmmS?!T^J#`+?Im7=eILfc{{-~za%*AWP;~EPB3vL!K;2>f4gu{&^kGsMUB?v5V7-}1COcsL6Fr@$R5^D|cayu0TJd@r!dy{-`YKj#Mb zT`0$kzH&d93;0g?6T!+1f|IT%c;*s<=MN*eu94t18wh?g*?!v#^!Zy!JooK&KlpdB z53>%qcmME7pjYL7WI_*P+yBq~<2@zdS3h&V8qR`wROf!Z0r<`Th5O)Yh-0sO&Ha~E z(BE_a*ZtpWu;1ffC%E)T;qaMTL0(@Jj#&?QCSOxna~kkJ^y$LIKZpPKMhZ7q1Kvx2 zT)1UI9Q@Uu!l%NsVcoW^@CB4hpseuaL-6~O6@~9S{xYm%F9Rq3ouQeqKqz8$%*(>e z#{w(_KSgtK*^rHY>%3uKAd~|?=3f-^1?wW6o!+oN16$QYs|d8}hE`D)7yk7?YY&SF zcmnJL_8xr0!@3Zs@S9E+gckpXZ}?aOX-Sk$sf&cW1JSrA76=7=@n9tEiAOx4NKYW@ z@p)r`0c61oOju_j(bZ+d!dO8HU4Rn%=z%_A4?Be3dO<1)_$egya&TRwtIy+0M5BRl z+!G3h`TZKDLYg8_37K0!CdrE{p{nE{wE4pCz-3owowGtg(5Bd@hNZk55yiu<&9*A_!WvTl0ejg$_LuwT;6L8Nyu}|FUT(d|H7b1%2JZ- ziAW|IZ11p2hd&bGDnF5wzWn?GE!5dC3^Wcm-zrAocQ|dr!o(EpE_^e=I)yGP^-|`o6@C|l zc@mN2T{*iq9titAQ81d`aC;);jmk64F3A4J93dX)8$DSl`1(oqhiFpKQpypv)GyZ|yhts2+UP z_JR6<>Pw1UVaRc!%UG=kW)kYDby~dYs`NsOQnhOu%90Y49Ipj)&}fqvJqc+Il>s-p zl4-HX4Vg{Z@U#oQqfHfjYIz!?FQG07Bif_ht`4p*UT%>w9I|xnjg~o!HfEU(=0tO? z^tk4xP&<|qYv>=jB3qRPSG26~2yT={*B+k+A{6{M3^G3kvLiyX@#P!ju^QF0YJ{y$ z3ejBPaPq~*=j;>%&U8n&<0y_UpG_kH8V_!ROlsSy?qVqxIxsY+)-|tq>@53UM^X$znDE7EfSP8|8>o3K??eM53K-fdJnCm9zQD zh#Xfgv|J_o9A+O2SqyodUNk@K#}&E|ItRLSG9Wc<0k{~-f7p-Qhb)M62Q0Ycv$$0B zltJs{RCIKe;2aGdv!T|~8kX88;~}o+5Ht?Wap3jBb0RJIA>%N7hK6){j*w(45!E%1 zjk@$?7ndFfs%{%wK5e(tb6&%RVYce9rt5azj$0~L(bSdoLS1rJWzBau>P{Prx|+*{ zHCIw3bk)p#@U4%YT~M3l6dJlVVXCGVW;Q`h=OkrcjO~F-ne~*6x}(t>i}P~1=MiItLQmXlpPjE~aq0 z0d*{y)E2`l{*Y=-F{#|*v9XY^zbLaMM@(&v^mn=9twDZ z;TRa6zo$h0aEC;ANuqfi`arO(GHx_&u?BG#GA2 zIcQlbh42U2z>y3x+z&u@a3tmAt#dv`J;AmhrO$atP!>wFT_@~yzyM1;c3qj!L5$ni^KlY^Up$zkC%HlHq>M#p`=aCqV?m}7P{ zN@~JsGDGkg=n>H1;37kqU&7=?TUid11=SCK#^2y3s3_(bE0;t(Y+fLWWA96#pgsOT zDA*ZH?rCwzrZKg-SnSPh4hp`=6myc(#^R*pw5${ibCkU+$Pnk2?3Hjc5fdNio0Mj| zxDoPtov>jT^#ppmyx|yZH0#U)H!Or(+r#L6W3KLg^Ig4o68&XDyJcQ>Ybp-1m(7B?|)_Qr_|MTL}q4R=% z@^w&Ik-A;VBUvhFy>%DN!{LI!`Ag_GmSD(+-O=D}rA!B}jm3G&Z`uO02))QVf>V<7 zEV(V-XwVB045}`#X*ya`x4^qPAUHBRTB2-aRXWNxCeeu8Ik`~QJfsmAXpxYcRT>LGtwv* zUf}Ka)<=Av)x5QUIBGM&dPd=o?6%Qm>rujhNsr!1DtexP7^P|ZbC!;#r}RV^u9&b? z!l6*kgJB}ASiBD+bdy7N z&0Q=mjo-;g5wZrst~gYdP*n-UOVL0~44AZXwdsTBp|*>uIhE{#0d}~YUMQ(W{%Yy zN;sL6YZK&y)tAZ=yTT=5UnmmONsx%v$PHtSGX%2(6WL5js@XFqMiUgFD41-bL{AZ{ zx>1FKV67AIldKqdwQ=y(tqICqYFpwK7AhC2SP%$f;)nb|9i;x6*clQ71$9kLXLvxz zAV(4JQz=)H4>N4lDcGt_uvMAxRt;*oj!l7o&u8mXFi$bTTn;_MB4aFlqa_dZ84Ev? zzEZ;Hu0uzctY%ZEWixy)zvl05R~*P95V1WZgPXcS78N(*6a zBel<)-`N$3LY1H@qb7>dzAcrQZv^WYfC+#;dLmdT?O?hZV}XP}GEoR#_&R)IS)pX# zieLu>{UxsIuy=AEAhX%4O0|lDoUA*2P}wo3fa^s}1!1OMX{m~qgja{LX481K*8l+> zfy10MBT^y}F&z@8u%N&QNba|z#T!Zp3pVY{vbX@zHf*$I>@gt2>aHkgJC=mwXUcYB z%q(mGNm^gn5{R~XJOLCIjEYb#b1{5F(jgPxYG2ktYRe%Au zfm#k2kT@3W0t51P16c!9rV*_{TZ`t{0K?IaaSce93l&8e+bEYHi{X>B1d(Rwkj2~; zh5_~yCX_bd@dWT@2HYLp;M#!j5W&!6j4f5)ONx+Jr#!sll&o#NU}DoTJg$0G5<-o1 z;7rXBB`G=opeAUZ-BPzm!+dK|*xTAsw@*#&QTo8brmY%{sWntLuxJ9+&H9yBRU!?F}*)a=%h&Oed zUd!Vif9o-phV|A*WzUN1;W69&({E?8$EDZMq8Zm~eze0_J-R1A1gFQ^(RE6CRI8I# zl#0k?N5t7l5G-~RYm^Mg(AuU(k78FrQQIXOvw6)68U#a7&D)(2aRQ_i7iG)Um3eAP z;1pJYz@r_YQN3ZOQ(}AgA_w_f;3|Q738pWO+haO$~AXY8O zN@pNO|s8kmIf!wW-IY~t(EL90|dWdTRtR6~TyW%Hl?P`(i zXcbxhRvL$e4aZz7`2{^{y^N(4AMxsYq$ykl8SRfDmS}}&g0@i88K_uaXKO^be}p3? zJ5Jw#I1Hxo{!y7~7!%s2OC)*?7b4Z zv8|8Wm{oi}`eWlyQAojteV?Nl*-qG+#+)}5L_}ash}m%56c&%jahR8^eYt{-Hqd0@ zsvX$5hN8%hh~H@FCmU>FTh}moGg?Q(aQ8&tp&4~esR_nTtX$RTo=VyWFSwol_!_Q?#lU`nK6F|<;%Z0NB) zvWDT{^8S+rwK0yT8>8b^K-pnNS1>Rv1@hB&?mJbIsvAHSzs+<#y!l_X_#Y#s= zlJ-xKVc63&7dngorAa7DeZ7FgGmkG!!ityLm~mCE<_bsD5;tXnW^3g&50p+ho-X8H zS+va=jWU*O1$-MBcfw_C)a@L%ld1M6HXkAM&_+}~RAr#mBFh&L8XDqNHY}q3Uh;zm z>Zgr3p+!eU%$CzQ8FA+yr*-P;zaFNjTqr&^wX_)xxaB0_LR-AS`5ucr2^`?QF%@`Q z=10$!aAYN!xFI&MbMTln6gBBN_F1m7X$F6VH^UNDzw2`06bQ+sNv9+Iw~CONh-2II@8YWe6^9PZ>;hH{PODUZ5vM$p(&>!mcb zmO2%65i)MUD3_>0zEmtu#A0ZFhjY_|N;P#M4wFovo!Hp!u<{M4pkOvE=Wsm*lZ=Sa zPZQ<9T|SE&8WP^Y;vR!=Zp2^{qg=R1AtlN7NG2bYF#ueUfA@p%zEh*ie;f z42c#~K~flo7Nv}9QMAYklgLa=OZcd39N)l*I%mVi*s0o3=zxu2(#nQHc~Y+SHxuma z?+*VMGi4^x(-0v;CLEE)VpW5x9Pu^+{al>OLblBg7X2J< z8LR|^JfKPMh$G{E+40^o)&3at5rUj-nDZfuL;30is8c{Dovr7@bas+j_B+T|V(Ov| z-K~NyrevH2yMUKx(TP0DpsPDyEOb8B74QYUArGFY)=f>1h4g7k${h$$7>bAg)Q9bz z$@P?e68;=;a(GECl|PHPD7mjp!;3379+k4DINWwk>3+o`(Ih!vWs!1fFg#2_3u9Un zBGs0OXnk9$k`&djm{2>*A~n_Km*nI}DJV)?ZYDHmS)|DsKv133E!Z(K{jf)sFg0Pr zsvf1foK*6ssL6|AoAE9W74e#@uuAHh-j7z3w>kt?H957n!`0+WBs|sPK#SXpw7KI^ zTsNSRuSn6;6O4CwX6o$zS?ylxPF+g(EbY~)44X77#M96mpMY0+r`(Z{w1(P)(DGS_ z!QvTZukscJE^-w|7LezQ$n`C5y?pQ)5X##xV)jk#k}DRG zDQpXMiwCGV{TZjTG*!(DN$y3G{u>u#jN=qzhzujM>MCj(uW>|!dWWu!bFCSWvMzeNr$mq8{@vOc^fq z)>;lZmo0%m%DXDEmMocHkETjK>Oa4pYWoM^XmGJ~en^gFgmVLBP_00PkmA)^tx(*A zVI$t(AWz7`S>9OC=Mhs4s%vo?5?%qD^|PvSFU7Xj4?}6&wrG0cgFz44BinVC7dhq<&88n83Q{X=bd%D8{14bK_(4|R<^BU27t z*YK6wx*HfQ`82$~v@IC2dWES@!(1_sBQY#rU9Ho^qAk#Aou)z1!R8hY!czf}@@n4f zW^c4TAlzW3)6(J{L^`eA$@tsoq_}*2&;oBf>NUo2ai3U&qZSD6uGS|&INAU6X4)5moMuoDm?ZrylBz5NYHL`_0%+>mp3p( zKv#)(#Cjl9z&AMLr#lK}dHo)L5Ff7%cB}3bYh2V~b7IMsU2JPHfUBduUFil1Eh6*& zYuglo3B$ravJkTOWsuPwM{0&hGHvQC2)*)N#G&_Z=;+mEH?1f3QQH? z8y5IjJS;|}9*tbox(Wsn))RG2bA`~y3-6{wp)@=npXwRKp|Lo@v`k{1d+HjGj_P8V zCtjR_mE`hjuLOcn$YKbWqv$O8M6NJ@rG~kT{iTl!KxKJ8Ku`}Wqo`FeTAPXx)ogN&k z;8pD6Q3zhsL2WU3O$W8b;8jFzJxL+^1b9*l-mtJ}*tyNpuuwX9()I9)K3KH!4XQVV zxD1(EO>QfT#*Ewcgo+jvQa!pen=1;uZZvr_uw;=Owb7_oxb;}hmNy2Xq`j98*lR0z zZH3;0Nkhd4lRO5`tw=oKeqH|_Vvk2%WG}x+_<`H|~XN zg@tqA=&3oF%!40Jqvin{8s1snk@YDLV_6xOInDN5v8oS}v0sK8F62(BN7qa1fycAnh zuo>`&64Nu-1c_T~?^;RfpN5m+2+i(wt{fDmPJz?LqD$bk%!bVBBE`MmnT?BttrX5z zC(&00QDa@b)k~3GfYJl+E(#YT>!{B%8#!yMsf7x*MxhRaFH$~R=&4vUL5CGPhllO3 zqGV=>nwewHO;jNo4L8waEt?)AZhDS2H@!yO^y+al09%cmNoVU}ILVluI1j@~ES&(6 zCr7-)A#TB!Zz=bSkCdsev~)EkT4PXt2V0oxYb~X|jfJJKym=$Kt<)>2@XK}Hm+tjWX(?w+J%XC{hL8QrpT#`r6YKB8vC@|etB`MWE z>Y;Sj!iz%fVextZ1r~bl1ookACINL(m`Aa?P3cIB@C*VtSzNKI%Vi4csh-&*)%NHj zbINhKB*q+gxkprH-G-x54q9M3RdL6cgvv>;riiCs6zeRZI?|>zxy>t5YQHHUq(U~T z0}_wn$@8l~%&AycOL1048p2_7^zY^3l1d{` z*1?l@Hbz!1Qv<^#Z82Qtwmkv-7?&?Q)&53dD=xqW=Gka2n|5mU?X$_R*%#lp)~nj* zGJ4E1QnE7lKbf;Q(b^{%-L%ZN93M$|tj8go#{EtTNo<(gY7Y71ZmBsu9UVK(A(V!d z=3=pDqd6!{Ei|W%Mf=QYX`arIbZS7?YZBHIz&&up;)XC#aX+r){Ih8(lDY_y`htao z`d3^jZ(qjOBIM(9VOA|x{ZrzHo$65xFA|$$R);x zcm^N4twm{WYqV{SyQ$H#l!gJ&B1z{N9OLJB#eo~Rw{WaH$176RyHp-C$!51lNp$F@ zCdCN|t=#M`ptTrG&8D`AMXRZ8SfxA9@uW!;y9i$GKuriidPH7k6@gGI8$*ehIK}zX zsajaVVo__iklM$EWU`bRkYnQC3JJx*3N8P5s|?l!<729w-%u;u*`<1)Qq+_a zz>aG>dKBsr#QxerZLuC99n==<5z;|zv6xmwZKXETEtSzWbp?G?Lu=ie@miZZA6~08 zY&{Q+smgwrGJw)K)BzLX3fB7SsOPHclwI#A;bMqbWtoj=6Ab zt1H!~Hz#QnLAig*4F*!HoF=-mfZxu-GK9yR!A^ko>-KL!Zkd-nENI;@$xAG$vAGT5 zG)lvWaIvJjN>^}i^4u1OtVK)2Y1ywzR1UtQo2%mxw5};dQiuRgLkB~Vc8img-!2V( z;Uh}3ijj}Z)Qj<(S=1kX;}hmpUOs#M(r`Y?qpRe6n%4DPo+KC7Cf`-FV-clBX=pfy UwB7YL2ZgCpbJ|$cXjRMq2kt9_djJ3c literal 0 HcmV?d00001 diff --git a/Qt3/qscintilla_pt_br.ts b/Qt3/qscintilla_pt_br.ts new file mode 100644 index 0000000..5538ae1 --- /dev/null +++ b/Qt3/qscintilla_pt_br.ts @@ -0,0 +1,3612 @@ + + + + + QsciCommand + + + Move down one line + Mover uma linha para baixo + + + + Extend selection down one line + Extender a seleção uma linha para baixo + + + + Scroll view down one line + Descer a visão uma linha para baixo + + + + Extend rectangular selection down one line + Extender a seleção retangular uma linha para baixo + + + + Move up one line + Mover uma linha para cima + + + + Extend selection up one line + Extender a seleção uma linha para cima + + + + Scroll view up one line + Subir a visão uma linha para cima + + + + Extend rectangular selection up one line + Extender a seleção retangular uma linha para cima + + + + Move up one paragraph + Mover um paragrafo para cima + + + + Extend selection up one paragraph + Extender a seleção um paragrafo para cima + + + + Move down one paragraph + Mover um paragrafo para baixo + + + + Scroll to start of document + + + + + Scroll to end of document + + + + + Scroll vertically to centre current line + + + + + Extend selection down one paragraph + Extender a seleção um paragrafo para baixo + + + + Move left one character + Mover um caractere para a esquerda + + + + Extend selection left one character + Extender a seleção um caractere para esquerda + + + + Move left one word + Mover uma palavra para esquerda + + + + Extend selection left one word + Extender a seleção uma palavra para esquerda + + + + Extend rectangular selection left one character + Extender a seleção retangular um caractere para esquerda + + + + Move right one character + Mover um caractere para direita + + + + Extend selection right one character + Extender a seleção um caractere para direita + + + + Move right one word + Mover uma palavra para direita + + + + Extend selection right one word + Extender a seleção uma palavra para direita + + + + Extend rectangular selection right one character + Extender a seleção retangular um caractere para direita + + + + Move to end of previous word + + + + + Extend selection to end of previous word + + + + + Move to end of next word + + + + + Extend selection to end of next word + + + + + Move left one word part + Mover uma parte da palavra para esquerda + + + + Extend selection left one word part + Extender a seleção uma parte de palavra para esquerda + + + + Move right one word part + Mover uma parte da palavra para direita + + + + Extend selection right one word part + Extender a seleção uma parte de palavra para direita + + + + Move up one page + Mover uma página para cima + + + + Extend selection up one page + Extender a seleção uma página para cima + + + + Extend rectangular selection up one page + Extender a seleção retangular uma página para cima + + + + Move down one page + Mover uma página para baixo + + + + Extend selection down one page + Extender a seleção uma página para baixo + + + + Extend rectangular selection down one page + Extender a seleção retangular uma página para baixo + + + + Delete current character + Excluir caractere atual + + + + Cut selection + Recortar seleção + + + + Delete word to right + Excluir palavra para direita + + + + Move to start of document line + + + + + Extend selection to start of document line + + + + + Extend rectangular selection to start of document line + + + + + Move to start of display line + + + + + Extend selection to start of display line + + + + + Move to start of display or document line + + + + + Extend selection to start of display or document line + + + + + Move to first visible character in document line + + + + + Extend selection to first visible character in document line + + + + + Extend rectangular selection to first visible character in document line + + + + + Move to first visible character of display in document line + + + + + Extend selection to first visible character in display or document line + + + + + Move to end of document line + + + + + Extend selection to end of document line + + + + + Extend rectangular selection to end of document line + + + + + Move to end of display line + + + + + Extend selection to end of display line + + + + + Move to end of display or document line + + + + + Extend selection to end of display or document line + + + + + Move to start of document + + + + + Extend selection to start of document + + + + + Move to end of document + + + + + Extend selection to end of document + + + + + Stuttered move up one page + + + + + Stuttered extend selection up one page + + + + + Stuttered move down one page + + + + + Stuttered extend selection down one page + + + + + Delete previous character if not at start of line + + + + + Delete right to end of next word + + + + + Delete line to right + Excluir linha para direita + + + + Transpose current and previous lines + + + + + Duplicate the current line + + + + + Select all + Select document + + + + + Move selected lines up one line + + + + + Move selected lines down one line + + + + + Toggle insert/overtype + Alternar entre modo de inserir/sobreescrever + + + + Paste + Copiar + + + + Copy selection + Copiar seleção + + + + Insert newline + + + + + De-indent one level + + + + + Cancel + Cancelar + + + + Delete previous character + Excluir caractere anterior + + + + Delete word to left + Excluir palavra a esquerda + + + + Delete line to left + Excluir linha a esquerda + + + + Undo last command + + + + + Redo last command + Refazer último comando + + + + Indent one level + Indentar um nível + + + + Zoom in + Aumentar zoom + + + + Zoom out + Diminuir zoom + + + + Formfeed + Alimentação da Página + + + + Cut current line + Configurar linha atual + + + + Delete current line + Excluir linha atual + + + + Copy current line + Copiar linha atual + + + + Convert selection to lower case + Converter a seleção para minúscula + + + + Convert selection to upper case + Converter a seleção para maiúscula + + + + Duplicate selection + + + + + QsciLexerAVS + + + Default + Padrão + + + + Block comment + + + + + Nested block comment + + + + + Line comment + Comentar Linha + + + + Number + Número + + + + Operator + Operador + + + + Identifier + Identificador + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Triple double-quoted string + Cadeia de caracteres envolvida por três aspas duplas + + + + Keyword + Palavra Chave + + + + Filter + + + + + Plugin + + + + + Function + + + + + Clip property + + + + + User defined + + + + + QsciLexerBash + + + Default + Padrão + + + + Error + Número + + + + Comment + Comentário + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Scalar + Escalar + + + + Parameter expansion + Parâmetro de Expansão + + + + Backticks + Aspas Invertidas + + + + Here document delimiter + Delimitador de "here documents" + + + + Single-quoted here document + "here document" envolvido por aspas simples + + + + QsciLexerBatch + + + Default + Padrão + + + + Comment + Comentário + + + + Keyword + Palavra Chave + + + + Label + Rótulo + + + + Hide command character + Esconder caractere de comando + + + + External command + Comando externo + + + + Variable + Variável + + + + Operator + Operador + + + + QsciLexerCMake + + + Default + Padrão + + + + Comment + Comentário + + + + String + Cadeia de Caracteres + + + + Left quoted string + + + + + Right quoted string + + + + + Function + + + + + Variable + Variável + + + + Label + Rótulo + + + + User defined + + + + + WHILE block + + + + + FOREACH block + + + + + IF block + + + + + MACRO block + + + + + Variable within a string + + + + + Number + Número + + + + QsciLexerCPP + + + Default + Padrão + + + + Inactive default + + + + + C comment + Comentário C + + + + Inactive C comment + + + + + C++ comment + Comentário C++ + + + + Inactive C++ comment + + + + + JavaDoc style C comment + Comentário JavaDoc estilo C + + + + Inactive JavaDoc style C comment + + + + + Number + Número + + + + Inactive number + + + + + Keyword + Palavra Chave + + + + Inactive keyword + + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Inactive double-quoted string + + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Inactive single-quoted string + + + + + IDL UUID + + + + + Inactive IDL UUID + + + + + Pre-processor block + Instruções de pré-processamento + + + + Inactive pre-processor block + + + + + Operator + Operador + + + + Inactive operator + + + + + Identifier + Identificador + + + + Inactive identifier + + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Inactive unclosed string + + + + + C# verbatim string + + + + + Inactive C# verbatim string + + + + + JavaScript regular expression + Expressão regular JavaScript + + + + Inactive JavaScript regular expression + + + + + JavaDoc style C++ comment + Comentário JavaDoc estilo C++ + + + + Inactive JavaDoc style C++ comment + + + + + Secondary keywords and identifiers + Identificadores e palavras chave secundárias + + + + Inactive secondary keywords and identifiers + + + + + JavaDoc keyword + Palavra chave JavaDoc + + + + Inactive JavaDoc keyword + + + + + JavaDoc keyword error + Erro de palavra chave do JavaDoc + + + + Inactive JavaDoc keyword error + + + + + Global classes and typedefs + Classes e definições de tipo globais + + + + Inactive global classes and typedefs + + + + + C++ raw string + + + + + Inactive C++ raw string + + + + + Vala triple-quoted verbatim string + + + + + Inactive Vala triple-quoted verbatim string + + + + + Pike hash-quoted string + + + + + Inactive Pike hash-quoted string + + + + + Pre-processor C comment + + + + + Inactive pre-processor C comment + + + + + JavaDoc style pre-processor comment + + + + + Inactive JavaDoc style pre-processor comment + + + + + QsciLexerCSS + + + Default + Padrão + + + + Tag + Marcador + + + + Class selector + Seletor de classe + + + + Pseudo-class + Pseudo-classe + + + + Unknown pseudo-class + Pseudo-classe desconhecida + + + + Operator + Operador + + + + CSS1 property + Propriedade CSS1 + + + + Unknown property + Propriedade desconhecida + + + + Value + Valor + + + + ID selector + Seletor de ID + + + + Important + Importante + + + + @-rule + regra-@ + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + CSS2 property + Propriedade CSS2 + + + + Attribute + Atributo + + + + CSS3 property + Propriedade CSS2 {3 ?} + + + + Pseudo-element + + + + + Extended CSS property + + + + + Extended pseudo-class + + + + + Extended pseudo-element + + + + + Media rule + + + + + Variable + Variável + + + + QsciLexerCSharp + + + Verbatim string + Cadeia de caracteres no formato verbatim + + + + QsciLexerCoffeeScript + + + Default + Padrão + + + + C-style comment + + + + + C++-style comment + + + + + JavaDoc C-style comment + + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + IDL UUID + + + + + Pre-processor block + Instruções de pré-processamento + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadeia de caracteres não fechada + + + + C# verbatim string + + + + + Regular expression + Expressão Regular + + + + JavaDoc C++-style comment + + + + + Secondary keywords and identifiers + Identificadores e palavras chave secundárias + + + + JavaDoc keyword + Palavra chave JavaDoc + + + + JavaDoc keyword error + Erro de palavra chave do JavaDoc + + + + Global classes + + + + + Block comment + + + + + Block regular expression + + + + + Block regular expression comment + + + + + QsciLexerD + + + Default + Padrão + + + + Block comment + + + + + Line comment + Comentar Linha + + + + DDoc style block comment + + + + + Nesting comment + + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Secondary keyword + + + + + Documentation keyword + + + + + Type definition + + + + + String + Cadeia de Caracteres + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Character + Caractere + + + + Operator + Operador + + + + Identifier + Identificador + + + + DDoc style line comment + + + + + DDoc keyword + Palavra chave JavaDoc + + + + DDoc keyword error + Erro de palavra chave do JavaDoc + + + + Backquoted string + + + + + Raw string + + + + + User defined 1 + Definição de usuário 1 + + + + User defined 2 + Definição de usuário 2 + + + + User defined 3 + Definição de usuário 3 + + + + QsciLexerDiff + + + Default + Padrão + + + + Comment + Comentário + + + + Command + Comando + + + + Header + Cabeçalho + + + + Position + Posição + + + + Removed line + Linha Removida + + + + Added line + Linha Adicionada + + + + Changed line + + + + + QsciLexerFortran77 + + + Default + Padrão + + + + Comment + Comentário + + + + Number + Número + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Operator + Operador + + + + Identifier + Identificador + + + + Keyword + Palavra Chave + + + + Intrinsic function + + + + + Extended function + + + + + Pre-processor block + Instruções de pré-processamento + + + + Dotted operator + + + + + Label + Rótulo + + + + Continuation + + + + + QsciLexerHTML + + + HTML default + HTML por padrão + + + + Tag + Marcador + + + + Unknown tag + Marcador desconhecido + + + + Attribute + Atributo + + + + Unknown attribute + Atributo desconhecido + + + + HTML number + Número HTML + + + + HTML double-quoted string + Cadeia de caracteres HTML envolvida por aspas duplas + + + + HTML single-quoted string + Cadeia de caracteres HTML envolvida por aspas simples + + + + Other text in a tag + Outro texto em um marcador + + + + HTML comment + Comentário HTML + + + + Entity + Entidade + + + + End of a tag + Final de um marcador + + + + Start of an XML fragment + Início de um bloco XML + + + + End of an XML fragment + Final de um bloco XML + + + + Script tag + Marcador de script + + + + Start of an ASP fragment with @ + Início de um bloco ASP com @ + + + + Start of an ASP fragment + Início de um bloco ASP + + + + CDATA + CDATA + + + + Start of a PHP fragment + Início de um bloco PHP + + + + Unquoted HTML value + Valor HTML não envolvido por aspas + + + + ASP X-Code comment + Comentário ASP X-Code + + + + SGML default + SGML por padrão + + + + SGML command + Comando SGML + + + + First parameter of an SGML command + Primeiro parâmetro em um comando SGML + + + + SGML double-quoted string + Cadeia de caracteres SGML envolvida por aspas duplas + + + + SGML single-quoted string + Cadeia de caracteres SGML envolvida por aspas simples + + + + SGML error + Erro SGML + + + + SGML special entity + Entidade especial SGML + + + + SGML comment + Comando SGML + + + + First parameter comment of an SGML command + Primeiro comentário de parâmetro de uma comando SGML + + + + SGML block default + Bloco SGML por padrão + + + + Start of a JavaScript fragment + Início de um bloco Javascript + + + + JavaScript default + JavaScript por padrão + + + + JavaScript comment + Comentário JavaScript + + + + JavaScript line comment + Comentário de linha JavaScript + + + + JavaDoc style JavaScript comment + Comentário JavaScript no estilo JavaDoc + + + + JavaScript number + Número JavaScript + + + + JavaScript word + Palavra JavaScript + + + + JavaScript keyword + Palavra chave JavaScript + + + + JavaScript double-quoted string + Cadeia de caracteres JavaScript envolvida por aspas duplas + + + + JavaScript single-quoted string + Cadeia de caracteres JavaScript envolvida por aspas simples + + + + JavaScript symbol + Símbolo JavaScript + + + + JavaScript unclosed string + Cadeia de caracteres JavaScript não fechada + + + + JavaScript regular expression + Expressão regular JavaScript + + + + Start of an ASP JavaScript fragment + Início de um bloco Javascript ASP + + + + ASP JavaScript default + JavaScript ASP por padrão + + + + ASP JavaScript comment + Comentário JavaScript ASP + + + + ASP JavaScript line comment + Comentário de linha JavaScript ASP + + + + JavaDoc style ASP JavaScript comment + Comentário JavaScript ASP no estilo JavaDoc + + + + ASP JavaScript number + Número JavaScript ASP + + + + ASP JavaScript word + Palavra chave JavaScript ASP + + + + ASP JavaScript keyword + Palavra chave JavaScript ASP + + + + ASP JavaScript double-quoted string + Cadeia de caracteres JavaScript ASP envolvida por aspas duplas + + + + ASP JavaScript single-quoted string + Cadeia de caracteres JavaScript ASP envolvida por aspas simples + + + + ASP JavaScript symbol + Símbolo JavaScript ASP + + + + ASP JavaScript unclosed string + Cadeia de caracteres JavaScript ASP não fechada + + + + ASP JavaScript regular expression + Expressão regular JavaScript ASP + + + + Start of a VBScript fragment + Início de um bloco VBScript + + + + VBScript default + VBScript por padrão + + + + VBScript comment + Comentário VBScript + + + + VBScript number + Número VBScript + + + + VBScript keyword + Palavra chave VBScript + + + + VBScript string + Cadeia de caracteres VBScript + + + + VBScript identifier + Identificador VBScript + + + + VBScript unclosed string + Cadeia de caracteres VBScript não fechada + + + + Start of an ASP VBScript fragment + Início de um bloco VBScript ASP + + + + ASP VBScript default + VBScript ASP por padrão + + + + ASP VBScript comment + Comentário VBScript ASP + + + + ASP VBScript number + Número VBScript ASP + + + + ASP VBScript keyword + Palavra chave VBScript ASP + + + + ASP VBScript string + Cadeia de caracteres VBScript ASP + + + + ASP VBScript identifier + Identificador VBScript ASP + + + + ASP VBScript unclosed string + Cadeia de caracteres VBScript ASP não fechada + + + + Start of a Python fragment + Início de um bloco Python + + + + Python default + Python por padrão + + + + Python comment + Comentário Python + + + + Python number + Número Python + + + + Python double-quoted string + Cadeia de caracteres Python envolvida por aspas duplas + + + + Python single-quoted string + Cadeia de caracteres Python envolvida por aspas simples + + + + Python keyword + Palavra chave Python + + + + Python triple double-quoted string + Cadeia de caracteres Python envolvida por aspas triplas duplas + + + + Python triple single-quoted string + Cadeia de caracteres Python envolvida por aspas triplas simples + + + + Python class name + Nome de classe Python + + + + Python function or method name + Nome de método ou função Python + + + + Python operator + Operador Python + + + + Python identifier + Identificador Python + + + + Start of an ASP Python fragment + Início de um bloco Python ASP + + + + ASP Python default + Python ASP por padrão + + + + ASP Python comment + Comentário Python ASP + + + + ASP Python number + Número Python ASP + + + + ASP Python double-quoted string + Cadeia de caracteres Python ASP envolvida por aspas duplas + + + + ASP Python single-quoted string + Cadeia de caracteres Python ASP envolvida por aspas simples + + + + ASP Python keyword + Palavra chave Python ASP + + + + ASP Python triple double-quoted string + Cadeia de caracteres Python ASP envolvida por aspas triplas duplas + + + + ASP Python triple single-quoted string + Cadeia de caracteres Python ASP envolvida por aspas triplas simples + + + + ASP Python class name + Nome de classe Python ASP + + + + ASP Python function or method name + Nome de método ou função Python ASP + + + + ASP Python operator + Operador Python ASP + + + + ASP Python identifier + Identificador Python ASP + + + + PHP default + PHP por padrão + + + + PHP double-quoted string + Cadeia de caracteres PHP envolvida por aspas duplas + + + + PHP single-quoted string + Cadeia de caracteres PHP envolvida por aspas simples + + + + PHP keyword + Palavra chave PHP + + + + PHP number + Número PHP + + + + PHP variable + Variável PHP + + + + PHP comment + Comentário PHP + + + + PHP line comment + Comentário de linha PHP + + + + PHP double-quoted variable + Variável PHP envolvida por aspas duplas + + + + PHP operator + Operador PHP + + + + QsciLexerIDL + + + UUID + UUID + + + + QsciLexerJavaScript + + + Regular expression + Expressão Regular + + + + QsciLexerLua + + + Default + Padrão + + + + Comment + Comentário + + + + Line comment + Comentar Linha + + + + Number + Número + + + + Keyword + Palavra Chave + + + + String + Cadeia de Caracteres + + + + Character + Caractere + + + + Literal string + Cadeia de caracteres literal + + + + Preprocessor + Preprocessador + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Basic functions + Funções básicas + + + + String, table and maths functions + Funções de cadeia de caracteres e de tabelas matemáticas + + + + Coroutines, i/o and system facilities + Funções auxiiares, e/s e funções de sistema + + + + User defined 1 + Definição de usuário 1 + + + + User defined 2 + Definição de usuário 2 + + + + User defined 3 + Definição de usuário 3 + + + + User defined 4 + Definição de usuário 4 + + + + Label + Rótulo + + + + QsciLexerMakefile + + + Default + Padrão + + + + Comment + Comentário + + + + Preprocessor + Preprocessador + + + + Variable + Variável + + + + Operator + Operador + + + + Target + Destino + + + + Error + Erro + + + + QsciLexerMatlab + + + Default + Padrão + + + + Comment + Comentário + + + + Command + Comando + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + QsciLexerPO + + + Default + Padrão + + + + Comment + Comentário + + + + Message identifier + + + + + Message identifier text + + + + + Message string + + + + + Message string text + + + + + Message context + + + + + Message context text + + + + + Fuzzy flag + + + + + Programmer comment + + + + + Reference + + + + + Flags + + + + + Message identifier text end-of-line + + + + + Message string text end-of-line + + + + + Message context text end-of-line + + + + + QsciLexerPOV + + + Default + Padrão + + + + Comment + Comentário + + + + Comment line + Comentar Linha + + + + Number + Número + + + + Operator + Operador + + + + Identifier + Identificador + + + + String + Cadeia de Caracteres + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Directive + Diretiva + + + + Bad directive + Diretiva ruim + + + + Objects, CSG and appearance + Objetos, CSG e aparência + + + + Types, modifiers and items + Tipos, modificadores e itens + + + + Predefined identifiers + Identificadores predefinidos + + + + Predefined functions + Funções predefinidas + + + + User defined 1 + Definição de usuário 1 + + + + User defined 2 + Definição de usuário 2 + + + + User defined 3 + Definição de usuário 3 + + + + QsciLexerPascal + + + Default + Padrão + + + + Line comment + Comentar Linha + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + '{ ... }' style comment + + + + + '(* ... *)' style comment + + + + + '{$ ... }' style pre-processor block + + + + + '(*$ ... *)' style pre-processor block + + + + + Hexadecimal number + + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Character + Caractere + + + + Inline asm + + + + + QsciLexerPerl + + + Default + Padrão + + + + Error + Erro + + + + Comment + Comentário + + + + POD + POD + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Scalar + Escalar + + + + Array + Vetor + + + + Hash + Hash + + + + Symbol table + Tabela de Símbolos + + + + Regular expression + Expressão Regular + + + + Substitution + Substituição + + + + Backticks + Aspas Invertidas + + + + Data section + Seção de dados + + + + Here document delimiter + Delimitador de documentos criados através de redicionadores (>> e >) + + + + Single-quoted here document + "here document" envolvido por aspas simples + + + + Double-quoted here document + "here document" envolvido por aspas duplas + + + + Backtick here document + "here document" envolvido por aspas invertidas + + + + Quoted string (q) + Cadeia de caracteres envolvida por aspas (q) + + + + Quoted string (qq) + Cadeia de caracteres envolvida por aspas (qq) + + + + Quoted string (qx) + Cadeia de caracteres envolvida por aspas (qx) + + + + Quoted string (qr) + Cadeia de caracteres envolvida por aspas (qr) + + + + Quoted string (qw) + Cadeia de caracteres envolvida por aspas (qw) + + + + POD verbatim + POD em formato verbatim + + + + Subroutine prototype + + + + + Format identifier + + + + + Format body + + + + + Double-quoted string (interpolated variable) + + + + + Translation + + + + + Regular expression (interpolated variable) + + + + + Substitution (interpolated variable) + + + + + Backticks (interpolated variable) + + + + + Double-quoted here document (interpolated variable) + + + + + Backtick here document (interpolated variable) + + + + + Quoted string (qq, interpolated variable) + + + + + Quoted string (qx, interpolated variable) + + + + + Quoted string (qr, interpolated variable) + + + + + QsciLexerPostScript + + + Default + Padrão + + + + Comment + Comentário + + + + DSC comment + + + + + DSC comment value + + + + + Number + Número + + + + Name + + + + + Keyword + Palavra Chave + + + + Literal + + + + + Immediately evaluated literal + + + + + Array parenthesis + + + + + Dictionary parenthesis + + + + + Procedure parenthesis + + + + + Text + Texto + + + + Hexadecimal string + + + + + Base85 string + + + + + Bad string character + + + + + QsciLexerProperties + + + Default + Padrão + + + + Comment + Comentário + + + + Section + Seção + + + + Assignment + Atribuição + + + + Default value + Valor Padrão + + + + Key + + + + + QsciLexerPython + + + Default + Padrão + + + + Comment + Comentário + + + + Number + Número + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Keyword + Palavra Chave + + + + Triple single-quoted string + Cadeia de caracteres envolvida por três aspas simples + + + + Triple double-quoted string + Cadeia de caracteres envolvida por três aspas duplas + + + + Class name + Nome da classe + + + + Function or method name + Nome da função ou método + + + + Operator + Operador + + + + Identifier + Identificador + + + + Comment block + Bloco de comentários + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Highlighted identifier + + + + + Decorator + + + + + QsciLexerRuby + + + Default + Padrão + + + + Comment + Comentário + + + + Number + Número + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Keyword + Palavra Chave + + + + Class name + Nome da classe + + + + Function or method name + Nome da função ou método + + + + Operator + Operador + + + + Identifier + Identificador + + + + Error + + + + + POD + POD + + + + Regular expression + Expressão Regular + + + + Global + + + + + Symbol + Símbolo + + + + Module name + + + + + Instance variable + + + + + Class variable + + + + + Backticks + Aspas Invertidas + + + + Data section + Seção de dados + + + + Here document delimiter + + + + + Here document + + + + + %q string + + + + + %Q string + + + + + %x string + + + + + %r string + + + + + %w string + + + + + Demoted keyword + + + + + stdin + + + + + stdout + + + + + stderr + + + + + QsciLexerSQL + + + Default + Padrão + + + + Comment + Comentário + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Comment line + Comentário de Linha + + + + JavaDoc style comment + Comentário estilo JavaDoc + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + SQL*Plus keyword + Palavra chave do SQL*Plus + + + + SQL*Plus prompt + Prompt do SQL*Plus + + + + SQL*Plus comment + Comentário do SQL*Plus + + + + # comment line + Comentário de linha usando # + + + + JavaDoc keyword + Palavra chave JavaDoc + + + + JavaDoc keyword error + Erro de palavra chave do JavaDoc + + + + User defined 1 + Definição de usuário 1 + + + + User defined 2 + Definição de usuário 2 + + + + User defined 3 + Definição de usuário 3 + + + + User defined 4 + Definição de usuário 4 + + + + Quoted identifier + + + + + QsciLexerSpice + + + Default + Padrão + + + + Identifier + Identificador + + + + Command + Comando + + + + Function + + + + + Parameter + + + + + Number + Número + + + + Delimiter + + + + + Value + Valor + + + + Comment + Comentário + + + + QsciLexerTCL + + + Default + Padrão + + + + Comment + Comentário + + + + Comment line + + + + + Number + Número + + + + Quoted keyword + + + + + Quoted string + + + + + Operator + Operador + + + + Identifier + Identificador + + + + Substitution + Substituição + + + + Brace substitution + + + + + Modifier + + + + + Expand keyword + + + + + TCL keyword + + + + + Tk keyword + + + + + iTCL keyword + + + + + Tk command + + + + + User defined 1 + Definição de usuário 1 + + + + User defined 2 + Definição de usuário 2 + + + + User defined 3 + Definição de usuário 3 + + + + User defined 4 + Definição de usuário 4 + + + + Comment box + + + + + Comment block + Bloco de comentários + + + + QsciLexerTeX + + + Default + Padrão + + + + Special + Especial + + + + Group + Grupo + + + + Symbol + Símbolo + + + + Command + Comando + + + + Text + Texto + + + + QsciLexerVHDL + + + Default + Padrão + + + + Comment + Comentário + + + + Comment line + + + + + Number + Número + + + + String + Cadeia de Caracteres + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Keyword + Palavra Chave + + + + Standard operator + + + + + Attribute + Atributo + + + + Standard function + + + + + Standard package + + + + + Standard type + + + + + User defined + + + + + QsciLexerVerilog + + + Default + Padrão + + + + Comment + Comentário + + + + Line comment + Comentar Linha + + + + Bang comment + + + + + Number + Número + + + + Primary keywords and identifiers + + + + + String + Cadeia de Caracteres + + + + Secondary keywords and identifiers + Identificadores e palavras chave secundárias + + + + System task + + + + + Preprocessor block + + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadeia de caracteres não fechada + + + + User defined tasks and identifiers + + + + + QsciLexerYAML + + + Default + Padrão + + + + Comment + Comentário + + + + Identifier + Identificador + + + + Keyword + Palavra Chave + + + + Number + Número + + + + Reference + + + + + Document delimiter + + + + + Text block marker + + + + + Syntax error marker + + + + + Operator + Operador + + + + QsciScintilla + + + &Undo + + + + + &Redo + + + + + Cu&t + + + + + &Copy + + + + + &Paste + + + + + Delete + + + + + Select All + + + + diff --git a/Qt3/qsciprinter.cpp b/Qt3/qsciprinter.cpp new file mode 100644 index 0000000..b20a50a --- /dev/null +++ b/Qt3/qsciprinter.cpp @@ -0,0 +1,195 @@ +// This module implements the QsciPrinter class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qsciprinter.h" + +#if !defined(QT_NO_PRINTER) + +#include +#include + +#include +#include + +#include "Qsci/qsciscintillabase.h" + + +// The ctor. +QsciPrinter::QsciPrinter(QPrinter::PrinterMode mode) + : QPrinter(mode), mag(0), wrap(QsciScintilla::WrapWord) +{ +} + + +// The dtor. +QsciPrinter::~QsciPrinter() +{ +} + + +// Format the page before the document text is drawn. +void QsciPrinter::formatPage(QPainter &, bool, QRect &, int) +{ +} + + +// Print a range of lines to a printer. +int QsciPrinter::printRange(QsciScintillaBase *qsb, int from, int to) +{ + // Sanity check. + if (!qsb) + return false; + + // Setup the printing area. + QRect def_area; + + def_area.setX(0); + def_area.setY(0); + + QPaintDeviceMetrics metrics(this); + def_area.setWidth(metrics.width()); + def_area.setHeight(metrics.height()); + + // Get the page range. + int pgFrom, pgTo; + + pgFrom = fromPage(); + pgTo = toPage(); + + // Find the position range. + long startPos, endPos; + + endPos = qsb->SendScintilla(QsciScintillaBase::SCI_GETLENGTH); + + startPos = (from > 0 ? qsb -> SendScintilla(QsciScintillaBase::SCI_POSITIONFROMLINE,from) : 0); + + if (to >= 0) + { + long toPos = qsb -> SendScintilla(QsciScintillaBase::SCI_POSITIONFROMLINE,to + 1); + + if (endPos > toPos) + endPos = toPos; + } + + if (startPos >= endPos) + return false; + + QPainter painter(this); + bool reverse = (pageOrder() == LastPageFirst); + bool needNewPage = false; + + qsb -> SendScintilla(QsciScintillaBase::SCI_SETPRINTMAGNIFICATION,mag); + qsb -> SendScintilla(QsciScintillaBase::SCI_SETPRINTWRAPMODE,wrap); + + for (int i = 1; i <= numCopies(); ++i) + { + // If we are printing in reverse page order then remember the start + // position of each page. + QValueStack pageStarts; + + int currPage = 1; + long pos = startPos; + + while (pos < endPos) + { + // See if we have finished the requested page range. + if (pgTo > 0 && pgTo < currPage) + break; + + // See if we are going to render this page, or just see how much + // would fit onto it. + bool render = false; + + if (pgFrom == 0 || pgFrom <= currPage) + { + if (reverse) + pageStarts.push(pos); + else + { + render = true; + + if (needNewPage) + { + if (!newPage()) + return false; + } + else + needNewPage = true; + } + } + + QRect area = def_area; + + formatPage(painter,render,area,currPage); + pos = qsb -> SendScintilla(QsciScintillaBase::SCI_FORMATRANGE,render,&painter,area,pos,endPos); + + ++currPage; + } + + // All done if we are printing in normal page order. + if (!reverse) + continue; + + // Now go through each page on the stack and really print it. + while (!pageStarts.isEmpty()) + { + --currPage; + + long ePos = pos; + pos = pageStarts.pop(); + + if (needNewPage) + { + if (!newPage()) + return false; + } + else + needNewPage = true; + + QRect area = def_area; + + formatPage(painter,true,area,currPage); + qsb->SendScintilla(QsciScintillaBase::SCI_FORMATRANGE,true,&painter,area,pos,ePos); + } + } + + return true; +} + + +// Set the print magnification in points. +void QsciPrinter::setMagnification(int magnification) +{ + mag = magnification; +} + + +// Set the line wrap mode. +void QsciPrinter::setWrapMode(QsciScintilla::WrapMode wmode) +{ + wrap = wmode; +} + +#endif diff --git a/Qt3/qsciscintilla.cpp b/Qt3/qsciscintilla.cpp new file mode 100644 index 0000000..6e71633 --- /dev/null +++ b/Qt3/qsciscintilla.cpp @@ -0,0 +1,4171 @@ +// This module implements the "official" high-level API of the Qt port of +// Scintilla. It is modelled on QTextEdit - a method of the same name should +// behave in the same way. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qsciscintilla.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +#include "Qsci/qsciabstractapis.h" +#include "Qsci/qscicommandset.h" +#include "Qsci/qscilexer.h" +#include "Qsci/qscistyle.h" +#include "Qsci/qscistyledtext.h" + + +// Make sure these match the values in Scintilla.h. We don't #include that +// file because it just causes more clashes. +#define KEYWORDSET_MAX 8 +#define MARKER_MAX 31 + +// The list separators for auto-completion and user lists. +const char acSeparator = '\x03'; +const char userSeparator = '\x04'; + +// The default fold margin width. +static const int defaultFoldMarginWidth = 14; + +// The default set of characters that make up a word. +static const char *defaultWordChars = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; + + +// The ctor. +QsciScintilla::QsciScintilla(QWidget *parent, const char *name, Qt::WFlags f) + : QsciScintillaBase(parent, name, f), + allocatedMarkers(0), allocatedIndicators(7), oldPos(-1), selText(false), + fold(NoFoldStyle), foldmargin(2), autoInd(false), + braceMode(NoBraceMatch), acSource(AcsNone), acThresh(-1), + wchars(defaultWordChars), call_tips_position(CallTipsBelowText), + call_tips_style(CallTipsNoContext), maxCallTips(-1), + use_single(AcusNever), explicit_fillups(""), fillups_enabled(false) +{ + connect(this,SIGNAL(SCN_MODIFYATTEMPTRO()), + SIGNAL(modificationAttempted())); + + connect(this,SIGNAL(SCN_MODIFIED(int,int,const char *,int,int,int,int,int,int,int)), + SLOT(handleModified(int,int,const char *,int,int,int,int,int,int,int))); + connect(this,SIGNAL(SCN_CALLTIPCLICK(int)), + SLOT(handleCallTipClick(int))); + connect(this,SIGNAL(SCN_CHARADDED(int)), + SLOT(handleCharAdded(int))); + connect(this,SIGNAL(SCN_INDICATORCLICK(int,int)), + SLOT(handleIndicatorClick(int,int))); + connect(this,SIGNAL(SCN_INDICATORRELEASE(int,int)), + SLOT(handleIndicatorRelease(int,int))); + connect(this,SIGNAL(SCN_MARGINCLICK(int,int,int)), + SLOT(handleMarginClick(int,int,int))); + connect(this,SIGNAL(SCN_SAVEPOINTREACHED()), + SLOT(handleSavePointReached())); + connect(this,SIGNAL(SCN_SAVEPOINTLEFT()), + SLOT(handleSavePointLeft())); + connect(this,SIGNAL(SCN_UPDATEUI(int)), + SLOT(handleUpdateUI(int))); + connect(this,SIGNAL(QSCN_SELCHANGED(bool)), + SLOT(handleSelectionChanged(bool))); + connect(this,SIGNAL(SCN_AUTOCSELECTION(const char *,int)), + SLOT(handleAutoCompletionSelection())); + connect(this,SIGNAL(SCN_USERLISTSELECTION(const char *,int)), + SLOT(handleUserListSelection(const char *,int))); + + // Set the default font. + setFont(QApplication::font()); + + // Set the default fore and background colours. + QColorGroup cg = QApplication::palette().active(); + setColor(cg.text()); + setPaper(cg.base()); + setSelectionForegroundColor(cg.highlightedText()); + setSelectionBackgroundColor(cg.highlight()); + +#if defined(Q_OS_WIN) + setEolMode(EolWindows); +#else + // Note that EolMac is pre-OS/X. + setEolMode(EolUnix); +#endif + + // Capturing the mouse seems to cause problems on multi-head systems. Qt + // should do the right thing anyway. + SendScintilla(SCI_SETMOUSEDOWNCAPTURES, 0UL); + + setMatchedBraceForegroundColor(Qt::blue); + setUnmatchedBraceForegroundColor(Qt::red); + + setAnnotationDisplay(AnnotationStandard); + setLexer(); + + // Set the visible policy. These are the same as SciTE's defaults + // which, presumably, are sensible. + SendScintilla(SCI_SETVISIBLEPOLICY, VISIBLE_STRICT | VISIBLE_SLOP, 4); + + // The default behaviour is unexpected. + SendScintilla(SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR, + SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE); + + // Create the standard command set. + stdCmds = new QsciCommandSet(this); + + doc.display(this,0); +} + + +// The dtor. +QsciScintilla::~QsciScintilla() +{ + // Detach any current lexer. + detachLexer(); + + doc.undisplay(this); + delete stdCmds; +} + + +// Return the current text colour. +QColor QsciScintilla::color() const +{ + return nl_text_colour; +} + + +// Set the text colour. +void QsciScintilla::setColor(const QColor &c) +{ + if (lex.isNull()) + { + // Assume style 0 applies to everything so that we don't need to use + // SCI_STYLECLEARALL which clears everything. + SendScintilla(SCI_STYLESETFORE, 0, c); + nl_text_colour = c; + } +} + + +// Return the overwrite mode. +bool QsciScintilla::overwriteMode() const +{ + return SendScintilla(SCI_GETOVERTYPE); +} + + +// Set the overwrite mode. +void QsciScintilla::setOverwriteMode(bool overwrite) +{ + SendScintilla(SCI_SETOVERTYPE, overwrite); +} + + +// Return the current paper colour. +QColor QsciScintilla::paper() const +{ + return nl_paper_colour; +} + + +// Set the paper colour. +void QsciScintilla::setPaper(const QColor &c) +{ + if (lex.isNull()) + { + // Assume style 0 applies to everything so that we don't need to use + // SCI_STYLECLEARALL which clears everything. We still have to set the + // default style as well for the background without any text. + SendScintilla(SCI_STYLESETBACK, 0, c); + SendScintilla(SCI_STYLESETBACK, STYLE_DEFAULT, c); + nl_paper_colour = c; + } +} + + +// Set the default font. +void QsciScintilla::setFont(const QFont &f) +{ + if (lex.isNull()) + { + // Assume style 0 applies to everything so that we don't need to use + // SCI_STYLECLEARALL which clears everything. + setStylesFont(f, 0); + QWidget::setFont(f); + } +} + + +// Enable/disable auto-indent. +void QsciScintilla::setAutoIndent(bool autoindent) +{ + autoInd = autoindent; +} + + +// Set the brace matching mode. +void QsciScintilla::setBraceMatching(BraceMatch bm) +{ + braceMode = bm; +} + + +// Handle the addition of a character. +void QsciScintilla::handleCharAdded(int ch) +{ + // Ignore if there is a selection. + long pos = SendScintilla(SCI_GETSELECTIONSTART); + + if (pos != SendScintilla(SCI_GETSELECTIONEND) || pos == 0) + return; + + // If auto-completion is already active then see if this character is a + // start character. If it is then create a new list which will be a subset + // of the current one. The case where it isn't a start character seems to + // be handled correctly elsewhere. + if (isListActive()) + { + if (isStartChar(ch)) + { + cancelList(); + startAutoCompletion(acSource, false, use_single == AcusAlways); + } + + return; + } + + // Handle call tips. + if (call_tips_style != CallTipsNone && !lex.isNull() && strchr("(),", ch) != NULL) + callTip(); + + // Handle auto-indentation. + if (autoInd) + if (lex.isNull() || (lex->autoIndentStyle() & AiMaintain)) + maintainIndentation(ch, pos); + else + autoIndentation(ch, pos); + + // See if we might want to start auto-completion. + if (!isCallTipActive() && acSource != AcsNone) + if (isStartChar(ch)) + startAutoCompletion(acSource, false, use_single == AcusAlways); + else if (acThresh >= 1 && isWordCharacter(ch)) + startAutoCompletion(acSource, true, use_single == AcusAlways); +} + + +// See if a call tip is active. +bool QsciScintilla::isCallTipActive() const +{ + return SendScintilla(SCI_CALLTIPACTIVE); +} + + +// Handle a possible change to any current call tip. +void QsciScintilla::callTip() +{ + QsciAbstractAPIs *apis = lex->apis(); + + if (!apis) + return; + + int pos, commas = 0; + bool found = false; + char ch; + + pos = SendScintilla(SCI_GETCURRENTPOS); + + // Move backwards through the line looking for the start of the current + // call tip and working out which argument it is. + while ((ch = getCharacter(pos)) != '\0') + { + if (ch == ',') + ++commas; + else if (ch == ')') + { + int depth = 1; + + // Ignore everything back to the start of the corresponding + // parenthesis. + while ((ch = getCharacter(pos)) != '\0') + { + if (ch == ')') + ++depth; + else if (ch == '(' && --depth == 0) + break; + } + } + else if (ch == '(') + { + found = true; + break; + } + } + + // Cancel any existing call tip. + SendScintilla(SCI_CALLTIPCANCEL); + + // Done if there is no new call tip to set. + if (!found) + return; + + QStringList context = apiContext(pos, pos, ctPos); + + if (context.isEmpty()) + return; + + // The last word is complete, not partial. + context << QString(); + + ct_cursor = 0; + ct_shifts.clear(); + ct_entries = apis->callTips(context, commas, call_tips_style, ct_shifts); + + int nr_entries = ct_entries.count(); + + if (nr_entries == 0) + return; + + if (maxCallTips > 0 && maxCallTips < nr_entries) + { + ct_entries.erase(ct_entries.at(maxCallTips), ct_entries.end()); + nr_entries = maxCallTips; + } + + int shift; + QString ct; + + int nr_shifts = ct_shifts.count(); + + if (maxCallTips < 0 && nr_entries > 1) + { + shift = (nr_shifts > 0 ? ct_shifts.first() : 0); + ct = ct_entries[0]; + ct.prepend('\002'); + } + else + { + if (nr_shifts > nr_entries) + nr_shifts = nr_entries; + + // Find the biggest shift. + shift = 0; + + for (int i = 0; i < nr_shifts; ++i) + { + int sh = ct_shifts[i]; + + if (shift < sh) + shift = sh; + } + + ct = ct_entries.join("\n"); + } + + const char *cts = ct.latin1(); + + SendScintilla(SCI_CALLTIPSHOW, adjustedCallTipPosition(shift), cts); + + // Done if there is more than one call tip. + if (nr_entries > 1) + return; + + // Highlight the current argument. + const char *astart; + + if (commas == 0) + astart = strchr(cts, '('); + else + for (astart = strchr(cts, ','); astart && --commas > 0; astart = strchr(astart + 1, ',')) + ; + + if (!astart || !*++astart) + return; + + // The end is at the next comma or unmatched closing parenthesis. + const char *aend; + int depth = 0; + + for (aend = astart; *aend; ++aend) + { + char ch = *aend; + + if (ch == ',' && depth == 0) + break; + else if (ch == '(') + ++depth; + else if (ch == ')') + { + if (depth == 0) + break; + + --depth; + } + } + + if (astart != aend) + SendScintilla(SCI_CALLTIPSETHLT, astart - cts, aend - cts); +} + + +// Handle a call tip click. +void QsciScintilla::handleCallTipClick(int dir) +{ + int nr_entries = ct_entries.count(); + + // Move the cursor while bounds checking. + if (dir == 1) + { + if (ct_cursor - 1 < 0) + return; + + --ct_cursor; + } + else if (dir == 2) + { + if (ct_cursor + 1 >= nr_entries) + return; + + ++ct_cursor; + } + else + return; + + int shift = (ct_shifts.count() > ct_cursor ? ct_shifts[ct_cursor] : 0); + QString ct = ct_entries[ct_cursor]; + + // Add the arrows. + if (ct_cursor < nr_entries - 1) + ct.prepend('\002'); + + if (ct_cursor > 0) + ct.prepend('\001'); + + SendScintilla(SCI_CALLTIPSHOW, adjustedCallTipPosition(shift), ct.latin1()); +} + + +// Shift the position of the call tip (to take any context into account) but +// don't go before the start of the line. +int QsciScintilla::adjustedCallTipPosition(int ctshift) const +{ + int ct = ctPos; + + if (ctshift) + { + int ctmin = SendScintilla(SCI_POSITIONFROMLINE, SendScintilla(SCI_LINEFROMPOSITION, ct)); + + if (ct - ctshift < ctmin) + ct = ctmin; + } + + return ct; +} + + +// Return the list of words that make up the context preceding the given +// position. The list will only have more than one element if there is a lexer +// set and it defines start strings. If so, then the last element might be +// empty if a start string has just been typed. On return pos is at the start +// of the context. +QStringList QsciScintilla::apiContext(int pos, int &context_start, + int &last_word_start) +{ + enum { + Either, + Separator, + Word + }; + + QStringList words; + int good_pos = pos, expecting = Either; + + last_word_start = -1; + + while (pos > 0) + { + if (getSeparator(pos)) + { + if (expecting == Either) + words.prepend(QString()); + else if (expecting == Word) + break; + + good_pos = pos; + expecting = Word; + } + else + { + QString word = getWord(pos); + + if (word.isEmpty() || expecting == Separator) + break; + + words.prepend(word); + good_pos = pos; + expecting = Separator; + + // Return the position of the start of the last word if required. + if (last_word_start < 0) + last_word_start = pos; + } + + // Strip any preceding spaces (mainly around operators). + char ch; + + while ((ch = getCharacter(pos)) != '\0') + { + // This is the same definition of space that Scintilla uses. + if (ch != ' ' && (ch < 0x09 || ch > 0x0d)) + { + ++pos; + break; + } + } + } + + // A valid sequence always starts with a word and so should be expecting a + // separator. + if (expecting != Separator) + words.clear(); + + context_start = good_pos; + + return words; +} + + +// Try and get a lexer's word separator from the text before the current +// position. Return true if one was found and adjust the position accordingly. +bool QsciScintilla::getSeparator(int &pos) const +{ + int opos = pos; + + // Go through each separator. + for (int i = 0; i < wseps.count(); ++i) + { + const QString &ws = wseps[i]; + + // Work backwards. + uint l; + + for (l = ws.length(); l; --l) + { + char ch = getCharacter(pos); + + if (ch == '\0' || ws.at(l - 1) != ch) + break; + } + + if (!l) + return true; + + // Reset for the next separator. + pos = opos; + } + + return false; +} + + +// Try and get a word from the text before the current position. Return the +// word if one was found and adjust the position accordingly. +QString QsciScintilla::getWord(int &pos) const +{ + QString word; + bool numeric = true; + char ch; + + while ((ch = getCharacter(pos)) != '\0') + { + if (!isWordCharacter(ch)) + { + ++pos; + break; + } + + if (ch < '0' || ch > '9') + numeric = false; + + word.prepend(ch); + } + + // We don't auto-complete numbers. + if (numeric) + word.truncate(0); + + return word; +} + + +// Get the "next" character (ie. the one before the current position) in the +// current line. The character will be '\0' if there are no more. +char QsciScintilla::getCharacter(int &pos) const +{ + if (pos <= 0) + return '\0'; + + char ch = SendScintilla(SCI_GETCHARAT, --pos); + + // Don't go past the end of the previous line. + if (ch == '\n' || ch == '\r') + { + ++pos; + return '\0'; + } + + return ch; +} + + +// See if a character is an auto-completion start character, ie. the last +// character of a word separator. +bool QsciScintilla::isStartChar(char ch) const +{ + QString s = QChar(ch); + + for (int i = 0; i < wseps.count(); ++i) + if (wseps[i].endsWith(s)) + return true; + + return false; +} + + +// Possibly start auto-completion. +void QsciScintilla::startAutoCompletion(AutoCompletionSource acs, + bool checkThresh, bool choose_single) +{ + int start, ignore; + QStringList context = apiContext(SendScintilla(SCI_GETCURRENTPOS), start, + ignore); + + if (context.isEmpty()) + return; + + // Get the last word's raw data and length. + ScintillaBytes s = textAsBytes(context.last()); + const char *last_data = ScintillaBytesConstData(s); + int last_len = s.length(); + + if (checkThresh && last_len < acThresh) + return; + + // Generate the string representing the valid words to select from. + QStringList wlist; + + if ((acs == AcsAll || acs == AcsAPIs) && !lex.isNull()) + { + QsciAbstractAPIs *apis = lex->apis(); + + if (apis) + apis->updateAutoCompletionList(context, wlist); + } + + if (acs == AcsAll || acs == AcsDocument) + { + int sflags = SCFIND_WORDSTART; + + if (!SendScintilla(SCI_AUTOCGETIGNORECASE)) + sflags |= SCFIND_MATCHCASE; + + SendScintilla(SCI_SETSEARCHFLAGS, sflags); + + int pos = 0; + int dlen = SendScintilla(SCI_GETLENGTH); + int caret = SendScintilla(SCI_GETCURRENTPOS); + int clen = caret - start; + char *orig_context = new char[clen + 1]; + + SendScintilla(SCI_GETTEXTRANGE, start, caret, orig_context); + + for (;;) + { + int fstart; + + SendScintilla(SCI_SETTARGETSTART, pos); + SendScintilla(SCI_SETTARGETEND, dlen); + + if ((fstart = SendScintilla(SCI_SEARCHINTARGET, clen, orig_context)) < 0) + break; + + // Move past the root part. + pos = fstart + clen; + + // Skip if this is the context we are auto-completing. + if (pos == caret) + continue; + + // Get the rest of this word. + QString w = last_data; + + while (pos < dlen) + { + char ch = SendScintilla(SCI_GETCHARAT, pos); + + if (!isWordCharacter(ch)) + break; + + w += ch; + ++pos; + } + + // Add the word if it isn't already there. + if (!w.isEmpty()) + { + bool keep; + + // If there are APIs then check if the word is already present + // as an API word (i.e. with a trailing space). + if (acs == AcsAll) + { + QString api_w = w; + api_w.append(' '); + + keep = (wlist.findIndex(api_w) < 0); + } + else + { + keep = true; + } + + if (keep && wlist.findIndex(w) < 0) + wlist.append(w); + } + } + + delete []orig_context; + } + + if (wlist.isEmpty()) + return; + + wlist.sort(); + + SendScintilla(SCI_AUTOCSETCHOOSESINGLE, choose_single); + SendScintilla(SCI_AUTOCSETSEPARATOR, acSeparator); + + ScintillaBytes wlist_s = textAsBytes(wlist.join(QChar(acSeparator))); + SendScintilla(SCI_AUTOCSHOW, last_len, ScintillaBytesConstData(wlist_s)); +} + + +// Maintain the indentation of the previous line. +void QsciScintilla::maintainIndentation(char ch, long pos) +{ + if (ch != '\r' && ch != '\n') + return; + + int curr_line = SendScintilla(SCI_LINEFROMPOSITION, pos); + + // Get the indentation of the preceding non-zero length line. + int ind = 0; + + for (int line = curr_line - 1; line >= 0; --line) + { + if (SendScintilla(SCI_GETLINEENDPOSITION, line) > + SendScintilla(SCI_POSITIONFROMLINE, line)) + { + ind = indentation(line); + break; + } + } + + if (ind > 0) + autoIndentLine(pos, curr_line, ind); +} + + +// Implement auto-indentation. +void QsciScintilla::autoIndentation(char ch, long pos) +{ + int curr_line = SendScintilla(SCI_LINEFROMPOSITION, pos); + int ind_width = indentWidth(); + long curr_line_start = SendScintilla(SCI_POSITIONFROMLINE, curr_line); + + const char *block_start = lex->blockStart(); + bool start_single = (block_start && qstrlen(block_start) == 1); + + const char *block_end = lex->blockEnd(); + bool end_single = (block_end && qstrlen(block_end) == 1); + + if (end_single && block_end[0] == ch) + { + if (!(lex->autoIndentStyle() & AiClosing) && rangeIsWhitespace(curr_line_start, pos - 1)) + autoIndentLine(pos, curr_line, blockIndent(curr_line - 1) - ind_width); + } + else if (start_single && block_start[0] == ch) + { + // De-indent if we have already indented because the previous line was + // a start of block keyword. + if (!(lex->autoIndentStyle() & AiOpening) && curr_line > 0 && getIndentState(curr_line - 1) == isKeywordStart && rangeIsWhitespace(curr_line_start, pos - 1)) + autoIndentLine(pos, curr_line, blockIndent(curr_line - 1) - ind_width); + } + else if (ch == '\r' || ch == '\n') + { + // Don't auto-indent the line (ie. preserve its existing indentation) + // if we have inserted a new line above by pressing return at the start + // of this line - in other words, if the previous line is empty. + long prev_line_length = SendScintilla(SCI_GETLINEENDPOSITION, curr_line - 1) - SendScintilla(SCI_POSITIONFROMLINE, curr_line - 1); + + if (prev_line_length != 0) + autoIndentLine(pos, curr_line, blockIndent(curr_line - 1)); + } +} + + +// Set the indentation for a line. +void QsciScintilla::autoIndentLine(long pos, int line, int indent) +{ + if (indent < 0) + return; + + long pos_before = SendScintilla(SCI_GETLINEINDENTPOSITION, line); + SendScintilla(SCI_SETLINEINDENTATION, line, indent); + long pos_after = SendScintilla(SCI_GETLINEINDENTPOSITION, line); + long new_pos = -1; + + if (pos_after > pos_before) + new_pos = pos + (pos_after - pos_before); + else if (pos_after < pos_before && pos >= pos_after) + if (pos >= pos_before) + new_pos = pos + (pos_after - pos_before); + else + new_pos = pos_after; + + if (new_pos >= 0) + SendScintilla(SCI_SETSEL, new_pos, new_pos); +} + + +// Return the indentation of the block defined by the given line (or something +// significant before). +int QsciScintilla::blockIndent(int line) +{ + if (line < 0) + return 0; + + // Handle the trvial case. + if (!lex->blockStartKeyword() && !lex->blockStart() && !lex->blockEnd()) + return indentation(line); + + int line_limit = line - lex->blockLookback(); + + if (line_limit < 0) + line_limit = 0; + + for (int l = line; l >= line_limit; --l) + { + IndentState istate = getIndentState(l); + + if (istate != isNone) + { + int ind_width = indentWidth(); + int ind = indentation(l); + + if (istate == isBlockStart) + { + if (!(lex -> autoIndentStyle() & AiOpening)) + ind += ind_width; + } + else if (istate == isBlockEnd) + { + if (lex -> autoIndentStyle() & AiClosing) + ind -= ind_width; + + if (ind < 0) + ind = 0; + } + else if (line == l) + ind += ind_width; + + return ind; + } + } + + return indentation(line); +} + + +// Return true if all characters starting at spos up to, but not including +// epos, are spaces or tabs. +bool QsciScintilla::rangeIsWhitespace(long spos, long epos) +{ + while (spos < epos) + { + char ch = SendScintilla(SCI_GETCHARAT, spos); + + if (ch != ' ' && ch != '\t') + return false; + + ++spos; + } + + return true; +} + + +// Returns the indentation state of a line. +QsciScintilla::IndentState QsciScintilla::getIndentState(int line) +{ + IndentState istate; + + // Get the styled text. + long spos = SendScintilla(SCI_POSITIONFROMLINE, line); + long epos = SendScintilla(SCI_POSITIONFROMLINE, line + 1); + + char *text = new char[(epos - spos + 1) * 2]; + + SendScintilla(SCI_GETSTYLEDTEXT, spos, epos, text); + + int style, bstart_off, bend_off; + + // Block start/end takes precedence over keywords. + const char *bstart_words = lex->blockStart(&style); + bstart_off = findStyledWord(text, style, bstart_words); + + const char *bend_words = lex->blockEnd(&style); + bend_off = findStyledWord(text, style, bend_words); + + // If there is a block start but no block end characters then ignore it + // unless the block start is the last significant thing on the line, ie. + // assume Python-like blocking. + if (bstart_off >= 0 && !bend_words) + for (int i = bstart_off * 2; text[i] != '\0'; i += 2) + if (!QChar(text[i]).isSpace()) + return isNone; + + if (bstart_off > bend_off) + istate = isBlockStart; + else if (bend_off > bstart_off) + istate = isBlockEnd; + else + { + const char *words = lex->blockStartKeyword(&style); + + istate = (findStyledWord(text,style,words) >= 0) ? isKeywordStart : isNone; + } + + delete[] text; + + return istate; +} + + +// text is a pointer to some styled text (ie. a character byte followed by a +// style byte). style is a style number. words is a space separated list of +// words. Returns the position in the text immediately after the last one of +// the words with the style. The reason we are after the last, and not the +// first, occurance is that we are looking for words that start and end a block +// where the latest one is the most significant. +int QsciScintilla::findStyledWord(const char *text, int style, + const char *words) +{ + if (!words) + return -1; + + // Find the range of text with the style we are looking for. + const char *stext; + + for (stext = text; stext[1] != style; stext += 2) + if (stext[0] == '\0') + return -1; + + // Move to the last character. + const char *etext = stext; + + while (etext[2] != '\0') + etext += 2; + + // Backtrack until we find the style. There will be one. + while (etext[1] != style) + etext -= 2; + + // Look for each word in turn. + while (words[0] != '\0') + { + // Find the end of the word. + const char *eword = words; + + while (eword[1] != ' ' && eword[1] != '\0') + ++eword; + + // Now search the text backwards. + const char *wp = eword; + + for (const char *tp = etext; tp >= stext; tp -= 2) + { + if (tp[0] != wp[0] || tp[1] != style) + { + // Reset the search. + wp = eword; + continue; + } + + // See if all the word has matched. + if (wp-- == words) + return ((tp - text) / 2) + (eword - words) + 1; + } + + // Move to the start of the next word if there is one. + words = eword + 1; + + if (words[0] == ' ') + ++words; + } + + return -1; +} + + +// Return true if the code page is UTF8. +bool QsciScintilla::isUtf8() const +{ + return (SendScintilla(SCI_GETCODEPAGE) == SC_CP_UTF8); +} + + +// Set the code page. +void QsciScintilla::setUtf8(bool cp) +{ + SendScintilla(SCI_SETCODEPAGE, (cp ? SC_CP_UTF8 : 0)); +} + + +// Return the end-of-line mode. +QsciScintilla::EolMode QsciScintilla::eolMode() const +{ + return (EolMode)SendScintilla(SCI_GETEOLMODE); +} + + +// Set the end-of-line mode. +void QsciScintilla::setEolMode(EolMode mode) +{ + SendScintilla(SCI_SETEOLMODE, mode); +} + + +// Convert the end-of-lines to a particular mode. +void QsciScintilla::convertEols(EolMode mode) +{ + SendScintilla(SCI_CONVERTEOLS, mode); +} + + +// Return the edge colour. +QColor QsciScintilla::edgeColor() const +{ + long res = SendScintilla(SCI_GETEDGECOLOUR); + + return QColor((int)res, ((int)(res >> 8)) & 0x00ff, ((int)(res >> 16)) & 0x00ff); +} + + +// Set the edge colour. +void QsciScintilla::setEdgeColor(const QColor &col) +{ + SendScintilla(SCI_SETEDGECOLOUR, col); +} + + +// Return the edge column. +int QsciScintilla::edgeColumn() const +{ + return SendScintilla(SCI_GETEDGECOLUMN); +} + + +// Set the edge column. +void QsciScintilla::setEdgeColumn(int colnr) +{ + SendScintilla(SCI_SETEDGECOLUMN, colnr); +} + + +// Return the edge mode. +QsciScintilla::EdgeMode QsciScintilla::edgeMode() const +{ + return (EdgeMode)SendScintilla(SCI_GETEDGEMODE); +} + + +// Set the edge mode. +void QsciScintilla::setEdgeMode(EdgeMode mode) +{ + SendScintilla(SCI_SETEDGEMODE, mode); +} + + +// Return the end-of-line visibility. +bool QsciScintilla::eolVisibility() const +{ + return SendScintilla(SCI_GETVIEWEOL); +} + + +// Set the end-of-line visibility. +void QsciScintilla::setEolVisibility(bool visible) +{ + SendScintilla(SCI_SETVIEWEOL, visible); +} + + +// Return the extra ascent. +int QsciScintilla::extraAscent() const +{ + return SendScintilla(SCI_GETEXTRAASCENT); +} + + +// Set the extra ascent. +void QsciScintilla::setExtraAscent(int extra) +{ + SendScintilla(SCI_SETEXTRAASCENT, extra); +} + + +// Return the extra descent. +int QsciScintilla::extraDescent() const +{ + return SendScintilla(SCI_GETEXTRADESCENT); +} + + +// Set the extra descent. +void QsciScintilla::setExtraDescent(int extra) +{ + SendScintilla(SCI_SETEXTRADESCENT, extra); +} + + +// Return the whitespace size. +int QsciScintilla::whitespaceSize() const +{ + return SendScintilla(SCI_GETWHITESPACESIZE); +} + + +// Set the whitespace size. +void QsciScintilla::setWhitespaceSize(int size) +{ + SendScintilla(SCI_SETWHITESPACESIZE, size); +} + + +// Set the whitespace background colour. +void QsciScintilla::setWhitespaceBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_SETWHITESPACEBACK, col.isValid(), col); +} + + +// Set the whitespace foreground colour. +void QsciScintilla::setWhitespaceForegroundColor(const QColor &col) +{ + SendScintilla(SCI_SETWHITESPACEFORE, col.isValid(), col); +} + + +// Return the whitespace visibility. +QsciScintilla::WhitespaceVisibility QsciScintilla::whitespaceVisibility() const +{ + return (WhitespaceVisibility)SendScintilla(SCI_GETVIEWWS); +} + + +// Set the whitespace visibility. +void QsciScintilla::setWhitespaceVisibility(WhitespaceVisibility mode) +{ + SendScintilla(SCI_SETVIEWWS, mode); +} + + +// Return the line wrap mode. +QsciScintilla::WrapMode QsciScintilla::wrapMode() const +{ + return (WrapMode)SendScintilla(SCI_GETWRAPMODE); +} + + +// Set the line wrap mode. +void QsciScintilla::setWrapMode(WrapMode mode) +{ + SendScintilla(SCI_SETLAYOUTCACHE, + (mode == WrapNone ? SC_CACHE_CARET : SC_CACHE_DOCUMENT)); + SendScintilla(SCI_SETWRAPMODE, mode); +} + + +// Return the line wrap indent mode. +QsciScintilla::WrapIndentMode QsciScintilla::wrapIndentMode() const +{ + return (WrapIndentMode)SendScintilla(SCI_GETWRAPINDENTMODE); +} + + +// Set the line wrap indent mode. +void QsciScintilla::setWrapIndentMode(WrapIndentMode mode) +{ + SendScintilla(SCI_SETWRAPINDENTMODE, mode); +} + + +// Set the line wrap visual flags. +void QsciScintilla::setWrapVisualFlags(WrapVisualFlag endFlag, + WrapVisualFlag startFlag, int indent) +{ + int flags = SC_WRAPVISUALFLAG_NONE; + int loc = SC_WRAPVISUALFLAGLOC_DEFAULT; + + switch (endFlag) + { + case WrapFlagByText: + flags |= SC_WRAPVISUALFLAG_END; + loc |= SC_WRAPVISUALFLAGLOC_END_BY_TEXT; + break; + + case WrapFlagByBorder: + flags |= SC_WRAPVISUALFLAG_END; + break; + + case WrapFlagInMargin: + flags |= SC_WRAPVISUALFLAG_MARGIN; + break; + } + + switch (startFlag) + { + case WrapFlagByText: + flags |= SC_WRAPVISUALFLAG_START; + loc |= SC_WRAPVISUALFLAGLOC_START_BY_TEXT; + break; + + case WrapFlagByBorder: + flags |= SC_WRAPVISUALFLAG_START; + break; + + case WrapFlagInMargin: + flags |= SC_WRAPVISUALFLAG_MARGIN; + break; + } + + SendScintilla(SCI_SETWRAPVISUALFLAGS, flags); + SendScintilla(SCI_SETWRAPVISUALFLAGSLOCATION, loc); + SendScintilla(SCI_SETWRAPSTARTINDENT, indent); +} + + +// Set the folding style. +void QsciScintilla::setFolding(FoldStyle folding, int margin) +{ + fold = folding; + foldmargin = margin; + + if (folding == NoFoldStyle) + { + SendScintilla(SCI_SETMARGINWIDTHN, margin, 0L); + return; + } + + int mask = SendScintilla(SCI_GETMODEVENTMASK); + SendScintilla(SCI_SETMODEVENTMASK, mask | SC_MOD_CHANGEFOLD); + + SendScintilla(SCI_SETFOLDFLAGS, SC_FOLDFLAG_LINEAFTER_CONTRACTED); + + SendScintilla(SCI_SETMARGINTYPEN, margin, (long)SC_MARGIN_SYMBOL); + SendScintilla(SCI_SETMARGINMASKN, margin, SC_MASK_FOLDERS); + SendScintilla(SCI_SETMARGINSENSITIVEN, margin, 1); + + // Set the marker symbols to use. + switch (folding) + { + case PlainFoldStyle: + setFoldMarker(SC_MARKNUM_FOLDEROPEN, SC_MARK_MINUS); + setFoldMarker(SC_MARKNUM_FOLDER, SC_MARK_PLUS); + setFoldMarker(SC_MARKNUM_FOLDERSUB); + setFoldMarker(SC_MARKNUM_FOLDERTAIL); + setFoldMarker(SC_MARKNUM_FOLDEREND); + setFoldMarker(SC_MARKNUM_FOLDEROPENMID); + setFoldMarker(SC_MARKNUM_FOLDERMIDTAIL); + break; + + case CircledFoldStyle: + setFoldMarker(SC_MARKNUM_FOLDEROPEN, SC_MARK_CIRCLEMINUS); + setFoldMarker(SC_MARKNUM_FOLDER, SC_MARK_CIRCLEPLUS); + setFoldMarker(SC_MARKNUM_FOLDERSUB); + setFoldMarker(SC_MARKNUM_FOLDERTAIL); + setFoldMarker(SC_MARKNUM_FOLDEREND); + setFoldMarker(SC_MARKNUM_FOLDEROPENMID); + setFoldMarker(SC_MARKNUM_FOLDERMIDTAIL); + break; + + case BoxedFoldStyle: + setFoldMarker(SC_MARKNUM_FOLDEROPEN, SC_MARK_BOXMINUS); + setFoldMarker(SC_MARKNUM_FOLDER, SC_MARK_BOXPLUS); + setFoldMarker(SC_MARKNUM_FOLDERSUB); + setFoldMarker(SC_MARKNUM_FOLDERTAIL); + setFoldMarker(SC_MARKNUM_FOLDEREND); + setFoldMarker(SC_MARKNUM_FOLDEROPENMID); + setFoldMarker(SC_MARKNUM_FOLDERMIDTAIL); + break; + + case CircledTreeFoldStyle: + setFoldMarker(SC_MARKNUM_FOLDEROPEN, SC_MARK_CIRCLEMINUS); + setFoldMarker(SC_MARKNUM_FOLDER, SC_MARK_CIRCLEPLUS); + setFoldMarker(SC_MARKNUM_FOLDERSUB, SC_MARK_VLINE); + setFoldMarker(SC_MARKNUM_FOLDERTAIL, SC_MARK_LCORNERCURVE); + setFoldMarker(SC_MARKNUM_FOLDEREND, SC_MARK_CIRCLEPLUSCONNECTED); + setFoldMarker(SC_MARKNUM_FOLDEROPENMID, SC_MARK_CIRCLEMINUSCONNECTED); + setFoldMarker(SC_MARKNUM_FOLDERMIDTAIL, SC_MARK_TCORNERCURVE); + break; + + case BoxedTreeFoldStyle: + setFoldMarker(SC_MARKNUM_FOLDEROPEN, SC_MARK_BOXMINUS); + setFoldMarker(SC_MARKNUM_FOLDER, SC_MARK_BOXPLUS); + setFoldMarker(SC_MARKNUM_FOLDERSUB, SC_MARK_VLINE); + setFoldMarker(SC_MARKNUM_FOLDERTAIL, SC_MARK_LCORNER); + setFoldMarker(SC_MARKNUM_FOLDEREND, SC_MARK_BOXPLUSCONNECTED); + setFoldMarker(SC_MARKNUM_FOLDEROPENMID, SC_MARK_BOXMINUSCONNECTED); + setFoldMarker(SC_MARKNUM_FOLDERMIDTAIL, SC_MARK_TCORNER); + break; + } + + SendScintilla(SCI_SETMARGINWIDTHN, margin, defaultFoldMarginWidth); +} + + +// Clear all current folds. +void QsciScintilla::clearFolds() +{ + recolor(); + + int maxLine = SendScintilla(SCI_GETLINECOUNT); + + for (int line = 0; line < maxLine; line++) + { + int level = SendScintilla(SCI_GETFOLDLEVEL, line); + + if (level & SC_FOLDLEVELHEADERFLAG) + { + SendScintilla(SCI_SETFOLDEXPANDED, line, 1); + foldExpand(line, true, false, 0, level); + line--; + } + } +} + + +// Set up a folder marker. +void QsciScintilla::setFoldMarker(int marknr, int mark) +{ + SendScintilla(SCI_MARKERDEFINE, marknr, mark); + + if (mark != SC_MARK_EMPTY) + { + SendScintilla(SCI_MARKERSETFORE, marknr, Qt::white); + SendScintilla(SCI_MARKERSETBACK, marknr, Qt::black); + } +} + + +// Handle a click in the fold margin. This is mostly taken from SciTE. +void QsciScintilla::foldClick(int lineClick, int bstate) +{ + bool shift = bstate & ShiftButton; + bool ctrl = bstate & ControlButton; + + if (shift && ctrl) + { + foldAll(); + return; + } + + int levelClick = SendScintilla(SCI_GETFOLDLEVEL, lineClick); + + if (levelClick & SC_FOLDLEVELHEADERFLAG) + { + if (shift) + { + // Ensure all children are visible. + SendScintilla(SCI_SETFOLDEXPANDED, lineClick, 1); + foldExpand(lineClick, true, true, 100, levelClick); + } + else if (ctrl) + { + if (SendScintilla(SCI_GETFOLDEXPANDED, lineClick)) + { + // Contract this line and all its children. + SendScintilla(SCI_SETFOLDEXPANDED, lineClick, 0L); + foldExpand(lineClick, false, true, 0, levelClick); + } + else + { + // Expand this line and all its children. + SendScintilla(SCI_SETFOLDEXPANDED, lineClick, 1); + foldExpand(lineClick, true, true, 100, levelClick); + } + } + else + { + // Toggle this line. + SendScintilla(SCI_TOGGLEFOLD, lineClick); + } + } +} + + +// Do the hard work of hiding and showing lines. This is mostly taken from +// SciTE. +void QsciScintilla::foldExpand(int &line, bool doExpand, bool force, + int visLevels, int level) +{ + int lineMaxSubord = SendScintilla(SCI_GETLASTCHILD, line, + level & SC_FOLDLEVELNUMBERMASK); + + line++; + + while (line <= lineMaxSubord) + { + if (force) + { + if (visLevels > 0) + SendScintilla(SCI_SHOWLINES, line, line); + else + SendScintilla(SCI_HIDELINES, line, line); + } + else if (doExpand) + SendScintilla(SCI_SHOWLINES, line, line); + + int levelLine = level; + + if (levelLine == -1) + levelLine = SendScintilla(SCI_GETFOLDLEVEL, line); + + if (levelLine & SC_FOLDLEVELHEADERFLAG) + { + if (force) + { + if (visLevels > 1) + SendScintilla(SCI_SETFOLDEXPANDED, line, 1); + else + SendScintilla(SCI_SETFOLDEXPANDED, line, 0L); + + foldExpand(line, doExpand, force, visLevels - 1); + } + else if (doExpand) + { + if (!SendScintilla(SCI_GETFOLDEXPANDED, line)) + SendScintilla(SCI_SETFOLDEXPANDED, line, 1); + + foldExpand(line, true, force, visLevels - 1); + } + else + foldExpand(line, false, force, visLevels - 1); + } + else + line++; + } +} + + +// Fully expand (if there is any line currently folded) all text. Otherwise, +// fold all text. This is mostly taken from SciTE. +void QsciScintilla::foldAll(bool children) +{ + recolor(); + + int maxLine = SendScintilla(SCI_GETLINECOUNT); + bool expanding = true; + + for (int lineSeek = 0; lineSeek < maxLine; lineSeek++) + { + if (SendScintilla(SCI_GETFOLDLEVEL,lineSeek) & SC_FOLDLEVELHEADERFLAG) + { + expanding = !SendScintilla(SCI_GETFOLDEXPANDED, lineSeek); + break; + } + } + + for (int line = 0; line < maxLine; line++) + { + int level = SendScintilla(SCI_GETFOLDLEVEL, line); + + if (!(level & SC_FOLDLEVELHEADERFLAG)) + continue; + + if (children || + (SC_FOLDLEVELBASE == (level & SC_FOLDLEVELNUMBERMASK))) + { + if (expanding) + { + SendScintilla(SCI_SETFOLDEXPANDED, line, 1); + foldExpand(line, true, false, 0, level); + line--; + } + else + { + int lineMaxSubord = SendScintilla(SCI_GETLASTCHILD, line, -1); + + SendScintilla(SCI_SETFOLDEXPANDED, line, 0L); + + if (lineMaxSubord > line) + SendScintilla(SCI_HIDELINES, line + 1, lineMaxSubord); + } + } + } +} + + +// Handle a fold change. This is mostly taken from SciTE. +void QsciScintilla::foldChanged(int line,int levelNow,int levelPrev) +{ + if (levelNow & SC_FOLDLEVELHEADERFLAG) + { + if (!(levelPrev & SC_FOLDLEVELHEADERFLAG)) + SendScintilla(SCI_SETFOLDEXPANDED, line, 1); + } + else if (levelPrev & SC_FOLDLEVELHEADERFLAG) + { + if (!SendScintilla(SCI_GETFOLDEXPANDED, line)) + { + // Removing the fold from one that has been contracted so should + // expand. Otherwise lines are left invisible with no way to make + // them visible. + foldExpand(line, true, false, 0, levelPrev); + } + } +} + + +// Toggle the fold for a line if it contains a fold marker. +void QsciScintilla::foldLine(int line) +{ + SendScintilla(SCI_TOGGLEFOLD, line); +} + + +// Return the list of folded lines. +QValueList QsciScintilla::contractedFolds() const +{ + QValueList folds; + int linenr = 0, fold_line; + + while ((fold_line = SendScintilla(SCI_CONTRACTEDFOLDNEXT, linenr)) >= 0) + { + folds.append(fold_line); + linenr = fold_line + 1; + } + + return folds; +} + + +// Set the fold state from a list. +void QsciScintilla::setContractedFolds(const QValueList &folds) +{ + for (int i = 0; i < folds.count(); ++i) + { + int line = folds[i]; + int last_line = SendScintilla(SCI_GETLASTCHILD, line, -1); + + SendScintilla(SCI_SETFOLDEXPANDED, line, 0L); + SendScintilla(SCI_HIDELINES, line + 1, last_line); + } +} + + +// Handle the SCN_MODIFIED notification. +void QsciScintilla::handleModified(int pos, int mtype, const char *text, + int len, int added, int line, int foldNow, int foldPrev, int token, + int annotationLinesAdded) +{ + if (mtype & SC_MOD_CHANGEFOLD) + { + if (fold) + foldChanged(line, foldNow, foldPrev); + } + + if (mtype & (SC_MOD_INSERTTEXT | SC_MOD_DELETETEXT)) + { + emit textChanged(); + + if (added != 0) + emit linesChanged(); + } +} + + +// Zoom in a number of points. +void QsciScintilla::zoomIn(int range) +{ + zoomTo(SendScintilla(SCI_GETZOOM) + range); +} + + +// Zoom in a single point. +void QsciScintilla::zoomIn() +{ + SendScintilla(SCI_ZOOMIN); +} + + +// Zoom out a number of points. +void QsciScintilla::zoomOut(int range) +{ + zoomTo(SendScintilla(SCI_GETZOOM) - range); +} + + +// Zoom out a single point. +void QsciScintilla::zoomOut() +{ + SendScintilla(SCI_ZOOMOUT); +} + + +// Set the zoom to a number of points. +void QsciScintilla::zoomTo(int size) +{ + if (size < -10) + size = -10; + else if (size > 20) + size = 20; + + SendScintilla(SCI_SETZOOM, size); +} + + +// Find the first occurrence of a string. +bool QsciScintilla::findFirst(const QString &expr, bool re, bool cs, bool wo, + bool wrap, bool forward, int line, int index, bool show, bool posix) +{ + if (expr.isEmpty()) + { + findState.status = FindState::Idle; + return false; + } + + findState.status = FindState::Finding; + findState.expr = expr; + findState.wrap = wrap; + findState.forward = forward; + + findState.flags = + (cs ? SCFIND_MATCHCASE : 0) | + (wo ? SCFIND_WHOLEWORD : 0) | + (re ? SCFIND_REGEXP : 0) | + (posix ? SCFIND_POSIX : 0); + + if (line < 0 || index < 0) + findState.startpos = SendScintilla(SCI_GETCURRENTPOS); + else + findState.startpos = positionFromLineIndex(line, index); + + if (forward) + findState.endpos = SendScintilla(SCI_GETLENGTH); + else + findState.endpos = 0; + + findState.show = show; + + return doFind(); +} + + +// Find the first occurrence of a string in the current selection. +bool QsciScintilla::findFirstInSelection(const QString &expr, bool re, bool cs, + bool wo, bool forward, bool show, bool posix) +{ + if (expr.isEmpty()) + { + findState.status = FindState::Idle; + return false; + } + + findState.status = FindState::FindingInSelection; + findState.expr = expr; + findState.wrap = false; + findState.forward = forward; + + findState.flags = + (cs ? SCFIND_MATCHCASE : 0) | + (wo ? SCFIND_WHOLEWORD : 0) | + (re ? SCFIND_REGEXP : 0) | + (posix ? SCFIND_POSIX : 0); + + findState.startpos_orig = SendScintilla(SCI_GETSELECTIONSTART); + findState.endpos_orig = SendScintilla(SCI_GETSELECTIONEND); + + if (forward) + { + findState.startpos = findState.startpos_orig; + findState.endpos = findState.endpos_orig; + } + else + { + findState.startpos = findState.endpos_orig; + findState.endpos = findState.startpos_orig; + } + + findState.show = show; + + return doFind(); +} + + +// Find the next occurrence of a string. +bool QsciScintilla::findNext() +{ + if (findState.status == FindState::Idle) + return false; + + return doFind(); +} + + +// Do the hard work of the find methods. +bool QsciScintilla::doFind() +{ + SendScintilla(SCI_SETSEARCHFLAGS, findState.flags); + + int pos = simpleFind(); + + // See if it was found. If not and wraparound is wanted, try again. + if (pos == -1 && findState.wrap) + { + if (findState.forward) + { + findState.startpos = 0; + findState.endpos = SendScintilla(SCI_GETLENGTH); + } + else + { + findState.startpos = SendScintilla(SCI_GETLENGTH); + findState.endpos = 0; + } + + pos = simpleFind(); + } + + if (pos == -1) + { + // Restore the original selection. + if (findState.status == FindState::FindingInSelection) + SendScintilla(SCI_SETSEL, findState.startpos_orig, + findState.endpos_orig); + + findState.status = FindState::Idle; + return false; + } + + // It was found. + long targstart = SendScintilla(SCI_GETTARGETSTART); + long targend = SendScintilla(SCI_GETTARGETEND); + + // Ensure the text found is visible if required. + if (findState.show) + { + int startLine = SendScintilla(SCI_LINEFROMPOSITION, targstart); + int endLine = SendScintilla(SCI_LINEFROMPOSITION, targend); + + for (int i = startLine; i <= endLine; ++i) + SendScintilla(SCI_ENSUREVISIBLEENFORCEPOLICY, i); + } + + // Now set the selection. + SendScintilla(SCI_SETSEL, targstart, targend); + + // Finally adjust the start position so that we don't find the same one + // again. + if (findState.forward) + findState.startpos = targend; + else if ((findState.startpos = targstart - 1) < 0) + findState.startpos = 0; + + return true; +} + + +// Do a simple find between the start and end positions. +int QsciScintilla::simpleFind() +{ + if (findState.startpos == findState.endpos) + return -1; + + SendScintilla(SCI_SETTARGETSTART, findState.startpos); + SendScintilla(SCI_SETTARGETEND, findState.endpos); + + ScintillaBytes s = textAsBytes(findState.expr); + + return SendScintilla(SCI_SEARCHINTARGET, s.length(), + ScintillaBytesConstData(s)); +} + + +// Replace the text found with the previous find method. +void QsciScintilla::replace(const QString &replaceStr) +{ + if (findState.status == FindState::Idle) + return; + + long start = SendScintilla(SCI_GETSELECTIONSTART); + long orig_len = SendScintilla(SCI_GETSELECTIONEND) - start; + + SendScintilla(SCI_TARGETFROMSELECTION); + + int cmd = (findState.flags & SCFIND_REGEXP) ? SCI_REPLACETARGETRE : SCI_REPLACETARGET; + + ScintillaBytes s = textAsBytes(replaceStr); + long len = SendScintilla(cmd, -1, ScintillaBytesConstData(s)); + + // Reset the selection. + SendScintilla(SCI_SETSELECTIONSTART, start); + SendScintilla(SCI_SETSELECTIONEND, start + len); + + // Fix the original selection. + findState.endpos_orig += (len - orig_len); + + if (findState.forward) + findState.startpos = start + len; +} + + +// Query the modified state. +bool QsciScintilla::isModified() const +{ + return doc.isModified(); +} + + +// Set the modified state. +void QsciScintilla::setModified(bool m) +{ + if (!m) + SendScintilla(SCI_SETSAVEPOINT); +} + + +// Handle the SCN_INDICATORCLICK notification. +void QsciScintilla::handleIndicatorClick(int pos, int modifiers) +{ + int state = mapModifiers(modifiers); + int line, index; + + lineIndexFromPosition(pos, &line, &index); + + emit indicatorClicked(line, index, (Qt::ButtonState)state); +} + + +// Handle the SCN_INDICATORRELEASE notification. +void QsciScintilla::handleIndicatorRelease(int pos, int modifiers) +{ + int state = mapModifiers(modifiers); + int line, index; + + lineIndexFromPosition(pos, &line, &index); + + emit indicatorReleased(line, index, (Qt::ButtonState)state); +} + + +// Handle the SCN_MARGINCLICK notification. +void QsciScintilla::handleMarginClick(int pos, int modifiers, int margin) +{ + int state = mapModifiers(modifiers); + int line = SendScintilla(SCI_LINEFROMPOSITION, pos); + + if (fold && margin == foldmargin) + foldClick(line, state); + else + emit marginClicked(margin, line, (Qt::ButtonState)state); +} + + +// Handle the SCN_SAVEPOINTREACHED notification. +void QsciScintilla::handleSavePointReached() +{ + doc.setModified(false); + emit modificationChanged(false); +} + + +// Handle the SCN_SAVEPOINTLEFT notification. +void QsciScintilla::handleSavePointLeft() +{ + doc.setModified(true); + emit modificationChanged(true); +} + + +// Handle the QSCN_SELCHANGED signal. +void QsciScintilla::handleSelectionChanged(bool yes) +{ + selText = yes; + + emit copyAvailable(yes); + emit selectionChanged(); +} + + +// Get the current selection. +void QsciScintilla::getSelection(int *lineFrom, int *indexFrom, int *lineTo, + int *indexTo) const +{ + if (selText) + { + lineIndexFromPosition(SendScintilla(SCI_GETSELECTIONSTART), lineFrom, + indexFrom); + lineIndexFromPosition(SendScintilla(SCI_GETSELECTIONEND), lineTo, + indexTo); + } + else + *lineFrom = *indexFrom = *lineTo = *indexTo = -1; +} + + +// Sets the current selection. +void QsciScintilla::setSelection(int lineFrom, int indexFrom, int lineTo, + int indexTo) +{ + SendScintilla(SCI_SETSEL, positionFromLineIndex(lineFrom, indexFrom), + positionFromLineIndex(lineTo, indexTo)); +} + + +// Set the background colour of selected text. +void QsciScintilla::setSelectionBackgroundColor(const QColor &col) +{ + int alpha = qAlpha(col.rgb()); + + if (alpha == 255) + alpha = SC_ALPHA_NOALPHA; + + SendScintilla(SCI_SETSELBACK, 1, col); + SendScintilla(SCI_SETSELALPHA, alpha); +} + + +// Set the foreground colour of selected text. +void QsciScintilla::setSelectionForegroundColor(const QColor &col) +{ + SendScintilla(SCI_SETSELFORE, 1, col); +} + + +// Reset the background colour of selected text to the default. +void QsciScintilla::resetSelectionBackgroundColor() +{ + SendScintilla(SCI_SETSELALPHA, SC_ALPHA_NOALPHA); + SendScintilla(SCI_SETSELBACK, 0UL); +} + + +// Reset the foreground colour of selected text to the default. +void QsciScintilla::resetSelectionForegroundColor() +{ + SendScintilla(SCI_SETSELFORE, 0UL); +} + + +// Set the fill to the end-of-line for the selection. +void QsciScintilla::setSelectionToEol(bool filled) +{ + SendScintilla(SCI_SETSELEOLFILLED, filled); +} + + +// Return the fill to the end-of-line for the selection. +bool QsciScintilla::selectionToEol() const +{ + return SendScintilla(SCI_GETSELEOLFILLED); +} + + +// Set the width of the caret. +void QsciScintilla::setCaretWidth(int width) +{ + SendScintilla(SCI_SETCARETWIDTH, width); +} + + +// Set the foreground colour of the caret. +void QsciScintilla::setCaretForegroundColor(const QColor &col) +{ + SendScintilla(SCI_SETCARETFORE, col); +} + + +// Set the background colour of the line containing the caret. +void QsciScintilla::setCaretLineBackgroundColor(const QColor &col) +{ + int alpha = qAlpha(col.rgb()); + + if (alpha == 255) + alpha = SC_ALPHA_NOALPHA; + + SendScintilla(SCI_SETCARETLINEBACK, col); + SendScintilla(SCI_SETCARETLINEBACKALPHA, alpha); +} + + +// Set the state of the background colour of the line containing the caret. +void QsciScintilla::setCaretLineVisible(bool enable) +{ + SendScintilla(SCI_SETCARETLINEVISIBLE, enable); +} + + +// Set the background colour of a hotspot area. +void QsciScintilla::setHotspotBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_SETSELBACK, 1, col); +} + + +// Set the foreground colour of a hotspot area. +void QsciScintilla::setHotspotForegroundColor(const QColor &col) +{ + SendScintilla(SCI_SETHOTSPOTACTIVEFORE, 1, col); +} + + +// Reset the background colour of a hotspot area to the default. +void QsciScintilla::resetHotspotBackgroundColor() +{ + SendScintilla(SCI_SETSELBACK, 0UL); +} + + +// Reset the foreground colour of a hotspot area to the default. +void QsciScintilla::resetHotspotForegroundColor() +{ + SendScintilla(SCI_SETHOTSPOTACTIVEFORE, 0UL); +} + + +// Set the underline of a hotspot area. +void QsciScintilla::setHotspotUnderline(bool enable) +{ + SendScintilla(SCI_SETHOTSPOTACTIVEUNDERLINE, enable); +} + + +// Set the wrapping of a hotspot area. +void QsciScintilla::setHotspotWrap(bool enable) +{ + SendScintilla(SCI_SETHOTSPOTSINGLELINE, !enable); +} + + +// Query the read-only state. +bool QsciScintilla::isReadOnly() const +{ + return SendScintilla(SCI_GETREADONLY); +} + + +// Set the read-only state. +void QsciScintilla::setReadOnly(bool ro) +{ + SendScintilla(SCI_SETREADONLY, ro); +} + + +// Append the given text. +void QsciScintilla::append(const QString &text) +{ + bool ro = ensureRW(); + + ScintillaBytes s = textAsBytes(text); + SendScintilla(SCI_APPENDTEXT, s.length(), ScintillaBytesConstData(s)); + + SendScintilla(SCI_EMPTYUNDOBUFFER); + + setReadOnly(ro); +} + + +// Insert the given text at the current position. +void QsciScintilla::insert(const QString &text) +{ + insertAtPos(text, -1); +} + + +// Insert the given text at the given line and offset. +void QsciScintilla::insertAt(const QString &text, int line, int index) +{ + insertAtPos(text, positionFromLineIndex(line, index)); +} + + +// Insert the given text at the given position. +void QsciScintilla::insertAtPos(const QString &text, int pos) +{ + bool ro = ensureRW(); + + SendScintilla(SCI_BEGINUNDOACTION); + SendScintilla(SCI_INSERTTEXT, pos, + ScintillaBytesConstData(textAsBytes(text))); + SendScintilla(SCI_ENDUNDOACTION); + + setReadOnly(ro); +} + + +// Begin a sequence of undoable actions. +void QsciScintilla::beginUndoAction() +{ + SendScintilla(SCI_BEGINUNDOACTION); +} + + +// End a sequence of undoable actions. +void QsciScintilla::endUndoAction() +{ + SendScintilla(SCI_ENDUNDOACTION); +} + + +// Redo a sequence of actions. +void QsciScintilla::redo() +{ + SendScintilla(SCI_REDO); +} + + +// Undo a sequence of actions. +void QsciScintilla::undo() +{ + SendScintilla(SCI_UNDO); +} + + +// See if there is something to redo. +bool QsciScintilla::isRedoAvailable() const +{ + return SendScintilla(SCI_CANREDO); +} + + +// See if there is something to undo. +bool QsciScintilla::isUndoAvailable() const +{ + return SendScintilla(SCI_CANUNDO); +} + + +// Return the number of lines. +int QsciScintilla::lines() const +{ + return SendScintilla(SCI_GETLINECOUNT); +} + + +// Return the line at a position. +int QsciScintilla::lineAt(const QPoint &pos) const +{ + long chpos = SendScintilla(SCI_POSITIONFROMPOINTCLOSE, pos.x(), pos.y()); + + if (chpos < 0) + return -1; + + return SendScintilla(SCI_LINEFROMPOSITION, chpos); +} + + +// Return the length of a line. +int QsciScintilla::lineLength(int line) const +{ + if (line < 0 || line >= SendScintilla(SCI_GETLINECOUNT)) + return -1; + + return SendScintilla(SCI_LINELENGTH, line); +} + + +// Return the length of the current text. +int QsciScintilla::length() const +{ + return SendScintilla(SCI_GETTEXTLENGTH); +} + + +// Remove any selected text. +void QsciScintilla::removeSelectedText() +{ + SendScintilla(SCI_REPLACESEL, ""); +} + + +// Replace any selected text. +void QsciScintilla::replaceSelectedText(const QString &text) +{ + SendScintilla(SCI_REPLACESEL, ScintillaBytesConstData(textAsBytes(text))); +} + + +// Return the current selected text. +QString QsciScintilla::selectedText() const +{ + if (!selText) + return QString(); + + char *buf = new char[SendScintilla(SCI_GETSELECTIONEND) - SendScintilla(SCI_GETSELECTIONSTART) + 1]; + + SendScintilla(SCI_GETSELTEXT, buf); + + QString qs = bytesAsText(buf); + delete[] buf; + + return qs; +} + + +// Return the current text. +QString QsciScintilla::text() const +{ + int buflen = length() + 1; + char *buf = new char[buflen]; + + SendScintilla(SCI_GETTEXT, buflen, buf); + + QString qs = bytesAsText(buf); + delete[] buf; + + return qs; +} + + +// Return the text of a line. +QString QsciScintilla::text(int line) const +{ + int line_len = lineLength(line); + + if (line_len < 1) + return QString(); + + char *buf = new char[line_len + 1]; + + SendScintilla(SCI_GETLINE, line, buf); + buf[line_len] = '\0'; + + QString qs = bytesAsText(buf); + delete[] buf; + + return qs; +} + + +// Set the given text. +void QsciScintilla::setText(const QString &text) +{ + bool ro = ensureRW(); + + SendScintilla(SCI_SETTEXT, ScintillaBytesConstData(textAsBytes(text))); + SendScintilla(SCI_EMPTYUNDOBUFFER); + + setReadOnly(ro); +} + + +// Get the cursor position +void QsciScintilla::getCursorPosition(int *line, int *index) const +{ + lineIndexFromPosition(SendScintilla(SCI_GETCURRENTPOS), line, index); +} + + +// Set the cursor position +void QsciScintilla::setCursorPosition(int line, int index) +{ + SendScintilla(SCI_GOTOPOS, positionFromLineIndex(line, index)); +} + + +// Ensure the cursor is visible. +void QsciScintilla::ensureCursorVisible() +{ + SendScintilla(SCI_SCROLLCARET); +} + + +// Ensure a line is visible. +void QsciScintilla::ensureLineVisible(int line) +{ + SendScintilla(SCI_ENSUREVISIBLEENFORCEPOLICY, line); +} + + +// Copy text to the clipboard. +void QsciScintilla::copy() +{ + SendScintilla(SCI_COPY); +} + + +// Cut text to the clipboard. +void QsciScintilla::cut() +{ + SendScintilla(SCI_CUT); +} + + +// Paste text from the clipboard. +void QsciScintilla::paste() +{ + SendScintilla(SCI_PASTE); +} + + +// Select all text, or deselect any selected text. +void QsciScintilla::selectAll(bool select) +{ + if (select) + SendScintilla(SCI_SELECTALL); + else + SendScintilla(SCI_SETANCHOR, SendScintilla(SCI_GETCURRENTPOS)); +} + + +// Delete all text. +void QsciScintilla::clear() +{ + bool ro = ensureRW(); + + SendScintilla(SCI_BEGINUNDOACTION); + SendScintilla(SCI_CLEARALL); + SendScintilla(SCI_ENDUNDOACTION); + + setReadOnly(ro); +} + + +// Return the indentation of a line. +int QsciScintilla::indentation(int line) const +{ + return SendScintilla(SCI_GETLINEINDENTATION, line); +} + + +// Set the indentation of a line. +void QsciScintilla::setIndentation(int line, int indentation) +{ + SendScintilla(SCI_BEGINUNDOACTION); + SendScintilla(SCI_SETLINEINDENTATION, line, indentation); + SendScintilla(SCI_ENDUNDOACTION); +} + + +// Indent a line. +void QsciScintilla::indent(int line) +{ + setIndentation(line, indentation(line) + indentWidth()); +} + + +// Unindent a line. +void QsciScintilla::unindent(int line) +{ + int newIndent = indentation(line) - indentWidth(); + + if (newIndent < 0) + newIndent = 0; + + setIndentation(line, newIndent); +} + + +// Return the indentation of the current line. +int QsciScintilla::currentIndent() const +{ + return indentation(SendScintilla(SCI_LINEFROMPOSITION, + SendScintilla(SCI_GETCURRENTPOS))); +} + + +// Return the current indentation width. +int QsciScintilla::indentWidth() const +{ + int w = indentationWidth(); + + if (w == 0) + w = tabWidth(); + + return w; +} + + +// Return the state of indentation guides. +bool QsciScintilla::indentationGuides() const +{ + return (SendScintilla(SCI_GETINDENTATIONGUIDES) != SC_IV_NONE); +} + + +// Enable and disable indentation guides. +void QsciScintilla::setIndentationGuides(bool enable) +{ + int iv; + + if (!enable) + iv = SC_IV_NONE; + else if (lex.isNull()) + iv = SC_IV_REAL; + else + iv = lex->indentationGuideView(); + + SendScintilla(SCI_SETINDENTATIONGUIDES, iv); +} + + +// Set the background colour of indentation guides. +void QsciScintilla::setIndentationGuidesBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETBACK, STYLE_INDENTGUIDE, col); +} + + +// Set the foreground colour of indentation guides. +void QsciScintilla::setIndentationGuidesForegroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETFORE, STYLE_INDENTGUIDE, col); +} + + +// Return the indentation width. +int QsciScintilla::indentationWidth() const +{ + return SendScintilla(SCI_GETINDENT); +} + + +// Set the indentation width. +void QsciScintilla::setIndentationWidth(int width) +{ + SendScintilla(SCI_SETINDENT, width); +} + + +// Return the tab width. +int QsciScintilla::tabWidth() const +{ + return SendScintilla(SCI_GETTABWIDTH); +} + + +// Set the tab width. +void QsciScintilla::setTabWidth(int width) +{ + SendScintilla(SCI_SETTABWIDTH, width); +} + + +// Return the effect of the backspace key. +bool QsciScintilla::backspaceUnindents() const +{ + return SendScintilla(SCI_GETBACKSPACEUNINDENTS); +} + + +// Set the effect of the backspace key. +void QsciScintilla::setBackspaceUnindents(bool unindents) +{ + SendScintilla(SCI_SETBACKSPACEUNINDENTS, unindents); +} + + +// Return the effect of the tab key. +bool QsciScintilla::tabIndents() const +{ + return SendScintilla(SCI_GETTABINDENTS); +} + + +// Set the effect of the tab key. +void QsciScintilla::setTabIndents(bool indents) +{ + SendScintilla(SCI_SETTABINDENTS, indents); +} + + +// Return the indentation use of tabs. +bool QsciScintilla::indentationsUseTabs() const +{ + return SendScintilla(SCI_GETUSETABS); +} + + +// Set the indentation use of tabs. +void QsciScintilla::setIndentationsUseTabs(bool tabs) +{ + SendScintilla(SCI_SETUSETABS, tabs); +} + + +// Return the margin options. +int QsciScintilla::marginOptions() const +{ + return SendScintilla(SCI_GETMARGINOPTIONS); +} + + +// Set the margin options. +void QsciScintilla::setMarginOptions(int options) +{ + SendScintilla(SCI_SETMARGINOPTIONS, options); +} + + +// Return the margin type. +QsciScintilla::MarginType QsciScintilla::marginType(int margin) const +{ + return (MarginType)SendScintilla(SCI_GETMARGINTYPEN, margin); +} + + +// Set the margin type. +void QsciScintilla::setMarginType(int margin, QsciScintilla::MarginType type) +{ + SendScintilla(SCI_SETMARGINTYPEN, margin, type); +} + + +// Clear margin text. +void QsciScintilla::clearMarginText(int line) +{ + if (line < 0) + SendScintilla(SCI_MARGINSETTEXT, line, (const char *)0); + else + SendScintilla(SCI_MARGINTEXTCLEARALL); +} + + +// Annotate a line. +void QsciScintilla::setMarginText(int line, const QString &text, int style) +{ + int style_offset = SendScintilla(SCI_MARGINGETSTYLEOFFSET); + + SendScintilla(SCI_MARGINSETTEXT, line, + ScintillaBytesConstData(textAsBytes(text))); + + SendScintilla(SCI_MARGINSETSTYLE, line, style - style_offset); +} + + +// Annotate a line. +void QsciScintilla::setMarginText(int line, const QString &text, const QsciStyle &style) +{ + style.apply(this); + + setMarginText(line, text, style.style()); +} + + +// Annotate a line. +void QsciScintilla::setMarginText(int line, const QsciStyledText &text) +{ + text.apply(this); + + setMarginText(line, text.text(), text.style()); +} + + +// Annotate a line. +void QsciScintilla::setMarginText(int line, const QValueList &text) +{ + char *styles; + ScintillaBytes styled_text = styleText(text, &styles, + SendScintilla(SCI_MARGINGETSTYLEOFFSET)); + + SendScintilla(SCI_MARGINSETTEXT, line, + ScintillaBytesConstData(styled_text)); + SendScintilla(SCI_MARGINSETSTYLES, line, styles); + + delete[] styles; +} + + +// Return the state of line numbers in a margin. +bool QsciScintilla::marginLineNumbers(int margin) const +{ + return SendScintilla(SCI_GETMARGINTYPEN, margin); +} + + +// Enable and disable line numbers in a margin. +void QsciScintilla::setMarginLineNumbers(int margin, bool lnrs) +{ + SendScintilla(SCI_SETMARGINTYPEN, margin, + lnrs ? SC_MARGIN_NUMBER : SC_MARGIN_SYMBOL); +} + + +// Return the marker mask of a margin. +int QsciScintilla::marginMarkerMask(int margin) const +{ + return SendScintilla(SCI_GETMARGINMASKN, margin); +} + + +// Set the marker mask of a margin. +void QsciScintilla::setMarginMarkerMask(int margin,int mask) +{ + SendScintilla(SCI_SETMARGINMASKN, margin, mask); +} + + +// Return the state of a margin's sensitivity. +bool QsciScintilla::marginSensitivity(int margin) const +{ + return SendScintilla(SCI_GETMARGINSENSITIVEN, margin); +} + + +// Enable and disable a margin's sensitivity. +void QsciScintilla::setMarginSensitivity(int margin,bool sens) +{ + SendScintilla(SCI_SETMARGINSENSITIVEN, margin, sens); +} + + +// Return the width of a margin. +int QsciScintilla::marginWidth(int margin) const +{ + return SendScintilla(SCI_GETMARGINWIDTHN, margin); +} + + +// Set the width of a margin. +void QsciScintilla::setMarginWidth(int margin, int width) +{ + SendScintilla(SCI_SETMARGINWIDTHN, margin, width); +} + + +// Set the width of a margin to the width of some text. +void QsciScintilla::setMarginWidth(int margin, const QString &s) +{ + int width = SendScintilla(SCI_TEXTWIDTH, STYLE_LINENUMBER, + ScintillaBytesConstData(textAsBytes(s))); + + setMarginWidth(margin, width); +} + + +// Set the background colour of all margins. +void QsciScintilla::setMarginsBackgroundColor(const QColor &col) +{ + handleStylePaperChange(col, STYLE_LINENUMBER); +} + + +// Set the foreground colour of all margins. +void QsciScintilla::setMarginsForegroundColor(const QColor &col) +{ + handleStyleColorChange(col, STYLE_LINENUMBER); +} + + +// Set the font of all margins. +void QsciScintilla::setMarginsFont(const QFont &f) +{ + setStylesFont(f, STYLE_LINENUMBER); +} + + +// Define an indicator. +int QsciScintilla::indicatorDefine(IndicatorStyle style, int indicatorNumber) +{ + checkIndicator(indicatorNumber); + + if (indicatorNumber >= 0) + SendScintilla(SCI_INDICSETSTYLE, indicatorNumber, static_cast(style)); + + return indicatorNumber; +} + + +// Return the state of an indicator being drawn under the text. +bool QsciScintilla::indicatorDrawUnder(int indicatorNumber) const +{ + if (indicatorNumber < 0 || indicatorNumber >= INDIC_MAX) + return false; + + return SendScintilla(SCI_INDICGETUNDER, indicatorNumber); +} + + +// Set the state of indicators being drawn under the text. +void QsciScintilla::setIndicatorDrawUnder(bool under, int indicatorNumber) +{ + if (indicatorNumber <= INDIC_MAX) + { + // We ignore allocatedIndicators to allow any indicators defined + // elsewhere (e.g. in lexers) to be set. + if (indicatorNumber < 0) + { + for (int i = 0; i <= INDIC_MAX; ++i) + SendScintilla(SCI_INDICSETUNDER, i, under); + } + else + { + SendScintilla(SCI_INDICSETUNDER, indicatorNumber, under); + } + } +} + + +// Set the indicator foreground colour. +void QsciScintilla::setIndicatorForegroundColor(const QColor &col, int indicatorNumber) +{ + if (indicatorNumber <= INDIC_MAX) + { + int alpha = qAlpha(col.rgb()); + + // We ignore allocatedIndicators to allow any indicators defined + // elsewhere (e.g. in lexers) to be set. + if (indicatorNumber < 0) + { + for (int i = 0; i <= INDIC_MAX; ++i) + { + SendScintilla(SCI_INDICSETFORE, i, col); + SendScintilla(SCI_INDICSETALPHA, i, alpha); + } + } + else + { + SendScintilla(SCI_INDICSETFORE, indicatorNumber, col); + SendScintilla(SCI_INDICSETALPHA, indicatorNumber, alpha); + } + } +} + + +// Set the indicator outline colour. +void QsciScintilla::setIndicatorOutlineColor(const QColor &col, int indicatorNumber) +{ + if (indicatorNumber <= INDIC_MAX) + { + int alpha = qAlpha(col.rgb()); + + // We ignore allocatedIndicators to allow any indicators defined + // elsewhere (e.g. in lexers) to be set. + if (indicatorNumber < 0) + { + for (int i = 0; i <= INDIC_MAX; ++i) + SendScintilla(SCI_INDICSETOUTLINEALPHA, i, alpha); + } + else + { + SendScintilla(SCI_INDICSETOUTLINEALPHA, indicatorNumber, alpha); + } + } +} + + +// Fill a range with an indicator. +void QsciScintilla::fillIndicatorRange(int lineFrom, int indexFrom, + int lineTo, int indexTo, int indicatorNumber) +{ + if (indicatorNumber <= INDIC_MAX) + { + int start = positionFromLineIndex(lineFrom, indexFrom); + int finish = positionFromLineIndex(lineTo, indexTo); + + // We ignore allocatedIndicators to allow any indicators defined + // elsewhere (e.g. in lexers) to be set. + if (indicatorNumber < 0) + { + for (int i = 0; i <= INDIC_MAX; ++i) + { + SendScintilla(SCI_SETINDICATORCURRENT, i); + SendScintilla(SCI_INDICATORFILLRANGE, start, finish - start); + } + } + else + { + SendScintilla(SCI_SETINDICATORCURRENT, indicatorNumber); + SendScintilla(SCI_INDICATORFILLRANGE, start, finish - start); + } + } +} + + +// Clear a range with an indicator. +void QsciScintilla::clearIndicatorRange(int lineFrom, int indexFrom, + int lineTo, int indexTo, int indicatorNumber) +{ + if (indicatorNumber <= INDIC_MAX) + { + int start = positionFromLineIndex(lineFrom, indexFrom); + int finish = positionFromLineIndex(lineTo, indexTo); + + // We ignore allocatedIndicators to allow any indicators defined + // elsewhere (e.g. in lexers) to be set. + if (indicatorNumber < 0) + { + for (int i = 0; i <= INDIC_MAX; ++i) + { + SendScintilla(SCI_SETINDICATORCURRENT, i); + SendScintilla(SCI_INDICATORCLEARRANGE, start, finish - start); + } + } + else + { + SendScintilla(SCI_SETINDICATORCURRENT, indicatorNumber); + SendScintilla(SCI_INDICATORCLEARRANGE, start, finish - start); + } + } +} + + +// Define a marker based on a symbol. +int QsciScintilla::markerDefine(MarkerSymbol sym, int markerNumber) +{ + checkMarker(markerNumber); + + if (markerNumber >= 0) + SendScintilla(SCI_MARKERDEFINE, markerNumber, static_cast(sym)); + + return markerNumber; +} + + +// Define a marker based on a character. +int QsciScintilla::markerDefine(char ch, int markerNumber) +{ + checkMarker(markerNumber); + + if (markerNumber >= 0) + SendScintilla(SCI_MARKERDEFINE, markerNumber, + static_cast(SC_MARK_CHARACTER) + ch); + + return markerNumber; +} + + +// Define a marker based on a QPixmap. +int QsciScintilla::markerDefine(const QPixmap &pm, int markerNumber) +{ + checkMarker(markerNumber); + + if (markerNumber >= 0) + SendScintilla(SCI_MARKERDEFINEPIXMAP, markerNumber, pm); + + return markerNumber; +} + + +// Define a marker based on a QImage. +int QsciScintilla::markerDefine(const QImage &im, int markerNumber) +{ + checkMarker(markerNumber); + + if (markerNumber >= 0) + { + SendScintilla(SCI_RGBAIMAGESETHEIGHT, im.height()); + SendScintilla(SCI_RGBAIMAGESETWIDTH, im.width()); + SendScintilla(SCI_MARKERDEFINERGBAIMAGE, markerNumber, im); + } + + return markerNumber; +} + + +// Add a marker to a line. +int QsciScintilla::markerAdd(int linenr, int markerNumber) +{ + if (markerNumber < 0 || markerNumber > MARKER_MAX || (allocatedMarkers & (1 << markerNumber)) == 0) + return -1; + + return SendScintilla(SCI_MARKERADD, linenr, markerNumber); +} + + +// Get the marker mask for a line. +unsigned QsciScintilla::markersAtLine(int linenr) const +{ + return SendScintilla(SCI_MARKERGET, linenr); +} + + +// Delete a marker from a line. +void QsciScintilla::markerDelete(int linenr, int markerNumber) +{ + if (markerNumber <= MARKER_MAX) + { + if (markerNumber < 0) + { + unsigned am = allocatedMarkers; + + for (int m = 0; m <= MARKER_MAX; ++m) + { + if (am & 1) + SendScintilla(SCI_MARKERDELETE, linenr, m); + + am >>= 1; + } + } + else if (allocatedMarkers & (1 << markerNumber)) + SendScintilla(SCI_MARKERDELETE, linenr, markerNumber); + } +} + + +// Delete a marker from the text. +void QsciScintilla::markerDeleteAll(int markerNumber) +{ + if (markerNumber <= MARKER_MAX) + { + if (markerNumber < 0) + SendScintilla(SCI_MARKERDELETEALL, -1); + else if (allocatedMarkers & (1 << markerNumber)) + SendScintilla(SCI_MARKERDELETEALL, markerNumber); + } +} + + +// Delete a marker handle from the text. +void QsciScintilla::markerDeleteHandle(int mhandle) +{ + SendScintilla(SCI_MARKERDELETEHANDLE, mhandle); +} + + +// Return the line containing a marker instance. +int QsciScintilla::markerLine(int mhandle) const +{ + return SendScintilla(SCI_MARKERLINEFROMHANDLE, mhandle); +} + + +// Search forwards for a marker. +int QsciScintilla::markerFindNext(int linenr, unsigned mask) const +{ + return SendScintilla(SCI_MARKERNEXT, linenr, mask); +} + + +// Search backwards for a marker. +int QsciScintilla::markerFindPrevious(int linenr, unsigned mask) const +{ + return SendScintilla(SCI_MARKERPREVIOUS, linenr, mask); +} + + +// Set the marker background colour. +void QsciScintilla::setMarkerBackgroundColor(const QColor &col, int markerNumber) +{ + if (markerNumber <= MARKER_MAX) + { + int alpha = qAlpha(col.rgb()); + + // An opaque background would make the text invisible. + if (alpha == 255) + alpha = SC_ALPHA_NOALPHA; + + if (markerNumber < 0) + { + unsigned am = allocatedMarkers; + + for (int m = 0; m <= MARKER_MAX; ++m) + { + if (am & 1) + { + SendScintilla(SCI_MARKERSETBACK, m, col); + SendScintilla(SCI_MARKERSETALPHA, m, alpha); + } + + am >>= 1; + } + } + else if (allocatedMarkers & (1 << markerNumber)) + { + SendScintilla(SCI_MARKERSETBACK, markerNumber, col); + SendScintilla(SCI_MARKERSETALPHA, markerNumber, alpha); + } + } +} + + +// Set the marker foreground colour. +void QsciScintilla::setMarkerForegroundColor(const QColor &col, int markerNumber) +{ + if (markerNumber <= MARKER_MAX) + { + if (markerNumber < 0) + { + unsigned am = allocatedMarkers; + + for (int m = 0; m <= MARKER_MAX; ++m) + { + if (am & 1) + SendScintilla(SCI_MARKERSETFORE, m, col); + + am >>= 1; + } + } + else if (allocatedMarkers & (1 << markerNumber)) + { + SendScintilla(SCI_MARKERSETFORE, markerNumber, col); + } + } +} + + +// Check a marker, allocating a marker number if necessary. +void QsciScintilla::checkMarker(int &markerNumber) +{ + allocateId(markerNumber, allocatedMarkers, 0, MARKER_MAX); +} + + +// Check an indicator, allocating an indicator number if necessary. +void QsciScintilla::checkIndicator(int &indicatorNumber) +{ + allocateId(indicatorNumber, allocatedIndicators, INDIC_CONTAINER, + INDIC_MAX); +} + + +// Make sure an identifier is valid and allocate it if necessary. +void QsciScintilla::allocateId(int &id, unsigned &allocated, int min, int max) +{ + if (id >= 0) + { + // Note that we allow existing identifiers to be explicitly redefined. + if (id > max) + id = -1; + } + else + { + unsigned aids = allocated >> min; + + // Find the smallest unallocated identifier. + for (id = min; id <= max; ++id) + { + if ((aids & 1) == 0) + break; + + aids >>= 1; + } + } + + // Allocate the identifier if it is valid. + if (id >= 0) + allocated |= (1 << id); +} + + +// Reset the fold margin colours. +void QsciScintilla::resetFoldMarginColors() +{ + SendScintilla(SCI_SETFOLDMARGINHICOLOUR, 0, 0L); + SendScintilla(SCI_SETFOLDMARGINCOLOUR, 0, 0L); +} + + +// Set the fold margin colours. +void QsciScintilla::setFoldMarginColors(const QColor &fore, const QColor &back) +{ + SendScintilla(SCI_SETFOLDMARGINHICOLOUR, 1, fore); + SendScintilla(SCI_SETFOLDMARGINCOLOUR, 1, back); +} + + +// Set the call tips background colour. +void QsciScintilla::setCallTipsBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_CALLTIPSETBACK, col); +} + + +// Set the call tips foreground colour. +void QsciScintilla::setCallTipsForegroundColor(const QColor &col) +{ + SendScintilla(SCI_CALLTIPSETFORE, col); +} + + +// Set the call tips highlight colour. +void QsciScintilla::setCallTipsHighlightColor(const QColor &col) +{ + SendScintilla(SCI_CALLTIPSETFOREHLT, col); +} + + +// Set the matched brace background colour. +void QsciScintilla::setMatchedBraceBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETBACK, STYLE_BRACELIGHT, col); +} + + +// Set the matched brace foreground colour. +void QsciScintilla::setMatchedBraceForegroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETFORE, STYLE_BRACELIGHT, col); +} + + +// Set the matched brace indicator. +void QsciScintilla::setMatchedBraceIndicator(int indicatorNumber) +{ + SendScintilla(SCI_BRACEHIGHLIGHTINDICATOR, 1, indicatorNumber); +} + + +// Reset the matched brace indicator. +void QsciScintilla::resetMatchedBraceIndicator() +{ + SendScintilla(SCI_BRACEHIGHLIGHTINDICATOR, 0, 0L); +} + + +// Set the unmatched brace background colour. +void QsciScintilla::setUnmatchedBraceBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETBACK, STYLE_BRACEBAD, col); +} + + +// Set the unmatched brace foreground colour. +void QsciScintilla::setUnmatchedBraceForegroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETFORE, STYLE_BRACEBAD, col); +} + + +// Set the unmatched brace indicator. +void QsciScintilla::setUnmatchedBraceIndicator(int indicatorNumber) +{ + SendScintilla(SCI_BRACEBADLIGHTINDICATOR, 1, indicatorNumber); +} + + +// Reset the unmatched brace indicator. +void QsciScintilla::resetUnmatchedBraceIndicator() +{ + SendScintilla(SCI_BRACEBADLIGHTINDICATOR, 0, 0L); +} + + +// Detach any lexer. +void QsciScintilla::detachLexer() +{ + if (!lex.isNull()) + { + lex->setEditor(0); + lex->disconnect(this); + + SendScintilla(SCI_STYLERESETDEFAULT); + SendScintilla(SCI_STYLECLEARALL); + SendScintilla(SCI_CLEARDOCUMENTSTYLE); + } +} + + +// Set the lexer. +void QsciScintilla::setLexer(QsciLexer *lexer) +{ + // Detach any current lexer. + detachLexer(); + + // Connect up the new lexer. + lex = lexer; + + if (lex) + { + if (lex->lexer()) + SendScintilla(SCI_SETLEXERLANGUAGE, lex->lexer()); + else + SendScintilla(SCI_SETLEXER, lex->lexerId()); + + lex->setEditor(this); + + connect(lex,SIGNAL(colorChanged(const QColor &, int)), + SLOT(handleStyleColorChange(const QColor &, int))); + connect(lex,SIGNAL(eolFillChanged(bool, int)), + SLOT(handleStyleEolFillChange(bool, int))); + connect(lex,SIGNAL(fontChanged(const QFont &, int)), + SLOT(handleStyleFontChange(const QFont &, int))); + connect(lex,SIGNAL(paperChanged(const QColor &, int)), + SLOT(handleStylePaperChange(const QColor &, int))); + connect(lex,SIGNAL(propertyChanged(const char *, const char *)), + SLOT(handlePropertyChange(const char *, const char *))); + + SendScintilla(SCI_SETPROPERTY, "fold", "1"); + SendScintilla(SCI_SETPROPERTY, "fold.html", "1"); + + // Set the keywords. Scintilla allows for sets numbered 0 to + // KEYWORDSET_MAX (although the lexers only seem to exploit 0 to + // KEYWORDSET_MAX - 1). We number from 1 in line with SciTE's property + // files. + for (int k = 0; k <= KEYWORDSET_MAX; ++k) + { + const char *kw = lex -> keywords(k + 1); + + if (!kw) + kw = ""; + + SendScintilla(SCI_SETKEYWORDS, k, kw); + } + + // Initialise each style. Do the default first so its (possibly + // incorrect) font setting gets reset when style 0 is set. + setLexerStyle(STYLE_DEFAULT); + + int nrStyles = 1 << SendScintilla(SCI_GETSTYLEBITS); + + for (int s = 0; s < nrStyles; ++s) + if (!lex->description(s).isNull()) + setLexerStyle(s); + + // Initialise the properties. + lex->refreshProperties(); + + // Set the auto-completion fillups and word separators. + setAutoCompletionFillupsEnabled(fillups_enabled); + wseps = lex->autoCompletionWordSeparators(); + + wchars = lex->wordCharacters(); + + if (!wchars) + wchars = defaultWordChars; + + SendScintilla(SCI_AUTOCSETIGNORECASE, !lex->caseSensitive()); + + recolor(); + } + else + { + SendScintilla(SCI_SETLEXER, SCLEX_CONTAINER); + + setColor(nl_text_colour); + setPaper(nl_paper_colour); + + SendScintilla(SCI_AUTOCSETFILLUPS, ""); + SendScintilla(SCI_AUTOCSETIGNORECASE, false); + wseps.clear(); + wchars = defaultWordChars; + } +} + + +// Set a particular style of the current lexer. +void QsciScintilla::setLexerStyle(int style) +{ + handleStyleColorChange(lex->color(style), style); + handleStyleEolFillChange(lex->eolFill(style), style); + handleStyleFontChange(lex->font(style), style); + handleStylePaperChange(lex->paper(style), style); +} + + +// Get the current lexer. +QsciLexer *QsciScintilla::lexer() const +{ + return lex; +} + + +// Handle a change in lexer style foreground colour. +void QsciScintilla::handleStyleColorChange(const QColor &c, int style) +{ + SendScintilla(SCI_STYLESETFORE, style, c); +} + + +// Handle a change in lexer style end-of-line fill. +void QsciScintilla::handleStyleEolFillChange(bool eolfill, int style) +{ + SendScintilla(SCI_STYLESETEOLFILLED, style, eolfill); +} + + +// Handle a change in lexer style font. +void QsciScintilla::handleStyleFontChange(const QFont &f, int style) +{ + setStylesFont(f, style); + + if (style == lex->braceStyle()) + { + setStylesFont(f, STYLE_BRACELIGHT); + setStylesFont(f, STYLE_BRACEBAD); + } +} + + +// Set the font for a style. +void QsciScintilla::setStylesFont(const QFont &f, int style) +{ + SendScintilla(SCI_STYLESETFONT, style, f.family().ascii()); + SendScintilla(SCI_STYLESETSIZEFRACTIONAL, style, + long(f.pointSizeF() * SC_FONT_SIZE_MULTIPLIER)); + + // Pass the Qt weight via the back door. + SendScintilla(SCI_STYLESETWEIGHT, style, -f.weight()); + + SendScintilla(SCI_STYLESETITALIC, style, f.italic()); + SendScintilla(SCI_STYLESETUNDERLINE, style, f.underline()); + + // Tie the font settings of the default style to that of style 0 (the style + // conventionally used for whitespace by lexers). This is needed so that + // fold marks, indentations, edge columns etc are set properly. + if (style == 0) + setStylesFont(f, STYLE_DEFAULT); +} + + +// Handle a change in lexer style background colour. +void QsciScintilla::handleStylePaperChange(const QColor &c, int style) +{ + SendScintilla(SCI_STYLESETBACK, style, c); +} + + +// Handle a change in lexer property. +void QsciScintilla::handlePropertyChange(const char *prop, const char *val) +{ + SendScintilla(SCI_SETPROPERTY, prop, val); +} + + +// Handle a change to the user visible user interface. +void QsciScintilla::handleUpdateUI(int) +{ + int newPos = SendScintilla(SCI_GETCURRENTPOS); + + if (newPos != oldPos) + { + oldPos = newPos; + + int line = SendScintilla(SCI_LINEFROMPOSITION, newPos); + int col = SendScintilla(SCI_GETCOLUMN, newPos); + + emit cursorPositionChanged(line, col); + } + + if (braceMode != NoBraceMatch) + braceMatch(); +} + + +// Handle brace matching. +void QsciScintilla::braceMatch() +{ + long braceAtCaret, braceOpposite; + + findMatchingBrace(braceAtCaret, braceOpposite, braceMode); + + if (braceAtCaret >= 0 && braceOpposite < 0) + { + SendScintilla(SCI_BRACEBADLIGHT, braceAtCaret); + SendScintilla(SCI_SETHIGHLIGHTGUIDE, 0UL); + } + else + { + char chBrace = SendScintilla(SCI_GETCHARAT, braceAtCaret); + + SendScintilla(SCI_BRACEHIGHLIGHT, braceAtCaret, braceOpposite); + + long columnAtCaret = SendScintilla(SCI_GETCOLUMN, braceAtCaret); + long columnOpposite = SendScintilla(SCI_GETCOLUMN, braceOpposite); + + if (chBrace == ':') + { + long lineStart = SendScintilla(SCI_LINEFROMPOSITION, braceAtCaret); + long indentPos = SendScintilla(SCI_GETLINEINDENTPOSITION, + lineStart); + long indentPosNext = SendScintilla(SCI_GETLINEINDENTPOSITION, + lineStart + 1); + + columnAtCaret = SendScintilla(SCI_GETCOLUMN, indentPos); + + long columnAtCaretNext = SendScintilla(SCI_GETCOLUMN, + indentPosNext); + long indentSize = SendScintilla(SCI_GETINDENT); + + if (columnAtCaretNext - indentSize > 1) + columnAtCaret = columnAtCaretNext - indentSize; + + if (columnOpposite == 0) + columnOpposite = columnAtCaret; + } + + long column = columnAtCaret; + + if (column > columnOpposite) + column = columnOpposite; + + SendScintilla(SCI_SETHIGHLIGHTGUIDE, column); + } +} + + +// Check if the character at a position is a brace. +long QsciScintilla::checkBrace(long pos, int brace_style, bool &colonMode) +{ + long brace_pos = -1; + char ch = SendScintilla(SCI_GETCHARAT, pos); + + if (ch == ':') + { + // A bit of a hack, we should really use a virtual. + if (!lex.isNull() && qstrcmp(lex->lexer(), "python") == 0) + { + brace_pos = pos; + colonMode = true; + } + } + else if (ch && strchr("[](){}<>", ch)) + { + if (brace_style < 0) + brace_pos = pos; + else + { + int style = SendScintilla(SCI_GETSTYLEAT, pos) & 0x1f; + + if (style == brace_style) + brace_pos = pos; + } + } + + return brace_pos; +} + + +// Find a brace and it's match. Return true if the current position is inside +// a pair of braces. +bool QsciScintilla::findMatchingBrace(long &brace, long &other,BraceMatch mode) +{ + bool colonMode = false; + int brace_style = (lex.isNull() ? -1 : lex->braceStyle()); + + brace = -1; + other = -1; + + long caretPos = SendScintilla(SCI_GETCURRENTPOS); + + if (caretPos > 0) + brace = checkBrace(caretPos - 1, brace_style, colonMode); + + bool isInside = false; + + if (brace < 0 && mode == SloppyBraceMatch) + { + brace = checkBrace(caretPos, brace_style, colonMode); + + if (brace >= 0 && !colonMode) + isInside = true; + } + + if (brace >= 0) + { + if (colonMode) + { + // Find the end of the Python indented block. + long lineStart = SendScintilla(SCI_LINEFROMPOSITION, brace); + long lineMaxSubord = SendScintilla(SCI_GETLASTCHILD, lineStart, -1); + + other = SendScintilla(SCI_GETLINEENDPOSITION, lineMaxSubord); + } + else + other = SendScintilla(SCI_BRACEMATCH, brace); + + if (other > brace) + isInside = !isInside; + } + + return isInside; +} + + +// Move to the matching brace. +void QsciScintilla::moveToMatchingBrace() +{ + gotoMatchingBrace(false); +} + + +// Select to the matching brace. +void QsciScintilla::selectToMatchingBrace() +{ + gotoMatchingBrace(true); +} + + +// Move to the matching brace and optionally select the text. +void QsciScintilla::gotoMatchingBrace(bool select) +{ + long braceAtCaret; + long braceOpposite; + + bool isInside = findMatchingBrace(braceAtCaret, braceOpposite, + SloppyBraceMatch); + + if (braceOpposite >= 0) + { + // Convert the character positions into caret positions based on + // whether the caret position was inside or outside the braces. + if (isInside) + { + if (braceOpposite > braceAtCaret) + braceAtCaret++; + else + braceOpposite++; + } + else + { + if (braceOpposite > braceAtCaret) + braceOpposite++; + else + braceAtCaret++; + } + + ensureLineVisible(SendScintilla(SCI_LINEFROMPOSITION, braceOpposite)); + + if (select) + SendScintilla(SCI_SETSEL, braceAtCaret, braceOpposite); + else + SendScintilla(SCI_SETSEL, braceOpposite, braceOpposite); + } +} + + +// Return a position from a line number and an index within the line. +int QsciScintilla::positionFromLineIndex(int line, int index) const +{ + int pos = SendScintilla(SCI_POSITIONFROMLINE, line); + + // Allow for multi-byte characters. + for(int i = 0; i < index; i++) + pos = SendScintilla(SCI_POSITIONAFTER, pos); + + return pos; +} + + +// Return a line number and an index within the line from a position. +void QsciScintilla::lineIndexFromPosition(int position, int *line, int *index) const +{ + int lin = SendScintilla(SCI_LINEFROMPOSITION, position); + int linpos = SendScintilla(SCI_POSITIONFROMLINE, lin); + int indx = 0; + + // Allow for multi-byte characters. + while (linpos < position) + { + int new_linpos = SendScintilla(SCI_POSITIONAFTER, linpos); + + // If the position hasn't moved then we must be at the end of the text + // (which implies that the position passed was beyond the end of the + // text). + if (new_linpos == linpos) + break; + + linpos = new_linpos; + ++indx; + } + + *line = lin; + *index = indx; +} + + +// Set the source of the automatic auto-completion list. +void QsciScintilla::setAutoCompletionSource(AutoCompletionSource source) +{ + acSource = source; +} + + +// Set the threshold for automatic auto-completion. +void QsciScintilla::setAutoCompletionThreshold(int thresh) +{ + acThresh = thresh; +} + + +// Set the auto-completion word separators if there is no current lexer. +void QsciScintilla::setAutoCompletionWordSeparators(const QStringList &separators) +{ + if (lex.isNull()) + wseps = separators; +} + + +// Explicitly auto-complete from all sources. +void QsciScintilla::autoCompleteFromAll() +{ + startAutoCompletion(AcsAll, false, use_single != AcusNever); +} + + +// Explicitly auto-complete from the APIs. +void QsciScintilla::autoCompleteFromAPIs() +{ + startAutoCompletion(AcsAPIs, false, use_single != AcusNever); +} + + +// Explicitly auto-complete from the document. +void QsciScintilla::autoCompleteFromDocument() +{ + startAutoCompletion(AcsDocument, false, use_single != AcusNever); +} + + +// Check if a character can be in a word. +bool QsciScintilla::isWordCharacter(char ch) const +{ + return (strchr(wchars, ch) != NULL); +} + + +// Return the set of valid word characters. +const char *QsciScintilla::wordCharacters() const +{ + return wchars; +} + + +// Recolour the document. +void QsciScintilla::recolor(int start, int end) +{ + SendScintilla(SCI_COLOURISE, start, end); +} + + +// Registered a QPixmap image. +void QsciScintilla::registerImage(int id, const QPixmap &pm) +{ + SendScintilla(SCI_REGISTERIMAGE, id, pm); +} + + +// Registered a QImage image. +void QsciScintilla::registerImage(int id, const QImage &im) +{ + SendScintilla(SCI_RGBAIMAGESETHEIGHT, im.height()); + SendScintilla(SCI_RGBAIMAGESETWIDTH, im.width()); + SendScintilla(SCI_REGISTERRGBAIMAGE, id, im); +} + + +// Clear all registered images. +void QsciScintilla::clearRegisteredImages() +{ + SendScintilla(SCI_CLEARREGISTEREDIMAGES); +} + + +// Enable auto-completion fill-ups. +void QsciScintilla::setAutoCompletionFillupsEnabled(bool enable) +{ + const char *fillups; + + if (!enable) + fillups = ""; + else if (!lex.isNull()) + fillups = lex->autoCompletionFillups(); + else + fillups = explicit_fillups.data(); + + SendScintilla(SCI_AUTOCSETFILLUPS, fillups); + + fillups_enabled = enable; +} + + +// See if auto-completion fill-ups are enabled. +bool QsciScintilla::autoCompletionFillupsEnabled() const +{ + return fillups_enabled; +} + + +// Set the fill-up characters for auto-completion if there is no current lexer. +void QsciScintilla::setAutoCompletionFillups(const char *fillups) +{ + explicit_fillups = fillups; + setAutoCompletionFillupsEnabled(fillups_enabled); +} + + +// Set the case sensitivity for auto-completion. +void QsciScintilla::setAutoCompletionCaseSensitivity(bool cs) +{ + SendScintilla(SCI_AUTOCSETIGNORECASE, !cs); +} + + +// Return the case sensitivity for auto-completion. +bool QsciScintilla::autoCompletionCaseSensitivity() const +{ + return !SendScintilla(SCI_AUTOCGETIGNORECASE); +} + + +// Set the replace word mode for auto-completion. +void QsciScintilla::setAutoCompletionReplaceWord(bool replace) +{ + SendScintilla(SCI_AUTOCSETDROPRESTOFWORD, replace); +} + + +// Return the replace word mode for auto-completion. +bool QsciScintilla::autoCompletionReplaceWord() const +{ + return SendScintilla(SCI_AUTOCGETDROPRESTOFWORD); +} + + +// Set the single item mode for auto-completion. +void QsciScintilla::setAutoCompletionUseSingle(AutoCompletionUseSingle single) +{ + use_single = single; +} + + +// Return the single item mode for auto-completion. +QsciScintilla::AutoCompletionUseSingle QsciScintilla::autoCompletionUseSingle() const +{ + return use_single; +} + + +// Set the single item mode for auto-completion (deprecated). +void QsciScintilla::setAutoCompletionShowSingle(bool single) +{ + use_single = (single ? AcusExplicit : AcusNever); +} + + +// Return the single item mode for auto-completion (deprecated). +bool QsciScintilla::autoCompletionShowSingle() const +{ + return (use_single != AcusNever); +} + + +// Set current call tip position. +void QsciScintilla::setCallTipsPosition(CallTipsPosition position) +{ + SendScintilla(SCI_CALLTIPSETPOSITION, (position == CallTipsAboveText)); + call_tips_position = position; +} + + +// Set current call tip style. +void QsciScintilla::setCallTipsStyle(CallTipsStyle style) +{ + call_tips_style = style; +} + + +// Set maximum number of call tips displayed. +void QsciScintilla::setCallTipsVisible(int nr) +{ + maxCallTips = nr; +} + + +// Set the document to display. +void QsciScintilla::setDocument(const QsciDocument &document) +{ + if (doc.pdoc != document.pdoc) + { + doc.undisplay(this); + doc.attach(document); + doc.display(this,&document); + } +} + + +// Ensure the document is read-write and return true if was was read-only. +bool QsciScintilla::ensureRW() +{ + bool ro = isReadOnly(); + + if (ro) + setReadOnly(false); + + return ro; +} + + +// Return the number of the first visible line. +int QsciScintilla::firstVisibleLine() const +{ + return SendScintilla(SCI_GETFIRSTVISIBLELINE); +} + + +// Set the number of the first visible line. +void QsciScintilla::setFirstVisibleLine(int linenr) +{ + SendScintilla(SCI_SETFIRSTVISIBLELINE, linenr); +} + + +// Return the height in pixels of the text in a particular line. +int QsciScintilla::textHeight(int linenr) const +{ + return SendScintilla(SCI_TEXTHEIGHT, linenr); +} + + +// See if auto-completion or user list is active. +bool QsciScintilla::isListActive() const +{ + return SendScintilla(SCI_AUTOCACTIVE); +} + + +// Cancel any current auto-completion or user list. +void QsciScintilla::cancelList() +{ + SendScintilla(SCI_AUTOCCANCEL); +} + + +// Handle a selection from the auto-completion list. +void QsciScintilla::handleAutoCompletionSelection() +{ + if (!lex.isNull()) + { + QsciAbstractAPIs *apis = lex->apis(); + + if (apis) + apis->autoCompletionSelected(acSelection); + } +} + + +// Display a user list. +void QsciScintilla::showUserList(int id, const QStringList &list) +{ + // Sanity check to make sure auto-completion doesn't get confused. + if (id <= 0) + return; + + SendScintilla(SCI_AUTOCSETSEPARATOR, userSeparator); + + ScintillaBytes s = textAsBytes(list.join(QChar(userSeparator))); + SendScintilla(SCI_USERLISTSHOW, id, ScintillaBytesConstData(s)); +} + + +// Translate the SCN_USERLISTSELECTION notification into something more useful. +void QsciScintilla::handleUserListSelection(const char *text, int id) +{ + emit userListActivated(id, QString(text)); + +} + + +// Return the case sensitivity of any lexer. +bool QsciScintilla::caseSensitive() const +{ + return lex.isNull() ? true : lex->caseSensitive(); +} + + +// Return true if the current list is an auto-completion list rather than a +// user list. +bool QsciScintilla::isAutoCompletionList() const +{ + return (SendScintilla(SCI_AUTOCGETSEPARATOR) == acSeparator); +} + + +// Read the text from a QIODevice. +bool QsciScintilla::read(QIODevice *io) +{ + const int min_size = 1024 * 8; + + int buf_size = min_size; + char *buf = new char[buf_size]; + + int data_len = 0; + bool ok = true; + + Q_LONG part; + + // Read the whole lot in so we don't have to worry about character + // boundaries. + do + { + // Make sure there is a minimum amount of room. + if (buf_size - data_len < min_size) + { + buf_size *= 2; + char *new_buf = new char[buf_size * 2]; + + memcpy(new_buf, buf, data_len); + delete[] buf; + buf = new_buf; + } + + part = io->readBlock(buf + data_len, buf_size - data_len - 1); + + data_len += part; + } + while (part > 0); + + if (part < 0) + ok = false; + else + { + buf[data_len] = '\0'; + + bool ro = ensureRW(); + + SendScintilla(SCI_SETTEXT, buf); + SendScintilla(SCI_EMPTYUNDOBUFFER); + + setReadOnly(ro); + } + + delete[] buf; + + return ok; +} + + +// Write the text to a QIODevice. +bool QsciScintilla::write(QIODevice *io) const +{ + const char *buf = reinterpret_cast(SendScintillaPtrResult(SCI_GETCHARACTERPOINTER)); + + const char *bp = buf; + uint buflen = qstrlen(buf); + + while (buflen > 0) + { + Q_LONG part = io->writeBlock(bp, buflen); + + if (part < 0) + return false; + + bp += part; + buflen -= part; + } + + return true; +} + + +// Return the word at the given coordinates. +QString QsciScintilla::wordAtLineIndex(int line, int index) const +{ + return wordAtPosition(positionFromLineIndex(line, index)); +} + + +// Return the word at the given coordinates. +QString QsciScintilla::wordAtPoint(const QPoint &point) const +{ + long close_pos = SendScintilla(SCI_POSITIONFROMPOINTCLOSE, point.x(), + point.y()); + + return wordAtPosition(close_pos); +} + + +// Return the word at the given position. +QString QsciScintilla::wordAtPosition(int position) const +{ + if (position < 0) + return QString(); + + long start_pos = SendScintilla(SCI_WORDSTARTPOSITION, position, true); + long end_pos = SendScintilla(SCI_WORDENDPOSITION, position, true); + int word_len = end_pos - start_pos; + + if (word_len <= 0) + return QString(); + + char *buf = new char[word_len + 1]; + SendScintilla(SCI_GETTEXTRANGE, start_pos, end_pos, buf); + QString word = bytesAsText(buf); + delete[] buf; + + return word; +} + + +// Return the display style for annotations. +QsciScintilla::AnnotationDisplay QsciScintilla::annotationDisplay() const +{ + return (AnnotationDisplay)SendScintilla(SCI_ANNOTATIONGETVISIBLE); +} + + +// Set the display style for annotations. +void QsciScintilla::setAnnotationDisplay(QsciScintilla::AnnotationDisplay display) +{ + SendScintilla(SCI_ANNOTATIONSETVISIBLE, display); + setScrollBars(); +} + + +// Clear annotations. +void QsciScintilla::clearAnnotations(int line) +{ + if (line >= 0) + SendScintilla(SCI_ANNOTATIONSETTEXT, line, (const char *)0); + else + SendScintilla(SCI_ANNOTATIONCLEARALL); + + setScrollBars(); +} + + +// Annotate a line. +void QsciScintilla::annotate(int line, const QString &text, int style) +{ + int style_offset = SendScintilla(SCI_ANNOTATIONGETSTYLEOFFSET); + + ScintillaBytes s = textAsBytes(text); + + SendScintilla(SCI_ANNOTATIONSETTEXT, line, ScintillaBytesConstData(s)); + SendScintilla(SCI_ANNOTATIONSETSTYLE, line, style - style_offset); + + setScrollBars(); +} + + +// Annotate a line. +void QsciScintilla::annotate(int line, const QString &text, const QsciStyle &style) +{ + style.apply(this); + + annotate(line, text, style.style()); +} + + +// Annotate a line. +void QsciScintilla::annotate(int line, const QsciStyledText &text) +{ + text.apply(this); + + annotate(line, text.text(), text.style()); +} + + +// Annotate a line. +void QsciScintilla::annotate(int line, const QValueList &text) +{ + char *styles; + ScintillaBytes styled_text = styleText(text, &styles, + SendScintilla(SCI_ANNOTATIONGETSTYLEOFFSET)); + + SendScintilla(SCI_ANNOTATIONSETTEXT, line, + ScintillaBytesConstData(styled_text)); + SendScintilla(SCI_ANNOTATIONSETSTYLES, line, styles); + + delete[] styles; +} + + +// Get the annotation for a line, if any. +QString QsciScintilla::annotation(int line) const +{ + char *buf = new char[SendScintilla(SCI_ANNOTATIONGETTEXT, line, (const char *)0) + 1]; + + buf[SendScintilla(SCI_ANNOTATIONGETTEXT, line, buf)] = '\0'; + + QString qs = bytesAsText(buf); + delete[] buf; + + return qs; +} + + +// Convert a list of styled text to the low-level arrays. +QsciScintillaBase::ScintillaBytes QsciScintilla::styleText(const QValueList &styled_text, char **styles, int style_offset) +{ + QString text; + int i; + + // Build the full text. + for (i = 0; i < styled_text.count(); ++i) + { + const QsciStyledText &st = styled_text[i]; + + st.apply(this); + + text.append(st.text()); + } + + ScintillaBytes s = textAsBytes(text); + + // There is a style byte for every byte. + char *sp = *styles = new char[s.length()]; + + for (i = 0; i < styled_text.count(); ++i) + { + const QsciStyledText &st = styled_text[i]; + ScintillaBytes part = textAsBytes(st.text()); + int part_length = part.length(); + + for (int c = 0; c < part_length; ++c) + *sp++ = (char)(st.style() - style_offset); + } + + return s; +} + + +// Convert Scintilla modifiers to the Qt equivalent. +int QsciScintilla::mapModifiers(int modifiers) +{ + int state = 0; + + if (modifiers & SCMOD_SHIFT) + state |= Qt::ShiftButton; + + if (modifiers & SCMOD_CTRL) + state |= Qt::ControlButton; + + if (modifiers & SCMOD_ALT) + state |= Qt::AltButton; + + if (modifiers & (SCMOD_SUPER | SCMOD_META)) + state |= Qt::MetaButton; + + return state; +} + + +// We no longer add features to the Qt3 version if it is a hassle. diff --git a/Qt3/qsciscintillabase.cpp b/Qt3/qsciscintillabase.cpp new file mode 100644 index 0000000..a2d548a --- /dev/null +++ b/Qt3/qsciscintillabase.cpp @@ -0,0 +1,836 @@ +// This module implements the "official" low-level API. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qsciscintillabase.h" + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "ScintillaQt.h" + + +// The #defines in Scintilla.h and the enums in qsciscintillabase.h conflict +// (because we want to use the same names) so we have to undefine those we use +// in this file. +#undef SCI_SETCARETPERIOD +#undef SCK_DOWN +#undef SCK_UP +#undef SCK_LEFT +#undef SCK_RIGHT +#undef SCK_HOME +#undef SCK_END +#undef SCK_PRIOR +#undef SCK_NEXT +#undef SCK_DELETE +#undef SCK_INSERT +#undef SCK_ESCAPE +#undef SCK_BACK +#undef SCK_TAB +#undef SCK_RETURN +#undef SCK_ADD +#undef SCK_SUBTRACT +#undef SCK_DIVIDE +#undef SCK_WIN +#undef SCK_RWIN +#undef SCK_MENU + + +// Remember if we have linked the lexers. +static bool lexersLinked = false; + +// The list of instances. +static QPtrList poolList; + + +// The ctor. +QsciScintillaBase::QsciScintillaBase(QWidget *parent, const char *name, + WFlags f) + : QWidget(parent, name, f) +{ + QGridLayout *layout = new QGridLayout(this, 2, 2); + + txtarea = new QWidget(this, 0, WRepaintNoErase|WResizeNoErase); + txtarea->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, + QSizePolicy::Expanding)); + txtarea->setMouseTracking(true); + txtarea->setAcceptDrops(true); + txtarea->setFocusPolicy(WheelFocus); + txtarea->setFocusProxy(this); + layout->addWidget(txtarea, 0, 0); + + vsb = new QScrollBar(Vertical, this); + layout->addWidget(vsb, 0, 1); + connect(vsb, SIGNAL(valueChanged(int)), SLOT(handleVSb(int))); + + hsb = new QScrollBar(Horizontal, this); + layout->addWidget(hsb, 1, 0); + connect(hsb, SIGNAL(valueChanged(int)), SLOT(handleHSb(int))); + + txtarea->installEventFilter(this); + + setFocusPolicy(WheelFocus); + +#if (QT_VERSION >= 0x040200 && QT_VERSION < 0x050000 && defined(Q_OS_MAC)) || (QT_VERSION >= 0x050200 && defined(Q_OS_OSX)) + initialiseRectangularPasteboardMime(); +#endif + + sci = new QsciScintillaQt(this); + + SendScintilla(SCI_SETCARETPERIOD, QApplication::cursorFlashTime() / 2); + + // Make sure the lexers are linked in. + if (!lexersLinked) + { + Scintilla_LinkLexers(); + lexersLinked = true; + } + + QClipboard *cb = QApplication::clipboard(); + + if (cb->supportsSelection()) + connect(cb, SIGNAL(selectionChanged()), SLOT(handleSelection())); + + // Add it to the pool. + poolList.append(this); +} + + +// The dtor. +QsciScintillaBase::~QsciScintillaBase() +{ + // Remove it from the pool. + poolList.remove(this); + + delete sci; +} + + +// Return an instance from the pool. +QsciScintillaBase *QsciScintillaBase::pool() +{ + return poolList.first(); +} + + +// Tell Scintilla to update the scroll bars. Scintilla should be doing this +// itself. +void QsciScintillaBase::setScrollBars() +{ + sci->SetScrollBars(); +} + + +// Return the horizontal scrollbar widget. +QScrollBar *QsciScintillaBase::horizontalScrollBar() const +{ + return hsb; +} + + +// Return the vertical scrollbar widget. +QScrollBar *QsciScintillaBase::verticalScrollBar() const +{ + return vsb; +} + + +// Return the viewport widget. +QWidget *QsciScintillaBase::viewport() const +{ + return txtarea; +} + + +// Handle events on behalf of the text area. +bool QsciScintillaBase::eventFilter(QObject *o, QEvent *e) +{ + if (o != txtarea) + return QWidget::eventFilter(o, e); + + bool used = true; + + switch (e->type()) + { + case QEvent::ContextMenu: + contextMenuEvent(static_cast(e)); + break; + + case QEvent::DragEnter: + dragEnterEvent(static_cast(e)); + break; + + case QEvent::DragLeave: + dragLeaveEvent(static_cast(e)); + break; + + case QEvent::DragMove: + dragMoveEvent(static_cast(e)); + break; + + case QEvent::Drop: + dropEvent(static_cast(e)); + break; + + case QEvent::MouseButtonDblClick: + mouseDoubleClickEvent(static_cast(e)); + break; + + case QEvent::MouseButtonPress: + mousePressEvent(static_cast(e)); + break; + + case QEvent::MouseButtonRelease: + mouseReleaseEvent(static_cast(e)); + break; + + case QEvent::MouseMove: + mouseMoveEvent(static_cast(e)); + break; + + case QEvent::Paint: + paintEvent(static_cast(e)); + break; + + case QEvent::Resize: + resizeEvent(static_cast(e)); + break; + + case QEvent::Wheel: + { + QWheelEvent *we = static_cast(e); + + setFocus(); + + if (we->orientation() == Horizontal || we->state() & ShiftButton) + QApplication::sendEvent(hsb, we); + else if (we->orientation() == Vertical) + QApplication::sendEvent(vsb, we); + + break; + } + + default: + used = false; + } + + return used; +} + + +// Send a message to the real Scintilla widget using the low level Scintilla +// API. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + long lParam) const +{ + return sci->WndProc(msg, wParam, lParam); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + void *lParam) const +{ + return sci->WndProc(msg, wParam, reinterpret_cast(lParam)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + const char *lParam) const +{ + return sci->WndProc(msg, wParam, reinterpret_cast(lParam)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, + const char *lParam) const +{ + return sci->WndProc(msg, static_cast(0), + reinterpret_cast(lParam)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, const char *wParam, + const char *lParam) const +{ + return sci->WndProc(msg, reinterpret_cast(wParam), + reinterpret_cast(lParam)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, long wParam) const +{ + return sci->WndProc(msg, static_cast(wParam), + static_cast(0)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, int wParam) const +{ + return sci->WndProc(msg, static_cast(wParam), + static_cast(0)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, long cpMin, long cpMax, + char *lpstrText) const +{ + QSCI_SCI_NAMESPACE(TextRange) tr; + + tr.chrg.cpMin = cpMin; + tr.chrg.cpMax = cpMax; + tr.lpstrText = lpstrText; + + return sci->WndProc(msg, static_cast(0), + reinterpret_cast(&tr)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + const QColor &col) const +{ + sptr_t lParam = (col.blue() << 16) | (col.green() << 8) | col.red(); + + return sci->WndProc(msg, wParam, lParam); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, const QColor &col) const +{ + uptr_t wParam = (col.blue() << 16) | (col.green() << 8) | col.red(); + + return sci->WndProc(msg, wParam, static_cast(0)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + QPainter *hdc, const QRect &rc, long cpMin, long cpMax) const +{ + QSCI_SCI_NAMESPACE(RangeToFormat) rf; + + rf.hdc = rf.hdcTarget = reinterpret_cast(hdc); + + rf.rc.left = rc.left(); + rf.rc.top = rc.top(); + rf.rc.right = rc.right() + 1; + rf.rc.bottom = rc.bottom() + 1; + + rf.chrg.cpMin = cpMin; + rf.chrg.cpMax = cpMax; + + return sci->WndProc(msg, wParam, reinterpret_cast(&rf)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + const QPixmap &lParam) const +{ + return sci->WndProc(msg, wParam, reinterpret_cast(&lParam)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + const QImage &lParam) const +{ + return sci->WndProc(msg, wParam, reinterpret_cast(&lParam)); +} + + +// Send a message to the real Scintilla widget using the low level Scintilla +// API that returns a pointer result. +void *QsciScintillaBase::SendScintillaPtrResult(unsigned int msg) const +{ + return reinterpret_cast(sci->WndProc(msg, static_cast(0), + static_cast(0))); +} + + +// Handle the timer on behalf of the QsciScintillaQt instance. +void QsciScintillaBase::handleTimer() +{ + sci->Tick(); +} + + +// Re-implemented to handle the context menu. +void QsciScintillaBase::contextMenuEvent(QContextMenuEvent *e) +{ + sci->ContextMenu(QSCI_SCI_NAMESPACE(Point)(e->globalX(), e->globalY())); +} + + +// Re-implemented to tell the widget it has the focus. +void QsciScintillaBase::focusInEvent(QFocusEvent *e) +{ + sci->SetFocusState(true); + +#if QT_VERSION >= 0x050000 + clickCausedFocus = (e->reason() == Qt::MouseFocusReason); +#endif + + QWidget::focusInEvent(e); +} + + +// Re-implemented to tell the widget it has lost the focus. +void QsciScintillaBase::focusOutEvent(QFocusEvent *e) +{ + // Only tell Scintilla we have lost focus if the new active window isn't + // our auto-completion list. This is probably only an issue on Linux and + // there are still problems because subsequent focus out events don't + // always seem to get generated (at least with Qt5). + + { + QWidget *aw = qApp->activeWindow(); + + if (!aw || aw->parent() != this || !aw->inherits("QsciSciListBox")) + sci->SetFocusState(false); + } + + QWidget::focusOutEvent(e); +} + + +// Re-implemented to make sure tabs are passed to the editor. +bool QsciScintillaBase::focusNextPrevChild(bool next) +{ + if (!sci->pdoc->IsReadOnly()) + return false; + + return QWidget::focusNextPrevChild(next); +} + + +// Handle the selection changing. +void QsciScintillaBase::handleSelection() +{ + if (!QApplication::clipboard()->ownsSelection()) + sci->UnclaimSelection(); +} + + +// Handle key presses. +void QsciScintillaBase::keyPressEvent(QKeyEvent *e) +{ + int modifiers = 0; + + if (e->state() & Qt::ShiftButton) + modifiers |= SCMOD_SHIFT; + + if (e->state() & Qt::ControlButton) + modifiers |= SCMOD_CTRL; + + if (e->state() & Qt::AltButton) + modifiers |= SCMOD_ALT; + + if (e->state() & Qt::MetaButton) + modifiers |= SCMOD_META; + + int key = commandKey(e->key(), modifiers); + + if (key) + { + bool consumed = false; + + sci->KeyDownWithModifiers(key, modifiers, &consumed); + + if (consumed) + { + e->accept(); + return; + } + } + + QString text = e->text(); + + if (!text.isEmpty() && text[0].isPrint()) + { + ScintillaBytes bytes = textAsBytes(text); + sci->AddCharUTF(bytes.data(), bytes.length()); + e->accept(); + } + else + { + QWidget::keyPressEvent(e); + } +} + + +// Map a Qt key to a valid Scintilla command key, or 0 if none. +int QsciScintillaBase::commandKey(int qt_key, int &modifiers) +{ + int key; + + switch (qt_key) + { + case Qt::Key_Down: + key = SCK_DOWN; + break; + + case Qt::Key_Up: + key = SCK_UP; + break; + + case Qt::Key_Left: + key = SCK_LEFT; + break; + + case Qt::Key_Right: + key = SCK_RIGHT; + break; + + case Qt::Key_Home: + key = SCK_HOME; + break; + + case Qt::Key_End: + key = SCK_END; + break; + + case Qt::Key_Prior: + key = SCK_PRIOR; + break; + + case Qt::Key_Next: + key = SCK_NEXT; + break; + + case Qt::Key_Delete: + key = SCK_DELETE; + break; + + case Qt::Key_Insert: + key = SCK_INSERT; + break; + + case Qt::Key_Escape: + key = SCK_ESCAPE; + break; + + case Qt::Key_Backspace: + key = SCK_BACK; + break; + + case Qt::Key_Tab: + key = SCK_TAB; + break; + + case Qt::Key_Backtab: + // Scintilla assumes a backtab is shift-tab. + key = SCK_TAB; + modifiers |= SCMOD_SHIFT; + break; + + case Qt::Key_Return: + case Qt::Key_Enter: + key = SCK_RETURN; + break; + + case Qt::Key_Super_L: + key = SCK_WIN; + break; + + case Qt::Key_Super_R: + key = SCK_RWIN; + break; + + case Qt::Key_Menu: + key = SCK_MENU; + break; + + default: + if ((key = qt_key) > 0x7f) + key = 0; + } + + return key; +} + + +// Encode a QString as bytes. +QsciScintillaBase::ScintillaBytes QsciScintillaBase::textAsBytes(const QString &text) const +{ + if (sci->IsUnicodeMode()) + return text.utf8(); + + return QCString(text.latin1()); +} + + +// Decode bytes as a QString. +QString QsciScintillaBase::bytesAsText(const char *bytes) const +{ + if (sci->IsUnicodeMode()) + return QString::fromUtf8(bytes); + + return QString::fromLatin1(bytes); +} + + +// Handle a mouse button double click. +void QsciScintillaBase::mouseDoubleClickEvent(QMouseEvent *e) +{ + if (e->button() != Qt::LeftButton) + { + e->ignore(); + return; + } + + setFocus(); + + // Make sure Scintilla will interpret this as a double-click. + unsigned clickTime = sci->lastClickTime + QSCI_SCI_NAMESPACE(Platform)::DoubleClickTime() - 1; + + bool shift = e->state() & Qt::ShiftButton; + bool ctrl = e->state() & Qt::ControlButton; + bool alt = e->state() & Qt::AltButton; + + sci->ButtonDown(QSCI_SCI_NAMESPACE(Point)(e->x(), e->y()), clickTime, + shift, ctrl, alt); + + // Remember the current position and time in case it turns into a triple + // click. + triple_click_at = e->globalPos(); + triple_click.start(QApplication::doubleClickInterval()); +} + + +// Handle a mouse move. +void QsciScintillaBase::mouseMoveEvent(QMouseEvent *e) +{ + sci->ButtonMove(QSCI_SCI_NAMESPACE(Point)(e->x(), e->y())); +} + + +// Handle a mouse button press. +void QsciScintillaBase::mousePressEvent(QMouseEvent *e) +{ + setFocus(); + + QSCI_SCI_NAMESPACE(Point) pt(e->x(), e->y()); + + if (e->button() == Qt::LeftButton) + { + unsigned clickTime; + + // It is a triple click if the timer is running and the mouse hasn't + // moved too much. + if (triple_click.isActive() && (e->globalPos() - triple_click_at).manhattanLength() < QApplication::startDragDistance()) + clickTime = sci->lastClickTime + QSCI_SCI_NAMESPACE(Platform)::DoubleClickTime() - 1; + else + clickTime = sci->lastClickTime + QSCI_SCI_NAMESPACE(Platform)::DoubleClickTime() + 1; + + triple_click.stop(); + + // Scintilla uses the Alt modifier to initiate rectangular selection. + // However the GTK port (under X11, not Windows) uses the Control + // modifier (by default, although it is configurable). It does this + // because most X11 window managers hijack Alt-drag to move the window. + // We do the same, except that (for the moment at least) we don't allow + // the modifier to be configured. + bool shift = e->state() & Qt::ShiftButton; + bool ctrl = e->state() & Qt::ControlButton; +#if !defined(Q_WS_X11) + bool alt = e->modifiers() & Qt::AltButton; +#else + bool alt = ctrl; +#endif + + sci->ButtonDown(pt, clickTime, shift, ctrl, alt); + } + else if (e->button() == Qt::MidButton) + { + QClipboard *cb = QApplication::clipboard(); + + if (cb->supportsSelection()) + { + int pos = sci->PositionFromLocation(pt); + + sci->sel.Clear(); + sci->SetSelection(pos, pos); + + sci->pasteFromClipboard(QClipboard::Selection); + } + } +} + + +// Handle a mouse button releases. +void QsciScintillaBase::mouseReleaseEvent(QMouseEvent *e) +{ + if (e->button() != Qt::LeftButton) + return; + + QSCI_SCI_NAMESPACE(Point) pt(e->x(), e->y()); + + if (sci->HaveMouseCapture()) + { + bool ctrl = e->state() & Qt::ControlButton; + + sci->ButtonUp(pt, 0, ctrl); + } + +#if QT_VERSION >= 0x050000 + if (!sci->pdoc->IsReadOnly() && !sci->PointInSelMargin(pt) && qApp->autoSipEnabled()) + { + QStyle::RequestSoftwareInputPanel rsip = QStyle::RequestSoftwareInputPanel(style()->styleHint(QStyle::SH_RequestSoftwareInputPanel)); + + if (!clickCausedFocus || rsip == QStyle::RSIP_OnMouseClick) + qApp->inputMethod()->show(); + } + + clickCausedFocus = false; +#endif +} + + +// Handle paint events. +void QsciScintillaBase::paintEvent(QPaintEvent *e) +{ + sci->paintEvent(e); +} + + +// Handle resize events. +void QsciScintillaBase::resizeEvent(QResizeEvent *) +{ + sci->ChangeSize(); +} + + +// Handle the vertical scrollbar. +void QsciScintillaBase::handleVSb(int value) +{ + sci->ScrollTo(value); +} + + +// Handle the horizontal scrollbar. +void QsciScintillaBase::handleHSb(int value) +{ + sci->HorizontalScrollTo(value); +} + + +// Handle drag enters. +void QsciScintillaBase::dragEnterEvent(QDragEnterEvent *e) +{ + QsciScintillaBase::dragMoveEvent(e); +} + + +// Handle drag leaves. +void QsciScintillaBase::dragLeaveEvent(QDragLeaveEvent *) +{ + sci->SetDragPosition(QSCI_SCI_NAMESPACE(SelectionPosition)()); +} + + +// Handle drag moves. +void QsciScintillaBase::dragMoveEvent(QDragMoveEvent *e) +{ + sci->SetDragPosition( + sci->SPositionFromLocation( + QSCI_SCI_NAMESPACE(Point)(e->pos().x(), e->pos().y()), + false, false, sci->UserVirtualSpace())); + + if (sci->pdoc->IsReadOnly() || !QTextDrag::canDecode(e)) + { + e->ignore(); + return; + } + + e->acceptAction(); +} + + +// Handle drops. +void QsciScintillaBase::dropEvent(QDropEvent *e) +{ + bool moving; + int len; + const char *s; + bool rectangular; + + QString text; + + if (sci->pdoc->IsReadOnly() || !QTextDrag::decode(e, text)) + { + e->ignore(); + return; + } + + moving = (e->source() == txtarea && e->action() == QDropEvent::Move); + + e->acceptAction(); + + QCString bytes; + + if (sci->IsUnicodeMode()) + { + bytes = text.utf8(); + + len = bytes.length(); + s = bytes.data(); + } + else + { + s = text.latin1(); + len = (s ? qstrlen(s) : 0); + } + + rectangular = false; + + std::string dest = QSCI_SCI_NAMESPACE(Document)::TransformLineEnds(s, len, + sci->pdoc->eolMode); + + sci->DropAt(sci->posDrop, dest.c_str(), dest.length(), moving, + rectangular); + + sci->Redraw(); +} + + + + diff --git a/Qt3/qscistyle.cpp b/Qt3/qscistyle.cpp new file mode 100644 index 0000000..5f1209c --- /dev/null +++ b/Qt3/qscistyle.cpp @@ -0,0 +1,185 @@ +// This module implements the QsciStyle class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscistyle.h" + +#include + +#include "Qsci/qsciscintillabase.h" + + +// A ctor. +QsciStyle::QsciStyle(int style) +{ + init(style); + + QColorGroup cg = QApplication::palette().active(); + setColor(cg.text()); + setPaper(cg.base()); + + setFont(QApplication::font()); + setEolFill(false); +} + + +// A ctor. +QsciStyle::QsciStyle(int style, const QString &description, + const QColor &color, const QColor &paper, const QFont &font, + bool eolFill) +{ + init(style); + + setDescription(description); + + setColor(color); + setPaper(paper); + + setFont(font); + setEolFill(eolFill); +} + + +// Initialisation common to all ctors. +void QsciStyle::init(int style) +{ + // The next style number to allocate. The initial values corresponds to + // the amount of space that Scintilla initially creates for styles. + static int next_style_nr = 63; + + // See if a new style should be allocated. Note that we allow styles to be + // passed in that are bigger than STYLE_MAX because the styles used for + // annotations are allowed to be. + if (style < 0) + { + // Note that we don't deal with the situation where the newly allocated + // style number has already been used explicitly. + if (next_style_nr > QsciScintillaBase::STYLE_LASTPREDEFINED) + style = next_style_nr--; + } + + style_nr = style; + + // Initialise the minor attributes. + setTextCase(QsciStyle::OriginalCase); + setVisible(true); + setChangeable(true); + setHotspot(false); +} + + +// Apply the style to a particular editor. +void QsciStyle::apply(QsciScintillaBase *sci) const +{ + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETFORE, style_nr, + style_color); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETBACK, style_nr, + style_paper); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETFONT, style_nr, + style_font.family().ascii()); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETSIZEFRACTIONAL, style_nr, + long(style_font.pointSizeF() * QsciScintillaBase::SC_FONT_SIZE_MULTIPLIER)); + + // Pass the Qt weight via the back door. + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETWEIGHT, style_nr, + -style_font.weight()); + + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETITALIC, style_nr, + style_font.italic()); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETUNDERLINE, style_nr, + style_font.underline()); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETEOLFILLED, style_nr, + style_eol_fill); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETCASE, style_nr, + (long)style_case); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETVISIBLE, style_nr, + style_visible); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETCHANGEABLE, style_nr, + style_changeable); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETHOTSPOT, style_nr, + style_hotspot); +} + + +// Set the color attribute. +void QsciStyle::setColor(const QColor &color) +{ + style_color = color; +} + + +// Set the paper attribute. +void QsciStyle::setPaper(const QColor &paper) +{ + style_paper = paper; +} + + +// Set the font attribute. +void QsciStyle::setFont(const QFont &font) +{ + style_font = font; +} + + +// Set the eol fill attribute. +void QsciStyle::setEolFill(bool eolFill) +{ + style_eol_fill = eolFill; +} + + +// Set the text case attribute. +void QsciStyle::setTextCase(QsciStyle::TextCase text_case) +{ + style_case = text_case; +} + + +// Set the visible attribute. +void QsciStyle::setVisible(bool visible) +{ + style_visible = visible; +} + + +// Set the changeable attribute. +void QsciStyle::setChangeable(bool changeable) +{ + style_changeable = changeable; +} + + +// Set the hotspot attribute. +void QsciStyle::setHotspot(bool hotspot) +{ + style_hotspot = hotspot; +} + + +// Refresh the style. Note that since we had to add apply() then this can't do +// anything useful so we leave it as a no-op. +void QsciStyle::refresh() +{ +} diff --git a/Qt3/qscistyledtext.cpp b/Qt3/qscistyledtext.cpp new file mode 100644 index 0000000..df1e23e --- /dev/null +++ b/Qt3/qscistyledtext.cpp @@ -0,0 +1,59 @@ +// This module implements the QsciStyledText class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscistyledtext.h" + +#include "Qsci/qsciscintillabase.h" +#include "Qsci/qscistyle.h" + + +// A ctor. +QsciStyledText::QsciStyledText(const QString &text, int style) + : styled_text(text), style_nr(style), explicit_style(0) +{ +} + + +// A ctor. +QsciStyledText::QsciStyledText(const QString &text, const QsciStyle &style) + : styled_text(text), style_nr(-1) +{ + explicit_style = new QsciStyle(style); +} + + +// Return the number of the style. +int QsciStyledText::style() const +{ + return explicit_style ? explicit_style->style() : style_nr; +} + + +// Apply any explicit style to an editor. +void QsciStyledText::apply(QsciScintillaBase *sci) const +{ + if (explicit_style) + explicit_style->apply(sci); +} diff --git a/Qt4Qt5/InputMethod.cpp b/Qt4Qt5/InputMethod.cpp new file mode 100644 index 0000000..e68dbbb --- /dev/null +++ b/Qt4Qt5/InputMethod.cpp @@ -0,0 +1,184 @@ +// Copyright (c) 2014 Riverbank Computing Limited +// Copyright (c) 2011 Archaeopteryx Software, Inc. +// Copyright (c) 1990-2011, Scientific Toolworks, Inc. +// +// The License.txt file describes the conditions under which this software may +// be distributed. + + +#include + + +#include "Qsci/qsciscintillabase.h" + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "ScintillaQt.h" + + +#define INDIC_INPUTMETHOD 24 + + +void QsciScintillaBase::inputMethodEvent(QInputMethodEvent *event) +{ + // Do nothing if it appears to be a non-event. This can sometimes happen + // (but why?) on losing focus. + if (event->commitString().isEmpty() && event->preeditString().isEmpty() && event->replacementLength() == 0) + return; + + ScintillaBytes bytes; + + // Clear the current selection. + sci->ClearSelection(); + if (preeditPos >= 0) + sci->SetSelection(preeditPos, preeditPos); + + // Insert the commit string. + if (!event->commitString().isEmpty() || event->replacementLength()) { + // Select the text to be removed. + int commitPos = SendScintilla(SCI_GETCURRENTPOS); + int start = commitPos + event->replacementStart(); + int end = start + event->replacementLength(); + sci->SetSelection(start, end); + + // Replace the selection with the commit string. + bytes = textAsBytes(event->commitString()); + sci->AddCharUTF(bytes.data(), bytes.length()); + } + + // Select the previous preedit string. + int pos = SendScintilla(SCI_GETCURRENTPOS); + sci->SetSelection(pos, pos + preeditNrBytes); + + // Replace the selection with the new preedit string. + bool recording = sci->recordingMacro; + sci->recordingMacro = false; + SendScintilla(SCI_SETUNDOCOLLECTION, false); + bytes = textAsBytes(event->preeditString()); + sci->AddCharUTF(bytes.data(), bytes.length()); + SendScintilla(SCI_SETUNDOCOLLECTION, true); + sci->recordingMacro = recording; + sci->SetSelection(pos, pos); + + // Store the state of the current preedit string. + preeditString = event->preeditString(); + preeditNrBytes = bytes.length(); + preeditPos = preeditNrBytes ? SendScintilla(SCI_GETCURRENTPOS) : -1; + + if (preeditNrBytes) { + // Apply attributes to the preedit string. + int indicNum = 0; + sci->ShowCaretAtCurrentPosition(); + foreach (QInputMethodEvent::Attribute a, event->attributes()) { + QString prefix = preeditString.left(a.start); + int prefixLength = textAsBytes(prefix).length(); + int caretPos = preeditPos + prefixLength; + + if (a.type == QInputMethodEvent::Cursor) { + sci->SetSelection(caretPos, caretPos); + if (!a.length) + sci->DropCaret(); + + } else if (a.type == QInputMethodEvent::TextFormat) { + Q_ASSERT(a.value.canConvert(QVariant::TextFormat)); + QTextFormat format = a.value.value(); + Q_ASSERT(format.isCharFormat()); + QTextCharFormat charFormat = format.toCharFormat(); + + if (charFormat.underlineStyle() != QTextCharFormat::NoUnderline) { + QString sub = preeditString.mid(a.start, a.length); + int subLength = textAsBytes(sub).length(); + + // Set temporary indicator for underline style. + QColor uc = charFormat.underlineColor(); + int style = INDIC_COMPOSITIONTHICK; + if (charFormat.underlineStyle() == QTextCharFormat::DashUnderline) + style = INDIC_DASH; + + SendScintilla(SCI_INDICSETSTYLE, INDIC_INPUTMETHOD + indicNum, style); + SendScintilla(SCI_INDICSETFORE, INDIC_INPUTMETHOD + indicNum, uc.rgb()); + SendScintilla(SCI_SETINDICATORCURRENT, INDIC_INPUTMETHOD + indicNum); + SendScintilla(SCI_INDICATORFILLRANGE, caretPos, subLength); + indicNum++; + } + } + } + } +} + +QVariant QsciScintillaBase::inputMethodQuery(Qt::InputMethodQuery query) const +{ + int pos = SendScintilla(SCI_GETCURRENTPOS); + int line = SendScintilla(SCI_LINEFROMPOSITION, pos); + + switch (query) { +#if QT_VERSION >= 0x050000 + case Qt::ImHints: + return QWidget::inputMethodQuery(query); +#endif + + case Qt::ImMicroFocus: + { + int startPos = (preeditPos >= 0) ? preeditPos : pos; + Point pt = sci->LocationFromPosition(startPos); + int width = SendScintilla(SCI_GETCARETWIDTH); + int height = SendScintilla(SCI_TEXTHEIGHT, line); + return QRect(pt.x, pt.y, width, height); + } + + case Qt::ImFont: + { + char fontName[64]; + int style = SendScintilla(SCI_GETSTYLEAT, pos); + int len = SendScintilla(SCI_STYLEGETFONT, style, (sptr_t)fontName); + int size = SendScintilla(SCI_STYLEGETSIZE, style); + bool italic = SendScintilla(SCI_STYLEGETITALIC, style); + int weight = SendScintilla(SCI_STYLEGETBOLD, style) ? QFont::Bold : -1; + return QFont(QString::fromUtf8(fontName, len), size, weight, italic); + } + + case Qt::ImCursorPosition: + { + int paraStart = sci->pdoc->ParaUp(pos); + return pos - paraStart; + } + + case Qt::ImSurroundingText: + { + int paraStart = sci->pdoc->ParaUp(pos); + int paraEnd = sci->pdoc->ParaDown(pos); + QVarLengthArray buffer(paraEnd - paraStart + 1); + + Sci_CharacterRange charRange; + charRange.cpMin = paraStart; + charRange.cpMax = paraEnd; + + Sci_TextRange textRange; + textRange.chrg = charRange; + textRange.lpstrText = buffer.data(); + + SendScintilla(SCI_GETTEXTRANGE, 0, (sptr_t)&textRange); + + return bytesAsText(buffer.constData()); + } + + case Qt::ImCurrentSelection: + { + QVarLengthArray buffer(SendScintilla(SCI_GETSELTEXT)); + SendScintilla(SCI_GETSELTEXT, 0, (sptr_t)buffer.data()); + + return bytesAsText(buffer.constData()); + } + + default: + return QVariant(); + } +} + diff --git a/Qt4Qt5/ListBoxQt.cpp b/Qt4Qt5/ListBoxQt.cpp new file mode 100644 index 0000000..71ca27d --- /dev/null +++ b/Qt4Qt5/ListBoxQt.cpp @@ -0,0 +1,329 @@ +// This module implements the specialisation of QListBox that handles the +// Scintilla double-click callback. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "ListBoxQt.h" + +#include + +#include "SciClasses.h" +#include "Qsci/qsciscintilla.h" + + +QsciListBoxQt::QsciListBoxQt() + : cb_action(0), cb_data(0), slb(0), visible_rows(5), utf8(false) +{ +} + + +void QsciListBoxQt::SetFont(QSCI_SCI_NAMESPACE(Font) &font) +{ + QFont *f = reinterpret_cast(font.GetID()); + + if (f) + slb->setFont(*f); +} + + +void QsciListBoxQt::Create(QSCI_SCI_NAMESPACE(Window) &parent, int, + QSCI_SCI_NAMESPACE(Point), int, bool unicodeMode, int) +{ + utf8 = unicodeMode; + + // The parent we want is the QsciScintillaBase, not the text area. + wid = slb = new QsciSciListBox(reinterpret_cast(parent.GetID())->parentWidget(), this); +} + + +void QsciListBoxQt::SetAverageCharWidth(int) +{ + // We rely on sizeHint() for the size of the list box rather than make + // calculations based on the average character width and the number of + // visible rows. +} + + +void QsciListBoxQt::SetVisibleRows(int vrows) +{ + // We only pretend to implement this. + visible_rows = vrows; +} + + +int QsciListBoxQt::GetVisibleRows() const +{ + return visible_rows; +} + + +QSCI_SCI_NAMESPACE(PRectangle) QsciListBoxQt::GetDesiredRect() +{ + QSCI_SCI_NAMESPACE(PRectangle) rc(0, 0, 100, 100); + + if (slb) + { + QSize sh = slb->sizeHint(); + + rc.right = sh.width(); + rc.bottom = sh.height(); + } + + return rc; +} + + +int QsciListBoxQt::CaretFromEdge() +{ + int dist = 0; + + // Find the width of the biggest image. + for (xpmMap::const_iterator it = xset.begin(); it != xset.end(); ++it) + { + int w = it.value().width(); + + if (dist < w) + dist = w; + } + + if (slb) + dist += slb->frameWidth(); + + // Fudge factor - adjust if required. + dist += 3; + + return dist; +} + + +void QsciListBoxQt::Clear() +{ + Q_ASSERT(slb); + + slb->clear(); +} + + +void QsciListBoxQt::Append(char *s, int type) +{ + Q_ASSERT(slb); + + QString qs; + + if (utf8) + qs = QString::fromUtf8(s); + else + qs = QString::fromLatin1(s); + + xpmMap::const_iterator it; + + if (type < 0 || (it = xset.find(type)) == xset.end()) + slb->addItem(qs); + else + slb->addItemPixmap(it.value(), qs); +} + + +int QsciListBoxQt::Length() +{ + Q_ASSERT(slb); + + return slb->count(); +} + + +void QsciListBoxQt::Select(int n) +{ + Q_ASSERT(slb); + + slb->setCurrentRow(n); +} + + +int QsciListBoxQt::GetSelection() +{ + Q_ASSERT(slb); + + return slb->currentRow(); +} + + +int QsciListBoxQt::Find(const char *prefix) +{ + Q_ASSERT(slb); + + return slb->find(prefix); +} + + +void QsciListBoxQt::GetValue(int n, char *value, int len) +{ + Q_ASSERT(slb); + + QString selection = slb->text(n); + + bool trim_selection = false; + QObject *sci_obj = slb->parent(); + + if (sci_obj->inherits("QsciScintilla")) + { + QsciScintilla *sci = static_cast(sci_obj); + + if (sci->isAutoCompletionList()) + { + // Save the full selection and trim the value we return. + sci->acSelection = selection; + trim_selection = true; + } + } + + if (selection.isEmpty() || len <= 0) + value[0] = '\0'; + else + { + const char *s; + int slen; + + QByteArray bytes; + + if (utf8) + bytes = selection.toUtf8(); + else + bytes = selection.toLatin1(); + + s = bytes.data(); + slen = bytes.length(); + + while (slen-- && len--) + { + if (trim_selection && *s == ' ') + break; + + *value++ = *s++; + } + + *value = '\0'; + } +} + + +void QsciListBoxQt::Sort() +{ + Q_ASSERT(slb); + + slb->sortItems(); +} + + +void QsciListBoxQt::RegisterImage(int type, const char *xpm_data) +{ + xset.insert(type, *reinterpret_cast(xpm_data)); +} + + +void QsciListBoxQt::RegisterRGBAImage(int type, int, int, + const unsigned char *pixelsImage) +{ + QPixmap pm; + + pm = QPixmap::fromImage(*reinterpret_cast(pixelsImage)); + + xset.insert(type, pm); +} + + +void QsciListBoxQt::ClearRegisteredImages() +{ + xset.clear(); +} + + +void QsciListBoxQt::SetDoubleClickAction( + QSCI_SCI_NAMESPACE(CallBackAction) action, void *data) +{ + cb_action = action; + cb_data = data; +} + + +void QsciListBoxQt::SetList(const char *list, char separator, char typesep) +{ + char *words; + + Clear(); + + if ((words = qstrdup(list)) != NULL) + { + char *startword = words; + char *numword = NULL; + + for (int i = 0; words[i] != '\0'; i++) + { + if (words[i] == separator) + { + words[i] = '\0'; + + if (numword) + *numword = '\0'; + + Append(startword, numword ? atoi(numword + 1) : -1); + + startword = words + i + 1; + numword = NULL; + } + else if (words[i] == typesep) + { + numword = words + i; + } + } + + if (startword) + { + if (numword) + *numword = '\0'; + + Append(startword, numword ? atoi(numword + 1) : -1); + } + + delete[] words; + } +} + + +// The ListBox methods that need to be implemented explicitly. + +QSCI_SCI_NAMESPACE(ListBox)::ListBox() +{ +} + + +QSCI_SCI_NAMESPACE(ListBox)::~ListBox() +{ +} + + +QSCI_SCI_NAMESPACE(ListBox) *QSCI_SCI_NAMESPACE(ListBox)::Allocate() +{ + return new QsciListBoxQt(); +} diff --git a/Qt4Qt5/ListBoxQt.h b/Qt4Qt5/ListBoxQt.h new file mode 100644 index 0000000..912e468 --- /dev/null +++ b/Qt4Qt5/ListBoxQt.h @@ -0,0 +1,81 @@ +// This defines the specialisation of QListBox that handles the Scintilla +// double-click callback. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include +#include +#include + +#include "SciNamespace.h" + +#include "Platform.h" + + +class QsciSciListBox; + + +// This is an internal class but it is referenced by a public class so it has +// to have a Qsci prefix rather than being put in the Scintilla namespace +// which would mean exposing the SCI_NAMESPACE mechanism). +class QsciListBoxQt : public QSCI_SCI_NAMESPACE(ListBox) +{ +public: + QsciListBoxQt(); + + QSCI_SCI_NAMESPACE(CallBackAction) cb_action; + void *cb_data; + + virtual void SetFont(QSCI_SCI_NAMESPACE(Font) &font); + virtual void Create(QSCI_SCI_NAMESPACE(Window) &parent, int, + QSCI_SCI_NAMESPACE(Point), int, bool unicodeMode, int); + virtual void SetAverageCharWidth(int); + virtual void SetVisibleRows(int); + virtual int GetVisibleRows() const; + virtual QSCI_SCI_NAMESPACE(PRectangle) GetDesiredRect(); + virtual int CaretFromEdge(); + virtual void Clear(); + virtual void Append(char *s, int type = -1); + virtual int Length(); + virtual void Select(int n); + virtual int GetSelection(); + virtual int Find(const char *prefix); + virtual void GetValue(int n, char *value, int len); + virtual void Sort(); + virtual void RegisterImage(int type, const char *xpm_data); + virtual void RegisterRGBAImage(int type, int width, int height, + const unsigned char *pixelsImage); + virtual void ClearRegisteredImages(); + virtual void SetDoubleClickAction( + QSCI_SCI_NAMESPACE(CallBackAction) action, void *data); + virtual void SetList(const char *list, char separator, char typesep); + +private: + QsciSciListBox *slb; + int visible_rows; + bool utf8; + + typedef QMap xpmMap; + xpmMap xset; +}; diff --git a/Qt4Qt5/MacPasteboardMime.cpp b/Qt4Qt5/MacPasteboardMime.cpp new file mode 100644 index 0000000..fe93255 --- /dev/null +++ b/Qt4Qt5/MacPasteboardMime.cpp @@ -0,0 +1,116 @@ +// This module implements part of the support for rectangular selections on +// OS/X. It is a separate file to avoid clashes between OS/X and Scintilla +// data types. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include + +#if (QT_VERSION >= 0x040200 && QT_VERSION < 0x050000 && defined(Q_OS_MAC)) || (QT_VERSION >= 0x050200 && defined(Q_OS_OSX)) + +#include +#include +#include +#include +#include +#include + +#include + + +static const QLatin1String mimeRectangular("text/x-qscintilla-rectangular"); +static const QLatin1String utiRectangularMac("com.scintilla.utf16-plain-text.rectangular"); + + +class RectangularPasteboardMime : public QMacPasteboardMime +{ +public: + RectangularPasteboardMime() : QMacPasteboardMime(MIME_ALL) + { + } + + bool canConvert(const QString &mime, QString flav) + { + return mime == mimeRectangular && flav == utiRectangularMac; + } + + QList convertFromMime(const QString &, QVariant data, QString) + { + QList converted; + + converted.append(data.toByteArray()); + + return converted; + } + + QVariant convertToMime(const QString &, QList data, QString) + { + QByteArray converted; + + foreach (QByteArray i, data) + { + converted += i; + } + + return QVariant(converted); + } + + QString convertorName() + { + return QString("QScintillaRectangular"); + } + + QString flavorFor(const QString &mime) + { + if (mime == mimeRectangular) + return QString(utiRectangularMac); + + return QString(); + } + + QString mimeFor(QString flav) + { + if (flav == utiRectangularMac) + return QString(mimeRectangular); + + return QString(); + } +}; + + +// Initialise the singleton instance. +void initialiseRectangularPasteboardMime() +{ + static RectangularPasteboardMime *instance = 0; + + if (!instance) + { + instance = new RectangularPasteboardMime(); + + qRegisterDraggedTypes(QStringList(utiRectangularMac)); + } +} + + +#endif diff --git a/Qt4Qt5/PlatQt.cpp b/Qt4Qt5/PlatQt.cpp new file mode 100644 index 0000000..e9dde1d --- /dev/null +++ b/Qt4Qt5/PlatQt.cpp @@ -0,0 +1,1104 @@ +// This module implements the portability layer for the Qt port of Scintilla. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "SciNamespace.h" + +#include "Platform.h" +#include "XPM.h" + +#include "Qsci/qsciscintillabase.h" +#include "SciClasses.h" + +#include "FontQuality.h" + + +QSCI_BEGIN_SCI_NAMESPACE + +// Type convertors. +static QFont *PFont(FontID fid) +{ + return reinterpret_cast(fid); +} + +static QWidget *PWindow(WindowID wid) +{ + return reinterpret_cast(wid); +} + +static QsciSciPopup *PMenu(MenuID mid) +{ + return reinterpret_cast(mid); +} + + +// Create a Point instance from a long value. +Point Point::FromLong(long lpoint) +{ + return Point(Platform::LowShortFromLong(lpoint), + Platform::HighShortFromLong(lpoint)); +} + + +// Font management. +Font::Font() : fid(0) +{ +} + +Font::~Font() +{ +} + +void Font::Create(const FontParameters &fp) +{ + Release(); + + QFont *f = new QFont(); + + QFont::StyleStrategy strategy; + + switch (fp.extraFontFlag & SC_EFF_QUALITY_MASK) + { + case SC_EFF_QUALITY_NON_ANTIALIASED: + strategy = QFont::NoAntialias; + break; + + case SC_EFF_QUALITY_ANTIALIASED: + strategy = QFont::PreferAntialias; + break; + + default: + strategy = QFont::PreferDefault; + } + +#if defined(Q_OS_MAC) +#if QT_VERSION >= 0x040700 + strategy = static_cast(strategy | QFont::ForceIntegerMetrics); +#else +#warning "Correct handling of QFont metrics requires Qt v4.7.0 or later" +#endif +#endif + + f->setStyleStrategy(strategy); + + // If name of the font begins with a '-', assume, that it is an XLFD. + if (fp.faceName[0] == '-') + { + f->setRawName(fp.faceName); + } + else + { + f->setFamily(fp.faceName); + f->setPointSizeF(fp.size); + + // See if the Qt weight has been passed via the back door. Otherwise + // map Scintilla weights to Qt weights ensuring that the SC_WEIGHT_* + // values get mapped to the correct QFont::Weight values. + int qt_weight; + + if (fp.weight < 0) + qt_weight = -fp.weight; + else if (fp.weight <= 200) + qt_weight = QFont::Light; + else if (fp.weight <= QsciScintillaBase::SC_WEIGHT_NORMAL) + qt_weight = QFont::Normal; + else if (fp.weight <= 600) + qt_weight = QFont::DemiBold; + else if (fp.weight <= 850) + qt_weight = QFont::Bold; + else + qt_weight = QFont::Black; + + f->setWeight(qt_weight); + + f->setItalic(fp.italic); + } + + fid = f; +} + +void Font::Release() +{ + if (fid) + { + delete PFont(fid); + fid = 0; + } +} + + +// A surface abstracts a place to draw. +class SurfaceImpl : public Surface +{ +public: + SurfaceImpl(); + virtual ~SurfaceImpl(); + + void Init(WindowID wid); + void Init(SurfaceID sid, WindowID); + void Init(QPainter *p); + void InitPixMap(int width, int height, Surface *, WindowID wid); + + void Release(); + bool Initialised() {return painter;} + void PenColour(ColourDesired fore); + int LogPixelsY() {return pd->logicalDpiY();} + int DeviceHeightFont(int points) {return points;} + void MoveTo(int x_,int y_); + void LineTo(int x_,int y_); + void Polygon(Point *pts, int npts, ColourDesired fore, + ColourDesired back); + void RectangleDraw(PRectangle rc, ColourDesired fore, + ColourDesired back); + void FillRectangle(PRectangle rc, ColourDesired back); + void FillRectangle(PRectangle rc, Surface &surfacePattern); + void RoundedRectangle(PRectangle rc, ColourDesired fore, + ColourDesired back); + void AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill, + int alphaFill, ColourDesired outline, int alphaOutline, + int flags); + void DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage); + void Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back); + void Copy(PRectangle rc, Point from, Surface &surfaceSource); + + void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore, ColourDesired back); + void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore, ColourDesired back); + void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore); + void MeasureWidths(Font &font_, const char *s, int len, + XYPOSITION *positions); + XYPOSITION WidthText(Font &font_, const char *s, int len); + XYPOSITION WidthChar(Font &font_, char ch); + XYPOSITION Ascent(Font &font_); + XYPOSITION Descent(Font &font_); + XYPOSITION InternalLeading(Font &font_) {return 0;} + XYPOSITION ExternalLeading(Font &font_); + XYPOSITION Height(Font &font_); + XYPOSITION AverageCharWidth(Font &font_); + + void SetClip(PRectangle rc); + void FlushCachedState(); + + void SetUnicodeMode(bool unicodeMode_) {unicodeMode = unicodeMode_;} + void SetDBCSMode(int codePage) {} + + void DrawXPM(PRectangle rc, const XPM *xpm); + +private: + void drawRect(const PRectangle &rc); + void drawText(const PRectangle &rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore); + static QFont convertQFont(Font &font); + QFontMetricsF metrics(Font &font_); + QString convertText(const char *s, int len); + static QColor convertQColor(const ColourDesired &col, + unsigned alpha = 255); + + bool unicodeMode; + QPaintDevice *pd; + QPainter *painter; + bool my_resources; + int pen_x, pen_y; +}; + +Surface *Surface::Allocate(int) +{ + return new SurfaceImpl; +} + +SurfaceImpl::SurfaceImpl() + : unicodeMode(false), pd(0), painter(0), my_resources(false), pen_x(0), + pen_y(0) +{ +} + +SurfaceImpl::~SurfaceImpl() +{ + Release(); +} + +void SurfaceImpl::Init(WindowID wid) +{ + Release(); + + pd = reinterpret_cast(wid); +} + +void SurfaceImpl::Init(SurfaceID sid, WindowID) +{ + Release(); + + // This method, and the SurfaceID type, is only used when printing. As it + // is actually a void * we pass (when using SCI_FORMATRANGE) a pointer to a + // QPainter rather than a pointer to a SurfaceImpl as might be expected. + QPainter *p = reinterpret_cast(sid); + + pd = p->device(); + painter = p; +} + +void SurfaceImpl::Init(QPainter *p) +{ + Release(); + + pd = p->device(); + painter = p; +} + +void SurfaceImpl::InitPixMap(int width, int height, Surface *, WindowID wid) +{ + Release(); + +#if QT_VERSION >= 0x050100 + int dpr = PWindow(wid)->devicePixelRatio(); + QPixmap *pixmap = new QPixmap(width * dpr, height * dpr); + pixmap->setDevicePixelRatio(dpr); +#else + QPixmap *pixmap = new QPixmap(width, height); + Q_UNUSED(wid); +#endif + + pd = pixmap; + + painter = new QPainter(pd); + my_resources = true; +} + +void SurfaceImpl::Release() +{ + if (my_resources) + { + if (painter) + delete painter; + + if (pd) + delete pd; + + my_resources = false; + } + + painter = 0; + pd = 0; +} + +void SurfaceImpl::MoveTo(int x_, int y_) +{ + Q_ASSERT(painter); + + pen_x = x_; + pen_y = y_; +} + +void SurfaceImpl::LineTo(int x_, int y_) +{ + Q_ASSERT(painter); + + painter->drawLine(pen_x, pen_y, x_, y_); + + pen_x = x_; + pen_y = y_; +} + +void SurfaceImpl::PenColour(ColourDesired fore) +{ + Q_ASSERT(painter); + + painter->setPen(convertQColor(fore)); +} + +void SurfaceImpl::Polygon(Point *pts, int npts, ColourDesired fore, + ColourDesired back) +{ + Q_ASSERT(painter); + + QPolygonF qpts(npts); + + for (int i = 0; i < npts; ++i) + qpts[i] = QPointF(pts[i].x, pts[i].y); + + painter->setPen(convertQColor(fore)); + painter->setBrush(convertQColor(back)); + painter->drawPolygon(qpts); +} + +void SurfaceImpl::RectangleDraw(PRectangle rc, ColourDesired fore, + ColourDesired back) +{ + Q_ASSERT(painter); + + painter->setPen(convertQColor(fore)); + painter->setBrush(convertQColor(back)); + drawRect(rc); +} + +void SurfaceImpl::FillRectangle(PRectangle rc, ColourDesired back) +{ + Q_ASSERT(painter); + + painter->setPen(Qt::NoPen); + painter->setBrush(convertQColor(back)); + drawRect(rc); +} + +void SurfaceImpl::FillRectangle(PRectangle rc, Surface &surfacePattern) +{ + Q_ASSERT(painter); + + SurfaceImpl &si = static_cast(surfacePattern); + QPixmap *pm = static_cast(si.pd); + + if (pm) + { + QBrush brsh(Qt::black, *pm); + + painter->setPen(Qt::NoPen); + painter->setBrush(brsh); + drawRect(rc); + } + else + { + FillRectangle(rc, ColourDesired(0)); + } +} + +void SurfaceImpl::RoundedRectangle(PRectangle rc, ColourDesired fore, + ColourDesired back) +{ + Q_ASSERT(painter); + + painter->setPen(convertQColor(fore)); + painter->setBrush(convertQColor(back)); + painter->drawRoundRect( + QRectF(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top)); +} + +void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, + ColourDesired fill, int alphaFill, ColourDesired outline, + int alphaOutline, int) +{ + Q_ASSERT(painter); + + QColor outline_colour = convertQColor(outline, alphaOutline); + QColor fill_colour = convertQColor(fill, alphaFill); + + // There was a report of Qt seeming to ignore the alpha value of the pen so + // so we disable the pen if the outline and fill colours are the same. + if (outline_colour == fill_colour) + painter->setPen(Qt::NoPen); + else + painter->setPen(outline_colour); + + painter->setBrush(fill_colour); + + const int radius = (cornerSize ? 25 : 0); + + painter->drawRoundRect( + QRectF(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top), + radius, radius); +} + +void SurfaceImpl::drawRect(const PRectangle &rc) +{ + painter->drawRect( + QRectF(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top)); +} + +void SurfaceImpl::Ellipse(PRectangle rc, ColourDesired fore, + ColourDesired back) +{ + Q_ASSERT(painter); + + painter->setPen(convertQColor(fore)); + painter->setBrush(convertQColor(back)); + painter->drawEllipse( + QRectF(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top)); +} + +void SurfaceImpl::Copy(PRectangle rc, Point from, Surface &surfaceSource) +{ + Q_ASSERT(painter); + + SurfaceImpl &si = static_cast(surfaceSource); + + if (si.pd) + { + QPixmap *pm = static_cast(si.pd); + qreal x = from.x; + qreal y = from.y; + qreal width = rc.right - rc.left; + qreal height = rc.bottom - rc.top; + +#if QT_VERSION >= 0x050100 + qreal dpr = pm->devicePixelRatio(); + + x *= dpr; + y *= dpr; + width *= dpr; + height *= dpr; +#endif + + painter->drawPixmap(QPointF(rc.left, rc.top), *pm, + QRectF(x, y, width, height)); + } +} + +void SurfaceImpl::DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore, ColourDesired back) +{ + Q_ASSERT(painter); + + FillRectangle(rc, back); + drawText(rc, font_, ybase, s, len, fore); +} + +void SurfaceImpl::DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore, ColourDesired back) +{ + Q_ASSERT(painter); + + SetClip(rc); + DrawTextNoClip(rc, font_, ybase, s, len, fore, back); + painter->setClipping(false); +} + +void SurfaceImpl::DrawTextTransparent(PRectangle rc, Font &font_, + XYPOSITION ybase, const char *s, int len, ColourDesired fore) +{ + // Only draw if there is a non-space. + for (int i = 0; i < len; ++i) + if (s[i] != ' ') + { + drawText(rc, font_, ybase, s, len, fore); + return; + } +} + +void SurfaceImpl::drawText(const PRectangle &rc, Font &font_, XYPOSITION ybase, + const char *s, int len, ColourDesired fore) +{ + QString qs = convertText(s, len); + + QFont *f = PFont(font_.GetID()); + + if (f) + painter->setFont(*f); + + painter->setPen(convertQColor(fore)); + painter->drawText(QPointF(rc.left, ybase), qs); +} + +void SurfaceImpl::DrawXPM(PRectangle rc, const XPM *xpm) +{ + Q_ASSERT(painter); + + XYPOSITION x, y; + const QPixmap &qpm = xpm->Pixmap(); + + x = rc.left + (rc.Width() - qpm.width()) / 2.0; + y = rc.top + (rc.Height() - qpm.height()) / 2.0; + + painter->drawPixmap(QPointF(x, y), qpm); +} + +void SurfaceImpl::DrawRGBAImage(PRectangle rc, int width, int height, + const unsigned char *pixelsImage) +{ + Q_ASSERT(painter); + + const QImage *qim = reinterpret_cast(pixelsImage); + + painter->drawImage(QPointF(rc.left, rc.top), *qim); +} + +void SurfaceImpl::MeasureWidths(Font &font_, const char *s, int len, + XYPOSITION *positions) +{ + QString qs = convertText(s, len); + QTextLayout text_layout(qs, convertQFont(font_), pd); + + text_layout.beginLayout(); + QTextLine text_line = text_layout.createLine(); + text_layout.endLayout(); + + if (unicodeMode) + { + int i_char = 0, i_byte = 0;; + + while (i_char < qs.size()) + { + unsigned char byte = s[i_byte]; + int nbytes, code_units; + + // Work out character sizes by looking at the byte stream. + if (byte >= 0xf0) + { + nbytes = 4; + code_units = 2; + } + else + { + if (byte >= 0xe0) + nbytes = 3; + else if (byte >= 0x80) + nbytes = 2; + else + nbytes = 1; + + code_units = 1; + } + + XYPOSITION position = text_line.cursorToX(i_char + code_units); + + // Set the same position for each byte of the character. + for (int i = 0; i < nbytes && i_byte < len; ++i) + positions[i_byte++] = position; + + i_char += code_units; + } + + // This shouldn't be necessary... + XYPOSITION last_position = ((i_byte > 0) ? positions[i_byte - 1] : 0); + + while (i_byte < len) + positions[i_byte++] = last_position; + } + else + { + for (int i = 0; i < len; ++i) + positions[i] = text_line.cursorToX(i + 1); + } +} + +XYPOSITION SurfaceImpl::WidthText(Font &font_, const char *s, int len) +{ + return metrics(font_).width(convertText(s, len)); + +} + +XYPOSITION SurfaceImpl::WidthChar(Font &font_, char ch) +{ + return metrics(font_).width(ch); +} + +XYPOSITION SurfaceImpl::Ascent(Font &font_) +{ + return metrics(font_).ascent(); +} + +XYPOSITION SurfaceImpl::Descent(Font &font_) +{ + // Qt doesn't include the baseline in the descent, so add it. Note that + // a descent from Qt4 always seems to be 2 pixels larger (irrespective of + // font or size) than the same descent from Qt3. This means that text is a + // little more spaced out with Qt4 - and will be more noticeable with + // smaller fonts. + return metrics(font_).descent() + 1; +} + +XYPOSITION SurfaceImpl::ExternalLeading(Font &font_) +{ + // Scintilla doesn't use this at the moment, which is good because Qt4 can + // return a negative value. + return metrics(font_).leading(); +} + +XYPOSITION SurfaceImpl::Height(Font &font_) +{ + return metrics(font_).height(); +} + +XYPOSITION SurfaceImpl::AverageCharWidth(Font &font_) +{ +#if QT_VERSION >= 0x040200 + return metrics(font_).averageCharWidth(); +#else + return WidthChar(font_, 'n'); +#endif +} + +void SurfaceImpl::SetClip(PRectangle rc) +{ + Q_ASSERT(painter); + + painter->setClipRect( + QRectF(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top)); +} + +void SurfaceImpl::FlushCachedState() +{ +} + +// Return the QFont for a Font. +QFont SurfaceImpl::convertQFont(Font &font) +{ + QFont *f = PFont(font.GetID()); + + if (f) + return *f; + + return QApplication::font(); +} + +// Get the metrics for a font. +QFontMetricsF SurfaceImpl::metrics(Font &font_) +{ + QFont fnt = convertQFont(font_); + + return QFontMetricsF(fnt, pd); +} + +// Convert a Scintilla string to a Qt Unicode string. +QString SurfaceImpl::convertText(const char *s, int len) +{ + if (unicodeMode) + return QString::fromUtf8(s, len); + + return QString::fromLatin1(s, len); +} + + +// Convert a Scintilla colour, and alpha component, to a Qt QColor. +QColor SurfaceImpl::convertQColor(const ColourDesired &col, unsigned alpha) +{ + long c = col.AsLong(); + + unsigned r = c & 0xff; + unsigned g = (c >> 8) & 0xff; + unsigned b = (c >> 16) & 0xff; + + return QColor(r, g, b, alpha); +} + + +// Window (widget) management. +Window::~Window() +{ +} + +void Window::Destroy() +{ + QWidget *w = PWindow(wid); + + if (w) + { + // Delete the widget next time round the event loop rather than + // straight away. This gets round a problem when auto-completion lists + // are cancelled after an entry has been double-clicked, ie. the list's + // dtor is called from one of the list's slots. There are other ways + // around the problem but this is the simplest and doesn't seem to + // cause problems of its own. + w->deleteLater(); + wid = 0; + } +} + +bool Window::HasFocus() +{ + return PWindow(wid)->hasFocus(); +} + +PRectangle Window::GetPosition() +{ + QWidget *w = PWindow(wid); + + // Before any size allocated pretend its big enough not to be scrolled. + PRectangle rc(0,0,5000,5000); + + if (w) + { + const QRect &r = w->geometry(); + + rc.right = r.right() - r.left() + 1; + rc.bottom = r.bottom() - r.top() + 1; + } + + return rc; +} + +void Window::SetPosition(PRectangle rc) +{ + PWindow(wid)->setGeometry(rc.left, rc.top, rc.right - rc.left, + rc.bottom - rc.top); +} + +void Window::SetPositionRelative(PRectangle rc, Window relativeTo) +{ + QWidget *rel = PWindow(relativeTo.wid); + QPoint pos = rel->mapToGlobal(rel->pos()); + + int x = pos.x() + rc.left; + int y = pos.y() + rc.top; + + PWindow(wid)->setGeometry(x, y, rc.right - rc.left, rc.bottom - rc.top); +} + +PRectangle Window::GetClientPosition() +{ + return GetPosition(); +} + +void Window::Show(bool show) +{ + QWidget *w = PWindow(wid); + + if (show) + w->show(); + else + w->hide(); +} + +void Window::InvalidateAll() +{ + QWidget *w = PWindow(wid); + + if (w) + w->update(); +} + +void Window::InvalidateRectangle(PRectangle rc) +{ + QWidget *w = PWindow(wid); + + if (w) + w->update(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top); +} + +void Window::SetFont(Font &font) +{ + PWindow(wid)->setFont(*PFont(font.GetID())); +} + +void Window::SetCursor(Cursor curs) +{ + Qt::CursorShape qc; + + switch (curs) + { + case cursorText: + qc = Qt::IBeamCursor; + break; + + case cursorUp: + qc = Qt::UpArrowCursor; + break; + + case cursorWait: + qc = Qt::WaitCursor; + break; + + case cursorHoriz: + qc = Qt::SizeHorCursor; + break; + + case cursorVert: + qc = Qt::SizeVerCursor; + break; + + case cursorHand: + qc = Qt::PointingHandCursor; + break; + + default: + // Note that Qt doesn't have a standard cursor that could be used to + // implement cursorReverseArrow. + qc = Qt::ArrowCursor; + } + + PWindow(wid)->setCursor(qc); +} + +void Window::SetTitle(const char *s) +{ + PWindow(wid)->setWindowTitle(s); +} + + +PRectangle Window::GetMonitorRect(Point pt) +{ + QPoint qpt = PWindow(wid)->mapToGlobal(QPoint(pt.x, pt.y)); + QRect qr = QApplication::desktop()->availableGeometry(qpt); + qpt = PWindow(wid)->mapFromGlobal(qr.topLeft()); + + return PRectangle(qpt.x(), qpt.y(), qpt.x() + qr.width(), qpt.y() + qr.height()); +} + + +// Menu management. +Menu::Menu() : mid(0) +{ +} + +void Menu::CreatePopUp() +{ + Destroy(); + mid = new QsciSciPopup(); +} + +void Menu::Destroy() +{ + QsciSciPopup *m = PMenu(mid); + + if (m) + { + delete m; + mid = 0; + } +} + +void Menu::Show(Point pt, Window &) +{ + PMenu(mid)->popup(QPoint(pt.x, pt.y)); +} + + +class DynamicLibraryImpl : public DynamicLibrary +{ +public: + DynamicLibraryImpl(const char *modulePath) + { + m = new QLibrary(modulePath); + m->load(); + } + + virtual ~DynamicLibraryImpl() + { + if (m) + delete m; + } + + virtual Function FindFunction(const char *name) + { + if (m) + return (Function)m->resolve(name); + + return 0; + } + + virtual bool IsValid() + { + return m && m->isLoaded(); + } + +private: + QLibrary* m; +}; + +DynamicLibrary *DynamicLibrary::Load(const char *modulePath) +{ + return new DynamicLibraryImpl(modulePath); +} + + +// Elapsed time. This implementation assumes that the maximum elapsed time is +// less than 48 hours. +ElapsedTime::ElapsedTime() +{ + QTime now = QTime::currentTime(); + + bigBit = now.hour() * 60 * 60 + now.minute() * 60 + now.second(); + littleBit = now.msec(); +} + +double ElapsedTime::Duration(bool reset) +{ + long endBigBit, endLittleBit; + QTime now = QTime::currentTime(); + + endBigBit = now.hour() * 60 * 60 + now.minute() * 60 + now.second(); + endLittleBit = now.msec(); + + double duration = endBigBit - bigBit; + + if (duration < 0 || (duration == 0 && endLittleBit < littleBit)) + duration += 24 * 60 * 60; + + duration += (endLittleBit - littleBit) / 1000.0; + + if (reset) + { + bigBit = endBigBit; + littleBit = endLittleBit; + } + + return duration; +} + + +// Manage system wide parameters. +ColourDesired Platform::Chrome() +{ + return ColourDesired(0xe0,0xe0,0xe0); +} + +ColourDesired Platform::ChromeHighlight() +{ + return ColourDesired(0xff,0xff,0xff); +} + +const char *Platform::DefaultFont() +{ + static QByteArray def_font; + + def_font = QApplication::font().family().toLatin1(); + + return def_font.constData(); +} + +int Platform::DefaultFontSize() +{ + return QApplication::font().pointSize(); +} + +unsigned int Platform::DoubleClickTime() +{ + return QApplication::doubleClickInterval(); +} + +bool Platform::MouseButtonBounce() +{ + return true; +} + +void Platform::DebugDisplay(const char *s) +{ + qDebug("%s", s); +} + +bool Platform::IsKeyDown(int) +{ + return false; +} + +long Platform::SendScintilla(WindowID w, unsigned int msg, + unsigned long wParam, long lParam) +{ + // This is never called. + return 0; +} + +long Platform::SendScintillaPointer(WindowID w, unsigned int msg, + unsigned long wParam, void *lParam) +{ + // This is never called. + return 0; +} + +bool Platform::IsDBCSLeadByte(int, char) +{ + // We don't support DBCS. + return false; +} + +int Platform::DBCSCharLength(int, const char *) +{ + // We don't support DBCS. + return 1; +} + +int Platform::DBCSCharMaxLength() +{ + // We don't support DBCS. + return 2; +} + +int Platform::Minimum(int a, int b) +{ + return (a < b) ? a : b; +} + +int Platform::Maximum(int a, int b) +{ + return (a > b) ? a : b; +} + +int Platform::Clamp(int val, int minVal, int maxVal) +{ + if (val > maxVal) + val = maxVal; + + if (val < minVal) + val = minVal; + + return val; +} + + +//#define TRACE + +#ifdef TRACE +void Platform::DebugPrintf(const char *format, ...) +{ + char buffer[2000]; + va_list pArguments; + + va_start(pArguments, format); + vsprintf(buffer, format, pArguments); + va_end(pArguments); + + DebugDisplay(buffer); +} +#else +void Platform::DebugPrintf(const char *, ...) +{ +} +#endif + +static bool assertionPopUps = true; + +bool Platform::ShowAssertionPopUps(bool assertionPopUps_) +{ + bool ret = assertionPopUps; + + assertionPopUps = assertionPopUps_; + + return ret; +} + +void Platform::Assert(const char *c, const char *file, int line) +{ + qFatal("Assertion [%s] failed at %s %d\n", c, file, line); +} + +QSCI_END_SCI_NAMESPACE diff --git a/Qt4Qt5/Qsci/qsciabstractapis.h b/Qt4Qt5/Qsci/qsciabstractapis.h new file mode 100644 index 0000000..d100c8f --- /dev/null +++ b/Qt4Qt5/Qsci/qsciabstractapis.h @@ -0,0 +1,105 @@ +// This module defines interface to the QsciAbstractAPIs class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIABSTRACTAPIS_H +#define QSCIABSTRACTAPIS_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include + +#include + +#include +#include + + +class QsciLexer; + + +//! \brief The QsciAbstractAPIs class represents the interface to the textual +//! API information used in call tips and for auto-completion. A sub-class +//! will provide the actual implementation of the interface. +//! +//! API information is specific to a particular language lexer but can be +//! shared by multiple instances of the lexer. +class QSCINTILLA_EXPORT QsciAbstractAPIs : public QObject +{ + Q_OBJECT + +public: + //! Constructs a QsciAbstractAPIs instance attached to lexer \a lexer. \a + //! lexer becomes the instance's parent object although the instance can + //! also be subsequently attached to other lexers. + QsciAbstractAPIs(QsciLexer *lexer); + + //! Destroy the QsciAbstractAPIs instance. + virtual ~QsciAbstractAPIs(); + + //! Return the lexer that the instance is attached to. + QsciLexer *lexer() const; + + //! Update the list \a list with API entries derived from \a context. \a + //! context is the list of words in the text preceding the cursor position. + //! The characters that make up a word and the characters that separate + //! words are defined by the lexer. The last word is a partial word and + //! may be empty if the user has just entered a word separator. + virtual void updateAutoCompletionList(const QStringList &context, + QStringList &list) = 0; + + //! This is called when the user selects the entry \a selection from the + //! auto-completion list. A sub-class can use this as a hint to provide + //! more specific API entries in future calls to + //! updateAutoCompletionList(). The default implementation does nothing. + virtual void autoCompletionSelected(const QString &selection); + + //! Return the call tips valid for the context \a context. (Note that the + //! last word of the context will always be empty.) \a commas is the number + //! of commas the user has typed after the context and before the cursor + //! position. The exact position of the list of call tips can be adjusted + //! by specifying a corresponding left character shift in \a shifts. This + //! is normally done to correct for any displayed context according to \a + //! style. + //! + //! \sa updateAutoCompletionList() + virtual QStringList callTips(const QStringList &context, int commas, + QsciScintilla::CallTipsStyle style, + QList &shifts) = 0; + +private: + QsciLexer *lex; + + QsciAbstractAPIs(const QsciAbstractAPIs &); + QsciAbstractAPIs &operator=(const QsciAbstractAPIs &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qsciapis.h b/Qt4Qt5/Qsci/qsciapis.h new file mode 100644 index 0000000..cfa6536 --- /dev/null +++ b/Qt4Qt5/Qsci/qsciapis.h @@ -0,0 +1,228 @@ +// This module defines interface to the QsciAPIs class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIAPIS_H +#define QSCIAPIS_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include +#include + +#include + +#include +#include +#include + + +class QsciAPIsPrepared; +class QsciAPIsWorker; +class QsciLexer; + + +//! \brief The QsciAPIs class provies an implementation of the textual API +//! information used in call tips and for auto-completion. +//! +//! Raw API information is read from one or more files. Each API function is +//! described by a single line of text comprising the function's name, followed +//! by the function's optional comma separated parameters enclosed in +//! parenthesis, and finally followed by optional explanatory text. +//! +//! A function name may be followed by a `?' and a number. The number is used +//! by auto-completion to display a registered QPixmap with the function name. +//! +//! All function names are used by auto-completion, but only those that include +//! function parameters are used in call tips. +//! +//! QScintilla only deals with prepared API information and not the raw +//! information described above. This is done so that large APIs can be +//! handled while still being responsive to user input. The conversion of raw +//! information to prepared information is time consuming (think tens of +//! seconds) and implemented in a separate thread. Prepared information can +//! be quickly saved to and loaded from files. Such files are portable between +//! different architectures. +//! +//! QScintilla based applications that want to support large APIs would +//! normally provide the user with the ability to specify a set of, possibly +//! project specific, raw API files and convert them to prepared files that are +//! loaded quickly when the application is invoked. +class QSCINTILLA_EXPORT QsciAPIs : public QsciAbstractAPIs +{ + Q_OBJECT + +public: + //! Constructs a QsciAPIs instance attached to lexer \a lexer. \a lexer + //! becomes the instance's parent object although the instance can also be + //! subsequently attached to other lexers. + QsciAPIs(QsciLexer *lexer); + + //! Destroy the QsciAPIs instance. + virtual ~QsciAPIs(); + + //! Add the single raw API entry \a entry to the current set. + //! + //! \sa clear(), load(), remove() + void add(const QString &entry); + + //! Deletes all raw API information. + //! + //! \sa add(), load(), remove() + void clear(); + + //! Load the API information from the file named \a filename, adding it to + //! the current set. Returns true if successful, otherwise false. + bool load(const QString &filename); + + //! Remove the single raw API entry \a entry from the current set. + //! + //! \sa add(), clear(), load() + void remove(const QString &entry); + + //! Convert the current raw API information to prepared API information. + //! This is implemented by a separate thread. + //! + //! \sa cancelPreparation() + void prepare(); + + //! Cancel the conversion of the current raw API information to prepared + //! API information. + //! + //! \sa prepare() + void cancelPreparation(); + + //! Return the default name of the prepared API information file. It is + //! based on the name of the associated lexer and in the directory defined + //! by the QSCIDIR environment variable. If the environment variable isn't + //! set then $HOME/.qsci is used. + QString defaultPreparedName() const; + + //! Check to see is a prepared API information file named \a filename + //! exists. If \a filename is empty then the value returned by + //! defaultPreparedName() is used. Returns true if successful, otherwise + //! false. + //! + //! \sa defaultPreparedName() + bool isPrepared(const QString &filename = QString()) const; + + //! Load the prepared API information from the file named \a filename. If + //! \a filename is empty then a name is constructed based on the name of + //! the associated lexer and saved in the directory defined by the QSCIDIR + //! environment variable. If the environment variable isn't set then + //! $HOME/.qsci is used. Returns true if successful, otherwise false. + bool loadPrepared(const QString &filename = QString()); + + //! Save the prepared API information to the file named \a filename. If + //! \a filename is empty then a name is constructed based on the name of + //! the associated lexer and saved in the directory defined by the QSCIDIR + //! environment variable. If the environment variable isn't set then + //! $HOME/.qsci is used. Returns true if successful, otherwise false. + bool savePrepared(const QString &filename = QString()) const; + + //! \reimp + virtual void updateAutoCompletionList(const QStringList &context, + QStringList &list); + + //! \reimp + virtual void autoCompletionSelected(const QString &sel); + + //! \reimp + virtual QStringList callTips(const QStringList &context, int commas, + QsciScintilla::CallTipsStyle style, + QList &shifts); + + //! \internal Reimplemented to receive termination events from the worker + //! thread. + virtual bool event(QEvent *e); + + //! Return a list of the installed raw API file names for the associated + //! lexer. + QStringList installedAPIFiles() const; + +signals: + //! This signal is emitted when the conversion of raw API information to + //! prepared API information has been cancelled. + //! + //! \sa apiPreparationFinished(), apiPreparationStarted() + void apiPreparationCancelled(); + + //! This signal is emitted when the conversion of raw API information to + //! prepared API information starts and can be used to give some visual + //! feedback to the user. + //! + //! \sa apiPreparationCancelled(), apiPreparationFinished() + void apiPreparationStarted(); + + //! This signal is emitted when the conversion of raw API information to + //! prepared API information has finished. + //! + //! \sa apiPreparationCancelled(), apiPreparationStarted() + void apiPreparationFinished(); + +private: + friend class QsciAPIsPrepared; + friend class QsciAPIsWorker; + + // This indexes a word in a set of raw APIs. The first part indexes the + // entry in the set, the second part indexes the word within the entry. + typedef QPair WordIndex; + + // This is a list of word indexes. + typedef QList WordIndexList; + + QsciAPIsWorker *worker; + QStringList old_context; + QStringList::const_iterator origin; + int origin_len; + QString unambiguous_context; + QStringList apis; + QsciAPIsPrepared *prep; + + static bool enoughCommas(const QString &s, int commas); + + QStringList positionOrigin(const QStringList &context, QString &path); + bool originStartsWith(const QString &path, const QString &wsep); + const WordIndexList *wordIndexOf(const QString &word) const; + void lastCompleteWord(const QString &word, QStringList &with_context, + bool &unambig); + void lastPartialWord(const QString &word, QStringList &with_context, + bool &unambig); + void addAPIEntries(const WordIndexList &wl, bool complete, + QStringList &with_context, bool &unambig); + QString prepName(const QString &filename, bool mkpath = false) const; + void deleteWorker(); + + QsciAPIs(const QsciAPIs &); + QsciAPIs &operator=(const QsciAPIs &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscicommand.h b/Qt4Qt5/Qsci/qscicommand.h new file mode 100644 index 0000000..7a8745a --- /dev/null +++ b/Qt4Qt5/Qsci/qscicommand.h @@ -0,0 +1,418 @@ +// This defines the interface to the QsciCommand class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCICOMMAND_H +#define QSCICOMMAND_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +class QsciScintilla; + + +//! \brief The QsciCommand class represents an internal editor command that may +//! have one or two keys bound to it. +//! +//! Methods are provided to change the keys bound to the command and to remove +//! a key binding. Each command has a user friendly description of the command +//! for use in key mapping dialogs. +class QSCINTILLA_EXPORT QsciCommand +{ +public: + //! This enum defines the different commands that can be assigned to a key. + enum Command { + //! Move down one line. + LineDown = QsciScintillaBase::SCI_LINEDOWN, + + //! Extend the selection down one line. + LineDownExtend = QsciScintillaBase::SCI_LINEDOWNEXTEND, + + //! Extend the rectangular selection down one line. + LineDownRectExtend = QsciScintillaBase::SCI_LINEDOWNRECTEXTEND, + + //! Scroll the view down one line. + LineScrollDown = QsciScintillaBase::SCI_LINESCROLLDOWN, + + //! Move up one line. + LineUp = QsciScintillaBase::SCI_LINEUP, + + //! Extend the selection up one line. + LineUpExtend = QsciScintillaBase::SCI_LINEUPEXTEND, + + //! Extend the rectangular selection up one line. + LineUpRectExtend = QsciScintillaBase::SCI_LINEUPRECTEXTEND, + + //! Scroll the view up one line. + LineScrollUp = QsciScintillaBase::SCI_LINESCROLLUP, + + //! Scroll to the start of the document. + ScrollToStart = QsciScintillaBase::SCI_SCROLLTOSTART, + + //! Scroll to the end of the document. + ScrollToEnd = QsciScintillaBase::SCI_SCROLLTOEND, + + //! Scroll vertically to centre the current line. + VerticalCentreCaret = QsciScintillaBase::SCI_VERTICALCENTRECARET, + + //! Move down one paragraph. + ParaDown = QsciScintillaBase::SCI_PARADOWN, + + //! Extend the selection down one paragraph. + ParaDownExtend = QsciScintillaBase::SCI_PARADOWNEXTEND, + + //! Move up one paragraph. + ParaUp = QsciScintillaBase::SCI_PARAUP, + + //! Extend the selection up one paragraph. + ParaUpExtend = QsciScintillaBase::SCI_PARAUPEXTEND, + + //! Move left one character. + CharLeft = QsciScintillaBase::SCI_CHARLEFT, + + //! Extend the selection left one character. + CharLeftExtend = QsciScintillaBase::SCI_CHARLEFTEXTEND, + + //! Extend the rectangular selection left one character. + CharLeftRectExtend = QsciScintillaBase::SCI_CHARLEFTRECTEXTEND, + + //! Move right one character. + CharRight = QsciScintillaBase::SCI_CHARRIGHT, + + //! Extend the selection right one character. + CharRightExtend = QsciScintillaBase::SCI_CHARRIGHTEXTEND, + + //! Extend the rectangular selection right one character. + CharRightRectExtend = QsciScintillaBase::SCI_CHARRIGHTRECTEXTEND, + + //! Move left one word. + WordLeft = QsciScintillaBase::SCI_WORDLEFT, + + //! Extend the selection left one word. + WordLeftExtend = QsciScintillaBase::SCI_WORDLEFTEXTEND, + + //! Move right one word. + WordRight = QsciScintillaBase::SCI_WORDRIGHT, + + //! Extend the selection right one word. + WordRightExtend = QsciScintillaBase::SCI_WORDRIGHTEXTEND, + + //! Move to the end of the previous word. + WordLeftEnd = QsciScintillaBase::SCI_WORDLEFTEND, + + //! Extend the selection to the end of the previous word. + WordLeftEndExtend = QsciScintillaBase::SCI_WORDLEFTENDEXTEND, + + //! Move to the end of the next word. + WordRightEnd = QsciScintillaBase::SCI_WORDRIGHTEND, + + //! Extend the selection to the end of the next word. + WordRightEndExtend = QsciScintillaBase::SCI_WORDRIGHTENDEXTEND, + + //! Move left one word part. + WordPartLeft = QsciScintillaBase::SCI_WORDPARTLEFT, + + //! Extend the selection left one word part. + WordPartLeftExtend = QsciScintillaBase::SCI_WORDPARTLEFTEXTEND, + + //! Move right one word part. + WordPartRight = QsciScintillaBase::SCI_WORDPARTRIGHT, + + //! Extend the selection right one word part. + WordPartRightExtend = QsciScintillaBase::SCI_WORDPARTRIGHTEXTEND, + + //! Move to the start of the document line. + Home = QsciScintillaBase::SCI_HOME, + + //! Extend the selection to the start of the document line. + HomeExtend = QsciScintillaBase::SCI_HOMEEXTEND, + + //! Extend the rectangular selection to the start of the document line. + HomeRectExtend = QsciScintillaBase::SCI_HOMERECTEXTEND, + + //! Move to the start of the displayed line. + HomeDisplay = QsciScintillaBase::SCI_HOMEDISPLAY, + + //! Extend the selection to the start of the displayed line. + HomeDisplayExtend = QsciScintillaBase::SCI_HOMEDISPLAYEXTEND, + + //! Move to the start of the displayed or document line. + HomeWrap = QsciScintillaBase::SCI_HOMEWRAP, + + //! Extend the selection to the start of the displayed or document + //! line. + HomeWrapExtend = QsciScintillaBase::SCI_HOMEWRAPEXTEND, + + //! Move to the first visible character in the document line. + VCHome = QsciScintillaBase::SCI_VCHOME, + + //! Extend the selection to the first visible character in the document + //! line. + VCHomeExtend = QsciScintillaBase::SCI_VCHOMEEXTEND, + + //! Extend the rectangular selection to the first visible character in + //! the document line. + VCHomeRectExtend = QsciScintillaBase::SCI_VCHOMERECTEXTEND, + + //! Move to the first visible character of the displayed or document + //! line. + VCHomeWrap = QsciScintillaBase::SCI_VCHOMEWRAP, + + //! Extend the selection to the first visible character of the + //! displayed or document line. + VCHomeWrapExtend = QsciScintillaBase::SCI_VCHOMEWRAPEXTEND, + + //! Move to the end of the document line. + LineEnd = QsciScintillaBase::SCI_LINEEND, + + //! Extend the selection to the end of the document line. + LineEndExtend = QsciScintillaBase::SCI_LINEENDEXTEND, + + //! Extend the rectangular selection to the end of the document line. + LineEndRectExtend = QsciScintillaBase::SCI_LINEENDRECTEXTEND, + + //! Move to the end of the displayed line. + LineEndDisplay = QsciScintillaBase::SCI_LINEENDDISPLAY, + + //! Extend the selection to the end of the displayed line. + LineEndDisplayExtend = QsciScintillaBase::SCI_LINEENDDISPLAYEXTEND, + + //! Move to the end of the displayed or document line. + LineEndWrap = QsciScintillaBase::SCI_LINEENDWRAP, + + //! Extend the selection to the end of the displayed or document line. + LineEndWrapExtend = QsciScintillaBase::SCI_LINEENDWRAPEXTEND, + + //! Move to the start of the document. + DocumentStart = QsciScintillaBase::SCI_DOCUMENTSTART, + + //! Extend the selection to the start of the document. + DocumentStartExtend = QsciScintillaBase::SCI_DOCUMENTSTARTEXTEND, + + //! Move to the end of the document. + DocumentEnd = QsciScintillaBase::SCI_DOCUMENTEND, + + //! Extend the selection to the end of the document. + DocumentEndExtend = QsciScintillaBase::SCI_DOCUMENTENDEXTEND, + + //! Move up one page. + PageUp = QsciScintillaBase::SCI_PAGEUP, + + //! Extend the selection up one page. + PageUpExtend = QsciScintillaBase::SCI_PAGEUPEXTEND, + + //! Extend the rectangular selection up one page. + PageUpRectExtend = QsciScintillaBase::SCI_PAGEUPRECTEXTEND, + + //! Move down one page. + PageDown = QsciScintillaBase::SCI_PAGEDOWN, + + //! Extend the selection down one page. + PageDownExtend = QsciScintillaBase::SCI_PAGEDOWNEXTEND, + + //! Extend the rectangular selection down one page. + PageDownRectExtend = QsciScintillaBase::SCI_PAGEDOWNRECTEXTEND, + + //! Stuttered move up one page. + StutteredPageUp = QsciScintillaBase::SCI_STUTTEREDPAGEUP, + + //! Stuttered extend the selection up one page. + StutteredPageUpExtend = QsciScintillaBase::SCI_STUTTEREDPAGEUPEXTEND, + + //! Stuttered move down one page. + StutteredPageDown = QsciScintillaBase::SCI_STUTTEREDPAGEDOWN, + + //! Stuttered extend the selection down one page. + StutteredPageDownExtend = QsciScintillaBase::SCI_STUTTEREDPAGEDOWNEXTEND, + + //! Delete the current character. + Delete = QsciScintillaBase::SCI_CLEAR, + + //! Delete the previous character. + DeleteBack = QsciScintillaBase::SCI_DELETEBACK, + + //! Delete the previous character if not at start of line. + DeleteBackNotLine = QsciScintillaBase::SCI_DELETEBACKNOTLINE, + + //! Delete the word to the left. + DeleteWordLeft = QsciScintillaBase::SCI_DELWORDLEFT, + + //! Delete the word to the right. + DeleteWordRight = QsciScintillaBase::SCI_DELWORDRIGHT, + + //! Delete right to the end of the next word. + DeleteWordRightEnd = QsciScintillaBase::SCI_DELWORDRIGHTEND, + + //! Delete the line to the left. + DeleteLineLeft = QsciScintillaBase::SCI_DELLINELEFT, + + //! Delete the line to the right. + DeleteLineRight = QsciScintillaBase::SCI_DELLINERIGHT, + + //! Delete the current line. + LineDelete = QsciScintillaBase::SCI_LINEDELETE, + + //! Cut the current line to the clipboard. + LineCut = QsciScintillaBase::SCI_LINECUT, + + //! Copy the current line to the clipboard. + LineCopy = QsciScintillaBase::SCI_LINECOPY, + + //! Transpose the current and previous lines. + LineTranspose = QsciScintillaBase::SCI_LINETRANSPOSE, + + //! Duplicate the current line. + LineDuplicate = QsciScintillaBase::SCI_LINEDUPLICATE, + + //! Select the whole document. + SelectAll = QsciScintillaBase::SCI_SELECTALL, + + //! Move the selected lines up one line. + MoveSelectedLinesUp = QsciScintillaBase::SCI_MOVESELECTEDLINESUP, + + //! Move the selected lines down one line. + MoveSelectedLinesDown = QsciScintillaBase::SCI_MOVESELECTEDLINESDOWN, + + //! Duplicate the selection. + SelectionDuplicate = QsciScintillaBase::SCI_SELECTIONDUPLICATE, + + //! Convert the selection to lower case. + SelectionLowerCase = QsciScintillaBase::SCI_LOWERCASE, + + //! Convert the selection to upper case. + SelectionUpperCase = QsciScintillaBase::SCI_UPPERCASE, + + //! Cut the selection to the clipboard. + SelectionCut = QsciScintillaBase::SCI_CUT, + + //! Copy the selection to the clipboard. + SelectionCopy = QsciScintillaBase::SCI_COPY, + + //! Paste from the clipboard. + Paste = QsciScintillaBase::SCI_PASTE, + + //! Toggle insert/overtype. + EditToggleOvertype = QsciScintillaBase::SCI_EDITTOGGLEOVERTYPE, + + //! Insert a platform dependent newline. + Newline = QsciScintillaBase::SCI_NEWLINE, + + //! Insert a formfeed. + Formfeed = QsciScintillaBase::SCI_FORMFEED, + + //! Indent one level. + Tab = QsciScintillaBase::SCI_TAB, + + //! De-indent one level. + Backtab = QsciScintillaBase::SCI_BACKTAB, + + //! Cancel any current operation. + Cancel = QsciScintillaBase::SCI_CANCEL, + + //! Undo the last command. + Undo = QsciScintillaBase::SCI_UNDO, + + //! Redo the last command. + Redo = QsciScintillaBase::SCI_REDO, + + //! Zoom in. + ZoomIn = QsciScintillaBase::SCI_ZOOMIN, + + //! Zoom out. + ZoomOut = QsciScintillaBase::SCI_ZOOMOUT, + }; + + //! Return the command that will be executed by this instance. + Command command() const {return scicmd;} + + //! Execute the command. + void execute(); + + //! Binds the key \a key to the command. If \a key is 0 then the key + //! binding is removed. If \a key is invalid then the key binding is + //! unchanged. Valid keys are any visible or control character or any + //! of \c Qt::Key_Down, \c Qt::Key_Up, \c Qt::Key_Left, \c Qt::Key_Right, + //! \c Qt::Key_Home, \c Qt::Key_End, \c Qt::Key_PageUp, + //! \c Qt::Key_PageDown, \c Qt::Key_Delete, \c Qt::Key_Insert, + //! \c Qt::Key_Escape, \c Qt::Key_Backspace, \c Qt::Key_Tab, + //! \c Qt::Key_Backtab, \c Qt::Key_Return, \c Qt::Key_Enter, + //! \c Qt::Key_Super_L, \c Qt::Key_Super_R or \c Qt::Key_Menu. Keys may be + //! modified with any combination of \c Qt::ShiftModifier, + //! \c Qt::ControlModifier, \c Qt::AltModifier and \c Qt::MetaModifier. + //! + //! \sa key(), setAlternateKey(), validKey() + void setKey(int key); + + //! Binds the alternate key \a altkey to the command. If \a key is 0 + //! then the alternate key binding is removed. + //! + //! \sa alternateKey(), setKey(), validKey() + void setAlternateKey(int altkey); + + //! The key that is currently bound to the command is returned. + //! + //! \sa setKey(), alternateKey() + int key() const {return qkey;} + + //! The alternate key that is currently bound to the command is + //! returned. + //! + //! \sa setAlternateKey(), key() + int alternateKey() const {return qaltkey;} + + //! If the key \a key is valid then true is returned. + static bool validKey(int key); + + //! The user friendly description of the command is returned. + QString description() const; + +private: + friend class QsciCommandSet; + + QsciCommand(QsciScintilla *qs, Command cmd, int key, int altkey, + const char *desc); + + void bindKey(int key,int &qk,int &scik); + + QsciScintilla *qsCmd; + Command scicmd; + int qkey, scikey, qaltkey, scialtkey; + const char *descCmd; + + QsciCommand(const QsciCommand &); + QsciCommand &operator=(const QsciCommand &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscicommandset.h b/Qt4Qt5/Qsci/qscicommandset.h new file mode 100644 index 0000000..9518fe3 --- /dev/null +++ b/Qt4Qt5/Qsci/qscicommandset.h @@ -0,0 +1,102 @@ +// This defines the interface to the QsciCommandSet class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCICOMMANDSET_H +#define QSCICOMMANDSET_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include + +#include +#include + + +QT_BEGIN_NAMESPACE +class QSettings; +QT_END_NAMESPACE + +class QsciScintilla; + + +//! \brief The QsciCommandSet class represents the set of all internal editor +//! commands that may have keys bound. +//! +//! Methods are provided to access the individual commands and to read and +//! write the current bindings from and to settings files. +class QSCINTILLA_EXPORT QsciCommandSet +{ +public: + //! The key bindings for each command in the set are read from the + //! settings \a qs. \a prefix is prepended to the key of each entry. + //! true is returned if there was no error. + //! + //! \sa writeSettings() + bool readSettings(QSettings &qs, const char *prefix = "/Scintilla"); + + //! The key bindings for each command in the set are written to the + //! settings \a qs. \a prefix is prepended to the key of each entry. + //! true is returned if there was no error. + //! + //! \sa readSettings() + bool writeSettings(QSettings &qs, const char *prefix = "/Scintilla"); + + //! The commands in the set are returned as a list. + QList &commands() {return cmds;} + + //! The primary keys bindings for all commands are removed. + void clearKeys(); + + //! The alternate keys bindings for all commands are removed. + void clearAlternateKeys(); + + // Find the command that is bound to \a key. + QsciCommand *boundTo(int key) const; + + // Find a specific command \a command. + QsciCommand *find(QsciCommand::Command command) const; + +private: + friend class QsciScintilla; + + QsciCommandSet(QsciScintilla *qs); + ~QsciCommandSet(); + + QsciScintilla *qsci; + QList cmds; + + QsciCommandSet(const QsciCommandSet &); + QsciCommandSet &operator=(const QsciCommandSet &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscidocument.h b/Qt4Qt5/Qsci/qscidocument.h new file mode 100644 index 0000000..8264317 --- /dev/null +++ b/Qt4Qt5/Qsci/qscidocument.h @@ -0,0 +1,74 @@ +// This defines the interface to the QsciDocument class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIDOCUMENT_H +#define QSCIDOCUMENT_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + + +class QsciScintillaBase; +class QsciDocumentP; + + +//! \brief The QsciDocument class represents a document to be edited. +//! +//! It is an opaque class that can be attached to multiple instances of +//! QsciScintilla to create different simultaneous views of the same document. +//! QsciDocument uses implicit sharing so that copying class instances is a +//! cheap operation. +class QSCINTILLA_EXPORT QsciDocument +{ +public: + //! Create a new unattached document. + QsciDocument(); + virtual ~QsciDocument(); + + QsciDocument(const QsciDocument &); + QsciDocument &operator=(const QsciDocument &); + +private: + friend class QsciScintilla; + + void attach(const QsciDocument &that); + void detach(); + void display(QsciScintillaBase *qsb, const QsciDocument *from); + void undisplay(QsciScintillaBase *qsb); + + bool isModified() const; + void setModified(bool m); + + QsciDocumentP *pdoc; +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qsciglobal.h b/Qt4Qt5/Qsci/qsciglobal.h new file mode 100644 index 0000000..dae1532 --- /dev/null +++ b/Qt4Qt5/Qsci/qsciglobal.h @@ -0,0 +1,67 @@ +// This module defines various things common to all of the Scintilla Qt port. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIGLOBAL_H +#define QSCIGLOBAL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + + +#define QSCINTILLA_VERSION 0x020804 +#define QSCINTILLA_VERSION_STR "2.8.4" + + +// Under Windows, define QSCINTILLA_MAKE_DLL to create a Scintilla DLL, or +// define QSCINTILLA_DLL to link against a Scintilla DLL, or define neither +// to either build or link against a static Scintilla library. +#if defined(Q_OS_WIN) + +#if defined(QSCINTILLA_DLL) +#define QSCINTILLA_EXPORT __declspec(dllimport) +#elif defined(QSCINTILLA_MAKE_DLL) +#define QSCINTILLA_EXPORT __declspec(dllexport) +#endif + +#endif + +#if !defined(QSCINTILLA_EXPORT) +#define QSCINTILLA_EXPORT +#endif + + +#if !defined(QT_BEGIN_NAMESPACE) +#define QT_BEGIN_NAMESPACE +#define QT_END_NAMESPACE +#endif + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexer.h b/Qt4Qt5/Qsci/qscilexer.h new file mode 100644 index 0000000..0a2a3bb --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexer.h @@ -0,0 +1,363 @@ +// This defines the interface to the QsciLexer class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXER_H +#define QSCILEXER_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include +#include +#include +#include + +#include + + +QT_BEGIN_NAMESPACE +class QSettings; +QT_END_NAMESPACE + +class QsciAbstractAPIs; +class QsciScintilla; + + +//! \brief The QsciLexer class is an abstract class used as a base for language +//! lexers. +//! +//! A lexer scans the text breaking it up into separate language objects, e.g. +//! keywords, strings, operators. The lexer then uses a different style to +//! draw each object. A style is identified by a style number and has a number +//! of attributes, including colour and font. A specific language lexer will +//! implement appropriate default styles which can be overriden by an +//! application by further sub-classing the specific language lexer. +//! +//! A lexer may provide one or more sets of words to be recognised as keywords. +//! Most lexers only provide one set, but some may support languages embedded +//! in other languages and provide several sets. +//! +//! QsciLexer provides convenience methods for saving and restoring user +//! preferences for fonts and colours. +//! +//! If you want to write a lexer for a new language then you can add it to the +//! underlying Scintilla code and implement a corresponding QsciLexer sub-class +//! to manage the different styles used. Alternatively you can implement a +//! sub-class of QsciLexerCustom. +class QSCINTILLA_EXPORT QsciLexer : public QObject +{ + Q_OBJECT + +public: + //! Construct a QsciLexer with parent \a parent. \a parent is typically + //! the QsciScintilla instance. + QsciLexer(QObject *parent = 0); + + //! Destroy the QSciLexer. + virtual ~QsciLexer(); + + //! Returns the name of the language. It must be re-implemented by a + //! sub-class. + virtual const char *language() const = 0; + + //! Returns the name of the lexer. If 0 is returned then the lexer's + //! numeric identifier is used. The default implementation returns 0. + //! + //! \sa lexerId() + virtual const char *lexer() const; + + //! Returns the identifier (i.e. a QsciScintillaBase::SCLEX_* value) of the + //! lexer. This is only used if lexer() returns 0. The default + //! implementation returns QsciScintillaBase::SCLEX_CONTAINER. + //! + //! \sa lexer() + virtual int lexerId() const; + + //! Returns the current API set or 0 if there isn't one. + //! + //! \sa setAPIs() + QsciAbstractAPIs *apis() const; + + //! \internal Returns the characters that can fill up auto-completion. + virtual const char *autoCompletionFillups() const; + + //! \internal Returns the list of character sequences that can separate + //! auto-completion words. The first in the list is assumed to be the + //! sequence used to separate words in the lexer's API files. + virtual QStringList autoCompletionWordSeparators() const; + + //! Returns the auto-indentation style. The default is 0 if the + //! language is block structured, or QsciScintilla::AiMaintain if not. + //! + //! \sa setAutoIndentStyle(), QsciScintilla::AiMaintain, + //! QsciScintilla::AiOpening, QsciScintilla::AiClosing + int autoIndentStyle(); + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The style is returned via \a style. + virtual const char *blockEnd(int *style = 0) const; + + //! \internal Returns the number of lines prior to the current one when + //! determining the scope of a block when auto-indenting. + virtual int blockLookback() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The style is returned via \a style. + virtual const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a + //! particular style that define the start of a block for + //! auto-indentation. The style is returned via \a style. + virtual const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + virtual int braceStyle() const; + + //! \internal Returns true if the language is case sensitive. The default + //! is true. + virtual bool caseSensitive() const; + + //! Returns the foreground colour of the text for style number \a style. + //! The default colour is that returned by defaultColor(). + //! + //! \sa defaultColor(), paper() + virtual QColor color(int style) const; + + //! Returns the end-of-line for style number \a style. The default is + //! false. + virtual bool eolFill(int style) const; + + //! Returns the font for style number \a style. The default font is + //! that returned by defaultFont(). + //! + //! \sa defaultFont() + virtual QFont font(int style) const; + + //! \internal Returns the view used for indentation guides. + virtual int indentationGuideView() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. 0 is returned if there + //! is no such set. + virtual const char *keywords(int set) const; + + //! \internal Returns the number of the style used for whitespace. The + //! default implementation returns 0 which is the convention adopted by + //! most lexers. + virtual int defaultStyle() const; + + //! Returns the descriptive name for style number \a style. For a valid + //! style number for this language a non-empty QString must be returned. + //! If the style number is invalid then an empty QString must be returned. + //! This is intended to be used in user preference dialogs. + virtual QString description(int style) const = 0; + + //! Returns the background colour of the text for style number + //! \a style. + //! + //! \sa defaultPaper(), color() + virtual QColor paper(int style) const; + + //! Returns the default text colour. + //! + //! \sa setDefaultColor() + QColor defaultColor() const; + + //! Returns the default text colour for style number \a style. + virtual QColor defaultColor(int style) const; + + //! Returns the default end-of-line for style number \a style. The default + //! is false. + virtual bool defaultEolFill(int style) const; + + //! Returns the default font. + //! + //! \sa setDefaultFont() + QFont defaultFont() const; + + //! Returns the default font for style number \a style. + virtual QFont defaultFont(int style) const; + + //! Returns the default paper colour. + //! + //! \sa setDefaultPaper() + QColor defaultPaper() const; + + //! Returns the default paper colour for style number \a style. + virtual QColor defaultPaper(int style) const; + + //! Returns the QsciScintilla instance that the lexer is currently attached + //! to or 0 if it is unattached. + QsciScintilla *editor() const {return attached_editor;} + + //! The current set of APIs is set to \a apis. If \a apis is 0 then any + //! existing APIs for this lexer are removed. + //! + //! \sa apis() + void setAPIs(QsciAbstractAPIs *apis); + + //! The default text colour is set to \a c. + //! + //! \sa defaultColor(), color() + void setDefaultColor(const QColor &c); + + //! The default font is set to \a f. + //! + //! \sa defaultFont(), font() + void setDefaultFont(const QFont &f); + + //! The default paper colour is set to \a c. + //! + //! \sa defaultPaper(), paper() + void setDefaultPaper(const QColor &c); + + //! \internal Set the QsciScintilla instance that the lexer is attached to. + virtual void setEditor(QsciScintilla *editor); + + //! The colour, paper, font and end-of-line for each style number, and + //! all lexer specific properties are read from the settings \a qs. + //! \a prefix is prepended to the key of each entry. true is returned + //! if there was no error. + //! + //! \sa writeSettings(), QsciScintilla::setLexer() + bool readSettings(QSettings &qs,const char *prefix = "/Scintilla"); + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + virtual void refreshProperties(); + + //! Returns the number of style bits needed by the lexer. Normally this + //! should only be re-implemented by custom lexers. + virtual int styleBitsNeeded() const; + + //! Returns the string of characters that comprise a word. The default is + //! 0 which implies the upper and lower case alphabetic characters and + //! underscore. + virtual const char *wordCharacters() const; + + //! The colour, paper, font and end-of-line for each style number, and + //! all lexer specific properties are written to the settings \a qs. + //! \a prefix is prepended to the key of each entry. true is returned + //! if there was no error. + //! + //! \sa readSettings() + bool writeSettings(QSettings &qs, + const char *prefix = "/Scintilla") const; + +public slots: + //! The auto-indentation style is set to \a autoindentstyle. + //! + //! \sa autoIndentStyle(), QsciScintilla::AiMaintain, + //! QsciScintilla::AiOpening, QsciScintilla::AiClosing + virtual void setAutoIndentStyle(int autoindentstyle); + + //! The foreground colour for style number \a style is set to \a c. If + //! \a style is -1 then the colour is set for all styles. + virtual void setColor(const QColor &c,int style = -1); + + //! The end-of-line fill for style number \a style is set to + //! \a eoffill. If \a style is -1 then the fill is set for all styles. + virtual void setEolFill(bool eoffill,int style = -1); + + //! The font for style number \a style is set to \a f. If \a style is + //! -1 then the font is set for all styles. + virtual void setFont(const QFont &f,int style = -1); + + //! The background colour for style number \a style is set to \a c. If + //! \a style is -1 then the colour is set for all styles. + virtual void setPaper(const QColor &c,int style = -1); + +signals: + //! This signal is emitted when the foreground colour of style number + //! \a style has changed. The new colour is \a c. + void colorChanged(const QColor &c,int style); + + //! This signal is emitted when the end-of-file fill of style number + //! \a style has changed. The new fill is \a eolfilled. + void eolFillChanged(bool eolfilled,int style); + + //! This signal is emitted when the font of style number \a style has + //! changed. The new font is \a f. + void fontChanged(const QFont &f,int style); + + //! This signal is emitted when the background colour of style number + //! \a style has changed. The new colour is \a c. + void paperChanged(const QColor &c,int style); + + //! This signal is emitted when the value of the lexer property \a prop + //! needs to be changed. The new value is \a val. + void propertyChanged(const char *prop, const char *val); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + virtual bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + virtual bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + struct StyleData { + QFont font; + QColor color; + QColor paper; + bool eol_fill; + }; + + struct StyleDataMap { + bool style_data_set; + QMap style_data; + }; + + StyleDataMap *style_map; + + int autoIndStyle; + QFont defFont; + QColor defColor; + QColor defPaper; + QsciAbstractAPIs *apiSet; + QsciScintilla *attached_editor; + + void setStyleDefaults() const; + StyleData &styleData(int style) const; + + QsciLexer(const QsciLexer &); + QsciLexer &operator=(const QsciLexer &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexeravs.h b/Qt4Qt5/Qsci/qscilexeravs.h new file mode 100644 index 0000000..dd127c0 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexeravs.h @@ -0,0 +1,187 @@ +// This defines the interface to the QsciLexerAVS class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERAVS_H +#define QSCILEXERAVS_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerAVS class encapsulates the Scintilla AVS lexer. +class QSCINTILLA_EXPORT QsciLexerAVS : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! AVS lexer. + enum { + //! The default. + Default = 0, + + //! A block comment. + BlockComment = 1, + + //! A nested block comment. + NestedBlockComment = 2, + + //! A line comment. + LineComment = 3, + + //! A number. + Number = 4, + + //! An operator. + Operator = 5, + + //! An identifier + Identifier = 6, + + //! A string. + String = 7, + + //! A triple quoted string. + TripleString = 8, + + //! A keyword (as defined by keyword set number 1).. + Keyword = 9, + + //! A filter (as defined by keyword set number 2). + Filter = 10, + + //! A plugin (as defined by keyword set number 3). + Plugin = 11, + + //! A function (as defined by keyword set number 4). + Function = 12, + + //! A clip property (as defined by keyword set number 5). + ClipProperty = 13, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet6 = 14 + }; + + //! Construct a QsciLexerAVS with parent \a parent. \a parent is typically + //! the QsciScintilla instance. + QsciLexerAVS(QObject *parent = 0); + + //! Destroys the QsciLexerAVS instance. + virtual ~QsciLexerAVS(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + + bool fold_comments; + bool fold_compact; + + QsciLexerAVS(const QsciLexerAVS &); + QsciLexerAVS &operator=(const QsciLexerAVS &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerbash.h b/Qt4Qt5/Qsci/qscilexerbash.h new file mode 100644 index 0000000..e8c9fa8 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerbash.h @@ -0,0 +1,191 @@ +// This defines the interface to the QsciLexerBash class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERBASH_H +#define QSCILEXERBASH_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerBash class encapsulates the Scintilla Bash lexer. +class QSCINTILLA_EXPORT QsciLexerBash : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Bash lexer. + enum { + //! The default. + Default = 0, + + //! An error. + Error = 1, + + //! A comment. + Comment = 2, + + //! A number. + Number = 3, + + //! A keyword. + Keyword = 4, + + //! A double-quoted string. + DoubleQuotedString = 5, + + //! A single-quoted string. + SingleQuotedString = 6, + + //! An operator. + Operator = 7, + + //! An identifier + Identifier = 8, + + //! A scalar. + Scalar = 9, + + //! Parameter expansion. + ParameterExpansion = 10, + + //! Backticks. + Backticks = 11, + + //! A here document delimiter. + HereDocumentDelimiter = 12, + + //! A single quoted here document. + SingleQuotedHereDocument = 13 + }; + + //! Construct a QsciLexerBash with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerBash(QObject *parent = 0); + + //! Destroys the QsciLexerBash instance. + virtual ~QsciLexerBash(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + + bool fold_comments; + bool fold_compact; + + QsciLexerBash(const QsciLexerBash &); + QsciLexerBash &operator=(const QsciLexerBash &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerbatch.h b/Qt4Qt5/Qsci/qscilexerbatch.h new file mode 100644 index 0000000..57a4ea5 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerbatch.h @@ -0,0 +1,128 @@ +// This defines the interface to the QsciLexerBatch class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERBATCH_H +#define QSCILEXERBATCH_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerBatch class encapsulates the Scintilla batch file +//! lexer. +class QSCINTILLA_EXPORT QsciLexerBatch : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! batch file lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A keyword. + Keyword = 2, + + //! A label. + Label = 3, + + //! An hide command character. + HideCommandChar = 4, + + //! An external command . + ExternalCommand = 5, + + //! A variable. + Variable = 6, + + //! An operator + Operator = 7 + }; + + //! Construct a QsciLexerBatch with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerBatch(QObject *parent = 0); + + //! Destroys the QsciLexerBatch instance. + virtual ~QsciLexerBatch(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! \internal Returns true if the language is case sensitive. + bool caseSensitive() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerBatch(const QsciLexerBatch &); + QsciLexerBatch &operator=(const QsciLexerBatch &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexercmake.h b/Qt4Qt5/Qsci/qscilexercmake.h new file mode 100644 index 0000000..47343a1 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexercmake.h @@ -0,0 +1,173 @@ +// This defines the interface to the QsciLexerCMake class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCMAKE_H +#define QSCILEXERCMAKE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerCMake class encapsulates the Scintilla CMake lexer. +class QSCINTILLA_EXPORT QsciLexerCMake : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! CMake lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A string. + String = 2, + + //! A left quoted string. + StringLeftQuote = 3, + + //! A right quoted string. + StringRightQuote = 4, + + //! A function. (Defined by keyword set number 1.) + Function = 5, + + //! A variable. (Defined by keyword set number 2.) + Variable = 6, + + //! A label. + Label = 7, + + //! A keyword defined in keyword set number 3. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet3 = 8, + + //! A WHILE block. + BlockWhile = 9, + + //! A FOREACH block. + BlockForeach = 10, + + //! An IF block. + BlockIf = 11, + + //! A MACRO block. + BlockMacro = 12, + + //! A variable within a string. + StringVariable = 13, + + //! A number. + Number = 14 + }; + + //! Construct a QsciLexerCMake with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerCMake(QObject *parent = 0); + + //! Destroys the QsciLexerCMake instance. + virtual ~QsciLexerCMake(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if ELSE blocks can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const; + +public slots: + //! If \a fold is true then ELSE blocks can be folded. The default is + //! false. + //! + //! \sa foldAtElse() + virtual void setFoldAtElse(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setAtElseProp(); + + bool fold_atelse; + + QsciLexerCMake(const QsciLexerCMake &); + QsciLexerCMake &operator=(const QsciLexerCMake &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexercoffeescript.h b/Qt4Qt5/Qsci/qscilexercoffeescript.h new file mode 100644 index 0000000..7d25a8c --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexercoffeescript.h @@ -0,0 +1,274 @@ +// This defines the interface to the QsciLexerCoffeeScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCOFFEESCRIPT_H +#define QSCILEXERCOFFEESCRIPT_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerCoffeeScript class encapsulates the Scintilla +//! CoffeeScript lexer. +class QSCINTILLA_EXPORT QsciLexerCoffeeScript : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! C++ lexer. + enum { + //! The default. + Default = 0, + + //! A C-style comment. + Comment = 1, + + //! A C++-style comment line. + CommentLine = 2, + + //! A JavaDoc/Doxygen C-style comment. + CommentDoc = 3, + + //! A number. + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A double-quoted string. + DoubleQuotedString = 6, + + //! A single-quoted string. + SingleQuotedString = 7, + + //! An IDL UUID. + UUID = 8, + + //! A pre-processor block. + PreProcessor = 9, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! The end of a line where a string is not closed. + UnclosedString = 12, + + //! A C# verbatim string. + VerbatimString = 13, + + //! A regular expression. + Regex = 14, + + //! A JavaDoc/Doxygen C++-style comment line. + CommentLineDoc = 15, + + //! A keyword defined in keyword set number 2. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet2 = 16, + + //! A JavaDoc/Doxygen keyword. + CommentDocKeyword = 17, + + //! A JavaDoc/Doxygen keyword error defined in keyword set number 3. + //! The class must be sub-classed and re-implement keywords() to make + //! use of this style. + CommentDocKeywordError = 18, + + //! A global class defined in keyword set number 4. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + GlobalClass = 19, + + //! A block comment. + CommentBlock = 22, + + //! A block regular expression. + BlockRegex = 23, + + //! A block regular expression comment. + BlockRegexComment = 24, + }; + + //! Construct a QsciLexerCoffeeScript with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerCoffeeScript(QObject *parent = 0); + + //! Destroys the QsciLexerCoffeeScript instance. + virtual ~QsciLexerCoffeeScript(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a + //! particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. Set 1 is normally used for + //! primary keywords and identifiers. Set 2 is normally used for secondary + //! keywords and identifiers. Set 3 is normally used for documentation + //! comment keywords. Set 4 is normally used for global classes and + //! typedefs. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if '$' characters are allowed in identifier names. + //! + //! \sa setDollarsAllowed() + bool dollarsAllowed() const {return dollars;} + + //! If \a allowed is true then '$' characters are allowed in identifier + //! names. The default is true. + //! + //! \sa dollarsAllowed() + void setDollarsAllowed(bool allowed); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + void setFoldComments(bool fold); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + void setFoldCompact(bool fold); + + //! Returns true if preprocessor lines (after the preprocessor + //! directive) are styled. + //! + //! \sa setStylePreprocessor() + bool stylePreprocessor() const {return style_preproc;} + + //! If \a style is true then preprocessor lines (after the preprocessor + //! directive) are styled. The default is false. + //! + //! \sa stylePreprocessor() + void setStylePreprocessor(bool style); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setStylePreprocProp(); + void setDollarsProp(); + + bool fold_comments; + bool fold_compact; + bool style_preproc; + bool dollars; + + QsciLexerCoffeeScript(const QsciLexerCoffeeScript &); + QsciLexerCoffeeScript &operator=(const QsciLexerCoffeeScript &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexercpp.h b/Qt4Qt5/Qsci/qscilexercpp.h new file mode 100644 index 0000000..e8bd20e --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexercpp.h @@ -0,0 +1,360 @@ +// This defines the interface to the QsciLexerCPP class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCPP_H +#define QSCILEXERCPP_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerCPP class encapsulates the Scintilla C++ +//! lexer. +class QSCINTILLA_EXPORT QsciLexerCPP : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! C++ lexer. + enum { + //! The default. + Default = 0, + InactiveDefault = Default + 64, + + //! A C comment. + Comment = 1, + InactiveComment = Comment + 64, + + //! A C++ comment line. + CommentLine = 2, + InactiveCommentLine = CommentLine + 64, + + //! A JavaDoc/Doxygen style C comment. + CommentDoc = 3, + InactiveCommentDoc = CommentDoc + 64, + + //! A number. + Number = 4, + InactiveNumber = Number + 64, + + //! A keyword. + Keyword = 5, + InactiveKeyword = Keyword + 64, + + //! A double-quoted string. + DoubleQuotedString = 6, + InactiveDoubleQuotedString = DoubleQuotedString + 64, + + //! A single-quoted string. + SingleQuotedString = 7, + InactiveSingleQuotedString = SingleQuotedString + 64, + + //! An IDL UUID. + UUID = 8, + InactiveUUID = UUID + 64, + + //! A pre-processor block. + PreProcessor = 9, + InactivePreProcessor = PreProcessor + 64, + + //! An operator. + Operator = 10, + InactiveOperator = Operator + 64, + + //! An identifier + Identifier = 11, + InactiveIdentifier = Identifier + 64, + + //! The end of a line where a string is not closed. + UnclosedString = 12, + InactiveUnclosedString = UnclosedString + 64, + + //! A C# verbatim string. + VerbatimString = 13, + InactiveVerbatimString = VerbatimString + 64, + + //! A JavaScript regular expression. + Regex = 14, + InactiveRegex = Regex + 64, + + //! A JavaDoc/Doxygen style C++ comment line. + CommentLineDoc = 15, + InactiveCommentLineDoc = CommentLineDoc + 64, + + //! A keyword defined in keyword set number 2. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet2 = 16, + InactiveKeywordSet2 = KeywordSet2 + 64, + + //! A JavaDoc/Doxygen keyword. + CommentDocKeyword = 17, + InactiveCommentDocKeyword = CommentDocKeyword + 64, + + //! A JavaDoc/Doxygen keyword error. + CommentDocKeywordError = 18, + InactiveCommentDocKeywordError = CommentDocKeywordError + 64, + + //! A global class or typedef defined in keyword set number 5. The + //! class must be sub-classed and re-implement keywords() to make use + //! of this style. + GlobalClass = 19, + InactiveGlobalClass = GlobalClass + 64, + + //! A C++ raw string. + RawString = 20, + InactiveRawString = RawString + 20, + + //! A Vala triple-quoted verbatim string. + TripleQuotedVerbatimString = 21, + InactiveTripleQuotedVerbatimString = TripleQuotedVerbatimString + 21, + + //! A Pike hash-quoted string. + HashQuotedString = 22, + InactiveHashQuotedString = HashQuotedString + 22, + + //! A pre-processor stream comment. + PreProcessorComment = 23, + InactivePreProcessorComment = PreProcessorComment + 23, + + //! A JavaDoc/Doxygen style pre-processor comment. + PreProcessorCommentLineDoc = 24, + InactivePreProcessorCommentLineDoc = PreProcessorCommentLineDoc + 64, + }; + + //! Construct a QsciLexerCPP with parent \a parent. \a parent is typically + //! the QsciScintilla instance. \a caseInsensitiveKeywords is true if the + //! lexer ignores the case of keywords. + QsciLexerCPP(QObject *parent = 0, bool caseInsensitiveKeywords = false); + + //! Destroys the QsciLexerCPP instance. + virtual ~QsciLexerCPP(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a + //! particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. Set 1 is normally used for + //! primary keywords and identifiers. Set 2 is normally used for secondary + //! keywords and identifiers. Set 3 is normally used for documentation + //! comment keywords. Set 4 is normally used for global classes and + //! typedefs. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if "} else {" lines can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const {return fold_atelse;} + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! Returns true if preprocessor blocks can be folded. + //! + //! \sa setFoldPreprocessor() + bool foldPreprocessor() const {return fold_preproc;} + + //! Returns true if preprocessor lines (after the preprocessor + //! directive) are styled. + //! + //! \sa setStylePreprocessor() + bool stylePreprocessor() const {return style_preproc;} + + //! If \a allowed is true then '$' characters are allowed in identifier + //! names. The default is true. + //! + //! \sa dollarsAllowed() + void setDollarsAllowed(bool allowed); + + //! Returns true if '$' characters are allowed in identifier names. + //! + //! \sa setDollarsAllowed() + bool dollarsAllowed() const {return dollars;} + + //! If \a enabled is true then triple quoted strings are highlighted. The + //! default is false. + //! + //! \sa highlightTripleQuotedStrings() + void setHighlightTripleQuotedStrings(bool enabled); + + //! Returns true if triple quoted strings should be highlighted. + //! + //! \sa setHighlightTripleQuotedStrings() + bool highlightTripleQuotedStrings() const {return highlight_triple;} + + //! If \a enabled is true then hash quoted strings are highlighted. The + //! default is false. + //! + //! \sa highlightHashQuotedStrings() + void setHighlightHashQuotedStrings(bool enabled); + + //! Returns true if hash quoted strings should be highlighted. + //! + //! \sa setHighlightHashQuotedStrings() + bool highlightHashQuotedStrings() const {return highlight_hash;} + +public slots: + //! If \a fold is true then "} else {" lines can be folded. The + //! default is false. + //! + //! \sa foldAtElse() + virtual void setFoldAtElse(bool fold); + + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then preprocessor blocks can be folded. The + //! default is true. + //! + //! \sa foldPreprocessor() + virtual void setFoldPreprocessor(bool fold); + + //! If \a style is true then preprocessor lines (after the preprocessor + //! directive) are styled. The default is false. + //! + //! \sa stylePreprocessor() + virtual void setStylePreprocessor(bool style); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setAtElseProp(); + void setCommentProp(); + void setCompactProp(); + void setPreprocProp(); + void setStylePreprocProp(); + void setDollarsProp(); + void setHighlightTripleProp(); + void setHighlightHashProp(); + + bool fold_atelse; + bool fold_comments; + bool fold_compact; + bool fold_preproc; + bool style_preproc; + bool dollars; + bool highlight_triple; + bool highlight_hash; + + bool nocase; + + QsciLexerCPP(const QsciLexerCPP &); + QsciLexerCPP &operator=(const QsciLexerCPP &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexercsharp.h b/Qt4Qt5/Qsci/qscilexercsharp.h new file mode 100644 index 0000000..7bed4fb --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexercsharp.h @@ -0,0 +1,90 @@ +// This defines the interface to the QsciLexerCSharp class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCSHARP_H +#define QSCILEXERCSHARP_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerCSharp class encapsulates the Scintilla C# +//! lexer. +class QSCINTILLA_EXPORT QsciLexerCSharp : public QsciLexerCPP +{ + Q_OBJECT + +public: + //! Construct a QsciLexerCSharp with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerCSharp(QObject *parent = 0); + + //! Destroys the QsciLexerCSharp instance. + virtual ~QsciLexerCSharp(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerCSharp(const QsciLexerCSharp &); + QsciLexerCSharp &operator=(const QsciLexerCSharp &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexercss.h b/Qt4Qt5/Qsci/qscilexercss.h new file mode 100644 index 0000000..8520d8a --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexercss.h @@ -0,0 +1,265 @@ +// This defines the interface to the QsciLexerCSS class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCSS_H +#define QSCILEXERCSS_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerCSS class encapsulates the Scintilla CSS lexer. +class QSCINTILLA_EXPORT QsciLexerCSS : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! CSS lexer. + enum { + //! The default. + Default = 0, + + //! A tag. + Tag = 1, + + //! A class selector. + ClassSelector = 2, + + //! A pseudo class. The list of pseudo classes is defined by keyword + //! set 2. + PseudoClass = 3, + + //! An unknown pseudo class. + UnknownPseudoClass = 4, + + //! An operator. + Operator = 5, + + //! A CSS1 property. The list of CSS1 properties is defined by keyword + //! set 1. + CSS1Property = 6, + + //! An unknown property. + UnknownProperty = 7, + + //! A value. + Value = 8, + + //! A comment. + Comment = 9, + + //! An ID selector. + IDSelector = 10, + + //! An important value. + Important = 11, + + //! An @-rule. + AtRule = 12, + + //! A double-quoted string. + DoubleQuotedString = 13, + + //! A single-quoted string. + SingleQuotedString = 14, + + //! A CSS2 property. The list of CSS2 properties is defined by keyword + //! set 3. + CSS2Property = 15, + + //! An attribute. + Attribute = 16, + + //! A CSS3 property. The list of CSS3 properties is defined by keyword + //! set 4. + CSS3Property = 17, + + //! A pseudo element. The list of pseudo elements is defined by + //! keyword set 5. + PseudoElement = 18, + + //! An extended (browser specific) CSS property. The list of extended + //! CSS properties is defined by keyword set 6. + ExtendedCSSProperty = 19, + + //! An extended (browser specific) pseudo class. The list of extended + //! pseudo classes is defined by keyword set 7. + ExtendedPseudoClass = 20, + + //! An extended (browser specific) pseudo element. The list of + //! extended pseudo elements is defined by keyword set 8. + ExtendedPseudoElement = 21, + + //! A media rule. + MediaRule = 22, + + //! A variable. + Variable = 23, + }; + + //! Construct a QsciLexerCSS with parent \a parent. \a parent is typically + //! the QsciScintilla instance. + QsciLexerCSS(QObject *parent = 0); + + //! Destroys the QsciLexerCSS instance. + virtual ~QsciLexerCSS(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! If \a enabled is true then support for HSS is enabled. The default is + //! false. + //! + //! \sa HSSLanguage() + void setHSSLanguage(bool enabled); + + //! Returns true if support for HSS is enabled. + //! + //! \sa setHSSLanguage() + bool HSSLanguage() const {return hss_language;} + + //! If \a enabled is true then support for Less CSS is enabled. The + //! default is false. + //! + //! \sa LessLanguage() + void setLessLanguage(bool enabled); + + //! Returns true if support for Less CSS is enabled. + //! + //! \sa setLessLanguage() + bool LessLanguage() const {return less_language;} + + //! If \a enabled is true then support for Sassy CSS is enabled. The + //! default is false. + //! + //! \sa SCSSLanguage() + void setSCSSLanguage(bool enabled); + + //! Returns true if support for Sassy CSS is enabled. + //! + //! \sa setSCSSLanguage() + bool SCSSLanguage() const {return scss_language;} + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setHSSProp(); + void setLessProp(); + void setSCSSProp(); + + bool fold_comments; + bool fold_compact; + bool hss_language; + bool less_language; + bool scss_language; + + QsciLexerCSS(const QsciLexerCSS &); + QsciLexerCSS &operator=(const QsciLexerCSS &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexercustom.h b/Qt4Qt5/Qsci/qscilexercustom.h new file mode 100644 index 0000000..ed96946 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexercustom.h @@ -0,0 +1,116 @@ +// This defines the interface to the QsciLexerCustom class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERCUSTOM_H +#define QSCILEXERCUSTOM_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include + + +class QsciScintilla; +class QsciStyle; + + +//! \brief The QsciLexerCustom class is an abstract class used as a base for +//! new language lexers. +//! +//! The advantage of implementing a new lexer this way (as opposed to adding +//! the lexer to the underlying Scintilla code) is that it does not require the +//! QScintilla library to be re-compiled. It also makes it possible to +//! integrate external lexers. +//! +//! All that is necessary to implement a new lexer is to define appropriate +//! styles and to re-implement the styleText() method. +class QSCINTILLA_EXPORT QsciLexerCustom : public QsciLexer +{ + Q_OBJECT + +public: + //! Construct a QsciLexerCustom with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerCustom(QObject *parent = 0); + + //! Destroy the QSciLexerCustom. + virtual ~QsciLexerCustom(); + + //! The next \a length characters starting from the current styling + //! position have their style set to style number \a style. The current + //! styling position is moved. The styling position is initially set by + //! calling startStyling(). + //! + //! \sa startStyling(), styleText() + void setStyling(int length, int style); + + //! The next \a length characters starting from the current styling + //! position have their style set to style \a style. The current styling + //! position is moved. The styling position is initially set by calling + //! startStyling(). + //! + //! \sa startStyling(), styleText() + void setStyling(int length, const QsciStyle &style); + + //! The styling position is set to \a start and the mask of style bits that + //! can be set is set to \a styleBits. \a styleBits allows the styling of + //! text to be done over several passes by setting different style bits on + //! each pass. If \a styleBits is 0 then all style bits (as returned by + //! styleBitsNeeded()) are set. + //! + //! \sa setStyling(), styleBitsNeeded(), styleText() + void startStyling(int pos, int styleBits = 0); + + //! This is called when the section of text beginning at position \a start + //! and up to position \a end needs to be styled. \a start will always be + //! at the start of a line. The text is styled by calling startStyling() + //! followed by one or more calls to setStyling(). It must be + //! re-implemented by a sub-class. + //! + //! \sa setStyling(), startStyling() + virtual void styleText(int start, int end) = 0; + + //! \reimp + virtual void setEditor(QsciScintilla *editor); + + //! \reimp This re-implementation returns 5 as the number of style bits + //! needed. + virtual int styleBitsNeeded() const; + +private slots: + void handleStyleNeeded(int pos); + +private: + QsciLexerCustom(const QsciLexerCustom &); + QsciLexerCustom &operator=(const QsciLexerCustom &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerd.h b/Qt4Qt5/Qsci/qscilexerd.h new file mode 100644 index 0000000..0fa1096 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerd.h @@ -0,0 +1,255 @@ +// This defines the interface to the QsciLexerD class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERD_H +#define QSCILEXERD_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerD class encapsulates the Scintilla D lexer. +class QSCINTILLA_EXPORT QsciLexerD : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the D + //! lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A comment line. + CommentLine = 2, + + //! A JavaDoc and Doxygen comment. + CommentDoc = 3, + + //! A nested comment. + CommentNested = 4, + + //! A number. + Number = 5, + + //! A keyword. + Keyword = 6, + + //! A secondary keyword. + KeywordSecondary = 7, + + //! A doc keyword + KeywordDoc = 8, + + //! Typedefs and aliases + Typedefs = 9, + + //! A string. + String = 10, + + //! The end of a line where a string is not closed. + UnclosedString = 11, + + //! A character + Character = 12, + + //! An operator. + Operator = 13, + + //! An identifier + Identifier = 14, + + //! A JavaDoc and Doxygen line. + CommentLineDoc = 15, + + //! A JavaDoc and Doxygen keyword. + CommentDocKeyword = 16, + + //! A JavaDoc and Doxygen keyword error. + CommentDocKeywordError = 17, + + //! A backquoted string. + BackquoteString = 18, + + //! A raw, hexadecimal or delimited string. + RawString = 19, + + //! A keyword defined in keyword set number 5. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet5 = 20, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet6 = 21, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet7 = 22, + }; + + //! Construct a QsciLexerD with parent \a parent. \a parent is typically + //! the QsciScintilla instance. + QsciLexerD(QObject *parent = 0); + + //! Destroys the QsciLexerD instance. + virtual ~QsciLexerD(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in a + //! particular style that define the end of a block for auto-indentation. + //! The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in a + //! particular style that define the start of a block for auto-indentation. + //! The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a particular + //! style that define the start of a block for auto-indentation. The + //! styles is returned via \a style. + const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised by + //! the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the style + //! is invalid for this language then an empty QString is returned. This + //! is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if "} else {" lines can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const; + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then "} else {" lines can be folded. The default is + //! false. + //! + //! \sa foldAtElse() + virtual void setFoldAtElse(bool fold); + + //! If \a fold is true then multi-line comment blocks can be folded. The + //! default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setAtElseProp(); + void setCommentProp(); + void setCompactProp(); + + bool fold_atelse; + bool fold_comments; + bool fold_compact; + + QsciLexerD(const QsciLexerD &); + QsciLexerD &operator=(const QsciLexerD &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerdiff.h b/Qt4Qt5/Qsci/qscilexerdiff.h new file mode 100644 index 0000000..7085f53 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerdiff.h @@ -0,0 +1,108 @@ +// This defines the interface to the QsciLexerDiff class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERDIFF_H +#define QSCILEXERDIFF_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerDiff class encapsulates the Scintilla Diff +//! lexer. +class QSCINTILLA_EXPORT QsciLexerDiff : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Diff lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A command. + Command = 2, + + //! A header. + Header = 3, + + //! A position. + Position = 4, + + //! A removed line. + LineRemoved = 5, + + //! An added line. + LineAdded = 6, + + //! A changed line. + LineChanged = 7 + }; + + //! Construct a QsciLexerDiff with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerDiff(QObject *parent = 0); + + //! Destroys the QsciLexerDiff instance. + virtual ~QsciLexerDiff(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + QColor defaultColor(int style) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerDiff(const QsciLexerDiff &); + QsciLexerDiff &operator=(const QsciLexerDiff &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerfortran.h b/Qt4Qt5/Qsci/qscilexerfortran.h new file mode 100644 index 0000000..e9ced3a --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerfortran.h @@ -0,0 +1,72 @@ +// This defines the interface to the QsciLexerFortran class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERFORTRAN_H +#define QSCILEXERFORTRAN_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerFortran class encapsulates the Scintilla Fortran lexer. +class QSCINTILLA_EXPORT QsciLexerFortran : public QsciLexerFortran77 +{ + Q_OBJECT + +public: + //! Construct a QsciLexerFortran with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerFortran(QObject *parent = 0); + + //! Destroys the QsciLexerFortran instance. + virtual ~QsciLexerFortran(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + +private: + QsciLexerFortran(const QsciLexerFortran &); + QsciLexerFortran &operator=(const QsciLexerFortran &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerfortran77.h b/Qt4Qt5/Qsci/qscilexerfortran77.h new file mode 100644 index 0000000..55d667a --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerfortran77.h @@ -0,0 +1,181 @@ +// This defines the interface to the QsciLexerFortran77 class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERFORTRAN77_H +#define QSCILEXERFORTRAN77_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerFortran77 class encapsulates the Scintilla Fortran77 +//! lexer. +class QSCINTILLA_EXPORT QsciLexerFortran77 : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Fortran77 lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A number. + Number = 2, + + //! A single-quoted string. + SingleQuotedString = 3, + + //! A double-quoted string. + DoubleQuotedString = 4, + + //! The end of a line where a string is not closed. + UnclosedString = 5, + + //! An operator. + Operator = 6, + + //! An identifier + Identifier = 7, + + //! A keyword. + Keyword = 8, + + //! An intrinsic function. + IntrinsicFunction = 9, + + //! An extended, non-standard or user defined function. + ExtendedFunction = 10, + + //! A pre-processor block. + PreProcessor = 11, + + //! An operator in .NAME. format. + DottedOperator = 12, + + //! A label. + Label = 13, + + //! A continuation. + Continuation = 14 + }; + + //! Construct a QsciLexerFortran77 with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerFortran77(QObject *parent = 0); + + //! Destroys the QsciLexerFortran77 instance. + virtual ~QsciLexerFortran77(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCompactProp(); + + bool fold_compact; + + QsciLexerFortran77(const QsciLexerFortran77 &); + QsciLexerFortran77 &operator=(const QsciLexerFortran77 &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerhtml.h b/Qt4Qt5/Qsci/qscilexerhtml.h new file mode 100644 index 0000000..4d93d4d --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerhtml.h @@ -0,0 +1,545 @@ +// This defines the interface to the QsciLexerHTML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERHTML_H +#define QSCILEXERHTML_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerHTML class encapsulates the Scintilla HTML lexer. +class QSCINTILLA_EXPORT QsciLexerHTML : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! HTML lexer. + enum { + //! The default. + Default = 0, + + //! A tag. + Tag = 1, + + //! An unknown tag. + UnknownTag = 2, + + //! An attribute. + Attribute = 3, + + //! An unknown attribute. + UnknownAttribute = 4, + + //! An HTML number. + HTMLNumber = 5, + + //! An HTML double-quoted string. + HTMLDoubleQuotedString = 6, + + //! An HTML single-quoted string. + HTMLSingleQuotedString = 7, + + //! Other text within a tag. + OtherInTag = 8, + + //! An HTML comment. + HTMLComment = 9, + + //! An entity. + Entity = 10, + + //! The end of an XML style tag. + XMLTagEnd = 11, + + //! The start of an XML fragment. + XMLStart = 12, + + //! The end of an XML fragment. + XMLEnd = 13, + + //! A script tag. + Script = 14, + + //! The start of an ASP fragment with @. + ASPAtStart = 15, + + //! The start of an ASP fragment. + ASPStart = 16, + + //! CDATA. + CDATA = 17, + + //! The start of a PHP fragment. + PHPStart = 18, + + //! An unquoted HTML value. + HTMLValue = 19, + + //! An ASP X-Code comment. + ASPXCComment = 20, + + //! The default for SGML. + SGMLDefault = 21, + + //! An SGML command. + SGMLCommand = 22, + + //! The first parameter of an SGML command. + SGMLParameter = 23, + + //! An SGML double-quoted string. + SGMLDoubleQuotedString = 24, + + //! An SGML single-quoted string. + SGMLSingleQuotedString = 25, + + //! An SGML error. + SGMLError = 26, + + //! An SGML special entity. + SGMLSpecial = 27, + + //! An SGML entity. + SGMLEntity = 28, + + //! An SGML comment. + SGMLComment = 29, + + //! A comment with the first parameter of an SGML command. + SGMLParameterComment = 30, + + //! The default for an SGML block. + SGMLBlockDefault = 31, + + //! The start of a JavaScript fragment. + JavaScriptStart = 40, + + //! The default for JavaScript. + JavaScriptDefault = 41, + + //! A JavaScript comment. + JavaScriptComment = 42, + + //! A JavaScript line comment. + JavaScriptCommentLine = 43, + + //! A JavaDoc style JavaScript comment. + JavaScriptCommentDoc = 44, + + //! A JavaScript number. + JavaScriptNumber = 45, + + //! A JavaScript word. + JavaScriptWord = 46, + + //! A JavaScript keyword. + JavaScriptKeyword = 47, + + //! A JavaScript double-quoted string. + JavaScriptDoubleQuotedString = 48, + + //! A JavaScript single-quoted string. + JavaScriptSingleQuotedString = 49, + + //! A JavaScript symbol. + JavaScriptSymbol = 50, + + //! The end of a JavaScript line where a string is not closed. + JavaScriptUnclosedString = 51, + + //! A JavaScript regular expression. + JavaScriptRegex = 52, + + //! The start of an ASP JavaScript fragment. + ASPJavaScriptStart = 55, + + //! The default for ASP JavaScript. + ASPJavaScriptDefault = 56, + + //! An ASP JavaScript comment. + ASPJavaScriptComment = 57, + + //! An ASP JavaScript line comment. + ASPJavaScriptCommentLine = 58, + + //! An ASP JavaDoc style JavaScript comment. + ASPJavaScriptCommentDoc = 59, + + //! An ASP JavaScript number. + ASPJavaScriptNumber = 60, + + //! An ASP JavaScript word. + ASPJavaScriptWord = 61, + + //! An ASP JavaScript keyword. + ASPJavaScriptKeyword = 62, + + //! An ASP JavaScript double-quoted string. + ASPJavaScriptDoubleQuotedString = 63, + + //! An ASP JavaScript single-quoted string. + ASPJavaScriptSingleQuotedString = 64, + + //! An ASP JavaScript symbol. + ASPJavaScriptSymbol = 65, + + //! The end of an ASP JavaScript line where a string is not + //! closed. + ASPJavaScriptUnclosedString = 66, + + //! An ASP JavaScript regular expression. + ASPJavaScriptRegex = 67, + + //! The start of a VBScript fragment. + VBScriptStart = 70, + + //! The default for VBScript. + VBScriptDefault = 71, + + //! A VBScript comment. + VBScriptComment = 72, + + //! A VBScript number. + VBScriptNumber = 73, + + //! A VBScript keyword. + VBScriptKeyword = 74, + + //! A VBScript string. + VBScriptString = 75, + + //! A VBScript identifier. + VBScriptIdentifier = 76, + + //! The end of a VBScript line where a string is not closed. + VBScriptUnclosedString = 77, + + //! The start of an ASP VBScript fragment. + ASPVBScriptStart = 80, + + //! The default for ASP VBScript. + ASPVBScriptDefault = 81, + + //! An ASP VBScript comment. + ASPVBScriptComment = 82, + + //! An ASP VBScript number. + ASPVBScriptNumber = 83, + + //! An ASP VBScript keyword. + ASPVBScriptKeyword = 84, + + //! An ASP VBScript string. + ASPVBScriptString = 85, + + //! An ASP VBScript identifier. + ASPVBScriptIdentifier = 86, + + //! The end of an ASP VBScript line where a string is not + //! closed. + ASPVBScriptUnclosedString = 87, + + //! The start of a Python fragment. + PythonStart = 90, + + //! The default for Python. + PythonDefault = 91, + + //! A Python comment. + PythonComment = 92, + + //! A Python number. + PythonNumber = 93, + + //! A Python double-quoted string. + PythonDoubleQuotedString = 94, + + //! A Python single-quoted string. + PythonSingleQuotedString = 95, + + //! A Python keyword. + PythonKeyword = 96, + + //! A Python triple single-quoted string. + PythonTripleSingleQuotedString = 97, + + //! A Python triple double-quoted string. + PythonTripleDoubleQuotedString = 98, + + //! The name of a Python class. + PythonClassName = 99, + + //! The name of a Python function or method. + PythonFunctionMethodName = 100, + + //! A Python operator. + PythonOperator = 101, + + //! A Python identifier. + PythonIdentifier = 102, + + //! The start of an ASP Python fragment. + ASPPythonStart = 105, + + //! The default for ASP Python. + ASPPythonDefault = 106, + + //! An ASP Python comment. + ASPPythonComment = 107, + + //! An ASP Python number. + ASPPythonNumber = 108, + + //! An ASP Python double-quoted string. + ASPPythonDoubleQuotedString = 109, + + //! An ASP Python single-quoted string. + ASPPythonSingleQuotedString = 110, + + //! An ASP Python keyword. + ASPPythonKeyword = 111, + + //! An ASP Python triple single-quoted string. + ASPPythonTripleSingleQuotedString = 112, + + //! An ASP Python triple double-quoted string. + ASPPythonTripleDoubleQuotedString = 113, + + //! The name of an ASP Python class. + ASPPythonClassName = 114, + + //! The name of an ASP Python function or method. + ASPPythonFunctionMethodName = 115, + + //! An ASP Python operator. + ASPPythonOperator = 116, + + //! An ASP Python identifier + ASPPythonIdentifier = 117, + + //! The default for PHP. + PHPDefault = 118, + + //! A PHP double-quoted string. + PHPDoubleQuotedString = 119, + + //! A PHP single-quoted string. + PHPSingleQuotedString = 120, + + //! A PHP keyword. + PHPKeyword = 121, + + //! A PHP number. + PHPNumber = 122, + + //! A PHP variable. + PHPVariable = 123, + + //! A PHP comment. + PHPComment = 124, + + //! A PHP line comment. + PHPCommentLine = 125, + + //! A PHP double-quoted variable. + PHPDoubleQuotedVariable = 126, + + //! A PHP operator. + PHPOperator = 127 + }; + + //! Construct a QsciLexerHTML with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerHTML(QObject *parent = 0); + + //! Destroys the QsciLexerHTML instance. + virtual ~QsciLexerHTML(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the auto-completion fillup characters. + const char *autoCompletionFillups() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if tags are case sensitive. + //! + //! \sa setCaseSensitiveTags() + bool caseSensitiveTags() const {return case_sens_tags;} + + //! If \a enabled is true then Django templates are enabled. The default + //! is false. + //! + //! \sa djangoTemplates() + void setDjangoTemplates(bool enabled); + + //! Returns true if support for Django templates is enabled. + //! + //! \sa setDjangoTemplates() + bool djangoTemplates() const {return django_templates;} + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! Returns true if preprocessor blocks can be folded. + //! + //! \sa setFoldPreprocessor() + bool foldPreprocessor() const {return fold_preproc;} + + //! If \a fold is true then script comments can be folded. The default is + //! false. + //! + //! \sa foldScriptComments() + void setFoldScriptComments(bool fold); + + //! Returns true if script comments can be folded. + //! + //! \sa setFoldScriptComments() + bool foldScriptComments() const {return fold_script_comments;} + + //! If \a fold is true then script heredocs can be folded. The default is + //! false. + //! + //! \sa foldScriptHeredocs() + void setFoldScriptHeredocs(bool fold); + + //! Returns true if script heredocs can be folded. + //! + //! \sa setFoldScriptHeredocs() + bool foldScriptHeredocs() const {return fold_script_heredocs;} + + //! If \a enabled is true then Mako templates are enabled. The default is + //! false. + //! + //! \sa makoTemplates() + void setMakoTemplates(bool enabled); + + //! Returns true if support for Mako templates is enabled. + //! + //! \sa setMakoTemplates() + bool makoTemplates() const {return mako_templates;} + +public slots: + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then preprocessor blocks can be folded. The + //! default is false. + //! + //! \sa foldPreprocessor() + virtual void setFoldPreprocessor(bool fold); + + //! If \a sens is true then tags are case sensitive. The default is false. + //! + //! \sa caseSensitiveTags() + virtual void setCaseSensitiveTags(bool sens); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCompactProp(); + void setPreprocProp(); + void setCaseSensTagsProp(); + void setScriptCommentsProp(); + void setScriptHeredocsProp(); + void setDjangoProp(); + void setMakoProp(); + + bool fold_compact; + bool fold_preproc; + bool case_sens_tags; + bool fold_script_comments; + bool fold_script_heredocs; + bool django_templates; + bool mako_templates; + + QsciLexerHTML(const QsciLexerHTML &); + QsciLexerHTML &operator=(const QsciLexerHTML &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexeridl.h b/Qt4Qt5/Qsci/qscilexeridl.h new file mode 100644 index 0000000..ea1e0ad --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexeridl.h @@ -0,0 +1,77 @@ +// This defines the interface to the QsciLexerIDL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERIDL_H +#define QSCILEXERIDL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerIDL class encapsulates the Scintilla IDL +//! lexer. +class QSCINTILLA_EXPORT QsciLexerIDL : public QsciLexerCPP +{ + Q_OBJECT + +public: + //! Construct a QsciLexerIDL with parent \a parent. \a parent is typically + //! the QsciScintilla instance. + QsciLexerIDL(QObject *parent = 0); + + //! Destroys the QsciLexerIDL instance. + virtual ~QsciLexerIDL(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the foreground colour of the text for style number \a style. + QColor defaultColor(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerIDL(const QsciLexerIDL &); + QsciLexerIDL &operator=(const QsciLexerIDL &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerjava.h b/Qt4Qt5/Qsci/qscilexerjava.h new file mode 100644 index 0000000..4ac1ce0 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerjava.h @@ -0,0 +1,68 @@ +// This defines the interface to the QsciLexerJava class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERJAVA_H +#define QSCILEXERJAVA_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerJava class encapsulates the Scintilla Java lexer. +class QSCINTILLA_EXPORT QsciLexerJava : public QsciLexerCPP +{ + Q_OBJECT + +public: + //! Construct a QsciLexerJava with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerJava(QObject *parent = 0); + + //! Destroys the QsciLexerJava instance. + virtual ~QsciLexerJava(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + +private: + QsciLexerJava(const QsciLexerJava &); + QsciLexerJava &operator=(const QsciLexerJava &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerjavascript.h b/Qt4Qt5/Qsci/qscilexerjavascript.h new file mode 100644 index 0000000..a3319af --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerjavascript.h @@ -0,0 +1,94 @@ +// This defines the interface to the QsciLexerJavaScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERJSCRIPT_H +#define QSCILEXERJSCRIPT_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerJavaScript class encapsulates the Scintilla JavaScript +//! lexer. +class QSCINTILLA_EXPORT QsciLexerJavaScript : public QsciLexerCPP +{ + Q_OBJECT + +public: + //! Construct a QsciLexerJavaScript with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerJavaScript(QObject *parent = 0); + + //! Destroys the QsciLexerJavaScript instance. + virtual ~QsciLexerJavaScript(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + friend class QsciLexerHTML; + + static const char *keywordClass; + + QsciLexerJavaScript(const QsciLexerJavaScript &); + QsciLexerJavaScript &operator=(const QsciLexerJavaScript &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerlua.h b/Qt4Qt5/Qsci/qscilexerlua.h new file mode 100644 index 0000000..a251b9f --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerlua.h @@ -0,0 +1,207 @@ +// This defines the interface to the QsciLexerLua class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERLUA_H +#define QSCILEXERLUA_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerLua class encapsulates the Scintilla Lua +//! lexer. +class QSCINTILLA_EXPORT QsciLexerLua : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Lua lexer. + enum { + //! The default. + Default = 0, + + //! A block comment. + Comment = 1, + + //! A line comment. + LineComment = 2, + + //! A number. + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A string. + String = 6, + + //! A character. + Character = 7, + + //! A literal string. + LiteralString = 8, + + //! Preprocessor + Preprocessor = 9, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! The end of a line where a string is not closed. + UnclosedString = 12, + + //! Basic functions. + BasicFunctions = 13, + + //! String, table and maths functions. + StringTableMathsFunctions = 14, + + //! Coroutines, I/O and system facilities. + CoroutinesIOSystemFacilities = 15, + + //! A keyword defined in keyword set number 5. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet5 = 16, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet6 = 17, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet7 = 18, + + //! A keyword defined in keyword set number 8. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet8 = 19, + + //! A label. + Label = 20 + }; + + //! Construct a QsciLexerLua with parent \a parent. \a parent is typically + //! the QsciScintilla instance. + QsciLexerLua(QObject *parent = 0); + + //! Destroys the QsciLexerLua instance. + virtual ~QsciLexerLua(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCompactProp(); + + bool fold_compact; + + QsciLexerLua(const QsciLexerLua &); + QsciLexerLua &operator=(const QsciLexerLua &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexermakefile.h b/Qt4Qt5/Qsci/qscilexermakefile.h new file mode 100644 index 0000000..566d8ef --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexermakefile.h @@ -0,0 +1,118 @@ +// This defines the interface to the QsciLexerMakefile class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERMAKEFILE_H +#define QSCILEXERMAKEFILE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerMakefile class encapsulates the Scintilla +//! Makefile lexer. +class QSCINTILLA_EXPORT QsciLexerMakefile : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Makefile lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A pre-processor directive. + Preprocessor = 2, + + //! A variable. + Variable = 3, + + //! An operator. + Operator = 4, + + //! A target. + Target = 5, + + //! An error. + Error = 9 + }; + + //! Construct a QsciLexerMakefile with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerMakefile(QObject *parent = 0); + + //! Destroys the QsciLexerMakefile instance. + virtual ~QsciLexerMakefile(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerMakefile(const QsciLexerMakefile &); + QsciLexerMakefile &operator=(const QsciLexerMakefile &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexermatlab.h b/Qt4Qt5/Qsci/qscilexermatlab.h new file mode 100644 index 0000000..ec6fe63 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexermatlab.h @@ -0,0 +1,117 @@ +// This defines the interface to the QsciLexerMatlab class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERMATLAB_H +#define QSCILEXERMATLAB_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerMatlab class encapsulates the Scintilla Matlab file +//! lexer. +class QSCINTILLA_EXPORT QsciLexerMatlab : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Matlab file lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A command. + Command = 2, + + //! A number. + Number = 3, + + //! A keyword. + Keyword = 4, + + //! A single quoted string. + SingleQuotedString = 5, + + //! An operator + Operator = 6, + + //! An identifier. + Identifier = 7, + + //! A double quoted string. + DoubleQuotedString = 8 + }; + + //! Construct a QsciLexerMatlab with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerMatlab(QObject *parent = 0); + + //! Destroys the QsciLexerMatlab instance. + virtual ~QsciLexerMatlab(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerMatlab(const QsciLexerMatlab &); + QsciLexerMatlab &operator=(const QsciLexerMatlab &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexeroctave.h b/Qt4Qt5/Qsci/qscilexeroctave.h new file mode 100644 index 0000000..8dfac18 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexeroctave.h @@ -0,0 +1,73 @@ +// This defines the interface to the QsciLexerOctave class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXEROCTAVE_H +#define QSCILEXEROCTAVE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerOctave class encapsulates the Scintilla Octave file +//! lexer. +class QSCINTILLA_EXPORT QsciLexerOctave : public QsciLexerMatlab +{ + Q_OBJECT + +public: + //! Construct a QsciLexerOctave with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerOctave(QObject *parent = 0); + + //! Destroys the QsciLexerOctave instance. + virtual ~QsciLexerOctave(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + +private: + QsciLexerOctave(const QsciLexerOctave &); + QsciLexerOctave &operator=(const QsciLexerOctave &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerpascal.h b/Qt4Qt5/Qsci/qscilexerpascal.h new file mode 100644 index 0000000..91179a8 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerpascal.h @@ -0,0 +1,240 @@ +// This defines the interface to the QsciLexerPascal class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPASCAL_H +#define QSCILEXERPASCAL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerPascal class encapsulates the Scintilla Pascal lexer. +class QSCINTILLA_EXPORT QsciLexerPascal : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! C++ lexer. + enum { + //! The default. + Default = 0, + + //! An identifier + Identifier = 1, + + //! A '{ ... }' style comment. + Comment = 2, + + //! A '(* ... *)' style comment. + CommentParenthesis = 3, + + //! A comment line. + CommentLine = 4, + + //! A '{$ ... }' style pre-processor block. + PreProcessor = 5, + + //! A '(*$ ... *)' style pre-processor block. + PreProcessorParenthesis = 6, + + //! A number. + Number = 7, + + //! A hexadecimal number. + HexNumber = 8, + + //! A keyword. + Keyword = 9, + + //! A single-quoted string. + SingleQuotedString = 10, + + //! The end of a line where a string is not closed. + UnclosedString = 11, + + //! A character. + Character = 12, + + //! An operator. + Operator = 13, + + //! Inline Asm. + Asm = 14 + }; + + //! Construct a QsciLexerPascal with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerPascal(QObject *parent = 0); + + //! Destroys the QsciLexerPascal instance. + virtual ~QsciLexerPascal(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a + //! particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! Returns true if preprocessor blocks can be folded. + //! + //! \sa setFoldPreprocessor() + bool foldPreprocessor() const; + + //! If \a enabled is true then some keywords will only be highlighted in an + //! appropriate context (similar to how the Delphi IDE works). The default + //! is true. + //! + //! \sa smartHighlighting() + void setSmartHighlighting(bool enabled); + + //! Returns true if some keywords will only be highlighted in an + //! appropriate context (similar to how the Delphi IDE works). + //! + //! \sa setSmartHighlighting() + bool smartHighlighting() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then preprocessor blocks can be folded. The + //! default is true. + //! + //! \sa foldPreprocessor() + virtual void setFoldPreprocessor(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setPreprocProp(); + void setSmartHighlightProp(); + + bool fold_comments; + bool fold_compact; + bool fold_preproc; + bool smart_highlight; + + QsciLexerPascal(const QsciLexerPascal &); + QsciLexerPascal &operator=(const QsciLexerPascal &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerperl.h b/Qt4Qt5/Qsci/qscilexerperl.h new file mode 100644 index 0000000..676169d --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerperl.h @@ -0,0 +1,325 @@ +// This defines the interface to the QsciLexerPerl class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPERL_H +#define QSCILEXERPERL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerPerl class encapsulates the Scintilla Perl +//! lexer. +class QSCINTILLA_EXPORT QsciLexerPerl : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Perl lexer. + enum { + //! The default. + Default = 0, + + //! An error. + Error = 1, + + //! A comment. + Comment = 2, + + //! A POD. + POD = 3, + + //! A number. + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A double-quoted string. + DoubleQuotedString = 6, + + //! A single-quoted string. + SingleQuotedString = 7, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! A scalar. + Scalar = 12, + + //! An array. + Array = 13, + + //! A hash. + Hash = 14, + + //! A symbol table. + SymbolTable = 15, + + //! A regular expression. + Regex = 17, + + //! A substitution. + Substitution = 18, + + //! Backticks. + Backticks = 20, + + //! A data section. + DataSection = 21, + + //! A here document delimiter. + HereDocumentDelimiter = 22, + + //! A single quoted here document. + SingleQuotedHereDocument = 23, + + //! A double quoted here document. + DoubleQuotedHereDocument = 24, + + //! A backtick here document. + BacktickHereDocument = 25, + + //! A quoted string (q). + QuotedStringQ = 26, + + //! A quoted string (qq). + QuotedStringQQ = 27, + + //! A quoted string (qx). + QuotedStringQX = 28, + + //! A quoted string (qr). + QuotedStringQR = 29, + + //! A quoted string (qw). + QuotedStringQW = 30, + + //! A verbatim POD. + PODVerbatim = 31, + + //! A Subroutine prototype. + SubroutinePrototype = 40, + + //! A format identifier. + FormatIdentifier = 41, + + //! A format body. + FormatBody = 42, + + //! A double-quoted string (interpolated variable). + DoubleQuotedStringVar = 43, + + //! A translation. + Translation = 44, + + //! A regular expression (interpolated variable). + RegexVar = 54, + + //! A substitution (interpolated variable). + SubstitutionVar = 55, + + //! Backticks (interpolated variable). + BackticksVar = 57, + + //! A double quoted here document (interpolated variable). + DoubleQuotedHereDocumentVar = 61, + + //! A backtick here document (interpolated variable). + BacktickHereDocumentVar = 62, + + //! A quoted string (qq, interpolated variable). + QuotedStringQQVar = 64, + + //! A quoted string (qx, interpolated variable). + QuotedStringQXVar = 65, + + //! A quoted string (qr, interpolated variable). + QuotedStringQRVar = 66 + }; + + //! Construct a QsciLexerPerl with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerPerl(QObject *parent = 0); + + //! Destroys the QsciLexerPerl instance. + virtual ~QsciLexerPerl(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number + //! \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a fold is true then "} else {" lines can be folded. The default is + //! false. + //! + //! \sa foldAtElse() + void setFoldAtElse(bool fold); + + //! Returns true if "} else {" lines can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const {return fold_atelse;} + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! If \a fold is true then packages can be folded. The default is true. + //! + //! \sa foldPackages() + void setFoldPackages(bool fold); + + //! Returns true if packages can be folded. + //! + //! \sa setFoldPackages() + bool foldPackages() const; + + //! If \a fold is true then POD blocks can be folded. The default is true. + //! + //! \sa foldPODBlocks() + void setFoldPODBlocks(bool fold); + + //! Returns true if POD blocks can be folded. + //! + //! \sa setFoldPODBlocks() + bool foldPODBlocks() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setAtElseProp(); + void setCommentProp(); + void setCompactProp(); + void setPackagesProp(); + void setPODBlocksProp(); + + bool fold_atelse; + bool fold_comments; + bool fold_compact; + bool fold_packages; + bool fold_pod_blocks; + + QsciLexerPerl(const QsciLexerPerl &); + QsciLexerPerl &operator=(const QsciLexerPerl &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerpo.h b/Qt4Qt5/Qsci/qscilexerpo.h new file mode 100644 index 0000000..2585bac --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerpo.h @@ -0,0 +1,176 @@ +// This defines the interface to the QsciLexerPO class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPO_H +#define QSCILEXERPO_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerPO class encapsulates the Scintilla PO lexer. +class QSCINTILLA_EXPORT QsciLexerPO : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! PO lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A message identifier. + MessageId = 2, + + //! The text of a message identifier. + MessageIdText = 3, + + //! A message string. + MessageString = 4, + + //! The text of a message string. + MessageStringText = 5, + + //! A message context. + MessageContext = 6, + + //! The text of a message context. + MessageContextText = 7, + + //! The "fuzzy" flag. + Fuzzy = 8, + + //! A programmer comment. + ProgrammerComment = 9, + + //! A reference. + Reference = 10, + + //! A flag. + Flags = 11, + + //! A message identifier text end-of-line. + MessageIdTextEOL = 12, + + //! A message string text end-of-line. + MessageStringTextEOL = 13, + + //! A message context text end-of-line. + MessageContextTextEOL = 14 + }; + + //! Construct a QsciLexerPO with parent \a parent. \a parent is typically + //! the QsciScintilla instance. + QsciLexerPO(QObject *parent = 0); + + //! Destroys the QsciLexerPO instance. + virtual ~QsciLexerPO(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + + bool fold_comments; + bool fold_compact; + + QsciLexerPO(const QsciLexerPO &); + QsciLexerPO &operator=(const QsciLexerPO &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerpostscript.h b/Qt4Qt5/Qsci/qscilexerpostscript.h new file mode 100644 index 0000000..da5efb8 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerpostscript.h @@ -0,0 +1,217 @@ +// This defines the interface to the QsciLexerPostScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPOSTSCRIPT_H +#define QSCILEXERPOSTSCRIPT_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerPostScript class encapsulates the Scintilla PostScript +//! lexer. +class QSCINTILLA_EXPORT QsciLexerPostScript : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! PostScript lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A DSC comment. + DSCComment = 2, + + //! A DSC comment value. + DSCCommentValue = 3, + + //! A number. + Number = 4, + + //! A name. + Name = 5, + + //! A keyword. + Keyword = 6, + + //! A literal. + Literal = 7, + + //! An immediately evaluated literal. + ImmediateEvalLiteral = 8, + + //! Array parenthesis. + ArrayParenthesis = 9, + + //! Dictionary parenthesis. + DictionaryParenthesis = 10, + + //! Procedure parenthesis. + ProcedureParenthesis = 11, + + //! Text. + Text = 12, + + //! A hexadecimal string. + HexString = 13, + + //! A base85 string. + Base85String = 14, + + //! A bad string character. + BadStringCharacter = 15 + }; + + //! Construct a QsciLexerPostScript with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerPostScript(QObject *parent = 0); + + //! Destroys the QsciLexerPostScript instance. + virtual ~QsciLexerPostScript(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. Set 5 can be used to provide + //! additional user defined keywords. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if tokens should be marked. + //! + //! \sa setTokenize() + bool tokenize() const; + + //! Returns the PostScript level. + //! + //! \sa setLevel() + int level() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! Returns true if else blocks can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const; + +public slots: + //! If \a tokenize is true then tokens are marked. The default is false. + //! + //! \sa tokenize() + virtual void setTokenize(bool tokenize); + + //! The PostScript level is set to \a level. The default is 3. + //! + //! \sa level() + virtual void setLevel(int level); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then else blocks can be folded. The default is + //! false. + //! + //! \sa foldAtElse() + virtual void setFoldAtElse(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setTokenizeProp(); + void setLevelProp(); + void setCompactProp(); + void setAtElseProp(); + + bool ps_tokenize; + int ps_level; + bool fold_compact; + bool fold_atelse; + + QsciLexerPostScript(const QsciLexerPostScript &); + QsciLexerPostScript &operator=(const QsciLexerPostScript &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerpov.h b/Qt4Qt5/Qsci/qscilexerpov.h new file mode 100644 index 0000000..7d8210f --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerpov.h @@ -0,0 +1,216 @@ +// This defines the interface to the QsciLexerPOV class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPOV_H +#define QSCILEXERPOV_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerPOV class encapsulates the Scintilla POV lexer. +class QSCINTILLA_EXPORT QsciLexerPOV : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! POV lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A comment line. + CommentLine = 2, + + //! A number. + Number = 3, + + //! An operator. + Operator = 4, + + //! An identifier + Identifier = 5, + + //! A string. + String = 6, + + //! The end of a line where a string is not closed. + UnclosedString = 7, + + //! A directive. + Directive = 8, + + //! A bad directive. + BadDirective = 9, + + //! Objects, CSG and appearance. + ObjectsCSGAppearance = 10, + + //! Types, modifiers and items. + TypesModifiersItems = 11, + + //! Predefined identifiers. + PredefinedIdentifiers = 12, + + //! Predefined identifiers. + PredefinedFunctions = 13, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet6 = 14, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet7 = 15, + + //! A keyword defined in keyword set number 8. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet8 = 16 + }; + + //! Construct a QsciLexerPOV with parent \a parent. \a parent is typically + //! the QsciScintilla instance. + QsciLexerPOV(QObject *parent = 0); + + //! Destroys the QsciLexerPOV instance. + virtual ~QsciLexerPOV(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! Returns true if directives can be folded. + //! + //! \sa setFoldDirectives() + bool foldDirectives() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then directives can be folded. The default is + //! false. + //! + //! \sa foldDirectives() + virtual void setFoldDirectives(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setDirectiveProp(); + + bool fold_comments; + bool fold_compact; + bool fold_directives; + + QsciLexerPOV(const QsciLexerPOV &); + QsciLexerPOV &operator=(const QsciLexerPOV &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerproperties.h b/Qt4Qt5/Qsci/qscilexerproperties.h new file mode 100644 index 0000000..ccef5a5 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerproperties.h @@ -0,0 +1,163 @@ +// This defines the interface to the QsciLexerProperties class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPROPERTIES_H +#define QSCILEXERPROPERTIES_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerProperties class encapsulates the Scintilla +//! Properties lexer. +class QSCINTILLA_EXPORT QsciLexerProperties : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Properties lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A section. + Section = 2, + + //! An assignment operator. + Assignment = 3, + + //! A default value. + DefaultValue = 4, + + //! A key. + Key = 5 + }; + + //! Construct a QsciLexerProperties with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerProperties(QObject *parent = 0); + + //! Destroys the QsciLexerProperties instance. + virtual ~QsciLexerProperties(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the descriptive name for style number \a style. If the style + //! is invalid for this language then an empty QString is returned. This + //! is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! If \a enable is true then initial spaces in a line are allowed. The + //! default is true. + //! + //! \sa initialSpaces() + void setInitialSpaces(bool enable); + + //! Returns true if initial spaces in a line are allowed. + //! + //! \sa setInitialSpaces() + bool initialSpaces() const {return initial_spaces;} + +public slots: + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCompactProp(); + void setInitialSpacesProp(); + + bool fold_compact; + bool initial_spaces; + + QsciLexerProperties(const QsciLexerProperties &); + QsciLexerProperties &operator=(const QsciLexerProperties &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerpython.h b/Qt4Qt5/Qsci/qscilexerpython.h new file mode 100644 index 0000000..428b085 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerpython.h @@ -0,0 +1,334 @@ +// This defines the interface to the QsciLexerPython class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERPYTHON_H +#define QSCILEXERPYTHON_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include +#include "Qsci/qsciscintillabase.h" + + +//! \brief The QsciLexerPython class encapsulates the Scintilla Python lexer. +class QSCINTILLA_EXPORT QsciLexerPython : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Python lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A number. + Number = 2, + + //! A double-quoted string. + DoubleQuotedString = 3, + + //! A single-quoted string. + SingleQuotedString = 4, + + //! A keyword. + Keyword = 5, + + //! A triple single-quoted string. + TripleSingleQuotedString = 6, + + //! A triple double-quoted string. + TripleDoubleQuotedString = 7, + + //! The name of a class. + ClassName = 8, + + //! The name of a function or method. + FunctionMethodName = 9, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! A comment block. + CommentBlock = 12, + + //! The end of a line where a string is not closed. + UnclosedString = 13, + + //! A highlighted identifier. These are defined by keyword set + //! 2. Reimplement keywords() to define keyword set 2. + HighlightedIdentifier = 14, + + //! A decorator. + Decorator = 15 + }; + + //! This enum defines the different conditions that can cause + //! indentations to be displayed as being bad. + enum IndentationWarning { + //! Bad indentation is not displayed differently. + NoWarning = 0, + + //! The indentation is inconsistent when compared to the + //! previous line, ie. it is made up of a different combination + //! of tabs and/or spaces. + Inconsistent = 1, + + //! The indentation is made up of spaces followed by tabs. + TabsAfterSpaces = 2, + + //! The indentation contains spaces. + Spaces = 3, + + //! The indentation contains tabs. + Tabs = 4 + }; + + //! Construct a QsciLexerPython with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerPython(QObject *parent = 0); + + //! Destroys the QsciLexerPython instance. + virtual ~QsciLexerPython(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the character sequences that can separate + //! auto-completion words. + QStringList autoCompletionWordSeparators() const; + + //! \internal Returns the number of lines prior to the current one when + //! determining the scope of a block when auto-indenting. + int blockLookback() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! \internal Returns the view used for indentation guides. + virtual int indentationGuideView() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if indented comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + void setFoldCompact(bool fold); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! Returns true if triple quoted strings can be folded. + //! + //! \sa setFoldQuotes() + bool foldQuotes() const {return fold_quotes;} + + //! Returns the condition that will cause bad indentations to be + //! displayed. + //! + //! \sa setIndentationWarning() + QsciLexerPython::IndentationWarning indentationWarning() const {return indent_warn;} + + //! If \a enabled is true then sub-identifiers defined in keyword set 2 + //! will be highlighted. For example, if it is false and "open" is defined + //! in keyword set 2 then "foo.open" will not be highlighted. The default + //! is true. + //! + //! \sa highlightSubidentifiers() + void setHighlightSubidentifiers(bool enabled); + + //! Returns true if string literals are allowed to span newline characters. + //! + //! \sa setHighlightSubidentifiers() + bool highlightSubidentifiers() const {return highlight_subids;} + + //! If \a allowed is true then string literals are allowed to span newline + //! characters. The default is false. + //! + //! \sa stringsOverNewlineAllowed() + void setStringsOverNewlineAllowed(bool allowed); + + //! Returns true if string literals are allowed to span newline characters. + //! + //! \sa setStringsOverNewlineAllowed() + bool stringsOverNewlineAllowed() const {return strings_over_newline;} + + //! If \a allowed is true then Python v2 unicode string literals (e.g. + //! u"utf8") are allowed. The default is true. + //! + //! \sa v2UnicodeAllowed() + void setV2UnicodeAllowed(bool allowed); + + //! Returns true if Python v2 unicode string literals (e.g. u"utf8") are + //! allowed. + //! + //! \sa setV2UnicodeAllowed() + bool v2UnicodeAllowed() const {return v2_unicode;} + + //! If \a allowed is true then Python v3 binary and octal literals (e.g. + //! 0b1011, 0o712) are allowed. The default is true. + //! + //! \sa v3BinaryOctalAllowed() + void setV3BinaryOctalAllowed(bool allowed); + + //! Returns true if Python v3 binary and octal literals (e.g. 0b1011, + //! 0o712) are allowed. + //! + //! \sa setV3BinaryOctalAllowed() + bool v3BinaryOctalAllowed() const {return v3_binary_octal;} + + //! If \a allowed is true then Python v3 bytes string literals (e.g. + //! b"bytes") are allowed. The default is true. + //! + //! \sa v3BytesAllowed() + void setV3BytesAllowed(bool allowed); + + //! Returns true if Python v3 bytes string literals (e.g. b"bytes") are + //! allowed. + //! + //! \sa setV3BytesAllowed() + bool v3BytesAllowed() const {return v3_bytes;} + +public slots: + //! If \a fold is true then indented comment blocks can be folded. The + //! default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then triple quoted strings can be folded. The + //! default is false. + //! + //! \sa foldQuotes() + virtual void setFoldQuotes(bool fold); + + //! Sets the condition that will cause bad indentations to be + //! displayed. + //! + //! \sa indentationWarning() + virtual void setIndentationWarning(QsciLexerPython::IndentationWarning warn); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setQuotesProp(); + void setTabWhingeProp(); + void setStringsOverNewlineProp(); + void setV2UnicodeProp(); + void setV3BinaryOctalProp(); + void setV3BytesProp(); + void setHighlightSubidsProp(); + + bool fold_comments; + bool fold_compact; + bool fold_quotes; + IndentationWarning indent_warn; + bool strings_over_newline; + bool v2_unicode; + bool v3_binary_octal; + bool v3_bytes; + bool highlight_subids; + + friend class QsciLexerHTML; + + static const char *keywordClass; + + QsciLexerPython(const QsciLexerPython &); + QsciLexerPython &operator=(const QsciLexerPython &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerruby.h b/Qt4Qt5/Qsci/qscilexerruby.h new file mode 100644 index 0000000..74ef05c --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerruby.h @@ -0,0 +1,253 @@ +// This defines the interface to the QsciLexerRuby class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERRUBY_H +#define QSCILEXERRUBY_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerRuby class encapsulates the Scintilla Ruby lexer. +class QSCINTILLA_EXPORT QsciLexerRuby : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Ruby lexer. + enum { + //! The default. + Default = 0, + + //! An error. + Error = 1, + + //! A comment. + Comment = 2, + + //! A POD. + POD = 3, + + //! A number. + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A double-quoted string. + DoubleQuotedString = 6, + + //! A single-quoted string. + SingleQuotedString = 7, + + //! The name of a class. + ClassName = 8, + + //! The name of a function or method. + FunctionMethodName = 9, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! A regular expression. + Regex = 12, + + //! A global. + Global = 13, + + //! A symbol. + Symbol = 14, + + //! The name of a module. + ModuleName = 15, + + //! An instance variable. + InstanceVariable = 16, + + //! A class variable. + ClassVariable = 17, + + //! Backticks. + Backticks = 18, + + //! A data section. + DataSection = 19, + + //! A here document delimiter. + HereDocumentDelimiter = 20, + + //! A here document. + HereDocument = 21, + + //! A %q string. + PercentStringq = 24, + + //! A %Q string. + PercentStringQ = 25, + + //! A %x string. + PercentStringx = 26, + + //! A %r string. + PercentStringr = 27, + + //! A %w string. + PercentStringw = 28, + + //! A demoted keyword. + DemotedKeyword = 29, + + //! stdin. + Stdin = 30, + + //! stdout. + Stdout = 31, + + //! stderr. + Stderr = 40 + }; + + //! Construct a QsciLexerRuby with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerRuby(QObject *parent = 0); + + //! Destroys the QsciLexerRuby instance. + virtual ~QsciLexerRuby(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the end of a block for + //! auto-indentation. The style is returned via \a style. + const char *blockEnd(int *style = 0) const; + + //! \internal Returns a space separated list of words or characters in + //! a particular style that define the start of a block for + //! auto-indentation. The styles is returned via \a style. + const char *blockStart(int *style = 0) const; + + //! \internal Returns a space separated list of keywords in a + //! particular style that define the start of a block for + //! auto-indentation. The style is returned via \a style. + const char *blockStartKeyword(int *style = 0) const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultpaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the style + //! is invalid for this language then an empty QString is returned. This + //! is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + void setFoldComments(bool fold); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + void setFoldCompact(bool fold); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs, const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + + bool fold_comments; + bool fold_compact; + + QsciLexerRuby(const QsciLexerRuby &); + QsciLexerRuby &operator=(const QsciLexerRuby &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerspice.h b/Qt4Qt5/Qsci/qscilexerspice.h new file mode 100644 index 0000000..53c96a5 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerspice.h @@ -0,0 +1,119 @@ +// This defines the interface to the QsciLexerSpice class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERSPICE_H +#define QSCILEXERSPICE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerSpice class encapsulates the Scintilla Spice lexer. +class QSCINTILLA_EXPORT QsciLexerSpice : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Spice lexer. + enum { + //! The default. + Default = 0, + + //! An identifier. + Identifier = 1, + + //! A command. + Command = 2, + + //! A function. + Function = 3, + + //! A parameter. + Parameter = 4, + + //! A number. + Number = 5, + + //! A delimiter. + Delimiter = 6, + + //! A value. + Value = 7, + + //! A comment. + Comment = 8 + }; + + //! Construct a QsciLexerSpice with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerSpice(QObject *parent = 0); + + //! Destroys the QsciLexerSpice instance. + virtual ~QsciLexerSpice(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + +private: + QsciLexerSpice(const QsciLexerSpice &); + QsciLexerSpice &operator=(const QsciLexerSpice &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexersql.h b/Qt4Qt5/Qsci/qscilexersql.h new file mode 100644 index 0000000..9a2b829 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexersql.h @@ -0,0 +1,296 @@ +// This defines the interface to the QsciLexerSQL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERSQL_H +#define QSCILEXERSQL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerSQL class encapsulates the Scintilla SQL lexer. +class QSCINTILLA_EXPORT QsciLexerSQL : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! SQL lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A line comment. + CommentLine = 2, + + //! A JavaDoc/Doxygen style comment. + CommentDoc = 3, + + //! A number. + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A double-quoted string. + DoubleQuotedString = 6, + + //! A single-quoted string. + SingleQuotedString = 7, + + //! An SQL*Plus keyword. + PlusKeyword = 8, + + //! An SQL*Plus prompt. + PlusPrompt = 9, + + //! An operator. + Operator = 10, + + //! An identifier + Identifier = 11, + + //! An SQL*Plus comment. + PlusComment = 13, + + //! A '#' line comment. + CommentLineHash = 15, + + //! A JavaDoc/Doxygen keyword. + CommentDocKeyword = 17, + + //! A JavaDoc/Doxygen keyword error. + CommentDocKeywordError = 18, + + //! A keyword defined in keyword set number 5. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + //! Note that keywords must be defined using lower case. + KeywordSet5 = 19, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + //! Note that keywords must be defined using lower case. + KeywordSet6 = 20, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + //! Note that keywords must be defined using lower case. + KeywordSet7 = 21, + + //! A keyword defined in keyword set number 8. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + //! Note that keywords must be defined using lower case. + KeywordSet8 = 22, + + //! A quoted identifier. + QuotedIdentifier = 23 + }; + + //! Construct a QsciLexerSQL with parent \a parent. \a parent is typically + //! the QsciScintilla instance. + QsciLexerSQL(QObject *parent = 0); + + //! Destroys the QsciLexerSQL instance. + virtual ~QsciLexerSQL(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised by + //! the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the style + //! is invalid for this language then an empty QString is returned. This + //! is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! Returns true if backslash escapes are enabled. + //! + //! \sa setBackslashEscapes() + bool backslashEscapes() const {return backslash_escapes;} + + //! If \a enable is true then words may contain dots (i.e. periods or full + //! stops). The default is false. + //! + //! \sa dottedWords() + void setDottedWords(bool enable); + + //! Returns true if words may contain dots (i.e. periods or full stops). + //! + //! \sa setDottedWords() + bool dottedWords() const {return allow_dotted_word;} + + //! If \a fold is true then ELSE blocks can be folded. The default is + //! false. + //! + //! \sa foldAtElse() + void setFoldAtElse(bool fold); + + //! Returns true if ELSE blocks can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const {return at_else;} + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! If \a fold is true then only BEGIN blocks can be folded. The default + //! is false. + //! + //! \sa foldOnlyBegin() + void setFoldOnlyBegin(bool fold); + + //! Returns true if BEGIN blocks only can be folded. + //! + //! \sa setFoldOnlyBegin() + bool foldOnlyBegin() const {return only_begin;} + + //! If \a enable is true then '#' is used as a comment character. It is + //! typically enabled for MySQL and disabled for Oracle. The default is + //! false. + //! + //! \sa hashComments() + void setHashComments(bool enable); + + //! Returns true if '#' is used as a comment character. + //! + //! \sa setHashComments() + bool hashComments() const {return numbersign_comment;} + + //! If \a enable is true then quoted identifiers are enabled. The default + //! is false. + //! + //! \sa quotedIdentifiers() + void setQuotedIdentifiers(bool enable); + + //! Returns true if quoted identifiers are enabled. + //! + //! \sa setQuotedIdentifiers() + bool quotedIdentifiers() const {return backticks_identifier;} + +public slots: + //! If \a enable is true then backslash escapes are enabled. The + //! default is false. + //! + //! \sa backslashEscapes() + virtual void setBackslashEscapes(bool enable); + + //! If \a fold is true then multi-line comment blocks can be folded. The + //! default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs, const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + void setAtElseProp(); + void setCommentProp(); + void setCompactProp(); + void setOnlyBeginProp(); + void setBackticksIdentifierProp(); + void setNumbersignCommentProp(); + void setBackslashEscapesProp(); + void setAllowDottedWordProp(); + + bool at_else; + bool fold_comments; + bool fold_compact; + bool only_begin; + bool backticks_identifier; + bool numbersign_comment; + bool backslash_escapes; + bool allow_dotted_word; + + QsciLexerSQL(const QsciLexerSQL &); + QsciLexerSQL &operator=(const QsciLexerSQL &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexertcl.h b/Qt4Qt5/Qsci/qscilexertcl.h new file mode 100644 index 0000000..4e76153 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexertcl.h @@ -0,0 +1,202 @@ +// This defines the interface to the QsciLexerTCL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERTCL_H +#define QSCILEXERTCL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerTCL class encapsulates the Scintilla TCL lexer. +class QSCINTILLA_EXPORT QsciLexerTCL : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the TCL + //! lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A comment line. + CommentLine = 2, + + //! A number. + Number = 3, + + //! A quoted keyword. + QuotedKeyword = 4, + + //! A quoted string. + QuotedString = 5, + + //! An operator. + Operator = 6, + + //! An identifier + Identifier = 7, + + //! A substitution. + Substitution = 8, + + //! A substitution starting with a brace. + SubstitutionBrace = 9, + + //! A modifier. + Modifier = 10, + + //! Expand keyword (defined in keyword set number 5). + ExpandKeyword = 11, + + //! A TCL keyword (defined in keyword set number 1). + TCLKeyword = 12, + + //! A Tk keyword (defined in keyword set number 2). + TkKeyword = 13, + + //! An iTCL keyword (defined in keyword set number 3). + ITCLKeyword = 14, + + //! A Tk command (defined in keyword set number 4). + TkCommand = 15, + + //! A keyword defined in keyword set number 6. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet6 = 16, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet7 = 17, + + //! A keyword defined in keyword set number 8. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet8 = 18, + + //! A keyword defined in keyword set number 9. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet9 = 19, + + //! A comment box. + CommentBox = 20, + + //! A comment block. + CommentBlock = 21 + }; + + //! Construct a QsciLexerTCL with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerTCL(QObject *parent = 0); + + //! Destroys the QsciLexerTCL instance. + virtual ~QsciLexerTCL(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the style + //! is invalid for this language then an empty QString is returned. This + //! is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a fold is true then multi-line comment blocks can be folded. The + //! default is false. + //! + //! \sa foldComments() + void setFoldComments(bool fold); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + + bool fold_comments; + + QsciLexerTCL(const QsciLexerTCL &); + QsciLexerTCL &operator=(const QsciLexerTCL &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexertex.h b/Qt4Qt5/Qsci/qscilexertex.h new file mode 100644 index 0000000..963ae3b --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexertex.h @@ -0,0 +1,176 @@ +// This defines the interface to the QsciLexerTeX class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERTEX_H +#define QSCILEXERTEX_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerTeX class encapsulates the Scintilla TeX lexer. +class QSCINTILLA_EXPORT QsciLexerTeX : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! TeX lexer. + enum { + //! The default. + Default = 0, + + //! A special. + Special = 1, + + //! A group. + Group = 2, + + //! A symbol. + Symbol = 3, + + //! A command. + Command = 4, + + //! Text. + Text = 5 + }; + + //! Construct a QsciLexerTeX with parent \a parent. \a parent is typically + //! the QsciScintilla instance. + QsciLexerTeX(QObject *parent = 0); + + //! Destroys the QsciLexerTeX instance. + virtual ~QsciLexerTeX(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + QColor defaultColor(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a fold is true then multi-line comment blocks can be folded. The + //! default is false. + //! + //! \sa foldComments() + void setFoldComments(bool fold); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const {return fold_comments;} + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + void setFoldCompact(bool fold); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const {return fold_compact;} + + //! If \a enable is true then comments are processed as TeX source + //! otherwise they are ignored. The default is false. + //! + //! \sa processComments() + void setProcessComments(bool enable); + + //! Returns true if comments are processed as TeX source. + //! + //! \sa setProcessComments() + bool processComments() const {return process_comments;} + + //! If \a enable is true then \\if processed is processed as a + //! command. The default is true. + //! + //! \sa processIf() + void setProcessIf(bool enable); + + //! Returns true if \\if is processed as a command. + //! + //! \sa setProcessIf() + bool processIf() const {return process_if;} + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs, const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setProcessCommentsProp(); + void setAutoIfProp(); + + bool fold_comments; + bool fold_compact; + bool process_comments; + bool process_if; + + QsciLexerTeX(const QsciLexerTeX &); + QsciLexerTeX &operator=(const QsciLexerTeX &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerverilog.h b/Qt4Qt5/Qsci/qscilexerverilog.h new file mode 100644 index 0000000..0d5ae51 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerverilog.h @@ -0,0 +1,236 @@ +// This defines the interface to the QsciLexerVerilog class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERVERILOG_H +#define QSCILEXERVERILOG_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerVerilog class encapsulates the Scintilla Verilog +//! lexer. +class QSCINTILLA_EXPORT QsciLexerVerilog : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! Verilog lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A line comment. + CommentLine = 2, + + //! A bang comment. + CommentBang = 3, + + //! A number + Number = 4, + + //! A keyword. + Keyword = 5, + + //! A string. + String = 6, + + //! A keyword defined in keyword set number 2. The class must + //! be sub-classed and re-implement keywords() to make use of + //! this style. + KeywordSet2 = 7, + + //! A system task. + SystemTask = 8, + + //! A pre-processor block. + Preprocessor = 9, + + //! An operator. + Operator = 10, + + //! An identifier. + Identifier = 11, + + //! The end of a line where a string is not closed. + UnclosedString = 12, + + //! A keyword defined in keyword set number 4. The class must + //! be sub-classed and re-implement keywords() to make use of + //! this style. This set is intended to be used for user defined + //! identifiers and tasks. + UserKeywordSet = 19 + }; + + //! Construct a QsciLexerVerilog with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerVerilog(QObject *parent = 0); + + //! Destroys the QsciLexerVerilog instance. + virtual ~QsciLexerVerilog(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the string of characters that comprise a word. + const char *wordCharacters() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a fold is true then "} else {" lines can be folded. The + //! default is false. + //! + //! \sa foldAtElse() + void setFoldAtElse(bool fold); + + //! Returns true if "} else {" lines can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const; + + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + void setFoldComments(bool fold); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + void setFoldCompact(bool fold); + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! If \a fold is true then preprocessor blocks can be folded. The + //! default is true. + //! + //! \sa foldPreprocessor() + void setFoldPreprocessor(bool fold); + + //! Returns true if preprocessor blocks can be folded. + //! + //! \sa setFoldPreprocessor() + bool foldPreprocessor() const; + + //! If \a fold is true then modules can be folded. The default is false. + //! + //! \sa foldAtModule() + void setFoldAtModule(bool fold); + + //! Returns true if modules can be folded. + //! + //! \sa setFoldAtModule() + bool foldAtModule() const; + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + //! \sa writeProperties() + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + //! \sa readProperties() + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setAtElseProp(); + void setCommentProp(); + void setCompactProp(); + void setPreprocProp(); + void setAtModuleProp(); + + bool fold_atelse; + bool fold_comments; + bool fold_compact; + bool fold_preproc; + bool fold_atmodule; + + QsciLexerVerilog(const QsciLexerVerilog &); + QsciLexerVerilog &operator=(const QsciLexerVerilog &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexervhdl.h b/Qt4Qt5/Qsci/qscilexervhdl.h new file mode 100644 index 0000000..51e41b0 --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexervhdl.h @@ -0,0 +1,231 @@ +// This defines the interface to the QsciLexerVHDL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERVHDL_H +#define QSCILEXERVHDL_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerVHDL class encapsulates the Scintilla VHDL lexer. +class QSCINTILLA_EXPORT QsciLexerVHDL : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! VHDL lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! A comment line. + CommentLine = 2, + + //! A number. + Number = 3, + + //! A string. + String = 4, + + //! An operator. + Operator = 5, + + //! An identifier + Identifier = 6, + + //! The end of a line where a string is not closed. + UnclosedString = 7, + + //! A keyword. + Keyword = 8, + + //! A standard operator. + StandardOperator = 9, + + //! An attribute. + Attribute = 10, + + //! A standard function. + StandardFunction = 11, + + //! A standard package. + StandardPackage = 12, + + //! A standard type. + StandardType = 13, + + //! A keyword defined in keyword set number 7. The class must be + //! sub-classed and re-implement keywords() to make use of this style. + KeywordSet7 = 14 + }; + + //! Construct a QsciLexerVHDL with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerVHDL(QObject *parent = 0); + + //! Destroys the QsciLexerVHDL instance. + virtual ~QsciLexerVHDL(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! \internal Returns the style used for braces for brace matching. + int braceStyle() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + + //! Returns true if trailing blank lines are included in a fold block. + //! + //! \sa setFoldCompact() + bool foldCompact() const; + + //! Returns true if else blocks can be folded. + //! + //! \sa setFoldAtElse() + bool foldAtElse() const; + + //! Returns true if begin blocks can be folded. + //! + //! \sa setFoldAtBegin() + bool foldAtBegin() const; + + //! Returns true if blocks can be folded at a parenthesis. + //! + //! \sa setFoldAtParenthesis() + bool foldAtParenthesis() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is true. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + + //! If \a fold is true then trailing blank lines are included in a fold + //! block. The default is true. + //! + //! \sa foldCompact() + virtual void setFoldCompact(bool fold); + + //! If \a fold is true then else blocks can be folded. The default is + //! true. + //! + //! \sa foldAtElse() + virtual void setFoldAtElse(bool fold); + + //! If \a fold is true then begin blocks can be folded. The default is + //! true. + //! + //! \sa foldAtBegin() + virtual void setFoldAtBegin(bool fold); + + //! If \a fold is true then blocks can be folded at a parenthesis. The + //! default is true. + //! + //! \sa foldAtParenthesis() + virtual void setFoldAtParenthesis(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + void setCompactProp(); + void setAtElseProp(); + void setAtBeginProp(); + void setAtParenthProp(); + + bool fold_comments; + bool fold_compact; + bool fold_atelse; + bool fold_atbegin; + bool fold_atparenth; + + QsciLexerVHDL(const QsciLexerVHDL &); + QsciLexerVHDL &operator=(const QsciLexerVHDL &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexerxml.h b/Qt4Qt5/Qsci/qscilexerxml.h new file mode 100644 index 0000000..895564e --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexerxml.h @@ -0,0 +1,119 @@ +// This defines the interface to the QsciLexerXML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERXML_H +#define QSCILEXERXML_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerXML class encapsulates the Scintilla XML lexer. +class QSCINTILLA_EXPORT QsciLexerXML : public QsciLexerHTML +{ + Q_OBJECT + +public: + //! Construct a QsciLexerXML with parent \a parent. \a parent is typically + //! the QsciScintilla instance. + QsciLexerXML(QObject *parent = 0); + + //! Destroys the QsciLexerXML instance. + virtual ~QsciLexerXML(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Causes all properties to be refreshed by emitting the + //! propertyChanged() signal as required. + void refreshProperties(); + + //! If \a allowed is true then scripts are styled. The default is true. + //! + //! \sa scriptsStyled() + void setScriptsStyled(bool styled); + + //! Returns true if scripts are styled. + //! + //! \sa setScriptsStyled() + bool scriptsStyled() const; + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs, const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs, const QString &prefix) const; + +private: + void setScriptsProp(); + + bool scripts; + + QsciLexerXML(const QsciLexerXML &); + QsciLexerXML &operator=(const QsciLexerXML &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscilexeryaml.h b/Qt4Qt5/Qsci/qscilexeryaml.h new file mode 100644 index 0000000..b1981df --- /dev/null +++ b/Qt4Qt5/Qsci/qscilexeryaml.h @@ -0,0 +1,160 @@ +// This defines the interface to the QsciLexerYAML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCILEXERYAML_H +#define QSCILEXERYAML_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + + +//! \brief The QsciLexerYAML class encapsulates the Scintilla YAML lexer. +class QSCINTILLA_EXPORT QsciLexerYAML : public QsciLexer +{ + Q_OBJECT + +public: + //! This enum defines the meanings of the different styles used by the + //! YAML lexer. + enum { + //! The default. + Default = 0, + + //! A comment. + Comment = 1, + + //! An identifier. + Identifier = 2, + + //! A keyword + Keyword = 3, + + //! A number. + Number = 4, + + //! A reference. + Reference = 5, + + //! A document delimiter. + DocumentDelimiter = 6, + + //! A text block marker. + TextBlockMarker = 7, + + //! A syntax error marker. + SyntaxErrorMarker = 8, + + //! An operator. + Operator = 9 + }; + + //! Construct a QsciLexerYAML with parent \a parent. \a parent is + //! typically the QsciScintilla instance. + QsciLexerYAML(QObject *parent = 0); + + //! Destroys the QsciLexerYAML instance. + virtual ~QsciLexerYAML(); + + //! Returns the name of the language. + const char *language() const; + + //! Returns the name of the lexer. Some lexers support a number of + //! languages. + const char *lexer() const; + + //! Returns the foreground colour of the text for style number \a style. + //! + //! \sa defaultPaper() + QColor defaultColor(int style) const; + + //! Returns the end-of-line fill for style number \a style. + bool defaultEolFill(int style) const; + + //! Returns the font for style number \a style. + QFont defaultFont(int style) const; + + //! Returns the background colour of the text for style number \a style. + //! + //! \sa defaultColor() + QColor defaultPaper(int style) const; + + //! Returns the set of keywords for the keyword set \a set recognised + //! by the lexer as a space separated string. + const char *keywords(int set) const; + + //! Returns the descriptive name for style number \a style. If the + //! style is invalid for this language then an empty QString is returned. + //! This is intended to be used in user preference dialogs. + QString description(int style) const; + + //! Causes all properties to be refreshed by emitting the propertyChanged() + //! signal as required. + void refreshProperties(); + + //! Returns true if multi-line comment blocks can be folded. + //! + //! \sa setFoldComments() + bool foldComments() const; + +public slots: + //! If \a fold is true then multi-line comment blocks can be folded. + //! The default is false. + //! + //! \sa foldComments() + virtual void setFoldComments(bool fold); + +protected: + //! The lexer's properties are read from the settings \a qs. \a prefix + //! (which has a trailing '/') should be used as a prefix to the key of + //! each setting. true is returned if there is no error. + //! + bool readProperties(QSettings &qs,const QString &prefix); + + //! The lexer's properties are written to the settings \a qs. + //! \a prefix (which has a trailing '/') should be used as a prefix to + //! the key of each setting. true is returned if there is no error. + //! + bool writeProperties(QSettings &qs,const QString &prefix) const; + +private: + void setCommentProp(); + + bool fold_comments; + + QsciLexerYAML(const QsciLexerYAML &); + QsciLexerYAML &operator=(const QsciLexerYAML &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscimacro.h b/Qt4Qt5/Qsci/qscimacro.h new file mode 100644 index 0000000..e2ac02e --- /dev/null +++ b/Qt4Qt5/Qsci/qscimacro.h @@ -0,0 +1,112 @@ +// This defines the interface to the QsciMacro class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIMACRO_H +#define QSCIMACRO_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include + +#include + +#include + + +class QsciScintilla; + + +//! \brief The QsciMacro class represents a sequence of recordable editor +//! commands. +//! +//! Methods are provided to convert convert a macro to and from a textual +//! representation so that they can be easily written to and read from +//! permanent storage. +class QSCINTILLA_EXPORT QsciMacro : public QObject +{ + Q_OBJECT + +public: + //! Construct a QsciMacro with parent \a parent. + QsciMacro(QsciScintilla *parent); + + //! Construct a QsciMacro from the printable ASCII representation \a asc, + //! with parent \a parent. + QsciMacro(const QString &asc, QsciScintilla *parent); + + //! Destroy the QsciMacro instance. + virtual ~QsciMacro(); + + //! Clear the contents of the macro. + void clear(); + + //! Load the macro from the printable ASCII representation \a asc. Returns + //! true if there was no error. + //! + //! \sa save() + bool load(const QString &asc); + + //! Return a printable ASCII representation of the macro. It is guaranteed + //! that only printable ASCII characters are used and that double quote + //! characters will not be used. + //! + //! \sa load() + QString save() const; + +public slots: + //! Play the macro. + virtual void play(); + + //! Start recording user commands and add them to the macro. + virtual void startRecording(); + + //! Stop recording user commands. + virtual void endRecording(); + +private slots: + void record(unsigned int msg, unsigned long wParam, void *lParam); + +private: + struct Macro { + unsigned int msg; + unsigned long wParam; + QByteArray text; + }; + + QsciScintilla *qsci; + QList macro; + + QsciMacro(const QsciMacro &); + QsciMacro &operator=(const QsciMacro &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qsciprinter.h b/Qt4Qt5/Qsci/qsciprinter.h new file mode 100644 index 0000000..1c75ffa --- /dev/null +++ b/Qt4Qt5/Qsci/qsciprinter.h @@ -0,0 +1,125 @@ +// This module defines interface to the QsciPrinter class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCIPRINTER_H +#define QSCIPRINTER_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +// This is needed for Qt v5.0.0-alpha. +#if defined(B0) +#undef B0 +#endif + +#include + +#if !defined(QT_NO_PRINTER) + +#include +#include + + +QT_BEGIN_NAMESPACE +class QRect; +class QPainter; +QT_END_NAMESPACE + +class QsciScintillaBase; + + +//! \brief The QsciPrinter class is a sub-class of the Qt QPrinter class that +//! is able to print the text of a Scintilla document. +//! +//! The class can be further sub-classed to alter to layout of the text, adding +//! headers and footers for example. +class QSCINTILLA_EXPORT QsciPrinter : public QPrinter +{ +public: + //! Constructs a printer paint device with mode \a mode. + QsciPrinter(PrinterMode mode = ScreenResolution); + + //! Destroys the QsciPrinter instance. + virtual ~QsciPrinter(); + + //! Format a page, by adding headers and footers for example, before the + //! document text is drawn on it. \a painter is the painter to be used to + //! add customised text and graphics. \a drawing is true if the page is + //! actually being drawn rather than being sized. \a painter drawing + //! methods must only be called when \a drawing is true. \a area is the + //! area of the page that will be used to draw the text. This should be + //! modified if it is necessary to reserve space for any customised text or + //! graphics. By default the area is relative to the printable area of the + //! page. Use QPrinter::setFullPage() because calling printRange() if you + //! want to try and print over the whole page. \a pagenr is the number of + //! the page. The first page is numbered 1. + virtual void formatPage(QPainter &painter, bool drawing, QRect &area, + int pagenr); + + //! Return the number of points to add to each font when printing. + //! + //! \sa setMagnification() + int magnification() const {return mag;} + + //! Sets the number of points to add to each font when printing to \a + //! magnification. + //! + //! \sa magnification() + virtual void setMagnification(int magnification); + + //! Print a range of lines from the Scintilla instance \a qsb. \a from is + //! the first line to print and a negative value signifies the first line + //! of text. \a to is the last line to print and a negative value + //! signifies the last line of text. true is returned if there was no + //! error. + virtual int printRange(QsciScintillaBase *qsb, int from = -1, int to = -1); + + //! Return the line wrap mode used when printing. The default is + //! QsciScintilla::WrapWord. + //! + //! \sa setWrapMode() + QsciScintilla::WrapMode wrapMode() const {return wrap;} + + //! Sets the line wrap mode used when printing to \a wmode. + //! + //! \sa wrapMode() + virtual void setWrapMode(QsciScintilla::WrapMode wmode); + +private: + int mag; + QsciScintilla::WrapMode wrap; + + QsciPrinter(const QsciPrinter &); + QsciPrinter &operator=(const QsciPrinter &); +}; + +#endif + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qsciscintilla.h b/Qt4Qt5/Qsci/qsciscintilla.h new file mode 100644 index 0000000..bae656b --- /dev/null +++ b/Qt4Qt5/Qsci/qsciscintilla.h @@ -0,0 +1,2136 @@ +// This module defines the "official" high-level API of the Qt port of +// Scintilla. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCISCINTILLA_H +#define QSCISCINTILLA_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include + +#include +#include +#include + +#include +#include +#include +#include + + +QT_BEGIN_NAMESPACE +class QAction; +class QImage; +class QIODevice; +class QMenu; +class QPoint; +QT_END_NAMESPACE + +class QsciCommandSet; +class QsciLexer; +class QsciStyle; +class QsciStyledText; +class QsciListBoxQt; + + +//! \brief The QsciScintilla class implements a higher level, more Qt-like, +//! API to the Scintilla editor widget. +//! +//! QsciScintilla implements methods, signals and slots similar to those found +//! in other Qt editor classes. It also provides a higher level interface to +//! features specific to Scintilla such as syntax styling, call tips, +//! auto-indenting and auto-completion than that provided by QsciScintillaBase. +class QSCINTILLA_EXPORT QsciScintilla : public QsciScintillaBase +{ + Q_OBJECT + +public: + //! This enum defines the different auto-indentation styles. + enum { + //! A line is automatically indented to match the previous line. + AiMaintain = 0x01, + + //! If the language supported by the current lexer has a specific start + //! of block character (e.g. { in C++), then a line that begins with + //! that character is indented as well as the lines that make up the + //! block. It may be logically ored with AiClosing. + AiOpening = 0x02, + + //! If the language supported by the current lexer has a specific end + //! of block character (e.g. } in C++), then a line that begins with + //! that character is indented as well as the lines that make up the + //! block. It may be logically ored with AiOpening. + AiClosing = 0x04 + }; + + //! This enum defines the different annotation display styles. + enum AnnotationDisplay { + //! Annotations are not displayed. + AnnotationHidden = ANNOTATION_HIDDEN, + + //! Annotations are drawn left justified with no adornment. + AnnotationStandard = ANNOTATION_STANDARD, + + //! Annotations are surrounded by a box. + AnnotationBoxed = ANNOTATION_BOXED + }; + + //! This enum defines the behavior if an auto-completion list contains a + //! single entry. + enum AutoCompletionUseSingle { + //! The single entry is not used automatically and the auto-completion + //! list is displayed. + AcusNever, + + //! The single entry is used automatically when auto-completion is + //! explicitly requested (using autoCompleteFromAPIs() or + //! autoCompleteFromDocument()) but not when auto-completion is + //! triggered as the user types. + AcusExplicit, + + //! The single entry is used automatically and the auto-completion list + //! is not displayed. + AcusAlways + }; + + //! This enum defines the different sources for auto-completion lists. + enum AutoCompletionSource { + //! No sources are used, ie. automatic auto-completion is disabled. + AcsNone, + + //! The source is all available sources. + AcsAll, + + //! The source is the current document. + AcsDocument, + + //! The source is any installed APIs. + AcsAPIs + }; + + //! This enum defines the different brace matching modes. The character + //! pairs {}, [] and () are treated as braces. The Python lexer will also + //! match a : with the end of the corresponding indented block. + enum BraceMatch { + //! Brace matching is disabled. + NoBraceMatch, + + //! Brace matching is enabled for a brace immediately before the + //! current position. + StrictBraceMatch, + + //! Brace matching is enabled for a brace immediately before or after + //! the current position. + SloppyBraceMatch + }; + + //! This enum defines the different call tip positions. + enum CallTipsPosition { + //! Call tips are placed below the text. + CallTipsBelowText, + + //! Call tips are placed above the text. + CallTipsAboveText, + }; + + //! This enum defines the different call tip styles. + enum CallTipsStyle { + //! Call tips are disabled. + CallTipsNone, + + //! Call tips are displayed without a context. A context is any scope + //! (e.g. a C++ namespace or a Python module) prior to the function + //! name. + CallTipsNoContext, + + //! Call tips are displayed with a context only if the user hasn't + //! already implicitly identified the context using autocompletion. + //! Note that this style may not always be able to align the call tip + //! with the text being entered. + CallTipsNoAutoCompletionContext, + + //! Call tips are displayed with a context. Note that this style + //! may not always be able to align the call tip with the text being + //! entered. + CallTipsContext + }; + + //! This enum defines the different edge modes for long lines. + enum EdgeMode { + //! Long lines are not marked. + EdgeNone = EDGE_NONE, + + //! A vertical line is drawn at the column set by setEdgeColumn(). + //! This is recommended for monospace fonts. + EdgeLine = EDGE_LINE, + + //! The background color of characters after the column limit is + //! changed to the color set by setEdgeColor(). This is recommended + //! for proportional fonts. + EdgeBackground = EDGE_BACKGROUND + }; + + //! This enum defines the different end-of-line modes. + enum EolMode { + //! A carriage return/line feed as used on Windows systems. + EolWindows = SC_EOL_CRLF, + + //! A line feed as used on Unix systems, including OS/X. + EolUnix = SC_EOL_LF, + + //! A carriage return as used on Mac systems prior to OS/X. + EolMac = SC_EOL_CR + }; + + //! This enum defines the different styles for the folding margin. + enum FoldStyle { + //! Folding is disabled. + NoFoldStyle, + + //! Plain folding style using plus and minus symbols. + PlainFoldStyle, + + //! Circled folding style using circled plus and minus symbols. + CircledFoldStyle, + + //! Boxed folding style using boxed plus and minus symbols. + BoxedFoldStyle, + + //! Circled tree style using a flattened tree with circled plus and + //! minus symbols and rounded corners. + CircledTreeFoldStyle, + + //! Boxed tree style using a flattened tree with boxed plus and minus + //! symbols and right-angled corners. + BoxedTreeFoldStyle + }; + + //! This enum defines the different indicator styles. + enum IndicatorStyle { + //! A single straight underline. + PlainIndicator = INDIC_PLAIN, + + //! A squiggly underline that requires 3 pixels of descender space. + SquiggleIndicator = INDIC_SQUIGGLE, + + //! A line of small T shapes. + TTIndicator = INDIC_TT, + + //! Diagonal hatching. + DiagonalIndicator = INDIC_DIAGONAL, + + //! Strike out. + StrikeIndicator = INDIC_STRIKE, + + //! An indicator with no visual appearence. + HiddenIndicator = INDIC_HIDDEN, + + //! A rectangle around the text. + BoxIndicator = INDIC_BOX, + + //! A rectangle with rounded corners around the text with the interior + //! usually more transparent than the border. + RoundBoxIndicator = INDIC_ROUNDBOX, + + //! A rectangle around the text with the interior usually more + //! transparent than the border. + StraightBoxIndicator = INDIC_STRAIGHTBOX, + + //! A dashed underline. + DashesIndicator = INDIC_DASH, + + //! A dotted underline. + DotsIndicator = INDIC_DOTS, + + //! A squiggly underline that requires 2 pixels of descender space and + //! so will fit under smaller fonts. + SquiggleLowIndicator = INDIC_SQUIGGLELOW, + + //! A dotted rectangle around the text with the interior usually more + //! transparent than the border. + DotBoxIndicator = INDIC_DOTBOX, + + //! A version of SquiggleIndicator that uses a pixmap. This is quicker + //! but may be of lower quality. + SquigglePixmapIndicator = INDIC_SQUIGGLEPIXMAP, + + //! A thick underline typically used during Asian language input + //! composition. + ThickCompositionIndicator = INDIC_COMPOSITIONTHICK, + }; + + //! This enum defines the different margin options. + enum { + //! Reset all margin options. + MoNone = SC_MARGINOPTION_NONE, + + //! If this is set then only the first sub-line of a wrapped line will + //! be selected when clicking on a margin. + MoSublineSelect = SC_MARGINOPTION_SUBLINESELECT + }; + + //! This enum defines the different margin types. + enum MarginType { + //! The margin contains symbols, including those used for folding. + SymbolMargin = SC_MARGIN_SYMBOL, + + //! The margin contains symbols and uses the default foreground color + //! as its background color. + SymbolMarginDefaultForegroundColor = SC_MARGIN_FORE, + + //! The margin contains symbols and uses the default background color + //! as its background color. + SymbolMarginDefaultBackgroundColor = SC_MARGIN_BACK, + + //! The margin contains line numbers. + NumberMargin = SC_MARGIN_NUMBER, + + //! The margin contains styled text. + TextMargin = SC_MARGIN_TEXT, + + //! The margin contains right justified styled text. + TextMarginRightJustified = SC_MARGIN_RTEXT + }; + + //! This enum defines the different pre-defined marker symbols. + enum MarkerSymbol { + //! A circle. + Circle = SC_MARK_CIRCLE, + + //! A rectangle. + Rectangle = SC_MARK_ROUNDRECT, + + //! A triangle pointing to the right. + RightTriangle = SC_MARK_ARROW, + + //! A smaller rectangle. + SmallRectangle = SC_MARK_SMALLRECT, + + //! An arrow pointing to the right. + RightArrow = SC_MARK_SHORTARROW, + + //! An invisible marker that allows code to track the movement + //! of lines. + Invisible = SC_MARK_EMPTY, + + //! A triangle pointing down. + DownTriangle = SC_MARK_ARROWDOWN, + + //! A drawn minus sign. + Minus = SC_MARK_MINUS, + + //! A drawn plus sign. + Plus = SC_MARK_PLUS, + + //! A vertical line drawn in the background colour. + VerticalLine = SC_MARK_VLINE, + + //! A bottom left corner drawn in the background colour. + BottomLeftCorner = SC_MARK_LCORNER, + + //! A vertical line with a centre right horizontal line drawn + //! in the background colour. + LeftSideSplitter = SC_MARK_TCORNER, + + //! A drawn plus sign in a box. + BoxedPlus = SC_MARK_BOXPLUS, + + //! A drawn plus sign in a connected box. + BoxedPlusConnected = SC_MARK_BOXPLUSCONNECTED, + + //! A drawn minus sign in a box. + BoxedMinus = SC_MARK_BOXMINUS, + + //! A drawn minus sign in a connected box. + BoxedMinusConnected = SC_MARK_BOXMINUSCONNECTED, + + //! A rounded bottom left corner drawn in the background + //! colour. + RoundedBottomLeftCorner = SC_MARK_LCORNERCURVE, + + //! A vertical line with a centre right curved line drawn in the + //! background colour. + LeftSideRoundedSplitter = SC_MARK_TCORNERCURVE, + + //! A drawn plus sign in a circle. + CircledPlus = SC_MARK_CIRCLEPLUS, + + //! A drawn plus sign in a connected box. + CircledPlusConnected = SC_MARK_CIRCLEPLUSCONNECTED, + + //! A drawn minus sign in a circle. + CircledMinus = SC_MARK_CIRCLEMINUS, + + //! A drawn minus sign in a connected circle. + CircledMinusConnected = SC_MARK_CIRCLEMINUSCONNECTED, + + //! No symbol is drawn but the line is drawn with the same background + //! color as the marker's. + Background = SC_MARK_BACKGROUND, + + //! Three drawn dots. + ThreeDots = SC_MARK_DOTDOTDOT, + + //! Three drawn arrows pointing right. + ThreeRightArrows = SC_MARK_ARROWS, + + //! A full rectangle (ie. the margin background) using the marker's + //! background color. + FullRectangle = SC_MARK_FULLRECT, + + //! A left rectangle (ie. the left part of the margin background) using + //! the marker's background color. + LeftRectangle = SC_MARK_LEFTRECT, + + //! No symbol is drawn but the line is drawn underlined using the + //! marker's background color. + Underline = SC_MARK_UNDERLINE + }; + + //! This enum defines the different whitespace visibility modes. When + //! whitespace is visible spaces are displayed as small centred dots and + //! tabs are displayed as light arrows pointing to the right. + enum WhitespaceVisibility { + //! Whitespace is invisible. + WsInvisible = SCWS_INVISIBLE, + + //! Whitespace is always visible. + WsVisible = SCWS_VISIBLEALWAYS, + + //! Whitespace is visible after the whitespace used for indentation. + WsVisibleAfterIndent = SCWS_VISIBLEAFTERINDENT + }; + + //! This enum defines the different line wrap modes. + enum WrapMode { + //! Lines are not wrapped. + WrapNone = SC_WRAP_NONE, + + //! Lines are wrapped at word boundaries. + WrapWord = SC_WRAP_WORD, + + //! Lines are wrapped at character boundaries. + WrapCharacter = SC_WRAP_CHAR + }; + + //! This enum defines the different line wrap visual flags. + enum WrapVisualFlag { + //! No wrap flag is displayed. + WrapFlagNone, + + //! A wrap flag is displayed by the text. + WrapFlagByText, + + //! A wrap flag is displayed by the border. + WrapFlagByBorder, + + //! A wrap flag is displayed in the line number margin. + WrapFlagInMargin + }; + + //! This enum defines the different line wrap indentation modes. + enum WrapIndentMode { + //! Wrapped sub-lines are indented by the amount set by + //! setWrapVisualFlags(). + WrapIndentFixed = SC_WRAPINDENT_FIXED, + + //! Wrapped sub-lines are indented by the same amount as the first + //! sub-line. + WrapIndentSame = SC_WRAPINDENT_SAME, + + //! Wrapped sub-lines are indented by the same amount as the first + //! sub-line plus one more level of indentation. + WrapIndentIndented = SC_WRAPINDENT_INDENT + }; + + //! Construct an empty QsciScintilla with parent \a parent. + QsciScintilla(QWidget *parent = 0); + + //! Destroys the QsciScintilla instance. + virtual ~QsciScintilla(); + + //! Returns the API context, which is a list of words, before the position + //! \a pos in the document. The context can be used by auto-completion and + //! call tips to help to identify which API call the user is referring to. + //! In the default implementation the current lexer determines what + //! characters make up a word, and what characters determine the boundaries + //! of words (ie. the start characters). If there is no current lexer then + //! the context will consist of a single word. On return \a context_start + //! will contain the position in the document of the start of the context + //! and \a last_word_start will contain the position in the document of the + //! start of the last word of the context. + virtual QStringList apiContext(int pos, int &context_start, + int &last_word_start); + + //! Annotate the line \a line with the text \a text using the style number + //! \a style. + void annotate(int line, const QString &text, int style); + + //! Annotate the line \a line with the text \a text using the style \a + //! style. + void annotate(int line, const QString &text, const QsciStyle &style); + + //! Annotate the line \a line with the styled text \a text. + void annotate(int line, const QsciStyledText &text); + + //! Annotate the line \a line with the list of styled text \a text. + void annotate(int line, const QList &text); + + //! Returns the annotation on line \a line, if any. + QString annotation(int line) const; + + //! Returns the display style for annotations. + //! + //! \sa setAnnotationDisplay() + AnnotationDisplay annotationDisplay() const; + + //! The annotations on line \a line are removed. If \a line is negative + //! then all annotations are removed. + void clearAnnotations(int line = -1); + + //! Returns true if auto-completion lists are case sensitive. + //! + //! \sa setAutoCompletionCaseSensitivity() + bool autoCompletionCaseSensitivity() const; + + //! Returns true if auto-completion fill-up characters are enabled. + //! + //! \sa setAutoCompletionFillups(), setAutoCompletionFillupsEnabled() + bool autoCompletionFillupsEnabled() const; + + //! Returns true if the rest of the word to the right of the current cursor + //! is removed when an item from an auto-completion list is selected. + //! + //! \sa setAutoCompletionReplaceWord() + bool autoCompletionReplaceWord() const; + + //! Returns true if the only item in an auto-completion list with a single + //! entry is automatically used and the list not displayed. Note that this + //! is deprecated and autoCompletionUseSingle() should be used instead. + //! + //! \sa setAutoCompletionShowSingle() + bool autoCompletionShowSingle() const; + + //! Returns the current source for the auto-completion list when it is + //! being displayed automatically as the user types. + //! + //! \sa setAutoCompletionSource() + AutoCompletionSource autoCompletionSource() const {return acSource;} + + //! Returns the current threshold for the automatic display of the + //! auto-completion list as the user types. + //! + //! \sa setAutoCompletionThreshold() + int autoCompletionThreshold() const {return acThresh;} + + //! Returns the current behavior when an auto-completion list contains a + //! single entry. + //! + //! \sa setAutoCompletionUseSingle() + AutoCompletionUseSingle autoCompletionUseSingle() const; + + //! Returns true if auto-indentation is enabled. + //! + //! \sa setAutoIndent() + bool autoIndent() const {return autoInd;} + + //! Returns true if the backspace key unindents a line instead of deleting + //! a character. The default is false. + //! + //! \sa setBackspaceUnindents(), tabIndents(), setTabIndents() + bool backspaceUnindents() const; + + //! Mark the beginning of a sequence of actions that can be undone by a + //! single call to undo(). + //! + //! \sa endUndoAction(), undo() + void beginUndoAction(); + + //! Returns the brace matching mode. + //! + //! \sa setBraceMatching() + BraceMatch braceMatching() const {return braceMode;} + + //! Returns the current call tip position. + //! + //! \sa setCallTipsPosition() + CallTipsPosition callTipsPosition() const {return call_tips_position;} + + //! Returns the current call tip style. + //! + //! \sa setCallTipsStyle() + CallTipsStyle callTipsStyle() const {return call_tips_style;} + + //! Returns the maximum number of call tips that are displayed. + //! + //! \sa setCallTipsVisible() + int callTipsVisible() const {return maxCallTips;} + + //! Cancel any current auto-completion or user defined list. + void cancelList(); + + //! Returns true if the current language lexer is case sensitive. If there + //! is no current lexer then true is returned. + bool caseSensitive() const; + + //! Clear all current folds, i.e. ensure that all lines are displayed + //! unfolded. + //! + //! \sa setFolding() + void clearFolds(); + + //! Clears the range of text with indicator \a indicatorNumber starting at + //! position \a indexFrom in line \a lineFrom and finishing at position + //! \a indexTo in line \a lineTo. + //! + //! \sa fillIndicatorRange() + void clearIndicatorRange(int lineFrom, int indexFrom, int lineTo, + int indexTo, int indicatorNumber); + + //! Clear all registered images. + //! + //! \sa registerImage() + void clearRegisteredImages(); + + //! Returns the widget's text (ie. foreground) colour. + //! + //! \sa setColor() + QColor color() const; + + //! Returns a list of the line numbers that have contracted folds. This is + //! typically used to save the fold state of a document. + //! + //! \sa setContractedFolds() + QList contractedFolds() const; + + //! All the lines of the text have their end-of-lines converted to mode + //! \a mode. + //! + //! \sa eolMode(), setEolMode() + void convertEols(EolMode mode); + + //! Create the standard context menu which is shown when the user clicks + //! with the right mouse button. It is called from contextMenuEvent(). + //! The menu's ownership is transferred to the caller. + QMenu *createStandardContextMenu(); + + //! Returns the attached document. + //! + //! \sa setDocument() + QsciDocument document() const {return doc;} + + //! Mark the end of a sequence of actions that can be undone by a single + //! call to undo(). + //! + //! \sa beginUndoAction(), undo() + void endUndoAction(); + + //! Returns the color of the marker used to show that a line has exceeded + //! the length set by setEdgeColumn(). + //! + //! \sa setEdgeColor(), \sa setEdgeColumn + QColor edgeColor() const; + + //! Returns the number of the column after which lines are considered to be + //! long. + //! + //! \sa setEdgeColumn() + int edgeColumn() const; + + //! Returns the edge mode which determines how long lines are marked. + //! + //! \sa setEdgeMode() + EdgeMode edgeMode() const; + + //! Set the default font. This has no effect if a language lexer has been + //! set. + void setFont(const QFont &f); + + //! Returns the end-of-line mode. + //! + //! \sa setEolMode() + EolMode eolMode() const; + + //! Returns the visibility of end-of-lines. + //! + //! \sa setEolVisibility() + bool eolVisibility() const; + + //! Returns the extra space added to the height of a line above the + //! baseline of the text. + //! + //! \sa setExtraAscent(), extraDescent() + int extraAscent() const; + + //! Returns the extra space added to the height of a line below the + //! baseline of the text. + //! + //! \sa setExtraDescent(), extraAscent() + int extraDescent() const; + + //! Fills the range of text with indicator \a indicatorNumber starting at + //! position \a indexFrom in line \a lineFrom and finishing at position + //! \a indexTo in line \a lineTo. + //! + //! \sa clearIndicatorRange() + void fillIndicatorRange(int lineFrom, int indexFrom, int lineTo, + int indexTo, int indicatorNumber); + + //! Find the first occurrence of the string \a expr and return true if + //! \a expr was found, otherwise returns false. If \a expr is found it + //! becomes the current selection. + //! + //! If \a re is true then \a expr is interpreted as a regular expression + //! rather than a simple string. + //! + //! If \a cs is true then the search is case sensitive. + //! + //! If \a wo is true then the search looks for whole word matches only, + //! otherwise it searches for any matching text. + //! + //! If \a wrap is true then the search wraps around the end of the text. + //! + //! If \a forward is true (the default) then the search is forward from the + //! starting position to the end of the text, otherwise it is backwards to + //! the beginning of the text. + //! + //! If either \a line or \a index are negative (the default) then the + //! search begins from the current cursor position. Otherwise the search + //! begins at position \a index of line \a line. + //! + //! If \a show is true (the default) then any text found is made visible + //! (ie. it is unfolded). + //! + //! If \a posix is true then a regular expression is treated in a more + //! POSIX compatible manner by interpreting bare ( and ) as tagged sections + //! rather than \( and \). + //! + //! \sa findFirstInSelection(), findNext(), replace() + virtual bool findFirst(const QString &expr, bool re, bool cs, bool wo, + bool wrap, bool forward = true, int line = -1, int index = -1, + bool show = true, bool posix = false); + + //! Find the first occurrence of the string \a expr in the current + //! selection and return true if \a expr was found, otherwise returns + //! false. If \a expr is found it becomes the current selection. The + //! original selection is restored when a subsequent call to findNext() + //! returns false. + //! + //! If \a re is true then \a expr is interpreted as a regular expression + //! rather than a simple string. + //! + //! If \a cs is true then the search is case sensitive. + //! + //! If \a wo is true then the search looks for whole word matches only, + //! otherwise it searches for any matching text. + //! + //! If \a forward is true (the default) then the search is forward from the + //! start to the end of the selection, otherwise it is backwards from the + //! end to the start of the selection. + //! + //! If \a show is true (the default) then any text found is made visible + //! (ie. it is unfolded). + //! + //! If \a posix is true then a regular expression is treated in a more + //! POSIX compatible manner by interpreting bare ( and ) as tagged sections + //! rather than \( and \). + //! + //! \sa findFirstInSelection(), findNext(), replace() + virtual bool findFirstInSelection(const QString &expr, bool re, bool cs, + bool wo, bool forward = true, bool show = true, + bool posix = false); + + //! Find the next occurence of the string found using findFirst() or + //! findFirstInSelection(). + //! + //! \sa findFirst(), findFirstInSelection(), replace() + virtual bool findNext(); + + //! Returns the number of the first visible line. + //! + //! \sa setFirstVisibleLine() + int firstVisibleLine() const; + + //! Returns the current folding style. + //! + //! \sa setFolding() + FoldStyle folding() const {return fold;} + + //! Sets \a *line and \a *index to the line and index of the cursor. + //! + //! \sa setCursorPosition() + void getCursorPosition(int *line, int *index) const; + + //! If there is a selection, \a *lineFrom is set to the line number in + //! which the selection begins and \a *lineTo is set to the line number in + //! which the selection ends. (They could be the same.) \a *indexFrom is + //! set to the index at which the selection begins within \a *lineFrom, and + //! \a *indexTo is set to the index at which the selection ends within + //! \a *lineTo. If there is no selection, \a *lineFrom, \a *indexFrom, + //! \a *lineTo and \a *indexTo are all set to -1. + //! + //! \sa setSelection() + void getSelection(int *lineFrom, int *indexFrom, int *lineTo, + int *indexTo) const; + + //! Returns true if some text is selected. + //! + //! \sa selectedText() + bool hasSelectedText() const {return selText;} + + //! Returns the number of characters that line \a line is indented by. + //! + //! \sa setIndentation() + int indentation(int line) const; + + //! Returns true if the display of indentation guides is enabled. + //! + //! \sa setIndentationGuides() + bool indentationGuides() const; + + //! Returns true if indentations are created using tabs and spaces, rather + //! than just spaces. The default is true. + //! + //! \sa setIndentationsUseTabs() + bool indentationsUseTabs() const; + + //! Returns the indentation width in characters. The default is 0 which + //! means that the value returned by tabWidth() is actually used. + //! + //! \sa setIndentationWidth(), tabWidth() + int indentationWidth() const; + + //! Define a type of indicator using the style \a style with the indicator + //! number \a indicatorNumber. If \a indicatorNumber is -1 then the + //! indicator number is automatically allocated. The indicator number is + //! returned or -1 if too many types of indicator have been defined. + //! + //! Indicators are used to display additional information over the top of + //! styling. They can be used to show, for example, syntax errors, + //! deprecated names and bad indentation by drawing lines under text or + //! boxes around text. + //! + //! There may be up to 32 types of indicator defined at a time. The first + //! 8 are normally used by lexers. By default indicator number 0 is a + //! dark green SquiggleIndicator, 1 is a blue TTIndicator, and 2 is a red + //! PlainIndicator. + int indicatorDefine(IndicatorStyle style, int indicatorNumber = -1); + + //! Returns true if the indicator \a indicatorNumber is drawn under the + //! text (i.e. in the background). The default is false. + //! + //! \sa setIndicatorDrawUnder() + bool indicatorDrawUnder(int indicatorNumber) const; + + //! Returns true if a call tip is currently active. + bool isCallTipActive() const; + + //! Returns true if an auto-completion or user defined list is currently + //! active. + bool isListActive() const; + + //! Returns true if the text has been modified. + //! + //! \sa setModified(), modificationChanged() + bool isModified() const; + + //! Returns true if the text edit is read-only. + //! + //! \sa setReadOnly() + bool isReadOnly() const; + + //! Returns true if there is something that can be redone. + //! + //! \sa redo() + bool isRedoAvailable() const; + + //! Returns true if there is something that can be undone. + //! + //! \sa undo() + bool isUndoAvailable() const; + + //! Returns true if text is interpreted as being UTF8 encoded. The default + //! is to interpret the text as Latin1 encoded. + //! + //! \sa setUtf8() + bool isUtf8() const; + + //! Returns true if character \a ch is a valid word character. + //! + //! \sa wordCharacters() + bool isWordCharacter(char ch) const; + + //! Returns the line which is at \a point pixel coordinates or -1 if there + //! is no line at that point. + int lineAt(const QPoint &point) const; + + //! QScintilla uses the combination of a line number and a character index + //! from the start of that line to specify the position of a character + //! within the text. The underlying Scintilla instead uses a byte index + //! from the start of the text. This will convert the \a position byte + //! index to the \a *line line number and \a *index character index. + //! + //! \sa positionFromLineIndex() + void lineIndexFromPosition(int position, int *line, int *index) const; + + //! Returns the length of line \a line int bytes or -1 if there is no such + //! line. In order to get the length in characters use text(line).length(). + int lineLength(int line) const; + + //! Returns the number of lines of text. + int lines() const; + + //! Returns the length of the text edit's text in bytes. In order to get + //! the length in characters use text().length(). + int length() const; + + //! Returns the current language lexer used to style text. If it is 0 then + //! syntax styling is disabled. + //! + //! \sa setLexer() + QsciLexer *lexer() const; + + //! Returns true if line numbers are enabled for margin \a margin. + //! + //! \sa setMarginLineNumbers(), marginType(), SCI_GETMARGINTYPEN + bool marginLineNumbers(int margin) const; + + //! Returns the marker mask of margin \a margin. + //! + //! \sa setMarginMask(), QsciMarker, SCI_GETMARGINMASKN + int marginMarkerMask(int margin) const; + + //! Returns the margin options. The default is MoNone. + //! + //! \sa setMarginOptions(), MoNone, MoSublineSelect. + int marginOptions() const; + + //! Returns true if margin \a margin is sensitive to mouse clicks. + //! + //! \sa setMarginSensitivity(), marginClicked(), SCI_GETMARGINTYPEN + bool marginSensitivity(int margin) const; + + //! Returns the type of margin \a margin. + //! + //! \sa setMarginType(), SCI_GETMARGINTYPEN + MarginType marginType(int margin) const; + + //! Returns the width in pixels of margin \a margin. + //! + //! \sa setMarginWidth(), SCI_GETMARGINWIDTHN + int marginWidth(int margin) const; + + //! Define a type of marker using the symbol \a sym with the marker number + //! \a markerNumber. If \a markerNumber is -1 then the marker number is + //! automatically allocated. The marker number is returned or -1 if too + //! many types of marker have been defined. + //! + //! Markers are small geometric symbols and characters used, for example, + //! to indicate the current line or, in debuggers, to indicate breakpoints. + //! If a margin has a width of 0 then its markers are not drawn, but their + //! background colours affect the background colour of the corresponding + //! line of text. + //! + //! There may be up to 32 types of marker defined at a time and each line + //! of text has a set of marker instances associated with it. Markers are + //! drawn according to their numerical identifier. Markers try to move + //! with their text by tracking where the start of their line moves to. + //! For example, when a line is deleted its markers are added to previous + //! line's markers. + //! + //! Each marker type is identified by a marker number. Each instance of a + //! marker is identified by a marker handle. + int markerDefine(MarkerSymbol sym, int markerNumber = -1); + + //! Define a marker using the character \a ch with the marker number + //! \a markerNumber. If \a markerNumber is -1 then the marker number is + //! automatically allocated. The marker number is returned or -1 if too + //! many markers have been defined. + int markerDefine(char ch, int markerNumber = -1); + + //! Define a marker using a copy of the pixmap \a pm with the marker number + //! \a markerNumber. If \a markerNumber is -1 then the marker number is + //! automatically allocated. The marker number is returned or -1 if too + //! many markers have been defined. + int markerDefine(const QPixmap &pm, int markerNumber = -1); + + //! Define a marker using a copy of the image \a im with the marker number + //! \a markerNumber. If \a markerNumber is -1 then the marker number is + //! automatically allocated. The marker number is returned or -1 if too + //! many markers have been defined. + int markerDefine(const QImage &im, int markerNumber = -1); + + //! Add an instance of marker number \a markerNumber to line number + //! \a linenr. A handle for the marker is returned which can be used to + //! track the marker's position, or -1 if the \a markerNumber was invalid. + //! + //! \sa markerDelete(), markerDeleteAll(), markerDeleteHandle() + int markerAdd(int linenr, int markerNumber); + + //! Returns the 32 bit mask of marker numbers at line number \a linenr. + //! + //! \sa markerAdd() + unsigned markersAtLine(int linenr) const; + + //! Delete all markers with the marker number \a markerNumber in the line + //! \a linenr. If \a markerNumber is -1 then delete all markers from line + //! \a linenr. + //! + //! \sa markerAdd(), markerDeleteAll(), markerDeleteHandle() + void markerDelete(int linenr, int markerNumber = -1); + + //! Delete the all markers with the marker number \a markerNumber. If + //! \a markerNumber is -1 then delete all markers. + //! + //! \sa markerAdd(), markerDelete(), markerDeleteHandle() + void markerDeleteAll(int markerNumber = -1); + + //! Delete the the marker instance with the marker handle \a mhandle. + //! + //! \sa markerAdd(), markerDelete(), markerDeleteAll() + void markerDeleteHandle(int mhandle); + + //! Return the line number that contains the marker instance with the + //! marker handle \a mhandle. + int markerLine(int mhandle) const; + + //! Return the number of the next line to contain at least one marker from + //! a 32 bit mask of markers. \a linenr is the line number to start the + //! search from. \a mask is the mask of markers to search for. + //! + //! \sa markerFindPrevious() + int markerFindNext(int linenr, unsigned mask) const; + + //! Return the number of the previous line to contain at least one marker + //! from a 32 bit mask of markers. \a linenr is the line number to start + //! the search from. \a mask is the mask of markers to search for. + //! + //! \sa markerFindNext() + int markerFindPrevious(int linenr, unsigned mask) const; + + //! Returns true if text entered by the user will overwrite existing text. + //! + //! \sa setOverwriteMode() + bool overwriteMode() const; + + //! Returns the widget's paper (ie. background) colour. + //! + //! \sa setPaper() + QColor paper() const; + + //! QScintilla uses the combination of a line number and a character index + //! from the start of that line to specify the position of a character + //! within the text. The underlying Scintilla instead uses a byte index + //! from the start of the text. This will return the byte index + //! corresponding to the \a line line number and \a index character index. + //! + //! \sa lineIndexFromPosition() + int positionFromLineIndex(int line, int index) const; + + //! Reads the current document from the \a io device and returns true if + //! there was no error. + //! + //! \sa write() + bool read(QIODevice *io); + + //! Recolours the document between the \a start and \a end positions. + //! \a start defaults to the start of the document and \a end defaults to + //! the end of the document. + virtual void recolor(int start = 0, int end = -1); + + //! Register an image \a pm with ID \a id. Registered images can be + //! displayed in auto-completion lists. + //! + //! \sa clearRegisteredImages(), QsciLexer::apiLoad() + void registerImage(int id, const QPixmap &pm); + + //! Register an image \a im with ID \a id. Registered images can be + //! displayed in auto-completion lists. + //! + //! \sa clearRegisteredImages(), QsciLexer::apiLoad() + void registerImage(int id, const QImage &im); + + //! Replace the current selection, set by a previous call to findFirst(), + //! findFirstInSelection() or findNext(), with \a replaceStr. + //! + //! \sa findFirst(), findFirstInSelection(), findNext() + virtual void replace(const QString &replaceStr); + + //! Reset the fold margin colours to their defaults. + //! + //! \sa setFoldMarginColors() + void resetFoldMarginColors(); + + //! Resets the background colour of an active hotspot area to the default. + //! + //! \sa setHotspotBackgroundColor(), resetHotspotForegroundColor() + void resetHotspotBackgroundColor(); + + //! Resets the foreground colour of an active hotspot area to the default. + //! + //! \sa setHotspotForegroundColor(), resetHotspotBackgroundColor() + void resetHotspotForegroundColor(); + + //! The fold margin may be drawn as a one pixel sized checkerboard pattern + //! of two colours, \a fore and \a back. + //! + //! \sa resetFoldMarginColors() + void setFoldMarginColors(const QColor &fore, const QColor &back); + + //! Set the display style for annotations. The default is + //! AnnotationStandard. + //! + //! \sa annotationDisplay() + void setAnnotationDisplay(AnnotationDisplay display); + + //! Enable the use of fill-up characters, either those explicitly set or + //! those set by a lexer. By default, fill-up characters are disabled. + //! + //! \sa autoCompletionFillupsEnabled(), setAutoCompletionFillups() + void setAutoCompletionFillupsEnabled(bool enabled); + + //! A fill-up character is one that, when entered while an auto-completion + //! list is being displayed, causes the currently selected item from the + //! list to be added to the text followed by the fill-up character. + //! \a fillups is the set of fill-up characters. If a language lexer has + //! been set then this is ignored and the lexer defines the fill-up + //! characters. The default is that no fill-up characters are set. + //! + //! \sa autoCompletionFillupsEnabled(), setAutoCompletionFillupsEnabled() + void setAutoCompletionFillups(const char *fillups); + + //! A word separator is a sequence of characters that, when entered, causes + //! the auto-completion list to be displayed. If a language lexer has been + //! set then this is ignored and the lexer defines the word separators. + //! The default is that no word separators are set. + //! + //! \sa setAutoCompletionThreshold() + void setAutoCompletionWordSeparators(const QStringList &separators); + + //! Set the background colour of call tips to \a col. The default is + //! white. + void setCallTipsBackgroundColor(const QColor &col); + + //! Set the foreground colour of call tips to \a col. The default is + //! mid-gray. + void setCallTipsForegroundColor(const QColor &col); + + //! Set the highlighted colour of call tip text to \a col. The default is + //! dark blue. + void setCallTipsHighlightColor(const QColor &col); + + //! Set the current call tip position. The default is CallTipsBelowText. + //! + //! \sa callTipsPosition() + void setCallTipsPosition(CallTipsPosition position); + + //! Set the current call tip style. The default is CallTipsNoContext. + //! + //! \sa callTipsStyle() + void setCallTipsStyle(CallTipsStyle style); + + //! Set the maximum number of call tips that are displayed to \a nr. If + //! the maximum number is 0 then all applicable call tips are displayed. + //! If the maximum number is -1 then one call tip will be displayed with up + //! and down arrows that allow the use to scroll through the full list. + //! The default is -1. + //! + //! \sa callTipsVisible() + void setCallTipsVisible(int nr); + + //! Sets each line in the \a folds list of line numbers to be a contracted + //! fold. This is typically used to restore the fold state of a document. + //! + //! \sa contractedFolds() + void setContractedFolds(const QList &folds); + + //! Attach the document \a document, replacing the currently attached + //! document. + //! + //! \sa document() + void setDocument(const QsciDocument &document); + + //! Set the color of the marker used to show that a line has exceeded the + //! length set by setEdgeColumn(). + //! + //! \sa edgeColor(), \sa setEdgeColumn + void setEdgeColor(const QColor &col); + + //! Set the number of the column after which lines are considered to be + //! long. + //! + //! \sa edgeColumn() + void setEdgeColumn(int colnr); + + //! Set the edge mode which determines how long lines are marked. + //! + //! \sa edgeMode() + void setEdgeMode(EdgeMode mode); + + //! Set the number of the first visible line to \a linenr. + //! + //! \sa firstVisibleLine() + void setFirstVisibleLine(int linenr); + + //! Enables or disables, according to \a under, if the indicator + //! \a indicatorNumber is drawn under or over the text (i.e. in the + //! background or foreground). If \a indicatorNumber is -1 then the state + //! of all indicators is set. + //! + //! \sa indicatorDrawUnder() + void setIndicatorDrawUnder(bool under, int indicatorNumber = -1); + + //! Set the foreground colour of indicator \a indicatorNumber to \a col. + //! If \a indicatorNumber is -1 then the colour of all indicators is set. + void setIndicatorForegroundColor(const QColor &col, int indicatorNumber = -1); + + //! Set the outline colour of indicator \a indicatorNumber to \a col. + //! If \a indicatorNumber is -1 then the colour of all indicators is set. + //! At the moment only the alpha value of the colour has any affect. + void setIndicatorOutlineColor(const QColor &col, int indicatorNumber = -1); + + //! Set the margin options to \a options. + //! + //! \sa marginOptions(), MoNone, MoSublineSelect. + void setMarginOptions(int options); + + //! Set the margin text of line \a line with the text \a text using the + //! style number \a style. + void setMarginText(int line, const QString &text, int style); + + //! Set the margin text of line \a line with the text \a text using the + //! style \a style. + void setMarginText(int line, const QString &text, const QsciStyle &style); + + //! Set the margin text of line \a line with the styled text \a text. + void setMarginText(int line, const QsciStyledText &text); + + //! Set the margin text of line \a line with the list of styled text \a + //! text. + void setMarginText(int line, const QList &text); + + //! Set the type of margin \a margin to type \a type. + //! + //! \sa marginType(), SCI_SETMARGINTYPEN + void setMarginType(int margin, MarginType type); + + //! The margin text on line \a line is removed. If \a line is negative + //! then all margin text is removed. + void clearMarginText(int line = -1); + + //! Set the background colour, including the alpha component, of marker + //! \a markerNumber to \a col. If \a markerNumber is -1 then the colour of + //! all markers is set. The default is white. + //! + //! \sa setMarkerForegroundColor() + void setMarkerBackgroundColor(const QColor &col, int markerNumber = -1); + + //! Set the foreground colour of marker \a markerNumber to \a col. If + //! \a markerNumber is -1 then the colour of all markers is set. The + //! default is black. + //! + //! \sa setMarkerBackgroundColor() + void setMarkerForegroundColor(const QColor &col, int markerNumber = -1); + + //! Set the background colour used to display matched braces to \a col. It + //! is ignored if an indicator is being used. The default is white. + //! + //! \sa setMatchedBraceForegroundColor(), setMatchedBraceIndicator() + void setMatchedBraceBackgroundColor(const QColor &col); + + //! Set the foreground colour used to display matched braces to \a col. It + //! is ignored if an indicator is being used. The default is red. + //! + //! \sa setMatchedBraceBackgroundColor(), setMatchedBraceIndicator() + void setMatchedBraceForegroundColor(const QColor &col); + + //! Set the indicator used to display matched braces to \a indicatorNumber. + //! The default is not to use an indicator. + //! + //! \sa resetMatchedBraceIndicator(), setMatchedBraceBackgroundColor() + void setMatchedBraceIndicator(int indicatorNumber); + + //! Stop using an indicator to display matched braces. + //! + //! \sa setMatchedBraceIndicator() + void resetMatchedBraceIndicator(); + + //! Set the background colour used to display unmatched braces to \a col. + //! It is ignored if an indicator is being used. The default is white. + //! + //! \sa setUnmatchedBraceForegroundColor(), setUnmatchedBraceIndicator() + void setUnmatchedBraceBackgroundColor(const QColor &col); + + //! Set the foreground colour used to display unmatched braces to \a col. + //! It is ignored if an indicator is being used. The default is blue. + //! + //! \sa setUnmatchedBraceBackgroundColor(), setUnmatchedBraceIndicator() + void setUnmatchedBraceForegroundColor(const QColor &col); + + //! Set the indicator used to display unmatched braces to + //! \a indicatorNumber. The default is not to use an indicator. + //! + //! \sa resetUnmatchedBraceIndicator(), setUnmatchedBraceBackgroundColor() + void setUnmatchedBraceIndicator(int indicatorNumber); + + //! Stop using an indicator to display unmatched braces. + //! + //! \sa setUnmatchedBraceIndicator() + void resetUnmatchedBraceIndicator(); + + //! Set the visual flags displayed when a line is wrapped. \a endFlag + //! determines if and where the flag at the end of a line is displayed. + //! \a startFlag determines if and where the flag at the start of a line is + //! displayed. \a indent is the number of characters a wrapped line is + //! indented by. By default no visual flags are displayed. + void setWrapVisualFlags(WrapVisualFlag endFlag, + WrapVisualFlag startFlag = WrapFlagNone, int indent = 0); + + //! Returns the selected text or an empty string if there is no currently + //! selected text. + //! + //! \sa hasSelectedText() + QString selectedText() const; + + //! Returns whether or not the selection is drawn up to the right hand + //! border. + //! + //! \sa setSelectionToEol() + bool selectionToEol() const; + + //! Sets the background colour of an active hotspot area to \a col. + //! + //! \sa resetHotspotBackgroundColor(), setHotspotForegroundColor() + void setHotspotBackgroundColor(const QColor &col); + + //! Sets the foreground colour of an active hotspot area to \a col. + //! + //! \sa resetHotspotForegroundColor(), setHotspotBackgroundColor() + void setHotspotForegroundColor(const QColor &col); + + //! Enables or disables, according to \a enable, the underlining of an + //! active hotspot area. The default is false. + void setHotspotUnderline(bool enable); + + //! Enables or disables, according to \a enable, the wrapping of a hotspot + //! area to following lines. The default is true. + void setHotspotWrap(bool enable); + + //! Sets whether or not the selection is drawn up to the right hand border. + //! \a filled is set if the selection is drawn to the border. + //! + //! \sa selectionToEol() + void setSelectionToEol(bool filled); + + //! Sets the extra space added to the height of a line above the baseline + //! of the text to \a extra. + //! + //! \sa extraAscent(), setExtraDescent() + void setExtraAscent(int extra); + + //! Sets the extra space added to the height of a line below the baseline + //! of the text to \a extra. + //! + //! \sa extraDescent(), setExtraAscent() + void setExtraDescent(int extra); + + //! Text entered by the user will overwrite existing text if \a overwrite + //! is true. + //! + //! \sa overwriteMode() + void setOverwriteMode(bool overwrite); + + //! Sets the background colour of visible whitespace to \a col. If \a col + //! is an invalid color (the default) then the color specified by the + //! current lexer is used. + void setWhitespaceBackgroundColor(const QColor &col); + + //! Sets the foreground colour of visible whitespace to \a col. If \a col + //! is an invalid color (the default) then the color specified by the + //! current lexer is used. + void setWhitespaceForegroundColor(const QColor &col); + + //! Sets the size of the dots used to represent visible whitespace. + //! + //! \sa whitespaceSize() + void setWhitespaceSize(int size); + + //! Sets the line wrap indentation mode to \a mode. The default is + //! WrapIndentFixed. + //! + //! \sa wrapIndentMode() + void setWrapIndentMode(WrapIndentMode mode); + + //! Displays a user defined list which can be interacted with like an + //! auto-completion list. \a id is an identifier for the list which is + //! passed as an argument to the userListActivated() signal and must be at + //! least 1. \a list is the text with which the list is populated. + //! + //! \sa cancelList(), isListActive(), userListActivated() + void showUserList(int id, const QStringList &list); + + //! The standard command set is returned. + QsciCommandSet *standardCommands() const {return stdCmds;} + + //! Returns true if the tab key indents a line instead of inserting a tab + //! character. The default is true. + //! + //! \sa setTabIndents(), backspaceUnindents(), setBackspaceUnindents() + bool tabIndents() const; + + //! Returns the tab width in characters. The default is 8. + //! + //! \sa setTabWidth() + int tabWidth() const; + + //! Returns the text of the current document. + //! + //! \sa setText() + QString text() const; + + //! \overload + //! + //! Returns the text of line \a line. + //! + //! \sa setText() + QString text(int line) const; + + //! Returns the height in pixels of the text in line number \a linenr. + int textHeight(int linenr) const; + + //! Returns the size of the dots used to represent visible whitespace. + //! + //! \sa setWhitespaceSize() + int whitespaceSize() const; + + //! Returns the visibility of whitespace. + //! + //! \sa setWhitespaceVisibility() + WhitespaceVisibility whitespaceVisibility() const; + + //! Returns the word at the \a line line number and \a index character + //! index. + QString wordAtLineIndex(int line, int index) const; + + //! Returns the word at the \a point pixel coordinates. + QString wordAtPoint(const QPoint &point) const; + + //! Returns the set of valid word character as defined by the current + //! language lexer. If there is no current lexer then the set contains an + //! an underscore, numbers and all upper and lower case alphabetic + //! characters. + //! + //! \sa isWordCharacter() + const char *wordCharacters() const; + + //! Returns the line wrap mode. + //! + //! \sa setWrapMode() + WrapMode wrapMode() const; + + //! Returns the line wrap indentation mode. + //! + //! \sa setWrapIndentMode() + WrapIndentMode wrapIndentMode() const; + + //! Writes the current document to the \a io device and returns true if + //! there was no error. + //! + //! \sa read() + bool write(QIODevice *io) const; + +public slots: + //! Appends the text \a text to the end of the text edit. Note that the + //! undo/redo history is cleared by this function. + virtual void append(const QString &text); + + //! Display an auto-completion list based on any installed APIs, the + //! current contents of the document and the characters immediately to the + //! left of the cursor. + //! + //! \sa autoCompleteFromAPIs(), autoCompleteFromDocument() + virtual void autoCompleteFromAll(); + + //! Display an auto-completion list based on any installed APIs and the + //! characters immediately to the left of the cursor. + //! + //! \sa autoCompleteFromAll(), autoCompleteFromDocument(), + //! setAutoCompletionAPIs() + virtual void autoCompleteFromAPIs(); + + //! Display an auto-completion list based on the current contents of the + //! document and the characters immediately to the left of the cursor. + //! + //! \sa autoCompleteFromAll(), autoCompleteFromAPIs() + virtual void autoCompleteFromDocument(); + + //! Display a call tip based on the the characters immediately to the left + //! of the cursor. + virtual void callTip(); + + //! Deletes all the text in the text edit. + virtual void clear(); + + //! Copies any selected text to the clipboard. + //! + //! \sa copyAvailable(), cut(), paste() + virtual void copy(); + + //! Copies any selected text to the clipboard and then deletes the text. + //! + //! \sa copy(), paste() + virtual void cut(); + + //! Ensures that the cursor is visible. + virtual void ensureCursorVisible(); + + //! Ensures that the line number \a line is visible. + virtual void ensureLineVisible(int line); + + //! If any lines are currently folded then they are all unfolded. + //! Otherwise all lines are folded. This has the same effect as clicking + //! in the fold margin with the shift and control keys pressed. If + //! \a children is not set (the default) then only the top level fold + //! points are affected, otherwise the state of all fold points are + //! changed. + virtual void foldAll(bool children = false); + + //! If the line \a line is folded then it is unfolded. Otherwise it is + //! folded. This has the same effect as clicking in the fold margin. + virtual void foldLine(int line); + + //! Increases the indentation of line \a line by an indentation width. + //! + //! \sa unindent() + virtual void indent(int line); + + //! Insert the text \a text at the current position. + virtual void insert(const QString &text); + + //! Insert the text \a text in the line \a line at the position + //! \a index. + virtual void insertAt(const QString &text, int line, int index); + + //! If the cursor is either side of a brace character then move it to the + //! position of the corresponding brace. + virtual void moveToMatchingBrace(); + + //! Pastes any text from the clipboard into the text edit at the current + //! cursor position. + //! + //! \sa copy(), cut() + virtual void paste(); + + //! Redo the last change or sequence of changes. + //! + //! \sa isRedoAvailable() + virtual void redo(); + + //! Removes any selected text. + //! + //! \sa replaceSelectedText() + virtual void removeSelectedText(); + + //! Replaces any selected text with \a text. + //! + //! \sa removeSelectedText() + virtual void replaceSelectedText(const QString &text); + + //! Resets the background colour of selected text to the default. + //! + //! \sa setSelectionBackgroundColor(), resetSelectionForegroundColor() + virtual void resetSelectionBackgroundColor(); + + //! Resets the foreground colour of selected text to the default. + //! + //! \sa setSelectionForegroundColor(), resetSelectionBackgroundColor() + virtual void resetSelectionForegroundColor(); + + //! If \a select is true (the default) then all the text is selected. If + //! \a select is false then any currently selected text is deselected. + virtual void selectAll(bool select = true); + + //! If the cursor is either side of a brace character then move it to the + //! position of the corresponding brace and select the text between the + //! braces. + virtual void selectToMatchingBrace(); + + //! If \a cs is true then auto-completion lists are case sensitive. The + //! default is true. Note that setting a lexer may change the case + //! sensitivity. + //! + //! \sa autoCompletionCaseSensitivity() + virtual void setAutoCompletionCaseSensitivity(bool cs); + + //! If \a replace is true then when an item from an auto-completion list is + //! selected, the rest of the word to the right of the current cursor is + //! removed. The default is false. + //! + //! \sa autoCompletionReplaceWord() + virtual void setAutoCompletionReplaceWord(bool replace); + + //! If \a single is true then when there is only a single entry in an + //! auto-completion list it is automatically used and the list is not + //! displayed. This only has an effect when auto-completion is explicitly + //! requested (using autoCompleteFromAPIs() and autoCompleteFromDocument()) + //! and has no effect when auto-completion is triggered as the user types. + //! The default is false. Note that this is deprecated and + //! setAutoCompletionUseSingle() should be used instead. + //! + //! \sa autoCompletionShowSingle() + virtual void setAutoCompletionShowSingle(bool single); + + //! Sets the source for the auto-completion list when it is being displayed + //! automatically as the user types to \a source. The default is AcsNone, + //! ie. it is disabled. + //! + //! \sa autoCompletionSource() + virtual void setAutoCompletionSource(AutoCompletionSource source); + + //! Sets the threshold for the automatic display of the auto-completion + //! list as the user types to \a thresh. The threshold is the number of + //! characters that the user must type before the list is displayed. If + //! the threshold is less than or equal to 0 then the list is disabled. + //! The default is -1. + //! + //! \sa autoCompletionThreshold(), setAutoCompletionWordSeparators() + virtual void setAutoCompletionThreshold(int thresh); + + //! Sets the behavior of the auto-completion list when it has a single + //! entry. The default is AcusNever. + //! + //! \sa autoCompletionUseSingle() + virtual void setAutoCompletionUseSingle(AutoCompletionUseSingle single); + + //! If \a autoindent is true then auto-indentation is enabled. The default + //! is false. + //! + //! \sa autoIndent() + virtual void setAutoIndent(bool autoindent); + + //! Sets the brace matching mode to \a bm. The default is NoBraceMatching. + //! + //! \sa braceMatching() + virtual void setBraceMatching(BraceMatch bm); + + //! If \a deindent is true then the backspace key will unindent a line + //! rather then delete a character. + //! + //! \sa backspaceUnindents(), tabIndents(), setTabIndents() + virtual void setBackspaceUnindents(bool unindent); + + //! Sets the foreground colour of the caret to \a col. + virtual void setCaretForegroundColor(const QColor &col); + + //! Sets the background colour, including the alpha component, of the line + //! containing the caret to \a col. + //! + //! \sa setCaretLineVisible() + virtual void setCaretLineBackgroundColor(const QColor &col); + + //! Enables or disables, according to \a enable, the background color of + //! the line containing the caret. + //! + //! \sa setCaretLineBackgroundColor() + virtual void setCaretLineVisible(bool enable); + + //! Sets the width of the caret to \a width pixels. A \a width of 0 makes + //! the caret invisible. + virtual void setCaretWidth(int width); + + //! The widget's text (ie. foreground) colour is set to \a c. This has no + //! effect if a language lexer has been set. + //! + //! \sa color() + virtual void setColor(const QColor &c); + + //! Sets the cursor to the line \a line at the position \a index. + //! + //! \sa getCursorPosition() + virtual void setCursorPosition(int line, int index); + + //! Sets the end-of-line mode to \a mode. The default is the platform's + //! natural mode. + //! + //! \sa eolMode() + virtual void setEolMode(EolMode mode); + + //! If \a visible is true then end-of-lines are made visible. The default + //! is that they are invisible. + //! + //! \sa eolVisibility() + virtual void setEolVisibility(bool visible); + + //! Sets the folding style for margin \a margin to \a fold. The default + //! style is NoFoldStyle (ie. folding is disabled) and the default margin + //! is 2. + //! + //! \sa folding() + virtual void setFolding(FoldStyle fold, int margin = 2); + + //! Sets the indentation of line \a line to \a indentation characters. + //! + //! \sa indentation() + virtual void setIndentation(int line, int indentation); + + //! Enables or disables, according to \a enable, this display of + //! indentation guides. + //! + //! \sa indentationGuides() + virtual void setIndentationGuides(bool enable); + + //! Set the background colour of indentation guides to \a col. + //! + //! \sa setIndentationGuidesForegroundColor() + virtual void setIndentationGuidesBackgroundColor(const QColor &col); + + //! Set the foreground colour of indentation guides to \a col. + //! + //! \sa setIndentationGuidesBackgroundColor() + virtual void setIndentationGuidesForegroundColor(const QColor &col); + + //! If \a tabs is true then indentations are created using tabs and spaces, + //! rather than just spaces. + //! + //! \sa indentationsUseTabs() + virtual void setIndentationsUseTabs(bool tabs); + + //! Sets the indentation width to \a width characters. If \a width is 0 + //! then the value returned by tabWidth() is used. + //! + //! \sa indentationWidth(), tabWidth() + virtual void setIndentationWidth(int width); + + //! Sets the specific language lexer used to style text to \a lex. If + //! \a lex is 0 then syntax styling is disabled. + //! + //! \sa lexer() + virtual void setLexer(QsciLexer *lexer = 0); + + //! Set the background colour of all margins to \a col. The default is a + //! gray. + //! + //! \sa setMarginsForegroundColor() + virtual void setMarginsBackgroundColor(const QColor &col); + + //! Set the font used in all margins to \a f. + virtual void setMarginsFont(const QFont &f); + + //! Set the foreground colour of all margins to \a col. The default is + //! black. + //! + //! \sa setMarginsBackgroundColor() + virtual void setMarginsForegroundColor(const QColor &col); + + //! Enables or disables, according to \a lnrs, the display of line numbers + //! in margin \a margin. + //! + //! \sa marginLineNumbers(), setMarginType(), SCI_SETMARGINTYPEN + virtual void setMarginLineNumbers(int margin, bool lnrs); + + //! Sets the marker mask of margin \a margin to \a mask. Only those + //! markers whose bit is set in the mask are displayed in the margin. + //! + //! \sa marginMarkerMask(), QsciMarker, SCI_SETMARGINMASKN + virtual void setMarginMarkerMask(int margin, int mask); + + //! Enables or disables, according to \a sens, the sensitivity of margin + //! \a margin to mouse clicks. If the user clicks in a sensitive margin + //! the marginClicked() signal is emitted. + //! + //! \sa marginSensitivity(), marginClicked(), SCI_SETMARGINSENSITIVEN + virtual void setMarginSensitivity(int margin, bool sens); + + //! Sets the width of margin \a margin to \a width pixels. If the width of + //! a margin is 0 then it is not displayed. + //! + //! \sa marginWidth(), SCI_SETMARGINWIDTHN + virtual void setMarginWidth(int margin, int width); + + //! Sets the width of margin \a margin so that it is wide enough to display + //! \a s in the current margin font. + //! + //! \sa marginWidth(), SCI_SETMARGINWIDTHN + virtual void setMarginWidth(int margin, const QString &s); + + //! Sets the modified state of the text edit to \a m. Note that it is only + //! possible to clear the modified state (where \a m is false). Attempts + //! to set the modified state (where \a m is true) are ignored. + //! + //! \sa isModified(), modificationChanged() + virtual void setModified(bool m); + + //! The widget's paper (ie. background) colour is set to \a c. This has no + //! effect if a language lexer has been set. + //! + //! \sa paper() + virtual void setPaper(const QColor &c); + + //! Sets the read-only state of the text edit to \a ro. + //! + //! \sa isReadOnly() + virtual void setReadOnly(bool ro); + + //! Sets the selection which starts at position \a indexFrom in line + //! \a lineFrom and ends at position \a indexTo in line \a lineTo. The + //! cursor is moved to position \a indexTo in \a lineTo. + //! + //! \sa getSelection() + virtual void setSelection(int lineFrom, int indexFrom, int lineTo, + int indexTo); + + //! Sets the background colour, including the alpha component, of selected + //! text to \a col. + //! + //! \sa resetSelectionBackgroundColor(), setSelectionForegroundColor() + virtual void setSelectionBackgroundColor(const QColor &col); + + //! Sets the foreground colour of selected text to \a col. + //! + //! \sa resetSelectionForegroundColor(), setSelectionBackgroundColor() + virtual void setSelectionForegroundColor(const QColor &col); + + //! If \a indent is true then the tab key will indent a line rather than + //! insert a tab character. + //! + //! \sa tabIndents(), backspaceUnindents(), setBackspaceUnindents() + virtual void setTabIndents(bool indent); + + //! Sets the tab width to \a width characters. + //! + //! \sa tabWidth() + virtual void setTabWidth(int width); + + //! Replaces all of the current text with \a text. Note that the + //! undo/redo history is cleared by this function. + //! + //! \sa text() + virtual void setText(const QString &text); + + //! Sets the current text encoding. If \a cp is true then UTF8 is used, + //! otherwise Latin1 is used. + //! + //! \sa isUtf8() + virtual void setUtf8(bool cp); + + //! Sets the visibility of whitespace to mode \a mode. The default is that + //! whitespace is invisible. + //! + //! \sa whitespaceVisibility() + virtual void setWhitespaceVisibility(WhitespaceVisibility mode); + + //! Sets the line wrap mode to \a mode. The default is that lines are not + //! wrapped. + //! + //! \sa wrapMode() + virtual void setWrapMode(WrapMode mode); + + //! Undo the last change or sequence of changes. + //! + //! Scintilla has multiple level undo and redo. It will continue to record + //! undoable actions until memory runs out. Sequences of typing or + //! deleting are compressed into single actions to make it easier to undo + //! and redo at a sensible level of detail. Sequences of actions can be + //! combined into actions that are undone as a unit. These sequences occur + //! between calls to beginUndoAction() and endUndoAction(). These + //! sequences can be nested and only the top level sequences are undone as + //! units. + //! + //! \sa beginUndoAction(), endUndoAction(), isUndoAvailable() + virtual void undo(); + + //! Decreases the indentation of line \a line by an indentation width. + //! + //! \sa indent() + virtual void unindent(int line); + + //! Zooms in on the text by by making the base font size \a range points + //! larger and recalculating all font sizes. + //! + //! \sa zoomOut(), zoomTo() + virtual void zoomIn(int range); + + //! \overload + //! + //! Zooms in on the text by by making the base font size one point larger + //! and recalculating all font sizes. + virtual void zoomIn(); + + //! Zooms out on the text by by making the base font size \a range points + //! smaller and recalculating all font sizes. + //! + //! \sa zoomIn(), zoomTo() + virtual void zoomOut(int range); + + //! \overload + //! + //! Zooms out on the text by by making the base font size one point larger + //! and recalculating all font sizes. + virtual void zoomOut(); + + //! Zooms the text by making the base font size \a size points and + //! recalculating all font sizes. + //! + //! \sa zoomIn(), zoomOut() + virtual void zoomTo(int size); + +signals: + //! This signal is emitted whenever the cursor position changes. \a line + //! contains the line number and \a index contains the character index + //! within the line. + void cursorPositionChanged(int line, int index); + + //! This signal is emitted whenever text is selected or de-selected. + //! \a yes is true if text has been selected and false if text has been + //! deselected. If \a yes is true then copy() can be used to copy the + //! selection to the clipboard. If \a yes is false then copy() does + //! nothing. + //! + //! \sa copy(), selectionChanged() + void copyAvailable(bool yes); + + //! This signal is emitted whenever the user clicks on an indicator. \a + //! line is the number of the line where the user clicked. \a index is the + //! character index within the line. \a state is the state of the modifier + //! keys (Qt::ShiftModifier, Qt::ControlModifier, Qt::AltModifer and + //! Qt::MetaModifier) when the user clicked. + //! + //! \sa indicatorReleased() + void indicatorClicked(int line, int index, Qt::KeyboardModifiers state); + + //! This signal is emitted whenever the user releases the mouse on an + //! indicator. \a line is the number of the line where the user clicked. + //! \a index is the character index within the line. \a state is the state + //! of the modifier keys (Qt::ShiftModifier, Qt::ControlModifier, + //! Qt::AltModifer and Qt::MetaModifier) when the user released the mouse. + //! + //! \sa indicatorClicked() + void indicatorReleased(int line, int index, Qt::KeyboardModifiers state); + + //! This signal is emitted whenever the number of lines of text changes. + void linesChanged(); + + //! This signal is emitted whenever the user clicks on a sensitive margin. + //! \a margin is the margin. \a line is the number of the line where the + //! user clicked. \a state is the state of the modifier keys + //! (Qt::ShiftModifier, Qt::ControlModifier, Qt::AltModifer and + //! Qt::MetaModifier) when the user clicked. + //! + //! \sa marginSensitivity(), setMarginSensitivity() + void marginClicked(int margin, int line, Qt::KeyboardModifiers state); + + //! This signal is emitted whenever the user attempts to modify read-only + //! text. + //! + //! \sa isReadOnly(), setReadOnly() + void modificationAttempted(); + + //! This signal is emitted whenever the modification state of the text + //! changes. \a m is true if the text has been modified. + //! + //! \sa isModified(), setModified() + void modificationChanged(bool m); + + //! This signal is emitted whenever the selection changes. + //! + //! \sa copyAvailable() + void selectionChanged(); + + //! This signal is emitted whenever the text in the text edit changes. + void textChanged(); + + //! This signal is emitted when an item in a user defined list is activated + //! (selected). \a id is the list identifier. \a string is the text of + //! the item. + //! + //! \sa showUserList() + void userListActivated(int id, const QString &string); + +protected: + //! \reimp + virtual bool event(QEvent *e); + + //! \reimp + virtual void changeEvent(QEvent *e); + + //! \reimp + virtual void contextMenuEvent(QContextMenuEvent *e); + +private slots: + void handleCallTipClick(int dir); + void handleCharAdded(int charadded); + void handleIndicatorClick(int pos, int modifiers); + void handleIndicatorRelease(int pos, int modifiers); + void handleMarginClick(int pos, int margin, int modifiers); + void handleModified(int pos, int mtype, const char *text, int len, + int added, int line, int foldNow, int foldPrev, int token, + int annotationLinesAdded); + void handlePropertyChange(const char *prop, const char *val); + void handleSavePointReached(); + void handleSavePointLeft(); + void handleSelectionChanged(bool yes); + void handleAutoCompletionSelection(); + void handleUserListSelection(const char *text, int id); + + void handleStyleColorChange(const QColor &c, int style); + void handleStyleEolFillChange(bool eolfill, int style); + void handleStyleFontChange(const QFont &f, int style); + void handleStylePaperChange(const QColor &c, int style); + + void handleUpdateUI(int updated); + + void delete_selection(); + +private: + void detachLexer(); + + enum IndentState { + isNone, + isKeywordStart, + isBlockStart, + isBlockEnd + }; + + void maintainIndentation(char ch, long pos); + void autoIndentation(char ch, long pos); + void autoIndentLine(long pos, int line, int indent); + int blockIndent(int line); + IndentState getIndentState(int line); + bool rangeIsWhitespace(long spos, long epos); + int findStyledWord(const char *text, int style, const char *words); + + void checkMarker(int &markerNumber); + void checkIndicator(int &indicatorNumber); + static void allocateId(int &id, unsigned &allocated, int min, int max); + int currentIndent() const; + int indentWidth() const; + bool doFind(); + int simpleFind(); + void foldClick(int lineClick, int bstate); + void foldChanged(int line, int levelNow, int levelPrev); + void foldExpand(int &line, bool doExpand, bool force = false, + int visLevels = 0, int level = -1); + void setFoldMarker(int marknr, int mark = SC_MARK_EMPTY); + void setLexerStyle(int style); + void setStylesFont(const QFont &f, int style); + void setEnabledColors(int style, QColor &fore, QColor &back); + + void braceMatch(); + bool findMatchingBrace(long &brace, long &other, BraceMatch mode); + long checkBrace(long pos, int brace_style, bool &colonMode); + void gotoMatchingBrace(bool select); + + void startAutoCompletion(AutoCompletionSource acs, bool checkThresh, + bool choose_single); + + int adjustedCallTipPosition(int ctshift) const; + bool getSeparator(int &pos) const; + QString getWord(int &pos) const; + char getCharacter(int &pos) const; + bool isStartChar(char ch) const; + + bool ensureRW(); + void insertAtPos(const QString &text, int pos); + static int mapModifiers(int modifiers); + + QString wordAtPosition(int position) const; + + ScintillaBytes styleText(const QList &styled_text, + char **styles, int style_offset = 0); + + struct FindState + { + enum Status + { + Finding, + FindingInSelection, + Idle + }; + + FindState() : status(Idle) {} + + Status status; + QString expr; + bool wrap; + bool forward; + int flags; + long startpos, startpos_orig; + long endpos, endpos_orig; + bool show; + }; + + FindState findState; + + unsigned allocatedMarkers; + unsigned allocatedIndicators; + int oldPos; + int ctPos; + bool selText; + FoldStyle fold; + int foldmargin; + bool autoInd; + BraceMatch braceMode; + AutoCompletionSource acSource; + int acThresh; + QStringList wseps; + const char *wchars; + CallTipsPosition call_tips_position; + CallTipsStyle call_tips_style; + int maxCallTips; + QStringList ct_entries; + int ct_cursor; + QList ct_shifts; + AutoCompletionUseSingle use_single; + QPointer lex; + QsciCommandSet *stdCmds; + QsciDocument doc; + QColor nl_text_colour; + QColor nl_paper_colour; + QByteArray explicit_fillups; + bool fillups_enabled; + + // The following allow QsciListBoxQt to distinguish between an + // auto-completion list and a user list, and to return the full selection + // of an auto-completion list. + friend class QsciListBoxQt; + + QString acSelection; + bool isAutoCompletionList() const; + + void set_shortcut(QAction *action, QsciCommand::Command cmd_id) const; + + QsciScintilla(const QsciScintilla &); + QsciScintilla &operator=(const QsciScintilla &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qsciscintillabase.h b/Qt4Qt5/Qsci/qsciscintillabase.h new file mode 100644 index 0000000..46ea34b --- /dev/null +++ b/Qt4Qt5/Qsci/qsciscintillabase.h @@ -0,0 +1,3452 @@ +// This class defines the "official" low-level API. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCISCINTILLABASE_H +#define QSCISCINTILLABASE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include +#include + +#include +#include + +#include + + +QT_BEGIN_NAMESPACE +class QColor; +class QImage; +class QPainter; +class QPixmap; +class QMimeData; +QT_END_NAMESPACE + +class QsciScintillaQt; + + +//! \brief The QsciScintillaBase class implements the Scintilla editor widget +//! and its low-level API. +//! +//! Scintilla (http://www.scintilla.org) is a powerful C++ editor class that +//! supports many features including syntax styling, error indicators, code +//! completion and call tips. It is particularly useful as a programmer's +//! editor. +//! +//! QsciScintillaBase is a port to Qt of Scintilla. It implements the standard +//! Scintilla API which consists of a number of messages each taking up to +//! two arguments. +//! +//! See QsciScintilla for the implementation of a higher level API that is more +//! consistent with the rest of the Qt toolkit. +class QSCINTILLA_EXPORT QsciScintillaBase : public QAbstractScrollArea +{ + Q_OBJECT + +public: + //! The low-level Scintilla API is implemented as a set of messages each of + //! which takes up to two parameters (\a wParam and \a lParam) and + //! optionally return a value. This enum defines all the possible messages. + enum + { + //! + SCI_START = 2000, + + //! + SCI_OPTIONAL_START = 3000, + + //! + SCI_LEXER_START = 4000, + + //! This message appends some text to the end of the document. + //! \a wParam is the length of the text. + //! \a lParam is the text to be appended. + SCI_ADDTEXT = 2001, + + //! + SCI_ADDSTYLEDTEXT = 2002, + + //! + SCI_INSERTTEXT = 2003, + + //! + SCI_CLEARALL = 2004, + + //! + SCI_CLEARDOCUMENTSTYLE = 2005, + + //! + SCI_GETLENGTH = 2006, + + //! + SCI_GETCHARAT = 2007, + + //! This message returns the current position. + //! + //! \sa SCI_SETCURRENTPOS + SCI_GETCURRENTPOS = 2008, + + //! This message returns the anchor. + //! + //! \sa SCI_SETANCHOR + SCI_GETANCHOR = 2009, + + //! + SCI_GETSTYLEAT = 2010, + + //! + SCI_REDO = 2011, + + //! + SCI_SETUNDOCOLLECTION = 2012, + + //! + SCI_SELECTALL = 2013, + + //! This message marks the current state of the text as the the save + //! point. This is usually done when the text is saved or loaded. + //! + //! \sa SCN_SAVEPOINTREACHED(), SCN_SAVEPOINTLEFT() + SCI_SETSAVEPOINT = 2014, + + //! + SCI_GETSTYLEDTEXT = 2015, + + //! + SCI_CANREDO = 2016, + + //! This message returns the line that contains a particular instance + //! of a marker. + //! \a wParam is the handle of the marker. + //! + //! \sa SCI_MARKERADD + SCI_MARKERLINEFROMHANDLE = 2017, + + //! This message removes a particular instance of a marker. + //! \a wParam is the handle of the marker. + //! + //! \sa SCI_MARKERADD + SCI_MARKERDELETEHANDLE = 2018, + + //! + SCI_GETUNDOCOLLECTION = 2019, + + //! + SCI_GETVIEWWS = 2020, + + //! + SCI_SETVIEWWS = 2021, + + //! + SCI_POSITIONFROMPOINT = 2022, + + //! + SCI_POSITIONFROMPOINTCLOSE = 2023, + + //! + SCI_GOTOLINE = 2024, + + //! This message clears the current selection and sets the current + //! position. + //! \a wParam is the new current position. + //! + //! \sa SCI_SETCURRENTPOS + SCI_GOTOPOS = 2025, + + //! This message sets the anchor. + //! \a wParam is the new anchor. + //! + //! \sa SCI_GETANCHOR + SCI_SETANCHOR = 2026, + + //! + SCI_GETCURLINE = 2027, + + //! This message returns the character position of the start of the + //! text that needs to be syntax styled. + //! + //! \sa SCN_STYLENEEDED() + SCI_GETENDSTYLED = 2028, + + //! + SCI_CONVERTEOLS = 2029, + + //! + SCI_GETEOLMODE = 2030, + + //! + SCI_SETEOLMODE = 2031, + + //! + SCI_STARTSTYLING = 2032, + + //! + SCI_SETSTYLING = 2033, + + //! + SCI_GETBUFFEREDDRAW = 2034, + + //! + SCI_SETBUFFEREDDRAW = 2035, + + //! + SCI_SETTABWIDTH = 2036, + + //! + SCI_GETTABWIDTH = 2121, + + //! + SCI_SETCODEPAGE = 2037, + + //! This message sets the symbol used to draw one of 32 markers. Some + //! markers have pre-defined uses, see the SC_MARKNUM_* values. + //! \a wParam is the number of the marker. + //! \a lParam is the marker symbol and is one of the SC_MARK_* values. + //! + //! \sa SCI_MARKERADD, SCI_MARKERDEFINEPIXMAP, + //! SCI_MARKERDEFINERGBAIMAGE + SCI_MARKERDEFINE = 2040, + + //! This message sets the foreground colour used to draw a marker. A + //! colour is represented as a 24 bit value. The 8 least significant + //! bits correspond to red, the middle 8 bits correspond to green, and + //! the 8 most significant bits correspond to blue. The default value + //! is 0x000000. + //! \a wParam is the number of the marker. + //! \a lParam is the colour. + //! + //! \sa SCI_MARKERSETBACK + SCI_MARKERSETFORE = 2041, + + //! This message sets the background colour used to draw a marker. A + //! colour is represented as a 24 bit value. The 8 least significant + //! bits correspond to red, the middle 8 bits correspond to green, and + //! the 8 most significant bits correspond to blue. The default value + //! is 0xffffff. + //! \a wParam is the number of the marker. + //! \a lParam is the colour. + //! + //! \sa SCI_MARKERSETFORE + SCI_MARKERSETBACK = 2042, + + //! This message adds a marker to a line. A handle for the marker is + //! returned which can be used to track the marker's position. + //! \a wParam is the line number. + //! \a lParam is the number of the marker. + //! + //! \sa SCI_MARKERDELETE, SCI_MARKERDELETEALL, + //! SCI_MARKERDELETEHANDLE + SCI_MARKERADD = 2043, + + //! This message deletes a marker from a line. + //! \a wParam is the line number. + //! \a lParam is the number of the marker. + //! + //! \sa SCI_MARKERADD, SCI_MARKERDELETEALL + SCI_MARKERDELETE = 2044, + + //! This message deletes all occurences of a marker. + //! \a wParam is the number of the marker. If \a wParam is -1 then all + //! markers are removed. + //! + //! \sa SCI_MARKERADD, SCI_MARKERDELETE + SCI_MARKERDELETEALL = 2045, + + //! This message returns the 32 bit mask of markers at a line. + //! \a wParam is the line number. + SCI_MARKERGET = 2046, + + //! This message looks for the next line to contain at least one marker + //! contained in a 32 bit mask of markers and returns the line number. + //! \a wParam is the line number to start the search from. + //! \a lParam is the mask of markers to search for. + //! + //! \sa SCI_MARKERPREVIOUS + SCI_MARKERNEXT = 2047, + + //! This message looks for the previous line to contain at least one + //! marker contained in a 32 bit mask of markers and returns the line + //! number. + //! \a wParam is the line number to start the search from. + //! \a lParam is the mask of markers to search for. + //! + //! \sa SCI_MARKERNEXT + SCI_MARKERPREVIOUS = 2048, + + //! This message sets the symbol used to draw one of the 32 markers to + //! a pixmap. Pixmaps use the SC_MARK_PIXMAP marker symbol. + //! \a wParam is the number of the marker. + //! \a lParam is a pointer to a QPixmap instance. Note that in other + //! ports of Scintilla this is a pointer to either raw or textual XPM + //! image data. + //! + //! \sa SCI_MARKERDEFINE, SCI_MARKERDEFINERGBAIMAGE + SCI_MARKERDEFINEPIXMAP = 2049, + + //! This message sets what can be displayed in a margin. + //! \a wParam is the number of the margin. + //! \a lParam is the logical or of the SC_MARGIN_* values. + //! + //! \sa SCI_GETMARGINTYPEN + SCI_SETMARGINTYPEN = 2240, + + //! This message returns what can be displayed in a margin. + //! \a wParam is the number of the margin. + //! + //! \sa SCI_SETMARGINTYPEN + SCI_GETMARGINTYPEN = 2241, + + //! This message sets the width of a margin in pixels. + //! \a wParam is the number of the margin. + //! \a lParam is the new margin width. + //! + //! \sa SCI_GETMARGINWIDTHN + SCI_SETMARGINWIDTHN = 2242, + + //! This message returns the width of a margin in pixels. + //! \a wParam is the number of the margin. + //! + //! \sa SCI_SETMARGINWIDTHN + SCI_GETMARGINWIDTHN = 2243, + + //! This message sets the mask of a margin. The mask is a 32 value + //! with one bit for each possible marker. If a bit is set then the + //! corresponding marker is displayed. By default, all markers are + //! displayed. + //! \a wParam is the number of the margin. + //! \a lParam is the new margin mask. + //! + //! \sa SCI_GETMARGINMASKN, SCI_MARKERDEFINE + SCI_SETMARGINMASKN = 2244, + + //! This message returns the mask of a margin. + //! \a wParam is the number of the margin. + //! + //! \sa SCI_SETMARGINMASKN + SCI_GETMARGINMASKN = 2245, + + //! This message sets the sensitivity of a margin to mouse clicks. + //! \a wParam is the number of the margin. + //! \a lParam is non-zero to make the margin sensitive to mouse clicks. + //! When the mouse is clicked the SCN_MARGINCLICK() signal is emitted. + //! + //! \sa SCI_GETMARGINSENSITIVEN, SCN_MARGINCLICK() + SCI_SETMARGINSENSITIVEN = 2246, + + //! This message returns the sensitivity of a margin to mouse clicks. + //! \a wParam is the number of the margin. + //! + //! \sa SCI_SETMARGINSENSITIVEN, SCN_MARGINCLICK() + SCI_GETMARGINSENSITIVEN = 2247, + + //! This message sets the cursor shape displayed over a margin. + //! \a wParam is the number of the margin. + //! \a lParam is the cursor shape, normally either SC_CURSORARROW or + //! SC_CURSORREVERSEARROW. Note that, currently, QScintilla implements + //! both of these as Qt::ArrowCursor. + //! + //! \sa SCI_GETMARGINCURSORN + SCI_SETMARGINCURSORN = 2248, + + //! This message returns the cursor shape displayed over a margin. + //! \a wParam is the number of the margin. + //! + //! \sa SCI_SETMARGINCURSORN + SCI_GETMARGINCURSORN = 2249, + + //! + SCI_STYLECLEARALL = 2050, + + //! + SCI_STYLESETFORE = 2051, + + //! + SCI_STYLESETBACK = 2052, + + //! + SCI_STYLESETBOLD = 2053, + + //! + SCI_STYLESETITALIC = 2054, + + //! + SCI_STYLESETSIZE = 2055, + + //! + SCI_STYLESETFONT = 2056, + + //! + SCI_STYLESETEOLFILLED = 2057, + + //! + SCI_STYLERESETDEFAULT = 2058, + + //! + SCI_STYLESETUNDERLINE = 2059, + + //! + SCI_STYLESETCASE = 2060, + + //! + SCI_STYLESETSIZEFRACTIONAL = 2061, + + //! + SCI_STYLEGETSIZEFRACTIONAL = 2062, + + //! + SCI_STYLESETWEIGHT = 2063, + + //! + SCI_STYLEGETWEIGHT = 2064, + + //! + SCI_STYLESETCHARACTERSET = 2066, + + //! + SCI_SETSELFORE = 2067, + + //! + SCI_SETSELBACK = 2068, + + //! + SCI_SETCARETFORE = 2069, + + //! + SCI_ASSIGNCMDKEY = 2070, + + //! + SCI_CLEARCMDKEY = 2071, + + //! + SCI_CLEARALLCMDKEYS = 2072, + + //! + SCI_SETSTYLINGEX = 2073, + + //! + SCI_STYLESETVISIBLE = 2074, + + //! + SCI_GETCARETPERIOD = 2075, + + //! + SCI_SETCARETPERIOD = 2076, + + //! + SCI_SETWORDCHARS = 2077, + + //! + SCI_BEGINUNDOACTION = 2078, + + //! + SCI_ENDUNDOACTION = 2079, + + //! + SCI_INDICSETSTYLE = 2080, + + //! + SCI_INDICGETSTYLE = 2081, + + //! + SCI_INDICSETFORE = 2082, + + //! + SCI_INDICGETFORE = 2083, + + //! + SCI_SETWHITESPACEFORE = 2084, + + //! + SCI_SETWHITESPACEBACK = 2085, + + //! + SCI_SETWHITESPACESIZE = 2086, + + //! + SCI_GETWHITESPACESIZE = 2087, + + //! + SCI_SETSTYLEBITS = 2090, + + //! + SCI_GETSTYLEBITS = 2091, + + //! + SCI_SETLINESTATE = 2092, + + //! + SCI_GETLINESTATE = 2093, + + //! + SCI_GETMAXLINESTATE = 2094, + + //! + SCI_GETCARETLINEVISIBLE = 2095, + + //! + SCI_SETCARETLINEVISIBLE = 2096, + + //! + SCI_GETCARETLINEBACK = 2097, + + //! + SCI_SETCARETLINEBACK = 2098, + + //! + SCI_STYLESETCHANGEABLE = 2099, + + //! + SCI_AUTOCSHOW = 2100, + + //! + SCI_AUTOCCANCEL = 2101, + + //! + SCI_AUTOCACTIVE = 2102, + + //! + SCI_AUTOCPOSSTART = 2103, + + //! + SCI_AUTOCCOMPLETE = 2104, + + //! + SCI_AUTOCSTOPS = 2105, + + //! + SCI_AUTOCSETSEPARATOR = 2106, + + //! + SCI_AUTOCGETSEPARATOR = 2107, + + //! + SCI_AUTOCSELECT = 2108, + + //! + SCI_AUTOCSETCANCELATSTART = 2110, + + //! + SCI_AUTOCGETCANCELATSTART = 2111, + + //! + SCI_AUTOCSETFILLUPS = 2112, + + //! + SCI_AUTOCSETCHOOSESINGLE = 2113, + + //! + SCI_AUTOCGETCHOOSESINGLE = 2114, + + //! + SCI_AUTOCSETIGNORECASE = 2115, + + //! + SCI_AUTOCGETIGNORECASE = 2116, + + //! + SCI_USERLISTSHOW = 2117, + + //! + SCI_AUTOCSETAUTOHIDE = 2118, + + //! + SCI_AUTOCGETAUTOHIDE = 2119, + + //! + SCI_AUTOCSETDROPRESTOFWORD = 2270, + + //! + SCI_AUTOCGETDROPRESTOFWORD = 2271, + + //! + SCI_SETINDENT = 2122, + + //! + SCI_GETINDENT = 2123, + + //! + SCI_SETUSETABS = 2124, + + //! + SCI_GETUSETABS = 2125, + + //! + SCI_SETLINEINDENTATION = 2126, + + //! + SCI_GETLINEINDENTATION = 2127, + + //! + SCI_GETLINEINDENTPOSITION = 2128, + + //! + SCI_GETCOLUMN = 2129, + + //! + SCI_SETHSCROLLBAR = 2130, + + //! + SCI_GETHSCROLLBAR = 2131, + + //! + SCI_SETINDENTATIONGUIDES = 2132, + + //! + SCI_GETINDENTATIONGUIDES = 2133, + + //! + SCI_SETHIGHLIGHTGUIDE = 2134, + + //! + SCI_GETHIGHLIGHTGUIDE = 2135, + + //! + SCI_GETLINEENDPOSITION = 2136, + + //! + SCI_GETCODEPAGE = 2137, + + //! + SCI_GETCARETFORE = 2138, + + //! This message returns a non-zero value if the document is read-only. + //! + //! \sa SCI_SETREADONLY + SCI_GETREADONLY = 2140, + + //! This message sets the current position. + //! \a wParam is the new current position. + //! + //! \sa SCI_GETCURRENTPOS + SCI_SETCURRENTPOS = 2141, + + //! + SCI_SETSELECTIONSTART = 2142, + + //! + SCI_GETSELECTIONSTART = 2143, + + //! + SCI_SETSELECTIONEND = 2144, + + //! + SCI_GETSELECTIONEND = 2145, + + //! + SCI_SETPRINTMAGNIFICATION = 2146, + + //! + SCI_GETPRINTMAGNIFICATION = 2147, + + //! + SCI_SETPRINTCOLOURMODE = 2148, + + //! + SCI_GETPRINTCOLOURMODE = 2149, + + //! + SCI_FINDTEXT = 2150, + + //! + SCI_FORMATRANGE = 2151, + + //! + SCI_GETFIRSTVISIBLELINE = 2152, + + //! + SCI_GETLINE = 2153, + + //! + SCI_GETLINECOUNT = 2154, + + //! + SCI_SETMARGINLEFT = 2155, + + //! + SCI_GETMARGINLEFT = 2156, + + //! + SCI_SETMARGINRIGHT = 2157, + + //! + SCI_GETMARGINRIGHT = 2158, + + //! This message returns a non-zero value if the document has been + //! modified. + SCI_GETMODIFY = 2159, + + //! + SCI_SETSEL = 2160, + + //! + SCI_GETSELTEXT = 2161, + + //! + SCI_GETTEXTRANGE = 2162, + + //! + SCI_HIDESELECTION = 2163, + + //! + SCI_POINTXFROMPOSITION = 2164, + + //! + SCI_POINTYFROMPOSITION = 2165, + + //! + SCI_LINEFROMPOSITION = 2166, + + //! + SCI_POSITIONFROMLINE = 2167, + + //! + SCI_LINESCROLL = 2168, + + //! + SCI_SCROLLCARET = 2169, + + //! + SCI_REPLACESEL = 2170, + + //! This message sets the read-only state of the document. + //! \a wParam is the new read-only state of the document. + //! + //! \sa SCI_GETREADONLY + SCI_SETREADONLY = 2171, + + //! + SCI_NULL = 2172, + + //! + SCI_CANPASTE = 2173, + + //! + SCI_CANUNDO = 2174, + + //! This message empties the undo buffer. + SCI_EMPTYUNDOBUFFER = 2175, + + //! + SCI_UNDO = 2176, + + //! + SCI_CUT = 2177, + + //! + SCI_COPY = 2178, + + //! + SCI_PASTE = 2179, + + //! + SCI_CLEAR = 2180, + + //! This message sets the text of the document. + //! \a wParam is unused. + //! \a lParam is the new text of the document. + //! + //! \sa SCI_GETTEXT + SCI_SETTEXT = 2181, + + //! This message gets the text of the document. + //! \a wParam is size of the buffer that the text is copied to. + //! \a lParam is the address of the buffer that the text is copied to. + //! + //! \sa SCI_SETTEXT + SCI_GETTEXT = 2182, + + //! This message returns the length of the document. + SCI_GETTEXTLENGTH = 2183, + + //! + SCI_GETDIRECTFUNCTION = 2184, + + //! + SCI_GETDIRECTPOINTER = 2185, + + //! + SCI_SETOVERTYPE = 2186, + + //! + SCI_GETOVERTYPE = 2187, + + //! + SCI_SETCARETWIDTH = 2188, + + //! + SCI_GETCARETWIDTH = 2189, + + //! + SCI_SETTARGETSTART = 2190, + + //! + SCI_GETTARGETSTART = 2191, + + //! + SCI_SETTARGETEND = 2192, + + //! + SCI_GETTARGETEND = 2193, + + //! + SCI_REPLACETARGET = 2194, + + //! + SCI_REPLACETARGETRE = 2195, + + //! + SCI_SEARCHINTARGET = 2197, + + //! + SCI_SETSEARCHFLAGS = 2198, + + //! + SCI_GETSEARCHFLAGS = 2199, + + //! + SCI_CALLTIPSHOW = 2200, + + //! + SCI_CALLTIPCANCEL = 2201, + + //! + SCI_CALLTIPACTIVE = 2202, + + //! + SCI_CALLTIPPOSSTART = 2203, + + //! + SCI_CALLTIPSETHLT = 2204, + + //! + SCI_CALLTIPSETBACK = 2205, + + //! + SCI_CALLTIPSETFORE = 2206, + + //! + SCI_CALLTIPSETFOREHLT = 2207, + + //! + SCI_AUTOCSETMAXWIDTH = 2208, + + //! + SCI_AUTOCGETMAXWIDTH = 2209, + + //! This message is not implemented. + SCI_AUTOCSETMAXHEIGHT = 2210, + + //! + SCI_AUTOCGETMAXHEIGHT = 2211, + + //! + SCI_CALLTIPUSESTYLE = 2212, + + //! + SCI_CALLTIPSETPOSITION = 2213, + + //! + SCI_VISIBLEFROMDOCLINE = 2220, + + //! + SCI_DOCLINEFROMVISIBLE = 2221, + + //! + SCI_SETFOLDLEVEL = 2222, + + //! + SCI_GETFOLDLEVEL = 2223, + + //! + SCI_GETLASTCHILD = 2224, + + //! + SCI_GETFOLDPARENT = 2225, + + //! + SCI_SHOWLINES = 2226, + + //! + SCI_HIDELINES = 2227, + + //! + SCI_GETLINEVISIBLE = 2228, + + //! + SCI_SETFOLDEXPANDED = 2229, + + //! + SCI_GETFOLDEXPANDED = 2230, + + //! + SCI_TOGGLEFOLD = 2231, + + //! + SCI_ENSUREVISIBLE = 2232, + + //! + SCI_SETFOLDFLAGS = 2233, + + //! + SCI_ENSUREVISIBLEENFORCEPOLICY = 2234, + + //! + SCI_WRAPCOUNT = 2235, + + //! + SCI_GETALLLINESVISIBLE = 2236, + + //! + SCI_FOLDLINE = 2237, + + //! + SCI_FOLDCHILDREN = 2238, + + //! + SCI_EXPANDCHILDREN = 2239, + + //! + SCI_SETTABINDENTS = 2260, + + //! + SCI_GETTABINDENTS = 2261, + + //! + SCI_SETBACKSPACEUNINDENTS = 2262, + + //! + SCI_GETBACKSPACEUNINDENTS = 2263, + + //! + SCI_SETMOUSEDWELLTIME = 2264, + + //! + SCI_GETMOUSEDWELLTIME = 2265, + + //! + SCI_WORDSTARTPOSITION = 2266, + + //! + SCI_WORDENDPOSITION = 2267, + + //! + SCI_SETWRAPMODE = 2268, + + //! + SCI_GETWRAPMODE = 2269, + + //! + SCI_SETLAYOUTCACHE = 2272, + + //! + SCI_GETLAYOUTCACHE = 2273, + + //! + SCI_SETSCROLLWIDTH = 2274, + + //! + SCI_GETSCROLLWIDTH = 2275, + + //! This message returns the width of some text when rendered in a + //! particular style. + //! \a wParam is the style number and is one of the STYLE_* values or + //! one of the styles defined by a lexer. + //! \a lParam is a pointer to the text. + SCI_TEXTWIDTH = 2276, + + //! + SCI_SETENDATLASTLINE = 2277, + + //! + SCI_GETENDATLASTLINE = 2278, + + //! + SCI_TEXTHEIGHT = 2279, + + //! + SCI_SETVSCROLLBAR = 2280, + + //! + SCI_GETVSCROLLBAR = 2281, + + //! + SCI_APPENDTEXT = 2282, + + //! + SCI_GETTWOPHASEDRAW = 2283, + + //! + SCI_SETTWOPHASEDRAW = 2284, + + //! + SCI_AUTOCGETTYPESEPARATOR = 2285, + + //! + SCI_AUTOCSETTYPESEPARATOR = 2286, + + //! + SCI_TARGETFROMSELECTION = 2287, + + //! + SCI_LINESJOIN = 2288, + + //! + SCI_LINESSPLIT = 2289, + + //! + SCI_SETFOLDMARGINCOLOUR = 2290, + + //! + SCI_SETFOLDMARGINHICOLOUR = 2291, + + //! + SCI_MARKERSETBACKSELECTED = 2292, + + //! + SCI_MARKERENABLEHIGHLIGHT = 2293, + + //! + SCI_LINEDOWN = 2300, + + //! + SCI_LINEDOWNEXTEND = 2301, + + //! + SCI_LINEUP = 2302, + + //! + SCI_LINEUPEXTEND = 2303, + + //! + SCI_CHARLEFT = 2304, + + //! + SCI_CHARLEFTEXTEND = 2305, + + //! + SCI_CHARRIGHT = 2306, + + //! + SCI_CHARRIGHTEXTEND = 2307, + + //! + SCI_WORDLEFT = 2308, + + //! + SCI_WORDLEFTEXTEND = 2309, + + //! + SCI_WORDRIGHT = 2310, + + //! + SCI_WORDRIGHTEXTEND = 2311, + + //! + SCI_HOME = 2312, + + //! + SCI_HOMEEXTEND = 2313, + + //! + SCI_LINEEND = 2314, + + //! + SCI_LINEENDEXTEND = 2315, + + //! + SCI_DOCUMENTSTART = 2316, + + //! + SCI_DOCUMENTSTARTEXTEND = 2317, + + //! + SCI_DOCUMENTEND = 2318, + + //! + SCI_DOCUMENTENDEXTEND = 2319, + + //! + SCI_PAGEUP = 2320, + + //! + SCI_PAGEUPEXTEND = 2321, + + //! + SCI_PAGEDOWN = 2322, + + //! + SCI_PAGEDOWNEXTEND = 2323, + + //! + SCI_EDITTOGGLEOVERTYPE = 2324, + + //! + SCI_CANCEL = 2325, + + //! + SCI_DELETEBACK = 2326, + + //! + SCI_TAB = 2327, + + //! + SCI_BACKTAB = 2328, + + //! + SCI_NEWLINE = 2329, + + //! + SCI_FORMFEED = 2330, + + //! + SCI_VCHOME = 2331, + + //! + SCI_VCHOMEEXTEND = 2332, + + //! + SCI_ZOOMIN = 2333, + + //! + SCI_ZOOMOUT = 2334, + + //! + SCI_DELWORDLEFT = 2335, + + //! + SCI_DELWORDRIGHT = 2336, + + //! + SCI_LINECUT = 2337, + + //! + SCI_LINEDELETE = 2338, + + //! + SCI_LINETRANSPOSE = 2339, + + //! + SCI_LOWERCASE = 2340, + + //! + SCI_UPPERCASE = 2341, + + //! + SCI_LINESCROLLDOWN = 2342, + + //! + SCI_LINESCROLLUP = 2343, + + //! + SCI_DELETEBACKNOTLINE = 2344, + + //! + SCI_HOMEDISPLAY = 2345, + + //! + SCI_HOMEDISPLAYEXTEND = 2346, + + //! + SCI_LINEENDDISPLAY = 2347, + + //! + SCI_LINEENDDISPLAYEXTEND = 2348, + + //! + SCI_MOVECARETINSIDEVIEW = 2401, + + //! + SCI_LINELENGTH = 2350, + + //! + SCI_BRACEHIGHLIGHT = 2351, + + //! + SCI_BRACEBADLIGHT = 2352, + + //! + SCI_BRACEMATCH = 2353, + + //! + SCI_GETVIEWEOL = 2355, + + //! + SCI_SETVIEWEOL = 2356, + + //! + SCI_GETDOCPOINTER = 2357, + + //! + SCI_SETDOCPOINTER = 2358, + + //! + SCI_SETMODEVENTMASK = 2359, + + //! + SCI_GETEDGECOLUMN = 2360, + + //! + SCI_SETEDGECOLUMN = 2361, + + //! + SCI_GETEDGEMODE = 2362, + + //! + SCI_SETEDGEMODE = 2363, + + //! + SCI_GETEDGECOLOUR = 2364, + + //! + SCI_SETEDGECOLOUR = 2365, + + //! + SCI_SEARCHANCHOR = 2366, + + //! + SCI_SEARCHNEXT = 2367, + + //! + SCI_SEARCHPREV = 2368, + + //! + SCI_LINESONSCREEN = 2370, + + //! + SCI_USEPOPUP = 2371, + + //! + SCI_SELECTIONISRECTANGLE = 2372, + + //! + SCI_SETZOOM = 2373, + + //! + SCI_GETZOOM = 2374, + + //! + SCI_CREATEDOCUMENT = 2375, + + //! + SCI_ADDREFDOCUMENT = 2376, + + //! + SCI_RELEASEDOCUMENT = 2377, + + //! + SCI_GETMODEVENTMASK = 2378, + + //! + SCI_SETFOCUS = 2380, + + //! + SCI_GETFOCUS = 2381, + + //! + SCI_SETSTATUS = 2382, + + //! + SCI_GETSTATUS = 2383, + + //! + SCI_SETMOUSEDOWNCAPTURES = 2384, + + //! + SCI_GETMOUSEDOWNCAPTURES = 2385, + + //! + SCI_SETCURSOR = 2386, + + //! + SCI_GETCURSOR = 2387, + + //! + SCI_SETCONTROLCHARSYMBOL = 2388, + + //! + SCI_GETCONTROLCHARSYMBOL = 2389, + + //! + SCI_WORDPARTLEFT = 2390, + + //! + SCI_WORDPARTLEFTEXTEND = 2391, + + //! + SCI_WORDPARTRIGHT = 2392, + + //! + SCI_WORDPARTRIGHTEXTEND = 2393, + + //! + SCI_SETVISIBLEPOLICY = 2394, + + //! + SCI_DELLINELEFT = 2395, + + //! + SCI_DELLINERIGHT = 2396, + + //! + SCI_SETXOFFSET = 2397, + + //! + SCI_GETXOFFSET = 2398, + + //! + SCI_CHOOSECARETX = 2399, + + //! + SCI_GRABFOCUS = 2400, + + //! + SCI_SETXCARETPOLICY = 2402, + + //! + SCI_SETYCARETPOLICY = 2403, + + //! + SCI_LINEDUPLICATE = 2404, + + //! This message takes a copy of an image and registers it so that it + //! can be refered to by a unique integer identifier. + //! \a wParam is the image's identifier. + //! \a lParam is a pointer to a QPixmap instance. Note that in other + //! ports of Scintilla this is a pointer to either raw or textual XPM + //! image data. + //! + //! \sa SCI_CLEARREGISTEREDIMAGES, SCI_REGISTERRGBAIMAGE + SCI_REGISTERIMAGE = 2405, + + //! + SCI_SETPRINTWRAPMODE = 2406, + + //! + SCI_GETPRINTWRAPMODE = 2407, + + //! This message de-registers all currently registered images. + //! + //! \sa SCI_REGISTERIMAGE, SCI_REGISTERRGBAIMAGE + SCI_CLEARREGISTEREDIMAGES = 2408, + + //! + SCI_STYLESETHOTSPOT = 2409, + + //! + SCI_SETHOTSPOTACTIVEFORE = 2410, + + //! + SCI_SETHOTSPOTACTIVEBACK = 2411, + + //! + SCI_SETHOTSPOTACTIVEUNDERLINE = 2412, + + //! + SCI_PARADOWN = 2413, + + //! + SCI_PARADOWNEXTEND = 2414, + + //! + SCI_PARAUP = 2415, + + //! + SCI_PARAUPEXTEND = 2416, + + //! + SCI_POSITIONBEFORE = 2417, + + //! + SCI_POSITIONAFTER = 2418, + + //! + SCI_COPYRANGE = 2419, + + //! + SCI_COPYTEXT = 2420, + + //! + SCI_SETHOTSPOTSINGLELINE = 2421, + + //! + SCI_SETSELECTIONMODE = 2422, + + //! + SCI_GETSELECTIONMODE = 2423, + + //! + SCI_GETLINESELSTARTPOSITION = 2424, + + //! + SCI_GETLINESELENDPOSITION = 2425, + + //! + SCI_LINEDOWNRECTEXTEND = 2426, + + //! + SCI_LINEUPRECTEXTEND = 2427, + + //! + SCI_CHARLEFTRECTEXTEND = 2428, + + //! + SCI_CHARRIGHTRECTEXTEND = 2429, + + //! + SCI_HOMERECTEXTEND = 2430, + + //! + SCI_VCHOMERECTEXTEND = 2431, + + //! + SCI_LINEENDRECTEXTEND = 2432, + + //! + SCI_PAGEUPRECTEXTEND = 2433, + + //! + SCI_PAGEDOWNRECTEXTEND = 2434, + + //! + SCI_STUTTEREDPAGEUP = 2435, + + //! + SCI_STUTTEREDPAGEUPEXTEND = 2436, + + //! + SCI_STUTTEREDPAGEDOWN = 2437, + + //! + SCI_STUTTEREDPAGEDOWNEXTEND = 2438, + + //! + SCI_WORDLEFTEND = 2439, + + //! + SCI_WORDLEFTENDEXTEND = 2440, + + //! + SCI_WORDRIGHTEND = 2441, + + //! + SCI_WORDRIGHTENDEXTEND = 2442, + + //! + SCI_SETWHITESPACECHARS = 2443, + + //! + SCI_SETCHARSDEFAULT = 2444, + + //! + SCI_AUTOCGETCURRENT = 2445, + + //! + SCI_ALLOCATE = 2446, + + //! + SCI_HOMEWRAP = 2349, + + //! + SCI_HOMEWRAPEXTEND = 2450, + + //! + SCI_LINEENDWRAP = 2451, + + //! + SCI_LINEENDWRAPEXTEND = 2452, + + //! + SCI_VCHOMEWRAP = 2453, + + //! + SCI_VCHOMEWRAPEXTEND = 2454, + + //! + SCI_LINECOPY = 2455, + + //! + SCI_FINDCOLUMN = 2456, + + //! + SCI_GETCARETSTICKY = 2457, + + //! + SCI_SETCARETSTICKY = 2458, + + //! + SCI_TOGGLECARETSTICKY = 2459, + + //! + SCI_SETWRAPVISUALFLAGS = 2460, + + //! + SCI_GETWRAPVISUALFLAGS = 2461, + + //! + SCI_SETWRAPVISUALFLAGSLOCATION = 2462, + + //! + SCI_GETWRAPVISUALFLAGSLOCATION = 2463, + + //! + SCI_SETWRAPSTARTINDENT = 2464, + + //! + SCI_GETWRAPSTARTINDENT = 2465, + + //! + SCI_MARKERADDSET = 2466, + + //! + SCI_SETPASTECONVERTENDINGS = 2467, + + //! + SCI_GETPASTECONVERTENDINGS = 2468, + + //! + SCI_SELECTIONDUPLICATE = 2469, + + //! + SCI_SETCARETLINEBACKALPHA = 2470, + + //! + SCI_GETCARETLINEBACKALPHA = 2471, + + //! + SCI_SETWRAPINDENTMODE = 2472, + + //! + SCI_GETWRAPINDENTMODE = 2473, + + //! + SCI_MARKERSETALPHA = 2476, + + //! + SCI_GETSELALPHA = 2477, + + //! + SCI_SETSELALPHA = 2478, + + //! + SCI_GETSELEOLFILLED = 2479, + + //! + SCI_SETSELEOLFILLED = 2480, + + //! + SCI_STYLEGETFORE = 2481, + + //! + SCI_STYLEGETBACK = 2482, + + //! + SCI_STYLEGETBOLD = 2483, + + //! + SCI_STYLEGETITALIC = 2484, + + //! + SCI_STYLEGETSIZE = 2485, + + //! + SCI_STYLEGETFONT = 2486, + + //! + SCI_STYLEGETEOLFILLED = 2487, + + //! + SCI_STYLEGETUNDERLINE = 2488, + + //! + SCI_STYLEGETCASE = 2489, + + //! + SCI_STYLEGETCHARACTERSET = 2490, + + //! + SCI_STYLEGETVISIBLE = 2491, + + //! + SCI_STYLEGETCHANGEABLE = 2492, + + //! + SCI_STYLEGETHOTSPOT = 2493, + + //! + SCI_GETHOTSPOTACTIVEFORE = 2494, + + //! + SCI_GETHOTSPOTACTIVEBACK = 2495, + + //! + SCI_GETHOTSPOTACTIVEUNDERLINE = 2496, + + //! + SCI_GETHOTSPOTSINGLELINE = 2497, + + //! + SCI_BRACEHIGHLIGHTINDICATOR = 2498, + + //! + SCI_BRACEBADLIGHTINDICATOR = 2499, + + //! + SCI_SETINDICATORCURRENT = 2500, + + //! + SCI_GETINDICATORCURRENT = 2501, + + //! + SCI_SETINDICATORVALUE = 2502, + + //! + SCI_GETINDICATORVALUE = 2503, + + //! + SCI_INDICATORFILLRANGE = 2504, + + //! + SCI_INDICATORCLEARRANGE = 2505, + + //! + SCI_INDICATORALLONFOR = 2506, + + //! + SCI_INDICATORVALUEAT = 2507, + + //! + SCI_INDICATORSTART = 2508, + + //! + SCI_INDICATOREND = 2509, + + //! + SCI_INDICSETUNDER = 2510, + + //! + SCI_INDICGETUNDER = 2511, + + //! + SCI_SETCARETSTYLE = 2512, + + //! + SCI_GETCARETSTYLE = 2513, + + //! + SCI_SETPOSITIONCACHE = 2514, + + //! + SCI_GETPOSITIONCACHE = 2515, + + //! + SCI_SETSCROLLWIDTHTRACKING = 2516, + + //! + SCI_GETSCROLLWIDTHTRACKING = 2517, + + //! + SCI_DELWORDRIGHTEND = 2518, + + //! This message copies the selection. If the selection is empty then + //! copy the line with the caret. + SCI_COPYALLOWLINE = 2519, + + //! This message returns a pointer to the document text. Any + //! subsequent message will invalidate the pointer. + SCI_GETCHARACTERPOINTER = 2520, + + //! + SCI_SETKEYSUNICODE = 2521, + + //! + SCI_GETKEYSUNICODE = 2522, + + //! + SCI_INDICSETALPHA = 2523, + + //! + SCI_INDICGETALPHA = 2524, + + //! + SCI_SETEXTRAASCENT = 2525, + + //! + SCI_GETEXTRAASCENT = 2526, + + //! + SCI_SETEXTRADESCENT = 2527, + + //! + SCI_GETEXTRADESCENT = 2528, + + //! + SCI_MARKERSYMBOLDEFINED = 2529, + + //! + SCI_MARGINSETTEXT = 2530, + + //! + SCI_MARGINGETTEXT = 2531, + + //! + SCI_MARGINSETSTYLE = 2532, + + //! + SCI_MARGINGETSTYLE = 2533, + + //! + SCI_MARGINSETSTYLES = 2534, + + //! + SCI_MARGINGETSTYLES = 2535, + + //! + SCI_MARGINTEXTCLEARALL = 2536, + + //! + SCI_MARGINSETSTYLEOFFSET = 2537, + + //! + SCI_MARGINGETSTYLEOFFSET = 2538, + + //! + SCI_SETMARGINOPTIONS = 2539, + + //! + SCI_ANNOTATIONSETTEXT = 2540, + + //! + SCI_ANNOTATIONGETTEXT = 2541, + + //! + SCI_ANNOTATIONSETSTYLE = 2542, + + //! + SCI_ANNOTATIONGETSTYLE = 2543, + + //! + SCI_ANNOTATIONSETSTYLES = 2544, + + //! + SCI_ANNOTATIONGETSTYLES = 2545, + + //! + SCI_ANNOTATIONGETLINES = 2546, + + //! + SCI_ANNOTATIONCLEARALL = 2547, + + //! + SCI_ANNOTATIONSETVISIBLE = 2548, + + //! + SCI_ANNOTATIONGETVISIBLE = 2549, + + //! + SCI_ANNOTATIONSETSTYLEOFFSET = 2550, + + //! + SCI_ANNOTATIONGETSTYLEOFFSET = 2551, + + //! + SCI_RELEASEALLEXTENDEDSTYLES = 2552, + + //! + SCI_ALLOCATEEXTENDEDSTYLES = 2553, + + //! + SCI_SETEMPTYSELECTION = 2556, + + //! + SCI_GETMARGINOPTIONS = 2557, + + //! + SCI_INDICSETOUTLINEALPHA = 2558, + + //! + SCI_INDICGETOUTLINEALPHA = 2559, + + //! + SCI_ADDUNDOACTION = 2560, + + //! + SCI_CHARPOSITIONFROMPOINT = 2561, + + //! + SCI_CHARPOSITIONFROMPOINTCLOSE = 2562, + + //! + SCI_SETMULTIPLESELECTION = 2563, + + //! + SCI_GETMULTIPLESELECTION = 2564, + + //! + SCI_SETADDITIONALSELECTIONTYPING = 2565, + + //! + SCI_GETADDITIONALSELECTIONTYPING = 2566, + + //! + SCI_SETADDITIONALCARETSBLINK = 2567, + + //! + SCI_GETADDITIONALCARETSBLINK = 2568, + + //! + SCI_SCROLLRANGE = 2569, + + //! + SCI_SETADDITIONALCARETSVISIBLE = 2608, + + //! + SCI_GETADDITIONALCARETSVISIBLE = 2609, + + //! + SCI_AUTOCGETCURRENTTEXT = 2610, + + //! + SCI_GETSELECTIONS = 2570, + + //! + SCI_CLEARSELECTIONS = 2571, + + //! + SCI_SETSELECTION = 2572, + + //! + SCI_ADDSELECTION = 2573, + + //! + SCI_SETMAINSELECTION = 2574, + + //! + SCI_GETMAINSELECTION = 2575, + + //! + SCI_SETSELECTIONNCARET = 2576, + + //! + SCI_GETSELECTIONNCARET = 2577, + + //! + SCI_SETSELECTIONNANCHOR = 2578, + + //! + SCI_GETSELECTIONNANCHOR = 2579, + + //! + SCI_SETSELECTIONNCARETVIRTUALSPACE = 2580, + + //! + SCI_GETSELECTIONNCARETVIRTUALSPACE = 2581, + + //! + SCI_SETSELECTIONNANCHORVIRTUALSPACE = 2582, + + //! + SCI_GETSELECTIONNANCHORVIRTUALSPACE = 2583, + + //! + SCI_SETSELECTIONNSTART = 2584, + + //! + SCI_GETSELECTIONNSTART = 2585, + + //! + SCI_SETSELECTIONNEND = 2586, + + //! + SCI_GETSELECTIONNEND = 2587, + + //! + SCI_SETRECTANGULARSELECTIONCARET = 2588, + + //! + SCI_GETRECTANGULARSELECTIONCARET = 2589, + + //! + SCI_SETRECTANGULARSELECTIONANCHOR = 2590, + + //! + SCI_GETRECTANGULARSELECTIONANCHOR = 2591, + + //! + SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2592, + + //! + SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2593, + + //! + SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2594, + + //! + SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2595, + + //! + SCI_SETVIRTUALSPACEOPTIONS = 2596, + + //! + SCI_GETVIRTUALSPACEOPTIONS = 2597, + + //! + SCI_SETRECTANGULARSELECTIONMODIFIER = 2598, + + //! + SCI_GETRECTANGULARSELECTIONMODIFIER = 2599, + + //! + SCI_SETADDITIONALSELFORE = 2600, + + //! + SCI_SETADDITIONALSELBACK = 2601, + + //! + SCI_SETADDITIONALSELALPHA = 2602, + + //! + SCI_GETADDITIONALSELALPHA = 2603, + + //! + SCI_SETADDITIONALCARETFORE = 2604, + + //! + SCI_GETADDITIONALCARETFORE = 2605, + + //! + SCI_ROTATESELECTION = 2606, + + //! + SCI_SWAPMAINANCHORCARET = 2607, + + //! + SCI_SETFONTQUALITY = 2611, + + //! + SCI_GETFONTQUALITY = 2612, + + //! + SCI_SETFIRSTVISIBLELINE = 2613, + + //! + SCI_SETMULTIPASTE = 2614, + + //! + SCI_GETMULTIPASTE = 2615, + + //! + SCI_GETTAG = 2616, + + //! + SCI_CHANGELEXERSTATE = 2617, + + //! + SCI_CONTRACTEDFOLDNEXT = 2618, + + //! + SCI_VERTICALCENTRECARET = 2619, + + //! + SCI_MOVESELECTEDLINESUP = 2620, + + //! + SCI_MOVESELECTEDLINESDOWN = 2621, + + //! + SCI_SETIDENTIFIER = 2622, + + //! + SCI_GETIDENTIFIER = 2623, + + //! This message sets the width of an RGBA image specified by a future + //! call to SCI_MARKERDEFINERGBAIMAGE or SCI_REGISTERRGBAIMAGE. + //! + //! \sa SCI_RGBAIMAGESETHEIGHT, SCI_MARKERDEFINERGBAIMAGE, + //! SCI_REGISTERRGBAIMAGE. + SCI_RGBAIMAGESETWIDTH = 2624, + + //! This message sets the height of an RGBA image specified by a future + //! call to SCI_MARKERDEFINERGBAIMAGE or SCI_REGISTERRGBAIMAGE. + //! + //! \sa SCI_RGBAIMAGESETWIDTH, SCI_MARKERDEFINERGBAIMAGE, + //! SCI_REGISTERRGBAIMAGE. + SCI_RGBAIMAGESETHEIGHT = 2625, + + //! This message sets the symbol used to draw one of the 32 markers to + //! an RGBA image. RGBA images use the SC_MARK_RGBAIMAGE marker + //! symbol. + //! \a wParam is the number of the marker. + //! \a lParam is a pointer to a QImage instance. Note that in other + //! ports of Scintilla this is a pointer to raw RGBA image data. + //! + //! \sa SCI_MARKERDEFINE, SCI_MARKERDEFINEPIXMAP + SCI_MARKERDEFINERGBAIMAGE = 2626, + + //! This message takes a copy of an image and registers it so that it + //! can be refered to by a unique integer identifier. + //! \a wParam is the image's identifier. + //! \a lParam is a pointer to a QImage instance. Note that in other + //! ports of Scintilla this is a pointer to raw RGBA image data. + //! + //! \sa SCI_CLEARREGISTEREDIMAGES, SCI_REGISTERIMAGE + SCI_REGISTERRGBAIMAGE = 2627, + + //! + SCI_SCROLLTOSTART = 2628, + + //! + SCI_SCROLLTOEND = 2629, + + //! + SCI_SETTECHNOLOGY = 2630, + + //! + SCI_GETTECHNOLOGY = 2631, + + //! + SCI_CREATELOADER = 2632, + + //! + SCI_COUNTCHARACTERS = 2633, + + //! + SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR = 2634, + + //! + SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR = 2635, + + //! + SCI_FINDINDICATORSHOW = 2640, + + //! + SCI_FINDINDICATORFLASH = 2641, + + //! + SCI_FINDINDICATORHIDE = 2642, + + //! + SCI_GETRANGEPOINTER = 2643, + + //! + SCI_GETGAPPOSITION = 2644, + + //! + SCI_DELETERANGE = 2645, + + //! + SCI_GETWORDCHARS = 2646, + + //! + SCI_GETWHITESPACECHARS = 2647, + + //! + SCI_SETPUNCTUATIONCHARS = 2648, + + //! + SCI_GETPUNCTUATIONCHARS = 2649, + + //! + SCI_GETSELECTIONEMPTY = 2650, + + //! + SCI_RGBAIMAGESETSCALE = 2651, + + //! + SCI_VCHOMEDISPLAY = 2652, + + //! + SCI_GETCARETLINEVISIBLEALWAYS = 2654, + + //! + SCI_SETCARETLINEVISIBLEALWAYS = 2655, + + //! + SCI_VCHOMEDISPLAYEXTEND = 2653, + + //! + SCI_AUTOCSETORDER = 2660, + + //! + SCI_AUTOCGETORDER = 2661, + + //! + SCI_FOLDALL = 2662, + + //! + SCI_SETAUTOMATICFOLD = 2663, + + //! + SCI_GETAUTOMATICFOLD = 2664, + + //! + SCI_SETREPRESENTATION = 2665, + + //! + SCI_GETREPRESENTATION = 2666, + + //! + SCI_CLEARREPRESENTATION = 2667, + + //! + SCI_SETMOUSESELECTIONRECTANGULARSWITCH = 2668, + + //! + SCI_GETMOUSESELECTIONRECTANGULARSWITCH = 2669, + + //! + SCI_POSITIONRELATIVE = 2670, + + //! + SCI_STARTRECORD = 3001, + + //! + SCI_STOPRECORD = 3002, + + //! This message sets the number of the lexer to use for syntax + //! styling. + //! \a wParam is the number of the lexer and is one of the SCLEX_* + //! values. + SCI_SETLEXER = 4001, + + //! This message returns the number of the lexer being used for syntax + //! styling. + SCI_GETLEXER = 4002, + + //! + SCI_COLOURISE = 4003, + + //! + SCI_SETPROPERTY = 4004, + + //! + SCI_SETKEYWORDS = 4005, + + //! This message sets the name of the lexer to use for syntax styling. + //! \a wParam is unused. + //! \a lParam is the name of the lexer. + SCI_SETLEXERLANGUAGE = 4006, + + //! + SCI_LOADLEXERLIBRARY = 4007, + + //! + SCI_GETPROPERTY = 4008, + + //! + SCI_GETPROPERTYEXPANDED = 4009, + + //! + SCI_GETPROPERTYINT = 4010, + + //! + SCI_GETSTYLEBITSNEEDED = 4011, + + //! + SCI_GETLEXERLANGUAGE = 4012, + + //! + SCI_PRIVATELEXERCALL = 4013, + + //! + SCI_PROPERTYNAMES = 4014, + + //! + SCI_PROPERTYTYPE = 4015, + + //! + SCI_DESCRIBEPROPERTY = 4016, + + //! + SCI_DESCRIBEKEYWORDSETS = 4017, + }; + + enum + { + SC_ALPHA_TRANSPARENT = 0, + SC_ALPHA_OPAQUE = 255, + SC_ALPHA_NOALPHA = 256 + }; + + enum + { + SC_CARETSTICKY_OFF = 0, + SC_CARETSTICKY_ON = 1, + SC_CARETSTICKY_WHITESPACE = 2 + }; + + enum + { + SC_EFF_QUALITY_MASK = 0x0f, + SC_EFF_QUALITY_DEFAULT = 0, + SC_EFF_QUALITY_NON_ANTIALIASED = 1, + SC_EFF_QUALITY_ANTIALIASED = 2, + SC_EFF_QUALITY_LCD_OPTIMIZED = 3 + }; + + enum + { + SC_MARGINOPTION_NONE = 0x00, + SC_MARGINOPTION_SUBLINESELECT = 0x01 + }; + + enum + { + SC_MULTIPASTE_ONCE = 0, + SC_MULTIPASTE_EACH = 1 + }; + + enum + { + SC_TYPE_BOOLEAN = 0, + SC_TYPE_INTEGER = 1, + SC_TYPE_STRING = 2 + }; + + enum + { + SC_UPDATE_CONTENT = 0x01, + SC_UPDATE_SELECTION = 0x02, + SC_UPDATE_V_SCROLL = 0x04, + SC_UPDATE_H_SCROLL = 0x08 + }; + + enum + { + SC_WRAPVISUALFLAG_NONE = 0x0000, + SC_WRAPVISUALFLAG_END = 0x0001, + SC_WRAPVISUALFLAG_START = 0x0002, + SC_WRAPVISUALFLAG_MARGIN = 0x0004 + }; + + enum + { + SC_WRAPVISUALFLAGLOC_DEFAULT = 0x0000, + SC_WRAPVISUALFLAGLOC_END_BY_TEXT = 0x0001, + SC_WRAPVISUALFLAGLOC_START_BY_TEXT = 0x0002 + }; + + //! This enum defines the different selection modes. + //! + //! \sa SCI_GETSELECTIONMODE, SCI_SETSELECTIONMODE + enum + { + SC_SEL_STREAM = 0, + SC_SEL_RECTANGLE = 1, + SC_SEL_LINES = 2, + SC_SEL_THIN = 3 + }; + + enum + { + SCVS_NONE = 0, + SCVS_RECTANGULARSELECTION = 1, + SCVS_USERACCESSIBLE = 2 + }; + + enum + { + SCWS_INVISIBLE = 0, + SCWS_VISIBLEALWAYS = 1, + SCWS_VISIBLEAFTERINDENT = 2 + }; + + enum + { + SC_EOL_CRLF = 0, + SC_EOL_CR = 1, + SC_EOL_LF = 2 + }; + + enum + { + SC_CP_DBCS = 1, + SC_CP_UTF8 = 65001 + }; + + //! This enum defines the different marker symbols. + //! + //! \sa SCI_MARKERDEFINE + enum + { + //! A circle. + SC_MARK_CIRCLE = 0, + + //! A rectangle. + SC_MARK_ROUNDRECT = 1, + + //! A triangle pointing to the right. + SC_MARK_ARROW = 2, + + //! A smaller rectangle. + SC_MARK_SMALLRECT = 3, + + //! An arrow pointing to the right. + SC_MARK_SHORTARROW = 4, + + //! An invisible marker that allows code to track the movement + //! of lines. + SC_MARK_EMPTY = 5, + + //! A triangle pointing down. + SC_MARK_ARROWDOWN = 6, + + //! A drawn minus sign. + SC_MARK_MINUS = 7, + + //! A drawn plus sign. + SC_MARK_PLUS = 8, + + //! A vertical line drawn in the background colour. + SC_MARK_VLINE = 9, + + //! A bottom left corner drawn in the background colour. + SC_MARK_LCORNER = 10, + + //! A vertical line with a centre right horizontal line drawn + //! in the background colour. + SC_MARK_TCORNER = 11, + + //! A drawn plus sign in a box. + SC_MARK_BOXPLUS = 12, + + //! A drawn plus sign in a connected box. + SC_MARK_BOXPLUSCONNECTED = 13, + + //! A drawn minus sign in a box. + SC_MARK_BOXMINUS = 14, + + //! A drawn minus sign in a connected box. + SC_MARK_BOXMINUSCONNECTED = 15, + + //! A rounded bottom left corner drawn in the background + //! colour. + SC_MARK_LCORNERCURVE = 16, + + //! A vertical line with a centre right curved line drawn in + //! the background colour. + SC_MARK_TCORNERCURVE = 17, + + //! A drawn plus sign in a circle. + SC_MARK_CIRCLEPLUS = 18, + + //! A drawn plus sign in a connected box. + SC_MARK_CIRCLEPLUSCONNECTED = 19, + + //! A drawn minus sign in a circle. + SC_MARK_CIRCLEMINUS = 20, + + //! A drawn minus sign in a connected circle. + SC_MARK_CIRCLEMINUSCONNECTED = 21, + + //! No symbol is drawn but the line is drawn with the same background + //! color as the marker's. + SC_MARK_BACKGROUND = 22, + + //! Three drawn dots. + SC_MARK_DOTDOTDOT = 23, + + //! Three drawn arrows pointing right. + SC_MARK_ARROWS = 24, + + //! An XPM format pixmap. + SC_MARK_PIXMAP = 25, + + //! A full rectangle (ie. the margin background) using the marker's + //! background color. + SC_MARK_FULLRECT = 26, + + //! A left rectangle (ie. the left part of the margin background) using + //! the marker's background color. + SC_MARK_LEFTRECT = 27, + + //! The value is available for plugins to use. + SC_MARK_AVAILABLE = 28, + + //! The line is underlined using the marker's background color. + SC_MARK_UNDERLINE = 29, + + //! A RGBA format image. + SC_MARK_RGBAIMAGE = 30, + + //! Characters can be used as symbols by adding this to the ASCII value + //! of the character. + SC_MARK_CHARACTER = 10000 + }; + + enum + { + SC_MARKNUM_FOLDEREND = 25, + SC_MARKNUM_FOLDEROPENMID = 26, + SC_MARKNUM_FOLDERMIDTAIL = 27, + SC_MARKNUM_FOLDERTAIL = 28, + SC_MARKNUM_FOLDERSUB = 29, + SC_MARKNUM_FOLDER = 30, + SC_MARKNUM_FOLDEROPEN = 31, + SC_MASK_FOLDERS = 0xfe000000 + }; + + //! This enum defines what can be displayed in a margin. + //! + //! \sa SCI_GETMARGINTYPEN, SCI_SETMARGINTYPEN + enum + { + //! The margin can display symbols. Note that all margins can display + //! symbols. + SC_MARGIN_SYMBOL = 0, + + //! The margin will display line numbers. + SC_MARGIN_NUMBER = 1, + + //! The margin's background color will be set to the default background + //! color. + SC_MARGIN_BACK = 2, + + //! The margin's background color will be set to the default foreground + //! color. + SC_MARGIN_FORE = 3, + + //! The margin will display text. + SC_MARGIN_TEXT = 4, + + //! The margin will display right justified text. + SC_MARGIN_RTEXT = 5 + }; + + enum + { + STYLE_DEFAULT = 32, + STYLE_LINENUMBER = 33, + STYLE_BRACELIGHT = 34, + STYLE_BRACEBAD = 35, + STYLE_CONTROLCHAR = 36, + STYLE_INDENTGUIDE = 37, + STYLE_CALLTIP = 38, + STYLE_LASTPREDEFINED = 39, + STYLE_MAX = 255 + }; + + enum + { + SC_CHARSET_ANSI = 0, + SC_CHARSET_DEFAULT = 1, + SC_CHARSET_BALTIC = 186, + SC_CHARSET_CHINESEBIG5 = 136, + SC_CHARSET_EASTEUROPE = 238, + SC_CHARSET_GB2312 = 134, + SC_CHARSET_GREEK = 161, + SC_CHARSET_HANGUL = 129, + SC_CHARSET_MAC = 77, + SC_CHARSET_OEM = 255, + SC_CHARSET_RUSSIAN = 204, + SC_CHARSET_SHIFTJIS = 128, + SC_CHARSET_SYMBOL = 2, + SC_CHARSET_TURKISH = 162, + SC_CHARSET_JOHAB = 130, + SC_CHARSET_HEBREW = 177, + SC_CHARSET_ARABIC = 178, + SC_CHARSET_VIETNAMESE = 163, + SC_CHARSET_THAI = 222, + SC_CHARSET_8859_15 = 1000 + }; + + enum + { + SC_CASE_MIXED = 0, + SC_CASE_UPPER = 1, + SC_CASE_LOWER = 2 + }; + + //! This enum defines the different indentation guide views. + //! + //! \sa SCI_GETINDENTATIONGUIDES, SCI_SETINDENTATIONGUIDES + enum + { + //! No indentation guides are shown. + SC_IV_NONE = 0, + + //! Indentation guides are shown inside real indentation white space. + SC_IV_REAL = 1, + + //! Indentation guides are shown beyond the actual indentation up to + //! the level of the next non-empty line. If the previous non-empty + //! line was a fold header then indentation guides are shown for one + //! more level of indent than that line. This setting is good for + //! Python. + SC_IV_LOOKFORWARD = 2, + + //! Indentation guides are shown beyond the actual indentation up to + //! the level of the next non-empty line or previous non-empty line + //! whichever is the greater. This setting is good for most languages. + SC_IV_LOOKBOTH = 3 + }; + + enum + { + INDIC_PLAIN = 0, + INDIC_SQUIGGLE = 1, + INDIC_TT = 2, + INDIC_DIAGONAL = 3, + INDIC_STRIKE = 4, + INDIC_HIDDEN = 5, + INDIC_BOX = 6, + INDIC_ROUNDBOX = 7, + INDIC_STRAIGHTBOX = 8, + INDIC_DASH = 9, + INDIC_DOTS = 10, + INDIC_SQUIGGLELOW = 11, + INDIC_DOTBOX = 12, + INDIC_SQUIGGLEPIXMAP = 13, + INDIC_COMPOSITIONTHICK = 14, + + INDIC_CONTAINER = 8, + INDIC_MAX = 31, + INDIC0_MASK = 0x20, + INDIC1_MASK = 0x40, + INDIC2_MASK = 0x80, + INDICS_MASK = 0xe0 + }; + + enum + { + SC_PRINT_NORMAL = 0, + SC_PRINT_INVERTLIGHT = 1, + SC_PRINT_BLACKONWHITE = 2, + SC_PRINT_COLOURONWHITE = 3, + SC_PRINT_COLOURONWHITEDEFAULTBG = 4 + }; + + enum + { + SCFIND_WHOLEWORD = 2, + SCFIND_MATCHCASE = 4, + SCFIND_WORDSTART = 0x00100000, + SCFIND_REGEXP = 0x00200000, + SCFIND_POSIX = 0x00400000 + }; + + enum + { + SC_FOLDLEVELBASE = 0x00400, + SC_FOLDLEVELWHITEFLAG = 0x01000, + SC_FOLDLEVELHEADERFLAG = 0x02000, + SC_FOLDLEVELNUMBERMASK = 0x00fff + }; + + enum + { + SC_FOLDFLAG_LINEBEFORE_EXPANDED = 0x0002, + SC_FOLDFLAG_LINEBEFORE_CONTRACTED = 0x0004, + SC_FOLDFLAG_LINEAFTER_EXPANDED = 0x0008, + SC_FOLDFLAG_LINEAFTER_CONTRACTED = 0x0010, + SC_FOLDFLAG_LEVELNUMBERS = 0x0040 + }; + + enum + { + SC_TIME_FOREVER = 10000000 + }; + + enum + { + SC_WRAP_NONE = 0, + SC_WRAP_WORD = 1, + SC_WRAP_CHAR = 2 + }; + + enum + { + SC_WRAPINDENT_FIXED = 0, + SC_WRAPINDENT_SAME = 1, + SC_WRAPINDENT_INDENT = 2 + }; + + enum + { + SC_CACHE_NONE = 0, + SC_CACHE_CARET = 1, + SC_CACHE_PAGE = 2, + SC_CACHE_DOCUMENT = 3 + }; + + enum + { + ANNOTATION_HIDDEN = 0, + ANNOTATION_STANDARD = 1, + ANNOTATION_BOXED = 2 + }; + + enum + { + EDGE_NONE = 0, + EDGE_LINE = 1, + EDGE_BACKGROUND = 2 + }; + + enum + { + SC_CURSORNORMAL = -1, + SC_CURSORARROW = 2, + SC_CURSORWAIT = 4, + SC_CURSORREVERSEARROW = 7 + }; + + enum + { + UNDO_MAY_COALESCE = 1 + }; + + enum + { + VISIBLE_SLOP = 0x01, + VISIBLE_STRICT = 0x04 + }; + + enum + { + CARET_SLOP = 0x01, + CARET_STRICT = 0x04, + CARET_JUMPS = 0x10, + CARET_EVEN = 0x08 + }; + + enum + { + CARETSTYLE_INVISIBLE = 0, + CARETSTYLE_LINE = 1, + CARETSTYLE_BLOCK = 2 + }; + + enum + { + SC_MOD_INSERTTEXT = 0x1, + SC_MOD_DELETETEXT = 0x2, + SC_MOD_CHANGESTYLE = 0x4, + SC_MOD_CHANGEFOLD = 0x8, + SC_PERFORMED_USER = 0x10, + SC_PERFORMED_UNDO = 0x20, + SC_PERFORMED_REDO = 0x40, + SC_MULTISTEPUNDOREDO = 0x80, + SC_LASTSTEPINUNDOREDO = 0x100, + SC_MOD_CHANGEMARKER = 0x200, + SC_MOD_BEFOREINSERT = 0x400, + SC_MOD_BEFOREDELETE = 0x800, + SC_MULTILINEUNDOREDO = 0x1000, + SC_STARTACTION = 0x2000, + SC_MOD_CHANGEINDICATOR = 0x4000, + SC_MOD_CHANGELINESTATE = 0x8000, + SC_MOD_CHANGEMARGIN = 0x10000, + SC_MOD_CHANGEANNOTATION = 0x20000, + SC_MOD_CONTAINER = 0x40000, + SC_MOD_LEXERSTATE = 0x80000, + SC_MODEVENTMASKALL = 0xfffff + }; + + enum + { + SCK_DOWN = 300, + SCK_UP = 301, + SCK_LEFT = 302, + SCK_RIGHT = 303, + SCK_HOME = 304, + SCK_END = 305, + SCK_PRIOR = 306, + SCK_NEXT = 307, + SCK_DELETE = 308, + SCK_INSERT = 309, + SCK_ESCAPE = 7, + SCK_BACK = 8, + SCK_TAB = 9, + SCK_RETURN = 13, + SCK_ADD = 310, + SCK_SUBTRACT = 311, + SCK_DIVIDE = 312, + SCK_WIN = 313, + SCK_RWIN = 314, + SCK_MENU = 315 + }; + + //! This enum defines the different modifier keys. + enum + { + //! No modifier key. + SCMOD_NORM = 0, + + //! Shift key. + SCMOD_SHIFT = 1, + + //! Control key (the Command key on OS/X, the Ctrl key on other + //! platforms). + SCMOD_CTRL = 2, + + //! Alt key. + SCMOD_ALT = 4, + + //! This is the same as SCMOD_META on all platforms. + SCMOD_SUPER = 8, + + //! Meta key (the Ctrl key on OS/X, the Windows key on other + //! platforms). + SCMOD_META = 16 + }; + + //! This enum defines the different language lexers. + //! + //! \sa SCI_GETLEXER, SCI_SETLEXER + enum + { + //! No lexer is selected and the SCN_STYLENEEDED signal is emitted so + //! that the application can style the text as needed. This is the + //! default. + SCLEX_CONTAINER = 0, + + //! Select the null lexer that does no syntax styling. + SCLEX_NULL = 1, + + //! Select the Python lexer. + SCLEX_PYTHON = 2, + + //! Select the C++ lexer. + SCLEX_CPP = 3, + + //! Select the HTML lexer. + SCLEX_HTML = 4, + + //! Select the XML lexer. + SCLEX_XML = 5, + + //! Select the Perl lexer. + SCLEX_PERL = 6, + + //! Select the SQL lexer. + SCLEX_SQL = 7, + + //! Select the Visual Basic lexer. + SCLEX_VB = 8, + + //! Select the lexer for properties style files. + SCLEX_PROPERTIES = 9, + + //! Select the lexer for error list style files. + SCLEX_ERRORLIST = 10, + + //! Select the Makefile lexer. + SCLEX_MAKEFILE = 11, + + //! Select the Windows batch file lexer. + SCLEX_BATCH = 12, + + //! Select the LaTex lexer. + SCLEX_LATEX = 14, + + //! Select the Lua lexer. + SCLEX_LUA = 15, + + //! Select the lexer for diff output. + SCLEX_DIFF = 16, + + //! Select the lexer for Apache configuration files. + SCLEX_CONF = 17, + + //! Select the Pascal lexer. + SCLEX_PASCAL = 18, + + //! Select the Avenue lexer. + SCLEX_AVE = 19, + + //! Select the Ada lexer. + SCLEX_ADA = 20, + + //! Select the Lisp lexer. + SCLEX_LISP = 21, + + //! Select the Ruby lexer. + SCLEX_RUBY = 22, + + //! Select the Eiffel lexer. + SCLEX_EIFFEL = 23, + + //! Select the Eiffel lexer folding at keywords. + SCLEX_EIFFELKW = 24, + + //! Select the Tcl lexer. + SCLEX_TCL = 25, + + //! Select the lexer for nnCron files. + SCLEX_NNCRONTAB = 26, + + //! Select the Bullant lexer. + SCLEX_BULLANT = 27, + + //! Select the VBScript lexer. + SCLEX_VBSCRIPT = 28, + + //! Select the ASP lexer. + SCLEX_ASP = SCLEX_HTML, + + //! Select the PHP lexer. + SCLEX_PHP = SCLEX_HTML, + + //! Select the Baan lexer. + SCLEX_BAAN = 31, + + //! Select the Matlab lexer. + SCLEX_MATLAB = 32, + + //! Select the Scriptol lexer. + SCLEX_SCRIPTOL = 33, + + //! Select the assembler lexer. + SCLEX_ASM = 34, + + //! Select the C++ lexer with case insensitive keywords. + SCLEX_CPPNOCASE = 35, + + //! Select the FORTRAN lexer. + SCLEX_FORTRAN = 36, + + //! Select the FORTRAN77 lexer. + SCLEX_F77 = 37, + + //! Select the CSS lexer. + SCLEX_CSS = 38, + + //! Select the POV lexer. + SCLEX_POV = 39, + + //! Select the Basser Lout typesetting language lexer. + SCLEX_LOUT = 40, + + //! Select the EScript lexer. + SCLEX_ESCRIPT = 41, + + //! Select the PostScript lexer. + SCLEX_PS = 42, + + //! Select the NSIS lexer. + SCLEX_NSIS = 43, + + //! Select the MMIX assembly language lexer. + SCLEX_MMIXAL = 44, + + //! Select the Clarion lexer. + SCLEX_CLW = 45, + + //! Select the Clarion lexer with case insensitive keywords. + SCLEX_CLWNOCASE = 46, + + //! Select the MPT text log file lexer. + SCLEX_LOT = 47, + + //! Select the YAML lexer. + SCLEX_YAML = 48, + + //! Select the TeX lexer. + SCLEX_TEX = 49, + + //! Select the Metapost lexer. + SCLEX_METAPOST = 50, + + //! Select the PowerBASIC lexer. + SCLEX_POWERBASIC = 51, + + //! Select the Forth lexer. + SCLEX_FORTH = 52, + + //! Select the Erlang lexer. + SCLEX_ERLANG = 53, + + //! Select the Octave lexer. + SCLEX_OCTAVE = 54, + + //! Select the MS SQL lexer. + SCLEX_MSSQL = 55, + + //! Select the Verilog lexer. + SCLEX_VERILOG = 56, + + //! Select the KIX-Scripts lexer. + SCLEX_KIX = 57, + + //! Select the Gui4Cli lexer. + SCLEX_GUI4CLI = 58, + + //! Select the Specman E lexer. + SCLEX_SPECMAN = 59, + + //! Select the AutoIt3 lexer. + SCLEX_AU3 = 60, + + //! Select the APDL lexer. + SCLEX_APDL = 61, + + //! Select the Bash lexer. + SCLEX_BASH = 62, + + //! Select the ASN.1 lexer. + SCLEX_ASN1 = 63, + + //! Select the VHDL lexer. + SCLEX_VHDL = 64, + + //! Select the Caml lexer. + SCLEX_CAML = 65, + + //! Select the BlitzBasic lexer. + SCLEX_BLITZBASIC = 66, + + //! Select the PureBasic lexer. + SCLEX_PUREBASIC = 67, + + //! Select the Haskell lexer. + SCLEX_HASKELL = 68, + + //! Select the PHPScript lexer. + SCLEX_PHPSCRIPT = 69, + + //! Select the TADS3 lexer. + SCLEX_TADS3 = 70, + + //! Select the REBOL lexer. + SCLEX_REBOL = 71, + + //! Select the Smalltalk lexer. + SCLEX_SMALLTALK = 72, + + //! Select the FlagShip lexer. + SCLEX_FLAGSHIP = 73, + + //! Select the Csound lexer. + SCLEX_CSOUND = 74, + + //! Select the FreeBasic lexer. + SCLEX_FREEBASIC = 75, + + //! Select the InnoSetup lexer. + SCLEX_INNOSETUP = 76, + + //! Select the Opal lexer. + SCLEX_OPAL = 77, + + //! Select the Spice lexer. + SCLEX_SPICE = 78, + + //! Select the D lexer. + SCLEX_D = 79, + + //! Select the CMake lexer. + SCLEX_CMAKE = 80, + + //! Select the GAP lexer. + SCLEX_GAP = 81, + + //! Select the PLM lexer. + SCLEX_PLM = 82, + + //! Select the Progress lexer. + SCLEX_PROGRESS = 83, + + //! Select the Abaqus lexer. + SCLEX_ABAQUS = 84, + + //! Select the Asymptote lexer. + SCLEX_ASYMPTOTE = 85, + + //! Select the R lexer. + SCLEX_R = 86, + + //! Select the MagikSF lexer. + SCLEX_MAGIK = 87, + + //! Select the PowerShell lexer. + SCLEX_POWERSHELL = 88, + + //! Select the MySQL lexer. + SCLEX_MYSQL = 89, + + //! Select the gettext .po file lexer. + SCLEX_PO = 90, + + //! Select the TAL lexer. + SCLEX_TAL = 91, + + //! Select the COBOL lexer. + SCLEX_COBOL = 92, + + //! Select the TACL lexer. + SCLEX_TACL = 93, + + //! Select the Sorcus lexer. + SCLEX_SORCUS = 94, + + //! Select the PowerPro lexer. + SCLEX_POWERPRO = 95, + + //! Select the Nimrod lexer. + SCLEX_NIMROD = 96, + + //! Select the SML lexer. + SCLEX_SML = 97, + + //! Select the Markdown lexer. + SCLEX_MARKDOWN = 98, + + //! Select the txt2tags lexer. + SCLEX_TXT2TAGS = 99, + + //! Select the 68000 assembler lexer. + SCLEX_A68K = 100, + + //! Select the Modula 3 lexer. + SCLEX_MODULA = 101, + + //! Select the CoffeeScript lexer. + SCLEX_COFFEESCRIPT = 102, + + //! Select the Take Command lexer. + SCLEX_TCMD = 103, + + //! Select the AviSynth lexer. + SCLEX_AVS = 104, + + //! Select the ECL lexer. + SCLEX_ECL = 105, + + //! Select the OScript lexer. + SCLEX_OSCRIPT = 106, + + //! Select the Visual Prolog lexer. + SCLEX_VISUALPROLOG = 107, + + //! Select the Literal Haskell lexer. + SCLEX_LITERATEHASKELL = 108, + + //! Select the Structured Text lexer. + SCLEX_STTXT = 109, + + //! Select the KVIrc lexer. + SCLEX_KVIRC = 110, + + //! Select the Rust lexer. + SCLEX_RUST = 111, + }; + + enum + { + SC_WEIGHT_NORMAL = 400, + SC_WEIGHT_SEMIBOLD = 600, + SC_WEIGHT_BOLD = 700, + }; + + enum + { + SC_TECHNOLOGY_DEFAULT = 0, + SC_TECHNOLOGY_DIRECTWRITE = 1, + }; + + enum + { + SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE = 0, + SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE = 1, + }; + + enum + { + SC_FONT_SIZE_MULTIPLIER = 100, + }; + + enum + { + SC_FOLDACTION_CONTRACT = 0, + SC_FOLDACTION_EXPAND = 1, + SC_FOLDACTION_TOGGLE = 2, + }; + + enum + { + SC_AUTOMATICFOLD_SHOW = 0x0001, + SC_AUTOMATICFOLD_CLICK = 0x0002, + SC_AUTOMATICFOLD_CHANGE = 0x0004, + }; + + enum + { + SC_ORDER_PRESORTED = 0, + SC_ORDER_PERFORMSORT = 1, + SC_ORDER_CUSTOM = 2, + }; + + //! Construct an empty QsciScintillaBase with parent \a parent. + explicit QsciScintillaBase(QWidget *parent = 0); + + //! Destroys the QsciScintillaBase instance. + virtual ~QsciScintillaBase(); + + //! Returns a pointer to a QsciScintillaBase instance, or 0 if there isn't + //! one. This can be used by the higher level API to send messages that + //! aren't associated with a particular instance. + static QsciScintillaBase *pool(); + + //! Send the Scintilla message \a msg with the optional parameters \a + //! wParam and \a lParam. + long SendScintilla(unsigned int msg, unsigned long wParam = 0, + long lParam = 0) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, + void *lParam) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, + const char *lParam) const; + + //! \overload + long SendScintilla(unsigned int msg, const char *lParam) const; + + //! \overload + long SendScintilla(unsigned int msg, const char *wParam, + const char *lParam) const; + + //! \overload + long SendScintilla(unsigned int msg, long wParam) const; + + //! \overload + long SendScintilla(unsigned int msg, int wParam) const; + + //! \overload + long SendScintilla(unsigned int msg, long cpMin, long cpMax, + char *lpstrText) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, + const QColor &col) const; + + //! \overload + long SendScintilla(unsigned int msg, const QColor &col) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, QPainter *hdc, + const QRect &rc, long cpMin, long cpMax) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, + const QPixmap &lParam) const; + + //! \overload + long SendScintilla(unsigned int msg, unsigned long wParam, + const QImage &lParam) const; + + //! Send the Scintilla message \a msg and return a pointer result. + void *SendScintillaPtrResult(unsigned int msg) const; + + + //! \internal + static int commandKey(int qt_key, int &modifiers); + +signals: + //! This signal is emitted when text is selected or de-selected. + //! \a yes is true if text has been selected and false if text has been + //! deselected. + void QSCN_SELCHANGED(bool yes); + + //! This signal is emitted when the user cancels an auto-completion list. + //! + //! \sa SCN_AUTOCSELECTION() + void SCN_AUTOCCANCELLED(); + + //! This signal is emitted when the user deletes a character when an + //! auto-completion list is active. + void SCN_AUTOCCHARDELETED(); + + //! This signal is emitted when the user selects an item in an + //! auto-completion list. It is emitted before the selection is inserted. + //! The insertion can be cancelled by sending an SCI_AUTOCANCEL message + //! from a connected slot. + //! \a selection is the text of the selection. + //! \a position is the start position of the word being completed. + //! + //! \sa SCN_AUTOCCANCELLED() + void SCN_AUTOCSELECTION(const char *selection, int position); + + //! This signal is emitted when the document has changed for any reason. + void SCEN_CHANGE(); + + //! This signal ir emitted when the user clicks on a calltip. + //! \a direction is 1 if the user clicked on the up arrow, 2 if the user + //! clicked on the down arrow, and 0 if the user clicked elsewhere. + void SCN_CALLTIPCLICK(int direction); + + //! This signal is emitted whenever the user enters an ordinary character + //! into the text. + //! \a charadded is the character. It can be used to decide to display a + //! call tip or an auto-completion list. + void SCN_CHARADDED(int charadded); + + //! This signal is emitted when the user double clicks. + //! \a position is the position in the text where the click occured. + //! \a line is the number of the line in the text where the click occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user double clicked. + void SCN_DOUBLECLICK(int position, int line, int modifiers); + + //! + void SCN_DWELLEND(int, int, int); + + //! + void SCN_DWELLSTART(int, int, int); + + //! This signal is emitted when focus is received. + void SCN_FOCUSIN(); + + //! This signal is emitted when focus is lost. + void SCN_FOCUSOUT(); + + //! This signal is emitted when the user clicks on text in a style with the + //! hotspot attribute set. + //! \a position is the position in the text where the click occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user clicked. + void SCN_HOTSPOTCLICK(int position, int modifiers); + + //! This signal is emitted when the user double clicks on text in a style + //! with the hotspot attribute set. + //! \a position is the position in the text where the double click occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user double clicked. + void SCN_HOTSPOTDOUBLECLICK(int position, int modifiers); + + //! This signal is emitted when the user releases the mouse button on text + //! in a style with the hotspot attribute set. + //! \a position is the position in the text where the release occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user released the button. + void SCN_HOTSPOTRELEASECLICK(int position, int modifiers); + + //! This signal is emitted when the user clicks on text that has an + //! indicator. + //! \a position is the position in the text where the click occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user clicked. + void SCN_INDICATORCLICK(int position, int modifiers); + + //! This signal is emitted when the user releases the mouse button on text + //! that has an indicator. + //! \a position is the position in the text where the release occured. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user released. + void SCN_INDICATORRELEASE(int position, int modifiers); + + //! This signal is emitted when a recordable editor command has been + //! executed. + void SCN_MACRORECORD(unsigned int, unsigned long, void *); + + //! This signal is emitted when the user clicks on a sensitive margin. + //! \a position is the position of the start of the line against which the + //! user clicked. + //! \a modifiers is the logical or of the modifier keys that were pressed + //! when the user clicked. + //! \a margin is the number of the margin the user clicked in: 0, 1 or 2. + //! + //! \sa SCI_GETMARGINSENSITIVEN, SCI_SETMARGINSENSITIVEN + void SCN_MARGINCLICK(int position, int modifiers, int margin); + + //! + void SCN_MODIFIED(int, int, const char *, int, int, int, int, int, int, int); + + //! This signal is emitted when the user attempts to modify read-only + //! text. + void SCN_MODIFYATTEMPTRO(); + + //! + void SCN_NEEDSHOWN(int, int); + + //! This signal is emitted when painting has been completed. It is useful + //! to trigger some other change but to have the paint be done first to + //! appear more reponsive to the user. + void SCN_PAINTED(); + + //! This signal is emitted when the current state of the text no longer + //! corresponds to the state of the text at the save point. + //! + //! \sa SCI_SETSAVEPOINT, SCN_SAVEPOINTREACHED() + void SCN_SAVEPOINTLEFT(); + + //! This signal is emitted when the current state of the text corresponds + //! to the state of the text at the save point. This allows feedback to be + //! given to the user as to whether the text has been modified since it was + //! last saved. + //! + //! \sa SCI_SETSAVEPOINT, SCN_SAVEPOINTLEFT() + void SCN_SAVEPOINTREACHED(); + + //! This signal is emitted when a range of text needs to be syntax styled. + //! The range is from the value returned by the SCI_GETENDSTYLED message + //! and \a position. It is only emitted if the currently selected lexer is + //! SCLEX_CONTAINER. + //! + //! \sa SCI_COLOURISE, SCI_GETENDSTYLED + void SCN_STYLENEEDED(int position); + + //! This signal is emitted when either the text or styling of the text has + //! changed or the selection range or scroll position has changed. + //! \a updated contains the set of SC_UPDATE_* flags describing the changes + //! since the signal was last emitted. + void SCN_UPDATEUI(int updated); + + //! + void SCN_USERLISTSELECTION(const char *, int); + + //! + void SCN_ZOOM(); + +protected: + //! Returns true if the contents of a MIME data object can be decoded and + //! inserted into the document. It is called during drag and paste + //! operations. + //! \a source is the MIME data object. + //! + //! \sa fromMimeData(), toMimeData() + virtual bool canInsertFromMimeData(const QMimeData *source) const; + + //! Returns the text of a MIME data object. It is called when a drag and + //! drop is completed and when text is pasted from the clipboard. + //! \a source is the MIME data object. On return \a rectangular is set if + //! the text corresponds to a rectangular selection. + //! + //! \sa canInsertFromMimeData(), toMimeData() + virtual QByteArray fromMimeData(const QMimeData *source, bool &rectangular) const; + + //! Returns a new MIME data object containing some text and whether it + //! corresponds to a rectangular selection. It is called when a drag and + //! drop is started and when the selection is copied to the clipboard. + //! Ownership of the object is passed to the caller. \a text is the text. + //! \a rectangular is set if the text corresponds to a rectangular + //! selection. + //! + //! \sa canInsertFromMimeData(), fromMimeData() + virtual QMimeData *toMimeData(const QByteArray &text, bool rectangular) const; + + //! Re-implemented to handle the context menu. + virtual void contextMenuEvent(QContextMenuEvent *e); + + //! Re-implemented to handle drag enters. + virtual void dragEnterEvent(QDragEnterEvent *e); + + //! Re-implemented to handle drag leaves. + virtual void dragLeaveEvent(QDragLeaveEvent *e); + + //! Re-implemented to handle drag moves. + virtual void dragMoveEvent(QDragMoveEvent *e); + + //! Re-implemented to handle drops. + virtual void dropEvent(QDropEvent *e); + + //! Re-implemented to tell Scintilla it has the focus. + virtual void focusInEvent(QFocusEvent *e); + + //! Re-implemented to tell Scintilla it has lost the focus. + virtual void focusOutEvent(QFocusEvent *e); + + //! Re-implemented to allow tabs to be entered as text. + virtual bool focusNextPrevChild(bool next); + + //! Re-implemented to handle key presses. + virtual void keyPressEvent(QKeyEvent *e); + + //! Re-implemented to handle composed characters. + virtual void inputMethodEvent(QInputMethodEvent *event); + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + + //! Re-implemented to handle mouse double-clicks. + virtual void mouseDoubleClickEvent(QMouseEvent *e); + + //! Re-implemented to handle mouse moves. + virtual void mouseMoveEvent(QMouseEvent *e); + + //! Re-implemented to handle mouse presses. + virtual void mousePressEvent(QMouseEvent *e); + + //! Re-implemented to handle mouse releases. + virtual void mouseReleaseEvent(QMouseEvent *e); + + //! Re-implemented to paint the viewport. + virtual void paintEvent(QPaintEvent *e); + + //! Re-implemented to handle resizes. + virtual void resizeEvent(QResizeEvent *e); + + //! \internal Re-implemented to handle scrolling. + virtual void scrollContentsBy(int dx, int dy); + + //! \internal This helps to work around some Scintilla bugs. + void setScrollBars(); + + //! \internal Qt4, Qt5 portability. + typedef QByteArray ScintillaBytes; + +#define ScintillaBytesConstData(b) (b).constData() + + + //! \internal Convert a QString to encoded bytes. + ScintillaBytes textAsBytes(const QString &text) const; + + //! \internal Convert encoded bytes to a QString. + QString bytesAsText(const char *bytes) const; + +private slots: + void handleTimer(); + void handleVSb(int value); + void handleHSb(int value); + void handleSelection(); + +private: + // This is needed to allow QsciScintillaQt to emit this class's signals. + friend class QsciScintillaQt; + + QsciScintillaQt *sci; + QPoint triple_click_at; + QTimer triple_click; + int preeditPos; + int preeditNrBytes; + QString preeditString; +#if QT_VERSION >= 0x050000 + bool clickCausedFocus; +#endif + + void acceptAction(QDropEvent *e); + + QsciScintillaBase(const QsciScintillaBase &); + QsciScintillaBase &operator=(const QsciScintillaBase &); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscistyle.h b/Qt4Qt5/Qsci/qscistyle.h new file mode 100644 index 0000000..078c04e --- /dev/null +++ b/Qt4Qt5/Qsci/qscistyle.h @@ -0,0 +1,202 @@ +// This module defines interface to the QsciStyle class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCISTYLE_H +#define QSCISTYLE_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include +#include +#include + +#include + + +class QsciScintillaBase; + + +//! \brief The QsciStyle class encapsulates all the attributes of a style. +//! +//! Each character of a document has an associated style which determines how +//! the character is displayed, e.g. its font and color. A style is identified +//! by a number. Lexers define styles for each of the language's features so +//! that they are displayed differently. Some style numbers have hard-coded +//! meanings, e.g. the style used for call tips. +class QSCINTILLA_EXPORT QsciStyle +{ +public: + //! This enum defines the different ways the displayed case of the text can + //! be changed. + enum TextCase { + //! The text is displayed as its original case. + OriginalCase = 0, + + //! The text is displayed as upper case. + UpperCase = 1, + + //! The text is displayed as lower case. + LowerCase = 2 + }; + + //! Constructs a QsciStyle instance for style number \a style. If \a style + //! is negative then a new style number is automatically allocated. + QsciStyle(int style = -1); + + //! Constructs a QsciStyle instance for style number \a style. If \a style + //! is negative then a new style number is automatically allocated. The + //! styles description, color, paper color, font and end-of-line fill are + //! set to \a description, \a color, \a paper, \a font and \a eolFill + //! respectively. + QsciStyle(int style, const QString &description, const QColor &color, + const QColor &paper, const QFont &font, bool eolFill = false); + + //! \internal Apply the style to a particular editor. + void apply(QsciScintillaBase *sci) const; + + //! Returns the number of the style. + int style() const {return style_nr;} + + //! The style's description is set to \a description. + //! + //! \sa description() + void setDescription(const QString &description) {style_description = description;} + + //! Returns the style's description. + //! + //! \sa setDescription() + QString description() const {return style_description;} + + //! The style's foreground color is set to \a color. The default is taken + //! from the application's default palette. + //! + //! \sa color() + void setColor(const QColor &color); + + //! Returns the style's foreground color. + //! + //! \sa setColor() + QColor color() const {return style_color;} + + //! The style's background color is set to \a paper. The default is taken + //! from the application's default palette. + //! + //! \sa paper() + void setPaper(const QColor &paper); + + //! Returns the style's background color. + //! + //! \sa setPaper() + QColor paper() const {return style_paper;} + + //! The style's font is set to \a font. The default is the application's + //! default font. + //! + //! \sa font() + void setFont(const QFont &font); + + //! Returns the style's font. + //! + //! \sa setFont() + QFont font() const {return style_font;} + + //! The style's end-of-line fill is set to \a fill. The default is false. + //! + //! \sa eolFill() + void setEolFill(bool fill); + + //! Returns the style's end-of-line fill. + //! + //! \sa setEolFill() + bool eolFill() const {return style_eol_fill;} + + //! The style's text case is set to \a text_case. The default is + //! OriginalCase. + //! + //! \sa textCase() + void setTextCase(TextCase text_case); + + //! Returns the style's text case. + //! + //! \sa setTextCase() + TextCase textCase() const {return style_case;} + + //! The style's visibility is set to \a visible. The default is true. + //! + //! \sa visible() + void setVisible(bool visible); + + //! Returns the style's visibility. + //! + //! \sa setVisible() + bool visible() const {return style_visible;} + + //! The style's changeability is set to \a changeable. The default is + //! true. + //! + //! \sa changeable() + void setChangeable(bool changeable); + + //! Returns the style's changeability. + //! + //! \sa setChangeable() + bool changeable() const {return style_changeable;} + + //! The style's sensitivity to mouse clicks is set to \a hotspot. The + //! default is false. + //! + //! \sa hotspot() + void setHotspot(bool hotspot); + + //! Returns the style's sensitivity to mouse clicks. + //! + //! \sa setHotspot() + bool hotspot() const {return style_hotspot;} + + //! Refresh the style settings. + void refresh(); + +private: + int style_nr; + QString style_description; + QColor style_color; + QColor style_paper; + QFont style_font; + bool style_eol_fill; + TextCase style_case; + bool style_visible; + bool style_changeable; + bool style_hotspot; + + void init(int style); +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/Qsci/qscistyledtext.h b/Qt4Qt5/Qsci/qscistyledtext.h new file mode 100644 index 0000000..c96b0a1 --- /dev/null +++ b/Qt4Qt5/Qsci/qscistyledtext.h @@ -0,0 +1,75 @@ +// This module defines interface to the QsciStyledText class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef QSCISTYLEDTEXT_H +#define QSCISTYLEDTEXT_H + +#ifdef __APPLE__ +extern "C++" { +#endif + +#include + +#include + + +class QsciScintillaBase; +class QsciStyle; + + +//! \brief The QsciStyledText class is a container for a piece of text and the +//! style used to display the text. +class QSCINTILLA_EXPORT QsciStyledText +{ +public: + //! Constructs a QsciStyledText instance for text \a text and style number + //! \a style. + QsciStyledText(const QString &text, int style); + + //! Constructs a QsciStyledText instance for text \a text and style \a + //! style. + QsciStyledText(const QString &text, const QsciStyle &style); + + + //! \internal Apply the style to a particular editor. + void apply(QsciScintillaBase *sci) const; + + //! Returns a reference to the text. + const QString &text() const {return styled_text;} + + //! Returns the number of the style. + int style() const; + +private: + QString styled_text; + int style_nr; + const QsciStyle *explicit_style; +}; + +#ifdef __APPLE__ +} +#endif + +#endif diff --git a/Qt4Qt5/SciClasses.cpp b/Qt4Qt5/SciClasses.cpp new file mode 100644 index 0000000..3982aba --- /dev/null +++ b/Qt4Qt5/SciClasses.cpp @@ -0,0 +1,217 @@ +// The implementation of various Qt version independent classes used by the +// rest of the port. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "SciNamespace.h" +#include "SciClasses.h" + +#include +#include +#include + +#include "ScintillaQt.h" +#include "ListBoxQt.h" + + +// Create a call tip. +QsciSciCallTip::QsciSciCallTip(QWidget *parent, QsciScintillaQt *sci_) + : QWidget(parent, Qt::WindowFlags(Qt::Popup|Qt::FramelessWindowHint|Qt::WA_StaticContents)), + sci(sci_) +{ + // Ensure that the main window keeps the focus (and the caret flashing) + // when this is displayed. + setFocusProxy(parent); +} + + +// Destroy a call tip. +QsciSciCallTip::~QsciSciCallTip() +{ + // Ensure that the main window doesn't receive a focus out event when + // this is destroyed. + setFocusProxy(0); +} + + +// Paint a call tip. +void QsciSciCallTip::paintEvent(QPaintEvent *) +{ + QSCI_SCI_NAMESPACE(Surface) *surfaceWindow = QSCI_SCI_NAMESPACE(Surface)::Allocate(SC_TECHNOLOGY_DEFAULT); + + if (!surfaceWindow) + return; + + QPainter p(this); + + surfaceWindow->Init(&p); + surfaceWindow->SetUnicodeMode(sci->CodePage() == SC_CP_UTF8); + sci->ct.PaintCT(surfaceWindow); + + delete surfaceWindow; +} + + +// Handle a mouse press in a call tip. +void QsciSciCallTip::mousePressEvent(QMouseEvent *e) +{ + QSCI_SCI_NAMESPACE(Point) pt; + + pt.x = e->x(); + pt.y = e->y(); + + sci->ct.MouseClick(pt); + sci->CallTipClick(); + + update(); +} + + + +// Create the popup instance. +QsciSciPopup::QsciSciPopup() +{ + // Set up the mapper. + connect(&mapper, SIGNAL(mapped(int)), this, SLOT(on_triggered(int))); +} + + +// Add an item and associated command to the popup and enable it if required. +void QsciSciPopup::addItem(const QString &label, int cmd, bool enabled, + QsciScintillaQt *sci_) +{ + QAction *act = addAction(label, &mapper, SLOT(map())); + mapper.setMapping(act, cmd); + act->setEnabled(enabled); + sci = sci_; +} + + +// A slot to handle a menu action being triggered. +void QsciSciPopup::on_triggered(int cmd) +{ + sci->Command(cmd); +} + + + +#include + + +QsciSciListBox::QsciSciListBox(QWidget *parent, QsciListBoxQt *lbx_) + : QListWidget(parent), lbx(lbx_) +{ + setAttribute(Qt::WA_StaticContents); + +#if defined(Q_OS_WIN) + setWindowFlags(Qt::Tool|Qt::FramelessWindowHint); + + // This stops the main widget losing focus when the user clicks on this one + // (which prevents this one being destroyed). + setFocusPolicy(Qt::NoFocus); +#else + // This is the root of the focus problems under Gnome's window manager. We + // have tried many flag combinations in the past. The consensus now seems + // to be that the following works. However it might now work because of a + // change in Qt so we only enable it for recent versions in order to + // reduce the risk of breaking something that works with earlier versions. +#if QT_VERSION >= 0x040500 + setWindowFlags(Qt::ToolTip|Qt::WindowStaysOnTopHint); +#else + setWindowFlags(Qt::Tool|Qt::FramelessWindowHint); +#endif + + // This may not be needed. + setFocusProxy(parent); +#endif + + setFrameShape(StyledPanel); + setFrameShadow(Plain); + + connect(this, SIGNAL(itemDoubleClicked(QListWidgetItem *)), + SLOT(handleSelection())); +} + + +void QsciSciListBox::addItemPixmap(const QPixmap &pm, const QString &txt) +{ + new QListWidgetItem(pm, txt, this); +} + + +int QsciSciListBox::find(const QString &prefix) +{ + QList itms = findItems(prefix, + Qt::MatchStartsWith|Qt::MatchCaseSensitive); + + if (itms.size() == 0) + return -1; + + return row(itms[0]); +} + + +QString QsciSciListBox::text(int n) +{ + QListWidgetItem *itm = item(n); + + if (!itm) + return QString(); + + return itm->text(); +} + + +// Reimplemented to close the list when the user presses Escape. +void QsciSciListBox::keyPressEvent(QKeyEvent *e) +{ + if (e->key() == Qt::Key_Escape) + { + e->accept(); + close(); + } + else + { + QListWidget::keyPressEvent(e); + + if (!e->isAccepted()) + QCoreApplication::sendEvent(parent(), e); + } +} + + + +QsciSciListBox::~QsciSciListBox() +{ + // Ensure that the main widget doesn't get a focus out event when this is + // destroyed. + setFocusProxy(0); +} + + +void QsciSciListBox::handleSelection() +{ + if (lbx && lbx->cb_action) + lbx->cb_action(lbx->cb_data); +} diff --git a/Qt4Qt5/SciClasses.h b/Qt4Qt5/SciClasses.h new file mode 100644 index 0000000..d3eb683 --- /dev/null +++ b/Qt4Qt5/SciClasses.h @@ -0,0 +1,123 @@ +// The definition of various Qt version independent classes used by the rest of +// the port. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef _SCICLASSES_H +#define _SCICLASSES_H + +#include +#include + +#include + + +QT_BEGIN_NAMESPACE +class QMouseEvent; +class QPaintEvent; +QT_END_NAMESPACE + +class QsciScintillaQt; +class QsciListBoxQt; + + +// A simple QWidget sub-class to implement a call tip. This is not put into +// the Scintilla namespace because of moc's problems with preprocessor macros. +class QsciSciCallTip : public QWidget +{ + Q_OBJECT + +public: + QsciSciCallTip(QWidget *parent, QsciScintillaQt *sci_); + ~QsciSciCallTip(); + +protected: + void paintEvent(QPaintEvent *e); + void mousePressEvent(QMouseEvent *e); + +private: + QsciScintillaQt *sci; +}; + + +// A popup menu where options correspond to a numeric command. This is not put +// into the Scintilla namespace because of moc's problems with preprocessor +// macros. + +#include +#include + +class QsciSciPopup : public QMenu +{ + Q_OBJECT + +public: + QsciSciPopup(); + + void addItem(const QString &label, int cmd, bool enabled, + QsciScintillaQt *sci_); + +private slots: + void on_triggered(int cmd); + +private: + QsciScintillaQt *sci; + QSignalMapper mapper; +}; + + + +// This sub-class of QListBox is needed to provide slots from which we can call +// QsciListBox's double-click callback (and you thought this was a C++ +// program). This is not put into the Scintilla namespace because of moc's +// problems with preprocessor macros. + + +#include + +class QsciSciListBox : public QListWidget +{ + Q_OBJECT + +public: + QsciSciListBox(QWidget *parent, QsciListBoxQt *lbx_); + virtual ~QsciSciListBox(); + + void addItemPixmap(const QPixmap &pm, const QString &txt); + + int find(const QString &prefix); + QString text(int n); + +protected: + void keyPressEvent(QKeyEvent *e); + +private slots: + void handleSelection(); + +private: + QsciListBoxQt *lbx; +}; + + +#endif diff --git a/Qt4Qt5/SciNamespace.h b/Qt4Qt5/SciNamespace.h new file mode 100644 index 0000000..83c80f5 --- /dev/null +++ b/Qt4Qt5/SciNamespace.h @@ -0,0 +1,40 @@ +// Support for building the Scintilla code in the Scintilla namespace using the +// -DSCI_NAMESPACE compiler flag. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef _SCINAMESPACE_H +#define _SCINAMESPACE_H + +#ifdef SCI_NAMESPACE +#define QSCI_SCI_NAMESPACE(name) Scintilla::name +#define QSCI_BEGIN_SCI_NAMESPACE namespace Scintilla { +#define QSCI_END_SCI_NAMESPACE }; +#else +#define QSCI_SCI_NAMESPACE(name) name +#define QSCI_BEGIN_SCI_NAMESPACE +#define QSCI_END_SCI_NAMESPACE +#endif + +#endif diff --git a/Qt4Qt5/ScintillaQt.cpp b/Qt4Qt5/ScintillaQt.cpp new file mode 100644 index 0000000..3e001c1 --- /dev/null +++ b/Qt4Qt5/ScintillaQt.cpp @@ -0,0 +1,611 @@ +// The implementation of the Qt specific subclass of ScintillaBase. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include + +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "Qsci/qsciscintillabase.h" +#include "ScintillaQt.h" +#include "SciClasses.h" + + +// We want to use the Scintilla notification names as Qt signal names. +#undef SCEN_CHANGE +#undef SCN_AUTOCCANCELLED +#undef SCN_AUTOCCHARDELETED +#undef SCN_AUTOCSELECTION +#undef SCN_CALLTIPCLICK +#undef SCN_CHARADDED +#undef SCN_DOUBLECLICK +#undef SCN_DWELLEND +#undef SCN_DWELLSTART +#undef SCN_FOCUSIN +#undef SCN_FOCUSOUT +#undef SCN_HOTSPOTCLICK +#undef SCN_HOTSPOTDOUBLECLICK +#undef SCN_HOTSPOTRELEASECLICK +#undef SCN_INDICATORCLICK +#undef SCN_INDICATORRELEASE +#undef SCN_MACRORECORD +#undef SCN_MARGINCLICK +#undef SCN_MODIFIED +#undef SCN_MODIFYATTEMPTRO +#undef SCN_NEEDSHOWN +#undef SCN_PAINTED +#undef SCN_SAVEPOINTLEFT +#undef SCN_SAVEPOINTREACHED +#undef SCN_STYLENEEDED +#undef SCN_UPDATEUI +#undef SCN_USERLISTSELECTION +#undef SCN_ZOOM + +enum +{ + SCEN_CHANGE = 768, + SCN_AUTOCCANCELLED = 2025, + SCN_AUTOCCHARDELETED = 2026, + SCN_AUTOCSELECTION = 2022, + SCN_CALLTIPCLICK = 2021, + SCN_CHARADDED = 2001, + SCN_DOUBLECLICK = 2006, + SCN_DWELLEND = 2017, + SCN_DWELLSTART = 2016, + SCN_FOCUSIN = 2028, + SCN_FOCUSOUT = 2029, + SCN_HOTSPOTCLICK = 2019, + SCN_HOTSPOTDOUBLECLICK = 2020, + SCN_HOTSPOTRELEASECLICK = 2027, + SCN_INDICATORCLICK = 2023, + SCN_INDICATORRELEASE = 2024, + SCN_MACRORECORD = 2009, + SCN_MARGINCLICK = 2010, + SCN_MODIFIED = 2008, + SCN_MODIFYATTEMPTRO = 2004, + SCN_NEEDSHOWN = 2011, + SCN_PAINTED = 2013, + SCN_SAVEPOINTLEFT = 2003, + SCN_SAVEPOINTREACHED = 2002, + SCN_STYLENEEDED = 2000, + SCN_UPDATEUI = 2007, + SCN_USERLISTSELECTION = 2014, + SCN_ZOOM = 2018 +}; + + +// The ctor. +QsciScintillaQt::QsciScintillaQt(QsciScintillaBase *qsb_) + : capturedMouse(false), qsb(qsb_) +{ + wMain = qsb->viewport(); + + // We aren't a QObject so we use the API class to do QObject related things + // for us. + qsb->connect(&qtimer, SIGNAL(timeout()), SLOT(handleTimer())); + + Initialise(); +} + + +// The dtor. +QsciScintillaQt::~QsciScintillaQt() +{ + Finalise(); +} + + +// Initialise the instance. +void QsciScintillaQt::Initialise() +{ + SetTicking(true); +} + + +// Tidy up the instance. +void QsciScintillaQt::Finalise() +{ + SetTicking(false); + ScintillaBase::Finalise(); +} + + +// Start a drag. +void QsciScintillaQt::StartDrag() +{ + inDragDrop = ddDragging; + + QDrag *qdrag = new QDrag(qsb); + qdrag->setMimeData(mimeSelection(drag)); + +# if QT_VERSION >= 0x040300 + Qt::DropAction action = qdrag->exec(Qt::MoveAction | Qt::CopyAction, Qt::MoveAction); +# else + Qt::DropAction action = qdrag->start(Qt::MoveAction); +# endif + + // Remove the dragged text if it was a move to another widget or + // application. + if (action == Qt::MoveAction && qdrag->target() != qsb->viewport()) + ClearSelection(); + + SetDragPosition(QSCI_SCI_NAMESPACE(SelectionPosition)()); + inDragDrop = ddNone; +} + + +// Re-implement to trap certain messages. +sptr_t QsciScintillaQt::WndProc(unsigned int iMessage, uptr_t wParam, + sptr_t lParam) +{ + switch (iMessage) + { + case SCI_GETDIRECTFUNCTION: + return reinterpret_cast(DirectFunction); + + case SCI_GETDIRECTPOINTER: + return reinterpret_cast(this); + } + + return ScintillaBase::WndProc(iMessage, wParam, lParam); +} + + +// Windows nonsense. +sptr_t QsciScintillaQt::DefWndProc(unsigned int, uptr_t, sptr_t) +{ + return 0; +} + + +// Manage the timer. +void QsciScintillaQt::SetTicking(bool on) +{ + if (timer.ticking != on) + { + timer.ticking = on; + + if (timer.ticking) + qtimer.start(timer.tickSize); + else + qtimer.stop(); + } + + timer.ticksToWait = caret.period; +} + + +// Grab or release the mouse (and keyboard). +void QsciScintillaQt::SetMouseCapture(bool on) +{ + if (mouseDownCaptures) + if (on) + qsb->viewport()->grabMouse(); + else + qsb->viewport()->releaseMouse(); + + capturedMouse = on; +} + + +// Return true if the mouse/keyboard are currently grabbed. +bool QsciScintillaQt::HaveMouseCapture() +{ + return capturedMouse; +} + + +// Set the position of the vertical scrollbar. +void QsciScintillaQt::SetVerticalScrollPos() +{ + qsb->verticalScrollBar()->setValue(topLine); +} + + +// Set the position of the horizontal scrollbar. +void QsciScintillaQt::SetHorizontalScrollPos() +{ + qsb->horizontalScrollBar()->setValue(xOffset); +} + + +// Set the extent of the vertical and horizontal scrollbars and return true if +// the view needs re-drawing. +bool QsciScintillaQt::ModifyScrollBars(int nMax,int nPage) +{ + qsb->verticalScrollBar()->setMinimum(0); + qsb->verticalScrollBar()->setMaximum(nMax - nPage + 1); + qsb->verticalScrollBar()->setPageStep(nPage); + qsb->verticalScrollBar()->setSingleStep(1); + + // QAbstractScrollArea ignores Qt::ScrollBarAsNeeded and shows the + // horizontal scrollbar if a non-zero maximum is set. That isn't the + // behavior we want, so set the maximum to zero unless scrollWidth exceeds + // the viewport. + const int widthBeyondViewport = qMax(0, + scrollWidth - qsb->viewport()->width()); + + qsb->horizontalScrollBar()->setMinimum(0); + qsb->horizontalScrollBar()->setMaximum(qMax(0, widthBeyondViewport - 1)); + qsb->horizontalScrollBar()->setPageStep(widthBeyondViewport / 10); + + return true; +} + + +// Called after SCI_SETWRAPMODE and SCI_SETHSCROLLBAR. +void QsciScintillaQt::ReconfigureScrollBars() +{ + // Hide or show the scrollbars if needed. + bool hsb = (horizontalScrollBarVisible && !Wrapping()); + + qsb->setHorizontalScrollBarPolicy(hsb ? Qt::ScrollBarAsNeeded : Qt::ScrollBarAlwaysOff); + qsb->setVerticalScrollBarPolicy(verticalScrollBarVisible ? Qt::ScrollBarAsNeeded : Qt::ScrollBarAlwaysOff); +} + + +// Notify interested parties of any change in the document. +void QsciScintillaQt::NotifyChange() +{ + emit qsb->SCEN_CHANGE(); +} + + +// Notify interested parties of various events. This is the main mapping +// between Scintilla notifications and Qt signals. +void QsciScintillaQt::NotifyParent(QSCI_SCI_NAMESPACE(SCNotification) scn) +{ + switch (scn.nmhdr.code) + { + case SCN_CALLTIPCLICK: + emit qsb->SCN_CALLTIPCLICK(scn.position); + break; + + case SCN_AUTOCCANCELLED: + emit qsb->SCN_AUTOCCANCELLED(); + break; + + case SCN_AUTOCCHARDELETED: + emit qsb->SCN_AUTOCCHARDELETED(); + break; + + case SCN_AUTOCSELECTION: + emit qsb->SCN_AUTOCSELECTION(scn.text, scn.lParam); + break; + + case SCN_CHARADDED: + emit qsb->SCN_CHARADDED(scn.ch); + break; + + case SCN_DOUBLECLICK: + emit qsb->SCN_DOUBLECLICK(scn.position, scn.line, scn.modifiers); + break; + + case SCN_DWELLEND: + emit qsb->SCN_DWELLEND(scn.position, scn.x, scn.y); + break; + + case SCN_DWELLSTART: + emit qsb->SCN_DWELLSTART(scn.position, scn.x, scn.y); + break; + + case SCN_FOCUSIN: + emit qsb->SCN_FOCUSIN(); + break; + + case SCN_FOCUSOUT: + emit qsb->SCN_FOCUSOUT(); + break; + + case SCN_HOTSPOTCLICK: + emit qsb->SCN_HOTSPOTCLICK(scn.position, scn.modifiers); + break; + + case SCN_HOTSPOTDOUBLECLICK: + emit qsb->SCN_HOTSPOTDOUBLECLICK(scn.position, scn.modifiers); + break; + + case SCN_HOTSPOTRELEASECLICK: + emit qsb->SCN_HOTSPOTRELEASECLICK(scn.position, scn.modifiers); + break; + + case SCN_INDICATORCLICK: + emit qsb->SCN_INDICATORCLICK(scn.position, scn.modifiers); + break; + + case SCN_INDICATORRELEASE: + emit qsb->SCN_INDICATORRELEASE(scn.position, scn.modifiers); + break; + + case SCN_MACRORECORD: + emit qsb->SCN_MACRORECORD(scn.message, scn.wParam, + reinterpret_cast(scn.lParam)); + break; + + case SCN_MARGINCLICK: + emit qsb->SCN_MARGINCLICK(scn.position, scn.modifiers, scn.margin); + break; + + case SCN_MODIFIED: + { + char *text; + + // Give some protection to the Python bindings. + if (scn.text && (scn.modificationType & (SC_MOD_INSERTTEXT|SC_MOD_DELETETEXT) != 0)) + { + text = new char[scn.length + 1]; + memcpy(text, scn.text, scn.length); + text[scn.length] = '\0'; + } + else + { + text = 0; + } + + emit qsb->SCN_MODIFIED(scn.position, scn.modificationType, text, + scn.length, scn.linesAdded, scn.line, scn.foldLevelNow, + scn.foldLevelPrev, scn.token, scn.annotationLinesAdded); + + if (text) + delete[] text; + + break; + } + + case SCN_MODIFYATTEMPTRO: + emit qsb->SCN_MODIFYATTEMPTRO(); + break; + + case SCN_NEEDSHOWN: + emit qsb->SCN_NEEDSHOWN(scn.position, scn.length); + break; + + case SCN_PAINTED: + emit qsb->SCN_PAINTED(); + break; + + case SCN_SAVEPOINTLEFT: + emit qsb->SCN_SAVEPOINTLEFT(); + break; + + case SCN_SAVEPOINTREACHED: + emit qsb->SCN_SAVEPOINTREACHED(); + break; + + case SCN_STYLENEEDED: + emit qsb->SCN_STYLENEEDED(scn.position); + break; + + case SCN_UPDATEUI: + emit qsb->SCN_UPDATEUI(scn.updated); + break; + + case SCN_USERLISTSELECTION: + emit qsb->SCN_USERLISTSELECTION(scn.text, scn.wParam); + break; + + case SCN_ZOOM: + emit qsb->SCN_ZOOM(); + break; + + default: + qWarning("Unknown notification: %u", scn.nmhdr.code); + } +} + + + +// Convert a selection to mime data. +QMimeData *QsciScintillaQt::mimeSelection( + const QSCI_SCI_NAMESPACE(SelectionText) &text) const +{ + return qsb->toMimeData(QByteArray(text.Data()), text.rectangular); +} + + + +// Copy the selected text to the clipboard. +void QsciScintillaQt::CopyToClipboard( + const QSCI_SCI_NAMESPACE(SelectionText) &selectedText) +{ + QApplication::clipboard()->setMimeData(mimeSelection(selectedText)); +} + + +// Implement copy. +void QsciScintillaQt::Copy() +{ + if (!sel.Empty()) + { + QSCI_SCI_NAMESPACE(SelectionText) text; + + CopySelectionRange(&text); + CopyToClipboard(text); + } +} + + +// Implement pasting text. +void QsciScintillaQt::Paste() +{ + pasteFromClipboard(QClipboard::Clipboard); +} + + +// Paste text from either the clipboard or selection. +void QsciScintillaQt::pasteFromClipboard(QClipboard::Mode mode) +{ + int len; + const char *s; + bool rectangular; + + const QMimeData *source = QApplication::clipboard()->mimeData(mode); + + if (!source || !qsb->canInsertFromMimeData(source)) + return; + + QByteArray text = qsb->fromMimeData(source, rectangular); + len = text.length(); + s = text.data(); + + std::string dest = QSCI_SCI_NAMESPACE(Document)::TransformLineEnds(s, len, + pdoc->eolMode); + + QSCI_SCI_NAMESPACE(SelectionText) selText; + selText.Copy(dest, (IsUnicodeMode() ? SC_CP_UTF8 : 0), + vs.styles[STYLE_DEFAULT].characterSet, rectangular, false); + + QSCI_SCI_NAMESPACE(UndoGroup) ug(pdoc); + + ClearSelection(); + + QSCI_SCI_NAMESPACE(SelectionPosition) start = sel.IsRectangular() + ? sel.Rectangular().Start() : sel.Range(sel.Main()).Start(); + + if (selText.rectangular) + PasteRectangular(start, selText.Data(), selText.Length()); + else + InsertPaste(start, selText.Data(), selText.Length()); + + NotifyChange(); + Redraw(); +} + + +// Create a call tip window. +void QsciScintillaQt::CreateCallTipWindow(QSCI_SCI_NAMESPACE(PRectangle) rc) +{ + if (!ct.wCallTip.Created()) + ct.wCallTip = ct.wDraw = new QsciSciCallTip(qsb, this); + + QsciSciCallTip *w = reinterpret_cast(ct.wCallTip.GetID()); + + w->resize(rc.right - rc.left, rc.bottom - rc.top); + ct.wCallTip.Show(); +} + + +// Add an item to the right button menu. +void QsciScintillaQt::AddToPopUp(const char *label, int cmd, bool enabled) +{ + QsciSciPopup *pm = static_cast(popup.GetID()); + + if (*label) + pm->addItem(qApp->translate("ContextMenu", label), cmd, enabled, this); + else + pm->addSeparator(); +} + + +// Claim the selection. +void QsciScintillaQt::ClaimSelection() +{ + bool isSel = !sel.Empty(); + + if (isSel) + { + QClipboard *cb = QApplication::clipboard(); + + // If we support X11 style selection then make it available now. + if (cb->supportsSelection()) + { + QSCI_SCI_NAMESPACE(SelectionText) text; + + CopySelectionRange(&text); + + if (text.Data()) + cb->setMimeData(mimeSelection(text), QClipboard::Selection); + } + + primarySelection = true; + } + else + primarySelection = false; + + emit qsb->QSCN_SELCHANGED(isSel); +} + + +// Unclaim the selection. +void QsciScintillaQt::UnclaimSelection() +{ + if (primarySelection) + { + primarySelection = false; + qsb->viewport()->update(); + } +} + + +// Implemented to provide compatibility with the Windows version. +sptr_t QsciScintillaQt::DirectFunction(QsciScintillaQt *sciThis, unsigned int iMessage, + uptr_t wParam, sptr_t lParam) +{ + return sciThis->WndProc(iMessage,wParam,lParam); +} + + +// Draw the contents of the widget. +void QsciScintillaQt::paintEvent(QPaintEvent *e) +{ + QSCI_SCI_NAMESPACE(Surface) *sw = QSCI_SCI_NAMESPACE(Surface)::Allocate(SC_TECHNOLOGY_DEFAULT); + + if (!sw) + return; + + paintState = painting; + + const QRect &qr = e->rect(); + + rcPaint.left = qr.left(); + rcPaint.top = qr.top(); + rcPaint.right = qr.right() + 1; + rcPaint.bottom = qr.bottom() + 1; + + QSCI_SCI_NAMESPACE(PRectangle) rcText = GetTextRectangle(); + paintingAllText = rcPaint.Contains(rcText); + + QPainter painter(qsb->viewport()); + + sw->Init(&painter); + sw->SetUnicodeMode(CodePage() == SC_CP_UTF8); + Paint(sw, rcPaint); + + delete sw; + + // If the painting area was insufficient to cover the new style or brace + // highlight positions then repaint the whole thing. + if (paintState == paintAbandoned) + qsb->viewport()->update(); + + paintState = notPainting; +} diff --git a/Qt4Qt5/ScintillaQt.h b/Qt4Qt5/ScintillaQt.h new file mode 100644 index 0000000..75ff821 --- /dev/null +++ b/Qt4Qt5/ScintillaQt.h @@ -0,0 +1,135 @@ +// The definition of the Qt specific subclass of ScintillaBase. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#ifndef SCINTILLAQT_H +#define SCINTILLAQT_H + + +#include +#include + +#include + +#include "SciNamespace.h" + +// These are needed because Scintilla class header files don't manage their own +// dependencies properly. +#include +#include +#include +#include +#include +#include "ILexer.h" +#include "Platform.h" +#include "Scintilla.h" +#include "SplitVector.h" +#include "Partitioning.h" +#include "CellBuffer.h" +#include "CharClassify.h" +#include "RunStyles.h" +#include "CaseFolder.h" +#include "Decoration.h" +#include "Document.h" +#include "Style.h" +#include "XPM.h" +#include "LineMarker.h" +#include "Indicator.h" +#include "ViewStyle.h" +#include "KeyMap.h" +#include "ContractionState.h" +#include "Selection.h" +#include "PositionCache.h" +#include "Editor.h" +#include "AutoComplete.h" +#include "CallTip.h" +#include "LexAccessor.h" +#include "Accessor.h" + +#include "ScintillaBase.h" + + +QT_BEGIN_NAMESPACE +class QPaintEvent; +class QDropEvent; +class QMimeData; +QT_END_NAMESPACE + +class QsciScintillaBase; +class QsciSciCallTip; +class QsciSciPopup; + + +// This is an internal class but it is referenced by a public class so it has +// to have a Qsci prefix rather than being put in the Scintilla namespace +// which would mean exposing the SCI_NAMESPACE mechanism). +class QsciScintillaQt : public QSCI_SCI_NAMESPACE(ScintillaBase) +{ + friend class QsciScintillaBase; + friend class QsciSciCallTip; + friend class QsciSciPopup; + +public: + QsciScintillaQt(QsciScintillaBase *qsb_); + virtual ~QsciScintillaQt(); + + virtual sptr_t WndProc(unsigned int iMessage, uptr_t wParam, + sptr_t lParam); + +private: + void Initialise(); + void Finalise(); + void StartDrag(); + sptr_t DefWndProc(unsigned int, uptr_t, sptr_t); + void SetTicking(bool); + void SetMouseCapture(bool on); + bool HaveMouseCapture(); + void SetVerticalScrollPos(); + void SetHorizontalScrollPos(); + bool ModifyScrollBars(int nMax, int nPage); + void ReconfigureScrollBars(); + void NotifyChange(); + void NotifyParent(QSCI_SCI_NAMESPACE(SCNotification) scn); + void CopyToClipboard( + const QSCI_SCI_NAMESPACE(SelectionText) &selectedText); + void Copy(); + void Paste(); + void CreateCallTipWindow(QSCI_SCI_NAMESPACE(PRectangle) rc); + void AddToPopUp(const char *label, int cmd = 0, bool enabled = true); + void ClaimSelection(); + void UnclaimSelection(); + static sptr_t DirectFunction(QsciScintillaQt *sci, unsigned int iMessage, + uptr_t wParam,sptr_t lParam); + + QMimeData *mimeSelection( + const QSCI_SCI_NAMESPACE(SelectionText) &text) const; + void paintEvent(QPaintEvent *e); + void pasteFromClipboard(QClipboard::Mode mode); + + bool capturedMouse; + QsciScintillaBase *qsb; + QTimer qtimer; +}; + +#endif diff --git a/Qt4Qt5/features/qscintilla2.prf b/Qt4Qt5/features/qscintilla2.prf new file mode 100644 index 0000000..e91e3be --- /dev/null +++ b/Qt4Qt5/features/qscintilla2.prf @@ -0,0 +1,25 @@ +greaterThan(QT_MAJOR_VERSION, 4) { + QT += widgets printsupport + + greaterThan(QT_MINOR_VERSION, 1) { + macx:QT += macextras + } +} + +INCLUDEPATH += $$[QT_INSTALL_HEADERS] + +LIBS += -L$$[QT_INSTALL_LIBS] + +CONFIG(debug, debug|release) { + mac: { + LIBS += -lqscintilla2_debug + } else { + win32: { + LIBS += -lqscintilla2d + } else { + LIBS += -lqscintilla2 + } + } +} else { + LIBS += -lqscintilla2 +} diff --git a/Qt4Qt5/qsciabstractapis.cpp b/Qt4Qt5/qsciabstractapis.cpp new file mode 100644 index 0000000..3a9c412 --- /dev/null +++ b/Qt4Qt5/qsciabstractapis.cpp @@ -0,0 +1,56 @@ +// This module implements the QsciAbstractAPIs class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qsciabstractapis.h" + +#include "Qsci/qscilexer.h" + + +// The ctor. +QsciAbstractAPIs::QsciAbstractAPIs(QsciLexer *lexer) + : QObject(lexer), + lex(lexer) +{ + lexer->setAPIs(this); +} + + +// The dtor. +QsciAbstractAPIs::~QsciAbstractAPIs() +{ +} + + +// Return the lexer. +QsciLexer *QsciAbstractAPIs::lexer() const +{ + return lex; +} + + +// Called when the user has made a selection from the auto-completion list. +void QsciAbstractAPIs::autoCompletionSelected(const QString &selection) +{ +} diff --git a/Qt4Qt5/qsciapis.cpp b/Qt4Qt5/qsciapis.cpp new file mode 100644 index 0000000..bfe733c --- /dev/null +++ b/Qt4Qt5/qsciapis.cpp @@ -0,0 +1,972 @@ +// This module implements the QsciAPIs class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include + +#include "Qsci/qsciapis.h" + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "Qsci/qscilexer.h" + + + +// The version number of the prepared API information format. +const unsigned char PreparedDataFormatVersion = 0; + + +// This class contains prepared API information. +struct QsciAPIsPrepared +{ + // The word dictionary is a map of individual words and a list of positions + // each occurs in the sorted list of APIs. A position is a tuple of the + // index into the list of APIs and the index into the particular API. + QMap wdict; + + // The case dictionary maps the case insensitive words to the form in which + // they are to be used. It is only used if the language is case + // insensitive. + QMap cdict; + + + // The raw API information. + QStringList raw_apis; + + QStringList apiWords(int api_idx, const QStringList &wseps, + bool strip_image) const; + static QString apiBaseName(const QString &api); +}; + + + +// Return a particular API entry as a list of words. +QStringList QsciAPIsPrepared::apiWords(int api_idx, const QStringList &wseps, + bool strip_image) const +{ + QString base = apiBaseName(raw_apis[api_idx]); + + // Remove any embedded image reference if necessary. + if (strip_image) + { + int tail = base.indexOf('?'); + + if (tail >= 0) + base.truncate(tail); + } + + if (wseps.isEmpty()) + return QStringList(base); + + return base.split(wseps.first()); +} + + +// Return the name of an API function, ie. without the arguments. +QString QsciAPIsPrepared::apiBaseName(const QString &api) +{ + QString base = api; + int tail = base.indexOf('('); + + if (tail >= 0) + base.truncate(tail); + + return base.simplified(); +} + + +// The user event type that signals that the worker thread has started. +const QEvent::Type WorkerStarted = static_cast(QEvent::User + 1012); + + +// The user event type that signals that the worker thread has finished. +const QEvent::Type WorkerFinished = static_cast(QEvent::User + 1013); + + +// The user event type that signals that the worker thread has aborted. +const QEvent::Type WorkerAborted = static_cast(QEvent::User + 1014); + + +// This class is the worker thread that post-processes the API set. +class QsciAPIsWorker : public QThread +{ +public: + QsciAPIsWorker(QsciAPIs *apis); + virtual ~QsciAPIsWorker(); + + virtual void run(); + + QsciAPIsPrepared *prepared; + +private: + QsciAPIs *proxy; + bool abort; +}; + + +// The worker thread ctor. +QsciAPIsWorker::QsciAPIsWorker(QsciAPIs *apis) + : proxy(apis), prepared(0), abort(false) +{ +} + + +// The worker thread dtor. +QsciAPIsWorker::~QsciAPIsWorker() +{ + // Tell the thread to stop. There is no need to bother with a mutex. + abort = true; + + // Wait for it to do so and hit it if it doesn't. + if (!wait(500)) + terminate(); + + if (prepared) + delete prepared; +} + + +// The worker thread entry point. +void QsciAPIsWorker::run() +{ + // Sanity check. + if (!prepared) + return; + + // Tell the main thread we have started. + QApplication::postEvent(proxy, new QEvent(WorkerStarted)); + + // Sort the full list. + prepared->raw_apis.sort(); + + QStringList wseps = proxy->lexer()->autoCompletionWordSeparators(); + bool cs = proxy->lexer()->caseSensitive(); + + // Split each entry into separate words but ignoring any arguments. + for (int a = 0; a < prepared->raw_apis.count(); ++a) + { + // Check to see if we should stop. + if (abort) + break; + + QStringList words = prepared->apiWords(a, wseps, true); + + for (int w = 0; w < words.count(); ++w) + { + const QString &word = words[w]; + + // Add the word's position to any existing list for this word. + QsciAPIs::WordIndexList wil = prepared->wdict[word]; + + // If the language is case insensitive and we haven't seen this + // word before then save it in the case dictionary. + if (!cs && wil.count() == 0) + prepared->cdict[word.toUpper()] = word; + + wil.append(QsciAPIs::WordIndex(a, w)); + prepared->wdict[word] = wil; + } + } + + + // Tell the main thread we have finished. + QApplication::postEvent(proxy, new QEvent(abort ? WorkerAborted : WorkerFinished)); +} + + +// The ctor. +QsciAPIs::QsciAPIs(QsciLexer *lexer) + : QsciAbstractAPIs(lexer), + worker(0), origin_len(0) +{ + prep = new QsciAPIsPrepared; +} + + +// The dtor. +QsciAPIs::~QsciAPIs() +{ + deleteWorker(); + delete prep; +} + + +// Delete the worker thread if there is one. +void QsciAPIs::deleteWorker() +{ + if (worker) + { + delete worker; + worker = 0; + } +} + + +//! Handle termination events from the worker thread. +bool QsciAPIs::event(QEvent *e) +{ + switch (e->type()) + { + case WorkerStarted: + emit apiPreparationStarted(); + return true; + + case WorkerAborted: + deleteWorker(); + emit apiPreparationCancelled(); + return true; + + case WorkerFinished: + delete prep; + old_context.clear(); + + prep = worker->prepared; + worker->prepared = 0; + deleteWorker(); + + // Allow the raw API information to be modified. + apis = prep->raw_apis; + + emit apiPreparationFinished(); + + return true; + } + + return QObject::event(e); +} + + +// Clear the current raw API entries. +void QsciAPIs::clear() +{ + apis.clear(); +} + + +// Clear out all API information. +bool QsciAPIs::load(const QString &filename) +{ + QFile f(filename); + + if (!f.open(QIODevice::ReadOnly)) + return false; + + QTextStream ts(&f); + + for (;;) + { + QString line = ts.readLine(); + + if (line.isEmpty()) + break; + + apis.append(line); + } + + return true; +} + + +// Add a single API entry. +void QsciAPIs::add(const QString &entry) +{ + apis.append(entry); +} + + +// Remove a single API entry. +void QsciAPIs::remove(const QString &entry) +{ + int idx = apis.indexOf(entry); + + if (idx >= 0) + apis.removeAt(idx); +} + + +// Position the "origin" cursor into the API entries according to the user +// supplied context. +QStringList QsciAPIs::positionOrigin(const QStringList &context, QString &path) +{ + // Get the list of words and see if the context is the same as last time we + // were called. + QStringList new_context; + bool same_context = (old_context.count() > 0 && old_context.count() < context.count()); + + for (int i = 0; i < context.count(); ++i) + { + QString word = context[i]; + + if (!lexer()->caseSensitive()) + word = word.toUpper(); + + if (i < old_context.count() && old_context[i] != word) + same_context = false; + + new_context << word; + } + + // If the context has changed then reset the origin. + if (!same_context) + origin_len = 0; + + // If we have a current origin (ie. the user made a specific selection in + // the current context) then adjust the origin to include the last complete + // word as the user may have entered more parts of the name without using + // auto-completion. + if (origin_len > 0) + { + const QString wsep = lexer()->autoCompletionWordSeparators().first(); + + int start_new = old_context.count(); + int end_new = new_context.count() - 1; + + if (start_new == end_new) + { + path = old_context.join(wsep); + origin_len = path.length(); + } + else + { + QString fixed = *origin; + fixed.truncate(origin_len); + + path = fixed; + + while (start_new < end_new) + { + // Add this word to the current path. + path.append(wsep); + path.append(new_context[start_new]); + origin_len = path.length(); + + // Skip entries in the current origin that don't match the + // path. + while (origin != prep->raw_apis.end()) + { + // See if the current origin has come to an end. + if (!originStartsWith(fixed, wsep)) + origin = prep->raw_apis.end(); + else if (originStartsWith(path, wsep)) + break; + else + ++origin; + } + + if (origin == prep->raw_apis.end()) + break; + + ++start_new; + } + } + + // Terminate the path. + path.append(wsep); + + // If the new text wasn't recognised then reset the origin. + if (origin == prep->raw_apis.end()) + origin_len = 0; + } + + if (origin_len == 0) + path.truncate(0); + + // Save the "committed" context for next time. + old_context = new_context; + old_context.removeLast(); + + return new_context; +} + + +// Return true if the origin starts with the given path. +bool QsciAPIs::originStartsWith(const QString &path, const QString &wsep) +{ + const QString &orig = *origin; + + if (!orig.startsWith(path)) + return false; + + // Check that the path corresponds to the end of a word, ie. that what + // follows in the origin is either a word separator or a (. + QString tail = orig.mid(path.length()); + + return (!tail.isEmpty() && (tail.startsWith(wsep) || tail.at(0) == '(')); +} + + +// Add auto-completion words to an existing list. +void QsciAPIs::updateAutoCompletionList(const QStringList &context, + QStringList &list) +{ + QString path; + QStringList new_context = positionOrigin(context, path); + + if (origin_len > 0) + { + const QString wsep = lexer()->autoCompletionWordSeparators().first(); + QStringList::const_iterator it = origin; + + unambiguous_context = path; + + while (it != prep->raw_apis.end()) + { + QString base = QsciAPIsPrepared::apiBaseName(*it); + + if (!base.startsWith(path)) + break; + + // Make sure we have something after the path. + if (base != path) + { + // Get the word we are interested in (ie. the one after the + // current origin in path). + QString w = base.mid(origin_len + wsep.length()).split(wsep).first(); + + // Append the space, we know the origin is unambiguous. + w.append(' '); + + if (!list.contains(w)) + list << w; + } + + ++it; + } + } + else + { + // At the moment we assume we will add words from multiple contexts. + unambiguous_context.truncate(0); + + bool unambig = true; + QStringList with_context; + + if (new_context.last().isEmpty()) + lastCompleteWord(new_context[new_context.count() - 2], with_context, unambig); + else + lastPartialWord(new_context.last(), with_context, unambig); + + for (int i = 0; i < with_context.count(); ++i) + { + // Remove any unambigious context. + QString noc = with_context[i]; + + if (unambig) + { + int op = noc.indexOf('('); + + if (op >= 0) + noc.truncate(op); + } + + list << noc; + } + } +} + + +// Get the index list for a particular word if there is one. +const QsciAPIs::WordIndexList *QsciAPIs::wordIndexOf(const QString &word) const +{ + QString csword; + + // Indirect through the case dictionary if the language isn't case + // sensitive. + if (lexer()->caseSensitive()) + csword = word; + else + { + csword = prep->cdict[word]; + + if (csword.isEmpty()) + return 0; + } + + // Get the possible API entries if any. + const WordIndexList *wl = &prep->wdict[csword]; + + if (wl->isEmpty()) + return 0; + + return wl; +} + + +// Add auto-completion words based on the last complete word entered. +void QsciAPIs::lastCompleteWord(const QString &word, QStringList &with_context, bool &unambig) +{ + // Get the possible API entries if any. + const WordIndexList *wl = wordIndexOf(word); + + if (wl) + addAPIEntries(*wl, true, with_context, unambig); +} + + +// Add auto-completion words based on the last partial word entered. +void QsciAPIs::lastPartialWord(const QString &word, QStringList &with_context, bool &unambig) +{ + if (lexer()->caseSensitive()) + { + QMap::const_iterator it = prep->wdict.lowerBound(word); + + while (it != prep->wdict.end()) + { + if (!it.key().startsWith(word)) + break; + + addAPIEntries(it.value(), false, with_context, unambig); + + ++it; + } + } + else + { + QMap::const_iterator it = prep->cdict.lowerBound(word); + + while (it != prep->cdict.end()) + { + if (!it.key().startsWith(word)) + break; + + addAPIEntries(prep->wdict[it.value()], false, with_context, unambig); + + ++it; + } + } +} + + +// Handle the selection of an entry in the auto-completion list. +void QsciAPIs::autoCompletionSelected(const QString &selection) +{ + // If the selection is an API (ie. it has a space separating the selected + // word and the optional origin) then remember the origin. + QStringList lst = selection.split(' '); + + if (lst.count() != 2) + { + origin_len = 0; + return; + } + + const QString &path = lst[1]; + QString owords; + + if (path.isEmpty()) + owords = unambiguous_context; + else + { + // Check the parenthesis. + if (!path.startsWith("(") || !path.endsWith(")")) + { + origin_len = 0; + return; + } + + // Remove the parenthesis. + owords = path.mid(1, path.length() - 2); + } + + origin = qLowerBound(prep->raw_apis, owords); + /* + * There is a bug somewhere, either in qLowerBound() or QList (or in GCC as + * it seems to be Linux specific and the Qt code is the same on all + * platforms) that the following line seems to fix. Note that it is + * actually the call to detach() within begin() that is the important bit. + */ + prep->raw_apis.begin(); + origin_len = owords.length(); +} + + +// Add auto-completion words for a particular word (defined by where it appears +// in the APIs) and depending on whether the word was complete (when it's +// actually the next word in the API entry that is of interest) or not. +void QsciAPIs::addAPIEntries(const WordIndexList &wl, bool complete, + QStringList &with_context, bool &unambig) +{ + QStringList wseps = lexer()->autoCompletionWordSeparators(); + + for (int w = 0; w < wl.count(); ++w) + { + const WordIndex &wi = wl[w]; + + QStringList api_words = prep->apiWords(wi.first, wseps, false); + + int idx = wi.second; + + if (complete) + { + // Skip if this is the last word. + if (++idx >= api_words.count()) + continue; + } + + QString api_word; + + if (idx == 0) + api_word = api_words[0] + ' '; + else + { + QStringList orgl = api_words.mid(0, idx); + + QString org = orgl.join(wseps.first()); + + api_word = QString("%1 (%2)").arg(api_words[idx]).arg(org); + + // See if the origin has been used before. + if (unambig) + if (unambiguous_context.isEmpty()) + unambiguous_context = org; + else if (unambiguous_context != org) + { + unambiguous_context.truncate(0); + unambig = false; + } + } + + if (!with_context.contains(api_word)) + with_context.append(api_word); + } +} + + +// Return the call tip for a function. +QStringList QsciAPIs::callTips(const QStringList &context, int commas, + QsciScintilla::CallTipsStyle style, + QList &shifts) +{ + QString path; + QStringList new_context = positionOrigin(context, path); + QStringList wseps = lexer()->autoCompletionWordSeparators(); + QStringList cts; + + if (origin_len > 0) + { + QStringList::const_iterator it = origin; + QString prev; + + // Work out the length of the context. + const QString &wsep = wseps.first(); + QStringList strip = path.split(wsep); + strip.removeLast(); + int ctstart = strip.join(wsep).length(); + + if (ctstart) + ctstart += wsep.length(); + + int shift; + + if (style == QsciScintilla::CallTipsContext) + { + shift = ctstart; + ctstart = 0; + } + else + shift = 0; + + // Make sure we only look at the functions we are interested in. + path.append('('); + + while (it != prep->raw_apis.end() && (*it).startsWith(path)) + { + QString w = (*it).mid(ctstart); + + if (w != prev && enoughCommas(w, commas)) + { + shifts << shift; + cts << w; + prev = w; + } + + ++it; + } + } + else + { + const QString &fname = new_context[new_context.count() - 2]; + + // Find everywhere the function name appears in the APIs. + const WordIndexList *wil = wordIndexOf(fname); + + if (wil) + for (int i = 0; i < wil->count(); ++i) + { + const WordIndex &wi = (*wil)[i]; + QStringList awords = prep->apiWords(wi.first, wseps, true); + + // Check the word is the function name and not part of any + // context. + if (wi.second != awords.count() - 1) + continue; + + const QString &api = prep->raw_apis[wi.first]; + + int tail = api.indexOf('('); + + if (tail < 0) + continue; + + if (!enoughCommas(api, commas)) + continue; + + if (style == QsciScintilla::CallTipsNoContext) + { + shifts << 0; + cts << (fname + api.mid(tail)); + } + else + { + shifts << tail - fname.length(); + cts << api; + } + } + } + + return cts; +} + + +// Return true if a string has enough commas in the argument list. +bool QsciAPIs::enoughCommas(const QString &s, int commas) +{ + int end = s.indexOf(')'); + + if (end < 0) + return false; + + QString w = s.left(end); + + return (w.count(',') >= commas); +} + + +// Ensure the list is ready. +void QsciAPIs::prepare() +{ + // Handle the trivial case. + if (worker) + return; + + QsciAPIsPrepared *new_apis = new QsciAPIsPrepared; + new_apis->raw_apis = apis; + + worker = new QsciAPIsWorker(this); + worker->prepared = new_apis; + worker->start(); +} + + +// Cancel any current preparation. +void QsciAPIs::cancelPreparation() +{ + deleteWorker(); +} + + +// Check that a prepared API file exists. +bool QsciAPIs::isPrepared(const QString &filename) const +{ + QString pname = prepName(filename); + + if (pname.isEmpty()) + return false; + + QFileInfo fi(pname); + + return fi.exists(); +} + + +// Load the prepared API information. +bool QsciAPIs::loadPrepared(const QString &filename) +{ + QString pname = prepName(filename); + + if (pname.isEmpty()) + return false; + + // Read the prepared data and decompress it. + QFile pf(pname); + + if (!pf.open(QIODevice::ReadOnly)) + return false; + + QByteArray cpdata = pf.readAll(); + + pf.close(); + + if (cpdata.count() == 0) + return false; + + QByteArray pdata = qUncompress(cpdata); + + // Extract the data. + QDataStream pds(pdata); + + unsigned char vers; + pds >> vers; + + if (vers > PreparedDataFormatVersion) + return false; + + char *lex_name; + pds >> lex_name; + + if (qstrcmp(lex_name, lexer()->lexer()) != 0) + { + delete[] lex_name; + return false; + } + + delete[] lex_name; + + prep->wdict.clear(); + pds >> prep->wdict; + + if (!lexer()->caseSensitive()) + { + // Build up the case dictionary. + prep->cdict.clear(); + + QMap::const_iterator it = prep->wdict.begin(); + + while (it != prep->wdict.end()) + { + prep->cdict[it.key().toUpper()] = it.key(); + + ++it; + } + + } + + prep->raw_apis.clear(); + pds >> prep->raw_apis; + + // Allow the raw API information to be modified. + apis = prep->raw_apis; + + return true; +} + + +// Save the prepared API information. +bool QsciAPIs::savePrepared(const QString &filename) const +{ + QString pname = prepName(filename, true); + + if (pname.isEmpty()) + return false; + + // Write the prepared data to a memory buffer. + QByteArray pdata; + QDataStream pds(&pdata, QIODevice::WriteOnly); + + // Use a serialisation format supported by Qt v3.0 and later. + pds.setVersion(QDataStream::Qt_3_0); + pds << PreparedDataFormatVersion; + pds << lexer()->lexer(); + pds << prep->wdict; + pds << prep->raw_apis; + + // Compress the data and write it. + QFile pf(pname); + + if (!pf.open(QIODevice::WriteOnly|QIODevice::Truncate)) + return false; + + if (pf.write(qCompress(pdata)) < 0) + { + pf.close(); + return false; + } + + pf.close(); + return true; +} + + +// Return the name of the default prepared API file. +QString QsciAPIs::defaultPreparedName() const +{ + return prepName(QString()); +} + + +// Return the name of a prepared API file. +QString QsciAPIs::prepName(const QString &filename, bool mkpath) const +{ + // Handle the tivial case. + if (!filename.isEmpty()) + return filename; + + QString pdname; + char *qsci = getenv("QSCIDIR"); + + if (qsci) + pdname = qsci; + else + { + static const char *qsci_dir = ".qsci"; + + QDir pd = QDir::home(); + + if (mkpath && !pd.exists(qsci_dir) && !pd.mkdir(qsci_dir)) + return QString(); + + pdname = pd.filePath(qsci_dir); + } + + return QString("%1/%2.pap").arg(pdname).arg(lexer()->lexer()); +} + + +// Return installed API files. +QStringList QsciAPIs::installedAPIFiles() const +{ + QString qtdir = QLibraryInfo::location(QLibraryInfo::DataPath); + + QDir apidir = QDir(QString("%1/qsci/api/%2").arg(qtdir).arg(lexer()->lexer())); + QStringList filenames; + + QStringList filters; + filters << "*.api"; + + QFileInfoList flist = apidir.entryInfoList(filters, QDir::Files, QDir::IgnoreCase); + + foreach (QFileInfo fi, flist) + filenames << fi.absoluteFilePath(); + + return filenames; +} diff --git a/Qt4Qt5/qscicommand.cpp b/Qt4Qt5/qscicommand.cpp new file mode 100644 index 0000000..fb5d4bb --- /dev/null +++ b/Qt4Qt5/qscicommand.cpp @@ -0,0 +1,148 @@ +// This module implements the QsciCommand class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscicommand.h" + +#include +#include + +#include "Qsci/qsciscintilla.h" +#include "Qsci/qsciscintillabase.h" + + +static int convert(int key); + + +// The ctor. +QsciCommand::QsciCommand(QsciScintilla *qs, QsciCommand::Command cmd, int key, + int altkey, const char *desc) + : qsCmd(qs), scicmd(cmd), qkey(key), qaltkey(altkey), descCmd(desc) +{ + scikey = convert(qkey); + + if (scikey) + qsCmd->SendScintilla(QsciScintillaBase::SCI_ASSIGNCMDKEY, scikey, + scicmd); + + scialtkey = convert(qaltkey); + + if (scialtkey) + qsCmd->SendScintilla(QsciScintillaBase::SCI_ASSIGNCMDKEY, scialtkey, + scicmd); +} + + +// Execute the command. +void QsciCommand::execute() +{ + qsCmd->SendScintilla(scicmd); +} + + +// Bind a key to a command. +void QsciCommand::setKey(int key) +{ + bindKey(key,qkey,scikey); +} + + +// Bind an alternate key to a command. +void QsciCommand::setAlternateKey(int altkey) +{ + bindKey(altkey,qaltkey,scialtkey); +} + + +// Do the hard work of binding a key. +void QsciCommand::bindKey(int key,int &qk,int &scik) +{ + int new_scikey; + + // Ignore if it is invalid, allowing for the fact that we might be + // unbinding it. + if (key) + { + new_scikey = convert(key); + + if (!new_scikey) + return; + } + else + new_scikey = 0; + + if (scik) + qsCmd->SendScintilla(QsciScintillaBase::SCI_CLEARCMDKEY, scik); + + qk = key; + scik = new_scikey; + + if (scik) + qsCmd->SendScintilla(QsciScintillaBase::SCI_ASSIGNCMDKEY, scik, scicmd); +} + + +// See if a key is valid. +bool QsciCommand::validKey(int key) +{ + return convert(key); +} + + +// Convert a Qt character to the Scintilla equivalent. Return zero if it is +// invalid. +static int convert(int key) +{ + // Convert the modifiers. + int sci_mod = 0; + + if (key & Qt::SHIFT) + sci_mod |= QsciScintillaBase::SCMOD_SHIFT; + + if (key & Qt::CTRL) + sci_mod |= QsciScintillaBase::SCMOD_CTRL; + + if (key & Qt::ALT) + sci_mod |= QsciScintillaBase::SCMOD_ALT; + + if (key & Qt::META) + sci_mod |= QsciScintillaBase::SCMOD_META; + + key &= ~Qt::MODIFIER_MASK; + + // Convert the key. + int sci_key = QsciScintillaBase::commandKey(key, sci_mod); + + if (sci_key) + sci_key |= (sci_mod << 16); + + return sci_key; +} + + +// Return the translated user friendly description. +QString QsciCommand::description() const +{ + return qApp->translate("QsciCommand", descCmd); +} diff --git a/Qt4Qt5/qscicommandset.cpp b/Qt4Qt5/qscicommandset.cpp new file mode 100644 index 0000000..9974690 --- /dev/null +++ b/Qt4Qt5/qscicommandset.cpp @@ -0,0 +1,996 @@ +// This module implements the QsciCommandSet class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscicommandset.h" + +#include + +#include "Qsci/qscicommand.h" +#include "Qsci/qsciscintilla.h" +#include "Qsci/qsciscintillabase.h" + + +// Starting with QScintilla v2.7 the standard OS/X keyboard shortcuts are used +// where possible. In order to restore the behaviour of earlier versions then +// #define DONT_USE_OSX_KEYS here or add it to the qmake project (.pro) file. +#if defined(Q_OS_MAC) && !defined(DONT_USE_OSX_KEYS) +#define USING_OSX_KEYS +#else +#undef USING_OSX_KEYS +#endif + + +// The ctor. +QsciCommandSet::QsciCommandSet(QsciScintilla *qs) : qsci(qs) +{ + struct sci_cmd { + QsciCommand::Command cmd; + int key; + int altkey; + const char *desc; + }; + + static struct sci_cmd cmd_table[] = { + { + QsciCommand::LineDown, + Qt::Key_Down, +#if defined(USING_OSX_KEYS) + Qt::Key_N | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Move down one line") + }, + { + QsciCommand::LineDownExtend, + Qt::Key_Down | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_N | Qt::META | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection down one line") + }, + { + QsciCommand::LineDownRectExtend, + Qt::Key_Down | Qt::ALT | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_N | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection down one line") + }, + { + QsciCommand::LineScrollDown, + Qt::Key_Down | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Scroll view down one line") + }, + { + QsciCommand::LineUp, + Qt::Key_Up, +#if defined(USING_OSX_KEYS) + Qt::Key_P | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Move up one line") + }, + { + QsciCommand::LineUpExtend, + Qt::Key_Up | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_P | Qt::META | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection up one line") + }, + { + QsciCommand::LineUpRectExtend, + Qt::Key_Up | Qt::ALT | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_P | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection up one line") + }, + { + QsciCommand::LineScrollUp, + Qt::Key_Up | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Scroll view up one line") + }, + { + QsciCommand::ScrollToStart, +#if defined(USING_OSX_KEYS) + Qt::Key_Home, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Scroll to start of document") + }, + { + QsciCommand::ScrollToEnd, +#if defined(USING_OSX_KEYS) + Qt::Key_End, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Scroll to end of document") + }, + { + QsciCommand::VerticalCentreCaret, +#if defined(USING_OSX_KEYS) + Qt::Key_L | Qt::META, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Scroll vertically to centre current line") + }, + { + QsciCommand::ParaDown, + Qt::Key_BracketRight | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move down one paragraph") + }, + { + QsciCommand::ParaDownExtend, + Qt::Key_BracketRight | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection down one paragraph") + }, + { + QsciCommand::ParaUp, + Qt::Key_BracketLeft | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move up one paragraph") + }, + { + QsciCommand::ParaUpExtend, + Qt::Key_BracketLeft | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection up one paragraph") + }, + { + QsciCommand::CharLeft, + Qt::Key_Left, +#if defined(USING_OSX_KEYS) + Qt::Key_B | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Move left one character") + }, + { + QsciCommand::CharLeftExtend, + Qt::Key_Left | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_B | Qt::META | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection left one character") + }, + { + QsciCommand::CharLeftRectExtend, + Qt::Key_Left | Qt::ALT | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_B | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection left one character") + }, + { + QsciCommand::CharRight, + Qt::Key_Right, +#if defined(USING_OSX_KEYS) + Qt::Key_F | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Move right one character") + }, + { + QsciCommand::CharRightExtend, + Qt::Key_Right | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_F | Qt::META | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection right one character") + }, + { + QsciCommand::CharRightRectExtend, + Qt::Key_Right | Qt::ALT | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_F | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection right one character") + }, + { + QsciCommand::WordLeft, +#if defined(USING_OSX_KEYS) + Qt::Key_Left | Qt::ALT, +#else + Qt::Key_Left | Qt::CTRL, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move left one word") + }, + { + QsciCommand::WordLeftExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Left | Qt::ALT | Qt::SHIFT, +#else + Qt::Key_Left | Qt::CTRL | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection left one word") + }, + { + QsciCommand::WordRight, +#if defined(USING_OSX_KEYS) + 0, +#else + Qt::Key_Right | Qt::CTRL, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move right one word") + }, + { + QsciCommand::WordRightExtend, + Qt::Key_Right | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection right one word") + }, + { + QsciCommand::WordLeftEnd, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to end of previous word") + }, + { + QsciCommand::WordLeftEndExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of previous word") + }, + { + QsciCommand::WordRightEnd, +#if defined(USING_OSX_KEYS) + Qt::Key_Right | Qt::ALT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to end of next word") + }, + { + QsciCommand::WordRightEndExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Right | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of next word") + }, + { + QsciCommand::WordPartLeft, + Qt::Key_Slash | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move left one word part") + }, + { + QsciCommand::WordPartLeftExtend, + Qt::Key_Slash | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection left one word part") + }, + { + QsciCommand::WordPartRight, + Qt::Key_Backslash | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move right one word part") + }, + { + QsciCommand::WordPartRightExtend, + Qt::Key_Backslash | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection right one word part") + }, + { + QsciCommand::Home, +#if defined(USING_OSX_KEYS) + Qt::Key_A | Qt::META, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to start of document line") + }, + { + QsciCommand::HomeExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_A | Qt::META | Qt::SHIFT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to start of document line") + }, + { + QsciCommand::HomeRectExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_A | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection to start of document line") + }, + { + QsciCommand::HomeDisplay, +#if defined(USING_OSX_KEYS) + Qt::Key_Left | Qt::CTRL, +#else + Qt::Key_Home | Qt::ALT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to start of display line") + }, + { + QsciCommand::HomeDisplayExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Left | Qt::CTRL | Qt::SHIFT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to start of display line") + }, + { + QsciCommand::HomeWrap, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Move to start of display or document line") + }, + { + QsciCommand::HomeWrapExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to start of display or document line") + }, + { + QsciCommand::VCHome, +#if defined(USING_OSX_KEYS) + 0, +#else + Qt::Key_Home, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Move to first visible character in document line") + }, + { + QsciCommand::VCHomeExtend, +#if defined(USING_OSX_KEYS) + 0, +#else + Qt::Key_Home | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to first visible character in document line") + }, + { + QsciCommand::VCHomeRectExtend, +#if defined(USING_OSX_KEYS) + 0, +#else + Qt::Key_Home | Qt::ALT | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection to first visible character in document line") + }, + { + QsciCommand::VCHomeWrap, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Move to first visible character of display in document line") + }, + { + QsciCommand::VCHomeWrapExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to first visible character in display or document line") + }, + { + QsciCommand::LineEnd, +#if defined(USING_OSX_KEYS) + Qt::Key_E | Qt::META, +#else + Qt::Key_End, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to end of document line") + }, + { + QsciCommand::LineEndExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_E | Qt::META | Qt::SHIFT, +#else + Qt::Key_End | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of document line") + }, + { + QsciCommand::LineEndRectExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_E | Qt::META | Qt::ALT | Qt::SHIFT, +#else + Qt::Key_End | Qt::ALT | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection to end of document line") + }, + { + QsciCommand::LineEndDisplay, +#if defined(USING_OSX_KEYS) + Qt::Key_Right | Qt::CTRL, +#else + Qt::Key_End | Qt::ALT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to end of display line") + }, + { + QsciCommand::LineEndDisplayExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Right | Qt::CTRL | Qt::SHIFT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of display line") + }, + { + QsciCommand::LineEndWrap, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Move to end of display or document line") + }, + { + QsciCommand::LineEndWrapExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of display or document line") + }, + { + QsciCommand::DocumentStart, +#if defined(USING_OSX_KEYS) + Qt::Key_Up | Qt::CTRL, +#else + Qt::Key_Home | Qt::CTRL, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to start of document") + }, + { + QsciCommand::DocumentStartExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Up | Qt::CTRL | Qt::SHIFT, +#else + Qt::Key_Home | Qt::CTRL | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to start of document") + }, + { + QsciCommand::DocumentEnd, +#if defined(USING_OSX_KEYS) + Qt::Key_Down | Qt::CTRL, +#else + Qt::Key_End | Qt::CTRL, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move to end of document") + }, + { + QsciCommand::DocumentEndExtend, +#if defined(USING_OSX_KEYS) + Qt::Key_Down | Qt::CTRL | Qt::SHIFT, +#else + Qt::Key_End | Qt::CTRL | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend selection to end of document") + }, + { + QsciCommand::PageUp, + Qt::Key_PageUp, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move up one page") + }, + { + QsciCommand::PageUpExtend, + Qt::Key_PageUp | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection up one page") + }, + { + QsciCommand::PageUpRectExtend, + Qt::Key_PageUp | Qt::ALT | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection up one page") + }, + { + QsciCommand::PageDown, + Qt::Key_PageDown, +#if defined(USING_OSX_KEYS) + Qt::Key_V | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Move down one page") + }, + { + QsciCommand::PageDownExtend, + Qt::Key_PageDown | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_V | Qt::META | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Extend selection down one page") + }, + { + QsciCommand::PageDownRectExtend, + Qt::Key_PageDown | Qt::ALT | Qt::SHIFT, +#if defined(USING_OSX_KEYS) + Qt::Key_V | Qt::META | Qt::ALT | Qt::SHIFT, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", + "Extend rectangular selection down one page") + }, + { + QsciCommand::StutteredPageUp, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Stuttered move up one page") + }, + { + QsciCommand::StutteredPageUpExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Stuttered extend selection up one page") + }, + { + QsciCommand::StutteredPageDown, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Stuttered move down one page") + }, + { + QsciCommand::StutteredPageDownExtend, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Stuttered extend selection down one page") + }, + { + QsciCommand::Delete, + Qt::Key_Delete, +#if defined(USING_OSX_KEYS) + Qt::Key_D | Qt::META, +#else + 0, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Delete current character") + }, + { + QsciCommand::DeleteBack, + Qt::Key_Backspace, +#if defined(USING_OSX_KEYS) + Qt::Key_H | Qt::META, +#else + Qt::Key_Backspace | Qt::SHIFT, +#endif + QT_TRANSLATE_NOOP("QsciCommand", "Delete previous character") + }, + { + QsciCommand::DeleteBackNotLine, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Delete previous character if not at start of line") + }, + { + QsciCommand::DeleteWordLeft, + Qt::Key_Backspace | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Delete word to left") + }, + { + QsciCommand::DeleteWordRight, + Qt::Key_Delete | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Delete word to right") + }, + { + QsciCommand::DeleteWordRightEnd, +#if defined(USING_OSX_KEYS) + Qt::Key_Delete | Qt::ALT, +#else + 0, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Delete right to end of next word") + }, + { + QsciCommand::DeleteLineLeft, + Qt::Key_Backspace | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Delete line to left") + }, + { + QsciCommand::DeleteLineRight, +#if defined(USING_OSX_KEYS) + Qt::Key_K | Qt::META, +#else + Qt::Key_Delete | Qt::CTRL | Qt::SHIFT, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Delete line to right") + }, + { + QsciCommand::LineDelete, + Qt::Key_L | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Delete current line") + }, + { + QsciCommand::LineCut, + Qt::Key_L | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Cut current line") + }, + { + QsciCommand::LineCopy, + Qt::Key_T | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Copy current line") + }, + { + QsciCommand::LineTranspose, + Qt::Key_T | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Transpose current and previous lines") + }, + { + QsciCommand::LineDuplicate, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Duplicate the current line") + }, + { + QsciCommand::SelectAll, + Qt::Key_A | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Select all") + }, + { + QsciCommand::MoveSelectedLinesUp, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Move selected lines up one line") + }, + { + QsciCommand::MoveSelectedLinesDown, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", + "Move selected lines down one line") + }, + { + QsciCommand::SelectionDuplicate, + Qt::Key_D | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Duplicate selection") + }, + { + QsciCommand::SelectionLowerCase, + Qt::Key_U | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Convert selection to lower case") + }, + { + QsciCommand::SelectionUpperCase, + Qt::Key_U | Qt::CTRL | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Convert selection to upper case") + }, + { + QsciCommand::SelectionCut, + Qt::Key_X | Qt::CTRL, + Qt::Key_Delete | Qt::SHIFT, + QT_TRANSLATE_NOOP("QsciCommand", "Cut selection") + }, + { + QsciCommand::SelectionCopy, + Qt::Key_C | Qt::CTRL, + Qt::Key_Insert | Qt::CTRL, + QT_TRANSLATE_NOOP("QsciCommand", "Copy selection") + }, + { + QsciCommand::Paste, + Qt::Key_V | Qt::CTRL, + Qt::Key_Insert | Qt::SHIFT, + QT_TRANSLATE_NOOP("QsciCommand", "Paste") + }, + { + QsciCommand::EditToggleOvertype, + Qt::Key_Insert, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Toggle insert/overtype") + }, + { + QsciCommand::Newline, + Qt::Key_Return, + Qt::Key_Return | Qt::SHIFT, + QT_TRANSLATE_NOOP("QsciCommand", "Insert newline") + }, + { + QsciCommand::Formfeed, + 0, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Formfeed") + }, + { + QsciCommand::Tab, + Qt::Key_Tab, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Indent one level") + }, + { + QsciCommand::Backtab, + Qt::Key_Tab | Qt::SHIFT, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "De-indent one level") + }, + { + QsciCommand::Cancel, + Qt::Key_Escape, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Cancel") + }, + { + QsciCommand::Undo, + Qt::Key_Z | Qt::CTRL, + Qt::Key_Backspace | Qt::ALT, + QT_TRANSLATE_NOOP("QsciCommand", "Undo last command") + }, + { + QsciCommand::Redo, +#if defined(USING_OSX_KEYS) + Qt::Key_Z | Qt::CTRL | Qt::SHIFT, +#else + Qt::Key_Y | Qt::CTRL, +#endif + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Redo last command") + }, + { + QsciCommand::ZoomIn, + Qt::Key_Plus | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Zoom in") + }, + { + QsciCommand::ZoomOut, + Qt::Key_Minus | Qt::CTRL, + 0, + QT_TRANSLATE_NOOP("QsciCommand", "Zoom out") + }, + }; + + // Clear the default map. + qsci->SendScintilla(QsciScintillaBase::SCI_CLEARALLCMDKEYS); + + // By default control characters don't do anything (rather than insert the + // control character into the text). + for (int k = 'A'; k <= 'Z'; ++k) + qsci->SendScintilla(QsciScintillaBase::SCI_ASSIGNCMDKEY, + k + (QsciScintillaBase::SCMOD_CTRL << 16), + QsciScintillaBase::SCI_NULL); + + for (int i = 0; i < sizeof (cmd_table) / sizeof (cmd_table[0]); ++i) + cmds.append( + new QsciCommand(qsci, cmd_table[i].cmd, cmd_table[i].key, + cmd_table[i].altkey, cmd_table[i].desc)); +} + + +// The dtor. +QsciCommandSet::~QsciCommandSet() +{ + for (int i = 0; i < cmds.count(); ++i) + delete cmds.at(i); +} + + +// Read the command set from settings. +bool QsciCommandSet::readSettings(QSettings &qs, const char *prefix) +{ + bool rc = true; + QString skey; + + for (int i = 0; i < cmds.count(); ++i) + { + QsciCommand *cmd = cmds.at(i); + + skey.sprintf("%s/keymap/c%d/", prefix, + static_cast(cmd->command())); + + int key; + bool ok; + + // Read the key. + ok = qs.contains(skey + "key"); + key = qs.value(skey + "key", 0).toInt(); + + if (ok) + cmd->setKey(key); + else + rc = false; + + // Read the alternate key. + ok = qs.contains(skey + "alt"); + key = qs.value(skey + "alt", 0).toInt(); + + if (ok) + cmd->setAlternateKey(key); + else + rc = false; + } + + return rc; +} + + +// Write the command set to settings. +bool QsciCommandSet::writeSettings(QSettings &qs, const char *prefix) +{ + bool rc = true; + QString skey; + + for (int i = 0; i < cmds.count(); ++i) + { + QsciCommand *cmd = cmds.at(i); + + skey.sprintf("%s/keymap/c%d/", prefix, + static_cast(cmd->command())); + + // Write the key. + qs.setValue(skey + "key", cmd->key()); + + // Write the alternate key. + qs.setValue(skey + "alt", cmd->key()); + } + + return rc; +} + + +// Clear the key bindings. +void QsciCommandSet::clearKeys() +{ + for (int i = 0; i < cmds.count(); ++i) + cmds.at(i)->setKey(0); +} + + +// Clear the alternate key bindings. +void QsciCommandSet::clearAlternateKeys() +{ + for (int i = 0; i < cmds.count(); ++i) + cmds.at(i)->setAlternateKey(0); +} + + +// Find the command bound to a key. +QsciCommand *QsciCommandSet::boundTo(int key) const +{ + for (int i = 0; i < cmds.count(); ++i) + { + QsciCommand *cmd = cmds.at(i); + + if (cmd->key() == key || cmd->alternateKey() == key) + return cmd; + } + + return 0; +} + + +// Find a command. +QsciCommand *QsciCommandSet::find(QsciCommand::Command command) const +{ + for (int i = 0; i < cmds.count(); ++i) + { + QsciCommand *cmd = cmds.at(i); + + if (cmd->command() == command) + return cmd; + } + + // This should never happen. + return 0; +} diff --git a/Qt4Qt5/qscidocument.cpp b/Qt4Qt5/qscidocument.cpp new file mode 100644 index 0000000..d8077f7 --- /dev/null +++ b/Qt4Qt5/qscidocument.cpp @@ -0,0 +1,156 @@ +// This module implements the QsciDocument class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscidocument.h" +#include "Qsci/qsciscintillabase.h" + + +// This internal class encapsulates the underlying document and is shared by +// QsciDocument instances. +class QsciDocumentP +{ +public: + QsciDocumentP() : doc(0), nr_displays(0), nr_attaches(1), modified(false) {} + + void *doc; // The Scintilla document. + int nr_displays; // The number of displays. + int nr_attaches; // The number of attaches. + bool modified; // Set if not at a save point. +}; + + +// The ctor. +QsciDocument::QsciDocument() +{ + pdoc = new QsciDocumentP(); +} + + +// The dtor. +QsciDocument::~QsciDocument() +{ + detach(); +} + + +// The copy ctor. +QsciDocument::QsciDocument(const QsciDocument &that) +{ + attach(that); +} + + +// The assignment operator. +QsciDocument &QsciDocument::operator=(const QsciDocument &that) +{ + if (pdoc != that.pdoc) + { + detach(); + attach(that); + } + + return *this; +} + + +// Attach an existing document to this one. +void QsciDocument::attach(const QsciDocument &that) +{ + ++that.pdoc->nr_attaches; + pdoc = that.pdoc; +} + + +// Detach the underlying document. +void QsciDocument::detach() +{ + if (!pdoc) + return; + + if (--pdoc->nr_attaches == 0) + { + if (pdoc->doc && pdoc->nr_displays == 0) + { + QsciScintillaBase *qsb = QsciScintillaBase::pool(); + + // Release the explicit reference to the document. If the pool is + // empty then we just accept the memory leak. + if (qsb) + qsb->SendScintilla(QsciScintillaBase::SCI_RELEASEDOCUMENT, 0, + pdoc->doc); + } + + delete pdoc; + } + + pdoc = 0; +} + + +// Undisplay and detach the underlying document. +void QsciDocument::undisplay(QsciScintillaBase *qsb) +{ + if (--pdoc->nr_attaches == 0) + delete pdoc; + else if (--pdoc->nr_displays == 0) + { + // Create an explicit reference to the document to keep it alive. + qsb->SendScintilla(QsciScintillaBase::SCI_ADDREFDOCUMENT, 0, pdoc->doc); + } + + pdoc = 0; +} + + +// Display the underlying document. +void QsciDocument::display(QsciScintillaBase *qsb, const QsciDocument *from) +{ + void *ndoc = (from ? from->pdoc->doc : 0); + + // SCI_SETDOCPOINTER appears to reset the EOL mode so save and restore it. + int eol_mode = qsb->SendScintilla(QsciScintillaBase::SCI_GETEOLMODE); + + qsb->SendScintilla(QsciScintillaBase::SCI_SETDOCPOINTER, 0, ndoc); + ndoc = qsb->SendScintillaPtrResult(QsciScintillaBase::SCI_GETDOCPOINTER); + + qsb->SendScintilla(QsciScintillaBase::SCI_SETEOLMODE, eol_mode); + + pdoc->doc = ndoc; + ++pdoc->nr_displays; +} + + +// Return the modified state of the document. +bool QsciDocument::isModified() const +{ + return pdoc->modified; +} + + +// Set the modified state of the document. +void QsciDocument::setModified(bool m) +{ + pdoc->modified = m; +} diff --git a/Qt4Qt5/qscilexer.cpp b/Qt4Qt5/qscilexer.cpp new file mode 100644 index 0000000..48a8ae8 --- /dev/null +++ b/Qt4Qt5/qscilexer.cpp @@ -0,0 +1,745 @@ +// This module implements the QsciLexer class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexer.h" + +#include +#include +#include +#include + +#include "Qsci/qsciapis.h" +#include "Qsci/qsciscintilla.h" +#include "Qsci/qsciscintillabase.h" + + +// The ctor. +QsciLexer::QsciLexer(QObject *parent) + : QObject(parent), + autoIndStyle(-1), apiSet(0), attached_editor(0) +{ +#if defined(Q_OS_WIN) + defFont = QFont("Verdana",10); +#elif defined(Q_OS_MAC) + defFont = QFont("Verdana", 12); +#else + defFont = QFont("Bitstream Vera Sans",9); +#endif + + // Set the default fore and background colours. + QPalette pal = QApplication::palette(); + defColor = pal.text().color(); + defPaper = pal.base().color(); + + // Putting this on the heap means we can keep the style getters const. + style_map = new StyleDataMap; + style_map->style_data_set = false; +} + + +// The dtor. +QsciLexer::~QsciLexer() +{ + delete style_map; +} + + +// Set the attached editor. +void QsciLexer::setEditor(QsciScintilla *editor) +{ + attached_editor = editor; + + if (attached_editor) + { + attached_editor->SendScintilla(QsciScintillaBase::SCI_SETSTYLEBITS, + styleBitsNeeded()); + } +} + + +// Return the lexer name. +const char *QsciLexer::lexer() const +{ + return 0; +} + + +// Return the lexer identifier. +int QsciLexer::lexerId() const +{ + return QsciScintillaBase::SCLEX_CONTAINER; +} + + +// Return the number of style bits needed by the lexer. +int QsciLexer::styleBitsNeeded() const +{ + if (!attached_editor) + return 5; + + return attached_editor->SendScintilla(QsciScintillaBase::SCI_GETSTYLEBITSNEEDED); +} + + +// Make sure the style defaults have been set. +void QsciLexer::setStyleDefaults() const +{ + if (!style_map->style_data_set) + { + for (int i = 0; i < 128; ++i) + if (!description(i).isEmpty()) + styleData(i); + + style_map->style_data_set = true; + } +} + + +// Return a reference to a style's data, setting up the defaults if needed. +QsciLexer::StyleData &QsciLexer::styleData(int style) const +{ + StyleData &sd = style_map->style_data[style]; + + // See if this is a new style by checking if the colour is valid. + if (!sd.color.isValid()) + { + sd.color = defaultColor(style); + sd.paper = defaultPaper(style); + sd.font = defaultFont(style); + sd.eol_fill = defaultEolFill(style); + } + + return sd; +} + + +// Set the APIs associated with the lexer. +void QsciLexer::setAPIs(QsciAbstractAPIs *apis) +{ + apiSet = apis; +} + + +// Return a pointer to the current APIs if there are any. +QsciAbstractAPIs *QsciLexer::apis() const +{ + return apiSet; +} + + +// Default implementation to return the set of fill up characters that can end +// auto-completion. +const char *QsciLexer::autoCompletionFillups() const +{ + return "("; +} + + +// Default implementation to return the view used for indentation guides. +int QsciLexer::indentationGuideView() const +{ + return QsciScintillaBase::SC_IV_LOOKBOTH; +} + + +// Default implementation to return the list of character sequences that can +// separate auto-completion words. +QStringList QsciLexer::autoCompletionWordSeparators() const +{ + return QStringList(); +} + + +// Default implementation to return the list of keywords that can start a +// block. +const char *QsciLexer::blockStartKeyword(int *) const +{ + return 0; +} + + +// Default implementation to return the list of characters that can start a +// block. +const char *QsciLexer::blockStart(int *) const +{ + return 0; +} + + +// Default implementation to return the list of characters that can end a +// block. +const char *QsciLexer::blockEnd(int *) const +{ + return 0; +} + + +// Default implementation to return the style used for braces. +int QsciLexer::braceStyle() const +{ + return -1; +} + + +// Default implementation to return the number of lines to look back when +// auto-indenting. +int QsciLexer::blockLookback() const +{ + return 20; +} + + +// Default implementation to return the case sensitivity of the language. +bool QsciLexer::caseSensitive() const +{ + return true; +} + + +// Default implementation to return the characters that make up a word. +const char *QsciLexer::wordCharacters() const +{ + return 0; +} + + +// Default implementation to return the style used for whitespace. +int QsciLexer::defaultStyle() const +{ + return 0; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexer::color(int style) const +{ + return styleData(style).color; +} + + +// Returns the background colour of the text for a style. +QColor QsciLexer::paper(int style) const +{ + return styleData(style).paper; +} + + +// Returns the font for a style. +QFont QsciLexer::font(int style) const +{ + return styleData(style).font; +} + + +// Returns the end-of-line fill for a style. +bool QsciLexer::eolFill(int style) const +{ + return styleData(style).eol_fill; +} + + +// Returns the set of keywords. +const char *QsciLexer::keywords(int) const +{ + return 0; +} + + +// Returns the default EOL fill for a style. +bool QsciLexer::defaultEolFill(int) const +{ + return false; +} + + +// Returns the default font for a style. +QFont QsciLexer::defaultFont(int) const +{ + return defaultFont(); +} + + +// Returns the default font. +QFont QsciLexer::defaultFont() const +{ + return defFont; +} + + +// Sets the default font. +void QsciLexer::setDefaultFont(const QFont &f) +{ + defFont = f; +} + + +// Returns the default text colour for a style. +QColor QsciLexer::defaultColor(int) const +{ + return defaultColor(); +} + + +// Returns the default text colour. +QColor QsciLexer::defaultColor() const +{ + return defColor; +} + + +// Sets the default text colour. +void QsciLexer::setDefaultColor(const QColor &c) +{ + defColor = c; +} + + +// Returns the default paper colour for a styles. +QColor QsciLexer::defaultPaper(int) const +{ + return defaultPaper(); +} + + +// Returns the default paper colour. +QColor QsciLexer::defaultPaper() const +{ + return defPaper; +} + + +// Sets the default paper colour. +void QsciLexer::setDefaultPaper(const QColor &c) +{ + defPaper = c; + + // Normally the default values are only intended to provide defaults when a + // lexer is first setup because once a style has been referenced then a + // copy of the default is made. However the default paper is a special + // case because there is no other way to set the background colour used + // where there is no text. Therefore we also actively set it. + setPaper(c, QsciScintillaBase::STYLE_DEFAULT); +} + + +// Read properties from the settings. +bool QsciLexer::readProperties(QSettings &,const QString &) +{ + return true; +} + + +// Refresh all properties. +void QsciLexer::refreshProperties() +{ +} + + +// Write properties to the settings. +bool QsciLexer::writeProperties(QSettings &,const QString &) const +{ + return true; +} + + +// Restore the user settings. +bool QsciLexer::readSettings(QSettings &qs,const char *prefix) +{ + bool ok, flag, rc = true; + int num; + QString key, full_key; + QStringList fdesc; + + setStyleDefaults(); + + // Read the styles. + for (int i = 0; i < 128; ++i) + { + // Ignore invalid styles. + if (description(i).isEmpty()) + continue; + + key.sprintf("%s/%s/style%d/",prefix,language(),i); + + // Read the foreground colour. + full_key = key + "color"; + + ok = qs.contains(full_key); + num = qs.value(full_key).toInt(); + + if (ok) + setColor(QColor((num >> 16) & 0xff, (num >> 8) & 0xff, num & 0xff), i); + else + rc = false; + + // Read the end-of-line fill. + full_key = key + "eolfill"; + + ok = qs.contains(full_key); + flag = qs.value(full_key, false).toBool(); + + if (ok) + setEolFill(flag, i); + else + rc = false; + + // Read the font. First try the deprecated format that uses an integer + // point size. + full_key = key + "font"; + + ok = qs.contains(full_key); + fdesc = qs.value(full_key).toStringList(); + + if (ok && fdesc.count() == 5) + { + QFont f; + + f.setFamily(fdesc[0]); + f.setPointSize(fdesc[1].toInt()); + f.setBold(fdesc[2].toInt()); + f.setItalic(fdesc[3].toInt()); + f.setUnderline(fdesc[4].toInt()); + + setFont(f, i); + } + else + rc = false; + + // Now try the newer font format that uses a floating point point size. + // It is not an error if it doesn't exist. + full_key = key + "font2"; + + ok = qs.contains(full_key); + fdesc = qs.value(full_key).toStringList(); + + if (ok) + { + // Allow for future versions with more fields. + if (fdesc.count() >= 5) + { + QFont f; + + f.setFamily(fdesc[0]); + f.setPointSizeF(fdesc[1].toDouble()); + f.setBold(fdesc[2].toInt()); + f.setItalic(fdesc[3].toInt()); + f.setUnderline(fdesc[4].toInt()); + + setFont(f, i); + } + else + { + rc = false; + } + } + + // Read the background colour. + full_key = key + "paper"; + + ok = qs.contains(full_key); + num = qs.value(full_key).toInt(); + + if (ok) + setPaper(QColor((num >> 16) & 0xff, (num >> 8) & 0xff, num & 0xff), i); + else + rc = false; + } + + // Read the properties. + key.sprintf("%s/%s/properties/",prefix,language()); + + if (!readProperties(qs,key)) + rc = false; + + refreshProperties(); + + // Read the rest. + key.sprintf("%s/%s/",prefix,language()); + + // Read the default foreground colour. + full_key = key + "defaultcolor"; + + ok = qs.contains(full_key); + num = qs.value(full_key).toInt(); + + if (ok) + setDefaultColor(QColor((num >> 16) & 0xff, (num >> 8) & 0xff, num & 0xff)); + else + rc = false; + + // Read the default background colour. + full_key = key + "defaultpaper"; + + ok = qs.contains(full_key); + num = qs.value(full_key).toInt(); + + if (ok) + setDefaultPaper(QColor((num >> 16) & 0xff, (num >> 8) & 0xff, num & 0xff)); + else + rc = false; + + // Read the default font. First try the deprecated format that uses an + // integer point size. + full_key = key + "defaultfont"; + + ok = qs.contains(full_key); + fdesc = qs.value(full_key).toStringList(); + + if (ok && fdesc.count() == 5) + { + QFont f; + + f.setFamily(fdesc[0]); + f.setPointSize(fdesc[1].toInt()); + f.setBold(fdesc[2].toInt()); + f.setItalic(fdesc[3].toInt()); + f.setUnderline(fdesc[4].toInt()); + + setDefaultFont(f); + } + else + rc = false; + + // Now try the newer font format that uses a floating point point size. It + // is not an error if it doesn't exist. + full_key = key + "defaultfont2"; + + ok = qs.contains(full_key); + fdesc = qs.value(full_key).toStringList(); + + if (ok) + { + // Allow for future versions with more fields. + if (fdesc.count() >= 5) + { + QFont f; + + f.setFamily(fdesc[0]); + f.setPointSizeF(fdesc[1].toDouble()); + f.setBold(fdesc[2].toInt()); + f.setItalic(fdesc[3].toInt()); + f.setUnderline(fdesc[4].toInt()); + + setDefaultFont(f); + } + else + { + rc = false; + } + } + + full_key = key + "autoindentstyle"; + + ok = qs.contains(full_key); + num = qs.value(full_key).toInt(); + + if (ok) + setAutoIndentStyle(num); + else + rc = false; + + return rc; +} + + +// Save the user settings. +bool QsciLexer::writeSettings(QSettings &qs,const char *prefix) const +{ + bool rc = true; + QString key, fmt("%1"); + int num; + QStringList fdesc; + + setStyleDefaults(); + + // Write the styles. + for (int i = 0; i < 128; ++i) + { + // Ignore invalid styles. + if (description(i).isEmpty()) + continue; + + QColor c; + + key.sprintf("%s/%s/style%d/",prefix,language(),i); + + // Write the foreground colour. + c = color(i); + num = (c.red() << 16) | (c.green() << 8) | c.blue(); + + qs.setValue(key + "color", num); + + // Write the end-of-line fill. + qs.setValue(key + "eolfill", eolFill(i)); + + // Write the font using the deprecated format. + QFont f = font(i); + + fdesc.clear(); + fdesc += f.family(); + fdesc += fmt.arg(f.pointSize()); + + // The casts are for Borland. + fdesc += fmt.arg((int)f.bold()); + fdesc += fmt.arg((int)f.italic()); + fdesc += fmt.arg((int)f.underline()); + + qs.setValue(key + "font", fdesc); + + // Write the font using the newer format. + fdesc[1] = fmt.arg(f.pointSizeF()); + + qs.setValue(key + "font2", fdesc); + + // Write the background colour. + c = paper(i); + num = (c.red() << 16) | (c.green() << 8) | c.blue(); + + qs.setValue(key + "paper", num); + } + + // Write the properties. + key.sprintf("%s/%s/properties/",prefix,language()); + + if (!writeProperties(qs,key)) + rc = false; + + // Write the rest. + key.sprintf("%s/%s/",prefix,language()); + + // Write the default foreground colour. + num = (defColor.red() << 16) | (defColor.green() << 8) | defColor.blue(); + + qs.setValue(key + "defaultcolor", num); + + // Write the default background colour. + num = (defPaper.red() << 16) | (defPaper.green() << 8) | defPaper.blue(); + + qs.setValue(key + "defaultpaper", num); + + // Write the default font using the deprecated format. + fdesc.clear(); + fdesc += defFont.family(); + fdesc += fmt.arg(defFont.pointSize()); + + // The casts are for Borland. + fdesc += fmt.arg((int)defFont.bold()); + fdesc += fmt.arg((int)defFont.italic()); + fdesc += fmt.arg((int)defFont.underline()); + + qs.setValue(key + "defaultfont", fdesc); + + // Write the font using the newer format. + fdesc[1] = fmt.arg(defFont.pointSizeF()); + + qs.setValue(key + "defaultfont2", fdesc); + + qs.setValue(key + "autoindentstyle", autoIndStyle); + + return rc; +} + + +// Return the auto-indentation style. +int QsciLexer::autoIndentStyle() +{ + // We can't do this in the ctor because we want the virtuals to work. + if (autoIndStyle < 0) + autoIndStyle = (blockStartKeyword() || blockStart() || blockEnd()) ? + 0 : QsciScintilla::AiMaintain; + + return autoIndStyle; +} + + +// Set the auto-indentation style. +void QsciLexer::setAutoIndentStyle(int autoindentstyle) +{ + autoIndStyle = autoindentstyle; +} + + +// Set the foreground colour for a style. +void QsciLexer::setColor(const QColor &c, int style) +{ + if (style >= 0) + { + styleData(style).color = c; + emit colorChanged(c, style); + } + else + for (int i = 0; i < 128; ++i) + if (!description(i).isEmpty()) + setColor(c, i); +} + + +// Set the end-of-line fill for a style. +void QsciLexer::setEolFill(bool eolfill, int style) +{ + if (style >= 0) + { + styleData(style).eol_fill = eolfill; + emit eolFillChanged(eolfill, style); + } + else + for (int i = 0; i < 128; ++i) + if (!description(i).isEmpty()) + setEolFill(eolfill, i); +} + + +// Set the font for a style. +void QsciLexer::setFont(const QFont &f, int style) +{ + if (style >= 0) + { + styleData(style).font = f; + emit fontChanged(f, style); + } + else + for (int i = 0; i < 128; ++i) + if (!description(i).isEmpty()) + setFont(f, i); +} + + +// Set the background colour for a style. +void QsciLexer::setPaper(const QColor &c, int style) +{ + if (style >= 0) + { + styleData(style).paper = c; + emit paperChanged(c, style); + } + else + { + for (int i = 0; i < 128; ++i) + if (!description(i).isEmpty()) + setPaper(c, i); + + emit paperChanged(c, QsciScintillaBase::STYLE_DEFAULT); + } +} diff --git a/Qt4Qt5/qscilexeravs.cpp b/Qt4Qt5/qscilexeravs.cpp new file mode 100644 index 0000000..c3f97bc --- /dev/null +++ b/Qt4Qt5/qscilexeravs.cpp @@ -0,0 +1,419 @@ +// This module implements the QsciLexerAVS class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexeravs.h" + +#include +#include +#include + + +// The ctor. +QsciLexerAVS::QsciLexerAVS(QObject *parent) + : QsciLexer(parent), + fold_comments(false), fold_compact(true) +{ +} + + +// The dtor. +QsciLexerAVS::~QsciLexerAVS() +{ +} + + +// Returns the language name. +const char *QsciLexerAVS::language() const +{ + return "AVS"; +} + + +// Returns the lexer name. +const char *QsciLexerAVS::lexer() const +{ + return "avs"; +} + + +// Return the style used for braces. +int QsciLexerAVS::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerAVS::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerAVS::defaultColor(int style) const +{ + switch (style) + { + case Default: + case Operator: + return QColor(0x00, 0x00, 0x00); + + case BlockComment: + case NestedBlockComment: + case LineComment: + return QColor(0x00, 0x7f, 0x00); + + case Number: + case Function: + return QColor(0x00, 0x7f, 0x7f); + + case String: + case TripleString: + return QColor(0x7f, 0x00, 0x7f); + + case Keyword: + case Filter: + case ClipProperty: + return QColor(0x00, 0x00, 0x7f); + + case Plugin: + return QColor(0x00, 0x80, 0xc0); + + case KeywordSet6: + return QColor(0x80, 0x00, 0xff); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerAVS::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case BlockComment: + case NestedBlockComment: + case LineComment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS", 9); +#elif defined(Q_OS_MAC) + f = QFont("Georgia", 13); +#else + f = QFont("Bitstream Vera Serif", 9); +#endif + break; + + case Keyword: + case Filter: + case Plugin: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerAVS::keywords(int set) const +{ + if (set == 1) + return "true false return global"; + + if (set == 2) + return + "addborders alignedsplice amplify amplifydb animate applyrange " + "assumebff assumefieldbased assumefps assumeframebased " + "assumesamplerate assumescaledfps assumetff audiodub audiodubex " + "avifilesource avisource bicubicresize bilinearresize " + "blackmanresize blackness blankclip blur bob cache changefps " + "colorbars colorkeymask coloryuv compare complementparity " + "conditionalfilter conditionalreader convertaudio " + "convertaudioto16bit convertaudioto24bit convertaudioto32bit " + "convertaudioto8bit convertaudiotofloat convertbacktoyuy2 " + "convertfps converttobackyuy2 converttomono converttorgb " + "converttorgb24 converttorgb32 converttoy8 converttoyv16 " + "converttoyv24 converttoyv411 converttoyuy2 converttoyv12 crop " + "cropbottom delayaudio deleteframe dissolve distributor " + "doubleweave duplicateframe ensurevbrmp3sync fadein fadein0 " + "fadein2 fadeio fadeio0 fadeio2 fadeout fadeout0 fadeout2 " + "fixbrokenchromaupsampling fixluminance fliphorizontal " + "flipvertical frameevaluate freezeframe gaussresize " + "generalconvolution getchannel getchannels getmtmode getparity " + "grayscale greyscale histogram horizontalreduceby2 imagereader " + "imagesource imagewriter info interleave internalcache " + "internalcachemt invert killaudio killvideo lanczos4resize " + "lanczosresize layer letterbox levels limiter loop mask maskhs " + "max merge mergeargb mergechannels mergechroma mergeluma mergergb " + "messageclip min mixaudio monotostereo normalize null " + "opendmlsource overlay peculiarblend pointresize pulldown " + "reduceby2 resampleaudio resetmask reverse rgbadjust scriptclip " + "segmentedavisource segmenteddirectshowsource selecteven " + "selectevery selectodd selectrangeevery separatefields setmtmode " + "sharpen showalpha showblue showfiveversions showframenumber " + "showgreen showred showsmpte showtime sincresize skewrows " + "spatialsoften spline16resize spline36resize spline64resize ssrc " + "stackhorizontal stackvertical subtitle subtract supereq " + "swapfields swapuv temporalsoften timestretch tone trim turn180 " + "turnleft turnright tweak unalignedsplice utoy utoy8 version " + "verticalreduceby2 vtoy vtoy8 wavsource weave writefile " + "writefileend writefileif writefilestart ytouv"; + + if (set == 3) + return + "addgrain addgrainc agc_hdragc analyzelogo animeivtc asharp " + "audiograph autocrop autoyuy2 avsrecursion awarpsharp " + "bassaudiosource bicublinresize bifrost binarize blendfields " + "blindpp blockbuster bordercontrol cfielddiff cframediff " + "chromashift cnr2 colormatrix combmask contra convolution3d " + "convolution3dyv12 dctfilter ddcc deblendlogo deblock deblock_qed " + "decimate decomb dedup deen deflate degrainmedian depan " + "depanestimate depaninterleave depanscenes depanstabilize " + "descratch despot dfttest dgbob dgsource directshowsource " + "distancefunction dss2 dup dupmc edeen edgemask ediupsizer eedi2 " + "eedi3 eedi3_rpow2 expand faerydust fastbicubicresize " + "fastbilinearresize fastediupsizer dedgemask fdecimate " + "ffaudiosource ffdshow ffindex ffmpegsource ffmpegsource2 " + "fft3dfilter fft3dgpu ffvideosource fielddeinterlace fielddiff " + "fillmargins fity2uv fity2u fity2v fitu2y fitv2y fluxsmooth " + "fluxsmoothst fluxsmootht framediff framenumber frfun3b frfun7 " + "gicocu golddust gradfun2db grapesmoother greedyhma grid " + "guavacomb hqdn3d hybridfupp hysteresymask ibob " + "improvesceneswitch inflate inpand inpaintlogo interframe " + "interlacedresize interlacedwarpedresize interleaved2planar " + "iscombed iscombedt iscombedtivtc kerneldeint leakkernelbob " + "leakkerneldeint limitedsharpen limitedsharpenfaster logic lsfmod " + "lumafilter lumayv12 manalyse maskeddeinterlace maskedmerge " + "maskedmix mblockfps mcompensate mctemporaldenoise " + "mctemporaldenoisepp mdegrain1 mdegrain2 mdegrain3 mdepan " + "medianblur mergehints mflow mflowblur mflowfps mflowinter " + "minblur mipsmooth mmask moderatesharpen monitorfilter motionmask " + "mpasource mpeg2source mrecalculate mscdetection msharpen mshow " + "msmooth msu_fieldshiftfixer msu_frc msuper mt mt_adddiff " + "mt_average mt_binarize mt_circle mt_clamp mt_convolution " + "mt_deflate mt_diamond mt_edge mt_ellipse mt_expand " + "mt_freeellipse mt_freelosange mt_freerectangle mt_hysteresis " + "mt_infix mt_inflate mt_inpand mt_invert mt_logic mt_losange " + "mt_lut mt_lutf mt_luts mt_lutspa mt_lutsx mt_lutxy mt_lutxyz " + "mt_makediff mt_mappedblur mt_merge mt_motion mt_polish " + "mt_rectangle mt_square mti mtsource multidecimate mvanalyse " + "mvblockfps mvchangecompensate mvcompensate mvdegrain1 mvdegrain2 " + "mvdegrain3 mvdenoise mvdepan mvflow mvflowblur mvflowfps " + "mvflowfps2 mvflowinter mvincrease mvmask mvrecalculate " + "mvscdetection mvshow nicac3source nicdtssource niclpcmsource " + "nicmpasource nicmpg123source nnedi nnedi2 nnedi2_rpow2 nnedi3 " + "nnedi3_rpow2 nomosmooth overlaymask peachsmoother pixiedust " + "planar2interleaved qtgmc qtinput rawavsource rawsource " + "reduceflicker reinterpolate411 removedirt removedust removegrain " + "removegrainhd removetemporalgrain repair requestlinear " + "reversefielddominance rgb3dlut rgdeinterlace rgsdeinterlace " + "rgblut rotate sangnom seesaw sharpen2 showchannels " + "showcombedtivtc smartdecimate smartdeinterlace smdegrain " + "smoothdeinterlace smoothuv soothess soxfilter spacedust sshiq " + "ssim ssiq stmedianfilter t3dlut tanisotropic tbilateral tcanny " + "tcomb tcombmask tcpserver tcpsource tdecimate tdeint tedgemask " + "telecide temporalcleaner temporalrepair temporalsmoother " + "tfieldblank tfm tisophote tivtc tmaskblank tmaskedmerge " + "tmaskedmerge3 tmm tmonitor tnlmeans tomsmocomp toon textsub " + "ttempsmooth ttempsmoothf tunsharp unblock uncomb undot unfilter " + "unsharpmask vaguedenoiser variableblur verticalcleaner " + "videoscope vinverse vobsub vqmcalc warpedresize warpsharp " + "xsharpen yadif yadifmod yuy2lut yv12convolution " + "yv12interlacedreduceby2 yv12interlacedselecttopfields yv12layer " + "yv12lut yv12lutxy yv12substract yv12torgb24 yv12toyuy2"; + + if (set == 4) + return + "abs apply assert bool ceil chr clip continueddenominator " + "continuednumerator cos default defined eval averagechromau " + "averagechromav averageluma chromaudifference chromavdifference " + "lumadifference exist exp findstr float floor frac hexvalue " + "import int isbool isclip isfloat isint isstring lcase leftstr " + "load_stdcall_plugin loadcplugin loadplugin loadvfapiplugin " + "loadvirtualdubplugin log midstr muldiv nop opt_allowfloataudio " + "opt_avipadscanlines opt_dwchannelmask opt_usewaveextensible " + "opt_vdubplanarhack pi pow rand revstr rightstr round scriptdir " + "scriptfile scriptname select setmemorymax " + "setplanarlegacyalignment rgbdifference rgbdifferencefromprevious " + "rgbdifferencetonext udifferencefromprevious udifferencetonext " + "setworkingdir sign sin spline sqrt string strlen time ucase " + "undefined value versionnumber versionstring uplanemax " + "uplanemedian uplanemin uplaneminmaxdifference " + "vdifferencefromprevious vdifferencetonext vplanemax vplanemedian " + "vplanemin vplaneminmaxdifference ydifferencefromprevious " + "ydifferencetonext yplanemax yplanemedian yplanemin " + "yplaneminmaxdifference"; + + if (set == 5) + return + "audiobits audiochannels audiolength audiolengthf audiorate " + "framecount framerate frameratedenominator frameratenumerator " + "getleftchannel getrightchannel hasaudio hasvideo height " + "isaudiofloat isaudioint isfieldbased isframebased isinterleaved " + "isplanar isrgb isrgb24 isrgb32 isyuv isyuy2 isyv12 width"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerAVS::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case BlockComment: + return tr("Block comment"); + + case NestedBlockComment: + return tr("Nested block comment"); + + case LineComment: + return tr("Line comment"); + + case Number: + return tr("Number"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case String: + return tr("Double-quoted string"); + + case TripleString: + return tr("Triple double-quoted string"); + + case Keyword: + return tr("Keyword"); + + case Filter: + return tr("Filter"); + + case Plugin: + return tr("Plugin"); + + case Function: + return tr("Function"); + + case ClipProperty: + return tr("Clip property"); + + case KeywordSet6: + return tr("User defined"); + } + + return QString(); +} + + +// Refresh all properties. +void QsciLexerAVS::refreshProperties() +{ + setCommentProp(); + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerAVS::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerAVS::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerAVS::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerAVS::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerAVS::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerAVS::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerAVS::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerAVS::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerbash.cpp b/Qt4Qt5/qscilexerbash.cpp new file mode 100644 index 0000000..92382f5 --- /dev/null +++ b/Qt4Qt5/qscilexerbash.cpp @@ -0,0 +1,355 @@ +// This module implements the QsciLexerBash class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerbash.h" + +#include +#include +#include + + +// The ctor. +QsciLexerBash::QsciLexerBash(QObject *parent) + : QsciLexer(parent), fold_comments(false), fold_compact(true) +{ +} + + +// The dtor. +QsciLexerBash::~QsciLexerBash() +{ +} + + +// Returns the language name. +const char *QsciLexerBash::language() const +{ + return "Bash"; +} + + +// Returns the lexer name. +const char *QsciLexerBash::lexer() const +{ + return "bash"; +} + + +// Return the style used for braces. +int QsciLexerBash::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerBash::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$@%&"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerBash::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Error: + case Backticks: + return QColor(0xff,0xff,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + case SingleQuotedHereDocument: + return QColor(0x7f,0x00,0x7f); + + case Operator: + case Identifier: + case Scalar: + case ParameterExpansion: + case HereDocumentDelimiter: + return QColor(0x00,0x00,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerBash::defaultEolFill(int style) const +{ + switch (style) + { + case SingleQuotedHereDocument: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerBash::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DoubleQuotedString: + case SingleQuotedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerBash::keywords(int set) const +{ + if (set == 1) + return + "alias ar asa awk banner basename bash bc bdiff break " + "bunzip2 bzip2 cal calendar case cat cc cd chmod " + "cksum clear cmp col comm compress continue cp cpio " + "crypt csplit ctags cut date dc dd declare deroff dev " + "df diff diff3 dircmp dirname do done du echo ed " + "egrep elif else env esac eval ex exec exit expand " + "export expr false fc fgrep fi file find fmt fold for " + "function functions getconf getopt getopts grep gres " + "hash head help history iconv id if in integer jobs " + "join kill local lc let line ln logname look ls m4 " + "mail mailx make man mkdir more mt mv newgrp nl nm " + "nohup ntps od pack paste patch pathchk pax pcat perl " + "pg pr print printf ps pwd read readonly red return " + "rev rm rmdir sed select set sh shift size sleep sort " + "spell split start stop strings strip stty sum " + "suspend sync tail tar tee test then time times touch " + "tr trap true tsort tty type typeset ulimit umask " + "unalias uname uncompress unexpand uniq unpack unset " + "until uudecode uuencode vi vim vpax wait wc whence " + "which while who wpaste wstart xargs zcat " + + "chgrp chown chroot dir dircolors factor groups " + "hostid install link md5sum mkfifo mknod nice pinky " + "printenv ptx readlink seq sha1sum shred stat su tac " + "unlink users vdir whoami yes"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerBash::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Error: + return tr("Error"); + + case Comment: + return tr("Comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case Scalar: + return tr("Scalar"); + + case ParameterExpansion: + return tr("Parameter expansion"); + + case Backticks: + return tr("Backticks"); + + case HereDocumentDelimiter: + return tr("Here document delimiter"); + + case SingleQuotedHereDocument: + return tr("Single-quoted here document"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerBash::defaultPaper(int style) const +{ + switch (style) + { + case Error: + return QColor(0xff,0x00,0x00); + + case Scalar: + return QColor(0xff,0xe0,0xe0); + + case ParameterExpansion: + return QColor(0xff,0xff,0xe0); + + case Backticks: + return QColor(0xa0,0x80,0x80); + + case HereDocumentDelimiter: + case SingleQuotedHereDocument: + return QColor(0xdd,0xd0,0xdd); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerBash::refreshProperties() +{ + setCommentProp(); + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerBash::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerBash::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerBash::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerBash::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerBash::setCommentProp() +{ + emit propertyChanged("fold.comment", (fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerBash::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerBash::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerBash::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerbatch.cpp b/Qt4Qt5/qscilexerbatch.cpp new file mode 100644 index 0000000..7bcca56 --- /dev/null +++ b/Qt4Qt5/qscilexerbatch.cpp @@ -0,0 +1,217 @@ +// This module implements the QsciLexerBatch class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerbatch.h" + +#include +#include +#include + + +// The ctor. +QsciLexerBatch::QsciLexerBatch(QObject *parent) + : QsciLexer(parent) +{ +} + + +// The dtor. +QsciLexerBatch::~QsciLexerBatch() +{ +} + + +// Returns the language name. +const char *QsciLexerBatch::language() const +{ + return "Batch"; +} + + +// Returns the lexer name. +const char *QsciLexerBatch::lexer() const +{ + return "batch"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerBatch::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerBatch::defaultColor(int style) const +{ + switch (style) + { + case Default: + case Operator: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Keyword: + case ExternalCommand: + return QColor(0x00,0x00,0x7f); + + case Label: + return QColor(0x7f,0x00,0x7f); + + case HideCommandChar: + return QColor(0x7f,0x7f,0x00); + + case Variable: + return QColor(0x80,0x00,0x80); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerBatch::defaultEolFill(int style) const +{ + switch (style) + { + case Label: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerBatch::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case ExternalCommand: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerBatch::keywords(int set) const +{ + if (set == 1) + return + "rem set if exist errorlevel for in do break call " + "chcp cd chdir choice cls country ctty date del " + "erase dir echo exit goto loadfix loadhigh mkdir md " + "move path pause prompt rename ren rmdir rd shift " + "time type ver verify vol com con lpt nul"; + + return 0; +} + + +// Return the case sensitivity. +bool QsciLexerBatch::caseSensitive() const +{ + return false; +} + + +// Returns the user name of a style. +QString QsciLexerBatch::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Keyword: + return tr("Keyword"); + + case Label: + return tr("Label"); + + case HideCommandChar: + return tr("Hide command character"); + + case ExternalCommand: + return tr("External command"); + + case Variable: + return tr("Variable"); + + case Operator: + return tr("Operator"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerBatch::defaultPaper(int style) const +{ + switch (style) + { + case Label: + return QColor(0x60,0x60,0x60); + } + + return QsciLexer::defaultPaper(style); +} diff --git a/Qt4Qt5/qscilexercmake.cpp b/Qt4Qt5/qscilexercmake.cpp new file mode 100644 index 0000000..536d2d2 --- /dev/null +++ b/Qt4Qt5/qscilexercmake.cpp @@ -0,0 +1,310 @@ +// This module implements the QsciLexerCMake class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercmake.h" + +#include +#include +#include + + +// The ctor. +QsciLexerCMake::QsciLexerCMake(QObject *parent) + : QsciLexer(parent), + fold_atelse(false) +{ +} + + +// The dtor. +QsciLexerCMake::~QsciLexerCMake() +{ +} + + +// Returns the language name. +const char *QsciLexerCMake::language() const +{ + return "CMake"; +} + + +// Returns the lexer name. +const char *QsciLexerCMake::lexer() const +{ + return "cmake"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerCMake::defaultColor(int style) const +{ + switch (style) + { + case Default: + case KeywordSet3: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case String: + case StringLeftQuote: + case StringRightQuote: + return QColor(0x7f,0x00,0x7f); + + case Function: + case BlockWhile: + case BlockForeach: + case BlockIf: + case BlockMacro: + return QColor(0x00,0x00,0x7f); + + case Variable: + return QColor(0x80,0x00,0x00); + + case Label: + case StringVariable: + return QColor(0xcc,0x33,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerCMake::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Function: + case BlockWhile: + case BlockForeach: + case BlockIf: + case BlockMacro: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerCMake::keywords(int set) const +{ + if (set == 1) + return + "add_custom_command add_custom_target add_definitions " + "add_dependencies add_executable add_library add_subdirectory " + "add_test aux_source_directory build_command build_name " + "cmake_minimum_required configure_file create_test_sourcelist " + "else elseif enable_language enable_testing endforeach endif " + "endmacro endwhile exec_program execute_process " + "export_library_dependencies file find_file find_library " + "find_package find_path find_program fltk_wrap_ui foreach " + "get_cmake_property get_directory_property get_filename_component " + "get_source_file_property get_target_property get_test_property " + "if include include_directories include_external_msproject " + "include_regular_expression install install_files " + "install_programs install_targets link_directories link_libraries " + "list load_cache load_command macro make_directory " + "mark_as_advanced math message option output_required_files " + "project qt_wrap_cpp qt_wrap_ui remove remove_definitions " + "separate_arguments set set_directory_properties " + "set_source_files_properties set_target_properties " + "set_tests_properties site_name source_group string " + "subdir_depends subdirs target_link_libraries try_compile try_run " + "use_mangled_mesa utility_source variable_requires " + "vtk_make_instantiator vtk_wrap_java vtk_wrap_python vtk_wrap_tcl " + "while write_file"; + + if (set == 2) + return + "ABSOLUTE ABSTRACT ADDITIONAL_MAKE_CLEAN_FILES ALL AND APPEND " + "ARGS ASCII BEFORE CACHE CACHE_VARIABLES CLEAR COMMAND COMMANDS " + "COMMAND_NAME COMMENT COMPARE COMPILE_FLAGS COPYONLY DEFINED " + "DEFINE_SYMBOL DEPENDS DOC EQUAL ESCAPE_QUOTES EXCLUDE " + "EXCLUDE_FROM_ALL EXISTS EXPORT_MACRO EXT EXTRA_INCLUDE " + "FATAL_ERROR FILE FILES FORCE FUNCTION GENERATED GLOB " + "GLOB_RECURSE GREATER GROUP_SIZE HEADER_FILE_ONLY HEADER_LOCATION " + "IMMEDIATE INCLUDES INCLUDE_DIRECTORIES INCLUDE_INTERNALS " + "INCLUDE_REGULAR_EXPRESSION LESS LINK_DIRECTORIES LINK_FLAGS " + "LOCATION MACOSX_BUNDLE MACROS MAIN_DEPENDENCY MAKE_DIRECTORY " + "MATCH MATCHALL MATCHES MODULE NAME NAME_WE NOT NOTEQUAL " + "NO_SYSTEM_PATH OBJECT_DEPENDS OPTIONAL OR OUTPUT OUTPUT_VARIABLE " + "PATH PATHS POST_BUILD POST_INSTALL_SCRIPT PREFIX PREORDER " + "PRE_BUILD PRE_INSTALL_SCRIPT PRE_LINK PROGRAM PROGRAM_ARGS " + "PROPERTIES QUIET RANGE READ REGEX REGULAR_EXPRESSION REPLACE " + "REQUIRED RETURN_VALUE RUNTIME_DIRECTORY SEND_ERROR SHARED " + "SOURCES STATIC STATUS STREQUAL STRGREATER STRLESS SUFFIX TARGET " + "TOLOWER TOUPPER VAR VARIABLES VERSION WIN32 WRAP_EXCLUDE WRITE " + "APPLE MINGW MSYS CYGWIN BORLAND WATCOM MSVC MSVC_IDE MSVC60 " + "MSVC70 MSVC71 MSVC80 CMAKE_COMPILER_2005 OFF ON"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerCMake::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case String: + return tr("String"); + + case StringLeftQuote: + return tr("Left quoted string"); + + case StringRightQuote: + return tr("Right quoted string"); + + case Function: + return tr("Function"); + + case Variable: + return tr("Variable"); + + case Label: + return tr("Label"); + + case KeywordSet3: + return tr("User defined"); + + case BlockWhile: + return tr("WHILE block"); + + case BlockForeach: + return tr("FOREACH block"); + + case BlockIf: + return tr("IF block"); + + case BlockMacro: + return tr("MACRO block"); + + case StringVariable: + return tr("Variable within a string"); + + case Number: + return tr("Number"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerCMake::defaultPaper(int style) const +{ + switch (style) + { + case String: + case StringLeftQuote: + case StringRightQuote: + case StringVariable: + return QColor(0xee,0xee,0xee); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerCMake::refreshProperties() +{ + setAtElseProp(); +} + + +// Read properties from the settings. +bool QsciLexerCMake::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_atelse = qs.value(prefix + "foldatelse", false).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerCMake::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldatelse", fold_atelse); + + return rc; +} + + +// Return true if ELSE blocks can be folded. +bool QsciLexerCMake::foldAtElse() const +{ + return fold_atelse; +} + + +// Set if ELSE blocks can be folded. +void QsciLexerCMake::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerCMake::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexercoffeescript.cpp b/Qt4Qt5/qscilexercoffeescript.cpp new file mode 100644 index 0000000..f64fe96 --- /dev/null +++ b/Qt4Qt5/qscilexercoffeescript.cpp @@ -0,0 +1,453 @@ +// This module implements the QsciLexerCoffeeScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercoffeescript.h" + +#include +#include +#include + + +// The ctor. +QsciLexerCoffeeScript::QsciLexerCoffeeScript(QObject *parent) + : QsciLexer(parent), + fold_comments(false), fold_compact(true), style_preproc(false), + dollars(true) +{ +} + + +// The dtor. +QsciLexerCoffeeScript::~QsciLexerCoffeeScript() +{ +} + + +// Returns the language name. +const char *QsciLexerCoffeeScript::language() const +{ + return "CoffeeScript"; +} + + +// Returns the lexer name. +const char *QsciLexerCoffeeScript::lexer() const +{ + return "coffeescript"; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerCoffeeScript::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "."; + + return wl; +} + + +// Return the list of keywords that can start a block. +const char *QsciLexerCoffeeScript::blockStartKeyword(int *style) const +{ + if (style) + *style = Keyword; + + return "catch class do else finally for if try until when while"; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerCoffeeScript::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "{"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerCoffeeScript::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "}"; +} + + +// Return the style used for braces. +int QsciLexerCoffeeScript::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerCoffeeScript::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerCoffeeScript::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80, 0x80, 0x80); + + case Comment: + case CommentLine: + case CommentBlock: + case BlockRegexComment: + return QColor(0x00, 0x7f, 0x00); + + case CommentDoc: + case CommentLineDoc: + return QColor(0x3f, 0x70, 0x3f); + + case Number: + return QColor(0x00, 0x7f, 0x7f); + + case Keyword: + return QColor(0x00, 0x00, 0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + return QColor(0x7f, 0x00, 0x7f); + + case PreProcessor: + return QColor(0x7f, 0x7f, 0x00); + + case Operator: + case UnclosedString: + return QColor(0x00, 0x00, 0x00); + + case VerbatimString: + return QColor(0x00, 0x7f, 0x00); + + case Regex: + case BlockRegex: + return QColor(0x3f, 0x7f, 0x3f); + + case CommentDocKeyword: + return QColor(0x30, 0x60, 0xa0); + + case CommentDocKeywordError: + return QColor(0x80, 0x40, 0x20); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerCoffeeScript::defaultEolFill(int style) const +{ + switch (style) + { + case UnclosedString: + case VerbatimString: + case Regex: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerCoffeeScript::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case CommentDoc: + case CommentLineDoc: + case CommentDocKeyword: + case CommentDocKeywordError: + case CommentBlock: + case BlockRegexComment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DoubleQuotedString: + case SingleQuotedString: + case UnclosedString: + case VerbatimString: + case Regex: + case BlockRegex: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerCoffeeScript::keywords(int set) const +{ + if (set == 1) + return + "true false null this new delete typeof in instanceof return " + "throw break continue debugger if else switch for while do try " + "catch finally class extends super " + "undefined then unless until loop of by when and or is isnt not " + "yes no on off"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerCoffeeScript::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("C-style comment"); + + case CommentLine: + return tr("C++-style comment"); + + case CommentDoc: + return tr("JavaDoc C-style comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case UUID: + return tr("IDL UUID"); + + case PreProcessor: + return tr("Pre-processor block"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case UnclosedString: + return tr("Unclosed string"); + + case VerbatimString: + return tr("C# verbatim string"); + + case Regex: + return tr("Regular expression"); + + case CommentLineDoc: + return tr("JavaDoc C++-style comment"); + + case KeywordSet2: + return tr("Secondary keywords and identifiers"); + + case CommentDocKeyword: + return tr("JavaDoc keyword"); + + case CommentDocKeywordError: + return tr("JavaDoc keyword error"); + + case GlobalClass: + return tr("Global classes"); + + case CommentBlock: + return tr("Block comment"); + + case BlockRegex: + return tr("Block regular expression"); + + case BlockRegexComment: + return tr("Block regular expression comment"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerCoffeeScript::defaultPaper(int style) const +{ + switch (style) + { + case UnclosedString: + return QColor(0xe0,0xc0,0xe0); + + case VerbatimString: + return QColor(0xe0,0xff,0xe0); + + case Regex: + return QColor(0xe0,0xf0,0xe0); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerCoffeeScript::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setStylePreprocProp(); + setDollarsProp(); +} + + +// Read properties from the settings. +bool QsciLexerCoffeeScript::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + style_preproc = qs.value(prefix + "stylepreprocessor", false).toBool(); + dollars = qs.value(prefix + "dollars", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerCoffeeScript::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "stylepreprocessor", style_preproc); + qs.setValue(prefix + "dollars", dollars); + + return rc; +} + + +// Set if comments can be folded. +void QsciLexerCoffeeScript::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerCoffeeScript::setCommentProp() +{ + emit propertyChanged("fold.coffeescript.comment", + (fold_comments ? "1" : "0")); +} + + +// Set if folds are compact +void QsciLexerCoffeeScript::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerCoffeeScript::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} + + +// Set if preprocessor lines are styled. +void QsciLexerCoffeeScript::setStylePreprocessor(bool style) +{ + style_preproc = style; + + setStylePreprocProp(); +} + + +// Set the "styling.within.preprocessor" property. +void QsciLexerCoffeeScript::setStylePreprocProp() +{ + emit propertyChanged("styling.within.preprocessor", + (style_preproc ? "1" : "0")); +} + + +// Set if '$' characters are allowed. +void QsciLexerCoffeeScript::setDollarsAllowed(bool allowed) +{ + dollars = allowed; + + setDollarsProp(); +} + + +// Set the "lexer.cpp.allow.dollars" property. +void QsciLexerCoffeeScript::setDollarsProp() +{ + emit propertyChanged("lexer.cpp.allow.dollars", (dollars ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexercpp.cpp b/Qt4Qt5/qscilexercpp.cpp new file mode 100644 index 0000000..737fc66 --- /dev/null +++ b/Qt4Qt5/qscilexercpp.cpp @@ -0,0 +1,717 @@ +// This module implements the QsciLexerCPP class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercpp.h" + +#include +#include +#include + + +// The ctor. +QsciLexerCPP::QsciLexerCPP(QObject *parent, bool caseInsensitiveKeywords) + : QsciLexer(parent), + fold_atelse(false), fold_comments(false), fold_compact(true), + fold_preproc(true), style_preproc(false), dollars(true), + highlight_triple(false), highlight_hash(false), + nocase(caseInsensitiveKeywords) +{ +} + + +// The dtor. +QsciLexerCPP::~QsciLexerCPP() +{ +} + + +// Returns the language name. +const char *QsciLexerCPP::language() const +{ + return "C++"; +} + + +// Returns the lexer name. +const char *QsciLexerCPP::lexer() const +{ + return (nocase ? "cppnocase" : "cpp"); +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerCPP::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "::" << "->" << "."; + + return wl; +} + + +// Return the list of keywords that can start a block. +const char *QsciLexerCPP::blockStartKeyword(int *style) const +{ + if (style) + *style = Keyword; + + return "case catch class default do else finally for if private " + "protected public struct try union while"; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerCPP::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "{"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerCPP::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "}"; +} + + +// Return the style used for braces. +int QsciLexerCPP::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerCPP::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerCPP::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80, 0x80, 0x80); + + case Comment: + case CommentLine: + return QColor(0x00, 0x7f, 0x00); + + case CommentDoc: + case CommentLineDoc: + case PreProcessorCommentLineDoc: + return QColor(0x3f, 0x70, 0x3f); + + case Number: + return QColor(0x00, 0x7f, 0x7f); + + case Keyword: + return QColor(0x00, 0x00, 0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + case RawString: + return QColor(0x7f, 0x00, 0x7f); + + case PreProcessor: + return QColor(0x7f, 0x7f, 0x00); + + case Operator: + case UnclosedString: + return QColor(0x00, 0x00, 0x00); + + case VerbatimString: + case TripleQuotedVerbatimString: + case HashQuotedString: + return QColor(0x00, 0x7f, 0x00); + + case Regex: + return QColor(0x3f, 0x7f, 0x3f); + + case CommentDocKeyword: + return QColor(0x30, 0x60, 0xa0); + + case CommentDocKeywordError: + return QColor(0x80, 0x40, 0x20); + + case PreProcessorComment: + return QColor(0x65, 0x99, 0x00); + + case InactiveDefault: + case InactiveUUID: + case InactiveCommentLineDoc: + case InactiveKeywordSet2: + case InactiveCommentDocKeyword: + case InactiveCommentDocKeywordError: + case InactivePreProcessorCommentLineDoc: + return QColor(0xc0, 0xc0, 0xc0); + + case InactiveComment: + case InactiveCommentLine: + case InactiveNumber: + case InactiveVerbatimString: + case InactiveTripleQuotedVerbatimString: + case InactiveHashQuotedString: + return QColor(0x90, 0xb0, 0x90); + + case InactiveCommentDoc: + return QColor(0xd0, 0xd0, 0xd0); + + case InactiveKeyword: + return QColor(0x90, 0x90, 0xb0); + + case InactiveDoubleQuotedString: + case InactiveSingleQuotedString: + case InactiveRawString: + return QColor(0xb0, 0x90, 0xb0); + + case InactivePreProcessor: + return QColor(0xb0, 0xb0, 0x90); + + case InactiveOperator: + case InactiveIdentifier: + case InactiveGlobalClass: + return QColor(0xb0, 0xb0, 0xb0); + + case InactiveUnclosedString: + return QColor(0x00, 0x00, 0x00); + + case InactiveRegex: + return QColor(0x7f, 0xaf, 0x7f); + + case InactivePreProcessorComment: + return QColor(0xa0, 0xc0, 0x90); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerCPP::defaultEolFill(int style) const +{ + switch (style) + { + case UnclosedString: + case InactiveUnclosedString: + case VerbatimString: + case InactiveVerbatimString: + case Regex: + case InactiveRegex: + case TripleQuotedVerbatimString: + case InactiveTripleQuotedVerbatimString: + case HashQuotedString: + case InactiveHashQuotedString: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerCPP::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case InactiveComment: + case CommentLine: + case InactiveCommentLine: + case CommentDoc: + case InactiveCommentDoc: + case CommentLineDoc: + case InactiveCommentLineDoc: + case CommentDocKeyword: + case InactiveCommentDocKeyword: + case CommentDocKeywordError: + case InactiveCommentDocKeywordError: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case InactiveKeyword: + case Operator: + case InactiveOperator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DoubleQuotedString: + case InactiveDoubleQuotedString: + case SingleQuotedString: + case InactiveSingleQuotedString: + case UnclosedString: + case InactiveUnclosedString: + case VerbatimString: + case InactiveVerbatimString: + case Regex: + case InactiveRegex: + case TripleQuotedVerbatimString: + case InactiveTripleQuotedVerbatimString: + case HashQuotedString: + case InactiveHashQuotedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerCPP::keywords(int set) const +{ + if (set == 1) + return + "and and_eq asm auto bitand bitor bool break case " + "catch char class compl const const_cast continue " + "default delete do double dynamic_cast else enum " + "explicit export extern false float for friend goto if " + "inline int long mutable namespace new not not_eq " + "operator or or_eq private protected public register " + "reinterpret_cast return short signed sizeof static " + "static_cast struct switch template this throw true " + "try typedef typeid typename union unsigned using " + "virtual void volatile wchar_t while xor xor_eq"; + + if (set == 3) + return + "a addindex addtogroup anchor arg attention author b " + "brief bug c class code date def defgroup deprecated " + "dontinclude e em endcode endhtmlonly endif " + "endlatexonly endlink endverbatim enum example " + "exception f$ f[ f] file fn hideinitializer " + "htmlinclude htmlonly if image include ingroup " + "internal invariant interface latexonly li line link " + "mainpage name namespace nosubgrouping note overload " + "p page par param post pre ref relates remarks return " + "retval sa section see showinitializer since skip " + "skipline struct subsection test throw todo typedef " + "union until var verbatim verbinclude version warning " + "weakgroup $ @ \\ & < > # { }"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerCPP::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case InactiveDefault: + return tr("Inactive default"); + + case Comment: + return tr("C comment"); + + case InactiveComment: + return tr("Inactive C comment"); + + case CommentLine: + return tr("C++ comment"); + + case InactiveCommentLine: + return tr("Inactive C++ comment"); + + case CommentDoc: + return tr("JavaDoc style C comment"); + + case InactiveCommentDoc: + return tr("Inactive JavaDoc style C comment"); + + case Number: + return tr("Number"); + + case InactiveNumber: + return tr("Inactive number"); + + case Keyword: + return tr("Keyword"); + + case InactiveKeyword: + return tr("Inactive keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case InactiveDoubleQuotedString: + return tr("Inactive double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case InactiveSingleQuotedString: + return tr("Inactive single-quoted string"); + + case UUID: + return tr("IDL UUID"); + + case InactiveUUID: + return tr("Inactive IDL UUID"); + + case PreProcessor: + return tr("Pre-processor block"); + + case InactivePreProcessor: + return tr("Inactive pre-processor block"); + + case Operator: + return tr("Operator"); + + case InactiveOperator: + return tr("Inactive operator"); + + case Identifier: + return tr("Identifier"); + + case InactiveIdentifier: + return tr("Inactive identifier"); + + case UnclosedString: + return tr("Unclosed string"); + + case InactiveUnclosedString: + return tr("Inactive unclosed string"); + + case VerbatimString: + return tr("C# verbatim string"); + + case InactiveVerbatimString: + return tr("Inactive C# verbatim string"); + + case Regex: + return tr("JavaScript regular expression"); + + case InactiveRegex: + return tr("Inactive JavaScript regular expression"); + + case CommentLineDoc: + return tr("JavaDoc style C++ comment"); + + case InactiveCommentLineDoc: + return tr("Inactive JavaDoc style C++ comment"); + + case KeywordSet2: + return tr("Secondary keywords and identifiers"); + + case InactiveKeywordSet2: + return tr("Inactive secondary keywords and identifiers"); + + case CommentDocKeyword: + return tr("JavaDoc keyword"); + + case InactiveCommentDocKeyword: + return tr("Inactive JavaDoc keyword"); + + case CommentDocKeywordError: + return tr("JavaDoc keyword error"); + + case InactiveCommentDocKeywordError: + return tr("Inactive JavaDoc keyword error"); + + case GlobalClass: + return tr("Global classes and typedefs"); + + case InactiveGlobalClass: + return tr("Inactive global classes and typedefs"); + + case RawString: + return tr("C++ raw string"); + + case InactiveRawString: + return tr("Inactive C++ raw string"); + + case TripleQuotedVerbatimString: + return tr("Vala triple-quoted verbatim string"); + + case InactiveTripleQuotedVerbatimString: + return tr("Inactive Vala triple-quoted verbatim string"); + + case HashQuotedString: + return tr("Pike hash-quoted string"); + + case InactiveHashQuotedString: + return tr("Inactive Pike hash-quoted string"); + + case PreProcessorComment: + return tr("Pre-processor C comment"); + + case InactivePreProcessorComment: + return tr("Inactive pre-processor C comment"); + + case PreProcessorCommentLineDoc: + return tr("JavaDoc style pre-processor comment"); + + case InactivePreProcessorCommentLineDoc: + return tr("Inactive JavaDoc style pre-processor comment"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerCPP::defaultPaper(int style) const +{ + switch (style) + { + case UnclosedString: + case InactiveUnclosedString: + return QColor(0xe0,0xc0,0xe0); + + case VerbatimString: + case InactiveVerbatimString: + case TripleQuotedVerbatimString: + case InactiveTripleQuotedVerbatimString: + return QColor(0xe0,0xff,0xe0); + + case Regex: + case InactiveRegex: + return QColor(0xe0,0xf0,0xe0); + + case RawString: + case InactiveRawString: + return QColor(0xff,0xf3,0xff); + + case HashQuotedString: + case InactiveHashQuotedString: + return QColor(0xe7,0xff,0xd7); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerCPP::refreshProperties() +{ + setAtElseProp(); + setCommentProp(); + setCompactProp(); + setPreprocProp(); + setStylePreprocProp(); + setDollarsProp(); + setHighlightTripleProp(); + setHighlightHashProp(); +} + + +// Read properties from the settings. +bool QsciLexerCPP::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_atelse = qs.value(prefix + "foldatelse", false).toBool(); + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + fold_preproc = qs.value(prefix + "foldpreprocessor", true).toBool(); + style_preproc = qs.value(prefix + "stylepreprocessor", false).toBool(); + dollars = qs.value(prefix + "dollars", true).toBool(); + highlight_triple = qs.value(prefix + "highlighttriple", false).toBool(); + highlight_hash = qs.value(prefix + "highlighthash", false).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerCPP::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldatelse", fold_atelse); + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "foldpreprocessor", fold_preproc); + qs.setValue(prefix + "stylepreprocessor", style_preproc); + qs.setValue(prefix + "dollars", dollars); + qs.setValue(prefix + "highlighttriple", highlight_triple); + qs.setValue(prefix + "highlighthash", highlight_hash); + + return rc; +} + + +// Set if else can be folded. +void QsciLexerCPP::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerCPP::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} + + +// Set if comments can be folded. +void QsciLexerCPP::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerCPP::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Set if folds are compact +void QsciLexerCPP::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerCPP::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Set if preprocessor blocks can be folded. +void QsciLexerCPP::setFoldPreprocessor(bool fold) +{ + fold_preproc = fold; + + setPreprocProp(); +} + + +// Set the "fold.preprocessor" property. +void QsciLexerCPP::setPreprocProp() +{ + emit propertyChanged("fold.preprocessor",(fold_preproc ? "1" : "0")); +} + + +// Set if preprocessor lines are styled. +void QsciLexerCPP::setStylePreprocessor(bool style) +{ + style_preproc = style; + + setStylePreprocProp(); +} + + +// Set the "styling.within.preprocessor" property. +void QsciLexerCPP::setStylePreprocProp() +{ + emit propertyChanged("styling.within.preprocessor",(style_preproc ? "1" : "0")); +} + + +// Set if '$' characters are allowed. +void QsciLexerCPP::setDollarsAllowed(bool allowed) +{ + dollars = allowed; + + setDollarsProp(); +} + + +// Set the "lexer.cpp.allow.dollars" property. +void QsciLexerCPP::setDollarsProp() +{ + emit propertyChanged("lexer.cpp.allow.dollars",(dollars ? "1" : "0")); +} + + +// Set if triple quoted strings are highlighted. +void QsciLexerCPP::setHighlightTripleQuotedStrings(bool enabled) +{ + highlight_triple = enabled; + + setHighlightTripleProp(); +} + + +// Set the "lexer.cpp.triplequoted.strings" property. +void QsciLexerCPP::setHighlightTripleProp() +{ + emit propertyChanged("lexer.cpp.triplequoted.strings", + (highlight_triple ? "1" : "0")); +} + + +// Set if hash quoted strings are highlighted. +void QsciLexerCPP::setHighlightHashQuotedStrings(bool enabled) +{ + highlight_hash = enabled; + + setHighlightHashProp(); +} + + +// Set the "lexer.cpp.hashquoted.strings" property. +void QsciLexerCPP::setHighlightHashProp() +{ + emit propertyChanged("lexer.cpp.hashquoted.strings", + (highlight_hash ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexercsharp.cpp b/Qt4Qt5/qscilexercsharp.cpp new file mode 100644 index 0000000..adbeb40 --- /dev/null +++ b/Qt4Qt5/qscilexercsharp.cpp @@ -0,0 +1,123 @@ +// This module implements the QsciLexerCSharp class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercsharp.h" + +#include +#include + + +// The ctor. +QsciLexerCSharp::QsciLexerCSharp(QObject *parent) + : QsciLexerCPP(parent) +{ +} + + +// The dtor. +QsciLexerCSharp::~QsciLexerCSharp() +{ +} + + +// Returns the language name. +const char *QsciLexerCSharp::language() const +{ + return "C#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerCSharp::defaultColor(int style) const +{ + if (style == VerbatimString) + return QColor(0x00,0x7f,0x00); + + return QsciLexerCPP::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerCSharp::defaultEolFill(int style) const +{ + if (style == VerbatimString) + return true; + + return QsciLexerCPP::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerCSharp::defaultFont(int style) const +{ + if (style == VerbatimString) +#if defined(Q_OS_WIN) + return QFont("Courier New",10); +#elif defined(Q_OS_MAC) + return QFont("Courier", 12); +#else + return QFont("Bitstream Vera Sans Mono",9); +#endif + + return QsciLexerCPP::defaultFont(style); +} + + +// Returns the set of keywords. +const char *QsciLexerCSharp::keywords(int set) const +{ + if (set != 1) + return 0; + + return "abstract as base bool break byte case catch char checked " + "class const continue decimal default delegate do double else " + "enum event explicit extern false finally fixed float for " + "foreach goto if implicit in int interface internal is lock " + "long namespace new null object operator out override params " + "private protected public readonly ref return sbyte sealed " + "short sizeof stackalloc static string struct switch this " + "throw true try typeof uint ulong unchecked unsafe ushort " + "using virtual void while"; +} + + +// Returns the user name of a style. +QString QsciLexerCSharp::description(int style) const +{ + if (style == VerbatimString) + return tr("Verbatim string"); + + return QsciLexerCPP::description(style); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerCSharp::defaultPaper(int style) const +{ + if (style == VerbatimString) + return QColor(0xe0,0xff,0xe0); + + return QsciLexer::defaultPaper(style); +} diff --git a/Qt4Qt5/qscilexercss.cpp b/Qt4Qt5/qscilexercss.cpp new file mode 100644 index 0000000..40f002c --- /dev/null +++ b/Qt4Qt5/qscilexercss.cpp @@ -0,0 +1,442 @@ +// This module implements the QsciLexerCSS class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercss.h" + +#include +#include +#include + + +// The ctor. +QsciLexerCSS::QsciLexerCSS(QObject *parent) + : QsciLexer(parent), + fold_comments(false), fold_compact(true), hss_language(false), + less_language(false), scss_language(false) +{ +} + + +// The dtor. +QsciLexerCSS::~QsciLexerCSS() +{ +} + + +// Returns the language name. +const char *QsciLexerCSS::language() const +{ + return "CSS"; +} + + +// Returns the lexer name. +const char *QsciLexerCSS::lexer() const +{ + return "css"; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerCSS::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "{"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerCSS::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "}"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerCSS::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerCSS::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0xff,0x00,0x80); + + case Tag: + return QColor(0x00,0x00,0x7f); + + case PseudoClass: + case Attribute: + return QColor(0x80,0x00,0x00); + + case UnknownPseudoClass: + case UnknownProperty: + return QColor(0xff,0x00,0x00); + + case Operator: + return QColor(0x00,0x00,0x00); + + case CSS1Property: + return QColor(0x00,0x40,0xe0); + + case Value: + case DoubleQuotedString: + case SingleQuotedString: + return QColor(0x7f,0x00,0x7f); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case IDSelector: + return QColor(0x00,0x7f,0x7f); + + case Important: + return QColor(0xff,0x80,0x00); + + case AtRule: + case MediaRule: + return QColor(0x7f,0x7f,0x00); + + case CSS2Property: + return QColor(0x00,0xa0,0xe0); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerCSS::defaultFont(int style) const +{ + QFont f; + + if (style == Comment) +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + else + { + f = QsciLexer::defaultFont(style); + + switch (style) + { + case Tag: + case Important: + case MediaRule: + f.setBold(true); + break; + + case IDSelector: + f.setItalic(true); + break; + } + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerCSS::keywords(int set) const +{ + if (set == 1) + return + "color background-color background-image " + "background-repeat background-attachment " + "background-position background font-family " + "font-style font-variant font-weight font-size font " + "word-spacing letter-spacing text-decoration " + "vertical-align text-transform text-align " + "text-indent line-height margin-top margin-right " + "margin-bottom margin-left margin padding-top " + "padding-right padding-bottom padding-left padding " + "border-top-width border-right-width " + "border-bottom-width border-left-width border-width " + "border-top border-right border-bottom border-left " + "border border-color border-style width height float " + "clear display white-space list-style-type " + "list-style-image list-style-position list-style"; + + if (set == 2) + return + "first-letter first-line link active visited " + "first-child focus hover lang before after left " + "right first"; + + if (set == 3) + return + "border-top-color border-right-color " + "border-bottom-color border-left-color border-color " + "border-top-style border-right-style " + "border-bottom-style border-left-style border-style " + "top right bottom left position z-index direction " + "unicode-bidi min-width max-width min-height " + "max-height overflow clip visibility content quotes " + "counter-reset counter-increment marker-offset size " + "marks page-break-before page-break-after " + "page-break-inside page orphans widows font-stretch " + "font-size-adjust unicode-range units-per-em src " + "panose-1 stemv stemh slope cap-height x-height " + "ascent descent widths bbox definition-src baseline " + "centerline mathline topline text-shadow " + "caption-side table-layout border-collapse " + "border-spacing empty-cells speak-header cursor " + "outline outline-width outline-style outline-color " + "volume speak pause-before pause-after pause " + "cue-before cue-after cue play-during azimuth " + "elevation speech-rate voice-family pitch " + "pitch-range stress richness speak-punctuation " + "speak-numeral"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerCSS::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Tag: + return tr("Tag"); + + case ClassSelector: + return tr("Class selector"); + + case PseudoClass: + return tr("Pseudo-class"); + + case UnknownPseudoClass: + return tr("Unknown pseudo-class"); + + case Operator: + return tr("Operator"); + + case CSS1Property: + return tr("CSS1 property"); + + case UnknownProperty: + return tr("Unknown property"); + + case Value: + return tr("Value"); + + case IDSelector: + return tr("ID selector"); + + case Important: + return tr("Important"); + + case AtRule: + return tr("@-rule"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case CSS2Property: + return tr("CSS2 property"); + + case Attribute: + return tr("Attribute"); + + case CSS3Property: + return tr("CSS3 property"); + + case PseudoElement: + return tr("Pseudo-element"); + + case ExtendedCSSProperty: + return tr("Extended CSS property"); + + case ExtendedPseudoClass: + return tr("Extended pseudo-class"); + + case ExtendedPseudoElement: + return tr("Extended pseudo-element"); + + case MediaRule: + return tr("Media rule"); + + case Variable: + return tr("Variable"); + } + + return QString(); +} + + +// Refresh all properties. +void QsciLexerCSS::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setHSSProp(); + setLessProp(); + setSCSSProp(); +} + + +// Read properties from the settings. +bool QsciLexerCSS::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + hss_language = qs.value(prefix + "hsslanguage", false).toBool(); + less_language = qs.value(prefix + "lesslanguage", false).toBool(); + scss_language = qs.value(prefix + "scsslanguage", false).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerCSS::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "hsslanguage", hss_language); + qs.setValue(prefix + "lesslanguage", less_language); + qs.setValue(prefix + "scsslanguage", scss_language); + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerCSS::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerCSS::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerCSS::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerCSS::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerCSS::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerCSS::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Set if HSS is supported. +void QsciLexerCSS::setHSSLanguage(bool enabled) +{ + hss_language = enabled; + + setHSSProp(); +} + + +// Set the "lexer.css.hss.language" property. +void QsciLexerCSS::setHSSProp() +{ + emit propertyChanged("lexer.css.hss.language",(hss_language ? "1" : "0")); +} + + +// Set if Less CSS is supported. +void QsciLexerCSS::setLessLanguage(bool enabled) +{ + less_language = enabled; + + setLessProp(); +} + + +// Set the "lexer.css.less.language" property. +void QsciLexerCSS::setLessProp() +{ + emit propertyChanged("lexer.css.less.language",(less_language ? "1" : "0")); +} + + +// Set if Sassy CSS is supported. +void QsciLexerCSS::setSCSSLanguage(bool enabled) +{ + scss_language = enabled; + + setSCSSProp(); +} + + +// Set the "lexer.css.scss.language" property. +void QsciLexerCSS::setSCSSProp() +{ + emit propertyChanged("lexer.css.scss.language",(scss_language ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexercustom.cpp b/Qt4Qt5/qscilexercustom.cpp new file mode 100644 index 0000000..15acb1b --- /dev/null +++ b/Qt4Qt5/qscilexercustom.cpp @@ -0,0 +1,110 @@ +// This module implements the QsciLexerCustom class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexercustom.h" + +#include "Qsci/qsciscintilla.h" +#include "Qsci/qsciscintillabase.h" +#include "Qsci/qscistyle.h" + + +// The ctor. +QsciLexerCustom::QsciLexerCustom(QObject *parent) + : QsciLexer(parent) +{ +} + + +// The dtor. +QsciLexerCustom::~QsciLexerCustom() +{ +} + + +// Start styling. +void QsciLexerCustom::startStyling(int start, int styleBits) +{ + if (!editor()) + return; + + if (styleBits == 0) + styleBits = (1 << styleBitsNeeded()) - 1; + + editor()->SendScintilla(QsciScintillaBase::SCI_STARTSTYLING, start, + styleBits); +} + + +// Set the style for a number of characters. +void QsciLexerCustom::setStyling(int length, int style) +{ + if (!editor()) + return; + + editor()->SendScintilla(QsciScintillaBase::SCI_SETSTYLING, length, style); +} + + +// Set the style for a number of characters. +void QsciLexerCustom::setStyling(int length, const QsciStyle &style) +{ + setStyling(length, style.style()); +} + + +// Set the attached editor. +void QsciLexerCustom::setEditor(QsciScintilla *new_editor) +{ + if (editor()) + disconnect(editor(), SIGNAL(SCN_STYLENEEDED(int)), this, + SLOT(handleStyleNeeded(int))); + + QsciLexer::setEditor(new_editor); + + if (editor()) + connect(editor(), SIGNAL(SCN_STYLENEEDED(int)), this, + SLOT(handleStyleNeeded(int))); +} + + +// Return the number of style bits needed by the lexer. +int QsciLexerCustom::styleBitsNeeded() const +{ + return 5; +} + + +// Handle a request to style some text. +void QsciLexerCustom::handleStyleNeeded(int pos) +{ + int start = editor()->SendScintilla(QsciScintillaBase::SCI_GETENDSTYLED); + int line = editor()->SendScintilla(QsciScintillaBase::SCI_LINEFROMPOSITION, + start); + start = editor()->SendScintilla(QsciScintillaBase::SCI_POSITIONFROMLINE, + line); + + if (start != pos) + styleText(start, pos); +} diff --git a/Qt4Qt5/qscilexerd.cpp b/Qt4Qt5/qscilexerd.cpp new file mode 100644 index 0000000..26defed --- /dev/null +++ b/Qt4Qt5/qscilexerd.cpp @@ -0,0 +1,455 @@ +// This module implements the QsciLexerD class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerd.h" + +#include +#include +#include + + +// The ctor. +QsciLexerD::QsciLexerD(QObject *parent) + : QsciLexer(parent), + fold_atelse(false), fold_comments(false), fold_compact(true) +{ +} + + +// The dtor. +QsciLexerD::~QsciLexerD() +{ +} + + +// Returns the language name. +const char *QsciLexerD::language() const +{ + return "D"; +} + + +// Returns the lexer name. +const char *QsciLexerD::lexer() const +{ + return "d"; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerD::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "."; + + return wl; +} + + +// Return the list of keywords that can start a block. +const char *QsciLexerD::blockStartKeyword(int *style) const +{ + if (style) + *style = Keyword; + + return "case catch class default do else finally for foreach " + "foreach_reverse if private protected public struct try union " + "while"; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerD::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "{"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerD::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "}"; +} + + +// Return the style used for braces. +int QsciLexerD::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerD::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerD::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + case CommentLine: + return QColor(0x00,0x7f,0x00); + + case CommentDoc: + case CommentLineDoc: + return QColor(0x3f,0x70,0x3f); + + case CommentNested: + return QColor(0xa0,0xc0,0xa0); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + case KeywordSecondary: + case KeywordDoc: + case Typedefs: + return QColor(0x00,0x00,0x7f); + + case String: + return QColor(0x7f,0x00,0x7f); + + case Character: + return QColor(0x7f,0x00,0x7f); + + case Operator: + case UnclosedString: + return QColor(0x00,0x00,0x00); + + case Identifier: + break; + + case CommentDocKeyword: + return QColor(0x30,0x60,0xa0); + + case CommentDocKeywordError: + return QColor(0x80,0x40,0x20); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerD::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerD::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case CommentDoc: + case CommentNested: + case CommentLineDoc: + case CommentDocKeyword: + case CommentDocKeywordError: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case KeywordSecondary: + case KeywordDoc: + case Typedefs: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case String: + case UnclosedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerD::keywords(int set) const +{ + if (set == 1) + return + "abstract alias align asm assert auto body bool break byte case " + "cast catch cdouble cent cfloat char class const continue creal " + "dchar debug default delegate delete deprecated do double else " + "enum export extern false final finally float for foreach " + "foreach_reverse function goto idouble if ifloat import in inout " + "int interface invariant ireal is lazy long mixin module new null " + "out override package pragma private protected public real return " + "scope short static struct super switch synchronized template " + "this throw true try typedef typeid typeof ubyte ucent uint ulong " + "union unittest ushort version void volatile wchar while with"; + + if (set == 3) + return + "a addindex addtogroup anchor arg attention author b brief bug c " + "class code date def defgroup deprecated dontinclude e em endcode " + "endhtmlonly endif endlatexonly endlink endverbatim enum example " + "exception f$ f[ f] file fn hideinitializer htmlinclude htmlonly " + "if image include ingroup internal invariant interface latexonly " + "li line link mainpage name namespace nosubgrouping note overload " + "p page par param post pre ref relates remarks return retval sa " + "section see showinitializer since skip skipline struct " + "subsection test throw todo typedef union until var verbatim " + "verbinclude version warning weakgroup $ @ \\ & < > # { }"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerD::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Block comment"); + + case CommentLine: + return tr("Line comment"); + + case CommentDoc: + return tr("DDoc style block comment"); + + case CommentNested: + return tr("Nesting comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case KeywordSecondary: + return tr("Secondary keyword"); + + case KeywordDoc: + return tr("Documentation keyword"); + + case Typedefs: + return tr("Type definition"); + + case String: + return tr("String"); + + case UnclosedString: + return tr("Unclosed string"); + + case Character: + return tr("Character"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case CommentLineDoc: + return tr("DDoc style line comment"); + + case CommentDocKeyword: + return tr("DDoc keyword"); + + case CommentDocKeywordError: + return tr("DDoc keyword error"); + + case BackquoteString: + return tr("Backquoted string"); + + case RawString: + return tr("Raw string"); + + case KeywordSet5: + return tr("User defined 1"); + + case KeywordSet6: + return tr("User defined 2"); + + case KeywordSet7: + return tr("User defined 3"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerD::defaultPaper(int style) const +{ + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerD::refreshProperties() +{ + setAtElseProp(); + setCommentProp(); + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerD::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_atelse = qs.value(prefix + "foldatelse", false).toBool(); + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerD::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldatelse", fold_atelse); + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + + return rc; +} + + +// Return true if else can be folded. +bool QsciLexerD::foldAtElse() const +{ + return fold_atelse; +} + + +// Set if else can be folded. +void QsciLexerD::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerD::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} + + +// Return true if comments can be folded. +bool QsciLexerD::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerD::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerD::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerD::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerD::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerD::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerdiff.cpp b/Qt4Qt5/qscilexerdiff.cpp new file mode 100644 index 0000000..adae665 --- /dev/null +++ b/Qt4Qt5/qscilexerdiff.cpp @@ -0,0 +1,132 @@ +// This module implements the QsciLexerDiff class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerdiff.h" + +#include +#include +#include + + +// The ctor. +QsciLexerDiff::QsciLexerDiff(QObject *parent) + : QsciLexer(parent) +{ +} + + +// The dtor. +QsciLexerDiff::~QsciLexerDiff() +{ +} + + +// Returns the language name. +const char *QsciLexerDiff::language() const +{ + return "Diff"; +} + + +// Returns the lexer name. +const char *QsciLexerDiff::lexer() const +{ + return "diff"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerDiff::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerDiff::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Command: + return QColor(0x7f,0x7f,0x00); + + case Header: + return QColor(0x7f,0x00,0x00); + + case Position: + return QColor(0x7f,0x00,0x7f); + + case LineRemoved: + return QColor(0x00,0x7f,0x7f); + + case LineAdded: + return QColor(0x00,0x00,0x7f); + + case LineChanged: + return QColor(0x7f,0x7f,0x7f); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the user name of a style. +QString QsciLexerDiff::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Command: + return tr("Command"); + + case Header: + return tr("Header"); + + case Position: + return tr("Position"); + + case LineRemoved: + return tr("Removed line"); + + case LineAdded: + return tr("Added line"); + + case LineChanged: + return tr("Changed line"); + } + + return QString(); +} diff --git a/Qt4Qt5/qscilexerfortran.cpp b/Qt4Qt5/qscilexerfortran.cpp new file mode 100644 index 0000000..13dfed0 --- /dev/null +++ b/Qt4Qt5/qscilexerfortran.cpp @@ -0,0 +1,114 @@ +// This module implements the QsciLexerFortran class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerfortran.h" + +#include +#include +#include + + +// The ctor. +QsciLexerFortran::QsciLexerFortran(QObject *parent) + : QsciLexerFortran77(parent) +{ +} + + +// The dtor. +QsciLexerFortran::~QsciLexerFortran() +{ +} + + +// Returns the language name. +const char *QsciLexerFortran::language() const +{ + return "Fortran"; +} + + +// Returns the lexer name. +const char *QsciLexerFortran::lexer() const +{ + return "fortran"; +} + + +// Returns the set of keywords. +const char *QsciLexerFortran::keywords(int set) const +{ + if (set == 2) + return + "abs achar acos acosd adjustl adjustr aimag aimax0 aimin0 aint " + "ajmax0 ajmin0 akmax0 akmin0 all allocated alog alog10 amax0 " + "amax1 amin0 amin1 amod anint any asin asind associated atan " + "atan2 atan2d atand bitest bitl bitlr bitrl bjtest bit_size " + "bktest break btest cabs ccos cdabs cdcos cdexp cdlog cdsin " + "cdsqrt ceiling cexp char clog cmplx conjg cos cosd cosh count " + "cpu_time cshift csin csqrt dabs dacos dacosd dasin dasind datan " + "datan2 datan2d datand date date_and_time dble dcmplx dconjg dcos " + "dcosd dcosh dcotan ddim dexp dfloat dflotk dfloti dflotj digits " + "dim dimag dint dlog dlog10 dmax1 dmin1 dmod dnint dot_product " + "dprod dreal dsign dsin dsind dsinh dsqrt dtan dtand dtanh " + "eoshift epsilon errsns exp exponent float floati floatj floatk " + "floor fraction free huge iabs iachar iand ibclr ibits ibset " + "ichar idate idim idint idnint ieor ifix iiabs iiand iibclr " + "iibits iibset iidim iidint iidnnt iieor iifix iint iior iiqint " + "iiqnnt iishft iishftc iisign ilen imax0 imax1 imin0 imin1 imod " + "index inint inot int int1 int2 int4 int8 iqint iqnint ior ishft " + "ishftc isign isnan izext jiand jibclr jibits jibset jidim jidint " + "jidnnt jieor jifix jint jior jiqint jiqnnt jishft jishftc jisign " + "jmax0 jmax1 jmin0 jmin1 jmod jnint jnot jzext kiabs kiand kibclr " + "kibits kibset kidim kidint kidnnt kieor kifix kind kint kior " + "kishft kishftc kisign kmax0 kmax1 kmin0 kmin1 kmod knint knot " + "kzext lbound leadz len len_trim lenlge lge lgt lle llt log log10 " + "logical lshift malloc matmul max max0 max1 maxexponent maxloc " + "maxval merge min min0 min1 minexponent minloc minval mod modulo " + "mvbits nearest nint not nworkers number_of_processors pack " + "popcnt poppar precision present product radix random " + "random_number random_seed range real repeat reshape rrspacing " + "rshift scale scan secnds selected_int_kind selected_real_kind " + "set_exponent shape sign sin sind sinh size sizeof sngl snglq " + "spacing spread sqrt sum system_clock tan tand tanh tiny transfer " + "transpose trim ubound unpack verify"; + + if (set == 3) + return + "cdabs cdcos cdexp cdlog cdsin cdsqrt cotan cotand dcmplx dconjg " + "dcotan dcotand decode dimag dll_export dll_import doublecomplex " + "dreal dvchk encode find flen flush getarg getcharqq getcl getdat " + "getenv gettim hfix ibchng identifier imag int1 int2 int4 intc " + "intrup invalop iostat_msg isha ishc ishl jfix lacfar locking " + "locnear map nargs nbreak ndperr ndpexc offset ovefl peekcharqq " + "precfill prompt qabs qacos qacosd qasin qasind qatan qatand " + "qatan2 qcmplx qconjg qcos qcosd qcosh qdim qexp qext qextd " + "qfloat qimag qlog qlog10 qmax1 qmin1 qmod qreal qsign qsin qsind " + "qsinh qsqrt qtan qtand qtanh ran rand randu rewrite segment " + "setdat settim system timer undfl unlock union val virtual " + "volatile zabs zcos zexp zlog zsin zsqrt"; + + return QsciLexerFortran77::keywords(set); +} diff --git a/Qt4Qt5/qscilexerfortran77.cpp b/Qt4Qt5/qscilexerfortran77.cpp new file mode 100644 index 0000000..34c6cc2 --- /dev/null +++ b/Qt4Qt5/qscilexerfortran77.cpp @@ -0,0 +1,302 @@ +// This module implements the QsciLexerFortran77 class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerfortran77.h" + +#include +#include +#include + + +// The ctor. +QsciLexerFortran77::QsciLexerFortran77(QObject *parent) + : QsciLexer(parent), + fold_compact(true) +{ +} + + +// The dtor. +QsciLexerFortran77::~QsciLexerFortran77() +{ +} + + +// Returns the language name. +const char *QsciLexerFortran77::language() const +{ + return "Fortran77"; +} + + +// Returns the lexer name. +const char *QsciLexerFortran77::lexer() const +{ + return "f77"; +} + + +// Return the style used for braces. +int QsciLexerFortran77::braceStyle() const +{ + return Default; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerFortran77::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case SingleQuotedString: + case DoubleQuotedString: + return QColor(0x7f,0x00,0x7f); + + case UnclosedString: + case Operator: + case DottedOperator: + case Continuation: + return QColor(0x00,0x00,0x00); + + case Identifier: + break; + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case IntrinsicFunction: + return QColor(0xb0,0x00,0x40); + + case ExtendedFunction: + return QColor(0xb0,0x40,0x80); + + case PreProcessor: + return QColor(0x7f,0x7f,0x00); + + case Label: + return QColor(0xe0,0xc0,0xe0); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerFortran77::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerFortran77::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Operator: + case DottedOperator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerFortran77::keywords(int set) const +{ + if (set == 1) + return + "access action advance allocatable allocate apostrophe assign " + "assignment associate asynchronous backspace bind blank blockdata " + "call case character class close common complex contains continue " + "cycle data deallocate decimal delim default dimension direct do " + "dowhile double doubleprecision else elseif elsewhere encoding " + "end endassociate endblockdata enddo endfile endforall " + "endfunction endif endinterface endmodule endprogram endselect " + "endsubroutine endtype endwhere entry eor equivalence err errmsg " + "exist exit external file flush fmt forall form format formatted " + "function go goto id if implicit in include inout integer inquire " + "intent interface intrinsic iomsg iolength iostat kind len " + "logical module name named namelist nextrec nml none nullify " + "number only open opened operator optional out pad parameter pass " + "pause pending pointer pos position precision print private " + "program protected public quote read readwrite real rec recl " + "recursive result return rewind save select selectcase selecttype " + "sequential sign size stat status stop stream subroutine target " + "then to type unformatted unit use value volatile wait where " + "while write"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerFortran77::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Number: + return tr("Number"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case UnclosedString: + return tr("Unclosed string"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case Keyword: + return tr("Keyword"); + + case IntrinsicFunction: + return tr("Intrinsic function"); + + case ExtendedFunction: + return tr("Extended function"); + + case PreProcessor: + return tr("Pre-processor block"); + + case DottedOperator: + return tr("Dotted operator"); + + case Label: + return tr("Label"); + + case Continuation: + return tr("Continuation"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerFortran77::defaultPaper(int style) const +{ + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + if (style == Continuation) + return QColor(0xf0,0xe0,0x80); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerFortran77::refreshProperties() +{ + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerFortran77::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerFortran77::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcompact", fold_compact); + + return rc; +} + + +// Return true if folds are compact. +bool QsciLexerFortran77::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerFortran77::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerFortran77::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerhtml.cpp b/Qt4Qt5/qscilexerhtml.cpp new file mode 100644 index 0000000..92babea --- /dev/null +++ b/Qt4Qt5/qscilexerhtml.cpp @@ -0,0 +1,1186 @@ +// This module implements the QsciLexerHTML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerhtml.h" + +#include +#include +#include + +#include "Qsci/qscilexerjavascript.h" +#include "Qsci/qscilexerpython.h" + + +// The ctor. +QsciLexerHTML::QsciLexerHTML(QObject *parent) + : QsciLexer(parent), + fold_compact(true), fold_preproc(true), case_sens_tags(false), + fold_script_comments(false), fold_script_heredocs(false), + django_templates(false), mako_templates(false) +{ +} + + +// The dtor. +QsciLexerHTML::~QsciLexerHTML() +{ +} + + +// Returns the language name. +const char *QsciLexerHTML::language() const +{ + return "HTML"; +} + + +// Returns the lexer name. +const char *QsciLexerHTML::lexer() const +{ + return "hypertext"; +} + + +// Return the auto-completion fillup characters. +const char *QsciLexerHTML::autoCompletionFillups() const +{ + return "/>"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerHTML::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerHTML::defaultColor(int style) const +{ + switch (style) + { + case Default: + case JavaScriptDefault: + case JavaScriptWord: + case JavaScriptSymbol: + case ASPJavaScriptDefault: + case ASPJavaScriptWord: + case ASPJavaScriptSymbol: + case VBScriptDefault: + case ASPVBScriptDefault: + case PHPOperator: + return QColor(0x00,0x00,0x00); + + case Tag: + case XMLTagEnd: + case Script: + case SGMLDefault: + case SGMLCommand: + case VBScriptKeyword: + case VBScriptIdentifier: + case VBScriptUnclosedString: + case ASPVBScriptKeyword: + case ASPVBScriptIdentifier: + case ASPVBScriptUnclosedString: + return QColor(0x00,0x00,0x80); + + case UnknownTag: + case UnknownAttribute: + return QColor(0xff,0x00,0x00); + + case Attribute: + case VBScriptNumber: + case ASPVBScriptNumber: + return QColor(0x00,0x80,0x80); + + case HTMLNumber: + case JavaScriptNumber: + case ASPJavaScriptNumber: + case PythonNumber: + case PythonFunctionMethodName: + case ASPPythonNumber: + case ASPPythonFunctionMethodName: + return QColor(0x00,0x7f,0x7f); + + case HTMLDoubleQuotedString: + case HTMLSingleQuotedString: + case JavaScriptDoubleQuotedString: + case JavaScriptSingleQuotedString: + case ASPJavaScriptDoubleQuotedString: + case ASPJavaScriptSingleQuotedString: + case PythonDoubleQuotedString: + case PythonSingleQuotedString: + case ASPPythonDoubleQuotedString: + case ASPPythonSingleQuotedString: + case PHPKeyword: + return QColor(0x7f,0x00,0x7f); + + case OtherInTag: + case Entity: + case VBScriptString: + case ASPVBScriptString: + return QColor(0x80,0x00,0x80); + + case HTMLComment: + case SGMLComment: + return QColor(0x80,0x80,0x00); + + case XMLStart: + case XMLEnd: + case PHPStart: + case PythonClassName: + case ASPPythonClassName: + return QColor(0x00,0x00,0xff); + + case HTMLValue: + return QColor(0xff,0x00,0xff); + + case SGMLParameter: + return QColor(0x00,0x66,0x00); + + case SGMLDoubleQuotedString: + case SGMLError: + return QColor(0x80,0x00,0x00); + + case SGMLSingleQuotedString: + return QColor(0x99,0x33,0x00); + + case SGMLSpecial: + return QColor(0x33,0x66,0xff); + + case SGMLEntity: + return QColor(0x33,0x33,0x33); + + case SGMLBlockDefault: + return QColor(0x00,0x00,0x66); + + case JavaScriptStart: + case ASPJavaScriptStart: + return QColor(0x7f,0x7f,0x00); + + case JavaScriptComment: + case JavaScriptCommentLine: + case ASPJavaScriptComment: + case ASPJavaScriptCommentLine: + case PythonComment: + case ASPPythonComment: + case PHPDoubleQuotedString: + return QColor(0x00,0x7f,0x00); + + case JavaScriptCommentDoc: + return QColor(0x3f,0x70,0x3f); + + case JavaScriptKeyword: + case ASPJavaScriptKeyword: + case PythonKeyword: + case ASPPythonKeyword: + case PHPVariable: + case PHPDoubleQuotedVariable: + return QColor(0x00,0x00,0x7f); + + case ASPJavaScriptCommentDoc: + return QColor(0x7f,0x7f,0x7f); + + case VBScriptComment: + case ASPVBScriptComment: + return QColor(0x00,0x80,0x00); + + case PythonStart: + case PythonDefault: + case ASPPythonStart: + case ASPPythonDefault: + return QColor(0x80,0x80,0x80); + + case PythonTripleSingleQuotedString: + case PythonTripleDoubleQuotedString: + case ASPPythonTripleSingleQuotedString: + case ASPPythonTripleDoubleQuotedString: + return QColor(0x7f,0x00,0x00); + + case PHPDefault: + return QColor(0x00,0x00,0x33); + + case PHPSingleQuotedString: + return QColor(0x00,0x9f,0x00); + + case PHPNumber: + return QColor(0xcc,0x99,0x00); + + case PHPComment: + return QColor(0x99,0x99,0x99); + + case PHPCommentLine: + return QColor(0x66,0x66,0x66); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerHTML::defaultEolFill(int style) const +{ + switch (style) + { + case JavaScriptDefault: + case JavaScriptComment: + case JavaScriptCommentDoc: + case JavaScriptUnclosedString: + case ASPJavaScriptDefault: + case ASPJavaScriptComment: + case ASPJavaScriptCommentDoc: + case ASPJavaScriptUnclosedString: + case VBScriptDefault: + case VBScriptComment: + case VBScriptNumber: + case VBScriptKeyword: + case VBScriptString: + case VBScriptIdentifier: + case VBScriptUnclosedString: + case ASPVBScriptDefault: + case ASPVBScriptComment: + case ASPVBScriptNumber: + case ASPVBScriptKeyword: + case ASPVBScriptString: + case ASPVBScriptIdentifier: + case ASPVBScriptUnclosedString: + case PythonDefault: + case PythonComment: + case PythonNumber: + case PythonDoubleQuotedString: + case PythonSingleQuotedString: + case PythonKeyword: + case PythonTripleSingleQuotedString: + case PythonTripleDoubleQuotedString: + case PythonClassName: + case PythonFunctionMethodName: + case PythonOperator: + case PythonIdentifier: + case ASPPythonDefault: + case ASPPythonComment: + case ASPPythonNumber: + case ASPPythonDoubleQuotedString: + case ASPPythonSingleQuotedString: + case ASPPythonKeyword: + case ASPPythonTripleSingleQuotedString: + case ASPPythonTripleDoubleQuotedString: + case ASPPythonClassName: + case ASPPythonFunctionMethodName: + case ASPPythonOperator: + case ASPPythonIdentifier: + case PHPDefault: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerHTML::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Default: + case Entity: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman",11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter",10); +#endif + break; + + case HTMLComment: +#if defined(Q_OS_WIN) + f = QFont("Verdana",9); +#elif defined(Q_OS_MAC) + f = QFont("Verdana", 12); +#else + f = QFont("Bitstream Vera Sans",8); +#endif + break; + + case SGMLCommand: + case PythonKeyword: + case PythonClassName: + case PythonFunctionMethodName: + case PythonOperator: + case ASPPythonKeyword: + case ASPPythonClassName: + case ASPPythonFunctionMethodName: + case ASPPythonOperator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case JavaScriptDefault: + case JavaScriptCommentDoc: + case JavaScriptKeyword: + case JavaScriptSymbol: + case ASPJavaScriptDefault: + case ASPJavaScriptCommentDoc: + case ASPJavaScriptKeyword: + case ASPJavaScriptSymbol: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + f.setBold(true); + break; + + case JavaScriptComment: + case JavaScriptCommentLine: + case JavaScriptNumber: + case JavaScriptWord: + case JavaScriptDoubleQuotedString: + case JavaScriptSingleQuotedString: + case ASPJavaScriptComment: + case ASPJavaScriptCommentLine: + case ASPJavaScriptNumber: + case ASPJavaScriptWord: + case ASPJavaScriptDoubleQuotedString: + case ASPJavaScriptSingleQuotedString: + case VBScriptComment: + case ASPVBScriptComment: + case PythonComment: + case ASPPythonComment: + case PHPComment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case VBScriptDefault: + case VBScriptNumber: + case VBScriptString: + case VBScriptIdentifier: + case VBScriptUnclosedString: + case ASPVBScriptDefault: + case ASPVBScriptNumber: + case ASPVBScriptString: + case ASPVBScriptIdentifier: + case ASPVBScriptUnclosedString: +#if defined(Q_OS_WIN) + f = QFont("Lucida Sans Unicode",9); +#elif defined(Q_OS_MAC) + f = QFont("Lucida Grande", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case VBScriptKeyword: + case ASPVBScriptKeyword: +#if defined(Q_OS_WIN) + f = QFont("Lucida Sans Unicode",9); +#elif defined(Q_OS_MAC) + f = QFont("Lucida Grande", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + f.setBold(true); + break; + + case PythonDoubleQuotedString: + case PythonSingleQuotedString: + case ASPPythonDoubleQuotedString: + case ASPPythonSingleQuotedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier New", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + case PHPKeyword: + case PHPVariable: + case PHPDoubleQuotedVariable: + f = QsciLexer::defaultFont(style); + f.setItalic(true); + break; + + case PHPCommentLine: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + f.setItalic(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerHTML::keywords(int set) const +{ + if (set == 1) + return + "a abbr acronym address applet area " + "b base basefont bdo big blockquote body br button " + "caption center cite code col colgroup " + "dd del dfn dir div dl dt " + "em " + "fieldset font form frame frameset " + "h1 h2 h3 h4 h5 h6 head hr html " + "i iframe img input ins isindex " + "kbd " + "label legend li link " + "map menu meta " + "noframes noscript " + "object ol optgroup option " + "p param pre " + "q " + "s samp script select small span strike strong style " + "sub sup " + "table tbody td textarea tfoot th thead title tr tt " + "u ul " + "var " + "xml xmlns " + "abbr accept-charset accept accesskey action align " + "alink alt archive axis " + "background bgcolor border " + "cellpadding cellspacing char charoff charset checked " + "cite class classid clear codebase codetype color " + "cols colspan compact content coords " + "data datafld dataformatas datapagesize datasrc " + "datetime declare defer dir disabled " + "enctype event " + "face for frame frameborder " + "headers height href hreflang hspace http-equiv " + "id ismap label lang language leftmargin link " + "longdesc " + "marginwidth marginheight maxlength media method " + "multiple " + "name nohref noresize noshade nowrap " + "object onblur onchange onclick ondblclick onfocus " + "onkeydown onkeypress onkeyup onload onmousedown " + "onmousemove onmouseover onmouseout onmouseup onreset " + "onselect onsubmit onunload " + "profile prompt " + "readonly rel rev rows rowspan rules " + "scheme scope selected shape size span src standby " + "start style summary " + "tabindex target text title topmargin type " + "usemap " + "valign value valuetype version vlink vspace " + "width " + "text password checkbox radio submit reset file " + "hidden image " + "public !doctype"; + + if (set == 2) + return QsciLexerJavaScript::keywordClass; + + if (set == 3) + return + // Move these to QsciLexerVisualBasic when we + // get round to implementing it. + "and begin case call continue do each else elseif end " + "erase error event exit false for function get gosub " + "goto if implement in load loop lset me mid new next " + "not nothing on or property raiseevent rem resume " + "return rset select set stop sub then to true unload " + "until wend while with withevents attribute alias as " + "boolean byref byte byval const compare currency date " + "declare dim double enum explicit friend global " + "integer let lib long module object option optional " + "preserve private property public redim single static " + "string type variant"; + + if (set == 4) + return QsciLexerPython::keywordClass; + + if (set == 5) + return + "and argv as argc break case cfunction class continue " + "declare default do die " + "echo else elseif empty enddeclare endfor endforeach " + "endif endswitch endwhile e_all e_parse e_error " + "e_warning eval exit extends " + "false for foreach function global " + "http_cookie_vars http_get_vars http_post_vars " + "http_post_files http_env_vars http_server_vars " + "if include include_once list new not null " + "old_function or " + "parent php_os php_self php_version print " + "require require_once return " + "static switch stdclass this true var xor virtual " + "while " + "__file__ __line__ __sleep __wakeup"; + + if (set == 6) + return "ELEMENT DOCTYPE ATTLIST ENTITY NOTATION"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerHTML::description(int style) const +{ + switch (style) + { + case Default: + return tr("HTML default"); + + case Tag: + return tr("Tag"); + + case UnknownTag: + return tr("Unknown tag"); + + case Attribute: + return tr("Attribute"); + + case UnknownAttribute: + return tr("Unknown attribute"); + + case HTMLNumber: + return tr("HTML number"); + + case HTMLDoubleQuotedString: + return tr("HTML double-quoted string"); + + case HTMLSingleQuotedString: + return tr("HTML single-quoted string"); + + case OtherInTag: + return tr("Other text in a tag"); + + case HTMLComment: + return tr("HTML comment"); + + case Entity: + return tr("Entity"); + + case XMLTagEnd: + return tr("End of a tag"); + + case XMLStart: + return tr("Start of an XML fragment"); + + case XMLEnd: + return tr("End of an XML fragment"); + + case Script: + return tr("Script tag"); + + case ASPAtStart: + return tr("Start of an ASP fragment with @"); + + case ASPStart: + return tr("Start of an ASP fragment"); + + case CDATA: + return tr("CDATA"); + + case PHPStart: + return tr("Start of a PHP fragment"); + + case HTMLValue: + return tr("Unquoted HTML value"); + + case ASPXCComment: + return tr("ASP X-Code comment"); + + case SGMLDefault: + return tr("SGML default"); + + case SGMLCommand: + return tr("SGML command"); + + case SGMLParameter: + return tr("First parameter of an SGML command"); + + case SGMLDoubleQuotedString: + return tr("SGML double-quoted string"); + + case SGMLSingleQuotedString: + return tr("SGML single-quoted string"); + + case SGMLError: + return tr("SGML error"); + + case SGMLSpecial: + return tr("SGML special entity"); + + case SGMLComment: + return tr("SGML comment"); + + case SGMLParameterComment: + return tr("First parameter comment of an SGML command"); + + case SGMLBlockDefault: + return tr("SGML block default"); + + case JavaScriptStart: + return tr("Start of a JavaScript fragment"); + + case JavaScriptDefault: + return tr("JavaScript default"); + + case JavaScriptComment: + return tr("JavaScript comment"); + + case JavaScriptCommentLine: + return tr("JavaScript line comment"); + + case JavaScriptCommentDoc: + return tr("JavaDoc style JavaScript comment"); + + case JavaScriptNumber: + return tr("JavaScript number"); + + case JavaScriptWord: + return tr("JavaScript word"); + + case JavaScriptKeyword: + return tr("JavaScript keyword"); + + case JavaScriptDoubleQuotedString: + return tr("JavaScript double-quoted string"); + + case JavaScriptSingleQuotedString: + return tr("JavaScript single-quoted string"); + + case JavaScriptSymbol: + return tr("JavaScript symbol"); + + case JavaScriptUnclosedString: + return tr("JavaScript unclosed string"); + + case JavaScriptRegex: + return tr("JavaScript regular expression"); + + case ASPJavaScriptStart: + return tr("Start of an ASP JavaScript fragment"); + + case ASPJavaScriptDefault: + return tr("ASP JavaScript default"); + + case ASPJavaScriptComment: + return tr("ASP JavaScript comment"); + + case ASPJavaScriptCommentLine: + return tr("ASP JavaScript line comment"); + + case ASPJavaScriptCommentDoc: + return tr("JavaDoc style ASP JavaScript comment"); + + case ASPJavaScriptNumber: + return tr("ASP JavaScript number"); + + case ASPJavaScriptWord: + return tr("ASP JavaScript word"); + + case ASPJavaScriptKeyword: + return tr("ASP JavaScript keyword"); + + case ASPJavaScriptDoubleQuotedString: + return tr("ASP JavaScript double-quoted string"); + + case ASPJavaScriptSingleQuotedString: + return tr("ASP JavaScript single-quoted string"); + + case ASPJavaScriptSymbol: + return tr("ASP JavaScript symbol"); + + case ASPJavaScriptUnclosedString: + return tr("ASP JavaScript unclosed string"); + + case ASPJavaScriptRegex: + return tr("ASP JavaScript regular expression"); + + case VBScriptStart: + return tr("Start of a VBScript fragment"); + + case VBScriptDefault: + return tr("VBScript default"); + + case VBScriptComment: + return tr("VBScript comment"); + + case VBScriptNumber: + return tr("VBScript number"); + + case VBScriptKeyword: + return tr("VBScript keyword"); + + case VBScriptString: + return tr("VBScript string"); + + case VBScriptIdentifier: + return tr("VBScript identifier"); + + case VBScriptUnclosedString: + return tr("VBScript unclosed string"); + + case ASPVBScriptStart: + return tr("Start of an ASP VBScript fragment"); + + case ASPVBScriptDefault: + return tr("ASP VBScript default"); + + case ASPVBScriptComment: + return tr("ASP VBScript comment"); + + case ASPVBScriptNumber: + return tr("ASP VBScript number"); + + case ASPVBScriptKeyword: + return tr("ASP VBScript keyword"); + + case ASPVBScriptString: + return tr("ASP VBScript string"); + + case ASPVBScriptIdentifier: + return tr("ASP VBScript identifier"); + + case ASPVBScriptUnclosedString: + return tr("ASP VBScript unclosed string"); + + case PythonStart: + return tr("Start of a Python fragment"); + + case PythonDefault: + return tr("Python default"); + + case PythonComment: + return tr("Python comment"); + + case PythonNumber: + return tr("Python number"); + + case PythonDoubleQuotedString: + return tr("Python double-quoted string"); + + case PythonSingleQuotedString: + return tr("Python single-quoted string"); + + case PythonKeyword: + return tr("Python keyword"); + + case PythonTripleDoubleQuotedString: + return tr("Python triple double-quoted string"); + + case PythonTripleSingleQuotedString: + return tr("Python triple single-quoted string"); + + case PythonClassName: + return tr("Python class name"); + + case PythonFunctionMethodName: + return tr("Python function or method name"); + + case PythonOperator: + return tr("Python operator"); + + case PythonIdentifier: + return tr("Python identifier"); + + case ASPPythonStart: + return tr("Start of an ASP Python fragment"); + + case ASPPythonDefault: + return tr("ASP Python default"); + + case ASPPythonComment: + return tr("ASP Python comment"); + + case ASPPythonNumber: + return tr("ASP Python number"); + + case ASPPythonDoubleQuotedString: + return tr("ASP Python double-quoted string"); + + case ASPPythonSingleQuotedString: + return tr("ASP Python single-quoted string"); + + case ASPPythonKeyword: + return tr("ASP Python keyword"); + + case ASPPythonTripleDoubleQuotedString: + return tr("ASP Python triple double-quoted string"); + + case ASPPythonTripleSingleQuotedString: + return tr("ASP Python triple single-quoted string"); + + case ASPPythonClassName: + return tr("ASP Python class name"); + + case ASPPythonFunctionMethodName: + return tr("ASP Python function or method name"); + + case ASPPythonOperator: + return tr("ASP Python operator"); + + case ASPPythonIdentifier: + return tr("ASP Python identifier"); + + case PHPDefault: + return tr("PHP default"); + + case PHPDoubleQuotedString: + return tr("PHP double-quoted string"); + + case PHPSingleQuotedString: + return tr("PHP single-quoted string"); + + case PHPKeyword: + return tr("PHP keyword"); + + case PHPNumber: + return tr("PHP number"); + + case PHPVariable: + return tr("PHP variable"); + + case PHPComment: + return tr("PHP comment"); + + case PHPCommentLine: + return tr("PHP line comment"); + + case PHPDoubleQuotedVariable: + return tr("PHP double-quoted variable"); + + case PHPOperator: + return tr("PHP operator"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerHTML::defaultPaper(int style) const +{ + switch (style) + { + case ASPAtStart: + return QColor(0xff,0xff,0x00); + + case ASPStart: + case CDATA: + return QColor(0xff,0xdf,0x00); + + case PHPStart: + return QColor(0xff,0xef,0xbf); + + case HTMLValue: + return QColor(0xff,0xef,0xff); + + case SGMLDefault: + case SGMLCommand: + case SGMLParameter: + case SGMLDoubleQuotedString: + case SGMLSingleQuotedString: + case SGMLSpecial: + case SGMLEntity: + case SGMLComment: + return QColor(0xef,0xef,0xff); + + case SGMLError: + return QColor(0xff,0x66,0x66); + + case SGMLBlockDefault: + return QColor(0xcc,0xcc,0xe0); + + case JavaScriptDefault: + case JavaScriptComment: + case JavaScriptCommentLine: + case JavaScriptCommentDoc: + case JavaScriptNumber: + case JavaScriptWord: + case JavaScriptKeyword: + case JavaScriptDoubleQuotedString: + case JavaScriptSingleQuotedString: + case JavaScriptSymbol: + return QColor(0xf0,0xf0,0xff); + + case JavaScriptUnclosedString: + case ASPJavaScriptUnclosedString: + return QColor(0xbf,0xbb,0xb0); + + case JavaScriptRegex: + case ASPJavaScriptRegex: + return QColor(0xff,0xbb,0xb0); + + case ASPJavaScriptDefault: + case ASPJavaScriptComment: + case ASPJavaScriptCommentLine: + case ASPJavaScriptCommentDoc: + case ASPJavaScriptNumber: + case ASPJavaScriptWord: + case ASPJavaScriptKeyword: + case ASPJavaScriptDoubleQuotedString: + case ASPJavaScriptSingleQuotedString: + case ASPJavaScriptSymbol: + return QColor(0xdf,0xdf,0x7f); + + case VBScriptDefault: + case VBScriptComment: + case VBScriptNumber: + case VBScriptKeyword: + case VBScriptString: + case VBScriptIdentifier: + return QColor(0xef,0xef,0xff); + + case VBScriptUnclosedString: + case ASPVBScriptUnclosedString: + return QColor(0x7f,0x7f,0xff); + + case ASPVBScriptDefault: + case ASPVBScriptComment: + case ASPVBScriptNumber: + case ASPVBScriptKeyword: + case ASPVBScriptString: + case ASPVBScriptIdentifier: + return QColor(0xcf,0xcf,0xef); + + case PythonDefault: + case PythonComment: + case PythonNumber: + case PythonDoubleQuotedString: + case PythonSingleQuotedString: + case PythonKeyword: + case PythonTripleSingleQuotedString: + case PythonTripleDoubleQuotedString: + case PythonClassName: + case PythonFunctionMethodName: + case PythonOperator: + case PythonIdentifier: + return QColor(0xef,0xff,0xef); + + case ASPPythonDefault: + case ASPPythonComment: + case ASPPythonNumber: + case ASPPythonDoubleQuotedString: + case ASPPythonSingleQuotedString: + case ASPPythonKeyword: + case ASPPythonTripleSingleQuotedString: + case ASPPythonTripleDoubleQuotedString: + case ASPPythonClassName: + case ASPPythonFunctionMethodName: + case ASPPythonOperator: + case ASPPythonIdentifier: + return QColor(0xcf,0xef,0xcf); + + case PHPDefault: + case PHPDoubleQuotedString: + case PHPSingleQuotedString: + case PHPKeyword: + case PHPNumber: + case PHPVariable: + case PHPComment: + case PHPCommentLine: + case PHPDoubleQuotedVariable: + case PHPOperator: + return QColor(0xff,0xf8,0xf8); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerHTML::refreshProperties() +{ + setCompactProp(); + setPreprocProp(); + setCaseSensTagsProp(); + setScriptCommentsProp(); + setScriptHeredocsProp(); + setDjangoProp(); + setMakoProp(); +} + + +// Read properties from the settings. +bool QsciLexerHTML::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + fold_preproc = qs.value(prefix + "foldpreprocessor", false).toBool(); + case_sens_tags = qs.value(prefix + "casesensitivetags", false).toBool(); + fold_script_comments = qs.value(prefix + "foldscriptcomments", false).toBool(); + fold_script_heredocs = qs.value(prefix + "foldscriptheredocs", false).toBool(); + django_templates = qs.value(prefix + "djangotemplates", false).toBool(); + mako_templates = qs.value(prefix + "makotemplates", false).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerHTML::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "foldpreprocessor", fold_preproc); + qs.setValue(prefix + "casesensitivetags", case_sens_tags); + qs.setValue(prefix + "foldscriptcomments", fold_script_comments); + qs.setValue(prefix + "foldscriptheredocs", fold_script_heredocs); + qs.setValue(prefix + "djangotemplates", django_templates); + qs.setValue(prefix + "makotemplates", mako_templates); + + return rc; +} + + +// Set if tags are case sensitive. +void QsciLexerHTML::setCaseSensitiveTags(bool sens) +{ + case_sens_tags = sens; + + setCaseSensTagsProp(); +} + + +// Set the "html.tags.case.sensitive" property. +void QsciLexerHTML::setCaseSensTagsProp() +{ + emit propertyChanged("html.tags.case.sensitive",(case_sens_tags ? "1" : "0")); +} + + +// Set if folds are compact +void QsciLexerHTML::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerHTML::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Set if preprocessor blocks can be folded. +void QsciLexerHTML::setFoldPreprocessor(bool fold) +{ + fold_preproc = fold; + + setPreprocProp(); +} + + +// Set the "fold.html.preprocessor" property. +void QsciLexerHTML::setPreprocProp() +{ + emit propertyChanged("fold.html.preprocessor",(fold_preproc ? "1" : "0")); +} + + +// Set if script comments can be folded. +void QsciLexerHTML::setFoldScriptComments(bool fold) +{ + fold_script_comments = fold; + + setScriptCommentsProp(); +} + + +// Set the "fold.hypertext.comment" property. +void QsciLexerHTML::setScriptCommentsProp() +{ + emit propertyChanged("fold.hypertext.comment",(fold_script_comments ? "1" : "0")); +} + + +// Set if script heredocs can be folded. +void QsciLexerHTML::setFoldScriptHeredocs(bool fold) +{ + fold_script_heredocs = fold; + + setScriptHeredocsProp(); +} + + +// Set the "fold.hypertext.heredoc" property. +void QsciLexerHTML::setScriptHeredocsProp() +{ + emit propertyChanged("fold.hypertext.heredoc",(fold_script_heredocs ? "1" : "0")); +} + + +// Set if Django templates are supported. +void QsciLexerHTML::setDjangoTemplates(bool enable) +{ + django_templates = enable; + + setDjangoProp(); +} + + +// Set the "lexer.html.django" property. +void QsciLexerHTML::setDjangoProp() +{ + emit propertyChanged("lexer.html.django", (django_templates ? "1" : "0")); +} + + +// Set if Mako templates are supported. +void QsciLexerHTML::setMakoTemplates(bool enable) +{ + mako_templates = enable; + + setMakoProp(); +} + + +// Set the "lexer.html.mako" property. +void QsciLexerHTML::setMakoProp() +{ + emit propertyChanged("lexer.html.mako", (mako_templates ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexeridl.cpp b/Qt4Qt5/qscilexeridl.cpp new file mode 100644 index 0000000..ebca789 --- /dev/null +++ b/Qt4Qt5/qscilexeridl.cpp @@ -0,0 +1,105 @@ +// This module implements the QsciLexerIDL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexeridl.h" + +#include +#include + + +// The ctor. +QsciLexerIDL::QsciLexerIDL(QObject *parent) + : QsciLexerCPP(parent) +{ +} + + +// The dtor. +QsciLexerIDL::~QsciLexerIDL() +{ +} + + +// Returns the language name. +const char *QsciLexerIDL::language() const +{ + return "IDL"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerIDL::defaultColor(int style) const +{ + if (style == UUID) + return QColor(0x80,0x40,0x80); + + return QsciLexerCPP::defaultColor(style); +} + + +// Returns the set of keywords. +const char *QsciLexerIDL::keywords(int set) const +{ + if (set != 1) + return 0; + + return "aggregatable allocate appobject arrays async async_uuid " + "auto_handle bindable boolean broadcast byte byte_count " + "call_as callback char coclass code comm_status const " + "context_handle context_handle_noserialize " + "context_handle_serialize control cpp_quote custom decode " + "default defaultbind defaultcollelem defaultvalue " + "defaultvtable dispinterface displaybind dllname double dual " + "enable_allocate encode endpoint entry enum error_status_t " + "explicit_handle fault_status first_is float handle_t heap " + "helpcontext helpfile helpstring helpstringcontext " + "helpstringdll hidden hyper id idempotent ignore iid_as iid_is " + "immediatebind implicit_handle import importlib in include " + "in_line int __int64 __int3264 interface last_is lcid " + "length_is library licensed local long max_is maybe message " + "methods midl_pragma midl_user_allocate midl_user_free min_is " + "module ms_union ncacn_at_dsp ncacn_dnet_nsp ncacn_http " + "ncacn_ip_tcp ncacn_nb_ipx ncacn_nb_nb ncacn_nb_tcp ncacn_np " + "ncacn_spx ncacn_vns_spp ncadg_ip_udp ncadg_ipx ncadg_mq " + "ncalrpc nocode nonbrowsable noncreatable nonextensible notify " + "object odl oleautomation optimize optional out out_of_line " + "pipe pointer_default pragma properties propget propput " + "propputref ptr public range readonly ref represent_as " + "requestedit restricted retval shape short signed size_is " + "small source strict_context_handle string struct switch " + "switch_is switch_type transmit_as typedef uidefault union " + "unique unsigned user_marshal usesgetlasterror uuid v1_enum " + "vararg version void wchar_t wire_marshal"; +} + + +// Returns the user name of a style. +QString QsciLexerIDL::description(int style) const +{ + if (style == UUID) + return tr("UUID"); + + return QsciLexerCPP::description(style); +} diff --git a/Qt4Qt5/qscilexerjava.cpp b/Qt4Qt5/qscilexerjava.cpp new file mode 100644 index 0000000..2033e34 --- /dev/null +++ b/Qt4Qt5/qscilexerjava.cpp @@ -0,0 +1,62 @@ +// This module implements the QsciLexerJava class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerjava.h" + + +// The ctor. +QsciLexerJava::QsciLexerJava(QObject *parent) + : QsciLexerCPP(parent) +{ +} + + +// The dtor. +QsciLexerJava::~QsciLexerJava() +{ +} + + +// Returns the language name. +const char *QsciLexerJava::language() const +{ + return "Java"; +} + + +// Returns the set of keywords. +const char *QsciLexerJava::keywords(int set) const +{ + if (set != 1) + return 0; + + return "abstract assert boolean break byte case catch char class " + "const continue default do double else extends final finally " + "float for future generic goto if implements import inner " + "instanceof int interface long native new null operator outer " + "package private protected public rest return short static " + "super switch synchronized this throw throws transient try var " + "void volatile while"; +} diff --git a/Qt4Qt5/qscilexerjavascript.cpp b/Qt4Qt5/qscilexerjavascript.cpp new file mode 100644 index 0000000..81fa1f5 --- /dev/null +++ b/Qt4Qt5/qscilexerjavascript.cpp @@ -0,0 +1,125 @@ +// This module implements the QsciLexerJavaScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerjavascript.h" + +#include +#include + + +// The list of JavaScript keywords that can be used by other friendly lexers. +const char *QsciLexerJavaScript::keywordClass = + "abstract boolean break byte case catch char class const continue " + "debugger default delete do double else enum export extends final " + "finally float for function goto if implements import in instanceof " + "int interface long native new package private protected public " + "return short static super switch synchronized this throw throws " + "transient try typeof var void volatile while with"; + + +// The ctor. +QsciLexerJavaScript::QsciLexerJavaScript(QObject *parent) + : QsciLexerCPP(parent) +{ +} + + +// The dtor. +QsciLexerJavaScript::~QsciLexerJavaScript() +{ +} + + +// Returns the language name. +const char *QsciLexerJavaScript::language() const +{ + return "JavaScript"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerJavaScript::defaultColor(int style) const +{ + if (style == Regex) + return QColor(0x3f,0x7f,0x3f); + + return QsciLexerCPP::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerJavaScript::defaultEolFill(int style) const +{ + if (style == Regex) + return true; + + return QsciLexerCPP::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerJavaScript::defaultFont(int style) const +{ + if (style == Regex) +#if defined(Q_OS_WIN) + return QFont("Courier New",10); +#elif defined(Q_OS_MAC) + return QFont("Courier", 12); +#else + return QFont("Bitstream Vera Sans Mono",9); +#endif + + return QsciLexerCPP::defaultFont(style); +} + + +// Returns the set of keywords. +const char *QsciLexerJavaScript::keywords(int set) const +{ + if (set != 1) + return 0; + + return keywordClass; +} + + +// Returns the user name of a style. +QString QsciLexerJavaScript::description(int style) const +{ + if (style == Regex) + return tr("Regular expression"); + + return QsciLexerCPP::description(style); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerJavaScript::defaultPaper(int style) const +{ + if (style == Regex) + return QColor(0xe0,0xf0,0xff); + + return QsciLexer::defaultPaper(style); +} diff --git a/Qt4Qt5/qscilexerlua.cpp b/Qt4Qt5/qscilexerlua.cpp new file mode 100644 index 0000000..856e1ff --- /dev/null +++ b/Qt4Qt5/qscilexerlua.cpp @@ -0,0 +1,374 @@ +// This module implements the QsciLexerLua class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerlua.h" + +#include +#include +#include + + +// The ctor. +QsciLexerLua::QsciLexerLua(QObject *parent) + : QsciLexer(parent), + fold_compact(true) +{ +} + + +// The dtor. +QsciLexerLua::~QsciLexerLua() +{ +} + + +// Returns the language name. +const char *QsciLexerLua::language() const +{ + return "Lua"; +} + + +// Returns the lexer name. +const char *QsciLexerLua::lexer() const +{ + return "lua"; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerLua::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << ":" << "."; + + return wl; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerLua::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return ""; +} + + +// Return the style used for braces. +int QsciLexerLua::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerLua::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x00,0x00,0x00); + + case Comment: + case LineComment: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + case BasicFunctions: + case StringTableMathsFunctions: + case CoroutinesIOSystemFacilities: + return QColor(0x00,0x00,0x7f); + + case String: + case Character: + case LiteralString: + return QColor(0x7f,0x00,0x7f); + + case Preprocessor: + case Label: + return QColor(0x7f,0x7f,0x00); + + case Operator: + case Identifier: + break; + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerLua::defaultEolFill(int style) const +{ + if (style == Comment || style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerLua::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case LineComment: + case LiteralString: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerLua::keywords(int set) const +{ + if (set == 1) + // Keywords. + return + "and break do else elseif end false for function if " + "in local nil not or repeat return then true until " + "while"; + + if (set == 2) + // Basic functions. + return + "_ALERT _ERRORMESSAGE _INPUT _PROMPT _OUTPUT _STDERR " + "_STDIN _STDOUT call dostring foreach foreachi getn " + "globals newtype rawget rawset require sort tinsert " + "tremove " + + "G getfenv getmetatable ipairs loadlib next pairs " + "pcall rawegal rawget rawset require setfenv " + "setmetatable xpcall string table math coroutine io " + "os debug"; + + if (set == 3) + // String, table and maths functions. + return + "abs acos asin atan atan2 ceil cos deg exp floor " + "format frexp gsub ldexp log log10 max min mod rad " + "random randomseed sin sqrt strbyte strchar strfind " + "strlen strlower strrep strsub strupper tan " + + "string.byte string.char string.dump string.find " + "string.len string.lower string.rep string.sub " + "string.upper string.format string.gfind string.gsub " + "table.concat table.foreach table.foreachi table.getn " + "table.sort table.insert table.remove table.setn " + "math.abs math.acos math.asin math.atan math.atan2 " + "math.ceil math.cos math.deg math.exp math.floor " + "math.frexp math.ldexp math.log math.log10 math.max " + "math.min math.mod math.pi math.rad math.random " + "math.randomseed math.sin math.sqrt math.tan"; + + if (set == 4) + // Coroutine, I/O and system facilities. + return + "openfile closefile readfrom writeto appendto remove " + "rename flush seek tmpfile tmpname read write clock " + "date difftime execute exit getenv setlocale time " + + "coroutine.create coroutine.resume coroutine.status " + "coroutine.wrap coroutine.yield io.close io.flush " + "io.input io.lines io.open io.output io.read " + "io.tmpfile io.type io.write io.stdin io.stdout " + "io.stderr os.clock os.date os.difftime os.execute " + "os.exit os.getenv os.remove os.rename os.setlocale " + "os.time os.tmpname"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerLua::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case LineComment: + return tr("Line comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case String: + return tr("String"); + + case Character: + return tr("Character"); + + case LiteralString: + return tr("Literal string"); + + case Preprocessor: + return tr("Preprocessor"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case UnclosedString: + return tr("Unclosed string"); + + case BasicFunctions: + return tr("Basic functions"); + + case StringTableMathsFunctions: + return tr("String, table and maths functions"); + + case CoroutinesIOSystemFacilities: + return tr("Coroutines, i/o and system facilities"); + + case KeywordSet5: + return tr("User defined 1"); + + case KeywordSet6: + return tr("User defined 2"); + + case KeywordSet7: + return tr("User defined 3"); + + case KeywordSet8: + return tr("User defined 4"); + + case Label: + return tr("Label"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerLua::defaultPaper(int style) const +{ + switch (style) + { + case Comment: + return QColor(0xd0,0xf0,0xf0); + + case LiteralString: + return QColor(0xe0,0xff,0xff); + + case UnclosedString: + return QColor(0xe0,0xc0,0xe0); + + case BasicFunctions: + return QColor(0xd0,0xff,0xd0); + + case StringTableMathsFunctions: + return QColor(0xd0,0xd0,0xff); + + case CoroutinesIOSystemFacilities: + return QColor(0xff,0xd0,0xd0); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerLua::refreshProperties() +{ + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerLua::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerLua::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcompact", fold_compact); + + return rc; +} + + +// Return true if folds are compact. +bool QsciLexerLua::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact. +void QsciLexerLua::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerLua::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexermakefile.cpp b/Qt4Qt5/qscilexermakefile.cpp new file mode 100644 index 0000000..0196fb0 --- /dev/null +++ b/Qt4Qt5/qscilexermakefile.cpp @@ -0,0 +1,163 @@ +// This module implements the QsciLexerMakefile class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexermakefile.h" + +#include +#include + + +// The ctor. +QsciLexerMakefile::QsciLexerMakefile(QObject *parent) + : QsciLexer(parent) +{ +} + + +// The dtor. +QsciLexerMakefile::~QsciLexerMakefile() +{ +} + + +// Returns the language name. +const char *QsciLexerMakefile::language() const +{ + return "Makefile"; +} + + +// Returns the lexer name. +const char *QsciLexerMakefile::lexer() const +{ + return "makefile"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerMakefile::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerMakefile::defaultColor(int style) const +{ + switch (style) + { + case Default: + case Operator: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Preprocessor: + return QColor(0x7f,0x7f,0x00); + + case Variable: + return QColor(0x00,0x00,0x80); + + case Target: + return QColor(0xa0,0x00,0x00); + + case Error: + return QColor(0xff,0xff,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerMakefile::defaultEolFill(int style) const +{ + if (style == Error) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerMakefile::defaultFont(int style) const +{ + QFont f; + + if (style == Comment) +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + else + f = QsciLexer::defaultFont(style); + + return f; +} + + +// Returns the user name of a style. +QString QsciLexerMakefile::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Preprocessor: + return tr("Preprocessor"); + + case Variable: + return tr("Variable"); + + case Operator: + return tr("Operator"); + + case Target: + return tr("Target"); + + case Error: + return tr("Error"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerMakefile::defaultPaper(int style) const +{ + if (style == Error) + return QColor(0xff,0x00,0x00); + + return QsciLexer::defaultPaper(style); +} diff --git a/Qt4Qt5/qscilexermatlab.cpp b/Qt4Qt5/qscilexermatlab.cpp new file mode 100644 index 0000000..7b46192 --- /dev/null +++ b/Qt4Qt5/qscilexermatlab.cpp @@ -0,0 +1,166 @@ +// This module implements the QsciLexerMatlab class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexermatlab.h" + +#include +#include + + +// The ctor. +QsciLexerMatlab::QsciLexerMatlab(QObject *parent) + : QsciLexer(parent) +{ +} + + +// The dtor. +QsciLexerMatlab::~QsciLexerMatlab() +{ +} + + +// Returns the language name. +const char *QsciLexerMatlab::language() const +{ + return "Matlab"; +} + + +// Returns the lexer name. +const char *QsciLexerMatlab::lexer() const +{ + return "matlab"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerMatlab::defaultColor(int style) const +{ + switch (style) + { + case Default: + case Operator: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Command: + return QColor(0x7f,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case SingleQuotedString: + case DoubleQuotedString: + return QColor(0x7f,0x00,0x7f); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerMatlab::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerMatlab::keywords(int set) const +{ + if (set == 1) + return + "break case catch continue else elseif end for function " + "global if otherwise persistent return switch try while"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerMatlab::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Command: + return tr("Command"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + } + + return QString(); +} diff --git a/Qt4Qt5/qscilexeroctave.cpp b/Qt4Qt5/qscilexeroctave.cpp new file mode 100644 index 0000000..f7af852 --- /dev/null +++ b/Qt4Qt5/qscilexeroctave.cpp @@ -0,0 +1,73 @@ +// This module implements the QsciLexerOctave class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexeroctave.h" + +#include +#include + + +// The ctor. +QsciLexerOctave::QsciLexerOctave(QObject *parent) + : QsciLexerMatlab(parent) +{ +} + + +// The dtor. +QsciLexerOctave::~QsciLexerOctave() +{ +} + + +// Returns the language name. +const char *QsciLexerOctave::language() const +{ + return "Octave"; +} + + +// Returns the lexer name. +const char *QsciLexerOctave::lexer() const +{ + return "octave"; +} + + +// Returns the set of keywords. +const char *QsciLexerOctave::keywords(int set) const +{ + if (set == 1) + return + "__FILE__ __LINE__ break case catch classdef continue do else " + "elseif end end_try_catch end_unwind_protect endclassdef " + "endenumeration endevents endfor endfunction endif endmethods " + "endparfor endproperties endswitch endwhile enumeration events " + "for function get global if methods otherwise parfor persistent " + "properties return set static switch try until unwind_protect " + "unwind_protect_cleanup while"; + + return 0; +} diff --git a/Qt4Qt5/qscilexerpascal.cpp b/Qt4Qt5/qscilexerpascal.cpp new file mode 100644 index 0000000..40656b7 --- /dev/null +++ b/Qt4Qt5/qscilexerpascal.cpp @@ -0,0 +1,437 @@ +// This module implements the QsciLexerPascal class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerpascal.h" + +#include +#include +#include + + +// The ctor. +QsciLexerPascal::QsciLexerPascal(QObject *parent) + : QsciLexer(parent), + fold_comments(false), fold_compact(true), fold_preproc(false), + smart_highlight(true) +{ +} + + +// The dtor. +QsciLexerPascal::~QsciLexerPascal() +{ +} + + +// Returns the language name. +const char *QsciLexerPascal::language() const +{ + return "Pascal"; +} + + +// Returns the lexer name. +const char *QsciLexerPascal::lexer() const +{ + return "pascal"; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerPascal::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "." << "^"; + + return wl; +} + + +// Return the list of keywords that can start a block. +const char *QsciLexerPascal::blockStartKeyword(int *style) const +{ + if (style) + *style = Keyword; + + return + "case class do else for then private protected public published " + "repeat try while type"; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerPascal::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "begin"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerPascal::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "end"; +} + + +// Return the style used for braces. +int QsciLexerPascal::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPascal::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Identifier: + break; + + case Comment: + case CommentParenthesis: + case CommentLine: + return QColor(0x00,0x7f,0x00); + + case PreProcessor: + case PreProcessorParenthesis: + return QColor(0x7f,0x7f,0x00); + + case Number: + case HexNumber: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case SingleQuotedString: + case Character: + return QColor(0x7f,0x00,0x7f); + + case UnclosedString: + case Operator: + return QColor(0x00,0x00,0x00); + + case Asm: + return QColor(0x80,0x40,0x80); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerPascal::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPascal::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentParenthesis: + case CommentLine: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case SingleQuotedString: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman", 11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter", 10); +#endif + f.setItalic(true); + break; + + case UnclosedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New", 10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono", 9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerPascal::defaultPaper(int style) const +{ + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Returns the set of keywords. +const char *QsciLexerPascal::keywords(int set) const +{ + if (set == 1) + return + "absolute abstract and array as asm assembler automated begin " + "case cdecl class const constructor delayed deprecated destructor " + "dispid dispinterface div do downto dynamic else end except " + "experimental export exports external far file final finalization " + "finally for forward function goto helper if implementation in " + "inherited initialization inline interface is label library " + "message mod near nil not object of on operator or out overload " + "override packed pascal platform private procedure program " + "property protected public published raise record reference " + "register reintroduce repeat resourcestring safecall sealed set " + "shl shr static stdcall strict string then threadvar to try type " + "unit unsafe until uses var varargs virtual while winapi with xor" + "add default implements index name nodefault read readonly remove " + "stored write writeonly" + "package contains requires"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerPascal::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Identifier: + return tr("Identifier"); + + case Comment: + return tr("'{ ... }' style comment"); + + case CommentParenthesis: + return tr("'(* ... *)' style comment"); + + case CommentLine: + return tr("Line comment"); + + case PreProcessor: + return tr("'{$ ... }' style pre-processor block"); + + case PreProcessorParenthesis: + return tr("'(*$ ... *)' style pre-processor block"); + + case Number: + return tr("Number"); + + case HexNumber: + return tr("Hexadecimal number"); + + case Keyword: + return tr("Keyword"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case UnclosedString: + return tr("Unclosed string"); + + case Character: + return tr("Character"); + + case Operator: + return tr("Operator"); + + case Asm: + return tr("Inline asm"); + } + + return QString(); +} + + +// Refresh all properties. +void QsciLexerPascal::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setPreprocProp(); + setSmartHighlightProp(); +} + + +// Read properties from the settings. +bool QsciLexerPascal::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + fold_preproc = qs.value(prefix + "foldpreprocessor", true).toBool(); + smart_highlight = qs.value(prefix + "smarthighlight", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPascal::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "foldpreprocessor", fold_preproc); + qs.setValue(prefix + "smarthighlight", smart_highlight); + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerPascal::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerPascal::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerPascal::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerPascal::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerPascal::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPascal::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if preprocessor blocks can be folded. +bool QsciLexerPascal::foldPreprocessor() const +{ + return fold_preproc; +} + + +// Set if preprocessor blocks can be folded. +void QsciLexerPascal::setFoldPreprocessor(bool fold) +{ + fold_preproc = fold; + + setPreprocProp(); +} + + +// Set the "fold.preprocessor" property. +void QsciLexerPascal::setPreprocProp() +{ + emit propertyChanged("fold.preprocessor",(fold_preproc ? "1" : "0")); +} + + +// Return true if smart highlighting is enabled. +bool QsciLexerPascal::smartHighlighting() const +{ + return smart_highlight; +} + + +// Set if smart highlighting is enabled. +void QsciLexerPascal::setSmartHighlighting(bool enabled) +{ + smart_highlight = enabled; + + setSmartHighlightProp(); +} + + +// Set the "lexer.pascal.smart.highlighting" property. +void QsciLexerPascal::setSmartHighlightProp() +{ + emit propertyChanged("lexer.pascal.smart.highlighting", (smart_highlight ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerperl.cpp b/Qt4Qt5/qscilexerperl.cpp new file mode 100644 index 0000000..a142529 --- /dev/null +++ b/Qt4Qt5/qscilexerperl.cpp @@ -0,0 +1,663 @@ +// This module implements the QsciLexerPerl class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerperl.h" + +#include +#include +#include + + +// The ctor. +QsciLexerPerl::QsciLexerPerl(QObject *parent) + : QsciLexer(parent), + fold_atelse(false), fold_comments(false), fold_compact(true), + fold_packages(true), fold_pod_blocks(true) +{ +} + + +// The dtor. +QsciLexerPerl::~QsciLexerPerl() +{ +} + + +// Returns the language name. +const char *QsciLexerPerl::language() const +{ + return "Perl"; +} + + +// Returns the lexer name. +const char *QsciLexerPerl::lexer() const +{ + return "perl"; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerPerl::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "::" << "->"; + + return wl; +} + + +// Return the list of characters that can start a block. +const char *QsciLexerPerl::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return "{"; +} + + +// Return the list of characters that can end a block. +const char *QsciLexerPerl::blockEnd(int *style) const +{ + if (style) + *style = Operator; + + return "}"; +} + + +// Return the style used for braces. +int QsciLexerPerl::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerPerl::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$@%&"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPerl::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Error: + case Backticks: + case QuotedStringQX: + return QColor(0xff,0xff,0x00); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case POD: + case PODVerbatim: + return QColor(0x00,0x40,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + case SingleQuotedHereDocument: + case DoubleQuotedHereDocument: + case BacktickHereDocument: + case QuotedStringQ: + case QuotedStringQQ: + return QColor(0x7f,0x00,0x7f); + + case Operator: + case Identifier: + case Scalar: + case Array: + case Hash: + case SymbolTable: + case Regex: + case Substitution: + case HereDocumentDelimiter: + case QuotedStringQR: + case QuotedStringQW: + case SubroutinePrototype: + case Translation: + return QColor(0x00,0x00,0x00); + + case DataSection: + return QColor(0x60,0x00,0x00); + + case FormatIdentifier: + case FormatBody: + return QColor(0xc0,0x00,0xc0); + + case DoubleQuotedStringVar: + case RegexVar: + case SubstitutionVar: + case BackticksVar: + case DoubleQuotedHereDocumentVar: + case BacktickHereDocumentVar: + case QuotedStringQQVar: + case QuotedStringQXVar: + case QuotedStringQRVar: + return QColor(0xd0, 0x00, 0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerPerl::defaultEolFill(int style) const +{ + switch (style) + { + case POD: + case DataSection: + case SingleQuotedHereDocument: + case DoubleQuotedHereDocument: + case BacktickHereDocument: + case PODVerbatim: + case FormatBody: + case DoubleQuotedHereDocumentVar: + case BacktickHereDocumentVar: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPerl::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case POD: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman",11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter",10); +#endif + break; + + case Keyword: + case Operator: + case DoubleQuotedHereDocument: + case FormatIdentifier: + case RegexVar: + case SubstitutionVar: + case BackticksVar: + case DoubleQuotedHereDocumentVar: + case BacktickHereDocumentVar: + case QuotedStringQXVar: + case QuotedStringQRVar: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DoubleQuotedString: + case SingleQuotedString: + case QuotedStringQQ: + case PODVerbatim: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + case BacktickHereDocument: + case SubroutinePrototype: + f = QsciLexer::defaultFont(style); + f.setItalic(true); + break; + + case DoubleQuotedStringVar: + case QuotedStringQQVar: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerPerl::keywords(int set) const +{ + if (set == 1) + return + "NULL __FILE__ __LINE__ __PACKAGE__ __DATA__ __END__ " + "AUTOLOAD BEGIN CORE DESTROY END EQ GE GT INIT LE LT " + "NE CHECK abs accept alarm and atan2 bind binmode " + "bless caller chdir chmod chomp chop chown chr chroot " + "close closedir cmp connect continue cos crypt " + "dbmclose dbmopen defined delete die do dump each " + "else elsif endgrent endhostent endnetent endprotoent " + "endpwent endservent eof eq eval exec exists exit exp " + "fcntl fileno flock for foreach fork format formline " + "ge getc getgrent getgrgid getgrnam gethostbyaddr " + "gethostbyname gethostent getlogin getnetbyaddr " + "getnetbyname getnetent getpeername getpgrp getppid " + "getpriority getprotobyname getprotobynumber " + "getprotoent getpwent getpwnam getpwuid getservbyname " + "getservbyport getservent getsockname getsockopt glob " + "gmtime goto grep gt hex if index int ioctl join keys " + "kill last lc lcfirst le length link listen local " + "localtime lock log lstat lt m map mkdir msgctl " + "msgget msgrcv msgsnd my ne next no not oct open " + "opendir or ord our pack package pipe pop pos print " + "printf prototype push q qq qr quotemeta qu qw qx " + "rand read readdir readline readlink readpipe recv " + "redo ref rename require reset return reverse " + "rewinddir rindex rmdir s scalar seek seekdir select " + "semctl semget semop send setgrent sethostent " + "setnetent setpgrp setpriority setprotoent setpwent " + "setservent setsockopt shift shmctl shmget shmread " + "shmwrite shutdown sin sleep socket socketpair sort " + "splice split sprintf sqrt srand stat study sub " + "substr symlink syscall sysopen sysread sysseek " + "system syswrite tell telldir tie tied time times tr " + "truncate uc ucfirst umask undef unless unlink unpack " + "unshift untie until use utime values vec wait " + "waitpid wantarray warn while write x xor y"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerPerl::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Error: + return tr("Error"); + + case Comment: + return tr("Comment"); + + case POD: + return tr("POD"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case Scalar: + return tr("Scalar"); + + case Array: + return tr("Array"); + + case Hash: + return tr("Hash"); + + case SymbolTable: + return tr("Symbol table"); + + case Regex: + return tr("Regular expression"); + + case Substitution: + return tr("Substitution"); + + case Backticks: + return tr("Backticks"); + + case DataSection: + return tr("Data section"); + + case HereDocumentDelimiter: + return tr("Here document delimiter"); + + case SingleQuotedHereDocument: + return tr("Single-quoted here document"); + + case DoubleQuotedHereDocument: + return tr("Double-quoted here document"); + + case BacktickHereDocument: + return tr("Backtick here document"); + + case QuotedStringQ: + return tr("Quoted string (q)"); + + case QuotedStringQQ: + return tr("Quoted string (qq)"); + + case QuotedStringQX: + return tr("Quoted string (qx)"); + + case QuotedStringQR: + return tr("Quoted string (qr)"); + + case QuotedStringQW: + return tr("Quoted string (qw)"); + + case PODVerbatim: + return tr("POD verbatim"); + + case SubroutinePrototype: + return tr("Subroutine prototype"); + + case FormatIdentifier: + return tr("Format identifier"); + + case FormatBody: + return tr("Format body"); + + case DoubleQuotedStringVar: + return tr("Double-quoted string (interpolated variable)"); + + case Translation: + return tr("Translation"); + + case RegexVar: + return tr("Regular expression (interpolated variable)"); + + case SubstitutionVar: + return tr("Substitution (interpolated variable)"); + + case BackticksVar: + return tr("Backticks (interpolated variable)"); + + case DoubleQuotedHereDocumentVar: + return tr("Double-quoted here document (interpolated variable)"); + + case BacktickHereDocumentVar: + return tr("Backtick here document (interpolated variable)"); + + case QuotedStringQQVar: + return tr("Quoted string (qq, interpolated variable)"); + + case QuotedStringQXVar: + return tr("Quoted string (qx, interpolated variable)"); + + case QuotedStringQRVar: + return tr("Quoted string (qr, interpolated variable)"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerPerl::defaultPaper(int style) const +{ + switch (style) + { + case Error: + return QColor(0xff,0x00,0x00); + + case POD: + return QColor(0xe0,0xff,0xe0); + + case Scalar: + return QColor(0xff,0xe0,0xe0); + + case Array: + return QColor(0xff,0xff,0xe0); + + case Hash: + return QColor(0xff,0xe0,0xff); + + case SymbolTable: + return QColor(0xe0,0xe0,0xe0); + + case Regex: + return QColor(0xa0,0xff,0xa0); + + case Substitution: + case Translation: + return QColor(0xf0,0xe0,0x80); + + case Backticks: + case BackticksVar: + case QuotedStringQXVar: + return QColor(0xa0,0x80,0x80); + + case DataSection: + return QColor(0xff,0xf0,0xd8); + + case HereDocumentDelimiter: + case SingleQuotedHereDocument: + case DoubleQuotedHereDocument: + case BacktickHereDocument: + case DoubleQuotedHereDocumentVar: + case BacktickHereDocumentVar: + return QColor(0xdd,0xd0,0xdd); + + case PODVerbatim: + return QColor(0xc0,0xff,0xc0); + + case FormatBody: + return QColor(0xff,0xf0,0xff); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerPerl::refreshProperties() +{ + setAtElseProp(); + setCommentProp(); + setCompactProp(); + setPackagesProp(); + setPODBlocksProp(); +} + + +// Read properties from the settings. +bool QsciLexerPerl::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_atelse = qs.value(prefix + "foldatelse", false).toBool(); + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + fold_packages = qs.value(prefix + "foldpackages", true).toBool(); + fold_pod_blocks = qs.value(prefix + "foldpodblocks", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPerl::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldatelse", fold_atelse); + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "foldpackages", fold_packages); + qs.setValue(prefix + "foldpodblocks", fold_pod_blocks); + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerPerl::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerPerl::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerPerl::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerPerl::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerPerl::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPerl::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if packages can be folded. +bool QsciLexerPerl::foldPackages() const +{ + return fold_packages; +} + + +// Set if packages can be folded. +void QsciLexerPerl::setFoldPackages(bool fold) +{ + fold_packages = fold; + + setPackagesProp(); +} + + +// Set the "fold.perl.package" property. +void QsciLexerPerl::setPackagesProp() +{ + emit propertyChanged("fold.perl.package",(fold_packages ? "1" : "0")); +} + + +// Return true if POD blocks can be folded. +bool QsciLexerPerl::foldPODBlocks() const +{ + return fold_pod_blocks; +} + + +// Set if POD blocks can be folded. +void QsciLexerPerl::setFoldPODBlocks(bool fold) +{ + fold_pod_blocks = fold; + + setPODBlocksProp(); +} + + +// Set the "fold.perl.pod" property. +void QsciLexerPerl::setPODBlocksProp() +{ + emit propertyChanged("fold.perl.pod",(fold_pod_blocks ? "1" : "0")); +} + + +// Set if else can be folded. +void QsciLexerPerl::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.perl.at.else" property. +void QsciLexerPerl::setAtElseProp() +{ + emit propertyChanged("fold.perl.at.else",(fold_atelse ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerpo.cpp b/Qt4Qt5/qscilexerpo.cpp new file mode 100644 index 0000000..834ff33 --- /dev/null +++ b/Qt4Qt5/qscilexerpo.cpp @@ -0,0 +1,229 @@ +// This module implements the QsciLexerPO class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerpo.h" + +#include +#include +#include + + +// The ctor. +QsciLexerPO::QsciLexerPO(QObject *parent) + : QsciLexer(parent), + fold_comments(false), fold_compact(true) +{ +} + + +// The dtor. +QsciLexerPO::~QsciLexerPO() +{ +} + + +// Returns the language name. +const char *QsciLexerPO::language() const +{ + return "PO"; +} + + +// Returns the lexer name. +const char *QsciLexerPO::lexer() const +{ + return "po"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPO::defaultColor(int style) const +{ + switch (style) + { + case Comment: + return QColor(0x00, 0x7f, 0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPO::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS", 9); +#elif defined(Q_OS_MAC) + f = QFont("Georgia", 13); +#else + f = QFont("Bitstream Vera Serif", 9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the user name of a style. +QString QsciLexerPO::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case MessageId: + return tr("Message identifier"); + + case MessageIdText: + return tr("Message identifier text"); + + case MessageString: + return tr("Message string"); + + case MessageStringText: + return tr("Message string text"); + + case MessageContext: + return tr("Message context"); + + case MessageContextText: + return tr("Message context text"); + + case Fuzzy: + return tr("Fuzzy flag"); + + case ProgrammerComment: + return tr("Programmer comment"); + + case Reference: + return tr("Reference"); + + case Flags: + return tr("Flags"); + + case MessageIdTextEOL: + return tr("Message identifier text end-of-line"); + + case MessageStringTextEOL: + return tr("Message string text end-of-line"); + + case MessageContextTextEOL: + return tr("Message context text end-of-line"); + } + + return QString(); +} + + +// Refresh all properties. +void QsciLexerPO::refreshProperties() +{ + setCommentProp(); + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerPO::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPO::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerPO::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerPO::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerPO::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerPO::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerPO::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPO::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerpostscript.cpp b/Qt4Qt5/qscilexerpostscript.cpp new file mode 100644 index 0000000..05c8d77 --- /dev/null +++ b/Qt4Qt5/qscilexerpostscript.cpp @@ -0,0 +1,453 @@ +// This module implements the QsciLexerPostScript class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerpostscript.h" + +#include +#include +#include + + +// The ctor. +QsciLexerPostScript::QsciLexerPostScript(QObject *parent) + : QsciLexer(parent), + ps_tokenize(false), ps_level(3), fold_compact(true), fold_atelse(false) +{ +} + + +// The dtor. +QsciLexerPostScript::~QsciLexerPostScript() +{ +} + + +// Returns the language name. +const char *QsciLexerPostScript::language() const +{ + return "PostScript"; +} + + +// Returns the lexer name. +const char *QsciLexerPostScript::lexer() const +{ + return "ps"; +} + + +// Return the style used for braces. +int QsciLexerPostScript::braceStyle() const +{ + return ProcedureParenthesis; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPostScript::defaultColor(int style) const +{ + switch (style) + { + case Comment: + return QColor(0x00,0x7f,0x00); + + case DSCComment: + return QColor(0x3f,0x70,0x3f); + + case DSCCommentValue: + case DictionaryParenthesis: + return QColor(0x30,0x60,0xa0); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Name: + case ProcedureParenthesis: + return QColor(0x00,0x00,0x00); + + case Keyword: + case ArrayParenthesis: + return QColor(0x00,0x00,0x7f); + + case Literal: + case ImmediateEvalLiteral: + return QColor(0x7f,0x7f,0x00); + + case Text: + case Base85String: + return QColor(0x7f,0x00,0x7f); + + case HexString: + return QColor(0x3f,0x7f,0x3f); + + case BadStringCharacter: + return QColor(0xff,0xff,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPostScript::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case DSCComment: + case DSCCommentValue: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case ProcedureParenthesis: + f = QsciLexer::defaultFont(style); + f.setBold(true); + + case Text: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman", 11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter", 10); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerPostScript::keywords(int set) const +{ + if (set == 1) + return + "$error = == FontDirectory StandardEncoding UserObjects abs add " + "aload anchorsearch and arc arcn arcto array ashow astore atan " + "awidthshow begin bind bitshift bytesavailable cachestatus " + "ceiling charpath clear cleardictstack cleartomark clip clippath " + "closefile closepath concat concatmatrix copy copypage cos count " + "countdictstack countexecstack counttomark currentcmykcolor " + "currentcolorspace currentdash currentdict currentfile " + "currentflat currentfont currentgray currenthsbcolor " + "currentlinecap currentlinejoin currentlinewidth currentmatrix " + "currentmiterlimit currentpagedevice currentpoint currentrgbcolor " + "currentscreen currenttransfer cvi cvlit cvn cvr cvrs cvs cvx def " + "defaultmatrix definefont dict dictstack div dtransform dup echo " + "end eoclip eofill eq erasepage errordict exch exec execstack " + "executeonly executive exit exp false file fill findfont " + "flattenpath floor flush flushfile for forall ge get getinterval " + "grestore grestoreall gsave gt idetmatrix idiv idtransform if " + "ifelse image imagemask index initclip initgraphics initmatrix " + "inustroke invertmatrix itransform known kshow le length lineto " + "ln load log loop lt makefont mark matrix maxlength mod moveto " + "mul ne neg newpath noaccess nor not null nulldevice or pathbbox " + "pathforall pop print prompt pstack put putinterval quit rand " + "rcheck rcurveto read readhexstring readline readonly readstring " + "rectstroke repeat resetfile restore reversepath rlineto rmoveto " + "roll rotate round rrand run save scale scalefont search " + "setblackgeneration setcachedevice setcachelimit setcharwidth " + "setcolorscreen setcolortransfer setdash setflat setfont setgray " + "sethsbcolor setlinecap setlinejoin setlinewidth setmatrix " + "setmiterlimit setpagedevice setrgbcolor setscreen settransfer " + "setvmthreshold show showpage sin sqrt srand stack start status " + "statusdict stop stopped store string stringwidth stroke " + "strokepath sub systemdict token token transform translate true " + "truncate type ueofill undefineresource userdict usertime version " + "vmstatus wcheck where widthshow write writehexstring writestring " + "xcheck xor"; + + if (set == 2) + return + "GlobalFontDirectory ISOLatin1Encoding SharedFontDirectory " + "UserObject arct colorimage cshow currentblackgeneration " + "currentcacheparams currentcmykcolor currentcolor " + "currentcolorrendering currentcolorscreen currentcolorspace " + "currentcolortransfer currentdevparams currentglobal " + "currentgstate currenthalftone currentobjectformat " + "currentoverprint currentpacking currentpagedevice currentshared " + "currentstrokeadjust currentsystemparams currentundercolorremoval " + "currentuserparams defineresource defineuserobject deletefile " + "execform execuserobject filenameforall fileposition filter " + "findencoding findresource gcheck globaldict glyphshow gstate " + "ineofill infill instroke inueofill inufill inustroke " + "languagelevel makepattern packedarray printobject product " + "realtime rectclip rectfill rectstroke renamefile resourceforall " + "resourcestatus revision rootfont scheck selectfont serialnumber " + "setbbox setblackgeneration setcachedevice2 setcacheparams " + "setcmykcolor setcolor setcolorrendering setcolorscreen " + "setcolorspace setcolortranfer setdevparams setfileposition " + "setglobal setgstate sethalftone setobjectformat setoverprint " + "setpacking setpagedevice setpattern setshared setstrokeadjust " + "setsystemparams setucacheparams setundercolorremoval " + "setuserparams setvmthreshold shareddict startjob uappend ucache " + "ucachestatus ueofill ufill undef undefinefont undefineresource " + "undefineuserobject upath ustroke ustrokepath vmreclaim " + "writeobject xshow xyshow yshow"; + + if (set == 3) + return + "cliprestore clipsave composefont currentsmoothness " + "findcolorrendering setsmoothness shfill"; + + if (set == 4) + return + ".begintransparencygroup .begintransparencymask .bytestring " + ".charboxpath .currentaccuratecurves .currentblendmode " + ".currentcurvejoin .currentdashadapt .currentdotlength " + ".currentfilladjust2 .currentlimitclamp .currentopacityalpha " + ".currentoverprintmode .currentrasterop .currentshapealpha " + ".currentsourcetransparent .currenttextknockout " + ".currenttexturetransparent .dashpath .dicttomark " + ".discardtransparencygroup .discardtransparencymask " + ".endtransparencygroup .endtransparencymask .execn .filename " + ".filename .fileposition .forceput .forceundef .forgetsave " + ".getbitsrect .getdevice .inittransparencymask .knownget " + ".locksafe .makeoperator .namestring .oserrno .oserrorstring " + ".peekstring .rectappend .runandhide .setaccuratecurves " + ".setblendmode .setcurvejoin .setdashadapt .setdebug " + ".setdefaultmatrix .setdotlength .setfilladjust2 .setlimitclamp " + ".setmaxlength .setopacityalpha .setoverprintmode .setrasterop " + ".setsafe .setshapealpha .setsourcetransparent .settextknockout " + ".settexturetransparent .stringbreak .stringmatch .tempfile " + ".type1decrypt .type1encrypt .type1execchar .unread arccos " + "arcsin copydevice copyscanlines currentdevice finddevice " + "findlibfile findprotodevice flushpage getdeviceprops getenv " + "makeimagedevice makewordimagedevice max min putdeviceprops " + "setdevice"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerPostScript::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case DSCComment: + return tr("DSC comment"); + + case DSCCommentValue: + return tr("DSC comment value"); + + case Number: + return tr("Number"); + + case Name: + return tr("Name"); + + case Keyword: + return tr("Keyword"); + + case Literal: + return tr("Literal"); + + case ImmediateEvalLiteral: + return tr("Immediately evaluated literal"); + + case ArrayParenthesis: + return tr("Array parenthesis"); + + case DictionaryParenthesis: + return tr("Dictionary parenthesis"); + + case ProcedureParenthesis: + return tr("Procedure parenthesis"); + + case Text: + return tr("Text"); + + case HexString: + return tr("Hexadecimal string"); + + case Base85String: + return tr("Base85 string"); + + case BadStringCharacter: + return tr("Bad string character"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerPostScript::defaultPaper(int style) const +{ + if (style == BadStringCharacter) + return QColor(0xff,0x00,0x00); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerPostScript::refreshProperties() +{ + setTokenizeProp(); + setLevelProp(); + setCompactProp(); + setAtElseProp(); +} + + +// Read properties from the settings. +bool QsciLexerPostScript::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + ps_tokenize = qs.value(prefix + "pstokenize", false).toBool(); + ps_level = qs.value(prefix + "pslevel", 3).toInt(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + fold_atelse = qs.value(prefix + "foldatelse", false).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPostScript::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "pstokenize", ps_tokenize); + qs.setValue(prefix + "pslevel", ps_level); + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "foldatelse", fold_atelse); + + return rc; +} + + +// Return true if tokens are marked. +bool QsciLexerPostScript::tokenize() const +{ + return ps_tokenize; +} + + +// Set if tokens are marked. +void QsciLexerPostScript::setTokenize(bool tokenize) +{ + ps_tokenize = tokenize; + + setTokenizeProp(); +} + + +// Set the "ps.tokenize" property. +void QsciLexerPostScript::setTokenizeProp() +{ + emit propertyChanged("ps.tokenize",(ps_tokenize ? "1" : "0")); +} + + +// Return the PostScript level. +int QsciLexerPostScript::level() const +{ + return ps_level; +} + + +// Set the PostScript level. +void QsciLexerPostScript::setLevel(int level) +{ + ps_level = level; + + setLevelProp(); +} + + +// Set the "ps.level" property. +void QsciLexerPostScript::setLevelProp() +{ + emit propertyChanged("ps.level", QByteArray::number(ps_level)); +} + + +// Return true if folds are compact. +bool QsciLexerPostScript::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerPostScript::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPostScript::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if else blocks can be folded. +bool QsciLexerPostScript::foldAtElse() const +{ + return fold_atelse; +} + + +// Set if else blocks can be folded. +void QsciLexerPostScript::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerPostScript::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerpov.cpp b/Qt4Qt5/qscilexerpov.cpp new file mode 100644 index 0000000..7ce9492 --- /dev/null +++ b/Qt4Qt5/qscilexerpov.cpp @@ -0,0 +1,469 @@ +// This module implements the QsciLexerPOV class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerpov.h" + +#include +#include +#include + + +// The ctor. +QsciLexerPOV::QsciLexerPOV(QObject *parent) + : QsciLexer(parent), + fold_comments(false), fold_compact(true), fold_directives(false) +{ +} + + +// The dtor. +QsciLexerPOV::~QsciLexerPOV() +{ +} + + +// Returns the language name. +const char *QsciLexerPOV::language() const +{ + return "POV"; +} + + +// Returns the lexer name. +const char *QsciLexerPOV::lexer() const +{ + return "pov"; +} + + +// Return the style used for braces. +int QsciLexerPOV::braceStyle() const +{ + return Operator; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerPOV::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPOV::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0xff,0x00,0x80); + + case Comment: + case CommentLine: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Operator: + return QColor(0x00,0x00,0x00); + + case String: + return QColor(0x7f,0x00,0x7f); + + case Directive: + return QColor(0x7f,0x7f,0x00); + + case BadDirective: + return QColor(0x80,0x40,0x20); + + case ObjectsCSGAppearance: + case TypesModifiersItems: + case PredefinedIdentifiers: + case PredefinedFunctions: + case KeywordSet6: + case KeywordSet7: + case KeywordSet8: + return QColor(0x00,0x00,0x7f); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerPOV::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPOV::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case UnclosedString: + case PredefinedIdentifiers: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case BadDirective: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + f.setItalic(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerPOV::keywords(int set) const +{ + if (set == 1) + return + "declare local include undef fopen fclose read write " + "default version case range break debug error " + "warning if ifdef ifndef switch while macro else end"; + + if (set == 2) + return + "camera light_source light_group object blob sphere " + "cylinder box cone height_field julia_fractal lathe " + "prism sphere_sweep superellipsoid sor text torus " + "bicubic_patch disc mesh mesh2 polygon triangle " + "smooth_triangle plane poly cubic quartic quadric " + "isosurface parametric union intersection difference " + "merge function array spline vertex_vectors " + "normal_vectors uv_vectors face_indices " + "normal_indices uv_indices texture texture_list " + "interior_texture texture_map material_map image_map " + "color_map colour_map pigment_map normal_map " + "slope_map bump_map density_map pigment normal " + "material interior finish reflection irid slope " + "pigment_pattern image_pattern warp media scattering " + "density background fog sky_sphere rainbow " + "global_settings radiosity photons pattern transform " + "looks_like projected_through contained_by " + "clipped_by bounded_by"; + + if (set == 3) + return + "linear_spline quadratic_spline cubic_spline " + "natural_spline bezier_spline b_spline read write " + "append inverse open perspective orthographic " + "fisheye ultra_wide_angle omnimax panoramic " + "spherical spotlight jitter circular orient " + "media_attenuation media_interaction shadowless " + "parallel refraction collect pass_through " + "global_lights hierarchy sturm smooth gif tga iff " + "pot png pgm ppm jpeg tiff sys ttf quaternion " + "hypercomplex linear_sweep conic_sweep type " + "all_intersections split_union cutaway_textures " + "no_shadow no_image no_reflection double_illuminate " + "hollow uv_mapping all use_index use_color " + "use_colour no_bump_scale conserve_energy fresnel " + "average agate boxed bozo bumps cells crackle " + "cylindrical density_file dents facets granite " + "leopard marble onion planar quilted radial ripples " + "spotted waves wood wrinkles solid use_alpha " + "interpolate magnet noise_generator toroidal " + "ramp_wave triangle_wave sine_wave scallop_wave " + "cubic_wave poly_wave once map_type method fog_type " + "hf_gray_16 charset ascii utf8 rotate scale " + "translate matrix location right up direction sky " + "angle look_at aperture blur_samples focal_point " + "confidence variance radius falloff tightness " + "point_at area_light adaptive fade_distance " + "fade_power threshold strength water_level tolerance " + "max_iteration precision slice u_steps v_steps " + "flatness inside_vector accuracy max_gradient " + "evaluate max_trace precompute target ior dispersion " + "dispersion_samples caustics color colour rgb rgbf " + "rgbt rgbft red green blue filter transmit gray hf " + "fade_color fade_colour quick_color quick_colour " + "brick checker hexagon brick_size mortar bump_size " + "ambient diffuse brilliance crand phong phong_size " + "metallic specular roughness reflection_exponent " + "exponent thickness gradient spiral1 spiral2 " + "agate_turb form metric offset df3 coords size " + "mandel exterior julia control0 control1 altitude " + "turbulence octaves omega lambda repeat flip " + "black-hole orientation dist_exp major_radius " + "frequency phase intervals samples ratio absorption " + "emission aa_threshold aa_level eccentricity " + "extinction distance turb_depth fog_offset fog_alt " + "width arc_angle falloff_angle adc_bailout " + "ambient_light assumed_gamma irid_wavelength " + "number_of_waves always_sample brigthness count " + "error_bound gray_threshold load_file " + "low_error_factor max_sample minimum_reuse " + "nearest_count pretrace_end pretrace_start " + "recursion_limit save_file spacing gather " + "max_trace_level autostop expand_thresholds"; + + if (set == 4) + return + "x y z t u v yes no true false on off clock " + "clock_delta clock_on final_clock final_frame " + "frame_number image_height image_width initial_clock " + "initial_frame pi version"; + + if (set == 5) + return + "abs acos acosh asc asin asinh atan atanh atan2 ceil " + "cos cosh defined degrees dimensions dimension_size " + "div exp file_exists floor inside int ln log max min " + "mod pow prod radians rand seed select sin sinh sqrt " + "strcmp strlen sum tan tanh val vdot vlength " + "min_extent max_extent trace vaxis_rotate vcross " + "vrotate vnormalize vturbulence chr concat str " + "strlwr strupr substr vstr sqr cube reciprocal pwr"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerPOV::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case CommentLine: + return tr("Comment line"); + + case Number: + return tr("Number"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case String: + return tr("String"); + + case UnclosedString: + return tr("Unclosed string"); + + case Directive: + return tr("Directive"); + + case BadDirective: + return tr("Bad directive"); + + case ObjectsCSGAppearance: + return tr("Objects, CSG and appearance"); + + case TypesModifiersItems: + return tr("Types, modifiers and items"); + + case PredefinedIdentifiers: + return tr("Predefined identifiers"); + + case PredefinedFunctions: + return tr("Predefined functions"); + + case KeywordSet6: + return tr("User defined 1"); + + case KeywordSet7: + return tr("User defined 2"); + + case KeywordSet8: + return tr("User defined 3"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerPOV::defaultPaper(int style) const +{ + switch (style) + { + case UnclosedString: + return QColor(0xe0,0xc0,0xe0); + + case ObjectsCSGAppearance: + return QColor(0xff,0xd0,0xd0); + + case TypesModifiersItems: + return QColor(0xff,0xff,0xd0); + + case PredefinedFunctions: + return QColor(0xd0,0xd0,0xff); + + case KeywordSet6: + return QColor(0xd0,0xff,0xd0); + + case KeywordSet7: + return QColor(0xd0,0xd0,0xd0); + + case KeywordSet8: + return QColor(0xe0,0xe0,0xe0); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerPOV::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setDirectiveProp(); +} + + +// Read properties from the settings. +bool QsciLexerPOV::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + fold_directives = qs.value(prefix + "folddirectives", false).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPOV::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "folddirectives", fold_directives); + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerPOV::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerPOV::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerPOV::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerPOV::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerPOV::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPOV::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if directives can be folded. +bool QsciLexerPOV::foldDirectives() const +{ + return fold_directives; +} + + +// Set if directives can be folded. +void QsciLexerPOV::setFoldDirectives(bool fold) +{ + fold_directives = fold; + + setDirectiveProp(); +} + + +// Set the "fold.directive" property. +void QsciLexerPOV::setDirectiveProp() +{ + emit propertyChanged("fold.directive",(fold_directives ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerproperties.cpp b/Qt4Qt5/qscilexerproperties.cpp new file mode 100644 index 0000000..84e26ac --- /dev/null +++ b/Qt4Qt5/qscilexerproperties.cpp @@ -0,0 +1,219 @@ +// This module implements the QsciLexerProperties class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerproperties.h" + +#include +#include +#include + + +// The ctor. +QsciLexerProperties::QsciLexerProperties(QObject *parent) + : QsciLexer(parent), + fold_compact(true), initial_spaces(true) +{ +} + + +// The dtor. +QsciLexerProperties::~QsciLexerProperties() +{ +} + + +// Returns the language name. +const char *QsciLexerProperties::language() const +{ + return "Properties"; +} + + +// Returns the lexer name. +const char *QsciLexerProperties::lexer() const +{ + return "props"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerProperties::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerProperties::defaultColor(int style) const +{ + switch (style) + { + case Comment: + return QColor(0x00,0x7f,0x7f); + + case Section: + return QColor(0x7f,0x00,0x7f); + + case Assignment: + return QColor(0xb0,0x60,0x00); + + case DefaultValue: + return QColor(0x7f,0x7f,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerProperties::defaultEolFill(int style) const +{ + if (style == Section) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerProperties::defaultFont(int style) const +{ + QFont f; + + if (style == Comment) +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + else + f = QsciLexer::defaultFont(style); + + return f; +} + + +// Returns the user name of a style. +QString QsciLexerProperties::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Section: + return tr("Section"); + + case Assignment: + return tr("Assignment"); + + case DefaultValue: + return tr("Default value"); + + case Key: + return tr("Key"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerProperties::defaultPaper(int style) const +{ + if (style == Section) + return QColor(0xe0,0xf0,0xf0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerProperties::refreshProperties() +{ + setCompactProp(); + setInitialSpacesProp(); +} + + +// Read properties from the settings. +bool QsciLexerProperties::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + initial_spaces = qs.value(prefix + "initialspaces", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerProperties::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "initialspaces", initial_spaces); + + return rc; +} + + +// Set if folds are compact +void QsciLexerProperties::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerProperties::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} + + +// Set if initial spaces are allowed. +void QsciLexerProperties::setInitialSpaces(bool enable) +{ + initial_spaces = enable; + + setInitialSpacesProp(); +} + + +// Set the "lexer.props.allow.initial.spaces" property. +void QsciLexerProperties::setInitialSpacesProp() +{ + emit propertyChanged("lexer.props.allow.initial.spaces", (fold_compact ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerpython.cpp b/Qt4Qt5/qscilexerpython.cpp new file mode 100644 index 0000000..0a39723 --- /dev/null +++ b/Qt4Qt5/qscilexerpython.cpp @@ -0,0 +1,494 @@ +// This module implements the QsciLexerPython class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerpython.h" + +#include +#include +#include + + +// The list of Python keywords that can be used by other friendly lexers. +const char *QsciLexerPython::keywordClass = + "and as assert break class continue def del elif else except exec " + "finally for from global if import in is lambda None not or pass " + "print raise return try while with yield"; + + +// The ctor. +QsciLexerPython::QsciLexerPython(QObject *parent) + : QsciLexer(parent), + fold_comments(false), fold_compact(true), fold_quotes(false), + indent_warn(NoWarning), strings_over_newline(false), v2_unicode(true), + v3_binary_octal(true), v3_bytes(true), highlight_subids(true) +{ +} + + +// The dtor. +QsciLexerPython::~QsciLexerPython() +{ +} + + +// Returns the language name. +const char *QsciLexerPython::language() const +{ + return "Python"; +} + + +// Returns the lexer name. +const char *QsciLexerPython::lexer() const +{ + return "python"; +} + + +// Return the view used for indentation guides. +int QsciLexerPython::indentationGuideView() const +{ + return QsciScintillaBase::SC_IV_LOOKFORWARD; +} + + +// Return the set of character sequences that can separate auto-completion +// words. +QStringList QsciLexerPython::autoCompletionWordSeparators() const +{ + QStringList wl; + + wl << "."; + + return wl; +} + +// Return the list of characters that can start a block. +const char *QsciLexerPython::blockStart(int *style) const +{ + if (style) + *style = Operator; + + return ":"; +} + + +// Return the number of lines to look back when auto-indenting. +int QsciLexerPython::blockLookback() const +{ + // This must be 0 otherwise de-indenting a Python block gets very + // difficult. + return 0; +} + + +// Return the style used for braces. +int QsciLexerPython::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerPython::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + return QColor(0x7f,0x00,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case TripleSingleQuotedString: + case TripleDoubleQuotedString: + return QColor(0x7f,0x00,0x00); + + case ClassName: + return QColor(0x00,0x00,0xff); + + case FunctionMethodName: + return QColor(0x00,0x7f,0x7f); + + case Operator: + case Identifier: + break; + + case CommentBlock: + return QColor(0x7f,0x7f,0x7f); + + case UnclosedString: + return QColor(0x00,0x00,0x00); + + case HighlightedIdentifier: + return QColor(0x40,0x70,0x90); + + case Decorator: + return QColor(0x80,0x50,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerPython::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerPython::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case DoubleQuotedString: + case SingleQuotedString: + case UnclosedString: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + case Keyword: + case ClassName: + case FunctionMethodName: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerPython::keywords(int set) const +{ + if (set != 1) + return 0; + + return keywordClass; +} + + +// Returns the user name of a style. +QString QsciLexerPython::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Number: + return tr("Number"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case Keyword: + return tr("Keyword"); + + case TripleSingleQuotedString: + return tr("Triple single-quoted string"); + + case TripleDoubleQuotedString: + return tr("Triple double-quoted string"); + + case ClassName: + return tr("Class name"); + + case FunctionMethodName: + return tr("Function or method name"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case CommentBlock: + return tr("Comment block"); + + case UnclosedString: + return tr("Unclosed string"); + + case HighlightedIdentifier: + return tr("Highlighted identifier"); + + case Decorator: + return tr("Decorator"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerPython::defaultPaper(int style) const +{ + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerPython::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setQuotesProp(); + setTabWhingeProp(); + setStringsOverNewlineProp(); + setV2UnicodeProp(); + setV3BinaryOctalProp(); + setV3BytesProp(); + setHighlightSubidsProp(); +} + + +// Read properties from the settings. +bool QsciLexerPython::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true, num; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + fold_quotes = qs.value(prefix + "foldquotes", false).toBool(); + indent_warn = (IndentationWarning)qs.value(prefix + "indentwarning", (int)NoWarning).toInt(); + strings_over_newline = qs.value(prefix + "stringsovernewline", false).toBool(); + v2_unicode = qs.value(prefix + "v2unicode", true).toBool(); + v3_binary_octal = qs.value(prefix + "v3binaryoctal", true).toBool(); + v3_bytes = qs.value(prefix + "v3bytes", true).toBool(); + highlight_subids = qs.value(prefix + "highlightsubids", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerPython::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "foldquotes", fold_quotes); + qs.setValue(prefix + "indentwarning", (int)indent_warn); + qs.setValue(prefix + "stringsovernewline", strings_over_newline); + qs.setValue(prefix + "v2unicode", v2_unicode); + qs.setValue(prefix + "v3binaryoctal", v3_binary_octal); + qs.setValue(prefix + "v3bytes", v3_bytes); + qs.setValue(prefix + "highlightsubids", highlight_subids); + + return rc; +} + + +// Set if comments can be folded. +void QsciLexerPython::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment.python" property. +void QsciLexerPython::setCommentProp() +{ + emit propertyChanged("fold.comment.python",(fold_comments ? "1" : "0")); +} + + +// Set if folds are compact. +void QsciLexerPython::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerPython::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Set if quotes can be folded. +void QsciLexerPython::setFoldQuotes(bool fold) +{ + fold_quotes = fold; + + setQuotesProp(); +} + + +// Set the "fold.quotes.python" property. +void QsciLexerPython::setQuotesProp() +{ + emit propertyChanged("fold.quotes.python",(fold_quotes ? "1" : "0")); +} + + +// Set the indentation warning. +void QsciLexerPython::setIndentationWarning(QsciLexerPython::IndentationWarning warn) +{ + indent_warn = warn; + + setTabWhingeProp(); +} + + +// Set the "tab.timmy.whinge.level" property. +void QsciLexerPython::setTabWhingeProp() +{ + emit propertyChanged("tab.timmy.whinge.level", QByteArray::number(indent_warn)); +} + + +// Set if string literals can span newlines. +void QsciLexerPython::setStringsOverNewlineAllowed(bool allowed) +{ + strings_over_newline = allowed; + + setStringsOverNewlineProp(); +} + + +// Set the "lexer.python.strings.u" property. +void QsciLexerPython::setStringsOverNewlineProp() +{ + emit propertyChanged("lexer.python.strings.over.newline", (strings_over_newline ? "1" : "0")); +} + + +// Set if v2 unicode string literals are allowed. +void QsciLexerPython::setV2UnicodeAllowed(bool allowed) +{ + v2_unicode = allowed; + + setV2UnicodeProp(); +} + + +// Set the "lexer.python.strings.u" property. +void QsciLexerPython::setV2UnicodeProp() +{ + emit propertyChanged("lexer.python.strings.u", (v2_unicode ? "1" : "0")); +} + + +// Set if v3 binary and octal literals are allowed. +void QsciLexerPython::setV3BinaryOctalAllowed(bool allowed) +{ + v3_binary_octal = allowed; + + setV3BinaryOctalProp(); +} + + +// Set the "lexer.python.literals.binary" property. +void QsciLexerPython::setV3BinaryOctalProp() +{ + emit propertyChanged("lexer.python.literals.binary", (v3_binary_octal ? "1" : "0")); +} + + +// Set if v3 bytes string literals are allowed. +void QsciLexerPython::setV3BytesAllowed(bool allowed) +{ + v3_bytes = allowed; + + setV3BytesProp(); +} + + +// Set the "lexer.python.strings.b" property. +void QsciLexerPython::setV3BytesProp() +{ + emit propertyChanged("lexer.python.strings.b",(v3_bytes ? "1" : "0")); +} + + +// Set if sub-identifiers are highlighted. +void QsciLexerPython::setHighlightSubidentifiers(bool enabled) +{ + highlight_subids = enabled; + + setHighlightSubidsProp(); +} + + +// Set the "lexer.python.keywords2.no.sub.identifiers" property. +void QsciLexerPython::setHighlightSubidsProp() +{ + emit propertyChanged("lexer.python.keywords2.no.sub.identifiers", + (highlight_subids ? "0" : "1")); +} diff --git a/Qt4Qt5/qscilexerruby.cpp b/Qt4Qt5/qscilexerruby.cpp new file mode 100644 index 0000000..28edc5c --- /dev/null +++ b/Qt4Qt5/qscilexerruby.cpp @@ -0,0 +1,451 @@ +// This module implements the QsciLexerRuby class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerruby.h" + +#include +#include +#include + + +// The ctor. +QsciLexerRuby::QsciLexerRuby(QObject *parent) + : QsciLexer(parent), + fold_comments(false), fold_compact(true) +{ +} + + +// The dtor. +QsciLexerRuby::~QsciLexerRuby() +{ +} + + +// Returns the language name. +const char *QsciLexerRuby::language() const +{ + return "Ruby"; +} + + +// Returns the lexer name. +const char *QsciLexerRuby::lexer() const +{ + return "ruby"; +} + + +// Return the list of words that can start a block. +const char *QsciLexerRuby::blockStart(int *style) const +{ + if (style) + *style = Keyword; + + return "do"; +} + + +// Return the list of words that can start end a block. +const char *QsciLexerRuby::blockEnd(int *style) const +{ + if (style) + *style = Keyword; + + return "end"; +} + + +// Return the list of words that can start end a block. +const char *QsciLexerRuby::blockStartKeyword(int *style) const +{ + if (style) + *style = Keyword; + + return "def class if do elsif else case while for"; +} + + +// Return the style used for braces. +int QsciLexerRuby::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerRuby::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case POD: + return QColor(0x00,0x40,0x00); + + case Number: + case FunctionMethodName: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + case DemotedKeyword: + return QColor(0x00,0x00,0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + case HereDocument: + case PercentStringq: + case PercentStringQ: + return QColor(0x7f,0x00,0x7f); + + case ClassName: + return QColor(0x00,0x00,0xff); + + case Regex: + case HereDocumentDelimiter: + case PercentStringr: + case PercentStringw: + return QColor(0x00,0x00,0x00); + + case Global: + return QColor(0x80,0x00,0x80); + + case Symbol: + return QColor(0xc0,0xa0,0x30); + + case ModuleName: + return QColor(0xa0,0x00,0xa0); + + case InstanceVariable: + return QColor(0xb0,0x00,0x80); + + case ClassVariable: + return QColor(0x80,0x00,0xb0); + + case Backticks: + case PercentStringx: + return QColor(0xff,0xff,0x00); + + case DataSection: + return QColor(0x60,0x00,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerRuby::defaultEolFill(int style) const +{ + bool fill; + + switch (style) + { + case POD: + case DataSection: + case HereDocument: + fill = true; + break; + + default: + fill = QsciLexer::defaultEolFill(style); + } + + return fill; +} + + +// Returns the font of the text for a style. +QFont QsciLexerRuby::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case POD: + case DoubleQuotedString: + case SingleQuotedString: + case PercentStringq: + case PercentStringQ: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + case Keyword: + case ClassName: + case FunctionMethodName: + case Operator: + case ModuleName: + case DemotedKeyword: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerRuby::keywords(int set) const +{ + if (set == 1) + return + "__FILE__ and def end in or self unless __LINE__ " + "begin defined? ensure module redo super until BEGIN " + "break do false next rescue then when END case else " + "for nil require retry true while alias class elsif " + "if not return undef yield"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerRuby::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Error: + return tr("Error"); + + case Comment: + return tr("Comment"); + + case POD: + return tr("POD"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case ClassName: + return tr("Class name"); + + case FunctionMethodName: + return tr("Function or method name"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case Regex: + return tr("Regular expression"); + + case Global: + return tr("Global"); + + case Symbol: + return tr("Symbol"); + + case ModuleName: + return tr("Module name"); + + case InstanceVariable: + return tr("Instance variable"); + + case ClassVariable: + return tr("Class variable"); + + case Backticks: + return tr("Backticks"); + + case DataSection: + return tr("Data section"); + + case HereDocumentDelimiter: + return tr("Here document delimiter"); + + case HereDocument: + return tr("Here document"); + + case PercentStringq: + return tr("%q string"); + + case PercentStringQ: + return tr("%Q string"); + + case PercentStringx: + return tr("%x string"); + + case PercentStringr: + return tr("%r string"); + + case PercentStringw: + return tr("%w string"); + + case DemotedKeyword: + return tr("Demoted keyword"); + + case Stdin: + return tr("stdin"); + + case Stdout: + return tr("stdout"); + + case Stderr: + return tr("stderr"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerRuby::defaultPaper(int style) const +{ + switch (style) + { + case Error: + return QColor(0xff,0x00,0x00); + + case POD: + return QColor(0xc0,0xff,0xc0); + + case Regex: + case PercentStringr: + return QColor(0xa0,0xff,0xa0); + + case Backticks: + case PercentStringx: + return QColor(0xa0,0x80,0x80); + + case DataSection: + return QColor(0xff,0xf0,0xd8); + + case HereDocumentDelimiter: + case HereDocument: + return QColor(0xdd,0xd0,0xdd); + + case PercentStringw: + return QColor(0xff,0xff,0xe0); + + case Stdin: + case Stdout: + case Stderr: + return QColor(0xff,0x80,0x80); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerRuby::refreshProperties() +{ + setCommentProp(); + setCompactProp(); +} + + +// Read properties from the settings. +bool QsciLexerRuby::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerRuby::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = true; + + qs.value(prefix + "foldcomments", fold_comments); + qs.value(prefix + "foldcompact", fold_compact); + + return rc; +} + + +// Set if comments can be folded. +void QsciLexerRuby::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerRuby::setCommentProp() +{ + emit propertyChanged("fold.comment", (fold_comments ? "1" : "0")); +} + + +// Set if folds are compact +void QsciLexerRuby::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerRuby::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerspice.cpp b/Qt4Qt5/qscilexerspice.cpp new file mode 100644 index 0000000..0e7b0df --- /dev/null +++ b/Qt4Qt5/qscilexerspice.cpp @@ -0,0 +1,199 @@ +// This module implements the QsciLexerSpice class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerspice.h" + +#include +#include + + +// The ctor. +QsciLexerSpice::QsciLexerSpice(QObject *parent) + : QsciLexer(parent) +{ +} + + +// The dtor. +QsciLexerSpice::~QsciLexerSpice() +{ +} + + +// Returns the language name. +const char *QsciLexerSpice::language() const +{ + return "Spice"; +} + + +// Returns the lexer name. +const char *QsciLexerSpice::lexer() const +{ + return "spice"; +} + + +// Return the style used for braces. +int QsciLexerSpice::braceStyle() const +{ + return Parameter; +} + + +// Returns the set of keywords. +const char *QsciLexerSpice::keywords(int set) const +{ + if (set == 1) + return + "ac alias alter alterparam append askvalues assertvalid " + "autoscale break compose copy copytodoc dc delete destroy " + "destroyvec diff display disto dowhile echo else end errorstop " + "fftinit filter foreach fourier freqtotime function " + "functionundef goto homecursors if isdisplayed label let " + "linearize listing load loadaccumulator makelabel movelabel " + "makesmithplot movecursorleft movecursorright msgbox nameplot " + "newplot nextparam noise nopoints op plot plotf plotref poly " + "print printcursors printevent printname printplot printstatus " + "printtext printtol printunits printval printvector pwl pz quit " + "removesmithplot rename repeat resume rotate runs rusage save " + "sendplot sendscript sens set setcursor setdoc setlabel " + "setlabeltype setmargins setnthtrigger setunits setvec setparam " + "setplot setquery setscaletype settracecolor settracestyle " + "setsource settrigger setvec setxlimits setylimits show showmod " + "sort status step stop switch tf timetofreq timetowave tran " + "unalias unlet unset unalterparam update version view wavefilter " + "wavetotime where while write"; + + if (set == 2) + return + "abs askvalue atan average ceil cos db differentiate " + "differentiatex exp finalvalue floor getcursorx getcursory " + "getcursory0 getcursory1 getparam im ln initialvalue integrate " + "integratex interpolate isdef isdisplayed j log length mag max " + "maxscale mean meanpts min minscale nextplot nextvector norm " + "operatingpoint ph phase phaseextend pk_pk pos pulse re rms " + "rmspts rnd sameplot sin sqrt stddev stddevpts tan tfall " + "tolerance trise unitvec vector"; + + if (set == 3) + return "param nodeset include options dcconv subckt ends model"; + + return 0; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerSpice::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Command: + case Function: + return QColor(0x00,0x00,0x7f); + + case Parameter: + return QColor(0x00,0x40,0xe0); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Delimiter: + return QColor(0x00,0x00,0x00); + + case Value: + return QColor(0x7f,0x00,0x7f); + + case Comment: + return QColor(0x00,0x7f,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerSpice::defaultFont(int style) const +{ + QFont f; + + if (style == Comment) +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + else + { + f = QsciLexer::defaultFont(style); + + if (style == Function || style == Delimiter) + f.setBold(true); + } + + return f; +} + + +// Returns the user name of a style. +QString QsciLexerSpice::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Identifier: + return tr("Identifier"); + + case Command: + return tr("Command"); + + case Function: + return tr("Function"); + + case Parameter: + return tr("Parameter"); + + case Number: + return tr("Number"); + + case Delimiter: + return tr("Delimiter"); + + case Value: + return tr("Value"); + + case Comment: + return tr("Comment"); + } + + return QString(); +} diff --git a/Qt4Qt5/qscilexersql.cpp b/Qt4Qt5/qscilexersql.cpp new file mode 100644 index 0000000..1a6ae24 --- /dev/null +++ b/Qt4Qt5/qscilexersql.cpp @@ -0,0 +1,523 @@ +// This module implements the QsciLexerSQL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexersql.h" + +#include +#include +#include + + +// The ctor. +QsciLexerSQL::QsciLexerSQL(QObject *parent) + : QsciLexer(parent), + at_else(false), fold_comments(false), fold_compact(true), + only_begin(false), backticks_identifier(false), + numbersign_comment(false), backslash_escapes(false), + allow_dotted_word(false) +{ +} + + +// The dtor. +QsciLexerSQL::~QsciLexerSQL() +{ +} + + +// Returns the language name. +const char *QsciLexerSQL::language() const +{ + return "SQL"; +} + + +// Returns the lexer name. +const char *QsciLexerSQL::lexer() const +{ + return "sql"; +} + + +// Return the style used for braces. +int QsciLexerSQL::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerSQL::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + case CommentLine: + case PlusPrompt: + case PlusComment: + case CommentLineHash: + return QColor(0x00,0x7f,0x00); + + case CommentDoc: + return QColor(0x7f,0x7f,0x7f); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case DoubleQuotedString: + case SingleQuotedString: + return QColor(0x7f,0x00,0x7f); + + case PlusKeyword: + return QColor(0x7f,0x7f,0x00); + + case Operator: + case Identifier: + break; + + case CommentDocKeyword: + return QColor(0x30,0x60,0xa0); + + case CommentDocKeywordError: + return QColor(0x80,0x40,0x20); + + case KeywordSet5: + return QColor(0x4b,0x00,0x82); + + case KeywordSet6: + return QColor(0xb0,0x00,0x40); + + case KeywordSet7: + return QColor(0x8b,0x00,0x00); + + case KeywordSet8: + return QColor(0x80,0x00,0x80); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerSQL::defaultEolFill(int style) const +{ + if (style == PlusPrompt) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerSQL::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case PlusComment: + case CommentLineHash: + case CommentDocKeyword: + case CommentDocKeywordError: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DoubleQuotedString: + case SingleQuotedString: + case PlusPrompt: +#if defined(Q_OS_WIN) + f = QFont("Courier New",10); +#elif defined(Q_OS_MAC) + f = QFont("Courier", 12); +#else + f = QFont("Bitstream Vera Sans Mono",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerSQL::keywords(int set) const +{ + if (set == 1) + return + "absolute action add admin after aggregate alias all " + "allocate alter and any are array as asc assertion " + "at authorization before begin binary bit blob " + "boolean both breadth by call cascade cascaded case " + "cast catalog char character check class clob close " + "collate collation column commit completion connect " + "connection constraint constraints constructor " + "continue corresponding create cross cube current " + "current_date current_path current_role current_time " + "current_timestamp current_user cursor cycle data " + "date day deallocate dec decimal declare default " + "deferrable deferred delete depth deref desc " + "describe descriptor destroy destructor " + "deterministic dictionary diagnostics disconnect " + "distinct domain double drop dynamic each else end " + "end-exec equals escape every except exception exec " + "execute external false fetch first float for " + "foreign found from free full function general get " + "global go goto grant group grouping having host " + "hour identity if ignore immediate in indicator " + "initialize initially inner inout input insert int " + "integer intersect interval into is isolation " + "iterate join key language large last lateral " + "leading left less level like limit local localtime " + "localtimestamp locator map match minute modifies " + "modify module month names national natural nchar " + "nclob new next no none not null numeric object of " + "off old on only open operation option or order " + "ordinality out outer output pad parameter " + "parameters partial path postfix precision prefix " + "preorder prepare preserve primary prior privileges " + "procedure public read reads real recursive ref " + "references referencing relative restrict result " + "return returns revoke right role rollback rollup " + "routine row rows savepoint schema scroll scope " + "search second section select sequence session " + "session_user set sets size smallint some| space " + "specific specifictype sql sqlexception sqlstate " + "sqlwarning start state statement static structure " + "system_user table temporary terminate than then " + "time timestamp timezone_hour timezone_minute to " + "trailing transaction translation treat trigger " + "true under union unique unknown unnest update usage " + "user using value values varchar variable varying " + "view when whenever where with without work write " + "year zone"; + + if (set == 3) + return + "param author since return see deprecated todo"; + + if (set == 4) + return + "acc~ept a~ppend archive log attribute bre~ak " + "bti~tle c~hange cl~ear col~umn comp~ute conn~ect " + "copy def~ine del desc~ribe disc~onnect e~dit " + "exec~ute exit get help ho~st i~nput l~ist passw~ord " + "pau~se pri~nt pro~mpt quit recover rem~ark " + "repf~ooter reph~eader r~un sav~e set sho~w shutdown " + "spo~ol sta~rt startup store timi~ng tti~tle " + "undef~ine var~iable whenever oserror whenever " + "sqlerror"; + + if (set == 5) + return + "dbms_output.disable dbms_output.enable dbms_output.get_line " + "dbms_output.get_lines dbms_output.new_line dbms_output.put " + "dbms_output.put_line"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerSQL::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case CommentLine: + return tr("Comment line"); + + case CommentDoc: + return tr("JavaDoc style comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Keyword"); + + case DoubleQuotedString: + return tr("Double-quoted string"); + + case SingleQuotedString: + return tr("Single-quoted string"); + + case PlusKeyword: + return tr("SQL*Plus keyword"); + + case PlusPrompt: + return tr("SQL*Plus prompt"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case PlusComment: + return tr("SQL*Plus comment"); + + case CommentLineHash: + return tr("# comment line"); + + case CommentDocKeyword: + return tr("JavaDoc keyword"); + + case CommentDocKeywordError: + return tr("JavaDoc keyword error"); + + case KeywordSet5: + return tr("User defined 1"); + + case KeywordSet6: + return tr("User defined 2"); + + case KeywordSet7: + return tr("User defined 3"); + + case KeywordSet8: + return tr("User defined 4"); + + case QuotedIdentifier: + return tr("Quoted identifier"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerSQL::defaultPaper(int style) const +{ + if (style == PlusPrompt) + return QColor(0xe0,0xff,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerSQL::refreshProperties() +{ + setAtElseProp(); + setCommentProp(); + setCompactProp(); + setOnlyBeginProp(); + setBackticksIdentifierProp(); + setNumbersignCommentProp(); + setBackslashEscapesProp(); + setAllowDottedWordProp(); +} + + +// Read properties from the settings. +bool QsciLexerSQL::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + at_else = qs.value(prefix + "atelse", false).toBool(); + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + only_begin = qs.value(prefix + "onlybegin", false).toBool(); + backticks_identifier = qs.value(prefix + "backticksidentifier", false).toBool(); + numbersign_comment = qs.value(prefix + "numbersigncomment", false).toBool(); + backslash_escapes = qs.value(prefix + "backslashescapes", false).toBool(); + allow_dotted_word = qs.value(prefix + "allowdottedword", false).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerSQL::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = true; + + qs.value(prefix + "atelse", at_else); + qs.value(prefix + "foldcomments", fold_comments); + qs.value(prefix + "foldcompact", fold_compact); + qs.value(prefix + "onlybegin", only_begin); + qs.value(prefix + "backticksidentifier", backticks_identifier); + qs.value(prefix + "numbersigncomment", numbersign_comment); + qs.value(prefix + "backslashescapes", backslash_escapes); + qs.value(prefix + "allowdottedword", allow_dotted_word); + + return rc; +} + + +// Set if ELSE blocks can be folded. +void QsciLexerSQL::setFoldAtElse(bool fold) +{ + at_else = fold; + + setAtElseProp(); +} + + +// Set the "fold.sql.at.else" property. +void QsciLexerSQL::setAtElseProp() +{ + emit propertyChanged("fold.sql.at.else", (at_else ? "1" : "0")); +} + + +// Set if comments can be folded. +void QsciLexerSQL::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerSQL::setCommentProp() +{ + emit propertyChanged("fold.comment", (fold_comments ? "1" : "0")); +} + + +// Set if folds are compact +void QsciLexerSQL::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerSQL::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} + + +// Set if BEGIN blocks only can be folded. +void QsciLexerSQL::setFoldOnlyBegin(bool fold) +{ + only_begin = fold; + + setOnlyBeginProp(); +} + + +// Set the "fold.sql.only.begin" property. +void QsciLexerSQL::setOnlyBeginProp() +{ + emit propertyChanged("fold.sql.only.begin", (only_begin ? "1" : "0")); +} + + +// Enable quoted identifiers. +void QsciLexerSQL::setQuotedIdentifiers(bool enable) +{ + backticks_identifier = enable; + + setBackticksIdentifierProp(); +} + + +// Set the "lexer.sql.backticks.identifier" property. +void QsciLexerSQL::setBackticksIdentifierProp() +{ + emit propertyChanged("lexer.sql.backticks.identifier", (backticks_identifier ? "1" : "0")); +} + + +// Enable '#' as a comment character. +void QsciLexerSQL::setHashComments(bool enable) +{ + numbersign_comment = enable; + + setNumbersignCommentProp(); +} + + +// Set the "lexer.sql.numbersign.comment" property. +void QsciLexerSQL::setNumbersignCommentProp() +{ + emit propertyChanged("lexer.sql.numbersign.comment", (numbersign_comment ? "1" : "0")); +} + + +// Enable/disable backslash escapes. +void QsciLexerSQL::setBackslashEscapes(bool enable) +{ + backslash_escapes = enable; + + setBackslashEscapesProp(); +} + + +// Set the "sql.backslash.escapes" property. +void QsciLexerSQL::setBackslashEscapesProp() +{ + emit propertyChanged("sql.backslash.escapes", (backslash_escapes ? "1" : "0")); +} + + +// Enable dotted words. +void QsciLexerSQL::setDottedWords(bool enable) +{ + allow_dotted_word = enable; + + setAllowDottedWordProp(); +} + + +// Set the "lexer.sql.allow.dotted.word" property. +void QsciLexerSQL::setAllowDottedWordProp() +{ + emit propertyChanged("lexer.sql.allow.dotted.word", (allow_dotted_word ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexertcl.cpp b/Qt4Qt5/qscilexertcl.cpp new file mode 100644 index 0000000..9cc2f95 --- /dev/null +++ b/Qt4Qt5/qscilexertcl.cpp @@ -0,0 +1,444 @@ +// This module implements the QsciLexerTCL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexertcl.h" + +#include +#include +#include + + +// The ctor. +QsciLexerTCL::QsciLexerTCL(QObject *parent) + : QsciLexer(parent), + fold_comments(false) +{ +} + + +// The dtor. +QsciLexerTCL::~QsciLexerTCL() +{ +} + + +// Returns the language name. +const char *QsciLexerTCL::language() const +{ + return "TCL"; +} + + +// Returns the lexer name. +const char *QsciLexerTCL::lexer() const +{ + return "tcl"; +} + + +// Return the style used for braces. +int QsciLexerTCL::braceStyle() const +{ + return Operator; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerTCL::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + case CommentLine: + case CommentBox: + return QColor(0x00,0x7f,0x00); + + case Number: + return QColor(0x00,0x7f,0x7f); + + case QuotedKeyword: + case QuotedString: + case Modifier: + return QColor(0x7f,0x00,0x7f); + + case Operator: + return QColor(0x00,0x00,0x00); + + case Identifier: + case ExpandKeyword: + case TCLKeyword: + case TkKeyword: + case ITCLKeyword: + case TkCommand: + case KeywordSet6: + case KeywordSet7: + case KeywordSet8: + case KeywordSet9: + return QColor(0x00,0x00,0x7f); + + case Substitution: + case SubstitutionBrace: + return QColor(0x7f,0x7f,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerTCL::defaultEolFill(int style) const +{ + switch (style) + { + case QuotedString: + case CommentBox: + return true; + } + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerTCL::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case CommentBox: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS", 9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif", 9); +#endif + break; + + case QuotedKeyword: + case Operator: + case ExpandKeyword: + case TCLKeyword: + case TkKeyword: + case ITCLKeyword: + case TkCommand: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case CommentBlock: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS", 8); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 11); +#else + f = QFont("Serif", 9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerTCL::keywords(int set) const +{ + if (set == 1) + return + "after append array auto_execok auto_import auto_load " + "auto_load_index auto_qualify beep bgerror binary break case " + "catch cd clock close concat continue dde default echo else " + "elseif encoding eof error eval exec exit expr fblocked " + "fconfigure fcopy file fileevent flush for foreach format gets " + "glob global history http if incr info interp join lappend lindex " + "linsert list llength load loadTk lrange lreplace lsearch lset " + "lsort memory msgcat namespace open package pid pkg::create " + "pkg_mkIndex Platform-specific proc puts pwd re_syntax read " + "regexp registry regsub rename resource return scan seek set " + "socket source split string subst switch tclLog tclMacPkgSearch " + "tclPkgSetup tclPkgUnknown tell time trace unknown unset update " + "uplevel upvar variable vwait while"; + + if (set == 2) + return + "bell bind bindtags bitmap button canvas checkbutton clipboard " + "colors console cursors destroy entry event focus font frame grab " + "grid image Inter-client keysyms label labelframe listbox lower " + "menu menubutton message option options pack panedwindow photo " + "place radiobutton raise scale scrollbar selection send spinbox " + "text tk tk_chooseColor tk_chooseDirectory tk_dialog tk_focusNext " + "tk_getOpenFile tk_messageBox tk_optionMenu tk_popup " + "tk_setPalette tkerror tkvars tkwait toplevel winfo wish wm"; + + if (set == 3) + return + "@scope body class code common component configbody constructor " + "define destructor hull import inherit itcl itk itk_component " + "itk_initialize itk_interior itk_option iwidgets keep method " + "private protected public"; + + if (set == 4) + return + "tk_bisque tk_chooseColor tk_dialog tk_focusFollowsMouse " + "tk_focusNext tk_focusPrev tk_getOpenFile tk_getSaveFile " + "tk_messageBox tk_optionMenu tk_popup tk_setPalette tk_textCopy " + "tk_textCut tk_textPaste tkButtonAutoInvoke tkButtonDown " + "tkButtonEnter tkButtonInvoke tkButtonLeave tkButtonUp " + "tkCancelRepeat tkCheckRadioDown tkCheckRadioEnter " + "tkCheckRadioInvoke tkColorDialog tkColorDialog_BuildDialog " + "tkColorDialog_CancelCmd tkColorDialog_Config " + "tkColorDialog_CreateSelector tkColorDialog_DrawColorScale " + "tkColorDialog_EnterColorBar tkColorDialog_HandleRGB Entry " + "tkColorDialog_HandleSelEntry tkColorDialog_InitValues " + "tkColorDialog_LeaveColorBar tkColorDialog_MoveSelector " + "tkColorDialog_OkCmd tkColorDialog_RedrawColorBars " + "tkColorDialog_RedrawFinalColor tkColorDialog_ReleaseMouse " + "tkColorDialog_ResizeColorBars tkColorDialog_RgbToX " + "tkColorDialog_SetRGBValue tkColorDialog_StartMove " + "tkColorDialog_XToRgb tkConsoleAbout tkConsoleBind tkConsoleExit " + "tkConsoleHistory tkConsoleInit tkConsoleInsert tkConsoleInvoke " + "tkConsoleOutput tkConsolePrompt tkConsoleSource tkDarken " + "tkEntryAutoScan tkEntryBackspace tkEntryButton1 " + "tkEntryClosestGap tkEntryGetSelection tkEntryInsert " + "tkEntryKeySelect tkEntryMouseSelect tkEntryNextWord tkEntryPaste " + "tkEntryPreviousWord tkEntrySeeInsert tkEntrySetCursor " + "tkEntryTranspose tkEventMotifBindings tkFDGetFileTypes " + "tkFirstMenu tkFocusGroup_BindIn tkFocusGroup_BindOut " + "tkFocusGroup_Create tkFocusGroup_Destroy tkFocusGroup_In " + "tkFocusGroup_Out tkFocusOK tkGenerateMenuSelect tkIconList " + "tkIconList_Add tkIconList_Arrange tkIconList_AutoScan " + "tkIconList_Btn1 tkIconList_Config tkIconList_Create " + "tkIconList_CtrlBtn1 tkIconList_Curselection tkIconList_DeleteAll " + "tkIconList_Double1 tkIconList_DrawSelection tkIconList_FocusIn " + "tkIconList_FocusOut tkIconList_Get tkIconList_Goto " + "tkIconList_Index tkIconList_Invoke tkIconList_KeyPress " + "tkIconList_Leave1 tkIconList_LeftRight tkIconList_Motion1 " + "tkIconList_Reset tkIconList_ReturnKey tkIconList_See " + "tkIconList_Select tkIconList_Selection tkIconList_ShiftBtn1 " + "tkIconList_UpDown tkListbox tkListboxAutoScan " + "tkListboxBeginExtend tkListboxBeginSelect tkListboxBeginToggle " + "tkListboxCancel tkListboxDataExtend tkListboxExtendUpDown " + "tkListboxKeyAccel_Goto tkListboxKeyAccel_Key " + "tkListboxKeyAccel_Reset tkListboxKeyAccel_Set " + "tkListboxKeyAccel_Unset tkListboxMotion tkListboxSelectAll " + "tkListboxUpDown tkMbButtonUp tkMbEnter tkMbLeave tkMbMotion " + "tkMbPost tkMenuButtonDown tkMenuDownArrow tkMenuDup tkMenuEscape " + "tkMenuFind tkMenuFindName tkMenuFirstEntry tkMenuInvoke " + "tkMenuLeave tkMenuLeftArrow tkMenuMotion tkMenuNextEntry " + "tkMenuNextMenu tkMenuRightArrow tkMenuUnpost tkMenuUpArrow " + "tkMessageBox tkMotifFDialog tkMotifFDialog_ActivateDList " + "tkMotifFDialog_ActivateFEnt tkMotifFDialog_ActivateFList " + "tkMotifFDialog_ActivateSEnt tkMotifFDialog_BrowseDList " + "tkMotifFDialog_BrowseFList tkMotifFDialog_BuildUI " + "tkMotifFDialog_CancelCmd tkMotifFDialog_Config " + "tkMotifFDialog_Create tkMotifFDialog_FileTypes " + "tkMotifFDialog_FilterCmd tkMotifFDialog_InterpFilter " + "tkMotifFDialog_LoadFiles tkMotifFDialog_MakeSList " + "tkMotifFDialog_OkCmd tkMotifFDialog_SetFilter " + "tkMotifFDialog_SetListMode tkMotifFDialog_Update tkPostOverPoint " + "tkRecolorTree tkRestoreOldGrab tkSaveGrabInfo tkScaleActivate " + "tkScaleButton2Down tkScaleButtonDown tkScaleControlPress " + "tkScaleDrag tkScaleEndDrag tkScaleIncrement tkScreenChanged " + "tkScrollButton2Down tkScrollButtonDown tkScrollButtonDrag " + "tkScrollButtonUp tkScrollByPages tkScrollByUnits tkScrollDrag " + "tkScrollEndDrag tkScrollSelect tkScrollStartDrag " + "tkScrollTopBottom tkScrollToPos tkTabToWindow tkTearOffMenu " + "tkTextAutoScan tkTextButton1 tkTextClosestGap tkTextInsert " + "tkTextKeyExtend tkTextKeySelect tkTextNextPara tkTextNextPos " + "tkTextNextWord tkTextPaste tkTextPrevPara tkTextPrevPos " + "tkTextPrevWord tkTextResetAnchor tkTextScrollPages " + "tkTextSelectTo tkTextSetCursor tkTextTranspose tkTextUpDownLine " + "tkTraverseToMenu tkTraverseWithinMenu"; + + if (set == 5) + return "expand"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerTCL::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case CommentLine: + return tr("Comment line"); + + case Number: + return tr("Number"); + + case QuotedKeyword: + return tr("Quoted keyword"); + + case QuotedString: + return tr("Quoted string"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case Substitution: + return tr("Substitution"); + + case SubstitutionBrace: + return tr("Brace substitution"); + + case Modifier: + return tr("Modifier"); + + case ExpandKeyword: + return tr("Expand keyword"); + + case TCLKeyword: + return tr("TCL keyword"); + + case TkKeyword: + return tr("Tk keyword"); + + case ITCLKeyword: + return tr("iTCL keyword"); + + case TkCommand: + return tr("Tk command"); + + case KeywordSet6: + return tr("User defined 1"); + + case KeywordSet7: + return tr("User defined 2"); + + case KeywordSet8: + return tr("User defined 3"); + + case KeywordSet9: + return tr("User defined 4"); + + case CommentBox: + return tr("Comment box"); + + case CommentBlock: + return tr("Comment block"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerTCL::defaultPaper(int style) const +{ + switch (style) + { + case Comment: + return QColor(0xf0,0xff,0xe0); + + case QuotedKeyword: + case QuotedString: + case ITCLKeyword: + return QColor(0xff,0xf0,0xf0); + + case Substitution: + return QColor(0xef,0xff,0xf0); + + case ExpandKeyword: + return QColor(0xff,0xff,0x80); + + case TkKeyword: + return QColor(0xe0,0xff,0xf0); + + case TkCommand: + return QColor(0xff,0xd0,0xd0); + + case CommentBox: + case CommentBlock: + return QColor(0xf0,0xff,0xf0); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerTCL::refreshProperties() +{ + setCommentProp(); +} + + +// Read properties from the settings. +bool QsciLexerTCL::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerTCL::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcomments", fold_comments); + + return rc; +} + + +// Set if comments can be folded. +void QsciLexerTCL::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerTCL::setCommentProp() +{ + emit propertyChanged("fold.comment", (fold_comments ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexertex.cpp b/Qt4Qt5/qscilexertex.cpp new file mode 100644 index 0000000..737abe2 --- /dev/null +++ b/Qt4Qt5/qscilexertex.cpp @@ -0,0 +1,313 @@ +// This module implements the QsciLexerTeX class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexertex.h" + +#include +#include +#include + + +// The ctor. +QsciLexerTeX::QsciLexerTeX(QObject *parent) + : QsciLexer(parent), + fold_comments(false), fold_compact(true), process_comments(false), + process_if(true) +{ +} + + +// The dtor. +QsciLexerTeX::~QsciLexerTeX() +{ +} + + +// Returns the language name. +const char *QsciLexerTeX::language() const +{ + return "TeX"; +} + + +// Returns the lexer name. +const char *QsciLexerTeX::lexer() const +{ + return "tex"; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerTeX::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\\@"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerTeX::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x3f,0x3f,0x3f); + + case Special: + return QColor(0x00,0x7f,0x7f); + + case Group: + return QColor(0x7f,0x00,0x00); + + case Symbol: + return QColor(0x7f,0x7f,0x00); + + case Command: + return QColor(0x00,0x7f,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the set of keywords. +const char *QsciLexerTeX::keywords(int set) const +{ + if (set == 1) + return + "above abovedisplayshortskip abovedisplayskip " + "abovewithdelims accent adjdemerits advance " + "afterassignment aftergroup atop atopwithdelims " + "badness baselineskip batchmode begingroup " + "belowdisplayshortskip belowdisplayskip binoppenalty " + "botmark box boxmaxdepth brokenpenalty catcode char " + "chardef cleaders closein closeout clubpenalty copy " + "count countdef cr crcr csname day deadcycles def " + "defaulthyphenchar defaultskewchar delcode delimiter " + "delimiterfactor delimeters delimitershortfall " + "delimeters dimen dimendef discretionary " + "displayindent displaylimits displaystyle " + "displaywidowpenalty displaywidth divide " + "doublehyphendemerits dp dump edef else " + "emergencystretch end endcsname endgroup endinput " + "endlinechar eqno errhelp errmessage " + "errorcontextlines errorstopmode escapechar everycr " + "everydisplay everyhbox everyjob everymath everypar " + "everyvbox exhyphenpenalty expandafter fam fi " + "finalhyphendemerits firstmark floatingpenalty font " + "fontdimen fontname futurelet gdef global group " + "globaldefs halign hangafter hangindent hbadness " + "hbox hfil horizontal hfill horizontal hfilneg hfuzz " + "hoffset holdinginserts hrule hsize hskip hss " + "horizontal ht hyphenation hyphenchar hyphenpenalty " + "hyphen if ifcase ifcat ifdim ifeof iffalse ifhbox " + "ifhmode ifinner ifmmode ifnum ifodd iftrue ifvbox " + "ifvmode ifvoid ifx ignorespaces immediate indent " + "input inputlineno input insert insertpenalties " + "interlinepenalty jobname kern language lastbox " + "lastkern lastpenalty lastskip lccode leaders left " + "lefthyphenmin leftskip leqno let limits linepenalty " + "line lineskip lineskiplimit long looseness lower " + "lowercase mag mark mathaccent mathbin mathchar " + "mathchardef mathchoice mathclose mathcode mathinner " + "mathop mathopen mathord mathpunct mathrel " + "mathsurround maxdeadcycles maxdepth meaning " + "medmuskip message mkern month moveleft moveright " + "mskip multiply muskip muskipdef newlinechar noalign " + "noboundary noexpand noindent nolimits nonscript " + "scriptscript nonstopmode nulldelimiterspace " + "nullfont number omit openin openout or outer output " + "outputpenalty over overfullrule overline " + "overwithdelims pagedepth pagefilllstretch " + "pagefillstretch pagefilstretch pagegoal pageshrink " + "pagestretch pagetotal par parfillskip parindent " + "parshape parskip patterns pausing penalty " + "postdisplaypenalty predisplaypenalty predisplaysize " + "pretolerance prevdepth prevgraf radical raise read " + "relax relpenalty right righthyphenmin rightskip " + "romannumeral scriptfont scriptscriptfont " + "scriptscriptstyle scriptspace scriptstyle " + "scrollmode setbox setlanguage sfcode shipout show " + "showbox showboxbreadth showboxdepth showlists " + "showthe skewchar skip skipdef spacefactor spaceskip " + "span special splitbotmark splitfirstmark " + "splitmaxdepth splittopskip string tabskip textfont " + "textstyle the thickmuskip thinmuskip time toks " + "toksdef tolerance topmark topskip tracingcommands " + "tracinglostchars tracingmacros tracingonline " + "tracingoutput tracingpages tracingparagraphs " + "tracingrestores tracingstats uccode uchyph " + "underline unhbox unhcopy unkern unpenalty unskip " + "unvbox unvcopy uppercase vadjust valign vbadness " + "vbox vcenter vfil vfill vfilneg vfuzz voffset vrule " + "vsize vskip vsplit vss vtop wd widowpenalty write " + "xdef xleaders xspaceskip year " + "TeX bgroup egroup endgraf space empty null newcount " + "newdimen newskip newmuskip newbox newtoks newhelp " + "newread newwrite newfam newlanguage newinsert newif " + "maxdimen magstephalf magstep frenchspacing " + "nonfrenchspacing normalbaselines obeylines " + "obeyspaces raggedr ight ttraggedright thinspace " + "negthinspace enspace enskip quad qquad smallskip " + "medskip bigskip removelastskip topglue vglue hglue " + "break nobreak allowbreak filbreak goodbreak " + "smallbreak medbreak bigbreak line leftline " + "rightline centerline rlap llap underbar strutbox " + "strut cases matrix pmatrix bordermatrix eqalign " + "displaylines eqalignno leqalignno pageno folio " + "tracingall showhyphens fmtname fmtversion hphantom " + "vphantom phantom smash"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerTeX::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Special: + return tr("Special"); + + case Group: + return tr("Group"); + + case Symbol: + return tr("Symbol"); + + case Command: + return tr("Command"); + + case Text: + return tr("Text"); + } + + return QString(); +} + + +// Refresh all properties. +void QsciLexerTeX::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setProcessCommentsProp(); + setAutoIfProp(); +} + + +// Read properties from the settings. +bool QsciLexerTeX::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + process_comments = qs.value(prefix + "processcomments", false).toBool(); + process_if = qs.value(prefix + "processif", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerTeX::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = true; + + qs.value(prefix + "foldcomments", fold_comments); + qs.value(prefix + "foldcompact", fold_compact); + qs.value(prefix + "processcomments", process_comments); + qs.value(prefix + "processif", process_if); + + return rc; +} + + +// Set if comments can be folded. +void QsciLexerTeX::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerTeX::setCommentProp() +{ + emit propertyChanged("fold.comment", (fold_comments ? "1" : "0")); +} + + +// Set if folds are compact. +void QsciLexerTeX::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerTeX::setCompactProp() +{ + emit propertyChanged("fold.compact", (fold_compact ? "1" : "0")); +} + + +// Set if comments are processed +void QsciLexerTeX::setProcessComments(bool enable) +{ + process_comments = enable; + + setProcessCommentsProp(); +} + + +// Set the "lexer.tex.comment.process" property. +void QsciLexerTeX::setProcessCommentsProp() +{ + emit propertyChanged("lexer.tex.comment.process", (process_comments ? "1" : "0")); +} + + +// Set if \if is processed +void QsciLexerTeX::setProcessIf(bool enable) +{ + process_if = enable; + + setAutoIfProp(); +} + + +// Set the "lexer.tex.auto.if" property. +void QsciLexerTeX::setAutoIfProp() +{ + emit propertyChanged("lexer.tex.auto.if", (process_if ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerverilog.cpp b/Qt4Qt5/qscilexerverilog.cpp new file mode 100644 index 0000000..5a53daa --- /dev/null +++ b/Qt4Qt5/qscilexerverilog.cpp @@ -0,0 +1,435 @@ +// This module implements the QsciLexerVerilog class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerverilog.h" + +#include +#include +#include + + +// The ctor. +QsciLexerVerilog::QsciLexerVerilog(QObject *parent) + : QsciLexer(parent), + fold_atelse(false), fold_comments(false), fold_compact(true), + fold_preproc(false), fold_atmodule(false) +{ +} + + +// The dtor. +QsciLexerVerilog::~QsciLexerVerilog() +{ +} + + +// Returns the language name. +const char *QsciLexerVerilog::language() const +{ + return "Verilog"; +} + + +// Returns the lexer name. +const char *QsciLexerVerilog::lexer() const +{ + return "verilog"; +} + + +// Return the style used for braces. +int QsciLexerVerilog::braceStyle() const +{ + return Operator; +} + + +// Returns the set of keywords. +const char *QsciLexerVerilog::keywords(int set) const +{ + if (set == 1) + return + "always and assign automatic begin buf bufif0 bufif1 case casex " + "casez cell cmos config deassign default defparam design disable " + "edge else end endcase endconfig endfunction endgenerate " + "endmodule endprimitiveendspecify endtable endtask event for " + "force forever fork function generate genvar highz0 highz1 if " + "ifnone incdir include initial inout input instance integer join " + "large liblist library localparam macromodule medium module nand " + "negedge nmos nor noshowcancelled not notif0 notif1 or output " + "parameter pmos posedge primitive pull0 pull1 pulldown pullup " + "pulsestyle_ondetect pulsestyle_onevent rcmos real realtime reg " + "release repeat rnmos rpmos rtran rtranif0 rtranif1 scalared " + "showcancelled signed small specify specparam strong0 strong1 " + "supply0 supply1 table task time tran tranif0 tranif1 tri tri0 " + "tri1 triand trior trireg unsigned use vectored wait wand weak0 " + "weak1 while wire wor xnor xor"; + + if (set == 3) + return + "$async$and$array $async$and$plane $async$nand$array " + "$async$nand$plane $async$nor$array $async$nor$plane " + "$async$or$array $async$or$plane $bitstoreal $countdrivers " + "$display $displayb $displayh $displayo $dist_chi_square " + "$dist_erlang $dist_exponential $dist_normal $dist_poisson " + "$dist_t $dist_uniform $dumpall $dumpfile $dumpflush $dumplimit " + "$dumpoff $dumpon $dumpportsall $dumpportsflush $dumpportslimit " + "$dumpportsoff $dumpportson $dumpvars $fclose $fdisplayh " + "$fdisplay $fdisplayf $fdisplayb $ferror $fflush $fgetc $fgets " + "$finish $fmonitorb $fmonitor $fmonitorf $fmonitorh $fopen " + "$fread $fscanf $fseek $fsscanf $fstrobe $fstrobebb $fstrobef " + "$fstrobeh $ftel $fullskew $fwriteb $fwritef $fwriteh $fwrite " + "$getpattern $history $hold $incsave $input $itor $key $list " + "$log $monitorb $monitorh $monitoroff $monitoron $monitor " + "$monitoro $nochange $nokey $nolog $period $printtimescale " + "$q_add $q_exam $q_full $q_initialize $q_remove $random " + "$readmemb $readmemh $readmemh $realtime $realtobits $recovery " + "$recrem $removal $reset_count $reset $reset_value $restart " + "$rewind $rtoi $save $scale $scope $sdf_annotate $setup " + "$setuphold $sformat $showscopes $showvariables $showvars " + "$signed $skew $sreadmemb $sreadmemh $stime $stop $strobeb " + "$strobe $strobeh $strobeo $swriteb $swriteh $swriteo $swrite " + "$sync$and$array $sync$and$plane $sync$nand$array " + "$sync$nand$plane $sync$nor$array $sync$nor$plane $sync$or$array " + "$sync$or$plane $test$plusargs $time $timeformat $timeskew " + "$ungetc $unsigned $value$plusargs $width $writeb $writeh $write " + "$writeo"; + + return 0; +} + + +// Return the string of characters that comprise a word. +const char *QsciLexerVerilog::wordCharacters() const +{ + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerVerilog::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x80,0x80); + + case Comment: + case CommentLine: + return QColor(0x00,0x7f,0x00); + + case CommentBang: + return QColor(0x3f,0x7f,0x3f); + + case Number: + case KeywordSet2: + return QColor(0x00,0x7f,0x7f); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case String: + return QColor(0x7f,0x00,0x7f); + + case SystemTask: + case UserKeywordSet: + return QColor(0x80,0x40,0x20); + + case Preprocessor: + return QColor(0x7f,0x7f,0x00); + + case Operator: + return QColor(0x00,0x70,0x70); + + case UnclosedString: + return QColor(0x00,0x00,0x00); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerVerilog::defaultEolFill(int style) const +{ + if (style == CommentBang || style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerVerilog::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case CommentBang: + case UserKeywordSet: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + case Keyword: + case Operator: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the user name of a style. +QString QsciLexerVerilog::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case CommentLine: + return tr("Line comment"); + + case CommentBang: + return tr("Bang comment"); + + case Number: + return tr("Number"); + + case Keyword: + return tr("Primary keywords and identifiers"); + + case String: + return tr("String"); + + case KeywordSet2: + return tr("Secondary keywords and identifiers"); + + case SystemTask: + return tr("System task"); + + case Preprocessor: + return tr("Preprocessor block"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case UnclosedString: + return tr("Unclosed string"); + + case UserKeywordSet: + return tr("User defined tasks and identifiers"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerVerilog::defaultPaper(int style) const +{ + if (style == CommentBang) + return QColor(0xe0,0xf0,0xff); + + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerVerilog::refreshProperties() +{ + setAtElseProp(); + setCommentProp(); + setCompactProp(); + setPreprocProp(); +} + + +// Read properties from the settings. +bool QsciLexerVerilog::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_atelse = qs.value(prefix + "foldatelse", false).toBool(); + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + fold_preproc = qs.value(prefix + "foldpreprocessor", false).toBool(); + fold_atmodule = qs.value(prefix + "foldverilogflags", false).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerVerilog::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldatelse", fold_atelse); + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "foldpreprocessor", fold_preproc); + qs.setValue(prefix + "foldverilogflags", fold_atmodule); + + return rc; +} + + +// Return true if else can be folded. +bool QsciLexerVerilog::foldAtElse() const +{ + return fold_atelse; +} + + +// Set if else can be folded. +void QsciLexerVerilog::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerVerilog::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} + + +// Return true if comments can be folded. +bool QsciLexerVerilog::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerVerilog::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerVerilog::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerVerilog::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerVerilog::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerVerilog::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if preprocessor blocks can be folded. +bool QsciLexerVerilog::foldPreprocessor() const +{ + return fold_preproc; +} + + +// Set if preprocessor blocks can be folded. +void QsciLexerVerilog::setFoldPreprocessor(bool fold) +{ + fold_preproc = fold; + + setPreprocProp(); +} + + +// Set the "fold.preprocessor" property. +void QsciLexerVerilog::setPreprocProp() +{ + emit propertyChanged("fold.preprocessor",(fold_preproc ? "1" : "0")); +} + + +// Return true if modules can be folded. +bool QsciLexerVerilog::foldAtModule() const +{ + return fold_atmodule; +} + + +// Set if modules can be folded. +void QsciLexerVerilog::setFoldAtModule(bool fold) +{ + fold_atmodule = fold; + + setAtModuleProp(); +} + + +// Set the "fold.verilog.flags" property. +void QsciLexerVerilog::setAtModuleProp() +{ + emit propertyChanged("fold.verilog.flags",(fold_atmodule ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexervhdl.cpp b/Qt4Qt5/qscilexervhdl.cpp new file mode 100644 index 0000000..0b7af4a --- /dev/null +++ b/Qt4Qt5/qscilexervhdl.cpp @@ -0,0 +1,424 @@ +// This module implements the QsciLexerVHDL class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexervhdl.h" + +#include +#include +#include + + +// The ctor. +QsciLexerVHDL::QsciLexerVHDL(QObject *parent) + : QsciLexer(parent), + fold_comments(true), fold_compact(true), fold_atelse(true), + fold_atbegin(true), fold_atparenth(true) +{ +} + + +// The dtor. +QsciLexerVHDL::~QsciLexerVHDL() +{ +} + + +// Returns the language name. +const char *QsciLexerVHDL::language() const +{ + return "VHDL"; +} + + +// Returns the lexer name. +const char *QsciLexerVHDL::lexer() const +{ + return "vhdl"; +} + + +// Return the style used for braces. +int QsciLexerVHDL::braceStyle() const +{ + return Attribute; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerVHDL::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x80,0x00,0x80); + + case Comment: + return QColor(0x00,0x7f,0x00); + + case CommentLine: + return QColor(0x3f,0x7f,0x3f); + + case Number: + case StandardOperator: + return QColor(0x00,0x7f,0x7f); + + case String: + return QColor(0x7f,0x00,0x7f); + + case UnclosedString: + return QColor(0x00,0x00,0x00); + + case Keyword: + return QColor(0x00,0x00,0x7f); + + case Attribute: + return QColor(0x80,0x40,0x20); + + case StandardFunction: + return QColor(0x80,0x80,0x20); + + case StandardPackage: + return QColor(0x20,0x80,0x20); + + case StandardType: + return QColor(0x20,0x80,0x80); + + case KeywordSet7: + return QColor(0x80,0x40,0x20); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerVHDL::defaultEolFill(int style) const +{ + if (style == UnclosedString) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerVHDL::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: + case CommentLine: + case KeywordSet7: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerVHDL::keywords(int set) const +{ + if (set == 1) + return + "access after alias all architecture array assert attribute begin " + "block body buffer bus case component configuration constant " + "disconnect downto else elsif end entity exit file for function " + "generate generic group guarded if impure in inertial inout is " + "label library linkage literal loop map new next null of on open " + "others out package port postponed procedure process pure range " + "record register reject report return select severity shared " + "signal subtype then to transport type unaffected units until use " + "variable wait when while with"; + + if (set == 2) + return + "abs and mod nand nor not or rem rol ror sla sll sra srl xnor xor"; + + if (set == 3) + return + "left right low high ascending image value pos val succ pred " + "leftof rightof base range reverse_range length delayed stable " + "quiet transaction event active last_event last_active last_value " + "driving driving_value simple_name path_name instance_name"; + + if (set == 4) + return + "now readline read writeline write endfile resolved to_bit " + "to_bitvector to_stdulogic to_stdlogicvector to_stdulogicvector " + "to_x01 to_x01z to_UX01 rising_edge falling_edge is_x shift_left " + "shift_right rotate_left rotate_right resize to_integer " + "to_unsigned to_signed std_match to_01"; + + if (set == 5) + return + "std ieee work standard textio std_logic_1164 std_logic_arith " + "std_logic_misc std_logic_signed std_logic_textio " + "std_logic_unsigned numeric_bit numeric_std math_complex " + "math_real vital_primitives vital_timing"; + + if (set == 6) + return + "boolean bit character severity_level integer real time " + "delay_length natural positive string bit_vector file_open_kind " + "file_open_status line text side width std_ulogic " + "std_ulogic_vector std_logic std_logic_vector X01 X01Z UX01 UX01Z " + "unsigned signed"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerVHDL::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case CommentLine: + return tr("Comment line"); + + case Number: + return tr("Number"); + + case String: + return tr("String"); + + case Operator: + return tr("Operator"); + + case Identifier: + return tr("Identifier"); + + case UnclosedString: + return tr("Unclosed string"); + + case Keyword: + return tr("Keyword"); + + case StandardOperator: + return tr("Standard operator"); + + case Attribute: + return tr("Attribute"); + + case StandardFunction: + return tr("Standard function"); + + case StandardPackage: + return tr("Standard package"); + + case StandardType: + return tr("Standard type"); + + case KeywordSet7: + return tr("User defined"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerVHDL::defaultPaper(int style) const +{ + if (style == UnclosedString) + return QColor(0xe0,0xc0,0xe0); + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerVHDL::refreshProperties() +{ + setCommentProp(); + setCompactProp(); + setAtElseProp(); + setAtBeginProp(); + setAtParenthProp(); +} + + +// Read properties from the settings. +bool QsciLexerVHDL::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", true).toBool(); + fold_compact = qs.value(prefix + "foldcompact", true).toBool(); + fold_atelse = qs.value(prefix + "foldatelse", true).toBool(); + fold_atbegin = qs.value(prefix + "foldatbegin", true).toBool(); + fold_atparenth = qs.value(prefix + "foldatparenthesis", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerVHDL::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcomments", fold_comments); + qs.setValue(prefix + "foldcompact", fold_compact); + qs.setValue(prefix + "foldatelse", fold_atelse); + qs.setValue(prefix + "foldatbegin", fold_atbegin); + qs.setValue(prefix + "foldatparenthesis", fold_atparenth); + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerVHDL::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerVHDL::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment" property. +void QsciLexerVHDL::setCommentProp() +{ + emit propertyChanged("fold.comment",(fold_comments ? "1" : "0")); +} + + +// Return true if folds are compact. +bool QsciLexerVHDL::foldCompact() const +{ + return fold_compact; +} + + +// Set if folds are compact +void QsciLexerVHDL::setFoldCompact(bool fold) +{ + fold_compact = fold; + + setCompactProp(); +} + + +// Set the "fold.compact" property. +void QsciLexerVHDL::setCompactProp() +{ + emit propertyChanged("fold.compact",(fold_compact ? "1" : "0")); +} + + +// Return true if else blocks can be folded. +bool QsciLexerVHDL::foldAtElse() const +{ + return fold_atelse; +} + + +// Set if else blocks can be folded. +void QsciLexerVHDL::setFoldAtElse(bool fold) +{ + fold_atelse = fold; + + setAtElseProp(); +} + + +// Set the "fold.at.else" property. +void QsciLexerVHDL::setAtElseProp() +{ + emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0")); +} + + +// Return true if begin blocks can be folded. +bool QsciLexerVHDL::foldAtBegin() const +{ + return fold_atbegin; +} + + +// Set if begin blocks can be folded. +void QsciLexerVHDL::setFoldAtBegin(bool fold) +{ + fold_atbegin = fold; + + setAtBeginProp(); +} + + +// Set the "fold.at.Begin" property. +void QsciLexerVHDL::setAtBeginProp() +{ + emit propertyChanged("fold.at.Begin",(fold_atelse ? "1" : "0")); +} + + +// Return true if blocks can be folded at a parenthesis. +bool QsciLexerVHDL::foldAtParenthesis() const +{ + return fold_atparenth; +} + + +// Set if blocks can be folded at a parenthesis. +void QsciLexerVHDL::setFoldAtParenthesis(bool fold) +{ + fold_atparenth = fold; + + setAtParenthProp(); +} + + +// Set the "fold.at.Parenthese" property. +void QsciLexerVHDL::setAtParenthProp() +{ + emit propertyChanged("fold.at.Parenthese",(fold_atparenth ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexerxml.cpp b/Qt4Qt5/qscilexerxml.cpp new file mode 100644 index 0000000..bad85dd --- /dev/null +++ b/Qt4Qt5/qscilexerxml.cpp @@ -0,0 +1,258 @@ +// This module implements the QsciLexerXML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexerxml.h" + +#include +#include +#include + + +// The ctor. +QsciLexerXML::QsciLexerXML(QObject *parent) + : QsciLexerHTML(parent), + scripts(true) +{ +} + + +// The dtor. +QsciLexerXML::~QsciLexerXML() +{ +} + + +// Returns the language name. +const char *QsciLexerXML::language() const +{ + return "XML"; +} + + +// Returns the lexer name. +const char *QsciLexerXML::lexer() const +{ + return "xml"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerXML::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x00,0x00,0x00); + + case Tag: + case UnknownTag: + case XMLTagEnd: + case SGMLDefault: + case SGMLCommand: + return QColor(0x00,0x00,0x80); + + case Attribute: + case UnknownAttribute: + return QColor(0x00,0x80,0x80); + + case HTMLNumber: + return QColor(0x00,0x7f,0x7f); + + case HTMLDoubleQuotedString: + case HTMLSingleQuotedString: + return QColor(0x7f,0x00,0x7f); + + case OtherInTag: + case Entity: + case XMLStart: + case XMLEnd: + return QColor(0x80,0x00,0x80); + + case HTMLComment: + case SGMLComment: + return QColor(0x80,0x80,0x00); + + case CDATA: + case PHPStart: + case SGMLDoubleQuotedString: + case SGMLError: + return QColor(0x80,0x00,0x00); + + case HTMLValue: + return QColor(0x60,0x80,0x60); + + case SGMLParameter: + return QColor(0x00,0x66,0x00); + + case SGMLSingleQuotedString: + return QColor(0x99,0x33,0x00); + + case SGMLSpecial: + return QColor(0x33,0x66,0xff); + + case SGMLEntity: + return QColor(0x33,0x33,0x33); + + case SGMLBlockDefault: + return QColor(0x00,0x00,0x66); + } + + return QsciLexerHTML::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerXML::defaultEolFill(int style) const +{ + if (style == CDATA) + return true; + + return QsciLexerHTML::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerXML::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Default: + case Entity: + case CDATA: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman",11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter",10); +#endif + break; + + case XMLStart: + case XMLEnd: + case SGMLCommand: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + default: + f = QsciLexerHTML::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerXML::keywords(int set) const +{ + if (set == 6) + return QsciLexerHTML::keywords(set); + + return 0; +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerXML::defaultPaper(int style) const +{ + switch (style) + { + case CDATA: + return QColor(0xff,0xf0,0xf0); + + case SGMLDefault: + case SGMLCommand: + case SGMLParameter: + case SGMLDoubleQuotedString: + case SGMLSingleQuotedString: + case SGMLSpecial: + case SGMLEntity: + case SGMLComment: + return QColor(0xef,0xef,0xff); + + case SGMLError: + return QColor(0xff,0x66,0x66); + + case SGMLBlockDefault: + return QColor(0xcc,0xcc,0xe0); + } + + return QsciLexerHTML::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerXML::refreshProperties() +{ + setScriptsProp(); +} + + +// Read properties from the settings. +bool QsciLexerXML::readProperties(QSettings &qs, const QString &prefix) +{ + int rc = QsciLexerHTML::readProperties(qs, prefix), num; + + scripts = qs.value(prefix + "scriptsstyled", true).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerXML::writeProperties(QSettings &qs, const QString &prefix) const +{ + int rc = QsciLexerHTML::writeProperties(qs, prefix); + + qs.setValue(prefix + "scriptsstyled", scripts); + + return rc; +} + + +// Return true if scripts are styled. +bool QsciLexerXML::scriptsStyled() const +{ + return scripts; +} + + +// Set if scripts are styled. +void QsciLexerXML::setScriptsStyled(bool styled) +{ + scripts = styled; + + setScriptsProp(); +} + + +// Set the "lexer.xml.allow.scripts" property. +void QsciLexerXML::setScriptsProp() +{ + emit propertyChanged("lexer.xml.allow.scripts",(scripts ? "1" : "0")); +} diff --git a/Qt4Qt5/qscilexeryaml.cpp b/Qt4Qt5/qscilexeryaml.cpp new file mode 100644 index 0000000..b8efcd1 --- /dev/null +++ b/Qt4Qt5/qscilexeryaml.cpp @@ -0,0 +1,275 @@ +// This module implements the QsciLexerYAML class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscilexeryaml.h" + +#include +#include +#include + + +// The ctor. +QsciLexerYAML::QsciLexerYAML(QObject *parent) + : QsciLexer(parent), + fold_comments(false) +{ +} + + +// The dtor. +QsciLexerYAML::~QsciLexerYAML() +{ +} + + +// Returns the language name. +const char *QsciLexerYAML::language() const +{ + return "YAML"; +} + + +// Returns the lexer name. +const char *QsciLexerYAML::lexer() const +{ + return "yaml"; +} + + +// Returns the foreground colour of the text for a style. +QColor QsciLexerYAML::defaultColor(int style) const +{ + switch (style) + { + case Default: + return QColor(0x00,0x00,0x00); + + case Comment: + return QColor(0x00,0x88,0x00); + + case Identifier: + return QColor(0x00,0x00,0x88); + + case Keyword: + return QColor(0x88,0x00,0x88); + + case Number: + return QColor(0x88,0x00,0x00); + + case Reference: + return QColor(0x00,0x88,0x88); + + case DocumentDelimiter: + case SyntaxErrorMarker: + return QColor(0xff,0xff,0xff); + + case TextBlockMarker: + return QColor(0x33,0x33,0x66); + } + + return QsciLexer::defaultColor(style); +} + + +// Returns the end-of-line fill for a style. +bool QsciLexerYAML::defaultEolFill(int style) const +{ + if (style == DocumentDelimiter || style == SyntaxErrorMarker) + return true; + + return QsciLexer::defaultEolFill(style); +} + + +// Returns the font of the text for a style. +QFont QsciLexerYAML::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Default: + case TextBlockMarker: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman", 11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter", 10); +#endif + break; + + case Identifier: + f = QsciLexer::defaultFont(style); + f.setBold(true); + break; + + case DocumentDelimiter: +#if defined(Q_OS_WIN) + f = QFont("Comic Sans MS",9); +#elif defined(Q_OS_MAC) + f = QFont("Comic Sans MS", 12); +#else + f = QFont("Bitstream Vera Serif",9); +#endif + f.setBold(true); + break; + + case SyntaxErrorMarker: +#if defined(Q_OS_WIN) + f = QFont("Times New Roman", 11); +#elif defined(Q_OS_MAC) + f = QFont("Times New Roman", 12); +#else + f = QFont("Bitstream Charter", 10); +#endif + f.setBold(true); + f.setItalic(true); + break; + + default: + f = QsciLexer::defaultFont(style); + } + + return f; +} + + +// Returns the set of keywords. +const char *QsciLexerYAML::keywords(int set) const +{ + if (set == 1) + return "true false yes no"; + + return 0; +} + + +// Returns the user name of a style. +QString QsciLexerYAML::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + + case Comment: + return tr("Comment"); + + case Identifier: + return tr("Identifier"); + + case Keyword: + return tr("Keyword"); + + case Number: + return tr("Number"); + + case Reference: + return tr("Reference"); + + case DocumentDelimiter: + return tr("Document delimiter"); + + case TextBlockMarker: + return tr("Text block marker"); + + case SyntaxErrorMarker: + return tr("Syntax error marker"); + + case Operator: + return tr("Operator"); + } + + return QString(); +} + + +// Returns the background colour of the text for a style. +QColor QsciLexerYAML::defaultPaper(int style) const +{ + switch (style) + { + case DocumentDelimiter: + return QColor(0x00,0x00,0x88); + + case SyntaxErrorMarker: + return QColor(0xff,0x00,0x00); + } + + return QsciLexer::defaultPaper(style); +} + + +// Refresh all properties. +void QsciLexerYAML::refreshProperties() +{ + setCommentProp(); +} + + +// Read properties from the settings. +bool QsciLexerYAML::readProperties(QSettings &qs,const QString &prefix) +{ + int rc = true; + + fold_comments = qs.value(prefix + "foldcomments", false).toBool(); + + return rc; +} + + +// Write properties to the settings. +bool QsciLexerYAML::writeProperties(QSettings &qs,const QString &prefix) const +{ + int rc = true; + + qs.setValue(prefix + "foldcomments", fold_comments); + + return rc; +} + + +// Return true if comments can be folded. +bool QsciLexerYAML::foldComments() const +{ + return fold_comments; +} + + +// Set if comments can be folded. +void QsciLexerYAML::setFoldComments(bool fold) +{ + fold_comments = fold; + + setCommentProp(); +} + + +// Set the "fold.comment.yaml" property. +void QsciLexerYAML::setCommentProp() +{ + emit propertyChanged("fold.comment.yaml",(fold_comments ? "1" : "0")); +} diff --git a/Qt4Qt5/qscimacro.cpp b/Qt4Qt5/qscimacro.cpp new file mode 100644 index 0000000..1bd4fb9 --- /dev/null +++ b/Qt4Qt5/qscimacro.cpp @@ -0,0 +1,323 @@ +// This module implements the QsciMacro class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscimacro.h" + +#include + +#include "Qsci/qsciscintilla.h" + + +static int fromHex(unsigned char ch); + + + +// The ctor. +QsciMacro::QsciMacro(QsciScintilla *parent) + : QObject(parent), qsci(parent) +{ +} + + +// The ctor that initialises the macro. +QsciMacro::QsciMacro(const QString &asc, QsciScintilla *parent) + : QObject(parent), qsci(parent) +{ + load(asc); +} + + +// The dtor. +QsciMacro::~QsciMacro() +{ +} + + +// Clear the contents of the macro. +void QsciMacro::clear() +{ + macro.clear(); +} + + +// Read a macro from a string. +bool QsciMacro::load(const QString &asc) +{ + bool ok = true; + + macro.clear(); + + QStringList fields = asc.split(' '); + + int f = 0; + + while (f < fields.size()) + { + Macro cmd; + unsigned len; + + // Extract the 3 fixed fields. + if (f + 3 > fields.size()) + { + ok = false; + break; + } + + cmd.msg = fields[f++].toUInt(&ok); + + if (!ok) + break; + + cmd.wParam = fields[f++].toULong(&ok); + + if (!ok) + break; + + len = fields[f++].toUInt(&ok); + + if (!ok) + break; + + // Extract any text. + if (len) + { + if (f + 1 > fields.size()) + { + ok = false; + break; + } + + QByteArray ba = fields[f++].toLatin1(); + const char *sp = ba.data(); + + if (!sp) + { + ok = false; + break; + } + + // Because of historical bugs the length field is unreliable. + bool embedded_null = false; + unsigned char ch; + + while ((ch = *sp++) != '\0') + { + if (ch == '"' || ch <= ' ' || ch >= 0x7f) + { + ok = false; + break; + } + + if (ch == '\\') + { + int b1, b2; + + if ((b1 = fromHex(*sp++)) < 0 || + (b2 = fromHex(*sp++)) < 0) + { + ok = false; + break; + } + + ch = (b1 << 4) + b2; + } + + if (ch == '\0') + { + // Don't add it now as it may be the terminating '\0'. + embedded_null = true; + } + else + { + if (embedded_null) + { + // Add the pending embedded '\0'. + cmd.text += '\0'; + embedded_null = false; + } + + cmd.text += ch; + } + } + + if (!ok) + break; + + } + + macro.append(cmd); + } + + if (!ok) + macro.clear(); + + return ok; +} + + +// Write a macro to a string. +QString QsciMacro::save() const +{ + QString ms; + + QList::const_iterator it; + + for (it = macro.begin(); it != macro.end(); ++it) + { + if (!ms.isEmpty()) + ms += ' '; + + unsigned len = (*it).text.size(); + QString m; + + ms += m.sprintf("%u %lu %u", (*it).msg, (*it).wParam, len); + + if (len) + { + // In Qt v3, if the length is greater than zero then it also + // includes the '\0', so we need to make sure that Qt v4 writes the + // '\0'. That the '\0' is written at all is a bug because + // QCString::size() is used instead of QCString::length(). We + // don't fix this so as not to break old macros. However this is + // still broken because we have already written the unadjusted + // length. So, in summary, the length field should be interpreted + // as a zero/non-zero value, and the end of the data is either at + // the next space or the very end of the data. + ++len; + + ms += ' '; + + const char *cp = (*it).text.data(); + + while (len--) + { + unsigned char ch = *cp++; + + if (ch == '\\' || ch == '"' || ch <= ' ' || ch >= 0x7f) + { + QString buf; + + ms += buf.sprintf("\\%02x", ch); + } + else + ms += ch; + } + } + } + + return ms; +} + + +// Play the macro. +void QsciMacro::play() +{ + if (!qsci) + return; + + QList::const_iterator it; + + for (it = macro.begin(); it != macro.end(); ++it) + qsci->SendScintilla((*it).msg, (*it).wParam, (*it).text.data()); +} + + +// Start recording. +void QsciMacro::startRecording() +{ + if (!qsci) + return; + + macro.clear(); + + connect(qsci, SIGNAL(SCN_MACRORECORD(unsigned int, unsigned long, void *)), + SLOT(record(unsigned int, unsigned long, void *))); + + qsci->SendScintilla(QsciScintillaBase::SCI_STARTRECORD); +} + + +// End recording. +void QsciMacro::endRecording() +{ + if (!qsci) + return; + + qsci->SendScintilla(QsciScintillaBase::SCI_STOPRECORD); + qsci->disconnect(this); +} + + +// Record a command. +void QsciMacro::record(unsigned int msg, unsigned long wParam, void *lParam) +{ + Macro m; + + m.msg = msg; + m.wParam = wParam; + + // Determine commands which need special handling of the parameters. + switch (msg) + { + case QsciScintillaBase::SCI_ADDTEXT: + m.text = QByteArray(reinterpret_cast(lParam), wParam); + break; + + case QsciScintillaBase::SCI_REPLACESEL: + if (!macro.isEmpty() && macro.last().msg == QsciScintillaBase::SCI_REPLACESEL) + { + // This is the command used for ordinary user input so it's a + // significant space reduction to append it to the previous + // command. + + macro.last().text.append(reinterpret_cast(lParam)); + return; + } + + /* Drop through. */ + + case QsciScintillaBase::SCI_INSERTTEXT: + case QsciScintillaBase::SCI_APPENDTEXT: + case QsciScintillaBase::SCI_SEARCHNEXT: + case QsciScintillaBase::SCI_SEARCHPREV: + m.text.append(reinterpret_cast(lParam)); + break; + } + + macro.append(m); +} + + +// Return the given hex character as a binary. +static int fromHex(unsigned char ch) +{ + if (ch >= '0' && ch <= '9') + return ch - '0'; + + if (ch >= 'a' && ch <= 'f') + return ch - 'a' + 10; + + return -1; +} diff --git a/Qt4Qt5/qscintilla.pro b/Qt4Qt5/qscintilla.pro new file mode 100644 index 0000000..0ec6126 --- /dev/null +++ b/Qt4Qt5/qscintilla.pro @@ -0,0 +1,382 @@ +# The project file for the QScintilla library. +# +# Copyright (c) 2014 Riverbank Computing Limited +# +# This file is part of QScintilla. +# +# This file may be used under the terms of the GNU General Public +# License versions 2.0 or 3.0 as published by the Free Software +# Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +# included in the packaging of this file. Alternatively you may (at +# your option) use any later version of the GNU General Public +# License if such license has been publicly approved by Riverbank +# Computing Limited (or its successors, if any) and the KDE Free Qt +# Foundation. In addition, as a special exception, Riverbank gives you +# certain additional rights. These rights are described in the Riverbank +# GPL Exception version 1.1, which can be found in the file +# GPL_EXCEPTION.txt in this package. +# +# If you are unsure which license is appropriate for your use, please +# contact the sales department at sales@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +# This must be kept in sync with Python/configure.py, Python/configure-old.py, +# example-Qt4Qt5/application.pro and designer-Qt4Qt5/designer.pro. +!win32:VERSION = 11.3.0 + +TEMPLATE = lib +TARGET = qscintilla2 +CONFIG += qt warn_off release thread exceptions +INCLUDEPATH += . ../include ../lexlib ../src + +DEFINES += QSCINTILLA_MAKE_DLL SCINTILLA_QT SCI_LEXER +greaterThan(QT_MAJOR_VERSION, 3) { + CONFIG(staticlib) { + DEFINES -= QSCINTILLA_MAKE_DLL + } +} + +greaterThan(QT_MAJOR_VERSION, 4) { + QT += widgets printsupport + + greaterThan(QT_MINOR_VERSION, 1) { + macx:QT += macextras + } + + # Work around QTBUG-39300. + CONFIG -= android_install +} + +# Comment this in if you want the internal Scintilla classes to be placed in a +# Scintilla namespace rather than pollute the global namespace. +#DEFINES += SCI_NAMESPACE + +# Handle both Qt v4 and v3. +target.path = $$[QT_INSTALL_LIBS] +isEmpty(target.path) { + target.path = $(QTDIR)/lib +} + +header.path = $$[QT_INSTALL_HEADERS] +header.files = Qsci +isEmpty(header.path) { + header.path = $(QTDIR)/include/Qsci + header.files = Qsci/qsci*.h +} + +trans.path = $$[QT_INSTALL_TRANSLATIONS] +trans.files = qscintilla_*.qm +isEmpty(trans.path) { + trans.path = $(QTDIR)/translations +} + +qsci.path = $$[QT_INSTALL_DATA] +qsci.files = ../qsci +isEmpty(qsci.path) { + qsci.path = $(QTDIR) +} + +INSTALLS += header trans qsci target + +greaterThan(QT_MAJOR_VERSION, 3) { + features.path = $$[QT_INSTALL_DATA]/mkspecs/features + features.files = $$PWD/features/qscintilla2.prf + INSTALLS += features +} + +HEADERS = \ + ./Qsci/qsciglobal.h \ + ./Qsci/qsciscintilla.h \ + ./Qsci/qsciscintillabase.h \ + ./Qsci/qsciabstractapis.h \ + ./Qsci/qsciapis.h \ + ./Qsci/qscicommand.h \ + ./Qsci/qscicommandset.h \ + ./Qsci/qscidocument.h \ + ./Qsci/qscilexer.h \ + ./Qsci/qscilexeravs.h \ + ./Qsci/qscilexerbash.h \ + ./Qsci/qscilexerbatch.h \ + ./Qsci/qscilexercmake.h \ + ./Qsci/qscilexercoffeescript.h \ + ./Qsci/qscilexercpp.h \ + ./Qsci/qscilexercsharp.h \ + ./Qsci/qscilexercss.h \ + ./Qsci/qscilexercustom.h \ + ./Qsci/qscilexerd.h \ + ./Qsci/qscilexerdiff.h \ + ./Qsci/qscilexerfortran.h \ + ./Qsci/qscilexerfortran77.h \ + ./Qsci/qscilexerhtml.h \ + ./Qsci/qscilexeridl.h \ + ./Qsci/qscilexerjava.h \ + ./Qsci/qscilexerjavascript.h \ + ./Qsci/qscilexerlua.h \ + ./Qsci/qscilexermakefile.h \ + ./Qsci/qscilexermatlab.h \ + ./Qsci/qscilexeroctave.h \ + ./Qsci/qscilexerpascal.h \ + ./Qsci/qscilexerperl.h \ + ./Qsci/qscilexerpostscript.h \ + ./Qsci/qscilexerpo.h \ + ./Qsci/qscilexerpov.h \ + ./Qsci/qscilexerproperties.h \ + ./Qsci/qscilexerpython.h \ + ./Qsci/qscilexerruby.h \ + ./Qsci/qscilexerspice.h \ + ./Qsci/qscilexersql.h \ + ./Qsci/qscilexertcl.h \ + ./Qsci/qscilexertex.h \ + ./Qsci/qscilexerverilog.h \ + ./Qsci/qscilexervhdl.h \ + ./Qsci/qscilexerxml.h \ + ./Qsci/qscilexeryaml.h \ + ./Qsci/qscimacro.h \ + ./Qsci/qsciprinter.h \ + ./Qsci/qscistyle.h \ + ./Qsci/qscistyledtext.h \ + ListBoxQt.h \ + SciClasses.h \ + SciNamespace.h \ + ScintillaQt.h \ + ../include/ILexer.h \ + ../include/Platform.h \ + ../include/SciLexer.h \ + ../include/Scintilla.h \ + ../include/ScintillaWidget.h \ + ../lexlib/Accessor.h \ + ../lexlib/CharacterCategory.h \ + ../lexlib/CharacterSet.h \ + ../lexlib/LexAccessor.h \ + ../lexlib/LexerBase.h \ + ../lexlib/LexerModule.h \ + ../lexlib/LexerNoExceptions.h \ + ../lexlib/LexerSimple.h \ + ../lexlib/OptionSet.h \ + ../lexlib/PropSetSimple.h \ + ../lexlib/StyleContext.h \ + ../lexlib/SubStyles.h \ + ../lexlib/WordList.h \ + ../src/AutoComplete.h \ + ../src/CallTip.h \ + ../src/CaseConvert.h \ + ../src/CaseFolder.h \ + ../src/Catalogue.h \ + ../src/CellBuffer.h \ + ../src/CharClassify.h \ + ../src/ContractionState.h \ + ../src/Decoration.h \ + ../src/Document.h \ + ../src/Editor.h \ + ../src/ExternalLexer.h \ + ../src/FontQuality.h \ + ../src/Indicator.h \ + ../src/KeyMap.h \ + ../src/LineMarker.h \ + ../src/Partitioning.h \ + ../src/PerLine.h \ + ../src/PositionCache.h \ + ../src/RESearch.h \ + ../src/RunStyles.h \ + ../src/ScintillaBase.h \ + ../src/Selection.h \ + ../src/SplitVector.h \ + ../src/Style.h \ + ../src/UnicodeFromUTF8.h \ + ../src/UniConversion.h \ + ../src/ViewStyle.h \ + ../src/XPM.h + +SOURCES = \ + qsciscintilla.cpp \ + qsciscintillabase.cpp \ + qsciabstractapis.cpp \ + qsciapis.cpp \ + qscicommand.cpp \ + qscicommandset.cpp \ + qscidocument.cpp \ + qscilexer.cpp \ + qscilexeravs.cpp \ + qscilexerbash.cpp \ + qscilexerbatch.cpp \ + qscilexercmake.cpp \ + qscilexercoffeescript.cpp \ + qscilexercpp.cpp \ + qscilexercsharp.cpp \ + qscilexercss.cpp \ + qscilexercustom.cpp \ + qscilexerd.cpp \ + qscilexerdiff.cpp \ + qscilexerfortran.cpp \ + qscilexerfortran77.cpp \ + qscilexerhtml.cpp \ + qscilexeridl.cpp \ + qscilexerjava.cpp \ + qscilexerjavascript.cpp \ + qscilexerlua.cpp \ + qscilexermakefile.cpp \ + qscilexermatlab.cpp \ + qscilexeroctave.cpp \ + qscilexerpascal.cpp \ + qscilexerperl.cpp \ + qscilexerpostscript.cpp \ + qscilexerpo.cpp \ + qscilexerpov.cpp \ + qscilexerproperties.cpp \ + qscilexerpython.cpp \ + qscilexerruby.cpp \ + qscilexerspice.cpp \ + qscilexersql.cpp \ + qscilexertcl.cpp \ + qscilexertex.cpp \ + qscilexerverilog.cpp \ + qscilexervhdl.cpp \ + qscilexerxml.cpp \ + qscilexeryaml.cpp \ + qscimacro.cpp \ + qsciprinter.cpp \ + qscistyle.cpp \ + qscistyledtext.cpp \ + MacPasteboardMime.cpp \ + InputMethod.cpp \ + SciClasses.cpp \ + ListBoxQt.cpp \ + PlatQt.cpp \ + ScintillaQt.cpp \ + ../lexers/LexA68k.cpp \ + ../lexers/LexAbaqus.cpp \ + ../lexers/LexAda.cpp \ + ../lexers/LexAPDL.cpp \ + ../lexers/LexAsm.cpp \ + ../lexers/LexAsn1.cpp \ + ../lexers/LexASY.cpp \ + ../lexers/LexAU3.cpp \ + ../lexers/LexAVE.cpp \ + ../lexers/LexAVS.cpp \ + ../lexers/LexBaan.cpp \ + ../lexers/LexBash.cpp \ + ../lexers/LexBasic.cpp \ + ../lexers/LexBullant.cpp \ + ../lexers/LexCaml.cpp \ + ../lexers/LexCLW.cpp \ + ../lexers/LexCmake.cpp \ + ../lexers/LexCOBOL.cpp \ + ../lexers/LexCoffeeScript.cpp \ + ../lexers/LexConf.cpp \ + ../lexers/LexCPP.cpp \ + ../lexers/LexCrontab.cpp \ + ../lexers/LexCsound.cpp \ + ../lexers/LexCSS.cpp \ + ../lexers/LexD.cpp \ + ../lexers/LexECL.cpp \ + ../lexers/LexEiffel.cpp \ + ../lexers/LexErlang.cpp \ + ../lexers/LexEScript.cpp \ + ../lexers/LexFlagship.cpp \ + ../lexers/LexForth.cpp \ + ../lexers/LexFortran.cpp \ + ../lexers/LexGAP.cpp \ + ../lexers/LexGui4Cli.cpp \ + ../lexers/LexHaskell.cpp \ + ../lexers/LexHTML.cpp \ + ../lexers/LexInno.cpp \ + ../lexers/LexKix.cpp \ + ../lexers/LexKVIrc.cpp \ + ../lexers/LexLaTex.cpp \ + ../lexers/LexLisp.cpp \ + ../lexers/LexLout.cpp \ + ../lexers/LexLua.cpp \ + ../lexers/LexMagik.cpp \ + ../lexers/LexMarkdown.cpp \ + ../lexers/LexMatlab.cpp \ + ../lexers/LexMetapost.cpp \ + ../lexers/LexMMIXAL.cpp \ + ../lexers/LexModula.cpp \ + ../lexers/LexMPT.cpp \ + ../lexers/LexMSSQL.cpp \ + ../lexers/LexMySQL.cpp \ + ../lexers/LexNimrod.cpp \ + ../lexers/LexNsis.cpp \ + ../lexers/LexOpal.cpp \ + ../lexers/LexOScript.cpp \ + ../lexers/LexOthers.cpp \ + ../lexers/LexPascal.cpp \ + ../lexers/LexPB.cpp \ + ../lexers/LexPerl.cpp \ + ../lexers/LexPLM.cpp \ + ../lexers/LexPO.cpp \ + ../lexers/LexPOV.cpp \ + ../lexers/LexPowerPro.cpp \ + ../lexers/LexPowerShell.cpp \ + ../lexers/LexProgress.cpp \ + ../lexers/LexPS.cpp \ + ../lexers/LexPython.cpp \ + ../lexers/LexR.cpp \ + ../lexers/LexRebol.cpp \ + ../lexers/LexRuby.cpp \ + ../lexers/LexRust.cpp \ + ../lexers/LexScriptol.cpp \ + ../lexers/LexSmalltalk.cpp \ + ../lexers/LexSML.cpp \ + ../lexers/LexSorcus.cpp \ + ../lexers/LexSpecman.cpp \ + ../lexers/LexSpice.cpp \ + ../lexers/LexSQL.cpp \ + ../lexers/LexSTTXT.cpp \ + ../lexers/LexTACL.cpp \ + ../lexers/LexTADS3.cpp \ + ../lexers/LexTAL.cpp \ + ../lexers/LexTCL.cpp \ + ../lexers/LexTCMD.cpp \ + ../lexers/LexTeX.cpp \ + ../lexers/LexTxt2tags.cpp \ + ../lexers/LexVB.cpp \ + ../lexers/LexVerilog.cpp \ + ../lexers/LexVHDL.cpp \ + ../lexers/LexVisualProlog.cpp \ + ../lexers/LexYAML.cpp \ + ../lexlib/Accessor.cpp \ + ../lexlib/CharacterCategory.cpp \ + ../lexlib/CharacterSet.cpp \ + ../lexlib/LexerBase.cpp \ + ../lexlib/LexerModule.cpp \ + ../lexlib/LexerNoExceptions.cpp \ + ../lexlib/LexerSimple.cpp \ + ../lexlib/PropSetSimple.cpp \ + ../lexlib/StyleContext.cpp \ + ../lexlib/WordList.cpp \ + ../src/AutoComplete.cpp \ + ../src/CallTip.cpp \ + ../src/CaseConvert.cpp \ + ../src/CaseFolder.cpp \ + ../src/Catalogue.cpp \ + ../src/CellBuffer.cpp \ + ../src/CharClassify.cpp \ + ../src/ContractionState.cpp \ + ../src/Decoration.cpp \ + ../src/Document.cpp \ + ../src/Editor.cpp \ + ../src/ExternalLexer.cpp \ + ../src/Indicator.cpp \ + ../src/KeyMap.cpp \ + ../src/LineMarker.cpp \ + ../src/PerLine.cpp \ + ../src/PositionCache.cpp \ + ../src/RESearch.cpp \ + ../src/RunStyles.cpp \ + ../src/ScintillaBase.cpp \ + ../src/Selection.cpp \ + ../src/Style.cpp \ + ../src/UniConversion.cpp \ + ../src/ViewStyle.cpp \ + ../src/XPM.cpp + +TRANSLATIONS = \ + qscintilla_cs.ts \ + qscintilla_de.ts \ + qscintilla_es.ts \ + qscintilla_fr.ts \ + qscintilla_pt_br.ts diff --git a/Qt4Qt5/qscintilla_cs.qm b/Qt4Qt5/qscintilla_cs.qm new file mode 100644 index 0000000000000000000000000000000000000000..78d1ea154409d42fd32c93331377caaab750d7a4 GIT binary patch literal 43834 zcmd5_34D~*wZ9>m?3n}-StATPL_iFSV5vY7AYgz`{h-~WDRzWsj749oB74-PZ) z-E+=8_iXpv<(u<^;NV|;aL>MfA6fmAtG@B%>vfEkcQLkdI%6C55WFduvDF(GJ10SK z%>kD8?taF4i<#$vql^U@^L+QOjO`1siI+Xgn13{z?JZ!eX(3y5!?lbpe3Lcq-^p0= z2y42#ov~r#35Hh_?D-wR?Vqq^cRt0~-eYXV#vd^@;t)aKGX&57oM5PiwcUI_V`q(F zmtX%FW0S5VczZRwvN*-qcGq!Uf+q@fmUC_twY+JzC z4M*60kN%dirH`=tfBSdFzWf+_{57<@XgYg-DEhN&Ec?~(cQDo+V}Fc&$XG`c!SKJc zk3w%U)?Sq}Xk0(W`t8XHef)LC293+veBI07>&H2pKg9O~zMXT;Pr=X1Kjj=4dz7)t z>vIlP0q@1X$a%V(<9(Un%{2sXKT2@lr#ZiV8_y5kO0c?w;D~mDW7`N$d7WVGW`gHG zPB8c`!F8_?T>oDLd*33s`67bX+(_`oa)P^d5WMq6f(QELy!Po73~qJKv0E{I6V~S( z`#OhDhV&8v*H?(X-}Y_uyJ*zct{o-h1St~b92&$Z-M zEC-&-4|3#y^Jk-IrrM%;Q5@o+#Qu;7;AVvcgMd%-YcHS-L?HNWBq@h z`*iFvjQ76W7pw2bb06gXW$qq~!|l1BJcn`2%gZZx=Pt$;2lA%hGnTROhx0DGA9O12 z%e(B)pj$CNujA&Ipzr_4i;RO_wB+RNUkrUj%cozu8u;$Zd+wnhf{$~7FqYuPcM0A!#Z&en z=q$g`_6^L{s< zv1vae*tvyZ`~bmQZyePjB52_`l+D?NX?^(bRY4&~Q8`%}hZ59QCj5_;Ac z%U=`6_k%9W-}>4x$fX~_a}N@n_1*kCUJN2Wd@ui=3FD#f!}9Na5dLAtr}>ZX`xayM zbMl|u{XAorgz{h54fzaNM6h}r!4a}~X8 zbw@#g7xoo;w4nT3`xq;_s-XPO9>8M-gB}sMsU?&R-zVlu9rJchIzVkTrYG-%B zg9i&3yDka10k9G9Rlu(Uz61F4f(H-r@6Rsy!>)sfQ$Hwp{iz4Q@B0PE{s{hO|Gtpj z{YS>GIJ>ZD4SsL9pm5xA@OSaT!kTj6UDjJTt#dEDSZCqdC$EE_IbOKsl`9dyE-Kvi z(jdkb+*^3#Tj<|;M+pXgNpSsy!kZ(ljFo&`c-z(RlfJVEj+{tv(jJ0q&nw*b$YI95 zbW`D>S|kOr&4mx$13&LyS$O21&oLHlEqwPQ@OR~w!awZPr!=iCh$3uU%5!`mTXznz$TQj$4-j-MGs$z&uy<29nQh;gPtci^f7{?stHcqLvZq!3C{d0 z!F59k_H+{5`Z2-nHxRt}fubW1!LM(*z3Atw#vs3WujuzDz6`(d{bCjdzhz~`o=FQB zyWU@1`N2`dxvPo?|Ic*Bn%j!UzXLe(o5eMcv@kX_k6>yf!R!87ymJX-65KtN;O%L8`<|xHcm0OoSAp*u-v3~6 z*VDgcZ0oM#b^kI6`D0b_`p_PXqT+W~w?bbI6n|8CKV#nE#UHJn0eEjo*_y-9rvWA2xzLB@50#9%Z3klmA1|43 z?{?V#{*o`%zJNUDi;^#0`F+OfhLz0!G2%e^@sb6vK8yVLv640S9z}jSwqYTssbMW<0adsk3s(OX~}Iz&qAK`0l|e25ZrfD$xr(FA>WFW zJilcCW1|leoYF<`mLHblYZ=DT4vZ$!^>GJ1bN0*oW`fbQ#$;i^byUn~9R zc=(6r7fL_hcq{zU+Oh#GkZ(J| z^ZE!*>m@k*dV-xb1mlYdCPM_TeSzRzR};MZ8`HVhK{U^cMg#;tF5KN?> z>q|ekZ4P~Z(>8*)_V?cRH~5P=CEojgau{;{oA-MYH!ybXm%KkaRE4;)-TQnr4}N;D z_t#C}wZCb-N~K6u_9_@D0b(OZFM(l5)Wp9B8S zT3Np0Kk$89L;22H;9W7KeD}l@;@P*$AB!%4UCu6lip%BF4du@s#qX6v%inn9S;jX1 z3dzBNhjTHpC}pczg7xJ1S(v2?`BWpH|Ec#!1EEL({#kNyG7zqhb$9!t!5rSAk+rct z){a(w7G<9?A4{SPzIr(AN{p2g$s_g7~&a>39G7SiH{{=t(3((UdO|j*5FaTu7i7qHoU` z#u5rTuY^vKp-^g*B&n^%5X8WoTShDDds5DP4mII6^H|0)*|Ru-wMZJX$x4!J6W1QL zPU-mI2Ix&Hq;MGM@+bU(R45@7L5&lB!AMmaC|HiwI6ZO|6;vV!nMWk^P*q<>%n?dT zAL>X6xi(0}gg7qQBeYMEN>!R?8FeDu*(Jtpln7aI5aqQlu)K+DuSw=Z(%9pPP;WTa zll0jO-5?h@frw-*F$cM9h$VuV$i;-%S}rnbYq|JX1B@gNR>QDc)wa!QUD?nRkAwq$ zD51S_uVyQ_Na1czUz3*p*umSevj6f$nwjHDFa`# zU}Gv24f+!BrT%DVPsE>4x$*^L8=}4#w9Qh7TeIYmoP7|c8R7i{XFLc{m{6UbOYY+S zPO&#^&yqW?X|e?QzqO&rN(;}mm1G3ADoN5_^@FF8VY7BmwPjh-br(Eec?x(oswr0w z?oW_yD5^TamfN1Vy`o;8C6}bAA}=RWSXVq+s%xEq$7~IIcv@PDi*aGha~$ZqGg=$U zmOXEDpsX4s&jz_03`!2e562fm>`4bqjbj^a-TycuerLiT?-B;jC9YYCf(>`R!OVJ3bGg+apKYB%!Z@SHoL$v zCN**E_S~y1>4_{DIewUV8DYbV<>MC2*|x+)V58^>gv`x-i9?};w3?TjdyH~YcC(qOp_23D%!*7a8!s9DNzy0L3E zGIZ{gy%{pmR4(}3|3Yva=~Y5`(kgmrEt3_SL9r+tC4z| z{mGPgjyelPRjwwze6Eg}CVVv-pO9wz{1dl5n#=Q9GM|W?K!L%}HYvWh|B6r$B~VcC z1*rBa%;RWwL8TO`J96}0Y4n-7;~_19L@W~V^@c+mTzF+l4YDIG8jnF*@=huS1%S{( z5N$dTLX5o-A+ItA@rPGj&rMgO;~2H1G#JwNiiiic#yUGAAzwI}MD6)p#G*v1FD@QX zF9x(1#nzOePF}D&7V8EE;o$H_QmNa}s8DJY>k;R~UKE`|tOMH6gYKvizMvu0;qQq^ zjY@eEgvae+YMk zsS+zfauND?0{)KM%6s5giAoAj1s8?-WY=lNP{Wp_Eh(nt8XOm|pYci>Ej6Ur8#$LM z7)zUYv6Y(@xD)rTIHwdEBr&5j%U{;h-EP&B3S?MuaFQ?yp>R1?5B#Z^RE#!vpiww* zDM`C|{WbGJ9M+l$$D!9j*JC*liW=wIjnU+Sqq=WU>3LC|Kd>$p4y;RZX_YC;SLaW5 zN!nK-tx$+$UBFk4(qa}gbffHoW~W)(1r&=}JqCj>d#MF>&w@mPhE>pDI%LZ2gVJHD zZUiCYw8MnT(_9+sL5h;9b+JK>p#&enKo1w5FBpo1yTj=P4FRz%j8TXsGiwx}aIhOe z3zvo?XgP|C2a?z46B{0A{V+hkBv0-PRe4r6qdwG)HKK$sv@!0FCb7n7q06N(NFIxM zC{bNmeoMfQI=V%hg{l_5CuT6_(l4?XdTw3vkyDuZMy$y6WGPY11@ zZc9g~?;2V|478l|zgD5v0wWH?k8*dPfckVIGD@L79ZmSuf#(qFRQzmC3zO4uJcT87 zT24n2kq9N_EW#|sOntr?gM)`MH*o3h%?(FMjxEF{Ln_?Caiik%L#}dBwNG!09M*=g}6$q>$SO70o^BK7ut+h76cZA6kK5p9lPgpW=!K_lF z&!bvGfmk%?PxQ%lLq?9UoStr4*!dYqlFX7Ah1eZ}9Qb~w-W*=Fpjj5JHA@qA#fHjP zMgx&p(qir{`-3VrFFjh^-*AaxloTBK^Cl;HC_rnNX`woSm(7Rja}#I>OKNqYXnqQl z{q`OzXqnqp!}we9|9Kc9UM==x;P`Zr*RoVBW%VsB=lP%?nDVCj42qHFK*m(-h^f{A z(}XlnLQKHEnN7prbJ9^9?lEn=U9UTA+-EbdVS}EuT%vWh$w75GSOJF0Cq0}M^ zDRaN2u-z=N+yniODQSW_JuhuehI)dr$x<31*2OdH57K<+vsQ?xQxQ;ZtKU##lSMO0 z@*HZy!wXwnxZH1A8)3!D=(;H1<^8*w$QWGhOrJTu~I4^H9yU! zYC}1TjMWC)sY+dKNSwYL)`n=NX_yTvhkVSYrAr5AgW*(UXg27Fqmbq%5gxEYnEl#d z{(q1J+HiLUyuS_glT8b4P#2>1%$L~I9r8u>+AZhFtp)1ZlSe(x0`)Wz>Y>sCF`pWx6DCZ&_|h;c`wE)k`N1H1 zE$@R@%i9g%jtVPSJ22^OO_5H}tO7X}pO9fDh*c$R2lE?4 z{vfSb3fiG_(2-5h56t)#p%ga9l3{)X%c6JH(pIt%rjNWzBITk2(Uz_Vbz?!@R=Dou zG(hoH*x{B+_@n2a@7iZswLQ&gn-$qCT&6Xu%v`4x9;e#5RXYbSY1Pc7x3p@0D)JyJ z+-D#eup)i3!N3ad6x4cJVB|hc@iQRReyIFuwLfCu{FY{)rs%2JDWSTN#@3}xIk~!7 zm$4nfio9XP*bbg^wF7sW@|ZN;&1OH#XhTn|wnPZno8`cswvH*@xMCECro=Cxx6px} za&$@Yw&rav+D$IQ3|*H_0osftMr49L3kWX8Eiq>qh(whgGJ+n?u}2TZbTbJVX&@=C z$P36fJCNrq@`{j=DY#!SH)>f@w|FmFKNlE}QIyHP?)I2;09(+Pc@BMvLX_?b&chAj z>@nA$1@s*>1=S4yafZ`6eyG`tWa_74lgJU;XE$b1d2_dF3b#BOTB(>6AZ~kgzGID;BgHtf>~f zSgsT)G_^XRt_@k}gcTWQN3R`ednfM`cSYb?`)kBy>s75(ncqkt+Kwn0Vp^5?GL5`5 zQDBHxN|3#$)M}$!F9~y1UANvN@N+UhW~_hNZJQJbs7*Yan28zr z$}X@7xXVClH41latPY8wo7At0%cHF>z1nS)F6a_JeJgusH{FISXNw-BSmOaM0TLSBrj8GA?wSDWPtZ!tUR={A?RLeZ{?sJ1`ov__y2C6$+#U^8YmIncD z47QPV)#UnEdPkjUtFRKY-K|_3tyCvLPkqDu*7+9xze?J}%%v0HP6fpcYze))@&w>U2+wjA0d9%9?OfgM5rOtl%0bT6kq?(nZn#WAHf{N#?zhnWYytm(|fC?gkqTwGBfic(o?x`$R8S;~3U z?xr)!SEo|+w7tu#(@+)Xbo`8lyAv8iBHS0!LILp|f^C(CQ^B0_64jGbY*2 zn5Y*S#Ii=Egdy*(F+TuyCl}*Q8$L$K$Xu2dZ42 z!bucgDzq_$BagPJ&|rl5Myd2{6=qAC8=GB6S?OVW57eMgJQZGNFy}4pAL=Ac(|^g>`$e04;YxzoOLNuc)rji2HsbeVg!3eLO>S2jSVA#h&B z9EYvfQkBfA*ip)HI8-@!MoRt6zOEsui(5|v_os4hP!}a!OPo6l_!w~RzChYvu3t(U zS8a-;!wqPyEZ8d}bXgFUpSQQ;g$C+kYj&S74@+~IfiYibV8OcR$sN6Q$#Zy`bY|tw z2?pxUMG<*q9m^p`)XwRUJZAQ;f~&Je5e3FvmKKGrJsTCz%BsuL$Q%rNnVzdtHhGaX zDg%3Ob6~|-F3dDoj7m!+^Ae^}NT;fFY2YXWS@D}f`9cj85^JSWiR1!MnP?;b%S)yrg>_E0zK6N4k&EjW$Wz9-T%Oe47eo{{w%9mMa>ui-$ z*OKv2AdC}*{CJUN(QP2@>qo|yM7dL*)u<)J;&e7{T|k_IO%Z;0PkxUEKYn5{)59+x z@daunSs31u!VP;=p43bz914p*6E!&zGU6Yk!Ot@)2gKt9h&AEC#Qsn%dRoDCpipC? zV6Jl;J5jBnqLkhp=*%?HaVj?H2WGTNGwL&xm>fu(bwMVri?t?UjxdsxlMwqVbFF1h zoh3WcNYbr%%^E28(KvX6jU*hTH^H(yY0Q$9`q(_hhD>skDfl*oQ(eA!7OMuMOoXiK z{<=;$RsMA`LOvoS@T?Ooj`8q&T=Nbk?U6qLYM%{isWzYpuS7;^?b~WG z$&yR&d`E|JCJ21C!`p2F)LxeX|EHj@Tp3N@NF?IG0_|;(%-)$yynZ>?o1Irk~Opk(@F*xm&Hn%t>2UHAbb#n7I z@k^nQn5qV4cpN=<*sE=B;BuF?p`nhkQrr`uToa(TDQQ%759haF-fFyOP9A*y{b-XA zC3xuJhu8V5T;y8=_#0+;&PXjms*Cnqu{q$`}^5zK zyf8AS@YK%9BDX!abF#>7Pwt#7^683~)E{P=E>Jtj+?~touXt>JJyAzEf-8!2I;-_q zqKCQNVf%~qm2no0T-u(fwT?fN0g76H$$T(*f<+V==C}G2ogwL{zC{a{$FnV3JD;dh z&uK69ry~A#DYUs8HDOaXr>cYvPxC1uAV&ERvD~KVJWa4R3fKo<5?;!gi_hc0{X?E@4I~9m2Ip@+E3IP6uilsS`#+u5E56 z%(l#r4Q<7ZX^=v9EGS*zo4#QQdA*1N2L05fM`mX9kzG2bY$s0rS%_m58#kFwL` zO7$$b794klx^@x5hFMsF1)gl+* zg;-RSUMQ&eR?qxI!Y^IBrB=q8LkZ}j-f_s+Is0rbmKC(Kx(1pag$r;ONNss5ZSbf3 zxNS;0AH*%u_GxVxGCqj5%TS!9?dN<8i}}9gZ1?62YtUV-?I=aCa+;G#LFetKAI1hc z1<7l~#oi*}qa$bHUTa06vT%dOj)CP&OFse>4vtFD!lj!sw$zP7Zu4@fAZhzhDIW6S z-38KpSE51Fq3nOL_G*9Mg!L00n+z~E$)-&r3pyLJXtPn+21;;}C0yeW0AmIhg)0iZ z!i7i5c0JtvrQr%YXCNLL1*g--(w3g~B$m`sKsH`DLOdFtmd->|-A<&o7!-FQNG-_Y zwv!aC%ezk4EE{L)XDkspcpGs$ov4cE<8s>0sC=wQ(}M2iL`~k16lh=6;O6lLb*qhw z$IH@>`;@gi7mW&V&8w^!;>R)I1F;|4?p$~=UDPS>chqE3(oTa6rrE-#)mZ0~uE<4t zVb~9(Ipk3$&#jdUbA`zGyqV9L`8Aq+4+x-=+Z8q7&RgZQuDQ8x__cYF`B6yiG^Zm% zn*3&Ib)+{U~#v9XIF&3DI1p;sk3VC zZG@Dv$WScsWIa(+_1M902noB)Q-p2LK==^S)vpQ3S^UYI19y67j*yLI*iWWE4`TX`ZAv0sOwN1#(DV$=a6-wt(ipE~7S!7g$`ih?RK0_oa8oS>8qj)p9 zviRqKb%XmyH@bdQo(fAvEh7V&hZg~cYE090?~Q;TGGAYkzE4`b z^n@=XXFB2K(~B(hsjkA%aQnH0GO}fj)~^pzke!KXy+SODplOs7Mv!iU)4Zfc3h+^B zpFh8uP+BonR;C_1_ys>Zs5{gnj4Nn)_*Z> zcHwU&hf_zmG0prH8B{=kHO-Npq->S~6M$+@5~8#iOaXFDZe`$CXJ6$CH`toj9XGs> zLmulh;E)YWN)C@#KIpYxCwYJM$s%{T6HXRaW_$Qt?u5$@xyzk!GIHmwSn6x=TH@gV zy`|4x^boalvtLHkE(<>_LgU~eL`|IEULtDcPC}}hw$@Wz&bE|j#&n7!walQK0W>p{ z#qgPtI1HY-LB{S~?qp{6Y z%AZ4I@glbJx6tu7r{bL$O7!$B!nuXGJ|0VLbRn~#g-(7tJ(sV}BJ5brYsK9u0$dWG z^V7vdyBD*mbA`6X^w|`5?ncn?lz0gNUN>$+&@2l-A;gkd9bJIJ!Pf{{xO6sxmM2@a z6`*vd4;9J=cf2Yq9Eo+hUj7uf%wqJ!h_cd3<7P84YKMUpH*z_);>Q0E-hU)!>}2&$ zjMbg$sXBYoOGn9W+Zo)TLS(THXX%^~=fm EKaF3@p#T5? literal 0 HcmV?d00001 diff --git a/Qt4Qt5/qscintilla_cs.ts b/Qt4Qt5/qscintilla_cs.ts new file mode 100644 index 0000000..d438921 --- /dev/null +++ b/Qt4Qt5/qscintilla_cs.ts @@ -0,0 +1,3612 @@ + + + + + QsciCommand + + + Move down one line + Posun o jednu řádku dolů + + + + Extend selection down one line + Rozšířit výběr o jednu řádku dolů + + + + Scroll view down one line + Rolovat pohled o jednu řádku dolů + + + + Extend rectangular selection down one line + Rozšířit obdélníkový výběr o jednu řádku dolů + + + + Move up one line + Posun o jednu řádku nahoru + + + + Extend selection up one line + Rozšířit výběr o jednu řádku nahoru + + + + Scroll view up one line + Rolovat pohled o jednu řádku nahoru + + + + Extend rectangular selection up one line + Rozšířit obdélníkový výběr o jednu řádku nahoru + + + + Move up one paragraph + Posun o jeden odstavec nahoru + + + + Extend selection up one paragraph + Rozšířit výběr o jeden odstavec nahoru + + + + Move down one paragraph + Posun o jeden odstavec dolů + + + + Scroll to start of document + + + + + Scroll to end of document + + + + + Scroll vertically to centre current line + + + + + Extend selection down one paragraph + Rozšířit výběr o jeden odstavec dolů + + + + Move left one character + Posun o jedno písmeno doleva + + + + Extend selection left one character + Rozšířit výběr o jedno písmeno doleva + + + + Move left one word + Posun o jedno slovo vlevo + + + + Extend selection left one word + Rozšířit výběr o jedno slovo doleva + + + + Extend rectangular selection left one character + Rozšířit obdélníkový výběr o jedno písmeno doleva + + + + Move right one character + Posun o jedno písmeno doprava + + + + Extend selection right one character + Rozšířit výběr o jedno písmeno doprava + + + + Move right one word + Posun o jedno slovo doprava + + + + Extend selection right one word + Rozšířit výběr o jedno slovo doprava + + + + Extend rectangular selection right one character + Rozšířit obdélníkový výběr o jedno písmeno doprava + + + + Move to end of previous word + + + + + Extend selection to end of previous word + + + + + Move to end of next word + + + + + Extend selection to end of next word + + + + + Move left one word part + Posun o část slova doleva + + + + Extend selection left one word part + Rozšířit výběr o část slova doleva + + + + Move right one word part + Posun o část slova doprava + + + + Extend selection right one word part + Rozšířit výběr o část slova doprava + + + + Move up one page + Posun na předchozí stranu + + + + Extend selection up one page + Rozšířit výběr na předchozí stranu + + + + Extend rectangular selection up one page + Rozšířit obdélníkový výběr na předchozí stranu + + + + Move down one page + Posun na další stranu + + + + Extend selection down one page + Rozšířit výběr na další stranu + + + + Extend rectangular selection down one page + Rozšířit obdélníkový výběr na další stranu + + + + Delete current character + Smazat aktuální znak + + + + Cut selection + Vyjmout výběr + + + + Delete word to right + Smazat slovo doprava + + + + Move to start of document line + + + + + Extend selection to start of document line + + + + + Extend rectangular selection to start of document line + + + + + Move to start of display line + + + + + Extend selection to start of display line + + + + + Move to start of display or document line + + + + + Extend selection to start of display or document line + + + + + Move to first visible character in document line + + + + + Extend selection to first visible character in document line + + + + + Extend rectangular selection to first visible character in document line + + + + + Move to first visible character of display in document line + + + + + Extend selection to first visible character in display or document line + + + + + Move to end of document line + + + + + Extend selection to end of document line + + + + + Extend rectangular selection to end of document line + + + + + Move to end of display line + + + + + Extend selection to end of display line + + + + + Move to end of display or document line + + + + + Extend selection to end of display or document line + + + + + Move to start of document + + + + + Extend selection to start of document + + + + + Move to end of document + + + + + Extend selection to end of document + + + + + Stuttered move up one page + + + + + Stuttered extend selection up one page + + + + + Stuttered move down one page + + + + + Stuttered extend selection down one page + + + + + Delete previous character if not at start of line + + + + + Delete right to end of next word + + + + + Delete line to right + Smazat řádku doprava + + + + Transpose current and previous lines + + + + + Duplicate the current line + + + + + Select all + Select document + + + + + Move selected lines up one line + + + + + Move selected lines down one line + + + + + Toggle insert/overtype + Přepnout vkládání/přepisování + + + + Paste + Vložit + + + + Copy selection + Kopírovat výběr + + + + Insert newline + + + + + De-indent one level + + + + + Cancel + ZruÅ¡it + + + + Delete previous character + Smazat předchozí znak + + + + Delete word to left + Smazat slovo doleva + + + + Delete line to left + Smazat řádku doleva + + + + Undo last command + + + + + Redo last command + Znovu použít poslední příkaz + + + + Indent one level + Odsadit o jednu úroveň + + + + Zoom in + ZvětÅ¡it + + + + Zoom out + ZmenÅ¡it + + + + Formfeed + Vysunout + + + + Cut current line + Vyjmout aktuální řádku + + + + Delete current line + Smazat aktuální řádku + + + + Copy current line + Kopírovat aktuální řádku + + + + Convert selection to lower case + Vybraný text převést na malá písmena + + + + Convert selection to upper case + Vybraný text převést na velká písmena + + + + Duplicate selection + Duplikovat výběr + + + + QsciLexerAVS + + + Default + Default + + + + Block comment + + + + + Nested block comment + + + + + Line comment + Jednořádkový komentář + + + + Number + Číslo + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Triple double-quoted string + String ve třech dvojitých uvozovkách + + + + Keyword + Klíčové slovo + + + + Filter + + + + + Plugin + + + + + Function + + + + + Clip property + + + + + User defined + + + + + QsciLexerBash + + + Default + Default + + + + Error + Chyba + + + + Comment + Komentář + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Scalar + Skalár + + + + Parameter expansion + Rozklad parametru + + + + Backticks + Zpětný chod + + + + Here document delimiter + Zde je oddělovač dokumentu + + + + Single-quoted here document + Jednoduché uvozovky zde v dokumentu + + + + QsciLexerBatch + + + Default + Default + + + + Comment + Komentář + + + + Keyword + Klíčové slovo + + + + Label + Nadpis + + + + Hide command character + Skrýt písmeno příkazu + + + + External command + Externí příkaz + + + + Variable + Proměnná + + + + Operator + Operátor + + + + QsciLexerCMake + + + Default + Default + + + + Comment + Komentář + + + + String + + + + + Left quoted string + + + + + Right quoted string + + + + + Function + + + + + Variable + Proměnná + + + + Label + Nadpis + + + + User defined + + + + + WHILE block + + + + + FOREACH block + + + + + IF block + + + + + MACRO block + + + + + Variable within a string + + + + + Number + Číslo + + + + QsciLexerCPP + + + Default + Default + + + + Inactive default + + + + + C comment + C komentář + + + + Inactive C comment + + + + + C++ comment + C++ komentář + + + + Inactive C++ comment + + + + + JavaDoc style C comment + JavaDoc styl C komentáře + + + + Inactive JavaDoc style C comment + + + + + Number + Číslo + + + + Inactive number + + + + + Keyword + Klíčové slovo + + + + Inactive keyword + + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Inactive double-quoted string + + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Inactive single-quoted string + + + + + IDL UUID + + + + + Inactive IDL UUID + + + + + Pre-processor block + Pre-procesor blok + + + + Inactive pre-processor block + + + + + Operator + Operátor + + + + Inactive operator + + + + + Identifier + Identifikátor + + + + Inactive identifier + + + + + Unclosed string + Neuzavřený string + + + + Inactive unclosed string + + + + + C# verbatim string + + + + + Inactive C# verbatim string + + + + + JavaScript regular expression + JavaSript regulární výraz + + + + Inactive JavaScript regular expression + + + + + JavaDoc style C++ comment + JavaDoc styl C++ komentáře + + + + Inactive JavaDoc style C++ comment + + + + + Secondary keywords and identifiers + Sekundární klíčová slova a identifikátory + + + + Inactive secondary keywords and identifiers + + + + + JavaDoc keyword + JavaDoc klíčové slovo + + + + Inactive JavaDoc keyword + + + + + JavaDoc keyword error + JavaDoc klíčové slovo chyby + + + + Inactive JavaDoc keyword error + + + + + Global classes and typedefs + Globální třídy a definice typů + + + + Inactive global classes and typedefs + + + + + C++ raw string + + + + + Inactive C++ raw string + + + + + Vala triple-quoted verbatim string + + + + + Inactive Vala triple-quoted verbatim string + + + + + Pike hash-quoted string + + + + + Inactive Pike hash-quoted string + + + + + Pre-processor C comment + + + + + Inactive pre-processor C comment + + + + + JavaDoc style pre-processor comment + + + + + Inactive JavaDoc style pre-processor comment + + + + + QsciLexerCSS + + + Default + Default + + + + Tag + Tag + + + + Class selector + Selektor třídy + + + + Pseudo-class + Pseudotřída + + + + Unknown pseudo-class + Nedefinovaná pseudotřída + + + + Operator + Operátor + + + + CSS1 property + CSS1 vlastnost + + + + Unknown property + Nedefinovaná vlastnost + + + + Value + Hodnota + + + + ID selector + ID selektor + + + + Important + Important + + + + @-rule + @-pravidlo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + CSS2 property + CSS2 vlastnost + + + + Attribute + Atribut + + + + CSS3 property + CSS2 vlastnost {3 ?} + + + + Pseudo-element + + + + + Extended CSS property + + + + + Extended pseudo-class + + + + + Extended pseudo-element + + + + + Media rule + + + + + Variable + Proměnná + + + + QsciLexerCSharp + + + Verbatim string + + + + + QsciLexerCoffeeScript + + + Default + Default + + + + C-style comment + + + + + C++-style comment + + + + + JavaDoc C-style comment + + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + IDL UUID + + + + + Pre-processor block + Pre-procesor blok + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Unclosed string + Neuzavřený string + + + + C# verbatim string + + + + + Regular expression + Regulární výraz + + + + JavaDoc C++-style comment + + + + + Secondary keywords and identifiers + Sekundární klíčová slova a identifikátory + + + + JavaDoc keyword + JavaDoc klíčové slovo + + + + JavaDoc keyword error + JavaDoc klíčové slovo chyby + + + + Global classes + + + + + Block comment + + + + + Block regular expression + + + + + Block regular expression comment + + + + + QsciLexerD + + + Default + Default + + + + Block comment + + + + + Line comment + Jednořádkový komentář + + + + DDoc style block comment + + + + + Nesting comment + + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Secondary keyword + + + + + Documentation keyword + + + + + Type definition + + + + + String + + + + + Unclosed string + Neuzavřený string + + + + Character + Znak + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + DDoc style line comment + + + + + DDoc keyword + + + + + DDoc keyword error + + + + + Backquoted string + + + + + Raw string + + + + + User defined 1 + Definováno uživatelem 1 + + + + User defined 2 + Definováno uživatelem 2 + + + + User defined 3 + Definováno uživatelem 3 + + + + QsciLexerDiff + + + Default + Default + + + + Comment + Komentář + + + + Command + Příkaz + + + + Header + Hlavička + + + + Position + Pozice + + + + Removed line + Odebraná řádka + + + + Added line + Přidaná řádka + + + + Changed line + + + + + QsciLexerFortran77 + + + Default + Default + + + + Comment + Komentář + + + + Number + Číslo + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Unclosed string + Neuzavřený string + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Keyword + Klíčové slovo + + + + Intrinsic function + + + + + Extended function + + + + + Pre-processor block + Pre-procesor blok + + + + Dotted operator + + + + + Label + Nadpis + + + + Continuation + + + + + QsciLexerHTML + + + HTML default + + + + + Tag + + + + + Unknown tag + Nedefinovaný tag + + + + Attribute + Atribut + + + + Unknown attribute + Nedefinovaný atribut + + + + HTML number + HTML číslo + + + + HTML double-quoted string + HTML string ve dojtých uvozovkách + + + + HTML single-quoted string + HTML string v jednoduchých uvozovkách + + + + Other text in a tag + Další text v tagu + + + + HTML comment + HTML komentář + + + + Entity + Entita + + + + End of a tag + Konec tagu + + + + Start of an XML fragment + Začátek XML části + + + + End of an XML fragment + Konec XML části + + + + Script tag + Tag skriptu + + + + Start of an ASP fragment with @ + Začátek ASP kódu s @ + + + + Start of an ASP fragment + Začátek ASP kódu + + + + CDATA + + + + + Start of a PHP fragment + Začátek PHP kódu + + + + Unquoted HTML value + HTML hodnota bez uvozovek + + + + ASP X-Code comment + ASP X-Code komentář + + + + SGML default + + + + + SGML command + SGML příkaz + + + + First parameter of an SGML command + První parametr v SGML příkazu + + + + SGML double-quoted string + SGML string ve dvojitých uvozovkách + + + + SGML single-quoted string + SGML string v jednoduchých uvozovkách + + + + SGML error + SGML chyba + + + + SGML special entity + SGML speciální entita + + + + SGML comment + SGML komentář + + + + First parameter comment of an SGML command + Komentář prvního parametru SGML příkazu + + + + SGML block default + SGML defaultní blok + + + + Start of a JavaScript fragment + Začátek JavaScript kódu + + + + JavaScript default + + + + + JavaScript comment + JavaScript komentář + + + + JavaScript line comment + JavaScript jednořádkový komentář + + + + JavaDoc style JavaScript comment + JavaDoc styl JavaScript komentáře + + + + JavaScript number + JavaScript číslo + + + + JavaScript word + JavaSript slovo + + + + JavaScript keyword + JavaSript klíčové slovo + + + + JavaScript double-quoted string + JavaSript string ve dvojitých uvozovkách + + + + JavaScript single-quoted string + JavaSript string v jednoduchých uvozovkách + + + + JavaScript symbol + + + + + JavaScript unclosed string + JavaSript neuzavřený string + + + + JavaScript regular expression + JavaSript regulární výraz + + + + Start of an ASP JavaScript fragment + Začátek ASP JavaScript kódu + + + + ASP JavaScript default + + + + + ASP JavaScript comment + ASP JavaScript komentář + + + + ASP JavaScript line comment + ASP JavaScript jednořádkový komenář + + + + JavaDoc style ASP JavaScript comment + JavaDoc styl ASP JavaScript komentář + + + + ASP JavaScript number + ASP JavaScript číslo + + + + ASP JavaScript word + ASP JavaScript slovo + + + + ASP JavaScript keyword + ASP JavaScript klíčové slovo + + + + ASP JavaScript double-quoted string + ASP JavaScript string ve dvojitých uvozovkách + + + + ASP JavaScript single-quoted string + ASP JavaScript v jednoduchých uvozovkách + + + + ASP JavaScript symbol + + + + + ASP JavaScript unclosed string + ASP JavaScript neuzavřený string + + + + ASP JavaScript regular expression + ASP JavaScript regulární výraz + + + + Start of a VBScript fragment + Začátek VBScript kódu + + + + VBScript default + + + + + VBScript comment + VBScript komentář + + + + VBScript number + VBScript číslo + + + + VBScript keyword + VBScript klíčové slovo + + + + VBScript string + + + + + VBScript identifier + VBScript identifikátor + + + + VBScript unclosed string + VBScript neuzavřený string + + + + Start of an ASP VBScript fragment + Začátek ASP VBScript kódu + + + + ASP VBScript default + + + + + ASP VBScript comment + ASP VBScript komentář + + + + ASP VBScript number + ASP VBScript číslo + + + + ASP VBScript keyword + ASP VBScript klíčové slovo + + + + ASP VBScript string + + + + + ASP VBScript identifier + ASP VBScript identifikátor + + + + ASP VBScript unclosed string + ASP VBScript neuzavřený string + + + + Start of a Python fragment + Začátek Python kódu + + + + Python default + + + + + Python comment + Python komentář + + + + Python number + Python číslo + + + + Python double-quoted string + Python string ve dojtých uvozovkách + + + + Python single-quoted string + Python string v jednoduchých uvozovkách + + + + Python keyword + Python klíčové slovo + + + + Python triple double-quoted string + Python string ve třech dvojitých uvozovkách + + + + Python triple single-quoted string + Python ve třech jednoduchých uvozovkách + + + + Python class name + Python jméno třídy + + + + Python function or method name + Python jméno funkce nebo metody + + + + Python operator + Python operátor + + + + Python identifier + Python identifikátor + + + + Start of an ASP Python fragment + Začátek ASP Python kódu + + + + ASP Python default + + + + + ASP Python comment + ASP Python komentář + + + + ASP Python number + ASP Python číslo + + + + ASP Python double-quoted string + ASP Python string ve dvojitých uvozovkách + + + + ASP Python single-quoted string + ASP Python v jednoduchých uvozovkách + + + + ASP Python keyword + ASP Python klíčové slovo + + + + ASP Python triple double-quoted string + ASP Python ve třech dvojitých uvozovkách + + + + ASP Python triple single-quoted string + ASP Python ve třech jednoduchých uvozovkách + + + + ASP Python class name + ASP Python jméno třídy + + + + ASP Python function or method name + ASP Python jméno funkce nebo metody + + + + ASP Python operator + ASP Python operátor + + + + ASP Python identifier + ASP Python identifikátor + + + + PHP default + + + + + PHP double-quoted string + PHP string ve dvojitých uvozovkách + + + + PHP single-quoted string + PHP v jednoduchých uvozovkách + + + + PHP keyword + PHP klíčové slovo + + + + PHP number + PHP číslo + + + + PHP variable + PHP proměnná + + + + PHP comment + PHP komentář + + + + PHP line comment + PHP jednořádkový komentář + + + + PHP double-quoted variable + PHP proměnná ve dvojitých uvozovkách + + + + PHP operator + PHP operátor + + + + QsciLexerIDL + + + UUID + + + + + QsciLexerJavaScript + + + Regular expression + Regulární výraz + + + + QsciLexerLua + + + Default + + + + + Comment + Komentář + + + + Line comment + Jednořádkový komentář + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + String + + + + + Character + Znak + + + + Literal string + + + + + Preprocessor + + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Unclosed string + Neuzavřený string + + + + Basic functions + Základní funkce + + + + String, table and maths functions + String, tabulka a matematické funkce + + + + Coroutines, i/o and system facilities + + + + + User defined 1 + Definováno uživatelem 1 + + + + User defined 2 + Definováno uživatelem 2 + + + + User defined 3 + Definováno uživatelem 3 + + + + User defined 4 + Definováno uživatelem 4 + + + + Label + Nadpis + + + + QsciLexerMakefile + + + Default + + + + + Comment + Komentář + + + + Preprocessor + + + + + Variable + Proměnná + + + + Operator + Operátor + + + + Target + Cíl + + + + Error + Chyba + + + + QsciLexerMatlab + + + Default + Default + + + + Comment + Komentář + + + + Command + Příkaz + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + QsciLexerPO + + + Default + Default + + + + Comment + Komentář + + + + Message identifier + + + + + Message identifier text + + + + + Message string + + + + + Message string text + + + + + Message context + + + + + Message context text + + + + + Fuzzy flag + + + + + Programmer comment + + + + + Reference + + + + + Flags + + + + + Message identifier text end-of-line + + + + + Message string text end-of-line + + + + + Message context text end-of-line + + + + + QsciLexerPOV + + + Default + + + + + Comment + Komentář + + + + Comment line + Jednořádkový komentář + + + + Number + Číslo + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + String + + + + + Unclosed string + Neuzavřený string + + + + Directive + Direktiva + + + + Bad directive + + + + + Objects, CSG and appearance + + + + + Types, modifiers and items + + + + + Predefined identifiers + + + + + Predefined functions + + + + + User defined 1 + + + + + User defined 2 + + + + + User defined 3 + + + + + QsciLexerPascal + + + Default + Default + + + + Line comment + Jednořádkový komentář + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + '{ ... }' style comment + + + + + '(* ... *)' style comment + + + + + '{$ ... }' style pre-processor block + + + + + '(*$ ... *)' style pre-processor block + + + + + Hexadecimal number + + + + + Unclosed string + Neuzavřený string + + + + Character + Znak + + + + Inline asm + + + + + QsciLexerPerl + + + Default + + + + + Error + Chyba + + + + Comment + Komentář + + + + POD + + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Scalar + Skalár + + + + Array + Pole + + + + Hash + + + + + Symbol table + + + + + Regular expression + Regulární výraz + + + + Substitution + + + + + Backticks + + + + + Data section + + + + + Here document delimiter + Zde je oddělovač dokumentu + + + + Single-quoted here document + Zde je dokument v jednoduchých uvozovkách + + + + Double-quoted here document + Zde je dokument ve dvojitých uvozovkách + + + + Backtick here document + + + + + Quoted string (q) + + + + + Quoted string (qq) + + + + + Quoted string (qx) + + + + + Quoted string (qr) + + + + + Quoted string (qw) + + + + + POD verbatim + + + + + Subroutine prototype + + + + + Format identifier + + + + + Format body + + + + + Double-quoted string (interpolated variable) + + + + + Translation + + + + + Regular expression (interpolated variable) + + + + + Substitution (interpolated variable) + + + + + Backticks (interpolated variable) + + + + + Double-quoted here document (interpolated variable) + + + + + Backtick here document (interpolated variable) + + + + + Quoted string (qq, interpolated variable) + + + + + Quoted string (qx, interpolated variable) + + + + + Quoted string (qr, interpolated variable) + + + + + QsciLexerPostScript + + + Default + Default + + + + Comment + Komentář + + + + DSC comment + + + + + DSC comment value + + + + + Number + Číslo + + + + Name + + + + + Keyword + Klíčové slovo + + + + Literal + + + + + Immediately evaluated literal + + + + + Array parenthesis + + + + + Dictionary parenthesis + + + + + Procedure parenthesis + + + + + Text + + + + + Hexadecimal string + + + + + Base85 string + + + + + Bad string character + + + + + QsciLexerProperties + + + Default + + + + + Comment + + + + + Section + + + + + Assignment + + + + + Default value + + + + + Key + + + + + QsciLexerPython + + + Default + + + + + Comment + Komentář + + + + Number + Číslo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Keyword + Klíčové slovo + + + + Triple single-quoted string + String ve třech jednoduchých uvozovkách + + + + Triple double-quoted string + String ve třech dvojitých uvozovkách + + + + Class name + Jméno třídy + + + + Function or method name + Jméno funkce nebo metody + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Comment block + Blok komentáře + + + + Unclosed string + Neuzavřený string + + + + Highlighted identifier + Zvýrazněný identifikátor + + + + Decorator + Dekorátor + + + + QsciLexerRuby + + + Default + + + + + Comment + Komentář + + + + Number + Číslo + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Keyword + Klíčové slovo + + + + Class name + Jméno třídy + + + + Function or method name + Jméno funkce nebo metody + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Error + Chyba + + + + POD + POD + + + + Regular expression + Regulární výraz + + + + Global + + + + + Symbol + + + + + Module name + Jméno modulu + + + + Instance variable + Proměnná instance + + + + Class variable + Proměnná třídy + + + + Backticks + + + + + Data section + Datová sekce + + + + Here document delimiter + Zde je oddělovač dokumentu + + + + Here document + Zde je dokument + + + + %q string + + + + + %Q string + + + + + %x string + + + + + %r string + + + + + %w string + + + + + Demoted keyword + + + + + stdin + + + + + stdout + + + + + stderr + + + + + QsciLexerSQL + + + Default + + + + + Comment + Komentář + + + + Number + Číslo + + + + Keyword + Klíčové slovo + + + + Single-quoted string + String v jednoduchých uvozovkách + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Comment line + Jednořádkový komentář + + + + JavaDoc style comment + JavaDoc styl komentář + + + + Double-quoted string + String ve dvojitých uvozovkách + + + + SQL*Plus keyword + SQL*Plus klíčové slovo + + + + SQL*Plus prompt + + + + + SQL*Plus comment + SQL*Plus komentář + + + + # comment line + # jednořádkový komentář + + + + JavaDoc keyword + JavaDoc klíčové slovo + + + + JavaDoc keyword error + JavaDoc klíčové slovo chyby + + + + User defined 1 + Definováno uživatelem 1 + + + + User defined 2 + Definováno uživatelem 2 + + + + User defined 3 + Definováno uživatelem 3 + + + + User defined 4 + Definováno uživatelem 4 + + + + Quoted identifier + + + + + QsciLexerSpice + + + Default + Default + + + + Identifier + Identifikátor + + + + Command + Příkaz + + + + Function + + + + + Parameter + + + + + Number + Číslo + + + + Delimiter + + + + + Value + Hodnota + + + + Comment + Komentář + + + + QsciLexerTCL + + + Default + Default + + + + Comment + Komentář + + + + Comment line + Jednořádkový komentář + + + + Number + Číslo + + + + Quoted keyword + + + + + Quoted string + + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Substitution + + + + + Brace substitution + + + + + Modifier + + + + + Expand keyword + + + + + TCL keyword + + + + + Tk keyword + + + + + iTCL keyword + + + + + Tk command + + + + + User defined 1 + Definováno uživatelem 1 + + + + User defined 2 + Definováno uživatelem 2 + + + + User defined 3 + Definováno uživatelem 3 + + + + User defined 4 + Definováno uživatelem 4 + + + + Comment box + + + + + Comment block + Blok komentáře + + + + QsciLexerTeX + + + Default + + + + + Special + + + + + Group + Skupina + + + + Symbol + + + + + Command + Příkaz + + + + Text + + + + + QsciLexerVHDL + + + Default + Default + + + + Comment + Komentář + + + + Comment line + Jednořádkový komentář + + + + Number + Číslo + + + + String + + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Unclosed string + Neuzavřený string + + + + Keyword + Klíčové slovo + + + + Standard operator + + + + + Attribute + Atribut + + + + Standard function + + + + + Standard package + + + + + Standard type + + + + + User defined + + + + + QsciLexerVerilog + + + Default + Default + + + + Comment + Komentář + + + + Line comment + Jednořádkový komentář + + + + Bang comment + + + + + Number + Číslo + + + + Primary keywords and identifiers + + + + + String + + + + + Secondary keywords and identifiers + Sekundární klíčová slova a identifikátory + + + + System task + + + + + Preprocessor block + + + + + Operator + Operátor + + + + Identifier + Identifikátor + + + + Unclosed string + Neuzavřený string + + + + User defined tasks and identifiers + + + + + QsciLexerYAML + + + Default + Default + + + + Comment + Komentář + + + + Identifier + Identifikátor + + + + Keyword + Klíčové slovo + + + + Number + Číslo + + + + Reference + + + + + Document delimiter + + + + + Text block marker + + + + + Syntax error marker + + + + + Operator + Operátor + + + + QsciScintilla + + + &Undo + + + + + &Redo + + + + + Cu&t + + + + + &Copy + + + + + &Paste + + + + + Delete + + + + + Select All + + + + diff --git a/Qt4Qt5/qscintilla_de.qm b/Qt4Qt5/qscintilla_de.qm new file mode 100644 index 0000000000000000000000000000000000000000..09d94f47916fbb25b339de8dbe7ac69d653d4fef GIT binary patch literal 70647 zcmc(I34ByV(s+ktlF7_u0wEj%;ut~*2#6365iukIg3A#}K*V#BnS>#enJ_Z}0=ljT zpX;@{UhBc<2_Aqq-mB|@$L_j{g1Wlif)`%M;rY4$s_uFH-kaC`ju8C+_(74$bX9eA zbyanBb@${)LjC{o&6=zJb?BhKoqqEZ?^Y4g=QBc%|2rYCen-gs3PLt}7<}(_LKZD2 zLEK*(Q1WY)EfgiQR9!8@li`1GR;{$~rBJ?vvb?uwB)S3gC_H@nEZ z6@MkoMSS#35Pz%6brzotHIu@2P~e@68H~A4bUZ)meu>wSkZ+?OEe` z{RndUZ`Pzsb`o;zD_O@Z+D1sfsaexoLEbN%o;B|Y7_Y$}Wrg?MK*-pwS<7!v5i)KT zgQxChaPi=*Rp-1;$fzw@tG)wzhbFVmdKSKS#U)wS?yVr?o@mzfLji9|Mb_HlJ%n63 zGwY5=0De`Jb!W7Mke7O9-GBHAFb=n8ZCc$y$e4v$Pq$(J9%t~w0Stc8$l$KSv$lK! z_{L9R@TkWbJjTyp{Wbw_B* zKA-i$uLwtEedH=4WZSx|kA8T7keZ{jc2v$Mpr~0p?%M(IZ$0wYKS#*QOM4vpuV)DP z@#h{x4&F=1dn0?yS^NX&-|;;{zdQ~&xD0eyHUd;KbyKU2@je)PJv zpuaz6|Mf+{v*eiUr{fR8{Q7hDD}$haS-Y}dKeB<4N9Je0{{^(WuQ2<=ON$9P`Rwdn z#{!>MOw8Urt~Vh^Y|H-PIp|-`>YUvB#}Tq`M^4_Se<9?5R^*gk=mI@mlT)z<g&slp?ijZKRoQ)#^|Nph;Jc{$>^rv#3 z-uip!$E`Wf-3#M;-m;u6lVJQSuE=?<9Qt+F?wr^2D+sx|D(B6eAcq_OnDd{vfUiD# zb3R^p1|jdHa(1qS@5guN>>0L)kk&Sr>-}P|L-SpEPxuK5zs}$-6B&Hr{}_CqxC*|5 zeq6lT2QB<5rA_LmrZ=otn-naSYSM+2;e z@14Tn9fvUZa32OgS;OGhe*#!T$Q=m=Klz5iuRnB6{TRmk(?>(UMqti-^bu*cQCkfGlSoaXK>#j27lV-YRz^LGVFF&qW^C2vClKuJf6Ytm${Np z{0jY8>snTI5cuI$u2qw+0{gwwb?rIl5HjgG24DQ%b;l(zUh9c#!}uPcPyc1`s8tNs z>|?O;2?m$k&R}8#gKGyfxZ!#RA6UWQV>t{ydoY8q_h#_jg$#aF#NcNw4DPI9aM%3| z?!Az~pN@BJxD4h?t?7zQ6ag~8o#F!)1(>z;o=|8}11y7#D)33-1rgWsO$ zdTde!A#Z=>dg{qRg!I_x+OmBbA$irVw{O3KkeBRH+~KieLWXb59kKaYLN@KmJ@(WTA*)Z$J>@Hy_oK>lPiu$v%p=Ug7PahyJVc3cm*ZEiBLLcV`LM*Z<}X zpD>gVcT3*zvmS(Txi4=-=ZWzBo_Q5NUk~+^!~Z00Y*UoUk3PhLZ06Q@JEPWJb95HiU~RC z!o2kx!T!JhL*Dv_U>|at-g|lPT)Y*a!(!& z{FXJjY5etEsXKDS?;uXw>t6B%=zGuk?j>&l-Wjvq@go55&=1{bym2b%`3denZ0$$L zIRoA2uBjsAv$x#me+=?o+|1xD+ZlXxg8RZ~10lW6a9{fS9T4aKjlrok44yih!SxmH zt8UC8WadowRrhZqWO=>&wz1&1HeKOfKW7~wqxZP)T{9Nq%(3preujQMFxmaoYryxM z2i*T2c_hT|0r&f-L;qgxbnmze@YFoPVB;$HXS;#_HSfE>ya0Z`;%@i8!GPxvyWKzD zb|u8ATk`XN|2n{>`DJ5Ey_vxiuVpZ}j=`l{7~F6ugHN5s z;MPYN{LexLKfFHwv3tS)zIJ&2-xrobynRLff4({f^mTmxk8i@yO$iT)K);F}_P9n) z1O40K$=!Vd#N&+~-z(z@>Hn>#_cz-J`SY8e{$ErOa>?VKLym#p*PY-g>DPx4Z=+|} zr|@~zSDxWt0{_Q#dPdw|PsovvF!;oS48GOuIczR`?_Z-mV?G0YdUT^_`iVDyzwYOm zxpWHni^ZP$PaXt5+ZlZ8R?njUf}9V(!*gmsz+3mOCp0k!;)~-LT%Ta@(<%nPS?vi; zE(W@L89e%J29NoP!T4DWwm-<=t%Df6<2eS`-^t*{Um3jrYzCj~Wbmc07<_dogRgC3 z@a=I7e((WyBC4J9z4X`;|G}E_cnM7 zPTK@}d%o9yY!2wH%RAr}`1!u8y(O2fhB*9WZ|PMar-v7NhiwFTj(pf#e$#niH(&8i z{3GBg`_y~%*cTz*{@Q!=sSgwK`x@`mC&AwjzR)}E&CRghe#(2=P1|6->Gw7**a30k z-QLha5GUOh_lD-Ig?RW5Z@3un-E@h!eJl9u#-ZM2r!0qYU&-LgC*JMX)5U9c`3%iufN-Y=i8fO+{NgMUBFyX&ms5SOp__4xN+K%Nc0{BNg$e8>0- zhF=8pb{B)6Z}Sb94tn_AcfLUd3kmsRuy4v6z}J-{e8+A46WF)s8JzMMgP)D`oiJ-P z*o9TT6ZX9W`G*<4=9j+%zgg>xyPhHBsA2}6d5FPxcKL2U80_=8TYUG7EG8s!r|;>) z=O7=n&iCR#SpUqO;Cu0xp)k&S82ovPZ_8AmoA}nZHGeh&EOA?@clgOP0*_uzMpr4ygb+Weq90WR}3#GDi}@3lbaZPJ66#9 zHt7EiZ3V*~0XdDFRd7_rI6`h+P*7P0KVSV`LFEV-*Q>89IPJsUkZ-!WplMwrAxqCF zNSz74AO8miTT2;S`wD}Py~W_(e-)f_!8YJ;P{Da8!#scH@PgGjA49ydvf$!lVf`~W!G@1hphpWBYRtOGv(a%90Xr|*FE=NAQUj)w2AX()KNZ!z@ip9R~` ze;NGu_JSR2Ko9TfTd=DW;2B%}J+__z{%?Xmx9S{-BR2aBn!ba)!Q1{q@8__dJOW>}81e`A`{&+~Psmf>`xjjB0wGte^`Ec_=HbO-{HI(5{r>%{ z{_xce5Z{gQFJ2COTkb|eV-%lH21;1J}!KK3vF1itr|cK@ovZLm(9#Api9^UaLRx-;D9aK`;AnbpxHFV+<}hk-?My!C>>N45qGUaN}hRK7JL0 zf4_;rH{1-qzmUNl7x{19TLtmVOa67I&;OjmA3$Yxq>$UzD-&za#h)4WeW9=UM+g57@8rl>gVUenRR`X7HjBh5aip2mf$QVTlXqy>xlukTU_E`agxk&OQn9 z77rDUy&3SF^h{yJVSwkbPYWmh2jJMoLK+V~->-1q%h3Lc9ffT}q1~646n0c@1Ap7f zVC7y0_jDAV_j)PJ%UOjNj4g&Z`I^GZhNpnf;e`*zrh&bhTKE)>*I&vDH*bUAANp3| zJ3EF#Jb7B-hxc!W`1-@bA2(hF_Vm{X7`d;rA#qVerjkbZlOSQzL>9xpF*hbOa`A6< zFxC`~fE1ff-w1W1I$;NRcD|HJhEjqrQKm?SCq zP9tK5-*=EU+9pOq@JUod?U3qtY*{#w3M9kPa8oK0j|EckKs3HQoCq`plVKqn(-Wh1> zNF>6sR3I9OiTfBZ^ihV;PZ4tY2_-hcg4rN+BMEGKo5mHAp4N2QfV@ z;O8jWmzIoHBK>PXVN+o)l%~bOM6f9pP6*{c(m+YCEMgka5giSwvXtpGFG}Ur3QWtG zR}dpYI^V+0DIwqGI>d^(NSUB6PV=mwPDEN3i*b)gvgk)MCXzhR9e7J`IBP(hgS)K8cZL`fm%jn@31l3q+a&v3M#F1XWK3 z!Pdo_<@5ejG7p$wq;UWnff0l&sS(8~z>H{sno|5tjBKahN0W=}2gnIvdJ^;}xe5f* z?9%Z;9SFxl$XG1AA{AI3PlSZ}P|9(mYFUkzqGpKBRL#mXXq_mTf>^F(Wd@TJ0ztM@ z=2t=oGOcs(nvV8pq$vn9+uSTwSj=d1G6PgHsl}=hkxuZaMk`P|T7mTzVBY8@(A5Uu zH#jz#E(sMEH47bbjB5*u02Mz%KS^k;{)lNSQm7UQ@XWzjOGh-AP^A(G#h1sJftC5N zu5(?_`9b|YAY8WxTg09>)+Jdh212!FD&N|fBA52zrqYgriKfyvw|MQ{&b)p;%Gn=d z%04qQ=#I_#Pub>QY!DNm+%;hSTB*52bI6S1N~%ySN|X1Y!n6;nkqpI~I@(Obx9c4D z1G!R7coL=~a{`T^{x}9`*jaq3su%`oq8{7pZLL*rnN*Rann@pS#fD$&&Likh)okEMUw5&V5fYodzo#gDrZ_0?2Up66XyX$SGqOM zMz`V#8&QxkW2$sT#5igU#yz-zlP$`OGg~9^bW|p^&ql+euriI4-T$CV30hP)Yh+KZ z5h25b+W-8AT$ILXrSfW?2WjjApUY@ghOOI;SsFQ)W)kIjFsX^U!N939>PWG>799IO z<7S9voY?{-ZCq^4!gGETA=tB+lbv?da;3FM+B@-zsw)O@xQJ_Y{bXh7uXJqb#jJ~r z=Kky6cw3#brD?OIV9Wrl#_5;FX3IW1933i?kNJ{s08xbyqZv2cQ>L4*d|$*p zJ)UT54u{1X3bNfjmcSP6?)98$XKSyF%z+pR_hywPi<0}p#CS988e)vAZgBc%#*(-V z9Sbj)CgDeDb|M!+Yh|ZbUC8ovKkt3f?D(>582rXR_zWr6H0cA9Vp~y6)!qGnhAD zh^a)F>WJi{Sq^d{{pldsT_G#eN$rYOg+%y!XW*AgX^cVoA}NVTWOl(^P>QL;`MDgn zHnGkGDJhDD^BDD5ZveHw)ppsa)rZm!Gba@e(WOYz#spPTf!)Ja+9vZ+K19Tnm5Zu@ z{QxEf;{r||<0WDDGeNWLdJ8y^vY;-2LRK+dvk7@ouwyq)lQB3)IKyG0KRUtza!jF(Kg}mkl_187D32El$M*s-8ub&9T#iqpf-X zwIYg%u(cnkDuj69;oM>!tgxsqGOTRY5-w3O6PdFU4a5H0t>IEOZCS2KoMjPn`W2*X z>KtTb!OVWm;Uw)#$&OA9ma-ww2r3bcJ^;|V_)K5glTxvAo`ZQ%9MCLc0uXM*apRqP zW*s(Zh^<7ws4wyjxJ*v_XgM_xuY0E1HLhG-b-`pxT**>FW`UK!Z9oj5kTV?5X86mB zcb7vL5KiaGvEMYb;yv#*FC2nWT)-Y^Vl}|RwDMT4EF%3xvdpt$X>K%w#6k5ER%Ii}dDX0pDl}4Bq)2Zn(UO*=`D@(eWXLV5I z9G97JoE|ADzqKI0dXVOR%akk1AeEaoT_#1!!}R^+A=5|?$l$Li3K~EsDq6K#W3O`=*<=Qt!kH zXSHRpZrV8BAugC01Wq*y8jnS}ctoQO{xCZab$gtFf~sh|sg*iXu<6K#4-ePO3a3DaO{5&O~&IA&_cm$>FD4PJP*m9>wqUkdgMtSvwCP*K(J_3?gy{UV8M~ogO64NTCagfR~ zR!XZhJu~s>NTfN!&T<&(V%8gb8U-2Pp&2~Uv>fO|oS@41ci~PYm1e{+I4xtA%aUu2 zZx$ZV!01b=G?UZHtEdSwhDIbUNl+y_>RCJ|3_)Zl&}gltZs47s{^EVjozv0QC=*ss zG8YsYXCoG*fslAJ_gv84U@A^e%ot_lBX!V;4r&|JkRvGNY)$K-Yqnoem|Jd%s$U?m!{Z z_0XYkG}0DH+bjVYN47`M-l_2spfH`mg74d$!h)9NFo)6i;0Y@9B22#eSebedF3sL` zP-EH#2kR0LFSkSR0VhJyhzpSWzznwn>L`-n2y*LT^%SHwMbKuV$sjB44X*v8wm~t= zXt#nK|G;{1VX8}8tQ~v_qquA}_o(J1i}fT`FDmGu-AV4(*oRaTGZ6M>xu_*3Q&yzM zmpW7Gc6h3R3$G_`Gbdufs5YY@LRbMoygpa4j4Dqf{g-ZB(50GAu$)Za+DM4GO^jA` zn~EZ0PN$Rzhlk9jnhwztXTvos*vL+vidxv5RpO=#D6t6q+X(uvl5{T!CL%!yxlk2F zO`YpU_3U74m^u)r`k}TQ0OoiulmJZwS6dBJP!p7JX%$SLJ8#<5>RJ|q==oPM*^K$r zu4|jl1U5vZ-7}|~Q?)y~DzS;M{y`_t4zn(W5CGT2X_pU5tgOG3AcRNRTpmTU@WhuP zau)ThFDM@hb{+^>)Iaa+snzr5ns?FEDTs(p(v)=Jwo+I6*n1wH4z}0H{xU1dC6-&y z*B2s&_ahP$q3a2OH~Kc)lTcL-jM;TfL42qz>bXsf6m_-@6e+z7zdyoZ^`PJg(N_AZwwIP*c zJ`H`@xx573i^h&=XGS#{Vx#*-)k6Z14`~dhB5j(Et3k6uasaS=82m9~+gp9uVdjjF z0CkVU+6t$xg3oG%{D?IXTyDyqJ*#T$)^8G88_B|@%;0e_NrsUZN&_$d2&NaptT2Nm zof=3d46k;*lU}AnD|JCPa7HxVhyej?G$g~x0D5f9altx>E@X@x^aK^I0VNKAD$U3L za|L$KteF*_9@3`QyU`@O!&??FyDQ4|B16dp)+hqARpmu>gSjIvi ztgM`k^J0=MM$G3)z(6>e>V!Ot#jG)kUL*r+tu2v}x6f$tcfJsA4 z7b+`EW4d^xgdxbhkAk#sQ#hG~;sIe|P|=S$To+LFFivR)KN}D-JP%BA3&f~VU=wp3 zD8;Gpa}vxqtLJUyMz&1H8tmgm+EZ{t1iKvq*6a!3Exl+r>PoYLd;n4e5gOe{BOYLe zMMuLRFc@W>ts}!Yv#MUzMOwpw#gGd#OGYcQTP$D`LpF4D)@+KCjOJ_n!?;uzK>8v8 zfh?pM6;^G9Ii&`kaTIYkPP7LARn%$61di6Y8K4Nl=$5RzZ$F!Qu*!sGK2_mpp`n`r zP~Gl~NJ=?ZElxv|aszWX2AIfL34ht1ihi@9Hzx)u3*oMV(s83lMmJ;aR@9L;bteN1 ztm8=Q6a9sp*_a^XuP`cBMASb{=%eWn&V68InhoY^9zs{|zY8CYM)WX|L5V9a6 zkBJ$&E69z}ATB;VS-R;W4p|!wBm;EA39mQ7D4UsURSnQ&D;rY#z;v^eE4%LpH-gPn zQ8huya8o=M3MM+02!w^@s)kA;b6i~NBV=o9VQv;x3z5{NUDX_@(Z^H@xIk%P?hrjK zu1HWWQr`H0sSz1$Cq`ixT)c&;sOSjpaqS0vg|=e73HC7yRLsJ;G6OA~Wb%l= zpMu*~#AcL{b#!)61_i62Y?7e|vNL;ve+@(_2$6Zchtb>ud!_dlU7TY*+ zOjCfyuiH#u8yhwp(2%d6qeyRb7hOodI$b1g;WPxATfTs%Xb)VxU((eu-%l!G4aAHIRC#b;m0LL~(ZTk8 zG_tB^l|?;a(S$WTxC+F}an+)O{HZBeYczJS3SwhR46*9r&k^7Qra^1A^_HX?q(SgC zDyD+!`uZazHA(O*n*CL`>E4VL(!kY{mI{_gg_T-8PNyI5OPUT86)S}?#@W#qLd_bO zj%bGwTc)mfXVzFKiXZl5l$-uwc5y!PXSTJ+6L9NhMwOnTV7TRnrTe&V5(9~1{zhvK zJhQ{0NHAb#5@ahfNnMsgxxY?|qOtPTSq{+v9TM?S_|s@iN8q<`IBB)YB@M71R);9N zA(&CisEBAJcTHHIf)@(2>11v|d(Mxw#_ab2f^T=jc;a;~?y7?p6&NRh&5clF!$~&wH>|eU3Ktl+01J6-OLaZm%H2*~Pgl!y`>4p`&2WtY zi^?fVcu$nhJJY-=*fnE}*Pm4bi?gOC6sw$41dAlwsSU_@(5975csbxZxhAyjZ0Yub z&DT+EO{!V1nIN^=+Ageigw9?FV8YLD5(}8nA8fwU%UzXUzk`cD*#xW2-CGk3j<#`4 z@a$JA!l`m~IjiDK>5P4{P7sSyP$ptKaJeWGqE3?=Ca6ra9475-raMe9bVnAz1bwL; z=fG!e(LCXnoeBQ`@972;-VRt8XhKsB#GGZ7MF|KKGS+TjUiu9bJQay4f7}9KYyEU} zAs_T!ct*fbQt06!PR)LWN||{4`VuzIMSivRt(44GrLdy1pFj82WE4tdq8noeoiJ%$ zq(!Y}%rgm;X$bI|I+M7oKSj#|6Pn!9##@=l%QeVZD2&TYEGw0Tb^SEx@pzsYc6%X8 zCQlRS@MtgC#|n9R0E?;~DxKNUs6H@a^!9wH+=J(yG`o_SlpJ~b%*IY#MrQjipV7)h zGzO%CGGQl)=D9s%7T3_voSPvXPKO2`})DfIpzxGU7;0O`3b`Xx0AROCOgySR#$B7Zvf_cGnS9lr_PnF>9ecCNtFp33iTtL;oRDAFvN~<3flIBY+W3z7`_mcanQCd zp5)U&&=L;@VfG6JgcmHx2F*7wjK}*;ht00kig-8!H&3SE0Q-?g(qZolr$5-cSeV+! z6PdVirsnf}@Dw3f+YaiMaO7l&?2Un}^K2KHa;!HBB$+4|ZL zc?j5dYJFWmQw^d?Wvb@3wqf=xYU1!sQZqWTYS2t7nwn4n6}(c~jEW>ggx<38yM7Vmxtn82%7&3mZS*0QBBI(HUmFnu#GG0fC4S)rkTu@M%G)x&C{ z4c2;aVHlS}rudVcZH;kyW0ima-X?F>^Z5|KIIn;ioG}oB;zj{4R(h7clbLt4cLo*Z zHWUGBd>xl{vkoMdg0(VS<^twIf3gfKOW_&;PJl|Xt~0e5k_faKAP|F_1N0#`w~Y8S zv6zG`ky3>GE9gbHV{qK6Wc2LItgRNaxuwO&m_%H6pM^a{(@O`|b&iCwjF1XKE&c78 zShT>#7prh_XIwv~B^q{=*ed`hUEoHD#qp5Y0IPFRKL}1Hr223@0c%I1 z9dC0dGFT$k%tHKL8ZnvLZ<%V!79Dibrj=g1@DNN|)i&wnVWpeq)>x~L4lHp@DmZi3 zAU>*NKR_wd3{)?kcpg+KmK0F(r;~x0 zM%=C`F3X(;c{g^Ap`caBxIqG3;W#0em{!EyP7EfnzBBW-DfS&)2e9wgL++RL3n#sD z6|&l+5!30L$9NetyM-!kwWt(hf%+NHP5j7^+~v{WbeaxhJmL0^kte;JtvD*l+iIyI>OyRYd&DDOPgzN5`0*7dN>0ly^kuYW*sc1WI9;Z}DXt2&( zmNRHNW+NFkSV~Mk%X?|in$Gp#<}{zcSs6a7(w-g8rM zkz^nhUXg-Js!hW+JULNIw-V$o-CI{%XW`ND6bC~iGj9}$xm`PsBk4X%)*pFyV8W_6 z53)Pe><1D9jI@_&?o$-ZQrrns#AsFbL<5j{8qpKNL?*vw~lT?V%9o8tr1y>T$jr)My;zlr9-X%?I%nQ^*n2h1#S zq-cR<%BVa8sdezBjGwtN>6?K!bLtnQMPNGnGgV4v0}9i~EX+WSfv5d328tdzum{Z! z84#yh?Yoqcv|OAghZl7Vr{+oF4DKAru@tg*N+u=4%m~iA716v2t9CXwI(;>GH5nS! zTHDCL4AS6`2T4AT$#CyI&*flgkEE9w9GUlOmIhDvnbCu24;&a#t#C#6<9jGVe$}5K z-l=rZ5p&gJ%sbGyks8wVaF-q4sfDMXm6xF~i;3ll`rKk~+NETBxG55h2JnV0X`-4If&Q6< zE#zNiqw4~CU?bY7!3vN{?oJHSS7_5)z5|t#9U!wV+u6y{b=k&Vj_fi7fzK!x-iCl1 zGqOu*;K?s`6GBjXIgJ4IU@2<7@%AbR<UNetL6WE!RII1*ompKq}+r ztDpe_?3pW}Le8w|T4;n2m2d&W<*TAL-43r5pzc~8v_J2Qy)393rjY&?^&I03>Tm%z ztuOADBgVb?`3yC#NuSHX*RAlFNfLHuJ7D6mtJbj?5cYRfnN|h0wfPyBQO@cJQf&54 zpQ^W#DDCVXGcmS2j_y?BbEo*=7t8g==o_&!;SI>Sv=k0|g{M9+bDo56VK&&TuS2Wj z33z!B-&q_Ph#VfL_v0r!;jy;1Ky$Du5{1(@>CLX8G(ErBHI$|&IJ<_j zf@_oh*lLAXDeW5SUfkc{OIFR1sFT;MB#o`!7nC%!Ig2H&yD*g{n9%sp+zFR>ZbLB9 z5~i2UN!r-F=1bDr`kbtKYuD^xDjIC0PTcMo3me<>f5N7}$$?5CWk=3eh{37<6(TWp zPr?>9bz9i>fF1f1QnRa6UT!$*=2C66r%;Aw#ZZHXb&0KX&ZXZ><}=SVJsNDG&dAWP zgf4HHze_-vh#pXe#xuQR<;u=LGay5AX}~oYm_Yv;VyB)V_-v)8Y%m0cA_dM);cR%n zBiMq~tud@e5F#rxM@HjXEz;r)q_omOhNIO^!66q%oS|VEwL&d$ z=?1XeONp9ndJMzRF-2L~xk7g~6u^9)d4WqCCX z22oj1Va5VKSFgkvIJa>L3?rl-s_SRaHB_*@Jq)$+X62$8)6m^Z|A_me%<@% z@Uvm1$91h3)~=Aa#23?L3p+(|#+neoI(@TjW?u~%)!b*SAQeK6t{^fBViME_;w3~l zNAV57*&r6Y=NW~xKilgbD0Q`SAd}emS=%8WcBLbsGj}D9&J}g}x zuQBUtKwB3~!b|7WnodrWDHRZsWPb!j8f8GZG=p-x?v)E#z<~x`$VC}&u}Z_inHC-G zH*6K9cBb8KPNW31on$2Jcd>NXD%L|z(@6*IWt4@ovFB`rO-rD16GQYMHH~Nia2bGc zFUG+7vi73d@CvxcsVUMHjB2Vng?JtLA|VF$mS7Y(Qntw0<5PI$0rHpNX4*3|MyphV z$u_C_bbZ;XnF(Fa1PeQ8>TiWDY`Q;T+uvXjtdUfAT6|%5+>oB73r?;DuBnMcuoD$P z-3qM>CzuVZplXh;4P#4u1fl~J9i54fBYl>;f4N9@8O)g(PHib(gLk&MRs(V;^*ImdmF7v#}P^9;3kTtWJSTHpo%ssvu( z#`gxfn0+kf7=qd*S!46&eLjSZc#UluyBM)%;Q9i?5?9SrQpn2$4I*`XHv zCfQZN7^bBAP|6V<%MsiU0gluQkR?4FO3rHELC|UC+C#Q|wvsG|xubn)#tXM3!p>Nr zF&>iH<}xtlxHe-bA~X}^r>e{kxFH}*l}fbv+e1dEcm#nVzaR6H$6XVy}p zdd*(Pcf`>zDidX?%rTajOzU#86#l44i!zZ)vCgx^imP*seVqpc!wpXYK z$Ow19iaoP#4G$;cXXx5fn33dWzPP@lF1dpF}B|i6)M$Ibf`S&*7Z%w`K4PYs<5;-y&nrmO(>!m>o>4EeMd{Wf**0$2-_>c+4 zbLl(YL9Y^^@T1bVa2j>2Z%u@*wDFyIyNWiJT2omvQ`uP=Ght5^9??vNqn&{;il3%wpyC#bJ55#2 z=@LNN2fu{3ymX1FDHm>dDnfs~X3m`S4XILsrYjF=E5%pfMl2SX;C{8(F!h1m>ZWk0 z1Cn%hb;b=FV)`1DoQ8B^ij<)uFkKz#rEU`br`^=_Oid;uEivVyG7XLdo?ga!YDat2 zQUs3Yqn>_$FgoaFu(So|V#r`03Tnd5!H#H3XdCp%iU3*01r=P;vws(+D}QN6ir}P9 zBg_;;5TkQNtryCJXIT_iB}LFTZA94qfbrT_4|`Ktxhg@EPo~%VIvNgPV^P(B@mbD- z>U7nBXroKZNew6@R%BqEhCcO?Ujr|vCxR*VFtm^tdukzU`kN%qgp?;5imjbq?b~lU z97sV;5!~l1B&qBOETe)(yS*6xhoKX0H(74k*G5_vN8vA~5cG*CAvH%?A0Y;(Mqh}; z)cy)v*v$P1+a9oWhLGCAjChjAjo^YYserdSV*UMB1U+Uv?&5 z$kwbbvSqRAOS2+7;Vxw50By>trfV=6N{$DS>H~W|5Zoo?4?SKJTC1zZc^!?N)EXnA zrM3_)wMJxTNs&J^VU1|HEsmC3BU)h#(F$`!UD>eX0(R&!g+rvjKYtmGA|miF-Ja)T z?Ptzc*?!b7TRA^=S5X2+_G{;kGhokc3dm2QFFhsFk7S}B!Gm`lU}Ti|-w+x>q(xtf z;xa0%f%mDVb9WLLO(pngAWRc9E6K9*>qN9o{>Ou3k_S zz=x(lx4R=jbYQoRxKJGh5ds+vCNsg~p?YH2zmmwNY_FNIWD1KgdC`ER-%eu^0Z&Eg z3PgP6KJ&Q-@9cP}1N^NLxC@$_1~h{2+YDy}Ev>h*_&9ZQ3Y_CTVDXfoyFP6`lFx=* zmVuP01GY&)l!bFjlK@Yq;O)PR1UT=LC*1}jG)~0@Eh6;kO9^90gdT(DO>&_L9AuU- z79c~w;~LUy>BAS=%5MJ* zN0!Ujyu03=H)1|;&&?ZYsn^^p4^SI4lIwFHyu3iY!CF(IYsBl+3L7z)T2bTIZ5mNy z!zr|kf+;-9_OO*UTb@}~$8hN=d-wWOHI7h%{Qxsw{%*M)P-V-L*h`MM; zQZWH&O^itKrm#$;)*+sXTodCNk>k}3naHQn!ojj|X>+OPgi*PPnvr_*_A0eV*CRPmk8ON1E7~bGv>?)YhIu z5w*k41TZY86K(@@mZky8;NFg1Ik21Q^;Fjr2u zJ?Q#Q4RiAAlt(>e{JKf{<|p1o*8*kNO+*cCm3Es0ZKZfqx2P%+glIjPvEi+1e?xUw zBNwHmC~~or;x_Wo-)Mqi)fOi!xLCYAQ668Rx4~xIIEtebME2C)*a>{rM*k`?-35a2 zVfz?S$Oo|Ph^S$;@1M4!9UgemF7}NC94WW4d4Ji#E-qv@EUxJ3EwO}6=Z2A<kvYt8{vgC?e5qbrrY`8&@Wy*(T)d8xhlG5Kp9ti z#(YY*@Pqy-m+Wd2c6s&eE?sde%cO*{OD5a<#xFa6RBb_R`tCZrv6q_B;7vuY)rK<@ zV6r!Uf`*Q~ji9~LC8z*}slyR`-=@bAv_#vduYAb3B9CiuFSw~S778ZR)8D9Z zHMg`0WYnFzj{@`oC`ZDJ5pm|=j-TPAKbM+seiAOTNT2JMNNf--7{tKDEMwrS3dUNr z*@B*YRkk3Uh(zNpj%rK9t?f-}aa%|8T8yI0XI{nVOsBcHiOrcVZj5hg2rnq4+mvxA zI%?&L0e79KR}}_$m5vzkEQ%Nxz1x8RZXqcV73P_6oraM=JITT{Qn^sU>?(*rT>?&5 zL&;-0@JiBaG1NR4EwmLgR0j-T-4G+wolKQL5mp@SU{~03WH!V-!>jYv`%KZ0!Szyn z)V%fVzS2}M*^0ASjH5fPkC?)7Is;@dKU75;81KNpdPj8OpQxBzKin$J^Bdr1ed3o-GoMvb&gZ zagJLEWi*F?xdgRgZW-K4kWvF9eajL^$ssYeXIVxM4Jt4GvddysOs=wd;ZU5%3wlI- zf%rUL1G1f_G_=QHU1jrQ(#8Xz@l?7!kxUoCVwD>5q*BkR?kH2YH}%A^jC&v0l=Mjo zF0@?8zJ{fJ9|Sa&*G*XQ`f_k(i{UdZT~9sWXi5d9MrlntRXUaWAHm-C$jbVEp8DG< literal 0 HcmV?d00001 diff --git a/Qt4Qt5/qscintilla_de.ts b/Qt4Qt5/qscintilla_de.ts new file mode 100644 index 0000000..44c0fa1 --- /dev/null +++ b/Qt4Qt5/qscintilla_de.ts @@ -0,0 +1,3612 @@ + + + + + QsciCommand + + + Move left one character + Ein Zeichen nach links + + + + Move right one character + Ein Zeichen nach rechts + + + + Move up one line + Eine Zeile nach oben + + + + Move down one line + Eine Zeile nach unten + + + + Move left one word part + Ein Wortteil nach links + + + + Move right one word part + Ein Wortteil nach rechts + + + + Move left one word + Ein Wort nach links + + + + Move right one word + Ein Wort nach rechts + + + + Scroll view down one line + Eine Zeile nach unten rollen + + + + Scroll view up one line + Eine Zeile nach oben rollen + + + + Move up one page + Eine Seite hoch + + + + Move down one page + Eine Seite nach unten + + + + Indent one level + Eine Ebene einrücken + + + + Extend selection left one character + Auswahl um ein Zeichen nach links erweitern + + + + Extend selection right one character + Auswahl um ein Zeichen nach rechts erweitern + + + + Extend selection up one line + Auswahl um eine Zeile nach oben erweitern + + + + Extend selection down one line + Auswahl um eine Zeile nach unten erweitern + + + + Extend selection left one word part + Auswahl um einen Wortteil nach links erweitern + + + + Extend selection right one word part + Auswahl um einen Wortteil nach rechts erweitern + + + + Extend selection left one word + Auswahl um ein Wort nach links erweitern + + + + Extend selection right one word + Auswahl um ein Wort nach rechts erweitern + + + + Extend selection up one page + Auswahl um eine Seite nach oben erweitern + + + + Extend selection down one page + Auswahl um eine Seite nach unten erweitern + + + + Delete previous character + Zeichen links löschen + + + + Delete current character + Aktuelles Zeichen löschen + + + + Delete word to left + Wort links löschen + + + + Delete word to right + Wort rechts löschen + + + + Delete line to left + Zeile links löschen + + + + Delete line to right + Zeile rechts löschen + + + + Delete current line + Aktuelle Zeile löschen + + + + Cut current line + Aktuelle Zeile ausschneiden + + + + Cut selection + Auswahl ausschneiden + + + + Copy selection + Auswahl kopieren + + + + Paste + Einfügen + + + + Redo last command + Letzten Befehl wiederholen + + + + Cancel + Abbrechen + + + + Toggle insert/overtype + Einfügen/Überschreiben umschalten + + + + Scroll to start of document + Zum Dokumentenanfang rollen + + + + Scroll to end of document + Zum Dokumentenende rollen + + + + Scroll vertically to centre current line + Vertical rollen, um aktuelle Zeile zu zentrieren + + + + Move to end of previous word + Zum Ende des vorigen Wortes springen + + + + Extend selection to end of previous word + Auswahl bis zum Ende des vorigen Wortes erweitern + + + + Move to end of next word + Zum Ende des nächsten Wortes springen + + + + Extend selection to end of next word + Auswahl bis zum Ende des nächsten Wortes erweitern + + + + Move to start of document line + Zum Beginn der Dokumentenzeile springen + + + + Extend selection to start of document line + Auswahl zum Beginn der Dokumentenzeile erweitern + + + + Extend rectangular selection to start of document line + Rechteckige Auswahl zum Beginn der Dokumentenzeile erweitern + + + + Move to start of display line + Zum Beginn der Anzeigezeile springen + + + + Extend selection to start of display line + Auswahl zum Beginn der Anzeigezeile erweitern + + + + Move to start of display or document line + Zum Beginn der Dokumenten- oder Anzeigezeile springen + + + + Extend selection to start of display or document line + Rechteckige Auswahl zum Beginn der Dokumenten- oder Anzeigezeile erweitern + + + + Move to first visible character in document line + Zum ersten sichtbaren Zeichen der Dokumentzeile springen + + + + Extend selection to first visible character in document line + Auswahl zum ersten sichtbaren Zeichen der Dokumentzeile erweitern + + + + Extend rectangular selection to first visible character in document line + Rechteckige Auswahl zum ersten sichtbaren Zeichen der Dokumentzeile erweitern + + + + Move to first visible character of display in document line + Zum ersten angezeigten Zeichen der Dokumentzeile springen + + + + Extend selection to first visible character in display or document line + Auswahl zum ersten sichtbaren Zeichen der Dokument- oder Anzeigezeile erweitern + + + + Move to end of document line + Zum Ende der Dokumentzeile springen + + + + Extend selection to end of document line + Auswahl zum Ende der Dokumentenzeile erweitern + + + + Extend rectangular selection to end of document line + Rechteckige Auswahl zum Ende der Dokumentenzeile erweitern + + + + Move to end of display line + Zum Ende der Anzeigezeile springen + + + + Extend selection to end of display line + Auswahl zum Ende der Anzeigezeile erweitern + + + + Move to end of display or document line + Zum Ende der Dokumenten- oder Anzeigezeile springen + + + + Extend selection to end of display or document line + Rechteckige Auswahl zum Ende der Dokumenten- oder Anzeigezeile erweitern + + + + Move to start of document + Zum Dokumentenanfang springen + + + + Extend selection to start of document + Auswahl zum Dokumentenanfang erweitern + + + + Move to end of document + Zum Dokumentenende springen + + + + Extend selection to end of document + Auswahl zum Dokumentenende erweitern + + + + Stuttered move up one page + "Stotternd" um eine Seite nach oben + + + + Stuttered extend selection up one page + Auswahl "stotternd" um eine Seite nach oben erweitern + + + + Stuttered move down one page + "Stotternd" um eine Seite nach unten + + + + Stuttered extend selection down one page + Auswahl "stotternd" um eine Seite nach unten erweitern + + + + Delete previous character if not at start of line + Zeichen links löschen, wenn nicht am Zeilenanfang + + + + Delete right to end of next word + Rechts bis zum Ende des nächsten Wortes löschen + + + + Transpose current and previous lines + Aktuelle und vorherige Zeile tauschen + + + + Duplicate the current line + Aktuelle Zeile duplizieren + + + + Select all + Select document + Alle auswählen + + + + Move selected lines up one line + Ausgewählte Zeilen um eine Zeile nach oben + + + + Move selected lines down one line + Ausgewählte Zeilen um eine Zeile nach unten + + + + Convert selection to lower case + Auswahl in Kleinbuchstaben umwandeln + + + + Convert selection to upper case + Auswahl in Großbuchstaben umwandeln + + + + Insert newline + Neue Zeile einfügen + + + + De-indent one level + Eine Ebene ausrücken + + + + Undo last command + Letzten Befehl rückgängig machen + + + + Zoom in + Vergrößern + + + + Zoom out + Verkleinern + + + + Move up one paragraph + Einen Absatz nach oben + + + + Move down one paragraph + Einen Absatz nach unten + + + + Extend selection up one paragraph + Auswahl um einen Absatz nach oben erweitern + + + + Extend selection down one paragraph + Auswahl um einen Absatz nach unten erweitern + + + + Copy current line + Aktuelle Zeile kopieren + + + + Extend rectangular selection down one line + Rechteckige Auswahl um eine Zeile nach unten erweitern + + + + Extend rectangular selection up one line + Rechteckige Auswahl um eine Zeile nach oben erweitern + + + + Extend rectangular selection left one character + Rechteckige Auswahl um ein Zeichen nach links erweitern + + + + Extend rectangular selection right one character + Rechteckige Auswahl um ein Zeichen nach rechts erweitern + + + + Extend rectangular selection up one page + Rechteckige Auswahl um eine Seite nach oben erweitern + + + + Extend rectangular selection down one page + Rechteckige Auswahl um eine Seite nach unten erweitern + + + + Formfeed + Seitenumbruch + + + + Duplicate selection + Auswahl duplizieren + + + + QsciLexerAVS + + + Default + Standard + + + + Block comment + Blockkommentar + + + + Nested block comment + Verschachtelter Blockkommentar + + + + Line comment + Zeilenkommentar + + + + Number + Zahl + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Triple double-quoted string + Zeichenkette in dreifachen Anführungszeichen + + + + Keyword + Schlüsselwort + + + + Filter + Filter + + + + Plugin + Plugin + + + + Function + Funktion + + + + Clip property + Clip Eigenschaft + + + + User defined + Nutzer definiert + + + + QsciLexerBash + + + Default + Standard + + + + Error + Fehler + + + + Comment + Kommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Scalar + Skalar + + + + Parameter expansion + Parametererweiterung + + + + Backticks + Backticks + + + + Here document delimiter + Here Dokument-Begrenzer + + + + Single-quoted here document + Here Dokument in Hochkommata + + + + QsciLexerBatch + + + Default + Standard + + + + Comment + Kommentar + + + + Keyword + Schlüsselwort + + + + Label + Marke + + + + Variable + Variable + + + + Operator + Operator + + + + Hide command character + "Befehl verbergen" Zeichen + + + + External command + Externer Befehl + + + + QsciLexerCMake + + + Default + Standard + + + + Comment + Kommentar + + + + String + Zeichenkette + + + + Left quoted string + Links quotierte Zeichenkette + + + + Right quoted string + Rechts quotierte Zeichenkette + + + + Function + Funktion + + + + Variable + Variable + + + + Label + Marke + + + + User defined + Nutzer definiert + + + + WHILE block + WHILE Block + + + + FOREACH block + FOREACH Block + + + + IF block + IF Block + + + + MACRO block + MACRO Block + + + + Variable within a string + Variable in einer Zeichenkette + + + + Number + Zahl + + + + QsciLexerCPP + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + IDL UUID + IDL UUID + + + + Pre-processor block + Präprozessorblock + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Unclosed string + Unbeendete Zeichenkette + + + + Default + Standard + + + + Inactive default + Inaktiver Standard + + + + C comment + C Kommentar + + + + Inactive C comment + Inaktiver C Kommentar + + + + C++ comment + C++ Kommentar + + + + Inactive C++ comment + Inaktiver C++ Kommentar + + + + JavaDoc style C comment + JavaDoc C Kommentar + + + + Inactive JavaDoc style C comment + Inaktiver JavaDoc C Kommentar + + + + Inactive number + Inaktive Zahl + + + + Inactive keyword + Inaktives Schlüsselwort + + + + Inactive double-quoted string + Inaktive Zeichenkette in Anführungszeichen + + + + Inactive single-quoted string + Inaktive Zeichenkette in Hochkommata + + + + Inactive IDL UUID + Inaktive IDL UUID + + + + Inactive pre-processor block + Inaktiver Präprozessorblock + + + + Inactive operator + Inaktiver Operator + + + + Inactive identifier + Inaktiver Bezeichner + + + + Inactive unclosed string + Inaktive unbeendete Zeichenkette + + + + C# verbatim string + Uninterpretierte C# Zeichenkette + + + + Inactive C# verbatim string + Inaktive, Uninterpretierte C# Zeichenkette + + + + JavaScript regular expression + JavaScript Regulärer Ausdruck + + + + Inactive JavaScript regular expression + JavaScript Inaktiver Regulärer Ausdruck + + + + JavaDoc style C++ comment + JavaDoc C++ Kommentar + + + + Inactive JavaDoc style C++ comment + Inaktiver JavaDoc C++ Kommentar + + + + Inactive secondary keywords and identifiers + Inaktive sekundäre Schlusselwörter und Bezeichner + + + + JavaDoc keyword + JavaDoc Schlüsselwort + + + + Inactive JavaDoc keyword + Inaktives JavaDoc Schlüsselwort + + + + JavaDoc keyword error + JavaDoc Schlüsselwortfehler + + + + Inactive global classes and typedefs + Inaktive globale Klassen und Typdefinitionen + + + + C++ raw string + Rohe C++ Zeichenkette + + + + Inactive C++ raw string + Inaktive rohe C++ Zeichenkette + + + + Vala triple-quoted verbatim string + Vala Zeichenkette in dreifachen Hochkommata + + + + Inactive Vala triple-quoted verbatim string + Inaktive Vala Zeichenkette in dreifachen Hochkommata + + + + Pike hash-quoted string + Pike Zeichenkette in '#-Anführungszeichen' + + + + Inactive Pike hash-quoted string + Inaktive Pike Zeichenkette in '#-Anführungszeichen' + + + + Pre-processor C comment + C Präprozessorkommentar + + + + Inactive pre-processor C comment + Inaktiver C Präprozessorkommentar + + + + JavaDoc style pre-processor comment + JavaDoc Präprozessorkommentar + + + + Inactive JavaDoc style pre-processor comment + Inaktiver JavaDoc Präprozessorkommentar + + + + Secondary keywords and identifiers + Sekundäre Schlusselwörter und Bezeichner + + + + Inactive JavaDoc keyword error + Inaktiver JavaDoc Schlüsselwortfehler + + + + Global classes and typedefs + Globale Klassen und Typdefinitionen + + + + QsciLexerCSS + + + Default + Standard + + + + Tag + Tag + + + + Class selector + Klassenselektor + + + + Pseudo-class + Pseudoklasse + + + + Unknown pseudo-class + Unbekannte Pseudoklasse + + + + Operator + Operator + + + + CSS1 property + CSS1 Eigenschaft + + + + Unknown property + Unbekannte Eigenschaft + + + + Value + Wert + + + + ID selector + ID-Selektor + + + + Important + Wichtig + + + + @-rule + @-Regel + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + CSS2 property + CSS2 Eigenschaft + + + + Attribute + Attribut + + + + CSS3 property + CSS3 Eigenschaft + + + + Pseudo-element + Pseudoelement + + + + Extended CSS property + Erweiterte CSS Eigenschaft + + + + Extended pseudo-class + Erweiterte Pseudoklasse + + + + Extended pseudo-element + Erweitertes Pseudoelement + + + + Media rule + Medienregel + + + + Variable + Variable + + + + QsciLexerCSharp + + + Verbatim string + Uninterpretierte Zeichenkette + + + + QsciLexerCoffeeScript + + + Default + Standard + + + + C-style comment + C Kommentar + + + + C++-style comment + C++ Kommentar + + + + JavaDoc C-style comment + JavaDoc C Kommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + IDL UUID + IDL UUID + + + + Pre-processor block + Präprozessorblock + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Unclosed string + Unbeendete Zeichenkette + + + + C# verbatim string + Uninterpretierte C# Zeichenkette + + + + Regular expression + Regulärer Ausdruck + + + + JavaDoc C++-style comment + JavaDoc C++ Kommentar + + + + Secondary keywords and identifiers + Sekundäre Schlusselwörter und Bezeichner + + + + JavaDoc keyword + JavaDoc Schlüsselwort + + + + JavaDoc keyword error + JavaDoc Schlüsselwortfehler + + + + Global classes + Globale Klassen + + + + Block comment + Blockkommentar + + + + Block regular expression + Regulärer Ausdrucksblock + + + + Block regular expression comment + Regulärer Ausdrucksblockkommentar + + + + QsciLexerD + + + Default + Standard + + + + Block comment + Blockkommentar + + + + Line comment + Zeilenkommentar + + + + DDoc style block comment + DDoc Blockkommentar + + + + Nesting comment + schachtelbarer Kommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Secondary keyword + Sekundäres Schlüsselwort + + + + Documentation keyword + Dokumentationsschlüsselwort + + + + Type definition + Typdefinition + + + + String + Zeichenkette + + + + Unclosed string + Unbeendete Zeichenkette + + + + Character + Zeichen + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + DDoc style line comment + DDoc Zeilenkommentar + + + + DDoc keyword + DDoc Schlüsselwort + + + + DDoc keyword error + DDoc Schlüsselwortfehler + + + + Backquoted string + Zeichenkette in Rückwärtsstrichen + + + + Raw string + Rohe Zeichenkette + + + + User defined 1 + Nutzer definiert 1 + + + + User defined 2 + Nutzer definiert 2 + + + + User defined 3 + Nutzer definiert 3 + + + + QsciLexerDiff + + + Default + Standard + + + + Comment + Kommentar + + + + Command + Befehl + + + + Header + Kopfzeilen + + + + Position + Position + + + + Removed line + Entfernte Zeile + + + + Added line + Hinzugefügte Zeile + + + + Changed line + Geänderte Zeile + + + + QsciLexerFortran77 + + + Default + Standard + + + + Comment + Kommentar + + + + Number + Zahl + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Unclosed string + Unbeendete Zeichenkette + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Keyword + Schlüsselwort + + + + Intrinsic function + Intrinsic-Funktion + + + + Extended function + Erweiterte Funktion + + + + Pre-processor block + Präprozessorblock + + + + Dotted operator + Dotted Operator + + + + Label + Marke + + + + Continuation + Fortsetzung + + + + QsciLexerHTML + + + HTML default + HTML Standard + + + + Tag + Tag + + + + Unknown tag + Unbekanntes Tag + + + + Attribute + Attribut + + + + Unknown attribute + Unbekanntes Attribut + + + + HTML number + HTML Zahl + + + + HTML double-quoted string + HTML Zeichenkette in Anführungszeichen + + + + HTML single-quoted string + HTML Zeichenkette in Hochkommata + + + + Other text in a tag + Anderer Text in einem Tag + + + + HTML comment + HTML Kommentar + + + + Entity + Entität + + + + End of a tag + Tagende + + + + Start of an XML fragment + Beginn eines XML Fragmentes + + + + End of an XML fragment + Ende eines XML Fragmentes + + + + Script tag + Skript Tag + + + + Start of an ASP fragment with @ + Beginn eines ASP Fragmentes mit @ + + + + Start of an ASP fragment + Beginn eines ASP Fragmentes + + + + CDATA + CDATA + + + + Start of a PHP fragment + Beginn eines PHP Fragmentes + + + + Unquoted HTML value + HTML Wert ohne Anführungszeichen + + + + ASP X-Code comment + ASP X-Code Kommentar + + + + SGML default + SGML Standard + + + + SGML command + SGML Befehl + + + + First parameter of an SGML command + Erster Parameter eines SGML Befehls + + + + SGML double-quoted string + SGML Zeichenkette in Anführungszeichen + + + + SGML single-quoted string + SGML Zeichenkette in Hochkommata + + + + SGML error + SGML Fehler + + + + SGML special entity + SGML Spezielle Entität + + + + SGML comment + SGML Kommentar + + + + First parameter comment of an SGML command + Kommentar des ersten Parameters eines SGML Befehls + + + + SGML block default + SGML Standardblock + + + + Start of a JavaScript fragment + Beginn eines JavaScript Fragmentes + + + + JavaScript default + JavaScript Standard + + + + JavaScript comment + JavaScript Kommentar + + + + JavaScript line comment + JavaScript Zeilenkommentar + + + + JavaDoc style JavaScript comment + JavaDoc JavaScript Kommentar + + + + JavaScript number + JavaScript Zahl + + + + JavaScript word + JavaScript Wort + + + + JavaScript keyword + JavaScript Schlüsselwort + + + + JavaScript double-quoted string + JavaScript Zeichenkette in Anführungszeichen + + + + JavaScript single-quoted string + JavaScript Zeichenkette in Hochkommata + + + + JavaScript symbol + JavaScript Symbol + + + + JavaScript unclosed string + JavaScript Unbeendete Zeichenkette + + + + JavaScript regular expression + JavaScript Regulärer Ausdruck + + + + Start of an ASP JavaScript fragment + Beginn eines ASP JavaScript Fragmentes + + + + ASP JavaScript default + ASP JavaScript Standard + + + + ASP JavaScript comment + ASP JavaScript Kommentar + + + + ASP JavaScript line comment + ASP JavaScript Zeilenkommentar + + + + JavaDoc style ASP JavaScript comment + JavaDoc ASP JavaScript Kommentar + + + + ASP JavaScript number + ASP JavaScript Zahl + + + + ASP JavaScript word + ASP JavaScript Wort + + + + ASP JavaScript keyword + ASP JavaScript Schlüsselwort + + + + ASP JavaScript double-quoted string + ASP JavaScript Zeichenkette in Anführungszeichen + + + + ASP JavaScript single-quoted string + ASP JavaScript Zeichenkette in Hochkommata + + + + ASP JavaScript symbol + ASP JavaScript Symbol + + + + ASP JavaScript unclosed string + ASP JavaScript Unbeendete Zeichenkette + + + + ASP JavaScript regular expression + ASP JavaScript Regulärer Ausdruck + + + + Start of a VBScript fragment + Beginn eines VBScript Fragmentes + + + + VBScript default + VBScript Standard + + + + VBScript comment + VBScript Kommentar + + + + VBScript number + VBScript Zahl + + + + VBScript keyword + VBScript Schlüsselwort + + + + VBScript string + VBScript Zeichenkette + + + + VBScript identifier + VBScript Bezeichner + + + + VBScript unclosed string + VBScript Unbeendete Zeichenkette + + + + Start of an ASP VBScript fragment + Beginn eines ASP VBScript Fragmentes + + + + ASP VBScript default + ASP VBScript Standard + + + + ASP VBScript comment + ASP VBScript Kommentar + + + + ASP VBScript number + ASP VBScript Zahl + + + + ASP VBScript keyword + ASP VBScript Schlüsselwort + + + + ASP VBScript string + ASP VBScript Zeichenkette + + + + ASP VBScript identifier + ASP VBScript Bezeichner + + + + ASP VBScript unclosed string + ASP VBScript Unbeendete Zeichenkette + + + + Start of a Python fragment + Beginn eines Python Fragmentes + + + + Python default + Python Standard + + + + Python comment + Python Kommentar + + + + Python number + Python Zahl + + + + Python double-quoted string + Python Zeichenkette in Anführungszeichen + + + + Python single-quoted string + Python Zeichenkette in Hochkommata + + + + Python keyword + Python Schlüsselwort + + + + Python triple double-quoted string + Python Zeichenkette in dreifachen Anführungszeichen + + + + Python triple single-quoted string + Python Zeichenkette in dreifachen Hochkommata + + + + Python class name + Python Klassenname + + + + Python function or method name + Python Funktions- oder Methodenname + + + + Python operator + Python Operator + + + + Python identifier + Python Bezeichner + + + + Start of an ASP Python fragment + Beginn eines ASP Python Fragmentes + + + + ASP Python default + ASP Python Standard + + + + ASP Python comment + ASP Python Kommentar + + + + ASP Python number + ASP Python Zahl + + + + ASP Python double-quoted string + ASP Python Zeichenkette in Anführungszeichen + + + + ASP Python single-quoted string + ASP Python Zeichenkette in Hochkommata + + + + ASP Python keyword + ASP Python Schlüsselwort + + + + ASP Python triple double-quoted string + ASP Python Zeichenkette in dreifachen Anführungszeichen + + + + ASP Python triple single-quoted string + ASP Python Zeichenkette in dreifachen Hochkommata + + + + ASP Python class name + ASP Python Klassenname + + + + ASP Python function or method name + ASP Python Funktions- oder Methodenname + + + + ASP Python operator + ASP Python Operator + + + + ASP Python identifier + ASP Python Bezeichner + + + + PHP default + PHP Standard + + + + PHP double-quoted string + PHP Zeichenkette in Anführungszeichen + + + + PHP single-quoted string + PHP Zeichenkette in Hochkommata + + + + PHP keyword + PHP Schlüsselwort + + + + PHP number + PHP Zahl + + + + PHP comment + PHP Kommentar + + + + PHP line comment + PHP Zeilenkommentar + + + + PHP double-quoted variable + PHP Variable in Anführungszeichen + + + + PHP operator + PHP Operator + + + + PHP variable + PHP Variable + + + + QsciLexerIDL + + + UUID + UUID + + + + QsciLexerJavaScript + + + Regular expression + Regulärer Ausdruck + + + + QsciLexerLua + + + Default + Standard + + + + Comment + Kommentar + + + + Line comment + Zeilenkommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + String + Zeichenkette + + + + Character + Zeichen + + + + Literal string + Uninterpretierte Zeichenkette + + + + Preprocessor + Präprozessor + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Unclosed string + Unbeendete Zeichenkette + + + + Basic functions + Basisfunktionen + + + + String, table and maths functions + Zeichenketten-, Tabelle- und mathematische Funktionen + + + + Coroutines, i/o and system facilities + Koroutinen, I/O- und Systemfunktionen + + + + User defined 1 + Nutzer definiert 1 + + + + User defined 2 + Nutzer definiert 2 + + + + User defined 3 + Nutzer definiert 3 + + + + User defined 4 + Nutzer definiert 4 + + + + Label + Marke + + + + QsciLexerMakefile + + + Default + Standard + + + + Comment + Kommentar + + + + Preprocessor + Präprozessor + + + + Variable + Variable + + + + Operator + Operator + + + + Target + Ziel + + + + Error + Fehler + + + + QsciLexerMatlab + + + Default + Standard + + + + Comment + Kommentar + + + + Command + Befehl + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + QsciLexerPO + + + Default + Standard + + + + Comment + Kommentar + + + + Message identifier + Meldungsbezeichner + + + + Message identifier text + Meldungsbezeichnertext + + + + Message string + Meldungszeichenkette + + + + Message string text + Meldungszeichenkettentext + + + + Message context + Meldungskontext + + + + Message context text + Meldungskontexttext + + + + Fuzzy flag + Unschrfmarkierung + + + + Programmer comment + Programmiererkommentar + + + + Reference + Referenz + + + + Flags + Markierung + + + + Message identifier text end-of-line + Meldungsbezeichnertext Zeilenende + + + + Message string text end-of-line + Meldungszeichenkettentext Zeilenende + + + + Message context text end-of-line + Meldungskontexttext Zeilenende + + + + QsciLexerPOV + + + Default + Standard + + + + Comment + Kommentar + + + + Comment line + Kommentarzeile + + + + Number + Zahl + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + String + Zeichenkette + + + + Unclosed string + Unbeendete Zeichenkette + + + + Directive + Direktive + + + + Bad directive + Ungültige Direktive + + + + Objects, CSG and appearance + Objekte, CSG und Erscheinung + + + + Types, modifiers and items + Typen, Modifizierer und Items + + + + Predefined identifiers + Vordefinierter Bezeichner + + + + Predefined functions + Vordefinierte Funktion + + + + User defined 1 + Nutzer definiert 1 + + + + User defined 2 + Nutzer definiert 2 + + + + User defined 3 + Nutzer definiert 3 + + + + QsciLexerPascal + + + Default + Standard + + + + Line comment + Zeilenkommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + '{ ... }' style comment + '{ ... }' Kommentar + + + + '(* ... *)' style comment + '(* ... *)' Kommentar + + + + '{$ ... }' style pre-processor block + '{$ ... }' Präprozessorblock + + + + '(*$ ... *)' style pre-processor block + '(*$ ... *)' Präprozessorblock + + + + Hexadecimal number + Hexadezimale Zahl + + + + Unclosed string + Unbeendete Zeichenkette + + + + Character + Zeichen + + + + Inline asm + Inline Assembler + + + + QsciLexerPerl + + + Default + Standard + + + + Error + Fehler + + + + Comment + Kommentar + + + + POD + POD + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Scalar + Skalar + + + + Array + Feld + + + + Hash + Hash + + + + Symbol table + Symboltabelle + + + + Regular expression + Regulärer Ausdruck + + + + Substitution + Ersetzung + + + + Backticks + Backticks + + + + Data section + Datensektion + + + + Here document delimiter + Here Dokument-Begrenzer + + + + Single-quoted here document + Here Dokument in Hochkommata + + + + Double-quoted here document + Here Dokument in Anführungszeichen + + + + Backtick here document + Here Dokument in Backticks + + + + Quoted string (q) + Zeichenkette (q) + + + + Quoted string (qq) + Zeichenkette (qq) + + + + Quoted string (qx) + Zeichenkette (qx) + + + + Quoted string (qr) + Zeichenkette (qr) + + + + Quoted string (qw) + Zeichenkette (qw) + + + + POD verbatim + POD wörtlich + + + + Subroutine prototype + Subroutinen Prototyp + + + + Format identifier + Formatidentifikator + + + + Format body + Formatzweig + + + + Double-quoted string (interpolated variable) + Zeichenkette in Anführungszeichen (interpolierte Variable) + + + + Translation + Übersetzung + + + + Regular expression (interpolated variable) + Regulärer Ausdruck (interpolierte Variable) + + + + Substitution (interpolated variable) + Ersetzung (interpolierte Variable) + + + + Backticks (interpolated variable) + Backticks (interpolierte Variable) + + + + Double-quoted here document (interpolated variable) + Here Dokument in Anführungszeichen (interpolierte Variable) + + + + Backtick here document (interpolated variable) + Here Dokument in Backticks (interpolierte Variable) + + + + Quoted string (qq, interpolated variable) + Zeichenkette (qq, interpolierte Variable) + + + + Quoted string (qx, interpolated variable) + Zeichenkette (qx, interpolierte Variable) + + + + Quoted string (qr, interpolated variable) + Zeichenkette (qr, interpolierte Variable) + + + + QsciLexerPostScript + + + Default + Standard + + + + Comment + Kommentar + + + + DSC comment + DSC Kommentar + + + + DSC comment value + DSC Kommentarwert + + + + Number + Zahl + + + + Name + Name + + + + Keyword + Schlüsselwort + + + + Literal + Literal + + + + Immediately evaluated literal + Direkt ausgeführtes Literal + + + + Array parenthesis + Feldklammern + + + + Dictionary parenthesis + Dictionary-Klammern + + + + Procedure parenthesis + Prozedurklammern + + + + Text + Text + + + + Hexadecimal string + Hexadezimale Zeichenkette + + + + Base85 string + Base85 Zeichenkette + + + + Bad string character + Ungültiges Zeichen für Zeichenkette + + + + QsciLexerProperties + + + Default + Standard + + + + Comment + Kommentar + + + + Section + Abschnitt + + + + Assignment + Zuweisung + + + + Default value + Standardwert + + + + Key + Schlüssel + + + + QsciLexerPython + + + Comment + Kommentar + + + + Number + Zahl + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Keyword + Schlüsselwort + + + + Triple single-quoted string + Zeichenkette in dreifachen Hochkommata + + + + Triple double-quoted string + Zeichenkette in dreifachen Anführungszeichen + + + + Class name + Klassenname + + + + Function or method name + Funktions- oder Methodenname + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Comment block + Kommentarblock + + + + Unclosed string + Unbeendete Zeichenkette + + + + Default + Standard + + + + Highlighted identifier + Hervorgehobener Bezeichner + + + + Decorator + Dekorator + + + + QsciLexerRuby + + + Default + Standard + + + + Comment + Kommentar + + + + Number + Zahl + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Keyword + Schlüsselwort + + + + Class name + Klassenname + + + + Function or method name + Funktions- oder Methodenname + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Error + Fehler + + + + POD + POD + + + + Regular expression + Regulärer Ausdruck + + + + Global + Global + + + + Symbol + Symbol + + + + Module name + Modulname + + + + Instance variable + Instanzvariable + + + + Class variable + Klassenvariable + + + + Backticks + Backticks + + + + Data section + Datensektion + + + + Here document delimiter + Here Dokument-Begrenzer + + + + Here document + Here Dokument + + + + %q string + %q Zeichenkette + + + + %Q string + %Q Zeichenkette + + + + %x string + %x Zeichenkette + + + + %r string + %r Zeichenkette + + + + %w string + %w Zeichenkette + + + + Demoted keyword + zurückgestuftes Schlüsselwort + + + + stdin + Stdin + + + + stdout + Stdout + + + + stderr + Stderr + + + + QsciLexerSQL + + + Default + Standard + + + + Comment + Kommentar + + + + Number + Zahl + + + + Keyword + Schlüsselwort + + + + Single-quoted string + Zeichenkette in Hochkommata + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Comment line + Kommentarzeile + + + + JavaDoc style comment + JavaDoc Kommentar + + + + Double-quoted string + Zeichenkette in Anführungszeichen + + + + SQL*Plus keyword + SQL*Plus Schlüsselwort + + + + SQL*Plus prompt + SQL*Plus Eingabe + + + + SQL*Plus comment + SQL*Plus Kommentar + + + + # comment line + # Kommentarzeile + + + + JavaDoc keyword + JavaDoc Schlüsselwort + + + + JavaDoc keyword error + JavaDoc Schlüsselwortfehler + + + + User defined 1 + Nutzer definiert 1 + + + + User defined 2 + Nutzer definiert 2 + + + + User defined 3 + Nutzer definiert 3 + + + + User defined 4 + Nutzer definiert 4 + + + + Quoted identifier + Bezeichner in Anführungszeichen + + + + QsciLexerSpice + + + Default + Standard + + + + Identifier + Bezeichner + + + + Command + Befehl + + + + Function + Funktion + + + + Parameter + Parameter + + + + Number + Zahl + + + + Delimiter + Delimiter + + + + Value + Wert + + + + Comment + Kommentar + + + + QsciLexerTCL + + + Default + Standard + + + + Comment + Kommentar + + + + Comment line + Kommentarzeile + + + + Number + Zahl + + + + Quoted keyword + angeführtes Schlüsselwort + + + + Quoted string + Zeichenkette + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Substitution + Ersetzung + + + + Brace substitution + Klammerersetzung + + + + Modifier + Modifizierer + + + + Expand keyword + Erweiterungsschlüsselwort + + + + TCL keyword + TCL Schlüsselwort + + + + Tk keyword + Tk Schlüsselwort + + + + iTCL keyword + iTCL Schlüsselwort + + + + Tk command + Tk Befehl + + + + User defined 1 + Nutzer definiert 1 + + + + User defined 2 + Nutzer definiert 2 + + + + User defined 3 + Nutzer definiert 3 + + + + User defined 4 + Nutzer definiert 4 + + + + Comment box + Kommentarbox + + + + Comment block + Kommentarblock + + + + QsciLexerTeX + + + Default + Standard + + + + Special + Spezial + + + + Group + Gruppe + + + + Symbol + Symbol + + + + Command + Befehl + + + + Text + Text + + + + QsciLexerVHDL + + + Default + Standard + + + + Comment + Kommentar + + + + Comment line + Kommentarzeile + + + + Number + Zahl + + + + String + Zeichenkette + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Unclosed string + Unbeendete Zeichenkette + + + + Keyword + Schlüsselwort + + + + Standard operator + Standardoperator + + + + Attribute + Attribut + + + + Standard function + Standardfunktion + + + + Standard package + Standardpaket + + + + Standard type + Standardtyp + + + + User defined + Nutzer definiert + + + + QsciLexerVerilog + + + Default + Standard + + + + Comment + Kommentar + + + + Line comment + Zeilenkommentar + + + + Bang comment + Bang Kommentar + + + + Number + Zahl + + + + Primary keywords and identifiers + Primäre Schlusselwörter und Bezeichner + + + + String + Zeichenkette + + + + Secondary keywords and identifiers + Sekundäre Schlusselwörter und Bezeichner + + + + System task + Systemtask + + + + Preprocessor block + Präprozessorblock + + + + Operator + Operator + + + + Identifier + Bezeichner + + + + Unclosed string + Unbeendete Zeichenkette + + + + User defined tasks and identifiers + Nutzerdefinierte Tasks und Bezeichner + + + + QsciLexerYAML + + + Default + Standard + + + + Comment + Kommentar + + + + Identifier + Bezeichner + + + + Keyword + Schlüsselwort + + + + Number + Zahl + + + + Reference + Referenz + + + + Document delimiter + Dokumentbegrenzer + + + + Text block marker + Textblock Markierung + + + + Syntax error marker + Syntaxfehler Markierung + + + + Operator + Operator + + + + QsciScintilla + + + &Undo + &Rückgängig + + + + &Redo + Wieder&herstellen + + + + Cu&t + &Ausschneiden + + + + &Copy + &Kopieren + + + + &Paste + Ein&fügen + + + + Delete + Löschen + + + + Select All + Alle auswählen + + + diff --git a/Qt4Qt5/qscintilla_es.qm b/Qt4Qt5/qscintilla_es.qm new file mode 100644 index 0000000000000000000000000000000000000000..e79c2db5cfa2d8c843c15c2dd7c0940cc5605c46 GIT binary patch literal 73517 zcmd6Q34ByV@^DX*$uW~mI3ge*j1UMn2vHGP4N16^Ba(oKE;yN)gdvleFf)M!kM&-U z^;lPTbr)~Ez!Sk;S@FLA-r{|N;)NH2iuYIbYF@vq-<$V_u)lBpEtO2BtE#K3tE#K3 zyC?rA)aRM6S6}|zf&Cvm@w(0LRx`HWr;Hu*G-GcsWNdyVW6z#X@Y6pswrC||jXepj zX=HgfZ(**&HkSA46^uRe6m!own6WqeF!!xn7`vs0xo_JIzyC_`=Si$+W;tVZQC4wg zim`uR%7!2R7-Ki(un{+PGFQPr*vJd+1bmE*d<@~C>@Z&eV;5h^s#|Yo>=6%}e$MHP zop(B$am9IzJvM;Ny0Ve6$=?yY^LBzyZzuTC8*FyPhm76x4V&}#hZy_mDmJgB+kaQ=;qjh)O+ICCRoK{vr&6>PBw_`NpD;+r-wcJ8Mv`N1cQT{D`k zTKgMgpKV|#T>^Zb+@GC%L>^G`6klk?4%Z&Xsm)-dC4~+fk ze0F=~sf=}WXZOAZ_%1q{J=u3RV_!VZo*nxgW1|MLXWu@XvHM1|kK*4lc3T?Wvrq1HN0#*oyzU{0CPsc65nr>_h7qtLf{S(EUe{(|4{( z7w%xJ_CnVm7Hwgy&%a#LS~?kfvC1`XGmMx2ELZsZs~J1wY1hh|Q;Z!thhT6s!PW(? zlg@aRv4c{slfDIdgP(K#=~4LJl@GeE{H~I*d&jx{H3aaMKjd0dwwtlbTU@vN2jCAU zyKapRV(itUTrHo@LqzEPYAXp2zK@)xON@E_4NcFnM3gZ-X!?Or3Bx*kKiXu2!1(%;4hmb=yJc{ zdZ{7-dO61R^3R}ePvpB^y#V^Pr^xlzPh%J>IKlP7Mez9_7q~vS8sW9B4}L>f?Aqq; z!Pt96u5EknVQj|NuI*Lx83@?5{qF4mH|7+reVnn=T5=A2?h)p456KyPz;~c8*XPVx zx`(kbkLQGbxsS1@d^t@IgFek(kh8Sgc*cs(%Q<~D;JNpPoGTiiXYALOoa>jo&e#>f zoO?lUT?NnPJXHzvv+nVn7d;yp`z@UF%3<*Rl23D9X#;w`Yja*bd_P3@5nv0_)^AV2jxyaEX7#<=eY~Mg8m)4 zCimETE@SNcn{r!!t7WYJ6S=3q1aw@Lxo7t*XY9}8bI-m5@cw;K?zsIRT<&Eby~kLnf9{Q6?g#qtM()~^VE#;N&b{xSYe0Wna_@f%@Wda? zeK@|6vCsFBuWT-_6*NIeC?D0T$6Vn&X@2-c@MvGD)i%myvOf? z@jbsS@5M=vFgEeJyqAYTzc#ezy;@Ys*y@FOukQdk+_*OH?Kgq1-lOwATzE2L+gIf6 zSOwp2|99T*irtJY&vm=sF9SPtio0O5kFl111aE00_~H(NpPuV3`4;+d={;`WiVnuQ zo#pO*$X75f=M((lFn8}@im@}x-2R4-7(3}MclqSU!0sOA9&r(TzTp}7s3jo3(=T&Z zy*Y)kWIe&#ZzQ<+0)k)vhv1$DfYtE5^#t$8C%E|wg5T^ zezS_;kG%laGIqyP1iyKk;EyZaQ$B?84)k?b7hJ|zBF}yN-*z+By3KvUM3B>@c?6G` zMX>f2f(!Q$TsEHI^7#Zi|3Prw!vxn~L2%RK1Rwc~;IsV+zF9}`z269a@-@LP+X;TV zf#CN(g1`JKL6>U)!TcWXmRvVuBd&5M`s@OqdN0A2P6@hl&T=O={|5bdz`de+fAGUU zx=)&PIb-`zcVBtN8H^oy0Ku2ub>DI!jMrUJ_qu~~z;1d8{^3!AGp``nd?&%Su>?C> z2(E1+xIW!((`oek!;cXBzrPWDZ#lt_?cd+};XP|%Iz2Ls?ze9K8)L6eaqqln3u71F>E3hZS&X?K&fot>m_I|W&97Mge_%I8 z<`0jRfq#7`f5c;t0$rAW)AC>1JQ4bHbpFeqfL+~qNdA^TgZ!#K&i~+J=+D*l z1qD8s|Lay16s`pMEV-$m^k&e*(nSTOUxEIXepS%>)3 z3r2Jv$JpX+1(iSl3+(&z1qZJNc{l%BaLCDk=c}U&CSsiM;~NE4r7(^|ekiC}cMrsi z=NBw#-v)NKZ$W4T=>78%fDy)?TLkcF#$ML@@WDqQhm)!bK5hYikK0!8%`1R+YGEO}@*~EsTU=PQ1ipXHlER@? zk26+LQ8;uv^!u`}3rCc~_x}1q;mBXWUp~{Ta6O@@tDh&&L*?_DXN?t3MQ;xw@LMZ$B&i z^M@es*0lt09YFA*&kN6wHZay>Y2n4EZfC4IKycb9g296c-gQgi<=5mvT(Q0I^7R`S zJ7sX;P2<6D{r8%}wR3J{Z2XIbcdZ@|arp^_n|_9VZK^GN=w;x${-DA)Mjgu7+(!!E zKN0%(`rU=wZwEXxmk?}jE&OyB@PC85@Qd@{@26f=`27IDbI#+1Ki+g1W4U(}6`lGj z!1+Z($5p_**h%pH_lhR$f&TV>zv##b*nW3W)yeb0|4lENa`u^wH5^`4d(3KxPfCm8 zmt6~gPZnKLl>+_wz3A$z0sk>C7u|9VjN`enqT7D>0pjCVi|+KThdBSxqPrKv@BiFb zwEn){Fn*z;4KDcJ#EAqaUqEoiIRqDX5^TDW;L7U>-hB=vS`y? z;D6t~u;}T9iM|GJ!&fG-!4!7u45q{FY^?? za4=(it35rx-U4x4si)89m5lvuyJz4Z;O`B)JcD}g$C&pgPsJzj`Sf+3;a>p%bBB9I ztgmP6@Fxg9zM0^*6Fnp6!uMXA<{9@X=+nbXJ=2c68tm=eo|(&!VC;xZp8AhB0-w(i z+;*#H(eEJV3Fmtj_XfQ4+dZL)d0@x#2;TKE!JU%{{xsYZnp_6!tx|$jO9@u5CfI&B z!4;hZZ(T_6&UCxG2h#8NbP&96CBY}IBKTS^!MD=w-|0oae>j!k=Lv#4Qv`S2Pw?k8 z1b_cUg08$ z^_-mdXZZdu&*gjI`wcOC@%-nWTfZ0rab6G4U9Z9XJM$IK{eMY; zpZJO3cz62y_uNCjZ%Tjf z;R^cw$@KSM`-Ogg>wbdod`a-b7YXig5!|_+;O?CSe_BHDmxCqfVv`Bxee8K@)khGY zdOV*lY5;pS#;_hd?hcEs& zV`q)=PI&g$iedV8C9$+cTxy*b$%T(BMD#5Qkee~6QAd(<16vj*bfwcc@lrhN2#b=yT?-?k8}N&o(BW%04I&IY@1dGWE|zXSP)isGi{zXiYP zD~`J#VeAh>2|n{Z!H)+P-+Tbr=kwMV-#Mxb)?uZ^50^d;cEeTtRKFJR0}m8G^~(?# z=WitF%0I36#VJ6y*`GJ<3j`c?jNqeB6a3&Ug1`MHL09hDlIz@Of!}<$WZj1;u)Es`F8!6@ zjxS3#wZrG%uPS-u#O*NteM(**1K+=XMajFp%AjA{OFsJZ^Nh{8qGbDO(8G<-m+b5W zc*gC%oL7zo|F_JSUwsDTp(goCf-ugWg}zenXRw}~?yLCk%ixC&@EulsHhh1e?+CLAKU=r_?qwb;VT*Y;CSDE)&L*hjrBcoQyIh$*ZZD~BP4I9(EgtXl(r6mcHeI;ZLit_e!hj^)E5Z;eoX0Eua-kz=8Dqu z#+O09ZBywb!&AWLz|xJesgS4pwe%qzud8O2KDGt^UOuz*o$W&)o}5{_b^T+Ey)~iq z$J;IkdwOq#xr)kjA#u@-)vy4Iu^*u5s+*69znClcXU${&ry#J%$C&>F_(wZ2^7IiBMpM(JVB@M!#Vp4}fEY5|| zvo<_B5(}Yd zfL1vr1ky|bNk8ac9R5YEO|h-;6U=k?w@qRQt!M;(M%HA#MSZ3bN!tj{@>HKPFxp@JaW_zlwiCSVoWQ>Gay4tBLUtvDoa>>_?I zz#4J>@J{&Cosh;9H7OhmA-l0~N6No4o(KuGs#?dh26viM6s6La%&LsUELB-QcQO;z z2#|MKR%e-@xjL7FeQO87MWHLC$^swB@%F53Z;M8P0kAUGW^;r9t=bTX>{nj}d1|R* z#!L-Oj7?=7(oBm<2AJF&j)%eG!)G+-QL|!_-bjH2d~Q&F-Pocw1=uo`F&{CtBZVrI zfLI_9Yi^GQ5{fkZq4>%e8F@1w+Sa9fx4{%|PR|jVKeAS4&3Rj(S?v8!>oU&$X=PLU zG$+nstmPO)!Bt3OU~OSf{vUToJXgnAc7==<1`XDIIYZDFC)0ooteLS@PhIQ<8RIw% zVmn066!9q0PNij!6ayTJ2isdM!_Awzq*vtmkWVxbMu)uurVqN4M(7vDao8U@K5^Fb z8JT+C6iFmg{uPmAq%o=*Qhy`{h9i?S&hJ8Lh~fZptj>CTNTwe1=pb|dy4EnN`=K^1 z7+7Oy24Rsi4v|M?xV8cBwbi|WZYH9izWM;vYsid57g_6Q>bgQIm0oEi%+d^LXNDelaRU0hi zniGMxrNT&csUv|AYepleW{#BCJf1bOYSZJM=$KUu=k!sqosio&#+*gdkl)!nMy@c) zfF1*VqI#aHmLc%D9eyoDDh2VN0^;>($gxO8F3>po;$WrRprm#KloK5DX+88}{svm` zXFBfA782QvyO>!kVOkG*lR%iFXwQCBM=_9;69nJ53UpSTi>WY(RTafWl5NpIr}^st zoc|58Fwx|chIM#4!A57|2^;a)yuIp}HIqhrpptkxQWScFWqZX`c44m^J}GYA$gH`3 zbO<;$51-Id*~<{=-G(7!#9gm(A}ah_XNg4C*ZD-$bBZ|%Q3laU&OEDVYUVBz$l09N zOp7LRdFoJ5XhLky%ITt6X|-HRn;ly-^`b8Ade^NNCp+zQ#xlEOgM=MQg7y#F||zzaa{KyGC))QdqMsXH+%* zLs6cLO7DDeMj^SfC8~~pMG1ob2Ek@Z3W$c=+N&vfTb`f*J(U;TqQ$={SEkEYXI$A? z#&TY{DLBwfR@Teda%q=80m*C}9NE3lB7mp3Ig!F?@kDD=I4s`08N_CS3q>5X7c1Dc z<(Rt7w6if=C1Jz~p=>N07tzFZ3d&3$f!oY0h9UbSfm6%4 zZ{J5!0=qc~BW-)bAg0|@N85A^7HGP>H)9}XL@xyE0a&Wx2K6inb6W}I@i(pG$0{l* zA0T}bhs>E3I#3c6Irnf#S_md>7^P+VoKd6i8Yp5lldGSlVYI7qF8w4{l!a(0Qw$yL zN;W_V>}69bOxUy)6KnmBSaQ~(BiSC6l&oUhx-2Dx)6SZW{(327j9Hy1jXpnMp2;9n zpoqgdd!e<5V)2X8@8ax)UIv*n5-GuWWXd~q-Qs(kJZ4r|hK%F*_birmnYN;}X;>=e z%63co@JzjgN+{X1*xH3|Fda1GYE_g@w9X?OAhWA1|1#MDuPO@wx*!KV zqE)ztlIg;yI_rgxv2XjS`)0lH@vu5@Ubv=K3Q^s4fn-Wt;WdiQgRheus9feJ@O)T2 z-zvoeLHM^7km2H5DfsC=FC2n`c);opQU$(nYeGD@Vz-k)*Xx6ccr>ai=9H^TgoI}Z zWlx07%3`e<=%+BC7%Hpjwp7T1ay9{T2~l24g}ceb9@drE zW+juU@Uwa;43w*RXjO!HnG}qTdOCROrE?;FkhxGDMX6R)!#K=ST;gJQhuI^!vJSOD zyCS1=D_V19ul8kFeX2bLX98dy7N#;*CF#mbS51vrN)YVqJ?DI2G8o#S7QClN&y;hm zyUWD0tko)W54;KG&Gov!!dt@Q6J~v~n0d{!elH^?V)p3KlQuSv9pLo?}3aJ<6*m5;f`=(%7S|7wB0a>Gf;o=WJwsT zA?AzZEIy^}@K_UUYAaZ4qLDTjlsKGYOLdB|_5!TfjxaR=W<0s31Re#o;if=))P$!> zX-5GARmxal@Pf-I3SuJAQ#tzu);nGOtDO2PtBtoqk?!c_?eP>?%Va7Mi8YJaEN0W7 z+ZZQ-2zUqcr$wUa(^p1$`Jf5TXx#JxYt9=LPHT@zM-0W3`ocB@bqHfJEZ4@s0ohlk zo@XW=G>bGv=;W7?c3+SxMi=RWGLl5_H;6_!9|cE;JLQC?5d$6EGt(hHZ#lN&S$K#G zV?$E~nrK%ofn78ek+hO2@-CYbhOjo|Z_KQ%#cU27wnY9l12(6f_;*G1c#X_gzCpbd>`7Km6|Bokf2ElqVGxl}SWWg<=CoD|?0;Ix(r8auHl zg68|kqzEW^Ak;#4uAbTMsfh%snV>;P@?Ch23%vvSZpkdbz@Z|MdT7pTz-Q>$vCs(P zPWrx|4TCrb)m+qOI2Uv884yE)Vx`Y4gu>BCYb0&$1k7b&w}e=n87={ej5A-*#^%%) zv>YSF%b32!*hW5YPUC@}CZIwbtq`s66yMXc4l2G|;V^FkqVzThX5h>@Is^d;ACSO9 z>txUsFOXjkYrcSFlLW1zpe(xMJK3lMv=KX1T(F=bO16qCO}~0@p^8ggs#YPB?j2%c z3bn?M_N+KTrbx0(OH%RT0-@M9EIyT0N(IR*Ik7CF_Og9UCs#nU;q>vw1Za=q=DJ~d zMIsi6s&g$OgpB%MYU zA{^a7p)t6@Q{gx>lv6tHS%F46H!p5y%R!5qE|4UHr+KAAV7&i@3j&Eq0K!02Pf^os zbf#u@pd~E1vg~w5Y2P0XDf4(8hH@GVIaVc4fmt(yccNt4+<8-{)XbpBNZS(ym#v6Y z5rNXMhmMJvY#JwBICGjcRcE8E5UsUs7btOz|C%3Y=`jmWj2a?+QE&U`dOKSZ_B=M1 z_t`spO3l2v*4@tNhD4yoW-8=@O}e(9me&dnyPFr45ox* z&#&ieB~drJEXEWe@5UTXWksb%>6=O>7#ECk>ILm5b|03Lyt92|3*lcGNiBsPw18@< zDB@7BK*zEfu&A2_7dL{5k#4o|9y?>^tf|%t)CWcdQ}L7?PKV>bY7NIyR3lz+)zsBV zwr7xTTx-~1XpfEo57kRskQ`T!n!$d^;4}tOkycgrlptS5+TV;VHj<6x=)5%}M_Mz7 z3rsF+J`Q-V1E!^LRZ^qD=tGQ&z)DNzoLF09*Y;89FD68Z2}}k1Avi}9kLg`p_u(g) z{7S*UxE@7)Y*Gb0{ia9bjTjujc1$vy^rPR#%p0uDqy?3cUN=y`T2Megn-BlN&wQK; zXV%X0&!0cD7JY`XVHQEX5y=QsjiKcUMJt#PS3;m3Gh=YEO$16CGw8T}%mg|P-KGmh zFesAp?!5c`6f!o|e~f8oK>ZDrln#|Cl$_2C9rHj$J2QG~P-mJVSU9WE1q-ITbIjIi zQf;1Y0_@~Yjsoq*Ee~3im=8%GPV=b1ia>2V=x-6_sbq810I^Vd5e=l!RvOD$f-tS5 z+?RnFTt5flQ>}=VQ5#^!j6W=|(~bH*!&F6(K|I-n2@p&JF3_IO$V$P=H(Cm`B5!CwZZTEp=?FW`<&h zlHp)H778Rf%WZioHl`60k}()aXm}p))!-+C0UC0%j4> zxoKsfP*mbH*v^c?PJGC6Wj4-ozLLhsepHIexJ@Xv6$e)DeH_Rs?x&+@73@t0qbppc zgXpMNsDvgVAE($`rf4g!!z_`QCdGC3>F%$in<<2AFrl1z#@ms?U@bRV6JQyqP0Th< z<0EhY(sme(In9L|r(nh;p|Oe0ttw-~X)tzO5IS;+^>!2=PBPJ)8a_`<9hQosCUVc< zmBu*pN}Nj1It>*I*Ryb6xgO5Tp!zJm%RbvwGwPK-%P4Royg#M$?f41|Zq%B(S8EAQ zdr-Cu2A@cuwN>yZDgSGQX}kv0_`Se1L4#>R226ugHMW@M zl`Fq+otR#{aD2WR%y6b}Uey=h$eqkG<(n3fJ_eH4Y}$1i#)8T!PPO%%xqwV&bBx8P zD*M0~fJ$XgTn78mQG1B408<9pjsO}M%C<|)a(M#t@;cVuvs0<41L^2`p0A_2dZIk2^L zZIlJ7w<2>srkrwdUB+QUGoYZ*4I4+~OCz!zng4}b;Re*KNFcW%psUi9hYTlx(R5;P ziuE&?jltZac7k=AA8U!>jn3jaRT(wTUqy&~9MaK?Ir=h=KI1rfq}@r(3@bH0Zg5)d zQfY!wHEeE#8XMvkp4z`^a&KHAN*5Tn150^TOiew!J@ zA7U%Erxl2(wz&`0Hj6W?7If#CM6B}aDsx`goF~5-PwI5E1#kM8OR($3$I)bG*8=;v z3_Vw`XSG{V-C>hop5fqnwc9T`H|{M8rvmV8QD?iWMv{Z1%PXE;?uvn-A+7WgpmERHkvbdnmA z`ppT7Qezf^-n$%`mb7_}%z^=@2@?xc88asqZEdDdEHHF+Zoz`opv>-%>qC!u!fiwg z?El}SFf4c+4^~heu87xYnoK#Dh-q=K1wFlUb(+wyKz)R*uHbT0dlC^d30qa$58d$u zg`t?y!-J^WE(^@`IO(M}w|uXZ040yxzytA$}+d(OQ?{T3z9X z9vudSPRc%zz+6@7Tn{w?CBLsHW9^z$(WbQeRXZwukNQXiDKwH&it0#DPZrfgl;9_K z#1CI(B-&d=6put&(R30d>G_>(Ik?1iNb=a~vyu9Par?oTORt4M4I(_ir`n;_)5{|M zFrqNkN3PN86LR|Ydwo7mkFeZi%rR{ttynRs!&xiElW?%pXEmZ3U8J4`n|@K>45L)F zeWoHTUdhRM_RP~%Z|c!lhe5dZ)^5=%Tan!jS#pek_4xOy%2|)B9P9~JW#aBAp3sy_ zgGkqLyARS%yyvA2P@YL==OU=vBKG#y>*zTgui+49pXE6}_^Xm!_NmYM`41AY>m0q3 zan_5&xk`xjn5v=b75UP$)|~+q%ufRc7RG?R=3{r32D7ND3hY3KNrS=)>egjqwI zk%U?Eu3lc7(b;F)8D<3c*2$aUwZ2+m3hcSo!4#5{XR117ZY+CEsju^^YG739Tg3#= zXqY`qGJ2J;yKRb76=+~MWW3WuPfJx*E1-pWcy)MbO<9~AFx$W#tn0PeH3|Z@CR(m} zESNMExoW{9pm&tW&x5Eb;#98*=@UB~^wV`;zeW_WF+x`wYlqB!IxI%ig}DPU|AOu8=tWg|pRbb`c=9Q5K(cD6Rg zrF+W+BrxM)f3{hr#s=ubFDMfg&^Oj~+v#FY9WD7@8v%hzP+-ih;QEv}!uwAa0^Phgdoot&vxa30GD1NL#y>K_)g`gtfa$ zY?gL>sNmFt)p$r#IIZ~V1&Lq^>+1srXh9jwHB)St)w=1xCYw16mGD%|SRaDIERA$h zh!5gWmAL7wlj&7Y0zoZsG=;5sQwhzAI|q`(C8c?mTOQN}P{u0?Sj$i{3#!v4+t%Ug zIBqI+*kEL+JdENfW2ma7Vr?)hZP^7K2V9oDHT}tG9V#uYgEQe-TZf@0*1@bJ(nRJ1 zV`(F*b^1w04f9FHJ8Uv_NlR8a_ac}UxZ5xCY`PwSa#+PT{WSw-FS^MT5iEoPW1JKq z2(B2C9bY)QCZ4{g$8hr*j|lA691BF^0kX9)OB&b|PS{;jJEdWYiFX{wq#Q)-4q`*k)7ifaMSZa;fOsVz8fw3w#B+Ufua9vT0)-q9sDR*@cDL@K+ zvVw`k*Y(}3TT-So692<`6K{FD^$jjDW>Z=HwBk``cvVK6kKU; z8QS5o1JUHF1D9UMx%Sr0sLK!o41mZ6ngEa1i#G|CwSChs1!Tm|ELtDr*?}pm65KeJ3(#MGshAd2&q$mz-S06J);nPLpKEsfY0vY1OGf#P|l2sgYcR33!9m2FobK|C_ zcwQUx=RO&!WojGk9B-R(n#(w?XSzPuprzn!zV}P_!oifU7LGyY6t;>@J~9K+dfY25gk(H*AWiSf* z8(dU9%)&ItI_1DR=)){A1J-F>W6F6@y7$i0&A9YZheX-%qYC}_;OaPXAR&DrNjl4t z(WLZ{@+(xQZEaSl{L3nnQ*0wwW0oP&XN448=2<|VOUl?w!e-q+z2{RT=*(p9FG<0H z!7S5M`0EAXk5st121*OO-eACT*rG7 zk+yI!0$01@-Djq0$Z|lhNw5L|vaxs!Ieh^kN9;+j0L)Xa)!-Q9DrS9}Qj~bLT5}Aj zPX*xRdnw7QTHa(x$KuY36ArWiTyGUkjO8*Ao8*|7(L=zSTfCdHGq%n+AK{RyZZCol zC%i$%Df3O13_Y%MNSl<&BALgz8LV&<^Xt-d8JKdabuv3Dr^4A7sAt38n9SNMxtNX6 zfqG`_4wKVaAW4MFppTwx2KiSx?7S?0+3YL#;25MYQcE3l{T^l<- z=4G(*brJ#}G7NUaD11s^;*++t`s*H)lIrgAbq@jcB|k#cVk53ct<(>DWz^=De2j8~ z1aPWs2q;-7T&MBP46Zvp=f~2A38ig^74n@E0=~`8J(za*z=zw*0 zN5O0z!C2o!s-voig!7$o^yWmiDPktUm ziF4Apm3RMe4-q3iKjdEUT4s98Pq{#7ESuYQY zxhqnhKQhuaGrTl``PLNY!Qw$inGsCLt8D=uq{7icOQ5Vwe6#S?H&~P?likQ&#*-q( zCN|HA7#rd(5+--WE4_zH9QhsZ7=Rej?A3WtBf2@N!$9(+SBxwEgy++6`ruV$SmlS8 zqvJatm^`3KvK64-L_j!+&ytRUni+VcN}4RKfz;9@KSX3=G%zcx9$YJ1Yke)FtS-)v zd|I9;HHy$V0n0O`T|vO|RB2ZbsN^cEJ+@jYR$BW8y*u|$_!e1HBL zvN_vLT4y!oO>iM6jcgfANStiyM`!XI0*U6ZbRD2+TU&2WnY8w$y|L8^U*(3i*@09v z&?p4}_D5aV+=Lmy4CPxMy1Xs#Tr-CP0P8)PRX1Dl7w~i%XTBva66+&7Ib+xiQ2$UuwR^%FKI^)GJ;svtPq0#ZC(elj* z2Eke%kfESREaDzAJ?)~~Kw+{*%6J?c!z;As%IynEZ77CV_;>w)_BK*87xoE`gq~g#Qf+V~Ri|tW6tIy|l6c*i zsGNa_W0iM2{hBrg?vm}|CZb1OBHj!Y+pSO%rOJ01q+2H4EsQnGX!r064cHChSc>L_ zo8aN(SWr4xXlUFYil)hMlHEfT#;5H{sskZ^D3SNFU=0qbSxEGR%oeM%GEIcd2vi}F4X6B>h!{wWt5+`-F~xc4 z*2XfqE?WA_=&Hb0N*6w*N6>f^P&&Rzk1A%z)HkOqz37V&NH~#{#uf4} zttLIuoBixp`EqBRFT!oE^0OykbCsVx0h_CQnE;j+7z`bZEg3=7SBymHfPMuV#zw&3 z#z_D9;pgG1d*k=77&gK`X3QA>h~X9Kg9R$Lp@i&pfn+ccm2CD2&Ym@~WUJhiv7x|N zxsJ0o@w+HOF0pLHzKBjz@o@^PV17QWdsmz!adC=W@ht2j@tnle!U3i@OXU?Okz_be zP6T5&moJp669*|oP_8SbTMBllLyBUkA_XHFCG*>3Mz{lR@Crs+A^WTBDhV-X;X#FX zdI1MXh}Y@iG0aF~GF4Fs&&-%qH5^E`VoW2%;q;neA(Fk$w+pdmj1h#bY&vdX+y6mA zL1mrx)*lJG;DK#;dXTP@&qDWgBV!N>;!6+8ZKJrhM^(ZFaWf#J zz}*kV8K(foF=)QEZHB{Vv|J{rWV#3!?(Zf*S(U)O7hcPoiUeEya3%sSd`#bGYQkj) z?9iLhHm5AS7#KJmCcUnV)nBx`fIX6XoRGHCDb*5S!?_U0i23yoi$H=S(H4&e@On78 zx_r1vKjh*?xvs!WIz=)yDV7loTSMAuD2TeUvj=kW4*O?6NhatMrK^I{3U3!Epd2OO zxnn%Xti*oBwSiOsUbKPr8r={oz~;mO2%0b3=ko&RkoE?PezlqhZ0$^pXjT)0lg@H7 zOt4_op~mc^e7Rsm7sHfMCuL-Nr4|N$rnX(#Sc*|v;ZWkpp;WB*jRc)TXVNa2NUQ{s zXHFCRoPZ8V^M{)1Gh z0+!(ho}h%tNvz^b90`@g4dO_ciQKt35?v*Z#6A_rN-J@!G!ut2k#|_p=rE(54yhOHKHxSwVo$+OhRe(W7rZ=?f&xy{RmwC8N23voWc{66{c<%;hsrky za`Q^L9c5^fnoCqwE3kU$W>l)QGm%dj;G^^b%0@38Zv$+cH2nr5`Ee$6l(&|~MK8DNkQ*^{jN)J;&p?aSOWKO-t35Y*o z86p)OLPCHmei?2TrlX0V`XL`vN_}-+zZ&r3o#zwT!5k}WLMFo#4^AUSk(#2jzsfd6 zVRpepE$Cwn=gC`JuX#D#6rJ`og)Br-R$EJ;yNUoLPtxyqnv!v{rZ+`0-cqZuI);=L zckd|ZQtD)S)kdV8Lm<&B7adFFtKwxEdCu%c?E8 zz_kx5oOE*oZ<;qJedn+#(Tr;*)0T%=DiT#c1k=LCqyokIiZbm76%fI2s2$Ruc1@N? zDK$~L*pM!;GG(+3lEP>^n2hs{gClG{Ot=+DD{E3)y(KJ>YgD9@|0pCOVyrYl z0b#BNjUYhYucF#;FrEmc=(&1fb0-QTM6i$2izc*0!5-yG2)8OzH>WtuKZ6Uca z7KI>w5I1hF<2oXpEaQZF&4@HFjl%yiDWXl&3F%~!-7>+GZIv+{QI_;PqqP>2wwdD+ zw%uoI79lnL9TGTma3{p+%_RLA5|K7I17miJgpfEEYp5d?d&Grn!!&ubn;?YbyKqBP zF^oNQeHy}!;WMFV$T6yLTUkTSYj5n7w9VLfxvKGUr;SynZ%D#v`Ivs{r_>Jj1O5Bp@d*8MhI^DBXfYuTg=DdsWA-66?N}EGnPzY zxi2r#Fp;0r#jJoozc8+EWxHSkwxbsD5%tcFhuXnQ%b~phS;l}z(8gxCBWRgq)_oRj2|A05H`NnSd{pu&w`rmv#gc}hzCrp?X_HLB`<=Q3J@1t#-3IiNw{Sy? zi1fUzfHj#&926$So8&_ixDLRCu@P)A1d7IkO;)Qo-(dOdh2X3~{V{X{gnehJl*7wy zyYT3PjM9n2G%~c09Ga0(7Piia#QGv{GJ5hIV^RqO*A?kTW8KT}M*P*V-{j*M!MFIFyhKpDGQhTR}1bp$ot2s(H--uQg9)Rqhx(UL*2Nbn-;;_W+Yhk*} zPj{!&d8*h0@~Eo%G!X`$>QEX~*79L5lyiVe zI2YB)kNuc&?ooCLcz4|kVbm1l#$l#5^XkgHjbdRG*|Ef=7dC;j6cTH7yk*@f|*jMB;UF?MiNy4r^> z62U{S^xzcwOx!BOj`KU{ct?FxJKEs6D0Ongh&qeOVMNjkPAKCeX1e3}oRdOWB1-2Q z#q!QLvy2oS2PX1BSU=-zQOU?V<4e~h3O&3`244YEXQAyNF3}V_ibdtPT*oLn>jxnk zfbm(puU_bnwf@LnC4I*YC}IO^;q5&QEmD}3eznZVj9;>kLOm9svJ|=V(81l6}ljth(zPfl5w_gSH$g|m;o_{EG&T-ky-AEGK@Tntw?AVT#k}KLchcR zc!T^o?X8V;WJ}C}O}ij&tbZ+q*ruCTl*&IWz|qz`!L3KiWvhN(J0&L4U{T?Nvyv{p z!E0}nC=fqY2M)*#*6ydZSG8*O*CpV#0w`onhlWYIKqZ6^YDgEVpiYY!Tc`^?^+f4F zHOj>NmKv;o#uIyKQ;Jhd#oQn$po^nL&4#^V^$J2!ht8Z9R)v_KhkoQSK;Z#du*cgr)g{zh)dA-p@g569={a$rcAn zV&7OPM)|lYvnf;J#8L^GkCSY=A!WvgRoW{7<)h2);D`wCau3+SXvbPuvs0g(#Vkyr zfK#V?69Nsj9! zO9eV;gUJsztVMq`m-q7!Q*wCpJ`M*(F=&!!yL>oRQHSnWTupY`nvjo?M{5I4)sdll zXidCLIc8lSgfp0tXq0ZNFNQ{SK)+ejB!4K}5|UCvGi{r0&}JUAq5B>{Xk2yOL+6D< zaUO|ioArQZwa^R>TmvyIOIJ6XA2V%8%g6*Y$AM59<<+zgRkotF#EK!n!GXjmS80(C vdFrrfzo@DTZ~M|7zrfl@OpqyK;;9Eb!IXbWR63U+DVak5T<}^sF4zA9&f + + + + QsciCommand + + + Move down one line + Desplazar una línea hacia abajo + + + + Extend selection down one line + Extender la selección una línea hacia abajo + + + + Scroll view down one line + Desplazar la vista una línea hacia abajo + + + + Extend rectangular selection down one line + Extender la selección rectangular una línea hacia abajo + + + + Move up one line + Desplazar una línea hacia arriba + + + + Extend selection up one line + Extender la selección una línea hacia arriba + + + + Scroll view up one line + Desplazar la vista una línea hacia arriba + + + + Extend rectangular selection up one line + Extender la selección rectangular una línea hacia arriba + + + + Move up one paragraph + Desplazar un párrafo hacia arriba + + + + Extend selection up one paragraph + Extender la selección un párrafo hacia arriba + + + + Move down one paragraph + Desplazar un párrafo hacia abajo + + + + Scroll to start of document + Desplazar al principio del documento + + + + Scroll to end of document + Desplazar al final del documento + + + + Scroll vertically to centre current line + Desplazar verticalmente al centro de la línea actual + + + + Extend selection down one paragraph + Extender la selección un párrafo hacia abajo + + + + Move left one character + Mover un carácter hacia la izquierda + + + + Extend selection left one character + Extender la selección un carácter hacia la izquierda + + + + Move left one word + Mover una palabra hacia la izquierda + + + + Extend selection left one word + Extender la selección una palabra a la izquierda + + + + Extend rectangular selection left one character + Extender la selección rectangular un carácter hacia la izquierda + + + + Move right one character + Mover un carácter hacia la derecha + + + + Extend selection right one character + Extender la selección un carácter hacia la derecha + + + + Move right one word + Mover una palabra hacia la derecha + + + + Extend selection right one word + Extender la selección una palabra a la derecha + + + + Extend rectangular selection right one character + Extender la selección rectangular un carácter hacia la derecha + + + + Move to end of previous word + Mover al final de palabra anterior + + + + Extend selection to end of previous word + Extender selección al final de la palabra anterior + + + + Move to end of next word + Mover al final de la palabra siguiente + + + + Extend selection to end of next word + Extender la selección hasta el final de la palabra siguiente + + + + Move left one word part + Mover parte de una palabra hacia la izquierda + + + + Extend selection left one word part + Extender la selección parte de una palabra a la izquierda + + + + Move right one word part + Mover parte de una palabra hacia la derecha + + + + Extend selection right one word part + Extender la selección parte de una palabra a la derecha + + + + Move up one page + Mover hacia arriba una página + + + + Extend selection up one page + Extender la selección hacia arriba una página + + + + Extend rectangular selection up one page + Extender la selección rectangular hacia arriba una página + + + + Move down one page + Mover hacia abajo una página + + + + Extend selection down one page + Extender la selección hacia abajo una página + + + + Extend rectangular selection down one page + Extender la selección rectangular una página hacia abajo + + + + Delete current character + Borrar el carácter actual + + + + Cut selection + Cortar selección + + + + Delete word to right + Borrar palabra hacia la derecha + + + + Move to start of document line + Mover al principio de la línea del documento + + + + Extend selection to start of document line + Extender selección al principio de la línea del documento + + + + Extend rectangular selection to start of document line + Extender selección rectangular al principio de la línea del documento + + + + Move to start of display line + Mover al principio de la línea visualizada + + + + Extend selection to start of display line + Extender selección al principio de la línea visualizada + + + + Move to start of display or document line + Mover al principio de la línea visualizada o del documento + + + + Extend selection to start of display or document line + Extender selección al principio de la línea visualizada o del documento + + + + Move to first visible character in document line + Mover al primer carácter visible en la línea del documento + + + + Extend selection to first visible character in document line + Extender selección al primer carácter visible en la línea del documento + + + + Extend rectangular selection to first visible character in document line + Extender selección rectangular al primer carácter visible en la línea del documento + + + + Move to first visible character of display in document line + Extender selección al primer carácter visualizado en la línea del documento + + + + Extend selection to first visible character in display or document line + Extender selección al primer carácter de línea visualizada o del documento + + + + Move to end of document line + Mover al final de la línea del documento + + + + Extend selection to end of document line + Extender selección al final de la línea del documento + + + + Extend rectangular selection to end of document line + Extender selección rectangular al final de la línea del documento + + + + Move to end of display line + Mover al final de la línea visualizada + + + + Extend selection to end of display line + Extender selección al final de la línea visualizada + + + + Move to end of display or document line + Mover al final de la línea visualizada o del documento + + + + Extend selection to end of display or document line + Extender selección al final de la línea visualizada o del documento + + + + Move to start of document + Mover al principio del documento + + + + Extend selection to start of document + Extender selección al principio del documento + + + + Move to end of document + Mover al final del documento + + + + Extend selection to end of document + Extender selección al final del documento + + + + Stuttered move up one page + Mover progresivamente una página hacia arriba + + + + Stuttered extend selection up one page + Extender progresivamente selección hacia arriba una página + + + + Stuttered move down one page + Mover progresivamente una página hacia abajo + + + + Stuttered extend selection down one page + Extender progresivamente selección hacia abajo una página + + + + Delete previous character if not at start of line + Borrar carácter anterior si no está al principio de una línea + + + + Delete right to end of next word + Borrar a la derecha hasta el final de la siguiente palabra + + + + Delete line to right + Borrar línea hacia la derecha + + + + Transpose current and previous lines + Transponer líneas actual y anterior + + + + Duplicate the current line + Duplicar línea actual + + + + Select all + Select document + Seleccionar todo + + + + Move selected lines up one line + Mover las líneas seleccionadas una línea hacia arriba + + + + Move selected lines down one line + Mover las líneas seleccionadas una línea hacia abajo + + + + Toggle insert/overtype + Conmutar insertar/sobreescribir + + + + Paste + Pegar + + + + Copy selection + Copiar selección + + + + Insert newline + Insertar carácter de nueva línea + + + + De-indent one level + Deshacer un nivel de indentado + + + + Cancel + Cancelar + + + + Delete previous character + Borrar carácter anterior + + + + Delete word to left + Borrar palabra hacia la izquierda + + + + Delete line to left + Borrar línea hacia la izquierda + + + + Undo last command + Deshacer último comando + + + + Redo last command + Rehacer último comando + + + + Indent one level + Indentar un nivel + + + + Zoom in + Aumentar zoom + + + + Zoom out + Disminuir zoom + + + + Formfeed + Carga de la página + + + + Cut current line + Cortar línea actual + + + + Delete current line + Borrar línea actual + + + + Copy current line + Copiar línea actual + + + + Convert selection to lower case + Convertir selección a minúsculas + + + + Convert selection to upper case + Convertir selección a mayúsculas + + + + Duplicate selection + Duplicar selección + + + + QsciLexerAVS + + + Default + Por defecto + + + + Block comment + Comentario de bloque + + + + Nested block comment + Comentario de bloque anidado + + + + Line comment + Comentario de línea + + + + Number + Número + + + + Operator + Operador + + + + Identifier + Identificador + + + + Double-quoted string + Cadena con comillas dobles + + + + Triple double-quoted string + Cadena con triple comilla doble + + + + Keyword + Palabra clave + + + + Filter + Filtro + + + + Plugin + Plugin + + + + Function + Función + + + + Clip property + Propiedad de recorte + + + + User defined + Definido por el usuario + + + + QsciLexerBash + + + Default + Por defecto + + + + Error + Error + + + + Comment + Comentario + + + + Number + Número + + + + Keyword + Palabra clave + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comillas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Scalar + Escalar + + + + Parameter expansion + Expansión de parámetros + + + + Backticks + Comilla inversa + + + + Here document delimiter + Delimitador de documento integrado (here document) + + + + Single-quoted here document + Documento integrado (here document) con comilla simple + + + + QsciLexerBatch + + + Default + Por defecto + + + + Comment + Comentario + + + + Keyword + Palabra clave + + + + Label + Etiqueta + + + + Hide command character + Ocultar caracteres de comando + + + + External command + Comando externo + + + + Variable + Variable + + + + Operator + Operador + + + + QsciLexerCMake + + + Default + Por defecto + + + + Comment + Comentario + + + + String + Cadena de caracteres + + + + Left quoted string + Cadena con comillas a la izquierda + + + + Right quoted string + Cadena con comillas a la derecha + + + + Function + Función + + + + Variable + Variable + + + + Label + Etiqueta + + + + User defined + Definido por el usuario + + + + WHILE block + Bloque WHILE + + + + FOREACH block + Bloque FOREACH + + + + IF block + Bloque IF + + + + MACRO block + Bloque MACRO + + + + Variable within a string + Variable en una cadena + + + + Number + Número + + + + QsciLexerCPP + + + Default + Por defecto + + + + Inactive default + Por defecto inactivo + + + + C comment + Comentario C + + + + Inactive C comment + Comentario C inactivo + + + + C++ comment + Comentario C++ + + + + Inactive C++ comment + Comentario C++ inactivo + + + + JavaDoc style C comment + Comentario C de estilo JavaDoc + + + + Inactive JavaDoc style C comment + Comentario C estilo JavaDoc inactivo + + + + Number + Número + + + + Inactive number + Número inactivo + + + + Keyword + Palabra clave + + + + Inactive keyword + Palabra clave inactiva + + + + Double-quoted string + Cadena con comillas dobles + + + + Inactive double-quoted string + Cadena con doble comilla inactiva + + + + Single-quoted string + Cadena con comillas simples + + + + Inactive single-quoted string + Cadena con comilla simple inactiva + + + + IDL UUID + IDL UUID + + + + Inactive IDL UUID + IDL UUID inactivo + + + + Pre-processor block + Bloque de preprocesador + + + + Inactive pre-processor block + Bloque de preprocesador inactivo + + + + Operator + Operador + + + + Inactive operator + Operador inactivo + + + + Identifier + Identificador + + + + Inactive identifier + Identificador inactivo + + + + Unclosed string + Cadena sin cerrar + + + + Inactive unclosed string + Cadena sin cerrar inactiva + + + + C# verbatim string + Cadena C# textual + + + + Inactive C# verbatim string + Cadena C# textual inactiva + + + + JavaScript regular expression + Expresión regular JavaScript + + + + Inactive JavaScript regular expression + Expresión regular JavaScript inactiva + + + + JavaDoc style C++ comment + Comentario C++ de estilo JavaDoc + + + + Inactive JavaDoc style C++ comment + Comentario C++ estilo JavaDoc inactivo + + + + Secondary keywords and identifiers + Identificadores y palabras clave secundarios + + + + Inactive secondary keywords and identifiers + Identificadores y palabras clave secundarios inactivos + + + + JavaDoc keyword + Palabra clave de Javadoc + + + + Inactive JavaDoc keyword + Palabra clave de JavaDoc inactiva + + + + JavaDoc keyword error + Error en palabra clave de Javadoc + + + + Inactive JavaDoc keyword error + Error en palabra clave de Javadoc inactivo + + + + Global classes and typedefs + Clases globales y typedefs + + + + Inactive global classes and typedefs + Clases globales y typedefs inactivos + + + + C++ raw string + Cadena en bruto C++ + + + + Inactive C++ raw string + Cadena inactiva C++ + + + + Vala triple-quoted verbatim string + Cadena Vala con triple comilla textual + + + + Inactive Vala triple-quoted verbatim string + Cadena Vala con triple comilla textual inactiva + + + + Pike hash-quoted string + Cadena Pike con hash entrecomillado + + + + Inactive Pike hash-quoted string + Cadena Pike con hash entrecomillado inactiva + + + + Pre-processor C comment + Comentario C de preprocesador + + + + Inactive pre-processor C comment + Comentario C de preprocesador inactivo + + + + JavaDoc style pre-processor comment + Comentario de preprocesador estilo JavaDoc + + + + Inactive JavaDoc style pre-processor comment + Comentario de preprocesador estilo JavaDoc inactivo + + + + QsciLexerCSS + + + Default + Por defecto + + + + Tag + Etiqueta + + + + Class selector + Selector de clase + + + + Pseudo-class + Pseudoclase + + + + Unknown pseudo-class + Pseudoclase desconocida + + + + Operator + Operador + + + + CSS1 property + Propiedad CSS1 + + + + Unknown property + Propiedad desconocida + + + + Value + Valor + + + + ID selector + Selector de ID + + + + Important + Importante + + + + @-rule + Regla-@ + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comillas simples + + + + CSS2 property + Propiedad CSS2 + + + + Attribute + Atributo + + + + CSS3 property + Propiedad CSS3 + + + + Pseudo-element + Pseudoelemento + + + + Extended CSS property + Propiedad CSS extendida + + + + Extended pseudo-class + Pseudoclase extendida + + + + Extended pseudo-element + Pseudoelemento extendido + + + + Media rule + Regla de '@media' + + + + Variable + Variable + + + + QsciLexerCSharp + + + Verbatim string + Cadena textual + + + + QsciLexerCoffeeScript + + + Default + Por defecto + + + + C-style comment + Comentario de estilo C + + + + C++-style comment + Comentario de estilo C++ + + + + JavaDoc C-style comment + Comentario de estilo JavaDoc C + + + + Number + Número + + + + Keyword + Palabra clave + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comilla simple + + + + IDL UUID + IDL UUID + + + + Pre-processor block + Bloque de preprocesador + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadena sin cerrar + + + + C# verbatim string + Cadena C# textual + + + + Regular expression + Expresión regular + + + + JavaDoc C++-style comment + Comentario de estilo JavaDoc C++ + + + + Secondary keywords and identifiers + Identificadores y palabras clave secundarios + + + + JavaDoc keyword + Palabra clave de JavaDoc + + + + JavaDoc keyword error + Error en palabra clave de JavaDoc + + + + Global classes + Clases globales + + + + Block comment + Comentario de bloque + + + + Block regular expression + Expresión regular de bloque + + + + Block regular expression comment + Comentario de expresión regular de bloque + + + + QsciLexerD + + + Default + Por defecto + + + + Block comment + Comentario de bloque + + + + Line comment + Comentario de línea + + + + DDoc style block comment + Comentario de bloque estilo DDoc + + + + Nesting comment + Comentario anidado + + + + Number + Número + + + + Keyword + Palabra clave + + + + Secondary keyword + Palabra clave secundaria + + + + Documentation keyword + Palabra clave de documentación + + + + Type definition + Definición de tipo + + + + String + Cadena de caracteres + + + + Unclosed string + Cadena sin cerrar + + + + Character + Carácter + + + + Operator + Operador + + + + Identifier + Identificador + + + + DDoc style line comment + Comentario de línea estilo DDoc + + + + DDoc keyword + Palabra clave DDoc + + + + DDoc keyword error + Error en palabra clave DDOC + + + + Backquoted string + Cadena con comillas hacia atrás + + + + Raw string + Cadena en bruto + + + + User defined 1 + Definido por el usuario 1 + + + + User defined 2 + Definido por el usuario 2 + + + + User defined 3 + Definido por el usuario 3 + + + + QsciLexerDiff + + + Default + Por defecto + + + + Comment + Comentario + + + + Command + Comando + + + + Header + Encabezado + + + + Position + Posición + + + + Removed line + Línea eliminada + + + + Added line + Línea añadida + + + + Changed line + Línea modificada + + + + QsciLexerFortran77 + + + Default + Por defecto + + + + Comment + Comentario + + + + Number + Número + + + + Single-quoted string + Cadena con comillas simples + + + + Double-quoted string + Cadena con comillas dobles + + + + Unclosed string + Cadena sin cerrar + + + + Operator + Operador + + + + Identifier + Identificador + + + + Keyword + Palabra clave + + + + Intrinsic function + Función intrínseca + + + + Extended function + Función extendida + + + + Pre-processor block + Bloque de preprocesador + + + + Dotted operator + Operador punteado + + + + Label + Etiqueta + + + + Continuation + Continuación + + + + QsciLexerHTML + + + HTML default + HTML por defecto + + + + Tag + Etiqueta + + + + Unknown tag + Etiqueta desconocida + + + + Attribute + Atributo + + + + Unknown attribute + Atributo desconocido + + + + HTML number + Número HTML + + + + HTML double-quoted string + Cadena HTML con comillas dobles + + + + HTML single-quoted string + Cadena HTML con comillas simples + + + + Other text in a tag + Otro texto en una etiqueta + + + + HTML comment + Comentario HTML + + + + Entity + Entidad + + + + End of a tag + Final de una etiqueta + + + + Start of an XML fragment + Inicio de un fragmento XML + + + + End of an XML fragment + Fin de un fragmento XML + + + + Script tag + Etiqueta de script + + + + Start of an ASP fragment with @ + Inicio de un fragmento ASP con @ + + + + Start of an ASP fragment + Inicio de un fragmento ASP + + + + CDATA + CDATA + + + + Start of a PHP fragment + Inicio de un fragmento PHP + + + + Unquoted HTML value + Valor HTML sin comillas + + + + ASP X-Code comment + Comentario ASP X-Code + + + + SGML default + SGML por defecto + + + + SGML command + Comando SGML + + + + First parameter of an SGML command + Primer parametro de un comando SGML + + + + SGML double-quoted string + Cadena SGML con comillas dobles + + + + SGML single-quoted string + Cadena SGML con comillas simples + + + + SGML error + Error SGML + + + + SGML special entity + Entidad SGML especial + + + + SGML comment + Comentario SGML + + + + First parameter comment of an SGML command + Comentario de primer parametro de un comando SGML + + + + SGML block default + Bloque SGML por defecto + + + + Start of a JavaScript fragment + Inicio de un fragmento JavaScript + + + + JavaScript default + JavaScript por defecto + + + + JavaScript comment + Comentario JavaScript + + + + JavaScript line comment + Comentario de línea de JavaScript + + + + JavaDoc style JavaScript comment + Comentario JavaScript de estilo JavaDoc + + + + JavaScript number + Número JavaScript + + + + JavaScript word + Palabra JavaScript + + + + JavaScript keyword + Palabra clave JavaScript + + + + JavaScript double-quoted string + Cadena JavaScript con comillas dobles + + + + JavaScript single-quoted string + Cadena JavaScript con comillas simples + + + + JavaScript symbol + Símbolo JavaScript + + + + JavaScript unclosed string + Cadena JavaScript sin cerrar + + + + JavaScript regular expression + Expresión regular JavaScript + + + + Start of an ASP JavaScript fragment + Inicio de un fragmento de ASP JavaScript + + + + ASP JavaScript default + ASP JavaScript por defecto + + + + ASP JavaScript comment + Comentario de ASP JavaScript + + + + ASP JavaScript line comment + Comentario de línea de ASP JavaScript + + + + JavaDoc style ASP JavaScript comment + Comentario ASP JavaScript de estilo JavaDoc + + + + ASP JavaScript number + Número ASP JavaScript + + + + ASP JavaScript word + Palabra ASP JavaScript + + + + ASP JavaScript keyword + Palabra clave ASP JavaScript + + + + ASP JavaScript double-quoted string + Cadena ASP JavaScript con comillas dobles + + + + ASP JavaScript single-quoted string + Cadena ASP JavaScript con comillas simples + + + + ASP JavaScript symbol + Símbolo ASP JavaScript + + + + ASP JavaScript unclosed string + Cadena ASP JavaScript sin cerrar + + + + ASP JavaScript regular expression + Expresión regular ASP JavaScript + + + + Start of a VBScript fragment + Inicio de un fragmento VBScript + + + + VBScript default + VBScript por defecto + + + + VBScript comment + Comentario VBScript + + + + VBScript number + Número VBScript + + + + VBScript keyword + Palabra clave VBScript + + + + VBScript string + Cadena de caracteres VBScript + + + + VBScript identifier + Identificador VBScript + + + + VBScript unclosed string + Cadena VBScript sin cerrar + + + + Start of an ASP VBScript fragment + Inicio de un fragmento de ASP VBScript + + + + ASP VBScript default + ASP VBScript por defecto + + + + ASP VBScript comment + Comentario de ASP VBScript + + + + ASP VBScript number + Número ASP VBScript + + + + ASP VBScript keyword + Palabra clave ASP VBScript + + + + ASP VBScript string + Cadena de caracteres ASP VBScript + + + + ASP VBScript identifier + Identificador ASP VBScript + + + + ASP VBScript unclosed string + Cadena ASP VBScript sin cerrar + + + + Start of a Python fragment + Inicio de un fragmento Python + + + + Python default + Python por defecto + + + + Python comment + Comentario Python + + + + Python number + Número Python + + + + Python double-quoted string + Cadena Python con comillas dobles + + + + Python single-quoted string + Cadena Python con comillas simples + + + + Python keyword + Palabra clave de Python + + + + Python triple double-quoted string + Cadena Python con triple comilla doble + + + + Python triple single-quoted string + Cadena Python con triple comilla simple + + + + Python class name + Nombre de clase Python + + + + Python function or method name + Nombre de método o función Python + + + + Python operator + Operador Python + + + + Python identifier + Identificador Python + + + + Start of an ASP Python fragment + Inicio de un fragmento ASP Python + + + + ASP Python default + ASP Python por defecto + + + + ASP Python comment + Comentario ASP Python + + + + ASP Python number + Número ASP Python + + + + ASP Python double-quoted string + Cadena ASP Python con comillas dobles + + + + ASP Python single-quoted string + Cadena ASP Python con comillas simples + + + + ASP Python keyword + Palabra clave de ASP Python + + + + ASP Python triple double-quoted string + Cadena ASP Python con triple comilla doble + + + + ASP Python triple single-quoted string + Cadena ASP Python con triple comilla simple + + + + ASP Python class name + Nombre de clase ASP Python + + + + ASP Python function or method name + Nombre de método o función ASP Python + + + + ASP Python operator + Operador ASP Python + + + + ASP Python identifier + Identificador ASP Python + + + + PHP default + PHP por defecto + + + + PHP double-quoted string + Cadena PHP con comillas dobles + + + + PHP single-quoted string + Cadena PHP con comillas simples + + + + PHP keyword + Palabra clave PHP + + + + PHP number + Número PHP + + + + PHP variable + Variable PHP + + + + PHP comment + Comentario PHP + + + + PHP line comment + Comentario de línea PHP + + + + PHP double-quoted variable + Variable PHP con comillas dobles + + + + PHP operator + Operador PHP + + + + QsciLexerIDL + + + UUID + UUID + + + + QsciLexerJavaScript + + + Regular expression + Expresión regular + + + + QsciLexerLua + + + Default + Por defecto + + + + Comment + Comentario + + + + Line comment + Comentario de línea + + + + Number + Número + + + + Keyword + Palabra clave + + + + String + Cadena de caracteres + + + + Character + Carácter + + + + Literal string + Cadena literal + + + + Preprocessor + Preprocesador + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadena sin cerrar + + + + Basic functions + Funciones basicas + + + + String, table and maths functions + Funcines de cadena, tabla y matemáticas + + + + Coroutines, i/o and system facilities + Co-rutinas, e/s y funciones del sistema + + + + User defined 1 + Definido por el usuario 1 + + + + User defined 2 + Definido por el usuario 2 + + + + User defined 3 + Definido por el usuario 3 + + + + User defined 4 + Definido por el usuario 4 + + + + Label + Etiqueta + + + + QsciLexerMakefile + + + Default + Por defecto + + + + Comment + Comentario + + + + Preprocessor + Preprocesador + + + + Variable + Variable + + + + Operator + Operador + + + + Target + Objetivo + + + + Error + Error + + + + QsciLexerMatlab + + + Default + Por defecto + + + + Comment + Comentario + + + + Command + Comando + + + + Number + Número + + + + Keyword + Palabra clave + + + + Single-quoted string + Cadena con comillas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Double-quoted string + Cadena con comillas dobles + + + + QsciLexerPO + + + Default + Por defecto + + + + Comment + Comentario + + + + Message identifier + Identificador de mensaje + + + + Message identifier text + Texto identificador de mensaje + + + + Message string + Cadena de mensaje + + + + Message string text + Texto de cadena de mensaje + + + + Message context + Contexto de mensaje + + + + Message context text + Texto de contexto de mensaje + + + + Fuzzy flag + Señalador difuso + + + + Programmer comment + Comentario de programador + + + + Reference + Referencia + + + + Flags + Señaladores + + + + Message identifier text end-of-line + Fin de línea de texto identificador de mensaje + + + + Message string text end-of-line + Fin de línea de texto de cadena de mensaje + + + + Message context text end-of-line + Fin de línea de texto de contexto de mensaje + + + + QsciLexerPOV + + + Default + Por defecto + + + + Comment + Comentario + + + + Comment line + Línea de comentario + + + + Number + Número + + + + Operator + Operador + + + + Identifier + Identificador + + + + String + Cadena de caracteres + + + + Unclosed string + Cadena sin cerrar + + + + Directive + Directiva + + + + Bad directive + Mala directiva + + + + Objects, CSG and appearance + Objetos, CSG y apariencia + + + + Types, modifiers and items + Tipos, modificadores y elementos + + + + Predefined identifiers + Identificadores predefinidos + + + + Predefined functions + Funciones predefinidas + + + + User defined 1 + Definido por el usuario 1 + + + + User defined 2 + Definido por el usuario 2 + + + + User defined 3 + Definido por el usuario 3 + + + + QsciLexerPascal + + + Default + Por defecto + + + + Line comment + Comentario de línea + + + + Number + Número + + + + Keyword + Palabra clave + + + + Single-quoted string + Cadena con comillas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + '{ ... }' style comment + Comentario de estilo '{ ... }' + + + + '(* ... *)' style comment + Comentario de estilo '(* ... *)' + + + + '{$ ... }' style pre-processor block + Bloque de preprocesador de estilo '{$ ... }' + + + + '(*$ ... *)' style pre-processor block + Bloque de preprocesador de estilo '(*$ ... *)' + + + + Hexadecimal number + Número hexadecimal + + + + Unclosed string + Cadena sin cerrar + + + + Character + Carácter + + + + Inline asm + asm inline + + + + QsciLexerPerl + + + Default + Por defecto + + + + Error + Error + + + + Comment + Comentario + + + + POD + POD + + + + Number + Número + + + + Keyword + Palabra clave + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comillas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Scalar + Escalar + + + + Array + Array + + + + Hash + Hash + + + + Symbol table + Tabla de símbolos + + + + Regular expression + Expresión regular + + + + Substitution + Sustitución + + + + Backticks + Comilla inversa + + + + Data section + Sección de datos + + + + Here document delimiter + Delimitador de documento integrado (here document) + + + + Single-quoted here document + Documento integrado (here document) con comilla simple + + + + Double-quoted here document + Documento integrado (here document) con comilla doble + + + + Backtick here document + Documento integrado (here document) con comilla inversa + + + + Quoted string (q) + Cadena con comillas (q) + + + + Quoted string (qq) + Cadena con comillas (qq) + + + + Quoted string (qx) + Cadena con comillas (qx) + + + + Quoted string (qr) + Cadena con comillas (qr) + + + + Quoted string (qw) + Cadena con comillas (qw) + + + + POD verbatim + POD textual + + + + Subroutine prototype + Prototipo de subrutina + + + + Format identifier + Identificador de formato + + + + Format body + Cuerpo de formato + + + + Double-quoted string (interpolated variable) + Cadena con doble comilla (variable interpolada) + + + + Translation + Traducción + + + + Regular expression (interpolated variable) + Expresión regular (variable interpolada) + + + + Substitution (interpolated variable) + Substitución (variable interpolada) + + + + Backticks (interpolated variable) + Comilla hacia atrás (variable interpolada) + + + + Double-quoted here document (interpolated variable) + Here document con comilla doble (variable interpolada) + + + + Backtick here document (interpolated variable) + Here document con comilla hacia atrás (variable interpolada) + + + + Quoted string (qq, interpolated variable) + Cadena entrecomillada (qq, variable interpolada) + + + + Quoted string (qx, interpolated variable) + Cadena entrecomillada (qx, variable interpolada) + + + + Quoted string (qr, interpolated variable) + Cadena entrecomillada (qr, variable interpolada) + + + + QsciLexerPostScript + + + Default + Por defecto + + + + Comment + Comentario + + + + DSC comment + Comentario DSC + + + + DSC comment value + Valor de comentario DSC + + + + Number + Número + + + + Name + Nombre + + + + Keyword + Palabra clave + + + + Literal + Literal + + + + Immediately evaluated literal + Literal de evaluación inmediata + + + + Array parenthesis + Paréntesis de array + + + + Dictionary parenthesis + Paréntesis de diccionario + + + + Procedure parenthesis + Paréntesis de procedimiento + + + + Text + Texto + + + + Hexadecimal string + Cadena hexadecimal + + + + Base85 string + Cadena Base85 + + + + Bad string character + Carácter de cadena mala + + + + QsciLexerProperties + + + Default + Por defecto + + + + Comment + Comentario + + + + Section + Sección + + + + Assignment + Asignación + + + + Default value + Valor por defecto + + + + Key + Clave + + + + QsciLexerPython + + + Default + Por defecto + + + + Comment + Comentario + + + + Number + Número + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comillas simples + + + + Keyword + Palabra clave + + + + Triple single-quoted string + Cadena con triple comilla simple + + + + Triple double-quoted string + Cadena con triple comilla doble + + + + Class name + Nombre de clase + + + + Function or method name + Nombre de método o función + + + + Operator + Operador + + + + Identifier + Identificador + + + + Comment block + Bloque de comentario + + + + Unclosed string + Cadena sin cerrar + + + + Highlighted identifier + Identificador resaltado + + + + Decorator + Decorador + + + + QsciLexerRuby + + + Default + Por defecto + + + + Comment + Comentario + + + + Number + Número + + + + Double-quoted string + Cadena con comillas dobles + + + + Single-quoted string + Cadena con comillas simples + + + + Keyword + Palabra clave + + + + Class name + Nombre de clase + + + + Function or method name + Nombre de método o función + + + + Operator + Operador + + + + Identifier + Identificador + + + + Error + Error + + + + POD + POD + + + + Regular expression + Expresión regular + + + + Global + Global + + + + Symbol + Símbolo + + + + Module name + Nombre de módulo + + + + Instance variable + Variable de instancia + + + + Class variable + Variable de clase + + + + Backticks + Comilla inversa + + + + Data section + Sección de datos + + + + Here document delimiter + Delimitador de documento integrado (here document) + + + + Here document + Documento integrado (here document) + + + + %q string + Cadena %q + + + + %Q string + Cadena %Q + + + + %x string + Cadena %x + + + + %r string + Cadena %r + + + + %w string + Cadena %w + + + + Demoted keyword + Palabra clave degradada + + + + stdin + stdin + + + + stdout + stdout + + + + stderr + stderr + + + + QsciLexerSQL + + + Default + Por defecto + + + + Comment + Comentario + + + + Number + Número + + + + Keyword + Palabra clave + + + + Single-quoted string + Cadena con comillas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Comment line + Línea de comentario + + + + JavaDoc style comment + Comentario de estilo JavaDoc + + + + Double-quoted string + Cadena con comillas dobles + + + + SQL*Plus keyword + Palabra clave SQL*Plus + + + + SQL*Plus prompt + Prompt SQL*Plus + + + + SQL*Plus comment + Comentario SQL*Plus + + + + # comment line + # línea de comentario + + + + JavaDoc keyword + Palabra clave de Javadoc + + + + JavaDoc keyword error + Error en palabra clave de Javadoc + + + + User defined 1 + Definido por el usuario 1 + + + + User defined 2 + Definido por el usuario 2 + + + + User defined 3 + Definido por el usuario 3 + + + + User defined 4 + Definido por el usuario 4 + + + + Quoted identifier + Identificador entrecomillado + + + + QsciLexerSpice + + + Default + Por defecto + + + + Identifier + Identificador + + + + Command + Comando + + + + Function + Función + + + + Parameter + Parámetro + + + + Number + Número + + + + Delimiter + Delimitador + + + + Value + Valor + + + + Comment + Comentario + + + + QsciLexerTCL + + + Default + Por defecto + + + + Comment + Comentario + + + + Comment line + Línea de comentario + + + + Number + Número + + + + Quoted keyword + Palabra clave entrecomillada + + + + Quoted string + Cadena entrecomillada + + + + Operator + Operador + + + + Identifier + Identificador + + + + Substitution + Sustitución + + + + Brace substitution + Sustitución de corchetes + + + + Modifier + Modificador + + + + Expand keyword + Expandir palabra clave + + + + TCL keyword + Palabra clave TCL + + + + Tk keyword + Palabra clave Tk + + + + iTCL keyword + Palabra clave iTCL + + + + Tk command + Comando Tk + + + + User defined 1 + Definido por el usuario 1 + + + + User defined 2 + Definido por el usuario 2 + + + + User defined 3 + Definido por el usuario 3 + + + + User defined 4 + Definido por el usuario 4 + + + + Comment box + Caja de comentario + + + + Comment block + Bloque de comentario + + + + QsciLexerTeX + + + Default + Por defecto + + + + Special + Especial + + + + Group + Grupo + + + + Symbol + Símbolo + + + + Command + Comando + + + + Text + Texto + + + + QsciLexerVHDL + + + Default + Por defecto + + + + Comment + Comentario + + + + Comment line + Línea de comentario + + + + Number + Número + + + + String + Cadena de caracteres + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadena sin cerrar + + + + Keyword + Palabra clave + + + + Standard operator + Operador estándar + + + + Attribute + Atributo + + + + Standard function + Función estándar + + + + Standard package + Paquete estándar + + + + Standard type + Tipo estándar + + + + User defined + Definido por el usuario + + + + QsciLexerVerilog + + + Default + Por defecto + + + + Comment + Comentario + + + + Line comment + Comentario de línea + + + + Bang comment + Comentario'Bang + + + + Number + + + + + Primary keywords and identifiers + Identificadores y palabras clave primarios + + + + String + Cadena + + + + Secondary keywords and identifiers + Palabras clave e identificadores secundarios + + + + System task + Tarea de sistema + + + + Preprocessor block + Bloque de preprocesador + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadena sin cerrar + + + + User defined tasks and identifiers + Tareas definidas por el usuario e identificadores + + + + QsciLexerYAML + + + Default + Por defecto + + + + Comment + Comentario + + + + Identifier + Identificador + + + + Keyword + Palabra clave + + + + Number + Número + + + + Reference + Referencia + + + + Document delimiter + Delimitador de documento + + + + Text block marker + Marcador de bloque de texto + + + + Syntax error marker + Marcador de error de sintaxis + + + + Operator + Operador + + + + QsciScintilla + + + &Undo + &Deshacer + + + + &Redo + &Rehacer + + + + Cu&t + Cor&tar + + + + &Copy + &Copiar + + + + &Paste + &Pegar + + + + Delete + Borrar + + + + Select All + Seleccionar todo + + + diff --git a/Qt4Qt5/qscintilla_fr.qm b/Qt4Qt5/qscintilla_fr.qm new file mode 100644 index 0000000000000000000000000000000000000000..a5db0a22bcb72a5811212bb9b1218dc59d3d8eac GIT binary patch literal 48639 zcmd5l3wV^(u_q*($7Zt$2@qa}6_7_jzz`8AN+987c?1$3MJsNyn`C9P8}>m6h$xDR z??+KlR8Rr&L8+qFw$?thw!N)=fO=bPueTKh>$O$eYTJ9;JM+)}=l}Qr&;QzNv|m0Q zHrX?0&YYP!b7tn8GwbVt!9V`vo?SmZbNGvw?t9@ka~Ui3F}AXnv7P4=+7SF^>tTNoShD#7mO2wt~>;N1bX^setPcHjhCvFTfkjXp^5te+8_{Z)do zm)WWt_A@qQE4%pWXBewlO7Nk_*d^`+V;!%u=r@i+ztdU#?ROb#f0}K%4d|JBggyN9 zFBx02jqU&CCydQ+WY7K@zPIvu_R3Hg$Nin`CvWax?DC21o#;o5B?<^`n#4X1{*JN8 zn>m$Z`Z3n;)tum8A7E_Q`kXD>Ut?@&WzLq5;P->NbGCgS`uBe`=f1O!Ggi4d=aB(` z_sjEgzT1g-zeVuA7J?5a2tGO?=jSKk`@{c4(Dz${qoV{TikzAN^l~hpTelz6IuK((0VIA3(S-=k0$YEXn!Z zr%y9Bt|I3|-Acw-ZO)0WodEdLenpSH%-DiO{g!ro%Glsf`*oDnFjjDHzlYYn!Puos z`W>4A-!B5#1>bWI%=P9c;d|S2%a%d=!S3AiJa;fQ{h8cZGk|Zdy}7HO{t9Eu-^#t} z7tk)JEq6!7XvUU?b9WpD{$5g@d($;X85`J@``zd>jNN-I_h-ZR!+Z?O{ctwm@n4er z>B}&0dEd$_c=v9`nx4q3-E$UWXFrg4(SGQ!;{CjfK7jr!5_xSm90R%jV_tX+$iXGC zyn7abyg|$F9=ihieI@VZBhLdJkLJBrRLfZ4K;9dFcm(7+k@ttq-(&3j)h^e64FI|N zm#g3fFJsdt6YOdvcw;NU-Osy9J_7t}m%F?hH!S7mF0u?v~Y z*ZdC1=X}@bS)f0w4!I_-1Ns+6Ty?*i!`K(*5llWu@XC7$KKLoYNB#nEE`0AHf*S`B zyz*}Z_pTkZkL#j4 z{|xgMc3nIj_;JP-f@cmSI3|bSgjod7oknnG6~Wmj2*!64-25!Ttv?`mbs53ye@gI{ zFB81ub%MK7cpfOG&krRDJ~Ef!p{WEPzlq@Cm9E&}j~Sadl;E^G2|m%!wQ=qcuy==D zySHy=?97t{Z+y}9=*=(>n>M>1Ker#~LJoGTZCvJBgnQ<}b%l!loE^&Q$%W<%KXXIDE^nJ#z_*eeyOF#}++>pPn3w}TB zK>pTW4`Xb?V+7BAmSEkw{5yXZV66P5{5|8wG8X=J{@%wYfj-=v|Lm@Vj4h7mzi`_t zjI~~n|HIpWZ)Y4Pc;+I4qklzkLX_YXKf!Zj1ZOTISXV_b{u6@T9}wL9KEW%31h1Y? zaAyv|J3Rz$yjrJ!T4!lSMrY+jNb-!DBn{s?Q-DT13d-n zlD`9c|6W0$8szGRivWfI<^uc?z^4KJjj|11v4z+D9_XB2LvTYL!KEj+RZ?0RHO;Wz&AGGklo3r~Fv^sO&0e19jtBWiNaV z72Q^sVC=zBMUOuC2GIXN(G#D1!dP@y(O11s!Myyv=xdk2=azj%M|0rs!$%SvF`wYr zn+Q&h5S+S<;03!0_8cO3?T-oG-c0bWw+P;My6786z>eSg=b|6284Z5Q*Nfi#AMk;8 zcDPvx=qX;j9v7gd+fUa$L71MpK4;P>MDXerV!k<&An*D1z=Bh zxSLMGyxn#V!CgOe2d3vSHtQjRn?4}8FG29Y26tfA0KoTSf}_S0JZm|@S#J`&pn~9r zI)dF(3HGGEzvU=>zWfS;J9-G-d=J4}2NJw3_4~WL^!dKg1os^#_|R_&9(OgYl2~o_qa+6B#>L>D~~$1J>!ExOaUD{99A#-t$a=v1=E&_x*hZ_z$1BkGwt? z*10F$-?}LQ_T?nO5k&+?g$SN?JHfGy1Si)Joa!bxV=%$)}eRuKuKd5DFWEH_1Kk@YY z&%0rqHJ+kB&4Y0*_LPjj5#;?F1Roymx!`r^ucgtm`mb++o%kP5+p8ZjHu*1}sOx)- z`Em$e_dLOS+@6DHfW26r=lO2w%b<_q}FIPhyv$xX8xVBheklKU661AiwH zJnuPzGhZV(r-fj09>FWe5xmAraF?6lp^phZ@lMI(zfXXFeUf19WP*F1EBW4~CxEZ{ zC2vf+2IS+8k`H@e-WJ{M?RRW7*vD#bNh|QPFzziaJ`Mitz233k{3Y1;SG_YlJK%ej z-t!*`f*<~#ch$~UU|s&myZR`|)0h74{ql`K{}-S32JdPHKlxH`M>pVKeZ(6&5rg$_ zt2bN~0Q(>GcAtdr1y6dnl*0HImU-_(J~owmA1(xZBli)UxS!yZ-xEAixli0kFRQ()&sz z5A^9w@6Q(ly(Qh=W9z}6-S)Ki50}As&ws`H&l<4f)i)4abG&qL-5p?e)|8Ig3V3Rs zFRh&b^ba{)y5d#%eM>><&Kkh`~nt#i}~S~b77<4Wph{rev&NAf-F{un}>Y-uihVN4TcNgpT*1Lt)cp8XQw|B z$iX&iSv`wFn~m6l#aT%D;pW0>Hi_t4&TAww8Gz$@J&B_PDsBA!oPg16Ix== zarg%HALsp#sEHqus%nuhkz9_Az08c9|o>l3iV9giVn+ z)&=85j@jT5=R^PcXjhM~H5rQqBMDzP6cLYnjIe_^J1tFXE3jRfB#zcAq2;_4a+8Qo zvM$F&m(?c|c4^k)H>SA+v6_>70h`C#;KvUV6$JT0IZFV)12CB=hki*4ksYVtUpm?3 z>>1nuQkMwwF|>C0WB%4eFeYSF9cu#oUGRfAvNhUtLIS{CA+|WJoh(u05akz(h(i#dKhj%Gem$m3=m4 zs3c|z)B!@7WC=b|<4nhs>@ruNzBL5K3Y5_(3>By)quI#JWL2g3&D|3lX6n*j(`U@d zbc1R_ogw!w>lJlAaE8d)YKNu351+^fQ5zY(;U8tp#V&Bb+GGB%4xvvH=_Ro`&j8d- zO{$SS)Dvve2KG)i6%WG>k^0%^M50e1WN4yS48@tH`B%Ik*(b6?u?brxF9w7`>=Awz zav)khM(YIE?vl}0f*_)Dgb9`Z29h8m*^IH~q7dk{1Up%8hwE5twZ`^t;$;mJJEGck z)Q~zu>mTkF_hjuyN7>B!Yw0}Gh>PadzZ!xch$<%e6B&`wPcyX*{iy{Gx(@5Ks;6{V^*?iUjftfC8 zr=*QjWU^l>UlQFIwBc|x*y`7=Q=#eAP?VNh_G(vL(w&;h^ii9O$O;=oWaL~F)iNigg#z`dCeQSTL+ z-an%m5s{*0g!z;#v?U=<7R54&6;=zO^#sV0X>YMh>($UIHCm3=u2s@5VguEqHn&P1 zDQX{1+k8Nf_UjBW#pyQ6in{xOOK5A~7llf8{Gw{}sUiv>u@a5(Qd18m`xXZ`1!HqoHA&gN6)Eoub9FTF_<#Lk z8HeAF0}m_-w2??7vl75i>=iSBEs~(e*?3O%fQD$YB^*3^Lo%8O27K{EEEH)+4(Q1k z4lbGOkcD6fA&CS`C_rkFBXlo9|0~oMqEw9@jh8I}S`zGRXdY&#dBcJ)276>vt#36> zQdHC@*&~$o4@pvm<~TmjV$7qUiUB?15qa2BNg7&UViX05n7wAL4_PkcHU?2pWGb zIwGLM1I7xiL%LG9=EY(p7J?=hOA8?`>zIyD36-R>DA@R!QbIH{2@pQq)18)N1C0PW zi?iTo9*E|AHYxQ(pA@;MTo{a@RJ0~>3VeZJIMf+RSjWu)u^Ja)8Q(9BXZ1#N7r zrl9RalifDO(flwwr-0XLOHt7XG0{#)Q^$P4Olsewu;cy$x#u`>xpg4z*AikdO`4N+U*Ptp=o%qbxsyIdWoN zyejLIXeIMx-@b@i`?zsSIdq_PvSwn6TUkHKFoqI~_`_=dPK0t6pu{=}49t_irC!&S z3JF@_u!cwEPYzlb3eY+S)j{cLb5W;u6jIdA4J#5_C$;>$7W-Q$!Xj#6TOUP@%h)R5 z4SHFA@>;kA7q0ThLVoaBP+Ub#Gn140CI0n6X&K8zPL$Sm`J}Y4v~|iLl}6|f;lAes zE1!__Ex(ETb|Qq18LrSWl≷H>>Bp7uAbhvHHeFiRo3wIM@U>f#WHzpD@83ll|#a zTr`=AY?!)Uc-k@YRuv`PZG<59c%>;UEsGGE7B6pvBhaT_{ z)jr&?1>tB5S|-?k#)EMmnhe}71%hpoSEpx5Mvj0UO;x(r52RlR1H>(uw7&8AExpjc z(cchl^{p4}24n`+sJ$$S4LDqim8JF-hCK|_^xzB1zL}nCw9sUAb&}0{jRWI*V0w@O z@t7**9^;7~@XReVq0XdF&;$ql4$<^$r8!u;w+RFWy;pS&9XgxnW1x#FM>ph=qE~}f zx=U61a0d1Z@qkcQ0xF28dI-Q@xwzXy&$9`B&f%Sx)HgMq z;{zFjctfH`BRnY@%rMoYVXCpfG|q&k8lY|qn+pG*&9go<1M}QxG<$^ z4Yh$37_~zOP0!$L2y$;$_|y>cz?3xbQ5P?2uo!YVd>^AdQIHEN^i(R%iWYTtMPpE> zsflvQ?8?OArN|r#Q;#l4Qi>na%9?UZIPspwcrY1=o-Mf)Vp+@v(|cn*Qls%mVP{;$ zU`(9;+-AQf;3+e1v{3NT_K;1+lM@P_vXznb5v+_g*UM@^Dr6|=kP+$u9JM8@J<`4j zt(7_`>ssXxC#4OOUL$Ne{`!XKva5|T)fHii7(LNW&fwBj!B~qw5$aS$mrMEnyuJx4 z`@0ob4$<9q^)g( zXo90}eL<6s$Juq#x&D=}5c=RIeSB_?rwL8j&}+wQhzUJ??TVUoT@HqqN_+V^Dn8jo z_3DFCZf++VQc;$)+#4)8@;)wo7w&1$Y{9jNdSfoi)yS3Ix3&xWaU5;Sj7+W;i5>f- zZIgv0r52^7ozph3ZQQgCdlgaCBI|4I(DpY)%AsLSS{(`V;ob{=M=l@wC6ZeNVz2C_ zyepw@0McP?kSz}Q&OryZx5$<4RXXyTY#^V?RXrW~R1xx_kV00@eBqH=tOCGIrQ)}` z=L7;Ua``Nml6YwdwY5oBqYUhgIQJlBbRmX_eG3{oiNp(<+qVFM#$H$_Bd}#pu=jA@ zIoI+R2K@ob?h9I#fp;E-?E#Ob@^*!d(Rc_?K^u&@kpiEw8=PuCa1M( zqcj{bDsd7JJ;^ZrBxIN2B&f1df?nnuPPnE>4F+$*8s7Ub&48r?`Q~y^tuAS^+08&r zHxXX{CLCk0l0-mKx|pA->0F#J5)jh&a%g0Lv~n0vE2$CHuy8e<2rAwK9zhFu8R;oQ zfgEx<&`wair?Vw0-3%k(%cWVbwo)Q@X|ovaV3H*AWevO>>P|wX*|xQc|l1@+9knQnw)BJ2wUDnKoaHMru|9 zGpzkpY%;a}pt=ZVoEb#$#z~s&#I#K?lsoyGS37xy>1)u{j3VIc~`~@aZtM zJWe)o&bl>q*qj{NFz6P<#mbW!o;Hp4{HTeBO0WjPUg)FHvYGB~OY6s)v+JX&nql2> z4DN^6En*Sa7dLd@0DgWmo5QEtRo^hDd5*yvSf$R)1Ha^Y9qE9UDtPCa2la~4HlN>@ zprpN^a~~Xnz%a1v2I83~ti@UnzgYwFznGIWNX8cNty!|z*9P~S=#Qsxe&ERtJR66h zLFLp^{yZq0q8c0lEiK^7VKp5d?4TNN-C+VwC)N}gpKp@?suZ6$u?1)|j4=T6%EaY|){V+G{=R)UhZ&gC3+^T@Eam zgDR#RrZO|zgv;DqJFx~zuTDMYA=0QE_{xJcW>?FmVhN$CdCl&~jFx>GnS+&nm7$R{ ziJx$lvM$XXon9h~X4rPfZK*@r$Q)bKBvF9*S1K2_O^@+{Am9~Op>o^!s|{jSW=f^T zZmwERoPWW1V9uSY*$CCh9VnZAza}6@$X;{b=>kJ>BEi8VrhI#&S&ve+dCI}H5irzl z6U|WfS8>eLntXPZZz_^XJ6Aa{%q-MTp0B{WmlDaOB#0L)_;!Qxj zWW*#uZ{@BIRmp)pXLWdL;~@OrtYNi!K6lTER=LjapS^93r_?~vY`o3Wo9xZMCP^< zum83?!*Z8St>a)Ej{~zfS9@R&hM8&KL-l=cR2}*g==>nv##S&p=JwY(sGzsM>B!5F zTpOl#fW}Qr$KpmTrdD;RLGVp2h91OX5ogP$_!yZ)NqijG!of!3!;OP9G7B*nm*TLz z_rn_|DsueJ!VshGffl4Zg&oF=bo!q7cOC(oR@`5CG+ z4qP%grjis3Os#~^z)I-Rm8Q^Hn2YSol#$VpWy*owaFPX9%{44e<0KCv^AP;V6!)Bm z-}|0sBL-_|cEIOqh|no3sVPxTkQ>L7JT@X&#*rg!v`oQf z909EY|6Gc(S&Wl#nUBy(d`0QisZkyx@yLNm9t1&6eq9X=Q_Ci|gpi+*7I@XO-mI9C6 z`&7rhb)1y@@^yz29lkn)yq48~((_Si1G1Ho!fO;$(G4!+@_AN)twym-JC_b)OgnSR zk@S~Ooch)0)deWEnY%P}D(hM-BQ&;z)6_>-fifk55{F?@SVvGL!D+5o8A;t@D5X0# z%12%WRF5;<%xPqsBQN7JY+f`lMo=_hwyjg}n)?rUA2u!yw5Dk;Uj$|u(Otpmw%pD5 zbTJeoqzcjIdzvcEp2i4YDJRl&XEW15*vq;r)3kqc=3T*LSjA5V^YPk?o))r|@T0yl zAaCW$MGa_llw;Y88mJOHYX?Lt_{kE*w~%VhM?!`@y$BB@t+MNa@fO9aDxK?(hgyB| zrd@Nr$l|15!f5|QqcUE(t&_tt`qm32OMq8y&`~kGVKvSs!gxY#GW=G)Xh~akh$D_e z@CMU)ryy^yjQFhjXbf(Fh2v!LiN4U}sC36tyaz56?)0_!TSH+uMHDpPgZ&dv`jKRG zLPn3q&e<4!EAvw^`tKVXU=kyq?BWL4{S9o^Qd_VvAs@#;%( z^A#hYr_u7vj=qWQ(>nU5c-0189)vf)7+oFYfvbb~%|YqfFY^EytL6c*Q;_`Oj8)wW zr>Ck-sOosSO}?-Y6`@s?jUeU0J4)oshRsw6ug8WOUrr3Tj(7p_M5yn98~!BK>GUT$ z;#LO4Np+Z&bvC~kNM>|aPn_x*?-af1nbY2*H$8RQd-Szj0MZY&){2GPiOKKJS24Wc zu`LvKddZ^!0;`LD4Vu}u5C-itG7|>4uuKmxs8UMCrWjWdl#_1uQnunQ^4XsH)sva{L?8(J=o z!dAAWU)VYu6JQizG`xsdNQo0slpgPv?(=V4CdsjVG1N81+9N!>iT7qow^+gA8-Rad zB?KLbfzSolsFJzLOesdQo~^DCsU>mY~aE`k5=eAQMwqU>Ou)^X!ccdCt31}Wpp#4vORUP zuC!IeYdKL3kri~q2ztddi}?QgY1|;vs5py;Hp8{MFoT`Zfb>{K>LO0qB^r$3vvYCf zVLJ6eO)pi^3zk##HeK9IskiCk%INKfER+=lo)v<-{v9p?!sZ!SEg>dn9)M~DS=ho0 z39_`L!dA8ooUrxh>{+O|+Sghx9KILqnY>>I_k!Cf*PK|)FWoPz#LydqF_PdqSadN^ zVfHe`2KcM>!!m>9hh=;w&r$Gxd;44sN94qb6O13LcV(}O4wX}^1zr3I{DA+XS`j@B z{)8Vcd6iBe;~Fi%Xx{}AG|v2?khDDspZj4AX%7h5nVD>8Q5rGoheFcHQQ~$2R#t=ZNk7chR)!TJI;l?h48qM!F2sQz1zcuI-`X_$dI&~0y#s}uXG8TSsHIa8{4K^ z&^8~Urpr_}Dd#pWlhPuBuMVcKf@5ZMQLP6W`{4aJ>9SgbNgtVtucFV3)#tK>Lv6>J zvJEPk?Y~_8sG4uwhVceSv9=T?&lss1ZMhb0FYv}x@sXM2r5k4q~qHdj-s2u)f4HS18;z| zN91GHDm?U<0c1uUhouaW*!QOlQH<2oq?na*lr&I{tB+Tn7^3y2`;MH!1@JzHEaHZZ zP1Ve4$n zy5sdsNQsl8Xr;`}sM_0zCab4j{|!hps@N8i_8G=L6f4-Hq<^{>&rsY)A>clE4i6*&q7P8bbD*M(@PewN8)Uh$tlaY}^>(TV)9U?up z-n=Jb=Rr?-{%Ro7CfcB2F|XA#p1dErmq&FDKtCQk)=uBb(%9*n*tT{0rp5`pCbk^3 z7cZg>Loi0!yp;hPs~f|~xU90M|9Zswg9O$HRR;<52&<&pSe!R_W)v)o5xP=NA5_V9 zc4^+jlVuIdaC{cSV5E|1bFdYjqxOwrrSu4jtgW&x>;zKojzvnoX8ne3*n zP%G7qI$4QC?d>lhqShJNZV@6&OCxTCZ?fZswc@u0MQxn$OVN?$dRq6h6JgTh&4NcD zlW2cJ^<-o;oq9Bulc{f#!LlI_ID=@tzJI6I$)@p>X>^L-rt!-Zy-nknDSDg6PeyOg z_^IYBxJC+aWF+aSwjQW!q(fHl9zEYhxE8=ksjhS + + + + QsciCommand + + + Move down one line + Déplacement d'une ligne vers le bas + + + + Extend selection down one line + Extension de la sélection d'une ligne vers le bas + + + + Scroll view down one line + Decendre la vue d'une ligne + + + + Extend rectangular selection down one line + Extension de la sélection rectangulaire d'une ligne vers le bas + + + + Move up one line + Déplacement d'une ligne vers le haut + + + + Extend selection up one line + Extension de la sélection d'une ligne vers le haut + + + + Scroll view up one line + Remonter la vue d'une ligne + + + + Extend rectangular selection up one line + Extension de la sélection rectangulaire d'une ligne vers le haut + + + + Move up one paragraph + Déplacement d'un paragraphe vers le haut + + + + Extend selection up one paragraph + Extension de la sélection d'un paragraphe vers le haut + + + + Move down one paragraph + Déplacement d'un paragraphe vers le bas + + + + Scroll to start of document + + + + + Scroll to end of document + + + + + Scroll vertically to centre current line + + + + + Extend selection down one paragraph + Extension de la sélection d'un paragraphe vers le bas + + + + Move left one character + Déplacement d'un caractère vers la gauche + + + + Extend selection left one character + Extension de la sélection d'un caractère vers la gauche + + + + Move left one word + Déplacement d'un mot vers la gauche + + + + Extend selection left one word + Extension de la sélection d'un mot vers la gauche + + + + Extend rectangular selection left one character + Extension de la sélection rectangulaire d'un caractère vers la gauche + + + + Move right one character + Déplacement d'un caractère vers la droite + + + + Extend selection right one character + Extension de la sélection d'un caractère vers la droite + + + + Move right one word + Déplacement d'un mot vers la droite + + + + Extend selection right one word + Extension de la sélection d'un mot vers la droite + + + + Extend rectangular selection right one character + Extension de la sélection rectangulaire d'un caractère vers la droite + + + + Move to end of previous word + + + + + Extend selection to end of previous word + + + + + Move to end of next word + + + + + Extend selection to end of next word + + + + + Move left one word part + Déplacement d'une part de mot vers la gauche + + + + Extend selection left one word part + Extension de la sélection d'une part de mot vers la gauche + + + + Move right one word part + Déplacement d'une part de mot vers la droite + + + + Extend selection right one word part + Extension de la sélection d'une part de mot vers la droite + + + + Move up one page + Déplacement d'une page vers le haut + + + + Extend selection up one page + Extension de la sélection d'une page vers le haut + + + + Extend rectangular selection up one page + Extension de la sélection rectangulaire d'une page vers le haut + + + + Move down one page + Déplacement d'une page vers le bas + + + + Extend selection down one page + Extension de la sélection d'une page vers le bas + + + + Extend rectangular selection down one page + Extension de la sélection rectangulaire d'une page vers le bas + + + + Delete current character + Effacement du caractère courant + + + + Cut selection + Couper la sélection + + + + Delete word to right + Suppression du mot de droite + + + + Move to start of document line + + + + + Extend selection to start of document line + + + + + Extend rectangular selection to start of document line + + + + + Move to start of display line + + + + + Extend selection to start of display line + + + + + Move to start of display or document line + + + + + Extend selection to start of display or document line + + + + + Move to first visible character in document line + + + + + Extend selection to first visible character in document line + + + + + Extend rectangular selection to first visible character in document line + + + + + Move to first visible character of display in document line + + + + + Extend selection to first visible character in display or document line + + + + + Move to end of document line + + + + + Extend selection to end of document line + + + + + Extend rectangular selection to end of document line + + + + + Move to end of display line + + + + + Extend selection to end of display line + + + + + Move to end of display or document line + + + + + Extend selection to end of display or document line + + + + + Move to start of document + + + + + Extend selection to start of document + + + + + Move to end of document + + + + + Extend selection to end of document + + + + + Stuttered move up one page + + + + + Stuttered extend selection up one page + + + + + Stuttered move down one page + + + + + Stuttered extend selection down one page + + + + + Delete previous character if not at start of line + + + + + Delete right to end of next word + + + + + Delete line to right + Suppression de la partie droite de la ligne + + + + Transpose current and previous lines + + + + + Duplicate the current line + + + + + Select all + Select document + + + + + Move selected lines up one line + + + + + Move selected lines down one line + + + + + Toggle insert/overtype + Basculement Insertion /Ecrasement + + + + Paste + Coller + + + + Copy selection + Copier la sélection + + + + Insert newline + + + + + De-indent one level + + + + + Cancel + Annuler + + + + Delete previous character + Suppression du dernier caractère + + + + Delete word to left + Suppression du mot de gauche + + + + Delete line to left + Effacer la partie gauche de la ligne + + + + Undo last command + + + + + Redo last command + Refaire la dernière commande + + + + Indent one level + Indentation d'un niveau + + + + Zoom in + Zoom avant + + + + Zoom out + Zoom arrière + + + + Formfeed + Chargement de la page + + + + Cut current line + Couper la ligne courante + + + + Delete current line + Suppression de la ligne courante + + + + Copy current line + Copier la ligne courante + + + + Convert selection to lower case + Conversion de la ligne courante en minuscules + + + + Convert selection to upper case + Conversion de la ligne courante en majuscules + + + + Duplicate selection + + + + + QsciLexerAVS + + + Default + Par défaut + + + + Block comment + + + + + Nested block comment + + + + + Line comment + Commentaire de ligne + + + + Number + Nombre + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Triple double-quoted string + Chaine de caractères HTML (guillemets simples) + + + + Keyword + Mot-clé + + + + Filter + + + + + Plugin + + + + + Function + + + + + Clip property + + + + + User defined + + + + + QsciLexerBash + + + Default + Par défaut + + + + Error + Erreur + + + + Comment + Commentaire + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Scalar + Scalaire + + + + Parameter expansion + Extension de paramètre + + + + Backticks + Quotes inverses + + + + Here document delimiter + Délimiteur de texte intégré (cat <<EOF....EOF) + + + + Single-quoted here document + Document intégré guillemets simples + + + + QsciLexerBatch + + + Default + Par défaut + + + + Comment + Commentaire + + + + Keyword + Mot-clé + + + + Label + Titre + + + + Hide command character + Cacher le caratère de commande + + + + External command + Commande externe + + + + Variable + Variable + + + + Operator + Opérateur + + + + QsciLexerCMake + + + Default + Par défaut + + + + Comment + Commentaire + + + + String + Chaîne de caractères + + + + Left quoted string + + + + + Right quoted string + + + + + Function + + + + + Variable + Variable + + + + Label + Titre + + + + User defined + + + + + WHILE block + + + + + FOREACH block + + + + + IF block + + + + + MACRO block + + + + + Variable within a string + + + + + Number + Nombre + + + + QsciLexerCPP + + + Default + Par défaut + + + + Inactive default + + + + + C comment + Commentaire C + + + + Inactive C comment + + + + + C++ comment + Commentaire C++ + + + + Inactive C++ comment + + + + + JavaDoc style C comment + Commentaire C de style JavaDoc + + + + Inactive JavaDoc style C comment + + + + + Number + Nombre + + + + Inactive number + + + + + Keyword + Mot-clé + + + + Inactive keyword + + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Inactive double-quoted string + + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Inactive single-quoted string + + + + + IDL UUID + + + + + Inactive IDL UUID + + + + + Pre-processor block + Instructions de pré-processing + + + + Inactive pre-processor block + + + + + Operator + Opérateur + + + + Inactive operator + + + + + Identifier + Identificateur + + + + Inactive identifier + + + + + Unclosed string + Chaine de caractères non refermée + + + + Inactive unclosed string + + + + + C# verbatim string + + + + + Inactive C# verbatim string + + + + + JavaScript regular expression + Expression régulière JavaScript + + + + Inactive JavaScript regular expression + + + + + JavaDoc style C++ comment + Commentaire C++ de style JavaDoc + + + + Inactive JavaDoc style C++ comment + + + + + Secondary keywords and identifiers + Seconds mots-clés et identificateurs + + + + Inactive secondary keywords and identifiers + + + + + JavaDoc keyword + Mot-clé JavaDoc + + + + Inactive JavaDoc keyword + + + + + JavaDoc keyword error + Erreur de mot-clé JavaDoc + + + + Inactive JavaDoc keyword error + + + + + Global classes and typedefs + Classes globales et définitions de types + + + + Inactive global classes and typedefs + + + + + C++ raw string + + + + + Inactive C++ raw string + + + + + Vala triple-quoted verbatim string + + + + + Inactive Vala triple-quoted verbatim string + + + + + Pike hash-quoted string + + + + + Inactive Pike hash-quoted string + + + + + Pre-processor C comment + + + + + Inactive pre-processor C comment + + + + + JavaDoc style pre-processor comment + + + + + Inactive JavaDoc style pre-processor comment + + + + + QsciLexerCSS + + + Default + Par défaut + + + + Tag + Balise + + + + Class selector + Classe + + + + Pseudo-class + Pseudo-classe + + + + Unknown pseudo-class + Peudo-classe inconnue + + + + Operator + Opérateur + + + + CSS1 property + Propriété CSS1 + + + + Unknown property + Propriété inconnue + + + + Value + Valeur + + + + ID selector + ID + + + + Important + Important + + + + @-rule + règle-@ + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + CSS2 property + Propriété CSS2 + + + + Attribute + Attribut + + + + CSS3 property + Propriété CSS2 {3 ?} + + + + Pseudo-element + + + + + Extended CSS property + + + + + Extended pseudo-class + + + + + Extended pseudo-element + + + + + Media rule + + + + + Variable + Variable + + + + QsciLexerCSharp + + + Verbatim string + Chaine verbatim + + + + QsciLexerCoffeeScript + + + Default + Par défaut + + + + C-style comment + + + + + C++-style comment + + + + + JavaDoc C-style comment + + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + IDL UUID + + + + + Pre-processor block + Instructions de pré-processing + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Unclosed string + Chaine de caractères non refermée + + + + C# verbatim string + + + + + Regular expression + Expression régulière + + + + JavaDoc C++-style comment + + + + + Secondary keywords and identifiers + Seconds mots-clés et identificateurs + + + + JavaDoc keyword + Mot-clé JavaDoc + + + + JavaDoc keyword error + Erreur de mot-clé JavaDoc + + + + Global classes + + + + + Block comment + + + + + Block regular expression + + + + + Block regular expression comment + + + + + QsciLexerD + + + Default + Par défaut + + + + Block comment + + + + + Line comment + Commentaire de ligne + + + + DDoc style block comment + + + + + Nesting comment + + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Secondary keyword + + + + + Documentation keyword + + + + + Type definition + + + + + String + Chaîne de caractères + + + + Unclosed string + Chaine de caractères non refermée + + + + Character + Caractère + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + DDoc style line comment + + + + + DDoc keyword + Mot-clé JavaDoc + + + + DDoc keyword error + Erreur de mot-clé JavaDoc + + + + Backquoted string + + + + + Raw string + + + + + User defined 1 + Définition utilisateur 1 + + + + User defined 2 + Définition utilisateur 2 + + + + User defined 3 + Définition utilisateur 3 + + + + QsciLexerDiff + + + Default + Par défaut + + + + Comment + Commentaire + + + + Command + Commande + + + + Header + En-tête + + + + Position + Position + + + + Removed line + Ligne supprimée + + + + Added line + Ligne ajoutée + + + + Changed line + + + + + QsciLexerFortran77 + + + Default + Par défaut + + + + Comment + Commentaire + + + + Number + Nombre + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Unclosed string + Chaine de caractères non refermée + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Keyword + Mot-clé + + + + Intrinsic function + + + + + Extended function + + + + + Pre-processor block + Instructions de pré-processing + + + + Dotted operator + + + + + Label + Titre + + + + Continuation + + + + + QsciLexerHTML + + + HTML default + HTML par défaut + + + + Tag + Balise + + + + Unknown tag + Balise inconnue + + + + Attribute + Attribut + + + + Unknown attribute + Attribut inconnu + + + + HTML number + Nombre HTML + + + + HTML double-quoted string + Chaine de caractères HTML (guillemets doubles) + + + + HTML single-quoted string + Chaine de caractères HTML (guillemets simples) + + + + Other text in a tag + Autre texte dans les balises + + + + HTML comment + Commentaire HTML + + + + Entity + Entité + + + + End of a tag + Balise fermante + + + + Start of an XML fragment + Début de block XML + + + + End of an XML fragment + Fin de block XML + + + + Script tag + Balise de script + + + + Start of an ASP fragment with @ + Début de block ASP avec @ + + + + Start of an ASP fragment + Début de block ASP + + + + CDATA + CDATA + + + + Start of a PHP fragment + Début de block PHP + + + + Unquoted HTML value + Valeur HTML sans guillemets + + + + ASP X-Code comment + Commentaire X-Code ASP + + + + SGML default + SGML par défaut + + + + SGML command + Commande SGML + + + + First parameter of an SGML command + Premier paramètre de commande SGML + + + + SGML double-quoted string + Chaine de caractères SGML (guillemets doubles) + + + + SGML single-quoted string + Chaine de caractères SGML (guillemets simples) + + + + SGML error + Erreur SGML + + + + SGML special entity + Entité SGML spéciale + + + + SGML comment + Commentaire SGML + + + + First parameter comment of an SGML command + Premier paramètre de commentaire de commande SGML + + + + SGML block default + Block SGML par défaut + + + + Start of a JavaScript fragment + Début de block JavaScript + + + + JavaScript default + JavaScript par défaut + + + + JavaScript comment + Commentaire JavaScript + + + + JavaScript line comment + Commentaire de ligne JavaScript + + + + JavaDoc style JavaScript comment + Commentaire JavaScript de style JavaDoc + + + + JavaScript number + Nombre JavaScript + + + + JavaScript word + Mot JavaScript + + + + JavaScript keyword + Mot-clé JavaScript + + + + JavaScript double-quoted string + Chaine de caractères JavaScript (guillemets doubles) + + + + JavaScript single-quoted string + Chaine de caractères JavaScript (guillemets simples) + + + + JavaScript symbol + Symbole JavaScript + + + + JavaScript unclosed string + Chaine de caractères JavaScript non refermée + + + + JavaScript regular expression + Expression régulière JavaScript + + + + Start of an ASP JavaScript fragment + Début de block JavaScript ASP + + + + ASP JavaScript default + JavaScript ASP par défaut + + + + ASP JavaScript comment + Commentaire JavaScript ASP + + + + ASP JavaScript line comment + Commentaire de ligne JavaScript ASP + + + + JavaDoc style ASP JavaScript comment + Commentaire JavaScript ASP de style JavaDoc + + + + ASP JavaScript number + Nombre JavaScript ASP + + + + ASP JavaScript word + Mot JavaScript ASP + + + + ASP JavaScript keyword + Mot-clé JavaScript ASP + + + + ASP JavaScript double-quoted string + Chaine de caractères JavaScript ASP (guillemets doubles) + + + + ASP JavaScript single-quoted string + Chaine de caractères JavaScript ASP (guillemets simples) + + + + ASP JavaScript symbol + Symbole JavaScript ASP + + + + ASP JavaScript unclosed string + Chaine de caractères JavaScript ASP non refermée + + + + ASP JavaScript regular expression + Expression régulière JavaScript ASP + + + + Start of a VBScript fragment + Début de block VBScript + + + + VBScript default + VBScript par défaut + + + + VBScript comment + Commentaire VBScript + + + + VBScript number + Nombre VBScript + + + + VBScript keyword + Mot-clé VBScript + + + + VBScript string + Chaine de caractères VBScript + + + + VBScript identifier + Identificateur VBScript + + + + VBScript unclosed string + Chaine de caractères VBScript non refermée + + + + Start of an ASP VBScript fragment + Début de block VBScript ASP + + + + ASP VBScript default + VBScript ASP par défaut + + + + ASP VBScript comment + Commentaire VBScript ASP + + + + ASP VBScript number + Nombre VBScript ASP + + + + ASP VBScript keyword + Mot-clé VBScript ASP + + + + ASP VBScript string + Chaine de caractères VBScript ASP + + + + ASP VBScript identifier + Identificateur VBScript ASP + + + + ASP VBScript unclosed string + Chaine de caractères VBScript ASP non refermée + + + + Start of a Python fragment + Début de block Python + + + + Python default + Python par défaut + + + + Python comment + Commentaire Python + + + + Python number + Nombre Python + + + + Python double-quoted string + Chaine de caractères Python (guillemets doubles) + + + + Python single-quoted string + Chaine de caractères Python (guillemets simples) + + + + Python keyword + Mot-clé Python + + + + Python triple double-quoted string + Chaine de caractères Python (triples guillemets doubles) + + + + Python triple single-quoted string + Chaine de caractères Python (triples guillemets simples) + + + + Python class name + Nom de classe Python + + + + Python function or method name + Méthode ou fonction Python + + + + Python operator + Opérateur Python + + + + Python identifier + Identificateur Python + + + + Start of an ASP Python fragment + Début de block Python ASP + + + + ASP Python default + Python ASP par défaut + + + + ASP Python comment + Commentaire Python ASP + + + + ASP Python number + Nombre Python ASP + + + + ASP Python double-quoted string + Chaine de caractères Python ASP (guillemets doubles) + + + + ASP Python single-quoted string + Chaine de caractères Python ASP (guillemets simples) + + + + ASP Python keyword + Mot-clé Python ASP + + + + ASP Python triple double-quoted string + Chaine de caractères Python ASP (triples guillemets doubles) + + + + ASP Python triple single-quoted string + Chaine de caractères Python ASP (triples guillemets simples) + + + + ASP Python class name + Nom de classe Python ASP + + + + ASP Python function or method name + Méthode ou fonction Python ASP + + + + ASP Python operator + Opérateur Python ASP + + + + ASP Python identifier + Identificateur Python ASP + + + + PHP default + PHP par défaut + + + + PHP double-quoted string + Chaine de caractères PHP (guillemets doubles) + + + + PHP single-quoted string + Chaine de caractères PHP (guillemets simples) + + + + PHP keyword + Mot-clé PHP + + + + PHP number + Nombre PHP + + + + PHP variable + Variable PHP + + + + PHP comment + Commentaire PHP + + + + PHP line comment + Commentaire de ligne PHP + + + + PHP double-quoted variable + Variable PHP (guillemets doubles) + + + + PHP operator + Opérateur PHP + + + + QsciLexerIDL + + + UUID + UUID + + + + QsciLexerJavaScript + + + Regular expression + Expression régulière + + + + QsciLexerLua + + + Default + Par défaut + + + + Comment + Commentaire + + + + Line comment + Commentaire de ligne + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + String + Chaîne de caractères + + + + Character + Caractère + + + + Literal string + Chaîne littérale + + + + Preprocessor + Préprocessing + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Unclosed string + Chaine de caractères non refermée + + + + Basic functions + Fonctions de base + + + + String, table and maths functions + Fonctions sur les chaines, tables et fonctions math + + + + Coroutines, i/o and system facilities + Coroutines, i/o et fonctions système + + + + User defined 1 + Définition utilisateur 1 + + + + User defined 2 + Définition utilisateur 2 + + + + User defined 3 + Définition utilisateur 3 + + + + User defined 4 + Définition utilisateur 4 + + + + Label + Titre + + + + QsciLexerMakefile + + + Default + Par défaut + + + + Comment + Commentaire + + + + Preprocessor + Préprocessing + + + + Variable + Variable + + + + Operator + Opérateur + + + + Target + Cible + + + + Error + Erreur + + + + QsciLexerMatlab + + + Default + Par défaut + + + + Comment + Commentaire + + + + Command + Commande + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + QsciLexerPO + + + Default + Par défaut + + + + Comment + Commentaire + + + + Message identifier + + + + + Message identifier text + + + + + Message string + + + + + Message string text + + + + + Message context + + + + + Message context text + + + + + Fuzzy flag + + + + + Programmer comment + + + + + Reference + + + + + Flags + + + + + Message identifier text end-of-line + + + + + Message string text end-of-line + + + + + Message context text end-of-line + + + + + QsciLexerPOV + + + Default + Par défaut + + + + Comment + Commentaire + + + + Comment line + Ligne commentée + + + + Number + Nombre + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + String + Chaîne de caractères + + + + Unclosed string + Chaine de caractères non refermée + + + + Directive + Directive + + + + Bad directive + Mauvaise directive + + + + Objects, CSG and appearance + Objets, CSG et apparence + + + + Types, modifiers and items + Types, modifieurs et éléments + + + + Predefined identifiers + Identifiants prédéfinis + + + + Predefined functions + Fonctions prédéfinies + + + + User defined 1 + Définition utilisateur 1 + + + + User defined 2 + Définition utilisateur 2 + + + + User defined 3 + Définition utilisateur 3 + + + + QsciLexerPascal + + + Default + Par défaut + + + + Line comment + Commentaire de ligne + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + '{ ... }' style comment + + + + + '(* ... *)' style comment + + + + + '{$ ... }' style pre-processor block + + + + + '(*$ ... *)' style pre-processor block + + + + + Hexadecimal number + + + + + Unclosed string + Chaine de caractères non refermée + + + + Character + Caractère + + + + Inline asm + + + + + QsciLexerPerl + + + Default + Par défaut + + + + Error + Erreur + + + + Comment + Commentaire + + + + POD + POD + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Scalar + Scalaire + + + + Array + Tableau + + + + Hash + Hashage + + + + Symbol table + Table de symboles + + + + Regular expression + Expression régulière + + + + Substitution + Substitution + + + + Backticks + Quotes inverses + + + + Data section + Section de données + + + + Here document delimiter + Délimiteur de texte intégré (cat <<EOF....EOF) + + + + Single-quoted here document + Document intégré guillemets simples + + + + Double-quoted here document + Document intégré guillemets doubles + + + + Backtick here document + Document intégré quotes inverses + + + + Quoted string (q) + Chaine quotée (q) + + + + Quoted string (qq) + Chaine quotée (qq) + + + + Quoted string (qx) + Chaine quotée (qx) + + + + Quoted string (qr) + Chaine quotée (qr) + + + + Quoted string (qw) + Chaine quotée (qw) + + + + POD verbatim + POD verbatim + + + + Subroutine prototype + + + + + Format identifier + + + + + Format body + + + + + Double-quoted string (interpolated variable) + + + + + Translation + + + + + Regular expression (interpolated variable) + + + + + Substitution (interpolated variable) + + + + + Backticks (interpolated variable) + + + + + Double-quoted here document (interpolated variable) + + + + + Backtick here document (interpolated variable) + + + + + Quoted string (qq, interpolated variable) + + + + + Quoted string (qx, interpolated variable) + + + + + Quoted string (qr, interpolated variable) + + + + + QsciLexerPostScript + + + Default + Par défaut + + + + Comment + Commentaire + + + + DSC comment + + + + + DSC comment value + + + + + Number + Nombre + + + + Name + + + + + Keyword + Mot-clé + + + + Literal + + + + + Immediately evaluated literal + + + + + Array parenthesis + + + + + Dictionary parenthesis + + + + + Procedure parenthesis + + + + + Text + Texte + + + + Hexadecimal string + + + + + Base85 string + + + + + Bad string character + + + + + QsciLexerProperties + + + Default + Par défaut + + + + Comment + Commentaire + + + + Section + Section + + + + Assignment + Affectation + + + + Default value + Valeur par défaut + + + + Key + + + + + QsciLexerPython + + + Default + Par défaut + + + + Comment + Commentaire + + + + Number + Nombre + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Keyword + Mot-clé + + + + Triple single-quoted string + Chaine de caractères HTML (guillemets simples) + + + + Triple double-quoted string + Chaine de caractères HTML (guillemets simples) + + + + Class name + Nom de classe + + + + Function or method name + Nom de méthode ou de fonction + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Comment block + Block de commentaires + + + + Unclosed string + Chaine de caractères non refermée + + + + Highlighted identifier + + + + + Decorator + + + + + QsciLexerRuby + + + Default + Par défaut + + + + Comment + Commentaire + + + + Number + Nombre + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Keyword + Mot-clé + + + + Class name + Nom de classe + + + + Function or method name + Nom de méthode ou de fonction + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Error + Erreur + + + + POD + POD + + + + Regular expression + Expression régulière + + + + Global + + + + + Symbol + Symbole + + + + Module name + + + + + Instance variable + + + + + Class variable + + + + + Backticks + Quotes inverses + + + + Data section + Section de données + + + + Here document delimiter + Délimiteur de texte intégré (cat <<EOF....EOF) + + + + Here document + + + + + %q string + + + + + %Q string + + + + + %x string + + + + + %r string + + + + + %w string + + + + + Demoted keyword + + + + + stdin + + + + + stdout + + + + + stderr + + + + + QsciLexerSQL + + + Default + Par défaut + + + + Comment + Commentaire + + + + Number + Nombre + + + + Keyword + Mot-clé + + + + Single-quoted string + Chaine de caractères (guillemets simples) + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Comment line + Ligne commentée + + + + JavaDoc style comment + Commentaire style JavaDoc + + + + Double-quoted string + Chaine de caractères (guillemets doubles) + + + + SQL*Plus keyword + Mot-clé SQL*Plus + + + + SQL*Plus prompt + Prompt SQL*Plus + + + + SQL*Plus comment + Commentaire SQL*Plus + + + + # comment line + # Ligne commentée + + + + JavaDoc keyword + Mot-clé JavaDoc + + + + JavaDoc keyword error + Erreur de mot-clé JavaDoc + + + + User defined 1 + Définition utilisateur 1 + + + + User defined 2 + Définition utilisateur 2 + + + + User defined 3 + Définition utilisateur 3 + + + + User defined 4 + Définition utilisateur 4 + + + + Quoted identifier + + + + + QsciLexerSpice + + + Default + Par défaut + + + + Identifier + Identificateur + + + + Command + Commande + + + + Function + + + + + Parameter + + + + + Number + Nombre + + + + Delimiter + + + + + Value + Valeur + + + + Comment + Commentaire + + + + QsciLexerTCL + + + Default + Par défaut + + + + Comment + Commentaire + + + + Comment line + Ligne commentée + + + + Number + Nombre + + + + Quoted keyword + + + + + Quoted string + + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Substitution + Substitution + + + + Brace substitution + + + + + Modifier + + + + + Expand keyword + + + + + TCL keyword + + + + + Tk keyword + + + + + iTCL keyword + + + + + Tk command + + + + + User defined 1 + Définition utilisateur 1 + + + + User defined 2 + Définition utilisateur 2 + + + + User defined 3 + Définition utilisateur 3 + + + + User defined 4 + Définition utilisateur 4 + + + + Comment box + + + + + Comment block + Block de commentaires + + + + QsciLexerTeX + + + Default + Par défaut + + + + Special + Spécial + + + + Group + Groupe + + + + Symbol + Symbole + + + + Command + Commande + + + + Text + Texte + + + + QsciLexerVHDL + + + Default + Par défaut + + + + Comment + Commentaire + + + + Comment line + Ligne commentée + + + + Number + Nombre + + + + String + Chaîne de caractères + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Unclosed string + Chaine de caractères non refermée + + + + Keyword + Mot-clé + + + + Standard operator + + + + + Attribute + Attribut + + + + Standard function + + + + + Standard package + + + + + Standard type + + + + + User defined + + + + + QsciLexerVerilog + + + Default + Par défaut + + + + Comment + Commentaire + + + + Line comment + Commentaire de ligne + + + + Bang comment + + + + + Number + Nombre + + + + Primary keywords and identifiers + + + + + String + Chaîne de caractères + + + + Secondary keywords and identifiers + Seconds mots-clés et identificateurs + + + + System task + + + + + Preprocessor block + + + + + Operator + Opérateur + + + + Identifier + Identificateur + + + + Unclosed string + Chaine de caractères non refermée + + + + User defined tasks and identifiers + + + + + QsciLexerYAML + + + Default + Par défaut + + + + Comment + Commentaire + + + + Identifier + Identificateur + + + + Keyword + Mot-clé + + + + Number + Nombre + + + + Reference + + + + + Document delimiter + + + + + Text block marker + + + + + Syntax error marker + + + + + Operator + Opérateur + + + + QsciScintilla + + + &Undo + + + + + &Redo + + + + + Cu&t + + + + + &Copy + + + + + &Paste + + + + + Delete + + + + + Select All + + + + diff --git a/Qt4Qt5/qscintilla_pt_br.qm b/Qt4Qt5/qscintilla_pt_br.qm new file mode 100644 index 0000000000000000000000000000000000000000..39f24e221c9cf499839ba04fa327311e658af442 GIT binary patch literal 48688 zcmd5l34D~*@h>EsW3$-=5;+3KB_MD73^w7Cml^APpG|Y;FxHaE=3aL-V~e)4d3SDR zY}01eu%nf+lZO)Qd4u5fYuUovUtnzSHnzC;ImSkRPH;>i!Sg;P82x~?+_0Omq1UrZ zuX&2G$)yAze4SnHj5F486^lIcBx4J|X0f+FV66Qjwr&gXG4pHo;1j=MZ0W6R_pkoR zSpC!NyT66+HGhx2S_=H%v!4CW@2+L+iWc^M%UJk78Nbc9j6$OM5b2>_oi3 zCAf28#_LDm_obBt%d!cMeuQAf9D-8{37-89!SnVKjP545b_cj-}1j|6YoMQ~dl z!5vAw_Z+6r4>b`y5XgA@W*CptUdnj;9)MMYGv59$eokb(`_&VSow_9B@XRHk3}CR3tcG7nhAn5O7S)p+-?w38Bb?1E0FKGGV!3}`# z)~r_^{XX!qA?uC28pixJS#SMi7wGRzS$|pkBgW3X(c$=03Fy)Nj-2P+jMX#|>nDUwZq-r%b0VAW7t`rFn06J1b6p2hWX-*&AZv*X?`E{ajRqObeJbg zb~~z80RMA7bjV0!R`wPUY$em{yPZn83C}4 zv2)HN*u9(J)vW~Y|AOG2IKXA2*!zrnceaa=kT;~NNGxt8F!vj{$X#PR5~ zOJTkw2=4vb@%hb%z|M`#u6+3=#;(lIKL2vi!;4mBujqpRAO8F7^}ij-SjFE6PWd&# z8TV%2_6t8_MccA>R*YvX^j!9R`zOJCcqRM0+xIed;i=irZ+Vrm*2lAdvIXQ;`XRxx z^#sdLC0Ow+!AUs;r`%3(>JEZ4RuYVTO|UnY;JOlm8xjPsnMH8(5`x<{5&YIzg7+>b zxO*nShki=%VJE=@zt8^V^HZTe8QF)f-^7^bqwKejKtI|p%*k=X{EM~b6z<*5Sl*R6 zg`YTJ{^sWld#IeTrYSiS&H}sQ_&R68m0*V)3v*va~NB8S?-kfZD6g|<*s^uBV+m1xmUaiK6%jDxmO(= z2KMsf-0R;1KF*Cp3VK&9^fmp zE-!Dx8^F(>^Ttgc&)CS(1h+5CJAVqaTm5q0%qy0FJuS|QY`YIWUzoRLW}LD6n)3GD z`xf|Vf8N9Y{3m0Pr}DnzejNP%IeCv=4xd|d@}A6q-;Y>KaMVVEV}C@j>NA38)DfKi z62ZP_30`-E;MNxi-nok4&NuR&c@*sUt>L`amW_pY-5cn-P;4J?1 z5csn?=kPz*K+N;3bNmMY$Ifw9KHdcVdxhY&3klva(m8+4493d7=WIFx<96#_f_Jnz z{Zq5R{=Q4F&qeToeFXPbI{nj27#meY(32ooeiy-WM-ZGom*ARaf<2cI?3+z+-G>CP zxQF1iI|$w~j^LID3EuiS!8;BR+&P5c18)=DHHhH8B>iu{LZ2Ub#Oc2h`=8}peQy=S zXD>U~1h#_SZFO${3gowRlym1(e#Wj_;=KRgiy@9!?R@mjS&Yq}>wNB}IE-Hz!BGnc zdY&Ly{u_d0Zzfpv9KkcP37#Dycy0^9>6-~gs|fb&B-po!;1y#Cu1~_NzoyUEc?jMT zB)H`W!L3Prcb-X~civC%!6d)Cw$bOkD+%uVHNpK3f{*;!`OCGSFO8#|A1-f(`I_bY zvUoRR?oXXxE0sA1HzL z;k)y%su>I48<~I0p_3r)IhWv~QBEAi&>~|LPS(7#r71uzCx@dvfxBIx7M3 z$)Ws%+X4TEy!<~baxivV3&A`8oB!7z*MOgFAo$IIYtXOnfcdc4mG{|f=+`z^!Gs$b z+d7%xt{JWwZvs8<)2^le_&vneOI&R~{{rmZHLi%`M-cDNCwTo^uDvINomli^*NcU( zzmg$h+{96lFyi*M8lb;sE*Tesph6qj_O)xfs z;KmmS?!T^J#`+?Im7=eILfc{{-~za%*AWP;~EPB3vL!K;2>f4gu{&^kGsMUB?v5V7-}1COcsL6Fr@$R5^D|cayu0TJd@r!dy{-`YKj#Mb zT`0$kzH&d93;0g?6T!+1f|IT%c;*s<=MN*eu94t18wh?g*?!v#^!Zy!JooK&KlpdB z53>%qcmME7pjYL7WI_*P+yBq~<2@zdS3h&V8qR`wROf!Z0r<`Th5O)Yh-0sO&Ha~E z(BE_a*ZtpWu;1ffC%E)T;qaMTL0(@Jj#&?QCSOxna~kkJ^y$LIKZpPKMhZ7q1Kvx2 zT)1UI9Q@Uu!l%NsVcoW^@CB4hpseuaL-6~O6@~9S{xYm%F9Rq3ouQeqKqz8$%*(>e z#{w(_KSgtK*^rHY>%3uKAd~|?=3f-^1?wW6o!+oN16$QYs|d8}hE`D)7yk7?YY&SF zcmnJL_8xr0!@3Zs@S9E+gckpXZ}?aOX-Sk$sf&cW1JSrA76=7=@n9tEiAOx4NKYW@ z@p)r`0c61oOju_j(bZ+d!dO8HU4Rn%=z%_A4?Be3dO<1)_$egya&TRwtIy+0M5BRl z+!G3h`TZKDLYg8_37K0!CdrE{p{nE{wE4pCz-3owowGtg(5Bd@hNZk55yiu<&9*A_!WvTl0ejg$_LuwT;6L8Nyu}|FUT(d|H7b1%2JZ- ziAW|IZ11p2hd&bGDnF5wzWn?GE!5dC3^Wcm-zrAocQ|dr!o(EpE_^e=I)yGP^-|`o6@C|l zc@mN2T{*iq9titAQ81d`aC;);jmk64F3A4J93dX)8$DSl`1(oqhiFpKQpypv)GyZ|yhts2+UP z_JR6<>Pw1UVaRc!%UG=kW)kYDby~dYs`NsOQnhOu%90Y49Ipj)&}fqvJqc+Il>s-p zl4-HX4Vg{Z@U#oQqfHfjYIz!?FQG07Bif_ht`4p*UT%>w9I|xnjg~o!HfEU(=0tO? z^tk4xP&<|qYv>=jB3qRPSG26~2yT={*B+k+A{6{M3^G3kvLiyX@#P!ju^QF0YJ{y$ z3ejBPaPq~*=j;>%&U8n&<0y_UpG_kH8V_!ROlsSy?qVqxIxsY+)-|tq>@53UM^X$znDE7EfSP8|8>o3K??eM53K-fdJnCm9zQD zh#Xfgv|J_o9A+O2SqyodUNk@K#}&E|ItRLSG9Wc<0k{~-f7p-Qhb)M62Q0Ycv$$0B zltJs{RCIKe;2aGdv!T|~8kX88;~}o+5Ht?Wap3jBb0RJIA>%N7hK6){j*w(45!E%1 zjk@$?7ndFfs%{%wK5e(tb6&%RVYce9rt5azj$0~L(bSdoLS1rJWzBau>P{Prx|+*{ zHCIw3bk)p#@U4%YT~M3l6dJlVVXCGVW;Q`h=OkrcjO~F-ne~*6x}(t>i}P~1=MiItLQmXlpPjE~aq0 z0d*{y)E2`l{*Y=-F{#|*v9XY^zbLaMM@(&v^mn=9twDZ z;TRa6zo$h0aEC;ANuqfi`arO(GHx_&u?BG#GA2 zIcQlbh42U2z>y3x+z&u@a3tmAt#dv`J;AmhrO$atP!>wFT_@~yzyM1;c3qj!L5$ni^KlY^Up$zkC%HlHq>M#p`=aCqV?m}7P{ zN@~JsGDGkg=n>H1;37kqU&7=?TUid11=SCK#^2y3s3_(bE0;t(Y+fLWWA96#pgsOT zDA*ZH?rCwzrZKg-SnSPh4hp`=6myc(#^R*pw5${ibCkU+$Pnk2?3Hjc5fdNio0Mj| zxDoPtov>jT^#ppmyx|yZH0#U)H!Or(+r#L6W3KLg^Ig4o68&XDyJcQ>Ybp-1m(7B?|)_Qr_|MTL}q4R=% z@^w&Ik-A;VBUvhFy>%DN!{LI!`Ag_GmSD(+-O=D}rA!B}jm3G&Z`uO02))QVf>V<7 zEV(V-XwVB045}`#X*ya`x4^qPAUHBRTB2-aRXWNxCeeu8Ik`~QJfsmAXpxYcRT>LGtwv* zUf}Ka)<=Av)x5QUIBGM&dPd=o?6%Qm>rujhNsr!1DtexP7^P|ZbC!;#r}RV^u9&b? z!l6*kgJB}ASiBD+bdy7N z&0Q=mjo-;g5wZrst~gYdP*n-UOVL0~44AZXwdsTBp|*>uIhE{#0d}~YUMQ(W{%Yy zN;sL6YZK&y)tAZ=yTT=5UnmmONsx%v$PHtSGX%2(6WL5js@XFqMiUgFD41-bL{AZ{ zx>1FKV67AIldKqdwQ=y(tqICqYFpwK7AhC2SP%$f;)nb|9i;x6*clQ71$9kLXLvxz zAV(4JQz=)H4>N4lDcGt_uvMAxRt;*oj!l7o&u8mXFi$bTTn;_MB4aFlqa_dZ84Ev? zzEZ;Hu0uzctY%ZEWixy)zvl05R~*P95V1WZgPXcS78N(*6a zBel<)-`N$3LY1H@qb7>dzAcrQZv^WYfC+#;dLmdT?O?hZV}XP}GEoR#_&R)IS)pX# zieLu>{UxsIuy=AEAhX%4O0|lDoUA*2P}wo3fa^s}1!1OMX{m~qgja{LX481K*8l+> zfy10MBT^y}F&z@8u%N&QNba|z#T!Zp3pVY{vbX@zHf*$I>@gt2>aHkgJC=mwXUcYB z%q(mGNm^gn5{R~XJOLCIjEYb#b1{5F(jgPxYG2ktYRe%Au zfm#k2kT@3W0t51P16c!9rV*_{TZ`t{0K?IaaSce93l&8e+bEYHi{X>B1d(Rwkj2~; zh5_~yCX_bd@dWT@2HYLp;M#!j5W&!6j4f5)ONx+Jr#!sll&o#NU}DoTJg$0G5<-o1 z;7rXBB`G=opeAUZ-BPzm!+dK|*xTAsw@*#&QTo8brmY%{sWntLuxJ9+&H9yBRU!?F}*)a=%h&Oed zUd!Vif9o-phV|A*WzUN1;W69&({E?8$EDZMq8Zm~eze0_J-R1A1gFQ^(RE6CRI8I# zl#0k?N5t7l5G-~RYm^Mg(AuU(k78FrQQIXOvw6)68U#a7&D)(2aRQ_i7iG)Um3eAP z;1pJYz@r_YQN3ZOQ(}AgA_w_f;3|Q738pWO+haO$~AXY8O zN@pNO|s8kmIf!wW-IY~t(EL90|dWdTRtR6~TyW%Hl?P`(i zXcbxhRvL$e4aZz7`2{^{y^N(4AMxsYq$ykl8SRfDmS}}&g0@i88K_uaXKO^be}p3? zJ5Jw#I1Hxo{!y7~7!%s2OC)*?7b4Z zv8|8Wm{oi}`eWlyQAojteV?Nl*-qG+#+)}5L_}ash}m%56c&%jahR8^eYt{-Hqd0@ zsvX$5hN8%hh~H@FCmU>FTh}moGg?Q(aQ8&tp&4~esR_nTtX$RTo=VyWFSwol_!_Q?#lU`nK6F|<;%Z0NB) zvWDT{^8S+rwK0yT8>8b^K-pnNS1>Rv1@hB&?mJbIsvAHSzs+<#y!l_X_#Y#s= zlJ-xKVc63&7dngorAa7DeZ7FgGmkG!!ityLm~mCE<_bsD5;tXnW^3g&50p+ho-X8H zS+va=jWU*O1$-MBcfw_C)a@L%ld1M6HXkAM&_+}~RAr#mBFh&L8XDqNHY}q3Uh;zm z>Zgr3p+!eU%$CzQ8FA+yr*-P;zaFNjTqr&^wX_)xxaB0_LR-AS`5ucr2^`?QF%@`Q z=10$!aAYN!xFI&MbMTln6gBBN_F1m7X$F6VH^UNDzw2`06bQ+sNv9+Iw~CONh-2II@8YWe6^9PZ>;hH{PODUZ5vM$p(&>!mcb zmO2%65i)MUD3_>0zEmtu#A0ZFhjY_|N;P#M4wFovo!Hp!u<{M4pkOvE=Wsm*lZ=Sa zPZQ<9T|SE&8WP^Y;vR!=Zp2^{qg=R1AtlN7NG2bYF#ueUfA@p%zEh*ie;f z42c#~K~flo7Nv}9QMAYklgLa=OZcd39N)l*I%mVi*s0o3=zxu2(#nQHc~Y+SHxuma z?+*VMGi4^x(-0v;CLEE)VpW5x9Pu^+{al>OLblBg7X2J< z8LR|^JfKPMh$G{E+40^o)&3at5rUj-nDZfuL;30is8c{Dovr7@bas+j_B+T|V(Ov| z-K~NyrevH2yMUKx(TP0DpsPDyEOb8B74QYUArGFY)=f>1h4g7k${h$$7>bAg)Q9bz z$@P?e68;=;a(GECl|PHPD7mjp!;3379+k4DINWwk>3+o`(Ih!vWs!1fFg#2_3u9Un zBGs0OXnk9$k`&djm{2>*A~n_Km*nI}DJV)?ZYDHmS)|DsKv133E!Z(K{jf)sFg0Pr zsvf1foK*6ssL6|AoAE9W74e#@uuAHh-j7z3w>kt?H957n!`0+WBs|sPK#SXpw7KI^ zTsNSRuSn6;6O4CwX6o$zS?ylxPF+g(EbY~)44X77#M96mpMY0+r`(Z{w1(P)(DGS_ z!QvTZukscJE^-w|7LezQ$n`C5y?pQ)5X##xV)jk#k}DRG zDQpXMiwCGV{TZjTG*!(DN$y3G{u>u#jN=qzhzujM>MCj(uW>|!dWWu!bFCSWvMzeNr$mq8{@vOc^fq z)>;lZmo0%m%DXDEmMocHkETjK>Oa4pYWoM^XmGJ~en^gFgmVLBP_00PkmA)^tx(*A zVI$t(AWz7`S>9OC=Mhs4s%vo?5?%qD^|PvSFU7Xj4?}6&wrG0cgFz44BinVC7dhq<&88n83Q{X=bd%D8{14bK_(4|R<^BU27t z*YK6wx*HfQ`82$~v@IC2dWES@!(1_sBQY#rU9Ho^qAk#Aou)z1!R8hY!czf}@@n4f zW^c4TAlzW3)6(J{L^`eA$@tsoq_}*2&;oBf>NUo2ai3U&qZSD6uGS|&INAU6X4)5moMuoDm?ZrylBz5NYHL`_0%+>mp3p( zKv#)(#Cjl9z&AMLr#lK}dHo)L5Ff7%cB}3bYh2V~b7IMsU2JPHfUBduUFil1Eh6*& zYuglo3B$ravJkTOWsuPwM{0&hGHvQC2)*)N#G&_Z=;+mEH?1f3QQH? z8y5IjJS;|}9*tbox(Wsn))RG2bA`~y3-6{wp)@=npXwRKp|Lo@v`k{1d+HjGj_P8V zCtjR_mE`hjuLOcn$YKbWqv$O8M6NJ@rG~kT{iTl!KxKJ8Ku`}Wqo`FeTAPXx)ogN&k z;8pD6Q3zhsL2WU3O$W8b;8jFzJxL+^1b9*l-mtJ}*tyNpuuwX9()I9)K3KH!4XQVV zxD1(EO>QfT#*Ewcgo+jvQa!pen=1;uZZvr_uw;=Owb7_oxb;}hmNy2Xq`j98*lR0z zZH3;0Nkhd4lRO5`tw=oKeqH|_Vvk2%WG}x+_<`H|~XN zg@tqA=&3oF%!40Jqvin{8s1snk@YDLV_6xOInDN5v8oS}v0sK8F62(BN7qa1fycAnh zuo>`&64Nu-1c_T~?^;RfpN5m+2+i(wt{fDmPJz?LqD$bk%!bVBBE`MmnT?BttrX5z zC(&00QDa@b)k~3GfYJl+E(#YT>!{B%8#!yMsf7x*MxhRaFH$~R=&4vUL5CGPhllO3 zqGV=>nwewHO;jNo4L8waEt?)AZhDS2H@!yO^y+al09%cmNoVU}ILVluI1j@~ES&(6 zCr7-)A#TB!Zz=bSkCdsev~)EkT4PXt2V0oxYb~X|jfJJKym=$Kt<)>2@XK}Hm+tjWX(?w+J%XC{hL8QrpT#`r6YKB8vC@|etB`MWE z>Y;Sj!iz%fVextZ1r~bl1ookACINL(m`Aa?P3cIB@C*VtSzNKI%Vi4csh-&*)%NHj zbINhKB*q+gxkprH-G-x54q9M3RdL6cgvv>;riiCs6zeRZI?|>zxy>t5YQHHUq(U~T z0}_wn$@8l~%&AycOL1048p2_7^zY^3l1d{` z*1?l@Hbz!1Qv<^#Z82Qtwmkv-7?&?Q)&53dD=xqW=Gka2n|5mU?X$_R*%#lp)~nj* zGJ4E1QnE7lKbf;Q(b^{%-L%ZN93M$|tj8go#{EtTNo<(gY7Y71ZmBsu9UVK(A(V!d z=3=pDqd6!{Ei|W%Mf=QYX`arIbZS7?YZBHIz&&up;)XC#aX+r){Ih8(lDY_y`htao z`d3^jZ(qjOBIM(9VOA|x{ZrzHo$65xFA|$$R);x zcm^N4twm{WYqV{SyQ$H#l!gJ&B1z{N9OLJB#eo~Rw{WaH$176RyHp-C$!51lNp$F@ zCdCN|t=#M`ptTrG&8D`AMXRZ8SfxA9@uW!;y9i$GKuriidPH7k6@gGI8$*ehIK}zX zsajaVVo__iklM$EWU`bRkYnQC3JJx*3N8P5s|?l!<729w-%u;u*`<1)Qq+_a zz>aG>dKBsr#QxerZLuC99n==<5z;|zv6xmwZKXETEtSzWbp?G?Lu=ie@miZZA6~08 zY&{Q+smgwrGJw)K)BzLX3fB7SsOPHclwI#A;bMqbWtoj=6Ab zt1H!~Hz#QnLAig*4F*!HoF=-mfZxu-GK9yR!A^ko>-KL!Zkd-nENI;@$xAG$vAGT5 zG)lvWaIvJjN>^}i^4u1OtVK)2Y1ywzR1UtQo2%mxw5};dQiuRgLkB~Vc8img-!2V( z;Uh}3ijj}Z)Qj<(S=1kX;}hmpUOs#M(r`Y?qpRe6n%4DPo+KC7Cf`-FV-clBX=pfy UwB7YL2ZgCpbJ|$cXjRMq2kt9_djJ3c literal 0 HcmV?d00001 diff --git a/Qt4Qt5/qscintilla_pt_br.ts b/Qt4Qt5/qscintilla_pt_br.ts new file mode 100644 index 0000000..5538ae1 --- /dev/null +++ b/Qt4Qt5/qscintilla_pt_br.ts @@ -0,0 +1,3612 @@ + + + + + QsciCommand + + + Move down one line + Mover uma linha para baixo + + + + Extend selection down one line + Extender a seleção uma linha para baixo + + + + Scroll view down one line + Descer a visão uma linha para baixo + + + + Extend rectangular selection down one line + Extender a seleção retangular uma linha para baixo + + + + Move up one line + Mover uma linha para cima + + + + Extend selection up one line + Extender a seleção uma linha para cima + + + + Scroll view up one line + Subir a visão uma linha para cima + + + + Extend rectangular selection up one line + Extender a seleção retangular uma linha para cima + + + + Move up one paragraph + Mover um paragrafo para cima + + + + Extend selection up one paragraph + Extender a seleção um paragrafo para cima + + + + Move down one paragraph + Mover um paragrafo para baixo + + + + Scroll to start of document + + + + + Scroll to end of document + + + + + Scroll vertically to centre current line + + + + + Extend selection down one paragraph + Extender a seleção um paragrafo para baixo + + + + Move left one character + Mover um caractere para a esquerda + + + + Extend selection left one character + Extender a seleção um caractere para esquerda + + + + Move left one word + Mover uma palavra para esquerda + + + + Extend selection left one word + Extender a seleção uma palavra para esquerda + + + + Extend rectangular selection left one character + Extender a seleção retangular um caractere para esquerda + + + + Move right one character + Mover um caractere para direita + + + + Extend selection right one character + Extender a seleção um caractere para direita + + + + Move right one word + Mover uma palavra para direita + + + + Extend selection right one word + Extender a seleção uma palavra para direita + + + + Extend rectangular selection right one character + Extender a seleção retangular um caractere para direita + + + + Move to end of previous word + + + + + Extend selection to end of previous word + + + + + Move to end of next word + + + + + Extend selection to end of next word + + + + + Move left one word part + Mover uma parte da palavra para esquerda + + + + Extend selection left one word part + Extender a seleção uma parte de palavra para esquerda + + + + Move right one word part + Mover uma parte da palavra para direita + + + + Extend selection right one word part + Extender a seleção uma parte de palavra para direita + + + + Move up one page + Mover uma página para cima + + + + Extend selection up one page + Extender a seleção uma página para cima + + + + Extend rectangular selection up one page + Extender a seleção retangular uma página para cima + + + + Move down one page + Mover uma página para baixo + + + + Extend selection down one page + Extender a seleção uma página para baixo + + + + Extend rectangular selection down one page + Extender a seleção retangular uma página para baixo + + + + Delete current character + Excluir caractere atual + + + + Cut selection + Recortar seleção + + + + Delete word to right + Excluir palavra para direita + + + + Move to start of document line + + + + + Extend selection to start of document line + + + + + Extend rectangular selection to start of document line + + + + + Move to start of display line + + + + + Extend selection to start of display line + + + + + Move to start of display or document line + + + + + Extend selection to start of display or document line + + + + + Move to first visible character in document line + + + + + Extend selection to first visible character in document line + + + + + Extend rectangular selection to first visible character in document line + + + + + Move to first visible character of display in document line + + + + + Extend selection to first visible character in display or document line + + + + + Move to end of document line + + + + + Extend selection to end of document line + + + + + Extend rectangular selection to end of document line + + + + + Move to end of display line + + + + + Extend selection to end of display line + + + + + Move to end of display or document line + + + + + Extend selection to end of display or document line + + + + + Move to start of document + + + + + Extend selection to start of document + + + + + Move to end of document + + + + + Extend selection to end of document + + + + + Stuttered move up one page + + + + + Stuttered extend selection up one page + + + + + Stuttered move down one page + + + + + Stuttered extend selection down one page + + + + + Delete previous character if not at start of line + + + + + Delete right to end of next word + + + + + Delete line to right + Excluir linha para direita + + + + Transpose current and previous lines + + + + + Duplicate the current line + + + + + Select all + Select document + + + + + Move selected lines up one line + + + + + Move selected lines down one line + + + + + Toggle insert/overtype + Alternar entre modo de inserir/sobreescrever + + + + Paste + Copiar + + + + Copy selection + Copiar seleção + + + + Insert newline + + + + + De-indent one level + + + + + Cancel + Cancelar + + + + Delete previous character + Excluir caractere anterior + + + + Delete word to left + Excluir palavra a esquerda + + + + Delete line to left + Excluir linha a esquerda + + + + Undo last command + + + + + Redo last command + Refazer último comando + + + + Indent one level + Indentar um nível + + + + Zoom in + Aumentar zoom + + + + Zoom out + Diminuir zoom + + + + Formfeed + Alimentação da Página + + + + Cut current line + Configurar linha atual + + + + Delete current line + Excluir linha atual + + + + Copy current line + Copiar linha atual + + + + Convert selection to lower case + Converter a seleção para minúscula + + + + Convert selection to upper case + Converter a seleção para maiúscula + + + + Duplicate selection + + + + + QsciLexerAVS + + + Default + Padrão + + + + Block comment + + + + + Nested block comment + + + + + Line comment + Comentar Linha + + + + Number + Número + + + + Operator + Operador + + + + Identifier + Identificador + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Triple double-quoted string + Cadeia de caracteres envolvida por três aspas duplas + + + + Keyword + Palavra Chave + + + + Filter + + + + + Plugin + + + + + Function + + + + + Clip property + + + + + User defined + + + + + QsciLexerBash + + + Default + Padrão + + + + Error + Número + + + + Comment + Comentário + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Scalar + Escalar + + + + Parameter expansion + Parâmetro de Expansão + + + + Backticks + Aspas Invertidas + + + + Here document delimiter + Delimitador de "here documents" + + + + Single-quoted here document + "here document" envolvido por aspas simples + + + + QsciLexerBatch + + + Default + Padrão + + + + Comment + Comentário + + + + Keyword + Palavra Chave + + + + Label + Rótulo + + + + Hide command character + Esconder caractere de comando + + + + External command + Comando externo + + + + Variable + Variável + + + + Operator + Operador + + + + QsciLexerCMake + + + Default + Padrão + + + + Comment + Comentário + + + + String + Cadeia de Caracteres + + + + Left quoted string + + + + + Right quoted string + + + + + Function + + + + + Variable + Variável + + + + Label + Rótulo + + + + User defined + + + + + WHILE block + + + + + FOREACH block + + + + + IF block + + + + + MACRO block + + + + + Variable within a string + + + + + Number + Número + + + + QsciLexerCPP + + + Default + Padrão + + + + Inactive default + + + + + C comment + Comentário C + + + + Inactive C comment + + + + + C++ comment + Comentário C++ + + + + Inactive C++ comment + + + + + JavaDoc style C comment + Comentário JavaDoc estilo C + + + + Inactive JavaDoc style C comment + + + + + Number + Número + + + + Inactive number + + + + + Keyword + Palavra Chave + + + + Inactive keyword + + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Inactive double-quoted string + + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Inactive single-quoted string + + + + + IDL UUID + + + + + Inactive IDL UUID + + + + + Pre-processor block + Instruções de pré-processamento + + + + Inactive pre-processor block + + + + + Operator + Operador + + + + Inactive operator + + + + + Identifier + Identificador + + + + Inactive identifier + + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Inactive unclosed string + + + + + C# verbatim string + + + + + Inactive C# verbatim string + + + + + JavaScript regular expression + Expressão regular JavaScript + + + + Inactive JavaScript regular expression + + + + + JavaDoc style C++ comment + Comentário JavaDoc estilo C++ + + + + Inactive JavaDoc style C++ comment + + + + + Secondary keywords and identifiers + Identificadores e palavras chave secundárias + + + + Inactive secondary keywords and identifiers + + + + + JavaDoc keyword + Palavra chave JavaDoc + + + + Inactive JavaDoc keyword + + + + + JavaDoc keyword error + Erro de palavra chave do JavaDoc + + + + Inactive JavaDoc keyword error + + + + + Global classes and typedefs + Classes e definições de tipo globais + + + + Inactive global classes and typedefs + + + + + C++ raw string + + + + + Inactive C++ raw string + + + + + Vala triple-quoted verbatim string + + + + + Inactive Vala triple-quoted verbatim string + + + + + Pike hash-quoted string + + + + + Inactive Pike hash-quoted string + + + + + Pre-processor C comment + + + + + Inactive pre-processor C comment + + + + + JavaDoc style pre-processor comment + + + + + Inactive JavaDoc style pre-processor comment + + + + + QsciLexerCSS + + + Default + Padrão + + + + Tag + Marcador + + + + Class selector + Seletor de classe + + + + Pseudo-class + Pseudo-classe + + + + Unknown pseudo-class + Pseudo-classe desconhecida + + + + Operator + Operador + + + + CSS1 property + Propriedade CSS1 + + + + Unknown property + Propriedade desconhecida + + + + Value + Valor + + + + ID selector + Seletor de ID + + + + Important + Importante + + + + @-rule + regra-@ + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + CSS2 property + Propriedade CSS2 + + + + Attribute + Atributo + + + + CSS3 property + Propriedade CSS2 {3 ?} + + + + Pseudo-element + + + + + Extended CSS property + + + + + Extended pseudo-class + + + + + Extended pseudo-element + + + + + Media rule + + + + + Variable + Variável + + + + QsciLexerCSharp + + + Verbatim string + Cadeia de caracteres no formato verbatim + + + + QsciLexerCoffeeScript + + + Default + Padrão + + + + C-style comment + + + + + C++-style comment + + + + + JavaDoc C-style comment + + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + IDL UUID + + + + + Pre-processor block + Instruções de pré-processamento + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadeia de caracteres não fechada + + + + C# verbatim string + + + + + Regular expression + Expressão Regular + + + + JavaDoc C++-style comment + + + + + Secondary keywords and identifiers + Identificadores e palavras chave secundárias + + + + JavaDoc keyword + Palavra chave JavaDoc + + + + JavaDoc keyword error + Erro de palavra chave do JavaDoc + + + + Global classes + + + + + Block comment + + + + + Block regular expression + + + + + Block regular expression comment + + + + + QsciLexerD + + + Default + Padrão + + + + Block comment + + + + + Line comment + Comentar Linha + + + + DDoc style block comment + + + + + Nesting comment + + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Secondary keyword + + + + + Documentation keyword + + + + + Type definition + + + + + String + Cadeia de Caracteres + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Character + Caractere + + + + Operator + Operador + + + + Identifier + Identificador + + + + DDoc style line comment + + + + + DDoc keyword + Palavra chave JavaDoc + + + + DDoc keyword error + Erro de palavra chave do JavaDoc + + + + Backquoted string + + + + + Raw string + + + + + User defined 1 + Definição de usuário 1 + + + + User defined 2 + Definição de usuário 2 + + + + User defined 3 + Definição de usuário 3 + + + + QsciLexerDiff + + + Default + Padrão + + + + Comment + Comentário + + + + Command + Comando + + + + Header + Cabeçalho + + + + Position + Posição + + + + Removed line + Linha Removida + + + + Added line + Linha Adicionada + + + + Changed line + + + + + QsciLexerFortran77 + + + Default + Padrão + + + + Comment + Comentário + + + + Number + Número + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Operator + Operador + + + + Identifier + Identificador + + + + Keyword + Palavra Chave + + + + Intrinsic function + + + + + Extended function + + + + + Pre-processor block + Instruções de pré-processamento + + + + Dotted operator + + + + + Label + Rótulo + + + + Continuation + + + + + QsciLexerHTML + + + HTML default + HTML por padrão + + + + Tag + Marcador + + + + Unknown tag + Marcador desconhecido + + + + Attribute + Atributo + + + + Unknown attribute + Atributo desconhecido + + + + HTML number + Número HTML + + + + HTML double-quoted string + Cadeia de caracteres HTML envolvida por aspas duplas + + + + HTML single-quoted string + Cadeia de caracteres HTML envolvida por aspas simples + + + + Other text in a tag + Outro texto em um marcador + + + + HTML comment + Comentário HTML + + + + Entity + Entidade + + + + End of a tag + Final de um marcador + + + + Start of an XML fragment + Início de um bloco XML + + + + End of an XML fragment + Final de um bloco XML + + + + Script tag + Marcador de script + + + + Start of an ASP fragment with @ + Início de um bloco ASP com @ + + + + Start of an ASP fragment + Início de um bloco ASP + + + + CDATA + CDATA + + + + Start of a PHP fragment + Início de um bloco PHP + + + + Unquoted HTML value + Valor HTML não envolvido por aspas + + + + ASP X-Code comment + Comentário ASP X-Code + + + + SGML default + SGML por padrão + + + + SGML command + Comando SGML + + + + First parameter of an SGML command + Primeiro parâmetro em um comando SGML + + + + SGML double-quoted string + Cadeia de caracteres SGML envolvida por aspas duplas + + + + SGML single-quoted string + Cadeia de caracteres SGML envolvida por aspas simples + + + + SGML error + Erro SGML + + + + SGML special entity + Entidade especial SGML + + + + SGML comment + Comando SGML + + + + First parameter comment of an SGML command + Primeiro comentário de parâmetro de uma comando SGML + + + + SGML block default + Bloco SGML por padrão + + + + Start of a JavaScript fragment + Início de um bloco Javascript + + + + JavaScript default + JavaScript por padrão + + + + JavaScript comment + Comentário JavaScript + + + + JavaScript line comment + Comentário de linha JavaScript + + + + JavaDoc style JavaScript comment + Comentário JavaScript no estilo JavaDoc + + + + JavaScript number + Número JavaScript + + + + JavaScript word + Palavra JavaScript + + + + JavaScript keyword + Palavra chave JavaScript + + + + JavaScript double-quoted string + Cadeia de caracteres JavaScript envolvida por aspas duplas + + + + JavaScript single-quoted string + Cadeia de caracteres JavaScript envolvida por aspas simples + + + + JavaScript symbol + Símbolo JavaScript + + + + JavaScript unclosed string + Cadeia de caracteres JavaScript não fechada + + + + JavaScript regular expression + Expressão regular JavaScript + + + + Start of an ASP JavaScript fragment + Início de um bloco Javascript ASP + + + + ASP JavaScript default + JavaScript ASP por padrão + + + + ASP JavaScript comment + Comentário JavaScript ASP + + + + ASP JavaScript line comment + Comentário de linha JavaScript ASP + + + + JavaDoc style ASP JavaScript comment + Comentário JavaScript ASP no estilo JavaDoc + + + + ASP JavaScript number + Número JavaScript ASP + + + + ASP JavaScript word + Palavra chave JavaScript ASP + + + + ASP JavaScript keyword + Palavra chave JavaScript ASP + + + + ASP JavaScript double-quoted string + Cadeia de caracteres JavaScript ASP envolvida por aspas duplas + + + + ASP JavaScript single-quoted string + Cadeia de caracteres JavaScript ASP envolvida por aspas simples + + + + ASP JavaScript symbol + Símbolo JavaScript ASP + + + + ASP JavaScript unclosed string + Cadeia de caracteres JavaScript ASP não fechada + + + + ASP JavaScript regular expression + Expressão regular JavaScript ASP + + + + Start of a VBScript fragment + Início de um bloco VBScript + + + + VBScript default + VBScript por padrão + + + + VBScript comment + Comentário VBScript + + + + VBScript number + Número VBScript + + + + VBScript keyword + Palavra chave VBScript + + + + VBScript string + Cadeia de caracteres VBScript + + + + VBScript identifier + Identificador VBScript + + + + VBScript unclosed string + Cadeia de caracteres VBScript não fechada + + + + Start of an ASP VBScript fragment + Início de um bloco VBScript ASP + + + + ASP VBScript default + VBScript ASP por padrão + + + + ASP VBScript comment + Comentário VBScript ASP + + + + ASP VBScript number + Número VBScript ASP + + + + ASP VBScript keyword + Palavra chave VBScript ASP + + + + ASP VBScript string + Cadeia de caracteres VBScript ASP + + + + ASP VBScript identifier + Identificador VBScript ASP + + + + ASP VBScript unclosed string + Cadeia de caracteres VBScript ASP não fechada + + + + Start of a Python fragment + Início de um bloco Python + + + + Python default + Python por padrão + + + + Python comment + Comentário Python + + + + Python number + Número Python + + + + Python double-quoted string + Cadeia de caracteres Python envolvida por aspas duplas + + + + Python single-quoted string + Cadeia de caracteres Python envolvida por aspas simples + + + + Python keyword + Palavra chave Python + + + + Python triple double-quoted string + Cadeia de caracteres Python envolvida por aspas triplas duplas + + + + Python triple single-quoted string + Cadeia de caracteres Python envolvida por aspas triplas simples + + + + Python class name + Nome de classe Python + + + + Python function or method name + Nome de método ou função Python + + + + Python operator + Operador Python + + + + Python identifier + Identificador Python + + + + Start of an ASP Python fragment + Início de um bloco Python ASP + + + + ASP Python default + Python ASP por padrão + + + + ASP Python comment + Comentário Python ASP + + + + ASP Python number + Número Python ASP + + + + ASP Python double-quoted string + Cadeia de caracteres Python ASP envolvida por aspas duplas + + + + ASP Python single-quoted string + Cadeia de caracteres Python ASP envolvida por aspas simples + + + + ASP Python keyword + Palavra chave Python ASP + + + + ASP Python triple double-quoted string + Cadeia de caracteres Python ASP envolvida por aspas triplas duplas + + + + ASP Python triple single-quoted string + Cadeia de caracteres Python ASP envolvida por aspas triplas simples + + + + ASP Python class name + Nome de classe Python ASP + + + + ASP Python function or method name + Nome de método ou função Python ASP + + + + ASP Python operator + Operador Python ASP + + + + ASP Python identifier + Identificador Python ASP + + + + PHP default + PHP por padrão + + + + PHP double-quoted string + Cadeia de caracteres PHP envolvida por aspas duplas + + + + PHP single-quoted string + Cadeia de caracteres PHP envolvida por aspas simples + + + + PHP keyword + Palavra chave PHP + + + + PHP number + Número PHP + + + + PHP variable + Variável PHP + + + + PHP comment + Comentário PHP + + + + PHP line comment + Comentário de linha PHP + + + + PHP double-quoted variable + Variável PHP envolvida por aspas duplas + + + + PHP operator + Operador PHP + + + + QsciLexerIDL + + + UUID + UUID + + + + QsciLexerJavaScript + + + Regular expression + Expressão Regular + + + + QsciLexerLua + + + Default + Padrão + + + + Comment + Comentário + + + + Line comment + Comentar Linha + + + + Number + Número + + + + Keyword + Palavra Chave + + + + String + Cadeia de Caracteres + + + + Character + Caractere + + + + Literal string + Cadeia de caracteres literal + + + + Preprocessor + Preprocessador + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Basic functions + Funções básicas + + + + String, table and maths functions + Funções de cadeia de caracteres e de tabelas matemáticas + + + + Coroutines, i/o and system facilities + Funções auxiiares, e/s e funções de sistema + + + + User defined 1 + Definição de usuário 1 + + + + User defined 2 + Definição de usuário 2 + + + + User defined 3 + Definição de usuário 3 + + + + User defined 4 + Definição de usuário 4 + + + + Label + Rótulo + + + + QsciLexerMakefile + + + Default + Padrão + + + + Comment + Comentário + + + + Preprocessor + Preprocessador + + + + Variable + Variável + + + + Operator + Operador + + + + Target + Destino + + + + Error + Erro + + + + QsciLexerMatlab + + + Default + Padrão + + + + Comment + Comentário + + + + Command + Comando + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + QsciLexerPO + + + Default + Padrão + + + + Comment + Comentário + + + + Message identifier + + + + + Message identifier text + + + + + Message string + + + + + Message string text + + + + + Message context + + + + + Message context text + + + + + Fuzzy flag + + + + + Programmer comment + + + + + Reference + + + + + Flags + + + + + Message identifier text end-of-line + + + + + Message string text end-of-line + + + + + Message context text end-of-line + + + + + QsciLexerPOV + + + Default + Padrão + + + + Comment + Comentário + + + + Comment line + Comentar Linha + + + + Number + Número + + + + Operator + Operador + + + + Identifier + Identificador + + + + String + Cadeia de Caracteres + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Directive + Diretiva + + + + Bad directive + Diretiva ruim + + + + Objects, CSG and appearance + Objetos, CSG e aparência + + + + Types, modifiers and items + Tipos, modificadores e itens + + + + Predefined identifiers + Identificadores predefinidos + + + + Predefined functions + Funções predefinidas + + + + User defined 1 + Definição de usuário 1 + + + + User defined 2 + Definição de usuário 2 + + + + User defined 3 + Definição de usuário 3 + + + + QsciLexerPascal + + + Default + Padrão + + + + Line comment + Comentar Linha + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + '{ ... }' style comment + + + + + '(* ... *)' style comment + + + + + '{$ ... }' style pre-processor block + + + + + '(*$ ... *)' style pre-processor block + + + + + Hexadecimal number + + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Character + Caractere + + + + Inline asm + + + + + QsciLexerPerl + + + Default + Padrão + + + + Error + Erro + + + + Comment + Comentário + + + + POD + POD + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Scalar + Escalar + + + + Array + Vetor + + + + Hash + Hash + + + + Symbol table + Tabela de Símbolos + + + + Regular expression + Expressão Regular + + + + Substitution + Substituição + + + + Backticks + Aspas Invertidas + + + + Data section + Seção de dados + + + + Here document delimiter + Delimitador de documentos criados através de redicionadores (>> e >) + + + + Single-quoted here document + "here document" envolvido por aspas simples + + + + Double-quoted here document + "here document" envolvido por aspas duplas + + + + Backtick here document + "here document" envolvido por aspas invertidas + + + + Quoted string (q) + Cadeia de caracteres envolvida por aspas (q) + + + + Quoted string (qq) + Cadeia de caracteres envolvida por aspas (qq) + + + + Quoted string (qx) + Cadeia de caracteres envolvida por aspas (qx) + + + + Quoted string (qr) + Cadeia de caracteres envolvida por aspas (qr) + + + + Quoted string (qw) + Cadeia de caracteres envolvida por aspas (qw) + + + + POD verbatim + POD em formato verbatim + + + + Subroutine prototype + + + + + Format identifier + + + + + Format body + + + + + Double-quoted string (interpolated variable) + + + + + Translation + + + + + Regular expression (interpolated variable) + + + + + Substitution (interpolated variable) + + + + + Backticks (interpolated variable) + + + + + Double-quoted here document (interpolated variable) + + + + + Backtick here document (interpolated variable) + + + + + Quoted string (qq, interpolated variable) + + + + + Quoted string (qx, interpolated variable) + + + + + Quoted string (qr, interpolated variable) + + + + + QsciLexerPostScript + + + Default + Padrão + + + + Comment + Comentário + + + + DSC comment + + + + + DSC comment value + + + + + Number + Número + + + + Name + + + + + Keyword + Palavra Chave + + + + Literal + + + + + Immediately evaluated literal + + + + + Array parenthesis + + + + + Dictionary parenthesis + + + + + Procedure parenthesis + + + + + Text + Texto + + + + Hexadecimal string + + + + + Base85 string + + + + + Bad string character + + + + + QsciLexerProperties + + + Default + Padrão + + + + Comment + Comentário + + + + Section + Seção + + + + Assignment + Atribuição + + + + Default value + Valor Padrão + + + + Key + + + + + QsciLexerPython + + + Default + Padrão + + + + Comment + Comentário + + + + Number + Número + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Keyword + Palavra Chave + + + + Triple single-quoted string + Cadeia de caracteres envolvida por três aspas simples + + + + Triple double-quoted string + Cadeia de caracteres envolvida por três aspas duplas + + + + Class name + Nome da classe + + + + Function or method name + Nome da função ou método + + + + Operator + Operador + + + + Identifier + Identificador + + + + Comment block + Bloco de comentários + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Highlighted identifier + + + + + Decorator + + + + + QsciLexerRuby + + + Default + Padrão + + + + Comment + Comentário + + + + Number + Número + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Keyword + Palavra Chave + + + + Class name + Nome da classe + + + + Function or method name + Nome da função ou método + + + + Operator + Operador + + + + Identifier + Identificador + + + + Error + + + + + POD + POD + + + + Regular expression + Expressão Regular + + + + Global + + + + + Symbol + Símbolo + + + + Module name + + + + + Instance variable + + + + + Class variable + + + + + Backticks + Aspas Invertidas + + + + Data section + Seção de dados + + + + Here document delimiter + + + + + Here document + + + + + %q string + + + + + %Q string + + + + + %x string + + + + + %r string + + + + + %w string + + + + + Demoted keyword + + + + + stdin + + + + + stdout + + + + + stderr + + + + + QsciLexerSQL + + + Default + Padrão + + + + Comment + Comentário + + + + Number + Número + + + + Keyword + Palavra Chave + + + + Single-quoted string + Cadeia de caracteres envolvida por aspas simples + + + + Operator + Operador + + + + Identifier + Identificador + + + + Comment line + Comentário de Linha + + + + JavaDoc style comment + Comentário estilo JavaDoc + + + + Double-quoted string + Cadeia de caracteres envolvida por aspas duplas + + + + SQL*Plus keyword + Palavra chave do SQL*Plus + + + + SQL*Plus prompt + Prompt do SQL*Plus + + + + SQL*Plus comment + Comentário do SQL*Plus + + + + # comment line + Comentário de linha usando # + + + + JavaDoc keyword + Palavra chave JavaDoc + + + + JavaDoc keyword error + Erro de palavra chave do JavaDoc + + + + User defined 1 + Definição de usuário 1 + + + + User defined 2 + Definição de usuário 2 + + + + User defined 3 + Definição de usuário 3 + + + + User defined 4 + Definição de usuário 4 + + + + Quoted identifier + + + + + QsciLexerSpice + + + Default + Padrão + + + + Identifier + Identificador + + + + Command + Comando + + + + Function + + + + + Parameter + + + + + Number + Número + + + + Delimiter + + + + + Value + Valor + + + + Comment + Comentário + + + + QsciLexerTCL + + + Default + Padrão + + + + Comment + Comentário + + + + Comment line + + + + + Number + Número + + + + Quoted keyword + + + + + Quoted string + + + + + Operator + Operador + + + + Identifier + Identificador + + + + Substitution + Substituição + + + + Brace substitution + + + + + Modifier + + + + + Expand keyword + + + + + TCL keyword + + + + + Tk keyword + + + + + iTCL keyword + + + + + Tk command + + + + + User defined 1 + Definição de usuário 1 + + + + User defined 2 + Definição de usuário 2 + + + + User defined 3 + Definição de usuário 3 + + + + User defined 4 + Definição de usuário 4 + + + + Comment box + + + + + Comment block + Bloco de comentários + + + + QsciLexerTeX + + + Default + Padrão + + + + Special + Especial + + + + Group + Grupo + + + + Symbol + Símbolo + + + + Command + Comando + + + + Text + Texto + + + + QsciLexerVHDL + + + Default + Padrão + + + + Comment + Comentário + + + + Comment line + + + + + Number + Número + + + + String + Cadeia de Caracteres + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadeia de caracteres não fechada + + + + Keyword + Palavra Chave + + + + Standard operator + + + + + Attribute + Atributo + + + + Standard function + + + + + Standard package + + + + + Standard type + + + + + User defined + + + + + QsciLexerVerilog + + + Default + Padrão + + + + Comment + Comentário + + + + Line comment + Comentar Linha + + + + Bang comment + + + + + Number + Número + + + + Primary keywords and identifiers + + + + + String + Cadeia de Caracteres + + + + Secondary keywords and identifiers + Identificadores e palavras chave secundárias + + + + System task + + + + + Preprocessor block + + + + + Operator + Operador + + + + Identifier + Identificador + + + + Unclosed string + Cadeia de caracteres não fechada + + + + User defined tasks and identifiers + + + + + QsciLexerYAML + + + Default + Padrão + + + + Comment + Comentário + + + + Identifier + Identificador + + + + Keyword + Palavra Chave + + + + Number + Número + + + + Reference + + + + + Document delimiter + + + + + Text block marker + + + + + Syntax error marker + + + + + Operator + Operador + + + + QsciScintilla + + + &Undo + + + + + &Redo + + + + + Cu&t + + + + + &Copy + + + + + &Paste + + + + + Delete + + + + + Select All + + + + diff --git a/Qt4Qt5/qsciprinter.cpp b/Qt4Qt5/qsciprinter.cpp new file mode 100644 index 0000000..a1da4c7 --- /dev/null +++ b/Qt4Qt5/qsciprinter.cpp @@ -0,0 +1,193 @@ +// This module implements the QsciPrinter class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qsciprinter.h" + +#if !defined(QT_NO_PRINTER) + +#include +#include + +#include + +#include "Qsci/qsciscintillabase.h" + + +// The ctor. +QsciPrinter::QsciPrinter(QPrinter::PrinterMode mode) + : QPrinter(mode), mag(0), wrap(QsciScintilla::WrapWord) +{ +} + + +// The dtor. +QsciPrinter::~QsciPrinter() +{ +} + + +// Format the page before the document text is drawn. +void QsciPrinter::formatPage(QPainter &, bool, QRect &, int) +{ +} + + +// Print a range of lines to a printer. +int QsciPrinter::printRange(QsciScintillaBase *qsb, int from, int to) +{ + // Sanity check. + if (!qsb) + return false; + + // Setup the printing area. + QRect def_area; + + def_area.setX(0); + def_area.setY(0); + + def_area.setWidth(width()); + def_area.setHeight(height()); + + // Get the page range. + int pgFrom, pgTo; + + pgFrom = fromPage(); + pgTo = toPage(); + + // Find the position range. + long startPos, endPos; + + endPos = qsb->SendScintilla(QsciScintillaBase::SCI_GETLENGTH); + + startPos = (from > 0 ? qsb -> SendScintilla(QsciScintillaBase::SCI_POSITIONFROMLINE,from) : 0); + + if (to >= 0) + { + long toPos = qsb -> SendScintilla(QsciScintillaBase::SCI_POSITIONFROMLINE,to + 1); + + if (endPos > toPos) + endPos = toPos; + } + + if (startPos >= endPos) + return false; + + QPainter painter(this); + bool reverse = (pageOrder() == LastPageFirst); + bool needNewPage = false; + + qsb -> SendScintilla(QsciScintillaBase::SCI_SETPRINTMAGNIFICATION,mag); + qsb -> SendScintilla(QsciScintillaBase::SCI_SETPRINTWRAPMODE,wrap); + + for (int i = 1; i <= numCopies(); ++i) + { + // If we are printing in reverse page order then remember the start + // position of each page. + QStack pageStarts; + + int currPage = 1; + long pos = startPos; + + while (pos < endPos) + { + // See if we have finished the requested page range. + if (pgTo > 0 && pgTo < currPage) + break; + + // See if we are going to render this page, or just see how much + // would fit onto it. + bool render = false; + + if (pgFrom == 0 || pgFrom <= currPage) + { + if (reverse) + pageStarts.push(pos); + else + { + render = true; + + if (needNewPage) + { + if (!newPage()) + return false; + } + else + needNewPage = true; + } + } + + QRect area = def_area; + + formatPage(painter,render,area,currPage); + pos = qsb -> SendScintilla(QsciScintillaBase::SCI_FORMATRANGE,render,&painter,area,pos,endPos); + + ++currPage; + } + + // All done if we are printing in normal page order. + if (!reverse) + continue; + + // Now go through each page on the stack and really print it. + while (!pageStarts.isEmpty()) + { + --currPage; + + long ePos = pos; + pos = pageStarts.pop(); + + if (needNewPage) + { + if (!newPage()) + return false; + } + else + needNewPage = true; + + QRect area = def_area; + + formatPage(painter,true,area,currPage); + qsb->SendScintilla(QsciScintillaBase::SCI_FORMATRANGE,true,&painter,area,pos,ePos); + } + } + + return true; +} + + +// Set the print magnification in points. +void QsciPrinter::setMagnification(int magnification) +{ + mag = magnification; +} + + +// Set the line wrap mode. +void QsciPrinter::setWrapMode(QsciScintilla::WrapMode wmode) +{ + wrap = wmode; +} + +#endif diff --git a/Qt4Qt5/qsciscintilla.cpp b/Qt4Qt5/qsciscintilla.cpp new file mode 100644 index 0000000..9e1cbf3 --- /dev/null +++ b/Qt4Qt5/qsciscintilla.cpp @@ -0,0 +1,4346 @@ +// This module implements the "official" high-level API of the Qt port of +// Scintilla. It is modelled on QTextEdit - a method of the same name should +// behave in the same way. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qsciscintilla.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "Qsci/qsciabstractapis.h" +#include "Qsci/qscicommandset.h" +#include "Qsci/qscilexer.h" +#include "Qsci/qscistyle.h" +#include "Qsci/qscistyledtext.h" + + +// Make sure these match the values in Scintilla.h. We don't #include that +// file because it just causes more clashes. +#define KEYWORDSET_MAX 8 +#define MARKER_MAX 31 + +// The list separators for auto-completion and user lists. +const char acSeparator = '\x03'; +const char userSeparator = '\x04'; + +// The default fold margin width. +static const int defaultFoldMarginWidth = 14; + +// The default set of characters that make up a word. +static const char *defaultWordChars = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; + + +// The ctor. +QsciScintilla::QsciScintilla(QWidget *parent) + : QsciScintillaBase(parent), + allocatedMarkers(0), allocatedIndicators(7), oldPos(-1), selText(false), + fold(NoFoldStyle), foldmargin(2), autoInd(false), + braceMode(NoBraceMatch), acSource(AcsNone), acThresh(-1), + wchars(defaultWordChars), call_tips_position(CallTipsBelowText), + call_tips_style(CallTipsNoContext), maxCallTips(-1), + use_single(AcusNever), explicit_fillups(""), fillups_enabled(false) +{ + connect(this,SIGNAL(SCN_MODIFYATTEMPTRO()), + SIGNAL(modificationAttempted())); + + connect(this,SIGNAL(SCN_MODIFIED(int,int,const char *,int,int,int,int,int,int,int)), + SLOT(handleModified(int,int,const char *,int,int,int,int,int,int,int))); + connect(this,SIGNAL(SCN_CALLTIPCLICK(int)), + SLOT(handleCallTipClick(int))); + connect(this,SIGNAL(SCN_CHARADDED(int)), + SLOT(handleCharAdded(int))); + connect(this,SIGNAL(SCN_INDICATORCLICK(int,int)), + SLOT(handleIndicatorClick(int,int))); + connect(this,SIGNAL(SCN_INDICATORRELEASE(int,int)), + SLOT(handleIndicatorRelease(int,int))); + connect(this,SIGNAL(SCN_MARGINCLICK(int,int,int)), + SLOT(handleMarginClick(int,int,int))); + connect(this,SIGNAL(SCN_SAVEPOINTREACHED()), + SLOT(handleSavePointReached())); + connect(this,SIGNAL(SCN_SAVEPOINTLEFT()), + SLOT(handleSavePointLeft())); + connect(this,SIGNAL(SCN_UPDATEUI(int)), + SLOT(handleUpdateUI(int))); + connect(this,SIGNAL(QSCN_SELCHANGED(bool)), + SLOT(handleSelectionChanged(bool))); + connect(this,SIGNAL(SCN_AUTOCSELECTION(const char *,int)), + SLOT(handleAutoCompletionSelection())); + connect(this,SIGNAL(SCN_USERLISTSELECTION(const char *,int)), + SLOT(handleUserListSelection(const char *,int))); + + // Set the default font. + setFont(QApplication::font()); + + // Set the default fore and background colours. + QPalette pal = QApplication::palette(); + setColor(pal.text().color()); + setPaper(pal.base().color()); + setSelectionForegroundColor(pal.highlightedText().color()); + setSelectionBackgroundColor(pal.highlight().color()); + +#if defined(Q_OS_WIN) + setEolMode(EolWindows); +#else + // Note that EolMac is pre-OS/X. + setEolMode(EolUnix); +#endif + + // Capturing the mouse seems to cause problems on multi-head systems. Qt + // should do the right thing anyway. + SendScintilla(SCI_SETMOUSEDOWNCAPTURES, 0UL); + + setMatchedBraceForegroundColor(Qt::blue); + setUnmatchedBraceForegroundColor(Qt::red); + + setAnnotationDisplay(AnnotationStandard); + setLexer(); + + // Set the visible policy. These are the same as SciTE's defaults + // which, presumably, are sensible. + SendScintilla(SCI_SETVISIBLEPOLICY, VISIBLE_STRICT | VISIBLE_SLOP, 4); + + // The default behaviour is unexpected. + SendScintilla(SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR, + SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE); + + // Create the standard command set. + stdCmds = new QsciCommandSet(this); + + doc.display(this,0); +} + + +// The dtor. +QsciScintilla::~QsciScintilla() +{ + // Detach any current lexer. + detachLexer(); + + doc.undisplay(this); + delete stdCmds; +} + + +// Return the current text colour. +QColor QsciScintilla::color() const +{ + return nl_text_colour; +} + + +// Set the text colour. +void QsciScintilla::setColor(const QColor &c) +{ + if (lex.isNull()) + { + // Assume style 0 applies to everything so that we don't need to use + // SCI_STYLECLEARALL which clears everything. + SendScintilla(SCI_STYLESETFORE, 0, c); + nl_text_colour = c; + } +} + + +// Return the overwrite mode. +bool QsciScintilla::overwriteMode() const +{ + return SendScintilla(SCI_GETOVERTYPE); +} + + +// Set the overwrite mode. +void QsciScintilla::setOverwriteMode(bool overwrite) +{ + SendScintilla(SCI_SETOVERTYPE, overwrite); +} + + +// Return the current paper colour. +QColor QsciScintilla::paper() const +{ + return nl_paper_colour; +} + + +// Set the paper colour. +void QsciScintilla::setPaper(const QColor &c) +{ + if (lex.isNull()) + { + // Assume style 0 applies to everything so that we don't need to use + // SCI_STYLECLEARALL which clears everything. We still have to set the + // default style as well for the background without any text. + SendScintilla(SCI_STYLESETBACK, 0, c); + SendScintilla(SCI_STYLESETBACK, STYLE_DEFAULT, c); + nl_paper_colour = c; + } +} + + +// Set the default font. +void QsciScintilla::setFont(const QFont &f) +{ + if (lex.isNull()) + { + // Assume style 0 applies to everything so that we don't need to use + // SCI_STYLECLEARALL which clears everything. + setStylesFont(f, 0); + QWidget::setFont(f); + } +} + + +// Enable/disable auto-indent. +void QsciScintilla::setAutoIndent(bool autoindent) +{ + autoInd = autoindent; +} + + +// Set the brace matching mode. +void QsciScintilla::setBraceMatching(BraceMatch bm) +{ + braceMode = bm; +} + + +// Handle the addition of a character. +void QsciScintilla::handleCharAdded(int ch) +{ + // Ignore if there is a selection. + long pos = SendScintilla(SCI_GETSELECTIONSTART); + + if (pos != SendScintilla(SCI_GETSELECTIONEND) || pos == 0) + return; + + // If auto-completion is already active then see if this character is a + // start character. If it is then create a new list which will be a subset + // of the current one. The case where it isn't a start character seems to + // be handled correctly elsewhere. + if (isListActive()) + { + if (isStartChar(ch)) + { + cancelList(); + startAutoCompletion(acSource, false, use_single == AcusAlways); + } + + return; + } + + // Handle call tips. + if (call_tips_style != CallTipsNone && !lex.isNull() && strchr("(),", ch) != NULL) + callTip(); + + // Handle auto-indentation. + if (autoInd) + if (lex.isNull() || (lex->autoIndentStyle() & AiMaintain)) + maintainIndentation(ch, pos); + else + autoIndentation(ch, pos); + + // See if we might want to start auto-completion. + if (!isCallTipActive() && acSource != AcsNone) + if (isStartChar(ch)) + startAutoCompletion(acSource, false, use_single == AcusAlways); + else if (acThresh >= 1 && isWordCharacter(ch)) + startAutoCompletion(acSource, true, use_single == AcusAlways); +} + + +// See if a call tip is active. +bool QsciScintilla::isCallTipActive() const +{ + return SendScintilla(SCI_CALLTIPACTIVE); +} + + +// Handle a possible change to any current call tip. +void QsciScintilla::callTip() +{ + QsciAbstractAPIs *apis = lex->apis(); + + if (!apis) + return; + + int pos, commas = 0; + bool found = false; + char ch; + + pos = SendScintilla(SCI_GETCURRENTPOS); + + // Move backwards through the line looking for the start of the current + // call tip and working out which argument it is. + while ((ch = getCharacter(pos)) != '\0') + { + if (ch == ',') + ++commas; + else if (ch == ')') + { + int depth = 1; + + // Ignore everything back to the start of the corresponding + // parenthesis. + while ((ch = getCharacter(pos)) != '\0') + { + if (ch == ')') + ++depth; + else if (ch == '(' && --depth == 0) + break; + } + } + else if (ch == '(') + { + found = true; + break; + } + } + + // Cancel any existing call tip. + SendScintilla(SCI_CALLTIPCANCEL); + + // Done if there is no new call tip to set. + if (!found) + return; + + QStringList context = apiContext(pos, pos, ctPos); + + if (context.isEmpty()) + return; + + // The last word is complete, not partial. + context << QString(); + + ct_cursor = 0; + ct_shifts.clear(); + ct_entries = apis->callTips(context, commas, call_tips_style, ct_shifts); + + int nr_entries = ct_entries.count(); + + if (nr_entries == 0) + return; + + if (maxCallTips > 0 && maxCallTips < nr_entries) + { + ct_entries = ct_entries.mid(0, maxCallTips); + nr_entries = maxCallTips; + } + + int shift; + QString ct; + + int nr_shifts = ct_shifts.count(); + + if (maxCallTips < 0 && nr_entries > 1) + { + shift = (nr_shifts > 0 ? ct_shifts.first() : 0); + ct = ct_entries[0]; + ct.prepend('\002'); + } + else + { + if (nr_shifts > nr_entries) + nr_shifts = nr_entries; + + // Find the biggest shift. + shift = 0; + + for (int i = 0; i < nr_shifts; ++i) + { + int sh = ct_shifts[i]; + + if (shift < sh) + shift = sh; + } + + ct = ct_entries.join("\n"); + } + + QByteArray ct_ba = ct.toLatin1(); + const char *cts = ct_ba.data(); + + SendScintilla(SCI_CALLTIPSHOW, adjustedCallTipPosition(shift), cts); + + // Done if there is more than one call tip. + if (nr_entries > 1) + return; + + // Highlight the current argument. + const char *astart; + + if (commas == 0) + astart = strchr(cts, '('); + else + for (astart = strchr(cts, ','); astart && --commas > 0; astart = strchr(astart + 1, ',')) + ; + + if (!astart || !*++astart) + return; + + // The end is at the next comma or unmatched closing parenthesis. + const char *aend; + int depth = 0; + + for (aend = astart; *aend; ++aend) + { + char ch = *aend; + + if (ch == ',' && depth == 0) + break; + else if (ch == '(') + ++depth; + else if (ch == ')') + { + if (depth == 0) + break; + + --depth; + } + } + + if (astart != aend) + SendScintilla(SCI_CALLTIPSETHLT, astart - cts, aend - cts); +} + + +// Handle a call tip click. +void QsciScintilla::handleCallTipClick(int dir) +{ + int nr_entries = ct_entries.count(); + + // Move the cursor while bounds checking. + if (dir == 1) + { + if (ct_cursor - 1 < 0) + return; + + --ct_cursor; + } + else if (dir == 2) + { + if (ct_cursor + 1 >= nr_entries) + return; + + ++ct_cursor; + } + else + return; + + int shift = (ct_shifts.count() > ct_cursor ? ct_shifts[ct_cursor] : 0); + QString ct = ct_entries[ct_cursor]; + + // Add the arrows. + if (ct_cursor < nr_entries - 1) + ct.prepend('\002'); + + if (ct_cursor > 0) + ct.prepend('\001'); + + SendScintilla(SCI_CALLTIPSHOW, adjustedCallTipPosition(shift), ct.toLatin1().data()); +} + + +// Shift the position of the call tip (to take any context into account) but +// don't go before the start of the line. +int QsciScintilla::adjustedCallTipPosition(int ctshift) const +{ + int ct = ctPos; + + if (ctshift) + { + int ctmin = SendScintilla(SCI_POSITIONFROMLINE, SendScintilla(SCI_LINEFROMPOSITION, ct)); + + if (ct - ctshift < ctmin) + ct = ctmin; + } + + return ct; +} + + +// Return the list of words that make up the context preceding the given +// position. The list will only have more than one element if there is a lexer +// set and it defines start strings. If so, then the last element might be +// empty if a start string has just been typed. On return pos is at the start +// of the context. +QStringList QsciScintilla::apiContext(int pos, int &context_start, + int &last_word_start) +{ + enum { + Either, + Separator, + Word + }; + + QStringList words; + int good_pos = pos, expecting = Either; + + last_word_start = -1; + + while (pos > 0) + { + if (getSeparator(pos)) + { + if (expecting == Either) + words.prepend(QString()); + else if (expecting == Word) + break; + + good_pos = pos; + expecting = Word; + } + else + { + QString word = getWord(pos); + + if (word.isEmpty() || expecting == Separator) + break; + + words.prepend(word); + good_pos = pos; + expecting = Separator; + + // Return the position of the start of the last word if required. + if (last_word_start < 0) + last_word_start = pos; + } + + // Strip any preceding spaces (mainly around operators). + char ch; + + while ((ch = getCharacter(pos)) != '\0') + { + // This is the same definition of space that Scintilla uses. + if (ch != ' ' && (ch < 0x09 || ch > 0x0d)) + { + ++pos; + break; + } + } + } + + // A valid sequence always starts with a word and so should be expecting a + // separator. + if (expecting != Separator) + words.clear(); + + context_start = good_pos; + + return words; +} + + +// Try and get a lexer's word separator from the text before the current +// position. Return true if one was found and adjust the position accordingly. +bool QsciScintilla::getSeparator(int &pos) const +{ + int opos = pos; + + // Go through each separator. + for (int i = 0; i < wseps.count(); ++i) + { + const QString &ws = wseps[i]; + + // Work backwards. + uint l; + + for (l = ws.length(); l; --l) + { + char ch = getCharacter(pos); + + if (ch == '\0' || ws.at(l - 1) != ch) + break; + } + + if (!l) + return true; + + // Reset for the next separator. + pos = opos; + } + + return false; +} + + +// Try and get a word from the text before the current position. Return the +// word if one was found and adjust the position accordingly. +QString QsciScintilla::getWord(int &pos) const +{ + QString word; + bool numeric = true; + char ch; + + while ((ch = getCharacter(pos)) != '\0') + { + if (!isWordCharacter(ch)) + { + ++pos; + break; + } + + if (ch < '0' || ch > '9') + numeric = false; + + word.prepend(ch); + } + + // We don't auto-complete numbers. + if (numeric) + word.truncate(0); + + return word; +} + + +// Get the "next" character (ie. the one before the current position) in the +// current line. The character will be '\0' if there are no more. +char QsciScintilla::getCharacter(int &pos) const +{ + if (pos <= 0) + return '\0'; + + char ch = SendScintilla(SCI_GETCHARAT, --pos); + + // Don't go past the end of the previous line. + if (ch == '\n' || ch == '\r') + { + ++pos; + return '\0'; + } + + return ch; +} + + +// See if a character is an auto-completion start character, ie. the last +// character of a word separator. +bool QsciScintilla::isStartChar(char ch) const +{ + QString s = QChar(ch); + + for (int i = 0; i < wseps.count(); ++i) + if (wseps[i].endsWith(s)) + return true; + + return false; +} + + +// Possibly start auto-completion. +void QsciScintilla::startAutoCompletion(AutoCompletionSource acs, + bool checkThresh, bool choose_single) +{ + int start, ignore; + QStringList context = apiContext(SendScintilla(SCI_GETCURRENTPOS), start, + ignore); + + if (context.isEmpty()) + return; + + // Get the last word's raw data and length. + ScintillaBytes s = textAsBytes(context.last()); + const char *last_data = ScintillaBytesConstData(s); + int last_len = s.length(); + + if (checkThresh && last_len < acThresh) + return; + + // Generate the string representing the valid words to select from. + QStringList wlist; + + if ((acs == AcsAll || acs == AcsAPIs) && !lex.isNull()) + { + QsciAbstractAPIs *apis = lex->apis(); + + if (apis) + apis->updateAutoCompletionList(context, wlist); + } + + if (acs == AcsAll || acs == AcsDocument) + { + int sflags = SCFIND_WORDSTART; + + if (!SendScintilla(SCI_AUTOCGETIGNORECASE)) + sflags |= SCFIND_MATCHCASE; + + SendScintilla(SCI_SETSEARCHFLAGS, sflags); + + int pos = 0; + int dlen = SendScintilla(SCI_GETLENGTH); + int caret = SendScintilla(SCI_GETCURRENTPOS); + int clen = caret - start; + char *orig_context = new char[clen + 1]; + + SendScintilla(SCI_GETTEXTRANGE, start, caret, orig_context); + + for (;;) + { + int fstart; + + SendScintilla(SCI_SETTARGETSTART, pos); + SendScintilla(SCI_SETTARGETEND, dlen); + + if ((fstart = SendScintilla(SCI_SEARCHINTARGET, clen, orig_context)) < 0) + break; + + // Move past the root part. + pos = fstart + clen; + + // Skip if this is the context we are auto-completing. + if (pos == caret) + continue; + + // Get the rest of this word. + QString w = last_data; + + while (pos < dlen) + { + char ch = SendScintilla(SCI_GETCHARAT, pos); + + if (!isWordCharacter(ch)) + break; + + w += ch; + ++pos; + } + + // Add the word if it isn't already there. + if (!w.isEmpty()) + { + bool keep; + + // If there are APIs then check if the word is already present + // as an API word (i.e. with a trailing space). + if (acs == AcsAll) + { + QString api_w = w; + api_w.append(' '); + + keep = !wlist.contains(api_w); + } + else + { + keep = true; + } + + if (keep && !wlist.contains(w)) + wlist.append(w); + } + } + + delete []orig_context; + } + + if (wlist.isEmpty()) + return; + + wlist.sort(); + + SendScintilla(SCI_AUTOCSETCHOOSESINGLE, choose_single); + SendScintilla(SCI_AUTOCSETSEPARATOR, acSeparator); + + ScintillaBytes wlist_s = textAsBytes(wlist.join(QChar(acSeparator))); + SendScintilla(SCI_AUTOCSHOW, last_len, ScintillaBytesConstData(wlist_s)); +} + + +// Maintain the indentation of the previous line. +void QsciScintilla::maintainIndentation(char ch, long pos) +{ + if (ch != '\r' && ch != '\n') + return; + + int curr_line = SendScintilla(SCI_LINEFROMPOSITION, pos); + + // Get the indentation of the preceding non-zero length line. + int ind = 0; + + for (int line = curr_line - 1; line >= 0; --line) + { + if (SendScintilla(SCI_GETLINEENDPOSITION, line) > + SendScintilla(SCI_POSITIONFROMLINE, line)) + { + ind = indentation(line); + break; + } + } + + if (ind > 0) + autoIndentLine(pos, curr_line, ind); +} + + +// Implement auto-indentation. +void QsciScintilla::autoIndentation(char ch, long pos) +{ + int curr_line = SendScintilla(SCI_LINEFROMPOSITION, pos); + int ind_width = indentWidth(); + long curr_line_start = SendScintilla(SCI_POSITIONFROMLINE, curr_line); + + const char *block_start = lex->blockStart(); + bool start_single = (block_start && qstrlen(block_start) == 1); + + const char *block_end = lex->blockEnd(); + bool end_single = (block_end && qstrlen(block_end) == 1); + + if (end_single && block_end[0] == ch) + { + if (!(lex->autoIndentStyle() & AiClosing) && rangeIsWhitespace(curr_line_start, pos - 1)) + autoIndentLine(pos, curr_line, blockIndent(curr_line - 1) - ind_width); + } + else if (start_single && block_start[0] == ch) + { + // De-indent if we have already indented because the previous line was + // a start of block keyword. + if (!(lex->autoIndentStyle() & AiOpening) && curr_line > 0 && getIndentState(curr_line - 1) == isKeywordStart && rangeIsWhitespace(curr_line_start, pos - 1)) + autoIndentLine(pos, curr_line, blockIndent(curr_line - 1) - ind_width); + } + else if (ch == '\r' || ch == '\n') + { + // Don't auto-indent the line (ie. preserve its existing indentation) + // if we have inserted a new line above by pressing return at the start + // of this line - in other words, if the previous line is empty. + long prev_line_length = SendScintilla(SCI_GETLINEENDPOSITION, curr_line - 1) - SendScintilla(SCI_POSITIONFROMLINE, curr_line - 1); + + if (prev_line_length != 0) + autoIndentLine(pos, curr_line, blockIndent(curr_line - 1)); + } +} + + +// Set the indentation for a line. +void QsciScintilla::autoIndentLine(long pos, int line, int indent) +{ + if (indent < 0) + return; + + long pos_before = SendScintilla(SCI_GETLINEINDENTPOSITION, line); + SendScintilla(SCI_SETLINEINDENTATION, line, indent); + long pos_after = SendScintilla(SCI_GETLINEINDENTPOSITION, line); + long new_pos = -1; + + if (pos_after > pos_before) + new_pos = pos + (pos_after - pos_before); + else if (pos_after < pos_before && pos >= pos_after) + if (pos >= pos_before) + new_pos = pos + (pos_after - pos_before); + else + new_pos = pos_after; + + if (new_pos >= 0) + SendScintilla(SCI_SETSEL, new_pos, new_pos); +} + + +// Return the indentation of the block defined by the given line (or something +// significant before). +int QsciScintilla::blockIndent(int line) +{ + if (line < 0) + return 0; + + // Handle the trvial case. + if (!lex->blockStartKeyword() && !lex->blockStart() && !lex->blockEnd()) + return indentation(line); + + int line_limit = line - lex->blockLookback(); + + if (line_limit < 0) + line_limit = 0; + + for (int l = line; l >= line_limit; --l) + { + IndentState istate = getIndentState(l); + + if (istate != isNone) + { + int ind_width = indentWidth(); + int ind = indentation(l); + + if (istate == isBlockStart) + { + if (!(lex -> autoIndentStyle() & AiOpening)) + ind += ind_width; + } + else if (istate == isBlockEnd) + { + if (lex -> autoIndentStyle() & AiClosing) + ind -= ind_width; + + if (ind < 0) + ind = 0; + } + else if (line == l) + ind += ind_width; + + return ind; + } + } + + return indentation(line); +} + + +// Return true if all characters starting at spos up to, but not including +// epos, are spaces or tabs. +bool QsciScintilla::rangeIsWhitespace(long spos, long epos) +{ + while (spos < epos) + { + char ch = SendScintilla(SCI_GETCHARAT, spos); + + if (ch != ' ' && ch != '\t') + return false; + + ++spos; + } + + return true; +} + + +// Returns the indentation state of a line. +QsciScintilla::IndentState QsciScintilla::getIndentState(int line) +{ + IndentState istate; + + // Get the styled text. + long spos = SendScintilla(SCI_POSITIONFROMLINE, line); + long epos = SendScintilla(SCI_POSITIONFROMLINE, line + 1); + + char *text = new char[(epos - spos + 1) * 2]; + + SendScintilla(SCI_GETSTYLEDTEXT, spos, epos, text); + + int style, bstart_off, bend_off; + + // Block start/end takes precedence over keywords. + const char *bstart_words = lex->blockStart(&style); + bstart_off = findStyledWord(text, style, bstart_words); + + const char *bend_words = lex->blockEnd(&style); + bend_off = findStyledWord(text, style, bend_words); + + // If there is a block start but no block end characters then ignore it + // unless the block start is the last significant thing on the line, ie. + // assume Python-like blocking. + if (bstart_off >= 0 && !bend_words) + for (int i = bstart_off * 2; text[i] != '\0'; i += 2) + if (!QChar(text[i]).isSpace()) + return isNone; + + if (bstart_off > bend_off) + istate = isBlockStart; + else if (bend_off > bstart_off) + istate = isBlockEnd; + else + { + const char *words = lex->blockStartKeyword(&style); + + istate = (findStyledWord(text,style,words) >= 0) ? isKeywordStart : isNone; + } + + delete[] text; + + return istate; +} + + +// text is a pointer to some styled text (ie. a character byte followed by a +// style byte). style is a style number. words is a space separated list of +// words. Returns the position in the text immediately after the last one of +// the words with the style. The reason we are after the last, and not the +// first, occurance is that we are looking for words that start and end a block +// where the latest one is the most significant. +int QsciScintilla::findStyledWord(const char *text, int style, + const char *words) +{ + if (!words) + return -1; + + // Find the range of text with the style we are looking for. + const char *stext; + + for (stext = text; stext[1] != style; stext += 2) + if (stext[0] == '\0') + return -1; + + // Move to the last character. + const char *etext = stext; + + while (etext[2] != '\0') + etext += 2; + + // Backtrack until we find the style. There will be one. + while (etext[1] != style) + etext -= 2; + + // Look for each word in turn. + while (words[0] != '\0') + { + // Find the end of the word. + const char *eword = words; + + while (eword[1] != ' ' && eword[1] != '\0') + ++eword; + + // Now search the text backwards. + const char *wp = eword; + + for (const char *tp = etext; tp >= stext; tp -= 2) + { + if (tp[0] != wp[0] || tp[1] != style) + { + // Reset the search. + wp = eword; + continue; + } + + // See if all the word has matched. + if (wp-- == words) + return ((tp - text) / 2) + (eword - words) + 1; + } + + // Move to the start of the next word if there is one. + words = eword + 1; + + if (words[0] == ' ') + ++words; + } + + return -1; +} + + +// Return true if the code page is UTF8. +bool QsciScintilla::isUtf8() const +{ + return (SendScintilla(SCI_GETCODEPAGE) == SC_CP_UTF8); +} + + +// Set the code page. +void QsciScintilla::setUtf8(bool cp) +{ + SendScintilla(SCI_SETCODEPAGE, (cp ? SC_CP_UTF8 : 0)); +} + + +// Return the end-of-line mode. +QsciScintilla::EolMode QsciScintilla::eolMode() const +{ + return (EolMode)SendScintilla(SCI_GETEOLMODE); +} + + +// Set the end-of-line mode. +void QsciScintilla::setEolMode(EolMode mode) +{ + SendScintilla(SCI_SETEOLMODE, mode); +} + + +// Convert the end-of-lines to a particular mode. +void QsciScintilla::convertEols(EolMode mode) +{ + SendScintilla(SCI_CONVERTEOLS, mode); +} + + +// Return the edge colour. +QColor QsciScintilla::edgeColor() const +{ + long res = SendScintilla(SCI_GETEDGECOLOUR); + + return QColor((int)res, ((int)(res >> 8)) & 0x00ff, ((int)(res >> 16)) & 0x00ff); +} + + +// Set the edge colour. +void QsciScintilla::setEdgeColor(const QColor &col) +{ + SendScintilla(SCI_SETEDGECOLOUR, col); +} + + +// Return the edge column. +int QsciScintilla::edgeColumn() const +{ + return SendScintilla(SCI_GETEDGECOLUMN); +} + + +// Set the edge column. +void QsciScintilla::setEdgeColumn(int colnr) +{ + SendScintilla(SCI_SETEDGECOLUMN, colnr); +} + + +// Return the edge mode. +QsciScintilla::EdgeMode QsciScintilla::edgeMode() const +{ + return (EdgeMode)SendScintilla(SCI_GETEDGEMODE); +} + + +// Set the edge mode. +void QsciScintilla::setEdgeMode(EdgeMode mode) +{ + SendScintilla(SCI_SETEDGEMODE, mode); +} + + +// Return the end-of-line visibility. +bool QsciScintilla::eolVisibility() const +{ + return SendScintilla(SCI_GETVIEWEOL); +} + + +// Set the end-of-line visibility. +void QsciScintilla::setEolVisibility(bool visible) +{ + SendScintilla(SCI_SETVIEWEOL, visible); +} + + +// Return the extra ascent. +int QsciScintilla::extraAscent() const +{ + return SendScintilla(SCI_GETEXTRAASCENT); +} + + +// Set the extra ascent. +void QsciScintilla::setExtraAscent(int extra) +{ + SendScintilla(SCI_SETEXTRAASCENT, extra); +} + + +// Return the extra descent. +int QsciScintilla::extraDescent() const +{ + return SendScintilla(SCI_GETEXTRADESCENT); +} + + +// Set the extra descent. +void QsciScintilla::setExtraDescent(int extra) +{ + SendScintilla(SCI_SETEXTRADESCENT, extra); +} + + +// Return the whitespace size. +int QsciScintilla::whitespaceSize() const +{ + return SendScintilla(SCI_GETWHITESPACESIZE); +} + + +// Set the whitespace size. +void QsciScintilla::setWhitespaceSize(int size) +{ + SendScintilla(SCI_SETWHITESPACESIZE, size); +} + + +// Set the whitespace background colour. +void QsciScintilla::setWhitespaceBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_SETWHITESPACEBACK, col.isValid(), col); +} + + +// Set the whitespace foreground colour. +void QsciScintilla::setWhitespaceForegroundColor(const QColor &col) +{ + SendScintilla(SCI_SETWHITESPACEFORE, col.isValid(), col); +} + + +// Return the whitespace visibility. +QsciScintilla::WhitespaceVisibility QsciScintilla::whitespaceVisibility() const +{ + return (WhitespaceVisibility)SendScintilla(SCI_GETVIEWWS); +} + + +// Set the whitespace visibility. +void QsciScintilla::setWhitespaceVisibility(WhitespaceVisibility mode) +{ + SendScintilla(SCI_SETVIEWWS, mode); +} + + +// Return the line wrap mode. +QsciScintilla::WrapMode QsciScintilla::wrapMode() const +{ + return (WrapMode)SendScintilla(SCI_GETWRAPMODE); +} + + +// Set the line wrap mode. +void QsciScintilla::setWrapMode(WrapMode mode) +{ + SendScintilla(SCI_SETLAYOUTCACHE, + (mode == WrapNone ? SC_CACHE_CARET : SC_CACHE_DOCUMENT)); + SendScintilla(SCI_SETWRAPMODE, mode); +} + + +// Return the line wrap indent mode. +QsciScintilla::WrapIndentMode QsciScintilla::wrapIndentMode() const +{ + return (WrapIndentMode)SendScintilla(SCI_GETWRAPINDENTMODE); +} + + +// Set the line wrap indent mode. +void QsciScintilla::setWrapIndentMode(WrapIndentMode mode) +{ + SendScintilla(SCI_SETWRAPINDENTMODE, mode); +} + + +// Set the line wrap visual flags. +void QsciScintilla::setWrapVisualFlags(WrapVisualFlag endFlag, + WrapVisualFlag startFlag, int indent) +{ + int flags = SC_WRAPVISUALFLAG_NONE; + int loc = SC_WRAPVISUALFLAGLOC_DEFAULT; + + switch (endFlag) + { + case WrapFlagByText: + flags |= SC_WRAPVISUALFLAG_END; + loc |= SC_WRAPVISUALFLAGLOC_END_BY_TEXT; + break; + + case WrapFlagByBorder: + flags |= SC_WRAPVISUALFLAG_END; + break; + + case WrapFlagInMargin: + flags |= SC_WRAPVISUALFLAG_MARGIN; + break; + } + + switch (startFlag) + { + case WrapFlagByText: + flags |= SC_WRAPVISUALFLAG_START; + loc |= SC_WRAPVISUALFLAGLOC_START_BY_TEXT; + break; + + case WrapFlagByBorder: + flags |= SC_WRAPVISUALFLAG_START; + break; + + case WrapFlagInMargin: + flags |= SC_WRAPVISUALFLAG_MARGIN; + break; + } + + SendScintilla(SCI_SETWRAPVISUALFLAGS, flags); + SendScintilla(SCI_SETWRAPVISUALFLAGSLOCATION, loc); + SendScintilla(SCI_SETWRAPSTARTINDENT, indent); +} + + +// Set the folding style. +void QsciScintilla::setFolding(FoldStyle folding, int margin) +{ + fold = folding; + foldmargin = margin; + + if (folding == NoFoldStyle) + { + SendScintilla(SCI_SETMARGINWIDTHN, margin, 0L); + return; + } + + int mask = SendScintilla(SCI_GETMODEVENTMASK); + SendScintilla(SCI_SETMODEVENTMASK, mask | SC_MOD_CHANGEFOLD); + + SendScintilla(SCI_SETFOLDFLAGS, SC_FOLDFLAG_LINEAFTER_CONTRACTED); + + SendScintilla(SCI_SETMARGINTYPEN, margin, (long)SC_MARGIN_SYMBOL); + SendScintilla(SCI_SETMARGINMASKN, margin, SC_MASK_FOLDERS); + SendScintilla(SCI_SETMARGINSENSITIVEN, margin, 1); + + // Set the marker symbols to use. + switch (folding) + { + case PlainFoldStyle: + setFoldMarker(SC_MARKNUM_FOLDEROPEN, SC_MARK_MINUS); + setFoldMarker(SC_MARKNUM_FOLDER, SC_MARK_PLUS); + setFoldMarker(SC_MARKNUM_FOLDERSUB); + setFoldMarker(SC_MARKNUM_FOLDERTAIL); + setFoldMarker(SC_MARKNUM_FOLDEREND); + setFoldMarker(SC_MARKNUM_FOLDEROPENMID); + setFoldMarker(SC_MARKNUM_FOLDERMIDTAIL); + break; + + case CircledFoldStyle: + setFoldMarker(SC_MARKNUM_FOLDEROPEN, SC_MARK_CIRCLEMINUS); + setFoldMarker(SC_MARKNUM_FOLDER, SC_MARK_CIRCLEPLUS); + setFoldMarker(SC_MARKNUM_FOLDERSUB); + setFoldMarker(SC_MARKNUM_FOLDERTAIL); + setFoldMarker(SC_MARKNUM_FOLDEREND); + setFoldMarker(SC_MARKNUM_FOLDEROPENMID); + setFoldMarker(SC_MARKNUM_FOLDERMIDTAIL); + break; + + case BoxedFoldStyle: + setFoldMarker(SC_MARKNUM_FOLDEROPEN, SC_MARK_BOXMINUS); + setFoldMarker(SC_MARKNUM_FOLDER, SC_MARK_BOXPLUS); + setFoldMarker(SC_MARKNUM_FOLDERSUB); + setFoldMarker(SC_MARKNUM_FOLDERTAIL); + setFoldMarker(SC_MARKNUM_FOLDEREND); + setFoldMarker(SC_MARKNUM_FOLDEROPENMID); + setFoldMarker(SC_MARKNUM_FOLDERMIDTAIL); + break; + + case CircledTreeFoldStyle: + setFoldMarker(SC_MARKNUM_FOLDEROPEN, SC_MARK_CIRCLEMINUS); + setFoldMarker(SC_MARKNUM_FOLDER, SC_MARK_CIRCLEPLUS); + setFoldMarker(SC_MARKNUM_FOLDERSUB, SC_MARK_VLINE); + setFoldMarker(SC_MARKNUM_FOLDERTAIL, SC_MARK_LCORNERCURVE); + setFoldMarker(SC_MARKNUM_FOLDEREND, SC_MARK_CIRCLEPLUSCONNECTED); + setFoldMarker(SC_MARKNUM_FOLDEROPENMID, SC_MARK_CIRCLEMINUSCONNECTED); + setFoldMarker(SC_MARKNUM_FOLDERMIDTAIL, SC_MARK_TCORNERCURVE); + break; + + case BoxedTreeFoldStyle: + setFoldMarker(SC_MARKNUM_FOLDEROPEN, SC_MARK_BOXMINUS); + setFoldMarker(SC_MARKNUM_FOLDER, SC_MARK_BOXPLUS); + setFoldMarker(SC_MARKNUM_FOLDERSUB, SC_MARK_VLINE); + setFoldMarker(SC_MARKNUM_FOLDERTAIL, SC_MARK_LCORNER); + setFoldMarker(SC_MARKNUM_FOLDEREND, SC_MARK_BOXPLUSCONNECTED); + setFoldMarker(SC_MARKNUM_FOLDEROPENMID, SC_MARK_BOXMINUSCONNECTED); + setFoldMarker(SC_MARKNUM_FOLDERMIDTAIL, SC_MARK_TCORNER); + break; + } + + SendScintilla(SCI_SETMARGINWIDTHN, margin, defaultFoldMarginWidth); +} + + +// Clear all current folds. +void QsciScintilla::clearFolds() +{ + recolor(); + + int maxLine = SendScintilla(SCI_GETLINECOUNT); + + for (int line = 0; line < maxLine; line++) + { + int level = SendScintilla(SCI_GETFOLDLEVEL, line); + + if (level & SC_FOLDLEVELHEADERFLAG) + { + SendScintilla(SCI_SETFOLDEXPANDED, line, 1); + foldExpand(line, true, false, 0, level); + line--; + } + } +} + + +// Set up a folder marker. +void QsciScintilla::setFoldMarker(int marknr, int mark) +{ + SendScintilla(SCI_MARKERDEFINE, marknr, mark); + + if (mark != SC_MARK_EMPTY) + { + SendScintilla(SCI_MARKERSETFORE, marknr, QColor(Qt::white)); + SendScintilla(SCI_MARKERSETBACK, marknr, QColor(Qt::black)); + } +} + + +// Handle a click in the fold margin. This is mostly taken from SciTE. +void QsciScintilla::foldClick(int lineClick, int bstate) +{ + bool shift = bstate & Qt::ShiftModifier; + bool ctrl = bstate & Qt::ControlModifier; + + if (shift && ctrl) + { + foldAll(); + return; + } + + int levelClick = SendScintilla(SCI_GETFOLDLEVEL, lineClick); + + if (levelClick & SC_FOLDLEVELHEADERFLAG) + { + if (shift) + { + // Ensure all children are visible. + SendScintilla(SCI_SETFOLDEXPANDED, lineClick, 1); + foldExpand(lineClick, true, true, 100, levelClick); + } + else if (ctrl) + { + if (SendScintilla(SCI_GETFOLDEXPANDED, lineClick)) + { + // Contract this line and all its children. + SendScintilla(SCI_SETFOLDEXPANDED, lineClick, 0L); + foldExpand(lineClick, false, true, 0, levelClick); + } + else + { + // Expand this line and all its children. + SendScintilla(SCI_SETFOLDEXPANDED, lineClick, 1); + foldExpand(lineClick, true, true, 100, levelClick); + } + } + else + { + // Toggle this line. + SendScintilla(SCI_TOGGLEFOLD, lineClick); + } + } +} + + +// Do the hard work of hiding and showing lines. This is mostly taken from +// SciTE. +void QsciScintilla::foldExpand(int &line, bool doExpand, bool force, + int visLevels, int level) +{ + int lineMaxSubord = SendScintilla(SCI_GETLASTCHILD, line, + level & SC_FOLDLEVELNUMBERMASK); + + line++; + + while (line <= lineMaxSubord) + { + if (force) + { + if (visLevels > 0) + SendScintilla(SCI_SHOWLINES, line, line); + else + SendScintilla(SCI_HIDELINES, line, line); + } + else if (doExpand) + SendScintilla(SCI_SHOWLINES, line, line); + + int levelLine = level; + + if (levelLine == -1) + levelLine = SendScintilla(SCI_GETFOLDLEVEL, line); + + if (levelLine & SC_FOLDLEVELHEADERFLAG) + { + if (force) + { + if (visLevels > 1) + SendScintilla(SCI_SETFOLDEXPANDED, line, 1); + else + SendScintilla(SCI_SETFOLDEXPANDED, line, 0L); + + foldExpand(line, doExpand, force, visLevels - 1); + } + else if (doExpand) + { + if (!SendScintilla(SCI_GETFOLDEXPANDED, line)) + SendScintilla(SCI_SETFOLDEXPANDED, line, 1); + + foldExpand(line, true, force, visLevels - 1); + } + else + foldExpand(line, false, force, visLevels - 1); + } + else + line++; + } +} + + +// Fully expand (if there is any line currently folded) all text. Otherwise, +// fold all text. This is mostly taken from SciTE. +void QsciScintilla::foldAll(bool children) +{ + recolor(); + + int maxLine = SendScintilla(SCI_GETLINECOUNT); + bool expanding = true; + + for (int lineSeek = 0; lineSeek < maxLine; lineSeek++) + { + if (SendScintilla(SCI_GETFOLDLEVEL,lineSeek) & SC_FOLDLEVELHEADERFLAG) + { + expanding = !SendScintilla(SCI_GETFOLDEXPANDED, lineSeek); + break; + } + } + + for (int line = 0; line < maxLine; line++) + { + int level = SendScintilla(SCI_GETFOLDLEVEL, line); + + if (!(level & SC_FOLDLEVELHEADERFLAG)) + continue; + + if (children || + (SC_FOLDLEVELBASE == (level & SC_FOLDLEVELNUMBERMASK))) + { + if (expanding) + { + SendScintilla(SCI_SETFOLDEXPANDED, line, 1); + foldExpand(line, true, false, 0, level); + line--; + } + else + { + int lineMaxSubord = SendScintilla(SCI_GETLASTCHILD, line, -1); + + SendScintilla(SCI_SETFOLDEXPANDED, line, 0L); + + if (lineMaxSubord > line) + SendScintilla(SCI_HIDELINES, line + 1, lineMaxSubord); + } + } + } +} + + +// Handle a fold change. This is mostly taken from SciTE. +void QsciScintilla::foldChanged(int line,int levelNow,int levelPrev) +{ + if (levelNow & SC_FOLDLEVELHEADERFLAG) + { + if (!(levelPrev & SC_FOLDLEVELHEADERFLAG)) + SendScintilla(SCI_SETFOLDEXPANDED, line, 1); + } + else if (levelPrev & SC_FOLDLEVELHEADERFLAG) + { + if (!SendScintilla(SCI_GETFOLDEXPANDED, line)) + { + // Removing the fold from one that has been contracted so should + // expand. Otherwise lines are left invisible with no way to make + // them visible. + foldExpand(line, true, false, 0, levelPrev); + } + } +} + + +// Toggle the fold for a line if it contains a fold marker. +void QsciScintilla::foldLine(int line) +{ + SendScintilla(SCI_TOGGLEFOLD, line); +} + + +// Return the list of folded lines. +QList QsciScintilla::contractedFolds() const +{ + QList folds; + int linenr = 0, fold_line; + + while ((fold_line = SendScintilla(SCI_CONTRACTEDFOLDNEXT, linenr)) >= 0) + { + folds.append(fold_line); + linenr = fold_line + 1; + } + + return folds; +} + + +// Set the fold state from a list. +void QsciScintilla::setContractedFolds(const QList &folds) +{ + for (int i = 0; i < folds.count(); ++i) + { + int line = folds[i]; + int last_line = SendScintilla(SCI_GETLASTCHILD, line, -1); + + SendScintilla(SCI_SETFOLDEXPANDED, line, 0L); + SendScintilla(SCI_HIDELINES, line + 1, last_line); + } +} + + +// Handle the SCN_MODIFIED notification. +void QsciScintilla::handleModified(int pos, int mtype, const char *text, + int len, int added, int line, int foldNow, int foldPrev, int token, + int annotationLinesAdded) +{ + if (mtype & SC_MOD_CHANGEFOLD) + { + if (fold) + foldChanged(line, foldNow, foldPrev); + } + + if (mtype & (SC_MOD_INSERTTEXT | SC_MOD_DELETETEXT)) + { + emit textChanged(); + + if (added != 0) + emit linesChanged(); + } +} + + +// Zoom in a number of points. +void QsciScintilla::zoomIn(int range) +{ + zoomTo(SendScintilla(SCI_GETZOOM) + range); +} + + +// Zoom in a single point. +void QsciScintilla::zoomIn() +{ + SendScintilla(SCI_ZOOMIN); +} + + +// Zoom out a number of points. +void QsciScintilla::zoomOut(int range) +{ + zoomTo(SendScintilla(SCI_GETZOOM) - range); +} + + +// Zoom out a single point. +void QsciScintilla::zoomOut() +{ + SendScintilla(SCI_ZOOMOUT); +} + + +// Set the zoom to a number of points. +void QsciScintilla::zoomTo(int size) +{ + if (size < -10) + size = -10; + else if (size > 20) + size = 20; + + SendScintilla(SCI_SETZOOM, size); +} + + +// Find the first occurrence of a string. +bool QsciScintilla::findFirst(const QString &expr, bool re, bool cs, bool wo, + bool wrap, bool forward, int line, int index, bool show, bool posix) +{ + if (expr.isEmpty()) + { + findState.status = FindState::Idle; + return false; + } + + findState.status = FindState::Finding; + findState.expr = expr; + findState.wrap = wrap; + findState.forward = forward; + + findState.flags = + (cs ? SCFIND_MATCHCASE : 0) | + (wo ? SCFIND_WHOLEWORD : 0) | + (re ? SCFIND_REGEXP : 0) | + (posix ? SCFIND_POSIX : 0); + + if (line < 0 || index < 0) + findState.startpos = SendScintilla(SCI_GETCURRENTPOS); + else + findState.startpos = positionFromLineIndex(line, index); + + if (forward) + findState.endpos = SendScintilla(SCI_GETLENGTH); + else + findState.endpos = 0; + + findState.show = show; + + return doFind(); +} + + +// Find the first occurrence of a string in the current selection. +bool QsciScintilla::findFirstInSelection(const QString &expr, bool re, bool cs, + bool wo, bool forward, bool show, bool posix) +{ + if (expr.isEmpty()) + { + findState.status = FindState::Idle; + return false; + } + + findState.status = FindState::FindingInSelection; + findState.expr = expr; + findState.wrap = false; + findState.forward = forward; + + findState.flags = + (cs ? SCFIND_MATCHCASE : 0) | + (wo ? SCFIND_WHOLEWORD : 0) | + (re ? SCFIND_REGEXP : 0) | + (posix ? SCFIND_POSIX : 0); + + findState.startpos_orig = SendScintilla(SCI_GETSELECTIONSTART); + findState.endpos_orig = SendScintilla(SCI_GETSELECTIONEND); + + if (forward) + { + findState.startpos = findState.startpos_orig; + findState.endpos = findState.endpos_orig; + } + else + { + findState.startpos = findState.endpos_orig; + findState.endpos = findState.startpos_orig; + } + + findState.show = show; + + return doFind(); +} + + +// Find the next occurrence of a string. +bool QsciScintilla::findNext() +{ + if (findState.status == FindState::Idle) + return false; + + return doFind(); +} + + +// Do the hard work of the find methods. +bool QsciScintilla::doFind() +{ + SendScintilla(SCI_SETSEARCHFLAGS, findState.flags); + + int pos = simpleFind(); + + // See if it was found. If not and wraparound is wanted, try again. + if (pos == -1 && findState.wrap) + { + if (findState.forward) + { + findState.startpos = 0; + findState.endpos = SendScintilla(SCI_GETLENGTH); + } + else + { + findState.startpos = SendScintilla(SCI_GETLENGTH); + findState.endpos = 0; + } + + pos = simpleFind(); + } + + if (pos == -1) + { + // Restore the original selection. + if (findState.status == FindState::FindingInSelection) + SendScintilla(SCI_SETSEL, findState.startpos_orig, + findState.endpos_orig); + + findState.status = FindState::Idle; + return false; + } + + // It was found. + long targstart = SendScintilla(SCI_GETTARGETSTART); + long targend = SendScintilla(SCI_GETTARGETEND); + + // Ensure the text found is visible if required. + if (findState.show) + { + int startLine = SendScintilla(SCI_LINEFROMPOSITION, targstart); + int endLine = SendScintilla(SCI_LINEFROMPOSITION, targend); + + for (int i = startLine; i <= endLine; ++i) + SendScintilla(SCI_ENSUREVISIBLEENFORCEPOLICY, i); + } + + // Now set the selection. + SendScintilla(SCI_SETSEL, targstart, targend); + + // Finally adjust the start position so that we don't find the same one + // again. + if (findState.forward) + findState.startpos = targend; + else if ((findState.startpos = targstart - 1) < 0) + findState.startpos = 0; + + return true; +} + + +// Do a simple find between the start and end positions. +int QsciScintilla::simpleFind() +{ + if (findState.startpos == findState.endpos) + return -1; + + SendScintilla(SCI_SETTARGETSTART, findState.startpos); + SendScintilla(SCI_SETTARGETEND, findState.endpos); + + ScintillaBytes s = textAsBytes(findState.expr); + + return SendScintilla(SCI_SEARCHINTARGET, s.length(), + ScintillaBytesConstData(s)); +} + + +// Replace the text found with the previous find method. +void QsciScintilla::replace(const QString &replaceStr) +{ + if (findState.status == FindState::Idle) + return; + + long start = SendScintilla(SCI_GETSELECTIONSTART); + long orig_len = SendScintilla(SCI_GETSELECTIONEND) - start; + + SendScintilla(SCI_TARGETFROMSELECTION); + + int cmd = (findState.flags & SCFIND_REGEXP) ? SCI_REPLACETARGETRE : SCI_REPLACETARGET; + + ScintillaBytes s = textAsBytes(replaceStr); + long len = SendScintilla(cmd, -1, ScintillaBytesConstData(s)); + + // Reset the selection. + SendScintilla(SCI_SETSELECTIONSTART, start); + SendScintilla(SCI_SETSELECTIONEND, start + len); + + // Fix the original selection. + findState.endpos_orig += (len - orig_len); + + if (findState.forward) + findState.startpos = start + len; +} + + +// Query the modified state. +bool QsciScintilla::isModified() const +{ + return doc.isModified(); +} + + +// Set the modified state. +void QsciScintilla::setModified(bool m) +{ + if (!m) + SendScintilla(SCI_SETSAVEPOINT); +} + + +// Handle the SCN_INDICATORCLICK notification. +void QsciScintilla::handleIndicatorClick(int pos, int modifiers) +{ + int state = mapModifiers(modifiers); + int line, index; + + lineIndexFromPosition(pos, &line, &index); + + emit indicatorClicked(line, index, Qt::KeyboardModifiers(state)); +} + + +// Handle the SCN_INDICATORRELEASE notification. +void QsciScintilla::handleIndicatorRelease(int pos, int modifiers) +{ + int state = mapModifiers(modifiers); + int line, index; + + lineIndexFromPosition(pos, &line, &index); + + emit indicatorReleased(line, index, Qt::KeyboardModifiers(state)); +} + + +// Handle the SCN_MARGINCLICK notification. +void QsciScintilla::handleMarginClick(int pos, int modifiers, int margin) +{ + int state = mapModifiers(modifiers); + int line = SendScintilla(SCI_LINEFROMPOSITION, pos); + + if (fold && margin == foldmargin) + foldClick(line, state); + else + emit marginClicked(margin, line, Qt::KeyboardModifiers(state)); +} + + +// Handle the SCN_SAVEPOINTREACHED notification. +void QsciScintilla::handleSavePointReached() +{ + doc.setModified(false); + emit modificationChanged(false); +} + + +// Handle the SCN_SAVEPOINTLEFT notification. +void QsciScintilla::handleSavePointLeft() +{ + doc.setModified(true); + emit modificationChanged(true); +} + + +// Handle the QSCN_SELCHANGED signal. +void QsciScintilla::handleSelectionChanged(bool yes) +{ + selText = yes; + + emit copyAvailable(yes); + emit selectionChanged(); +} + + +// Get the current selection. +void QsciScintilla::getSelection(int *lineFrom, int *indexFrom, int *lineTo, + int *indexTo) const +{ + if (selText) + { + lineIndexFromPosition(SendScintilla(SCI_GETSELECTIONSTART), lineFrom, + indexFrom); + lineIndexFromPosition(SendScintilla(SCI_GETSELECTIONEND), lineTo, + indexTo); + } + else + *lineFrom = *indexFrom = *lineTo = *indexTo = -1; +} + + +// Sets the current selection. +void QsciScintilla::setSelection(int lineFrom, int indexFrom, int lineTo, + int indexTo) +{ + SendScintilla(SCI_SETSEL, positionFromLineIndex(lineFrom, indexFrom), + positionFromLineIndex(lineTo, indexTo)); +} + + +// Set the background colour of selected text. +void QsciScintilla::setSelectionBackgroundColor(const QColor &col) +{ + int alpha = col.alpha(); + + if (alpha == 255) + alpha = SC_ALPHA_NOALPHA; + + SendScintilla(SCI_SETSELBACK, 1, col); + SendScintilla(SCI_SETSELALPHA, alpha); +} + + +// Set the foreground colour of selected text. +void QsciScintilla::setSelectionForegroundColor(const QColor &col) +{ + SendScintilla(SCI_SETSELFORE, 1, col); +} + + +// Reset the background colour of selected text to the default. +void QsciScintilla::resetSelectionBackgroundColor() +{ + SendScintilla(SCI_SETSELALPHA, SC_ALPHA_NOALPHA); + SendScintilla(SCI_SETSELBACK, 0UL); +} + + +// Reset the foreground colour of selected text to the default. +void QsciScintilla::resetSelectionForegroundColor() +{ + SendScintilla(SCI_SETSELFORE, 0UL); +} + + +// Set the fill to the end-of-line for the selection. +void QsciScintilla::setSelectionToEol(bool filled) +{ + SendScintilla(SCI_SETSELEOLFILLED, filled); +} + + +// Return the fill to the end-of-line for the selection. +bool QsciScintilla::selectionToEol() const +{ + return SendScintilla(SCI_GETSELEOLFILLED); +} + + +// Set the width of the caret. +void QsciScintilla::setCaretWidth(int width) +{ + SendScintilla(SCI_SETCARETWIDTH, width); +} + + +// Set the foreground colour of the caret. +void QsciScintilla::setCaretForegroundColor(const QColor &col) +{ + SendScintilla(SCI_SETCARETFORE, col); +} + + +// Set the background colour of the line containing the caret. +void QsciScintilla::setCaretLineBackgroundColor(const QColor &col) +{ + int alpha = col.alpha(); + + if (alpha == 255) + alpha = SC_ALPHA_NOALPHA; + + SendScintilla(SCI_SETCARETLINEBACK, col); + SendScintilla(SCI_SETCARETLINEBACKALPHA, alpha); +} + + +// Set the state of the background colour of the line containing the caret. +void QsciScintilla::setCaretLineVisible(bool enable) +{ + SendScintilla(SCI_SETCARETLINEVISIBLE, enable); +} + + +// Set the background colour of a hotspot area. +void QsciScintilla::setHotspotBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_SETSELBACK, 1, col); +} + + +// Set the foreground colour of a hotspot area. +void QsciScintilla::setHotspotForegroundColor(const QColor &col) +{ + SendScintilla(SCI_SETHOTSPOTACTIVEFORE, 1, col); +} + + +// Reset the background colour of a hotspot area to the default. +void QsciScintilla::resetHotspotBackgroundColor() +{ + SendScintilla(SCI_SETSELBACK, 0UL); +} + + +// Reset the foreground colour of a hotspot area to the default. +void QsciScintilla::resetHotspotForegroundColor() +{ + SendScintilla(SCI_SETHOTSPOTACTIVEFORE, 0UL); +} + + +// Set the underline of a hotspot area. +void QsciScintilla::setHotspotUnderline(bool enable) +{ + SendScintilla(SCI_SETHOTSPOTACTIVEUNDERLINE, enable); +} + + +// Set the wrapping of a hotspot area. +void QsciScintilla::setHotspotWrap(bool enable) +{ + SendScintilla(SCI_SETHOTSPOTSINGLELINE, !enable); +} + + +// Query the read-only state. +bool QsciScintilla::isReadOnly() const +{ + return SendScintilla(SCI_GETREADONLY); +} + + +// Set the read-only state. +void QsciScintilla::setReadOnly(bool ro) +{ + setAttribute(Qt::WA_InputMethodEnabled, !ro); + SendScintilla(SCI_SETREADONLY, ro); +} + + +// Append the given text. +void QsciScintilla::append(const QString &text) +{ + bool ro = ensureRW(); + + ScintillaBytes s = textAsBytes(text); + SendScintilla(SCI_APPENDTEXT, s.length(), ScintillaBytesConstData(s)); + + SendScintilla(SCI_EMPTYUNDOBUFFER); + + setReadOnly(ro); +} + + +// Insert the given text at the current position. +void QsciScintilla::insert(const QString &text) +{ + insertAtPos(text, -1); +} + + +// Insert the given text at the given line and offset. +void QsciScintilla::insertAt(const QString &text, int line, int index) +{ + insertAtPos(text, positionFromLineIndex(line, index)); +} + + +// Insert the given text at the given position. +void QsciScintilla::insertAtPos(const QString &text, int pos) +{ + bool ro = ensureRW(); + + SendScintilla(SCI_BEGINUNDOACTION); + SendScintilla(SCI_INSERTTEXT, pos, + ScintillaBytesConstData(textAsBytes(text))); + SendScintilla(SCI_ENDUNDOACTION); + + setReadOnly(ro); +} + + +// Begin a sequence of undoable actions. +void QsciScintilla::beginUndoAction() +{ + SendScintilla(SCI_BEGINUNDOACTION); +} + + +// End a sequence of undoable actions. +void QsciScintilla::endUndoAction() +{ + SendScintilla(SCI_ENDUNDOACTION); +} + + +// Redo a sequence of actions. +void QsciScintilla::redo() +{ + SendScintilla(SCI_REDO); +} + + +// Undo a sequence of actions. +void QsciScintilla::undo() +{ + SendScintilla(SCI_UNDO); +} + + +// See if there is something to redo. +bool QsciScintilla::isRedoAvailable() const +{ + return SendScintilla(SCI_CANREDO); +} + + +// See if there is something to undo. +bool QsciScintilla::isUndoAvailable() const +{ + return SendScintilla(SCI_CANUNDO); +} + + +// Return the number of lines. +int QsciScintilla::lines() const +{ + return SendScintilla(SCI_GETLINECOUNT); +} + + +// Return the line at a position. +int QsciScintilla::lineAt(const QPoint &pos) const +{ + long chpos = SendScintilla(SCI_POSITIONFROMPOINTCLOSE, pos.x(), pos.y()); + + if (chpos < 0) + return -1; + + return SendScintilla(SCI_LINEFROMPOSITION, chpos); +} + + +// Return the length of a line. +int QsciScintilla::lineLength(int line) const +{ + if (line < 0 || line >= SendScintilla(SCI_GETLINECOUNT)) + return -1; + + return SendScintilla(SCI_LINELENGTH, line); +} + + +// Return the length of the current text. +int QsciScintilla::length() const +{ + return SendScintilla(SCI_GETTEXTLENGTH); +} + + +// Remove any selected text. +void QsciScintilla::removeSelectedText() +{ + SendScintilla(SCI_REPLACESEL, ""); +} + + +// Replace any selected text. +void QsciScintilla::replaceSelectedText(const QString &text) +{ + SendScintilla(SCI_REPLACESEL, ScintillaBytesConstData(textAsBytes(text))); +} + + +// Return the current selected text. +QString QsciScintilla::selectedText() const +{ + if (!selText) + return QString(); + + char *buf = new char[SendScintilla(SCI_GETSELECTIONEND) - SendScintilla(SCI_GETSELECTIONSTART) + 1]; + + SendScintilla(SCI_GETSELTEXT, buf); + + QString qs = bytesAsText(buf); + delete[] buf; + + return qs; +} + + +// Return the current text. +QString QsciScintilla::text() const +{ + int buflen = length() + 1; + char *buf = new char[buflen]; + + SendScintilla(SCI_GETTEXT, buflen, buf); + + QString qs = bytesAsText(buf); + delete[] buf; + + return qs; +} + + +// Return the text of a line. +QString QsciScintilla::text(int line) const +{ + int line_len = lineLength(line); + + if (line_len < 1) + return QString(); + + char *buf = new char[line_len + 1]; + + SendScintilla(SCI_GETLINE, line, buf); + buf[line_len] = '\0'; + + QString qs = bytesAsText(buf); + delete[] buf; + + return qs; +} + + +// Set the given text. +void QsciScintilla::setText(const QString &text) +{ + bool ro = ensureRW(); + + SendScintilla(SCI_SETTEXT, ScintillaBytesConstData(textAsBytes(text))); + SendScintilla(SCI_EMPTYUNDOBUFFER); + + setReadOnly(ro); +} + + +// Get the cursor position +void QsciScintilla::getCursorPosition(int *line, int *index) const +{ + lineIndexFromPosition(SendScintilla(SCI_GETCURRENTPOS), line, index); +} + + +// Set the cursor position +void QsciScintilla::setCursorPosition(int line, int index) +{ + SendScintilla(SCI_GOTOPOS, positionFromLineIndex(line, index)); +} + + +// Ensure the cursor is visible. +void QsciScintilla::ensureCursorVisible() +{ + SendScintilla(SCI_SCROLLCARET); +} + + +// Ensure a line is visible. +void QsciScintilla::ensureLineVisible(int line) +{ + SendScintilla(SCI_ENSUREVISIBLEENFORCEPOLICY, line); +} + + +// Copy text to the clipboard. +void QsciScintilla::copy() +{ + SendScintilla(SCI_COPY); +} + + +// Cut text to the clipboard. +void QsciScintilla::cut() +{ + SendScintilla(SCI_CUT); +} + + +// Paste text from the clipboard. +void QsciScintilla::paste() +{ + SendScintilla(SCI_PASTE); +} + + +// Select all text, or deselect any selected text. +void QsciScintilla::selectAll(bool select) +{ + if (select) + SendScintilla(SCI_SELECTALL); + else + SendScintilla(SCI_SETANCHOR, SendScintilla(SCI_GETCURRENTPOS)); +} + + +// Delete all text. +void QsciScintilla::clear() +{ + bool ro = ensureRW(); + + SendScintilla(SCI_BEGINUNDOACTION); + SendScintilla(SCI_CLEARALL); + SendScintilla(SCI_ENDUNDOACTION); + + setReadOnly(ro); +} + + +// Return the indentation of a line. +int QsciScintilla::indentation(int line) const +{ + return SendScintilla(SCI_GETLINEINDENTATION, line); +} + + +// Set the indentation of a line. +void QsciScintilla::setIndentation(int line, int indentation) +{ + SendScintilla(SCI_BEGINUNDOACTION); + SendScintilla(SCI_SETLINEINDENTATION, line, indentation); + SendScintilla(SCI_ENDUNDOACTION); +} + + +// Indent a line. +void QsciScintilla::indent(int line) +{ + setIndentation(line, indentation(line) + indentWidth()); +} + + +// Unindent a line. +void QsciScintilla::unindent(int line) +{ + int newIndent = indentation(line) - indentWidth(); + + if (newIndent < 0) + newIndent = 0; + + setIndentation(line, newIndent); +} + + +// Return the indentation of the current line. +int QsciScintilla::currentIndent() const +{ + return indentation(SendScintilla(SCI_LINEFROMPOSITION, + SendScintilla(SCI_GETCURRENTPOS))); +} + + +// Return the current indentation width. +int QsciScintilla::indentWidth() const +{ + int w = indentationWidth(); + + if (w == 0) + w = tabWidth(); + + return w; +} + + +// Return the state of indentation guides. +bool QsciScintilla::indentationGuides() const +{ + return (SendScintilla(SCI_GETINDENTATIONGUIDES) != SC_IV_NONE); +} + + +// Enable and disable indentation guides. +void QsciScintilla::setIndentationGuides(bool enable) +{ + int iv; + + if (!enable) + iv = SC_IV_NONE; + else if (lex.isNull()) + iv = SC_IV_REAL; + else + iv = lex->indentationGuideView(); + + SendScintilla(SCI_SETINDENTATIONGUIDES, iv); +} + + +// Set the background colour of indentation guides. +void QsciScintilla::setIndentationGuidesBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETBACK, STYLE_INDENTGUIDE, col); +} + + +// Set the foreground colour of indentation guides. +void QsciScintilla::setIndentationGuidesForegroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETFORE, STYLE_INDENTGUIDE, col); +} + + +// Return the indentation width. +int QsciScintilla::indentationWidth() const +{ + return SendScintilla(SCI_GETINDENT); +} + + +// Set the indentation width. +void QsciScintilla::setIndentationWidth(int width) +{ + SendScintilla(SCI_SETINDENT, width); +} + + +// Return the tab width. +int QsciScintilla::tabWidth() const +{ + return SendScintilla(SCI_GETTABWIDTH); +} + + +// Set the tab width. +void QsciScintilla::setTabWidth(int width) +{ + SendScintilla(SCI_SETTABWIDTH, width); +} + + +// Return the effect of the backspace key. +bool QsciScintilla::backspaceUnindents() const +{ + return SendScintilla(SCI_GETBACKSPACEUNINDENTS); +} + + +// Set the effect of the backspace key. +void QsciScintilla::setBackspaceUnindents(bool unindents) +{ + SendScintilla(SCI_SETBACKSPACEUNINDENTS, unindents); +} + + +// Return the effect of the tab key. +bool QsciScintilla::tabIndents() const +{ + return SendScintilla(SCI_GETTABINDENTS); +} + + +// Set the effect of the tab key. +void QsciScintilla::setTabIndents(bool indents) +{ + SendScintilla(SCI_SETTABINDENTS, indents); +} + + +// Return the indentation use of tabs. +bool QsciScintilla::indentationsUseTabs() const +{ + return SendScintilla(SCI_GETUSETABS); +} + + +// Set the indentation use of tabs. +void QsciScintilla::setIndentationsUseTabs(bool tabs) +{ + SendScintilla(SCI_SETUSETABS, tabs); +} + + +// Return the margin options. +int QsciScintilla::marginOptions() const +{ + return SendScintilla(SCI_GETMARGINOPTIONS); +} + + +// Set the margin options. +void QsciScintilla::setMarginOptions(int options) +{ + SendScintilla(SCI_SETMARGINOPTIONS, options); +} + + +// Return the margin type. +QsciScintilla::MarginType QsciScintilla::marginType(int margin) const +{ + return (MarginType)SendScintilla(SCI_GETMARGINTYPEN, margin); +} + + +// Set the margin type. +void QsciScintilla::setMarginType(int margin, QsciScintilla::MarginType type) +{ + SendScintilla(SCI_SETMARGINTYPEN, margin, type); +} + + +// Clear margin text. +void QsciScintilla::clearMarginText(int line) +{ + if (line < 0) + SendScintilla(SCI_MARGINSETTEXT, line, (const char *)0); + else + SendScintilla(SCI_MARGINTEXTCLEARALL); +} + + +// Annotate a line. +void QsciScintilla::setMarginText(int line, const QString &text, int style) +{ + int style_offset = SendScintilla(SCI_MARGINGETSTYLEOFFSET); + + SendScintilla(SCI_MARGINSETTEXT, line, + ScintillaBytesConstData(textAsBytes(text))); + + SendScintilla(SCI_MARGINSETSTYLE, line, style - style_offset); +} + + +// Annotate a line. +void QsciScintilla::setMarginText(int line, const QString &text, const QsciStyle &style) +{ + style.apply(this); + + setMarginText(line, text, style.style()); +} + + +// Annotate a line. +void QsciScintilla::setMarginText(int line, const QsciStyledText &text) +{ + text.apply(this); + + setMarginText(line, text.text(), text.style()); +} + + +// Annotate a line. +void QsciScintilla::setMarginText(int line, const QList &text) +{ + char *styles; + ScintillaBytes styled_text = styleText(text, &styles, + SendScintilla(SCI_MARGINGETSTYLEOFFSET)); + + SendScintilla(SCI_MARGINSETTEXT, line, + ScintillaBytesConstData(styled_text)); + SendScintilla(SCI_MARGINSETSTYLES, line, styles); + + delete[] styles; +} + + +// Return the state of line numbers in a margin. +bool QsciScintilla::marginLineNumbers(int margin) const +{ + return SendScintilla(SCI_GETMARGINTYPEN, margin); +} + + +// Enable and disable line numbers in a margin. +void QsciScintilla::setMarginLineNumbers(int margin, bool lnrs) +{ + SendScintilla(SCI_SETMARGINTYPEN, margin, + lnrs ? SC_MARGIN_NUMBER : SC_MARGIN_SYMBOL); +} + + +// Return the marker mask of a margin. +int QsciScintilla::marginMarkerMask(int margin) const +{ + return SendScintilla(SCI_GETMARGINMASKN, margin); +} + + +// Set the marker mask of a margin. +void QsciScintilla::setMarginMarkerMask(int margin,int mask) +{ + SendScintilla(SCI_SETMARGINMASKN, margin, mask); +} + + +// Return the state of a margin's sensitivity. +bool QsciScintilla::marginSensitivity(int margin) const +{ + return SendScintilla(SCI_GETMARGINSENSITIVEN, margin); +} + + +// Enable and disable a margin's sensitivity. +void QsciScintilla::setMarginSensitivity(int margin,bool sens) +{ + SendScintilla(SCI_SETMARGINSENSITIVEN, margin, sens); +} + + +// Return the width of a margin. +int QsciScintilla::marginWidth(int margin) const +{ + return SendScintilla(SCI_GETMARGINWIDTHN, margin); +} + + +// Set the width of a margin. +void QsciScintilla::setMarginWidth(int margin, int width) +{ + SendScintilla(SCI_SETMARGINWIDTHN, margin, width); +} + + +// Set the width of a margin to the width of some text. +void QsciScintilla::setMarginWidth(int margin, const QString &s) +{ + int width = SendScintilla(SCI_TEXTWIDTH, STYLE_LINENUMBER, + ScintillaBytesConstData(textAsBytes(s))); + + setMarginWidth(margin, width); +} + + +// Set the background colour of all margins. +void QsciScintilla::setMarginsBackgroundColor(const QColor &col) +{ + handleStylePaperChange(col, STYLE_LINENUMBER); +} + + +// Set the foreground colour of all margins. +void QsciScintilla::setMarginsForegroundColor(const QColor &col) +{ + handleStyleColorChange(col, STYLE_LINENUMBER); +} + + +// Set the font of all margins. +void QsciScintilla::setMarginsFont(const QFont &f) +{ + setStylesFont(f, STYLE_LINENUMBER); +} + + +// Define an indicator. +int QsciScintilla::indicatorDefine(IndicatorStyle style, int indicatorNumber) +{ + checkIndicator(indicatorNumber); + + if (indicatorNumber >= 0) + SendScintilla(SCI_INDICSETSTYLE, indicatorNumber, static_cast(style)); + + return indicatorNumber; +} + + +// Return the state of an indicator being drawn under the text. +bool QsciScintilla::indicatorDrawUnder(int indicatorNumber) const +{ + if (indicatorNumber < 0 || indicatorNumber >= INDIC_MAX) + return false; + + return SendScintilla(SCI_INDICGETUNDER, indicatorNumber); +} + + +// Set the state of indicators being drawn under the text. +void QsciScintilla::setIndicatorDrawUnder(bool under, int indicatorNumber) +{ + if (indicatorNumber <= INDIC_MAX) + { + // We ignore allocatedIndicators to allow any indicators defined + // elsewhere (e.g. in lexers) to be set. + if (indicatorNumber < 0) + { + for (int i = 0; i <= INDIC_MAX; ++i) + SendScintilla(SCI_INDICSETUNDER, i, under); + } + else + { + SendScintilla(SCI_INDICSETUNDER, indicatorNumber, under); + } + } +} + + +// Set the indicator foreground colour. +void QsciScintilla::setIndicatorForegroundColor(const QColor &col, int indicatorNumber) +{ + if (indicatorNumber <= INDIC_MAX) + { + int alpha = col.alpha(); + + // We ignore allocatedIndicators to allow any indicators defined + // elsewhere (e.g. in lexers) to be set. + if (indicatorNumber < 0) + { + for (int i = 0; i <= INDIC_MAX; ++i) + { + SendScintilla(SCI_INDICSETFORE, i, col); + SendScintilla(SCI_INDICSETALPHA, i, alpha); + } + } + else + { + SendScintilla(SCI_INDICSETFORE, indicatorNumber, col); + SendScintilla(SCI_INDICSETALPHA, indicatorNumber, alpha); + } + } +} + + +// Set the indicator outline colour. +void QsciScintilla::setIndicatorOutlineColor(const QColor &col, int indicatorNumber) +{ + if (indicatorNumber <= INDIC_MAX) + { + int alpha = col.alpha(); + + // We ignore allocatedIndicators to allow any indicators defined + // elsewhere (e.g. in lexers) to be set. + if (indicatorNumber < 0) + { + for (int i = 0; i <= INDIC_MAX; ++i) + SendScintilla(SCI_INDICSETOUTLINEALPHA, i, alpha); + } + else + { + SendScintilla(SCI_INDICSETOUTLINEALPHA, indicatorNumber, alpha); + } + } +} + + +// Fill a range with an indicator. +void QsciScintilla::fillIndicatorRange(int lineFrom, int indexFrom, + int lineTo, int indexTo, int indicatorNumber) +{ + if (indicatorNumber <= INDIC_MAX) + { + int start = positionFromLineIndex(lineFrom, indexFrom); + int finish = positionFromLineIndex(lineTo, indexTo); + + // We ignore allocatedIndicators to allow any indicators defined + // elsewhere (e.g. in lexers) to be set. + if (indicatorNumber < 0) + { + for (int i = 0; i <= INDIC_MAX; ++i) + { + SendScintilla(SCI_SETINDICATORCURRENT, i); + SendScintilla(SCI_INDICATORFILLRANGE, start, finish - start); + } + } + else + { + SendScintilla(SCI_SETINDICATORCURRENT, indicatorNumber); + SendScintilla(SCI_INDICATORFILLRANGE, start, finish - start); + } + } +} + + +// Clear a range with an indicator. +void QsciScintilla::clearIndicatorRange(int lineFrom, int indexFrom, + int lineTo, int indexTo, int indicatorNumber) +{ + if (indicatorNumber <= INDIC_MAX) + { + int start = positionFromLineIndex(lineFrom, indexFrom); + int finish = positionFromLineIndex(lineTo, indexTo); + + // We ignore allocatedIndicators to allow any indicators defined + // elsewhere (e.g. in lexers) to be set. + if (indicatorNumber < 0) + { + for (int i = 0; i <= INDIC_MAX; ++i) + { + SendScintilla(SCI_SETINDICATORCURRENT, i); + SendScintilla(SCI_INDICATORCLEARRANGE, start, finish - start); + } + } + else + { + SendScintilla(SCI_SETINDICATORCURRENT, indicatorNumber); + SendScintilla(SCI_INDICATORCLEARRANGE, start, finish - start); + } + } +} + + +// Define a marker based on a symbol. +int QsciScintilla::markerDefine(MarkerSymbol sym, int markerNumber) +{ + checkMarker(markerNumber); + + if (markerNumber >= 0) + SendScintilla(SCI_MARKERDEFINE, markerNumber, static_cast(sym)); + + return markerNumber; +} + + +// Define a marker based on a character. +int QsciScintilla::markerDefine(char ch, int markerNumber) +{ + checkMarker(markerNumber); + + if (markerNumber >= 0) + SendScintilla(SCI_MARKERDEFINE, markerNumber, + static_cast(SC_MARK_CHARACTER) + ch); + + return markerNumber; +} + + +// Define a marker based on a QPixmap. +int QsciScintilla::markerDefine(const QPixmap &pm, int markerNumber) +{ + checkMarker(markerNumber); + + if (markerNumber >= 0) + SendScintilla(SCI_MARKERDEFINEPIXMAP, markerNumber, pm); + + return markerNumber; +} + + +// Define a marker based on a QImage. +int QsciScintilla::markerDefine(const QImage &im, int markerNumber) +{ + checkMarker(markerNumber); + + if (markerNumber >= 0) + { + SendScintilla(SCI_RGBAIMAGESETHEIGHT, im.height()); + SendScintilla(SCI_RGBAIMAGESETWIDTH, im.width()); + SendScintilla(SCI_MARKERDEFINERGBAIMAGE, markerNumber, im); + } + + return markerNumber; +} + + +// Add a marker to a line. +int QsciScintilla::markerAdd(int linenr, int markerNumber) +{ + if (markerNumber < 0 || markerNumber > MARKER_MAX || (allocatedMarkers & (1 << markerNumber)) == 0) + return -1; + + return SendScintilla(SCI_MARKERADD, linenr, markerNumber); +} + + +// Get the marker mask for a line. +unsigned QsciScintilla::markersAtLine(int linenr) const +{ + return SendScintilla(SCI_MARKERGET, linenr); +} + + +// Delete a marker from a line. +void QsciScintilla::markerDelete(int linenr, int markerNumber) +{ + if (markerNumber <= MARKER_MAX) + { + if (markerNumber < 0) + { + unsigned am = allocatedMarkers; + + for (int m = 0; m <= MARKER_MAX; ++m) + { + if (am & 1) + SendScintilla(SCI_MARKERDELETE, linenr, m); + + am >>= 1; + } + } + else if (allocatedMarkers & (1 << markerNumber)) + SendScintilla(SCI_MARKERDELETE, linenr, markerNumber); + } +} + + +// Delete a marker from the text. +void QsciScintilla::markerDeleteAll(int markerNumber) +{ + if (markerNumber <= MARKER_MAX) + { + if (markerNumber < 0) + SendScintilla(SCI_MARKERDELETEALL, -1); + else if (allocatedMarkers & (1 << markerNumber)) + SendScintilla(SCI_MARKERDELETEALL, markerNumber); + } +} + + +// Delete a marker handle from the text. +void QsciScintilla::markerDeleteHandle(int mhandle) +{ + SendScintilla(SCI_MARKERDELETEHANDLE, mhandle); +} + + +// Return the line containing a marker instance. +int QsciScintilla::markerLine(int mhandle) const +{ + return SendScintilla(SCI_MARKERLINEFROMHANDLE, mhandle); +} + + +// Search forwards for a marker. +int QsciScintilla::markerFindNext(int linenr, unsigned mask) const +{ + return SendScintilla(SCI_MARKERNEXT, linenr, mask); +} + + +// Search backwards for a marker. +int QsciScintilla::markerFindPrevious(int linenr, unsigned mask) const +{ + return SendScintilla(SCI_MARKERPREVIOUS, linenr, mask); +} + + +// Set the marker background colour. +void QsciScintilla::setMarkerBackgroundColor(const QColor &col, int markerNumber) +{ + if (markerNumber <= MARKER_MAX) + { + int alpha = col.alpha(); + + // An opaque background would make the text invisible. + if (alpha == 255) + alpha = SC_ALPHA_NOALPHA; + + if (markerNumber < 0) + { + unsigned am = allocatedMarkers; + + for (int m = 0; m <= MARKER_MAX; ++m) + { + if (am & 1) + { + SendScintilla(SCI_MARKERSETBACK, m, col); + SendScintilla(SCI_MARKERSETALPHA, m, alpha); + } + + am >>= 1; + } + } + else if (allocatedMarkers & (1 << markerNumber)) + { + SendScintilla(SCI_MARKERSETBACK, markerNumber, col); + SendScintilla(SCI_MARKERSETALPHA, markerNumber, alpha); + } + } +} + + +// Set the marker foreground colour. +void QsciScintilla::setMarkerForegroundColor(const QColor &col, int markerNumber) +{ + if (markerNumber <= MARKER_MAX) + { + if (markerNumber < 0) + { + unsigned am = allocatedMarkers; + + for (int m = 0; m <= MARKER_MAX; ++m) + { + if (am & 1) + SendScintilla(SCI_MARKERSETFORE, m, col); + + am >>= 1; + } + } + else if (allocatedMarkers & (1 << markerNumber)) + { + SendScintilla(SCI_MARKERSETFORE, markerNumber, col); + } + } +} + + +// Check a marker, allocating a marker number if necessary. +void QsciScintilla::checkMarker(int &markerNumber) +{ + allocateId(markerNumber, allocatedMarkers, 0, MARKER_MAX); +} + + +// Check an indicator, allocating an indicator number if necessary. +void QsciScintilla::checkIndicator(int &indicatorNumber) +{ + allocateId(indicatorNumber, allocatedIndicators, INDIC_CONTAINER, + INDIC_MAX); +} + + +// Make sure an identifier is valid and allocate it if necessary. +void QsciScintilla::allocateId(int &id, unsigned &allocated, int min, int max) +{ + if (id >= 0) + { + // Note that we allow existing identifiers to be explicitly redefined. + if (id > max) + id = -1; + } + else + { + unsigned aids = allocated >> min; + + // Find the smallest unallocated identifier. + for (id = min; id <= max; ++id) + { + if ((aids & 1) == 0) + break; + + aids >>= 1; + } + } + + // Allocate the identifier if it is valid. + if (id >= 0) + allocated |= (1 << id); +} + + +// Reset the fold margin colours. +void QsciScintilla::resetFoldMarginColors() +{ + SendScintilla(SCI_SETFOLDMARGINHICOLOUR, 0, 0L); + SendScintilla(SCI_SETFOLDMARGINCOLOUR, 0, 0L); +} + + +// Set the fold margin colours. +void QsciScintilla::setFoldMarginColors(const QColor &fore, const QColor &back) +{ + SendScintilla(SCI_SETFOLDMARGINHICOLOUR, 1, fore); + SendScintilla(SCI_SETFOLDMARGINCOLOUR, 1, back); +} + + +// Set the call tips background colour. +void QsciScintilla::setCallTipsBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_CALLTIPSETBACK, col); +} + + +// Set the call tips foreground colour. +void QsciScintilla::setCallTipsForegroundColor(const QColor &col) +{ + SendScintilla(SCI_CALLTIPSETFORE, col); +} + + +// Set the call tips highlight colour. +void QsciScintilla::setCallTipsHighlightColor(const QColor &col) +{ + SendScintilla(SCI_CALLTIPSETFOREHLT, col); +} + + +// Set the matched brace background colour. +void QsciScintilla::setMatchedBraceBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETBACK, STYLE_BRACELIGHT, col); +} + + +// Set the matched brace foreground colour. +void QsciScintilla::setMatchedBraceForegroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETFORE, STYLE_BRACELIGHT, col); +} + + +// Set the matched brace indicator. +void QsciScintilla::setMatchedBraceIndicator(int indicatorNumber) +{ + SendScintilla(SCI_BRACEHIGHLIGHTINDICATOR, 1, indicatorNumber); +} + + +// Reset the matched brace indicator. +void QsciScintilla::resetMatchedBraceIndicator() +{ + SendScintilla(SCI_BRACEHIGHLIGHTINDICATOR, 0, 0L); +} + + +// Set the unmatched brace background colour. +void QsciScintilla::setUnmatchedBraceBackgroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETBACK, STYLE_BRACEBAD, col); +} + + +// Set the unmatched brace foreground colour. +void QsciScintilla::setUnmatchedBraceForegroundColor(const QColor &col) +{ + SendScintilla(SCI_STYLESETFORE, STYLE_BRACEBAD, col); +} + + +// Set the unmatched brace indicator. +void QsciScintilla::setUnmatchedBraceIndicator(int indicatorNumber) +{ + SendScintilla(SCI_BRACEBADLIGHTINDICATOR, 1, indicatorNumber); +} + + +// Reset the unmatched brace indicator. +void QsciScintilla::resetUnmatchedBraceIndicator() +{ + SendScintilla(SCI_BRACEBADLIGHTINDICATOR, 0, 0L); +} + + +// Detach any lexer. +void QsciScintilla::detachLexer() +{ + if (!lex.isNull()) + { + lex->setEditor(0); + lex->disconnect(this); + + SendScintilla(SCI_STYLERESETDEFAULT); + SendScintilla(SCI_STYLECLEARALL); + SendScintilla(SCI_CLEARDOCUMENTSTYLE); + } +} + + +// Set the lexer. +void QsciScintilla::setLexer(QsciLexer *lexer) +{ + // Detach any current lexer. + detachLexer(); + + // Connect up the new lexer. + lex = lexer; + + if (lex) + { + if (lex->lexer()) + SendScintilla(SCI_SETLEXERLANGUAGE, lex->lexer()); + else + SendScintilla(SCI_SETLEXER, lex->lexerId()); + + lex->setEditor(this); + + connect(lex,SIGNAL(colorChanged(const QColor &, int)), + SLOT(handleStyleColorChange(const QColor &, int))); + connect(lex,SIGNAL(eolFillChanged(bool, int)), + SLOT(handleStyleEolFillChange(bool, int))); + connect(lex,SIGNAL(fontChanged(const QFont &, int)), + SLOT(handleStyleFontChange(const QFont &, int))); + connect(lex,SIGNAL(paperChanged(const QColor &, int)), + SLOT(handleStylePaperChange(const QColor &, int))); + connect(lex,SIGNAL(propertyChanged(const char *, const char *)), + SLOT(handlePropertyChange(const char *, const char *))); + + SendScintilla(SCI_SETPROPERTY, "fold", "1"); + SendScintilla(SCI_SETPROPERTY, "fold.html", "1"); + + // Set the keywords. Scintilla allows for sets numbered 0 to + // KEYWORDSET_MAX (although the lexers only seem to exploit 0 to + // KEYWORDSET_MAX - 1). We number from 1 in line with SciTE's property + // files. + for (int k = 0; k <= KEYWORDSET_MAX; ++k) + { + const char *kw = lex -> keywords(k + 1); + + if (!kw) + kw = ""; + + SendScintilla(SCI_SETKEYWORDS, k, kw); + } + + // Initialise each style. Do the default first so its (possibly + // incorrect) font setting gets reset when style 0 is set. + setLexerStyle(STYLE_DEFAULT); + + int nrStyles = 1 << SendScintilla(SCI_GETSTYLEBITS); + + for (int s = 0; s < nrStyles; ++s) + if (!lex->description(s).isNull()) + setLexerStyle(s); + + // Initialise the properties. + lex->refreshProperties(); + + // Set the auto-completion fillups and word separators. + setAutoCompletionFillupsEnabled(fillups_enabled); + wseps = lex->autoCompletionWordSeparators(); + + wchars = lex->wordCharacters(); + + if (!wchars) + wchars = defaultWordChars; + + SendScintilla(SCI_AUTOCSETIGNORECASE, !lex->caseSensitive()); + + recolor(); + } + else + { + SendScintilla(SCI_SETLEXER, SCLEX_CONTAINER); + + setColor(nl_text_colour); + setPaper(nl_paper_colour); + + SendScintilla(SCI_AUTOCSETFILLUPS, ""); + SendScintilla(SCI_AUTOCSETIGNORECASE, false); + wseps.clear(); + wchars = defaultWordChars; + } +} + + +// Set a particular style of the current lexer. +void QsciScintilla::setLexerStyle(int style) +{ + handleStyleColorChange(lex->color(style), style); + handleStyleEolFillChange(lex->eolFill(style), style); + handleStyleFontChange(lex->font(style), style); + handleStylePaperChange(lex->paper(style), style); +} + + +// Get the current lexer. +QsciLexer *QsciScintilla::lexer() const +{ + return lex; +} + + +// Handle a change in lexer style foreground colour. +void QsciScintilla::handleStyleColorChange(const QColor &c, int style) +{ + SendScintilla(SCI_STYLESETFORE, style, c); +} + + +// Handle a change in lexer style end-of-line fill. +void QsciScintilla::handleStyleEolFillChange(bool eolfill, int style) +{ + SendScintilla(SCI_STYLESETEOLFILLED, style, eolfill); +} + + +// Handle a change in lexer style font. +void QsciScintilla::handleStyleFontChange(const QFont &f, int style) +{ + setStylesFont(f, style); + + if (style == lex->braceStyle()) + { + setStylesFont(f, STYLE_BRACELIGHT); + setStylesFont(f, STYLE_BRACEBAD); + } +} + + +// Set the font for a style. +void QsciScintilla::setStylesFont(const QFont &f, int style) +{ + SendScintilla(SCI_STYLESETFONT, style, f.family().toLatin1().data()); + SendScintilla(SCI_STYLESETSIZEFRACTIONAL, style, + long(f.pointSizeF() * SC_FONT_SIZE_MULTIPLIER)); + + // Pass the Qt weight via the back door. + SendScintilla(SCI_STYLESETWEIGHT, style, -f.weight()); + + SendScintilla(SCI_STYLESETITALIC, style, f.italic()); + SendScintilla(SCI_STYLESETUNDERLINE, style, f.underline()); + + // Tie the font settings of the default style to that of style 0 (the style + // conventionally used for whitespace by lexers). This is needed so that + // fold marks, indentations, edge columns etc are set properly. + if (style == 0) + setStylesFont(f, STYLE_DEFAULT); +} + + +// Handle a change in lexer style background colour. +void QsciScintilla::handleStylePaperChange(const QColor &c, int style) +{ + SendScintilla(SCI_STYLESETBACK, style, c); +} + + +// Handle a change in lexer property. +void QsciScintilla::handlePropertyChange(const char *prop, const char *val) +{ + SendScintilla(SCI_SETPROPERTY, prop, val); +} + + +// Handle a change to the user visible user interface. +void QsciScintilla::handleUpdateUI(int) +{ + int newPos = SendScintilla(SCI_GETCURRENTPOS); + + if (newPos != oldPos) + { + oldPos = newPos; + + int line = SendScintilla(SCI_LINEFROMPOSITION, newPos); + int col = SendScintilla(SCI_GETCOLUMN, newPos); + + emit cursorPositionChanged(line, col); + } + + if (braceMode != NoBraceMatch) + braceMatch(); +} + + +// Handle brace matching. +void QsciScintilla::braceMatch() +{ + long braceAtCaret, braceOpposite; + + findMatchingBrace(braceAtCaret, braceOpposite, braceMode); + + if (braceAtCaret >= 0 && braceOpposite < 0) + { + SendScintilla(SCI_BRACEBADLIGHT, braceAtCaret); + SendScintilla(SCI_SETHIGHLIGHTGUIDE, 0UL); + } + else + { + char chBrace = SendScintilla(SCI_GETCHARAT, braceAtCaret); + + SendScintilla(SCI_BRACEHIGHLIGHT, braceAtCaret, braceOpposite); + + long columnAtCaret = SendScintilla(SCI_GETCOLUMN, braceAtCaret); + long columnOpposite = SendScintilla(SCI_GETCOLUMN, braceOpposite); + + if (chBrace == ':') + { + long lineStart = SendScintilla(SCI_LINEFROMPOSITION, braceAtCaret); + long indentPos = SendScintilla(SCI_GETLINEINDENTPOSITION, + lineStart); + long indentPosNext = SendScintilla(SCI_GETLINEINDENTPOSITION, + lineStart + 1); + + columnAtCaret = SendScintilla(SCI_GETCOLUMN, indentPos); + + long columnAtCaretNext = SendScintilla(SCI_GETCOLUMN, + indentPosNext); + long indentSize = SendScintilla(SCI_GETINDENT); + + if (columnAtCaretNext - indentSize > 1) + columnAtCaret = columnAtCaretNext - indentSize; + + if (columnOpposite == 0) + columnOpposite = columnAtCaret; + } + + long column = columnAtCaret; + + if (column > columnOpposite) + column = columnOpposite; + + SendScintilla(SCI_SETHIGHLIGHTGUIDE, column); + } +} + + +// Check if the character at a position is a brace. +long QsciScintilla::checkBrace(long pos, int brace_style, bool &colonMode) +{ + long brace_pos = -1; + char ch = SendScintilla(SCI_GETCHARAT, pos); + + if (ch == ':') + { + // A bit of a hack, we should really use a virtual. + if (!lex.isNull() && qstrcmp(lex->lexer(), "python") == 0) + { + brace_pos = pos; + colonMode = true; + } + } + else if (ch && strchr("[](){}<>", ch)) + { + if (brace_style < 0) + brace_pos = pos; + else + { + int style = SendScintilla(SCI_GETSTYLEAT, pos) & 0x1f; + + if (style == brace_style) + brace_pos = pos; + } + } + + return brace_pos; +} + + +// Find a brace and it's match. Return true if the current position is inside +// a pair of braces. +bool QsciScintilla::findMatchingBrace(long &brace, long &other,BraceMatch mode) +{ + bool colonMode = false; + int brace_style = (lex.isNull() ? -1 : lex->braceStyle()); + + brace = -1; + other = -1; + + long caretPos = SendScintilla(SCI_GETCURRENTPOS); + + if (caretPos > 0) + brace = checkBrace(caretPos - 1, brace_style, colonMode); + + bool isInside = false; + + if (brace < 0 && mode == SloppyBraceMatch) + { + brace = checkBrace(caretPos, brace_style, colonMode); + + if (brace >= 0 && !colonMode) + isInside = true; + } + + if (brace >= 0) + { + if (colonMode) + { + // Find the end of the Python indented block. + long lineStart = SendScintilla(SCI_LINEFROMPOSITION, brace); + long lineMaxSubord = SendScintilla(SCI_GETLASTCHILD, lineStart, -1); + + other = SendScintilla(SCI_GETLINEENDPOSITION, lineMaxSubord); + } + else + other = SendScintilla(SCI_BRACEMATCH, brace); + + if (other > brace) + isInside = !isInside; + } + + return isInside; +} + + +// Move to the matching brace. +void QsciScintilla::moveToMatchingBrace() +{ + gotoMatchingBrace(false); +} + + +// Select to the matching brace. +void QsciScintilla::selectToMatchingBrace() +{ + gotoMatchingBrace(true); +} + + +// Move to the matching brace and optionally select the text. +void QsciScintilla::gotoMatchingBrace(bool select) +{ + long braceAtCaret; + long braceOpposite; + + bool isInside = findMatchingBrace(braceAtCaret, braceOpposite, + SloppyBraceMatch); + + if (braceOpposite >= 0) + { + // Convert the character positions into caret positions based on + // whether the caret position was inside or outside the braces. + if (isInside) + { + if (braceOpposite > braceAtCaret) + braceAtCaret++; + else + braceOpposite++; + } + else + { + if (braceOpposite > braceAtCaret) + braceOpposite++; + else + braceAtCaret++; + } + + ensureLineVisible(SendScintilla(SCI_LINEFROMPOSITION, braceOpposite)); + + if (select) + SendScintilla(SCI_SETSEL, braceAtCaret, braceOpposite); + else + SendScintilla(SCI_SETSEL, braceOpposite, braceOpposite); + } +} + + +// Return a position from a line number and an index within the line. +int QsciScintilla::positionFromLineIndex(int line, int index) const +{ + int pos = SendScintilla(SCI_POSITIONFROMLINE, line); + + // Allow for multi-byte characters. + for(int i = 0; i < index; i++) + pos = SendScintilla(SCI_POSITIONAFTER, pos); + + return pos; +} + + +// Return a line number and an index within the line from a position. +void QsciScintilla::lineIndexFromPosition(int position, int *line, int *index) const +{ + int lin = SendScintilla(SCI_LINEFROMPOSITION, position); + int linpos = SendScintilla(SCI_POSITIONFROMLINE, lin); + int indx = 0; + + // Allow for multi-byte characters. + while (linpos < position) + { + int new_linpos = SendScintilla(SCI_POSITIONAFTER, linpos); + + // If the position hasn't moved then we must be at the end of the text + // (which implies that the position passed was beyond the end of the + // text). + if (new_linpos == linpos) + break; + + linpos = new_linpos; + ++indx; + } + + *line = lin; + *index = indx; +} + + +// Set the source of the automatic auto-completion list. +void QsciScintilla::setAutoCompletionSource(AutoCompletionSource source) +{ + acSource = source; +} + + +// Set the threshold for automatic auto-completion. +void QsciScintilla::setAutoCompletionThreshold(int thresh) +{ + acThresh = thresh; +} + + +// Set the auto-completion word separators if there is no current lexer. +void QsciScintilla::setAutoCompletionWordSeparators(const QStringList &separators) +{ + if (lex.isNull()) + wseps = separators; +} + + +// Explicitly auto-complete from all sources. +void QsciScintilla::autoCompleteFromAll() +{ + startAutoCompletion(AcsAll, false, use_single != AcusNever); +} + + +// Explicitly auto-complete from the APIs. +void QsciScintilla::autoCompleteFromAPIs() +{ + startAutoCompletion(AcsAPIs, false, use_single != AcusNever); +} + + +// Explicitly auto-complete from the document. +void QsciScintilla::autoCompleteFromDocument() +{ + startAutoCompletion(AcsDocument, false, use_single != AcusNever); +} + + +// Check if a character can be in a word. +bool QsciScintilla::isWordCharacter(char ch) const +{ + return (strchr(wchars, ch) != NULL); +} + + +// Return the set of valid word characters. +const char *QsciScintilla::wordCharacters() const +{ + return wchars; +} + + +// Recolour the document. +void QsciScintilla::recolor(int start, int end) +{ + SendScintilla(SCI_COLOURISE, start, end); +} + + +// Registered a QPixmap image. +void QsciScintilla::registerImage(int id, const QPixmap &pm) +{ + SendScintilla(SCI_REGISTERIMAGE, id, pm); +} + + +// Registered a QImage image. +void QsciScintilla::registerImage(int id, const QImage &im) +{ + SendScintilla(SCI_RGBAIMAGESETHEIGHT, im.height()); + SendScintilla(SCI_RGBAIMAGESETWIDTH, im.width()); + SendScintilla(SCI_REGISTERRGBAIMAGE, id, im); +} + + +// Clear all registered images. +void QsciScintilla::clearRegisteredImages() +{ + SendScintilla(SCI_CLEARREGISTEREDIMAGES); +} + + +// Enable auto-completion fill-ups. +void QsciScintilla::setAutoCompletionFillupsEnabled(bool enable) +{ + const char *fillups; + + if (!enable) + fillups = ""; + else if (!lex.isNull()) + fillups = lex->autoCompletionFillups(); + else + fillups = explicit_fillups.data(); + + SendScintilla(SCI_AUTOCSETFILLUPS, fillups); + + fillups_enabled = enable; +} + + +// See if auto-completion fill-ups are enabled. +bool QsciScintilla::autoCompletionFillupsEnabled() const +{ + return fillups_enabled; +} + + +// Set the fill-up characters for auto-completion if there is no current lexer. +void QsciScintilla::setAutoCompletionFillups(const char *fillups) +{ + explicit_fillups = fillups; + setAutoCompletionFillupsEnabled(fillups_enabled); +} + + +// Set the case sensitivity for auto-completion. +void QsciScintilla::setAutoCompletionCaseSensitivity(bool cs) +{ + SendScintilla(SCI_AUTOCSETIGNORECASE, !cs); +} + + +// Return the case sensitivity for auto-completion. +bool QsciScintilla::autoCompletionCaseSensitivity() const +{ + return !SendScintilla(SCI_AUTOCGETIGNORECASE); +} + + +// Set the replace word mode for auto-completion. +void QsciScintilla::setAutoCompletionReplaceWord(bool replace) +{ + SendScintilla(SCI_AUTOCSETDROPRESTOFWORD, replace); +} + + +// Return the replace word mode for auto-completion. +bool QsciScintilla::autoCompletionReplaceWord() const +{ + return SendScintilla(SCI_AUTOCGETDROPRESTOFWORD); +} + + +// Set the single item mode for auto-completion. +void QsciScintilla::setAutoCompletionUseSingle(AutoCompletionUseSingle single) +{ + use_single = single; +} + + +// Return the single item mode for auto-completion. +QsciScintilla::AutoCompletionUseSingle QsciScintilla::autoCompletionUseSingle() const +{ + return use_single; +} + + +// Set the single item mode for auto-completion (deprecated). +void QsciScintilla::setAutoCompletionShowSingle(bool single) +{ + use_single = (single ? AcusExplicit : AcusNever); +} + + +// Return the single item mode for auto-completion (deprecated). +bool QsciScintilla::autoCompletionShowSingle() const +{ + return (use_single != AcusNever); +} + + +// Set current call tip position. +void QsciScintilla::setCallTipsPosition(CallTipsPosition position) +{ + SendScintilla(SCI_CALLTIPSETPOSITION, (position == CallTipsAboveText)); + call_tips_position = position; +} + + +// Set current call tip style. +void QsciScintilla::setCallTipsStyle(CallTipsStyle style) +{ + call_tips_style = style; +} + + +// Set maximum number of call tips displayed. +void QsciScintilla::setCallTipsVisible(int nr) +{ + maxCallTips = nr; +} + + +// Set the document to display. +void QsciScintilla::setDocument(const QsciDocument &document) +{ + if (doc.pdoc != document.pdoc) + { + doc.undisplay(this); + doc.attach(document); + doc.display(this,&document); + } +} + + +// Ensure the document is read-write and return true if was was read-only. +bool QsciScintilla::ensureRW() +{ + bool ro = isReadOnly(); + + if (ro) + setReadOnly(false); + + return ro; +} + + +// Return the number of the first visible line. +int QsciScintilla::firstVisibleLine() const +{ + return SendScintilla(SCI_GETFIRSTVISIBLELINE); +} + + +// Set the number of the first visible line. +void QsciScintilla::setFirstVisibleLine(int linenr) +{ + SendScintilla(SCI_SETFIRSTVISIBLELINE, linenr); +} + + +// Return the height in pixels of the text in a particular line. +int QsciScintilla::textHeight(int linenr) const +{ + return SendScintilla(SCI_TEXTHEIGHT, linenr); +} + + +// See if auto-completion or user list is active. +bool QsciScintilla::isListActive() const +{ + return SendScintilla(SCI_AUTOCACTIVE); +} + + +// Cancel any current auto-completion or user list. +void QsciScintilla::cancelList() +{ + SendScintilla(SCI_AUTOCCANCEL); +} + + +// Handle a selection from the auto-completion list. +void QsciScintilla::handleAutoCompletionSelection() +{ + if (!lex.isNull()) + { + QsciAbstractAPIs *apis = lex->apis(); + + if (apis) + apis->autoCompletionSelected(acSelection); + } +} + + +// Display a user list. +void QsciScintilla::showUserList(int id, const QStringList &list) +{ + // Sanity check to make sure auto-completion doesn't get confused. + if (id <= 0) + return; + + SendScintilla(SCI_AUTOCSETSEPARATOR, userSeparator); + + ScintillaBytes s = textAsBytes(list.join(QChar(userSeparator))); + SendScintilla(SCI_USERLISTSHOW, id, ScintillaBytesConstData(s)); +} + + +// Translate the SCN_USERLISTSELECTION notification into something more useful. +void QsciScintilla::handleUserListSelection(const char *text, int id) +{ + emit userListActivated(id, QString(text)); + + // Make sure the editor hasn't been deactivated as a side effect. + activateWindow(); +} + + +// Return the case sensitivity of any lexer. +bool QsciScintilla::caseSensitive() const +{ + return lex.isNull() ? true : lex->caseSensitive(); +} + + +// Return true if the current list is an auto-completion list rather than a +// user list. +bool QsciScintilla::isAutoCompletionList() const +{ + return (SendScintilla(SCI_AUTOCGETSEPARATOR) == acSeparator); +} + + +// Read the text from a QIODevice. +bool QsciScintilla::read(QIODevice *io) +{ + const int min_size = 1024 * 8; + + int buf_size = min_size; + char *buf = new char[buf_size]; + + int data_len = 0; + bool ok = true; + + qint64 part; + + // Read the whole lot in so we don't have to worry about character + // boundaries. + do + { + // Make sure there is a minimum amount of room. + if (buf_size - data_len < min_size) + { + buf_size *= 2; + char *new_buf = new char[buf_size * 2]; + + memcpy(new_buf, buf, data_len); + delete[] buf; + buf = new_buf; + } + + part = io->read(buf + data_len, buf_size - data_len - 1); + + data_len += part; + } + while (part > 0); + + if (part < 0) + ok = false; + else + { + buf[data_len] = '\0'; + + bool ro = ensureRW(); + + SendScintilla(SCI_SETTEXT, buf); + SendScintilla(SCI_EMPTYUNDOBUFFER); + + setReadOnly(ro); + } + + delete[] buf; + + return ok; +} + + +// Write the text to a QIODevice. +bool QsciScintilla::write(QIODevice *io) const +{ + const char *buf = reinterpret_cast(SendScintillaPtrResult(SCI_GETCHARACTERPOINTER)); + + const char *bp = buf; + uint buflen = qstrlen(buf); + + while (buflen > 0) + { + qint64 part = io->write(bp, buflen); + + if (part < 0) + return false; + + bp += part; + buflen -= part; + } + + return true; +} + + +// Return the word at the given coordinates. +QString QsciScintilla::wordAtLineIndex(int line, int index) const +{ + return wordAtPosition(positionFromLineIndex(line, index)); +} + + +// Return the word at the given coordinates. +QString QsciScintilla::wordAtPoint(const QPoint &point) const +{ + long close_pos = SendScintilla(SCI_POSITIONFROMPOINTCLOSE, point.x(), + point.y()); + + return wordAtPosition(close_pos); +} + + +// Return the word at the given position. +QString QsciScintilla::wordAtPosition(int position) const +{ + if (position < 0) + return QString(); + + long start_pos = SendScintilla(SCI_WORDSTARTPOSITION, position, true); + long end_pos = SendScintilla(SCI_WORDENDPOSITION, position, true); + int word_len = end_pos - start_pos; + + if (word_len <= 0) + return QString(); + + char *buf = new char[word_len + 1]; + SendScintilla(SCI_GETTEXTRANGE, start_pos, end_pos, buf); + QString word = bytesAsText(buf); + delete[] buf; + + return word; +} + + +// Return the display style for annotations. +QsciScintilla::AnnotationDisplay QsciScintilla::annotationDisplay() const +{ + return (AnnotationDisplay)SendScintilla(SCI_ANNOTATIONGETVISIBLE); +} + + +// Set the display style for annotations. +void QsciScintilla::setAnnotationDisplay(QsciScintilla::AnnotationDisplay display) +{ + SendScintilla(SCI_ANNOTATIONSETVISIBLE, display); + setScrollBars(); +} + + +// Clear annotations. +void QsciScintilla::clearAnnotations(int line) +{ + if (line >= 0) + SendScintilla(SCI_ANNOTATIONSETTEXT, line, (const char *)0); + else + SendScintilla(SCI_ANNOTATIONCLEARALL); + + setScrollBars(); +} + + +// Annotate a line. +void QsciScintilla::annotate(int line, const QString &text, int style) +{ + int style_offset = SendScintilla(SCI_ANNOTATIONGETSTYLEOFFSET); + + ScintillaBytes s = textAsBytes(text); + + SendScintilla(SCI_ANNOTATIONSETTEXT, line, ScintillaBytesConstData(s)); + SendScintilla(SCI_ANNOTATIONSETSTYLE, line, style - style_offset); + + setScrollBars(); +} + + +// Annotate a line. +void QsciScintilla::annotate(int line, const QString &text, const QsciStyle &style) +{ + style.apply(this); + + annotate(line, text, style.style()); +} + + +// Annotate a line. +void QsciScintilla::annotate(int line, const QsciStyledText &text) +{ + text.apply(this); + + annotate(line, text.text(), text.style()); +} + + +// Annotate a line. +void QsciScintilla::annotate(int line, const QList &text) +{ + char *styles; + ScintillaBytes styled_text = styleText(text, &styles, + SendScintilla(SCI_ANNOTATIONGETSTYLEOFFSET)); + + SendScintilla(SCI_ANNOTATIONSETTEXT, line, + ScintillaBytesConstData(styled_text)); + SendScintilla(SCI_ANNOTATIONSETSTYLES, line, styles); + + delete[] styles; +} + + +// Get the annotation for a line, if any. +QString QsciScintilla::annotation(int line) const +{ + char *buf = new char[SendScintilla(SCI_ANNOTATIONGETTEXT, line, (const char *)0) + 1]; + + buf[SendScintilla(SCI_ANNOTATIONGETTEXT, line, buf)] = '\0'; + + QString qs = bytesAsText(buf); + delete[] buf; + + return qs; +} + + +// Convert a list of styled text to the low-level arrays. +QsciScintillaBase::ScintillaBytes QsciScintilla::styleText(const QList &styled_text, char **styles, int style_offset) +{ + QString text; + int i; + + // Build the full text. + for (i = 0; i < styled_text.count(); ++i) + { + const QsciStyledText &st = styled_text[i]; + + st.apply(this); + + text.append(st.text()); + } + + ScintillaBytes s = textAsBytes(text); + + // There is a style byte for every byte. + char *sp = *styles = new char[s.length()]; + + for (i = 0; i < styled_text.count(); ++i) + { + const QsciStyledText &st = styled_text[i]; + ScintillaBytes part = textAsBytes(st.text()); + int part_length = part.length(); + + for (int c = 0; c < part_length; ++c) + *sp++ = (char)(st.style() - style_offset); + } + + return s; +} + + +// Convert Scintilla modifiers to the Qt equivalent. +int QsciScintilla::mapModifiers(int modifiers) +{ + int state = 0; + + if (modifiers & SCMOD_SHIFT) + state |= Qt::ShiftModifier; + + if (modifiers & SCMOD_CTRL) + state |= Qt::ControlModifier; + + if (modifiers & SCMOD_ALT) + state |= Qt::AltModifier; + + if (modifiers & (SCMOD_SUPER | SCMOD_META)) + state |= Qt::MetaModifier; + + return state; +} + + +// We no longer add features to the Qt3 version if it is a hassle. + +// Re-implemented to handle shortcut overrides. +bool QsciScintilla::event(QEvent *e) +{ + if (e->type() == QEvent::ShortcutOverride && !isReadOnly()) + { + QKeyEvent *ke = static_cast(e); + + if (ke->key()) + { + // We want ordinary characters. + if ((ke->modifiers() == Qt::NoModifier || ke->modifiers() == Qt::ShiftModifier || ke->modifiers() == Qt::KeypadModifier) && ke->key() < Qt::Key_Escape) + { + ke->accept(); + return true; + } + + // We want any key that is bound. + QsciCommand *cmd = stdCmds->boundTo(ke->key() | ke->modifiers()); + + if (cmd) + { + ke->accept(); + return true; + } + } + } + + return QsciScintillaBase::event(e); +} + + +// Re-implemented to handle chenges to the enabled state. +void QsciScintilla::changeEvent(QEvent *e) +{ + QsciScintillaBase::changeEvent(e); + + if (e->type() != QEvent::EnabledChange) + return; + + if (isEnabled()) + SendScintilla(SCI_SETCARETSTYLE, CARETSTYLE_LINE); + else + SendScintilla(SCI_SETCARETSTYLE, CARETSTYLE_INVISIBLE); + + QColor fore = palette().color(QPalette::Disabled, QPalette::Text); + QColor back = palette().color(QPalette::Disabled, QPalette::Base); + + if (lex.isNull()) + { + if (isEnabled()) + { + fore = nl_text_colour; + back = nl_paper_colour; + } + + SendScintilla(SCI_STYLESETFORE, 0, fore); + + // Assume style 0 applies to everything so that we don't need to use + // SCI_STYLECLEARALL which clears everything. We still have to set the + // default style as well for the background without any text. + SendScintilla(SCI_STYLESETBACK, 0, back); + SendScintilla(SCI_STYLESETBACK, STYLE_DEFAULT, back); + } + else + { + setEnabledColors(STYLE_DEFAULT, fore, back); + + int nrStyles = 1 << SendScintilla(SCI_GETSTYLEBITS); + + for (int s = 0; s < nrStyles; ++s) + if (!lex->description(s).isNull()) + setEnabledColors(s, fore, back); + } +} + + +// Set the foreground and background colours for a style. +void QsciScintilla::setEnabledColors(int style, QColor &fore, QColor &back) +{ + if (isEnabled()) + { + fore = lex->color(style); + back = lex->paper(style); + } + + handleStyleColorChange(fore, style); + handleStylePaperChange(back, style); +} + + +// Re-implemented to implement a more Qt-like context menu. +void QsciScintilla::contextMenuEvent(QContextMenuEvent *e) +{ + QMenu *menu = createStandardContextMenu(); + + if (menu) + { + menu->setAttribute(Qt::WA_DeleteOnClose); + menu->popup(e->globalPos()); + } +} + + +// Create an instance of the standard context menu. +QMenu *QsciScintilla::createStandardContextMenu() +{ + bool read_only = isReadOnly(); + bool has_selection = hasSelectedText(); + QMenu *menu = new QMenu(this); + QAction *action; + + if (!read_only) + { + action = menu->addAction(tr("&Undo"), this, SLOT(undo())); + set_shortcut(action, QsciCommand::Undo); + action->setEnabled(isUndoAvailable()); + + action = menu->addAction(tr("&Redo"), this, SLOT(redo())); + set_shortcut(action, QsciCommand::Redo); + action->setEnabled(isRedoAvailable()); + + menu->addSeparator(); + + action = menu->addAction(tr("Cu&t"), this, SLOT(cut())); + set_shortcut(action, QsciCommand::SelectionCut); + action->setEnabled(has_selection); + } + + action = menu->addAction(tr("&Copy"), this, SLOT(copy())); + set_shortcut(action, QsciCommand::SelectionCopy); + action->setEnabled(has_selection); + + if (!read_only) + { + action = menu->addAction(tr("&Paste"), this, SLOT(paste())); + set_shortcut(action, QsciCommand::Paste); + action->setEnabled(SendScintilla(SCI_CANPASTE)); + + action = menu->addAction(tr("Delete"), this, SLOT(delete_selection())); + action->setEnabled(has_selection); + } + + if (!menu->isEmpty()) + menu->addSeparator(); + + action = menu->addAction(tr("Select All"), this, SLOT(selectAll())); + set_shortcut(action, QsciCommand::SelectAll); + action->setEnabled(length() != 0); + + return menu; +} + + +// Set the shortcut for an action using any current key binding. +void QsciScintilla::set_shortcut(QAction *action, QsciCommand::Command cmd_id) const +{ + QsciCommand *cmd = stdCmds->find(cmd_id); + + if (cmd && cmd->key()) + action->setShortcut(QKeySequence(cmd->key())); +} + + +// Delete the current selection. +void QsciScintilla::delete_selection() +{ + SendScintilla(SCI_CLEAR); +} + diff --git a/Qt4Qt5/qsciscintillabase.cpp b/Qt4Qt5/qsciscintillabase.cpp new file mode 100644 index 0000000..cac1e22 --- /dev/null +++ b/Qt4Qt5/qsciscintillabase.cpp @@ -0,0 +1,810 @@ +// This module implements the "official" low-level API. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qsciscintillabase.h" + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "ScintillaQt.h" + + +// The #defines in Scintilla.h and the enums in qsciscintillabase.h conflict +// (because we want to use the same names) so we have to undefine those we use +// in this file. +#undef SCI_SETCARETPERIOD +#undef SCK_DOWN +#undef SCK_UP +#undef SCK_LEFT +#undef SCK_RIGHT +#undef SCK_HOME +#undef SCK_END +#undef SCK_PRIOR +#undef SCK_NEXT +#undef SCK_DELETE +#undef SCK_INSERT +#undef SCK_ESCAPE +#undef SCK_BACK +#undef SCK_TAB +#undef SCK_RETURN +#undef SCK_ADD +#undef SCK_SUBTRACT +#undef SCK_DIVIDE +#undef SCK_WIN +#undef SCK_RWIN +#undef SCK_MENU + + +// Remember if we have linked the lexers. +static bool lexersLinked = false; + +// The list of instances. +static QList poolList; + +// Mime support. +static const QLatin1String mimeTextPlain("text/plain"); +static const QLatin1String mimeRectangularWin("MSDEVColumnSelect"); +static const QLatin1String mimeRectangular("text/x-qscintilla-rectangular"); + +#if (QT_VERSION >= 0x040200 && QT_VERSION < 0x050000 && defined(Q_OS_MAC)) || (QT_VERSION >= 0x050200 && defined(Q_OS_OSX)) +extern void initialiseRectangularPasteboardMime(); +#endif + + +// The ctor. +QsciScintillaBase::QsciScintillaBase(QWidget *parent) + : QAbstractScrollArea(parent), preeditPos(-1), preeditNrBytes(0) +#if QT_VERSION >= 0x050000 + , clickCausedFocus(false) +#endif +{ + connect(verticalScrollBar(), SIGNAL(valueChanged(int)), + SLOT(handleVSb(int))); + + connect(horizontalScrollBar(), SIGNAL(valueChanged(int)), + SLOT(handleHSb(int))); + + setAcceptDrops(true); + setFocusPolicy(Qt::WheelFocus); + setAttribute(Qt::WA_KeyCompression); + setAttribute(Qt::WA_InputMethodEnabled); +#if QT_VERSION >= 0x050100 + setInputMethodHints( + Qt::ImhNoAutoUppercase|Qt::ImhNoPredictiveText|Qt::ImhMultiLine); +#elif QT_VERSION >= 0x040600 + setInputMethodHints(Qt::ImhNoAutoUppercase|Qt::ImhNoPredictiveText); +#endif + + viewport()->setBackgroundRole(QPalette::Base); + viewport()->setMouseTracking(true); + viewport()->setAttribute(Qt::WA_NoSystemBackground); + + triple_click.setSingleShot(true); + +#if (QT_VERSION >= 0x040200 && QT_VERSION < 0x050000 && defined(Q_OS_MAC)) || (QT_VERSION >= 0x050200 && defined(Q_OS_OSX)) + initialiseRectangularPasteboardMime(); +#endif + + sci = new QsciScintillaQt(this); + + SendScintilla(SCI_SETCARETPERIOD, QApplication::cursorFlashTime() / 2); + + // Make sure the lexers are linked in. + if (!lexersLinked) + { + Scintilla_LinkLexers(); + lexersLinked = true; + } + + QClipboard *cb = QApplication::clipboard(); + + if (cb->supportsSelection()) + connect(cb, SIGNAL(selectionChanged()), SLOT(handleSelection())); + + // Add it to the pool. + poolList.append(this); +} + + +// The dtor. +QsciScintillaBase::~QsciScintillaBase() +{ + // Remove it from the pool. + poolList.removeAt(poolList.indexOf(this)); + + delete sci; +} + + +// Return an instance from the pool. +QsciScintillaBase *QsciScintillaBase::pool() +{ + return poolList.first(); +} + + +// Tell Scintilla to update the scroll bars. Scintilla should be doing this +// itself. +void QsciScintillaBase::setScrollBars() +{ + sci->SetScrollBars(); +} + + +// Send a message to the real Scintilla widget using the low level Scintilla +// API. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + long lParam) const +{ + return sci->WndProc(msg, wParam, lParam); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + void *lParam) const +{ + return sci->WndProc(msg, wParam, reinterpret_cast(lParam)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + const char *lParam) const +{ + return sci->WndProc(msg, wParam, reinterpret_cast(lParam)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, + const char *lParam) const +{ + return sci->WndProc(msg, static_cast(0), + reinterpret_cast(lParam)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, const char *wParam, + const char *lParam) const +{ + return sci->WndProc(msg, reinterpret_cast(wParam), + reinterpret_cast(lParam)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, long wParam) const +{ + return sci->WndProc(msg, static_cast(wParam), + static_cast(0)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, int wParam) const +{ + return sci->WndProc(msg, static_cast(wParam), + static_cast(0)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, long cpMin, long cpMax, + char *lpstrText) const +{ + QSCI_SCI_NAMESPACE(TextRange) tr; + + tr.chrg.cpMin = cpMin; + tr.chrg.cpMax = cpMax; + tr.lpstrText = lpstrText; + + return sci->WndProc(msg, static_cast(0), + reinterpret_cast(&tr)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + const QColor &col) const +{ + sptr_t lParam = (col.blue() << 16) | (col.green() << 8) | col.red(); + + return sci->WndProc(msg, wParam, lParam); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, const QColor &col) const +{ + uptr_t wParam = (col.blue() << 16) | (col.green() << 8) | col.red(); + + return sci->WndProc(msg, wParam, static_cast(0)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + QPainter *hdc, const QRect &rc, long cpMin, long cpMax) const +{ + QSCI_SCI_NAMESPACE(RangeToFormat) rf; + + rf.hdc = rf.hdcTarget = reinterpret_cast(hdc); + + rf.rc.left = rc.left(); + rf.rc.top = rc.top(); + rf.rc.right = rc.right() + 1; + rf.rc.bottom = rc.bottom() + 1; + + rf.chrg.cpMin = cpMin; + rf.chrg.cpMax = cpMax; + + return sci->WndProc(msg, wParam, reinterpret_cast(&rf)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + const QPixmap &lParam) const +{ + return sci->WndProc(msg, wParam, reinterpret_cast(&lParam)); +} + + +// Overloaded message send. +long QsciScintillaBase::SendScintilla(unsigned int msg, unsigned long wParam, + const QImage &lParam) const +{ + return sci->WndProc(msg, wParam, reinterpret_cast(&lParam)); +} + + +// Send a message to the real Scintilla widget using the low level Scintilla +// API that returns a pointer result. +void *QsciScintillaBase::SendScintillaPtrResult(unsigned int msg) const +{ + return reinterpret_cast(sci->WndProc(msg, static_cast(0), + static_cast(0))); +} + + +// Handle the timer on behalf of the QsciScintillaQt instance. +void QsciScintillaBase::handleTimer() +{ + sci->Tick(); +} + + +// Re-implemented to handle the context menu. +void QsciScintillaBase::contextMenuEvent(QContextMenuEvent *e) +{ + sci->ContextMenu(QSCI_SCI_NAMESPACE(Point)(e->globalX(), e->globalY())); +} + + +// Re-implemented to tell the widget it has the focus. +void QsciScintillaBase::focusInEvent(QFocusEvent *e) +{ + sci->SetFocusState(true); + +#if QT_VERSION >= 0x050000 + clickCausedFocus = (e->reason() == Qt::MouseFocusReason); +#endif + + QAbstractScrollArea::focusInEvent(e); +} + + +// Re-implemented to tell the widget it has lost the focus. +void QsciScintillaBase::focusOutEvent(QFocusEvent *e) +{ + // Only tell Scintilla we have lost focus if the new active window isn't + // our auto-completion list. This is probably only an issue on Linux and + // there are still problems because subsequent focus out events don't + // always seem to get generated (at least with Qt5). + + if (e->reason() == Qt::ActiveWindowFocusReason) + { + QWidget *aw = QApplication::activeWindow(); + + if (!aw || aw->parent() != this || !aw->inherits("QsciSciListBox")) + sci->SetFocusState(false); + } + + QAbstractScrollArea::focusOutEvent(e); +} + + +// Re-implemented to make sure tabs are passed to the editor. +bool QsciScintillaBase::focusNextPrevChild(bool next) +{ + if (!sci->pdoc->IsReadOnly()) + return false; + + return QAbstractScrollArea::focusNextPrevChild(next); +} + + +// Handle the selection changing. +void QsciScintillaBase::handleSelection() +{ + if (!QApplication::clipboard()->ownsSelection()) + sci->UnclaimSelection(); +} + + +// Handle key presses. +void QsciScintillaBase::keyPressEvent(QKeyEvent *e) +{ + int modifiers = 0; + + if (e->modifiers() & Qt::ShiftModifier) + modifiers |= SCMOD_SHIFT; + + if (e->modifiers() & Qt::ControlModifier) + modifiers |= SCMOD_CTRL; + + if (e->modifiers() & Qt::AltModifier) + modifiers |= SCMOD_ALT; + + if (e->modifiers() & Qt::MetaModifier) + modifiers |= SCMOD_META; + + int key = commandKey(e->key(), modifiers); + + if (key) + { + bool consumed = false; + + sci->KeyDownWithModifiers(key, modifiers, &consumed); + + if (consumed) + { + e->accept(); + return; + } + } + + QString text = e->text(); + + if (!text.isEmpty() && text[0].isPrint()) + { + ScintillaBytes bytes = textAsBytes(text); + sci->AddCharUTF(bytes.data(), bytes.length()); + e->accept(); + } + else + { + QAbstractScrollArea::keyPressEvent(e); + } +} + + +// Map a Qt key to a valid Scintilla command key, or 0 if none. +int QsciScintillaBase::commandKey(int qt_key, int &modifiers) +{ + int key; + + switch (qt_key) + { + case Qt::Key_Down: + key = SCK_DOWN; + break; + + case Qt::Key_Up: + key = SCK_UP; + break; + + case Qt::Key_Left: + key = SCK_LEFT; + break; + + case Qt::Key_Right: + key = SCK_RIGHT; + break; + + case Qt::Key_Home: + key = SCK_HOME; + break; + + case Qt::Key_End: + key = SCK_END; + break; + + case Qt::Key_PageUp: + key = SCK_PRIOR; + break; + + case Qt::Key_PageDown: + key = SCK_NEXT; + break; + + case Qt::Key_Delete: + key = SCK_DELETE; + break; + + case Qt::Key_Insert: + key = SCK_INSERT; + break; + + case Qt::Key_Escape: + key = SCK_ESCAPE; + break; + + case Qt::Key_Backspace: + key = SCK_BACK; + break; + + case Qt::Key_Tab: + key = SCK_TAB; + break; + + case Qt::Key_Backtab: + // Scintilla assumes a backtab is shift-tab. + key = SCK_TAB; + modifiers |= SCMOD_SHIFT; + break; + + case Qt::Key_Return: + case Qt::Key_Enter: + key = SCK_RETURN; + break; + + case Qt::Key_Super_L: + key = SCK_WIN; + break; + + case Qt::Key_Super_R: + key = SCK_RWIN; + break; + + case Qt::Key_Menu: + key = SCK_MENU; + break; + + default: + if ((key = qt_key) > 0x7f) + key = 0; + } + + return key; +} + + +// Encode a QString as bytes. +QsciScintillaBase::ScintillaBytes QsciScintillaBase::textAsBytes(const QString &text) const +{ + if (sci->IsUnicodeMode()) + return text.toUtf8(); + + return text.toLatin1(); +} + + +// Decode bytes as a QString. +QString QsciScintillaBase::bytesAsText(const char *bytes) const +{ + if (sci->IsUnicodeMode()) + return QString::fromUtf8(bytes); + + return QString::fromLatin1(bytes); +} + + +// Handle a mouse button double click. +void QsciScintillaBase::mouseDoubleClickEvent(QMouseEvent *e) +{ + if (e->button() != Qt::LeftButton) + { + e->ignore(); + return; + } + + setFocus(); + + // Make sure Scintilla will interpret this as a double-click. + unsigned clickTime = sci->lastClickTime + QSCI_SCI_NAMESPACE(Platform)::DoubleClickTime() - 1; + + bool shift = e->modifiers() & Qt::ShiftModifier; + bool ctrl = e->modifiers() & Qt::ControlModifier; + bool alt = e->modifiers() & Qt::AltModifier; + + sci->ButtonDown(QSCI_SCI_NAMESPACE(Point)(e->x(), e->y()), clickTime, + shift, ctrl, alt); + + // Remember the current position and time in case it turns into a triple + // click. + triple_click_at = e->globalPos(); + triple_click.start(QApplication::doubleClickInterval()); +} + + +// Handle a mouse move. +void QsciScintillaBase::mouseMoveEvent(QMouseEvent *e) +{ + sci->ButtonMove(QSCI_SCI_NAMESPACE(Point)(e->x(), e->y())); +} + + +// Handle a mouse button press. +void QsciScintillaBase::mousePressEvent(QMouseEvent *e) +{ + setFocus(); + + QSCI_SCI_NAMESPACE(Point) pt(e->x(), e->y()); + + if (e->button() == Qt::LeftButton) + { + unsigned clickTime; + + // It is a triple click if the timer is running and the mouse hasn't + // moved too much. + if (triple_click.isActive() && (e->globalPos() - triple_click_at).manhattanLength() < QApplication::startDragDistance()) + clickTime = sci->lastClickTime + QSCI_SCI_NAMESPACE(Platform)::DoubleClickTime() - 1; + else + clickTime = sci->lastClickTime + QSCI_SCI_NAMESPACE(Platform)::DoubleClickTime() + 1; + + triple_click.stop(); + + // Scintilla uses the Alt modifier to initiate rectangular selection. + // However the GTK port (under X11, not Windows) uses the Control + // modifier (by default, although it is configurable). It does this + // because most X11 window managers hijack Alt-drag to move the window. + // We do the same, except that (for the moment at least) we don't allow + // the modifier to be configured. + bool shift = e->modifiers() & Qt::ShiftModifier; + bool ctrl = e->modifiers() & Qt::ControlModifier; +#if defined(Q_OS_MAC) || defined(Q_OS_WIN) + bool alt = e->modifiers() & Qt::AltModifier; +#else + bool alt = ctrl; +#endif + + sci->ButtonDown(pt, clickTime, shift, ctrl, alt); + } + else if (e->button() == Qt::MidButton) + { + QClipboard *cb = QApplication::clipboard(); + + if (cb->supportsSelection()) + { + int pos = sci->PositionFromLocation(pt); + + sci->sel.Clear(); + sci->SetSelection(pos, pos); + + sci->pasteFromClipboard(QClipboard::Selection); + } + } +} + + +// Handle a mouse button releases. +void QsciScintillaBase::mouseReleaseEvent(QMouseEvent *e) +{ + if (e->button() != Qt::LeftButton) + return; + + QSCI_SCI_NAMESPACE(Point) pt(e->x(), e->y()); + + if (sci->HaveMouseCapture()) + { + bool ctrl = e->modifiers() & Qt::ControlModifier; + + sci->ButtonUp(pt, 0, ctrl); + } + +#if QT_VERSION >= 0x050000 + if (!sci->pdoc->IsReadOnly() && !sci->PointInSelMargin(pt) && qApp->autoSipEnabled()) + { + QStyle::RequestSoftwareInputPanel rsip = QStyle::RequestSoftwareInputPanel(style()->styleHint(QStyle::SH_RequestSoftwareInputPanel)); + + if (!clickCausedFocus || rsip == QStyle::RSIP_OnMouseClick) + qApp->inputMethod()->show(); + } + + clickCausedFocus = false; +#endif +} + + +// Handle paint events. +void QsciScintillaBase::paintEvent(QPaintEvent *e) +{ + sci->paintEvent(e); +} + + +// Handle resize events. +void QsciScintillaBase::resizeEvent(QResizeEvent *) +{ + sci->ChangeSize(); +} + + +// Re-implemented to suppress the default behaviour as Scintilla works at a +// more fundamental level. +void QsciScintillaBase::scrollContentsBy(int, int) +{ +} + + +// Handle the vertical scrollbar. +void QsciScintillaBase::handleVSb(int value) +{ + sci->ScrollTo(value); +} + + +// Handle the horizontal scrollbar. +void QsciScintillaBase::handleHSb(int value) +{ + sci->HorizontalScrollTo(value); +} + + +// Handle drag enters. +void QsciScintillaBase::dragEnterEvent(QDragEnterEvent *e) +{ + QsciScintillaBase::dragMoveEvent(e); +} + + +// Handle drag leaves. +void QsciScintillaBase::dragLeaveEvent(QDragLeaveEvent *) +{ + sci->SetDragPosition(QSCI_SCI_NAMESPACE(SelectionPosition)()); +} + + +// Handle drag moves. +void QsciScintillaBase::dragMoveEvent(QDragMoveEvent *e) +{ + sci->SetDragPosition( + sci->SPositionFromLocation( + QSCI_SCI_NAMESPACE(Point)(e->pos().x(), e->pos().y()), + false, false, sci->UserVirtualSpace())); + + acceptAction(e); +} + + +// Handle drops. +void QsciScintillaBase::dropEvent(QDropEvent *e) +{ + bool moving; + int len; + const char *s; + bool rectangular; + + acceptAction(e); + + if (!e->isAccepted()) + return; + + moving = (e->dropAction() == Qt::MoveAction); + + QByteArray text = fromMimeData(e->mimeData(), rectangular); + len = text.length(); + s = text.data(); + + std::string dest = QSCI_SCI_NAMESPACE(Document)::TransformLineEnds(s, len, + sci->pdoc->eolMode); + + sci->DropAt(sci->posDrop, dest.c_str(), dest.length(), moving, + rectangular); + + sci->Redraw(); +} + + +void QsciScintillaBase::acceptAction(QDropEvent *e) +{ + if (sci->pdoc->IsReadOnly() || !canInsertFromMimeData(e->mimeData())) + e->ignore(); + else + e->acceptProposedAction(); +} + + + +// See if a MIME data object can be decoded. +bool QsciScintillaBase::canInsertFromMimeData(const QMimeData *source) const +{ + return source->hasFormat(mimeTextPlain); +} + + +// Create text from a MIME data object. +QByteArray QsciScintillaBase::fromMimeData(const QMimeData *source, bool &rectangular) const +{ + // See if it is rectangular. We try all of the different formats that + // Scintilla supports in case we are working across different platforms. + if (source->hasFormat(mimeRectangularWin)) + rectangular = true; + else if (source->hasFormat(mimeRectangular)) + rectangular = true; + else + rectangular = false; + + // Note that we don't support Scintilla's hack of adding a '\0' as Qt + // strips it off under the covers when pasting from another process. + QString utf8 = source->text(); + QByteArray text; + + if (sci->IsUnicodeMode()) + text = utf8.toUtf8(); + else + text = utf8.toLatin1(); + + return text; +} + + +// Create a MIME data object for some text. +QMimeData *QsciScintillaBase::toMimeData(const QByteArray &text, bool rectangular) const +{ + QMimeData *mime = new QMimeData; + + QString utf8; + + if (sci->IsUnicodeMode()) + utf8 = QString::fromUtf8(text.constData(), text.size()); + else + utf8 = QString::fromLatin1(text.constData(), text.size()); + + mime->setText(utf8); + + if (rectangular) + { + // Use the platform specific "standard" for specifying a rectangular + // selection. +#if defined(Q_OS_WIN) + mime->setData(mimeRectangularWin, QByteArray()); +#else + mime->setData(mimeRectangular, QByteArray()); +#endif + } + + return mime; +} + diff --git a/Qt4Qt5/qscistyle.cpp b/Qt4Qt5/qscistyle.cpp new file mode 100644 index 0000000..508e119 --- /dev/null +++ b/Qt4Qt5/qscistyle.cpp @@ -0,0 +1,185 @@ +// This module implements the QsciStyle class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscistyle.h" + +#include + +#include "Qsci/qsciscintillabase.h" + + +// A ctor. +QsciStyle::QsciStyle(int style) +{ + init(style); + + QPalette pal = QApplication::palette(); + setColor(pal.text().color()); + setPaper(pal.base().color()); + + setFont(QApplication::font()); + setEolFill(false); +} + + +// A ctor. +QsciStyle::QsciStyle(int style, const QString &description, + const QColor &color, const QColor &paper, const QFont &font, + bool eolFill) +{ + init(style); + + setDescription(description); + + setColor(color); + setPaper(paper); + + setFont(font); + setEolFill(eolFill); +} + + +// Initialisation common to all ctors. +void QsciStyle::init(int style) +{ + // The next style number to allocate. The initial values corresponds to + // the amount of space that Scintilla initially creates for styles. + static int next_style_nr = 63; + + // See if a new style should be allocated. Note that we allow styles to be + // passed in that are bigger than STYLE_MAX because the styles used for + // annotations are allowed to be. + if (style < 0) + { + // Note that we don't deal with the situation where the newly allocated + // style number has already been used explicitly. + if (next_style_nr > QsciScintillaBase::STYLE_LASTPREDEFINED) + style = next_style_nr--; + } + + style_nr = style; + + // Initialise the minor attributes. + setTextCase(QsciStyle::OriginalCase); + setVisible(true); + setChangeable(true); + setHotspot(false); +} + + +// Apply the style to a particular editor. +void QsciStyle::apply(QsciScintillaBase *sci) const +{ + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETFORE, style_nr, + style_color); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETBACK, style_nr, + style_paper); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETFONT, style_nr, + style_font.family().toLatin1().data()); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETSIZEFRACTIONAL, style_nr, + long(style_font.pointSizeF() * QsciScintillaBase::SC_FONT_SIZE_MULTIPLIER)); + + // Pass the Qt weight via the back door. + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETWEIGHT, style_nr, + -style_font.weight()); + + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETITALIC, style_nr, + style_font.italic()); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETUNDERLINE, style_nr, + style_font.underline()); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETEOLFILLED, style_nr, + style_eol_fill); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETCASE, style_nr, + (long)style_case); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETVISIBLE, style_nr, + style_visible); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETCHANGEABLE, style_nr, + style_changeable); + sci->SendScintilla(QsciScintillaBase::SCI_STYLESETHOTSPOT, style_nr, + style_hotspot); +} + + +// Set the color attribute. +void QsciStyle::setColor(const QColor &color) +{ + style_color = color; +} + + +// Set the paper attribute. +void QsciStyle::setPaper(const QColor &paper) +{ + style_paper = paper; +} + + +// Set the font attribute. +void QsciStyle::setFont(const QFont &font) +{ + style_font = font; +} + + +// Set the eol fill attribute. +void QsciStyle::setEolFill(bool eolFill) +{ + style_eol_fill = eolFill; +} + + +// Set the text case attribute. +void QsciStyle::setTextCase(QsciStyle::TextCase text_case) +{ + style_case = text_case; +} + + +// Set the visible attribute. +void QsciStyle::setVisible(bool visible) +{ + style_visible = visible; +} + + +// Set the changeable attribute. +void QsciStyle::setChangeable(bool changeable) +{ + style_changeable = changeable; +} + + +// Set the hotspot attribute. +void QsciStyle::setHotspot(bool hotspot) +{ + style_hotspot = hotspot; +} + + +// Refresh the style. Note that since we had to add apply() then this can't do +// anything useful so we leave it as a no-op. +void QsciStyle::refresh() +{ +} diff --git a/Qt4Qt5/qscistyledtext.cpp b/Qt4Qt5/qscistyledtext.cpp new file mode 100644 index 0000000..df1e23e --- /dev/null +++ b/Qt4Qt5/qscistyledtext.cpp @@ -0,0 +1,59 @@ +// This module implements the QsciStyledText class. +// +// Copyright (c) 2014 Riverbank Computing Limited +// +// This file is part of QScintilla. +// +// This file may be used under the terms of the GNU General Public +// License versions 2.0 or 3.0 as published by the Free Software +// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 +// included in the packaging of this file. Alternatively you may (at +// your option) use any later version of the GNU General Public +// License if such license has been publicly approved by Riverbank +// Computing Limited (or its successors, if any) and the KDE Free Qt +// Foundation. In addition, as a special exception, Riverbank gives you +// certain additional rights. These rights are described in the Riverbank +// GPL Exception version 1.1, which can be found in the file +// GPL_EXCEPTION.txt in this package. +// +// If you are unsure which license is appropriate for your use, please +// contact the sales department at sales@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +#include "Qsci/qscistyledtext.h" + +#include "Qsci/qsciscintillabase.h" +#include "Qsci/qscistyle.h" + + +// A ctor. +QsciStyledText::QsciStyledText(const QString &text, int style) + : styled_text(text), style_nr(style), explicit_style(0) +{ +} + + +// A ctor. +QsciStyledText::QsciStyledText(const QString &text, const QsciStyle &style) + : styled_text(text), style_nr(-1) +{ + explicit_style = new QsciStyle(style); +} + + +// Return the number of the style. +int QsciStyledText::style() const +{ + return explicit_style ? explicit_style->style() : style_nr; +} + + +// Apply any explicit style to an editor. +void QsciStyledText::apply(QsciScintillaBase *sci) const +{ + if (explicit_style) + explicit_style->apply(sci); +} diff --git a/README b/README new file mode 100644 index 0000000..7b69e75 --- /dev/null +++ b/README @@ -0,0 +1,5 @@ +All the documentation for QScintilla for Qt v4 and Qt v5 (including +installation instructions) can be found in doc/html-Qt4Qt5/index.html. + +All the documentation for QScintilla for Qt v3 (including installation +instructions) can be found in doc/html-Qt3/index.html. diff --git a/designer-Qt3/designer.pro b/designer-Qt3/designer.pro new file mode 100644 index 0000000..afca518 --- /dev/null +++ b/designer-Qt3/designer.pro @@ -0,0 +1,12 @@ +# This is the qmake file for the QScintilla plugin for Qt Designer. + + +TEMPLATE = lib +TARGET = qscintillaplugin +DESTDIR = $(QTDIR)/plugins/designer + +CONFIG += qt warn_on release plugin + +SOURCES += qscintillaplugin.cpp + +LIBS += -lqscintilla2 diff --git a/designer-Qt3/qscintillaplugin.cpp b/designer-Qt3/qscintillaplugin.cpp new file mode 100644 index 0000000..4113d0f --- /dev/null +++ b/designer-Qt3/qscintillaplugin.cpp @@ -0,0 +1,154 @@ +// This implements the QScintilla plugin for Qt Designer. + + +#include + +#include + + +static const char *qscintilla_pixmap[] = { + "22 22 35 1", + "m c #000000", + "n c #000033", + "p c #003300", + "r c #003333", + "v c #330000", + "o c #330033", + "l c #333300", + "h c #333333", + "c c #333366", + "d c #336666", + "u c #336699", + "E c #3366cc", + "k c #663333", + "i c #663366", + "b c #666666", + "e c #666699", + "A c #6666cc", + "G c #669966", + "f c #669999", + "j c #6699cc", + "y c #6699ff", + "t c #996666", + "a c #999999", + "g c #9999cc", + "s c #9999ff", + "C c #99cc99", + "x c #99cccc", + "w c #99ccff", + "F c #cc99ff", + "q c #cccccc", + "# c #ccccff", + "B c #ccffcc", + "z c #ccffff", + "D c #ffffcc", + ". c none", + "........#abcda........", + "......abefghdidcf.....", + ".....cadhfaehjheck....", + "....leh.m.ncbehjddo...", + "...depn.hqhqhr#mccch..", + "..bb.hcaeh.hqersjhjcd.", + ".tcm.uqn.hc.uvwxhuygha", + ".feh.n.hb.hhzemcwhmuAm", + "Bgehghqqme.eo#wlnysbnj", + "awhdAzn.engjepswhmuyuj", + "bCh#m.de.jpqwbmcwemlcz", + "hcb#xh.nd#qrbswfehwzbm", + "bd#d.A#zor#qmgbzwgjgws", + "ajbcuqhqzchwwbemewchmr", + "Dcn#cwmhgwehgsxbmhEjAc", + ".uanauFrhbgeahAAbcbuhh", + ".bohdAegcccfbbebuucmhe", + "..briuauAediddeclchhh.", + "...hcbhjccdecbceccch..", + "....nhcmeccdccephcp...", + ".....crbhchhhrhhck....", + "......tcmdhohhcnG....." +}; + + +class QScintillaPlugin : public QWidgetPlugin +{ +public: + QScintillaPlugin() {}; + + QStringList keys() const; + QWidget *create(const QString &classname, QWidget *parent = 0, const char *name = 0); + QString group(const QString &) const; + QIconSet iconSet(const QString &) const; + QString includeFile(const QString &) const; + QString toolTip(const QString &) const; + QString whatsThis(const QString &) const; + bool isContainer(const QString &) const; +}; + + +QStringList QScintillaPlugin::keys() const +{ + QStringList list; + + list << "QsciScintilla"; + + return list; +} + + +QWidget *QScintillaPlugin::create(const QString &key, QWidget *parent, const char *name) +{ + if (key == "QsciScintilla") + return new QsciScintilla(parent, name); + + return 0; +} + + +QString QScintillaPlugin::group(const QString &feature) const +{ + if (feature == "QsciScintilla") + return "Input"; + + return QString::null; +} + + +QIconSet QScintillaPlugin::iconSet(const QString &) const +{ + return QIconSet(QPixmap(qscintilla_pixmap)); +} + + +QString QScintillaPlugin::includeFile(const QString &feature) const +{ + if (feature == "QsciScintilla") + return "qsciscintilla.h"; + + return QString::null; +} + + +QString QScintillaPlugin::toolTip(const QString &feature) const +{ + if (feature == "QsciScintilla") + return "QScintilla Programmer's Editor"; + + return QString::null; +} + + +QString QScintillaPlugin::whatsThis(const QString &feature) const +{ + if (feature == "QsciScintilla") + return "A port to Qt of the Scintilla programmer's editor"; + + return QString::null; +} + + +bool QScintillaPlugin::isContainer(const QString &) const +{ + return FALSE; +} + + +Q_EXPORT_PLUGIN(QScintillaPlugin) diff --git a/designer-Qt4Qt5/designer.pro b/designer-Qt4Qt5/designer.pro new file mode 100644 index 0000000..e3432ff --- /dev/null +++ b/designer-Qt4Qt5/designer.pro @@ -0,0 +1,26 @@ +# This is the qmake file for the QScintilla plugin for Qt Designer. + + +TEMPLATE = lib +TARGET = qscintillaplugin + +CONFIG += release plugin qscintilla2 + +greaterThan(QT_MAJOR_VERSION, 4) { + QT += designer + + # Work around QTBUG-39300. + CONFIG -= android_install +} else { + CONFIG += designer +} + +macx { + QMAKE_POST_LINK = install_name_tool -change libqscintilla2.11.dylib $$[QT_INSTALL_LIBS]/libqscintilla2.11.dylib $(TARGET) +} + +HEADERS = qscintillaplugin.h +SOURCES = qscintillaplugin.cpp + +target.path = $$[QT_INSTALL_PLUGINS]/designer +INSTALLS += target diff --git a/designer-Qt4Qt5/qscintillaplugin.cpp b/designer-Qt4Qt5/qscintillaplugin.cpp new file mode 100644 index 0000000..6e43782 --- /dev/null +++ b/designer-Qt4Qt5/qscintillaplugin.cpp @@ -0,0 +1,167 @@ +// This implements the QScintilla plugin for Qt Designer. + + +#include "qscintillaplugin.h" + +#include + +#include + + +static const char *qscintilla_pixmap[] = { + "22 22 35 1", + "m c #000000", + "n c #000033", + "p c #003300", + "r c #003333", + "v c #330000", + "o c #330033", + "l c #333300", + "h c #333333", + "c c #333366", + "d c #336666", + "u c #336699", + "E c #3366cc", + "k c #663333", + "i c #663366", + "b c #666666", + "e c #666699", + "A c #6666cc", + "G c #669966", + "f c #669999", + "j c #6699cc", + "y c #6699ff", + "t c #996666", + "a c #999999", + "g c #9999cc", + "s c #9999ff", + "C c #99cc99", + "x c #99cccc", + "w c #99ccff", + "F c #cc99ff", + "q c #cccccc", + "# c #ccccff", + "B c #ccffcc", + "z c #ccffff", + "D c #ffffcc", + ". c none", + "........#abcda........", + "......abefghdidcf.....", + ".....cadhfaehjheck....", + "....leh.m.ncbehjddo...", + "...depn.hqhqhr#mccch..", + "..bb.hcaeh.hqersjhjcd.", + ".tcm.uqn.hc.uvwxhuygha", + ".feh.n.hb.hhzemcwhmuAm", + "Bgehghqqme.eo#wlnysbnj", + "awhdAzn.engjepswhmuyuj", + "bCh#m.de.jpqwbmcwemlcz", + "hcb#xh.nd#qrbswfehwzbm", + "bd#d.A#zor#qmgbzwgjgws", + "ajbcuqhqzchwwbemewchmr", + "Dcn#cwmhgwehgsxbmhEjAc", + ".uanauFrhbgeahAAbcbuhh", + ".bohdAegcccfbbebuucmhe", + "..briuauAediddeclchhh.", + "...hcbhjccdecbceccch..", + "....nhcmeccdccephcp...", + ".....crbhchhhrhhck....", + "......tcmdhohhcnG....." +}; + + +QScintillaPlugin::QScintillaPlugin(QObject *parent) + : QObject(parent), initialized(false) +{ +} + + +QScintillaPlugin::~QScintillaPlugin() +{ +} + + +void QScintillaPlugin::initialize(QDesignerFormEditorInterface * /* core */) +{ + initialized = true; +} + + +bool QScintillaPlugin::isInitialized() const +{ + return initialized; +} + + +QWidget *QScintillaPlugin::createWidget(QWidget *parent) +{ + return new QsciScintilla(parent); +} + + +QString QScintillaPlugin::name() const +{ + return "QsciScintilla"; +} + + +QString QScintillaPlugin::group() const +{ + return "Input Widgets"; +} + + +QIcon QScintillaPlugin::icon() const +{ + return QIcon(QPixmap(qscintilla_pixmap)); +} + + +QString QScintillaPlugin::toolTip() const +{ + return "QScintilla Programmer's Editor"; +} + + +QString QScintillaPlugin::whatsThis() const +{ + return "A port to Qt of the Scintilla programmer's editor"; +} + + +bool QScintillaPlugin::isContainer() const +{ + return false; +} + + +QString QScintillaPlugin::domXml() const +{ + return "\n" + " \n" + " \n" + " 0\n" + " 0\n" + " 400\n" + " 200\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "\n"; +} + + +QString QScintillaPlugin::includeFile() const +{ + return "Qsci/qsciscintilla.h"; +} + + +#if QT_VERSION < 0x050000 +Q_EXPORT_PLUGIN2(qscintillaplugin, QScintillaPlugin) +#endif diff --git a/designer-Qt4Qt5/qscintillaplugin.h b/designer-Qt4Qt5/qscintillaplugin.h new file mode 100644 index 0000000..cd66477 --- /dev/null +++ b/designer-Qt4Qt5/qscintillaplugin.h @@ -0,0 +1,38 @@ +// This defines the QScintilla plugin for Qt Designer. + + +#ifndef _QSCINTILLAPLUGIN_H +#define _QSCINTILLAPLUGIN_H + +#include + + +class QScintillaPlugin : public QObject, public QDesignerCustomWidgetInterface +{ + Q_OBJECT +#if QT_VERSION >= 0x050000 + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface") +#endif + Q_INTERFACES(QDesignerCustomWidgetInterface) + +public: + QScintillaPlugin(QObject *parent = 0); + virtual ~QScintillaPlugin(); + + bool isContainer() const; + bool isInitialized() const; + QIcon icon() const; + QString domXml() const; + QString group() const; + QString includeFile() const; + QString name() const; + QString toolTip() const; + QString whatsThis() const; + QWidget *createWidget(QWidget *parent); + void initialize(QDesignerFormEditorInterface *core); + +private: + bool initialized; +}; + +#endif diff --git a/doc/README-Qt3.doc b/doc/README-Qt3.doc new file mode 100644 index 0000000..c9f7899 --- /dev/null +++ b/doc/README-Qt3.doc @@ -0,0 +1,211 @@ +/*! \mainpage QScintilla - a Port to Qt v3 of Scintilla + +

Introduction

+ +QScintilla +is a port to Qt of the Scintilla +editing component. + +As well as features found in standard text editing components, Scintilla +includes features especially useful when editing and debugging source code: + +
    +
  • syntax styling with support for over 70 languages +
  • error indicators +
  • code completion +
  • call tips +
  • code folding +
  • margins can contain markers like those used in debuggers to indicate + breakpoints and the current line. +
  • recordable macros +
  • multiple views +
  • printing. +
+ +QScintilla is a port or Scintilla to the Qt GUI toolkit from +Digia and runs on any operating system +supported by Qt (eg. Windows, UNIX/Linux, MacOS/X). QScintilla works with Qt +v3, v4 and v5. + +This documentation describes QScintilla for +Qt v3. +The QScintilla APIs for Qt v3 and Qt v4 and v5 are almost identical. The main +difference is that the QsciScintillaBase class is derived from a different Qt +class. + +QScintilla also includes language bindings for +Python. These require that +PyQt v4 or v5 is +also installed. + +This version of QScintilla is based on Scintilla v3.3.6. + + +

Licensing

+ +QScintilla is available under the +GNU General Public License v2, +GNU General Public License v3 +and a commercial license. + +The commercial license allows closed source applications using QScintilla to be +developed and distributed. At the moment the commercial version of QScintilla +is bundled with the commercial version of +PyQt. + +The Scintilla code within QScintilla is released under the following license: + +
+ License for Scintilla and SciTE
+
+ Copyright 1998-2003 by Neil Hodgson 
+
+ All Rights Reserved
+
+ Permission to use, copy, modify, and distribute this software and its
+ documentation for any purpose and without fee is hereby granted,
+ provided that the above copyright notice appear in all copies and that
+ both that copyright notice and this permission notice appear in
+ supporting documentation.
+
+ NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY
+ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
+ OR PERFORMANCE OF THIS SOFTWARE.
+
+ + +

Installation

+ +As supplied QScintilla will be built as a shared library/DLL and installed in +the same directories as the Qt libraries and include files. + +If you wish to build a static version of the library then pass +CONFIG+=staticlib on the qmake command line. + +If you want to make more significant changes to the configuration then edit the +file qscintilla.pro in the +Qt3 +directory. + + +See your qmake documentation for more details. + +To build and install QScintilla, run: + +
+    cd Qt3
+    qmake qscintilla.pro
+    make
+    make install
+
+ +If you have multiple versions of Qt installed then make sure you use the +correct version of qmake. + + +

Installation on Windows

+ +Before compiling QScintilla on Windows you should remove the Qsci +directory containing the QScintilla header files from any previous +installation. This is because the Makefile generated by +qmake will find these older header files instead of the new ones. + +Depending on the compiler you are using you may need to run nmake +rather than make. + +qmake on Windows does not support the installation of directory trees +and so you probably need to run: + +
+    nmake "COPY_DIR=xcopy /s /q /y /i" install
+
+ +qmake on Windows will not install the DLL and so you will probably +also want to run: + +
+    copy Qt3\\qscintilla2.dll %%QTDIR%\\bin
+
+ + +

Installation on MacOS/X

+ +On MacOS/X you may need to pass -spec macx-g++ in order to generate a +Makefile, otherwise an XCode project file may be created. In particular the +Qt Designer plugin will not load if you do not do this. + + + + +

Example Application

+ +The example application provided is a port of the standard Qt +application example with the QsciScintilla class being used instead of +Qt's QMultiLineEdit class. + +The example does not demonstrate all of the extra features of QScintilla. + +To build the example, run: + +
+    cd example-Qt3
+    qmake application.pro
+    make
+
+ +On Windows (and depending on the compiler you are using) you may need to run +nmake rather than make. + + +

Python Bindings

+ +The Python bindings are in the Python directory. You must have either +PyQt v4 or v5 already installed. QScintilla must also already be built and +installed. + +The configure, build and install the bindings for PyQt v4, run: + +
+    python configure.py
+    make
+    make install
+
+ +On Windows (and depending on the compiler you are using) you may need to run +nmake rather than make. + +If you want to build the bindings for PyQt v5 then pass --pyqt=PyQt5 +as an argument to configure.py. + +configure.py supports a number of other arguments. Pass -h +to display a list of the supported arguments. + +configure.py was re-written for QScintilla v2.7.1 to make use of new +features of PyQt v4.10. The old version is still provided as +configure-old.py. The new configure.py will automatically +invoke configure-old.py if it detects a version of PyQt earlier than +v4.10. You may of course explicitly run configure-old.py. + + +

Qt Designer Plugin

+ +QScintilla includes an optional plugin for Qt Designer that allows QScintilla +instances to be included in GUI designs just like any other Qt widget. + +To build the plugin on all platforms, make sure QScintilla is installed and +then run (as root or administrator): + +
+    cd designer-Qt3
+    qmake designer.pro
+    make
+
+ +On Windows (and depending on the compiler you are using) you may need to run +nmake rather than make. +*/ diff --git a/doc/README-Qt4Qt5.doc b/doc/README-Qt4Qt5.doc new file mode 100644 index 0000000..26c32dd --- /dev/null +++ b/doc/README-Qt4Qt5.doc @@ -0,0 +1,215 @@ +/*! \mainpage QScintilla - a Port to Qt v4 and Qt v5 of Scintilla + +

Introduction

+ +QScintilla +is a port to Qt of the Scintilla +editing component. + +As well as features found in standard text editing components, Scintilla +includes features especially useful when editing and debugging source code: + +
    +
  • syntax styling with support for over 70 languages +
  • error indicators +
  • code completion +
  • call tips +
  • code folding +
  • margins can contain markers like those used in debuggers to indicate + breakpoints and the current line. +
  • recordable macros +
  • multiple views +
  • printing. +
+ +QScintilla is a port or Scintilla to the Qt GUI toolkit from +Digia and runs on any operating system +supported by Qt (eg. Windows, UNIX/Linux, MacOS/X). QScintilla works with Qt +v3, v4 and v5. + +This documentation describes QScintilla for +Qt v4 and Qt v5. +The QScintilla APIs for Qt v3 and Qt v4 and v5 are almost identical. The main +difference is that the QsciScintillaBase class is derived from a different Qt +class. + +QScintilla also includes language bindings for +Python. These require that +PyQt v4 or v5 is +also installed. + +This version of QScintilla is based on Scintilla v3.3.6. + + +

Licensing

+ +QScintilla is available under the +GNU General Public License v2, +GNU General Public License v3 +and a commercial license. + +The commercial license allows closed source applications using QScintilla to be +developed and distributed. At the moment the commercial version of QScintilla +is bundled with the commercial version of +PyQt. + +The Scintilla code within QScintilla is released under the following license: + +
+ License for Scintilla and SciTE
+
+ Copyright 1998-2003 by Neil Hodgson 
+
+ All Rights Reserved
+
+ Permission to use, copy, modify, and distribute this software and its
+ documentation for any purpose and without fee is hereby granted,
+ provided that the above copyright notice appear in all copies and that
+ both that copyright notice and this permission notice appear in
+ supporting documentation.
+
+ NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY
+ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
+ OR PERFORMANCE OF THIS SOFTWARE.
+
+ + +

Installation

+ +As supplied QScintilla will be built as a shared library/DLL and installed in +the same directories as the Qt libraries and include files. + +If you wish to build a static version of the library then pass +CONFIG+=staticlib on the qmake command line. + +If you want to make more significant changes to the configuration then edit the +file qscintilla.pro in the +Qt4Qt5 +directory. + +If you do make changes, specifically to the names of the installation +directories or the name of the library, then you may also need to update the +Qt4Qt5/features/qscintilla2.prf file. + +See your qmake documentation for more details. + +To build and install QScintilla, run: + +
+    cd Qt4Qt5
+    qmake qscintilla.pro
+    make
+    make install
+
+ +If you have multiple versions of Qt installed then make sure you use the +correct version of qmake. + + +

Installation on Windows

+ +Before compiling QScintilla on Windows you should remove the Qsci +directory containing the QScintilla header files from any previous +installation. This is because the Makefile generated by +qmake will find these older header files instead of the new ones. + +Depending on the compiler you are using you may need to run nmake +rather than make. + +If you have built a Windows DLL then you probably also want to run: + +
+    copy %%QTDIR%\\lib\\qscintilla2.dll %%QTDIR%\\bin
+
+ + +

Installation on MacOS/X

+ +On MacOS/X you may need to pass -spec macx-g++ in order to generate a +Makefile, otherwise an XCode project file may be created. In particular the +Qt Designer plugin will not load if you do not do this. + + +

Integration with qmake

+ +To configure qmake to find your QScintilla installation, add the +following line to your application's .pro file: + +
+    CONFIG += qscintilla2
+
+ + +

Example Application

+ +The example application provided is a port of the standard Qt +application example with the QsciScintilla class being used instead of +Qt's QTextEdit class. + +The example does not demonstrate all of the extra features of QScintilla. + +To build the example, run: + +
+    cd example-Qt4Qt5
+    qmake application.pro
+    make
+
+ +On Windows (and depending on the compiler you are using) you may need to run +nmake rather than make. + + +

Python Bindings

+ +The Python bindings are in the Python directory. You must have either +PyQt v4 or v5 already installed. QScintilla must also already be built and +installed. + +The configure, build and install the bindings for PyQt v4, run: + +
+    python configure.py
+    make
+    make install
+
+ +On Windows (and depending on the compiler you are using) you may need to run +nmake rather than make. + +If you want to build the bindings for PyQt v5 then pass --pyqt=PyQt5 +as an argument to configure.py. + +configure.py supports a number of other arguments. Pass -h +to display a list of the supported arguments. + +configure.py was re-written for QScintilla v2.7.1 to make use of new +features of PyQt v4.10. The old version is still provided as +configure-old.py. The new configure.py will automatically +invoke configure-old.py if it detects a version of PyQt earlier than +v4.10. You may of course explicitly run configure-old.py. + + +

Qt Designer Plugin

+ +QScintilla includes an optional plugin for Qt Designer that allows QScintilla +instances to be included in GUI designs just like any other Qt widget. + +To build the plugin on all platforms, make sure QScintilla is installed and +then run (as root or administrator): + +
+    cd designer-Qt4Qt5
+    qmake designer.pro
+    make
+    make install
+
+ +On Windows (and depending on the compiler you are using) you may need to run +nmake rather than make. +*/ diff --git a/doc/Scintilla/Design.html b/doc/Scintilla/Design.html new file mode 100644 index 0000000..0ca231e --- /dev/null +++ b/doc/Scintilla/Design.html @@ -0,0 +1,249 @@ + + + + + + + + + Scintilla and SciTE + + + + + + + + +
+ Scintilla icon + + Scintilla + Component Design +
+

+ Top level structure +

+

+ Scintilla consists of three major layers of C++ code +

+
    +
  • + Portability Library +
  • +
  • + Core Code +
  • +
  • + Platform Events and API +
  • +
+

+ The primary purpose of this structure is to separate the platform dependent code from the + platform independent core code. This makes it easier to port Scintilla to a new platform and + ensures that most readers of the code do not have to deal with platform details. To minimise + portability problems and avoid code bloat, a conservative subset of C++ is used in Scintilla + with no exception handling, run time type information or use of the standard C++ + library and with limited use of templates. +

+

+ The currently supported platforms, Windows, GTK+/Linux and wxWindows are fairly similar in + many ways. + Each has windows, menus and bitmaps. These features generally work in similar ways so each + has a way to move a window or draw a red line. Sometimes one platform requires a sequence of + calls rather than a single call. At other times, the differences are more profound. Reading + the Windows clipboard occurs synchronously but reading the GTK+ clipboard requires a request + call that will be asynchronously answered with a message containing the clipboard data. + The wxWindows platform is available from the wxWindows site +

+
+

+ Portability Library +

+

+ This is a fairly small and thin layer over the platform's native capabilities. +

+

+ The portability library is defined in Platform.h and is implemented once for each platform. + PlatWin.cxx defines the Windows variants of the methods and PlatGTK.cxx the GTK+ variants. +

+

+ Several of the classes here hold platform specific object identifiers and act as proxies to + these platform objects. Most client code can thus manipulate the platform objects without + caring which is the current platform. Sometimes client code needs access to the underlying + object identifiers and this is provided by the GetID method. The underlying types of the + platform specific identifiers are typedefed to common names to allow them to be transferred + around in client code where needed. +

+

+ Point, PRectangle +

+

+ These are simple classes provided to hold the commonly used geometric primitives. A + PRectangle follows the Mac / Windows convention of not including its bottom and right sides + instead of including all its sides as is normal in GTK+. It is not called Rectangle as this may be + the name of a macro on Windows. +

+

+ Colour, ColourPair, Palette +

+

+ Colour holds a platform specific colour identifier - COLORREF for Windows and GdkColor for + GTK+. The red, green and blue components that make up the colour are limited to the 8 bits of + precision available on Windows. ColourPairs are used because not all possible colours are + always available. Using an 8 bit colour mode, which is a common setting for both Windows and + GTK+, only 256 colours are possible on the display. Thus when an application asks for a dull + red, say #400000, it may only be allocated an already available colour such as #800000 or + #330000. With 16 or 2 colour modes even less choice is available and the application will + have to use the limited set of already available colours. +

+ A Palette object holds a set of colour pairs and can make the appropriate calls to ask to + allocate these colours and to see what the platform has decided will be allowed. +

+ Font +

+

+ Font holds a platform specific font identifier - HFONT for Windows, GdkFont* for GTK+. It + does not own the identifier and so will not delete the platform font object in its + destructor. Client code should call Destroy at appropriate times. +

+

+ Surface +

+

+ Surface is an abstraction over each platform's concept of somewhere that graphical drawing + operations can be done. It may wrap an already created drawing place such as a window or be + used to create a bitmap that can be drawn into and later copied onto another surface. On + Windows it wraps a HDC and possibly a HBITMAP. On GTK+ it wraps a GdkDrawable* and possibly a + GdkPixmap*. Other platform specific objects are created (and correctly destroyed) whenever + required to perform drawing actions. +

+

+ Drawing operations provided include drawing filled and unfilled polygons, lines, rectangles, + ellipses and text. The height and width of text as well as other details can be measured. + Operations can be clipped to a rectangle. Most of the calls are stateless with all parameters + being passed at each call. The exception to this is line drawing which is performed by + calling MoveTo and then LineTo. +

+

+ Window +

+

+ Window acts as a proxy to a platform window allowing operations such as showing, moving, + redrawing, and destroying to be performed. It contains a platform specific window identifier + - HWND for Windows, GtkWidget* for GTK+. +

+

+ ListBox +

+

+ ListBox is a subclass of Window and acts as a proxy to a platform listbox adding methods for + operations such as adding, retrieving, and selecting items. +

+

+ Menu +

+

+ Menu is a small helper class for constructing popup menus. It contains the platform specific + menu identifier - HMENU for Windows, GtkItemFactory* for GTK+. Most of the work in + constructing menus requires access to platform events and so is done in the Platform Events + and API layer. +

+

+ Platform +

+

+ The Platform class is used to access the facilities of the platform. System wide parameters + such as double click speed and chrome colour are available from Platform. Utility functions + such as DebugPrintf are also available from Platform. +

+

+ Core Code +

+

+ The bulk of Scintilla's code is platform independent. This is made up of the CellBuffer, + ContractionState, Document, Editor, Indicator, LineMarker, Style, ViewStyle, KeyMap, + ScintillaBase, CallTip, + and AutoComplete primary classes. +

+

+ CellBuffer +

+

+ A CellBuffer holds text and styling information, the undo stack, the assignment of line + markers to lines, and the fold structure. +

+

+ A cell contains a character byte and its associated style byte. The current state of the + cell buffer is the sequence of cells that make up the text and a sequence of line information + containing the starting position of each line and any markers assigned to each line. +

+

+ The undo stack holds a sequence of actions on the cell buffer. Each action is one of a text + insertion, a text deletion or an undo start action. The start actions are used to group + sequences of text insertions and deletions together so they can be undone together. To + perform an undo operation, each insertion or deletion is undone in reverse sequence. + Similarly, redo reapplies each action to the buffer in sequence. Whenever a character is + inserted in the buffer either directly through a call such as InsertString or through undo or + redo, its styling byte is initially set to zero. Client code is responsible for styling each + character whenever convenient. Styling information is not stored in undo actions. +

+

+ Document +

+

+ A document contains a CellBuffer and deals with some higher level abstractions such as + words, DBCS character sequences and line end character sequences. It is responsible for + managing the styling process and for notifying other objects when changes occur to the + document. +

+

+ Editor +

+

+ The Editor object is central to Scintilla. It is responsible for displaying a document and + responding to user actions and requests from the container. It uses ContractionState, Indicator, + LineMarker, Style, and ViewStyle objects to display the document and a KeyMap class to + map key presses to functions. + The visibility of each line is kept in the ContractionState which is also responsible for mapping + from display lines to documents lines and vice versa. +

+

+ There may be multiple Editor objects attached to one Document object. Changes to a + document are broadcast to the editors through the DocWatcher mechanism. +

+

+ ScintillaBase +

+

+ ScintillaBase is a subclass of Editor and adds extra windowing features including display of + calltips, autocompletion lists and context menus. These features use CallTip and AutoComplete + objects. This class is optional so a lightweight implementation of Scintilla may bypass it if + the added functionality is not required. +

+

+ Platform Events and API +

+

+ Each platform uses different mechanisms for receiving events. On Windows, events are + received through messages and COM. On GTK+, callback functions are used. +

+

+ For each platform, a class is derived from ScintillaBase (and thus from Editor). This is + ScintillaWin on Windows and ScintillaGTK on GTK+. These classes are responsible for + connecting to the platforms event mechanism and also to implement some virtual methods in + Editor and ScintillaBase which are different on the platforms. For example, this layer has to + support this difference between the synchronous Windows clipboard and the asynchronous GTK+ + clipboard. +

+

+ The external API is defined in this layer as each platform has different preferred styles of + API - messages on Windows and function calls on GTK+. This also allows multiple APIs to be + defined on a platform. The currently available API on GTK+ is similar to the Windows API and + does not follow platform conventions well. A second API could be implemented here that did + follow platform conventions. +

+ + + diff --git a/doc/Scintilla/Icons.html b/doc/Scintilla/Icons.html new file mode 100644 index 0000000..0bf302d --- /dev/null +++ b/doc/Scintilla/Icons.html @@ -0,0 +1,56 @@ + + + + + + + + + Scintilla icons + + + + + + + + +
+ Scintilla icon + + Scintilla + and SciTE +
+

+ Icons +

+

+ These images may be used under the same license as Scintilla. +

+

+ Drawn by Iago Rubio, Philippe Lhoste, and Neil Hodgson. +

+

+ zip format (70K) +

+ + + + + + + + + + + + + + + + + +
For autocompletion listsFor margin markers
12x1216x1624x2432x32
+ + diff --git a/doc/Scintilla/Lexer.txt b/doc/Scintilla/Lexer.txt new file mode 100644 index 0000000..0aeb66b --- /dev/null +++ b/doc/Scintilla/Lexer.txt @@ -0,0 +1,226 @@ +How to write a scintilla lexer + +A lexer for a particular language determines how a specified range of +text shall be colored. Writing a lexer is relatively straightforward +because the lexer need only color given text. The harder job of +determining how much text actually needs to be colored is handled by +Scintilla itself, that is, the lexer's caller. + + +Parameters + +The lexer for language LLL has the following prototype: + + static void ColouriseLLLDoc ( + unsigned int startPos, int length, + int initStyle, + WordList *keywordlists[], + Accessor &styler); + +The styler parameter is an Accessor object. The lexer must use this +object to access the text to be colored. The lexer gets the character +at position i using styler.SafeGetCharAt(i); + +The startPos and length parameters indicate the range of text to be +recolored; the lexer must determine the proper color for all characters +in positions startPos through startPos+length. + +The initStyle parameter indicates the initial state, that is, the state +at the character before startPos. States also indicate the coloring to +be used for a particular range of text. + +Note: the character at StartPos is assumed to start a line, so if a +newline terminates the initStyle state the lexer should enter its +default state (or whatever state should follow initStyle). + +The keywordlists parameter specifies the keywords that the lexer must +recognize. A WordList class object contains methods that simplify +the recognition of keywords. Present lexers use a helper function +called classifyWordLLL to recognize keywords. These functions show how +to use the keywordlists parameter to recognize keywords. This +documentation will not discuss keywords further. + + +The lexer code + +The task of a lexer can be summarized briefly: for each range r of +characters that are to be colored the same, the lexer should call + + styler.ColourTo(i, state) + +where i is the position of the last character of the range r. The lexer +should set the state variable to the coloring state of the character at +position i and continue until the entire text has been colored. + +Note 1: the styler (Accessor) object remembers the i parameter in the +previous calls to styler.ColourTo, so the single i parameter suffices to +indicate a range of characters. + +Note 2: As a side effect of calling styler.ColourTo(i,state), the +coloring states of all characters in the range are remembered so that +Scintilla may set the initStyle parameter correctly on future calls to +the +lexer. + + +Lexer organization + +There are at least two ways to organize the code of each lexer. Present +lexers use what might be called a "character-based" approach: the outer +loop iterates over characters, like this: + + lengthDoc = startPos + length ; + for (unsigned int i = startPos; i < lengthDoc; i++) { + chNext = styler.SafeGetCharAt(i + 1); + << handle special cases >> + switch(state) { + // Handlers examine only ch and chNext. + // Handlers call styler.ColorTo(i,state) if the state changes. + case state_1: << handle ch in state 1 >> + case state_2: << handle ch in state 2 >> + ... + case state_n: << handle ch in state n >> + } + chPrev = ch; + } + styler.ColourTo(lengthDoc - 1, state); + + +An alternative would be to use a "state-based" approach. The outer loop +would iterate over states, like this: + + lengthDoc = startPos+lenth ; + for ( unsigned int i = startPos ;; ) { + char ch = styler.SafeGetCharAt(i); + int new_state = 0 ; + switch ( state ) { + // scanners set new_state if they set the next state. + case state_1: << scan to the end of state 1 >> break ; + case state_2: << scan to the end of state 2 >> break ; + case default_state: + << scan to the next non-default state and set new_state >> + } + styler.ColourTo(i, state); + if ( i >= lengthDoc ) break ; + if ( ! new_state ) { + ch = styler.SafeGetCharAt(i); + << set state based on ch in the default state >> + } + } + styler.ColourTo(lengthDoc - 1, state); + +This approach might seem to be more natural. State scanners are simpler +than character scanners because less needs to be done. For example, +there is no need to test for the start of a C string inside the scanner +for a C comment. Also this way makes it natural to define routines that +could be used by more than one scanner; for example, a scanToEndOfLine +routine. + +However, the special cases handled in the main loop in the +character-based approach would have to be handled by each state scanner, +so both approaches have advantages. These special cases are discussed +below. + +Special case: Lead characters + +Lead bytes are part of DBCS processing for languages such as Japanese +using an encoding such as Shift-JIS. In these encodings, extended +(16-bit) characters are encoded as a lead byte followed by a trail byte. + +Lead bytes are rarely of any lexical significance, normally only being +allowed within strings and comments. In such contexts, lexers should +ignore ch if styler.IsLeadByte(ch) returns TRUE. + +Note: UTF-8 is simpler than Shift-JIS, so no special handling is +applied for it. All UTF-8 extended characters are >= 128 and none are +lexically significant in programming languages which, so far, use only +characters in ASCII for operators, comment markers, etc. + + +Special case: Folding + +Folding may be performed in the lexer function. It is better to use a +separate folder function as that avoids some troublesome interaction +between styling and folding. The folder function will be run after the +lexer function if folding is enabled. The rest of this section explains +how to perform folding within the lexer function. + +During initialization, lexers that support folding set + + bool fold = styler.GetPropertyInt("fold"); + +If folding is enabled in the editor, fold will be TRUE and the lexer +should call: + + styler.SetLevel(line, level); + +at the end of each line and just before exiting. + +The line parameter is simply the count of the number of newlines seen. +It's initial value is styler.GetLine(startPos) and it is incremented +(after calling styler.SetLevel) whenever a newline is seen. + +The level parameter is the desired indentation level in the low 12 bits, +along with flag bits in the upper four bits. The indentation level +depends on the language. For C++, it is incremented when the lexer sees +a '{' and decremented when the lexer sees a '}' (outside of strings and +comments, of course). + +The following flag bits, defined in Scintilla.h, may be set or cleared +in the flags parameter. The SC_FOLDLEVELWHITEFLAG flag is set if the +lexer considers that the line contains nothing but whitespace. The +SC_FOLDLEVELHEADERFLAG flag indicates that the line is a fold point. +This normally means that the next line has a greater level than present +line. However, the lexer may have some other basis for determining a +fold point. For example, a lexer might create a header line for the +first line of a function definition rather than the last. + +The SC_FOLDLEVELNUMBERMASK mask denotes the level number in the low 12 +bits of the level param. This mask may be used to isolate either flags +or level numbers. + +For example, the C++ lexer contains the following code when a newline is +seen: + + if (fold) { + int lev = levelPrev; + + // Set the "all whitespace" bit if the line is blank. + if (visChars == 0) + lev |= SC_FOLDLEVELWHITEFLAG; + + // Set the "header" bit if needed. + if ((levelCurrent > levelPrev) && (visChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + styler.SetLevel(lineCurrent, lev); + + // reinitialize the folding vars describing the present line. + lineCurrent++; + visChars = 0; // Number of non-whitespace characters on the line. + levelPrev = levelCurrent; + } + +The following code appears in the C++ lexer just before exit: + + // Fill in the real level of the next line, keeping the current flags + // as they will be filled in later. + if (fold) { + // Mask off the level number, leaving only the previous flags. + int flagsNext = styler.LevelAt(lineCurrent); + flagsNext &= ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); + } + + +Don't worry about performance + +The writer of a lexer may safely ignore performance considerations: the +cost of redrawing the screen is several orders of magnitude greater than +the cost of function calls, etc. Moreover, Scintilla performs all the +important optimizations; Scintilla ensures that a lexer will be called +only to recolor text that actually needs to be recolored. Finally, it +is not necessary to avoid extra calls to styler.ColourTo: the sytler +object buffers calls to ColourTo to avoid multiple updates of the +screen. + +Page contributed by Edward K. Ream \ No newline at end of file diff --git a/doc/Scintilla/SciBreak.jpg b/doc/Scintilla/SciBreak.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b63b09f9a7c14a916f07915d6eba32b8d8332260 GIT binary patch literal 33592 zcmbTdWmH>D7&RKK6ff4|?(PmLZSmp~oZ{}TDYO(yk)kc`1WRytx8klXF2P+w_;~OA zWUc$_-aA?6Pjc3o*=Nqo+0WiPPYX}~0I!tgmE-{^C@6qW&mX|kGT=Sn<%<`XFECzW zVq#)py~M^P!NbMD!6hdmCLp1vprxUvprWE<;$fv@;9{hrViRTO;^P+*5~5`lmlhL{ z;t>=Q`0pYpSXfxNIJjhZcw_?fRP+M>pW9O>fbb-eL_s4&dFlnw0str& z&!hcs!2h$MprWB;yuf^kg^lxkLftC>Dhe7JDmoel20Hrl*}>1h1JDUEi0JucUl41W zV=}mt2!zJxzGQq?)kUf`dCDYc;Sq*~{rU|VIR!HdD;qn9kg$lTn7G9I4|4Jfib~4b zI=XrweFH;FD{C8DJ9`IDFK-`TKmUL)U&FseM1GG-NK8sj`Sm+BEib>Iun1CIQd(V8 zTUX!E*wozJ)7#fSFgP?kH9a#sH@~pBw7#*qwY{^uw|{VUesOtqeRF$v{~s=tXPp15 z{ola;AGipgaiOB4qoHH|hYJPO_xV60M8}}#e?cUxiD~Xm%pef@lH^@{ZdDf+qoCF) zsfEWR_G>1gb>_4Gp#5LS{@(!$`~QXPe*^nJxRwC8XeiHK$}$&fcCaIo_XuGtXb z?IZp`GJ3^`aJc@p{;157TvYA7-yl}7(~>5i92Mdc@B%2SrcEy;-x-j$6fAN^lIS!H z#2#zrCT%UqdY5(CR8dt?BS+d1dBp|%CyuOhp^TA!0?e%mfR`Dc0Q2Sa+DmII`oqli zZVC7?wM0OERak#e@v&D2foy5du3_8C*%QFud4*t{)Vo#E-06WusV8TNwizlha-x zu%7_*AjV0WHM$=}Rn%$ySbj0C z^rPTCg<8S<+n{v87eZ&uKQtI*Es; ziuY4k@?@y$-TSxiDYEQ3zGF&R&h$~lR6PujT#*+&RwySU>eE($`LBvfRk3|Dp=zzIT0AfSAeA?1;$<9AUIQf6vPZ+DI(vp<-Afw-BD$G*q z!Y>s?)(k(<#1g3I6Krc$8g!ia*h- z9o5^w8Xn*rXmqdL$VpdU447E{NbwpyC$S9WNC#1Jbc{LZ0iB>oHx)5IY+LR_jD_u* ztPBequ^lJ5H4q{aSvMr+m2z&o@^MH+JDh*iiUOI2rBU`~2gE?{DkfVf`WhPo?fu5q za^`rVS(*%V9Ge1bR&JJ6L#7U?!;=TrV!n}woJG9@i?^p(tyS*fX5 zVLF$IC`Rh;$xxpq={*7VmJ*zB{Tel&0J#JQKzdW}Ag0`MVM+G+T-G6N`2b@F#<%$w zOF z$!#UW!GCo}66A+eC4g9MxH0LXNcemC<#b4)m#^rX5zamzQXWQ&*jEWnRPJfTPk`1> z<3rS(d#4i_mbO(px(TlGHv3>lVsa+cvRUL;^Jr@Vm$06Isox)5``wXpC5n9;sGc+@$Q@V8j?!Pi^GBYmh zl^Uv^&eY!S(v^SNPJY=1qLv4m<&p-HUf^dW)<}Pt2EDB#9qa3<9Ct|m&5&aGnN!Ap zNjtRrUaw5fTqx_`jg+~ZTNcx_%yGYu`F|4PY+v9ZdY;HKBEmRPG)Yx&d_a% z;E#Ybhq#M*gEcWfO5AC5{E60!DBV@6sLd*EeG3k;{*e+WThZ|#exj}4vPQapAmMO! zcY_r7WA3M^g}+i-Zz)Bl7>V8!GUYx4Q2GvLFXh6;6MxW(`OMQX{Y2?dbGuphK!)-7mo zt4t+-;m%MpCCr^k&GM&v_8F|X+p*<`IlHd;YQEE#TW``uzuon6(TkDtedtz8(EO{? zQ*~dOtS3M=)J@Zl0+yv>XuSE@PdhkYqnw}NpW`7ZyCnZLu{F|?Yb5KyP41H!OOF|T@{g|Xa;DkQnCWMpG9M%m0($NkU+ z?R6?GYYPv1ljV^~Td&#~S&??_wYhQMPO@-I$_MT@#pHdgFIp#3q3hYNM+*d&R#Oss zvm}4F4Ky^|$)w_*8FweXXBeW4E@K~LXceoDed#oJ9KKQF1=8;_boheNw=ev?i#;P(o$61jC4``%KfbeJ(d;{v!DG62m`f_ z`WV@T#vFS?@GIv@cYeHX=(YM-_H*Dd_b+^|wcQNWA!U9?TJEd;5K+Y#Ss*y$0o0T% z6hox^P23U`eT6G%lH{Ju4l|h?(#BMFP306Esy!l_>-rNv&=i64H-+_HcPhNlWMJ!k zV(c#B3BUorqQ%ZEGU2}o=pKl_1a2Dl{ozKt)5?`MYc1z2kT206C6J*CBu0 zj-#&do8k=r_y$KQzDBOjDlu$v@e)Y1bpP(|a-C-y1$D~e!ITx!ds^jBe^V8ywO72( z2F%6@^>{0^%l!$EQ(S_HuAS-5n60gt&&8?F>y5TDQQh8BBi@iX0rsK+@+9ZFZZ<)8 z?JAu0>0P_ZDcD{5fBAt@pcqfOsdjK=tx zR1ED2_yI#<;d~2SgTfbH)y^{?vsc}~9GCVLCqnzvhw}n*=V;+Bf|vWI)5V6Uh9eXH2s@C}Gv(Q<}lgd|tFZc>YAz1C#HLoRKFSX5>al|OI3t;{of zp7L)?eQvJjEk$nlRSwIs5Tzbn@=BdBpR~!edjjr#4HZ5$!Nh&dAvblL&a2X`2_Yuf zn1||H&nyo4qFD+C7Go`_SoD-Loi>}d67IQC`|ZM)zY{ZWDZEid53k6M-QvC`PFLOQ zP8xp~E`vA}D#rfX4g^Bxa(hadmKmco{<0Mbh6&)yUKW*E>EzUZ{Wo3H_l`ge;xZ~= zNTov&^G!l4!7~cg7nuB-V&dz=DTiWzfLFmMgQ}&XSfFy5zDG*fQ9jA}%K}4rUqCWL z5xb6dF@0rT6#K%@yePJ}BwACt08Ke&xlTj2ytEnAlqk**pN%!;NFBPd*-AkH?dj&( zb!N-&6i!<|(~dw5W3EX@YLmx-F}0T2H6zUZ_&}epxJWU`!foQiJ0)}r6{XNECtJ-iB^%V9@ygZ;vpT4w!f;1QIZsuf-$2QiNb%s0 zM}S3=xj&O~n*9R&q%}ClV2inDrSS;W_DYNv>PZpT$C;QseR-Qton^xXrjHJ>X{3l% ztAh`q$xD`Hv@d;JY&)}QDcQE2v3Us&W2^!*_k$@8)nA`}S>i{OjULT=6-(=b3Y5C( zE;SKl=@j`i`hEIy;VZCyUc)T@rkQ{Y9h^C+5#BsM0SN61hF0`0NY?n)SsM1{PS`J` zB9OUnVDTa{PYhc!+wcZRi+gMJ@G;_UKD6Paj^zp9U555j;yn_^WR^oJRzWot z!UA7P{8PYc00E3Rqa(pbPL6nM_*`vh}V$ zpL&;Xu2rxp*7XE{&v81YJ&qhAr#T4pEQ&Gr^=rl0{?HRZ ztn|KiUrFR--&1i+m{`HcGB`KcxH3UqN$u}6J;nTksK=Fz@f$i1=U{9DB=JK1 zju9NL>RPs-cx#~4InE(R)IHR)no_0}RTsZv{7jyj$1}@UX|F#F#SL=Xj{JM3+47S` z^=IFZ*V9PS=(N?S*w+g8+>EzHFB@YQzu!PDm8+LN?q&uUF?%W?NqMsAo&XAG=xTwe zI$*BJ=jn0yM?Dlw_2cmGqeFjU|C@+N^A9vvN(jxe8f%x2wvVx#a?f?lAJ2=v$Hb~< z#_3mA}#{L@pZ<7VdK z!_8{@*kR!hC%CSS37VybK?8Im>yMlQCV1<+M{_Yqc*7N`2PKv@RmH}vjWi#aIOJWe zmSf2%$AnRh465@{w_sVllBAJPhXdynD^Phs<>i}OrTesy5xaa^ju`40Rd1hBJO5&hjfAWdnNA_Rjrq#=MGk`KmWB`r7^LXR(1Z zv@kG7ee*R8!mwf1{|=m~ZOOj(FNBnsYXE5&Qk$W@QsETCzmffF;0eIXmrRY;54q}h zusW-+%qI#?jtD~2mwzK2im?Co;y77mO!`X}tHKiiYjgpQYr6-&pS2;NEc>S%O8K|Y zgJtCj;5O9!Y+GTzVg zUvt9cS7}a4DU!XFs$Z`Q#tOW^Q~qLxBe0!$f@MMxSE}C^*(=Z&+l$JsiXfo5WipOy zYbA{9)K&cR=8Js~!TT9q6{v)Yh4t4I+5H)Cj8-rnqv1*N-dHuYwce`5GLwC5mBera z5{(Y2s>4&U5$2}HsUW|LLn(I`9e)QBw-1;*`SQoM^gfu=ATR2gx*&|q+Gt{?k*zH% zg#jvR-;&pRBLZSG6=ZI0d?=x_V%>Y&rxUw#K%2l%5}%dx&+@$7HYO+a=axVQp;ozo zHyX_yl*DUdb=IiH_lSvS&fwEE+8_0ihJDbd8T38NbgR?qBWulj)BwURnr!85B1@8R z56y_&vWXQF63$(`iWQjpu2NsZHr`h3H%S$7!!?kg;$%igirWBYXm&sqlct35N}9=; z4Xf2B(%{sqes$B?@eyApO{*h1_s~A2*Dw<*0O@ah{`m&YFZYwSGh>quXST9bL9asXdB z^i9c}?|gQ3F>kr>C=| zIdMz$tUt+`=3K-6P$oczr02IM=ISz<@@p9T#I$)#a_TQMrAGgHz360}mT8|I9}1Sq z!<9rdjK6GsaV>K-?PXmuZJ>m)y;vW+F4ZYYI_3v0hRQYJzECfLn|j((?R&($SQnrQ z6I*heJY-Ecm^GEdVd2}X4_2u2w9q;7uF?otfO|=+3CGiW{%N&+tU$JTslh3ZEkjMc z@`oiuB_qUPDStHrZ(qy1{&wq`n2$FUxrzV#?z%>ZrBR@va*u;*=XdRy@r{T>SCmQZ zZTGJp-!cXg>SCoDakT;V4HMC^&!)W{QkM9b-d70DZ!>jdm$$NvLF2vdvE|_Iwxr&0 z1Qc3y@KTNz1*xk^ULN(keLHWa*}vB1SShgRA~f zm3)$QC6`e(LZphC$XqZ7k#qEby?-&>fVtEJB)N54e$!E{zCvRi1OBoS2 z;ZZA~x;aFteMu;qwzaeo?+R8lb}YH@gXKLzE2Pe2m=mn>I2u2IyX!8qT1M3!O(lN+ z>l;*TB-zQ{d8f{+rGxz|5$(^%sX&UsZ#yEA#^J8o6SEV^>%-FI`<^TN%G1ge(4y7v zB(m&x1FNi!&=&wyb=1lLEX7a|6@`+an08P!N#LwXrkrlQQN`~kz}g{4yh8HL*!DQY z97NX81Y*k8NYT<;Aff#$?NBiH)1-)(_>apJKACPF;2%DFfnJ$vXd!b+zoRKdOPtqr z$39=^q{3K-CX#gI919&(ZdEdzKu~Ap5MZ5BpkgdnZFYA=i+6iJU-+KdDqqM$r(1f% z|Hw0o4SZQ<_sFn%_skfukG%;9OqQ%S`g$2}^Ql6QIYZ~40Kpahz*YU}OU(OuTPa)S z;V~Bw$+5%U*-^@@^b7TEBiBFBtMXNLPd|biowNzo6yfAxo1fZKhvmDwLR(Z(_O$$v z3JuOGPV&T9cYWWEvpe30+17k?kaUU2$d7NALnR#@uJnC@4dSWUK`;dm)d1nmyAo&C zn+@%IP}+PR{aCtrR^BQK0>g6-EcHaw~AEUr?Q;fnUJemT!L^9}Arag$AJ= z#J)kT!!#+3I3~82Wjq0RPKy^KKCTO`fX5Zk?w2tKNS&+5?7=AGs>IslkrtKr zlj~=?OJLYHam?c3v^Ih$XC^u&lB&f0Z=^$M4CF~V>KO7STsrQgZ?v1@^eWTCo8E$# z?!cKw@=7l>XCsQmVW_eVp^7*x*j1P_R3N76+s9OD!oK$6OTMHQ$Ix`68KGOv{3ai! zOAmdon^F*s)SNTJ1#oift|}rfZX&AhpM#g(q($D1G#599PEvI$3MZ{HGYO8xn}wip5_UuVR=zQX&nTiIcee!k-#);bf;idZP091!h04hB_l2RW=LX_zWD2+x58^lt^ z=7R;vwz2kJUiXfLMdBxj)eG=G!zf0Fn1n&~QVV)PSpZP?1dZkR5VcB?w>&7%8+@mV2B~80` zjEt8HSjyTiRpKwGa4(B3W>PHA`xmZQs*_qM*rZ2-QidRUuNz<^Mf)I8jRA7Ic@A18 zB1N?6xz>Adqy(bF!_NE(0CPusmM?AUa>GjuOj*2Hat_DMidqUB3>I}2v<6UHWf7Xt zmBA0qg=74aw4WaNKYmpS4#ZYv9JKN_%ls~t9Wc9YOkL2Wl4?S;V17Kjmv|Vq#)#8uAFKK_0&MdKvC~7|x=U-N6v9sp(u0^~r;5`;Rb}XN? zIyZ0joOZ#48~3L))~E;UIU`kB-ap;}kh&WdCOePn%A7a${zM~uXbu@wkDP*i*)7xM z#K_bpVC+&IMP~WmQ$k%S7oW#8pkhbG6TmQ&G@wdBQkl<3EGr-zmBefo4?K%{(1u7 z?0C%I#ta9U=udO#D-4I!t$b3fTOMHXx;1N&?-*_@q?*^YXHA7Hhc5CP`^_E~d7IO= zPFzfV&283#x>5g06(5+Z{YR!e8fg^=b?D^_iytt_u#Iv?WLl1)eYeERb|1JT?L0V2 z-87RMhnp5|vWePHtf2gH(s_LOTuFkG4xF3sB5vN2!p*k>6t_i$6tV_14NS?=)e6ay z#hw7-s0~(U=-BGND2b1zYAqUK`S^0OwTED)NCJlQ4@X&?%HGDcQU_wmdTQ(xyc<|s zWOBMU!g0bso16T%LX5Y~Yn<(4i`~1jOW#5Yu=uettCJ|3#+SOdf`8xTUW&Dc9d+hn?lLn(| zhT^4=HV3OE5I@vlI%ebBKz`(m5HxX*qr3c7G+zGQG)scQ`xIe)Ts`B_W4Gq1?A{TZ zZOpgo`x;8VEGNHkbhn$o(Y9~Ogw-7Lu6E2~Xdc)pRp+W{?b%Du{Jtv?yAjq?eaC#z zneEV@qEsMmJHDxLE~#5g?cNP5pGntx=O=$Z16%?gZj>^#JkD5Nmgvnc!!YNdKEl^t zoB6D7!kdL(Y_};P?88PC^jHe?8L4Zogbr1buYj4nOC3u>&srkzIBxitMcg`V z@@vw~1zE`eWHOg%4Dq*4>B!D1Il#d>Lr+Lc|Wb! zzvegFoy_D}dsA#R?Xy(?i95laGc+FJ08K8&IHHmXalQB1B^3fy_Xf561g{MUqyA_l z7`X^t7B6XECh2Htiq5?uSt}e8cP&MHXr1270?PcQjAO$8R=Q{`T+n4To}w;(1o|NG zR%*odf>9bIUL@siN^gB<)KM(NTKHSu^n|O!#lzwYVWZ`%8%{L~b!72aOs8g{FEmre_0G8#S%n z9BpGclk%2o9{$3DF=J-7>@DunC#->sQ`$!*bcc-<5nCXbaSM1NXorewhJ(S3>zf+jpeiU0q!~TBg6e(wD>JLMF-+buCoc$J%T;^GsI9>%Q#Ec7G;mCe^k(bN zEGI6{{2v^oWj;H`vm^drH z+s{%+-Ep<*ciT)c39_^LpW?b34`#K3;%#O&t^bV0^+;U0D+;wFyyg!NZDB{AOiwk> zQ92I!T%;XKiB|+S^ILi>Hp<=UKLN;|0EEV5t=zwABgPS9<e2p&*&0t-eaEdY{rCYf42*aJKtV!| z9d|yS$JsM_i{zvU8MzD;HBw^-u9b#Ft%?IU+I4devOMqPLE>dJET`$+Q-2r8t)dgA z-s(5}Ish#%H%vola8n0`ZBs z@L_R5dF<=u*#x>Fw7L4eRVcKHm*ew~1kay2dLJD>8%>8^l~)iM|B$Az#=J?`0FGDe zr(IOVE$QgYzt0P+rTShWWm$mb#+0Hza5_M~g%pD&DxNW{yd66e3pKLio_V$~4l3Tn z_>NNCSCa0h#6M;$h62C$U))|GNd>!Qm!$j4Mm*cU>89!#`K}OfjDWTRfBclX>3-fU z1WmoION{rc?|#alJPd}wgB>fUuHeq9@6fi@*F>a4BHG+7Dv9&%Qi}KTO>`#rM&Cw# z!RBKpP!?2W74G(CVsTdv(6+-Q8K&qiQEqd%D@}-1)#4^G;_zdl=$k=E7ak<~Uo4|H zVaf!Vane>;-p;Kwk{XB2wlZxTNAF^AQ;6FkL_IBq5OU3O>a`owe^QBayzn_KMwpu1{3TX zcy-U<}BaZJ&T$1W{@zv}2N7bD=*e&6PHS~Q-PH7@H!klh=5;K-NGTqgQGgFe}%{}X% z)OMNXCCjNR-(`*|K{It*M-}C=n*qqWaF~qCtb%n>J${}Y;ays-?ZfAW{W!SEZ!yf7 zdERxu3va3H)wdm~|8W)&37%B0g4*R==M9%WeZof{YECT+?i{X=vwzsut(-0>`>_r< zsjYXO+3^9|YWEBjGh0Ch^t{eA{yqGU!22tas1~nh+kMH#b)I&rCP-B@y)2oUF$VNp zOc^drPYgghA+S!cjJ>q}{Tm_!;$unPi4E9ZTIL2^RQ)=2cmOr;3w{5N`1lsbXIO0i z!b=O3w~`(qMWxt0d8))BGbS-AMlDF-G>-syzYH8>Z(?R@v>0yGgqYi9dH<86E?T+N zCWH_}{@8`d$9(9Klge9BUaEw%YTaU+$F^EPIM`P=)I$G?vydr4F)8+U2~;>!XQ6+} zL6qw#F_FF8*>B^Df$C6wCJ{6#)rgwCu2I*+R;VoD;w`c&uTRlmtiP+-^6beQ|J_ub ztc!W)tn8bv(c(9WPg-Ol7#}NmRjRhE*`|(Kbh_PdX0k}%@@ zQ9@Xl;IH&^3w1aA2xLyc)nse&ri7)mVi>jfE*3yL46CP$doPRUGktnDreu=m?X&f?RLGPaQ$PT(?m@HFjQQ|9?Ryw9)t+#xvyWxarPiMxYab||OA#NZ zP^sxD2kw@acFf;{(kV{b>Dotd$iN+pBEVGu_;9w9;>P24Ddr)|g#%Rl3U6Nj8v2Mw zdNo4AgldD18nBtYZwhv=7$-T$@%liQyy7n%F!u!L(H6H*SJXyyI$1W@A?xY&u;s-vT&x4bG(RfB(%N!}Q|q(2LwLbmaYsJ>Ib z+jY_iHf)`BY&qjvnB+;98sWigM92QOSTFwv{FT^r%!E?g_0L6>%Z1`LZXU9Qg^RW`l;|LoKAQVrXHIS?BMmxxvn|nD8&8If`p=;##xgk~%!GYnV zg566eJ8MCHpLTcGGQ68};L+dbw@GUkM*p~;)_XRxgJiyp0jGmxKS_P-Ncs?r%t2kq5(e+OgmK!xW0iC4|Q@a++9_ z&$ji;-MkZ`s)CZ_L~tUn{AZbAv%t=UOq8lM)M>BmVV`o+{eGUQp8ePw@zJ>*t^LMs z04c-SS8M(J&^`g)axR6if(Ijlk(Xxo{Eh=cNy|1y4}Tn|MxFp)AJrV5Uz>h2r*R26 z!Zw6oVVkJ3eO?mUw(7EbijR(&&?E91o6X7bbJCF?pdv5x%px;_E>F_hTD8VQr(Da-QF*El$7%k-WktF&YlxW?=8qMz5rhUC=4#* zYz{SDYCzPae!e09ht!85sA}EC$CXJVU`89dN%;BCkpSi8XDOk|owA=1R}^jNlC)gN zcHBH&S6iN_#4=R7fIfH}`p$(R+C0SaNJDxh=Eg0r-a}e%d7)ib$ND!xNwMh$^PaC> zpg1d+lFVgkdu{R}`nj=W7%|Re`8?Oa^Osj{)v+6CT#)1%DyuJp!gkHRobnRc&$Vaa zqR*@BcK+Kdh+N(pUuPWpEN7&P*TXn>QhqKj7PXzjUTMf#6Mc|G zQo^<+{p;f4^N$Y&J~qPn=ARn)h_|b}#TZ}IXw>g`@x{m9*NA^-ECeq>}R9?x}9aa+^N^cr4?spKEn*GW6}ZZsgxtxD5)iOzoPaOgwGx~8?eR`0bc z@hovVJZq>R)0cMov@_c2Djf-WSe9;X;N8?mPMN?K<6lZ6K2}4&Ew~s^6pVEPbsmhP zOZj61=HCjbD#a(4^YHbcla1Oe*h|DDUHq!b_zaLm$JCz6yj&@ijd5} z{Yg=%&(QzT`B~R{jw6*O*C#?n@^|YqJvtl4BgfyH@Lp42zu;zl0<`1dt2~E0qxL)- z-sq)_*ZuPdM9gfpR()!!�loFt(b7SKu7H@pW%D7+aTJc`Xo5S38riu_-@e zNEUloSVI#?lU19M|J)g2F;7oTk%H5-@v=$Zx5cVXT=i+8zjb@;H+jv^eZ6@CL_y#p z65(q(Ira@UY`2(0PQ)vhMUZd2Cv?O6^Pg=2<+%QclE60o@)N5VPO{p-;x9eB7&48U z@Gl@s6BcoFi`QxIC*A&l-|N!8pYd{Lw1#DSTx3B8EfZHR%cTW|k!$BlX_Ps`SoHay zJp8r-<}@{vS1)<^_tKMUYla+^h4of|pVk9h<`>Q-y zSSQwR#45x~MJQUNG};%|6+~;{apE(15fiGC5%T2w2;f_w|rNfQKQU8%4-yLkk! zq}4YK$6v#UAqC9dTQE1@~05%7#A2&ro?F@5K;4YC`lna;8yvULh+ubVPB z3in~_q>5@NHDr$aR?aip!Z;w=$F`>^KCm72MLu@z`Y10!PeUi^lXMxmDAQldgjQAq z*IY+G>%mgcjpkD4*p_W&L2F<->hPosd8hjXZNRQKdQ0Y?>a7Y$AzM$=_aIOrk5z}8M_a4Wz*WT$vH45`)25N zD=N9Ji!&3MU*T5Bi~4e2XY?~!egQ+T?*$L1w8x@1i4)gIeg&b+ywx-fFWt`VS^20dh6RBBJ&< z&s-%XQ>H-nB0;@EyBv*a#rP62j93AC=sZ9>Q?biI$6~uOEvSfdeOn^+mG!i*qf2#58ay{pnwQO<$+F6|W2XnT1o1Iv&QzVaO~goZw1U7{vN-65cHLA@fTyB^Cc=gK zT*km#RAn0XcWF_8dAjhfN9LUTS5Z^#-3E6z&0?a~B7L5q5g=@$_vEmm8xAx0J zYpraN;ytEh9qY)hBUA7O4sDf*e?9z%z4{1p=o0pMwMtxEyqL$tCCAU&I3JhRVHq#d zi!~(kqwTk(P0JrlS*m8!M^f{+kCJEzxTubx{+~~8rN&D8Joqn9)Tf1O!#_X zB>-vF=i1V)3fV&7Mj09qTl+nqGJ!5Yl+3DnNqI|Q)PB7x(X-#;smS_<5Q{#ZLJ*}0y^#5R34PSM zRr+lKWP2ExU#iBcaKyqo_tXi@5H>b$oAIir_}Lm~`IAL+5P8#P$kK!!zY%Xj_FtB- zS%q@8^@mvRkDG9RKLl-c$P_KXR)Clx0-j>@3k5Rs_ClR>hdPFcvDSrJjg0DxiE8FV zOT7W6X|yz+M>6(Os7iI!@G`;Pe$AH#RI&&+oI&|6OY|cs8d} z^HNxpH2#(0CtuF+*TS_uji8geW6}A{G#ed*gl|%ib^W))|8R=AW_CwRPOhYZviI{& zIt=7gn`m4Eb^fLhAJ;naV>PhfR`fM>hw^St#?H>DgD_cf?vh+n^Q`m6p;6)<=cM&d zN%!v1&(dXar!n;pLomfV3)TDs@S}WlHD_~@tBlKl)M~!Vrtz8P3y#hbx>#B2QhBPW z9y0&8(h_NF9-6Avbm^1S^2sn&Dz;xuKP?|^&j>1@u3esZGw<}7m0q1SsmVJ=q?uFK zRGVk8FXfjA5A0j^&QavA?3XaSk;>;=`UmzSHj}>c);m}Gb2)2^M^k+LXIj;K-<1B1 zMnOQdy}h3w8?8s;A-K>f(YTIXExmR&w$w9vcB79ws)AR%1gkhZUMt2)$D7Mtbpg|` zs$nYEJ*u|Pf^k${hr++827{cHq|;8#eu~RRI-#_gcHR6Z7&{!ogvidM8xogF<9V&_ zk+ft|n|l6U_E5(Bj^ZCeX+6fo1^3K|GE!VJ=Pq*SxDBj)Inh4zuMuj$VT-xa?dPZB zOh7no$>5KJiXHtbkoKGtR-;K>VA(DJrZ_sjgmWSuOXtMN&N|3k|9BcS&`?B&IoojV zReJy>j=qUxBp2q6a52r5X_FdllWfBi^{l2UxFg1~%pbS5bTzP8D@msyuVJYpY(tVl z*6@@Lr#fr2U9(h~_T*pdmkaRtFkfOsna{uNDqZuh%tFTGl^*+8&x-AeYqD%FDt3Mq zbGhqNWMtXovQwih-|20=x3GG2OpR|CJ~~h;n*BMqtGOOozo^2F6dm}7`Al5rJt52G zdOsNP^=+D*X;%7*j1-~;*;o(!k#$q1CeE@HR2XCh(+-15a1Tm&Yn7ZB^+By`6LwSy zXDU;lz5Vq+Mdpx9l7O@+cBYT9s2ARAbpo*}f3)M?x+B89-vR*C81^D@*7^1@bCVmQ zpHRW`fu?(cLR&qdog!FNLjBjDkW>!Vn@H06g>I`(&5@9>ra+8UFUUi_@Ny?cOpe$i z9GADDO<41ti+bKOV_pBAVVsxO;A8{=;P@dAf;S}7V)+2v%cNxgF6K*01naOax6;lX zb-bCj#_qjl81iD}Pt!AlpVMbqp9wGFh%)&N)v8BT8+~G#T&~^K4k8D~he78&!H?^j ze&ol&7_J5mIn9h5%11*nsYoRPE3=uo-3Z3>%bYE6xku06hD(^mb|i|2+kiXluTsQt zRc#zCUo=%<+HgaQ{OV#G>!@z~;7n}<-j1l|-@k3bMt>UZ19^w@3Y*+rU5X()u1Pv< zK~?bxDYh%&PFHGI#?NON?KZ9Z8FzLi_qO-*tW1=3KMeRg<$=#03#>u7Dd@;_eQ3;h zR#fJNo zIw&r=c)10ap-tsll<*xx&XG35UBUxC#yf%?RkQjybb{XbFFOImL8ZHy2>Eo0y28eN zD$0)6mPpjbRAU9oroB>CuMm;O2Zg8;z7YNEejo<;zm66e}D|2@JUK^lz%E1{O-52M+S39VCY`Tth4R%x#H;;w$705LSc*A6{z zI5ll3Lp*ij8tjoHfrzrk6z)3@BsYS-=TjW#s{Wa$MqA(=1#IEb`ca&&;oUX-fxE^el1304xv8D1?8{x~y(!k|S(;JroLHE`lY8(VA~Gc_KE0sOM`&f!f-Hgs0`{10N%{|NLIIPm&>R_O@d6W|l=;4^81XTPdY zO`Gs3jyanOol6QH)}PGmE=^&rB(LDR#HoMJ^ynxj$C8@wK;#0n_R@}i^X%KZbgeJq z<4%`8(2a6t=vuO?yr*bw*q}+~MKHOkyW$MGY|wJBGgY7Z(JVWztxs}oY$q20k7!TJ z;=4%R6ZV%N_xemEU>Qvb^qRryS#{FB!`dWhyHYllRqh^-H1aZEgb(k*-7!3?y}vw! z#{UY>Ec%%#RRZ4I(^3zPdN=RelelYkigD5cmu_7_t#t1#*~dNjO)#>1@Itmw_o?1K z>xpHn`B7~Bgro|UC1Qm~HrI9sv9CEj2cRMN#)2&-D4c#lc1t>H^8CtHf7vj|<; zgrwl+1xuaHtk8pI`j2HhFub6&2pQz9e}9G3GW}GFS0FfDK4DBeQE94 z0xz|e56^kgbD3!VUEIzQAXq6bL|!Yt*?$Gqd!0LW&?UIERb@tZXk#BV5rrv_ZbdQH zGI_Ix6UgfL>^`JKkm&#oFN}D};lBu}R_Wr!oU7On0nhP`(*(y5ZMwF2&F0c#wDUgR zGM!_?5|RK$dw%^ej13j`PPQM@2M(+CasCpobzbs!g$SC;Li}2K^$bhjc@tF~i$6|z z4p1H4>#myhXE8?|i8@R_rpeyC)x6qc55$6uxOo#B4}gOqN*3-yKYt+)WYo7cmU>Oj zNfIXj5@{E6^L40#*K^VreWFOBM~`8gc<1852%H8xKy1!MT%lplxMTb{@vMI76NF@zQ?op%bUJrfCc?B)o%ZGD|M|;MH_22&z3Hb~qc0 z6y}Ufj-^hnbT^d1qv!e%kd?%JOm^nV`*>>4tST2Nr;=032f&Nkx&ppFh^&;e1be+j zZ_P4aQJ;hH{@~@hOx*peE)?$nmtLIpUJswR+R}U9bSO>j23t`;DSqa)ls2?_>W$MG z+%(V<9LSB_uQ+Co%A9rk^GyDiplQyYV`eB#Zdl6ra=+K=@sQ=Vzs7zu*c!Tzd=idVGh% zKtl!S>8SG#*zJ|X(|gQuv=1*(eMpU18^5X2u}GPNgKAnT8x3>@+k>n&JJ!(Zye59c z@cKJ=&K9Ljr1w%DF7lvaes5PIL4K>be3ThCXtoQQikeI$HzlVHGwBIP3N*W&bWD?I@@ye8tK9pI%&MxJH4ZB3> zjl3IG2o+NJy=T<^u43?P z^r`zkBE~bp?hT_d#aFS$N@;7gDw_2O*K>ziUFJU#YBZw;Suv2+Wz&`(PqwC-CX`Jd zX`Sqe5@elFvkfHgBO~^_9*;YvubIVj81$k8?;x&d)t`79njZhx{)+UtovQtZ_S6R_ zJ=M?b6Sp6J&wbkF+930#R zPgEIcS*ekC&P9@rkNq`MJ}4aAJSOG*t6fpk{67EyLI1u<;Q5$&i^DH}tt(8&g%}^L za`tx(XE=4~{6o}NN{+I|u7nj~kZZ}tP;_N}jP$V86-e8v6aaeWo}=EI%_lX)Q$aqo9Cgi2!o>|^PhCpMkxto^W;XZqKE}M#cX*}6A2=Y- z0l>jElVfCNVI+eQj)VKvus{OT8jY#Ib2NY(CBAS_fhZ0R>!)9mhkWgjW^9+jzz#kGNAA@i3V>hzN|ydDRjrO2;y2O;xa z1>!N2>sfcYTpFSh`163`Ok|Jo6>N%UAmvU7?^eCtg!MSBM@=?A=(lOSNC+4lNITYB zcz;Pm-gNtI$D-^VYtrAyy@J`#30`bmz||#<9y(u#72V-->{I z&w<{qDigI-Wb^{LF|)LJ7gM7T8@^}IL{iKE878HkRkVnr9LU{B{#3HawunGEl=VK9 znC#BSyLa}e!_ZJ%(%hQWdEYE{5VqzlPEBcP`t{w05T7;?{0w@14{FQ{+LIO4I&rBR zONFe5C8OZ;8R*q2X^qCjYBDJb;+~@dmZ*e9#T4SX=}EBW zf!tN*p_bada8z&+(mS~ z#BYWlP;vTZy8x9mF7QYmHY&rotzn3%2XtdnoMfzd(6G9-x>UKgmKGf1L@S@ptuo^t z_3Jiwu-+$?Iw*6-))@^^-S}fjya#=nqknoMv-xpdkj&Q8iNicI=+7r&MnLP{v$aPn zVpF@YU+euV)2@CW!g6gdT|e2CLw=(b%<6v*_1Psu8MT%)2kyv0&(MnMhAxb@W`4?R zq32hR=6{{i$LgeMoUuv4|LX#X*l+rTwskb~)4#RP* zs^O&zr0lvCsI!E3E%IJWlMI zVg@)e$N*npKmApeCCyPG$=VH^xz#PSeKtwwY{?Cal@WYlhTonqY1-zk+s z#y;wd)ZQd~-o+pHW6$PIR?s8!b<0)sV&9M^y*^a0KBp{OwT|VZGv7rB>cvy@uSm3w zL+-{EM<3_(t`9~*HoT1Ab~0T41CQ4g+WE(CmJT!bh_5#o?aLm^^E&X+ZAteZB%XE0 zn0gKne=|rMY!h7{xe7BcxdN+U<&YwM=Qsd%6=%dOmOdVmB;dXfetiC!u2inlIx0(& zHb<4*9rsW5q!b^TS8sYzUeyKfT=S=*u=E_)uUJ9$O*RNm1!GnGg?WCBZ}zQT(i~(w ztC8)Ve@gX<2VclnE@wZ6Cq@Q0ZIWBA`8OVmT5zt|%O0kx+eNlDUgwibtla&JMZBCG z7~yh0xa0M&E-LQG+O+P^71XXi*Q#CIXFhDs;QdK8&v=4Owkn<7{{TV$MQhhP;yE)k zF@JSSerNvxtzS`VM#%FwW+3F((H{&f{>$L2CL;|oc~9cUAD|WU!u{c2Q+R&Q`#Zz7 z7Q|q~Z5kh_QJ>bl%)(ZJUT0PvYS|{B`-b0o!M}g>lppiTHh;&Ut&4`-{{W41_iwqb zAN$TDA3@jpSC<8LcT{|^vBLO~_iBiP_#y!PNhka(lGmRJ1b(EkuA5nJGg-Mljkod` z{*_K0DQ>Tl?tCVnYMmu>$+t9&?JCksTTIHkT2r_K*BIk9(P$~ZQ&aub zC;ER{rFh$}U+ap~@b(sYq&<`m&;J0`Ra#b{+w2t8=8`)2B=S;OJA@#8PaoEV8!hsB zw>4TK(y1TcU`J^$T;%gaz6z%g!%cG5+)9cTxCB zqZQL>tG2>Fe4o~^t?aI4#>gZi*J;Id7S^&Qv`AM3D9%lA)Or@TId6zD`MwRjU;1eY z{{YCTUPx=+^^FK?I#kvYOk!C|<<)XV7$50a)}IYD7%*r1P08*glW6|{$8r4YuM3N( zMw?RJ<~3=`Qo1}~x9>vx6I!}%n|*vg(QN0Rp0UPQes%5Eei_j$7(Kp~YK}TNj5B^` zCbd8SU zC)?7!28za5y0cb#BI8amcQNh!F{Rsqm|9Xh$l3h|6{!uh7VEYMV~lztf&8jkD;0KW zaHXP((IEvCVu~69wECruxc%+aYwQkB>0Hja@gGIdof25@CoVFED2CJcu@ym~;{n)v zb*!CdMu%0?8~b{{UoM zPICkjWcNiR8sMo<*~-l8r!_Tm%sfY<{{UxQ`LQV$@|>?9boUj4@q#*6wcU6={{T|6 zdwH$fV-6YE4X3f>*CYP`3dd56pS9{*Wx50WQnMe(FZHgvSeQ84Z&Y&Cp(QK99Jhyc z6Q|yJ5;h=|^*_Shjdx2sjvEX;>oNQbqChiw;+XO}tTx&GOAqB&zTe@kKG`7`*Vk-= z8?vjP(A3UXmo+Pz!bwM#sasgnpw(;|Fal1$G(_~zr_k2`AS&ft5Xx{t>}$2S@h+K? zA+eRmZ!%N;2&#*!TFxEUOSKQ4O9J1{wv9@bywS~Cbm6R7ouO)nOT7e=BYqE{KBl_+ zjbl$`{pke%0C{@X6{zZt>|=r(c!zTwNWAyk$q!$JHQX<<1*xDZx1Wt2SxOi-}wi4o4L}uYA(Ef;{XU zPpxEDu~%B2o*&vee)}zbr)a<=flpB+tDb=R_o%I)GB)P>qOa}1trSpBT)HBv+m$&C z0i=+5YFUUm_Ul%g3JEx{hvie-tIP8q1xFk{V*o&_>Y-F9 z912NXDoHI7q=igDh5*OqSvOaHbeIR^9X;vSHw>1>73$sns+F8AE!1hw-1GFT`D|fI zl8SSY(CK#GTs~nRJM;7vOIeq7%Eg`#bM-Z~85>4BS1oftn|&i^tD1=F?qP>crB^r5 z=x2Z~kWdbhe@dsLM6=qbU(Y2S=PmedUw)#@u_-TBc`Bxl*0C z+_9#}5vS5Fxl@pY{{WxFR%`i|Gqe(n#tt*-TDr}#%3a69E&~zz8iL`H{@rFH=lik` zL)g}kdfeWe)A#yIe^Qx+hwm-l-vHG1_w9m`mQ(erO43=$wEW0w=Gd-Na6I~sqO`HR zwBK&!lB~mYR}wG#t&vsdj`Bf=mE}?X)mC9~YIi9+eMd@~9Z(J?UBB%Pl(|=6y;Qx| zbXRqie~E$gVNz-L&trJA>PefPjURgOOI#Q@)P*ZlZFN0uJRJPq^<{%AMlla;eGFXIrIP-S~R;OGz9}V=oM> zFjqbC(2mBIIp*+IvMwV-E{%A0%NI}wr_^@!98=`+Ev~I>qT&M$(vQ44XSn)R%{Knp z{?)9eb#)`<&-v;r2YYk1>c3NE$y41=)BKFRcR{k#Z(!6d*uIH-%1a+60)MBs)O8g# zjqb1Eon{MTI{k)q%E*oK%!i>3^~G)Jjc*D|q2I)fWj_irfC=tBGJhjdL#IJ(4uf=x zVaaPrADyK3=drC5x4SJ@=DYf?rcRxm`jJm}CBgZQ7tmBVq<9+H+9u9W;D+iwzxwon ztI?*T%kJz;zfoCutqm^k%9F^D{ET=fv8?>oPPwW+lB%KxGDtG4z=a==f2B=&aH$6g z^(vI*33EjByGs|lZa!2UTBOvh1+ybY4#F|`)-S_<7_Pfyblb;Ks9UZ<#yr&Z9^=2~ z>s`Iou(`H)`;nFU*U8mVrBTL5vkIz9nH-+eO(4~i83ckbM_NLZ?rF?b2+VLgig1bj zDouq*W$G&AEVC~_7*R_{pIju&c*Qfa&Rw4<$c%vARS(>HlK>-22W55Hs{{RZO+oV#dlE<(W z$!c(F(A_+@b}lXd0EMIZf{$`Pt#;JJN1u``g+@v|%@t%~>`6H%sjJ#um)a*1ILv5& zGga)Z9{zNW939;5><6uOcJ?t^#F4M?j0)zjQuo|j91DdXG9TtWt85Gk^C)F_C0Sx} zj;A4qYV9toO<_SOuP;gx~sa{ohZe zanhs2?2;*0Q-Z88MS5U%jk2c|OHu3F~uB%fu)#Bnj} zy@0OhI&~-QE}6?Nbsk$;7FtK1P7l=jQiol_H2i9Wx{L&QcG4sN0J^~DuUNuT0VDnQ z=kV=a5%-y!(GS~-WAJKrz^GhgX0>R9$~RK^P&XeZ1DajpVAK zC&^CCdWwcSWlm2frP)l5V_8UG2ssD6EoMbCz?0Z$K17si^K<=kS+C$o zgqz~MY=3prKd3d>8c-`};_E|c89H%&4p4Y%?%fMTk0^{Yh+nI3LW{Tr93f z%jC8NasDmRwM)H3i+w)kNaKtkWQ>q|pXXCXFP`kitgdhag{KPAZw~8Y{$UsY0EN5% z0EGiU)-(SAAe;XH{04vUuV#gkxyMrXHM|dN=lFqN977vF^!~Nz!8gn74Rc-u(k|@c zy`JXMXr1tiB#f!R@F*BC@x#vz~QQ(nwJW0PqL(sKUbaqjM^cM$a%c$m=rs znw-9ig&%;gM;;Q_+oqLq_>5OD{{RjAV{<#mG)X~rE%Qql>-B2)XI352%A)%iULUgl z(eVzSXN-xiBSZ8oGx}z}q@A`yit--;{5bIrm*TrULshU?Euh@TGb0__NE|6W&VLH^ z`R!$s0Br-@*O88&Jd%#6?ZYd4Mm@})QZ$G7RGPwY2ay{d0N&^8$^9{1J>HFRaUR8% zH3u2%)AFhpUL1Km{N1V<5s^qt?a0TkrET2omeS~SXq_|;>ec(T(dX=#h zXHLGl(C*;1w`ZD2_A2BqbH{&b;_dz&YtsNE7SMY6lIQ;bK?c2Rdiv7jRl2g5ofzIB$G1jTllB$3>a_?&)~&_`_qKkA{4KiyC&YD&UVa@I_=t*}y3(OEc* zN-1$kik?x0EfiHGAfk#|v;j*=OIjfXD5RyW5CtKnq%<%*^G18UXHSOe3oC%K4B|v9 zgXxpSZbhJ8%D=raMm-qh{*@iq#0@3|I~kn&S2L)5N19e5(l$}owPyN_XtxZvsT^*SSon~sSit-Sb&;v3wLw3JinSrY2{jn+)p zayEVIBnD&Nu0pv{?OR5aBeF56Qe9alSn|Y^?r6m$I-_9blg>|i-$R>LI~3NqXjOve zEHOxBOcR=})8z2AGT5lX`=T(iNd59^+C&ozfKPLZY%&v*fGW+jW?7X-twUp+nlD&e zf6GQ6O5L`PAd~c}QK(Q9bQPm&cq8$yc{`pqBBPd~ZNbH5Yd61Vhs#6rzv){S3?fF5 z^aGmYURiJMo$xkisiy^fSy)JO%br^!Jwv--WRq5s&5jJ8m0nnUvGV?+r(1GiEI1{D8Qp(6)xre@cikl>J*%h&bBkVWG=-Mm{9BywtOQ@qH4#^J?7Ea<4j9)6W(KJ=MZRu3UHb4pyu z@8~gETf=?fTG~q}NfaJ)n$BAqS4~rB*H^-~(z#X&WGA7{YojglpQUp~LAZiD)WI2G z#+ib4UDssO5)R(&} z6Bejdbmg--*LdYkrAZ&ksgE++O~`-x^*Tn;$V0ao9n&6&C5` z;IW82i`cxzkdR3*C-NrJx{HfwN+oliD(kEE% zQl{jqZcRd(JNrfa9Q@g=saV78aX%DIpIRL7w{ zhPe46U^9xY@+tyY;lURsT}F^;bv_lLNw@(AQ|I)Xcj z;WX`b>q^xky0nnS>Tq+&V0wZ(is&sh=W>?_u8T`HKTMLaQ_TS8biEiPCDt*OYg%FXkx_9)h zI+Z6Ud2V#26s;6-t>FzvM%7@{bbE$D6Nd%9`g?!0J6E&lnygyJp0lV6DEVcN`>p;S zmCHtUwn^N5TA%%`YouKZl_Sk=9V7n$mV@8?YdVp5h04|C&{4f7eun;~W)|bkQS!eh z>r{*xt<;hYQ%_l-aPi1DA@~0PJXU7ha7Q)4%HyLt9NO5YPvCcArC7`&vfJXC8vRJzV_+{w6&D0!oi+II3b5X54ZFB zS7-KFBeZr|Rw>;`MrF?5e0Q!2@4`B)Y|DkLpYGUlfum_;*m$XKh!VwnVyo(Lkm-^Kp`4=%1GeMd%faG1+lvH8dQ zr@zy$*1aXb10>*8M!PY$?zld+wJOr4?-D9eQ%8_^Lrr*RxxToKk>Vy4Rv01s@$5gH zbdKEDWp`_Bsju(Hmp5q_*WS6EOG&!0ZPF&_k4YDi`1)75fyGjt)$J$!Xn7c_H6ry| z8RX`W^T(|ebROorE6>@%v!0ZBy^vz(B5q%X$Y!uu77~-5nSZe-U3j zAS}U0QgADw)2^>H<_%|YBqVj(ct26l*9A4P@B(^5POBzqeVJypepZ`E);}bP#JAKD49Bx=82jvV5)d=da;hH88bl?zA^m zV=b8gUMWOnjsVH4g3Z;jCm+_PSk*=pVz3p;(Ao~K`BkAF(ZJ%J(xeo~a%6jH2&oE# z(waxD0=W|kjICHAm_;(wh(hyD#sw}ZM>Gww0H=ke0-aJzVsxexPNd^B2?|X&c^wTY z=cPo<7p*a*Y$3`o(w&-O@SuBA*8b7-HL&g3rKZtZDvzkFI+mGBlUMB*P_VR8W{lHQ zhz_KqG*w-65K%=Lskp*}Nt!8K0*WarTL7aJw3Q7EDJV2nasdrNB8+tAr=~c_tgccs zCdwR&sLsz?GsVFsvz#)q{GJGsqW zJQMY-OW8L{RCEq9{HwXH0p9`jn@L4uoL%>A~@ogK(ti>S|dJ5i!Ld2kS#YDC_ zF%qzZFGPlfWnGSD>@IkdH128~y`XO5IOBP;$`~wY$`U0UKnN^sFVi zw^7FB{3}OS(y!;f`H^E$!1Ej}MHhx8b^=?=W%b(OvH4X+!7W+pVQ^AZmC;@+sN|JV z9OR!vTT(96LG6mOr}$?`w0}D1R@_&#aIyZCGwVJOwTHVm zNx3B*jza1K4Z|)lr;+rk(gVO;{uSsJw|*7X*sK;;MpWn|Dx{Ch)!5_GZQJG2bC2&$ zpZ%7b#JK3=soz5lDMdEVG>$8W<6|)NE1H>f>y~g<+E2>6Yrhl=3&ysOM6pf7Fv#VZ zTkC==AO03Tq?4GX()7qmoDi_KN9M+womZ-l;$O0+uX%n3T4>sX^0v?URO{h=Qe(xx z2iCgFKNZ|OYVQnt7-T$1IQ$J$)V0ldP|s(p2e<3FA&eCEY%foL&(^9-5V|3%bUU*m zKLTo!^niX% zbyITq{IgJ%chw4Nid#0B+@FVRKk1rW}=&V?UJ&6&Kq4Kj4a#DZ^DC#O}2J01w;g_JTXDM#>$htdk)A zW|^s5=?!f0wzX=*);Sfhe+<_d5wf?3WV6iI2N*_Cv3>JS5wt<2X;a9L<=Q)veLp|S znx!k<$j(%#xpOG$X{>rZq>;=umfj9mYz%Yw;0nI_{+eIQg68Gq{^@~N`L%N(h{u;K zVWNIi=Qtjf63uL~v=YWB}z zw)0GPxKaeM6wg9X*3xK~diAo&YiV+`FHsT}Q}10qk>I_4RS{p?B0@$y$)r->kjeb& zCteZwnQ_CnvOM%lbr2+{&>>0eM*9B7#Xi!o6!n_-AEfs{OsSOQvCu z+@=DbP;w4e@~*-iI@Z!+*7mT+As8%(0VC^N)65|kXseq?0_E{&c;p@z)!q>D*t!$Z zSo8Rbf`19$oS(9|KkV1OMIIOC0Gf_-9kgvUrZtI1S)TwX^(L`djQa=FV4jViJxk%; zMG?1KISbzvkd7m4G2qvI@f*htbcagPVi8+7{q4>$(*FRmzKiSY^y|Y|-NwkUP6kH- zkM*xYjHfvBNm%BUK3B_ogs7~!1b!7;d#T3aJvpx5!dfD08tgWPFwhLV*&P&memEbE zch|oRv}=%dDMEb(XHydzQst3Qqb83HTd9!$0IY0Ot#dZe;mOBQT_215BOZsU$7ydk zV$g|7=a2~_`c@6TnRwHzNTK&<`Bw3iWgd006Qi!$m8OR~nsI7NK`2|@Xmqe`AOq8tKBLm5Ov@hJ;n$TkMns9_ z6M{KYO+v`sFhS`-Ep+ORv%(iqO7linZQvz~XYY>x0I&0|?%v@63ogj8JB$kQiwPyQ z)FHjMJ6R5S@9HbH`&qq3m>jDNfGR$!>r1jUh9MyqKu_EOLL>}zle^Jb>vP-vy}Yb>>uwB>s{^KYFTECf|3k^I#-Vq zUDt#)JBc7VebOH7;;-{$DXxOy+5=SOZdyb-{xJYg-+9^~zIKf)1bN7c)QX_{R z{*|;USy(k&9%14Q0(~Ovx6LK2hvbz103+}G>k#!d?DrPX-P^nqpm^M2l-HSfi^J3C z*9F%yS~>Y7^!7gg0M5Pq4mDI3lrpqQdpHa?D)zJAq37bN-SR}z(lzB0KU(KgW=EVC)@hRxvTAXeI6}|XrFU)v+OQ-J3RC*Y1 z%ADMa$*|SnzmMfRB?IP-k0a^oDoJ$(OsezztLLXqP?s!~nd?T=T+uGE0A!pBt1ZYJ zAj$QrFLcr$nX^svD>GFVNh7nIvCT!WvA_hA&Q&$^RM=gy9nAor<45$=UAGAyCB#;^YQpsZL4@X;xhBtxt&QYV{gCs9`(ms zS;=><6q+_gw?8_#!5HWW`q!;OaFh~*Jo>SeWZaRxVQOuxA%_?$xo@fD)Zuu*smS?# zsi1mR=~*1)Mluxt06L>N%$ot})~(;%rHz~1Nzq3G)bDyONfkOGfPR~+#4>U>DknWNsc?-OYH z#!|-mDJ2*tB6hg^4>hWf+PqJ|)|>6_^(P!lCd4PuS8o=lb7-I>&5!Q4KhC(Pf!Ew- zilW(_#_CdXE02%HLO0oSZ@bl_IQCTTN3tSP3NYsjcMHC9Q>@Hi9{ zkt~yh>B*waTIT3(~qbzs=w{0zjv>|%2<&UYMyB3jPQqoe^kr=d5MQDT+ zQAtgJxuZ0cW}@H}QJPHBxW&n(%{Mer&c$KdsNGGXk7*&;c4*Buian@Ubrl;pT8zu@ zOWF-ZvU*B`&TiD@k&jR+T!+fhEfn3})ShCGT3QOsWT*(N$rGidry@48vIHy!mHbqNWqF7QK_NAhmLJ(5XMF<6=idxkn1}LJ6 zrUFq#6$}KUG*MG=i$x_ATm_<%mZ>lnib`D7+(AVdq@l1rb5Tlopi;L=^v{p#RFIGx z9dlX7PTs|t&py?DR|_`N)bmKh6GI!MJr&3qfQ!!Mi!Rt<~7SgAbf`bRXMOVDAxUve;DA?T_wQF^; zx_4J1gy57t8k&)olrA%#4MV(x_p$V?T^8=yZJdbNp(WAdh6Vt+&EeXEu@jcn1> zsHG1x&Q|8tQB|Rk`(aWpm1x=SD8_WBcQU;}Vo()a zaNvIluF`*mIwjkOxx2kAJH%0Q`Khf9FX6X`^qEYS@!Yd8!+Db&AE+3s#7Z(+?q^Ce zi}F0@RMOJ^*u+QVWilZM@MUQE%}j}#+`QsYh1dN`JK`8pN6$)t)~{3Oav}?X8s2C`d4W#m?S&m zM&JGTy8i(6>)2w`EFd|G!qzkDkf{Dbtrfubt^T^w(l;{tzPq0{YCaUyJbJUm zPlG&4kfZ7LHv}K~VQ|r|->zE~44)6YWpWgoTPROMxzL}?X1%b>w2(nKrkj-naBzFq zKi6t@MxR%|bH$_hL*iMb5=(ty5gq);Bz{X;5&RarnLwXff-~I50dM9-dj9}XkZKkz zt~VTeiaxzqOAiKlv>ycQ)B$s?&nK^!08i#kXma_I=|>m;tzxvP=7pCyNy!9 z)BZkhZK3}Fu9B+%05eqO@lJ&myUul6SBVs}G*SsT9e(a}SxL^PR#N4Q=ssnT9n6F` zsH9ah;Dd_EviODJ?N#QE#^OoZCEQ1rS0kqzv0T2P@m32xVA&>~BgBDBuH@hzhX8cw zdekg6M(mNg#74)VC9{Ueq`kYe)9w8G%ZRPeb$MJU{LOhkj67N5$Zb}8ZAD?WX4vB1 z5Ts|PCnxo;HVrpX@f1yWJ^7a45(v0T|}zY=q+;)i$A~wcE!flq}OR3eh0R zbI=ef*M__~sOvGiX|eB+J{vqDk48PcYu2<63fpL4JeZpChcc1E`!D#?#A2gCTd!kU zG+k$Me*x$N!@4S^%Lc!g2AJnN2V@7^`TiBx1Cg5N+{+BR#!8N&nX7n-biF0zTpO1K zV2u9&6XTD|ui;)Koa)Z|wt5qyp&PA{<{mB7Bfa>eBTLP+L+rqxWg!0mA4+fhsA;fu}1|DQD{6o|qLtjYV#pa>U zHRE@%h;Qx?54j^K{Ob&{^C?B07^R|+-B-hQhSlyYwj;P(wSzre-3@?x^<$Knw1#eQSj-yZH2-`cRDoZs<%Zx zhp_yAO5RmS*XJZAI0L0{GPz=MDr-Gr;>FZ|t%!fiHa$L`mF8k2I=bKFcF}Q$jUJz; z>S-xh9O1ErB$7cqZ%2l!{9rMj9$+%$9inCgd5;t*8onpCx;hrUu zHyCAZhLN8Y6G=@;t%H*1nt1n1y|IlAx)Y{nmR_N|2KMx>3|!sYfVOQXogoN{yzVF3 zzJQm@nm3A6SB=KjRv83)*AI8$JAD@FO+wB#k~5v4@?i(AJ-z<`$@C~~BR#4IbF`Z5!r}SfJoX~JPF2dc z8`JAeB9lJ!X1!M<&#>hKIjpPOmY!gd15E0XjI(sD8+|lEhMV_|>DYgbd8U)%OPw**9GPGT?&p>N0CfKVO7#67R<+h` z1hB{%fcb}U_*aFA!_=d`-Opl%A{9MJ{?U#xPf1H3YI|D-=7{0hT$&v>ETpFxfm=pyF7afvnzK1u-3Dj@Xn%a3fPBO7tdgZpF@s)% zwy9oew%369iHGd#!LLq^V%C*a{LVUB=z9+pmH<9V^oP;2^yC3i$&aB!Z#R|qc zAOf^+JOim%UrToreY!GB0)zLNKC9pGth8et#>dLBC2)G@uk^1*ok&!RlwHngMo@gM z7D>%p)1dRNfg|NkPxPvtYoM@zTH1}@eZFH&63Zoa;F>~n$u!1d%}5s~EO_*-FJdfJ z)Gn6R+DU(l7+3m6eJkKS1MlyZa*Dci6ZJHwXofb<-dvGdy*I^Hr z7$!*wMFXiOrMHX9g%iFx`qj-A-EQ^qG@t4$hV$;{p#Hyw0CxI)w0cI3ZDxcsM1VVX z-PGgp%~!g<$RQ72^&Q11EF*8? zdj9}V%DPP^&7iY_+z;M1GC$fij3~lu-d8GfYh%?k-xkAp2zjk!h?9?$?g#l++*h{q zF65LE@5l45LdL{HZo7^ZK*=>Uw;pH_#t4XhwT>$Zho-c;WYMWoa`HOu;~B`utwANv zWc=%tN0K5$Zpu6J#c~!tIMyfDFLp^BmNB_l)#DvAfylw<1lI&G(y0B@rczPd^%inY zN#>DNn)MxoSwFJ^Iz8kB&tQwA|vSyC;ya4K8XR)Vu1G z+9Jf66jK9xQWo^8by!%El9(9!Qs$-93l5^2MNc>jMI{uufOQ$9%^9mw5V@tK%^9jv zKrIxRqcvQ}51fNjv&9rwuzZ6uFVx9!aB+&smvDAcazXBBqO^hQ;n%o`xjjvEeiFQf zEm9jhsC?L`aEd_X81(!oqN<|z8PK;qF6&9PNK3~UR$hL!lXGbW-Lu=wfunJPKdls3 zmkB-2zE!d3dX|#bI)s+OMPNBr_B}ID3kgs0C+kHO>PAnMGm^^oJ3k2O6B0DrpWXnZ z#NhIvc0S&f+u8VfZAF2GNYg#opYWoJ;jg5$HKzUR6W;tOwbfcVZ#4%=6M|uk0!OA# z_*J_vgq{_)$D0+^(I4~Lax?z`eC?u&+A?V*nX80byGKW-_+LWOgMEujwu?LyvvEI( z$*p8mjc|w*dI5?krOfV9No+cbD66;tqp6~beSlhPQAHI#5JCf*QZYppiq%|WNbgy? zhO-8kKYo%o`+y(jMHE*xPj*Qm^fHsi`fQMyRtvlWR|Qx90E()2K0CEo*^jDrFSim?rIWm%8}HBI)gOZ=s+n`$&77{{SVZG~bFkhOF``SXx`i7jm34gY_8{ zQC^KaB^LFG#VYj_Q%t3Q@h`+Smqy**-XMPKLl*3Q40!y_WnXyD#y(J;^_4K5im;-e z(SNNJQgkUsR#9JZN~GGo$^*r^#nT0!R@4zs{PLKO&=FGHTCMC2E9x4Puw1v9HsF5> zD5X--e(r=uQkLxHCXghh6?g}NYWcL51UuOZ`x8YKvu{El{;zWrgVa_vyj`iMYJ{|D$9|)c`O!skWv};!xS!#pS46sWwUQzM226wK2pm#t*0Jx0D5YhO z45VZn8Yr(q8e&hl z$o#0Hv6@L#LVsnQO{IYGKAiUlY!`9KBz$s=6^I%4#s+=5S0)*vy$jqn(~ruED{2ku zx*;^QXK7`jK?ShAz5Vgo<}7RXag6ip^s3rMgqoo`mFt5Xj7r3uckk#ug%npLs!Gy# zI-DbDs~gj-HqZc(g+<{}MgXh{rbO3KgXo>}yT86xhOX#W0N4SUqgbNrA1wyPAVx>b{XZ0ZNsgltd|VC!ea~S zPfx;%D|)S{=wk(W9JJHRJnb}&OpJ0(PoQ1i>X*~PW>tbA-E!W8nkcSnl5vA^HG)o7 zWZH}}+Rx?4;j%Ias$F=ZiqZ|Zrpc1Cu;oq86nC!2Of97ZHtbeK0Jc8q`c|$vqKf&fWjNEVD8*SG)*en&)TOy9s5LT12%?JR9NQh` z4wRxiccO|+&g^Wq$vj3mIS2Hvc6bfE?GYgDJw+5#hTxdYQ{sco`H8@yiqvJqi4b8% zD>qZ{=9jCmlIqz^z!0-14mihN{{W2?RYp!O>5|p-XBnz^NwkSpb+}n=_iz|tzrfT% zcXCY>SG$Isr%gE?b!e#0$YUSMqIt@pAaoQ_T?S_hs?5?|HhYrBtJ%gRxlnozXria7 zX0y1CHhgDjCbs-PXd=?%m5yG2-mxC1{{XE;6{I&Jdm8b;W|Lx&zNW4-M`HlknPc41 zMOO2(C+wU~wQ%}}i6FI*{E!XgdXh8#AFW(62w{>^Gqp=&=qRGNu^+@bseC6Vrp9k| zc+96cVeK>9mjLE2Ou$OPEBc7%BDZMHLbOzW_l0No)j^QAK3NCMcqc zfDBU6MN(P-Q%S(0ik37$%yUpP8YrfX;)PTvsi~47MHJYi$<+X-QAHyWrlNC26crMz ztN=V#Z1Zz~D5A89w?dn_CXrj7MHE(o9DZ@o0a8Z@G*MZ$QYT literal 0 HcmV?d00001 diff --git a/doc/Scintilla/SciCoding.html b/doc/Scintilla/SciCoding.html new file mode 100644 index 0000000..d51e316 --- /dev/null +++ b/doc/Scintilla/SciCoding.html @@ -0,0 +1,259 @@ + + + + + + + + Scintilla and SciTE Code Style Preferences + + + + + + + + + +
+ Scintilla icon + + Scintilla + and SciTE +
+

+ Code Style +

+

+ Introduction +

+

+ The source code of Scintilla and SciTE follow my preferences. + Some of these decisions are arbitrary and based on my sense of aesthetics + but its good to have all the code look the same even if its not exactly how + everyone would prefer. +

+

+ Code that does not follow these conventions will be accepted, but will be modified + as time goes by to fit the conventions. Scintilla code follows the conventions more + closely than SciTE except for lexers which are relatively independent modules. + Lexers that are maintained by others are left as they are submitted except that + warnings will be fixed so the whole project can compile cleanly. +

+

+ The AStyle formatting + program with '-taOHUKk3 -M8' arguments formats code in much the right way although + there are a few bugs in AStyle. +

+

+ Language features +

+

+ Design goals for Scintilla and SciTE include portability to currently available C++ + compilers on diverse platforms with high performance and low resource usage. + Scintilla has stricter portability requirements to SciTE as it may be ported to + low capability platforms. +

+

+ To achieve portability, only a subset of C++ features are used. + Exceptions and templates may be used but, since Scintilla can be used from C as well as + C++, exceptions may not be thrown out of Scintilla and all exceptions should be caught + before returning from Scintilla. + Run-time type information adds to memory use so is turned off. + A 'Scintilla' name spaces is optionally used based on the SCI_NAMESPACE + definition. This helps with name clashes on OS X. +

+

+ The goto statement is not used because of bad memories from my first job + maintaining FORTRAN programs. The union feature is not used as it can lead to + non-type-safe value access. +

+

+ Casting +

+

+ Do not use old C style casts like (char *)s. Instead use the most strict form of C++ + cast possible like const_cast<char *>(s). Use static_cast and const_cast + where possible rather than reinterpret_cast. Because the code is compiled with + run-time type information turned off, dynamic_cast will not work. +

+

+ The benefit to using the new style casts is that they explicitly detail what evil is + occurring and act as signals that something potentially unsafe is being done. +

+

+ Code that treats const seriously is easier to reason about both for humans + and compilers, so use const parameters and avoid const_cast. +

+

+ Warnings +

+

+ To help ensure code is well written and portable, it is compiled with almost all + warnings turned on. This sometimes results in warnings about code that is + completely good (false positives) but changing the code to avoid the warnings + is generally fast and has little impact on readability. +

+

+ Initialise all variables and minimise the scope of variables. If a variable is defined + just before its use then it can't be misused by code before that point. + Use loop declarations that are compatible with both the C++ standard and currently + available compilers. +

+

+ Allocation +

+

+ Memory exhaustion can occur in many Scintilla methods. + This should be checked for and handled but once it has happened, it is very difficult to do + anything as Scintilla's data structures may be in an inconsistent state. + Fixed length buffers are often used as these are simple and avoid the need to + worry about memory exhaustion but then require that buffer lengths are + respected. +

+

+ The C++ new and delete operators are preferred over C's malloc and free + as new and delete are type safe. +

+

+ Bracketing +

+

+ Start brackets, '{', should be located on the line of the control structure they + start and end brackets, '}', should be at the indented start of a line. When there is + an else clause, this occurs on the same line as the '}'. + This format uses less lines than alternatives, allowing more code to be seen on screen. + Fully bracketed control + structures are preferred because this makes it more likely that modifications will + be correct and it allows Scintilla's folder to work. No braces on returned + expressions as return is a keyword, not a function call. +

+bool fn(int a) {
+        
if (a) {
+                
s();
+                
t();
+        
} else {
+                
u();
+        
}
+        
return !a;
+
}
+

+ Spacing +

+

+ Spaces on both sides of '=' and comparison operators and no attempt to line up '='. + No space before or after '(', when used in calls, but a space after every ','. + No spaces between tokens in short expressions but may be present in + longer expressions. Space before '{'. No space before ';'. + No space after '*' when used to mean pointer and no space after '[' or ']'. + One space between keywords and '('. +

+void StoreConditionally(int c, const char *s) {
+        
if (c && (baseSegment == trustSegment["html"])) {
+                
baseSegment = s+1;
+                
Store(s, baseSegment, "html");
+        
}
+
} +

+ Names +

+

+ Identifiers use mixed case and no underscores. + Class, function and method names start with an uppercase letter and use + further upper case letters to distinguish words. Variables start with a lower + case letter and use upper case letters to distinguish words. + Loop counters and similar variables can have simple names like 'i'. + Function calls should be differentiated from method calls with an initial '::' + global scope modifier. +

+class StorageZone {
+
public:
+        
void Store(const char *s) {
+                
Media *mediaStore = ::GetBaseMedia(zoneDefault);
+                
for (int i=mediaStore->cursor; mediaStore[i], i++) {
+                        
mediaStore->Persist(s[i]);
+                
}
+        
}
+
}; +

+ Submitting a lexer +

+ +

Add a public feature request to the Feature Request Tracker.

+

Send all the modified and new files as full text (not patches) in an archive (.zip or .tgz).

+

Define all of the lexical states in a modified Scintilla.iface.

+

Ensure there are no warnings under the compiler you use. Warnings from other compilers + will be noted on the feature request.

+

sc.ch is an int: do not pass this around as a char.

+ + diff --git a/doc/Scintilla/SciRest.jpg b/doc/Scintilla/SciRest.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4b052239cd953c92a5ec4bc22fb9aed2cc545a1b GIT binary patch literal 16680 zcmb9BWmH?;7d;9GcS>+~cLKp(iwC#ht_=jY77yN1B)ApVput)sc(6i|B1HgmB5;T!71Y3bw1si$uY`L_+w0#K2WQ<9TXQBqJ+1F2{j1(_M?=^3SX_}By$ zrB##_q~+z*A3{ykwQY3dsbqZ;3 zx_A)5LoL52T@HL&S{rN+ml}$_*$z>QA0io7^~ydtrI{A&W?wfATguRQ3>3EMKNEgE z*MnP7<2O}WC`4~xB%&|Ii$U_4xz9P>RYicML*|2p$qPq~I!%(BNzIqt@%dNdOc&}!x`;GN;a3n!J!(Dl!0(}NRRMn!IfsM^Ge%Kv#sy%@58!1KT-QIT9#*GTAi}N@z+mL|Xlni+|o2YEMSL#w<1xH*R#TGv= z@rZza>I~Tq)bwrr09yfzQAqIv++-%B*lmNfBtLESIrLakWXWLayBM>T5AFCgPx&|X$w0Oh12 z1W|P{hgsR4W;UxR8 z`{R7wm38>qdM5_DhQev~aWe+U7}4SCE;qWg2ibo(8;8DbiCVw)XX?2weDdkbm10!b zSI`DCP}(xT5m4e%V!5oqENtv5zb+GURljP9`#{bskmbG1xw@bc00$t2pqkX~#2-sX z_%H)-WH6Xw;&P#R-S>n9BsH#D#*EGM(cZF&&8Y1J22=3&53k+2L+#!~XugRNsrc#r zu-zSs6{)R#vT(K}0Pfo3%GY*=&msjCwQpTU|h@5PX2SkB}h%r$NNnmMck}lMx_8GW)b_l?H;F z{JQKlrzj)EKuNMttv2f>k(2n5#yp=-$j9vu-#3E5*@laUHJ2QEmEhB90TT&p0VxZ>sjw_w?TpG)c-_hq0eJYAw@y^q(uGXsRCzV zK4Y(i8O>^Xs)~q-1vKo5$^5&L?)E>w&nq0GE!V@7N9#oS6c=-q3aTt+5d`WyGyom= zcX}6|*j1gvr-iBMmaktNRGYI<&8mx1CCrNDQP#gUD6t~@<>SR?G0s+_;nw1rpRh5{6&>O>ru^x zUC*sq4$OZlUVNE;IUe;!i-G*7_1#p{k&oLGVtqjzDTIcZg%wx`Azs#4!jhqj%T)yc z2oVD;Te*4^>Wz7Qs`KnS3E_#pJ!1_bJ_dy84W8!aSg`EHh7xkIHqv3*tYjPdDg6h0 z2h*ca#4QhGq4MH z0AVuDYkW!d)%(wvnJv}sGt}-h=96KDpPitrWUrP?>=!NIt$_J$JjL_Xw2n&07m=I7 zcJ9>F6p|CQY{u+i3>C-Nnt=AEEj=u+g7?u6tl`*ECM697`V zmxVknB5z&@wJe@s-Jw5WBa+)}{wgF< zZ|);sBtDRWm8=&|HV3#M5iT;bLXanc0Ak-K!~iyKVMZ@IgXaoQd?Dl{4urmdQ)&+Z z9d%ZXR`I9n;hmE{{9QQaq^nutF`<-kEEI4~hSGewXQ|x{5csFIG}Vkm`=|LD>Hq+W z0#5a)SRKGqMX#<%3P^oIMFBuUp7`M4%F-Ao^3qBIaL1)*SV9OvETai@Ddj3S6D#W8 zp2_g4PZKH$K@*ihE{flLfSt4n>UcPkx_~DyMqNk%qX7KT|6W1*lpLo@?Y=tmQvq;s zaqw~R{;S{r|LTo{3#6jv?`t*jy%mQ5_eZ?G12-4-q@7yM(vceC zF=NdNkU{H%dkobsI#yP2og;m4;@P9wb&tlbhi!d!Oe8-UO0VpBzY6O`nv{NB>j8kNZ`Kq#J zE7n$|0(9xpg`snbJQoANL?`DCb3<{ypiJ(~;SRE}TWCQ%-OsDgQcMUMgH}>h&~}5e zWbvx#=9~6sPKeE5fyx`>NT&-QZot1zO!x6~oGs`<^Z<4u(9bBt9cvHKy#84yQ~ zMz_{nJ6>>Beu3Wf_bfx@jYRGd#3@Qu#Zuq(vL!So>Bj3H!0wp*X~8qQ+)%@Oz6IdN zE&66f-%qTw`j!QwgK9nRrZ0RMid&}NwM6E#HA|nDZPuZ*`>)YBNpOIt+jq&h0X1>#ay!f8uK4UT>Z-#8#Pg8n3YZ+0MO6_R#@4M+o)$nx12zTeUOM~CQ*y-Q1+b_dp)W6I( zKK$DnteLfHqB*iOIxpdoA{yrzomn^Y#T)hXOAhJj+}y5;9*P3GYqm8RuNQiqnsyT!V5=lU!0E5;II2^IH(zL~6%N)F!W z3*|o%U3((CBU%0r0z7Ohv%go&7CM1Ncw4S2X2UP&Vps$G`fV?WDFyS|Dj!fNtMQhj za=)ETwb05ai-v};(p(y*HQIhzpX8eVZU#+mAAFI?|Xrd6NZuloY!db@Jte)-Dv zvcj|1{pe$0fah|B=N=f=`MYH;zO^p7ug}SEK|U+A&F<;+9=E2>oyR`_`&2jIOJ$iK z{4&bo-`=#gll>9MfA}b0t4!1u({*dSojcXyk=CVl#wH=~Cerz3x@ZqLceuT9%QNH^ zSHL|kZ~_7Up~C;8asRJZ2XabMOQ~~dnEekC?yYJ#n@6&l1ue!V;b5d}`rP}4Dz6{; zj`SU?ucad$!?L}uqi3E%){Y*!9640MRDrO%uoYswsyBGYg_g1<=MBD2G=AAD_d++4s)T`8m_LPWK+Y=I2)_NVQx;ri z#Zv9PDk*La^=bdq=j}g;C8epk3tWtiKM&(%JoUwkQu^7Z5CUD{{AohlWRAPifdM{A zHMt}P?JcK;UD*3-L&J01Uh~alP|;KuzgqO{vQYj9xObfw2>1^XaR~k|K)mNCKwK(L zb!tf|JT8ctt48qu+{gXT{m(DL4Rk)1>1miJh&npk_2P%NjIL)`XZL!%s8c^*yPFu@ z3;iL|171TJhB>clPgXS=bu0{rw!aAjp zmr=f|&HGzm`O|Cmc{QG+*(3Z{iSgrXJkL&2I|x)(!&5tRl8^RRcsQUw0^#6zXZ+S# z0j3d$=i#Yc+Qdoez%EptZp@Z_>&Gqku5Qh}7m=@xcJF6zBXsQl=b{J|00$2jpWr{- z|33o<$R*`+?Z&GVHTW#N6iCz_J5$CP!0FgN?7xvDi#{qDWDy8$~SW`%_aAV zKk#|S&(w8u{8ZW?caR5@H=NC{hFDnlrI)&2q_kD@7NQwzaLz z_W7jKGLR)Z<1rV?Ag?$gV87&6*ECO9etJMK5c=Zn!^WVGD{W$5H}iaS%{3f_ulD;^ zm@I#)YHQLrG#)i#sB2vX#@oKj1p~EpzRNB;zj@$VshHE?Z>`u3vr>T=X|;vKNe<{M zw_X{-W4$+XDHk5Z)>^*(y1_;iXmOA}C*SSaR<7I<#&rB~{m78tvb!{KU4~Mp;>Wx* z$NlmP{8tfi?*nsx|DO!Np}G$ar-qqpuw=rsYIW4uw}bzyB&u__{+-)odYeF3+mZ$=lPY*NF6*xL z%ha9vusYxDY%*F(b{FOC^_og+j?oX&*w*mf770m>RjhUPM8wm|jn%e}U+L-833mOG zC}^mMTw=hrKDSF%@j5!7fc>Z0bcxjq%u3hH`*Vq#Icc6cupqMyW~F3bO7kjqOrIqe znP1MibHdQL>iZ$j!pT52pN0=VC3yXp3t@r54Q^EHGV2FYGOY`|^d(DqC0bFU-+6t8 z*&Zn7*4a9+hj6t|$0D=;;>`)ddLOtwCNOIe%m1!Wje+#Z!B%vnlFcFuPj#!S4`~kG z(ShR%Cbe{Q_CE*jd|m_1Sbx}gMM2&WY{_I(Z+B5oBFc%6MGlJbx{AK} zU%sktdT%GWyxUE&e~lw_oUcO;+0#9ZH@*z>&%j(yLs`S68@sCp^mK_ow}53WxwKH_ zSmtCr>r>{vfG85t$2Tf?3o+~DZ}6KJ;*rN+Bndn&MaX#guo+brnZCK zmlKt-bdLo*e~OX!P$}TTmBvrCT{^Ml<3x z-sGTrwnw_V3Dzpwb@3qaV5c#7ZD214<21JH{tawmpRpHU%A`W3mDxDN8W5C*wo}Ow z-Mnl22S{ePmCHLhoENn#Eh2j+O(aUorJE$0S}n`>S_EZX$Wg6KEBwA}<1v|F7HLNp zYXVkw6Z7t=7k4K`rXiM}U?9wW^fo+E`L%lF!kl2U}|~DWtK*$!b=pQnI{*%^Nlt{GIAy+E}nAltFGxh{FXPMxy6+c&s^$ z7f723REpyP7aOU~zGOIKcuzKw^q5ex?P=*Ub3?e)h%#ex2KzA^`I&w4zVdgEkNc)R zK@ak7o7URCHCE%tFvQSVGy2nHWSn9?J1ubNB~H_k<(i?LSg8IMu>hNV@~28Iisrv^ zKys$Iik_pEAP4Z8jNbu4=3BK?y*Qefj|>m)gwBVUS_G}jJC-+k%=1b@S_>=9XB8Ru zYMSThn*06%s`)%c*b51)J*a&C0rc8)YC8F4!_B^7BTQI~3zd4NMm*vYe}s+wWuHHO#~@L@ z@U6+L+l0hiDhJb+@zjT|2V_3FXENb2jZhS?eActILj2J+q@W0%TAVXei|=AlO*tdd zhDkllJ$2$iopC%X3=fxk_z2HD-IbZSp{wOVtlVvW*!V)DB@IYR)UwAMqXJf4F5djE zgK$$!D^ym9jb}i%bKpDm%x$2C#l@L^C?0ejSDpsg<*TZ|K79+aq2MBp(i}tG$UDSM zlX-_r|4tsS&tKFGgA|qbSxNoUVjf%jEVkk>+E4n^-s5sPb2QldG)97$*OfAB#}{D~ zuPeuvFGsw&m~851%A{2~dZ8@%>}9Y|KF@ln;4|ey39VUX{%_3pyzNbmt?zP@Rlp zvy5^kV>HmfmJS;AB}UI)k=cQVaxxy%^UjfN_d$aWBhBW%H5rPv1LIudlpPQdq_fb&BiENa2c4?=vipyKh9Dgm(Hf2Lwn9aM+vz;5zJqDO;htGY1wD(?e(HgHCO8c zs?4HhPcoX9V)hMNAt_ahN!+DNEQjkEwBMoM&2-}V##7k7L4_sdbxKwuxssC!1 zS}o_Vhjq;vygHrdX&>7mZx5SUrOa`N+4wy++z zzaIt^ASsgOQ(p2P? zbO$-yWjq0NRDJC8a8Q^%MM8`ISy!r$1CZ3vKyd2TyB0+WS(u=jOJU0wU=~E#`sl&e z8llm&GVkNE$Az~v-el!}#|(d(-R~Plnm!=-Y%ify%WgQ#Jm=Y3GtaTSowD`nHE>yM z`J0bss9fHM&D9oApF2l_T%;FU`YTb*0r~6cZnQr}sybinMD&b)e~$U2g`d4)%sx9}M_FMN;DFCc3Lp6L#N0-|}=w zT&$1&0d71umI!{L{sC}*Nbj$ZkVmbJWQw^%nf@f(*(K2^W+qFGOHy#18ZmBWod+M2|sfx{RkE+%bj62;H z;xQv;>5z`iK3iJuKN*f1hm4ou5e%`+F@jRMC=y!8t&plXWBsjIR%5jr6%xOmt3{Vc zhq!(r^&{ln=A|1pT(oGPpNwn+t@()VVZc8?mr|N1Qn025ZB{k?(x@zj;7~ky>1!wD#1(v@Pk5|EMFtV^0~6lIl;$WU7v2MlN4G zJ9C?pc_|cKkuiFUiWfi(ycC(;`W&eQs#v;jE&sPO0{E{tr^;yiYW?Fe?+ed>i`BQN zl;nw*3a({}KXZD@H_qN>dQ`|$^GZ!ga*+KfHl#B0PM7NVGONm4?t*s^GNev1FjYd= z9{AQz-zJaqO}t!MT;<0U3Rd>NB2wP~W3QrT9NaXA!6Pb<)R$kb~UJkE@^|-u;WgN$y2Wk86zAwloIC}ql;uG$y+I2 zk_~RKM2Y?XbyNYaQ54Cvk@@6lUf!phTrZv*@DzJqz9Rs)d zC-%~Kfn%bTRZnmkUXe<^%$yk~CmKgcj9$Gpsf(_HX)3)F{S|2+P59pS-0u>BT~HVx!dNs z(SFwh3c@@U2O%Dc!K>kyN}fg5rcYfbUfWNi1K;v596jFteH5|g#%U`(7JcyQ$$QC| z4aHx!c0@Y$)$D$2oulg?I6((k-#?B$y-?-{F228tD?NF;MnqR`s$oF$7!CU?V zYSfDR9^ZZ<5UN|OG{?PmkCVzCrG8VLr^f;xG|a?PJ$C-(`uUoP!D)OUCMl2Gn5^r; zHs!GQzQe>jw6_WnKZ@qv#4pj`f9YZ0E~C3fXO3R7{mj3IqUVpkq=u{SUa-vL-*H|m zoGk}bCTjH8Z^;Y>r>szv4SNp9cy=dRG|@djD)rn*jT%;FKT(vm{|qzSi2(e_WAxzJ z38B}LKNmin|AzSJNn8((c&G<#61t z%lpRqfzntN=CQFe?-24%G@a>aqcI|rw=0t5WA>MG@(;0W+e}%bae1*JI|lwQb{Qx6}L!*i{wLJdd!r zs0)P}Oybciw-S!;^Rd^m20t1Og1}(|f99;zwobaifRJQcBR zPiY+xr`meD3dcB{Sc-rC)M_nJ?W&@lQCA&=uQN6rJ$XFp09k9&8*S7i#}hfQeQc(! zG+=`x{`2HyUO5ZKjVsLA5vd&&J^B9Y6<#Y;RwH9?pSr=!BBO(gBO!KE51Zw^j!(T8 zd-982RlfW)7qM>4gt95{=IHVN+Lps2=HzFiz}{@-#4 z73((oLq~D2*d*?3L_n=`$SB_@w0V%VLZ-j{1t_m88gtK@q$UQ7o75*JE^sq=^pJZz zC#*zRfMDSt8+1U0EB`4{0c&GrQJS73#}4QRqO^=^n;LMU&cx?Q3c$b;9Ni+S@xJ!z zSX?tQFacXRku*iZ3IK965c*oiaS^$Jre|{UYFYz2>Tkc8HvE)K4xq#p;G0aX>2s}g zG%!$;wsSzrzV{->N!b#!&4IdR1IPq(;@x*eSrP*5Z;-tp8ZkBl2@2peV-iq=so3AF zW8j$(zHlUydc2$c>zN75U=j-(%q%1tj%}T)C-nVGfb!Lz1dA!W$T@4s$gG_2?sxm!%1q1yDfCwgGe@~V+_FPFYfEaDV z{}_aG0Ozs{>V6gJIzzl{v#f8+z{KObT~~d~dgrcZRuds<6(1B&#P}cALnRt==6`PON9bFGyHC{=U~mYz z0R}AOt&hxuei>d06BDTzqz(khvdTGX3i-6;S{_5S`?KL>c2N{d1WFgG1nP@Xi9KNI zWezF5+5v3}ddqfO!f7iCyar5w-<7!cu=e4#aDIOzqd88Y$YC$Y9TreSaxoCTWAx5G zQNb2`JBezn{0e!rksgsNl_2>E=~;<%CU{D2*=|Dne-t|}_x#mLB=MH@t@Pu?yr)vSz=@LwC_P5hP7ca*17zX+@X?S$SP{Xn` z#-8r_$8bRo;;%A!m#q{;FxOT6v2j1)fGZc26M^Zp0gVfkL03IdzC16EZmo*U$G@i6 zE(Msi`C~>9`*EiHegvcJb={N_rVu;_HTVQ8l|~gm{X0;|IX&Rj3g_$cx1?R-l1-90 z`}WyeplvDl3@{rAbuJ8e=>~XtTnd+?Kcf3cC3#s*l}KdfmoE|~)%*^5(xCzetR?`! z>s4~|wVWO_ z5zfg57Sz_>y4F`Iq)(Ul+HJ3k?02HTLv8k+DoMCd1*CJ^We8rFsmGpV>N{YUsD(G*0xzs$chYUx^@djs#|E1^Q zabYh-_>y*5OPkgZM(s8C2V_vUr2Jn&>FJO!dRGh)1ikV~Nm?RnUgK5_jRe_q{{VTD z2H_>q`L|V9jJPOlfLH>y(`t`7c@(FU?g4#)?w)iiKxj_Gx_az^4_k_PEmxB0I*P~- zzZ2R`&>59zqzF~5D|K-lTQg`)Ij<7Ma6{k?L)` z0%N@dLW9&ST@pjAj`v-s)gf8b@(veBsh-&>b}aU&B*o`3&8Y$O_U98N_4jbrm*tqj zqk$wZ380YInQ$B1v-BXlsKv-c!NF7^HaFr4+P`ORH;@e}Gv_o3-AP2M^9{#TkO- z{}>?O%3of{OR;aV$GbUP6x*ae?w22V$u;7A8^6kr0@T+&vM5w&3dInF5fMX~rLW05 zr7(jT))8_8mM$sSKI3Nbhc9rCXX)7S)u|4p^eFA}KZM5_JgB64pfe_(u#&$Camak0 z#8}M2O(e48>VJ2PYRz9fz5G6Z@Hm%B8K+L|ZAm`k=(CxQiQBA|nSu7IO~EY3u5=G< z+3Ax^7N2~vzD+>Q^huzR%GAhSbfMLs)>?l{h4N)4NTNyPQ1l5KWZv1B$z)ajMZqE z7n2_FZ8|N)OYhM7w#Iaty6xv8{tr+n^DfR%+Zj2_IyfJc2S2RS*)Ix(`5m|F;W)%( zGx(Y*p4<0MONPp4*SpCE+crJ3u+R%>?z^CS8|3i_GxU6mejR-R`v>p?Tp$Gh3Isdx zf0EC%&A+^&(D>4b>W7Zj$YuO0xsirWhz+I$V@-XGj?Ve~MOfd9i#?+9S4*GFGLgcI zLRjyY{Kd`ms@MIJ?zSj?0dBK2vOZ}4(DVTTFU`hXLCZ$&NE9-qxFa+6(w)sFn3GC# zHJKhs+ba}Kq}#UpQTnEcP#IIV6sKN`O+vqrzC>DC+|c`Q2f@SGl2d}kpq9~S+0km! z(iZW8!PNODzt^h$)$SMs>f^LWKNS1=oy+4DhrH>nS0m)+!;&m=30<0)ozURD0Si^OM+Qb75;R7;| zUrlCGCtAS1ZL-l`!8S7u)f1a zge+BRa6DQDC?U}DW z8ZeA5DCfgsPn=3Fo_xG74i6l*WK=Kqm;TA_po&5WTS7&cnT@F;AXW;`Ly!lKyx zMI!?GFj)#w`P{=da%jGf#T5PnHm}lkynzuaYOv9@5nlyllX1El`YtBbld$>laWe6h z(LCIl>is)doIw4dH63hX z6PB(5(vDjk7fkL)Ahv=2Vm`vX`a>H|ZZKX6XZr}pOB6PHc@ie1U;7xTfDSAa9u5lZ z@=#tP+Ihc^XtSuOS7xuM_H~@AbJSw5#?b%95Z#E-98w6)in8ns!VM;Wnnnsp1tqHX zvqX*Ugw$AF5GFZ^LrM`Y3**H_*ozcqLk<`PkdNWqbsQYr&Z+CNZ5%B3Taawit#oGN z>;W)!+Us2G3;Mtz-@S52Ve!#`WhiIs8UIj(`9w{zWzSAj7`AQJMbpLVgtXMu4q0xZ zvG0;|djT@ofQ@Z{Hb_r*LiRBuR);<@U_x4p3p2Lmc22Bc-sahjVhQEJYm>Y5!5z`w z6R(W5&1u$E1!0H{Qfc;rcyn!XErelULBqhw^GGdt!)#{p(5}e{|*H}P( zc{Goy3fa)*ce4MI389-JoX=rCo4B+&=fwp{|51<3FCUpq=PIW{28S$5;-apQ-JJV_ zwn*Q_dOHW6mjWjUzOjoDm+H&7EL5JPE{Ed4o9duO z+4B=85G2gV@xAB%@5$An6V+zLM;?k^q`K{A$Hxedoyq><_Bi9hgG4-QAE>V2YqmL6|s+9%ysJHbrCDG6Jv2oj%Z$UvGnI?}BvKWQyEU zF0QL`5iq5vletX6ZQlf$WveiGs@lU%$6?TK?tKxU>YV&QkPTA2EW((lUaaePhRK>IZ=bk=ih6+P3k7d zdMjbz`yC`i!LLJ-QCP8=Pd!6nc+TN-4;mNwS?$HS#1g1)v%U#C4!kp}W0|uuYM!#Q z-*q5m2r%XCmEFeEjWb+`|E;5WIUoLuAAuc+4n{se1XX7+DW&fo!3tiX84c^r!XUo- zXO7LqlDk?4Z$sRIELA-dCT7tAo~?3JaPbML;XBvb;4!aY!S|1WQp~=YDJQ`vM9LUg zL6E)v6bjqS?)5{GWhvG$Lb>En_!<{Ct?)*SX5f`&Gj$b|*?3u5uOy|N-%AW1+D#Xg zth1o%DmWQT{zMt*E7%TNs0Cw&j4r^@88}Oz4HZ9U<)JcqOJat*0;fYWbcTcWQe=~F zs+)xJ)W(`7ej7s`jARQ>xEUQz*p4D-6Slt6SX0skmPYka%#M7dSi6c zA@#;9#E+!<%vsrRWL~`Vp0zQ{&UFo(`%1UFJg5FuypMT%$aud}$ga1Gl?H@&)kp&Z5alccd&f-iKNa{em(q1@bprVnrXTJOsXlkGU!pE?s%ND!mJT>$&gYjRXTU_AA2PyO zQi7nEadGeH0oTHQ&_JdHXu-FXh;3BqHpd3`5$!Q8HD-%p_M>2I{4_i%5q0k5N%%NZ zoZFzDV4*cvwf?BLldhXi0o(d}lu-IyQuxngruj~%6~v!<>gIQVI-jVaJtqO=2X+9w zpM$vHCCpIb&MPsOgZO+FUSz90B(<>)lMHMsG@tB|VYJXTv`!L7a=9%gf*sn?IUm^D z%{amig}gGh`{WdZ&uEpm=)O7+r0J4QoebMG`PsxxJ?&&QxWK&h$D_ZPrC7Ow0lu75 z8uK6QdmiE#8R|(BsA#6OB)MJT0&-c$2$k7+L?R6}>prKwbwv+IS`d=fpP-16?=nhK zozF;K2#shDJ7buKG9{%5E6?po|4fc>NJ@E22aIP4PdtJ%$&!Qt%7l1e?{OuK+? zi4J58QHs0LfirWCas-}YTM%^t3EJFCz{ICY`8t7-Pb`^vIQf2-E1X#G?=yM}LZt98 z?4$`!WjbRenK-tEV29%ODMfZgE{n;&h^kv|Cmj_7pHVblO}ni5SX|WwDlJuJzF2D# zV@Z$fv0#ltdy}ZB_XGXI!qOvzGf>cqM>EHXD*puaetY(%^xuPMAL%OQNF8`w?_-`$Qg&B*oEjj+-Y8h2tb7y*%0$0n5vy z0p9zi6BLAG@$Ro^@bTZFEzbESl4#s3kv3gS3G=Kyhc-aK7X8SC!Wy|tiU_CyF%&n| zXEkr+jTX;EZ|HJr#HpLlkPe+w1&7}Jwxo%}$s!PnEC;Xsj?Tz>&nf?A!6mz>&nmei z*!g3VpW6jGD&6u+>7xrA$QqbH@^i*s1L;~zXgy((8EJe?ev-&e-FeQkbxZkaV4I7#nfFew+7)VH8j~tRuWk}LTsjl*+xevL59TzzjB7iG2B1+FWQ;DyX6Ih((+_#mPcS6jY@=ZSD@p@e$z7rJnZfZzSg@x8YUr{Y~qwN zQMrik>g$WrqCt=qB>mYYqaI9TXV@lK0-x3*H@S?C2*XQ!9tmH>C-7xjguO7g(Eq5USa;lmnska3D5}5DO=gJv)d7ONo;eX1d#z zqGil1qGYi+LS2-$(JnTjdlj5@(mVS`j}UG^`}aI|dgIp8bdFeFTFm?MuCFKZ?24t{ z5Ro40tLF6TBq%0sQA-LJuyR9KI)sGgVRPyzc|7}*%=;0z0&7dWwH{E8FPbf)+x(tU zMOVbUuMjff^J}D7J2VcqA*QM4gaAQUX7G^#4p&S~m?F-ou3n*!%8Vd_m4LMR4q#0W z2^R!_vRL`S>7IR66TU3ViBh6*z+9=rtDTvefA_zMGJeGx0&Fl-VXNqEsl($lhMtok z#V4ZO5@umT7oh#fOzV!|)R#v!@WzpD`m%q389Pl%$rVQU4NDRjw|2ou^}vSrv!1Fg zInf$_PR;CqpW1dISy3L#h0qZa(BDW4-Gb**36Waw`jMj=`%P+A+nyVL{h2gwm5U8N zUW-|Kd86>V3L}SIz{+b+OhZCw0u}~KX*|5({{Ty4v39S%7UCyPML44F`h+XCmE%GJ&bRN^#(3V#oBrFpd;?(m_o(IL~Y<1<3rzyTMG6{v0?dH@=d z53r0UABr`#>tp;(_VO@qgtK2WlKY^Z>>#B*7vkf2nz*<9F+xI+oY&K?L#pnLAb0uy zIhz?tlK>!XquLy#rnIdH&gO0A*B9tk5MP?on)k(50-5SMgC0u>l$BMU+t3D z_7N<9CPTH`Em{^tLGS16<;7s~L4K#L0480o`3=*+@|Q`_cr0iize}`l)Z_8{Zh5}1 z7y_q*K7KmSutS-3=0cI&D-JjOHqS9p*@8_6P|-?YFkM>&Db66lxhKv^ALx1}Qs%7Zzi(r|kR9EA9?5IYuJel-=jHUEO4Z`QBVU z7TCvifEP1qCilGw4l8CPR%7y0BjD&Z-EJDxGU;d8qw1&X12pZE{0i^JA$dP)kS_`f zF!Tm`RvrxGOjRmlbQBii_a_~6x!2A8gZ-z|lQ5bnEbT?QPC;>m4Z3WvM)9{saK^nC z29l6TIG9Q79+u@91ZwLK>J>t%oSGpwaQ0aYamWxTTEYuacoN9!iM;7rtuG zAP4)M3kxYTb@~v=WwXPRpfHN7rjjP;8ME@-nRz$a?ikiy8l4YqeFyBiO{%C%Po&_r zNIQ8H3>t=Z{YtMH$~gg6UlSO;LtCkOdi{v6IaBB|!vNd&KQ#8eEyM%~Dpu{z(Vge43#Zz3U=oyjJZ&#~N4y6{>-D8^8@8Begk z=E#_>R|GqbZF$(Ux-iztW;i(l?MI(~&6@BmGo2L`^2T)C^XZHMG{R~uL&nSXxe?2a zWTx&9D8;puZcP*GQ;(QbvfI>1VUL%tWtZwTp20isqY6xJ(P3-z;#_&RgGGrAkC@V@ zjI2kbN8JP(#kIR0f5jvU=i@3!h*V!7%aZ5Y%mvFxIbzrgM!V78)9!ZE9gD Uw^L7}bKU68RwQB4@Net?2Xk}R0ssI2 literal 0 HcmV?d00001 diff --git a/doc/Scintilla/SciTEIco.png b/doc/Scintilla/SciTEIco.png new file mode 100644 index 0000000000000000000000000000000000000000..d0cc869b8c56c3d77ba76ff1a81b22609836022e GIT binary patch literal 10091 zcmV-xCzRNUP)001X4NklsIgHai8_TXkQ#@3Nfg>!{R=dP=^gaE z<)SDk$~4>w*xnNfM9jy)Vw{0R*Jr#~>_-te#3jGU*~2glLJ)!CN#{s>BjVVC>0!|+ zQ+T2&JYSy3U*Dr6kqA7IjKLOg_@zjLPnbpTT zoU79ax?IBnJ8%TDzkHc**rGs1EQ96k%@bk~i0$b)W;WAk6bxvlP)HJgS+}lM7Cy)P zX3&c_l}e>isZ1OKh=Y|xin~yz@(GQ{5LqAuLJsKjEG7farN_l>Fzm1cz%+RrXKEOo zPNOs2`#YNA)T^6n&P)pqV=^haChg+oYSYN8q2A6#i7VfY40b-ao477Z-~EJ0aubNe zmbU{iXc77;a2U`&`iAEpDGFb~7SFK*AOa(k6v4@ja}IZ15d;7L5}i9gar?mYhpPBQ z!$9YYCr!D9rz+2uGFZHAyRvUro~6;)LLWYl&wFpuH&$!&PoBrYNJa7fhURM_qIi8Ndj|6s+riuhDB4u{=l<4QuJ z6H*(lpUyf^eD79eS9|M`lc#TL%X&Nhh>TXblL%NM%Vx6-_dZVgIyvBrCAF31HmfCN z<0hk_|EHX_q4EWphs%a~9+n?nZ66<1Z#~ZT_GxQ4XXw@W$(M43K`3(wf^BviGQsfw zAt4X|AQ%x%S476H)}H+Dj@-jfb&YM0S{EmzhKKl8S6*-<()^@8EFx?%_CTPmxxP7i zzQWrRXEOHh%UH?r=KfH6g+lWfqyAm>fnU|3Hw7KHX zOMA#vkJ-ruLD88G4CO0ITbdQFu2yOf+-iF9V?@5Mb2uLLW1@Bp`>g~v|YH4a% zfbdpLHH9JIi@szrNq8KVK%_5RvgxG(7$1jYq9OyzgFQ z(jhWKVzpX7Xvrx9*9oA7Lt8c`DFcKFTw#EERZ^8!L!fYG%Vl;utRFGi#?T>q4;_iV zQfb7jWi72ue>I-3t80{qz4MQqovBRee|9H-|K{sA8scN;75;oqu3RsbMV1xs-LWQx z=Oa3Cr6DP8pEO|J>zB{UkEBJFahAIOc(t}TGy6={ljl(f%=Vrv`!+3X# z)dIWF67C;9tpptEuI8< zq!6Wg>_wuGWZxOanEiZ5-tYac>-*m8JJ)etuKR5F^1GMwKl2}{P-wiG9!`nY*VX6~ zxV!gT$HF3)y*OfNX*@YGBOxj*;4Lwki}UjW3K`F$|C$^Bh7v-xb#}wG?vADd?XMW~ z<2)Ys^x2Gx%1^G&>wMfyzPFZfIqa_Xy2LPl`t-PG@PWXXb6f%UM@Mzrrzcs*)_2xD zv-6GJo7y6+tT#T;*j}ApoNCON9kvd7CN70tSeRc?`~NGzzau7_?H75f^j@kkM#$C8 z>D{XrtoZ@-Dk%a?w+O+=NRN!H!Zwe?!()?hK3P*kL|kr-saHv9UB&BqaWTx5tJy?N zQ*+zH(pdH5$In!~ZL+a3$u20?*4vJA`ivxYB@4O`W7p(lX!Z zl9u-di&JuT599z~Y-X#ycC#kUe13s9JUl~QyVZ5ic?D(dtgJf#fbQ-gH@_sBzJshR zR!`4#dU_EOiyptzAREfcVP$0HRaD83U;Z;A0KXW(J2(T2Q-(x2dAz!&!KrI?Ma|&m zTXsm?6K%cqSR4T^!4uT1z5YIYb1oul%HIF_cCVC8c3}zxWfF<9%q02WodzpW)c?x1 z(l|AML~r-q*H}}EM2lH&azqFa8YCKvIl)<);q!q!R$5ha!-v;5ILyhnwYAGC&{RaS z1}BF;BT*=EY2w`nulan0r~7*U-GM?v7+E?c%~n+XrwIti)#jT^4qphD_KQ1Lp*cEdxG`+mByO|Sotqj!03a);y3Kj_fr!|D>buZFh%-r% z`$OW5Ot-svpIxBOKDZIJ&)KT%(F;*Ak>C@5N1ZQmJy>D00xyg?APTBwd z)<80J@HkOxu``2axWmaSWq;Q>j!p1QUr5P<(+0j;$b2hQA)m&e~Mu05Ao z0M)jdMgQ%$ z_q37<6&j5~)&E%E0qGnbcv;=At!uvQ(=zhV8dSXv7Ym!K`ap3Tc+d<2q95Q1>aub; z7zSWhR32-R>4!| zXNDMytd)@ZKNe6{Q9E|&g^}fUCGy7R-wTNu1q5|th~4a)%YpJj#x3~28f{C&$>%q2 z7XP^b1OM=A_AXISB~YV#_5@GPEE|E#6&#LA!r_%|w+7ldM{VC3PSrBbe^52e2g6+O z{@YA)`bT&FOfn5x0}l-%k5zQ=jLWKIU4IKMzX6wCfPFEqH{1GA^sL~{&g$|N z1Ye#!cpC(q>o>8FQc=?*sAx;e$gNmlSpW?UGELt+v!Y)?MT?-K)i$z}eDMa3pe~P7 zepJ>90QjfAO(rdzM=!Odm2%IO zf|G^Jjc$nwilh|}hKkcQwBO=%(DUerkZbdidB89EyOxRDvO?8JD+175ckhMbKKjCw zSAffK?L!N>g)eb2hA`EntZDi>4~Y=>etsdkCa!mjs#VFB zaEIOg5s-U0#8_ne`X7VQ14bB2>%ics0{6h|&?D)e`k2jQ;B61@99KjB($N_L;4UzVb(wzXeY_|2sw zg}`oivWlwOzXaHS@G$h7$1M!V1niyT^vaK4mC5Tj1UyzIYW4Jv0svAjJzZ9bJi+@w z{@ur)>2ww((&v}lgYzKwP@T|gH*P(2>tP3n!-qo?Q_S7_Py2@D1|E87Z0Q9hmy^Sr zSU8ur(rfy_s~_O`XTf%_1eomM+Lf+AP&F`fIh*|x$`Jn$#6AFjmxF_6-8OjS*A$*Ubiih3UReMF&4UNS2UOTBfL}Yo1I^ zTWhhcvY)4@N+IglU%pku0Kn^DK2*69Q9Iy79fu2GJACqCKwK$aSr=-{a+BxuEPKUk zW8%(xgxro!sZ}ECLBy*NsfDFoa0L^95hj1{ffRMJfm2{%{DtCYj6sx+jgD2 zS+#Jt0o?ik(#!c-#Zzv6X*LdlDr&kb!4w`%B%8Y)Dm#?NIeZr!x&wB`)UId&aa(NFrqXaUW7C(qCPi&Xm9U^ zl;EK4ovm+qOB2GPGJL$tky8Z>1{;k=o=S?=py(E6hco9#Ww6Rx>yJLK>^ph-4t+_0 zT7`;9j!Dn2RVH8yazg6gq|VKZ2>9Hw2?lF;Xl7o(7a)X1P>fYl;>voxeVs7=!h?j+ ztNxN9sH*9(hHDTbpCyH7&}f8`&IWVu3%0>|B!dm#+uy%0OCB3&;=}bi`s?D7FDR($ zv@8L0J8$TDhNfHQ1fcwFBSBTqJ#m;wvGn#01Ap4y{mZU-CGYK?&49f%|&kE1nCK}B-%iV6f`X!NCiHt1deZByXV{RR@n7{*OUx5%*5t+$^1-tLo1 z(YCPjJe^v?xKII7%Rt;cy8qGqUBPK-c|+&(hEnrKqs~+vOf2`mL?%s2+Og1^eyr!tAg3vSCka#%{i&t%(nfKa%5PFFU*`j@5c9z9=+JE25^(;J< zq-E7V$pZik3{IJEJ?e1ilY%l00?E-c=F6`om=j=Y?;1jG=?`(zXhb9kq6%9NCe2rWI+q)T^j3QC_E8`HD% zh-xIN(e_KXpD_TqT{WdbUI(`@b-fgy`I-NR(ce=%Yqto?6DcwOIT;}P!=e9vs_L76{=jk(RbYx-Yyf#MGE zpcTa5Xg--)oLVxUTi)XybXtS5_K%wJupHXrm3$dZD0=_{piKol&5{x&U+D1sJpLQ2uh^jxHKjJelbNW*`T2d0vH^O zIqT^EcX)CQJivIJ-5(o({-Ig7kjtKFlXw-a<%r~YY5$d>cV9*(1z?yDnx=uR=NUL3 z77JT_&wC##+O$0aMjr12*9w|=1+5^z2^4(=K?%i>V<;iq0WzdcHQTZKRP_1hX~h%8 zo#09xNU8v5szBNYaHmU<@pAe=;#04Kw>?AC@B|eSRsTq8=@z#bO>GN=qLNC^^LnC& zu92nF_!95_%LZ7G!s}aJ)ii*p7@TZd`%jrTB- zL+&YBCNW9(<5QkmZgN#3YWc?&+^FZ?Yz5gZ;6}sJ{rBTr-GU$vp*mJlGBgW34x+%o ze8aU{1#kM9Z)ZXE1SstRY0rn;LN01h4VPU4M}PvLR*TDYHZ~bBi!shH+5k|5u#!UyPfMCeIv-amRzdMURIHX(uXz|HjiYQ2yC3H*FZY+I0D-uW{UYO3sHmi>g-hm#r+b<6BWo&jaS7v@bjp?v9+ny4y=^mL1Es=NblaT$Q{1^lG36qK4O-MV6$1Q zk=g2sw_1jdKY#vSB`!HLJ0&hEB0vHu$weJ?g}z0pxshoBMj0S5EEbQsz^u5w0WB%5 z)ZN+0S>!|R7w9vO?mzPM+uiW(aYy?X4u^C9Wv@0(eWRr@LzsFYH5Kv%B#dg`_xygJ zeEa4l2?^1NK*zpLzX`te&+l~$vxBm*S~ZFAbNAo1d*`10ej*}5IHH1YL=Xb74D{A4 zE`c{?+21-^;Wo0exYnj0x_X0hB-KUCszn9@AVv6M3RsFk&c*1Swn{#q3k3XsKZ>D* zV8Z|aNV*oQWwg|E9gr9qAP^u-EVt_#I|d!O;puh zTv++5esI2n4!+RAHwJiI-KRlb19za%46o%pss7j>pOmvN=!lx8zUgMKlsk>LJ_>R^ zfXo_jxk7N@?|+Op`4N;g@dVYCJh0s5S2`Y|AJUbHG?=xJ@P_rgoQ=mMAqWeiKF4eV+c7} zLSj-@&kSXeu?VdyFD3e@=*h8&sHsW7nnwqPAB#GExwriV00JBLVJh|BeU zX?=Dpf9yAlK8+BQB=Ygw>RNhVJ};V>93#_=5)#ja$K1GizZ`0fAcy?fR6hD8r?>4b zeR^tYYL3Gdnq`x)d;#woPA7NC?&3&pQ>lkulSwzpJgI#G22c zAHLeJkDn8ll!Y$a@bTTVN10Z3VfU`>5fK&HwI`wE;nmrhp}14m{!+A<=SuN-2mzlz zJ2ST3N~EIVJ&(~{^|oPn@W^*sYXiGn5(lEG2b^qjG(CKwSZKA#6I0@+1^#mV6g zH6pGgKS^3vVPdFVLP8t`R}KCAhoWoU-dqO1BT#9kkWyNb)BXLkyGJCEAR#0y30kIS_KA-Ke`$SvI zn~Cv051%7HyL(QCThzZw7so6z8FSDbpTB4So)RgoYVYZ8WwV!Lv8w76LsN?_TKaYb zWs0y6vh!1JZBfYQ%5&qt>X#TZOHBIWB4@QUWo%B$Y{vx!vYn)a1Y{Kr|DawW=8%A0 z^ZJgB^O5!%5e|DPH~U1~iCiyh;zX~(kBNE~8vmyD7MD4>!!_8}+H;99H;kD2Isjn>sAYO5dzrdcCnd<=r$-`}I5WjQ&`L?J<4?Gp(M>vQWpHj61u zSOZ_k;cWyZBs@RfCV=LGNTO1;mu-gyl&!s+tE=moq}Z{s5%-;*I8{rOsM65Hk^q6`!^u4M%tY_6jxvZ4 z9(M_eL`nXIS5&3Ki;b0i08&D|wIl{I$z(2deXB>J&>~`TJk}%zy$mbV$`29v90rm- zAR?|%T71RWd>dXt4FM3)#^kY$8Ev03-dyMnR0oYH?JO#GMCsaHbGp(Z+9#P z$w5g_;gKj|F_?*}D<99YII~lOZ04Limgwpe_oeNtk;xVvU9GSXzeToCP*`F|M@K>K z*(+yUK9r_R4z}>v3p_4cTuM>PEYQd{PEE&2R02CcH`e*(ZF~LG%+t=d6U-;ZevXa| zusO`l+YZ5<=coG+0v=)|5>aW|E6*NWK2p!r<6~vEwY|Tx3gynN6Fe?wwU}gNR6b6g z@Zx#apme}M*z8f!h;-e)>`pKGYR5_lkW zZhD5xNALvzC%^hyMzo`YqpXZbc6N@qn7ECN4NcE{dI`VTT&aJ0uC?LkuMs8y2#92X zV3{2jV`6&b>(p=?b7B0yAH4wlVmUoMDUBmf4Yi4_7KYPS1khP|xZ&}5>NK0Nq0WiX zp1`oop}vN)7dbHhsp~oi2A;+UajRP=Tbiq;JJL71o%`0&tf?SkYZCz704B_jZOzqB zPHu8ZseTe;Wf$69S4jP@O06}vZR-k)6e*H=%eG`Gk!8oP`XSqLC$g5pn z+tLgekfHn4wfi+}7>51ner8C13|m)VUD~d|fUOJKWUJHW(Ij(Tj+?~sBe7*$mL*v) z>p_YXA0l^1$#x7Q19oMIyfAU^_nmvrcaC_kf49G98-kiKoRmtSBJ%X)b-kQ=?e#Yy z^eOTHUTH4@)PQY^ac37df|PiZ{T~c{NSs9|M}tAb-kY0|Ksz6eus{%z8R#?of@=S zt9p+9;p)fVeQw~5ecw4z;_{Njel_$bnW|e_c;NQ7jNkoy@ZejS#4OJh{N2yvgq;`o zl8h9K+~bLFP??TIqI>qg)aY}^7_%AYW~Qfkj(Ie3i_WDjjyk)m4K_+tdC;Mn@!^VV z0A*1q#3w!iA=V*kQx&Mj=~^Lx;5e3C3UzHgI5B!w#N5yC+!Kq;=JToLc*xV@MP)3| z?KFGaMlXMCF&in*!Lh5S@ahhGb(1X6b>3%6#btxNZg%oocmL~&Xwd2M=`sE6%(y7z z6d4>=T?a>Xox6UgZ_AccWMXvmUNSaaWN8#PJ>%~`dhEUCt{qONYkcI(*zDDOa++h} z5S&(9l_(TR$_z@Hnj4b%yyp8z<-1*50p*GP$;}PhB#{kAVx4X6y*&fxzW5*>5Bc}J zZ8Ligyu7cu)pP0G-#uB z5E3dz6m4wn4~HfdSpu!6C`v0OD)c%qhb8cSEt|mg|F|InRIk<^rV0A*S>}>i!g<#hqpM~MBTl610_rp zK_nKZ+`i_LPymFYkVjBbr^89JQ_c%r?XbQ!e`}R7mnlM`SG5+ya(FI}Rq5BtfT>owb{nBJ=Pv zuf&FN{fdjM5&*R839RwZBw1!TDbRN?v=C(S3Ew7fd&jQHi5ruX!|*Qy2^*!o+xERh zQRYmRzCUs`HFpu!i69qM&Q?TkFk-yTYC#b|1J;mj?)ItsmwL7zy8OlOnmYG-n_swb z;q-EH_VBCkbnH0($*DJKnxV`t5L2(OC7oqtS;fXn3cOt|B<^6SgrcZsaSgQAlrn*i z&hE0+E1cGE*+b3^^c{)DLdjIjVZ?d@`;t%uKDZ=`JQ&Pqa`f&xQB_ro;*NMCj>u7y zk$5=v0F~12rrq&{ky=li0bwORTPmr#&Wlplz=`u8z2n~G-TVFbuYLCJqlw#;(bn$o zi!Fv?(HWSusoC$^+P`aWafYdH9TeF_Jeh!)gIzj=PjYNN9Dc;mnerSktHa@P zRC!Q6E|)}x$uaaYD5k%6&&YJ*(1WHA`?%N15%LWCc$z zO~UY1HQriJt5D2mvvE-RzP;~)mIojFGm{F{xEg?qz|#b2g=N7o10)3~Z*a1P%g?h+ zQZ5NFg26z5R+i@~!!5@ve3w0EZ5UfC<|~)5>Mw-P#Zhk{!Dx-9v+1dA}B{g`{3hyXF`K$}B1>q-Y!}ln`Vskv+xs8?PHfLy;s=5Y&w}^*x#1q(ccdw_q~YRJl7OJ_E== z1K`0-YEG+1C2jRVUEmLv179<_HnG-O>A_uPmh~KDxf0M70_$!6e;&hERzKxmMY5WD z5K$E28}KTMDwlv2x~OJ0sIdXZ>bOtbS5$sI1zj0*MIkC2V91In{TKO-zBFLW%eMdk N002ovPDHLkV1k*@zUlw~ literal 0 HcmV?d00001 diff --git a/doc/Scintilla/SciWord.jpg b/doc/Scintilla/SciWord.jpg new file mode 100644 index 0000000000000000000000000000000000000000..60e70e897b41b1943952b42aab2592cfe6452883 GIT binary patch literal 6164 zcmb7IbyO7X+umhax|T)|2?6O?KvG(|ySsDgauFq#7NrpoknV1f5~NdF1Sv_E6sd1{ z{r%qao$tTzo;fpf=9!r@b6xj+UH3D0^LO6?L`u&Up96qEAV40q0Pb!96f&N+mfp5D zbbgNB4s<#Wwsi7}sv37o02u(P%b@u-mcRc_I7C;RM009{Q zXb>O>0=(-3&;U?x2SRlwRN7w2{G$)djNX(yv&WT!IcT3o}i~rM%;zNoUT5AgA9{bBVnA=g-VgtJzXW1 zhu(+L6gDym^&vx52h=SU`7~~Bg%vcVJS>_>Dbf(F+44a5xfzU!8|eof54BAu zV)W{WsK@Qf^|rIiWzP-KEuSdB<^X8nWW}bv)?ed|wgtt7#P0xm#B^VHUsEu^`Lz4P zRF@xhXd4^QxD9d4m9|n)83~ySZU-FdOgU|RjVw?!myLhH5T6%xo9AV%w=AO&nu8-knwzF?lr;;l_|vlXOj)d7(Jkg? z2ulx)t+a~fJc$#w%X0g=e9eCKnO1hb$b7S_39}>T!Rc6ZT3(=)*SnX>ivwlRNbXw zQ+YS|_0Gq`siJf*`s(bSAcAb4k(N}xZSUz;XZBJ#+sQ9UM;G?SS#E}g#_xz%mOPi6 zIEUF$;kmqbze9yr#aP`1D)reR|EMky4FiDrH}!#N095J|)06PRz@$(q%}F8#KFh?K z?tc;=rE(HL5X{k9?6I7pp0NM#aM{|9=OpoKGGaF4*x4jhKG(20JDtYOw=ytIYTAv% zraJ&Hi9O7###x$d;K|7 zIrBRr^+CP4qP=vw`CQrR8T46&*&Uz+me)ZY zl&+SbuCsSF93*KgvaFJqWmJ1LrsY2wc%A+RKe;MlmSrq1L~4_7VLw;o$ZH*cqZoLZ ztr)he%IccMMKLnB7puo$`;bD7?Kl&J&t8f6W&2V$164`F;P;EpyW-yE1bKrx>+!*ClWK&qm9v zIs09G>*}evG5x9(L*rxO&H0F34vnU&rmuLxL7g&}S1Q~=obEnZEle#ZqB(?1HuDFE zvcL6Xmd?c0)OnT*;nVDIe?vL5FB>Uf-bWR>a1ocg`=vay3G zAG6$WM307m>dO(^AG$AZ?D&wCpWu1cg~-LMo%A@wlV)gja>9}IWtiIoJscew18AmAB3Ye7?(^k2Zg>MO8G%(Ae5Ek{73mwZViGEqto*ekuXTXJoz*& z>9i8NNg1J%(pJ`?xivf*ul{2J7!qjb#|!2>^_?LuIM`p66_7c-{ol;t4)b;Pa)*7SX)kTUSkuY&Sz1tbWj=gbq$#w<<3t zH|k-mmZTna;4>;b!7gVL@=nh~2pnve3;6SPEg7v>nGyfB?)Q*xcL^}tOB>&|6vY*C z2wB8lZD{xn#rz$BExZuAx1YA!!)~x#!eQKf#8b)K3EiDFcuylv0g>f5`P@3Vw59P! za&^e3WX;Kava(mr+siby+lpsOjDqS5xc%7av*LCX*#2FL2-2hK3rG|}`vb@OxBVLf zHlrU#rFfZ)&g#1QGvu+w)sqT8ENA^!kZKkaP^O3jwVmpyVf;DEmP1Y!$&$8Py{)F_ z$X+uAlFIDFqLfP*P)4;PKg=;y_4SN9kNO-bMy)z) z-f}LG-yXkU<5*@itazsR+^2ze<_a6S(^MgVDP1Y-r6uyz1oV~ewl?pxU+^0(-*O2j zKe@2u1s12?^CE8pSv`uDXNZ+zdxAk3Rb{ERN%*!ak#l}KKCV7qEwq`9%Etc~4Pgc{ z;I|vym&Fd4lV>+>4-5LB!zLQUol73hZmN{3&%_N}f8iA240--8VAy&f4>1w*d;r%i zHsh6m)0H9Nb(!gp8o5OBFdbo9QXPiKu&tPfxsoCuntB;^pH4}9Fr#@7EiBEjzva{` zS*QqEyaS->fSCxD_h>*6_`Z+*t3m(>J@38x5QQe@)^tz)qC@_-^^u@|ipEF|ike}( zWa83%IfvL%->2go6j)r3wvfe?WiXtigixkMadUH0h*|wmxC0FEnCKRt_9-#EB9q&U zvlX|P5xyA!m}4@Jdv1Lrnv;|;82;qqp62PKHR}S$IlYMK5pd!TQzM=&9*6YcoUz7C z`f;GgTFcIkFl3}r^S)GYb(`kKeI6L z&e0Yg$#rJbttuX#VlkIQtUTb-tK8`#?qC8XDw-D9R9NYaxf1-qZ~R7?B_{6~+`4XS zWw2`%Ps{<8EpZD|4q4>ZLdZ{K5GcayS6R}EtI~vH--Of8(9T;dh!VJHf7$Eh8Q?3A zlTq9n+b?A5Pgv|MNMy+YfuIWxaKPVYV zz`%>PSmetfB05$Tw#G6@nX?f1Q61OGBjR@nb!m+{L&7~K&0`e9JjLB;+WKo7AfNJG z*O|2rIeL|^bN$)Vhjf?Ir*Ph9tT{QC)XHAK*4X}q!;bFsj`><~9YOa)Q8tQT^ z^N5>NmV&QW;akXoOD6D#?1`eqEuTVLt~!9dNdhGn%7_cbWz@@kiWPCBtpPWL*HGGk#FBWJe5F1HV(EYT>52xsL#B? zjeL#!al{GXOE*FLnI?bj2wKo5ZKN*dzLunAg7=t{F9j&lASSoZSGXL(G683@Gm)yB zBkTOl>ZfF~{slgshbyjqm@mGedjyB>4k)i&iVa2fZ&@dcbis729@4MT6#Z#w)u3}J zV?!G|{_;e|yXib6v(Av37_y|n8~_4`Wn`hBAdA6O%` zVjUm*Lk|s~n5smk=%q5M)H+yk_ED$#@vOzWQMi%#QH^o>x8X{Ep7hbDT4XV3Xr^D* zST?IGjy~c3%GJc>B|4$@BVw}*Ml-OLxb>r#lpv#v%TYr-*~kqEk_k za>mquiYmo_CYFGE*CJB9Xx&|Qj^67g`!o|-H)-Mp9DoGqX8k};<_AmyuUfIpzDu4t zm^zi@*+|8+QW=$})z}Q#Q{yV(|{!{#xFwIa@?CbHubvY_CZdOMuVrAV5$ zO6FL-;Vb@4=BwUD{HoM*MxzD=oN+hXlttRPh0-zIiwCed=^{49}o$R|#gPu0@}Lel~t|_QcI;uBBpm zxS7x)hA6rP5oglfTyLGRUYnQKa{VG;M2-yhe*C{^0@1+WfBy&kMH3~Zxiz7QC?zHO zi{^bVM?{}?Sgl7%=4D_94|6koV#nzJUbWaQ7Z|#TFC2fOnBwS&h~0s zowPQeBKUDWI(j=*>pdH*kNpuwexv-&|7qCFw6oU}wzyl(<^5n@gM(kTp`Hv!q#3x%o> z3X*n3_KNBw27XNuO{BY(&FunlE_{s#Obak3%|yfkn-6>uFimtWXA= zJ)mnyx_`}yh;p3~F_s5anS!=UU9q9n;1w4=#$^)R4dKnr-#LVH&lFDTT)~n~TIb>rl7^Yh3D=3QzePAv2PW@U`8Hl|vdHg3~!#|!G zYNPL1G0-PPji5eODkp#GaV5rs%sboaBdC8}$^0f|9e5EeuVXirI^=sa-KL$L1R|*q z?spg=Tl0$*Y=ZP`dGz2*7&tkuduAN*bQy&H8TKgn9({}L`LbqN!3mtW!^@eo7F}eZ z=VD?&<^uFFuj<2_^>Uo*R!^~*woPb2*O%#Bm^_t5Xb@ZJG#c`y;5}1`LQ?FMPe>ay zZkbGG^s8!jNR`P(KYcA7N`cE`mX~WGq-RbiNmt^)_>f|YhSVG{utW?p+;c6(7I*r( zHcA~*K03yer8#Bv$bTt{ksPxAo9d~Uf6|*=IapM7Y2%{8jt$!xJ8`>w2^lCy!KE`# zu&G$aeMVb_bZBOG{n5|V^%C(9FT@f$JO{N&=Hr9C#5v6+5onT5k@1I%PKf8R*y}(&FXh=7Z6!){O=b3V^Ew^TW zeT>v(0_LMqTny{!#9Mlog!x$C5y>EIprA47n)m2ldD~!V{)QFow2e)p9B5Cl^{|_i zy}Gk#$1>Ha*v~bg8ED~@EBlQl?Z~J>zZ{WBpP4`nNPx${4l3CZ$Ym6 zs#a5;Y>Ov)IDliL4SQv|5|FFfn0ypqDQB_j+*DrQ3=W$UI9I}f`yh?C#0^@gSu@@8 zbCXSQ`2EdgTT_qZQgURslH;ot)v2&@1M{8#q>I)@#H$P+-dg6&_X$Etq>A7l@^7ky zmQ~AMEtqLbcxd_DE*=t4)g1Tyu~`kUijv)|HGi)};s0xoQZVBEg@0sXHfvygqh9U# z6`X0Ba_PkYmP9a5Tu0bSNnFHFK5D(|?R5>&jr`(?!QIU>_~vK!@rm1a0V%;+;N@H{ z-YSwxp;y>NwO4YF>Q0iZq1O|#9xM^mqU9<)YXL2`0H?KsLzT|RG_G#< zWtEM+T^%*Om0wczJwV%#h$jd72Z)=Gf$42bMxmnKG(k%+&dOhu;1GB z-vNl;&h38&FYcX@{Di$JdlBtR(0YFMzLNgb{hd7S&!QP%&Wfzd7BMZe;hTCI=gC87 zcqMKv?6S7nI7pRo0d%OZiinQmxDFXau#A16CNv_H?>glYBcKSM^>{ zSc8*~(K>p=hJLsdC3=OVh3One>lrtVC<}$f=k59q~>X>baZsYp$-NOF>NVqEf literal 0 HcmV?d00001 diff --git a/doc/Scintilla/ScintillaDoc.html b/doc/Scintilla/ScintillaDoc.html new file mode 100644 index 0000000..77473da --- /dev/null +++ b/doc/Scintilla/ScintillaDoc.html @@ -0,0 +1,7512 @@ + + + + + + + + + + Scintilla Documentation + + + + + + + + + + + +
Scintilla iconScintilla
+ +

Scintilla Documentation

+ +

Last edited 29 September 2013 NH

+ +

There is an overview of the internal design of + Scintilla.
+ Some notes on using Scintilla.
+ How to use the Scintilla Edit Control on Windows.
+ A simple sample using Scintilla from + C++ on Windows.
+ A simple sample using Scintilla from + Visual Basic.
+ Bait is a tiny sample using Scintilla + on GTK+.
+ A detailed description of how to write a lexer, including a + discussion of folding.
+ + How to implement a lexer in the container.
+ + How to implement folding.
+ The coding style used in Scintilla and SciTE is + worth following if you want to contribute code to Scintilla but is not compulsory.

+ +

Introduction

+ +

The Windows version of Scintilla is a Windows Control. As such, its primary programming + interface is through Windows messages. Early versions of Scintilla emulated much of the API + defined by the standard Windows Edit and RichEdit controls but those APIs are now deprecated in + favour of Scintilla's own, more consistent API. In addition to messages performing the actions + of a normal Edit control, Scintilla allows control of syntax styling, folding, markers, autocompletion + and call tips.

+ +

The GTK+ version also uses messages in a similar way to the Windows version. This is + different to normal GTK+ practice but made it easier to implement rapidly.

+ +

Scintilla also builds with Cocoa on OS X and with Qt, and follows the conventions of + those platforms.

+ +

Scintilla does not properly support right-to-left languages like Arabic and Hebrew. + While text in these languages may appear correct, it is not possible to interact with this text + as is normal with other editing components.

+ +

This documentation describes the individual messages and notifications used by Scintilla. It + does not describe how to link them together to form a useful editor. For now, the best way to + work out how to develop using Scintilla is to see how SciTE uses it. SciTE exercises most of + Scintilla's facilities.

+ +

In the descriptions that follow, the messages are described as function calls with zero, one + or two arguments. These two arguments are the standard wParam and + lParam familiar to Windows programmers. These parameters are integers that + are large enough to hold pointers, and the return value is also an integer large enough to contain a + pointer. + Although the commands only use the + arguments described, because all messages have two arguments whether Scintilla uses them or + not, it is strongly recommended that any unused arguments are set to 0. This allows future + enhancement of messages without the risk of breaking existing code. Common argument types + are:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
boolArguments expect the values 0 for false and 1 for + true.
intArguments are 32-bit signed integers.
const char *Arguments point at text that is being passed to Scintilla but not modified. The text + may be zero terminated or another argument may specify the character count, the + description will make this clear.
char *Arguments point at text buffers that Scintilla will fill with text. In some cases, + another argument will tell Scintilla the buffer size. In others, you must make sure that + the buffer is big enough to hold the requested text. If a NULL pointer (0) is passed + then, for SCI_* calls, the length that should be allocated is returned.
colourColours are set using the RGB format (Red, Green, Blue). The intensity of each colour + is set in the range 0 to 255. If you have three such intensities, they are combined as: + red | (green << 8) | (blue << 16). If you set all intensities to 255, the + colour is white. If you set all intensities to 0, the colour is black. When you set a + colour, you are making a request. What you will get depends on the capabilities of the + system and the current screen mode.
alphaTranslucency is set using an alpha value. + Alpha ranges from 0 (SC_ALPHA_TRANSPARENT) which is completely transparent to + 255 (SC_ALPHA_OPAQUE) which is opaque. The value 256 (SC_ALPHA_NOALPHA) + is opaque and uses code that is not alpha-aware and may be faster. Not all platforms support + translucency and only some Scintilla features implement translucency. + The default alpha value for most features is SC_ALPHA_NOALPHA.
<unused>This is an unused argument. Setting it to 0 will ensure compatibility with future + enhancements.
+ +

Contents

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
o Text retrieval and + modificationo Searching and replacingo Overtype
o Cut, copy and pasteo Error handlingo Undo and Redo
o Selection and informationo Multiple Selection and Virtual Spaceo Scrolling and automatic + scrolling
o White spaceo Cursoro Mouse capture
o Line endingso Stylingo Style definition
o Caret, selection, and hotspot styleso Character representationso Margins
o Annotationso Other settingso Brace highlighting
o Tabs and Indentation + Guideso Markerso Indicators
o Autocompletiono User listso Call tips
o Keyboard commandso Key bindingso Popup edit menu
o Macro recordingo Printingo Direct access
o Multiple viewso Background loading and savingo Folding
o Line wrappingo Zoomingo Long lines
o Lexero Lexer objectso Notifications
o Imageso GTK+o Provisional messages
o Deprecated messageso Edit messages never + supported by Scintillao Building Scintilla
+ +

Messages with names of the form SCI_SETxxxxx often have a companion + SCI_GETxxxxx. To save tedious repetition, if the SCI_GETxxxxx message + returns the value set by the SCI_SETxxxxx message, the SET routine is + described and the GET routine is left to your imagination.

+ +

Text retrieval and modification

+ +

Each byte in a Scintilla document is followed by an associated byte of styling + information. The combination of a character byte and a style byte is called a cell. Style bytes + are interpreted an index into an array of styles. + Style bytes may be split into an index and a set of indicator bits + but this use is discouraged and indicators should now use + SCI_INDICATORFILLRANGE + and related calls. + The default split is with the index in the low 5 bits and 3 high bits as indicators. This allows 32 fundamental styles, which is enough for most + languages, and three independent indicators so that, for example, syntax errors, deprecated + names and bad indentation could all be displayed at once. The number of bits used for styles + can be altered with SCI_SETSTYLEBITS up to a maximum of 8 bits. + The remaining bits can be used for indicators.

+ +

In this document, 'character' normally refers to a byte even when multi-byte characters are used. + Lengths measure the numbers of bytes, not the amount of characters in those bytes.

+ +

Positions within the Scintilla document refer to a character or the gap before that + character. The first character in a document is 0, the second 1 and so on. If a document + contains nLen characters, the last character is numbered nLen-1. + The caret exists between character positions and can be located from before the first character (0) + to after the last character (nLen).

+ +

There are places where the caret can not go where two character bytes make up one character. + This occurs when a DBCS character from a language like Japanese is included in the document or + when line ends are marked with the CP/M standard of a carriage return followed by a line feed. + The INVALID_POSITION constant (-1) represents an invalid position within the + document.

+ +

All lines of text in Scintilla are the same height, and this height is calculated from the + largest font in any current style. This restriction is for performance; if lines differed in + height then calculations involving positioning of text would require the text to be styled + first.

+ SCI_GETTEXT(int length, char *text)
+ SCI_SETTEXT(<unused>, const char *text)
+ SCI_SETSAVEPOINT
+ SCI_GETLINE(int line, char *text)
+ SCI_REPLACESEL(<unused>, const char + *text)
+ SCI_SETREADONLY(bool readOnly)
+ SCI_GETREADONLY
+ SCI_GETTEXTRANGE(<unused>, Sci_TextRange + *tr)
+ SCI_ALLOCATE(int bytes, <unused>)
+ SCI_ADDTEXT(int length, const char *s)
+ SCI_ADDSTYLEDTEXT(int length, cell *s)
+ SCI_APPENDTEXT(int length, const char *s)
+ SCI_INSERTTEXT(int pos, const char *text)
+ SCI_CLEARALL
+ SCI_DELETERANGE(int pos, int deleteLength)
+ SCI_CLEARDOCUMENTSTYLE
+ SCI_GETCHARAT(int position)
+ SCI_GETSTYLEAT(int position)
+ SCI_GETSTYLEDTEXT(<unused>, Sci_TextRange + *tr)
+ SCI_SETSTYLEBITS(int bits)
+ SCI_GETSTYLEBITS
+ SCI_RELEASEALLEXTENDEDSTYLES
+ SCI_ALLOCATEEXTENDEDSTYLES(int numberStyles)
+ SCI_TARGETASUTF8(<unused>, char *s)
+ SCI_ENCODEDFROMUTF8(const char *utf8, char *encoded)
+ SCI_SETLENGTHFORENCODE(int bytes)
+
+ +

SCI_GETTEXT(int length, char *text)
+ This returns length-1 characters of text from the start of the document plus one + terminating 0 character. To collect all the text in a document, use SCI_GETLENGTH + to get the number of characters in the document (nLen), allocate a character + buffer of length nLen+1 bytes, then call SCI_GETTEXT(nLen+1, char + *text). If the text argument is 0 then the length that should be allocated to store the + entire document is returned. + If you then save the text, you should use SCI_SETSAVEPOINT to mark + the text as unmodified.

+ +

See also: SCI_GETSELTEXT, SCI_GETCURLINE, SCI_GETLINE, SCI_GETSTYLEDTEXT, SCI_GETTEXTRANGE

+ +

SCI_SETTEXT(<unused>, const char *text)
+ This replaces all the text in the document with the zero terminated text string you pass + in.

+ +

SCI_SETSAVEPOINT
+ This message tells Scintilla that the current state of the document is unmodified. This is + usually done when the file is saved or loaded, hence the name "save point". As Scintilla + performs undo and redo operations, it notifies the container that it has entered or left the + save point with SCN_SAVEPOINTREACHED and SCN_SAVEPOINTLEFT notification messages, allowing the container to know if the file + should be considered dirty or not.

+ +

See also: SCI_EMPTYUNDOBUFFER, SCI_GETMODIFY

+ +

SCI_GETLINE(int line, char *text)
+ This fills the buffer defined by text with the contents of the nominated line (lines start at + 0). The buffer is not terminated by a 0 character. It is up to you to make sure that the buffer + is long enough for the text, use SCI_LINELENGTH(int line). The returned value is the + number of characters copied to the buffer. The returned text includes any end of line + characters. If you ask for a line number outside the range of lines in the document, 0 + characters are copied. If the text argument is 0 then the length that should be allocated + to store the entire line is returned.

+ +

See also: SCI_GETCURLINE, SCI_GETSELTEXT, SCI_GETTEXTRANGE, SCI_GETSTYLEDTEXT, SCI_GETTEXT

+ +

SCI_REPLACESEL(<unused>, const char *text)
+ The currently selected text between the anchor + and the current position is replaced by the 0 terminated text string. If the anchor and + current position are the same, the text is inserted at the caret position. The caret is + positioned after the inserted text and the caret is scrolled into view.

+ +

SCI_SETREADONLY(bool readOnly)
+ SCI_GETREADONLY
+ These messages set and get the read-only flag for the document. If you mark a document as read + only, attempts to modify the text cause the SCN_MODIFYATTEMPTRO notification.

+ +

SCI_GETTEXTRANGE(<unused>, Sci_TextRange *tr)
+ This collects the text between the positions cpMin and cpMax and + copies it to lpstrText (see struct Sci_TextRange in + Scintilla.h). If cpMax is -1, text is returned to the end of the + document. The text is 0 terminated, so you must supply a buffer that is at least 1 character + longer than the number of characters you wish to read. The return value is the length of the + returned text not including the terminating 0.

+ +

See also: SCI_GETSELTEXT, SCI_GETLINE, SCI_GETCURLINE, SCI_GETSTYLEDTEXT, SCI_GETTEXT

+ +

SCI_GETSTYLEDTEXT(<unused>, Sci_TextRange *tr)
+ This collects styled text into a buffer using two bytes for each cell, with the character at + the lower address of each pair and the style byte at the upper address. Characters between the + positions cpMin and cpMax are copied to lpstrText (see + struct Sci_TextRange in Scintilla.h). Two 0 bytes are added to the end of + the text, so the buffer that lpstrText points at must be at least + 2*(cpMax-cpMin)+2 bytes long. No check is made for sensible values of + cpMin or cpMax. Positions outside the document return character codes + and style bytes of 0.

+ +

See also: SCI_GETSELTEXT, SCI_GETLINE, SCI_GETCURLINE, SCI_GETTEXTRANGE, SCI_GETTEXT

+ +

SCI_ALLOCATE(int bytes, <unused>)
+ Allocate a document buffer large enough to store a given number of bytes. + The document will not be made smaller than its current contents.

+ +

SCI_ADDTEXT(int length, const char *s)
+ This inserts the first length characters from the string s + at the current position. This will include any 0's in the string that you might have expected + to stop the insert operation. The current position is set at the end of the inserted text, + but it is not scrolled into view.

+ +

SCI_ADDSTYLEDTEXT(int length, cell *s)
+ This behaves just like SCI_ADDTEXT, but inserts styled text.

+ +

SCI_APPENDTEXT(int length, const char *s)
+ This adds the first length characters from the string s to the end + of the document. This will include any 0's in the string that you might have expected to stop + the operation. The current selection is not changed and the new text is not scrolled into + view.

+ +

SCI_INSERTTEXT(int pos, const char *text)
+ This inserts the zero terminated text string at position pos or at + the current position if pos is -1. If the current position is after the insertion point + then it is moved along with its surrounding text but no scrolling is performed.

+ +

SCI_CLEARALL
+ Unless the document is read-only, this deletes all the text.

+ +

SCI_DELETERANGE(int pos, int deleteLength)
+ Deletes a range of text in the document.

+ +

SCI_CLEARDOCUMENTSTYLE
+ When wanting to completely restyle the document, for example after choosing a lexer, the + SCI_CLEARDOCUMENTSTYLE can be used to clear all styling information and reset the + folding state.

+ +

SCI_GETCHARAT(int pos)
+ This returns the character at pos in the document or 0 if pos is + negative or past the end of the document.

+ +

SCI_GETSTYLEAT(int pos)
+ This returns the style at pos in the document, or 0 if pos is + negative or past the end of the document.

+ +

SCI_SETSTYLEBITS(int bits)
+ SCI_GETSTYLEBITS
+ This pair of routines sets and reads back the number of bits in each cell to use for styling, + to a maximum of 8 style bits. The remaining bits can be used as indicators. The standard + setting is SCI_SETSTYLEBITS(5). + The number of styling bits needed by the current lexer can be found with + SCI_GETSTYLEBITSNEEDED.

+ +

SCI_RELEASEALLEXTENDEDSTYLES
+ SCI_ALLOCATEEXTENDEDSTYLES(int numberStyles)
+ Extended styles are used for features like textual margins and annotations as well as internally by Scintilla. + They are outside the range 0..255 used for the styles bytes associated with document bytes. + These functions manage the use of extended styles to ensures that components cooperate in defining styles. + SCI_RELEASEALLEXTENDEDSTYLES releases any extended styles allocated by the container. + SCI_ALLOCATEEXTENDEDSTYLES allocates a range of style numbers after the byte style values and returns + the number of the first allocated style. + Ranges for margin and annotation styles should be allocated before calling + SCI_MARGINSETSTYLEOFFSET or + SCI_ANNOTATIONSETSTYLEOFFSET.

+ +

Sci_TextRange and Sci_CharacterRange
+ These structures are defined to be exactly the same shape as the Win32 TEXTRANGE + and CHARRANGE, so that older code that treats Scintilla as a RichEdit will + work.

+
+struct Sci_CharacterRange {
+    long cpMin;
+    long cpMax;
+};
+
+struct Sci_TextRange {
+    struct Sci_CharacterRange chrg;
+    char *lpstrText;
+};
+
+ +

GTK+-specific: Access to encoded text

+ +

SCI_TARGETASUTF8(<unused>, char *s)
+ This method retrieves the value of the target encoded as UTF-8 which is the default + encoding of GTK+ so is useful for retrieving text for use in other parts of the user interface, + such as find and replace dialogs. The length of the encoded text in bytes is returned. +

+ +

SCI_ENCODEDFROMUTF8(const char *utf8, char *encoded)
+ SCI_SETLENGTHFORENCODE(int bytes)
+ SCI_ENCODEDFROMUTF8 converts a UTF-8 string into the document's + encoding which is useful for taking the results of a find dialog, for example, and receiving + a string of bytes that can be searched for in the document. Since the text can contain nul bytes, + the SCI_SETLENGTHFORENCODE method can be used to set the + length that will be converted. If set to -1, the length is determined by finding a nul byte. + The length of the converted string is returned. +

+ + +

Searching

+

+ There are methods to search for text and for regular expressions. The regular expression support + is limited and should only be used for simple cases and initial development. A different regular expression + library can be integrated into Scintilla + or can be called from the container using direct access to the buffer contents through + SCI_GETCHARACTERPOINTER. +

+ SCI_FINDTEXT(int flags, Sci_TextToFind + *ttf)
+ SCI_SEARCHANCHOR
+ SCI_SEARCHNEXT(int searchFlags, const char + *text)
+ SCI_SEARCHPREV(int searchFlags, const char + *text)
+ Search and replace using the + target
+
+ +

searchFlags
+ Several of the search routines use flag options, which include a simple regular expression + search. Combine the flag options by adding them:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SCFIND_MATCHCASEA match only occurs with text that matches the case of the search string.
SCFIND_WHOLEWORDA match only occurs if the characters before and after are not word characters.
SCFIND_WORDSTARTA match only occurs if the character before is not a word character.
SCFIND_REGEXPThe search string should be interpreted as a regular expression.
SCFIND_POSIXTreat regular expression in a more POSIX compatible manner + by interpreting bare ( and ) for tagged sections rather than \( and \).
+ +

You can + search backwards to find the previous occurrence of a search string by setting the end of the + search range before the start.

+ +

In a regular expression, special characters interpreted are:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
.Matches any character
\(This marks the start of a region for tagging a match.
\)This marks the end of a tagged region.
\nWhere n is 1 through 9 refers to the first through ninth tagged region + when replacing. For example, if the search string was Fred\([1-9]\)XXX and + the replace string was Sam\1YYY, when applied to Fred2XXX this + would generate Sam2YYY. + \0 refers to all of the matching text.
\<This matches the start of a word using Scintilla's definitions of words.
\>This matches the end of a word using Scintilla's definition of words.
\xThis allows you to use a character x that would otherwise have a special meaning. For + example, \[ would be interpreted as [ and not as the start of a character set.
[...]This indicates a set of characters, for example, [abc] means any of the characters a, + b or c. You can also use ranges, for example [a-z] for any lower case character.
[^...]The complement of the characters in the set. For example, [^A-Za-z] means any + character except an alphabetic character.
^This matches the start of a line (unless used inside a set, see above).
$This matches the end of a line.
*This matches 0 or more times. For example, Sa*m matches Sm, + Sam, Saam, Saaam and so on.
+This matches 1 or more times. For example, Sa+m matches + Sam, Saam, Saaam and so on.
+ +

Regular expressions will only match ranges within a single line, never matching over multiple lines.

+ +

SCI_FINDTEXT(int searchFlags, Sci_TextToFind *ttf)
+ This message searches for text in the document. It does not use or move the current selection. + The searchFlags argument controls the + search type, which includes regular expression searches.

+ +

The Sci_TextToFind structure is defined in Scintilla.h; set + chrg.cpMin and chrg.cpMax with the range of positions in the document + to search. You can search backwards by + setting chrg.cpMax less than chrg.cpMin. + Set the lpstrText member of Sci_TextToFind to point at a zero terminated + text string holding the search pattern. If your language makes the use of Sci_TextToFind + difficult, you should consider using SCI_SEARCHINTARGET instead.

+ +

The return value is -1 if the search fails or the position of the start of the found text if + it succeeds. The chrgText.cpMin and chrgText.cpMax members of + Sci_TextToFind are filled in with the start and end positions of the found text.

+ +

See also: SCI_SEARCHINTARGET

+ +

Sci_TextToFind
+ This structure is defined to have exactly the same shape as the Win32 structure + FINDTEXTEX for old code that treated Scintilla as a RichEdit control.

+
+struct Sci_TextToFind {
+    struct Sci_CharacterRange chrg;     // range to search
+    char *lpstrText;                // the search pattern (zero terminated)
+    struct Sci_CharacterRange chrgText; // returned as position of matching text
+};
+
+ +

SCI_SEARCHANCHOR
+ SCI_SEARCHNEXT(int searchFlags, const char *text)
+ SCI_SEARCHPREV(int searchFlags, const char *text)
+ These messages provide relocatable search support. This allows multiple incremental + interactive searches to be macro recorded while still setting the selection to found text so + the find/select operation is self-contained. These three messages send SCN_MACRORECORD notifications if macro recording is enabled.

+ +

SCI_SEARCHANCHOR sets the search start point used by + SCI_SEARCHNEXT and SCI_SEARCHPREV to the start of the current + selection, that is, the end of the selection that is nearer to the start of the document. You + should always call this before calling either of SCI_SEARCHNEXT or + SCI_SEARCHPREV.

+ +

SCI_SEARCHNEXT and SCI_SEARCHPREV search for the next and previous + occurrence of the zero terminated search string pointed at by text. The search is modified by + the searchFlags.

+ +

The return value is -1 if nothing is found, otherwise the return value is the start position + of the matching text. The selection is updated to show the matched text, but is not scrolled + into view.

+ +

See also: SCI_SEARCHINTARGET, + SCI_FINDTEXT

+ +

Search and replace using the target

+ +

Using SCI_REPLACESEL, + modifications cause scrolling and other visible changes, which may take some time and cause + unwanted display updates. If performing many changes, such as a replace all command, the target + can be used instead. First, set the target, ie. the range to be replaced. Then call + SCI_REPLACETARGET or SCI_REPLACETARGETRE.

+ +

Searching can be performed within the target range with SCI_SEARCHINTARGET, + which uses a counted string to allow searching for null characters. It returns the + position of the start of the matching text range or -1 for failure, in which case the target is not moved. The flags used by + SCI_SEARCHINTARGET such as SCFIND_MATCHCASE, + SCFIND_WHOLEWORD, SCFIND_WORDSTART, and SCFIND_REGEXP + can be set with SCI_SETSEARCHFLAGS. SCI_SEARCHINTARGET may be simpler + for some clients to use than SCI_FINDTEXT, as that requires using a pointer to a + structure.

+ SCI_SETTARGETSTART(int pos)
+ SCI_GETTARGETSTART
+ SCI_SETTARGETEND(int pos)
+ SCI_GETTARGETEND
+ SCI_TARGETFROMSELECTION
+ SCI_SETSEARCHFLAGS(int searchFlags)
+ SCI_GETSEARCHFLAGS
+ SCI_SEARCHINTARGET(int length, const char + *text)
+ SCI_REPLACETARGET(int length, const char + *text)
+ SCI_REPLACETARGETRE(int length, const char + *text)
+ SCI_GETTAG(int tagNumber, char *tagValue)
+
+ +

SCI_SETTARGETSTART(int pos)
+ SCI_GETTARGETSTART
+ SCI_SETTARGETEND(int pos)
+ SCI_GETTARGETEND
+ These functions set and return the start and end of the target. When searching in non-regular + expression mode, you can set start greater than end to find the last matching text in the + target rather than the first matching text. The target is also set by a successful + SCI_SEARCHINTARGET.

+ +

SCI_TARGETFROMSELECTION
+ Set the target start and end to the start and end positions of the selection.

+ +

SCI_SETSEARCHFLAGS(int searchFlags)
+ SCI_GETSEARCHFLAGS
+ These get and set the searchFlags used by + SCI_SEARCHINTARGET. There are several option flags including a simple regular + expression search.

+ +

SCI_SEARCHINTARGET(int length, const char *text)
+ This searches for the first occurrence of a text string in the target defined by + SCI_SETTARGETSTART and SCI_SETTARGETEND. The text string is not zero + terminated; the size is set by length. The search is modified by the search flags + set by SCI_SETSEARCHFLAGS. If the search succeeds, the target is set to the found + text and the return value is the position of the start of the matching text. If the search + fails, the result is -1.

+ +

SCI_REPLACETARGET(int length, const char *text)
+ If length is -1, text is a zero terminated string, otherwise + length sets the number of character to replace the target with. + After replacement, the target range refers to the replacement text. + The return value + is the length of the replacement string.
+ Note that the recommended way to delete text in the document is to set the target to the text to be removed, + and to perform a replace target with an empty string.

+ +

SCI_REPLACETARGETRE(int length, const char *text)
+ This replaces the target using regular expressions. If length is -1, + text is a zero terminated string, otherwise length is the number of + characters to use. The replacement string is formed from the text string with any sequences of + \1 through \9 replaced by tagged matches from the most recent regular + expression search. \0 is replaced with all the matched text from the most recent search. + After replacement, the target range refers to the replacement text. + The return value is the length of the replacement string.

+ +

SCI_GETTAG(int tagNumber, char *tagValue)
+ Discover what text was matched by tagged expressions in a regular expression search. + This is useful if the application wants to interpret the replacement string itself.

+ +

See also: SCI_FINDTEXT

+ +

Overtype

+ +

SCI_SETOVERTYPE(bool overType)
+ SCI_GETOVERTYPE
+ When overtype is enabled, each typed character replaces the character to the right of the text + caret. When overtype is disabled, characters are inserted at the caret. + SCI_GETOVERTYPE returns TRUE (1) if overtyping is active, otherwise + FALSE (0) will be returned. Use SCI_SETOVERTYPE to set the overtype + mode.

+ +

Cut, copy and paste

+ + SCI_CUT
+ SCI_COPY
+ SCI_PASTE
+ SCI_CLEAR
+ SCI_CANPASTE
+ SCI_COPYRANGE(int start, int end)
+ SCI_COPYTEXT(int length, + const char *text)
+ SCI_COPYALLOWLINE
+ SCI_SETPASTECONVERTENDINGS(bool convert)
+ SCI_GETPASTECONVERTENDINGS
+
+ +

SCI_CUT
+ SCI_COPY
+ SCI_PASTE
+ SCI_CLEAR
+ SCI_CANPASTE
+ SCI_COPYALLOWLINE
+ These commands perform the standard tasks of cutting and copying data to the clipboard, + pasting from the clipboard into the document, and clearing the document. + SCI_CANPASTE returns non-zero if the document isn't read-only and if the selection + doesn't contain protected text. If you need a "can copy" or "can cut", use + SCI_GETSELECTIONEMPTY(), which will be zero if there are any non-empty + selection ranges implying that a copy or cut to the clipboard should work.

+ +

GTK+ does not really support SCI_CANPASTE and always returns TRUE + unless the document is read-only.

+ +

On X, the clipboard is asynchronous and may require several messages between + the destination and source applications. Data from SCI_PASTE will not arrive in the + document immediately.

+ +

SCI_COPYALLOWLINE works the same as SCI_COPY except that if the + selection is empty then the current line is copied. On Windows, an extra "MSDEVLineSelect" marker + is added to the clipboard which is then used in SCI_PASTE to paste + the whole line before the current line.

+ + SCI_COPYRANGE(int start, int end)
+ SCI_COPYTEXT(int length, const char *text)
+

SCI_COPYRANGE copies a range of text from the document to + the system clipboard and SCI_COPYTEXT copies a supplied piece of + text to the system clipboard.

+ +

SCI_SETPASTECONVERTENDINGS(bool convert)
+ SCI_GETPASTECONVERTENDINGS
+ If this property is set then when text is pasted any line ends are converted to match the document's + end of line mode as set with + SCI_SETEOLMODE. + Currently only changeable on Windows. On GTK+ pasted text is always converted.

+ +

Error handling

+ +

SCI_SETSTATUS(int status)
+ SCI_GETSTATUS
+ If an error occurs, Scintilla may set an internal error number that can be retrieved with + SCI_GETSTATUS. + To clear the error status call SCI_SETSTATUS(0). + The currently defined statuses are: +

+ + + + + + + + + + + + + + + + + + + + + + +
SC_STATUS_OK0No failures
SC_STATUS_FAILURE1Generic failure
SC_STATUS_BADALLOC2Memory is exhausted
+ +

Undo and Redo

+ +

Scintilla has multiple level undo and redo. It will continue to collect undoable actions + until memory runs out. Scintilla saves actions that change the document. Scintilla does not + save caret and selection movements, view scrolling and the like. Sequences of typing or + deleting are compressed into single transactions to make it easier to undo and redo at a sensible + level of detail. Sequences of actions can be combined into transactions that are undone as a unit. + These sequences occur between SCI_BEGINUNDOACTION and + SCI_ENDUNDOACTION messages. These transactions can be nested and only the top-level + sequences are undone as units.

+ SCI_UNDO
+ SCI_CANUNDO
+ SCI_EMPTYUNDOBUFFER
+ SCI_REDO
+ SCI_CANREDO
+ SCI_SETUNDOCOLLECTION(bool + collectUndo)
+ SCI_GETUNDOCOLLECTION
+ SCI_BEGINUNDOACTION
+ SCI_ENDUNDOACTION
+ SCI_ADDUNDOACTION(int token, int flags)
+
+ +

SCI_UNDO
+ SCI_CANUNDO
+ SCI_UNDO undoes one action, or if the undo buffer has reached a + SCI_ENDUNDOACTION point, all the actions back to the corresponding + SCI_BEGINUNDOACTION.

+ +

SCI_CANUNDO returns 0 if there is nothing to undo, and 1 if there is. You would + typically use the result of this message to enable/disable the Edit menu Undo command.

+ +

SCI_REDO
+ SCI_CANREDO
+ SCI_REDO undoes the effect of the last SCI_UNDO operation.

+ +

SCI_CANREDO returns 0 if there is no action to redo and 1 if there are undo + actions to redo. You could typically use the result of this message to enable/disable the Edit + menu Redo command.

+ +

SCI_EMPTYUNDOBUFFER
+ This command tells Scintilla to forget any saved undo or redo history. It also sets the save + point to the start of the undo buffer, so the document will appear to be unmodified. This does + not cause the SCN_SAVEPOINTREACHED notification to be sent to the + container.

+ +

See also: SCI_SETSAVEPOINT

+ +

SCI_SETUNDOCOLLECTION(bool collectUndo)
+ SCI_GETUNDOCOLLECTION
+ You can control whether Scintilla collects undo information with + SCI_SETUNDOCOLLECTION. Pass in true (1) to collect information and + false (0) to stop collecting. If you stop collection, you should also use + SCI_EMPTYUNDOBUFFER to avoid the undo buffer being unsynchronized with the data in + the buffer.

+ +

You might wish to turn off saving undo information if you use the Scintilla to store text + generated by a program (a Log view) or in a display window where text is often deleted and + regenerated.

+ +

SCI_BEGINUNDOACTION
+ SCI_ENDUNDOACTION
+ Send these two messages to Scintilla to mark the beginning and end of a set of operations that + you want to undo all as one operation but that you have to generate as several operations. + Alternatively, you can use these to mark a set of operations that you do not want to have + combined with the preceding or following operations if they are undone.

+ +

SCI_ADDUNDOACTION(int token, int flags)
+ The container can add its own actions into the undo stack by calling + SCI_ADDUNDOACTION and an SCN_MODIFIED + notification will be sent to the container with the + SC_MOD_CONTAINER + flag when it is time to undo (SC_PERFORMED_UNDO) or + redo (SC_PERFORMED_REDO) the action. The token argument supplied is + returned in the token field of the notification.

+

For example, if the container wanted to allow undo and redo of a 'toggle bookmark' command then + it could call SCI_ADDUNDOACTION(line, 0) each time the command is performed. + Then when it receives a notification to undo or redo it toggles a bookmark on the line given by + the token field. If there are different types of commands or parameters that need to be stored into the undo + stack then the container should maintain a stack of its own for the document and use the current + position in that stack as the argument to SCI_ADDUNDOACTION(line). + SCI_ADDUNDOACTION commands are not combined together + into a single undo transaction unless grouped with SCI_BEGINUNDOACTION + and SCI_ENDUNDOACTION.

+ +

The flags argument can be UNDO_MAY_COALESCE (1) if the container action may be + coalesced along with any insertion and deletion actions into a single compound action, otherwise 0. + Coalescing treats coalescible container actions as transparent so will still only group together insertions that + look like typing or deletions that look like multiple uses of the Backspace or Delete keys. +

+

Selection and information

+ +

Scintilla maintains a selection that stretches between two points, the anchor and the + current position. If the anchor and the current position are the same, there is no selected + text. Positions in the document range from 0 (before the first character), to the document size + (after the last character). If you use messages, there is nothing to stop you setting a + position that is in the middle of a CRLF pair, or in the middle of a 2 byte character. However, + keyboard commands will not move the caret into such positions.

+ SCI_GETTEXTLENGTH
+ SCI_GETLENGTH
+ SCI_GETLINECOUNT
+ SCI_SETFIRSTVISIBLELINE(int lineDisplay)
+ SCI_GETFIRSTVISIBLELINE
+ SCI_LINESONSCREEN
+ SCI_GETMODIFY
+ SCI_SETSEL(int anchorPos, int currentPos)
+ SCI_GOTOPOS(int position)
+ SCI_GOTOLINE(int line)
+ SCI_SETCURRENTPOS(int position)
+ SCI_GETCURRENTPOS
+ SCI_SETANCHOR(int position)
+ SCI_GETANCHOR
+ SCI_SETSELECTIONSTART(int position)
+ SCI_GETSELECTIONSTART
+ SCI_SETSELECTIONEND(int position)
+ SCI_GETSELECTIONEND
+ SCI_SETEMPTYSELECTION(int pos)
+ SCI_SELECTALL
+ SCI_LINEFROMPOSITION(int position)
+ SCI_POSITIONFROMLINE(int line)
+ SCI_GETLINEENDPOSITION(int line)
+ SCI_LINELENGTH(int line)
+ SCI_GETCOLUMN(int position)
+ SCI_FINDCOLUMN(int line, int column)
+ SCI_POSITIONFROMPOINT(int x, int y)
+ SCI_POSITIONFROMPOINTCLOSE(int x, int + y)
+ SCI_CHARPOSITIONFROMPOINT(int x, int y)
+ SCI_CHARPOSITIONFROMPOINTCLOSE(int x, int + y)
+ SCI_POINTXFROMPOSITION(<unused>, int + position)
+ SCI_POINTYFROMPOSITION(<unused>, int + position)
+ SCI_HIDESELECTION(bool hide)
+ SCI_GETSELTEXT(<unused>, char *text)
+ SCI_GETCURLINE(int textLen, char *text)
+ SCI_SELECTIONISRECTANGLE
+ SCI_SETSELECTIONMODE(int mode)
+ SCI_GETSELECTIONMODE
+ SCI_GETLINESELSTARTPOSITION(int line)
+ SCI_GETLINESELENDPOSITION(int line)
+ SCI_MOVECARETINSIDEVIEW
+ SCI_WORDENDPOSITION(int position, bool + onlyWordCharacters)
+ SCI_WORDSTARTPOSITION(int position, bool + onlyWordCharacters)
+ SCI_POSITIONBEFORE(int position)
+ SCI_POSITIONAFTER(int position)
+ SCI_POSITIONRELATIVE(int position, int relative)
+ SCI_COUNTCHARACTERS(int startPos, int endPos)
+ SCI_TEXTWIDTH(int styleNumber, const char *text)
+ SCI_TEXTHEIGHT(int line)
+ SCI_CHOOSECARETX
+ SCI_MOVESELECTEDLINESUP
+ SCI_MOVESELECTEDLINESDOWN
+ SCI_SETMOUSESELECTIONRECTANGULARSWITCH(bool + mouseSelectionRectangularSwitch)
+ SCI_GETMOUSESELECTIONRECTANGULARSWITCH
+
+ +

SCI_GETTEXTLENGTH
+ SCI_GETLENGTH
+ Both these messages return the length of the document in bytes.

+ +

SCI_GETLINECOUNT
+ This returns the number of lines in the document. An empty document contains 1 line. A + document holding only an end of line sequence has 2 lines.

+ +

SCI_SETFIRSTVISIBLELINE(int lineDisplay)
+ SCI_GETFIRSTVISIBLELINE
+ These messages retrieve and set the line number of the first visible line in the Scintilla view. The first line + in the document is numbered 0. The value is a visible line rather than a document line.

+ +

SCI_LINESONSCREEN
+ This returns the number of complete lines visible on the screen. With a constant line height, + this is the vertical space available divided by the line separation. Unless you arrange to size + your window to an integral number of lines, there may be a partial line visible at the bottom + of the view.

+ +

SCI_GETMODIFY
+ This returns non-zero if the document is modified and 0 if it is unmodified. The modified + status of a document is determined by the undo position relative to the save point. The save + point is set by SCI_SETSAVEPOINT, + usually when you have saved data to a file.

+ +

If you need to be notified when the document becomes modified, Scintilla notifies the + container that it has entered or left the save point with the SCN_SAVEPOINTREACHED and SCN_SAVEPOINTLEFT notification messages.

+ +

SCI_SETSEL(int anchorPos, int currentPos)
+ This message sets both the anchor and the current position. If currentPos is + negative, it means the end of the document. If anchorPos is negative, it means + remove any selection (i.e. set the anchor to the same position as currentPos). The + caret is scrolled into view after this operation.

+ +

SCI_GOTOPOS(int pos)
+ This removes any selection, sets the caret at pos and scrolls the view to make + the caret visible, if necessary. It is equivalent to + SCI_SETSEL(pos, pos). The anchor position is set the same as the current + position.

+ +

SCI_GOTOLINE(int line)
+ This removes any selection and sets the caret at the start of line number line + and scrolls the view (if needed) to make it visible. The anchor position is set the same as the + current position. If line is outside the lines in the document (first line is 0), + the line set is the first or last.

+ +

SCI_SETCURRENTPOS(int pos)
+ This sets the current position and creates a selection between the anchor and the current + position. The caret is not scrolled into view.

+ +

See also: SCI_SCROLLCARET

+ +

SCI_GETCURRENTPOS
+ This returns the current position.

+ +

SCI_SETANCHOR(int pos)
+ This sets the anchor position and creates a selection between the anchor position and the + current position. The caret is not scrolled into view.

+ +

See also: SCI_SCROLLCARET

+ +

SCI_GETANCHOR
+ This returns the current anchor position.

+ +

SCI_SETSELECTIONSTART(int pos)
+ SCI_SETSELECTIONEND(int pos)
+ These set the selection based on the assumption that the anchor position is less than the + current position. They do not make the caret visible. The table shows the positions of the + anchor and the current position after using these messages.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ anchorcurrent
SCI_SETSELECTIONSTARTposMax(pos, current)
SCI_SETSELECTIONENDMin(anchor, pos)pos
+ +

See also: SCI_SCROLLCARET

+ +

SCI_GETSELECTIONSTART
+ SCI_GETSELECTIONEND
+ These return the start and end of the selection without regard to which end is the current + position and which is the anchor. SCI_GETSELECTIONSTART returns the smaller of the + current position or the anchor position. SCI_GETSELECTIONEND returns the larger of + the two values.

+ +

SCI_SETEMPTYSELECTION(int pos)
+ This removes any selection and sets the caret at pos. The caret is not scrolled into view.

+ +

SCI_SELECTALL
+ This selects all the text in the document. The current position is not scrolled into view.

+ +

SCI_LINEFROMPOSITION(int pos)
+ This message returns the line that contains the position pos in the document. The + return value is 0 if pos <= 0. The return value is the last line if + pos is beyond the end of the document.

+ +

SCI_POSITIONFROMLINE(int line)
+ This returns the document position that corresponds with the start of the line. If + line is negative, the position of the line holding the start of the selection is + returned. If line is greater than the lines in the document, the return value is + -1. If line is equal to the number of lines in the document (i.e. 1 line past the + last line), the return value is the end of the document.

+ +

SCI_GETLINEENDPOSITION(int line)
+ This returns the position at the end of the line, before any line end characters. If line + is the last line in the document (which does not have any end of line characters) or greater, + the result is the size of the document. + If line is negative the result is undefined.

+ +

SCI_LINELENGTH(int line)
+ This returns the length of the line, including any line end characters. If line + is negative or beyond the last line in the document, the result is 0. If you want the length of + the line not including any end of line characters, use SCI_GETLINEENDPOSITION(line) - SCI_POSITIONFROMLINE(line).

+ +

SCI_GETSELTEXT(<unused>, char *text)
+ This copies the currently selected text and a terminating 0 byte to the text + buffer. The buffer size should be determined by calling with a NULL pointer for the text argument + SCI_GETSELTEXT(0,0). + This allows for rectangular and discontiguous selections as well as simple selections. + See Multiple Selection for information on + how multiple and rectangular selections and virtual space are copied.

+ +

See also: SCI_GETCURLINE, + SCI_GETLINE, + SCI_GETTEXT, + SCI_GETSTYLEDTEXT, + SCI_GETTEXTRANGE +

+ +

SCI_GETCURLINE(int textLen, char *text)
+ This retrieves the text of the line containing the caret and returns the position within the + line of the caret. Pass in char* text pointing at a buffer large enough to hold + the text you wish to retrieve and a terminating 0 character. + Set textLen to the + length of the buffer which must be at least 1 to hold the terminating 0 character. + If the text argument is 0 then the length that should be allocated + to store the entire current line is returned.

+ +

See also: SCI_GETSELTEXT, SCI_GETLINE, SCI_GETTEXT, SCI_GETSTYLEDTEXT, SCI_GETTEXTRANGE

+ +

SCI_SELECTIONISRECTANGLE
+ This returns 1 if the current selection is in rectangle mode, 0 if not.

+ +

SCI_SETSELECTIONMODE(int mode)
+ SCI_GETSELECTIONMODE
+ The two functions set and get the selection mode, which can be + stream (SC_SEL_STREAM=0) or + rectangular (SC_SEL_RECTANGLE=1) or + by lines (SC_SEL_LINES=2) + or thin rectangular (SC_SEL_THIN=3). + When set in these modes, regular caret moves will extend or reduce the selection, + until the mode is cancelled by a call with same value or with SCI_CANCEL. + The get function returns the current mode even if the selection was made by mouse + or with regular extended moves. + SC_SEL_THIN is the mode after a rectangular selection has been typed into and ensures + that no characters are selected.

+ +

SCI_GETLINESELSTARTPOSITION(int line)
+ SCI_GETLINESELENDPOSITION(int line)
+ Retrieve the position of the start and end of the selection at the given line with + INVALID_POSITION returned if no selection on this line.

+ +

SCI_MOVECARETINSIDEVIEW
+ If the caret is off the top or bottom of the view, it is moved to the nearest line that is + visible to its current position. Any selection is lost.

+ +

SCI_WORDENDPOSITION(int position, bool + onlyWordCharacters)
+ SCI_WORDSTARTPOSITION(int position, bool + onlyWordCharacters)
+ These messages return the start and end of words using the same definition of words as used + internally within Scintilla. You can set your own list of characters that count as words with + SCI_SETWORDCHARS. The position + sets the start or the search, which is forwards when searching for the end and backwards when + searching for the start.

+ +

Set onlyWordCharacters to true (1) to stop searching at the first + non-word character in the search direction. If onlyWordCharacters is + false (0), the first character in the search direction sets the type of the search + as word or non-word and the search stops at the first non-matching character. Searches are also + terminated by the start or end of the document.

+ +

If "w" represents word characters and "." represents non-word characters and "|" represents + the position and true or false is the state of + onlyWordCharacters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Initial stateend, trueend, falsestart, truestart, false
..ww..|..ww....ww..|..ww....ww....|ww....ww..|..ww....ww|....ww..
....ww|ww........wwww|........wwww|........|wwww........|wwww....
..ww|....ww....ww|....ww....ww....|ww....|ww....ww....|ww....ww..
..ww....|ww....ww....ww|....ww....ww|....ww....|ww....ww|....ww..
+ +

SCI_POSITIONBEFORE(int position)
+ SCI_POSITIONAFTER(int position)
+ These messages return the position before and after another position + in the document taking into account the current code page. The minimum + position returned is 0 and the maximum is the last position in the document. + If called with a position within a multi byte character will return the position + of the start/end of that character.

+ +

SCI_POSITIONRELATIVE(int position, int relative)
+ Count a number of whole characters before or after the argument position and return that position. + The minimum position returned is 0 and the maximum is the last position in the document. +

+ +

SCI_COUNTCHARACTERS(int startPos, int endPos)
+ Returns the number of whole characters between two positions..

+ +

SCI_TEXTWIDTH(int styleNumber, const char *text)
+ This returns the pixel width of a string drawn in the given styleNumber which can + be used, for example, to decide how wide to make the line number margin in order to display a + given number of numerals.

+ +

SCI_TEXTHEIGHT(int line)
+ This returns the height in pixels of a particular line. Currently all lines are the same + height.

+ +

SCI_GETCOLUMN(int pos)
+ This message returns the column number of a position pos within the document + taking the width of tabs into account. This returns the column number of the last tab on the + line before pos, plus the number of characters between the last tab and + pos. If there are no tab characters on the line, the return value is the number of + characters up to the position on the line. In both cases, double byte characters count as a + single character. This is probably only useful with monospaced fonts.

+ +

SCI_FINDCOLUMN(int line, int column)
+ This message returns the position of a column on a line + taking the width of tabs into account. It treats a multi-byte character as a single column. + Column numbers, like lines start at 0.

+ +

SCI_POSITIONFROMPOINT(int x, int y)
+ SCI_POSITIONFROMPOINTCLOSE(int x, int y)
+ SCI_POSITIONFROMPOINT finds the closest character position to a point and + SCI_POSITIONFROMPOINTCLOSE is similar but returns -1 if the point is outside the + window or not close to any characters.

+ +

SCI_CHARPOSITIONFROMPOINT(int x, int y)
+ SCI_CHARPOSITIONFROMPOINTCLOSE(int x, int y)
+ SCI_CHARPOSITIONFROMPOINT finds the closest character to a point and + SCI_CHARPOSITIONFROMPOINTCLOSE is similar but returns -1 if the point is outside the + window or not close to any characters. This is similar to the previous methods but finds characters rather than + inter-character positions.

+ +

SCI_POINTXFROMPOSITION(<unused>, int pos)
+ SCI_POINTYFROMPOSITION(<unused>, int pos)
+ These messages return the x and y display pixel location of text at position pos + in the document.

+ +

SCI_HIDESELECTION(bool hide)
+ The normal state is to make the selection visible by drawing it as set by SCI_SETSELFORE and SCI_SETSELBACK. However, if you hide the selection, it + is drawn as normal text.

+ +

SCI_CHOOSECARETX
+ Scintilla remembers the x value of the last position horizontally moved to explicitly by the + user and this value is then used when moving vertically such as by using the up and down keys. + This message sets the current x position of the caret as the remembered value.

+ +

SCI_MOVESELECTEDLINESUP
+ Move the selected lines up one line, shifting the line above after the selection. + The selection will be automatically extended to the beginning of the selection's first line and the end of the seletion's last line. + If nothing was selected, the line the cursor is currently at will be selected.

+ +

SCI_MOVESELECTEDLINESDOWN
+ Move the selected lines down one line, shifting the line below before the selection. + The selection will be automatically extended to the beginning of the selection's first line and the end of the seletion's last line. + If nothing was selected, the line the cursor is currently at will be selected.

+ +

SCI_SETMOUSESELECTIONRECTANGULARSWITCH(bool + mouseSelectionRectangularSwitch)
+ SCI_GETMOUSESELECTIONRECTANGULARSWITCH
+ Enable or disable the ability to switch to rectangular selection mode while making a selection with the mouse. + When this option is turned on, mouse selections in stream mode can be switched to rectangular mode by pressing + the corresponding modifier key. They then stick to rectangular mode even when the modifier key is released again. + When this option is turned off, mouse selections will always stick to the mode the selection was started in. It + is off by default.

+ +

Multiple Selection and Virtual Space

+ + + SCI_SETMULTIPLESELECTION(bool multipleSelection)
+ SCI_GETMULTIPLESELECTION
+ SCI_SETADDITIONALSELECTIONTYPING(bool additionalSelectionTyping)
+ SCI_GETADDITIONALSELECTIONTYPING
+ SCI_SETMULTIPASTE(int multiPaste)
+ SCI_GETMULTIPASTE
+ SCI_SETVIRTUALSPACEOPTIONS(int virtualSpaceOptions)
+ SCI_GETVIRTUALSPACEOPTIONS
+ SCI_SETRECTANGULARSELECTIONMODIFIER(int modifier)
+ SCI_GETRECTANGULARSELECTIONMODIFIER
+
+ + SCI_GETSELECTIONS
+ SCI_GETSELECTIONEMPTY
+ SCI_CLEARSELECTIONS
+ SCI_SETSELECTION(int caret, int anchor)
+ SCI_ADDSELECTION(int caret, int anchor)
+ SCI_SETMAINSELECTION(int selection)
+ SCI_GETMAINSELECTION
+
+ + SCI_SETSELECTIONNCARET(int selection, int pos)
+ SCI_GETSELECTIONNCARET(int selection)
+ SCI_SETSELECTIONNCARETVIRTUALSPACE(int selection, int space)
+ SCI_GETSELECTIONNCARETVIRTUALSPACE(int selection)
+ SCI_SETSELECTIONNANCHOR(int selection, int posAnchor)
+ SCI_GETSELECTIONNANCHOR(int selection)
+ SCI_SETSELECTIONNANCHORVIRTUALSPACE(int selection, int space)
+ SCI_GETSELECTIONNANCHORVIRTUALSPACE(int selection)
+ SCI_SETSELECTIONNSTART(int selection, int pos)
+ SCI_GETSELECTIONNSTART(int selection)
+ SCI_SETSELECTIONNEND(int selection, int pos)
+ SCI_GETSELECTIONNEND(int selection)
+
+ + SCI_SETRECTANGULARSELECTIONCARET(int pos)
+ SCI_GETRECTANGULARSELECTIONCARET
+ SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE(int space)
+ SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE
+ SCI_SETRECTANGULARSELECTIONANCHOR(int posAnchor)
+ SCI_GETRECTANGULARSELECTIONANCHOR
+ SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE(int space)
+ SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE
+
+ + SCI_SETADDITIONALSELALPHA(int alpha)
+ SCI_GETADDITIONALSELALPHA
+ SCI_SETADDITIONALSELFORE(int colour)
+ SCI_SETADDITIONALSELBACK(int colour)
+ SCI_SETADDITIONALCARETFORE(int colour)
+ SCI_GETADDITIONALCARETFORE
+ SCI_SETADDITIONALCARETSBLINK(bool additionalCaretsBlink)
+ SCI_GETADDITIONALCARETSBLINK
+ SCI_SETADDITIONALCARETSVISIBLE(bool additionalCaretsVisible)
+ SCI_GETADDITIONALCARETSVISIBLE
+
+ + SCI_SWAPMAINANCHORCARET
+ SCI_ROTATESELECTION
+
+ +

+ There may be multiple selections active at one time. + More selections are made by holding down the Ctrl key while dragging with the mouse. + The most recent selection is the main selection and determines which part of the document is shown automatically. + Any selection apart from the main selection is called an additional selection. + The calls in the previous section operate on the main selection. + There is always at least one selection. +

+ +

+ Rectangular selections are handled as multiple selections although the original rectangular range is remembered so that + subsequent operations may be handled differently for rectangular selections. For example, pasting a rectangular selection + places each piece in a vertical column. +

+ +

+ Virtual space is space beyond the end of each line. The caret may be moved into virtual space but no real space will be + added to the document until there is some text typed or some other text insertion command is used. +

+ +

When discontiguous selections are copied to the clipboard, each selection is added to the clipboard text + in order with no delimiting characters. + For rectangular selections the document's line end is added after each line's text. Rectangular selections + are always copied from top line to bottom, not in the in order of selection.Virtual space is not copied.

+ +

+ SCI_SETMULTIPLESELECTION(bool multipleSelection)
+ SCI_GETMULTIPLESELECTION
+ Enable or disable multiple selection. When multiple selection is disabled, it is not possible to select + multiple ranges by holding down the Ctrl key while dragging with the mouse.

+ +

+ SCI_SETADDITIONALSELECTIONTYPING(bool additionalSelectionTyping)
+ SCI_GETADDITIONALSELECTIONTYPING
+ Whether typing, backspace, or delete works with multiple selections simultaneously.

+ +

+ SCI_SETMULTIPASTE(int multiPaste)
+ SCI_GETMULTIPASTE
+ When pasting into multiple selections, the pasted text can go into just the main selection with SC_MULTIPASTE_ONCE=0 + or into each selection with SC_MULTIPASTE_EACH=1. SC_MULTIPASTE_ONCE is the default.

+ +

+ SCI_SETVIRTUALSPACEOPTIONS(int virtualSpace)
+ SCI_GETVIRTUALSPACEOPTIONS
+ Virtual space can be enabled or disabled for rectangular selections or in other circumstances or in both. + There are two bit flags SCVS_RECTANGULARSELECTION=1 and + SCVS_USERACCESSIBLE=2 which can be set independently. + SCVS_NONE=0, the default, disables all use of virtual space.

+ +

+ SCI_SETRECTANGULARSELECTIONMODIFIER(int modifier)
+ SCI_GETRECTANGULARSELECTIONMODIFIER
+ On GTK+, the key used to indicate that a rectangular selection should be created when combined with a mouse drag can be set. + The three possible values are SCMOD_CTRL=2 (default), SCMOD_ALT=4 or SCMOD_SUPER=8. + Since SCMOD_ALT is often already used by a window manager, the window manager may need configuring to allow this choice. + SCMOD_SUPER is often a system dependent modifier key such as the Left Windows key on a Windows keyboard or the + Command key on a Mac.

+ +

+ SCI_GETSELECTIONS
+ Return the number of selections currently active.

+ +

+ SCI_GETSELECTIONEMPTY
+ Return 1 if every selected range is empty else 0.

+ +

+ SCI_CLEARSELECTIONS
+ Set a single empty selection at 0 as the only selection.

+ +

+ SCI_SETSELECTION(int caret, int anchor)
+ Set a single selection from anchor to caret as the only selection.

+ +

+ SCI_ADDSELECTION(int caret, int anchor)
+ Add a new selection from anchor to caret as the main selection retaining all other + selections as additional selections. + Since there is always at least one selection, to set a list of selections, the first selection should be + added with SCI_SETSELECTION and later selections added with SCI_ADDSELECTION

+ +

+ SCI_SETMAINSELECTION(int selection)
+ SCI_GETMAINSELECTION
+ One of the selections is the main selection which is used to determine what range of text is automatically visible. + The main selection may be displayed in different colours or with a differently styled caret. + Only an already existing selection can be made main.

+ +

+ SCI_SETSELECTIONNCARET(int selection, int pos)
+ SCI_GETSELECTIONNCARET(int selection)
+ SCI_SETSELECTIONNCARETVIRTUALSPACE(int selection, int space)
+ SCI_GETSELECTIONNCARETVIRTUALSPACE(int selection)
+ SCI_SETSELECTIONNANCHOR(int selection, int posAnchor)
+ SCI_GETSELECTIONNANCHOR(int selection)
+ SCI_SETSELECTIONNANCHORVIRTUALSPACE(int selection, int space)
+ SCI_GETSELECTIONNANCHORVIRTUALSPACE(int selection)
+ Set or query the position and amount of virtual space for the caret and anchor of each already existing selection.

+ +

+ SCI_SETSELECTIONNSTART(int selection, int pos)
+ SCI_GETSELECTIONNSTART(int selection)
+ SCI_SETSELECTIONNEND(int selection, int pos)
+ SCI_GETSELECTIONNEND(int selection)
+ Set or query the start and end position of each already existing selection. + Mostly of use to query each range for its text.

+ +

+ SCI_SETRECTANGULARSELECTIONCARET(int pos)
+ SCI_GETRECTANGULARSELECTIONCARET
+ SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE(int space)
+ SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE
+ SCI_SETRECTANGULARSELECTIONANCHOR(int posAnchor)
+ SCI_GETRECTANGULARSELECTIONANCHOR
+ SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE(int space)
+ SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE
+ Set or query the position and amount of virtual space for the caret and anchor of the rectangular selection. + After setting the rectangular selection, this is broken down into multiple selections, one for each line.

+ +

+ SCI_SETADDITIONALSELALPHA(int alpha)
+ SCI_GETADDITIONALSELALPHA
+ SCI_SETADDITIONALSELFORE(int colour)
+ SCI_SETADDITIONALSELBACK(int colour)
+ Modify the appearance of additional selections so that they can be differentiated from the main selection which has its appearance set with + SCI_SETSELALPHA, + SCI_GETSELALPHA, + SCI_SETSELFORE, and + SCI_SETSELBACK.

+ +

+ SCI_SETADDITIONALCARETFORE(int colour)
+ SCI_GETADDITIONALCARETFORE
+ SCI_SETADDITIONALCARETSBLINK(bool additionalCaretsBlink)
+ SCI_GETADDITIONALCARETSBLINK
+ Modify the appearance of additional carets so that they can be differentiated from the main caret which has its appearance set with + SCI_SETCARETFORE, + SCI_GETCARETFORE, + SCI_SETCARETPERIOD, and + SCI_GETCARETPERIOD.

+ +

+ SCI_SETADDITIONALCARETSVISIBLE(bool additionalCaretsVisible)
+ SCI_GETADDITIONALCARETSVISIBLE
+ Determine whether to show additional carets (defaults to true).

+ +

+ SCI_SWAPMAINANCHORCARET
+ SCI_ROTATESELECTION
+ These commands may be assigned to keys to make it possible to manipulate multiple selections. + SCI_SWAPMAINANCHORCARET moves the caret to the opposite end of the main selection. + SCI_ROTATESELECTION makes the next selection be the main selection. +

+ +

Scrolling and automatic scrolling

+ SCI_LINESCROLL(int column, int line)
+ SCI_SCROLLCARET
+ SCI_SCROLLRANGE(int secondary, int primary)
+ SCI_SETXCARETPOLICY(int caretPolicy, int + caretSlop)
+ SCI_SETYCARETPOLICY(int caretPolicy, int + caretSlop)
+ SCI_SETVISIBLEPOLICY(int caretPolicy, int + caretSlop)
+ SCI_SETHSCROLLBAR(bool visible)
+ SCI_GETHSCROLLBAR
+ SCI_SETVSCROLLBAR(bool visible)
+ SCI_GETVSCROLLBAR
+ SCI_GETXOFFSET
+ SCI_SETXOFFSET(int xOffset)
+ SCI_SETSCROLLWIDTH(int pixelWidth)
+ SCI_GETSCROLLWIDTH
+ SCI_SETSCROLLWIDTHTRACKING(bool tracking)
+ SCI_GETSCROLLWIDTHTRACKING
+ SCI_SETENDATLASTLINE(bool + endAtLastLine)
+ SCI_GETENDATLASTLINE
+
+ +

SCI_LINESCROLL(int column, int line)
+ This will attempt to scroll the display by the number of columns and lines that you specify. + Positive line values increase the line number at the top of the screen (i.e. they move the text + upwards as far as the user is concerned), Negative line values do the reverse.

+ +

The column measure is the width of a space in the default style. Positive values increase + the column at the left edge of the view (i.e. they move the text leftwards as far as the user + is concerned). Negative values do the reverse.

+ +

See also: SCI_SETXOFFSET

+ +

SCI_SCROLLCARET
+ If the current position (this is the caret if there is no selection) is not visible, the view + is scrolled to make it visible according to the current caret policy.

+ +

SCI_SCROLLRANGE(int secondary, int primary)
+ Scroll the argument positions and the range between them into view giving + priority to the primary position then the secondary position. + The behaviour is similar to SCI_SCROLLCARET + with the primary position used instead of the caret. An effort is then made to ensure that the secondary + position and range between are also visible. + This may be used to make a search match visible.

+ +

SCI_SETXCARETPOLICY(int caretPolicy, int caretSlop)
+ SCI_SETYCARETPOLICY(int caretPolicy, int caretSlop)
+ These set the caret policy. The value of caretPolicy is a combination of + CARET_SLOP, CARET_STRICT, CARET_JUMPS and + CARET_EVEN.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
CARET_SLOPIf set, we can define a slop value: caretSlop. This value defines an + unwanted zone (UZ) where the caret is... unwanted. This zone is defined as a number of + pixels near the vertical margins, and as a number of lines near the horizontal margins. + By keeping the caret away from the edges, it is seen within its context. This makes it + likely that the identifier that the caret is on can be completely seen, and that the + current line is seen with some of the lines following it, which are often dependent on + that line.
CARET_STRICTIf set, the policy set by CARET_SLOP is enforced... strictly. The caret + is centred on the display if caretSlop is not set, and cannot go in the UZ + if caretSlop is set.
CARET_JUMPSIf set, the display is moved more energetically so the caret can move in the same + direction longer before the policy is applied again. '3UZ' notation is used to indicate + three time the size of the UZ as a distance to the margin.
CARET_EVENIf not set, instead of having symmetrical UZs, the left and bottom UZs are extended + up to right and top UZs respectively. This way, we favour the displaying of useful + information: the beginning of lines, where most code reside, and the lines after the + caret, for example, the body of a function.
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
slopstrictjumpsevenCaret can go to the marginOn reaching limit (going out of visibility
+ or going into the UZ) display is...
0000Yesmoved to put caret on top/on right
0001Yesmoved by one position
0010Yesmoved to put caret on top/on right
0011Yescentred on the caret
01-0Caret is always on top/on right of display-
01-1No, caret is always centred-
1000Yesmoved to put caret out of the asymmetrical UZ
1001Yesmoved to put caret out of the UZ
1010Yesmoved to put caret at 3UZ of the top or right margin
1011Yesmoved to put caret at 3UZ of the margin
11-0Caret is always at UZ of top/right margin-
1101No, kept out of UZmoved by one position
1110No, kept out of UZmoved to put caret at 3UZ of the margin
+ +

SCI_SETVISIBLEPOLICY(int caretPolicy, int caretSlop)
+ This determines how the vertical positioning is determined when SCI_ENSUREVISIBLEENFORCEPOLICY is + called. It takes VISIBLE_SLOP and VISIBLE_STRICT flags for the policy + parameter. It is similar in operation to SCI_SETYCARETPOLICY(int caretPolicy, int + caretSlop).

+ +

SCI_SETHSCROLLBAR(bool visible)
+ SCI_GETHSCROLLBAR
+ The horizontal scroll bar is only displayed if it is needed for the assumed width. + If you never wish to see it, call + SCI_SETHSCROLLBAR(0). Use SCI_SETHSCROLLBAR(1) to enable it again. + SCI_GETHSCROLLBAR returns the current state. The default state is to display it + when needed.

+

See also: SCI_SETSCROLLWIDTH.

+ +

SCI_SETVSCROLLBAR(bool visible)
+ SCI_GETVSCROLLBAR
+ By default, the vertical scroll bar is always displayed when required. You can choose to hide + or show it with SCI_SETVSCROLLBAR and get the current state with + SCI_GETVSCROLLBAR.

+ +

SCI_SETXOFFSET(int xOffset)
+ SCI_GETXOFFSET
+ The xOffset is the horizontal scroll position in pixels of the start of the text + view. A value of 0 is the normal position with the first text column visible at the left of the + view.

+ +

See also: SCI_LINESCROLL

+ +

SCI_SETSCROLLWIDTH(int pixelWidth)
+ SCI_GETSCROLLWIDTH
+ For performance, Scintilla does not measure the display width of the document to determine + the properties of the horizontal scroll bar. Instead, an assumed width is used. + These messages set and get the document width in pixels assumed by Scintilla. + The default value is 2000. + To ensure the width of the currently visible lines can be scrolled use + SCI_SETSCROLLWIDTHTRACKING

+ +

SCI_SETSCROLLWIDTHTRACKING(bool tracking)
+ SCI_GETSCROLLWIDTHTRACKING
+ If scroll width tracking is enabled then the scroll width is adjusted to ensure that all of the lines currently + displayed can be completely scrolled. This mode never adjusts the scroll width to be narrower.

+ +

SCI_SETENDATLASTLINE(bool endAtLastLine)
+ SCI_GETENDATLASTLINE
+ SCI_SETENDATLASTLINE sets the scroll range so that maximum scroll position has + the last line at the bottom of the view (default). Setting this to false allows + scrolling one page below the last line.

+ +

White space

+ SCI_SETVIEWWS(int wsMode)
+ SCI_GETVIEWWS
+ SCI_SETWHITESPACEFORE(bool + useWhitespaceForeColour, int colour)
+ SCI_SETWHITESPACEBACK(bool + useWhitespaceBackColour, int colour)
+ SCI_SETWHITESPACESIZE(int + size)
+ SCI_GETWHITESPACESIZE
+ SCI_SETEXTRAASCENT(int extraAscent)
+ SCI_GETEXTRAASCENT
+ SCI_SETEXTRADESCENT(int extraDescent)
+ SCI_GETEXTRADESCENT
+
+ +

SCI_SETVIEWWS(int wsMode)
+ SCI_GETVIEWWS
+ White space can be made visible which may be useful for languages in which white space is + significant, such as Python. Space characters appear as small centred dots and tab characters + as light arrows pointing to the right. There are also ways to control the display of end of line characters. The two messages set and get the + white space display mode. The wsMode argument can be one of:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
SCWS_INVISIBLE0The normal display mode with white space displayed as an empty background + colour.
SCWS_VISIBLEALWAYS1White space characters are drawn as dots and arrows,
SCWS_VISIBLEAFTERINDENT2White space used for indentation is displayed normally but after the first visible + character, it is shown as dots and arrows.
+ +

The effect of using any other wsMode value is undefined.

+ +

SCI_SETWHITESPACEFORE(bool useWhitespaceForeColour, int colour)
+ SCI_SETWHITESPACEBACK(bool useWhitespaceBackColour, int colour)
+ By default, the colour of visible white space is determined by the lexer in use. The + foreground and/or background colour of all visible white space can be set globally, overriding + the lexer's colours with SCI_SETWHITESPACEFORE and + SCI_SETWHITESPACEBACK.

+ +

SCI_SETWHITESPACESIZE(int size)
+ SCI_GETWHITESPACESIZE
+ SCI_SETWHITESPACESIZE sets the size of the dots used for mark space characters. + The SCI_GETWHITESPACESIZE message retrieves the current size. +

+ +

+ SCI_SETEXTRAASCENT(int extraAscent)
+ SCI_GETEXTRAASCENT
+ SCI_SETEXTRADESCENT(int extraDescent)
+ SCI_GETEXTRADESCENT
+ Text is drawn with the base of each character on a 'baseline'. The height of a line is found from the maximum + that any style extends above the baseline (its 'ascent'), added to the maximum that any style extends below the + baseline (its 'descent'). + Space may be added to the maximum ascent (SCI_SETEXTRAASCENT) and the + maximum descent (SCI_SETEXTRADESCENT) to allow for more space between lines. + This may done to make the text easier to read or to accomodate underlines or highlights. +

+ +

Cursor

+ +

SCI_SETCURSOR(int curType)
+ SCI_GETCURSOR
+ The cursor is normally chosen in a context sensitive way, so it will be different over the + margin than when over the text. When performing a slow action, you may wish to change to a wait + cursor. You set the cursor type with SCI_SETCURSOR. The curType + argument can be:

+ + + + + + + + + + + + + + + + + + + +
SC_CURSORNORMAL-1The normal cursor is displayed.
SC_CURSORWAIT 4The wait cursor is displayed when the mouse is over or owned by the Scintilla + window.
+ +

Cursor values 1 through 7 have defined cursors, but only SC_CURSORWAIT is + usefully controllable. Other values of curType cause a pointer to be displayed. + The SCI_GETCURSOR message returns the last cursor type you set, or + SC_CURSORNORMAL (-1) if you have not set a cursor type.

+ +

Mouse capture

+ +

SCI_SETMOUSEDOWNCAPTURES(bool captures)
+ SCI_GETMOUSEDOWNCAPTURES
+ When the mouse is pressed inside Scintilla, it is captured so future mouse movement events are + sent to Scintilla. This behaviour may be turned off with + SCI_SETMOUSEDOWNCAPTURES(0).

+ +

Line endings

+ +

Scintilla can handle the major line end conventions and, depending on settings and + the current lexer also support additional Unicode line ends.

+ +

Scintilla can interpret any of the Macintosh (\r), Unix (\n) and Windows (\r\n) + line ends. + When the user presses the Enter key, one of these line + end strings is inserted into the buffer. The default is \r\n in Windows and \n in Unix, but + this can be changed with the SCI_SETEOLMODE message. You can also convert the + entire document to one of these line endings with SCI_CONVERTEOLS. Finally, you + can choose to display the line endings with SCI_SETVIEWEOL.

+ +
+

For the UTF-8 encoding, three additional Unicode line ends, + Next Line (NEL=U+0085), Line Separator (LS=U+2028), and Paragraph Separator (PS=U+2029) + may optionally be interpreted when Unicode line ends is turned on and the current lexer also supports + Unicode line ends.

+
+ + SCI_SETEOLMODE(int eolMode)
+ SCI_GETEOLMODE
+ SCI_CONVERTEOLS(int eolMode)
+ SCI_SETVIEWEOL(bool visible)
+ SCI_GETVIEWEOL
+ + +
+ +

SCI_SETEOLMODE(int eolMode)
+ SCI_GETEOLMODE
+ SCI_SETEOLMODE sets the characters that are added into the document when the user + presses the Enter key. You can set eolMode to one of SC_EOL_CRLF (0), + SC_EOL_CR (1), or SC_EOL_LF (2). The SCI_GETEOLMODE + message retrieves the current state.

+ +

SCI_CONVERTEOLS(int eolMode)
+ This message changes all the end of line characters in the document to match + eolMode. Valid values are: SC_EOL_CRLF (0), SC_EOL_CR + (1), or SC_EOL_LF (2).

+ +

SCI_SETVIEWEOL(bool visible)
+ SCI_GETVIEWEOL
+ Normally, the end of line characters are hidden, but SCI_SETVIEWEOL allows you to + display (or hide) them by setting visible true (or + false). The visible rendering of the end of line characters is similar to + (CR), (LF), or (CR)(LF). SCI_GETVIEWEOL + returns the current state.

+ +
+ These features are provisional
+ +

SCI_GETLINEENDTYPESSUPPORTED
+ SCI_GETLINEENDTYPESSUPPORTED reports the different types of line ends supported + by the current lexer. This is a bit set although there is currently only a single choice + with either SC_LINE_END_TYPE_DEFAULT (0) or SC_LINE_END_TYPE_UNICODE (1). + These values are also used by the other messages concerned with Unicode line ends.

+ +

SCI_SETLINEENDTYPESALLOWED(int lineEndBitSet)
+ SCI_GETLINEENDTYPESALLOWED
+ By default, only the ASCII line ends are interpreted. Unicode line ends may be requested with + SCI_SETLINEENDTYPESALLOWED(SC_LINE_END_TYPE_UNICODE) + but this will be ineffective unless the lexer also allows you Unicode line ends. + SCI_GETLINEENDTYPESALLOWED returns the current state.

+ +

SCI_GETLINEENDTYPESACTIVE
+ SCI_GETLINEENDTYPESACTIVE reports the set of line ends currently interpreted + by Scintilla. It is SCI_GETLINEENDTYPESSUPPORTED & SCI_GETLINEENDTYPESALLOWED.

+
+ +

Styling

+ +

The styling messages allow you to assign styles to text. The standard Scintilla settings + divide the 8 style bits available for each character into 5 bits (0 to 4 = styles 0 to 31) that set a style and three bits (5 to 7) that + define indicators. You can change the balance between + styles and indicators with SCI_SETSTYLEBITS. If your styling needs can be met by + one of the standard lexers, or if you can write your own, then a lexer is probably the easiest + way to style your document. If you choose to use the container to do the styling you can use + the SCI_SETLEXER command to select + SCLEX_CONTAINER, in which case the container is sent a SCN_STYLENEEDED notification each time text needs styling for display. As another + alternative, you might use idle time to style the document. Even if you use a lexer, you might + use the styling commands to mark errors detected by a compiler. The following commands can be + used.

+ SCI_GETENDSTYLED
+ SCI_STARTSTYLING(int position, int mask)
+ SCI_SETSTYLING(int length, int style)
+ SCI_SETSTYLINGEX(int length, const char + *styles)
+ SCI_SETLINESTATE(int line, int value)
+ SCI_GETLINESTATE(int line)
+ SCI_GETMAXLINESTATE
+
+ +

SCI_GETENDSTYLED
+ Scintilla keeps a record of the last character that is likely to be styled correctly. This is + moved forwards when characters after it are styled and moved backwards if changes are made to + the text of the document before it. Before drawing text, this position is checked to see if any + styling is needed and, if so, a SCN_STYLENEEDED notification message is sent to the + container. The container can send SCI_GETENDSTYLED to work out where it needs to + start styling. Scintilla will always ask to style whole lines.

+ +

SCI_STARTSTYLING(int pos, int mask)
+ This prepares for styling by setting the styling position pos to start at and a + mask indicating which bits of the style bytes can be set. The mask allows styling + to occur over several passes, with, for example, basic styling done on an initial pass to + ensure that the text of the code is seen quickly and correctly, and then a second slower pass, + detecting syntax errors and using indicators to show where these are. For example, with the + standard settings of 5 style bits and 3 indicator bits, you would use a mask value + of 31 (0x1f) if you were setting text styles and did not want to change the indicators. After + SCI_STARTSTYLING, send multiple SCI_SETSTYLING messages for each + lexical entity to style.

+ +

SCI_SETSTYLING(int length, int style)
+ This message sets the style of length characters starting at the styling position + and then increases the styling position by length, ready for the next call. If + sCell is the style byte, the operation is:
+ if ((sCell & mask) != style) sCell = (sCell & ~mask) | (style & + mask);
+

+ +

SCI_SETSTYLINGEX(int length, const char *styles)
+ As an alternative to SCI_SETSTYLING, which applies the same style to each byte, + you can use this message which specifies the styles for each of length bytes from + the styling position and then increases the styling position by length, ready for + the next call. The length styling bytes pointed at by styles should + not contain any bits not set in mask.

+ +

SCI_SETLINESTATE(int line, int value)
+ SCI_GETLINESTATE(int line)
+ As well as the 8 bits of lexical state stored for each character there is also an integer + stored for each line. This can be used for longer lived parse states such as what the current + scripting language is in an ASP page. Use SCI_SETLINESTATE to set the integer + value and SCI_GETLINESTATE to get the value. + Changing the value produces a SC_MOD_CHANGELINESTATE notification. +

+ +

SCI_GETMAXLINESTATE
+ This returns the last line that has any line state.

+ +

Style definition

+ +

While the style setting messages mentioned above change the style numbers associated with + text, these messages define how those style numbers are interpreted visually. There are 256 + lexer styles that can be set, numbered 0 to STYLE_MAX (255). Unless you use SCI_SETSTYLEBITS to change the number + of style bits, styles 0 to 31 are used to set the text attributes. There are also some + predefined numbered styles starting at 32, The following STYLE_* constants are + defined.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
STYLE_DEFAULT32This style defines the attributes that all styles receive when the + SCI_STYLECLEARALL message is used.
STYLE_LINENUMBER33This style sets the attributes of the text used to display line numbers in a line + number margin. The background colour set for this style also sets the background colour + for all margins that do not have any folding mask bits set. That is, any margin for which + mask & SC_MASK_FOLDERS is 0. See SCI_SETMARGINMASKN for more about masks.
STYLE_BRACELIGHT34This style sets the attributes used when highlighting braces with the SCI_BRACEHIGHLIGHT message and + when highlighting the corresponding indentation with SCI_SETHIGHLIGHTGUIDE.
STYLE_BRACEBAD35This style sets the display attributes used when marking an unmatched brace with the + SCI_BRACEBADLIGHT + message.
STYLE_CONTROLCHAR36This style sets the font used when drawing control characters. + Only the font, size, bold, italics, and character set attributes are used and not + the colour attributes. See + also: SCI_SETCONTROLCHARSYMBOL.
STYLE_INDENTGUIDE37This style sets the foreground and background colours used when drawing the + indentation guides.
STYLE_CALLTIP38 Call tips normally use the font attributes defined by STYLE_DEFAULT. + Use of SCI_CALLTIPUSESTYLE + causes call tips to use this style instead. Only the font face name, font size, + foreground and background colours and character set attributes are used.
STYLE_LASTPREDEFINED39To make it easier for client code to discover the range of styles that are + predefined, this is set to the style number of the last predefined style. This is + currently set to 39 and the last style with an identifier is 38, which reserves space + for one future predefined style.
STYLE_MAX255This is not a style but is the number of the maximum style that can be set. Styles + between STYLE_LASTPREDEFINED and STYLE_MAX would be appropriate + if you used SCI_SETSTYLEBITS + to set more than 5 style bits.
+ +

For each style you can set the font name, size and use of bold, italic and underline, + foreground and background colour and the character set. You can also choose to hide text with a + given style, display all characters as upper or lower case and fill from the last character on + a line to the end of the line (for embedded languages). There is also an experimental attribute + to make text read-only.

+ +

It is entirely up to you how you use styles. If you want to use syntax colouring you might + use style 0 for white space, style 1 for numbers, style 2 for keywords, style 3 for strings, + style 4 for preprocessor, style 5 for operators, and so on.

+ SCI_STYLERESETDEFAULT
+ SCI_STYLECLEARALL
+ SCI_STYLESETFONT(int styleNumber, char + *fontName)
+ SCI_STYLEGETFONT(int styleNumber, char *fontName)
+ SCI_STYLESETSIZE(int styleNumber, int + sizeInPoints)
+ SCI_STYLEGETSIZE(int styleNumber)
+ SCI_STYLESETSIZEFRACTIONAL(int styleNumber, int + sizeInHundredthPoints)
+ SCI_STYLEGETSIZEFRACTIONAL(int styleNumber)
+ SCI_STYLESETBOLD(int styleNumber, bool + bold)
+ SCI_STYLEGETBOLD(int styleNumber)
+ SCI_STYLESETWEIGHT(int styleNumber, int + weight)
+ SCI_STYLEGETWEIGHT(int styleNumber)
+ SCI_STYLESETITALIC(int styleNumber, bool + italic)
+ SCI_STYLEGETITALIC(int styleNumber)
+ SCI_STYLESETUNDERLINE(int styleNumber, bool + underline)
+ SCI_STYLEGETUNDERLINE(int styleNumber)
+ SCI_STYLESETFORE(int styleNumber, int + colour)
+ SCI_STYLEGETFORE(int styleNumber)
+ SCI_STYLESETBACK(int styleNumber, int + colour)
+ SCI_STYLEGETBACK(int styleNumber)
+ SCI_STYLESETEOLFILLED(int styleNumber, bool + eolFilled)
+ SCI_STYLEGETEOLFILLED(int styleNumber)
+ SCI_STYLESETCHARACTERSET(int styleNumber, + int charSet)
+ SCI_STYLEGETCHARACTERSET(int styleNumber)
+ SCI_STYLESETCASE(int styleNumber, int + caseMode)
+ SCI_STYLEGETCASE(int styleNumber)
+ SCI_STYLESETVISIBLE(int styleNumber, bool + visible)
+ SCI_STYLEGETVISIBLE(int styleNumber)
+ SCI_STYLESETCHANGEABLE(int styleNumber, bool + changeable)
+ SCI_STYLEGETCHANGEABLE(int styleNumber)
+ SCI_STYLESETHOTSPOT(int styleNumber, bool + hotspot)
+ SCI_STYLEGETHOTSPOT(int styleNumber)
+
+ +

SCI_STYLERESETDEFAULT
+ This message resets STYLE_DEFAULT to its state when Scintilla was + initialised.

+ +

SCI_STYLECLEARALL
+ This message sets all styles to have the same attributes as STYLE_DEFAULT. If you + are setting up Scintilla for syntax colouring, it is likely that the lexical styles you set + will be very similar. One way to set the styles is to:
+ 1. Set STYLE_DEFAULT to the common features of all styles.
+ 2. Use SCI_STYLECLEARALL to copy this to all styles.
+ 3. Set the style attributes that make your lexical styles different.

+ +

SCI_STYLESETFONT(int styleNumber, const char *fontName)
+ SCI_STYLEGETFONT(int styleNumber, char *fontName)
+ SCI_STYLESETSIZE(int styleNumber, int sizeInPoints)
+ SCI_STYLEGETSIZE(int styleNumber)
+ SCI_STYLESETSIZEFRACTIONAL(int styleNumber, int sizeInHundredthPoints)
+ SCI_STYLEGETSIZEFRACTIONAL(int styleNumber)
+ SCI_STYLESETBOLD(int styleNumber, bool bold)
+ SCI_STYLEGETBOLD(int styleNumber)
+ SCI_STYLESETWEIGHT(int styleNumber, int weight)
+ SCI_STYLEGETWEIGHT(int styleNumber)
+ SCI_STYLESETITALIC(int styleNumber, bool italic)
+ SCI_STYLEGETITALIC(int styleNumber)
+ These messages (plus SCI_STYLESETCHARACTERSET) set the font + attributes that are used to match the fonts you request to those available. The + fontName is a zero terminated string holding the name of a font. Under Windows, + only the first 32 characters of the name are used and the name is not case sensitive. For + internal caching, Scintilla tracks fonts by name and does care about the casing of font names, + so please be consistent. On GTK+, Pango is used to display text.

+

Sizes can be set to a whole number of points with SCI_STYLESETSIZE + or to a fractional point size in hundredths of a point with SCI_STYLESETSIZEFRACTIONAL + by multiplying the size by 100 (SC_FONT_SIZE_MULTIPLIER). + For example, a text size of 9.4 points is set with SCI_STYLESETSIZEFRACTIONAL(<style>, 940). +

+

The weight or boldness of a font can be set with SCI_STYLESETBOLD + or SCI_STYLESETWEIGHT. The weight is a number between 1 and 999 with 1 being very light + and 999 very heavy. While any value can be used, fonts often only support between 2 and 4 weights with three weights + being common enough to have symbolic names: + SC_WEIGHT_NORMAL (400), + SC_WEIGHT_SEMIBOLD (600), and + SC_WEIGHT_BOLD (700). + The SCI_STYLESETBOLD message takes a boolean argument with 0 choosing SC_WEIGHT_NORMAL + and 1 SC_WEIGHT_BOLD. +

+ +

SCI_STYLESETUNDERLINE(int styleNumber, bool + underline)
+ SCI_STYLEGETUNDERLINE(int styleNumber)
+ You can set a style to be underlined. The underline is drawn in the foreground colour. All + characters with a style that includes the underline attribute are underlined, even if they are + white space.

+ +

SCI_STYLESETFORE(int styleNumber, int colour)
+ SCI_STYLEGETFORE(int styleNumber)
+ SCI_STYLESETBACK(int styleNumber, int colour)
+ SCI_STYLEGETBACK(int styleNumber)
+ Text is drawn in the foreground colour. The space in each character cell that is not occupied + by the character is drawn in the background colour.

+ +

SCI_STYLESETEOLFILLED(int styleNumber, bool + eolFilled)
+ SCI_STYLEGETEOLFILLED(int styleNumber)
+ If the last character in the line has a style with this attribute set, the remainder of the + line up to the right edge of the window is filled with the background colour set for the last + character. This is useful when a document contains embedded sections in another language such + as HTML pages with embedded JavaScript. By setting eolFilled to true + and a consistent background colour (different from the background colour set for the HTML + styles) to all JavaScript styles then JavaScript sections will be easily distinguished from + HTML.

+ +

SCI_STYLESETCHARACTERSET(int styleNumber, int + charSet)
+ SCI_STYLEGETCHARACTERSET(int styleNumber)
+ You can set a style to use a different character set than the default. The places where such + characters sets are likely to be useful are comments and literal strings. For example, + SCI_STYLESETCHARACTERSET(SCE_C_STRING, SC_CHARSET_RUSSIAN) would ensure that + strings in Russian would display correctly in C and C++ (SCE_C_STRING is the style + number used by the C and C++ lexer to display literal strings; it has the value 6). This + feature works differently on Windows and GTK+.

+ +

The character sets supported on Windows are:
+ SC_CHARSET_ANSI, SC_CHARSET_ARABIC, SC_CHARSET_BALTIC, + SC_CHARSET_CHINESEBIG5, SC_CHARSET_DEFAULT, + SC_CHARSET_EASTEUROPE, SC_CHARSET_GB2312, + SC_CHARSET_GREEK, SC_CHARSET_HANGUL, SC_CHARSET_HEBREW, + SC_CHARSET_JOHAB, SC_CHARSET_MAC, SC_CHARSET_OEM, + SC_CHARSET_RUSSIAN (code page 1251), + SC_CHARSET_SHIFTJIS, SC_CHARSET_SYMBOL, SC_CHARSET_THAI, + SC_CHARSET_TURKISH, and SC_CHARSET_VIETNAMESE.

+ +

The character sets supported on GTK+ are:
+ SC_CHARSET_ANSI, SC_CHARSET_CYRILLIC (code page 1251), + SC_CHARSET_EASTEUROPE, + SC_CHARSET_GB2312, SC_CHARSET_HANGUL, + SC_CHARSET_RUSSIAN (KOI8-R), SC_CHARSET_SHIFTJIS, and + SC_CHARSET_8859_15.

+ +

SCI_STYLESETCASE(int styleNumber, int caseMode)
+ SCI_STYLEGETCASE(int styleNumber)
+ The value of caseMode determines how text is displayed. You can set upper case + (SC_CASE_UPPER, 1) or lower case (SC_CASE_LOWER, 2) or display + normally (SC_CASE_MIXED, 0). This does not change the stored text, only how it is + displayed.

+ +

SCI_STYLESETVISIBLE(int styleNumber, bool visible)
+ SCI_STYLEGETVISIBLE(int styleNumber)
+ Text is normally visible. However, you can completely hide it by giving it a style with the + visible set to 0. This could be used to hide embedded formatting instructions or + hypertext keywords in HTML or XML.

+ +

SCI_STYLESETCHANGEABLE(int styleNumber, bool + changeable)
+ SCI_STYLEGETCHANGEABLE(int styleNumber)
+ This is an experimental and incompletely implemented style attribute. The default setting is + changeable set true but when set false it makes text + read-only. Currently it only stops the caret from being within not-changeable text and does not + yet stop deleting a range that contains not-changeable text.

+ +

SCI_STYLESETHOTSPOT(int styleNumber, bool + hotspot)
+ SCI_STYLEGETHOTSPOT(int styleNumber)
+ This style is used to mark ranges of text that can detect mouse clicks. + The cursor changes to a hand over hotspots, and the foreground, and background colours + may change and an underline appear to indicate that these areas are sensitive to clicking. + This may be used to allow hyperlinks to other documents.

+ +

Caret, selection, and hotspot styles

+ +

The selection is shown by changing the foreground and/or background colours. If one of these + is not set then that attribute is not changed for the selection. The default is to show the + selection by changing the background to light grey and leaving the foreground the same as when + it was not selected. When there is no selection, the current insertion point is marked by the + text caret. This is a vertical line that is normally blinking on and off to attract the users + attention.

+ SCI_SETSELFORE(bool useSelectionForeColour, int colour)
+ SCI_SETSELBACK(bool useSelectionBackColour, int colour)
+ SCI_SETSELALPHA(int alpha)
+ SCI_GETSELALPHA
+ SCI_SETSELEOLFILLED(bool filled)
+ SCI_GETSELEOLFILLED
+ SCI_SETCARETFORE(int colour)
+ SCI_GETCARETFORE
+ SCI_SETCARETLINEVISIBLE(bool show)
+ SCI_GETCARETLINEVISIBLE
+ SCI_SETCARETLINEBACK(int colour)
+ SCI_GETCARETLINEBACK
+ SCI_SETCARETLINEBACKALPHA(int alpha)
+ SCI_GETCARETLINEBACKALPHA
+ SCI_SETCARETLINEVISIBLEALWAYS(bool alwaysVisible)
+ SCI_GETCARETLINEVISIBLEALWAYS
+ SCI_SETCARETPERIOD(int milliseconds)
+ SCI_GETCARETPERIOD
+ SCI_SETCARETSTYLE(int style)
+ SCI_GETCARETSTYLE
+ SCI_SETCARETWIDTH(int pixels)
+ SCI_GETCARETWIDTH
+ SCI_SETHOTSPOTACTIVEFORE(bool useSetting, int colour)
+ SCI_GETHOTSPOTACTIVEFORE
+ SCI_SETHOTSPOTACTIVEBACK(bool useSetting, int colour)
+ SCI_GETHOTSPOTACTIVEBACK
+ SCI_SETHOTSPOTACTIVEUNDERLINE(bool underline)
+ SCI_GETHOTSPOTACTIVEUNDERLINE
+ SCI_SETHOTSPOTSINGLELINE(bool singleLine)
+ SCI_GETHOTSPOTSINGLELINE
+ SCI_SETCARETSTICKY(int useCaretStickyBehaviour)
+ SCI_GETCARETSTICKY
+ SCI_TOGGLECARETSTICKY
+
+ +

SCI_SETSELFORE(bool useSelectionForeColour, int colour)
+ SCI_SETSELBACK(bool useSelectionBackColour, int colour)
+ You can choose to override the default selection colouring with these two messages. The colour + you provide is used if you set useSelection*Colour to true. If it is + set to false, the default styled colouring is used and the colour + argument has no effect.

+

SCI_SETSELALPHA(int alpha)
+ SCI_GETSELALPHA
+ The selection can be drawn translucently in the selection background colour by + setting an alpha value.

+ +

SCI_SETSELEOLFILLED(bool filled)
+ SCI_GETSELEOLFILLED
+ The selection can be drawn up to the right hand border by setting this property.

+ +

SCI_SETCARETFORE(int colour)
+ SCI_GETCARETFORE
+ The colour of the caret can be set with SCI_SETCARETFORE and retrieved with + SCI_GETCARETFORE.

+ +

SCI_SETCARETLINEVISIBLE(bool show)
+ SCI_GETCARETLINEVISIBLE
+ SCI_SETCARETLINEBACK(int colour)
+ SCI_GETCARETLINEBACK
+ SCI_SETCARETLINEBACKALPHA(int alpha)
+ SCI_GETCARETLINEBACKALPHA
+ You can choose to make the background colour of the line containing the caret different with + these messages. To do this, set the desired background colour with + SCI_SETCARETLINEBACK, then use SCI_SETCARETLINEVISIBLE(true) to + enable the effect. You can cancel the effect with SCI_SETCARETLINEVISIBLE(false). + The two SCI_GETCARET* functions return the state and the colour. This form of + background colouring has highest priority when a line has markers that would otherwise change + the background colour. + The caret line may also be drawn translucently which allows other background colours to show + through. This is done by setting the alpha (translucency) value by calling + SCI_SETCARETLINEBACKALPHA. When the alpha is not SC_ALPHA_NOALPHA, + the caret line is drawn after all other features so will affect the colour of all other features. +

+ +

SCI_SETCARETLINEVISIBLEALWAYS(bool alwaysVisible)
+ SCI_GETCARETLINEVISIBLEALWAYS
+ Choose to make the caret line always visible even when the window is not in focus. + Default behaviour SCI_SETCARETLINEVISIBLEALWAYS(false) the caret line is only visible when the window is in focus. +

+ +

SCI_SETCARETPERIOD(int milliseconds)
+ SCI_GETCARETPERIOD
+ The rate at which the caret blinks can be set with SCI_SETCARETPERIOD which + determines the time in milliseconds that the caret is visible or invisible before changing + state. Setting the period to 0 stops the caret blinking. The default value is 500 milliseconds. + SCI_GETCARETPERIOD returns the current setting.

+ +

SCI_SETCARETSTYLE(int style)
+ SCI_GETCARETSTYLE
+ The style of the caret can be set with SCI_SETCARETSTYLE to be a line caret + (CARETSTYLE_LINE=1), a block caret (CARETSTYLE_BLOCK=2) or to not draw at all + (CARETSTYLE_INVISIBLE=0). The default value is the line caret (CARETSTYLE_LINE=1). + You can determine the current caret style setting using SCI_GETCARETSTYLE.

+ +

The block character draws most combining and multibyte character sequences successfully, + though some fonts like Thai Fonts (and possibly others) can sometimes appear strange when + the cursor is positioned at these characters, which may result in only drawing a part of the + cursor character sequence. This is most notable on Windows platforms.

+ +

SCI_SETCARETWIDTH(int pixels)
+ SCI_GETCARETWIDTH
+ The width of the line caret can be set with SCI_SETCARETWIDTH to a value of + 0, 1, 2 or 3 pixels. The default width is 1 pixel. You can read back the current width with + SCI_GETCARETWIDTH. A width of 0 makes the caret invisible (added at version + 1.50), similar to setting the caret style to CARETSTYLE_INVISIBLE (though not interchangeable). + This setting only affects the width of the cursor when the cursor style is set to line caret + mode, it does not affect the width for a block caret.

+ +

SCI_SETHOTSPOTACTIVEFORE(bool useHotSpotForeColour, int colour)
+ SCI_GETHOTSPOTACTIVEFORE
+ SCI_SETHOTSPOTACTIVEBACK(bool useHotSpotBackColour, int colour)
+ SCI_GETHOTSPOTACTIVEBACK
+ SCI_SETHOTSPOTACTIVEUNDERLINE(bool underline)
+ SCI_GETHOTSPOTACTIVEUNDERLINE
+ SCI_SETHOTSPOTSINGLELINE(bool singleLine)
+ SCI_GETHOTSPOTSINGLELINE
+ While the cursor hovers over text in a style with the hotspot attribute set, + the default colouring can be modified and an underline drawn with these settings. + Single line mode stops a hotspot from wrapping onto next line.

+ +

SCI_SETCARETSTICKY(int useCaretStickyBehaviour)
+ SCI_GETCARETSTICKY
+ SCI_TOGGLECARETSTICKY
+ These messages set, get or toggle the caretSticky setting which controls when the last position + of the caret on the line is saved.

+ +

When set to SC_CARETSTICKY_OFF (0), the sticky flag is off; all text changes + (and all caret position changes) will remember the + caret's new horizontal position when moving to different lines. This is the default.

+ +

When set to SC_CARETSTICKY_ON (1), the sticky flag is on, and the only thing which will cause the editor to remember the + horizontal caret position is moving the caret with mouse or keyboard (left/right arrow keys, home/end keys, etc).

+ +

When set to SC_CARETSTICKY_WHITESPACE (2), the caret acts like mode 0 (sticky off) except under one + special case; when space or tab characters are inserted. (Including pasting only space/tabs -- undo, redo, + etc. do not exhibit this behaviour..).

+ +

SCI_TOGGLECARETSTICKY switches from SC_CARETSTICKY_ON and SC_CARETSTICKY_WHITESPACE + to SC_CARETSTICKY_OFF and from SC_CARETSTICKY_OFF to SC_CARETSTICKY_ON.

+ +

Character representations

+ +

Some characters, such as control characters and invalid bytes, do not have a visual glyph or use a glyph that is hard to distinguish.

+ +

Control characters (characters with codes less than 32, or between 128 and 159 in some encodings) + are displayed by Scintilla using their mnemonics inverted in a rounded rectangle. These mnemonics come from the + early days of signalling, though some are still used (LF = Line Feed, BS = Back Space, CR = + Carriage Return, for example).

+ +

For the low 'C0' values: "NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL", + "BS", "HT", "LF", "VT", "FF", "CR", "SO", "SI", "DLE", "DC1", "DC2", "DC3", "DC4", "NAK", + "SYN", "ETB", "CAN", "EM", "SUB", "ESC", "FS", "GS", "RS", "US".

+ +

For the high 'C1' values: + "PAD", "HOP", "BPH", "NBH", "IND", "NEL", "SSA", "ESA", + "HTS", "HTJ", "VTS", "PLD", "PLU", "RI", "SS2", "SS3", + "DCS", "PU1", "PU2", "STS", "CCH", "MW", "SPA", "EPA", + "SOS", "SGCI", "SCI", "CSI", "ST", "OSC", "PM", "APC".

+ +

Invalid bytes are shown in a similar way with an 'x' followed by their value in hexadecimal, like "xFE".

+ + + SCI_SETREPRESENTATION(const char *encodedCharacter, const char *representation)
+ SCI_GETREPRESENTATION(const char *encodedCharacter, char *representation)
+ SCI_CLEARREPRESENTATION(const char *encodedCharacter)
+ SCI_SETCONTROLCHARSYMBOL(int symbol)
+ SCI_GETCONTROLCHARSYMBOL
+
+ +

SCI_SETREPRESENTATION(const char *encodedCharacter, const char *representation)
+ SCI_GETREPRESENTATION(const char *encodedCharacter, char *representation)
+ SCI_CLEARREPRESENTATION(const char *encodedCharacter)
+ +

Any character, including those normally displayed as mnemonics may be represented by a + string inverted in a rounded rectangle.

+ +

For example, the Ohm sign Ω U+2126 looks very similar to the Greek Omega character Ω U+03C9 so, + for the UTF-8 encoding, to distinguish the Ohm sign as "U+2126 Ω" this call could be made: + SCI_SETREPRESENTATION("\xe2\x84\xa6", "U+2126 \xe2\x84\xa6")

+ +

The encodedCharacter parameter is a NUL-terminated string of the bytes for one character in the + current encoding. This can not be used to set a representation for multiple-character strings.

+ +

The NUL (0) character is a special case since the encodedCharacter parameter is NUL terminated, the NUL + character is specified as an empty string.

+ +

SCI_SETCONTROLCHARSYMBOL(int symbol)
+ SCI_GETCONTROLCHARSYMBOL
+ +

The mnemonics may be replaced by a nominated symbol with an ASCII code in the + range 32 to 255. If you set a symbol value less than 32, all control characters are displayed + as mnemonics. The symbol you set is rendered in the font of the style set for the character. + You can read back the current symbol with the SCI_GETCONTROLCHARSYMBOL message. + The default symbol value is 0.

+ +

Margins

+ +

There may be up to five margins, numbered 0 to SC_MAX_MARGIN (4) + to the left of the text display, plus a gap either side of + the text. Each margin can be set to display only symbols, line numbers, or text with SCI_SETMARGINTYPEN. + Textual margins may also display symbols. + The markers + that can be displayed in each margin are set with SCI_SETMARGINMASKN. Any markers not associated with + a visible margin will be displayed as changes in background colour in the text. A width in + pixels can be set for each margin. Margins with a zero width are ignored completely. You can + choose if a mouse click in a margin sends a SCN_MARGINCLICK notification to the container or + selects a line of text.

+ +

The margins are numbered 0 to 4. Using a margin number outside the valid range has no + effect. By default, margin 0 is set to display line numbers, but is given a width of 0, so it + is hidden. Margin 1 is set to display non-folding symbols and is given a width of 16 pixels, so + it is visible. Margin 2 is set to display the folding symbols, but is given a width of 0, so it + is hidden. Of course, you can set the margins to be whatever you wish.

+ +

Styled text margins used to show revision and blame information:

+

Styled text margins used to show revision and blame information

+ + SCI_SETMARGINTYPEN(int margin, int + type)
+ SCI_GETMARGINTYPEN(int margin)
+ SCI_SETMARGINWIDTHN(int margin, int + pixelWidth)
+ SCI_GETMARGINWIDTHN(int margin)
+ SCI_SETMARGINMASKN(int margin, int + mask)
+ SCI_GETMARGINMASKN(int margin)
+ SCI_SETMARGINSENSITIVEN(int margin, bool + sensitive)
+ SCI_GETMARGINSENSITIVEN(int + margin)
+ SCI_SETMARGINCURSORN(int margin, int + cursor)
+ SCI_GETMARGINCURSORN(int + margin)
+ SCI_SETMARGINLEFT(<unused>, int + pixels)
+ SCI_GETMARGINLEFT
+ SCI_SETMARGINRIGHT(<unused>, int + pixels)
+ SCI_GETMARGINRIGHT
+ SCI_SETFOLDMARGINCOLOUR(bool useSetting, int colour)
+ SCI_SETFOLDMARGINHICOLOUR(bool useSetting, int colour)
+ SCI_MARGINSETTEXT(int line, char *text)
+ SCI_MARGINGETTEXT(int line, char *text)
+ SCI_MARGINSETSTYLE(int line, int style)
+ SCI_MARGINGETSTYLE(int line)
+ SCI_MARGINSETSTYLES(int line, char *styles)
+ SCI_MARGINGETSTYLES(int line, char *styles)
+ SCI_MARGINTEXTCLEARALL
+ SCI_MARGINSETSTYLEOFFSET(int style)
+ SCI_MARGINGETSTYLEOFFSET
+ SCI_SETMARGINOPTIONS(int marginOptions)
+ SCI_GETMARGINOPTIONS
+
+ +

SCI_SETMARGINTYPEN(int margin, int iType)
+ SCI_GETMARGINTYPEN(int margin)
+ These two routines set and get the type of a margin. The margin argument should be 0, 1, 2, 3 or 4. + You can use the predefined constants SC_MARGIN_SYMBOL (0) and + SC_MARGIN_NUMBER (1) to set a margin as either a line number or a symbol margin. + A margin with application defined text may use SC_MARGIN_TEXT (4) or + SC_MARGIN_RTEXT (5) to right justify the text. + By convention, margin 0 is used for line numbers and the next two are used for symbols. You can + also use the constants SC_MARGIN_BACK (2) and SC_MARGIN_FORE (3) for + symbol margins that set their background colour to match the STYLE_DEFAULT background and + foreground colours.

+ +

SCI_SETMARGINWIDTHN(int margin, int pixelWidth)
+ SCI_GETMARGINWIDTHN(int margin)
+ These routines set and get the width of a margin in pixels. A margin with zero width is + invisible. By default, Scintilla sets margin 1 for symbols with a width of 16 pixels, so this + is a reasonable guess if you are not sure what would be appropriate. Line number margins widths + should take into account the number of lines in the document and the line number style. You + could use something like SCI_TEXTWIDTH(STYLE_LINENUMBER, "_99999") to get a + suitable width.

+ +

SCI_SETMARGINMASKN(int margin, int mask)
+ SCI_GETMARGINMASKN(int margin)
+ The mask is a 32-bit value. Each bit corresponds to one of 32 logical symbols that can be + displayed in a margin that is enabled for symbols. There is a useful constant, + SC_MASK_FOLDERS (0xFE000000 or -33554432), that is a mask for the 7 logical + symbols used to denote folding. You can assign a wide range of symbols and colours to each of + the 32 logical symbols, see Markers for more information. If (mask + & SC_MASK_FOLDERS)==0, the margin background colour is controlled by style 33 (STYLE_LINENUMBER).

+ +

You add logical markers to a line with SCI_MARKERADD. If a line has an associated marker that + does not appear in the mask of any margin with a non-zero width, the marker changes the + background colour of the line. For example, suppose you decide to use logical marker 10 to mark + lines with a syntax error and you want to show such lines by changing the background colour. + The mask for this marker is 1 shifted left 10 times (1<<10) which is 0x400. If you make + sure that no symbol margin includes 0x400 in its mask, any line with the marker gets the + background colour changed.

+ +

To set a non-folding margin 1 use SCI_SETMARGINMASKN(1, ~SC_MASK_FOLDERS) + which is the default set by Scintilla. + To set a folding margin 2 use SCI_SETMARGINMASKN(2, SC_MASK_FOLDERS). + ~SC_MASK_FOLDERS is 0x1FFFFFF in hexadecimal or 33554431 + decimal. Of course, you may need to display all 32 symbols in a margin, in which case use + SCI_SETMARGINMASKN(margin, -1).

+ +

SCI_SETMARGINSENSITIVEN(int margin, bool + sensitive)
+ SCI_GETMARGINSENSITIVEN(int margin)
+ Each of the five margins can be set sensitive or insensitive to mouse clicks. A click in a + sensitive margin sends a SCN_MARGINCLICK notification to the container. Margins that are not sensitive act as + selection margins which make it easy to select ranges of lines. By default, all margins are + insensitive.

+ +

SCI_SETMARGINCURSORN(int margin, int + cursor)
+ SCI_GETMARGINCURSORN(int margin)
+ A reversed arrow cursor is normally shown over all margins. This may be changed to a normal arrow with + SCI_SETMARGINCURSORN(margin, SC_CURSORARROW) or restored to a + reversed arrow with + SCI_SETMARGINCURSORN(margin, SC_CURSORREVERSEARROW).

+ +

SCI_SETMARGINLEFT(<unused>, int pixels)
+ SCI_GETMARGINLEFT
+ SCI_SETMARGINRIGHT(<unused>, int pixels)
+ SCI_GETMARGINRIGHT
+ These messages set and get the width of the blank margin on both sides of the text in pixels. + The default is to one pixel on each side.

+ +

SCI_SETFOLDMARGINCOLOUR(bool useSetting, int colour)
+ SCI_SETFOLDMARGINHICOLOUR(bool useSetting, int colour)
+ These messages allow changing the colour of the fold margin and fold margin highlight. + On Windows the fold margin colour defaults to ::GetSysColor(COLOR_3DFACE) and the fold margin highlight + colour to ::GetSysColor(COLOR_3DHIGHLIGHT).

+ +

+ SCI_MARGINSETTEXT(int line, char *text)
+ SCI_MARGINGETTEXT(int line, char *text)
+ SCI_MARGINSETSTYLE(int line, int style)
+ SCI_MARGINGETSTYLE(int line)
+ SCI_MARGINSETSTYLES(int line, char *styles)
+ SCI_MARGINGETSTYLES(int line, char *styles)
+ SCI_MARGINTEXTCLEARALL
+ Text margins are created with the type SC_MARGIN_TEXT or SC_MARGIN_RTEXT. + A different string may be set for each line with SCI_MARGINSETTEXT. + The whole of the text margin on a line may be displayed in a particular style with + SCI_MARGINSETSTYLE or each character may be individually styled with + SCI_MARGINSETSTYLES which uses an array of bytes with each byte setting the style + of the corresponding text byte similar to SCI_SETSTYLINGEX. + Setting a text margin will cause a + SC_MOD_CHANGEMARGIN + notification to be sent. +

+

+ Only some style attributes are active in text margins: font, size/sizeFractional, bold/weight, italics, fore, back, and characterSet. +

+

+ SCI_MARGINSETSTYLEOFFSET(int style)
+ SCI_MARGINGETSTYLEOFFSET
+ Margin styles may be completely separated from standard text styles by setting a style offset. For example, + SCI_MARGINSETSTYLEOFFSET(256) would allow the margin styles to be numbered from + 256 up to 511 so they do not overlap styles set by lexers. Each style number set with SCI_MARGINSETSTYLE + or SCI_MARGINSETSTYLES has the offset added before looking up the style. +

+

+ Always call SCI_ALLOCATEEXTENDEDSTYLES + before SCI_MARGINSETSTYLEOFFSET and use the result as the argument to SCI_MARGINSETSTYLEOFFSET. +

+

+ SCI_SETMARGINOPTIONS(int marginOptions)
+ SCI_GETMARGINOPTIONS
+ Define margin options by enabling appropriate bit flags. At the moment, only one flag is available + SC_MARGINOPTION_SUBLINESELECT=1, which controls how wrapped lines are selected when clicking + on margin in front of them. If SC_MARGINOPTION_SUBLINESELECT is set only sub line of wrapped + line is selected, otherwise whole wrapped line is selected. Margin options are set to + SC_MARGINOPTION_NONE=0 by default. +

+ +

Annotations

+ +

Annotations are read-only lines of text underneath each line of editable text. + An annotation may consist of multiple lines separated by '\n'. + Annotations can be used to display an assembler version of code for debugging or to show diagnostic messages inline or to + line up different versions of text in a merge tool.

+

Annotations count as display lines for the methods + SCI_VISIBLEFROMDOCLINE and + SCI_DOCLINEFROMVISIBLE

+

Annotations used for inline diagnostics:

+

Annotations used for inline diagnostics

+ + + SCI_ANNOTATIONSETTEXT(int line, char *text)
+ SCI_ANNOTATIONGETTEXT(int line, char *text)
+ SCI_ANNOTATIONSETSTYLE(int line, int style)
+ SCI_ANNOTATIONGETSTYLE(int line)
+ SCI_ANNOTATIONSETSTYLES(int line, char *styles)
+ SCI_ANNOTATIONGETSTYLES(int line, char *styles)
+ SCI_ANNOTATIONGETLINES(int line)
+ SCI_ANNOTATIONCLEARALL
+ SCI_ANNOTATIONSETVISIBLE(int visible)
+ SCI_ANNOTATIONGETVISIBLE
+ SCI_ANNOTATIONSETSTYLEOFFSET(int style)
+ SCI_ANNOTATIONGETSTYLEOFFSET
+
+ +

+ SCI_ANNOTATIONSETTEXT(int line, char *text)
+ SCI_ANNOTATIONGETTEXT(int line, char *text)
+ SCI_ANNOTATIONSETSTYLE(int line, int style)
+ SCI_ANNOTATIONGETSTYLE(int line)
+ SCI_ANNOTATIONSETSTYLES(int line, char *styles)
+ SCI_ANNOTATIONGETSTYLES(int line, char *styles)
+ SCI_ANNOTATIONGETLINES(int line)
+ SCI_ANNOTATIONCLEARALL
+ A different string may be set for each line with SCI_ANNOTATIONSETTEXT. + To clear annotations call SCI_ANNOTATIONSETTEXT with a NULL pointer. + The whole of the text ANNOTATION on a line may be displayed in a particular style with + SCI_ANNOTATIONSETSTYLE or each character may be individually styled with + SCI_ANNOTATIONSETSTYLES which uses an array of bytes with each byte setting the style + of the corresponding text byte similar to SCI_SETSTYLINGEX. The text must be set first as it + specifies how long the annotation is so how many bytes of styling to read. + Setting an annotation will cause a + SC_MOD_CHANGEANNOTATION + notification to be sent. +

+

+ The number of lines annotating a line can be retrieved with SCI_ANNOTATIONGETLINES. + All the lines can be cleared of annotations with SCI_ANNOTATIONCLEARALL + which is equivalent to clearing each line (setting to 0) and then deleting other memory used for this feature. +

+

+ Only some style attributes are active in annotations: font, size/sizeFractional, bold/weight, italics, fore, back, and characterSet. +

+

+ SCI_ANNOTATIONSETVISIBLE(int visible)
+ SCI_ANNOTATIONGETVISIBLE
+ Annotations can be made visible in a view and there is a choice of display style when visible. + The two messages set and get the annotation display mode. The visible + argument can be one of:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ANNOTATION_HIDDEN0Annotations are not displayed.
ANNOTATION_STANDARD1Annotations are drawn left justified with no adornment.
ANNOTATION_BOXED2Annotations are indented to match the text and are surrounded by a box.
+ +

+ SCI_ANNOTATIONSETSTYLEOFFSET(int style)
+ SCI_ANNOTATIONGETSTYLEOFFSET
+ Annotation styles may be completely separated from standard text styles by setting a style offset. For example, + SCI_ANNOTATIONSETSTYLEOFFSET(512) would allow the annotation styles to be numbered from + 512 up to 767 so they do not overlap styles set by lexers (or margins if margins offset is 256). + Each style number set with SCI_ANNOTATIONSETSTYLE + or SCI_ANNOTATIONSETSTYLES has the offset added before looking up the style. +

+

+ Always call SCI_ALLOCATEEXTENDEDSTYLES + before SCI_ANNOTATIONSETSTYLEOFFSET and use the result as the argument to SCI_ANNOTATIONSETSTYLEOFFSET. +

+ +

Other settings

+ SCI_SETUSEPALETTE(bool + allowPaletteUse)
+ SCI_GETUSEPALETTE
+ SCI_SETBUFFEREDDRAW(bool isBuffered)
+ SCI_GETBUFFEREDDRAW
+ SCI_SETTWOPHASEDRAW(bool twoPhase)
+ SCI_GETTWOPHASEDRAW
+ SCI_SETTECHNOLOGY(int technology)
+ SCI_GETTECHNOLOGY
+ SCI_SETFONTQUALITY(int fontQuality)
+ SCI_GETFONTQUALITY
+ SCI_SETCODEPAGE(int codePage)
+ SCI_GETCODEPAGE
+ SCI_SETKEYSUNICODE(bool keysUnicode)
+ SCI_GETKEYSUNICODE
+ SCI_SETWORDCHARS(<unused>, const char *characters)
+ SCI_GETWORDCHARS(<unused>, char *characters)
+ SCI_SETWHITESPACECHARS(<unused>, const char *characters)
+ SCI_GETWHITESPACECHARS(<unused>, char *characters)
+ SCI_SETPUNCTUATIONCHARS(<unused>, const char *characters)
+ SCI_GETPUNCTUATIONCHARS(<unused>, char *characters)
+ SCI_SETCHARSDEFAULT
+ SCI_GRABFOCUS
+ SCI_SETFOCUS(bool focus)
+ SCI_GETFOCUS
+
+ +

To forward a message (WM_XXXX, WPARAM, LPARAM) to Scintilla, you can use + SendMessage(hScintilla, WM_XXXX, WPARAM, LPARAM) where hScintilla is + the handle to the Scintilla window you created as your editor.

+ +

While we are on the subject of forwarding messages in Windows, the top level window should + forward any WM_SETTINGCHANGE messages to Scintilla (this is currently used to + collect changes to mouse settings, but could be used for other user interface items in the + future).

+ +

SCI_SETBUFFEREDDRAW(bool isBuffered)
+ SCI_GETBUFFEREDDRAW
+ These messages turn buffered drawing on or off and report the buffered drawing state. Buffered + drawing draws each line into a bitmap rather than directly to the screen and then copies the + bitmap to the screen. This avoids flickering although it does take longer. The default is for + drawing to be buffered.

+ +

SCI_SETTWOPHASEDRAW(bool twoPhase)
+ SCI_GETTWOPHASEDRAW
+ Two phase drawing is a better but slower way of drawing text. + In single phase drawing each run of characters in one style is drawn along with its background. + If a character overhangs the end of a run, such as in "V_" where the + "V" is in a different style from the "_", then this can cause the right hand + side of the "V" to be overdrawn by the background of the "_" which + cuts it off. Two phase drawing + fixes this by drawing all the backgrounds first and then drawing the text in + transparent mode. Two phase drawing may flicker more than single phase + unless buffered drawing is on. The default is for drawing to be two phase.

+ +

SCI_SETTECHNOLOGY(int technology)
+ SCI_GETTECHNOLOGY
+ The technology property allows choosing between different drawing APIs and options. + On most platforms, the only choice is SC_TECHNOLOGY_DEFAULT (0). + On Windows Vista or later, SC_TECHNOLOGY_DIRECTWRITE (1) + can be chosen to use the Direct2D and DirectWrite APIs for higher quality antialiased drawing. + Since Direct2D buffers drawing, Scintilla's buffering can be turned off with + SCI_SETBUFFEREDDRAW(0).

+ +

SCI_SETFONTQUALITY(int fontQuality)
+ SCI_GETFONTQUALITY
+ Manage font quality (antialiasing method). Currently, the following values are available on Windows: + SC_EFF_QUALITY_DEFAULT (backward compatible), + SC_EFF_QUALITY_NON_ANTIALIASED, + SC_EFF_QUALITY_ANTIALIASED, + SC_EFF_QUALITY_LCD_OPTIMIZED.

+

In case it is necessary to squeeze more options into this property, only a limited number of bits defined + by SC_EFF_QUALITY_MASK (0xf) will be used for quality.

+ +

SCI_SETCODEPAGE(int codePage)
+ SCI_GETCODEPAGE
+ Scintilla has some support for Japanese, Chinese and Korean DBCS. Use this message with + codePage set to the code page number to set Scintilla to use code page information + to ensure double byte characters are treated as one character rather than two. This also stops + the caret from moving between the two bytes in a double byte character. + Do not use this message to choose between different single byte character sets: it doesn't do that. + Call with + codePage set to zero to disable DBCS support. The default is + SCI_SETCODEPAGE(0).

+ +

Code page SC_CP_UTF8 (65001) sets Scintilla into Unicode mode with the document + treated as a sequence of characters expressed in UTF-8. The text is converted to the platform's + normal Unicode encoding before being drawn by the OS and thus can display Hebrew, Arabic, + Cyrillic, and Han characters. Languages which can use two characters stacked vertically in one + horizontal space, such as Thai, will mostly work but there are some issues where the characters + are drawn separately leading to visual glitches. Bi-directional text is not supported.

+ +

Code page can be set to 932 (Japanese Shift-JIS), 936 (Simplified Chinese GBK), + 949 (Korean Unified Hangul Code), 950 (Traditional Chinese Big5), or 1361 (Korean Johab) + although these may require installation of language specific support.

+ +

SCI_SETKEYSUNICODE(bool keysUnicode)
+ SCI_GETKEYSUNICODE
+ On Windows, character keys are normally handled differently depending on whether Scintilla is a wide + or narrow character window with character messages treated as Unicode when wide and as 8 bit otherwise. + Set this property to always treat as Unicode. This option is needed for Delphi.

+ +

SCI_SETWORDCHARS(<unused>, const char *characters)
+ Scintilla has several functions that operate on words, which are defined to be contiguous + sequences of characters from a particular set of characters. This message defines which + characters are members of that set. The character sets are set to default values before processing this + function. + For example, if you don't allow '_' in your set of characters + use:
+ SCI_SETWORDCHARS(0, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");

+ +

SCI_GETWORDCHARS(<unused>, char *characters)
+ This fills the characters parameter with all the characters included in words. + The characters parameter must be large enough to hold all of the characters. + If the characters parameter is 0 then the length that should be allocated + to store the entire set is returned.

+ +

SCI_SETWHITESPACECHARS(<unused>, const char *characters)
+ SCI_GETWHITESPACECHARS(<unused>, char *characters)
+ Similar to SCI_SETWORDCHARS, this message allows the user to define which chars Scintilla considers + as whitespace. Setting the whitespace chars allows the user to fine-tune Scintilla's behaviour doing + such things as moving the cursor to the start or end of a word; for example, by defining punctuation chars + as whitespace, they will be skipped over when the user presses ctrl+left or ctrl+right. + This function should be called after SCI_SETWORDCHARS as it will + reset the whitespace characters to the default set. + SCI_GETWHITESPACECHARS behaves similarly to SCI_GETWORDCHARS.

+ +

SCI_SETPUNCTUATIONCHARS(<unused>, const char *characters)
+ SCI_GETPUNCTUATIONCHARS(<unused>, char *characters)
+ Similar to SCI_SETWORDCHARS and SCI_SETWHITESPACECHARS, this message + allows the user to define which chars Scintilla considers as punctuation. + SCI_GETPUNCTUATIONCHARS behaves similarly to SCI_GETWORDCHARS.

+ +

SCI_SETCHARSDEFAULT
+ Use the default sets of word and whitespace characters. This sets whitespace to space, tab and other + characters with codes less than 0x20, with word characters set to alphanumeric and '_'. +

+ + +

SCI_GRABFOCUS
+ SCI_SETFOCUS(bool focus)
+ SCI_GETFOCUS
+ Scintilla can be told to grab the focus with this message. This is needed more on GTK+ where + focus handling is more complicated than on Windows.

+ +

The internal focus flag can be set with SCI_SETFOCUS. This is used by clients + that have complex focus requirements such as having their own window that gets the real focus + but with the need to indicate that Scintilla has the logical focus.

+ +

Brace highlighting

+ SCI_BRACEHIGHLIGHT(int pos1, int + pos2)
+ SCI_BRACEBADLIGHT(int pos1)
+ SCI_BRACEHIGHLIGHTINDICATOR(bool useBraceHighlightIndicator, int indicatorNumber)
+ SCI_BRACEBADLIGHTINDICATOR(bool useBraceBadLightIndicator, int indicatorNumber)
+ SCI_BRACEMATCH(int position, int + maxReStyle)
+
+ +

SCI_BRACEHIGHLIGHT(int pos1, int pos2)
+ Up to two characters can be highlighted in a 'brace highlighting style', which is defined as + style number STYLE_BRACELIGHT (34). + If you have enabled indent guides, you may also wish to highlight the indent that corresponds + with the brace. You can locate the column with SCI_GETCOLUMN and highlight the indent with SCI_SETHIGHLIGHTGUIDE.

+ +

SCI_BRACEBADLIGHT(int pos1)
+ If there is no matching brace then the brace + badlighting style, style STYLE_BRACEBAD (35), can be used to show the brace + that is unmatched. Using a position of INVALID_POSITION (-1) removes the + highlight.

+ +

SCI_BRACEHIGHLIGHTINDICATOR(bool useBraceHighlightIndicator, int indicatorNumber)
+ Use specified indicator to highlight matching braces instead of changing their style.

+ +

SCI_BRACEBADLIGHTINDICATOR(bool useBraceBadLightIndicator, int indicatorNumber)
+ Use specified indicator to highlight non matching brace instead of changing its style.

+ +

SCI_BRACEMATCH(int pos, int maxReStyle)
+ The SCI_BRACEMATCH message finds a corresponding matching brace given + pos, the position of one brace. The brace characters handled are '(', ')', '[', + ']', '{', '}', '<', and '>'. The search is forwards from an opening brace and backwards + from a closing brace. If the character at position is not a brace character, or a matching + brace cannot be found, the return value is -1. Otherwise, the return value is the position of + the matching brace.

+ +

A match only occurs if the style of the matching brace is the same as the starting brace or + the matching brace is beyond the end of styling. Nested braces are handled correctly. The + maxReStyle parameter must currently be 0 - it may be used in the future to limit + the length of brace searches.

+ +

Tabs and Indentation Guides

+ +

Indentation (the white space at the start of a line) is often used by programmers to clarify + program structure and in some languages, for example Python, it may be part of the language + syntax. Tabs are normally used in editors to insert a tab character or to pad text with spaces + up to the next tab.

+ +

Scintilla can be set to treat tab and backspace in the white space at the start of a line in + a special way: inserting a tab indents the line to the next indent position rather than just + inserting a tab at the current character position and backspace unindents the line rather than + deleting a character. Scintilla can also display indentation guides (vertical lines) to help + you to generate code.

+ SCI_SETTABWIDTH(int widthInChars)
+ SCI_GETTABWIDTH
+ SCI_SETUSETABS(bool useTabs)
+ SCI_GETUSETABS
+ SCI_SETINDENT(int widthInChars)
+ SCI_GETINDENT
+ SCI_SETTABINDENTS(bool tabIndents)
+ SCI_GETTABINDENTS
+ SCI_SETBACKSPACEUNINDENTS(bool + bsUnIndents)
+ SCI_GETBACKSPACEUNINDENTS
+ SCI_SETLINEINDENTATION(int line, int + indentation)
+ SCI_GETLINEINDENTATION(int line)
+ SCI_GETLINEINDENTPOSITION(int + line)
+ SCI_SETINDENTATIONGUIDES(int indentView)
+ SCI_GETINDENTATIONGUIDES
+ SCI_SETHIGHLIGHTGUIDE(int column)
+ SCI_GETHIGHLIGHTGUIDE
+
+ +

SCI_SETTABWIDTH(int widthInChars)
+ SCI_GETTABWIDTH
+ SCI_SETTABWIDTH sets the size of a tab as a multiple of the size of a space + character in STYLE_DEFAULT. The default tab width is 8 characters. There are no + limits on tab sizes, but values less than 1 or large values may have undesirable effects.

+ +

SCI_SETUSETABS(bool useTabs)
+ SCI_GETUSETABS
+ SCI_SETUSETABS determines whether indentation should be created out of a mixture + of tabs and spaces or be based purely on spaces. Set useTabs to false + (0) to create all tabs and indents out of spaces. The default is true. You can use + SCI_GETCOLUMN to get the column of a + position taking the width of a tab into account.

+

SCI_SETINDENT(int widthInChars)
+ SCI_GETINDENT
+ SCI_SETINDENT sets the size of indentation in terms of the width of a space in STYLE_DEFAULT. If you set a width of + 0, the indent size is the same as the tab size. There are no limits on indent sizes, but values + less than 0 or large values may have undesirable effects. +

+ +

SCI_SETTABINDENTS(bool tabIndents)
+ SCI_GETTABINDENTS
+ SCI_SETBACKSPACEUNINDENTS(bool bsUnIndents)
+ SCI_GETBACKSPACEUNINDENTS
+

+ +

Inside indentation white space, the tab and backspace keys can be made to indent and + unindent rather than insert a tab character or delete a character with the + SCI_SETTABINDENTS and SCI_SETBACKSPACEUNINDENTS functions.

+ +

SCI_SETLINEINDENTATION(int line, int indentation)
+ SCI_GETLINEINDENTATION(int line)
+ The amount of indentation on a line can be discovered and set with + SCI_GETLINEINDENTATION and SCI_SETLINEINDENTATION. The indentation is + measured in character columns, which correspond to the width of space characters.

+ +

SCI_GETLINEINDENTPOSITION(int line)
+ This returns the position at the end of indentation of a line.

+ +

SCI_SETINDENTATIONGUIDES(int indentView)
+ SCI_GETINDENTATIONGUIDES
+ Indentation guides are dotted vertical lines that appear within indentation white space every + indent size columns. They make it easy to see which constructs line up especially when they + extend over multiple pages. Style STYLE_INDENTGUIDE (37) is used to specify the + foreground and background colour of the indentation guides.

+ +

There are 4 indentation guide views. + SC_IV_NONE turns the feature off but the other 3 states determine how far the guides appear on + empty lines.

+ + + + + + + + + + + + + + + + + + + + + + + +
SC_IV_NONENo indentation guides are shown.
SC_IV_REALIndentation guides are shown inside real indentation white space.
SC_IV_LOOKFORWARDIndentation guides are shown beyond the actual indentation up to the level of the + next non-empty line. + If the previous non-empty line was a fold header then indentation guides are shown for + one more level of indent than that line. This setting is good for Python.
SC_IV_LOOKBOTHIndentation guides are shown beyond the actual indentation up to the level of the + next non-empty line or previous non-empty line whichever is the greater. + This setting is good for most languages.
+ +

SCI_SETHIGHLIGHTGUIDE(int column)
+ SCI_GETHIGHLIGHTGUIDE
+ When brace highlighting occurs, the indentation guide corresponding to the braces may be + highlighted with the brace highlighting style, STYLE_BRACELIGHT (34). Set column to 0 to + cancel this highlight.

+ +

Markers

+ +

There are 32 markers, numbered 0 to MARKER_MAX (31), and you can assign any combination of them to each + line in the document. Markers appear in the selection + margin to the left of the text. If the selection margin is set to zero width, the + background colour of the whole line is changed instead. Marker numbers 25 to 31 are used by + Scintilla in folding margins, and have symbolic names of the form SC_MARKNUM_*, + for example SC_MARKNUM_FOLDEROPEN.

+ +

Marker numbers 0 to 24 have no pre-defined function; you can use them to mark syntax errors + or the current point of execution, break points, or whatever you need marking. If you do not + need folding, you can use all 32 for any purpose you wish.

+ +

Each marker number has a symbol associated with it. You can also set the foreground and + background colour for each marker number, so you can use the same symbol more than once with + different colouring for different uses. Scintilla has a set of symbols you can assign + (SC_MARK_*) or you can use characters. By default, all 32 markers are set to + SC_MARK_CIRCLE with a black foreground and a white background.

+ +

The markers are drawn in the order of their numbers, so higher numbered markers appear on + top of lower numbered ones. Markers try to move with their text by tracking where the start of + their line moves. When a line is deleted, its markers are combined, by an OR + operation, with the markers of the previous line.

+ SCI_MARKERDEFINE(int markerNumber, int + markerSymbols)
+ SCI_MARKERDEFINEPIXMAP(int markerNumber, + const char *xpm)
+ SCI_RGBAIMAGESETWIDTH(int width)
+ SCI_RGBAIMAGESETHEIGHT(int height)
+ SCI_RGBAIMAGESETSCALE(int scalePercent)
+ SCI_MARKERDEFINERGBAIMAGE(int markerNumber, + const char *pixels)
+ SCI_MARKERSYMBOLDEFINED(int markerNumber) +
+ SCI_MARKERSETFORE(int markerNumber, int + colour)
+ SCI_MARKERSETBACK(int markerNumber, int + colour)
+ SCI_MARKERSETBACKSELECTED(int markerNumber, int + colour)
+ SCI_MARKERENABLEHIGHLIGHT(int enabled)
+ SCI_MARKERSETALPHA(int markerNumber, int + alpha)
+ SCI_MARKERADD(int line, int markerNumber)
+ SCI_MARKERADDSET(int line, int markerMask)
+ SCI_MARKERDELETE(int line, int + markerNumber)
+ SCI_MARKERDELETEALL(int markerNumber)
+ SCI_MARKERGET(int line)
+ SCI_MARKERNEXT(int lineStart, int + markerMask)
+ SCI_MARKERPREVIOUS(int lineStart, int + markerMask)
+ SCI_MARKERLINEFROMHANDLE(int + handle)
+ SCI_MARKERDELETEHANDLE(int handle)
+
+ +

SCI_MARKERDEFINE(int markerNumber, int markerSymbols)
+ This message associates a marker number in the range 0 to 31 with one of the marker symbols or + an ASCII character. The general-purpose marker symbols currently available are:
+ SC_MARK_CIRCLE, SC_MARK_ROUNDRECT, SC_MARK_ARROW, + SC_MARK_SMALLRECT, SC_MARK_SHORTARROW, SC_MARK_EMPTY, + SC_MARK_ARROWDOWN, SC_MARK_MINUS, SC_MARK_PLUS, + SC_MARK_ARROWS, SC_MARK_DOTDOTDOT, + SC_MARK_BACKGROUND, SC_MARK_LEFTRECT, + SC_MARK_FULLRECT, and SC_MARK_UNDERLINE.

+ +

The SC_MARK_BACKGROUND marker changes the background colour of the line only. + The SC_MARK_FULLRECT symbol mirrors this, changing only the margin background colour. + SC_MARK_UNDERLINE draws an underline across the text. + The SC_MARK_EMPTY symbol is invisible, allowing client code to track the movement + of lines. You would also use it if you changed the folding style and wanted one or more of the + SC_FOLDERNUM_* markers to have no associated symbol.

+ +

Applications may use the marker symbol SC_MARK_AVAILABLE to indicate that + plugins may allocate that marker number. +

+ +

There are also marker symbols designed for use in the folding margin in a flattened tree + style.
+ SC_MARK_BOXMINUS, SC_MARK_BOXMINUSCONNECTED, + SC_MARK_BOXPLUS, SC_MARK_BOXPLUSCONNECTED, + SC_MARK_CIRCLEMINUS, SC_MARK_CIRCLEMINUSCONNECTED, + SC_MARK_CIRCLEPLUS, SC_MARK_CIRCLEPLUSCONNECTED, + SC_MARK_LCORNER, SC_MARK_LCORNERCURVE, SC_MARK_TCORNER, + SC_MARK_TCORNERCURVE, and SC_MARK_VLINE.

+ Characters can be used as markers by adding the ASCII value of the character to + SC_MARK_CHARACTER (10000). For example, to use 'A' (ASCII code 65) as marker + number 1 use:
+ SCI_MARKERDEFINE(1, SC_MARK_CHARACTER+65).
+ +

The marker numbers SC_MARKNUM_FOLDER and SC_MARKNUM_FOLDEROPEN are + used for showing that a fold is present and open or closed. Any symbols may be assigned for + this purpose although the (SC_MARK_PLUS, SC_MARK_MINUS) pair or the + (SC_MARK_ARROW, SC_MARK_ARROWDOWN) pair are good choices. As well as + these two, more assignments are needed for the flattened tree style: + SC_MARKNUM_FOLDEREND, SC_MARKNUM_FOLDERMIDTAIL, + SC_MARKNUM_FOLDEROPENMID, SC_MARKNUM_FOLDERSUB, and + SC_MARKNUM_FOLDERTAIL. The bits used for folding are specified by + SC_MASK_FOLDERS, which is commonly used as an argument to + SCI_SETMARGINMASKN when defining a margin to be used for folding.

+ +

This table shows which SC_MARK_* symbols should be assigned to which + SC_MARKNUM_* marker numbers to obtain four folding styles: Arrow (mimics + Macintosh), plus/minus shows folded lines as '+' and opened folds as '-', Circle tree, Box + tree.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SC_MARKNUM_*ArrowPlus/minusCircle treeBox tree
FOLDEROPENARROWDOWNMINUSCIRCLEMINUSBOXMINUS
FOLDERARROWPLUSCIRCLEPLUSBOXPLUS
FOLDERSUBEMPTYEMPTYVLINEVLINE
FOLDERTAILEMPTYEMPTYLCORNERCURVELCORNER
FOLDERENDEMPTYEMPTYCIRCLEPLUSCONNECTEDBOXPLUSCONNECTED
FOLDEROPENMIDEMPTYEMPTYCIRCLEMINUSCONNECTEDBOXMINUSCONNECTED
FOLDERMIDTAILEMPTYEMPTYTCORNERCURVETCORNER
+ +

SCI_MARKERDEFINEPIXMAP(int markerNumber, const char + *xpm)
+ Markers can be set to pixmaps with this message. The + XPM format is used for the pixmap. + Pixmaps use the SC_MARK_PIXMAP marker symbol.

+ +

+ SCI_RGBAIMAGESETWIDTH(int width)
+ SCI_RGBAIMAGESETHEIGHT(int height)
+ SCI_RGBAIMAGESETSCALE(int scalePercent)
+ SCI_MARKERDEFINERGBAIMAGE(int markerNumber, const char *pixels)
+ Markers can be set to translucent pixmaps with this message. The + RGBA format is used for the pixmap. + The width and height must previously been set with the SCI_RGBAIMAGESETWIDTH and + SCI_RGBAIMAGESETHEIGHT messages.

+

A scale factor in percent may be set with SCI_RGBAIMAGESETSCALE. This is useful on OS X with + a retina display where each display unit is 2 pixels: use a factor of 200 so that each image pixel is displayed using a screen pixel. + The default scale, 100, will stretch each image pixel to cover 4 screen pixels on a retina display.

+

Pixmaps use the SC_MARK_RGBAIMAGE marker symbol.

+ +

SCI_MARKERSYMBOLDEFINED(int markerNumber)
+ Returns the symbol defined for a markerNumber with SCI_MARKERDEFINE + or SC_MARK_PIXMAP if defined with SCI_MARKERDEFINEPIXMAP + or SC_MARK_RGBAIMAGE if defined with SCI_MARKERDEFINERGBAIMAGE.

+ +

SCI_MARKERSETFORE(int markerNumber, int colour)
+ SCI_MARKERSETBACK(int markerNumber, int colour)
+ These two messages set the foreground and background colour of a marker number.
+ SCI_MARKERSETBACKSELECTED(int markerNumber, int colour)
+ This message sets the highlight background colour of a marker number when its folding block is selected. The default colour is #FF0000.

+

SCI_MARKERENABLEHIGHLIGHT(bool enabled)
+ This message allows to enable/disable the highlight folding block when it is selected. (i.e. block that contains the caret)

+

SCI_MARKERSETALPHA(int markerNumber, int alpha)
+ When markers are drawn in the content area, either because there is no margin for them or + they are of SC_MARK_BACKGROUND or SC_MARK_UNDERLINE types, they may be drawn translucently by + setting an alpha value.

+ +

SCI_MARKERADD(int line, int markerNumber)
+ This message adds marker number markerNumber to a line. The message returns -1 if + this fails (illegal line number, out of memory) or it returns a marker handle number that + identifies the added marker. You can use this returned handle with SCI_MARKERLINEFROMHANDLE to find where a + marker is after moving or combining lines and with SCI_MARKERDELETEHANDLE to delete the marker + based on its handle. The message does not check the value of markerNumber, nor does it + check if the line already contains the marker.

+ +

SCI_MARKERADDSET(int line, int markerMask)
+ This message can add one or more markers to a line with a single call, specified in the same "one-bit-per-marker" 32-bit integer format returned by + SCI_MARKERGET + (and used by the mask-based marker search functions + SCI_MARKERNEXT and + SCI_MARKERPREVIOUS). + As with + SCI_MARKERADD, no check is made + to see if any of the markers are already present on the targeted line.

+ +

SCI_MARKERDELETE(int line, int markerNumber)
+ This searches the given line number for the given marker number and deletes it if it is + present. If you added the same marker more than once to the line, this will delete one copy + each time it is used. If you pass in a marker number of -1, all markers are deleted from the + line.

+ +

SCI_MARKERDELETEALL(int markerNumber)
+ This removes markers of the given number from all lines. If markerNumber is -1, it deletes all + markers from all lines.

+ +

SCI_MARKERGET(int line)
+ This returns a 32-bit integer that indicates which markers were present on the line. Bit 0 is + set if marker 0 is present, bit 1 for marker 1 and so on.

+ +

SCI_MARKERNEXT(int lineStart, int markerMask)
+ SCI_MARKERPREVIOUS(int lineStart, int markerMask)
+ These messages search efficiently for lines that include a given set of markers. The search + starts at line number lineStart and continues forwards to the end of the file + (SCI_MARKERNEXT) or backwards to the start of the file + (SCI_MARKERPREVIOUS). The markerMask argument should have one bit set + for each marker you wish to find. Set bit 0 to find marker 0, bit 1 for marker 1 and so on. The + message returns the line number of the first line that contains one of the markers in + markerMask or -1 if no marker is found.

+ +

SCI_MARKERLINEFROMHANDLE(int markerHandle)
+ The markerHandle argument is an identifier for a marker returned by SCI_MARKERADD. This function searches + the document for the marker with this handle and returns the line number that contains it or -1 + if it is not found.

+ +

SCI_MARKERDELETEHANDLE(int markerHandle)
+ The markerHandle argument is an identifier for a marker returned by SCI_MARKERADD. This function searches + the document for the marker with this handle and deletes the marker if it is found.

+ +

Indicators

+ +

Indicators are used to display additional information over the top of styling. + They can be used to show, for example, syntax errors, deprecated names and bad indentation + by drawing underlines under text or boxes around text. Originally, Scintilla stored indicator information in + the style bytes but this has proved limiting, so now up to 32 separately stored indicators may be used. + While style byte indicators currently still work, they will soon be removed so all the bits in each style + byte can be used for lexical states.

+ +

Indicators may be displayed as simple underlines, squiggly underlines, a + line of small 'T' shapes, a line of diagonal hatching, a strike-out or a rectangle around the text.

+ +

The SCI_INDIC* messages allow you to get and set the visual appearance of the + indicators. They all use an indicatorNumber argument in the range 0 to INDIC_MAX(31) + to set the indicator to style. To prevent interference the set of indicators is divided up into a range for use + by lexers (0..7) and a range for use by containers + (8=INDIC_CONTAINER .. 31=INDIC_MAX).

+ + SCI_INDICSETSTYLE(int indicatorNumber, int + indicatorStyle)
+ SCI_INDICGETSTYLE(int indicatorNumber)
+ SCI_INDICSETFORE(int indicatorNumber, int + colour)
+ SCI_INDICGETFORE(int indicatorNumber)
+ SCI_INDICSETALPHA(int indicatorNumber, int alpha)
+ SCI_INDICGETALPHA(int indicatorNumber)
+ SCI_INDICSETOUTLINEALPHA(int indicatorNumber, int alpha)
+ SCI_INDICGETOUTLINEALPHA(int indicatorNumber)
+ SCI_INDICSETUNDER(int indicatorNumber, bool under)
+ SCI_INDICGETUNDER(int indicatorNumber)
+ + SCI_SETINDICATORCURRENT(int indicator)
+ SCI_GETINDICATORCURRENT
+ SCI_SETINDICATORVALUE(int value)
+ SCI_GETINDICATORVALUE
+ SCI_INDICATORFILLRANGE(int position, int fillLength)
+ SCI_INDICATORCLEARRANGE(int position, int clearLength)
+ SCI_INDICATORALLONFOR(int position)
+ SCI_INDICATORVALUEAT(int indicator, int position)
+ SCI_INDICATORSTART(int indicator, int position)
+ SCI_INDICATOREND(int indicator, int position)
+ + SCI_FINDINDICATORSHOW(int start, int end)
+ SCI_FINDINDICATORFLASH(int start, int end)
+ SCI_FINDINDICATORHIDE
+
+ +

SCI_INDICSETSTYLE(int indicatorNumber, int + indicatorStyle)
+ SCI_INDICGETSTYLE(int indicatorNumber)
+ These two messages set and get the style for a particular indicator. The indicator styles + currently available are:
+ + Indicator samples

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueVisual effect
INDIC_PLAIN0Underlined with a single, straight line.
INDIC_SQUIGGLE1A squiggly underline. Requires 3 pixels of descender space.
INDIC_TT2A line of small T shapes.
INDIC_DIAGONAL3Diagonal hatching.
INDIC_STRIKE4Strike out.
INDIC_HIDDEN5An indicator with no visual effect.
INDIC_BOX6A rectangle around the text.
INDIC_ROUNDBOX7A rectangle with rounded corners around the text using translucent drawing with the + interior usually more transparent than the border. You can use + SCI_INDICSETALPHA and + SCI_INDICSETOUTLINEALPHA + to control the alpha transparency values. The default alpha values are 30 for fill colour and 50 for outline colour.
INDIC_STRAIGHTBOX8A rectangle around the text using translucent drawing with the + interior usually more transparent than the border. You can use + SCI_INDICSETALPHA and + SCI_INDICSETOUTLINEALPHA + to control the alpha transparency values. The default alpha values are 30 for fill colour and 50 for outline colour.
INDIC_DASH9A dashed underline.
INDIC_DOTS10A dotted underline.
INDIC_SQUIGGLELOW11Similar to INDIC_SQUIGGLE but only using 2 vertical pixels + so will fit under small fonts.
INDIC_DOTBOX12A dotted rectangle around the text using translucent drawing. + Translucency alternates between the alpha and outline alpha settings with the top-left pixel using the alpha setting. + SCI_INDICSETALPHA and + SCI_INDICSETOUTLINEALPHA + control the alpha transparency values. The default values are 30 for alpha and 50 for outline alpha. + To avoid excessive memory allocation the maximum width of a dotted box is 4000 pixels.
INDIC_SQUIGGLEPIXMAP13A version of INDIC_SQUIGGLE that draws using a pixmap instead of + as a series of line segments for performance. + Measured to be between 3 and 6 times faster than INDIC_SQUIGGLE on GTK+. + Appearance will not be as good as INDIC_SQUIGGLE on OS X in HiDPI mode.
INDIC_COMPOSITIONTHICK14A 2-pixel thick underline located at the bottom of the line to try to avoid touching the character base. + Each side is inset 1 pixel so that different indicators in this style covering a range appear isolated. + This is similar to an appearance used for Asian language input composition.
+ +

The default indicator styles are equivalent to:
+ SCI_INDICSETSTYLE(0, INDIC_SQUIGGLE);
+ SCI_INDICSETSTYLE(1, INDIC_TT);
+ SCI_INDICSETSTYLE(2, INDIC_PLAIN);

+ +

SCI_INDICSETFORE(int indicatorNumber, int colour)
+ SCI_INDICGETFORE(int indicatorNumber)
+ These two messages set and get the colour used to draw an indicator. The default indicator + colours are equivalent to:
+ SCI_INDICSETFORE(0, 0x007f00); (dark green)
+ SCI_INDICSETFORE(1, 0xff0000); (light blue)
+ SCI_INDICSETFORE(2, 0x0000ff); (light red)

+ +

SCI_INDICSETALPHA(int indicatorNumber, int alpha)
+ SCI_INDICGETALPHA(int indicatorNumber)
+ These two messages set and get the alpha transparency used for drawing the + fill colour of the INDIC_ROUNDBOX and INDIC_STRAIGHTBOX rectangle. The alpha value can range from + 0 (completely transparent) to 255 (no transparency). +

+ +

SCI_INDICSETOUTLINEALPHA(int indicatorNumber, int alpha)
+ SCI_INDICGETOUTLINEALPHA(int indicatorNumber)
+ These two messages set and get the alpha transparency used for drawing the + outline colour of the INDIC_ROUNDBOX and INDIC_STRAIGHTBOX rectangle. The alpha value can range from + 0 (completely transparent) to 255 (no transparency). +

+ +

SCI_INDICSETUNDER(int indicatorNumber, bool under)
+ SCI_INDICGETUNDER(int indicatorNumber)
+ These two messages set and get whether an indicator is drawn under text or over(default). + Drawing under text works only for modern indicators when two phase drawing + is enabled.

+ +

Modern Indicators

+ +

Modern indicators are stored in a format similar to run length encoding which is efficient in both + speed and storage for sparse information.

+

An indicator may store different values for each range but currently all values are drawn the same. + In the future, it may be possible to draw different values in different styles.

+

+ SCI_SETINDICATORCURRENT(int indicator)
+ SCI_GETINDICATORCURRENT
+ These two messages set and get the indicator that will be affected by calls to + SCI_INDICATORFILLRANGE(int position, int fillLength) and + SCI_INDICATORCLEARRANGE(int position, int clearLength). +

+ +

+ SCI_SETINDICATORVALUE(int value)
+ SCI_GETINDICATORVALUE
+ These two messages set and get the value that will be set by calls to + SCI_INDICATORFILLRANGE. +

+ +

+ SCI_INDICATORFILLRANGE(int position, int fillLength)
+ SCI_INDICATORCLEARRANGE(int position, int clearLength)
+ These two messages fill or clear a range for the current indicator. + SCI_INDICATORFILLRANGE fills with the + the current value. +

+ +

+ SCI_INDICATORALLONFOR(int position)
+ Retrieve a bitmap value representing which indicators are non-zero at a position. +

+ +

+ SCI_INDICATORVALUEAT(int indicator, int position)
+ Retrieve the value of a particular indicator at a position. +

+ +

+ SCI_INDICATORSTART(int indicator, int position)
+ SCI_INDICATOREND(int indicator, int position)
+ Find the start or end of a range with one value from a position within the range. + Can be used to iterate through the document to discover all the indicator positions. +

+ +

OS X Find Indicator

+ +

On OS X search matches are highlighted with an animated gold rounded rectangle. + The indicator shows, then briefly grows 25% and shrinks to the original size to draw the user's attention. + While this feature is currently only implemented on OS X, it may be implemented on other platforms + in the future.

+ +

SCI_FINDINDICATORSHOW(int start, int end)
+ SCI_FINDINDICATORFLASH(int start, int end)
+ These two messages show and animate the find indicator. The indicator remains visible with + SCI_FINDINDICATORSHOW and fades out after showing for half a second with + SCI_FINDINDICATORFLASH. + SCI_FINDINDICATORSHOW behaves similarly to the OS X TextEdit and Safari applications + and is best suited to editing documentation where the search target is often a word. + SCI_FINDINDICATORFLASH is similar to Xcode and is suited to editing source code + where the match will often be located next to operators which would otherwise be hidden under the indicator's + padding. +

+ +

SCI_FINDINDICATORHIDE
+ This message hides the find indicator. +

+ +

Style Byte Indicators (deprecated)

+

By default, Scintilla organizes the style byte associated with each text byte as 5 bits of + style information (for 32 styles) and 3 bits of indicator information for 3 independent + indicators so that, for example, syntax errors, deprecated names and bad indentation could all + be displayed at once.

+ +

The indicators are set using SCI_STARTSTYLING with a INDICS_MASK mask + and SCI_SETSTYLING with the values + INDIC0_MASK, INDIC1_MASK and INDIC2_MASK.

+ +

If you are using indicators in a buffer that has a lexer active + (see SCI_SETLEXER), + you must save lexing state information before setting any indicators and restore it afterwards. + Use SCI_GETENDSTYLED + to retrieve the current "styled to" position and + SCI_STARTSTYLING + to reset the styling position and mask (0x1f in the default layout of 5 style bits and 3 indicator bits) + when you are done.

+ +

The number of bits used for styles can be altered with SCI_SETSTYLEBITS from 0 to 8 bits. The remaining bits + can be used for indicators, so there can be from 1 to 8 indicators. However, the + INDIC*_MASK constants defined in Scintilla.h all assume 5 bits of + styling information and 3 indicators. If you use a different arrangement, you must define your + own constants.

+ + +

Autocompletion

+ +

Autocompletion displays a list box showing likely identifiers based upon the user's typing. + The user chooses the currently selected item by pressing the tab character or another character + that is a member of the fillup character set defined with SCI_AUTOCSETFILLUPS. + Autocompletion is triggered by your application. For example, in C if you detect that the user + has just typed fred. you could look up fred, and if it has a known + list of members, you could offer them in an autocompletion list. Alternatively, you could + monitor the user's typing and offer a list of likely items once their typing has narrowed down + the choice to a reasonable list. As yet another alternative, you could define a key code to + activate the list.

+ +

When the user makes a selection from the list the container is sent a SCN_AUTOCSELECTION notification message. On return from the notification Scintilla will insert + the selected text unless the autocompletion list has been cancelled, for example by the container sending + SCI_AUTOCCANCEL.

+ +

To make use of autocompletion you must monitor each character added to the document. See + SciTEBase::CharAdded() in SciTEBase.cxx for an example of autocompletion.

+ SCI_AUTOCSHOW(int lenEntered, const char + *list)
+ SCI_AUTOCCANCEL
+ SCI_AUTOCACTIVE
+ SCI_AUTOCPOSSTART
+ SCI_AUTOCCOMPLETE
+ SCI_AUTOCSTOPS(<unused>, const char + *chars)
+ SCI_AUTOCSETSEPARATOR(char + separator)
+ SCI_AUTOCGETSEPARATOR
+ SCI_AUTOCSELECT(<unused>, const char + *select)
+ SCI_AUTOCGETCURRENT
+ SCI_AUTOCGETCURRENTTEXT(<unused>, + char *text)
+ SCI_AUTOCSETCANCELATSTART(bool + cancel)
+ SCI_AUTOCGETCANCELATSTART
+ SCI_AUTOCSETFILLUPS(<unused>, const char + *chars)
+ SCI_AUTOCSETCHOOSESINGLE(bool + chooseSingle)
+ SCI_AUTOCGETCHOOSESINGLE
+ SCI_AUTOCSETIGNORECASE(bool + ignoreCase)
+ SCI_AUTOCGETIGNORECASE
+ SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR(int behaviour)
+ SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR
+ SCI_AUTOCSETORDER(int order)
+ SCI_AUTOCGETORDER
+ SCI_AUTOCSETAUTOHIDE(bool autoHide)
+ SCI_AUTOCGETAUTOHIDE
+ SCI_AUTOCSETDROPRESTOFWORD(bool + dropRestOfWord)
+ SCI_AUTOCGETDROPRESTOFWORD
+ SCI_REGISTERIMAGE(int type, const char *xpmData)
+ SCI_REGISTERRGBAIMAGE(int type, const char *pixels)
+ SCI_CLEARREGISTEREDIMAGES
+ SCI_AUTOCSETTYPESEPARATOR(char separatorCharacter)
+ SCI_AUTOCGETTYPESEPARATOR
+ SCI_AUTOCSETMAXHEIGHT(int rowCount)
+ SCI_AUTOCGETMAXHEIGHT
+ SCI_AUTOCSETMAXWIDTH(int characterCount)
+ SCI_AUTOCGETMAXWIDTH
+
+ +

SCI_AUTOCSHOW(int lenEntered, const char *list)
+ This message causes a list to be displayed. lenEntered is the number of + characters of the word already entered and list is the list of words separated by + separator characters. The initial separator character is a space but this can be set or got + with SCI_AUTOCSETSEPARATOR + and SCI_AUTOCGETSEPARATOR.

+ +

With default settings, the list of words should be in sorted order. + If set to ignore case mode with SCI_AUTOCSETIGNORECASE, then + strings are matched after being converted to upper case. One result of this is that the list + should be sorted with the punctuation characters '[', '\', ']', '^', '_', and '`' sorted after + letters. + Alternative handling of list order may be specified with SCI_AUTOCSETORDER +

+ +

SCI_AUTOCCANCEL
+ This message cancels any displayed autocompletion list. When in autocompletion mode, the list + should disappear when the user types a character that can not be part of the autocompletion, + such as '.', '(' or '[' when typing an identifier. A set of characters that will cancel + autocompletion can be specified with SCI_AUTOCSTOPS.

+ +

SCI_AUTOCACTIVE
+ This message returns non-zero if there is an active autocompletion list and zero if there is + not.

+ +

SCI_AUTOCPOSSTART
+ This returns the value of the current position when SCI_AUTOCSHOW started display + of the list.

+ +

SCI_AUTOCCOMPLETE
+ This message triggers autocompletion. This has the same effect as the tab key.

+ +

SCI_AUTOCSTOPS(<unused>, const char *chars)
+ The chars argument is a string containing a list of characters that will + automatically cancel the autocompletion list. When you start the editor, this list is + empty.

+ +

SCI_AUTOCSETSEPARATOR(char separator)
+ SCI_AUTOCGETSEPARATOR
+ These two messages set and get the separator character used to separate words in the + SCI_AUTOCSHOW list. The default is the space character.

+ +

SCI_AUTOCSELECT(<unused>, const char *select)
+ SCI_AUTOCGETCURRENT
+ This message selects an item in the autocompletion list. It searches the list of words for the + first that matches select. By default, comparisons are case sensitive, but you can + change this with SCI_AUTOCSETIGNORECASE. The match is character + by character for the length of the select string. That is, if select is "Fred" it + will match "Frederick" if this is the first item in the list that begins with "Fred". If an + item is found, it is selected. If the item is not found, the autocompletion list closes if + auto-hide is true (see SCI_AUTOCSETAUTOHIDE).
+ The current selection index can be retrieved with SCI_AUTOCGETCURRENT.

+ +

SCI_AUTOCGETCURRENTTEXT(<unused>, char *text)
+ This message retrieves the current selected text in the autocompletion list. Normally the + SCN_AUTOCSELECTION notification + is used instead.

+ +

The value is copied to the text buffer, returning the length (not including the + terminating 0). If not found, an empty string is copied to the buffer and 0 is returned.

+ +

If the value argument is 0 then the length that should be allocated to store the value is + returned; again, the terminating 0 is not included.

+ +

SCI_AUTOCSETCANCELATSTART(bool cancel)
+ SCI_AUTOCGETCANCELATSTART
+ The default behaviour is for the list to be cancelled if the caret moves to the location it + was at when the list was displayed. By calling this message with a false argument, + the list is not cancelled until the caret moves at least one character before the word being + completed.

+ +

SCI_AUTOCSETFILLUPS(<unused>, const char *chars)
+ If a fillup character is typed with an autocompletion list active, the currently selected item + in the list is added into the document, then the fillup character is added. Common fillup + characters are '(', '[' and '.' but others are possible depending on the language. By default, + no fillup characters are set.

+ +

SCI_AUTOCSETCHOOSESINGLE(bool chooseSingle)
+ SCI_AUTOCGETCHOOSESINGLE
+ If you use SCI_AUTOCSETCHOOSESINGLE(1) and a list has only one item, it is + automatically added and no list is displayed. The default is to display the list even if there + is only a single item.

+ +

SCI_AUTOCSETIGNORECASE(bool ignoreCase)
+ SCI_AUTOCGETIGNORECASE
+ By default, matching of characters to list members is case sensitive. These messages let you + set and get case sensitivity.

+ +

SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR(int behaviour)
+ SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR
+ When autocompletion is set to ignore case (SCI_AUTOCSETIGNORECASE), by default it will + nonetheless select the first list member that matches in a case sensitive way to entered characters. + This corresponds to a behaviour property of SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE (0). + If you want autocompletion to ignore case at all, choose SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE (1).

+ +

SCI_AUTOCSETORDER(int order)
+ SCI_AUTOCGETORDER
+ The default setting SC_ORDER_PRESORTED (0) requires that the list be provided in alphabetical sorted order. +

+

Sorting the list can be done by Scintilla instead of the application with SC_ORDER_PERFORMSORT (1). + This will take additional time. +

+

Applications that wish to prioritize some values and show the list in order of priority instead + of alphabetical order can use SC_ORDER_CUSTOM (2). + This requires extra processing in SCI_AUTOCSHOW to create a sorted index. +

+

Setting the order should be done before calling SCI_AUTOCSHOW. +

+ +

SCI_AUTOCSETAUTOHIDE(bool autoHide)
+ SCI_AUTOCGETAUTOHIDE
+ By default, the list is cancelled if there are no viable matches (the user has typed + characters that no longer match a list entry). If you want to keep displaying the original + list, set autoHide to false. This also effects SCI_AUTOCSELECT.

+ +

SCI_AUTOCSETDROPRESTOFWORD(bool dropRestOfWord)
+ SCI_AUTOCGETDROPRESTOFWORD
+ When an item is selected, any word characters following the caret are first erased if + dropRestOfWord is set true. The default is false.

+ +

+ SCI_REGISTERIMAGE(int type, const char *xpmData)
+ SCI_REGISTERRGBAIMAGE(int type, const char *pixels)
+ SCI_CLEARREGISTEREDIMAGES
+ SCI_AUTOCSETTYPESEPARATOR(char separatorCharacter)
+ SCI_AUTOCGETTYPESEPARATOR
+ + Autocompletion list items may display an image as well as text. Each image is first registered with an integer + type. Then this integer is included in the text of the list separated by a '?' from the text. For example, + "fclose?2 fopen" displays image 2 before the string "fclose" and no image before "fopen". + The images are in either the XPM format (SCI_REGISTERIMAGE) or + RGBA format (SCI_REGISTERRGBAIMAGE). + For SCI_REGISTERRGBAIMAGE the width and height must previously been set with + the SCI_RGBAIMAGESETWIDTH and + SCI_RGBAIMAGESETHEIGHT messages. + The set of registered images can be cleared with SCI_CLEARREGISTEREDIMAGES and the '?' separator changed + with SCI_AUTOCSETTYPESEPARATOR. +

+ +

+ SCI_AUTOCSETMAXHEIGHT(int rowCount)
+ SCI_AUTOCGETMAXHEIGHT
+ + Get or set the maximum number of rows that will be visible in an autocompletion list. If there are more rows in the list, then a vertical + scrollbar is shown. The default is 5. +

+ +

+ SCI_AUTOCSETMAXWIDTH(int characterCount)
+ SCI_AUTOCGETMAXWIDTH
+ + Get or set the maximum width of an autocompletion list expressed as the number of characters in the longest item that will be totally visible. + If zero (the default) then the list's width is calculated to fit the item with the most characters. Any items that cannot be fully displayed within + the available width are indicated by the presence of ellipsis. +

+ +

User lists

+ +

User lists use the same internal mechanisms as autocompletion lists, and all the calls + listed for autocompletion work on them; you cannot display a user list at the same time as an + autocompletion list is active. They differ in the following respects:

+ +

o The SCI_AUTOCSETCHOOSESINGLE message has no + effect.
+ o When the user makes a selection you are sent a SCN_USERLISTSELECTION notification message rather than SCN_AUTOCSELECTION.

+ +

BEWARE: if you have set fillup characters or stop characters, these will still be active + with the user list, and may result in items being selected or the user list cancelled due to + the user typing into the editor.

+ +

SCI_USERLISTSHOW(int listType, const char *list)
+ The listType parameter is returned to the container as the wParam + field of the SCNotification + structure. It must be greater than 0 as this is how Scintilla tells the difference between an + autocompletion list and a user list. If you have different types of list, for example a list of + buffers and a list of macros, you can use listType to tell which one has returned + a selection.

+ +

Call tips

+ +

Call tips are small windows displaying the arguments to a function and are displayed after + the user has typed the name of the function. They normally display characters using the font + facename, size and character set defined by + STYLE_DEFAULT. You can choose to + use STYLE_CALLTIP to define the + facename, size, foreground and background colours and character set with + SCI_CALLTIPUSESTYLE. + This also enables support for Tab characters. + + There is some interaction between call tips and autocompletion lists in that showing a + call tip cancels any active autocompletion list, and vice versa.

+ +

Call tips can highlight part of the text within them. You could use this to highlight the + current argument to a function by counting the number of commas (or whatever separator your + language uses). See SciTEBase::CharAdded() in SciTEBase.cxx for an + example of call tip use.

+ +

The mouse may be clicked on call tips and this causes a + SCN_CALLTIPCLICK + notification to be sent to the container. Small up and down arrows may be displayed within + a call tip by, respectively, including the characters '\001', or '\002'. This is useful + for showing that there are overloaded variants of one function name and that the user can + click on the arrows to cycle through the overloads.

+ +

Alternatively, call tips can be displayed when you leave the mouse pointer for a while over + a word in response to the SCN_DWELLSTART notification and cancelled in response to SCN_DWELLEND. This method could be used in a debugger to give + the value of a variable, or during editing to give information about the word under the + pointer.

+ SCI_CALLTIPSHOW(int posStart, const char + *definition)
+ SCI_CALLTIPCANCEL
+ SCI_CALLTIPACTIVE
+ SCI_CALLTIPPOSSTART
+ SCI_CALLTIPSETHLT(int highlightStart, int + highlightEnd)
+ SCI_CALLTIPSETBACK(int colour)
+ SCI_CALLTIPSETFORE(int colour)
+ SCI_CALLTIPSETFOREHLT(int colour)
+ SCI_CALLTIPUSESTYLE(int tabsize)
+ SCI_CALLTIPSETPOSITION(bool above)
+
+ +

SCI_CALLTIPSHOW(int posStart, const char *definition)
+ This message starts the process by displaying the call tip window. If a call tip is already + active, this has no effect.
+ posStart is the position in the document at which to align the call tip. The call + tip text is aligned to start 1 line below this character unless you have included up and/or + down arrows in the call tip text in which case the tip is aligned to the right-hand edge of + the rightmost arrow. The assumption is that you will start the text with something like + "\001 1 of 3 \002".
+ definition is the call tip text. This can contain multiple lines separated by + '\n' (Line Feed, ASCII code 10) characters. Do not include '\r' (Carriage Return, ASCII + code 13), as this will most likely print as an empty box. '\t' (Tab, ASCII code 9) is + supported if you set a tabsize with + SCI_CALLTIPUSESTYLE.

+ +

SCI_CALLTIPCANCEL
+ This message cancels any displayed call tip. Scintilla will also cancel call tips for you if + you use any keyboard commands that are not compatible with editing the argument list of a + function.

+ +

SCI_CALLTIPACTIVE
+ This returns 1 if a call tip is active and 0 if it is not active.

+ +

SCI_CALLTIPPOSSTART
+ This message returns the value of the current position when SCI_CALLTIPSHOW + started to display the tip.

+ +

SCI_CALLTIPSETHLT(int hlStart, int hlEnd)
+ This sets the region of the call tips text to display in a highlighted style. + hlStart is the zero-based index into the string of the first character to + highlight and hlEnd is the index of the first character after the highlight. + hlEnd must be greater than hlStart; hlEnd-hlStart is the + number of characters to highlight. Highlights can extend over line ends if this is + required.

+ +

Unhighlighted text is drawn in a mid grey. Selected text is drawn in a dark blue. The + background is white. These can be changed with + SCI_CALLTIPSETBACK, + SCI_CALLTIPSETFORE, and + SCI_CALLTIPSETFOREHLT. +

+ +

SCI_CALLTIPSETBACK(int colour)
+ The background colour of call tips can be set with this message; the default colour is white. + It is not a good idea to set a dark colour as the background as the default colour for normal + calltip text is mid grey and the default colour for highlighted text is dark blue. This also + sets the background colour of STYLE_CALLTIP.

+ +

SCI_CALLTIPSETFORE(int colour)
+ The colour of call tip text can be set with this message; the default colour is mid grey. + This also sets the foreground colour of STYLE_CALLTIP.

+ +

SCI_CALLTIPSETFOREHLT(int colour)
+ The colour of highlighted call tip text can be set with this message; the default colour + is dark blue.

+ +

SCI_CALLTIPUSESTYLE(int tabsize)
+ This message changes the style used for call tips from STYLE_DEFAULT to + STYLE_CALLTIP and sets a tab size in screen pixels. If tabsize is + less than 1, Tab characters are not treated specially. Once this call has been used, the + call tip foreground and background colours are also taken from the style.

+ +

SCI_CALLTIPSETPOSITION(bool above)
+ By default the calltip is displayed below the text, setting above to true + (1) will display it above the text.

+ + +

Keyboard commands

+ +

To allow the container application to perform any of the actions available to the user with + keyboard, all the keyboard actions are messages. They do not take any parameters. These + commands are also used when redefining the key bindings with the SCI_ASSIGNCMDKEY message.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SCI_LINEDOWNSCI_LINEDOWNEXTENDSCI_LINEDOWNRECTEXTENDSCI_LINESCROLLDOWN
SCI_LINEUPSCI_LINEUPEXTENDSCI_LINEUPRECTEXTENDSCI_LINESCROLLUP
SCI_PARADOWNSCI_PARADOWNEXTENDSCI_PARAUPSCI_PARAUPEXTEND
SCI_CHARLEFTSCI_CHARLEFTEXTENDSCI_CHARLEFTRECTEXTEND
SCI_CHARRIGHTSCI_CHARRIGHTEXTENDSCI_CHARRIGHTRECTEXTEND
SCI_WORDLEFTSCI_WORDLEFTEXTENDSCI_WORDRIGHTSCI_WORDRIGHTEXTEND
SCI_WORDLEFTENDSCI_WORDLEFTENDEXTENDSCI_WORDRIGHTENDSCI_WORDRIGHTENDEXTEND
SCI_WORDPARTLEFTSCI_WORDPARTLEFTEXTENDSCI_WORDPARTRIGHTSCI_WORDPARTRIGHTEXTEND
SCI_HOMESCI_HOMEEXTENDSCI_HOMERECTEXTEND
SCI_HOMEDISPLAYSCI_HOMEDISPLAYEXTENDSCI_HOMEWRAPSCI_HOMEWRAPEXTEND
SCI_VCHOMESCI_VCHOMEEXTENDSCI_VCHOMERECTEXTEND
SCI_VCHOMEWRAPSCI_VCHOMEWRAPEXTENDSCI_VCHOMEDISPLAYSCI_VCHOMEDISPLAYEXTEND
SCI_LINEENDSCI_LINEENDEXTENDSCI_LINEENDRECTEXTEND
SCI_LINEENDDISPLAYSCI_LINEENDDISPLAYEXTENDSCI_LINEENDWRAPSCI_LINEENDWRAPEXTEND
SCI_DOCUMENTSTARTSCI_DOCUMENTSTARTEXTENDSCI_DOCUMENTENDSCI_DOCUMENTENDEXTEND
SCI_PAGEUPSCI_PAGEUPEXTENDSCI_PAGEUPRECTEXTEND
SCI_PAGEDOWNSCI_PAGEDOWNEXTENDSCI_PAGEDOWNRECTEXTEND
SCI_STUTTEREDPAGEUPSCI_STUTTEREDPAGEUPEXTEND
SCI_STUTTEREDPAGEDOWNSCI_STUTTEREDPAGEDOWNEXTEND
SCI_DELETEBACKSCI_DELETEBACKNOTLINE
SCI_DELWORDLEFTSCI_DELWORDRIGHTSCI_DELWORDRIGHTEND
SCI_DELLINELEFTSCI_DELLINERIGHTSCI_LINEDELETE
SCI_LINECUTSCI_LINECOPYSCI_LINETRANSPOSESCI_LINEDUPLICATE
SCI_LOWERCASESCI_UPPERCASESCI_CANCELSCI_EDITTOGGLEOVERTYPE
SCI_NEWLINESCI_FORMFEEDSCI_TABSCI_BACKTAB
SCI_SELECTIONDUPLICATESCI_VERTICALCENTRECARET
SCI_MOVESELECTEDLINESUPSCI_MOVESELECTEDLINESDOWN
SCI_SCROLLTOSTARTSCI_SCROLLTOEND
+ +

The SCI_*EXTEND messages extend the selection.

+ +

The SCI_*RECTEXTEND messages extend the rectangular selection + (and convert regular selection to rectangular one, if any).

+ +

The SCI_WORDPART* commands are used to move between word segments marked by + capitalisation (aCamelCaseIdentifier) or underscores (an_under_bar_ident).

+ +

The SCI_HOME* commands move the caret to the start of the line, while the + SCI_VCHOME* commands move the caret to the first non-blank character of the line + (ie. just after the indentation) unless it is already there; in this case, it acts as SCI_HOME*.

+ +

The SCI_[HOME|LINEEND]DISPLAY* commands are used when in line wrap mode to + allow movement to the start or end of display lines as opposed to the normal + SCI_[HOME|LINEEND] commands which move to the start or end of document lines.

+ +

The SCI_[[VC]HOME|LINEEND]WRAP* commands are like their namesakes + SCI_[[VC]HOME|LINEEND]* except they behave differently when word-wrap is enabled: + They go first to the start / end of the display line, like SCI_[HOME|LINEEND]DISPLAY*, + but if the cursor is already at the point, it goes on to the start or end of the document line, + as appropriate for SCI_[[VC]HOME|LINEEND]*. +

+ +

The SCI_SCROLLTO[START|END] commands scroll the document to the start + or end without changing the selection. These commands match OS X platform conventions for the behaviour of the + home and end keys. Scintilla can be made to match OS X applications + by binding the home and end keys to these commands. +

+ +

Key bindings

+ +

There is a default binding of keys to commands that is defined in the Scintilla source in + the file KeyMap.cxx by the constant KeyMap::MapDefault[]. This table + maps key definitions to SCI_* messages with no parameters (mostly the keyboard commands discussed above, but any Scintilla + command that has no arguments can be mapped). You can change the mapping to suit your own + requirements.

+ SCI_ASSIGNCMDKEY(int keyDefinition, int + sciCommand)
+ SCI_CLEARCMDKEY(int keyDefinition)
+ SCI_CLEARALLCMDKEYS
+ SCI_NULL
+
+ +

keyDefinition
+ A key definition contains the key code in the low 16-bits and the key modifiers in the high + 16-bits. To combine keyCode and keyMod set:
+
+ keyDefinition = keyCode + (keyMod << 16)

+ +

The key code is a visible or control character or a key from the SCK_* + enumeration, which contains:
+ SCK_ADD, SCK_BACK, SCK_DELETE, SCK_DIVIDE, + SCK_DOWN, SCK_END, SCK_ESCAPE, SCK_HOME, + SCK_INSERT, SCK_LEFT, SCK_MENU, SCK_NEXT (Page Down), + SCK_PRIOR (Page Up), SCK_RETURN, SCK_RIGHT, + SCK_RWIN, + SCK_SUBTRACT, SCK_TAB, SCK_UP, and + SCK_WIN.

+ +

The modifiers are a combination of zero or more of SCMOD_ALT, + SCMOD_CTRL, SCMOD_SHIFT, and SCMOD_META. + On OS X, the Command key is mapped to SCMOD_CTRL and the Control key to + SCMOD_META. + If you are building a table, you might + want to use SCMOD_NORM, which has the value 0, to mean no modifiers.

+ +

SCI_ASSIGNCMDKEY(int keyDefinition, int sciCommand)
+ This assigns the given key definition to a Scintilla command identified by + sciCommand. sciCommand can be any SCI_* command that has + no arguments.

+ +

SCI_CLEARCMDKEY(int keyDefinition)
+ This makes the given key definition do nothing by assigning the action SCI_NULL + to it.

+ +

SCI_CLEARALLCMDKEYS
+ This command removes all keyboard command mapping by setting an empty mapping table.

+ +

SCI_NULL
+ The SCI_NULL does nothing and is the value assigned to keys that perform no + action. SCI_NULL ensures that keys do not propagate to the parent window as that may + cause focus to move. If you want the standard platform behaviour use the constant 0 instead.

+ +

Popup edit menu

+ +

SCI_USEPOPUP(bool bEnablePopup)
+ Clicking the wrong button on the mouse pops up a short default editing menu. This may be + turned off with SCI_USEPOPUP(0). If you turn it off, context menu commands (in + Windows, WM_CONTEXTMENU) will not be handled by Scintilla, so the parent of the + Scintilla window will have the opportunity to handle the message.

+ +

Macro recording

+ +

Start and stop macro recording mode. In macro recording mode, actions are reported to the + container through SCN_MACRORECORD + notifications. It is then up to the container to + record these actions for future replay.

+ +

SCI_STARTRECORD
+ SCI_STOPRECORD
+ These two messages turn macro recording on and off.

+ +

Printing

+ +

SCI_FORMATRANGE can be used to draw the text onto a display surface + which can include a printer display surface. Printed output shows text styling as on the + screen, but it hides all margins except a line number margin. All special marker effects are + removed and the selection and caret are hidden.

+ +

Different platforms use different display surface ID types to print on. On Windows, these are + HDCs., on GTK+ 3.x cairo_t *, + and on Cocoa CGContextRef is used.

+ + SCI_FORMATRANGE(bool bDraw, Sci_RangeToFormat + *pfr)
+ SCI_SETPRINTMAGNIFICATION(int + magnification)
+ SCI_GETPRINTMAGNIFICATION
+ SCI_SETPRINTCOLOURMODE(int mode)
+ SCI_GETPRINTCOLOURMODE
+ SCI_SETPRINTWRAPMODE
+ SCI_GETPRINTWRAPMODE
+
+ +

SCI_FORMATRANGE(bool bDraw, Sci_RangeToFormat *pfr)
+ This call renders a range of text into a device context. If you use + this for printing, you will probably want to arrange a page header and footer; Scintilla does + not do this for you. See SciTEWin::Print() in SciTEWinDlg.cxx for an + example. Each use of this message renders a range of text into a rectangular area and returns + the position in the document of the next character to print.

+ +

bDraw controls if any output is done. Set this to false if you are paginating + (for example, if you use this with MFC you will need to paginate in + OnBeginPrinting() before you output each page.

+
+struct Sci_Rectangle { int left; int top; int right; int bottom; };
+
+struct Sci_RangeToFormat {
+    Sci_SurfaceID hdc;        // The Surface ID we print to
+    Sci_SurfaceID hdcTarget;  // The Surface ID we use for measuring (may be same as hdc)
+    Sci_Rectangle rc;         // Rectangle in which to print
+    Sci_Rectangle rcPage;     // Physically printable page size
+    Sci_CharacterRange chrg;  // Range of characters to print
+};
+
+ +

On Windows, hdc and hdcTarget should both be set to the device context handle + of the output device (usually a printer). If you print to a metafile these will not be the same + as Windows metafiles (unlike extended metafiles) do not implement the full API for returning + information. In this case, set hdcTarget to the screen DC.
+ rcPage is the rectangle {0, 0, maxX, maxY} where maxX+1 + and maxY+1 are the number of physically printable pixels in x and y.
+ rc is the rectangle to render the text in (which will, of course, fit within the + rectangle defined by rcPage).
+ chrg.cpMin and chrg.cpMax define the start position and maximum + position of characters to output. All of each line within this character range is drawn.

+ +

On Cocoa, the surface IDs for printing (bDraw=1) should be the graphics port of the current context + ((CGContextRef) [[NSGraphicsContext currentContext] graphicsPort]) when the view's drawRect method is called. + The Surface IDs are not really used for measurement (bDraw=0) but can be set + to a bitmap context (created with CGBitmapContextCreate) to avoid runtime warnings.

+ +

On GTK+, the surface IDs to use can be found from the printing context with + gtk_print_context_get_cairo_context(context).

+ + chrg.cpMin and chrg.cpMax define the start position and maximum + position of characters to output. All of each line within this character range is drawn.

+ +

When printing, the most tedious part is always working out what the margins should be to + allow for the non-printable area of the paper and printing a header and footer. If you look at + the printing code in SciTE, you will find that most of it is taken up with this. The loop that + causes Scintilla to render text is quite simple if you strip out all the margin, non-printable + area, header and footer code.

+ +

SCI_SETPRINTMAGNIFICATION(int magnification)
+ SCI_GETPRINTMAGNIFICATION
+ SCI_GETPRINTMAGNIFICATION lets you to print at a different size than the screen + font. magnification is the number of points to add to the size of each screen + font. A value of -3 or -4 gives reasonably small print. You can get this value with + SCI_GETPRINTMAGNIFICATION.

+ +

SCI_SETPRINTCOLOURMODE(int mode)
+ SCI_GETPRINTCOLOURMODE
+ These two messages set and get the method used to render coloured text on a printer that is + probably using white paper. It is especially important to consider the treatment of colour if + you use a dark or black screen background. Printing white on black uses up toner and ink very + many times faster than the other way around. You can set the mode to one of:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValuePurpose
SC_PRINT_NORMAL0Print using the current screen colours. This is the default.
SC_PRINT_INVERTLIGHT1If you use a dark screen background this saves ink by inverting the light value of + all colours and printing on a white background.
SC_PRINT_BLACKONWHITE2Print all text as black on a white background.
SC_PRINT_COLOURONWHITE3Everything prints in its own colour on a white background.
SC_PRINT_COLOURONWHITEDEFAULTBG4Everything prints in its own colour on a white background except that line numbers + use their own background colour.
+ +

SCI_SETPRINTWRAPMODE(int wrapMode)
+ SCI_GETPRINTWRAPMODE
+ These two functions get and set the printer wrap mode. wrapMode can be + set to SC_WRAP_NONE (0), SC_WRAP_WORD (1) or + SC_WRAP_CHAR (2). The default is + SC_WRAP_WORD, which wraps printed output so that all characters fit + into the print rectangle. If you set SC_WRAP_NONE, each line of text + generates one line of output and the line is truncated if it is too long to fit + into the print area.
+ SC_WRAP_WORD tries to wrap only between words as indicated by + white space or style changes although if a word is longer than a line, it will be wrapped before + the line end. SC_WRAP_CHAR is preferred to + SC_WRAP_WORD for Asian languages where there is no white space + between words.

+ +

Direct access

+ SCI_GETDIRECTFUNCTION
+ SCI_GETDIRECTPOINTER
+ SCI_GETCHARACTERPOINTER
+ SCI_GETRANGEPOINTER(int position, int rangeLength)
+ SCI_GETGAPPOSITION
+
+ +

On Windows, the message-passing scheme used to communicate between the container and + Scintilla is mediated by the operating system SendMessage function and can lead to + bad performance when calling intensively. To avoid this overhead, Scintilla provides messages + that allow you to call the Scintilla message function directly. The code to do this in C/C++ is + of the form:

+
+#include "Scintilla.h"
+SciFnDirect pSciMsg = (SciFnDirect)SendMessage(hSciWnd, SCI_GETDIRECTFUNCTION, 0, 0);
+sptr_t pSciWndData = (sptr_t)SendMessage(hSciWnd, SCI_GETDIRECTPOINTER, 0, 0);
+
+// now a wrapper to call Scintilla directly
+sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){
+    return pSciMsg(pSciWndData, iMessage, wParam, lParam);
+}
+
+ +

SciFnDirect, sptr_t and uptr_t are declared in + Scintilla.h. hSciWnd is the window handle returned when you created + the Scintilla window.

+ +

While faster, this direct calling will cause problems if performed from a different thread + to the native thread of the Scintilla window in which case SendMessage(hSciWnd, SCI_*, + wParam, lParam) should be used to synchronize with the window's thread.

+ +

This feature also works on GTK+ but has no significant impact on speed.

+ +

From version 1.47 on Windows, Scintilla exports a function called + Scintilla_DirectFunction that can be used the same as the function returned by + SCI_GETDIRECTFUNCTION. This saves you the call to + SCI_GETDIRECTFUNCTION and the need to call Scintilla indirectly via the function + pointer.

+ +

SCI_GETDIRECTFUNCTION
+ This message returns the address of the function to call to handle Scintilla messages without + the overhead of passing through the Windows messaging system. You need only call this once, + regardless of the number of Scintilla windows you create.

+ +

SCI_GETDIRECTPOINTER
+ This returns a pointer to data that identifies which Scintilla window is in use. You must call + this once for each Scintilla window you create. When you call the direct function, you must + pass in the direct pointer associated with the target window.

+ +

SCI_GETCHARACTERPOINTER
+ SCI_GETRANGEPOINTER(int position, int rangeLength)
+ SCI_GETGAPPOSITION
+ Grant temporary direct read-only access to the memory used by Scintilla to store + the document.

+

SCI_GETCHARACTERPOINTER moves the gap within Scintilla so that the + text of the document is stored consecutively + and ensure there is a NUL character after the text, then returns a pointer to the first character. + Applications may then pass this to a function that accepts a character pointer such as a regular + expression search or a parser. The pointer should not be written to as that may desynchronize + the internal state of Scintilla.

+

Since any action in Scintilla may change its internal state + this pointer becomes invalid after any call or by allowing user interface activity. The application + should reacquire the pointer after making any call to Scintilla or performing any user-interface calls such + as modifying a progress indicator.

+

This call takes similar time to inserting a character at the end of the document and this may + include moving the document contents. Specifically, all the characters after the document gap + are moved to before the gap. This compacted state should persist over calls and user interface + actions that do not change the document contents so reacquiring the pointer afterwards is very + quick. If this call is used to implement a global replace operation, then each replacement will + move the gap so if SCI_GETCHARACTERPOINTER is called after + each replacement then the operation will become O(n^2) rather than O(n). Instead, all + matches should be found and remembered, then all the replacements performed.

+ +

SCI_GETRANGEPOINTER provides direct access to just the + range requested. The gap is not moved unless it is within the requested range so this call + can be faster than SCI_GETCHARACTERPOINTER. + This can be used by application code that is able to act on blocks of text or ranges of lines.

+ +

SCI_GETGAPPOSITION returns the current gap position. + This is a hint that applications can use to avoid calling SCI_GETRANGEPOINTER + with a range that contains the gap and consequent costs of moving the gap.

+ +

Multiple views

+ +

A Scintilla window and the document that it displays are separate entities. When you create + a new window, you also create a new, empty document. Each document has a reference count that + is initially set to 1. The document also has a list of the Scintilla windows that are linked to + it so when any window changes the document, all other windows in which it appears are notified + to cause them to update. The system is arranged in this way so that you can work with many + documents in a single Scintilla window and so you can display a single document in multiple + windows (for use with splitter windows).

+ +

Although these messages use document *pDoc, to ensure compatibility with future + releases of Scintilla you should treat pDoc as an opaque void*. That + is, you can use and store the pointer as described in this section but you should not + dereference it.

+ SCI_GETDOCPOINTER
+ SCI_SETDOCPOINTER(<unused>, document + *pDoc)
+ SCI_CREATEDOCUMENT
+ SCI_ADDREFDOCUMENT(<unused>, document + *pDoc)
+ SCI_RELEASEDOCUMENT(<unused>, document + *pDoc)
+
+ +

SCI_GETDOCPOINTER
+ This returns a pointer to the document currently in use by the window. It has no other + effect.

+ +

SCI_SETDOCPOINTER(<unused>, document *pDoc)
+ This message does the following:
+ 1. It removes the current window from the list held by the current document.
+ 2. It reduces the reference count of the current document by 1.
+ 3. If the reference count reaches 0, the document is deleted.
+ 4. pDoc is set as the new document for the window.
+ 5. If pDoc was 0, a new, empty document is created and attached to the + window.
+ 6. If pDoc was not 0, its reference count is increased by 1.

+ +

SCI_CREATEDOCUMENT
+ This message creates a new, empty document and returns a pointer to it. This document is not + selected into the editor and starts with a reference count of 1. This means that you have + ownership of it and must either reduce its reference count by 1 after using + SCI_SETDOCPOINTER so that the Scintilla window owns it or you must make sure that + you reduce the reference count by 1 with SCI_RELEASEDOCUMENT before you close the + application to avoid memory leaks.

+ +

SCI_ADDREFDOCUMENT(<unused>, document *pDoc)
+ This increases the reference count of a document by 1. If you want to replace the current + document in the Scintilla window and take ownership of the current document, for example if you + are editing many documents in one window, do the following:
+ 1. Use SCI_GETDOCPOINTER to get a pointer to the document, + pDoc.
+ 2. Use SCI_ADDREFDOCUMENT(0, pDoc) to increment the reference count.
+ 3. Use SCI_SETDOCPOINTER(0, pNewDoc) to set a different document or + SCI_SETDOCPOINTER(0, 0) to set a new, empty document.

+ +

SCI_RELEASEDOCUMENT(<unused>, document *pDoc)
+ This message reduces the reference count of the document identified by pDoc. pDoc + must be the result of SCI_GETDOCPOINTER or SCI_CREATEDOCUMENT and + must point at a document that still exists. If you call this on a document with a reference + count of 1 that is still attached to a Scintilla window, bad things will happen. To keep the + world spinning in its orbit you must balance each call to SCI_CREATEDOCUMENT or + SCI_ADDREFDOCUMENT with a call to SCI_RELEASEDOCUMENT.

+ +

Background loading and saving

+ +

To ensure a responsive user interface, applications may decide to load and save documents using a separate thread + from the user interface.

+ +

Loading in the background

+ +

An application can load all of a file into a buffer it allocates on a background thread and then add the data in that buffer + into a Scintilla document on the user interface thread. That technique uses extra memory to store a complete copy of the + file and also means that the time that Scintilla takes to perform initial line end discovery blocks the user interface.

+ +

To avoid these issues, a loader object may be created and used to load the file. The loader object supports the ILoader interface.

+ +

SCI_CREATELOADER(int bytes)
+ Create an object that supports the ILoader interface which can be used to load data and then + be turned into a Scintilla document object for attachment to a view object. + The bytes argument determines the initial memory allocation for the document as it is more efficient + to allocate once rather than rely on the buffer growing as data is added. + If SCI_CREATELOADER fails then 0 is returned.

+ +

ILoader

+ +
+class ILoader {
+public:
+        virtual int SCI_METHOD Release() = 0;
+        // Returns a status code from SC_STATUS_*
+        virtual int SCI_METHOD AddData(char *data, int length) = 0;
+        virtual void * SCI_METHOD ConvertToDocument() = 0;
+};
+
+ +

The application should call the AddData method with each block of data read from the file. + AddData will return SC_STATUS_OK unless a failure, such as memory exhaustion occurs. + If a failure occurs in AddData or in a file reading call then loading can be abandoned and the loader released with + the Release call. + When the whole file has been read, the ConvertToDocument method should be called to produce a Scintilla + document pointer which can be used in the same way as a document pointer returned from + SCI_CREATEDOCUMENT. + There is no need to call Release after ConvertToDocument.

+ +

Saving in the background

+ +

An application that wants to save in the background should lock the document with SCI_SETREADONLY(1) + to prevent modifications and retrieve a pointer to the unified document contents with + SCI_GETCHARACTERPOINTER. + The buffer of a locked document will not move so the pointer is valid until the application calls SCI_SETREADONLY(0).

+ +

If the user tries to performs a modification while the document is locked then a SCN_MODIFYATTEMPTRO notification is sent to the application. + The application may then decide to ignore the modification or to terminate the background saving thread and reenable + modification before returning from the notification.

+ +

Folding

+ +

The fundamental operation in folding is making lines invisible or visible. Line visibility + is a property of the view rather than the document so each view may be displaying a different + set of lines. From the point of view of the user, lines are hidden and displayed using fold + points. Generally, the fold points of a document are based on the hierarchical structure of the + document contents. In Python, the hierarchy is determined by indentation and in C++ by brace + characters. This hierarchy can be represented within a Scintilla document object by attaching a + numeric "fold level" to each line. The fold level is most easily set by a lexer, but you can + also set it with messages.

+ +

It is up to your code to set the connection between user actions and folding and unfolding. + The best way to see how this is done is to search the SciTE source code for the messages used + in this section of the documentation and see how they are used. You will also need to use + markers and a folding margin to complete your folding implementation. + The "fold" property should be set to "1" with + SCI_SETPROPERTY("fold", "1") to enable folding.

+ SCI_VISIBLEFROMDOCLINE(int + docLine)
+ SCI_DOCLINEFROMVISIBLE(int + displayLine)
+ SCI_SHOWLINES(int lineStart, int lineEnd)
+ SCI_HIDELINES(int lineStart, int lineEnd)
+ SCI_GETLINEVISIBLE(int line)
+ SCI_GETALLLINESVISIBLE
+ SCI_SETFOLDLEVEL(int line, int level)
+ SCI_GETFOLDLEVEL(int line)
+ SCI_SETAUTOMATICFOLD(int automaticFold)
+ SCI_GETAUTOMATICFOLD
+ SCI_SETFOLDFLAGS(int flags)
+ SCI_GETLASTCHILD(int line, int level)
+ SCI_GETFOLDPARENT(int line)
+ SCI_SETFOLDEXPANDED(int line, bool + expanded)
+ SCI_GETFOLDEXPANDED(int line)
+ SCI_CONTRACTEDFOLDNEXT(int lineStart)
+ SCI_TOGGLEFOLD(int line)
+ SCI_FOLDLINE(int line, int action)
+ SCI_FOLDCHILDREN(int line, int action)
+ SCI_FOLDALL(int action)
+ SCI_EXPANDCHILDREN(int line, int level)
+ SCI_ENSUREVISIBLE(int line)
+ SCI_ENSUREVISIBLEENFORCEPOLICY(int + line)
+
+ +

SCI_VISIBLEFROMDOCLINE(int docLine)
+ When some lines are hidden and/or annotations are displayed, then a particular line in the + document may be displayed at a + different position to its document position. If no lines are hidden and there are no annotations, + this message returns + docLine. Otherwise, this returns the display line (counting the very first visible + line as 0). The display line of an invisible line is the same as the previous visible line. The + display line number of the first line in the document is 0. If lines are hidden and + docLine is outside the range of lines in the document, the return value is -1. + Lines can occupy more than one display line if they wrap.

+ +

SCI_DOCLINEFROMVISIBLE(int displayLine)
+ When some lines are hidden and/or annotations are displayed, then a particular line in the + document may be displayed at a + different position to its document position. This message returns the document line number that + corresponds to a display line (counting the display line of the first line in the document as + 0). If displayLine is less than or equal to 0, the result is 0. If + displayLine is greater than or equal to the number of displayed lines, the result + is the number of lines in the document.

+ +

SCI_SHOWLINES(int lineStart, int lineEnd)
+ SCI_HIDELINES(int lineStart, int lineEnd)
+ SCI_GETLINEVISIBLE(int line)
+ SCI_GETALLLINESVISIBLE
+ The first two messages mark a range of lines as visible or invisible and then redraw the + display. + SCI_GETLINEVISIBLE reports on the visible state of a line and returns 1 if it is + visible and 0 if it is not visible. + SCI_GETALLLINESVISIBLE returns 1 if all lines are visible and 0 + if some lines are hidden. + These messages have no effect on fold levels or fold + flags. The first line can not be hidden.

+ +

SCI_SETFOLDLEVEL(int line, int level)
+ SCI_GETFOLDLEVEL(int line)
+ These two messages set and get a 32-bit value that contains the fold level of a line and some + flags associated with folding. The fold level is a number in the range 0 to + SC_FOLDLEVELNUMBERMASK (4095). However, the initial fold level is set to + SC_FOLDLEVELBASE (1024) to allow unsigned arithmetic on folding levels. There are + two addition flag bits. SC_FOLDLEVELWHITEFLAG indicates that the line is blank and + allows it to be treated slightly different then its level may indicate. For example, blank + lines should generally not be fold points and will be considered part of the preceding section even though + they may have a lesser fold level. + SC_FOLDLEVELHEADERFLAG indicates that + the line is a header (fold point).

+ +

Use SCI_GETFOLDLEVEL(line) & SC_FOLDLEVELNUMBERMASK to get the fold level + of a line. Likewise, use SCI_GETFOLDLEVEL(line) & SC_FOLDLEVEL*FLAG to get the + state of the flags. To set the fold level you must or in the associated flags. For instance, to + set the level to thisLevel and mark a line as being a fold point use: + SCI_SETFOLDLEVEL(line, thisLevel | SC_FOLDLEVELHEADERFLAG).

+ If you use a lexer, you should not need to use SCI_SETFOLDLEVEL as this is far + better handled by the lexer. You will need to use SCI_GETFOLDLEVEL to decide how + to handle user folding requests. If you do change the fold levels, the folding margin will + update to match your changes. + +

SCI_SETFOLDFLAGS(int flags)
+ In addition to showing markers in the folding margin, you can indicate folds to the user by + drawing lines in the text area. The lines are drawn in the foreground colour set for STYLE_DEFAULT. Bits set in + flags determine where folding lines are drawn:
+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueEffect
1Experimental feature that has been removed.
SC_FOLDFLAG_LINEBEFORE_EXPANDED2Draw above if expanded
SC_FOLDFLAG_LINEBEFORE_CONTRACTED4Draw above if not expanded
SC_FOLDFLAG_LINEAFTER_EXPANDED8Draw below if expanded
SC_FOLDFLAG_LINEAFTER_CONTRACTED16Draw below if not expanded
SC_FOLDFLAG_LEVELNUMBERS64display hexadecimal fold levels in line margin to aid debugging of + folding. The appearance of this feature may change in the future.
+ +

This message causes the display to redraw.

+ +

SCI_GETLASTCHILD(int startLine, int level)
+ This message searches for the next line after startLine, that has a folding level + that is less than or equal to level and then returns the previous line number. If + you set level to -1, level is set to the folding level of line + startLine. If from is a fold point, SCI_GETLASTCHILD(from, + -1) returns the last line that would be in made visible or hidden by toggling the fold + state.

+ +

SCI_GETFOLDPARENT(int startLine)
+ This message returns the line number of the first line before startLine that is + marked as a fold point with SC_FOLDLEVELHEADERFLAG and has a fold level less than + the startLine. If no line is found, or if the header flags and fold levels are + inconsistent, the return value is -1.

+ +

SCI_TOGGLEFOLD(int line)
+ Each fold point may be either expanded, displaying all its child lines, or contracted, hiding + all the child lines. This message toggles the folding state of the given line as long as it has + the SC_FOLDLEVELHEADERFLAG set. This message takes care of folding or expanding + all the lines that depend on the line. The display updates after this message.

+ +

SCI_SETFOLDEXPANDED(int line, bool expanded)
+ SCI_GETFOLDEXPANDED(int line)
+ These messages set and get the expanded state of a single line. The set message has no effect + on the visible state of the line or any lines that depend on it. It does change the markers in + the folding margin. If you ask for the expansion state of a line that is outside the document, + the result is false (0).

+ +

If you just want to toggle the fold state of one line and handle all the lines that are + dependent on it, it is much easier to use SCI_TOGGLEFOLD. You would use the + SCI_SETFOLDEXPANDED message to process many folds without updating the display + until you had finished. See SciTEBase::FoldAll() and + SciTEBase::Expand() for examples of the use of these messages.

+ +

SCI_FOLDLINE(int line, int action)
+ SCI_FOLDCHILDREN(int line, int action)
+ SCI_FOLDALL(int action)
+ These messages provide a higher-level approach to folding instead of setting expanded flags and showing + or hiding individual lines.

+

An individual fold can be contracted/expanded/toggled with SCI_FOLDLINE. + To affect all child folds as well call SCI_FOLDCHILDREN.

+

To affect the entire document call SCI_FOLDALL. With SC_FOLDACTION_TOGGLE + the first fold header in the document is examined to decide whether to expand or contract. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueEffect
SC_FOLDACTION_CONTRACT0Contract.
SC_FOLDACTION_EXPAND1Expand.
SC_FOLDACTION_TOGGLE2Toggle between contracted and expanded.
+

+ +

SCI_EXPANDCHILDREN(int line, int level)
+ This is used to respond to a change to a line causing its fold level or whether it is a header to change, + perhaps when adding or removing a '{'.

+

By the time the container has received the notification that the line has changed, + the fold level has already been set, so the container has to use the previous level in this call + so that any range hidden underneath this line can be shown. +

+ +

SCI_SETAUTOMATICFOLD(int automaticFold)
+ SCI_GETAUTOMATICFOLD
+ Instead of implementing all the logic for handling folding in the container, Scintilla can provide behaviour + that is adequate for many applications. The automaticFold argument is a bit set defining + which of the 3 pieces of folding implementation should be enabled. Most applications should be able to use the + SC_AUTOMATICFOLD_SHOW and SC_AUTOMATICFOLD_CHANGE + flags unless they wish to implement quite different behaviour such as defining their own fold structure. + SC_AUTOMATICFOLD_CLICK is more likely to be set off when an application would + like to add or change click behaviour such as showing method headers only when Shift+Alt is used in + conjunction with a click. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueEffect
SC_AUTOMATICFOLD_SHOW1Automatically show lines as needed. + This avoids sending the SCN_NEEDSHOWN notification.
SC_AUTOMATICFOLD_CLICK2Handle clicks in fold margin automatically. + This avoids sending the SCN_MARGINCLICK notification for folding margins.
SC_AUTOMATICFOLD_CHANGE4Show lines as needed when fold structure is changed. + The SCN_MODIFIED notification is still sent unless it is disabled by the + container.
+ +

SCI_CONTRACTEDFOLDNEXT(int lineStart)
+ Search efficiently for lines that are contracted fold headers. + This is useful when saving the user's folding when switching documents or saving folding with a file. + The search starts at line number lineStart and continues forwards to the end of the file. + lineStart is returned if it is a contracted fold header otherwise the next contracted + fold header is returned. If there are no more contracted fold headers then -1 is returned.

+ +

SCI_ENSUREVISIBLE(int line)
+ SCI_ENSUREVISIBLEENFORCEPOLICY(int line)
+ A line may be hidden because more than one of its parent lines is contracted. Both these + message travels up the fold hierarchy, expanding any contracted folds until they reach the top + level. The line will then be visible. If you use SCI_ENSUREVISIBLEENFORCEPOLICY, + the vertical caret policy set by SCI_SETVISIBLEPOLICY is then applied.

+ +

Line wrapping

+ + SCI_SETWRAPMODE(int wrapMode)
+ SCI_GETWRAPMODE
+ SCI_SETWRAPVISUALFLAGS(int wrapVisualFlags)
+ SCI_GETWRAPVISUALFLAGS
+ SCI_SETWRAPVISUALFLAGSLOCATION(int wrapVisualFlagsLocation)
+ SCI_GETWRAPVISUALFLAGSLOCATION
+ SCI_SETWRAPINDENTMODE(int indentMode)
+ SCI_GETWRAPINDENTMODE
+ SCI_SETWRAPSTARTINDENT(int indent)
+ SCI_GETWRAPSTARTINDENT
+ SCI_SETLAYOUTCACHE(int cacheMode)
+ SCI_GETLAYOUTCACHE
+ SCI_SETPOSITIONCACHE(int size)
+ SCI_GETPOSITIONCACHE
+ SCI_LINESSPLIT(int pixelWidth)
+ SCI_LINESJOIN
+ SCI_WRAPCOUNT(int docLine)
+
+ +

By default, Scintilla does not wrap lines of text. If you enable line wrapping, lines wider + than the window width are continued on the following lines. Lines are broken after space or tab + characters or between runs of different styles. If this is not possible because a word in one + style is wider than the window then the break occurs after the last character that completely + fits on the line. The horizontal scroll bar does not appear when wrap mode is on.

+ +

For wrapped lines Scintilla can draw visual flags (little arrows) at end of a a subline of a + wrapped line and at begin of the next subline. These can be enabled individually, but if Scintilla + draws the visual flag at the beginning of the next subline this subline will be indented by one char. + Independent from drawing a visual flag at the begin the subline can have an indention.

+ +

Much of the time used by Scintilla is spent on laying out and drawing text. The same text + layout calculations may be performed many times even when the data used in these calculations + does not change. To avoid these unnecessary calculations in some circumstances, the line layout + cache can store the results of the calculations. The cache is invalidated whenever the + underlying data, such as the contents or styling of the document changes. Caching the layout of + the whole document has the most effect, making dynamic line wrap as much as 20 times faster but + this requires 7 times the memory required by the document contents plus around 80 bytes per + line.

+ +

Wrapping is not performed immediately there is a change but is delayed until the display + is redrawn. This delay improves performance by allowing a set of changes to be performed + and then wrapped and displayed once. Because of this, some operations may not occur as + expected. If a file is read and the scroll position moved to a particular line in the text, + such as occurs when a container tries to restore a previous editing session, then + the scroll position will have been determined before wrapping so an unexpected range + of text will be displayed. To scroll to the position correctly, delay the scroll until the + wrapping has been performed by waiting for an initial + SCN_PAINTED notification.

+ +

SCI_SETWRAPMODE(int wrapMode)
+ SCI_GETWRAPMODE
+ Set wrapMode to SC_WRAP_WORD (1) to enable wrapping + on word boundaries, SC_WRAP_CHAR (2) to enable wrapping + between any characters, and to SC_WRAP_NONE (0) to disable line + wrapping. SC_WRAP_CHAR is preferred to + SC_WRAP_WORD for Asian languages where there is no white space + between words.

+ + +

SCI_SETWRAPVISUALFLAGS(int wrapVisualFlags)
+ SCI_GETWRAPVISUALFLAGS
+ You can enable the drawing of visual flags to indicate a line is wrapped. Bits set in + wrapVisualFlags determine which visual flags are drawn. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueEffect
SC_WRAPVISUALFLAG_NONE0No visual flags
SC_WRAPVISUALFLAG_END1Visual flag at end of subline of a wrapped line.
SC_WRAPVISUALFLAG_START2Visual flag at begin of subline of a wrapped line.
+ Subline is indented by at least 1 to make room for the flag.
+
SC_WRAPVISUALFLAG_MARGIN4Visual flag in line number margin.
+ +

SCI_SETWRAPVISUALFLAGSLOCATION(int wrapVisualFlagsLocation)
+ SCI_GETWRAPVISUALFLAGSLOCATION
+ You can set whether the visual flags to indicate a line is wrapped are drawn near the border or near the text. + Bits set in wrapVisualFlagsLocation set the location to near the text for the corresponding visual flag. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueEffect
SC_WRAPVISUALFLAGLOC_DEFAULT0Visual flags drawn near border
SC_WRAPVISUALFLAGLOC_END_BY_TEXT1Visual flag at end of subline drawn near text
SC_WRAPVISUALFLAGLOC_START_BY_TEXT2Visual flag at beginning of subline drawn near text
+ +

SCI_SETWRAPINDENTMODE(int indentMode)
+ SCI_GETWRAPINDENTMODE
+ Wrapped sublines can be indented to the position of their first subline or one more indent level. + The default is SC_WRAPINDENT_FIXED. + The modes are: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueEffect
SC_WRAPINDENT_FIXED0Wrapped sublines aligned to left of window plus amount set by + SCI_SETWRAPSTARTINDENT
SC_WRAPINDENT_SAME1Wrapped sublines are aligned to first subline indent
SC_WRAPINDENT_INDENT2Wrapped sublines are aligned to first subline indent plus one more level of indentation
+ +

SCI_SETWRAPSTARTINDENT(int indent)
+ SCI_GETWRAPSTARTINDENT
+ SCI_SETWRAPSTARTINDENT sets the size of indentation of sublines for + wrapped lines in terms of the average character width in + STYLE_DEFAULT. + There are no limits on indent sizes, but values less than 0 or large values may have + undesirable effects.
+ The indention of sublines is independent of visual flags, but if + SC_WRAPVISUALFLAG_START is set an indent of at least 1 is used. +

+ +

SCI_SETLAYOUTCACHE(int cacheMode)
+ SCI_GETLAYOUTCACHE
+ You can set cacheMode to one of the symbols in the table:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueLayout cached for these lines
SC_CACHE_NONE0No lines are cached.
SC_CACHE_CARET1The line containing the text caret. This is the default.
SC_CACHE_PAGE2Visible lines plus the line containing the caret.
SC_CACHE_DOCUMENT3All lines in the document.
+ +

SCI_SETPOSITIONCACHE(int size)
+ SCI_GETPOSITIONCACHE
+ The position cache stores position information for short runs of text + so that their layout can be determined more quickly if the run recurs. + The size in entries of this cache can be set with SCI_SETPOSITIONCACHE.

+ +

SCI_LINESSPLIT(int pixelWidth)
+ Split a range of lines indicated by the target into lines that are at most pixelWidth wide. + Splitting occurs on word boundaries wherever possible in a similar manner to line wrapping. + When pixelWidth is 0 then the width of the window is used. +

+ +

SCI_LINESJOIN
+ Join a range of lines indicated by the target into one line by + removing line end characters. + Where this would lead to no space between words, an extra space is inserted. +

+ +

SCI_WRAPCOUNT(int docLine)
+ Document lines can occupy more than one display line if they wrap and this + returns the number of display lines needed to wrap a document line.

+ +

Zooming

+ +

Scintilla incorporates a "zoom factor" that lets you make all the text in the document + larger or smaller in steps of one point. The displayed point size never goes below 2, whatever + zoom factor you set. You can set zoom factors in the range -10 to +20 points.

+ SCI_ZOOMIN
+ SCI_ZOOMOUT
+ SCI_SETZOOM(int zoomInPoints)
+ SCI_GETZOOM
+
+ +

SCI_ZOOMIN
+ SCI_ZOOMOUT
+ SCI_ZOOMIN increases the zoom factor by one point if the current zoom factor is + less than 20 points. SCI_ZOOMOUT decreases the zoom factor by one point if the + current zoom factor is greater than -10 points.

+ +

SCI_SETZOOM(int zoomInPoints)
+ SCI_GETZOOM
+ These messages let you set and get the zoom factor directly. There is no limit set on the + factors you can set, so limiting yourself to -10 to +20 to match the incremental zoom functions + is a good idea.

+ +

Long lines

+ +

You can choose to mark lines that exceed a given length by drawing a vertical line or by + colouring the background of characters that exceed the set length.

+ SCI_SETEDGEMODE(int mode)
+ SCI_GETEDGEMODE
+ SCI_SETEDGECOLUMN(int column)
+ SCI_GETEDGECOLUMN
+ SCI_SETEDGECOLOUR(int colour)
+ SCI_GETEDGECOLOUR
+
+ +

SCI_SETEDGEMODE(int edgeMode)
+ SCI_GETEDGEMODE
+ These two messages set and get the mode used to display long lines. You can set one of the + values in the table:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueLong line display mode
EDGE_NONE0Long lines are not marked. This is the default state.
EDGE_LINE1A vertical line is drawn at the column number set by SCI_SETEDGECOLUMN. + This works well for monospaced fonts. The line is drawn at a position based on the width + of a space character in STYLE_DEFAULT, so it may not work very well if + your styles use proportional fonts or if your style have varied font sizes or you use a + mixture of bold, italic and normal text.
EDGE_BACKGROUND2The background colour of characters after the column limit is changed to the colour + set by SCI_SETEDGECOLOUR. This is recommended for proportional fonts.
+ +

SCI_SETEDGECOLUMN(int column)
+ SCI_GETEDGECOLUMN
+ These messages set and get the column number at which to display the long line marker. When + drawing lines, the column sets a position in units of the width of a space character in + STYLE_DEFAULT. When setting the background colour, the column is a character count + (allowing for tabs) into the line.

+ +

SCI_SETEDGECOLOUR(int colour)
+ SCI_GETEDGECOLOUR
+ These messages set and get the colour of the marker used to show that a line has exceeded the + length set by SCI_SETEDGECOLUMN.

+ +

Lexer

+ +

If you define the symbol SCI_LEXER when building Scintilla, (this is sometimes + called the SciLexer version of Scintilla), lexing support for a wide range of programming + languages is included and the messages in this section are supported. If you want to set + styling and fold points for an unsupported language you can either do this in the container or + better still, write your own lexer following the pattern of one of the existing ones.

+ +

Scintilla also supports external lexers. These are DLLs (on Windows) or .so modules (on GTK+/Linux) that export three + functions: GetLexerCount, GetLexerName, and + GetLexerFactory. See externalLexer.cxx for more.

+ SCI_SETLEXER(int lexer)
+ SCI_GETLEXER
+ SCI_SETLEXERLANGUAGE(<unused>, const char + *name)
+ SCI_GETLEXERLANGUAGE(<unused>, char + *name)
+ SCI_LOADLEXERLIBRARY(<unused>, const char + *path)
+ SCI_COLOURISE(int start, int end)
+ SCI_CHANGELEXERSTATE(int start, int end)
+ SCI_PROPERTYNAMES(<unused>, char *names)
+ SCI_PROPERTYTYPE(const char *name)
+ SCI_DESCRIBEPROPERTY(const char *name, char *description)
+ SCI_SETPROPERTY(const char *key, const char *value)
+ SCI_GETPROPERTY(const char *key, char *value)
+ SCI_GETPROPERTYEXPANDED(const char *key, char *value)
+ SCI_GETPROPERTYINT(const char *key, int default)
+ SCI_DESCRIBEKEYWORDSETS(<unused>, char *descriptions)
+ SCI_SETKEYWORDS(int keyWordSet, const char + *keyWordList)
+ SCI_GETSTYLEBITSNEEDED
+ + + +
+ +

SCI_SETLEXER(int lexer)
+ SCI_GETLEXER
+ You can select the lexer to use with an integer code from the SCLEX_* enumeration + in Scintilla.h. There are two codes in this sequence that do not use lexers: + SCLEX_NULL to select no lexing action and SCLEX_CONTAINER which sends + the SCN_STYLENEEDED notification to + the container whenever a range of text needs to be styled. You cannot use the + SCLEX_AUTOMATIC value; this identifies additional external lexers that Scintilla + assigns unused lexer numbers to.

+ +

SCI_SETLEXERLANGUAGE(<unused>, const char *name)
+ SCI_GETLEXERLANGUAGE(<unused>, char *name)
+ SCI_SETLEXERLANGUAGE lets you select a lexer by name, and is the only method if you are using an + external lexer or if you have written a lexer module for a language of your own and do not wish + to assign it an explicit lexer number. To select an existing lexer, set name to + match the (case sensitive) name given to the module, for example "ada" or "python", not "Ada" + or "Python". To locate the name for the built-in lexers, open the relevant + Lex*.cxx file and search for LexerModule. The third argument in the + LexerModule constructor is the name to use.

+ +

To test if your lexer assignment worked, use SCI_GETLEXER before and after setting the new lexer to + see if the lexer number changed.

+ +

SCI_GETLEXERLANGUAGE retrieves the name of the lexer.

+ +

SCI_LOADLEXERLIBRARY(<unused>, const char *path)
+ Load a lexer implemented in a shared library. This is a .so file on GTK+/Linux or a .DLL file on Windows. +

+ +

SCI_COLOURISE(int startPos, int endPos)
+ This requests the current lexer or the container (if the lexer is set to + SCLEX_CONTAINER) to style the document between startPos and + endPos. If endPos is -1, the document is styled from + startPos to the end. If the "fold" property is set to + "1" and your lexer or container supports folding, fold levels are also set. This + message causes a redraw.

+ +

SCI_CHANGELEXERSTATE(int startPos, int endPos)
+ Indicate that the internal state of a lexer has changed over a range and therefore + there may be a need to redraw.

+ +

SCI_PROPERTYNAMES(<unused>, char *names)
+ SCI_PROPERTYTYPE(const char *name)
+ SCI_DESCRIBEPROPERTY(const char *name, char *description)
+ Information may be retrieved about the properties that can be set for the current lexer. + This information is only available for newer lexers. + SCI_PROPERTYNAMES returns a string with all of the valid properties separated by "\n". + If the lexer does not support this call then an empty string is returned. + Properties may be boolean (SC_TYPE_BOOLEAN), integer (SC_TYPE_INTEGER), + or string (SC_TYPE_STRING) and this is found with SCI_PROPERTYTYPE. + A description of a property in English is returned by SCI_DESCRIBEPROPERTY.

+ +

SCI_SETPROPERTY(const char *key, const char *value)
+ You can communicate settings to lexers with keyword:value string pairs. There is no limit to + the number of keyword pairs you can set, other than available memory. key is a + case sensitive keyword, value is a string that is associated with the keyword. If + there is already a value string associated with the keyword, it is replaced. If you pass a zero + length string, the message does nothing. Both key and value are used + without modification; extra spaces at the beginning or end of key are + significant.

+ +

The value string can refer to other keywords. For example, + SCI_SETPROPERTY("foldTimes10", "$(fold)0") stores the string + "$(fold)0", but when this is accessed, the $(fold) is replaced by the + value of the "fold" keyword (or by nothing if this keyword does not exist).

+ +

Currently the "fold" property is defined for most of the lexers to set the fold structure if + set to "1". SCLEX_PYTHON understands "tab.timmy.whinge.level" as a + setting that determines how to indicate bad indentation. Most keywords have values that are + interpreted as integers. Search the lexer sources for GetPropertyInt to see how + properties are used.

+ +

There is a convention for naming properties used by lexers so that the set of properties can be found by scripts. + Property names should start with "lexer.<lexer>." or "fold.<lexer>." when they apply to one + lexer or start with "lexer." or "fold." if they apply to multiple lexers.

+ +

Applications may discover the set of properties used by searching the source code of lexers for lines that contain + GetProperty and a double quoted string and extract the value of the double quoted string as the property name. + The scintilla/scripts/LexGen.py script does this and can be used as an example. + Documentation for the property may be located above the call as a multi-line comment starting with +
// property <property-name>

+ +

SCI_GETPROPERTY(const char *key, char *value)
+ Lookup a keyword:value pair using the specified key; if found, copy the value to the user-supplied + buffer and return the length (not including the terminating 0). If not found, copy an empty string + to the buffer and return 0.

+ +

Note that "keyword replacement" as described in + SCI_SETPROPERTY will not be performed.

+ +

If the value argument is 0 then the length that should be allocated to store the value is returned; + again, the terminating 0 is not included.

+ +

SCI_GETPROPERTYEXPANDED(const char *key, char *value)
+ Lookup a keyword:value pair using the specified key; if found, copy the value to the user-supplied + buffer and return the length (not including the terminating 0). If not found, copy an empty string + to the buffer and return 0.

+ +

Note that "keyword replacement" as described in + SCI_SETPROPERTY will be performed.

+ +

If the value argument is 0 then the length that should be allocated to store the value (including any indicated keyword replacement) + is returned; again, the terminating 0 is not included.

+ +

SCI_GETPROPERTYINT(const char *key, int default)
+ Lookup a keyword:value pair using the specified key; if found, interpret the value as an integer and return it. + If not found (or the value is an empty string) then return the supplied default. If the keyword:value pair is found but is not + a number, then return 0.

+ +

Note that "keyword replacement" as described in + SCI_SETPROPERTY will be performed before any numeric interpretation.

+ +

SCI_SETKEYWORDS(int keyWordSet, const char *keyWordList)
+ You can set up to 9 lists of keywords for use by the current lexer. + keyWordSet can be 0 to 8 (actually 0 to KEYWORDSET_MAX) + and selects which keyword list to replace. keyWordList is a list of keywords + separated by spaces, tabs, "\n" or "\r" or any combination of these. + It is expected that the keywords will be composed of standard ASCII printing characters, + but there is nothing to stop you using any non-separator character codes from 1 to 255 + (except common sense).

+ +

How these keywords are used is entirely up to the lexer. Some languages, such as HTML may + contain embedded languages, VBScript and JavaScript are common for HTML. For HTML, key word set + 0 is for HTML, 1 is for JavaScript and 2 is for VBScript, 3 is for Python, 4 is for PHP and 5 + is for SGML and DTD keywords. Review the lexer code to see examples of keyword list. A fully + conforming lexer sets the fourth argument of the LexerModule constructor to be a + list of strings that describe the uses of the keyword lists.

+ +

Alternatively, you might use set 0 for general keywords, set 1 for keywords that cause + indentation and set 2 for keywords that cause unindentation. Yet again, you might have a simple + lexer that colours keywords and you could change languages by changing the keywords in set 0. + There is nothing to stop you building your own keyword lists into the lexer, but this means + that the lexer must be rebuilt if more keywords are added.

+ +

SCI_DESCRIBEKEYWORDSETS(<unused>, char *descriptions)
+ A description of all of the keyword sets separated by "\n" is returned by SCI_DESCRIBEKEYWORDSETS.

+ +

SCI_GETSTYLEBITSNEEDED
+ Retrieve the number of bits the current lexer needs for styling. This should normally be the argument + to SCI_SETSTYLEBITS. +

+ +
+

Substyles

+ These features are provisional
+

Lexers may support several different sublanguages and each sublanguage may want to style some number of + sets of identifiers (or similar lexemes such as documentation keywords) uniquely. Preallocating a large number for each + purpose would exhaust the number of allowed styles quickly. + This is alleviated by substyles which allow the application to determine how many sets of identifiers to allocate for + each purpose. + Lexers have to explicitly support this feature by implementing the methods in ILexerWithSubStyles.

+ +

SCI_GETSUBSTYLEBASES(<unused>, char *styles)
+ Fill styles with a byte for each style that can be split into substyles.

+ +

SCI_DISTANCETOSECONDARYSTYLES
+ Returns the distance between a primary style and its corresponding secondary style.

+ +

SCI_ALLOCATESUBSTYLES(int styleBase, int numberStyles)
+ Allocate some number of substyles for a particular base style returning the first substyle number allocated. + Substyles are allocated contiguously.

+ +

SCI_FREESUBSTYLES
+ Free all allocated substyles.

+ +

SCI_GETSUBSTYLESSTART(int styleBase)
+ SCI_GETSUBSTYLESLENGTH(int styleBase)
+ Return the start and length of the substyles allocated for a base style.

+ +

SCI_GETSTYLEFROMSUBSTYLE(int subStyle)
+ For a sub style, return the base style, else return the argument.

+ +

SCI_GETPRIMARYSTYLEFROMSTYLE(int style)
+ For a secondary style, return the primary style, else return the argument.

+ +

SCI_SETIDENTIFIERS(int style, const char *identifiers)
+ Similar to SCI_SETKEYWORDS but for substyles. + The prefix feature available with SCI_SETKEYWORDS is not implemented for SCI_SETIDENTIFIERS.

+
+ +

Lexer Objects

+ +

Lexers are programmed as objects that implement the ILexer interface and that interact + with the document they are lexing through the IDocument interface. + Previously lexers were defined by providing lexing and folding functions but creating an object + to handle the interaction of a lexer with a document allows the lexer to store state information that + can be used during lexing. For example a C++ lexer may store a set of preprocessor definitions + or variable declarations and style these depending on their role.

+ +

A set of helper classes allows older lexers defined by functions to be used in Scintilla.

+

ILexer

+ +
+class ILexer {
+public:
+    virtual + int SCI_METHOD + Version() +const = + 0;
+    virtual + void SCI_METHOD + Release() += 0;
+    virtual +const +char +* +SCI_METHOD PropertyNames() + = 0;
+    virtual + int SCI_METHOD PropertyType(const char *name) = 0;
+    virtual + const char * SCI_METHOD DescribeProperty(const char *name) = 0;
+    virtual + int SCI_METHOD + PropertySet(const + char + *key, + const +char *val) + = + 0;
+    virtual +const char +* SCI_METHOD DescribeWordListSets() + = +0;
+    virtual + int SCI_METHOD + WordListSet(int + n, + const +char *wl) + = + 0;
+    virtual + void SCI_METHOD + Lex(unsigned + int + startPos, + int + lengthDoc, +int initStyle, + IDocument +*pAccess) + = +0;
+    virtual + void SCI_METHOD + Fold(unsigned + int startPos, + int + lengthDoc, +int initStyle, + IDocument +*pAccess) + = +0;
+    virtual + void +* SCI_METHOD +PrivateCall(int + operation, +void +*pointer) += 0;
+};
+
+ +

+The return values from PropertySet and WordListSet are used to indicate whether the change requires +performing lexing or folding over any of the document. It is the position at which to restart lexing and folding or -1 +if the change does not require any extra work on the document. +A simple approach is to return 0 if there is any possibility that a change requires lexing the document again while an +optimisation could be to remember where a setting first affects the document and return that position. +

+ +

Release is called to destroy the lexer object.

+ +

PrivateCall allows for direct communication between the +application and a lexer. An example would be where an application +maintains a single large data structure containing symbolic information +about system headers (like Windows.h) and provides this to the lexer +where it can be applied to each document. This avoids the costs of +constructing the system header information for each document. This is +invoked with the SCI_PRIVATELEXERCALL API.

+ +

Fold is called with the exact range that needs folding. +Previously, lexers were called with a range that started one line before the range that +needs to be folded as this allowed fixing up the last line from the previous folding. +The new approach allows the lexer to decide whether to backtrack or to handle this +more efficiently.

+ +

ILexerWithSubStyles

+ +

+To allow lexers to report which line ends they support, and to support substyles, +Ilexer is extended to ILexerWithSubStyles. +

+ +
+class ILexerWithSubStyles : public ILexer {
+public:
+        virtual int SCI_METHOD LineEndTypesSupported() = 0;
+        virtual int SCI_METHOD AllocateSubStyles(int styleBase, int numberStyles) = 0;
+        virtual int SCI_METHOD SubStylesStart(int styleBase) = 0;
+        virtual int SCI_METHOD SubStylesLength(int styleBase) = 0;
+        virtual int SCI_METHOD StyleFromSubStyle(int subStyle) = 0;
+        virtual int SCI_METHOD PrimaryStyleFromStyle(int style) = 0;
+        virtual void SCI_METHOD FreeSubStyles() = 0;
+        virtual void SCI_METHOD SetIdentifiers(int style, const char *identifiers) = 0;
+        virtual int SCI_METHOD DistanceToSecondaryStyles() = 0;
+        virtual const char * SCI_METHOD GetSubStyleBases() = 0;
+};
+
+ +

IDocument

+ +
+class IDocument + {
+public:
+    virtual + int SCI_METHOD + Version() +const = + 0;
+    virtual + void SCI_METHOD + SetErrorStatus(int + status) + = +0;
+    virtual + int SCI_METHOD + Length() +const = + 0;
+    virtual + void SCI_METHOD + GetCharRange(char + *buffer, + int +position, +int lengthRetrieve) + const + = +0;
+    virtual + char SCI_METHOD + StyleAt(int + position) +const = + 0;
+    virtual + int SCI_METHOD + LineFromPosition(int position) + const = + 0;
+    virtual +int SCI_METHOD + LineStart(int line) + const = + 0;
+    virtual +int SCI_METHOD + GetLevel(int line) + +const = +0;
+    virtual +int SCI_METHOD + SetLevel(int + line, +int level) + = +0;
+    virtual + int SCI_METHOD + GetLineState(int + line) + const += 0 +;
+    virtual + int SCI_METHOD + SetLineState(int + line, + int state) + = + 0;
+    virtual + void SCI_METHOD + StartStyling(int + position, + char mask) + = + 0;
+    virtual bool + SCI_METHOD + SetStyleFor(int + length, + char style) + = 0 +;
+     virtual + bool SCI_METHOD + SetStyles(int + length, +const char + *styles) + = +0;
+    virtual void + SCI_METHOD + DecorationSetCurrentIndicator(int + indicator) + = + 0;
+    virtual + void SCI_METHOD + DecorationFillRange(int + position, + int value, + int fillLength) + + = +0;
+    virtual + void SCI_METHOD + ChangeLexerState(int + start, + int end) + = + 0;
+    virtual + int SCI_METHOD + CodePage() + const += 0 +;
+    virtual bool + SCI_METHOD + IsDBCSLeadByte(char + ch) + const = + 0;
+};
+
+ +

Scintilla tries to minimize the consequences of modifying text to +only relex and redraw the line of the change where possible. Lexer +objects contain their own private extra state which can affect later +lines. For example, if the C++ lexer is greying out inactive code +segments then changing the statement #define BEOS 0 to #define + BEOS 1 may require restyling and redisplaying later parts of the + document. The lexer can call ChangeLexerState to signal to + the document that it should relex and display more.

+ +

SetErrorStatus is used to notify the document of +exceptions. Exceptions should not be thrown over build boundaries as the + two sides may be built with different compilers or incompatible +exception options.

+ +

IDocumentWithLineEnd

+ +

+To allow lexers to determine the end position of a line and thus more easily support Unicode line ends +IDocument is extended to IDocumentWithLineEnd.

+

GetRelativePosition navigates the document by whole characters, +returning INVALID_POSITION for movement beyond the start and end of the document.

+

GetCharacterAndWidth provides a standard +conversion from UTF-8 bytes to a UTF-32 character or from DBCS to a 16 bit value. +Bytes in invalid UTF-8 are reported individually with values 0xDC80+byteValue, which are +not valid Unicode code points. +The pWidth argument can be NULL if the caller does not need to know the number of +bytes in the character. +

+ +
+class IDocumentWithLineEnd : public IDocument {
+public:
+        virtual int SCI_METHOD LineEnd(int line) const = 0;
+        virtual int SCI_METHOD GetRelativePosition(int positionStart, int characterOffset) const = 0;
+        virtual int SCI_METHOD GetCharacterAndWidth(int position, int *pWidth) const = 0;
+};
+
+ +

The ILexer, ILexerWithSubStyles, IDocument, and +IDocumentWithLineEnd interfaces may be +expanded in the future with extended versions (ILexer2...). + The Version method indicates which interface is +implemented and thus which methods may be called.

+ +

Notifications

+ +

Notifications are sent (fired) from the Scintilla control to its container when an event has + occurred that may interest the container.

+

Notifications are sent using the + WM_NOTIFY message on Windows.

+

On GTK+, the "sci-notify" signal is sent and the signal handler should have the signature + handler(GtkWidget *, gint, SCNotification *notification, gpointer userData).

+

On Cocoa, a delegate implementing the ScintillaNotificationProtocol + may be set to receive notifications or the ScintillaView class may be subclassed and the + notification: method overridden. Overriding notification: allows the + subclass to control whether default handling is performed.

+

The container is + passed a SCNotification structure containing information about the event.

+
+struct NotifyHeader {   // This matches the Win32 NMHDR structure
+    void *hwndFrom;     // environment specific window handle/pointer
+    uptr_t idFrom;        // CtrlID of the window issuing the notification
+    unsigned int code;  // The SCN_* notification code
+};
+
+struct SCNotification {
+	struct Sci_NotifyHeader nmhdr;
+	int position;
+	/* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, */
+	/* SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, */
+	/* SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, */
+	/* SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */
+	/* SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */
+
+	int ch;		/* SCN_CHARADDED, SCN_KEY */
+	int modifiers;
+	/* SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, */
+	/* SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */
+
+	int modificationType;	/* SCN_MODIFIED */
+	const char *text;
+	/* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION, SCN_URIDROPPED */
+
+	int length;		/* SCN_MODIFIED */
+	int linesAdded;	/* SCN_MODIFIED */
+	int message;	/* SCN_MACRORECORD */
+	uptr_t wParam;	/* SCN_MACRORECORD */
+	sptr_t lParam;	/* SCN_MACRORECORD */
+	int line;		/* SCN_MODIFIED */
+	int foldLevelNow;	/* SCN_MODIFIED */
+	int foldLevelPrev;	/* SCN_MODIFIED */
+	int margin;		/* SCN_MARGINCLICK */
+	int listType;	/* SCN_USERLISTSELECTION */
+	int x;			/* SCN_DWELLSTART, SCN_DWELLEND */
+	int y;		/* SCN_DWELLSTART, SCN_DWELLEND */
+	int token;		/* SCN_MODIFIED with SC_MOD_CONTAINER */
+	int annotationLinesAdded;	/* SCN_MODIFIED with SC_MOD_CHANGEANNOTATION */
+	int updated;	/* SCN_UPDATEUI */
+};
+
+ +

The notification messages that your container can choose to handle and the messages + associated with them are:

+ SCN_STYLENEEDED
+ SCN_CHARADDED
+ SCN_SAVEPOINTREACHED
+ SCN_SAVEPOINTLEFT
+ SCN_MODIFYATTEMPTRO
+ SCN_KEY
+ SCN_DOUBLECLICK
+ SCN_UPDATEUI
+ SCN_MODIFIED
+ SCN_MACRORECORD
+ SCN_MARGINCLICK
+ SCN_NEEDSHOWN
+ SCN_PAINTED
+ SCN_USERLISTSELECTION
+ SCN_URIDROPPED
+ SCN_DWELLSTART
+ SCN_DWELLEND
+ SCN_ZOOM
+ SCN_HOTSPOTCLICK
+ SCN_HOTSPOTDOUBLECLICK
+ SCN_HOTSPOTRELEASECLICK
+ SCN_INDICATORCLICK
+ SCN_INDICATORRELEASE
+ SCN_CALLTIPCLICK
+ SCN_AUTOCSELECTION
+ SCN_AUTOCCANCELLED
+ SCN_AUTOCCHARDELETED
+ SCN_FOCUSIN
+ SCN_FOCUSOUT
+
+ +

The following SCI_* messages are associated with these notifications:

+ SCI_SETMODEVENTMASK(int eventMask)
+ SCI_GETMODEVENTMASK
+ SCI_SETMOUSEDWELLTIME(int milliseconds)
+ SCI_GETMOUSEDWELLTIME
+ SCI_SETIDENTIFIER(int identifier)
+ SCI_GETIDENTIFIER
+
+ +

The following additional notifications are sent using a secondary "command" method and should + be avoided in new code as the primary "notification" method provides all the same events with richer + information. + The WM_COMMAND message is used on Windows. + This emulates the Windows Edit control. Only the lower + 16 bits of the control's ID is passed in these notifications.

+

On GTK+, the "command" signal is sent and the signal handler should have the signature + handler(GtkWidget *, gint wParam, gpointer lParam, gpointer userData).

+ SCEN_CHANGE
+ SCEN_SETFOCUS
+ SCEN_KILLFOCUS
+
+ +

SCI_SETIDENTIFIER(int identifier)
+ SCI_GETIDENTIFIER
+ These two messages set and get the identifier of the Scintilla instance which is included in notifications as the + idFrom field. + When an application creates multiple Scintilla widgets, this allows the source of each notification to be found. + On Windows, this value is initialised in the CreateWindow call and stored as the + GWLP_ID attribute of the window. + The value should be small, preferably less than 16 bits, + rather than a pointer as some of the functions will only transmit 16 or 32 bits. +

+ +

SCN_STYLENEEDED
+ If you used SCI_SETLEXER(SCLEX_CONTAINER) to make the container act as the + lexer, you will receive this notification when Scintilla is about to display or print text that + requires styling. You are required to style the text from the line that contains the position + returned by SCI_GETENDSTYLED up to + the position passed in SCNotification.position. Symbolically, you need code of the + form:

+
+    startPos = SCI_GETENDSTYLED()
+    lineNumber = SCI_LINEFROMPOSITION(startPos);
+    startPos = SCI_POSITIONFROMLINE(lineNumber);
+    MyStyleRoutine(startPos, SCNotification.position);
+
+ +

SCN_CHARADDED
+ This is sent when the user types an ordinary text character (as opposed to a command + character) that is entered into the text. The container can use this to decide to display a call tip or an auto + completion list. The character is in SCNotification.ch. + This notification is sent before the character has been styled so processing that depends on + styling should instead be performed in the SCN_UPDATEUI notification.

+ +

SCN_SAVEPOINTREACHED
+ SCN_SAVEPOINTLEFT
+ Sent to the container when the save point is entered or left, allowing the container to + display a "document dirty" indicator and change its menus.
+ See also: SCI_SETSAVEPOINT, SCI_GETMODIFY

+ +

SCN_MODIFYATTEMPTRO
+ When in read-only mode, this notification is sent to the container if the user tries to change + the text. This can be used to check the document out of a version control system. You can set + the read-only state of a document with SCI_SETREADONLY.

+ +

SCN_KEY
+ Reports all keys pressed but not consumed by Scintilla. Used on GTK+ because of + some problems with keyboard focus and is not sent by the Windows version. SCNotification.ch holds the key code and + SCNotification.modifiers holds the modifiers. This notification is sent if the + modifiers include SCMOD_ALT or SCMOD_CTRL and the key code is less + than 256.

+ +

SCN_DOUBLECLICK
+ The mouse button was double clicked in editor. The position field is set to the text position of the + double click, the line field is set to the line of the double click, and + the modifiers field is set to the key modifiers + held down in a similar manner to SCN_KEY.

+ +

SCN_UPDATEUI
+ Either the text or styling of the document has changed or the selection range or scroll position has changed. + Now would be a good time to update any container UI elements that depend on document or view state. + The updated field is set to the bit set of things changed since the previous notification.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueMeaning
SC_UPDATE_CONTENT0x01Contents, styling or markers have been changed.
SC_UPDATE_SELECTION0x02Selection has been changed.
SC_UPDATE_V_SCROLL0x04Scrolled vertically.
SC_UPDATE_H_SCROLL0x08Scrolled horizontally.
+ +

SCN_MODIFIED
+ This notification is sent when the text or styling of the document changes or is about to + change. You can set a mask for the notifications that are sent to the container with SCI_SETMODEVENTMASK. The + notification structure contains information about what changed, how the change occurred and + whether this changed the number of lines in the document. No modifications may be performed + while in a SCN_MODIFIED event. The SCNotification fields used + are:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldUsage
modificationTypeA set of flags that identify the change(s) made. See the next + table.
positionStart position of a text or styling change. Set to 0 if not used.
lengthLength of the change in cells or characters when the text or styling + changes. Set to 0 if not used.
linesAddedNumber of added lines. If negative, the number of deleted lines. Set to + 0 if not used or no lines added or deleted.
textValid for text changes, not for style changes. If we are collecting undo + information this holds a pointer to the text that is handed to the Undo system, otherwise + it is zero. For user performed SC_MOD_BEFOREDELETE the text field is 0.
lineThe line number at which a fold level or marker change occurred. This is + 0 if unused and may be -1 if more than one line changed.
foldLevelNowThe new fold level applied to the line or 0 if this field is + unused.
foldLevelPrevThe previous folding level of the line or 0 if this field is + unused.
+ +

The SCNotification.modificationType field has bits set to tell you what has + been done. The SC_MOD_* bits correspond to actions. The + SC_PERFORMED_* bits tell you if the action was done by the user, or the result of + Undo or Redo of a previous action.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueMeaningSCNotification fields
SC_MOD_INSERTTEXT0x01Text has been inserted into the document.position, length, text, linesAdded
SC_MOD_DELETETEXT0x02Text has been removed from the document.position, length, text, linesAdded
SC_MOD_CHANGESTYLE0x04A style change has occurred.position, length
SC_MOD_CHANGEFOLD0x08A folding change has occurred.line, foldLevelNow, foldLevelPrev
SC_PERFORMED_USER0x10Information: the operation was done by the user.None
SC_PERFORMED_UNDO0x20Information: this was the result of an Undo.None
SC_PERFORMED_REDO0x40Information: this was the result of a Redo.None
SC_MULTISTEPUNDOREDO0x80This is part of a multi-step Undo or Redo transaction.None
SC_LASTSTEPINUNDOREDO0x100This is the final step in an Undo or Redo transaction.None
SC_MOD_CHANGEMARKER0x200One or more markers has changed in a line.line
SC_MOD_BEFOREINSERT0x400Text is about to be inserted into the document.position, if performed by user then text in cells, length in cells
SC_MOD_BEFOREDELETE0x800Text is about to be deleted from the document.position, length
SC_MOD_CHANGEINDICATOR0x4000An indicator has been added or removed from a range of text.position, length
SC_MOD_CHANGELINESTATE0x8000A line state has changed because SCI_SETLINESTATE + was called.line
SC_MOD_LEXERSTATE0x80000The internal state of a lexer has changed over a range.position, length
SC_MOD_CHANGEMARGIN0x10000A text margin has changed.line
SC_MOD_CHANGEANNOTATION0x20000An annotation has changed.line
SC_MULTILINEUNDOREDO0x1000This is part of an Undo or Redo with multi-line changes.None
SC_STARTACTION0x2000This is set on a SC_PERFORMED_USER action when it is the + first or only step in an undo transaction. This can be used to integrate the Scintilla + undo stack with an undo stack in the container application by adding a Scintilla + action to the container's stack for the currently opened container transaction or + to open a new container transaction if there is no open container transaction. + None
SC_MOD_CONTAINER0x40000This is set on for actions that the container stored into the undo stack with + SCI_ADDUNDOACTION. + token
SC_MODEVENTMASKALL0x7FFFFThis is a mask for all valid flags. This is the default mask state set by SCI_SETMODEVENTMASK.None
+ +

SCEN_CHANGE
+ SCEN_CHANGE (768) is fired when the text (not the style) of the document changes. + This notification is sent using the WM_COMMAND message on Windows and the + "command" signal on GTK+ as this is the behaviour of the standard Edit control + (SCEN_CHANGE has the same value as the Windows Edit control + EN_CHANGE). No other information is sent. If you need more detailed information + use SCN_MODIFIED. You can filter the + types of changes you are notified about with SCI_SETMODEVENTMASK.

+ +

SCI_SETMODEVENTMASK(int eventMask)
+ SCI_GETMODEVENTMASK
+ These messages set and get an event mask that determines which document change events are + notified to the container with SCN_MODIFIED and SCEN_CHANGE. For example, a container may decide to see + only notifications about changes to text and not styling changes by calling + SCI_SETMODEVENTMASK(SC_MOD_INSERTTEXT|SC_MOD_DELETETEXT).

+ +

The possible notification types are the same as the modificationType bit flags + used by SCN_MODIFIED: SC_MOD_INSERTTEXT, + SC_MOD_DELETETEXT, SC_MOD_CHANGESTYLE, + SC_MOD_CHANGEFOLD, SC_PERFORMED_USER, SC_PERFORMED_UNDO, + SC_PERFORMED_REDO, SC_MULTISTEPUNDOREDO, + SC_LASTSTEPINUNDOREDO, SC_MOD_CHANGEMARKER, + SC_MOD_BEFOREINSERT, SC_MOD_BEFOREDELETE, + SC_MULTILINEUNDOREDO, and SC_MODEVENTMASKALL.

+ +

SCEN_SETFOCUS
+ SCEN_KILLFOCUS
+ SCEN_SETFOCUS (512) is fired when Scintilla receives focus and + SCEN_KILLFOCUS (256) when it loses focus. These notifications are sent using the + WM_COMMAND message on Windows and the "command" signal on GTK+ as this is the + behaviour of the standard Edit control. Unfortunately, these codes do not match the Windows Edit + notification codes EN_SETFOCUS (256) and EN_KILLFOCUS (512). It is + now too late to change the Scintilla codes as clients depend on the current values.

+ +

SCN_MACRORECORD
+ The SCI_STARTRECORD and SCI_STOPRECORD messages enable and + disable macro recording. When enabled, each time a recordable change occurs, the + SCN_MACRORECORD notification is sent to the container. It is up to the container + to record the action. To see the complete list of SCI_* messages that are + recordable, search the Scintilla source Editor.cxx for + Editor::NotifyMacroRecord. The fields of SCNotification set in this + notification are:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldUsage
messageThe SCI_* message that caused the notification.
wParamThe value of wParam in the SCI_* message.
lParamThe value of lParam in the SCI_* message.
+ +

SCN_MARGINCLICK
+ This notification tells the container that the mouse was clicked inside a margin that was marked as sensitive (see SCI_SETMARGINSENSITIVEN). This can be used to + perform folding or to place breakpoints. The following SCNotification fields are + used:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldUsage
modifiersThe appropriate combination of SCI_SHIFT, + SCI_CTRL and SCI_ALT to indicate the keys that were held down + at the time of the margin click.
positionThe position of the start of the line in the document that corresponds + to the margin click.
marginThe margin number that was clicked.
+ +

SCN_NEEDSHOWN
+ Scintilla has determined that a range of lines that is currently invisible should be made + visible. An example of where this may be needed is if the end of line of a contracted fold + point is deleted. This message is sent to the container in case it wants to make the line + visible in some unusual way such as making the whole document visible. Most containers will + just ensure each line in the range is visible by calling SCI_ENSUREVISIBLE. The position and + length fields of SCNotification indicate the range of the document + that should be made visible. The container code will be similar to the following code + skeleton:

+
+firstLine = SCI_LINEFROMPOSITION(scn.position)
+lastLine = SCI_LINEFROMPOSITION(scn.position+scn.length-1)
+for line = lineStart to lineEnd do SCI_ENSUREVISIBLE(line) next
+
+ +

SCN_PAINTED
+ Painting has just been done. Useful when you want to update some other widgets based on a + change in Scintilla, but want to have the paint occur first to appear more responsive. There is + no other information in SCNotification.

+ +

SCN_USERLISTSELECTION
+ The user has selected an item in a user list. The + SCNotification fields used are:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldUsage
listTypeThis is set to the listType parameter from the SCI_USERLISTSHOW message that + initiated the list.
textThe text of the selection.
positionThe position the list was displayed at.
+
+ + +

SCN_URIDROPPED
+ Only on the GTK+ version. Indicates that the user has dragged a URI such as a file name or Web + address onto Scintilla. The container could interpret this as a request to open the file. The + text field of SCNotification points at the URI text.

+ +

SCN_DWELLSTART
+ SCN_DWELLEND
+ SCN_DWELLSTART is generated when the user keeps the mouse in one position for the + dwell period (see SCI_SETMOUSEDWELLTIME). SCN_DWELLEND is + generated after a SCN_DWELLSTART and the mouse is moved or other activity such as + key press indicates the dwell is over. Both notifications set the same fields in + SCNotification:

+ + + + + + + + + + + + + + + + + + + + + + + +
FieldUsage
positionThis is the nearest position in the document to the position where the + mouse pointer was lingering.
x, yWhere the pointer lingered. The position field is set to + SCI_POSITIONFROMPOINTCLOSE(x, y).
+
+ +

SCI_SETMOUSEDWELLTIME(int milliseconds)
+ SCI_GETMOUSEDWELLTIME
+ These two messages set and get the time the mouse must sit still, in milliseconds, to generate + a SCN_DWELLSTART notification. If + set to SC_TIME_FOREVER, the default, no dwell events are generated.

+ +

SCN_ZOOM
+ This notification is generated when the user zooms the display using the keyboard or the + SCI_SETZOOM method is called. This + notification can be used to recalculate positions, such as the width of the line number margin + to maintain sizes in terms of characters rather than pixels. SCNotification has no + additional information.

+ +

+ SCN_HOTSPOTCLICK
+ SCN_HOTSPOTDOUBLECLICK
+ SCN_HOTSPOTRELEASECLICK
+ These notifications are generated when the user clicks or double clicks on + text that is in a style with the hotspot attribute set. + This notification can be used to link to variable definitions or web pages. + The position field is set the text position of the click or + double click and the modifiers field set to the key modifiers + held down in a similar manner to SCN_KEY. + Only the state of the Ctrl key is reported for SCN_HOTSPOTRELEASECLICK.

+ +

+ SCN_INDICATORCLICK
+ SCN_INDICATORRELEASE
+ These notifications are generated when the user clicks or releases the mouse on + text that has an indicator. + The position field is set the text position of the click or + double click and the modifiers field set to the key modifiers + held down in a similar manner to SCN_KEY.

+ +

SCN_CALLTIPCLICK
+ This notification is generated when the user clicks on a calltip. + This notification can be used to display the next function prototype when a + function name is overloaded with different arguments. + The position field is set to 1 if the click is in an up arrow, + 2 if in a down arrow, and 0 if elsewhere.

+ +

SCN_AUTOCSELECTION
+ The user has selected an item in an autocompletion list. The + notification is sent before the selection is inserted. Automatic insertion can be cancelled by sending a + SCI_AUTOCCANCEL message + before returning from the notification. The SCNotification fields used are:

+ + + + + + + + + + + + + + + + + + + + + + +
FieldUsage
positionThe start position of the word being completed.
textThe text of the selection.
+ +

SCN_AUTOCCANCELLED
+ The user has cancelled an autocompletion list. + There is no other information in SCNotification.

+ +

SCN_AUTOCCHARDELETED
+ The user deleted a character while autocompletion list was active. + There is no other information in SCNotification.

+ +

SCN_FOCUSIN
+ SCN_FOCUSOUT
+ SCN_FOCUSIN (2028) is fired when Scintilla receives focus and + SCN_FOCUSOUT (2029) when it loses focus.

+ +

Images

+ +

Two formats are supported for images used in margin markers and autocompletion lists, RGBA and XPM.

+ +

RGBA

+ +

The RGBA format allows translucency with an alpha + value for each pixel. It is simpler than + XPM and more capable.

+ +

The data is a sequence of 4 byte pixel values starting with the pixels for the top line, with the + leftmost pixel first, then continuing with the pixels for subsequent lines. There is no gap between + lines for alignment reasons.

+ +

Each pixel consists of, in order, a red byte, a green byte, a blue byte and an alpha byte. + The colour bytes are not premultiplied by the alpha value. That is, a fully red pixel that is + 25% opaque will be [FF, 00, 00, 3F]

+ +

Since the RGBA pixel data does not include any size information the + width and height must previously been set with the + SCI_RGBAIMAGESETWIDTH and + SCI_RGBAIMAGESETHEIGHT messages.

+ +

GUI platforms often include functions for reading image file formats like PNG into memory + in the RGBA form or a similar form. + If there is no suitable platform support, the LodePNG and picoPNG libraries are small libraries + for loading and decoding PNG files available under a BSD-style license.

+ +

RGBA format is supported on Windows, GTK+ and OS X Cocoa.

+ +

XPM

+ +

The XPM format is + described here. + Scintilla is only able to handle XPM pixmaps that use one character per pixel with no named colours. + There may be a completely transparent colour named "None".

+

There are two forms of data structure used for XPM images, the first "lines form" format is well suited + to embedding an image inside C source code and the "text form" is suited to reading from a file. + In the lines form, an array of strings is used with the first string indicating the dimensions and number of colours + used. This is followed by a string for each colour and that section is followed by the image with one string per line. + The text form contains the same data as one null terminated block formatted as C source code starting + with a "/* XPM */" comment to mark the format.

+

Either format may be used with Scintilla APIs with the bytes at the location pointed to examined + to determine which format: if the bytes start with "/* XPM */" then it is treated as text form, + otherwise it is treated as lines form.

+ +

XPM format is supported on on all platforms.

+ +

GTK+

+

On GTK+, the following functions create a Scintilla widget, communicate with it and allow + resources to be released after all Scintilla widgets have been destroyed.

+ GtkWidget *scintilla_new()
+ void scintilla_set_id(ScintillaObject *sci, uptr_t id)
+ sptr_t scintilla_send_message(ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam)
+ void scintilla_release_resources()
+
+ +

GtkWidget *scintilla_new()
+ Create a new Scintilla widget. The returned pointer can be added to a container and displayed in the same way as other + widgets.

+ +

void scintilla_set_id(ScintillaObject *sci, uptr_t id)
+ Set the control ID which will be used in the idFrom field of the NotifyHeader structure of all + notifications for this instance. + This is equivalent to SCI_SETIDENTIFIER.

+ +

sptr_t scintilla_send_message(ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam)
+ The main entry point allows sending any of the messages described in this document.

+ +

void scintilla_release_resources()
+ Call this to free any remaining resources after all the Scintilla widgets have been destroyed.

+ +

Provisional messages

+ +

Complex new features may be added as 'provisional' to allow further changes to the API. + Provisional features may even be removed if experience shows they are a mistake.

+ +

Provisional features are displayed in this document with a distinctive background colour.

+ +

Some developers may want to only use features that are stable and have graduated from + provisional status. To avoid using provisional messages compile with the symbol + SCI_DISABLE_PROVISIONAL defined.

+ +

Deprecated messages and notifications

+ +

The following messages are currently supported to emulate existing Windows controls, but + they will be removed in future versions of Scintilla. If you use these messages you should + replace them with the Scintilla equivalent.

+
+WM_GETTEXT(int length, char *text)
+WM_SETTEXT(<unused>, const char *text)
+EM_GETLINE(int line, char *text)
+EM_REPLACESEL(<unused>, const char *text)
+EM_SETREADONLY
+EM_GETTEXTRANGE(<unused>, TEXTRANGE *tr)
+WM_CUT
+WM_COPY
+WM_PASTE
+WM_CLEAR
+WM_UNDO
+EM_CANUNDO
+EM_EMPTYUNDOBUFFER
+WM_GETTEXTLENGTH
+EM_GETFIRSTVISIBLELINE
+EM_GETLINECOUNT
+EM_GETMODIFY
+EM_SETMODIFY(bool isModified)
+EM_GETRECT(RECT *rect)
+EM_GETSEL(int *start, int *end)
+EM_EXGETSEL(<unused>, CHARRANGE *cr)
+EM_SETSEL(int start, int end)
+EM_EXSETSEL(<unused>, CHARRANGE *cr)
+EM_GETSELTEXT(<unused>, char *text)
+EM_LINEFROMCHAR(int position)
+EM_EXLINEFROMCHAR(int position)
+EM_LINEINDEX(int line)
+EM_LINELENGTH(int position)
+EM_SCROLL(int line)
+EM_LINESCROLL(int column, int line)
+EM_SCROLLCARET()
+EM_CANPASTE
+EM_CHARFROMPOS(<unused>, POINT *location)
+EM_POSFROMCHAR(int position, POINT *location)
+EM_SELECTIONTYPE
+EM_HIDESELECTION(bool hide)
+EM_FINDTEXT(int flags, FINDTEXTEX *ft)
+EM_FINDTEXTEX(int flags, FINDTEXTEX *ft)
+EM_GETMARGINS
+EM_SETMARGINS(EC_LEFTMARGIN or EC_RIGHTMARGIN or EC_USEFONTINFO, int val)
+EM_FORMATRANGE
+
+ +

The following are features that are only included if you define + INCLUDE_DEPRECATED_FEATURES in Scintilla.h. To ensure future + compatibility you should change them as indicated.

+ +

SC_CP_DBCS Deprecated
+ This was used to set a DBCS (Double Byte Character Set) mode on GTK+. + An explicit DBCS code page should be used when calling SCI_SETCODEPAGE

+ +

SCI_SETUSEPALETTE(bool allowPaletteUse) Deprecated
+ SCI_GETUSEPALETTE Deprecated
+ Scintilla no longer supports palette mode. The last version to support palettes was 2.29. + Any calls to these methods should be removed.

+ +

Edit messages never supported by Scintilla

+
+EM_GETWORDBREAKPROC EM_GETWORDBREAKPROCEX
+EM_SETWORDBREAKPROC EM_SETWORDBREAKPROCEX
+EM_GETWORDWRAPMODE EM_SETWORDWRAPMODE
+EM_LIMITTEXT EM_EXLIMITTEXT
+EM_SETRECT EM_SETRECTNP
+EM_FMTLINES
+EM_GETHANDLE EM_SETHANDLE
+EM_GETPASSWORDCHAR EM_SETPASSWORDCHAR
+EM_SETTABSTOPS
+EM_FINDWORDBREAK
+EM_GETCHARFORMAT EM_SETCHARFORMAT
+EM_GETOLEINTERFACE EM_SETOLEINTERFACE
+EM_SETOLECALLBACK
+EM_GETPARAFORMAT EM_SETPARAFORMAT
+EM_PASTESPECIAL
+EM_REQUESTRESIZE
+EM_GETBKGNDCOLOR EM_SETBKGNDCOLOR
+EM_STREAMIN EM_STREAMOUT
+EM_GETIMECOLOR EM_SETIMECOLOR
+EM_GETIMEOPTIONS EM_SETIMEOPTIONS
+EM_GETOPTIONS EM_SETOPTIONS
+EM_GETPUNCTUATION EM_SETPUNCTUATION
+EM_GETTHUMB
+EM_GETEVENTMASK
+EM_SETEVENTMASK
+EM_DISPLAYBAND
+EM_SETTARGETDEVICE
+
+ +

Scintilla tries to be a superset of the standard windows Edit and RichEdit controls wherever + that makes sense. As it is not intended for use in a word processor, some edit messages can not + be sensibly handled. Unsupported messages have no effect.

+ +

Building Scintilla

+ +

To build Scintilla or SciTE, see the README file present in both the Scintilla and SciTE + directories. For Windows, GCC 4.7 or Microsoft Visual C++ 2010 can be used + for building. For GTK+, GCC 4.1 or newer should be used. GTK+ 2.8+ and 3.x are + supported. The version of GTK+ installed should be detected automatically. + When both GTK+ 2 and GTK+ 3 are present, building for GTK+ 3.x requires defining GTK3 + on the command line.

+ +

Static linking

+ +

On Windows, Scintilla is normally used as a dynamic library as a .DLL file. If you want to + link Scintilla directly into your application .EXE or .DLL file, then the + STATIC_BUILD preprocessor symbol should be defined and + Scintilla_RegisterClasses called. STATIC_BUILD prevents compiling the + DllMain function which will conflict with any DllMain defined in your + code. Scintilla_RegisterClasses takes the HINSTANCE of your + application and ensures that the "Scintilla" window class is registered.

+ +

Ensuring lexers are linked into Scintilla

+ +

Depending on the compiler and linker used, the lexers may be stripped out. This is most + often caused when building a static library. To ensure the lexers are linked in, the + Scintilla_LinkLexers() function may be called.

+ +

Changing set of lexers

+ +

To change the set of lexers in Scintilla, add and remove lexer source files + (Lex*.cxx) from the scintilla/lexers directory and run the + scripts/LexGen.py script from the scripts directory to update the make files + and Catalogue.cxx. LexGen.py requires Python 2.5 or later. If you do + not have access to Python, you can hand edit Catalogue.cxx in a simple-minded way, + following the patterns of other lexers. The important thing is to include + LINK_LEXER(lmMyLexer); to correspond with the LexerModule + lmMyLexer(...); in your lexer source code.

+ +

Building with an alternative Regular Expression implementation

+ +

A simple interface provides support for switching the Regular Expressions engine at + compile time. You must implement RegexSearchBase for your chosen engine, + look at the built-in implementation BuiltinRegex to see how this is done. + You then need to implement the factory method CreateRegexSearch + to create an instance of your class. You must disable the built-in implementation by defining + SCI_OWNREGEX.

+ + + + diff --git a/doc/Scintilla/ScintillaDownload.html b/doc/Scintilla/ScintillaDownload.html new file mode 100644 index 0000000..5963c56 --- /dev/null +++ b/doc/Scintilla/ScintillaDownload.html @@ -0,0 +1,70 @@ + + + + + + + + + Download Scintilla + + + + + + + + +
+ Scintilla icon + + Download + Scintilla +
+ + + + +
+ + Windows   + + GTK+/Linux   + +
+

+ Download. +

+

+ The license for using Scintilla or SciTE is similar to that of Python + containing very few restrictions. +

+

+ Release 3.3.6 +

+

+ Source Code +

+ The source code package contains all of the source code for Scintilla but no binary + executable code and is available in +
    +
  • zip format (1300K) commonly used on Windows
  • +
  • tgz format (1200K) commonly used on Linux and compatible operating systems
  • +
+ Instructions for building on both Windows and Linux are included in the readme file. +

+ Windows Executable Code +

+ There is no download available containing only the Scintilla DLL. + However, it is included in the SciTE + executable full download as SciLexer.DLL. +

+ SciTE is a good demonstration of Scintilla. +

+

+ Previous versions can be downloaded from the history + page. +

+ + diff --git a/doc/Scintilla/ScintillaHistory.html b/doc/Scintilla/ScintillaHistory.html new file mode 100644 index 0000000..5615c8f --- /dev/null +++ b/doc/Scintilla/ScintillaHistory.html @@ -0,0 +1,9468 @@ + + + + + + + + + Scintilla and SciTE + + + + + + + + + +
+ Scintilla icon + + Scintilla + and SciTE +
+

+ History of Scintilla and SciTE +

+

+ Contributors +

+

+ Thanks to all the people that have contributed patches, bug reports and suggestions. +

+

+ Source code and documentation have been contributed by +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Atsuo IshimotoMark HammondFrancois Le CoguiecDale Nagata
Ralf ReinhardtPhilippe LhosteAndrew McKinlayStephan R. A. Deibel
Hans EckardtVassili BourdoMaksim LinRobin Dunn
John EhresmanSteffen GoeldnerDeepak S.Yann Gaillard
Aubin PaulJason DiamondAhmad BaitalmalPaul Winwood
Maxim BaranovRagnar HøjlandChristian ObrechtAndreas Neukoetter
Adam GatesSteve LhommeFerdinand PrantlJan Dries
Markus GritschTahir KaracaAhmad ZawawiLaurent le Tynevez
Walter BraeuAshley CambrellGarrett SerackHolger Schmidt
ActiveStateJames LarcombeAlexey YutkinJan Hercek
Richard PeclEdward K. ReamValery KondakoffSmári McCarthy
Clemens WyssSimon SteeleSerge A. BaranovXavier Nodet
Willy DevauxDavid ClainBrendon YensonVamsi Potluru
Praveen AmbekarAlan KnowlesKengo JinnoValentin Valchev
Marcos E. WurziusMartin AldersonRobert GustavssonJosé Fonseca
Holger KiemesFrancis IrvingScott KirkwoodBrian Quinlan
UbiMichael R. DuerigDeepak TDon Paul Beletsky
Gerhard KalabOlivier DagenaisJosh WingstromBruce Dodson
Sergey KoshcheyevChuan-jian ShenShane CaraveoAlexander Scripnik
Ryan ChristiansonMartin SteffensenJakub VránaThe Black Horus
Bernd KreussThomas LauerMike LansdaalYukihiro Nakai
Jochen TuchtGreg SmithSteve SchoettlerMauritius Thinnes
Darren SchroederPedro GuerreiroDan PetittBiswapesh Chattopadhyay
Kein-Hong ManPatrizio BekerleNigel HathawayHrishikesh Desai
Sergey PuljajevMathias RauenAngelo MandatoDenis Sureau
Kaspar SchiessChristoph HöslerJoão Paulo F FariasRon Schofield
Stefan WosnikMarius GheorgheNaba KumarSean O'Dell
Stefanos TogoulidisHans HagenJim CapeRoland Walter
Brian MosherNicholas NemtsevRoy WoodPeter-Henry Mander
Robert BoucherChristoph DalitzApril WhiteS. Umar
Trent MickFilip YaghobAvi YegudinVivi Orunitia
Manfred BeckerDimitris KeletsekisYuigaDavide Scola
Jason BoggsReinhold NiesnerJos van der ZandePescuma
Pavol BosikJohannes SchmidBlair McGlashanMikael Hultgren
Florian BalmerHadar RazHerr PfarrerBen Key
Gene BarryNiki SpahievCarsten SperberPhil Reid
Iago RubioRégis VaquetteMassimo CoràElias Pschernig
Chris JonesJosiah ReynoldsRobert Roessler rftp.comSteve Donovan
Jan Martin PettersenSergey PhilippovBorujoaMichael Owens
Franck MarciaMassimo Maria GhisalbertiFrank WunderlichJosepmaria Roca
Tobias EngvallSuzumizaki KimitakaMichael CartmellPascal Hurni
AndreRandy ButlerGeorg RitterMichael Goffioul
Ben HarperAdam StrzeleckiKamen StanevSteve Menard
Oliver YeohEric PromislowJoseph GalbraithJeffrey Ren
Armel AsselinJim PatteeFriedrich VedderSebastian Pipping
Andre ArpinStanislav MaslovskiMartin StoneFabien Proriol
mimirNicola CivranSnowMitchell Foral
Pieter HoltzhausenWaldemar AugustynJason HaslamSebastian Steinlechner
Chris RickardRob McMullenStefan SchwendelerCristian Adam
Nicolas ChachereauIstvan SzollosiXie RenhuiEnrico Tröger
Todd WhitemanYuval PapishinstantonSergio Lucato
VladVRODmitry MaslovchupakabraJuan Carlos Arevalo Baeza
Nick TreleavenStephen StaggJean-Paul IribarrenTim Gerundt
Sam HarwellBorisJason OsterGertjan Kloosterman
alexbodnSergiu DotencoAnders Karlssonozlooper
Marko NjezicEugen BitterChristoph BaumannChristopher Bean
Sergey KishchenkoKai LiuAndreas RumpfJames Moffatt
Yuzhou XinNic JansmaEvan JonesMike Lischke
Eric KiddmaXmoDavid SeverwrightJon Strait
Oliver KiddleEtienne GirondelHaimag RenAndrey Moskalyov
XaviToby InksterEric ForgeotColomban Wendling
NeoJordan RussellFarshid LashkariSam Rawlins
Michael MullinCarlos SSvimMartial Demolins
Tino WeinkaufJérôme LaforgeUdo LechnerMarco Falda
Dariusz KnocińskiBen FisherDon GobinJohn Yeung
AdobeElizabeth A. IrizarryMike SchroederMorten MacFly
Jaime GimenoThomas Linder PulsArtyom ZuikovGerrit
Occam's RazorBen BluemelDavid WolfendaleChris Angelico
Marat DukhanStefan WeilRex ConnRoss McKay
Bruno BarbieriGordon SmithdimitarSébastien Granjoux
zenikoJames RibeMarkus NißlMartin Panter
Mark YenPhilippe ElsassDimitar ZhekovFan Yang
Denis ShelomovskijdarmarJohn VellaChinh Nguyen
Sakshi VermaJoel B. MohlerIsiledhelVidya Wasi
G. HuByron HawkinsAlphaJohn Donoghue
kudahIgor ShaulaPavel BulochkinYosef Or Boczko
Brian GriffinÖzgür EmirNeomiOmegaPhil
SiegeLord
+

+ Images used in GTK+ version +

+
    +
  • + + Icons Copyright(C) 1998 by Dean S. Jones
    +
  • +
+

+ Release 3.3.6 +

+
    +
  • + Released 15 October 2013. +
  • +
  • + Added functions to help convert between substyles and base styles and between secondary and primary styles. + SCI_GETSTYLEFROMSUBSTYLE finds the base style of substyles. + Can be used to treat all substyles of a style equivalent to that style. + SCI_GETPRIMARYSTYLEFROMSTYLE finds the primary style of secondary styles. + StyleFromSubStyle and PrimaryStyleFromStyle methods were added to ILexerWithSubStyles so each lexer can implement these. +
  • +
  • + Lexer added for Rust language. + Feature #1024. +
  • +
  • + Avoid false matches in errorlist lexer which is used for the SciTE output pane + by stricter checking of ctags lines. +
  • +
  • + Perl lexer fixes bugs with multi-byte characters, including in HEREDOCs and PODs. + Bug #1528. +
  • +
  • + SQL folder folds 'create view' statements. + Feature #1020. +
  • +
  • + Visual Prolog lexer updated with better support for string literals and Unicode. + Feature #1025. +
  • +
  • + For SCI_SETIDENTIFIERS, \t, \r, and \n are allowed as well as space between identifiers. + Bug #1521. +
  • +
  • + Gaining and losing focus is now reported as a notification with the code set to SCN_FOCUSIN + or SCN_FOCUSOUT. + This allows clients to uniformly use notifications instead of commands. + Since there is no longer a need for commands they will be deprecated in a future version. + Clients should switch any code that currently uses SCEN_SETFOCUS or SCEN_KILLFOCUS. +
  • +
  • + On Cocoa, clients should use the delegate mechanism or subclass ScintillaView in preference + to registerNotifyCallback: which will be deprecated in the future. +
  • +
  • + On Cocoa, the ScintillaView.h header hides internal implementation details from Platform.h and ScintillaCocoa.h. + InnerView was renamed to SCIContentView and MarginView was renamed to SCIMarginView. + dealloc removed from @interface. +
  • +
  • + On Cocoa, clients may customize SCIContentView by subclassing both SCIContentView and ScintillaView + and implementing the contentViewClass class method on the ScintillaView subclass to return the class of + the SCIContentView subclass. +
  • +
  • + On Cocoa, fixed appearance of alpha rectangles to use specified alpha and colour for outline as well as corner size. + This makes INDIC_STRAIGHTBOX and INDIC_ROUNDBOX look correct. +
  • +
  • + On Cocoa, memory leak fixed for MarginView. +
  • +
  • + On Cocoa, make drag and drop work when destination view is empty. + Bug #1534. +
  • +
  • + On Cocoa, drag image fixed when view scrolled. +
  • +
  • + On Cocoa, SCI_POSITIONFROMPOINTCLOSE fixed when view scrolled. + Feature #1021. +
  • +
  • + On Cocoa, don't send selection change notification when scrolling. + Bug #1522. +
  • +
  • + On Qt, turn off idle events on destruction to prevent repeatedly calling idle. +
  • +
  • + Qt bindings in ScintillaEdit changed to use signed first parameter. +
  • +
  • + Compilation errors fixed on Windows and GTK+ with SCI_NAMESPACE. +
  • +
  • + On Windows, building with gcc will check if Direct2D headers are available and enable Direct2D if they are. +
  • +
  • + Avoid attempts to redraw empty areas when lexing beyond the currently visible lines. +
  • +
  • + Control more attributes of indicators in SciTE with find.mark.indicator and highlight.current.word.indicator + properties. +
  • +
  • + Fix SciTE bug with buffers becoming read-only. + Bug #1525. +
  • +
  • + Fix linking SciTE on non-Linux Unix systems with GNU toolchain by linking to libdl. + Bug #1523. +
  • +
  • + Fix SciTE on GTK+ 3.x incremental search to change foreground colour when no match as + changing background colour is difficult. +
  • +
+

+ Release 3.3.5 +

+
    +
  • + Released 31 August 2013. +
  • +
  • + Characters may be represented by strings. + In Unicode mode C1 control characters are represented by their mnemonics. +
  • +
  • + Added SCI_POSITIONRELATIVE to optimize navigation by character. +
  • +
  • + Option to allow mouse selection to switch to rectangular by pressing Alt after start of gesture. + Feature #1007. +
  • +
  • + Lexer added for KVIrc script. + Feature #1008. +
  • +
  • + Bash lexer fixed quoted HereDoc delimiters. + Bug #1500. +
  • +
  • + MS SQL lexer fixed ';' to appear as an operator. + Bug #1509. +
  • +
  • + Structured Text lexer fixed styling of enumeration members. + Bug #1508. +
  • +
  • + Fixed bug with horizontal caret position when margin changed. + Bug #1512. +
  • +
  • + Fixed bug on Cocoa where coordinates were relative to text subview instead of whole view. +
  • +
  • + Ensure selection redrawn correctly in two cases. + When switching from stream to rectangular selection with Alt+Shift+Up. + When reducing the range of an additional selection by moving mouse up. + Feature #1007. +
  • +
  • + Copy and paste of rectangular selections compatible with Borland Delphi IDE on Windows. + Feature #1002. + Bug #1513. +
  • +
  • + Initialize extended styles to the default style. +
  • +
  • + On Windows, fix painting on an explicit HDC when first paint attempt abandoned. +
  • +
  • + Qt bindings in ScintillaEdit made to work on 64-bit Unix systems. +
  • +
  • + Easier access to printing on Qt with formatRange method. +
  • +
  • + Fixed SciTE failure to save initial buffer in single buffer mode. + Bug #1339. +
  • +
  • + Fixed compilation problem with Visual C++ in non-English locales. + Bug #1506. +
  • +
  • + Disable Direct2D when compiling with MinGW gcc on Windows because of changes in the recent MinGW release. +
  • +
  • + SciTE crash fixed for negative line.margin.width. + Bug #1504. +
  • +
  • + SciTE fix for infinite dialog boxes when failing to automatically save a file. + Bug #1503. +
  • +
  • + SciTE settings buffered.draw, two.phase.draw, and technology are applied to the + output pane as well as the edit pane. +
  • +
+

+ Release 3.3.4 +

+
    +
  • + Released 19 July 2013. +
  • +
  • + Handling of UTF-8 and DBCS text in lexers improved with methods ForwardBytes and + GetRelativeCharacter added to StyleContext. + Bug #1483. +
  • +
  • + For Unicode text, case-insensitive searching and making text upper or lower case is now + compliant with Unicode standards on all platforms and is much faster for non-ASCII characters. +
  • +
  • + A CategoriseCharacter function was added to return the Unicode general category of a character + which can be useful in lexers. +
  • +
  • + On Cocoa, the LCD Optimized font quality level turns font smoothing on. +
  • +
  • + SciTE 'immediate' subsystem added to allow scripts that work while tools are executed. +
  • +
  • + Font quality exposed in SciTE as font.quality setting. +
  • +
  • + On Cocoa, message:... methods simplify direct access to Scintilla and avoid call layers.. +
  • +
  • + A68K lexer updated. +
  • +
  • + CoffeeScript lexer fixes a bug with comment blocks. + Bug #1495 +
  • +
  • + ECL lexer regular expression code fixed. + Bug #1491. +
  • +
  • + errorlist lexer only recognises Perl diagnostics when there is a filename between + "at" and "line". Had been triggering for MSVC errors containing "at line". +
  • +
  • + Haskell lexer fixed to avoid unnecessary full redraws. + Don't highlight CPP inside comments when styling.within.preprocessor is on. + Bug #1459. +
  • +
  • + Lua lexer fixes bug in labels with UTF-8 text. + Bug #1483. +
  • +
  • + Perl lexer fixes bug in string interpolation with UTF-8 text. + Bug #1483. +
  • +
  • + Fixed bugs with case conversion when the result was longer or shorter than the original text. + Could access past end of string potentially crashing. + Selection now updated to result length. +
  • +
  • + Fixed bug where data being inserted and removed was not being reported in + notification messages. Bug was introduced in 3.3.2. +
  • +
  • + Word wrap bug fixed where the last line could be shown twice. +
  • +
  • + Word wrap bug fixed for lines wrapping too short on Windows and GTK+. +
  • +
  • + Word wrap performance improved. +
  • +
  • + Minor memory leak fixed. + Bug #1487. +
  • +
  • + On Cocoa, fixed insertText: method which was broken when implementing a newer protocol. +
  • +
  • + On Cocoa, fixed a crash when performing string folding for bytes that do not represent a character + in the current encoding. +
  • +
  • + On Qt, fixed layout problem when QApplication construction delayed. +
  • +
  • + On Qt, find_text reports failure with -1 as first element of return value. +
  • +
  • + Fixed SciTE on GTK+ bug where a tool command could be performed using the keyboard while one was + already running leading to confusion and crashes. + Bug #1486. +
  • +
  • + Fixed SciTE bug in Copy as RTF which was limited to first 32 styles. + Bug #1011. +
  • +
  • + Fixed SciTE on Windows user strip height when the system text scaling factor is 125% or 150%. +
  • +
  • + Compile time checks for Digital Mars C++ removed. +
  • +
  • + Visual C++ 2013 supported. + Bug #1492. +
  • +
  • + Python scripts used for building and maintenance improved and moved into scripts directory. +
  • +
  • + Testing scripts now work on Linux using Qt and PySide. +
  • +
  • + Tk platform defined. + Implementation for Tk will be available separately from main Scintilla distribution. +
  • +
+

+ Release 3.3.3 +

+
    +
  • + Released 2 June 2013. +
  • +
  • + Lexer and folder added for Structured Text language. + Feature #959. +
  • +
  • + Out of bounds access fixed for GTK+. + Bug #1480. +
  • +
  • + Crash fixed for GTK+ on Windows paste. +
  • +
  • + Bug fixed with incorrect event copying on GTK+ 3.x. + Bug #1481. +
  • +
  • + Bug fixed with right to left locales, like Hebrew, on GTK+. + Bug #1477. +
  • +
  • + Bug fixed with undo grouping of tab and backtab commands. + Bug #1478. +
  • +
+

+ Release 3.3.2 +

+
    +
  • + Released 22 May 2013. +
  • +
  • + Basic implementations of common folding methods added to Scintilla to make it + easier for containers to implement folding. +
  • +
  • + Add indicator INDIC_COMPOSITIONTHICK, a thick low underline, to mimic an + appearance used for Asian language input composition. +
  • +
  • + On Cocoa, implement font quality setting. + Feature #988. +
  • +
  • + On Cocoa, implement automatic enabling of commands and added clear command. + Feature #987. +
  • +
  • + C++ lexer adds style for preprocessor doc comment. + Feature #990. +
  • +
  • + Haskell lexer and folder improved. Separate mode for literate Haskell "literatehaskell" SCLEX_LITERATEHASKELL. + Bug #1459 . +
  • +
  • + LaTeX lexer bug fixed for Unicode character following '\'. + Bug #1468 . +
  • +
  • + PowerShell lexer recognises here strings and doccomment keywords. + #region folding added. + Feature #985. +
  • +
  • + Fix multi-typing when two carets are located in virtual space on one line so that spaces + are preserved. +
  • +
  • + Fixes to input composition on Cocoa and implementation of accented character input through + press and hold. Set selection correctly so that changes to pieces of composition text are easier to perform. + Restore undo collection after a sequence of composition actions. + Composition popups appear near input. +
  • +
  • + Fix lexer problem where no line end was seen at end of document. +
  • +
  • + Fix crash on Cocoa when view deallocated. + Bug #1466. +
  • +
  • + Fix Qt window positioning to not assume the top right of a monitor is at 0, 0. +
  • +
  • + Fix Qt to not track mouse when widget is hidden. +
  • +
  • + Qt now supports Qt 5.0. + Bug #1448. +
  • +
  • + Fix drawing on Windows with Direct2D when returning from lock screen. + The render target had to be recreated and an area would be black since the drawing was not retried. +
  • +
  • + Fix display of DBCS documents on Windows Direct2D/DirectWrite with default character set. +
  • +
  • + For SciTE on Windows, fixed most-recently-used menu when files opened through check.if.already.opened. +
  • +
  • + In SciTE, do not call OnSave twice when files saved asynchronously. +
  • +
  • + Scintilla no longer builds with Visual C++ 6.0. +
  • +
+

+ Release 3.3.1 +

+
    +
  • + Released 11 April 2013. +
  • +
  • + Autocompletion lists can now appear in priority order or be sorted by Scintilla. + Feature #981. +
  • +
  • + Most lexers now lex an extra NUL byte at the end of the + document which makes it more likely they will classify keywords at document end correctly. + Bug #574, + Bug #588. +
  • +
  • + Haskell lexer improved in several ways. + Bug #1459. +
  • +
  • + Matlab/Octave lexer recognises block comments and ... comments. + Bug #1414. +
  • +
  • + Ruby lexer crash fixed with keyword at start of document. +
  • +
  • + The PLAT_NCURSES platform now called PLAT_CURSES as may work on other implementations. +
  • +
  • + Bug on Cocoa fixed where input composition with multiple selection or virtual space selection + could make undo stop working. +
  • +
  • + Direct2D/DirectWrite mode on Windows now displays documents in non-Latin1 8-bit encodings correctly. +
  • +
  • + Character positioning corrected in Direct2D/DirectWrite mode on Windows to avoid text moving and cutting off + lower parts of characters. +
  • +
  • + Position of calltip and autocompletion lists fixed on Cocoa. +
  • +
  • + While regular expression search in DBCS text is still not working, matching partial characters is now avoided + by moving end of match to end of character. +
  • +
+

+ Release 3.3.0 +

+
    +
  • + Released 30 March 2013. +
  • +
  • + Overlay scrollers and kinetic scrolling implemented on Cocoa. +
  • +
  • + To improve display smoothness, styling and UI Update notifications will, when possible, be performed in + a high-priority idle task on Cocoa instead of during painting. + Performing these jobs inside painting can cause paints to be abandoned and a new paint scheduled. + On GTK+, the high-priority idle task is used in more cases. +
  • +
  • + SCI_SCROLLRANGE added to scroll the view to display a range of text. + If the whole range can not be displayed, priority is given to one end. +
  • +
  • + C++ lexer no longer recognises raw (R"") strings when the first character after " + is invalid. + Bug #1454. +
  • +
  • + HTML lexer recognises JavaScript RegEx literals in more contexts. + Bug #1412. +
  • +
  • + Fixed automatic display of folded text when return pressed at end of fold header and + first folded line was blank. + Bug #1455. +
  • +
  • + SCI_VISIBLEFROMDOCLINE fixed to never return a line beyond the document end. +
  • +
  • + SCI_LINESCROLL fixed for a negative column offset. + Bug #1450. +
  • +
  • + On GTK+, fix tab markers so visible if indent markers are visible. + Bug #1453. +
  • +
+

+ Release 3.2.5 +

+
    +
  • + Released 26 February 2013. +
  • +
  • + To allow cooperation between different uses of extended (beyond 255) styles they should be allocated + using SCI_ALLOCATEEXTENDEDSTYLES. +
  • +
  • + For Unicode documents, lexers that use StyleContext will retrieve whole characters + instead of bytes. + LexAccessor provides a LineEnd method which can be a more efficient way to + handle line ends and can enable Unicode line ends. +
  • +
  • + The C++ lexer understands the #undef directive when determining preprocessor definitions. + Feature #978. +
  • +
  • + The errorlist lexer recognises gcc include path diagnostics that appear before an error. +
  • +
  • + Folding implemented for GetText (PO) translation language. + Bug #1437. +
  • +
  • + HTML lexer does not interrupt comment style for processing instructions. + Bug #1447. +
  • +
  • + Fix SciTE forgetting caret x-position when switching documents. + Bug #1442. +
  • +
  • + Fixed bug where vertical scrollbar thumb appeared at beginning of document when + scrollbar shown. + Bug #1446. +
  • +
  • + Fixed brace-highlighting bug on OS X 10.8 where matching brace is on a different line. +
  • +
  • + Provisional features + are new features that may change or be removed if they cause problems but should become + permanent if they work well. + For this release Unicode line ends and + substyles + are provisional features. +
  • +
+

+ Release 3.2.4 +

+
    +
  • + Released 17 January 2013. +
  • +
  • + Caret line highlight can optionally remain visible when window does not have focus. + Feature #964. +
  • +
  • + Delegate mechanism for notifications added on Cocoa. +
  • +
  • + NUL characters in selection are copied to clipboard as spaces to avoid truncating + at the NUL. + Bug #1289. +
  • +
  • + C++ lexer fixes problem with showing inactive sections when preprocessor lines contain trailing comment. + Bug #1413. +
  • +
  • + C++ lexer fixes problem with JavaScript regular expressions with '/' in character ranges. + Bug #1415. +
  • +
  • + LaTeX folder added. + Feature #970. +
  • +
  • + LaTeX lexer improves styling of math environments. + Feature #970. +
  • +
  • + MySQL lexer implements hidden commands. +
  • +
  • + Only produce a single undo step when autocompleting a single word. + Bug #1421. +
  • +
  • + Fixed crash when printing lines longer than 8000 characters. + Bug #1430. +
  • +
  • + Fixed problem in character movement extends selection mode where reversing + direction collapsed the selection. +
  • +
  • + Memory issues fixed on Cocoa, involving object ownership, + lifetime of timers, and images held by the info bar. + Bug #1436. +
  • +
  • + Cocoa key binding for Alt+Delete changed to delete previous word to be more compatible with + platform standards. +
  • +
  • + Fixed crash on Cocoa with scrollbar when there is no scrolling possible. + Bug #1416. +
  • +
  • + On Cocoa with retina display fixed positioning of autocompletion lists. +
  • +
  • + Fixed SciTE on Windows failure to run a batch file with a name containing a space by + quoting the path in the properties file. + Bug #1423. +
  • +
  • + Fixed scaling bug when printing on GTK+. + Bug #1427. +
  • +
  • + SciTE on GTK toolbar.detachable feature removed. +
  • +
  • + Fixed some background saving bugs in SciTE. + Bug #1366. + Bug #1339. +
  • +
+

+ Release 3.2.3 +

+
    +
  • + Released 21 October 2012. +
  • +
  • + Improve speed when performing multiple searches. +
  • +
  • + SciTE adds definition of PLAT_UNIX for both PLAT_GTK and PLAT_MAC to allow consolidation of + settings valid on all Unix variants. +
  • +
  • + Signal autoCompleteCancelled added on Qt. +
  • +
  • + Bash lexer supports nested delimiter pairs. + Feature #3569352. + Bug #1515556. + Bug #3008483. + Bug #3512208. + Bug #3515392. +
  • +
  • + For C/C++, recognise exponent in floating point hexadecimal literals. + Bug #3576454. +
  • +
  • + For C #include statements, do not treat // in the path as a comment. + Bug #3519260. +
  • +
  • + Lexer for GetText translations (PO) improved with additional styles and single instance limitation fixed. +
  • +
  • + Ruby for loop folding fixed. + Bug #3240902. + Bug #3567391. +
  • +
  • + Ruby recognition of here-doc after class or instance variable fixed. + Bug #3567809. +
  • +
  • + SQL folding of loop and case fixed. + Bug #3567905. +
  • +
  • + SQL folding of case with assignment fixed. + Bug #3571820. +
  • +
  • + Fix hang when removing all characters from indicator at end of document. +
  • +
  • + Fix failure of \xhh in regular expression search for values greater than 0x79. +
  • +
  • + On Cocoa on OS X 10.8, fix inverted drawing of find indicator. +
  • +
  • + On Cocoa, fix double drawing when horizontal scroll range small and user swipes horizontally. +
  • +
  • + On Cocoa, remove incorrect setting of save point when reading information through 'string' and 'selectedString'. +
  • +
  • + On Cocoa, fix incorrect memory management of infoBar. +
  • +
  • + On GTK+ 3 Ubuntu, fix crash when drawing margin. +
  • +
  • + On ncurses, fix excessive spacing with italics line end. +
  • +
  • + On Windows, search for D2D1.DLL and DWRITE.DLL in system directory to avoid loading from earlier + in path where could be planted by malware. +
  • +
+

+ Release 3.2.2 +

+
    +
  • + Released 31 August 2012. +
  • +
  • + Retina display support for Cocoa. Text size fixed. + Scale factor for images implemented so they can be displayed in high definition. +
  • +
  • + Implement INDIC_SQUIGGLEPIXMAP as a faster version of INDIC_SQUIGGLE. + Avoid poor drawing at right of INDIC_SQUIGGLE. + Align INDIC_DOTBOX to pixel grid for full intensity. +
  • +
  • + Implement SCI_GETSELECTIONEMPTY API. + Bug #3543121. +
  • +
  • + Added SCI_VCHOMEDISPLAY and SCI_VCHOMEDISPLAYEXTEND key commands. + Feature #3561433. +
  • +
  • + Allow specifying SciTE Find in Files directory with find.in.directory property. + Feature #3558594. +
  • +
  • + Override SciTE global strip.trailing.spaces with strip.trailing.spaces by pattern files. + Feature #3556320. +
  • +
  • + Fix long XML script tag handling in XML lexer. + Bug #3534190. +
  • +
  • + Fix rectangular selection range after backspace. + Bug #3543097. +
  • +
  • + Send SCN_UPDATEUI with SC_UPDATE_SELECTION for backspace in virtual space. + Bug #3543121. +
  • +
  • + Avoid problems when calltip highlight range is negative. + Bug #3545938. +
  • +
  • + On Cocoa, fix image drawing code so that image is not accessed after being freed + and is drawn in the correct location. +
  • +
  • + On Cocoa, limit horizontal touch scrolling to existing established width. +
  • +
  • + On Cocoa, decrease sensitivity of pinch-zoom. +
  • +
  • + Fix Cocoa drawing where style changes were not immediately visible. +
  • +
  • + Fix Cocoa memory leak due to reference cycle. +
  • +
  • + Fix Cocoa bug where notifications were sent after Scintilla was freed. +
  • +
  • + SciTE on OS X user shortcuts treats "Ctrl+D" as equivalent to "Ctrl+d". +
  • +
  • + On Windows, saving SciTE's Lua startup script causes it to run. +
  • +
  • + Limit time allowed to highlight current word in SciTE to 0.25 seconds to remain responsive. +
  • +
  • + Fixed SciTE read-only mode to stick with buffer. +
  • +
  • + For SciTE on Windows, enable Ctrl+Z, Ctrl+X, and Ctrl+C (Undo, Cut, and Copy) in the + editable fields of find and replace strips +
  • +
  • + Remove limit on logical line length in SciTE .properties files. + Bug #3544312. +
  • +
  • + Improve performance of SciTE Save As command. +
  • +
  • + Fix SciTE crash with empty .properties files. Bug #3545938. + Bug #3555308. +
  • +
  • + Fix repeated letter in SciTE calltips. + Bug #3545938. +
  • +
  • + Refine build time checking for Direct2D and DirectWrite. +
  • +
  • + Avoid potential build problems on Windows with MultiMon.h by explicitly checking for multi-monitor APIs. +
  • +
  • + Automatically disable themed drawing in SciTE when building on Windows 2000. + Reenable building for Windows NT 4 on NT 4 . +
  • +
  • + Added ncurses platform definitions. Implementation is maintained separately as + Scinterm. +
  • +
+

+ Release 3.2.1 +

+
    +
  • + Released 14 July 2012. +
  • +
  • + In Scintilla.iface, specify features as properties instead of functions where possible and fix some enumerations. +
  • +
  • + In SciTE Lua scripts, string properties in Scintilla API can be retrieved as well as set using property notation. +
  • +
  • + Added character class APIs: SCI_SETPUNCTUATIONCHARS, SCI_GETWORDCHARS, SCI_GETWHITESPACECHARS, + and SCI_GETPUNCTUATIONCHARS. + Feature #3529805. +
  • +
  • + Less/Hss support added to CSS lexer. + Feature #3532413. +
  • +
  • + C++ lexer style SCE_C_PREPROCESSORCOMMENT added for stream comments in preprocessor. + Bug #3487406. +
  • +
  • + Fix incorrect styling of inactive code in C++ lexer. + Bug #3533036. +
  • +
  • + Fix incorrect styling by C++ lexer after empty lines in preprocessor style. +
  • +
  • + C++ lexer option "lexer.cpp.allow.dollars" fixed so can be turned off after being on. + Bug #3541461. +
  • +
  • + Fortran fixed format lexer fixed to style comments from column 73. + Bug #3540486. +
  • +
  • + Fortran folder folds CRITICAL .. END CRITICAL. + Bug #3540486. +
  • +
  • + Fortran lexer fixes styling after comment line ending with '&'. + Bug #3087226. +
  • +
  • + Fortran lexer styles preprocessor lines so they do not trigger incorrect folding. + Bug #2906275. +
  • +
  • + Fortran folder fixes folding of nested ifs. + Bug #2809176. +
  • +
  • + HTML folder fixes folding of CDATA when fold.html.preprocessor=0. + Bug #3540491. +
  • +
  • + On Cocoa, fix autocompletion font lifetime issue and row height computation. +
  • +
  • + In 'choose single' mode, autocompletion will close an existing list if asked to display a single entry list. +
  • +
  • + Fixed SCI_MARKERDELETE to only delete one marker per call. + Bug #3535806. +
  • +
  • + Properly position caret after undoing coalesced delete operations. + Bug #3523326. +
  • +
  • + Ensure margin is redrawn when SCI_MARGINSETSTYLE called. +
  • +
  • + Fix clicks in first pixel of margins to send SCN_MARGINCLICK. +
  • +
  • + Fix infinite loop when drawing block caret for a zero width space character at document start. +
  • +
  • + Crash fixed for deleting negative range. +
  • +
  • + For characters that overlap the beginning of their space such as italics descenders and bold serifs, allow start + of text to draw 1 pixel into margin. + Bug #699587. + Bug #3537799. +
  • +
  • + Fixed problems compiling Scintilla for Qt with GCC 4.7.1 x64. +
  • +
  • + Fixed problem with determining GTK+ sub-platform caused when adding Qt support in 3.2.0. +
  • +
  • + Fix incorrect measurement of untitled file in SciTE on Linux leading to message "File ...' is 2147483647 bytes long". + Bug #3537764. +
  • +
  • + In SciTE, fix open of selected filename with line number to go to that line. +
  • +
  • + Fix problem with last visible buffer closing in SciTE causing invisible buffers to be active. +
  • +
  • + Avoid blinking of SciTE's current word highlight when output pane changes. +
  • +
  • + SciTE properties files can be longer than 60K. +
  • +
+

+ Release 3.2.0 +

+
    +
  • + Released 1 June 2012. +
  • +
  • + Platform layer added for the Qt open-source cross-platform application and user interface framework + for development in C++ or in Python with the PySide bindings for Qt. +
  • +
  • + Direct access provided to the document bytes for ranges within Scintilla. + This is similar to the existing SCI_GETCHARACTERPOINTER API but allows for better performance. +
  • +
  • + Ctrl+Double Click and Ctrl+Triple Click add the word or line to the set of selections. + Feature #3520037. +
  • +
  • + A SCI_DELETERANGE API was added for deleting a range of text. +
  • +
  • + Line wrap markers may now be drawn in the line number margin. + Feature #3518198. +
  • +
  • + SciTE on OS X adds option to hide hidden files in the open dialog box. +
  • +
  • + Lexer added for OScript language. + Feature #3523197. +
  • +
  • + Lexer added for Visual Prolog language. + Feature #3523018. +
  • +
  • + UTF-8 validity is checked more stringently and consistently. All 66 non-characters are now treated as invalid. +
  • +
  • + HTML lexer bug fixed with inconsistent highlighting for PHP when attribute on separate line from tag. + Bug #3520027. +
  • +
  • + HTML lexer bug fixed for JavaScript block comments. + Bug #3520032. +
  • +
  • + Annotation drawing bug fixed when box displayed with different colours on different lines. + Bug #3519872. +
  • +
  • + On Windows with Direct2D, fix drawing with 125% and 150% DPI system settings. +
  • +
  • + Virtual space selection bug fixed for rectangular selections. + Bug #3519246. +
  • +
  • + Replacing multiple selection with newline changed to only affect main selection. + Bug #3522251. +
  • +
  • + Replacing selection with newline changed to group deletion and insertion as a single undo action. + Bug #3522250. +
  • +
  • + Auto-completion lists on GTK+ 3 set height correctly instead of showing too few lines. +
  • +
  • + Mouse wheel scrolling changed to avoid GTK+ bug in recent distributions. +
  • +
  • + IME bug on Windows fixed for horizontal jump. + Bug #3529728. +
  • +
  • + SciTE case-insensitive autocompletion filters equal identifiers better. + Calltip arrows work with bare word identifiers. + Bug #3517810. +
  • +
  • + SciTE bug fixed where shbang lines not setting file type when switching + to file loaded in background. +
  • +
  • + SciTE on GTK+ shows open and save dialogs with the directory of the current file displayed. +
  • +
+

+ Release 3.1.0 +

+
    +
  • + Released 20 April 2012. +
  • +
  • + Animated find indicator added on Cocoa. +
  • +
  • + Buttons can be made default in SciTE user strips. +
  • +
  • + SciTE allows find and replace histories to be saved in session. +
  • +
  • + Option added to allow case-insensitive selection in auto-completion lists. + Bug #3516538. +
  • +
  • + Replace \0 by complete found text in regular expressions. + Feature #3510979. +
  • +
  • + Fixed single quoted strings in bash lexer. + Bug #3512208. +
  • +
  • + Incorrect highlighting fixed in C++ lexer for continued lines. + Bug #3509317. +
  • +
  • + Hang fixed in diff lexer. + Bug #3508602. +
  • +
  • + Folding improved for SQL CASE/MERGE statement. + Bug #3503277. +
  • +
  • + Fix extra drawing of selection inside word wrap indentation. + Bug #3515555. +
  • +
  • + Fix problem with determining the last line that needs styling when drawing. + Bug #3514882. +
  • +
  • + Fix problems with drawing in margins. + Bug #3514882. +
  • +
  • + Fix printing crash when using Direct2D to display on-screen. + Bug #3513946. +
  • +
  • + Fix SciTE bug where background.*.size disabled restoration of bookmarks and positions from session. + Bug #3514885. +
  • +
  • + Fixed the Move Selected Lines command when last line does not end with a line end character. + Bug #3511023. +
  • +
  • + Fix word wrap indentation printing to use printer settings instead of screen settings. + Bug #3512961. +
  • +
  • + Fix SciTE bug where executing an empty command prevented executing further commands + Bug #3512976. +
  • +
  • + Fix SciTE bugs with focus in user strips and made strips more robust with invalid definitions. +
  • +
  • + Suppress SciTE regular expression option when searching with find next selection. + Bug #3510985. +
  • +
  • + SciTE Find in Files command matches empty pattern to all files. + Feature #3495918. +
  • +
  • + Fix scroll with mouse wheel on GTK+. + Bug #3501321. +
  • +
  • + Fix column finding method so that tab is counted correctly. + Bug #3483713. +
  • +
+

+ Release 3.0.4 +

+
    +
  • + Released 8 March 2012. +
  • +
  • + SciTE scripts can create user interfaces as strips. +
  • +
  • + SciTE can save files automatically in the background. +
  • +
  • + Pinch zoom implemented on Cocoa. +
  • +
  • + ECL lexer added. + Feature #3488209. +
  • +
  • + CPP lexer fixes styling after document comment keywords. + Bug #3495445. +
  • +
  • + Pascal folder improves handling of some constructs. + Feature #3486385. +
  • +
  • + XML lexer avoids entering a bad mode due to complex preprocessor instructions. + Bug #3488060. +
  • +
  • + Duplicate command is always remembered as a distinct command for undo. + Bug #3495836. +
  • +
  • + SciTE xml.auto.close.tags no longer closes with PHP code similar to <a $this-> + Bug #3488067. +
  • +
  • + Fix bug where setting an indicator for the whole document would fail. + Bug #3487440. +
  • +
  • + Crash fixed for SCI_MOVESELECTEDLINESDOWN with empty vertical selection. + Bug #3496403. +
  • +
  • + Differences between buffered and unbuffered mode on Direct2D eliminated. + Bug #3495791. +
  • +
  • + Font leading implemented for Direct2D to improve display of character blobs. + Bug #3494744. +
  • +
  • + Fractional widths used for line numbers, character markers and other situations. + Bug #3494492. +
  • +
  • + Translucent rectangles drawn using Direct2D with sharper corners. + Bug #3494492. +
  • +
  • + RGBA markers drawn sharper when centred using Direct2D. + Bug #3494202. +
  • +
  • + RGBA markers are drawn centred when taller than line. + Bug #3494184. +
  • +
  • + Image marker drawing problem fixed for markers taller than line. + Bug #3493503. +
  • +
  • + Markers are drawn horizontally off-centre based on margin type instead of dimensions. + Bug #3488696. +
  • +
  • + Fold tail markers drawn vertically centred. + Feature #3488289. +
  • +
  • + On Windows, Scintilla is more responsive in wrap mode. + Bug #3487397. +
  • +
  • + Unimportant "Gdk-CRITICAL" messages are no longer displayed. + Bug #3488481. +
  • +
  • + SciTE on Windows Find in Files sets focus to dialog when already created; allows opening dialog when a job is running. + Bug #3480635. + Bug #3486657. +
  • +
  • + Fixed problems with multiple clicks in margin and with mouse actions combined with virtual space. + Bug #3484370. +
  • +
  • + Fixed bug with using page up and down and not returning to original line. + Bug #3485669. +
  • +
  • + Down arrow with wrapped text no longer skips lines. + Bug #1776560. +
  • +
  • + Fix problem with dwell ending immediately due to word wrap. + Bug #3484416. +
  • +
  • + Wrapped lines are rewrapped more consistently while resizing window. + Bug #3484179. +
  • +
  • + Selected line ends are highlighted more consistently. + Bug #3484330. +
  • +
  • + Fix grey background on files that use shbang to choose language. + Bug #3482777. +
  • +
  • + Fix failure messages from empty commands in SciTE. + Bug #3480645. +
  • +
  • + Redrawing reduced for some marker calls. + Feature #3493530. +
  • +
  • + Match brace and select brace commands work in SciTE output pane. + Feature #3486598. +
  • +
  • + Performing SciTE "Show Calltip" command when a calltip is already visible shows the next calltip. + Feature #3487017. +
  • +
  • + SciTE allows saving file even when file unchanged. + Feature #3486654. +
  • +
  • + SciTE allows optional use of character escapes in calltips. + Feature #3495239. +
  • +
  • + SciTE can open file:// URLs with Ctrl+Shift+O. + Feature #3495389. +
  • +
  • + Key modifiers updated for GTK+ on OS X to match upstream changes. +
  • +
  • + SciTE hang when marking all occurrences of regular expressions fixed. +
  • +
+

+ Release 3.0.3 +

+
    +
  • + Released 28 January 2012. +
  • +
  • + Printing works on GTK+ version 2.x as well as 3.x. +
  • +
  • + Lexer added for the AviSynth language. + Feature #3475611. +
  • +
  • + Lexer added for the Take Command / TCC scripting language. + Feature #3462462. +
  • +
  • + CSS lexer gains support for SCSS. + Feature #3268017. +
  • +
  • + CPP lexer fixes problems in the preprocessor structure caused by continuation lines. + Bug #3458508. +
  • +
  • + Errorlist lexer handles column numbers for GCC format diagnostics. + In SciTE, Next Message goes to column where this can be decoded from GCC format diagnostics. + Feature #3453075. +
  • +
  • + HTML folder fixes spurious folds on some tags. + Bug #3459262. +
  • +
  • + Ruby lexer fixes bug where '=' at start of file caused whole file to appear as a comment. + Bug #3452488. +
  • +
  • + SQL folder folds blocks of single line comments. + Feature #3467425. +
  • +
  • + On Windows using Direct2D, defer invalidation of render target until completion of painting to avoid failures. +
  • +
  • + Further support of fractional positioning. Spaces, tabs, and single character tokens can take fractional space + and wrapped lines are positioned taking fractional positions into account. + Bug #3471998. +
  • +
  • + On Windows using Direct2D, fix extra carets appearing. + Bug #3471998. +
  • +
  • + For autocompletion lists Page Up and Down move by the list height instead of by 5 lines. + Bug #3455493. +
  • +
  • + For SCI_LINESCROLLDOWN/UP don't select into virtual space. + Bug #3451681. +
  • +
  • + Fix fold highlight not being fully drawn. + Bug #3469936. +
  • +
  • + Fix selection margin appearing black when starting in wrap mode. +
  • +
  • + Fix crash when changing end of document after adding an annotation. + Bug #3476637. +
  • +
  • + Fix problems with building to make RPMs. + Bug #3476149. +
  • +
  • + Fix problem with building on GTK+ where recent distributions could not find gmodule. + Bug #3469056. +
  • +
  • + Fix problem with installing SciTE on GTK+ due to icon definition in .desktop file including an extension. + Bug #3476117. +
  • +
  • + Fix SciTE bug where new buffers inherited some properties from previously opened file. + Bug #3457060. +
  • +
  • + Fix focus when closing tab in SciTE with middle click. Focus moves to edit pane instead of staying on tab bar. + Bug #3440142. +
  • +
  • + For SciTE on Windows fix bug where Open Selected Filename for URL would append a file extension. + Feature #3459185. +
  • +
  • + For SciTE on Windows fix key handling of control characters in Parameters dialog so normal editing (Ctrl+C, ...) works. + Bug #3459345. +
  • +
  • + Fix SciTE bug where files became read-only after saving. Drop the "*" dirty marker after save completes. + Bug #3467432. +
  • +
  • + For SciTE handling of diffs with "+++" and "---" lines, also handle case where not followed by tab. + Go to correct line for diff "+++" message. + Bug #3467143. + Bug #3467178. +
  • +
  • + SciTE on GTK+ now performs threaded actions even on GTK+ versions before 2.12. +
  • +
+

+ Release 3.0.2 +

+
    +
  • + Released 9 December 2011. +
  • +
  • + SciTE saves files in the background without blocking the user interface. +
  • +
  • + Printing implemented in SciTE on GTK+ 3.x. +
  • +
  • + ILoader interface for background loading finalised and documented. +
  • +
  • + CoffeeScript lexer added. +
  • +
  • + C++ lexer fixes crash with "#if defined( XXX 1". +
  • +
  • + Crash with Direct2D on Windows fixed. +
  • +
  • + Backspace removing protected range fixed. + Bug #3445911. +
  • +
  • + Cursor setting failure on Windows when screen saver on fixed. + Bug #3438780. +
  • +
  • + SciTE on GTK+ hang fixed with -open:file option. + Bug #3441980. +
  • +
  • + Failure to evaluate shbang fixed in SciTE. + Bug #3441801. +
  • +
  • + SciTE failure to treat files starting with "<?xml" as XML fixed. + Bug #3440718. +
  • +
  • + Made untitled tab saveable when created by closing all files. + Bug #3440244. +
  • +
  • + SciTE crash fixed when using Scintillua. +
  • +
  • + SciTE revert command fixed so that undo works on individual actions instead of undoing to revert point. +
  • +
  • + Focus loss in SciTE when opening a recent file fixed. + Bug #3440142. +
  • +
  • + Fixed SciTE SelLength property to measure characters instead of bytes. + Bug #3283519. +
  • +
+

+ Release 3.0.1 +

+
    +
  • + Released 15 November 2011. +
  • +
  • + SciTE on Windows now runs Lua scripts directly on the main thread instead of starting them on a + secondary thread and then moving back to the main thread. +
  • +
  • + Highlight "else" as a keyword for TCL in the same way as other languages. + Bug #1836954. +
  • +
  • + Fix problems with setting fonts for autocompletion lists on Windows where + font handles were copied and later deleted causing a system default font to be used. +
  • +
  • + Fix font size used on Windows for Asian language input methods which sometimes led to IME not being visible. + Bug #3436753. +
  • +
  • + Fixed polygon drawing on Windows so fold symbols are visible again. + Bug #3433558. +
  • +
  • + Changed background drawing on GTK+ to allow for fractional character positioning as occurs on OS X + as this avoids faint lines at lexeme boundaries. +
  • +
  • + Ensure pixmaps allocated before painting as there was a crash when Scintilla drew without common initialisation calls. + Bug #3432354. +
  • +
  • + Fixed SciTE on Windows bug causing wrong caret position after indenting a selection. + Bug #3433433. +
  • +
  • + Fixed SciTE session saving to store buffer position matching buffer. + Bug #3434372. +
  • +
  • + Fixed leak of document objects in SciTE. +
  • +
  • + Recognise URL characters '?' and '%' for Open Selected command in SciTE. + Bug #3429409. +
  • +
+

+ Release 3.0.0 +

+
    +
  • + Released 1 November 2011. +
  • +
  • + Carbon platform support removed. OS X applications should switch to Cocoa. +
  • +
  • + On Windows Vista or newer, drawing may be performed with Direct2D and DirectWrite instead of GDI. +
  • +
  • + Cairo is now used for all drawing on GTK+. GDK drawing was removed. +
  • +
  • + Paletted display support removed. +
  • +
  • + Fractional font sizes can be specified. +
  • +
  • + Different weights of text supported on some platforms instead of just normal and bold. +
  • +
  • + Sub-pixel character positioning supported. +
  • +
  • + SciTE loads files in the background without blocking the user interface. +
  • +
  • + SciTE can display diagnostic messages interleaved with the text of files immediately after the + line referred to by the diagnostic. +
  • +
  • + New API to see if all lines are visible which can be used to optimize processing fold structure notifications. +
  • +
  • + Scrolling optimized by avoiding invalidation of fold margin when redrawing whole window. +
  • +
  • + Optimized SCI_MARKERNEXT. +
  • +
  • + C++ lexer supports Pike hash quoted strings when turned on with lexer.cpp.hashquoted.strings. +
  • +
  • + Fixed incorrect line height with annotations in wrapped mode when there are multiple views. + Bug #3388159. +
  • +
  • + Calltips may be displayed above the text as well as below. + Bug #3410830. +
  • +
  • + For huge files SciTE only examines the first megabyte for newline discovery. +
  • +
  • + SciTE on GTK+ removes the fileselector.show.hidden property and check box as this was buggy and GTK+ now + supports an equivalent feature. + Bug #3413630. +
  • +
  • + SciTE on GTK+ supports mnemonics in dynamic menus. +
  • +
  • + SciTE on GTK+ displays the user's home directory as '~' in menus to make them shorter. +
  • +
+

+ Release 2.29 +

+
    +
  • + Released 16 September 2011. +
  • +
  • + To automatically discover the encoding of a file when opening it, SciTE can run a program set with command.discover.properties. + Feature #3324341. +
  • +
  • + Cairo always used for drawing on GTK+. +
  • +
  • + The set of properties files imported by SciTE can be controlled with the properties imports.include and imports.exclude. + The import statement has been extended to allow "import *". + The properties files for some languages are no longer automatically loaded by default. The properties files affected are + avenue, baan, escript, lot, metapost, and mmixal. +
  • +
  • + C++ lexer fixed a bug with raw strings being recognised too easily. + Bug #3388122. +
  • +
  • + LaTeX lexer improved with more states and fixes to most outstanding bugs. + Bug #1493111. + Bug #1856356. + Bug #3081692. +
  • +
  • + Lua lexer updates for Lua 5.2 beta with goto labels and "\z" string escape. + Feature #3386330. +
  • +
  • + Perl string styling highlights interpolated variables. + Feature #3394258. + Bug #3076629. +
  • +
  • + Perl lexer updated for Perl 5.14.0 with 0X and 0B numeric literal prefixes, break keyword and "+" supported in subroutine prototypes. + Feature #3388802. +
  • +
  • + Perl bug fixed with CRLF line endings. +
  • +
  • + Markdown lexer fixed to not change state with "_" in middle of word. + Bug #3398184. +
  • +
  • + Cocoa restores compatibility with OS X 10.5. +
  • +
  • + Mouse pointer changes over selection to an arrow near start when scrolled horizontally. + Bug #3389055. +
  • +
  • + Indicators that finish at the end of the document no longer expand when text is appended. + Bug #3378718. +
  • +
  • + SparseState merge fixed to check if other range is empty. + Bug #3387053. +
  • +
  • + On Windows, autocompletion lists will scroll instead of document when mouse wheel spun. + Feature #3403600. +
  • +
  • + SciTE performs more rapid polling for command completion so will return faster and report more accurate times. +
  • +
  • + SciTE resizes panes proportionally when switched between horizontal and vertical layout. + Feature #3376784. +
  • +
  • + SciTE on GTK+ opens multiple files into a single instance more reliably. + Bug #3363754. +
  • +
+

+ Release 2.28 +

+
    +
  • + Released 1 August 2011. +
  • +
  • + GTK+ Cairo support works back to GTK+ version 2.8. Requires changing Scintilla source code to enable before GTK+ 2.22. + Bug #3322351. +
  • +
  • + Translucent images in RGBA format can be used for margin markers and in autocompletion lists. +
  • +
  • + INDIC_DOTBOX added as a translucent dotted rectangular indicator. +
  • +
  • + Asian text input using IME works for GTK+ 3.x and GTK+ 2.x with Cairo. +
  • +
  • + On GTK+, IME works for Ctrl+Shift+U Unicode input in Scintilla. For SciTE, Ctrl+Shift+U is still Make Selection Uppercase. +
  • +
  • + Key bindings for GTK+ on OS X made compatible with Cocoa port and platform conventions. +
  • +
  • + Cocoa port supports different character encodings, improves scrolling performance and drag image appearance. + The control ID is included in WM_COMMAND notifications. Text may be deleted by dragging to the trash. + ScrollToStart and ScrollToEnd key commands added to simplify implementation of standard OS X Home and End + behaviour. +
  • +
  • + SciTE on GTK+ uses a paned widget to contain the edit and output panes instead of custom code. + This allows the divider to be moved easily on GTK+ 3 and its appearance follows GTK+ conventions more closely. +
  • +
  • + SciTE builds and installs on BSD. + Bug #3324644. +
  • +
  • + Cobol supports fixed format comments. + Bug #3014850. +
  • +
  • + Mako template language block syntax extended and ## comments recognised. + Feature #3325178. + Bug #3318818. +
  • +
  • + Folding of Mako template language within HTML fixed. + Bug #3324563. +
  • +
  • + Python lexer has lexer.python.keywords2.no.sub.identifiers option to avoid highlighting second set of + keywords following '.'. + Bug #3325333. +
  • +
  • + Python folder fixes bug where fold would not extend to final line. + Bug #3349157. +
  • +
  • + SciTE treats LPEG lexers the same as script lexers by setting all 8 style bits. +
  • +
  • + For Cocoa, crashes with unsupported font variants and memory leaks for colour objects fixed. +
  • +
  • + Shift-JIS lead byte ranges modified to match Windows. +
  • +
  • + Mouse pointer changes over selection to an arrow more consistently. + Bug #3315756. +
  • +
  • + Bug fixed with annotations beyond end of document. + Bug #3347268. +
  • +
  • + Incorrect drawing fixed for combination of background colour change and translucent selection. + Bug #3377116. +
  • +
  • + Lexers initialized correctly when started at position other than start of line. + Bug #3377148. +
  • +
  • + Fold highlight drawing fixed for some situations. + Bug #3323015. + Bug #3323805. +
  • +
  • + Case insensitive search fixed for cases where folded character uses fewer bytes than base character. + Bug #3362038. +
  • +
  • + SciTE bookmark.alpha setting fixed. + Bug #3373907. +
  • +
+

+ Release 2.27 +

+
    +
  • + Released 20 June 2011. +
  • +
  • + On recent GTK+ 2.x versions when using Cairo, bug fixed where wrong colours were drawn. +
  • +
  • + SciTE on GTK+ slow performance in menu maintenance fixed. + Bug #3315233. +
  • +
  • + Cocoa platform supports 64-bit builds and uses only non-deprecated APIs. + Asian Input Method Editors are supported. + Autocompletion lists and calltips implemented. + Control identifier used in notifications. +
  • +
  • + On Cocoa, rectangular selection now uses Option/Alt key to be compatible with Apple Human + Interface Guidelines and other applications. + The Control key is reported with an SCMOD_META modifier bit. +
  • +
  • + API added for setting and retrieving the identifier number used in notifications. +
  • +
  • + SCI_SETEMPTYSELECTION added to set selection without scrolling or redrawing more than needed. + Feature #3314877. +
  • +
  • + Added new indicators. INDIC_DASH and INDIC_DOTS are variants of underlines. + INDIC_SQUIGGLELOW indicator added as shorter alternative to INDIC_SQUIGGLE for small fonts. + Bug #3314591 +
  • +
  • + Margin line selection can be changed to select display lines instead of document lines. + Bug #3312763. +
  • +
  • + On Windows, SciTE can perform reverse searches by pressing Shift+Enter + in the Find or Replace strips or dialogs. +
  • +
  • + Matlab lexer does not special case '\' in single quoted strings. + Bug #948757 + Bug #1755950 + Bug #1888738 + Bug #3316852. +
  • +
  • + Verilog lexer supports SystemVerilog folding and keywords. +
  • +
  • + Font leak fixed. + Bug #3306156. +
  • +
  • + Automatic scrolling works for long wrapped lines. + Bug #3312763. +
  • +
  • + Multiple typing works for cases where selections collapse together. + Bug #3309906. +
  • +
  • + Fold expanded when needed in word wrap mode. + Bug #3291579. +
  • +
  • + Bug fixed with edge drawn in wrong place on wrapped lines. + Bug #3314807. +
  • +
  • + Bug fixed with unnecessary scrolling for SCI_GOTOLINE. + Bug #3303406. +
  • +
  • + Bug fixed where extra step needed to undo SCI_CLEAR in virtual space. + Bug #3159691. +
  • +
  • + Regular expression search fixed for \$ on last line of search range. + Bug #3313746. +
  • +
  • + SciTE performance improved when switching to a tab with a very large file. + Bug #3311421. +
  • +
  • + On Windows, SciTE advanced search remembers the "Search only in this style" setting. + Bug #3313344. +
  • +
  • + On GTK+, SciTE opens help using "xdg-open" instead of "netscape" as "netscape" no longer commonly installed. + Bug #3314377. +
  • +
  • + SciTE script lexers can use 256 styles. +
  • +
  • + SciTE word highlight works for words containing DBCS characters. + Bug #3315173. +
  • +
  • + Compilation fixed for wxWidgets. + Bug #3306156. +
  • +
+

+ Release 2.26 +

+
    +
  • + Released 25 May 2011. +
  • +
  • + Folding margin symbols can be highlighted for the current folding block. + Feature #3147069. +
  • +
  • + Selected lines can be moved up or down together. + Feature #3304850. +
  • +
  • + SciTE can highlight all occurrences of the current word or selected text. + Feature #3291636. +
  • +
  • + Experimental GTK+ 3.0 support: build with "make GTK3=1". +
  • +
  • + INDIC_STRAIGHTBOX added. Is similar to INDIC_ROUNDBOX but without rounded corners. + Bug #3290435. +
  • +
  • + Can show brace matching and mismatching with indicators instead of text style. + Translucency of outline can be altered for INDIC_ROUNDBOX and INDIC_STRAIGHTBOX. + Feature #3290434. +
  • +
  • + SciTE can automatically indent python by examining previous line for scope-starting ':' with indent.python.colon. +
  • +
  • + Batch file lexer allows braces '(' or ')' inside variable names. +
  • +
  • + The cpp lexer only recognises Vala triple quoted strings when lexer.cpp.triplequoted.strings property is set. + Bug #3239234. +
  • +
  • + Make file lexer treats a variable with a nested variable like $(f$(qx)b) as one variable. + Bug #3298223. +
  • +
  • + Folding bug fixed for JavaScript with nested PHP. + Bug #3193530. +
  • +
  • + HTML lexer styles Django's {# #} comments. + Bug #3013798. +
  • +
  • + HTML lexer styles JavaScript regular expression correctly for /abc/i.test('abc');. + Bug #3209108. +
  • +
  • + Inno Setup Script lexer now works properly when it restarts from middle of [CODE] section. + Bug #3283880. + Bug #3129044. +
  • +
  • + Lua lexer updated for Lua 5.2 with hexadecimal floating-point numbers and '\*' whitespace escaping in strings. + Feature #3243811. +
  • +
  • + Perl folding folds "here doc"s and adds options fold.perl.at.else and fold.perl.comment.explicit. Fold structure for Perl fixed. + Feature #3112671. + Bug #3265401. +
  • +
  • + Python lexer supports cpdef keyword for Cython. + Bug #3279728. +
  • +
  • + SQL folding option lexer.sql.fold.at.else renamed to fold.sql.at.else. + Bug #3271474. +
  • +
  • + SQL lexer no longer treats ';' as terminating a comment. + Bug #3196071. +
  • +
  • + Text drawing and measurement segmented into smaller runs to avoid platform bugs. + Bug #3277449. + Bug #3165743. +
  • +
  • + SciTE on Windows adds temp.files.sync.load property to open dropped temporary files synchronously as they may + be removed before they can be opened asynchronously. + Bug #3072009. +
  • +
  • + Bug fixed with indentation guides ignoring first line in SC_IV_LOOKBOTH mode. + Bug #3291317. +
  • +
  • + Bugs fixed in backward regex search. + Bug #3292659. +
  • +
  • + Bugs with display of folding structure fixed for wrapped lines and where there is a fold header but no body. + Bug #3291579. + Bug #3265401. +
  • +
  • + SciTE on Windows cursor changes to an arrow now when over horizontal splitter near top of window. + Bug #3286620. +
  • +
  • + Fixed default widget size problem on GTK+. + Bug #3267892. +
  • +
  • + Fixed font size when using Cairo on GTK+. + Bug #3272662. +
  • +
  • + Fixed primary selection and cursor issues on GTK+ when unrealized then realized. + Bug #3256153. +
  • +
  • + Right click now cancels selection on GTK+ like on Windows. + Bug #3235190. +
  • +
  • + SciTE on GTK+ implements z-order buffer switching like on Windows. + Bug #3228384. +
  • +
  • + Improve selection position after SciTE Insert Abbreviation command when abbreviation expansion includes '|'. +
  • +
+

+ Release 2.25 +

+
    +
  • + Released 21 March 2011. +
  • +
  • + SparseState class makes it easier to write lexers which have to remember complex state between lines. +
  • +
  • + Visual Studio project (.dsp) files removed. The make files should be used instead as described in the README. +
  • +
  • + Modula 3 lexer added along with SciTE support. + Feature #3173374. +
  • +
  • + Asm, Basic, and D lexers add extra folding properties. +
  • +
  • + Raw string literals for C++0x supported in C++ lexer. +
  • +
  • + Triple-quoted strings used in Vala language supported in C++ lexer. + Feature #3177601. +
  • +
  • + The errorlist lexer used in SciTE's output pane colours lines that start with '<' as diff deletions. + Feature #3172878. +
  • +
  • + The Fortran lexer correctly folds type-bound procedures from Fortran 2003. +
  • +
  • + LPeg lexer support‎ improved in SciTE. +
  • +
  • + SciTE on Windows-64 fixes for menu localisation and Lua scripts. + Bug #3204502. +
  • +
  • + SciTE on Windows avoids locking folders when using the open or save dialogs. + Bug #1795484. +
  • +
  • + Diff lexer fixes problem where diffs of diffs producing lines that start with "----". + Bug #3197952. +
  • +
  • + Bug fixed when searching upwards in Chinese code page 936. + Bug #3176271. +
  • +
  • + On Cocoa, translucent drawing performed as on other platforms instead of 2.5 times less translucent. +
  • +
  • + Performance issue and potential bug fixed on GTK+ with caret line for long lines. +
  • +
+

+ Release 2.24 +

+
    +
  • + Released 3 February 2011. +
  • +
  • + Fixed memory leak in GTK+ Cairo code. + Feature #3157655. +
  • +
  • + Insert Abbreviation dialog added to SciTE on GTK+. +
  • +
  • + SCN_UPDATEUI notifications received when window scrolled. An 'updated' bit mask indicates which + types of update have occurred from SC_UPDATE_SELECTION, SC_UPDATE_CONTENT, SC_UPDATE_H_SCROLL + or SC_UPDATE_V_SCROLL. + Feature #3125977. +
  • +
  • + On Windows, to ensure reverse arrow cursor matches platform default, it is now generated by + reflecting the platform arrow cursor. + Feature #3143968. +
  • +
  • + Can choose mouse cursor used in margins. + Feature #3161326. +
  • +
  • + On GTK+, SciTE sets a mime type of text/plain in its .desktop file so that it will appear in the shell context menu. + Feature #3137126. +
  • +
  • + Bash folder handles here docs. + Feature #3118223. +
  • +
  • + C++ folder adds fold.cpp.syntax.based, fold.cpp.comment.multiline, fold.cpp.explicit.start, fold.cpp.explicit.end, + and fold.cpp.explicit.anywhere properties to allow more control over folding and choice of explicit fold markers. +
  • +
  • + C++ lexer fixed to always handle single quote strings continued past a line end. + Bug #3150522. +
  • +
  • + Ruby folder handles here docs. + Feature #3118224. +
  • +
  • + SQL lexer allows '.' to be part of words. + Feature #3103129. +
  • +
  • + SQL folder handles case statements in more situations. + Feature #3135027. +
  • +
  • + SQL folder adds fold points inside expressions based on bracket structure. + Feature #3165488. +
  • +
  • + SQL folder drops fold.sql.exists property as 'exists' is handled automatically. + Bug #3164194. +
  • +
  • + SciTE only forwards properties to lexers when they have been explicitly set so the defaults set by lexers are used + rather than 0. +
  • +
  • + Mouse double click word selection chooses the word around the character under the mouse rather than + the inter-character position under the mouse. This makes double clicking select what the user is pointing + at and avoids selecting adjacent non-word characters. + Bug #3111174. +
  • +
  • + Fixed mouse double click to always perform word select, not line select. + Bug #3143635. +
  • +
  • + Right click cancels autocompletion. + Bug #3144531. +
  • +
  • + Fixed multiPaste to work when additionalSelectionTyping off. + Bug #3126221. +
  • +
  • + Fixed virtual space problems when text modified at caret. + Bug #3154986. +
  • +
  • + Fixed memory leak in lexer object code. + Bug #3133672. +
  • +
  • + Fixed SciTE on GTK+ search failure when using regular expression. + Bug #3156217. +
  • +
  • + Avoid unnecessary full window redraw for SCI_GOTOPOS. + Feature #3146650. +
  • +
  • + Avoid unnecessary redraw when indicator fill range makes no real change. +
  • +
+

+ Release 2.23 +

+
    +
  • + Released 7 December 2010. +
  • +
  • + On GTK+ version 2.22 and later, drawing is performed with Cairo rather than GDK. + This is in preparation for GTK+ 3.0 which will no longer support GDK drawing. + The appearance of some elements will be different with Cairo as it is anti-aliased and uses sub-pixel positioning. + Cairo may be turned on for GTK+ versions before 2.22 by defining USE_CAIRO although this has not + been extensively tested. +
  • +
  • + New lexer a68k for Motorola 68000 assembler. + Feature #3101598. +
  • +
  • + Borland C++ is no longer supported for building Scintilla or SciTE on Windows. +
  • +
  • + Performance improved when creating large rectangular selections. +
  • +
  • + PHP folder recognises #region and #endregion comments. + Feature #3101624. +
  • +
  • + SQL lexer has a lexer.sql.numbersign.comment option to turn off use of '#' comments + as these are a non-standard feature only available in some implementations. + Feature #3098071. +
  • +
  • + SQL folder recognises case statements and understands the fold.at.else property. + Bug #3104091. + Bug #3107362. +
  • +
  • + SQL folder fixes bugs with end statements when fold.sql.only.begin=1. + Bug #3104091. +
  • +
  • + SciTE on Windows bug fixed with multi-line tab bar not adjusting correctly when maximizing and demaximizing. + Bug #3097517. +
  • +
  • + Crash fixed on GTK+ when Scintilla widget destroyed while it still has an outstanding style idle pending. +
  • +
  • + Bug fixed where searching backwards in DBCS text (code page 936 or similar) failed to find occurrences at the start of the line. + Bug #3103936. +
  • +
  • + SciTE on Windows supports Unicode file names when executing help applications with winhelp and htmlhelp subsystems. +
  • +
+

+ Release 2.22 +

+
    +
  • + Released 27 October 2010. +
  • +
  • + SciTE includes support for integrating with Scintillua which allows lexers to be implemented in Lua as a + Parsing Expression Grammar (PEG). +
  • +
  • + Regular expressions allow use of '?' for non-greedy matches or to match 0 or 1 instances of an item. +
  • +
  • + SCI_CONTRACTEDFOLDNEXT added to allow rapid retrieval of folding state. +
  • +
  • + SCN_HOTSPOTRELEASECLICK notification added which is similar to SCN_HOTSPOTCLICK but occurs + when the mouse is released. + Feature #3082409. +
  • +
  • + Command added for centring current line in window. + Feature #3064696. +
  • +
  • + SciTE performance improved by not examining document for line ends when switching buffers and not + storing folds when folding turned off. +
  • +
  • + Bug fixed where scrolling to ensure the caret is visible did not take into account all pixels of the line. + Bug #3081721. +
  • +
  • + Bug fixed for autocompletion list overlapping text when WS_EX_CLIENTEDGE used. + Bug #3079778. +
  • +
  • + After autocompletion, the caret's X is updated. + Bug #3079114. +
  • +
  • + On Windows, default to the system caret blink time. + Feature #3079784. +
  • +
  • + PgUp/PgDn fixed to allow virtual space. + Bug #3077452. +
  • +
  • + Crash fixed when AddMark and AddMarkSet called with negative argument. + Bug #3075074. +
  • +
  • + Dwell notifications fixed so that they do not occur when the mouse is outside Scintilla. + Bug #3073481. +
  • +
  • + Bash lexer bug fixed for here docs starting with <<-. + Bug #3063822. +
  • +
  • + C++ lexer bug fixed for // comments that are continued onto a second line by a \. + Bug #3066031. +
  • +
  • + C++ lexer fixes wrong highlighting for float literals containing +/-. + Bug #3058924. +
  • +
  • + JavaScript lexer recognise regexes following return keyword.‎ + Bug #3062287. +
  • +
  • + Ruby lexer handles % quoting better and treats range dots as operators in 1..2 and 1...2. + Ruby folder handles "if" keyword used as a modifier even when it is separated from the modified statement by an escaped new line. + Bug #2093767. + Bug #3058496. +
  • +
  • + Bug fixed where upwards search failed with DBCS code pages. + Bug #3065912. +
  • +
  • + SciTE has a default Lua startup script name distributed in SciTEGlobal.properties. + No error message is displayed if this file does not exist. +
  • +
  • + SciTE on Windows tab control height is calculated better. + Bug #2635702. +
  • +
  • + SciTE on Windows uses better themed check buttons in find and replace strips. +
  • +
  • + SciTE on Windows fixes bug with Find strip appearing along with Incremental Find strip. +
  • +
  • + SciTE setting find.close.on.find added to allow preventing the Find dialog from closing. +
  • +
  • + SciTE on Windows attempts to rerun commands that fail by prepending them with "cmd.exe /c". + This allows commands built in to the command processor like "dir" to run. +
  • +
+

+ Release 2.21 +

+
    +
  • + Released 1 September 2010. +
  • +
  • + Asian Double Byte Character Set (DBCS) support improved. + Case insensitive search works and other operations are much faster. + Bug #2999125, + Bug #2774616, + Bug #2991942, + Bug #3005688. +
  • +
  • + Scintilla on GTK+ uses only non-deprecated APIs (for GTK+ 2.20) except for GdkFont and GdkFont use can be disabled + with the preprocessor symbol DISABLE_GDK_FONT. +
  • +
  • + IDocument interface used by lexers adds BufferPointer and GetLineIndentation methods. +
  • +
  • + On Windows, clicking sets focus before processing the click or sending notifications. +
  • +
  • + Bug on OS X (macosx platform) fixed where drag/drop overwrote clipboard. + Bug #3039732. +
  • +
  • + GTK+ drawing bug when the view was horizontally scrolled more than 32000 pixels fixed. +
  • +
  • + SciTE bug fixed with invoking Complete Symbol from output pane. + Bug #3050957. +
  • +
  • + Bug fixed where it was not possible to disable folding. + Bug #3040649. +
  • +
  • + Bug fixed with pressing Enter on a folded fold header line not opening the fold. + Bug #3043419. +
  • +
  • + SciTE 'Match case' option in find and replace user interfaces changed to 'Case sensitive' to allow use of 'v' + rather than 'c' as the mnemonic. +
  • +
  • + SciTE displays stack trace for Lua when error occurs.. + Bug #3051397. +
  • +
  • + SciTE on Windows fixes bug where double clicking on error message left focus in output pane. + Bug #1264835. +
  • +
  • + SciTE on Windows uses SetDllDirectory to avoid a security problem. +
  • +
  • + C++ lexer crash fixed with preprocessor expression that looked like division by 0. + Bug #3056825. +
  • +
  • + Haskell lexer improved. + Feature #3039490. +
  • +
  • + HTML lexing fixed around Django {% %} tags. + Bug #3034853. +
  • +
  • + HTML JavaScript lexing fixed when line end escaped. + Bug #3038381. +
  • +
  • + HTML lexer stores line state produced by a line on that line rather than on the next line. +
  • +
  • + Markdown lexer fixes infinite loop. + Bug #3045386. +
  • +
  • + MySQL folding bugs with END statements fixed. + Bug #3031742. +
  • +
  • + PowerShell lexer allows '_' as a word character. + Feature #3042228. +
  • +
  • + SciTE on GTK+ abandons processing of subsequent commands if a command.go.needs command fails. +
  • +
  • + When SciTE is closed, all buffers now receive an OnClose call. + Bug #3033857. +
  • +
+

+ Release 2.20 +

+
    +
  • + Released 30 July 2010. +
  • +
  • + Lexers are implemented as objects so that they may retain extra state. + The interfaces defined for this are tentative and may change before the next release. + Compatibility classes allow current lexers compiled into Scintilla to run with few changes. + The interface to external lexers has changed and existing external lexers will need to have changes + made and be recompiled. + A single lexer object is attached to a document whereas previously lexers were attached to views + which could lead to different lexers being used for split views with confusing results. +
  • +
  • + C++ lexer understands the preprocessor enough to grey-out inactive code due to conditional compilation. +
  • +
  • + SciTE can use strips within the main window for find and replace rather than dialogs. + On Windows SciTE always uses a strip for incremental search. +
  • +
  • + Lexer added for Txt2Tags language. + Feature #3018736. +
  • +
  • + Sticky caret feature enhanced with additional SC_CARETSTICKY_WHITESPACE mode . + Feature #3027559. +
  • +
  • + Bash lexer implements basic parsing of compound commands and constructs. + Feature #3033135. +
  • +
  • + C++ folder allows disabling explicit fold comments. +
  • +
  • + Perl folder works for array blocks, adjacent package statements, nested PODs, and terminates package folding at __DATA__, ^D and ^Z. + Feature #3030887. +
  • +
  • + PowerShell lexer supports multiline <# .. #> comments and adds 2 keyword classes. + Feature #3015176. +
  • +
  • + Lexing performed incrementally when needed by wrapping to make user interface more responsive. +
  • +
  • + SciTE setting replaceselection:yes works on GTK+. +
  • +
  • + SciTE Lua scripts calling io.open or io.popen on Windows have arguments treated as UTF-8 and converted to Unicode + so that non-ASCII file paths will work. Lua files with non-ASCII paths run. + Bug #3016951. +
  • +
  • + Crash fixed when searching for empty string. + Bug #3017572. +
  • +
  • + Bugs fixed with folding and lexing when Enter pressed at start of line. + Bug #3032652. +
  • +
  • + Bug fixed with line selection mode not affecting selection range. + Bug #3021480. +
  • +
  • + Bug fixed where indicator alpha was limited to 100 rather than 255. + Bug #3021473. +
  • +
  • + Bug fixed where changing annotation did not cause automatic redraw. +
  • +
  • + Regular expression bug fixed when a character range included non-ASCII characters. +
  • +
  • + Compilation failure with recent compilers fixed on GTK+. + Bug #3022027. +
  • +
  • + Bug fixed on Windows with multiple monitors where autocomplete pop up would appear off-screen + or straddling monitors. + Bug #3017512. +
  • +
  • + SciTE on Windows bug fixed where changing directory to a Unicode path failed. + Bug #3011987. +
  • +
  • + SciTE on Windows bug fixed where combo boxes were not allowing Unicode characters. + Bug #3012986. +
  • +
  • + SciTE on GTK+ bug fixed when dragging files into SciTE on KDE. + Bug #3026555. +
  • +
  • + SciTE bug fixed where closing untitled file could lose data if attempt to name file same as another buffer. + Bug #3011680. +
  • +
  • + COBOL number masks now correctly highlighted. + Bug #3012164. +
  • +
  • + PHP comments can include <?PHP without triggering state change. + Bug #2854183. +
  • +
  • + VHDL lexer styles unclosed string correctly. + Bug #3029627. +
  • +
  • + Memory leak fixed in list boxes on GTK+. + Bug #3007669. +
  • +
+

+ Release 2.12 +

+
    +
  • + Released 1 June 2010. +
  • +
  • + Drawing optimizations improve speed and fix some visible flashing when scrolling. +
  • +
  • + Copy Path command added to File menu in SciTE. + Feature #2986745. +
  • +
  • + Optional warning displayed by SciTE when saving a file which has been modified by another process. + Feature #2975041. +
  • +
  • + Flagship lexer for xBase languages updated to follow the language much more closely. + Feature #2992689. +
  • +
  • + HTML lexer highlights Django templates in more regions. + Feature #3002874. +
  • +
  • + Dropping files on SciTE on Windows, releases the drag object earlier and opens the files asynchronously, + leading to smoother user experience. + Feature #2986724. +
  • +
  • + SciTE HTML exports take the Use Monospaced Font setting into account. +
  • +
  • + SciTE window title "[n of m]" localised. +
  • +
  • + When new line inserted at start of line, markers are moved down. + Bug #2986727. +
  • +
  • + On Windows, dropped text has its line ends converted, similar to pasting. + Bug #3005328. +
  • +
  • + Fixed bug with middle-click paste in block select mode where text was pasted next to selection rather than at cursor. + Bug #2984460. +
  • +
  • + Fixed SciTE crash where a style had a size parameter without a value. + Bug #3003834. +
  • +
  • + Debug assertions in multiple lexers fixed. + Bug #3000566. +
  • +
  • + CSS lexer fixed bug where @font-face displayed incorrectly + Bug #2994224. +
  • +
  • + CSS lexer fixed bug where open comment caused highlighting error. + Bug #1683672. +
  • +
  • + Shell file lexer fixed highlight glitch with here docs where the first line is a comment. + Bug #2830239. +
  • +
  • + Bug fixed in SciTE openpath property that caused Open Selected File to fail to open the selected file. +
  • +
  • + Bug fixed in SciTE FileExt property when file name with no extension evaluated to whole path. +
  • +
  • + Fixed SciTE on Windows printing bug where the $(CurrentTime), $(CurrentPage) variables were not expanded. + Bug #2994612. +
  • +
  • + SciTE compiles for 64-bit Windows and runs without crashing. + Bug #2986312. +
  • +
  • + Full Screen mode in Windows Vista/7 improved to hide Start button and size borders a little better. + Bug #3002813. +
  • +
+

+ Release 2.11 +

+
    +
  • + Released 9 April 2010. +
  • +
  • + Fixes compatibility of Scintilla.h with the C language. +
  • +
  • + With a rectangular selection SCI_GETSELECTIONSTART and SCI_GETSELECTIONEND return limits of the + rectangular selection rather than the limits of the main selection. +
  • +
  • + When SciTE on Windows is minimized to tray, only takes a single click to restore rather than a double click. + Feature #981917. +
  • +
+

+ Release 2.10 +

+
    +
  • + Released 4 April 2010. +
  • +
  • + Version 1.x of GTK+ is no longer supported. +
  • +
  • + SciTE is no longer supported on Windows 95, 98 or ME. +
  • +
  • + Case-insensitive search works for non-ASCII characters in UTF-8 and 8-bit encodings. + Non-regex search in DBCS encodings is always case-sensitive. +
  • +
  • + Non-ASCII characters may be changed to upper and lower case. +
  • +
  • + SciTE on Windows can access all files including those with names outside the user's preferred character encoding. +
  • +
  • + SciTE may be extended with lexers written in Lua. +
  • +
  • + When there are multiple selections, the paste command can go either to the main selection or to each + selection. This is controlled with SCI_SETMULTIPASTE. +
  • +
  • + More forms of bad UTF-8 are detected including overlong sequences, surrogates, and characters outside + the valid range. Bad UTF-8 bytes are now displayed as 2 hex digits preceded by 'x'. +
  • +
  • + SCI_GETTAG retrieves the value of captured expressions within regular expression searches. +
  • +
  • + Django template highlighting added to the HTML lexer. + Feature #2974889. +
  • +
  • + Verilog line comments can be folded. +
  • +
  • + SciTE on Windows allows specifying a filter for the Save As dialog. + Feature #2943445. +
  • +
  • + Bug fixed when multiple selection disabled where rectangular selections could be expanded into multiple selections. + Bug #2948260. +
  • +
  • + Bug fixed when document horizontally scrolled and up/down-arrow did not return to the same + column after horizontal scroll occurred. + Bug #2950799. +
  • +
  • + Bug fixed to remove hotspot highlight when mouse is moved out of the document. Windows only fix. + Bug #2951353. +
  • +
  • + R lexer now performs case-sensitive check for keywords. + Bug #2956543. +
  • +
  • + Bug fixed on GTK+ where text disappeared when a wrap occurred. + Bug #2958043. +
  • +
  • + Bug fixed where regular expression replace cannot escape the '\' character by using '\\'. + Bug #2959876. +
  • +
  • + Bug fixed on GTK+ when virtual space disabled, middle-click could still paste text beyond end of line. + Bug #2971618. +
  • +
  • + SciTE crash fixed when double clicking on a malformed error message in the output pane. + Bug #2976551. +
  • +
  • + Improved performance on GTK+ when changing parameters associated with scroll bars to the same value. + Bug #2964357. +
  • +
  • + Fixed bug with pressing Shift+Tab with a rectangular selection so that it performs an un-indent + similar to how Tab performs an indent. +
  • +
+

+ Release 2.03 +

+
    +
  • + Released 14 February 2010. +
  • +
  • + Added SCI_SETFIRSTVISIBLELINE to match SCI_GETFIRSTVISIBLELINE. +
  • +
  • + Erlang lexer extended set of numeric bases recognised; separate style for module:function_name; detects + built-in functions, known module attributes, and known preprocessor instructions; recognises EDoc and EDoc macros; + separates types of comments. + Bug #2942448. +
  • +
  • + Python lexer extended with lexer.python.strings.over.newline option that allows non-triple-quoted strings to extend + past line ends. This allows use of the Ren'Py language. + Feature #2945550. +
  • +
  • + Fixed bugs with cursor movement after deleting a rectangular selection. + Bug #2942131. +
  • +
  • + Fixed bug where calling SCI_SETSEL when there is a rectangular selection left + the additional selections selected. + Bug #2947064. +
  • +
  • + Fixed macro recording bug where not all bytes in multi-byte character insertions were reported through + SCI_REPLACESEL. +
  • +
  • + Fixed SciTE bug where using Ctrl+Enter followed by Ctrl+Space produced an autocompletion list + with only a single line containing all the identifiers. +
  • +
  • + Fixed SciTE on GTK+ bug where running a tool made the user interface completely unresponsive. +
  • +
  • + Fixed SciTE on Windows Copy to RTF bug. + Bug #2108574. +
  • +
+

+ Release 2.02 +

+
    +
  • + Released on 25 January 2010. +
  • +
  • + Markdown lexer added. + Feature #2844081. +
  • +
  • + On GTK+, include code that understands the ranges of lead bytes for code pages 932, 936, and 950 + so that most Chinese and Japanese text can be used on systems that are not set to the corresponding locale. +
  • +
  • + Allow changing the size of dots in visible whitespace using SCI_SETWHITESPACESIZE. + Feature #2839427. +
  • +
  • + Additional carets can be hidden with SCI_SETADDITIONALCARETSVISIBLE. +
  • +
  • + Can choose anti-aliased, non-anti-aliased or lcd-optimized text using SCI_SETFONTQUALITY. +
  • +
  • + Retrieve the current selected text in the autocompletion list with SCI_AUTOCGETCURRENTTEXT. +
  • +
  • + Retrieve the name of the current lexer with SCI_GETLEXERLANGUAGE. +
  • +
  • + Progress 4GL lexer improves handling of comments in preprocessor declaration. + Feature #2902206. +
  • +
  • + HTML lexer extended to handle Mako template language. +
  • +
  • + SQL folder extended for SQL Anywhere "EXISTS" and "ENDIF" keywords. + Feature #2887524. +
  • +
  • + SciTE adds APIPath and AbbrevPath variables. +
  • +
  • + SciTE on GTK+ uses pipes instead of temporary files for running tools. This should be more secure. +
  • +
  • + Fixed crash when calling SCI_STYLEGETFONT for a style which does not have a font set. + Bug #2857425. +
  • +
  • + Fixed crash caused by not having sufficient styles allocated after choosing a lexer. + Bug #2881279. +
  • +
  • + Fixed crash in SciTE using autocomplete word when word characters includes space. + Bug #2840141. +
  • +
  • + Fixed bug with handling upper-case file extensions SciTE on GTK+. +
  • +
  • + Fixed SciTE loading files from sessions with folded folds where it would not + be scrolled to the correct location. + Bug #2882775. +
  • +
  • + Fixed SciTE loading files from sessions when file no longer exists. + Bug #2883437. +
  • +
  • + Fixed SciTE export to HTML using the wrong background colour. +
  • +
  • + Fixed crash when adding an annotation and then adding a new line after the annotation. + Bug #2929708. +
  • +
  • + Fixed crash in SciTE setting a property to nil from Lua. +
  • +
  • + SCI_GETSELTEXT fixed to return correct length. + Bug #2929441. +
  • +
  • + Fixed text positioning problems with selection in some circumstances. +
  • +
  • + Fixed text positioning problems with ligatures on GTK+. +
  • +
  • + Fixed problem pasting into rectangular selection with caret at bottom caused text to go from the caret down + rather than replacing the selection. +
  • +
  • + Fixed problem replacing in a rectangular selection where only the final line was changed. +
  • +
  • + Fixed inability to select a rectangular area using Alt+Shift+Click at both corners. + Bug #2899746. +
  • +
  • + Fixed problem moving to start/end of a rectangular selection with left/right key. + Bug #2871358. +
  • +
  • + Fixed problem with Select All when there's a rectangular selection. + Bug #2930488. +
  • +
  • + Fixed SCI_LINEDUPLICATE on a rectangular selection to not produce multiple discontinuous selections. +
  • +
  • + Virtual space removed when performing delete word left or delete line left. + Virtual space converted to real space for delete word right. + Preserve virtual space when pressing Delete key. + Bug #2882566. +
  • +
  • + Fixed problem where Shift+Alt+Down did not move through wrapped lines. + Bug #2871749. +
  • +
  • + Fixed incorrect background colour when using coloured lines with virtual space. + Bug #2914691. +
  • +
  • + Fixed failure to display wrap symbol for SC_WRAPVISUALFLAGLOC_END_BY_TEXT. + Bug #2936108. +
  • +
  • + Fixed blank background colour with EOLFilled style on last line. + Bug #2890105. +
  • +
  • + Fixed problem in VB lexer with keyword at end of file. + Bug #2901239. +
  • +
  • + Fixed SciTE bug where double clicking on a tab closed the file. +
  • +
  • + Fixed SciTE brace matching commands to only work when the caret is next to the brace, not when + it is in virtual space. + Bug #2885560. +
  • +
  • + Fixed SciTE on Windows Vista to access files in the Program Files directory rather than allow Windows + to virtualize access. + Bug #2916685. +
  • +
  • + Fixed NSIS folder to handle keywords that start with '!'. + Bug #2872157. +
  • +
  • + Changed linkage of Scintilla_LinkLexers to "C" so that it can be used by clients written in C. + Bug #2844718. +
  • +
+

+ Release 2.01 +

+
    +
  • + Released on 19 August 2009. +
  • +
  • + Fix to positioning rectangular paste when viewing line ends. +
  • +
  • + Don't insert new lines and indentation for line ends at end of rectangular paste. +
  • +
  • + When not in additional selection typing mode, cutting a rectangular selection removes all of the selected text. +
  • +
  • + Rectangular selections are copied to the clipboard in document order, not in the order of selection. +
  • +
  • + SCI_SETCURRENTPOS and SCI_SETANCHOR work in rectangular mode. +
  • +
  • + On GTK+, drag and drop to a later position in the document now drops at the position. +
  • +
  • + Fix bug where missing property did not use default value. +
  • +
+

+ Release 2.0 +

+
    +
  • + Released on 11 August 2009. +
  • +
  • + Multiple pieces of text can be selected simultaneously by holding control while dragging the mouse. + Typing, backspace and delete may affect all selections together. +
  • +
  • + Virtual space allows selecting beyond the last character on a line. +
  • +
  • + SciTE on GTK+ path bar is now optional and defaults to off. +
  • +
  • + MagikSF lexer recognises numbers correctly. +
  • +
  • + Folding of Python comments and blank lines improved. Bug #210240. +
  • +
  • + Bug fixed where background colour of last character in document leaked past that character. +
  • +
  • + Crash fixed when adding marker beyond last line in document. Bug #2830307. +
  • +
  • + Resource leak fixed in SciTE for Windows when printing fails. Bug #2816524. +
  • +
  • + Bug fixed on Windows where the system caret was destroyed during destruction when another window + was using the system caret. Bug #2830223. +
  • +
  • + Bug fixed where indentation guides were drawn over text when the indentation used a style with a different + space width to the default style. +
  • +
  • + SciTE bug fixed where box comment added a bare line feed rather than the chosen line end. Bug #2818104. +
  • +
  • + Reverted fix that led to wrapping whole document when displaying the first line of the document. +
  • +
  • + Export to LaTeX in SciTE fixed to work in more cases and not use as much space. Bug #1286548. +
  • +
  • + Bug fixed where EN_CHANGE notification was sent when performing a paste operation in a + read-only document. Bug #2825485. +
  • +
  • + Refactored code so that Scintilla exposes less of its internal implementation and uses the C++ standard + library for some basic collections. Projects that linked to Scintilla's SString or PropSet classes + should copy this code from a previous version of Scintilla or from SciTE. +
  • +
+

+ Release 1.79 +

+
    +
  • + Released on 1 July 2009. +
  • +
  • + Memory exhaustion and other exceptions handled by placing an error value into the + status property rather than crashing. + Scintilla now builds with exception handling enabled and requires exception handling to be enabled.
    + This is a major change and application developers should consider how they will deal with Scintilla exhausting + memory since Scintilla may not be in a stable state. +
  • +
  • + Deprecated APIs removed. The symbols removed are: +
      +
    • SCI_SETCARETPOLICY
    • +
    • CARET_CENTER
    • +
    • CARET_XEVEN
    • +
    • CARET_XJUMPS
    • +
    • SC_FOLDFLAG_BOX
    • +
    • SC_FOLDLEVELBOXHEADERFLAG
    • +
    • SC_FOLDLEVELBOXFOOTERFLAG
    • +
    • SC_FOLDLEVELCONTRACTED
    • +
    • SC_FOLDLEVELUNINDENT
    • +
    • SCN_POSCHANGED
    • +
    • SCN_CHECKBRACE
    • +
    • SCLEX_ASP
    • +
    • SCLEX_PHP
    • +
    +
  • +
  • + Cocoa platform added. +
  • +
  • + Names of struct types in Scintilla.h now start with "Sci_" to avoid possible clashes with platform + definitions. Currently, the old names still work but these will be phased out. +
  • +
  • + When lines are wrapped, subsequent lines may be indented to match the indent of the initial line, + or one more indentation level. Feature #2796119. +
  • +
  • + APIs added for finding the character at a point rather than an inter-character position. Feature #2646738. +
  • +
  • + A new marker SC_MARK_BACKGROUND_UNDERLINE is drawn in the text area as an underline + the full width of the window. +
  • +
  • + Batch file lexer understands variables surrounded by '!'. +
  • +
  • + CAML lexer also supports SML. +
  • +
  • + D lexer handles string and numeric literals more accurately. Feature #2793782. +
  • +
  • + Forth lexer is now case-insensitive and better supports numbers like $hex and %binary. Feature #2804894. +
  • +
  • + Lisp lexer treats '[', ']', '{', and '}' as balanced delimiters which is common usage. Feature #2794989. +
    + It treats keyword argument names as being equivalent to symbols. Feature #2794901. +
  • +
  • + Pascal lexer bug fixed to prevent hang when 'interface' near beginning of file. Bug #2802863. +
  • +
  • + Perl lexer bug fixed where previous lexical states persisted causing "/" special case styling and + subroutine prototype styling to not be correct. Bug #2809168. +
  • +
  • + XML lexer fixes bug where Unicode entities like '&—' were broken into fragments. Bug #2804760. +
  • +
  • + SciTE on GTK+ enables scrolling the tab bar on recent versions of GTK+. Feature #2061821. +
  • +
  • + SciTE on Windows allows tab bar tabs to be reordered by drag and drop. +
  • +
  • + Unit test script for Scintilla on Windows included with source code. +
  • +
  • + User defined menu items are now localised when there is a matching translation. +
  • +
  • + Width of icon column of autocompletion lists on GTK+ made more consistent. +
  • +
  • + Bug with slicing UTF-8 text into character fragments when there is a sequence of 100 or more 3 byte characters. Bug #2780566. +
  • +
  • + Folding bugs introduced in 1.78 fixed. Some of the fix was generic and there was also a specific fix for C++. +
  • +
  • + Bug fixed where a rectangular paste was not padding the line with sufficient spaces to align the pasted text. +
  • +
  • + Bug fixed with showing all text on each line of multi-line annotations when styling the whole annotation using SCI_ANNOTATIONSETSTYLE. Bug #2789430. +
  • +
+

+ Release 1.78 +

+
    +
  • + Released on 28 April 2009. +
  • +
  • + Annotation lines may be added to each line. +
  • +
  • + A text margin may be defined with different text on each line. +
  • +
  • + Application actions may be added to the undo history. +
  • +
  • + Can query the symbol defined for a marker. + An available symbol added for applications to indicate that plugins may allocate a marker. +
  • +
  • + Can increase the amount of font ascent and descent. +
  • +
  • + COBOL lexer added. Feature #2127406. +
  • +
  • + Nimrod lexer added. Feature #2642620. +
  • +
  • + PowerPro lexer added. Feature #2195308. +
  • +
  • + SML lexer added. Feature #2710950. +
  • +
  • + SORCUS Installation file lexer added. Feature #2343375. +
  • +
  • + TACL lexer added. Feature #2127406. +
  • +
  • + TAL lexer added. Feature #2127406. +
  • +
  • + Rewritten Pascal lexer with improved folding and other fixes. Feature #2190650. +
  • +
  • + INDIC_ROUNDBOX translucency level can be modified. Feature #2586290. +
  • +
  • + C++ lexer treats angle brackets in #include directives as quotes when styling.within.preprocessor. Bug #2551033. +
  • +
  • + Inno Setup lexer is sensitive to whether within the [Code] section and handles comments better. Bug #2552973. +
  • +
  • + HTML lexer does not go into script mode when script tag is self-closing. +
  • +
  • + HTML folder fixed where confused by comments when fold.html.preprocessor off. Bug #2532774. +
  • +
  • + Perl lexer fixes problem with string matching caused by line endings. Bug #2648342. +
  • +
  • + Progress lexer fixes problem with "last-event:function" phrase. Bug #2483619. +
  • +
  • + Properties file lexer extended to handle RFC2822 text when lexer.props.allow.initial.spaces on. +
  • +
  • + Python lexer adds options for Python 3 and Cython. +
  • +
  • + Shell lexer fixes heredoc problem caused by line endings. Bug #2635257. +
  • +
  • + TeX lexer handles comment at end of line correctly. Bug #2698766. +
  • +
  • + SciTE retains selection range when performing a replace selection command. Feature #2339160. +
  • +
  • + SciTE definition of word characters fixed to match documentation. Bug #2464531. +
  • +
  • + SciTE on GTK+ performing Search or Replace when dialog already shown now brings dialog to foreground. + Bug #2634224. +
  • +
  • + Fixed encoding bug with calltips on GTK+. +
  • +
  • + Block caret drawn in correct place on wrapped lines. Bug #2126144. +
  • +
  • + Compilation for 64 bit Windows works using MinGW. Bug #2515578. +
  • +
  • + Incorrect memory freeing fixed on OS X. + Bug #2354098, + Bug #2671749. +
  • +
  • + SciTE on GTK+ crash fixed on startup when child process exits before initialisation complete. + Bug #2716987. +
  • +
  • + Crash fixed when AutoCompleteGetCurrent called with no active autocompletion. +
  • +
  • + Flickering diminished when pressing Tab. Bug #2723006. +
  • +
  • + Namespace compilation issues with GTK+ on OS X fixed. +
  • +
  • + Increased maximum length of SciTE's Language menu on GTK+ to 100 items. Bug #2528241. +
  • +
  • + Fixed incorrect Python lexing for multi-line continued strings. Bug #2450963. +
  • +
+

+ Release 1.77 +

+
    +
  • + Released on 18 October 2008. +
  • +
  • + Direct temporary access to Scintilla's text buffer to allow simple efficient interfacing + to libraries like regular expression libraries. +
  • +
  • + Scintilla on Windows can interpret keys as Unicode even when a narrow character + window with SCI_SETKEYSUNICODE. +
  • +
  • + Notification sent when autocompletion cancelled. +
  • +
  • + MySQL lexer added. +
  • +
  • + Lexer for gettext .po files added. +
  • +
  • + Abaqus lexer handles program structure more correctly. +
  • +
  • + Assembler lexer works with non-ASCII text. +
  • +
  • + C++ lexer allows mixed case doc comment tags. +
  • +
  • + CSS lexer updated and works with non-ASCII. +
  • +
  • + Diff lexer adds style for changed lines, handles subversion diffs better and + fixes styling and folding for lines containing chunk dividers ("---"). +
  • +
  • + FORTRAN lexer accepts more styles of compiler directive. +
  • +
  • + Haskell lexer allows hexadecimal literals. +
  • +
  • + HTML lexer improves PHP and JavaScript folding. + PHP heredocs, nowdocs, strings and comments processed more accurately. + Internet Explorer's non-standard >comment< tag supported. + Script recognition in XML can be controlled with lexer.xml.allow.scripts property. +
  • +
  • + Lua lexer styles last character correctly. +
  • +
  • + Perl lexer update. +
  • +
  • + Comment folding implemented for Ruby. +
  • +
  • + Better TeX folding. +
  • +
  • + Verilog lexer updated. +
  • +
  • + Windows Batch file lexer handles %~ and %*. +
  • +
  • + YAML lexer allows non-ASCII text. +
  • +
  • + SciTE on GTK+ implements "Replace in Buffers" in advanced mode. +
  • +
  • + The extender OnBeforeSave method can override the default file saving behaviour by retuning true. +
  • +
  • + Window position and recent files list may be saved into the session file. +
  • +
  • + Right button press outside the selection moves the caret. +
  • +
  • + SciTE load.on.activate works when closing a document reveals a changed document. +
  • +
  • + SciTE bug fixed where eol.mode not used for initial buffer. +
  • +
  • + SciTE bug fixed where a file could be saved as the same name as another + buffer leading to confusing behaviour. +
  • +
  • + Fixed display bug for long lines in same style on Windows. +
  • +
  • + Fixed SciTE crash when finding matching preprocessor command used on some files. +
  • +
  • + Drawing performance improved for files with many blank lines. +
  • +
  • + Folding bugs fixed where changing program text produced a decrease in fold level on a fold header line. +
  • +
  • + Clearing document style now clears all indicators. +
  • +
  • + SciTE's embedded Lua updated to 5.1.4. +
  • +
  • + SciTE will compile with versions of GTK+ before 2.8 again. +
  • +
  • + SciTE on GTK+ bug fixed where multiple files not opened. +
  • +
  • + Bug fixed with SCI_VCHOMEWRAP and SCI_VCHOMEWRAPEXTEND on white last line. +
  • +
  • + Regular expression bug fixed where "^[^(]+$" matched empty lines. +
  • +
+

+ Release 1.76 +

+
    +
  • + Released on 16 March 2008. +
  • +
  • + Support for PowerShell. +
  • +
  • + Lexer added for Magik. +
  • +
  • + Director extension working on GTK+. +
  • +
  • + Director extension may set focus to SciTE through "focus:" message on GTK+. +
  • +
  • + C++ folder handles final line better in some cases. +
  • +
  • + SCI_COPYALLOWLINE added which is similar to SCI_COPY except that if the selection is empty then + the line holding the caret is copied. On Windows an extra clipboard format allows pasting this as a whole + line before the current selection. This behaviour is compatible with Visual Studio. +
  • +
  • + On Windows, the horizontal scroll bar can handle wider files. +
  • +
  • + On Windows, a system palette leak was fixed. Should not affect many as palette mode is rarely used. +
  • +
  • + Install command on GTK+ no longer tries to set explicit owner. +
  • +
  • + Perl lexer handles defined-or operator "//". +
  • +
  • + Octave lexer fixes "!=" operator. +
  • +
  • + Optimized selection change drawing to not redraw as much when not needed. +
  • +
  • + SciTE on GTK+ no longer echoes Lua commands so is same as on Windows. +
  • +
  • + Automatic vertical scrolling limited to one line at a time so is not too fast. +
  • +
  • + Crash fixed when line states set beyond end of line states. This occurred when lexers did not + set a line state for each line. +
  • +
  • + Crash in SciTE on Windows fixed when search for 513 character string fails. +
  • +
  • + SciTE disables translucent features on Windows 9x due to crashes reported when using translucency. +
  • +
  • + Bug fixed where whitespace background was not seen on wrapped lines. +
  • +
+

+ Release 1.75 +

+
    +
  • + Released on 22 November 2007. +
  • +
  • + Some WordList and PropSet functionality moved from Scintilla to SciTE. + Projects that link to Scintilla's code for these classes may need to copy + code from SciTE. +
  • +
  • + Borland C++ can no longer build Scintilla. +
  • +
  • + Invalid bytes in UTF-8 mode are displayed as hex blobs. This also prevents crashes due to + passing invalid UTF-8 to platform calls. +
  • +
  • + Indentation guides enhanced to be visible on completely empty lines when possible. +
  • +
  • + The horizontal scroll bar may grow to match the widest line displayed. +
  • +
  • + Allow autocomplete pop ups to appear outside client rectangle in some cases. +
  • +
  • + When line state changed, SC_MOD_CHANGELINESTATE modification notification sent and + margin redrawn. +
  • +
  • + SciTE scripts can access the menu command values IDM_*. +
  • +
  • + SciTE's statement.end property has been implemented again. +
  • +
  • + SciTE shows paths and matches in different styles for Find In Files. +
  • +
  • + Incremental search in SciTE for Windows is modeless to make it easier to exit. +
  • +
  • + Folding performance improved. +
  • +
  • + SciTE for GTK+ now includes a Browse button in the Find In Files dialog. +
  • +
  • + On Windows versions that support Unicode well, Scintilla is a wide character window + which allows input for some less common languages like Armenian, Devanagari, + Tamil, and Georgian. To fully benefit, applications should use wide character calls. +
  • +
  • + Lua function names are exported from SciTE to allow some extension libraries to work. +
  • +
  • + Lexers added for Abaqus, Ansys APDL, Asymptote, and R. +
  • +
  • + SCI_DELWORDRIGHTEND added for closer compatibility with GTK+ entry widget. +
  • +
  • + The styling buffer may now use all 8 bits in each byte for lexical states with 0 bits for indicators. +
  • +
  • + Multiple characters may be set for SciTE's calltip.<lexer>.parameters.start property. +
  • +
  • + Bash lexer handles octal literals. +
  • +
  • + C++/JavaScript lexer recognises regex literals in more situations. +
  • +
  • + Haskell lexer fixed for quoted strings. +
  • +
  • + HTML/XML lexer does not notice XML indicator if there is + non-whitespace between the "<?" and "XML". + ASP problem fixed where </ is used inside a comment. +
  • +
  • + Error messages from Lua 5.1 are recognised. +
  • +
  • + Folding implemented for Metapost. +
  • +
  • + Perl lexer enhanced for handling minus-prefixed barewords, + underscores in numeric literals and vector/version strings, + ^D and ^Z similar to __END__, + subroutine prototypes as a new lexical class, + formats and format blocks as new lexical classes, and + '/' suffixed keywords and barewords. +
  • +
  • + Python lexer styles all of a decorator in the decorator style rather than just the name. +
  • +
  • + YAML lexer styles colons as operators. +
  • +
  • + Fixed SciTE bug where undo would group together multiple separate modifications. +
  • +
  • + Bug fixed where setting background colour of calltip failed. +
  • +
  • + SciTE allows wildcard suffixes for file pattern based properties. +
  • +
  • + SciTE on GTK+ bug fixed where user not prompted to save untitled buffer. +
  • +
  • + SciTE bug fixed where property values from one file were not seen by lower priority files. +
  • +
  • + Bug fixed when showing selection with a foreground colour change which highlighted + an incorrect range in some positions. +
  • +
  • + Cut now invokes SCN_MODIFYATTEMPTRO notification. +
  • +
  • + Bug fixed where caret not shown at beginning of wrapped lines. + Caret made visible in some cases after wrapping and scroll bar updated after wrapping. +
  • +
  • + Modern indicators now work on wrapped lines. +
  • +
  • + Some crashes fixed for 64-bit GTK+. +
  • +
  • + On GTK+ clipboard features improved for VMWare tools copy and paste. + SciTE exports the clipboard more consistently on shut down. +
  • +
+

+ Release 1.74 +

+
    +
  • + Released on 18 June 2007. +
  • +
  • + OS X support. +
  • +
  • + Indicators changed to be a separate data structure allowing more indicators. Storing indicators in high bits + of styling bytes is deprecated and will be removed in the next version. +
  • +
  • + Unicode support extended to all Unicode characters not just the Basic Multilingual Plane. +
  • +
  • + Performance improved on wide lines by breaking long runs in a single style into shorter segments. +
  • +
  • + Performance improved by caching layout of short text segments. +
  • +
  • + SciTE includes Lua 5.1. +
  • +
  • + Caret may be displayed as a block. +
  • +
  • + Lexer added for GAP. +
  • +
  • + Lexer added for PL/M. +
  • +
  • + Lexer added for Progress. +
  • +
  • + SciTE session files have changed format to be like other SciTE .properties files + and now use the extension .session. + Bookmarks and folds may optionally be saved in session files. + Session files created with previous versions of SciTE will not load into this version. +
  • +
  • + SciTE's extension and scripting interfaces add OnKey, OnDwellStart, and OnClose methods. +
  • +
  • + On GTK+, copying to the clipboard does not include the text/urilist type since this caused problems when + pasting into Open Office. +
  • +
  • + On GTK+, Scintilla defaults caret blink rate to platform preference. +
  • +
  • + Dragging does not start until the mouse has been dragged a certain amount. + This stops spurious drags when just clicking inside the selection. +
  • +
  • + Bug fixed where brace highlight not shown when caret line background set. +
  • +
  • + Bug fixed in Ruby lexer where out of bounds access could occur. +
  • +
  • + Bug fixed in XML folding where tags were not being folded because they are singletons in HTML. +
  • +
  • + Bug fixed when many font names used. +
  • +
  • + Layout bug fixed on GTK+ where fonts have ligatures available. +
  • +
  • + Bug fixed with SCI_LINETRANSPOSE on a blank line. +
  • +
  • + SciTE hang fixed when using UNC path with directory properties feature. +
  • +
  • + Bug on Windows fixed by examining dropped text for Unicode even in non-Unicode mode so it + can work when source only provides Unicode or when using an encoding different from the + system default. +
  • +
  • + SciTE bug on GTK+ fixed where Stop Executing did not work when more than a single process started. +
  • +
  • + SciTE bug on GTK+ fixed where mouse wheel was not switching between buffers. +
  • +
  • + Minor line end fix to PostScript lexer. +
  • +
+

+ Release 1.73 +

+
    +
  • + Released on 31 March 2007. +
  • +
  • + SciTE adds a Directory properties file to configure behaviour for files in a directory and its subdirectories. +
  • +
  • + Style changes may be made during text modification events. +
  • +
  • + Regular expressions recognise \d, \D, \s, \S, \w, \W, and \xHH. +
  • +
  • + Support for cmake language added. +
  • +
  • + More Scintilla properties can be queried. +
  • +
  • + Edge line drawn under text. +
  • +
  • + A savesession command added to SciTE director interface. +
  • +
  • + SciTE File | Encoding menu item names changed to be less confusing. +
  • +
  • + SciTE on GTK+ dialog buttons reordered to follow guidelines. +
  • +
  • + SciTE on GTK+ removed GTK+ 1.x compatible file dialog code. +
  • +
  • + SciTE on GTK+ recognises key names KeypadMultiply and KeypadDivide. +
  • +
  • + Background colour of line wrapping visual flag changed to STYLE_DEFAULT. +
  • +
  • + Makefile lexing enhanced for ':=' operator and when lines start with tab. +
  • +
  • + TADS3 lexer and folder improved. +
  • +
  • + SCN_DOUBLECLICK notification may set SCI_SHIFT, SCI_CTRL, and SCI_ALT flags on modifiers field. +
  • +
  • + Slow folding of large constructs in Python fixed. +
  • +
  • + MSSQL folding fixed to be case-insensitive and fold at more keywords. +
  • +
  • + SciTE's brace matching works better for HTML. +
  • +
  • + Determining API list items checks for specified parameters start character before default '('. +
  • +
  • + Hang fixed in HTML lexer. +
  • +
  • + Bug fixed in with LineTranspose command where markers could move to different line. +
  • +
  • + Memory released when buffer completely emptied. +
  • +
  • + If translucency not available on Windows, draw rectangular outline instead. +
  • +
  • + Bash lexer handles "-x" in "--x-includes..." better. +
  • +
  • + AutoIt3 lexer fixes string followed by '+'. +
  • +
  • + LinesJoin fixed where it stopped early due to not adjusting for inserted spaces.. +
  • +
  • + StutteredPageDown fixed when lines wrapped. +
  • +
  • + FormatRange fixed to not double count line number width which could lead to a large space. +
  • +
  • + SciTE Export As PDF and Latex commands fixed to format floating point numbers with '.' even in locales + that use ','. +
  • +
  • + SciTE bug fixed where File | New could produce buffer with contents of previous file when using read-only mode. +
  • +
  • + SciTE retains current scroll position when switching buffers and fold.on.open set. +
  • +
  • + SciTE crash fixed where '*' used to invoke parameters dialog. +
  • +
  • + SciTE bugs when writing large UCS-2 files fixed. +
  • +
  • + Bug fixed when scrolling inside a SCN_PAINTED event by invalidating window + rather than trying to perform synchronous painting. +
  • +
  • + SciTE for GTK+ View | Full Screen works on recent versions of GTK+. +
  • +
  • + SciTE for Windows enables and disables toolbar commands correctly. +
  • +
+

+ Release 1.72 +

+
    +
  • + Released on 15 January 2007. +
  • +
  • + Performance of per-line data improved. +
  • +
  • + SC_STARTACTION flag set on the first modification notification in an undo + transaction to help synchronize the container's undo stack with Scintilla's. +
  • +
  • + On GTK+ drag and drop defaults to move rather than copy. +
  • +
  • + Scintilla supports extending appearance of selection to right hand margin. +
  • +
  • + Incremental search available on GTK+. +
  • +
  • + SciTE Indentation Settings dialog available on GTK+ and adds a "Convert" button. +
  • +
  • + Find in Files can optionally ignore binary files or directories that start with ".". +
  • +
  • + Lexer added for "D" language. +
  • +
  • + Export as HTML shows folding with underline lines and +/- symbols. +
  • +
  • + Ruby lexer interprets interpolated strings as expressions. +
  • +
  • + Lua lexer fixes some cases of numeric literals. +
  • +
  • + C++ folder fixes bug with "@" in doc comments. +
  • +
  • + NSIS folder handles !if and related commands. +
  • +
  • + Inno setup lexer adds styling for single and double quoted strings. +
  • +
  • + Matlab lexer handles backslashes in string literals correctly. +
  • +
  • + HTML lexer fixed to allow "?>" in comments in Basic script. +
  • +
  • + Added key codes for Windows key and Menu key. +
  • +
  • + Lua script method scite.MenuCommand(x) performs a menu command. +
  • +
  • + SciTE bug fixed with box comment command near start of file setting selection to end of file. +
  • +
  • + SciTE on GTK+, fixed loop that occurred with automatic loading for an unreadable file. +
  • +
  • + SciTE asks whether to save files when Windows shuts down. +
  • +
  • + Save Session on Windows now defaults the extension to "ses". +
  • +
  • + Bug fixed with single character keywords. +
  • +
  • + Fixed infinite loop for SCI_GETCOLUMN for position beyond end of document. +
  • +
  • + Fixed failure to accept typing on Solaris/GTK+ when using default ISO-8859-1 encoding. +
  • +
  • + Fixed warning from Lua in SciTE when creating a new buffer when already have + maximum number of buffers open. +
  • +
  • + Crash fixed with "%%" at end of batch file. +
  • +
+

+ Release 1.71 +

+
    +
  • + Released on 21 August 2006. +
  • + +
  • + Double click notification includes line and position. +
  • +
  • + VB lexer bugs fixed for preprocessor directive below a comment or some other states and + to use string not closed style back to the starting quote when there are internal doubled quotes. +
  • +
  • + C++ lexer allows identifiers to contain '$' and non-ASCII characters such as UTF-8. + The '$' character can be disallowed with lexer.cpp.allow.dollars=0. +
  • +
  • + Perl lexer allows UTF-8 identifiers and has some other small improvements. +
  • +
  • + SciTE's $(CurrentWord) uses word.characters.<filepattern> to define the word + rather than a hardcoded list of word characters. +
  • +
  • + SciTE Export as HTML adds encoding information for UTF-8 file and fixes DOCTYPE. +
  • +
  • + SciTE session and .recent files default to the user properties directory rather than global + properties directory. +
  • +
  • + Left and right scroll events handled correctly on GTK+ and horizontal scroll bar has more sensible + distances for page and arrow clicks. +
  • +
  • + SciTE on GTK+ tab bar fixed to work on recent versions of GTK+. +
  • +
  • + On GTK+, if the approximate character set conversion is unavailable, a second attempt is made + without approximations. This may allow keyboard input and paste to work on older systems. +
  • +
  • + SciTE on GTK+ can redefine the Insert key. +
  • +
  • + SciTE scripting interface bug fixed where some string properties could not be changed. +
  • +
+

+ Release 1.70 +

+
    +
  • + Released on 20 June 2006. +
  • +
  • + On GTK+, character set conversion is performed using an option that allows approximate conversions rather + than failures when a character can not be converted. This may lead to similar characters being inserted or + when no similar character is available a '?' may be inserted. +
  • +
  • + On GTK+, the internationalised IM (Input Method) feature is used for all typed input for all character sets. +
  • +
  • + Scintilla has new margin types SC_MARGIN_BACK and SC_MARGIN_FORE that use the default + style's background and foreground colours (normally white and black) as the background to the margin. +
  • +
  • + Scintilla/GTK+ allows file drops on Windows when drop is of type DROPFILES_DND + as well as text/uri-list. +
  • +
  • + Code page can only be set to one of the listed valid values. +
  • +
  • + Text wrapping fixed for cases where insertion was not wide enough to trigger + wrapping before being styled but was after styling. +
  • +
  • + SciTE find marks are removed before printing or exporting to avoid producing incorrect styles. +
  • +
+

+ Release 1.69 +

+
    +
  • + Released on 29 May 2006. +
  • +
  • + SciTE supports z-order based buffer switching on Ctrl+Tab. +
  • +
  • + Translucent support for selection and whole line markers. +
  • +
  • + SciTE may have per-language abbreviations files. +
  • +
  • + Support for Spice language. +
  • +
  • + On GTK+ autocompletion lists are optimised and use correct selection colours. +
  • +
  • + On GTK+ the URI data type is preferred in drag and drop so that applications + will see files dragged from the shell rather than dragging the text of the file name + into the document. +
  • +
  • + Increased number of margins to 5. +
  • +
  • + Basic lexer allows include directive $include: "file name". +
  • +
  • + SQL lexer no longer bases folding on indentation. +
  • +
  • + Line ends are transformed when copied to clipboard on + Windows/GTK+2 as well as Windows/GTK+ 1. +
  • +
  • + Lexing code masks off the indicator bits on the start style before calling the lexer + to avoid confusing the lexer when an application has used an indicator. +
  • +
  • + SciTE savebefore:yes only saves the file when it has been changed. +
  • +
  • + SciTE adds output.initial.hide setting to allow setting the size of the output pane + without it showing initially. +
  • +
  • + SciTE on Windows Go To dialog allows line number with more digits. +
  • +
  • + Bug in HTML lexer fixed where a segment of PHP could switch scripting language + based on earlier text on that line. +
  • +
  • + Memory bug fixed when freeing regions on GTK+. + Other minor bugs fixed on GTK+. +
  • +
  • + Deprecated GTK+ calls in Scintilla replaced with current calls. +
  • +
  • + Fixed a SciTE bug where closing the final buffer, if read-only, left the text present in an + untitled buffer. +
  • +
  • + Bug fixed in bash lexer that prevented folding. +
  • +
  • + Crash fixed in bash lexer when backslash at end of file. +
  • +
  • + Crash on recent releases of GTK+ 2.x avoided by changing default font from X + core font to Pango font "!Sans". +
  • +
  • + Fix for SciTE properties files where multiline properties continued over completely blank lines. +
  • +
  • + Bug fixed in SciTE/GTK+ director interface where more data available than + buffer size. +
  • +
  • + Minor visual fixes to SciTE splitter on GTK+. +
  • +
+

+ Release 1.68 +

+
    +
  • + Released on 9 March 2006. +
  • +
  • + Translucent drawing implemented for caret line and box indicators. +
  • +
  • + Lexer specifically for TCL is much more accurate than reusing C++ lexer. +
  • +
  • + Support for Inno Setup scripts. +
  • +
  • + Support for Opal language. +
  • +
  • + Calltips may use a new style, STYLE_CALLTIP which allows choosing a + different font for calltips. +
  • +
  • + Python lexer styles comments on decorators. +
  • +
  • + HTML lexer refined handling of "?>" and "%>" within server + side scripts. +
  • +
  • + Batch file lexer improved. +
  • +
  • + Eiffel lexer doesn't treat '.' as a name character. +
  • +
  • + Lua lexer handles length operator, #, and hex literals. +
  • +
  • + Properties file lexer has separate style for keys. +
  • +
  • + PL/SQL folding improved. +
  • +
  • + SciTE Replace dialog always searches in forwards direction. +
  • +
  • + SciTE can detect language of file from initial #! line. +
  • +
  • + SciTE on GTK+ supports output.scroll=2 setting. +
  • +
  • + SciTE can perform an import a properties file from the command line. +
  • +
  • + Set of word characters used for regular expression \< and \>. +
  • +
  • + Bug fixed with SCI_COPYTEXT stopping too early. +
  • +
  • + Bug fixed with splitting lines so that all lines are split. +
  • +
  • + SciTE calls OnSwitchFile when closing one buffer causes a switch to another. +
  • +
  • + SciTE bug fixed where properties were being reevaluated without good reason + after running a macro. +
  • +
  • + Crash fixed when clearing document with some lines contracted in word wrap mode. +
  • +
  • + Palette expands as more entries are needed. +
  • +
  • + SCI_POSITIONFROMPOINT returns more reasonable value when close to + last text on a line. +
  • +
  • + On Windows, long pieces of text may be drawn in segments if they fail to draw + as a whole. +
  • +
  • + Bug fixed with bad drawing when some visual changes made inside SCN_UPDATEUI + notification. +
  • +
  • + SciTE bug fixed with groupundo setting. +
  • +
+

+ Release 1.67 +

+
    +
  • + Released on 17 December 2005. +
  • +
  • + Scintilla checks the paint region more accurately when seeing if an area is being + repainted. Platform layer implementations may need to change for this to take + effect. This fixes some drawing and styling bugs. Also optimized some parts of + marker code to only redraw the line of the marker rather than whole of the margin. +
  • +
  • + Quoted identifier style for SQL. SQL folding performed more simply. +
  • +
  • + Ruby lexer improved to better handle here documents and non-ASCII + characters. +
  • +
  • + Lua lexer supports long string and block comment syntax from Lua 5.1. +
  • +
  • + Bash lexer handles here documents better. +
  • +
  • + JavaScript lexing recognises regular expressions more accurately and includes flag + characters in the regular expression style. This is both in JavaScript files and when + JavaScript is embedded in HTML. +
  • +
  • + Scintilla API provided to reveal how many style bits are needed for the + current lexer. +
  • +
  • + Selection duplicate added. +
  • +
  • + Scintilla API for adding a set of markers to a line. +
  • +
  • + DBCS encodings work on Windows 9x. +
  • +
  • + Convention defined for property names to be used by lexers and folders + so they can be automatically discovered and forwarded from containers. +
  • +
  • + Default bookmark in SciTE changed to a blue sphere image. +
  • +
  • + SciTE stores the time of last asking for a save separately for each buffer + which fixes bugs with automatic reloading. +
  • +
  • + On Windows, pasted text has line ends converted to current preference. + GTK+ already did this. +
  • +
  • + Kid template language better handled by HTML lexer by finishing ASP Python + mode when a ?> is found. +
  • +
  • + SciTE counts number of characters in a rectangular selection correctly. +
  • +
  • + 64-bit compatibility improved. One change that may affect user code is that + the notification message header changed to include a pointer-sized id field + to match the current Windows definition. +
  • +
  • + Empty ranges can no longer be dragged. +
  • +
  • + Crash fixed when calls made that use layout inside the painted notification. +
  • +
  • + Bug fixed where Scintilla created pixmap buffers that were too large leading + to failures when many instances used. +
  • +
  • + SciTE sets the directory of a new file to the directory of the currently + active file. +
  • +
  • + SciTE allows choosing a code page for the output pane. +
  • +
  • + SciTE HTML exporter no longer honours monospaced font setting. +
  • +
  • + Line layout cache in page mode caches the line of the caret. An assertion is + now used to ensure that the layout reentrancy problem that caused this + is easier to find. +
  • +
  • + Speed optimized for long lines and lines containing many control characters. +
  • +
  • + Bug fixed in brace matching in DBCS files where byte inside character + is same as brace. +
  • +
  • + Indent command does not indent empty lines. +
  • +
  • + SciTE bug fixed for commands that operate on files with empty extensions. +
  • +
  • + SciTE bug fixed where monospaced option was copied for subsequently opened files. +
  • +
  • + SciTE on Windows bug fixed in the display of a non-ASCII search string + which can not be found. +
  • +
  • + Bugs fixed with nested calls displaying a new calltip while one is already + displayed. +
  • +
  • + Bug fixed when styling PHP strings. +
  • +
  • + Bug fixed when styling C++ continued preprocessor lines. +
  • +
  • + SciTE bug fixed where opening file from recently used list reset choice of + language. +
  • +
  • + SciTE bug fixed when compiled with NO_EXTENSIONS and + closing one file closes the application. +
  • +
  • + SciTE crash fixed for error messages that look like Lua messages but aren't + in the same order. +
  • +
  • + Remaining fold box support deprecated. The symbols SC_FOLDLEVELBOXHEADERFLAG, + SC_FOLDLEVELBOXFOOTERFLAG, SC_FOLDLEVELCONTRACTED, + SC_FOLDLEVELUNINDENT, and SC_FOLDFLAG_BOX are deprecated. +
  • +
+

+ Release 1.66 +

+
    +
  • + Released on 26 August 2005. +
  • +
  • + New, more ambitious Ruby lexer. +
  • +
  • + SciTE Find in Files dialog has options for matching case and whole words which are + enabled when the internal find command is used. +
  • +
  • + SciTE output pane can display automatic completion after "$(" typed. + An initial ">" on a line is ignored when Enter pressed. +
  • +
  • + C++ lexer recognises keywords within line doc comments. It continues styles over line + end characters more consistently so that eolfilled style can be used for preprocessor lines + and line comments. +
  • +
  • + VB lexer improves handling of file numbers and date literals. +
  • +
  • + Lua folder handles repeat until, nested comments and nested strings. +
  • +
  • + POV lexer improves handling of comment lines. +
  • +
  • + AU3 lexer and folder updated. COMOBJ style added. +
  • +
  • + Bug fixed with text display on GTK+ with Pango 1.8. +
  • +
  • + Caret painting avoided when not focused. +
  • +
  • + SciTE on GTK+ handles file names used to reference properties as case-sensitive. +
  • +
  • + SciTE on GTK+ Save As and Export commands set the file name field. + On GTK+ the Export commands modify the file name in the same way as on Windows. +
  • +
  • + Fixed SciTE problem where confirmation was not displaying when closing a file where all + contents had been deleted. +
  • +
  • + Middle click on SciTE tab now closes correct buffer on Windows when tool bar is visible. +
  • +
  • + SciTE bugs fixed where files contained in directory that includes '.' character. +
  • +
  • + SciTE bug fixed where import in user options was reading file from directory of + global options. +
  • +
  • + SciTE calltip bug fixed where single line calltips had arrow displayed incorrectly. +
  • +
  • + SciTE folding bug fixed where empty lines were shown for no reason. +
  • +
  • + Bug fixed where 2 byte per pixel XPM images caused crash although they are still not + displayed. +
  • +
  • + Autocompletion list size tweaked. +
  • +
+

+ Release 1.65 +

+
    +
  • + Released on 1 August 2005. +
  • +
  • + FreeBasic support. +
  • +
  • + SciTE on Windows handles command line arguments + "-" (read standard input into buffer), + "--" (read standard input into output pane) and + "-@" (read file names from standard input and open each). +
  • +
  • + SciTE includes a simple implementation of Find in Files which is used if no find.command is set. +
  • +
  • + SciTE can close tabs with a mouse middle click. +
  • +
  • + SciTE includes a save.all.for.build setting. +
  • +
  • + Folder for MSSQL. +
  • +
  • + Batch file lexer understands more of the syntax and the behaviour of built in commands. +
  • +
  • + Perl lexer handles here docs better; disambiguates barewords, quote-like delimiters, and repetition operators; + handles Pods after __END__; recognises numbers better; and handles some typeglob special variables. +
  • +
  • + Lisp adds more lexical states. +
  • +
  • + PHP allows spaces after <<<. +
  • +
  • + TADS3 has a simpler set of states and recognises identifiers. +
  • +
  • + Avenue elseif folds better. +
  • +
  • + Errorlist lexer treats lines starting with '+++' and '---' as separate + styles from '+' and '-' as they indicate file names in diffs. +
  • +
  • + SciTE error recogniser handles file paths in extra explanatory lines from MSVC + and in '+++' and '---' lines from diff. +
  • +
  • + Bugs fixed in SciTE and Scintilla folding behaviour when text pasted before + folded text caused unnecessary + unfolding and cutting text could lead to text being irretrievably hidden. +
  • +
  • + SciTE on Windows uses correct font for dialogs and better font for tab bar + allowing better localisation +
  • +
  • + When Windows is used with a secondary monitor before the primary + monitor, autocompletion lists are not forced onto the primary monitor. +
  • +
  • + Scintilla calltip bug fixed where down arrow setting wrong value in notification + if not in first line. SciTE bug fixed where second arrow only shown on multiple line + calltip and was therefore misinterpreting the notification value. +
  • +
  • + Lexers will no longer be re-entered recursively during, for example, fold level setting. +
  • +
  • + Undo of typing in overwrite mode undoes one character at a time rather than requiring a removal + and addition step for each character. +
  • +
  • + EM_EXSETSEL(0,-1) fixed. +
  • +
  • + Bug fixed where part of a rectangular selection was not shown as selected. +
  • +
  • + Autocomplete window size fixed. +
  • +
+

+ Release 1.64 +

+
    +
  • + Released on 6 June 2005. +
  • +
  • + TADS3 support +
  • +
  • + Smalltalk support. +
  • +
  • + Rebol support. +
  • +
  • + Flagship (Clipper / XBase) support. +
  • +
  • + CSound support. +
  • +
  • + SQL enhanced to support SQL*Plus. +
  • +
  • + SC_MARK_FULLRECT margin marker fills the whole marker margin for marked + lines with a colour. +
  • +
  • + Performance improved for some large undo and redo operations and modification flags + added in notifications. +
  • +
  • + SciTE adds command equivalents for fold margin mouse actions. +
  • +
  • + SciTE adds OnUpdateUI to set of events that can be handled by a Lua script. +
  • +
  • + Properties set in Scintilla can be read. +
  • +
  • + GTK+ SciTE exit confirmation adds Cancel button. +
  • +
  • + More accurate lexing of numbers in PHP and Caml. +
  • +
  • + Perl can fold POD and package sections. POD verbatim section style. + Globbing syntax recognised better. +
  • +
  • + Context menu moved slightly on GTK+ so that it will be under the mouse and will + stay open if just clicked rather than held. +
  • +
  • + Rectangular selection paste works the same whichever direction the selection was dragged in. +
  • +
  • + EncodedFromUTF8 handles -1 length argument as documented. +
  • +
  • + Undo and redo can cause SCN_MODIFYATTEMPTRO notifications. +
  • +
  • + Indicators display correctly when they start at the second character on a line. +
  • +
  • + SciTE Export As HTML uses standards compliant CSS. +
  • +
  • + SciTE automatic indentation handles keywords for indentation better. +
  • +
  • + SciTE fold.comment.python property removed as does not work. +
  • +
  • + Fixed problem with character set conversion when pasting on GTK+. +
  • +
  • + SciTE default character set changed from ANSI_CHARSET to DEFAULT_CHARSET. +
  • +
  • + Fixed crash when creating empty autocompletion list. +
  • +
  • + Autocomplete window size made larger under some conditions to make truncation less common. +
  • +
  • + Bug fixed where changing case of a selection did not affect initial character of lines + in multi-byte encodings. +
  • +
  • + Bug fixed where rectangular selection not displayed after Alt+Shift+Click. +
  • +
+

+ Release 1.63 +

+
    +
  • + Released on 4 April 2005. +
  • +
  • + Autocompletion on Windows changed to use pop up window, be faster, + allow choice of maximum width and height, and to highlight only the text of the + selected item rather than both the text and icon if any. +
  • +
  • + Extra items can be added to the context menu in SciTE. +
  • +
  • + Character wrap mode in Scintilla helps East Asian languages. +
  • +
  • + Lexer added for Haskell. +
  • +
  • + Objective Caml support. +
  • +
  • + BlitzBasic and PureBasic support. +
  • +
  • + CSS support updated to handle CSS2. +
  • +
  • + C++ lexer is more selective about document comment keywords. +
  • +
  • + AutoIt 3 lexer improved. +
  • +
  • + Lua lexer styles end of line characters on comment and preprocessor + lines so that the eolfilled style can be applied to them. +
  • +
  • + NSIS support updated for line continuations, box comments, SectionGroup and + PageEx, and with more up-to-date properties. +
  • +
  • + Clarion lexer updated to perform folding and have more styles. +
  • +
  • + SQL lexer gains second set of keywords. +
  • +
  • + Errorlist lexer recognises Borland Delphi error messages. +
  • +
  • + Method added for determining number of visual lines occupied by a document + line due to wrapping. +
  • +
  • + Sticky caret mode does not modify the preferred caret x position when typing + and may be useful for typing columns of text. +
  • +
  • + Dwell end notification sent when scroll occurs. +
  • +
  • + On GTK+, Scintilla requisition height is screen height rather than large fixed value. +
  • +
  • + Case insensitive autocompletion prefers exact case match. +
  • +
  • + SCI_PARADOWN and SCI_PARAUP treat lines containing only white + space as empty and handle text hidden by folding. +
  • +
  • + Scintilla on Windows supports WM_PRINTCLIENT although there are some + limitations. +
  • +
  • + SCN_AUTOCSELECTION notification sent when user selects from autoselection list. +
  • +
  • + SciTE's standard properties file sets buffers to 10, uses Pango fonts on GTK+ and + has dropped several languages to make the menu fit on screen. +
  • +
  • + SciTE's encoding cookie detection loosened so that common XML files will load + in UTF-8 if that is their declared encoding. +
  • +
  • + SciTE on GTK+ changes menus and toolbars to not be detachable unless turned + on with a property. Menus no longer tear off. The toolbar may be set to use the + default theme icons rather than SciTE's set. Changed key for View | End of Line + because of a conflict. Language menu can contain more items. +
  • +
  • + SciTE on GTK+ 2.x allows the height and width of the file open file chooser to + be set, for the show hidden files check box to be set from an option and for it + to be opened in the directory of the current file explicitly. Enter key works in + save chooser. +
  • +
  • + Scintilla lexers should no longer see bits in style bytes that are outside the set + they modify so should be able to correctly lex documents where the container + has used indicators. +
  • +
  • + SciTE no longer asks to save before performing a revert. +
  • +
  • + SciTE director interface adds a reloadproperties command to reload properties + from files. +
  • +
  • + Allow build on CYGWIN platform. +
  • +
  • + Allow use from LccWin compiler. +
  • +
  • + SCI_COLOURISE for SCLEX_CONTAINER causes a + SCN_STYLENEEDED notification. +
  • +
  • + Bugs fixed in lexing of HTML/ASP/JScript. +
  • +
  • + Fix for folding becoming confused. +
  • +
  • + On Windows, fixes for Japanese Input Method Editor and for 8 bit Katakana + characters. +
  • +
  • + Fixed buffer size bug avoided when typing long words by making buffer bigger. +
  • +
  • + Undo after automatic indentation more sensible. +
  • +
  • + SciTE menus on GTK+ uses Shift and Ctrl rather than old style abbreviations. +
  • +
  • + SciTE full screen mode on Windows calculates size more correctly. +
  • +
  • + SciTE on Windows menus work better with skinning applications. +
  • +
  • + Searching bugs fixed. +
  • +
  • + Colours reallocated when changing image using SCI_REGISTERIMAGE. +
  • +
  • + Caret stays visible when Enter held down. +
  • +
  • + Undo of automatic indentation more reasonable. +
  • +
  • + High processor usage fixed in background wrapping under some + circumstances. +
  • +
  • + Crashing bug fixed on AMD64. +
  • +
  • + SciTE crashing bug fixed when position.height or position.width not set. +
  • +
  • + Crashing bug on GTK+ fixed when setting cursor and window is NULL. +
  • +
  • + Crashing bug on GTK+ preedit window fixed. +
  • +
  • + SciTE crashing bug fixed in incremental search on Windows ME. +
  • +
  • + SciTE on Windows has a optional find and replace dialogs that can search through + all buffers and search within a particular style number. +
  • +
+

+ Release 1.62 +

+
    +
  • + Released on 31 October 2004. +
  • +
  • + Lexer added for ASN.1. +
  • +
  • + Lexer added for VHDL. +
  • +
  • + On Windows, an invisible system caret is used to allow screen readers to determine + where the caret is. The visible caret is still drawn by the painting code. +
  • +
  • + On GTK+, Scintilla has methods to read the target as UTF-8 and to convert + a string from UTF-8 to the document encoding. This eases integration with + containers that use the UTF-8 encoding which is the API encoding for GTK+ 2. +
  • +
  • + SciTE on GTK+2 and Windows NT/2000/XP allows search and replace of Unicode text. +
  • +
  • + SciTE calltips allow setting the characters used to start and end parameter lists and + to separate parameters. +
  • +
  • + FindColumn method converts a line and column into a position, taking into account + tabs and multi-byte characters. +
  • +
  • + On Windows, when Scintilla copies text to the clipboard as Unicode, it avoids + adding an ANSI copy as the system will automatically convert as required in + a context-sensitive manner. +
  • +
  • + SciTE indent.auto setting automatically determines indent.size and use.tabs from + document contents. +
  • +
  • + SciTE defines a CurrentMessage property that holds the most recently selected + output pane message. +
  • +
  • + SciTE Lua scripting enhanced with +
      +
    • A Lua table called 'buffer' is associated with each buffer and can be used to + maintain buffer-specific state.
    • +
    • A 'scite' object allows interaction with the application such as opening + files from script.
    • +
    • Dynamic properties can be reset by assigning nil to a given key in + the props table.
    • +
    • An 'OnClear' event fires whenever properties and extension scripts are + about to be reloaded.
    • +
    • On Windows, loadlib is enabled and can be used to access Lua + binary modules / DLLs.
    +
  • +
  • + SciTE Find in Files on Windows can be used in a modeless way and gains a '..' + button to move up to the parent directory. It is also wider so that longer paths + can be seen. +
  • +
  • + Close buttons added to dialogs in SciTE on Windows. +
  • +
  • + SciTE on GTK+ 2 has a "hidden files" check box in file open dialog. +
  • +
  • + SciTE use.monospaced setting removed. More information in the + FAQ. +
  • +
  • + APDL lexer updated with more lexical classes +
  • +
  • + AutoIt3 lexer updated. +
  • +
  • + Ada lexer fixed to support non-ASCII text. +
  • +
  • + Cpp lexer now only matches exactly three slashes as starting a doc-comment so that + lines of slashes are seen as a normal comment. + Line ending characters are appear in default style on preprocessor and single line + comment lines. +
  • +
  • + CSS lexer updated to support CSS2 including second set of keywords. +
  • +
  • + Errorlist lexer now understands Java stack trace lines. +
  • +
  • + SciTE's handling of HTML Tidy messages jumps to column as well as line indicated. +
  • +
  • + Lisp lexer allows multiline strings. +
  • +
  • + Lua lexer treats .. as an operator when between identifiers. +
  • +
  • + PHP lexer handles 'e' in numerical literals. +
  • +
  • + PowerBasic lexer updated for macros and optimised. +
  • +
  • + Properties file folder changed to leave lines before a header at the base level + and thus avoid a vertical line when using connected folding symbols. +
  • +
  • + GTK+ on Windows version uses Alt for rectangular selection to be compatible with + platform convention. +
  • +
  • + SciTE abbreviations file moved from system directory to user directory + so each user can have separate abbreviations. +
  • +
  • + SciTE on GTK+ has improved .desktop file and make install support that may + lead to better integration with system shell. +
  • +
  • + Disabling of themed background drawing on GTK+ extended to all cases. +
  • +
  • + SciTE date formatting on Windows performed with the user setting rather than the + system setting. +
  • +
  • + GTK+ 2 redraw while scrolling fixed. +
  • +
  • + Recursive property definitions are safer, avoiding expansion when detected. +
  • +
  • + SciTE thread synchronization for scripts no longer uses HWND_MESSAGE + so is compatible with older versions of Windows. + Other Lua scripting bugs fixed. +
  • +
  • + SciTE on Windows localisation of menu accelerators changed to be compatible + with alternative UI themes. +
  • +
  • + SciTE on Windows full screen mode now fits better when menu different height + to title bar height. +
  • +
  • + SC_MARK_EMPTY marker is now invisible and does not change the background + colour. +
  • +
  • + Bug fixed in HTML lexer to allow use of <?xml in strings in scripts without + triggering xml mode. +
  • +
  • + Bug fixed in SciTE abbreviation expansion that could break indentation or crash. +
  • +
  • + Bug fixed when searching for a whole word string that ends one character before + end of document. +
  • +
  • + Drawing bug fixed when indicators drawn on wrapped lines. +
  • +
  • + Bug fixed when double clicking a hotspot. +
  • +
  • + Bug fixed where autocompletion would remove typed text if no match found. +
  • +
  • + Bug fixed where display does not scroll when inserting in long wrapped line. +
  • +
  • + Bug fixed where SCI_MARKERDELETEALL would only remove one of the markers + on a line that contained multiple markers with the same number. +
  • +
  • + Bug fixed where markers would move when converting line endings. +
  • +
  • + Bug fixed where SCI_LINEENDWRAP would move too far when line ends are visible. +
  • +
  • + Bugs fixed where calltips with unicode or other non-ASCII text would display + incorrectly. +
  • +
  • + Bug fixed in determining if at save point after undoing from save point and then + performing changes. +
  • +
  • + Bug fixed on GTK+ using unsupported code pages where extraneous text could + be drawn. +
  • +
  • + Bug fixed in drag and drop code on Windows where dragging from SciTE to + Firefox could hang both applications. +
  • +
  • + Crashing bug fixed on GTK+ when no font allocation succeeds. +
  • +
  • + Crashing bug fixed when autocompleting word longer than 1000 characters. +
  • +
  • + SciTE crashing bug fixed when both Find and Replace dialogs shown by disallowing + this situation. +
  • +
+

+ Release 1.61 +

+
    +
  • + Released on 29 May 2004. +
  • +
  • + Improvements to selection handling on GTK+. +
  • +
  • + SciTE on GTK+ 2.4 uses the improved file chooser which allows + file extension filters, multiple selection, and remembers favourite + directories. +
  • +
  • + SciTE Load Session and Save Session commands available on GTK+. +
  • +
  • + SciTE lists Lua Startup Script in Options menu when loaded. +
  • +
  • + In SciTE, OnUserListSelection can be implemented in Lua. +
  • +
  • + SciTE on Windows has a context menu on the file tabs. +
  • +
  • + SQL lexer allows '#' comments and optionally '\' quoting inside strings. +
  • +
  • + Mssql lexer improved. +
  • +
  • + AutoIt3 lexer updated. +
  • +
  • + Perl lexer recognises regular expression use better. +
  • +
  • + Errorlist lexer understands Lua tracebacks and copes with findstr + output for file names that end with digits. +
  • +
  • + Drawing of lines on GTK+ improved and made more like Windows + without final point. +
  • +
  • + SciTE on GTK+ uses a high resolution window icon. +
  • +
  • + SciTE can be set to warn before loading files larger than a particular size. +
  • +
  • + SciTE Lua scripting bugs fixed included a crashing bug when using + an undefined function name that would go before first actual name. +
  • +
  • + SciTE bug fixed where a modified buffer was not saved if it was + the last buffer and was not current when the New command used. +
  • +
  • + SciTE monofont mode no longer affects line numbers. +
  • +
  • + Crashing bug in SciTE avoided by not allowing both the Find and Replace + dialogs to be visible at one time. +
  • +
  • + Crashing bug in SciTE fixed when Lua scripts were being run + concurrently. +
  • +
  • + Bug fixed that caused incorrect line number width in SciTE. +
  • +
  • + PHP folding bug fixed. +
  • +
  • + Regression fixed when setting word characters to not include + some of the standard word characters. +
  • +
+

+ Release 1.60 +

+
    +
  • + Released on 1 May 2004. +
  • +
  • + SciTE can be scripted using the Lua programming language. +
  • +
  • + command.mode is a better way to specify tool command options in SciTE. +
  • +
  • + Continuation markers can be displayed so that you can see which lines are wrapped. +
  • +
  • + Lexer for Gui4Cli language. +
  • +
  • + Lexer for Kix language. +
  • +
  • + Lexer for Specman E language. +
  • +
  • + Lexer for AutoIt3 language. +
  • +
  • + Lexer for APDL language. +
  • +
  • + Lexer for Bash language. Also reasonable for other Unix shells. +
  • +
  • + SciTE can load lexers implemented in external shared libraries. +
  • +
  • + Perl treats "." not as part of an identifier and interprets '/' and '->' + correctly in more circumstances. +
  • +
  • + PHP recognises variables within strings. +
  • +
  • + NSIS has properties "nsis.uservars" and "nsis.ignorecase". +
  • +
  • + MSSQL lexer adds keyword list for operators and stored procedures, + defines '(', ')', and ',' as operators and changes some other details. +
  • +
  • + Input method preedit window on GTK+ 2 may support some Asian languages. +
  • +
  • + Platform interface adds an extra platform-specific flag to Font::Create. + Used on wxWidgets to choose antialiased text display but may be used for + any task that a platform needs. +
  • +
  • + OnBeforeSave method added to Extension interface. +
  • +
  • + Scintilla methods that return strings can be called with a NULL pointer + to find out how long the string should be. +
  • +
  • + Visual Studio .NET project file now in VS .NET 2003 format so can not be used + directly in VS .NET 2002. +
  • +
  • + Scintilla can be built with GTK+ 2 on Windows. +
  • +
  • + Updated RPM spec for SciTE on GTK+. +
  • +
  • + GTK+ makefile for SciTE allows selection of destination directory, creates destination + directories and sets file modes and owners better. +
  • +
  • + Tab indents now go to next tab multiple rather than add tab size. +
  • +
  • + SciTE abbreviations now use the longest possible match rather than the shortest. +
  • +
  • + Autocompletion does not remove prefix when actioned with no choice selected. +
  • +
  • + Autocompletion cancels when moving beyond the start position, not at the start position. +
  • +
  • + SciTE now shows only calltips for functions that match exactly, not + those that match as a prefix. +
  • +
  • + SciTE can repair box comment sections where some lines were added without + the box comment middle line prefix. +
  • +
  • + Alt+ works in user.shortcuts on Windows. +
  • +
  • + SciTE on GTK+ enables replace in selection for rectangular selections. +
  • +
  • + Key bindings for command.shortcut implemented in a way that doesn't break + when the menus are localised. +
  • +
  • + Drawing of background on GTK+ faster as theme drawing disabled. +
  • +
  • + On GTK+, calltips are moved back onto the screen if they extend beyond the screen bounds. +
  • +
  • + On Windows, the Scintilla object is destroyed on WM_NCDESTROY rather than + WM_DESTROY which arrives earlier. This fixes some problems when Scintilla was subclassed. +
  • +
  • + The zorder switching feature removed due to number of crashing bugs. +
  • +
  • + Code for XPM images made more robust. +
  • +
  • + Bug fixed with primary selection on GTK+. +
  • +
  • + On GTK+ 2, copied or cut text can still be pasted after the Scintilla widget is destroyed. +
  • +
  • + Styling change not visible problem fixed when line was cached. +
  • +
  • + Bug in SciTE on Windows fixed where clipboard commands stopped working. +
  • +
  • + Crashing bugs in display fixed in line layout cache. +
  • +
  • + Crashing bug may be fixed on AMD64 processor on GTK+. +
  • +
  • + Rare hanging crash fixed in Python lexer. +
  • +
  • + Display bugs fixed with DBCS characters on GTK+. +
  • +
  • + Autocompletion lists on GTK+ 2 are not sorted by the ListModel as the + contents are sorted correctly by Scintilla. +
  • +
  • + SciTE fixed to not open extra untitled buffers with check.if.already.open. +
  • +
  • + Sizing bug fixed on GTK+ when window resized while unmapped. +
  • +
  • + Text drawing crashing bug fixed on GTK+ with non-Pango fonts and long strings. +
  • +
  • + Fixed some issues if characters are unsigned. +
  • +
  • + Fixes in NSIS support. +
  • +
+

+ Release 1.59 +

+
    +
  • + Released on 19 February 2004. +
  • +
  • + SciTE Options and Language menus reduced in length by commenting + out some languages. Languages can be enabled by editing the global + properties file. +
  • +
  • + Verilog language supported. +
  • +
  • + Lexer for Microsoft dialect of SQL. SciTE properties file available from extras page. +
  • +
  • + Perl lexer disambiguates '/' better. +
  • +
  • + NSIS lexer improved with a lexical class for numbers, option for ignoring case + of keywords, and folds only occurring when folding keyword first on line. +
  • +
  • + PowerBasic lexer improved with styles for constants and assembler and + folding improvements. +
  • +
  • + On GTK+, input method support only invoked for Asian languages and not + European languages as the old European keyboard code works better. +
  • +
  • + Scintilla can be requested to allocate a certain amount and so avoid repeated + reallocations and memory inefficiencies. SciTE uses this and so should require + less memory. +
  • +
  • + SciTE's "toggle current fold" works when invoked on child line as well as + fold header. +
  • +
  • + SciTE output pane scrolling can be set to not scroll back to start after + completion of command. +
  • +
  • + SciTE has a $(SessionPath) property. +
  • +
  • + SciTE on Windows can use VK_* codes for keys in user.shortcuts. +
  • +
  • + Stack overwrite bug fixed in SciTE's command to move to the end of a + preprocessor conditional. +
  • +
  • + Bug fixed where vertical selection appeared to select a different set of characters + then would be used by, for example, a copy. +
  • +
  • + SciTE memory leak fixed in fold state remembering. +
  • +
  • + Bug fixed where changing the style of some text outside the + standard StyleNeeded notification would not be visible. +
  • +
  • + On GTK+ 2 g_iconv is used in preference to iconv, as it is provided by GTK+ + so should avoid problems finding the iconv library. +
  • +
  • + On GTK+ fixed a style reference count bug. +
  • +
  • + Memory corruption bug fixed with GetSelText. +
  • +
  • + On Windows Scintilla deletes memory on WM_NCDESTROY rather than + the earlier WM_DESTROY to avoid problems when the window is subclassed. +
  • +
+

+ Release 1.58 +

+
    +
  • + Released on 11 January 2004. +
  • +
  • + Method to discover the currently highlighted element in an autocompletion list. +
  • +
  • + On GTK+, the lexers are now included in the scintilla.a library file. This + will require changes to the make files of dependent projects. +
  • +
  • + Octave support added alongside related Matlab language and Matlab support improved. +
  • +
  • + VB lexer gains an unterminated string state and 4 sets of keywords. +
  • +
  • + Ruby lexer handles $' correctly. +
  • +
  • + Error line handling improved for FORTRAN compilers from Absoft and Intel. +
  • +
  • + International input enabled on GTK+ 2 although there is no way to choose an + input method. +
  • +
  • + MultiplexExtension in SciTE allows multiple extensions to be used at once. +
  • +
  • + Regular expression replace interprets backslash expressions \a, \b, \f, \n, \r, \t, + and \v in the replacement value. +
  • +
  • + SciTE Replace dialog displays number of replacements made when Replace All or + Replace in Selection performed. +
  • +
  • + Localisation files may contain a translation.encoding setting which is used + on GTK+ 2 to automatically reencode the translation to UTF-8 so it will be + the localised text will be displayed correctly. +
  • +
  • + SciTE on GTK+ implements check.if.already.open. +
  • +
  • + Make files for Mac OS X made more robust. +
  • +
  • + Performance improved in SciTE when switching buffers when there + is a rectangular selection. +
  • +
  • + Fixed failure to display some text when wrapped. +
  • +
  • + SciTE crashes from Ctrl+Tab buffer cycling fixed. + May still be some rare bugs here. +
  • +
  • + Crash fixed when decoding an error message that appears similar to a + Borland error message. +
  • +
  • + Fix to auto-scrolling allows containers to implement enhanced double click selection. +
  • +
  • + Hang fixed in idle word wrap. +
  • +
  • + Crash fixed in hotspot display code.. +
  • +
  • + SciTE on Windows Incremental Search no longer moves caret back. +
  • +
  • + SciTE hang fixed when performing a replace with a find string that + matched zero length strings such as ".*". +
  • +
  • + SciTE no longer styles the whole file when saving buffer fold state + as that was slow. +
  • +
+

+ Release 1.57 +

+
    +
  • + Released on 27 November 2003. +
  • +
  • + SciTE remembers folding of each buffer. +
  • +
  • + Lexer for Erlang language. +
  • +
  • + Scintilla allows setting the set of white space characters. +
  • +
  • + Scintilla has 'stuttered' page movement commands to first move + to top or bottom within current visible lines before scrolling. +
  • +
  • + Scintilla commands for moving to end of words. +
  • +
  • + Incremental line wrap enabled on Windows. +
  • +
  • + SciTE PDF exporter produces output that is more compliant with reader + applications, is smaller and allows more configuration. + HTML exporter optimizes size of output files. +
  • +
  • + SciTE defines properties PLAT_WINNT and PLAT_WIN95 on the + corresponding platforms. +
  • +
  • + SciTE can adjust the line margin width to fit the largest line number. + The line.numbers property is split between line.margin.visible and + line.margin.width. +
  • +
  • + SciTE on GTK+ allows user defined menu accelerators. + Alt can be included in user.shortcuts. +
  • +
  • + SciTE Language menu can have items commented out. +
  • +
  • + SciTE on Windows Go to dialog allows choosing a column number as + well as a line number. +
  • +
  • + SciTE on GTK+ make file uses prefix setting more consistently. +
  • +
  • + Bug fixed that caused word wrapping to fail to display all text. +
  • +
  • + Crashing bug fixed in GTK+ version of Scintilla when using GDK fonts + and opening autocompletion. +
  • +
  • + Bug fixed in Scintilla SCI_GETSELTEXT where an extra NUL + was included at end of returned string +
  • +
  • + Crashing bug fixed in SciTE z-order switching implementation. +
  • +
  • + Hanging bug fixed in Perl lexer. +
  • +
  • + SciTE crashing bug fixed for using 'case' without argument in style definition. +
  • +
+

+ Release 1.56 +

+
    +
  • + Released on 25 October 2003. +
  • +
  • + Rectangular selection can be performed using the keyboard. + Greater programmatic control over rectangular selection. + This has caused several changes to key bindings. +
  • +
  • + SciTE Replace In Selection works on rectangular selections. +
  • +
  • + Improved lexer for TeX, new lexer for Metapost and other support for these + languages. +
  • +
  • + Lexer for PowerBasic. +
  • +
  • + Lexer for Forth. +
  • +
  • + YAML lexer improved to include error styling. +
  • +
  • + Perl lexer improved to correctly handle more cases. +
  • +
  • + Assembler lexer updated to support single-quote strings and fix some + problems. +
  • +
  • + SciTE on Windows can switch between buffers in order of use (z-order) rather + than static order. +
  • +
  • + SciTE supports adding an extension for "Open Selected Filename". + The openpath setting works on GTK+. +
  • +
  • + SciTE can Export as XML. +
  • +
  • + SciTE $(SelHeight) variable gives a more natural result for empty and whole line + selections. +
  • +
  • + Fixes to wrapping problems, such as only first display line being visible in some + cases. +
  • +
  • + Fixes to hotspot to only highlight when over the hotspot, only use background + colour when set and option to limit hotspots to a single line. +
  • +
  • + Small fixes to FORTRAN lexing and folding. +
  • +
  • + SQL lexer treats single quote strings as a separate class to double quote strings.. +
  • +
  • + Scintilla made compatible with expectations of container widget in GTK+ 2.3. +
  • +
  • + Fix to strip out pixmap ID when automatically choosing from an autocompletion + list with only one element. +
  • +
  • + SciTE bug fixed where UTF-8 files longer than 128K were gaining more than one + BOM. +
  • +
  • + Crashing bug fixed in SciTE on GTK+ where using "Stop Executing" twice leads + to all applications exiting. +
  • +
  • + Bug fixed in autocompletion scrolling on GTK+ 2 with a case sensitive list. + The ListBox::Sort method is no longer needed or available so platform + maintainers should remove it. +
  • +
  • + SciTE check.if.already.open setting removed from GTK+ version as unmaintained. +
  • +
+

+ Release 1.55 +

+
    +
  • + Released on 25 September 2003. +
  • +
  • + Fix a crashing bug in indicator display in Scintilla. +
  • +
  • + GTK+ version now defaults to building for GTK+ 2 rather than 1. +
  • +
  • + Mingw make file detects compiler version and avoids options + that are cause problems for some versions. +
  • +
  • + Large performance improvement on GTK+ 2 for long lines. +
  • +
  • + Incremental line wrap on GTK+. +
  • +
  • + International text entry works much better on GTK+ with particular + improvements for Baltic languages and languages that use 'dead' accents. + NUL key events such as those generated by some function keys, ignored. +
  • +
  • + Unicode clipboard support on GTK+. +
  • +
  • + Indicator type INDIC_BOX draws a rectangle around the text. +
  • +
  • + Clarion language support. +
  • +
  • + YAML language support. +
  • +
  • + MPT LOG language support. +
  • +
  • + On Windows, SciTE can switch buffers based on activation order rather + than buffer number. +
  • +
  • + SciTE save.on.deactivate saves all buffers rather than just the current buffer. +
  • +
  • + Lua lexer handles non-ASCII characters correctly. +
  • +
  • + Error lexer understands Borland errors with pathnames that contain space. +
  • +
  • + On GTK+ 2, autocompletion uses TreeView rather than deprecated CList. +
  • +
  • + SciTE autocompletion removed when expand abbreviation command used. +
  • +
  • + SciTE calltips support overloaded functions. +
  • +
  • + When Save fails in SciTE, choice offered to Save As. +
  • +
  • + SciTE message boxes on Windows may be moved to front when needed. +
  • +
  • + Indicators drawn correctly on wrapped lines. +
  • +
  • + Regular expression search no longer matches characters with high bit + set to characters without high bit set. +
  • +
  • + Hang fixed in backwards search in multi byte character documents. +
  • +
  • + Hang fixed in SciTE Mark All command when wrap around turned off. +
  • +
  • + SciTE Incremental Search no longer uses hot keys on Windows. +
  • +
  • + Calltips draw non-ASCII characters correctly rather than as arrows. +
  • +
  • + SciTE crash fixed when going to an error message with empty file name. +
  • +
  • + Bugs fixed in XPM image handling code. +
  • +
+

+ Release 1.54 +

+
    +
  • + Released on 12 August 2003. +
  • +
  • + SciTE on GTK+ 2.x can display a tab bar. +
  • +
  • + SciTE on Windows provides incremental search. +
  • +
  • + Lexer for PostScript. +
  • +
  • + Lexer for the NSIS scripting language. +
  • +
  • + New lexer for POV-Ray Scene Description Language + replaces previous implementation. +
  • +
  • + Lexer for the MMIX Assembler language. +
  • +
  • + Lexer for the Scriptol language. +
  • +
  • + Incompatibility: SQL keywords are specified in lower case rather than upper case. + SQL lexer allows double quoted strings. +
  • +
  • + Pascal lexer: character constants that start with '#' understood, + '@' only allowed within assembler blocks, + '$' can be the start of a number, + initial '.' in 0..constant not treated as part of a number, + and assembler blocks made more distinctive. +
  • +
  • + Lua lexer allows '.' in keywords. + Multi-line strings and comments can be folded. +
  • +
  • + CSS lexer handles multiple psuedoclasses. +
  • +
  • + Properties file folder works for INI file format. +
  • +
  • + Hidden indicator style allows the container to mark text within Scintilla + without there being any visual effect. +
  • +
  • + SciTE does not prompt to save changes when the buffer is empty and untitled. +
  • +
  • + Modification notifications caused by SCI_INSERTSTYLEDSTRING + now include the contents of the insertion. +
  • +
  • + SCI_MARKERDELETEALL deletes all the markers on a line + rather than just the first match. +
  • +
  • + Better handling of 'dead' accents on GTK+ 2 for languages + that use accented characters. +
  • +
  • + SciTE now uses value of output.vertical.size property. +
  • +
  • + Crash fixed in SciTE autocompletion on long lines. +
  • +
  • + Crash fixed in SciTE comment command on long lines. +
  • +
  • + Bug fixed with backwards regular expression search skipping + every second match. +
  • +
  • + Hang fixed with regular expression replace where both target and replacement were empty. +
  • +
+

+ Release 1.53 +

+
    +
  • + Released on 16 May 2003. +
  • +
  • + On GTK+ 2, encodings other than ASCII, Latin1, and Unicode are + supported for both display and input using iconv. +
  • +
  • + External lexers supported on GTK+/Linux. + External lexers must now be explicitly loaded with SCI_LOADLEXERLIBRARY + rather than relying upon a naming convention and automatic loading. +
  • +
  • + Support of Lout typesetting language. +
  • +
  • + Support of E-Scripts language used in the POL Ultima Online Emulator. +
  • +
  • + Scrolling and drawing performance on GTK+ enhanced, particularly for GTK+ 2.x + with an extra window for the text area avoiding conflicts with the scroll bars. +
  • +
  • + CopyText and CopyRange methods in Scintilla allow container to + easily copy to the system clipboard. +
  • +
  • + Line Copy command implemented and bound to Ctrl+Shift+T. +
  • +
  • + Scintilla APIs PositionBefore and PositionAfter can be used to iterate through + a document taking into account the encoding and multi-byte characters. +
  • +
  • + C++ folder can fold on the "} else {" line of an if statement by setting + fold.at.else property to 1. +
  • +
  • + C++ lexer allows an extra set of keywords. +
  • +
  • + Property names and thus abbreviations may be non-ASCII. +
  • +
  • + Removed attempt to load a file when setting properties that was + part of an old scripting experiment. +
  • +
  • + SciTE no longer warns about a file not existing when opening + properties files from the Options menu as there is a good chance + the user wants to create one. +
  • +
  • + Bug fixed with brace recognition in multi-byte encoded files where a partial + character matched a brace byte. +
  • +
  • + More protection against infinite loops or recursion with recursive property definitions. +
  • +
  • + On Windows, cursor will no longer disappear over margins in custom builds when + cursor resource not present. The Windows default cursor is displayed instead. +
  • +
  • + load.on.activate fixed in SciTE as was broken in 1.52. +
  • +
+

+ Release 1.52 +

+
    +
  • + Released on 17 April 2003. +
  • +
  • + Pango font support on GTK+ 2. + Unicode input improved on GTK+ 2. +
  • +
  • + Hotspot style implemented in Scintilla. +
  • +
  • + Small up and down arrows can be displayed in calltips and the container + is notified when the mouse is clicked on a calltip. + Normal and selected calltip text colours can be set. +
  • +
  • + POSIX compatibility flag in Scintilla regular expression search + interprets bare ( and ) as tagged sections. +
  • +
  • + Error message lexer tightened to yield fewer false matches. + Recognition of Lahey and Intel FORTRAN error formats. +
  • +
  • + Scintilla keyboard commands for moving to start and end of + screen lines rather than document lines, unless already there + where these keys move to the start or end of the document line. +
  • +
  • + Line joining command. +
  • +
  • + Lexer for POV-Ray. +
  • +
  • + Calltips on Windows are no longer clipped by the parent window. +
  • +
  • + Autocompletion lists are cancelled when focus leaves their parent window. +
  • +
  • + Move to next/previous empty line delimited paragraph key commands. +
  • +
  • + SciTE hang fixed with recursive property definitions by placing limit + on number of substitutions performed. +
  • +
  • + SciTE Export as PDF reenabled and works. +
  • +
  • + Added loadsession: command line command to SciTE. +
  • +
  • + SciTE option to quit application when last document closed. +
  • +
  • + SciTE option to ask user if it is OK to reload a file that has been + modified outside SciTE. +
  • +
  • + SciTE option to automatically save before running particular command tools + or to ask user or to not save. +
  • +
  • + SciTE on Windows 9x will write a Ctrl+Z to the process input pipe before + closing the pipe when running tool commands that take input. +
  • +
  • + Added a manifest resource to SciTE on Windows to enable Windows XP + themed UI. +
  • +
  • + SciTE calltips handle nested calls and other situations better. +
  • +
  • + CSS lexer improved. +
  • +
  • + Interface to platform layer changed - Surface initialisation now requires + a WindowID parameter. +
  • +
  • + Bug fixed with drawing or measuring long pieces of text on Windows 9x + by truncating the pieces. +
  • +
  • + Bug fixed with SciTE on GTK+ where a user shortcut for a visible character + inserted the character as well as executing the command. +
  • +
  • + Bug fixed where primary selection on GTK+ was reset by + Scintilla during creation. +
  • +
  • + Bug fixed where SciTE would close immediately on startup + when using save.session. +
  • +
  • + Crash fixed when entering '\' in LaTeX file. +
  • +
  • + Hang fixed when '#' last character in VB file. +
  • +
  • + Crash fixed in error message lexer. +
  • +
  • + Crash fixed when searching for long regular expressions. +
  • +
  • + Pressing return when nothing selected in user list sends notification with + empty text rather than random text. +
  • +
  • + Mouse debouncing disabled on Windows as it interfered with some + mouse utilities. +
  • +
  • + Bug fixed where overstrike mode inserted before rather than replaced last + character in document. +
  • +
  • + Bug fixed with syntax highlighting of Japanese text. +
  • +
  • + Bug fixed in split lines function. +
  • +
  • + Cosmetic fix to SciTE tab bar on Windows when window resized. + Focus sticks to either pane more consistently. +
  • +
+

+ Release 1.51 +

+
    +
  • + Released on 16 February 2003. +
  • +
  • + Two phase drawing avoids cutting off text that overlaps runs by drawing + all the backgrounds of a line then drawing all the text transparently. + Single phase drawing is an option. +
  • +
  • + Scintilla method to split lines at a particular width by adding new line + characters. +
  • +
  • + The character used in autocompletion lists to separate the text from the image + number can be changed. +
  • +
  • + The scrollbar range will automatically expand when the caret is moved + beyond the current range. + The scroll bar is updated when SCI_SETXOFFSET is called. +
  • +
  • + Mouse cursors on GTK+ improved to be consistent with other applications + and the Windows version. +
  • +
  • + Horizontal scrollbar on GTK+ now disappears in wrapped mode. +
  • +
  • + Scintilla on GTK+ 2: mouse wheel scrolling, cursor over scrollbars, focus, + and syntax highlighting now work. + gtk_selection_notify avoided for compatibility with GTK+ 2.2. +
  • +
  • + Fold margin colours can now be set. +
  • +
  • + SciTE can be built for GTK+ 2. +
  • +
  • + SciTE can optionally preserve the undo history over an automatic file reload. +
  • +
  • + Tags can optionally be case insensitive in XML and HTML. +
  • +
  • + SciTE on Windows handles input to tool commands in a way that should avoid + deadlock. Output from tools can be used to replace the selection. +
  • +
  • + SciTE on GTK+ automatically substitutes '|' for '/' in menu items as '/' + is used to define the menu hierarchy. +
  • +
  • + Optional buffer number in SciTE title bar. +
  • +
  • + Crash fixed in SciTE brace matching. +
  • +
  • + Bug fixed where automatic scrolling past end of document + flipped back to the beginning. +
  • +
  • + Bug fixed where wrapping caused text to disappear. +
  • +
  • + Bug fixed on Windows where images in autocompletion lists were + shown on the wrong item. +
  • +
  • + Crash fixed due to memory bug in autocompletion lists on Windows. +
  • +
  • + Crash fixed when double clicking some error messages. +
  • +
  • + Bug fixed in word part movement where sometimes no movement would occur. +
  • +
  • + Bug fixed on Windows NT where long text runs were truncated by + treating NT differently to 9x where there is a limitation. +
  • +
  • + Text in not-changeable style works better but there remain some cases where + it is still possible to delete text protected this way. +
  • +
+

+ Release 1.50 +

+
    +
  • + Released on 24 January 2003. +
  • +
  • + Autocompletion lists may have a per-item pixmap. +
  • +
  • + Autocompletion lists allow Unicode text on Windows. +
  • +
  • + Scintilla documentation rewritten. +
  • +
  • + Additional DBCS encoding support in Scintilla on GTK+ primarily aimed at + Japanese EUC encoding. +
  • +
  • + CSS (Cascading Style Sheets) lexer added. +
  • +
  • + diff lexer understands some more formats. +
  • +
  • + Fold box feature is an alternative way to show the structure of code. +
  • +
  • + Avenue lexer supports multiple keyword lists. +
  • +
  • + The caret may now be made invisible by setting the caret width to 0. +
  • +
  • + Python folder attaches comments before blocks to the next block rather + than the previous block. +
  • +
  • + SciTE openpath property on Windows searches a path for files that are + the subject of the Open Selected Filename command. +
  • +
  • + The localisation file name can be changed with the locale.properties property. +
  • +
  • + On Windows, SciTE can pipe the result of a string expression into a command line tool. +
  • +
  • + On Windows, SciTE's Find dialog has a Mark All button. +
  • +
  • + On Windows, there is an Insert Abbreviation command that allows a choice from + the defined abbreviations and inserts the selection into the abbreviation at the + position of a '|'. +
  • +
  • + Minor fixes to Fortran lexer. +
  • +
  • + fold.html.preprocessor decides whether to fold <? and ?>. + Minor improvements to PHP folding. +
  • +
  • + Maximum number of keyword lists allowed increased from 6 to 9. +
  • +
  • + Duplicate line command added with default assignment to Ctrl+D. +
  • +
  • + SciTE sets $(Replacements) to the number of replacements made by the + Replace All command. $(CurrentWord) is set to the word before the caret if the caret + is at the end of a word. +
  • +
  • + Opening a SciTE session now loads files in remembered order, sets the current file + as remembered, and moves the caret to the remembered line. +
  • +
  • + Bugs fixed with printing on Windows where line wrapping was causing some text + to not print. +
  • +
  • + Bug fixed with Korean Input Method Editor on Windows. +
  • +
  • + Bugs fixed with line wrap which would sometimes choose different break positions + after switching focus away and back. +
  • +
  • + Bug fixed where wheel scrolling had no effect on GTK+ after opening a fold. +
  • +
  • + Bug fixed with file paths containing non-ASCII characters on Windows. +
  • +
  • + Crash fixed with printing on Windows after defining pixmap marker. +
  • +
  • + Crash fixed in makefile lexer when first character on line was '='. +
  • +
  • + Bug fixed where local properties were not always being applied. +
  • +
  • + Ctrl+Keypad* fold command works on GTK+. +
  • +
  • + Hangs fixed in SciTE's Replace All command when replacing regular expressions '^' + or '$'. +
  • +
  • + SciTE monospace setting behaves more sensibly. +
  • +
+

+ Release 1.49 +

+
    +
  • + Released on 1 November 2002. +
  • +
  • + Unicode supported on GTK+. To perform well, this added a font cache to GTK+ + and to make that safe, a mutex is used. The mutex requires the application to link in + the threading library by evaluating `glib-config --libs gthread`. A Unicode locale + should also be set up by a call like setlocale(LC_CTYPE, "en_US.UTF-8"). + scintilla_release_resources function added to release mutex. +
  • +
  • + FORTRAN and assembler lexers added along with other support for these + languages in SciTE. +
  • +
  • + Ada lexer improved handling of based numbers, identifier validity and attributes + distinguished from character literals. +
  • +
  • + Lua lexer handles block comments and a deep level of nesting for literal strings + and block comments. +
  • +
  • + Errorlist lexer recognises PHP error messages. +
  • +
  • + Variant of the C++ lexer with case insensitive keywords + called cppnocase. Whitespace in preprocessor text handled more correctly. +
  • +
  • + Folder added for Perl. +
  • +
  • + Compilation with GCC 3.2 supported. +
  • +
  • + Markers can be pixmaps. +
  • +
  • + Lines are wrapped when printing. + Bug fixed which printed line numbers in different styles. +
  • +
  • + Text can be appended to end with AppendText method. +
  • +
  • + ChooseCaretX method added. +
  • +
  • + Vertical scroll bar can be turned off with SetVScrollBar method. +
  • +
  • + SciTE Save All command saves all buffers. +
  • +
  • + SciTE localisation compares keys case insensitively to make translations more flexible. +
  • +
  • + SciTE detects a utf-8 coding cookie "coding: utf-8" in first two + lines and goes into Unicode mode. +
  • +
  • + SciTE key bindings are definable. +
  • +
  • + SciTE Find in Files dialog can display directory browser to + choose directory to search. +
  • +
  • + SciTE enabling of undo and redo toolbar buttons improved. +
  • +
  • + SciTE on Windows file type filters in open dialog sorted. +
  • +
  • + Fixed crashing bug when using automatic tag closing in XML or HTML. +
  • +
  • + Fixed bug on Windows causing very long (>64K) lines to not display. +
  • +
  • + Fixed bug in backwards regular expression searching. +
  • +
  • + Fixed bug in calltips where wrong argument was highlighted. +
  • +
  • + Fixed bug in tab timmy feature when file has line feed line endings. +
  • +
  • + Fixed bug in compiling without INCLUDE_DEPRECATED_FEATURES + defined. +
  • +
+

+ Release 1.48 +

+
    +
  • + Released on 9 September 2002. +
  • +
  • + Improved Pascal lexer with context sensitive keywords + and separate folder which handles //{ and //} folding comments and + {$region} and {$end} folding directives. + The "case" statement now folds correctly. +
  • +
  • + C++ lexer correctly handles comments on preprocessor lines. +
  • +
  • + New commands for moving to beginning and end of display lines when in line + wrap mode. Key bindings added for these commands. +
  • +
  • + New marker symbols that look like ">>>" and "..." which can be used for + interactive shell prompts for Python. +
  • +
  • + The foreground and background colours of visible whitespace can be chosen + independent of the colours chosen for the lexical class of that whitespace. +
  • +
  • + Per line data optimised by using an exponential allocation scheme. +
  • +
  • + SciTE API file loading optimised. +
  • +
  • + SciTE for GTK+ subsystem 2 documented. The exit status of commands + is decoded into more understandable fields. +
  • +
  • + SciTE find dialog remembers previous find string when there is no selection. + Find in Selection button disabled when selection is rectangular as command + did not work. +
  • +
  • + Shift+Enter made equivalent to Enter to avoid users having to let go of + the shift key when typing. Avoids the possibility of entering single carriage + returns in a file that contains CR+LF line ends. +
  • +
  • + Autocompletion does not immediately disappear when the length parameter + to SCI_AUTOCSHOW is 0. +
  • +
  • + SciTE focuses on the editor pane when File | New executed and when the + output pane is closed with F8. Double clicking on a non-highlighted output + pane line selects the word under the cursor rather than seeking the next + highlighted line. +
  • +
  • + SciTE director interface implements an "askproperty" command. +
  • +
  • + SciTE's Export as LaTeX output improved. +
  • +
  • + Better choice of autocompletion displaying above the caret rather then + below when that is more sensible. +
  • +
  • + Bug fixed where context menu would not be completely visible if invoked + when cursor near bottom or left of screen. +
  • +
  • + Crashing bug fixed when displaying long strings on GTK+ caused failure of X server + by displaying long text in segments. +
  • +
  • + Crashing bug fixed on GTK+ when a Scintilla window was removed from its parent + but was still the selection owner. +
  • +
  • + Bug fixed on Windows in Unicode mode where not all characters on a line + were displayed when that line contained some characters not in ASCII. +
  • +
  • + Crashing bug fixed in SciTE on Windows with clearing output while running command. +
  • +
  • + Bug fixed in SciTE for GTK+ with command completion not detected when + no output was produced by the command. +
  • +
  • + Bug fixed in SciTE for Windows where menus were not shown translated. +
  • +
  • + Bug fixed where words failed to display in line wrapping mode with visible + line ends. +
  • +
  • + Bug fixed in SciTE where files opened from a session file were not closed. +
  • +
  • + Cosmetic flicker fixed when using Ctrl+Up and Ctrl+Down with some caret policies. +
  • +
+

+ Release 1.47 +

+
    +
  • + Released on 1 August 2002. +
  • +
  • + Support for GTK+ 2 in Scintilla. International input methods not supported + on GTK+2. +
  • +
  • + Line wrapping performance improved greatly. +
  • +
  • + New caret policy implementation that treats horizontal and vertical + positioning equivalently and independently. Old caret policy methods + deprecated and not all options work correctly with old methods. +
  • +
  • + Extra fold points for C, C++, Java, ... for fold comments //{ .. //} and + #if / #ifdef .. #endif and the #region .. #endregion feature of C#. +
  • +
  • + Scintilla method to find the height in pixels of a line. Currently returns the + same result for every line as all lines are same height. +
  • +
  • + Separate make file, scintilla_vc6.mak, for Scintilla to use Visual C++ + version 6 since main makefile now assumes VS .NET. + VS .NET project files available for combined Scintilla and + SciTE in scite/boundscheck. +
  • +
  • + SciTE automatically recognises Unicode files based + on their Byte Order Marks and switches to Unicode mode. + On Windows, where SciTE supports Unicode display, this + allows display of non European characters. + The file is saved back into the same character encoding unless + the user decides to switch using the File | Encoding menu. +
  • +
  • + Handling of character input changed so that a fillup character, typically '(' + displays a calltip when an autocompletion list was being displayed. +
  • +
  • + Multiline strings lexed better for C++ and Lua. +
  • +
  • + Regular expressions in JavaScript within hypertext files are lexed better. +
  • +
  • + On Windows, Scintilla exports a function called Scintilla_DirectFunction + that can be used the same as the function returned by GetDirectFunction. +
  • +
  • + Scintilla converts line endings of text obtained from the clipboard to + the current default line endings. +
  • +
  • + New SciTE property ensure.final.line.end can ensure that saved files + always end with a new line as this is required by some tools. + The ensure.consistent.line.ends property ensures all line ends are the + current default when saving files. + The strip.trailing.spaces property now works on the buffer so the + buffer in memory and the file on disk are the same after a save is performed. +
  • +
  • + The SciTE expand abbreviation command again allows '|' characters + in expansions to be quoted by using '||'. +
  • +
  • + SciTE on Windows can send data to the find tool through standard + input rather than using a command line argument to avoid problems + with quoting command line arguments. +
  • +
  • + The Stop Executing command in SciTE on Windows improved to send + a Ctrl+Z character to the tool. Better messages when stopping a tool. +
  • +
  • + Autocompletion can automatically "fill up" when one of a set of characters is + type with the autocomplete.<lexer>.fillups property. +
  • +
  • + New predefined properties in SciTE, SelectionStartColumn, SelectionStartLine, + SelectionEndColumn, SelectionEndLine can be used to integrate with other + applications. +
  • +
  • + Environment variables are available as properties in SciTE. +
  • +
  • + SciTE on Windows keeps status line more current. +
  • +
  • + Abbreviations work in SciTE on Linux when first opened. +
  • +
  • + File saving fixed in SciTE to ensure files are not closed when they can not be + saved because of file permissions. Also fixed a problem with buffers that + caused files to not be saved. +
  • +
  • + SciTE bug fixed where monospace mode not remembered when saving files. + Some searching options now remembered when switching files. +
  • +
  • + SciTE on Linux now waits on child termination when it shuts a child down + to avoid zombies. +
  • +
  • + SciTE on Linux has a Print menu command that defaults to invoking a2ps. +
  • +
  • + Fixed incorrect highlighting of indentation guides in SciTE for Python. +
  • +
  • + Crash fixed in Scintilla when calling GetText for 0 characters. +
  • +
  • + Exporting as LaTeX improved when processing backslashes and tabs + and setting up font. +
  • +
  • + Crash fixed in SciTE when exporting or copying as RTF. +
  • +
  • + SciTE session loading fixed to handle more than 10 files in session. +
  • +
+

+ Release 1.46 +

+
    +
  • + Released on 10 May 2002. +
  • +
  • + Set of lexers compiled into Scintilla can now be changed by adding and + removing lexer source files from scintilla/src and running LexGen.py. +
  • +
  • + SCN_ZOOM notification provided by Scintilla when user changes zoom level. + Method to determine width of strings in pixels so that elements can be sized + relative to text size. + SciTE changed to keep line number column displaying a given + number of characters. +
  • +
  • + The logical width of the document used to determine scroll bar range can be set. +
  • +
  • + Setting to allow vertical scrolling to display last line at top rather than + bottom of window. +
  • +
  • + Read-only mode improved to avoid changing the selection in most cases + when a modification is attempted. Drag and drop cursors display correctly + for read-only in some cases. +
  • +
  • + Visual C++ options in make files changed to suit Visual Studio .NET. +
  • +
  • + Scintilla.iface includes feature types for enumerations and lexers. +
  • +
  • + Lua lexer improves handling of literal strings and copes with nested literal strings. +
  • +
  • + Diff lexer changed to treat lines starting with "***" similarly to "---". + Symbolic names defined for lexical classes. +
  • +
  • + nncrontab lexer improved. +
  • +
  • + Turkish fonts (iso8859-9) supported on GTK+. +
  • +
  • + Automatic close tag feature for XML and HTML in SciTE. +
  • +
  • + Automatic indentation in SciTE improved. +
  • +
  • + Maximum number of buffers available in SciTE increased. May be up to 100 + although other restrictions on menu length limit the real maximum. +
  • +
  • + Save a Copy command added to SciTE. +
  • +
  • + Export as TeX command added to SciTE. +
  • +
  • + Export as HTML command in SciTE respects Use Monospaced Font and + background colour settings. +
  • +
  • + Compilation problem on Solaris fixed. +
  • +
  • + Order of files displayed for SciTE's previous and next menu and key commands + are now consistent. +
  • +
  • + Saving of MRU in recent file changed so files open when SciTE quit + are remembered. +
  • +
  • + More variants of ctags tags handled by Open Selected Filename in SciTE. +
  • +
  • + JavaScript embedded in XML highlighted again. +
  • +
  • + SciTE status bar updated after changing parameters in case they are being + displayed in status bar. +
  • +
  • + Crash fixed when handling some multi-byte languages. +
  • +
  • + Crash fixed when replacing end of line characters. +
  • +
  • + Bug in SciTE fixed in multiple buffer mode where automatic loading + turned on could lead to losing file contents. +
  • +
  • + Bug in SciTE on GTK+ fixed where dismissing dialogs with close box led to + those dialogs never being shown again. +
  • +
  • + Bug in SciTE on Windows fixed where position.tile with default positions + led to SciTE being positioned off-screen. +
  • +
  • + Bug fixed in read-only mode, clearing all deletes contraction state data + leading to it not being synchronized with text. +
  • +
  • + Crash fixed in SciTE on Windows when tab bar displayed. +
  • +
+

+ Release 1.45 +

+
    +
  • + Released on 15 March 2002. +
  • +
  • + Line layout cache implemented to improve performance by maintaining + the positioning of characters on lines. Can be set to cache nothing, + the line with the caret, the visible page or the whole document. +
  • +
  • + Support, including a new lexer, added for Matlab programs. +
  • +
  • + Lua folder supports folding {} ranges and compact mode. + Lua lexer styles floating point numbers in number style instead of + setting the '.' in operator style. + Up to 6 sets of keywords. + Better support for [[ although only works well + when all on one line. +
  • +
  • + Python lexer improved to handle floating point numbers that contain negative + exponents and that start with '.'. +
  • +
  • + When performing a rectangular paste, the caret now remains at the + insertion point. +
  • +
  • + On Windows with a wheel mouse, page-at-a-time mode is recognised. +
  • +
  • + Read-only mode added to SciTE with a property to initialise it and another property, + $(ReadOnly) available to show this mode in the status bar. +
  • +
  • + SciTE status bar can show the number of lines in the selection + with the $(SelHeight) property. +
  • +
  • + SciTE's "Export as HTML" command uses the current character set to produce + correct output for non-Western-European character sets, such as Russian. +
  • +
  • + SciTE's "Export as RTF" fixed to produce correct output when file contains '\'. +
  • +
  • + SciTE goto command accepts a column as well as a line. + If given a column, it selects the word at that column. +
  • +
  • + SciTE's Build, Compile and Go commands are now disabled if no + action has been assigned to them. +
  • +
  • + The Refresh button in the status bar has been removed from SciTE on Windows. +
  • +
  • + Bug fixed in line wrap mode where cursor up or down command did not work. +
  • +
  • + Some styling bugs fixed that were due to a compilation problem with + gcc and inline functions with same name but different code. +
  • +
  • + The way that lexers loop over text was changed to avoid accessing beyond the + end or setting beyond the end. May fix some bugs and make the code safer but + may also cause new bugs. +
  • +
  • + Bug fixed in HTML lexer's handling of SGML. +
  • +
  • + Bug fixed on GTK+/X where lines wider than 32767 pixels did not display. +
  • +
  • + SciTE bug fixed with file name generation for standard property files. +
  • +
  • + SciTE bug fixed with Open Selected Filename command when used with + file name and line number combination. +
  • +
  • + In SciTE, indentation and tab settings stored with buffers so maintained correctly + as buffers selected. + The properties used to initialise these settings can now be set separately for different + file patterns. +
  • +
  • + Thread safety improved on Windows with a critical section protecting the font + cache and initialisation of globals performed within Scintilla_RegisterClasses. + New Scintilla_ReleaseResources call provided to allow explicit freeing of resources + when statically bound into another application. Resources automatically freed + in DLL version. The window classes are now unregistered as part of resource + freeing which fixes bugs that occurred in some containers such as Internet Explorer. +
  • +
  • + 'make install' fixed on Solaris. +
  • +
  • + Bug fixed that could lead to a file being opened twice in SciTE. +
  • +
+

+ Release 1.44 +

+
    +
  • + Released on 4 February 2002. +
  • +
  • + Crashing bug fixed in Editor::Paint. +
  • +
  • + Lua lexer no longer treats '.' as a word character and + handles 6 keyword sets. +
  • +
  • + WordStartPosition and WordEndPosition take an onlyWordCharacters + argument. +
  • +
  • + SciTE option for simplified automatic indentation which repeats + the indentation of the previous line. +
  • +
  • + Compilation fix on Alpha because of 64 bit. +
  • +
  • + Compilation fix for static linking. +
  • +
  • + Limited maximum line length handled to 8000 characters as previous + value of 16000 was causing stack exhaustion crashes for some. +
  • +
  • + When whole document line selected, only the last display line gets + the extra selected rectangle at the right hand side rather than + every display line. +
  • +
  • + Caret disappearing bug fixed for the case that the caret was not on the + first display line of a document line. +
  • +
  • + SciTE bug fixed where untitled buffer containing text was sometimes + deleted without chance to save. +
  • +
  • + SciTE bug fixed where use.monospaced not working with + multiple buffers. +
  • +
+

+ Release 1.43 +

+
    +
  • + Released on 19 January 2002. +
  • +
  • + Line wrapping robustness and performance improved in Scintilla. +
  • +
  • + Line wrapping option added to SciTE for both edit and output panes. +
  • +
  • + Static linking on Windows handles cursor resource better. + Documentation of static linking improved. +
  • +
  • + Autocompletion has an option to delete any word characters after the caret + upon selecting an item. +
  • +
  • + FOX version identified by PLAT_FOX in Platform.h. +
  • +
  • + Calltips in SciTE use the calltip.<lexer>.word.characters setting to + correctly find calltips for functions that include characters like '$' which + is not normally considered a word character. +
  • +
  • + SciTE has a command to show help on itself which gets hooked up to displaying + SciTEDoc.html. +
  • +
  • + SciTE option calltip.<lexer>.end.definition to display help text on a + second line of calltip. +
  • +
  • + Fixed the handling of the Buffers menu on GTK+ to ensure current buffer + indicated and no warnings occur. + Changed some menu items on GTK+ version to be same as Windows version. +
  • +
  • + use.monospaced property for SciTE determines initial state of Use Monospaced Font + setting. +
  • +
  • + The SciTE Complete Symbol command now works when there are no word + characters before the caret, even though it is slow to display the whole set of + symbols. +
  • +
  • + Function names removed from SciTE's list of PHP keywords. The full list of + predefined functions is available from another web site mentioned on the + Extras page. +
  • +
  • + Crashing bug at startup on GTK+ for some configurations fixed. +
  • +
  • + Crashing bug on GTK+ on 64 bit platforms fixed. +
  • +
  • + Compilation problem with some compilers fixed in GTK+. +
  • +
  • + Japanese text entry improved on Windows 9x. +
  • +
  • + SciTE recent files directory problem on Windows when HOME and SciTE_HOME + environment variables not set is now the directory of the executable. +
  • +
  • + Session files no longer include untitled buffers. +
  • +
+

+ Release 1.42 +

+
    +
  • + Released on 24 December 2001. +
  • +
  • + Better localisation support including context menus and most messages. + Translations of the SciTE user interface available for Bulgarian, + French, German, Italian, Russian, and Turkish. +
  • +
  • + Can specify a character to use to indicate control characters + rather than having them displayed as mnemonics. +
  • +
  • + Scintilla key command for backspace that will not delete line + end characters. +
  • +
  • + Scintilla method to find start and end of words. +
  • +
  • + SciTE on GTK+ now supports the load.on.activate and save.on.deactivate + properties in an equivalent way to the Windows version. +
  • +
  • + The output pane of SciTE on Windows is now interactive so command line + utilities that prompt for input or confirmation can be used. +
  • +
  • + SciTE on Windows can choose directory for a "Find in Files" + command like the GTK+ version could. +
  • +
  • + SciTE can now load a set of API files rather than just one file. +
  • +
  • + ElapsedTime class added to Platform for accurate measurement of durations. + Used for debugging and for showing the user how long commands take in SciTE. +
  • +
  • + Baan lexer added. +
  • +
  • + In C++ lexer, document comment keywords no longer have to be at the start + of the line. +
  • +
  • + PHP lexer changed to match keywords case insensitively. +
  • +
  • + More shell keywords added. +
  • +
  • + SciTE support for VoiceXML added to xml.properties. +
  • +
  • + In SciTE the selection is not copied to the find field of the Search and Replace + dialogs if it contains end of line characters. +
  • +
  • + SciTE on Windows has a menu item to decide whether to respond to other + instances which are performing their check.if.already.open check. +
  • +
  • + SciTE accelerator key for Box Comment command changed to avoid problems + in non-English locales. +
  • +
  • + SciTE context menu includes Close command for the editor pane and + Hide command for the output pane. +
  • +
  • + output: command added to SciTE director interface to add text to the + output pane. The director interface can execute commands (such as tool + commands with subsystem set to 3) by sending a macro:run message. +
  • +
  • + SciTE on GTK+ will defer to the Window Manager for position if position.left or + position.top not set and for size if position.width or position.height not set. +
  • +
  • + SciTE on Windows has a position.tile property to place a second instance + to the right of the first. +
  • +
  • + Scintilla on Windows again supports EM_GETSEL and EM_SETSEL. +
  • +
  • + Problem fixed in Scintilla on Windows where control ID is no longer cached + as it could be changed by external code. +
  • +
  • + Problems fixed in SciTE on Windows when finding any other open instances at + start up when check.if.already.open is true. +
  • +
  • + Bugs fixed in SciTE where command strings were not always having + variables evaluated. +
  • +
  • + Bugs fixed with displaying partial double-byte and Unicode characters + in rectangular selections and at the edge when edge mode is EDGE_BACKGROUND. + Column numbers reported by GetColumn treat multiple byte characters as one column + rather than counting bytes. +
  • +
  • + Bug fixed with caret movement over folded lines. +
  • +
  • + Another bug fixed with tracking selection in secondary views when performing + modifications. +
  • +
  • + Horizontal scrolling and display of long lines optimised. +
  • +
  • + Cursor setting in Scintilla on GTK+ optimised. +
  • +
  • + Experimental changeable style attribute. + Set to false to make text read-only. + Currently only stops caret from being within not-changeable + text and does not yet stop deleting a range that contains + not-changeable text. + Can be used from SciTE by adding notchangeable to style entries. +
  • +
  • + Experimental line wrapping. + Currently has performance and appearance problems. +
  • +
+

+ Release 1.41 +

+
    +
  • + Released on 6 November 2001. +
  • +
  • + Changed Platform.h to not include platform headers. This lessens likelihood and impact of + name clashes from system headers and also speeds up compilation. + Renamed DrawText to DrawTextNoClip to avoid name clash. +
  • +
  • + Changed way word functions work to treat a sequence of punctuation as + a word. This is more sensible and also more compatible with other editors. +
  • +
  • + Cursor changes over the margins and selection on GTK+ platform. +
  • +
  • + SC_MARK_BACKGROUND is a marker that only changes the line's background colour. +
  • +
  • + Enhanced Visual Basic lexer handles character date and octal literals, + and bracketed keywords for VB.NET. There are two VB lexers, vb and vbscript + with type indication characters like ! and $ allowed at the end of identifiers + in vb but not vbscript. Lexer states now separate from those used for C++ and + names start with SCE_B. +
  • +
  • + Lexer added for Bullant language. +
  • +
  • + The horizontal scroll position, xOffset, is now exposed through the API. +
  • +
  • + The SCN_POSCHANGED notification is deprecated as it was causing confusion. + Use SCN_UPDATEUI instead. +
  • +
  • + Compilation problems fixed for some versions of gcc. +
  • +
  • + Support for WM_GETTEXT restored on Windows. +
  • +
  • + Double clicking on an autocompletion list entry works on GTK+. +
  • +
  • + Bug fixed with case insensitive sorts for autocompletion lists. +
  • +
  • + Bug fixed with tracking selection in secondary views when performing modifications. +
  • +
  • + SciTE's abbreviation expansion feature will now indent expansions to the current + indentation level if indent.automatic is on. +
  • +
  • + SciTE allows setting up of parameters to commands from a dialog and can also + show this dialog automatically to prompt for arguments when running a command. +
  • +
  • + SciTE's Language menu (formerly Options | Use Lexer) is now defined by the + menu.language property rather than being hardcoded. +
  • +
  • + The user interface of SciTE can be localised to a particular language by editing + a locale.properties file. +
  • +
  • + On Windows, SciTE will try to move to the front when opening a new file from + the shell and using check.if.already.open. +
  • +
  • + SciTE can display the file name and directory in the title bar in the form + "file @ directory" when title.full.path=2. +
  • +
  • + The SciTE time.commands property reports the time taken by a command as well + as its status when completed. +
  • +
  • + The SciTE find.files property is now a list separated by '|' characters and this list is + added into the Files pull down of the Find in Files dialog. +
  • +
+

+ Release 1.40 +

+
    +
  • + Released on 23 September 2001. +
  • +
  • + Removal of emulation of Win32 RichEdit control in core of Scintilla. + This change may be incompatible with existing client code. + Some emulation still done in Windows platform layer. +
  • +
  • + SGML support in the HTML/XML lexer. +
  • +
  • + SciTE's "Stop Executing" command will terminate GUI programs on + Windows NT and Windows 2000. +
  • +
  • + StyleContext class helps construct lexers that are simple and accurate. + Used in the C++, Eiffel, and Python lexers. +
  • +
  • + Clipboard operations in GTK+ version convert between platform '\n' line endings and + currently chosen line endings. +
  • +
  • + Any character in range 0..255 can be used as a marker. + This can be used to support numbered bookmarks, for example. +
  • +
  • + The default scripting language for ASP can be set. +
  • +
  • + New lexer and other support for crontab files used with the nncron scheduler. +
  • +
  • + Folding of Python improved. +
  • +
  • + The ` character is treated as a Python operator. +
  • +
  • + Line continuations ("\" at end of line) handled inside Python strings. +
  • +
  • + More consistent handling of line continuation ('\' at end of line) in + C++ lexer. + This fixes macro definitions that span more than one line. +
  • +
  • + C++ lexer can understand Doxygen keywords in doc comments. +
  • +
  • + SciTE on Windows allows choosing to open the "open" dialog on the directory + of the current file rather than in the default directory. +
  • +
  • + SciTE on Windows handles command line arguments in "check.if.already.open" + correctly when the current directory of the new instance is different to the + already open instance of SciTE. +
  • +
  • + "cwd" command (change working directory) defined for SciTE director interface. +
  • +
  • + SciTE "Export As HTML" produces better, more compliant, and shorter files. +
  • +
  • + SciTE on Windows allows several options for determining default file name + for exported files. +
  • +
  • + Automatic indentation of Python in SciTE fixed. +
  • +
  • + Exported HTML can support folding. +
  • +
  • + Bug fixed in SCI_GETTEXT macro command of director interface. +
  • +
  • + Cursor leak fixed on GTK+. +
  • +
  • + During SciTE shutdown, "identity" messages are no longer sent over the director interface. +
  • +
+

+ Release 1.39 +

+
    +
  • + Released on 22 August 2001. +
  • +
  • + Windows version requires msvcrt.dll to be available so will not work + on original Windows 95 version 1. The msvcrt.dll file is installed + by almost everything including Internet Explorer so should be available. +
  • +
  • + Flattened tree control style folding margin. The SciTE fold.plus option is + now fold.symbols and has more values for the new styles. +
  • +
  • + Mouse dwell events are generated when the user holds the mouse steady + over Scintilla. +
  • +
  • + PositionFromPointClose is like PositionFromPoint but returns + INVALID_POSITION when point outside window or after end of line. +
  • +
  • + Input of Hungarian and Russian characters in GTK+ version works by + truncating input to 8 bits if in the range of normal characters. +
  • +
  • + Better choices for font descriptors on GTK+ for most character sets. +
  • +
  • + GTK+ Scintilla is destroyed upon receiving destroy signal rather than + destroy_event signal. +
  • +
  • + Style setting that force upper or lower case text. +
  • +
  • + Case-insensitive autocompletion lists work correctly. +
  • +
  • + Keywords can be prefix based so ^GTK_ will treat all words that start + with GTK_ as keywords. +
  • +
  • + Horizontal scrolling can be jumpy rather than gradual. +
  • +
  • + GetSelText places a '\0' in the buffer if the selection is empty.. +
  • +
  • + EnsureVisible split into two methods EnsureVisible which will not scroll to show + the line and EnsureVisibleEnforcePolicy which may scroll. +
  • +
  • + Python folder has options to fold multi-line comments and triple quoted strings. +
  • +
  • + C++ lexer handles keywords before '.' like "this.x" in Java as keywords. + Compact folding mode option chooses whether blank lines after a structure are + folded with that structure. Second set of keywords with separate style supported. +
  • +
  • + Ruby lexer handles multi-line comments. +
  • +
  • + VB has folder. +
  • +
  • + PHP lexer has an operator style, handles "<?" and "?>" inside strings + and some comments. +
  • +
  • + TCL lexer which is just an alias for the C++ lexer so does not really + understand TCL syntax. +
  • +
  • + Error lines lexer has styles for Lua error messages and .NET stack traces. +
  • +
  • + Makefile lexer has a target style. +
  • +
  • + Lua lexer handles some [[]] string literals. +
  • +
  • + HTML and XML lexer have a SCE_H_SGML state for tags that + start with "<!". +
  • +
  • + Fixed Scintilla bugs with folding. When modifications were performed near + folded regions sometimes no unfolding occurred when it should have. Deleting a + fold causing character sometimes failed to update fold information correctly. +
  • +
  • + Better support for Scintilla on GTK+ for Win32 including separate + PLAT_GTK_WIN32 definition and correct handling of rectangular selection + with clipboard operations. +
  • +
  • + SciTE has a Tools | Switch Pane (Ctrl+F6) command to switch focus between + edit and output panes. +
  • +
  • + SciTE option output.scroll allows automatic scrolling of output pane to + be turned off. +
  • +
  • + Commands can be typed into the SciTE output pane similar to a shell window. +
  • +
  • + SciTE properties magnification and output magnification set initial zoom levels. +
  • +
  • + Option for SciTE comment block command to place comments at start of line. +
  • +
  • + SciTE for Win32 has an option to minimize to the tray rather than the task bar. +
  • +
  • + Close button on SciTE tool bar for Win32. +
  • +
  • + SciTE compiles with GCC 3.0. +
  • +
  • + SciTE's automatic indentation of C++ handles braces without preceding keyword + correctly. +
  • +
  • + Bug fixed with GetLine method writing past the end of where it should. +
  • +
  • + Bug fixed with mouse drag automatic scrolling when some lines were folded. +
  • +
  • + Bug fixed because caret XEven setting was inverted. +
  • +
  • + Bug fixed where caret was initially visible even though window was not focussed. +
  • +
  • + Bug fixed where some file names could end with "\\" which caused slow + downs on Windows 9x. +
  • +
  • + On Win32, SciTE Replace dialog starts with focus on replacement text. +
  • +
  • + SciTE Go to dialog displays correct current line. +
  • +
  • + Fixed bug with SciTE opening multiple files at once. +
  • +
  • + Fixed bug with Unicode key values reported to container truncated. +
  • +
  • + Fixed bug with unnecessary save point notifications. +
  • +
  • + Fixed bugs with indenting and unindenting at start of line. +
  • +
  • + Monospace Font setting behaves more consistently. +
  • +
+

+ Release 1.38 +

+
    +
  • + Released on 23 May 2001. +
  • +
  • + Loadable lexer plugins on Windows. +
  • +
  • + Ruby lexer and support. +
  • +
  • + Lisp lexer and support. +
  • +
  • + Eiffel lexer and support. +
  • +
  • + Modes for better handling of Tab and BackSpace keys within + indentation. Mode to avoid autocompletion list cancelling when + there are no viable matches. +
  • +
  • + ReplaceTarget replaced with two calls ReplaceTarget + (which is incompatible with previous ReplaceTarget) and + ReplaceTargetRE. Both of these calls have a count first + parameter which allows using strings containing nulls. + SearchInTarget and SetSearchFlags functions allow + specifying a search in several simple steps which helps + some clients which can not create structs or pointers easily. +
  • +
  • + Asian language input through an Input Method Editor works + on Windows 2000. +
  • +
  • + On Windows, control characters can be entered through use of + the numeric keypad in conjunction with the Alt key. +
  • +
  • + Document memory allocation changed to grow exponentially + which reduced time to load a 30 Megabyte file from + 1000 seconds to 25. Change means more memory may be used. +
  • +
  • + Word part movement keys now handled in Scintilla rather than + SciTE. +
  • +
  • + Regular expression '^' and '$' work more often allowing insertion + of text at start or end of line with a replace command. + Backslash quoted control characters \a, \b, \f, \t, and \v + recognised within sets. +
  • +
  • + Session files for SciTE. +
  • +
  • + Export as PDF command hidden in SciTE as it often failed. + Code still present so can be turned on by those willing to cope. +
  • +
  • + Bug fixed in HTML lexer handling % before > as end ASP + even when no start ASP encountered. + Bug fixed when scripts ended with a quoted string and + end tag was not seen. +
  • +
  • + Bug fixed on Windows where context menu key caused menu to + appear in corner of screen rather than within window. +
  • +
  • + Bug fixed in SciTE's Replace All command not processing + whole file when replace string longer than search string. +
  • +
  • + Bug fixed in SciTE's MRU list repeating entries if Ctrl+Tab + used when all entries filled. +
  • +
  • + ConvertEOLs call documentation fixed. +
  • +
+

+ Release 1.37 +

+
    +
  • + Released on 17 April 2001. +
  • +
  • + Bug fixed with scroll bars being invisible on GTK+ 1.2.9. +
  • +
  • + Scintilla and SciTE support find and replace using simple regular + expressions with tagged expressions. SciTE supports C '\' escapes + in the Find and Replace dialogs. + Replace in Selection available in SciTE. +
  • +
  • + Scintilla has a 'target' feature for replacing code rapidly without + causing display updates. +
  • +
  • + Scintilla and SciTE on GTK+ support file dropping from file managers + such as Nautilus and gmc. Files or other URIs dropped on Scintilla + result in a URIDropped notification. +
  • +
  • + Lexers may have separate Lex and Fold functions. +
  • +
  • + Lexer infrastructure improved to allow for plug in lexers and for referring + to lexers by name rather than by ID. +
  • +
  • + Ada lexer and support added. +
  • +
  • + Option in both Scintilla and SciTE to treat both left and right margin + as equally important when repositioning visible area in response to + caret movement. Default is to prefer visible area positioning which + minimises the horizontal scroll position thus favouring the left margin. +
  • +
  • + Caret line highlighting. +
  • +
  • + Commands to delete from the caret to the end of line and + from the caret to the beginning of line. +
  • +
  • + SciTE has commands for inserting and removing block comments and + for inserting stream comments. +
  • +
  • + SciTE Director interface uses C++ '\' escapes to send control characters. +
  • +
  • + SciTE Director interface adds more commands including support for macros. +
  • +
  • + SciTE has menu options for recording and playing macros which are visible + when used with a companion program that supports these features. +
  • +
  • + SciTE has an Expand Abbreviation command. + Abbreviations are stored in a global abbrev.properties file. +
  • +
  • + SciTE has a Full Screen command to switch between a normal window + size and using the full screen. On Windows, the menu bar can be turned + off when in full screen mode. +
  • +
  • + SciTE has a Use monospaced font command to switch between the normal + set of fonts and one size of a particular fixed width font. +
  • +
  • + SciTE's use of tabs can be controlled for particular file names + as well as globally. +
  • +
  • + The contents of SciTE's status bar can be defined by a property and + include variables. On Windows, several status bar definitions can be active + with a click on the status bar cycling through them. +
  • +
  • + Copy as RTF command in SciTE on Windows to allow pasting + styled text into word processors. +
  • +
  • + SciTE can allow the use of non-alphabetic characters in + Complete Symbol lists and can automatically display this autocompletion + list when a trigger character such as '.' is typed. + Complete word can be set to pop up when the user is typing a word and + there is only one matching word in the document. +
  • +
  • + SciTE lists the imported properties files on a menu to allow rapid + access to them. +
  • +
  • + SciTE on GTK+ improvements to handling accelerator keys and focus + in dialogs. Message boxes respond to key presses without the Alt key as + they have no text entries to accept normal keystrokes. +
  • +
  • + SciTE on GTK+ sets the application icon. +
  • +
  • + SciTE allows setting the colours used to indicate the current + error line. +
  • +
  • + Variables within PHP strings have own style. Keyword list updated. +
  • +
  • + Keyword list for Lua updated for Lua 4.0. +
  • +
  • + Bug fixed in rectangular selection where rectangle still appeared + selected after using cursor keys to move caret. +
  • +
  • + Bug fixed in C++ lexer when deleting a '{' controlling a folded range + led to that range becoming permanently invisible. +
  • +
  • + Bug fixed in Batch lexer where comments were not recognised. +
  • +
  • + Bug fixed with undo actions coalescing into steps incorrectly. +
  • +
  • + Bug fixed with Scintilla on GTK+ positioning scroll bars 1 pixel + over the Scintilla window leading to their sides being chopped off. +
  • +
  • + Bugs fixed in SciTE when doing some actions led to the start + or end of the file being displayed rather than the current location. +
  • +
  • + Appearance of calltips fixed to look like document text including + any zoom factor. Positioned to be outside current line even when + multiple fonts and sizes used. +
  • +
  • + Bug fixed in Scintilla macro support where typing Enter caused both a newline + command and newline character insertion to be recorded. +
  • +
  • + Bug fixed in SciTE on GTK+ where focus was moving + between widgets incorrectly. +
  • +
  • + Bug fixed with fold symbols sometimes not updating when + the text changed. +
  • +
  • + Bugs fixed in SciTE's handling of folding commands. +
  • +
  • + Deprecated undo collection enumeration removed from API. +
  • +
+

+ Release 1.36 +

+
    +
  • + Released on 1 March 2001. +
  • +
  • + Scintilla supports GTK+ on Win32. +
  • +
  • + Some untested work on making Scintilla and SciTE 64 bit compatible. + For users on GTK+ this requires including Scintilla.h before + ScintillaWidget.h. +
  • +
  • + HTML lexer allows folding HTML. +
  • +
  • + New lexer for Avenue files which are used in the ESRI ArcView GIS. +
  • +
  • + DOS Batch file lexer has states for '@', external commands, variables and + operators. +
  • +
  • + C++ lexer can fold comments of /* .. */ form. +
  • +
  • + Better disabling of pop up menu items in Scintilla when in read-only mode. +
  • +
  • + Starting to move to Doxygen compatible commenting. +
  • +
  • + Director interface on Windows enables another application to control SciTE. +
  • +
  • + Opening SciTE on Windows 9x sped up greatly for some cases. +
  • +
  • + The command.build.directory property allows SciTE to run the build + command in a different directory to the source files. +
  • +
  • + SciTE on Windows allows setting foreground and background colours + for printed headers and footers. +
  • +
  • + Bug fixed in finding calltips in SciTE which led to no calltips for some identifiers. +
  • +
  • + Documentation added for lexers and for the extension and director interfaces. +
  • +
  • + SciTE menus rearranged with new View menu taking over some of the items that + were under the Options menu. Clear All Bookmarks command added. +
  • +
  • + Clear Output command in SciTE. +
  • +
  • + SciTE on Windows gains an Always On Top command. +
  • +
  • + Bug fixed in SciTE with attempts to define properties recursively. +
  • +
  • + Bug fixed in SciTE properties where only one level of substitution was done. +
  • +
  • + Bug fixed in SciTE properties where extensions were not being + matched in a case insensitive manner. +
  • +
  • + Bug fixed in SciTE on Windows where the Go to dialog displays the correct + line number. +
  • +
  • + In SciTE, if fold.on.open set then switching buffers also performs fold. +
  • +
  • + Bug fixed in Scintilla where ensuring a line was visible in the presence of folding + operated on the document line instead of the visible line. +
  • +
  • + SciTE command line processing modified to operate on arguments in order and in + two phases. First any arguments before the first file name are processed, then the + UI is opened, then the remaining arguments are processed. Actions defined for the + Director interface (currently only "open") may also be used on the command line. + For example, "SciTE -open:x.txt" will start SciTE and open x.txt. +
  • +
  • + Numbered menu items SciTE's Buffers menu and the Most Recently Used portion + of the File menu go from 1..0 rather than 0..9. +
  • +
  • + The tab bar in SciTE for Windows has numbers. + The tab.hide.one option hides the tab bar until there is more than one buffer open. +
  • +
+

+ Release 1.35 +

+
    +
  • + Released on 29 January 2001. +
  • +
  • + Rewritten and simplified widget code for the GTK+ version to enhance + solidity and make more fully compliant with platform norms. This includes more + normal handling of keystrokes so they are forwarded to containers correctly. +
  • +
  • + User defined lists can be shown. +
  • +
  • + Many fixes to the Perl lexer. +
  • +
  • + Pascal lexer handles comments more correctly. +
  • +
  • + C/C++/Java/JavaScipt lexer has a state for line doc comments. +
  • +
  • + Error output lexer understands Sun CC messages. +
  • +
  • + Make file lexer has variable, preprocessor, and operator states. +
  • +
  • + Wider area given to an italics character that is at the end of a line to prevent it + being cut off. +
  • +
  • + Call to move the caret inside the currently visible area. +
  • +
  • + Paste Rectangular will space fill on the left hand side of the pasted text as + needed to ensure it is kept rectangular. +
  • +
  • + Cut and Paste Rectangular does nothing in read-only mode. +
  • +
  • + Undo batching changed so that a paste followed by typing creates two undo actions.. +
  • +
  • + A "visibility policy" setting for Scintilla determines which range of lines are displayed + when a particular line is moved to. Also exposed as a property in SciTE. +
  • +
  • + SciTE command line allows property settings. +
  • +
  • + SciTE has a View Output command to hide or show the output pane. +
  • +
  • + SciTE's Edit menu has been split in two with searching commands moved to a + new Search menu. Find Previous and Previous Bookmark are in the Search menu. +
  • +
  • + SciTE on Windows has options for setting print margins, headers and footers. +
  • +
  • + SciTE on Windows has tooltips for toolbar. +
  • +
  • + SciTE on GTK+ has properties for setting size of file selector. +
  • +
  • + Visual and audio cues in SciTE on Windows enhanced. +
  • +
  • + Fixed performance problem in SciTE for GTK+ by dropping the extra 3D + effect on the content windows. +
  • +
  • + Fixed problem in SciTE where choosing a specific lexer then meant + that no lexer was chosen when files opened. +
  • +
  • + Default selection colour changed to be visible on low colour displays. +
  • +
  • + Fixed problems with automatically reloading changed documents in SciTE on + Windows. +
  • +
  • + Fixed problem with uppercase file extensions in SciTE. +
  • +
  • + Fixed some problems when using characters >= 128, some of which were being + incorrectly treated as spaces. +
  • +
  • + Fixed handling multiple line tags, non-inline scripts, and XML end tags /> in HTML/XML lexer. +
  • +
  • + Bookmarks in SciTE no longer disappear when switching between buffers. +
  • +
+

+ Release 1.34 +

+
    +
  • + Released on 28 November 2000. +
  • +
  • + Pascal lexer. +
  • +
  • + Export as PDF in SciTE. +
  • +
  • + Support for the OpenVMS operating system in SciTE. +
  • +
  • + SciTE for GTK+ can check for another instance of SciTE + editing a file and switch to it rather than open a second instance + on one file. +
  • +
  • + Fixes to quoting and here documents in the Perl lexer. +
  • +
  • + SciTE on Windows can give extra visual and audio cues when a + warning is shown or find restarts from beginning of file. +
  • +
  • + Open Selected Filename command in SciTE. Also understands some + warning message formats. +
  • +
  • + Wider area for line numbers when printing. +
  • +
  • + Better scrolling performance on GTK+. +
  • +
  • + Fixed problem where rectangles with negative coordinates were + invalidated leading to trouble with platforms that use + unsigned coordinates. +
  • +
  • + GTK+ Scintilla uses more compliant signalling code so that keyboard + events should propagate to containers. +
  • +
  • + Bug fixed with opening full or partial paths. +
  • +
  • + Improved handling of paths in error messages in SciTE. +
  • +
  • + Better handling of F6 in SciTE. +
  • +
+

+ Release 1.33 +

+
    +
  • + Released on 6 November 2000. +
  • +
  • + XIM support for the GTK+ version of Scintilla ensures that more non-English + characters can be typed. +
  • +
  • + Caret may be 1, 2, or 3 pixels wide. +
  • +
  • + Cursor may be switched to wait image during lengthy processing. +
  • +
  • + Scintilla's internal focus flag is exposed for clients where focus is handled in + complex ways. +
  • +
  • + Error status defined for Scintilla to hold indication that an operation failed and the reason + for that failure. No detection yet implemented but clients may start using the interface + so as to be ready for when it does. +
  • +
  • + Context sensitive help in SciTE. +
  • +
  • + CurrentWord property available in SciTE holding the value of the word the + caret is within or near. +
  • +
  • + Apache CONF file lexer. +
  • +
  • + Changes to Python lexer to allow 'as' as a context sensitive keyword and the + string forms starting with u, r, and ur to be recognised. +
  • +
  • + SCN_POSCHANGED notification now working and SCN_PAINTED notification added. +
  • +
  • + Word part movement commands for cursoring between the parts of reallyLongCamelIdentifiers and + other_ways_of_making_words. +
  • +
  • + When text on only one line is selected, Shift+Tab moves to the previous tab stop. +
  • +
  • + Tab control available for Windows version of SciTE listing all the buffers + and making it easy to switch between them. +
  • +
  • + SciTE can be set to automatically determine the line ending type from the contents of a + file when it is opened. +
  • +
  • + Dialogs in GTK+ version of SciTE made more modal and have accelerator keys. +
  • +
  • + Find in Files command in GTK+ version of SciTE allows choice of directory. +
  • +
  • + On Windows, multiple files can be opened at once. +
  • +
  • + SciTE source broken up into more files. +
  • +
  • + Scintilla headers made safe for C language, not just C++. +
  • +
  • + New printing modes - force background to white and force default background to white. +
  • +
  • + Automatic unfolding not occurring when Enter pressed at end of line bug fixed. +
  • +
  • + Bugs fixed in line selection. +
  • +
  • + Bug fixed with escapes in PHP strings in the HTML lexer. +
  • +
  • + Bug fixed in SciTE for GTK+ opening files when given full paths. +
  • +
  • + Bug fixed in autocompletion where user backspaces into existing text. +
  • +
  • + Bugs fixed in opening files and ensuring they are saved before running. + A case bug also fixed here. +
  • +
+

+ Release 1.32 +

+
    +
  • + Released on 8 September 2000. +
  • +
  • + Fixes bugs in complete word and related code. Protection against a bug when + receiving a bad argument. +
  • +
+

+ Release 1.31 +

+
    +
  • + Released on 6 September 2000. +
  • +
  • + Scintilla is available as a COM control from the scintillactrl module in CVS. +
  • +
  • + Style setting to underline text. Exposed in SciTE as "underlined". +
  • +
  • + Style setting to make text invisible. +
  • +
  • + SciTE has an extensibility interface that can be used to implement features such as + a scripting language or remote control. An example use of this is the extlua module + available from CVS which allows SciTE to be scripted in Lua. +
  • +
  • + Many minor fixes to all of the lexers. +
  • +
  • + New lexer for diff and patch files. +
  • +
  • + Error message lexer understands Perl error messages. +
  • +
  • + C/C++/Java lexer now supports C#, specifically verbatim strings and + @ quoting of identifiers that are the same as keywords. SciTE has + a set of keywords for C# and a build command set up for C#. +
  • +
  • + Scintilla property to see whether in overtype or insert state. +
  • +
  • + PosChanged notification fired when caret moved. +
  • +
  • + Comboboxes in dialogs in SciTE on Windows can be horizontally scrolled. +
  • +
  • + Autocompletion and calltips can treat the document as case sensitive or + case insensitive. +
  • +
  • + Autocompletion can be set to automatically choose the only + element in a single element list. +
  • +
  • + Set of characters that automatically complete an autocompletion list + can be set. +
  • +
  • + SciTE command to display calltip - useful when dropped because of + editing. +
  • +
  • + SciTE has a Revert command to go back to the last saved version. +
  • +
  • + SciTE has an Export as RTF command. Save as HTML is renamed + to Export as HTML and is located on the Export sub menu. +
  • +
  • + SciTE command "Complete Word" searches document for any + words starting with characters before caret. +
  • +
  • + SciTE options for changing aspects of the formatting of files exported + as HTML or RTF. +
  • +
  • + SciTE "character.set" option for choosing the character + set for all fonts. +
  • +
  • + SciTE has a "Toggle all folds" command. +
  • +
  • + The makefiles have changed. The makefile_vc and + makefile_bor files in scintilla/win32 and scite/win32 have been + merged into scintilla/win32/scintilla.mak and scite/win32/scite.mak. + DEBUG may be defined for all make files and this will turn on + assertions and for some make files will choose other debugging + options. +
  • +
  • + To make debugging easier and allow good use of BoundsChecker + there is a Visual C++ project file in scite/boundscheck that builds + all of Scintilla and SciTE into one executable. +
  • +
  • + The size of the SciTE output window can be set with the + output.horizontal.size and output.vertical.size settings. +
  • +
  • + SciTE status bar indicator for insert or overwrite mode. +
  • +
  • + Performance improvements to autocompletion and calltips. +
  • +
  • + A caret redraw problem when undoing is fixed. +
  • +
  • + Crash with long lines fixed. +
  • +
  • + Bug fixed with merging markers when lines merged. +
  • +
+

+ Release 1.30 +

+
    +
  • + Released on 26 July 2000. +
  • +
  • + Much better support for PHP which is now an integral part of the HTML support. +
  • +
  • + Start replacement of Windows-specific APIs with cross platform APIs. + In 1.30, the new APIs are introduced but the old APIs are still available. + For the GTK+ version, may have to include "WinDefs.h" explicitly to + use the old APIs. +
  • +
  • + "if" and "import" statements in SciTE properties files allows modularisation into + language-specific properties files and choices based upon platform. + This means that SciTE is delivered with 9 language-specific properties files + as well as the standard SciTEGlobal.properties file. +
  • +
  • + Much lower resource usage on Windows 9x. +
  • +
  • + "/p" option in SciTE on Windows for printing a file and then exiting. +
  • +
  • + Options for printing with inverted brightness (when the screen is set to use + a dark background) and to force black on white printing. +
  • +
  • + Option for printing magnified or miniaturised from screen settings. +
  • +
  • + In SciTE, Ctrl+F3 and Ctrl+Shift+F3 find the selection in the forwards and backwards + directions respectively. +
  • +
  • + Auto-completion lists may be set to cancel when the cursor goes before + its start position or before the start of string being completed. +
  • +
  • + Auto-completion lists automatically size more sensibly. +
  • +
  • + SCI_CLEARDOCUMENTSTYLE zeroes all style bytes, ensures all + lines are shown and deletes all folding information. +
  • +
  • + On Windows, auto-completion lists are visually outdented rather than indented. +
  • +
  • + Close all command in SciTE. +
  • +
  • + On Windows multiple files can be dragged into SciTE. +
  • +
  • + When saving a file, the SciTE option save.deletes.first deletes it before doing the save. + This allows saving with a different capitalisation on Windows. +
  • +
  • + When use tabs option is off pressing the tab key inserts spaces. +
  • +
  • + Bug in indicators leading to extra line drawn fixed. +
  • +
+

+ Release 1.28 +

+
    +
  • + Released on 27 June 2000. +
  • +
  • + Fixes crash in indentation guides when indent size set to 0. +
  • +
  • + Fixes to installation on GTK+/Linux. User properties file on GTK+ has a dot at front of name: + .SciTEUser.properties. Global properties file location configurable at compile time + defaulting to $prefix/share/scite. $prefix determined from Gnome if present else its + /usr/local and can be overridden by installer. Gnome menu integration performed in + make install if Gnome present. +
  • +
+

+ Release 1.27 +

+
    +
  • + Released on 23 June 2000. +
  • +
  • + Indentation guides. View whitespace mode may be set to not display whitespace + in indentation. +
  • +
  • + Set methods have corresponding gets for UndoCollection, BufferedDraw, + CodePage, UsePalette, ReadOnly, CaretFore, and ModEventMask. +
  • +
  • + Caret is continuously on rather than blinking while typing or holding down + delete or backspace. And is now always shown if non blinking when focused on GTK+. +
  • +
  • + Bug fixed in SciTE with file extension comparison now done in case insensitive way. +
  • +
  • + Bugs fixed in SciTE's file path handling on Windows. +
  • +
  • + Bug fixed with preprocessor '#' last visible character causing hang. +
  • +
+

+ Release 1.26 +

+
    +
  • + Released on 13 June 2000. +
  • +
  • + Support for the Lua language in both Scintilla and SciTE. +
  • +
  • + Multiple buffers may be open in SciTE. +
  • +
  • + Each style may have a character set configured. This may determine + the characters that are displayed by the style. +
  • +
  • + In the C++ lexer, lexing of preprocessor source may either treat it all as being in + the preprocessor class or only the initial # and preprocessor command word as + being in the preprocessor class. +
  • +
  • + Scintilla provides SCI_CREATEDOCUMENT, SCI_ADDREFDOCUMENT, and + SCI_RELEASEDOCUMENT to make it easier for a container to deal with multiple + documents. +
  • +
  • + GTK+ specific definitions in Scintilla.h were removed to ScintillaWidget.h. All GTK+ clients will need to + #include "ScintillaWidget.h". +
  • +
  • + For GTK+, tools can be executed in the background by setting subsystem to 2. +
  • +
  • + Keys in the properties files are now case sensitive. This leads to a performance increase. +
  • +
  • + Menu to choose which lexer to use on a file. +
  • +
  • + Tab size dialog on Windows. +
  • +
  • + File dialogs enlarged on GTK+. +
  • +
  • + Match Brace command bound to Ctrl+E on both platforms with Ctrl+] a synonym on Windows. + Ctrl+Shift+E is select to matching brace. Brace matching tries to match to either the inside or the + outside, depending on whether the cursor is inside or outside the braces initially. + View End of Line bound to Ctrl+Shift+O. +
  • +
  • + The Home key may be bound to move the caret to either the start of the line or the start of the + text on the line. +
  • +
  • + Visual C++ project file for SciTE. +
  • +
  • + Bug fixed with current x location after Tab key. +
  • +
  • + Bug fixed with hiding fold margin by setting fold.margin.width to 0. +
  • +
  • + Bugs fixed with file name confusion on Windows when long and short names used, or different capitalisations, + or relative paths. +
  • +
+

+ Release 1.25 +

+
    +
  • + Released on 9 May 2000. +
  • +
  • + Some Unicode support on Windows. Treats buffer and API as UTF-8 and displays + through UCS-2 of Windows. +
  • +
  • + Automatic indentation. Indentation size can be different to tab size. +
  • +
  • + Tool bar. +
  • +
  • + Status bar now on Windows as well as GTK+. +
  • +
  • + Input fields in Find and Replace dialogs now have history on both Windows and + GTK+. +
  • +
  • + Auto completion list items may be separated by a chosen character to allow spaces + in items. The selected item may be changed through the API. +
  • +
  • + Horizontal scrollbar can be turned off. +
  • +
  • + Property to remove trailing spaces when saving file. +
  • +
  • + On Windows, changed font size calculation to be more compatible with + other applications. +
  • +
  • + On GTK+, SciTE's global properties files are looked for in the directory specified in the + SCITE_HOME environment variable if it is set. This allows hiding in a dot directory. +
  • +
  • + Keyword lists in SciTE updated for JavaScript to include those destined to be used in + the future. IDL includes XPIDL keywords as well as MSIDL keywords. +
  • +
  • + Zoom level can be set and queried through API. +
  • +
  • + New notification sent before insertions and deletions. +
  • +
  • + LaTeX lexer. +
  • +
  • + Fixes to folding including when deletions and additions are performed. +
  • +
  • + Fix for crash with very long lines. +
  • +
  • + Fix to affect all of rectangular selections with deletion and case changing. +
  • +
  • + Removed non-working messages that had been included only for Richedit compatibility. +
  • +
+

+ Release 1.24 +

+
    +
  • + Released on 29 March 2000. +
  • +
  • + Added lexing of IDL based on C++ lexer with extra UUID lexical class. +
  • +
  • + Functions and associated keys for Line Delete, Line Cut, Line Transpose, + Selection Lower Case and Selection Upper Case. +
  • +
  • + Property setting for SciTE, eol.mode, chooses initial state of line end characters. +
  • +
  • + Fixed bugs in undo history with small almost-contiguous changes being incorrectly coalesced. +
  • +
  • + Fixed bugs with incorrect expansion of ContractionState data structures causing crash. +
  • +
  • + Fixed bugs relating to null fonts. +
  • +
  • + Fixed bugs where recolourisation was not done sometimes when required. +
  • +
  • + Fixed compilation problems with SVector.h. +
  • +
  • + Fixed bad setting of fold points in Python. +
  • +
+

+ Release 1.23 +

+
    +
  • + Released on 21 March 2000. +
  • +
  • + Directory structure to separate on basis of product (Scintilla, SciTE, DMApp) + and environment (Cross-platform, Win32, GTK+). +
  • +
  • + Download packaging to allow download of the source or platform dependent executables. +
  • +
  • + Source code now available from CVS at SourceForge. +
  • +
  • + Very simple Windows-only demonstration application DMApp is available from cvs as dmapp. +
  • +
  • + Lexing functionality may optionally be included in Scintilla rather than be provided by + the container. +
  • +
  • + Set of lexers included is determined at link time by defining which of the Lex* object files + are linked in. +
  • +
  • + On Windows, the SciLexer.DLL extends Scintilla.DLL with the standard lexers. +
  • +
  • + Enhanced HTML lexer styles embedded VBScript and Python. + ASP segments are styled and ASP scripts in JavaScript, VBScript and Python are styled. +
  • +
  • + PLSQL and PHP supported. +
  • +
  • + Maximum number of lexical states extended to 128. +
  • +
  • + Lexers may store per line parse state for multiple line features such as ASP script language choice. +
  • +
  • + Lexing API simplified. +
  • +
  • + Project file for Visual C++. +
  • +
  • + Can now cycle through all recent files with Ctrl+Tab in SciTE. +
  • +
  • + Bookmarks in SciTE. +
  • +
  • + Drag and drop copy works when dragging to the edge of the selection. +
  • +
  • + Fixed bug with value sizes in properties file. +
  • +
  • + Fixed bug with last line in properties file not being used. +
  • +
  • + Bug with multiple views of one document fixed. +
  • +
  • + Keypad now works on GTK+. +
  • +
+

+ Release 1.22 +

+
    +
  • + Released on 27 February 2000. +
  • +
  • + wxWindows platform defined. + Implementation for wxWindows will be available separately + from main Scintilla distribution. +
  • +
  • + Line folding in Scintilla. +
  • +
  • + SciTE performs syntax directed folding for C/C++/Java/JavaScript and for Python. +
  • +
  • + Optional macro recording support. +
  • +
  • + User properties file (SciTEUser.properties) allows for customisation by the user + that is not overwritten with each installation of SciTE. +
  • +
  • + Python lexer detects and highlights inconsistent indentation. +
  • +
  • + Margin API made more orthogonal. SCI_SETMARGINWIDTH and SCI_SETLINENUMBERWIDTH + are deprecated in favour of this new API. +
  • +
  • + Margins may be made sensitive to forward mouse click events to container. +
  • +
  • + SQL lexer and styles included. +
  • +
  • + Perl lexer handles regular expressions better. +
  • +
  • + Caret policy determines how closely caret is tracked by visible area. +
  • +
  • + New marker shapes: arrow pointing down, plus and minus. +
  • +
  • + Optionally display full path in title rather than just file name. +
  • +
  • + Container is notified when Scintilla gains or loses focus. +
  • +
  • + SciTE handles focus in a more standard way and applies the main + edit commands to the focused pane. +
  • +
  • + Container is notified when Scintilla determines that a line needs to be made visible. +
  • +
  • + Document watchers receive notification when document about to be deleted. +
  • +
  • + Document interface allows access to list of watchers. +
  • +
  • + Line end determined correctly for lines ending with only a '\n'. +
  • +
  • + Search variant that searches form current selection and sets selection. +
  • +
  • + SciTE understands format of diagnostic messages from WScript. +
  • +
  • + SciTE remembers top line of window for each file in MRU list so switching to a recent file + is more likely to show the same text as when the file was previously visible. +
  • +
  • + Document reference count now initialised correctly. +
  • +
  • + Setting a null document pointer creates an empty document. +
  • +
  • + WM_GETTEXT can no longer overrun buffer. +
  • +
  • + Polygon drawing bug fixed on GTK+. +
  • +
  • + Java and JavaScript lexers merged into C++ lexer. +
  • +
  • + C++ lexer indicates unterminated strings by colouring the end of the line + rather than changing the rest of the file to string style. This is less + obtrusive and helps the folding. +
  • +
+

+ Release 1.21 +

+
    +
  • + Released on 2 February 2000. +
  • +
  • + Blank margins on left and right side of text. +
  • +
  • + SCN_CHECKBRACE renamed SCN_UPDATEUI and made more efficient. +
  • +
  • + SciTE source code refactored into platform independent and platform specific classes. +
  • +
  • + XML and Perl subset lexers in SciTE. +
  • +
  • + Large improvement to lexing speed. +
  • +
  • + A new subsystem, 2, allows use of ShellExec on Windows. +
  • +
  • + Borland compatible makefile. +
  • +
  • + Status bar showing caret position in GTK+ version of SciTE. +
  • +
  • + Bug fixes to selection drawing when part of selection outside window, mouse release over + scroll bars, and scroll positioning after deletion. +
  • +
+

+ Release 1.2 +

+
    +
  • + Released on 21 January 2000. +
  • +
  • + Multiple views of one document. +
  • +
  • + Rectangular selection, cut, copy, paste, drag and drop. +
  • +
  • + Long line indication. +
  • +
  • + Reverse searching +
  • +
  • + Line end conversion. +
  • +
  • + Generic autocompletion and calltips in SciTE. +
  • +
  • + Call tip background colour can be set. +
  • +
  • + SCI_MARKERPREV for moving to a previous marker. +
  • +
  • + Caret kept more within window where possible. +
  • +
+

+ Release 1.15 +

+
    +
  • + Released on 15 December 1999. +
  • +
  • + Brace highlighting and badlighting (for mismatched braces). +
  • +
  • + Visible line ends. +
  • +
  • + Multiple line call tips. +
  • +
  • + Printing now works from SciTE on Windows. +
  • +
  • + SciTE has a global "*" lexer style that is used as the basis for all the lexers' styles. +
  • +
  • + Fixes some warnings on GTK+ 1.2.6. +
  • +
  • + Better handling of modal dialogs on GTK+. +
  • +
  • + Resize handle drawn on pane splitter in SciTE on GTK+ so it looks more like a regular GTK+ + *paned widget. +
  • +
  • + SciTE does not place window origin offscreen if no properties file found on GTK+. +
  • +
  • + File open filter remembered in SciTE on Windows. +
  • +
  • + New mechanism using style numbers 32 to 36 standardises the setting of styles for brace + highlighting, brace badlighting, line numbers, control characters and the default style. +
  • +
  • + Old messages SCI_SETFORE .. SCI_SETFONT have been replaced by the default style 32. The old + messages are deprecated and will disappear in a future version. +
  • +
+

+ Release 1.14 +

+
    +
  • + Released on 20 November 1999. +
  • +
  • + Fixes a scrolling bug reported on GTK+. +
  • +
+

+ Release 1.13 +

+
    +
  • + Released on 18 November 1999. +
  • +
  • + Fixes compilation problems with the mingw32 GCC 2.95.2 on Windows. +
  • +
  • + Control characters are now visible. +
  • +
  • + Performance has improved, particularly for scrolling. +
  • +
  • + Windows RichEdit emulation is more accurate. This may break client code that uses these + messages: EM_GETLINE, EM_GETLINECOUNT, EM_EXGETSEL, EM_EXSETSEL, EM_EXLINEFROMCHAR, + EM_LINELENGTH, EM_LINEINDEX, EM_CHARFROMPOS, EM_POSFROMCHAR, and EM_GETTEXTRANGE. +
  • +
  • + Menus rearranged and accelerator keys set for all static items. +
  • +
  • + Placement of space indicators in view whitespace mode is more accurate with some fonts. +
  • +
+

+ Release 1.12 +

+
    +
  • + Released on 9 November 1999. +
  • +
  • + Packaging error in 1.11 meant that the compilation error was not fixed in that release. + Linux/GTK+ should compile with GCC 2.95 this time. +
  • +
+

+ Release 1.11 +

+
    +
  • + Released on 7 November 1999. +
  • +
  • + Fixed a compilation bug in ScintillaGTK.cxx. +
  • +
  • + Added a README file to explain how to build. +
  • +
  • + GTK+/Linux downloads now include documentation. +
  • +
  • + Binary only Sc1.EXE one file download for Windows. +
  • +
+

+ Release 1.1 +

+
    +
  • + Released on 6 November 1999. +
  • +
  • + Major restructuring for better modularity and platform independence. +
  • +
  • + Inter-application drag and drop. +
  • +
  • + Printing support in Scintilla on Windows. +
  • +
  • + Styles can select colouring to end of line. This can be used when a file contains more than + one language to differentiate between the areas in each language. An example is the HTML + + JavaScript styling in SciTE. +
  • +
  • + Actions can be grouped in the undo stack, so they will be undone together. This grouping is + hierarchical so higher level actions such as replace all can be undone in one go. Call to + discover whether there are any actions to redo. +
  • +
  • + The set of characters that define words can be changed. +
  • +
  • + Markers now have identifiers and can be found and deleted by their identifier. The empty + marker type can be used to make a marker that is invisible and which is only used to trace + where a particular line moves to. +
  • +
  • + Double click notification. +
  • +
  • + HTML styling in SciTE also styles embedded JavaScript. +
  • +
  • + Additional tool commands can be added to SciTE. +
  • +
  • + SciTE option to allow reloading if changed upon application activation and saving on + application deactivation. Not yet working on GTK+ version. +
  • +
  • + Entry fields in search dialogs remember last 10 user entries. Not working in all cases in + Windows version. +
  • +
  • + SciTE can save a styled copy of the current file in HTML format. As SciTE does not yet + support printing, this can be used to print a file by then using a browser to print the + HTML file. +
  • +
+

+ Release 1.02 +

+
    +
  • + Released on 1 October 1999. +
  • +
  • + GTK+ version compiles with GCC 2.95. +
  • +
  • + Properly deleting objects when window destroyed under GTK+. +
  • +
  • + If the selection is not empty backspace deletes the selection. +
  • +
  • + Some X style middle mouse button handling for copying the primary selection to and from + Scintilla. Does not work in all cases. +
  • +
  • + HTML styling in SciTE. +
  • +
  • + Stopped dirty flag being set in SciTE when results pane modified. +
  • +
+

+ Release 1.01 +

+
    +
  • + Released on 28 September 1999. +
  • +
  • + Better DBCS support on Windows including IME. +
  • +
  • + Wheel mouse support for scrolling and zooming on Windows. Zooming with Ctrl+KeypadPlus and + Ctrl+KeypadMinus. +
  • +
  • + Performance improvements especially on GTK+. +
  • +
  • + Caret blinking and settable colour on both GTK+ and Windows. +
  • +
  • + Drag and drop within a Scintilla window. On Windows, files can be dragged into SciTE. +
  • +
+

+ Release 1.0 +

+
    +
  • + Released on 17 May 1999. +
  • +
  • + Changed name of "Tide" to "SciTE" to avoid clash with a TCL based IDE. "SciTE" is a + SCIntilla based Text Editor and is Latin meaning something like "understanding in a neat + way" and is also an Old English version of the word "shit". +
  • +
  • + There is a SCI_AUTOCSTOPS message for defining a string of characters that will stop + autocompletion mode. Autocompletion mode is cancelled when any cursor movement occurs apart + from backspace. +
  • +
  • + GTK+ version now splits horizontally as well as vertically and all dialogs cancel when the + escape key is pressed. +
  • +
+

+ Beta release 0.93 +

+
    +
  • + Released on 12 May 1999. +
  • +
  • + A bit more robust than 0.92 and supports SCI_MARKERNEXT message. +
  • +
+

+ Beta release 0.92 +

+
    +
  • + Released on 11 May 1999. +
  • +
  • + GTK+ version now contains all features of Windows version with some very small differences. + Executing programs works much better now. +
  • +
  • + New palette code to allow more colours to be displayed in 256 colour screen modes. A line + number column can be displayed to the left of the selection margin. +
  • +
  • + The code that maps from line numbers to text positions and back has been completely + rewritten to be faster, and to allow markers to move with the text. +
  • +
+

+ Beta release 0.91 +

+
    +
  • + Released on 30 April 1999, containing fixes to text measuring to make Scintilla work better + with bitmap fonts. Also some small fixes to make compiling work with Visual C++. +
  • +
+

+ Beta release 0.90 +

+
    +
  • + Released on 29 April 1999, containing working GTK+/Linux version. +
  • +
  • + The Java, C++ and Python lexers recognise operators as distinct from default allowing them + to be highlighted. +
  • +
+

+ Beta release 0.82 +

+
    +
  • + Released on 1 April 1999, to fix a problem with handling the Enter key in PythonWin. Also + fixes some problems with cmd key mapping. +
  • +
+

+ Beta release 0.81 +

+
    +
  • + Released on 30th March 1999, containing bug fixes and a few more features. +
  • +
  • + Static linking supported and Tidy.EXE, a statically linked version of Tide.EXE. Changes to + compiler flags in the makefiles to optimise for size. +
  • +
  • + Scintilla supports a 'savepoint' in the undo stack which can be set by the container when + the document is saved. Notifications are sent to the container when the savepoint is + entered or left, allowing the container to to display a dirty indicator and change its + menus. +
  • +
  • + When Scintilla is set to read-only mode, a notification is sent to the container should the + user try to edit the document. This can be used to check the document out of a version + control system. +
  • +
  • + There is an API for setting the appearance of indicators. +
  • +
  • + The keyboard mapping can be redefined or removed so it can be implemented completely by the + container. All of the keyboard commands are now commands which can be sent by the + container. +
  • +
  • + A home command like Visual C++ with one hit going to the start of the text on the line and + the next going to the left margin is available. I do not personally like this but my + fingers have become trained to it by much repetition. +
  • +
  • + SCI_MARKERDELETEALL has an argument in wParam which is the number of the type marker to + delete with -1 performing the old action of removing all marker types. +
  • +
  • + Tide now understands both the file name and line numbers in error messages in most cases. +
  • +
  • + Tide remembers the current lines of files in the recently used list. +
  • +
  • + Tide has a Find in Files command. +
  • +
+

+ Beta release 0.80 +

+
    +
  • + This was the first public release on 14th March 1999, containing a mostly working Win32 + Scintilla DLL and Tide EXE. +
  • +
+

+ Beta releases of SciTE were called Tide +

+ + diff --git a/doc/Scintilla/ScintillaRelated.html b/doc/Scintilla/ScintillaRelated.html new file mode 100644 index 0000000..e0cd4f1 --- /dev/null +++ b/doc/Scintilla/ScintillaRelated.html @@ -0,0 +1,552 @@ + + + + + + + + + Scintilla and SciTE Related Sites + + + + + + + + +
+ Scintilla icon + + Scintilla + and SciTE +
+

+ Related Sites +

+

+ Ports and Bindings of Scintilla +

+

+ Scinterm + is an implementation of Scintilla for the ncurses platform. +

+

+ Scintilla.mcc + is a port to MorphOS. +

+

+ Wx::Scintilla + is a Perl Binding for Scintilla on wxWidgets. +

+

+ GtkScintilla + is a GTK+ widget which enables easily adding a powerful + source code editor to your applications. Harnessing the abilities + of the Scintilla editing component, GtkScintilla adds a familiar + GTK+/GObject API, making the widget comfortable to use in + these programs, using all the typical GObject conventions. +

+

+ Editawy + is an ActiveX Control wrapper that support all Scintilla functions and additional high level functions. +

+

+ Jintilla + is a JNI wrapper that allows Scintilla to be used in Java with + both SWT and AWT. +

+

+ Delphi Scintilla Interface Components + is a FREE collection of components that makes it easy to use the + Scintilla source code editing control from within Delphi and C++ Builder. +

+

+ wxStEdit + is a library and sample program that provides extra features over wxStyledTextControl. +

+

+ CScintillaCtrl, CScintillaView & CScintillaDoc + are freeware MFC classes to encapsulate Scintilla. +

+

+ ScintillaNet + is an encapsulation of Scintilla for use within the .NET framework. +

+

+ QScintilla + is a port of Scintilla to the Qt platform. It has a similar license to Qt: GPL for use in + free software and commercial for use in close-source applications. +

+

+ + GWindows is a Win32 RAD GUI Framework for Ada 95 that + includes a binding of Scintilla. +

+

+ ScintillaVB + is an ActiveX control written in VB that encapsulates Scintilla. +

+

+ FXScintilla + is a port of Scintilla to the FOX platform. FXRuby includes Ruby + bindings for FXScintilla. +

+

+ Delphi wrapper for + Scintilla which is also usable from Borland C++ Builder. +

+

+ The wxStyledTextCtrl editor component in the + wxWidgets cross platform toolkit is based on Scintilla.
+ A Python binding for wxStyledTextCtrl is part of wxPython. +

+

+ gtkscintilla + is an alternative GTK class implementation for scintilla. + This implementation acts more like a Gtk+ object, with many methods rather + than just scintilla_send_message() and is available as a shared library. + This implementation works with GTK 1.x. +

+

+ gtkscintilla2 + is an alternative GTK class implementation for scintilla + similar to the above, but for GTK 2.x. +

+

+ pygtkscintilla + is a Python binding for gtk1.x scintilla that uses + gtkscintilla instead of the default GTK class. +

+

+ ScintillaCtrl + is an unmaintained ActiveX control wrapper for Scintilla. +

+

+ Projects using Scintilla +

+

+ SciTECO + is an advanced TECO dialect and interactive screen editor based on Scintilla. +

+

+ Quantum GIS + is a user friendly Open Source Geographic Information System (GIS). +

+

+ QGrinUI + searches for a regex within all relevant files in a directory and shows matches using + SciTE through the director interface. +

+

+ Textadept + is a ridiculously extensible cross-platform text editor for programmers written (mostly) in + Lua using LPeg to handle the lexers. +

+

+ Scribble + is a text editor included in MorphOS. +

+

+ MySQL Workbench + is a cross-platform, visual database design, sql coding and administration tool. +

+

+ LIVEditor + is for web front end coders editing html/css/js code. +

+

+ Padre + is a wxWidgets-based Perl IDE. +

+

+ CoderStudio + is an IDE for Assembly programming similar to Visual Studio 6.0. +

+

+ Enterprise Architect + is a UML 2.1 analysis and design tool. +

+

+ The CodeAssistor Editor + is a small and simple MacOSX source code editor. +

+

+ PBEditor + is a text editor for PowerBuilder. +

+

+ CrypTool + is an application for applying and analyzing cryptographic algorithms. +

+

+ FXiTe + is an advanced cross-platform text editor built with the Fox GUI toolkit + and the FXScintilla text widget. +

+

+ Jabaco + is a simple programming language with a Visual Basic like syntax. +

+

+ LispIDE + is a basic Lisp editor for Windows 2000, XP and Vista. +

+

+ FlexEdit + is Free Text/Hex Editor for Windows. +

+

+ File Workbench: + a file manager / text editor environment with Squirrel scripting. +

+

+ Kephra + is a free, easy and comfortable cross-platform editor written in Perl. +

+

+ TOP + is an interface to HP's NonStop servers which run a proprietary OS. +

+

+ UniversalIndentGUI + is a cross platform GUI for several code formatters, beautifiers and indenters + like GreatCode, AStyle (Artistic Styler), GNU Indent, BCPP and so on. +

+

+ TrackBack + watches and backs up every change made in your source code. +

+

+ Elementary Reports + is designed to reduce the time to compose detailed and professional primary school reports. +

+

+ Visual Classworks + Visual class modeling and coding in C++ via 'live' + UML style class diagrams. +

+

+ Javelin + Visual Class modeling and coding in Java via 'live' UML style + class diagrams. +

+

+ The ExtendScript Toolkit + is a development and debugging tool for JavaScript + scripts included with Adobe CS3 Suites. +

+

+ TortoiseSVN + is a Windows GUI client for the Subversion source control software. +

+

+ Geany + is a small and fast GTK2 based IDE, which has only a few dependencies from other packages. +

+

+ ECMerge + is a commercial graphical and batch diff / merge tool for Windows, Linux and Solaris + (aiming to target all major platforms). +

+

+ PyPE + is an editor written in Python with the wxPython GUI toolkit. +

+

+ Sciboo + is an editor based on ScintillaNET. +

+

+ The Scite Config Tool + is a graphical user interface for changing SciTE properties files. +

+

+ Scintilla Lister + is a plugin for Total Commander allowing viewing all documents with syntax highlighting + inside Total Commander. +

+

+ ChSciTE + is a free IDE for C/C++ interpreter Ch. It runs cross platform. + Ch is for cross-platform scripting, shell + programming, 2D/3D plotting, numerical computing, and embedded + scripting. +

+

+ + Code::Blocks is an open source, cross platform free C++ IDE. +

+

+ + Notepad++ is a free source code editor under Windows. +

+

+ + Gubed is a cross platform program to debug PHP scripts. +

+

+ + LSW DotNet-Lab is a development environment for the .NET platform. +

+

+ + GLIntercept is an OpenGL function call interceptor that uses SciTE as a + run-time shader editor. +

+

+ + wyoEditor is "A nice editor with a well designed and consistent look and feel". +

+

+ + Notepad2 is "Yet another Notepad replacement". +

+

+ + PyCrash Viewer can examine crash dumps of Python programs. +

+

+ + MPT series Wire Analyzers use Scintilla and SciTE. +

+

+ MyGeneration + is a .NET based code generator. +

+

+ CSSED + is a tiny GTK2 CSS editor. +

+

+ + IdePS + is a free Integrated Development Environment for PostScript +

+

+ + CUTE + is a user-friendly source code editor easily extended using Python. +

+

+ + Venis IX, + the Visual Environment for NSIS (Nullsoft Scriptable Install System). +

+

+ Eric3 + is a Python IDE written using PyQt and QScintilla. +

+

+ SciTE|Flash + is a free Scintilla-based ActionScript editor for Windows. +

+

+ CPPIDE + is part of some commercial high-school oriented programming course software. +

+

+ Instant Source + is a commercial tool for looking at the HTML on web sites. +

+

+ RAD.On++ + is a free C++ Rapid Application Developer for Win32. +

+

+ wxBasic is an open source + Basic interpreter that uses the wxWidgets toolkit. A small IDE is under construction. +

+

+ FreeRIDE will be a + cross-platform IDE for the Ruby programming language. +

+

+ Visual MinGW is an + IDE for the MinGW compiler system.This runs on Windows with gcc. +

+

+ The Wing IDE is a + complete integrated development environment for the Python programming + language. + Available on Intel based Linux and Windows and on MacOS X through XDarwin. +

+

+ LuaIDE + is an IDE for Lua on Windows. +

+

+ Sphere + is 2D RPG engine with a development environment. +

+

+ Practical Ruby + is an IDE for Ruby on Windows. +

+

+ GNUe + is a suite of tools and applications for solving the needs of the enterprise. +

+

+ SilverCity + is a lexing package that can provide lexical analysis for over 20 programming + and markup languages. +

+

+ HAP Python Remote Debugger + is a Python debugger that can run on one Windows machine debugging a Python program running + on either the same or another machine. +

+

+ pyeditor and wxEditor + are scriptable editors implemented in Python. pyeditor is based on GTK+ and + the pyscintilla wrapper. wxEditor is based on wxWidgets, wxPython and + wxStyledTextControl. +

+

+ PyCrust is an interactive + Python shell based on wxPython. +

+

+ Black Adder is a + Qt based development environment for Python and Ruby. +

+

+ Komodo + is a cross-platform multi-language development environment built + as an application of Mozilla. +

+

+ Filerx + is a project manager for SciTE on Windows. + Open source and includes an implementation of SciTE's Director interface so + will be of interest to others wanting to control SciTE. +

+

+ Anjuta + is an open source C/C++ IDE for Linux/GNOME. +

+

+ A version of SciTE for Win32 enhanced + with a tab control to allow easy movement between buffers. + Go to the "Goodies" area on this site. +

+

+ + Suneido is an integrated application platform currently available for Win32 that includes an + object-oriented language, client-server database, and user interface and reporting frameworks. +

+

+ + Agast is an authoring system for adventure games which includes + a customised version of SciTE. +

+

+ Boa Constructor is a RAD GUI + Building IDE for the wxWidgets cross platform platform. Written using wxPython with the + wxStyledTextCtrl used as its editor. +

+

+ PythonWin, a Win32 IDE for Python, uses + Scintilla for both its editing and interactive windows. +

+

+ Editing Components +

+

+ UniCodeEditor + is a Unicode aware syntax editor control for Delphi and C++ Builder. +

+

+ GtkSourceView + is a text widget that extends the standard GTK+ 2.x text widget and improves it + by implementing syntax highlighting and other features typical of a source editor. +

+

+ AEditor + is a free source code editing component implemented in Ruby. +

+

+ SyntaxEditor + is a commercial native .Net source code editing component. +

+

+ jEdit is a good Open Source syntax colouring + editor written in and for Java. +

+

+ GTK+, the GIMP Toolkit, contains a rich text editing + widget.
+ Gedit is an editor for GTK+/GNOME.
+ +

+

+ CodeGuru has source code for several Win32 MFC based + editors. +

+ SynEdit is a Win32 edit control written + in Delphi. +

+ SourceView is a commercial editing + component for Win32. +

+

+ CodeMax is another commercial component for Win32. +

+

+ Documents +

+

+ The Craft of Text Editing + describes how EMACS works, Craig A. Finseth +

+

+ Data Structures in a Bit-Mapped Text + Editor, Wilfred J. Hanson, Byte January 1987 +

+

+ Text Editors: Algorithms and Architectures, Ray Valdés, Dr. Dobbs Journal + April 1993 +

+

+ Macintosh User Interface Guidelines and TextEdit chapters of Inside Macintosh +

+

+ Development Tools +

+

+ Scintilla and SciTE were developed using the + Mingw version of GCC. +

+

+ AStyle is a source code formatter for C++ and + Java code. SciTE has an Indent command defined for .cxx files that uses AStyle. +

+

+ WinMerge is an interactive diff / merge + for Windows. I prefer code submissions in the form of source files rather than diffs and then run + WinMerge over the files to work out how to merge. +

+

+ Python is my favourite programming language. Scintilla + was started after I tried to improve the editor built into PythonWin, but was frustrated by the limitations of + the Windows Richedit control which PythonWin used. +

+

+ regex is a public domain + implementation of regular expression pattern matching used in Scintilla. +

+

+ Inspirational coding soundscapes by David Bridie. +

+ + + diff --git a/doc/Scintilla/ScintillaToDo.html b/doc/Scintilla/ScintillaToDo.html new file mode 100644 index 0000000..3fceb1a --- /dev/null +++ b/doc/Scintilla/ScintillaToDo.html @@ -0,0 +1,127 @@ + + + + + + + + + Scintilla and SciTE To Do + + + + + + + + +
+ Scintilla icon + + Scintilla + and SciTE +
+

+ Bugs and To Do List +

+

+ Feedback +

+

+ Issues can be reported on the Bug Tracker + and features requested on the Feature Request Tracker. +

+

+ Scintilla Bugs +

+

+ Automatic scrolling when text dragged near edge of window. +

+

+ Scintilla To Do +

+

+ Folding for languages that don't have it yet and good folding for languages + that inherited poor folding from another languages folding code. +

+

+ Simple pattern based styling. +

+

+ Different height lines based upon tallest text on the line rather than on the tallest style + possible. +

+

+ Composition of lexing for mixed languages (such as ASP+ over COBOL) by + combining lexers. +

+

+ Stream folding which could be used to fold up the contents of HTML elements. +

+

+ Printing of highlight lines and folding margin. +

+

+ Flow diagrams inside editor similar to + GRASP. +

+

+ More lexers for other languages. +

+

+ SciTE To Do +

+

+ Good regular expression support through a plugin. +

+

+ Allow file name based selection on all properties rather than just a chosen few. +

+

+ Opening from and saving to FTP servers. +

+

+ Setting to fold away comments upon opening. +

+

+ User defined fold ranges. +

+

+ Silent mode that does not display any message boxes. +

+

+ Features I am unlikely to do +

+

+ These are features I don't like or don't think are important enough to work on. + Implementations are welcome from others though. +

+

+ Mouse wheel panning (press the mouse wheel and then move the mouse) on + Windows. +

+

+ Adding options to the save dialog to save in a particular encoding or with a + chosen line ending. +

+

+ Directions +

+

+ The main point of this development is Scintilla, and this is where most effort will + go. SciTE will get new features, but only when they make my life easier - I am + not intending to make it grow up to be a huge full-function IDE like Visual + Cafe. The lines I've currently decided not to step over in SciTE are any sort of + project facility and any configuration dialogs. SciTE for Windows now has a + Director interface for communicating with a separate project manager + application. +

+

+ If you are interested in contributing code, do not feel any need to make it cross + platform. + Just code it for your platform and I'll either reimplement for the other platform or + ensure that there is no effect on the other platform. +

+ + diff --git a/doc/Scintilla/ScintillaUsage.html b/doc/Scintilla/ScintillaUsage.html new file mode 100644 index 0000000..e0ffb0b --- /dev/null +++ b/doc/Scintilla/ScintillaUsage.html @@ -0,0 +1,375 @@ + + + + + + + + + Scintilla Usage Notes + + + + + + + + + +
+ Scintilla icon + + Scintilla + Usage Notes +
+

+ Implementing Auto-Indent +

+

+ The key idea is to use the SCN_CHARADDED notification to add indentation after a newline. +

+

+ The lParam on the notification is a pointer to a SCNotification structure whose ch member + specifies the character added. If a newline was added, the previous line can be retrieved and + the same indentation can be added to the new line. +

+

+ Here is the relevant portion of code from SciTE: (SciTE.cxx SciTEWindow::CharAdded) +

+ if  (ch  ==  '\r'  ||  ch  ==  '\n')  {
+     
char  + linebuf[1000];
+     
int  + curLine  =  GetCurrentLineNumber();
+     
int  + lineLength  + =  SendEditor(SCI_LINELENGTH,  curLine);
+     
+ //Platform::DebugPrintf("[CR] %d len = %d\n", curLine, lineLength);
+     
if  (curLine  >  0  &&  + lineLength  + <=  2)  {
+     
int  + prevLineLength  + =  SendEditor(SCI_LINELENGTH,  curLine  -  1);
+     
if  (prevLineLength  <  sizeof(linebuf))  {
+         
WORD  buflen  =  sizeof(linebuf);
+         
memcpy(linebuf,  &buflen,  sizeof(buflen));
+         
+ SendEditor(EM_GETLINE,  curLine  -  1,
+                    
+ reinterpret_cast<LPARAM>(static_cast<char  *>(linebuf)));
+         
linebuf[prevLineLength]  =  '\0';
+         
for  (int  pos  =  0;  linebuf[pos];  pos++)  {
+             
if  (linebuf[pos]  !=  ' '  &&  + linebuf[pos]  !=  '\t')
+                 
+ linebuf[pos]  =  '\0';
+         
}
+         
+ SendEditor(EM_REPLACESEL,  0,  + reinterpret_cast<LPARAM>(static_cast<char  *>(linebuf)));
+     
}
+
}
+ +

+ Of course, fancier handling could be implemented. For example, if the previous line was the + start of a control construct, the next line could be automatically indented one tab further. + (Assuming that is your indenting style.) +

+

+ Implementing Syntax Styling +

+

+ Syntax styling is handled by the SCN_STYLENEEDED notification. Scintilla keeps track of the + end of the styled text - this is retrieved with SCI_GETENDSTYLED. In response to the + SCN_STYLENEEDED notification, you should apply styles to the text from ENDSTYLED to the + position specified by the notification. +

+

+ Here is the relevant portion of code from SciTE: (SciTE.cxx) +

+ void  + SciTEWindow::Notify(SCNotification  *notification)  {
+     
switch  + (notification->nmhdr.code)  {
+     
case  + SCN_STYLENEEDED:  {
+             
if  (notification->nmhdr.idFrom  ==  IDM_SRCWIN)  {
+                 
+ int  + endStyled  =  SendEditor(SCI_GETENDSTYLED);
+                 
+ int  + lineEndStyled  =  SendEditor(EM_LINEFROMCHAR,  + endStyled);
+                 
+ endStyled  + =  SendEditor(EM_LINEINDEX,  lineEndStyled);
+                 
+ Colourise(endStyled,  notification->position);
+ +

+ Colourize(start, end) retrieves the specified range of text and then calls ColourizeDoc in + keywords.cxx. It starts the process by calling: +

+     SendMessage(hwnd,  SCI_STARTSTYLING,  + startPos,  31);
+ +

+ and then for each token of the text, calling: +

+     SendMessage(hwnd,  SCI_SETSTYLING,  length,  style);
+ +

+ where style is a number from 0 to 31 whose appearance has been defined using the + SCI_STYLESET... messages. +

+

+ Implementing Calltips +

+

+ Again, the SCN_CHARADDED notification is used to catch when an opening parenthesis is added. + The preceding word can then be retrieved from the current line: +

+     char  linebuf[1000];
+
    int  current  =  SendEditor(SCI_GETCURLINE,  sizeof(linebuf),
+         
+ reinterpret_cast<LPARAM>(static_cast<char  *>(linebuf)));
+
    int  pos  =  SendEditor(SCI_GETCURRENTPOS);
+
+
    int  startword  =  current  -  1;
+
    while  + (startword  + >  0  &&  + isalpha(linebuf[startword  -  1]))
+         
+ startword--;
+
    linebuf[current  -  1]  =  '\0';
+
    char*  word  =  linebuf  +  startword;
+ +

+ Then if a calltip is available it can be displayed. The calltip appears immediately below + the position specified. The calltip can be multiple lines separated by newlines (\n). +

+     pos  =  SendMessage(hwnd,  SCI_GETCURRENTPOS,  0,  0);
+
    SendMessageText(hwnd,  SCI_CALLTIPSHOW,  pos  -  wordLen  -  1,  calltip);
+ +

+ The calltip can be removed when a closing parenthesis is entered: +

+     if  (SendMessage(hwnd,  SCI_CALLTIPACTIVE,  + 0,  0))
+         
+ SendMessage(hwnd,  + SCI_CALLTIPCANCEL,  0,  + 0);
+ +

+ Obviously, it is up the application to look after supplying the appropriate calltip text. +

+

+ SciTE goes one step further, counting the commas between arguments and highlighting the + corresponding part of the calltip. This code is in ContinueCallTip. +

+

+ Page contributed by Andrew McKinlay. +

+ + + diff --git a/doc/Scintilla/Steps.html b/doc/Scintilla/Steps.html new file mode 100644 index 0000000..ff88e88 --- /dev/null +++ b/doc/Scintilla/Steps.html @@ -0,0 +1,142 @@ + +How to use the Scintilla Edit Control in windows? +

How to use the Scintilla Edit Control in windows?

+

+ This should be a little step by step explanation how to use Scintilla in the windows environment. +

+

+

How to create Scintilla Edit Control?

+

+ First of all, load the Scintilla DLL with something like: +

+
+
+	hmod = LoadLibrary("SciLexer.DLL");
+		if (hmod==NULL)
+		{
+			MessageBox(hwndParent,
+			"The Scintilla DLL could not be loaded.",
+			"Error loading Scintilla",
+			MB_OK | MB_ICONERROR);
+		}
+		
+

+ If the DLL was loaded successfully, then the DLL has registered (yes, by itself) a new + window class. The new class called "Scintilla" is the new scintilla edit control. +

+

+ Now you can use this new control just like any other windows control. +

+
+
+	hwndScintilla = CreateWindowEx(0,
+		"Scintilla","", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_CLIPCHILDREN,
+		10,10,500,400,hwndParent,(HMENU)GuiID, hInstance,NULL);
+		
+

+ Note the new window class name: "Scintilla". By reaching this point you actually included + a Scintilla Edit Control to your windows program. +

+

+

How to control the Scintilla Edit Control?

+

+ You can control Scintilla by sending commands to the Edit Control. + There a 2 ways of doing this. A simple and fast way. +

+

The simple way to control Scintilla

+

+ The simple way is just like with any other windows control. You can send messages to the + Scintilla Edit Control and receive notifications from the control. (Note that the notifications + are sent to the parent window of the Scintilla Edit Control.) +

+

+ The Scintilla Edit Control knows a special message for each command. + To send commands to the Scintilla Edit Control you can use the SendMessage function. +

+
+
+	SendMessage(hwndScintilla,sci_command,wparam,lparam);
+			
+

+ like: +

+
+
+	SendMessage(hwndScintilla,SCI_CREATEDOCUMENT, 0, 0);
+			
+

+ Some of the commands will return a value and unused parameters should be set to NULL. +

+

+

The fast way to control Scintilla

+

+ The fast way of controlling the Scintilla Edit Control is to call message handling function by yourself. + You can retrieve a pointer to the message handling function of the Scintilla Edit Control and + call it directly to execute a command. This way is much more faster than the SendMessage() way. +

+

+ 1st you have to use the SCI_GETDIRECTFUNCTION and SCI_GETDIRECTPOINTER commands to + retrieve the pointer to the function and a pointer which must be the first parameter when calling the retrieved + function pointer. + You have to do this with the SendMessage way :) +

+

+ The whole thing has to look like this: +

+
+
+	int (*fn)(void*,int,int,int);
+	void * ptr;
+	int canundo;
+
+	fn = (int (__cdecl *)(void *,int,int,int))SendMessage(
+		hwndScintilla,SCI_GETDIRECTFUNCTION,0,0);
+	ptr = (void *)SendMessage(hwndScintilla,SCI_GETDIRECTPOINTER,0,0);
+
+	canundo = fn(ptr,SCI_CANUNDO,0,0);
+			
+

+ with "fn" as the function pointer to the message handling function of the Scintilla Control + and "ptr" as the pointer that must be used as 1st parameter. + The next parameters are the Scintilla Command with its two (optional) parameters. +

+ +

+

How will I receive notifications?

+

+ Whenever an event occurs where Scintilla wants to inform you about something, the Scintilla Edit Control + will send notification to the parent window. This is done by a WM_NOTITY message. + When receiving that message, you have to look in the xxx struct for the actual message. +

+

+ So in Scintillas parent window message handling function you have to include some code like this: +

+
+	NMHDR *lpnmhdr;
+
+	[...]
+
+	case WM_NOTIFY:
+		lpnmhdr = (LPNMHDR) lParam;
+
+		if(lpnmhdr->hwndFrom==hwndScintilla)
+		{
+			switch(lpnmhdr->code)
+			{
+				case SCN_CHARADDED:
+					/* Hey, Scintilla just told me that a new */
+					/* character was added to the Edit Control.*/
+					/* Now i do something cool with that char. */
+				break;
+			}
+		}
+	break;
+			
+

+

+ +

+ Page contributed by Holger Schmidt. +

+ + diff --git a/doc/Scintilla/annotations.png b/doc/Scintilla/annotations.png new file mode 100644 index 0000000000000000000000000000000000000000..9d9b247035815fcfbb4c4793b97c7ba882da127a GIT binary patch literal 33549 zcmaI7bzGEN_dZOBNGmBVEnP~NlF~7Bw}kZ2At2q-F?7z*2*{91Djh>ew+!74zww+$ z&v~Bj=Y9WznSJlQ*S*%Y*SgkPdm>boWpOacFp-duaNfvCsUsnw$|4~l$38+qd^4WA zABgya?5ZyN8mV%KVhi!%f%Pk;S4c=TaacE|Xo%0x%;nUTkdV9?k&xbhKtj4geD(e( z5)zOL2?=h3gd~)Pghb+$1yvJ4LJEp{BlQa4X|&tw^T|@vZ{N#%E_$>e^JcX3>09$> zGHh%~Vef$!S_pjA9Tf)Ilt3Hw9t)=u{RWoA|VhJnv+{nWy>Pfz}|&+g^L;C`0fz1TJX zronaqDfUCxwSC=fWBJ9EmxS+8RFN+I#vSFxzV~4qp2PJ5f1dcY)Kxi>IiHL}^dk1OGuYgb zehhTIXXo_yF8^6cF%pGvM*zlM*nHBeKiqV}Lh(nAUr!_!Ar%PpxcHWI-Jw(6W!s5) zPKHF4tww6!4Q&i&ZfK+CU-Fp<5enSyL@6)0EgT+~ zOi@*dU6zjzK~)=|x|NMt9y4#Ov#!UqL0UfcBD-0<3(m}%(|OQAl9pcKr#0N~g%7(3 z7H>BAa{}%zt9;j4hsCb#Nh^Kkw~cz^V@IjX+d6TD*#@F`|MkXcC}>Z|T36~bIht)1 zcAeqHuB6l782S6V%5wUeZk>I)=h42Ip)JY&$qQ zZ{1yC{dpK0a{j$>2TfQ9B_*06Mady0D&(h@*okqQ-)gdP^TyZqHu&5=NA_*pzSwcj z!s$jp+s@#*@l`RkvD>3n%l=`?;22M} z@ZH5~&UGIyxcgg52)_(bl zQ+%^yquK2T?YAae7hfp(MQ@R4Q0##9A+(~`&G#uPqPKm#vUd7aAA-1lBlrsZeyxso zxVii+9>6ruKPcU4uu;z(vtgEdwz}BtvN*dD;621@`F+3rc;b2}pc8M%uhqAC|6P?C zbv zl7EC>36<-z;W^&J`=fLfk!wq~nhUvCRIJDPJA+dT9&v8PH|mih#TBAvNH1F)Zuvr zoYTu-l?O6%4tAIA757sMUVrEv7Ft-l+6yVkm^yF2l{$N(aL^aFz)(8GVr~x9_Fs~e z&2jp!#&pvlVsv+uO6{{#V_%$nIG4h%UkQb?ob7-Aj+qIx6lrW}8Tbn1^xNuR^VjKd z-HF>x=bGt`iVHAQpQmwLbqq*7#tBZgreGi91q=Vo-^@7(C2zCYxf!h>X<05M;AlTZ z9y@dNHvnD2Q*->M^(|=fv*N_J8F=;=jlDWfryfm`W48f2G0Gnp-A%QZspCGZ)q!!G zqm^w3a^_S-k8VjDiho{pQHu)TQ8Q8PM>8hQJ-fAwJ+nW6Y@pS4-5@ zI_a{J6}{L<^%A(ivu+OsSs-u{XAnT6V6PgeMqw^U1R(&N&&pB-)QaGWo~XL-e^l{Z zAz*uZzKj=ek)rS5HJ-WPHmPgvw<)}6dS81vX;*pK;j`%TG73iNd+>#=u+e6`*!UJ^ z{1Tx$25I2-(6S>M{b4E0v_AvRAp)4FcbGr5PdWQuRXf~%ez!WEzJ5n;xS|xmUG+g(dDkspgO1kyj?{)&1y6@3Z zA~uK*G1DCXlt4R!Dy%FnH`#VR?znbluWRYm?tSIFGVVC{UCjH+G&7%RzQ;RcwvqZK z2P)gv1TcJgfASeCr)^6`M`Ldl(8yeeNgwc@2m?3cxxZJ^UEEUwLC23ic zvc&k-t=iGAFg#))OTj;^H6&WQCoWp=uoozKKebPF$NF$*+RnW?afdEtDdCu(>T*Rp zQ;Rp!wREpEHOKct!H5Y@2FR4-%QMSz*xY{IoNDMk0-|6gd%J0lrumg0sIPyCW>J~1) zYJ>EAsx87OE?sOM4t78KTaCklH${kLD{?9_uV=2B!g8(^jLP@+bM6EF)?&@E(IA*h z$%=4Ob)K8)=IjZl7f9qOjMBO52^(Rr8F0$bgR(&Aj4NW;Z_hQ=*k3TyrFALD!~ZBT z$D)dKxTXR>jM`ryYML9&`|C6xIi+6uEVbu+f3}tDLB%qR^;Q^=3%hOf{}9q;be`Ud z(*9I0;lcN855GVqi-pG2?)j%ZqVJBW7sWk2r?g3D=UrjQQ{t;~TB(vi78%cjnStoV zOWIkZ!|LZ+FO|rchwisaR1#+9SBv+#AUZnE;zQwA1wY?hmZ6Qen~rRxG7eK54?#S+ zJ}&=|9V#u&D53|DaI$Ek4N3mR6@PIwI@Kk9T+uxx$JT=oa%I!7Fx{g+bDnc;bIg$mpjRh`y~6y9pnIoj!+i3)Y!f^ja}Pn&Mmno=20kAXQkdwz*KlHu zP@-YWG^05%dU~y9@fArq|E3_!@PK%bA7S8_spE9{P-AUsw@-b~@xxDU9@Frjor{J# zqf^v$(8S%|#tEMZFVzNnp?HOM!>9E%_x;iDWBZ<$#S%dx)nyhgrcmaCj`u$&4zC}z zx8__@f*8EjXM3p?u_t5y?eeF@-6+tskuZ zKi7f-oCnj{YF?qqIDddQ`2Gw*!0On@Ghf8$DvNir%6OPhqT1(4UAk6-OKe4vxewj6 z1IFbDm;2`OYOHXq-&NM8$YyRZ?p3n!WwJH({li31tH6nLMrF32)|yCg1M2Xin{azF zxg-QNPVcky`wTyJ{Boa!+RYI>=SQo@P3Q(^;wREP!X;4arc;Lv zO((GMK`B8MK_-iqcvnAQWB&Y916N~a#>)^F3prB1X6_uuPemmDMjvpPF?AFy%pau{ z&UkZiFSdSFQgL6{rKMNTyf)HkbDh}@ShN&9B57DGSEcA*#;?aurMXnxA)iCK&3AJicM)-*dpOgOu)otnP4IE7In$-Aqxc;Oe_J90 zUxgK+$2xJV{tCE)ztyv|ER5=w%vI#PX*l_~+FqP3)5emY!YWS~0kJa#F`qAv4f#1) zp?{v)ewm3*<+;S0bE%l2-E!wwU%5A9?M3|t`UALoxgFakwd3-*8aQicACw$Yiz{&Q zGHfB&qxx@^2#+`xr7{3)q#4pe&djMb`ZLmMS`g1JTF-2VGM@fwRPkS_mz<((ax?|Pk zzbnXjaoJl%X>i!{#YctQ!0Y>}w*B2qvZL1um|q;YzIE@s&b)&yJ}s-=a=1y|p25K9 z+3`HKChG@kf7za9iP(9mcKYg6!0i;C;M(J}=UjZf--8hJLwbL$Vr%U+BFTupnQm`C zByV@_Kt>;FIXb10eYcQPQRFkZaZnJP-MwjXF7DPzBMZ72K!p+R-fa*0{XqDrck|yw z_VZG~f`h2TerIariZ*OfEH_*!7h}O)vMU-!L;fq#+WU1=hJ!lr^svLEVk6tU@^Bag zOD&=Z=bF-U>#oIOzp$3YKEq?1$Ul2rvBWvVuJAt@4vFlO_BQ# zo0P6!!yKXOHObs5Gyn4bvXk?d zB!V{&_NN2xZ*6p9r8fqsXK4;Um59dB7^Y!a|0_x6qQop0z9B*vzh7@Z%c5&tP2V_5cJvre{Dk0t3I+K{tNf~z7es#y z{T_v&3aQj#rP)c{U!p_#PXcRFi1{8a0sNh^Aas%T5G}MA>geaz85-yBLl|`+qwRuf z=VPgedfmx3K9#R!v87MLnmQ2C9;NMn#N{{N3VO;lZx>7U*L#LwT4+#SE2r*B-x}7^ zwy%d>R-X6IRqyJ5NNPP&V5JRloOVC2MjjsfVaYGhw71Y;+S!miNs~sj?S}1>2wSjX zAM4znEt~|y71=vAwa5MF*jo-FzmwVQ^=)<$SFKk@=~{!Mg4!HT(Thrqdb^Rx9@dJfFMCv~3%5Y$cRQ;o&)IsN2?%4Sj$RGcXkiYgf=3;Cyfll~(wgfC0ACHcI--4gXXPq$%ZyE-Fh) zAa`MvW+3aSu8|;5_>L(h+NCPlENT9pT~}8QMR_Iq?Px=k4zGpL5UcH-UFM~nO4vFO zAM%>C#RVhamAN*6W3#0k^iuHc>$bFp8bU0K;G&)78(Pz5i71cXoU?7UUC6mUp5v5-TbUK8*O(ZvVMJ zd|0AhCF3!Ni%6g!ujhETX5Dtu?SCxO##{fpj3eXXPPlB5=^O(-=ctqFp;`?0 z82WZcrX{mS0&TC@-n?LM^^38k{D{@0kg-9ZoFBYA&yspwYm0~gn~MF=>J@G%zBrd+ z;%znK=-!!DfDC&?@i$VM&bXT-(d>zn*Wq_5pRs*Mm*KQ);1mWLB}mm)Iktk>yTC6D}~~f zO{J{5x)}}tClm`4kh<6|_g4=2G!cbejS?g{==f%iJVDxVqPZ_k!)p1(NRcg#t2J_I z+4_B~=of5z3l28CCaIQ@bgkI$rxkHV11TyIyU@i2cZ|$1p!+G zcS<3wZTdlECO>;m^hU7UA5IdaY^mC+Cn-p=(u&%#JM-7ZBNK0oDKScAl4%3smxsz_ znmRr#S|qqssmc24oX)LMK7u9R%T!D5jJ2wyHkchv$l^rM!)K>S0q`w&#;3 z0Ec7agVsfK=Y>5XkNUINWYUQugDT~KnrZfBP9N~QT=~cPW3scA@{C=opWHafEa&NGWJ7{rOAG|XNfWtG=R3=i?M%l3xt<;D@J(n*H#!$X#T0Te{o`Foo5Jm@V5;RlTWk)>0vkr=zqTW6-xv$5iibILer`DLw_&S^k0#n zPc1hR{`C2L^JXBapu^|G4T{$IhyRKww}4#Rhbe~!;xSYqnvL_`=p7D(U-K3J#Fkug zGzp+>u^}iPY=|{kUyzBR4tbq zHV>>hA5rOXI&=P*T3+o#t*r{W3@=`0u%A9-$LRMk6!G{bA7=0fylvHyNBn1h6DiCW zc~D13f*WFWkYJq)#{G*hIDKnGuW_~6%wjid5L{?Yu#BzLL5dE$`}H5HIRAX)1AJv- z-6@U0MuYIVoa%>_y%e423yZBT36aAU25#TJe`nai<}_}Lw~P#EG%T!rzT=u5+ymy# zIhq1LCc42Imf9G41)Rqgm_YfX>S(#Z1Xar3&u`0PyAL>^{lTxP@>l6S&Ksh{uHF$t z36R^9qc#LuNx_)}j%d4=+^@fc7v^YoA9U<-+I3aD2Q{IjF9R4ITEsKbCQ}JM6EE`44 z(4H9fM#jxuVOrWVi}KO|;~d*vL9w%ySk~=LuFh|x6M!WMz?mb(TA49A^8j~NGPM6# zz{H*Kd9jdBiRrDaP!|eJNme|c=(hk?T7hQZOsygb;P{Wawv_nTYe#>%+pjH%M@+G`K8b`3O(heN{ z1#GY@t>*cj7ZUm(V5kBr)rdJJWN`mReai<4Xo{>*!EM;63(fD`>TX&vuD&r||tL6PKm-7aADfAv58eG3K7YZkk9G8zJO)cHmaKZL`Uul|`BNyr5_ z?;Czt-wRNu4F04vOX!4Q;<|_-=lbZ~Y%%y`qmDKdi-1l``$cTR(?90m0(jgPpn7L{ z?fJCu?(728L8yRNCJs}Teax95{(WEFBzrbXnGrj!{P#|c*Ixn!pN@SC&bFv3$$?)y z0F%6ff@jYs8$ zyWo*M-1z^5hfw(4Q8ONCp?TH%GALaS93{I&AEK!~&w=Gg)q|q|{J$@9PU3N&Mv1+O z5Nd>X{0*?|8RZO#g1P4`UxLRAPCvtt2rrudvkeu@3n39m9$e>@ zfQ!Qpsf1}P_c`}%O8z;|<5nLklhaCZZ+}F3rETmnj%cQe_1>9RP5ZcOF@FC_N{^5E z?0=A=c64*|{z|i9VYOE4V%1%|*wA|sHvqS&fTuL`cx;00+ z#TrP*>Ev~ty@PUYzbMdH^Q@KGb2A@$?`k(`Ju4D|;l+O-K0}0a#SMP5Is}w=eFq^} zjE=JE1Xp_c{!LO|BVzK(tE!D*KP{;f!Rm;UWnPwzuV0T2E4j3$Xka!|IereX%r=$dfPlBRDEm6>5Fx?1<#<)jU8omr4+p>0z01VkqO>rN=f|E%-V5AKgR?C^T6)sP-+LHl zbCEt|=uuJjB5)}xlo3i4@iC*r^o&28cJkq*yEM=x>nFFy6E@;985XSuu-v0xXDaO} z;w^Baoa2v8*j&C_z47Zq_2?AEXs{_)UIq!1Umu*s(Bjj@#Xx*^E);zMPgW1(`&t+_ z=N~8IP?UXpMY_IP@@7s^h4jY@<+hmF#{P&O-JtyZZfU{MzPfa{BCcko|9Mr~#y^Euyt)X8fKT(_axOQXLIM&VZyP0gQdKgA*fs zWF}IbnBEOiB6l27a05?v%}zJ@ry4J)N!Q5-Xs3+W zs&d2CTq%FXwl|-xr_{x zZg~wOTZw@3or*$Ucw*P8J+Poyh}W?a4Iz?bBX~=bEEsgQZ}RD{&^?lkpx3R#FY9qD zy@g=bpZOS#(X62(DLV(wz3^~TV$QjU{_I|O>8B?=1fI)^cZ|VuJn`!v>QF}9NZBy0 zQMS9j3hEN{LU(VlSM~3-N!N}WX+DucG!)2ovtI1Zn0%0#;Id&c0}A03o6KH+lzoGs z8UyhtxlqHhXCTa#%dCcX1Q9l=c4-AlKka^F zcUUT-rCnX=u$gZOdE267pBC<5^7w=Fvth`~XI!H#Q0WhtYmc(M-Y06&p(wml2hEF_ zUGb(RQ~)}o4mF2rz6(5aR~U%re64{X1#cyhRSi9J1eM+m#cZWTsb%VcuopyCRuVs_ zlhbEeFlwdNz56-<`4Lm;{yjPM#aGd48rZjsk9P#kniZ&xb?#&4*Q0Da5N&FZ{7{FM z8fA@An)CwsO>}&s^tjH$sM0-Rfc2E4Q*e@wx%3+jcFjtwg5pq}R3+fhV;A=~Siuyp zvbIK1UQVb+3=*O*TINFe+7{FvA`TL72~ue#h6^yB34Oz*L1SPpoXR?wwS>NzOOZxP z+?|YmqAy4YXZFz~klSAM7rPoSKukb=ZKp1caHifeYY!T`V#;EQXfV^SkR+X7Vq$+% z>kxZk%{Ct){}&kwLByYoXWHmqh!9Tk&0K|QC;Dlew6~VW06n2*0aHUviMcB4FaMp3 zia;slW4%O{$B=E4lLE}&v~L^{@ct4Jy#{In9T@qOkWfBH0&l+`$pEMkLZTLmpEBij zL_Z(-Lc#$4E0@&*GO1qjWtM<*LT95`l~Aiu6p?I{53004(Qtuy__IzI5sq$SL`8(TK2&94gk`fp*gPY@wR4DI*PW+@a+BAEU!XV zjPtDSTVO&9aBb~t2E&hBTOrm##st6B`7@!25K#qN2HJgL{is3djtODicM-_Uz3<&@ zctmTA)Ai;vO{e-?YvS#WhPa`p8m7>^J+!_}{6myDL zOHe#QC72gQ)lD_#;q=#*>$8^yLh5MCNP4L+7qDO>jY0U&2g;^0bl(MDVcS$W_}KP` zq%tsubAQw<#IS!Cc$D&rn6AF8^83ZK41p=0rS6d)yZYK$-;vkymv2&0210-)DPud{ z{349&2pn2xEytrk>t;q9+W~y0XmoJ@O{FXk0?Agt3J5cQC?5qS;DFIu?eZyuju=AmgR)=e_i$wU@!-BJ?~ zgclB=tiF@zAIr|8Euk><6T3^)iVi4}n zf(2pAUpQz2=}^wQ$~UyZQbgI z!`WVyI}jTX{6LTx3A#V_CxEz4N^__2_E)r6TG;Omh!U_BjuSpDOp01>y_|~_oPp|4 zrUNU|lm`v9`SW!QC**1aQf%;bwM$}btVCwi<8`Foz5zv)dl1X2^sqUv6xYD)=XP>m zG@id{t&MD106f#NY#08xg@@4vC-Xa|`*qaD%Mf)WHxoXLr(Dj87wb~?ATlwO#HH~stFr5C- z$JS0@Gh54O2Tmnv85({@PqC)oEo#(VsCk`1y}+gW?ty!W>bGw#p_%n@$H#l-;&PBW zaQKbx72@e?NET*x3CaHv_;sHFpwmiDJO9 zb1nW5R01W$dPslglD~#qL8MkV3ZO;YkG$ zG+v+ia0+_S<6@vgZ4mqeCr9aglYj8QM2hdicNM`$Yb<^G=dglmdgg~^`m2UTPQv?h zJRT)Crq6VwT4OW55ZD{|>G(HT17}oC!0~M$68HXGSG}aXvP!8j=w8nzLi^E(VhpHL z{|Oo7!HXjryonhk&~;_nmiul-w9b4sEQaljud&6i#Ir^XP5I2;Iu4J>RM5W^DdM$| zYc`XSKA|JO1Bt)KCWz0k&?4E>xy1Vm{#1OBf@Su;>*Ay;c0^XXQ1GKf_F$%Sdn|=V z;1^7^GpCJG^ySInZrv)qWM7j=0$;I^yi`uI5M#3m&o7f_8FfFxD`>Uz z06(G#sA20Jl_-3|l`1E~z3KX3VqR7zYxbOejlA7NoyBIl>Ke$aMH2cQ!9Sc3L0Pbi zD6obF>}uxof`*kTtDoJh`CB-Q`D_fS_toz5E;&JNPiq`Ms=fm7lLe|P1p$$OZR`oh zcD%a4i|>L;yZKp-$*Qt6{coPe!4B85sTGr!#xnhwKrSe{tV+Oq-&fxOlC&=AEe>oW>d zX60vfWCy^Kd<3)U67$na#+m5=OsljGYGQ^n_IuaOkw5RyJ6+3yslU1n^ zat$I*qK)^eDOAU|!sOwkRUE3>n`(!AGvJ5T2{v%Lza}UB#z`jJ&37;~wky5Qo>=Kk zz674HI>Q^X=wsr$m5Z-_FMKRTcy*(IP3fpz(LCAF0TU@5bkKTR1?h< zMovADRFP``a~FT^ROBRaAfT789BvMbwYe=4%6b0?e?9DwO}a^#lSMw>w7eTc#Jc4x z7WH7@5htt*o`2X!4`UwVc`^B!hA5BG<6|7#4+ZuOc@C7s8fdrh{wH$t#1cHNv6BB2=;~kG2J{7~DkU;c`-OYebDNM~^G($RXp~@V;GzX?bCy z0jyGG_OBWd1J`hdX+#Z@`nV8Wscmf;19ENisfgTCSVcRFT4?lLBj2k{>6_U!TMr+^8@oW{F1+#(bb}6csNv^ZU>!yH=YM2 z!C_S7JAS?gKM8_+vnfRG9D|v%S9%l0sYOn)fYm3AAG(aHR~z*AKQH%W?#~}1CAuQo z;>S$y+7K5J&cqK61kb2_x)rE$T9Zk;$Le(T%O|^UiYEAiCKAP9Wkb&!lG)`%8h!dWE47eu9 z6cSo3qcj6QSg$RZ1r9o4PHlaQv)~|G(laQ;deHjKg1;gxU`w>R7R533jfITLpoBiI z_N{vJPXB1AwuOq67p;ryOL==2cF+PB_trTC5(edK0Qc-`^Z$5EL-DIcLidaIlZvHi zzCa$YqI(*jSzTA1)rEmf9ScZV?`#Gk&3x|yQ2hGxMU5X;XP(41 zB9?wPfz(Zumms@$VtcG(UI#!bG8llJZ&l+P(VA9pZ1R?ZtQ1Yh4l&XqTb1+r-r^Ic zQ6Zc=$XQQUS^}EK$s>9@ZC8DKE`~i1??J<6*8W5znKJX4T_e#s3k3yUZ1pschPMcj z@nAOyDIjX@iiTltf43+Cml4nd_Sjew(P;7CEXiQ}j+a*Qh>%Qb4@@Defu=)oNB@-X zI}vVWJ9_*(%j=In6mPfAq!l3xVPI);Fe3F+DTwIvvVAv^Xrv|CEC}1`sU6 z{JGWR0Y6_z$cz0ZlhKo;yU+maoyxB|AhHhgW~|!*BZ;>H2$THUJ#Yb$Z@4nb1a}zF zYsvCXpWF~(j2wn_;}TWb5koXoK6LT=d%FgHdHg#s1R)%OYbghc`I8Y|T{*>}e%)kN zyFkM_9gzQ+aCK!J>m#Dy_mzG|Au102I)`540y$eVy2AYZH5{iLQLA%OIOaezgP3D( zNk7u*>fiTxItCC+k8`c7r}uj=Q(>Mq1^c>@ch~d^5!9~hOuf)ziom@#vEGxH3I1L0 ze-A$qo0{PH3~!p~x)O9uHWZwAIfohr1b#03{m4K$Lgk1GgdrP6@6fwhDO!)imX{1x z+(rn!oplWDBu9t-EY zx0?GSvw%6J$YV9HqMIKN|MyZrJbT@j#69pnf=(xG0)xrlmbOwyV20QnF;BPLfw7m1 z4Chy^=r3D1Apkp%s;?CjQX>>?^;_SnCX)#GSt4pb5sx96rwRnSziF9jDFUxPCjH4r0|oscfQ-nQuJ9VS`si5of=x_Z)x(ux4fzbA%s~uD7YFQ~oVPKHmagq1O7Xu>5Y@OfgTo2>J9RmP=pwXP5-nOivw>esxDb7&_+j3M! z$`STWRcW(4JDZX?e1TN^($Fxo#ZP!YYjqLTLx!V}WAJI}1nktk3`xi=jeEpWCFb4^ zyfZuP*&pfXs5;NF`2>HtpmR(Gn?R)~T+Atd1=*s>O@|n=4d+<`l%VJNQ-xX8WcAa1 z42>Jxa~?7xU-wMBX>-w^@+V>r!75V*=DrfDLhtG=l)boSq)g(a0=Hj91kJsl=pgS2 zaEot**wwLvXPf#yJN3`4=%N2`)9Wq-N|CIb9B065OR_jsuA<8r7rm642kzySlMBXR z=?}r?6IOi#e*Tc|)<;E%G!>>84HO8OQ6;Pg zLpLm5iIE->bZU>{!kD#a7qM|CFO4Z;gr8fBOq|iOcd@HZ3$_&36DtCOA|I={3m2!r zYl+^{EEjgc)r~jU<+!Atm=_3L`_Z;BZ2zM;Ow&F?bvw(I#<5VlPfX@S{QVrNbhkS?7NZQfV&l&m zr8Xv4`N}I9Et0Q2yLiWd*f0)gP*>!mMd_l-TKLDA&pHj-pLl!q0%jt)6-jL9x7FoH zF5x5ImIi*d(O&bry?SQ;WzJP_7VUm+D&D#$~Dnm@xGaO(piS77?D&? z86aH=@8`3WDd(6xPv)(z*Ukx$hO}X$eBD)@|KQQ}s2$S11ZjRe1|YddDZ4VG<0Y&Q zE`-C6IntjfBq45h$Rz{tl)nmOmCu`Y{1EcuJ&k2-8Stl@~sr(x&HP;8p0t zU`(xRd&C2Igv3x+GXYK#P2iC81*VCOu`}M|<$^zDeq?vCJB6gkNi{41@Tf|fdF82M z;V;1P^BC}td3lHL;o!>Jllt`VGiUN6j#)yOwB8qVKXzERK(qJbjZw)FCc#%4UPa1Q zve8G)KMch4Q@deAMrL9`OvUE|r%6{IQ$2}bGkSSbT0%2p&8(3@VK1~~r<^jT%F)@+68a^EC+5CYS>DOElO|?& z4r@vRyYk=abmzSL76ntgBQS>9-aR951GhVmX$ODKz;5+2OVk||g+A&H^t#4edGe?+ zayqVpLcP4Z>>%n}gN#;2uF$RDfLH^;R~{>p9$m;lcv%8mYZWc2?y&R2kVj?hd@}$1 zDtIXJBczRz{L2UaWUI4$ErZO%CPPzQLXCm0QaxGIV$0L+?B*<1rT9(_kg&P*%Brq* zVwK^emv|Je91bIE} zW(7XF-p>1i8i(uuIgT3d&h22tJh(LukIK*NU^+3l_x{~Mm&T3f(PnUoe;%$(U?~6p zw4Y(+{~zsVmaiEc1ib}rV?mhmnO}7bV|>B~Ixac1!$V6 zVrROMW3);HB`%K!AWX>&<+KE*1y&OtuOi{}?e7|WgdQyJMk|M=xN88Tx>&@vls<3M zFixl&67^tRL*yND;Pw$#K(d^tF%PKnwRQc=W7GCb4a7@_eoQUNJ6{!%!jzO{v56r4 z5?+_=YR)wDoOxXypL4|M5Q^E9EdXs5|0pZLj<9V{@76A`WIraa2QnkNSl&|B%3lx- zfXOkeSd*R#&e`9vUb1ozAcN`6%_Z`A_=}`_|nGv6$o5A&lo@J5Yh*cYbbiWI)ZfG zKU-?|#@n5+g~^fzPj%@5T52}kB?gFb2=ue3*>!tK30;s(O?uw}cvkACu@ zB?vWIOi^Vgf)W(iYB}_s^DHyCPq24}q^Holn*&dzt2l>d_QJ2E&12djtMp5TkC?#< zet`gAqH)lDS$|4a72LzRJXR-P4@}-lSX&arIoCIpp{UVJO9Wur6WYA7={mO7FPJqf z@Zd}6M%z;O8h4YaUk>TNAA`0JiLk=La`F2Ol4otbfKF--AskoXr_C8(AB-82K zr_11np}}-ybtdr6r!+w0hX5RF^`Tp3msc-+OQi5U3->@f1Hn=e%CQccGT{ru5zs2t z)>E2kcRg~d>eRTgF@2(`T#J|REh-(C{zHqv$`>;LYq`;Ru_^_K$8-W#pPQUh(SWC{ zoJ3Wd@vF{#+wogXlGl-N^~Gh=tDonJx6jIU&R0aMCFKALK)O^~YWRfqv(m~Bg;z;@ ze>Lg~Ta92$Uu+*Hr)f~$G3q0qzBFi0w5`q5edo6U=y}T^XJ}baQIA*Ts%>jE|EAhq zu|dgARX z%WclT2h1b)-;N<_^V6KmMr%{9>GgRxMmn=?Px5b9F|;-eEO+@oqcaE{Z@M9)3FWtV zF!~V!osgAdrFH|zgW=xtK=T+FL%Wp(aDB0(@Apmp++PKL(IV)cIZ%)e7m!+jKlb+} zY{bv%5b52o&DF|>7Q3U)f05+CG!%1Z-cmxue?tg9dzu7~Gz0F;UaS4x`(q)JC~xH* zj*QIh`26>D484ho*nC`;&=L6#Khp%3->0 zlAEb}Th){95Pb78km(lbcCvb3q!bD6TW-^UvW`N!*aVUAT-&}G$>CwoHt|0)}QFH528{aD1o?QTC9vnom9#k zvTC6C-@oOC_3R}IH$JG;^i48VOIyn>Qk35kh1FL?7r^AOQeWa2OIu;Ygjp6KYvCmr zP6zAEPk1@Kc!YU@;Kjex84cU=ROHCpfdYvAO&Dd9R#{k*0y6|1AJg zCo%N6vOH=1Znek+&J9yHE0qk&4iS1?ID zwzeo%<-S;GoA}XEddp0z8PH69&A?U`0y295E_A{6BqZ7*6mFSUpAm@fj7?&e^<0I# z{~?K0Mul{V`sO7Xfd7<=66aSt7y%Ny8X@?%a5{pLmn#SS4?T2fgT#!8VvMpgDv z+=v27xLkTR-Ae$8xbZq6#;OH9gj3v(tY5&9IL-VERXw};x7kJ3$nUnyZ-|xlpEX#U z=EIE8e>7r%UBk5+IU(`OIDJ0__}Q$4MQv#Egs!)xvatzsQO9NUcth=Uj0`p@B5Wc3 zYGsx2;J^pqOmD~7hp&+lJ)K_&&?=9WA{kSarJzxAWc+^QfMRMGOHSxI-0UGk)RDA0 zOk2~zRh_r;u`n|Ch7CNnYv9)XR1+gWuc`S=|MQ` z%dTW#*{?E{2H1{Oiz!{ox4wB?)-6z1G;X~^)$kb&u?$8KEA!X>;9!9fkPHfMO3auaMx;cfpGnG7AD#k!qmX_>}yR zA{`JquqMQ9s61wy^=Cfg-UrLGi5GGEDQ2vZ2E--|TlL34tc{~m<}nkGEh~ElX&p+PylB z0^fT7^ZkRwy>~A7otn5#vajx2FJq)qc++ZSy@@8K4FuyQfKHdHCX9rLOL8R^i1W+A zmm_bOAg*n0hVSMPoIT<;bm>f;m>5*RwlG`FasvS|~DnRfeaS;`|>z)GPcH70yxH}G`(rCa`5 z{w$+!ndr>B6aIv$h{x!ZvI@sVI6EreN>_*PF6gn)v$&`$o2Om&5R9Qog}0*KBX1m$a}toYEl- zMN%T1WNYMV2X>;8_L)$zrbBtFP7Wm4NPV;Pj)mASZCR0_z3_&YC>afTPE&+UXQiHl zH{l!`YN{%(bYhT?02_IuB~5Oj_v_k+5U4?u_*3>`)P9}8t@3*=X%bX?Z<**DM#uC1 z{Z!z}@iWeNRAh54Aor;73e4eL4+J&8iiAWu=&u86EEw6wY|C@;_8UXc)MmwK^>NLfI zy^<0eM(q~(8mhSh?&Q&UQ&2WcoK!tFagDBccDT{{}{xLZ9o)}Zg&gafUiXuq9Qao@N6W4Z-gfVYSGQYaT zjLrMl$`s(|3a>#V<7@#(QvgTj9kVEHh(yxJ0ZQ{aWm1Je$t33-Pc&amHPuM&2#0x5 zSbuthvy$}Uw=QUQhal)TBZlH-6p>1T>>H25m5r&^l3Rr-wwA!zu5 zO}381H)8REYrucA(y=rA`Cp4`V)n$h@C&tRe4NInDaOFp+?5qJx& zbR&ohl}+O6!KMRSn~T#AC%($(&~v_&Iwz{u_%I^=E}P^ws>{P7gli)yidSR8=TF zD(p^7O)tgy-Deg?4xgEPOQ{qC#v1l-to`}X4rE_&tex!(m zqR<=WE!N5jvXC80jEkiY5Dj*n)=bjWqUhc=&`+RWwl0e7%zxgeh9C?p&*8<{bt|hP zu8e@C=zkn9pgbLG94Y&lW?5ij5Jp0s{7nSRz6=}hpVj;W1bt_+J;bJ8!m6egVaS4$ z)+!%$8gTAGxA5CciLk;8oh~U+@F)u-CO}#%HLX-y0rF5Ot2}86O7pvVo~_WcvaRof z0p|O*B{lITHLoT=x0vF4e;@bmqvK~D_x?Ij(pgMeJPJ7c;VH+B&zJJug4>uvjB%-& zjKsX2KZ~Ob{DMLY%>^tCz{)Luix>x#gWN!-T3MtA)s7|YTc=7|9)@qG#Ydk5W3irH z=Tb^f^3<7@7oRr1{UT;pHp+m*j@JLoZTK5-kV#$^ENPzS)cu&0ak7`Erno{#Gbu8# zf+3VY>KkTtb#kIwsT!@Vw-Wx>FGLv#?hQQX;@}($Fv|>=om~fk zx-_^L7N^19=DEU?IISmPxsRvLd9SLXqTQc_76|VO-rB@Aw3^hIat@evg!Nv_xJ|>c^sQ=_G_1e0kf*2o_0o(_S~9AV)c9@=?ACFu`0$>uMpjstaux( zc5(vWrea!~$=4_D;HIy=n~i;@fGW>6WSPqTe*0^LjDh<+XSkv>W$QRrt)$)dH@CaW z-*ov1&Ve+5#WmiBi2up0)}IT7MS!8ytTFL5MfN<@gI^N%y)X`3(W@1f$;zp)gBXQh zn>ISJ1sk!L2a1CCnpNT-AbSGG%x+DniqIXqrFos$!+k3@)Wgf>0^U6bnC{GsA4lv)WVb!b{#i!J`=cN@g3fXdBFO*bO$)xD%sNp}%m{?L9QiM zMDvqnQ1hmeac>;6$c?`Cu|P*x@du#k4``C1Dp?l4XOCHmZQyb`5hlic?4~0<{WN7; zMWy`X;-8Yr&n^x{Ot5y{Y~8pVe7i?6z{u>EB;}A`$HPB6pV5qc__a_A@!jywM&!(F zc9(*5RSDa&Cz=9-#fnQ~qHJTXh3}*_RP_b!fi{o7H1g#viWNgw3FSJKA3}~OGuuH>{R!9WfNRzsvrjO9_zA~GOA>f?!oMo z?V7$-ci&}|st)7uFK1L)Wa~H1Hz<`1`%J7O#4Ny*Vi_a2R9$MZjef1`5GwJ;uknneqCAro1~kID&| z#5jC{j4N{)W&1MXVi@4hglU z^l5r*c?OqdVcWqKJF(qkoCk-AJy_2kIu=|qlv&m!;XO%|FCL8;&c_>ot?E{NTM9}D zi7|KMH*J;xzaQ1;?JH6`May`|l@^{$tuGY$1@EI-=n_>((neHVa?Ek7tVPA%##TI~ z8Bkn#ACM)78(DgJD@$(1V5h<%YK7M5SU)OfX)MnCryGoi)ph@u#gzy}oEm^za}71t zzK5)l~dLb2&RZI2}+n$%URZ0&Kx9UzmcIM;Jm zw1UBcybL|0CJa2&)`{rz&X+ObU{Z$es0r!AHjO$zc!a+SodnkMm4;b51TSoU^{*4g zicK`^lE4Pm`wHAsg^pT#Q=AR}y;9jj)n66suWt;J*d+;8m8`Z~Rb$r!FK~E*!U&W% zX5Hx5f2}6~E-6c5On|0U1FqKnoMym>hq6TEZ=V;TLVegicd5hc%|*M$f%2Au$#w2Y=_SevMGf^t958pQv}{mJ#8CQ)SJrFz z#ZH(JK8~gAtzuGAF`F5`% zPC(TiOS>vXXvA6L(6wwh`vHT|nu?jyp)#V1zPvAXkBI*@P&0Dl2uYSH@$@gq)5|yG zUcK7?>bO`T~n&R(+mF{~)Oh;y<~r^2~}e#gGDHJ7E@ z^-NLCQ$^oTpOqmHkrAlnxOt>(+34x)XZo~0pTV+mtR%z!vaB*Ra#_} zn>FY8=`3jqO-V^@CT2$WQG5;>Hb|?;uJed>q1EETzEeV8Q$FoQ>?VXBWhL(yapTPk ze9U&(aYX)D;_5Tyt1fK zC|I?f?66@KX*6XWV}91$<||@6B5Iw_gv4;WjJX#@+R|^-X0rP;i%K_^>Ja6Pan3KK z!B2&M`v3cz-MApx*!x|1%4&`ERfFOxso=ZIDeP2y`I9yui8c}rV?99JEGN6#Uwo%q z7FufuWtDgx_F_5R>C%WiRYZj>G_}rj;qC)A3GWqtR4_g*DhY+retuV0L_XeEWon;R zpHdrNMs?H~SA0@1mk_4@{gBoNkw{`0bwlA>RQxl$AQC#ESG$F(v}%bwM>^9Bozu`sCY*t|FZiC>^0s+MW!(GEo?`5QCoAWJMEi$By<#3Drm`P9 z`t#VXpr!GUVi<)L9qCmUMQUce+Pga;L%`hrgnX_pKOcrHE6}W!ba(ZFhIaIoq-;p& zUK~qVI*krysD6<}r*90U8Sh?xJ!KJ-{PT7R1=I4eRy0VLf)Y%!&1XET!wL%Qd9oLdcL%P#no;b)6byt=($-1nh6oFy8UB zyBmi^{tgn4Oj231$nG8tLgq5DOI~d6Wy+_G=$YDTd~w&yYdyWXCV(ZfDMs^51CWXn zkOipl&Vo*dRrAN4kRqI>6?)MXvLriHeB2ZNf9n?@TB85i=nzHyk;)}|tk*kwvh_C} zKtTedxpSi6$j5n~>W9T^-GCci<4)@2AxU9!R%B@TzI9`0mkqF4+&C>Apr)zvMwCu7 zF>Lg6gm%*`5I#HE7Aq7DJ9_KQvaV>0sX5F(csi>B$B}~_xlowgaz^d6m{OTN$XnBM zeBkIms_;g)FUp$QiF$HAAwK-9=hz$NjF0+mgR`{yyLa*?)m3x&dgJ+&b@>z)js4Tv zBFx1sib0xDwa!;rN<2fLfuj?ed#nRYy5@F3^vsk%)&5y%8J>bl2FdCSl+W3KNn_1y zqQ`V2kCAsSOgouH_tjwR8WgI1So#UpGr`}xbN9m>Br-%!mGT2IE{7uMZHv4~H>u!% zG*caLxWMgv+e_q)Xzn-kl!jRMBNFcPLy>Oq8y$PAzOb5-D5zcyQjA8bC*wQTA1<4l z>r@geEj{nM9q~U$BFmfa+awrR6gQ$d2}s4#>DbXm_cDA-@HmvWS=o30?&!d&HEYmH zK4X*APa4%LgIpD-{H z*I3*lHf?@LI)SO`)8DJzTpycvbYHJF`XKQCLoCf$Kb>VL)@)O(1t6Mekl@nneMLt8 zkG88f2AhDruD}k_$f)Q*K~Y6pBnBYcDYr;0US@Auh*t0hF;~5PbU>4#ad-ZyRGGcG zpdf(|{~wq-9wF}}reWCz{%_t_mz&RC`U@@JYA@t@smwe=zPMrE_FQ{i@a$yanbNxytmEpOgz$MZ_{}r^gS>cfx zanrNUeZKKC=p|`7%2B}|BmaPG5UB4fhbq=Ktx1TO$=vrPb`2%fsCYN`)>uY$eG`d_ zj}J=Hi0(%uiuoJ=GTHdL;i#e|QzLk+5`x$`y5Wf8$YGv&G*0j5Rv->*%T*ptaMH44 zXPJ34JAnLQMw|=@Cz<0f$H9{^((_x9=a44(K%oXxS&&6uC7bd$j;J3BdGS#VkNSIs zFw~{SkHmS;<4j>ThprwcDpUEC=Mq|{F$KP)IZwX7P`YMOKMhTX9~6wgQySbd(MDni z>C^L@8sw&-V|Zp(Z?^77D}Oj8z!He&U~tRy=%;1Y3C+~y;L59ynG34I91mHCW47<( zCj^Dy3vqI)40t@QS|diFH%G5Bvhp9O3qzL|1X6+Sz#?zAfaK;Q4Y(!cWBXiJUq$ zLvsPdbc^`X-sAiwC`WaLYBHsgCa>WywQ~3B-q^>yN?U64EThuJERo=aDyPnoZbi||JN>MoP~=!py{Ug6yfJ!7N( zqZ%(_Bm+2#NA2v<`J0^%AL=CZ)sd zcw9xn>f2f4G&CweiQ%p38aevoaTpl_(mMJj`+EnfyN@>_m}qmcBaH_`&swbUWE`mt zLLBr$bj(Y%6awLM9#)CcCKBs`k+RrSqolmtN&DgJK|$-NCD`eM=Z2>fs7tGWm$II& z-vV~sF~eeh7Jo#T0DwkQy>u4!-Xw=fer_7VSI?8829#1cn<%?T` zH7AR&%<0wkLd2z$zTu;ry@B*f-9xF|z1l=|v-N^N!nSF3=A$lZuE1XfcpOq zE%&)8u0a!q*fK7T1b7FWRV3oHSG=W{MN=z6bR9%Zhz0A`$*~Uh$qBRE{Paj)WdX!z z$$|QpPy#@p6;;kC<35xlx>!>1MWHHMN!^g6vfYAT2%$>iG3(r5?u)~U%kvmykvab#I@8GOvA^T7tfEM5DRuCJA8 zO@z$o@(oHUT}w>s3!)t`bhI&>Niv$Oh#Ds@^_NRRjc?{)rW#m6WV-;~@Y`lGWK)Xe zSCb?ti5;qzz{ay~?bSRA33tcz@L5o6$b(?K)CPxRJT4wW#TJjX1R`AV9wNpj zU@qJV4+$ay5PSZThF(YZa)z&1t@q^y1mC2=)Y9mMDCf>ww{*P>#B5jP%OA*$)g#(o z$6u?2UWdTf)Os=$!vrbVMEqrchau@Tr+H&I4nqVxik;F(7yP~lQ(>3ev9A`ACNRss-UtJ@*7KPk1@%BLD>2AFRQ(}CapkLNmF@H&#>BohJZy@wbJ zKdU|O)^hUmS;EG6aVjXIq!Oxky^Bx%q>%9Ez26@dYQFu45K?$b z)|f8NQ#zF?a>>xcsYOV8fZtkEgGZBY;M^trHynyDg_UHrzxr)!12qn2rq&Cwzu?fq z_!bT)N;7tAfJoXoYTO*?qn`?4S@n^-7 zCcZnUbr^({#bjgzkQWO=(}KCx-CoiQs=O++-yM`bBC@)=0DRmk?#}=kc%vs%A)^2UDV> z$sh#fk)px+fTPuk5gg&0*W1@@@ zUm31l*PKaDHI>a5ZM`w^9{$x3X3w{s>7IMVI1|?6PqQwjVU}Ku*?JU<8>f}#pCstT z5{jrys|Gv_I+Hfw>;W7%R@cJ?s*(Ui!Qc5BTFt)n=#wWn|J!lb*&k=`8zX91^;vdEUY3CfkR&^V3lHT-rAQ|)8|2x7p z{zr8zYJ%VJ=#2I0;@|L?G;L$OnXf}UatCc5&f*kYc*-Jq+Vj1$(-|3tqO`8NXP_Gs zqr~r0zEQ0=&Sg4i3h8yWiz1<(E3_(+m*x&EXMEoex9cpKAn?JzV%>hb6TI~@U#;aX z+k;7zU2KztetdB}2-Ho0OwJ!M?sruNkk@}G;+^_2g8uIR28>~M2XcbOvT~bo1`?x( zE$K$GpuoWogRI&x_}$o1W{3!pj`qgIu4ZjH;IPI&9<=}X>Yb#ymW{Z2G4Z=TxG{v| zW7TJEea?Fc>KV2&AZ&|JYuCF4q_8J?f`By{iDq^ljYuzH(tBvkW(?6)#NurS)q;u4wec6YWy#pT}kjbMi%7{-i&`M(K zieOCe@L}80<&~77;@E>jyGts8FH5+ND}VBaZ5GCbmm!}KI#M;1Z{pgcC&%g@E@J%u z0}!Vpr6p)p3@2{2&5d^+=k8hhX2;~RKP8l}e_KA_bxb^y3GV~4q{MJ>iR-DZJLoC1 zL|7D*{P+w_xk0b^@f8(Rg{|623SKtXl)C#0ov;KJ;k)_eBYDf=AJVGR9?#9{4Nl{H z4`wb4(T^VeT&t;k=pIx`tTtbz`h>G+uH%!wg zTS&Qs0j6n>q%A=exqZ^lWr=ey#;s=OUX)W??s=dq203q3514s*nZV z`2$xV3o?V(#X&Q6>-Q`$^uX0>{6|O%oGOTuNlz2`u*V|O$k|V_RLQgAgxFsUbGe%@ z%~Eri{!BEx53Bph_iig9M%2nG@E$(Odw^VE z0Q`;L9y?#epZL}-Na%y#3-r0Aag)9AiB5U|-ox4(ev(3v7IA4H`!6;%5P+gKeRerG zG-D>Wo>QU;7>EOH*4t;yL#uO}=JoWxP}*hydH98v=<3%wEM8C3hDyY%TwGCiwJ`&! zE4jn5qDD80>G46+CNI$^vqXOTw|2eor-UPw`*uB&tnTxgs=Oz!;m)AcWDXnp6i}ZY zD88{Y6Cax#{NnL{Mqc-{)P%KuJ-?MxwN&86d~sfsFy8bZ~w zM56wZ^zCC=Z`rtaka70dlcQMv_r1dv!2?ry$;c8PhV6Y5SgoOj=8JY)-lI*M)1$S{r94>1*9qWrKt5%Bgpy_o zq0@+0pXSpDu?v{2p<~$OR2dT51dEQ**kr#9u=E{~b=TKdU7_2%x zP!;o7MW?amX(>nL@;xOGo%29>>?inK`PDMMzp-_2>W7Ewd|<0&uI#!J=UN`za(4X` zRCh^2n$Va1JFfmLQXT0gMkK0g+zAsplsfTGWu|Y0+3hnGpj!Wc6t!l9a#hj_dS74M zVP{4&>(ed`4xQc{zUQ3A4~(zktRKHoY^k4UlfBMt)-<(EYOdwWs~Xa5N%aC$6)a!iZQPug92S4 zA9o2}n{fDjN354EaR<(FdV3wUsR+~U)w#j!(<|Ep= z@gN&#-A_6o>3u)ZYMz0Bl*XBe9k^;&3K%>R=en+dfv29@pgUAsy2uhxA^^d_uMXZR zCuI5=RF+snJeszVTl(ql#&@XNdhG;XofL~@mcG)ao9I+$o`mXx@eUj=*ItgQN5*?W zhz^>LoCg$tR^M;SsT=;eJ#9g=sXC9Cvtyxr7D+zodpt8Ls`=~j2|yvF$yDiVh^x4n|T!Lm6sHNBn2?m#(9@5degjJcvA@+3_@MaJcn zRKY4wD()98l&5MTxz>*uK3Y;U?dTO^&N9#LMmf=GJbHN0O!9taejm;_cr08|&#`b7Aa;UvgT9xZN<%PToxK zpZm%_S(~V}*ddereia6g6=DLk!M~KRJ{kmySysP4fs}odf%=tb`j>_SO4Uw$B7}jz z-4v_songcS1gs)2Z?y_gQ0+scUxoJjAnF~Qt=pRA3L4Gng;%1Af1OqQa|6KZv_py1 ze0w+$V9y2pvKRn^>%9RhuKC{V2Pga06Tvu(GsAYpO+Sp`r5fljvcB)8T;5pxrPN$W zktq{Lf>!2jBTs+2KZMq~livk3?3~a?*6oBxwXV25Iy~!J)_HF^PnGB}$(8Y;AYIHe zeNcO0RC43G0bucnxZ;~>+A5=UxWgVpmF%E>EZNXFDNC_qTUg?T3_9UrXH0{8PW)J9 zBX2O^QZSW%^Kd?WSv>R|)41QF*EQF!mS0F}X*+(YKmzxxK!j<_VUEG6eQk#qsRek9 zIvFAn^mK#C)7g@eiPZ1c>=_;Ge!9GdKYfSKhHbd<0ejl<4V=^z}qhKHsMY0Z!LZ50K1^ zMeOssH_=u31td`x=ixJUldRZ3JJ{#YK4eVj_dnTtevBJu^eRWZnajbsnNxf<>WcLwPG5cKb#KTFv1wu{iR9*XuRalOInb-){HVmcd_(3d zSy>+6IWo?DF?itaX?;>4#R_x8+k-Zv0lc;&{CyOY06k1brKj7C*e6uRO)M%Ik2-lu z+Fwm_Nbz+H=GcSH4NEU*9%$yjmFvEvU;Rt~e*d-hu$HNv>0?bF{~ug6o`J_mqbgIq zZ!&N~VZ7H|{i?FyeHCL5#)KIyK2_7#8c&pPi_a34?==!34I}sNIO%D=29wd^e>eie z@?)TP>GZ)FS5_stJ#+LBxQ*0kL>d*S9+Jw;R#ZWF*kX?ii-jKG%Z2h#YQL zGmux&Z%GG^JDV6Iwllp@U(aOiAY2Z=0)y*7($in~C3*c@SJ3*e&Iv-D`>|%V)VBm4 znCE}k8u3^+sI`&zK`x|=)qL}i$F|bxeH~SC3)ISUFQK`DZsv~acsXmyc%EH{H7v5G8lMNIsWfU+*+CcO%?aM}Iv9hTZ(`}2LQH$*nqa%@|zg$OX)v#B& zRhMytHeXPz?DSvTyVa{o6qcqts5!(yxmzh)wvDT<1y`yPs0%WAL`CeLphUmQPo~OK zaMqJD-@Y6(Q*GcXfQDsbbrkc!4x$}n>Lek2P>ObZw(<7tEa=giZ8L;V)~Kv-_UA5} z0DevQUH{{FJ6;%Y4qdfm@*eH`xSur$ETx&l88xwWiSXSGyK2mVJ8@-fo6<3|G>RK| zDu#Z$){_x(`k@BoJFx&E?HZ!HUw$#szH6*7*^uMLy1Na24ha}A@A;JUG{)<~D4j*i zDiUZix`p?j6JN+~wDl}3Y6f4hg!U;f63;mGz&kUigL{o*;-)HpzB~NhtWQGcR`Nj)jOZ**ZSqq8+`fOxII zqFf;*^EJ`2#cBh}r%FPoZChMW^TD1v5A8pNvbh{bQQLHhRZd_%6UzBhnp6)W)f4O<370B1dNKm zMXc=^u3IgrV(&3v#42XBRuJ2E zywk7auW08>8@~#bs6YttMF>?>1SZa!vn|uGJg|kO)`0dRJTUVWESjEm=0&K{Y0MDw zdxphDflxKjrojn03o|OX#KgH^R$7L;Mwg?g0@EczX!5Q?+bEoqU3PC{>9|ffDWRcQ zk^57y*ABeb8jWt6M?=8eTSE5kkuGS)05P|+RI6=IWNai@#BpoWvv(!9n;RE%9dQRvrKKM7x)4hTc{KDtk? zCJMLC^LH&)n=-U6W1IvK0Zjq=0J?MUukY_`PfkA<6!x3gD6MR^`ib-?)8r>aYgdq; z9y{WFP(k56pa;R8T0rX`BMjh^$gL&3{!-y^xoX1eR%Ob-T2z7NCQ-&@Awh=m7x{uA zPBf@*Q3zmRzLq|B`r38bxGDYffZOZ6Y2S3)&&iDD=hs7Dg^sjNFX`p)mFysHQ*HQy z8)N^NbT=d}(c<9dYkQ!Cl{}dpMxr^LW^*_A&q2LpbYwNq4cm7p%pVSw0 zKZCr;69MX|*sDykpq<)8v&TWL(mv33L$u$+15WZqgH9Vx1&?8EKV|niVilL6eE*erCv0C1}RSpLva_q_G$RQNOjZZg05(|f4z zXXbWu4NBk*Wyml<8N$jE)7NbsTmx#bQ_o2kdmlGINJ2!Ym+&ZQdwvF}m;KEfk|mOc z`h}_cp^GG<3q(7EZ&ToYeMP!h{S8@72lV9Y&g@3AxXxc!x6=S|YTnu&Y7M(1MQVd#Vuya0 zcE(fN{HX8S#}9&>{(8K~4W}-K9>6NXu%VVwLn&6)6wcHv?*QpHYX)eMImV5i+b({S zrn@oaZ^${+fx0!NkJT6Kl>}{ccNkkM?6pkkxRW+bp}`QoCX^@GRqC#xIkbPC&jy(M zD0fPeSw`}q0Ob`arh|VR(WgLzIFu>!n z-7GQwi_7}v?J2-@Y%AugG7}7%Z<`-m{P!8X{TFF!x3y3sZ4kFl60Po^wi_fj zRJ!+!BFJS?Cd`i5WBNQ2+pFzqR7> zXBkx5Rlj_YzPHqJdQhHuHi37&+uU%uy@1=d`E!l`>(3cH9pf%Sp!KkQ^Km4hearcx z;G-(%|8?U9MpD%&0rczn|D<342akVTIM7Q=6s#XjW(=HR#j^Tq+aTn=&Vzab(GGnQ z{X+}+wNnbUzaKG~|2iA`^72R4iJ>CEg)RZ`&MQs_1%LW8@uy7y%Rlk?Y}QG#Qi%&O zDW(uM*;O~o0ZZr?f9&RN@_setgb{PG0?u~(wXWy5e{M@ALq>-!{M-U=llw&&qHyQ^ z4`llO%|F&AY%EHT^huG*});bJ^y7<|zKz-E8ty_9B zV1^j6l$ z>ZFDIQSKl>`xNY}i3k4q3h%Um4gr2nr%@wD?U6T~2om8ds(iAh0NL0zdKqb>VXHn; zy@{>~mRon=^PWF!Kgo2+IiS8fk^UKPUDf3Q#{Ud42&*blw0%hhJI7!1*us@j)emu< zlmoBqJCA0*cR04t2-KU*H+BXRb-rJ6?)@#0H|a@3x7u(9fbw4V@4hX+Sb1(J?+sfY zRM8U*{?!ZtVA;9Vie~$&S_c7?T`q=%0E;ri|KR8WsQe$H{+G%hfj2@8DR{iW~! zZpmQ?#kCYs%om`Z&YPADqk`}*R!rPL4`dP2brrr`VZSe9t+jf3cs6d`)_NK zF+%d51+z>6tzFG%RVrQ@!ALza$=zGL{8YiDITO1#Bs>ANXV2$}jN+Qu6!E zPC)VkxWEu6`A*4?`5*7)76!ZdKdKE<2SX11F3RuU$Y?u`VN%ybxnGcj;O%Bl_C$V) zn4qR!sEls%D7x`?kBwND-#s>NaOvgcP}@h@C=M0FCpc#l6`XFWWrA;hv(y#5@V_@T zMFa!dNg@2V!Od&NGabL9%S+j`$`AVmSC0g|Bd_`lAg8+wZRA4Ne-z%YjYA~?^ss_F z`n`*8z!}&!3eku$+C=<8e+cn@{n~H^$I;wymhj&%!!CKPtJQaXd)D>0aiLs*Q literal 0 HcmV?d00001 diff --git a/doc/Scintilla/index.html b/doc/Scintilla/index.html new file mode 100644 index 0000000..0d18d1d --- /dev/null +++ b/doc/Scintilla/index.html @@ -0,0 +1,182 @@ + + + + + + + + + + + + + + Scintilla and SciTE + + + + + + + + + + +
+ Scintilla + + A free source code editing component for Win32, + GTK+, and OS X + + Release version 3.3.6
+ Site last modified October 15 2013
+
+   +
+ + + + +
+   +
+
    +
  • Version 3.3.6 adds support for the Rust language and fixes bugs.
  • +
  • Version 3.3.5 can represent characters with strings. This may be used for modes + which show invisible characters or differentiate characters that appear similar.
  • +
  • Version 3.3.4 better supports Unicode use in lexers.
  • +
  • Version 3.3.3 fixes bugs on GTK+.
  • +
  • Version 3.3.2 simplifies implementing folding.
  • +
+ + +

+ Scintilla is a free source code editing component. + It comes with complete source code and a license that + permits use in any free project or commercial product. +

+

+ As well as features found in standard text editing components, Scintilla includes features + especially useful when editing and debugging source code. + These include support for syntax styling, error indicators, code completion and call tips. + The selection margin can contain markers like those used in debuggers to indicate + breakpoints and the current line. Styling choices are more open than with many editors, + allowing the use of proportional fonts, bold and italics, multiple foreground and background + colours and multiple fonts. +

+

+ SciTE is a SCIntilla based Text Editor. Originally built to + demonstrate Scintilla, it has grown to be a generally useful editor with facilities for + building and running programs. It is best used for jobs with simple configurations - I use it + for building test and demonstration programs as well as SciTE and Scintilla, themselves. +

+

+ Development of Scintilla started as an effort to improve the text editor in PythonWin. After + being frustrated by problems in the Richedit control used by PythonWin, it looked like the + best way forward was to write a new edit control. The biggest problem with Richedit and other + similar controls is that they treat styling changes as important persistent changes to the + document so they are saved into the undo stack and set the document's dirty flag. For source + code, styling should not be persisted as it can be mechanically recreated. +

+

+ Scintilla and SciTE are currently available for Intel Win32, OS X, and Linux compatible operating + systems with GTK+. They have been run on Windows XP, Windows 7, OS X 10.6+, and on Ubuntu 10.10 + with GTK+ 2.20. Here is a screenshot of + SciTE.
+

+

+ You can download Scintilla. +

+

+ The source code can be downloaded via Mercurial at the Source Forge + Scintilla project page. +

+

+ Related sites. +

+

+ Bugs and To Do list. +

+

+ History and contribution credits. +

+

+ Icons that can be used with Scintilla. +

+

+ Questions and comments about Scintilla should be directed to the + scintilla-interest + mailing list, + which is for discussion of Scintilla and related projects, their bugs and future features. + This is a low traffic list, averaging less than 50 messages per week. + To avoid spam, only list members can write to the list. + New versions of Scintilla are announced on scintilla-interest and may also be received by SourceForge + members by clicking on the Monitor column icon for "scintilla" on + the downloads page. + Messages sent to my personal email address that could have been sent to the list + may receive no response. +
+

+There is a Scintilla project page +hosted on + + + + + diff --git a/doc/Scintilla/styledmargin.png b/doc/Scintilla/styledmargin.png new file mode 100644 index 0000000000000000000000000000000000000000..3aaf35b0ad4e65a1cbbe2f10f8b8d468d531990b GIT binary patch literal 17138 zcmY(qWmsEX6E=#w6nB^66ev(2MT-}A3l7DKLvSs{wLp;ucc(Z(Tf9JvySpa1bJ9NV zch32K73Ysbi2)?Wc2*Ke92zT(I;5`Hc&sPWt z2WAKeqF)gZ$Xv49Gyn()(k_bcq_jc6<8RmvBz>*B-a9LT-%mWPM@=Yd-f!%UhMUoM z$` z@?Y+(cHG8`7=3I%DOjv|+-sU&Buj$A@*UpIHM*dMFJs#twQe7DG;8N%_}%M`(_kG9 zxv;O{(g~09#?pvg{Sp`lBm|mS_Qz5n_P1ag(f5!dMO zx9FzTlrq#!dB=~KXXHA09Vixb7xR5FC}4DNww!78s~3!}=8iPnyZT`#rz8=2vW3k6 zk=PH#@5f(S30ygGHC+^O-#QoO3U6@BYFX2%`6ldfq3zrP?ZpmxeS=LW_w5Foub-Jb ziaXH^8$rPGrK!83pP+rPc4FEzbJBYRuu4qzvWPE2c$MY&?XeEij0(lm{m`nv!`biV zm%xU=i9~N!+}raT2C4;gC+eW5`^_td9rF z?ZSJsL~r|P!+s|YXW{poVgGbO?Elr=|2~S698?*^nvB_f-s4>ohU+pcf6QY^TuR@9+a;8JQ&_7xYxOK{l!P@*F zH`d15gh8dT@Ze^%gR7(f?}QIN-c!L&yyEEdkQwnoDtg+hP+a}c$E&RB3siixZ(+O{ zT;e79rm%5A#d=V zBwy!U2EId=pTgJWN3p@f%XYXNA%F0!dnKmaU0xo^mm zeQWTB!m_%27P6SeNpHJ_u-$Oxf?4LAa~ARJwpTqC8aLc}8->AQ9@!W;FLSYNyy-n^ zd*+ZS5oPC47henst<_{-E#*n*EBA=)-LNwU!cNy0%MHG(TEkEv75B>4igsl^asy^N zYI(d*+fRK1LC73(-UN7d3w?)cBL@cV1_ULv_}{3`ybo(;N+@6r5xl=L@8>63Cx+ke zulr4HjupudiwCs^MWqx{Opj?(O$;Llq&KNiy|(b5LMWr>KEyO+{XK@*I^?(g9s@Mn z>`Vt*>I^Y`G8>F?#uY;jrB_*us4+uMGwXU>v}CASdT9bJpB+717S%`T#zad|dwWTo zBG%M|N%aErYsd*-pQTGOF1yp|OuMPY+9f3W=c@Ei%)80Fmw!MAr{_fRb~J!fz5KCL zUZ>CbH9!tux})3aWo8?qq1`phu0H;}+oj7-lllw7#ok$BSz8!6dOJy2i4UfCspPx$ zj&V{PhaDw6+o`Tcb_P^*U72b5@^@By>_v}dafKGnP#&&q z{H(E4*AI5Lhq{t%L6DW-p%0T$S00*ktUW?m{GmW_V__QR!z+NW7VF81bLp2$7Y@!x%c2S>tRK5m z$?fZtcC(y2F{kRvXd)TjA$bx5g#RuBHB>GMw2+`Tn&}6vyH;2uxCg)8?RD|E!>)ZE zbL3Q0bDixd4=WCPjtR` z`=h=<%Wgwh8+R*ytWT5MvRPJU$8`#}#JJL`*XoNm1UPNxf`tLF-pRd{^t9gUumqZq zvD)~$BTJ8>r`Eex7gzkT=PVI>BXs@_x+d_hcm+B+=ztZ?v9Ig@QH8kMH{oBzh zh1N(C?*6-e_Q0Ef8bk2MhbZ?)En;9&v1_bVq{ouamUq0AwG>9xw-1kK~~Or z8`6)g_c=kL{!}>rIUa)Y{kStkE5Qu&6QY&i31+wbbfpp9g0|oFy4bkSnoKYGac)=3 zN1oB31E$<)6u?W7FUse1x8#x|^^XynZw+~HkTNKaL^mQ0a!!${ypen_&JP^Feogu{ zRQHw9hqFxHDH32oPQaJ83)oFmk)3SV1h1{p2y(sNJtMz(Q;h2S9A%3aO-VmZFaRE- zR2o4EObA}u>TqK<1>8*~4EQ^#B@BbXsa2+TyTb7g!lWpkjxs;P{(9hQK3gf&pK55i zh#!q%Y@l7bMK@Y(#~oI29D%P#bt9OuibD8S(Ju)n;>0i{Hoos?Nc~R0cRuagz|=eL z_;4EJyXf@vOjy#yPMGt}KU z96A<=D*QoyHj{@a8}_L0mc|h6J*D1Z5txxq-+BKh00UGNmXD@@YG4^@MhsOqDu}O9A)9Iv zr+ebNk=;|VCL(4`Y7AjV(nvCR;%*#s;^pH`?^yQAS+UV+0%g?*)VkX(<_aL!LB+F) ztz9S%(u3RL>x1=G7o*YPz5L zb<%4F^i$}{iB!@7H~q-#+PQ)O)6P&F!y((nM<$=-g7-;hFj~(eod9;t~J8|KldQq#^7a@dFm9;~pIJKF9st z3(mCQ41ZWK!@yT7w&Ak9D<@;0wgheOKcL}h7irYP$5?8+EXoT)!MyAjGzD+(EruBg zSir4FVB?cMLeQ7vg-q0=J&+(84fZ0lNSy6$WqX9l^BlAnwd0X-ne~ji1#;LVn5Ap{ zD?XIEH|<%#<;2!EAfYkXupvbWI`5!hHkL-h7CHYcy7ALIU1iUG#*8#}Eeig2(2s4B)Fo<~a& z;T_1?yG;!l{>fJYU=s8L$!=^M417a=1!pK%e|5XlG-R z+bXY8#xLKjr`)F47Z}4+t>#0LzFTX*hIOB(PFJbUMN=tuX+-8$0(Ma%$Al9i-y8U`?l zipLzO-Z1{l$UUdt@!u|yCERa~IXLKz~k0~eC+Vn_5<>WOko{rE$Ux{d7@6#bQctGW80pCgBAI2x)e9G^~4nM zw+GZ0{5$9{E#cK)?EAVD6@d>0UyW}L$*vh8G~Fvkcn>Ffey0NU1po!#C>N7kT^Lle zG_&Bl=uE}O;AlL?XP;Fz{Ij%6SP>S_mSm&IN#p=s^VVFU6>~+s-#)l~yZ{)HbufPO zYj`LiWwu^v+ne?sV9-#u?aE0$n3k=oiqT~b1cy3a3Zoj)I767+?zWwaG{d5ail+38 z2ghfB|Dp=BAcn>c>yGoGmrP&DaqbOal7zrgi25bwsi95kb93{|hK~jKf%!Xh)4+qE zaM5M~Ni7+p`|O1SHkMwsG*$K}LVa`)PsMCT}?%>F4fMz1=Iew^Ha?bsminaQ8 zw3qvi;1|`!*AX+ee?V_=($YNGuQF;Cj`B_Q=0Xu=p;$Fv6@;u%6SI_~Y>R#{_~G?* z@-2sX^8c~OCR~=Q{l-7|QgA<8nm_wZPm<}vyNMd1K*pTpujNvUOHOlxI%git&!)O} zx4+)1h$tW2))JMHo7a+_UvOq=$q_?CBQiDRnK)mmOzJ?&-+ z#aRXt=+DR<&oOn*{zcc1Hvx9ribNv2#&7J?s{Exjf=q#Y&OegLfhnTpTiFyHU0lz% z4}O`hpxz*PHI7?i=hgFOe_~WX72TlO2MnL-eo*<9u6BGGJ|J+0;cf7SZDn4cNW$)B z)z{1;JrqUc>IM}@u*|^dw=}7J9~O8)T8T9lA@8O9+@dw1%;# ziB1vQlFBq9!*a_jVsqj~FNd9o3~$4s%`vRK!CD5JxK27nx&#rKL^o}b4S2-5X+Ey9 z)xmqY?`M{XGR7nIo@8@r@^y!>!RM9~fd8DxH?X>lDM$dD zuO+FlU9Ho06g1>tM0^*o2!L)xw+CCz);sBQif}n2p7(of^C!Z!d(e=bRndX{^Iqtvchdu z*{HQ2Xx;!hcJ(VsoJZt`sgnbvbTzcj1sTu9r4hdYT=&8(Ga0$`~;yU+1B|fUv&yB^_(g|Gd-me-FBkH|qP68s;LdiCj-5ibZW5 zU!;$m`|--&IelU&UPPK%E4$XYTYXd07TErAEeb2N)Zo03RU zoIAkNP5EBB`boTKa81@%QvWKjD!EjO0#5)7L^}{zQvo@f({yY|4eH1LSGPBzdOz_0lB7QjyU8Fb zryp0K6IDiJbmvdr2^{`&4K3T>$jEvb$Uu%^pVP`np{V$!i-FIu`y8>ND>vo!A0au{ zAz>^pDUE#wNEM1u{d@d&L$I$T{FIKYF!5L-`*b_<3Hob)N{M6rgYuSI~bWs z_8@_mbK$eIo*zr_A3Ai)5k5Z*;8O{e^1AkCdC!3LJD$j#Pb8r~714X#)p!tAB%U-Z z#3{Y@ewRBtmGyi;>QP38c#ERp?CIyw&7(jmXRe3Au&cL%vbimMCPiejjOYCVGPn}BEKP_@o?o*;eN;ml(pmg!kvgq8e6e>aDZC+ zG0z|(A=u;_BVo+@V%_PMroQno>w(35^IkRVu(N+DCJX%>~g6+p-&pFp;22XTC(07S^Qdwa1f z(e?R*Lfd(--9n{B8s{jJv)M64EzxCW#;Q3`MZvQH&EcG$&m#GzAk=1V>8q%Hc&QG46;r?-L)>C}E?IS@(#41Zf|b@BS0Rkv(op$A%@|lDZE&->-{=eA;hTb>0ZO~s0wTNT zths%1@8zW~{wuqeRgN`IBY2R+k~D#PtRT*5c{|qx)$q8ny0KZ@>JaVhQgX#PuXBe6 zO0^#_T{;%NUc$5WMTd{hOsUrkpVL@4ehJ5Vrf{A%y$nqk1>q(7V+?DL8E7HSnPsAn zaQMF^vhhZqThpSn$0{Ttv990;=dqgBB7&y{H3@kwa3%qC&|GJc4uc=b9v`D~lIU!X z(DS@&9NuFv%wbSb=tZRXGOj&v!WtITl+*6mB}WG8@OhMx6GFKI=Io@)AyXC@z>YP= z7?z2xVbd71-hOf9VnpqSVcHn0;8saD)^Co;#A*Z7=LGYTd^u6fTz%c>c;w3e|#xxSf596#cLC*%)(IR zBKz%CkDyhn-KDqDco}30{P*T0m*V{D5Iy0?Wn5lfkw$*Au@Oz2MQoT}<(5rtK!38W zP=~;7>@Z7$NE%=Q4h_Lhz~95lg^b|alVGf^hqGkm&U?I3y82I8!Es+iDuM@70;=90 z{@$R=(nX}|n;4ZR-rD(bBrMB4VpgNO;`A1!h6nm33H4Ev91jt)>Nv;StM*Zs^!a}2 z;ic_tPPIF_zO89<1gn9&8eNH<+={<|X!dYV1Xo;l0VWd>*1=Am|@Zf#$-*K{4iKIi!1 zg1?f!2)y}qTHXGr@rv~Evxx!%3?+g9l9+;}nf~bn{7n=Abbbqu)mHM+Tzu^4mx@X}>t86`rO0p(oj3ZH?L^EKdSbo2skF8#nP?L}M73{^C z^0o`Zax5(wfffPazQw>dhzpSxkS+Y08G$yXF7WuceuIKBgjg>>_O4Vv{KbTS57X&P ztrhRr(zfpJA%fK^Xx+*f*vO!77j@LB_O?qiutK7>j`jl9&(3k+;=b-#=5C{=*w`03 zUuH5HS<-M0ilcG>@gDL8(%Z~E=Zl9pj%Bafrrl%Wk=oV)W{Tfl5BOCmMSNmRgfW~h zG1fbI>Nz>cXE~xRju>3OBKO;>sIaWl4p&r2WriqCt2TeE1ovQFhSzr})Ri9x}w0!z>3z1W&HPq}p!? zAc*q9FIe^pr-0nX8^#@xtn9jAISlYBkg?Zec#!+ka{X1{%RsF_R~8a}JfvpAXn zrq6DO<^9unf>&kiWyt5UJL#L<))ZfLfwAWk_e{Ov*l3J)Ivcby5}F(D6bYL9fCT!& zKY8)XHon=bs(p)5pCEL%Sx@pv|Li%vv6mtm$)q{^@Y6&NO(OE_Iaw`>}rq_;e;)jXe+DaEY&E6mc&ncNTsOBLsCXw z%OWdM2Y2gdx6CE}!B;5PI_NFK1mw)PqvbqUF-N3pBUodYK-XBZLPg;WV~ipRz_e;p zMx6+xlzlFX^E&K0+0n#~xrH0$M1gv~{N5s5T_8(`lma==#__^}eEo%!N1&Y_G&2_z zxR#Wc-L5A8Nhl)Uk+tY7YttGC)9t)NM4^v!iliSX!~l!e6*LU}P~Ma-3MVBIw)N_l zi|X-Prl9@q`O>>qN7(za(w@V1c+D=$s~`8Z*9<~9$Z#CiLMuyae-~U*zdkl3TEP() zqO{%KLilRnoWfp7K*|g4^(gGYkk>zcz)%fGP;e#IbP`#OiYU4wFpzAT=GD^UM)aq5 zAD}>6YgtQUW7*2neBkRoB6ol-qE@DvLd7=^G`5P4wrGU~OB{5M|_VrJLtoh>B zc44z?eI$05^;L%3?tqnbWIf);FY4?jly&wMnZNyyEQ3uAl~h1F-=o&1XQR%)F4%-e zUB}op*z7nU*K8J5fPCJSbc)JrL4IAlsf?_M9D?(fkUX1!Z*LOHG+=IHwE{quy(@B| zfv}RWk=etCrXH>&Kf!Yh)ecX&z7Y`+rXF2)m|stI$FY2~_|4?+SAKscge6=aMgGw7 zBE^-0Ft3-gZPA^*7a9t#RtA_IR}2>GE1H~yeg2$Q2Q)4RRU9v?Awg>Vo)KxgX&+&X zP}cYG+o~${PRm0#)QOpJIe@)yg?Hx#F#%awg^$(qutU+LYCGXoUJMf6-9l#L$Kv1t zo`m!ff~Lf1vLTUI>)@>OqY1R}wey2FcWf(lpWMT_3pW@*bucv=NWEz9jtuPQTkCHZ z`&{u_$p^4jNQ#$m$~kA(x47l;swFL(!TH%LAus1KjoyYH&MGEHapG~;?o}4n`hGXH*pQ$u)d5W5ZKqS+T1|^tVp0IlBVv-B@{0=5E>{ z=ut$tj2{=6L~ZU~1e!R11_Tnm$4Qm10zupeAis$uy?QvmGC67xtL2XARI(NX6r$~2& zc_aA^mW>(RDnZlFCC_bHm~NG!4hKS}XKh(0LDR3bybZyM7~Aj0Fi9iO46+~Z>|GUe zrQb81L;IDK{`u9|*lcs}=2B4SiOieuHd?Q(&}QGB<5WK05A+doJT&eBMU0;p$ttVS zcgXs+X^pWcDg(=%S4$LBEegQKqjnlFM&z}7m%Tv|>sKMTpo+jQZUbnVxWdh!ZUH$j zL@HY4h3}Z*v>ujcNV4B6f6D!eMM{Q0QOEUp$pq_#f2Sz^06qXj1y+YJ_xO2AnI={) z4#XyrjFS)TA1u!1#)ZFN)m8MDw7cg4rNX^f(z|Ly+ES3`)s$$;`SrTae#Hr)|96Ka z`*}8CvdpMnI?uL=@dT$OGtEt$PtWTo=3IX5J#_6qH145<@dm>RX)H+`FL5oYfn_WM zMhh-n^J@Zi_#8k5vP-{PhxGG_7yE+1;d|z3Z%%S$^C{OdOH{$Ew=l^?vXvXQ*HibB zM$KfORd?Ik5NJbFdI*CrQpI?{9w!6txmKdN$qliZb$TlZ{27VSgN1`Keb`89L3-fR z81`*pU)0XNY3|Yc733%Nz2bNgL;xticof-*>=Ak^;{Eg{Zv=CFjXOXc=eeOZo3Bdo z@n!+DE`4i+K-AXyli83N5mj3>D?){<-#GwRm3JBiVLvz{ArL+>@LzbH}3#6Pz>}TA{lS8r8M;^iKH1Fy4lcQ3!EH|W=b34bF^}I?<@3OZTa8KR^5x=9h z=XnEfJmQ2p@8Dv?SzypO(H(EVRvkR8i)v`u;LrU9lZ?5zl*um7Hp+ zXH1hLGBpUXl(Q1v#uLN07C;-2b)rv8_20f4Mot|~Vg#{=e2%uAq#3acTPs4L0e{ z0mFH;oxQPgm&DW$=ld(wOVAQ=1lNd!N~N6*lmissC%*f&15{L!Yy)WYzkguR>QVM} zbvrAR^`U3n`qsCn5}e2)GR-9t($E>p;FY&1g@QGp(Yt@8V*^r3)Lx(&%3mXokN+B| z8&uC9LKk*CQ`GrJmZSp3+WT+PQ%@>1A#Y@32A6(_2w6$N-jrm=XaGt(d5+6W@-(?C$^*M`2X`CD}nI-6Iu$=RtH-wne`}%HfRX)(MY6 zvrdJRqwy{cBIW3ZN1VP^|B3aYu-YEY8Qu9vR zfSMyToe)$CBJHSq$BF?|g1gAnNRAj8CqmG+`(Kss#T{%Y&C%%lMxzQGBjz?fK!4?^n^ITBB}esm!mLEjrAqX z#fC6Q97XTWw?^)E`$ex=ucNBt1--?`=7p6<=A-+-+QrOfnzZTsb~~A))dh~qHP(0Rd%nWBV>t%D74A+-10%F9&kM< zBLPyf67=?P0$t7BA-Ti1zhG>@T+sCP2(I$C+i#n6&l6yyz0Nn0pUNi! z16sPOTf({=?h>rdJkD4?+LQi0n+~r+%#AirY?fK z9f36F8ZhbL*ERM^2|}=6&o|=d<;Cr#if=6rkrGU0)oV5h4(85S2Y#84cVu_-aJ&&Z z(nJ|8^jRzN$kC06?hyfgCG@S{{KPVN`NYayZ50{$r93p6Y#39tS13?NplAi0X917v zJ?=T1#^aiivU~=wr23RGRka~p9@j@x3_8#iE*Lrquh=(nY(co8ic;imSm(9dmf-zo zp4KIkwt1{7NY2}F+^HJ)k>YBdX9;{w+x@9aS0Nhlc~r9>JaT{CVavd6_vBKfR~j*} z*}?G3w|YgbZp#adpM!c&pB&FrPd*ZI*%i(qOclPvMN<<~{Kezdz=FwVE6%E76q6jg$TrMZ;1+7L6S^v7g8 z?_&)bvWIMos7*)cA_e6dv2wyvhobM{fn$igSW_6e4%@h+8X@_r2v{hDSy8vzW5%X* zqR!D;@jN=06?7>je-Io^h5>}_9hF~Cn3pzm6&1;LmNKLcQ~@3a zfNSsiDjecVI#P6KBsGha%;MAGYnw593;6u~HimP;x4;W`xucS2?-kHa&tt5%c%N01 z$8xV5TY$gPgW`hgYkzxFaJ1e)Ijadt;W)MX>Ja6_nO^Gqu4{qv%cj*|U$#zVPIdjIj@n(zds+k5+wK0k3S|s5YBXKhPPfa0tPN3z{w8SB zpxtXNVClgs*f0pzVd_XW!v%^p` zYkT^>#cDNmMniYjq@z1L>pG3waLYP=3tTrS{$PHJ^k=$KN99=DWDuX&f#Ko!p`*hn%DHk0mSza^lzM5*Q5zY(hAE8<4ON||e4X^)|h6wPKB=?M$*Sk`Y z(VAZ!tHEG$JSdO#UH-v7;vvEyQ<1qM0#u}i`%=bW^kO*)z06NJdKH8r9YLI6oYBrKqjUlMI?y}Ak8_~y)w0(6leag@~W7hBdp}R&}@MNq>1IDkY9Ga?` zW{<=>;Vo76pCe?M8^BH^`7eB<=Cbt2NW!B!FK=|Z*=lbk(myx_&-u30;kBTDQ0fH) zCsXW*0A6r?EH| zLm7|ZFMmz+zmXY6oUl3*zD5$?+0cUx9oXdEC9H}2Dcqa9(vOy<0Q@sJ@&eT76&_ax zYUmQ-l{wo<@PY`?9 z+Bd&=w z!AppO7dz7l`w2+!{cL-T=yjl8Uv9#p^<0t}X=y{#Cx#G6crC`cT15W0#4p)5)&(&k zp57NV?|m1J&$q-L6_Ob7^6yvc;;Gu}J{lW)fx$nA!vF?07EB-GpZ3*Zj90%xvxHFr zdr&OPEio2J$3(m%GX`%P3wrV-mr8tMjpVYyyLwVMpMj;S`SXV|6@XR$@uf;KF@9Tn z0Wg_RsV@IIbK?M=3Abl4B$}+wmUIc=2?YmcChY$#)uiykYIt8D9uPd7q2*GTza1;T z9KuOtAp4<1RNj($rR%W{p`E0BPt+v9ZS^v4LW!Jl_5sHxDMfYA_cqRU>Vr z$P$xe`ToYcvOI&&*r1Ux=QwXe_9z2Yc$@>oLqFk|5KT~`9;%pyf>pMWTx_+iN)v!G zUYLKGVB>ux*~j@tkpQ2!VvRjunL?SvQfae=h_MekLBQ?(g*`!NJL;R>79klRdsFu4 ztE})i0?6uiqPB%GZ(WdZcXSm%~(T3y~5Fg*vBY^!#dOEV{P4yF9 z+$d6Uw{+AJ))Xg2y*fgrc?$oCZ8-kKaYpBWpB^v(9lj492>#8Jt2{d%m%gyV6A7^UVM!0RDirifb%&#z{2*7af8BqtY(;wZ9LK{|_5MBHw;r+xc%} zkz^M}e*Q082L1#axVZnffBvaR=3nOg&n|r6zSmidfb1CS5F;yg!?WsR#ji4LQg06u zh-m~Jtq+0)jk9Z+fDhhW%1OcN1JN!{Q~XC4^~3r0_&yT; zS`X>Vs?2aVfPKknIyBJ5TGt)3#Baw5u0r>PGe_2aTC8uz$UeQ7=mx;D)%2E1_dI!aMTg!H z({+K6K}s|}&9kBvHwR?A9*Wx1HjFno@6L#WGo}XW`QJUfztzt{`eN_91FAD(tym)& zBM{2maFu40J(EWqr+Ce;qn&&cCmkkVqN*79O|!cjH&1Oc-WDII;5~cSh|u3~M~DLU zvLQQhAwAp#ziGFDsS zRoBi=bEPv1v>G!-APq@eQs57L`i!(8Bv6qHe7$UC%&K-2w7RL)K1~`#!6L2VunS5A z?)v5^*|KeZQrh>i#*wzQ+4= z7$eZo-LXRVmO5cZ#USpBo?rl$&e5_~JeA71nuE@y_7H1G`b2;s1qW;XhAbsQp6k=U zATdTBo!+$)F4**c0!8J$6+6y<`35Jd+6;Qsf56c*hwBr=f4;D2ZRn2ve;LV1O3^FF z|Di?Y*b@MJBSGD6I^ zd?JI0OuwI$$U1?p`p@KSV+mxqI(j(HrB@=<9Cv6!7hn_wIH(VH4p-TDO~rz53QsrQ zw!Pu0U22{2BV!kf`w9qn%>F1V!?8Kd$^qsE!I{|6gpJf$)HJQFH3mS6KMfwPs#>UO zTa8Kwkr?_v16y?mG~-9F>${qmb=24NMb`8-~r0*c~l_` zK$k7igu71a{oeU{U=wkI&!*k@G(1MiWn{A0P}#=oQIqMf+FT$fRQ+t(3!!=5z#(Y( zQtd-Zj31GDBR7``AXULBETup-QH7dL6DyzCy9rCF8k<=Lztokw{WTYWka-p zT%PftI_caYrMdY5OQau?H?05St>gp|;L^wN{d{p{y)?dgM4BX%MfGO|E&^%;a(K-nip7b{NOm zA{kl{w>27p^R=S9om@hiUh=cVQ1Z8wAVcQcVeUcJzKGmCDARHC-o4rJ`Vyl-C@b6! z9H1A?k@J^A4TRi@a7@*I*VsG~Z5xTAX&l9WP+&nIt#FR&><%ZkGjUMH+sb}Ll!Y}r zQcy6IvsDSoDsfRvslZVN^?tnEr(s2SWoedTPSf0@VwaQ#)#HZ`{paYHEA|_m@6wjh zi@Lt3`C-%P->fc`LeP3zQ-%+P4li_%pMtJC)i=dV!&ZbfU$QB_RHFi{usH32R8LbW zm|Up|&a+j<^d*^4#+`Wy%tfuY(t1A{_;m$7vc-71r4#iDbOt4KV!#>4%Ii;!hFv&q z-%LB5|F}4G9l2F3g>r3ET#V^0`vL4M2#0wO*EELTPYUFStSmI1B*&P^{;kg;)>#fc zo6f9sx-g*PA84#H^NmN#-)G)EbtL8$lYqoc^lzT#Z8jk1f(*j_V!XyqH1(6YlyGAdjwfFdOMnVt&L95hIjuI_M-1iIxX0a0MAlX$4qS z5s!~QHhiR?7^bgS+b0rJ$^t-M^Jpu5&~SCPv32}H4w?P7&S&K9hHm8PuE*b}Me}Ys zy}S4P93?0^wCvAPvo?jpL@S*zwwpw1&Q&U@EZ^`D8))IHy7A?Cd+AB=`U#mH7qfKO zwJ0Yi<>m&5MF80)Rxt?b-&TI!HXrS+lY%GL_q%REiuOS!3Ohi@K{kM_@>I+?j)DUG zi!3ZkJNY#x~g%7#d$IjknEup07&V}-RMK8=~h&SY4#G6)N~W~y?Om# zz_+*qwJ}?4)rr_ud z)C#YR?lJS7%Q%m0ZFJ~CTK8|0kH0=lQL#~7ju4hzzI#N<88j#AV3w-h4%SZ~_ zW(tAOa`XoN$iw2fv;P%$@Bzox)jg(|F2&xMLvLTvqZ^`wx>7l%Rt#^!^lSVHvQJZ$ZIZ5I`e0zD(FwtWB{zrI^m? zzYJp_+IDMTm(*64{-OK($nVB_G_`KZci?IeZOv6J=Ver+*-Q^-ER$nA$@o&tx4Gay znYQt^9y~60b=i4-@`4%MhM~415f|vZ1o>P7L$5)yZsFXYHd+f&$6!aq2^VIp=3Z-M zx?ad;L7d8g7FpJ0kWi7{9evo|(tx+p&U67(_$MwVrtKU~@Gjvn?)T=ar#PgBgDZ`#-WXNI#al2S8K5mpvEy=?RSiUa{JqG4>;7;p^U73Ke z_&|OUPMTN1$)#-g7{N`HAC7j&WRh4ZBis#Um4aMD6xdDLmKZ?nuIVWyu|-oub>t|# z-0-?oqEIWUkYh~;B=Gvu`|T6dz2@!3Q3c}q=kbS=wnaKr%RisYkb5WOX|sf%(=JW2 z=oi5+FHWB?*9DyQT?WnN_15Sdd%Pp9m^pgyE$|I8OB}T7lya2Nk(;qLq9tmN*vg`#h}-QAA-wSkbo5b zBI(SUte=rOMBD@q+H_j>DFUVYe+9$L7ytQHY1qoL1~#r@Fr1H{qvilEJBJ@90&{*3 z-RHno`0LdIYmwVyM~TP3C}z@Dcp~kj8wX$C?NElpTO|60-X&TRBK##;Z{d}yRSeE$ zo#V}PB?jV}-g5|h8Xw0=_ZNP4LQvP!InXQ?^>0<&4(VSd^83c0?_P|~;nQQ!DBQfD z_#~kL&Y3T2Y%4KAb9hpT#ZKQl?85Yz;qjCMSnnKu3Gj=x<;9m89m7RMJ+-ZIGMB0y z5PAo2EW`r#{6*G3?_pEv>b}`N4@j9QNI?S6X@x zy+#+sPJ?`pCw5JnajpTKlss=fE@=Gt_m7`@a~esOSA0F+y<0yaeVyeF56F2(ZXC?V z>~p$FiRKtGWk@eKph^Y7z|q*1*ePmv$Z;~8z0q=T<-#yRFr-iBZEeA2LGy!=;A{Fm zI<4Dx2q#Y`&}f$aNPcBjCUjb9-c71dg{sdxeOFtj7p5}VJ^A3&_h@GbApoG|UDu$k zq?ri9&uf%5A|R`sbO&}&I%cAQxlHo|fhs9IezrzVkGh0w0^TsJQ`4q&3Q11KMU(%Y zoP5AKFreLTZAiSS(k=6p``!>ABz83e?|>?tf%hUg3zHrVwZmoo8JO{#2cqF0beuc} zNkX*%HuNryrm<4Wjv;qO!6CMg%b$lPE3ctnwW|J1>K+jSn~xG_ypAn<@BvNNsa+3o zG}9+t)BlOBOdswL&iyQm3z%=z&BotSXyWDsYD2G1YW{moa*!e2)#0KF^7!HHK>3G@ zHtWwQ*ENv{F`Tu>k0Us98bvc3`Y)Og8W0YPggUqC-Axu|VUX%T#J@KcHC@FrpFVAl z>f(|^X~ITA#y>HI_iw?~3hD_{{dhDzkHp)3IK#HF;#wAIzIH63{=bFj5x6?Y4*A=G zW{8Hu+qe>e8bvyY2ucG7)$)&IKht+#eXnt>$1(FCV3HUR58+Oq58d#4 zIp_Bj;y~~Iggjm(A9N*GT9W$;q2Wog&)cJKb%YNzeY4eY!~R71YF(lV=7JE d&*&~4rJVoIq#W*u0S~2M@O1TaS?83{1ORlOO5y+j literal 0 HcmV?d00001 diff --git a/doc/html-Qt3/annotated.html b/doc/html-Qt3/annotated.html new file mode 100644 index 0000000..c14a0dd --- /dev/null +++ b/doc/html-Qt3/annotated.html @@ -0,0 +1,119 @@ + + + + +QScintilla: Class List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
Class List
+
+
+
Here are the classes, structs, unions and interfaces with brief descriptions:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
QsciAbstractAPIsInterface to the textual API information used in call tips and for auto-completion. A sub-class will provide the actual implementation of the interface
QsciAPIsProvies an implementation of the textual API information used in call tips and for auto-completion
QsciCommandInternal editor command that may have one or two keys bound to it
QsciCommandSetSet of all internal editor commands that may have keys bound
QsciDocumentDocument to be edited
QsciLexerAbstract class used as a base for language lexers
QsciLexerAVSEncapsulates the Scintilla AVS lexer
QsciLexerBashEncapsulates the Scintilla Bash lexer
QsciLexerBatchEncapsulates the Scintilla batch file lexer
QsciLexerCMakeEncapsulates the Scintilla CMake lexer
QsciLexerCoffeeScriptEncapsulates the Scintilla CoffeeScript lexer
QsciLexerCPPEncapsulates the Scintilla C++ lexer
QsciLexerCSharpEncapsulates the Scintilla C# lexer
QsciLexerCSSEncapsulates the Scintilla CSS lexer
QsciLexerCustomAbstract class used as a base for new language lexers
QsciLexerDEncapsulates the Scintilla D lexer
QsciLexerDiffEncapsulates the Scintilla Diff lexer
QsciLexerFortranEncapsulates the Scintilla Fortran lexer
QsciLexerFortran77Encapsulates the Scintilla Fortran77 lexer
QsciLexerHTMLEncapsulates the Scintilla HTML lexer
QsciLexerIDLEncapsulates the Scintilla IDL lexer
QsciLexerJavaEncapsulates the Scintilla Java lexer
QsciLexerJavaScriptEncapsulates the Scintilla JavaScript lexer
QsciLexerLuaEncapsulates the Scintilla Lua lexer
QsciLexerMakefileEncapsulates the Scintilla Makefile lexer
QsciLexerMatlabEncapsulates the Scintilla Matlab file lexer
QsciLexerOctaveEncapsulates the Scintilla Octave file lexer
QsciLexerPascalEncapsulates the Scintilla Pascal lexer
QsciLexerPerlEncapsulates the Scintilla Perl lexer
QsciLexerPOEncapsulates the Scintilla PO lexer
QsciLexerPostScriptEncapsulates the Scintilla PostScript lexer
QsciLexerPOVEncapsulates the Scintilla POV lexer
QsciLexerPropertiesEncapsulates the Scintilla Properties lexer
QsciLexerPythonEncapsulates the Scintilla Python lexer
QsciLexerRubyEncapsulates the Scintilla Ruby lexer
QsciLexerSpiceEncapsulates the Scintilla Spice lexer
QsciLexerSQLEncapsulates the Scintilla SQL lexer
QsciLexerTCLEncapsulates the Scintilla TCL lexer
QsciLexerTeXEncapsulates the Scintilla TeX lexer
QsciLexerVerilogEncapsulates the Scintilla Verilog lexer
QsciLexerVHDLEncapsulates the Scintilla VHDL lexer
QsciLexerXMLEncapsulates the Scintilla XML lexer
QsciLexerYAMLEncapsulates the Scintilla YAML lexer
QsciMacroSequence of recordable editor commands
QsciPrinterSub-class of the Qt QPrinter class that is able to print the text of a Scintilla document
QsciScintillaImplements a higher level, more Qt-like, API to the Scintilla editor widget
QsciScintillaBaseImplements the Scintilla editor widget and its low-level API
QsciStyleEncapsulates all the attributes of a style
QsciStyledTextContainer for a piece of text and the style used to display the text
+
+ + + + + + diff --git a/doc/html-Qt3/bc_s.png b/doc/html-Qt3/bc_s.png new file mode 100644 index 0000000000000000000000000000000000000000..e4018628b5b45cb4301037485a29d7d74ac22138 GIT binary patch literal 677 zcmV;W0$TlvP)X?0Pv5h+5!wElpi=&YL!gfY!djl#UDdPKy97F|A-deTa@qo3BWh1YQIvzmHR^g zFjV4I6pLB7_*vEZk^%p7c7Bh>0`4r^X#gpJE_Vz9fSHKqclcZaV^k3gX%h+1`u||O zZ+BY?7(R=ayr^kXE=E0Dw=$Ud3VJ?9^Cz@hP?388Cw5>9TloOJ>^KczCgj zns2=|0!a|)Yq3{hjL{xyy7|Tk0N}Pe+g9PUTL!4{#;eUhrNd@!_T<>Vu+35c)h>sq ztgb?(6W3oFLz#%?OMEV@{j#4LuDvjVGZ~6hpQT8li5b0yjvK8c4efl+vSz5)P6 zle78)00_Iv5)&E~hnOdcd}L}i+MU>k+Q8#@KjqJJN`gRj(~)RmNrck9ht@LelPtVO zwp(J;k!T=gC#%o(13-^E+g@aqc()pf{+j|0w)AH*Mq$54UjLv#jV$RYpz3Vjg$$=u z>yjfBQOhL=^@+#4#$l|{~}HZ-?1Yy{lI*$N}*YDC`<{+;>_#gMXZdz4NI00000 LNkvXXu0mjfx86dR literal 0 HcmV?d00001 diff --git a/doc/html-Qt3/classQsciAPIs-members.html b/doc/html-Qt3/classQsciAPIs-members.html new file mode 100644 index 0000000..969b532 --- /dev/null +++ b/doc/html-Qt3/classQsciAPIs-members.html @@ -0,0 +1,92 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciAPIs Member List
+
+
+This is the complete list of members for QsciAPIs, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + +
add(const QString &entry)QsciAPIs
apiPreparationCancelled()QsciAPIs [signal]
apiPreparationFinished()QsciAPIs [signal]
apiPreparationStarted()QsciAPIs [signal]
autoCompletionSelected(const QString &sel)QsciAPIs [virtual]
callTips(const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QValueList< int > &shifts)QsciAPIs [virtual]
cancelPreparation()QsciAPIs
clear()QsciAPIs
defaultPreparedName() const QsciAPIs
event(QEvent *e) (defined in QsciAPIs)QsciAPIs [virtual]
installedAPIFiles() const QsciAPIs
isPrepared(const QString &filename=QString()) const QsciAPIs
lexer() const QsciAbstractAPIs
load(const QString &filename)QsciAPIs
loadPrepared(const QString &filename=QString())QsciAPIs
prepare()QsciAPIs
QsciAbstractAPIs(QsciLexer *lexer, const char *name=0)QsciAbstractAPIs
QsciAPIs(QsciLexer *lexer, const char *name=0)QsciAPIs
remove(const QString &entry)QsciAPIs
savePrepared(const QString &filename=QString()) const QsciAPIs
updateAutoCompletionList(const QStringList &context, QStringList &list)QsciAPIs [virtual]
~QsciAbstractAPIs()QsciAbstractAPIs [virtual]
~QsciAPIs()QsciAPIs [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciAPIs.html b/doc/html-Qt3/classQsciAPIs.html new file mode 100644 index 0000000..3b64d33 --- /dev/null +++ b/doc/html-Qt3/classQsciAPIs.html @@ -0,0 +1,400 @@ + + + + +QScintilla: QsciAPIs Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciAPIs Class Reference
+
+
+ +

#include <qsciapis.h>

+ +

Inherits QsciAbstractAPIs.

+ +

List of all members.

+

+Signals

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciAPIs class provies an implementation of the textual API information used in call tips and for auto-completion.

+

Raw API information is read from one or more files. Each API function is described by a single line of text comprising the function's name, followed by the function's optional comma separated parameters enclosed in parenthesis, and finally followed by optional explanatory text.

+

A function name may be followed by a `?' and a number. The number is used by auto-completion to display a registered QPixmap with the function name.

+

All function names are used by auto-completion, but only those that include function parameters are used in call tips.

+

QScintilla only deals with prepared API information and not the raw information described above. This is done so that large APIs can be handled while still being responsive to user input. The conversion of raw information to prepared information is time consuming (think tens of seconds) and implemented in a separate thread. Prepared information can be quickly saved to and loaded from files. Such files are portable between different architectures.

+

QScintilla based applications that want to support large APIs would normally provide the user with the ability to specify a set of, possibly project specific, raw API files and convert them to prepared files that are loaded quickly when the application is invoked.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciAPIs::QsciAPIs (QsciLexerlexer,
const char * name = 0 
)
+
+
+

Constructs a QsciAPIs instance attached to lexer lexer and with name name. lexer becomes the instance's parent object although the instance can also be subsequently attached to other lexers.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
void QsciAPIs::add (const QString & entry)
+
+
+

Add the single raw API entry entry to the current set.

+
See also:
clear(), load(), remove()
+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::clear ()
+
+
+

Deletes all raw API information.

+
See also:
add(), load(), remove()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciAPIs::load (const QString & filename)
+
+
+

Load the API information from the file named filename, adding it to the current set. Returns true if successful, otherwise false.

+ +
+
+ +
+
+ + + + + + + + +
void QsciAPIs::remove (const QString & entry)
+
+
+

Remove the single raw API entry entry from the current set.

+
See also:
add(), clear(), load()
+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::prepare ()
+
+
+

Convert the current raw API information to prepared API information. This is implemented by a separate thread.

+
See also:
cancelPreparation()
+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::cancelPreparation ()
+
+
+

Cancel the conversion of the current raw API information to prepared API information.

+
See also:
prepare()
+ +
+
+ +
+
+ + + + + + + +
QString QsciAPIs::defaultPreparedName () const
+
+
+

Return the default name of the prepared API information file. It is based on the name of the associated lexer and in the directory defined by the QSCIDIR environment variable. If the environment variable isn't set then $HOME/.qsci is used.

+ +
+
+ +
+
+ + + + + + + + +
bool QsciAPIs::isPrepared (const QString & filename = QString()) const
+
+
+

Check to see is a prepared API information file named filename exists. If filename is empty then the value returned by defaultPreparedName() is used. Returns true if successful, otherwise false.

+
See also:
defaultPreparedName()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciAPIs::loadPrepared (const QString & filename = QString())
+
+
+

Load the prepared API information from the file named filename. If filename is empty then a name is constructed based on the name of the associated lexer and saved in the directory defined by the QSCIDIR environment variable. If the environment variable isn't set then $HOME/.qsci is used. Returns true if successful, otherwise false.

+ +
+
+ +
+
+ + + + + + + + +
bool QsciAPIs::savePrepared (const QString & filename = QString()) const
+
+
+

Save the prepared API information to the file named filename. If filename is empty then a name is constructed based on the name of the associated lexer and saved in the directory defined by the QSCIDIR environment variable. If the environment variable isn't set then $HOME/.qsci is used. Returns true if successful, otherwise false.

+ +
+
+ +
+
+ + + + + + + +
QStringList QsciAPIs::installedAPIFiles () const
+
+
+

Return a list of the installed raw API file names for the associated lexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::apiPreparationCancelled () [signal]
+
+
+

This signal is emitted when the conversion of raw API information to prepared API information has been cancelled.

+
See also:
apiPreparationFinished(), apiPreparationStarted()
+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::apiPreparationStarted () [signal]
+
+
+

This signal is emitted when the conversion of raw API information to prepared API information starts and can be used to give some visual feedback to the user.

+
See also:
apiPreparationCancelled(), apiPreparationFinished()
+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::apiPreparationFinished () [signal]
+
+
+

This signal is emitted when the conversion of raw API information to prepared API information has finished.

+
See also:
apiPreparationCancelled(), apiPreparationStarted()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciAbstractAPIs-members.html b/doc/html-Qt3/classQsciAbstractAPIs-members.html new file mode 100644 index 0000000..2cd2bb9 --- /dev/null +++ b/doc/html-Qt3/classQsciAbstractAPIs-members.html @@ -0,0 +1,75 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciAbstractAPIs Member List
+
+
+This is the complete list of members for QsciAbstractAPIs, including all inherited members. + + + + + + +
autoCompletionSelected(const QString &selection)QsciAbstractAPIs [virtual]
callTips(const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QValueList< int > &shifts)=0QsciAbstractAPIs [pure virtual]
lexer() const QsciAbstractAPIs
QsciAbstractAPIs(QsciLexer *lexer, const char *name=0)QsciAbstractAPIs
updateAutoCompletionList(const QStringList &context, QStringList &list)=0QsciAbstractAPIs [pure virtual]
~QsciAbstractAPIs()QsciAbstractAPIs [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciAbstractAPIs.html b/doc/html-Qt3/classQsciAbstractAPIs.html new file mode 100644 index 0000000..5fa7977 --- /dev/null +++ b/doc/html-Qt3/classQsciAbstractAPIs.html @@ -0,0 +1,214 @@ + + + + +QScintilla: QsciAbstractAPIs Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciAbstractAPIs Class Reference
+
+
+ +

#include <qsciabstractapis.h>

+ +

Inherited by QsciAPIs.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciAbstractAPIs class represents the interface to the textual API information used in call tips and for auto-completion. A sub-class will provide the actual implementation of the interface.

+

API information is specific to a particular language lexer but can be shared by multiple instances of the lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciAbstractAPIs::QsciAbstractAPIs (QsciLexerlexer,
const char * name = 0 
)
+
+
+

Constructs a QsciAbstractAPIs instance attached to lexer lexer and with name name. lexer becomes the instance's parent object although the instance can also be subsequently attached to other lexers.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciAbstractAPIs::updateAutoCompletionList (const QStringList & context,
QStringList & list 
) [pure virtual]
+
+
+

Update the list list with API entries derived from context. context is the list of words in the text preceding the cursor position. The characters that make up a word and the characters that separate words are defined by the lexer. The last word is a partial word and may be empty if the user has just entered a word separator.

+ +

Implemented in QsciAPIs.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciAbstractAPIs::autoCompletionSelected (const QString & selection) [virtual]
+
+
+

This is called when the user selects the entry selection from the auto-completion list. A sub-class can use this as a hint to provide more specific API entries in future calls to updateAutoCompletionList(). The default implementation does nothing.

+ +

Reimplemented in QsciAPIs.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual QStringList QsciAbstractAPIs::callTips (const QStringList & context,
int commas,
QsciScintilla::CallTipsStyle style,
QValueList< int > & shifts 
) [pure virtual]
+
+
+

Return the call tips valid for the context context. (Note that the last word of the context will always be empty.) commas is the number of commas the user has typed after the context and before the cursor position. The exact position of the list of call tips can be adjusted by specifying a corresponding left character shift in shifts. This is normally done to correct for any displayed context according to style.

+
See also:
updateAutoCompletionList()
+ +

Implemented in QsciAPIs.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciCommand-members.html b/doc/html-Qt3/classQsciCommand-members.html new file mode 100644 index 0000000..b1c1156 --- /dev/null +++ b/doc/html-Qt3/classQsciCommand-members.html @@ -0,0 +1,176 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciCommand Member List
+
+
+This is the complete list of members for QsciCommand, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
alternateKey() const QsciCommand [inline]
Backtab enum valueQsciCommand
Cancel enum valueQsciCommand
CharLeft enum valueQsciCommand
CharLeftExtend enum valueQsciCommand
CharLeftRectExtend enum valueQsciCommand
CharRight enum valueQsciCommand
CharRightExtend enum valueQsciCommand
CharRightRectExtend enum valueQsciCommand
command() const QsciCommand [inline]
Command enum nameQsciCommand
Delete enum valueQsciCommand
DeleteBack enum valueQsciCommand
DeleteBackNotLine enum valueQsciCommand
DeleteLineLeft enum valueQsciCommand
DeleteLineRight enum valueQsciCommand
DeleteWordLeft enum valueQsciCommand
DeleteWordRight enum valueQsciCommand
DeleteWordRightEnd enum valueQsciCommand
description() const QsciCommand
DocumentEnd enum valueQsciCommand
DocumentEndExtend enum valueQsciCommand
DocumentStart enum valueQsciCommand
DocumentStartExtend enum valueQsciCommand
EditToggleOvertype enum valueQsciCommand
execute()QsciCommand
Formfeed enum valueQsciCommand
Home enum valueQsciCommand
HomeDisplay enum valueQsciCommand
HomeDisplayExtend enum valueQsciCommand
HomeExtend enum valueQsciCommand
HomeRectExtend enum valueQsciCommand
HomeWrap enum valueQsciCommand
HomeWrapExtend enum valueQsciCommand
key() const QsciCommand [inline]
LineCopy enum valueQsciCommand
LineCut enum valueQsciCommand
LineDelete enum valueQsciCommand
LineDown enum valueQsciCommand
LineDownExtend enum valueQsciCommand
LineDownRectExtend enum valueQsciCommand
LineDuplicate enum valueQsciCommand
LineEnd enum valueQsciCommand
LineEndDisplay enum valueQsciCommand
LineEndDisplayExtend enum valueQsciCommand
LineEndExtend enum valueQsciCommand
LineEndRectExtend enum valueQsciCommand
LineEndWrap enum valueQsciCommand
LineEndWrapExtend enum valueQsciCommand
LineScrollDown enum valueQsciCommand
LineScrollUp enum valueQsciCommand
LineTranspose enum valueQsciCommand
LineUp enum valueQsciCommand
LineUpExtend enum valueQsciCommand
LineUpRectExtend enum valueQsciCommand
MoveSelectedLinesDown enum valueQsciCommand
MoveSelectedLinesUp enum valueQsciCommand
Newline enum valueQsciCommand
PageDown enum valueQsciCommand
PageDownExtend enum valueQsciCommand
PageDownRectExtend enum valueQsciCommand
PageUp enum valueQsciCommand
PageUpExtend enum valueQsciCommand
PageUpRectExtend enum valueQsciCommand
ParaDown enum valueQsciCommand
ParaDownExtend enum valueQsciCommand
ParaUp enum valueQsciCommand
ParaUpExtend enum valueQsciCommand
Paste enum valueQsciCommand
Redo enum valueQsciCommand
ScrollToEnd enum valueQsciCommand
ScrollToStart enum valueQsciCommand
SelectAll enum valueQsciCommand
SelectionCopy enum valueQsciCommand
SelectionCut enum valueQsciCommand
SelectionDuplicate enum valueQsciCommand
SelectionLowerCase enum valueQsciCommand
SelectionUpperCase enum valueQsciCommand
setAlternateKey(int altkey)QsciCommand
setKey(int key)QsciCommand
StutteredPageDown enum valueQsciCommand
StutteredPageDownExtend enum valueQsciCommand
StutteredPageUp enum valueQsciCommand
StutteredPageUpExtend enum valueQsciCommand
Tab enum valueQsciCommand
Undo enum valueQsciCommand
validKey(int key)QsciCommand [static]
VCHome enum valueQsciCommand
VCHomeExtend enum valueQsciCommand
VCHomeRectExtend enum valueQsciCommand
VCHomeWrap enum valueQsciCommand
VCHomeWrapExtend enum valueQsciCommand
VerticalCentreCaret enum valueQsciCommand
WordLeft enum valueQsciCommand
WordLeftEnd enum valueQsciCommand
WordLeftEndExtend enum valueQsciCommand
WordLeftExtend enum valueQsciCommand
WordPartLeft enum valueQsciCommand
WordPartLeftExtend enum valueQsciCommand
WordPartRight enum valueQsciCommand
WordPartRightExtend enum valueQsciCommand
WordRight enum valueQsciCommand
WordRightEnd enum valueQsciCommand
WordRightEndExtend enum valueQsciCommand
WordRightExtend enum valueQsciCommand
ZoomIn enum valueQsciCommand
ZoomOut enum valueQsciCommand
+ + + + + + diff --git a/doc/html-Qt3/classQsciCommand.html b/doc/html-Qt3/classQsciCommand.html new file mode 100644 index 0000000..7ccd76d --- /dev/null +++ b/doc/html-Qt3/classQsciCommand.html @@ -0,0 +1,625 @@ + + + + +QScintilla: QsciCommand Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciCommand Class Reference
+
+
+ +

#include <qscicommand.h>

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Static Public Member Functions

+ +

Detailed Description

+

The QsciCommand class represents an internal editor command that may have one or two keys bound to it.

+

Methods are provided to change the keys bound to the command and to remove a key binding. Each command has a user friendly description of the command for use in key mapping dialogs.

+

Member Enumeration Documentation

+ +
+
+ + + + +
enum QsciCommand::Command
+
+
+ +

This enum defines the different commands that can be assigned to a key.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LineDown  +

Move down one line.

+
LineDownExtend  +

Extend the selection down one line.

+
LineDownRectExtend  +

Extend the rectangular selection down one line.

+
LineScrollDown  +

Scroll the view down one line.

+
LineUp  +

Move up one line.

+
LineUpExtend  +

Extend the selection up one line.

+
LineUpRectExtend  +

Extend the rectangular selection up one line.

+
LineScrollUp  +

Scroll the view up one line.

+
ScrollToStart  +

Scroll to the start of the document.

+
ScrollToEnd  +

Scroll to the end of the document.

+
VerticalCentreCaret  +

Scroll vertically to centre the current line.

+
ParaDown  +

Move down one paragraph.

+
ParaDownExtend  +

Extend the selection down one paragraph.

+
ParaUp  +

Move up one paragraph.

+
ParaUpExtend  +

Extend the selection up one paragraph.

+
CharLeft  +

Move left one character.

+
CharLeftExtend  +

Extend the selection left one character.

+
CharLeftRectExtend  +

Extend the rectangular selection left one character.

+
CharRight  +

Move right one character.

+
CharRightExtend  +

Extend the selection right one character.

+
CharRightRectExtend  +

Extend the rectangular selection right one character.

+
WordLeft  +

Move left one word.

+
WordLeftExtend  +

Extend the selection left one word.

+
WordRight  +

Move right one word.

+
WordRightExtend  +

Extend the selection right one word.

+
WordLeftEnd  +

Move to the end of the previous word.

+
WordLeftEndExtend  +

Extend the selection to the end of the previous word.

+
WordRightEnd  +

Move to the end of the next word.

+
WordRightEndExtend  +

Extend the selection to the end of the next word.

+
WordPartLeft  +

Move left one word part.

+
WordPartLeftExtend  +

Extend the selection left one word part.

+
WordPartRight  +

Move right one word part.

+
WordPartRightExtend  +

Extend the selection right one word part.

+
Home  +

Move to the start of the document line.

+
HomeExtend  +

Extend the selection to the start of the document line.

+
HomeRectExtend  +

Extend the rectangular selection to the start of the document line.

+
HomeDisplay  +

Move to the start of the displayed line.

+
HomeDisplayExtend  +

Extend the selection to the start of the displayed line.

+
HomeWrap  +

Move to the start of the displayed or document line.

+
HomeWrapExtend  +

Extend the selection to the start of the displayed or document line.

+
VCHome  +

Move to the first visible character in the document line.

+
VCHomeExtend  +

Extend the selection to the first visible character in the document line.

+
VCHomeRectExtend  +

Extend the rectangular selection to the first visible character in the document line.

+
VCHomeWrap  +

Move to the first visible character of the displayed or document line.

+
VCHomeWrapExtend  +

Extend the selection to the first visible character of the displayed or document line.

+
LineEnd  +

Move to the end of the document line.

+
LineEndExtend  +

Extend the selection to the end of the document line.

+
LineEndRectExtend  +

Extend the rectangular selection to the end of the document line.

+
LineEndDisplay  +

Move to the end of the displayed line.

+
LineEndDisplayExtend  +

Extend the selection to the end of the displayed line.

+
LineEndWrap  +

Move to the end of the displayed or document line.

+
LineEndWrapExtend  +

Extend the selection to the end of the displayed or document line.

+
DocumentStart  +

Move to the start of the document.

+
DocumentStartExtend  +

Extend the selection to the start of the document.

+
DocumentEnd  +

Move to the end of the document.

+
DocumentEndExtend  +

Extend the selection to the end of the document.

+
PageUp  +

Move up one page.

+
PageUpExtend  +

Extend the selection up one page.

+
PageUpRectExtend  +

Extend the rectangular selection up one page.

+
PageDown  +

Move down one page.

+
PageDownExtend  +

Extend the selection down one page.

+
PageDownRectExtend  +

Extend the rectangular selection down one page.

+
StutteredPageUp  +

Stuttered move up one page.

+
StutteredPageUpExtend  +

Stuttered extend the selection up one page.

+
StutteredPageDown  +

Stuttered move down one page.

+
StutteredPageDownExtend  +

Stuttered extend the selection down one page.

+
Delete  +

Delete the current character.

+
DeleteBack  +

Delete the previous character.

+
DeleteBackNotLine  +

Delete the previous character if not at start of line.

+
DeleteWordLeft  +

Delete the word to the left.

+
DeleteWordRight  +

Delete the word to the right.

+
DeleteWordRightEnd  +

Delete right to the end of the next word.

+
DeleteLineLeft  +

Delete the line to the left.

+
DeleteLineRight  +

Delete the line to the right.

+
LineDelete  +

Delete the current line.

+
LineCut  +

Cut the current line to the clipboard.

+
LineCopy  +

Copy the current line to the clipboard.

+
LineTranspose  +

Transpose the current and previous lines.

+
LineDuplicate  +

Duplicate the current line.

+
SelectAll  +

Select the whole document.

+
MoveSelectedLinesUp  +

Move the selected lines up one line.

+
MoveSelectedLinesDown  +

Move the selected lines down one line.

+
SelectionDuplicate  +

Duplicate the selection.

+
SelectionLowerCase  +

Convert the selection to lower case.

+
SelectionUpperCase  +

Convert the selection to upper case.

+
SelectionCut  +

Cut the selection to the clipboard.

+
SelectionCopy  +

Copy the selection to the clipboard.

+
Paste  +

Paste from the clipboard.

+
EditToggleOvertype  +

Toggle insert/overtype.

+
Newline  +

Insert a platform dependent newline.

+
Formfeed  +

Insert a formfeed.

+
Tab  +

Indent one level.

+
Backtab  +

De-indent one level.

+
Cancel  +

Cancel any current operation.

+
Undo  +

Undo the last command.

+
Redo  +

Redo the last command.

+
ZoomIn  +

Zoom in.

+
ZoomOut  +

Zoom out.

+
+
+
+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
void QsciCommand::setKey (int key)
+
+
+

Binds the key key to the command. If key is 0 then the key binding is removed. If key is invalid then the key binding is unchanged. Valid keys are any visible or control character or any of Qt::Key_Down, Qt::Key_Up, Qt::Key_Left, Qt::Key_Right, Qt::Key_Home, Qt::Key_End, Qt::Key_PageUp, Qt::Key_PageDown, Qt::Key_Delete, Qt::Key_Insert, Qt::Key_Escape, Qt::Key_Backspace, Qt::Key_Tab, Qt::Key_Backtab, Qt::Key_Return, Qt::Key_Enter, Qt::Key_Super_L, Qt::Key_Super_R or Qt::Key_Menu. Keys may be modified with any combination of Qt::ShiftModifier, Qt::ControlModifier, Qt::AltModifier and Qt::MetaModifier.

+
See also:
key(), setAlternateKey(), validKey()
+ +
+
+ +
+
+ + + + + + + + +
void QsciCommand::setAlternateKey (int altkey)
+
+
+

Binds the alternate key altkey to the command. If key is 0 then the alternate key binding is removed.

+
See also:
alternateKey(), setKey(), validKey()
+ +
+
+ +
+
+ + + + + + + +
int QsciCommand::key () const [inline]
+
+
+

The key that is currently bound to the command is returned.

+
See also:
setKey(), alternateKey()
+ +
+
+ +
+
+ + + + + + + +
int QsciCommand::alternateKey () const [inline]
+
+
+

The alternate key that is currently bound to the command is returned.

+
See also:
setAlternateKey(), key()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciCommandSet-members.html b/doc/html-Qt3/classQsciCommandSet-members.html new file mode 100644 index 0000000..2394e41 --- /dev/null +++ b/doc/html-Qt3/classQsciCommandSet-members.html @@ -0,0 +1,76 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciCommandSet Member List
+
+
+This is the complete list of members for QsciCommandSet, including all inherited members. + + + + + + + +
boundTo(int key) const (defined in QsciCommandSet)QsciCommandSet
clearAlternateKeys()QsciCommandSet
clearKeys()QsciCommandSet
commands()QsciCommandSet [inline]
find(QsciCommand::Command command) const (defined in QsciCommandSet)QsciCommandSet
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciCommandSet
writeSettings(QSettings &qs, const char *prefix="/Scintilla")QsciCommandSet
+ + + + + + diff --git a/doc/html-Qt3/classQsciCommandSet.html b/doc/html-Qt3/classQsciCommandSet.html new file mode 100644 index 0000000..4ee69c1 --- /dev/null +++ b/doc/html-Qt3/classQsciCommandSet.html @@ -0,0 +1,152 @@ + + + + +QScintilla: QsciCommandSet Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciCommandSet Class Reference
+
+
+ +

#include <qscicommandset.h>

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciCommandSet class represents the set of all internal editor commands that may have keys bound.

+

Methods are provided to access the individual commands and to read and write the current bindings from and to settings files.

+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciCommandSet::readSettings (QSettings & qs,
const char * prefix = "/Scintilla" 
)
+
+
+

The key bindings for each command in the set are read from the settings qs. prefix is prepended to the key of each entry. true is returned if there was no error.

+
See also:
writeSettings()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciCommandSet::writeSettings (QSettings & qs,
const char * prefix = "/Scintilla" 
)
+
+
+

The key bindings for each command in the set are written to the settings qs. prefix is prepended to the key of each entry. true is returned if there was no error.

+
See also:
readSettings()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciDocument-members.html b/doc/html-Qt3/classQsciDocument-members.html new file mode 100644 index 0000000..0fbacf3 --- /dev/null +++ b/doc/html-Qt3/classQsciDocument-members.html @@ -0,0 +1,73 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciDocument Member List
+
+
+This is the complete list of members for QsciDocument, including all inherited members. + + + + +
operator=(const QsciDocument &) (defined in QsciDocument)QsciDocument
QsciDocument()QsciDocument
QsciDocument(const QsciDocument &) (defined in QsciDocument)QsciDocument
~QsciDocument() (defined in QsciDocument)QsciDocument [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciDocument.html b/doc/html-Qt3/classQsciDocument.html new file mode 100644 index 0000000..7829cbf --- /dev/null +++ b/doc/html-Qt3/classQsciDocument.html @@ -0,0 +1,87 @@ + + + + +QScintilla: QsciDocument Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciDocument Class Reference
+
+
+ +

#include <qscidocument.h>

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciDocument class represents a document to be edited.

+

It is an opaque class that can be attached to multiple instances of QsciScintilla to create different simultaneous views of the same document. QsciDocument uses implicit sharing so that copying class instances is a cheap operation.

+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexer-members.html b/doc/html-Qt3/classQsciLexer-members.html new file mode 100644 index 0000000..ce0b775 --- /dev/null +++ b/doc/html-Qt3/classQsciLexer-members.html @@ -0,0 +1,122 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexer Member List
+
+
+This is the complete list of members for QsciLexer, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
defaultColor() const QsciLexer
defaultColor(int style) const QsciLexer [virtual]
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont() const QsciLexer
defaultFont(int style) const QsciLexer [virtual]
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const =0QsciLexer [pure virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexer [virtual]
language() const =0QsciLexer [pure virtual]
lexer() const QsciLexer [virtual]
lexerId() const QsciLexer [virtual]
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexer.html b/doc/html-Qt3/classQsciLexer.html new file mode 100644 index 0000000..5c64df4 --- /dev/null +++ b/doc/html-Qt3/classQsciLexer.html @@ -0,0 +1,1027 @@ + + + + +QScintilla: QsciLexer Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexer Class Reference
+
+
+ +

#include <qscilexer.h>

+ +

Inherited by QsciLexerAVS, QsciLexerBash, QsciLexerBatch, QsciLexerCMake, QsciLexerCoffeeScript, QsciLexerCPP, QsciLexerCSS, QsciLexerCustom, QsciLexerD, QsciLexerDiff, QsciLexerFortran77, QsciLexerHTML, QsciLexerLua, QsciLexerMakefile, QsciLexerMatlab, QsciLexerPascal, QsciLexerPerl, QsciLexerPO, QsciLexerPostScript, QsciLexerPOV, QsciLexerProperties, QsciLexerPython, QsciLexerRuby, QsciLexerSpice, QsciLexerSQL, QsciLexerTCL, QsciLexerTeX, QsciLexerVerilog, QsciLexerVHDL, and QsciLexerYAML.

+ +

List of all members.

+

+Classes

+
    +
  • struct StyleData +
  • struct StyleDataMap +
+

+Public Slots

+
    +
  • virtual void setAutoIndentStyle (int autoindentstyle) +
  • virtual void setColor (const QColor &c, int style=-1) +
  • virtual void setEolFill (bool eoffill, int style=-1) +
  • virtual void setFont (const QFont &f, int style=-1) +
  • virtual void setPaper (const QColor &c, int style=-1) +
+

+Signals

+ +

+Public Member Functions

+ +

+Protected Member Functions

+
    +
  • virtual bool readProperties (QSettings &qs, const QString &prefix) +
  • virtual bool writeProperties (QSettings &qs, const QString &prefix) const +
+

Detailed Description

+

The QsciLexer class is an abstract class used as a base for language lexers.

+

A lexer scans the text breaking it up into separate language objects, e.g. keywords, strings, operators. The lexer then uses a different style to draw each object. A style is identified by a style number and has a number of attributes, including colour and font. A specific language lexer will implement appropriate default styles which can be overriden by an application by further sub-classing the specific language lexer.

+

A lexer may provide one or more sets of words to be recognised as keywords. Most lexers only provide one set, but some may support languages embedded in other languages and provide several sets.

+

QsciLexer provides convenience methods for saving and restoring user preferences for fonts and colours.

+

If you want to write a lexer for a new language then you can add it to the underlying Scintilla code and implement a corresponding QsciLexer sub-class to manage the different styles used. Alternatively you can implement a sub-class of QsciLexerCustom.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexer::QsciLexer (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexer with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ + + +
+
+ + + + + + + +
virtual const char* QsciLexer::lexer () const [virtual]
+
+ +
+ +
+
+ + + + + + + +
virtual int QsciLexer::lexerId () const [virtual]
+
+
+

Returns the identifier (i.e. a QsciScintillaBase::SCLEX_* value) of the lexer. This is only used if lexer() returns 0. The default implementation returns QsciScintillaBase::SCLEX_CONTAINER.

+
See also:
lexer()
+ +
+
+ +
+
+ + + + + + + +
QsciAbstractAPIs* QsciLexer::apis () const
+
+
+

Returns the current API set or 0 if there isn't one.

+
See also:
setAPIs()
+ +
+
+ +
+
+ + + + + + + +
int QsciLexer::autoIndentStyle ()
+
+
+

Returns the auto-indentation style. The default is 0 if the language is block structured, or QsciScintilla::AiMaintain if not.

+
See also:
setAutoIndentStyle(), QsciScintilla::AiMaintain, QsciScintilla::AiOpening, QsciScintilla::AiClosing
+ +
+
+ +
+
+ + + + + + + + +
virtual QColor QsciLexer::color (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style. The default colour is that returned by defaultColor().

+
See also:
defaultColor(), paper()
+ +
+
+ +
+
+ + + + + + + + +
virtual bool QsciLexer::eolFill (int style) const [virtual]
+
+
+

Returns the end-of-line for style number style. The default is false.

+ +
+
+ +
+
+ + + + + + + + +
virtual QFont QsciLexer::font (int style) const [virtual]
+
+
+

Returns the font for style number style. The default font is that returned by defaultFont().

+
See also:
defaultFont()
+ +
+
+ +
+
+ + + + + + + + +
virtual const char* QsciLexer::keywords (int set) const [virtual]
+
+ +
+ +
+
+ + + + + + + + +
virtual QString QsciLexer::description (int style) const [pure virtual]
+
+
+

Returns the descriptive name for style number style. For a valid style number for this language a non-empty QString must be returned. If the style number is invalid then an empty QString must be returned. This is intended to be used in user preference dialogs.

+ +

Implemented in QsciLexerHTML, QsciLexerPerl, QsciLexerCPP, QsciLexerRuby, QsciLexerCoffeeScript, QsciLexerD, QsciLexerPython, QsciLexerCSS, QsciLexerLua, QsciLexerSQL, QsciLexerTCL, QsciLexerPascal, QsciLexerPOV, QsciLexerVerilog, QsciLexerPostScript, QsciLexerFortran77, QsciLexerVHDL, QsciLexerBash, QsciLexerAVS, QsciLexerCMake, QsciLexerPO, QsciLexerBatch, QsciLexerYAML, QsciLexerSpice, QsciLexerMakefile, QsciLexerMatlab, QsciLexerProperties, QsciLexerDiff, QsciLexerTeX, QsciLexerCSharp, QsciLexerJavaScript, and QsciLexerIDL.

+ +
+
+ +
+
+ + + + + + + + +
virtual QColor QsciLexer::paper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultPaper(), color()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciLexer::defaultColor () const
+
+
+

Returns the default text colour.

+
See also:
setDefaultColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual bool QsciLexer::defaultEolFill (int style) const [virtual]
+
+ +
+ +
+
+ + + + + + + +
QFont QsciLexer::defaultFont () const
+
+
+

Returns the default font.

+
See also:
setDefaultFont()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciLexer::defaultPaper () const
+
+
+

Returns the default paper colour.

+
See also:
setDefaultPaper()
+ +
+
+ +
+
+ + + + + + + +
QsciScintilla* QsciLexer::editor () const [inline]
+
+
+

Returns the QsciScintilla instance that the lexer is currently attached to or 0 if it is unattached.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexer::setAPIs (QsciAbstractAPIsapis)
+
+
+

The current set of APIs is set to apis. If apis is 0 then any existing APIs for this lexer are removed.

+
See also:
apis()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexer::setDefaultColor (const QColor & c)
+
+
+

The default text colour is set to c.

+
See also:
defaultColor(), color()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexer::setDefaultFont (const QFont & f)
+
+
+

The default font is set to f.

+
See also:
defaultFont(), font()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexer::setDefaultPaper (const QColor & c)
+
+
+

The default paper colour is set to c.

+
See also:
defaultPaper(), paper()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexer::readSettings (QSettings & qs,
const char * prefix = "/Scintilla" 
)
+
+
+

The colour, paper, font and end-of-line for each style number, and all lexer specific properties are read from the settings qs. prefix is prepended to the key of each entry. true is returned if there was no error.

+
See also:
writeSettings(), QsciScintilla::setLexer()
+ +
+
+ + + +
+
+ + + + + + + +
virtual int QsciLexer::styleBitsNeeded () const [virtual]
+
+
+

Returns the number of style bits needed by the lexer. Normally this should only be re-implemented by custom lexers.

+ +

Reimplemented in QsciLexerCustom.

+ +
+
+ +
+
+ + + + + + + +
virtual const char* QsciLexer::wordCharacters () const [virtual]
+
+
+

Returns the string of characters that comprise a word. The default is 0 which implies the upper and lower case alphabetic characters and underscore.

+ +

Reimplemented in QsciLexerHTML, QsciLexerPerl, QsciLexerCPP, QsciLexerCoffeeScript, QsciLexerD, QsciLexerCSS, QsciLexerPOV, QsciLexerVerilog, QsciLexerAVS, QsciLexerBash, QsciLexerBatch, QsciLexerDiff, QsciLexerMakefile, QsciLexerProperties, and QsciLexerTeX.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexer::writeSettings (QSettings & qs,
const char * prefix = "/Scintilla" 
) const
+
+
+

The colour, paper, font and end-of-line for each style number, and all lexer specific properties are written to the settings qs. prefix is prepended to the key of each entry. true is returned if there was no error.

+
See also:
readSettings()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexer::setAutoIndentStyle (int autoindentstyle) [virtual, slot]
+
+
+

The auto-indentation style is set to autoindentstyle.

+
See also:
autoIndentStyle(), QsciScintilla::AiMaintain, QsciScintilla::AiOpening, QsciScintilla::AiClosing
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciLexer::setColor (const QColor & c,
int style = -1 
) [virtual, slot]
+
+
+

The foreground colour for style number style is set to c. If style is -1 then the colour is set for all styles.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciLexer::setEolFill (bool eoffill,
int style = -1 
) [virtual, slot]
+
+
+

The end-of-line fill for style number style is set to eoffill. If style is -1 then the fill is set for all styles.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciLexer::setFont (const QFont & f,
int style = -1 
) [virtual, slot]
+
+
+

The font for style number style is set to f. If style is -1 then the font is set for all styles.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciLexer::setPaper (const QColor & c,
int style = -1 
) [virtual, slot]
+
+
+

The background colour for style number style is set to c. If style is -1 then the colour is set for all styles.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexer::colorChanged (const QColor & c,
int style 
) [signal]
+
+
+

This signal is emitted when the foreground colour of style number style has changed. The new colour is c.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexer::eolFillChanged (bool eolfilled,
int style 
) [signal]
+
+
+

This signal is emitted when the end-of-file fill of style number style has changed. The new fill is eolfilled.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexer::fontChanged (const QFont & f,
int style 
) [signal]
+
+
+

This signal is emitted when the font of style number style has changed. The new font is f.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexer::paperChanged (const QColor & c,
int style 
) [signal]
+
+
+

This signal is emitted when the background colour of style number style has changed. The new colour is c.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexer::propertyChanged (const char * prop,
const char * val 
) [signal]
+
+
+

This signal is emitted when the value of the lexer property prop needs to be changed. The new value is val.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual bool QsciLexer::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented in QsciLexerHTML, QsciLexerCPP, QsciLexerPerl, QsciLexerPython, QsciLexerSQL, QsciLexerCoffeeScript, QsciLexerCSS, QsciLexerRuby, QsciLexerD, QsciLexerPascal, QsciLexerVerilog, QsciLexerVHDL, QsciLexerPOV, QsciLexerPostScript, QsciLexerLua, QsciLexerTCL, QsciLexerBash, QsciLexerAVS, QsciLexerFortran77, QsciLexerPO, QsciLexerCMake, QsciLexerTeX, QsciLexerProperties, QsciLexerYAML, and QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual bool QsciLexer::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented in QsciLexerHTML, QsciLexerCPP, QsciLexerPerl, QsciLexerPython, QsciLexerSQL, QsciLexerCoffeeScript, QsciLexerCSS, QsciLexerD, QsciLexerRuby, QsciLexerPascal, QsciLexerVerilog, QsciLexerVHDL, QsciLexerPOV, QsciLexerPostScript, QsciLexerLua, QsciLexerTCL, QsciLexerBash, QsciLexerAVS, QsciLexerFortran77, QsciLexerPO, QsciLexerCMake, QsciLexerTeX, QsciLexerProperties, QsciLexerYAML, and QsciLexerXML.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerAVS-members.html b/doc/html-Qt3/classQsciLexerAVS-members.html new file mode 100644 index 0000000..aba7456 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerAVS-members.html @@ -0,0 +1,143 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerAVS Member List
+
+
+This is the complete list of members for QsciLexerAVS, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
BlockComment enum valueQsciLexerAVS
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerAVS)QsciLexerAVS [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
ClipProperty enum valueQsciLexerAVS
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Default enum valueQsciLexerAVS
defaultColor(int style) const QsciLexerAVS [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerAVS [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerAVS [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Filter enum valueQsciLexerAVS
foldComments() const QsciLexerAVS
foldCompact() const QsciLexerAVS
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Function enum valueQsciLexerAVS
Identifier enum valueQsciLexerAVS
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerAVS
keywords(int set) const QsciLexerAVS [virtual]
KeywordSet6 enum valueQsciLexerAVS
language() const QsciLexerAVS [virtual]
lexer() const QsciLexerAVS [virtual]
lexerId() const QsciLexer [virtual]
LineComment enum valueQsciLexerAVS
NestedBlockComment enum valueQsciLexerAVS
Number enum valueQsciLexerAVS
Operator enum valueQsciLexerAVS
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Plugin enum valueQsciLexerAVS
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerAVS(QObject *parent=0, const char *name=0)QsciLexerAVS
readProperties(QSettings &qs, const QString &prefix)QsciLexerAVS [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerAVS [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerAVS [virtual, slot]
setFoldCompact(bool fold)QsciLexerAVS [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerAVS
styleBitsNeeded() const QsciLexer [virtual]
TripleString enum valueQsciLexerAVS
wordCharacters() const QsciLexerAVS [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerAVS [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerAVS()QsciLexerAVS [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerAVS.html b/doc/html-Qt3/classQsciLexerAVS.html new file mode 100644 index 0000000..9d5ac8a --- /dev/null +++ b/doc/html-Qt3/classQsciLexerAVS.html @@ -0,0 +1,468 @@ + + + + +QScintilla: QsciLexerAVS Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerAVS Class Reference
+
+
+ +

#include <qscilexeravs.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerAVS class encapsulates the Scintilla AVS lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the AVS lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
BlockComment  +

A block comment.

+
NestedBlockComment  +

A nested block comment.

+
LineComment  +

A line comment.

+
Number  +

A number.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
String  +

A string.

+
TripleString  +

A triple quoted string.

+
Keyword  +

A keyword (as defined by keyword set number 1)..

+
Filter  +

A filter (as defined by keyword set number 2).

+
Plugin  +

A plugin (as defined by keyword set number 3).

+
Function  +

A function (as defined by keyword set number 4).

+
ClipProperty  +

A clip property (as defined by keyword set number 5).

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerAVS::QsciLexerAVS (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerAVS with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerAVS::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerAVS::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerAVS::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerAVS::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerAVS::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerAVS::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerAVS::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerAVS::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerAVS::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerAVS::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerAVS::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerBash-members.html b/doc/html-Qt3/classQsciLexerBash-members.html new file mode 100644 index 0000000..7b2f95c --- /dev/null +++ b/doc/html-Qt3/classQsciLexerBash-members.html @@ -0,0 +1,142 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerBash Member List
+
+
+This is the complete list of members for QsciLexerBash, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
Backticks enum valueQsciLexerBash
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerBash)QsciLexerBash [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerBash
Default enum valueQsciLexerBash
defaultColor(int style) const QsciLexerBash [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerBash [virtual]
defaultFont(int style) const QsciLexerBash [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerBash [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerBash [virtual]
DoubleQuotedString enum valueQsciLexerBash
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Error enum valueQsciLexerBash
foldComments() const QsciLexerBash
foldCompact() const QsciLexerBash
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HereDocumentDelimiter enum valueQsciLexerBash
Identifier enum valueQsciLexerBash
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerBash
keywords(int set) const QsciLexerBash [virtual]
language() const QsciLexerBash [virtual]
lexer() const QsciLexerBash [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerBash
Operator enum valueQsciLexerBash
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
ParameterExpansion enum valueQsciLexerBash
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerBash(QObject *parent=0, const char *name=0)QsciLexerBash
readProperties(QSettings &qs, const QString &prefix)QsciLexerBash [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerBash [virtual]
Scalar enum valueQsciLexerBash
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerBash [virtual, slot]
setFoldCompact(bool fold)QsciLexerBash [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedHereDocument enum valueQsciLexerBash
SingleQuotedString enum valueQsciLexerBash
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexerBash [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerBash [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerBash()QsciLexerBash [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerBash.html b/doc/html-Qt3/classQsciLexerBash.html new file mode 100644 index 0000000..1bc9a74 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerBash.html @@ -0,0 +1,488 @@ + + + + +QScintilla: QsciLexerBash Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerBash Class Reference
+
+
+ +

#include <qscilexerbash.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerBash class encapsulates the Scintilla Bash lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Bash lexer.

+
Enumerator:
+ + + + + + + + + + + + + + +
Default  +

The default.

+
Error  +

An error.

+
Comment  +

A comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
Scalar  +

A scalar.

+
ParameterExpansion  +

Parameter expansion.

+
Backticks  +

Backticks.

+
HereDocumentDelimiter  +

A here document delimiter.

+
SingleQuotedHereDocument  +

A single quoted here document.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerBash::QsciLexerBash (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerBash with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerBash::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerBash::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerBash::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerBash::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerBash::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerBash::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerBash::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerBash::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerBash::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerBash::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerBash::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerBash::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerBatch-members.html b/doc/html-Qt3/classQsciLexerBatch-members.html new file mode 100644 index 0000000..8c99cd9 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerBatch-members.html @@ -0,0 +1,132 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerBatch Member List
+
+
+This is the complete list of members for QsciLexerBatch, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexerBatch)QsciLexerBatch [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerBatch
Default enum valueQsciLexerBatch
defaultColor(int style) const QsciLexerBatch [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerBatch [virtual]
defaultFont(int style) const QsciLexerBatch [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerBatch [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerBatch [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
ExternalCommand enum valueQsciLexerBatch
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HideCommandChar enum valueQsciLexerBatch
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerBatch
keywords(int set) const QsciLexerBatch [virtual]
Label enum valueQsciLexerBatch
language() const QsciLexerBatch [virtual]
lexer() const QsciLexerBatch [virtual]
lexerId() const QsciLexer [virtual]
Operator enum valueQsciLexerBatch
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerBatch(QObject *parent=0, const char *name=0)QsciLexerBatch
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
Variable enum valueQsciLexerBatch
wordCharacters() const QsciLexerBatch [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerBatch()QsciLexerBatch [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerBatch.html b/doc/html-Qt3/classQsciLexerBatch.html new file mode 100644 index 0000000..43377ef --- /dev/null +++ b/doc/html-Qt3/classQsciLexerBatch.html @@ -0,0 +1,292 @@ + + + + +QScintilla: QsciLexerBatch Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerBatch Class Reference
+
+
+ +

#include <qscilexerbatch.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerBatch class encapsulates the Scintilla batch file lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the batch file lexer.

+
Enumerator:
+ + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Keyword  +

A keyword.

+
Label  +

A label.

+
HideCommandChar  +

An hide command character.

+
ExternalCommand  +

An external command .

+
Variable  +

A variable.

+
Operator  +

An operator.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerBatch::QsciLexerBatch (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerBatch with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerBatch::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerBatch::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerBatch::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerBatch::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerBatch::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCMake-members.html b/doc/html-Qt3/classQsciLexerCMake-members.html new file mode 100644 index 0000000..23874b0 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCMake-members.html @@ -0,0 +1,141 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCMake Member List
+
+
+This is the complete list of members for QsciLexerCMake, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
BlockForeach enum valueQsciLexerCMake
BlockIf enum valueQsciLexerCMake
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
BlockMacro enum valueQsciLexerCMake
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
BlockWhile enum valueQsciLexerCMake
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCMake
Default enum valueQsciLexerCMake
defaultColor(int style) const QsciLexerCMake [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerCMake [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCMake [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCMake [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCMake
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Function enum valueQsciLexerCMake
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexerCMake [virtual]
KeywordSet3 enum valueQsciLexerCMake
Label enum valueQsciLexerCMake
language() const QsciLexerCMake [virtual]
lexer() const QsciLexerCMake [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCMake
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerCMake(QObject *parent=0, const char *name=0)QsciLexerCMake
readProperties(QSettings &qs, const QString &prefix)QsciLexerCMake [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCMake [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCMake [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerCMake
StringLeftQuote enum valueQsciLexerCMake
StringRightQuote enum valueQsciLexerCMake
StringVariable enum valueQsciLexerCMake
styleBitsNeeded() const QsciLexer [virtual]
Variable enum valueQsciLexerCMake
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCMake [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCMake()QsciLexerCMake [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCMake.html b/doc/html-Qt3/classQsciLexerCMake.html new file mode 100644 index 0000000..725c2a1 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCMake.html @@ -0,0 +1,447 @@ + + + + +QScintilla: QsciLexerCMake Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCMake Class Reference
+
+
+ +

#include <qscilexercmake.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerCMake class encapsulates the Scintilla CMake lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the CMake lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
String  +

A string.

+
StringLeftQuote  +

A left quoted string.

+
StringRightQuote  +

A right quoted string.

+
Function  +

A function. (Defined by keyword set number 1.)

+
Variable  +

A variable. (Defined by keyword set number 2.)

+
Label  +

A label.

+
KeywordSet3  +

A keyword defined in keyword set number 3. The class must be sub-classed and re-implement keywords() to make use of this style.

+
BlockWhile  +

A WHILE block.

+
BlockForeach  +

A FOREACH block.

+
BlockIf  +

An IF block.

+
BlockMacro  +

A MACRO block.

+
StringVariable  +

A variable within a string.

+
Number  +

A number.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerCMake::QsciLexerCMake (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerCMake with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerCMake::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCMake::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCMake::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerCMake::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerCMake::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerCMake::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCMake::foldAtElse () const
+
+
+

Returns true if ELSE blocks can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCMake::setFoldAtElse (bool fold) [virtual, slot]
+
+
+

If fold is true then ELSE blocks can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCMake::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCMake::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCPP-members.html b/doc/html-Qt3/classQsciLexerCPP-members.html new file mode 100644 index 0000000..9bbb860 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCPP-members.html @@ -0,0 +1,190 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCPP Member List
+
+
+This is the complete list of members for QsciLexerCPP, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
braceStyle() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCPP
CommentDoc enum valueQsciLexerCPP
CommentDocKeyword enum valueQsciLexerCPP
CommentDocKeywordError enum valueQsciLexerCPP
CommentLine enum valueQsciLexerCPP
CommentLineDoc enum valueQsciLexerCPP
Default enum valueQsciLexerCPP
defaultColor(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerCPP [virtual]
defaultFont(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCPP [virtual]
dollarsAllowed() const QsciLexerCPP [inline]
DoubleQuotedString enum valueQsciLexerCPP
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCPP [inline]
foldComments() const QsciLexerCPP [inline]
foldCompact() const QsciLexerCPP [inline]
foldPreprocessor() const QsciLexerCPP [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCPP
HashQuotedString enum valueQsciLexerCPP
highlightHashQuotedStrings() const QsciLexerCPP [inline]
highlightTripleQuotedStrings() const QsciLexerCPP [inline]
Identifier enum valueQsciLexerCPP
InactiveComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeywordError enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLine enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDefault enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDoubleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveGlobalClass enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveHashQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveIdentifier enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeywordSet2 enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveNumber enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveOperator enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessor enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRawString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRegex enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveSingleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveTripleQuotedVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUnclosedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUUID enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCPP
keywords(int set) const QsciLexerCPP [virtual]
KeywordSet2 enum valueQsciLexerCPP
language() const QsciLexerCPP [virtual]
lexer() const QsciLexerCPP [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCPP
Operator enum valueQsciLexerCPP
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCPP
PreProcessorComment enum valueQsciLexerCPP
PreProcessorCommentLineDoc enum valueQsciLexerCPP
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerCPP(QObject *parent=0, const char *name=0, bool caseInsensitiveKeywords=false)QsciLexerCPP
RawString enum valueQsciLexerCPP
readProperties(QSettings &qs, const QString &prefix)QsciLexerCPP [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCPP [virtual]
Regex enum valueQsciLexerCPP
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCPP
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCPP [virtual, slot]
setFoldComments(bool fold)QsciLexerCPP [virtual, slot]
setFoldCompact(bool fold)QsciLexerCPP [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerCPP [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightHashQuotedStrings(bool enabled)QsciLexerCPP
setHighlightTripleQuotedStrings(bool enabled)QsciLexerCPP
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCPP [virtual, slot]
SingleQuotedString enum valueQsciLexerCPP
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCPP [inline]
TripleQuotedVerbatimString enum valueQsciLexerCPP
UnclosedString enum valueQsciLexerCPP
UUID enum valueQsciLexerCPP
VerbatimString enum valueQsciLexerCPP
wordCharacters() const QsciLexerCPP [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCPP [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCPP()QsciLexerCPP [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCPP.html b/doc/html-Qt3/classQsciLexerCPP.html new file mode 100644 index 0000000..cf8c958 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCPP.html @@ -0,0 +1,829 @@ + + + + +QScintilla: QsciLexerCPP Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCPP Class Reference
+
+
+ +

#include <qscilexercpp.h>

+ +

Inherits QsciLexer.

+ +

Inherited by QsciLexerCSharp, QsciLexerIDL, QsciLexerJava, and QsciLexerJavaScript.

+ +

List of all members.

+

+Public Types

+
    +
  • enum {
    +  Default = 0, +InactiveDefault = Default + 64, +Comment = 1, +
    +  InactiveComment = Comment + 64, +CommentLine = 2, +InactiveCommentLine = CommentLine + 64, +
    +  CommentDoc = 3, +InactiveCommentDoc = CommentDoc + 64, +Number = 4, +
    +  InactiveNumber = Number + 64, +Keyword = 5, +InactiveKeyword = Keyword + 64, +
    +  DoubleQuotedString = 6, +InactiveDoubleQuotedString = DoubleQuotedString + 64, +SingleQuotedString = 7, +
    +  InactiveSingleQuotedString = SingleQuotedString + 64, +UUID = 8, +InactiveUUID = UUID + 64, +
    +  PreProcessor = 9, +InactivePreProcessor = PreProcessor + 64, +Operator = 10, +
    +  InactiveOperator = Operator + 64, +Identifier = 11, +InactiveIdentifier = Identifier + 64, +
    +  UnclosedString = 12, +InactiveUnclosedString = UnclosedString + 64, +VerbatimString = 13, +
    +  InactiveVerbatimString = VerbatimString + 64, +Regex = 14, +InactiveRegex = Regex + 64, +
    +  CommentLineDoc = 15, +InactiveCommentLineDoc = CommentLineDoc + 64, +KeywordSet2 = 16, +
    +  InactiveKeywordSet2 = KeywordSet2 + 64, +CommentDocKeyword = 17, +InactiveCommentDocKeyword = CommentDocKeyword + 64, +
    +  CommentDocKeywordError = 18, +InactiveCommentDocKeywordError = CommentDocKeywordError + 64, +GlobalClass = 19, +
    +  InactiveGlobalClass = GlobalClass + 64, +RawString = 20, +InactiveRawString = RawString + 20, +
    +  TripleQuotedVerbatimString = 21, +InactiveTripleQuotedVerbatimString = TripleQuotedVerbatimString + 21, +HashQuotedString = 22, +
    +  InactiveHashQuotedString = HashQuotedString + 22, +PreProcessorComment = 23, +InactivePreProcessorComment = PreProcessorComment + 23, +
    +  PreProcessorCommentLineDoc = 24, +InactivePreProcessorCommentLineDoc = PreProcessorCommentLineDoc + 64 +
    + } +
+

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerCPP class encapsulates the Scintilla C++ lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the C++ lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A C comment.

+
CommentLine  +

A C++ comment line.

+
CommentDoc  +

A JavaDoc/Doxygen style C comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
UUID  +

An IDL UUID.

+
PreProcessor  +

A pre-processor block.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
UnclosedString  +

The end of a line where a string is not closed.

+
VerbatimString  +

A C# verbatim string.

+
Regex  +

A JavaScript regular expression.

+
CommentLineDoc  +

A JavaDoc/Doxygen style C++ comment line.

+
KeywordSet2  +

A keyword defined in keyword set number 2. The class must be sub-classed and re-implement keywords() to make use of this style.

+
CommentDocKeyword  +

A JavaDoc/Doxygen keyword.

+
CommentDocKeywordError  +

A JavaDoc/Doxygen keyword error.

+
GlobalClass  +

A global class or typedef defined in keyword set number 5. The class must be sub-classed and re-implement keywords() to make use of this style.

+
RawString  +

A C++ raw string.

+
TripleQuotedVerbatimString  +

A Vala triple-quoted verbatim string.

+
HashQuotedString  +

A Pike hash-quoted string.

+
PreProcessorComment  +

A pre-processor stream comment.

+
PreProcessorCommentLineDoc  +

A JavaDoc/Doxygen style pre-processor comment.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
QsciLexerCPP::QsciLexerCPP (QObject * parent = 0,
const char * name = 0,
bool caseInsensitiveKeywords = false 
)
+
+
+

Construct a QsciLexerCPP with parent parent and name name. parent is typically the QsciScintilla instance. caseInsensitiveKeywords is true if the lexer ignores the case of keywords.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerCPP::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCPP::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerCSharp, QsciLexerJavaScript, and QsciLexerIDL.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCPP::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerCSharp, and QsciLexerJavaScript.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerCPP::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string. Set 1 is normally used for primary keywords and identifiers. Set 2 is normally used for secondary keywords and identifiers. Set 3 is normally used for documentation comment keywords. Set 4 is normally used for global classes and typedefs.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerCSharp, QsciLexerJavaScript, QsciLexerIDL, and QsciLexerJava.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerCPP::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +

Reimplemented in QsciLexerCSharp, QsciLexerJavaScript, and QsciLexerIDL.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerCPP::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::foldAtElse () const [inline]
+
+
+

Returns true if "} else {" lines can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::foldPreprocessor () const [inline]
+
+
+

Returns true if preprocessor blocks can be folded.

+
See also:
setFoldPreprocessor()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::stylePreprocessor () const [inline]
+
+
+

Returns true if preprocessor lines (after the preprocessor directive) are styled.

+
See also:
setStylePreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCPP::setDollarsAllowed (bool allowed)
+
+
+

If allowed is true then '$' characters are allowed in identifier names. The default is true.

+
See also:
dollarsAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::dollarsAllowed () const [inline]
+
+
+

Returns true if '$' characters are allowed in identifier names.

+
See also:
setDollarsAllowed()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCPP::setHighlightTripleQuotedStrings (bool enabled)
+
+
+

If enabled is true then triple quoted strings are highlighted. The default is false.

+
See also:
highlightTripleQuotedStrings()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::highlightTripleQuotedStrings () const [inline]
+
+
+

Returns true if triple quoted strings should be highlighted.

+
See also:
setHighlightTripleQuotedStrings()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCPP::setHighlightHashQuotedStrings (bool enabled)
+
+
+

If enabled is true then hash quoted strings are highlighted. The default is false.

+
See also:
highlightHashQuotedStrings()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::highlightHashQuotedStrings () const [inline]
+
+
+

Returns true if hash quoted strings should be highlighted.

+
See also:
setHighlightHashQuotedStrings()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCPP::setFoldAtElse (bool fold) [virtual, slot]
+
+
+

If fold is true then "} else {" lines can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCPP::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCPP::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCPP::setFoldPreprocessor (bool fold) [virtual, slot]
+
+
+

If fold is true then preprocessor blocks can be folded. The default is true.

+
See also:
foldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCPP::setStylePreprocessor (bool style) [virtual, slot]
+
+
+

If style is true then preprocessor lines (after the preprocessor directive) are styled. The default is false.

+
See also:
stylePreprocessor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCPP::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCPP::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCSS-members.html b/doc/html-Qt3/classQsciLexerCSS-members.html new file mode 100644 index 0000000..b61de49 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCSS-members.html @@ -0,0 +1,158 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCSS Member List
+
+
+This is the complete list of members for QsciLexerCSS, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
AtRule enum valueQsciLexerCSS
Attribute enum valueQsciLexerCSS
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCSS)QsciLexerCSS [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCSS)QsciLexerCSS [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
ClassSelector enum valueQsciLexerCSS
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCSS
CSS1Property enum valueQsciLexerCSS
CSS2Property enum valueQsciLexerCSS
CSS3Property enum valueQsciLexerCSS
Default enum valueQsciLexerCSS
defaultColor(int style) const QsciLexerCSS [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerCSS [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCSS [virtual]
DoubleQuotedString enum valueQsciLexerCSS
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
ExtendedCSSProperty enum valueQsciLexerCSS
ExtendedPseudoClass enum valueQsciLexerCSS
ExtendedPseudoElement enum valueQsciLexerCSS
foldComments() const QsciLexerCSS
foldCompact() const QsciLexerCSS
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HSSLanguage() const QsciLexerCSS [inline]
IDSelector enum valueQsciLexerCSS
Important enum valueQsciLexerCSS
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexerCSS [virtual]
language() const QsciLexerCSS [virtual]
LessLanguage() const QsciLexerCSS [inline]
lexer() const QsciLexerCSS [virtual]
lexerId() const QsciLexer [virtual]
MediaRule enum valueQsciLexerCSS
Operator enum valueQsciLexerCSS
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
PseudoClass enum valueQsciLexerCSS
PseudoElement enum valueQsciLexerCSS
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerCSS(QObject *parent=0, const char *name=0)QsciLexerCSS
readProperties(QSettings &qs, const QString &prefix)QsciLexerCSS [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCSS [virtual]
SCSSLanguage() const QsciLexerCSS [inline]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerCSS [virtual, slot]
setFoldCompact(bool fold)QsciLexerCSS [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHSSLanguage(bool enabled)QsciLexerCSS
setLessLanguage(bool enabled)QsciLexerCSS
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setSCSSLanguage(bool enabled)QsciLexerCSS
SingleQuotedString enum valueQsciLexerCSS
styleBitsNeeded() const QsciLexer [virtual]
Tag enum valueQsciLexerCSS
UnknownProperty enum valueQsciLexerCSS
UnknownPseudoClass enum valueQsciLexerCSS
Value enum valueQsciLexerCSS
Variable enum valueQsciLexerCSS
wordCharacters() const QsciLexerCSS [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCSS [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCSS()QsciLexerCSS [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCSS.html b/doc/html-Qt3/classQsciLexerCSS.html new file mode 100644 index 0000000..0cfa868 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCSS.html @@ -0,0 +1,606 @@ + + + + +QScintilla: QsciLexerCSS Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCSS Class Reference
+
+
+ +

#include <qscilexercss.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerCSS class encapsulates the Scintilla CSS lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the CSS lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Tag  +

A tag.

+
ClassSelector  +

A class selector.

+
PseudoClass  +

A pseudo class. The list of pseudo classes is defined by keyword set 2.

+
UnknownPseudoClass  +

An unknown pseudo class.

+
Operator  +

An operator.

+
CSS1Property  +

A CSS1 property. The list of CSS1 properties is defined by keyword set 1.

+
UnknownProperty  +

An unknown property.

+
Value  +

A value.

+
Comment  +

A comment.

+
IDSelector  +

An ID selector.

+
Important  +

An important value.

+
AtRule  +

An @-rule.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
CSS2Property  +

A CSS2 property. The list of CSS2 properties is defined by keyword set 3.

+
Attribute  +

An attribute.

+
CSS3Property  +

A CSS3 property. The list of CSS3 properties is defined by keyword set 4.

+
PseudoElement  +

A pseudo element. The list of pseudo elements is defined by keyword set 5.

+
ExtendedCSSProperty  +

An extended (browser specific) CSS property. The list of extended CSS properties is defined by keyword set 6.

+
ExtendedPseudoClass  +

An extended (browser specific) pseudo class. The list of extended pseudo classes is defined by keyword set 7.

+
ExtendedPseudoElement  +

An extended (browser specific) pseudo element. The list of extended pseudo elements is defined by keyword set 8.

+
MediaRule  +

A media rule.

+
Variable  +

A variable.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerCSS::QsciLexerCSS (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerCSS with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerCSS::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerCSS::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerCSS::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerCSS::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCSS::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCSS::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCSS::setHSSLanguage (bool enabled)
+
+
+

If enabled is true then support for HSS is enabled. The default is false.

+
See also:
HSSLanguage()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCSS::HSSLanguage () const [inline]
+
+
+

Returns true if support for HSS is enabled.

+
See also:
setHSSLanguage()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCSS::setLessLanguage (bool enabled)
+
+
+

If enabled is true then support for Less CSS is enabled. The default is false.

+
See also:
LessLanguage()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCSS::LessLanguage () const [inline]
+
+
+

Returns true if support for Less CSS is enabled.

+
See also:
setLessLanguage()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCSS::setSCSSLanguage (bool enabled)
+
+
+

If enabled is true then support for Sassy CSS is enabled. The default is false.

+
See also:
SCSSLanguage()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCSS::SCSSLanguage () const [inline]
+
+
+

Returns true if support for Sassy CSS is enabled.

+
See also:
setSCSSLanguage()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCSS::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCSS::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCSS::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCSS::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCSharp-members.html b/doc/html-Qt3/classQsciLexerCSharp-members.html new file mode 100644 index 0000000..58136c2 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCSharp-members.html @@ -0,0 +1,192 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCSharp Member List
+
+
+This is the complete list of members for QsciLexerCSharp, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
braceStyle() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCPP
CommentDoc enum valueQsciLexerCPP
CommentDocKeyword enum valueQsciLexerCPP
CommentDocKeywordError enum valueQsciLexerCPP
CommentLine enum valueQsciLexerCPP
CommentLineDoc enum valueQsciLexerCPP
Default enum valueQsciLexerCPP
defaultColor(int style) const QsciLexerCSharp [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerCSharp [virtual]
defaultFont(int style) const QsciLexerCSharp [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCSharp [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCSharp [virtual]
dollarsAllowed() const QsciLexerCPP [inline]
DoubleQuotedString enum valueQsciLexerCPP
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCPP [inline]
foldComments() const QsciLexerCPP [inline]
foldCompact() const QsciLexerCPP [inline]
foldPreprocessor() const QsciLexerCPP [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCPP
HashQuotedString enum valueQsciLexerCPP
highlightHashQuotedStrings() const QsciLexerCPP [inline]
highlightTripleQuotedStrings() const QsciLexerCPP [inline]
Identifier enum valueQsciLexerCPP
InactiveComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeywordError enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLine enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDefault enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDoubleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveGlobalClass enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveHashQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveIdentifier enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeywordSet2 enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveNumber enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveOperator enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessor enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRawString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRegex enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveSingleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveTripleQuotedVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUnclosedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUUID enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCPP
keywords(int set) const QsciLexerCSharp [virtual]
KeywordSet2 enum valueQsciLexerCPP
language() const QsciLexerCSharp [virtual]
lexer() const QsciLexerCPP [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCPP
Operator enum valueQsciLexerCPP
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCPP
PreProcessorComment enum valueQsciLexerCPP
PreProcessorCommentLineDoc enum valueQsciLexerCPP
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerCPP(QObject *parent=0, const char *name=0, bool caseInsensitiveKeywords=false)QsciLexerCPP
QsciLexerCSharp(QObject *parent=0, const char *name=0)QsciLexerCSharp
RawString enum valueQsciLexerCPP
readProperties(QSettings &qs, const QString &prefix)QsciLexerCPP [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCPP [virtual]
Regex enum valueQsciLexerCPP
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCPP
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCPP [virtual, slot]
setFoldComments(bool fold)QsciLexerCPP [virtual, slot]
setFoldCompact(bool fold)QsciLexerCPP [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerCPP [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightHashQuotedStrings(bool enabled)QsciLexerCPP
setHighlightTripleQuotedStrings(bool enabled)QsciLexerCPP
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCPP [virtual, slot]
SingleQuotedString enum valueQsciLexerCPP
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCPP [inline]
TripleQuotedVerbatimString enum valueQsciLexerCPP
UnclosedString enum valueQsciLexerCPP
UUID enum valueQsciLexerCPP
VerbatimString enum valueQsciLexerCPP
wordCharacters() const QsciLexerCPP [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCPP [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCPP()QsciLexerCPP [virtual]
~QsciLexerCSharp()QsciLexerCSharp [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCSharp.html b/doc/html-Qt3/classQsciLexerCSharp.html new file mode 100644 index 0000000..b541625 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCSharp.html @@ -0,0 +1,207 @@ + + + + +QScintilla: QsciLexerCSharp Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCSharp Class Reference
+
+
+ +

#include <qscilexercsharp.h>

+ +

Inherits QsciLexerCPP.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerCSharp class encapsulates the Scintilla C# lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerCSharp::QsciLexerCSharp (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerCSharp with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
QColor QsciLexerCSharp::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCSharp::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerCSharp::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerCSharp::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCoffeeScript-members.html b/doc/html-Qt3/classQsciLexerCoffeeScript-members.html new file mode 100644 index 0000000..0a1ed44 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCoffeeScript-members.html @@ -0,0 +1,155 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCoffeeScript Member List
+
+
+This is the complete list of members for QsciLexerCoffeeScript, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCoffeeScript)QsciLexerCoffeeScript [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCoffeeScript)QsciLexerCoffeeScript [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
BlockRegex enum valueQsciLexerCoffeeScript
BlockRegexComment enum valueQsciLexerCoffeeScript
blockStart(int *style=0) const (defined in QsciLexerCoffeeScript)QsciLexerCoffeeScript [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCoffeeScript)QsciLexerCoffeeScript [virtual]
braceStyle() const (defined in QsciLexerCoffeeScript)QsciLexerCoffeeScript [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCoffeeScript
CommentBlock enum valueQsciLexerCoffeeScript
CommentDoc enum valueQsciLexerCoffeeScript
CommentDocKeyword enum valueQsciLexerCoffeeScript
CommentDocKeywordError enum valueQsciLexerCoffeeScript
CommentLine enum valueQsciLexerCoffeeScript
CommentLineDoc enum valueQsciLexerCoffeeScript
Default enum valueQsciLexerCoffeeScript
defaultColor(int style) const QsciLexerCoffeeScript [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerCoffeeScript [virtual]
defaultFont(int style) const QsciLexerCoffeeScript [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCoffeeScript [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCoffeeScript [virtual]
dollarsAllowed() const QsciLexerCoffeeScript [inline]
DoubleQuotedString enum valueQsciLexerCoffeeScript
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerCoffeeScript [inline]
foldCompact() const QsciLexerCoffeeScript [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCoffeeScript
Identifier enum valueQsciLexerCoffeeScript
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCoffeeScript
keywords(int set) const QsciLexerCoffeeScript [virtual]
KeywordSet2 enum valueQsciLexerCoffeeScript
language() const QsciLexerCoffeeScript [virtual]
lexer() const QsciLexerCoffeeScript [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCoffeeScript
Operator enum valueQsciLexerCoffeeScript
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCoffeeScript
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerCoffeeScript(QObject *parent=0, const char *name=0)QsciLexerCoffeeScript
readProperties(QSettings &qs, const QString &prefix)QsciLexerCoffeeScript [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCoffeeScript [virtual]
Regex enum valueQsciLexerCoffeeScript
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCoffeeScript
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerCoffeeScript
setFoldCompact(bool fold)QsciLexerCoffeeScript
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCoffeeScript
SingleQuotedString enum valueQsciLexerCoffeeScript
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCoffeeScript [inline]
UnclosedString enum valueQsciLexerCoffeeScript
UUID enum valueQsciLexerCoffeeScript
VerbatimString enum valueQsciLexerCoffeeScript
wordCharacters() const QsciLexerCoffeeScript [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCoffeeScript [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCoffeeScript()QsciLexerCoffeeScript [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCoffeeScript.html b/doc/html-Qt3/classQsciLexerCoffeeScript.html new file mode 100644 index 0000000..bbfc853 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCoffeeScript.html @@ -0,0 +1,610 @@ + + + + +QScintilla: QsciLexerCoffeeScript Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCoffeeScript Class Reference
+
+
+ +

#include <qscilexercoffeescript.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerCoffeeScript class encapsulates the Scintilla CoffeeScript lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the C++ lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A C-style comment.

+
CommentLine  +

A C++-style comment line.

+
CommentDoc  +

A JavaDoc/Doxygen C-style comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
UUID  +

An IDL UUID.

+
PreProcessor  +

A pre-processor block.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
UnclosedString  +

The end of a line where a string is not closed.

+
VerbatimString  +

A C# verbatim string.

+
Regex  +

A regular expression.

+
CommentLineDoc  +

A JavaDoc/Doxygen C++-style comment line.

+
KeywordSet2  +

A keyword defined in keyword set number 2. The class must be sub-classed and re-implement keywords() to make use of this style.

+
CommentDocKeyword  +

A JavaDoc/Doxygen keyword.

+
CommentDocKeywordError  +

A JavaDoc/Doxygen keyword error defined in keyword set number 3. The class must be sub-classed and re-implement keywords() to make use of this style.

+
GlobalClass  +

A global class defined in keyword set number 4. The class must be sub-classed and re-implement keywords() to make use of this style.

+
CommentBlock  +

A block comment.

+
BlockRegex  +

A block regular expression.

+
BlockRegexComment  +

A block regular expression comment.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerCoffeeScript::QsciLexerCoffeeScript (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerCoffeeScript with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerCoffeeScript::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCoffeeScript::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCoffeeScript::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerCoffeeScript::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string. Set 1 is normally used for primary keywords and identifiers. Set 2 is normally used for secondary keywords and identifiers. Set 3 is normally used for documentation comment keywords. Set 4 is normally used for global classes and typedefs.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerCoffeeScript::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerCoffeeScript::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCoffeeScript::dollarsAllowed () const [inline]
+
+
+

Returns true if '$' characters are allowed in identifier names.

+
See also:
setDollarsAllowed()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCoffeeScript::setDollarsAllowed (bool allowed)
+
+
+

If allowed is true then '$' characters are allowed in identifier names. The default is true.

+
See also:
dollarsAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCoffeeScript::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCoffeeScript::setFoldComments (bool fold)
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCoffeeScript::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCoffeeScript::setFoldCompact (bool fold)
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCoffeeScript::stylePreprocessor () const [inline]
+
+
+

Returns true if preprocessor lines (after the preprocessor directive) are styled.

+
See also:
setStylePreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCoffeeScript::setStylePreprocessor (bool style)
+
+
+

If style is true then preprocessor lines (after the preprocessor directive) are styled. The default is false.

+
See also:
stylePreprocessor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCoffeeScript::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCoffeeScript::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCustom-members.html b/doc/html-Qt3/classQsciLexerCustom-members.html new file mode 100644 index 0000000..b75d3a8 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCustom-members.html @@ -0,0 +1,128 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCustom Member List
+
+
+This is the complete list of members for QsciLexerCustom, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
defaultColor() const QsciLexer
defaultColor(int style) const QsciLexer [virtual]
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont() const QsciLexer
defaultFont(int style) const QsciLexer [virtual]
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const =0QsciLexer [pure virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexer [virtual]
language() const =0QsciLexer [pure virtual]
lexer() const QsciLexer [virtual]
lexerId() const QsciLexer [virtual]
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerCustom(QObject *parent=0, const char *name=0)QsciLexerCustom
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor)QsciLexerCustom [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStyling(int length, int style)QsciLexerCustom
setStyling(int length, const QsciStyle &style)QsciLexerCustom
startStyling(int pos, int styleBits=0)QsciLexerCustom
styleBitsNeeded() const QsciLexerCustom [virtual]
styleText(int start, int end)=0QsciLexerCustom [pure virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCustom()QsciLexerCustom [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerCustom.html b/doc/html-Qt3/classQsciLexerCustom.html new file mode 100644 index 0000000..188ae82 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerCustom.html @@ -0,0 +1,259 @@ + + + + +QScintilla: QsciLexerCustom Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCustom Class Reference
+
+
+ +

#include <qscilexercustom.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerCustom class is an abstract class used as a base for new language lexers.

+

The advantage of implementing a new lexer this way (as opposed to adding the lexer to the underlying Scintilla code) is that it does not require the QScintilla library to be re-compiled. It also makes it possible to integrate external lexers.

+

All that is necessary to implement a new lexer is to define appropriate styles and to re-implement the styleText() method.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerCustom::QsciLexerCustom (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerCustom with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexerCustom::setStyling (int length,
int style 
)
+
+
+

The next length characters starting from the current styling position have their style set to style number style. The current styling position is moved. The styling position is initially set by calling startStyling().

+
See also:
startStyling(), styleText()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexerCustom::setStyling (int length,
const QsciStylestyle 
)
+
+
+

The next length characters starting from the current styling position have their style set to style style. The current styling position is moved. The styling position is initially set by calling startStyling().

+
See also:
startStyling(), styleText()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexerCustom::startStyling (int pos,
int styleBits = 0 
)
+
+
+

The styling position is set to start and the mask of style bits that can be set is set to styleBits. styleBits allows the styling of text to be done over several passes by setting different style bits on each pass. If styleBits is 0 then all style bits (as returned by styleBitsNeeded()) are set.

+
See also:
setStyling(), styleBitsNeeded(), styleText()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciLexerCustom::styleText (int start,
int end 
) [pure virtual]
+
+
+

This is called when the section of text beginning at position start and up to position end needs to be styled. start will always be at the start of a line. The text is styled by calling startStyling() followed by one or more calls to setStyling(). It must be re-implemented by a sub-class.

+
See also:
setStyling(), startStyling()
+ +
+
+ +
+
+ + + + + + + +
virtual int QsciLexerCustom::styleBitsNeeded () const [virtual]
+
+
+

This re-implementation returns 5 as the number of style bits needed.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerD-members.html b/doc/html-Qt3/classQsciLexerD-members.html new file mode 100644 index 0000000..6cc859a --- /dev/null +++ b/doc/html-Qt3/classQsciLexerD-members.html @@ -0,0 +1,153 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerD Member List
+
+
+This is the complete list of members for QsciLexerD, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerD)QsciLexerD [virtual]
autoIndentStyle()QsciLexer
BackquoteString enum valueQsciLexerD
blockEnd(int *style=0) const (defined in QsciLexerD)QsciLexerD [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerD)QsciLexerD [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerD)QsciLexerD [virtual]
braceStyle() const (defined in QsciLexerD)QsciLexerD [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
Character enum valueQsciLexerD
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerD
CommentDoc enum valueQsciLexerD
CommentDocKeyword enum valueQsciLexerD
CommentDocKeywordError enum valueQsciLexerD
CommentLine enum valueQsciLexerD
CommentLineDoc enum valueQsciLexerD
CommentNested enum valueQsciLexerD
Default enum valueQsciLexerD
defaultColor(int style) const QsciLexerD [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerD [virtual]
defaultFont(int style) const QsciLexerD [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerD [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerD [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerD
foldComments() const QsciLexerD
foldCompact() const QsciLexerD
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerD
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerD
KeywordDoc enum valueQsciLexerD
keywords(int set) const QsciLexerD [virtual]
KeywordSecondary enum valueQsciLexerD
KeywordSet5 enum valueQsciLexerD
KeywordSet6 enum valueQsciLexerD
KeywordSet7 enum valueQsciLexerD
language() const QsciLexerD [virtual]
lexer() const QsciLexerD [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerD
Operator enum valueQsciLexerD
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerD(QObject *parent=0, const char *name=0)QsciLexerD
RawString enum valueQsciLexerD
readProperties(QSettings &qs, const QString &prefix)QsciLexerD [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerD [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerD [virtual, slot]
setFoldComments(bool fold)QsciLexerD [virtual, slot]
setFoldCompact(bool fold)QsciLexerD [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerD
styleBitsNeeded() const QsciLexer [virtual]
Typedefs enum valueQsciLexerD
UnclosedString enum valueQsciLexerD
wordCharacters() const QsciLexerD [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerD [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerD()QsciLexerD [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerD.html b/doc/html-Qt3/classQsciLexerD.html new file mode 100644 index 0000000..00cc2c2 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerD.html @@ -0,0 +1,576 @@ + + + + +QScintilla: QsciLexerD Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+ +
+ +

#include <qscilexerd.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerD class encapsulates the Scintilla D lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the D lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A comment line.

+
CommentDoc  +

A JavaDoc and Doxygen comment.

+
CommentNested  +

A nested comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
KeywordSecondary  +

A secondary keyword.

+
KeywordDoc  +

A doc keyword.

+
Typedefs  +

Typedefs and aliases.

+
String  +

A string.

+
UnclosedString  +

The end of a line where a string is not closed.

+
Character  +

A character.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
CommentLineDoc  +

A JavaDoc and Doxygen line.

+
CommentDocKeyword  +

A JavaDoc and Doxygen keyword.

+
CommentDocKeywordError  +

A JavaDoc and Doxygen keyword error.

+
BackquoteString  +

A backquoted string.

+
RawString  +

A raw, hexadecimal or delimited string.

+
KeywordSet5  +

A keyword defined in keyword set number 5. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerD::QsciLexerD (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerD with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerD::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerD::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerD::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerD::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerD::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerD::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerD::foldAtElse () const
+
+
+

Returns true if "} else {" lines can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerD::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerD::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerD::setFoldAtElse (bool fold) [virtual, slot]
+
+
+

If fold is true then "} else {" lines can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerD::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerD::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerD::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerD::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerDiff-members.html b/doc/html-Qt3/classQsciLexerDiff-members.html new file mode 100644 index 0000000..e0bbff9 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerDiff-members.html @@ -0,0 +1,132 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerDiff Member List
+
+
+This is the complete list of members for QsciLexerDiff, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Command enum valueQsciLexerDiff
Comment enum valueQsciLexerDiff
Default enum valueQsciLexerDiff
defaultColor(int style) const QsciLexerDiff [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont() const QsciLexer
defaultFont(int style) const QsciLexer [virtual]
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerDiff [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Header enum valueQsciLexerDiff
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexer [virtual]
language() const QsciLexerDiff [virtual]
lexer() const QsciLexerDiff [virtual]
lexerId() const QsciLexer [virtual]
LineAdded enum valueQsciLexerDiff
LineChanged enum valueQsciLexerDiff
LineRemoved enum valueQsciLexerDiff
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Position enum valueQsciLexerDiff
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerDiff(QObject *parent=0, const char *name=0)QsciLexerDiff
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexerDiff [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerDiff()QsciLexerDiff [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerDiff.html b/doc/html-Qt3/classQsciLexerDiff.html new file mode 100644 index 0000000..9675702 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerDiff.html @@ -0,0 +1,223 @@ + + + + +QScintilla: QsciLexerDiff Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerDiff Class Reference
+
+
+ +

#include <qscilexerdiff.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerDiff class encapsulates the Scintilla Diff lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Diff lexer.

+
Enumerator:
+ + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Command  +

A command.

+
Header  +

A header.

+
Position  +

A position.

+
LineRemoved  +

A removed line.

+
LineAdded  +

An added line.

+
LineChanged  +

A changed line.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerDiff::QsciLexerDiff (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerDiff with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerDiff::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerDiff::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerFortran-members.html b/doc/html-Qt3/classQsciLexerFortran-members.html new file mode 100644 index 0000000..1451106 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerFortran-members.html @@ -0,0 +1,143 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerFortran Member List
+
+
+This is the complete list of members for QsciLexerFortran, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerFortran77)QsciLexerFortran77 [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerFortran77
Continuation enum valueQsciLexerFortran77
Default enum valueQsciLexerFortran77
defaultColor(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerFortran77 [virtual]
defaultFont(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerFortran77 [virtual]
DottedOperator enum valueQsciLexerFortran77
DoubleQuotedString enum valueQsciLexerFortran77
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
ExtendedFunction enum valueQsciLexerFortran77
foldCompact() const QsciLexerFortran77
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerFortran77
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
IntrinsicFunction enum valueQsciLexerFortran77
Keyword enum valueQsciLexerFortran77
keywords(int set) const QsciLexerFortran [virtual]
Label enum valueQsciLexerFortran77
language() const QsciLexerFortran [virtual]
lexer() const QsciLexerFortran [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerFortran77
Operator enum valueQsciLexerFortran77
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerFortran77
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerFortran(QObject *parent=0, const char *name=0)QsciLexerFortran
QsciLexerFortran77(QObject *parent=0, const char *name=0)QsciLexerFortran77
readProperties(QSettings &qs, const QString &prefix)QsciLexerFortran77 [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerFortran77 [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerFortran77 [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedString enum valueQsciLexerFortran77
styleBitsNeeded() const QsciLexer [virtual]
UnclosedString enum valueQsciLexerFortran77
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerFortran77 [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerFortran()QsciLexerFortran [virtual]
~QsciLexerFortran77()QsciLexerFortran77 [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerFortran.html b/doc/html-Qt3/classQsciLexerFortran.html new file mode 100644 index 0000000..11fc6af --- /dev/null +++ b/doc/html-Qt3/classQsciLexerFortran.html @@ -0,0 +1,158 @@ + + + + +QScintilla: QsciLexerFortran Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerFortran Class Reference
+
+
+ +

#include <qscilexerfortran.h>

+ +

Inherits QsciLexerFortran77.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerFortran class encapsulates the Scintilla Fortran lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerFortran::QsciLexerFortran (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerFortran with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerFortran::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexerFortran77.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerFortran::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerFortran77.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerFortran77-members.html b/doc/html-Qt3/classQsciLexerFortran77-members.html new file mode 100644 index 0000000..1913728 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerFortran77-members.html @@ -0,0 +1,141 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerFortran77 Member List
+
+
+This is the complete list of members for QsciLexerFortran77, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerFortran77)QsciLexerFortran77 [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerFortran77
Continuation enum valueQsciLexerFortran77
Default enum valueQsciLexerFortran77
defaultColor(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerFortran77 [virtual]
defaultFont(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerFortran77 [virtual]
DottedOperator enum valueQsciLexerFortran77
DoubleQuotedString enum valueQsciLexerFortran77
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
ExtendedFunction enum valueQsciLexerFortran77
foldCompact() const QsciLexerFortran77
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerFortran77
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
IntrinsicFunction enum valueQsciLexerFortran77
Keyword enum valueQsciLexerFortran77
keywords(int set) const QsciLexerFortran77 [virtual]
Label enum valueQsciLexerFortran77
language() const QsciLexerFortran77 [virtual]
lexer() const QsciLexerFortran77 [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerFortran77
Operator enum valueQsciLexerFortran77
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerFortran77
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerFortran77(QObject *parent=0, const char *name=0)QsciLexerFortran77
readProperties(QSettings &qs, const QString &prefix)QsciLexerFortran77 [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerFortran77 [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerFortran77 [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedString enum valueQsciLexerFortran77
styleBitsNeeded() const QsciLexer [virtual]
UnclosedString enum valueQsciLexerFortran77
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerFortran77 [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerFortran77()QsciLexerFortran77 [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerFortran77.html b/doc/html-Qt3/classQsciLexerFortran77.html new file mode 100644 index 0000000..95b7f10 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerFortran77.html @@ -0,0 +1,459 @@ + + + + +QScintilla: QsciLexerFortran77 Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerFortran77 Class Reference
+
+
+ +

#include <qscilexerfortran77.h>

+ +

Inherits QsciLexer.

+ +

Inherited by QsciLexerFortran.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerFortran77 class encapsulates the Scintilla Fortran77 lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Fortran77 lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Number  +

A number.

+
SingleQuotedString  +

A single-quoted string.

+
DoubleQuotedString  +

A double-quoted string.

+
UnclosedString  +

The end of a line where a string is not closed.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
Keyword  +

A keyword.

+
IntrinsicFunction  +

An intrinsic function.

+
ExtendedFunction  +

An extended, non-standard or user defined function.

+
PreProcessor  +

A pre-processor block.

+
DottedOperator  +

An operator in .NAME. format.

+
Label  +

A label.

+
Continuation  +

A continuation.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerFortran77::QsciLexerFortran77 (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerFortran77 with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerFortran77::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerFortran.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerFortran77::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerFortran77::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerFortran77::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerFortran.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerFortran77::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerFortran77::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerFortran77::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerFortran77::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerFortran77::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerFortran77::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerHTML-members.html b/doc/html-Qt3/classQsciLexerHTML-members.html new file mode 100644 index 0000000..7c65f46 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerHTML-members.html @@ -0,0 +1,248 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerHTML Member List
+
+
+This is the complete list of members for QsciLexerHTML, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
ASPAtStart enum valueQsciLexerHTML
ASPJavaScriptComment enum valueQsciLexerHTML
ASPJavaScriptCommentDoc enum valueQsciLexerHTML
ASPJavaScriptCommentLine enum valueQsciLexerHTML
ASPJavaScriptDefault enum valueQsciLexerHTML
ASPJavaScriptDoubleQuotedString enum valueQsciLexerHTML
ASPJavaScriptKeyword enum valueQsciLexerHTML
ASPJavaScriptNumber enum valueQsciLexerHTML
ASPJavaScriptRegex enum valueQsciLexerHTML
ASPJavaScriptSingleQuotedString enum valueQsciLexerHTML
ASPJavaScriptStart enum valueQsciLexerHTML
ASPJavaScriptSymbol enum valueQsciLexerHTML
ASPJavaScriptUnclosedString enum valueQsciLexerHTML
ASPJavaScriptWord enum valueQsciLexerHTML
ASPPythonClassName enum valueQsciLexerHTML
ASPPythonComment enum valueQsciLexerHTML
ASPPythonDefault enum valueQsciLexerHTML
ASPPythonDoubleQuotedString enum valueQsciLexerHTML
ASPPythonFunctionMethodName enum valueQsciLexerHTML
ASPPythonIdentifier enum valueQsciLexerHTML
ASPPythonKeyword enum valueQsciLexerHTML
ASPPythonNumber enum valueQsciLexerHTML
ASPPythonOperator enum valueQsciLexerHTML
ASPPythonSingleQuotedString enum valueQsciLexerHTML
ASPPythonStart enum valueQsciLexerHTML
ASPPythonTripleDoubleQuotedString enum valueQsciLexerHTML
ASPPythonTripleSingleQuotedString enum valueQsciLexerHTML
ASPStart enum valueQsciLexerHTML
ASPVBScriptComment enum valueQsciLexerHTML
ASPVBScriptDefault enum valueQsciLexerHTML
ASPVBScriptIdentifier enum valueQsciLexerHTML
ASPVBScriptKeyword enum valueQsciLexerHTML
ASPVBScriptNumber enum valueQsciLexerHTML
ASPVBScriptStart enum valueQsciLexerHTML
ASPVBScriptString enum valueQsciLexerHTML
ASPVBScriptUnclosedString enum valueQsciLexerHTML
ASPXCComment enum valueQsciLexerHTML
Attribute enum valueQsciLexerHTML
autoCompletionFillups() const (defined in QsciLexerHTML)QsciLexerHTML [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitiveTags() const QsciLexerHTML [inline]
CDATA enum valueQsciLexerHTML
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Default enum valueQsciLexerHTML
defaultColor(int style) const QsciLexerHTML [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerHTML [virtual]
defaultFont(int style) const QsciLexerHTML [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerHTML [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerHTML [virtual]
djangoTemplates() const QsciLexerHTML [inline]
editor() const QsciLexer [inline]
Entity enum valueQsciLexerHTML
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldCompact() const QsciLexerHTML [inline]
foldPreprocessor() const QsciLexerHTML [inline]
foldScriptComments() const QsciLexerHTML [inline]
foldScriptHeredocs() const QsciLexerHTML [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HTMLComment enum valueQsciLexerHTML
HTMLDoubleQuotedString enum valueQsciLexerHTML
HTMLNumber enum valueQsciLexerHTML
HTMLSingleQuotedString enum valueQsciLexerHTML
HTMLValue enum valueQsciLexerHTML
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
JavaScriptComment enum valueQsciLexerHTML
JavaScriptCommentDoc enum valueQsciLexerHTML
JavaScriptCommentLine enum valueQsciLexerHTML
JavaScriptDefault enum valueQsciLexerHTML
JavaScriptDoubleQuotedString enum valueQsciLexerHTML
JavaScriptKeyword enum valueQsciLexerHTML
JavaScriptNumber enum valueQsciLexerHTML
JavaScriptRegex enum valueQsciLexerHTML
JavaScriptSingleQuotedString enum valueQsciLexerHTML
JavaScriptStart enum valueQsciLexerHTML
JavaScriptSymbol enum valueQsciLexerHTML
JavaScriptUnclosedString enum valueQsciLexerHTML
JavaScriptWord enum valueQsciLexerHTML
keywords(int set) const QsciLexerHTML [virtual]
language() const QsciLexerHTML [virtual]
lexer() const QsciLexerHTML [virtual]
lexerId() const QsciLexer [virtual]
makoTemplates() const QsciLexerHTML [inline]
OtherInTag enum valueQsciLexerHTML
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PHPComment enum valueQsciLexerHTML
PHPCommentLine enum valueQsciLexerHTML
PHPDefault enum valueQsciLexerHTML
PHPDoubleQuotedString enum valueQsciLexerHTML
PHPDoubleQuotedVariable enum valueQsciLexerHTML
PHPKeyword enum valueQsciLexerHTML
PHPNumber enum valueQsciLexerHTML
PHPOperator enum valueQsciLexerHTML
PHPSingleQuotedString enum valueQsciLexerHTML
PHPStart enum valueQsciLexerHTML
PHPVariable enum valueQsciLexerHTML
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
PythonClassName enum valueQsciLexerHTML
PythonComment enum valueQsciLexerHTML
PythonDefault enum valueQsciLexerHTML
PythonDoubleQuotedString enum valueQsciLexerHTML
PythonFunctionMethodName enum valueQsciLexerHTML
PythonIdentifier enum valueQsciLexerHTML
PythonKeyword enum valueQsciLexerHTML
PythonNumber enum valueQsciLexerHTML
PythonOperator enum valueQsciLexerHTML
PythonSingleQuotedString enum valueQsciLexerHTML
PythonStart enum valueQsciLexerHTML
PythonTripleDoubleQuotedString enum valueQsciLexerHTML
PythonTripleSingleQuotedString enum valueQsciLexerHTML
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerHTML(QObject *parent=0, const char *name=0)QsciLexerHTML
readProperties(QSettings &qs, const QString &prefix)QsciLexerHTML [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerHTML [virtual]
Script enum valueQsciLexerHTML
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setCaseSensitiveTags(bool sens)QsciLexerHTML [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDjangoTemplates(bool enabled)QsciLexerHTML
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerHTML [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerHTML [virtual, slot]
setFoldScriptComments(bool fold)QsciLexerHTML
setFoldScriptHeredocs(bool fold)QsciLexerHTML
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setMakoTemplates(bool enabled)QsciLexerHTML
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SGMLBlockDefault enum valueQsciLexerHTML
SGMLCommand enum valueQsciLexerHTML
SGMLComment enum valueQsciLexerHTML
SGMLDefault enum valueQsciLexerHTML
SGMLDoubleQuotedString enum valueQsciLexerHTML
SGMLEntity enum valueQsciLexerHTML
SGMLError enum valueQsciLexerHTML
SGMLParameter enum valueQsciLexerHTML
SGMLParameterComment enum valueQsciLexerHTML
SGMLSingleQuotedString enum valueQsciLexerHTML
SGMLSpecial enum valueQsciLexerHTML
styleBitsNeeded() const QsciLexer [virtual]
Tag enum valueQsciLexerHTML
UnknownAttribute enum valueQsciLexerHTML
UnknownTag enum valueQsciLexerHTML
VBScriptComment enum valueQsciLexerHTML
VBScriptDefault enum valueQsciLexerHTML
VBScriptIdentifier enum valueQsciLexerHTML
VBScriptKeyword enum valueQsciLexerHTML
VBScriptNumber enum valueQsciLexerHTML
VBScriptStart enum valueQsciLexerHTML
VBScriptString enum valueQsciLexerHTML
VBScriptUnclosedString enum valueQsciLexerHTML
wordCharacters() const QsciLexerHTML [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerHTML [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
XMLEnd enum valueQsciLexerHTML
XMLStart enum valueQsciLexerHTML
XMLTagEnd enum valueQsciLexerHTML
~QsciLexer()QsciLexer [virtual]
~QsciLexerHTML()QsciLexerHTML [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerHTML.html b/doc/html-Qt3/classQsciLexerHTML.html new file mode 100644 index 0000000..e108ef3 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerHTML.html @@ -0,0 +1,1115 @@ + + + + +QScintilla: QsciLexerHTML Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerHTML Class Reference
+
+
+ +

#include <qscilexerhtml.h>

+ +

Inherits QsciLexer.

+ +

Inherited by QsciLexerXML.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerHTML class encapsulates the Scintilla HTML lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the HTML lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Tag  +

A tag.

+
UnknownTag  +

An unknown tag.

+
Attribute  +

An attribute.

+
UnknownAttribute  +

An unknown attribute.

+
HTMLNumber  +

An HTML number.

+
HTMLDoubleQuotedString  +

An HTML double-quoted string.

+
HTMLSingleQuotedString  +

An HTML single-quoted string.

+
OtherInTag  +

Other text within a tag.

+
HTMLComment  +

An HTML comment.

+
Entity  +

An entity.

+
XMLTagEnd  +

The end of an XML style tag.

+
XMLStart  +

The start of an XML fragment.

+
XMLEnd  +

The end of an XML fragment.

+
Script  +

A script tag.

+
ASPAtStart  +

The start of an ASP fragment with @.

+
ASPStart  +

The start of an ASP fragment.

+
CDATA  +

CDATA.

+
PHPStart  +

The start of a PHP fragment.

+
HTMLValue  +

An unquoted HTML value.

+
ASPXCComment  +

An ASP X-Code comment.

+
SGMLDefault  +

The default for SGML.

+
SGMLCommand  +

An SGML command.

+
SGMLParameter  +

The first parameter of an SGML command.

+
SGMLDoubleQuotedString  +

An SGML double-quoted string.

+
SGMLSingleQuotedString  +

An SGML single-quoted string.

+
SGMLError  +

An SGML error.

+
SGMLSpecial  +

An SGML special entity.

+
SGMLEntity  +

An SGML entity.

+
SGMLComment  +

An SGML comment.

+
SGMLParameterComment  +

A comment with the first parameter of an SGML command.

+
SGMLBlockDefault  +

The default for an SGML block.

+
JavaScriptStart  +

The start of a JavaScript fragment.

+
JavaScriptDefault  +

The default for JavaScript.

+
JavaScriptComment  +

A JavaScript comment.

+
JavaScriptCommentLine  +

A JavaScript line comment.

+
JavaScriptCommentDoc  +

A JavaDoc style JavaScript comment.

+
JavaScriptNumber  +

A JavaScript number.

+
JavaScriptWord  +

A JavaScript word.

+
JavaScriptKeyword  +

A JavaScript keyword.

+
JavaScriptDoubleQuotedString  +

A JavaScript double-quoted string.

+
JavaScriptSingleQuotedString  +

A JavaScript single-quoted string.

+
JavaScriptSymbol  +

A JavaScript symbol.

+
JavaScriptUnclosedString  +

The end of a JavaScript line where a string is not closed.

+
JavaScriptRegex  +

A JavaScript regular expression.

+
ASPJavaScriptStart  +

The start of an ASP JavaScript fragment.

+
ASPJavaScriptDefault  +

The default for ASP JavaScript.

+
ASPJavaScriptComment  +

An ASP JavaScript comment.

+
ASPJavaScriptCommentLine  +

An ASP JavaScript line comment.

+
ASPJavaScriptCommentDoc  +

An ASP JavaDoc style JavaScript comment.

+
ASPJavaScriptNumber  +

An ASP JavaScript number.

+
ASPJavaScriptWord  +

An ASP JavaScript word.

+
ASPJavaScriptKeyword  +

An ASP JavaScript keyword.

+
ASPJavaScriptDoubleQuotedString  +

An ASP JavaScript double-quoted string.

+
ASPJavaScriptSingleQuotedString  +

An ASP JavaScript single-quoted string.

+
ASPJavaScriptSymbol  +

An ASP JavaScript symbol.

+
ASPJavaScriptUnclosedString  +

The end of an ASP JavaScript line where a string is not closed.

+
ASPJavaScriptRegex  +

An ASP JavaScript regular expression.

+
VBScriptStart  +

The start of a VBScript fragment.

+
VBScriptDefault  +

The default for VBScript.

+
VBScriptComment  +

A VBScript comment.

+
VBScriptNumber  +

A VBScript number.

+
VBScriptKeyword  +

A VBScript keyword.

+
VBScriptString  +

A VBScript string.

+
VBScriptIdentifier  +

A VBScript identifier.

+
VBScriptUnclosedString  +

The end of a VBScript line where a string is not closed.

+
ASPVBScriptStart  +

The start of an ASP VBScript fragment.

+
ASPVBScriptDefault  +

The default for ASP VBScript.

+
ASPVBScriptComment  +

An ASP VBScript comment.

+
ASPVBScriptNumber  +

An ASP VBScript number.

+
ASPVBScriptKeyword  +

An ASP VBScript keyword.

+
ASPVBScriptString  +

An ASP VBScript string.

+
ASPVBScriptIdentifier  +

An ASP VBScript identifier.

+
ASPVBScriptUnclosedString  +

The end of an ASP VBScript line where a string is not closed.

+
PythonStart  +

The start of a Python fragment.

+
PythonDefault  +

The default for Python.

+
PythonComment  +

A Python comment.

+
PythonNumber  +

A Python number.

+
PythonDoubleQuotedString  +

A Python double-quoted string.

+
PythonSingleQuotedString  +

A Python single-quoted string.

+
PythonKeyword  +

A Python keyword.

+
PythonTripleSingleQuotedString  +

A Python triple single-quoted string.

+
PythonTripleDoubleQuotedString  +

A Python triple double-quoted string.

+
PythonClassName  +

The name of a Python class.

+
PythonFunctionMethodName  +

The name of a Python function or method.

+
PythonOperator  +

A Python operator.

+
PythonIdentifier  +

A Python identifier.

+
ASPPythonStart  +

The start of an ASP Python fragment.

+
ASPPythonDefault  +

The default for ASP Python.

+
ASPPythonComment  +

An ASP Python comment.

+
ASPPythonNumber  +

An ASP Python number.

+
ASPPythonDoubleQuotedString  +

An ASP Python double-quoted string.

+
ASPPythonSingleQuotedString  +

An ASP Python single-quoted string.

+
ASPPythonKeyword  +

An ASP Python keyword.

+
ASPPythonTripleSingleQuotedString  +

An ASP Python triple single-quoted string.

+
ASPPythonTripleDoubleQuotedString  +

An ASP Python triple double-quoted string.

+
ASPPythonClassName  +

The name of an ASP Python class.

+
ASPPythonFunctionMethodName  +

The name of an ASP Python function or method.

+
ASPPythonOperator  +

An ASP Python operator.

+
ASPPythonIdentifier  +

An ASP Python identifier.

+
PHPDefault  +

The default for PHP.

+
PHPDoubleQuotedString  +

A PHP double-quoted string.

+
PHPSingleQuotedString  +

A PHP single-quoted string.

+
PHPKeyword  +

A PHP keyword.

+
PHPNumber  +

A PHP number.

+
PHPVariable  +

A PHP variable.

+
PHPComment  +

A PHP comment.

+
PHPCommentLine  +

A PHP line comment.

+
PHPDoubleQuotedVariable  +

A PHP double-quoted variable.

+
PHPOperator  +

A PHP operator.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerHTML::QsciLexerHTML (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerHTML with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerHTML::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerHTML::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerHTML::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerHTML::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerHTML::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerHTML::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::caseSensitiveTags () const [inline]
+
+
+

Returns true if tags are case sensitive.

+
See also:
setCaseSensitiveTags()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerHTML::setDjangoTemplates (bool enabled)
+
+
+

If enabled is true then Django templates are enabled. The default is false.

+
See also:
djangoTemplates()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::djangoTemplates () const [inline]
+
+
+

Returns true if support for Django templates is enabled.

+
See also:
setDjangoTemplates()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::foldPreprocessor () const [inline]
+
+
+

Returns true if preprocessor blocks can be folded.

+
See also:
setFoldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerHTML::setFoldScriptComments (bool fold)
+
+
+

If fold is true then script comments can be folded. The default is false.

+
See also:
foldScriptComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::foldScriptComments () const [inline]
+
+
+

Returns true if script comments can be folded.

+
See also:
setFoldScriptComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerHTML::setFoldScriptHeredocs (bool fold)
+
+
+

If fold is true then script heredocs can be folded. The default is false.

+
See also:
foldScriptHeredocs()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::foldScriptHeredocs () const [inline]
+
+
+

Returns true if script heredocs can be folded.

+
See also:
setFoldScriptHeredocs()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerHTML::setMakoTemplates (bool enabled)
+
+
+

If enabled is true then Mako templates are enabled. The default is false.

+
See also:
makoTemplates()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::makoTemplates () const [inline]
+
+
+

Returns true if support for Mako templates is enabled.

+
See also:
setMakoTemplates()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerHTML::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerHTML::setFoldPreprocessor (bool fold) [virtual, slot]
+
+
+

If fold is true then preprocessor blocks can be folded. The default is false.

+
See also:
foldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerHTML::setCaseSensitiveTags (bool sens) [virtual, slot]
+
+
+

If sens is true then tags are case sensitive. The default is false.

+
See also:
caseSensitiveTags()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerHTML::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerHTML::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerIDL-members.html b/doc/html-Qt3/classQsciLexerIDL-members.html new file mode 100644 index 0000000..a4751b8 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerIDL-members.html @@ -0,0 +1,192 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerIDL Member List
+
+
+This is the complete list of members for QsciLexerIDL, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
braceStyle() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCPP
CommentDoc enum valueQsciLexerCPP
CommentDocKeyword enum valueQsciLexerCPP
CommentDocKeywordError enum valueQsciLexerCPP
CommentLine enum valueQsciLexerCPP
CommentLineDoc enum valueQsciLexerCPP
Default enum valueQsciLexerCPP
defaultColor(int style) const QsciLexerIDL [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerCPP [virtual]
defaultFont(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerIDL [virtual]
dollarsAllowed() const QsciLexerCPP [inline]
DoubleQuotedString enum valueQsciLexerCPP
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCPP [inline]
foldComments() const QsciLexerCPP [inline]
foldCompact() const QsciLexerCPP [inline]
foldPreprocessor() const QsciLexerCPP [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCPP
HashQuotedString enum valueQsciLexerCPP
highlightHashQuotedStrings() const QsciLexerCPP [inline]
highlightTripleQuotedStrings() const QsciLexerCPP [inline]
Identifier enum valueQsciLexerCPP
InactiveComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeywordError enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLine enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDefault enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDoubleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveGlobalClass enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveHashQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveIdentifier enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeywordSet2 enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveNumber enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveOperator enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessor enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRawString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRegex enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveSingleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveTripleQuotedVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUnclosedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUUID enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCPP
keywords(int set) const QsciLexerIDL [virtual]
KeywordSet2 enum valueQsciLexerCPP
language() const QsciLexerIDL [virtual]
lexer() const QsciLexerCPP [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCPP
Operator enum valueQsciLexerCPP
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCPP
PreProcessorComment enum valueQsciLexerCPP
PreProcessorCommentLineDoc enum valueQsciLexerCPP
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerCPP(QObject *parent=0, const char *name=0, bool caseInsensitiveKeywords=false)QsciLexerCPP
QsciLexerIDL(QObject *parent=0, const char *name=0)QsciLexerIDL
RawString enum valueQsciLexerCPP
readProperties(QSettings &qs, const QString &prefix)QsciLexerCPP [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCPP [virtual]
Regex enum valueQsciLexerCPP
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCPP
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCPP [virtual, slot]
setFoldComments(bool fold)QsciLexerCPP [virtual, slot]
setFoldCompact(bool fold)QsciLexerCPP [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerCPP [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightHashQuotedStrings(bool enabled)QsciLexerCPP
setHighlightTripleQuotedStrings(bool enabled)QsciLexerCPP
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCPP [virtual, slot]
SingleQuotedString enum valueQsciLexerCPP
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCPP [inline]
TripleQuotedVerbatimString enum valueQsciLexerCPP
UnclosedString enum valueQsciLexerCPP
UUID enum valueQsciLexerCPP
VerbatimString enum valueQsciLexerCPP
wordCharacters() const QsciLexerCPP [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCPP [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCPP()QsciLexerCPP [virtual]
~QsciLexerIDL()QsciLexerIDL [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerIDL.html b/doc/html-Qt3/classQsciLexerIDL.html new file mode 100644 index 0000000..1571e1b --- /dev/null +++ b/doc/html-Qt3/classQsciLexerIDL.html @@ -0,0 +1,161 @@ + + + + +QScintilla: QsciLexerIDL Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerIDL Class Reference
+
+
+ +

#include <qscilexeridl.h>

+ +

Inherits QsciLexerCPP.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerIDL class encapsulates the Scintilla IDL lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerIDL::QsciLexerIDL (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerIDL with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
const char* QsciLexerIDL::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerIDL::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerJava-members.html b/doc/html-Qt3/classQsciLexerJava-members.html new file mode 100644 index 0000000..dce9543 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerJava-members.html @@ -0,0 +1,192 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerJava Member List
+
+
+This is the complete list of members for QsciLexerJava, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
braceStyle() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCPP
CommentDoc enum valueQsciLexerCPP
CommentDocKeyword enum valueQsciLexerCPP
CommentDocKeywordError enum valueQsciLexerCPP
CommentLine enum valueQsciLexerCPP
CommentLineDoc enum valueQsciLexerCPP
Default enum valueQsciLexerCPP
defaultColor(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerCPP [virtual]
defaultFont(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCPP [virtual]
dollarsAllowed() const QsciLexerCPP [inline]
DoubleQuotedString enum valueQsciLexerCPP
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCPP [inline]
foldComments() const QsciLexerCPP [inline]
foldCompact() const QsciLexerCPP [inline]
foldPreprocessor() const QsciLexerCPP [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCPP
HashQuotedString enum valueQsciLexerCPP
highlightHashQuotedStrings() const QsciLexerCPP [inline]
highlightTripleQuotedStrings() const QsciLexerCPP [inline]
Identifier enum valueQsciLexerCPP
InactiveComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeywordError enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLine enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDefault enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDoubleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveGlobalClass enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveHashQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveIdentifier enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeywordSet2 enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveNumber enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveOperator enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessor enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRawString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRegex enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveSingleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveTripleQuotedVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUnclosedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUUID enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCPP
keywords(int set) const QsciLexerJava [virtual]
KeywordSet2 enum valueQsciLexerCPP
language() const QsciLexerJava [virtual]
lexer() const QsciLexerCPP [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCPP
Operator enum valueQsciLexerCPP
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCPP
PreProcessorComment enum valueQsciLexerCPP
PreProcessorCommentLineDoc enum valueQsciLexerCPP
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerCPP(QObject *parent=0, const char *name=0, bool caseInsensitiveKeywords=false)QsciLexerCPP
QsciLexerJava(QObject *parent=0, const char *name=0)QsciLexerJava
RawString enum valueQsciLexerCPP
readProperties(QSettings &qs, const QString &prefix)QsciLexerCPP [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCPP [virtual]
Regex enum valueQsciLexerCPP
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCPP
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCPP [virtual, slot]
setFoldComments(bool fold)QsciLexerCPP [virtual, slot]
setFoldCompact(bool fold)QsciLexerCPP [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerCPP [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightHashQuotedStrings(bool enabled)QsciLexerCPP
setHighlightTripleQuotedStrings(bool enabled)QsciLexerCPP
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCPP [virtual, slot]
SingleQuotedString enum valueQsciLexerCPP
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCPP [inline]
TripleQuotedVerbatimString enum valueQsciLexerCPP
UnclosedString enum valueQsciLexerCPP
UUID enum valueQsciLexerCPP
VerbatimString enum valueQsciLexerCPP
wordCharacters() const QsciLexerCPP [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCPP [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCPP()QsciLexerCPP [virtual]
~QsciLexerJava()QsciLexerJava [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerJava.html b/doc/html-Qt3/classQsciLexerJava.html new file mode 100644 index 0000000..10c2c79 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerJava.html @@ -0,0 +1,138 @@ + + + + +QScintilla: QsciLexerJava Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerJava Class Reference
+
+
+ +

#include <qscilexerjava.h>

+ +

Inherits QsciLexerCPP.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerJava class encapsulates the Scintilla Java lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerJava::QsciLexerJava (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerJava with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
const char* QsciLexerJava::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerJavaScript-members.html b/doc/html-Qt3/classQsciLexerJavaScript-members.html new file mode 100644 index 0000000..1216120 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerJavaScript-members.html @@ -0,0 +1,192 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerJavaScript Member List
+
+
+This is the complete list of members for QsciLexerJavaScript, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
braceStyle() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCPP
CommentDoc enum valueQsciLexerCPP
CommentDocKeyword enum valueQsciLexerCPP
CommentDocKeywordError enum valueQsciLexerCPP
CommentLine enum valueQsciLexerCPP
CommentLineDoc enum valueQsciLexerCPP
Default enum valueQsciLexerCPP
defaultColor(int style) const QsciLexerJavaScript [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerJavaScript [virtual]
defaultFont(int style) const QsciLexerJavaScript [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerJavaScript [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerJavaScript [virtual]
dollarsAllowed() const QsciLexerCPP [inline]
DoubleQuotedString enum valueQsciLexerCPP
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCPP [inline]
foldComments() const QsciLexerCPP [inline]
foldCompact() const QsciLexerCPP [inline]
foldPreprocessor() const QsciLexerCPP [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCPP
HashQuotedString enum valueQsciLexerCPP
highlightHashQuotedStrings() const QsciLexerCPP [inline]
highlightTripleQuotedStrings() const QsciLexerCPP [inline]
Identifier enum valueQsciLexerCPP
InactiveComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeywordError enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLine enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDefault enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDoubleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveGlobalClass enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveHashQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveIdentifier enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeywordSet2 enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveNumber enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveOperator enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessor enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRawString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRegex enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveSingleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveTripleQuotedVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUnclosedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUUID enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCPP
keywords(int set) const QsciLexerJavaScript [virtual]
KeywordSet2 enum valueQsciLexerCPP
language() const QsciLexerJavaScript [virtual]
lexer() const QsciLexerCPP [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCPP
Operator enum valueQsciLexerCPP
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCPP
PreProcessorComment enum valueQsciLexerCPP
PreProcessorCommentLineDoc enum valueQsciLexerCPP
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerCPP(QObject *parent=0, const char *name=0, bool caseInsensitiveKeywords=false)QsciLexerCPP
QsciLexerJavaScript(QObject *parent=0, const char *name=0)QsciLexerJavaScript
RawString enum valueQsciLexerCPP
readProperties(QSettings &qs, const QString &prefix)QsciLexerCPP [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCPP [virtual]
Regex enum valueQsciLexerCPP
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCPP
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCPP [virtual, slot]
setFoldComments(bool fold)QsciLexerCPP [virtual, slot]
setFoldCompact(bool fold)QsciLexerCPP [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerCPP [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightHashQuotedStrings(bool enabled)QsciLexerCPP
setHighlightTripleQuotedStrings(bool enabled)QsciLexerCPP
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCPP [virtual, slot]
SingleQuotedString enum valueQsciLexerCPP
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCPP [inline]
TripleQuotedVerbatimString enum valueQsciLexerCPP
UnclosedString enum valueQsciLexerCPP
UUID enum valueQsciLexerCPP
VerbatimString enum valueQsciLexerCPP
wordCharacters() const QsciLexerCPP [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCPP [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCPP()QsciLexerCPP [virtual]
~QsciLexerJavaScript()QsciLexerJavaScript [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerJavaScript.html b/doc/html-Qt3/classQsciLexerJavaScript.html new file mode 100644 index 0000000..962d563 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerJavaScript.html @@ -0,0 +1,207 @@ + + + + +QScintilla: QsciLexerJavaScript Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerJavaScript Class Reference
+
+
+ +

#include <qscilexerjavascript.h>

+ +

Inherits QsciLexerCPP.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerJavaScript class encapsulates the Scintilla JavaScript lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerJavaScript::QsciLexerJavaScript (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerJavaScript with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
QColor QsciLexerJavaScript::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerJavaScript::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerJavaScript::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerJavaScript::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerLua-members.html b/doc/html-Qt3/classQsciLexerLua-members.html new file mode 100644 index 0000000..958d348 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerLua-members.html @@ -0,0 +1,146 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerLua Member List
+
+
+This is the complete list of members for QsciLexerLua, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerLua)QsciLexerLua [virtual]
autoIndentStyle()QsciLexer
BasicFunctions enum valueQsciLexerLua
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerLua)QsciLexerLua [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerLua)QsciLexerLua [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
Character enum valueQsciLexerLua
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerLua
CoroutinesIOSystemFacilities enum valueQsciLexerLua
Default enum valueQsciLexerLua
defaultColor(int style) const QsciLexerLua [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerLua [virtual]
defaultFont(int style) const QsciLexerLua [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerLua [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerLua [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldCompact() const QsciLexerLua
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerLua
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerLua
keywords(int set) const QsciLexerLua [virtual]
KeywordSet5 enum valueQsciLexerLua
KeywordSet6 enum valueQsciLexerLua
KeywordSet7 enum valueQsciLexerLua
KeywordSet8 enum valueQsciLexerLua
Label enum valueQsciLexerLua
language() const QsciLexerLua [virtual]
lexer() const QsciLexerLua [virtual]
lexerId() const QsciLexer [virtual]
LineComment enum valueQsciLexerLua
LiteralString enum valueQsciLexerLua
Number enum valueQsciLexerLua
Operator enum valueQsciLexerLua
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Preprocessor enum valueQsciLexerLua
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerLua(QObject *parent=0, const char *name=0)QsciLexerLua
readProperties(QSettings &qs, const QString &prefix)QsciLexerLua [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerLua [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerLua [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerLua
StringTableMathsFunctions enum valueQsciLexerLua
styleBitsNeeded() const QsciLexer [virtual]
UnclosedString enum valueQsciLexerLua
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerLua [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerLua()QsciLexerLua [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerLua.html b/doc/html-Qt3/classQsciLexerLua.html new file mode 100644 index 0000000..3a236c8 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerLua.html @@ -0,0 +1,477 @@ + + + + +QScintilla: QsciLexerLua Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerLua Class Reference
+
+
+ +

#include <qscilexerlua.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerLua class encapsulates the Scintilla Lua lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Lua lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A block comment.

+
LineComment  +

A line comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
String  +

A string.

+
Character  +

A character.

+
LiteralString  +

A literal string.

+
Preprocessor  +

Preprocessor.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
UnclosedString  +

The end of a line where a string is not closed.

+
BasicFunctions  +

Basic functions.

+
StringTableMathsFunctions  +

String, table and maths functions.

+
CoroutinesIOSystemFacilities  +

Coroutines, I/O and system facilities.

+
KeywordSet5  +

A keyword defined in keyword set number 5. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet8  +

A keyword defined in keyword set number 8. The class must be sub-classed and re-implement keywords() to make use of this style.

+
Label  +

A label.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerLua::QsciLexerLua (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerLua with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerLua::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerLua::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerLua::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerLua::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerLua::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerLua::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerLua::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerLua::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerLua::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerLua::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerMakefile-members.html b/doc/html-Qt3/classQsciLexerMakefile-members.html new file mode 100644 index 0000000..b9922f3 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerMakefile-members.html @@ -0,0 +1,131 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerMakefile Member List
+
+
+This is the complete list of members for QsciLexerMakefile, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerMakefile
Default enum valueQsciLexerMakefile
defaultColor(int style) const QsciLexerMakefile [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerMakefile [virtual]
defaultFont(int style) const QsciLexerMakefile [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerMakefile [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerMakefile [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Error enum valueQsciLexerMakefile
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexer [virtual]
language() const QsciLexerMakefile [virtual]
lexer() const QsciLexerMakefile [virtual]
lexerId() const QsciLexer [virtual]
Operator enum valueQsciLexerMakefile
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Preprocessor enum valueQsciLexerMakefile
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerMakefile(QObject *parent=0, const char *name=0)QsciLexerMakefile
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
Target enum valueQsciLexerMakefile
Variable enum valueQsciLexerMakefile
wordCharacters() const QsciLexerMakefile [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerMakefile()QsciLexerMakefile [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerMakefile.html b/doc/html-Qt3/classQsciLexerMakefile.html new file mode 100644 index 0000000..e9a6700 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerMakefile.html @@ -0,0 +1,265 @@ + + + + +QScintilla: QsciLexerMakefile Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerMakefile Class Reference
+
+
+ +

#include <qscilexermakefile.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerMakefile class encapsulates the Scintilla Makefile lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Makefile lexer.

+
Enumerator:
+ + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Preprocessor  +

A pre-processor directive.

+
Variable  +

A variable.

+
Operator  +

An operator.

+
Target  +

A target.

+
Error  +

An error.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerMakefile::QsciLexerMakefile (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerMakefile with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerMakefile::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerMakefile::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerMakefile::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerMakefile::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerMatlab-members.html b/doc/html-Qt3/classQsciLexerMatlab-members.html new file mode 100644 index 0000000..13eae65 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerMatlab-members.html @@ -0,0 +1,133 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerMatlab Member List
+
+
+This is the complete list of members for QsciLexerMatlab, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Command enum valueQsciLexerMatlab
Comment enum valueQsciLexerMatlab
Default enum valueQsciLexerMatlab
defaultColor(int style) const QsciLexerMatlab [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerMatlab [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerMatlab [virtual]
DoubleQuotedString enum valueQsciLexerMatlab
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerMatlab
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerMatlab
keywords(int set) const QsciLexerMatlab [virtual]
language() const QsciLexerMatlab [virtual]
lexer() const QsciLexerMatlab [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerMatlab
Operator enum valueQsciLexerMatlab
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerMatlab(QObject *parent=0, const char *name=0)QsciLexerMatlab
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedString enum valueQsciLexerMatlab
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerMatlab()QsciLexerMatlab [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerMatlab.html b/doc/html-Qt3/classQsciLexerMatlab.html new file mode 100644 index 0000000..bc4c0e2 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerMatlab.html @@ -0,0 +1,274 @@ + + + + +QScintilla: QsciLexerMatlab Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerMatlab Class Reference
+
+
+ +

#include <qscilexermatlab.h>

+ +

Inherits QsciLexer.

+ +

Inherited by QsciLexerOctave.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerMatlab class encapsulates the Scintilla Matlab file lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Matlab file lexer.

+
Enumerator:
+ + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Command  +

A command.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
SingleQuotedString  +

A single quoted string.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
DoubleQuotedString  +

A double quoted string.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerMatlab::QsciLexerMatlab (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerMatlab with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerMatlab::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerOctave.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerMatlab::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerMatlab::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerOctave.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerMatlab::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerOctave-members.html b/doc/html-Qt3/classQsciLexerOctave-members.html new file mode 100644 index 0000000..be059b0 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerOctave-members.html @@ -0,0 +1,135 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerOctave Member List
+
+
+This is the complete list of members for QsciLexerOctave, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Command enum valueQsciLexerMatlab
Comment enum valueQsciLexerMatlab
Default enum valueQsciLexerMatlab
defaultColor(int style) const QsciLexerMatlab [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerMatlab [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerMatlab [virtual]
DoubleQuotedString enum valueQsciLexerMatlab
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerMatlab
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerMatlab
keywords(int set) const QsciLexerOctave [virtual]
language() const QsciLexerOctave [virtual]
lexer() const QsciLexerOctave [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerMatlab
Operator enum valueQsciLexerMatlab
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerMatlab(QObject *parent=0, const char *name=0)QsciLexerMatlab
QsciLexerOctave(QObject *parent=0, const char *name=0)QsciLexerOctave
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedString enum valueQsciLexerMatlab
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerMatlab()QsciLexerMatlab [virtual]
~QsciLexerOctave()QsciLexerOctave [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerOctave.html b/doc/html-Qt3/classQsciLexerOctave.html new file mode 100644 index 0000000..9e34db2 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerOctave.html @@ -0,0 +1,158 @@ + + + + +QScintilla: QsciLexerOctave Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerOctave Class Reference
+
+
+ +

#include <qscilexeroctave.h>

+ +

Inherits QsciLexerMatlab.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerOctave class encapsulates the Scintilla Octave file lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerOctave::QsciLexerOctave (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerOctave with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerOctave::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexerMatlab.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerOctave::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerMatlab.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPO-members.html b/doc/html-Qt3/classQsciLexerPO-members.html new file mode 100644 index 0000000..f236b7c --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPO-members.html @@ -0,0 +1,143 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPO Member List
+
+
+This is the complete list of members for QsciLexerPO, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPO
Default enum valueQsciLexerPO
defaultColor(int style) const QsciLexerPO [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerPO [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPO [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Flags enum valueQsciLexerPO
foldComments() const QsciLexerPO
foldCompact() const QsciLexerPO
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Fuzzy enum valueQsciLexerPO
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexer [virtual]
language() const QsciLexerPO [virtual]
lexer() const QsciLexerPO [virtual]
lexerId() const QsciLexer [virtual]
MessageContext enum valueQsciLexerPO
MessageContextText enum valueQsciLexerPO
MessageContextTextEOL enum valueQsciLexerPO
MessageId enum valueQsciLexerPO
MessageIdText enum valueQsciLexerPO
MessageIdTextEOL enum valueQsciLexerPO
MessageString enum valueQsciLexerPO
MessageStringText enum valueQsciLexerPO
MessageStringTextEOL enum valueQsciLexerPO
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
ProgrammerComment enum valueQsciLexerPO
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerPO(QObject *parent=0, const char *name=0)QsciLexerPO
readProperties(QSettings &qs, const QString &prefix)QsciLexerPO [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
Reference enum valueQsciLexerPO
refreshProperties()QsciLexerPO [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerPO [virtual, slot]
setFoldCompact(bool fold)QsciLexerPO [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPO [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPO()QsciLexerPO [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPO.html b/doc/html-Qt3/classQsciLexerPO.html new file mode 100644 index 0000000..a9dba5e --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPO.html @@ -0,0 +1,443 @@ + + + + +QScintilla: QsciLexerPO Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPO Class Reference
+
+
+ +

#include <qscilexerpo.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPO class encapsulates the Scintilla PO lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the PO lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
MessageId  +

A message identifier.

+
MessageIdText  +

The text of a message identifier.

+
MessageString  +

A message string.

+
MessageStringText  +

The text of a message string.

+
MessageContext  +

A message context.

+
MessageContextText  +

The text of a message context.

+
Fuzzy  +

The "fuzzy" flag.

+
ProgrammerComment  +

A programmer comment.

+
Reference  +

A reference.

+
Flags  +

A flag.

+
MessageIdTextEOL  +

A message identifier text end-of-line.

+
MessageStringTextEOL  +

A message string text end-of-line.

+
MessageContextTextEOL  +

A message context text end-of-line.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerPO::QsciLexerPO (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerPO with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPO::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPO::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPO::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPO::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPO::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPO::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPO::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPO::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPO::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPO::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPOV-members.html b/doc/html-Qt3/classQsciLexerPOV-members.html new file mode 100644 index 0000000..c95e3a7 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPOV-members.html @@ -0,0 +1,147 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPOV Member List
+
+
+This is the complete list of members for QsciLexerPOV, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
BadDirective enum valueQsciLexerPOV
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerPOV)QsciLexerPOV [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPOV
CommentLine enum valueQsciLexerPOV
Default enum valueQsciLexerPOV
defaultColor(int style) const QsciLexerPOV [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerPOV [virtual]
defaultFont(int style) const QsciLexerPOV [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerPOV [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPOV [virtual]
Directive enum valueQsciLexerPOV
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerPOV
foldCompact() const QsciLexerPOV
foldDirectives() const QsciLexerPOV
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerPOV
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexerPOV [virtual]
KeywordSet6 enum valueQsciLexerPOV
KeywordSet7 enum valueQsciLexerPOV
KeywordSet8 enum valueQsciLexerPOV
language() const QsciLexerPOV [virtual]
lexer() const QsciLexerPOV [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerPOV
ObjectsCSGAppearance enum valueQsciLexerPOV
Operator enum valueQsciLexerPOV
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PredefinedFunctions enum valueQsciLexerPOV
PredefinedIdentifiers enum valueQsciLexerPOV
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerPOV(QObject *parent=0, const char *name=0)QsciLexerPOV
readProperties(QSettings &qs, const QString &prefix)QsciLexerPOV [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerPOV [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerPOV [virtual, slot]
setFoldCompact(bool fold)QsciLexerPOV [virtual, slot]
setFoldDirectives(bool fold)QsciLexerPOV [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerPOV
styleBitsNeeded() const QsciLexer [virtual]
TypesModifiersItems enum valueQsciLexerPOV
UnclosedString enum valueQsciLexerPOV
wordCharacters() const QsciLexerPOV [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPOV [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPOV()QsciLexerPOV [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPOV.html b/doc/html-Qt3/classQsciLexerPOV.html new file mode 100644 index 0000000..7d7d25c --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPOV.html @@ -0,0 +1,540 @@ + + + + +QScintilla: QsciLexerPOV Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPOV Class Reference
+
+
+ +

#include <qscilexerpov.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPOV class encapsulates the Scintilla POV lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the POV lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A comment line.

+
Number  +

A number.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
String  +

A string.

+
UnclosedString  +

The end of a line where a string is not closed.

+
Directive  +

A directive.

+
BadDirective  +

A bad directive.

+
ObjectsCSGAppearance  +

Objects, CSG and appearance.

+
TypesModifiersItems  +

Types, modifiers and items.

+
PredefinedIdentifiers  +

Predefined identifiers.

+
PredefinedFunctions  +

Predefined identifiers.

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet8  +

A keyword defined in keyword set number 8. The class must be sub-classed and re-implement keywords() to make use of this style.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerPOV::QsciLexerPOV (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerPOV with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPOV::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPOV::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPOV::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerPOV::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPOV::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPOV::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPOV::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPOV::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPOV::foldDirectives () const
+
+
+

Returns true if directives can be folded.

+
See also:
setFoldDirectives()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPOV::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPOV::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPOV::setFoldDirectives (bool fold) [virtual, slot]
+
+
+

If fold is true then directives can be folded. The default is false.

+
See also:
foldDirectives()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPOV::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPOV::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPascal-members.html b/doc/html-Qt3/classQsciLexerPascal-members.html new file mode 100644 index 0000000..203df03 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPascal-members.html @@ -0,0 +1,147 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPascal Member List
+
+
+This is the complete list of members for QsciLexerPascal, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
Asm enum valueQsciLexerPascal
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerPascal)QsciLexerPascal [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerPascal)QsciLexerPascal [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerPascal)QsciLexerPascal [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerPascal)QsciLexerPascal [virtual]
braceStyle() const (defined in QsciLexerPascal)QsciLexerPascal [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
Character enum valueQsciLexerPascal
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPascal
CommentLine enum valueQsciLexerPascal
CommentParenthesis enum valueQsciLexerPascal
Default enum valueQsciLexerPascal
defaultColor(int style) const QsciLexerPascal [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerPascal [virtual]
defaultFont(int style) const QsciLexerPascal [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerPascal [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPascal [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerPascal
foldCompact() const QsciLexerPascal
foldPreprocessor() const QsciLexerPascal
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HexNumber enum valueQsciLexerPascal
Identifier enum valueQsciLexerPascal
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerPascal
keywords(int set) const QsciLexerPascal [virtual]
language() const QsciLexerPascal [virtual]
lexer() const QsciLexerPascal [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerPascal
Operator enum valueQsciLexerPascal
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerPascal
PreProcessorParenthesis enum valueQsciLexerPascal
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerPascal(QObject *parent=0, const char *name=0)QsciLexerPascal
readProperties(QSettings &qs, const QString &prefix)QsciLexerPascal [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerPascal [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerPascal [virtual, slot]
setFoldCompact(bool fold)QsciLexerPascal [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerPascal [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setSmartHighlighting(bool enabled)QsciLexerPascal
SingleQuotedString enum valueQsciLexerPascal
smartHighlighting() const QsciLexerPascal
styleBitsNeeded() const QsciLexer [virtual]
UnclosedString enum valueQsciLexerPascal
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPascal [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPascal()QsciLexerPascal [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPascal.html b/doc/html-Qt3/classQsciLexerPascal.html new file mode 100644 index 0000000..b5b245a --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPascal.html @@ -0,0 +1,578 @@ + + + + +QScintilla: QsciLexerPascal Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPascal Class Reference
+
+
+ +

#include <qscilexerpascal.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPascal class encapsulates the Scintilla Pascal lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the C++ lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
Identifier  +

An identifier.

+
Comment  +

A '{ ... }' style comment.

+
CommentParenthesis  +

A '(* ... *)' style comment.

+
CommentLine  +

A comment line.

+
PreProcessor  +

A '{$ ... }' style pre-processor block.

+
PreProcessorParenthesis  +

A '(*$ ... *)' style pre-processor block.

+
Number  +

A number.

+
HexNumber  +

A hexadecimal number.

+
Keyword  +

A keyword.

+
SingleQuotedString  +

A single-quoted string.

+
UnclosedString  +

The end of a line where a string is not closed.

+
Character  +

A character.

+
Operator  +

An operator.

+
Asm  +

Inline Asm.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerPascal::QsciLexerPascal (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerPascal with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPascal::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPascal::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPascal::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerPascal::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPascal::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPascal::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPascal::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPascal::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPascal::foldPreprocessor () const
+
+
+

Returns true if preprocessor blocks can be folded.

+
See also:
setFoldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPascal::setSmartHighlighting (bool enabled)
+
+
+

If enabled is true then some keywords will only be highlighted in an appropriate context (similar to how the Delphi IDE works). The default is true.

+
See also:
smartHighlighting()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPascal::smartHighlighting () const
+
+
+

Returns true if some keywords will only be highlighted in an appropriate context (similar to how the Delphi IDE works).

+
See also:
setSmartHighlighting()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPascal::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPascal::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPascal::setFoldPreprocessor (bool fold) [virtual, slot]
+
+
+

If fold is true then preprocessor blocks can be folded. The default is true.

+
See also:
foldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPascal::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPascal::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPerl-members.html b/doc/html-Qt3/classQsciLexerPerl-members.html new file mode 100644 index 0000000..2bafbbc --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPerl-members.html @@ -0,0 +1,175 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPerl Member List
+
+
+This is the complete list of members for QsciLexerPerl, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
Array enum valueQsciLexerPerl
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerPerl)QsciLexerPerl [virtual]
autoIndentStyle()QsciLexer
BacktickHereDocument enum valueQsciLexerPerl
BacktickHereDocumentVar enum valueQsciLexerPerl
Backticks enum valueQsciLexerPerl
BackticksVar enum valueQsciLexerPerl
blockEnd(int *style=0) const (defined in QsciLexerPerl)QsciLexerPerl [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerPerl)QsciLexerPerl [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerPerl)QsciLexerPerl [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPerl
DataSection enum valueQsciLexerPerl
Default enum valueQsciLexerPerl
defaultColor(int style) const QsciLexerPerl [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerPerl [virtual]
defaultFont(int style) const QsciLexerPerl [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerPerl [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPerl [virtual]
DoubleQuotedHereDocument enum valueQsciLexerPerl
DoubleQuotedHereDocumentVar enum valueQsciLexerPerl
DoubleQuotedString enum valueQsciLexerPerl
DoubleQuotedStringVar enum valueQsciLexerPerl
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Error enum valueQsciLexerPerl
foldAtElse() const QsciLexerPerl [inline]
foldComments() const QsciLexerPerl
foldCompact() const QsciLexerPerl
foldPackages() const QsciLexerPerl
foldPODBlocks() const QsciLexerPerl
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
FormatBody enum valueQsciLexerPerl
FormatIdentifier enum valueQsciLexerPerl
Hash enum valueQsciLexerPerl
HereDocumentDelimiter enum valueQsciLexerPerl
Identifier enum valueQsciLexerPerl
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerPerl
keywords(int set) const QsciLexerPerl [virtual]
language() const QsciLexerPerl [virtual]
lexer() const QsciLexerPerl [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerPerl
Operator enum valueQsciLexerPerl
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
POD enum valueQsciLexerPerl
PODVerbatim enum valueQsciLexerPerl
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerPerl(QObject *parent=0, const char *name=0)QsciLexerPerl
QuotedStringQ enum valueQsciLexerPerl
QuotedStringQQ enum valueQsciLexerPerl
QuotedStringQQVar enum valueQsciLexerPerl
QuotedStringQR enum valueQsciLexerPerl
QuotedStringQRVar enum valueQsciLexerPerl
QuotedStringQW enum valueQsciLexerPerl
QuotedStringQX enum valueQsciLexerPerl
QuotedStringQXVar enum valueQsciLexerPerl
readProperties(QSettings &qs, const QString &prefix)QsciLexerPerl [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerPerl [virtual]
Regex enum valueQsciLexerPerl
RegexVar enum valueQsciLexerPerl
Scalar enum valueQsciLexerPerl
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerPerl
setFoldComments(bool fold)QsciLexerPerl [virtual, slot]
setFoldCompact(bool fold)QsciLexerPerl [virtual, slot]
setFoldPackages(bool fold)QsciLexerPerl
setFoldPODBlocks(bool fold)QsciLexerPerl
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedHereDocument enum valueQsciLexerPerl
SingleQuotedString enum valueQsciLexerPerl
styleBitsNeeded() const QsciLexer [virtual]
SubroutinePrototype enum valueQsciLexerPerl
Substitution enum valueQsciLexerPerl
SubstitutionVar enum valueQsciLexerPerl
SymbolTable enum valueQsciLexerPerl
Translation enum valueQsciLexerPerl
wordCharacters() const QsciLexerPerl [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPerl [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPerl()QsciLexerPerl [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPerl.html b/doc/html-Qt3/classQsciLexerPerl.html new file mode 100644 index 0000000..85b2726 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPerl.html @@ -0,0 +1,728 @@ + + + + +QScintilla: QsciLexerPerl Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPerl Class Reference
+
+
+ +

#include <qscilexerperl.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPerl class encapsulates the Scintilla Perl lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Perl lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Error  +

An error.

+
Comment  +

A comment.

+
POD  +

A POD.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
Scalar  +

A scalar.

+
Array  +

An array.

+
Hash  +

A hash.

+
SymbolTable  +

A symbol table.

+
Regex  +

A regular expression.

+
Substitution  +

A substitution.

+
Backticks  +

Backticks.

+
DataSection  +

A data section.

+
HereDocumentDelimiter  +

A here document delimiter.

+
SingleQuotedHereDocument  +

A single quoted here document.

+
DoubleQuotedHereDocument  +

A double quoted here document.

+
BacktickHereDocument  +

A backtick here document.

+
QuotedStringQ  +

A quoted string (q).

+
QuotedStringQQ  +

A quoted string (qq).

+
QuotedStringQX  +

A quoted string (qx).

+
QuotedStringQR  +

A quoted string (qr).

+
QuotedStringQW  +

A quoted string (qw).

+
PODVerbatim  +

A verbatim POD.

+
SubroutinePrototype  +

A Subroutine prototype.

+
FormatIdentifier  +

A format identifier.

+
FormatBody  +

A format body.

+
DoubleQuotedStringVar  +

A double-quoted string (interpolated variable).

+
Translation  +

A translation.

+
RegexVar  +

A regular expression (interpolated variable).

+
SubstitutionVar  +

A substitution (interpolated variable).

+
BackticksVar  +

Backticks (interpolated variable).

+
DoubleQuotedHereDocumentVar  +

A double quoted here document (interpolated variable).

+
BacktickHereDocumentVar  +

A backtick here document (interpolated variable).

+
QuotedStringQQVar  +

A quoted string (qq, interpolated variable).

+
QuotedStringQXVar  +

A quoted string (qx, interpolated variable).

+
QuotedStringQRVar  +

A quoted string (qr, interpolated variable).

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerPerl::QsciLexerPerl (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerPerl with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPerl::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPerl::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPerl::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerPerl::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPerl::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPerl::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPerl::setFoldAtElse (bool fold)
+
+
+

If fold is true then "} else {" lines can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPerl::foldAtElse () const [inline]
+
+
+

Returns true if "} else {" lines can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPerl::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPerl::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPerl::setFoldPackages (bool fold)
+
+
+

If fold is true then packages can be folded. The default is true.

+
See also:
foldPackages()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPerl::foldPackages () const
+
+
+

Returns true if packages can be folded.

+
See also:
setFoldPackages()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPerl::setFoldPODBlocks (bool fold)
+
+
+

If fold is true then POD blocks can be folded. The default is true.

+
See also:
foldPODBlocks()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPerl::foldPODBlocks () const
+
+
+

Returns true if POD blocks can be folded.

+
See also:
setFoldPODBlocks()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPerl::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPerl::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPerl::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPerl::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPostScript-members.html b/doc/html-Qt3/classQsciLexerPostScript-members.html new file mode 100644 index 0000000..bee8df9 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPostScript-members.html @@ -0,0 +1,148 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPostScript Member List
+
+
+This is the complete list of members for QsciLexerPostScript, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
ArrayParenthesis enum valueQsciLexerPostScript
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
BadStringCharacter enum valueQsciLexerPostScript
Base85String enum valueQsciLexerPostScript
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerPostScript)QsciLexerPostScript [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPostScript
Default enum valueQsciLexerPostScript
defaultColor(int style) const QsciLexerPostScript [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerPostScript [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerPostScript [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPostScript [virtual]
DictionaryParenthesis enum valueQsciLexerPostScript
DSCComment enum valueQsciLexerPostScript
DSCCommentValue enum valueQsciLexerPostScript
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerPostScript
foldCompact() const QsciLexerPostScript
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HexString enum valueQsciLexerPostScript
ImmediateEvalLiteral enum valueQsciLexerPostScript
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerPostScript
keywords(int set) const QsciLexerPostScript [virtual]
language() const QsciLexerPostScript [virtual]
level() const QsciLexerPostScript
lexer() const QsciLexerPostScript [virtual]
lexerId() const QsciLexer [virtual]
Literal enum valueQsciLexerPostScript
Name enum valueQsciLexerPostScript
Number enum valueQsciLexerPostScript
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
ProcedureParenthesis enum valueQsciLexerPostScript
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerPostScript(QObject *parent=0, const char *name=0)QsciLexerPostScript
readProperties(QSettings &qs, const QString &prefix)QsciLexerPostScript [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerPostScript [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerPostScript [virtual, slot]
setFoldCompact(bool fold)QsciLexerPostScript [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setLevel(int level)QsciLexerPostScript [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setTokenize(bool tokenize)QsciLexerPostScript [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
Text enum valueQsciLexerPostScript
tokenize() const QsciLexerPostScript
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPostScript [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPostScript()QsciLexerPostScript [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPostScript.html b/doc/html-Qt3/classQsciLexerPostScript.html new file mode 100644 index 0000000..e7bfb2a --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPostScript.html @@ -0,0 +1,571 @@ + + + + +QScintilla: QsciLexerPostScript Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPostScript Class Reference
+
+
+ +

#include <qscilexerpostscript.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPostScript class encapsulates the Scintilla PostScript lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the PostScript lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
DSCComment  +

A DSC comment.

+
DSCCommentValue  +

A DSC comment value.

+
Number  +

A number.

+
Name  +

A name.

+
Keyword  +

A keyword.

+
Literal  +

A literal.

+
ImmediateEvalLiteral  +

An immediately evaluated literal.

+
ArrayParenthesis  +

Array parenthesis.

+
DictionaryParenthesis  +

Dictionary parenthesis.

+
ProcedureParenthesis  +

Procedure parenthesis.

+
Text  +

Text.

+
HexString  +

A hexadecimal string.

+
Base85String  +

A base85 string.

+
BadStringCharacter  +

A bad string character.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerPostScript::QsciLexerPostScript (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerPostScript with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPostScript::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPostScript::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPostScript::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerPostScript::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string. Set 5 can be used to provide additional user defined keywords.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPostScript::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPostScript::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPostScript::tokenize () const
+
+
+

Returns true if tokens should be marked.

+
See also:
setTokenize()
+ +
+
+ +
+
+ + + + + + + +
int QsciLexerPostScript::level () const
+
+
+

Returns the PostScript level.

+
See also:
setLevel()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPostScript::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPostScript::foldAtElse () const
+
+
+

Returns true if else blocks can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPostScript::setTokenize (bool tokenize) [virtual, slot]
+
+
+

If tokenize is true then tokens are marked. The default is false.

+
See also:
tokenize()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPostScript::setLevel (int level) [virtual, slot]
+
+
+

The PostScript level is set to level. The default is 3.

+
See also:
level()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPostScript::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPostScript::setFoldAtElse (bool fold) [virtual, slot]
+
+
+

If fold is true then else blocks can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPostScript::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPostScript::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerProperties-members.html b/doc/html-Qt3/classQsciLexerProperties-members.html new file mode 100644 index 0000000..0fb4439 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerProperties-members.html @@ -0,0 +1,134 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerProperties Member List
+
+
+This is the complete list of members for QsciLexerProperties, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
Assignment enum valueQsciLexerProperties
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerProperties
Default enum valueQsciLexerProperties
defaultColor(int style) const QsciLexerProperties [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerProperties [virtual]
defaultFont(int style) const QsciLexerProperties [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerProperties [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
DefaultValue enum valueQsciLexerProperties
description(int style) const QsciLexerProperties [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldCompact() const QsciLexerProperties [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
initialSpaces() const QsciLexerProperties [inline]
Key enum valueQsciLexerProperties
keywords(int set) const QsciLexer [virtual]
language() const QsciLexerProperties [virtual]
lexer() const QsciLexerProperties [virtual]
lexerId() const QsciLexer [virtual]
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerProperties(QObject *parent=0, const char *name=0)QsciLexerProperties
readProperties(QSettings &qs, const QString &prefix)QsciLexerProperties [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerProperties [virtual]
Section enum valueQsciLexerProperties
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerProperties [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setInitialSpaces(bool enable)QsciLexerProperties
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexerProperties [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerProperties [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerProperties()QsciLexerProperties [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerProperties.html b/doc/html-Qt3/classQsciLexerProperties.html new file mode 100644 index 0000000..5fd9df4 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerProperties.html @@ -0,0 +1,432 @@ + + + + +QScintilla: QsciLexerProperties Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerProperties Class Reference
+
+
+ +

#include <qscilexerproperties.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerProperties class encapsulates the Scintilla Properties lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Properties lexer.

+
Enumerator:
+ + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Section  +

A section.

+
Assignment  +

An assignment operator.

+
DefaultValue  +

A default value.

+
Key  +

A key.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerProperties::QsciLexerProperties (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerProperties with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerProperties::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerProperties::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerProperties::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerProperties::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerProperties::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerProperties::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerProperties::setInitialSpaces (bool enable)
+
+
+

If enable is true then initial spaces in a line are allowed. The default is true.

+
See also:
initialSpaces()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerProperties::initialSpaces () const [inline]
+
+
+

Returns true if initial spaces in a line are allowed.

+
See also:
setInitialSpaces()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerProperties::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerProperties::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerProperties::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPython-members.html b/doc/html-Qt3/classQsciLexerPython-members.html new file mode 100644 index 0000000..bb2bc02 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPython-members.html @@ -0,0 +1,164 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPython Member List
+
+
+This is the complete list of members for QsciLexerPython, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerPython)QsciLexerPython [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexerPython)QsciLexerPython [virtual]
blockStart(int *style=0) const (defined in QsciLexerPython)QsciLexerPython [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerPython)QsciLexerPython [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
ClassName enum valueQsciLexerPython
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPython
CommentBlock enum valueQsciLexerPython
Decorator enum valueQsciLexerPython
Default enum valueQsciLexerPython
defaultColor(int style) const QsciLexerPython [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerPython [virtual]
defaultFont(int style) const QsciLexerPython [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerPython [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPython [virtual]
DoubleQuotedString enum valueQsciLexerPython
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerPython [inline]
foldCompact() const QsciLexerPython [inline]
foldQuotes() const QsciLexerPython [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
FunctionMethodName enum valueQsciLexerPython
HighlightedIdentifier enum valueQsciLexerPython
highlightSubidentifiers() const QsciLexerPython [inline]
Identifier enum valueQsciLexerPython
Inconsistent enum valueQsciLexerPython
indentationGuideView() const (defined in QsciLexerPython)QsciLexerPython [virtual]
IndentationWarning enum nameQsciLexerPython
indentationWarning() const QsciLexerPython [inline]
Keyword enum valueQsciLexerPython
keywords(int set) const QsciLexerPython [virtual]
language() const QsciLexerPython [virtual]
lexer() const QsciLexerPython [virtual]
lexerId() const QsciLexer [virtual]
NoWarning enum valueQsciLexerPython
Number enum valueQsciLexerPython
Operator enum valueQsciLexerPython
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerPython(QObject *parent=0, const char *name=0)QsciLexerPython
readProperties(QSettings &qs, const QString &prefix)QsciLexerPython [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerPython [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerPython [virtual, slot]
setFoldCompact(bool fold)QsciLexerPython
setFoldQuotes(bool fold)QsciLexerPython [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightSubidentifiers(bool enabled)QsciLexerPython
setIndentationWarning(QsciLexerPython::IndentationWarning warn)QsciLexerPython [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStringsOverNewlineAllowed(bool allowed)QsciLexerPython
setV2UnicodeAllowed(bool allowed)QsciLexerPython
setV3BinaryOctalAllowed(bool allowed)QsciLexerPython
setV3BytesAllowed(bool allowed)QsciLexerPython
SingleQuotedString enum valueQsciLexerPython
Spaces enum valueQsciLexerPython
stringsOverNewlineAllowed() const QsciLexerPython [inline]
styleBitsNeeded() const QsciLexer [virtual]
Tabs enum valueQsciLexerPython
TabsAfterSpaces enum valueQsciLexerPython
TripleDoubleQuotedString enum valueQsciLexerPython
TripleSingleQuotedString enum valueQsciLexerPython
UnclosedString enum valueQsciLexerPython
v2UnicodeAllowed() const QsciLexerPython [inline]
v3BinaryOctalAllowed() const QsciLexerPython [inline]
v3BytesAllowed() const QsciLexerPython [inline]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPython [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPython()QsciLexerPython [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerPython.html b/doc/html-Qt3/classQsciLexerPython.html new file mode 100644 index 0000000..0d87ee8 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerPython.html @@ -0,0 +1,818 @@ + + + + +QScintilla: QsciLexerPython Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPython Class Reference
+
+
+ +

#include <qscilexerpython.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPython class encapsulates the Scintilla Python lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Python lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Number  +

A number.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
Keyword  +

A keyword.

+
TripleSingleQuotedString  +

A triple single-quoted string.

+
TripleDoubleQuotedString  +

A triple double-quoted string.

+
ClassName  +

The name of a class.

+
FunctionMethodName  +

The name of a function or method.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
CommentBlock  +

A comment block.

+
UnclosedString  +

The end of a line where a string is not closed.

+
HighlightedIdentifier  +

A highlighted identifier. These are defined by keyword set 2. Reimplement keywords() to define keyword set 2.

+
Decorator  +

A decorator.

+
+
+
+ +
+
+ +
+ +
+

This enum defines the different conditions that can cause indentations to be displayed as being bad.

+
Enumerator:
+ + + + + +
NoWarning  +

Bad indentation is not displayed differently.

+
Inconsistent  +

The indentation is inconsistent when compared to the previous line, ie. it is made up of a different combination of tabs and/or spaces.

+
TabsAfterSpaces  +

The indentation is made up of spaces followed by tabs.

+
Spaces  +

The indentation contains spaces.

+
Tabs  +

The indentation contains tabs.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerPython::QsciLexerPython (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerPython with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPython::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPython::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPython::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerPython::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPython::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPython::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::foldComments () const [inline]
+
+
+

Returns true if indented comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setFoldCompact (bool fold)
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::foldQuotes () const [inline]
+
+
+

Returns true if triple quoted strings can be folded.

+
See also:
setFoldQuotes()
+ +
+
+ +
+
+ + + + + + + +
QsciLexerPython::IndentationWarning QsciLexerPython::indentationWarning () const [inline]
+
+
+

Returns the condition that will cause bad indentations to be displayed.

+
See also:
setIndentationWarning()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setHighlightSubidentifiers (bool enabled)
+
+
+

If enabled is true then sub-identifiers defined in keyword set 2 will be highlighted. For example, if it is false and "open" is defined in keyword set 2 then "foo.open" will not be highlighted. The default is true.

+
See also:
highlightSubidentifiers()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::highlightSubidentifiers () const [inline]
+
+
+

Returns true if string literals are allowed to span newline characters.

+
See also:
setHighlightSubidentifiers()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setStringsOverNewlineAllowed (bool allowed)
+
+
+

If allowed is true then string literals are allowed to span newline characters. The default is false.

+
See also:
stringsOverNewlineAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::stringsOverNewlineAllowed () const [inline]
+
+
+

Returns true if string literals are allowed to span newline characters.

+
See also:
setStringsOverNewlineAllowed()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setV2UnicodeAllowed (bool allowed)
+
+
+

If allowed is true then Python v2 unicode string literals (e.g. u"utf8") are allowed. The default is true.

+
See also:
v2UnicodeAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::v2UnicodeAllowed () const [inline]
+
+
+

Returns true if Python v2 unicode string literals (e.g. u"utf8") are allowed.

+
See also:
setV2UnicodeAllowed()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setV3BinaryOctalAllowed (bool allowed)
+
+
+

If allowed is true then Python v3 binary and octal literals (e.g. 0b1011, 0o712) are allowed. The default is true.

+
See also:
v3BinaryOctalAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::v3BinaryOctalAllowed () const [inline]
+
+
+

Returns true if Python v3 binary and octal literals (e.g. 0b1011, 0o712) are allowed.

+
See also:
setV3BinaryOctalAllowed()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setV3BytesAllowed (bool allowed)
+
+
+

If allowed is true then Python v3 bytes string literals (e.g. b"bytes") are allowed. The default is true.

+
See also:
v3BytesAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::v3BytesAllowed () const [inline]
+
+
+

Returns true if Python v3 bytes string literals (e.g. b"bytes") are allowed.

+
See also:
setV3BytesAllowed()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPython::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then indented comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPython::setFoldQuotes (bool fold) [virtual, slot]
+
+
+

If fold is true then triple quoted strings can be folded. The default is false.

+
See also:
foldQuotes()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPython::setIndentationWarning (QsciLexerPython::IndentationWarning warn) [virtual, slot]
+
+
+

Sets the condition that will cause bad indentations to be displayed.

+
See also:
indentationWarning()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPython::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPython::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerRuby-members.html b/doc/html-Qt3/classQsciLexerRuby-members.html new file mode 100644 index 0000000..50d7b12 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerRuby-members.html @@ -0,0 +1,159 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerRuby Member List
+
+
+This is the complete list of members for QsciLexerRuby, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
Backticks enum valueQsciLexerRuby
blockEnd(int *style=0) const (defined in QsciLexerRuby)QsciLexerRuby [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerRuby)QsciLexerRuby [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerRuby)QsciLexerRuby [virtual]
braceStyle() const (defined in QsciLexerRuby)QsciLexerRuby [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
ClassName enum valueQsciLexerRuby
ClassVariable enum valueQsciLexerRuby
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerRuby
DataSection enum valueQsciLexerRuby
Default enum valueQsciLexerRuby
defaultColor(int style) const QsciLexerRuby [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerRuby [virtual]
defaultFont(int style) const QsciLexerRuby [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerRuby [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
DemotedKeyword enum valueQsciLexerRuby
description(int style) const QsciLexerRuby [virtual]
DoubleQuotedString enum valueQsciLexerRuby
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Error enum valueQsciLexerRuby
foldComments() const QsciLexerRuby [inline]
foldCompact() const QsciLexerRuby [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
FunctionMethodName enum valueQsciLexerRuby
Global enum valueQsciLexerRuby
HereDocument enum valueQsciLexerRuby
HereDocumentDelimiter enum valueQsciLexerRuby
Identifier enum valueQsciLexerRuby
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
InstanceVariable enum valueQsciLexerRuby
Keyword enum valueQsciLexerRuby
keywords(int set) const QsciLexerRuby [virtual]
language() const QsciLexerRuby [virtual]
lexer() const QsciLexerRuby [virtual]
lexerId() const QsciLexer [virtual]
ModuleName enum valueQsciLexerRuby
Number enum valueQsciLexerRuby
Operator enum valueQsciLexerRuby
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PercentStringq enum valueQsciLexerRuby
PercentStringQ enum valueQsciLexerRuby
PercentStringr enum valueQsciLexerRuby
PercentStringw enum valueQsciLexerRuby
PercentStringx enum valueQsciLexerRuby
POD enum valueQsciLexerRuby
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerRuby(QObject *parent=0, const char *name=0)QsciLexerRuby
readProperties(QSettings &qs, const QString &prefix)QsciLexerRuby [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerRuby [virtual]
Regex enum valueQsciLexerRuby
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerRuby
setFoldCompact(bool fold)QsciLexerRuby
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedString enum valueQsciLexerRuby
Stderr enum valueQsciLexerRuby
Stdin enum valueQsciLexerRuby
Stdout enum valueQsciLexerRuby
styleBitsNeeded() const QsciLexer [virtual]
Symbol enum valueQsciLexerRuby
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerRuby [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerRuby()QsciLexerRuby [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerRuby.html b/doc/html-Qt3/classQsciLexerRuby.html new file mode 100644 index 0000000..fa096a5 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerRuby.html @@ -0,0 +1,561 @@ + + + + +QScintilla: QsciLexerRuby Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerRuby Class Reference
+
+
+ +

#include <qscilexerruby.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerRuby class encapsulates the Scintilla Ruby lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Ruby lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Error  +

An error.

+
Comment  +

A comment.

+
POD  +

A POD.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
ClassName  +

The name of a class.

+
FunctionMethodName  +

The name of a function or method.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
Regex  +

A regular expression.

+
Global  +

A global.

+
Symbol  +

A symbol.

+
ModuleName  +

The name of a module.

+
InstanceVariable  +

An instance variable.

+
ClassVariable  +

A class variable.

+
Backticks  +

Backticks.

+
DataSection  +

A data section.

+
HereDocumentDelimiter  +

A here document delimiter.

+
HereDocument  +

A here document.

+
PercentStringq  +

A q string.

+
PercentStringQ  +

A Q string.

+
PercentStringx  +

A x string.

+
PercentStringr  +

A r string.

+
PercentStringw  +

A w string.

+
DemotedKeyword  +

A demoted keyword.

+
Stdin  +

stdin.

+
Stdout  +

stdout.

+
Stderr  +

stderr.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerRuby::QsciLexerRuby (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerRuby with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerRuby::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerRuby::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultpaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerRuby::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerRuby::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerRuby::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerRuby::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerRuby::setFoldComments (bool fold)
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerRuby::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerRuby::setFoldCompact (bool fold)
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerRuby::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerRuby::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerRuby::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerSQL-members.html b/doc/html-Qt3/classQsciLexerSQL-members.html new file mode 100644 index 0000000..32ec5ea --- /dev/null +++ b/doc/html-Qt3/classQsciLexerSQL-members.html @@ -0,0 +1,161 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerSQL Member List
+
+
+This is the complete list of members for QsciLexerSQL, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
backslashEscapes() const QsciLexerSQL [inline]
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerSQL)QsciLexerSQL [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerSQL
CommentDoc enum valueQsciLexerSQL
CommentDocKeyword enum valueQsciLexerSQL
CommentDocKeywordError enum valueQsciLexerSQL
CommentLine enum valueQsciLexerSQL
CommentLineHash enum valueQsciLexerSQL
Default enum valueQsciLexerSQL
defaultColor(int style) const QsciLexerSQL [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerSQL [virtual]
defaultFont(int style) const QsciLexerSQL [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerSQL [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerSQL [virtual]
dottedWords() const QsciLexerSQL [inline]
DoubleQuotedString enum valueQsciLexerSQL
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerSQL [inline]
foldComments() const QsciLexerSQL [inline]
foldCompact() const QsciLexerSQL [inline]
foldOnlyBegin() const QsciLexerSQL [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
hashComments() const QsciLexerSQL [inline]
Identifier enum valueQsciLexerSQL
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerSQL
keywords(int set) const QsciLexerSQL [virtual]
KeywordSet5 enum valueQsciLexerSQL
KeywordSet6 enum valueQsciLexerSQL
KeywordSet7 enum valueQsciLexerSQL
KeywordSet8 enum valueQsciLexerSQL
language() const QsciLexerSQL [virtual]
lexer() const QsciLexerSQL [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerSQL
Operator enum valueQsciLexerSQL
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PlusComment enum valueQsciLexerSQL
PlusKeyword enum valueQsciLexerSQL
PlusPrompt enum valueQsciLexerSQL
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerSQL(QObject *parent=0, const char *name=0)QsciLexerSQL
QuotedIdentifier enum valueQsciLexerSQL
quotedIdentifiers() const QsciLexerSQL [inline]
readProperties(QSettings &qs, const QString &prefix)QsciLexerSQL [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerSQL [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setBackslashEscapes(bool enable)QsciLexerSQL [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDottedWords(bool enable)QsciLexerSQL
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerSQL
setFoldComments(bool fold)QsciLexerSQL [virtual, slot]
setFoldCompact(bool fold)QsciLexerSQL [virtual, slot]
setFoldOnlyBegin(bool fold)QsciLexerSQL
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHashComments(bool enable)QsciLexerSQL
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setQuotedIdentifiers(bool enable)QsciLexerSQL
SingleQuotedString enum valueQsciLexerSQL
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerSQL [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerSQL()QsciLexerSQL [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerSQL.html b/doc/html-Qt3/classQsciLexerSQL.html new file mode 100644 index 0000000..6f55e39 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerSQL.html @@ -0,0 +1,750 @@ + + + + +QScintilla: QsciLexerSQL Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerSQL Class Reference
+
+
+ +

#include <qscilexersql.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerSQL class encapsulates the Scintilla SQL lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the SQL lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A line comment.

+
CommentDoc  +

A JavaDoc/Doxygen style comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
PlusKeyword  +

An SQL*Plus keyword.

+
PlusPrompt  +

An SQL*Plus prompt.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
PlusComment  +

An SQL*Plus comment.

+
CommentLineHash  +

A '#' line comment.

+
CommentDocKeyword  +

A JavaDoc/Doxygen keyword.

+
CommentDocKeywordError  +

A JavaDoc/Doxygen keyword error.

+
KeywordSet5  +

A keyword defined in keyword set number 5. The class must be sub-classed and re-implement keywords() to make use of this style. Note that keywords must be defined using lower case.

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style. Note that keywords must be defined using lower case.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style. Note that keywords must be defined using lower case.

+
KeywordSet8  +

A keyword defined in keyword set number 8. The class must be sub-classed and re-implement keywords() to make use of this style. Note that keywords must be defined using lower case.

+
QuotedIdentifier  +

A quoted identifier.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerSQL::QsciLexerSQL (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerSQL with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerSQL::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerSQL::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerSQL::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerSQL::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerSQL::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerSQL::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::backslashEscapes () const [inline]
+
+
+

Returns true if backslash escapes are enabled.

+
See also:
setBackslashEscapes()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerSQL::setDottedWords (bool enable)
+
+
+

If enable is true then words may contain dots (i.e. periods or full stops). The default is false.

+
See also:
dottedWords()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::dottedWords () const [inline]
+
+
+

Returns true if words may contain dots (i.e. periods or full stops).

+
See also:
setDottedWords()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerSQL::setFoldAtElse (bool fold)
+
+
+

If fold is true then ELSE blocks can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::foldAtElse () const [inline]
+
+
+

Returns true if ELSE blocks can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerSQL::setFoldOnlyBegin (bool fold)
+
+
+

If fold is true then only BEGIN blocks can be folded. The default is false.

+
See also:
foldOnlyBegin()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::foldOnlyBegin () const [inline]
+
+
+

Returns true if BEGIN blocks only can be folded.

+
See also:
setFoldOnlyBegin()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerSQL::setHashComments (bool enable)
+
+
+

If enable is true then '#' is used as a comment character. It is typically enabled for MySQL and disabled for Oracle. The default is false.

+
See also:
hashComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::hashComments () const [inline]
+
+
+

Returns true if '#' is used as a comment character.

+
See also:
setHashComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerSQL::setQuotedIdentifiers (bool enable)
+
+
+

If enable is true then quoted identifiers are enabled. The default is false.

+
See also:
quotedIdentifiers()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::quotedIdentifiers () const [inline]
+
+
+

Returns true if quoted identifiers are enabled.

+
See also:
setQuotedIdentifiers()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerSQL::setBackslashEscapes (bool enable) [virtual, slot]
+
+
+

If enable is true then backslash escapes are enabled. The default is false.

+
See also:
backslashEscapes()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerSQL::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerSQL::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerSQL::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerSQL::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerSpice-members.html b/doc/html-Qt3/classQsciLexerSpice-members.html new file mode 100644 index 0000000..4c59359 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerSpice-members.html @@ -0,0 +1,133 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerSpice Member List
+
+
+This is the complete list of members for QsciLexerSpice, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerSpice)QsciLexerSpice [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Command enum valueQsciLexerSpice
Comment enum valueQsciLexerSpice
Default enum valueQsciLexerSpice
defaultColor(int style) const QsciLexerSpice [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerSpice [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
Delimiter enum valueQsciLexerSpice
description(int style) const QsciLexerSpice [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Function enum valueQsciLexerSpice
Identifier enum valueQsciLexerSpice
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexerSpice [virtual]
language() const QsciLexerSpice [virtual]
lexer() const QsciLexerSpice [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerSpice
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Parameter enum valueQsciLexerSpice
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerSpice(QObject *parent=0, const char *name=0)QsciLexerSpice
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
Value enum valueQsciLexerSpice
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerSpice()QsciLexerSpice [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerSpice.html b/doc/html-Qt3/classQsciLexerSpice.html new file mode 100644 index 0000000..28fc808 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerSpice.html @@ -0,0 +1,270 @@ + + + + +QScintilla: QsciLexerSpice Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerSpice Class Reference
+
+
+ +

#include <qscilexerspice.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerSpice class encapsulates the Scintilla Spice lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Spice lexer.

+
Enumerator:
+ + + + + + + + + +
Default  +

The default.

+
Identifier  +

An identifier.

+
Command  +

A command.

+
Function  +

A function.

+
Parameter  +

A parameter.

+
Number  +

A number.

+
Delimiter  +

A delimiter.

+
Value  +

A value.

+
Comment  +

A comment.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerSpice::QsciLexerSpice (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerSpice with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerSpice::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerSpice::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerSpice::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerSpice::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerTCL-members.html b/doc/html-Qt3/classQsciLexerTCL-members.html new file mode 100644 index 0000000..76bd951 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerTCL-members.html @@ -0,0 +1,148 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerTCL Member List
+
+
+This is the complete list of members for QsciLexerTCL, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerTCL)QsciLexerTCL [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerTCL
CommentBlock enum valueQsciLexerTCL
CommentBox enum valueQsciLexerTCL
CommentLine enum valueQsciLexerTCL
Default enum valueQsciLexerTCL
defaultColor(int style) const QsciLexerTCL [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerTCL [virtual]
defaultFont(int style) const QsciLexerTCL [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerTCL [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerTCL [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
ExpandKeyword enum valueQsciLexerTCL
foldComments() const QsciLexerTCL [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerTCL
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
ITCLKeyword enum valueQsciLexerTCL
keywords(int set) const QsciLexerTCL [virtual]
KeywordSet6 enum valueQsciLexerTCL
KeywordSet7 enum valueQsciLexerTCL
KeywordSet8 enum valueQsciLexerTCL
KeywordSet9 enum valueQsciLexerTCL
language() const QsciLexerTCL [virtual]
lexer() const QsciLexerTCL [virtual]
lexerId() const QsciLexer [virtual]
Modifier enum valueQsciLexerTCL
Number enum valueQsciLexerTCL
Operator enum valueQsciLexerTCL
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerTCL(QObject *parent=0, const char *name=0)QsciLexerTCL
QuotedKeyword enum valueQsciLexerTCL
QuotedString enum valueQsciLexerTCL
readProperties(QSettings &qs, const QString &prefix)QsciLexerTCL [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerTCL [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerTCL
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
Substitution enum valueQsciLexerTCL
SubstitutionBrace enum valueQsciLexerTCL
TCLKeyword enum valueQsciLexerTCL
TkCommand enum valueQsciLexerTCL
TkKeyword enum valueQsciLexerTCL
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerTCL [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerTCL()QsciLexerTCL [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerTCL.html b/doc/html-Qt3/classQsciLexerTCL.html new file mode 100644 index 0000000..aa79109 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerTCL.html @@ -0,0 +1,477 @@ + + + + +QScintilla: QsciLexerTCL Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerTCL Class Reference
+
+
+ +

#include <qscilexertcl.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerTCL class encapsulates the Scintilla TCL lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the TCL lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A comment line.

+
Number  +

A number.

+
QuotedKeyword  +

A quoted keyword.

+
QuotedString  +

A quoted string.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
Substitution  +

A substitution.

+
SubstitutionBrace  +

A substitution starting with a brace.

+
Modifier  +

A modifier.

+
ExpandKeyword  +

Expand keyword (defined in keyword set number 5).

+
TCLKeyword  +

A TCL keyword (defined in keyword set number 1).

+
TkKeyword  +

A Tk keyword (defined in keyword set number 2).

+
ITCLKeyword  +

An iTCL keyword (defined in keyword set number 3).

+
TkCommand  +

A Tk command (defined in keyword set number 4).

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet8  +

A keyword defined in keyword set number 8. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet9  +

A keyword defined in keyword set number 9. The class must be sub-classed and re-implement keywords() to make use of this style.

+
CommentBox  +

A comment box.

+
CommentBlock  +

A comment block.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerTCL::QsciLexerTCL (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerTCL with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerTCL::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerTCL::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerTCL::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerTCL::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerTCL::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerTCL::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerTCL::setFoldComments (bool fold)
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerTCL::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerTCL::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerTCL::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerTeX-members.html b/doc/html-Qt3/classQsciLexerTeX-members.html new file mode 100644 index 0000000..388eff3 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerTeX-members.html @@ -0,0 +1,138 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerTeX Member List
+
+
+This is the complete list of members for QsciLexerTeX, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Command enum valueQsciLexerTeX
Default enum valueQsciLexerTeX
defaultColor(int style) const QsciLexerTeX [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont() const QsciLexer
defaultFont(int style) const QsciLexer [virtual]
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerTeX [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerTeX [inline]
foldCompact() const QsciLexerTeX [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Group enum valueQsciLexerTeX
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexerTeX [virtual]
language() const QsciLexerTeX [virtual]
lexer() const QsciLexerTeX [virtual]
lexerId() const QsciLexer [virtual]
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
processComments() const QsciLexerTeX [inline]
processIf() const QsciLexerTeX [inline]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerTeX(QObject *parent=0, const char *name=0)QsciLexerTeX
readProperties(QSettings &qs, const QString &prefix)QsciLexerTeX [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerTeX [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerTeX
setFoldCompact(bool fold)QsciLexerTeX
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setProcessComments(bool enable)QsciLexerTeX
setProcessIf(bool enable)QsciLexerTeX
Special enum valueQsciLexerTeX
styleBitsNeeded() const QsciLexer [virtual]
Symbol enum valueQsciLexerTeX
Text enum valueQsciLexerTeX
wordCharacters() const QsciLexerTeX [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerTeX [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerTeX()QsciLexerTeX [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerTeX.html b/doc/html-Qt3/classQsciLexerTeX.html new file mode 100644 index 0000000..d737738 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerTeX.html @@ -0,0 +1,478 @@ + + + + +QScintilla: QsciLexerTeX Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerTeX Class Reference
+
+
+ +

#include <qscilexertex.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerTeX class encapsulates the Scintilla TeX lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the TeX lexer.

+
Enumerator:
+ + + + + + +
Default  +

The default.

+
Special  +

A special.

+
Group  +

A group.

+
Symbol  +

A symbol.

+
Command  +

A command.

+
Text  +

Text.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerTeX::QsciLexerTeX (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerTeX with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerTeX::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerTeX::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerTeX::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerTeX::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerTeX::setFoldComments (bool fold)
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerTeX::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerTeX::setFoldCompact (bool fold)
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerTeX::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerTeX::setProcessComments (bool enable)
+
+
+

If enable is true then comments are processed as TeX source otherwise they are ignored. The default is false.

+
See also:
processComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerTeX::processComments () const [inline]
+
+
+

Returns true if comments are processed as TeX source.

+
See also:
setProcessComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerTeX::setProcessIf (bool enable)
+
+
+

If enable is true then \if<unknown> processed is processed as a command. The default is true.

+
See also:
processIf()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerTeX::processIf () const [inline]
+
+
+

Returns true if \if<unknown> is processed as a command.

+
See also:
setProcessIf()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerTeX::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerTeX::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerVHDL-members.html b/doc/html-Qt3/classQsciLexerVHDL-members.html new file mode 100644 index 0000000..bf230d5 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerVHDL-members.html @@ -0,0 +1,149 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerVHDL Member List
+
+
+This is the complete list of members for QsciLexerVHDL, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
Attribute enum valueQsciLexerVHDL
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerVHDL)QsciLexerVHDL [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerVHDL
CommentLine enum valueQsciLexerVHDL
Default enum valueQsciLexerVHDL
defaultColor(int style) const QsciLexerVHDL [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerVHDL [virtual]
defaultFont(int style) const QsciLexerVHDL [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerVHDL [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerVHDL [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtBegin() const QsciLexerVHDL
foldAtElse() const QsciLexerVHDL
foldAtParenthesis() const QsciLexerVHDL
foldComments() const QsciLexerVHDL
foldCompact() const QsciLexerVHDL
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerVHDL
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerVHDL
keywords(int set) const QsciLexerVHDL [virtual]
KeywordSet7 enum valueQsciLexerVHDL
language() const QsciLexerVHDL [virtual]
lexer() const QsciLexerVHDL [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerVHDL
Operator enum valueQsciLexerVHDL
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerVHDL(QObject *parent=0, const char *name=0)QsciLexerVHDL
readProperties(QSettings &qs, const QString &prefix)QsciLexerVHDL [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerVHDL [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtBegin(bool fold)QsciLexerVHDL [virtual, slot]
setFoldAtElse(bool fold)QsciLexerVHDL [virtual, slot]
setFoldAtParenthesis(bool fold)QsciLexerVHDL [virtual, slot]
setFoldComments(bool fold)QsciLexerVHDL [virtual, slot]
setFoldCompact(bool fold)QsciLexerVHDL [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
StandardFunction enum valueQsciLexerVHDL
StandardOperator enum valueQsciLexerVHDL
StandardPackage enum valueQsciLexerVHDL
StandardType enum valueQsciLexerVHDL
String enum valueQsciLexerVHDL
styleBitsNeeded() const QsciLexer [virtual]
UnclosedString enum valueQsciLexerVHDL
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerVHDL [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerVHDL()QsciLexerVHDL [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerVHDL.html b/doc/html-Qt3/classQsciLexerVHDL.html new file mode 100644 index 0000000..ca02b08 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerVHDL.html @@ -0,0 +1,607 @@ + + + + +QScintilla: QsciLexerVHDL Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerVHDL Class Reference
+
+
+ +

#include <qscilexervhdl.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerVHDL class encapsulates the Scintilla VHDL lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the VHDL lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A comment line.

+
Number  +

A number.

+
String  +

A string.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
UnclosedString  +

The end of a line where a string is not closed.

+
Keyword  +

A keyword.

+
StandardOperator  +

A standard operator.

+
Attribute  +

An attribute.

+
StandardFunction  +

A standard function.

+
StandardPackage  +

A standard package.

+
StandardType  +

A standard type.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerVHDL::QsciLexerVHDL (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerVHDL with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerVHDL::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerVHDL::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerVHDL::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerVHDL::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerVHDL::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerVHDL::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVHDL::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVHDL::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVHDL::foldAtElse () const
+
+
+

Returns true if else blocks can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVHDL::foldAtBegin () const
+
+
+

Returns true if begin blocks can be folded.

+
See also:
setFoldAtBegin()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVHDL::foldAtParenthesis () const
+
+
+

Returns true if blocks can be folded at a parenthesis.

+
See also:
setFoldAtParenthesis()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerVHDL::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is true.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerVHDL::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerVHDL::setFoldAtElse (bool fold) [virtual, slot]
+
+
+

If fold is true then else blocks can be folded. The default is true.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerVHDL::setFoldAtBegin (bool fold) [virtual, slot]
+
+
+

If fold is true then begin blocks can be folded. The default is true.

+
See also:
foldAtBegin()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerVHDL::setFoldAtParenthesis (bool fold) [virtual, slot]
+
+
+

If fold is true then blocks can be folded at a parenthesis. The default is true.

+
See also:
foldAtParenthesis()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerVHDL::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerVHDL::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerVerilog-members.html b/doc/html-Qt3/classQsciLexerVerilog-members.html new file mode 100644 index 0000000..1f655c5 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerVerilog-members.html @@ -0,0 +1,148 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerVerilog Member List
+
+
+This is the complete list of members for QsciLexerVerilog, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerVerilog)QsciLexerVerilog [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerVerilog
CommentBang enum valueQsciLexerVerilog
CommentLine enum valueQsciLexerVerilog
Default enum valueQsciLexerVerilog
defaultColor(int style) const QsciLexerVerilog [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerVerilog [virtual]
defaultFont(int style) const QsciLexerVerilog [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerVerilog [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerVerilog [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerVerilog
foldAtModule() const QsciLexerVerilog
foldComments() const QsciLexerVerilog
foldCompact() const QsciLexerVerilog
foldPreprocessor() const QsciLexerVerilog
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerVerilog
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerVerilog
keywords(int set) const QsciLexerVerilog [virtual]
KeywordSet2 enum valueQsciLexerVerilog
language() const QsciLexerVerilog [virtual]
lexer() const QsciLexerVerilog [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerVerilog
Operator enum valueQsciLexerVerilog
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Preprocessor enum valueQsciLexerVerilog
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerVerilog(QObject *parent=0, const char *name=0)QsciLexerVerilog
readProperties(QSettings &qs, const QString &prefix)QsciLexerVerilog [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerVerilog [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerVerilog
setFoldAtModule(bool fold)QsciLexerVerilog
setFoldComments(bool fold)QsciLexerVerilog
setFoldCompact(bool fold)QsciLexerVerilog
setFoldPreprocessor(bool fold)QsciLexerVerilog
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerVerilog
styleBitsNeeded() const QsciLexer [virtual]
SystemTask enum valueQsciLexerVerilog
UnclosedString enum valueQsciLexerVerilog
UserKeywordSet enum valueQsciLexerVerilog
wordCharacters() const QsciLexerVerilog [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerVerilog [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerVerilog()QsciLexerVerilog [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerVerilog.html b/doc/html-Qt3/classQsciLexerVerilog.html new file mode 100644 index 0000000..3dba7b3 --- /dev/null +++ b/doc/html-Qt3/classQsciLexerVerilog.html @@ -0,0 +1,602 @@ + + + + +QScintilla: QsciLexerVerilog Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerVerilog Class Reference
+
+
+ +

#include <qscilexerverilog.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerVerilog class encapsulates the Scintilla Verilog lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Verilog lexer.

+
Enumerator:
+ + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A line comment.

+
CommentBang  +

A bang comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
String  +

A string.

+
KeywordSet2  +

A keyword defined in keyword set number 2. The class must be sub-classed and re-implement keywords() to make use of this style.

+
SystemTask  +

A system task.

+
Preprocessor  +

A pre-processor block.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
UnclosedString  +

The end of a line where a string is not closed.

+
UserKeywordSet  +

A keyword defined in keyword set number 4. The class must be sub-classed and re-implement keywords() to make use of this style. This set is intended to be used for user defined identifiers and tasks.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerVerilog::QsciLexerVerilog (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerVerilog with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerVerilog::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerVerilog::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerVerilog::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerVerilog::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerVerilog::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerVerilog::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerVerilog::setFoldAtElse (bool fold)
+
+
+

If fold is true then "} else {" lines can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVerilog::foldAtElse () const
+
+
+

Returns true if "} else {" lines can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerVerilog::setFoldComments (bool fold)
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVerilog::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerVerilog::setFoldCompact (bool fold)
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVerilog::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerVerilog::setFoldPreprocessor (bool fold)
+
+
+

If fold is true then preprocessor blocks can be folded. The default is true.

+
See also:
foldPreprocessor()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVerilog::foldPreprocessor () const
+
+
+

Returns true if preprocessor blocks can be folded.

+
See also:
setFoldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerVerilog::setFoldAtModule (bool fold)
+
+
+

If fold is true then modules can be folded. The default is false.

+
See also:
foldAtModule()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVerilog::foldAtModule () const
+
+
+

Returns true if modules can be folded.

+
See also:
setFoldAtModule()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerVerilog::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerVerilog::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerXML-members.html b/doc/html-Qt3/classQsciLexerXML-members.html new file mode 100644 index 0000000..5f840be --- /dev/null +++ b/doc/html-Qt3/classQsciLexerXML-members.html @@ -0,0 +1,252 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerXML Member List
+
+
+This is the complete list of members for QsciLexerXML, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
ASPAtStart enum valueQsciLexerHTML
ASPJavaScriptComment enum valueQsciLexerHTML
ASPJavaScriptCommentDoc enum valueQsciLexerHTML
ASPJavaScriptCommentLine enum valueQsciLexerHTML
ASPJavaScriptDefault enum valueQsciLexerHTML
ASPJavaScriptDoubleQuotedString enum valueQsciLexerHTML
ASPJavaScriptKeyword enum valueQsciLexerHTML
ASPJavaScriptNumber enum valueQsciLexerHTML
ASPJavaScriptRegex enum valueQsciLexerHTML
ASPJavaScriptSingleQuotedString enum valueQsciLexerHTML
ASPJavaScriptStart enum valueQsciLexerHTML
ASPJavaScriptSymbol enum valueQsciLexerHTML
ASPJavaScriptUnclosedString enum valueQsciLexerHTML
ASPJavaScriptWord enum valueQsciLexerHTML
ASPPythonClassName enum valueQsciLexerHTML
ASPPythonComment enum valueQsciLexerHTML
ASPPythonDefault enum valueQsciLexerHTML
ASPPythonDoubleQuotedString enum valueQsciLexerHTML
ASPPythonFunctionMethodName enum valueQsciLexerHTML
ASPPythonIdentifier enum valueQsciLexerHTML
ASPPythonKeyword enum valueQsciLexerHTML
ASPPythonNumber enum valueQsciLexerHTML
ASPPythonOperator enum valueQsciLexerHTML
ASPPythonSingleQuotedString enum valueQsciLexerHTML
ASPPythonStart enum valueQsciLexerHTML
ASPPythonTripleDoubleQuotedString enum valueQsciLexerHTML
ASPPythonTripleSingleQuotedString enum valueQsciLexerHTML
ASPStart enum valueQsciLexerHTML
ASPVBScriptComment enum valueQsciLexerHTML
ASPVBScriptDefault enum valueQsciLexerHTML
ASPVBScriptIdentifier enum valueQsciLexerHTML
ASPVBScriptKeyword enum valueQsciLexerHTML
ASPVBScriptNumber enum valueQsciLexerHTML
ASPVBScriptStart enum valueQsciLexerHTML
ASPVBScriptString enum valueQsciLexerHTML
ASPVBScriptUnclosedString enum valueQsciLexerHTML
ASPXCComment enum valueQsciLexerHTML
Attribute enum valueQsciLexerHTML
autoCompletionFillups() const (defined in QsciLexerHTML)QsciLexerHTML [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitiveTags() const QsciLexerHTML [inline]
CDATA enum valueQsciLexerHTML
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Default enum valueQsciLexerHTML
defaultColor(int style) const QsciLexerXML [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerXML [virtual]
defaultFont(int style) const QsciLexerXML [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerXML [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerHTML [virtual]
djangoTemplates() const QsciLexerHTML [inline]
editor() const QsciLexer [inline]
Entity enum valueQsciLexerHTML
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldCompact() const QsciLexerHTML [inline]
foldPreprocessor() const QsciLexerHTML [inline]
foldScriptComments() const QsciLexerHTML [inline]
foldScriptHeredocs() const QsciLexerHTML [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HTMLComment enum valueQsciLexerHTML
HTMLDoubleQuotedString enum valueQsciLexerHTML
HTMLNumber enum valueQsciLexerHTML
HTMLSingleQuotedString enum valueQsciLexerHTML
HTMLValue enum valueQsciLexerHTML
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
JavaScriptComment enum valueQsciLexerHTML
JavaScriptCommentDoc enum valueQsciLexerHTML
JavaScriptCommentLine enum valueQsciLexerHTML
JavaScriptDefault enum valueQsciLexerHTML
JavaScriptDoubleQuotedString enum valueQsciLexerHTML
JavaScriptKeyword enum valueQsciLexerHTML
JavaScriptNumber enum valueQsciLexerHTML
JavaScriptRegex enum valueQsciLexerHTML
JavaScriptSingleQuotedString enum valueQsciLexerHTML
JavaScriptStart enum valueQsciLexerHTML
JavaScriptSymbol enum valueQsciLexerHTML
JavaScriptUnclosedString enum valueQsciLexerHTML
JavaScriptWord enum valueQsciLexerHTML
keywords(int set) const QsciLexerXML [virtual]
language() const QsciLexerXML [virtual]
lexer() const QsciLexerXML [virtual]
lexerId() const QsciLexer [virtual]
makoTemplates() const QsciLexerHTML [inline]
OtherInTag enum valueQsciLexerHTML
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PHPComment enum valueQsciLexerHTML
PHPCommentLine enum valueQsciLexerHTML
PHPDefault enum valueQsciLexerHTML
PHPDoubleQuotedString enum valueQsciLexerHTML
PHPDoubleQuotedVariable enum valueQsciLexerHTML
PHPKeyword enum valueQsciLexerHTML
PHPNumber enum valueQsciLexerHTML
PHPOperator enum valueQsciLexerHTML
PHPSingleQuotedString enum valueQsciLexerHTML
PHPStart enum valueQsciLexerHTML
PHPVariable enum valueQsciLexerHTML
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
PythonClassName enum valueQsciLexerHTML
PythonComment enum valueQsciLexerHTML
PythonDefault enum valueQsciLexerHTML
PythonDoubleQuotedString enum valueQsciLexerHTML
PythonFunctionMethodName enum valueQsciLexerHTML
PythonIdentifier enum valueQsciLexerHTML
PythonKeyword enum valueQsciLexerHTML
PythonNumber enum valueQsciLexerHTML
PythonOperator enum valueQsciLexerHTML
PythonSingleQuotedString enum valueQsciLexerHTML
PythonStart enum valueQsciLexerHTML
PythonTripleDoubleQuotedString enum valueQsciLexerHTML
PythonTripleSingleQuotedString enum valueQsciLexerHTML
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerHTML(QObject *parent=0, const char *name=0)QsciLexerHTML
QsciLexerXML(QObject *parent=0, const char *name=0)QsciLexerXML
readProperties(QSettings &qs, const QString &prefix)QsciLexerXML [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerXML [virtual]
Script enum valueQsciLexerHTML
scriptsStyled() const QsciLexerXML
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setCaseSensitiveTags(bool sens)QsciLexerHTML [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDjangoTemplates(bool enabled)QsciLexerHTML
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerHTML [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerHTML [virtual, slot]
setFoldScriptComments(bool fold)QsciLexerHTML
setFoldScriptHeredocs(bool fold)QsciLexerHTML
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setMakoTemplates(bool enabled)QsciLexerHTML
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setScriptsStyled(bool styled)QsciLexerXML
SGMLBlockDefault enum valueQsciLexerHTML
SGMLCommand enum valueQsciLexerHTML
SGMLComment enum valueQsciLexerHTML
SGMLDefault enum valueQsciLexerHTML
SGMLDoubleQuotedString enum valueQsciLexerHTML
SGMLEntity enum valueQsciLexerHTML
SGMLError enum valueQsciLexerHTML
SGMLParameter enum valueQsciLexerHTML
SGMLParameterComment enum valueQsciLexerHTML
SGMLSingleQuotedString enum valueQsciLexerHTML
SGMLSpecial enum valueQsciLexerHTML
styleBitsNeeded() const QsciLexer [virtual]
Tag enum valueQsciLexerHTML
UnknownAttribute enum valueQsciLexerHTML
UnknownTag enum valueQsciLexerHTML
VBScriptComment enum valueQsciLexerHTML
VBScriptDefault enum valueQsciLexerHTML
VBScriptIdentifier enum valueQsciLexerHTML
VBScriptKeyword enum valueQsciLexerHTML
VBScriptNumber enum valueQsciLexerHTML
VBScriptStart enum valueQsciLexerHTML
VBScriptString enum valueQsciLexerHTML
VBScriptUnclosedString enum valueQsciLexerHTML
wordCharacters() const QsciLexerHTML [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerXML [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
XMLEnd enum valueQsciLexerHTML
XMLStart enum valueQsciLexerHTML
XMLTagEnd enum valueQsciLexerHTML
~QsciLexer()QsciLexer [virtual]
~QsciLexerHTML()QsciLexerHTML [virtual]
~QsciLexerXML()QsciLexerXML [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerXML.html b/doc/html-Qt3/classQsciLexerXML.html new file mode 100644 index 0000000..248552f --- /dev/null +++ b/doc/html-Qt3/classQsciLexerXML.html @@ -0,0 +1,332 @@ + + + + +QScintilla: QsciLexerXML Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerXML Class Reference
+
+
+ +

#include <qscilexerxml.h>

+ +

Inherits QsciLexerHTML.

+ +

List of all members.

+

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerXML class encapsulates the Scintilla XML lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerXML::QsciLexerXML (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerXML with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerXML::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerXML::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerXML::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerXML::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerXML::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerXML::setScriptsStyled (bool styled)
+
+
+

If allowed is true then scripts are styled. The default is true.

+
See also:
scriptsStyled()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerXML::scriptsStyled () const
+
+
+

Returns true if scripts are styled.

+
See also:
setScriptsStyled()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerXML::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerXML::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexerHTML.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerYAML-members.html b/doc/html-Qt3/classQsciLexerYAML-members.html new file mode 100644 index 0000000..471055c --- /dev/null +++ b/doc/html-Qt3/classQsciLexerYAML-members.html @@ -0,0 +1,136 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerYAML Member List
+
+
+This is the complete list of members for QsciLexerYAML, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerYAML
Default enum valueQsciLexerYAML
defaultColor(int style) const QsciLexerYAML [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerYAML [virtual]
defaultFont(int style) const QsciLexerYAML [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerYAML [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerYAML [virtual]
DocumentDelimiter enum valueQsciLexerYAML
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerYAML
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerYAML
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerYAML
keywords(int set) const QsciLexerYAML [virtual]
language() const QsciLexerYAML [virtual]
lexer() const QsciLexerYAML [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerYAML
Operator enum valueQsciLexerYAML
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0, const char *name=0)QsciLexer
QsciLexerYAML(QObject *parent=0, const char *name=0)QsciLexerYAML
readProperties(QSettings &qs, const QString &prefix)QsciLexerYAML [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
Reference enum valueQsciLexerYAML
refreshProperties()QsciLexerYAML [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerYAML [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
SyntaxErrorMarker enum valueQsciLexerYAML
TextBlockMarker enum valueQsciLexerYAML
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerYAML [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerYAML()QsciLexerYAML [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciLexerYAML.html b/doc/html-Qt3/classQsciLexerYAML.html new file mode 100644 index 0000000..bfc394b --- /dev/null +++ b/doc/html-Qt3/classQsciLexerYAML.html @@ -0,0 +1,428 @@ + + + + +QScintilla: QsciLexerYAML Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerYAML Class Reference
+
+
+ +

#include <qscilexeryaml.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerYAML class encapsulates the Scintilla YAML lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the YAML lexer.

+
Enumerator:
+ + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Identifier  +

An identifier.

+
Keyword  +

A keyword.

+
Number  +

A number.

+
Reference  +

A reference.

+
DocumentDelimiter  +

A document delimiter.

+
TextBlockMarker  +

A text block marker.

+
SyntaxErrorMarker  +

A syntax error marker.

+
Operator  +

An operator.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerYAML::QsciLexerYAML (QObject * parent = 0,
const char * name = 0 
)
+
+
+

Construct a QsciLexerYAML with parent parent and name name. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerYAML::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerYAML::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerYAML::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerYAML::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerYAML::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerYAML::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerYAML::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerYAML::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerYAML::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerYAML::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciMacro-members.html b/doc/html-Qt3/classQsciMacro-members.html new file mode 100644 index 0000000..d70dd7e --- /dev/null +++ b/doc/html-Qt3/classQsciMacro-members.html @@ -0,0 +1,78 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciMacro Member List
+
+
+This is the complete list of members for QsciMacro, including all inherited members. + + + + + + + + + +
clear()QsciMacro
endRecording()QsciMacro [virtual, slot]
load(const QString &asc)QsciMacro
play()QsciMacro [virtual, slot]
QsciMacro(QsciScintilla *parent, const char *name=0)QsciMacro
QsciMacro(const QString &asc, QsciScintilla *parent, const char *name=0)QsciMacro
save() const QsciMacro
startRecording()QsciMacro [virtual, slot]
~QsciMacro()QsciMacro [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciMacro.html b/doc/html-Qt3/classQsciMacro.html new file mode 100644 index 0000000..c13a8aa --- /dev/null +++ b/doc/html-Qt3/classQsciMacro.html @@ -0,0 +1,180 @@ + + + + +QScintilla: QsciMacro Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciMacro Class Reference
+
+
+ +

#include <qscimacro.h>

+ +

List of all members.

+

+Classes

+
    +
  • struct Macro +
+

+Public Slots

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciMacro class represents a sequence of recordable editor commands.

+

Methods are provided to convert convert a macro to and from a textual representation so that they can be easily written to and read from permanent storage.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
QsciMacro::QsciMacro (const QString & asc,
QsciScintillaparent,
const char * name = 0 
)
+
+
+

Construct a QsciMacro from the printable ASCII representation asc, with parent parent and name name.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
bool QsciMacro::load (const QString & asc)
+
+
+

Load the macro from the printable ASCII representation asc. Returns true if there was no error.

+
See also:
save()
+ +
+
+ +
+
+ + + + + + + +
QString QsciMacro::save () const
+
+
+

Return a printable ASCII representation of the macro. It is guaranteed that only printable ASCII characters are used and that double quote characters will not be used.

+
See also:
load()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciPrinter-members.html b/doc/html-Qt3/classQsciPrinter-members.html new file mode 100644 index 0000000..aadc28a --- /dev/null +++ b/doc/html-Qt3/classQsciPrinter-members.html @@ -0,0 +1,77 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciPrinter Member List
+
+
+This is the complete list of members for QsciPrinter, including all inherited members. + + + + + + + + +
formatPage(QPainter &painter, bool drawing, QRect &area, int pagenr)QsciPrinter [virtual]
magnification() const QsciPrinter [inline]
printRange(QsciScintillaBase *qsb, int from=-1, int to=-1)QsciPrinter [virtual]
QsciPrinter(PrinterMode mode=ScreenResolution)QsciPrinter
setMagnification(int magnification)QsciPrinter [virtual]
setWrapMode(QsciScintilla::WrapMode wmode)QsciPrinter [virtual]
wrapMode() const QsciPrinter [inline]
~QsciPrinter()QsciPrinter [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciPrinter.html b/doc/html-Qt3/classQsciPrinter.html new file mode 100644 index 0000000..8a2ff05 --- /dev/null +++ b/doc/html-Qt3/classQsciPrinter.html @@ -0,0 +1,240 @@ + + + + +QScintilla: QsciPrinter Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciPrinter Class Reference
+
+
+ +

#include <qsciprinter.h>

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciPrinter class is a sub-class of the Qt QPrinter class that is able to print the text of a Scintilla document.

+

The class can be further sub-classed to alter to layout of the text, adding headers and footers for example.

+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual void QsciPrinter::formatPage (QPainter & painter,
bool drawing,
QRect & area,
int pagenr 
) [virtual]
+
+
+

Format a page, by adding headers and footers for example, before the document text is drawn on it. painter is the painter to be used to add customised text and graphics. drawing is true if the page is actually being drawn rather than being sized. painter drawing methods must only be called when drawing is true. area is the area of the page that will be used to draw the text. This should be modified if it is necessary to reserve space for any customised text or graphics. By default the area is relative to the printable area of the page. Use QPrinter::setFullPage() because calling printRange() if you want to try and print over the whole page. pagenr is the number of the page. The first page is numbered 1.

+ +
+
+ +
+
+ + + + + + + +
int QsciPrinter::magnification () const [inline]
+
+
+

Return the number of points to add to each font when printing.

+
See also:
setMagnification()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciPrinter::setMagnification (int magnification) [virtual]
+
+
+

Sets the number of points to add to each font when printing to magnification.

+
See also:
magnification()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
virtual int QsciPrinter::printRange (QsciScintillaBaseqsb,
int from = -1,
int to = -1 
) [virtual]
+
+
+

Print a range of lines from the Scintilla instance qsb. from is the first line to print and a negative value signifies the first line of text. to is the last line to print and a negative value signifies the last line of text. true is returned if there was no error.

+ +
+
+ +
+
+ + + + + + + +
QsciScintilla::WrapMode QsciPrinter::wrapMode () const [inline]
+
+
+

Return the line wrap mode used when printing. The default is QsciScintilla::WrapWord.

+
See also:
setWrapMode()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciPrinter::setWrapMode (QsciScintilla::WrapMode wmode) [virtual]
+
+
+

Sets the line wrap mode used when printing to wmode.

+
See also:
wrapMode()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciScintilla-members.html b/doc/html-Qt3/classQsciScintilla-members.html new file mode 100644 index 0000000..5152767 --- /dev/null +++ b/doc/html-Qt3/classQsciScintilla-members.html @@ -0,0 +1,1522 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciScintilla Member List
+
+
+This is the complete list of members for QsciScintilla, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AcsAll enum valueQsciScintilla
AcsAPIs enum valueQsciScintilla
AcsDocument enum valueQsciScintilla
AcsNone enum valueQsciScintilla
AcusAlways enum valueQsciScintilla
AcusExplicit enum valueQsciScintilla
AcusNever enum valueQsciScintilla
AiClosing enum valueQsciScintilla
AiMaintain enum valueQsciScintilla
AiOpening enum valueQsciScintilla
annotate(int line, const QString &text, int style)QsciScintilla
annotate(int line, const QString &text, const QsciStyle &style)QsciScintilla
annotate(int line, const QsciStyledText &text)QsciScintilla
annotate(int line, const QValueList< QsciStyledText > &text)QsciScintilla
annotation(int line) const QsciScintilla
ANNOTATION_BOXED enum value (defined in QsciScintillaBase)QsciScintillaBase
ANNOTATION_HIDDEN enum value (defined in QsciScintillaBase)QsciScintillaBase
ANNOTATION_STANDARD enum value (defined in QsciScintillaBase)QsciScintillaBase
AnnotationBoxed enum valueQsciScintilla
annotationDisplay() const QsciScintilla
AnnotationDisplay enum nameQsciScintilla
AnnotationHidden enum valueQsciScintilla
AnnotationStandard enum valueQsciScintilla
apiContext(int pos, int &context_start, int &last_word_start)QsciScintilla [virtual]
append(const QString &text)QsciScintilla [virtual, slot]
autoCompleteFromAll()QsciScintilla [virtual, slot]
autoCompleteFromAPIs()QsciScintilla [virtual, slot]
autoCompleteFromDocument()QsciScintilla [virtual, slot]
autoCompletionCaseSensitivity() const QsciScintilla
autoCompletionFillupsEnabled() const QsciScintilla
autoCompletionReplaceWord() const QsciScintilla
autoCompletionShowSingle() const QsciScintilla
AutoCompletionSource enum nameQsciScintilla
autoCompletionSource() const QsciScintilla [inline]
autoCompletionThreshold() const QsciScintilla [inline]
autoCompletionUseSingle() const QsciScintilla
AutoCompletionUseSingle enum nameQsciScintilla
autoIndent() const QsciScintilla [inline]
Background enum valueQsciScintilla
backspaceUnindents() const QsciScintilla
beginUndoAction()QsciScintilla
BottomLeftCorner enum valueQsciScintilla
BoxedFoldStyle enum valueQsciScintilla
BoxedMinus enum valueQsciScintilla
BoxedMinusConnected enum valueQsciScintilla
BoxedPlus enum valueQsciScintilla
BoxedPlusConnected enum valueQsciScintilla
BoxedTreeFoldStyle enum valueQsciScintilla
BoxIndicator enum valueQsciScintilla
BraceMatch enum nameQsciScintilla
braceMatching() const QsciScintilla [inline]
bytesAsText(const char *bytes) const (defined in QsciScintillaBase)QsciScintillaBase [protected]
callTip()QsciScintilla [virtual, slot]
CallTipsAboveText enum valueQsciScintilla
CallTipsBelowText enum valueQsciScintilla
CallTipsContext enum valueQsciScintilla
CallTipsNoAutoCompletionContext enum valueQsciScintilla
CallTipsNoContext enum valueQsciScintilla
CallTipsNone enum valueQsciScintilla
callTipsPosition() const QsciScintilla [inline]
CallTipsPosition enum nameQsciScintilla
callTipsStyle() const QsciScintilla [inline]
CallTipsStyle enum nameQsciScintilla
callTipsVisible() const QsciScintilla [inline]
cancelList()QsciScintilla
CARET_EVEN enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_JUMPS enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_SLOP enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_STRICT enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_BLOCK enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_INVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_LINE enum value (defined in QsciScintillaBase)QsciScintillaBase
caseSensitive() const QsciScintilla
Circle enum valueQsciScintilla
CircledFoldStyle enum valueQsciScintilla
CircledMinus enum valueQsciScintilla
CircledMinusConnected enum valueQsciScintilla
CircledPlus enum valueQsciScintilla
CircledPlusConnected enum valueQsciScintilla
CircledTreeFoldStyle enum valueQsciScintilla
clear()QsciScintilla [virtual, slot]
clearAnnotations(int line=-1)QsciScintilla
clearFolds()QsciScintilla
clearIndicatorRange(int lineFrom, int indexFrom, int lineTo, int indexTo, int indicatorNumber)QsciScintilla
clearMarginText(int line=-1)QsciScintilla
clearRegisteredImages()QsciScintilla
color() const QsciScintilla
commandKey(int qt_key, int &modifiers) (defined in QsciScintillaBase)QsciScintillaBase [static]
contextMenuEvent(QContextMenuEvent *e)QsciScintillaBase [protected, virtual]
contractedFolds() const QsciScintilla
convertEols(EolMode mode)QsciScintilla
copy()QsciScintilla [virtual, slot]
copyAvailable(bool yes)QsciScintilla [signal]
cursorPositionChanged(int line, int index)QsciScintilla [signal]
cut()QsciScintilla [virtual, slot]
DashesIndicator enum valueQsciScintilla
DiagonalIndicator enum valueQsciScintilla
document() const QsciScintilla [inline]
DotBoxIndicator enum valueQsciScintilla
DotsIndicator enum valueQsciScintilla
DownTriangle enum valueQsciScintilla
dragEnterEvent(QDragEnterEvent *e)QsciScintillaBase [protected, virtual]
dragLeaveEvent(QDragLeaveEvent *e)QsciScintillaBase [protected, virtual]
dragMoveEvent(QDragMoveEvent *e)QsciScintillaBase [protected, virtual]
dropEvent(QDropEvent *e)QsciScintillaBase [protected, virtual]
EDGE_BACKGROUND enum value (defined in QsciScintillaBase)QsciScintillaBase
EDGE_LINE enum value (defined in QsciScintillaBase)QsciScintillaBase
EDGE_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
EdgeBackground enum valueQsciScintilla
edgeColor() const QsciScintilla
edgeColumn() const QsciScintilla
EdgeLine enum valueQsciScintilla
EdgeMode enum nameQsciScintilla
edgeMode() const QsciScintilla
EdgeNone enum valueQsciScintilla
endUndoAction()QsciScintilla
ensureCursorVisible()QsciScintilla [virtual, slot]
ensureLineVisible(int line)QsciScintilla [virtual, slot]
EolMac enum valueQsciScintilla
EolMode enum nameQsciScintilla
eolMode() const QsciScintilla
EolUnix enum valueQsciScintilla
eolVisibility() const QsciScintilla
EolWindows enum valueQsciScintilla
eventFilter(QObject *o, QEvent *e)QsciScintillaBase [virtual]
extraAscent() const QsciScintilla
extraDescent() const QsciScintilla
fillIndicatorRange(int lineFrom, int indexFrom, int lineTo, int indexTo, int indicatorNumber)QsciScintilla
findFirst(const QString &expr, bool re, bool cs, bool wo, bool wrap, bool forward=true, int line=-1, int index=-1, bool show=true, bool posix=false)QsciScintilla [virtual]
findFirstInSelection(const QString &expr, bool re, bool cs, bool wo, bool forward=true, bool show=true, bool posix=false)QsciScintilla [virtual]
findNext()QsciScintilla [virtual]
firstVisibleLine() const QsciScintilla
focusInEvent(QFocusEvent *e)QsciScintillaBase [protected, virtual]
focusNextPrevChild(bool next)QsciScintillaBase [protected, virtual]
focusOutEvent(QFocusEvent *e)QsciScintillaBase [protected, virtual]
foldAll(bool children=false)QsciScintilla [virtual, slot]
folding() const QsciScintilla [inline]
foldLine(int line)QsciScintilla [virtual, slot]
FoldStyle enum nameQsciScintilla
FullRectangle enum valueQsciScintilla
getCursorPosition(int *line, int *index) const QsciScintilla
getSelection(int *lineFrom, int *indexFrom, int *lineTo, int *indexTo) const QsciScintilla
hasSelectedText() const QsciScintilla [inline]
HiddenIndicator enum valueQsciScintilla
horizontalScrollBar() const QsciScintillaBase
indent(int line)QsciScintilla [virtual, slot]
indentation(int line) const QsciScintilla
indentationGuides() const QsciScintilla
indentationsUseTabs() const QsciScintilla
indentationWidth() const QsciScintilla
INDIC0_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC1_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC2_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_BOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_COMPOSITIONTHICK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_CONTAINER enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DASH enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DIAGONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DOTBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DOTS enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_HIDDEN enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_MAX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_PLAIN enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_ROUNDBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLELOW enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLEPIXMAP enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_STRAIGHTBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_STRIKE enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_TT enum value (defined in QsciScintillaBase)QsciScintillaBase
indicatorClicked(int line, int index, Qt::ButtonState state)QsciScintilla [signal]
indicatorDefine(IndicatorStyle style, int indicatorNumber=-1)QsciScintilla
indicatorDrawUnder(int indicatorNumber) const QsciScintilla
indicatorReleased(int line, int index, Qt::ButtonState state)QsciScintilla [signal]
IndicatorStyle enum nameQsciScintilla
INDICS_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
insert(const QString &text)QsciScintilla [virtual, slot]
insertAt(const QString &text, int line, int index)QsciScintilla [virtual, slot]
Invisible enum valueQsciScintilla
isCallTipActive() const QsciScintilla
isListActive() const QsciScintilla
isModified() const QsciScintilla
isReadOnly() const QsciScintilla
isRedoAvailable() const QsciScintilla
isUndoAvailable() const QsciScintilla
isUtf8() const QsciScintilla
isWordCharacter(char ch) const QsciScintilla
keyPressEvent(QKeyEvent *e)QsciScintillaBase [protected, virtual]
LeftRectangle enum valueQsciScintilla
LeftSideRoundedSplitter enum valueQsciScintilla
LeftSideSplitter enum valueQsciScintilla
length() const QsciScintilla
lexer() const QsciScintilla
lineAt(const QPoint &point) const QsciScintilla
lineIndexFromPosition(int position, int *line, int *index) const QsciScintilla
lineLength(int line) const QsciScintilla
lines() const QsciScintilla
linesChanged()QsciScintilla [signal]
marginClicked(int margin, int line, Qt::ButtonState state)QsciScintilla [signal]
marginLineNumbers(int margin) const QsciScintilla
marginMarkerMask(int margin) const QsciScintilla
marginOptions() const QsciScintilla
marginSensitivity(int margin) const QsciScintilla
MarginType enum nameQsciScintilla
marginType(int margin) const QsciScintilla
marginWidth(int margin) const QsciScintilla
markerAdd(int linenr, int markerNumber)QsciScintilla
markerDefine(MarkerSymbol sym, int markerNumber=-1)QsciScintilla
markerDefine(char ch, int markerNumber=-1)QsciScintilla
markerDefine(const QPixmap &pm, int markerNumber=-1)QsciScintilla
markerDefine(const QImage &im, int markerNumber=-1)QsciScintilla
markerDelete(int linenr, int markerNumber=-1)QsciScintilla
markerDeleteAll(int markerNumber=-1)QsciScintilla
markerDeleteHandle(int mhandle)QsciScintilla
markerFindNext(int linenr, unsigned mask) const QsciScintilla
markerFindPrevious(int linenr, unsigned mask) const QsciScintilla
markerLine(int mhandle) const QsciScintilla
markersAtLine(int linenr) const QsciScintilla
MarkerSymbol enum nameQsciScintilla
Minus enum valueQsciScintilla
modificationAttempted()QsciScintilla [signal]
modificationChanged(bool m)QsciScintilla [signal]
MoNone enum valueQsciScintilla
MoSublineSelect enum valueQsciScintilla
mouseDoubleClickEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mouseMoveEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mousePressEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mouseReleaseEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
moveToMatchingBrace()QsciScintilla [virtual, slot]
NoBraceMatch enum valueQsciScintilla
NoFoldStyle enum valueQsciScintilla
NumberMargin enum valueQsciScintilla
overwriteMode() const QsciScintilla
paintEvent(QPaintEvent *e)QsciScintillaBase [protected, virtual]
paper() const QsciScintilla
paste()QsciScintilla [virtual, slot]
PlainFoldStyle enum valueQsciScintilla
PlainIndicator enum valueQsciScintilla
Plus enum valueQsciScintilla
pool()QsciScintillaBase [static]
positionFromLineIndex(int line, int index) const QsciScintilla
QsciScintilla(QWidget *parent=0, const char *name=0, WFlags f=0)QsciScintilla
QsciScintillaBase(QWidget *parent=0, const char *name=0, WFlags f=0)QsciScintillaBase
QSCN_SELCHANGED(bool yes)QsciScintillaBase [signal]
read(QIODevice *io)QsciScintilla
recolor(int start=0, int end=-1)QsciScintilla [virtual]
Rectangle enum valueQsciScintilla
redo()QsciScintilla [virtual, slot]
registerImage(int id, const QPixmap &pm)QsciScintilla
registerImage(int id, const QImage &im)QsciScintilla
removeSelectedText()QsciScintilla [virtual, slot]
replace(const QString &replaceStr)QsciScintilla [virtual]
replaceSelectedText(const QString &text)QsciScintilla [virtual, slot]
resetFoldMarginColors()QsciScintilla
resetHotspotBackgroundColor()QsciScintilla
resetHotspotForegroundColor()QsciScintilla
resetMatchedBraceIndicator()QsciScintilla
resetSelectionBackgroundColor()QsciScintilla [virtual, slot]
resetSelectionForegroundColor()QsciScintilla [virtual, slot]
resetUnmatchedBraceIndicator()QsciScintilla
resizeEvent(QResizeEvent *e)QsciScintillaBase [protected, virtual]
RightArrow enum valueQsciScintilla
RightTriangle enum valueQsciScintilla
RoundBoxIndicator enum valueQsciScintilla
RoundedBottomLeftCorner enum valueQsciScintilla
SC_ALPHA_NOALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ALPHA_OPAQUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ALPHA_TRANSPARENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_CHANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_CLICK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_SHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_CARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_DOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_PAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_OFF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_ON enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_WHITESPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_LOWER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_MIXED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_UPPER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_8859_15 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_ANSI enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_ARABIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_BALTIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_CHINESEBIG5 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_EASTEUROPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_GB2312 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_GREEK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_HANGUL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_HEBREW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_JOHAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_MAC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_OEM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_RUSSIAN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_SHIFTJIS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_SYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_THAI enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_TURKISH enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_VIETNAMESE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CP_DBCS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CP_UTF8 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORARROW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORNORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORREVERSEARROW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORWAIT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_ANTIALIASED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_LCD_OPTIMIZED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_NON_ANTIALIASED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_CR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_CRLF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_LF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_CONTRACT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_EXPAND enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_TOGGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LEVELNUMBERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEAFTER_CONTRACTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEAFTER_EXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEBEFORE_CONTRACTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEBEFORE_EXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELBASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELHEADERFLAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELNUMBERMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELWHITEFLAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FONT_SIZE_MULTIPLIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_IV_LOOKBOTH enum valueQsciScintillaBase
SC_IV_LOOKFORWARD enum valueQsciScintillaBase
SC_IV_NONE enum valueQsciScintillaBase
SC_IV_REAL enum valueQsciScintillaBase
SC_LASTSTEPINUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARGIN_BACK enum valueQsciScintillaBase
SC_MARGIN_FORE enum valueQsciScintillaBase
SC_MARGIN_NUMBER enum valueQsciScintillaBase
SC_MARGIN_RTEXT enum valueQsciScintillaBase
SC_MARGIN_SYMBOL enum valueQsciScintillaBase
SC_MARGIN_TEXT enum valueQsciScintillaBase
SC_MARGINOPTION_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARGINOPTION_SUBLINESELECT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARK_ARROW enum valueQsciScintillaBase
SC_MARK_ARROWDOWN enum valueQsciScintillaBase
SC_MARK_ARROWS enum valueQsciScintillaBase
SC_MARK_AVAILABLE enum valueQsciScintillaBase
SC_MARK_BACKGROUND enum valueQsciScintillaBase
SC_MARK_BOXMINUS enum valueQsciScintillaBase
SC_MARK_BOXMINUSCONNECTED enum valueQsciScintillaBase
SC_MARK_BOXPLUS enum valueQsciScintillaBase
SC_MARK_BOXPLUSCONNECTED enum valueQsciScintillaBase
SC_MARK_CHARACTER enum valueQsciScintillaBase
SC_MARK_CIRCLE enum valueQsciScintillaBase
SC_MARK_CIRCLEMINUS enum valueQsciScintillaBase
SC_MARK_CIRCLEMINUSCONNECTED enum valueQsciScintillaBase
SC_MARK_CIRCLEPLUS enum valueQsciScintillaBase
SC_MARK_CIRCLEPLUSCONNECTED enum valueQsciScintillaBase
SC_MARK_DOTDOTDOT enum valueQsciScintillaBase
SC_MARK_EMPTY enum valueQsciScintillaBase
SC_MARK_FULLRECT enum valueQsciScintillaBase
SC_MARK_LCORNER enum valueQsciScintillaBase
SC_MARK_LCORNERCURVE enum valueQsciScintillaBase
SC_MARK_LEFTRECT enum valueQsciScintillaBase
SC_MARK_MINUS enum valueQsciScintillaBase
SC_MARK_PIXMAP enum valueQsciScintillaBase
SC_MARK_PLUS enum valueQsciScintillaBase
SC_MARK_RGBAIMAGE enum valueQsciScintillaBase
SC_MARK_ROUNDRECT enum valueQsciScintillaBase
SC_MARK_SHORTARROW enum valueQsciScintillaBase
SC_MARK_SMALLRECT enum valueQsciScintillaBase
SC_MARK_TCORNER enum valueQsciScintillaBase
SC_MARK_TCORNERCURVE enum valueQsciScintillaBase
SC_MARK_UNDERLINE enum valueQsciScintillaBase
SC_MARK_VLINE enum valueQsciScintillaBase
SC_MARKNUM_FOLDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEREND enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERMIDTAIL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEROPEN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEROPENMID enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERSUB enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERTAIL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MASK_FOLDERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_BEFOREDELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_BEFOREINSERT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEANNOTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGELINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEMARGIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEMARKER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGESTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CONTAINER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_DELETETEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_INSERTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_LEXERSTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MODEVENTMASKALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTILINEUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTIPASTE_EACH enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTIPASTE_ONCE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTISTEPUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_CUSTOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_PERFORMSORT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_PRESORTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_REDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_UNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_USER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_BLACKONWHITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_COLOURONWHITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_COLOURONWHITEDEFAULTBG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_INVERTLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_NORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_LINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_RECTANGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_STREAM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_THIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_STARTACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TECHNOLOGY_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TECHNOLOGY_DIRECTWRITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TIME_FOREVER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_BOOLEAN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_INTEGER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_STRING enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_CONTENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_H_SCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_SELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_V_SCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_BOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_NORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_SEMIBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_CHAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_WORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_FIXED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_INDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_SAME enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_END enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_MARGIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_END_BY_TEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_START_BY_TEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCEN_CHANGE()QsciScintillaBase [signal]
SCFIND_MATCHCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_POSIX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_REGEXP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_WHOLEWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_WORDSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDREFDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDSTYLEDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDTEXT enum valueQsciScintillaBase
SCI_ADDUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ALLOCATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ALLOCATEEXTENDEDSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONCLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETLINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_APPENDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ASSIGNCMDKEY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCACTIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCCANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCCOMPLETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETAUTOHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCANCELATSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCHOOSESINGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCURRENTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETDROPRESTOFWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETIGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETMAXHEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETMAXWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETORDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETSEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETTYPESEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCPOSSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSELECT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETAUTOHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCANCELATSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCHOOSESINGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETDROPRESTOFWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETFILLUPS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETIGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETMAXHEIGHT enum valueQsciScintillaBase
SCI_AUTOCSETMAXWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETORDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETSEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETTYPESEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSTOPS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BACKTAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BEGINUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEBADLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEBADLIGHTINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEHIGHLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEHIGHLIGHTINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEMATCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPACTIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPCANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPPOSSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETFOREHLT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETHLT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPUSESTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANUNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHANGELEXERSTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFTRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARPOSITIONFROMPOINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARPOSITIONFROMPOINTCLOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHTRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHOOSECARETX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARALLCMDKEYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARCMDKEY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARDOCUMENTSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARREGISTEREDIMAGES enum valueQsciScintillaBase
SCI_CLEARREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARSELECTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COLOURISE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CONTRACTEDFOLDNEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CONVERTEOLS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPYALLOWLINE enum valueQsciScintillaBase
SCI_COPYRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPYTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COUNTCHARACTERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CREATEDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CREATELOADER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CUT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETEBACKNOTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETERANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELLINELEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELLINERIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDRIGHTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DESCRIBEKEYWORDSETS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DESCRIBEPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCLINEFROMVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTSTARTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EDITTOGGLEOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EMPTYUNDOBUFFER enum valueQsciScintillaBase
SCI_ENDUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ENSUREVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ENSUREVISIBLEENFORCEPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EXPANDCHILDREN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDCOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORFLASH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDCHILDREN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FORMATRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FORMFEED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETSBLINK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETSVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALSELECTIONTYPING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETALLLINESVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETANCHOR enum valueQsciScintillaBase
SCI_GETAUTOMATICFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETBACKSPACEUNINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETBUFFEREDDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEBACKALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEVISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETPERIOD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCHARACTERPOINTER enum valueQsciScintillaBase
SCI_GETCHARAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCODEPAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCONTROLCHARSYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCURLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCURRENTPOS enum valueQsciScintillaBase
SCI_GETCURSOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDIRECTFUNCTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDIRECTPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDOCPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGECOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGECOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGEMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETENDATLASTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETENDSTYLED enum valueQsciScintillaBase
SCI_GETEOLMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEXTRAASCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEXTRADESCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFIRSTVISIBLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDLEVEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDPARENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFONTQUALITY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETGAPPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHIGHLIGHTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTSINGLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETIDENTIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDENTATIONGUIDES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDICATORCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDICATORVALUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETKEYSUNICODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLASTCHILD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLAYOUTCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLENGTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLEXER enum valueQsciScintillaBase
SCI_GETLEXERLANGUAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINECOUNT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEINDENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEINDENTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESELENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESELSTARTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMAINSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINCURSORN enum valueQsciScintillaBase
SCI_GETMARGINLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINMASKN enum valueQsciScintillaBase
SCI_GETMARGINOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINSENSITIVEN enum valueQsciScintillaBase
SCI_GETMARGINTYPEN enum valueQsciScintillaBase
SCI_GETMARGINWIDTHN enum valueQsciScintillaBase
SCI_GETMAXLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMODEVENTMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMODIFY enum valueQsciScintillaBase
SCI_GETMOUSEDOWNCAPTURES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMOUSEDWELLTIME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMOUSESELECTIONRECTANGULARSWITCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMULTIPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMULTIPLESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPASTECONVERTENDINGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPOSITIONCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTCOLOURMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTMAGNIFICATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTYEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTYINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPUNCTUATIONCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRANGEPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETREADONLY enum valueQsciScintillaBase
SCI_GETRECTANGULARSELECTIONANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONMODIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSCROLLWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSCROLLWIDTHTRACKING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSEARCHFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONEMPTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTATUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEBITS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEBITSNEEDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTABINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTABWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTARGETEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTARGETSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTECHNOLOGY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTEXT enum valueQsciScintillaBase
SCI_GETTEXTLENGTH enum valueQsciScintillaBase
SCI_GETTEXTRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTWOPHASEDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETUNDOCOLLECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETUSETABS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIEWEOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIEWWS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIRTUALSPACEOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWHITESPACECHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWHITESPACESIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWORDCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPINDENTMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPSTARTINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPVISUALFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPVISUALFLAGSLOCATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETXOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETZOOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GOTOLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GOTOPOS enum valueQsciScintillaBase
SCI_GRABFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HIDELINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HIDESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMERECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORALLONFOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORCLEARRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATOREND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORFILLRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORVALUEAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETOUTLINEALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETUNDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETOUTLINEALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETUNDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INSERTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LEXER_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINECOPY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINECUT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWNRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDUPLICATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINELENGTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLLDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLLUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESJOIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESONSCREEN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESSPLIT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINETRANSPOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUPRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LOADLEXERLIBRARY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LOWERCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINTEXTCLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERADD enum valueQsciScintillaBase
SCI_MARKERADDSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERDEFINE enum valueQsciScintillaBase
SCI_MARKERDEFINEPIXMAP enum valueQsciScintillaBase
SCI_MARKERDEFINERGBAIMAGE enum valueQsciScintillaBase
SCI_MARKERDELETE enum valueQsciScintillaBase
SCI_MARKERDELETEALL enum valueQsciScintillaBase
SCI_MARKERDELETEHANDLE enum valueQsciScintillaBase
SCI_MARKERENABLEHIGHLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERGET enum valueQsciScintillaBase
SCI_MARKERLINEFROMHANDLE enum valueQsciScintillaBase
SCI_MARKERNEXT enum valueQsciScintillaBase
SCI_MARKERPREVIOUS enum valueQsciScintillaBase
SCI_MARKERSETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERSETBACK enum valueQsciScintillaBase
SCI_MARKERSETBACKSELECTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERSETFORE enum valueQsciScintillaBase
SCI_MARKERSYMBOLDEFINED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVECARETINSIDEVIEW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVESELECTEDLINESDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVESELECTEDLINESUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_NEWLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_NULL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_OPTIONAL_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWNRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUPRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARADOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARADOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARAUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARAUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POINTXFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POINTYFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONAFTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONBEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMPOINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMPOINTCLOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONRELATIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PRIVATELEXERCALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PROPERTYNAMES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PROPERTYTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REGISTERIMAGE enum valueQsciScintillaBase
SCI_REGISTERRGBAIMAGE enum valueQsciScintillaBase
SCI_RELEASEALLEXTENDEDSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RELEASEDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACESEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACETARGET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACETARGETRE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RGBAIMAGESETHEIGHT enum valueQsciScintillaBase
SCI_RGBAIMAGESETSCALE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RGBAIMAGESETWIDTH enum valueQsciScintillaBase
SCI_ROTATESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLTOEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLTOSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHINTARGET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHNEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHPREV enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTIONDUPLICATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTIONISRECTANGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETSBLINK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETSVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELECTIONTYPING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETANCHOR enum valueQsciScintillaBase
SCI_SETAUTOMATICFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETBACKSPACEUNINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETBUFFEREDDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEBACKALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEVISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETPERIOD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCHARSDEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCODEPAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCONTROLCHARSYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCURRENTPOS enum valueQsciScintillaBase
SCI_SETCURSOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETDOCPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGECOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGECOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGEMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEMPTYSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETENDATLASTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEOLMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEXTRAASCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEXTRADESCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFIRSTVISIBLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDLEVEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDMARGINCOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDMARGINHICOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFONTQUALITY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHIGHLIGHTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTSINGLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETIDENTIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDENTATIONGUIDES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDICATORCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDICATORVALUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETKEYSUNICODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETKEYWORDS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLAYOUTCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLEXER enum valueQsciScintillaBase
SCI_SETLEXERLANGUAGE enum valueQsciScintillaBase
SCI_SETLINEINDENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMAINSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINCURSORN enum valueQsciScintillaBase
SCI_SETMARGINLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINMASKN enum valueQsciScintillaBase
SCI_SETMARGINOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINSENSITIVEN enum valueQsciScintillaBase
SCI_SETMARGINTYPEN enum valueQsciScintillaBase
SCI_SETMARGINWIDTHN enum valueQsciScintillaBase
SCI_SETMODEVENTMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSEDOWNCAPTURES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSEDWELLTIME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSESELECTIONRECTANGULARSWITCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMULTIPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMULTIPLESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPASTECONVERTENDINGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPOSITIONCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTCOLOURMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTMAGNIFICATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPUNCTUATIONCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETREADONLY enum valueQsciScintillaBase
SCI_SETRECTANGULARSELECTIONANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONMODIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSAVEPOINT enum valueQsciScintillaBase
SCI_SETSCROLLWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSCROLLWIDTHTRACKING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSEARCHFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTATUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLEBITS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLINGEX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTABINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTABWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTARGETEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTARGETSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTECHNOLOGY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTEXT enum valueQsciScintillaBase
SCI_SETTWOPHASEDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETUNDOCOLLECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETUSETABS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIEWEOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIEWWS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIRTUALSPACEOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVISIBLEPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACECHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACESIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWORDCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPINDENTMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPSTARTINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPVISUALFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPVISUALFLAGSLOCATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETXCARETPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETXOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETYCARETPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETZOOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SHOWLINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STARTRECORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STARTSTYLING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STOPRECORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLECLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCHANGEABLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCHARACTERSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETFONT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETHOTSPOT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETITALIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETSIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETSIZEFRACTIONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETWEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLERESETDEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCHANGEABLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCHARACTERSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETFONT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETHOTSPOT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETITALIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETSIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETSIZEFRACTIONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETWEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SWAPMAINANCHORCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TARGETFROMSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TEXTHEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TEXTWIDTH enum valueQsciScintillaBase
SCI_TOGGLECARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TOGGLEFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_UNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_UPPERCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_USEPOPUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_USERLISTSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMERECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VERTICALCENTRECARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VISIBLEFROMDOCLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDSTARTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WRAPCOUNT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ZOOMIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ZOOMOUT enum value (defined in QsciScintillaBase)QsciScintillaBase
ScintillaBytes typedef (defined in QsciScintillaBase)QsciScintillaBase [protected]
SCK_ADD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_BACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DIVIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_END enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_ESCAPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_HOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_INSERT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_LEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_MENU enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_NEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_PRIOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RETURN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RWIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_SUBTRACT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_TAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_UP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_WIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCLEX_A68K enum valueQsciScintillaBase
SCLEX_ABAQUS enum valueQsciScintillaBase
SCLEX_ADA enum valueQsciScintillaBase
SCLEX_APDL enum valueQsciScintillaBase
SCLEX_ASM enum valueQsciScintillaBase
SCLEX_ASN1 enum valueQsciScintillaBase
SCLEX_ASP enum valueQsciScintillaBase
SCLEX_ASYMPTOTE enum valueQsciScintillaBase
SCLEX_AU3 enum valueQsciScintillaBase
SCLEX_AVE enum valueQsciScintillaBase
SCLEX_AVS enum valueQsciScintillaBase
SCLEX_BAAN enum valueQsciScintillaBase
SCLEX_BASH enum valueQsciScintillaBase
SCLEX_BATCH enum valueQsciScintillaBase
SCLEX_BLITZBASIC enum valueQsciScintillaBase
SCLEX_BULLANT enum valueQsciScintillaBase
SCLEX_CAML enum valueQsciScintillaBase
SCLEX_CLW enum valueQsciScintillaBase
SCLEX_CLWNOCASE enum valueQsciScintillaBase
SCLEX_CMAKE enum valueQsciScintillaBase
SCLEX_COBOL enum valueQsciScintillaBase
SCLEX_COFFEESCRIPT enum valueQsciScintillaBase
SCLEX_CONF enum valueQsciScintillaBase
SCLEX_CONTAINER enum valueQsciScintillaBase
SCLEX_CPP enum valueQsciScintillaBase
SCLEX_CPPNOCASE enum valueQsciScintillaBase
SCLEX_CSOUND enum valueQsciScintillaBase
SCLEX_CSS enum valueQsciScintillaBase
SCLEX_D enum valueQsciScintillaBase
SCLEX_DIFF enum valueQsciScintillaBase
SCLEX_ECL enum valueQsciScintillaBase
SCLEX_EIFFEL enum valueQsciScintillaBase
SCLEX_EIFFELKW enum valueQsciScintillaBase
SCLEX_ERLANG enum valueQsciScintillaBase
SCLEX_ERRORLIST enum valueQsciScintillaBase
SCLEX_ESCRIPT enum valueQsciScintillaBase
SCLEX_F77 enum valueQsciScintillaBase
SCLEX_FLAGSHIP enum valueQsciScintillaBase
SCLEX_FORTH enum valueQsciScintillaBase
SCLEX_FORTRAN enum valueQsciScintillaBase
SCLEX_FREEBASIC enum valueQsciScintillaBase
SCLEX_GAP enum valueQsciScintillaBase
SCLEX_GUI4CLI enum valueQsciScintillaBase
SCLEX_HASKELL enum valueQsciScintillaBase
SCLEX_HTML enum valueQsciScintillaBase
SCLEX_INNOSETUP enum valueQsciScintillaBase
SCLEX_KIX enum valueQsciScintillaBase
SCLEX_KVIRC enum valueQsciScintillaBase
SCLEX_LATEX enum valueQsciScintillaBase
SCLEX_LISP enum valueQsciScintillaBase
SCLEX_LITERATEHASKELL enum valueQsciScintillaBase
SCLEX_LOT enum valueQsciScintillaBase
SCLEX_LOUT enum valueQsciScintillaBase
SCLEX_LUA enum valueQsciScintillaBase
SCLEX_MAGIK enum valueQsciScintillaBase
SCLEX_MAKEFILE enum valueQsciScintillaBase
SCLEX_MARKDOWN enum valueQsciScintillaBase
SCLEX_MATLAB enum valueQsciScintillaBase
SCLEX_METAPOST enum valueQsciScintillaBase
SCLEX_MMIXAL enum valueQsciScintillaBase
SCLEX_MODULA enum valueQsciScintillaBase
SCLEX_MSSQL enum valueQsciScintillaBase
SCLEX_MYSQL enum valueQsciScintillaBase
SCLEX_NIMROD enum valueQsciScintillaBase
SCLEX_NNCRONTAB enum valueQsciScintillaBase
SCLEX_NSIS enum valueQsciScintillaBase
SCLEX_NULL enum valueQsciScintillaBase
SCLEX_OCTAVE enum valueQsciScintillaBase
SCLEX_OPAL enum valueQsciScintillaBase
SCLEX_OSCRIPT enum valueQsciScintillaBase
SCLEX_PASCAL enum valueQsciScintillaBase
SCLEX_PERL enum valueQsciScintillaBase
SCLEX_PHP enum valueQsciScintillaBase
SCLEX_PHPSCRIPT enum valueQsciScintillaBase
SCLEX_PLM enum valueQsciScintillaBase
SCLEX_PO enum valueQsciScintillaBase
SCLEX_POV enum valueQsciScintillaBase
SCLEX_POWERBASIC enum valueQsciScintillaBase
SCLEX_POWERPRO enum valueQsciScintillaBase
SCLEX_POWERSHELL enum valueQsciScintillaBase
SCLEX_PROGRESS enum valueQsciScintillaBase
SCLEX_PROPERTIES enum valueQsciScintillaBase
SCLEX_PS enum valueQsciScintillaBase
SCLEX_PUREBASIC enum valueQsciScintillaBase
SCLEX_PYTHON enum valueQsciScintillaBase
SCLEX_R enum valueQsciScintillaBase
SCLEX_REBOL enum valueQsciScintillaBase
SCLEX_RUBY enum valueQsciScintillaBase
SCLEX_RUST enum valueQsciScintillaBase
SCLEX_SCRIPTOL enum valueQsciScintillaBase
SCLEX_SMALLTALK enum valueQsciScintillaBase
SCLEX_SML enum valueQsciScintillaBase
SCLEX_SORCUS enum valueQsciScintillaBase
SCLEX_SPECMAN enum valueQsciScintillaBase
SCLEX_SPICE enum valueQsciScintillaBase
SCLEX_SQL enum valueQsciScintillaBase
SCLEX_STTXT enum valueQsciScintillaBase
SCLEX_TACL enum valueQsciScintillaBase
SCLEX_TADS3 enum valueQsciScintillaBase
SCLEX_TAL enum valueQsciScintillaBase
SCLEX_TCL enum valueQsciScintillaBase
SCLEX_TCMD enum valueQsciScintillaBase
SCLEX_TEX enum valueQsciScintillaBase
SCLEX_TXT2TAGS enum valueQsciScintillaBase
SCLEX_VB enum valueQsciScintillaBase
SCLEX_VBSCRIPT enum valueQsciScintillaBase
SCLEX_VERILOG enum valueQsciScintillaBase
SCLEX_VHDL enum valueQsciScintillaBase
SCLEX_VISUALPROLOG enum valueQsciScintillaBase
SCLEX_XML enum valueQsciScintillaBase
SCLEX_YAML enum valueQsciScintillaBase
SCMOD_ALT enum valueQsciScintillaBase
SCMOD_CTRL enum valueQsciScintillaBase
SCMOD_META enum valueQsciScintillaBase
SCMOD_NORM enum valueQsciScintillaBase
SCMOD_SHIFT enum valueQsciScintillaBase
SCMOD_SUPER enum valueQsciScintillaBase
SCN_AUTOCCANCELLED()QsciScintillaBase [signal]
SCN_AUTOCCHARDELETED()QsciScintillaBase [signal]
SCN_AUTOCSELECTION(const char *selection, int position)QsciScintillaBase [signal]
SCN_CALLTIPCLICK(int direction)QsciScintillaBase [signal]
SCN_CHARADDED(int charadded)QsciScintillaBase [signal]
SCN_DOUBLECLICK(int position, int line, int modifiers)QsciScintillaBase [signal]
SCN_DWELLEND(int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_DWELLSTART(int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_FOCUSIN()QsciScintillaBase [signal]
SCN_FOCUSOUT()QsciScintillaBase [signal]
SCN_HOTSPOTCLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_HOTSPOTDOUBLECLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_HOTSPOTRELEASECLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_INDICATORCLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_INDICATORRELEASE(int position, int modifiers)QsciScintillaBase [signal]
SCN_MACRORECORD(unsigned int, unsigned long, void *)QsciScintillaBase [signal]
SCN_MARGINCLICK(int position, int modifiers, int margin)QsciScintillaBase [signal]
SCN_MODIFIED(int, int, const char *, int, int, int, int, int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_MODIFYATTEMPTRO()QsciScintillaBase [signal]
SCN_NEEDSHOWN(int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_PAINTED()QsciScintillaBase [signal]
SCN_SAVEPOINTLEFT()QsciScintillaBase [signal]
SCN_SAVEPOINTREACHED()QsciScintillaBase [signal]
SCN_STYLENEEDED(int position)QsciScintillaBase [signal]
SCN_UPDATEUI(int updated)QsciScintillaBase [signal]
SCN_USERLISTSELECTION(const char *, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_ZOOM() (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCVS_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCVS_RECTANGULARSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCVS_USERACCESSIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_INVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_VISIBLEAFTERINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_VISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
selectAll(bool select=true)QsciScintilla [virtual, slot]
selectedText() const QsciScintilla
selectionChanged()QsciScintilla [signal]
selectionToEol() const QsciScintilla
selectToMatchingBrace()QsciScintilla [virtual, slot]
SendScintilla(unsigned int msg, unsigned long wParam=0, long lParam=0) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, void *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, const char *wParam, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, long wParam) const QsciScintillaBase
SendScintilla(unsigned int msg, int wParam) const QsciScintillaBase
SendScintilla(unsigned int msg, long cpMin, long cpMax, char *lpstrText) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QColor &col) const QsciScintillaBase
SendScintilla(unsigned int msg, const QColor &col) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, QPainter *hdc, const QRect &rc, long cpMin, long cpMax) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QPixmap &lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QImage &lParam) const QsciScintillaBase
SendScintillaPtrResult(unsigned int msg) const QsciScintillaBase
setAnnotationDisplay(AnnotationDisplay display)QsciScintilla
setAutoCompletionCaseSensitivity(bool cs)QsciScintilla [virtual, slot]
setAutoCompletionFillups(const char *fillups)QsciScintilla
setAutoCompletionFillupsEnabled(bool enabled)QsciScintilla
setAutoCompletionReplaceWord(bool replace)QsciScintilla [virtual, slot]
setAutoCompletionShowSingle(bool single)QsciScintilla [virtual, slot]
setAutoCompletionSource(AutoCompletionSource source)QsciScintilla [virtual, slot]
setAutoCompletionThreshold(int thresh)QsciScintilla [virtual, slot]
setAutoCompletionUseSingle(AutoCompletionUseSingle single)QsciScintilla [virtual, slot]
setAutoCompletionWordSeparators(const QStringList &separators)QsciScintilla
setAutoIndent(bool autoindent)QsciScintilla [virtual, slot]
setBackspaceUnindents(bool unindent)QsciScintilla [virtual, slot]
setBraceMatching(BraceMatch bm)QsciScintilla [virtual, slot]
setCallTipsBackgroundColor(const QColor &col)QsciScintilla
setCallTipsForegroundColor(const QColor &col)QsciScintilla
setCallTipsHighlightColor(const QColor &col)QsciScintilla
setCallTipsPosition(CallTipsPosition position)QsciScintilla
setCallTipsStyle(CallTipsStyle style)QsciScintilla
setCallTipsVisible(int nr)QsciScintilla
setCaretForegroundColor(const QColor &col)QsciScintilla [virtual, slot]
setCaretLineBackgroundColor(const QColor &col)QsciScintilla [virtual, slot]
setCaretLineVisible(bool enable)QsciScintilla [virtual, slot]
setCaretWidth(int width)QsciScintilla [virtual, slot]
setColor(const QColor &c)QsciScintilla [virtual, slot]
setContractedFolds(const QValueList< int > &folds)QsciScintilla
setCursorPosition(int line, int index)QsciScintilla [virtual, slot]
setDocument(const QsciDocument &document)QsciScintilla
setEdgeColor(const QColor &col)QsciScintilla
setEdgeColumn(int colnr)QsciScintilla
setEdgeMode(EdgeMode mode)QsciScintilla
setEolMode(EolMode mode)QsciScintilla [virtual, slot]
setEolVisibility(bool visible)QsciScintilla [virtual, slot]
setExtraAscent(int extra)QsciScintilla
setExtraDescent(int extra)QsciScintilla
setFirstVisibleLine(int linenr)QsciScintilla
setFolding(FoldStyle fold, int margin=2)QsciScintilla [virtual, slot]
setFoldMarginColors(const QColor &fore, const QColor &back)QsciScintilla
setFont(const QFont &f)QsciScintilla
setHotspotBackgroundColor(const QColor &col)QsciScintilla
setHotspotForegroundColor(const QColor &col)QsciScintilla
setHotspotUnderline(bool enable)QsciScintilla
setHotspotWrap(bool enable)QsciScintilla
setIndentation(int line, int indentation)QsciScintilla [virtual, slot]
setIndentationGuides(bool enable)QsciScintilla [virtual, slot]
setIndentationGuidesBackgroundColor(const QColor &col)QsciScintilla [virtual, slot]
setIndentationGuidesForegroundColor(const QColor &col)QsciScintilla [virtual, slot]
setIndentationsUseTabs(bool tabs)QsciScintilla [virtual, slot]
setIndentationWidth(int width)QsciScintilla [virtual, slot]
setIndicatorDrawUnder(bool under, int indicatorNumber=-1)QsciScintilla
setIndicatorForegroundColor(const QColor &col, int indicatorNumber=-1)QsciScintilla
setIndicatorOutlineColor(const QColor &col, int indicatorNumber=-1)QsciScintilla
setLexer(QsciLexer *lexer=0)QsciScintilla [virtual, slot]
setMarginLineNumbers(int margin, bool lnrs)QsciScintilla [virtual, slot]
setMarginMarkerMask(int margin, int mask)QsciScintilla [virtual, slot]
setMarginOptions(int options)QsciScintilla
setMarginsBackgroundColor(const QColor &col)QsciScintilla [virtual, slot]
setMarginSensitivity(int margin, bool sens)QsciScintilla [virtual, slot]
setMarginsFont(const QFont &f)QsciScintilla [virtual, slot]
setMarginsForegroundColor(const QColor &col)QsciScintilla [virtual, slot]
setMarginText(int line, const QString &text, int style)QsciScintilla
setMarginText(int line, const QString &text, const QsciStyle &style)QsciScintilla
setMarginText(int line, const QsciStyledText &text)QsciScintilla
setMarginText(int line, const QValueList< QsciStyledText > &text)QsciScintilla
setMarginType(int margin, MarginType type)QsciScintilla
setMarginWidth(int margin, int width)QsciScintilla [virtual, slot]
setMarginWidth(int margin, const QString &s)QsciScintilla [virtual, slot]
setMarkerBackgroundColor(const QColor &col, int markerNumber=-1)QsciScintilla
setMarkerForegroundColor(const QColor &col, int markerNumber=-1)QsciScintilla
setMatchedBraceBackgroundColor(const QColor &col)QsciScintilla
setMatchedBraceForegroundColor(const QColor &col)QsciScintilla
setMatchedBraceIndicator(int indicatorNumber)QsciScintilla
setModified(bool m)QsciScintilla [virtual, slot]
setOverwriteMode(bool overwrite)QsciScintilla
setPaper(const QColor &c)QsciScintilla [virtual, slot]
setReadOnly(bool ro)QsciScintilla [virtual, slot]
setScrollBars() (defined in QsciScintillaBase)QsciScintillaBase [protected]
setSelection(int lineFrom, int indexFrom, int lineTo, int indexTo)QsciScintilla [virtual, slot]
setSelectionBackgroundColor(const QColor &col)QsciScintilla [virtual, slot]
setSelectionForegroundColor(const QColor &col)QsciScintilla [virtual, slot]
setSelectionToEol(bool filled)QsciScintilla
setTabIndents(bool indent)QsciScintilla [virtual, slot]
setTabWidth(int width)QsciScintilla [virtual, slot]
setText(const QString &text)QsciScintilla [virtual, slot]
setUnmatchedBraceBackgroundColor(const QColor &col)QsciScintilla
setUnmatchedBraceForegroundColor(const QColor &col)QsciScintilla
setUnmatchedBraceIndicator(int indicatorNumber)QsciScintilla
setUtf8(bool cp)QsciScintilla [virtual, slot]
setWhitespaceBackgroundColor(const QColor &col)QsciScintilla
setWhitespaceForegroundColor(const QColor &col)QsciScintilla
setWhitespaceSize(int size)QsciScintilla
setWhitespaceVisibility(WhitespaceVisibility mode)QsciScintilla [virtual, slot]
setWrapIndentMode(WrapIndentMode mode)QsciScintilla
setWrapMode(WrapMode mode)QsciScintilla [virtual, slot]
setWrapVisualFlags(WrapVisualFlag endFlag, WrapVisualFlag startFlag=WrapFlagNone, int indent=0)QsciScintilla
showUserList(int id, const QStringList &list)QsciScintilla
SloppyBraceMatch enum valueQsciScintilla
SmallRectangle enum valueQsciScintilla
SquiggleIndicator enum valueQsciScintilla
SquiggleLowIndicator enum valueQsciScintilla
SquigglePixmapIndicator enum valueQsciScintilla
standardCommands() const QsciScintilla [inline]
StraightBoxIndicator enum valueQsciScintilla
StrictBraceMatch enum valueQsciScintilla
StrikeIndicator enum valueQsciScintilla
STYLE_BRACEBAD enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_BRACELIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_CALLTIP enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_CONTROLCHAR enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_INDENTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_LASTPREDEFINED enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_LINENUMBER enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_MAX enum value (defined in QsciScintillaBase)QsciScintillaBase
SymbolMargin enum valueQsciScintilla
SymbolMarginDefaultBackgroundColor enum valueQsciScintilla
SymbolMarginDefaultForegroundColor enum valueQsciScintilla
tabIndents() const QsciScintilla
tabWidth() const QsciScintilla
text() const QsciScintilla
text(int line) const QsciScintilla
textAsBytes(const QString &text) const (defined in QsciScintillaBase)QsciScintillaBase [protected]
textChanged()QsciScintilla [signal]
textHeight(int linenr) const QsciScintilla
TextMargin enum valueQsciScintilla
TextMarginRightJustified enum valueQsciScintilla
ThickCompositionIndicator enum valueQsciScintilla
ThreeDots enum valueQsciScintilla
ThreeRightArrows enum valueQsciScintilla
TTIndicator enum valueQsciScintilla
Underline enum valueQsciScintilla
undo()QsciScintilla [virtual, slot]
UNDO_MAY_COALESCE enum value (defined in QsciScintillaBase)QsciScintillaBase
unindent(int line)QsciScintilla [virtual, slot]
userListActivated(int id, const QString &string)QsciScintilla [signal]
VerticalLine enum valueQsciScintilla
verticalScrollBar() const QsciScintillaBase
viewport() const QsciScintillaBase
VISIBLE_SLOP enum value (defined in QsciScintillaBase)QsciScintillaBase
VISIBLE_STRICT enum value (defined in QsciScintillaBase)QsciScintillaBase
whitespaceSize() const QsciScintilla
whitespaceVisibility() const QsciScintilla
WhitespaceVisibility enum nameQsciScintilla
wordAtLineIndex(int line, int index) const QsciScintilla
wordAtPoint(const QPoint &point) const QsciScintilla
wordCharacters() const QsciScintilla
WrapCharacter enum valueQsciScintilla
WrapFlagByBorder enum valueQsciScintilla
WrapFlagByText enum valueQsciScintilla
WrapFlagInMargin enum valueQsciScintilla
WrapFlagNone enum valueQsciScintilla
WrapIndentFixed enum valueQsciScintilla
WrapIndentIndented enum valueQsciScintilla
WrapIndentMode enum nameQsciScintilla
wrapIndentMode() const QsciScintilla
WrapIndentSame enum valueQsciScintilla
wrapMode() const QsciScintilla
WrapMode enum nameQsciScintilla
WrapNone enum valueQsciScintilla
WrapVisualFlag enum nameQsciScintilla
WrapWord enum valueQsciScintilla
write(QIODevice *io) const QsciScintilla
WsInvisible enum valueQsciScintilla
WsVisible enum valueQsciScintilla
WsVisibleAfterIndent enum valueQsciScintilla
zoomIn(int range)QsciScintilla [virtual, slot]
zoomIn()QsciScintilla [virtual, slot]
zoomOut(int range)QsciScintilla [virtual, slot]
zoomOut()QsciScintilla [virtual, slot]
zoomTo(int size)QsciScintilla [virtual, slot]
~QsciScintilla()QsciScintilla [virtual]
~QsciScintillaBase()QsciScintillaBase [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciScintilla.html b/doc/html-Qt3/classQsciScintilla.html new file mode 100644 index 0000000..b69ab19 --- /dev/null +++ b/doc/html-Qt3/classQsciScintilla.html @@ -0,0 +1,6255 @@ + + + + +QScintilla: QsciScintilla Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciScintilla Class Reference
+
+
+ +

#include <qsciscintilla.h>

+ +

Inherits QsciScintillaBase.

+ +

List of all members.

+

+Classes

+
    +
  • struct FindState +
+

+Public Types

+ +

+Public Slots

+ +

+Signals

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciScintilla class implements a higher level, more Qt-like, API to the Scintilla editor widget.

+

QsciScintilla implements methods, signals and slots similar to those found in other Qt editor classes. It also provides a higher level interface to features specific to Scintilla such as syntax styling, call tips, auto-indenting and auto-completion than that provided by QsciScintillaBase.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+ +

This enum defines the different auto-indentation styles.

+
Enumerator:
+ + + +
AiMaintain  +

A line is automatically indented to match the previous line.

+
AiOpening  +

If the language supported by the current lexer has a specific start of block character (e.g. { in C++), then a line that begins with that character is indented as well as the lines that make up the block. It may be logically ored with AiClosing.

+
AiClosing  +

If the language supported by the current lexer has a specific end of block character (e.g. } in C++), then a line that begins with that character is indented as well as the lines that make up the block. It may be logically ored with AiOpening.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different annotation display styles.

+
Enumerator:
+ + + +
AnnotationHidden  +

Annotations are not displayed.

+
AnnotationStandard  +

Annotations are drawn left justified with no adornment.

+
AnnotationBoxed  +

Annotations are surrounded by a box.

+
+
+
+ +
+
+ +
+ +
+

This enum defines the behavior if an auto-completion list contains a single entry.

+
Enumerator:
+ + + +
AcusNever  +

The single entry is not used automatically and the auto-completion list is displayed.

+
AcusExplicit  +

The single entry is used automatically when auto-completion is explicitly requested (using autoCompleteFromAPIs() or autoCompleteFromDocument()) but not when auto-completion is triggered as the user types.

+
AcusAlways  +

The single entry is used automatically and the auto-completion list is not displayed.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different sources for auto-completion lists.

+
Enumerator:
+ + + + +
AcsNone  +

No sources are used, ie. automatic auto-completion is disabled.

+
AcsAll  +

The source is all available sources.

+
AcsDocument  +

The source is the current document.

+
AcsAPIs  +

The source is any installed APIs.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::BraceMatch
+
+
+

This enum defines the different brace matching modes. The character pairs {}, [] and () are treated as braces. The Python lexer will also match a : with the end of the corresponding indented block.

+
Enumerator:
+ + + +
NoBraceMatch  +

Brace matching is disabled.

+
StrictBraceMatch  +

Brace matching is enabled for a brace immediately before the current position.

+
SloppyBraceMatch  +

Brace matching is enabled for a brace immediately before or after the current position.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different call tip positions.

+
Enumerator:
+ + +
CallTipsBelowText  +

Call tips are placed below the text.

+
CallTipsAboveText  +

Call tips are placed above the text.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different call tip styles.

+
Enumerator:
+ + + + +
CallTipsNone  +

Call tips are disabled.

+
CallTipsNoContext  +

Call tips are displayed without a context. A context is any scope (e.g. a C++ namespace or a Python module) prior to the function name.

+
CallTipsNoAutoCompletionContext  +

Call tips are displayed with a context only if the user hasn't already implicitly identified the context using autocompletion. Note that this style may not always be able to align the call tip with the text being entered.

+
CallTipsContext  +

Call tips are displayed with a context. Note that this style may not always be able to align the call tip with the text being entered.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::EdgeMode
+
+
+ +

This enum defines the different edge modes for long lines.

+
Enumerator:
+ + + +
EdgeNone  +

Long lines are not marked.

+
EdgeLine  +

A vertical line is drawn at the column set by setEdgeColumn(). This is recommended for monospace fonts.

+
EdgeBackground  +

The background color of characters after the column limit is changed to the color set by setEdgeColor(). This is recommended for proportional fonts.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::EolMode
+
+
+ +

This enum defines the different end-of-line modes.

+
Enumerator:
+ + + +
EolWindows  +

A carriage return/line feed as used on Windows systems.

+
EolUnix  +

A line feed as used on Unix systems, including OS/X.

+
EolMac  +

A carriage return as used on Mac systems prior to OS/X.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::FoldStyle
+
+
+ +

This enum defines the different styles for the folding margin.

+
Enumerator:
+ + + + + + +
NoFoldStyle  +

Folding is disabled.

+
PlainFoldStyle  +

Plain folding style using plus and minus symbols.

+
CircledFoldStyle  +

Circled folding style using circled plus and minus symbols.

+
BoxedFoldStyle  +

Boxed folding style using boxed plus and minus symbols.

+
CircledTreeFoldStyle  +

Circled tree style using a flattened tree with circled plus and minus symbols and rounded corners.

+
BoxedTreeFoldStyle  +

Boxed tree style using a flattened tree with boxed plus and minus symbols and right-angled corners.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different indicator styles.

+
Enumerator:
+ + + + + + + + + + + + + + + +
PlainIndicator  +

A single straight underline.

+
SquiggleIndicator  +

A squiggly underline that requires 3 pixels of descender space.

+
TTIndicator  +

A line of small T shapes.

+
DiagonalIndicator  +

Diagonal hatching.

+
StrikeIndicator  +

Strike out.

+
HiddenIndicator  +

An indicator with no visual appearence.

+
BoxIndicator  +

A rectangle around the text.

+
RoundBoxIndicator  +

A rectangle with rounded corners around the text with the interior usually more transparent than the border.

+
StraightBoxIndicator  +

A rectangle around the text with the interior usually more transparent than the border.

+
DashesIndicator  +

A dashed underline.

+
DotsIndicator  +

A dotted underline.

+
SquiggleLowIndicator  +

A squiggly underline that requires 2 pixels of descender space and so will fit under smaller fonts.

+
DotBoxIndicator  +

A dotted rectangle around the text with the interior usually more transparent than the border.

+
SquigglePixmapIndicator  +

A version of SquiggleIndicator that uses a pixmap. This is quicker but may be of lower quality.

+
ThickCompositionIndicator  +

A thick underline typically used during Asian language input composition.

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+ +

This enum defines the different margin options.

+
Enumerator:
+ + +
MoNone  +

Reset all margin options.

+
MoSublineSelect  +

If this is set then only the first sub-line of a wrapped line will be selected when clicking on a margin.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::MarginType
+
+
+ +

This enum defines the different margin types.

+
Enumerator:
+ + + + + + +
SymbolMargin  +

The margin contains symbols, including those used for folding.

+
SymbolMarginDefaultForegroundColor  +

The margin contains symbols and uses the default foreground color as its background color.

+
SymbolMarginDefaultBackgroundColor  +

The margin contains symbols and uses the default background color as its background color.

+
NumberMargin  +

The margin contains line numbers.

+
TextMargin  +

The margin contains styled text.

+
TextMarginRightJustified  +

The margin contains right justified styled text.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::MarkerSymbol
+
+
+ +

This enum defines the different pre-defined marker symbols.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Circle  +

A circle.

+
Rectangle  +

A rectangle.

+
RightTriangle  +

A triangle pointing to the right.

+
SmallRectangle  +

A smaller rectangle.

+
RightArrow  +

An arrow pointing to the right.

+
Invisible  +

An invisible marker that allows code to track the movement of lines.

+
DownTriangle  +

A triangle pointing down.

+
Minus  +

A drawn minus sign.

+
Plus  +

A drawn plus sign.

+
VerticalLine  +

A vertical line drawn in the background colour.

+
BottomLeftCorner  +

A bottom left corner drawn in the background colour.

+
LeftSideSplitter  +

A vertical line with a centre right horizontal line drawn in the background colour.

+
BoxedPlus  +

A drawn plus sign in a box.

+
BoxedPlusConnected  +

A drawn plus sign in a connected box.

+
BoxedMinus  +

A drawn minus sign in a box.

+
BoxedMinusConnected  +

A drawn minus sign in a connected box.

+
RoundedBottomLeftCorner  +

A rounded bottom left corner drawn in the background colour.

+
LeftSideRoundedSplitter  +

A vertical line with a centre right curved line drawn in the background colour.

+
CircledPlus  +

A drawn plus sign in a circle.

+
CircledPlusConnected  +

A drawn plus sign in a connected box.

+
CircledMinus  +

A drawn minus sign in a circle.

+
CircledMinusConnected  +

A drawn minus sign in a connected circle.

+
Background  +

No symbol is drawn but the line is drawn with the same background color as the marker's.

+
ThreeDots  +

Three drawn dots.

+
ThreeRightArrows  +

Three drawn arrows pointing right.

+
FullRectangle  +

A full rectangle (ie. the margin background) using the marker's background color.

+
LeftRectangle  +

A left rectangle (ie. the left part of the margin background) using the marker's background color.

+
Underline  +

No symbol is drawn but the line is drawn underlined using the marker's background color.

+
+
+
+ +
+
+ +
+ +
+

This enum defines the different whitespace visibility modes. When whitespace is visible spaces are displayed as small centred dots and tabs are displayed as light arrows pointing to the right.

+
Enumerator:
+ + + +
WsInvisible  +

Whitespace is invisible.

+
WsVisible  +

Whitespace is always visible.

+
WsVisibleAfterIndent  +

Whitespace is visible after the whitespace used for indentation.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::WrapMode
+
+
+ +

This enum defines the different line wrap modes.

+
Enumerator:
+ + + +
WrapNone  +

Lines are not wrapped.

+
WrapWord  +

Lines are wrapped at word boundaries.

+
WrapCharacter  +

Lines are wrapped at character boundaries.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different line wrap visual flags.

+
Enumerator:
+ + + + +
WrapFlagNone  +

No wrap flag is displayed.

+
WrapFlagByText  +

A wrap flag is displayed by the text.

+
WrapFlagByBorder  +

A wrap flag is displayed by the border.

+
WrapFlagInMargin  +

A wrap flag is displayed in the line number margin.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different line wrap indentation modes.

+
Enumerator:
+ + + +
WrapIndentFixed  +

Wrapped sub-lines are indented by the amount set by setWrapVisualFlags().

+
WrapIndentSame  +

Wrapped sub-lines are indented by the same amount as the first sub-line.

+
WrapIndentIndented  +

Wrapped sub-lines are indented by the same amount as the first sub-line plus one more level of indentation.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
QsciScintilla::QsciScintilla (QWidget * parent = 0,
const char * name = 0,
WFlags f = 0 
)
+
+
+

Construct an empty QsciScintilla with parent parent, name name, and widget flags f.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
virtual QStringList QsciScintilla::apiContext (int pos,
int & context_start,
int & last_word_start 
) [virtual]
+
+
+

Returns the API context, which is a list of words, before the position pos in the document. The context can be used by auto-completion and call tips to help to identify which API call the user is referring to. In the default implementation the current lexer determines what characters make up a word, and what characters determine the boundaries of words (ie. the start characters). If there is no current lexer then the context will consist of a single word. On return context_start will contain the position in the document of the start of the context and last_word_start will contain the position in the document of the start of the last word of the context.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::annotate (int line,
const QString & text,
int style 
)
+
+
+

Annotate the line line with the text text using the style number style.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::annotate (int line,
const QString & text,
const QsciStylestyle 
)
+
+
+

Annotate the line line with the text text using the style style.

+ +
+
+ +
+
+ + + + + + + +
AnnotationDisplay QsciScintilla::annotationDisplay () const
+
+
+

Returns the display style for annotations.

+
See also:
setAnnotationDisplay()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::clearAnnotations (int line = -1)
+
+
+

The annotations on line line are removed. If line is negative then all annotations are removed.

+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::autoCompletionCaseSensitivity () const
+
+
+

Returns true if auto-completion lists are case sensitive.

+
See also:
setAutoCompletionCaseSensitivity()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::autoCompletionFillupsEnabled () const
+
+
+

Returns true if auto-completion fill-up characters are enabled.

+
See also:
setAutoCompletionFillups(), setAutoCompletionFillupsEnabled()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::autoCompletionReplaceWord () const
+
+
+

Returns true if the rest of the word to the right of the current cursor is removed when an item from an auto-completion list is selected.

+
See also:
setAutoCompletionReplaceWord()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::autoCompletionShowSingle () const
+
+
+

Returns true if the only item in an auto-completion list with a single entry is automatically used and the list not displayed. Note that this is deprecated and autoCompletionUseSingle() should be used instead.

+
See also:
setAutoCompletionShowSingle()
+ +
+
+ +
+
+ + + + + + + +
AutoCompletionSource QsciScintilla::autoCompletionSource () const [inline]
+
+
+

Returns the current source for the auto-completion list when it is being displayed automatically as the user types.

+
See also:
setAutoCompletionSource()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::autoCompletionThreshold () const [inline]
+
+
+

Returns the current threshold for the automatic display of the auto-completion list as the user types.

+
See also:
setAutoCompletionThreshold()
+ +
+
+ +
+
+ + + + + + + +
AutoCompletionUseSingle QsciScintilla::autoCompletionUseSingle () const
+
+
+

Returns the current behavior when an auto-completion list contains a single entry.

+
See also:
setAutoCompletionUseSingle()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::autoIndent () const [inline]
+
+
+

Returns true if auto-indentation is enabled.

+
See also:
setAutoIndent()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::backspaceUnindents () const
+
+
+

Returns true if the backspace key unindents a line instead of deleting a character. The default is false.

+
See also:
setBackspaceUnindents(), tabIndents(), setTabIndents()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::beginUndoAction ()
+
+
+

Mark the beginning of a sequence of actions that can be undone by a single call to undo().

+
See also:
endUndoAction(), undo()
+ +
+
+ +
+
+ + + + + + + +
BraceMatch QsciScintilla::braceMatching () const [inline]
+
+
+

Returns the brace matching mode.

+
See also:
setBraceMatching()
+ +
+
+ +
+
+ + + + + + + +
CallTipsPosition QsciScintilla::callTipsPosition () const [inline]
+
+
+

Returns the current call tip position.

+
See also:
setCallTipsPosition()
+ +
+
+ +
+
+ + + + + + + +
CallTipsStyle QsciScintilla::callTipsStyle () const [inline]
+
+
+

Returns the current call tip style.

+
See also:
setCallTipsStyle()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::callTipsVisible () const [inline]
+
+
+

Returns the maximum number of call tips that are displayed.

+
See also:
setCallTipsVisible()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::caseSensitive () const
+
+
+

Returns true if the current language lexer is case sensitive. If there is no current lexer then true is returned.

+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::clearFolds ()
+
+
+

Clear all current folds, i.e. ensure that all lines are displayed unfolded.

+
See also:
setFolding()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::clearIndicatorRange (int lineFrom,
int indexFrom,
int lineTo,
int indexTo,
int indicatorNumber 
)
+
+
+

Clears the range of text with indicator indicatorNumber starting at position indexFrom in line lineFrom and finishing at position indexTo in line lineTo.

+
See also:
fillIndicatorRange()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::clearRegisteredImages ()
+
+
+

Clear all registered images.

+
See also:
registerImage()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciScintilla::color () const
+
+
+

Returns the widget's text (ie. foreground) colour.

+
See also:
setColor()
+ +
+
+ +
+
+ + + + + + + +
QValueList<int> QsciScintilla::contractedFolds () const
+
+
+

Returns a list of the line numbers that have contracted folds. This is typically used to save the fold state of a document.

+
See also:
setContractedFolds()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::convertEols (EolMode mode)
+
+
+

All the lines of the text have their end-of-lines converted to mode mode.

+
See also:
eolMode(), setEolMode()
+ +
+
+ +
+
+ + + + + + + +
QsciDocument QsciScintilla::document () const [inline]
+
+
+

Returns the attached document.

+
See also:
setDocument()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::endUndoAction ()
+
+
+

Mark the end of a sequence of actions that can be undone by a single call to undo().

+
See also:
beginUndoAction(), undo()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciScintilla::edgeColor () const
+
+
+

Returns the color of the marker used to show that a line has exceeded the length set by setEdgeColumn().

+
See also:
setEdgeColor(),
+
+setEdgeColumn
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::edgeColumn () const
+
+
+

Returns the number of the column after which lines are considered to be long.

+
See also:
setEdgeColumn()
+ +
+
+ +
+
+ + + + + + + +
EdgeMode QsciScintilla::edgeMode () const
+
+
+

Returns the edge mode which determines how long lines are marked.

+
See also:
setEdgeMode()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setFont (const QFont & f)
+
+
+

Set the default font. This has no effect if a language lexer has been set.

+ +
+
+ +
+
+ + + + + + + +
EolMode QsciScintilla::eolMode () const
+
+
+

Returns the end-of-line mode.

+
See also:
setEolMode()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::eolVisibility () const
+
+
+

Returns the visibility of end-of-lines.

+
See also:
setEolVisibility()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::extraAscent () const
+
+
+

Returns the extra space added to the height of a line above the baseline of the text.

+
See also:
setExtraAscent(), extraDescent()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::extraDescent () const
+
+
+

Returns the extra space added to the height of a line below the baseline of the text.

+
See also:
setExtraDescent(), extraAscent()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::fillIndicatorRange (int lineFrom,
int indexFrom,
int lineTo,
int indexTo,
int indicatorNumber 
)
+
+
+

Fills the range of text with indicator indicatorNumber starting at position indexFrom in line lineFrom and finishing at position indexTo in line lineTo.

+
See also:
clearIndicatorRange()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual bool QsciScintilla::findFirst (const QString & expr,
bool re,
bool cs,
bool wo,
bool wrap,
bool forward = true,
int line = -1,
int index = -1,
bool show = true,
bool posix = false 
) [virtual]
+
+
+

Find the first occurrence of the string expr and return true if expr was found, otherwise returns false. If expr is found it becomes the current selection.

+

If re is true then expr is interpreted as a regular expression rather than a simple string.

+

If cs is true then the search is case sensitive.

+

If wo is true then the search looks for whole word matches only, otherwise it searches for any matching text.

+

If wrap is true then the search wraps around the end of the text.

+

If forward is true (the default) then the search is forward from the starting position to the end of the text, otherwise it is backwards to the beginning of the text.

+

If either line or index are negative (the default) then the search begins from the current cursor position. Otherwise the search begins at position index of line line.

+

If show is true (the default) then any text found is made visible (ie. it is unfolded).

+

If posix is true then a regular expression is treated in a more POSIX compatible manner by interpreting bare ( and ) as tagged sections rather than \( and \).

+
See also:
findFirstInSelection(), findNext(), replace()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual bool QsciScintilla::findFirstInSelection (const QString & expr,
bool re,
bool cs,
bool wo,
bool forward = true,
bool show = true,
bool posix = false 
) [virtual]
+
+
+

Find the first occurrence of the string expr in the current selection and return true if expr was found, otherwise returns false. If expr is found it becomes the current selection. The original selection is restored when a subsequent call to findNext() returns false.

+

If re is true then expr is interpreted as a regular expression rather than a simple string.

+

If cs is true then the search is case sensitive.

+

If wo is true then the search looks for whole word matches only, otherwise it searches for any matching text.

+

If forward is true (the default) then the search is forward from the start to the end of the selection, otherwise it is backwards from the end to the start of the selection.

+

If show is true (the default) then any text found is made visible (ie. it is unfolded).

+

If posix is true then a regular expression is treated in a more POSIX compatible manner by interpreting bare ( and ) as tagged sections rather than \( and \).

+
See also:
findFirstInSelection(), findNext(), replace()
+ +
+
+ +
+
+ + + + + + + +
virtual bool QsciScintilla::findNext () [virtual]
+
+
+

Find the next occurence of the string found using findFirst() or findFirstInSelection().

+
See also:
findFirst(), findFirstInSelection(), replace()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::firstVisibleLine () const
+
+
+

Returns the number of the first visible line.

+
See also:
setFirstVisibleLine()
+ +
+
+ +
+
+ + + + + + + +
FoldStyle QsciScintilla::folding () const [inline]
+
+
+

Returns the current folding style.

+
See also:
setFolding()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::getCursorPosition (int * line,
int * index 
) const
+
+
+

Sets *line and *index to the line and index of the cursor.

+
See also:
setCursorPosition()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::getSelection (int * lineFrom,
int * indexFrom,
int * lineTo,
int * indexTo 
) const
+
+
+

If there is a selection, *lineFrom is set to the line number in which the selection begins and *lineTo is set to the line number in which the selection ends. (They could be the same.) *indexFrom is set to the index at which the selection begins within *lineFrom, and *indexTo is set to the index at which the selection ends within *lineTo. If there is no selection, *lineFrom, *indexFrom, *lineTo and *indexTo are all set to -1.

+
See also:
setSelection()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::hasSelectedText () const [inline]
+
+
+

Returns true if some text is selected.

+
See also:
selectedText()
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::indentation (int line) const
+
+
+

Returns the number of characters that line line is indented by.

+
See also:
setIndentation()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::indentationGuides () const
+
+
+

Returns true if the display of indentation guides is enabled.

+
See also:
setIndentationGuides()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::indentationsUseTabs () const
+
+
+

Returns true if indentations are created using tabs and spaces, rather than just spaces. The default is true.

+
See also:
setIndentationsUseTabs()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::indentationWidth () const
+
+
+

Returns the indentation width in characters. The default is 0 which means that the value returned by tabWidth() is actually used.

+
See also:
setIndentationWidth(), tabWidth()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::indicatorDefine (IndicatorStyle style,
int indicatorNumber = -1 
)
+
+
+

Define a type of indicator using the style style with the indicator number indicatorNumber. If indicatorNumber is -1 then the indicator number is automatically allocated. The indicator number is returned or -1 if too many types of indicator have been defined.

+

Indicators are used to display additional information over the top of styling. They can be used to show, for example, syntax errors, deprecated names and bad indentation by drawing lines under text or boxes around text.

+

There may be up to 32 types of indicator defined at a time. The first 8 are normally used by lexers. By default indicator number 0 is a dark green SquiggleIndicator, 1 is a blue TTIndicator, and 2 is a red PlainIndicator.

+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::indicatorDrawUnder (int indicatorNumber) const
+
+
+

Returns true if the indicator indicatorNumber is drawn under the text (i.e. in the background). The default is false.

+
See also:
setIndicatorDrawUnder()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isListActive () const
+
+
+

Returns true if an auto-completion or user defined list is currently active.

+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isModified () const
+
+
+

Returns true if the text has been modified.

+
See also:
setModified(), modificationChanged()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isReadOnly () const
+
+
+

Returns true if the text edit is read-only.

+
See also:
setReadOnly()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isRedoAvailable () const
+
+
+

Returns true if there is something that can be redone.

+
See also:
redo()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isUndoAvailable () const
+
+
+

Returns true if there is something that can be undone.

+
See also:
undo()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isUtf8 () const
+
+
+

Returns true if text is interpreted as being UTF8 encoded. The default is to interpret the text as Latin1 encoded.

+
See also:
setUtf8()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::isWordCharacter (char ch) const
+
+
+

Returns true if character ch is a valid word character.

+
See also:
wordCharacters()
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::lineAt (const QPoint & point) const
+
+
+

Returns the line which is at point pixel coordinates or -1 if there is no line at that point.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::lineIndexFromPosition (int position,
int * line,
int * index 
) const
+
+
+

QScintilla uses the combination of a line number and a character index from the start of that line to specify the position of a character within the text. The underlying Scintilla instead uses a byte index from the start of the text. This will convert the position byte index to the *line line number and *index character index.

+
See also:
positionFromLineIndex()
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::lineLength (int line) const
+
+
+

Returns the length of line line int bytes or -1 if there is no such line. In order to get the length in characters use text(line).length().

+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::length () const
+
+
+

Returns the length of the text edit's text in bytes. In order to get the length in characters use text().length().

+ +
+
+ +
+
+ + + + + + + +
QsciLexer* QsciScintilla::lexer () const
+
+
+

Returns the current language lexer used to style text. If it is 0 then syntax styling is disabled.

+
See also:
setLexer()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::marginLineNumbers (int margin) const
+
+
+

Returns true if line numbers are enabled for margin margin.

+
See also:
setMarginLineNumbers(), marginType(), SCI_GETMARGINTYPEN
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::marginMarkerMask (int margin) const
+
+
+

Returns the marker mask of margin margin.

+
See also:
setMarginMask(), QsciMarker, SCI_GETMARGINMASKN
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::marginOptions () const
+
+
+

Returns the margin options. The default is MoNone.

+
See also:
setMarginOptions(), MoNone, MoSublineSelect.
+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::marginSensitivity (int margin) const
+
+
+

Returns true if margin margin is sensitive to mouse clicks.

+
See also:
setMarginSensitivity(), marginClicked(), SCI_GETMARGINTYPEN
+ +
+
+ +
+
+ + + + + + + + +
MarginType QsciScintilla::marginType (int margin) const
+
+
+

Returns the type of margin margin.

+
See also:
setMarginType(), SCI_GETMARGINTYPEN
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::marginWidth (int margin) const
+
+
+

Returns the width in pixels of margin margin.

+
See also:
setMarginWidth(), SCI_GETMARGINWIDTHN
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerDefine (MarkerSymbol sym,
int markerNumber = -1 
)
+
+
+

Define a type of marker using the symbol sym with the marker number markerNumber. If markerNumber is -1 then the marker number is automatically allocated. The marker number is returned or -1 if too many types of marker have been defined.

+

Markers are small geometric symbols and characters used, for example, to indicate the current line or, in debuggers, to indicate breakpoints. If a margin has a width of 0 then its markers are not drawn, but their background colours affect the background colour of the corresponding line of text.

+

There may be up to 32 types of marker defined at a time and each line of text has a set of marker instances associated with it. Markers are drawn according to their numerical identifier. Markers try to move with their text by tracking where the start of their line moves to. For example, when a line is deleted its markers are added to previous line's markers.

+

Each marker type is identified by a marker number. Each instance of a marker is identified by a marker handle.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerDefine (char ch,
int markerNumber = -1 
)
+
+
+

Define a marker using the character ch with the marker number markerNumber. If markerNumber is -1 then the marker number is automatically allocated. The marker number is returned or -1 if too many markers have been defined.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerDefine (const QPixmap & pm,
int markerNumber = -1 
)
+
+
+

Define a marker using a copy of the pixmap pm with the marker number markerNumber. If markerNumber is -1 then the marker number is automatically allocated. The marker number is returned or -1 if too many markers have been defined.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerDefine (const QImage & im,
int markerNumber = -1 
)
+
+
+

Define a marker using a copy of the image im with the marker number markerNumber. If markerNumber is -1 then the marker number is automatically allocated. The marker number is returned or -1 if too many markers have been defined.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerAdd (int linenr,
int markerNumber 
)
+
+
+

Add an instance of marker number markerNumber to line number linenr. A handle for the marker is returned which can be used to track the marker's position, or -1 if the markerNumber was invalid.

+
See also:
markerDelete(), markerDeleteAll(), markerDeleteHandle()
+ +
+
+ +
+
+ + + + + + + + +
unsigned QsciScintilla::markersAtLine (int linenr) const
+
+
+

Returns the 32 bit mask of marker numbers at line number linenr.

+
See also:
markerAdd()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::markerDelete (int linenr,
int markerNumber = -1 
)
+
+
+

Delete all markers with the marker number markerNumber in the line linenr. If markerNumber is -1 then delete all markers from line linenr.

+
See also:
markerAdd(), markerDeleteAll(), markerDeleteHandle()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::markerDeleteAll (int markerNumber = -1)
+
+
+

Delete the all markers with the marker number markerNumber. If markerNumber is -1 then delete all markers.

+
See also:
markerAdd(), markerDelete(), markerDeleteHandle()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::markerDeleteHandle (int mhandle)
+
+
+

Delete the the marker instance with the marker handle mhandle.

+
See also:
markerAdd(), markerDelete(), markerDeleteAll()
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::markerLine (int mhandle) const
+
+
+

Return the line number that contains the marker instance with the marker handle mhandle.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerFindNext (int linenr,
unsigned mask 
) const
+
+
+

Return the number of the next line to contain at least one marker from a 32 bit mask of markers. linenr is the line number to start the search from. mask is the mask of markers to search for.

+
See also:
markerFindPrevious()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerFindPrevious (int linenr,
unsigned mask 
) const
+
+
+

Return the number of the previous line to contain at least one marker from a 32 bit mask of markers. linenr is the line number to start the search from. mask is the mask of markers to search for.

+
See also:
markerFindNext()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::overwriteMode () const
+
+
+

Returns true if text entered by the user will overwrite existing text.

+
See also:
setOverwriteMode()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciScintilla::paper () const
+
+
+

Returns the widget's paper (ie. background) colour.

+
See also:
setPaper()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::positionFromLineIndex (int line,
int index 
) const
+
+
+

QScintilla uses the combination of a line number and a character index from the start of that line to specify the position of a character within the text. The underlying Scintilla instead uses a byte index from the start of the text. This will return the byte index corresponding to the line line number and index character index.

+
See also:
lineIndexFromPosition()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::read (QIODevice * io)
+
+
+

Reads the current document from the io device and returns true if there was no error.

+
See also:
write()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::recolor (int start = 0,
int end = -1 
) [virtual]
+
+
+

Recolours the document between the start and end positions. start defaults to the start of the document and end defaults to the end of the document.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::registerImage (int id,
const QPixmap & pm 
)
+
+
+

Register an image pm with ID id. Registered images can be displayed in auto-completion lists.

+
See also:
clearRegisteredImages(), QsciLexer::apiLoad()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::registerImage (int id,
const QImage & im 
)
+
+
+

Register an image im with ID id. Registered images can be displayed in auto-completion lists.

+
See also:
clearRegisteredImages(), QsciLexer::apiLoad()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::replace (const QString & replaceStr) [virtual]
+
+
+

Replace the current selection, set by a previous call to findFirst(), findFirstInSelection() or findNext(), with replaceStr.

+
See also:
findFirst(), findFirstInSelection(), findNext()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::resetFoldMarginColors ()
+
+
+

Reset the fold margin colours to their defaults.

+
See also:
setFoldMarginColors()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::resetHotspotBackgroundColor ()
+
+
+

Resets the background colour of an active hotspot area to the default.

+
See also:
setHotspotBackgroundColor(), resetHotspotForegroundColor()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::resetHotspotForegroundColor ()
+
+
+

Resets the foreground colour of an active hotspot area to the default.

+
See also:
setHotspotForegroundColor(), resetHotspotBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setFoldMarginColors (const QColor & fore,
const QColor & back 
)
+
+
+

The fold margin may be drawn as a one pixel sized checkerboard pattern of two colours, fore and back.

+
See also:
resetFoldMarginColors()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setAnnotationDisplay (AnnotationDisplay display)
+
+
+

Set the display style for annotations. The default is AnnotationStandard.

+
See also:
annotationDisplay()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setAutoCompletionFillupsEnabled (bool enabled)
+
+
+

Enable the use of fill-up characters, either those explicitly set or those set by a lexer. By default, fill-up characters are disabled.

+
See also:
autoCompletionFillupsEnabled(), setAutoCompletionFillups()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setAutoCompletionFillups (const char * fillups)
+
+
+

A fill-up character is one that, when entered while an auto-completion list is being displayed, causes the currently selected item from the list to be added to the text followed by the fill-up character. fillups is the set of fill-up characters. If a language lexer has been set then this is ignored and the lexer defines the fill-up characters. The default is that no fill-up characters are set.

+
See also:
autoCompletionFillupsEnabled(), setAutoCompletionFillupsEnabled()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setAutoCompletionWordSeparators (const QStringList & separators)
+
+
+

A word separator is a sequence of characters that, when entered, causes the auto-completion list to be displayed. If a language lexer has been set then this is ignored and the lexer defines the word separators. The default is that no word separators are set.

+
See also:
setAutoCompletionThreshold()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsBackgroundColor (const QColor & col)
+
+
+

Set the background colour of call tips to col. The default is white.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsForegroundColor (const QColor & col)
+
+
+

Set the foreground colour of call tips to col. The default is mid-gray.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsHighlightColor (const QColor & col)
+
+
+

Set the highlighted colour of call tip text to col. The default is dark blue.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsPosition (CallTipsPosition position)
+
+
+

Set the current call tip position. The default is CallTipsBelowText.

+
See also:
callTipsPosition()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsStyle (CallTipsStyle style)
+
+
+

Set the current call tip style. The default is CallTipsNoContext.

+
See also:
callTipsStyle()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsVisible (int nr)
+
+
+

Set the maximum number of call tips that are displayed to nr. If the maximum number is 0 then all applicable call tips are displayed. If the maximum number is -1 then one call tip will be displayed with up and down arrows that allow the use to scroll through the full list. The default is -1.

+
See also:
callTipsVisible()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setContractedFolds (const QValueList< int > & folds)
+
+
+

Sets each line in the folds list of line numbers to be a contracted fold. This is typically used to restore the fold state of a document.

+
See also:
contractedFolds()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setDocument (const QsciDocumentdocument)
+
+
+

Attach the document document, replacing the currently attached document.

+
See also:
document()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setEdgeColor (const QColor & col)
+
+
+

Set the color of the marker used to show that a line has exceeded the length set by setEdgeColumn().

+
See also:
edgeColor(),
+
+setEdgeColumn
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setEdgeColumn (int colnr)
+
+
+

Set the number of the column after which lines are considered to be long.

+
See also:
edgeColumn()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setEdgeMode (EdgeMode mode)
+
+
+

Set the edge mode which determines how long lines are marked.

+
See also:
edgeMode()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setFirstVisibleLine (int linenr)
+
+
+

Set the number of the first visible line to linenr.

+
See also:
firstVisibleLine()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setIndicatorDrawUnder (bool under,
int indicatorNumber = -1 
)
+
+
+

Enables or disables, according to under, if the indicator indicatorNumber is drawn under or over the text (i.e. in the background or foreground). If indicatorNumber is -1 then the state of all indicators is set.

+
See also:
indicatorDrawUnder()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setIndicatorForegroundColor (const QColor & col,
int indicatorNumber = -1 
)
+
+
+

Set the foreground colour of indicator indicatorNumber to col. If indicatorNumber is -1 then the colour of all indicators is set.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setIndicatorOutlineColor (const QColor & col,
int indicatorNumber = -1 
)
+
+
+

Set the outline colour of indicator indicatorNumber to col. If indicatorNumber is -1 then the colour of all indicators is set. At the moment only the alpha value of the colour has any affect.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setMarginOptions (int options)
+
+
+

Set the margin options to options.

+
See also:
marginOptions(), MoNone, MoSublineSelect.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarginText (int line,
const QString & text,
int style 
)
+
+
+

Set the margin text of line line with the text text using the style number style.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarginText (int line,
const QString & text,
const QsciStylestyle 
)
+
+
+

Set the margin text of line line with the text text using the style style.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarginText (int line,
const QValueList< QsciStyledText > & text 
)
+
+
+

Set the margin text of line line with the list of styled text text.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarginType (int margin,
MarginType type 
)
+
+
+

Set the type of margin margin to type type.

+
See also:
marginType(), SCI_SETMARGINTYPEN
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::clearMarginText (int line = -1)
+
+
+

The margin text on line line is removed. If line is negative then all margin text is removed.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarkerBackgroundColor (const QColor & col,
int markerNumber = -1 
)
+
+
+

Set the background colour, including the alpha component, of marker markerNumber to col. If markerNumber is -1 then the colour of all markers is set. The default is white.

+
See also:
setMarkerForegroundColor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarkerForegroundColor (const QColor & col,
int markerNumber = -1 
)
+
+
+

Set the foreground colour of marker markerNumber to col. If markerNumber is -1 then the colour of all markers is set. The default is black.

+
See also:
setMarkerBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setMatchedBraceBackgroundColor (const QColor & col)
+
+
+

Set the background colour used to display matched braces to col. It is ignored if an indicator is being used. The default is white.

+
See also:
setMatchedBraceForegroundColor(), setMatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setMatchedBraceForegroundColor (const QColor & col)
+
+
+

Set the foreground colour used to display matched braces to col. It is ignored if an indicator is being used. The default is red.

+
See also:
setMatchedBraceBackgroundColor(), setMatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setMatchedBraceIndicator (int indicatorNumber)
+
+
+

Set the indicator used to display matched braces to indicatorNumber. The default is not to use an indicator.

+
See also:
resetMatchedBraceIndicator(), setMatchedBraceBackgroundColor()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::resetMatchedBraceIndicator ()
+
+
+

Stop using an indicator to display matched braces.

+
See also:
setMatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setUnmatchedBraceBackgroundColor (const QColor & col)
+
+
+

Set the background colour used to display unmatched braces to col. It is ignored if an indicator is being used. The default is white.

+
See also:
setUnmatchedBraceForegroundColor(), setUnmatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setUnmatchedBraceForegroundColor (const QColor & col)
+
+
+

Set the foreground colour used to display unmatched braces to col. It is ignored if an indicator is being used. The default is blue.

+
See also:
setUnmatchedBraceBackgroundColor(), setUnmatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setUnmatchedBraceIndicator (int indicatorNumber)
+
+
+

Set the indicator used to display unmatched braces to indicatorNumber. The default is not to use an indicator.

+
See also:
resetUnmatchedBraceIndicator(), setUnmatchedBraceBackgroundColor()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::resetUnmatchedBraceIndicator ()
+
+
+

Stop using an indicator to display unmatched braces.

+
See also:
setUnmatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::setWrapVisualFlags (WrapVisualFlag endFlag,
WrapVisualFlag startFlag = WrapFlagNone,
int indent = 0 
)
+
+
+

Set the visual flags displayed when a line is wrapped. endFlag determines if and where the flag at the end of a line is displayed. startFlag determines if and where the flag at the start of a line is displayed. indent is the number of characters a wrapped line is indented by. By default no visual flags are displayed.

+ +
+
+ +
+
+ + + + + + + +
QString QsciScintilla::selectedText () const
+
+
+

Returns the selected text or an empty string if there is no currently selected text.

+
See also:
hasSelectedText()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::selectionToEol () const
+
+
+

Returns whether or not the selection is drawn up to the right hand border.

+
See also:
setSelectionToEol()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setHotspotBackgroundColor (const QColor & col)
+
+
+

Sets the background colour of an active hotspot area to col.

+
See also:
resetHotspotBackgroundColor(), setHotspotForegroundColor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setHotspotForegroundColor (const QColor & col)
+
+
+

Sets the foreground colour of an active hotspot area to col.

+
See also:
resetHotspotForegroundColor(), setHotspotBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setHotspotUnderline (bool enable)
+
+
+

Enables or disables, according to enable, the underlining of an active hotspot area. The default is false.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setHotspotWrap (bool enable)
+
+
+

Enables or disables, according to enable, the wrapping of a hotspot area to following lines. The default is true.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setSelectionToEol (bool filled)
+
+
+

Sets whether or not the selection is drawn up to the right hand border. filled is set if the selection is drawn to the border.

+
See also:
selectionToEol()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setExtraAscent (int extra)
+
+
+

Sets the extra space added to the height of a line above the baseline of the text to extra.

+
See also:
extraAscent(), setExtraDescent()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setExtraDescent (int extra)
+
+
+

Sets the extra space added to the height of a line below the baseline of the text to extra.

+
See also:
extraDescent(), setExtraAscent()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setOverwriteMode (bool overwrite)
+
+
+

Text entered by the user will overwrite existing text if overwrite is true.

+
See also:
overwriteMode()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setWhitespaceBackgroundColor (const QColor & col)
+
+
+

Sets the background colour of visible whitespace to col. If col is an invalid color (the default) then the color specified by the current lexer is used.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setWhitespaceForegroundColor (const QColor & col)
+
+
+

Sets the foreground colour of visible whitespace to col. If col is an invalid color (the default) then the color specified by the current lexer is used.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setWhitespaceSize (int size)
+
+
+

Sets the size of the dots used to represent visible whitespace.

+
See also:
whitespaceSize()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setWrapIndentMode (WrapIndentMode mode)
+
+
+

Sets the line wrap indentation mode to mode. The default is WrapIndentFixed.

+
See also:
wrapIndentMode()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::showUserList (int id,
const QStringList & list 
)
+
+
+

Displays a user defined list which can be interacted with like an auto-completion list. id is an identifier for the list which is passed as an argument to the userListActivated() signal and must be at least 1. list is the text with which the list is populated.

+
See also:
cancelList(), isListActive(), userListActivated()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::tabIndents () const
+
+
+

Returns true if the tab key indents a line instead of inserting a tab character. The default is true.

+
See also:
setTabIndents(), backspaceUnindents(), setBackspaceUnindents()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::tabWidth () const
+
+
+

Returns the tab width in characters. The default is 8.

+
See also:
setTabWidth()
+ +
+
+ +
+
+ + + + + + + +
QString QsciScintilla::text () const
+
+
+

Returns the text of the current document.

+
See also:
setText()
+ +
+
+ +
+
+ + + + + + + + +
QString QsciScintilla::text (int line) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns the text of line line.

+
See also:
setText()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::whitespaceSize () const
+
+
+

Returns the size of the dots used to represent visible whitespace.

+
See also:
setWhitespaceSize()
+ +
+
+ +
+
+ + + + + + + +
WhitespaceVisibility QsciScintilla::whitespaceVisibility () const
+
+
+

Returns the visibility of whitespace.

+
See also:
setWhitespaceVisibility()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
QString QsciScintilla::wordAtLineIndex (int line,
int index 
) const
+
+
+

Returns the word at the line line number and index character index.

+ +
+
+ +
+
+ + + + + + + +
const char* QsciScintilla::wordCharacters () const
+
+
+

Returns the set of valid word character as defined by the current language lexer. If there is no current lexer then the set contains an an underscore, numbers and all upper and lower case alphabetic characters.

+
See also:
isWordCharacter()
+ +
+
+ +
+
+ + + + + + + +
WrapMode QsciScintilla::wrapMode () const
+
+
+

Returns the line wrap mode.

+
See also:
setWrapMode()
+ +
+
+ +
+
+ + + + + + + +
WrapIndentMode QsciScintilla::wrapIndentMode () const
+
+
+

Returns the line wrap indentation mode.

+
See also:
setWrapIndentMode()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::write (QIODevice * io) const
+
+
+

Writes the current document to the io device and returns true if there was no error.

+
See also:
read()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::append (const QString & text) [virtual, slot]
+
+
+

Appends the text text to the end of the text edit. Note that the undo/redo history is cleared by this function.

+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::autoCompleteFromAll () [virtual, slot]
+
+
+

Display an auto-completion list based on any installed APIs, the current contents of the document and the characters immediately to the left of the cursor.

+
See also:
autoCompleteFromAPIs(), autoCompleteFromDocument()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::autoCompleteFromAPIs () [virtual, slot]
+
+
+

Display an auto-completion list based on any installed APIs and the characters immediately to the left of the cursor.

+
See also:
autoCompleteFromAll(), autoCompleteFromDocument(), setAutoCompletionAPIs()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::autoCompleteFromDocument () [virtual, slot]
+
+
+

Display an auto-completion list based on the current contents of the document and the characters immediately to the left of the cursor.

+
See also:
autoCompleteFromAll(), autoCompleteFromAPIs()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::callTip () [virtual, slot]
+
+
+

Display a call tip based on the the characters immediately to the left of the cursor.

+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::copy () [virtual, slot]
+
+
+

Copies any selected text to the clipboard.

+
See also:
copyAvailable(), cut(), paste()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::cut () [virtual, slot]
+
+
+

Copies any selected text to the clipboard and then deletes the text.

+
See also:
copy(), paste()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::foldAll (bool children = false) [virtual, slot]
+
+
+

If any lines are currently folded then they are all unfolded. Otherwise all lines are folded. This has the same effect as clicking in the fold margin with the shift and control keys pressed. If children is not set (the default) then only the top level fold points are affected, otherwise the state of all fold points are changed.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::foldLine (int line) [virtual, slot]
+
+
+

If the line line is folded then it is unfolded. Otherwise it is folded. This has the same effect as clicking in the fold margin.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::indent (int line) [virtual, slot]
+
+
+

Increases the indentation of line line by an indentation width.

+
See also:
unindent()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::insertAt (const QString & text,
int line,
int index 
) [virtual, slot]
+
+
+

Insert the text text in the line line at the position index.

+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::moveToMatchingBrace () [virtual, slot]
+
+
+

If the cursor is either side of a brace character then move it to the position of the corresponding brace.

+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::paste () [virtual, slot]
+
+
+

Pastes any text from the clipboard into the text edit at the current cursor position.

+
See also:
copy(), cut()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::redo () [virtual, slot]
+
+
+

Redo the last change or sequence of changes.

+
See also:
isRedoAvailable()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::removeSelectedText () [virtual, slot]
+
+
+

Removes any selected text.

+
See also:
replaceSelectedText()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::replaceSelectedText (const QString & text) [virtual, slot]
+
+
+

Replaces any selected text with text.

+
See also:
removeSelectedText()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::resetSelectionBackgroundColor () [virtual, slot]
+
+
+

Resets the background colour of selected text to the default.

+
See also:
setSelectionBackgroundColor(), resetSelectionForegroundColor()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::resetSelectionForegroundColor () [virtual, slot]
+
+
+

Resets the foreground colour of selected text to the default.

+
See also:
setSelectionForegroundColor(), resetSelectionBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::selectAll (bool select = true) [virtual, slot]
+
+
+

If select is true (the default) then all the text is selected. If select is false then any currently selected text is deselected.

+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::selectToMatchingBrace () [virtual, slot]
+
+
+

If the cursor is either side of a brace character then move it to the position of the corresponding brace and select the text between the braces.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionCaseSensitivity (bool cs) [virtual, slot]
+
+
+

If cs is true then auto-completion lists are case sensitive. The default is true. Note that setting a lexer may change the case sensitivity.

+
See also:
autoCompletionCaseSensitivity()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionReplaceWord (bool replace) [virtual, slot]
+
+
+

If replace is true then when an item from an auto-completion list is selected, the rest of the word to the right of the current cursor is removed. The default is false.

+
See also:
autoCompletionReplaceWord()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionShowSingle (bool single) [virtual, slot]
+
+
+

If single is true then when there is only a single entry in an auto-completion list it is automatically used and the list is not displayed. This only has an effect when auto-completion is explicitly requested (using autoCompleteFromAPIs() and autoCompleteFromDocument()) and has no effect when auto-completion is triggered as the user types. The default is false. Note that this is deprecated and setAutoCompletionUseSingle() should be used instead.

+
See also:
autoCompletionShowSingle()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionSource (AutoCompletionSource source) [virtual, slot]
+
+
+

Sets the source for the auto-completion list when it is being displayed automatically as the user types to source. The default is AcsNone, ie. it is disabled.

+
See also:
autoCompletionSource()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionThreshold (int thresh) [virtual, slot]
+
+
+

Sets the threshold for the automatic display of the auto-completion list as the user types to thresh. The threshold is the number of characters that the user must type before the list is displayed. If the threshold is less than or equal to 0 then the list is disabled. The default is -1.

+
See also:
autoCompletionThreshold(), setAutoCompletionWordSeparators()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionUseSingle (AutoCompletionUseSingle single) [virtual, slot]
+
+
+

Sets the behavior of the auto-completion list when it has a single entry. The default is AcusNever.

+
See also:
autoCompletionUseSingle()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoIndent (bool autoindent) [virtual, slot]
+
+
+

If autoindent is true then auto-indentation is enabled. The default is false.

+
See also:
autoIndent()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setBraceMatching (BraceMatch bm) [virtual, slot]
+
+
+

Sets the brace matching mode to bm. The default is NoBraceMatching.

+
See also:
braceMatching()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setBackspaceUnindents (bool unindent) [virtual, slot]
+
+
+

If deindent is true then the backspace key will unindent a line rather then delete a character.

+
See also:
backspaceUnindents(), tabIndents(), setTabIndents()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setCaretLineBackgroundColor (const QColor & col) [virtual, slot]
+
+
+

Sets the background colour, including the alpha component, of the line containing the caret to col.

+
See also:
setCaretLineVisible()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setCaretLineVisible (bool enable) [virtual, slot]
+
+
+

Enables or disables, according to enable, the background color of the line containing the caret.

+
See also:
setCaretLineBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setCaretWidth (int width) [virtual, slot]
+
+
+

Sets the width of the caret to width pixels. A width of 0 makes the caret invisible.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setColor (const QColor & c) [virtual, slot]
+
+
+

The widget's text (ie. foreground) colour is set to c. This has no effect if a language lexer has been set.

+
See also:
color()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setCursorPosition (int line,
int index 
) [virtual, slot]
+
+
+

Sets the cursor to the line line at the position index.

+
See also:
getCursorPosition()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setEolMode (EolMode mode) [virtual, slot]
+
+
+

Sets the end-of-line mode to mode. The default is the platform's natural mode.

+
See also:
eolMode()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setEolVisibility (bool visible) [virtual, slot]
+
+
+

If visible is true then end-of-lines are made visible. The default is that they are invisible.

+
See also:
eolVisibility()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setFolding (FoldStyle fold,
int margin = 2 
) [virtual, slot]
+
+
+

Sets the folding style for margin margin to fold. The default style is NoFoldStyle (ie. folding is disabled) and the default margin is 2.

+
See also:
folding()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setIndentation (int line,
int indentation 
) [virtual, slot]
+
+
+

Sets the indentation of line line to indentation characters.

+
See also:
indentation()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setIndentationGuides (bool enable) [virtual, slot]
+
+
+

Enables or disables, according to enable, this display of indentation guides.

+
See also:
indentationGuides()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setIndentationGuidesBackgroundColor (const QColor & col) [virtual, slot]
+
+
+

Set the background colour of indentation guides to col.

+
See also:
setIndentationGuidesForegroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setIndentationGuidesForegroundColor (const QColor & col) [virtual, slot]
+
+
+

Set the foreground colour of indentation guides to col.

+
See also:
setIndentationGuidesBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setIndentationsUseTabs (bool tabs) [virtual, slot]
+
+
+

If tabs is true then indentations are created using tabs and spaces, rather than just spaces.

+
See also:
indentationsUseTabs()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setIndentationWidth (int width) [virtual, slot]
+
+
+

Sets the indentation width to width characters. If width is 0 then the value returned by tabWidth() is used.

+
See also:
indentationWidth(), tabWidth()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setLexer (QsciLexerlexer = 0) [virtual, slot]
+
+
+

Sets the specific language lexer used to style text to lex. If lex is 0 then syntax styling is disabled.

+
See also:
lexer()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setMarginsBackgroundColor (const QColor & col) [virtual, slot]
+
+
+

Set the background colour of all margins to col. The default is a gray.

+
See also:
setMarginsForegroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setMarginsForegroundColor (const QColor & col) [virtual, slot]
+
+
+

Set the foreground colour of all margins to col. The default is black.

+
See also:
setMarginsBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setMarginLineNumbers (int margin,
bool lnrs 
) [virtual, slot]
+
+
+

Enables or disables, according to lnrs, the display of line numbers in margin margin.

+
See also:
marginLineNumbers(), setMarginType(), SCI_SETMARGINTYPEN
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setMarginMarkerMask (int margin,
int mask 
) [virtual, slot]
+
+
+

Sets the marker mask of margin margin to mask. Only those markers whose bit is set in the mask are displayed in the margin.

+
See also:
marginMarkerMask(), QsciMarker, SCI_SETMARGINMASKN
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setMarginSensitivity (int margin,
bool sens 
) [virtual, slot]
+
+
+

Enables or disables, according to sens, the sensitivity of margin margin to mouse clicks. If the user clicks in a sensitive margin the marginClicked() signal is emitted.

+
See also:
marginSensitivity(), marginClicked(), SCI_SETMARGINSENSITIVEN
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setMarginWidth (int margin,
int width 
) [virtual, slot]
+
+
+

Sets the width of margin margin to width pixels. If the width of a margin is 0 then it is not displayed.

+
See also:
marginWidth(), SCI_SETMARGINWIDTHN
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setMarginWidth (int margin,
const QString & s 
) [virtual, slot]
+
+
+

Sets the width of margin margin so that it is wide enough to display s in the current margin font.

+
See also:
marginWidth(), SCI_SETMARGINWIDTHN
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setModified (bool m) [virtual, slot]
+
+
+

Sets the modified state of the text edit to m. Note that it is only possible to clear the modified state (where m is false). Attempts to set the modified state (where m is true) are ignored.

+
See also:
isModified(), modificationChanged()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setPaper (const QColor & c) [virtual, slot]
+
+
+

The widget's paper (ie. background) colour is set to c. This has no effect if a language lexer has been set.

+
See also:
paper()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setReadOnly (bool ro) [virtual, slot]
+
+
+

Sets the read-only state of the text edit to ro.

+
See also:
isReadOnly()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setSelection (int lineFrom,
int indexFrom,
int lineTo,
int indexTo 
) [virtual, slot]
+
+
+

Sets the selection which starts at position indexFrom in line lineFrom and ends at position indexTo in line lineTo. The cursor is moved to position indexTo in lineTo.

+
See also:
getSelection()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setSelectionBackgroundColor (const QColor & col) [virtual, slot]
+
+
+

Sets the background colour, including the alpha component, of selected text to col.

+
See also:
resetSelectionBackgroundColor(), setSelectionForegroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setSelectionForegroundColor (const QColor & col) [virtual, slot]
+
+
+

Sets the foreground colour of selected text to col.

+
See also:
resetSelectionForegroundColor(), setSelectionBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setTabIndents (bool indent) [virtual, slot]
+
+
+

If indent is true then the tab key will indent a line rather than insert a tab character.

+
See also:
tabIndents(), backspaceUnindents(), setBackspaceUnindents()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setTabWidth (int width) [virtual, slot]
+
+
+

Sets the tab width to width characters.

+
See also:
tabWidth()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setText (const QString & text) [virtual, slot]
+
+
+

Replaces all of the current text with text. Note that the undo/redo history is cleared by this function.

+
See also:
text()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setUtf8 (bool cp) [virtual, slot]
+
+
+

Sets the current text encoding. If cp is true then UTF8 is used, otherwise Latin1 is used.

+
See also:
isUtf8()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setWhitespaceVisibility (WhitespaceVisibility mode) [virtual, slot]
+
+
+

Sets the visibility of whitespace to mode mode. The default is that whitespace is invisible.

+
See also:
whitespaceVisibility()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setWrapMode (WrapMode mode) [virtual, slot]
+
+
+

Sets the line wrap mode to mode. The default is that lines are not wrapped.

+
See also:
wrapMode()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::undo () [virtual, slot]
+
+
+

Undo the last change or sequence of changes.

+

Scintilla has multiple level undo and redo. It will continue to record undoable actions until memory runs out. Sequences of typing or deleting are compressed into single actions to make it easier to undo and redo at a sensible level of detail. Sequences of actions can be combined into actions that are undone as a unit. These sequences occur between calls to beginUndoAction() and endUndoAction(). These sequences can be nested and only the top level sequences are undone as units.

+
See also:
beginUndoAction(), endUndoAction(), isUndoAvailable()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::unindent (int line) [virtual, slot]
+
+
+

Decreases the indentation of line line by an indentation width.

+
See also:
indent()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::zoomIn (int range) [virtual, slot]
+
+
+

Zooms in on the text by by making the base font size range points larger and recalculating all font sizes.

+
See also:
zoomOut(), zoomTo()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::zoomIn () [virtual, slot]
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Zooms in on the text by by making the base font size one point larger and recalculating all font sizes.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::zoomOut (int range) [virtual, slot]
+
+
+

Zooms out on the text by by making the base font size range points smaller and recalculating all font sizes.

+
See also:
zoomIn(), zoomTo()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::zoomOut () [virtual, slot]
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Zooms out on the text by by making the base font size one point larger and recalculating all font sizes.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::zoomTo (int size) [virtual, slot]
+
+
+

Zooms the text by making the base font size size points and recalculating all font sizes.

+
See also:
zoomIn(), zoomOut()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::cursorPositionChanged (int line,
int index 
) [signal]
+
+
+

This signal is emitted whenever the cursor position changes. line contains the line number and index contains the character index within the line.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::copyAvailable (bool yes) [signal]
+
+
+

This signal is emitted whenever text is selected or de-selected. yes is true if text has been selected and false if text has been deselected. If yes is true then copy() can be used to copy the selection to the clipboard. If yes is false then copy() does nothing.

+
See also:
copy(), selectionChanged()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::indicatorClicked (int line,
int index,
Qt::ButtonState state 
) [signal]
+
+
+

This signal is emitted whenever the user clicks on an indicator. line is the number of the line where the user clicked. index is the character index within the line. state is the state of the modifier keys (ShiftButton, ControlButton and AltButton) when the user clicked.

+
See also:
indicatorReleased()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::indicatorReleased (int line,
int index,
Qt::ButtonState state 
) [signal]
+
+
+

This signal is emitted whenever the user releases the mouse on an indicator. line is the number of the line where the user clicked. index is the character index within the line. state is the state of the modifier keys (ShiftButton, ControlButton and AltButton) when the user released the mouse.

+
See also:
indicatorClicked()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::marginClicked (int margin,
int line,
Qt::ButtonState state 
) [signal]
+
+
+

This signal is emitted whenever the user clicks on a sensitive margin. margin is the margin. line is the number of the line where the user clicked. state is the state of the modifier keys (ShiftButton, ControlButton and AltButton) when the user clicked.

+
See also:
marginSensitivity(), setMarginSensitivity()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::modificationAttempted () [signal]
+
+
+

This signal is emitted whenever the user attempts to modify read-only text.

+
See also:
isReadOnly(), setReadOnly()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::modificationChanged (bool m) [signal]
+
+
+

This signal is emitted whenever the modification state of the text changes. m is true if the text has been modified.

+
See also:
isModified(), setModified()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::selectionChanged () [signal]
+
+
+

This signal is emitted whenever the selection changes.

+
See also:
copyAvailable()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::userListActivated (int id,
const QString & string 
) [signal]
+
+
+

This signal is emitted when an item in a user defined list is activated (selected). id is the list identifier. string is the text of the item.

+
See also:
showUserList()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciScintillaBase-members.html b/doc/html-Qt3/classQsciScintillaBase-members.html new file mode 100644 index 0000000..cfaadcd --- /dev/null +++ b/doc/html-Qt3/classQsciScintillaBase-members.html @@ -0,0 +1,1154 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciScintillaBase Member List
+
+
+This is the complete list of members for QsciScintillaBase, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ANNOTATION_BOXED enum value (defined in QsciScintillaBase)QsciScintillaBase
ANNOTATION_HIDDEN enum value (defined in QsciScintillaBase)QsciScintillaBase
ANNOTATION_STANDARD enum value (defined in QsciScintillaBase)QsciScintillaBase
bytesAsText(const char *bytes) const (defined in QsciScintillaBase)QsciScintillaBase [protected]
CARET_EVEN enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_JUMPS enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_SLOP enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_STRICT enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_BLOCK enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_INVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_LINE enum value (defined in QsciScintillaBase)QsciScintillaBase
commandKey(int qt_key, int &modifiers) (defined in QsciScintillaBase)QsciScintillaBase [static]
contextMenuEvent(QContextMenuEvent *e)QsciScintillaBase [protected, virtual]
dragEnterEvent(QDragEnterEvent *e)QsciScintillaBase [protected, virtual]
dragLeaveEvent(QDragLeaveEvent *e)QsciScintillaBase [protected, virtual]
dragMoveEvent(QDragMoveEvent *e)QsciScintillaBase [protected, virtual]
dropEvent(QDropEvent *e)QsciScintillaBase [protected, virtual]
EDGE_BACKGROUND enum value (defined in QsciScintillaBase)QsciScintillaBase
EDGE_LINE enum value (defined in QsciScintillaBase)QsciScintillaBase
EDGE_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
eventFilter(QObject *o, QEvent *e)QsciScintillaBase [virtual]
focusInEvent(QFocusEvent *e)QsciScintillaBase [protected, virtual]
focusNextPrevChild(bool next)QsciScintillaBase [protected, virtual]
focusOutEvent(QFocusEvent *e)QsciScintillaBase [protected, virtual]
horizontalScrollBar() const QsciScintillaBase
INDIC0_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC1_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC2_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_BOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_COMPOSITIONTHICK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_CONTAINER enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DASH enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DIAGONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DOTBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DOTS enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_HIDDEN enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_MAX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_PLAIN enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_ROUNDBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLELOW enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLEPIXMAP enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_STRAIGHTBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_STRIKE enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_TT enum value (defined in QsciScintillaBase)QsciScintillaBase
INDICS_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
keyPressEvent(QKeyEvent *e)QsciScintillaBase [protected, virtual]
mouseDoubleClickEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mouseMoveEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mousePressEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mouseReleaseEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
paintEvent(QPaintEvent *e)QsciScintillaBase [protected, virtual]
pool()QsciScintillaBase [static]
QsciScintillaBase(QWidget *parent=0, const char *name=0, WFlags f=0)QsciScintillaBase
QSCN_SELCHANGED(bool yes)QsciScintillaBase [signal]
resizeEvent(QResizeEvent *e)QsciScintillaBase [protected, virtual]
SC_ALPHA_NOALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ALPHA_OPAQUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ALPHA_TRANSPARENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_CHANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_CLICK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_SHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_CARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_DOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_PAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_OFF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_ON enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_WHITESPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_LOWER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_MIXED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_UPPER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_8859_15 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_ANSI enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_ARABIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_BALTIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_CHINESEBIG5 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_EASTEUROPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_GB2312 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_GREEK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_HANGUL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_HEBREW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_JOHAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_MAC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_OEM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_RUSSIAN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_SHIFTJIS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_SYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_THAI enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_TURKISH enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_VIETNAMESE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CP_DBCS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CP_UTF8 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORARROW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORNORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORREVERSEARROW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORWAIT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_ANTIALIASED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_LCD_OPTIMIZED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_NON_ANTIALIASED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_CR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_CRLF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_LF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_CONTRACT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_EXPAND enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_TOGGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LEVELNUMBERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEAFTER_CONTRACTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEAFTER_EXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEBEFORE_CONTRACTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEBEFORE_EXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELBASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELHEADERFLAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELNUMBERMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELWHITEFLAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FONT_SIZE_MULTIPLIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_IV_LOOKBOTH enum valueQsciScintillaBase
SC_IV_LOOKFORWARD enum valueQsciScintillaBase
SC_IV_NONE enum valueQsciScintillaBase
SC_IV_REAL enum valueQsciScintillaBase
SC_LASTSTEPINUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARGIN_BACK enum valueQsciScintillaBase
SC_MARGIN_FORE enum valueQsciScintillaBase
SC_MARGIN_NUMBER enum valueQsciScintillaBase
SC_MARGIN_RTEXT enum valueQsciScintillaBase
SC_MARGIN_SYMBOL enum valueQsciScintillaBase
SC_MARGIN_TEXT enum valueQsciScintillaBase
SC_MARGINOPTION_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARGINOPTION_SUBLINESELECT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARK_ARROW enum valueQsciScintillaBase
SC_MARK_ARROWDOWN enum valueQsciScintillaBase
SC_MARK_ARROWS enum valueQsciScintillaBase
SC_MARK_AVAILABLE enum valueQsciScintillaBase
SC_MARK_BACKGROUND enum valueQsciScintillaBase
SC_MARK_BOXMINUS enum valueQsciScintillaBase
SC_MARK_BOXMINUSCONNECTED enum valueQsciScintillaBase
SC_MARK_BOXPLUS enum valueQsciScintillaBase
SC_MARK_BOXPLUSCONNECTED enum valueQsciScintillaBase
SC_MARK_CHARACTER enum valueQsciScintillaBase
SC_MARK_CIRCLE enum valueQsciScintillaBase
SC_MARK_CIRCLEMINUS enum valueQsciScintillaBase
SC_MARK_CIRCLEMINUSCONNECTED enum valueQsciScintillaBase
SC_MARK_CIRCLEPLUS enum valueQsciScintillaBase
SC_MARK_CIRCLEPLUSCONNECTED enum valueQsciScintillaBase
SC_MARK_DOTDOTDOT enum valueQsciScintillaBase
SC_MARK_EMPTY enum valueQsciScintillaBase
SC_MARK_FULLRECT enum valueQsciScintillaBase
SC_MARK_LCORNER enum valueQsciScintillaBase
SC_MARK_LCORNERCURVE enum valueQsciScintillaBase
SC_MARK_LEFTRECT enum valueQsciScintillaBase
SC_MARK_MINUS enum valueQsciScintillaBase
SC_MARK_PIXMAP enum valueQsciScintillaBase
SC_MARK_PLUS enum valueQsciScintillaBase
SC_MARK_RGBAIMAGE enum valueQsciScintillaBase
SC_MARK_ROUNDRECT enum valueQsciScintillaBase
SC_MARK_SHORTARROW enum valueQsciScintillaBase
SC_MARK_SMALLRECT enum valueQsciScintillaBase
SC_MARK_TCORNER enum valueQsciScintillaBase
SC_MARK_TCORNERCURVE enum valueQsciScintillaBase
SC_MARK_UNDERLINE enum valueQsciScintillaBase
SC_MARK_VLINE enum valueQsciScintillaBase
SC_MARKNUM_FOLDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEREND enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERMIDTAIL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEROPEN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEROPENMID enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERSUB enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERTAIL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MASK_FOLDERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_BEFOREDELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_BEFOREINSERT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEANNOTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGELINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEMARGIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEMARKER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGESTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CONTAINER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_DELETETEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_INSERTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_LEXERSTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MODEVENTMASKALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTILINEUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTIPASTE_EACH enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTIPASTE_ONCE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTISTEPUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_CUSTOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_PERFORMSORT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_PRESORTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_REDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_UNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_USER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_BLACKONWHITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_COLOURONWHITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_COLOURONWHITEDEFAULTBG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_INVERTLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_NORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_LINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_RECTANGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_STREAM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_THIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_STARTACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TECHNOLOGY_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TECHNOLOGY_DIRECTWRITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TIME_FOREVER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_BOOLEAN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_INTEGER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_STRING enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_CONTENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_H_SCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_SELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_V_SCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_BOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_NORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_SEMIBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_CHAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_WORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_FIXED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_INDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_SAME enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_END enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_MARGIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_END_BY_TEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_START_BY_TEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCEN_CHANGE()QsciScintillaBase [signal]
SCFIND_MATCHCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_POSIX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_REGEXP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_WHOLEWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_WORDSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDREFDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDSTYLEDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDTEXT enum valueQsciScintillaBase
SCI_ADDUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ALLOCATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ALLOCATEEXTENDEDSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONCLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETLINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_APPENDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ASSIGNCMDKEY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCACTIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCCANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCCOMPLETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETAUTOHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCANCELATSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCHOOSESINGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCURRENTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETDROPRESTOFWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETIGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETMAXHEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETMAXWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETORDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETSEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETTYPESEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCPOSSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSELECT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETAUTOHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCANCELATSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCHOOSESINGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETDROPRESTOFWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETFILLUPS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETIGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETMAXHEIGHT enum valueQsciScintillaBase
SCI_AUTOCSETMAXWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETORDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETSEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETTYPESEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSTOPS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BACKTAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BEGINUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEBADLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEBADLIGHTINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEHIGHLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEHIGHLIGHTINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEMATCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPACTIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPCANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPPOSSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETFOREHLT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETHLT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPUSESTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANUNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHANGELEXERSTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFTRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARPOSITIONFROMPOINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARPOSITIONFROMPOINTCLOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHTRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHOOSECARETX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARALLCMDKEYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARCMDKEY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARDOCUMENTSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARREGISTEREDIMAGES enum valueQsciScintillaBase
SCI_CLEARREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARSELECTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COLOURISE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CONTRACTEDFOLDNEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CONVERTEOLS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPYALLOWLINE enum valueQsciScintillaBase
SCI_COPYRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPYTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COUNTCHARACTERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CREATEDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CREATELOADER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CUT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETEBACKNOTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETERANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELLINELEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELLINERIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDRIGHTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DESCRIBEKEYWORDSETS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DESCRIBEPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCLINEFROMVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTSTARTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EDITTOGGLEOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EMPTYUNDOBUFFER enum valueQsciScintillaBase
SCI_ENDUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ENSUREVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ENSUREVISIBLEENFORCEPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EXPANDCHILDREN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDCOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORFLASH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDCHILDREN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FORMATRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FORMFEED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETSBLINK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETSVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALSELECTIONTYPING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETALLLINESVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETANCHOR enum valueQsciScintillaBase
SCI_GETAUTOMATICFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETBACKSPACEUNINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETBUFFEREDDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEBACKALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEVISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETPERIOD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCHARACTERPOINTER enum valueQsciScintillaBase
SCI_GETCHARAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCODEPAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCONTROLCHARSYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCURLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCURRENTPOS enum valueQsciScintillaBase
SCI_GETCURSOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDIRECTFUNCTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDIRECTPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDOCPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGECOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGECOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGEMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETENDATLASTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETENDSTYLED enum valueQsciScintillaBase
SCI_GETEOLMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEXTRAASCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEXTRADESCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFIRSTVISIBLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDLEVEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDPARENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFONTQUALITY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETGAPPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHIGHLIGHTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTSINGLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETIDENTIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDENTATIONGUIDES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDICATORCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDICATORVALUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETKEYSUNICODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLASTCHILD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLAYOUTCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLENGTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLEXER enum valueQsciScintillaBase
SCI_GETLEXERLANGUAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINECOUNT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEINDENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEINDENTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESELENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESELSTARTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMAINSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINCURSORN enum valueQsciScintillaBase
SCI_GETMARGINLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINMASKN enum valueQsciScintillaBase
SCI_GETMARGINOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINSENSITIVEN enum valueQsciScintillaBase
SCI_GETMARGINTYPEN enum valueQsciScintillaBase
SCI_GETMARGINWIDTHN enum valueQsciScintillaBase
SCI_GETMAXLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMODEVENTMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMODIFY enum valueQsciScintillaBase
SCI_GETMOUSEDOWNCAPTURES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMOUSEDWELLTIME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMOUSESELECTIONRECTANGULARSWITCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMULTIPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMULTIPLESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPASTECONVERTENDINGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPOSITIONCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTCOLOURMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTMAGNIFICATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTYEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTYINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPUNCTUATIONCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRANGEPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETREADONLY enum valueQsciScintillaBase
SCI_GETRECTANGULARSELECTIONANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONMODIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSCROLLWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSCROLLWIDTHTRACKING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSEARCHFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONEMPTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTATUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEBITS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEBITSNEEDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTABINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTABWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTARGETEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTARGETSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTECHNOLOGY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTEXT enum valueQsciScintillaBase
SCI_GETTEXTLENGTH enum valueQsciScintillaBase
SCI_GETTEXTRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTWOPHASEDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETUNDOCOLLECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETUSETABS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIEWEOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIEWWS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIRTUALSPACEOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWHITESPACECHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWHITESPACESIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWORDCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPINDENTMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPSTARTINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPVISUALFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPVISUALFLAGSLOCATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETXOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETZOOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GOTOLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GOTOPOS enum valueQsciScintillaBase
SCI_GRABFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HIDELINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HIDESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMERECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORALLONFOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORCLEARRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATOREND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORFILLRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORVALUEAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETOUTLINEALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETUNDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETOUTLINEALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETUNDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INSERTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LEXER_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINECOPY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINECUT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWNRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDUPLICATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINELENGTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLLDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLLUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESJOIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESONSCREEN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESSPLIT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINETRANSPOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUPRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LOADLEXERLIBRARY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LOWERCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINTEXTCLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERADD enum valueQsciScintillaBase
SCI_MARKERADDSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERDEFINE enum valueQsciScintillaBase
SCI_MARKERDEFINEPIXMAP enum valueQsciScintillaBase
SCI_MARKERDEFINERGBAIMAGE enum valueQsciScintillaBase
SCI_MARKERDELETE enum valueQsciScintillaBase
SCI_MARKERDELETEALL enum valueQsciScintillaBase
SCI_MARKERDELETEHANDLE enum valueQsciScintillaBase
SCI_MARKERENABLEHIGHLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERGET enum valueQsciScintillaBase
SCI_MARKERLINEFROMHANDLE enum valueQsciScintillaBase
SCI_MARKERNEXT enum valueQsciScintillaBase
SCI_MARKERPREVIOUS enum valueQsciScintillaBase
SCI_MARKERSETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERSETBACK enum valueQsciScintillaBase
SCI_MARKERSETBACKSELECTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERSETFORE enum valueQsciScintillaBase
SCI_MARKERSYMBOLDEFINED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVECARETINSIDEVIEW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVESELECTEDLINESDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVESELECTEDLINESUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_NEWLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_NULL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_OPTIONAL_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWNRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUPRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARADOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARADOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARAUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARAUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POINTXFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POINTYFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONAFTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONBEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMPOINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMPOINTCLOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONRELATIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PRIVATELEXERCALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PROPERTYNAMES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PROPERTYTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REGISTERIMAGE enum valueQsciScintillaBase
SCI_REGISTERRGBAIMAGE enum valueQsciScintillaBase
SCI_RELEASEALLEXTENDEDSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RELEASEDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACESEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACETARGET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACETARGETRE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RGBAIMAGESETHEIGHT enum valueQsciScintillaBase
SCI_RGBAIMAGESETSCALE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RGBAIMAGESETWIDTH enum valueQsciScintillaBase
SCI_ROTATESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLTOEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLTOSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHINTARGET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHNEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHPREV enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTIONDUPLICATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTIONISRECTANGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETSBLINK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETSVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELECTIONTYPING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETANCHOR enum valueQsciScintillaBase
SCI_SETAUTOMATICFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETBACKSPACEUNINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETBUFFEREDDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEBACKALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEVISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETPERIOD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCHARSDEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCODEPAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCONTROLCHARSYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCURRENTPOS enum valueQsciScintillaBase
SCI_SETCURSOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETDOCPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGECOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGECOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGEMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEMPTYSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETENDATLASTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEOLMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEXTRAASCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEXTRADESCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFIRSTVISIBLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDLEVEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDMARGINCOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDMARGINHICOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFONTQUALITY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHIGHLIGHTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTSINGLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETIDENTIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDENTATIONGUIDES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDICATORCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDICATORVALUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETKEYSUNICODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETKEYWORDS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLAYOUTCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLEXER enum valueQsciScintillaBase
SCI_SETLEXERLANGUAGE enum valueQsciScintillaBase
SCI_SETLINEINDENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMAINSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINCURSORN enum valueQsciScintillaBase
SCI_SETMARGINLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINMASKN enum valueQsciScintillaBase
SCI_SETMARGINOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINSENSITIVEN enum valueQsciScintillaBase
SCI_SETMARGINTYPEN enum valueQsciScintillaBase
SCI_SETMARGINWIDTHN enum valueQsciScintillaBase
SCI_SETMODEVENTMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSEDOWNCAPTURES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSEDWELLTIME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSESELECTIONRECTANGULARSWITCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMULTIPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMULTIPLESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPASTECONVERTENDINGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPOSITIONCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTCOLOURMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTMAGNIFICATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPUNCTUATIONCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETREADONLY enum valueQsciScintillaBase
SCI_SETRECTANGULARSELECTIONANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONMODIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSAVEPOINT enum valueQsciScintillaBase
SCI_SETSCROLLWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSCROLLWIDTHTRACKING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSEARCHFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTATUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLEBITS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLINGEX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTABINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTABWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTARGETEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTARGETSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTECHNOLOGY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTEXT enum valueQsciScintillaBase
SCI_SETTWOPHASEDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETUNDOCOLLECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETUSETABS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIEWEOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIEWWS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIRTUALSPACEOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVISIBLEPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACECHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACESIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWORDCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPINDENTMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPSTARTINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPVISUALFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPVISUALFLAGSLOCATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETXCARETPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETXOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETYCARETPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETZOOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SHOWLINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STARTRECORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STARTSTYLING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STOPRECORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLECLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCHANGEABLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCHARACTERSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETFONT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETHOTSPOT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETITALIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETSIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETSIZEFRACTIONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETWEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLERESETDEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCHANGEABLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCHARACTERSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETFONT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETHOTSPOT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETITALIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETSIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETSIZEFRACTIONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETWEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SWAPMAINANCHORCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TARGETFROMSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TEXTHEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TEXTWIDTH enum valueQsciScintillaBase
SCI_TOGGLECARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TOGGLEFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_UNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_UPPERCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_USEPOPUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_USERLISTSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMERECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VERTICALCENTRECARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VISIBLEFROMDOCLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDSTARTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WRAPCOUNT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ZOOMIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ZOOMOUT enum value (defined in QsciScintillaBase)QsciScintillaBase
ScintillaBytes typedef (defined in QsciScintillaBase)QsciScintillaBase [protected]
SCK_ADD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_BACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DIVIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_END enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_ESCAPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_HOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_INSERT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_LEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_MENU enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_NEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_PRIOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RETURN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RWIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_SUBTRACT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_TAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_UP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_WIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCLEX_A68K enum valueQsciScintillaBase
SCLEX_ABAQUS enum valueQsciScintillaBase
SCLEX_ADA enum valueQsciScintillaBase
SCLEX_APDL enum valueQsciScintillaBase
SCLEX_ASM enum valueQsciScintillaBase
SCLEX_ASN1 enum valueQsciScintillaBase
SCLEX_ASP enum valueQsciScintillaBase
SCLEX_ASYMPTOTE enum valueQsciScintillaBase
SCLEX_AU3 enum valueQsciScintillaBase
SCLEX_AVE enum valueQsciScintillaBase
SCLEX_AVS enum valueQsciScintillaBase
SCLEX_BAAN enum valueQsciScintillaBase
SCLEX_BASH enum valueQsciScintillaBase
SCLEX_BATCH enum valueQsciScintillaBase
SCLEX_BLITZBASIC enum valueQsciScintillaBase
SCLEX_BULLANT enum valueQsciScintillaBase
SCLEX_CAML enum valueQsciScintillaBase
SCLEX_CLW enum valueQsciScintillaBase
SCLEX_CLWNOCASE enum valueQsciScintillaBase
SCLEX_CMAKE enum valueQsciScintillaBase
SCLEX_COBOL enum valueQsciScintillaBase
SCLEX_COFFEESCRIPT enum valueQsciScintillaBase
SCLEX_CONF enum valueQsciScintillaBase
SCLEX_CONTAINER enum valueQsciScintillaBase
SCLEX_CPP enum valueQsciScintillaBase
SCLEX_CPPNOCASE enum valueQsciScintillaBase
SCLEX_CSOUND enum valueQsciScintillaBase
SCLEX_CSS enum valueQsciScintillaBase
SCLEX_D enum valueQsciScintillaBase
SCLEX_DIFF enum valueQsciScintillaBase
SCLEX_ECL enum valueQsciScintillaBase
SCLEX_EIFFEL enum valueQsciScintillaBase
SCLEX_EIFFELKW enum valueQsciScintillaBase
SCLEX_ERLANG enum valueQsciScintillaBase
SCLEX_ERRORLIST enum valueQsciScintillaBase
SCLEX_ESCRIPT enum valueQsciScintillaBase
SCLEX_F77 enum valueQsciScintillaBase
SCLEX_FLAGSHIP enum valueQsciScintillaBase
SCLEX_FORTH enum valueQsciScintillaBase
SCLEX_FORTRAN enum valueQsciScintillaBase
SCLEX_FREEBASIC enum valueQsciScintillaBase
SCLEX_GAP enum valueQsciScintillaBase
SCLEX_GUI4CLI enum valueQsciScintillaBase
SCLEX_HASKELL enum valueQsciScintillaBase
SCLEX_HTML enum valueQsciScintillaBase
SCLEX_INNOSETUP enum valueQsciScintillaBase
SCLEX_KIX enum valueQsciScintillaBase
SCLEX_KVIRC enum valueQsciScintillaBase
SCLEX_LATEX enum valueQsciScintillaBase
SCLEX_LISP enum valueQsciScintillaBase
SCLEX_LITERATEHASKELL enum valueQsciScintillaBase
SCLEX_LOT enum valueQsciScintillaBase
SCLEX_LOUT enum valueQsciScintillaBase
SCLEX_LUA enum valueQsciScintillaBase
SCLEX_MAGIK enum valueQsciScintillaBase
SCLEX_MAKEFILE enum valueQsciScintillaBase
SCLEX_MARKDOWN enum valueQsciScintillaBase
SCLEX_MATLAB enum valueQsciScintillaBase
SCLEX_METAPOST enum valueQsciScintillaBase
SCLEX_MMIXAL enum valueQsciScintillaBase
SCLEX_MODULA enum valueQsciScintillaBase
SCLEX_MSSQL enum valueQsciScintillaBase
SCLEX_MYSQL enum valueQsciScintillaBase
SCLEX_NIMROD enum valueQsciScintillaBase
SCLEX_NNCRONTAB enum valueQsciScintillaBase
SCLEX_NSIS enum valueQsciScintillaBase
SCLEX_NULL enum valueQsciScintillaBase
SCLEX_OCTAVE enum valueQsciScintillaBase
SCLEX_OPAL enum valueQsciScintillaBase
SCLEX_OSCRIPT enum valueQsciScintillaBase
SCLEX_PASCAL enum valueQsciScintillaBase
SCLEX_PERL enum valueQsciScintillaBase
SCLEX_PHP enum valueQsciScintillaBase
SCLEX_PHPSCRIPT enum valueQsciScintillaBase
SCLEX_PLM enum valueQsciScintillaBase
SCLEX_PO enum valueQsciScintillaBase
SCLEX_POV enum valueQsciScintillaBase
SCLEX_POWERBASIC enum valueQsciScintillaBase
SCLEX_POWERPRO enum valueQsciScintillaBase
SCLEX_POWERSHELL enum valueQsciScintillaBase
SCLEX_PROGRESS enum valueQsciScintillaBase
SCLEX_PROPERTIES enum valueQsciScintillaBase
SCLEX_PS enum valueQsciScintillaBase
SCLEX_PUREBASIC enum valueQsciScintillaBase
SCLEX_PYTHON enum valueQsciScintillaBase
SCLEX_R enum valueQsciScintillaBase
SCLEX_REBOL enum valueQsciScintillaBase
SCLEX_RUBY enum valueQsciScintillaBase
SCLEX_RUST enum valueQsciScintillaBase
SCLEX_SCRIPTOL enum valueQsciScintillaBase
SCLEX_SMALLTALK enum valueQsciScintillaBase
SCLEX_SML enum valueQsciScintillaBase
SCLEX_SORCUS enum valueQsciScintillaBase
SCLEX_SPECMAN enum valueQsciScintillaBase
SCLEX_SPICE enum valueQsciScintillaBase
SCLEX_SQL enum valueQsciScintillaBase
SCLEX_STTXT enum valueQsciScintillaBase
SCLEX_TACL enum valueQsciScintillaBase
SCLEX_TADS3 enum valueQsciScintillaBase
SCLEX_TAL enum valueQsciScintillaBase
SCLEX_TCL enum valueQsciScintillaBase
SCLEX_TCMD enum valueQsciScintillaBase
SCLEX_TEX enum valueQsciScintillaBase
SCLEX_TXT2TAGS enum valueQsciScintillaBase
SCLEX_VB enum valueQsciScintillaBase
SCLEX_VBSCRIPT enum valueQsciScintillaBase
SCLEX_VERILOG enum valueQsciScintillaBase
SCLEX_VHDL enum valueQsciScintillaBase
SCLEX_VISUALPROLOG enum valueQsciScintillaBase
SCLEX_XML enum valueQsciScintillaBase
SCLEX_YAML enum valueQsciScintillaBase
SCMOD_ALT enum valueQsciScintillaBase
SCMOD_CTRL enum valueQsciScintillaBase
SCMOD_META enum valueQsciScintillaBase
SCMOD_NORM enum valueQsciScintillaBase
SCMOD_SHIFT enum valueQsciScintillaBase
SCMOD_SUPER enum valueQsciScintillaBase
SCN_AUTOCCANCELLED()QsciScintillaBase [signal]
SCN_AUTOCCHARDELETED()QsciScintillaBase [signal]
SCN_AUTOCSELECTION(const char *selection, int position)QsciScintillaBase [signal]
SCN_CALLTIPCLICK(int direction)QsciScintillaBase [signal]
SCN_CHARADDED(int charadded)QsciScintillaBase [signal]
SCN_DOUBLECLICK(int position, int line, int modifiers)QsciScintillaBase [signal]
SCN_DWELLEND(int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_DWELLSTART(int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_FOCUSIN()QsciScintillaBase [signal]
SCN_FOCUSOUT()QsciScintillaBase [signal]
SCN_HOTSPOTCLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_HOTSPOTDOUBLECLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_HOTSPOTRELEASECLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_INDICATORCLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_INDICATORRELEASE(int position, int modifiers)QsciScintillaBase [signal]
SCN_MACRORECORD(unsigned int, unsigned long, void *)QsciScintillaBase [signal]
SCN_MARGINCLICK(int position, int modifiers, int margin)QsciScintillaBase [signal]
SCN_MODIFIED(int, int, const char *, int, int, int, int, int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_MODIFYATTEMPTRO()QsciScintillaBase [signal]
SCN_NEEDSHOWN(int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_PAINTED()QsciScintillaBase [signal]
SCN_SAVEPOINTLEFT()QsciScintillaBase [signal]
SCN_SAVEPOINTREACHED()QsciScintillaBase [signal]
SCN_STYLENEEDED(int position)QsciScintillaBase [signal]
SCN_UPDATEUI(int updated)QsciScintillaBase [signal]
SCN_USERLISTSELECTION(const char *, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_ZOOM() (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCVS_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCVS_RECTANGULARSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCVS_USERACCESSIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_INVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_VISIBLEAFTERINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_VISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam=0, long lParam=0) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, void *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, const char *wParam, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, long wParam) const QsciScintillaBase
SendScintilla(unsigned int msg, int wParam) const QsciScintillaBase
SendScintilla(unsigned int msg, long cpMin, long cpMax, char *lpstrText) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QColor &col) const QsciScintillaBase
SendScintilla(unsigned int msg, const QColor &col) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, QPainter *hdc, const QRect &rc, long cpMin, long cpMax) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QPixmap &lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QImage &lParam) const QsciScintillaBase
SendScintillaPtrResult(unsigned int msg) const QsciScintillaBase
setScrollBars() (defined in QsciScintillaBase)QsciScintillaBase [protected]
STYLE_BRACEBAD enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_BRACELIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_CALLTIP enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_CONTROLCHAR enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_INDENTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_LASTPREDEFINED enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_LINENUMBER enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_MAX enum value (defined in QsciScintillaBase)QsciScintillaBase
textAsBytes(const QString &text) const (defined in QsciScintillaBase)QsciScintillaBase [protected]
UNDO_MAY_COALESCE enum value (defined in QsciScintillaBase)QsciScintillaBase
verticalScrollBar() const QsciScintillaBase
viewport() const QsciScintillaBase
VISIBLE_SLOP enum value (defined in QsciScintillaBase)QsciScintillaBase
VISIBLE_STRICT enum value (defined in QsciScintillaBase)QsciScintillaBase
~QsciScintillaBase()QsciScintillaBase [virtual]
+ + + + + + diff --git a/doc/html-Qt3/classQsciScintillaBase.html b/doc/html-Qt3/classQsciScintillaBase.html new file mode 100644 index 0000000..ac68789 --- /dev/null +++ b/doc/html-Qt3/classQsciScintillaBase.html @@ -0,0 +1,3400 @@ + + + + +QScintilla: QsciScintillaBase Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+ +
+ +

#include <qsciscintillabase.h>

+ +

Inherited by QsciScintilla.

+ +

List of all members.

+

+Public Types

+
    +
  • enum {
    +  SCI_START = 2000, +SCI_OPTIONAL_START = 3000, +SCI_LEXER_START = 4000, +
    +  SCI_ADDTEXT = 2001, +SCI_ADDSTYLEDTEXT = 2002, +SCI_INSERTTEXT = 2003, +
    +  SCI_CLEARALL = 2004, +SCI_CLEARDOCUMENTSTYLE = 2005, +SCI_GETLENGTH = 2006, +
    +  SCI_GETCHARAT = 2007, +SCI_GETCURRENTPOS = 2008, +SCI_GETANCHOR = 2009, +
    +  SCI_GETSTYLEAT = 2010, +SCI_REDO = 2011, +SCI_SETUNDOCOLLECTION = 2012, +
    +  SCI_SELECTALL = 2013, +SCI_SETSAVEPOINT = 2014, +SCI_GETSTYLEDTEXT = 2015, +
    +  SCI_CANREDO = 2016, +SCI_MARKERLINEFROMHANDLE = 2017, +SCI_MARKERDELETEHANDLE = 2018, +
    +  SCI_GETUNDOCOLLECTION = 2019, +SCI_GETVIEWWS = 2020, +SCI_SETVIEWWS = 2021, +
    +  SCI_POSITIONFROMPOINT = 2022, +SCI_POSITIONFROMPOINTCLOSE = 2023, +SCI_GOTOLINE = 2024, +
    +  SCI_GOTOPOS = 2025, +SCI_SETANCHOR = 2026, +SCI_GETCURLINE = 2027, +
    +  SCI_GETENDSTYLED = 2028, +SCI_CONVERTEOLS = 2029, +SCI_GETEOLMODE = 2030, +
    +  SCI_SETEOLMODE = 2031, +SCI_STARTSTYLING = 2032, +SCI_SETSTYLING = 2033, +
    +  SCI_GETBUFFEREDDRAW = 2034, +SCI_SETBUFFEREDDRAW = 2035, +SCI_SETTABWIDTH = 2036, +
    +  SCI_GETTABWIDTH = 2121, +SCI_SETCODEPAGE = 2037, +SCI_MARKERDEFINE = 2040, +
    +  SCI_MARKERSETFORE = 2041, +SCI_MARKERSETBACK = 2042, +SCI_MARKERADD = 2043, +
    +  SCI_MARKERDELETE = 2044, +SCI_MARKERDELETEALL = 2045, +SCI_MARKERGET = 2046, +
    +  SCI_MARKERNEXT = 2047, +SCI_MARKERPREVIOUS = 2048, +SCI_MARKERDEFINEPIXMAP = 2049, +
    +  SCI_SETMARGINTYPEN = 2240, +SCI_GETMARGINTYPEN = 2241, +SCI_SETMARGINWIDTHN = 2242, +
    +  SCI_GETMARGINWIDTHN = 2243, +SCI_SETMARGINMASKN = 2244, +SCI_GETMARGINMASKN = 2245, +
    +  SCI_SETMARGINSENSITIVEN = 2246, +SCI_GETMARGINSENSITIVEN = 2247, +SCI_SETMARGINCURSORN = 2248, +
    +  SCI_GETMARGINCURSORN = 2249, +SCI_STYLECLEARALL = 2050, +SCI_STYLESETFORE = 2051, +
    +  SCI_STYLESETBACK = 2052, +SCI_STYLESETBOLD = 2053, +SCI_STYLESETITALIC = 2054, +
    +  SCI_STYLESETSIZE = 2055, +SCI_STYLESETFONT = 2056, +SCI_STYLESETEOLFILLED = 2057, +
    +  SCI_STYLERESETDEFAULT = 2058, +SCI_STYLESETUNDERLINE = 2059, +SCI_STYLESETCASE = 2060, +
    +  SCI_STYLESETSIZEFRACTIONAL = 2061, +SCI_STYLEGETSIZEFRACTIONAL = 2062, +SCI_STYLESETWEIGHT = 2063, +
    +  SCI_STYLEGETWEIGHT = 2064, +SCI_STYLESETCHARACTERSET = 2066, +SCI_SETSELFORE = 2067, +
    +  SCI_SETSELBACK = 2068, +SCI_SETCARETFORE = 2069, +SCI_ASSIGNCMDKEY = 2070, +
    +  SCI_CLEARCMDKEY = 2071, +SCI_CLEARALLCMDKEYS = 2072, +SCI_SETSTYLINGEX = 2073, +
    +  SCI_STYLESETVISIBLE = 2074, +SCI_GETCARETPERIOD = 2075, +SCI_SETCARETPERIOD = 2076, +
    +  SCI_SETWORDCHARS = 2077, +SCI_BEGINUNDOACTION = 2078, +SCI_ENDUNDOACTION = 2079, +
    +  SCI_INDICSETSTYLE = 2080, +SCI_INDICGETSTYLE = 2081, +SCI_INDICSETFORE = 2082, +
    +  SCI_INDICGETFORE = 2083, +SCI_SETWHITESPACEFORE = 2084, +SCI_SETWHITESPACEBACK = 2085, +
    +  SCI_SETWHITESPACESIZE = 2086, +SCI_GETWHITESPACESIZE = 2087, +SCI_SETSTYLEBITS = 2090, +
    +  SCI_GETSTYLEBITS = 2091, +SCI_SETLINESTATE = 2092, +SCI_GETLINESTATE = 2093, +
    +  SCI_GETMAXLINESTATE = 2094, +SCI_GETCARETLINEVISIBLE = 2095, +SCI_SETCARETLINEVISIBLE = 2096, +
    +  SCI_GETCARETLINEBACK = 2097, +SCI_SETCARETLINEBACK = 2098, +SCI_STYLESETCHANGEABLE = 2099, +
    +  SCI_AUTOCSHOW = 2100, +SCI_AUTOCCANCEL = 2101, +SCI_AUTOCACTIVE = 2102, +
    +  SCI_AUTOCPOSSTART = 2103, +SCI_AUTOCCOMPLETE = 2104, +SCI_AUTOCSTOPS = 2105, +
    +  SCI_AUTOCSETSEPARATOR = 2106, +SCI_AUTOCGETSEPARATOR = 2107, +SCI_AUTOCSELECT = 2108, +
    +  SCI_AUTOCSETCANCELATSTART = 2110, +SCI_AUTOCGETCANCELATSTART = 2111, +SCI_AUTOCSETFILLUPS = 2112, +
    +  SCI_AUTOCSETCHOOSESINGLE = 2113, +SCI_AUTOCGETCHOOSESINGLE = 2114, +SCI_AUTOCSETIGNORECASE = 2115, +
    +  SCI_AUTOCGETIGNORECASE = 2116, +SCI_USERLISTSHOW = 2117, +SCI_AUTOCSETAUTOHIDE = 2118, +
    +  SCI_AUTOCGETAUTOHIDE = 2119, +SCI_AUTOCSETDROPRESTOFWORD = 2270, +SCI_AUTOCGETDROPRESTOFWORD = 2271, +
    +  SCI_SETINDENT = 2122, +SCI_GETINDENT = 2123, +SCI_SETUSETABS = 2124, +
    +  SCI_GETUSETABS = 2125, +SCI_SETLINEINDENTATION = 2126, +SCI_GETLINEINDENTATION = 2127, +
    +  SCI_GETLINEINDENTPOSITION = 2128, +SCI_GETCOLUMN = 2129, +SCI_SETHSCROLLBAR = 2130, +
    +  SCI_GETHSCROLLBAR = 2131, +SCI_SETINDENTATIONGUIDES = 2132, +SCI_GETINDENTATIONGUIDES = 2133, +
    +  SCI_SETHIGHLIGHTGUIDE = 2134, +SCI_GETHIGHLIGHTGUIDE = 2135, +SCI_GETLINEENDPOSITION = 2136, +
    +  SCI_GETCODEPAGE = 2137, +SCI_GETCARETFORE = 2138, +SCI_GETREADONLY = 2140, +
    +  SCI_SETCURRENTPOS = 2141, +SCI_SETSELECTIONSTART = 2142, +SCI_GETSELECTIONSTART = 2143, +
    +  SCI_SETSELECTIONEND = 2144, +SCI_GETSELECTIONEND = 2145, +SCI_SETPRINTMAGNIFICATION = 2146, +
    +  SCI_GETPRINTMAGNIFICATION = 2147, +SCI_SETPRINTCOLOURMODE = 2148, +SCI_GETPRINTCOLOURMODE = 2149, +
    +  SCI_FINDTEXT = 2150, +SCI_FORMATRANGE = 2151, +SCI_GETFIRSTVISIBLELINE = 2152, +
    +  SCI_GETLINE = 2153, +SCI_GETLINECOUNT = 2154, +SCI_SETMARGINLEFT = 2155, +
    +  SCI_GETMARGINLEFT = 2156, +SCI_SETMARGINRIGHT = 2157, +SCI_GETMARGINRIGHT = 2158, +
    +  SCI_GETMODIFY = 2159, +SCI_SETSEL = 2160, +SCI_GETSELTEXT = 2161, +
    +  SCI_GETTEXTRANGE = 2162, +SCI_HIDESELECTION = 2163, +SCI_POINTXFROMPOSITION = 2164, +
    +  SCI_POINTYFROMPOSITION = 2165, +SCI_LINEFROMPOSITION = 2166, +SCI_POSITIONFROMLINE = 2167, +
    +  SCI_LINESCROLL = 2168, +SCI_SCROLLCARET = 2169, +SCI_REPLACESEL = 2170, +
    +  SCI_SETREADONLY = 2171, +SCI_NULL = 2172, +SCI_CANPASTE = 2173, +
    +  SCI_CANUNDO = 2174, +SCI_EMPTYUNDOBUFFER = 2175, +SCI_UNDO = 2176, +
    +  SCI_CUT = 2177, +SCI_COPY = 2178, +SCI_PASTE = 2179, +
    +  SCI_CLEAR = 2180, +SCI_SETTEXT = 2181, +SCI_GETTEXT = 2182, +
    +  SCI_GETTEXTLENGTH = 2183, +SCI_GETDIRECTFUNCTION = 2184, +SCI_GETDIRECTPOINTER = 2185, +
    +  SCI_SETOVERTYPE = 2186, +SCI_GETOVERTYPE = 2187, +SCI_SETCARETWIDTH = 2188, +
    +  SCI_GETCARETWIDTH = 2189, +SCI_SETTARGETSTART = 2190, +SCI_GETTARGETSTART = 2191, +
    +  SCI_SETTARGETEND = 2192, +SCI_GETTARGETEND = 2193, +SCI_REPLACETARGET = 2194, +
    +  SCI_REPLACETARGETRE = 2195, +SCI_SEARCHINTARGET = 2197, +SCI_SETSEARCHFLAGS = 2198, +
    +  SCI_GETSEARCHFLAGS = 2199, +SCI_CALLTIPSHOW = 2200, +SCI_CALLTIPCANCEL = 2201, +
    +  SCI_CALLTIPACTIVE = 2202, +SCI_CALLTIPPOSSTART = 2203, +SCI_CALLTIPSETHLT = 2204, +
    +  SCI_CALLTIPSETBACK = 2205, +SCI_CALLTIPSETFORE = 2206, +SCI_CALLTIPSETFOREHLT = 2207, +
    +  SCI_AUTOCSETMAXWIDTH = 2208, +SCI_AUTOCGETMAXWIDTH = 2209, +SCI_AUTOCSETMAXHEIGHT = 2210, +
    +  SCI_AUTOCGETMAXHEIGHT = 2211, +SCI_CALLTIPUSESTYLE = 2212, +SCI_CALLTIPSETPOSITION = 2213, +
    +  SCI_VISIBLEFROMDOCLINE = 2220, +SCI_DOCLINEFROMVISIBLE = 2221, +SCI_SETFOLDLEVEL = 2222, +
    +  SCI_GETFOLDLEVEL = 2223, +SCI_GETLASTCHILD = 2224, +SCI_GETFOLDPARENT = 2225, +
    +  SCI_SHOWLINES = 2226, +SCI_HIDELINES = 2227, +SCI_GETLINEVISIBLE = 2228, +
    +  SCI_SETFOLDEXPANDED = 2229, +SCI_GETFOLDEXPANDED = 2230, +SCI_TOGGLEFOLD = 2231, +
    +  SCI_ENSUREVISIBLE = 2232, +SCI_SETFOLDFLAGS = 2233, +SCI_ENSUREVISIBLEENFORCEPOLICY = 2234, +
    +  SCI_WRAPCOUNT = 2235, +SCI_GETALLLINESVISIBLE = 2236, +SCI_FOLDLINE = 2237, +
    +  SCI_FOLDCHILDREN = 2238, +SCI_EXPANDCHILDREN = 2239, +SCI_SETTABINDENTS = 2260, +
    +  SCI_GETTABINDENTS = 2261, +SCI_SETBACKSPACEUNINDENTS = 2262, +SCI_GETBACKSPACEUNINDENTS = 2263, +
    +  SCI_SETMOUSEDWELLTIME = 2264, +SCI_GETMOUSEDWELLTIME = 2265, +SCI_WORDSTARTPOSITION = 2266, +
    +  SCI_WORDENDPOSITION = 2267, +SCI_SETWRAPMODE = 2268, +SCI_GETWRAPMODE = 2269, +
    +  SCI_SETLAYOUTCACHE = 2272, +SCI_GETLAYOUTCACHE = 2273, +SCI_SETSCROLLWIDTH = 2274, +
    +  SCI_GETSCROLLWIDTH = 2275, +SCI_TEXTWIDTH = 2276, +SCI_SETENDATLASTLINE = 2277, +
    +  SCI_GETENDATLASTLINE = 2278, +SCI_TEXTHEIGHT = 2279, +SCI_SETVSCROLLBAR = 2280, +
    +  SCI_GETVSCROLLBAR = 2281, +SCI_APPENDTEXT = 2282, +SCI_GETTWOPHASEDRAW = 2283, +
    +  SCI_SETTWOPHASEDRAW = 2284, +SCI_AUTOCGETTYPESEPARATOR = 2285, +SCI_AUTOCSETTYPESEPARATOR = 2286, +
    +  SCI_TARGETFROMSELECTION = 2287, +SCI_LINESJOIN = 2288, +SCI_LINESSPLIT = 2289, +
    +  SCI_SETFOLDMARGINCOLOUR = 2290, +SCI_SETFOLDMARGINHICOLOUR = 2291, +SCI_MARKERSETBACKSELECTED = 2292, +
    +  SCI_MARKERENABLEHIGHLIGHT = 2293, +SCI_LINEDOWN = 2300, +SCI_LINEDOWNEXTEND = 2301, +
    +  SCI_LINEUP = 2302, +SCI_LINEUPEXTEND = 2303, +SCI_CHARLEFT = 2304, +
    +  SCI_CHARLEFTEXTEND = 2305, +SCI_CHARRIGHT = 2306, +SCI_CHARRIGHTEXTEND = 2307, +
    +  SCI_WORDLEFT = 2308, +SCI_WORDLEFTEXTEND = 2309, +SCI_WORDRIGHT = 2310, +
    +  SCI_WORDRIGHTEXTEND = 2311, +SCI_HOME = 2312, +SCI_HOMEEXTEND = 2313, +
    +  SCI_LINEEND = 2314, +SCI_LINEENDEXTEND = 2315, +SCI_DOCUMENTSTART = 2316, +
    +  SCI_DOCUMENTSTARTEXTEND = 2317, +SCI_DOCUMENTEND = 2318, +SCI_DOCUMENTENDEXTEND = 2319, +
    +  SCI_PAGEUP = 2320, +SCI_PAGEUPEXTEND = 2321, +SCI_PAGEDOWN = 2322, +
    +  SCI_PAGEDOWNEXTEND = 2323, +SCI_EDITTOGGLEOVERTYPE = 2324, +SCI_CANCEL = 2325, +
    +  SCI_DELETEBACK = 2326, +SCI_TAB = 2327, +SCI_BACKTAB = 2328, +
    +  SCI_NEWLINE = 2329, +SCI_FORMFEED = 2330, +SCI_VCHOME = 2331, +
    +  SCI_VCHOMEEXTEND = 2332, +SCI_ZOOMIN = 2333, +SCI_ZOOMOUT = 2334, +
    +  SCI_DELWORDLEFT = 2335, +SCI_DELWORDRIGHT = 2336, +SCI_LINECUT = 2337, +
    +  SCI_LINEDELETE = 2338, +SCI_LINETRANSPOSE = 2339, +SCI_LOWERCASE = 2340, +
    +  SCI_UPPERCASE = 2341, +SCI_LINESCROLLDOWN = 2342, +SCI_LINESCROLLUP = 2343, +
    +  SCI_DELETEBACKNOTLINE = 2344, +SCI_HOMEDISPLAY = 2345, +SCI_HOMEDISPLAYEXTEND = 2346, +
    +  SCI_LINEENDDISPLAY = 2347, +SCI_LINEENDDISPLAYEXTEND = 2348, +SCI_MOVECARETINSIDEVIEW = 2401, +
    +  SCI_LINELENGTH = 2350, +SCI_BRACEHIGHLIGHT = 2351, +SCI_BRACEBADLIGHT = 2352, +
    +  SCI_BRACEMATCH = 2353, +SCI_GETVIEWEOL = 2355, +SCI_SETVIEWEOL = 2356, +
    +  SCI_GETDOCPOINTER = 2357, +SCI_SETDOCPOINTER = 2358, +SCI_SETMODEVENTMASK = 2359, +
    +  SCI_GETEDGECOLUMN = 2360, +SCI_SETEDGECOLUMN = 2361, +SCI_GETEDGEMODE = 2362, +
    +  SCI_SETEDGEMODE = 2363, +SCI_GETEDGECOLOUR = 2364, +SCI_SETEDGECOLOUR = 2365, +
    +  SCI_SEARCHANCHOR = 2366, +SCI_SEARCHNEXT = 2367, +SCI_SEARCHPREV = 2368, +
    +  SCI_LINESONSCREEN = 2370, +SCI_USEPOPUP = 2371, +SCI_SELECTIONISRECTANGLE = 2372, +
    +  SCI_SETZOOM = 2373, +SCI_GETZOOM = 2374, +SCI_CREATEDOCUMENT = 2375, +
    +  SCI_ADDREFDOCUMENT = 2376, +SCI_RELEASEDOCUMENT = 2377, +SCI_GETMODEVENTMASK = 2378, +
    +  SCI_SETFOCUS = 2380, +SCI_GETFOCUS = 2381, +SCI_SETSTATUS = 2382, +
    +  SCI_GETSTATUS = 2383, +SCI_SETMOUSEDOWNCAPTURES = 2384, +SCI_GETMOUSEDOWNCAPTURES = 2385, +
    +  SCI_SETCURSOR = 2386, +SCI_GETCURSOR = 2387, +SCI_SETCONTROLCHARSYMBOL = 2388, +
    +  SCI_GETCONTROLCHARSYMBOL = 2389, +SCI_WORDPARTLEFT = 2390, +SCI_WORDPARTLEFTEXTEND = 2391, +
    +  SCI_WORDPARTRIGHT = 2392, +SCI_WORDPARTRIGHTEXTEND = 2393, +SCI_SETVISIBLEPOLICY = 2394, +
    +  SCI_DELLINELEFT = 2395, +SCI_DELLINERIGHT = 2396, +SCI_SETXOFFSET = 2397, +
    +  SCI_GETXOFFSET = 2398, +SCI_CHOOSECARETX = 2399, +SCI_GRABFOCUS = 2400, +
    +  SCI_SETXCARETPOLICY = 2402, +SCI_SETYCARETPOLICY = 2403, +SCI_LINEDUPLICATE = 2404, +
    +  SCI_REGISTERIMAGE = 2405, +SCI_SETPRINTWRAPMODE = 2406, +SCI_GETPRINTWRAPMODE = 2407, +
    +  SCI_CLEARREGISTEREDIMAGES = 2408, +SCI_STYLESETHOTSPOT = 2409, +SCI_SETHOTSPOTACTIVEFORE = 2410, +
    +  SCI_SETHOTSPOTACTIVEBACK = 2411, +SCI_SETHOTSPOTACTIVEUNDERLINE = 2412, +SCI_PARADOWN = 2413, +
    +  SCI_PARADOWNEXTEND = 2414, +SCI_PARAUP = 2415, +SCI_PARAUPEXTEND = 2416, +
    +  SCI_POSITIONBEFORE = 2417, +SCI_POSITIONAFTER = 2418, +SCI_COPYRANGE = 2419, +
    +  SCI_COPYTEXT = 2420, +SCI_SETHOTSPOTSINGLELINE = 2421, +SCI_SETSELECTIONMODE = 2422, +
    +  SCI_GETSELECTIONMODE = 2423, +SCI_GETLINESELSTARTPOSITION = 2424, +SCI_GETLINESELENDPOSITION = 2425, +
    +  SCI_LINEDOWNRECTEXTEND = 2426, +SCI_LINEUPRECTEXTEND = 2427, +SCI_CHARLEFTRECTEXTEND = 2428, +
    +  SCI_CHARRIGHTRECTEXTEND = 2429, +SCI_HOMERECTEXTEND = 2430, +SCI_VCHOMERECTEXTEND = 2431, +
    +  SCI_LINEENDRECTEXTEND = 2432, +SCI_PAGEUPRECTEXTEND = 2433, +SCI_PAGEDOWNRECTEXTEND = 2434, +
    +  SCI_STUTTEREDPAGEUP = 2435, +SCI_STUTTEREDPAGEUPEXTEND = 2436, +SCI_STUTTEREDPAGEDOWN = 2437, +
    +  SCI_STUTTEREDPAGEDOWNEXTEND = 2438, +SCI_WORDLEFTEND = 2439, +SCI_WORDLEFTENDEXTEND = 2440, +
    +  SCI_WORDRIGHTEND = 2441, +SCI_WORDRIGHTENDEXTEND = 2442, +SCI_SETWHITESPACECHARS = 2443, +
    +  SCI_SETCHARSDEFAULT = 2444, +SCI_AUTOCGETCURRENT = 2445, +SCI_ALLOCATE = 2446, +
    +  SCI_HOMEWRAP = 2349, +SCI_HOMEWRAPEXTEND = 2450, +SCI_LINEENDWRAP = 2451, +
    +  SCI_LINEENDWRAPEXTEND = 2452, +SCI_VCHOMEWRAP = 2453, +SCI_VCHOMEWRAPEXTEND = 2454, +
    +  SCI_LINECOPY = 2455, +SCI_FINDCOLUMN = 2456, +SCI_GETCARETSTICKY = 2457, +
    +  SCI_SETCARETSTICKY = 2458, +SCI_TOGGLECARETSTICKY = 2459, +SCI_SETWRAPVISUALFLAGS = 2460, +
    +  SCI_GETWRAPVISUALFLAGS = 2461, +SCI_SETWRAPVISUALFLAGSLOCATION = 2462, +SCI_GETWRAPVISUALFLAGSLOCATION = 2463, +
    +  SCI_SETWRAPSTARTINDENT = 2464, +SCI_GETWRAPSTARTINDENT = 2465, +SCI_MARKERADDSET = 2466, +
    +  SCI_SETPASTECONVERTENDINGS = 2467, +SCI_GETPASTECONVERTENDINGS = 2468, +SCI_SELECTIONDUPLICATE = 2469, +
    +  SCI_SETCARETLINEBACKALPHA = 2470, +SCI_GETCARETLINEBACKALPHA = 2471, +SCI_SETWRAPINDENTMODE = 2472, +
    +  SCI_GETWRAPINDENTMODE = 2473, +SCI_MARKERSETALPHA = 2476, +SCI_GETSELALPHA = 2477, +
    +  SCI_SETSELALPHA = 2478, +SCI_GETSELEOLFILLED = 2479, +SCI_SETSELEOLFILLED = 2480, +
    +  SCI_STYLEGETFORE = 2481, +SCI_STYLEGETBACK = 2482, +SCI_STYLEGETBOLD = 2483, +
    +  SCI_STYLEGETITALIC = 2484, +SCI_STYLEGETSIZE = 2485, +SCI_STYLEGETFONT = 2486, +
    +  SCI_STYLEGETEOLFILLED = 2487, +SCI_STYLEGETUNDERLINE = 2488, +SCI_STYLEGETCASE = 2489, +
    +  SCI_STYLEGETCHARACTERSET = 2490, +SCI_STYLEGETVISIBLE = 2491, +SCI_STYLEGETCHANGEABLE = 2492, +
    +  SCI_STYLEGETHOTSPOT = 2493, +SCI_GETHOTSPOTACTIVEFORE = 2494, +SCI_GETHOTSPOTACTIVEBACK = 2495, +
    +  SCI_GETHOTSPOTACTIVEUNDERLINE = 2496, +SCI_GETHOTSPOTSINGLELINE = 2497, +SCI_BRACEHIGHLIGHTINDICATOR = 2498, +
    +  SCI_BRACEBADLIGHTINDICATOR = 2499, +SCI_SETINDICATORCURRENT = 2500, +SCI_GETINDICATORCURRENT = 2501, +
    +  SCI_SETINDICATORVALUE = 2502, +SCI_GETINDICATORVALUE = 2503, +SCI_INDICATORFILLRANGE = 2504, +
    +  SCI_INDICATORCLEARRANGE = 2505, +SCI_INDICATORALLONFOR = 2506, +SCI_INDICATORVALUEAT = 2507, +
    +  SCI_INDICATORSTART = 2508, +SCI_INDICATOREND = 2509, +SCI_INDICSETUNDER = 2510, +
    +  SCI_INDICGETUNDER = 2511, +SCI_SETCARETSTYLE = 2512, +SCI_GETCARETSTYLE = 2513, +
    +  SCI_SETPOSITIONCACHE = 2514, +SCI_GETPOSITIONCACHE = 2515, +SCI_SETSCROLLWIDTHTRACKING = 2516, +
    +  SCI_GETSCROLLWIDTHTRACKING = 2517, +SCI_DELWORDRIGHTEND = 2518, +SCI_COPYALLOWLINE = 2519, +
    +  SCI_GETCHARACTERPOINTER = 2520, +SCI_SETKEYSUNICODE = 2521, +SCI_GETKEYSUNICODE = 2522, +
    +  SCI_INDICSETALPHA = 2523, +SCI_INDICGETALPHA = 2524, +SCI_SETEXTRAASCENT = 2525, +
    +  SCI_GETEXTRAASCENT = 2526, +SCI_SETEXTRADESCENT = 2527, +SCI_GETEXTRADESCENT = 2528, +
    +  SCI_MARKERSYMBOLDEFINED = 2529, +SCI_MARGINSETTEXT = 2530, +SCI_MARGINGETTEXT = 2531, +
    +  SCI_MARGINSETSTYLE = 2532, +SCI_MARGINGETSTYLE = 2533, +SCI_MARGINSETSTYLES = 2534, +
    +  SCI_MARGINGETSTYLES = 2535, +SCI_MARGINTEXTCLEARALL = 2536, +SCI_MARGINSETSTYLEOFFSET = 2537, +
    +  SCI_MARGINGETSTYLEOFFSET = 2538, +SCI_SETMARGINOPTIONS = 2539, +SCI_ANNOTATIONSETTEXT = 2540, +
    +  SCI_ANNOTATIONGETTEXT = 2541, +SCI_ANNOTATIONSETSTYLE = 2542, +SCI_ANNOTATIONGETSTYLE = 2543, +
    +  SCI_ANNOTATIONSETSTYLES = 2544, +SCI_ANNOTATIONGETSTYLES = 2545, +SCI_ANNOTATIONGETLINES = 2546, +
    +  SCI_ANNOTATIONCLEARALL = 2547, +SCI_ANNOTATIONSETVISIBLE = 2548, +SCI_ANNOTATIONGETVISIBLE = 2549, +
    +  SCI_ANNOTATIONSETSTYLEOFFSET = 2550, +SCI_ANNOTATIONGETSTYLEOFFSET = 2551, +SCI_RELEASEALLEXTENDEDSTYLES = 2552, +
    +  SCI_ALLOCATEEXTENDEDSTYLES = 2553, +SCI_SETEMPTYSELECTION = 2556, +SCI_GETMARGINOPTIONS = 2557, +
    +  SCI_INDICSETOUTLINEALPHA = 2558, +SCI_INDICGETOUTLINEALPHA = 2559, +SCI_ADDUNDOACTION = 2560, +
    +  SCI_CHARPOSITIONFROMPOINT = 2561, +SCI_CHARPOSITIONFROMPOINTCLOSE = 2562, +SCI_SETMULTIPLESELECTION = 2563, +
    +  SCI_GETMULTIPLESELECTION = 2564, +SCI_SETADDITIONALSELECTIONTYPING = 2565, +SCI_GETADDITIONALSELECTIONTYPING = 2566, +
    +  SCI_SETADDITIONALCARETSBLINK = 2567, +SCI_GETADDITIONALCARETSBLINK = 2568, +SCI_SCROLLRANGE = 2569, +
    +  SCI_SETADDITIONALCARETSVISIBLE = 2608, +SCI_GETADDITIONALCARETSVISIBLE = 2609, +SCI_AUTOCGETCURRENTTEXT = 2610, +
    +  SCI_GETSELECTIONS = 2570, +SCI_CLEARSELECTIONS = 2571, +SCI_SETSELECTION = 2572, +
    +  SCI_ADDSELECTION = 2573, +SCI_SETMAINSELECTION = 2574, +SCI_GETMAINSELECTION = 2575, +
    +  SCI_SETSELECTIONNCARET = 2576, +SCI_GETSELECTIONNCARET = 2577, +SCI_SETSELECTIONNANCHOR = 2578, +
    +  SCI_GETSELECTIONNANCHOR = 2579, +SCI_SETSELECTIONNCARETVIRTUALSPACE = 2580, +SCI_GETSELECTIONNCARETVIRTUALSPACE = 2581, +
    +  SCI_SETSELECTIONNANCHORVIRTUALSPACE = 2582, +SCI_GETSELECTIONNANCHORVIRTUALSPACE = 2583, +SCI_SETSELECTIONNSTART = 2584, +
    +  SCI_GETSELECTIONNSTART = 2585, +SCI_SETSELECTIONNEND = 2586, +SCI_GETSELECTIONNEND = 2587, +
    +  SCI_SETRECTANGULARSELECTIONCARET = 2588, +SCI_GETRECTANGULARSELECTIONCARET = 2589, +SCI_SETRECTANGULARSELECTIONANCHOR = 2590, +
    +  SCI_GETRECTANGULARSELECTIONANCHOR = 2591, +SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2592, +SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2593, +
    +  SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2594, +SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2595, +SCI_SETVIRTUALSPACEOPTIONS = 2596, +
    +  SCI_GETVIRTUALSPACEOPTIONS = 2597, +SCI_SETRECTANGULARSELECTIONMODIFIER = 2598, +SCI_GETRECTANGULARSELECTIONMODIFIER = 2599, +
    +  SCI_SETADDITIONALSELFORE = 2600, +SCI_SETADDITIONALSELBACK = 2601, +SCI_SETADDITIONALSELALPHA = 2602, +
    +  SCI_GETADDITIONALSELALPHA = 2603, +SCI_SETADDITIONALCARETFORE = 2604, +SCI_GETADDITIONALCARETFORE = 2605, +
    +  SCI_ROTATESELECTION = 2606, +SCI_SWAPMAINANCHORCARET = 2607, +SCI_SETFONTQUALITY = 2611, +
    +  SCI_GETFONTQUALITY = 2612, +SCI_SETFIRSTVISIBLELINE = 2613, +SCI_SETMULTIPASTE = 2614, +
    +  SCI_GETMULTIPASTE = 2615, +SCI_GETTAG = 2616, +SCI_CHANGELEXERSTATE = 2617, +
    +  SCI_CONTRACTEDFOLDNEXT = 2618, +SCI_VERTICALCENTRECARET = 2619, +SCI_MOVESELECTEDLINESUP = 2620, +
    +  SCI_MOVESELECTEDLINESDOWN = 2621, +SCI_SETIDENTIFIER = 2622, +SCI_GETIDENTIFIER = 2623, +
    +  SCI_RGBAIMAGESETWIDTH = 2624, +SCI_RGBAIMAGESETHEIGHT = 2625, +SCI_MARKERDEFINERGBAIMAGE = 2626, +
    +  SCI_REGISTERRGBAIMAGE = 2627, +SCI_SCROLLTOSTART = 2628, +SCI_SCROLLTOEND = 2629, +
    +  SCI_SETTECHNOLOGY = 2630, +SCI_GETTECHNOLOGY = 2631, +SCI_CREATELOADER = 2632, +
    +  SCI_COUNTCHARACTERS = 2633, +SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR = 2634, +SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR = 2635, +
    +  SCI_FINDINDICATORSHOW = 2640, +SCI_FINDINDICATORFLASH = 2641, +SCI_FINDINDICATORHIDE = 2642, +
    +  SCI_GETRANGEPOINTER = 2643, +SCI_GETGAPPOSITION = 2644, +SCI_DELETERANGE = 2645, +
    +  SCI_GETWORDCHARS = 2646, +SCI_GETWHITESPACECHARS = 2647, +SCI_SETPUNCTUATIONCHARS = 2648, +
    +  SCI_GETPUNCTUATIONCHARS = 2649, +SCI_GETSELECTIONEMPTY = 2650, +SCI_RGBAIMAGESETSCALE = 2651, +
    +  SCI_VCHOMEDISPLAY = 2652, +SCI_GETCARETLINEVISIBLEALWAYS = 2654, +SCI_SETCARETLINEVISIBLEALWAYS = 2655, +
    +  SCI_VCHOMEDISPLAYEXTEND = 2653, +SCI_AUTOCSETORDER = 2660, +SCI_AUTOCGETORDER = 2661, +
    +  SCI_FOLDALL = 2662, +SCI_SETAUTOMATICFOLD = 2663, +SCI_GETAUTOMATICFOLD = 2664, +
    +  SCI_SETREPRESENTATION = 2665, +SCI_GETREPRESENTATION = 2666, +SCI_CLEARREPRESENTATION = 2667, +
    +  SCI_SETMOUSESELECTIONRECTANGULARSWITCH = 2668, +SCI_GETMOUSESELECTIONRECTANGULARSWITCH = 2669, +SCI_POSITIONRELATIVE = 2670, +
    +  SCI_STARTRECORD = 3001, +SCI_STOPRECORD = 3002, +SCI_SETLEXER = 4001, +
    +  SCI_GETLEXER = 4002, +SCI_COLOURISE = 4003, +SCI_SETPROPERTY = 4004, +
    +  SCI_SETKEYWORDS = 4005, +SCI_SETLEXERLANGUAGE = 4006, +SCI_LOADLEXERLIBRARY = 4007, +
    +  SCI_GETPROPERTY = 4008, +SCI_GETPROPERTYEXPANDED = 4009, +SCI_GETPROPERTYINT = 4010, +
    +  SCI_GETSTYLEBITSNEEDED = 4011, +SCI_GETLEXERLANGUAGE = 4012, +SCI_PRIVATELEXERCALL = 4013, +
    +  SCI_PROPERTYNAMES = 4014, +SCI_PROPERTYTYPE = 4015, +SCI_DESCRIBEPROPERTY = 4016, +
    +  SCI_DESCRIBEKEYWORDSETS = 4017 +
    + } +
  • enum { SC_ALPHA_TRANSPARENT = 0, +SC_ALPHA_OPAQUE = 255, +SC_ALPHA_NOALPHA = 256 + } +
  • enum { SC_CARETSTICKY_OFF = 0, +SC_CARETSTICKY_ON = 1, +SC_CARETSTICKY_WHITESPACE = 2 + } +
  • enum {
    +  SC_EFF_QUALITY_MASK = 0x0f, +SC_EFF_QUALITY_DEFAULT = 0, +SC_EFF_QUALITY_NON_ANTIALIASED = 1, +
    +  SC_EFF_QUALITY_ANTIALIASED = 2, +SC_EFF_QUALITY_LCD_OPTIMIZED = 3 +
    + } +
  • enum { SC_MARGINOPTION_NONE = 0x00, +SC_MARGINOPTION_SUBLINESELECT = 0x01 + } +
  • enum { SC_MULTIPASTE_ONCE = 0, +SC_MULTIPASTE_EACH = 1 + } +
  • enum { SC_TYPE_BOOLEAN = 0, +SC_TYPE_INTEGER = 1, +SC_TYPE_STRING = 2 + } +
  • enum {
    +  SC_UPDATE_CONTENT = 0x01, +SC_UPDATE_SELECTION = 0x02, +SC_UPDATE_V_SCROLL = 0x04, +
    +  SC_UPDATE_H_SCROLL = 0x08 +
    + } +
  • enum {
    +  SC_WRAPVISUALFLAG_NONE = 0x0000, +SC_WRAPVISUALFLAG_END = 0x0001, +SC_WRAPVISUALFLAG_START = 0x0002, +
    +  SC_WRAPVISUALFLAG_MARGIN = 0x0004 +
    + } +
  • enum { SC_WRAPVISUALFLAGLOC_DEFAULT = 0x0000, +SC_WRAPVISUALFLAGLOC_END_BY_TEXT = 0x0001, +SC_WRAPVISUALFLAGLOC_START_BY_TEXT = 0x0002 + } +
  • enum {
    +  SC_SEL_STREAM = 0, +SC_SEL_RECTANGLE = 1, +SC_SEL_LINES = 2, +
    +  SC_SEL_THIN = 3 +
    + } +
  • enum { SCVS_NONE = 0, +SCVS_RECTANGULARSELECTION = 1, +SCVS_USERACCESSIBLE = 2 + } +
  • enum { SCWS_INVISIBLE = 0, +SCWS_VISIBLEALWAYS = 1, +SCWS_VISIBLEAFTERINDENT = 2 + } +
  • enum { SC_EOL_CRLF = 0, +SC_EOL_CR = 1, +SC_EOL_LF = 2 + } +
  • enum { SC_CP_DBCS = 1, +SC_CP_UTF8 = 65001 + } +
  • enum {
    +  SC_MARK_CIRCLE = 0, +SC_MARK_ROUNDRECT = 1, +SC_MARK_ARROW = 2, +
    +  SC_MARK_SMALLRECT = 3, +SC_MARK_SHORTARROW = 4, +SC_MARK_EMPTY = 5, +
    +  SC_MARK_ARROWDOWN = 6, +SC_MARK_MINUS = 7, +SC_MARK_PLUS = 8, +
    +  SC_MARK_VLINE = 9, +SC_MARK_LCORNER = 10, +SC_MARK_TCORNER = 11, +
    +  SC_MARK_BOXPLUS = 12, +SC_MARK_BOXPLUSCONNECTED = 13, +SC_MARK_BOXMINUS = 14, +
    +  SC_MARK_BOXMINUSCONNECTED = 15, +SC_MARK_LCORNERCURVE = 16, +SC_MARK_TCORNERCURVE = 17, +
    +  SC_MARK_CIRCLEPLUS = 18, +SC_MARK_CIRCLEPLUSCONNECTED = 19, +SC_MARK_CIRCLEMINUS = 20, +
    +  SC_MARK_CIRCLEMINUSCONNECTED = 21, +SC_MARK_BACKGROUND = 22, +SC_MARK_DOTDOTDOT = 23, +
    +  SC_MARK_ARROWS = 24, +SC_MARK_PIXMAP = 25, +SC_MARK_FULLRECT = 26, +
    +  SC_MARK_LEFTRECT = 27, +SC_MARK_AVAILABLE = 28, +SC_MARK_UNDERLINE = 29, +
    +  SC_MARK_RGBAIMAGE = 30, +SC_MARK_CHARACTER = 10000 +
    + } +
  • enum {
    +  SC_MARKNUM_FOLDEREND = 25, +SC_MARKNUM_FOLDEROPENMID = 26, +SC_MARKNUM_FOLDERMIDTAIL = 27, +
    +  SC_MARKNUM_FOLDERTAIL = 28, +SC_MARKNUM_FOLDERSUB = 29, +SC_MARKNUM_FOLDER = 30, +
    +  SC_MARKNUM_FOLDEROPEN = 31, +SC_MASK_FOLDERS = 0xfe000000 +
    + } +
  • enum {
    +  SC_MARGIN_SYMBOL = 0, +SC_MARGIN_NUMBER = 1, +SC_MARGIN_BACK = 2, +
    +  SC_MARGIN_FORE = 3, +SC_MARGIN_TEXT = 4, +SC_MARGIN_RTEXT = 5 +
    + } +
  • enum {
    +  STYLE_DEFAULT = 32, +STYLE_LINENUMBER = 33, +STYLE_BRACELIGHT = 34, +
    +  STYLE_BRACEBAD = 35, +STYLE_CONTROLCHAR = 36, +STYLE_INDENTGUIDE = 37, +
    +  STYLE_CALLTIP = 38, +STYLE_LASTPREDEFINED = 39, +STYLE_MAX = 255 +
    + } +
  • enum {
    +  SC_CHARSET_ANSI = 0, +SC_CHARSET_DEFAULT = 1, +SC_CHARSET_BALTIC = 186, +
    +  SC_CHARSET_CHINESEBIG5 = 136, +SC_CHARSET_EASTEUROPE = 238, +SC_CHARSET_GB2312 = 134, +
    +  SC_CHARSET_GREEK = 161, +SC_CHARSET_HANGUL = 129, +SC_CHARSET_MAC = 77, +
    +  SC_CHARSET_OEM = 255, +SC_CHARSET_RUSSIAN = 204, +SC_CHARSET_SHIFTJIS = 128, +
    +  SC_CHARSET_SYMBOL = 2, +SC_CHARSET_TURKISH = 162, +SC_CHARSET_JOHAB = 130, +
    +  SC_CHARSET_HEBREW = 177, +SC_CHARSET_ARABIC = 178, +SC_CHARSET_VIETNAMESE = 163, +
    +  SC_CHARSET_THAI = 222, +SC_CHARSET_8859_15 = 1000 +
    + } +
  • enum { SC_CASE_MIXED = 0, +SC_CASE_UPPER = 1, +SC_CASE_LOWER = 2 + } +
  • enum {
    +  SC_IV_NONE = 0, +SC_IV_REAL = 1, +SC_IV_LOOKFORWARD = 2, +
    +  SC_IV_LOOKBOTH = 3 +
    + } +
  • enum {
    +  INDIC_PLAIN = 0, +INDIC_SQUIGGLE = 1, +INDIC_TT = 2, +
    +  INDIC_DIAGONAL = 3, +INDIC_STRIKE = 4, +INDIC_HIDDEN = 5, +
    +  INDIC_BOX = 6, +INDIC_ROUNDBOX = 7, +INDIC_STRAIGHTBOX = 8, +
    +  INDIC_DASH = 9, +INDIC_DOTS = 10, +INDIC_SQUIGGLELOW = 11, +
    +  INDIC_DOTBOX = 12, +INDIC_SQUIGGLEPIXMAP = 13, +INDIC_COMPOSITIONTHICK = 14, +
    +  INDIC_CONTAINER = 8, +INDIC_MAX = 31, +INDIC0_MASK = 0x20, +
    +  INDIC1_MASK = 0x40, +INDIC2_MASK = 0x80, +INDICS_MASK = 0xe0 +
    + } +
  • enum {
    +  SC_PRINT_NORMAL = 0, +SC_PRINT_INVERTLIGHT = 1, +SC_PRINT_BLACKONWHITE = 2, +
    +  SC_PRINT_COLOURONWHITE = 3, +SC_PRINT_COLOURONWHITEDEFAULTBG = 4 +
    + } +
  • enum {
    +  SCFIND_WHOLEWORD = 2, +SCFIND_MATCHCASE = 4, +SCFIND_WORDSTART = 0x00100000, +
    +  SCFIND_REGEXP = 0x00200000, +SCFIND_POSIX = 0x00400000 +
    + } +
  • enum {
    +  SC_FOLDLEVELBASE = 0x00400, +SC_FOLDLEVELWHITEFLAG = 0x01000, +SC_FOLDLEVELHEADERFLAG = 0x02000, +
    +  SC_FOLDLEVELNUMBERMASK = 0x00fff +
    + } +
  • enum {
    +  SC_FOLDFLAG_LINEBEFORE_EXPANDED = 0x0002, +SC_FOLDFLAG_LINEBEFORE_CONTRACTED = 0x0004, +SC_FOLDFLAG_LINEAFTER_EXPANDED = 0x0008, +
    +  SC_FOLDFLAG_LINEAFTER_CONTRACTED = 0x0010, +SC_FOLDFLAG_LEVELNUMBERS = 0x0040 +
    + } +
  • enum { SC_TIME_FOREVER = 10000000 + } +
  • enum { SC_WRAP_NONE = 0, +SC_WRAP_WORD = 1, +SC_WRAP_CHAR = 2 + } +
  • enum { SC_WRAPINDENT_FIXED = 0, +SC_WRAPINDENT_SAME = 1, +SC_WRAPINDENT_INDENT = 2 + } +
  • enum {
    +  SC_CACHE_NONE = 0, +SC_CACHE_CARET = 1, +SC_CACHE_PAGE = 2, +
    +  SC_CACHE_DOCUMENT = 3 +
    + } +
  • enum { ANNOTATION_HIDDEN = 0, +ANNOTATION_STANDARD = 1, +ANNOTATION_BOXED = 2 + } +
  • enum { EDGE_NONE = 0, +EDGE_LINE = 1, +EDGE_BACKGROUND = 2 + } +
  • enum {
    +  SC_CURSORNORMAL = -1, +SC_CURSORARROW = 2, +SC_CURSORWAIT = 4, +
    +  SC_CURSORREVERSEARROW = 7 +
    + } +
  • enum { UNDO_MAY_COALESCE = 1 + } +
  • enum { VISIBLE_SLOP = 0x01, +VISIBLE_STRICT = 0x04 + } +
  • enum {
    +  CARET_SLOP = 0x01, +CARET_STRICT = 0x04, +CARET_JUMPS = 0x10, +
    +  CARET_EVEN = 0x08 +
    + } +
  • enum { CARETSTYLE_INVISIBLE = 0, +CARETSTYLE_LINE = 1, +CARETSTYLE_BLOCK = 2 + } +
  • enum {
    +  SC_MOD_INSERTTEXT = 0x1, +SC_MOD_DELETETEXT = 0x2, +SC_MOD_CHANGESTYLE = 0x4, +
    +  SC_MOD_CHANGEFOLD = 0x8, +SC_PERFORMED_USER = 0x10, +SC_PERFORMED_UNDO = 0x20, +
    +  SC_PERFORMED_REDO = 0x40, +SC_MULTISTEPUNDOREDO = 0x80, +SC_LASTSTEPINUNDOREDO = 0x100, +
    +  SC_MOD_CHANGEMARKER = 0x200, +SC_MOD_BEFOREINSERT = 0x400, +SC_MOD_BEFOREDELETE = 0x800, +
    +  SC_MULTILINEUNDOREDO = 0x1000, +SC_STARTACTION = 0x2000, +SC_MOD_CHANGEINDICATOR = 0x4000, +
    +  SC_MOD_CHANGELINESTATE = 0x8000, +SC_MOD_CHANGEMARGIN = 0x10000, +SC_MOD_CHANGEANNOTATION = 0x20000, +
    +  SC_MOD_CONTAINER = 0x40000, +SC_MOD_LEXERSTATE = 0x80000, +SC_MODEVENTMASKALL = 0xfffff +
    + } +
  • enum {
    +  SCK_DOWN = 300, +SCK_UP = 301, +SCK_LEFT = 302, +
    +  SCK_RIGHT = 303, +SCK_HOME = 304, +SCK_END = 305, +
    +  SCK_PRIOR = 306, +SCK_NEXT = 307, +SCK_DELETE = 308, +
    +  SCK_INSERT = 309, +SCK_ESCAPE = 7, +SCK_BACK = 8, +
    +  SCK_TAB = 9, +SCK_RETURN = 13, +SCK_ADD = 310, +
    +  SCK_SUBTRACT = 311, +SCK_DIVIDE = 312, +SCK_WIN = 313, +
    +  SCK_RWIN = 314, +SCK_MENU = 315 +
    + } +
  • enum {
    +  SCMOD_NORM = 0, +SCMOD_SHIFT = 1, +SCMOD_CTRL = 2, +
    +  SCMOD_ALT = 4, +SCMOD_SUPER = 8, +SCMOD_META = 16 +
    + } +
  • enum {
    +  SCLEX_CONTAINER = 0, +SCLEX_NULL = 1, +SCLEX_PYTHON = 2, +
    +  SCLEX_CPP = 3, +SCLEX_HTML = 4, +SCLEX_XML = 5, +
    +  SCLEX_PERL = 6, +SCLEX_SQL = 7, +SCLEX_VB = 8, +
    +  SCLEX_PROPERTIES = 9, +SCLEX_ERRORLIST = 10, +SCLEX_MAKEFILE = 11, +
    +  SCLEX_BATCH = 12, +SCLEX_LATEX = 14, +SCLEX_LUA = 15, +
    +  SCLEX_DIFF = 16, +SCLEX_CONF = 17, +SCLEX_PASCAL = 18, +
    +  SCLEX_AVE = 19, +SCLEX_ADA = 20, +SCLEX_LISP = 21, +
    +  SCLEX_RUBY = 22, +SCLEX_EIFFEL = 23, +SCLEX_EIFFELKW = 24, +
    +  SCLEX_TCL = 25, +SCLEX_NNCRONTAB = 26, +SCLEX_BULLANT = 27, +
    +  SCLEX_VBSCRIPT = 28, +SCLEX_ASP = SCLEX_HTML, +SCLEX_PHP = SCLEX_HTML, +
    +  SCLEX_BAAN = 31, +SCLEX_MATLAB = 32, +SCLEX_SCRIPTOL = 33, +
    +  SCLEX_ASM = 34, +SCLEX_CPPNOCASE = 35, +SCLEX_FORTRAN = 36, +
    +  SCLEX_F77 = 37, +SCLEX_CSS = 38, +SCLEX_POV = 39, +
    +  SCLEX_LOUT = 40, +SCLEX_ESCRIPT = 41, +SCLEX_PS = 42, +
    +  SCLEX_NSIS = 43, +SCLEX_MMIXAL = 44, +SCLEX_CLW = 45, +
    +  SCLEX_CLWNOCASE = 46, +SCLEX_LOT = 47, +SCLEX_YAML = 48, +
    +  SCLEX_TEX = 49, +SCLEX_METAPOST = 50, +SCLEX_POWERBASIC = 51, +
    +  SCLEX_FORTH = 52, +SCLEX_ERLANG = 53, +SCLEX_OCTAVE = 54, +
    +  SCLEX_MSSQL = 55, +SCLEX_VERILOG = 56, +SCLEX_KIX = 57, +
    +  SCLEX_GUI4CLI = 58, +SCLEX_SPECMAN = 59, +SCLEX_AU3 = 60, +
    +  SCLEX_APDL = 61, +SCLEX_BASH = 62, +SCLEX_ASN1 = 63, +
    +  SCLEX_VHDL = 64, +SCLEX_CAML = 65, +SCLEX_BLITZBASIC = 66, +
    +  SCLEX_PUREBASIC = 67, +SCLEX_HASKELL = 68, +SCLEX_PHPSCRIPT = 69, +
    +  SCLEX_TADS3 = 70, +SCLEX_REBOL = 71, +SCLEX_SMALLTALK = 72, +
    +  SCLEX_FLAGSHIP = 73, +SCLEX_CSOUND = 74, +SCLEX_FREEBASIC = 75, +
    +  SCLEX_INNOSETUP = 76, +SCLEX_OPAL = 77, +SCLEX_SPICE = 78, +
    +  SCLEX_D = 79, +SCLEX_CMAKE = 80, +SCLEX_GAP = 81, +
    +  SCLEX_PLM = 82, +SCLEX_PROGRESS = 83, +SCLEX_ABAQUS = 84, +
    +  SCLEX_ASYMPTOTE = 85, +SCLEX_R = 86, +SCLEX_MAGIK = 87, +
    +  SCLEX_POWERSHELL = 88, +SCLEX_MYSQL = 89, +SCLEX_PO = 90, +
    +  SCLEX_TAL = 91, +SCLEX_COBOL = 92, +SCLEX_TACL = 93, +
    +  SCLEX_SORCUS = 94, +SCLEX_POWERPRO = 95, +SCLEX_NIMROD = 96, +
    +  SCLEX_SML = 97, +SCLEX_MARKDOWN = 98, +SCLEX_TXT2TAGS = 99, +
    +  SCLEX_A68K = 100, +SCLEX_MODULA = 101, +SCLEX_COFFEESCRIPT = 102, +
    +  SCLEX_TCMD = 103, +SCLEX_AVS = 104, +SCLEX_ECL = 105, +
    +  SCLEX_OSCRIPT = 106, +SCLEX_VISUALPROLOG = 107, +SCLEX_LITERATEHASKELL = 108, +
    +  SCLEX_STTXT = 109, +SCLEX_KVIRC = 110, +SCLEX_RUST = 111 +
    + } +
  • enum { SC_WEIGHT_NORMAL = 400, +SC_WEIGHT_SEMIBOLD = 600, +SC_WEIGHT_BOLD = 700 + } +
  • enum { SC_TECHNOLOGY_DEFAULT = 0, +SC_TECHNOLOGY_DIRECTWRITE = 1 + } +
  • enum { SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE = 0, +SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE = 1 + } +
  • enum { SC_FONT_SIZE_MULTIPLIER = 100 + } +
  • enum { SC_FOLDACTION_CONTRACT = 0, +SC_FOLDACTION_EXPAND = 1, +SC_FOLDACTION_TOGGLE = 2 + } +
  • enum { SC_AUTOMATICFOLD_SHOW = 0x0001, +SC_AUTOMATICFOLD_CLICK = 0x0002, +SC_AUTOMATICFOLD_CHANGE = 0x0004 + } +
  • enum { SC_ORDER_PRESORTED = 0, +SC_ORDER_PERFORMSORT = 1, +SC_ORDER_CUSTOM = 2 + } +
+

+Signals

+ +

+Public Member Functions

+ +

+Static Public Member Functions

+ +

+Protected Types

+
    +
  • +typedef QCString ScintillaBytes +
+

+Protected Member Functions

+ +

Detailed Description

+

The QsciScintillaBase class implements the Scintilla editor widget and its low-level API.

+

Scintilla (http://www.scintilla.org) is a powerful C++ editor class that supports many features including syntax styling, error indicators, code completion and call tips. It is particularly useful as a programmer's editor.

+

QsciScintillaBase is a port to Qt of Scintilla. It implements the standard Scintilla API which consists of a number of messages each taking up to two arguments.

+

See QsciScintilla for the implementation of a higher level API that is more consistent with the rest of the Qt toolkit.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

The low-level Scintilla API is implemented as a set of messages each of which takes up to two parameters (wParam and lParam) and optionally return a value. This enum defines all the possible messages.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SCI_ADDTEXT  +

This message appends some text to the end of the document. wParam is the length of the text. lParam is the text to be appended.

+
SCI_GETCURRENTPOS  +

This message returns the current position.

+
See also:
SCI_SETCURRENTPOS
+
SCI_GETANCHOR  +

This message returns the anchor.

+
See also:
SCI_SETANCHOR
+
SCI_SETSAVEPOINT  +

This message marks the current state of the text as the the save point. This is usually done when the text is saved or loaded.

+
See also:
SCN_SAVEPOINTREACHED(), SCN_SAVEPOINTLEFT()
+
SCI_MARKERLINEFROMHANDLE  +

This message returns the line that contains a particular instance of a marker. wParam is the handle of the marker.

+
See also:
SCI_MARKERADD
+
SCI_MARKERDELETEHANDLE  +

This message removes a particular instance of a marker. wParam is the handle of the marker.

+
See also:
SCI_MARKERADD
+
SCI_GOTOPOS  +

This message clears the current selection and sets the current position. wParam is the new current position.

+
See also:
SCI_SETCURRENTPOS
+
SCI_SETANCHOR  +

This message sets the anchor. wParam is the new anchor.

+
See also:
SCI_GETANCHOR
+
SCI_GETENDSTYLED  +

This message returns the character position of the start of the text that needs to be syntax styled.

+
See also:
SCN_STYLENEEDED()
+
SCI_MARKERDEFINE  +

This message sets the symbol used to draw one of 32 markers. Some markers have pre-defined uses, see the SC_MARKNUM_* values. wParam is the number of the marker. lParam is the marker symbol and is one of the SC_MARK_* values.

+
See also:
SCI_MARKERADD, SCI_MARKERDEFINEPIXMAP, SCI_MARKERDEFINERGBAIMAGE
+
SCI_MARKERSETFORE  +

This message sets the foreground colour used to draw a marker. A colour is represented as a 24 bit value. The 8 least significant bits correspond to red, the middle 8 bits correspond to green, and the 8 most significant bits correspond to blue. The default value is 0x000000. wParam is the number of the marker. lParam is the colour.

+
See also:
SCI_MARKERSETBACK
+
SCI_MARKERSETBACK  +

This message sets the background colour used to draw a marker. A colour is represented as a 24 bit value. The 8 least significant bits correspond to red, the middle 8 bits correspond to green, and the 8 most significant bits correspond to blue. The default value is 0xffffff. wParam is the number of the marker. lParam is the colour.

+
See also:
SCI_MARKERSETFORE
+
SCI_MARKERADD  +

This message adds a marker to a line. A handle for the marker is returned which can be used to track the marker's position. wParam is the line number. lParam is the number of the marker.

+
See also:
SCI_MARKERDELETE, SCI_MARKERDELETEALL, SCI_MARKERDELETEHANDLE
+
SCI_MARKERDELETE  +

This message deletes a marker from a line. wParam is the line number. lParam is the number of the marker.

+
See also:
SCI_MARKERADD, SCI_MARKERDELETEALL
+
SCI_MARKERDELETEALL  +

This message deletes all occurences of a marker. wParam is the number of the marker. If wParam is -1 then all markers are removed.

+
See also:
SCI_MARKERADD, SCI_MARKERDELETE
+
SCI_MARKERGET  +

This message returns the 32 bit mask of markers at a line. wParam is the line number.

+
SCI_MARKERNEXT  +

This message looks for the next line to contain at least one marker contained in a 32 bit mask of markers and returns the line number. wParam is the line number to start the search from. lParam is the mask of markers to search for.

+
See also:
SCI_MARKERPREVIOUS
+
SCI_MARKERPREVIOUS  +

This message looks for the previous line to contain at least one marker contained in a 32 bit mask of markers and returns the line number. wParam is the line number to start the search from. lParam is the mask of markers to search for.

+
See also:
SCI_MARKERNEXT
+
SCI_MARKERDEFINEPIXMAP  +

This message sets the symbol used to draw one of the 32 markers to a pixmap. Pixmaps use the SC_MARK_PIXMAP marker symbol. wParam is the number of the marker. lParam is a pointer to a QPixmap instance. Note that in other ports of Scintilla this is a pointer to either raw or textual XPM image data.

+
See also:
SCI_MARKERDEFINE, SCI_MARKERDEFINERGBAIMAGE
+
SCI_SETMARGINTYPEN  +

This message sets what can be displayed in a margin. wParam is the number of the margin. lParam is the logical or of the SC_MARGIN_* values.

+
See also:
SCI_GETMARGINTYPEN
+
SCI_GETMARGINTYPEN  +

This message returns what can be displayed in a margin. wParam is the number of the margin.

+
See also:
SCI_SETMARGINTYPEN
+
SCI_SETMARGINWIDTHN  +

This message sets the width of a margin in pixels. wParam is the number of the margin. lParam is the new margin width.

+
See also:
SCI_GETMARGINWIDTHN
+
SCI_GETMARGINWIDTHN  +

This message returns the width of a margin in pixels. wParam is the number of the margin.

+
See also:
SCI_SETMARGINWIDTHN
+
SCI_SETMARGINMASKN  +

This message sets the mask of a margin. The mask is a 32 value with one bit for each possible marker. If a bit is set then the corresponding marker is displayed. By default, all markers are displayed. wParam is the number of the margin. lParam is the new margin mask.

+
See also:
SCI_GETMARGINMASKN, SCI_MARKERDEFINE
+
SCI_GETMARGINMASKN  +

This message returns the mask of a margin. wParam is the number of the margin.

+
See also:
SCI_SETMARGINMASKN
+
SCI_SETMARGINSENSITIVEN  +

This message sets the sensitivity of a margin to mouse clicks. wParam is the number of the margin. lParam is non-zero to make the margin sensitive to mouse clicks. When the mouse is clicked the SCN_MARGINCLICK() signal is emitted.

+
See also:
SCI_GETMARGINSENSITIVEN, SCN_MARGINCLICK()
+
SCI_GETMARGINSENSITIVEN  +

This message returns the sensitivity of a margin to mouse clicks. wParam is the number of the margin.

+
See also:
SCI_SETMARGINSENSITIVEN, SCN_MARGINCLICK()
+
SCI_SETMARGINCURSORN  +

This message sets the cursor shape displayed over a margin. wParam is the number of the margin. lParam is the cursor shape, normally either SC_CURSORARROW or SC_CURSORREVERSEARROW. Note that, currently, QScintilla implements both of these as Qt::ArrowCursor.

+
See also:
SCI_GETMARGINCURSORN
+
SCI_GETMARGINCURSORN  +

This message returns the cursor shape displayed over a margin. wParam is the number of the margin.

+
See also:
SCI_SETMARGINCURSORN
+
SCI_GETREADONLY  +

This message returns a non-zero value if the document is read-only.

+
See also:
SCI_SETREADONLY
+
SCI_SETCURRENTPOS  +

This message sets the current position. wParam is the new current position.

+
See also:
SCI_GETCURRENTPOS
+
SCI_GETMODIFY  +

This message returns a non-zero value if the document has been modified.

+
SCI_SETREADONLY  +

This message sets the read-only state of the document. wParam is the new read-only state of the document.

+
See also:
SCI_GETREADONLY
+
SCI_EMPTYUNDOBUFFER  +

This message empties the undo buffer.

+
SCI_SETTEXT  +

This message sets the text of the document. wParam is unused. lParam is the new text of the document.

+
See also:
SCI_GETTEXT
+
SCI_GETTEXT  +

This message gets the text of the document. wParam is size of the buffer that the text is copied to. lParam is the address of the buffer that the text is copied to.

+
See also:
SCI_SETTEXT
+
SCI_GETTEXTLENGTH  +

This message returns the length of the document.

+
SCI_AUTOCSETMAXHEIGHT  +

This message is not implemented.

+
SCI_TEXTWIDTH  +

This message returns the width of some text when rendered in a particular style. wParam is the style number and is one of the STYLE_* values or one of the styles defined by a lexer. lParam is a pointer to the text.

+
SCI_REGISTERIMAGE  +

This message takes a copy of an image and registers it so that it can be refered to by a unique integer identifier. wParam is the image's identifier. lParam is a pointer to a QPixmap instance. Note that in other ports of Scintilla this is a pointer to either raw or textual XPM image data.

+
See also:
SCI_CLEARREGISTEREDIMAGES, SCI_REGISTERRGBAIMAGE
+
SCI_CLEARREGISTEREDIMAGES  +

This message de-registers all currently registered images.

+
See also:
SCI_REGISTERIMAGE, SCI_REGISTERRGBAIMAGE
+
SCI_COPYALLOWLINE  +

This message copies the selection. If the selection is empty then copy the line with the caret.

+
SCI_GETCHARACTERPOINTER  +

This message returns a pointer to the document text. Any subsequent message will invalidate the pointer.

+
SCI_RGBAIMAGESETWIDTH  +

This message sets the width of an RGBA image specified by a future call to SCI_MARKERDEFINERGBAIMAGE or SCI_REGISTERRGBAIMAGE.

+
See also:
SCI_RGBAIMAGESETHEIGHT, SCI_MARKERDEFINERGBAIMAGE, SCI_REGISTERRGBAIMAGE.
+
SCI_RGBAIMAGESETHEIGHT  +

This message sets the height of an RGBA image specified by a future call to SCI_MARKERDEFINERGBAIMAGE or SCI_REGISTERRGBAIMAGE.

+
See also:
SCI_RGBAIMAGESETWIDTH, SCI_MARKERDEFINERGBAIMAGE, SCI_REGISTERRGBAIMAGE.
+
SCI_MARKERDEFINERGBAIMAGE  +

This message sets the symbol used to draw one of the 32 markers to an RGBA image. RGBA images use the SC_MARK_RGBAIMAGE marker symbol. wParam is the number of the marker. lParam is a pointer to a QImage instance. Note that in other ports of Scintilla this is a pointer to raw RGBA image data.

+
See also:
SCI_MARKERDEFINE, SCI_MARKERDEFINEPIXMAP
+
SCI_REGISTERRGBAIMAGE  +

This message takes a copy of an image and registers it so that it can be refered to by a unique integer identifier. wParam is the image's identifier. lParam is a pointer to a QImage instance. Note that in other ports of Scintilla this is a pointer to raw RGBA image data.

+
See also:
SCI_CLEARREGISTEREDIMAGES, SCI_REGISTERIMAGE
+
SCI_SETLEXER  +

This message sets the number of the lexer to use for syntax styling. wParam is the number of the lexer and is one of the SCLEX_* values.

+
SCI_GETLEXER  +

This message returns the number of the lexer being used for syntax styling.

+
SCI_SETLEXERLANGUAGE  +

This message sets the name of the lexer to use for syntax styling. wParam is unused. lParam is the name of the lexer.

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the different selection modes.

+
See also:
SCI_GETSELECTIONMODE, SCI_SETSELECTIONMODE
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the different marker symbols.

+
See also:
SCI_MARKERDEFINE
+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SC_MARK_CIRCLE  +

A circle.

+
SC_MARK_ROUNDRECT  +

A rectangle.

+
SC_MARK_ARROW  +

A triangle pointing to the right.

+
SC_MARK_SMALLRECT  +

A smaller rectangle.

+
SC_MARK_SHORTARROW  +

An arrow pointing to the right.

+
SC_MARK_EMPTY  +

An invisible marker that allows code to track the movement of lines.

+
SC_MARK_ARROWDOWN  +

A triangle pointing down.

+
SC_MARK_MINUS  +

A drawn minus sign.

+
SC_MARK_PLUS  +

A drawn plus sign.

+
SC_MARK_VLINE  +

A vertical line drawn in the background colour.

+
SC_MARK_LCORNER  +

A bottom left corner drawn in the background colour.

+
SC_MARK_TCORNER  +

A vertical line with a centre right horizontal line drawn in the background colour.

+
SC_MARK_BOXPLUS  +

A drawn plus sign in a box.

+
SC_MARK_BOXPLUSCONNECTED  +

A drawn plus sign in a connected box.

+
SC_MARK_BOXMINUS  +

A drawn minus sign in a box.

+
SC_MARK_BOXMINUSCONNECTED  +

A drawn minus sign in a connected box.

+
SC_MARK_LCORNERCURVE  +

A rounded bottom left corner drawn in the background colour.

+
SC_MARK_TCORNERCURVE  +

A vertical line with a centre right curved line drawn in the background colour.

+
SC_MARK_CIRCLEPLUS  +

A drawn plus sign in a circle.

+
SC_MARK_CIRCLEPLUSCONNECTED  +

A drawn plus sign in a connected box.

+
SC_MARK_CIRCLEMINUS  +

A drawn minus sign in a circle.

+
SC_MARK_CIRCLEMINUSCONNECTED  +

A drawn minus sign in a connected circle.

+
SC_MARK_BACKGROUND  +

No symbol is drawn but the line is drawn with the same background color as the marker's.

+
SC_MARK_DOTDOTDOT  +

Three drawn dots.

+
SC_MARK_ARROWS  +

Three drawn arrows pointing right.

+
SC_MARK_PIXMAP  +

An XPM format pixmap.

+
SC_MARK_FULLRECT  +

A full rectangle (ie. the margin background) using the marker's background color.

+
SC_MARK_LEFTRECT  +

A left rectangle (ie. the left part of the margin background) using the marker's background color.

+
SC_MARK_AVAILABLE  +

The value is available for plugins to use.

+
SC_MARK_UNDERLINE  +

The line is underlined using the marker's background color.

+
SC_MARK_RGBAIMAGE  +

A RGBA format image.

+
SC_MARK_CHARACTER  +

Characters can be used as symbols by adding this to the ASCII value of the character.

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines what can be displayed in a margin.

+
See also:
SCI_GETMARGINTYPEN, SCI_SETMARGINTYPEN
+
Enumerator:
+ + + + + + +
SC_MARGIN_SYMBOL  +

The margin can display symbols. Note that all margins can display symbols.

+
SC_MARGIN_NUMBER  +

The margin will display line numbers.

+
SC_MARGIN_BACK  +

The margin's background color will be set to the default background color.

+
SC_MARGIN_FORE  +

The margin's background color will be set to the default foreground color.

+
SC_MARGIN_TEXT  +

The margin will display text.

+
SC_MARGIN_RTEXT  +

The margin will display right justified text.

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the different indentation guide views.

+
See also:
SCI_GETINDENTATIONGUIDES, SCI_SETINDENTATIONGUIDES
+
Enumerator:
+ + + + +
SC_IV_NONE  +

No indentation guides are shown.

+
SC_IV_REAL  +

Indentation guides are shown inside real indentation white space.

+
SC_IV_LOOKFORWARD  +

Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line. If the previous non-empty line was a fold header then indentation guides are shown for one more level of indent than that line. This setting is good for Python.

+
SC_IV_LOOKBOTH  +

Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line or previous non-empty line whichever is the greater. This setting is good for most languages.

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+ +

This enum defines the different modifier keys.

+
Enumerator:
+ + + + + + +
SCMOD_NORM  +

No modifier key.

+
SCMOD_SHIFT  +

Shift key.

+
SCMOD_CTRL  +

Control key (the Command key on OS/X, the Ctrl key on other platforms).

+
SCMOD_ALT  +

Alt key.

+
SCMOD_SUPER  +

This is the same as SCMOD_META on all platforms.

+
SCMOD_META  +

Meta key (the Ctrl key on OS/X, the Windows key on other platforms).

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the different language lexers.

+
See also:
SCI_GETLEXER, SCI_SETLEXER
+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SCLEX_CONTAINER  +

No lexer is selected and the SCN_STYLENEEDED signal is emitted so that the application can style the text as needed. This is the default.

+
SCLEX_NULL  +

Select the null lexer that does no syntax styling.

+
SCLEX_PYTHON  +

Select the Python lexer.

+
SCLEX_CPP  +

Select the C++ lexer.

+
SCLEX_HTML  +

Select the HTML lexer.

+
SCLEX_XML  +

Select the XML lexer.

+
SCLEX_PERL  +

Select the Perl lexer.

+
SCLEX_SQL  +

Select the SQL lexer.

+
SCLEX_VB  +

Select the Visual Basic lexer.

+
SCLEX_PROPERTIES  +

Select the lexer for properties style files.

+
SCLEX_ERRORLIST  +

Select the lexer for error list style files.

+
SCLEX_MAKEFILE  +

Select the Makefile lexer.

+
SCLEX_BATCH  +

Select the Windows batch file lexer.

+
SCLEX_LATEX  +

Select the LaTex lexer.

+
SCLEX_LUA  +

Select the Lua lexer.

+
SCLEX_DIFF  +

Select the lexer for diff output.

+
SCLEX_CONF  +

Select the lexer for Apache configuration files.

+
SCLEX_PASCAL  +

Select the Pascal lexer.

+
SCLEX_AVE  +

Select the Avenue lexer.

+
SCLEX_ADA  +

Select the Ada lexer.

+
SCLEX_LISP  +

Select the Lisp lexer.

+
SCLEX_RUBY  +

Select the Ruby lexer.

+
SCLEX_EIFFEL  +

Select the Eiffel lexer.

+
SCLEX_EIFFELKW  +

Select the Eiffel lexer folding at keywords.

+
SCLEX_TCL  +

Select the Tcl lexer.

+
SCLEX_NNCRONTAB  +

Select the lexer for nnCron files.

+
SCLEX_BULLANT  +

Select the Bullant lexer.

+
SCLEX_VBSCRIPT  +

Select the VBScript lexer.

+
SCLEX_ASP  +

Select the ASP lexer.

+
SCLEX_PHP  +

Select the PHP lexer.

+
SCLEX_BAAN  +

Select the Baan lexer.

+
SCLEX_MATLAB  +

Select the Matlab lexer.

+
SCLEX_SCRIPTOL  +

Select the Scriptol lexer.

+
SCLEX_ASM  +

Select the assembler lexer.

+
SCLEX_CPPNOCASE  +

Select the C++ lexer with case insensitive keywords.

+
SCLEX_FORTRAN  +

Select the FORTRAN lexer.

+
SCLEX_F77  +

Select the FORTRAN77 lexer.

+
SCLEX_CSS  +

Select the CSS lexer.

+
SCLEX_POV  +

Select the POV lexer.

+
SCLEX_LOUT  +

Select the Basser Lout typesetting language lexer.

+
SCLEX_ESCRIPT  +

Select the EScript lexer.

+
SCLEX_PS  +

Select the PostScript lexer.

+
SCLEX_NSIS  +

Select the NSIS lexer.

+
SCLEX_MMIXAL  +

Select the MMIX assembly language lexer.

+
SCLEX_CLW  +

Select the Clarion lexer.

+
SCLEX_CLWNOCASE  +

Select the Clarion lexer with case insensitive keywords.

+
SCLEX_LOT  +

Select the MPT text log file lexer.

+
SCLEX_YAML  +

Select the YAML lexer.

+
SCLEX_TEX  +

Select the TeX lexer.

+
SCLEX_METAPOST  +

Select the Metapost lexer.

+
SCLEX_POWERBASIC  +

Select the PowerBASIC lexer.

+
SCLEX_FORTH  +

Select the Forth lexer.

+
SCLEX_ERLANG  +

Select the Erlang lexer.

+
SCLEX_OCTAVE  +

Select the Octave lexer.

+
SCLEX_MSSQL  +

Select the MS SQL lexer.

+
SCLEX_VERILOG  +

Select the Verilog lexer.

+
SCLEX_KIX  +

Select the KIX-Scripts lexer.

+
SCLEX_GUI4CLI  +

Select the Gui4Cli lexer.

+
SCLEX_SPECMAN  +

Select the Specman E lexer.

+
SCLEX_AU3  +

Select the AutoIt3 lexer.

+
SCLEX_APDL  +

Select the APDL lexer.

+
SCLEX_BASH  +

Select the Bash lexer.

+
SCLEX_ASN1  +

Select the ASN.1 lexer.

+
SCLEX_VHDL  +

Select the VHDL lexer.

+
SCLEX_CAML  +

Select the Caml lexer.

+
SCLEX_BLITZBASIC  +

Select the BlitzBasic lexer.

+
SCLEX_PUREBASIC  +

Select the PureBasic lexer.

+
SCLEX_HASKELL  +

Select the Haskell lexer.

+
SCLEX_PHPSCRIPT  +

Select the PHPScript lexer.

+
SCLEX_TADS3  +

Select the TADS3 lexer.

+
SCLEX_REBOL  +

Select the REBOL lexer.

+
SCLEX_SMALLTALK  +

Select the Smalltalk lexer.

+
SCLEX_FLAGSHIP  +

Select the FlagShip lexer.

+
SCLEX_CSOUND  +

Select the Csound lexer.

+
SCLEX_FREEBASIC  +

Select the FreeBasic lexer.

+
SCLEX_INNOSETUP  +

Select the InnoSetup lexer.

+
SCLEX_OPAL  +

Select the Opal lexer.

+
SCLEX_SPICE  +

Select the Spice lexer.

+
SCLEX_D  +

Select the D lexer.

+
SCLEX_CMAKE  +

Select the CMake lexer.

+
SCLEX_GAP  +

Select the GAP lexer.

+
SCLEX_PLM  +

Select the PLM lexer.

+
SCLEX_PROGRESS  +

Select the Progress lexer.

+
SCLEX_ABAQUS  +

Select the Abaqus lexer.

+
SCLEX_ASYMPTOTE  +

Select the Asymptote lexer.

+
SCLEX_R  +

Select the R lexer.

+
SCLEX_MAGIK  +

Select the MagikSF lexer.

+
SCLEX_POWERSHELL  +

Select the PowerShell lexer.

+
SCLEX_MYSQL  +

Select the MySQL lexer.

+
SCLEX_PO  +

Select the gettext .po file lexer.

+
SCLEX_TAL  +

Select the TAL lexer.

+
SCLEX_COBOL  +

Select the COBOL lexer.

+
SCLEX_TACL  +

Select the TACL lexer.

+
SCLEX_SORCUS  +

Select the Sorcus lexer.

+
SCLEX_POWERPRO  +

Select the PowerPro lexer.

+
SCLEX_NIMROD  +

Select the Nimrod lexer.

+
SCLEX_SML  +

Select the SML lexer.

+
SCLEX_MARKDOWN  +

Select the Markdown lexer.

+
SCLEX_TXT2TAGS  +

Select the txt2tags lexer.

+
SCLEX_A68K  +

Select the 68000 assembler lexer.

+
SCLEX_MODULA  +

Select the Modula 3 lexer.

+
SCLEX_COFFEESCRIPT  +

Select the CoffeeScript lexer.

+
SCLEX_TCMD  +

Select the Take Command lexer.

+
SCLEX_AVS  +

Select the AviSynth lexer.

+
SCLEX_ECL  +

Select the ECL lexer.

+
SCLEX_OSCRIPT  +

Select the OScript lexer.

+
SCLEX_VISUALPROLOG  +

Select the Visual Prolog lexer.

+
SCLEX_LITERATEHASKELL  +

Select the Literal Haskell lexer.

+
SCLEX_STTXT  +

Select the Structured Text lexer.

+
SCLEX_KVIRC  +

Select the KVIrc lexer.

+
SCLEX_RUST  +

Select the Rust lexer.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
QsciScintillaBase::QsciScintillaBase (QWidget * parent = 0,
const char * name = 0,
WFlags f = 0 
)
+
+
+

Construct an empty QsciScintillaBase with parent parent, name name, and widget flags f.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
static QsciScintillaBase* QsciScintillaBase::pool () [static]
+
+
+

Returns a pointer to a QsciScintillaBase instance, or 0 if there isn't one. This can be used by the higher level API to send messages that aren't associated with a particular instance.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam = 0,
long lParam = 0 
) const
+
+
+

Send the Scintilla message msg with the optional parameters wParam and lParam.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
void * lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
const char * lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
const char * lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
const char * wParam,
const char * lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
long wParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
int wParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
long cpMin,
long cpMax,
char * lpstrText 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
const QColor & col 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
const QColor & col 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
QPainter * hdc,
const QRect & rc,
long cpMin,
long cpMax 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
const QPixmap & lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
const QImage & lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + +
QWidget* QsciScintillaBase::viewport () const
+
+
+

Returns the viewport widget. This is the widget that actually contains the text.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintillaBase::QSCN_SELCHANGED (bool yes) [signal]
+
+
+

This signal is emitted when text is selected or de-selected. yes is true if text has been selected and false if text has been deselected.

+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_AUTOCCANCELLED () [signal]
+
+
+

This signal is emitted when the user cancels an auto-completion list.

+
See also:
SCN_AUTOCSELECTION()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_AUTOCCHARDELETED () [signal]
+
+
+

This signal is emitted when the user deletes a character when an auto-completion list is active.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_AUTOCSELECTION (const char * selection,
int position 
) [signal]
+
+
+

This signal is emitted when the user selects an item in an auto-completion list. It is emitted before the selection is inserted. The insertion can be cancelled by sending an SCI_AUTOCANCEL message from a connected slot. selection is the text of the selection. position is the start position of the word being completed.

+
See also:
SCN_AUTOCCANCELLED()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintillaBase::SCN_CALLTIPCLICK (int direction) [signal]
+
+
+

This signal ir emitted when the user clicks on a calltip. direction is 1 if the user clicked on the up arrow, 2 if the user clicked on the down arrow, and 0 if the user clicked elsewhere.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintillaBase::SCN_CHARADDED (int charadded) [signal]
+
+
+

This signal is emitted whenever the user enters an ordinary character into the text. charadded is the character. It can be used to decide to display a call tip or an auto-completion list.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_DOUBLECLICK (int position,
int line,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user double clicks. position is the position in the text where the click occured. line is the number of the line in the text where the click occured. modifiers is the logical or of the modifier keys that were pressed when the user double clicked.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_HOTSPOTCLICK (int position,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user clicks on text in a style with the hotspot attribute set. position is the position in the text where the click occured. modifiers is the logical or of the modifier keys that were pressed when the user clicked.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_HOTSPOTDOUBLECLICK (int position,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user double clicks on text in a style with the hotspot attribute set. position is the position in the text where the double click occured. modifiers is the logical or of the modifier keys that were pressed when the user double clicked.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_HOTSPOTRELEASECLICK (int position,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user releases the mouse button on text in a style with the hotspot attribute set. position is the position in the text where the release occured. modifiers is the logical or of the modifier keys that were pressed when the user released the button.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_INDICATORCLICK (int position,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user clicks on text that has an indicator. position is the position in the text where the click occured. modifiers is the logical or of the modifier keys that were pressed when the user clicked.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_INDICATORRELEASE (int position,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user releases the mouse button on text that has an indicator. position is the position in the text where the release occured. modifiers is the logical or of the modifier keys that were pressed when the user released.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_MACRORECORD (unsigned int,
unsigned long,
void *  
) [signal]
+
+
+

This signal is emitted when a recordable editor command has been executed.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_MARGINCLICK (int position,
int modifiers,
int margin 
) [signal]
+
+
+

This signal is emitted when the user clicks on a sensitive margin. position is the position of the start of the line against which the user clicked. modifiers is the logical or of the modifier keys that were pressed when the user clicked. margin is the number of the margin the user clicked in: 0, 1 or 2.

+
See also:
SCI_GETMARGINSENSITIVEN, SCI_SETMARGINSENSITIVEN
+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_MODIFYATTEMPTRO () [signal]
+
+
+

This signal is emitted when the user attempts to modify read-only text.

+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_PAINTED () [signal]
+
+
+

This signal is emitted when painting has been completed. It is useful to trigger some other change but to have the paint be done first to appear more reponsive to the user.

+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_SAVEPOINTLEFT () [signal]
+
+
+

This signal is emitted when the current state of the text no longer corresponds to the state of the text at the save point.

+
See also:
SCI_SETSAVEPOINT, SCN_SAVEPOINTREACHED()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_SAVEPOINTREACHED () [signal]
+
+
+

This signal is emitted when the current state of the text corresponds to the state of the text at the save point. This allows feedback to be given to the user as to whether the text has been modified since it was last saved.

+
See also:
SCI_SETSAVEPOINT, SCN_SAVEPOINTLEFT()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintillaBase::SCN_STYLENEEDED (int position) [signal]
+
+
+

This signal is emitted when a range of text needs to be syntax styled. The range is from the value returned by the SCI_GETENDSTYLED message and position. It is only emitted if the currently selected lexer is SCLEX_CONTAINER.

+
See also:
SCI_COLOURISE, SCI_GETENDSTYLED
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintillaBase::SCN_UPDATEUI (int updated) [signal]
+
+
+

This signal is emitted when either the text or styling of the text has changed or the selection range or scroll position has changed. updated contains the set of SC_UPDATE_* flags describing the changes since the signal was last emitted.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciStyle-members.html b/doc/html-Qt3/classQsciStyle-members.html new file mode 100644 index 0000000..55430e0 --- /dev/null +++ b/doc/html-Qt3/classQsciStyle-members.html @@ -0,0 +1,96 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciStyle Member List
+
+
+This is the complete list of members for QsciStyle, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apply(QsciScintillaBase *sci) const (defined in QsciStyle)QsciStyle
changeable() const QsciStyle [inline]
color() const QsciStyle [inline]
description() const QsciStyle [inline]
eolFill() const QsciStyle [inline]
font() const QsciStyle [inline]
hotspot() const QsciStyle [inline]
LowerCase enum valueQsciStyle
OriginalCase enum valueQsciStyle
paper() const QsciStyle [inline]
QsciStyle(int style=-1)QsciStyle
QsciStyle(int style, const QString &description, const QColor &color, const QColor &paper, const QFont &font, bool eolFill=false)QsciStyle
refresh()QsciStyle
setChangeable(bool changeable)QsciStyle
setColor(const QColor &color)QsciStyle
setDescription(const QString &description)QsciStyle [inline]
setEolFill(bool fill)QsciStyle
setFont(const QFont &font)QsciStyle
setHotspot(bool hotspot)QsciStyle
setPaper(const QColor &paper)QsciStyle
setTextCase(TextCase text_case)QsciStyle
setVisible(bool visible)QsciStyle
style() const QsciStyle [inline]
TextCase enum nameQsciStyle
textCase() const QsciStyle [inline]
UpperCase enum valueQsciStyle
visible() const QsciStyle [inline]
+ + + + + + diff --git a/doc/html-Qt3/classQsciStyle.html b/doc/html-Qt3/classQsciStyle.html new file mode 100644 index 0000000..976e46a --- /dev/null +++ b/doc/html-Qt3/classQsciStyle.html @@ -0,0 +1,549 @@ + + + + +QScintilla: QsciStyle Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciStyle Class Reference
+
+
+ +

#include <qscistyle.h>

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciStyle class encapsulates all the attributes of a style.

+

Each character of a document has an associated style which determines how the character is displayed, e.g. its font and color. A style is identified by a number. Lexers define styles for each of the language's features so that they are displayed differently. Some style numbers have hard-coded meanings, e.g. the style used for call tips.

+

Member Enumeration Documentation

+ +
+
+ + + + +
enum QsciStyle::TextCase
+
+
+

This enum defines the different ways the displayed case of the text can be changed.

+
Enumerator:
+ + + +
OriginalCase  +

The text is displayed as its original case.

+
UpperCase  +

The text is displayed as upper case.

+
LowerCase  +

The text is displayed as lower case.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciStyle::QsciStyle (int style = -1)
+
+
+

Constructs a QsciStyle instance for style number style. If style is negative then a new style number is automatically allocated.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
QsciStyle::QsciStyle (int style,
const QString & description,
const QColor & color,
const QColor & paper,
const QFont & font,
bool eolFill = false 
)
+
+
+

Constructs a QsciStyle instance for style number style. If style is negative then a new style number is automatically allocated. The styles description, color, paper color, font and end-of-line fill are set to description, color, paper, font and eolFill respectively.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
void QsciStyle::setDescription (const QString & description) [inline]
+
+
+

The style's description is set to description.

+
See also:
description()
+ +
+
+ +
+
+ + + + + + + +
QString QsciStyle::description () const [inline]
+
+
+

Returns the style's description.

+
See also:
setDescription()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setColor (const QColor & color)
+
+
+

The style's foreground color is set to color. The default is taken from the application's default palette.

+
See also:
color()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciStyle::color () const [inline]
+
+
+

Returns the style's foreground color.

+
See also:
setColor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setPaper (const QColor & paper)
+
+
+

The style's background color is set to paper. The default is taken from the application's default palette.

+
See also:
paper()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciStyle::paper () const [inline]
+
+
+

Returns the style's background color.

+
See also:
setPaper()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setFont (const QFont & font)
+
+
+

The style's font is set to font. The default is the application's default font.

+
See also:
font()
+ +
+
+ +
+
+ + + + + + + +
QFont QsciStyle::font () const [inline]
+
+
+

Returns the style's font.

+
See also:
setFont()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setEolFill (bool fill)
+
+
+

The style's end-of-line fill is set to fill. The default is false.

+
See also:
eolFill()
+ +
+
+ +
+
+ + + + + + + +
bool QsciStyle::eolFill () const [inline]
+
+
+

Returns the style's end-of-line fill.

+
See also:
setEolFill()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setTextCase (TextCase text_case)
+
+
+

The style's text case is set to text_case. The default is OriginalCase.

+
See also:
textCase()
+ +
+
+ +
+
+ + + + + + + +
TextCase QsciStyle::textCase () const [inline]
+
+
+

Returns the style's text case.

+
See also:
setTextCase()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setVisible (bool visible)
+
+
+

The style's visibility is set to visible. The default is true.

+
See also:
visible()
+ +
+
+ +
+
+ + + + + + + +
bool QsciStyle::visible () const [inline]
+
+
+

Returns the style's visibility.

+
See also:
setVisible()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setChangeable (bool changeable)
+
+
+

The style's changeability is set to changeable. The default is true.

+
See also:
changeable()
+ +
+
+ +
+
+ + + + + + + +
bool QsciStyle::changeable () const [inline]
+
+
+

Returns the style's changeability.

+
See also:
setChangeable()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setHotspot (bool hotspot)
+
+
+

The style's sensitivity to mouse clicks is set to hotspot. The default is false.

+
See also:
hotspot()
+ +
+
+ +
+
+ + + + + + + +
bool QsciStyle::hotspot () const [inline]
+
+
+

Returns the style's sensitivity to mouse clicks.

+
See also:
setHotspot()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classQsciStyledText-members.html b/doc/html-Qt3/classQsciStyledText-members.html new file mode 100644 index 0000000..79c2920 --- /dev/null +++ b/doc/html-Qt3/classQsciStyledText-members.html @@ -0,0 +1,75 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciStyledText Member List
+
+
+This is the complete list of members for QsciStyledText, including all inherited members. + + + + + + +
apply(QsciScintillaBase *sci) const (defined in QsciStyledText)QsciStyledText
QsciStyledText(const QString &text, int style)QsciStyledText
QsciStyledText(const QString &text, const QsciStyle &style)QsciStyledText
QsciStyledText() (defined in QsciStyledText)QsciStyledText [inline]
style() const QsciStyledText
text() const QsciStyledText [inline]
+ + + + + + diff --git a/doc/html-Qt3/classQsciStyledText.html b/doc/html-Qt3/classQsciStyledText.html new file mode 100644 index 0000000..f33b560 --- /dev/null +++ b/doc/html-Qt3/classQsciStyledText.html @@ -0,0 +1,145 @@ + + + + +QScintilla: QsciStyledText Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciStyledText Class Reference
+
+
+ +

#include <qscistyledtext.h>

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciStyledText class is a container for a piece of text and the style used to display the text.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciStyledText::QsciStyledText (const QString & text,
int style 
)
+
+
+

Constructs a QsciStyledText instance for text text and style number style.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciStyledText::QsciStyledText (const QString & text,
const QsciStylestyle 
)
+
+
+

Constructs a QsciStyledText instance for text text and style style.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt3/classes.html b/doc/html-Qt3/classes.html new file mode 100644 index 0000000..fe601bf --- /dev/null +++ b/doc/html-Qt3/classes.html @@ -0,0 +1,94 @@ + + + + +QScintilla: Class Index + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
Class Index
+
+
+
A | C | D | L | M | P | S
+ + + + + + + + + + + + + + + + +
  A  
+
QsciLexerAVS   QsciLexerHTML   QsciLexerProperties   
  P  
+
QsciLexerBash   QsciLexerIDL   QsciLexerPython   
QsciAbstractAPIs   QsciLexerBatch   QsciLexerJava   QsciLexerRuby   QsciPrinter   
QsciAPIs   QsciLexerCMake   QsciLexerJavaScript   QsciLexerSpice   
  S  
+
  C  
+
QsciLexerCoffeeScript   QsciLexerLua   QsciLexerSQL   
QsciLexerCPP   QsciLexerMakefile   QsciLexerTCL   QsciScintilla   
QsciCommand   QsciLexerCSharp   QsciLexerMatlab   QsciLexerTeX   QsciScintillaBase   
QsciCommandSet   QsciLexerCSS   QsciLexerOctave   QsciLexerVerilog   QsciStyle   
  D  
+
QsciLexerCustom   QsciLexerPascal   QsciLexerVHDL   QsciStyledText   
QsciLexerD   QsciLexerPerl   QsciLexerXML   
QsciDocument   QsciLexerDiff   QsciLexerPO   QsciLexerYAML   
  L  
+
QsciLexerFortran   QsciLexerPostScript   
  M  
+
QsciLexerFortran77   QsciLexerPOV   
QsciLexer   QsciMacro   
+
A | C | D | L | M | P | S
+
+ + + + + + diff --git a/doc/html-Qt3/closed.png b/doc/html-Qt3/closed.png new file mode 100644 index 0000000000000000000000000000000000000000..b7d4bd9fef2272c74b94762c9e2496177017775e GIT binary patch literal 126 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>1|%O$WD@{VuAVNAAr*{o?>h22DDp4|bgj*t z)u^AqcA-V@guRYpb17F<&b?_~8HV>~XqWvB;^$!VVSTy0!eQcJp_yD7TIQA>7dijs YXf6~H5cs^Q6KEiVr>mdKI;Vst0NsWqGynhq literal 0 HcmV?d00001 diff --git a/doc/html-Qt3/dir_47b4af07057faef408fa20558528d44e.html b/doc/html-Qt3/dir_47b4af07057faef408fa20558528d44e.html new file mode 100644 index 0000000..a1e179c --- /dev/null +++ b/doc/html-Qt3/dir_47b4af07057faef408fa20558528d44e.html @@ -0,0 +1,71 @@ + + + + +QScintilla: /Users/phil/hg/QScintilla2/QScintilla-gpl-2.8.4/Qt3/ Directory Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
Qt3 Directory Reference
+
+
+

+Directories

+ +
+ + + + + + diff --git a/doc/html-Qt3/dir_dc3d54424d2c2d2a2c76580a8d31cb7d.html b/doc/html-Qt3/dir_dc3d54424d2c2d2a2c76580a8d31cb7d.html new file mode 100644 index 0000000..c7723e5 --- /dev/null +++ b/doc/html-Qt3/dir_dc3d54424d2c2d2a2c76580a8d31cb7d.html @@ -0,0 +1,121 @@ + + + + +QScintilla: /Users/phil/hg/QScintilla2/QScintilla-gpl-2.8.4/Qt3/Qsci/ Directory Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
Qsci Directory Reference
+
+
+

+Files

+
    +
  • file qsciabstractapis.h +
  • file qsciapis.h +
  • file qscicommand.h +
  • file qscicommandset.h +
  • file qscidocument.h +
  • file qsciglobal.h +
  • file qscilexer.h +
  • file qscilexeravs.h +
  • file qscilexerbash.h +
  • file qscilexerbatch.h +
  • file qscilexercmake.h +
  • file qscilexercoffeescript.h +
  • file qscilexercpp.h +
  • file qscilexercsharp.h +
  • file qscilexercss.h +
  • file qscilexercustom.h +
  • file qscilexerd.h +
  • file qscilexerdiff.h +
  • file qscilexerfortran.h +
  • file qscilexerfortran77.h +
  • file qscilexerhtml.h +
  • file qscilexeridl.h +
  • file qscilexerjava.h +
  • file qscilexerjavascript.h +
  • file qscilexerlua.h +
  • file qscilexermakefile.h +
  • file qscilexermatlab.h +
  • file qscilexeroctave.h +
  • file qscilexerpascal.h +
  • file qscilexerperl.h +
  • file qscilexerpo.h +
  • file qscilexerpostscript.h +
  • file qscilexerpov.h +
  • file qscilexerproperties.h +
  • file qscilexerpython.h +
  • file qscilexerruby.h +
  • file qscilexerspice.h +
  • file qscilexersql.h +
  • file qscilexertcl.h +
  • file qscilexertex.h +
  • file qscilexerverilog.h +
  • file qscilexervhdl.h +
  • file qscilexerxml.h +
  • file qscilexeryaml.h +
  • file qscimacro.h +
  • file qsciprinter.h +
  • file qsciscintilla.h +
  • file qsciscintillabase.h +
  • file qscistyle.h +
  • file qscistyledtext.h +
+
+ + + + + + diff --git a/doc/html-Qt3/dirs.html b/doc/html-Qt3/dirs.html new file mode 100644 index 0000000..e93a753 --- /dev/null +++ b/doc/html-Qt3/dirs.html @@ -0,0 +1,67 @@ + + + + +QScintilla: Directories + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + +
+
+
+
Directories
+
+
+
This directory hierarchy is sorted roughly, but not completely, alphabetically:
+
+ + + + + + diff --git a/doc/html-Qt3/doxygen.css b/doc/html-Qt3/doxygen.css new file mode 100644 index 0000000..22c7b5c --- /dev/null +++ b/doc/html-Qt3/doxygen.css @@ -0,0 +1,946 @@ +/* The standard CSS for doxygen */ + +body, table, div, p, dl { + font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; + font-size: 12px; +} + +/* @group Heading Levels */ + +h1 { + font-size: 150%; +} + +.title { + font-size: 150%; + font-weight: bold; + margin: 10px 2px; +} + +h2 { + font-size: 120%; +} + +h3 { + font-size: 100%; +} + +dt { + font-weight: bold; +} + +div.multicol { + -moz-column-gap: 1em; + -webkit-column-gap: 1em; + -moz-column-count: 3; + -webkit-column-count: 3; +} + +p.startli, p.startdd, p.starttd { + margin-top: 2px; +} + +p.endli { + margin-bottom: 0px; +} + +p.enddd { + margin-bottom: 4px; +} + +p.endtd { + margin-bottom: 2px; +} + +/* @end */ + +caption { + font-weight: bold; +} + +span.legend { + font-size: 70%; + text-align: center; +} + +h3.version { + font-size: 90%; + text-align: center; +} + +div.qindex, div.navtab{ + background-color: #EBEFF6; + border: 1px solid #A3B4D7; + text-align: center; +} + +div.qindex, div.navpath { + width: 100%; + line-height: 140%; +} + +div.navtab { + margin-right: 15px; +} + +/* @group Link Styling */ + +a { + color: #3D578C; + font-weight: normal; + text-decoration: none; +} + +.contents a:visited { + color: #4665A2; +} + +a:hover { + text-decoration: underline; +} + +a.qindex { + font-weight: bold; +} + +a.qindexHL { + font-weight: bold; + background-color: #9CAFD4; + color: #ffffff; + border: 1px double #869DCA; +} + +.contents a.qindexHL:visited { + color: #ffffff; +} + +a.el { + font-weight: bold; +} + +a.elRef { +} + +a.code { + color: #4665A2; +} + +a.codeRef { + color: #4665A2; +} + +/* @end */ + +dl.el { + margin-left: -1cm; +} + +.fragment { + font-family: monospace, fixed; + font-size: 105%; +} + +pre.fragment { + border: 1px solid #C4CFE5; + background-color: #FBFCFD; + padding: 4px 6px; + margin: 4px 8px 4px 2px; + overflow: auto; + word-wrap: break-word; + font-size: 9pt; + line-height: 125%; +} + +div.ah { + background-color: black; + font-weight: bold; + color: #ffffff; + margin-bottom: 3px; + margin-top: 3px; + padding: 0.2em; + border: solid thin #333; + border-radius: 0.5em; + -webkit-border-radius: .5em; + -moz-border-radius: .5em; + box-shadow: 2px 2px 3px #999; + -webkit-box-shadow: 2px 2px 3px #999; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); + background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000); +} + +div.groupHeader { + margin-left: 16px; + margin-top: 12px; + font-weight: bold; +} + +div.groupText { + margin-left: 16px; + font-style: italic; +} + +body { + background-color: white; + color: black; + margin: 0; +} + +div.contents { + margin-top: 10px; + margin-left: 8px; + margin-right: 8px; +} + +td.indexkey { + background-color: #EBEFF6; + font-weight: bold; + border: 1px solid #C4CFE5; + margin: 2px 0px 2px 0; + padding: 2px 10px; +} + +td.indexvalue { + background-color: #EBEFF6; + border: 1px solid #C4CFE5; + padding: 2px 10px; + margin: 2px 0px; +} + +tr.memlist { + background-color: #EEF1F7; +} + +p.formulaDsp { + text-align: center; +} + +img.formulaDsp { + +} + +img.formulaInl { + vertical-align: middle; +} + +div.center { + text-align: center; + margin-top: 0px; + margin-bottom: 0px; + padding: 0px; +} + +div.center img { + border: 0px; +} + +address.footer { + text-align: right; + padding-right: 12px; +} + +img.footer { + border: 0px; + vertical-align: middle; +} + +/* @group Code Colorization */ + +span.keyword { + color: #008000 +} + +span.keywordtype { + color: #604020 +} + +span.keywordflow { + color: #e08000 +} + +span.comment { + color: #800000 +} + +span.preprocessor { + color: #806020 +} + +span.stringliteral { + color: #002080 +} + +span.charliteral { + color: #008080 +} + +span.vhdldigit { + color: #ff00ff +} + +span.vhdlchar { + color: #000000 +} + +span.vhdlkeyword { + color: #700070 +} + +span.vhdllogic { + color: #ff0000 +} + +/* @end */ + +/* +.search { + color: #003399; + font-weight: bold; +} + +form.search { + margin-bottom: 0px; + margin-top: 0px; +} + +input.search { + font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} +*/ + +td.tiny { + font-size: 75%; +} + +.dirtab { + padding: 4px; + border-collapse: collapse; + border: 1px solid #A3B4D7; +} + +th.dirtab { + background: #EBEFF6; + font-weight: bold; +} + +hr { + height: 0px; + border: none; + border-top: 1px solid #4A6AAA; +} + +hr.footer { + height: 1px; +} + +/* @group Member Descriptions */ + +table.memberdecls { + border-spacing: 0px; + padding: 0px; +} + +.mdescLeft, .mdescRight, +.memItemLeft, .memItemRight, +.memTemplItemLeft, .memTemplItemRight, .memTemplParams { + background-color: #F9FAFC; + border: none; + margin: 4px; + padding: 1px 0 0 8px; +} + +.mdescLeft, .mdescRight { + padding: 0px 8px 4px 8px; + color: #555; +} + +.memItemLeft, .memItemRight, .memTemplParams { + border-top: 1px solid #C4CFE5; +} + +.memItemLeft, .memTemplItemLeft { + white-space: nowrap; +} + +.memItemRight { + width: 100%; +} + +.memTemplParams { + color: #4665A2; + white-space: nowrap; +} + +/* @end */ + +/* @group Member Details */ + +/* Styles for detailed member documentation */ + +.memtemplate { + font-size: 80%; + color: #4665A2; + font-weight: normal; + margin-left: 9px; +} + +.memnav { + background-color: #EBEFF6; + border: 1px solid #A3B4D7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} + +.mempage { + width: 100%; +} + +.memitem { + padding: 0; + margin-bottom: 10px; + margin-right: 5px; +} + +.memname { + white-space: nowrap; + font-weight: bold; + margin-left: 6px; +} + +.memproto, dl.reflist dt { + border-top: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + padding: 6px 0px 6px 0px; + color: #253555; + font-weight: bold; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + /* opera specific markup */ + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + border-top-right-radius: 8px; + border-top-left-radius: 8px; + /* firefox specific markup */ + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + -moz-border-radius-topright: 8px; + -moz-border-radius-topleft: 8px; + /* webkit specific markup */ + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + -webkit-border-top-right-radius: 8px; + -webkit-border-top-left-radius: 8px; + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #E2E8F2; + +} + +.memdoc, dl.reflist dd { + border-bottom: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + padding: 2px 5px; + background-color: #FBFCFD; + border-top-width: 0; + /* opera specific markup */ + border-bottom-left-radius: 8px; + border-bottom-right-radius: 8px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + /* firefox specific markup */ + -moz-border-radius-bottomleft: 8px; + -moz-border-radius-bottomright: 8px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + background-image: -moz-linear-gradient(center top, #FFFFFF 0%, #FFFFFF 60%, #F7F8FB 95%, #EEF1F7); + /* webkit specific markup */ + -webkit-border-bottom-left-radius: 8px; + -webkit-border-bottom-right-radius: 8px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + background-image: -webkit-gradient(linear,center top,center bottom,from(#FFFFFF), color-stop(0.6,#FFFFFF), color-stop(0.60,#FFFFFF), color-stop(0.95,#F7F8FB), to(#EEF1F7)); +} + +dl.reflist dt { + padding: 5px; +} + +dl.reflist dd { + margin: 0px 0px 10px 0px; + padding: 5px; +} + +.paramkey { + text-align: right; +} + +.paramtype { + white-space: nowrap; +} + +.paramname { + color: #602020; + white-space: nowrap; +} +.paramname em { + font-style: normal; +} + +.params, .retval, .exception, .tparams { + border-spacing: 6px 2px; +} + +.params .paramname, .retval .paramname { + font-weight: bold; + vertical-align: top; +} + +.params .paramtype { + font-style: italic; + vertical-align: top; +} + +.params .paramdir { + font-family: "courier new",courier,monospace; + vertical-align: top; +} + + + + +/* @end */ + +/* @group Directory (tree) */ + +/* for the tree view */ + +.ftvtree { + font-family: sans-serif; + margin: 0px; +} + +/* these are for tree view when used as main index */ + +.directory { + font-size: 9pt; + font-weight: bold; + margin: 5px; +} + +.directory h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +/* +The following two styles can be used to replace the root node title +with an image of your choice. Simply uncomment the next two styles, +specify the name of your image and be sure to set 'height' to the +proper pixel height of your image. +*/ + +/* +.directory h3.swap { + height: 61px; + background-repeat: no-repeat; + background-image: url("yourimage.gif"); +} +.directory h3.swap span { + display: none; +} +*/ + +.directory > h3 { + margin-top: 0; +} + +.directory p { + margin: 0px; + white-space: nowrap; +} + +.directory div { + display: none; + margin: 0px; +} + +.directory img { + vertical-align: -30%; +} + +/* these are for tree view when not used as main index */ + +.directory-alt { + font-size: 100%; + font-weight: bold; +} + +.directory-alt h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +.directory-alt > h3 { + margin-top: 0; +} + +.directory-alt p { + margin: 0px; + white-space: nowrap; +} + +.directory-alt div { + display: none; + margin: 0px; +} + +.directory-alt img { + vertical-align: -30%; +} + +/* @end */ + +div.dynheader { + margin-top: 8px; +} + +address { + font-style: normal; + color: #2A3D61; +} + +table.doxtable { + border-collapse:collapse; +} + +table.doxtable td, table.doxtable th { + border: 1px solid #2D4068; + padding: 3px 7px 2px; +} + +table.doxtable th { + background-color: #374F7F; + color: #FFFFFF; + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; + text-align:left; +} + +table.fieldtable { + width: 100%; + margin-bottom: 10px; + border: 1px solid #A8B8D9; + border-spacing: 0px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); + box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); +} + +.fieldtable td, .fieldtable th { + padding: 3px 7px 2px; +} + +.fieldtable td.fieldtype, .fieldtable td.fieldname { + white-space: nowrap; + border-right: 1px solid #A8B8D9; + border-bottom: 1px solid #A8B8D9; + vertical-align: top; +} + +.fieldtable td.fielddoc { + border-bottom: 1px solid #A8B8D9; + width: 100%; +} + +.fieldtable tr:last-child td { + border-bottom: none; +} + +.fieldtable th { + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #E2E8F2; + font-size: 90%; + color: #253555; + padding-bottom: 4px; + padding-top: 5px; + text-align:left; + -moz-border-radius-topleft: 4px; + -moz-border-radius-topright: 4px; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom: 1px solid #A8B8D9; +} + + +.tabsearch { + top: 0px; + left: 10px; + height: 36px; + background-image: url('tab_b.png'); + z-index: 101; + overflow: hidden; + font-size: 13px; +} + +.navpath ul +{ + font-size: 11px; + background-image:url('tab_b.png'); + background-repeat:repeat-x; + height:30px; + line-height:30px; + color:#8AA0CC; + border:solid 1px #C2CDE4; + overflow:hidden; + margin:0px; + padding:0px; +} + +.navpath li +{ + list-style-type:none; + float:left; + padding-left:10px; + padding-right:15px; + background-image:url('bc_s.png'); + background-repeat:no-repeat; + background-position:right; + color:#364D7C; +} + +.navpath li.navelem a +{ + height:32px; + display:block; + text-decoration: none; + outline: none; +} + +.navpath li.navelem a:hover +{ + color:#6884BD; +} + +.navpath li.footer +{ + list-style-type:none; + float:right; + padding-left:10px; + padding-right:15px; + background-image:none; + background-repeat:no-repeat; + background-position:right; + color:#364D7C; + font-size: 8pt; +} + + +div.summary +{ + float: right; + font-size: 8pt; + padding-right: 5px; + width: 50%; + text-align: right; +} + +div.summary a +{ + white-space: nowrap; +} + +div.ingroups +{ + margin-left: 5px; + font-size: 8pt; + padding-left: 5px; + width: 50%; + text-align: left; +} + +div.ingroups a +{ + white-space: nowrap; +} + +div.header +{ + background-image:url('nav_h.png'); + background-repeat:repeat-x; + background-color: #F9FAFC; + margin: 0px; + border-bottom: 1px solid #C4CFE5; +} + +div.headertitle +{ + padding: 5px 5px 5px 7px; +} + +dl +{ + padding: 0 0 0 10px; +} + +dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug +{ + border-left:4px solid; + padding: 0 0 0 6px; +} + +dl.note +{ + border-color: #D0C000; +} + +dl.warning, dl.attention +{ + border-color: #FF0000; +} + +dl.pre, dl.post, dl.invariant +{ + border-color: #00D000; +} + +dl.deprecated +{ + border-color: #505050; +} + +dl.todo +{ + border-color: #00C0E0; +} + +dl.test +{ + border-color: #3030E0; +} + +dl.bug +{ + border-color: #C08050; +} + +#projectlogo +{ + text-align: center; + vertical-align: bottom; + border-collapse: separate; +} + +#projectlogo img +{ + border: 0px none; +} + +#projectname +{ + font: 300% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 2px 0px; +} + +#projectbrief +{ + font: 120% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#projectnumber +{ + font: 50% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#titlearea +{ + padding: 0px; + margin: 0px; + width: 100%; + border-bottom: 1px solid #5373B4; +} + +.image +{ + text-align: center; +} + +.dotgraph +{ + text-align: center; +} + +.mscgraph +{ + text-align: center; +} + +.caption +{ + font-weight: bold; +} + +div.zoom +{ + border: 1px solid #90A5CE; +} + +dl.citelist { + margin-bottom:50px; +} + +dl.citelist dt { + color:#334975; + float:left; + font-weight:bold; + margin-right:10px; + padding:5px; +} + +dl.citelist dd { + margin:2px 0; + padding:5px 0; +} + +@media print +{ + #top { display: none; } + #side-nav { display: none; } + #nav-path { display: none; } + body { overflow:visible; } + h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } + .summary { display: none; } + .memitem { page-break-inside: avoid; } + #doc-content + { + margin-left:0 !important; + height:auto !important; + width:auto !important; + overflow:inherit; + display:inline; + } + pre.fragment + { + overflow: visible; + text-wrap: unrestricted; + white-space: -moz-pre-wrap; /* Moz */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + white-space: pre-wrap; /* CSS3 */ + word-wrap: break-word; /* IE 5.5+ */ + } +} + diff --git a/doc/html-Qt3/doxygen.png b/doc/html-Qt3/doxygen.png new file mode 100644 index 0000000000000000000000000000000000000000..635ed52fce7057ac24df92ec7664088a881fa5d0 GIT binary patch literal 3942 zcmV-s51H_ZP)95ENDh(OT9xpYZC{M(=rqI* z+1erNEr&9zRjUI-4rN=4BBz>P@ys*xOjGRjzVE*Fx_qvyt9d@B@BO*&@8Mq!nM{Tc z_WoM84-~xLreSL9@vgZ{m2dF}`u=^ZF3syQ-s2tnBwCI3ZFvSfI20Wbj236~Urq*8Kfw@RKKfRQTgE>}uUHK^ptamY=o)LU(xy55zNQ(`qZ znZ&$O075mrrInIXQgw4%GCbMD8Vn`3n3$EaRwtP1D{A!Gs=e!L%3;ayv@I{rAw{xw z^x^>EIWQM8ob3m}$(BaupDMV;Ed8w5|i(*e`7rU$TOc&1o7`|!LyN5jHI z7uWAR!v4c2xMp?}QmRYyf>i}tYGU(g=>DW&==J@GbhR z5@BNVY3O$`^D%gk4khm9XpFhuwzxUhi9T=Du4rpVuYRSMPHeDqo+4htnZRU@G9`0& z9~p)CsFl1|t*wjfoTo&%davN^3RfJUhQ{ZZIAcD77X^XsF_iR&ZMQ;p>K5*+*48)x z+=<>nh+6Uq85jOkg>{z>a;+V`s(I;I%*5s+R@9a^wNoZ03(g9-EcH%uHvX&yp7`D#`9Kw>DU3s zjD-VuW_A-K)unlS4O3f>_B%pPONUmI#oyL};Lglp3=04>0eBBEw$D1k-$WTsoi#K* z$7h`NcyRZsZ#w~6I<%~u!^xDofYrzF>zVIj2N>Ijs`mVR(Oy&*9f}<{JtQj8jJT!oEc!NQXBq5y|6ET*N?7ox*E6#{i- z@_DLD^IYTtg|Pg?A~!7@OCd8p^)kxK%VBM84docx$Z{MvO)iiqep@or-N}TEU8$%; zJih?#yJ9)V1s_`}c3XbY9V}nEKwNz8ILmR|v)(w|D@oVG;=i`+$*)!(xH{9#$2Za;pyZ1wgU#)mHl|&8%iwu%yncO z`T32Ib0$D}j`c}}5M@M#7oR&G=QwU!!Ja*P7|NJt1@lo=d{_dY-q_lmDcH7{BHncF zR@^PmcLC6EsN?6N{fV3o8}>?h9X_@;=&-p7%tms7$_{3w(anwek_k&<&)~c$Ar?S> zy9gKavndTmxqAbE?SMgcWhXPENdKdz7ntt55Y3Hs3jjc~uR-#$tR(1a_abv9`-QzG z^J0Fsbd&yruq%xAsxf3rc=T}$Zx|AD%x{Fd=? z{qhl3kG5w-PqVK9-Gru%7UIEw)bt$ZMF|Z6HpmO)F%@GNT8yT|#FuWPxv@@Ic={;6 zU7)e!XG|1dx=kU|&|)+m+$&|Yw92Fa;*MnegXcCf8XsHfqg_F5t)3Jt8)EkXKuY21 zqt%4}@R8hK*(_JO0*H+Pa)6Pp&K49rKNeQEYb*x9WY`!`Vh3|80YF%I`lxv9_!$hD zOh$>zWaRIW!);6`vA$Zp;5lnGyX^^N%YEjCeJMHPolKCE1ttIqK<$0w&LcE8)`_c2 z^H^qf6ACV0t7FLLCsu#mL&Mb8gE@rZE#k+1Nrrxw+{N0^#bN*~!qt2>S4e#jC$a$` ze4@{)$aTEYq_!#2|t@Fj3e?w-XVuG$Z}kAR?_kgJAlZIJ)0{eHw#fybNooA zp02jyYVc&w!}m#BVP>ef2|U^J(A-#O1R#A&><*?Y! zOwml{CnE+aU3JfKE@uzge(qMY{^6siuXFt;+mMbapU;Ppejl=L#>s2#SMBbfP9AFT znEVA=TBtZ6d-GfF>kOxylg>Ek%qTp*h2ze!^^hOsmKOEE6b;maQ>~R>3#z`Zawbik z88OTykU3_!Atg^+vnM=1n}?%<$dHzn)?k&T#RWwb+*y;XNQbYNHKo3wr~&}Qa$id; z6^D*K9RTQZUuQVg)g~P%!BIiv+cXllt)KEP9IN)1udQKf>p|~lXj7K<-9}0Q%i9+K zXaF7qXclE>sf)7)J4_M%V{;(sFT7HN$o0#_qU#Ah1D{ zon=JihPcgG5xHuvQwOXBkt3(iUdx{6Gn|aa>@C9Cqg%rPK(+REZ4>6t3z7m@Aj;0l zSHh&%cKSJ*+WOJGwe?Y7d(9RAy)&NVS6uj}1m@U}jXH3oVQT9E0A)$ZDRdK>;_i;+ z7vbEoI7$1XK6vNxT(_sJ(GM4s92e;gB&Q zDO;(Ve^%gPG&lWW1fUf_=9-Q1%&`s%aD^o`Q2u`WI9V>Qm#D5?SW<)Njmt@aR5@6( zL4cdTo+Jg@>Brm1^_gf%0Z?}1AppR3NdFE5uzdpBZz;{Thd6SI-$gb2}pFAww$*j(2=s{mdz2E;lBvVcrN@}i2bC`Q5Y_;BID^f0J+ACVhyQsLg0@`okIk+i=LJ=3yvI*oASj62 za3C{Pu_fQ+atw!zN{$Shr*_UV=|jp4#CqWeGE?Jb`pq!|5bDES&-Ix=-N>DpydHqW z+-{QS+i)d;uGS)M%Suw9khR}3N82j|S{a#&Tctme0s%mTy<1S|;@M-+S4#o@!qr;r z+w(n=;@43Y_n#dI0Gb(T0{G7k-KY8k`MPM_Bss$?)SK){KJMrwv!vz42_U_Za zX7lDqiU8ZvCAfGpAtfVC5bQrYa4C)M9G$S4D&VqpJ8)lm$t5FAAR%ywf>*~VaivC70RVFXISv4Lx&tk^Cf1)qQ|rxp z*8H>)cgoM;(eKxH14u~~@JopNr9@A z#-yXVG?$es;EPqsn-j?45^L52U=nT#0A^T3JY$&B3EH&%2UHdv3P=_3$!n76!34ks zz^2ii@sXAu8LKYMmG=_^*qtiiOFNlG3?QYtG%wrCZh|)vlj8vq3sw~f1b8;_TMB>z zPSyDQy_9bbXD*#sNRGMzfSAwUD}ASX;ZGQcGdE=9q~ORU{v$}=z2Bc8EOe2S&);jS zCZB8P`hPoV1NBk)TQP2z{q$NL-GLUc7%>&fecE^E{I5gs?8!qTK7VgR7Z?}-`YG|z zVN-NvOlQ+B;~J*69_Xd1n-0MLKTY6&*%rTi*0^HXniz8{bCMsVpSXqs(GGO)*_#Kz z9YBCQ_VRhtwhMfppMh@OdxjCN0mH`5hKZr>UoxMx`W~u^kD&bskplglOiRxQvep*2 z0mk+kMP>J)K`8X3`6Zq|X~5IQ-_rrOn+_WvU{1Gs{ow1-Eb;K(Z?p$@ugXpr^?PM( z(5Hv;$*X=QZaqG_4q)N1v9sO(Dsei!;%IcIztt6YUs{yj z^77e`UYa^%<-Ts+d*b=ihKt?0_sj!ePNO@K*PGmGD*v^;rRAkduikx~UNk=@{XKeV zp_ir(dTaGVWBr{_02Kg2Xmlsn|IvIIRYivbo|L{yx}yX5Bte@P6C>1KyqvYnT{boB#j-07*qoM6N<$f^XQQ A+yDRo literal 0 HcmV?d00001 diff --git a/doc/html-Qt3/functions.html b/doc/html-Qt3/functions.html new file mode 100644 index 0000000..7178fe3 --- /dev/null +++ b/doc/html-Qt3/functions.html @@ -0,0 +1,364 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- a -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x62.html b/doc/html-Qt3/functions_0x62.html new file mode 100644 index 0000000..5d6ee39 --- /dev/null +++ b/doc/html-Qt3/functions_0x62.html @@ -0,0 +1,201 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- b -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x63.html b/doc/html-Qt3/functions_0x63.html new file mode 100644 index 0000000..82f3600 --- /dev/null +++ b/doc/html-Qt3/functions_0x63.html @@ -0,0 +1,389 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- c -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x64.html b/doc/html-Qt3/functions_0x64.html new file mode 100644 index 0000000..01c9690 --- /dev/null +++ b/doc/html-Qt3/functions_0x64.html @@ -0,0 +1,435 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- d -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x65.html b/doc/html-Qt3/functions_0x65.html new file mode 100644 index 0000000..98b4e46 --- /dev/null +++ b/doc/html-Qt3/functions_0x65.html @@ -0,0 +1,209 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- e -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x66.html b/doc/html-Qt3/functions_0x66.html new file mode 100644 index 0000000..579452d --- /dev/null +++ b/doc/html-Qt3/functions_0x66.html @@ -0,0 +1,271 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- f -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x67.html b/doc/html-Qt3/functions_0x67.html new file mode 100644 index 0000000..277f9be --- /dev/null +++ b/doc/html-Qt3/functions_0x67.html @@ -0,0 +1,122 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- g -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x68.html b/doc/html-Qt3/functions_0x68.html new file mode 100644 index 0000000..69cde12 --- /dev/null +++ b/doc/html-Qt3/functions_0x68.html @@ -0,0 +1,198 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- h -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x69.html b/doc/html-Qt3/functions_0x69.html new file mode 100644 index 0000000..e862528 --- /dev/null +++ b/doc/html-Qt3/functions_0x69.html @@ -0,0 +1,226 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- i -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x6a.html b/doc/html-Qt3/functions_0x6a.html new file mode 100644 index 0000000..7ee8bd3 --- /dev/null +++ b/doc/html-Qt3/functions_0x6a.html @@ -0,0 +1,145 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- j -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x6b.html b/doc/html-Qt3/functions_0x6b.html new file mode 100644 index 0000000..eddd0b4 --- /dev/null +++ b/doc/html-Qt3/functions_0x6b.html @@ -0,0 +1,214 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- k -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x6c.html b/doc/html-Qt3/functions_0x6c.html new file mode 100644 index 0000000..90de364 --- /dev/null +++ b/doc/html-Qt3/functions_0x6c.html @@ -0,0 +1,427 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- l -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x6d.html b/doc/html-Qt3/functions_0x6d.html new file mode 100644 index 0000000..693c31b --- /dev/null +++ b/doc/html-Qt3/functions_0x6d.html @@ -0,0 +1,241 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- m -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x6e.html b/doc/html-Qt3/functions_0x6e.html new file mode 100644 index 0000000..b61ba0f --- /dev/null +++ b/doc/html-Qt3/functions_0x6e.html @@ -0,0 +1,150 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- n -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x6f.html b/doc/html-Qt3/functions_0x6f.html new file mode 100644 index 0000000..0afa4d7 --- /dev/null +++ b/doc/html-Qt3/functions_0x6f.html @@ -0,0 +1,141 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- o -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x70.html b/doc/html-Qt3/functions_0x70.html new file mode 100644 index 0000000..5d90404 --- /dev/null +++ b/doc/html-Qt3/functions_0x70.html @@ -0,0 +1,346 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- p -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x71.html b/doc/html-Qt3/functions_0x71.html new file mode 100644 index 0000000..31e2409 --- /dev/null +++ b/doc/html-Qt3/functions_0x71.html @@ -0,0 +1,145 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- q -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x72.html b/doc/html-Qt3/functions_0x72.html new file mode 100644 index 0000000..eb03a05 --- /dev/null +++ b/doc/html-Qt3/functions_0x72.html @@ -0,0 +1,252 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- r -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x73.html b/doc/html-Qt3/functions_0x73.html new file mode 100644 index 0000000..7cf2e58 --- /dev/null +++ b/doc/html-Qt3/functions_0x73.html @@ -0,0 +1,1575 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- s -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x74.html b/doc/html-Qt3/functions_0x74.html new file mode 100644 index 0000000..b6268fc --- /dev/null +++ b/doc/html-Qt3/functions_0x74.html @@ -0,0 +1,202 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- t -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x75.html b/doc/html-Qt3/functions_0x75.html new file mode 100644 index 0000000..af84afb --- /dev/null +++ b/doc/html-Qt3/functions_0x75.html @@ -0,0 +1,159 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- u -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x76.html b/doc/html-Qt3/functions_0x76.html new file mode 100644 index 0000000..29dff96 --- /dev/null +++ b/doc/html-Qt3/functions_0x76.html @@ -0,0 +1,186 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- v -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x77.html b/doc/html-Qt3/functions_0x77.html new file mode 100644 index 0000000..4583a6b --- /dev/null +++ b/doc/html-Qt3/functions_0x77.html @@ -0,0 +1,268 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- w -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x78.html b/doc/html-Qt3/functions_0x78.html new file mode 100644 index 0000000..9553d08 --- /dev/null +++ b/doc/html-Qt3/functions_0x78.html @@ -0,0 +1,115 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- x -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x7a.html b/doc/html-Qt3/functions_0x7a.html new file mode 100644 index 0000000..4c875b9 --- /dev/null +++ b/doc/html-Qt3/functions_0x7a.html @@ -0,0 +1,124 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- z -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_0x7e.html b/doc/html-Qt3/functions_0x7e.html new file mode 100644 index 0000000..2dfb049 --- /dev/null +++ b/doc/html-Qt3/functions_0x7e.html @@ -0,0 +1,238 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- ~ -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_enum.html b/doc/html-Qt3/functions_enum.html new file mode 100644 index 0000000..371d539 --- /dev/null +++ b/doc/html-Qt3/functions_enum.html @@ -0,0 +1,131 @@ + + + + +QScintilla: Class Members - Enumerations + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + +
+
+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval.html b/doc/html-Qt3/functions_eval.html new file mode 100644 index 0000000..b3a3e68 --- /dev/null +++ b/doc/html-Qt3/functions_eval.html @@ -0,0 +1,275 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- a -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x62.html b/doc/html-Qt3/functions_eval_0x62.html new file mode 100644 index 0000000..c13252a --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x62.html @@ -0,0 +1,185 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- b -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x63.html b/doc/html-Qt3/functions_eval_0x63.html new file mode 100644 index 0000000..b2ddb2c --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x63.html @@ -0,0 +1,289 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- c -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x64.html b/doc/html-Qt3/functions_eval_0x64.html new file mode 100644 index 0000000..2a07136 --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x64.html @@ -0,0 +1,242 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- d -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x65.html b/doc/html-Qt3/functions_eval_0x65.html new file mode 100644 index 0000000..555af9f --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x65.html @@ -0,0 +1,153 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- e -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x66.html b/doc/html-Qt3/functions_eval_0x66.html new file mode 100644 index 0000000..6b6405a --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x66.html @@ -0,0 +1,135 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- f -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x67.html b/doc/html-Qt3/functions_eval_0x67.html new file mode 100644 index 0000000..8ef8e1f --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x67.html @@ -0,0 +1,115 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- g -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x68.html b/doc/html-Qt3/functions_eval_0x68.html new file mode 100644 index 0000000..65b98bf --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x68.html @@ -0,0 +1,173 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- h -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x69.html b/doc/html-Qt3/functions_eval_0x69.html new file mode 100644 index 0000000..2f11056 --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x69.html @@ -0,0 +1,150 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- i -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x6a.html b/doc/html-Qt3/functions_eval_0x6a.html new file mode 100644 index 0000000..5be94f4 --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x6a.html @@ -0,0 +1,144 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- j -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x6b.html b/doc/html-Qt3/functions_eval_0x6b.html new file mode 100644 index 0000000..2758215 --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x6b.html @@ -0,0 +1,172 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+ + + + + + + diff --git a/doc/html-Qt3/functions_eval_0x6c.html b/doc/html-Qt3/functions_eval_0x6c.html new file mode 100644 index 0000000..d1b3f09 --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x6c.html @@ -0,0 +1,202 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- l -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x6d.html b/doc/html-Qt3/functions_eval_0x6d.html new file mode 100644 index 0000000..377a6af --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x6d.html @@ -0,0 +1,156 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- m -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x6e.html b/doc/html-Qt3/functions_eval_0x6e.html new file mode 100644 index 0000000..5404ba1 --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x6e.html @@ -0,0 +1,149 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+ + + + + + + diff --git a/doc/html-Qt3/functions_eval_0x6f.html b/doc/html-Qt3/functions_eval_0x6f.html new file mode 100644 index 0000000..1cd7f4b --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x6f.html @@ -0,0 +1,137 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+ + + + + + + diff --git a/doc/html-Qt3/functions_eval_0x70.html b/doc/html-Qt3/functions_eval_0x70.html new file mode 100644 index 0000000..2c783b5 --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x70.html @@ -0,0 +1,302 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- p -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x71.html b/doc/html-Qt3/functions_eval_0x71.html new file mode 100644 index 0000000..f5a703d --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x71.html @@ -0,0 +1,138 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- q -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x72.html b/doc/html-Qt3/functions_eval_0x72.html new file mode 100644 index 0000000..a17e588 --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x72.html @@ -0,0 +1,140 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- r -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x73.html b/doc/html-Qt3/functions_eval_0x73.html new file mode 100644 index 0000000..96c5a88 --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x73.html @@ -0,0 +1,935 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- s -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x74.html b/doc/html-Qt3/functions_eval_0x74.html new file mode 100644 index 0000000..60fcc5e --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x74.html @@ -0,0 +1,176 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- t -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x75.html b/doc/html-Qt3/functions_eval_0x75.html new file mode 100644 index 0000000..b77f7ca --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x75.html @@ -0,0 +1,145 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- u -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x76.html b/doc/html-Qt3/functions_eval_0x76.html new file mode 100644 index 0000000..9315e5c --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x76.html @@ -0,0 +1,164 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- v -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x77.html b/doc/html-Qt3/functions_eval_0x77.html new file mode 100644 index 0000000..ce7c4f5 --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x77.html @@ -0,0 +1,180 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- w -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x78.html b/doc/html-Qt3/functions_eval_0x78.html new file mode 100644 index 0000000..666539b --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x78.html @@ -0,0 +1,114 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- x -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_eval_0x7a.html b/doc/html-Qt3/functions_eval_0x7a.html new file mode 100644 index 0000000..d14e7fa --- /dev/null +++ b/doc/html-Qt3/functions_eval_0x7a.html @@ -0,0 +1,111 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- z -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func.html b/doc/html-Qt3/functions_func.html new file mode 100644 index 0000000..5d523dd --- /dev/null +++ b/doc/html-Qt3/functions_func.html @@ -0,0 +1,182 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- a -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x62.html b/doc/html-Qt3/functions_func_0x62.html new file mode 100644 index 0000000..fb3c710 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x62.html @@ -0,0 +1,115 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- b -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x63.html b/doc/html-Qt3/functions_func_0x63.html new file mode 100644 index 0000000..27f24b8 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x63.html @@ -0,0 +1,195 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- c -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x64.html b/doc/html-Qt3/functions_func_0x64.html new file mode 100644 index 0000000..b0548e0 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x64.html @@ -0,0 +1,294 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- d -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x65.html b/doc/html-Qt3/functions_func_0x65.html new file mode 100644 index 0000000..c744fc5 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x65.html @@ -0,0 +1,152 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- e -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x66.html b/doc/html-Qt3/functions_func_0x66.html new file mode 100644 index 0000000..f61c052 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x66.html @@ -0,0 +1,235 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- f -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x67.html b/doc/html-Qt3/functions_func_0x67.html new file mode 100644 index 0000000..3dbfb47 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x67.html @@ -0,0 +1,109 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- g -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x68.html b/doc/html-Qt3/functions_func_0x68.html new file mode 100644 index 0000000..f5dd2e7 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x68.html @@ -0,0 +1,127 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- h -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x69.html b/doc/html-Qt3/functions_func_0x69.html new file mode 100644 index 0000000..d53d678 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x69.html @@ -0,0 +1,172 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- i -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x6b.html b/doc/html-Qt3/functions_func_0x6b.html new file mode 100644 index 0000000..4bd2d81 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x6b.html @@ -0,0 +1,144 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+ + + + + + + diff --git a/doc/html-Qt3/functions_func_0x6c.html b/doc/html-Qt3/functions_func_0x6c.html new file mode 100644 index 0000000..89775bc --- /dev/null +++ b/doc/html-Qt3/functions_func_0x6c.html @@ -0,0 +1,327 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- l -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x6d.html b/doc/html-Qt3/functions_func_0x6d.html new file mode 100644 index 0000000..df76ccd --- /dev/null +++ b/doc/html-Qt3/functions_func_0x6d.html @@ -0,0 +1,181 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- m -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x6f.html b/doc/html-Qt3/functions_func_0x6f.html new file mode 100644 index 0000000..ff1ba39 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x6f.html @@ -0,0 +1,106 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- o -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x70.html b/doc/html-Qt3/functions_func_0x70.html new file mode 100644 index 0000000..eba5fed --- /dev/null +++ b/doc/html-Qt3/functions_func_0x70.html @@ -0,0 +1,144 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- p -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x71.html b/doc/html-Qt3/functions_func_0x71.html new file mode 100644 index 0000000..5105f4f --- /dev/null +++ b/doc/html-Qt3/functions_func_0x71.html @@ -0,0 +1,109 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- q -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x72.html b/doc/html-Qt3/functions_func_0x72.html new file mode 100644 index 0000000..0f972c1 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x72.html @@ -0,0 +1,214 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- r -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x73.html b/doc/html-Qt3/functions_func_0x73.html new file mode 100644 index 0000000..1859faa --- /dev/null +++ b/doc/html-Qt3/functions_func_0x73.html @@ -0,0 +1,742 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- s -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x74.html b/doc/html-Qt3/functions_func_0x74.html new file mode 100644 index 0000000..a90eae6 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x74.html @@ -0,0 +1,126 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- t -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x75.html b/doc/html-Qt3/functions_func_0x75.html new file mode 100644 index 0000000..44922cc --- /dev/null +++ b/doc/html-Qt3/functions_func_0x75.html @@ -0,0 +1,116 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- u -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x76.html b/doc/html-Qt3/functions_func_0x76.html new file mode 100644 index 0000000..aeb341b --- /dev/null +++ b/doc/html-Qt3/functions_func_0x76.html @@ -0,0 +1,124 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- v -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x77.html b/doc/html-Qt3/functions_func_0x77.html new file mode 100644 index 0000000..12687e8 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x77.html @@ -0,0 +1,176 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+ + + + + + + diff --git a/doc/html-Qt3/functions_func_0x7a.html b/doc/html-Qt3/functions_func_0x7a.html new file mode 100644 index 0000000..909c51e --- /dev/null +++ b/doc/html-Qt3/functions_func_0x7a.html @@ -0,0 +1,112 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- z -

+
+ + + + + + diff --git a/doc/html-Qt3/functions_func_0x7e.html b/doc/html-Qt3/functions_func_0x7e.html new file mode 100644 index 0000000..2454391 --- /dev/null +++ b/doc/html-Qt3/functions_func_0x7e.html @@ -0,0 +1,235 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- ~ -

+
+ + + + + + diff --git a/doc/html-Qt3/hierarchy.html b/doc/html-Qt3/hierarchy.html new file mode 100644 index 0000000..8faee8b --- /dev/null +++ b/doc/html-Qt3/hierarchy.html @@ -0,0 +1,133 @@ + + + + +QScintilla: Class Hierarchy + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
Class Hierarchy
+
+ + + + + + + diff --git a/doc/html-Qt3/index.html b/doc/html-Qt3/index.html new file mode 100644 index 0000000..5f98412 --- /dev/null +++ b/doc/html-Qt3/index.html @@ -0,0 +1,156 @@ + + + + +QScintilla: QScintilla - a Port to Qt v3 of Scintilla + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + +
+
+
+
QScintilla - a Port to Qt v3 of Scintilla
+
+
+

Introduction

+

QScintilla is a port to Qt of the Scintilla editing component.

+

As well as features found in standard text editing components, Scintilla includes features especially useful when editing and debugging source code:

+
    +
  • +syntax styling with support for over 70 languages
  • +
  • +error indicators
  • +
  • +code completion
  • +
  • +call tips
  • +
  • +code folding
  • +
  • +margins can contain markers like those used in debuggers to indicate breakpoints and the current line.
  • +
  • +recordable macros
  • +
  • +multiple views
  • +
  • +printing.
  • +
+

QScintilla is a port or Scintilla to the Qt GUI toolkit from Digia and runs on any operating system supported by Qt (eg. Windows, UNIX/Linux, MacOS/X). QScintilla works with Qt v3, v4 and v5.

+

This documentation describes QScintilla for Qt v3. The QScintilla APIs for Qt v3 and Qt v4 and v5 are almost identical. The main difference is that the QsciScintillaBase class is derived from a different Qt class.

+

QScintilla also includes language bindings for Python. These require that PyQt v4 or v5 is also installed.

+

This version of QScintilla is based on Scintilla v3.3.6.

+

Licensing

+

QScintilla is available under the GNU General Public License v2, GNU General Public License v3 and a commercial license.

+

The commercial license allows closed source applications using QScintilla to be developed and distributed. At the moment the commercial version of QScintilla is bundled with the commercial version of PyQt.

+

The Scintilla code within QScintilla is released under the following license:

+
+ License for Scintilla and SciTE
 Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
 All Rights Reserved
 Permission to use, copy, modify, and distribute this software and its
+ documentation for any purpose and without fee is hereby granted,
+ provided that the above copyright notice appear in all copies and that
+ both that copyright notice and this permission notice appear in
+ supporting documentation.
 NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY
+ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
+ OR PERFORMANCE OF THIS SOFTWARE.
+

Installation

+

As supplied QScintilla will be built as a shared library/DLL and installed in the same directories as the Qt libraries and include files.

+

If you wish to build a static version of the library then pass CONFIG+=staticlib on the qmake command line.

+

If you want to make more significant changes to the configuration then edit the file qscintilla.pro in the Qt3 directory.

+

See your qmake documentation for more details.

+

To build and install QScintilla, run:

+
+    cd Qt3
+    qmake qscintilla.pro
+    make
+    make install
+

If you have multiple versions of Qt installed then make sure you use the correct version of qmake.

+

Installation on Windows

+

Before compiling QScintilla on Windows you should remove the Qsci directory containing the QScintilla header files from any previous installation. This is because the Makefile generated by qmake will find these older header files instead of the new ones.

+

Depending on the compiler you are using you may need to run nmake rather than make.

+

qmake on Windows does not support the installation of directory trees and so you probably need to run:

+
+    nmake "COPY_DIR=xcopy /s /q /y /i" install
+

qmake on Windows will not install the DLL and so you will probably also want to run:

+
+    copy Qt3\qscintilla2.dll %QTDIR%\bin
+

Installation on MacOS/X

+

On MacOS/X you may need to pass -spec macx-g++ in order to generate a Makefile, otherwise an XCode project file may be created. In particular the Qt Designer plugin will not load if you do not do this.

+

Example Application

+

The example application provided is a port of the standard Qt application example with the QsciScintilla class being used instead of Qt's QMultiLineEdit class.

+

The example does not demonstrate all of the extra features of QScintilla.

+

To build the example, run:

+
+    cd example-Qt3
+    qmake application.pro
+    make
+

On Windows (and depending on the compiler you are using) you may need to run nmake rather than make.

+

Python Bindings

+

The Python bindings are in the Python directory. You must have either PyQt v4 or v5 already installed. QScintilla must also already be built and installed.

+

The configure, build and install the bindings for PyQt v4, run:

+
+    python configure.py
+    make
+    make install
+

On Windows (and depending on the compiler you are using) you may need to run nmake rather than make.

+

If you want to build the bindings for PyQt v5 then pass --pyqt=PyQt5 as an argument to configure.py.

+

configure.py supports a number of other arguments. Pass -h to display a list of the supported arguments.

+

configure.py was re-written for QScintilla v2.7.1 to make use of new features of PyQt v4.10. The old version is still provided as configure-old.py. The new configure.py will automatically invoke configure-old.py if it detects a version of PyQt earlier than v4.10. You may of course explicitly run configure-old.py.

+

Qt Designer Plugin

+

QScintilla includes an optional plugin for Qt Designer that allows QScintilla instances to be included in GUI designs just like any other Qt widget.

+

To build the plugin on all platforms, make sure QScintilla is installed and then run (as root or administrator):

+
+    cd designer-Qt3
+    qmake designer.pro
+    make
+

On Windows (and depending on the compiler you are using) you may need to run nmake rather than make.

+
+ + + + + + diff --git a/doc/html-Qt3/nav_f.png b/doc/html-Qt3/nav_f.png new file mode 100644 index 0000000000000000000000000000000000000000..1b07a16207e67c95fe2ee17e7016e6d08ac7ac99 GIT binary patch literal 159 zcmeAS@N?(olHy`uVBq!ia0vp^j6iI`!2~2XGqLUlQfZzpjv*C{Z|{2YIT`Y>1X`Eg z-tTbne1`SITM8Q!Pb(<)UFZ(m>wMzvKZQqKM~~GcZ=A7j<~E6K62>ozFS=cD3)mf8 z9WX0+R&m(l9KUsLdTx4?9~({T__KA%`}olPJ^N;y|F^pHgs_K%!rj~{8>RwnWbkzL Kb6Mw<&;$VTdq1fF literal 0 HcmV?d00001 diff --git a/doc/html-Qt3/nav_h.png b/doc/html-Qt3/nav_h.png new file mode 100644 index 0000000000000000000000000000000000000000..01f5fa6a596e36bd12c2d6ceff1b0169fda7e699 GIT binary patch literal 97 zcmeAS@N?(olHy`uVBq!ia0vp^j6lr8!2~3AUOE6t1`SUa$B+ufw|6&kG8phMJMJ~w va4>Y+bZ&9QY?(VEUPY_cGd9nQ`um^ZSUyYpAAuKhL7F^W{an^LB{Ts5DmojT literal 0 HcmV?d00001 diff --git a/doc/html-Qt3/open.png b/doc/html-Qt3/open.png new file mode 100644 index 0000000000000000000000000000000000000000..7b35d2c2c389743089632fe24c3104f2173d97af GIT binary patch literal 118 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>1|%O$WD@{Vww^AIAr*{o=Nbw!DDW^(zOibV zl!F8B0?t?i!vld4k#$~0_AX3zElaoknau9@iXhZTrl-TjWj9jM#?{xt`6uU{<)jb9Suc^QnbhJ(o{ib8=j9u0_mE8M7kgF7f<7W7IEf=8(L_qx|g0H;V7iPxm&Q@G7p8W2Kx&iT|YUM=ITC zY<0Qbr;u&AtXD{o@41wH=7&d8=2Z_{M9Tsa=g*t*@A3H$UOlxZk7?f6RUWpx>Fc_L s#LQ{edY3MpIXkMeV^&YV=9fR%8Jv|Kya=#u06K}m)78&qol`;+0RKEt)&Kwi literal 0 HcmV?d00001 diff --git a/doc/html-Qt3/tab_s.png b/doc/html-Qt3/tab_s.png new file mode 100644 index 0000000000000000000000000000000000000000..978943ac807718de0e69e5a585a8f0a1e5999285 GIT binary patch literal 189 zcmeAS@N?(olHy`uVBq!ia0vp^j6kfy!2~3aiye;!QZ1e?jv*C{Z|}b5Yzkm-c<7z3 zq^cq0=~}Z;b(!Zvb5Z%sTRFKGlz1=qOFg;myyu?$r`wZb^irPsN1a)6)TwB0r+)wb zPL25;=adu89?fTK`qDR>$D*)b_WOmdKI;Vst02j(hg8%>k literal 0 HcmV?d00001 diff --git a/doc/html-Qt3/tabs.css b/doc/html-Qt3/tabs.css new file mode 100644 index 0000000..2192056 --- /dev/null +++ b/doc/html-Qt3/tabs.css @@ -0,0 +1,59 @@ +.tabs, .tabs2, .tabs3 { + background-image: url('tab_b.png'); + width: 100%; + z-index: 101; + font-size: 13px; +} + +.tabs2 { + font-size: 10px; +} +.tabs3 { + font-size: 9px; +} + +.tablist { + margin: 0; + padding: 0; + display: table; +} + +.tablist li { + float: left; + display: table-cell; + background-image: url('tab_b.png'); + line-height: 36px; + list-style: none; +} + +.tablist a { + display: block; + padding: 0 20px; + font-weight: bold; + background-image:url('tab_s.png'); + background-repeat:no-repeat; + background-position:right; + color: #283A5D; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + text-decoration: none; + outline: none; +} + +.tabs3 .tablist a { + padding: 0 10px; +} + +.tablist a:hover { + background-image: url('tab_h.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); + text-decoration: none; +} + +.tablist li.current a { + background-image: url('tab_a.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +} diff --git a/doc/html-Qt4Qt5/annotated.html b/doc/html-Qt4Qt5/annotated.html new file mode 100644 index 0000000..c85624a --- /dev/null +++ b/doc/html-Qt4Qt5/annotated.html @@ -0,0 +1,119 @@ + + + + +QScintilla: Class List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
Class List
+
+
+
Here are the classes, structs, unions and interfaces with brief descriptions:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
QsciAbstractAPIsInterface to the textual API information used in call tips and for auto-completion. A sub-class will provide the actual implementation of the interface
QsciAPIsProvies an implementation of the textual API information used in call tips and for auto-completion
QsciCommandInternal editor command that may have one or two keys bound to it
QsciCommandSetSet of all internal editor commands that may have keys bound
QsciDocumentDocument to be edited
QsciLexerAbstract class used as a base for language lexers
QsciLexerAVSEncapsulates the Scintilla AVS lexer
QsciLexerBashEncapsulates the Scintilla Bash lexer
QsciLexerBatchEncapsulates the Scintilla batch file lexer
QsciLexerCMakeEncapsulates the Scintilla CMake lexer
QsciLexerCoffeeScriptEncapsulates the Scintilla CoffeeScript lexer
QsciLexerCPPEncapsulates the Scintilla C++ lexer
QsciLexerCSharpEncapsulates the Scintilla C# lexer
QsciLexerCSSEncapsulates the Scintilla CSS lexer
QsciLexerCustomAbstract class used as a base for new language lexers
QsciLexerDEncapsulates the Scintilla D lexer
QsciLexerDiffEncapsulates the Scintilla Diff lexer
QsciLexerFortranEncapsulates the Scintilla Fortran lexer
QsciLexerFortran77Encapsulates the Scintilla Fortran77 lexer
QsciLexerHTMLEncapsulates the Scintilla HTML lexer
QsciLexerIDLEncapsulates the Scintilla IDL lexer
QsciLexerJavaEncapsulates the Scintilla Java lexer
QsciLexerJavaScriptEncapsulates the Scintilla JavaScript lexer
QsciLexerLuaEncapsulates the Scintilla Lua lexer
QsciLexerMakefileEncapsulates the Scintilla Makefile lexer
QsciLexerMatlabEncapsulates the Scintilla Matlab file lexer
QsciLexerOctaveEncapsulates the Scintilla Octave file lexer
QsciLexerPascalEncapsulates the Scintilla Pascal lexer
QsciLexerPerlEncapsulates the Scintilla Perl lexer
QsciLexerPOEncapsulates the Scintilla PO lexer
QsciLexerPostScriptEncapsulates the Scintilla PostScript lexer
QsciLexerPOVEncapsulates the Scintilla POV lexer
QsciLexerPropertiesEncapsulates the Scintilla Properties lexer
QsciLexerPythonEncapsulates the Scintilla Python lexer
QsciLexerRubyEncapsulates the Scintilla Ruby lexer
QsciLexerSpiceEncapsulates the Scintilla Spice lexer
QsciLexerSQLEncapsulates the Scintilla SQL lexer
QsciLexerTCLEncapsulates the Scintilla TCL lexer
QsciLexerTeXEncapsulates the Scintilla TeX lexer
QsciLexerVerilogEncapsulates the Scintilla Verilog lexer
QsciLexerVHDLEncapsulates the Scintilla VHDL lexer
QsciLexerXMLEncapsulates the Scintilla XML lexer
QsciLexerYAMLEncapsulates the Scintilla YAML lexer
QsciMacroSequence of recordable editor commands
QsciPrinterSub-class of the Qt QPrinter class that is able to print the text of a Scintilla document
QsciScintillaImplements a higher level, more Qt-like, API to the Scintilla editor widget
QsciScintillaBaseImplements the Scintilla editor widget and its low-level API
QsciStyleEncapsulates all the attributes of a style
QsciStyledTextContainer for a piece of text and the style used to display the text
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/bc_s.png b/doc/html-Qt4Qt5/bc_s.png new file mode 100644 index 0000000000000000000000000000000000000000..e4018628b5b45cb4301037485a29d7d74ac22138 GIT binary patch literal 677 zcmV;W0$TlvP)X?0Pv5h+5!wElpi=&YL!gfY!djl#UDdPKy97F|A-deTa@qo3BWh1YQIvzmHR^g zFjV4I6pLB7_*vEZk^%p7c7Bh>0`4r^X#gpJE_Vz9fSHKqclcZaV^k3gX%h+1`u||O zZ+BY?7(R=ayr^kXE=E0Dw=$Ud3VJ?9^Cz@hP?388Cw5>9TloOJ>^KczCgj zns2=|0!a|)Yq3{hjL{xyy7|Tk0N}Pe+g9PUTL!4{#;eUhrNd@!_T<>Vu+35c)h>sq ztgb?(6W3oFLz#%?OMEV@{j#4LuDvjVGZ~6hpQT8li5b0yjvK8c4efl+vSz5)P6 zle78)00_Iv5)&E~hnOdcd}L}i+MU>k+Q8#@KjqJJN`gRj(~)RmNrck9ht@LelPtVO zwp(J;k!T=gC#%o(13-^E+g@aqc()pf{+j|0w)AH*Mq$54UjLv#jV$RYpz3Vjg$$=u z>yjfBQOhL=^@+#4#$l|{~}HZ-?1Yy{lI*$N}*YDC`<{+;>_#gMXZdz4NI00000 LNkvXXu0mjfx86dR literal 0 HcmV?d00001 diff --git a/doc/html-Qt4Qt5/classQsciAPIs-members.html b/doc/html-Qt4Qt5/classQsciAPIs-members.html new file mode 100644 index 0000000..5d16aca --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciAPIs-members.html @@ -0,0 +1,92 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciAPIs Member List
+
+
+This is the complete list of members for QsciAPIs, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + +
add(const QString &entry)QsciAPIs
apiPreparationCancelled()QsciAPIs [signal]
apiPreparationFinished()QsciAPIs [signal]
apiPreparationStarted()QsciAPIs [signal]
autoCompletionSelected(const QString &sel)QsciAPIs [virtual]
callTips(const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QList< int > &shifts)QsciAPIs [virtual]
cancelPreparation()QsciAPIs
clear()QsciAPIs
defaultPreparedName() const QsciAPIs
event(QEvent *e) (defined in QsciAPIs)QsciAPIs [virtual]
installedAPIFiles() const QsciAPIs
isPrepared(const QString &filename=QString()) const QsciAPIs
lexer() const QsciAbstractAPIs
load(const QString &filename)QsciAPIs
loadPrepared(const QString &filename=QString())QsciAPIs
prepare()QsciAPIs
QsciAbstractAPIs(QsciLexer *lexer)QsciAbstractAPIs
QsciAPIs(QsciLexer *lexer)QsciAPIs
remove(const QString &entry)QsciAPIs
savePrepared(const QString &filename=QString()) const QsciAPIs
updateAutoCompletionList(const QStringList &context, QStringList &list)QsciAPIs [virtual]
~QsciAbstractAPIs()QsciAbstractAPIs [virtual]
~QsciAPIs()QsciAPIs [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciAPIs.html b/doc/html-Qt4Qt5/classQsciAPIs.html new file mode 100644 index 0000000..0e39c02 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciAPIs.html @@ -0,0 +1,390 @@ + + + + +QScintilla: QsciAPIs Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciAPIs Class Reference
+
+
+ +

#include <qsciapis.h>

+ +

Inherits QsciAbstractAPIs.

+ +

List of all members.

+

+Signals

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciAPIs class provies an implementation of the textual API information used in call tips and for auto-completion.

+

Raw API information is read from one or more files. Each API function is described by a single line of text comprising the function's name, followed by the function's optional comma separated parameters enclosed in parenthesis, and finally followed by optional explanatory text.

+

A function name may be followed by a `?' and a number. The number is used by auto-completion to display a registered QPixmap with the function name.

+

All function names are used by auto-completion, but only those that include function parameters are used in call tips.

+

QScintilla only deals with prepared API information and not the raw information described above. This is done so that large APIs can be handled while still being responsive to user input. The conversion of raw information to prepared information is time consuming (think tens of seconds) and implemented in a separate thread. Prepared information can be quickly saved to and loaded from files. Such files are portable between different architectures.

+

QScintilla based applications that want to support large APIs would normally provide the user with the ability to specify a set of, possibly project specific, raw API files and convert them to prepared files that are loaded quickly when the application is invoked.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciAPIs::QsciAPIs (QsciLexerlexer)
+
+
+

Constructs a QsciAPIs instance attached to lexer lexer. lexer becomes the instance's parent object although the instance can also be subsequently attached to other lexers.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
void QsciAPIs::add (const QString & entry)
+
+
+

Add the single raw API entry entry to the current set.

+
See also:
clear(), load(), remove()
+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::clear ()
+
+
+

Deletes all raw API information.

+
See also:
add(), load(), remove()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciAPIs::load (const QString & filename)
+
+
+

Load the API information from the file named filename, adding it to the current set. Returns true if successful, otherwise false.

+ +
+
+ +
+
+ + + + + + + + +
void QsciAPIs::remove (const QString & entry)
+
+
+

Remove the single raw API entry entry from the current set.

+
See also:
add(), clear(), load()
+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::prepare ()
+
+
+

Convert the current raw API information to prepared API information. This is implemented by a separate thread.

+
See also:
cancelPreparation()
+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::cancelPreparation ()
+
+
+

Cancel the conversion of the current raw API information to prepared API information.

+
See also:
prepare()
+ +
+
+ +
+
+ + + + + + + +
QString QsciAPIs::defaultPreparedName () const
+
+
+

Return the default name of the prepared API information file. It is based on the name of the associated lexer and in the directory defined by the QSCIDIR environment variable. If the environment variable isn't set then $HOME/.qsci is used.

+ +
+
+ +
+
+ + + + + + + + +
bool QsciAPIs::isPrepared (const QString & filename = QString()) const
+
+
+

Check to see is a prepared API information file named filename exists. If filename is empty then the value returned by defaultPreparedName() is used. Returns true if successful, otherwise false.

+
See also:
defaultPreparedName()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciAPIs::loadPrepared (const QString & filename = QString())
+
+
+

Load the prepared API information from the file named filename. If filename is empty then a name is constructed based on the name of the associated lexer and saved in the directory defined by the QSCIDIR environment variable. If the environment variable isn't set then $HOME/.qsci is used. Returns true if successful, otherwise false.

+ +
+
+ +
+
+ + + + + + + + +
bool QsciAPIs::savePrepared (const QString & filename = QString()) const
+
+
+

Save the prepared API information to the file named filename. If filename is empty then a name is constructed based on the name of the associated lexer and saved in the directory defined by the QSCIDIR environment variable. If the environment variable isn't set then $HOME/.qsci is used. Returns true if successful, otherwise false.

+ +
+
+ +
+
+ + + + + + + +
QStringList QsciAPIs::installedAPIFiles () const
+
+
+

Return a list of the installed raw API file names for the associated lexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::apiPreparationCancelled () [signal]
+
+
+

This signal is emitted when the conversion of raw API information to prepared API information has been cancelled.

+
See also:
apiPreparationFinished(), apiPreparationStarted()
+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::apiPreparationStarted () [signal]
+
+
+

This signal is emitted when the conversion of raw API information to prepared API information starts and can be used to give some visual feedback to the user.

+
See also:
apiPreparationCancelled(), apiPreparationFinished()
+ +
+
+ +
+
+ + + + + + + +
void QsciAPIs::apiPreparationFinished () [signal]
+
+
+

This signal is emitted when the conversion of raw API information to prepared API information has finished.

+
See also:
apiPreparationCancelled(), apiPreparationStarted()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciAbstractAPIs-members.html b/doc/html-Qt4Qt5/classQsciAbstractAPIs-members.html new file mode 100644 index 0000000..d89a6bb --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciAbstractAPIs-members.html @@ -0,0 +1,75 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciAbstractAPIs Member List
+
+
+This is the complete list of members for QsciAbstractAPIs, including all inherited members. + + + + + + +
autoCompletionSelected(const QString &selection)QsciAbstractAPIs [virtual]
callTips(const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QList< int > &shifts)=0QsciAbstractAPIs [pure virtual]
lexer() const QsciAbstractAPIs
QsciAbstractAPIs(QsciLexer *lexer)QsciAbstractAPIs
updateAutoCompletionList(const QStringList &context, QStringList &list)=0QsciAbstractAPIs [pure virtual]
~QsciAbstractAPIs()QsciAbstractAPIs [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciAbstractAPIs.html b/doc/html-Qt4Qt5/classQsciAbstractAPIs.html new file mode 100644 index 0000000..9d2002b --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciAbstractAPIs.html @@ -0,0 +1,204 @@ + + + + +QScintilla: QsciAbstractAPIs Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciAbstractAPIs Class Reference
+
+
+ +

#include <qsciabstractapis.h>

+ +

Inherited by QsciAPIs.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciAbstractAPIs class represents the interface to the textual API information used in call tips and for auto-completion. A sub-class will provide the actual implementation of the interface.

+

API information is specific to a particular language lexer but can be shared by multiple instances of the lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciAbstractAPIs::QsciAbstractAPIs (QsciLexerlexer)
+
+
+

Constructs a QsciAbstractAPIs instance attached to lexer lexer. lexer becomes the instance's parent object although the instance can also be subsequently attached to other lexers.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciAbstractAPIs::updateAutoCompletionList (const QStringList & context,
QStringList & list 
) [pure virtual]
+
+
+

Update the list list with API entries derived from context. context is the list of words in the text preceding the cursor position. The characters that make up a word and the characters that separate words are defined by the lexer. The last word is a partial word and may be empty if the user has just entered a word separator.

+ +

Implemented in QsciAPIs.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciAbstractAPIs::autoCompletionSelected (const QString & selection) [virtual]
+
+
+

This is called when the user selects the entry selection from the auto-completion list. A sub-class can use this as a hint to provide more specific API entries in future calls to updateAutoCompletionList(). The default implementation does nothing.

+ +

Reimplemented in QsciAPIs.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual QStringList QsciAbstractAPIs::callTips (const QStringList & context,
int commas,
QsciScintilla::CallTipsStyle style,
QList< int > & shifts 
) [pure virtual]
+
+
+

Return the call tips valid for the context context. (Note that the last word of the context will always be empty.) commas is the number of commas the user has typed after the context and before the cursor position. The exact position of the list of call tips can be adjusted by specifying a corresponding left character shift in shifts. This is normally done to correct for any displayed context according to style.

+
See also:
updateAutoCompletionList()
+ +

Implemented in QsciAPIs.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciCommand-members.html b/doc/html-Qt4Qt5/classQsciCommand-members.html new file mode 100644 index 0000000..81713f9 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciCommand-members.html @@ -0,0 +1,176 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciCommand Member List
+
+
+This is the complete list of members for QsciCommand, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
alternateKey() const QsciCommand [inline]
Backtab enum valueQsciCommand
Cancel enum valueQsciCommand
CharLeft enum valueQsciCommand
CharLeftExtend enum valueQsciCommand
CharLeftRectExtend enum valueQsciCommand
CharRight enum valueQsciCommand
CharRightExtend enum valueQsciCommand
CharRightRectExtend enum valueQsciCommand
command() const QsciCommand [inline]
Command enum nameQsciCommand
Delete enum valueQsciCommand
DeleteBack enum valueQsciCommand
DeleteBackNotLine enum valueQsciCommand
DeleteLineLeft enum valueQsciCommand
DeleteLineRight enum valueQsciCommand
DeleteWordLeft enum valueQsciCommand
DeleteWordRight enum valueQsciCommand
DeleteWordRightEnd enum valueQsciCommand
description() const QsciCommand
DocumentEnd enum valueQsciCommand
DocumentEndExtend enum valueQsciCommand
DocumentStart enum valueQsciCommand
DocumentStartExtend enum valueQsciCommand
EditToggleOvertype enum valueQsciCommand
execute()QsciCommand
Formfeed enum valueQsciCommand
Home enum valueQsciCommand
HomeDisplay enum valueQsciCommand
HomeDisplayExtend enum valueQsciCommand
HomeExtend enum valueQsciCommand
HomeRectExtend enum valueQsciCommand
HomeWrap enum valueQsciCommand
HomeWrapExtend enum valueQsciCommand
key() const QsciCommand [inline]
LineCopy enum valueQsciCommand
LineCut enum valueQsciCommand
LineDelete enum valueQsciCommand
LineDown enum valueQsciCommand
LineDownExtend enum valueQsciCommand
LineDownRectExtend enum valueQsciCommand
LineDuplicate enum valueQsciCommand
LineEnd enum valueQsciCommand
LineEndDisplay enum valueQsciCommand
LineEndDisplayExtend enum valueQsciCommand
LineEndExtend enum valueQsciCommand
LineEndRectExtend enum valueQsciCommand
LineEndWrap enum valueQsciCommand
LineEndWrapExtend enum valueQsciCommand
LineScrollDown enum valueQsciCommand
LineScrollUp enum valueQsciCommand
LineTranspose enum valueQsciCommand
LineUp enum valueQsciCommand
LineUpExtend enum valueQsciCommand
LineUpRectExtend enum valueQsciCommand
MoveSelectedLinesDown enum valueQsciCommand
MoveSelectedLinesUp enum valueQsciCommand
Newline enum valueQsciCommand
PageDown enum valueQsciCommand
PageDownExtend enum valueQsciCommand
PageDownRectExtend enum valueQsciCommand
PageUp enum valueQsciCommand
PageUpExtend enum valueQsciCommand
PageUpRectExtend enum valueQsciCommand
ParaDown enum valueQsciCommand
ParaDownExtend enum valueQsciCommand
ParaUp enum valueQsciCommand
ParaUpExtend enum valueQsciCommand
Paste enum valueQsciCommand
Redo enum valueQsciCommand
ScrollToEnd enum valueQsciCommand
ScrollToStart enum valueQsciCommand
SelectAll enum valueQsciCommand
SelectionCopy enum valueQsciCommand
SelectionCut enum valueQsciCommand
SelectionDuplicate enum valueQsciCommand
SelectionLowerCase enum valueQsciCommand
SelectionUpperCase enum valueQsciCommand
setAlternateKey(int altkey)QsciCommand
setKey(int key)QsciCommand
StutteredPageDown enum valueQsciCommand
StutteredPageDownExtend enum valueQsciCommand
StutteredPageUp enum valueQsciCommand
StutteredPageUpExtend enum valueQsciCommand
Tab enum valueQsciCommand
Undo enum valueQsciCommand
validKey(int key)QsciCommand [static]
VCHome enum valueQsciCommand
VCHomeExtend enum valueQsciCommand
VCHomeRectExtend enum valueQsciCommand
VCHomeWrap enum valueQsciCommand
VCHomeWrapExtend enum valueQsciCommand
VerticalCentreCaret enum valueQsciCommand
WordLeft enum valueQsciCommand
WordLeftEnd enum valueQsciCommand
WordLeftEndExtend enum valueQsciCommand
WordLeftExtend enum valueQsciCommand
WordPartLeft enum valueQsciCommand
WordPartLeftExtend enum valueQsciCommand
WordPartRight enum valueQsciCommand
WordPartRightExtend enum valueQsciCommand
WordRight enum valueQsciCommand
WordRightEnd enum valueQsciCommand
WordRightEndExtend enum valueQsciCommand
WordRightExtend enum valueQsciCommand
ZoomIn enum valueQsciCommand
ZoomOut enum valueQsciCommand
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciCommand.html b/doc/html-Qt4Qt5/classQsciCommand.html new file mode 100644 index 0000000..d3ba3f4 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciCommand.html @@ -0,0 +1,625 @@ + + + + +QScintilla: QsciCommand Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciCommand Class Reference
+
+
+ +

#include <qscicommand.h>

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Static Public Member Functions

+ +

Detailed Description

+

The QsciCommand class represents an internal editor command that may have one or two keys bound to it.

+

Methods are provided to change the keys bound to the command and to remove a key binding. Each command has a user friendly description of the command for use in key mapping dialogs.

+

Member Enumeration Documentation

+ +
+
+ + + + +
enum QsciCommand::Command
+
+
+ +

This enum defines the different commands that can be assigned to a key.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LineDown  +

Move down one line.

+
LineDownExtend  +

Extend the selection down one line.

+
LineDownRectExtend  +

Extend the rectangular selection down one line.

+
LineScrollDown  +

Scroll the view down one line.

+
LineUp  +

Move up one line.

+
LineUpExtend  +

Extend the selection up one line.

+
LineUpRectExtend  +

Extend the rectangular selection up one line.

+
LineScrollUp  +

Scroll the view up one line.

+
ScrollToStart  +

Scroll to the start of the document.

+
ScrollToEnd  +

Scroll to the end of the document.

+
VerticalCentreCaret  +

Scroll vertically to centre the current line.

+
ParaDown  +

Move down one paragraph.

+
ParaDownExtend  +

Extend the selection down one paragraph.

+
ParaUp  +

Move up one paragraph.

+
ParaUpExtend  +

Extend the selection up one paragraph.

+
CharLeft  +

Move left one character.

+
CharLeftExtend  +

Extend the selection left one character.

+
CharLeftRectExtend  +

Extend the rectangular selection left one character.

+
CharRight  +

Move right one character.

+
CharRightExtend  +

Extend the selection right one character.

+
CharRightRectExtend  +

Extend the rectangular selection right one character.

+
WordLeft  +

Move left one word.

+
WordLeftExtend  +

Extend the selection left one word.

+
WordRight  +

Move right one word.

+
WordRightExtend  +

Extend the selection right one word.

+
WordLeftEnd  +

Move to the end of the previous word.

+
WordLeftEndExtend  +

Extend the selection to the end of the previous word.

+
WordRightEnd  +

Move to the end of the next word.

+
WordRightEndExtend  +

Extend the selection to the end of the next word.

+
WordPartLeft  +

Move left one word part.

+
WordPartLeftExtend  +

Extend the selection left one word part.

+
WordPartRight  +

Move right one word part.

+
WordPartRightExtend  +

Extend the selection right one word part.

+
Home  +

Move to the start of the document line.

+
HomeExtend  +

Extend the selection to the start of the document line.

+
HomeRectExtend  +

Extend the rectangular selection to the start of the document line.

+
HomeDisplay  +

Move to the start of the displayed line.

+
HomeDisplayExtend  +

Extend the selection to the start of the displayed line.

+
HomeWrap  +

Move to the start of the displayed or document line.

+
HomeWrapExtend  +

Extend the selection to the start of the displayed or document line.

+
VCHome  +

Move to the first visible character in the document line.

+
VCHomeExtend  +

Extend the selection to the first visible character in the document line.

+
VCHomeRectExtend  +

Extend the rectangular selection to the first visible character in the document line.

+
VCHomeWrap  +

Move to the first visible character of the displayed or document line.

+
VCHomeWrapExtend  +

Extend the selection to the first visible character of the displayed or document line.

+
LineEnd  +

Move to the end of the document line.

+
LineEndExtend  +

Extend the selection to the end of the document line.

+
LineEndRectExtend  +

Extend the rectangular selection to the end of the document line.

+
LineEndDisplay  +

Move to the end of the displayed line.

+
LineEndDisplayExtend  +

Extend the selection to the end of the displayed line.

+
LineEndWrap  +

Move to the end of the displayed or document line.

+
LineEndWrapExtend  +

Extend the selection to the end of the displayed or document line.

+
DocumentStart  +

Move to the start of the document.

+
DocumentStartExtend  +

Extend the selection to the start of the document.

+
DocumentEnd  +

Move to the end of the document.

+
DocumentEndExtend  +

Extend the selection to the end of the document.

+
PageUp  +

Move up one page.

+
PageUpExtend  +

Extend the selection up one page.

+
PageUpRectExtend  +

Extend the rectangular selection up one page.

+
PageDown  +

Move down one page.

+
PageDownExtend  +

Extend the selection down one page.

+
PageDownRectExtend  +

Extend the rectangular selection down one page.

+
StutteredPageUp  +

Stuttered move up one page.

+
StutteredPageUpExtend  +

Stuttered extend the selection up one page.

+
StutteredPageDown  +

Stuttered move down one page.

+
StutteredPageDownExtend  +

Stuttered extend the selection down one page.

+
Delete  +

Delete the current character.

+
DeleteBack  +

Delete the previous character.

+
DeleteBackNotLine  +

Delete the previous character if not at start of line.

+
DeleteWordLeft  +

Delete the word to the left.

+
DeleteWordRight  +

Delete the word to the right.

+
DeleteWordRightEnd  +

Delete right to the end of the next word.

+
DeleteLineLeft  +

Delete the line to the left.

+
DeleteLineRight  +

Delete the line to the right.

+
LineDelete  +

Delete the current line.

+
LineCut  +

Cut the current line to the clipboard.

+
LineCopy  +

Copy the current line to the clipboard.

+
LineTranspose  +

Transpose the current and previous lines.

+
LineDuplicate  +

Duplicate the current line.

+
SelectAll  +

Select the whole document.

+
MoveSelectedLinesUp  +

Move the selected lines up one line.

+
MoveSelectedLinesDown  +

Move the selected lines down one line.

+
SelectionDuplicate  +

Duplicate the selection.

+
SelectionLowerCase  +

Convert the selection to lower case.

+
SelectionUpperCase  +

Convert the selection to upper case.

+
SelectionCut  +

Cut the selection to the clipboard.

+
SelectionCopy  +

Copy the selection to the clipboard.

+
Paste  +

Paste from the clipboard.

+
EditToggleOvertype  +

Toggle insert/overtype.

+
Newline  +

Insert a platform dependent newline.

+
Formfeed  +

Insert a formfeed.

+
Tab  +

Indent one level.

+
Backtab  +

De-indent one level.

+
Cancel  +

Cancel any current operation.

+
Undo  +

Undo the last command.

+
Redo  +

Redo the last command.

+
ZoomIn  +

Zoom in.

+
ZoomOut  +

Zoom out.

+
+
+
+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
void QsciCommand::setKey (int key)
+
+
+

Binds the key key to the command. If key is 0 then the key binding is removed. If key is invalid then the key binding is unchanged. Valid keys are any visible or control character or any of Qt::Key_Down, Qt::Key_Up, Qt::Key_Left, Qt::Key_Right, Qt::Key_Home, Qt::Key_End, Qt::Key_PageUp, Qt::Key_PageDown, Qt::Key_Delete, Qt::Key_Insert, Qt::Key_Escape, Qt::Key_Backspace, Qt::Key_Tab, Qt::Key_Backtab, Qt::Key_Return, Qt::Key_Enter, Qt::Key_Super_L, Qt::Key_Super_R or Qt::Key_Menu. Keys may be modified with any combination of Qt::ShiftModifier, Qt::ControlModifier, Qt::AltModifier and Qt::MetaModifier.

+
See also:
key(), setAlternateKey(), validKey()
+ +
+
+ +
+
+ + + + + + + + +
void QsciCommand::setAlternateKey (int altkey)
+
+
+

Binds the alternate key altkey to the command. If key is 0 then the alternate key binding is removed.

+
See also:
alternateKey(), setKey(), validKey()
+ +
+
+ +
+
+ + + + + + + +
int QsciCommand::key () const [inline]
+
+
+

The key that is currently bound to the command is returned.

+
See also:
setKey(), alternateKey()
+ +
+
+ +
+
+ + + + + + + +
int QsciCommand::alternateKey () const [inline]
+
+
+

The alternate key that is currently bound to the command is returned.

+
See also:
setAlternateKey(), key()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciCommandSet-members.html b/doc/html-Qt4Qt5/classQsciCommandSet-members.html new file mode 100644 index 0000000..712d4c6 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciCommandSet-members.html @@ -0,0 +1,76 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciCommandSet Member List
+
+
+This is the complete list of members for QsciCommandSet, including all inherited members. + + + + + + + +
boundTo(int key) const (defined in QsciCommandSet)QsciCommandSet
clearAlternateKeys()QsciCommandSet
clearKeys()QsciCommandSet
commands()QsciCommandSet [inline]
find(QsciCommand::Command command) const (defined in QsciCommandSet)QsciCommandSet
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciCommandSet
writeSettings(QSettings &qs, const char *prefix="/Scintilla")QsciCommandSet
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciCommandSet.html b/doc/html-Qt4Qt5/classQsciCommandSet.html new file mode 100644 index 0000000..ba32e18 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciCommandSet.html @@ -0,0 +1,152 @@ + + + + +QScintilla: QsciCommandSet Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciCommandSet Class Reference
+
+
+ +

#include <qscicommandset.h>

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciCommandSet class represents the set of all internal editor commands that may have keys bound.

+

Methods are provided to access the individual commands and to read and write the current bindings from and to settings files.

+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciCommandSet::readSettings (QSettings & qs,
const char * prefix = "/Scintilla" 
)
+
+
+

The key bindings for each command in the set are read from the settings qs. prefix is prepended to the key of each entry. true is returned if there was no error.

+
See also:
writeSettings()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciCommandSet::writeSettings (QSettings & qs,
const char * prefix = "/Scintilla" 
)
+
+
+

The key bindings for each command in the set are written to the settings qs. prefix is prepended to the key of each entry. true is returned if there was no error.

+
See also:
readSettings()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciDocument-members.html b/doc/html-Qt4Qt5/classQsciDocument-members.html new file mode 100644 index 0000000..55951f5 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciDocument-members.html @@ -0,0 +1,73 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciDocument Member List
+
+
+This is the complete list of members for QsciDocument, including all inherited members. + + + + +
operator=(const QsciDocument &) (defined in QsciDocument)QsciDocument
QsciDocument()QsciDocument
QsciDocument(const QsciDocument &) (defined in QsciDocument)QsciDocument
~QsciDocument() (defined in QsciDocument)QsciDocument [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciDocument.html b/doc/html-Qt4Qt5/classQsciDocument.html new file mode 100644 index 0000000..9bce5bb --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciDocument.html @@ -0,0 +1,87 @@ + + + + +QScintilla: QsciDocument Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciDocument Class Reference
+
+
+ +

#include <qscidocument.h>

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciDocument class represents a document to be edited.

+

It is an opaque class that can be attached to multiple instances of QsciScintilla to create different simultaneous views of the same document. QsciDocument uses implicit sharing so that copying class instances is a cheap operation.

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexer-members.html b/doc/html-Qt4Qt5/classQsciLexer-members.html new file mode 100644 index 0000000..78ef03c --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexer-members.html @@ -0,0 +1,122 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexer Member List
+
+
+This is the complete list of members for QsciLexer, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
defaultColor() const QsciLexer
defaultColor(int style) const QsciLexer [virtual]
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont() const QsciLexer
defaultFont(int style) const QsciLexer [virtual]
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const =0QsciLexer [pure virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexer [virtual]
language() const =0QsciLexer [pure virtual]
lexer() const QsciLexer [virtual]
lexerId() const QsciLexer [virtual]
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexer.html b/doc/html-Qt4Qt5/classQsciLexer.html new file mode 100644 index 0000000..77a478d --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexer.html @@ -0,0 +1,1017 @@ + + + + +QScintilla: QsciLexer Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexer Class Reference
+
+
+ +

#include <qscilexer.h>

+ +

Inherited by QsciLexerAVS, QsciLexerBash, QsciLexerBatch, QsciLexerCMake, QsciLexerCoffeeScript, QsciLexerCPP, QsciLexerCSS, QsciLexerCustom, QsciLexerD, QsciLexerDiff, QsciLexerFortran77, QsciLexerHTML, QsciLexerLua, QsciLexerMakefile, QsciLexerMatlab, QsciLexerPascal, QsciLexerPerl, QsciLexerPO, QsciLexerPostScript, QsciLexerPOV, QsciLexerProperties, QsciLexerPython, QsciLexerRuby, QsciLexerSpice, QsciLexerSQL, QsciLexerTCL, QsciLexerTeX, QsciLexerVerilog, QsciLexerVHDL, and QsciLexerYAML.

+ +

List of all members.

+

+Classes

+
    +
  • struct StyleData +
  • struct StyleDataMap +
+

+Public Slots

+
    +
  • virtual void setAutoIndentStyle (int autoindentstyle) +
  • virtual void setColor (const QColor &c, int style=-1) +
  • virtual void setEolFill (bool eoffill, int style=-1) +
  • virtual void setFont (const QFont &f, int style=-1) +
  • virtual void setPaper (const QColor &c, int style=-1) +
+

+Signals

+ +

+Public Member Functions

+ +

+Protected Member Functions

+
    +
  • virtual bool readProperties (QSettings &qs, const QString &prefix) +
  • virtual bool writeProperties (QSettings &qs, const QString &prefix) const +
+

Detailed Description

+

The QsciLexer class is an abstract class used as a base for language lexers.

+

A lexer scans the text breaking it up into separate language objects, e.g. keywords, strings, operators. The lexer then uses a different style to draw each object. A style is identified by a style number and has a number of attributes, including colour and font. A specific language lexer will implement appropriate default styles which can be overriden by an application by further sub-classing the specific language lexer.

+

A lexer may provide one or more sets of words to be recognised as keywords. Most lexers only provide one set, but some may support languages embedded in other languages and provide several sets.

+

QsciLexer provides convenience methods for saving and restoring user preferences for fonts and colours.

+

If you want to write a lexer for a new language then you can add it to the underlying Scintilla code and implement a corresponding QsciLexer sub-class to manage the different styles used. Alternatively you can implement a sub-class of QsciLexerCustom.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexer::QsciLexer (QObject * parent = 0)
+
+
+

Construct a QsciLexer with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ + + +
+
+ + + + + + + +
virtual const char* QsciLexer::lexer () const [virtual]
+
+ +
+ +
+
+ + + + + + + +
virtual int QsciLexer::lexerId () const [virtual]
+
+
+

Returns the identifier (i.e. a QsciScintillaBase::SCLEX_* value) of the lexer. This is only used if lexer() returns 0. The default implementation returns QsciScintillaBase::SCLEX_CONTAINER.

+
See also:
lexer()
+ +
+
+ +
+
+ + + + + + + +
QsciAbstractAPIs* QsciLexer::apis () const
+
+
+

Returns the current API set or 0 if there isn't one.

+
See also:
setAPIs()
+ +
+
+ +
+
+ + + + + + + +
int QsciLexer::autoIndentStyle ()
+
+
+

Returns the auto-indentation style. The default is 0 if the language is block structured, or QsciScintilla::AiMaintain if not.

+
See also:
setAutoIndentStyle(), QsciScintilla::AiMaintain, QsciScintilla::AiOpening, QsciScintilla::AiClosing
+ +
+
+ +
+
+ + + + + + + + +
virtual QColor QsciLexer::color (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style. The default colour is that returned by defaultColor().

+
See also:
defaultColor(), paper()
+ +
+
+ +
+
+ + + + + + + + +
virtual bool QsciLexer::eolFill (int style) const [virtual]
+
+
+

Returns the end-of-line for style number style. The default is false.

+ +
+
+ +
+
+ + + + + + + + +
virtual QFont QsciLexer::font (int style) const [virtual]
+
+
+

Returns the font for style number style. The default font is that returned by defaultFont().

+
See also:
defaultFont()
+ +
+
+ +
+
+ + + + + + + + +
virtual const char* QsciLexer::keywords (int set) const [virtual]
+
+ +
+ +
+
+ + + + + + + + +
virtual QString QsciLexer::description (int style) const [pure virtual]
+
+
+

Returns the descriptive name for style number style. For a valid style number for this language a non-empty QString must be returned. If the style number is invalid then an empty QString must be returned. This is intended to be used in user preference dialogs.

+ +

Implemented in QsciLexerHTML, QsciLexerPerl, QsciLexerCPP, QsciLexerRuby, QsciLexerCoffeeScript, QsciLexerD, QsciLexerPython, QsciLexerCSS, QsciLexerLua, QsciLexerSQL, QsciLexerTCL, QsciLexerPascal, QsciLexerPOV, QsciLexerVerilog, QsciLexerPostScript, QsciLexerFortran77, QsciLexerVHDL, QsciLexerBash, QsciLexerAVS, QsciLexerCMake, QsciLexerPO, QsciLexerBatch, QsciLexerYAML, QsciLexerSpice, QsciLexerMakefile, QsciLexerMatlab, QsciLexerProperties, QsciLexerDiff, QsciLexerTeX, QsciLexerCSharp, QsciLexerJavaScript, and QsciLexerIDL.

+ +
+
+ +
+
+ + + + + + + + +
virtual QColor QsciLexer::paper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultPaper(), color()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciLexer::defaultColor () const
+
+
+

Returns the default text colour.

+
See also:
setDefaultColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual bool QsciLexer::defaultEolFill (int style) const [virtual]
+
+ +
+ +
+
+ + + + + + + +
QFont QsciLexer::defaultFont () const
+
+
+

Returns the default font.

+
See also:
setDefaultFont()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciLexer::defaultPaper () const
+
+
+

Returns the default paper colour.

+
See also:
setDefaultPaper()
+ +
+
+ +
+
+ + + + + + + +
QsciScintilla* QsciLexer::editor () const [inline]
+
+
+

Returns the QsciScintilla instance that the lexer is currently attached to or 0 if it is unattached.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexer::setAPIs (QsciAbstractAPIsapis)
+
+
+

The current set of APIs is set to apis. If apis is 0 then any existing APIs for this lexer are removed.

+
See also:
apis()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexer::setDefaultColor (const QColor & c)
+
+
+

The default text colour is set to c.

+
See also:
defaultColor(), color()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexer::setDefaultFont (const QFont & f)
+
+
+

The default font is set to f.

+
See also:
defaultFont(), font()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexer::setDefaultPaper (const QColor & c)
+
+
+

The default paper colour is set to c.

+
See also:
defaultPaper(), paper()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexer::readSettings (QSettings & qs,
const char * prefix = "/Scintilla" 
)
+
+
+

The colour, paper, font and end-of-line for each style number, and all lexer specific properties are read from the settings qs. prefix is prepended to the key of each entry. true is returned if there was no error.

+
See also:
writeSettings(), QsciScintilla::setLexer()
+ +
+
+ + + +
+
+ + + + + + + +
virtual int QsciLexer::styleBitsNeeded () const [virtual]
+
+
+

Returns the number of style bits needed by the lexer. Normally this should only be re-implemented by custom lexers.

+ +

Reimplemented in QsciLexerCustom.

+ +
+
+ +
+
+ + + + + + + +
virtual const char* QsciLexer::wordCharacters () const [virtual]
+
+
+

Returns the string of characters that comprise a word. The default is 0 which implies the upper and lower case alphabetic characters and underscore.

+ +

Reimplemented in QsciLexerHTML, QsciLexerPerl, QsciLexerCPP, QsciLexerCoffeeScript, QsciLexerD, QsciLexerCSS, QsciLexerPOV, QsciLexerVerilog, QsciLexerAVS, QsciLexerBash, QsciLexerBatch, QsciLexerDiff, QsciLexerMakefile, QsciLexerProperties, and QsciLexerTeX.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexer::writeSettings (QSettings & qs,
const char * prefix = "/Scintilla" 
) const
+
+
+

The colour, paper, font and end-of-line for each style number, and all lexer specific properties are written to the settings qs. prefix is prepended to the key of each entry. true is returned if there was no error.

+
See also:
readSettings()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexer::setAutoIndentStyle (int autoindentstyle) [virtual, slot]
+
+
+

The auto-indentation style is set to autoindentstyle.

+
See also:
autoIndentStyle(), QsciScintilla::AiMaintain, QsciScintilla::AiOpening, QsciScintilla::AiClosing
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciLexer::setColor (const QColor & c,
int style = -1 
) [virtual, slot]
+
+
+

The foreground colour for style number style is set to c. If style is -1 then the colour is set for all styles.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciLexer::setEolFill (bool eoffill,
int style = -1 
) [virtual, slot]
+
+
+

The end-of-line fill for style number style is set to eoffill. If style is -1 then the fill is set for all styles.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciLexer::setFont (const QFont & f,
int style = -1 
) [virtual, slot]
+
+
+

The font for style number style is set to f. If style is -1 then the font is set for all styles.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciLexer::setPaper (const QColor & c,
int style = -1 
) [virtual, slot]
+
+
+

The background colour for style number style is set to c. If style is -1 then the colour is set for all styles.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexer::colorChanged (const QColor & c,
int style 
) [signal]
+
+
+

This signal is emitted when the foreground colour of style number style has changed. The new colour is c.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexer::eolFillChanged (bool eolfilled,
int style 
) [signal]
+
+
+

This signal is emitted when the end-of-file fill of style number style has changed. The new fill is eolfilled.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexer::fontChanged (const QFont & f,
int style 
) [signal]
+
+
+

This signal is emitted when the font of style number style has changed. The new font is f.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexer::paperChanged (const QColor & c,
int style 
) [signal]
+
+
+

This signal is emitted when the background colour of style number style has changed. The new colour is c.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexer::propertyChanged (const char * prop,
const char * val 
) [signal]
+
+
+

This signal is emitted when the value of the lexer property prop needs to be changed. The new value is val.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual bool QsciLexer::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented in QsciLexerHTML, QsciLexerCPP, QsciLexerPerl, QsciLexerPython, QsciLexerSQL, QsciLexerCoffeeScript, QsciLexerCSS, QsciLexerRuby, QsciLexerD, QsciLexerPascal, QsciLexerVerilog, QsciLexerVHDL, QsciLexerPOV, QsciLexerPostScript, QsciLexerLua, QsciLexerTCL, QsciLexerBash, QsciLexerAVS, QsciLexerFortran77, QsciLexerPO, QsciLexerCMake, QsciLexerTeX, QsciLexerProperties, QsciLexerYAML, and QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual bool QsciLexer::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented in QsciLexerHTML, QsciLexerCPP, QsciLexerPerl, QsciLexerPython, QsciLexerSQL, QsciLexerCoffeeScript, QsciLexerCSS, QsciLexerD, QsciLexerRuby, QsciLexerPascal, QsciLexerVerilog, QsciLexerVHDL, QsciLexerPOV, QsciLexerPostScript, QsciLexerLua, QsciLexerTCL, QsciLexerBash, QsciLexerAVS, QsciLexerFortran77, QsciLexerPO, QsciLexerCMake, QsciLexerTeX, QsciLexerProperties, QsciLexerYAML, and QsciLexerXML.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerAVS-members.html b/doc/html-Qt4Qt5/classQsciLexerAVS-members.html new file mode 100644 index 0000000..c816e7e --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerAVS-members.html @@ -0,0 +1,143 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerAVS Member List
+
+
+This is the complete list of members for QsciLexerAVS, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
BlockComment enum valueQsciLexerAVS
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerAVS)QsciLexerAVS [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
ClipProperty enum valueQsciLexerAVS
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Default enum valueQsciLexerAVS
defaultColor(int style) const QsciLexerAVS [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerAVS [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerAVS [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Filter enum valueQsciLexerAVS
foldComments() const QsciLexerAVS
foldCompact() const QsciLexerAVS
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Function enum valueQsciLexerAVS
Identifier enum valueQsciLexerAVS
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerAVS
keywords(int set) const QsciLexerAVS [virtual]
KeywordSet6 enum valueQsciLexerAVS
language() const QsciLexerAVS [virtual]
lexer() const QsciLexerAVS [virtual]
lexerId() const QsciLexer [virtual]
LineComment enum valueQsciLexerAVS
NestedBlockComment enum valueQsciLexerAVS
Number enum valueQsciLexerAVS
Operator enum valueQsciLexerAVS
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Plugin enum valueQsciLexerAVS
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerAVS(QObject *parent=0)QsciLexerAVS
readProperties(QSettings &qs, const QString &prefix)QsciLexerAVS [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerAVS [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerAVS [virtual, slot]
setFoldCompact(bool fold)QsciLexerAVS [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerAVS
styleBitsNeeded() const QsciLexer [virtual]
TripleString enum valueQsciLexerAVS
wordCharacters() const QsciLexerAVS [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerAVS [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerAVS()QsciLexerAVS [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerAVS.html b/doc/html-Qt4Qt5/classQsciLexerAVS.html new file mode 100644 index 0000000..548a9a8 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerAVS.html @@ -0,0 +1,458 @@ + + + + +QScintilla: QsciLexerAVS Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerAVS Class Reference
+
+
+ +

#include <qscilexeravs.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerAVS class encapsulates the Scintilla AVS lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the AVS lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
BlockComment  +

A block comment.

+
NestedBlockComment  +

A nested block comment.

+
LineComment  +

A line comment.

+
Number  +

A number.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
String  +

A string.

+
TripleString  +

A triple quoted string.

+
Keyword  +

A keyword (as defined by keyword set number 1)..

+
Filter  +

A filter (as defined by keyword set number 2).

+
Plugin  +

A plugin (as defined by keyword set number 3).

+
Function  +

A function (as defined by keyword set number 4).

+
ClipProperty  +

A clip property (as defined by keyword set number 5).

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerAVS::QsciLexerAVS (QObject * parent = 0)
+
+
+

Construct a QsciLexerAVS with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerAVS::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerAVS::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerAVS::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerAVS::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerAVS::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerAVS::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerAVS::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerAVS::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerAVS::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerAVS::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerAVS::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerBash-members.html b/doc/html-Qt4Qt5/classQsciLexerBash-members.html new file mode 100644 index 0000000..08e59f4 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerBash-members.html @@ -0,0 +1,142 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerBash Member List
+
+
+This is the complete list of members for QsciLexerBash, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
Backticks enum valueQsciLexerBash
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerBash)QsciLexerBash [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerBash
Default enum valueQsciLexerBash
defaultColor(int style) const QsciLexerBash [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerBash [virtual]
defaultFont(int style) const QsciLexerBash [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerBash [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerBash [virtual]
DoubleQuotedString enum valueQsciLexerBash
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Error enum valueQsciLexerBash
foldComments() const QsciLexerBash
foldCompact() const QsciLexerBash
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HereDocumentDelimiter enum valueQsciLexerBash
Identifier enum valueQsciLexerBash
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerBash
keywords(int set) const QsciLexerBash [virtual]
language() const QsciLexerBash [virtual]
lexer() const QsciLexerBash [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerBash
Operator enum valueQsciLexerBash
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
ParameterExpansion enum valueQsciLexerBash
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerBash(QObject *parent=0)QsciLexerBash
readProperties(QSettings &qs, const QString &prefix)QsciLexerBash [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerBash [virtual]
Scalar enum valueQsciLexerBash
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerBash [virtual, slot]
setFoldCompact(bool fold)QsciLexerBash [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedHereDocument enum valueQsciLexerBash
SingleQuotedString enum valueQsciLexerBash
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexerBash [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerBash [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerBash()QsciLexerBash [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerBash.html b/doc/html-Qt4Qt5/classQsciLexerBash.html new file mode 100644 index 0000000..c2ae918 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerBash.html @@ -0,0 +1,478 @@ + + + + +QScintilla: QsciLexerBash Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerBash Class Reference
+
+
+ +

#include <qscilexerbash.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerBash class encapsulates the Scintilla Bash lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Bash lexer.

+
Enumerator:
+ + + + + + + + + + + + + + +
Default  +

The default.

+
Error  +

An error.

+
Comment  +

A comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
Scalar  +

A scalar.

+
ParameterExpansion  +

Parameter expansion.

+
Backticks  +

Backticks.

+
HereDocumentDelimiter  +

A here document delimiter.

+
SingleQuotedHereDocument  +

A single quoted here document.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerBash::QsciLexerBash (QObject * parent = 0)
+
+
+

Construct a QsciLexerBash with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerBash::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerBash::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerBash::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerBash::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerBash::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerBash::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerBash::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerBash::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerBash::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerBash::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerBash::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerBash::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerBatch-members.html b/doc/html-Qt4Qt5/classQsciLexerBatch-members.html new file mode 100644 index 0000000..27884e5 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerBatch-members.html @@ -0,0 +1,132 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerBatch Member List
+
+
+This is the complete list of members for QsciLexerBatch, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexerBatch)QsciLexerBatch [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerBatch
Default enum valueQsciLexerBatch
defaultColor(int style) const QsciLexerBatch [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerBatch [virtual]
defaultFont(int style) const QsciLexerBatch [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerBatch [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerBatch [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
ExternalCommand enum valueQsciLexerBatch
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HideCommandChar enum valueQsciLexerBatch
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerBatch
keywords(int set) const QsciLexerBatch [virtual]
Label enum valueQsciLexerBatch
language() const QsciLexerBatch [virtual]
lexer() const QsciLexerBatch [virtual]
lexerId() const QsciLexer [virtual]
Operator enum valueQsciLexerBatch
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerBatch(QObject *parent=0)QsciLexerBatch
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
Variable enum valueQsciLexerBatch
wordCharacters() const QsciLexerBatch [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerBatch()QsciLexerBatch [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerBatch.html b/doc/html-Qt4Qt5/classQsciLexerBatch.html new file mode 100644 index 0000000..0c66599 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerBatch.html @@ -0,0 +1,282 @@ + + + + +QScintilla: QsciLexerBatch Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerBatch Class Reference
+
+
+ +

#include <qscilexerbatch.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerBatch class encapsulates the Scintilla batch file lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the batch file lexer.

+
Enumerator:
+ + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Keyword  +

A keyword.

+
Label  +

A label.

+
HideCommandChar  +

An hide command character.

+
ExternalCommand  +

An external command .

+
Variable  +

A variable.

+
Operator  +

An operator.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerBatch::QsciLexerBatch (QObject * parent = 0)
+
+
+

Construct a QsciLexerBatch with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerBatch::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerBatch::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerBatch::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerBatch::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerBatch::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCMake-members.html b/doc/html-Qt4Qt5/classQsciLexerCMake-members.html new file mode 100644 index 0000000..d036bb0 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCMake-members.html @@ -0,0 +1,141 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCMake Member List
+
+
+This is the complete list of members for QsciLexerCMake, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
BlockForeach enum valueQsciLexerCMake
BlockIf enum valueQsciLexerCMake
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
BlockMacro enum valueQsciLexerCMake
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
BlockWhile enum valueQsciLexerCMake
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCMake
Default enum valueQsciLexerCMake
defaultColor(int style) const QsciLexerCMake [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerCMake [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCMake [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCMake [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCMake
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Function enum valueQsciLexerCMake
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexerCMake [virtual]
KeywordSet3 enum valueQsciLexerCMake
Label enum valueQsciLexerCMake
language() const QsciLexerCMake [virtual]
lexer() const QsciLexerCMake [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCMake
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerCMake(QObject *parent=0)QsciLexerCMake
readProperties(QSettings &qs, const QString &prefix)QsciLexerCMake [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCMake [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCMake [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerCMake
StringLeftQuote enum valueQsciLexerCMake
StringRightQuote enum valueQsciLexerCMake
StringVariable enum valueQsciLexerCMake
styleBitsNeeded() const QsciLexer [virtual]
Variable enum valueQsciLexerCMake
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCMake [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCMake()QsciLexerCMake [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCMake.html b/doc/html-Qt4Qt5/classQsciLexerCMake.html new file mode 100644 index 0000000..393af4d --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCMake.html @@ -0,0 +1,437 @@ + + + + +QScintilla: QsciLexerCMake Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCMake Class Reference
+
+
+ +

#include <qscilexercmake.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerCMake class encapsulates the Scintilla CMake lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the CMake lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
String  +

A string.

+
StringLeftQuote  +

A left quoted string.

+
StringRightQuote  +

A right quoted string.

+
Function  +

A function. (Defined by keyword set number 1.)

+
Variable  +

A variable. (Defined by keyword set number 2.)

+
Label  +

A label.

+
KeywordSet3  +

A keyword defined in keyword set number 3. The class must be sub-classed and re-implement keywords() to make use of this style.

+
BlockWhile  +

A WHILE block.

+
BlockForeach  +

A FOREACH block.

+
BlockIf  +

An IF block.

+
BlockMacro  +

A MACRO block.

+
StringVariable  +

A variable within a string.

+
Number  +

A number.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerCMake::QsciLexerCMake (QObject * parent = 0)
+
+
+

Construct a QsciLexerCMake with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerCMake::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCMake::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCMake::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerCMake::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerCMake::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerCMake::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCMake::foldAtElse () const
+
+
+

Returns true if ELSE blocks can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCMake::setFoldAtElse (bool fold) [virtual, slot]
+
+
+

If fold is true then ELSE blocks can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCMake::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCMake::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCPP-members.html b/doc/html-Qt4Qt5/classQsciLexerCPP-members.html new file mode 100644 index 0000000..d10e0a0 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCPP-members.html @@ -0,0 +1,190 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCPP Member List
+
+
+This is the complete list of members for QsciLexerCPP, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
braceStyle() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCPP
CommentDoc enum valueQsciLexerCPP
CommentDocKeyword enum valueQsciLexerCPP
CommentDocKeywordError enum valueQsciLexerCPP
CommentLine enum valueQsciLexerCPP
CommentLineDoc enum valueQsciLexerCPP
Default enum valueQsciLexerCPP
defaultColor(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerCPP [virtual]
defaultFont(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCPP [virtual]
dollarsAllowed() const QsciLexerCPP [inline]
DoubleQuotedString enum valueQsciLexerCPP
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCPP [inline]
foldComments() const QsciLexerCPP [inline]
foldCompact() const QsciLexerCPP [inline]
foldPreprocessor() const QsciLexerCPP [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCPP
HashQuotedString enum valueQsciLexerCPP
highlightHashQuotedStrings() const QsciLexerCPP [inline]
highlightTripleQuotedStrings() const QsciLexerCPP [inline]
Identifier enum valueQsciLexerCPP
InactiveComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeywordError enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLine enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDefault enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDoubleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveGlobalClass enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveHashQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveIdentifier enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeywordSet2 enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveNumber enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveOperator enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessor enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRawString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRegex enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveSingleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveTripleQuotedVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUnclosedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUUID enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCPP
keywords(int set) const QsciLexerCPP [virtual]
KeywordSet2 enum valueQsciLexerCPP
language() const QsciLexerCPP [virtual]
lexer() const QsciLexerCPP [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCPP
Operator enum valueQsciLexerCPP
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCPP
PreProcessorComment enum valueQsciLexerCPP
PreProcessorCommentLineDoc enum valueQsciLexerCPP
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerCPP(QObject *parent=0, bool caseInsensitiveKeywords=false)QsciLexerCPP
RawString enum valueQsciLexerCPP
readProperties(QSettings &qs, const QString &prefix)QsciLexerCPP [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCPP [virtual]
Regex enum valueQsciLexerCPP
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCPP
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCPP [virtual, slot]
setFoldComments(bool fold)QsciLexerCPP [virtual, slot]
setFoldCompact(bool fold)QsciLexerCPP [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerCPP [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightHashQuotedStrings(bool enabled)QsciLexerCPP
setHighlightTripleQuotedStrings(bool enabled)QsciLexerCPP
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCPP [virtual, slot]
SingleQuotedString enum valueQsciLexerCPP
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCPP [inline]
TripleQuotedVerbatimString enum valueQsciLexerCPP
UnclosedString enum valueQsciLexerCPP
UUID enum valueQsciLexerCPP
VerbatimString enum valueQsciLexerCPP
wordCharacters() const QsciLexerCPP [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCPP [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCPP()QsciLexerCPP [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCPP.html b/doc/html-Qt4Qt5/classQsciLexerCPP.html new file mode 100644 index 0000000..f679ccb --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCPP.html @@ -0,0 +1,823 @@ + + + + +QScintilla: QsciLexerCPP Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCPP Class Reference
+
+
+ +

#include <qscilexercpp.h>

+ +

Inherits QsciLexer.

+ +

Inherited by QsciLexerCSharp, QsciLexerIDL, QsciLexerJava, and QsciLexerJavaScript.

+ +

List of all members.

+

+Public Types

+
    +
  • enum {
    +  Default = 0, +InactiveDefault = Default + 64, +Comment = 1, +
    +  InactiveComment = Comment + 64, +CommentLine = 2, +InactiveCommentLine = CommentLine + 64, +
    +  CommentDoc = 3, +InactiveCommentDoc = CommentDoc + 64, +Number = 4, +
    +  InactiveNumber = Number + 64, +Keyword = 5, +InactiveKeyword = Keyword + 64, +
    +  DoubleQuotedString = 6, +InactiveDoubleQuotedString = DoubleQuotedString + 64, +SingleQuotedString = 7, +
    +  InactiveSingleQuotedString = SingleQuotedString + 64, +UUID = 8, +InactiveUUID = UUID + 64, +
    +  PreProcessor = 9, +InactivePreProcessor = PreProcessor + 64, +Operator = 10, +
    +  InactiveOperator = Operator + 64, +Identifier = 11, +InactiveIdentifier = Identifier + 64, +
    +  UnclosedString = 12, +InactiveUnclosedString = UnclosedString + 64, +VerbatimString = 13, +
    +  InactiveVerbatimString = VerbatimString + 64, +Regex = 14, +InactiveRegex = Regex + 64, +
    +  CommentLineDoc = 15, +InactiveCommentLineDoc = CommentLineDoc + 64, +KeywordSet2 = 16, +
    +  InactiveKeywordSet2 = KeywordSet2 + 64, +CommentDocKeyword = 17, +InactiveCommentDocKeyword = CommentDocKeyword + 64, +
    +  CommentDocKeywordError = 18, +InactiveCommentDocKeywordError = CommentDocKeywordError + 64, +GlobalClass = 19, +
    +  InactiveGlobalClass = GlobalClass + 64, +RawString = 20, +InactiveRawString = RawString + 20, +
    +  TripleQuotedVerbatimString = 21, +InactiveTripleQuotedVerbatimString = TripleQuotedVerbatimString + 21, +HashQuotedString = 22, +
    +  InactiveHashQuotedString = HashQuotedString + 22, +PreProcessorComment = 23, +InactivePreProcessorComment = PreProcessorComment + 23, +
    +  PreProcessorCommentLineDoc = 24, +InactivePreProcessorCommentLineDoc = PreProcessorCommentLineDoc + 64 +
    + } +
+

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerCPP class encapsulates the Scintilla C++ lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the C++ lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A C comment.

+
CommentLine  +

A C++ comment line.

+
CommentDoc  +

A JavaDoc/Doxygen style C comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
UUID  +

An IDL UUID.

+
PreProcessor  +

A pre-processor block.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
UnclosedString  +

The end of a line where a string is not closed.

+
VerbatimString  +

A C# verbatim string.

+
Regex  +

A JavaScript regular expression.

+
CommentLineDoc  +

A JavaDoc/Doxygen style C++ comment line.

+
KeywordSet2  +

A keyword defined in keyword set number 2. The class must be sub-classed and re-implement keywords() to make use of this style.

+
CommentDocKeyword  +

A JavaDoc/Doxygen keyword.

+
CommentDocKeywordError  +

A JavaDoc/Doxygen keyword error.

+
GlobalClass  +

A global class or typedef defined in keyword set number 5. The class must be sub-classed and re-implement keywords() to make use of this style.

+
RawString  +

A C++ raw string.

+
TripleQuotedVerbatimString  +

A Vala triple-quoted verbatim string.

+
HashQuotedString  +

A Pike hash-quoted string.

+
PreProcessorComment  +

A pre-processor stream comment.

+
PreProcessorCommentLineDoc  +

A JavaDoc/Doxygen style pre-processor comment.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciLexerCPP::QsciLexerCPP (QObject * parent = 0,
bool caseInsensitiveKeywords = false 
)
+
+
+

Construct a QsciLexerCPP with parent parent. parent is typically the QsciScintilla instance. caseInsensitiveKeywords is true if the lexer ignores the case of keywords.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerCPP::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCPP::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerCSharp, QsciLexerJavaScript, and QsciLexerIDL.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCPP::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerCSharp, and QsciLexerJavaScript.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerCPP::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string. Set 1 is normally used for primary keywords and identifiers. Set 2 is normally used for secondary keywords and identifiers. Set 3 is normally used for documentation comment keywords. Set 4 is normally used for global classes and typedefs.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerCSharp, QsciLexerJavaScript, QsciLexerIDL, and QsciLexerJava.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerCPP::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +

Reimplemented in QsciLexerCSharp, QsciLexerJavaScript, and QsciLexerIDL.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerCPP::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::foldAtElse () const [inline]
+
+
+

Returns true if "} else {" lines can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::foldPreprocessor () const [inline]
+
+
+

Returns true if preprocessor blocks can be folded.

+
See also:
setFoldPreprocessor()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::stylePreprocessor () const [inline]
+
+
+

Returns true if preprocessor lines (after the preprocessor directive) are styled.

+
See also:
setStylePreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCPP::setDollarsAllowed (bool allowed)
+
+
+

If allowed is true then '$' characters are allowed in identifier names. The default is true.

+
See also:
dollarsAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::dollarsAllowed () const [inline]
+
+
+

Returns true if '$' characters are allowed in identifier names.

+
See also:
setDollarsAllowed()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCPP::setHighlightTripleQuotedStrings (bool enabled)
+
+
+

If enabled is true then triple quoted strings are highlighted. The default is false.

+
See also:
highlightTripleQuotedStrings()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::highlightTripleQuotedStrings () const [inline]
+
+
+

Returns true if triple quoted strings should be highlighted.

+
See also:
setHighlightTripleQuotedStrings()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCPP::setHighlightHashQuotedStrings (bool enabled)
+
+
+

If enabled is true then hash quoted strings are highlighted. The default is false.

+
See also:
highlightHashQuotedStrings()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCPP::highlightHashQuotedStrings () const [inline]
+
+
+

Returns true if hash quoted strings should be highlighted.

+
See also:
setHighlightHashQuotedStrings()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCPP::setFoldAtElse (bool fold) [virtual, slot]
+
+
+

If fold is true then "} else {" lines can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCPP::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCPP::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCPP::setFoldPreprocessor (bool fold) [virtual, slot]
+
+
+

If fold is true then preprocessor blocks can be folded. The default is true.

+
See also:
foldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCPP::setStylePreprocessor (bool style) [virtual, slot]
+
+
+

If style is true then preprocessor lines (after the preprocessor directive) are styled. The default is false.

+
See also:
stylePreprocessor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCPP::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCPP::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCSS-members.html b/doc/html-Qt4Qt5/classQsciLexerCSS-members.html new file mode 100644 index 0000000..a033e0d --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCSS-members.html @@ -0,0 +1,158 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCSS Member List
+
+
+This is the complete list of members for QsciLexerCSS, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
AtRule enum valueQsciLexerCSS
Attribute enum valueQsciLexerCSS
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCSS)QsciLexerCSS [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCSS)QsciLexerCSS [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
ClassSelector enum valueQsciLexerCSS
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCSS
CSS1Property enum valueQsciLexerCSS
CSS2Property enum valueQsciLexerCSS
CSS3Property enum valueQsciLexerCSS
Default enum valueQsciLexerCSS
defaultColor(int style) const QsciLexerCSS [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerCSS [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCSS [virtual]
DoubleQuotedString enum valueQsciLexerCSS
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
ExtendedCSSProperty enum valueQsciLexerCSS
ExtendedPseudoClass enum valueQsciLexerCSS
ExtendedPseudoElement enum valueQsciLexerCSS
foldComments() const QsciLexerCSS
foldCompact() const QsciLexerCSS
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HSSLanguage() const QsciLexerCSS [inline]
IDSelector enum valueQsciLexerCSS
Important enum valueQsciLexerCSS
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexerCSS [virtual]
language() const QsciLexerCSS [virtual]
LessLanguage() const QsciLexerCSS [inline]
lexer() const QsciLexerCSS [virtual]
lexerId() const QsciLexer [virtual]
MediaRule enum valueQsciLexerCSS
Operator enum valueQsciLexerCSS
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
PseudoClass enum valueQsciLexerCSS
PseudoElement enum valueQsciLexerCSS
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerCSS(QObject *parent=0)QsciLexerCSS
readProperties(QSettings &qs, const QString &prefix)QsciLexerCSS [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCSS [virtual]
SCSSLanguage() const QsciLexerCSS [inline]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerCSS [virtual, slot]
setFoldCompact(bool fold)QsciLexerCSS [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHSSLanguage(bool enabled)QsciLexerCSS
setLessLanguage(bool enabled)QsciLexerCSS
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setSCSSLanguage(bool enabled)QsciLexerCSS
SingleQuotedString enum valueQsciLexerCSS
styleBitsNeeded() const QsciLexer [virtual]
Tag enum valueQsciLexerCSS
UnknownProperty enum valueQsciLexerCSS
UnknownPseudoClass enum valueQsciLexerCSS
Value enum valueQsciLexerCSS
Variable enum valueQsciLexerCSS
wordCharacters() const QsciLexerCSS [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCSS [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCSS()QsciLexerCSS [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCSS.html b/doc/html-Qt4Qt5/classQsciLexerCSS.html new file mode 100644 index 0000000..3a071ab --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCSS.html @@ -0,0 +1,596 @@ + + + + +QScintilla: QsciLexerCSS Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCSS Class Reference
+
+
+ +

#include <qscilexercss.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerCSS class encapsulates the Scintilla CSS lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the CSS lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Tag  +

A tag.

+
ClassSelector  +

A class selector.

+
PseudoClass  +

A pseudo class. The list of pseudo classes is defined by keyword set 2.

+
UnknownPseudoClass  +

An unknown pseudo class.

+
Operator  +

An operator.

+
CSS1Property  +

A CSS1 property. The list of CSS1 properties is defined by keyword set 1.

+
UnknownProperty  +

An unknown property.

+
Value  +

A value.

+
Comment  +

A comment.

+
IDSelector  +

An ID selector.

+
Important  +

An important value.

+
AtRule  +

An @-rule.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
CSS2Property  +

A CSS2 property. The list of CSS2 properties is defined by keyword set 3.

+
Attribute  +

An attribute.

+
CSS3Property  +

A CSS3 property. The list of CSS3 properties is defined by keyword set 4.

+
PseudoElement  +

A pseudo element. The list of pseudo elements is defined by keyword set 5.

+
ExtendedCSSProperty  +

An extended (browser specific) CSS property. The list of extended CSS properties is defined by keyword set 6.

+
ExtendedPseudoClass  +

An extended (browser specific) pseudo class. The list of extended pseudo classes is defined by keyword set 7.

+
ExtendedPseudoElement  +

An extended (browser specific) pseudo element. The list of extended pseudo elements is defined by keyword set 8.

+
MediaRule  +

A media rule.

+
Variable  +

A variable.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerCSS::QsciLexerCSS (QObject * parent = 0)
+
+
+

Construct a QsciLexerCSS with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerCSS::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerCSS::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerCSS::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerCSS::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCSS::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCSS::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCSS::setHSSLanguage (bool enabled)
+
+
+

If enabled is true then support for HSS is enabled. The default is false.

+
See also:
HSSLanguage()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCSS::HSSLanguage () const [inline]
+
+
+

Returns true if support for HSS is enabled.

+
See also:
setHSSLanguage()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCSS::setLessLanguage (bool enabled)
+
+
+

If enabled is true then support for Less CSS is enabled. The default is false.

+
See also:
LessLanguage()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCSS::LessLanguage () const [inline]
+
+
+

Returns true if support for Less CSS is enabled.

+
See also:
setLessLanguage()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCSS::setSCSSLanguage (bool enabled)
+
+
+

If enabled is true then support for Sassy CSS is enabled. The default is false.

+
See also:
SCSSLanguage()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCSS::SCSSLanguage () const [inline]
+
+
+

Returns true if support for Sassy CSS is enabled.

+
See also:
setSCSSLanguage()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCSS::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerCSS::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCSS::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCSS::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCSharp-members.html b/doc/html-Qt4Qt5/classQsciLexerCSharp-members.html new file mode 100644 index 0000000..685de2e --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCSharp-members.html @@ -0,0 +1,192 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCSharp Member List
+
+
+This is the complete list of members for QsciLexerCSharp, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
braceStyle() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCPP
CommentDoc enum valueQsciLexerCPP
CommentDocKeyword enum valueQsciLexerCPP
CommentDocKeywordError enum valueQsciLexerCPP
CommentLine enum valueQsciLexerCPP
CommentLineDoc enum valueQsciLexerCPP
Default enum valueQsciLexerCPP
defaultColor(int style) const QsciLexerCSharp [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerCSharp [virtual]
defaultFont(int style) const QsciLexerCSharp [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCSharp [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCSharp [virtual]
dollarsAllowed() const QsciLexerCPP [inline]
DoubleQuotedString enum valueQsciLexerCPP
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCPP [inline]
foldComments() const QsciLexerCPP [inline]
foldCompact() const QsciLexerCPP [inline]
foldPreprocessor() const QsciLexerCPP [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCPP
HashQuotedString enum valueQsciLexerCPP
highlightHashQuotedStrings() const QsciLexerCPP [inline]
highlightTripleQuotedStrings() const QsciLexerCPP [inline]
Identifier enum valueQsciLexerCPP
InactiveComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeywordError enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLine enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDefault enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDoubleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveGlobalClass enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveHashQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveIdentifier enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeywordSet2 enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveNumber enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveOperator enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessor enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRawString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRegex enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveSingleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveTripleQuotedVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUnclosedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUUID enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCPP
keywords(int set) const QsciLexerCSharp [virtual]
KeywordSet2 enum valueQsciLexerCPP
language() const QsciLexerCSharp [virtual]
lexer() const QsciLexerCPP [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCPP
Operator enum valueQsciLexerCPP
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCPP
PreProcessorComment enum valueQsciLexerCPP
PreProcessorCommentLineDoc enum valueQsciLexerCPP
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerCPP(QObject *parent=0, bool caseInsensitiveKeywords=false)QsciLexerCPP
QsciLexerCSharp(QObject *parent=0)QsciLexerCSharp
RawString enum valueQsciLexerCPP
readProperties(QSettings &qs, const QString &prefix)QsciLexerCPP [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCPP [virtual]
Regex enum valueQsciLexerCPP
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCPP
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCPP [virtual, slot]
setFoldComments(bool fold)QsciLexerCPP [virtual, slot]
setFoldCompact(bool fold)QsciLexerCPP [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerCPP [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightHashQuotedStrings(bool enabled)QsciLexerCPP
setHighlightTripleQuotedStrings(bool enabled)QsciLexerCPP
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCPP [virtual, slot]
SingleQuotedString enum valueQsciLexerCPP
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCPP [inline]
TripleQuotedVerbatimString enum valueQsciLexerCPP
UnclosedString enum valueQsciLexerCPP
UUID enum valueQsciLexerCPP
VerbatimString enum valueQsciLexerCPP
wordCharacters() const QsciLexerCPP [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCPP [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCPP()QsciLexerCPP [virtual]
~QsciLexerCSharp()QsciLexerCSharp [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCSharp.html b/doc/html-Qt4Qt5/classQsciLexerCSharp.html new file mode 100644 index 0000000..00ced46 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCSharp.html @@ -0,0 +1,197 @@ + + + + +QScintilla: QsciLexerCSharp Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCSharp Class Reference
+
+
+ +

#include <qscilexercsharp.h>

+ +

Inherits QsciLexerCPP.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerCSharp class encapsulates the Scintilla C# lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerCSharp::QsciLexerCSharp (QObject * parent = 0)
+
+
+

Construct a QsciLexerCSharp with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
QColor QsciLexerCSharp::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCSharp::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerCSharp::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerCSharp::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCoffeeScript-members.html b/doc/html-Qt4Qt5/classQsciLexerCoffeeScript-members.html new file mode 100644 index 0000000..d88443c --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCoffeeScript-members.html @@ -0,0 +1,155 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCoffeeScript Member List
+
+
+This is the complete list of members for QsciLexerCoffeeScript, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCoffeeScript)QsciLexerCoffeeScript [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCoffeeScript)QsciLexerCoffeeScript [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
BlockRegex enum valueQsciLexerCoffeeScript
BlockRegexComment enum valueQsciLexerCoffeeScript
blockStart(int *style=0) const (defined in QsciLexerCoffeeScript)QsciLexerCoffeeScript [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCoffeeScript)QsciLexerCoffeeScript [virtual]
braceStyle() const (defined in QsciLexerCoffeeScript)QsciLexerCoffeeScript [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCoffeeScript
CommentBlock enum valueQsciLexerCoffeeScript
CommentDoc enum valueQsciLexerCoffeeScript
CommentDocKeyword enum valueQsciLexerCoffeeScript
CommentDocKeywordError enum valueQsciLexerCoffeeScript
CommentLine enum valueQsciLexerCoffeeScript
CommentLineDoc enum valueQsciLexerCoffeeScript
Default enum valueQsciLexerCoffeeScript
defaultColor(int style) const QsciLexerCoffeeScript [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerCoffeeScript [virtual]
defaultFont(int style) const QsciLexerCoffeeScript [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCoffeeScript [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCoffeeScript [virtual]
dollarsAllowed() const QsciLexerCoffeeScript [inline]
DoubleQuotedString enum valueQsciLexerCoffeeScript
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerCoffeeScript [inline]
foldCompact() const QsciLexerCoffeeScript [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCoffeeScript
Identifier enum valueQsciLexerCoffeeScript
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCoffeeScript
keywords(int set) const QsciLexerCoffeeScript [virtual]
KeywordSet2 enum valueQsciLexerCoffeeScript
language() const QsciLexerCoffeeScript [virtual]
lexer() const QsciLexerCoffeeScript [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCoffeeScript
Operator enum valueQsciLexerCoffeeScript
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCoffeeScript
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerCoffeeScript(QObject *parent=0)QsciLexerCoffeeScript
readProperties(QSettings &qs, const QString &prefix)QsciLexerCoffeeScript [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCoffeeScript [virtual]
Regex enum valueQsciLexerCoffeeScript
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCoffeeScript
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerCoffeeScript
setFoldCompact(bool fold)QsciLexerCoffeeScript
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCoffeeScript
SingleQuotedString enum valueQsciLexerCoffeeScript
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCoffeeScript [inline]
UnclosedString enum valueQsciLexerCoffeeScript
UUID enum valueQsciLexerCoffeeScript
VerbatimString enum valueQsciLexerCoffeeScript
wordCharacters() const QsciLexerCoffeeScript [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCoffeeScript [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCoffeeScript()QsciLexerCoffeeScript [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCoffeeScript.html b/doc/html-Qt4Qt5/classQsciLexerCoffeeScript.html new file mode 100644 index 0000000..b239b5d --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCoffeeScript.html @@ -0,0 +1,600 @@ + + + + +QScintilla: QsciLexerCoffeeScript Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCoffeeScript Class Reference
+
+
+ +

#include <qscilexercoffeescript.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerCoffeeScript class encapsulates the Scintilla CoffeeScript lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the C++ lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A C-style comment.

+
CommentLine  +

A C++-style comment line.

+
CommentDoc  +

A JavaDoc/Doxygen C-style comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
UUID  +

An IDL UUID.

+
PreProcessor  +

A pre-processor block.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
UnclosedString  +

The end of a line where a string is not closed.

+
VerbatimString  +

A C# verbatim string.

+
Regex  +

A regular expression.

+
CommentLineDoc  +

A JavaDoc/Doxygen C++-style comment line.

+
KeywordSet2  +

A keyword defined in keyword set number 2. The class must be sub-classed and re-implement keywords() to make use of this style.

+
CommentDocKeyword  +

A JavaDoc/Doxygen keyword.

+
CommentDocKeywordError  +

A JavaDoc/Doxygen keyword error defined in keyword set number 3. The class must be sub-classed and re-implement keywords() to make use of this style.

+
GlobalClass  +

A global class defined in keyword set number 4. The class must be sub-classed and re-implement keywords() to make use of this style.

+
CommentBlock  +

A block comment.

+
BlockRegex  +

A block regular expression.

+
BlockRegexComment  +

A block regular expression comment.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerCoffeeScript::QsciLexerCoffeeScript (QObject * parent = 0)
+
+
+

Construct a QsciLexerCoffeeScript with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerCoffeeScript::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCoffeeScript::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerCoffeeScript::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerCoffeeScript::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string. Set 1 is normally used for primary keywords and identifiers. Set 2 is normally used for secondary keywords and identifiers. Set 3 is normally used for documentation comment keywords. Set 4 is normally used for global classes and typedefs.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerCoffeeScript::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerCoffeeScript::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCoffeeScript::dollarsAllowed () const [inline]
+
+
+

Returns true if '$' characters are allowed in identifier names.

+
See also:
setDollarsAllowed()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCoffeeScript::setDollarsAllowed (bool allowed)
+
+
+

If allowed is true then '$' characters are allowed in identifier names. The default is true.

+
See also:
dollarsAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCoffeeScript::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCoffeeScript::setFoldComments (bool fold)
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCoffeeScript::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCoffeeScript::setFoldCompact (bool fold)
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerCoffeeScript::stylePreprocessor () const [inline]
+
+
+

Returns true if preprocessor lines (after the preprocessor directive) are styled.

+
See also:
setStylePreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerCoffeeScript::setStylePreprocessor (bool style)
+
+
+

If style is true then preprocessor lines (after the preprocessor directive) are styled. The default is false.

+
See also:
stylePreprocessor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCoffeeScript::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerCoffeeScript::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCustom-members.html b/doc/html-Qt4Qt5/classQsciLexerCustom-members.html new file mode 100644 index 0000000..c74824f --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCustom-members.html @@ -0,0 +1,128 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerCustom Member List
+
+
+This is the complete list of members for QsciLexerCustom, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
defaultColor() const QsciLexer
defaultColor(int style) const QsciLexer [virtual]
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont() const QsciLexer
defaultFont(int style) const QsciLexer [virtual]
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const =0QsciLexer [pure virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexer [virtual]
language() const =0QsciLexer [pure virtual]
lexer() const QsciLexer [virtual]
lexerId() const QsciLexer [virtual]
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerCustom(QObject *parent=0)QsciLexerCustom
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor)QsciLexerCustom [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStyling(int length, int style)QsciLexerCustom
setStyling(int length, const QsciStyle &style)QsciLexerCustom
startStyling(int pos, int styleBits=0)QsciLexerCustom
styleBitsNeeded() const QsciLexerCustom [virtual]
styleText(int start, int end)=0QsciLexerCustom [pure virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCustom()QsciLexerCustom [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerCustom.html b/doc/html-Qt4Qt5/classQsciLexerCustom.html new file mode 100644 index 0000000..999ddb9 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerCustom.html @@ -0,0 +1,249 @@ + + + + +QScintilla: QsciLexerCustom Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerCustom Class Reference
+
+
+ +

#include <qscilexercustom.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerCustom class is an abstract class used as a base for new language lexers.

+

The advantage of implementing a new lexer this way (as opposed to adding the lexer to the underlying Scintilla code) is that it does not require the QScintilla library to be re-compiled. It also makes it possible to integrate external lexers.

+

All that is necessary to implement a new lexer is to define appropriate styles and to re-implement the styleText() method.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerCustom::QsciLexerCustom (QObject * parent = 0)
+
+
+

Construct a QsciLexerCustom with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexerCustom::setStyling (int length,
int style 
)
+
+
+

The next length characters starting from the current styling position have their style set to style number style. The current styling position is moved. The styling position is initially set by calling startStyling().

+
See also:
startStyling(), styleText()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexerCustom::setStyling (int length,
const QsciStylestyle 
)
+
+
+

The next length characters starting from the current styling position have their style set to style style. The current styling position is moved. The styling position is initially set by calling startStyling().

+
See also:
startStyling(), styleText()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciLexerCustom::startStyling (int pos,
int styleBits = 0 
)
+
+
+

The styling position is set to start and the mask of style bits that can be set is set to styleBits. styleBits allows the styling of text to be done over several passes by setting different style bits on each pass. If styleBits is 0 then all style bits (as returned by styleBitsNeeded()) are set.

+
See also:
setStyling(), styleBitsNeeded(), styleText()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciLexerCustom::styleText (int start,
int end 
) [pure virtual]
+
+
+

This is called when the section of text beginning at position start and up to position end needs to be styled. start will always be at the start of a line. The text is styled by calling startStyling() followed by one or more calls to setStyling(). It must be re-implemented by a sub-class.

+
See also:
setStyling(), startStyling()
+ +
+
+ +
+
+ + + + + + + +
virtual int QsciLexerCustom::styleBitsNeeded () const [virtual]
+
+
+

This re-implementation returns 5 as the number of style bits needed.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerD-members.html b/doc/html-Qt4Qt5/classQsciLexerD-members.html new file mode 100644 index 0000000..d864a43 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerD-members.html @@ -0,0 +1,153 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerD Member List
+
+
+This is the complete list of members for QsciLexerD, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerD)QsciLexerD [virtual]
autoIndentStyle()QsciLexer
BackquoteString enum valueQsciLexerD
blockEnd(int *style=0) const (defined in QsciLexerD)QsciLexerD [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerD)QsciLexerD [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerD)QsciLexerD [virtual]
braceStyle() const (defined in QsciLexerD)QsciLexerD [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
Character enum valueQsciLexerD
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerD
CommentDoc enum valueQsciLexerD
CommentDocKeyword enum valueQsciLexerD
CommentDocKeywordError enum valueQsciLexerD
CommentLine enum valueQsciLexerD
CommentLineDoc enum valueQsciLexerD
CommentNested enum valueQsciLexerD
Default enum valueQsciLexerD
defaultColor(int style) const QsciLexerD [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerD [virtual]
defaultFont(int style) const QsciLexerD [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerD [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerD [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerD
foldComments() const QsciLexerD
foldCompact() const QsciLexerD
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerD
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerD
KeywordDoc enum valueQsciLexerD
keywords(int set) const QsciLexerD [virtual]
KeywordSecondary enum valueQsciLexerD
KeywordSet5 enum valueQsciLexerD
KeywordSet6 enum valueQsciLexerD
KeywordSet7 enum valueQsciLexerD
language() const QsciLexerD [virtual]
lexer() const QsciLexerD [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerD
Operator enum valueQsciLexerD
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerD(QObject *parent=0)QsciLexerD
RawString enum valueQsciLexerD
readProperties(QSettings &qs, const QString &prefix)QsciLexerD [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerD [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerD [virtual, slot]
setFoldComments(bool fold)QsciLexerD [virtual, slot]
setFoldCompact(bool fold)QsciLexerD [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerD
styleBitsNeeded() const QsciLexer [virtual]
Typedefs enum valueQsciLexerD
UnclosedString enum valueQsciLexerD
wordCharacters() const QsciLexerD [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerD [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerD()QsciLexerD [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerD.html b/doc/html-Qt4Qt5/classQsciLexerD.html new file mode 100644 index 0000000..cabebbb --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerD.html @@ -0,0 +1,566 @@ + + + + +QScintilla: QsciLexerD Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+ +
+ +

#include <qscilexerd.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerD class encapsulates the Scintilla D lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the D lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A comment line.

+
CommentDoc  +

A JavaDoc and Doxygen comment.

+
CommentNested  +

A nested comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
KeywordSecondary  +

A secondary keyword.

+
KeywordDoc  +

A doc keyword.

+
Typedefs  +

Typedefs and aliases.

+
String  +

A string.

+
UnclosedString  +

The end of a line where a string is not closed.

+
Character  +

A character.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
CommentLineDoc  +

A JavaDoc and Doxygen line.

+
CommentDocKeyword  +

A JavaDoc and Doxygen keyword.

+
CommentDocKeywordError  +

A JavaDoc and Doxygen keyword error.

+
BackquoteString  +

A backquoted string.

+
RawString  +

A raw, hexadecimal or delimited string.

+
KeywordSet5  +

A keyword defined in keyword set number 5. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerD::QsciLexerD (QObject * parent = 0)
+
+
+

Construct a QsciLexerD with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerD::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerD::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerD::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerD::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerD::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerD::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerD::foldAtElse () const
+
+
+

Returns true if "} else {" lines can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerD::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerD::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerD::setFoldAtElse (bool fold) [virtual, slot]
+
+
+

If fold is true then "} else {" lines can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerD::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerD::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerD::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerD::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerDiff-members.html b/doc/html-Qt4Qt5/classQsciLexerDiff-members.html new file mode 100644 index 0000000..bceaefe --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerDiff-members.html @@ -0,0 +1,132 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerDiff Member List
+
+
+This is the complete list of members for QsciLexerDiff, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Command enum valueQsciLexerDiff
Comment enum valueQsciLexerDiff
Default enum valueQsciLexerDiff
defaultColor(int style) const QsciLexerDiff [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont() const QsciLexer
defaultFont(int style) const QsciLexer [virtual]
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerDiff [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Header enum valueQsciLexerDiff
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexer [virtual]
language() const QsciLexerDiff [virtual]
lexer() const QsciLexerDiff [virtual]
lexerId() const QsciLexer [virtual]
LineAdded enum valueQsciLexerDiff
LineChanged enum valueQsciLexerDiff
LineRemoved enum valueQsciLexerDiff
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Position enum valueQsciLexerDiff
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerDiff(QObject *parent=0)QsciLexerDiff
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexerDiff [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerDiff()QsciLexerDiff [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerDiff.html b/doc/html-Qt4Qt5/classQsciLexerDiff.html new file mode 100644 index 0000000..2e5407c --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerDiff.html @@ -0,0 +1,213 @@ + + + + +QScintilla: QsciLexerDiff Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerDiff Class Reference
+
+
+ +

#include <qscilexerdiff.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerDiff class encapsulates the Scintilla Diff lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Diff lexer.

+
Enumerator:
+ + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Command  +

A command.

+
Header  +

A header.

+
Position  +

A position.

+
LineRemoved  +

A removed line.

+
LineAdded  +

An added line.

+
LineChanged  +

A changed line.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerDiff::QsciLexerDiff (QObject * parent = 0)
+
+
+

Construct a QsciLexerDiff with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerDiff::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerDiff::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerFortran-members.html b/doc/html-Qt4Qt5/classQsciLexerFortran-members.html new file mode 100644 index 0000000..e104d40 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerFortran-members.html @@ -0,0 +1,143 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerFortran Member List
+
+
+This is the complete list of members for QsciLexerFortran, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerFortran77)QsciLexerFortran77 [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerFortran77
Continuation enum valueQsciLexerFortran77
Default enum valueQsciLexerFortran77
defaultColor(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerFortran77 [virtual]
defaultFont(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerFortran77 [virtual]
DottedOperator enum valueQsciLexerFortran77
DoubleQuotedString enum valueQsciLexerFortran77
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
ExtendedFunction enum valueQsciLexerFortran77
foldCompact() const QsciLexerFortran77
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerFortran77
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
IntrinsicFunction enum valueQsciLexerFortran77
Keyword enum valueQsciLexerFortran77
keywords(int set) const QsciLexerFortran [virtual]
Label enum valueQsciLexerFortran77
language() const QsciLexerFortran [virtual]
lexer() const QsciLexerFortran [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerFortran77
Operator enum valueQsciLexerFortran77
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerFortran77
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerFortran(QObject *parent=0)QsciLexerFortran
QsciLexerFortran77(QObject *parent=0)QsciLexerFortran77
readProperties(QSettings &qs, const QString &prefix)QsciLexerFortran77 [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerFortran77 [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerFortran77 [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedString enum valueQsciLexerFortran77
styleBitsNeeded() const QsciLexer [virtual]
UnclosedString enum valueQsciLexerFortran77
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerFortran77 [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerFortran()QsciLexerFortran [virtual]
~QsciLexerFortran77()QsciLexerFortran77 [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerFortran.html b/doc/html-Qt4Qt5/classQsciLexerFortran.html new file mode 100644 index 0000000..62c7dd3 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerFortran.html @@ -0,0 +1,148 @@ + + + + +QScintilla: QsciLexerFortran Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerFortran Class Reference
+
+
+ +

#include <qscilexerfortran.h>

+ +

Inherits QsciLexerFortran77.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerFortran class encapsulates the Scintilla Fortran lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerFortran::QsciLexerFortran (QObject * parent = 0)
+
+
+

Construct a QsciLexerFortran with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerFortran::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexerFortran77.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerFortran::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerFortran77.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerFortran77-members.html b/doc/html-Qt4Qt5/classQsciLexerFortran77-members.html new file mode 100644 index 0000000..f24ea1b --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerFortran77-members.html @@ -0,0 +1,141 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerFortran77 Member List
+
+
+This is the complete list of members for QsciLexerFortran77, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerFortran77)QsciLexerFortran77 [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerFortran77
Continuation enum valueQsciLexerFortran77
Default enum valueQsciLexerFortran77
defaultColor(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerFortran77 [virtual]
defaultFont(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerFortran77 [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerFortran77 [virtual]
DottedOperator enum valueQsciLexerFortran77
DoubleQuotedString enum valueQsciLexerFortran77
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
ExtendedFunction enum valueQsciLexerFortran77
foldCompact() const QsciLexerFortran77
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerFortran77
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
IntrinsicFunction enum valueQsciLexerFortran77
Keyword enum valueQsciLexerFortran77
keywords(int set) const QsciLexerFortran77 [virtual]
Label enum valueQsciLexerFortran77
language() const QsciLexerFortran77 [virtual]
lexer() const QsciLexerFortran77 [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerFortran77
Operator enum valueQsciLexerFortran77
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerFortran77
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerFortran77(QObject *parent=0)QsciLexerFortran77
readProperties(QSettings &qs, const QString &prefix)QsciLexerFortran77 [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerFortran77 [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerFortran77 [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedString enum valueQsciLexerFortran77
styleBitsNeeded() const QsciLexer [virtual]
UnclosedString enum valueQsciLexerFortran77
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerFortran77 [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerFortran77()QsciLexerFortran77 [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerFortran77.html b/doc/html-Qt4Qt5/classQsciLexerFortran77.html new file mode 100644 index 0000000..1234dde --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerFortran77.html @@ -0,0 +1,449 @@ + + + + +QScintilla: QsciLexerFortran77 Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerFortran77 Class Reference
+
+
+ +

#include <qscilexerfortran77.h>

+ +

Inherits QsciLexer.

+ +

Inherited by QsciLexerFortran.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerFortran77 class encapsulates the Scintilla Fortran77 lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Fortran77 lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Number  +

A number.

+
SingleQuotedString  +

A single-quoted string.

+
DoubleQuotedString  +

A double-quoted string.

+
UnclosedString  +

The end of a line where a string is not closed.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
Keyword  +

A keyword.

+
IntrinsicFunction  +

An intrinsic function.

+
ExtendedFunction  +

An extended, non-standard or user defined function.

+
PreProcessor  +

A pre-processor block.

+
DottedOperator  +

An operator in .NAME. format.

+
Label  +

A label.

+
Continuation  +

A continuation.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerFortran77::QsciLexerFortran77 (QObject * parent = 0)
+
+
+

Construct a QsciLexerFortran77 with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerFortran77::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerFortran.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerFortran77::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerFortran77::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerFortran77::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerFortran.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerFortran77::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerFortran77::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerFortran77::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerFortran77::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerFortran77::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerFortran77::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerHTML-members.html b/doc/html-Qt4Qt5/classQsciLexerHTML-members.html new file mode 100644 index 0000000..07ba7ff --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerHTML-members.html @@ -0,0 +1,248 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerHTML Member List
+
+
+This is the complete list of members for QsciLexerHTML, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
ASPAtStart enum valueQsciLexerHTML
ASPJavaScriptComment enum valueQsciLexerHTML
ASPJavaScriptCommentDoc enum valueQsciLexerHTML
ASPJavaScriptCommentLine enum valueQsciLexerHTML
ASPJavaScriptDefault enum valueQsciLexerHTML
ASPJavaScriptDoubleQuotedString enum valueQsciLexerHTML
ASPJavaScriptKeyword enum valueQsciLexerHTML
ASPJavaScriptNumber enum valueQsciLexerHTML
ASPJavaScriptRegex enum valueQsciLexerHTML
ASPJavaScriptSingleQuotedString enum valueQsciLexerHTML
ASPJavaScriptStart enum valueQsciLexerHTML
ASPJavaScriptSymbol enum valueQsciLexerHTML
ASPJavaScriptUnclosedString enum valueQsciLexerHTML
ASPJavaScriptWord enum valueQsciLexerHTML
ASPPythonClassName enum valueQsciLexerHTML
ASPPythonComment enum valueQsciLexerHTML
ASPPythonDefault enum valueQsciLexerHTML
ASPPythonDoubleQuotedString enum valueQsciLexerHTML
ASPPythonFunctionMethodName enum valueQsciLexerHTML
ASPPythonIdentifier enum valueQsciLexerHTML
ASPPythonKeyword enum valueQsciLexerHTML
ASPPythonNumber enum valueQsciLexerHTML
ASPPythonOperator enum valueQsciLexerHTML
ASPPythonSingleQuotedString enum valueQsciLexerHTML
ASPPythonStart enum valueQsciLexerHTML
ASPPythonTripleDoubleQuotedString enum valueQsciLexerHTML
ASPPythonTripleSingleQuotedString enum valueQsciLexerHTML
ASPStart enum valueQsciLexerHTML
ASPVBScriptComment enum valueQsciLexerHTML
ASPVBScriptDefault enum valueQsciLexerHTML
ASPVBScriptIdentifier enum valueQsciLexerHTML
ASPVBScriptKeyword enum valueQsciLexerHTML
ASPVBScriptNumber enum valueQsciLexerHTML
ASPVBScriptStart enum valueQsciLexerHTML
ASPVBScriptString enum valueQsciLexerHTML
ASPVBScriptUnclosedString enum valueQsciLexerHTML
ASPXCComment enum valueQsciLexerHTML
Attribute enum valueQsciLexerHTML
autoCompletionFillups() const (defined in QsciLexerHTML)QsciLexerHTML [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitiveTags() const QsciLexerHTML [inline]
CDATA enum valueQsciLexerHTML
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Default enum valueQsciLexerHTML
defaultColor(int style) const QsciLexerHTML [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerHTML [virtual]
defaultFont(int style) const QsciLexerHTML [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerHTML [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerHTML [virtual]
djangoTemplates() const QsciLexerHTML [inline]
editor() const QsciLexer [inline]
Entity enum valueQsciLexerHTML
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldCompact() const QsciLexerHTML [inline]
foldPreprocessor() const QsciLexerHTML [inline]
foldScriptComments() const QsciLexerHTML [inline]
foldScriptHeredocs() const QsciLexerHTML [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HTMLComment enum valueQsciLexerHTML
HTMLDoubleQuotedString enum valueQsciLexerHTML
HTMLNumber enum valueQsciLexerHTML
HTMLSingleQuotedString enum valueQsciLexerHTML
HTMLValue enum valueQsciLexerHTML
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
JavaScriptComment enum valueQsciLexerHTML
JavaScriptCommentDoc enum valueQsciLexerHTML
JavaScriptCommentLine enum valueQsciLexerHTML
JavaScriptDefault enum valueQsciLexerHTML
JavaScriptDoubleQuotedString enum valueQsciLexerHTML
JavaScriptKeyword enum valueQsciLexerHTML
JavaScriptNumber enum valueQsciLexerHTML
JavaScriptRegex enum valueQsciLexerHTML
JavaScriptSingleQuotedString enum valueQsciLexerHTML
JavaScriptStart enum valueQsciLexerHTML
JavaScriptSymbol enum valueQsciLexerHTML
JavaScriptUnclosedString enum valueQsciLexerHTML
JavaScriptWord enum valueQsciLexerHTML
keywords(int set) const QsciLexerHTML [virtual]
language() const QsciLexerHTML [virtual]
lexer() const QsciLexerHTML [virtual]
lexerId() const QsciLexer [virtual]
makoTemplates() const QsciLexerHTML [inline]
OtherInTag enum valueQsciLexerHTML
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PHPComment enum valueQsciLexerHTML
PHPCommentLine enum valueQsciLexerHTML
PHPDefault enum valueQsciLexerHTML
PHPDoubleQuotedString enum valueQsciLexerHTML
PHPDoubleQuotedVariable enum valueQsciLexerHTML
PHPKeyword enum valueQsciLexerHTML
PHPNumber enum valueQsciLexerHTML
PHPOperator enum valueQsciLexerHTML
PHPSingleQuotedString enum valueQsciLexerHTML
PHPStart enum valueQsciLexerHTML
PHPVariable enum valueQsciLexerHTML
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
PythonClassName enum valueQsciLexerHTML
PythonComment enum valueQsciLexerHTML
PythonDefault enum valueQsciLexerHTML
PythonDoubleQuotedString enum valueQsciLexerHTML
PythonFunctionMethodName enum valueQsciLexerHTML
PythonIdentifier enum valueQsciLexerHTML
PythonKeyword enum valueQsciLexerHTML
PythonNumber enum valueQsciLexerHTML
PythonOperator enum valueQsciLexerHTML
PythonSingleQuotedString enum valueQsciLexerHTML
PythonStart enum valueQsciLexerHTML
PythonTripleDoubleQuotedString enum valueQsciLexerHTML
PythonTripleSingleQuotedString enum valueQsciLexerHTML
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerHTML(QObject *parent=0)QsciLexerHTML
readProperties(QSettings &qs, const QString &prefix)QsciLexerHTML [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerHTML [virtual]
Script enum valueQsciLexerHTML
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setCaseSensitiveTags(bool sens)QsciLexerHTML [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDjangoTemplates(bool enabled)QsciLexerHTML
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerHTML [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerHTML [virtual, slot]
setFoldScriptComments(bool fold)QsciLexerHTML
setFoldScriptHeredocs(bool fold)QsciLexerHTML
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setMakoTemplates(bool enabled)QsciLexerHTML
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SGMLBlockDefault enum valueQsciLexerHTML
SGMLCommand enum valueQsciLexerHTML
SGMLComment enum valueQsciLexerHTML
SGMLDefault enum valueQsciLexerHTML
SGMLDoubleQuotedString enum valueQsciLexerHTML
SGMLEntity enum valueQsciLexerHTML
SGMLError enum valueQsciLexerHTML
SGMLParameter enum valueQsciLexerHTML
SGMLParameterComment enum valueQsciLexerHTML
SGMLSingleQuotedString enum valueQsciLexerHTML
SGMLSpecial enum valueQsciLexerHTML
styleBitsNeeded() const QsciLexer [virtual]
Tag enum valueQsciLexerHTML
UnknownAttribute enum valueQsciLexerHTML
UnknownTag enum valueQsciLexerHTML
VBScriptComment enum valueQsciLexerHTML
VBScriptDefault enum valueQsciLexerHTML
VBScriptIdentifier enum valueQsciLexerHTML
VBScriptKeyword enum valueQsciLexerHTML
VBScriptNumber enum valueQsciLexerHTML
VBScriptStart enum valueQsciLexerHTML
VBScriptString enum valueQsciLexerHTML
VBScriptUnclosedString enum valueQsciLexerHTML
wordCharacters() const QsciLexerHTML [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerHTML [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
XMLEnd enum valueQsciLexerHTML
XMLStart enum valueQsciLexerHTML
XMLTagEnd enum valueQsciLexerHTML
~QsciLexer()QsciLexer [virtual]
~QsciLexerHTML()QsciLexerHTML [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerHTML.html b/doc/html-Qt4Qt5/classQsciLexerHTML.html new file mode 100644 index 0000000..31cb908 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerHTML.html @@ -0,0 +1,1105 @@ + + + + +QScintilla: QsciLexerHTML Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerHTML Class Reference
+
+
+ +

#include <qscilexerhtml.h>

+ +

Inherits QsciLexer.

+ +

Inherited by QsciLexerXML.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerHTML class encapsulates the Scintilla HTML lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the HTML lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Tag  +

A tag.

+
UnknownTag  +

An unknown tag.

+
Attribute  +

An attribute.

+
UnknownAttribute  +

An unknown attribute.

+
HTMLNumber  +

An HTML number.

+
HTMLDoubleQuotedString  +

An HTML double-quoted string.

+
HTMLSingleQuotedString  +

An HTML single-quoted string.

+
OtherInTag  +

Other text within a tag.

+
HTMLComment  +

An HTML comment.

+
Entity  +

An entity.

+
XMLTagEnd  +

The end of an XML style tag.

+
XMLStart  +

The start of an XML fragment.

+
XMLEnd  +

The end of an XML fragment.

+
Script  +

A script tag.

+
ASPAtStart  +

The start of an ASP fragment with @.

+
ASPStart  +

The start of an ASP fragment.

+
CDATA  +

CDATA.

+
PHPStart  +

The start of a PHP fragment.

+
HTMLValue  +

An unquoted HTML value.

+
ASPXCComment  +

An ASP X-Code comment.

+
SGMLDefault  +

The default for SGML.

+
SGMLCommand  +

An SGML command.

+
SGMLParameter  +

The first parameter of an SGML command.

+
SGMLDoubleQuotedString  +

An SGML double-quoted string.

+
SGMLSingleQuotedString  +

An SGML single-quoted string.

+
SGMLError  +

An SGML error.

+
SGMLSpecial  +

An SGML special entity.

+
SGMLEntity  +

An SGML entity.

+
SGMLComment  +

An SGML comment.

+
SGMLParameterComment  +

A comment with the first parameter of an SGML command.

+
SGMLBlockDefault  +

The default for an SGML block.

+
JavaScriptStart  +

The start of a JavaScript fragment.

+
JavaScriptDefault  +

The default for JavaScript.

+
JavaScriptComment  +

A JavaScript comment.

+
JavaScriptCommentLine  +

A JavaScript line comment.

+
JavaScriptCommentDoc  +

A JavaDoc style JavaScript comment.

+
JavaScriptNumber  +

A JavaScript number.

+
JavaScriptWord  +

A JavaScript word.

+
JavaScriptKeyword  +

A JavaScript keyword.

+
JavaScriptDoubleQuotedString  +

A JavaScript double-quoted string.

+
JavaScriptSingleQuotedString  +

A JavaScript single-quoted string.

+
JavaScriptSymbol  +

A JavaScript symbol.

+
JavaScriptUnclosedString  +

The end of a JavaScript line where a string is not closed.

+
JavaScriptRegex  +

A JavaScript regular expression.

+
ASPJavaScriptStart  +

The start of an ASP JavaScript fragment.

+
ASPJavaScriptDefault  +

The default for ASP JavaScript.

+
ASPJavaScriptComment  +

An ASP JavaScript comment.

+
ASPJavaScriptCommentLine  +

An ASP JavaScript line comment.

+
ASPJavaScriptCommentDoc  +

An ASP JavaDoc style JavaScript comment.

+
ASPJavaScriptNumber  +

An ASP JavaScript number.

+
ASPJavaScriptWord  +

An ASP JavaScript word.

+
ASPJavaScriptKeyword  +

An ASP JavaScript keyword.

+
ASPJavaScriptDoubleQuotedString  +

An ASP JavaScript double-quoted string.

+
ASPJavaScriptSingleQuotedString  +

An ASP JavaScript single-quoted string.

+
ASPJavaScriptSymbol  +

An ASP JavaScript symbol.

+
ASPJavaScriptUnclosedString  +

The end of an ASP JavaScript line where a string is not closed.

+
ASPJavaScriptRegex  +

An ASP JavaScript regular expression.

+
VBScriptStart  +

The start of a VBScript fragment.

+
VBScriptDefault  +

The default for VBScript.

+
VBScriptComment  +

A VBScript comment.

+
VBScriptNumber  +

A VBScript number.

+
VBScriptKeyword  +

A VBScript keyword.

+
VBScriptString  +

A VBScript string.

+
VBScriptIdentifier  +

A VBScript identifier.

+
VBScriptUnclosedString  +

The end of a VBScript line where a string is not closed.

+
ASPVBScriptStart  +

The start of an ASP VBScript fragment.

+
ASPVBScriptDefault  +

The default for ASP VBScript.

+
ASPVBScriptComment  +

An ASP VBScript comment.

+
ASPVBScriptNumber  +

An ASP VBScript number.

+
ASPVBScriptKeyword  +

An ASP VBScript keyword.

+
ASPVBScriptString  +

An ASP VBScript string.

+
ASPVBScriptIdentifier  +

An ASP VBScript identifier.

+
ASPVBScriptUnclosedString  +

The end of an ASP VBScript line where a string is not closed.

+
PythonStart  +

The start of a Python fragment.

+
PythonDefault  +

The default for Python.

+
PythonComment  +

A Python comment.

+
PythonNumber  +

A Python number.

+
PythonDoubleQuotedString  +

A Python double-quoted string.

+
PythonSingleQuotedString  +

A Python single-quoted string.

+
PythonKeyword  +

A Python keyword.

+
PythonTripleSingleQuotedString  +

A Python triple single-quoted string.

+
PythonTripleDoubleQuotedString  +

A Python triple double-quoted string.

+
PythonClassName  +

The name of a Python class.

+
PythonFunctionMethodName  +

The name of a Python function or method.

+
PythonOperator  +

A Python operator.

+
PythonIdentifier  +

A Python identifier.

+
ASPPythonStart  +

The start of an ASP Python fragment.

+
ASPPythonDefault  +

The default for ASP Python.

+
ASPPythonComment  +

An ASP Python comment.

+
ASPPythonNumber  +

An ASP Python number.

+
ASPPythonDoubleQuotedString  +

An ASP Python double-quoted string.

+
ASPPythonSingleQuotedString  +

An ASP Python single-quoted string.

+
ASPPythonKeyword  +

An ASP Python keyword.

+
ASPPythonTripleSingleQuotedString  +

An ASP Python triple single-quoted string.

+
ASPPythonTripleDoubleQuotedString  +

An ASP Python triple double-quoted string.

+
ASPPythonClassName  +

The name of an ASP Python class.

+
ASPPythonFunctionMethodName  +

The name of an ASP Python function or method.

+
ASPPythonOperator  +

An ASP Python operator.

+
ASPPythonIdentifier  +

An ASP Python identifier.

+
PHPDefault  +

The default for PHP.

+
PHPDoubleQuotedString  +

A PHP double-quoted string.

+
PHPSingleQuotedString  +

A PHP single-quoted string.

+
PHPKeyword  +

A PHP keyword.

+
PHPNumber  +

A PHP number.

+
PHPVariable  +

A PHP variable.

+
PHPComment  +

A PHP comment.

+
PHPCommentLine  +

A PHP line comment.

+
PHPDoubleQuotedVariable  +

A PHP double-quoted variable.

+
PHPOperator  +

A PHP operator.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerHTML::QsciLexerHTML (QObject * parent = 0)
+
+
+

Construct a QsciLexerHTML with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerHTML::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerHTML::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerHTML::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerHTML::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerHTML::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerHTML::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::caseSensitiveTags () const [inline]
+
+
+

Returns true if tags are case sensitive.

+
See also:
setCaseSensitiveTags()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerHTML::setDjangoTemplates (bool enabled)
+
+
+

If enabled is true then Django templates are enabled. The default is false.

+
See also:
djangoTemplates()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::djangoTemplates () const [inline]
+
+
+

Returns true if support for Django templates is enabled.

+
See also:
setDjangoTemplates()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::foldPreprocessor () const [inline]
+
+
+

Returns true if preprocessor blocks can be folded.

+
See also:
setFoldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerHTML::setFoldScriptComments (bool fold)
+
+
+

If fold is true then script comments can be folded. The default is false.

+
See also:
foldScriptComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::foldScriptComments () const [inline]
+
+
+

Returns true if script comments can be folded.

+
See also:
setFoldScriptComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerHTML::setFoldScriptHeredocs (bool fold)
+
+
+

If fold is true then script heredocs can be folded. The default is false.

+
See also:
foldScriptHeredocs()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::foldScriptHeredocs () const [inline]
+
+
+

Returns true if script heredocs can be folded.

+
See also:
setFoldScriptHeredocs()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerHTML::setMakoTemplates (bool enabled)
+
+
+

If enabled is true then Mako templates are enabled. The default is false.

+
See also:
makoTemplates()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerHTML::makoTemplates () const [inline]
+
+
+

Returns true if support for Mako templates is enabled.

+
See also:
setMakoTemplates()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerHTML::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerHTML::setFoldPreprocessor (bool fold) [virtual, slot]
+
+
+

If fold is true then preprocessor blocks can be folded. The default is false.

+
See also:
foldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerHTML::setCaseSensitiveTags (bool sens) [virtual, slot]
+
+
+

If sens is true then tags are case sensitive. The default is false.

+
See also:
caseSensitiveTags()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerHTML::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerHTML::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerXML.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerIDL-members.html b/doc/html-Qt4Qt5/classQsciLexerIDL-members.html new file mode 100644 index 0000000..43b82b9 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerIDL-members.html @@ -0,0 +1,192 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerIDL Member List
+
+
+This is the complete list of members for QsciLexerIDL, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
braceStyle() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCPP
CommentDoc enum valueQsciLexerCPP
CommentDocKeyword enum valueQsciLexerCPP
CommentDocKeywordError enum valueQsciLexerCPP
CommentLine enum valueQsciLexerCPP
CommentLineDoc enum valueQsciLexerCPP
Default enum valueQsciLexerCPP
defaultColor(int style) const QsciLexerIDL [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerCPP [virtual]
defaultFont(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerIDL [virtual]
dollarsAllowed() const QsciLexerCPP [inline]
DoubleQuotedString enum valueQsciLexerCPP
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCPP [inline]
foldComments() const QsciLexerCPP [inline]
foldCompact() const QsciLexerCPP [inline]
foldPreprocessor() const QsciLexerCPP [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCPP
HashQuotedString enum valueQsciLexerCPP
highlightHashQuotedStrings() const QsciLexerCPP [inline]
highlightTripleQuotedStrings() const QsciLexerCPP [inline]
Identifier enum valueQsciLexerCPP
InactiveComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeywordError enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLine enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDefault enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDoubleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveGlobalClass enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveHashQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveIdentifier enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeywordSet2 enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveNumber enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveOperator enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessor enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRawString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRegex enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveSingleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveTripleQuotedVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUnclosedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUUID enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCPP
keywords(int set) const QsciLexerIDL [virtual]
KeywordSet2 enum valueQsciLexerCPP
language() const QsciLexerIDL [virtual]
lexer() const QsciLexerCPP [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCPP
Operator enum valueQsciLexerCPP
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCPP
PreProcessorComment enum valueQsciLexerCPP
PreProcessorCommentLineDoc enum valueQsciLexerCPP
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerCPP(QObject *parent=0, bool caseInsensitiveKeywords=false)QsciLexerCPP
QsciLexerIDL(QObject *parent=0)QsciLexerIDL
RawString enum valueQsciLexerCPP
readProperties(QSettings &qs, const QString &prefix)QsciLexerCPP [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCPP [virtual]
Regex enum valueQsciLexerCPP
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCPP
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCPP [virtual, slot]
setFoldComments(bool fold)QsciLexerCPP [virtual, slot]
setFoldCompact(bool fold)QsciLexerCPP [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerCPP [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightHashQuotedStrings(bool enabled)QsciLexerCPP
setHighlightTripleQuotedStrings(bool enabled)QsciLexerCPP
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCPP [virtual, slot]
SingleQuotedString enum valueQsciLexerCPP
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCPP [inline]
TripleQuotedVerbatimString enum valueQsciLexerCPP
UnclosedString enum valueQsciLexerCPP
UUID enum valueQsciLexerCPP
VerbatimString enum valueQsciLexerCPP
wordCharacters() const QsciLexerCPP [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCPP [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCPP()QsciLexerCPP [virtual]
~QsciLexerIDL()QsciLexerIDL [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerIDL.html b/doc/html-Qt4Qt5/classQsciLexerIDL.html new file mode 100644 index 0000000..66e0951 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerIDL.html @@ -0,0 +1,151 @@ + + + + +QScintilla: QsciLexerIDL Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerIDL Class Reference
+
+
+ +

#include <qscilexeridl.h>

+ +

Inherits QsciLexerCPP.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerIDL class encapsulates the Scintilla IDL lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerIDL::QsciLexerIDL (QObject * parent = 0)
+
+
+

Construct a QsciLexerIDL with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
const char* QsciLexerIDL::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerIDL::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerJava-members.html b/doc/html-Qt4Qt5/classQsciLexerJava-members.html new file mode 100644 index 0000000..c93a2c4 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerJava-members.html @@ -0,0 +1,192 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerJava Member List
+
+
+This is the complete list of members for QsciLexerJava, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
braceStyle() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCPP
CommentDoc enum valueQsciLexerCPP
CommentDocKeyword enum valueQsciLexerCPP
CommentDocKeywordError enum valueQsciLexerCPP
CommentLine enum valueQsciLexerCPP
CommentLineDoc enum valueQsciLexerCPP
Default enum valueQsciLexerCPP
defaultColor(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerCPP [virtual]
defaultFont(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerCPP [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerCPP [virtual]
dollarsAllowed() const QsciLexerCPP [inline]
DoubleQuotedString enum valueQsciLexerCPP
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCPP [inline]
foldComments() const QsciLexerCPP [inline]
foldCompact() const QsciLexerCPP [inline]
foldPreprocessor() const QsciLexerCPP [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCPP
HashQuotedString enum valueQsciLexerCPP
highlightHashQuotedStrings() const QsciLexerCPP [inline]
highlightTripleQuotedStrings() const QsciLexerCPP [inline]
Identifier enum valueQsciLexerCPP
InactiveComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeywordError enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLine enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDefault enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDoubleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveGlobalClass enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveHashQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveIdentifier enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeywordSet2 enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveNumber enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveOperator enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessor enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRawString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRegex enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveSingleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveTripleQuotedVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUnclosedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUUID enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCPP
keywords(int set) const QsciLexerJava [virtual]
KeywordSet2 enum valueQsciLexerCPP
language() const QsciLexerJava [virtual]
lexer() const QsciLexerCPP [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCPP
Operator enum valueQsciLexerCPP
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCPP
PreProcessorComment enum valueQsciLexerCPP
PreProcessorCommentLineDoc enum valueQsciLexerCPP
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerCPP(QObject *parent=0, bool caseInsensitiveKeywords=false)QsciLexerCPP
QsciLexerJava(QObject *parent=0)QsciLexerJava
RawString enum valueQsciLexerCPP
readProperties(QSettings &qs, const QString &prefix)QsciLexerCPP [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCPP [virtual]
Regex enum valueQsciLexerCPP
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCPP
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCPP [virtual, slot]
setFoldComments(bool fold)QsciLexerCPP [virtual, slot]
setFoldCompact(bool fold)QsciLexerCPP [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerCPP [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightHashQuotedStrings(bool enabled)QsciLexerCPP
setHighlightTripleQuotedStrings(bool enabled)QsciLexerCPP
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCPP [virtual, slot]
SingleQuotedString enum valueQsciLexerCPP
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCPP [inline]
TripleQuotedVerbatimString enum valueQsciLexerCPP
UnclosedString enum valueQsciLexerCPP
UUID enum valueQsciLexerCPP
VerbatimString enum valueQsciLexerCPP
wordCharacters() const QsciLexerCPP [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCPP [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCPP()QsciLexerCPP [virtual]
~QsciLexerJava()QsciLexerJava [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerJava.html b/doc/html-Qt4Qt5/classQsciLexerJava.html new file mode 100644 index 0000000..925c412 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerJava.html @@ -0,0 +1,128 @@ + + + + +QScintilla: QsciLexerJava Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerJava Class Reference
+
+
+ +

#include <qscilexerjava.h>

+ +

Inherits QsciLexerCPP.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerJava class encapsulates the Scintilla Java lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerJava::QsciLexerJava (QObject * parent = 0)
+
+
+

Construct a QsciLexerJava with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
const char* QsciLexerJava::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerJavaScript-members.html b/doc/html-Qt4Qt5/classQsciLexerJavaScript-members.html new file mode 100644 index 0000000..7fb5de6 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerJavaScript-members.html @@ -0,0 +1,192 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerJavaScript Member List
+
+
+This is the complete list of members for QsciLexerJavaScript, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
braceStyle() const (defined in QsciLexerCPP)QsciLexerCPP [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerCPP
CommentDoc enum valueQsciLexerCPP
CommentDocKeyword enum valueQsciLexerCPP
CommentDocKeywordError enum valueQsciLexerCPP
CommentLine enum valueQsciLexerCPP
CommentLineDoc enum valueQsciLexerCPP
Default enum valueQsciLexerCPP
defaultColor(int style) const QsciLexerJavaScript [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerJavaScript [virtual]
defaultFont(int style) const QsciLexerJavaScript [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerJavaScript [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerJavaScript [virtual]
dollarsAllowed() const QsciLexerCPP [inline]
DoubleQuotedString enum valueQsciLexerCPP
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerCPP [inline]
foldComments() const QsciLexerCPP [inline]
foldCompact() const QsciLexerCPP [inline]
foldPreprocessor() const QsciLexerCPP [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
GlobalClass enum valueQsciLexerCPP
HashQuotedString enum valueQsciLexerCPP
highlightHashQuotedStrings() const QsciLexerCPP [inline]
highlightTripleQuotedStrings() const QsciLexerCPP [inline]
Identifier enum valueQsciLexerCPP
InactiveComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentDocKeywordError enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLine enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDefault enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveDoubleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveGlobalClass enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveHashQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveIdentifier enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeyword enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveKeywordSet2 enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveNumber enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveOperator enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessor enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorComment enum value (defined in QsciLexerCPP)QsciLexerCPP
InactivePreProcessorCommentLineDoc enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRawString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveRegex enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveSingleQuotedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveTripleQuotedVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUnclosedString enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveUUID enum value (defined in QsciLexerCPP)QsciLexerCPP
InactiveVerbatimString enum value (defined in QsciLexerCPP)QsciLexerCPP
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerCPP
keywords(int set) const QsciLexerJavaScript [virtual]
KeywordSet2 enum valueQsciLexerCPP
language() const QsciLexerJavaScript [virtual]
lexer() const QsciLexerCPP [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerCPP
Operator enum valueQsciLexerCPP
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerCPP
PreProcessorComment enum valueQsciLexerCPP
PreProcessorCommentLineDoc enum valueQsciLexerCPP
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerCPP(QObject *parent=0, bool caseInsensitiveKeywords=false)QsciLexerCPP
QsciLexerJavaScript(QObject *parent=0)QsciLexerJavaScript
RawString enum valueQsciLexerCPP
readProperties(QSettings &qs, const QString &prefix)QsciLexerCPP [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerCPP [virtual]
Regex enum valueQsciLexerCPP
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDollarsAllowed(bool allowed)QsciLexerCPP
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerCPP [virtual, slot]
setFoldComments(bool fold)QsciLexerCPP [virtual, slot]
setFoldCompact(bool fold)QsciLexerCPP [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerCPP [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightHashQuotedStrings(bool enabled)QsciLexerCPP
setHighlightTripleQuotedStrings(bool enabled)QsciLexerCPP
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStylePreprocessor(bool style)QsciLexerCPP [virtual, slot]
SingleQuotedString enum valueQsciLexerCPP
styleBitsNeeded() const QsciLexer [virtual]
stylePreprocessor() const QsciLexerCPP [inline]
TripleQuotedVerbatimString enum valueQsciLexerCPP
UnclosedString enum valueQsciLexerCPP
UUID enum valueQsciLexerCPP
VerbatimString enum valueQsciLexerCPP
wordCharacters() const QsciLexerCPP [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerCPP [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerCPP()QsciLexerCPP [virtual]
~QsciLexerJavaScript()QsciLexerJavaScript [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerJavaScript.html b/doc/html-Qt4Qt5/classQsciLexerJavaScript.html new file mode 100644 index 0000000..99decab --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerJavaScript.html @@ -0,0 +1,197 @@ + + + + +QScintilla: QsciLexerJavaScript Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerJavaScript Class Reference
+
+
+ +

#include <qscilexerjavascript.h>

+ +

Inherits QsciLexerCPP.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerJavaScript class encapsulates the Scintilla JavaScript lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerJavaScript::QsciLexerJavaScript (QObject * parent = 0)
+
+
+

Construct a QsciLexerJavaScript with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
QColor QsciLexerJavaScript::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerJavaScript::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerJavaScript::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerJavaScript::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Reimplemented from QsciLexerCPP.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerLua-members.html b/doc/html-Qt4Qt5/classQsciLexerLua-members.html new file mode 100644 index 0000000..3208e95 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerLua-members.html @@ -0,0 +1,146 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerLua Member List
+
+
+This is the complete list of members for QsciLexerLua, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerLua)QsciLexerLua [virtual]
autoIndentStyle()QsciLexer
BasicFunctions enum valueQsciLexerLua
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerLua)QsciLexerLua [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerLua)QsciLexerLua [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
Character enum valueQsciLexerLua
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerLua
CoroutinesIOSystemFacilities enum valueQsciLexerLua
Default enum valueQsciLexerLua
defaultColor(int style) const QsciLexerLua [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerLua [virtual]
defaultFont(int style) const QsciLexerLua [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerLua [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerLua [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldCompact() const QsciLexerLua
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerLua
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerLua
keywords(int set) const QsciLexerLua [virtual]
KeywordSet5 enum valueQsciLexerLua
KeywordSet6 enum valueQsciLexerLua
KeywordSet7 enum valueQsciLexerLua
KeywordSet8 enum valueQsciLexerLua
Label enum valueQsciLexerLua
language() const QsciLexerLua [virtual]
lexer() const QsciLexerLua [virtual]
lexerId() const QsciLexer [virtual]
LineComment enum valueQsciLexerLua
LiteralString enum valueQsciLexerLua
Number enum valueQsciLexerLua
Operator enum valueQsciLexerLua
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Preprocessor enum valueQsciLexerLua
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerLua(QObject *parent=0)QsciLexerLua
readProperties(QSettings &qs, const QString &prefix)QsciLexerLua [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerLua [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerLua [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerLua
StringTableMathsFunctions enum valueQsciLexerLua
styleBitsNeeded() const QsciLexer [virtual]
UnclosedString enum valueQsciLexerLua
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerLua [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerLua()QsciLexerLua [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerLua.html b/doc/html-Qt4Qt5/classQsciLexerLua.html new file mode 100644 index 0000000..4a06c8a --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerLua.html @@ -0,0 +1,467 @@ + + + + +QScintilla: QsciLexerLua Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerLua Class Reference
+
+
+ +

#include <qscilexerlua.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerLua class encapsulates the Scintilla Lua lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Lua lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A block comment.

+
LineComment  +

A line comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
String  +

A string.

+
Character  +

A character.

+
LiteralString  +

A literal string.

+
Preprocessor  +

Preprocessor.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
UnclosedString  +

The end of a line where a string is not closed.

+
BasicFunctions  +

Basic functions.

+
StringTableMathsFunctions  +

String, table and maths functions.

+
CoroutinesIOSystemFacilities  +

Coroutines, I/O and system facilities.

+
KeywordSet5  +

A keyword defined in keyword set number 5. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet8  +

A keyword defined in keyword set number 8. The class must be sub-classed and re-implement keywords() to make use of this style.

+
Label  +

A label.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerLua::QsciLexerLua (QObject * parent = 0)
+
+
+

Construct a QsciLexerLua with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerLua::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerLua::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerLua::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerLua::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerLua::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerLua::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerLua::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerLua::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerLua::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerLua::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerMakefile-members.html b/doc/html-Qt4Qt5/classQsciLexerMakefile-members.html new file mode 100644 index 0000000..63a3d84 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerMakefile-members.html @@ -0,0 +1,131 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerMakefile Member List
+
+
+This is the complete list of members for QsciLexerMakefile, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerMakefile
Default enum valueQsciLexerMakefile
defaultColor(int style) const QsciLexerMakefile [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerMakefile [virtual]
defaultFont(int style) const QsciLexerMakefile [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerMakefile [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerMakefile [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Error enum valueQsciLexerMakefile
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexer [virtual]
language() const QsciLexerMakefile [virtual]
lexer() const QsciLexerMakefile [virtual]
lexerId() const QsciLexer [virtual]
Operator enum valueQsciLexerMakefile
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Preprocessor enum valueQsciLexerMakefile
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerMakefile(QObject *parent=0)QsciLexerMakefile
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
Target enum valueQsciLexerMakefile
Variable enum valueQsciLexerMakefile
wordCharacters() const QsciLexerMakefile [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerMakefile()QsciLexerMakefile [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerMakefile.html b/doc/html-Qt4Qt5/classQsciLexerMakefile.html new file mode 100644 index 0000000..144d9f2 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerMakefile.html @@ -0,0 +1,255 @@ + + + + +QScintilla: QsciLexerMakefile Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerMakefile Class Reference
+
+
+ +

#include <qscilexermakefile.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerMakefile class encapsulates the Scintilla Makefile lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Makefile lexer.

+
Enumerator:
+ + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Preprocessor  +

A pre-processor directive.

+
Variable  +

A variable.

+
Operator  +

An operator.

+
Target  +

A target.

+
Error  +

An error.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerMakefile::QsciLexerMakefile (QObject * parent = 0)
+
+
+

Construct a QsciLexerMakefile with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerMakefile::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerMakefile::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerMakefile::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerMakefile::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerMatlab-members.html b/doc/html-Qt4Qt5/classQsciLexerMatlab-members.html new file mode 100644 index 0000000..fb13db7 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerMatlab-members.html @@ -0,0 +1,133 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerMatlab Member List
+
+
+This is the complete list of members for QsciLexerMatlab, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Command enum valueQsciLexerMatlab
Comment enum valueQsciLexerMatlab
Default enum valueQsciLexerMatlab
defaultColor(int style) const QsciLexerMatlab [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerMatlab [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerMatlab [virtual]
DoubleQuotedString enum valueQsciLexerMatlab
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerMatlab
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerMatlab
keywords(int set) const QsciLexerMatlab [virtual]
language() const QsciLexerMatlab [virtual]
lexer() const QsciLexerMatlab [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerMatlab
Operator enum valueQsciLexerMatlab
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerMatlab(QObject *parent=0)QsciLexerMatlab
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedString enum valueQsciLexerMatlab
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerMatlab()QsciLexerMatlab [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerMatlab.html b/doc/html-Qt4Qt5/classQsciLexerMatlab.html new file mode 100644 index 0000000..8903979 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerMatlab.html @@ -0,0 +1,264 @@ + + + + +QScintilla: QsciLexerMatlab Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerMatlab Class Reference
+
+
+ +

#include <qscilexermatlab.h>

+ +

Inherits QsciLexer.

+ +

Inherited by QsciLexerOctave.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerMatlab class encapsulates the Scintilla Matlab file lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Matlab file lexer.

+
Enumerator:
+ + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Command  +

A command.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
SingleQuotedString  +

A single quoted string.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
DoubleQuotedString  +

A double quoted string.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerMatlab::QsciLexerMatlab (QObject * parent = 0)
+
+
+

Construct a QsciLexerMatlab with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerMatlab::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerOctave.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerMatlab::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerMatlab::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +

Reimplemented in QsciLexerOctave.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerMatlab::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerOctave-members.html b/doc/html-Qt4Qt5/classQsciLexerOctave-members.html new file mode 100644 index 0000000..be7d34e --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerOctave-members.html @@ -0,0 +1,135 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerOctave Member List
+
+
+This is the complete list of members for QsciLexerOctave, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Command enum valueQsciLexerMatlab
Comment enum valueQsciLexerMatlab
Default enum valueQsciLexerMatlab
defaultColor(int style) const QsciLexerMatlab [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerMatlab [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerMatlab [virtual]
DoubleQuotedString enum valueQsciLexerMatlab
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerMatlab
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerMatlab
keywords(int set) const QsciLexerOctave [virtual]
language() const QsciLexerOctave [virtual]
lexer() const QsciLexerOctave [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerMatlab
Operator enum valueQsciLexerMatlab
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerMatlab(QObject *parent=0)QsciLexerMatlab
QsciLexerOctave(QObject *parent=0)QsciLexerOctave
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedString enum valueQsciLexerMatlab
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerMatlab()QsciLexerMatlab [virtual]
~QsciLexerOctave()QsciLexerOctave [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerOctave.html b/doc/html-Qt4Qt5/classQsciLexerOctave.html new file mode 100644 index 0000000..85e498c --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerOctave.html @@ -0,0 +1,148 @@ + + + + +QScintilla: QsciLexerOctave Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerOctave Class Reference
+
+
+ +

#include <qscilexeroctave.h>

+ +

Inherits QsciLexerMatlab.

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerOctave class encapsulates the Scintilla Octave file lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerOctave::QsciLexerOctave (QObject * parent = 0)
+
+
+

Construct a QsciLexerOctave with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerOctave::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexerMatlab.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerOctave::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerMatlab.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPO-members.html b/doc/html-Qt4Qt5/classQsciLexerPO-members.html new file mode 100644 index 0000000..dfbd248 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPO-members.html @@ -0,0 +1,143 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPO Member List
+
+
+This is the complete list of members for QsciLexerPO, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPO
Default enum valueQsciLexerPO
defaultColor(int style) const QsciLexerPO [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerPO [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPO [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Flags enum valueQsciLexerPO
foldComments() const QsciLexerPO
foldCompact() const QsciLexerPO
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Fuzzy enum valueQsciLexerPO
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexer [virtual]
language() const QsciLexerPO [virtual]
lexer() const QsciLexerPO [virtual]
lexerId() const QsciLexer [virtual]
MessageContext enum valueQsciLexerPO
MessageContextText enum valueQsciLexerPO
MessageContextTextEOL enum valueQsciLexerPO
MessageId enum valueQsciLexerPO
MessageIdText enum valueQsciLexerPO
MessageIdTextEOL enum valueQsciLexerPO
MessageString enum valueQsciLexerPO
MessageStringText enum valueQsciLexerPO
MessageStringTextEOL enum valueQsciLexerPO
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
ProgrammerComment enum valueQsciLexerPO
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerPO(QObject *parent=0)QsciLexerPO
readProperties(QSettings &qs, const QString &prefix)QsciLexerPO [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
Reference enum valueQsciLexerPO
refreshProperties()QsciLexerPO [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerPO [virtual, slot]
setFoldCompact(bool fold)QsciLexerPO [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPO [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPO()QsciLexerPO [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPO.html b/doc/html-Qt4Qt5/classQsciLexerPO.html new file mode 100644 index 0000000..322f97b --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPO.html @@ -0,0 +1,433 @@ + + + + +QScintilla: QsciLexerPO Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPO Class Reference
+
+
+ +

#include <qscilexerpo.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPO class encapsulates the Scintilla PO lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the PO lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
MessageId  +

A message identifier.

+
MessageIdText  +

The text of a message identifier.

+
MessageString  +

A message string.

+
MessageStringText  +

The text of a message string.

+
MessageContext  +

A message context.

+
MessageContextText  +

The text of a message context.

+
Fuzzy  +

The "fuzzy" flag.

+
ProgrammerComment  +

A programmer comment.

+
Reference  +

A reference.

+
Flags  +

A flag.

+
MessageIdTextEOL  +

A message identifier text end-of-line.

+
MessageStringTextEOL  +

A message string text end-of-line.

+
MessageContextTextEOL  +

A message context text end-of-line.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerPO::QsciLexerPO (QObject * parent = 0)
+
+
+

Construct a QsciLexerPO with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPO::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPO::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPO::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPO::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPO::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPO::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPO::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPO::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPO::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPO::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPOV-members.html b/doc/html-Qt4Qt5/classQsciLexerPOV-members.html new file mode 100644 index 0000000..744b7d6 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPOV-members.html @@ -0,0 +1,147 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPOV Member List
+
+
+This is the complete list of members for QsciLexerPOV, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
BadDirective enum valueQsciLexerPOV
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerPOV)QsciLexerPOV [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPOV
CommentLine enum valueQsciLexerPOV
Default enum valueQsciLexerPOV
defaultColor(int style) const QsciLexerPOV [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerPOV [virtual]
defaultFont(int style) const QsciLexerPOV [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerPOV [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPOV [virtual]
Directive enum valueQsciLexerPOV
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerPOV
foldCompact() const QsciLexerPOV
foldDirectives() const QsciLexerPOV
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerPOV
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexerPOV [virtual]
KeywordSet6 enum valueQsciLexerPOV
KeywordSet7 enum valueQsciLexerPOV
KeywordSet8 enum valueQsciLexerPOV
language() const QsciLexerPOV [virtual]
lexer() const QsciLexerPOV [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerPOV
ObjectsCSGAppearance enum valueQsciLexerPOV
Operator enum valueQsciLexerPOV
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PredefinedFunctions enum valueQsciLexerPOV
PredefinedIdentifiers enum valueQsciLexerPOV
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerPOV(QObject *parent=0)QsciLexerPOV
readProperties(QSettings &qs, const QString &prefix)QsciLexerPOV [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerPOV [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerPOV [virtual, slot]
setFoldCompact(bool fold)QsciLexerPOV [virtual, slot]
setFoldDirectives(bool fold)QsciLexerPOV [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerPOV
styleBitsNeeded() const QsciLexer [virtual]
TypesModifiersItems enum valueQsciLexerPOV
UnclosedString enum valueQsciLexerPOV
wordCharacters() const QsciLexerPOV [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPOV [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPOV()QsciLexerPOV [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPOV.html b/doc/html-Qt4Qt5/classQsciLexerPOV.html new file mode 100644 index 0000000..15925fa --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPOV.html @@ -0,0 +1,530 @@ + + + + +QScintilla: QsciLexerPOV Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPOV Class Reference
+
+
+ +

#include <qscilexerpov.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPOV class encapsulates the Scintilla POV lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the POV lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A comment line.

+
Number  +

A number.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
String  +

A string.

+
UnclosedString  +

The end of a line where a string is not closed.

+
Directive  +

A directive.

+
BadDirective  +

A bad directive.

+
ObjectsCSGAppearance  +

Objects, CSG and appearance.

+
TypesModifiersItems  +

Types, modifiers and items.

+
PredefinedIdentifiers  +

Predefined identifiers.

+
PredefinedFunctions  +

Predefined identifiers.

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet8  +

A keyword defined in keyword set number 8. The class must be sub-classed and re-implement keywords() to make use of this style.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerPOV::QsciLexerPOV (QObject * parent = 0)
+
+
+

Construct a QsciLexerPOV with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPOV::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPOV::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPOV::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerPOV::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPOV::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPOV::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPOV::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPOV::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPOV::foldDirectives () const
+
+
+

Returns true if directives can be folded.

+
See also:
setFoldDirectives()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPOV::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPOV::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPOV::setFoldDirectives (bool fold) [virtual, slot]
+
+
+

If fold is true then directives can be folded. The default is false.

+
See also:
foldDirectives()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPOV::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPOV::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPascal-members.html b/doc/html-Qt4Qt5/classQsciLexerPascal-members.html new file mode 100644 index 0000000..3d9e5fd --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPascal-members.html @@ -0,0 +1,147 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPascal Member List
+
+
+This is the complete list of members for QsciLexerPascal, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
Asm enum valueQsciLexerPascal
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerPascal)QsciLexerPascal [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexerPascal)QsciLexerPascal [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerPascal)QsciLexerPascal [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerPascal)QsciLexerPascal [virtual]
braceStyle() const (defined in QsciLexerPascal)QsciLexerPascal [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
Character enum valueQsciLexerPascal
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPascal
CommentLine enum valueQsciLexerPascal
CommentParenthesis enum valueQsciLexerPascal
Default enum valueQsciLexerPascal
defaultColor(int style) const QsciLexerPascal [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerPascal [virtual]
defaultFont(int style) const QsciLexerPascal [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerPascal [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPascal [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerPascal
foldCompact() const QsciLexerPascal
foldPreprocessor() const QsciLexerPascal
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HexNumber enum valueQsciLexerPascal
Identifier enum valueQsciLexerPascal
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerPascal
keywords(int set) const QsciLexerPascal [virtual]
language() const QsciLexerPascal [virtual]
lexer() const QsciLexerPascal [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerPascal
Operator enum valueQsciLexerPascal
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PreProcessor enum valueQsciLexerPascal
PreProcessorParenthesis enum valueQsciLexerPascal
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerPascal(QObject *parent=0)QsciLexerPascal
readProperties(QSettings &qs, const QString &prefix)QsciLexerPascal [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerPascal [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerPascal [virtual, slot]
setFoldCompact(bool fold)QsciLexerPascal [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerPascal [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setSmartHighlighting(bool enabled)QsciLexerPascal
SingleQuotedString enum valueQsciLexerPascal
smartHighlighting() const QsciLexerPascal
styleBitsNeeded() const QsciLexer [virtual]
UnclosedString enum valueQsciLexerPascal
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPascal [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPascal()QsciLexerPascal [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPascal.html b/doc/html-Qt4Qt5/classQsciLexerPascal.html new file mode 100644 index 0000000..60553cb --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPascal.html @@ -0,0 +1,568 @@ + + + + +QScintilla: QsciLexerPascal Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPascal Class Reference
+
+
+ +

#include <qscilexerpascal.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPascal class encapsulates the Scintilla Pascal lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the C++ lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
Identifier  +

An identifier.

+
Comment  +

A '{ ... }' style comment.

+
CommentParenthesis  +

A '(* ... *)' style comment.

+
CommentLine  +

A comment line.

+
PreProcessor  +

A '{$ ... }' style pre-processor block.

+
PreProcessorParenthesis  +

A '(*$ ... *)' style pre-processor block.

+
Number  +

A number.

+
HexNumber  +

A hexadecimal number.

+
Keyword  +

A keyword.

+
SingleQuotedString  +

A single-quoted string.

+
UnclosedString  +

The end of a line where a string is not closed.

+
Character  +

A character.

+
Operator  +

An operator.

+
Asm  +

Inline Asm.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerPascal::QsciLexerPascal (QObject * parent = 0)
+
+
+

Construct a QsciLexerPascal with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPascal::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPascal::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPascal::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerPascal::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPascal::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPascal::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPascal::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPascal::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPascal::foldPreprocessor () const
+
+
+

Returns true if preprocessor blocks can be folded.

+
See also:
setFoldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPascal::setSmartHighlighting (bool enabled)
+
+
+

If enabled is true then some keywords will only be highlighted in an appropriate context (similar to how the Delphi IDE works). The default is true.

+
See also:
smartHighlighting()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPascal::smartHighlighting () const
+
+
+

Returns true if some keywords will only be highlighted in an appropriate context (similar to how the Delphi IDE works).

+
See also:
setSmartHighlighting()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPascal::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPascal::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPascal::setFoldPreprocessor (bool fold) [virtual, slot]
+
+
+

If fold is true then preprocessor blocks can be folded. The default is true.

+
See also:
foldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPascal::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPascal::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPerl-members.html b/doc/html-Qt4Qt5/classQsciLexerPerl-members.html new file mode 100644 index 0000000..7ccc2eb --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPerl-members.html @@ -0,0 +1,175 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPerl Member List
+
+
+This is the complete list of members for QsciLexerPerl, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
Array enum valueQsciLexerPerl
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerPerl)QsciLexerPerl [virtual]
autoIndentStyle()QsciLexer
BacktickHereDocument enum valueQsciLexerPerl
BacktickHereDocumentVar enum valueQsciLexerPerl
Backticks enum valueQsciLexerPerl
BackticksVar enum valueQsciLexerPerl
blockEnd(int *style=0) const (defined in QsciLexerPerl)QsciLexerPerl [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerPerl)QsciLexerPerl [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerPerl)QsciLexerPerl [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPerl
DataSection enum valueQsciLexerPerl
Default enum valueQsciLexerPerl
defaultColor(int style) const QsciLexerPerl [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerPerl [virtual]
defaultFont(int style) const QsciLexerPerl [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerPerl [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPerl [virtual]
DoubleQuotedHereDocument enum valueQsciLexerPerl
DoubleQuotedHereDocumentVar enum valueQsciLexerPerl
DoubleQuotedString enum valueQsciLexerPerl
DoubleQuotedStringVar enum valueQsciLexerPerl
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Error enum valueQsciLexerPerl
foldAtElse() const QsciLexerPerl [inline]
foldComments() const QsciLexerPerl
foldCompact() const QsciLexerPerl
foldPackages() const QsciLexerPerl
foldPODBlocks() const QsciLexerPerl
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
FormatBody enum valueQsciLexerPerl
FormatIdentifier enum valueQsciLexerPerl
Hash enum valueQsciLexerPerl
HereDocumentDelimiter enum valueQsciLexerPerl
Identifier enum valueQsciLexerPerl
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerPerl
keywords(int set) const QsciLexerPerl [virtual]
language() const QsciLexerPerl [virtual]
lexer() const QsciLexerPerl [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerPerl
Operator enum valueQsciLexerPerl
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
POD enum valueQsciLexerPerl
PODVerbatim enum valueQsciLexerPerl
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerPerl(QObject *parent=0)QsciLexerPerl
QuotedStringQ enum valueQsciLexerPerl
QuotedStringQQ enum valueQsciLexerPerl
QuotedStringQQVar enum valueQsciLexerPerl
QuotedStringQR enum valueQsciLexerPerl
QuotedStringQRVar enum valueQsciLexerPerl
QuotedStringQW enum valueQsciLexerPerl
QuotedStringQX enum valueQsciLexerPerl
QuotedStringQXVar enum valueQsciLexerPerl
readProperties(QSettings &qs, const QString &prefix)QsciLexerPerl [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerPerl [virtual]
Regex enum valueQsciLexerPerl
RegexVar enum valueQsciLexerPerl
Scalar enum valueQsciLexerPerl
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerPerl
setFoldComments(bool fold)QsciLexerPerl [virtual, slot]
setFoldCompact(bool fold)QsciLexerPerl [virtual, slot]
setFoldPackages(bool fold)QsciLexerPerl
setFoldPODBlocks(bool fold)QsciLexerPerl
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedHereDocument enum valueQsciLexerPerl
SingleQuotedString enum valueQsciLexerPerl
styleBitsNeeded() const QsciLexer [virtual]
SubroutinePrototype enum valueQsciLexerPerl
Substitution enum valueQsciLexerPerl
SubstitutionVar enum valueQsciLexerPerl
SymbolTable enum valueQsciLexerPerl
Translation enum valueQsciLexerPerl
wordCharacters() const QsciLexerPerl [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPerl [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPerl()QsciLexerPerl [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPerl.html b/doc/html-Qt4Qt5/classQsciLexerPerl.html new file mode 100644 index 0000000..886429e --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPerl.html @@ -0,0 +1,718 @@ + + + + +QScintilla: QsciLexerPerl Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPerl Class Reference
+
+
+ +

#include <qscilexerperl.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPerl class encapsulates the Scintilla Perl lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Perl lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Error  +

An error.

+
Comment  +

A comment.

+
POD  +

A POD.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
Scalar  +

A scalar.

+
Array  +

An array.

+
Hash  +

A hash.

+
SymbolTable  +

A symbol table.

+
Regex  +

A regular expression.

+
Substitution  +

A substitution.

+
Backticks  +

Backticks.

+
DataSection  +

A data section.

+
HereDocumentDelimiter  +

A here document delimiter.

+
SingleQuotedHereDocument  +

A single quoted here document.

+
DoubleQuotedHereDocument  +

A double quoted here document.

+
BacktickHereDocument  +

A backtick here document.

+
QuotedStringQ  +

A quoted string (q).

+
QuotedStringQQ  +

A quoted string (qq).

+
QuotedStringQX  +

A quoted string (qx).

+
QuotedStringQR  +

A quoted string (qr).

+
QuotedStringQW  +

A quoted string (qw).

+
PODVerbatim  +

A verbatim POD.

+
SubroutinePrototype  +

A Subroutine prototype.

+
FormatIdentifier  +

A format identifier.

+
FormatBody  +

A format body.

+
DoubleQuotedStringVar  +

A double-quoted string (interpolated variable).

+
Translation  +

A translation.

+
RegexVar  +

A regular expression (interpolated variable).

+
SubstitutionVar  +

A substitution (interpolated variable).

+
BackticksVar  +

Backticks (interpolated variable).

+
DoubleQuotedHereDocumentVar  +

A double quoted here document (interpolated variable).

+
BacktickHereDocumentVar  +

A backtick here document (interpolated variable).

+
QuotedStringQQVar  +

A quoted string (qq, interpolated variable).

+
QuotedStringQXVar  +

A quoted string (qx, interpolated variable).

+
QuotedStringQRVar  +

A quoted string (qr, interpolated variable).

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerPerl::QsciLexerPerl (QObject * parent = 0)
+
+
+

Construct a QsciLexerPerl with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPerl::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPerl::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPerl::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerPerl::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPerl::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPerl::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPerl::setFoldAtElse (bool fold)
+
+
+

If fold is true then "} else {" lines can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPerl::foldAtElse () const [inline]
+
+
+

Returns true if "} else {" lines can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPerl::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPerl::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPerl::setFoldPackages (bool fold)
+
+
+

If fold is true then packages can be folded. The default is true.

+
See also:
foldPackages()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPerl::foldPackages () const
+
+
+

Returns true if packages can be folded.

+
See also:
setFoldPackages()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPerl::setFoldPODBlocks (bool fold)
+
+
+

If fold is true then POD blocks can be folded. The default is true.

+
See also:
foldPODBlocks()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPerl::foldPODBlocks () const
+
+
+

Returns true if POD blocks can be folded.

+
See also:
setFoldPODBlocks()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPerl::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPerl::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPerl::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPerl::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPostScript-members.html b/doc/html-Qt4Qt5/classQsciLexerPostScript-members.html new file mode 100644 index 0000000..274d578 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPostScript-members.html @@ -0,0 +1,148 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPostScript Member List
+
+
+This is the complete list of members for QsciLexerPostScript, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
ArrayParenthesis enum valueQsciLexerPostScript
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
BadStringCharacter enum valueQsciLexerPostScript
Base85String enum valueQsciLexerPostScript
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerPostScript)QsciLexerPostScript [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPostScript
Default enum valueQsciLexerPostScript
defaultColor(int style) const QsciLexerPostScript [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerPostScript [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerPostScript [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPostScript [virtual]
DictionaryParenthesis enum valueQsciLexerPostScript
DSCComment enum valueQsciLexerPostScript
DSCCommentValue enum valueQsciLexerPostScript
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerPostScript
foldCompact() const QsciLexerPostScript
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HexString enum valueQsciLexerPostScript
ImmediateEvalLiteral enum valueQsciLexerPostScript
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerPostScript
keywords(int set) const QsciLexerPostScript [virtual]
language() const QsciLexerPostScript [virtual]
level() const QsciLexerPostScript
lexer() const QsciLexerPostScript [virtual]
lexerId() const QsciLexer [virtual]
Literal enum valueQsciLexerPostScript
Name enum valueQsciLexerPostScript
Number enum valueQsciLexerPostScript
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
ProcedureParenthesis enum valueQsciLexerPostScript
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerPostScript(QObject *parent=0)QsciLexerPostScript
readProperties(QSettings &qs, const QString &prefix)QsciLexerPostScript [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerPostScript [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerPostScript [virtual, slot]
setFoldCompact(bool fold)QsciLexerPostScript [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setLevel(int level)QsciLexerPostScript [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setTokenize(bool tokenize)QsciLexerPostScript [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
Text enum valueQsciLexerPostScript
tokenize() const QsciLexerPostScript
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPostScript [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPostScript()QsciLexerPostScript [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPostScript.html b/doc/html-Qt4Qt5/classQsciLexerPostScript.html new file mode 100644 index 0000000..4a14a0b --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPostScript.html @@ -0,0 +1,561 @@ + + + + +QScintilla: QsciLexerPostScript Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPostScript Class Reference
+
+
+ +

#include <qscilexerpostscript.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPostScript class encapsulates the Scintilla PostScript lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the PostScript lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
DSCComment  +

A DSC comment.

+
DSCCommentValue  +

A DSC comment value.

+
Number  +

A number.

+
Name  +

A name.

+
Keyword  +

A keyword.

+
Literal  +

A literal.

+
ImmediateEvalLiteral  +

An immediately evaluated literal.

+
ArrayParenthesis  +

Array parenthesis.

+
DictionaryParenthesis  +

Dictionary parenthesis.

+
ProcedureParenthesis  +

Procedure parenthesis.

+
Text  +

Text.

+
HexString  +

A hexadecimal string.

+
Base85String  +

A base85 string.

+
BadStringCharacter  +

A bad string character.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerPostScript::QsciLexerPostScript (QObject * parent = 0)
+
+
+

Construct a QsciLexerPostScript with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPostScript::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPostScript::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPostScript::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerPostScript::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string. Set 5 can be used to provide additional user defined keywords.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPostScript::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPostScript::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPostScript::tokenize () const
+
+
+

Returns true if tokens should be marked.

+
See also:
setTokenize()
+ +
+
+ +
+
+ + + + + + + +
int QsciLexerPostScript::level () const
+
+
+

Returns the PostScript level.

+
See also:
setLevel()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPostScript::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPostScript::foldAtElse () const
+
+
+

Returns true if else blocks can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPostScript::setTokenize (bool tokenize) [virtual, slot]
+
+
+

If tokenize is true then tokens are marked. The default is false.

+
See also:
tokenize()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPostScript::setLevel (int level) [virtual, slot]
+
+
+

The PostScript level is set to level. The default is 3.

+
See also:
level()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPostScript::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPostScript::setFoldAtElse (bool fold) [virtual, slot]
+
+
+

If fold is true then else blocks can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPostScript::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPostScript::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerProperties-members.html b/doc/html-Qt4Qt5/classQsciLexerProperties-members.html new file mode 100644 index 0000000..40f7b4c --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerProperties-members.html @@ -0,0 +1,134 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerProperties Member List
+
+
+This is the complete list of members for QsciLexerProperties, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
Assignment enum valueQsciLexerProperties
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerProperties
Default enum valueQsciLexerProperties
defaultColor(int style) const QsciLexerProperties [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerProperties [virtual]
defaultFont(int style) const QsciLexerProperties [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerProperties [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
DefaultValue enum valueQsciLexerProperties
description(int style) const QsciLexerProperties [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldCompact() const QsciLexerProperties [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
initialSpaces() const QsciLexerProperties [inline]
Key enum valueQsciLexerProperties
keywords(int set) const QsciLexer [virtual]
language() const QsciLexerProperties [virtual]
lexer() const QsciLexerProperties [virtual]
lexerId() const QsciLexer [virtual]
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerProperties(QObject *parent=0)QsciLexerProperties
readProperties(QSettings &qs, const QString &prefix)QsciLexerProperties [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerProperties [virtual]
Section enum valueQsciLexerProperties
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerProperties [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setInitialSpaces(bool enable)QsciLexerProperties
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexerProperties [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerProperties [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerProperties()QsciLexerProperties [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerProperties.html b/doc/html-Qt4Qt5/classQsciLexerProperties.html new file mode 100644 index 0000000..718e9f3 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerProperties.html @@ -0,0 +1,422 @@ + + + + +QScintilla: QsciLexerProperties Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerProperties Class Reference
+
+
+ +

#include <qscilexerproperties.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerProperties class encapsulates the Scintilla Properties lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Properties lexer.

+
Enumerator:
+ + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Section  +

A section.

+
Assignment  +

An assignment operator.

+
DefaultValue  +

A default value.

+
Key  +

A key.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerProperties::QsciLexerProperties (QObject * parent = 0)
+
+
+

Construct a QsciLexerProperties with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerProperties::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerProperties::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerProperties::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerProperties::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerProperties::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerProperties::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerProperties::setInitialSpaces (bool enable)
+
+
+

If enable is true then initial spaces in a line are allowed. The default is true.

+
See also:
initialSpaces()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerProperties::initialSpaces () const [inline]
+
+
+

Returns true if initial spaces in a line are allowed.

+
See also:
setInitialSpaces()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerProperties::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerProperties::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerProperties::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPython-members.html b/doc/html-Qt4Qt5/classQsciLexerPython-members.html new file mode 100644 index 0000000..dc354bd --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPython-members.html @@ -0,0 +1,164 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerPython Member List
+
+
+This is the complete list of members for QsciLexerPython, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexerPython)QsciLexerPython [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexerPython)QsciLexerPython [virtual]
blockStart(int *style=0) const (defined in QsciLexerPython)QsciLexerPython [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerPython)QsciLexerPython [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
ClassName enum valueQsciLexerPython
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerPython
CommentBlock enum valueQsciLexerPython
Decorator enum valueQsciLexerPython
Default enum valueQsciLexerPython
defaultColor(int style) const QsciLexerPython [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerPython [virtual]
defaultFont(int style) const QsciLexerPython [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerPython [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerPython [virtual]
DoubleQuotedString enum valueQsciLexerPython
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerPython [inline]
foldCompact() const QsciLexerPython [inline]
foldQuotes() const QsciLexerPython [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
FunctionMethodName enum valueQsciLexerPython
HighlightedIdentifier enum valueQsciLexerPython
highlightSubidentifiers() const QsciLexerPython [inline]
Identifier enum valueQsciLexerPython
Inconsistent enum valueQsciLexerPython
indentationGuideView() const (defined in QsciLexerPython)QsciLexerPython [virtual]
IndentationWarning enum nameQsciLexerPython
indentationWarning() const QsciLexerPython [inline]
Keyword enum valueQsciLexerPython
keywords(int set) const QsciLexerPython [virtual]
language() const QsciLexerPython [virtual]
lexer() const QsciLexerPython [virtual]
lexerId() const QsciLexer [virtual]
NoWarning enum valueQsciLexerPython
Number enum valueQsciLexerPython
Operator enum valueQsciLexerPython
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerPython(QObject *parent=0)QsciLexerPython
readProperties(QSettings &qs, const QString &prefix)QsciLexerPython [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerPython [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerPython [virtual, slot]
setFoldCompact(bool fold)QsciLexerPython
setFoldQuotes(bool fold)QsciLexerPython [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHighlightSubidentifiers(bool enabled)QsciLexerPython
setIndentationWarning(QsciLexerPython::IndentationWarning warn)QsciLexerPython [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setStringsOverNewlineAllowed(bool allowed)QsciLexerPython
setV2UnicodeAllowed(bool allowed)QsciLexerPython
setV3BinaryOctalAllowed(bool allowed)QsciLexerPython
setV3BytesAllowed(bool allowed)QsciLexerPython
SingleQuotedString enum valueQsciLexerPython
Spaces enum valueQsciLexerPython
stringsOverNewlineAllowed() const QsciLexerPython [inline]
styleBitsNeeded() const QsciLexer [virtual]
Tabs enum valueQsciLexerPython
TabsAfterSpaces enum valueQsciLexerPython
TripleDoubleQuotedString enum valueQsciLexerPython
TripleSingleQuotedString enum valueQsciLexerPython
UnclosedString enum valueQsciLexerPython
v2UnicodeAllowed() const QsciLexerPython [inline]
v3BinaryOctalAllowed() const QsciLexerPython [inline]
v3BytesAllowed() const QsciLexerPython [inline]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerPython [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerPython()QsciLexerPython [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerPython.html b/doc/html-Qt4Qt5/classQsciLexerPython.html new file mode 100644 index 0000000..c2b6e4c --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerPython.html @@ -0,0 +1,808 @@ + + + + +QScintilla: QsciLexerPython Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerPython Class Reference
+
+
+ +

#include <qscilexerpython.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerPython class encapsulates the Scintilla Python lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Python lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Number  +

A number.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
Keyword  +

A keyword.

+
TripleSingleQuotedString  +

A triple single-quoted string.

+
TripleDoubleQuotedString  +

A triple double-quoted string.

+
ClassName  +

The name of a class.

+
FunctionMethodName  +

The name of a function or method.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
CommentBlock  +

A comment block.

+
UnclosedString  +

The end of a line where a string is not closed.

+
HighlightedIdentifier  +

A highlighted identifier. These are defined by keyword set 2. Reimplement keywords() to define keyword set 2.

+
Decorator  +

A decorator.

+
+
+
+ +
+
+ +
+ +
+

This enum defines the different conditions that can cause indentations to be displayed as being bad.

+
Enumerator:
+ + + + + +
NoWarning  +

Bad indentation is not displayed differently.

+
Inconsistent  +

The indentation is inconsistent when compared to the previous line, ie. it is made up of a different combination of tabs and/or spaces.

+
TabsAfterSpaces  +

The indentation is made up of spaces followed by tabs.

+
Spaces  +

The indentation contains spaces.

+
Tabs  +

The indentation contains tabs.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerPython::QsciLexerPython (QObject * parent = 0)
+
+
+

Construct a QsciLexerPython with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerPython::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPython::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerPython::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerPython::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerPython::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerPython::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::foldComments () const [inline]
+
+
+

Returns true if indented comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setFoldCompact (bool fold)
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::foldQuotes () const [inline]
+
+
+

Returns true if triple quoted strings can be folded.

+
See also:
setFoldQuotes()
+ +
+
+ +
+
+ + + + + + + +
QsciLexerPython::IndentationWarning QsciLexerPython::indentationWarning () const [inline]
+
+
+

Returns the condition that will cause bad indentations to be displayed.

+
See also:
setIndentationWarning()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setHighlightSubidentifiers (bool enabled)
+
+
+

If enabled is true then sub-identifiers defined in keyword set 2 will be highlighted. For example, if it is false and "open" is defined in keyword set 2 then "foo.open" will not be highlighted. The default is true.

+
See also:
highlightSubidentifiers()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::highlightSubidentifiers () const [inline]
+
+
+

Returns true if string literals are allowed to span newline characters.

+
See also:
setHighlightSubidentifiers()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setStringsOverNewlineAllowed (bool allowed)
+
+
+

If allowed is true then string literals are allowed to span newline characters. The default is false.

+
See also:
stringsOverNewlineAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::stringsOverNewlineAllowed () const [inline]
+
+
+

Returns true if string literals are allowed to span newline characters.

+
See also:
setStringsOverNewlineAllowed()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setV2UnicodeAllowed (bool allowed)
+
+
+

If allowed is true then Python v2 unicode string literals (e.g. u"utf8") are allowed. The default is true.

+
See also:
v2UnicodeAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::v2UnicodeAllowed () const [inline]
+
+
+

Returns true if Python v2 unicode string literals (e.g. u"utf8") are allowed.

+
See also:
setV2UnicodeAllowed()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setV3BinaryOctalAllowed (bool allowed)
+
+
+

If allowed is true then Python v3 binary and octal literals (e.g. 0b1011, 0o712) are allowed. The default is true.

+
See also:
v3BinaryOctalAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::v3BinaryOctalAllowed () const [inline]
+
+
+

Returns true if Python v3 binary and octal literals (e.g. 0b1011, 0o712) are allowed.

+
See also:
setV3BinaryOctalAllowed()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerPython::setV3BytesAllowed (bool allowed)
+
+
+

If allowed is true then Python v3 bytes string literals (e.g. b"bytes") are allowed. The default is true.

+
See also:
v3BytesAllowed()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerPython::v3BytesAllowed () const [inline]
+
+
+

Returns true if Python v3 bytes string literals (e.g. b"bytes") are allowed.

+
See also:
setV3BytesAllowed()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPython::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then indented comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPython::setFoldQuotes (bool fold) [virtual, slot]
+
+
+

If fold is true then triple quoted strings can be folded. The default is false.

+
See also:
foldQuotes()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerPython::setIndentationWarning (QsciLexerPython::IndentationWarning warn) [virtual, slot]
+
+
+

Sets the condition that will cause bad indentations to be displayed.

+
See also:
indentationWarning()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPython::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerPython::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerRuby-members.html b/doc/html-Qt4Qt5/classQsciLexerRuby-members.html new file mode 100644 index 0000000..5af3e88 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerRuby-members.html @@ -0,0 +1,159 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerRuby Member List
+
+
+This is the complete list of members for QsciLexerRuby, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
Backticks enum valueQsciLexerRuby
blockEnd(int *style=0) const (defined in QsciLexerRuby)QsciLexerRuby [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexerRuby)QsciLexerRuby [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexerRuby)QsciLexerRuby [virtual]
braceStyle() const (defined in QsciLexerRuby)QsciLexerRuby [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
ClassName enum valueQsciLexerRuby
ClassVariable enum valueQsciLexerRuby
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerRuby
DataSection enum valueQsciLexerRuby
Default enum valueQsciLexerRuby
defaultColor(int style) const QsciLexerRuby [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerRuby [virtual]
defaultFont(int style) const QsciLexerRuby [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerRuby [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
DemotedKeyword enum valueQsciLexerRuby
description(int style) const QsciLexerRuby [virtual]
DoubleQuotedString enum valueQsciLexerRuby
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
Error enum valueQsciLexerRuby
foldComments() const QsciLexerRuby [inline]
foldCompact() const QsciLexerRuby [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
FunctionMethodName enum valueQsciLexerRuby
Global enum valueQsciLexerRuby
HereDocument enum valueQsciLexerRuby
HereDocumentDelimiter enum valueQsciLexerRuby
Identifier enum valueQsciLexerRuby
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
InstanceVariable enum valueQsciLexerRuby
Keyword enum valueQsciLexerRuby
keywords(int set) const QsciLexerRuby [virtual]
language() const QsciLexerRuby [virtual]
lexer() const QsciLexerRuby [virtual]
lexerId() const QsciLexer [virtual]
ModuleName enum valueQsciLexerRuby
Number enum valueQsciLexerRuby
Operator enum valueQsciLexerRuby
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PercentStringq enum valueQsciLexerRuby
PercentStringQ enum valueQsciLexerRuby
PercentStringr enum valueQsciLexerRuby
PercentStringw enum valueQsciLexerRuby
PercentStringx enum valueQsciLexerRuby
POD enum valueQsciLexerRuby
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerRuby(QObject *parent=0)QsciLexerRuby
readProperties(QSettings &qs, const QString &prefix)QsciLexerRuby [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerRuby [virtual]
Regex enum valueQsciLexerRuby
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerRuby
setFoldCompact(bool fold)QsciLexerRuby
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
SingleQuotedString enum valueQsciLexerRuby
Stderr enum valueQsciLexerRuby
Stdin enum valueQsciLexerRuby
Stdout enum valueQsciLexerRuby
styleBitsNeeded() const QsciLexer [virtual]
Symbol enum valueQsciLexerRuby
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerRuby [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerRuby()QsciLexerRuby [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerRuby.html b/doc/html-Qt4Qt5/classQsciLexerRuby.html new file mode 100644 index 0000000..9828dfb --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerRuby.html @@ -0,0 +1,551 @@ + + + + +QScintilla: QsciLexerRuby Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerRuby Class Reference
+
+
+ +

#include <qscilexerruby.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerRuby class encapsulates the Scintilla Ruby lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Ruby lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Error  +

An error.

+
Comment  +

A comment.

+
POD  +

A POD.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
ClassName  +

The name of a class.

+
FunctionMethodName  +

The name of a function or method.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
Regex  +

A regular expression.

+
Global  +

A global.

+
Symbol  +

A symbol.

+
ModuleName  +

The name of a module.

+
InstanceVariable  +

An instance variable.

+
ClassVariable  +

A class variable.

+
Backticks  +

Backticks.

+
DataSection  +

A data section.

+
HereDocumentDelimiter  +

A here document delimiter.

+
HereDocument  +

A here document.

+
PercentStringq  +

A q string.

+
PercentStringQ  +

A Q string.

+
PercentStringx  +

A x string.

+
PercentStringr  +

A r string.

+
PercentStringw  +

A w string.

+
DemotedKeyword  +

A demoted keyword.

+
Stdin  +

stdin.

+
Stdout  +

stdout.

+
Stderr  +

stderr.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerRuby::QsciLexerRuby (QObject * parent = 0)
+
+
+

Construct a QsciLexerRuby with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerRuby::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerRuby::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultpaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerRuby::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerRuby::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerRuby::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerRuby::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerRuby::setFoldComments (bool fold)
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerRuby::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerRuby::setFoldCompact (bool fold)
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerRuby::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerRuby::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerRuby::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerSQL-members.html b/doc/html-Qt4Qt5/classQsciLexerSQL-members.html new file mode 100644 index 0000000..52e7506 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerSQL-members.html @@ -0,0 +1,161 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerSQL Member List
+
+
+This is the complete list of members for QsciLexerSQL, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
backslashEscapes() const QsciLexerSQL [inline]
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerSQL)QsciLexerSQL [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerSQL
CommentDoc enum valueQsciLexerSQL
CommentDocKeyword enum valueQsciLexerSQL
CommentDocKeywordError enum valueQsciLexerSQL
CommentLine enum valueQsciLexerSQL
CommentLineHash enum valueQsciLexerSQL
Default enum valueQsciLexerSQL
defaultColor(int style) const QsciLexerSQL [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerSQL [virtual]
defaultFont(int style) const QsciLexerSQL [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerSQL [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerSQL [virtual]
dottedWords() const QsciLexerSQL [inline]
DoubleQuotedString enum valueQsciLexerSQL
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerSQL [inline]
foldComments() const QsciLexerSQL [inline]
foldCompact() const QsciLexerSQL [inline]
foldOnlyBegin() const QsciLexerSQL [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
hashComments() const QsciLexerSQL [inline]
Identifier enum valueQsciLexerSQL
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerSQL
keywords(int set) const QsciLexerSQL [virtual]
KeywordSet5 enum valueQsciLexerSQL
KeywordSet6 enum valueQsciLexerSQL
KeywordSet7 enum valueQsciLexerSQL
KeywordSet8 enum valueQsciLexerSQL
language() const QsciLexerSQL [virtual]
lexer() const QsciLexerSQL [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerSQL
Operator enum valueQsciLexerSQL
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PlusComment enum valueQsciLexerSQL
PlusKeyword enum valueQsciLexerSQL
PlusPrompt enum valueQsciLexerSQL
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerSQL(QObject *parent=0)QsciLexerSQL
QuotedIdentifier enum valueQsciLexerSQL
quotedIdentifiers() const QsciLexerSQL [inline]
readProperties(QSettings &qs, const QString &prefix)QsciLexerSQL [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerSQL [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setBackslashEscapes(bool enable)QsciLexerSQL [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDottedWords(bool enable)QsciLexerSQL
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerSQL
setFoldComments(bool fold)QsciLexerSQL [virtual, slot]
setFoldCompact(bool fold)QsciLexerSQL [virtual, slot]
setFoldOnlyBegin(bool fold)QsciLexerSQL
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setHashComments(bool enable)QsciLexerSQL
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setQuotedIdentifiers(bool enable)QsciLexerSQL
SingleQuotedString enum valueQsciLexerSQL
styleBitsNeeded() const QsciLexer [virtual]
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerSQL [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerSQL()QsciLexerSQL [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerSQL.html b/doc/html-Qt4Qt5/classQsciLexerSQL.html new file mode 100644 index 0000000..fc0d4cb --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerSQL.html @@ -0,0 +1,740 @@ + + + + +QScintilla: QsciLexerSQL Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerSQL Class Reference
+
+
+ +

#include <qscilexersql.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerSQL class encapsulates the Scintilla SQL lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the SQL lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A line comment.

+
CommentDoc  +

A JavaDoc/Doxygen style comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
DoubleQuotedString  +

A double-quoted string.

+
SingleQuotedString  +

A single-quoted string.

+
PlusKeyword  +

An SQL*Plus keyword.

+
PlusPrompt  +

An SQL*Plus prompt.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
PlusComment  +

An SQL*Plus comment.

+
CommentLineHash  +

A '#' line comment.

+
CommentDocKeyword  +

A JavaDoc/Doxygen keyword.

+
CommentDocKeywordError  +

A JavaDoc/Doxygen keyword error.

+
KeywordSet5  +

A keyword defined in keyword set number 5. The class must be sub-classed and re-implement keywords() to make use of this style. Note that keywords must be defined using lower case.

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style. Note that keywords must be defined using lower case.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style. Note that keywords must be defined using lower case.

+
KeywordSet8  +

A keyword defined in keyword set number 8. The class must be sub-classed and re-implement keywords() to make use of this style. Note that keywords must be defined using lower case.

+
QuotedIdentifier  +

A quoted identifier.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerSQL::QsciLexerSQL (QObject * parent = 0)
+
+
+

Construct a QsciLexerSQL with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerSQL::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerSQL::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerSQL::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerSQL::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerSQL::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerSQL::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::backslashEscapes () const [inline]
+
+
+

Returns true if backslash escapes are enabled.

+
See also:
setBackslashEscapes()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerSQL::setDottedWords (bool enable)
+
+
+

If enable is true then words may contain dots (i.e. periods or full stops). The default is false.

+
See also:
dottedWords()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::dottedWords () const [inline]
+
+
+

Returns true if words may contain dots (i.e. periods or full stops).

+
See also:
setDottedWords()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerSQL::setFoldAtElse (bool fold)
+
+
+

If fold is true then ELSE blocks can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::foldAtElse () const [inline]
+
+
+

Returns true if ELSE blocks can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerSQL::setFoldOnlyBegin (bool fold)
+
+
+

If fold is true then only BEGIN blocks can be folded. The default is false.

+
See also:
foldOnlyBegin()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::foldOnlyBegin () const [inline]
+
+
+

Returns true if BEGIN blocks only can be folded.

+
See also:
setFoldOnlyBegin()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerSQL::setHashComments (bool enable)
+
+
+

If enable is true then '#' is used as a comment character. It is typically enabled for MySQL and disabled for Oracle. The default is false.

+
See also:
hashComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::hashComments () const [inline]
+
+
+

Returns true if '#' is used as a comment character.

+
See also:
setHashComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerSQL::setQuotedIdentifiers (bool enable)
+
+
+

If enable is true then quoted identifiers are enabled. The default is false.

+
See also:
quotedIdentifiers()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerSQL::quotedIdentifiers () const [inline]
+
+
+

Returns true if quoted identifiers are enabled.

+
See also:
setQuotedIdentifiers()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerSQL::setBackslashEscapes (bool enable) [virtual, slot]
+
+
+

If enable is true then backslash escapes are enabled. The default is false.

+
See also:
backslashEscapes()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerSQL::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerSQL::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerSQL::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerSQL::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerSpice-members.html b/doc/html-Qt4Qt5/classQsciLexerSpice-members.html new file mode 100644 index 0000000..89a324e --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerSpice-members.html @@ -0,0 +1,133 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerSpice Member List
+
+
+This is the complete list of members for QsciLexerSpice, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerSpice)QsciLexerSpice [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Command enum valueQsciLexerSpice
Comment enum valueQsciLexerSpice
Default enum valueQsciLexerSpice
defaultColor(int style) const QsciLexerSpice [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont(int style) const QsciLexerSpice [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
Delimiter enum valueQsciLexerSpice
description(int style) const QsciLexerSpice [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Function enum valueQsciLexerSpice
Identifier enum valueQsciLexerSpice
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexerSpice [virtual]
language() const QsciLexerSpice [virtual]
lexer() const QsciLexerSpice [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerSpice
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Parameter enum valueQsciLexerSpice
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerSpice(QObject *parent=0)QsciLexerSpice
readProperties(QSettings &qs, const QString &prefix)QsciLexer [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexer [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
Value enum valueQsciLexerSpice
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexer [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerSpice()QsciLexerSpice [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerSpice.html b/doc/html-Qt4Qt5/classQsciLexerSpice.html new file mode 100644 index 0000000..cac52db --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerSpice.html @@ -0,0 +1,260 @@ + + + + +QScintilla: QsciLexerSpice Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerSpice Class Reference
+
+
+ +

#include <qscilexerspice.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciLexerSpice class encapsulates the Scintilla Spice lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Spice lexer.

+
Enumerator:
+ + + + + + + + + +
Default  +

The default.

+
Identifier  +

An identifier.

+
Command  +

A command.

+
Function  +

A function.

+
Parameter  +

A parameter.

+
Number  +

A number.

+
Delimiter  +

A delimiter.

+
Value  +

A value.

+
Comment  +

A comment.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerSpice::QsciLexerSpice (QObject * parent = 0)
+
+
+

Construct a QsciLexerSpice with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerSpice::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerSpice::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerSpice::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerSpice::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerTCL-members.html b/doc/html-Qt4Qt5/classQsciLexerTCL-members.html new file mode 100644 index 0000000..57fadc4 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerTCL-members.html @@ -0,0 +1,148 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerTCL Member List
+
+
+This is the complete list of members for QsciLexerTCL, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerTCL)QsciLexerTCL [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerTCL
CommentBlock enum valueQsciLexerTCL
CommentBox enum valueQsciLexerTCL
CommentLine enum valueQsciLexerTCL
Default enum valueQsciLexerTCL
defaultColor(int style) const QsciLexerTCL [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerTCL [virtual]
defaultFont(int style) const QsciLexerTCL [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerTCL [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerTCL [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
ExpandKeyword enum valueQsciLexerTCL
foldComments() const QsciLexerTCL [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerTCL
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
ITCLKeyword enum valueQsciLexerTCL
keywords(int set) const QsciLexerTCL [virtual]
KeywordSet6 enum valueQsciLexerTCL
KeywordSet7 enum valueQsciLexerTCL
KeywordSet8 enum valueQsciLexerTCL
KeywordSet9 enum valueQsciLexerTCL
language() const QsciLexerTCL [virtual]
lexer() const QsciLexerTCL [virtual]
lexerId() const QsciLexer [virtual]
Modifier enum valueQsciLexerTCL
Number enum valueQsciLexerTCL
Operator enum valueQsciLexerTCL
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerTCL(QObject *parent=0)QsciLexerTCL
QuotedKeyword enum valueQsciLexerTCL
QuotedString enum valueQsciLexerTCL
readProperties(QSettings &qs, const QString &prefix)QsciLexerTCL [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerTCL [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerTCL
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
Substitution enum valueQsciLexerTCL
SubstitutionBrace enum valueQsciLexerTCL
TCLKeyword enum valueQsciLexerTCL
TkCommand enum valueQsciLexerTCL
TkKeyword enum valueQsciLexerTCL
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerTCL [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerTCL()QsciLexerTCL [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerTCL.html b/doc/html-Qt4Qt5/classQsciLexerTCL.html new file mode 100644 index 0000000..bc86972 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerTCL.html @@ -0,0 +1,467 @@ + + + + +QScintilla: QsciLexerTCL Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerTCL Class Reference
+
+
+ +

#include <qscilexertcl.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerTCL class encapsulates the Scintilla TCL lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the TCL lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A comment line.

+
Number  +

A number.

+
QuotedKeyword  +

A quoted keyword.

+
QuotedString  +

A quoted string.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
Substitution  +

A substitution.

+
SubstitutionBrace  +

A substitution starting with a brace.

+
Modifier  +

A modifier.

+
ExpandKeyword  +

Expand keyword (defined in keyword set number 5).

+
TCLKeyword  +

A TCL keyword (defined in keyword set number 1).

+
TkKeyword  +

A Tk keyword (defined in keyword set number 2).

+
ITCLKeyword  +

An iTCL keyword (defined in keyword set number 3).

+
TkCommand  +

A Tk command (defined in keyword set number 4).

+
KeywordSet6  +

A keyword defined in keyword set number 6. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet8  +

A keyword defined in keyword set number 8. The class must be sub-classed and re-implement keywords() to make use of this style.

+
KeywordSet9  +

A keyword defined in keyword set number 9. The class must be sub-classed and re-implement keywords() to make use of this style.

+
CommentBox  +

A comment box.

+
CommentBlock  +

A comment block.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerTCL::QsciLexerTCL (QObject * parent = 0)
+
+
+

Construct a QsciLexerTCL with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerTCL::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerTCL::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerTCL::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerTCL::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerTCL::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerTCL::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerTCL::setFoldComments (bool fold)
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerTCL::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerTCL::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerTCL::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerTeX-members.html b/doc/html-Qt4Qt5/classQsciLexerTeX-members.html new file mode 100644 index 0000000..314bda0 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerTeX-members.html @@ -0,0 +1,138 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerTeX Member List
+
+
+This is the complete list of members for QsciLexerTeX, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Command enum valueQsciLexerTeX
Default enum valueQsciLexerTeX
defaultColor(int style) const QsciLexerTeX [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexer [virtual]
defaultFont() const QsciLexer
defaultFont(int style) const QsciLexer [virtual]
defaultPaper() const QsciLexer
defaultPaper(int style) const QsciLexer [virtual]
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerTeX [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerTeX [inline]
foldCompact() const QsciLexerTeX [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Group enum valueQsciLexerTeX
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
keywords(int set) const QsciLexerTeX [virtual]
language() const QsciLexerTeX [virtual]
lexer() const QsciLexerTeX [virtual]
lexerId() const QsciLexer [virtual]
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
processComments() const QsciLexerTeX [inline]
processIf() const QsciLexerTeX [inline]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerTeX(QObject *parent=0)QsciLexerTeX
readProperties(QSettings &qs, const QString &prefix)QsciLexerTeX [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerTeX [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerTeX
setFoldCompact(bool fold)QsciLexerTeX
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setProcessComments(bool enable)QsciLexerTeX
setProcessIf(bool enable)QsciLexerTeX
Special enum valueQsciLexerTeX
styleBitsNeeded() const QsciLexer [virtual]
Symbol enum valueQsciLexerTeX
Text enum valueQsciLexerTeX
wordCharacters() const QsciLexerTeX [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerTeX [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerTeX()QsciLexerTeX [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerTeX.html b/doc/html-Qt4Qt5/classQsciLexerTeX.html new file mode 100644 index 0000000..d200778 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerTeX.html @@ -0,0 +1,468 @@ + + + + +QScintilla: QsciLexerTeX Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerTeX Class Reference
+
+
+ +

#include <qscilexertex.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerTeX class encapsulates the Scintilla TeX lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the TeX lexer.

+
Enumerator:
+ + + + + + +
Default  +

The default.

+
Special  +

A special.

+
Group  +

A group.

+
Symbol  +

A symbol.

+
Command  +

A command.

+
Text  +

Text.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerTeX::QsciLexerTeX (QObject * parent = 0)
+
+
+

Construct a QsciLexerTeX with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerTeX::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerTeX::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerTeX::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerTeX::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerTeX::setFoldComments (bool fold)
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerTeX::foldComments () const [inline]
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerTeX::setFoldCompact (bool fold)
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerTeX::foldCompact () const [inline]
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerTeX::setProcessComments (bool enable)
+
+
+

If enable is true then comments are processed as TeX source otherwise they are ignored. The default is false.

+
See also:
processComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerTeX::processComments () const [inline]
+
+
+

Returns true if comments are processed as TeX source.

+
See also:
setProcessComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerTeX::setProcessIf (bool enable)
+
+
+

If enable is true then \if<unknown> processed is processed as a command. The default is true.

+
See also:
processIf()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerTeX::processIf () const [inline]
+
+
+

Returns true if \if<unknown> is processed as a command.

+
See also:
setProcessIf()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerTeX::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerTeX::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerVHDL-members.html b/doc/html-Qt4Qt5/classQsciLexerVHDL-members.html new file mode 100644 index 0000000..ea868cf --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerVHDL-members.html @@ -0,0 +1,149 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerVHDL Member List
+
+
+This is the complete list of members for QsciLexerVHDL, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
Attribute enum valueQsciLexerVHDL
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerVHDL)QsciLexerVHDL [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerVHDL
CommentLine enum valueQsciLexerVHDL
Default enum valueQsciLexerVHDL
defaultColor(int style) const QsciLexerVHDL [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerVHDL [virtual]
defaultFont(int style) const QsciLexerVHDL [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerVHDL [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerVHDL [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtBegin() const QsciLexerVHDL
foldAtElse() const QsciLexerVHDL
foldAtParenthesis() const QsciLexerVHDL
foldComments() const QsciLexerVHDL
foldCompact() const QsciLexerVHDL
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerVHDL
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerVHDL
keywords(int set) const QsciLexerVHDL [virtual]
KeywordSet7 enum valueQsciLexerVHDL
language() const QsciLexerVHDL [virtual]
lexer() const QsciLexerVHDL [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerVHDL
Operator enum valueQsciLexerVHDL
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerVHDL(QObject *parent=0)QsciLexerVHDL
readProperties(QSettings &qs, const QString &prefix)QsciLexerVHDL [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerVHDL [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtBegin(bool fold)QsciLexerVHDL [virtual, slot]
setFoldAtElse(bool fold)QsciLexerVHDL [virtual, slot]
setFoldAtParenthesis(bool fold)QsciLexerVHDL [virtual, slot]
setFoldComments(bool fold)QsciLexerVHDL [virtual, slot]
setFoldCompact(bool fold)QsciLexerVHDL [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
StandardFunction enum valueQsciLexerVHDL
StandardOperator enum valueQsciLexerVHDL
StandardPackage enum valueQsciLexerVHDL
StandardType enum valueQsciLexerVHDL
String enum valueQsciLexerVHDL
styleBitsNeeded() const QsciLexer [virtual]
UnclosedString enum valueQsciLexerVHDL
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerVHDL [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerVHDL()QsciLexerVHDL [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerVHDL.html b/doc/html-Qt4Qt5/classQsciLexerVHDL.html new file mode 100644 index 0000000..41d2ec5 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerVHDL.html @@ -0,0 +1,597 @@ + + + + +QScintilla: QsciLexerVHDL Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerVHDL Class Reference
+
+
+ +

#include <qscilexervhdl.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerVHDL class encapsulates the Scintilla VHDL lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the VHDL lexer.

+
Enumerator:
+ + + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A comment line.

+
Number  +

A number.

+
String  +

A string.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
UnclosedString  +

The end of a line where a string is not closed.

+
Keyword  +

A keyword.

+
StandardOperator  +

A standard operator.

+
Attribute  +

An attribute.

+
StandardFunction  +

A standard function.

+
StandardPackage  +

A standard package.

+
StandardType  +

A standard type.

+
KeywordSet7  +

A keyword defined in keyword set number 7. The class must be sub-classed and re-implement keywords() to make use of this style.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerVHDL::QsciLexerVHDL (QObject * parent = 0)
+
+
+

Construct a QsciLexerVHDL with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerVHDL::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerVHDL::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerVHDL::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerVHDL::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerVHDL::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerVHDL::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVHDL::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVHDL::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVHDL::foldAtElse () const
+
+
+

Returns true if else blocks can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVHDL::foldAtBegin () const
+
+
+

Returns true if begin blocks can be folded.

+
See also:
setFoldAtBegin()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVHDL::foldAtParenthesis () const
+
+
+

Returns true if blocks can be folded at a parenthesis.

+
See also:
setFoldAtParenthesis()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerVHDL::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is true.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerVHDL::setFoldCompact (bool fold) [virtual, slot]
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerVHDL::setFoldAtElse (bool fold) [virtual, slot]
+
+
+

If fold is true then else blocks can be folded. The default is true.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerVHDL::setFoldAtBegin (bool fold) [virtual, slot]
+
+
+

If fold is true then begin blocks can be folded. The default is true.

+
See also:
foldAtBegin()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerVHDL::setFoldAtParenthesis (bool fold) [virtual, slot]
+
+
+

If fold is true then blocks can be folded at a parenthesis. The default is true.

+
See also:
foldAtParenthesis()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerVHDL::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerVHDL::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerVerilog-members.html b/doc/html-Qt4Qt5/classQsciLexerVerilog-members.html new file mode 100644 index 0000000..bfabca9 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerVerilog-members.html @@ -0,0 +1,148 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerVerilog Member List
+
+
+This is the complete list of members for QsciLexerVerilog, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexerVerilog)QsciLexerVerilog [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerVerilog
CommentBang enum valueQsciLexerVerilog
CommentLine enum valueQsciLexerVerilog
Default enum valueQsciLexerVerilog
defaultColor(int style) const QsciLexerVerilog [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerVerilog [virtual]
defaultFont(int style) const QsciLexerVerilog [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerVerilog [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerVerilog [virtual]
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldAtElse() const QsciLexerVerilog
foldAtModule() const QsciLexerVerilog
foldComments() const QsciLexerVerilog
foldCompact() const QsciLexerVerilog
foldPreprocessor() const QsciLexerVerilog
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerVerilog
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerVerilog
keywords(int set) const QsciLexerVerilog [virtual]
KeywordSet2 enum valueQsciLexerVerilog
language() const QsciLexerVerilog [virtual]
lexer() const QsciLexerVerilog [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerVerilog
Operator enum valueQsciLexerVerilog
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
Preprocessor enum valueQsciLexerVerilog
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerVerilog(QObject *parent=0)QsciLexerVerilog
readProperties(QSettings &qs, const QString &prefix)QsciLexerVerilog [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerVerilog [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldAtElse(bool fold)QsciLexerVerilog
setFoldAtModule(bool fold)QsciLexerVerilog
setFoldComments(bool fold)QsciLexerVerilog
setFoldCompact(bool fold)QsciLexerVerilog
setFoldPreprocessor(bool fold)QsciLexerVerilog
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
String enum valueQsciLexerVerilog
styleBitsNeeded() const QsciLexer [virtual]
SystemTask enum valueQsciLexerVerilog
UnclosedString enum valueQsciLexerVerilog
UserKeywordSet enum valueQsciLexerVerilog
wordCharacters() const QsciLexerVerilog [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerVerilog [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerVerilog()QsciLexerVerilog [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerVerilog.html b/doc/html-Qt4Qt5/classQsciLexerVerilog.html new file mode 100644 index 0000000..215cb1c --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerVerilog.html @@ -0,0 +1,592 @@ + + + + +QScintilla: QsciLexerVerilog Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerVerilog Class Reference
+
+
+ +

#include <qscilexerverilog.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerVerilog class encapsulates the Scintilla Verilog lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the Verilog lexer.

+
Enumerator:
+ + + + + + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
CommentLine  +

A line comment.

+
CommentBang  +

A bang comment.

+
Number  +

A number.

+
Keyword  +

A keyword.

+
String  +

A string.

+
KeywordSet2  +

A keyword defined in keyword set number 2. The class must be sub-classed and re-implement keywords() to make use of this style.

+
SystemTask  +

A system task.

+
Preprocessor  +

A pre-processor block.

+
Operator  +

An operator.

+
Identifier  +

An identifier.

+
UnclosedString  +

The end of a line where a string is not closed.

+
UserKeywordSet  +

A keyword defined in keyword set number 4. The class must be sub-classed and re-implement keywords() to make use of this style. This set is intended to be used for user defined identifiers and tasks.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerVerilog::QsciLexerVerilog (QObject * parent = 0)
+
+
+

Construct a QsciLexerVerilog with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerVerilog::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerVerilog::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerVerilog::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerVerilog::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerVerilog::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerVerilog::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerVerilog::setFoldAtElse (bool fold)
+
+
+

If fold is true then "} else {" lines can be folded. The default is false.

+
See also:
foldAtElse()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVerilog::foldAtElse () const
+
+
+

Returns true if "} else {" lines can be folded.

+
See also:
setFoldAtElse()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerVerilog::setFoldComments (bool fold)
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVerilog::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerVerilog::setFoldCompact (bool fold)
+
+
+

If fold is true then trailing blank lines are included in a fold block. The default is true.

+
See also:
foldCompact()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVerilog::foldCompact () const
+
+
+

Returns true if trailing blank lines are included in a fold block.

+
See also:
setFoldCompact()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerVerilog::setFoldPreprocessor (bool fold)
+
+
+

If fold is true then preprocessor blocks can be folded. The default is true.

+
See also:
foldPreprocessor()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVerilog::foldPreprocessor () const
+
+
+

Returns true if preprocessor blocks can be folded.

+
See also:
setFoldPreprocessor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerVerilog::setFoldAtModule (bool fold)
+
+
+

If fold is true then modules can be folded. The default is false.

+
See also:
foldAtModule()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerVerilog::foldAtModule () const
+
+
+

Returns true if modules can be folded.

+
See also:
setFoldAtModule()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerVerilog::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
writeProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerVerilog::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+
See also:
readProperties()
+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerXML-members.html b/doc/html-Qt4Qt5/classQsciLexerXML-members.html new file mode 100644 index 0000000..f1f21ab --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerXML-members.html @@ -0,0 +1,252 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerXML Member List
+
+
+This is the complete list of members for QsciLexerXML, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
ASPAtStart enum valueQsciLexerHTML
ASPJavaScriptComment enum valueQsciLexerHTML
ASPJavaScriptCommentDoc enum valueQsciLexerHTML
ASPJavaScriptCommentLine enum valueQsciLexerHTML
ASPJavaScriptDefault enum valueQsciLexerHTML
ASPJavaScriptDoubleQuotedString enum valueQsciLexerHTML
ASPJavaScriptKeyword enum valueQsciLexerHTML
ASPJavaScriptNumber enum valueQsciLexerHTML
ASPJavaScriptRegex enum valueQsciLexerHTML
ASPJavaScriptSingleQuotedString enum valueQsciLexerHTML
ASPJavaScriptStart enum valueQsciLexerHTML
ASPJavaScriptSymbol enum valueQsciLexerHTML
ASPJavaScriptUnclosedString enum valueQsciLexerHTML
ASPJavaScriptWord enum valueQsciLexerHTML
ASPPythonClassName enum valueQsciLexerHTML
ASPPythonComment enum valueQsciLexerHTML
ASPPythonDefault enum valueQsciLexerHTML
ASPPythonDoubleQuotedString enum valueQsciLexerHTML
ASPPythonFunctionMethodName enum valueQsciLexerHTML
ASPPythonIdentifier enum valueQsciLexerHTML
ASPPythonKeyword enum valueQsciLexerHTML
ASPPythonNumber enum valueQsciLexerHTML
ASPPythonOperator enum valueQsciLexerHTML
ASPPythonSingleQuotedString enum valueQsciLexerHTML
ASPPythonStart enum valueQsciLexerHTML
ASPPythonTripleDoubleQuotedString enum valueQsciLexerHTML
ASPPythonTripleSingleQuotedString enum valueQsciLexerHTML
ASPStart enum valueQsciLexerHTML
ASPVBScriptComment enum valueQsciLexerHTML
ASPVBScriptDefault enum valueQsciLexerHTML
ASPVBScriptIdentifier enum valueQsciLexerHTML
ASPVBScriptKeyword enum valueQsciLexerHTML
ASPVBScriptNumber enum valueQsciLexerHTML
ASPVBScriptStart enum valueQsciLexerHTML
ASPVBScriptString enum valueQsciLexerHTML
ASPVBScriptUnclosedString enum valueQsciLexerHTML
ASPXCComment enum valueQsciLexerHTML
Attribute enum valueQsciLexerHTML
autoCompletionFillups() const (defined in QsciLexerHTML)QsciLexerHTML [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitiveTags() const QsciLexerHTML [inline]
CDATA enum valueQsciLexerHTML
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Default enum valueQsciLexerHTML
defaultColor(int style) const QsciLexerXML [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerXML [virtual]
defaultFont(int style) const QsciLexerXML [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerXML [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerHTML [virtual]
djangoTemplates() const QsciLexerHTML [inline]
editor() const QsciLexer [inline]
Entity enum valueQsciLexerHTML
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldCompact() const QsciLexerHTML [inline]
foldPreprocessor() const QsciLexerHTML [inline]
foldScriptComments() const QsciLexerHTML [inline]
foldScriptHeredocs() const QsciLexerHTML [inline]
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
HTMLComment enum valueQsciLexerHTML
HTMLDoubleQuotedString enum valueQsciLexerHTML
HTMLNumber enum valueQsciLexerHTML
HTMLSingleQuotedString enum valueQsciLexerHTML
HTMLValue enum valueQsciLexerHTML
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
JavaScriptComment enum valueQsciLexerHTML
JavaScriptCommentDoc enum valueQsciLexerHTML
JavaScriptCommentLine enum valueQsciLexerHTML
JavaScriptDefault enum valueQsciLexerHTML
JavaScriptDoubleQuotedString enum valueQsciLexerHTML
JavaScriptKeyword enum valueQsciLexerHTML
JavaScriptNumber enum valueQsciLexerHTML
JavaScriptRegex enum valueQsciLexerHTML
JavaScriptSingleQuotedString enum valueQsciLexerHTML
JavaScriptStart enum valueQsciLexerHTML
JavaScriptSymbol enum valueQsciLexerHTML
JavaScriptUnclosedString enum valueQsciLexerHTML
JavaScriptWord enum valueQsciLexerHTML
keywords(int set) const QsciLexerXML [virtual]
language() const QsciLexerXML [virtual]
lexer() const QsciLexerXML [virtual]
lexerId() const QsciLexer [virtual]
makoTemplates() const QsciLexerHTML [inline]
OtherInTag enum valueQsciLexerHTML
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
PHPComment enum valueQsciLexerHTML
PHPCommentLine enum valueQsciLexerHTML
PHPDefault enum valueQsciLexerHTML
PHPDoubleQuotedString enum valueQsciLexerHTML
PHPDoubleQuotedVariable enum valueQsciLexerHTML
PHPKeyword enum valueQsciLexerHTML
PHPNumber enum valueQsciLexerHTML
PHPOperator enum valueQsciLexerHTML
PHPSingleQuotedString enum valueQsciLexerHTML
PHPStart enum valueQsciLexerHTML
PHPVariable enum valueQsciLexerHTML
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
PythonClassName enum valueQsciLexerHTML
PythonComment enum valueQsciLexerHTML
PythonDefault enum valueQsciLexerHTML
PythonDoubleQuotedString enum valueQsciLexerHTML
PythonFunctionMethodName enum valueQsciLexerHTML
PythonIdentifier enum valueQsciLexerHTML
PythonKeyword enum valueQsciLexerHTML
PythonNumber enum valueQsciLexerHTML
PythonOperator enum valueQsciLexerHTML
PythonSingleQuotedString enum valueQsciLexerHTML
PythonStart enum valueQsciLexerHTML
PythonTripleDoubleQuotedString enum valueQsciLexerHTML
PythonTripleSingleQuotedString enum valueQsciLexerHTML
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerHTML(QObject *parent=0)QsciLexerHTML
QsciLexerXML(QObject *parent=0)QsciLexerXML
readProperties(QSettings &qs, const QString &prefix)QsciLexerXML [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
refreshProperties()QsciLexerXML [virtual]
Script enum valueQsciLexerHTML
scriptsStyled() const QsciLexerXML
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setCaseSensitiveTags(bool sens)QsciLexerHTML [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setDjangoTemplates(bool enabled)QsciLexerHTML
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldCompact(bool fold)QsciLexerHTML [virtual, slot]
setFoldPreprocessor(bool fold)QsciLexerHTML [virtual, slot]
setFoldScriptComments(bool fold)QsciLexerHTML
setFoldScriptHeredocs(bool fold)QsciLexerHTML
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setMakoTemplates(bool enabled)QsciLexerHTML
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setScriptsStyled(bool styled)QsciLexerXML
SGMLBlockDefault enum valueQsciLexerHTML
SGMLCommand enum valueQsciLexerHTML
SGMLComment enum valueQsciLexerHTML
SGMLDefault enum valueQsciLexerHTML
SGMLDoubleQuotedString enum valueQsciLexerHTML
SGMLEntity enum valueQsciLexerHTML
SGMLError enum valueQsciLexerHTML
SGMLParameter enum valueQsciLexerHTML
SGMLParameterComment enum valueQsciLexerHTML
SGMLSingleQuotedString enum valueQsciLexerHTML
SGMLSpecial enum valueQsciLexerHTML
styleBitsNeeded() const QsciLexer [virtual]
Tag enum valueQsciLexerHTML
UnknownAttribute enum valueQsciLexerHTML
UnknownTag enum valueQsciLexerHTML
VBScriptComment enum valueQsciLexerHTML
VBScriptDefault enum valueQsciLexerHTML
VBScriptIdentifier enum valueQsciLexerHTML
VBScriptKeyword enum valueQsciLexerHTML
VBScriptNumber enum valueQsciLexerHTML
VBScriptStart enum valueQsciLexerHTML
VBScriptString enum valueQsciLexerHTML
VBScriptUnclosedString enum valueQsciLexerHTML
wordCharacters() const QsciLexerHTML [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerXML [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
XMLEnd enum valueQsciLexerHTML
XMLStart enum valueQsciLexerHTML
XMLTagEnd enum valueQsciLexerHTML
~QsciLexer()QsciLexer [virtual]
~QsciLexerHTML()QsciLexerHTML [virtual]
~QsciLexerXML()QsciLexerXML [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerXML.html b/doc/html-Qt4Qt5/classQsciLexerXML.html new file mode 100644 index 0000000..ade90ec --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerXML.html @@ -0,0 +1,322 @@ + + + + +QScintilla: QsciLexerXML Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerXML Class Reference
+
+
+ +

#include <qscilexerxml.h>

+ +

Inherits QsciLexerHTML.

+ +

List of all members.

+

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerXML class encapsulates the Scintilla XML lexer.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerXML::QsciLexerXML (QObject * parent = 0)
+
+
+

Construct a QsciLexerXML with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerXML::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerXML::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerXML::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerXML::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerXML::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + + +
void QsciLexerXML::setScriptsStyled (bool styled)
+
+
+

If allowed is true then scripts are styled. The default is true.

+
See also:
scriptsStyled()
+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerXML::scriptsStyled () const
+
+
+

Returns true if scripts are styled.

+
See also:
setScriptsStyled()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerXML::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexerHTML.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerXML::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexerHTML.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerYAML-members.html b/doc/html-Qt4Qt5/classQsciLexerYAML-members.html new file mode 100644 index 0000000..c1470b2 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerYAML-members.html @@ -0,0 +1,136 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciLexerYAML Member List
+
+
+This is the complete list of members for QsciLexerYAML, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apis() const QsciLexer
autoCompletionFillups() const (defined in QsciLexer)QsciLexer [virtual]
autoCompletionWordSeparators() const (defined in QsciLexer)QsciLexer [virtual]
autoIndentStyle()QsciLexer
blockEnd(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockLookback() const (defined in QsciLexer)QsciLexer [virtual]
blockStart(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
blockStartKeyword(int *style=0) const (defined in QsciLexer)QsciLexer [virtual]
braceStyle() const (defined in QsciLexer)QsciLexer [virtual]
caseSensitive() const (defined in QsciLexer)QsciLexer [virtual]
color(int style) const QsciLexer [virtual]
colorChanged(const QColor &c, int style)QsciLexer [signal]
Comment enum valueQsciLexerYAML
Default enum valueQsciLexerYAML
defaultColor(int style) const QsciLexerYAML [virtual]
QsciLexer::defaultColor() const QsciLexer
defaultEolFill(int style) const QsciLexerYAML [virtual]
defaultFont(int style) const QsciLexerYAML [virtual]
QsciLexer::defaultFont() const QsciLexer
defaultPaper(int style) const QsciLexerYAML [virtual]
QsciLexer::defaultPaper() const QsciLexer
defaultStyle() const (defined in QsciLexer)QsciLexer [virtual]
description(int style) const QsciLexerYAML [virtual]
DocumentDelimiter enum valueQsciLexerYAML
editor() const QsciLexer [inline]
eolFill(int style) const QsciLexer [virtual]
eolFillChanged(bool eolfilled, int style)QsciLexer [signal]
foldComments() const QsciLexerYAML
font(int style) const QsciLexer [virtual]
fontChanged(const QFont &f, int style)QsciLexer [signal]
Identifier enum valueQsciLexerYAML
indentationGuideView() const (defined in QsciLexer)QsciLexer [virtual]
Keyword enum valueQsciLexerYAML
keywords(int set) const QsciLexerYAML [virtual]
language() const QsciLexerYAML [virtual]
lexer() const QsciLexerYAML [virtual]
lexerId() const QsciLexer [virtual]
Number enum valueQsciLexerYAML
Operator enum valueQsciLexerYAML
paper(int style) const QsciLexer [virtual]
paperChanged(const QColor &c, int style)QsciLexer [signal]
propertyChanged(const char *prop, const char *val)QsciLexer [signal]
QsciLexer(QObject *parent=0)QsciLexer
QsciLexerYAML(QObject *parent=0)QsciLexerYAML
readProperties(QSettings &qs, const QString &prefix)QsciLexerYAML [protected, virtual]
readSettings(QSettings &qs, const char *prefix="/Scintilla")QsciLexer
Reference enum valueQsciLexerYAML
refreshProperties()QsciLexerYAML [virtual]
setAPIs(QsciAbstractAPIs *apis)QsciLexer
setAutoIndentStyle(int autoindentstyle)QsciLexer [virtual, slot]
setColor(const QColor &c, int style=-1)QsciLexer [virtual, slot]
setDefaultColor(const QColor &c)QsciLexer
setDefaultFont(const QFont &f)QsciLexer
setDefaultPaper(const QColor &c)QsciLexer
setEditor(QsciScintilla *editor) (defined in QsciLexer)QsciLexer [virtual]
setEolFill(bool eoffill, int style=-1)QsciLexer [virtual, slot]
setFoldComments(bool fold)QsciLexerYAML [virtual, slot]
setFont(const QFont &f, int style=-1)QsciLexer [virtual, slot]
setPaper(const QColor &c, int style=-1)QsciLexer [virtual, slot]
styleBitsNeeded() const QsciLexer [virtual]
SyntaxErrorMarker enum valueQsciLexerYAML
TextBlockMarker enum valueQsciLexerYAML
wordCharacters() const QsciLexer [virtual]
writeProperties(QSettings &qs, const QString &prefix) const QsciLexerYAML [protected, virtual]
writeSettings(QSettings &qs, const char *prefix="/Scintilla") const QsciLexer
~QsciLexer()QsciLexer [virtual]
~QsciLexerYAML()QsciLexerYAML [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciLexerYAML.html b/doc/html-Qt4Qt5/classQsciLexerYAML.html new file mode 100644 index 0000000..e98340b --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciLexerYAML.html @@ -0,0 +1,418 @@ + + + + +QScintilla: QsciLexerYAML Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciLexerYAML Class Reference
+
+
+ +

#include <qscilexeryaml.h>

+ +

Inherits QsciLexer.

+ +

List of all members.

+

+Public Types

+ +

+Public Slots

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciLexerYAML class encapsulates the Scintilla YAML lexer.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the meanings of the different styles used by the YAML lexer.

+
Enumerator:
+ + + + + + + + + + +
Default  +

The default.

+
Comment  +

A comment.

+
Identifier  +

An identifier.

+
Keyword  +

A keyword.

+
Number  +

A number.

+
Reference  +

A reference.

+
DocumentDelimiter  +

A document delimiter.

+
TextBlockMarker  +

A text block marker.

+
SyntaxErrorMarker  +

A syntax error marker.

+
Operator  +

An operator.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciLexerYAML::QsciLexerYAML (QObject * parent = 0)
+
+
+

Construct a QsciLexerYAML with parent parent. parent is typically the QsciScintilla instance.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
const char* QsciLexerYAML::lexer () const [virtual]
+
+
+

Returns the name of the lexer. Some lexers support a number of languages.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerYAML::defaultColor (int style) const [virtual]
+
+
+

Returns the foreground colour of the text for style number style.

+
See also:
defaultPaper()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QColor QsciLexerYAML::defaultPaper (int style) const [virtual]
+
+
+

Returns the background colour of the text for style number style.

+
See also:
defaultColor()
+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
const char* QsciLexerYAML::keywords (int set) const [virtual]
+
+
+

Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + +
QString QsciLexerYAML::description (int style) const [virtual]
+
+
+

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

+ +

Implements QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
void QsciLexerYAML::refreshProperties () [virtual]
+
+
+

Causes all properties to be refreshed by emitting the propertyChanged() signal as required.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + +
bool QsciLexerYAML::foldComments () const
+
+
+

Returns true if multi-line comment blocks can be folded.

+
See also:
setFoldComments()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciLexerYAML::setFoldComments (bool fold) [virtual, slot]
+
+
+

If fold is true then multi-line comment blocks can be folded. The default is false.

+
See also:
foldComments()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerYAML::readProperties (QSettings & qs,
const QString & prefix 
) [protected, virtual]
+
+
+

The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
bool QsciLexerYAML::writeProperties (QSettings & qs,
const QString & prefix 
) const [protected, virtual]
+
+
+

The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.

+ +

Reimplemented from QsciLexer.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciMacro-members.html b/doc/html-Qt4Qt5/classQsciMacro-members.html new file mode 100644 index 0000000..61d168d --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciMacro-members.html @@ -0,0 +1,78 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciMacro Member List
+
+
+This is the complete list of members for QsciMacro, including all inherited members. + + + + + + + + + +
clear()QsciMacro
endRecording()QsciMacro [virtual, slot]
load(const QString &asc)QsciMacro
play()QsciMacro [virtual, slot]
QsciMacro(QsciScintilla *parent)QsciMacro
QsciMacro(const QString &asc, QsciScintilla *parent)QsciMacro
save() const QsciMacro
startRecording()QsciMacro [virtual, slot]
~QsciMacro()QsciMacro [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciMacro.html b/doc/html-Qt4Qt5/classQsciMacro.html new file mode 100644 index 0000000..1f9d634 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciMacro.html @@ -0,0 +1,174 @@ + + + + +QScintilla: QsciMacro Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciMacro Class Reference
+
+
+ +

#include <qscimacro.h>

+ +

List of all members.

+

+Classes

+
    +
  • struct Macro +
+

+Public Slots

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciMacro class represents a sequence of recordable editor commands.

+

Methods are provided to convert convert a macro to and from a textual representation so that they can be easily written to and read from permanent storage.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciMacro::QsciMacro (const QString & asc,
QsciScintillaparent 
)
+
+
+

Construct a QsciMacro from the printable ASCII representation asc, with parent parent.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
bool QsciMacro::load (const QString & asc)
+
+
+

Load the macro from the printable ASCII representation asc. Returns true if there was no error.

+
See also:
save()
+ +
+
+ +
+
+ + + + + + + +
QString QsciMacro::save () const
+
+
+

Return a printable ASCII representation of the macro. It is guaranteed that only printable ASCII characters are used and that double quote characters will not be used.

+
See also:
load()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciPrinter-members.html b/doc/html-Qt4Qt5/classQsciPrinter-members.html new file mode 100644 index 0000000..c9b9c12 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciPrinter-members.html @@ -0,0 +1,77 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciPrinter Member List
+
+
+This is the complete list of members for QsciPrinter, including all inherited members. + + + + + + + + +
formatPage(QPainter &painter, bool drawing, QRect &area, int pagenr)QsciPrinter [virtual]
magnification() const QsciPrinter [inline]
printRange(QsciScintillaBase *qsb, int from=-1, int to=-1)QsciPrinter [virtual]
QsciPrinter(PrinterMode mode=ScreenResolution)QsciPrinter
setMagnification(int magnification)QsciPrinter [virtual]
setWrapMode(QsciScintilla::WrapMode wmode)QsciPrinter [virtual]
wrapMode() const QsciPrinter [inline]
~QsciPrinter()QsciPrinter [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciPrinter.html b/doc/html-Qt4Qt5/classQsciPrinter.html new file mode 100644 index 0000000..ce2d40d --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciPrinter.html @@ -0,0 +1,240 @@ + + + + +QScintilla: QsciPrinter Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciPrinter Class Reference
+
+
+ +

#include <qsciprinter.h>

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciPrinter class is a sub-class of the Qt QPrinter class that is able to print the text of a Scintilla document.

+

The class can be further sub-classed to alter to layout of the text, adding headers and footers for example.

+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual void QsciPrinter::formatPage (QPainter & painter,
bool drawing,
QRect & area,
int pagenr 
) [virtual]
+
+
+

Format a page, by adding headers and footers for example, before the document text is drawn on it. painter is the painter to be used to add customised text and graphics. drawing is true if the page is actually being drawn rather than being sized. painter drawing methods must only be called when drawing is true. area is the area of the page that will be used to draw the text. This should be modified if it is necessary to reserve space for any customised text or graphics. By default the area is relative to the printable area of the page. Use QPrinter::setFullPage() because calling printRange() if you want to try and print over the whole page. pagenr is the number of the page. The first page is numbered 1.

+ +
+
+ +
+
+ + + + + + + +
int QsciPrinter::magnification () const [inline]
+
+
+

Return the number of points to add to each font when printing.

+
See also:
setMagnification()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciPrinter::setMagnification (int magnification) [virtual]
+
+
+

Sets the number of points to add to each font when printing to magnification.

+
See also:
magnification()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
virtual int QsciPrinter::printRange (QsciScintillaBaseqsb,
int from = -1,
int to = -1 
) [virtual]
+
+
+

Print a range of lines from the Scintilla instance qsb. from is the first line to print and a negative value signifies the first line of text. to is the last line to print and a negative value signifies the last line of text. true is returned if there was no error.

+ +
+
+ +
+
+ + + + + + + +
QsciScintilla::WrapMode QsciPrinter::wrapMode () const [inline]
+
+
+

Return the line wrap mode used when printing. The default is QsciScintilla::WrapWord.

+
See also:
setWrapMode()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciPrinter::setWrapMode (QsciScintilla::WrapMode wmode) [virtual]
+
+
+

Sets the line wrap mode used when printing to wmode.

+
See also:
wrapMode()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciScintilla-members.html b/doc/html-Qt4Qt5/classQsciScintilla-members.html new file mode 100644 index 0000000..5c73d17 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciScintilla-members.html @@ -0,0 +1,1527 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciScintilla Member List
+
+
+This is the complete list of members for QsciScintilla, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AcsAll enum valueQsciScintilla
AcsAPIs enum valueQsciScintilla
AcsDocument enum valueQsciScintilla
AcsNone enum valueQsciScintilla
AcusAlways enum valueQsciScintilla
AcusExplicit enum valueQsciScintilla
AcusNever enum valueQsciScintilla
AiClosing enum valueQsciScintilla
AiMaintain enum valueQsciScintilla
AiOpening enum valueQsciScintilla
annotate(int line, const QString &text, int style)QsciScintilla
annotate(int line, const QString &text, const QsciStyle &style)QsciScintilla
annotate(int line, const QsciStyledText &text)QsciScintilla
annotate(int line, const QList< QsciStyledText > &text)QsciScintilla
annotation(int line) const QsciScintilla
ANNOTATION_BOXED enum value (defined in QsciScintillaBase)QsciScintillaBase
ANNOTATION_HIDDEN enum value (defined in QsciScintillaBase)QsciScintillaBase
ANNOTATION_STANDARD enum value (defined in QsciScintillaBase)QsciScintillaBase
AnnotationBoxed enum valueQsciScintilla
annotationDisplay() const QsciScintilla
AnnotationDisplay enum nameQsciScintilla
AnnotationHidden enum valueQsciScintilla
AnnotationStandard enum valueQsciScintilla
apiContext(int pos, int &context_start, int &last_word_start)QsciScintilla [virtual]
append(const QString &text)QsciScintilla [virtual, slot]
autoCompleteFromAll()QsciScintilla [virtual, slot]
autoCompleteFromAPIs()QsciScintilla [virtual, slot]
autoCompleteFromDocument()QsciScintilla [virtual, slot]
autoCompletionCaseSensitivity() const QsciScintilla
autoCompletionFillupsEnabled() const QsciScintilla
autoCompletionReplaceWord() const QsciScintilla
autoCompletionShowSingle() const QsciScintilla
AutoCompletionSource enum nameQsciScintilla
autoCompletionSource() const QsciScintilla [inline]
autoCompletionThreshold() const QsciScintilla [inline]
autoCompletionUseSingle() const QsciScintilla
AutoCompletionUseSingle enum nameQsciScintilla
autoIndent() const QsciScintilla [inline]
Background enum valueQsciScintilla
backspaceUnindents() const QsciScintilla
beginUndoAction()QsciScintilla
BottomLeftCorner enum valueQsciScintilla
BoxedFoldStyle enum valueQsciScintilla
BoxedMinus enum valueQsciScintilla
BoxedMinusConnected enum valueQsciScintilla
BoxedPlus enum valueQsciScintilla
BoxedPlusConnected enum valueQsciScintilla
BoxedTreeFoldStyle enum valueQsciScintilla
BoxIndicator enum valueQsciScintilla
BraceMatch enum nameQsciScintilla
braceMatching() const QsciScintilla [inline]
bytesAsText(const char *bytes) const (defined in QsciScintillaBase)QsciScintillaBase [protected]
callTip()QsciScintilla [virtual, slot]
CallTipsAboveText enum valueQsciScintilla
CallTipsBelowText enum valueQsciScintilla
CallTipsContext enum valueQsciScintilla
CallTipsNoAutoCompletionContext enum valueQsciScintilla
CallTipsNoContext enum valueQsciScintilla
CallTipsNone enum valueQsciScintilla
callTipsPosition() const QsciScintilla [inline]
CallTipsPosition enum nameQsciScintilla
callTipsStyle() const QsciScintilla [inline]
CallTipsStyle enum nameQsciScintilla
callTipsVisible() const QsciScintilla [inline]
cancelList()QsciScintilla
canInsertFromMimeData(const QMimeData *source) const QsciScintillaBase [protected, virtual]
CARET_EVEN enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_JUMPS enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_SLOP enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_STRICT enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_BLOCK enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_INVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_LINE enum value (defined in QsciScintillaBase)QsciScintillaBase
caseSensitive() const QsciScintilla
changeEvent(QEvent *e)QsciScintilla [protected, virtual]
Circle enum valueQsciScintilla
CircledFoldStyle enum valueQsciScintilla
CircledMinus enum valueQsciScintilla
CircledMinusConnected enum valueQsciScintilla
CircledPlus enum valueQsciScintilla
CircledPlusConnected enum valueQsciScintilla
CircledTreeFoldStyle enum valueQsciScintilla
clear()QsciScintilla [virtual, slot]
clearAnnotations(int line=-1)QsciScintilla
clearFolds()QsciScintilla
clearIndicatorRange(int lineFrom, int indexFrom, int lineTo, int indexTo, int indicatorNumber)QsciScintilla
clearMarginText(int line=-1)QsciScintilla
clearRegisteredImages()QsciScintilla
color() const QsciScintilla
commandKey(int qt_key, int &modifiers) (defined in QsciScintillaBase)QsciScintillaBase [static]
contextMenuEvent(QContextMenuEvent *e)QsciScintilla [protected, virtual]
contractedFolds() const QsciScintilla
convertEols(EolMode mode)QsciScintilla
copy()QsciScintilla [virtual, slot]
copyAvailable(bool yes)QsciScintilla [signal]
createStandardContextMenu()QsciScintilla
cursorPositionChanged(int line, int index)QsciScintilla [signal]
cut()QsciScintilla [virtual, slot]
DashesIndicator enum valueQsciScintilla
DiagonalIndicator enum valueQsciScintilla
document() const QsciScintilla [inline]
DotBoxIndicator enum valueQsciScintilla
DotsIndicator enum valueQsciScintilla
DownTriangle enum valueQsciScintilla
dragEnterEvent(QDragEnterEvent *e)QsciScintillaBase [protected, virtual]
dragLeaveEvent(QDragLeaveEvent *e)QsciScintillaBase [protected, virtual]
dragMoveEvent(QDragMoveEvent *e)QsciScintillaBase [protected, virtual]
dropEvent(QDropEvent *e)QsciScintillaBase [protected, virtual]
EDGE_BACKGROUND enum value (defined in QsciScintillaBase)QsciScintillaBase
EDGE_LINE enum value (defined in QsciScintillaBase)QsciScintillaBase
EDGE_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
EdgeBackground enum valueQsciScintilla
edgeColor() const QsciScintilla
edgeColumn() const QsciScintilla
EdgeLine enum valueQsciScintilla
EdgeMode enum nameQsciScintilla
edgeMode() const QsciScintilla
EdgeNone enum valueQsciScintilla
endUndoAction()QsciScintilla
ensureCursorVisible()QsciScintilla [virtual, slot]
ensureLineVisible(int line)QsciScintilla [virtual, slot]
EolMac enum valueQsciScintilla
EolMode enum nameQsciScintilla
eolMode() const QsciScintilla
EolUnix enum valueQsciScintilla
eolVisibility() const QsciScintilla
EolWindows enum valueQsciScintilla
event(QEvent *e)QsciScintilla [protected, virtual]
extraAscent() const QsciScintilla
extraDescent() const QsciScintilla
fillIndicatorRange(int lineFrom, int indexFrom, int lineTo, int indexTo, int indicatorNumber)QsciScintilla
findFirst(const QString &expr, bool re, bool cs, bool wo, bool wrap, bool forward=true, int line=-1, int index=-1, bool show=true, bool posix=false)QsciScintilla [virtual]
findFirstInSelection(const QString &expr, bool re, bool cs, bool wo, bool forward=true, bool show=true, bool posix=false)QsciScintilla [virtual]
findNext()QsciScintilla [virtual]
firstVisibleLine() const QsciScintilla
focusInEvent(QFocusEvent *e)QsciScintillaBase [protected, virtual]
focusNextPrevChild(bool next)QsciScintillaBase [protected, virtual]
focusOutEvent(QFocusEvent *e)QsciScintillaBase [protected, virtual]
foldAll(bool children=false)QsciScintilla [virtual, slot]
folding() const QsciScintilla [inline]
foldLine(int line)QsciScintilla [virtual, slot]
FoldStyle enum nameQsciScintilla
fromMimeData(const QMimeData *source, bool &rectangular) const QsciScintillaBase [protected, virtual]
FullRectangle enum valueQsciScintilla
getCursorPosition(int *line, int *index) const QsciScintilla
getSelection(int *lineFrom, int *indexFrom, int *lineTo, int *indexTo) const QsciScintilla
hasSelectedText() const QsciScintilla [inline]
HiddenIndicator enum valueQsciScintilla
indent(int line)QsciScintilla [virtual, slot]
indentation(int line) const QsciScintilla
indentationGuides() const QsciScintilla
indentationsUseTabs() const QsciScintilla
indentationWidth() const QsciScintilla
INDIC0_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC1_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC2_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_BOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_COMPOSITIONTHICK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_CONTAINER enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DASH enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DIAGONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DOTBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DOTS enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_HIDDEN enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_MAX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_PLAIN enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_ROUNDBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLELOW enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLEPIXMAP enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_STRAIGHTBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_STRIKE enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_TT enum value (defined in QsciScintillaBase)QsciScintillaBase
indicatorClicked(int line, int index, Qt::KeyboardModifiers state)QsciScintilla [signal]
indicatorDefine(IndicatorStyle style, int indicatorNumber=-1)QsciScintilla
indicatorDrawUnder(int indicatorNumber) const QsciScintilla
indicatorReleased(int line, int index, Qt::KeyboardModifiers state)QsciScintilla [signal]
IndicatorStyle enum nameQsciScintilla
INDICS_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
inputMethodEvent(QInputMethodEvent *event)QsciScintillaBase [protected, virtual]
inputMethodQuery(Qt::InputMethodQuery query) const (defined in QsciScintillaBase)QsciScintillaBase [protected, virtual]
insert(const QString &text)QsciScintilla [virtual, slot]
insertAt(const QString &text, int line, int index)QsciScintilla [virtual, slot]
Invisible enum valueQsciScintilla
isCallTipActive() const QsciScintilla
isListActive() const QsciScintilla
isModified() const QsciScintilla
isReadOnly() const QsciScintilla
isRedoAvailable() const QsciScintilla
isUndoAvailable() const QsciScintilla
isUtf8() const QsciScintilla
isWordCharacter(char ch) const QsciScintilla
keyPressEvent(QKeyEvent *e)QsciScintillaBase [protected, virtual]
LeftRectangle enum valueQsciScintilla
LeftSideRoundedSplitter enum valueQsciScintilla
LeftSideSplitter enum valueQsciScintilla
length() const QsciScintilla
lexer() const QsciScintilla
lineAt(const QPoint &point) const QsciScintilla
lineIndexFromPosition(int position, int *line, int *index) const QsciScintilla
lineLength(int line) const QsciScintilla
lines() const QsciScintilla
linesChanged()QsciScintilla [signal]
marginClicked(int margin, int line, Qt::KeyboardModifiers state)QsciScintilla [signal]
marginLineNumbers(int margin) const QsciScintilla
marginMarkerMask(int margin) const QsciScintilla
marginOptions() const QsciScintilla
marginSensitivity(int margin) const QsciScintilla
MarginType enum nameQsciScintilla
marginType(int margin) const QsciScintilla
marginWidth(int margin) const QsciScintilla
markerAdd(int linenr, int markerNumber)QsciScintilla
markerDefine(MarkerSymbol sym, int markerNumber=-1)QsciScintilla
markerDefine(char ch, int markerNumber=-1)QsciScintilla
markerDefine(const QPixmap &pm, int markerNumber=-1)QsciScintilla
markerDefine(const QImage &im, int markerNumber=-1)QsciScintilla
markerDelete(int linenr, int markerNumber=-1)QsciScintilla
markerDeleteAll(int markerNumber=-1)QsciScintilla
markerDeleteHandle(int mhandle)QsciScintilla
markerFindNext(int linenr, unsigned mask) const QsciScintilla
markerFindPrevious(int linenr, unsigned mask) const QsciScintilla
markerLine(int mhandle) const QsciScintilla
markersAtLine(int linenr) const QsciScintilla
MarkerSymbol enum nameQsciScintilla
Minus enum valueQsciScintilla
modificationAttempted()QsciScintilla [signal]
modificationChanged(bool m)QsciScintilla [signal]
MoNone enum valueQsciScintilla
MoSublineSelect enum valueQsciScintilla
mouseDoubleClickEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mouseMoveEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mousePressEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mouseReleaseEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
moveToMatchingBrace()QsciScintilla [virtual, slot]
NoBraceMatch enum valueQsciScintilla
NoFoldStyle enum valueQsciScintilla
NumberMargin enum valueQsciScintilla
overwriteMode() const QsciScintilla
paintEvent(QPaintEvent *e)QsciScintillaBase [protected, virtual]
paper() const QsciScintilla
paste()QsciScintilla [virtual, slot]
PlainFoldStyle enum valueQsciScintilla
PlainIndicator enum valueQsciScintilla
Plus enum valueQsciScintilla
pool()QsciScintillaBase [static]
positionFromLineIndex(int line, int index) const QsciScintilla
QsciScintilla(QWidget *parent=0)QsciScintilla
QsciScintillaBase(QWidget *parent=0)QsciScintillaBase [explicit]
QSCN_SELCHANGED(bool yes)QsciScintillaBase [signal]
read(QIODevice *io)QsciScintilla
recolor(int start=0, int end=-1)QsciScintilla [virtual]
Rectangle enum valueQsciScintilla
redo()QsciScintilla [virtual, slot]
registerImage(int id, const QPixmap &pm)QsciScintilla
registerImage(int id, const QImage &im)QsciScintilla
removeSelectedText()QsciScintilla [virtual, slot]
replace(const QString &replaceStr)QsciScintilla [virtual]
replaceSelectedText(const QString &text)QsciScintilla [virtual, slot]
resetFoldMarginColors()QsciScintilla
resetHotspotBackgroundColor()QsciScintilla
resetHotspotForegroundColor()QsciScintilla
resetMatchedBraceIndicator()QsciScintilla
resetSelectionBackgroundColor()QsciScintilla [virtual, slot]
resetSelectionForegroundColor()QsciScintilla [virtual, slot]
resetUnmatchedBraceIndicator()QsciScintilla
resizeEvent(QResizeEvent *e)QsciScintillaBase [protected, virtual]
RightArrow enum valueQsciScintilla
RightTriangle enum valueQsciScintilla
RoundBoxIndicator enum valueQsciScintilla
RoundedBottomLeftCorner enum valueQsciScintilla
SC_ALPHA_NOALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ALPHA_OPAQUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ALPHA_TRANSPARENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_CHANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_CLICK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_SHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_CARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_DOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_PAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_OFF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_ON enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_WHITESPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_LOWER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_MIXED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_UPPER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_8859_15 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_ANSI enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_ARABIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_BALTIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_CHINESEBIG5 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_EASTEUROPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_GB2312 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_GREEK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_HANGUL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_HEBREW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_JOHAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_MAC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_OEM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_RUSSIAN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_SHIFTJIS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_SYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_THAI enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_TURKISH enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_VIETNAMESE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CP_DBCS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CP_UTF8 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORARROW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORNORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORREVERSEARROW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORWAIT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_ANTIALIASED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_LCD_OPTIMIZED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_NON_ANTIALIASED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_CR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_CRLF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_LF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_CONTRACT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_EXPAND enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_TOGGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LEVELNUMBERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEAFTER_CONTRACTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEAFTER_EXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEBEFORE_CONTRACTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEBEFORE_EXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELBASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELHEADERFLAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELNUMBERMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELWHITEFLAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FONT_SIZE_MULTIPLIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_IV_LOOKBOTH enum valueQsciScintillaBase
SC_IV_LOOKFORWARD enum valueQsciScintillaBase
SC_IV_NONE enum valueQsciScintillaBase
SC_IV_REAL enum valueQsciScintillaBase
SC_LASTSTEPINUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARGIN_BACK enum valueQsciScintillaBase
SC_MARGIN_FORE enum valueQsciScintillaBase
SC_MARGIN_NUMBER enum valueQsciScintillaBase
SC_MARGIN_RTEXT enum valueQsciScintillaBase
SC_MARGIN_SYMBOL enum valueQsciScintillaBase
SC_MARGIN_TEXT enum valueQsciScintillaBase
SC_MARGINOPTION_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARGINOPTION_SUBLINESELECT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARK_ARROW enum valueQsciScintillaBase
SC_MARK_ARROWDOWN enum valueQsciScintillaBase
SC_MARK_ARROWS enum valueQsciScintillaBase
SC_MARK_AVAILABLE enum valueQsciScintillaBase
SC_MARK_BACKGROUND enum valueQsciScintillaBase
SC_MARK_BOXMINUS enum valueQsciScintillaBase
SC_MARK_BOXMINUSCONNECTED enum valueQsciScintillaBase
SC_MARK_BOXPLUS enum valueQsciScintillaBase
SC_MARK_BOXPLUSCONNECTED enum valueQsciScintillaBase
SC_MARK_CHARACTER enum valueQsciScintillaBase
SC_MARK_CIRCLE enum valueQsciScintillaBase
SC_MARK_CIRCLEMINUS enum valueQsciScintillaBase
SC_MARK_CIRCLEMINUSCONNECTED enum valueQsciScintillaBase
SC_MARK_CIRCLEPLUS enum valueQsciScintillaBase
SC_MARK_CIRCLEPLUSCONNECTED enum valueQsciScintillaBase
SC_MARK_DOTDOTDOT enum valueQsciScintillaBase
SC_MARK_EMPTY enum valueQsciScintillaBase
SC_MARK_FULLRECT enum valueQsciScintillaBase
SC_MARK_LCORNER enum valueQsciScintillaBase
SC_MARK_LCORNERCURVE enum valueQsciScintillaBase
SC_MARK_LEFTRECT enum valueQsciScintillaBase
SC_MARK_MINUS enum valueQsciScintillaBase
SC_MARK_PIXMAP enum valueQsciScintillaBase
SC_MARK_PLUS enum valueQsciScintillaBase
SC_MARK_RGBAIMAGE enum valueQsciScintillaBase
SC_MARK_ROUNDRECT enum valueQsciScintillaBase
SC_MARK_SHORTARROW enum valueQsciScintillaBase
SC_MARK_SMALLRECT enum valueQsciScintillaBase
SC_MARK_TCORNER enum valueQsciScintillaBase
SC_MARK_TCORNERCURVE enum valueQsciScintillaBase
SC_MARK_UNDERLINE enum valueQsciScintillaBase
SC_MARK_VLINE enum valueQsciScintillaBase
SC_MARKNUM_FOLDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEREND enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERMIDTAIL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEROPEN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEROPENMID enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERSUB enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERTAIL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MASK_FOLDERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_BEFOREDELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_BEFOREINSERT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEANNOTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGELINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEMARGIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEMARKER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGESTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CONTAINER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_DELETETEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_INSERTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_LEXERSTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MODEVENTMASKALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTILINEUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTIPASTE_EACH enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTIPASTE_ONCE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTISTEPUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_CUSTOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_PERFORMSORT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_PRESORTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_REDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_UNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_USER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_BLACKONWHITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_COLOURONWHITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_COLOURONWHITEDEFAULTBG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_INVERTLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_NORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_LINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_RECTANGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_STREAM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_THIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_STARTACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TECHNOLOGY_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TECHNOLOGY_DIRECTWRITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TIME_FOREVER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_BOOLEAN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_INTEGER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_STRING enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_CONTENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_H_SCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_SELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_V_SCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_BOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_NORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_SEMIBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_CHAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_WORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_FIXED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_INDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_SAME enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_END enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_MARGIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_END_BY_TEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_START_BY_TEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCEN_CHANGE()QsciScintillaBase [signal]
SCFIND_MATCHCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_POSIX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_REGEXP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_WHOLEWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_WORDSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDREFDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDSTYLEDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDTEXT enum valueQsciScintillaBase
SCI_ADDUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ALLOCATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ALLOCATEEXTENDEDSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONCLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETLINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_APPENDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ASSIGNCMDKEY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCACTIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCCANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCCOMPLETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETAUTOHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCANCELATSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCHOOSESINGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCURRENTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETDROPRESTOFWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETIGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETMAXHEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETMAXWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETORDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETSEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETTYPESEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCPOSSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSELECT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETAUTOHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCANCELATSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCHOOSESINGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETDROPRESTOFWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETFILLUPS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETIGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETMAXHEIGHT enum valueQsciScintillaBase
SCI_AUTOCSETMAXWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETORDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETSEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETTYPESEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSTOPS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BACKTAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BEGINUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEBADLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEBADLIGHTINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEHIGHLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEHIGHLIGHTINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEMATCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPACTIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPCANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPPOSSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETFOREHLT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETHLT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPUSESTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANUNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHANGELEXERSTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFTRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARPOSITIONFROMPOINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARPOSITIONFROMPOINTCLOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHTRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHOOSECARETX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARALLCMDKEYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARCMDKEY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARDOCUMENTSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARREGISTEREDIMAGES enum valueQsciScintillaBase
SCI_CLEARREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARSELECTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COLOURISE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CONTRACTEDFOLDNEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CONVERTEOLS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPYALLOWLINE enum valueQsciScintillaBase
SCI_COPYRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPYTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COUNTCHARACTERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CREATEDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CREATELOADER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CUT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETEBACKNOTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETERANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELLINELEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELLINERIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDRIGHTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DESCRIBEKEYWORDSETS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DESCRIBEPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCLINEFROMVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTSTARTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EDITTOGGLEOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EMPTYUNDOBUFFER enum valueQsciScintillaBase
SCI_ENDUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ENSUREVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ENSUREVISIBLEENFORCEPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EXPANDCHILDREN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDCOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORFLASH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDCHILDREN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FORMATRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FORMFEED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETSBLINK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETSVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALSELECTIONTYPING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETALLLINESVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETANCHOR enum valueQsciScintillaBase
SCI_GETAUTOMATICFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETBACKSPACEUNINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETBUFFEREDDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEBACKALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEVISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETPERIOD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCHARACTERPOINTER enum valueQsciScintillaBase
SCI_GETCHARAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCODEPAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCONTROLCHARSYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCURLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCURRENTPOS enum valueQsciScintillaBase
SCI_GETCURSOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDIRECTFUNCTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDIRECTPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDOCPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGECOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGECOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGEMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETENDATLASTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETENDSTYLED enum valueQsciScintillaBase
SCI_GETEOLMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEXTRAASCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEXTRADESCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFIRSTVISIBLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDLEVEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDPARENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFONTQUALITY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETGAPPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHIGHLIGHTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTSINGLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETIDENTIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDENTATIONGUIDES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDICATORCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDICATORVALUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETKEYSUNICODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLASTCHILD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLAYOUTCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLENGTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLEXER enum valueQsciScintillaBase
SCI_GETLEXERLANGUAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINECOUNT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEINDENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEINDENTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESELENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESELSTARTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMAINSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINCURSORN enum valueQsciScintillaBase
SCI_GETMARGINLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINMASKN enum valueQsciScintillaBase
SCI_GETMARGINOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINSENSITIVEN enum valueQsciScintillaBase
SCI_GETMARGINTYPEN enum valueQsciScintillaBase
SCI_GETMARGINWIDTHN enum valueQsciScintillaBase
SCI_GETMAXLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMODEVENTMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMODIFY enum valueQsciScintillaBase
SCI_GETMOUSEDOWNCAPTURES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMOUSEDWELLTIME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMOUSESELECTIONRECTANGULARSWITCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMULTIPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMULTIPLESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPASTECONVERTENDINGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPOSITIONCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTCOLOURMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTMAGNIFICATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTYEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTYINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPUNCTUATIONCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRANGEPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETREADONLY enum valueQsciScintillaBase
SCI_GETRECTANGULARSELECTIONANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONMODIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSCROLLWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSCROLLWIDTHTRACKING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSEARCHFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONEMPTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTATUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEBITS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEBITSNEEDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTABINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTABWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTARGETEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTARGETSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTECHNOLOGY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTEXT enum valueQsciScintillaBase
SCI_GETTEXTLENGTH enum valueQsciScintillaBase
SCI_GETTEXTRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTWOPHASEDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETUNDOCOLLECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETUSETABS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIEWEOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIEWWS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIRTUALSPACEOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWHITESPACECHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWHITESPACESIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWORDCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPINDENTMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPSTARTINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPVISUALFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPVISUALFLAGSLOCATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETXOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETZOOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GOTOLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GOTOPOS enum valueQsciScintillaBase
SCI_GRABFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HIDELINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HIDESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMERECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORALLONFOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORCLEARRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATOREND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORFILLRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORVALUEAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETOUTLINEALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETUNDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETOUTLINEALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETUNDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INSERTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LEXER_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINECOPY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINECUT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWNRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDUPLICATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINELENGTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLLDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLLUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESJOIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESONSCREEN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESSPLIT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINETRANSPOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUPRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LOADLEXERLIBRARY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LOWERCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINTEXTCLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERADD enum valueQsciScintillaBase
SCI_MARKERADDSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERDEFINE enum valueQsciScintillaBase
SCI_MARKERDEFINEPIXMAP enum valueQsciScintillaBase
SCI_MARKERDEFINERGBAIMAGE enum valueQsciScintillaBase
SCI_MARKERDELETE enum valueQsciScintillaBase
SCI_MARKERDELETEALL enum valueQsciScintillaBase
SCI_MARKERDELETEHANDLE enum valueQsciScintillaBase
SCI_MARKERENABLEHIGHLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERGET enum valueQsciScintillaBase
SCI_MARKERLINEFROMHANDLE enum valueQsciScintillaBase
SCI_MARKERNEXT enum valueQsciScintillaBase
SCI_MARKERPREVIOUS enum valueQsciScintillaBase
SCI_MARKERSETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERSETBACK enum valueQsciScintillaBase
SCI_MARKERSETBACKSELECTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERSETFORE enum valueQsciScintillaBase
SCI_MARKERSYMBOLDEFINED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVECARETINSIDEVIEW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVESELECTEDLINESDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVESELECTEDLINESUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_NEWLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_NULL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_OPTIONAL_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWNRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUPRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARADOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARADOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARAUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARAUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POINTXFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POINTYFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONAFTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONBEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMPOINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMPOINTCLOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONRELATIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PRIVATELEXERCALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PROPERTYNAMES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PROPERTYTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REGISTERIMAGE enum valueQsciScintillaBase
SCI_REGISTERRGBAIMAGE enum valueQsciScintillaBase
SCI_RELEASEALLEXTENDEDSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RELEASEDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACESEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACETARGET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACETARGETRE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RGBAIMAGESETHEIGHT enum valueQsciScintillaBase
SCI_RGBAIMAGESETSCALE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RGBAIMAGESETWIDTH enum valueQsciScintillaBase
SCI_ROTATESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLTOEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLTOSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHINTARGET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHNEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHPREV enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTIONDUPLICATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTIONISRECTANGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETSBLINK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETSVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELECTIONTYPING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETANCHOR enum valueQsciScintillaBase
SCI_SETAUTOMATICFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETBACKSPACEUNINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETBUFFEREDDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEBACKALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEVISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETPERIOD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCHARSDEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCODEPAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCONTROLCHARSYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCURRENTPOS enum valueQsciScintillaBase
SCI_SETCURSOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETDOCPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGECOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGECOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGEMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEMPTYSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETENDATLASTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEOLMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEXTRAASCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEXTRADESCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFIRSTVISIBLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDLEVEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDMARGINCOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDMARGINHICOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFONTQUALITY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHIGHLIGHTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTSINGLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETIDENTIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDENTATIONGUIDES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDICATORCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDICATORVALUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETKEYSUNICODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETKEYWORDS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLAYOUTCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLEXER enum valueQsciScintillaBase
SCI_SETLEXERLANGUAGE enum valueQsciScintillaBase
SCI_SETLINEINDENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMAINSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINCURSORN enum valueQsciScintillaBase
SCI_SETMARGINLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINMASKN enum valueQsciScintillaBase
SCI_SETMARGINOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINSENSITIVEN enum valueQsciScintillaBase
SCI_SETMARGINTYPEN enum valueQsciScintillaBase
SCI_SETMARGINWIDTHN enum valueQsciScintillaBase
SCI_SETMODEVENTMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSEDOWNCAPTURES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSEDWELLTIME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSESELECTIONRECTANGULARSWITCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMULTIPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMULTIPLESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPASTECONVERTENDINGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPOSITIONCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTCOLOURMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTMAGNIFICATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPUNCTUATIONCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETREADONLY enum valueQsciScintillaBase
SCI_SETRECTANGULARSELECTIONANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONMODIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSAVEPOINT enum valueQsciScintillaBase
SCI_SETSCROLLWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSCROLLWIDTHTRACKING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSEARCHFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTATUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLEBITS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLINGEX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTABINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTABWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTARGETEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTARGETSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTECHNOLOGY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTEXT enum valueQsciScintillaBase
SCI_SETTWOPHASEDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETUNDOCOLLECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETUSETABS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIEWEOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIEWWS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIRTUALSPACEOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVISIBLEPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACECHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACESIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWORDCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPINDENTMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPSTARTINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPVISUALFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPVISUALFLAGSLOCATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETXCARETPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETXOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETYCARETPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETZOOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SHOWLINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STARTRECORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STARTSTYLING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STOPRECORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLECLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCHANGEABLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCHARACTERSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETFONT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETHOTSPOT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETITALIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETSIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETSIZEFRACTIONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETWEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLERESETDEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCHANGEABLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCHARACTERSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETFONT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETHOTSPOT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETITALIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETSIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETSIZEFRACTIONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETWEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SWAPMAINANCHORCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TARGETFROMSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TEXTHEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TEXTWIDTH enum valueQsciScintillaBase
SCI_TOGGLECARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TOGGLEFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_UNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_UPPERCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_USEPOPUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_USERLISTSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMERECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VERTICALCENTRECARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VISIBLEFROMDOCLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDSTARTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WRAPCOUNT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ZOOMIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ZOOMOUT enum value (defined in QsciScintillaBase)QsciScintillaBase
ScintillaBytes typedef (defined in QsciScintillaBase)QsciScintillaBase [protected]
SCK_ADD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_BACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DIVIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_END enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_ESCAPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_HOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_INSERT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_LEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_MENU enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_NEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_PRIOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RETURN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RWIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_SUBTRACT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_TAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_UP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_WIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCLEX_A68K enum valueQsciScintillaBase
SCLEX_ABAQUS enum valueQsciScintillaBase
SCLEX_ADA enum valueQsciScintillaBase
SCLEX_APDL enum valueQsciScintillaBase
SCLEX_ASM enum valueQsciScintillaBase
SCLEX_ASN1 enum valueQsciScintillaBase
SCLEX_ASP enum valueQsciScintillaBase
SCLEX_ASYMPTOTE enum valueQsciScintillaBase
SCLEX_AU3 enum valueQsciScintillaBase
SCLEX_AVE enum valueQsciScintillaBase
SCLEX_AVS enum valueQsciScintillaBase
SCLEX_BAAN enum valueQsciScintillaBase
SCLEX_BASH enum valueQsciScintillaBase
SCLEX_BATCH enum valueQsciScintillaBase
SCLEX_BLITZBASIC enum valueQsciScintillaBase
SCLEX_BULLANT enum valueQsciScintillaBase
SCLEX_CAML enum valueQsciScintillaBase
SCLEX_CLW enum valueQsciScintillaBase
SCLEX_CLWNOCASE enum valueQsciScintillaBase
SCLEX_CMAKE enum valueQsciScintillaBase
SCLEX_COBOL enum valueQsciScintillaBase
SCLEX_COFFEESCRIPT enum valueQsciScintillaBase
SCLEX_CONF enum valueQsciScintillaBase
SCLEX_CONTAINER enum valueQsciScintillaBase
SCLEX_CPP enum valueQsciScintillaBase
SCLEX_CPPNOCASE enum valueQsciScintillaBase
SCLEX_CSOUND enum valueQsciScintillaBase
SCLEX_CSS enum valueQsciScintillaBase
SCLEX_D enum valueQsciScintillaBase
SCLEX_DIFF enum valueQsciScintillaBase
SCLEX_ECL enum valueQsciScintillaBase
SCLEX_EIFFEL enum valueQsciScintillaBase
SCLEX_EIFFELKW enum valueQsciScintillaBase
SCLEX_ERLANG enum valueQsciScintillaBase
SCLEX_ERRORLIST enum valueQsciScintillaBase
SCLEX_ESCRIPT enum valueQsciScintillaBase
SCLEX_F77 enum valueQsciScintillaBase
SCLEX_FLAGSHIP enum valueQsciScintillaBase
SCLEX_FORTH enum valueQsciScintillaBase
SCLEX_FORTRAN enum valueQsciScintillaBase
SCLEX_FREEBASIC enum valueQsciScintillaBase
SCLEX_GAP enum valueQsciScintillaBase
SCLEX_GUI4CLI enum valueQsciScintillaBase
SCLEX_HASKELL enum valueQsciScintillaBase
SCLEX_HTML enum valueQsciScintillaBase
SCLEX_INNOSETUP enum valueQsciScintillaBase
SCLEX_KIX enum valueQsciScintillaBase
SCLEX_KVIRC enum valueQsciScintillaBase
SCLEX_LATEX enum valueQsciScintillaBase
SCLEX_LISP enum valueQsciScintillaBase
SCLEX_LITERATEHASKELL enum valueQsciScintillaBase
SCLEX_LOT enum valueQsciScintillaBase
SCLEX_LOUT enum valueQsciScintillaBase
SCLEX_LUA enum valueQsciScintillaBase
SCLEX_MAGIK enum valueQsciScintillaBase
SCLEX_MAKEFILE enum valueQsciScintillaBase
SCLEX_MARKDOWN enum valueQsciScintillaBase
SCLEX_MATLAB enum valueQsciScintillaBase
SCLEX_METAPOST enum valueQsciScintillaBase
SCLEX_MMIXAL enum valueQsciScintillaBase
SCLEX_MODULA enum valueQsciScintillaBase
SCLEX_MSSQL enum valueQsciScintillaBase
SCLEX_MYSQL enum valueQsciScintillaBase
SCLEX_NIMROD enum valueQsciScintillaBase
SCLEX_NNCRONTAB enum valueQsciScintillaBase
SCLEX_NSIS enum valueQsciScintillaBase
SCLEX_NULL enum valueQsciScintillaBase
SCLEX_OCTAVE enum valueQsciScintillaBase
SCLEX_OPAL enum valueQsciScintillaBase
SCLEX_OSCRIPT enum valueQsciScintillaBase
SCLEX_PASCAL enum valueQsciScintillaBase
SCLEX_PERL enum valueQsciScintillaBase
SCLEX_PHP enum valueQsciScintillaBase
SCLEX_PHPSCRIPT enum valueQsciScintillaBase
SCLEX_PLM enum valueQsciScintillaBase
SCLEX_PO enum valueQsciScintillaBase
SCLEX_POV enum valueQsciScintillaBase
SCLEX_POWERBASIC enum valueQsciScintillaBase
SCLEX_POWERPRO enum valueQsciScintillaBase
SCLEX_POWERSHELL enum valueQsciScintillaBase
SCLEX_PROGRESS enum valueQsciScintillaBase
SCLEX_PROPERTIES enum valueQsciScintillaBase
SCLEX_PS enum valueQsciScintillaBase
SCLEX_PUREBASIC enum valueQsciScintillaBase
SCLEX_PYTHON enum valueQsciScintillaBase
SCLEX_R enum valueQsciScintillaBase
SCLEX_REBOL enum valueQsciScintillaBase
SCLEX_RUBY enum valueQsciScintillaBase
SCLEX_RUST enum valueQsciScintillaBase
SCLEX_SCRIPTOL enum valueQsciScintillaBase
SCLEX_SMALLTALK enum valueQsciScintillaBase
SCLEX_SML enum valueQsciScintillaBase
SCLEX_SORCUS enum valueQsciScintillaBase
SCLEX_SPECMAN enum valueQsciScintillaBase
SCLEX_SPICE enum valueQsciScintillaBase
SCLEX_SQL enum valueQsciScintillaBase
SCLEX_STTXT enum valueQsciScintillaBase
SCLEX_TACL enum valueQsciScintillaBase
SCLEX_TADS3 enum valueQsciScintillaBase
SCLEX_TAL enum valueQsciScintillaBase
SCLEX_TCL enum valueQsciScintillaBase
SCLEX_TCMD enum valueQsciScintillaBase
SCLEX_TEX enum valueQsciScintillaBase
SCLEX_TXT2TAGS enum valueQsciScintillaBase
SCLEX_VB enum valueQsciScintillaBase
SCLEX_VBSCRIPT enum valueQsciScintillaBase
SCLEX_VERILOG enum valueQsciScintillaBase
SCLEX_VHDL enum valueQsciScintillaBase
SCLEX_VISUALPROLOG enum valueQsciScintillaBase
SCLEX_XML enum valueQsciScintillaBase
SCLEX_YAML enum valueQsciScintillaBase
SCMOD_ALT enum valueQsciScintillaBase
SCMOD_CTRL enum valueQsciScintillaBase
SCMOD_META enum valueQsciScintillaBase
SCMOD_NORM enum valueQsciScintillaBase
SCMOD_SHIFT enum valueQsciScintillaBase
SCMOD_SUPER enum valueQsciScintillaBase
SCN_AUTOCCANCELLED()QsciScintillaBase [signal]
SCN_AUTOCCHARDELETED()QsciScintillaBase [signal]
SCN_AUTOCSELECTION(const char *selection, int position)QsciScintillaBase [signal]
SCN_CALLTIPCLICK(int direction)QsciScintillaBase [signal]
SCN_CHARADDED(int charadded)QsciScintillaBase [signal]
SCN_DOUBLECLICK(int position, int line, int modifiers)QsciScintillaBase [signal]
SCN_DWELLEND(int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_DWELLSTART(int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_FOCUSIN()QsciScintillaBase [signal]
SCN_FOCUSOUT()QsciScintillaBase [signal]
SCN_HOTSPOTCLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_HOTSPOTDOUBLECLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_HOTSPOTRELEASECLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_INDICATORCLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_INDICATORRELEASE(int position, int modifiers)QsciScintillaBase [signal]
SCN_MACRORECORD(unsigned int, unsigned long, void *)QsciScintillaBase [signal]
SCN_MARGINCLICK(int position, int modifiers, int margin)QsciScintillaBase [signal]
SCN_MODIFIED(int, int, const char *, int, int, int, int, int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_MODIFYATTEMPTRO()QsciScintillaBase [signal]
SCN_NEEDSHOWN(int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_PAINTED()QsciScintillaBase [signal]
SCN_SAVEPOINTLEFT()QsciScintillaBase [signal]
SCN_SAVEPOINTREACHED()QsciScintillaBase [signal]
SCN_STYLENEEDED(int position)QsciScintillaBase [signal]
SCN_UPDATEUI(int updated)QsciScintillaBase [signal]
SCN_USERLISTSELECTION(const char *, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_ZOOM() (defined in QsciScintillaBase)QsciScintillaBase [signal]
scrollContentsBy(int dx, int dy) (defined in QsciScintillaBase)QsciScintillaBase [protected, virtual]
SCVS_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCVS_RECTANGULARSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCVS_USERACCESSIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_INVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_VISIBLEAFTERINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_VISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
selectAll(bool select=true)QsciScintilla [virtual, slot]
selectedText() const QsciScintilla
selectionChanged()QsciScintilla [signal]
selectionToEol() const QsciScintilla
selectToMatchingBrace()QsciScintilla [virtual, slot]
SendScintilla(unsigned int msg, unsigned long wParam=0, long lParam=0) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, void *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, const char *wParam, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, long wParam) const QsciScintillaBase
SendScintilla(unsigned int msg, int wParam) const QsciScintillaBase
SendScintilla(unsigned int msg, long cpMin, long cpMax, char *lpstrText) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QColor &col) const QsciScintillaBase
SendScintilla(unsigned int msg, const QColor &col) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, QPainter *hdc, const QRect &rc, long cpMin, long cpMax) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QPixmap &lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QImage &lParam) const QsciScintillaBase
SendScintillaPtrResult(unsigned int msg) const QsciScintillaBase
setAnnotationDisplay(AnnotationDisplay display)QsciScintilla
setAutoCompletionCaseSensitivity(bool cs)QsciScintilla [virtual, slot]
setAutoCompletionFillups(const char *fillups)QsciScintilla
setAutoCompletionFillupsEnabled(bool enabled)QsciScintilla
setAutoCompletionReplaceWord(bool replace)QsciScintilla [virtual, slot]
setAutoCompletionShowSingle(bool single)QsciScintilla [virtual, slot]
setAutoCompletionSource(AutoCompletionSource source)QsciScintilla [virtual, slot]
setAutoCompletionThreshold(int thresh)QsciScintilla [virtual, slot]
setAutoCompletionUseSingle(AutoCompletionUseSingle single)QsciScintilla [virtual, slot]
setAutoCompletionWordSeparators(const QStringList &separators)QsciScintilla
setAutoIndent(bool autoindent)QsciScintilla [virtual, slot]
setBackspaceUnindents(bool unindent)QsciScintilla [virtual, slot]
setBraceMatching(BraceMatch bm)QsciScintilla [virtual, slot]
setCallTipsBackgroundColor(const QColor &col)QsciScintilla
setCallTipsForegroundColor(const QColor &col)QsciScintilla
setCallTipsHighlightColor(const QColor &col)QsciScintilla
setCallTipsPosition(CallTipsPosition position)QsciScintilla
setCallTipsStyle(CallTipsStyle style)QsciScintilla
setCallTipsVisible(int nr)QsciScintilla
setCaretForegroundColor(const QColor &col)QsciScintilla [virtual, slot]
setCaretLineBackgroundColor(const QColor &col)QsciScintilla [virtual, slot]
setCaretLineVisible(bool enable)QsciScintilla [virtual, slot]
setCaretWidth(int width)QsciScintilla [virtual, slot]
setColor(const QColor &c)QsciScintilla [virtual, slot]
setContractedFolds(const QList< int > &folds)QsciScintilla
setCursorPosition(int line, int index)QsciScintilla [virtual, slot]
setDocument(const QsciDocument &document)QsciScintilla
setEdgeColor(const QColor &col)QsciScintilla
setEdgeColumn(int colnr)QsciScintilla
setEdgeMode(EdgeMode mode)QsciScintilla
setEolMode(EolMode mode)QsciScintilla [virtual, slot]
setEolVisibility(bool visible)QsciScintilla [virtual, slot]
setExtraAscent(int extra)QsciScintilla
setExtraDescent(int extra)QsciScintilla
setFirstVisibleLine(int linenr)QsciScintilla
setFolding(FoldStyle fold, int margin=2)QsciScintilla [virtual, slot]
setFoldMarginColors(const QColor &fore, const QColor &back)QsciScintilla
setFont(const QFont &f)QsciScintilla
setHotspotBackgroundColor(const QColor &col)QsciScintilla
setHotspotForegroundColor(const QColor &col)QsciScintilla
setHotspotUnderline(bool enable)QsciScintilla
setHotspotWrap(bool enable)QsciScintilla
setIndentation(int line, int indentation)QsciScintilla [virtual, slot]
setIndentationGuides(bool enable)QsciScintilla [virtual, slot]
setIndentationGuidesBackgroundColor(const QColor &col)QsciScintilla [virtual, slot]
setIndentationGuidesForegroundColor(const QColor &col)QsciScintilla [virtual, slot]
setIndentationsUseTabs(bool tabs)QsciScintilla [virtual, slot]
setIndentationWidth(int width)QsciScintilla [virtual, slot]
setIndicatorDrawUnder(bool under, int indicatorNumber=-1)QsciScintilla
setIndicatorForegroundColor(const QColor &col, int indicatorNumber=-1)QsciScintilla
setIndicatorOutlineColor(const QColor &col, int indicatorNumber=-1)QsciScintilla
setLexer(QsciLexer *lexer=0)QsciScintilla [virtual, slot]
setMarginLineNumbers(int margin, bool lnrs)QsciScintilla [virtual, slot]
setMarginMarkerMask(int margin, int mask)QsciScintilla [virtual, slot]
setMarginOptions(int options)QsciScintilla
setMarginsBackgroundColor(const QColor &col)QsciScintilla [virtual, slot]
setMarginSensitivity(int margin, bool sens)QsciScintilla [virtual, slot]
setMarginsFont(const QFont &f)QsciScintilla [virtual, slot]
setMarginsForegroundColor(const QColor &col)QsciScintilla [virtual, slot]
setMarginText(int line, const QString &text, int style)QsciScintilla
setMarginText(int line, const QString &text, const QsciStyle &style)QsciScintilla
setMarginText(int line, const QsciStyledText &text)QsciScintilla
setMarginText(int line, const QList< QsciStyledText > &text)QsciScintilla
setMarginType(int margin, MarginType type)QsciScintilla
setMarginWidth(int margin, int width)QsciScintilla [virtual, slot]
setMarginWidth(int margin, const QString &s)QsciScintilla [virtual, slot]
setMarkerBackgroundColor(const QColor &col, int markerNumber=-1)QsciScintilla
setMarkerForegroundColor(const QColor &col, int markerNumber=-1)QsciScintilla
setMatchedBraceBackgroundColor(const QColor &col)QsciScintilla
setMatchedBraceForegroundColor(const QColor &col)QsciScintilla
setMatchedBraceIndicator(int indicatorNumber)QsciScintilla
setModified(bool m)QsciScintilla [virtual, slot]
setOverwriteMode(bool overwrite)QsciScintilla
setPaper(const QColor &c)QsciScintilla [virtual, slot]
setReadOnly(bool ro)QsciScintilla [virtual, slot]
setScrollBars() (defined in QsciScintillaBase)QsciScintillaBase [protected]
setSelection(int lineFrom, int indexFrom, int lineTo, int indexTo)QsciScintilla [virtual, slot]
setSelectionBackgroundColor(const QColor &col)QsciScintilla [virtual, slot]
setSelectionForegroundColor(const QColor &col)QsciScintilla [virtual, slot]
setSelectionToEol(bool filled)QsciScintilla
setTabIndents(bool indent)QsciScintilla [virtual, slot]
setTabWidth(int width)QsciScintilla [virtual, slot]
setText(const QString &text)QsciScintilla [virtual, slot]
setUnmatchedBraceBackgroundColor(const QColor &col)QsciScintilla
setUnmatchedBraceForegroundColor(const QColor &col)QsciScintilla
setUnmatchedBraceIndicator(int indicatorNumber)QsciScintilla
setUtf8(bool cp)QsciScintilla [virtual, slot]
setWhitespaceBackgroundColor(const QColor &col)QsciScintilla
setWhitespaceForegroundColor(const QColor &col)QsciScintilla
setWhitespaceSize(int size)QsciScintilla
setWhitespaceVisibility(WhitespaceVisibility mode)QsciScintilla [virtual, slot]
setWrapIndentMode(WrapIndentMode mode)QsciScintilla
setWrapMode(WrapMode mode)QsciScintilla [virtual, slot]
setWrapVisualFlags(WrapVisualFlag endFlag, WrapVisualFlag startFlag=WrapFlagNone, int indent=0)QsciScintilla
showUserList(int id, const QStringList &list)QsciScintilla
SloppyBraceMatch enum valueQsciScintilla
SmallRectangle enum valueQsciScintilla
SquiggleIndicator enum valueQsciScintilla
SquiggleLowIndicator enum valueQsciScintilla
SquigglePixmapIndicator enum valueQsciScintilla
standardCommands() const QsciScintilla [inline]
StraightBoxIndicator enum valueQsciScintilla
StrictBraceMatch enum valueQsciScintilla
StrikeIndicator enum valueQsciScintilla
STYLE_BRACEBAD enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_BRACELIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_CALLTIP enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_CONTROLCHAR enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_INDENTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_LASTPREDEFINED enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_LINENUMBER enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_MAX enum value (defined in QsciScintillaBase)QsciScintillaBase
SymbolMargin enum valueQsciScintilla
SymbolMarginDefaultBackgroundColor enum valueQsciScintilla
SymbolMarginDefaultForegroundColor enum valueQsciScintilla
tabIndents() const QsciScintilla
tabWidth() const QsciScintilla
text() const QsciScintilla
text(int line) const QsciScintilla
textAsBytes(const QString &text) const (defined in QsciScintillaBase)QsciScintillaBase [protected]
textChanged()QsciScintilla [signal]
textHeight(int linenr) const QsciScintilla
TextMargin enum valueQsciScintilla
TextMarginRightJustified enum valueQsciScintilla
ThickCompositionIndicator enum valueQsciScintilla
ThreeDots enum valueQsciScintilla
ThreeRightArrows enum valueQsciScintilla
toMimeData(const QByteArray &text, bool rectangular) const QsciScintillaBase [protected, virtual]
TTIndicator enum valueQsciScintilla
Underline enum valueQsciScintilla
undo()QsciScintilla [virtual, slot]
UNDO_MAY_COALESCE enum value (defined in QsciScintillaBase)QsciScintillaBase
unindent(int line)QsciScintilla [virtual, slot]
userListActivated(int id, const QString &string)QsciScintilla [signal]
VerticalLine enum valueQsciScintilla
VISIBLE_SLOP enum value (defined in QsciScintillaBase)QsciScintillaBase
VISIBLE_STRICT enum value (defined in QsciScintillaBase)QsciScintillaBase
whitespaceSize() const QsciScintilla
whitespaceVisibility() const QsciScintilla
WhitespaceVisibility enum nameQsciScintilla
wordAtLineIndex(int line, int index) const QsciScintilla
wordAtPoint(const QPoint &point) const QsciScintilla
wordCharacters() const QsciScintilla
WrapCharacter enum valueQsciScintilla
WrapFlagByBorder enum valueQsciScintilla
WrapFlagByText enum valueQsciScintilla
WrapFlagInMargin enum valueQsciScintilla
WrapFlagNone enum valueQsciScintilla
WrapIndentFixed enum valueQsciScintilla
WrapIndentIndented enum valueQsciScintilla
WrapIndentMode enum nameQsciScintilla
wrapIndentMode() const QsciScintilla
WrapIndentSame enum valueQsciScintilla
wrapMode() const QsciScintilla
WrapMode enum nameQsciScintilla
WrapNone enum valueQsciScintilla
WrapVisualFlag enum nameQsciScintilla
WrapWord enum valueQsciScintilla
write(QIODevice *io) const QsciScintilla
WsInvisible enum valueQsciScintilla
WsVisible enum valueQsciScintilla
WsVisibleAfterIndent enum valueQsciScintilla
zoomIn(int range)QsciScintilla [virtual, slot]
zoomIn()QsciScintilla [virtual, slot]
zoomOut(int range)QsciScintilla [virtual, slot]
zoomOut()QsciScintilla [virtual, slot]
zoomTo(int size)QsciScintilla [virtual, slot]
~QsciScintilla()QsciScintilla [virtual]
~QsciScintillaBase()QsciScintillaBase [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciScintilla.html b/doc/html-Qt4Qt5/classQsciScintilla.html new file mode 100644 index 0000000..125f623 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciScintilla.html @@ -0,0 +1,6250 @@ + + + + +QScintilla: QsciScintilla Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciScintilla Class Reference
+
+
+ +

#include <qsciscintilla.h>

+ +

Inherits QsciScintillaBase.

+ +

List of all members.

+

+Classes

+
    +
  • struct FindState +
+

+Public Types

+ +

+Public Slots

+ +

+Signals

+ +

+Public Member Functions

+ +

+Protected Member Functions

+ +

Detailed Description

+

The QsciScintilla class implements a higher level, more Qt-like, API to the Scintilla editor widget.

+

QsciScintilla implements methods, signals and slots similar to those found in other Qt editor classes. It also provides a higher level interface to features specific to Scintilla such as syntax styling, call tips, auto-indenting and auto-completion than that provided by QsciScintillaBase.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+ +

This enum defines the different auto-indentation styles.

+
Enumerator:
+ + + +
AiMaintain  +

A line is automatically indented to match the previous line.

+
AiOpening  +

If the language supported by the current lexer has a specific start of block character (e.g. { in C++), then a line that begins with that character is indented as well as the lines that make up the block. It may be logically ored with AiClosing.

+
AiClosing  +

If the language supported by the current lexer has a specific end of block character (e.g. } in C++), then a line that begins with that character is indented as well as the lines that make up the block. It may be logically ored with AiOpening.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different annotation display styles.

+
Enumerator:
+ + + +
AnnotationHidden  +

Annotations are not displayed.

+
AnnotationStandard  +

Annotations are drawn left justified with no adornment.

+
AnnotationBoxed  +

Annotations are surrounded by a box.

+
+
+
+ +
+
+ +
+ +
+

This enum defines the behavior if an auto-completion list contains a single entry.

+
Enumerator:
+ + + +
AcusNever  +

The single entry is not used automatically and the auto-completion list is displayed.

+
AcusExplicit  +

The single entry is used automatically when auto-completion is explicitly requested (using autoCompleteFromAPIs() or autoCompleteFromDocument()) but not when auto-completion is triggered as the user types.

+
AcusAlways  +

The single entry is used automatically and the auto-completion list is not displayed.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different sources for auto-completion lists.

+
Enumerator:
+ + + + +
AcsNone  +

No sources are used, ie. automatic auto-completion is disabled.

+
AcsAll  +

The source is all available sources.

+
AcsDocument  +

The source is the current document.

+
AcsAPIs  +

The source is any installed APIs.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::BraceMatch
+
+
+

This enum defines the different brace matching modes. The character pairs {}, [] and () are treated as braces. The Python lexer will also match a : with the end of the corresponding indented block.

+
Enumerator:
+ + + +
NoBraceMatch  +

Brace matching is disabled.

+
StrictBraceMatch  +

Brace matching is enabled for a brace immediately before the current position.

+
SloppyBraceMatch  +

Brace matching is enabled for a brace immediately before or after the current position.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different call tip positions.

+
Enumerator:
+ + +
CallTipsBelowText  +

Call tips are placed below the text.

+
CallTipsAboveText  +

Call tips are placed above the text.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different call tip styles.

+
Enumerator:
+ + + + +
CallTipsNone  +

Call tips are disabled.

+
CallTipsNoContext  +

Call tips are displayed without a context. A context is any scope (e.g. a C++ namespace or a Python module) prior to the function name.

+
CallTipsNoAutoCompletionContext  +

Call tips are displayed with a context only if the user hasn't already implicitly identified the context using autocompletion. Note that this style may not always be able to align the call tip with the text being entered.

+
CallTipsContext  +

Call tips are displayed with a context. Note that this style may not always be able to align the call tip with the text being entered.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::EdgeMode
+
+
+ +

This enum defines the different edge modes for long lines.

+
Enumerator:
+ + + +
EdgeNone  +

Long lines are not marked.

+
EdgeLine  +

A vertical line is drawn at the column set by setEdgeColumn(). This is recommended for monospace fonts.

+
EdgeBackground  +

The background color of characters after the column limit is changed to the color set by setEdgeColor(). This is recommended for proportional fonts.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::EolMode
+
+
+ +

This enum defines the different end-of-line modes.

+
Enumerator:
+ + + +
EolWindows  +

A carriage return/line feed as used on Windows systems.

+
EolUnix  +

A line feed as used on Unix systems, including OS/X.

+
EolMac  +

A carriage return as used on Mac systems prior to OS/X.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::FoldStyle
+
+
+ +

This enum defines the different styles for the folding margin.

+
Enumerator:
+ + + + + + +
NoFoldStyle  +

Folding is disabled.

+
PlainFoldStyle  +

Plain folding style using plus and minus symbols.

+
CircledFoldStyle  +

Circled folding style using circled plus and minus symbols.

+
BoxedFoldStyle  +

Boxed folding style using boxed plus and minus symbols.

+
CircledTreeFoldStyle  +

Circled tree style using a flattened tree with circled plus and minus symbols and rounded corners.

+
BoxedTreeFoldStyle  +

Boxed tree style using a flattened tree with boxed plus and minus symbols and right-angled corners.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different indicator styles.

+
Enumerator:
+ + + + + + + + + + + + + + + +
PlainIndicator  +

A single straight underline.

+
SquiggleIndicator  +

A squiggly underline that requires 3 pixels of descender space.

+
TTIndicator  +

A line of small T shapes.

+
DiagonalIndicator  +

Diagonal hatching.

+
StrikeIndicator  +

Strike out.

+
HiddenIndicator  +

An indicator with no visual appearence.

+
BoxIndicator  +

A rectangle around the text.

+
RoundBoxIndicator  +

A rectangle with rounded corners around the text with the interior usually more transparent than the border.

+
StraightBoxIndicator  +

A rectangle around the text with the interior usually more transparent than the border.

+
DashesIndicator  +

A dashed underline.

+
DotsIndicator  +

A dotted underline.

+
SquiggleLowIndicator  +

A squiggly underline that requires 2 pixels of descender space and so will fit under smaller fonts.

+
DotBoxIndicator  +

A dotted rectangle around the text with the interior usually more transparent than the border.

+
SquigglePixmapIndicator  +

A version of SquiggleIndicator that uses a pixmap. This is quicker but may be of lower quality.

+
ThickCompositionIndicator  +

A thick underline typically used during Asian language input composition.

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+ +

This enum defines the different margin options.

+
Enumerator:
+ + +
MoNone  +

Reset all margin options.

+
MoSublineSelect  +

If this is set then only the first sub-line of a wrapped line will be selected when clicking on a margin.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::MarginType
+
+
+ +

This enum defines the different margin types.

+
Enumerator:
+ + + + + + +
SymbolMargin  +

The margin contains symbols, including those used for folding.

+
SymbolMarginDefaultForegroundColor  +

The margin contains symbols and uses the default foreground color as its background color.

+
SymbolMarginDefaultBackgroundColor  +

The margin contains symbols and uses the default background color as its background color.

+
NumberMargin  +

The margin contains line numbers.

+
TextMargin  +

The margin contains styled text.

+
TextMarginRightJustified  +

The margin contains right justified styled text.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::MarkerSymbol
+
+
+ +

This enum defines the different pre-defined marker symbols.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Circle  +

A circle.

+
Rectangle  +

A rectangle.

+
RightTriangle  +

A triangle pointing to the right.

+
SmallRectangle  +

A smaller rectangle.

+
RightArrow  +

An arrow pointing to the right.

+
Invisible  +

An invisible marker that allows code to track the movement of lines.

+
DownTriangle  +

A triangle pointing down.

+
Minus  +

A drawn minus sign.

+
Plus  +

A drawn plus sign.

+
VerticalLine  +

A vertical line drawn in the background colour.

+
BottomLeftCorner  +

A bottom left corner drawn in the background colour.

+
LeftSideSplitter  +

A vertical line with a centre right horizontal line drawn in the background colour.

+
BoxedPlus  +

A drawn plus sign in a box.

+
BoxedPlusConnected  +

A drawn plus sign in a connected box.

+
BoxedMinus  +

A drawn minus sign in a box.

+
BoxedMinusConnected  +

A drawn minus sign in a connected box.

+
RoundedBottomLeftCorner  +

A rounded bottom left corner drawn in the background colour.

+
LeftSideRoundedSplitter  +

A vertical line with a centre right curved line drawn in the background colour.

+
CircledPlus  +

A drawn plus sign in a circle.

+
CircledPlusConnected  +

A drawn plus sign in a connected box.

+
CircledMinus  +

A drawn minus sign in a circle.

+
CircledMinusConnected  +

A drawn minus sign in a connected circle.

+
Background  +

No symbol is drawn but the line is drawn with the same background color as the marker's.

+
ThreeDots  +

Three drawn dots.

+
ThreeRightArrows  +

Three drawn arrows pointing right.

+
FullRectangle  +

A full rectangle (ie. the margin background) using the marker's background color.

+
LeftRectangle  +

A left rectangle (ie. the left part of the margin background) using the marker's background color.

+
Underline  +

No symbol is drawn but the line is drawn underlined using the marker's background color.

+
+
+
+ +
+
+ +
+ +
+

This enum defines the different whitespace visibility modes. When whitespace is visible spaces are displayed as small centred dots and tabs are displayed as light arrows pointing to the right.

+
Enumerator:
+ + + +
WsInvisible  +

Whitespace is invisible.

+
WsVisible  +

Whitespace is always visible.

+
WsVisibleAfterIndent  +

Whitespace is visible after the whitespace used for indentation.

+
+
+
+ +
+
+ +
+
+ + + + +
enum QsciScintilla::WrapMode
+
+
+ +

This enum defines the different line wrap modes.

+
Enumerator:
+ + + +
WrapNone  +

Lines are not wrapped.

+
WrapWord  +

Lines are wrapped at word boundaries.

+
WrapCharacter  +

Lines are wrapped at character boundaries.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different line wrap visual flags.

+
Enumerator:
+ + + + +
WrapFlagNone  +

No wrap flag is displayed.

+
WrapFlagByText  +

A wrap flag is displayed by the text.

+
WrapFlagByBorder  +

A wrap flag is displayed by the border.

+
WrapFlagInMargin  +

A wrap flag is displayed in the line number margin.

+
+
+
+ +
+
+ +
+ +
+ +

This enum defines the different line wrap indentation modes.

+
Enumerator:
+ + + +
WrapIndentFixed  +

Wrapped sub-lines are indented by the amount set by setWrapVisualFlags().

+
WrapIndentSame  +

Wrapped sub-lines are indented by the same amount as the first sub-line.

+
WrapIndentIndented  +

Wrapped sub-lines are indented by the same amount as the first sub-line plus one more level of indentation.

+
+
+
+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
virtual QStringList QsciScintilla::apiContext (int pos,
int & context_start,
int & last_word_start 
) [virtual]
+
+
+

Returns the API context, which is a list of words, before the position pos in the document. The context can be used by auto-completion and call tips to help to identify which API call the user is referring to. In the default implementation the current lexer determines what characters make up a word, and what characters determine the boundaries of words (ie. the start characters). If there is no current lexer then the context will consist of a single word. On return context_start will contain the position in the document of the start of the context and last_word_start will contain the position in the document of the start of the last word of the context.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::annotate (int line,
const QString & text,
int style 
)
+
+
+

Annotate the line line with the text text using the style number style.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::annotate (int line,
const QString & text,
const QsciStylestyle 
)
+
+
+

Annotate the line line with the text text using the style style.

+ +
+
+ +
+
+ + + + + + + +
AnnotationDisplay QsciScintilla::annotationDisplay () const
+
+
+

Returns the display style for annotations.

+
See also:
setAnnotationDisplay()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::clearAnnotations (int line = -1)
+
+
+

The annotations on line line are removed. If line is negative then all annotations are removed.

+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::autoCompletionCaseSensitivity () const
+
+
+

Returns true if auto-completion lists are case sensitive.

+
See also:
setAutoCompletionCaseSensitivity()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::autoCompletionFillupsEnabled () const
+
+
+

Returns true if auto-completion fill-up characters are enabled.

+
See also:
setAutoCompletionFillups(), setAutoCompletionFillupsEnabled()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::autoCompletionReplaceWord () const
+
+
+

Returns true if the rest of the word to the right of the current cursor is removed when an item from an auto-completion list is selected.

+
See also:
setAutoCompletionReplaceWord()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::autoCompletionShowSingle () const
+
+
+

Returns true if the only item in an auto-completion list with a single entry is automatically used and the list not displayed. Note that this is deprecated and autoCompletionUseSingle() should be used instead.

+
See also:
setAutoCompletionShowSingle()
+ +
+
+ +
+
+ + + + + + + +
AutoCompletionSource QsciScintilla::autoCompletionSource () const [inline]
+
+
+

Returns the current source for the auto-completion list when it is being displayed automatically as the user types.

+
See also:
setAutoCompletionSource()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::autoCompletionThreshold () const [inline]
+
+
+

Returns the current threshold for the automatic display of the auto-completion list as the user types.

+
See also:
setAutoCompletionThreshold()
+ +
+
+ +
+
+ + + + + + + +
AutoCompletionUseSingle QsciScintilla::autoCompletionUseSingle () const
+
+
+

Returns the current behavior when an auto-completion list contains a single entry.

+
See also:
setAutoCompletionUseSingle()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::autoIndent () const [inline]
+
+
+

Returns true if auto-indentation is enabled.

+
See also:
setAutoIndent()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::backspaceUnindents () const
+
+
+

Returns true if the backspace key unindents a line instead of deleting a character. The default is false.

+
See also:
setBackspaceUnindents(), tabIndents(), setTabIndents()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::beginUndoAction ()
+
+
+

Mark the beginning of a sequence of actions that can be undone by a single call to undo().

+
See also:
endUndoAction(), undo()
+ +
+
+ +
+
+ + + + + + + +
BraceMatch QsciScintilla::braceMatching () const [inline]
+
+
+

Returns the brace matching mode.

+
See also:
setBraceMatching()
+ +
+
+ +
+
+ + + + + + + +
CallTipsPosition QsciScintilla::callTipsPosition () const [inline]
+
+
+

Returns the current call tip position.

+
See also:
setCallTipsPosition()
+ +
+
+ +
+
+ + + + + + + +
CallTipsStyle QsciScintilla::callTipsStyle () const [inline]
+
+
+

Returns the current call tip style.

+
See also:
setCallTipsStyle()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::callTipsVisible () const [inline]
+
+
+

Returns the maximum number of call tips that are displayed.

+
See also:
setCallTipsVisible()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::caseSensitive () const
+
+
+

Returns true if the current language lexer is case sensitive. If there is no current lexer then true is returned.

+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::clearFolds ()
+
+
+

Clear all current folds, i.e. ensure that all lines are displayed unfolded.

+
See also:
setFolding()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::clearIndicatorRange (int lineFrom,
int indexFrom,
int lineTo,
int indexTo,
int indicatorNumber 
)
+
+
+

Clears the range of text with indicator indicatorNumber starting at position indexFrom in line lineFrom and finishing at position indexTo in line lineTo.

+
See also:
fillIndicatorRange()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::clearRegisteredImages ()
+
+
+

Clear all registered images.

+
See also:
registerImage()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciScintilla::color () const
+
+
+

Returns the widget's text (ie. foreground) colour.

+
See also:
setColor()
+ +
+
+ +
+
+ + + + + + + +
QList<int> QsciScintilla::contractedFolds () const
+
+
+

Returns a list of the line numbers that have contracted folds. This is typically used to save the fold state of a document.

+
See also:
setContractedFolds()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::convertEols (EolMode mode)
+
+
+

All the lines of the text have their end-of-lines converted to mode mode.

+
See also:
eolMode(), setEolMode()
+ +
+
+ +
+
+ + + + + + + +
QMenu* QsciScintilla::createStandardContextMenu ()
+
+
+

Create the standard context menu which is shown when the user clicks with the right mouse button. It is called from contextMenuEvent(). The menu's ownership is transferred to the caller.

+ +
+
+ +
+
+ + + + + + + +
QsciDocument QsciScintilla::document () const [inline]
+
+
+

Returns the attached document.

+
See also:
setDocument()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::endUndoAction ()
+
+
+

Mark the end of a sequence of actions that can be undone by a single call to undo().

+
See also:
beginUndoAction(), undo()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciScintilla::edgeColor () const
+
+
+

Returns the color of the marker used to show that a line has exceeded the length set by setEdgeColumn().

+
See also:
setEdgeColor(),
+
+setEdgeColumn
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::edgeColumn () const
+
+
+

Returns the number of the column after which lines are considered to be long.

+
See also:
setEdgeColumn()
+ +
+
+ +
+
+ + + + + + + +
EdgeMode QsciScintilla::edgeMode () const
+
+
+

Returns the edge mode which determines how long lines are marked.

+
See also:
setEdgeMode()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setFont (const QFont & f)
+
+
+

Set the default font. This has no effect if a language lexer has been set.

+ +
+
+ +
+
+ + + + + + + +
EolMode QsciScintilla::eolMode () const
+
+
+

Returns the end-of-line mode.

+
See also:
setEolMode()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::eolVisibility () const
+
+
+

Returns the visibility of end-of-lines.

+
See also:
setEolVisibility()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::extraAscent () const
+
+
+

Returns the extra space added to the height of a line above the baseline of the text.

+
See also:
setExtraAscent(), extraDescent()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::extraDescent () const
+
+
+

Returns the extra space added to the height of a line below the baseline of the text.

+
See also:
setExtraDescent(), extraAscent()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::fillIndicatorRange (int lineFrom,
int indexFrom,
int lineTo,
int indexTo,
int indicatorNumber 
)
+
+
+

Fills the range of text with indicator indicatorNumber starting at position indexFrom in line lineFrom and finishing at position indexTo in line lineTo.

+
See also:
clearIndicatorRange()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual bool QsciScintilla::findFirst (const QString & expr,
bool re,
bool cs,
bool wo,
bool wrap,
bool forward = true,
int line = -1,
int index = -1,
bool show = true,
bool posix = false 
) [virtual]
+
+
+

Find the first occurrence of the string expr and return true if expr was found, otherwise returns false. If expr is found it becomes the current selection.

+

If re is true then expr is interpreted as a regular expression rather than a simple string.

+

If cs is true then the search is case sensitive.

+

If wo is true then the search looks for whole word matches only, otherwise it searches for any matching text.

+

If wrap is true then the search wraps around the end of the text.

+

If forward is true (the default) then the search is forward from the starting position to the end of the text, otherwise it is backwards to the beginning of the text.

+

If either line or index are negative (the default) then the search begins from the current cursor position. Otherwise the search begins at position index of line line.

+

If show is true (the default) then any text found is made visible (ie. it is unfolded).

+

If posix is true then a regular expression is treated in a more POSIX compatible manner by interpreting bare ( and ) as tagged sections rather than \( and \).

+
See also:
findFirstInSelection(), findNext(), replace()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual bool QsciScintilla::findFirstInSelection (const QString & expr,
bool re,
bool cs,
bool wo,
bool forward = true,
bool show = true,
bool posix = false 
) [virtual]
+
+
+

Find the first occurrence of the string expr in the current selection and return true if expr was found, otherwise returns false. If expr is found it becomes the current selection. The original selection is restored when a subsequent call to findNext() returns false.

+

If re is true then expr is interpreted as a regular expression rather than a simple string.

+

If cs is true then the search is case sensitive.

+

If wo is true then the search looks for whole word matches only, otherwise it searches for any matching text.

+

If forward is true (the default) then the search is forward from the start to the end of the selection, otherwise it is backwards from the end to the start of the selection.

+

If show is true (the default) then any text found is made visible (ie. it is unfolded).

+

If posix is true then a regular expression is treated in a more POSIX compatible manner by interpreting bare ( and ) as tagged sections rather than \( and \).

+
See also:
findFirstInSelection(), findNext(), replace()
+ +
+
+ +
+
+ + + + + + + +
virtual bool QsciScintilla::findNext () [virtual]
+
+
+

Find the next occurence of the string found using findFirst() or findFirstInSelection().

+
See also:
findFirst(), findFirstInSelection(), replace()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::firstVisibleLine () const
+
+
+

Returns the number of the first visible line.

+
See also:
setFirstVisibleLine()
+ +
+
+ +
+
+ + + + + + + +
FoldStyle QsciScintilla::folding () const [inline]
+
+
+

Returns the current folding style.

+
See also:
setFolding()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::getCursorPosition (int * line,
int * index 
) const
+
+
+

Sets *line and *index to the line and index of the cursor.

+
See also:
setCursorPosition()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::getSelection (int * lineFrom,
int * indexFrom,
int * lineTo,
int * indexTo 
) const
+
+
+

If there is a selection, *lineFrom is set to the line number in which the selection begins and *lineTo is set to the line number in which the selection ends. (They could be the same.) *indexFrom is set to the index at which the selection begins within *lineFrom, and *indexTo is set to the index at which the selection ends within *lineTo. If there is no selection, *lineFrom, *indexFrom, *lineTo and *indexTo are all set to -1.

+
See also:
setSelection()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::hasSelectedText () const [inline]
+
+
+

Returns true if some text is selected.

+
See also:
selectedText()
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::indentation (int line) const
+
+
+

Returns the number of characters that line line is indented by.

+
See also:
setIndentation()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::indentationGuides () const
+
+
+

Returns true if the display of indentation guides is enabled.

+
See also:
setIndentationGuides()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::indentationsUseTabs () const
+
+
+

Returns true if indentations are created using tabs and spaces, rather than just spaces. The default is true.

+
See also:
setIndentationsUseTabs()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::indentationWidth () const
+
+
+

Returns the indentation width in characters. The default is 0 which means that the value returned by tabWidth() is actually used.

+
See also:
setIndentationWidth(), tabWidth()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::indicatorDefine (IndicatorStyle style,
int indicatorNumber = -1 
)
+
+
+

Define a type of indicator using the style style with the indicator number indicatorNumber. If indicatorNumber is -1 then the indicator number is automatically allocated. The indicator number is returned or -1 if too many types of indicator have been defined.

+

Indicators are used to display additional information over the top of styling. They can be used to show, for example, syntax errors, deprecated names and bad indentation by drawing lines under text or boxes around text.

+

There may be up to 32 types of indicator defined at a time. The first 8 are normally used by lexers. By default indicator number 0 is a dark green SquiggleIndicator, 1 is a blue TTIndicator, and 2 is a red PlainIndicator.

+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::indicatorDrawUnder (int indicatorNumber) const
+
+
+

Returns true if the indicator indicatorNumber is drawn under the text (i.e. in the background). The default is false.

+
See also:
setIndicatorDrawUnder()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isListActive () const
+
+
+

Returns true if an auto-completion or user defined list is currently active.

+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isModified () const
+
+
+

Returns true if the text has been modified.

+
See also:
setModified(), modificationChanged()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isReadOnly () const
+
+
+

Returns true if the text edit is read-only.

+
See also:
setReadOnly()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isRedoAvailable () const
+
+
+

Returns true if there is something that can be redone.

+
See also:
redo()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isUndoAvailable () const
+
+
+

Returns true if there is something that can be undone.

+
See also:
undo()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::isUtf8 () const
+
+
+

Returns true if text is interpreted as being UTF8 encoded. The default is to interpret the text as Latin1 encoded.

+
See also:
setUtf8()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::isWordCharacter (char ch) const
+
+
+

Returns true if character ch is a valid word character.

+
See also:
wordCharacters()
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::lineAt (const QPoint & point) const
+
+
+

Returns the line which is at point pixel coordinates or -1 if there is no line at that point.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::lineIndexFromPosition (int position,
int * line,
int * index 
) const
+
+
+

QScintilla uses the combination of a line number and a character index from the start of that line to specify the position of a character within the text. The underlying Scintilla instead uses a byte index from the start of the text. This will convert the position byte index to the *line line number and *index character index.

+
See also:
positionFromLineIndex()
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::lineLength (int line) const
+
+
+

Returns the length of line line int bytes or -1 if there is no such line. In order to get the length in characters use text(line).length().

+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::length () const
+
+
+

Returns the length of the text edit's text in bytes. In order to get the length in characters use text().length().

+ +
+
+ +
+
+ + + + + + + +
QsciLexer* QsciScintilla::lexer () const
+
+
+

Returns the current language lexer used to style text. If it is 0 then syntax styling is disabled.

+
See also:
setLexer()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::marginLineNumbers (int margin) const
+
+
+

Returns true if line numbers are enabled for margin margin.

+
See also:
setMarginLineNumbers(), marginType(), SCI_GETMARGINTYPEN
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::marginMarkerMask (int margin) const
+
+
+

Returns the marker mask of margin margin.

+
See also:
setMarginMask(), QsciMarker, SCI_GETMARGINMASKN
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::marginOptions () const
+
+
+

Returns the margin options. The default is MoNone.

+
See also:
setMarginOptions(), MoNone, MoSublineSelect.
+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::marginSensitivity (int margin) const
+
+
+

Returns true if margin margin is sensitive to mouse clicks.

+
See also:
setMarginSensitivity(), marginClicked(), SCI_GETMARGINTYPEN
+ +
+
+ +
+
+ + + + + + + + +
MarginType QsciScintilla::marginType (int margin) const
+
+
+

Returns the type of margin margin.

+
See also:
setMarginType(), SCI_GETMARGINTYPEN
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::marginWidth (int margin) const
+
+
+

Returns the width in pixels of margin margin.

+
See also:
setMarginWidth(), SCI_GETMARGINWIDTHN
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerDefine (MarkerSymbol sym,
int markerNumber = -1 
)
+
+
+

Define a type of marker using the symbol sym with the marker number markerNumber. If markerNumber is -1 then the marker number is automatically allocated. The marker number is returned or -1 if too many types of marker have been defined.

+

Markers are small geometric symbols and characters used, for example, to indicate the current line or, in debuggers, to indicate breakpoints. If a margin has a width of 0 then its markers are not drawn, but their background colours affect the background colour of the corresponding line of text.

+

There may be up to 32 types of marker defined at a time and each line of text has a set of marker instances associated with it. Markers are drawn according to their numerical identifier. Markers try to move with their text by tracking where the start of their line moves to. For example, when a line is deleted its markers are added to previous line's markers.

+

Each marker type is identified by a marker number. Each instance of a marker is identified by a marker handle.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerDefine (char ch,
int markerNumber = -1 
)
+
+
+

Define a marker using the character ch with the marker number markerNumber. If markerNumber is -1 then the marker number is automatically allocated. The marker number is returned or -1 if too many markers have been defined.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerDefine (const QPixmap & pm,
int markerNumber = -1 
)
+
+
+

Define a marker using a copy of the pixmap pm with the marker number markerNumber. If markerNumber is -1 then the marker number is automatically allocated. The marker number is returned or -1 if too many markers have been defined.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerDefine (const QImage & im,
int markerNumber = -1 
)
+
+
+

Define a marker using a copy of the image im with the marker number markerNumber. If markerNumber is -1 then the marker number is automatically allocated. The marker number is returned or -1 if too many markers have been defined.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerAdd (int linenr,
int markerNumber 
)
+
+
+

Add an instance of marker number markerNumber to line number linenr. A handle for the marker is returned which can be used to track the marker's position, or -1 if the markerNumber was invalid.

+
See also:
markerDelete(), markerDeleteAll(), markerDeleteHandle()
+ +
+
+ +
+
+ + + + + + + + +
unsigned QsciScintilla::markersAtLine (int linenr) const
+
+
+

Returns the 32 bit mask of marker numbers at line number linenr.

+
See also:
markerAdd()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::markerDelete (int linenr,
int markerNumber = -1 
)
+
+
+

Delete all markers with the marker number markerNumber in the line linenr. If markerNumber is -1 then delete all markers from line linenr.

+
See also:
markerAdd(), markerDeleteAll(), markerDeleteHandle()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::markerDeleteAll (int markerNumber = -1)
+
+
+

Delete the all markers with the marker number markerNumber. If markerNumber is -1 then delete all markers.

+
See also:
markerAdd(), markerDelete(), markerDeleteHandle()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::markerDeleteHandle (int mhandle)
+
+
+

Delete the the marker instance with the marker handle mhandle.

+
See also:
markerAdd(), markerDelete(), markerDeleteAll()
+ +
+
+ +
+
+ + + + + + + + +
int QsciScintilla::markerLine (int mhandle) const
+
+
+

Return the line number that contains the marker instance with the marker handle mhandle.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerFindNext (int linenr,
unsigned mask 
) const
+
+
+

Return the number of the next line to contain at least one marker from a 32 bit mask of markers. linenr is the line number to start the search from. mask is the mask of markers to search for.

+
See also:
markerFindPrevious()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::markerFindPrevious (int linenr,
unsigned mask 
) const
+
+
+

Return the number of the previous line to contain at least one marker from a 32 bit mask of markers. linenr is the line number to start the search from. mask is the mask of markers to search for.

+
See also:
markerFindNext()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::overwriteMode () const
+
+
+

Returns true if text entered by the user will overwrite existing text.

+
See also:
setOverwriteMode()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciScintilla::paper () const
+
+
+

Returns the widget's paper (ie. background) colour.

+
See also:
setPaper()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
int QsciScintilla::positionFromLineIndex (int line,
int index 
) const
+
+
+

QScintilla uses the combination of a line number and a character index from the start of that line to specify the position of a character within the text. The underlying Scintilla instead uses a byte index from the start of the text. This will return the byte index corresponding to the line line number and index character index.

+
See also:
lineIndexFromPosition()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::read (QIODevice * io)
+
+
+

Reads the current document from the io device and returns true if there was no error.

+
See also:
write()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::recolor (int start = 0,
int end = -1 
) [virtual]
+
+
+

Recolours the document between the start and end positions. start defaults to the start of the document and end defaults to the end of the document.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::registerImage (int id,
const QPixmap & pm 
)
+
+
+

Register an image pm with ID id. Registered images can be displayed in auto-completion lists.

+
See also:
clearRegisteredImages(), QsciLexer::apiLoad()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::registerImage (int id,
const QImage & im 
)
+
+
+

Register an image im with ID id. Registered images can be displayed in auto-completion lists.

+
See also:
clearRegisteredImages(), QsciLexer::apiLoad()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::replace (const QString & replaceStr) [virtual]
+
+
+

Replace the current selection, set by a previous call to findFirst(), findFirstInSelection() or findNext(), with replaceStr.

+
See also:
findFirst(), findFirstInSelection(), findNext()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::resetFoldMarginColors ()
+
+
+

Reset the fold margin colours to their defaults.

+
See also:
setFoldMarginColors()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::resetHotspotBackgroundColor ()
+
+
+

Resets the background colour of an active hotspot area to the default.

+
See also:
setHotspotBackgroundColor(), resetHotspotForegroundColor()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::resetHotspotForegroundColor ()
+
+
+

Resets the foreground colour of an active hotspot area to the default.

+
See also:
setHotspotForegroundColor(), resetHotspotBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setFoldMarginColors (const QColor & fore,
const QColor & back 
)
+
+
+

The fold margin may be drawn as a one pixel sized checkerboard pattern of two colours, fore and back.

+
See also:
resetFoldMarginColors()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setAnnotationDisplay (AnnotationDisplay display)
+
+
+

Set the display style for annotations. The default is AnnotationStandard.

+
See also:
annotationDisplay()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setAutoCompletionFillupsEnabled (bool enabled)
+
+
+

Enable the use of fill-up characters, either those explicitly set or those set by a lexer. By default, fill-up characters are disabled.

+
See also:
autoCompletionFillupsEnabled(), setAutoCompletionFillups()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setAutoCompletionFillups (const char * fillups)
+
+
+

A fill-up character is one that, when entered while an auto-completion list is being displayed, causes the currently selected item from the list to be added to the text followed by the fill-up character. fillups is the set of fill-up characters. If a language lexer has been set then this is ignored and the lexer defines the fill-up characters. The default is that no fill-up characters are set.

+
See also:
autoCompletionFillupsEnabled(), setAutoCompletionFillupsEnabled()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setAutoCompletionWordSeparators (const QStringList & separators)
+
+
+

A word separator is a sequence of characters that, when entered, causes the auto-completion list to be displayed. If a language lexer has been set then this is ignored and the lexer defines the word separators. The default is that no word separators are set.

+
See also:
setAutoCompletionThreshold()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsBackgroundColor (const QColor & col)
+
+
+

Set the background colour of call tips to col. The default is white.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsForegroundColor (const QColor & col)
+
+
+

Set the foreground colour of call tips to col. The default is mid-gray.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsHighlightColor (const QColor & col)
+
+
+

Set the highlighted colour of call tip text to col. The default is dark blue.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsPosition (CallTipsPosition position)
+
+
+

Set the current call tip position. The default is CallTipsBelowText.

+
See also:
callTipsPosition()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsStyle (CallTipsStyle style)
+
+
+

Set the current call tip style. The default is CallTipsNoContext.

+
See also:
callTipsStyle()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setCallTipsVisible (int nr)
+
+
+

Set the maximum number of call tips that are displayed to nr. If the maximum number is 0 then all applicable call tips are displayed. If the maximum number is -1 then one call tip will be displayed with up and down arrows that allow the use to scroll through the full list. The default is -1.

+
See also:
callTipsVisible()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setContractedFolds (const QList< int > & folds)
+
+
+

Sets each line in the folds list of line numbers to be a contracted fold. This is typically used to restore the fold state of a document.

+
See also:
contractedFolds()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setDocument (const QsciDocumentdocument)
+
+
+

Attach the document document, replacing the currently attached document.

+
See also:
document()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setEdgeColor (const QColor & col)
+
+
+

Set the color of the marker used to show that a line has exceeded the length set by setEdgeColumn().

+
See also:
edgeColor(),
+
+setEdgeColumn
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setEdgeColumn (int colnr)
+
+
+

Set the number of the column after which lines are considered to be long.

+
See also:
edgeColumn()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setEdgeMode (EdgeMode mode)
+
+
+

Set the edge mode which determines how long lines are marked.

+
See also:
edgeMode()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setFirstVisibleLine (int linenr)
+
+
+

Set the number of the first visible line to linenr.

+
See also:
firstVisibleLine()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setIndicatorDrawUnder (bool under,
int indicatorNumber = -1 
)
+
+
+

Enables or disables, according to under, if the indicator indicatorNumber is drawn under or over the text (i.e. in the background or foreground). If indicatorNumber is -1 then the state of all indicators is set.

+
See also:
indicatorDrawUnder()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setIndicatorForegroundColor (const QColor & col,
int indicatorNumber = -1 
)
+
+
+

Set the foreground colour of indicator indicatorNumber to col. If indicatorNumber is -1 then the colour of all indicators is set.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setIndicatorOutlineColor (const QColor & col,
int indicatorNumber = -1 
)
+
+
+

Set the outline colour of indicator indicatorNumber to col. If indicatorNumber is -1 then the colour of all indicators is set. At the moment only the alpha value of the colour has any affect.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setMarginOptions (int options)
+
+
+

Set the margin options to options.

+
See also:
marginOptions(), MoNone, MoSublineSelect.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarginText (int line,
const QString & text,
int style 
)
+
+
+

Set the margin text of line line with the text text using the style number style.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarginText (int line,
const QString & text,
const QsciStylestyle 
)
+
+
+

Set the margin text of line line with the text text using the style style.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarginText (int line,
const QList< QsciStyledText > & text 
)
+
+
+

Set the margin text of line line with the list of styled text text.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarginType (int margin,
MarginType type 
)
+
+
+

Set the type of margin margin to type type.

+
See also:
marginType(), SCI_SETMARGINTYPEN
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::clearMarginText (int line = -1)
+
+
+

The margin text on line line is removed. If line is negative then all margin text is removed.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarkerBackgroundColor (const QColor & col,
int markerNumber = -1 
)
+
+
+

Set the background colour, including the alpha component, of marker markerNumber to col. If markerNumber is -1 then the colour of all markers is set. The default is white.

+
See also:
setMarkerForegroundColor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::setMarkerForegroundColor (const QColor & col,
int markerNumber = -1 
)
+
+
+

Set the foreground colour of marker markerNumber to col. If markerNumber is -1 then the colour of all markers is set. The default is black.

+
See also:
setMarkerBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setMatchedBraceBackgroundColor (const QColor & col)
+
+
+

Set the background colour used to display matched braces to col. It is ignored if an indicator is being used. The default is white.

+
See also:
setMatchedBraceForegroundColor(), setMatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setMatchedBraceForegroundColor (const QColor & col)
+
+
+

Set the foreground colour used to display matched braces to col. It is ignored if an indicator is being used. The default is red.

+
See also:
setMatchedBraceBackgroundColor(), setMatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setMatchedBraceIndicator (int indicatorNumber)
+
+
+

Set the indicator used to display matched braces to indicatorNumber. The default is not to use an indicator.

+
See also:
resetMatchedBraceIndicator(), setMatchedBraceBackgroundColor()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::resetMatchedBraceIndicator ()
+
+
+

Stop using an indicator to display matched braces.

+
See also:
setMatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setUnmatchedBraceBackgroundColor (const QColor & col)
+
+
+

Set the background colour used to display unmatched braces to col. It is ignored if an indicator is being used. The default is white.

+
See also:
setUnmatchedBraceForegroundColor(), setUnmatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setUnmatchedBraceForegroundColor (const QColor & col)
+
+
+

Set the foreground colour used to display unmatched braces to col. It is ignored if an indicator is being used. The default is blue.

+
See also:
setUnmatchedBraceBackgroundColor(), setUnmatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setUnmatchedBraceIndicator (int indicatorNumber)
+
+
+

Set the indicator used to display unmatched braces to indicatorNumber. The default is not to use an indicator.

+
See also:
resetUnmatchedBraceIndicator(), setUnmatchedBraceBackgroundColor()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::resetUnmatchedBraceIndicator ()
+
+
+

Stop using an indicator to display unmatched braces.

+
See also:
setUnmatchedBraceIndicator()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::setWrapVisualFlags (WrapVisualFlag endFlag,
WrapVisualFlag startFlag = WrapFlagNone,
int indent = 0 
)
+
+
+

Set the visual flags displayed when a line is wrapped. endFlag determines if and where the flag at the end of a line is displayed. startFlag determines if and where the flag at the start of a line is displayed. indent is the number of characters a wrapped line is indented by. By default no visual flags are displayed.

+ +
+
+ +
+
+ + + + + + + +
QString QsciScintilla::selectedText () const
+
+
+

Returns the selected text or an empty string if there is no currently selected text.

+
See also:
hasSelectedText()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::selectionToEol () const
+
+
+

Returns whether or not the selection is drawn up to the right hand border.

+
See also:
setSelectionToEol()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setHotspotBackgroundColor (const QColor & col)
+
+
+

Sets the background colour of an active hotspot area to col.

+
See also:
resetHotspotBackgroundColor(), setHotspotForegroundColor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setHotspotForegroundColor (const QColor & col)
+
+
+

Sets the foreground colour of an active hotspot area to col.

+
See also:
resetHotspotForegroundColor(), setHotspotBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setHotspotUnderline (bool enable)
+
+
+

Enables or disables, according to enable, the underlining of an active hotspot area. The default is false.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setHotspotWrap (bool enable)
+
+
+

Enables or disables, according to enable, the wrapping of a hotspot area to following lines. The default is true.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setSelectionToEol (bool filled)
+
+
+

Sets whether or not the selection is drawn up to the right hand border. filled is set if the selection is drawn to the border.

+
See also:
selectionToEol()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setExtraAscent (int extra)
+
+
+

Sets the extra space added to the height of a line above the baseline of the text to extra.

+
See also:
extraAscent(), setExtraDescent()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setExtraDescent (int extra)
+
+
+

Sets the extra space added to the height of a line below the baseline of the text to extra.

+
See also:
extraDescent(), setExtraAscent()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setOverwriteMode (bool overwrite)
+
+
+

Text entered by the user will overwrite existing text if overwrite is true.

+
See also:
overwriteMode()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setWhitespaceBackgroundColor (const QColor & col)
+
+
+

Sets the background colour of visible whitespace to col. If col is an invalid color (the default) then the color specified by the current lexer is used.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setWhitespaceForegroundColor (const QColor & col)
+
+
+

Sets the foreground colour of visible whitespace to col. If col is an invalid color (the default) then the color specified by the current lexer is used.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setWhitespaceSize (int size)
+
+
+

Sets the size of the dots used to represent visible whitespace.

+
See also:
whitespaceSize()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::setWrapIndentMode (WrapIndentMode mode)
+
+
+

Sets the line wrap indentation mode to mode. The default is WrapIndentFixed.

+
See also:
wrapIndentMode()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::showUserList (int id,
const QStringList & list 
)
+
+
+

Displays a user defined list which can be interacted with like an auto-completion list. id is an identifier for the list which is passed as an argument to the userListActivated() signal and must be at least 1. list is the text with which the list is populated.

+
See also:
cancelList(), isListActive(), userListActivated()
+ +
+
+ +
+
+ + + + + + + +
bool QsciScintilla::tabIndents () const
+
+
+

Returns true if the tab key indents a line instead of inserting a tab character. The default is true.

+
See also:
setTabIndents(), backspaceUnindents(), setBackspaceUnindents()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::tabWidth () const
+
+
+

Returns the tab width in characters. The default is 8.

+
See also:
setTabWidth()
+ +
+
+ +
+
+ + + + + + + +
QString QsciScintilla::text () const
+
+
+

Returns the text of the current document.

+
See also:
setText()
+ +
+
+ +
+
+ + + + + + + + +
QString QsciScintilla::text (int line) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns the text of line line.

+
See also:
setText()
+ +
+
+ +
+
+ + + + + + + +
int QsciScintilla::whitespaceSize () const
+
+
+

Returns the size of the dots used to represent visible whitespace.

+
See also:
setWhitespaceSize()
+ +
+
+ +
+
+ + + + + + + +
WhitespaceVisibility QsciScintilla::whitespaceVisibility () const
+
+
+

Returns the visibility of whitespace.

+
See also:
setWhitespaceVisibility()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
QString QsciScintilla::wordAtLineIndex (int line,
int index 
) const
+
+
+

Returns the word at the line line number and index character index.

+ +
+
+ +
+
+ + + + + + + +
const char* QsciScintilla::wordCharacters () const
+
+
+

Returns the set of valid word character as defined by the current language lexer. If there is no current lexer then the set contains an an underscore, numbers and all upper and lower case alphabetic characters.

+
See also:
isWordCharacter()
+ +
+
+ +
+
+ + + + + + + +
WrapMode QsciScintilla::wrapMode () const
+
+
+

Returns the line wrap mode.

+
See also:
setWrapMode()
+ +
+
+ +
+
+ + + + + + + +
WrapIndentMode QsciScintilla::wrapIndentMode () const
+
+
+

Returns the line wrap indentation mode.

+
See also:
setWrapIndentMode()
+ +
+
+ +
+
+ + + + + + + + +
bool QsciScintilla::write (QIODevice * io) const
+
+
+

Writes the current document to the io device and returns true if there was no error.

+
See also:
read()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::append (const QString & text) [virtual, slot]
+
+
+

Appends the text text to the end of the text edit. Note that the undo/redo history is cleared by this function.

+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::autoCompleteFromAll () [virtual, slot]
+
+
+

Display an auto-completion list based on any installed APIs, the current contents of the document and the characters immediately to the left of the cursor.

+
See also:
autoCompleteFromAPIs(), autoCompleteFromDocument()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::autoCompleteFromAPIs () [virtual, slot]
+
+
+

Display an auto-completion list based on any installed APIs and the characters immediately to the left of the cursor.

+
See also:
autoCompleteFromAll(), autoCompleteFromDocument(), setAutoCompletionAPIs()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::autoCompleteFromDocument () [virtual, slot]
+
+
+

Display an auto-completion list based on the current contents of the document and the characters immediately to the left of the cursor.

+
See also:
autoCompleteFromAll(), autoCompleteFromAPIs()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::callTip () [virtual, slot]
+
+
+

Display a call tip based on the the characters immediately to the left of the cursor.

+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::copy () [virtual, slot]
+
+
+

Copies any selected text to the clipboard.

+
See also:
copyAvailable(), cut(), paste()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::cut () [virtual, slot]
+
+
+

Copies any selected text to the clipboard and then deletes the text.

+
See also:
copy(), paste()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::foldAll (bool children = false) [virtual, slot]
+
+
+

If any lines are currently folded then they are all unfolded. Otherwise all lines are folded. This has the same effect as clicking in the fold margin with the shift and control keys pressed. If children is not set (the default) then only the top level fold points are affected, otherwise the state of all fold points are changed.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::foldLine (int line) [virtual, slot]
+
+
+

If the line line is folded then it is unfolded. Otherwise it is folded. This has the same effect as clicking in the fold margin.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::indent (int line) [virtual, slot]
+
+
+

Increases the indentation of line line by an indentation width.

+
See also:
unindent()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::insertAt (const QString & text,
int line,
int index 
) [virtual, slot]
+
+
+

Insert the text text in the line line at the position index.

+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::moveToMatchingBrace () [virtual, slot]
+
+
+

If the cursor is either side of a brace character then move it to the position of the corresponding brace.

+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::paste () [virtual, slot]
+
+
+

Pastes any text from the clipboard into the text edit at the current cursor position.

+
See also:
copy(), cut()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::redo () [virtual, slot]
+
+
+

Redo the last change or sequence of changes.

+
See also:
isRedoAvailable()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::removeSelectedText () [virtual, slot]
+
+
+

Removes any selected text.

+
See also:
replaceSelectedText()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::replaceSelectedText (const QString & text) [virtual, slot]
+
+
+

Replaces any selected text with text.

+
See also:
removeSelectedText()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::resetSelectionBackgroundColor () [virtual, slot]
+
+
+

Resets the background colour of selected text to the default.

+
See also:
setSelectionBackgroundColor(), resetSelectionForegroundColor()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::resetSelectionForegroundColor () [virtual, slot]
+
+
+

Resets the foreground colour of selected text to the default.

+
See also:
setSelectionForegroundColor(), resetSelectionBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::selectAll (bool select = true) [virtual, slot]
+
+
+

If select is true (the default) then all the text is selected. If select is false then any currently selected text is deselected.

+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::selectToMatchingBrace () [virtual, slot]
+
+
+

If the cursor is either side of a brace character then move it to the position of the corresponding brace and select the text between the braces.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionCaseSensitivity (bool cs) [virtual, slot]
+
+
+

If cs is true then auto-completion lists are case sensitive. The default is true. Note that setting a lexer may change the case sensitivity.

+
See also:
autoCompletionCaseSensitivity()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionReplaceWord (bool replace) [virtual, slot]
+
+
+

If replace is true then when an item from an auto-completion list is selected, the rest of the word to the right of the current cursor is removed. The default is false.

+
See also:
autoCompletionReplaceWord()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionShowSingle (bool single) [virtual, slot]
+
+
+

If single is true then when there is only a single entry in an auto-completion list it is automatically used and the list is not displayed. This only has an effect when auto-completion is explicitly requested (using autoCompleteFromAPIs() and autoCompleteFromDocument()) and has no effect when auto-completion is triggered as the user types. The default is false. Note that this is deprecated and setAutoCompletionUseSingle() should be used instead.

+
See also:
autoCompletionShowSingle()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionSource (AutoCompletionSource source) [virtual, slot]
+
+
+

Sets the source for the auto-completion list when it is being displayed automatically as the user types to source. The default is AcsNone, ie. it is disabled.

+
See also:
autoCompletionSource()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionThreshold (int thresh) [virtual, slot]
+
+
+

Sets the threshold for the automatic display of the auto-completion list as the user types to thresh. The threshold is the number of characters that the user must type before the list is displayed. If the threshold is less than or equal to 0 then the list is disabled. The default is -1.

+
See also:
autoCompletionThreshold(), setAutoCompletionWordSeparators()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoCompletionUseSingle (AutoCompletionUseSingle single) [virtual, slot]
+
+
+

Sets the behavior of the auto-completion list when it has a single entry. The default is AcusNever.

+
See also:
autoCompletionUseSingle()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setAutoIndent (bool autoindent) [virtual, slot]
+
+
+

If autoindent is true then auto-indentation is enabled. The default is false.

+
See also:
autoIndent()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setBraceMatching (BraceMatch bm) [virtual, slot]
+
+
+

Sets the brace matching mode to bm. The default is NoBraceMatching.

+
See also:
braceMatching()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setBackspaceUnindents (bool unindent) [virtual, slot]
+
+
+

If deindent is true then the backspace key will unindent a line rather then delete a character.

+
See also:
backspaceUnindents(), tabIndents(), setTabIndents()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setCaretLineBackgroundColor (const QColor & col) [virtual, slot]
+
+
+

Sets the background colour, including the alpha component, of the line containing the caret to col.

+
See also:
setCaretLineVisible()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setCaretLineVisible (bool enable) [virtual, slot]
+
+
+

Enables or disables, according to enable, the background color of the line containing the caret.

+
See also:
setCaretLineBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setCaretWidth (int width) [virtual, slot]
+
+
+

Sets the width of the caret to width pixels. A width of 0 makes the caret invisible.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setColor (const QColor & c) [virtual, slot]
+
+
+

The widget's text (ie. foreground) colour is set to c. This has no effect if a language lexer has been set.

+
See also:
color()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setCursorPosition (int line,
int index 
) [virtual, slot]
+
+
+

Sets the cursor to the line line at the position index.

+
See also:
getCursorPosition()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setEolMode (EolMode mode) [virtual, slot]
+
+
+

Sets the end-of-line mode to mode. The default is the platform's natural mode.

+
See also:
eolMode()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setEolVisibility (bool visible) [virtual, slot]
+
+
+

If visible is true then end-of-lines are made visible. The default is that they are invisible.

+
See also:
eolVisibility()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setFolding (FoldStyle fold,
int margin = 2 
) [virtual, slot]
+
+
+

Sets the folding style for margin margin to fold. The default style is NoFoldStyle (ie. folding is disabled) and the default margin is 2.

+
See also:
folding()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setIndentation (int line,
int indentation 
) [virtual, slot]
+
+
+

Sets the indentation of line line to indentation characters.

+
See also:
indentation()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setIndentationGuides (bool enable) [virtual, slot]
+
+
+

Enables or disables, according to enable, this display of indentation guides.

+
See also:
indentationGuides()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setIndentationGuidesBackgroundColor (const QColor & col) [virtual, slot]
+
+
+

Set the background colour of indentation guides to col.

+
See also:
setIndentationGuidesForegroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setIndentationGuidesForegroundColor (const QColor & col) [virtual, slot]
+
+
+

Set the foreground colour of indentation guides to col.

+
See also:
setIndentationGuidesBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setIndentationsUseTabs (bool tabs) [virtual, slot]
+
+
+

If tabs is true then indentations are created using tabs and spaces, rather than just spaces.

+
See also:
indentationsUseTabs()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setIndentationWidth (int width) [virtual, slot]
+
+
+

Sets the indentation width to width characters. If width is 0 then the value returned by tabWidth() is used.

+
See also:
indentationWidth(), tabWidth()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setLexer (QsciLexerlexer = 0) [virtual, slot]
+
+
+

Sets the specific language lexer used to style text to lex. If lex is 0 then syntax styling is disabled.

+
See also:
lexer()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setMarginsBackgroundColor (const QColor & col) [virtual, slot]
+
+
+

Set the background colour of all margins to col. The default is a gray.

+
See also:
setMarginsForegroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setMarginsForegroundColor (const QColor & col) [virtual, slot]
+
+
+

Set the foreground colour of all margins to col. The default is black.

+
See also:
setMarginsBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setMarginLineNumbers (int margin,
bool lnrs 
) [virtual, slot]
+
+
+

Enables or disables, according to lnrs, the display of line numbers in margin margin.

+
See also:
marginLineNumbers(), setMarginType(), SCI_SETMARGINTYPEN
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setMarginMarkerMask (int margin,
int mask 
) [virtual, slot]
+
+
+

Sets the marker mask of margin margin to mask. Only those markers whose bit is set in the mask are displayed in the margin.

+
See also:
marginMarkerMask(), QsciMarker, SCI_SETMARGINMASKN
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setMarginSensitivity (int margin,
bool sens 
) [virtual, slot]
+
+
+

Enables or disables, according to sens, the sensitivity of margin margin to mouse clicks. If the user clicks in a sensitive margin the marginClicked() signal is emitted.

+
See also:
marginSensitivity(), marginClicked(), SCI_SETMARGINSENSITIVEN
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setMarginWidth (int margin,
int width 
) [virtual, slot]
+
+
+

Sets the width of margin margin to width pixels. If the width of a margin is 0 then it is not displayed.

+
See also:
marginWidth(), SCI_SETMARGINWIDTHN
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setMarginWidth (int margin,
const QString & s 
) [virtual, slot]
+
+
+

Sets the width of margin margin so that it is wide enough to display s in the current margin font.

+
See also:
marginWidth(), SCI_SETMARGINWIDTHN
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setModified (bool m) [virtual, slot]
+
+
+

Sets the modified state of the text edit to m. Note that it is only possible to clear the modified state (where m is false). Attempts to set the modified state (where m is true) are ignored.

+
See also:
isModified(), modificationChanged()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setPaper (const QColor & c) [virtual, slot]
+
+
+

The widget's paper (ie. background) colour is set to c. This has no effect if a language lexer has been set.

+
See also:
paper()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setReadOnly (bool ro) [virtual, slot]
+
+
+

Sets the read-only state of the text edit to ro.

+
See also:
isReadOnly()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual void QsciScintilla::setSelection (int lineFrom,
int indexFrom,
int lineTo,
int indexTo 
) [virtual, slot]
+
+
+

Sets the selection which starts at position indexFrom in line lineFrom and ends at position indexTo in line lineTo. The cursor is moved to position indexTo in lineTo.

+
See also:
getSelection()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setSelectionBackgroundColor (const QColor & col) [virtual, slot]
+
+
+

Sets the background colour, including the alpha component, of selected text to col.

+
See also:
resetSelectionBackgroundColor(), setSelectionForegroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setSelectionForegroundColor (const QColor & col) [virtual, slot]
+
+
+

Sets the foreground colour of selected text to col.

+
See also:
resetSelectionForegroundColor(), setSelectionBackgroundColor()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setTabIndents (bool indent) [virtual, slot]
+
+
+

If indent is true then the tab key will indent a line rather than insert a tab character.

+
See also:
tabIndents(), backspaceUnindents(), setBackspaceUnindents()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setTabWidth (int width) [virtual, slot]
+
+
+

Sets the tab width to width characters.

+
See also:
tabWidth()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setText (const QString & text) [virtual, slot]
+
+
+

Replaces all of the current text with text. Note that the undo/redo history is cleared by this function.

+
See also:
text()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setUtf8 (bool cp) [virtual, slot]
+
+
+

Sets the current text encoding. If cp is true then UTF8 is used, otherwise Latin1 is used.

+
See also:
isUtf8()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setWhitespaceVisibility (WhitespaceVisibility mode) [virtual, slot]
+
+
+

Sets the visibility of whitespace to mode mode. The default is that whitespace is invisible.

+
See also:
whitespaceVisibility()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::setWrapMode (WrapMode mode) [virtual, slot]
+
+
+

Sets the line wrap mode to mode. The default is that lines are not wrapped.

+
See also:
wrapMode()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::undo () [virtual, slot]
+
+
+

Undo the last change or sequence of changes.

+

Scintilla has multiple level undo and redo. It will continue to record undoable actions until memory runs out. Sequences of typing or deleting are compressed into single actions to make it easier to undo and redo at a sensible level of detail. Sequences of actions can be combined into actions that are undone as a unit. These sequences occur between calls to beginUndoAction() and endUndoAction(). These sequences can be nested and only the top level sequences are undone as units.

+
See also:
beginUndoAction(), endUndoAction(), isUndoAvailable()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::unindent (int line) [virtual, slot]
+
+
+

Decreases the indentation of line line by an indentation width.

+
See also:
indent()
+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::zoomIn (int range) [virtual, slot]
+
+
+

Zooms in on the text by by making the base font size range points larger and recalculating all font sizes.

+
See also:
zoomOut(), zoomTo()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::zoomIn () [virtual, slot]
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Zooms in on the text by by making the base font size one point larger and recalculating all font sizes.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::zoomOut (int range) [virtual, slot]
+
+
+

Zooms out on the text by by making the base font size range points smaller and recalculating all font sizes.

+
See also:
zoomIn(), zoomTo()
+ +
+
+ +
+
+ + + + + + + +
virtual void QsciScintilla::zoomOut () [virtual, slot]
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Zooms out on the text by by making the base font size one point larger and recalculating all font sizes.

+ +
+
+ +
+
+ + + + + + + + +
virtual void QsciScintilla::zoomTo (int size) [virtual, slot]
+
+
+

Zooms the text by making the base font size size points and recalculating all font sizes.

+
See also:
zoomIn(), zoomOut()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::cursorPositionChanged (int line,
int index 
) [signal]
+
+
+

This signal is emitted whenever the cursor position changes. line contains the line number and index contains the character index within the line.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::copyAvailable (bool yes) [signal]
+
+
+

This signal is emitted whenever text is selected or de-selected. yes is true if text has been selected and false if text has been deselected. If yes is true then copy() can be used to copy the selection to the clipboard. If yes is false then copy() does nothing.

+
See also:
copy(), selectionChanged()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::indicatorClicked (int line,
int index,
Qt::KeyboardModifiers state 
) [signal]
+
+
+

This signal is emitted whenever the user clicks on an indicator. line is the number of the line where the user clicked. index is the character index within the line. state is the state of the modifier keys (Qt::ShiftModifier, Qt::ControlModifier, Qt::AltModifer and Qt::MetaModifier) when the user clicked.

+
See also:
indicatorReleased()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::indicatorReleased (int line,
int index,
Qt::KeyboardModifiers state 
) [signal]
+
+
+

This signal is emitted whenever the user releases the mouse on an indicator. line is the number of the line where the user clicked. index is the character index within the line. state is the state of the modifier keys (Qt::ShiftModifier, Qt::ControlModifier, Qt::AltModifer and Qt::MetaModifier) when the user released the mouse.

+
See also:
indicatorClicked()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintilla::marginClicked (int margin,
int line,
Qt::KeyboardModifiers state 
) [signal]
+
+
+

This signal is emitted whenever the user clicks on a sensitive margin. margin is the margin. line is the number of the line where the user clicked. state is the state of the modifier keys (Qt::ShiftModifier, Qt::ControlModifier, Qt::AltModifer and Qt::MetaModifier) when the user clicked.

+
See also:
marginSensitivity(), setMarginSensitivity()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::modificationAttempted () [signal]
+
+
+

This signal is emitted whenever the user attempts to modify read-only text.

+
See also:
isReadOnly(), setReadOnly()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintilla::modificationChanged (bool m) [signal]
+
+
+

This signal is emitted whenever the modification state of the text changes. m is true if the text has been modified.

+
See also:
isModified(), setModified()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintilla::selectionChanged () [signal]
+
+
+

This signal is emitted whenever the selection changes.

+
See also:
copyAvailable()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintilla::userListActivated (int id,
const QString & string 
) [signal]
+
+
+

This signal is emitted when an item in a user defined list is activated (selected). id is the list identifier. string is the text of the item.

+
See also:
showUserList()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciScintillaBase-members.html b/doc/html-Qt4Qt5/classQsciScintillaBase-members.html new file mode 100644 index 0000000..9f05f3e --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciScintillaBase-members.html @@ -0,0 +1,1156 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciScintillaBase Member List
+
+
+This is the complete list of members for QsciScintillaBase, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ANNOTATION_BOXED enum value (defined in QsciScintillaBase)QsciScintillaBase
ANNOTATION_HIDDEN enum value (defined in QsciScintillaBase)QsciScintillaBase
ANNOTATION_STANDARD enum value (defined in QsciScintillaBase)QsciScintillaBase
bytesAsText(const char *bytes) const (defined in QsciScintillaBase)QsciScintillaBase [protected]
canInsertFromMimeData(const QMimeData *source) const QsciScintillaBase [protected, virtual]
CARET_EVEN enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_JUMPS enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_SLOP enum value (defined in QsciScintillaBase)QsciScintillaBase
CARET_STRICT enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_BLOCK enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_INVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
CARETSTYLE_LINE enum value (defined in QsciScintillaBase)QsciScintillaBase
commandKey(int qt_key, int &modifiers) (defined in QsciScintillaBase)QsciScintillaBase [static]
contextMenuEvent(QContextMenuEvent *e)QsciScintillaBase [protected, virtual]
dragEnterEvent(QDragEnterEvent *e)QsciScintillaBase [protected, virtual]
dragLeaveEvent(QDragLeaveEvent *e)QsciScintillaBase [protected, virtual]
dragMoveEvent(QDragMoveEvent *e)QsciScintillaBase [protected, virtual]
dropEvent(QDropEvent *e)QsciScintillaBase [protected, virtual]
EDGE_BACKGROUND enum value (defined in QsciScintillaBase)QsciScintillaBase
EDGE_LINE enum value (defined in QsciScintillaBase)QsciScintillaBase
EDGE_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
focusInEvent(QFocusEvent *e)QsciScintillaBase [protected, virtual]
focusNextPrevChild(bool next)QsciScintillaBase [protected, virtual]
focusOutEvent(QFocusEvent *e)QsciScintillaBase [protected, virtual]
fromMimeData(const QMimeData *source, bool &rectangular) const QsciScintillaBase [protected, virtual]
INDIC0_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC1_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC2_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_BOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_COMPOSITIONTHICK enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_CONTAINER enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DASH enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DIAGONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DOTBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_DOTS enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_HIDDEN enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_MAX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_PLAIN enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_ROUNDBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLELOW enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_SQUIGGLEPIXMAP enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_STRAIGHTBOX enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_STRIKE enum value (defined in QsciScintillaBase)QsciScintillaBase
INDIC_TT enum value (defined in QsciScintillaBase)QsciScintillaBase
INDICS_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
inputMethodEvent(QInputMethodEvent *event)QsciScintillaBase [protected, virtual]
inputMethodQuery(Qt::InputMethodQuery query) const (defined in QsciScintillaBase)QsciScintillaBase [protected, virtual]
keyPressEvent(QKeyEvent *e)QsciScintillaBase [protected, virtual]
mouseDoubleClickEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mouseMoveEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mousePressEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
mouseReleaseEvent(QMouseEvent *e)QsciScintillaBase [protected, virtual]
paintEvent(QPaintEvent *e)QsciScintillaBase [protected, virtual]
pool()QsciScintillaBase [static]
QsciScintillaBase(QWidget *parent=0)QsciScintillaBase [explicit]
QSCN_SELCHANGED(bool yes)QsciScintillaBase [signal]
resizeEvent(QResizeEvent *e)QsciScintillaBase [protected, virtual]
SC_ALPHA_NOALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ALPHA_OPAQUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ALPHA_TRANSPARENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_CHANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_CLICK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_AUTOMATICFOLD_SHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_CARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_DOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CACHE_PAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_OFF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_ON enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CARETSTICKY_WHITESPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_LOWER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_MIXED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASE_UPPER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_8859_15 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_ANSI enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_ARABIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_BALTIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_CHINESEBIG5 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_EASTEUROPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_GB2312 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_GREEK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_HANGUL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_HEBREW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_JOHAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_MAC enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_OEM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_RUSSIAN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_SHIFTJIS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_SYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_THAI enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_TURKISH enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CHARSET_VIETNAMESE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CP_DBCS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CP_UTF8 enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORARROW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORNORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORREVERSEARROW enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_CURSORWAIT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_ANTIALIASED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_LCD_OPTIMIZED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_MASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EFF_QUALITY_NON_ANTIALIASED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_CR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_CRLF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_EOL_LF enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_CONTRACT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_EXPAND enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDACTION_TOGGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LEVELNUMBERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEAFTER_CONTRACTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEAFTER_EXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEBEFORE_CONTRACTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDFLAG_LINEBEFORE_EXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELBASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELHEADERFLAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELNUMBERMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FOLDLEVELWHITEFLAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_FONT_SIZE_MULTIPLIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_IV_LOOKBOTH enum valueQsciScintillaBase
SC_IV_LOOKFORWARD enum valueQsciScintillaBase
SC_IV_NONE enum valueQsciScintillaBase
SC_IV_REAL enum valueQsciScintillaBase
SC_LASTSTEPINUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARGIN_BACK enum valueQsciScintillaBase
SC_MARGIN_FORE enum valueQsciScintillaBase
SC_MARGIN_NUMBER enum valueQsciScintillaBase
SC_MARGIN_RTEXT enum valueQsciScintillaBase
SC_MARGIN_SYMBOL enum valueQsciScintillaBase
SC_MARGIN_TEXT enum valueQsciScintillaBase
SC_MARGINOPTION_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARGINOPTION_SUBLINESELECT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARK_ARROW enum valueQsciScintillaBase
SC_MARK_ARROWDOWN enum valueQsciScintillaBase
SC_MARK_ARROWS enum valueQsciScintillaBase
SC_MARK_AVAILABLE enum valueQsciScintillaBase
SC_MARK_BACKGROUND enum valueQsciScintillaBase
SC_MARK_BOXMINUS enum valueQsciScintillaBase
SC_MARK_BOXMINUSCONNECTED enum valueQsciScintillaBase
SC_MARK_BOXPLUS enum valueQsciScintillaBase
SC_MARK_BOXPLUSCONNECTED enum valueQsciScintillaBase
SC_MARK_CHARACTER enum valueQsciScintillaBase
SC_MARK_CIRCLE enum valueQsciScintillaBase
SC_MARK_CIRCLEMINUS enum valueQsciScintillaBase
SC_MARK_CIRCLEMINUSCONNECTED enum valueQsciScintillaBase
SC_MARK_CIRCLEPLUS enum valueQsciScintillaBase
SC_MARK_CIRCLEPLUSCONNECTED enum valueQsciScintillaBase
SC_MARK_DOTDOTDOT enum valueQsciScintillaBase
SC_MARK_EMPTY enum valueQsciScintillaBase
SC_MARK_FULLRECT enum valueQsciScintillaBase
SC_MARK_LCORNER enum valueQsciScintillaBase
SC_MARK_LCORNERCURVE enum valueQsciScintillaBase
SC_MARK_LEFTRECT enum valueQsciScintillaBase
SC_MARK_MINUS enum valueQsciScintillaBase
SC_MARK_PIXMAP enum valueQsciScintillaBase
SC_MARK_PLUS enum valueQsciScintillaBase
SC_MARK_RGBAIMAGE enum valueQsciScintillaBase
SC_MARK_ROUNDRECT enum valueQsciScintillaBase
SC_MARK_SHORTARROW enum valueQsciScintillaBase
SC_MARK_SMALLRECT enum valueQsciScintillaBase
SC_MARK_TCORNER enum valueQsciScintillaBase
SC_MARK_TCORNERCURVE enum valueQsciScintillaBase
SC_MARK_UNDERLINE enum valueQsciScintillaBase
SC_MARK_VLINE enum valueQsciScintillaBase
SC_MARKNUM_FOLDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEREND enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERMIDTAIL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEROPEN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDEROPENMID enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERSUB enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MARKNUM_FOLDERTAIL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MASK_FOLDERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_BEFOREDELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_BEFOREINSERT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEANNOTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGELINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEMARGIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGEMARKER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CHANGESTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_CONTAINER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_DELETETEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_INSERTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MOD_LEXERSTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MODEVENTMASKALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTILINEUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTIPASTE_EACH enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTIPASTE_ONCE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_MULTISTEPUNDOREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_CUSTOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_PERFORMSORT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_ORDER_PRESORTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_REDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_UNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PERFORMED_USER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_BLACKONWHITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_COLOURONWHITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_COLOURONWHITEDEFAULTBG enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_INVERTLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_PRINT_NORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_LINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_RECTANGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_STREAM enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_SEL_THIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_STARTACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TECHNOLOGY_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TECHNOLOGY_DIRECTWRITE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TIME_FOREVER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_BOOLEAN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_INTEGER enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_TYPE_STRING enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_CONTENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_H_SCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_SELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_UPDATE_V_SCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_BOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_NORMAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WEIGHT_SEMIBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_CHAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAP_WORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_FIXED enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_INDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPINDENT_SAME enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_END enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_MARGIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAG_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_END_BY_TEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SC_WRAPVISUALFLAGLOC_START_BY_TEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCEN_CHANGE()QsciScintillaBase [signal]
SCFIND_MATCHCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_POSIX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_REGEXP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_WHOLEWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCFIND_WORDSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDREFDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDSTYLEDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ADDTEXT enum valueQsciScintillaBase
SCI_ADDUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ALLOCATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ALLOCATEEXTENDEDSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONCLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETLINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONGETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ANNOTATIONSETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_APPENDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ASSIGNCMDKEY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCACTIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCCANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCCOMPLETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETAUTOHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCANCELATSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCHOOSESINGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETCURRENTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETDROPRESTOFWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETIGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETMAXHEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETMAXWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETORDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETSEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCGETTYPESEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCPOSSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSELECT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETAUTOHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCANCELATSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETCHOOSESINGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETDROPRESTOFWORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETFILLUPS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETIGNORECASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETMAXHEIGHT enum valueQsciScintillaBase
SCI_AUTOCSETMAXWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETORDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETSEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSETTYPESEPARATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_AUTOCSTOPS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BACKTAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BEGINUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEBADLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEBADLIGHTINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEHIGHLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEHIGHLIGHTINDICATOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_BRACEMATCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPACTIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPCANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPPOSSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETFOREHLT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETHLT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSETPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CALLTIPUSESTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANCEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANREDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CANUNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHANGELEXERSTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARLEFTRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARPOSITIONFROMPOINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARPOSITIONFROMPOINTCLOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHARRIGHTRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CHOOSECARETX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARALLCMDKEYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARCMDKEY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARDOCUMENTSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARREGISTEREDIMAGES enum valueQsciScintillaBase
SCI_CLEARREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CLEARSELECTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COLOURISE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CONTRACTEDFOLDNEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CONVERTEOLS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPYALLOWLINE enum valueQsciScintillaBase
SCI_COPYRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COPYTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_COUNTCHARACTERS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CREATEDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CREATELOADER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_CUT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETEBACKNOTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELETERANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELLINELEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELLINERIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DELWORDRIGHTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DESCRIBEKEYWORDSETS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DESCRIBEPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCLINEFROMVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_DOCUMENTSTARTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EDITTOGGLEOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EMPTYUNDOBUFFER enum valueQsciScintillaBase
SCI_ENDUNDOACTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ENSUREVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ENSUREVISIBLEENFORCEPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_EXPANDCHILDREN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDCOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORFLASH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORHIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDINDICATORSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FINDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDCHILDREN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FOLDLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FORMATRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_FORMFEED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETSBLINK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALCARETSVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETADDITIONALSELECTIONTYPING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETALLLINESVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETANCHOR enum valueQsciScintillaBase
SCI_GETAUTOMATICFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETBACKSPACEUNINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETBUFFEREDDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEBACKALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETLINEVISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETPERIOD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCARETWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCHARACTERPOINTER enum valueQsciScintillaBase
SCI_GETCHARAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCODEPAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCONTROLCHARSYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCURLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETCURRENTPOS enum valueQsciScintillaBase
SCI_GETCURSOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDIRECTFUNCTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDIRECTPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETDOCPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGECOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGECOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEDGEMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETENDATLASTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETENDSTYLED enum valueQsciScintillaBase
SCI_GETEOLMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEXTRAASCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETEXTRADESCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFIRSTVISIBLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDLEVEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFOLDPARENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETFONTQUALITY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETGAPPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHIGHLIGHTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTACTIVEUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHOTSPOTSINGLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETHSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETIDENTIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDENTATIONGUIDES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDICATORCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETINDICATORVALUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETKEYSUNICODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLASTCHILD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLAYOUTCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLENGTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLEXER enum valueQsciScintillaBase
SCI_GETLEXERLANGUAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINECOUNT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEINDENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEINDENTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESELENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESELSTARTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMAINSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINCURSORN enum valueQsciScintillaBase
SCI_GETMARGINLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINMASKN enum valueQsciScintillaBase
SCI_GETMARGINOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMARGINSENSITIVEN enum valueQsciScintillaBase
SCI_GETMARGINTYPEN enum valueQsciScintillaBase
SCI_GETMARGINWIDTHN enum valueQsciScintillaBase
SCI_GETMAXLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMODEVENTMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMODIFY enum valueQsciScintillaBase
SCI_GETMOUSEDOWNCAPTURES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMOUSEDWELLTIME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMOUSESELECTIONRECTANGULARSWITCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMULTIPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETMULTIPLESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPASTECONVERTENDINGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPOSITIONCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTCOLOURMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTMAGNIFICATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPRINTWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTYEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPROPERTYINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETPUNCTUATIONCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRANGEPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETREADONLY enum valueQsciScintillaBase
SCI_GETRECTANGULARSELECTIONANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETRECTANGULARSELECTIONMODIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSCROLLWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSCROLLWIDTHTRACKING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSEARCHFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONEMPTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONNSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELECTIONSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSELTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTATUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEBITS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEBITSNEEDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETSTYLEDTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTABINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTABWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTAG enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTARGETEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTARGETSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTECHNOLOGY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTEXT enum valueQsciScintillaBase
SCI_GETTEXTLENGTH enum valueQsciScintillaBase
SCI_GETTEXTRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETTWOPHASEDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETUNDOCOLLECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETUSETABS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIEWEOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIEWWS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVIRTUALSPACEOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETVSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWHITESPACECHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWHITESPACESIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWORDCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPINDENTMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPSTARTINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPVISUALFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETWRAPVISUALFLAGSLOCATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETXOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GETZOOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GOTOLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_GOTOPOS enum valueQsciScintillaBase
SCI_GRABFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HIDELINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HIDESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMERECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_HOMEWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORALLONFOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORCLEARRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATOREND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORFILLRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICATORVALUEAT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETOUTLINEALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICGETUNDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETOUTLINEALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INDICSETUNDER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_INSERTTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LEXER_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINECOPY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINECUT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDOWNRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEDUPLICATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEENDWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINELENGTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLLDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESCROLLUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESJOIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESONSCREEN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINESSPLIT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINETRANSPOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LINEUPRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LOADLEXERLIBRARY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_LOWERCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINGETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLEOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINSETTEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARGINTEXTCLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERADD enum valueQsciScintillaBase
SCI_MARKERADDSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERDEFINE enum valueQsciScintillaBase
SCI_MARKERDEFINEPIXMAP enum valueQsciScintillaBase
SCI_MARKERDEFINERGBAIMAGE enum valueQsciScintillaBase
SCI_MARKERDELETE enum valueQsciScintillaBase
SCI_MARKERDELETEALL enum valueQsciScintillaBase
SCI_MARKERDELETEHANDLE enum valueQsciScintillaBase
SCI_MARKERENABLEHIGHLIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERGET enum valueQsciScintillaBase
SCI_MARKERLINEFROMHANDLE enum valueQsciScintillaBase
SCI_MARKERNEXT enum valueQsciScintillaBase
SCI_MARKERPREVIOUS enum valueQsciScintillaBase
SCI_MARKERSETALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERSETBACK enum valueQsciScintillaBase
SCI_MARKERSETBACKSELECTED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MARKERSETFORE enum valueQsciScintillaBase
SCI_MARKERSYMBOLDEFINED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVECARETINSIDEVIEW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVESELECTEDLINESDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_MOVESELECTEDLINESUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_NEWLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_NULL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_OPTIONAL_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEDOWNRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PAGEUPRECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARADOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARADOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARAUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PARAUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POINTXFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POINTYFROMPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONAFTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONBEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMPOINT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONFROMPOINTCLOSE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_POSITIONRELATIVE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PRIVATELEXERCALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PROPERTYNAMES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_PROPERTYTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REGISTERIMAGE enum valueQsciScintillaBase
SCI_REGISTERRGBAIMAGE enum valueQsciScintillaBase
SCI_RELEASEALLEXTENDEDSTYLES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RELEASEDOCUMENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACESEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACETARGET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_REPLACETARGETRE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RGBAIMAGESETHEIGHT enum valueQsciScintillaBase
SCI_RGBAIMAGESETSCALE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_RGBAIMAGESETWIDTH enum valueQsciScintillaBase
SCI_ROTATESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLRANGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLTOEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SCROLLTOSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHINTARGET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHNEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SEARCHPREV enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTIONDUPLICATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SELECTIONISRECTANGLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETSBLINK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALCARETSVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELECTIONTYPING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETADDITIONALSELFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETANCHOR enum valueQsciScintillaBase
SCI_SETAUTOMATICFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETBACKSPACEUNINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETBUFFEREDDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEBACKALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETLINEVISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETPERIOD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETSTYLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCARETWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCHARSDEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCODEPAGE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCONTROLCHARSYMBOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETCURRENTPOS enum valueQsciScintillaBase
SCI_SETCURSOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETDOCPOINTER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGECOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGECOLUMN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEDGEMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEMPTYSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETENDATLASTLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEOLMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEXTRAASCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETEXTRADESCENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFIRSTVISIBLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOCUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDEXPANDED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDLEVEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDMARGINCOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFOLDMARGINHICOLOUR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETFONTQUALITY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHIGHLIGHTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTACTIVEUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHOTSPOTSINGLELINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETHSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETIDENTIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDENTATIONGUIDES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDICATORCURRENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETINDICATORVALUE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETKEYSUNICODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETKEYWORDS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLAYOUTCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLEXER enum valueQsciScintillaBase
SCI_SETLEXERLANGUAGE enum valueQsciScintillaBase
SCI_SETLINEINDENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETLINESTATE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMAINSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINCURSORN enum valueQsciScintillaBase
SCI_SETMARGINLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINMASKN enum valueQsciScintillaBase
SCI_SETMARGINOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMARGINSENSITIVEN enum valueQsciScintillaBase
SCI_SETMARGINTYPEN enum valueQsciScintillaBase
SCI_SETMARGINWIDTHN enum valueQsciScintillaBase
SCI_SETMODEVENTMASK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSEDOWNCAPTURES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSEDWELLTIME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMOUSESELECTIONRECTANGULARSWITCH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMULTIPASTE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETMULTIPLESELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETOVERTYPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPASTECONVERTENDINGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPOSITIONCACHE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTCOLOURMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTMAGNIFICATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPRINTWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPROPERTY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETPUNCTUATIONCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETREADONLY enum valueQsciScintillaBase
SCI_SETRECTANGULARSELECTIONANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETRECTANGULARSELECTIONMODIFIER enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETREPRESENTATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSAVEPOINT enum valueQsciScintillaBase
SCI_SETSCROLLWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSCROLLWIDTHTRACKING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSEARCHFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSEL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELALPHA enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNANCHOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNANCHORVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNCARETVIRTUALSPACE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONNSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELECTIONSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSELFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTATUS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLEBITS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETSTYLINGEX enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTABINDENTS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTABWIDTH enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTARGETEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTARGETSTART enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTECHNOLOGY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETTEXT enum valueQsciScintillaBase
SCI_SETTWOPHASEDRAW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETUNDOCOLLECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETUSETABS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIEWEOL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIEWWS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVIRTUALSPACEOPTIONS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVISIBLEPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETVSCROLLBAR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACEBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACECHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACEFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWHITESPACESIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWORDCHARS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPINDENTMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPMODE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPSTARTINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPVISUALFLAGS enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETWRAPVISUALFLAGSLOCATION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETXCARETPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETXOFFSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETYCARETPOLICY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SETZOOM enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SHOWLINES enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_START enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STARTRECORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STARTSTYLING enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STOPRECORD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEDOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEDOWNEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STUTTEREDPAGEUPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLECLEARALL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCHANGEABLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETCHARACTERSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETFONT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETHOTSPOT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETITALIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETSIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETSIZEFRACTIONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLEGETWEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLERESETDEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETBACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETBOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCHANGEABLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETCHARACTERSET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETEOLFILLED enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETFONT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETFORE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETHOTSPOT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETITALIC enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETSIZE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETSIZEFRACTIONAL enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETUNDERLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_STYLESETWEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_SWAPMAINANCHORCARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TARGETFROMSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TEXTHEIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TEXTWIDTH enum valueQsciScintillaBase
SCI_TOGGLECARETSTICKY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_TOGGLEFOLD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_UNDO enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_UPPERCASE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_USEPOPUP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_USERLISTSHOW enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEDISPLAY enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEDISPLAYEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMERECTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEWRAP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VCHOMEWRAPEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VERTICALCENTRECARET enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_VISIBLEFROMDOCLINE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDENDPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTLEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTLEFTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDPARTRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTENDEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDRIGHTEXTEND enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WORDSTARTPOSITION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_WRAPCOUNT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ZOOMIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCI_ZOOMOUT enum value (defined in QsciScintillaBase)QsciScintillaBase
ScintillaBytes typedef (defined in QsciScintillaBase)QsciScintillaBase [protected]
SCK_ADD enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_BACK enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DELETE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DIVIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_DOWN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_END enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_ESCAPE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_HOME enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_INSERT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_LEFT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_MENU enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_NEXT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_PRIOR enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RETURN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_RWIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_SUBTRACT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_TAB enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_UP enum value (defined in QsciScintillaBase)QsciScintillaBase
SCK_WIN enum value (defined in QsciScintillaBase)QsciScintillaBase
SCLEX_A68K enum valueQsciScintillaBase
SCLEX_ABAQUS enum valueQsciScintillaBase
SCLEX_ADA enum valueQsciScintillaBase
SCLEX_APDL enum valueQsciScintillaBase
SCLEX_ASM enum valueQsciScintillaBase
SCLEX_ASN1 enum valueQsciScintillaBase
SCLEX_ASP enum valueQsciScintillaBase
SCLEX_ASYMPTOTE enum valueQsciScintillaBase
SCLEX_AU3 enum valueQsciScintillaBase
SCLEX_AVE enum valueQsciScintillaBase
SCLEX_AVS enum valueQsciScintillaBase
SCLEX_BAAN enum valueQsciScintillaBase
SCLEX_BASH enum valueQsciScintillaBase
SCLEX_BATCH enum valueQsciScintillaBase
SCLEX_BLITZBASIC enum valueQsciScintillaBase
SCLEX_BULLANT enum valueQsciScintillaBase
SCLEX_CAML enum valueQsciScintillaBase
SCLEX_CLW enum valueQsciScintillaBase
SCLEX_CLWNOCASE enum valueQsciScintillaBase
SCLEX_CMAKE enum valueQsciScintillaBase
SCLEX_COBOL enum valueQsciScintillaBase
SCLEX_COFFEESCRIPT enum valueQsciScintillaBase
SCLEX_CONF enum valueQsciScintillaBase
SCLEX_CONTAINER enum valueQsciScintillaBase
SCLEX_CPP enum valueQsciScintillaBase
SCLEX_CPPNOCASE enum valueQsciScintillaBase
SCLEX_CSOUND enum valueQsciScintillaBase
SCLEX_CSS enum valueQsciScintillaBase
SCLEX_D enum valueQsciScintillaBase
SCLEX_DIFF enum valueQsciScintillaBase
SCLEX_ECL enum valueQsciScintillaBase
SCLEX_EIFFEL enum valueQsciScintillaBase
SCLEX_EIFFELKW enum valueQsciScintillaBase
SCLEX_ERLANG enum valueQsciScintillaBase
SCLEX_ERRORLIST enum valueQsciScintillaBase
SCLEX_ESCRIPT enum valueQsciScintillaBase
SCLEX_F77 enum valueQsciScintillaBase
SCLEX_FLAGSHIP enum valueQsciScintillaBase
SCLEX_FORTH enum valueQsciScintillaBase
SCLEX_FORTRAN enum valueQsciScintillaBase
SCLEX_FREEBASIC enum valueQsciScintillaBase
SCLEX_GAP enum valueQsciScintillaBase
SCLEX_GUI4CLI enum valueQsciScintillaBase
SCLEX_HASKELL enum valueQsciScintillaBase
SCLEX_HTML enum valueQsciScintillaBase
SCLEX_INNOSETUP enum valueQsciScintillaBase
SCLEX_KIX enum valueQsciScintillaBase
SCLEX_KVIRC enum valueQsciScintillaBase
SCLEX_LATEX enum valueQsciScintillaBase
SCLEX_LISP enum valueQsciScintillaBase
SCLEX_LITERATEHASKELL enum valueQsciScintillaBase
SCLEX_LOT enum valueQsciScintillaBase
SCLEX_LOUT enum valueQsciScintillaBase
SCLEX_LUA enum valueQsciScintillaBase
SCLEX_MAGIK enum valueQsciScintillaBase
SCLEX_MAKEFILE enum valueQsciScintillaBase
SCLEX_MARKDOWN enum valueQsciScintillaBase
SCLEX_MATLAB enum valueQsciScintillaBase
SCLEX_METAPOST enum valueQsciScintillaBase
SCLEX_MMIXAL enum valueQsciScintillaBase
SCLEX_MODULA enum valueQsciScintillaBase
SCLEX_MSSQL enum valueQsciScintillaBase
SCLEX_MYSQL enum valueQsciScintillaBase
SCLEX_NIMROD enum valueQsciScintillaBase
SCLEX_NNCRONTAB enum valueQsciScintillaBase
SCLEX_NSIS enum valueQsciScintillaBase
SCLEX_NULL enum valueQsciScintillaBase
SCLEX_OCTAVE enum valueQsciScintillaBase
SCLEX_OPAL enum valueQsciScintillaBase
SCLEX_OSCRIPT enum valueQsciScintillaBase
SCLEX_PASCAL enum valueQsciScintillaBase
SCLEX_PERL enum valueQsciScintillaBase
SCLEX_PHP enum valueQsciScintillaBase
SCLEX_PHPSCRIPT enum valueQsciScintillaBase
SCLEX_PLM enum valueQsciScintillaBase
SCLEX_PO enum valueQsciScintillaBase
SCLEX_POV enum valueQsciScintillaBase
SCLEX_POWERBASIC enum valueQsciScintillaBase
SCLEX_POWERPRO enum valueQsciScintillaBase
SCLEX_POWERSHELL enum valueQsciScintillaBase
SCLEX_PROGRESS enum valueQsciScintillaBase
SCLEX_PROPERTIES enum valueQsciScintillaBase
SCLEX_PS enum valueQsciScintillaBase
SCLEX_PUREBASIC enum valueQsciScintillaBase
SCLEX_PYTHON enum valueQsciScintillaBase
SCLEX_R enum valueQsciScintillaBase
SCLEX_REBOL enum valueQsciScintillaBase
SCLEX_RUBY enum valueQsciScintillaBase
SCLEX_RUST enum valueQsciScintillaBase
SCLEX_SCRIPTOL enum valueQsciScintillaBase
SCLEX_SMALLTALK enum valueQsciScintillaBase
SCLEX_SML enum valueQsciScintillaBase
SCLEX_SORCUS enum valueQsciScintillaBase
SCLEX_SPECMAN enum valueQsciScintillaBase
SCLEX_SPICE enum valueQsciScintillaBase
SCLEX_SQL enum valueQsciScintillaBase
SCLEX_STTXT enum valueQsciScintillaBase
SCLEX_TACL enum valueQsciScintillaBase
SCLEX_TADS3 enum valueQsciScintillaBase
SCLEX_TAL enum valueQsciScintillaBase
SCLEX_TCL enum valueQsciScintillaBase
SCLEX_TCMD enum valueQsciScintillaBase
SCLEX_TEX enum valueQsciScintillaBase
SCLEX_TXT2TAGS enum valueQsciScintillaBase
SCLEX_VB enum valueQsciScintillaBase
SCLEX_VBSCRIPT enum valueQsciScintillaBase
SCLEX_VERILOG enum valueQsciScintillaBase
SCLEX_VHDL enum valueQsciScintillaBase
SCLEX_VISUALPROLOG enum valueQsciScintillaBase
SCLEX_XML enum valueQsciScintillaBase
SCLEX_YAML enum valueQsciScintillaBase
SCMOD_ALT enum valueQsciScintillaBase
SCMOD_CTRL enum valueQsciScintillaBase
SCMOD_META enum valueQsciScintillaBase
SCMOD_NORM enum valueQsciScintillaBase
SCMOD_SHIFT enum valueQsciScintillaBase
SCMOD_SUPER enum valueQsciScintillaBase
SCN_AUTOCCANCELLED()QsciScintillaBase [signal]
SCN_AUTOCCHARDELETED()QsciScintillaBase [signal]
SCN_AUTOCSELECTION(const char *selection, int position)QsciScintillaBase [signal]
SCN_CALLTIPCLICK(int direction)QsciScintillaBase [signal]
SCN_CHARADDED(int charadded)QsciScintillaBase [signal]
SCN_DOUBLECLICK(int position, int line, int modifiers)QsciScintillaBase [signal]
SCN_DWELLEND(int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_DWELLSTART(int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_FOCUSIN()QsciScintillaBase [signal]
SCN_FOCUSOUT()QsciScintillaBase [signal]
SCN_HOTSPOTCLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_HOTSPOTDOUBLECLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_HOTSPOTRELEASECLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_INDICATORCLICK(int position, int modifiers)QsciScintillaBase [signal]
SCN_INDICATORRELEASE(int position, int modifiers)QsciScintillaBase [signal]
SCN_MACRORECORD(unsigned int, unsigned long, void *)QsciScintillaBase [signal]
SCN_MARGINCLICK(int position, int modifiers, int margin)QsciScintillaBase [signal]
SCN_MODIFIED(int, int, const char *, int, int, int, int, int, int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_MODIFYATTEMPTRO()QsciScintillaBase [signal]
SCN_NEEDSHOWN(int, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_PAINTED()QsciScintillaBase [signal]
SCN_SAVEPOINTLEFT()QsciScintillaBase [signal]
SCN_SAVEPOINTREACHED()QsciScintillaBase [signal]
SCN_STYLENEEDED(int position)QsciScintillaBase [signal]
SCN_UPDATEUI(int updated)QsciScintillaBase [signal]
SCN_USERLISTSELECTION(const char *, int) (defined in QsciScintillaBase)QsciScintillaBase [signal]
SCN_ZOOM() (defined in QsciScintillaBase)QsciScintillaBase [signal]
scrollContentsBy(int dx, int dy) (defined in QsciScintillaBase)QsciScintillaBase [protected, virtual]
SCVS_NONE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCVS_RECTANGULARSELECTION enum value (defined in QsciScintillaBase)QsciScintillaBase
SCVS_USERACCESSIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_INVISIBLE enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_VISIBLEAFTERINDENT enum value (defined in QsciScintillaBase)QsciScintillaBase
SCWS_VISIBLEALWAYS enum value (defined in QsciScintillaBase)QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam=0, long lParam=0) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, void *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, const char *wParam, const char *lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, long wParam) const QsciScintillaBase
SendScintilla(unsigned int msg, int wParam) const QsciScintillaBase
SendScintilla(unsigned int msg, long cpMin, long cpMax, char *lpstrText) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QColor &col) const QsciScintillaBase
SendScintilla(unsigned int msg, const QColor &col) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, QPainter *hdc, const QRect &rc, long cpMin, long cpMax) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QPixmap &lParam) const QsciScintillaBase
SendScintilla(unsigned int msg, unsigned long wParam, const QImage &lParam) const QsciScintillaBase
SendScintillaPtrResult(unsigned int msg) const QsciScintillaBase
setScrollBars() (defined in QsciScintillaBase)QsciScintillaBase [protected]
STYLE_BRACEBAD enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_BRACELIGHT enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_CALLTIP enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_CONTROLCHAR enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_DEFAULT enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_INDENTGUIDE enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_LASTPREDEFINED enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_LINENUMBER enum value (defined in QsciScintillaBase)QsciScintillaBase
STYLE_MAX enum value (defined in QsciScintillaBase)QsciScintillaBase
textAsBytes(const QString &text) const (defined in QsciScintillaBase)QsciScintillaBase [protected]
toMimeData(const QByteArray &text, bool rectangular) const QsciScintillaBase [protected, virtual]
UNDO_MAY_COALESCE enum value (defined in QsciScintillaBase)QsciScintillaBase
VISIBLE_SLOP enum value (defined in QsciScintillaBase)QsciScintillaBase
VISIBLE_STRICT enum value (defined in QsciScintillaBase)QsciScintillaBase
~QsciScintillaBase()QsciScintillaBase [virtual]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciScintillaBase.html b/doc/html-Qt4Qt5/classQsciScintillaBase.html new file mode 100644 index 0000000..8b2ac7f --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciScintillaBase.html @@ -0,0 +1,3428 @@ + + + + +QScintilla: QsciScintillaBase Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+ +
+ +

#include <qsciscintillabase.h>

+ +

Inherited by QsciScintilla.

+ +

List of all members.

+

+Public Types

+
    +
  • enum {
    +  SCI_START = 2000, +SCI_OPTIONAL_START = 3000, +SCI_LEXER_START = 4000, +
    +  SCI_ADDTEXT = 2001, +SCI_ADDSTYLEDTEXT = 2002, +SCI_INSERTTEXT = 2003, +
    +  SCI_CLEARALL = 2004, +SCI_CLEARDOCUMENTSTYLE = 2005, +SCI_GETLENGTH = 2006, +
    +  SCI_GETCHARAT = 2007, +SCI_GETCURRENTPOS = 2008, +SCI_GETANCHOR = 2009, +
    +  SCI_GETSTYLEAT = 2010, +SCI_REDO = 2011, +SCI_SETUNDOCOLLECTION = 2012, +
    +  SCI_SELECTALL = 2013, +SCI_SETSAVEPOINT = 2014, +SCI_GETSTYLEDTEXT = 2015, +
    +  SCI_CANREDO = 2016, +SCI_MARKERLINEFROMHANDLE = 2017, +SCI_MARKERDELETEHANDLE = 2018, +
    +  SCI_GETUNDOCOLLECTION = 2019, +SCI_GETVIEWWS = 2020, +SCI_SETVIEWWS = 2021, +
    +  SCI_POSITIONFROMPOINT = 2022, +SCI_POSITIONFROMPOINTCLOSE = 2023, +SCI_GOTOLINE = 2024, +
    +  SCI_GOTOPOS = 2025, +SCI_SETANCHOR = 2026, +SCI_GETCURLINE = 2027, +
    +  SCI_GETENDSTYLED = 2028, +SCI_CONVERTEOLS = 2029, +SCI_GETEOLMODE = 2030, +
    +  SCI_SETEOLMODE = 2031, +SCI_STARTSTYLING = 2032, +SCI_SETSTYLING = 2033, +
    +  SCI_GETBUFFEREDDRAW = 2034, +SCI_SETBUFFEREDDRAW = 2035, +SCI_SETTABWIDTH = 2036, +
    +  SCI_GETTABWIDTH = 2121, +SCI_SETCODEPAGE = 2037, +SCI_MARKERDEFINE = 2040, +
    +  SCI_MARKERSETFORE = 2041, +SCI_MARKERSETBACK = 2042, +SCI_MARKERADD = 2043, +
    +  SCI_MARKERDELETE = 2044, +SCI_MARKERDELETEALL = 2045, +SCI_MARKERGET = 2046, +
    +  SCI_MARKERNEXT = 2047, +SCI_MARKERPREVIOUS = 2048, +SCI_MARKERDEFINEPIXMAP = 2049, +
    +  SCI_SETMARGINTYPEN = 2240, +SCI_GETMARGINTYPEN = 2241, +SCI_SETMARGINWIDTHN = 2242, +
    +  SCI_GETMARGINWIDTHN = 2243, +SCI_SETMARGINMASKN = 2244, +SCI_GETMARGINMASKN = 2245, +
    +  SCI_SETMARGINSENSITIVEN = 2246, +SCI_GETMARGINSENSITIVEN = 2247, +SCI_SETMARGINCURSORN = 2248, +
    +  SCI_GETMARGINCURSORN = 2249, +SCI_STYLECLEARALL = 2050, +SCI_STYLESETFORE = 2051, +
    +  SCI_STYLESETBACK = 2052, +SCI_STYLESETBOLD = 2053, +SCI_STYLESETITALIC = 2054, +
    +  SCI_STYLESETSIZE = 2055, +SCI_STYLESETFONT = 2056, +SCI_STYLESETEOLFILLED = 2057, +
    +  SCI_STYLERESETDEFAULT = 2058, +SCI_STYLESETUNDERLINE = 2059, +SCI_STYLESETCASE = 2060, +
    +  SCI_STYLESETSIZEFRACTIONAL = 2061, +SCI_STYLEGETSIZEFRACTIONAL = 2062, +SCI_STYLESETWEIGHT = 2063, +
    +  SCI_STYLEGETWEIGHT = 2064, +SCI_STYLESETCHARACTERSET = 2066, +SCI_SETSELFORE = 2067, +
    +  SCI_SETSELBACK = 2068, +SCI_SETCARETFORE = 2069, +SCI_ASSIGNCMDKEY = 2070, +
    +  SCI_CLEARCMDKEY = 2071, +SCI_CLEARALLCMDKEYS = 2072, +SCI_SETSTYLINGEX = 2073, +
    +  SCI_STYLESETVISIBLE = 2074, +SCI_GETCARETPERIOD = 2075, +SCI_SETCARETPERIOD = 2076, +
    +  SCI_SETWORDCHARS = 2077, +SCI_BEGINUNDOACTION = 2078, +SCI_ENDUNDOACTION = 2079, +
    +  SCI_INDICSETSTYLE = 2080, +SCI_INDICGETSTYLE = 2081, +SCI_INDICSETFORE = 2082, +
    +  SCI_INDICGETFORE = 2083, +SCI_SETWHITESPACEFORE = 2084, +SCI_SETWHITESPACEBACK = 2085, +
    +  SCI_SETWHITESPACESIZE = 2086, +SCI_GETWHITESPACESIZE = 2087, +SCI_SETSTYLEBITS = 2090, +
    +  SCI_GETSTYLEBITS = 2091, +SCI_SETLINESTATE = 2092, +SCI_GETLINESTATE = 2093, +
    +  SCI_GETMAXLINESTATE = 2094, +SCI_GETCARETLINEVISIBLE = 2095, +SCI_SETCARETLINEVISIBLE = 2096, +
    +  SCI_GETCARETLINEBACK = 2097, +SCI_SETCARETLINEBACK = 2098, +SCI_STYLESETCHANGEABLE = 2099, +
    +  SCI_AUTOCSHOW = 2100, +SCI_AUTOCCANCEL = 2101, +SCI_AUTOCACTIVE = 2102, +
    +  SCI_AUTOCPOSSTART = 2103, +SCI_AUTOCCOMPLETE = 2104, +SCI_AUTOCSTOPS = 2105, +
    +  SCI_AUTOCSETSEPARATOR = 2106, +SCI_AUTOCGETSEPARATOR = 2107, +SCI_AUTOCSELECT = 2108, +
    +  SCI_AUTOCSETCANCELATSTART = 2110, +SCI_AUTOCGETCANCELATSTART = 2111, +SCI_AUTOCSETFILLUPS = 2112, +
    +  SCI_AUTOCSETCHOOSESINGLE = 2113, +SCI_AUTOCGETCHOOSESINGLE = 2114, +SCI_AUTOCSETIGNORECASE = 2115, +
    +  SCI_AUTOCGETIGNORECASE = 2116, +SCI_USERLISTSHOW = 2117, +SCI_AUTOCSETAUTOHIDE = 2118, +
    +  SCI_AUTOCGETAUTOHIDE = 2119, +SCI_AUTOCSETDROPRESTOFWORD = 2270, +SCI_AUTOCGETDROPRESTOFWORD = 2271, +
    +  SCI_SETINDENT = 2122, +SCI_GETINDENT = 2123, +SCI_SETUSETABS = 2124, +
    +  SCI_GETUSETABS = 2125, +SCI_SETLINEINDENTATION = 2126, +SCI_GETLINEINDENTATION = 2127, +
    +  SCI_GETLINEINDENTPOSITION = 2128, +SCI_GETCOLUMN = 2129, +SCI_SETHSCROLLBAR = 2130, +
    +  SCI_GETHSCROLLBAR = 2131, +SCI_SETINDENTATIONGUIDES = 2132, +SCI_GETINDENTATIONGUIDES = 2133, +
    +  SCI_SETHIGHLIGHTGUIDE = 2134, +SCI_GETHIGHLIGHTGUIDE = 2135, +SCI_GETLINEENDPOSITION = 2136, +
    +  SCI_GETCODEPAGE = 2137, +SCI_GETCARETFORE = 2138, +SCI_GETREADONLY = 2140, +
    +  SCI_SETCURRENTPOS = 2141, +SCI_SETSELECTIONSTART = 2142, +SCI_GETSELECTIONSTART = 2143, +
    +  SCI_SETSELECTIONEND = 2144, +SCI_GETSELECTIONEND = 2145, +SCI_SETPRINTMAGNIFICATION = 2146, +
    +  SCI_GETPRINTMAGNIFICATION = 2147, +SCI_SETPRINTCOLOURMODE = 2148, +SCI_GETPRINTCOLOURMODE = 2149, +
    +  SCI_FINDTEXT = 2150, +SCI_FORMATRANGE = 2151, +SCI_GETFIRSTVISIBLELINE = 2152, +
    +  SCI_GETLINE = 2153, +SCI_GETLINECOUNT = 2154, +SCI_SETMARGINLEFT = 2155, +
    +  SCI_GETMARGINLEFT = 2156, +SCI_SETMARGINRIGHT = 2157, +SCI_GETMARGINRIGHT = 2158, +
    +  SCI_GETMODIFY = 2159, +SCI_SETSEL = 2160, +SCI_GETSELTEXT = 2161, +
    +  SCI_GETTEXTRANGE = 2162, +SCI_HIDESELECTION = 2163, +SCI_POINTXFROMPOSITION = 2164, +
    +  SCI_POINTYFROMPOSITION = 2165, +SCI_LINEFROMPOSITION = 2166, +SCI_POSITIONFROMLINE = 2167, +
    +  SCI_LINESCROLL = 2168, +SCI_SCROLLCARET = 2169, +SCI_REPLACESEL = 2170, +
    +  SCI_SETREADONLY = 2171, +SCI_NULL = 2172, +SCI_CANPASTE = 2173, +
    +  SCI_CANUNDO = 2174, +SCI_EMPTYUNDOBUFFER = 2175, +SCI_UNDO = 2176, +
    +  SCI_CUT = 2177, +SCI_COPY = 2178, +SCI_PASTE = 2179, +
    +  SCI_CLEAR = 2180, +SCI_SETTEXT = 2181, +SCI_GETTEXT = 2182, +
    +  SCI_GETTEXTLENGTH = 2183, +SCI_GETDIRECTFUNCTION = 2184, +SCI_GETDIRECTPOINTER = 2185, +
    +  SCI_SETOVERTYPE = 2186, +SCI_GETOVERTYPE = 2187, +SCI_SETCARETWIDTH = 2188, +
    +  SCI_GETCARETWIDTH = 2189, +SCI_SETTARGETSTART = 2190, +SCI_GETTARGETSTART = 2191, +
    +  SCI_SETTARGETEND = 2192, +SCI_GETTARGETEND = 2193, +SCI_REPLACETARGET = 2194, +
    +  SCI_REPLACETARGETRE = 2195, +SCI_SEARCHINTARGET = 2197, +SCI_SETSEARCHFLAGS = 2198, +
    +  SCI_GETSEARCHFLAGS = 2199, +SCI_CALLTIPSHOW = 2200, +SCI_CALLTIPCANCEL = 2201, +
    +  SCI_CALLTIPACTIVE = 2202, +SCI_CALLTIPPOSSTART = 2203, +SCI_CALLTIPSETHLT = 2204, +
    +  SCI_CALLTIPSETBACK = 2205, +SCI_CALLTIPSETFORE = 2206, +SCI_CALLTIPSETFOREHLT = 2207, +
    +  SCI_AUTOCSETMAXWIDTH = 2208, +SCI_AUTOCGETMAXWIDTH = 2209, +SCI_AUTOCSETMAXHEIGHT = 2210, +
    +  SCI_AUTOCGETMAXHEIGHT = 2211, +SCI_CALLTIPUSESTYLE = 2212, +SCI_CALLTIPSETPOSITION = 2213, +
    +  SCI_VISIBLEFROMDOCLINE = 2220, +SCI_DOCLINEFROMVISIBLE = 2221, +SCI_SETFOLDLEVEL = 2222, +
    +  SCI_GETFOLDLEVEL = 2223, +SCI_GETLASTCHILD = 2224, +SCI_GETFOLDPARENT = 2225, +
    +  SCI_SHOWLINES = 2226, +SCI_HIDELINES = 2227, +SCI_GETLINEVISIBLE = 2228, +
    +  SCI_SETFOLDEXPANDED = 2229, +SCI_GETFOLDEXPANDED = 2230, +SCI_TOGGLEFOLD = 2231, +
    +  SCI_ENSUREVISIBLE = 2232, +SCI_SETFOLDFLAGS = 2233, +SCI_ENSUREVISIBLEENFORCEPOLICY = 2234, +
    +  SCI_WRAPCOUNT = 2235, +SCI_GETALLLINESVISIBLE = 2236, +SCI_FOLDLINE = 2237, +
    +  SCI_FOLDCHILDREN = 2238, +SCI_EXPANDCHILDREN = 2239, +SCI_SETTABINDENTS = 2260, +
    +  SCI_GETTABINDENTS = 2261, +SCI_SETBACKSPACEUNINDENTS = 2262, +SCI_GETBACKSPACEUNINDENTS = 2263, +
    +  SCI_SETMOUSEDWELLTIME = 2264, +SCI_GETMOUSEDWELLTIME = 2265, +SCI_WORDSTARTPOSITION = 2266, +
    +  SCI_WORDENDPOSITION = 2267, +SCI_SETWRAPMODE = 2268, +SCI_GETWRAPMODE = 2269, +
    +  SCI_SETLAYOUTCACHE = 2272, +SCI_GETLAYOUTCACHE = 2273, +SCI_SETSCROLLWIDTH = 2274, +
    +  SCI_GETSCROLLWIDTH = 2275, +SCI_TEXTWIDTH = 2276, +SCI_SETENDATLASTLINE = 2277, +
    +  SCI_GETENDATLASTLINE = 2278, +SCI_TEXTHEIGHT = 2279, +SCI_SETVSCROLLBAR = 2280, +
    +  SCI_GETVSCROLLBAR = 2281, +SCI_APPENDTEXT = 2282, +SCI_GETTWOPHASEDRAW = 2283, +
    +  SCI_SETTWOPHASEDRAW = 2284, +SCI_AUTOCGETTYPESEPARATOR = 2285, +SCI_AUTOCSETTYPESEPARATOR = 2286, +
    +  SCI_TARGETFROMSELECTION = 2287, +SCI_LINESJOIN = 2288, +SCI_LINESSPLIT = 2289, +
    +  SCI_SETFOLDMARGINCOLOUR = 2290, +SCI_SETFOLDMARGINHICOLOUR = 2291, +SCI_MARKERSETBACKSELECTED = 2292, +
    +  SCI_MARKERENABLEHIGHLIGHT = 2293, +SCI_LINEDOWN = 2300, +SCI_LINEDOWNEXTEND = 2301, +
    +  SCI_LINEUP = 2302, +SCI_LINEUPEXTEND = 2303, +SCI_CHARLEFT = 2304, +
    +  SCI_CHARLEFTEXTEND = 2305, +SCI_CHARRIGHT = 2306, +SCI_CHARRIGHTEXTEND = 2307, +
    +  SCI_WORDLEFT = 2308, +SCI_WORDLEFTEXTEND = 2309, +SCI_WORDRIGHT = 2310, +
    +  SCI_WORDRIGHTEXTEND = 2311, +SCI_HOME = 2312, +SCI_HOMEEXTEND = 2313, +
    +  SCI_LINEEND = 2314, +SCI_LINEENDEXTEND = 2315, +SCI_DOCUMENTSTART = 2316, +
    +  SCI_DOCUMENTSTARTEXTEND = 2317, +SCI_DOCUMENTEND = 2318, +SCI_DOCUMENTENDEXTEND = 2319, +
    +  SCI_PAGEUP = 2320, +SCI_PAGEUPEXTEND = 2321, +SCI_PAGEDOWN = 2322, +
    +  SCI_PAGEDOWNEXTEND = 2323, +SCI_EDITTOGGLEOVERTYPE = 2324, +SCI_CANCEL = 2325, +
    +  SCI_DELETEBACK = 2326, +SCI_TAB = 2327, +SCI_BACKTAB = 2328, +
    +  SCI_NEWLINE = 2329, +SCI_FORMFEED = 2330, +SCI_VCHOME = 2331, +
    +  SCI_VCHOMEEXTEND = 2332, +SCI_ZOOMIN = 2333, +SCI_ZOOMOUT = 2334, +
    +  SCI_DELWORDLEFT = 2335, +SCI_DELWORDRIGHT = 2336, +SCI_LINECUT = 2337, +
    +  SCI_LINEDELETE = 2338, +SCI_LINETRANSPOSE = 2339, +SCI_LOWERCASE = 2340, +
    +  SCI_UPPERCASE = 2341, +SCI_LINESCROLLDOWN = 2342, +SCI_LINESCROLLUP = 2343, +
    +  SCI_DELETEBACKNOTLINE = 2344, +SCI_HOMEDISPLAY = 2345, +SCI_HOMEDISPLAYEXTEND = 2346, +
    +  SCI_LINEENDDISPLAY = 2347, +SCI_LINEENDDISPLAYEXTEND = 2348, +SCI_MOVECARETINSIDEVIEW = 2401, +
    +  SCI_LINELENGTH = 2350, +SCI_BRACEHIGHLIGHT = 2351, +SCI_BRACEBADLIGHT = 2352, +
    +  SCI_BRACEMATCH = 2353, +SCI_GETVIEWEOL = 2355, +SCI_SETVIEWEOL = 2356, +
    +  SCI_GETDOCPOINTER = 2357, +SCI_SETDOCPOINTER = 2358, +SCI_SETMODEVENTMASK = 2359, +
    +  SCI_GETEDGECOLUMN = 2360, +SCI_SETEDGECOLUMN = 2361, +SCI_GETEDGEMODE = 2362, +
    +  SCI_SETEDGEMODE = 2363, +SCI_GETEDGECOLOUR = 2364, +SCI_SETEDGECOLOUR = 2365, +
    +  SCI_SEARCHANCHOR = 2366, +SCI_SEARCHNEXT = 2367, +SCI_SEARCHPREV = 2368, +
    +  SCI_LINESONSCREEN = 2370, +SCI_USEPOPUP = 2371, +SCI_SELECTIONISRECTANGLE = 2372, +
    +  SCI_SETZOOM = 2373, +SCI_GETZOOM = 2374, +SCI_CREATEDOCUMENT = 2375, +
    +  SCI_ADDREFDOCUMENT = 2376, +SCI_RELEASEDOCUMENT = 2377, +SCI_GETMODEVENTMASK = 2378, +
    +  SCI_SETFOCUS = 2380, +SCI_GETFOCUS = 2381, +SCI_SETSTATUS = 2382, +
    +  SCI_GETSTATUS = 2383, +SCI_SETMOUSEDOWNCAPTURES = 2384, +SCI_GETMOUSEDOWNCAPTURES = 2385, +
    +  SCI_SETCURSOR = 2386, +SCI_GETCURSOR = 2387, +SCI_SETCONTROLCHARSYMBOL = 2388, +
    +  SCI_GETCONTROLCHARSYMBOL = 2389, +SCI_WORDPARTLEFT = 2390, +SCI_WORDPARTLEFTEXTEND = 2391, +
    +  SCI_WORDPARTRIGHT = 2392, +SCI_WORDPARTRIGHTEXTEND = 2393, +SCI_SETVISIBLEPOLICY = 2394, +
    +  SCI_DELLINELEFT = 2395, +SCI_DELLINERIGHT = 2396, +SCI_SETXOFFSET = 2397, +
    +  SCI_GETXOFFSET = 2398, +SCI_CHOOSECARETX = 2399, +SCI_GRABFOCUS = 2400, +
    +  SCI_SETXCARETPOLICY = 2402, +SCI_SETYCARETPOLICY = 2403, +SCI_LINEDUPLICATE = 2404, +
    +  SCI_REGISTERIMAGE = 2405, +SCI_SETPRINTWRAPMODE = 2406, +SCI_GETPRINTWRAPMODE = 2407, +
    +  SCI_CLEARREGISTEREDIMAGES = 2408, +SCI_STYLESETHOTSPOT = 2409, +SCI_SETHOTSPOTACTIVEFORE = 2410, +
    +  SCI_SETHOTSPOTACTIVEBACK = 2411, +SCI_SETHOTSPOTACTIVEUNDERLINE = 2412, +SCI_PARADOWN = 2413, +
    +  SCI_PARADOWNEXTEND = 2414, +SCI_PARAUP = 2415, +SCI_PARAUPEXTEND = 2416, +
    +  SCI_POSITIONBEFORE = 2417, +SCI_POSITIONAFTER = 2418, +SCI_COPYRANGE = 2419, +
    +  SCI_COPYTEXT = 2420, +SCI_SETHOTSPOTSINGLELINE = 2421, +SCI_SETSELECTIONMODE = 2422, +
    +  SCI_GETSELECTIONMODE = 2423, +SCI_GETLINESELSTARTPOSITION = 2424, +SCI_GETLINESELENDPOSITION = 2425, +
    +  SCI_LINEDOWNRECTEXTEND = 2426, +SCI_LINEUPRECTEXTEND = 2427, +SCI_CHARLEFTRECTEXTEND = 2428, +
    +  SCI_CHARRIGHTRECTEXTEND = 2429, +SCI_HOMERECTEXTEND = 2430, +SCI_VCHOMERECTEXTEND = 2431, +
    +  SCI_LINEENDRECTEXTEND = 2432, +SCI_PAGEUPRECTEXTEND = 2433, +SCI_PAGEDOWNRECTEXTEND = 2434, +
    +  SCI_STUTTEREDPAGEUP = 2435, +SCI_STUTTEREDPAGEUPEXTEND = 2436, +SCI_STUTTEREDPAGEDOWN = 2437, +
    +  SCI_STUTTEREDPAGEDOWNEXTEND = 2438, +SCI_WORDLEFTEND = 2439, +SCI_WORDLEFTENDEXTEND = 2440, +
    +  SCI_WORDRIGHTEND = 2441, +SCI_WORDRIGHTENDEXTEND = 2442, +SCI_SETWHITESPACECHARS = 2443, +
    +  SCI_SETCHARSDEFAULT = 2444, +SCI_AUTOCGETCURRENT = 2445, +SCI_ALLOCATE = 2446, +
    +  SCI_HOMEWRAP = 2349, +SCI_HOMEWRAPEXTEND = 2450, +SCI_LINEENDWRAP = 2451, +
    +  SCI_LINEENDWRAPEXTEND = 2452, +SCI_VCHOMEWRAP = 2453, +SCI_VCHOMEWRAPEXTEND = 2454, +
    +  SCI_LINECOPY = 2455, +SCI_FINDCOLUMN = 2456, +SCI_GETCARETSTICKY = 2457, +
    +  SCI_SETCARETSTICKY = 2458, +SCI_TOGGLECARETSTICKY = 2459, +SCI_SETWRAPVISUALFLAGS = 2460, +
    +  SCI_GETWRAPVISUALFLAGS = 2461, +SCI_SETWRAPVISUALFLAGSLOCATION = 2462, +SCI_GETWRAPVISUALFLAGSLOCATION = 2463, +
    +  SCI_SETWRAPSTARTINDENT = 2464, +SCI_GETWRAPSTARTINDENT = 2465, +SCI_MARKERADDSET = 2466, +
    +  SCI_SETPASTECONVERTENDINGS = 2467, +SCI_GETPASTECONVERTENDINGS = 2468, +SCI_SELECTIONDUPLICATE = 2469, +
    +  SCI_SETCARETLINEBACKALPHA = 2470, +SCI_GETCARETLINEBACKALPHA = 2471, +SCI_SETWRAPINDENTMODE = 2472, +
    +  SCI_GETWRAPINDENTMODE = 2473, +SCI_MARKERSETALPHA = 2476, +SCI_GETSELALPHA = 2477, +
    +  SCI_SETSELALPHA = 2478, +SCI_GETSELEOLFILLED = 2479, +SCI_SETSELEOLFILLED = 2480, +
    +  SCI_STYLEGETFORE = 2481, +SCI_STYLEGETBACK = 2482, +SCI_STYLEGETBOLD = 2483, +
    +  SCI_STYLEGETITALIC = 2484, +SCI_STYLEGETSIZE = 2485, +SCI_STYLEGETFONT = 2486, +
    +  SCI_STYLEGETEOLFILLED = 2487, +SCI_STYLEGETUNDERLINE = 2488, +SCI_STYLEGETCASE = 2489, +
    +  SCI_STYLEGETCHARACTERSET = 2490, +SCI_STYLEGETVISIBLE = 2491, +SCI_STYLEGETCHANGEABLE = 2492, +
    +  SCI_STYLEGETHOTSPOT = 2493, +SCI_GETHOTSPOTACTIVEFORE = 2494, +SCI_GETHOTSPOTACTIVEBACK = 2495, +
    +  SCI_GETHOTSPOTACTIVEUNDERLINE = 2496, +SCI_GETHOTSPOTSINGLELINE = 2497, +SCI_BRACEHIGHLIGHTINDICATOR = 2498, +
    +  SCI_BRACEBADLIGHTINDICATOR = 2499, +SCI_SETINDICATORCURRENT = 2500, +SCI_GETINDICATORCURRENT = 2501, +
    +  SCI_SETINDICATORVALUE = 2502, +SCI_GETINDICATORVALUE = 2503, +SCI_INDICATORFILLRANGE = 2504, +
    +  SCI_INDICATORCLEARRANGE = 2505, +SCI_INDICATORALLONFOR = 2506, +SCI_INDICATORVALUEAT = 2507, +
    +  SCI_INDICATORSTART = 2508, +SCI_INDICATOREND = 2509, +SCI_INDICSETUNDER = 2510, +
    +  SCI_INDICGETUNDER = 2511, +SCI_SETCARETSTYLE = 2512, +SCI_GETCARETSTYLE = 2513, +
    +  SCI_SETPOSITIONCACHE = 2514, +SCI_GETPOSITIONCACHE = 2515, +SCI_SETSCROLLWIDTHTRACKING = 2516, +
    +  SCI_GETSCROLLWIDTHTRACKING = 2517, +SCI_DELWORDRIGHTEND = 2518, +SCI_COPYALLOWLINE = 2519, +
    +  SCI_GETCHARACTERPOINTER = 2520, +SCI_SETKEYSUNICODE = 2521, +SCI_GETKEYSUNICODE = 2522, +
    +  SCI_INDICSETALPHA = 2523, +SCI_INDICGETALPHA = 2524, +SCI_SETEXTRAASCENT = 2525, +
    +  SCI_GETEXTRAASCENT = 2526, +SCI_SETEXTRADESCENT = 2527, +SCI_GETEXTRADESCENT = 2528, +
    +  SCI_MARKERSYMBOLDEFINED = 2529, +SCI_MARGINSETTEXT = 2530, +SCI_MARGINGETTEXT = 2531, +
    +  SCI_MARGINSETSTYLE = 2532, +SCI_MARGINGETSTYLE = 2533, +SCI_MARGINSETSTYLES = 2534, +
    +  SCI_MARGINGETSTYLES = 2535, +SCI_MARGINTEXTCLEARALL = 2536, +SCI_MARGINSETSTYLEOFFSET = 2537, +
    +  SCI_MARGINGETSTYLEOFFSET = 2538, +SCI_SETMARGINOPTIONS = 2539, +SCI_ANNOTATIONSETTEXT = 2540, +
    +  SCI_ANNOTATIONGETTEXT = 2541, +SCI_ANNOTATIONSETSTYLE = 2542, +SCI_ANNOTATIONGETSTYLE = 2543, +
    +  SCI_ANNOTATIONSETSTYLES = 2544, +SCI_ANNOTATIONGETSTYLES = 2545, +SCI_ANNOTATIONGETLINES = 2546, +
    +  SCI_ANNOTATIONCLEARALL = 2547, +SCI_ANNOTATIONSETVISIBLE = 2548, +SCI_ANNOTATIONGETVISIBLE = 2549, +
    +  SCI_ANNOTATIONSETSTYLEOFFSET = 2550, +SCI_ANNOTATIONGETSTYLEOFFSET = 2551, +SCI_RELEASEALLEXTENDEDSTYLES = 2552, +
    +  SCI_ALLOCATEEXTENDEDSTYLES = 2553, +SCI_SETEMPTYSELECTION = 2556, +SCI_GETMARGINOPTIONS = 2557, +
    +  SCI_INDICSETOUTLINEALPHA = 2558, +SCI_INDICGETOUTLINEALPHA = 2559, +SCI_ADDUNDOACTION = 2560, +
    +  SCI_CHARPOSITIONFROMPOINT = 2561, +SCI_CHARPOSITIONFROMPOINTCLOSE = 2562, +SCI_SETMULTIPLESELECTION = 2563, +
    +  SCI_GETMULTIPLESELECTION = 2564, +SCI_SETADDITIONALSELECTIONTYPING = 2565, +SCI_GETADDITIONALSELECTIONTYPING = 2566, +
    +  SCI_SETADDITIONALCARETSBLINK = 2567, +SCI_GETADDITIONALCARETSBLINK = 2568, +SCI_SCROLLRANGE = 2569, +
    +  SCI_SETADDITIONALCARETSVISIBLE = 2608, +SCI_GETADDITIONALCARETSVISIBLE = 2609, +SCI_AUTOCGETCURRENTTEXT = 2610, +
    +  SCI_GETSELECTIONS = 2570, +SCI_CLEARSELECTIONS = 2571, +SCI_SETSELECTION = 2572, +
    +  SCI_ADDSELECTION = 2573, +SCI_SETMAINSELECTION = 2574, +SCI_GETMAINSELECTION = 2575, +
    +  SCI_SETSELECTIONNCARET = 2576, +SCI_GETSELECTIONNCARET = 2577, +SCI_SETSELECTIONNANCHOR = 2578, +
    +  SCI_GETSELECTIONNANCHOR = 2579, +SCI_SETSELECTIONNCARETVIRTUALSPACE = 2580, +SCI_GETSELECTIONNCARETVIRTUALSPACE = 2581, +
    +  SCI_SETSELECTIONNANCHORVIRTUALSPACE = 2582, +SCI_GETSELECTIONNANCHORVIRTUALSPACE = 2583, +SCI_SETSELECTIONNSTART = 2584, +
    +  SCI_GETSELECTIONNSTART = 2585, +SCI_SETSELECTIONNEND = 2586, +SCI_GETSELECTIONNEND = 2587, +
    +  SCI_SETRECTANGULARSELECTIONCARET = 2588, +SCI_GETRECTANGULARSELECTIONCARET = 2589, +SCI_SETRECTANGULARSELECTIONANCHOR = 2590, +
    +  SCI_GETRECTANGULARSELECTIONANCHOR = 2591, +SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2592, +SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2593, +
    +  SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2594, +SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2595, +SCI_SETVIRTUALSPACEOPTIONS = 2596, +
    +  SCI_GETVIRTUALSPACEOPTIONS = 2597, +SCI_SETRECTANGULARSELECTIONMODIFIER = 2598, +SCI_GETRECTANGULARSELECTIONMODIFIER = 2599, +
    +  SCI_SETADDITIONALSELFORE = 2600, +SCI_SETADDITIONALSELBACK = 2601, +SCI_SETADDITIONALSELALPHA = 2602, +
    +  SCI_GETADDITIONALSELALPHA = 2603, +SCI_SETADDITIONALCARETFORE = 2604, +SCI_GETADDITIONALCARETFORE = 2605, +
    +  SCI_ROTATESELECTION = 2606, +SCI_SWAPMAINANCHORCARET = 2607, +SCI_SETFONTQUALITY = 2611, +
    +  SCI_GETFONTQUALITY = 2612, +SCI_SETFIRSTVISIBLELINE = 2613, +SCI_SETMULTIPASTE = 2614, +
    +  SCI_GETMULTIPASTE = 2615, +SCI_GETTAG = 2616, +SCI_CHANGELEXERSTATE = 2617, +
    +  SCI_CONTRACTEDFOLDNEXT = 2618, +SCI_VERTICALCENTRECARET = 2619, +SCI_MOVESELECTEDLINESUP = 2620, +
    +  SCI_MOVESELECTEDLINESDOWN = 2621, +SCI_SETIDENTIFIER = 2622, +SCI_GETIDENTIFIER = 2623, +
    +  SCI_RGBAIMAGESETWIDTH = 2624, +SCI_RGBAIMAGESETHEIGHT = 2625, +SCI_MARKERDEFINERGBAIMAGE = 2626, +
    +  SCI_REGISTERRGBAIMAGE = 2627, +SCI_SCROLLTOSTART = 2628, +SCI_SCROLLTOEND = 2629, +
    +  SCI_SETTECHNOLOGY = 2630, +SCI_GETTECHNOLOGY = 2631, +SCI_CREATELOADER = 2632, +
    +  SCI_COUNTCHARACTERS = 2633, +SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR = 2634, +SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR = 2635, +
    +  SCI_FINDINDICATORSHOW = 2640, +SCI_FINDINDICATORFLASH = 2641, +SCI_FINDINDICATORHIDE = 2642, +
    +  SCI_GETRANGEPOINTER = 2643, +SCI_GETGAPPOSITION = 2644, +SCI_DELETERANGE = 2645, +
    +  SCI_GETWORDCHARS = 2646, +SCI_GETWHITESPACECHARS = 2647, +SCI_SETPUNCTUATIONCHARS = 2648, +
    +  SCI_GETPUNCTUATIONCHARS = 2649, +SCI_GETSELECTIONEMPTY = 2650, +SCI_RGBAIMAGESETSCALE = 2651, +
    +  SCI_VCHOMEDISPLAY = 2652, +SCI_GETCARETLINEVISIBLEALWAYS = 2654, +SCI_SETCARETLINEVISIBLEALWAYS = 2655, +
    +  SCI_VCHOMEDISPLAYEXTEND = 2653, +SCI_AUTOCSETORDER = 2660, +SCI_AUTOCGETORDER = 2661, +
    +  SCI_FOLDALL = 2662, +SCI_SETAUTOMATICFOLD = 2663, +SCI_GETAUTOMATICFOLD = 2664, +
    +  SCI_SETREPRESENTATION = 2665, +SCI_GETREPRESENTATION = 2666, +SCI_CLEARREPRESENTATION = 2667, +
    +  SCI_SETMOUSESELECTIONRECTANGULARSWITCH = 2668, +SCI_GETMOUSESELECTIONRECTANGULARSWITCH = 2669, +SCI_POSITIONRELATIVE = 2670, +
    +  SCI_STARTRECORD = 3001, +SCI_STOPRECORD = 3002, +SCI_SETLEXER = 4001, +
    +  SCI_GETLEXER = 4002, +SCI_COLOURISE = 4003, +SCI_SETPROPERTY = 4004, +
    +  SCI_SETKEYWORDS = 4005, +SCI_SETLEXERLANGUAGE = 4006, +SCI_LOADLEXERLIBRARY = 4007, +
    +  SCI_GETPROPERTY = 4008, +SCI_GETPROPERTYEXPANDED = 4009, +SCI_GETPROPERTYINT = 4010, +
    +  SCI_GETSTYLEBITSNEEDED = 4011, +SCI_GETLEXERLANGUAGE = 4012, +SCI_PRIVATELEXERCALL = 4013, +
    +  SCI_PROPERTYNAMES = 4014, +SCI_PROPERTYTYPE = 4015, +SCI_DESCRIBEPROPERTY = 4016, +
    +  SCI_DESCRIBEKEYWORDSETS = 4017 +
    + } +
  • enum { SC_ALPHA_TRANSPARENT = 0, +SC_ALPHA_OPAQUE = 255, +SC_ALPHA_NOALPHA = 256 + } +
  • enum { SC_CARETSTICKY_OFF = 0, +SC_CARETSTICKY_ON = 1, +SC_CARETSTICKY_WHITESPACE = 2 + } +
  • enum {
    +  SC_EFF_QUALITY_MASK = 0x0f, +SC_EFF_QUALITY_DEFAULT = 0, +SC_EFF_QUALITY_NON_ANTIALIASED = 1, +
    +  SC_EFF_QUALITY_ANTIALIASED = 2, +SC_EFF_QUALITY_LCD_OPTIMIZED = 3 +
    + } +
  • enum { SC_MARGINOPTION_NONE = 0x00, +SC_MARGINOPTION_SUBLINESELECT = 0x01 + } +
  • enum { SC_MULTIPASTE_ONCE = 0, +SC_MULTIPASTE_EACH = 1 + } +
  • enum { SC_TYPE_BOOLEAN = 0, +SC_TYPE_INTEGER = 1, +SC_TYPE_STRING = 2 + } +
  • enum {
    +  SC_UPDATE_CONTENT = 0x01, +SC_UPDATE_SELECTION = 0x02, +SC_UPDATE_V_SCROLL = 0x04, +
    +  SC_UPDATE_H_SCROLL = 0x08 +
    + } +
  • enum {
    +  SC_WRAPVISUALFLAG_NONE = 0x0000, +SC_WRAPVISUALFLAG_END = 0x0001, +SC_WRAPVISUALFLAG_START = 0x0002, +
    +  SC_WRAPVISUALFLAG_MARGIN = 0x0004 +
    + } +
  • enum { SC_WRAPVISUALFLAGLOC_DEFAULT = 0x0000, +SC_WRAPVISUALFLAGLOC_END_BY_TEXT = 0x0001, +SC_WRAPVISUALFLAGLOC_START_BY_TEXT = 0x0002 + } +
  • enum {
    +  SC_SEL_STREAM = 0, +SC_SEL_RECTANGLE = 1, +SC_SEL_LINES = 2, +
    +  SC_SEL_THIN = 3 +
    + } +
  • enum { SCVS_NONE = 0, +SCVS_RECTANGULARSELECTION = 1, +SCVS_USERACCESSIBLE = 2 + } +
  • enum { SCWS_INVISIBLE = 0, +SCWS_VISIBLEALWAYS = 1, +SCWS_VISIBLEAFTERINDENT = 2 + } +
  • enum { SC_EOL_CRLF = 0, +SC_EOL_CR = 1, +SC_EOL_LF = 2 + } +
  • enum { SC_CP_DBCS = 1, +SC_CP_UTF8 = 65001 + } +
  • enum {
    +  SC_MARK_CIRCLE = 0, +SC_MARK_ROUNDRECT = 1, +SC_MARK_ARROW = 2, +
    +  SC_MARK_SMALLRECT = 3, +SC_MARK_SHORTARROW = 4, +SC_MARK_EMPTY = 5, +
    +  SC_MARK_ARROWDOWN = 6, +SC_MARK_MINUS = 7, +SC_MARK_PLUS = 8, +
    +  SC_MARK_VLINE = 9, +SC_MARK_LCORNER = 10, +SC_MARK_TCORNER = 11, +
    +  SC_MARK_BOXPLUS = 12, +SC_MARK_BOXPLUSCONNECTED = 13, +SC_MARK_BOXMINUS = 14, +
    +  SC_MARK_BOXMINUSCONNECTED = 15, +SC_MARK_LCORNERCURVE = 16, +SC_MARK_TCORNERCURVE = 17, +
    +  SC_MARK_CIRCLEPLUS = 18, +SC_MARK_CIRCLEPLUSCONNECTED = 19, +SC_MARK_CIRCLEMINUS = 20, +
    +  SC_MARK_CIRCLEMINUSCONNECTED = 21, +SC_MARK_BACKGROUND = 22, +SC_MARK_DOTDOTDOT = 23, +
    +  SC_MARK_ARROWS = 24, +SC_MARK_PIXMAP = 25, +SC_MARK_FULLRECT = 26, +
    +  SC_MARK_LEFTRECT = 27, +SC_MARK_AVAILABLE = 28, +SC_MARK_UNDERLINE = 29, +
    +  SC_MARK_RGBAIMAGE = 30, +SC_MARK_CHARACTER = 10000 +
    + } +
  • enum {
    +  SC_MARKNUM_FOLDEREND = 25, +SC_MARKNUM_FOLDEROPENMID = 26, +SC_MARKNUM_FOLDERMIDTAIL = 27, +
    +  SC_MARKNUM_FOLDERTAIL = 28, +SC_MARKNUM_FOLDERSUB = 29, +SC_MARKNUM_FOLDER = 30, +
    +  SC_MARKNUM_FOLDEROPEN = 31, +SC_MASK_FOLDERS = 0xfe000000 +
    + } +
  • enum {
    +  SC_MARGIN_SYMBOL = 0, +SC_MARGIN_NUMBER = 1, +SC_MARGIN_BACK = 2, +
    +  SC_MARGIN_FORE = 3, +SC_MARGIN_TEXT = 4, +SC_MARGIN_RTEXT = 5 +
    + } +
  • enum {
    +  STYLE_DEFAULT = 32, +STYLE_LINENUMBER = 33, +STYLE_BRACELIGHT = 34, +
    +  STYLE_BRACEBAD = 35, +STYLE_CONTROLCHAR = 36, +STYLE_INDENTGUIDE = 37, +
    +  STYLE_CALLTIP = 38, +STYLE_LASTPREDEFINED = 39, +STYLE_MAX = 255 +
    + } +
  • enum {
    +  SC_CHARSET_ANSI = 0, +SC_CHARSET_DEFAULT = 1, +SC_CHARSET_BALTIC = 186, +
    +  SC_CHARSET_CHINESEBIG5 = 136, +SC_CHARSET_EASTEUROPE = 238, +SC_CHARSET_GB2312 = 134, +
    +  SC_CHARSET_GREEK = 161, +SC_CHARSET_HANGUL = 129, +SC_CHARSET_MAC = 77, +
    +  SC_CHARSET_OEM = 255, +SC_CHARSET_RUSSIAN = 204, +SC_CHARSET_SHIFTJIS = 128, +
    +  SC_CHARSET_SYMBOL = 2, +SC_CHARSET_TURKISH = 162, +SC_CHARSET_JOHAB = 130, +
    +  SC_CHARSET_HEBREW = 177, +SC_CHARSET_ARABIC = 178, +SC_CHARSET_VIETNAMESE = 163, +
    +  SC_CHARSET_THAI = 222, +SC_CHARSET_8859_15 = 1000 +
    + } +
  • enum { SC_CASE_MIXED = 0, +SC_CASE_UPPER = 1, +SC_CASE_LOWER = 2 + } +
  • enum {
    +  SC_IV_NONE = 0, +SC_IV_REAL = 1, +SC_IV_LOOKFORWARD = 2, +
    +  SC_IV_LOOKBOTH = 3 +
    + } +
  • enum {
    +  INDIC_PLAIN = 0, +INDIC_SQUIGGLE = 1, +INDIC_TT = 2, +
    +  INDIC_DIAGONAL = 3, +INDIC_STRIKE = 4, +INDIC_HIDDEN = 5, +
    +  INDIC_BOX = 6, +INDIC_ROUNDBOX = 7, +INDIC_STRAIGHTBOX = 8, +
    +  INDIC_DASH = 9, +INDIC_DOTS = 10, +INDIC_SQUIGGLELOW = 11, +
    +  INDIC_DOTBOX = 12, +INDIC_SQUIGGLEPIXMAP = 13, +INDIC_COMPOSITIONTHICK = 14, +
    +  INDIC_CONTAINER = 8, +INDIC_MAX = 31, +INDIC0_MASK = 0x20, +
    +  INDIC1_MASK = 0x40, +INDIC2_MASK = 0x80, +INDICS_MASK = 0xe0 +
    + } +
  • enum {
    +  SC_PRINT_NORMAL = 0, +SC_PRINT_INVERTLIGHT = 1, +SC_PRINT_BLACKONWHITE = 2, +
    +  SC_PRINT_COLOURONWHITE = 3, +SC_PRINT_COLOURONWHITEDEFAULTBG = 4 +
    + } +
  • enum {
    +  SCFIND_WHOLEWORD = 2, +SCFIND_MATCHCASE = 4, +SCFIND_WORDSTART = 0x00100000, +
    +  SCFIND_REGEXP = 0x00200000, +SCFIND_POSIX = 0x00400000 +
    + } +
  • enum {
    +  SC_FOLDLEVELBASE = 0x00400, +SC_FOLDLEVELWHITEFLAG = 0x01000, +SC_FOLDLEVELHEADERFLAG = 0x02000, +
    +  SC_FOLDLEVELNUMBERMASK = 0x00fff +
    + } +
  • enum {
    +  SC_FOLDFLAG_LINEBEFORE_EXPANDED = 0x0002, +SC_FOLDFLAG_LINEBEFORE_CONTRACTED = 0x0004, +SC_FOLDFLAG_LINEAFTER_EXPANDED = 0x0008, +
    +  SC_FOLDFLAG_LINEAFTER_CONTRACTED = 0x0010, +SC_FOLDFLAG_LEVELNUMBERS = 0x0040 +
    + } +
  • enum { SC_TIME_FOREVER = 10000000 + } +
  • enum { SC_WRAP_NONE = 0, +SC_WRAP_WORD = 1, +SC_WRAP_CHAR = 2 + } +
  • enum { SC_WRAPINDENT_FIXED = 0, +SC_WRAPINDENT_SAME = 1, +SC_WRAPINDENT_INDENT = 2 + } +
  • enum {
    +  SC_CACHE_NONE = 0, +SC_CACHE_CARET = 1, +SC_CACHE_PAGE = 2, +
    +  SC_CACHE_DOCUMENT = 3 +
    + } +
  • enum { ANNOTATION_HIDDEN = 0, +ANNOTATION_STANDARD = 1, +ANNOTATION_BOXED = 2 + } +
  • enum { EDGE_NONE = 0, +EDGE_LINE = 1, +EDGE_BACKGROUND = 2 + } +
  • enum {
    +  SC_CURSORNORMAL = -1, +SC_CURSORARROW = 2, +SC_CURSORWAIT = 4, +
    +  SC_CURSORREVERSEARROW = 7 +
    + } +
  • enum { UNDO_MAY_COALESCE = 1 + } +
  • enum { VISIBLE_SLOP = 0x01, +VISIBLE_STRICT = 0x04 + } +
  • enum {
    +  CARET_SLOP = 0x01, +CARET_STRICT = 0x04, +CARET_JUMPS = 0x10, +
    +  CARET_EVEN = 0x08 +
    + } +
  • enum { CARETSTYLE_INVISIBLE = 0, +CARETSTYLE_LINE = 1, +CARETSTYLE_BLOCK = 2 + } +
  • enum {
    +  SC_MOD_INSERTTEXT = 0x1, +SC_MOD_DELETETEXT = 0x2, +SC_MOD_CHANGESTYLE = 0x4, +
    +  SC_MOD_CHANGEFOLD = 0x8, +SC_PERFORMED_USER = 0x10, +SC_PERFORMED_UNDO = 0x20, +
    +  SC_PERFORMED_REDO = 0x40, +SC_MULTISTEPUNDOREDO = 0x80, +SC_LASTSTEPINUNDOREDO = 0x100, +
    +  SC_MOD_CHANGEMARKER = 0x200, +SC_MOD_BEFOREINSERT = 0x400, +SC_MOD_BEFOREDELETE = 0x800, +
    +  SC_MULTILINEUNDOREDO = 0x1000, +SC_STARTACTION = 0x2000, +SC_MOD_CHANGEINDICATOR = 0x4000, +
    +  SC_MOD_CHANGELINESTATE = 0x8000, +SC_MOD_CHANGEMARGIN = 0x10000, +SC_MOD_CHANGEANNOTATION = 0x20000, +
    +  SC_MOD_CONTAINER = 0x40000, +SC_MOD_LEXERSTATE = 0x80000, +SC_MODEVENTMASKALL = 0xfffff +
    + } +
  • enum {
    +  SCK_DOWN = 300, +SCK_UP = 301, +SCK_LEFT = 302, +
    +  SCK_RIGHT = 303, +SCK_HOME = 304, +SCK_END = 305, +
    +  SCK_PRIOR = 306, +SCK_NEXT = 307, +SCK_DELETE = 308, +
    +  SCK_INSERT = 309, +SCK_ESCAPE = 7, +SCK_BACK = 8, +
    +  SCK_TAB = 9, +SCK_RETURN = 13, +SCK_ADD = 310, +
    +  SCK_SUBTRACT = 311, +SCK_DIVIDE = 312, +SCK_WIN = 313, +
    +  SCK_RWIN = 314, +SCK_MENU = 315 +
    + } +
  • enum {
    +  SCMOD_NORM = 0, +SCMOD_SHIFT = 1, +SCMOD_CTRL = 2, +
    +  SCMOD_ALT = 4, +SCMOD_SUPER = 8, +SCMOD_META = 16 +
    + } +
  • enum {
    +  SCLEX_CONTAINER = 0, +SCLEX_NULL = 1, +SCLEX_PYTHON = 2, +
    +  SCLEX_CPP = 3, +SCLEX_HTML = 4, +SCLEX_XML = 5, +
    +  SCLEX_PERL = 6, +SCLEX_SQL = 7, +SCLEX_VB = 8, +
    +  SCLEX_PROPERTIES = 9, +SCLEX_ERRORLIST = 10, +SCLEX_MAKEFILE = 11, +
    +  SCLEX_BATCH = 12, +SCLEX_LATEX = 14, +SCLEX_LUA = 15, +
    +  SCLEX_DIFF = 16, +SCLEX_CONF = 17, +SCLEX_PASCAL = 18, +
    +  SCLEX_AVE = 19, +SCLEX_ADA = 20, +SCLEX_LISP = 21, +
    +  SCLEX_RUBY = 22, +SCLEX_EIFFEL = 23, +SCLEX_EIFFELKW = 24, +
    +  SCLEX_TCL = 25, +SCLEX_NNCRONTAB = 26, +SCLEX_BULLANT = 27, +
    +  SCLEX_VBSCRIPT = 28, +SCLEX_ASP = SCLEX_HTML, +SCLEX_PHP = SCLEX_HTML, +
    +  SCLEX_BAAN = 31, +SCLEX_MATLAB = 32, +SCLEX_SCRIPTOL = 33, +
    +  SCLEX_ASM = 34, +SCLEX_CPPNOCASE = 35, +SCLEX_FORTRAN = 36, +
    +  SCLEX_F77 = 37, +SCLEX_CSS = 38, +SCLEX_POV = 39, +
    +  SCLEX_LOUT = 40, +SCLEX_ESCRIPT = 41, +SCLEX_PS = 42, +
    +  SCLEX_NSIS = 43, +SCLEX_MMIXAL = 44, +SCLEX_CLW = 45, +
    +  SCLEX_CLWNOCASE = 46, +SCLEX_LOT = 47, +SCLEX_YAML = 48, +
    +  SCLEX_TEX = 49, +SCLEX_METAPOST = 50, +SCLEX_POWERBASIC = 51, +
    +  SCLEX_FORTH = 52, +SCLEX_ERLANG = 53, +SCLEX_OCTAVE = 54, +
    +  SCLEX_MSSQL = 55, +SCLEX_VERILOG = 56, +SCLEX_KIX = 57, +
    +  SCLEX_GUI4CLI = 58, +SCLEX_SPECMAN = 59, +SCLEX_AU3 = 60, +
    +  SCLEX_APDL = 61, +SCLEX_BASH = 62, +SCLEX_ASN1 = 63, +
    +  SCLEX_VHDL = 64, +SCLEX_CAML = 65, +SCLEX_BLITZBASIC = 66, +
    +  SCLEX_PUREBASIC = 67, +SCLEX_HASKELL = 68, +SCLEX_PHPSCRIPT = 69, +
    +  SCLEX_TADS3 = 70, +SCLEX_REBOL = 71, +SCLEX_SMALLTALK = 72, +
    +  SCLEX_FLAGSHIP = 73, +SCLEX_CSOUND = 74, +SCLEX_FREEBASIC = 75, +
    +  SCLEX_INNOSETUP = 76, +SCLEX_OPAL = 77, +SCLEX_SPICE = 78, +
    +  SCLEX_D = 79, +SCLEX_CMAKE = 80, +SCLEX_GAP = 81, +
    +  SCLEX_PLM = 82, +SCLEX_PROGRESS = 83, +SCLEX_ABAQUS = 84, +
    +  SCLEX_ASYMPTOTE = 85, +SCLEX_R = 86, +SCLEX_MAGIK = 87, +
    +  SCLEX_POWERSHELL = 88, +SCLEX_MYSQL = 89, +SCLEX_PO = 90, +
    +  SCLEX_TAL = 91, +SCLEX_COBOL = 92, +SCLEX_TACL = 93, +
    +  SCLEX_SORCUS = 94, +SCLEX_POWERPRO = 95, +SCLEX_NIMROD = 96, +
    +  SCLEX_SML = 97, +SCLEX_MARKDOWN = 98, +SCLEX_TXT2TAGS = 99, +
    +  SCLEX_A68K = 100, +SCLEX_MODULA = 101, +SCLEX_COFFEESCRIPT = 102, +
    +  SCLEX_TCMD = 103, +SCLEX_AVS = 104, +SCLEX_ECL = 105, +
    +  SCLEX_OSCRIPT = 106, +SCLEX_VISUALPROLOG = 107, +SCLEX_LITERATEHASKELL = 108, +
    +  SCLEX_STTXT = 109, +SCLEX_KVIRC = 110, +SCLEX_RUST = 111 +
    + } +
  • enum { SC_WEIGHT_NORMAL = 400, +SC_WEIGHT_SEMIBOLD = 600, +SC_WEIGHT_BOLD = 700 + } +
  • enum { SC_TECHNOLOGY_DEFAULT = 0, +SC_TECHNOLOGY_DIRECTWRITE = 1 + } +
  • enum { SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE = 0, +SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE = 1 + } +
  • enum { SC_FONT_SIZE_MULTIPLIER = 100 + } +
  • enum { SC_FOLDACTION_CONTRACT = 0, +SC_FOLDACTION_EXPAND = 1, +SC_FOLDACTION_TOGGLE = 2 + } +
  • enum { SC_AUTOMATICFOLD_SHOW = 0x0001, +SC_AUTOMATICFOLD_CLICK = 0x0002, +SC_AUTOMATICFOLD_CHANGE = 0x0004 + } +
  • enum { SC_ORDER_PRESORTED = 0, +SC_ORDER_PERFORMSORT = 1, +SC_ORDER_CUSTOM = 2 + } +
+

+Signals

+ +

+Public Member Functions

+
    +
  • +QsciScintillaBase (QWidget *parent=0) +
  • +virtual ~QsciScintillaBase () +
  • long SendScintilla (unsigned int msg, unsigned long wParam=0, long lParam=0) const +
  • long SendScintilla (unsigned int msg, unsigned long wParam, void *lParam) const +
  • long SendScintilla (unsigned int msg, unsigned long wParam, const char *lParam) const +
  • long SendScintilla (unsigned int msg, const char *lParam) const +
  • long SendScintilla (unsigned int msg, const char *wParam, const char *lParam) const +
  • long SendScintilla (unsigned int msg, long wParam) const +
  • long SendScintilla (unsigned int msg, int wParam) const +
  • long SendScintilla (unsigned int msg, long cpMin, long cpMax, char *lpstrText) const +
  • long SendScintilla (unsigned int msg, unsigned long wParam, const QColor &col) const +
  • long SendScintilla (unsigned int msg, const QColor &col) const +
  • long SendScintilla (unsigned int msg, unsigned long wParam, QPainter *hdc, const QRect &rc, long cpMin, long cpMax) const +
  • long SendScintilla (unsigned int msg, unsigned long wParam, const QPixmap &lParam) const +
  • long SendScintilla (unsigned int msg, unsigned long wParam, const QImage &lParam) const +
  • +void * SendScintillaPtrResult (unsigned int msg) const +
+

+Static Public Member Functions

+ +

+Protected Types

+
    +
  • +typedef QByteArray ScintillaBytes +
+

+Protected Member Functions

+ +

Detailed Description

+

The QsciScintillaBase class implements the Scintilla editor widget and its low-level API.

+

Scintilla (http://www.scintilla.org) is a powerful C++ editor class that supports many features including syntax styling, error indicators, code completion and call tips. It is particularly useful as a programmer's editor.

+

QsciScintillaBase is a port to Qt of Scintilla. It implements the standard Scintilla API which consists of a number of messages each taking up to two arguments.

+

See QsciScintilla for the implementation of a higher level API that is more consistent with the rest of the Qt toolkit.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+

The low-level Scintilla API is implemented as a set of messages each of which takes up to two parameters (wParam and lParam) and optionally return a value. This enum defines all the possible messages.

+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SCI_ADDTEXT  +

This message appends some text to the end of the document. wParam is the length of the text. lParam is the text to be appended.

+
SCI_GETCURRENTPOS  +

This message returns the current position.

+
See also:
SCI_SETCURRENTPOS
+
SCI_GETANCHOR  +

This message returns the anchor.

+
See also:
SCI_SETANCHOR
+
SCI_SETSAVEPOINT  +

This message marks the current state of the text as the the save point. This is usually done when the text is saved or loaded.

+
See also:
SCN_SAVEPOINTREACHED(), SCN_SAVEPOINTLEFT()
+
SCI_MARKERLINEFROMHANDLE  +

This message returns the line that contains a particular instance of a marker. wParam is the handle of the marker.

+
See also:
SCI_MARKERADD
+
SCI_MARKERDELETEHANDLE  +

This message removes a particular instance of a marker. wParam is the handle of the marker.

+
See also:
SCI_MARKERADD
+
SCI_GOTOPOS  +

This message clears the current selection and sets the current position. wParam is the new current position.

+
See also:
SCI_SETCURRENTPOS
+
SCI_SETANCHOR  +

This message sets the anchor. wParam is the new anchor.

+
See also:
SCI_GETANCHOR
+
SCI_GETENDSTYLED  +

This message returns the character position of the start of the text that needs to be syntax styled.

+
See also:
SCN_STYLENEEDED()
+
SCI_MARKERDEFINE  +

This message sets the symbol used to draw one of 32 markers. Some markers have pre-defined uses, see the SC_MARKNUM_* values. wParam is the number of the marker. lParam is the marker symbol and is one of the SC_MARK_* values.

+
See also:
SCI_MARKERADD, SCI_MARKERDEFINEPIXMAP, SCI_MARKERDEFINERGBAIMAGE
+
SCI_MARKERSETFORE  +

This message sets the foreground colour used to draw a marker. A colour is represented as a 24 bit value. The 8 least significant bits correspond to red, the middle 8 bits correspond to green, and the 8 most significant bits correspond to blue. The default value is 0x000000. wParam is the number of the marker. lParam is the colour.

+
See also:
SCI_MARKERSETBACK
+
SCI_MARKERSETBACK  +

This message sets the background colour used to draw a marker. A colour is represented as a 24 bit value. The 8 least significant bits correspond to red, the middle 8 bits correspond to green, and the 8 most significant bits correspond to blue. The default value is 0xffffff. wParam is the number of the marker. lParam is the colour.

+
See also:
SCI_MARKERSETFORE
+
SCI_MARKERADD  +

This message adds a marker to a line. A handle for the marker is returned which can be used to track the marker's position. wParam is the line number. lParam is the number of the marker.

+
See also:
SCI_MARKERDELETE, SCI_MARKERDELETEALL, SCI_MARKERDELETEHANDLE
+
SCI_MARKERDELETE  +

This message deletes a marker from a line. wParam is the line number. lParam is the number of the marker.

+
See also:
SCI_MARKERADD, SCI_MARKERDELETEALL
+
SCI_MARKERDELETEALL  +

This message deletes all occurences of a marker. wParam is the number of the marker. If wParam is -1 then all markers are removed.

+
See also:
SCI_MARKERADD, SCI_MARKERDELETE
+
SCI_MARKERGET  +

This message returns the 32 bit mask of markers at a line. wParam is the line number.

+
SCI_MARKERNEXT  +

This message looks for the next line to contain at least one marker contained in a 32 bit mask of markers and returns the line number. wParam is the line number to start the search from. lParam is the mask of markers to search for.

+
See also:
SCI_MARKERPREVIOUS
+
SCI_MARKERPREVIOUS  +

This message looks for the previous line to contain at least one marker contained in a 32 bit mask of markers and returns the line number. wParam is the line number to start the search from. lParam is the mask of markers to search for.

+
See also:
SCI_MARKERNEXT
+
SCI_MARKERDEFINEPIXMAP  +

This message sets the symbol used to draw one of the 32 markers to a pixmap. Pixmaps use the SC_MARK_PIXMAP marker symbol. wParam is the number of the marker. lParam is a pointer to a QPixmap instance. Note that in other ports of Scintilla this is a pointer to either raw or textual XPM image data.

+
See also:
SCI_MARKERDEFINE, SCI_MARKERDEFINERGBAIMAGE
+
SCI_SETMARGINTYPEN  +

This message sets what can be displayed in a margin. wParam is the number of the margin. lParam is the logical or of the SC_MARGIN_* values.

+
See also:
SCI_GETMARGINTYPEN
+
SCI_GETMARGINTYPEN  +

This message returns what can be displayed in a margin. wParam is the number of the margin.

+
See also:
SCI_SETMARGINTYPEN
+
SCI_SETMARGINWIDTHN  +

This message sets the width of a margin in pixels. wParam is the number of the margin. lParam is the new margin width.

+
See also:
SCI_GETMARGINWIDTHN
+
SCI_GETMARGINWIDTHN  +

This message returns the width of a margin in pixels. wParam is the number of the margin.

+
See also:
SCI_SETMARGINWIDTHN
+
SCI_SETMARGINMASKN  +

This message sets the mask of a margin. The mask is a 32 value with one bit for each possible marker. If a bit is set then the corresponding marker is displayed. By default, all markers are displayed. wParam is the number of the margin. lParam is the new margin mask.

+
See also:
SCI_GETMARGINMASKN, SCI_MARKERDEFINE
+
SCI_GETMARGINMASKN  +

This message returns the mask of a margin. wParam is the number of the margin.

+
See also:
SCI_SETMARGINMASKN
+
SCI_SETMARGINSENSITIVEN  +

This message sets the sensitivity of a margin to mouse clicks. wParam is the number of the margin. lParam is non-zero to make the margin sensitive to mouse clicks. When the mouse is clicked the SCN_MARGINCLICK() signal is emitted.

+
See also:
SCI_GETMARGINSENSITIVEN, SCN_MARGINCLICK()
+
SCI_GETMARGINSENSITIVEN  +

This message returns the sensitivity of a margin to mouse clicks. wParam is the number of the margin.

+
See also:
SCI_SETMARGINSENSITIVEN, SCN_MARGINCLICK()
+
SCI_SETMARGINCURSORN  +

This message sets the cursor shape displayed over a margin. wParam is the number of the margin. lParam is the cursor shape, normally either SC_CURSORARROW or SC_CURSORREVERSEARROW. Note that, currently, QScintilla implements both of these as Qt::ArrowCursor.

+
See also:
SCI_GETMARGINCURSORN
+
SCI_GETMARGINCURSORN  +

This message returns the cursor shape displayed over a margin. wParam is the number of the margin.

+
See also:
SCI_SETMARGINCURSORN
+
SCI_GETREADONLY  +

This message returns a non-zero value if the document is read-only.

+
See also:
SCI_SETREADONLY
+
SCI_SETCURRENTPOS  +

This message sets the current position. wParam is the new current position.

+
See also:
SCI_GETCURRENTPOS
+
SCI_GETMODIFY  +

This message returns a non-zero value if the document has been modified.

+
SCI_SETREADONLY  +

This message sets the read-only state of the document. wParam is the new read-only state of the document.

+
See also:
SCI_GETREADONLY
+
SCI_EMPTYUNDOBUFFER  +

This message empties the undo buffer.

+
SCI_SETTEXT  +

This message sets the text of the document. wParam is unused. lParam is the new text of the document.

+
See also:
SCI_GETTEXT
+
SCI_GETTEXT  +

This message gets the text of the document. wParam is size of the buffer that the text is copied to. lParam is the address of the buffer that the text is copied to.

+
See also:
SCI_SETTEXT
+
SCI_GETTEXTLENGTH  +

This message returns the length of the document.

+
SCI_AUTOCSETMAXHEIGHT  +

This message is not implemented.

+
SCI_TEXTWIDTH  +

This message returns the width of some text when rendered in a particular style. wParam is the style number and is one of the STYLE_* values or one of the styles defined by a lexer. lParam is a pointer to the text.

+
SCI_REGISTERIMAGE  +

This message takes a copy of an image and registers it so that it can be refered to by a unique integer identifier. wParam is the image's identifier. lParam is a pointer to a QPixmap instance. Note that in other ports of Scintilla this is a pointer to either raw or textual XPM image data.

+
See also:
SCI_CLEARREGISTEREDIMAGES, SCI_REGISTERRGBAIMAGE
+
SCI_CLEARREGISTEREDIMAGES  +

This message de-registers all currently registered images.

+
See also:
SCI_REGISTERIMAGE, SCI_REGISTERRGBAIMAGE
+
SCI_COPYALLOWLINE  +

This message copies the selection. If the selection is empty then copy the line with the caret.

+
SCI_GETCHARACTERPOINTER  +

This message returns a pointer to the document text. Any subsequent message will invalidate the pointer.

+
SCI_RGBAIMAGESETWIDTH  +

This message sets the width of an RGBA image specified by a future call to SCI_MARKERDEFINERGBAIMAGE or SCI_REGISTERRGBAIMAGE.

+
See also:
SCI_RGBAIMAGESETHEIGHT, SCI_MARKERDEFINERGBAIMAGE, SCI_REGISTERRGBAIMAGE.
+
SCI_RGBAIMAGESETHEIGHT  +

This message sets the height of an RGBA image specified by a future call to SCI_MARKERDEFINERGBAIMAGE or SCI_REGISTERRGBAIMAGE.

+
See also:
SCI_RGBAIMAGESETWIDTH, SCI_MARKERDEFINERGBAIMAGE, SCI_REGISTERRGBAIMAGE.
+
SCI_MARKERDEFINERGBAIMAGE  +

This message sets the symbol used to draw one of the 32 markers to an RGBA image. RGBA images use the SC_MARK_RGBAIMAGE marker symbol. wParam is the number of the marker. lParam is a pointer to a QImage instance. Note that in other ports of Scintilla this is a pointer to raw RGBA image data.

+
See also:
SCI_MARKERDEFINE, SCI_MARKERDEFINEPIXMAP
+
SCI_REGISTERRGBAIMAGE  +

This message takes a copy of an image and registers it so that it can be refered to by a unique integer identifier. wParam is the image's identifier. lParam is a pointer to a QImage instance. Note that in other ports of Scintilla this is a pointer to raw RGBA image data.

+
See also:
SCI_CLEARREGISTEREDIMAGES, SCI_REGISTERIMAGE
+
SCI_SETLEXER  +

This message sets the number of the lexer to use for syntax styling. wParam is the number of the lexer and is one of the SCLEX_* values.

+
SCI_GETLEXER  +

This message returns the number of the lexer being used for syntax styling.

+
SCI_SETLEXERLANGUAGE  +

This message sets the name of the lexer to use for syntax styling. wParam is unused. lParam is the name of the lexer.

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the different selection modes.

+
See also:
SCI_GETSELECTIONMODE, SCI_SETSELECTIONMODE
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the different marker symbols.

+
See also:
SCI_MARKERDEFINE
+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SC_MARK_CIRCLE  +

A circle.

+
SC_MARK_ROUNDRECT  +

A rectangle.

+
SC_MARK_ARROW  +

A triangle pointing to the right.

+
SC_MARK_SMALLRECT  +

A smaller rectangle.

+
SC_MARK_SHORTARROW  +

An arrow pointing to the right.

+
SC_MARK_EMPTY  +

An invisible marker that allows code to track the movement of lines.

+
SC_MARK_ARROWDOWN  +

A triangle pointing down.

+
SC_MARK_MINUS  +

A drawn minus sign.

+
SC_MARK_PLUS  +

A drawn plus sign.

+
SC_MARK_VLINE  +

A vertical line drawn in the background colour.

+
SC_MARK_LCORNER  +

A bottom left corner drawn in the background colour.

+
SC_MARK_TCORNER  +

A vertical line with a centre right horizontal line drawn in the background colour.

+
SC_MARK_BOXPLUS  +

A drawn plus sign in a box.

+
SC_MARK_BOXPLUSCONNECTED  +

A drawn plus sign in a connected box.

+
SC_MARK_BOXMINUS  +

A drawn minus sign in a box.

+
SC_MARK_BOXMINUSCONNECTED  +

A drawn minus sign in a connected box.

+
SC_MARK_LCORNERCURVE  +

A rounded bottom left corner drawn in the background colour.

+
SC_MARK_TCORNERCURVE  +

A vertical line with a centre right curved line drawn in the background colour.

+
SC_MARK_CIRCLEPLUS  +

A drawn plus sign in a circle.

+
SC_MARK_CIRCLEPLUSCONNECTED  +

A drawn plus sign in a connected box.

+
SC_MARK_CIRCLEMINUS  +

A drawn minus sign in a circle.

+
SC_MARK_CIRCLEMINUSCONNECTED  +

A drawn minus sign in a connected circle.

+
SC_MARK_BACKGROUND  +

No symbol is drawn but the line is drawn with the same background color as the marker's.

+
SC_MARK_DOTDOTDOT  +

Three drawn dots.

+
SC_MARK_ARROWS  +

Three drawn arrows pointing right.

+
SC_MARK_PIXMAP  +

An XPM format pixmap.

+
SC_MARK_FULLRECT  +

A full rectangle (ie. the margin background) using the marker's background color.

+
SC_MARK_LEFTRECT  +

A left rectangle (ie. the left part of the margin background) using the marker's background color.

+
SC_MARK_AVAILABLE  +

The value is available for plugins to use.

+
SC_MARK_UNDERLINE  +

The line is underlined using the marker's background color.

+
SC_MARK_RGBAIMAGE  +

A RGBA format image.

+
SC_MARK_CHARACTER  +

Characters can be used as symbols by adding this to the ASCII value of the character.

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines what can be displayed in a margin.

+
See also:
SCI_GETMARGINTYPEN, SCI_SETMARGINTYPEN
+
Enumerator:
+ + + + + + +
SC_MARGIN_SYMBOL  +

The margin can display symbols. Note that all margins can display symbols.

+
SC_MARGIN_NUMBER  +

The margin will display line numbers.

+
SC_MARGIN_BACK  +

The margin's background color will be set to the default background color.

+
SC_MARGIN_FORE  +

The margin's background color will be set to the default foreground color.

+
SC_MARGIN_TEXT  +

The margin will display text.

+
SC_MARGIN_RTEXT  +

The margin will display right justified text.

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the different indentation guide views.

+
See also:
SCI_GETINDENTATIONGUIDES, SCI_SETINDENTATIONGUIDES
+
Enumerator:
+ + + + +
SC_IV_NONE  +

No indentation guides are shown.

+
SC_IV_REAL  +

Indentation guides are shown inside real indentation white space.

+
SC_IV_LOOKFORWARD  +

Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line. If the previous non-empty line was a fold header then indentation guides are shown for one more level of indent than that line. This setting is good for Python.

+
SC_IV_LOOKBOTH  +

Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line or previous non-empty line whichever is the greater. This setting is good for most languages.

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+ +

This enum defines the different modifier keys.

+
Enumerator:
+ + + + + + +
SCMOD_NORM  +

No modifier key.

+
SCMOD_SHIFT  +

Shift key.

+
SCMOD_CTRL  +

Control key (the Command key on OS/X, the Ctrl key on other platforms).

+
SCMOD_ALT  +

Alt key.

+
SCMOD_SUPER  +

This is the same as SCMOD_META on all platforms.

+
SCMOD_META  +

Meta key (the Ctrl key on OS/X, the Windows key on other platforms).

+
+
+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+
+

This enum defines the different language lexers.

+
See also:
SCI_GETLEXER, SCI_SETLEXER
+
Enumerator:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SCLEX_CONTAINER  +

No lexer is selected and the SCN_STYLENEEDED signal is emitted so that the application can style the text as needed. This is the default.

+
SCLEX_NULL  +

Select the null lexer that does no syntax styling.

+
SCLEX_PYTHON  +

Select the Python lexer.

+
SCLEX_CPP  +

Select the C++ lexer.

+
SCLEX_HTML  +

Select the HTML lexer.

+
SCLEX_XML  +

Select the XML lexer.

+
SCLEX_PERL  +

Select the Perl lexer.

+
SCLEX_SQL  +

Select the SQL lexer.

+
SCLEX_VB  +

Select the Visual Basic lexer.

+
SCLEX_PROPERTIES  +

Select the lexer for properties style files.

+
SCLEX_ERRORLIST  +

Select the lexer for error list style files.

+
SCLEX_MAKEFILE  +

Select the Makefile lexer.

+
SCLEX_BATCH  +

Select the Windows batch file lexer.

+
SCLEX_LATEX  +

Select the LaTex lexer.

+
SCLEX_LUA  +

Select the Lua lexer.

+
SCLEX_DIFF  +

Select the lexer for diff output.

+
SCLEX_CONF  +

Select the lexer for Apache configuration files.

+
SCLEX_PASCAL  +

Select the Pascal lexer.

+
SCLEX_AVE  +

Select the Avenue lexer.

+
SCLEX_ADA  +

Select the Ada lexer.

+
SCLEX_LISP  +

Select the Lisp lexer.

+
SCLEX_RUBY  +

Select the Ruby lexer.

+
SCLEX_EIFFEL  +

Select the Eiffel lexer.

+
SCLEX_EIFFELKW  +

Select the Eiffel lexer folding at keywords.

+
SCLEX_TCL  +

Select the Tcl lexer.

+
SCLEX_NNCRONTAB  +

Select the lexer for nnCron files.

+
SCLEX_BULLANT  +

Select the Bullant lexer.

+
SCLEX_VBSCRIPT  +

Select the VBScript lexer.

+
SCLEX_ASP  +

Select the ASP lexer.

+
SCLEX_PHP  +

Select the PHP lexer.

+
SCLEX_BAAN  +

Select the Baan lexer.

+
SCLEX_MATLAB  +

Select the Matlab lexer.

+
SCLEX_SCRIPTOL  +

Select the Scriptol lexer.

+
SCLEX_ASM  +

Select the assembler lexer.

+
SCLEX_CPPNOCASE  +

Select the C++ lexer with case insensitive keywords.

+
SCLEX_FORTRAN  +

Select the FORTRAN lexer.

+
SCLEX_F77  +

Select the FORTRAN77 lexer.

+
SCLEX_CSS  +

Select the CSS lexer.

+
SCLEX_POV  +

Select the POV lexer.

+
SCLEX_LOUT  +

Select the Basser Lout typesetting language lexer.

+
SCLEX_ESCRIPT  +

Select the EScript lexer.

+
SCLEX_PS  +

Select the PostScript lexer.

+
SCLEX_NSIS  +

Select the NSIS lexer.

+
SCLEX_MMIXAL  +

Select the MMIX assembly language lexer.

+
SCLEX_CLW  +

Select the Clarion lexer.

+
SCLEX_CLWNOCASE  +

Select the Clarion lexer with case insensitive keywords.

+
SCLEX_LOT  +

Select the MPT text log file lexer.

+
SCLEX_YAML  +

Select the YAML lexer.

+
SCLEX_TEX  +

Select the TeX lexer.

+
SCLEX_METAPOST  +

Select the Metapost lexer.

+
SCLEX_POWERBASIC  +

Select the PowerBASIC lexer.

+
SCLEX_FORTH  +

Select the Forth lexer.

+
SCLEX_ERLANG  +

Select the Erlang lexer.

+
SCLEX_OCTAVE  +

Select the Octave lexer.

+
SCLEX_MSSQL  +

Select the MS SQL lexer.

+
SCLEX_VERILOG  +

Select the Verilog lexer.

+
SCLEX_KIX  +

Select the KIX-Scripts lexer.

+
SCLEX_GUI4CLI  +

Select the Gui4Cli lexer.

+
SCLEX_SPECMAN  +

Select the Specman E lexer.

+
SCLEX_AU3  +

Select the AutoIt3 lexer.

+
SCLEX_APDL  +

Select the APDL lexer.

+
SCLEX_BASH  +

Select the Bash lexer.

+
SCLEX_ASN1  +

Select the ASN.1 lexer.

+
SCLEX_VHDL  +

Select the VHDL lexer.

+
SCLEX_CAML  +

Select the Caml lexer.

+
SCLEX_BLITZBASIC  +

Select the BlitzBasic lexer.

+
SCLEX_PUREBASIC  +

Select the PureBasic lexer.

+
SCLEX_HASKELL  +

Select the Haskell lexer.

+
SCLEX_PHPSCRIPT  +

Select the PHPScript lexer.

+
SCLEX_TADS3  +

Select the TADS3 lexer.

+
SCLEX_REBOL  +

Select the REBOL lexer.

+
SCLEX_SMALLTALK  +

Select the Smalltalk lexer.

+
SCLEX_FLAGSHIP  +

Select the FlagShip lexer.

+
SCLEX_CSOUND  +

Select the Csound lexer.

+
SCLEX_FREEBASIC  +

Select the FreeBasic lexer.

+
SCLEX_INNOSETUP  +

Select the InnoSetup lexer.

+
SCLEX_OPAL  +

Select the Opal lexer.

+
SCLEX_SPICE  +

Select the Spice lexer.

+
SCLEX_D  +

Select the D lexer.

+
SCLEX_CMAKE  +

Select the CMake lexer.

+
SCLEX_GAP  +

Select the GAP lexer.

+
SCLEX_PLM  +

Select the PLM lexer.

+
SCLEX_PROGRESS  +

Select the Progress lexer.

+
SCLEX_ABAQUS  +

Select the Abaqus lexer.

+
SCLEX_ASYMPTOTE  +

Select the Asymptote lexer.

+
SCLEX_R  +

Select the R lexer.

+
SCLEX_MAGIK  +

Select the MagikSF lexer.

+
SCLEX_POWERSHELL  +

Select the PowerShell lexer.

+
SCLEX_MYSQL  +

Select the MySQL lexer.

+
SCLEX_PO  +

Select the gettext .po file lexer.

+
SCLEX_TAL  +

Select the TAL lexer.

+
SCLEX_COBOL  +

Select the COBOL lexer.

+
SCLEX_TACL  +

Select the TACL lexer.

+
SCLEX_SORCUS  +

Select the Sorcus lexer.

+
SCLEX_POWERPRO  +

Select the PowerPro lexer.

+
SCLEX_NIMROD  +

Select the Nimrod lexer.

+
SCLEX_SML  +

Select the SML lexer.

+
SCLEX_MARKDOWN  +

Select the Markdown lexer.

+
SCLEX_TXT2TAGS  +

Select the txt2tags lexer.

+
SCLEX_A68K  +

Select the 68000 assembler lexer.

+
SCLEX_MODULA  +

Select the Modula 3 lexer.

+
SCLEX_COFFEESCRIPT  +

Select the CoffeeScript lexer.

+
SCLEX_TCMD  +

Select the Take Command lexer.

+
SCLEX_AVS  +

Select the AviSynth lexer.

+
SCLEX_ECL  +

Select the ECL lexer.

+
SCLEX_OSCRIPT  +

Select the OScript lexer.

+
SCLEX_VISUALPROLOG  +

Select the Visual Prolog lexer.

+
SCLEX_LITERATEHASKELL  +

Select the Literal Haskell lexer.

+
SCLEX_STTXT  +

Select the Structured Text lexer.

+
SCLEX_KVIRC  +

Select the KVIrc lexer.

+
SCLEX_RUST  +

Select the Rust lexer.

+
+
+
+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
static QsciScintillaBase* QsciScintillaBase::pool () [static]
+
+
+

Returns a pointer to a QsciScintillaBase instance, or 0 if there isn't one. This can be used by the higher level API to send messages that aren't associated with a particular instance.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam = 0,
long lParam = 0 
) const
+
+
+

Send the Scintilla message msg with the optional parameters wParam and lParam.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
void * lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
const char * lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
const char * lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
const char * wParam,
const char * lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
long wParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
int wParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
long cpMin,
long cpMax,
char * lpstrText 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
const QColor & col 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
const QColor & col 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
QPainter * hdc,
const QRect & rc,
long cpMin,
long cpMax 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
const QPixmap & lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
long QsciScintillaBase::SendScintilla (unsigned int msg,
unsigned long wParam,
const QImage & lParam 
) const
+
+
+

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintillaBase::QSCN_SELCHANGED (bool yes) [signal]
+
+
+

This signal is emitted when text is selected or de-selected. yes is true if text has been selected and false if text has been deselected.

+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_AUTOCCANCELLED () [signal]
+
+
+

This signal is emitted when the user cancels an auto-completion list.

+
See also:
SCN_AUTOCSELECTION()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_AUTOCCHARDELETED () [signal]
+
+
+

This signal is emitted when the user deletes a character when an auto-completion list is active.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_AUTOCSELECTION (const char * selection,
int position 
) [signal]
+
+
+

This signal is emitted when the user selects an item in an auto-completion list. It is emitted before the selection is inserted. The insertion can be cancelled by sending an SCI_AUTOCANCEL message from a connected slot. selection is the text of the selection. position is the start position of the word being completed.

+
See also:
SCN_AUTOCCANCELLED()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintillaBase::SCN_CALLTIPCLICK (int direction) [signal]
+
+
+

This signal ir emitted when the user clicks on a calltip. direction is 1 if the user clicked on the up arrow, 2 if the user clicked on the down arrow, and 0 if the user clicked elsewhere.

+ +
+
+ +
+
+ + + + + + + + +
void QsciScintillaBase::SCN_CHARADDED (int charadded) [signal]
+
+
+

This signal is emitted whenever the user enters an ordinary character into the text. charadded is the character. It can be used to decide to display a call tip or an auto-completion list.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_DOUBLECLICK (int position,
int line,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user double clicks. position is the position in the text where the click occured. line is the number of the line in the text where the click occured. modifiers is the logical or of the modifier keys that were pressed when the user double clicked.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_HOTSPOTCLICK (int position,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user clicks on text in a style with the hotspot attribute set. position is the position in the text where the click occured. modifiers is the logical or of the modifier keys that were pressed when the user clicked.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_HOTSPOTDOUBLECLICK (int position,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user double clicks on text in a style with the hotspot attribute set. position is the position in the text where the double click occured. modifiers is the logical or of the modifier keys that were pressed when the user double clicked.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_HOTSPOTRELEASECLICK (int position,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user releases the mouse button on text in a style with the hotspot attribute set. position is the position in the text where the release occured. modifiers is the logical or of the modifier keys that were pressed when the user released the button.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_INDICATORCLICK (int position,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user clicks on text that has an indicator. position is the position in the text where the click occured. modifiers is the logical or of the modifier keys that were pressed when the user clicked.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_INDICATORRELEASE (int position,
int modifiers 
) [signal]
+
+
+

This signal is emitted when the user releases the mouse button on text that has an indicator. position is the position in the text where the release occured. modifiers is the logical or of the modifier keys that were pressed when the user released.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_MACRORECORD (unsigned int,
unsigned long,
void *  
) [signal]
+
+
+

This signal is emitted when a recordable editor command has been executed.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void QsciScintillaBase::SCN_MARGINCLICK (int position,
int modifiers,
int margin 
) [signal]
+
+
+

This signal is emitted when the user clicks on a sensitive margin. position is the position of the start of the line against which the user clicked. modifiers is the logical or of the modifier keys that were pressed when the user clicked. margin is the number of the margin the user clicked in: 0, 1 or 2.

+
See also:
SCI_GETMARGINSENSITIVEN, SCI_SETMARGINSENSITIVEN
+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_MODIFYATTEMPTRO () [signal]
+
+
+

This signal is emitted when the user attempts to modify read-only text.

+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_PAINTED () [signal]
+
+
+

This signal is emitted when painting has been completed. It is useful to trigger some other change but to have the paint be done first to appear more reponsive to the user.

+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_SAVEPOINTLEFT () [signal]
+
+
+

This signal is emitted when the current state of the text no longer corresponds to the state of the text at the save point.

+
See also:
SCI_SETSAVEPOINT, SCN_SAVEPOINTREACHED()
+ +
+
+ +
+
+ + + + + + + +
void QsciScintillaBase::SCN_SAVEPOINTREACHED () [signal]
+
+
+

This signal is emitted when the current state of the text corresponds to the state of the text at the save point. This allows feedback to be given to the user as to whether the text has been modified since it was last saved.

+
See also:
SCI_SETSAVEPOINT, SCN_SAVEPOINTLEFT()
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintillaBase::SCN_STYLENEEDED (int position) [signal]
+
+
+

This signal is emitted when a range of text needs to be syntax styled. The range is from the value returned by the SCI_GETENDSTYLED message and position. It is only emitted if the currently selected lexer is SCLEX_CONTAINER.

+
See also:
SCI_COLOURISE, SCI_GETENDSTYLED
+ +
+
+ +
+
+ + + + + + + + +
void QsciScintillaBase::SCN_UPDATEUI (int updated) [signal]
+
+
+

This signal is emitted when either the text or styling of the text has changed or the selection range or scroll position has changed. updated contains the set of SC_UPDATE_* flags describing the changes since the signal was last emitted.

+ +
+
+ +
+
+ + + + + + + + +
virtual bool QsciScintillaBase::canInsertFromMimeData (const QMimeData * source) const [protected, virtual]
+
+
+

Returns true if the contents of a MIME data object can be decoded and inserted into the document. It is called during drag and paste operations. source is the MIME data object.

+
See also:
fromMimeData(), toMimeData()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual QByteArray QsciScintillaBase::fromMimeData (const QMimeData * source,
bool & rectangular 
) const [protected, virtual]
+
+
+

Returns the text of a MIME data object. It is called when a drag and drop is completed and when text is pasted from the clipboard. source is the MIME data object. On return rectangular is set if the text corresponds to a rectangular selection.

+
See also:
canInsertFromMimeData(), toMimeData()
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
virtual QMimeData* QsciScintillaBase::toMimeData (const QByteArray & text,
bool rectangular 
) const [protected, virtual]
+
+
+

Returns a new MIME data object containing some text and whether it corresponds to a rectangular selection. It is called when a drag and drop is started and when the selection is copied to the clipboard. Ownership of the object is passed to the caller. text is the text. rectangular is set if the text corresponds to a rectangular selection.

+
See also:
canInsertFromMimeData(), fromMimeData()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciStyle-members.html b/doc/html-Qt4Qt5/classQsciStyle-members.html new file mode 100644 index 0000000..6b087b4 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciStyle-members.html @@ -0,0 +1,96 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciStyle Member List
+
+
+This is the complete list of members for QsciStyle, including all inherited members. + + + + + + + + + + + + + + + + + + + + + + + + + + + +
apply(QsciScintillaBase *sci) const (defined in QsciStyle)QsciStyle
changeable() const QsciStyle [inline]
color() const QsciStyle [inline]
description() const QsciStyle [inline]
eolFill() const QsciStyle [inline]
font() const QsciStyle [inline]
hotspot() const QsciStyle [inline]
LowerCase enum valueQsciStyle
OriginalCase enum valueQsciStyle
paper() const QsciStyle [inline]
QsciStyle(int style=-1)QsciStyle
QsciStyle(int style, const QString &description, const QColor &color, const QColor &paper, const QFont &font, bool eolFill=false)QsciStyle
refresh()QsciStyle
setChangeable(bool changeable)QsciStyle
setColor(const QColor &color)QsciStyle
setDescription(const QString &description)QsciStyle [inline]
setEolFill(bool fill)QsciStyle
setFont(const QFont &font)QsciStyle
setHotspot(bool hotspot)QsciStyle
setPaper(const QColor &paper)QsciStyle
setTextCase(TextCase text_case)QsciStyle
setVisible(bool visible)QsciStyle
style() const QsciStyle [inline]
TextCase enum nameQsciStyle
textCase() const QsciStyle [inline]
UpperCase enum valueQsciStyle
visible() const QsciStyle [inline]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciStyle.html b/doc/html-Qt4Qt5/classQsciStyle.html new file mode 100644 index 0000000..3a61f74 --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciStyle.html @@ -0,0 +1,549 @@ + + + + +QScintilla: QsciStyle Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciStyle Class Reference
+
+
+ +

#include <qscistyle.h>

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

Detailed Description

+

The QsciStyle class encapsulates all the attributes of a style.

+

Each character of a document has an associated style which determines how the character is displayed, e.g. its font and color. A style is identified by a number. Lexers define styles for each of the language's features so that they are displayed differently. Some style numbers have hard-coded meanings, e.g. the style used for call tips.

+

Member Enumeration Documentation

+ +
+
+ + + + +
enum QsciStyle::TextCase
+
+
+

This enum defines the different ways the displayed case of the text can be changed.

+
Enumerator:
+ + + +
OriginalCase  +

The text is displayed as its original case.

+
UpperCase  +

The text is displayed as upper case.

+
LowerCase  +

The text is displayed as lower case.

+
+
+
+ +
+
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
QsciStyle::QsciStyle (int style = -1)
+
+
+

Constructs a QsciStyle instance for style number style. If style is negative then a new style number is automatically allocated.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
QsciStyle::QsciStyle (int style,
const QString & description,
const QColor & color,
const QColor & paper,
const QFont & font,
bool eolFill = false 
)
+
+
+

Constructs a QsciStyle instance for style number style. If style is negative then a new style number is automatically allocated. The styles description, color, paper color, font and end-of-line fill are set to description, color, paper, font and eolFill respectively.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
void QsciStyle::setDescription (const QString & description) [inline]
+
+
+

The style's description is set to description.

+
See also:
description()
+ +
+
+ +
+
+ + + + + + + +
QString QsciStyle::description () const [inline]
+
+
+

Returns the style's description.

+
See also:
setDescription()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setColor (const QColor & color)
+
+
+

The style's foreground color is set to color. The default is taken from the application's default palette.

+
See also:
color()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciStyle::color () const [inline]
+
+
+

Returns the style's foreground color.

+
See also:
setColor()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setPaper (const QColor & paper)
+
+
+

The style's background color is set to paper. The default is taken from the application's default palette.

+
See also:
paper()
+ +
+
+ +
+
+ + + + + + + +
QColor QsciStyle::paper () const [inline]
+
+
+

Returns the style's background color.

+
See also:
setPaper()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setFont (const QFont & font)
+
+
+

The style's font is set to font. The default is the application's default font.

+
See also:
font()
+ +
+
+ +
+
+ + + + + + + +
QFont QsciStyle::font () const [inline]
+
+
+

Returns the style's font.

+
See also:
setFont()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setEolFill (bool fill)
+
+
+

The style's end-of-line fill is set to fill. The default is false.

+
See also:
eolFill()
+ +
+
+ +
+
+ + + + + + + +
bool QsciStyle::eolFill () const [inline]
+
+
+

Returns the style's end-of-line fill.

+
See also:
setEolFill()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setTextCase (TextCase text_case)
+
+
+

The style's text case is set to text_case. The default is OriginalCase.

+
See also:
textCase()
+ +
+
+ +
+
+ + + + + + + +
TextCase QsciStyle::textCase () const [inline]
+
+
+

Returns the style's text case.

+
See also:
setTextCase()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setVisible (bool visible)
+
+
+

The style's visibility is set to visible. The default is true.

+
See also:
visible()
+ +
+
+ +
+
+ + + + + + + +
bool QsciStyle::visible () const [inline]
+
+
+

Returns the style's visibility.

+
See also:
setVisible()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setChangeable (bool changeable)
+
+
+

The style's changeability is set to changeable. The default is true.

+
See also:
changeable()
+ +
+
+ +
+
+ + + + + + + +
bool QsciStyle::changeable () const [inline]
+
+
+

Returns the style's changeability.

+
See also:
setChangeable()
+ +
+
+ +
+
+ + + + + + + + +
void QsciStyle::setHotspot (bool hotspot)
+
+
+

The style's sensitivity to mouse clicks is set to hotspot. The default is false.

+
See also:
hotspot()
+ +
+
+ +
+
+ + + + + + + +
bool QsciStyle::hotspot () const [inline]
+
+
+

Returns the style's sensitivity to mouse clicks.

+
See also:
setHotspot()
+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciStyledText-members.html b/doc/html-Qt4Qt5/classQsciStyledText-members.html new file mode 100644 index 0000000..385733c --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciStyledText-members.html @@ -0,0 +1,74 @@ + + + + +QScintilla: Member List + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
QsciStyledText Member List
+
+
+This is the complete list of members for QsciStyledText, including all inherited members. + + + + + +
apply(QsciScintillaBase *sci) const (defined in QsciStyledText)QsciStyledText
QsciStyledText(const QString &text, int style)QsciStyledText
QsciStyledText(const QString &text, const QsciStyle &style)QsciStyledText
style() const QsciStyledText
text() const QsciStyledText [inline]
+ + + + + + diff --git a/doc/html-Qt4Qt5/classQsciStyledText.html b/doc/html-Qt4Qt5/classQsciStyledText.html new file mode 100644 index 0000000..1abc1ca --- /dev/null +++ b/doc/html-Qt4Qt5/classQsciStyledText.html @@ -0,0 +1,145 @@ + + + + +QScintilla: QsciStyledText Class Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+ +
+
QsciStyledText Class Reference
+
+
+ +

#include <qscistyledtext.h>

+ +

List of all members.

+

+Public Member Functions

+ +

Detailed Description

+

The QsciStyledText class is a container for a piece of text and the style used to display the text.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciStyledText::QsciStyledText (const QString & text,
int style 
)
+
+
+

Constructs a QsciStyledText instance for text text and style number style.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
QsciStyledText::QsciStyledText (const QString & text,
const QsciStylestyle 
)
+
+
+

Constructs a QsciStyledText instance for text text and style style.

+ +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/classes.html b/doc/html-Qt4Qt5/classes.html new file mode 100644 index 0000000..22bb744 --- /dev/null +++ b/doc/html-Qt4Qt5/classes.html @@ -0,0 +1,94 @@ + + + + +QScintilla: Class Index + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
Class Index
+
+
+
A | C | D | L | M | P | S
+ + + + + + + + + + + + + + + + +
  A  
+
QsciLexerAVS   QsciLexerHTML   QsciLexerProperties   
  P  
+
QsciLexerBash   QsciLexerIDL   QsciLexerPython   
QsciAbstractAPIs   QsciLexerBatch   QsciLexerJava   QsciLexerRuby   QsciPrinter   
QsciAPIs   QsciLexerCMake   QsciLexerJavaScript   QsciLexerSpice   
  S  
+
  C  
+
QsciLexerCoffeeScript   QsciLexerLua   QsciLexerSQL   
QsciLexerCPP   QsciLexerMakefile   QsciLexerTCL   QsciScintilla   
QsciCommand   QsciLexerCSharp   QsciLexerMatlab   QsciLexerTeX   QsciScintillaBase   
QsciCommandSet   QsciLexerCSS   QsciLexerOctave   QsciLexerVerilog   QsciStyle   
  D  
+
QsciLexerCustom   QsciLexerPascal   QsciLexerVHDL   QsciStyledText   
QsciLexerD   QsciLexerPerl   QsciLexerXML   
QsciDocument   QsciLexerDiff   QsciLexerPO   QsciLexerYAML   
  L  
+
QsciLexerFortran   QsciLexerPostScript   
  M  
+
QsciLexerFortran77   QsciLexerPOV   
QsciLexer   QsciMacro   
+
A | C | D | L | M | P | S
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/closed.png b/doc/html-Qt4Qt5/closed.png new file mode 100644 index 0000000000000000000000000000000000000000..b7d4bd9fef2272c74b94762c9e2496177017775e GIT binary patch literal 126 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>1|%O$WD@{VuAVNAAr*{o?>h22DDp4|bgj*t z)u^AqcA-V@guRYpb17F<&b?_~8HV>~XqWvB;^$!VVSTy0!eQcJp_yD7TIQA>7dijs YXf6~H5cs^Q6KEiVr>mdKI;Vst0NsWqGynhq literal 0 HcmV?d00001 diff --git a/doc/html-Qt4Qt5/dir_323cc71d1ff40353d88845668e7ef2a3.html b/doc/html-Qt4Qt5/dir_323cc71d1ff40353d88845668e7ef2a3.html new file mode 100644 index 0000000..8e6c644 --- /dev/null +++ b/doc/html-Qt4Qt5/dir_323cc71d1ff40353d88845668e7ef2a3.html @@ -0,0 +1,71 @@ + + + + +QScintilla: /Users/phil/hg/QScintilla2/QScintilla-gpl-2.8.4/Qt4Qt5/ Directory Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
Qt4Qt5 Directory Reference
+
+
+

+Directories

+ +
+ + + + + + diff --git a/doc/html-Qt4Qt5/dir_f9222a1fccc2f15158792f848cf34349.html b/doc/html-Qt4Qt5/dir_f9222a1fccc2f15158792f848cf34349.html new file mode 100644 index 0000000..ede7c1d --- /dev/null +++ b/doc/html-Qt4Qt5/dir_f9222a1fccc2f15158792f848cf34349.html @@ -0,0 +1,121 @@ + + + + +QScintilla: /Users/phil/hg/QScintilla2/QScintilla-gpl-2.8.4/Qt4Qt5/Qsci/ Directory Reference + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
Qsci Directory Reference
+
+
+

+Files

+
    +
  • file qsciabstractapis.h +
  • file qsciapis.h +
  • file qscicommand.h +
  • file qscicommandset.h +
  • file qscidocument.h +
  • file qsciglobal.h +
  • file qscilexer.h +
  • file qscilexeravs.h +
  • file qscilexerbash.h +
  • file qscilexerbatch.h +
  • file qscilexercmake.h +
  • file qscilexercoffeescript.h +
  • file qscilexercpp.h +
  • file qscilexercsharp.h +
  • file qscilexercss.h +
  • file qscilexercustom.h +
  • file qscilexerd.h +
  • file qscilexerdiff.h +
  • file qscilexerfortran.h +
  • file qscilexerfortran77.h +
  • file qscilexerhtml.h +
  • file qscilexeridl.h +
  • file qscilexerjava.h +
  • file qscilexerjavascript.h +
  • file qscilexerlua.h +
  • file qscilexermakefile.h +
  • file qscilexermatlab.h +
  • file qscilexeroctave.h +
  • file qscilexerpascal.h +
  • file qscilexerperl.h +
  • file qscilexerpo.h +
  • file qscilexerpostscript.h +
  • file qscilexerpov.h +
  • file qscilexerproperties.h +
  • file qscilexerpython.h +
  • file qscilexerruby.h +
  • file qscilexerspice.h +
  • file qscilexersql.h +
  • file qscilexertcl.h +
  • file qscilexertex.h +
  • file qscilexerverilog.h +
  • file qscilexervhdl.h +
  • file qscilexerxml.h +
  • file qscilexeryaml.h +
  • file qscimacro.h +
  • file qsciprinter.h +
  • file qsciscintilla.h +
  • file qsciscintillabase.h +
  • file qscistyle.h +
  • file qscistyledtext.h +
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/dirs.html b/doc/html-Qt4Qt5/dirs.html new file mode 100644 index 0000000..0498208 --- /dev/null +++ b/doc/html-Qt4Qt5/dirs.html @@ -0,0 +1,67 @@ + + + + +QScintilla: Directories + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + +
+
+
+
Directories
+
+
+
This directory hierarchy is sorted roughly, but not completely, alphabetically:
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/doxygen.css b/doc/html-Qt4Qt5/doxygen.css new file mode 100644 index 0000000..22c7b5c --- /dev/null +++ b/doc/html-Qt4Qt5/doxygen.css @@ -0,0 +1,946 @@ +/* The standard CSS for doxygen */ + +body, table, div, p, dl { + font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; + font-size: 12px; +} + +/* @group Heading Levels */ + +h1 { + font-size: 150%; +} + +.title { + font-size: 150%; + font-weight: bold; + margin: 10px 2px; +} + +h2 { + font-size: 120%; +} + +h3 { + font-size: 100%; +} + +dt { + font-weight: bold; +} + +div.multicol { + -moz-column-gap: 1em; + -webkit-column-gap: 1em; + -moz-column-count: 3; + -webkit-column-count: 3; +} + +p.startli, p.startdd, p.starttd { + margin-top: 2px; +} + +p.endli { + margin-bottom: 0px; +} + +p.enddd { + margin-bottom: 4px; +} + +p.endtd { + margin-bottom: 2px; +} + +/* @end */ + +caption { + font-weight: bold; +} + +span.legend { + font-size: 70%; + text-align: center; +} + +h3.version { + font-size: 90%; + text-align: center; +} + +div.qindex, div.navtab{ + background-color: #EBEFF6; + border: 1px solid #A3B4D7; + text-align: center; +} + +div.qindex, div.navpath { + width: 100%; + line-height: 140%; +} + +div.navtab { + margin-right: 15px; +} + +/* @group Link Styling */ + +a { + color: #3D578C; + font-weight: normal; + text-decoration: none; +} + +.contents a:visited { + color: #4665A2; +} + +a:hover { + text-decoration: underline; +} + +a.qindex { + font-weight: bold; +} + +a.qindexHL { + font-weight: bold; + background-color: #9CAFD4; + color: #ffffff; + border: 1px double #869DCA; +} + +.contents a.qindexHL:visited { + color: #ffffff; +} + +a.el { + font-weight: bold; +} + +a.elRef { +} + +a.code { + color: #4665A2; +} + +a.codeRef { + color: #4665A2; +} + +/* @end */ + +dl.el { + margin-left: -1cm; +} + +.fragment { + font-family: monospace, fixed; + font-size: 105%; +} + +pre.fragment { + border: 1px solid #C4CFE5; + background-color: #FBFCFD; + padding: 4px 6px; + margin: 4px 8px 4px 2px; + overflow: auto; + word-wrap: break-word; + font-size: 9pt; + line-height: 125%; +} + +div.ah { + background-color: black; + font-weight: bold; + color: #ffffff; + margin-bottom: 3px; + margin-top: 3px; + padding: 0.2em; + border: solid thin #333; + border-radius: 0.5em; + -webkit-border-radius: .5em; + -moz-border-radius: .5em; + box-shadow: 2px 2px 3px #999; + -webkit-box-shadow: 2px 2px 3px #999; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); + background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000); +} + +div.groupHeader { + margin-left: 16px; + margin-top: 12px; + font-weight: bold; +} + +div.groupText { + margin-left: 16px; + font-style: italic; +} + +body { + background-color: white; + color: black; + margin: 0; +} + +div.contents { + margin-top: 10px; + margin-left: 8px; + margin-right: 8px; +} + +td.indexkey { + background-color: #EBEFF6; + font-weight: bold; + border: 1px solid #C4CFE5; + margin: 2px 0px 2px 0; + padding: 2px 10px; +} + +td.indexvalue { + background-color: #EBEFF6; + border: 1px solid #C4CFE5; + padding: 2px 10px; + margin: 2px 0px; +} + +tr.memlist { + background-color: #EEF1F7; +} + +p.formulaDsp { + text-align: center; +} + +img.formulaDsp { + +} + +img.formulaInl { + vertical-align: middle; +} + +div.center { + text-align: center; + margin-top: 0px; + margin-bottom: 0px; + padding: 0px; +} + +div.center img { + border: 0px; +} + +address.footer { + text-align: right; + padding-right: 12px; +} + +img.footer { + border: 0px; + vertical-align: middle; +} + +/* @group Code Colorization */ + +span.keyword { + color: #008000 +} + +span.keywordtype { + color: #604020 +} + +span.keywordflow { + color: #e08000 +} + +span.comment { + color: #800000 +} + +span.preprocessor { + color: #806020 +} + +span.stringliteral { + color: #002080 +} + +span.charliteral { + color: #008080 +} + +span.vhdldigit { + color: #ff00ff +} + +span.vhdlchar { + color: #000000 +} + +span.vhdlkeyword { + color: #700070 +} + +span.vhdllogic { + color: #ff0000 +} + +/* @end */ + +/* +.search { + color: #003399; + font-weight: bold; +} + +form.search { + margin-bottom: 0px; + margin-top: 0px; +} + +input.search { + font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} +*/ + +td.tiny { + font-size: 75%; +} + +.dirtab { + padding: 4px; + border-collapse: collapse; + border: 1px solid #A3B4D7; +} + +th.dirtab { + background: #EBEFF6; + font-weight: bold; +} + +hr { + height: 0px; + border: none; + border-top: 1px solid #4A6AAA; +} + +hr.footer { + height: 1px; +} + +/* @group Member Descriptions */ + +table.memberdecls { + border-spacing: 0px; + padding: 0px; +} + +.mdescLeft, .mdescRight, +.memItemLeft, .memItemRight, +.memTemplItemLeft, .memTemplItemRight, .memTemplParams { + background-color: #F9FAFC; + border: none; + margin: 4px; + padding: 1px 0 0 8px; +} + +.mdescLeft, .mdescRight { + padding: 0px 8px 4px 8px; + color: #555; +} + +.memItemLeft, .memItemRight, .memTemplParams { + border-top: 1px solid #C4CFE5; +} + +.memItemLeft, .memTemplItemLeft { + white-space: nowrap; +} + +.memItemRight { + width: 100%; +} + +.memTemplParams { + color: #4665A2; + white-space: nowrap; +} + +/* @end */ + +/* @group Member Details */ + +/* Styles for detailed member documentation */ + +.memtemplate { + font-size: 80%; + color: #4665A2; + font-weight: normal; + margin-left: 9px; +} + +.memnav { + background-color: #EBEFF6; + border: 1px solid #A3B4D7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} + +.mempage { + width: 100%; +} + +.memitem { + padding: 0; + margin-bottom: 10px; + margin-right: 5px; +} + +.memname { + white-space: nowrap; + font-weight: bold; + margin-left: 6px; +} + +.memproto, dl.reflist dt { + border-top: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + padding: 6px 0px 6px 0px; + color: #253555; + font-weight: bold; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + /* opera specific markup */ + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + border-top-right-radius: 8px; + border-top-left-radius: 8px; + /* firefox specific markup */ + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + -moz-border-radius-topright: 8px; + -moz-border-radius-topleft: 8px; + /* webkit specific markup */ + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + -webkit-border-top-right-radius: 8px; + -webkit-border-top-left-radius: 8px; + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #E2E8F2; + +} + +.memdoc, dl.reflist dd { + border-bottom: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + padding: 2px 5px; + background-color: #FBFCFD; + border-top-width: 0; + /* opera specific markup */ + border-bottom-left-radius: 8px; + border-bottom-right-radius: 8px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + /* firefox specific markup */ + -moz-border-radius-bottomleft: 8px; + -moz-border-radius-bottomright: 8px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + background-image: -moz-linear-gradient(center top, #FFFFFF 0%, #FFFFFF 60%, #F7F8FB 95%, #EEF1F7); + /* webkit specific markup */ + -webkit-border-bottom-left-radius: 8px; + -webkit-border-bottom-right-radius: 8px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + background-image: -webkit-gradient(linear,center top,center bottom,from(#FFFFFF), color-stop(0.6,#FFFFFF), color-stop(0.60,#FFFFFF), color-stop(0.95,#F7F8FB), to(#EEF1F7)); +} + +dl.reflist dt { + padding: 5px; +} + +dl.reflist dd { + margin: 0px 0px 10px 0px; + padding: 5px; +} + +.paramkey { + text-align: right; +} + +.paramtype { + white-space: nowrap; +} + +.paramname { + color: #602020; + white-space: nowrap; +} +.paramname em { + font-style: normal; +} + +.params, .retval, .exception, .tparams { + border-spacing: 6px 2px; +} + +.params .paramname, .retval .paramname { + font-weight: bold; + vertical-align: top; +} + +.params .paramtype { + font-style: italic; + vertical-align: top; +} + +.params .paramdir { + font-family: "courier new",courier,monospace; + vertical-align: top; +} + + + + +/* @end */ + +/* @group Directory (tree) */ + +/* for the tree view */ + +.ftvtree { + font-family: sans-serif; + margin: 0px; +} + +/* these are for tree view when used as main index */ + +.directory { + font-size: 9pt; + font-weight: bold; + margin: 5px; +} + +.directory h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +/* +The following two styles can be used to replace the root node title +with an image of your choice. Simply uncomment the next two styles, +specify the name of your image and be sure to set 'height' to the +proper pixel height of your image. +*/ + +/* +.directory h3.swap { + height: 61px; + background-repeat: no-repeat; + background-image: url("yourimage.gif"); +} +.directory h3.swap span { + display: none; +} +*/ + +.directory > h3 { + margin-top: 0; +} + +.directory p { + margin: 0px; + white-space: nowrap; +} + +.directory div { + display: none; + margin: 0px; +} + +.directory img { + vertical-align: -30%; +} + +/* these are for tree view when not used as main index */ + +.directory-alt { + font-size: 100%; + font-weight: bold; +} + +.directory-alt h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +.directory-alt > h3 { + margin-top: 0; +} + +.directory-alt p { + margin: 0px; + white-space: nowrap; +} + +.directory-alt div { + display: none; + margin: 0px; +} + +.directory-alt img { + vertical-align: -30%; +} + +/* @end */ + +div.dynheader { + margin-top: 8px; +} + +address { + font-style: normal; + color: #2A3D61; +} + +table.doxtable { + border-collapse:collapse; +} + +table.doxtable td, table.doxtable th { + border: 1px solid #2D4068; + padding: 3px 7px 2px; +} + +table.doxtable th { + background-color: #374F7F; + color: #FFFFFF; + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; + text-align:left; +} + +table.fieldtable { + width: 100%; + margin-bottom: 10px; + border: 1px solid #A8B8D9; + border-spacing: 0px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); + box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); +} + +.fieldtable td, .fieldtable th { + padding: 3px 7px 2px; +} + +.fieldtable td.fieldtype, .fieldtable td.fieldname { + white-space: nowrap; + border-right: 1px solid #A8B8D9; + border-bottom: 1px solid #A8B8D9; + vertical-align: top; +} + +.fieldtable td.fielddoc { + border-bottom: 1px solid #A8B8D9; + width: 100%; +} + +.fieldtable tr:last-child td { + border-bottom: none; +} + +.fieldtable th { + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #E2E8F2; + font-size: 90%; + color: #253555; + padding-bottom: 4px; + padding-top: 5px; + text-align:left; + -moz-border-radius-topleft: 4px; + -moz-border-radius-topright: 4px; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom: 1px solid #A8B8D9; +} + + +.tabsearch { + top: 0px; + left: 10px; + height: 36px; + background-image: url('tab_b.png'); + z-index: 101; + overflow: hidden; + font-size: 13px; +} + +.navpath ul +{ + font-size: 11px; + background-image:url('tab_b.png'); + background-repeat:repeat-x; + height:30px; + line-height:30px; + color:#8AA0CC; + border:solid 1px #C2CDE4; + overflow:hidden; + margin:0px; + padding:0px; +} + +.navpath li +{ + list-style-type:none; + float:left; + padding-left:10px; + padding-right:15px; + background-image:url('bc_s.png'); + background-repeat:no-repeat; + background-position:right; + color:#364D7C; +} + +.navpath li.navelem a +{ + height:32px; + display:block; + text-decoration: none; + outline: none; +} + +.navpath li.navelem a:hover +{ + color:#6884BD; +} + +.navpath li.footer +{ + list-style-type:none; + float:right; + padding-left:10px; + padding-right:15px; + background-image:none; + background-repeat:no-repeat; + background-position:right; + color:#364D7C; + font-size: 8pt; +} + + +div.summary +{ + float: right; + font-size: 8pt; + padding-right: 5px; + width: 50%; + text-align: right; +} + +div.summary a +{ + white-space: nowrap; +} + +div.ingroups +{ + margin-left: 5px; + font-size: 8pt; + padding-left: 5px; + width: 50%; + text-align: left; +} + +div.ingroups a +{ + white-space: nowrap; +} + +div.header +{ + background-image:url('nav_h.png'); + background-repeat:repeat-x; + background-color: #F9FAFC; + margin: 0px; + border-bottom: 1px solid #C4CFE5; +} + +div.headertitle +{ + padding: 5px 5px 5px 7px; +} + +dl +{ + padding: 0 0 0 10px; +} + +dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug +{ + border-left:4px solid; + padding: 0 0 0 6px; +} + +dl.note +{ + border-color: #D0C000; +} + +dl.warning, dl.attention +{ + border-color: #FF0000; +} + +dl.pre, dl.post, dl.invariant +{ + border-color: #00D000; +} + +dl.deprecated +{ + border-color: #505050; +} + +dl.todo +{ + border-color: #00C0E0; +} + +dl.test +{ + border-color: #3030E0; +} + +dl.bug +{ + border-color: #C08050; +} + +#projectlogo +{ + text-align: center; + vertical-align: bottom; + border-collapse: separate; +} + +#projectlogo img +{ + border: 0px none; +} + +#projectname +{ + font: 300% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 2px 0px; +} + +#projectbrief +{ + font: 120% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#projectnumber +{ + font: 50% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#titlearea +{ + padding: 0px; + margin: 0px; + width: 100%; + border-bottom: 1px solid #5373B4; +} + +.image +{ + text-align: center; +} + +.dotgraph +{ + text-align: center; +} + +.mscgraph +{ + text-align: center; +} + +.caption +{ + font-weight: bold; +} + +div.zoom +{ + border: 1px solid #90A5CE; +} + +dl.citelist { + margin-bottom:50px; +} + +dl.citelist dt { + color:#334975; + float:left; + font-weight:bold; + margin-right:10px; + padding:5px; +} + +dl.citelist dd { + margin:2px 0; + padding:5px 0; +} + +@media print +{ + #top { display: none; } + #side-nav { display: none; } + #nav-path { display: none; } + body { overflow:visible; } + h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } + .summary { display: none; } + .memitem { page-break-inside: avoid; } + #doc-content + { + margin-left:0 !important; + height:auto !important; + width:auto !important; + overflow:inherit; + display:inline; + } + pre.fragment + { + overflow: visible; + text-wrap: unrestricted; + white-space: -moz-pre-wrap; /* Moz */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + white-space: pre-wrap; /* CSS3 */ + word-wrap: break-word; /* IE 5.5+ */ + } +} + diff --git a/doc/html-Qt4Qt5/doxygen.png b/doc/html-Qt4Qt5/doxygen.png new file mode 100644 index 0000000000000000000000000000000000000000..635ed52fce7057ac24df92ec7664088a881fa5d0 GIT binary patch literal 3942 zcmV-s51H_ZP)95ENDh(OT9xpYZC{M(=rqI* z+1erNEr&9zRjUI-4rN=4BBz>P@ys*xOjGRjzVE*Fx_qvyt9d@B@BO*&@8Mq!nM{Tc z_WoM84-~xLreSL9@vgZ{m2dF}`u=^ZF3syQ-s2tnBwCI3ZFvSfI20Wbj236~Urq*8Kfw@RKKfRQTgE>}uUHK^ptamY=o)LU(xy55zNQ(`qZ znZ&$O075mrrInIXQgw4%GCbMD8Vn`3n3$EaRwtP1D{A!Gs=e!L%3;ayv@I{rAw{xw z^x^>EIWQM8ob3m}$(BaupDMV;Ed8w5|i(*e`7rU$TOc&1o7`|!LyN5jHI z7uWAR!v4c2xMp?}QmRYyf>i}tYGU(g=>DW&==J@GbhR z5@BNVY3O$`^D%gk4khm9XpFhuwzxUhi9T=Du4rpVuYRSMPHeDqo+4htnZRU@G9`0& z9~p)CsFl1|t*wjfoTo&%davN^3RfJUhQ{ZZIAcD77X^XsF_iR&ZMQ;p>K5*+*48)x z+=<>nh+6Uq85jOkg>{z>a;+V`s(I;I%*5s+R@9a^wNoZ03(g9-EcH%uHvX&yp7`D#`9Kw>DU3s zjD-VuW_A-K)unlS4O3f>_B%pPONUmI#oyL};Lglp3=04>0eBBEw$D1k-$WTsoi#K* z$7h`NcyRZsZ#w~6I<%~u!^xDofYrzF>zVIj2N>Ijs`mVR(Oy&*9f}<{JtQj8jJT!oEc!NQXBq5y|6ET*N?7ox*E6#{i- z@_DLD^IYTtg|Pg?A~!7@OCd8p^)kxK%VBM84docx$Z{MvO)iiqep@or-N}TEU8$%; zJih?#yJ9)V1s_`}c3XbY9V}nEKwNz8ILmR|v)(w|D@oVG;=i`+$*)!(xH{9#$2Za;pyZ1wgU#)mHl|&8%iwu%yncO z`T32Ib0$D}j`c}}5M@M#7oR&G=QwU!!Ja*P7|NJt1@lo=d{_dY-q_lmDcH7{BHncF zR@^PmcLC6EsN?6N{fV3o8}>?h9X_@;=&-p7%tms7$_{3w(anwek_k&<&)~c$Ar?S> zy9gKavndTmxqAbE?SMgcWhXPENdKdz7ntt55Y3Hs3jjc~uR-#$tR(1a_abv9`-QzG z^J0Fsbd&yruq%xAsxf3rc=T}$Zx|AD%x{Fd=? z{qhl3kG5w-PqVK9-Gru%7UIEw)bt$ZMF|Z6HpmO)F%@GNT8yT|#FuWPxv@@Ic={;6 zU7)e!XG|1dx=kU|&|)+m+$&|Yw92Fa;*MnegXcCf8XsHfqg_F5t)3Jt8)EkXKuY21 zqt%4}@R8hK*(_JO0*H+Pa)6Pp&K49rKNeQEYb*x9WY`!`Vh3|80YF%I`lxv9_!$hD zOh$>zWaRIW!);6`vA$Zp;5lnGyX^^N%YEjCeJMHPolKCE1ttIqK<$0w&LcE8)`_c2 z^H^qf6ACV0t7FLLCsu#mL&Mb8gE@rZE#k+1Nrrxw+{N0^#bN*~!qt2>S4e#jC$a$` ze4@{)$aTEYq_!#2|t@Fj3e?w-XVuG$Z}kAR?_kgJAlZIJ)0{eHw#fybNooA zp02jyYVc&w!}m#BVP>ef2|U^J(A-#O1R#A&><*?Y! zOwml{CnE+aU3JfKE@uzge(qMY{^6siuXFt;+mMbapU;Ppejl=L#>s2#SMBbfP9AFT znEVA=TBtZ6d-GfF>kOxylg>Ek%qTp*h2ze!^^hOsmKOEE6b;maQ>~R>3#z`Zawbik z88OTykU3_!Atg^+vnM=1n}?%<$dHzn)?k&T#RWwb+*y;XNQbYNHKo3wr~&}Qa$id; z6^D*K9RTQZUuQVg)g~P%!BIiv+cXllt)KEP9IN)1udQKf>p|~lXj7K<-9}0Q%i9+K zXaF7qXclE>sf)7)J4_M%V{;(sFT7HN$o0#_qU#Ah1D{ zon=JihPcgG5xHuvQwOXBkt3(iUdx{6Gn|aa>@C9Cqg%rPK(+REZ4>6t3z7m@Aj;0l zSHh&%cKSJ*+WOJGwe?Y7d(9RAy)&NVS6uj}1m@U}jXH3oVQT9E0A)$ZDRdK>;_i;+ z7vbEoI7$1XK6vNxT(_sJ(GM4s92e;gB&Q zDO;(Ve^%gPG&lWW1fUf_=9-Q1%&`s%aD^o`Q2u`WI9V>Qm#D5?SW<)Njmt@aR5@6( zL4cdTo+Jg@>Brm1^_gf%0Z?}1AppR3NdFE5uzdpBZz;{Thd6SI-$gb2}pFAww$*j(2=s{mdz2E;lBvVcrN@}i2bC`Q5Y_;BID^f0J+ACVhyQsLg0@`okIk+i=LJ=3yvI*oASj62 za3C{Pu_fQ+atw!zN{$Shr*_UV=|jp4#CqWeGE?Jb`pq!|5bDES&-Ix=-N>DpydHqW z+-{QS+i)d;uGS)M%Suw9khR}3N82j|S{a#&Tctme0s%mTy<1S|;@M-+S4#o@!qr;r z+w(n=;@43Y_n#dI0Gb(T0{G7k-KY8k`MPM_Bss$?)SK){KJMrwv!vz42_U_Za zX7lDqiU8ZvCAfGpAtfVC5bQrYa4C)M9G$S4D&VqpJ8)lm$t5FAAR%ywf>*~VaivC70RVFXISv4Lx&tk^Cf1)qQ|rxp z*8H>)cgoM;(eKxH14u~~@JopNr9@A z#-yXVG?$es;EPqsn-j?45^L52U=nT#0A^T3JY$&B3EH&%2UHdv3P=_3$!n76!34ks zz^2ii@sXAu8LKYMmG=_^*qtiiOFNlG3?QYtG%wrCZh|)vlj8vq3sw~f1b8;_TMB>z zPSyDQy_9bbXD*#sNRGMzfSAwUD}ASX;ZGQcGdE=9q~ORU{v$}=z2Bc8EOe2S&);jS zCZB8P`hPoV1NBk)TQP2z{q$NL-GLUc7%>&fecE^E{I5gs?8!qTK7VgR7Z?}-`YG|z zVN-NvOlQ+B;~J*69_Xd1n-0MLKTY6&*%rTi*0^HXniz8{bCMsVpSXqs(GGO)*_#Kz z9YBCQ_VRhtwhMfppMh@OdxjCN0mH`5hKZr>UoxMx`W~u^kD&bskplglOiRxQvep*2 z0mk+kMP>J)K`8X3`6Zq|X~5IQ-_rrOn+_WvU{1Gs{ow1-Eb;K(Z?p$@ugXpr^?PM( z(5Hv;$*X=QZaqG_4q)N1v9sO(Dsei!;%IcIztt6YUs{yj z^77e`UYa^%<-Ts+d*b=ihKt?0_sj!ePNO@K*PGmGD*v^;rRAkduikx~UNk=@{XKeV zp_ir(dTaGVWBr{_02Kg2Xmlsn|IvIIRYivbo|L{yx}yX5Bte@P6C>1KyqvYnT{boB#j-07*qoM6N<$f^XQQ A+yDRo literal 0 HcmV?d00001 diff --git a/doc/html-Qt4Qt5/functions.html b/doc/html-Qt4Qt5/functions.html new file mode 100644 index 0000000..4201d07 --- /dev/null +++ b/doc/html-Qt4Qt5/functions.html @@ -0,0 +1,364 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- a -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x62.html b/doc/html-Qt4Qt5/functions_0x62.html new file mode 100644 index 0000000..b36e4d0 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x62.html @@ -0,0 +1,201 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- b -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x63.html b/doc/html-Qt4Qt5/functions_0x63.html new file mode 100644 index 0000000..dd5e47e --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x63.html @@ -0,0 +1,399 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- c -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x64.html b/doc/html-Qt4Qt5/functions_0x64.html new file mode 100644 index 0000000..9b321ae --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x64.html @@ -0,0 +1,435 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- d -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x65.html b/doc/html-Qt4Qt5/functions_0x65.html new file mode 100644 index 0000000..1e859af --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x65.html @@ -0,0 +1,209 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- e -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x66.html b/doc/html-Qt4Qt5/functions_0x66.html new file mode 100644 index 0000000..547fbfb --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x66.html @@ -0,0 +1,274 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- f -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x67.html b/doc/html-Qt4Qt5/functions_0x67.html new file mode 100644 index 0000000..9003f4c --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x67.html @@ -0,0 +1,122 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- g -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x68.html b/doc/html-Qt4Qt5/functions_0x68.html new file mode 100644 index 0000000..a9397d9 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x68.html @@ -0,0 +1,195 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- h -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x69.html b/doc/html-Qt4Qt5/functions_0x69.html new file mode 100644 index 0000000..0d24595 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x69.html @@ -0,0 +1,229 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- i -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x6a.html b/doc/html-Qt4Qt5/functions_0x6a.html new file mode 100644 index 0000000..a0a7bd6 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x6a.html @@ -0,0 +1,145 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- j -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x6b.html b/doc/html-Qt4Qt5/functions_0x6b.html new file mode 100644 index 0000000..0ef89f2 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x6b.html @@ -0,0 +1,214 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- k -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x6c.html b/doc/html-Qt4Qt5/functions_0x6c.html new file mode 100644 index 0000000..1b65536 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x6c.html @@ -0,0 +1,427 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- l -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x6d.html b/doc/html-Qt4Qt5/functions_0x6d.html new file mode 100644 index 0000000..fccaf95 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x6d.html @@ -0,0 +1,241 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- m -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x6e.html b/doc/html-Qt4Qt5/functions_0x6e.html new file mode 100644 index 0000000..2d1d256 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x6e.html @@ -0,0 +1,150 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- n -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x6f.html b/doc/html-Qt4Qt5/functions_0x6f.html new file mode 100644 index 0000000..e07252d --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x6f.html @@ -0,0 +1,141 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- o -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x70.html b/doc/html-Qt4Qt5/functions_0x70.html new file mode 100644 index 0000000..efdec96 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x70.html @@ -0,0 +1,346 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- p -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x71.html b/doc/html-Qt4Qt5/functions_0x71.html new file mode 100644 index 0000000..ad55546 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x71.html @@ -0,0 +1,145 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- q -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x72.html b/doc/html-Qt4Qt5/functions_0x72.html new file mode 100644 index 0000000..40ea3be --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x72.html @@ -0,0 +1,252 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- r -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x73.html b/doc/html-Qt4Qt5/functions_0x73.html new file mode 100644 index 0000000..8d810f3 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x73.html @@ -0,0 +1,1575 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- s -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x74.html b/doc/html-Qt4Qt5/functions_0x74.html new file mode 100644 index 0000000..ca0bb34 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x74.html @@ -0,0 +1,205 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- t -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x75.html b/doc/html-Qt4Qt5/functions_0x75.html new file mode 100644 index 0000000..06576ea --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x75.html @@ -0,0 +1,159 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- u -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x76.html b/doc/html-Qt4Qt5/functions_0x76.html new file mode 100644 index 0000000..989d0ce --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x76.html @@ -0,0 +1,180 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- v -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x77.html b/doc/html-Qt4Qt5/functions_0x77.html new file mode 100644 index 0000000..78f2496 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x77.html @@ -0,0 +1,268 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- w -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x78.html b/doc/html-Qt4Qt5/functions_0x78.html new file mode 100644 index 0000000..6f2d9ba --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x78.html @@ -0,0 +1,115 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- x -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x7a.html b/doc/html-Qt4Qt5/functions_0x7a.html new file mode 100644 index 0000000..cbdd68f --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x7a.html @@ -0,0 +1,124 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- z -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_0x7e.html b/doc/html-Qt4Qt5/functions_0x7e.html new file mode 100644 index 0000000..487925a --- /dev/null +++ b/doc/html-Qt4Qt5/functions_0x7e.html @@ -0,0 +1,238 @@ + + + + +QScintilla: Class Members + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- ~ -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_enum.html b/doc/html-Qt4Qt5/functions_enum.html new file mode 100644 index 0000000..d11551b --- /dev/null +++ b/doc/html-Qt4Qt5/functions_enum.html @@ -0,0 +1,131 @@ + + + + +QScintilla: Class Members - Enumerations + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + +
+
+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval.html b/doc/html-Qt4Qt5/functions_eval.html new file mode 100644 index 0000000..4210129 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval.html @@ -0,0 +1,275 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- a -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x62.html b/doc/html-Qt4Qt5/functions_eval_0x62.html new file mode 100644 index 0000000..1db26e5 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x62.html @@ -0,0 +1,185 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- b -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x63.html b/doc/html-Qt4Qt5/functions_eval_0x63.html new file mode 100644 index 0000000..5c9a9a0 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x63.html @@ -0,0 +1,289 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- c -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x64.html b/doc/html-Qt4Qt5/functions_eval_0x64.html new file mode 100644 index 0000000..1106c18 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x64.html @@ -0,0 +1,242 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- d -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x65.html b/doc/html-Qt4Qt5/functions_eval_0x65.html new file mode 100644 index 0000000..2b02bc6 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x65.html @@ -0,0 +1,153 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- e -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x66.html b/doc/html-Qt4Qt5/functions_eval_0x66.html new file mode 100644 index 0000000..5dbd22f --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x66.html @@ -0,0 +1,135 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- f -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x67.html b/doc/html-Qt4Qt5/functions_eval_0x67.html new file mode 100644 index 0000000..db09da7 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x67.html @@ -0,0 +1,115 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- g -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x68.html b/doc/html-Qt4Qt5/functions_eval_0x68.html new file mode 100644 index 0000000..d779f05 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x68.html @@ -0,0 +1,173 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- h -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x69.html b/doc/html-Qt4Qt5/functions_eval_0x69.html new file mode 100644 index 0000000..b5c4107 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x69.html @@ -0,0 +1,150 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- i -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x6a.html b/doc/html-Qt4Qt5/functions_eval_0x6a.html new file mode 100644 index 0000000..cdf549b --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x6a.html @@ -0,0 +1,144 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- j -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x6b.html b/doc/html-Qt4Qt5/functions_eval_0x6b.html new file mode 100644 index 0000000..8a31f52 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x6b.html @@ -0,0 +1,172 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+ + + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x6c.html b/doc/html-Qt4Qt5/functions_eval_0x6c.html new file mode 100644 index 0000000..108aa94 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x6c.html @@ -0,0 +1,202 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- l -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x6d.html b/doc/html-Qt4Qt5/functions_eval_0x6d.html new file mode 100644 index 0000000..a1982bb --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x6d.html @@ -0,0 +1,156 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- m -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x6e.html b/doc/html-Qt4Qt5/functions_eval_0x6e.html new file mode 100644 index 0000000..fec63df --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x6e.html @@ -0,0 +1,149 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+ + + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x6f.html b/doc/html-Qt4Qt5/functions_eval_0x6f.html new file mode 100644 index 0000000..519b1ef --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x6f.html @@ -0,0 +1,137 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+ + + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x70.html b/doc/html-Qt4Qt5/functions_eval_0x70.html new file mode 100644 index 0000000..e00b8d9 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x70.html @@ -0,0 +1,302 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- p -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x71.html b/doc/html-Qt4Qt5/functions_eval_0x71.html new file mode 100644 index 0000000..19f62b9 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x71.html @@ -0,0 +1,138 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- q -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x72.html b/doc/html-Qt4Qt5/functions_eval_0x72.html new file mode 100644 index 0000000..f0483cf --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x72.html @@ -0,0 +1,140 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- r -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x73.html b/doc/html-Qt4Qt5/functions_eval_0x73.html new file mode 100644 index 0000000..4d4624b --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x73.html @@ -0,0 +1,935 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- s -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x74.html b/doc/html-Qt4Qt5/functions_eval_0x74.html new file mode 100644 index 0000000..d9b7035 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x74.html @@ -0,0 +1,176 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- t -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x75.html b/doc/html-Qt4Qt5/functions_eval_0x75.html new file mode 100644 index 0000000..3314fdd --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x75.html @@ -0,0 +1,145 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- u -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x76.html b/doc/html-Qt4Qt5/functions_eval_0x76.html new file mode 100644 index 0000000..c9c929d --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x76.html @@ -0,0 +1,164 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- v -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x77.html b/doc/html-Qt4Qt5/functions_eval_0x77.html new file mode 100644 index 0000000..7307818 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x77.html @@ -0,0 +1,180 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- w -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x78.html b/doc/html-Qt4Qt5/functions_eval_0x78.html new file mode 100644 index 0000000..0d66915 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x78.html @@ -0,0 +1,114 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- x -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_eval_0x7a.html b/doc/html-Qt4Qt5/functions_eval_0x7a.html new file mode 100644 index 0000000..ae87b06 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_eval_0x7a.html @@ -0,0 +1,111 @@ + + + + +QScintilla: Class Members - Enumerator + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- z -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func.html b/doc/html-Qt4Qt5/functions_func.html new file mode 100644 index 0000000..2e3d66e --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func.html @@ -0,0 +1,182 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- a -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x62.html b/doc/html-Qt4Qt5/functions_func_0x62.html new file mode 100644 index 0000000..c069499 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x62.html @@ -0,0 +1,115 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- b -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x63.html b/doc/html-Qt4Qt5/functions_func_0x63.html new file mode 100644 index 0000000..d5f301b --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x63.html @@ -0,0 +1,205 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- c -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x64.html b/doc/html-Qt4Qt5/functions_func_0x64.html new file mode 100644 index 0000000..1866177 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x64.html @@ -0,0 +1,294 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- d -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x65.html b/doc/html-Qt4Qt5/functions_func_0x65.html new file mode 100644 index 0000000..ad6b46d --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x65.html @@ -0,0 +1,152 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- e -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x66.html b/doc/html-Qt4Qt5/functions_func_0x66.html new file mode 100644 index 0000000..96a34fc --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x66.html @@ -0,0 +1,238 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- f -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x67.html b/doc/html-Qt4Qt5/functions_func_0x67.html new file mode 100644 index 0000000..6bd35c9 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x67.html @@ -0,0 +1,109 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- g -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x68.html b/doc/html-Qt4Qt5/functions_func_0x68.html new file mode 100644 index 0000000..1be3e70 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x68.html @@ -0,0 +1,124 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- h -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x69.html b/doc/html-Qt4Qt5/functions_func_0x69.html new file mode 100644 index 0000000..6362bf1 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x69.html @@ -0,0 +1,175 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- i -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x6b.html b/doc/html-Qt4Qt5/functions_func_0x6b.html new file mode 100644 index 0000000..8a88883 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x6b.html @@ -0,0 +1,144 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+ + + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x6c.html b/doc/html-Qt4Qt5/functions_func_0x6c.html new file mode 100644 index 0000000..2f14658 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x6c.html @@ -0,0 +1,327 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- l -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x6d.html b/doc/html-Qt4Qt5/functions_func_0x6d.html new file mode 100644 index 0000000..3828ffe --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x6d.html @@ -0,0 +1,181 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- m -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x6f.html b/doc/html-Qt4Qt5/functions_func_0x6f.html new file mode 100644 index 0000000..08c5f16 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x6f.html @@ -0,0 +1,106 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- o -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x70.html b/doc/html-Qt4Qt5/functions_func_0x70.html new file mode 100644 index 0000000..ef616df --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x70.html @@ -0,0 +1,144 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- p -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x71.html b/doc/html-Qt4Qt5/functions_func_0x71.html new file mode 100644 index 0000000..059dd69 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x71.html @@ -0,0 +1,109 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- q -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x72.html b/doc/html-Qt4Qt5/functions_func_0x72.html new file mode 100644 index 0000000..27e1b8c --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x72.html @@ -0,0 +1,214 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- r -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x73.html b/doc/html-Qt4Qt5/functions_func_0x73.html new file mode 100644 index 0000000..fe28a2c --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x73.html @@ -0,0 +1,742 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- s -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x74.html b/doc/html-Qt4Qt5/functions_func_0x74.html new file mode 100644 index 0000000..ca1595c --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x74.html @@ -0,0 +1,129 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- t -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x75.html b/doc/html-Qt4Qt5/functions_func_0x75.html new file mode 100644 index 0000000..131a2ca --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x75.html @@ -0,0 +1,116 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- u -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x76.html b/doc/html-Qt4Qt5/functions_func_0x76.html new file mode 100644 index 0000000..0d4dac6 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x76.html @@ -0,0 +1,118 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- v -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x77.html b/doc/html-Qt4Qt5/functions_func_0x77.html new file mode 100644 index 0000000..698b29d --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x77.html @@ -0,0 +1,176 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+ + + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x7a.html b/doc/html-Qt4Qt5/functions_func_0x7a.html new file mode 100644 index 0000000..12eb8a7 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x7a.html @@ -0,0 +1,112 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- z -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/functions_func_0x7e.html b/doc/html-Qt4Qt5/functions_func_0x7e.html new file mode 100644 index 0000000..88f04d3 --- /dev/null +++ b/doc/html-Qt4Qt5/functions_func_0x7e.html @@ -0,0 +1,235 @@ + + + + +QScintilla: Class Members - Functions + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + + + +
+
+  + +

- ~ -

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/hierarchy.html b/doc/html-Qt4Qt5/hierarchy.html new file mode 100644 index 0000000..7ed01be --- /dev/null +++ b/doc/html-Qt4Qt5/hierarchy.html @@ -0,0 +1,133 @@ + + + + +QScintilla: Class Hierarchy + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + + +
+
+
+
Class Hierarchy
+
+ + + + + + + diff --git a/doc/html-Qt4Qt5/index.html b/doc/html-Qt4Qt5/index.html new file mode 100644 index 0000000..0ed8984 --- /dev/null +++ b/doc/html-Qt4Qt5/index.html @@ -0,0 +1,159 @@ + + + + +QScintilla: QScintilla - a Port to Qt v4 and Qt v5 of Scintilla + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+
QScintilla +  2.8.4 +
+ +
+
+ + + +
+
+
+
QScintilla - a Port to Qt v4 and Qt v5 of Scintilla
+
+
+

Introduction

+

QScintilla is a port to Qt of the Scintilla editing component.

+

As well as features found in standard text editing components, Scintilla includes features especially useful when editing and debugging source code:

+
    +
  • +syntax styling with support for over 70 languages
  • +
  • +error indicators
  • +
  • +code completion
  • +
  • +call tips
  • +
  • +code folding
  • +
  • +margins can contain markers like those used in debuggers to indicate breakpoints and the current line.
  • +
  • +recordable macros
  • +
  • +multiple views
  • +
  • +printing.
  • +
+

QScintilla is a port or Scintilla to the Qt GUI toolkit from Digia and runs on any operating system supported by Qt (eg. Windows, UNIX/Linux, MacOS/X). QScintilla works with Qt v3, v4 and v5.

+

This documentation describes QScintilla for Qt v4 and Qt v5. The QScintilla APIs for Qt v3 and Qt v4 and v5 are almost identical. The main difference is that the QsciScintillaBase class is derived from a different Qt class.

+

QScintilla also includes language bindings for Python. These require that PyQt v4 or v5 is also installed.

+

This version of QScintilla is based on Scintilla v3.3.6.

+

Licensing

+

QScintilla is available under the GNU General Public License v2, GNU General Public License v3 and a commercial license.

+

The commercial license allows closed source applications using QScintilla to be developed and distributed. At the moment the commercial version of QScintilla is bundled with the commercial version of PyQt.

+

The Scintilla code within QScintilla is released under the following license:

+
+ License for Scintilla and SciTE
 Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
 All Rights Reserved
 Permission to use, copy, modify, and distribute this software and its
+ documentation for any purpose and without fee is hereby granted,
+ provided that the above copyright notice appear in all copies and that
+ both that copyright notice and this permission notice appear in
+ supporting documentation.
 NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY
+ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
+ OR PERFORMANCE OF THIS SOFTWARE.
+

Installation

+

As supplied QScintilla will be built as a shared library/DLL and installed in the same directories as the Qt libraries and include files.

+

If you wish to build a static version of the library then pass CONFIG+=staticlib on the qmake command line.

+

If you want to make more significant changes to the configuration then edit the file qscintilla.pro in the Qt4Qt5 directory.

+

If you do make changes, specifically to the names of the installation directories or the name of the library, then you may also need to update the Qt4Qt5/features/qscintilla2.prf file.

+

See your qmake documentation for more details.

+

To build and install QScintilla, run:

+
+    cd Qt4Qt5
+    qmake qscintilla.pro
+    make
+    make install
+

If you have multiple versions of Qt installed then make sure you use the correct version of qmake.

+

Installation on Windows

+

Before compiling QScintilla on Windows you should remove the Qsci directory containing the QScintilla header files from any previous installation. This is because the Makefile generated by qmake will find these older header files instead of the new ones.

+

Depending on the compiler you are using you may need to run nmake rather than make.

+

If you have built a Windows DLL then you probably also want to run:

+
+    copy %QTDIR%\lib\qscintilla2.dll %QTDIR%\bin
+

Installation on MacOS/X

+

On MacOS/X you may need to pass -spec macx-g++ in order to generate a Makefile, otherwise an XCode project file may be created. In particular the Qt Designer plugin will not load if you do not do this.

+

Integration with qmake

+

To configure qmake to find your QScintilla installation, add the following line to your application's .pro file:

+
+    CONFIG += qscintilla2
+

Example Application

+

The example application provided is a port of the standard Qt application example with the QsciScintilla class being used instead of Qt's QTextEdit class.

+

The example does not demonstrate all of the extra features of QScintilla.

+

To build the example, run:

+
+    cd example-Qt4Qt5
+    qmake application.pro
+    make
+

On Windows (and depending on the compiler you are using) you may need to run nmake rather than make.

+

Python Bindings

+

The Python bindings are in the Python directory. You must have either PyQt v4 or v5 already installed. QScintilla must also already be built and installed.

+

The configure, build and install the bindings for PyQt v4, run:

+
+    python configure.py
+    make
+    make install
+

On Windows (and depending on the compiler you are using) you may need to run nmake rather than make.

+

If you want to build the bindings for PyQt v5 then pass --pyqt=PyQt5 as an argument to configure.py.

+

configure.py supports a number of other arguments. Pass -h to display a list of the supported arguments.

+

configure.py was re-written for QScintilla v2.7.1 to make use of new features of PyQt v4.10. The old version is still provided as configure-old.py. The new configure.py will automatically invoke configure-old.py if it detects a version of PyQt earlier than v4.10. You may of course explicitly run configure-old.py.

+

Qt Designer Plugin

+

QScintilla includes an optional plugin for Qt Designer that allows QScintilla instances to be included in GUI designs just like any other Qt widget.

+

To build the plugin on all platforms, make sure QScintilla is installed and then run (as root or administrator):

+
+    cd designer-Qt4Qt5
+    qmake designer.pro
+    make
+    make install
+

On Windows (and depending on the compiler you are using) you may need to run nmake rather than make.

+
+ + + + + + diff --git a/doc/html-Qt4Qt5/nav_f.png b/doc/html-Qt4Qt5/nav_f.png new file mode 100644 index 0000000000000000000000000000000000000000..1b07a16207e67c95fe2ee17e7016e6d08ac7ac99 GIT binary patch literal 159 zcmeAS@N?(olHy`uVBq!ia0vp^j6iI`!2~2XGqLUlQfZzpjv*C{Z|{2YIT`Y>1X`Eg z-tTbne1`SITM8Q!Pb(<)UFZ(m>wMzvKZQqKM~~GcZ=A7j<~E6K62>ozFS=cD3)mf8 z9WX0+R&m(l9KUsLdTx4?9~({T__KA%`}olPJ^N;y|F^pHgs_K%!rj~{8>RwnWbkzL Kb6Mw<&;$VTdq1fF literal 0 HcmV?d00001 diff --git a/doc/html-Qt4Qt5/nav_h.png b/doc/html-Qt4Qt5/nav_h.png new file mode 100644 index 0000000000000000000000000000000000000000..01f5fa6a596e36bd12c2d6ceff1b0169fda7e699 GIT binary patch literal 97 zcmeAS@N?(olHy`uVBq!ia0vp^j6lr8!2~3AUOE6t1`SUa$B+ufw|6&kG8phMJMJ~w va4>Y+bZ&9QY?(VEUPY_cGd9nQ`um^ZSUyYpAAuKhL7F^W{an^LB{Ts5DmojT literal 0 HcmV?d00001 diff --git a/doc/html-Qt4Qt5/open.png b/doc/html-Qt4Qt5/open.png new file mode 100644 index 0000000000000000000000000000000000000000..7b35d2c2c389743089632fe24c3104f2173d97af GIT binary patch literal 118 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>1|%O$WD@{Vww^AIAr*{o=Nbw!DDW^(zOibV zl!F8B0?t?i!vld4k#$~0_AX3zElaoknau9@iXhZTrl-TjWj9jM#?{xt`6uU{<)jb9Suc^QnbhJ(o{ib8=j9u0_mE8M7kgF7f<7W7IEf=8(L_qx|g0H;V7iPxm&Q@G7p8W2Kx&iT|YUM=ITC zY<0Qbr;u&AtXD{o@41wH=7&d8=2Z_{M9Tsa=g*t*@A3H$UOlxZk7?f6RUWpx>Fc_L s#LQ{edY3MpIXkMeV^&YV=9fR%8Jv|Kya=#u06K}m)78&qol`;+0RKEt)&Kwi literal 0 HcmV?d00001 diff --git a/doc/html-Qt4Qt5/tab_s.png b/doc/html-Qt4Qt5/tab_s.png new file mode 100644 index 0000000000000000000000000000000000000000..978943ac807718de0e69e5a585a8f0a1e5999285 GIT binary patch literal 189 zcmeAS@N?(olHy`uVBq!ia0vp^j6kfy!2~3aiye;!QZ1e?jv*C{Z|}b5Yzkm-c<7z3 zq^cq0=~}Z;b(!Zvb5Z%sTRFKGlz1=qOFg;myyu?$r`wZb^irPsN1a)6)TwB0r+)wb zPL25;=adu89?fTK`qDR>$D*)b_WOmdKI;Vst02j(hg8%>k literal 0 HcmV?d00001 diff --git a/doc/html-Qt4Qt5/tabs.css b/doc/html-Qt4Qt5/tabs.css new file mode 100644 index 0000000..2192056 --- /dev/null +++ b/doc/html-Qt4Qt5/tabs.css @@ -0,0 +1,59 @@ +.tabs, .tabs2, .tabs3 { + background-image: url('tab_b.png'); + width: 100%; + z-index: 101; + font-size: 13px; +} + +.tabs2 { + font-size: 10px; +} +.tabs3 { + font-size: 9px; +} + +.tablist { + margin: 0; + padding: 0; + display: table; +} + +.tablist li { + float: left; + display: table-cell; + background-image: url('tab_b.png'); + line-height: 36px; + list-style: none; +} + +.tablist a { + display: block; + padding: 0 20px; + font-weight: bold; + background-image:url('tab_s.png'); + background-repeat:no-repeat; + background-position:right; + color: #283A5D; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + text-decoration: none; + outline: none; +} + +.tabs3 .tablist a { + padding: 0 10px; +} + +.tablist a:hover { + background-image: url('tab_h.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); + text-decoration: none; +} + +.tablist li.current a { + background-image: url('tab_a.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +} diff --git a/doc/qscintilla-Qt3.dxy b/doc/qscintilla-Qt3.dxy new file mode 100644 index 0000000..0da05df --- /dev/null +++ b/doc/qscintilla-Qt3.dxy @@ -0,0 +1,1514 @@ +# Doxyfile 1.6.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = QScintilla + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = "2.8.4" + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = NO + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = NO + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 4 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it parses. +# With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this tag. +# The format is ext=language, where ext is a file extension, and language is one of +# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, +# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat +# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penality. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will rougly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = NO + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = YES + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = NO + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = NO + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by +# doxygen. The layout file controls the global structure of the generated output files +# in an output format independent way. The create the layout file that represents +# doxygen's defaults, run doxygen with the -l option. You can optionally specify a +# file name after the option, if omitted DoxygenLayout.xml will be used as the name +# of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text " + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = README-Qt3.doc ../Qt3/Qsci + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = qsci*.h + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = Qsci + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html-Qt3 + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = NO + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER +# are set, an additional index file will be generated that can be used as input for +# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated +# HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. +# For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's +# filter section matches. +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 3 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# When the SEARCHENGINE tag is enable doxygen will generate a search box for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP) or Qt help (GENERATE_QHP) +# there is already a search function so this one should typically +# be disabled. + +SEARCHENGINE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = QT_VERSION=0x040000 + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = NO + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = NO + +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = FreeSans + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/doc/qscintilla-Qt4Qt5.dxy b/doc/qscintilla-Qt4Qt5.dxy new file mode 100644 index 0000000..8113374 --- /dev/null +++ b/doc/qscintilla-Qt4Qt5.dxy @@ -0,0 +1,1514 @@ +# Doxyfile 1.6.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = QScintilla + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = "2.8.4" + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = NO + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = NO + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 4 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it parses. +# With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this tag. +# The format is ext=language, where ext is a file extension, and language is one of +# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, +# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat +# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penality. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will rougly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = NO + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = YES + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = NO + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = NO + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by +# doxygen. The layout file controls the global structure of the generated output files +# in an output format independent way. The create the layout file that represents +# doxygen's defaults, run doxygen with the -l option. You can optionally specify a +# file name after the option, if omitted DoxygenLayout.xml will be used as the name +# of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text " + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = README-Qt4Qt5.doc ../Qt4Qt5/Qsci + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = qsci*.h + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = Qsci + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html-Qt4Qt5 + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = NO + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER +# are set, an additional index file will be generated that can be used as input for +# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated +# HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. +# For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's +# filter section matches. +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 3 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# When the SEARCHENGINE tag is enable doxygen will generate a search box for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP) or Qt help (GENERATE_QHP) +# there is already a search function so this one should typically +# be disabled. + +SEARCHENGINE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = QT_VERSION=0x040000 + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = NO + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = NO + +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = FreeSans + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/example-Qt3/application.cpp b/example-Qt3/application.cpp new file mode 100644 index 0000000..bd377ef --- /dev/null +++ b/example-Qt3/application.cpp @@ -0,0 +1,271 @@ +/**************************************************************************** +** $Id: application.cpp,v 1.1 2004/09/18 17:31:23 phil Exp $ +** +** Copyright (C) 1992-2002 Trolltech AS. All rights reserved. +** +** This file is part of an example program for Qt. This example +** program may be used, distributed and modified without limitation. +** +*****************************************************************************/ + +#include "application.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "filesave.xpm" +#include "fileopen.xpm" +#include "fileprint.xpm" + +ApplicationWindow::ApplicationWindow() + : QMainWindow( 0, "example application main window", WDestructiveClose | WGroupLeader ) +{ + printer = new QsciPrinter( QPrinter::HighResolution ); + QPixmap openIcon, saveIcon, printIcon; + + QToolBar * fileTools = new QToolBar( this, "file operations" ); + fileTools->setLabel( "File Operations" ); + + openIcon = QPixmap( fileopen ); + QToolButton * fileOpen + = new QToolButton( openIcon, "Open File", QString::null, + this, SLOT(choose()), fileTools, "open file" ); + + saveIcon = QPixmap( filesave ); + QToolButton * fileSave + = new QToolButton( saveIcon, "Save File", QString::null, + this, SLOT(save()), fileTools, "save file" ); + + printIcon = QPixmap( fileprint ); + QToolButton * filePrint + = new QToolButton( printIcon, "Print File", QString::null, + this, SLOT(print()), fileTools, "print file" ); + + + (void)QWhatsThis::whatsThisButton( fileTools ); + + const char * fileOpenText = "

" + "Click this button to open a new file.
" + "You can also select the Open command " + "from the File menu.

"; + + QWhatsThis::add( fileOpen, fileOpenText ); + + QMimeSourceFactory::defaultFactory()->setPixmap( "fileopen", openIcon ); + + const char * fileSaveText = "

Click this button to save the file you " + "are editing. You will be prompted for a file name.\n" + "You can also select the Save command " + "from the File menu.

"; + + QWhatsThis::add( fileSave, fileSaveText ); + + const char * filePrintText = "Click this button to print the file you " + "are editing.\n" + "You can also select the Print command " + "from the File menu."; + + QWhatsThis::add( filePrint, filePrintText ); + + + QPopupMenu * file = new QPopupMenu( this ); + menuBar()->insertItem( "&File", file ); + + + file->insertItem( "&New", this, SLOT(newDoc()), CTRL+Key_N ); + + int id; + id = file->insertItem( openIcon, "&Open...", + this, SLOT(choose()), CTRL+Key_O ); + file->setWhatsThis( id, fileOpenText ); + + id = file->insertItem( saveIcon, "&Save", + this, SLOT(save()), CTRL+Key_S ); + file->setWhatsThis( id, fileSaveText ); + + id = file->insertItem( "Save &As...", this, SLOT(saveAs()) ); + file->setWhatsThis( id, fileSaveText ); + + file->insertSeparator(); + + id = file->insertItem( printIcon, "&Print...", + this, SLOT(print()), CTRL+Key_P ); + file->setWhatsThis( id, filePrintText ); + + file->insertSeparator(); + + file->insertItem( "&Close", this, SLOT(close()), CTRL+Key_W ); + + file->insertItem( "&Quit", qApp, SLOT( closeAllWindows() ), CTRL+Key_Q ); + + menuBar()->insertSeparator(); + + QPopupMenu * help = new QPopupMenu( this ); + menuBar()->insertItem( "&Help", help ); + + help->insertItem( "&About", this, SLOT(about()), Key_F1 ); + help->insertItem( "About &Qt", this, SLOT(aboutQt()) ); + help->insertSeparator(); + help->insertItem( "What's &This", this, SLOT(whatsThis()), SHIFT+Key_F1 ); + + e = new QsciScintilla( this, "editor" ); + e->setFocus(); + setCentralWidget( e ); + statusBar()->message( "Ready", 2000 ); + + resize( 450, 600 ); +} + + +ApplicationWindow::~ApplicationWindow() +{ + delete printer; +} + + + +void ApplicationWindow::newDoc() +{ + ApplicationWindow *ed = new ApplicationWindow; + ed->setCaption("QScintilla Example - Application"); + ed->show(); +} + +void ApplicationWindow::choose() +{ + QString fn = QFileDialog::getOpenFileName( QString::null, QString::null, + this); + if ( !fn.isEmpty() ) + load( fn ); + else + statusBar()->message( "Loading aborted", 2000 ); +} + + +void ApplicationWindow::load( const QString &fileName ) +{ + QFile f( fileName ); + if ( !f.open( IO_ReadOnly ) ) + return; + + QTextStream ts( &f ); + e->setText( ts.read() ); + e->setModified( FALSE ); + setCaption( fileName ); + statusBar()->message( "Loaded document " + fileName, 2000 ); +} + + +void ApplicationWindow::save() +{ + if ( filename.isEmpty() ) { + saveAs(); + return; + } + + QString text = e->text(); + QFile f( filename ); + if ( !f.open( IO_WriteOnly ) ) { + statusBar()->message( QString("Could not write to %1").arg(filename), + 2000 ); + return; + } + + QTextStream t( &f ); + t << text; + f.close(); + + e->setModified( FALSE ); + + setCaption( filename ); + + statusBar()->message( QString( "File %1 saved" ).arg( filename ), 2000 ); +} + + +void ApplicationWindow::saveAs() +{ + QString fn = QFileDialog::getSaveFileName( QString::null, QString::null, + this ); + if ( !fn.isEmpty() ) { + filename = fn; + save(); + } else { + statusBar()->message( "Saving aborted", 2000 ); + } +} + + +void ApplicationWindow::print() +{ + printer->setFullPage( TRUE ); + if ( printer->setup(this) ) { // printer dialog + statusBar()->message( "Printing..." ); + + if (printer->printRange( e )) + statusBar()->message( "Printing completed", 2000 ); + else + statusBar()->message( "Error while printing", 2000 ); + } else { + statusBar()->message( "Printing aborted", 2000 ); + } +} + +void ApplicationWindow::closeEvent( QCloseEvent* ce ) +{ + if ( !e->isModified() ) { + ce->accept(); + return; + } + + switch( QMessageBox::information( this, "QScintilla Application Example", + "Do you want to save the changes" + " to the document?", + "Yes", "No", "Cancel", + 0, 1 ) ) { + case 0: + save(); + ce->accept(); + break; + case 1: + ce->accept(); + break; + case 2: + default: // just for sanity + ce->ignore(); + break; + } +} + + +void ApplicationWindow::about() +{ + QMessageBox::about( this, "QScintilla Application Example", + "This example demonstrates a simple use of " + "QsciScintilla and QsciPrinter."); +} + + +void ApplicationWindow::aboutQt() +{ + QMessageBox::aboutQt( this, "QScintilla Application Example" ); +} diff --git a/example-Qt3/application.h b/example-Qt3/application.h new file mode 100644 index 0000000..4c555ce --- /dev/null +++ b/example-Qt3/application.h @@ -0,0 +1,48 @@ +/**************************************************************************** +** $Id: application.h,v 1.1 2004/09/18 17:31:23 phil Exp $ +** +** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. +** +** This file is part of an example program for Qt. This example +** program may be used, distributed and modified without limitation. +** +*****************************************************************************/ + +#ifndef APPLICATION_H +#define APPLICATION_H + +#include + +class QsciScintilla; +class QsciPrinter; + +class ApplicationWindow: public QMainWindow +{ + Q_OBJECT + +public: + ApplicationWindow(); + ~ApplicationWindow(); + +protected: + void closeEvent( QCloseEvent* ); + +private slots: + void newDoc(); + void choose(); + void load( const QString &fileName ); + void save(); + void saveAs(); + void print(); + + void about(); + void aboutQt(); + +private: + QsciPrinter *printer; + QsciScintilla *e; + QString filename; +}; + + +#endif diff --git a/example-Qt3/application.pro b/example-Qt3/application.pro new file mode 100644 index 0000000..4437361 --- /dev/null +++ b/example-Qt3/application.pro @@ -0,0 +1,10 @@ +TEMPLATE = app +TARGET = application + +CONFIG += qt warn_on release + +LIBS += -lqscintilla2 + +HEADERS = application.h +SOURCES = application.cpp \ + main.cpp diff --git a/example-Qt3/fileopen.xpm b/example-Qt3/fileopen.xpm new file mode 100644 index 0000000..880417e --- /dev/null +++ b/example-Qt3/fileopen.xpm @@ -0,0 +1,22 @@ +/* XPM */ +static const char *fileopen[] = { +" 16 13 5 1", +". c #040404", +"# c #808304", +"a c None", +"b c #f3f704", +"c c #f3f7f3", +"aaaaaaaaa...aaaa", +"aaaaaaaa.aaa.a.a", +"aaaaaaaaaaaaa..a", +"a...aaaaaaaa...a", +".bcb.......aaaaa", +".cbcbcbcbc.aaaaa", +".bcbcbcbcb.aaaaa", +".cbcb...........", +".bcb.#########.a", +".cb.#########.aa", +".b.#########.aaa", +"..#########.aaaa", +"...........aaaaa" +}; diff --git a/example-Qt3/fileprint.xpm b/example-Qt3/fileprint.xpm new file mode 100644 index 0000000..6ada912 --- /dev/null +++ b/example-Qt3/fileprint.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static const char *fileprint[] = { +" 16 14 6 1", +". c #000000", +"# c #848284", +"a c #c6c3c6", +"b c #ffff00", +"c c #ffffff", +"d c None", +"ddddd.........dd", +"dddd.cccccccc.dd", +"dddd.c.....c.ddd", +"ddd.cccccccc.ddd", +"ddd.c.....c....d", +"dd.cccccccc.a.a.", +"d..........a.a..", +".aaaaaaaaaa.a.a.", +".............aa.", +".aaaaaa###aa.a.d", +".aaaaaabbbaa...d", +".............a.d", +"d.aaaaaaaaa.a.dd", +"dd...........ddd" +}; diff --git a/example-Qt3/filesave.xpm b/example-Qt3/filesave.xpm new file mode 100644 index 0000000..bd6870f --- /dev/null +++ b/example-Qt3/filesave.xpm @@ -0,0 +1,22 @@ +/* XPM */ +static const char *filesave[] = { +" 14 14 4 1", +". c #040404", +"# c #808304", +"a c #bfc2bf", +"b c None", +"..............", +".#.aaaaaaaa.a.", +".#.aaaaaaaa...", +".#.aaaaaaaa.#.", +".#.aaaaaaaa.#.", +".#.aaaaaaaa.#.", +".#.aaaaaaaa.#.", +".##........##.", +".############.", +".##.........#.", +".##......aa.#.", +".##......aa.#.", +".##......aa.#.", +"b............." +}; diff --git a/example-Qt3/main.cpp b/example-Qt3/main.cpp new file mode 100644 index 0000000..3c2722c --- /dev/null +++ b/example-Qt3/main.cpp @@ -0,0 +1,21 @@ +/**************************************************************************** +** $Id: main.cpp,v 1.1 2004/09/18 17:31:23 phil Exp $ +** +** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. +** +** This file is part of an example program for Qt. This example +** program may be used, distributed and modified without limitation. +** +*****************************************************************************/ + +#include +#include "application.h" + +int main( int argc, char ** argv ) { + QApplication a( argc, argv ); + ApplicationWindow *mw = new ApplicationWindow(); + mw->setCaption( "QScintilla Example - Application" ); + mw->show(); + a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) ); + return a.exec(); +} diff --git a/example-Qt4Qt5/application.pro b/example-Qt4Qt5/application.pro new file mode 100644 index 0000000..0d38c13 --- /dev/null +++ b/example-Qt4Qt5/application.pro @@ -0,0 +1,9 @@ +CONFIG += release qscintilla2 + +macx { + QMAKE_POST_LINK = install_name_tool -change libqscintilla2.11.dylib $$[QT_INSTALL_LIBS]/libqscintilla2.11.dylib $(TARGET) +} + +HEADERS = mainwindow.h +SOURCES = main.cpp mainwindow.cpp +RESOURCES = application.qrc diff --git a/example-Qt4Qt5/application.qrc b/example-Qt4Qt5/application.qrc new file mode 100644 index 0000000..0a776fa --- /dev/null +++ b/example-Qt4Qt5/application.qrc @@ -0,0 +1,10 @@ + + + images/copy.png + images/cut.png + images/new.png + images/open.png + images/paste.png + images/save.png + + diff --git a/example-Qt4Qt5/images/copy.png b/example-Qt4Qt5/images/copy.png new file mode 100644 index 0000000000000000000000000000000000000000..f2c04dfe30bb668579edc52dd20d79e65f794289 GIT binary patch literal 1339 zcmV-B1;qM^P)D4e0i~yl%M(eSR;z=Nu$lPz-oc0og zoB&7OJFPYcHZrCJ5MgHFct&JQipEk{2_+GZrqJA>u|Emoe*s8|$vl#HWGu<&55n$= z!sQMk5=*1>;~z{kbXftg>&Q0Mke)gC+?f|&E%AJ+JdKK~8dNfUSX+nNV-t@7SZzzV zzvzc+6jZ zxjE=2CQwjNfFaHAeB4Q<`320FTpYmRPr>60;m2N`$N*|~15iU|c*+%z$KmyQkxr*E zIXQ{S%4*Ec8hHZ`%r@wzEgXPkT5#k0>!WU20m9)hj7B4WPNh=#xwjXMpM8ND2H{u| zq3-I&sfI?JX*!2nBjdPmZCGA_jg1ZH_4>zv`uh5zWDuc^ILtN|1cMP%GbUIa9$f4i zl^k`t92KyPOo z68jY6U%LCGRX5fw$m~&?CUtX3GKuS-k2_PDca`R9q zgyPZ)Tpbi}i*1sF25^uO6QJyn86fp=%t>TU`vQR!msR0Hw}AfXjJftfrh!k|Wditj z^^}^ly1L3C-YKcTrCtGdZQ%N42Dm*BoVvJ20I7BoO*%?W+cA9ytgNhHeSMun9A^!D z+a*9f0sK0bY2fl0(6E;VBx7l_y+ryJfFmD}KpuIj0>^xExqLli|EJ@!WO`IpMcw1cUb>2Ox3VggX9R2)E>;nH}MAtj}K zpHe#<4lXiYTwLT(FCTryMd!%f9&~pEXlZE?rHzGBOJ6qhyu7>&pU(%I&BpIbOG_Mr z0O+}}u+S_E08J_>H5t(}-RT>TYNrOQRx7WbTA}|L42DErUfwI)b43srvc(d0w|h zqlwhj)j1!g?PB_f>2S8cGyfAnsZ@$ir;}GqN$KQ6N$czDojEx>X#9duwSOz^*2K~Rv2iD&0qik002ovPDHLkV1nLmW`h6# literal 0 HcmV?d00001 diff --git a/example-Qt4Qt5/images/cut.png b/example-Qt4Qt5/images/cut.png new file mode 100644 index 0000000000000000000000000000000000000000..54638e9386dc8af40dcc9a3ee2f57c62e248e406 GIT binary patch literal 1323 zcmV+`1=RY9P)J0(1!|L=@Q+aTEb7Mu4u}WZlMQB24&|#EVDBq0{%sj+Z+)GGQx0 zAcdU1Fi0-lfEhqCt9ecIzWZ_$Xk-SF1YV<2^ak#QNA=LXgUd}Io1OMRbT7RYGCd%P zKS-r48v%?ldBMA#h)c%T#wHG+5V`$A{>3XcMvM|%P6Cssr>70f(>b}AV>T2D(&VEn zK_HANo+{rrN9){swakg0Ktz^QgDWfxHbzJY6ZK>&doEN10r&$qzrYSODpcQMh*H%o zSOat&76=4-MOF34plx)*)N}VCzH?EPkgku=6VK(8gNL*Np3E)-)CS$Jnai-RudhD8 z(qOgQ?SS}sjv4h}*IqNacG`39XxPWcN1v;!unrFm!4QYC z_Acj^H}`jQVc5OsUVtxVnxKZ?sWw9Q@B`QxpVZH#=NgKbEq?xOmsA>SUtb@%(9v@T zVsaH$PQ-_o)Qm6`=@qvgI2;Z@q}CZRo`stQer>5G8e5my4CXEh^CT4CHjaC}9?{K0 z$O&($1U%8bR;v{dcYhm%^O9V6PFgxKporEb{=Djv}7NhUQZ#8TNvL0_NhN zpdjG!cwn(uKwDk``_Co}Ev8e>XOzzgOoQTEd*;Gmnz9rW3I&M8V#v(QgrcG%P^;C@ z+1bfp?EcBQ$=j!OF1OE1fUdXLDR2(JYL~2dh{}J0;wgy^K9?&YTb2(8W8+7JA12t6 za%7Hg8ovjl(FiTAE%3|0ARIXHz6G;l!311sgoTBKM%*UnGOR4mGqn@!JL9_3Gp~Z> z{(6Z9p5FXo8}~etjeBORPg}}0?N~!YJv1~lfTgz=G8Dzb^Xb54Jd))oo;F?OoGLPS zee{DaT5J+A3>zitarZCFC+`J^U;fkNL<>x4^vOPTl^zTR1GKld!`H@^F|L6LX7M&{ zIA}acIyz>{0a00^F4~fx%15b|k+|p_1^WSy+Zxk*z z((l+8X-U2;oygOcJEspZj3vh3pSpKnaW$YpY_$lC`IPbC@H0!Ad}tF|z0RZAYfnh` z3=gmm{_}^(`7iFdNp1l4dp_;=2p%dvUFBG+@kd(qwpj}i9kWBpkvIuC`Kgv6`dk_f h&$IvkH~dc%_#Nkm8M#Em0nY#c002ovPDHLkV1hsWYZL$g literal 0 HcmV?d00001 diff --git a/example-Qt4Qt5/images/new.png b/example-Qt4Qt5/images/new.png new file mode 100644 index 0000000000000000000000000000000000000000..12131b01008a3ec29ec69f8b3f65c4b3c15b60d6 GIT binary patch literal 852 zcmV-a1FQUrP)IE2xvpcKl890$E8eWxeF8o0mWjmIG{M&7eWO9CVRojsy7@;&dpQ!a9t0J7gPX(5I|>76wd9YM;~Wq>Ghkp6rY@= zsi|pt_x=M#qtRtve?bMn?-1>_C5DBX;{}vm&C%raD|#~il%B<2&`e?uix*V@+JPAL z6CgbQkZR2~6*sGtFK$zbV~w|k*M3m}@OjM5T^_Z^d)w}xJHF(IUAVpO;*`oW;C1B2 zbys585IO4RGepz@rv~8kI;}Y(n3!mCfS7AgQ=I?+DlNG&;!abH5Df(KZTl#;d_@48 zJKJjfX^uQ>h#Iar6M#C8w^So4*Tn<|1^_iEoENLSCA-QKz)fKe6)JLW%zjz|XlmW9 z@suY3Q`{VJZCgNKnyVajp6h`@6-N=kYKbun)^`LT3}hx^wrO>XsHzE2w#B^A1Ngov zV}~hV3>btQ09#E(0CWRWn5~q>9Op*n90161U8$i6fc^Yd5_2;F2sIc&=-PaaDX2~W zTL1&dm}fQw05ax<-uM>_{4Cgt02pUFPqb7NBbWjJ0t`O;#ZxHoL%3#1_iOo5hu6MT z0mxO4x=yW24v?>f-nYV%Jx`{y-lMT`>)O!u6_~SbsQ_#=q-z-e;1PdX7gN*|3t4aE z?!Drr!OKg0ZH#q?HK_Wx9NlHvJdYn4{+`bsH@(TacqVT~0BG|6fti$^=|8_20YcOC e{Jor>rG5iZY$c(Rl?rzN0000RP)CWtKz1rEEwa&Ubd$6s{da=&VIP1;2`BM0`Wb;D z{M-!)vd0-ix#k=pmKgFxQgYk(eOi$0QlJD2NbOI5d5567avIIj< zv@<}9dj`!tE;Q@xs8{wNhf{?zUNu9!u=J3D!C+h_ze{}K1V|htI6?j0>T@UYxhDij zhnKMl|M#(rT!AcZ}eF)wgP_d zAX10jekLr}U#(CrCA<(opAbNs2#S{v>vbjZBPMG2>Dlh2!oC#Mk@9m9Zc z2%^^3CBjkLC=!RpAFqNhVw6pZB#Q!^oqj*T-F(Vw$mLX*nO_ zNX-3DeeTpEomGUYnz~IsN92z9JUkMF)7=lf!HB}*Vw`?29z6pA^e+N~guKQ7E$%u) zC{dC3_66}y+`oN81yr%;K@{IH8|1O-3y*riL6}qGd@SEo}8X#Q_kq zZ|eG3QMpHgF(8Pc07FLLD$kpMaaUZZl&Qk=tr>Kq76&g@g}Kbh`}mD}bLg zSob6#9DIaI(-=7VVTPPm{Z+FbtPVT4Iv?2~9(pg}6TG@z0w%t}gOqRBIG>z~1AjdP zW3QR%ZYsA%*Mp?X$w>b?i;UGgQ?+sSsoXX8X`%zES@sOGBngFV;lVB@d3_10@@V;lg>dY2BN>v^RZ2^?j@k8NdQ$X;_ z_a$H}ZfeJ=gha#~If~qTHdcoJ4Lhqwh-3dbkKgY5JsSA}oWGEOlkpdDqpb%S#7{~T>2A7M zsP8QLl$cN`w?OF*Jo#7bDJpj@!Dj^fwz=d)jlRsXTKwbW85}(HH?VT^u<$rb~rBzaiB|lB=W)A?(%51dO$!?mU^ ze8O#IHd*n50bG}w!BKl4^90wps7K`#)>4RXJ_(`usyx1v$_9j`-;Pq{6K%jV&lNRO%>FPb&x$A5bBEmwG~ zsNAo;tlZJ!2;Bu-bsyf#uSL0b05WG_^}?r@soeJn(y81#_yhC8@e_i|9PXV^3ptdy z4Z_G4qZfz6FCzC2|JrSe-C>#48@AYMyIwNBFNyyFX1QPd5r93<00000NkvXXu0mjf DP*&js literal 0 HcmV?d00001 diff --git a/example-Qt4Qt5/images/paste.png b/example-Qt4Qt5/images/paste.png new file mode 100644 index 0000000000000000000000000000000000000000..e38bbe5f24b842fe5e16249ae01a3da3660342e8 GIT binary patch literal 1745 zcmV;?1}^!DP)8bqyHwZXQL*cW}NZIjxxX;Kl=^r=nLKcI;Zq&(R^ z5Ph*td?BetG^tjEB4T3IVo?f3P*9MSh1nhUIy*D{o!MP3aR33&=9e>j&Ybgozw0?8 z>befI#&O&M>b7F})`)kHH!*B{31fGM1 z+#o*FQS20r6`F2LZ{j$E$wrcN5@r!sV(b1yoQ#+fXliQW3=GmnQ-SjG^{@m50!}rw zXUW3$&UM&f69w2TJo?6bxcXoW%|juCY|fIJnqA*hP)4e%s!}pCGQ`5dLMs!O%Vp{4 z=#cB{>urQ_Vo3`i5n~x?Hf+jFLs(G}jWG>%@HAl+dDtxie4!{txE%a^`B%7#irF%@ z`MUZ0sHzG@QIMILNeY$Q@7}#z$1Fq&omi9rFT_nP2plvLfdWFL5ltuKaPe^_{Sz|Y zK6n@fg+*AbmN0O?-;dPPR3n%h8yia~evZ#4F-xGfwpOpJtJ4LVB|+;G{+}Wa}n?)0iVx@tgI}9fZc9KLqh|z5+iYs*0wxn0YQjIHS;lN6Nm(l znMe#$Ac9ad21TW)unO?gSctM>sm5Fo3wjd`b2NY=N?d>)G@87?F zcHfH^FG8ZC#mKnbZbpbD8qd<+)B-H6A5MqxFlNV_hrdL{YwzHxEMnXnhEI+nf*1t% zyKtwe2x~IV{nm=@+bZ#BbOO}}Yw_prO{lJ}Hne5_PfJTPik8#qB#VkhElF06=Yx=Z zI~LF(x!gGNRRd%(7m^$SCn(TqE=c5`O+_HjM4{4iZ@LxR-EX0{e*oj53QXO23eiYg z-5|g~OG`_QqQ!!b#lq<5XtLax97d%6BU#5sUwjLPs~97#XW$w92cj(n8%nFNuDlZe zraCY*Lavz#W7HGG7>UT`!!zl_+dJ*Zn@50Y&$MPPG63n>>-8E0n9EHGlxA|ca;A}r z5RVk!F!G&t#OQ!{($|JbEghR{K0{W;KHTn;Fs=q5`xOLcNCHaSu=-qfSS%I;G*Rkj z#}Y-?%mtwG%2Dwdf;G*FoU-iMx%GMJkb(*Z+kb+`(T(!TNq z{i*{$e6kh2kNvP0ZpMz?`xeZ1(_vdtQL#1xI^uPo<1ic5$$qyx8@tM!XucLi#;)!7 z^w_awK~_Y-@O`pRT7cb3`i1%W_7?db>XD1{0vI1T?VHXrKLd>*5-PJz!8#8DIjU4h)0S{a*K!i>mJVVCD^kQ5IHGsm^=1>z+FI)Tw&v zz2|;5 zYXiKvXAppke-?cB?jC^K0C4>59N#}M1b8m}xWN9m&Tq?d4;^`$3nP}(pC4rW)qR_5 zKt-??KzML0Bg?XF0WdI@VU185d=w)kA`~mw7?IVLbLY;3D!2sF6tWD`ER0DCNfO?7 zI*{j(x1rU7b}No;C~~s;IMxc|ue?cX@%rWftQD*k1h7Wfy?f^tYwL!tfLf?lf$D8h zjjsf?g7=`NgaKy-HG&AJ3Y9FwBOo3K!0;X~0^TDMCKY^$Bg7#dJRx2{O;{K}*Gh>7 ztf1Os0Gczu1&UJ#X#$l5vNZMt5(iG9=s;dTE04VeOF6W2$O}}5aXkPkPoHKY21CJ!U{_^v8Xy`U*q`vX%#{A#01X5mtL``3Wj}4_b=eEU&o)}BH zcC!Nrol+61khoCqTE#GZvCBZkunzPltylR~F5%(E(lYhTaDB;yE$K=b5S$vobLD22 zD>u8WQCC0Ls$_n}C!#5=1r@`b3$=HqY!|4(sUXN2HLsgB8jo2qp8k93?-T&>g72GH zFe_J90#zZ=ko@OU-}3936D%#>xTpG8Y6Cp=>`tC}VFC}RGg~nb1AK?~_rJly!UDH$ z-J&Q8L>2*RmC}ns$#9hnDF1_1m8Hc<-5*m|${p@{U>9F*?@YhOX2JRd6<}qE@f>YdJGB!_d$W)>^#xG@H%40#K{h zaM6gg)QA+E3nyHlDgdZft7KW$r?@xXX>%H>7ePy{I3CBnBed6yF^ELpk2<)ko3Ayf z4fFOGE + +#include "mainwindow.h" + +int main(int argc, char *argv[]) +{ + Q_INIT_RESOURCE(application); + + QApplication app(argc, argv); + MainWindow mainWin; + mainWin.show(); + return app.exec(); +} diff --git a/example-Qt4Qt5/mainwindow.cpp b/example-Qt4Qt5/mainwindow.cpp new file mode 100644 index 0000000..a400005 --- /dev/null +++ b/example-Qt4Qt5/mainwindow.cpp @@ -0,0 +1,311 @@ +/**************************************************************************** +** +** Copyright (C) 2004-2006 Trolltech ASA. All rights reserved. +** +** This file is part of the example classes of the Qt Toolkit. +** +** Licensees holding a valid Qt License Agreement may use this file in +** accordance with the rights, responsibilities and obligations +** contained therein. Please consult your licensing agreement or +** contact sales@trolltech.com if any conditions of this licensing +** agreement are not clear to you. +** +** Further information about Qt licensing is available at: +** http://www.trolltech.com/products/qt/licensing.html or by +** contacting info@trolltech.com. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +****************************************************************************/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "mainwindow.h" + +MainWindow::MainWindow() +{ + textEdit = new QsciScintilla; + setCentralWidget(textEdit); + + createActions(); + createMenus(); + createToolBars(); + createStatusBar(); + + readSettings(); + + connect(textEdit, SIGNAL(textChanged()), + this, SLOT(documentWasModified())); + + setCurrentFile(""); +} + +void MainWindow::closeEvent(QCloseEvent *event) +{ + if (maybeSave()) { + writeSettings(); + event->accept(); + } else { + event->ignore(); + } +} + +void MainWindow::newFile() +{ + if (maybeSave()) { + textEdit->clear(); + setCurrentFile(""); + } +} + +void MainWindow::open() +{ + if (maybeSave()) { + QString fileName = QFileDialog::getOpenFileName(this); + if (!fileName.isEmpty()) + loadFile(fileName); + } +} + +bool MainWindow::save() +{ + if (curFile.isEmpty()) { + return saveAs(); + } else { + return saveFile(curFile); + } +} + +bool MainWindow::saveAs() +{ + QString fileName = QFileDialog::getSaveFileName(this); + if (fileName.isEmpty()) + return false; + + return saveFile(fileName); +} + +void MainWindow::about() +{ + QMessageBox::about(this, tr("About Application"), + tr("The Application example demonstrates how to " + "write modern GUI applications using Qt, with a menu bar, " + "toolbars, and a status bar.")); +} + +void MainWindow::documentWasModified() +{ + setWindowModified(textEdit->isModified()); +} + +void MainWindow::createActions() +{ + newAct = new QAction(QIcon(":/images/new.png"), tr("&New"), this); + newAct->setShortcut(tr("Ctrl+N")); + newAct->setStatusTip(tr("Create a new file")); + connect(newAct, SIGNAL(triggered()), this, SLOT(newFile())); + + openAct = new QAction(QIcon(":/images/open.png"), tr("&Open..."), this); + openAct->setShortcut(tr("Ctrl+O")); + openAct->setStatusTip(tr("Open an existing file")); + connect(openAct, SIGNAL(triggered()), this, SLOT(open())); + + saveAct = new QAction(QIcon(":/images/save.png"), tr("&Save"), this); + saveAct->setShortcut(tr("Ctrl+S")); + saveAct->setStatusTip(tr("Save the document to disk")); + connect(saveAct, SIGNAL(triggered()), this, SLOT(save())); + + saveAsAct = new QAction(tr("Save &As..."), this); + saveAsAct->setStatusTip(tr("Save the document under a new name")); + connect(saveAsAct, SIGNAL(triggered()), this, SLOT(saveAs())); + + exitAct = new QAction(tr("E&xit"), this); + exitAct->setShortcut(tr("Ctrl+Q")); + exitAct->setStatusTip(tr("Exit the application")); + connect(exitAct, SIGNAL(triggered()), this, SLOT(close())); + + cutAct = new QAction(QIcon(":/images/cut.png"), tr("Cu&t"), this); + cutAct->setShortcut(tr("Ctrl+X")); + cutAct->setStatusTip(tr("Cut the current selection's contents to the " + "clipboard")); + connect(cutAct, SIGNAL(triggered()), textEdit, SLOT(cut())); + + copyAct = new QAction(QIcon(":/images/copy.png"), tr("&Copy"), this); + copyAct->setShortcut(tr("Ctrl+C")); + copyAct->setStatusTip(tr("Copy the current selection's contents to the " + "clipboard")); + connect(copyAct, SIGNAL(triggered()), textEdit, SLOT(copy())); + + pasteAct = new QAction(QIcon(":/images/paste.png"), tr("&Paste"), this); + pasteAct->setShortcut(tr("Ctrl+V")); + pasteAct->setStatusTip(tr("Paste the clipboard's contents into the current " + "selection")); + connect(pasteAct, SIGNAL(triggered()), textEdit, SLOT(paste())); + + aboutAct = new QAction(tr("&About"), this); + aboutAct->setStatusTip(tr("Show the application's About box")); + connect(aboutAct, SIGNAL(triggered()), this, SLOT(about())); + + aboutQtAct = new QAction(tr("About &Qt"), this); + aboutQtAct->setStatusTip(tr("Show the Qt library's About box")); + connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt())); + + cutAct->setEnabled(false); + copyAct->setEnabled(false); + connect(textEdit, SIGNAL(copyAvailable(bool)), + cutAct, SLOT(setEnabled(bool))); + connect(textEdit, SIGNAL(copyAvailable(bool)), + copyAct, SLOT(setEnabled(bool))); +} + +void MainWindow::createMenus() +{ + fileMenu = menuBar()->addMenu(tr("&File")); + fileMenu->addAction(newAct); + fileMenu->addAction(openAct); + fileMenu->addAction(saveAct); + fileMenu->addAction(saveAsAct); + fileMenu->addSeparator(); + fileMenu->addAction(exitAct); + + editMenu = menuBar()->addMenu(tr("&Edit")); + editMenu->addAction(cutAct); + editMenu->addAction(copyAct); + editMenu->addAction(pasteAct); + + menuBar()->addSeparator(); + + helpMenu = menuBar()->addMenu(tr("&Help")); + helpMenu->addAction(aboutAct); + helpMenu->addAction(aboutQtAct); +} + +void MainWindow::createToolBars() +{ + fileToolBar = addToolBar(tr("File")); + fileToolBar->addAction(newAct); + fileToolBar->addAction(openAct); + fileToolBar->addAction(saveAct); + + editToolBar = addToolBar(tr("Edit")); + editToolBar->addAction(cutAct); + editToolBar->addAction(copyAct); + editToolBar->addAction(pasteAct); +} + +void MainWindow::createStatusBar() +{ + statusBar()->showMessage(tr("Ready")); +} + +void MainWindow::readSettings() +{ + QSettings settings("Trolltech", "Application Example"); + QPoint pos = settings.value("pos", QPoint(200, 200)).toPoint(); + QSize size = settings.value("size", QSize(400, 400)).toSize(); + resize(size); + move(pos); +} + +void MainWindow::writeSettings() +{ + QSettings settings("Trolltech", "Application Example"); + settings.setValue("pos", pos()); + settings.setValue("size", size()); +} + +bool MainWindow::maybeSave() +{ + if (textEdit->isModified()) { + int ret = QMessageBox::warning(this, tr("Application"), + tr("The document has been modified.\n" + "Do you want to save your changes?"), + QMessageBox::Yes | QMessageBox::Default, + QMessageBox::No, + QMessageBox::Cancel | QMessageBox::Escape); + if (ret == QMessageBox::Yes) + return save(); + else if (ret == QMessageBox::Cancel) + return false; + } + return true; +} + +void MainWindow::loadFile(const QString &fileName) +{ + QFile file(fileName); + if (!file.open(QFile::ReadOnly)) { + QMessageBox::warning(this, tr("Application"), + tr("Cannot read file %1:\n%2.") + .arg(fileName) + .arg(file.errorString())); + return; + } + + QTextStream in(&file); + QApplication::setOverrideCursor(Qt::WaitCursor); + textEdit->setText(in.readAll()); + QApplication::restoreOverrideCursor(); + + setCurrentFile(fileName); + statusBar()->showMessage(tr("File loaded"), 2000); +} + +bool MainWindow::saveFile(const QString &fileName) +{ + QFile file(fileName); + if (!file.open(QFile::WriteOnly)) { + QMessageBox::warning(this, tr("Application"), + tr("Cannot write file %1:\n%2.") + .arg(fileName) + .arg(file.errorString())); + return false; + } + + QTextStream out(&file); + QApplication::setOverrideCursor(Qt::WaitCursor); + out << textEdit->text(); + QApplication::restoreOverrideCursor(); + + setCurrentFile(fileName); + statusBar()->showMessage(tr("File saved"), 2000); + return true; +} + +void MainWindow::setCurrentFile(const QString &fileName) +{ + curFile = fileName; + textEdit->setModified(false); + setWindowModified(false); + + QString shownName; + if (curFile.isEmpty()) + shownName = "untitled.txt"; + else + shownName = strippedName(curFile); + + setWindowTitle(tr("%1[*] - %2").arg(shownName).arg(tr("Application"))); +} + +QString MainWindow::strippedName(const QString &fullFileName) +{ + return QFileInfo(fullFileName).fileName(); +} diff --git a/example-Qt4Qt5/mainwindow.h b/example-Qt4Qt5/mainwindow.h new file mode 100644 index 0000000..abcb663 --- /dev/null +++ b/example-Qt4Qt5/mainwindow.h @@ -0,0 +1,82 @@ +/**************************************************************************** +** +** Copyright (C) 2004-2006 Trolltech ASA. All rights reserved. +** +** This file is part of the example classes of the Qt Toolkit. +** +** Licensees holding a valid Qt License Agreement may use this file in +** accordance with the rights, responsibilities and obligations +** contained therein. Please consult your licensing agreement or +** contact sales@trolltech.com if any conditions of this licensing +** agreement are not clear to you. +** +** Further information about Qt licensing is available at: +** http://www.trolltech.com/products/qt/licensing.html or by +** contacting info@trolltech.com. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +****************************************************************************/ + +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +class QAction; +class QMenu; +class QsciScintilla; + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + MainWindow(); + +protected: + void closeEvent(QCloseEvent *event); + +private slots: + void newFile(); + void open(); + bool save(); + bool saveAs(); + void about(); + void documentWasModified(); + +private: + void createActions(); + void createMenus(); + void createToolBars(); + void createStatusBar(); + void readSettings(); + void writeSettings(); + bool maybeSave(); + void loadFile(const QString &fileName); + bool saveFile(const QString &fileName); + void setCurrentFile(const QString &fileName); + QString strippedName(const QString &fullFileName); + + QsciScintilla *textEdit; + QString curFile; + + QMenu *fileMenu; + QMenu *editMenu; + QMenu *helpMenu; + QToolBar *fileToolBar; + QToolBar *editToolBar; + QAction *newAct; + QAction *openAct; + QAction *saveAct; + QAction *saveAsAct; + QAction *exitAct; + QAction *cutAct; + QAction *copyAct; + QAction *pasteAct; + QAction *aboutAct; + QAction *aboutQtAct; +}; + +#endif diff --git a/include/ILexer.h b/include/ILexer.h new file mode 100644 index 0000000..b900927 --- /dev/null +++ b/include/ILexer.h @@ -0,0 +1,98 @@ +// Scintilla source code edit control +/** @file ILexer.h + ** Interface between Scintilla and lexers. + **/ +// Copyright 1998-2010 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#ifndef ILEXER_H +#define ILEXER_H + +#ifdef SCI_NAMESPACE +namespace Scintilla { +#endif + +#ifdef _WIN32 + #define SCI_METHOD __stdcall +#else + #define SCI_METHOD +#endif + +enum { dvOriginal=0, dvLineEnd=1 }; + +class IDocument { +public: + virtual int SCI_METHOD Version() const = 0; + virtual void SCI_METHOD SetErrorStatus(int status) = 0; + virtual int SCI_METHOD Length() const = 0; + virtual void SCI_METHOD GetCharRange(char *buffer, int position, int lengthRetrieve) const = 0; + virtual char SCI_METHOD StyleAt(int position) const = 0; + virtual int SCI_METHOD LineFromPosition(int position) const = 0; + virtual int SCI_METHOD LineStart(int line) const = 0; + virtual int SCI_METHOD GetLevel(int line) const = 0; + virtual int SCI_METHOD SetLevel(int line, int level) = 0; + virtual int SCI_METHOD GetLineState(int line) const = 0; + virtual int SCI_METHOD SetLineState(int line, int state) = 0; + virtual void SCI_METHOD StartStyling(int position, char mask) = 0; + virtual bool SCI_METHOD SetStyleFor(int length, char style) = 0; + virtual bool SCI_METHOD SetStyles(int length, const char *styles) = 0; + virtual void SCI_METHOD DecorationSetCurrentIndicator(int indicator) = 0; + virtual void SCI_METHOD DecorationFillRange(int position, int value, int fillLength) = 0; + virtual void SCI_METHOD ChangeLexerState(int start, int end) = 0; + virtual int SCI_METHOD CodePage() const = 0; + virtual bool SCI_METHOD IsDBCSLeadByte(char ch) const = 0; + virtual const char * SCI_METHOD BufferPointer() = 0; + virtual int SCI_METHOD GetLineIndentation(int line) = 0; +}; + +class IDocumentWithLineEnd : public IDocument { +public: + virtual int SCI_METHOD LineEnd(int line) const = 0; + virtual int SCI_METHOD GetRelativePosition(int positionStart, int characterOffset) const = 0; + virtual int SCI_METHOD GetCharacterAndWidth(int position, int *pWidth) const = 0; +}; + +enum { lvOriginal=0, lvSubStyles=1 }; + +class ILexer { +public: + virtual int SCI_METHOD Version() const = 0; + virtual void SCI_METHOD Release() = 0; + virtual const char * SCI_METHOD PropertyNames() = 0; + virtual int SCI_METHOD PropertyType(const char *name) = 0; + virtual const char * SCI_METHOD DescribeProperty(const char *name) = 0; + virtual int SCI_METHOD PropertySet(const char *key, const char *val) = 0; + virtual const char * SCI_METHOD DescribeWordListSets() = 0; + virtual int SCI_METHOD WordListSet(int n, const char *wl) = 0; + virtual void SCI_METHOD Lex(unsigned int startPos, int lengthDoc, int initStyle, IDocument *pAccess) = 0; + virtual void SCI_METHOD Fold(unsigned int startPos, int lengthDoc, int initStyle, IDocument *pAccess) = 0; + virtual void * SCI_METHOD PrivateCall(int operation, void *pointer) = 0; +}; + +class ILexerWithSubStyles : public ILexer { +public: + virtual int SCI_METHOD LineEndTypesSupported() = 0; + virtual int SCI_METHOD AllocateSubStyles(int styleBase, int numberStyles) = 0; + virtual int SCI_METHOD SubStylesStart(int styleBase) = 0; + virtual int SCI_METHOD SubStylesLength(int styleBase) = 0; + virtual int SCI_METHOD StyleFromSubStyle(int subStyle) = 0; + virtual int SCI_METHOD PrimaryStyleFromStyle(int style) = 0; + virtual void SCI_METHOD FreeSubStyles() = 0; + virtual void SCI_METHOD SetIdentifiers(int style, const char *identifiers) = 0; + virtual int SCI_METHOD DistanceToSecondaryStyles() = 0; + virtual const char * SCI_METHOD GetSubStyleBases() = 0; +}; + +class ILoader { +public: + virtual int SCI_METHOD Release() = 0; + // Returns a status code from SC_STATUS_* + virtual int SCI_METHOD AddData(char *data, int length) = 0; + virtual void * SCI_METHOD ConvertToDocument() = 0; +}; + +#ifdef SCI_NAMESPACE +} +#endif + +#endif diff --git a/include/License.txt b/include/License.txt new file mode 100644 index 0000000..cbe25b2 --- /dev/null +++ b/include/License.txt @@ -0,0 +1,20 @@ +License for Scintilla and SciTE + +Copyright 1998-2003 by Neil Hodgson + +All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation. + +NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS +SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY +SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE +OR PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/include/Platform.h b/include/Platform.h new file mode 100644 index 0000000..016d637 --- /dev/null +++ b/include/Platform.h @@ -0,0 +1,534 @@ +// Scintilla source code edit control +/** @file Platform.h + ** Interface to platform facilities. Also includes some basic utilities. + ** Implemented in PlatGTK.cxx for GTK+/Linux, PlatWin.cxx for Windows, and PlatWX.cxx for wxWindows. + **/ +// Copyright 1998-2009 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#ifndef PLATFORM_H +#define PLATFORM_H + +// PLAT_GTK = GTK+ on Linux or Win32 +// PLAT_GTK_WIN32 is defined additionally when running PLAT_GTK under Win32 +// PLAT_WIN = Win32 API on Win32 OS +// PLAT_WX is wxWindows on any supported platform +// PLAT_TK = Tcl/TK on Linux or Win32 + +#define PLAT_GTK 0 +#define PLAT_GTK_WIN32 0 +#define PLAT_GTK_MACOSX 0 +#define PLAT_MACOSX 0 +#define PLAT_WIN 0 +#define PLAT_WX 0 +#define PLAT_QT 0 +#define PLAT_FOX 0 +#define PLAT_CURSES 0 +#define PLAT_TK 0 + +#if defined(FOX) +#undef PLAT_FOX +#define PLAT_FOX 1 + +#elif defined(__WX__) +#undef PLAT_WX +#define PLAT_WX 1 + +#elif defined(CURSES) +#undef PLAT_CURSES +#define PLAT_CURSES 1 + +#elif defined(SCINTILLA_QT) +#undef PLAT_QT +#define PLAT_QT 1 + +#include +QT_BEGIN_NAMESPACE +class QPainter; +QT_END_NAMESPACE + +// This is needed to work around an HP-UX bug with Qt4. +#include + +#elif defined(TK) +#undef PLAT_TK +#define PLAT_TK 1 + +#elif defined(GTK) +#undef PLAT_GTK +#define PLAT_GTK 1 + +#if defined(__WIN32__) || defined(_MSC_VER) +#undef PLAT_GTK_WIN32 +#define PLAT_GTK_WIN32 1 +#endif + +#if defined(__APPLE__) +#undef PLAT_GTK_MACOSX +#define PLAT_GTK_MACOSX 1 +#endif + +#elif defined(__APPLE__) + +#undef PLAT_MACOSX +#define PLAT_MACOSX 1 + +#else +#undef PLAT_WIN +#define PLAT_WIN 1 + +#endif + +#ifdef SCI_NAMESPACE +namespace Scintilla { +#endif + +typedef float XYPOSITION; +typedef double XYACCUMULATOR; +//#define XYPOSITION int + +// Underlying the implementation of the platform classes are platform specific types. +// Sometimes these need to be passed around by client code so they are defined here + +typedef void *FontID; +typedef void *SurfaceID; +typedef void *WindowID; +typedef void *MenuID; +typedef void *TickerID; +typedef void *Function; +typedef void *IdlerID; + +/** + * A geometric point class. + * Point is exactly the same as the Win32 POINT and GTK+ GdkPoint so can be used interchangeably. + */ +class Point { +public: + XYPOSITION x; + XYPOSITION y; + + explicit Point(XYPOSITION x_=0, XYPOSITION y_=0) : x(x_), y(y_) { + } + + // Other automatically defined methods (assignment, copy constructor, destructor) are fine + + static Point FromLong(long lpoint); +}; + +/** + * A geometric rectangle class. + * PRectangle is exactly the same as the Win32 RECT so can be used interchangeably. + * PRectangles contain their top and left sides, but not their right and bottom sides. + */ +class PRectangle { +public: + XYPOSITION left; + XYPOSITION top; + XYPOSITION right; + XYPOSITION bottom; + + PRectangle(XYPOSITION left_=0, XYPOSITION top_=0, XYPOSITION right_=0, XYPOSITION bottom_ = 0) : + left(left_), top(top_), right(right_), bottom(bottom_) { + } + + // Other automatically defined methods (assignment, copy constructor, destructor) are fine + + bool operator==(PRectangle &rc) const { + return (rc.left == left) && (rc.right == right) && + (rc.top == top) && (rc.bottom == bottom); + } + bool Contains(Point pt) const { + return (pt.x >= left) && (pt.x <= right) && + (pt.y >= top) && (pt.y <= bottom); + } + bool Contains(PRectangle rc) const { + return (rc.left >= left) && (rc.right <= right) && + (rc.top >= top) && (rc.bottom <= bottom); + } + bool Intersects(PRectangle other) const { + return (right > other.left) && (left < other.right) && + (bottom > other.top) && (top < other.bottom); + } + void Move(XYPOSITION xDelta, XYPOSITION yDelta) { + left += xDelta; + top += yDelta; + right += xDelta; + bottom += yDelta; + } + XYPOSITION Width() const { return right - left; } + XYPOSITION Height() const { return bottom - top; } + bool Empty() const { + return (Height() <= 0) || (Width() <= 0); + } +}; + +/** + * Holds a desired RGB colour. + */ +class ColourDesired { + long co; +public: + ColourDesired(long lcol=0) { + co = lcol; + } + + ColourDesired(unsigned int red, unsigned int green, unsigned int blue) { + Set(red, green, blue); + } + + bool operator==(const ColourDesired &other) const { + return co == other.co; + } + + void Set(long lcol) { + co = lcol; + } + + void Set(unsigned int red, unsigned int green, unsigned int blue) { + co = red | (green << 8) | (blue << 16); + } + + static inline unsigned int ValueOfHex(const char ch) { + if (ch >= '0' && ch <= '9') + return ch - '0'; + else if (ch >= 'A' && ch <= 'F') + return ch - 'A' + 10; + else if (ch >= 'a' && ch <= 'f') + return ch - 'a' + 10; + else + return 0; + } + + void Set(const char *val) { + if (*val == '#') { + val++; + } + unsigned int r = ValueOfHex(val[0]) * 16 + ValueOfHex(val[1]); + unsigned int g = ValueOfHex(val[2]) * 16 + ValueOfHex(val[3]); + unsigned int b = ValueOfHex(val[4]) * 16 + ValueOfHex(val[5]); + Set(r, g, b); + } + + long AsLong() const { + return co; + } + + unsigned int GetRed() const { + return co & 0xff; + } + + unsigned int GetGreen() const { + return (co >> 8) & 0xff; + } + + unsigned int GetBlue() const { + return (co >> 16) & 0xff; + } +}; + +/** + * Font management. + */ + +struct FontParameters { + const char *faceName; + float size; + int weight; + bool italic; + int extraFontFlag; + int technology; + int characterSet; + + FontParameters( + const char *faceName_, + float size_=10, + int weight_=400, + bool italic_=false, + int extraFontFlag_=0, + int technology_=0, + int characterSet_=0) : + + faceName(faceName_), + size(size_), + weight(weight_), + italic(italic_), + extraFontFlag(extraFontFlag_), + technology(technology_), + characterSet(characterSet_) + { + } + +}; + +class Font { +protected: + FontID fid; +#if PLAT_WX + int ascent; +#endif + // Private so Font objects can not be copied + Font(const Font &); + Font &operator=(const Font &); +public: + Font(); + virtual ~Font(); + + virtual void Create(const FontParameters &fp); + virtual void Release(); + + FontID GetID() { return fid; } + // Alias another font - caller guarantees not to Release + void SetID(FontID fid_) { fid = fid_; } +#if PLAT_WX + void SetAscent(int ascent_) { ascent = ascent_; } +#endif + friend class Surface; + friend class SurfaceImpl; +}; + +/** + * A surface abstracts a place to draw. + */ +#if defined(PLAT_QT) +class XPM; +#endif +class Surface { +private: + // Private so Surface objects can not be copied + Surface(const Surface &) {} + Surface &operator=(const Surface &) { return *this; } +public: + Surface() {} + virtual ~Surface() {} + static Surface *Allocate(int technology); + + virtual void Init(WindowID wid)=0; + virtual void Init(SurfaceID sid, WindowID wid)=0; + virtual void InitPixMap(int width, int height, Surface *surface_, WindowID wid)=0; + + virtual void Release()=0; + virtual bool Initialised()=0; + virtual void PenColour(ColourDesired fore)=0; + virtual int LogPixelsY()=0; + virtual int DeviceHeightFont(int points)=0; + virtual void MoveTo(int x_, int y_)=0; + virtual void LineTo(int x_, int y_)=0; + virtual void Polygon(Point *pts, int npts, ColourDesired fore, ColourDesired back)=0; + virtual void RectangleDraw(PRectangle rc, ColourDesired fore, ColourDesired back)=0; + virtual void FillRectangle(PRectangle rc, ColourDesired back)=0; + virtual void FillRectangle(PRectangle rc, Surface &surfacePattern)=0; + virtual void RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesired back)=0; + virtual void AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill, int alphaFill, + ColourDesired outline, int alphaOutline, int flags)=0; + virtual void DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) = 0; + virtual void Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back)=0; + virtual void Copy(PRectangle rc, Point from, Surface &surfaceSource)=0; + + virtual void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back)=0; + virtual void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back)=0; + virtual void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore)=0; + virtual void MeasureWidths(Font &font_, const char *s, int len, XYPOSITION *positions)=0; + virtual XYPOSITION WidthText(Font &font_, const char *s, int len)=0; + virtual XYPOSITION WidthChar(Font &font_, char ch)=0; + virtual XYPOSITION Ascent(Font &font_)=0; + virtual XYPOSITION Descent(Font &font_)=0; + virtual XYPOSITION InternalLeading(Font &font_)=0; + virtual XYPOSITION ExternalLeading(Font &font_)=0; + virtual XYPOSITION Height(Font &font_)=0; + virtual XYPOSITION AverageCharWidth(Font &font_)=0; + + virtual void SetClip(PRectangle rc)=0; + virtual void FlushCachedState()=0; + + virtual void SetUnicodeMode(bool unicodeMode_)=0; + virtual void SetDBCSMode(int codePage)=0; + +#if defined(PLAT_QT) + virtual void Init(QPainter *p)=0; + virtual void DrawXPM(PRectangle rc, const XPM *xpm)=0; +#endif +}; + +/** + * A simple callback action passing one piece of untyped user data. + */ +typedef void (*CallBackAction)(void*); + +/** + * Class to hide the details of window manipulation. + * Does not own the window which will normally have a longer life than this object. + */ +class Window { +protected: + WindowID wid; +public: + Window() : wid(0), cursorLast(cursorInvalid) { + } + Window(const Window &source) : wid(source.wid), cursorLast(cursorInvalid) { + } + virtual ~Window(); + Window &operator=(WindowID wid_) { + wid = wid_; + return *this; + } + WindowID GetID() const { return wid; } + bool Created() const { return wid != 0; } + void Destroy(); + bool HasFocus(); + PRectangle GetPosition(); + void SetPosition(PRectangle rc); + void SetPositionRelative(PRectangle rc, Window relativeTo); + PRectangle GetClientPosition(); + void Show(bool show=true); + void InvalidateAll(); + void InvalidateRectangle(PRectangle rc); + virtual void SetFont(Font &font); + enum Cursor { cursorInvalid, cursorText, cursorArrow, cursorUp, cursorWait, cursorHoriz, cursorVert, cursorReverseArrow, cursorHand }; + void SetCursor(Cursor curs); + void SetTitle(const char *s); + PRectangle GetMonitorRect(Point pt); +private: + Cursor cursorLast; +}; + +/** + * Listbox management. + */ + +class ListBox : public Window { +public: + ListBox(); + virtual ~ListBox(); + static ListBox *Allocate(); + + virtual void SetFont(Font &font)=0; + virtual void Create(Window &parent, int ctrlID, Point location, int lineHeight_, bool unicodeMode_, int technology_)=0; + virtual void SetAverageCharWidth(int width)=0; + virtual void SetVisibleRows(int rows)=0; + virtual int GetVisibleRows() const=0; + virtual PRectangle GetDesiredRect()=0; + virtual int CaretFromEdge()=0; + virtual void Clear()=0; + virtual void Append(char *s, int type = -1)=0; + virtual int Length()=0; + virtual void Select(int n)=0; + virtual int GetSelection()=0; + virtual int Find(const char *prefix)=0; + virtual void GetValue(int n, char *value, int len)=0; + virtual void RegisterImage(int type, const char *xpm_data)=0; + virtual void RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage) = 0; + virtual void ClearRegisteredImages()=0; + virtual void SetDoubleClickAction(CallBackAction, void *)=0; + virtual void SetList(const char* list, char separator, char typesep)=0; +}; + +/** + * Menu management. + */ +class Menu { + MenuID mid; +public: + Menu(); + MenuID GetID() { return mid; } + void CreatePopUp(); + void Destroy(); + void Show(Point pt, Window &w); +}; + +class ElapsedTime { + long bigBit; + long littleBit; +public: + ElapsedTime(); + double Duration(bool reset=false); +}; + +/** + * Dynamic Library (DLL/SO/...) loading + */ +class DynamicLibrary { +public: + virtual ~DynamicLibrary() {} + + /// @return Pointer to function "name", or NULL on failure. + virtual Function FindFunction(const char *name) = 0; + + /// @return true if the library was loaded successfully. + virtual bool IsValid() = 0; + + /// @return An instance of a DynamicLibrary subclass with "modulePath" loaded. + static DynamicLibrary *Load(const char *modulePath); +}; + +/** + * Platform class used to retrieve system wide parameters such as double click speed + * and chrome colour. Not a creatable object, more of a module with several functions. + */ +class Platform { + // Private so Platform objects can not be copied + Platform(const Platform &) {} + Platform &operator=(const Platform &) { return *this; } +public: + // Should be private because no new Platforms are ever created + // but gcc warns about this + Platform() {} + ~Platform() {} + static ColourDesired Chrome(); + static ColourDesired ChromeHighlight(); + static const char *DefaultFont(); + static int DefaultFontSize(); + static unsigned int DoubleClickTime(); + static bool MouseButtonBounce(); + static void DebugDisplay(const char *s); + static bool IsKeyDown(int key); + static long SendScintilla( + WindowID w, unsigned int msg, unsigned long wParam=0, long lParam=0); + static long SendScintillaPointer( + WindowID w, unsigned int msg, unsigned long wParam=0, void *lParam=0); + static bool IsDBCSLeadByte(int codePage, char ch); + static int DBCSCharLength(int codePage, const char *s); + static int DBCSCharMaxLength(); + + // These are utility functions not really tied to a platform + static int Minimum(int a, int b); + static int Maximum(int a, int b); + // Next three assume 16 bit shorts and 32 bit longs + static long LongFromTwoShorts(short a,short b) { + return (a) | ((b) << 16); + } + static short HighShortFromLong(long x) { + return static_cast(x >> 16); + } + static short LowShortFromLong(long x) { + return static_cast(x & 0xffff); + } + static void DebugPrintf(const char *format, ...); + static bool ShowAssertionPopUps(bool assertionPopUps_); + static void Assert(const char *c, const char *file, int line); + static int Clamp(int val, int minVal, int maxVal); +}; + +#ifdef NDEBUG +#define PLATFORM_ASSERT(c) ((void)0) +#else +#ifdef SCI_NAMESPACE +#define PLATFORM_ASSERT(c) ((c) ? (void)(0) : Scintilla::Platform::Assert(#c, __FILE__, __LINE__)) +#else +#define PLATFORM_ASSERT(c) ((c) ? (void)(0) : Platform::Assert(#c, __FILE__, __LINE__)) +#endif +#endif + +#ifdef SCI_NAMESPACE +} +#endif + +// Shut up annoying Visual C++ warnings: +#ifdef _MSC_VER +#pragma warning(disable: 4244 4309 4514 4710) +#endif + +#if defined(__GNUC__) && defined(SCINTILLA_QT) +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif + +#endif diff --git a/include/SciLexer.h b/include/SciLexer.h new file mode 100644 index 0000000..1378c8e --- /dev/null +++ b/include/SciLexer.h @@ -0,0 +1,1688 @@ +/* Scintilla source code edit control */ +/** @file SciLexer.h + ** Interface to the added lexer functions in the SciLexer version of the edit control. + **/ +/* Copyright 1998-2002 by Neil Hodgson + * The License.txt file describes the conditions under which this software may be distributed. */ + +/* Most of this file is automatically generated from the Scintilla.iface interface definition + * file which contains any comments about the definitions. HFacer.py does the generation. */ + +#ifndef SCILEXER_H +#define SCILEXER_H + +/* SciLexer features - not in standard Scintilla */ + +/* ++Autogenerated -- start of section automatically generated from Scintilla.iface */ +#define SCLEX_CONTAINER 0 +#define SCLEX_NULL 1 +#define SCLEX_PYTHON 2 +#define SCLEX_CPP 3 +#define SCLEX_HTML 4 +#define SCLEX_XML 5 +#define SCLEX_PERL 6 +#define SCLEX_SQL 7 +#define SCLEX_VB 8 +#define SCLEX_PROPERTIES 9 +#define SCLEX_ERRORLIST 10 +#define SCLEX_MAKEFILE 11 +#define SCLEX_BATCH 12 +#define SCLEX_XCODE 13 +#define SCLEX_LATEX 14 +#define SCLEX_LUA 15 +#define SCLEX_DIFF 16 +#define SCLEX_CONF 17 +#define SCLEX_PASCAL 18 +#define SCLEX_AVE 19 +#define SCLEX_ADA 20 +#define SCLEX_LISP 21 +#define SCLEX_RUBY 22 +#define SCLEX_EIFFEL 23 +#define SCLEX_EIFFELKW 24 +#define SCLEX_TCL 25 +#define SCLEX_NNCRONTAB 26 +#define SCLEX_BULLANT 27 +#define SCLEX_VBSCRIPT 28 +#define SCLEX_BAAN 31 +#define SCLEX_MATLAB 32 +#define SCLEX_SCRIPTOL 33 +#define SCLEX_ASM 34 +#define SCLEX_CPPNOCASE 35 +#define SCLEX_FORTRAN 36 +#define SCLEX_F77 37 +#define SCLEX_CSS 38 +#define SCLEX_POV 39 +#define SCLEX_LOUT 40 +#define SCLEX_ESCRIPT 41 +#define SCLEX_PS 42 +#define SCLEX_NSIS 43 +#define SCLEX_MMIXAL 44 +#define SCLEX_CLW 45 +#define SCLEX_CLWNOCASE 46 +#define SCLEX_LOT 47 +#define SCLEX_YAML 48 +#define SCLEX_TEX 49 +#define SCLEX_METAPOST 50 +#define SCLEX_POWERBASIC 51 +#define SCLEX_FORTH 52 +#define SCLEX_ERLANG 53 +#define SCLEX_OCTAVE 54 +#define SCLEX_MSSQL 55 +#define SCLEX_VERILOG 56 +#define SCLEX_KIX 57 +#define SCLEX_GUI4CLI 58 +#define SCLEX_SPECMAN 59 +#define SCLEX_AU3 60 +#define SCLEX_APDL 61 +#define SCLEX_BASH 62 +#define SCLEX_ASN1 63 +#define SCLEX_VHDL 64 +#define SCLEX_CAML 65 +#define SCLEX_BLITZBASIC 66 +#define SCLEX_PUREBASIC 67 +#define SCLEX_HASKELL 68 +#define SCLEX_PHPSCRIPT 69 +#define SCLEX_TADS3 70 +#define SCLEX_REBOL 71 +#define SCLEX_SMALLTALK 72 +#define SCLEX_FLAGSHIP 73 +#define SCLEX_CSOUND 74 +#define SCLEX_FREEBASIC 75 +#define SCLEX_INNOSETUP 76 +#define SCLEX_OPAL 77 +#define SCLEX_SPICE 78 +#define SCLEX_D 79 +#define SCLEX_CMAKE 80 +#define SCLEX_GAP 81 +#define SCLEX_PLM 82 +#define SCLEX_PROGRESS 83 +#define SCLEX_ABAQUS 84 +#define SCLEX_ASYMPTOTE 85 +#define SCLEX_R 86 +#define SCLEX_MAGIK 87 +#define SCLEX_POWERSHELL 88 +#define SCLEX_MYSQL 89 +#define SCLEX_PO 90 +#define SCLEX_TAL 91 +#define SCLEX_COBOL 92 +#define SCLEX_TACL 93 +#define SCLEX_SORCUS 94 +#define SCLEX_POWERPRO 95 +#define SCLEX_NIMROD 96 +#define SCLEX_SML 97 +#define SCLEX_MARKDOWN 98 +#define SCLEX_TXT2TAGS 99 +#define SCLEX_A68K 100 +#define SCLEX_MODULA 101 +#define SCLEX_COFFEESCRIPT 102 +#define SCLEX_TCMD 103 +#define SCLEX_AVS 104 +#define SCLEX_ECL 105 +#define SCLEX_OSCRIPT 106 +#define SCLEX_VISUALPROLOG 107 +#define SCLEX_LITERATEHASKELL 108 +#define SCLEX_STTXT 109 +#define SCLEX_KVIRC 110 +#define SCLEX_RUST 111 +#define SCLEX_AUTOMATIC 1000 +#define SCE_P_DEFAULT 0 +#define SCE_P_COMMENTLINE 1 +#define SCE_P_NUMBER 2 +#define SCE_P_STRING 3 +#define SCE_P_CHARACTER 4 +#define SCE_P_WORD 5 +#define SCE_P_TRIPLE 6 +#define SCE_P_TRIPLEDOUBLE 7 +#define SCE_P_CLASSNAME 8 +#define SCE_P_DEFNAME 9 +#define SCE_P_OPERATOR 10 +#define SCE_P_IDENTIFIER 11 +#define SCE_P_COMMENTBLOCK 12 +#define SCE_P_STRINGEOL 13 +#define SCE_P_WORD2 14 +#define SCE_P_DECORATOR 15 +#define SCE_C_DEFAULT 0 +#define SCE_C_COMMENT 1 +#define SCE_C_COMMENTLINE 2 +#define SCE_C_COMMENTDOC 3 +#define SCE_C_NUMBER 4 +#define SCE_C_WORD 5 +#define SCE_C_STRING 6 +#define SCE_C_CHARACTER 7 +#define SCE_C_UUID 8 +#define SCE_C_PREPROCESSOR 9 +#define SCE_C_OPERATOR 10 +#define SCE_C_IDENTIFIER 11 +#define SCE_C_STRINGEOL 12 +#define SCE_C_VERBATIM 13 +#define SCE_C_REGEX 14 +#define SCE_C_COMMENTLINEDOC 15 +#define SCE_C_WORD2 16 +#define SCE_C_COMMENTDOCKEYWORD 17 +#define SCE_C_COMMENTDOCKEYWORDERROR 18 +#define SCE_C_GLOBALCLASS 19 +#define SCE_C_STRINGRAW 20 +#define SCE_C_TRIPLEVERBATIM 21 +#define SCE_C_HASHQUOTEDSTRING 22 +#define SCE_C_PREPROCESSORCOMMENT 23 +#define SCE_C_PREPROCESSORCOMMENTDOC 24 +#define SCE_D_DEFAULT 0 +#define SCE_D_COMMENT 1 +#define SCE_D_COMMENTLINE 2 +#define SCE_D_COMMENTDOC 3 +#define SCE_D_COMMENTNESTED 4 +#define SCE_D_NUMBER 5 +#define SCE_D_WORD 6 +#define SCE_D_WORD2 7 +#define SCE_D_WORD3 8 +#define SCE_D_TYPEDEF 9 +#define SCE_D_STRING 10 +#define SCE_D_STRINGEOL 11 +#define SCE_D_CHARACTER 12 +#define SCE_D_OPERATOR 13 +#define SCE_D_IDENTIFIER 14 +#define SCE_D_COMMENTLINEDOC 15 +#define SCE_D_COMMENTDOCKEYWORD 16 +#define SCE_D_COMMENTDOCKEYWORDERROR 17 +#define SCE_D_STRINGB 18 +#define SCE_D_STRINGR 19 +#define SCE_D_WORD5 20 +#define SCE_D_WORD6 21 +#define SCE_D_WORD7 22 +#define SCE_TCL_DEFAULT 0 +#define SCE_TCL_COMMENT 1 +#define SCE_TCL_COMMENTLINE 2 +#define SCE_TCL_NUMBER 3 +#define SCE_TCL_WORD_IN_QUOTE 4 +#define SCE_TCL_IN_QUOTE 5 +#define SCE_TCL_OPERATOR 6 +#define SCE_TCL_IDENTIFIER 7 +#define SCE_TCL_SUBSTITUTION 8 +#define SCE_TCL_SUB_BRACE 9 +#define SCE_TCL_MODIFIER 10 +#define SCE_TCL_EXPAND 11 +#define SCE_TCL_WORD 12 +#define SCE_TCL_WORD2 13 +#define SCE_TCL_WORD3 14 +#define SCE_TCL_WORD4 15 +#define SCE_TCL_WORD5 16 +#define SCE_TCL_WORD6 17 +#define SCE_TCL_WORD7 18 +#define SCE_TCL_WORD8 19 +#define SCE_TCL_COMMENT_BOX 20 +#define SCE_TCL_BLOCK_COMMENT 21 +#define SCE_H_DEFAULT 0 +#define SCE_H_TAG 1 +#define SCE_H_TAGUNKNOWN 2 +#define SCE_H_ATTRIBUTE 3 +#define SCE_H_ATTRIBUTEUNKNOWN 4 +#define SCE_H_NUMBER 5 +#define SCE_H_DOUBLESTRING 6 +#define SCE_H_SINGLESTRING 7 +#define SCE_H_OTHER 8 +#define SCE_H_COMMENT 9 +#define SCE_H_ENTITY 10 +#define SCE_H_TAGEND 11 +#define SCE_H_XMLSTART 12 +#define SCE_H_XMLEND 13 +#define SCE_H_SCRIPT 14 +#define SCE_H_ASP 15 +#define SCE_H_ASPAT 16 +#define SCE_H_CDATA 17 +#define SCE_H_QUESTION 18 +#define SCE_H_VALUE 19 +#define SCE_H_XCCOMMENT 20 +#define SCE_H_SGML_DEFAULT 21 +#define SCE_H_SGML_COMMAND 22 +#define SCE_H_SGML_1ST_PARAM 23 +#define SCE_H_SGML_DOUBLESTRING 24 +#define SCE_H_SGML_SIMPLESTRING 25 +#define SCE_H_SGML_ERROR 26 +#define SCE_H_SGML_SPECIAL 27 +#define SCE_H_SGML_ENTITY 28 +#define SCE_H_SGML_COMMENT 29 +#define SCE_H_SGML_1ST_PARAM_COMMENT 30 +#define SCE_H_SGML_BLOCK_DEFAULT 31 +#define SCE_HJ_START 40 +#define SCE_HJ_DEFAULT 41 +#define SCE_HJ_COMMENT 42 +#define SCE_HJ_COMMENTLINE 43 +#define SCE_HJ_COMMENTDOC 44 +#define SCE_HJ_NUMBER 45 +#define SCE_HJ_WORD 46 +#define SCE_HJ_KEYWORD 47 +#define SCE_HJ_DOUBLESTRING 48 +#define SCE_HJ_SINGLESTRING 49 +#define SCE_HJ_SYMBOLS 50 +#define SCE_HJ_STRINGEOL 51 +#define SCE_HJ_REGEX 52 +#define SCE_HJA_START 55 +#define SCE_HJA_DEFAULT 56 +#define SCE_HJA_COMMENT 57 +#define SCE_HJA_COMMENTLINE 58 +#define SCE_HJA_COMMENTDOC 59 +#define SCE_HJA_NUMBER 60 +#define SCE_HJA_WORD 61 +#define SCE_HJA_KEYWORD 62 +#define SCE_HJA_DOUBLESTRING 63 +#define SCE_HJA_SINGLESTRING 64 +#define SCE_HJA_SYMBOLS 65 +#define SCE_HJA_STRINGEOL 66 +#define SCE_HJA_REGEX 67 +#define SCE_HB_START 70 +#define SCE_HB_DEFAULT 71 +#define SCE_HB_COMMENTLINE 72 +#define SCE_HB_NUMBER 73 +#define SCE_HB_WORD 74 +#define SCE_HB_STRING 75 +#define SCE_HB_IDENTIFIER 76 +#define SCE_HB_STRINGEOL 77 +#define SCE_HBA_START 80 +#define SCE_HBA_DEFAULT 81 +#define SCE_HBA_COMMENTLINE 82 +#define SCE_HBA_NUMBER 83 +#define SCE_HBA_WORD 84 +#define SCE_HBA_STRING 85 +#define SCE_HBA_IDENTIFIER 86 +#define SCE_HBA_STRINGEOL 87 +#define SCE_HP_START 90 +#define SCE_HP_DEFAULT 91 +#define SCE_HP_COMMENTLINE 92 +#define SCE_HP_NUMBER 93 +#define SCE_HP_STRING 94 +#define SCE_HP_CHARACTER 95 +#define SCE_HP_WORD 96 +#define SCE_HP_TRIPLE 97 +#define SCE_HP_TRIPLEDOUBLE 98 +#define SCE_HP_CLASSNAME 99 +#define SCE_HP_DEFNAME 100 +#define SCE_HP_OPERATOR 101 +#define SCE_HP_IDENTIFIER 102 +#define SCE_HPHP_COMPLEX_VARIABLE 104 +#define SCE_HPA_START 105 +#define SCE_HPA_DEFAULT 106 +#define SCE_HPA_COMMENTLINE 107 +#define SCE_HPA_NUMBER 108 +#define SCE_HPA_STRING 109 +#define SCE_HPA_CHARACTER 110 +#define SCE_HPA_WORD 111 +#define SCE_HPA_TRIPLE 112 +#define SCE_HPA_TRIPLEDOUBLE 113 +#define SCE_HPA_CLASSNAME 114 +#define SCE_HPA_DEFNAME 115 +#define SCE_HPA_OPERATOR 116 +#define SCE_HPA_IDENTIFIER 117 +#define SCE_HPHP_DEFAULT 118 +#define SCE_HPHP_HSTRING 119 +#define SCE_HPHP_SIMPLESTRING 120 +#define SCE_HPHP_WORD 121 +#define SCE_HPHP_NUMBER 122 +#define SCE_HPHP_VARIABLE 123 +#define SCE_HPHP_COMMENT 124 +#define SCE_HPHP_COMMENTLINE 125 +#define SCE_HPHP_HSTRING_VARIABLE 126 +#define SCE_HPHP_OPERATOR 127 +#define SCE_PL_DEFAULT 0 +#define SCE_PL_ERROR 1 +#define SCE_PL_COMMENTLINE 2 +#define SCE_PL_POD 3 +#define SCE_PL_NUMBER 4 +#define SCE_PL_WORD 5 +#define SCE_PL_STRING 6 +#define SCE_PL_CHARACTER 7 +#define SCE_PL_PUNCTUATION 8 +#define SCE_PL_PREPROCESSOR 9 +#define SCE_PL_OPERATOR 10 +#define SCE_PL_IDENTIFIER 11 +#define SCE_PL_SCALAR 12 +#define SCE_PL_ARRAY 13 +#define SCE_PL_HASH 14 +#define SCE_PL_SYMBOLTABLE 15 +#define SCE_PL_VARIABLE_INDEXER 16 +#define SCE_PL_REGEX 17 +#define SCE_PL_REGSUBST 18 +#define SCE_PL_LONGQUOTE 19 +#define SCE_PL_BACKTICKS 20 +#define SCE_PL_DATASECTION 21 +#define SCE_PL_HERE_DELIM 22 +#define SCE_PL_HERE_Q 23 +#define SCE_PL_HERE_QQ 24 +#define SCE_PL_HERE_QX 25 +#define SCE_PL_STRING_Q 26 +#define SCE_PL_STRING_QQ 27 +#define SCE_PL_STRING_QX 28 +#define SCE_PL_STRING_QR 29 +#define SCE_PL_STRING_QW 30 +#define SCE_PL_POD_VERB 31 +#define SCE_PL_SUB_PROTOTYPE 40 +#define SCE_PL_FORMAT_IDENT 41 +#define SCE_PL_FORMAT 42 +#define SCE_PL_STRING_VAR 43 +#define SCE_PL_XLAT 44 +#define SCE_PL_REGEX_VAR 54 +#define SCE_PL_REGSUBST_VAR 55 +#define SCE_PL_BACKTICKS_VAR 57 +#define SCE_PL_HERE_QQ_VAR 61 +#define SCE_PL_HERE_QX_VAR 62 +#define SCE_PL_STRING_QQ_VAR 64 +#define SCE_PL_STRING_QX_VAR 65 +#define SCE_PL_STRING_QR_VAR 66 +#define SCE_RB_DEFAULT 0 +#define SCE_RB_ERROR 1 +#define SCE_RB_COMMENTLINE 2 +#define SCE_RB_POD 3 +#define SCE_RB_NUMBER 4 +#define SCE_RB_WORD 5 +#define SCE_RB_STRING 6 +#define SCE_RB_CHARACTER 7 +#define SCE_RB_CLASSNAME 8 +#define SCE_RB_DEFNAME 9 +#define SCE_RB_OPERATOR 10 +#define SCE_RB_IDENTIFIER 11 +#define SCE_RB_REGEX 12 +#define SCE_RB_GLOBAL 13 +#define SCE_RB_SYMBOL 14 +#define SCE_RB_MODULE_NAME 15 +#define SCE_RB_INSTANCE_VAR 16 +#define SCE_RB_CLASS_VAR 17 +#define SCE_RB_BACKTICKS 18 +#define SCE_RB_DATASECTION 19 +#define SCE_RB_HERE_DELIM 20 +#define SCE_RB_HERE_Q 21 +#define SCE_RB_HERE_QQ 22 +#define SCE_RB_HERE_QX 23 +#define SCE_RB_STRING_Q 24 +#define SCE_RB_STRING_QQ 25 +#define SCE_RB_STRING_QX 26 +#define SCE_RB_STRING_QR 27 +#define SCE_RB_STRING_QW 28 +#define SCE_RB_WORD_DEMOTED 29 +#define SCE_RB_STDIN 30 +#define SCE_RB_STDOUT 31 +#define SCE_RB_STDERR 40 +#define SCE_RB_UPPER_BOUND 41 +#define SCE_B_DEFAULT 0 +#define SCE_B_COMMENT 1 +#define SCE_B_NUMBER 2 +#define SCE_B_KEYWORD 3 +#define SCE_B_STRING 4 +#define SCE_B_PREPROCESSOR 5 +#define SCE_B_OPERATOR 6 +#define SCE_B_IDENTIFIER 7 +#define SCE_B_DATE 8 +#define SCE_B_STRINGEOL 9 +#define SCE_B_KEYWORD2 10 +#define SCE_B_KEYWORD3 11 +#define SCE_B_KEYWORD4 12 +#define SCE_B_CONSTANT 13 +#define SCE_B_ASM 14 +#define SCE_B_LABEL 15 +#define SCE_B_ERROR 16 +#define SCE_B_HEXNUMBER 17 +#define SCE_B_BINNUMBER 18 +#define SCE_PROPS_DEFAULT 0 +#define SCE_PROPS_COMMENT 1 +#define SCE_PROPS_SECTION 2 +#define SCE_PROPS_ASSIGNMENT 3 +#define SCE_PROPS_DEFVAL 4 +#define SCE_PROPS_KEY 5 +#define SCE_L_DEFAULT 0 +#define SCE_L_COMMAND 1 +#define SCE_L_TAG 2 +#define SCE_L_MATH 3 +#define SCE_L_COMMENT 4 +#define SCE_L_TAG2 5 +#define SCE_L_MATH2 6 +#define SCE_L_COMMENT2 7 +#define SCE_L_VERBATIM 8 +#define SCE_L_SHORTCMD 9 +#define SCE_L_SPECIAL 10 +#define SCE_L_CMDOPT 11 +#define SCE_L_ERROR 12 +#define SCE_LUA_DEFAULT 0 +#define SCE_LUA_COMMENT 1 +#define SCE_LUA_COMMENTLINE 2 +#define SCE_LUA_COMMENTDOC 3 +#define SCE_LUA_NUMBER 4 +#define SCE_LUA_WORD 5 +#define SCE_LUA_STRING 6 +#define SCE_LUA_CHARACTER 7 +#define SCE_LUA_LITERALSTRING 8 +#define SCE_LUA_PREPROCESSOR 9 +#define SCE_LUA_OPERATOR 10 +#define SCE_LUA_IDENTIFIER 11 +#define SCE_LUA_STRINGEOL 12 +#define SCE_LUA_WORD2 13 +#define SCE_LUA_WORD3 14 +#define SCE_LUA_WORD4 15 +#define SCE_LUA_WORD5 16 +#define SCE_LUA_WORD6 17 +#define SCE_LUA_WORD7 18 +#define SCE_LUA_WORD8 19 +#define SCE_LUA_LABEL 20 +#define SCE_ERR_DEFAULT 0 +#define SCE_ERR_PYTHON 1 +#define SCE_ERR_GCC 2 +#define SCE_ERR_MS 3 +#define SCE_ERR_CMD 4 +#define SCE_ERR_BORLAND 5 +#define SCE_ERR_PERL 6 +#define SCE_ERR_NET 7 +#define SCE_ERR_LUA 8 +#define SCE_ERR_CTAG 9 +#define SCE_ERR_DIFF_CHANGED 10 +#define SCE_ERR_DIFF_ADDITION 11 +#define SCE_ERR_DIFF_DELETION 12 +#define SCE_ERR_DIFF_MESSAGE 13 +#define SCE_ERR_PHP 14 +#define SCE_ERR_ELF 15 +#define SCE_ERR_IFC 16 +#define SCE_ERR_IFORT 17 +#define SCE_ERR_ABSF 18 +#define SCE_ERR_TIDY 19 +#define SCE_ERR_JAVA_STACK 20 +#define SCE_ERR_VALUE 21 +#define SCE_ERR_GCC_INCLUDED_FROM 22 +#define SCE_BAT_DEFAULT 0 +#define SCE_BAT_COMMENT 1 +#define SCE_BAT_WORD 2 +#define SCE_BAT_LABEL 3 +#define SCE_BAT_HIDE 4 +#define SCE_BAT_COMMAND 5 +#define SCE_BAT_IDENTIFIER 6 +#define SCE_BAT_OPERATOR 7 +#define SCE_TCMD_DEFAULT 0 +#define SCE_TCMD_COMMENT 1 +#define SCE_TCMD_WORD 2 +#define SCE_TCMD_LABEL 3 +#define SCE_TCMD_HIDE 4 +#define SCE_TCMD_COMMAND 5 +#define SCE_TCMD_IDENTIFIER 6 +#define SCE_TCMD_OPERATOR 7 +#define SCE_TCMD_ENVIRONMENT 8 +#define SCE_TCMD_EXPANSION 9 +#define SCE_TCMD_CLABEL 10 +#define SCE_MAKE_DEFAULT 0 +#define SCE_MAKE_COMMENT 1 +#define SCE_MAKE_PREPROCESSOR 2 +#define SCE_MAKE_IDENTIFIER 3 +#define SCE_MAKE_OPERATOR 4 +#define SCE_MAKE_TARGET 5 +#define SCE_MAKE_IDEOL 9 +#define SCE_DIFF_DEFAULT 0 +#define SCE_DIFF_COMMENT 1 +#define SCE_DIFF_COMMAND 2 +#define SCE_DIFF_HEADER 3 +#define SCE_DIFF_POSITION 4 +#define SCE_DIFF_DELETED 5 +#define SCE_DIFF_ADDED 6 +#define SCE_DIFF_CHANGED 7 +#define SCE_CONF_DEFAULT 0 +#define SCE_CONF_COMMENT 1 +#define SCE_CONF_NUMBER 2 +#define SCE_CONF_IDENTIFIER 3 +#define SCE_CONF_EXTENSION 4 +#define SCE_CONF_PARAMETER 5 +#define SCE_CONF_STRING 6 +#define SCE_CONF_OPERATOR 7 +#define SCE_CONF_IP 8 +#define SCE_CONF_DIRECTIVE 9 +#define SCE_AVE_DEFAULT 0 +#define SCE_AVE_COMMENT 1 +#define SCE_AVE_NUMBER 2 +#define SCE_AVE_WORD 3 +#define SCE_AVE_STRING 6 +#define SCE_AVE_ENUM 7 +#define SCE_AVE_STRINGEOL 8 +#define SCE_AVE_IDENTIFIER 9 +#define SCE_AVE_OPERATOR 10 +#define SCE_AVE_WORD1 11 +#define SCE_AVE_WORD2 12 +#define SCE_AVE_WORD3 13 +#define SCE_AVE_WORD4 14 +#define SCE_AVE_WORD5 15 +#define SCE_AVE_WORD6 16 +#define SCE_ADA_DEFAULT 0 +#define SCE_ADA_WORD 1 +#define SCE_ADA_IDENTIFIER 2 +#define SCE_ADA_NUMBER 3 +#define SCE_ADA_DELIMITER 4 +#define SCE_ADA_CHARACTER 5 +#define SCE_ADA_CHARACTEREOL 6 +#define SCE_ADA_STRING 7 +#define SCE_ADA_STRINGEOL 8 +#define SCE_ADA_LABEL 9 +#define SCE_ADA_COMMENTLINE 10 +#define SCE_ADA_ILLEGAL 11 +#define SCE_BAAN_DEFAULT 0 +#define SCE_BAAN_COMMENT 1 +#define SCE_BAAN_COMMENTDOC 2 +#define SCE_BAAN_NUMBER 3 +#define SCE_BAAN_WORD 4 +#define SCE_BAAN_STRING 5 +#define SCE_BAAN_PREPROCESSOR 6 +#define SCE_BAAN_OPERATOR 7 +#define SCE_BAAN_IDENTIFIER 8 +#define SCE_BAAN_STRINGEOL 9 +#define SCE_BAAN_WORD2 10 +#define SCE_LISP_DEFAULT 0 +#define SCE_LISP_COMMENT 1 +#define SCE_LISP_NUMBER 2 +#define SCE_LISP_KEYWORD 3 +#define SCE_LISP_KEYWORD_KW 4 +#define SCE_LISP_SYMBOL 5 +#define SCE_LISP_STRING 6 +#define SCE_LISP_STRINGEOL 8 +#define SCE_LISP_IDENTIFIER 9 +#define SCE_LISP_OPERATOR 10 +#define SCE_LISP_SPECIAL 11 +#define SCE_LISP_MULTI_COMMENT 12 +#define SCE_EIFFEL_DEFAULT 0 +#define SCE_EIFFEL_COMMENTLINE 1 +#define SCE_EIFFEL_NUMBER 2 +#define SCE_EIFFEL_WORD 3 +#define SCE_EIFFEL_STRING 4 +#define SCE_EIFFEL_CHARACTER 5 +#define SCE_EIFFEL_OPERATOR 6 +#define SCE_EIFFEL_IDENTIFIER 7 +#define SCE_EIFFEL_STRINGEOL 8 +#define SCE_NNCRONTAB_DEFAULT 0 +#define SCE_NNCRONTAB_COMMENT 1 +#define SCE_NNCRONTAB_TASK 2 +#define SCE_NNCRONTAB_SECTION 3 +#define SCE_NNCRONTAB_KEYWORD 4 +#define SCE_NNCRONTAB_MODIFIER 5 +#define SCE_NNCRONTAB_ASTERISK 6 +#define SCE_NNCRONTAB_NUMBER 7 +#define SCE_NNCRONTAB_STRING 8 +#define SCE_NNCRONTAB_ENVIRONMENT 9 +#define SCE_NNCRONTAB_IDENTIFIER 10 +#define SCE_FORTH_DEFAULT 0 +#define SCE_FORTH_COMMENT 1 +#define SCE_FORTH_COMMENT_ML 2 +#define SCE_FORTH_IDENTIFIER 3 +#define SCE_FORTH_CONTROL 4 +#define SCE_FORTH_KEYWORD 5 +#define SCE_FORTH_DEFWORD 6 +#define SCE_FORTH_PREWORD1 7 +#define SCE_FORTH_PREWORD2 8 +#define SCE_FORTH_NUMBER 9 +#define SCE_FORTH_STRING 10 +#define SCE_FORTH_LOCALE 11 +#define SCE_MATLAB_DEFAULT 0 +#define SCE_MATLAB_COMMENT 1 +#define SCE_MATLAB_COMMAND 2 +#define SCE_MATLAB_NUMBER 3 +#define SCE_MATLAB_KEYWORD 4 +#define SCE_MATLAB_STRING 5 +#define SCE_MATLAB_OPERATOR 6 +#define SCE_MATLAB_IDENTIFIER 7 +#define SCE_MATLAB_DOUBLEQUOTESTRING 8 +#define SCE_SCRIPTOL_DEFAULT 0 +#define SCE_SCRIPTOL_WHITE 1 +#define SCE_SCRIPTOL_COMMENTLINE 2 +#define SCE_SCRIPTOL_PERSISTENT 3 +#define SCE_SCRIPTOL_CSTYLE 4 +#define SCE_SCRIPTOL_COMMENTBLOCK 5 +#define SCE_SCRIPTOL_NUMBER 6 +#define SCE_SCRIPTOL_STRING 7 +#define SCE_SCRIPTOL_CHARACTER 8 +#define SCE_SCRIPTOL_STRINGEOL 9 +#define SCE_SCRIPTOL_KEYWORD 10 +#define SCE_SCRIPTOL_OPERATOR 11 +#define SCE_SCRIPTOL_IDENTIFIER 12 +#define SCE_SCRIPTOL_TRIPLE 13 +#define SCE_SCRIPTOL_CLASSNAME 14 +#define SCE_SCRIPTOL_PREPROCESSOR 15 +#define SCE_ASM_DEFAULT 0 +#define SCE_ASM_COMMENT 1 +#define SCE_ASM_NUMBER 2 +#define SCE_ASM_STRING 3 +#define SCE_ASM_OPERATOR 4 +#define SCE_ASM_IDENTIFIER 5 +#define SCE_ASM_CPUINSTRUCTION 6 +#define SCE_ASM_MATHINSTRUCTION 7 +#define SCE_ASM_REGISTER 8 +#define SCE_ASM_DIRECTIVE 9 +#define SCE_ASM_DIRECTIVEOPERAND 10 +#define SCE_ASM_COMMENTBLOCK 11 +#define SCE_ASM_CHARACTER 12 +#define SCE_ASM_STRINGEOL 13 +#define SCE_ASM_EXTINSTRUCTION 14 +#define SCE_ASM_COMMENTDIRECTIVE 15 +#define SCE_F_DEFAULT 0 +#define SCE_F_COMMENT 1 +#define SCE_F_NUMBER 2 +#define SCE_F_STRING1 3 +#define SCE_F_STRING2 4 +#define SCE_F_STRINGEOL 5 +#define SCE_F_OPERATOR 6 +#define SCE_F_IDENTIFIER 7 +#define SCE_F_WORD 8 +#define SCE_F_WORD2 9 +#define SCE_F_WORD3 10 +#define SCE_F_PREPROCESSOR 11 +#define SCE_F_OPERATOR2 12 +#define SCE_F_LABEL 13 +#define SCE_F_CONTINUATION 14 +#define SCE_CSS_DEFAULT 0 +#define SCE_CSS_TAG 1 +#define SCE_CSS_CLASS 2 +#define SCE_CSS_PSEUDOCLASS 3 +#define SCE_CSS_UNKNOWN_PSEUDOCLASS 4 +#define SCE_CSS_OPERATOR 5 +#define SCE_CSS_IDENTIFIER 6 +#define SCE_CSS_UNKNOWN_IDENTIFIER 7 +#define SCE_CSS_VALUE 8 +#define SCE_CSS_COMMENT 9 +#define SCE_CSS_ID 10 +#define SCE_CSS_IMPORTANT 11 +#define SCE_CSS_DIRECTIVE 12 +#define SCE_CSS_DOUBLESTRING 13 +#define SCE_CSS_SINGLESTRING 14 +#define SCE_CSS_IDENTIFIER2 15 +#define SCE_CSS_ATTRIBUTE 16 +#define SCE_CSS_IDENTIFIER3 17 +#define SCE_CSS_PSEUDOELEMENT 18 +#define SCE_CSS_EXTENDED_IDENTIFIER 19 +#define SCE_CSS_EXTENDED_PSEUDOCLASS 20 +#define SCE_CSS_EXTENDED_PSEUDOELEMENT 21 +#define SCE_CSS_MEDIA 22 +#define SCE_CSS_VARIABLE 23 +#define SCE_POV_DEFAULT 0 +#define SCE_POV_COMMENT 1 +#define SCE_POV_COMMENTLINE 2 +#define SCE_POV_NUMBER 3 +#define SCE_POV_OPERATOR 4 +#define SCE_POV_IDENTIFIER 5 +#define SCE_POV_STRING 6 +#define SCE_POV_STRINGEOL 7 +#define SCE_POV_DIRECTIVE 8 +#define SCE_POV_BADDIRECTIVE 9 +#define SCE_POV_WORD2 10 +#define SCE_POV_WORD3 11 +#define SCE_POV_WORD4 12 +#define SCE_POV_WORD5 13 +#define SCE_POV_WORD6 14 +#define SCE_POV_WORD7 15 +#define SCE_POV_WORD8 16 +#define SCE_LOUT_DEFAULT 0 +#define SCE_LOUT_COMMENT 1 +#define SCE_LOUT_NUMBER 2 +#define SCE_LOUT_WORD 3 +#define SCE_LOUT_WORD2 4 +#define SCE_LOUT_WORD3 5 +#define SCE_LOUT_WORD4 6 +#define SCE_LOUT_STRING 7 +#define SCE_LOUT_OPERATOR 8 +#define SCE_LOUT_IDENTIFIER 9 +#define SCE_LOUT_STRINGEOL 10 +#define SCE_ESCRIPT_DEFAULT 0 +#define SCE_ESCRIPT_COMMENT 1 +#define SCE_ESCRIPT_COMMENTLINE 2 +#define SCE_ESCRIPT_COMMENTDOC 3 +#define SCE_ESCRIPT_NUMBER 4 +#define SCE_ESCRIPT_WORD 5 +#define SCE_ESCRIPT_STRING 6 +#define SCE_ESCRIPT_OPERATOR 7 +#define SCE_ESCRIPT_IDENTIFIER 8 +#define SCE_ESCRIPT_BRACE 9 +#define SCE_ESCRIPT_WORD2 10 +#define SCE_ESCRIPT_WORD3 11 +#define SCE_PS_DEFAULT 0 +#define SCE_PS_COMMENT 1 +#define SCE_PS_DSC_COMMENT 2 +#define SCE_PS_DSC_VALUE 3 +#define SCE_PS_NUMBER 4 +#define SCE_PS_NAME 5 +#define SCE_PS_KEYWORD 6 +#define SCE_PS_LITERAL 7 +#define SCE_PS_IMMEVAL 8 +#define SCE_PS_PAREN_ARRAY 9 +#define SCE_PS_PAREN_DICT 10 +#define SCE_PS_PAREN_PROC 11 +#define SCE_PS_TEXT 12 +#define SCE_PS_HEXSTRING 13 +#define SCE_PS_BASE85STRING 14 +#define SCE_PS_BADSTRINGCHAR 15 +#define SCE_NSIS_DEFAULT 0 +#define SCE_NSIS_COMMENT 1 +#define SCE_NSIS_STRINGDQ 2 +#define SCE_NSIS_STRINGLQ 3 +#define SCE_NSIS_STRINGRQ 4 +#define SCE_NSIS_FUNCTION 5 +#define SCE_NSIS_VARIABLE 6 +#define SCE_NSIS_LABEL 7 +#define SCE_NSIS_USERDEFINED 8 +#define SCE_NSIS_SECTIONDEF 9 +#define SCE_NSIS_SUBSECTIONDEF 10 +#define SCE_NSIS_IFDEFINEDEF 11 +#define SCE_NSIS_MACRODEF 12 +#define SCE_NSIS_STRINGVAR 13 +#define SCE_NSIS_NUMBER 14 +#define SCE_NSIS_SECTIONGROUP 15 +#define SCE_NSIS_PAGEEX 16 +#define SCE_NSIS_FUNCTIONDEF 17 +#define SCE_NSIS_COMMENTBOX 18 +#define SCE_MMIXAL_LEADWS 0 +#define SCE_MMIXAL_COMMENT 1 +#define SCE_MMIXAL_LABEL 2 +#define SCE_MMIXAL_OPCODE 3 +#define SCE_MMIXAL_OPCODE_PRE 4 +#define SCE_MMIXAL_OPCODE_VALID 5 +#define SCE_MMIXAL_OPCODE_UNKNOWN 6 +#define SCE_MMIXAL_OPCODE_POST 7 +#define SCE_MMIXAL_OPERANDS 8 +#define SCE_MMIXAL_NUMBER 9 +#define SCE_MMIXAL_REF 10 +#define SCE_MMIXAL_CHAR 11 +#define SCE_MMIXAL_STRING 12 +#define SCE_MMIXAL_REGISTER 13 +#define SCE_MMIXAL_HEX 14 +#define SCE_MMIXAL_OPERATOR 15 +#define SCE_MMIXAL_SYMBOL 16 +#define SCE_MMIXAL_INCLUDE 17 +#define SCE_CLW_DEFAULT 0 +#define SCE_CLW_LABEL 1 +#define SCE_CLW_COMMENT 2 +#define SCE_CLW_STRING 3 +#define SCE_CLW_USER_IDENTIFIER 4 +#define SCE_CLW_INTEGER_CONSTANT 5 +#define SCE_CLW_REAL_CONSTANT 6 +#define SCE_CLW_PICTURE_STRING 7 +#define SCE_CLW_KEYWORD 8 +#define SCE_CLW_COMPILER_DIRECTIVE 9 +#define SCE_CLW_RUNTIME_EXPRESSIONS 10 +#define SCE_CLW_BUILTIN_PROCEDURES_FUNCTION 11 +#define SCE_CLW_STRUCTURE_DATA_TYPE 12 +#define SCE_CLW_ATTRIBUTE 13 +#define SCE_CLW_STANDARD_EQUATE 14 +#define SCE_CLW_ERROR 15 +#define SCE_CLW_DEPRECATED 16 +#define SCE_LOT_DEFAULT 0 +#define SCE_LOT_HEADER 1 +#define SCE_LOT_BREAK 2 +#define SCE_LOT_SET 3 +#define SCE_LOT_PASS 4 +#define SCE_LOT_FAIL 5 +#define SCE_LOT_ABORT 6 +#define SCE_YAML_DEFAULT 0 +#define SCE_YAML_COMMENT 1 +#define SCE_YAML_IDENTIFIER 2 +#define SCE_YAML_KEYWORD 3 +#define SCE_YAML_NUMBER 4 +#define SCE_YAML_REFERENCE 5 +#define SCE_YAML_DOCUMENT 6 +#define SCE_YAML_TEXT 7 +#define SCE_YAML_ERROR 8 +#define SCE_YAML_OPERATOR 9 +#define SCE_TEX_DEFAULT 0 +#define SCE_TEX_SPECIAL 1 +#define SCE_TEX_GROUP 2 +#define SCE_TEX_SYMBOL 3 +#define SCE_TEX_COMMAND 4 +#define SCE_TEX_TEXT 5 +#define SCE_METAPOST_DEFAULT 0 +#define SCE_METAPOST_SPECIAL 1 +#define SCE_METAPOST_GROUP 2 +#define SCE_METAPOST_SYMBOL 3 +#define SCE_METAPOST_COMMAND 4 +#define SCE_METAPOST_TEXT 5 +#define SCE_METAPOST_EXTRA 6 +#define SCE_ERLANG_DEFAULT 0 +#define SCE_ERLANG_COMMENT 1 +#define SCE_ERLANG_VARIABLE 2 +#define SCE_ERLANG_NUMBER 3 +#define SCE_ERLANG_KEYWORD 4 +#define SCE_ERLANG_STRING 5 +#define SCE_ERLANG_OPERATOR 6 +#define SCE_ERLANG_ATOM 7 +#define SCE_ERLANG_FUNCTION_NAME 8 +#define SCE_ERLANG_CHARACTER 9 +#define SCE_ERLANG_MACRO 10 +#define SCE_ERLANG_RECORD 11 +#define SCE_ERLANG_PREPROC 12 +#define SCE_ERLANG_NODE_NAME 13 +#define SCE_ERLANG_COMMENT_FUNCTION 14 +#define SCE_ERLANG_COMMENT_MODULE 15 +#define SCE_ERLANG_COMMENT_DOC 16 +#define SCE_ERLANG_COMMENT_DOC_MACRO 17 +#define SCE_ERLANG_ATOM_QUOTED 18 +#define SCE_ERLANG_MACRO_QUOTED 19 +#define SCE_ERLANG_RECORD_QUOTED 20 +#define SCE_ERLANG_NODE_NAME_QUOTED 21 +#define SCE_ERLANG_BIFS 22 +#define SCE_ERLANG_MODULES 23 +#define SCE_ERLANG_MODULES_ATT 24 +#define SCE_ERLANG_UNKNOWN 31 +#define SCE_MSSQL_DEFAULT 0 +#define SCE_MSSQL_COMMENT 1 +#define SCE_MSSQL_LINE_COMMENT 2 +#define SCE_MSSQL_NUMBER 3 +#define SCE_MSSQL_STRING 4 +#define SCE_MSSQL_OPERATOR 5 +#define SCE_MSSQL_IDENTIFIER 6 +#define SCE_MSSQL_VARIABLE 7 +#define SCE_MSSQL_COLUMN_NAME 8 +#define SCE_MSSQL_STATEMENT 9 +#define SCE_MSSQL_DATATYPE 10 +#define SCE_MSSQL_SYSTABLE 11 +#define SCE_MSSQL_GLOBAL_VARIABLE 12 +#define SCE_MSSQL_FUNCTION 13 +#define SCE_MSSQL_STORED_PROCEDURE 14 +#define SCE_MSSQL_DEFAULT_PREF_DATATYPE 15 +#define SCE_MSSQL_COLUMN_NAME_2 16 +#define SCE_V_DEFAULT 0 +#define SCE_V_COMMENT 1 +#define SCE_V_COMMENTLINE 2 +#define SCE_V_COMMENTLINEBANG 3 +#define SCE_V_NUMBER 4 +#define SCE_V_WORD 5 +#define SCE_V_STRING 6 +#define SCE_V_WORD2 7 +#define SCE_V_WORD3 8 +#define SCE_V_PREPROCESSOR 9 +#define SCE_V_OPERATOR 10 +#define SCE_V_IDENTIFIER 11 +#define SCE_V_STRINGEOL 12 +#define SCE_V_USER 19 +#define SCE_KIX_DEFAULT 0 +#define SCE_KIX_COMMENT 1 +#define SCE_KIX_STRING1 2 +#define SCE_KIX_STRING2 3 +#define SCE_KIX_NUMBER 4 +#define SCE_KIX_VAR 5 +#define SCE_KIX_MACRO 6 +#define SCE_KIX_KEYWORD 7 +#define SCE_KIX_FUNCTIONS 8 +#define SCE_KIX_OPERATOR 9 +#define SCE_KIX_IDENTIFIER 31 +#define SCE_GC_DEFAULT 0 +#define SCE_GC_COMMENTLINE 1 +#define SCE_GC_COMMENTBLOCK 2 +#define SCE_GC_GLOBAL 3 +#define SCE_GC_EVENT 4 +#define SCE_GC_ATTRIBUTE 5 +#define SCE_GC_CONTROL 6 +#define SCE_GC_COMMAND 7 +#define SCE_GC_STRING 8 +#define SCE_GC_OPERATOR 9 +#define SCE_SN_DEFAULT 0 +#define SCE_SN_CODE 1 +#define SCE_SN_COMMENTLINE 2 +#define SCE_SN_COMMENTLINEBANG 3 +#define SCE_SN_NUMBER 4 +#define SCE_SN_WORD 5 +#define SCE_SN_STRING 6 +#define SCE_SN_WORD2 7 +#define SCE_SN_WORD3 8 +#define SCE_SN_PREPROCESSOR 9 +#define SCE_SN_OPERATOR 10 +#define SCE_SN_IDENTIFIER 11 +#define SCE_SN_STRINGEOL 12 +#define SCE_SN_REGEXTAG 13 +#define SCE_SN_SIGNAL 14 +#define SCE_SN_USER 19 +#define SCE_AU3_DEFAULT 0 +#define SCE_AU3_COMMENT 1 +#define SCE_AU3_COMMENTBLOCK 2 +#define SCE_AU3_NUMBER 3 +#define SCE_AU3_FUNCTION 4 +#define SCE_AU3_KEYWORD 5 +#define SCE_AU3_MACRO 6 +#define SCE_AU3_STRING 7 +#define SCE_AU3_OPERATOR 8 +#define SCE_AU3_VARIABLE 9 +#define SCE_AU3_SENT 10 +#define SCE_AU3_PREPROCESSOR 11 +#define SCE_AU3_SPECIAL 12 +#define SCE_AU3_EXPAND 13 +#define SCE_AU3_COMOBJ 14 +#define SCE_AU3_UDF 15 +#define SCE_APDL_DEFAULT 0 +#define SCE_APDL_COMMENT 1 +#define SCE_APDL_COMMENTBLOCK 2 +#define SCE_APDL_NUMBER 3 +#define SCE_APDL_STRING 4 +#define SCE_APDL_OPERATOR 5 +#define SCE_APDL_WORD 6 +#define SCE_APDL_PROCESSOR 7 +#define SCE_APDL_COMMAND 8 +#define SCE_APDL_SLASHCOMMAND 9 +#define SCE_APDL_STARCOMMAND 10 +#define SCE_APDL_ARGUMENT 11 +#define SCE_APDL_FUNCTION 12 +#define SCE_SH_DEFAULT 0 +#define SCE_SH_ERROR 1 +#define SCE_SH_COMMENTLINE 2 +#define SCE_SH_NUMBER 3 +#define SCE_SH_WORD 4 +#define SCE_SH_STRING 5 +#define SCE_SH_CHARACTER 6 +#define SCE_SH_OPERATOR 7 +#define SCE_SH_IDENTIFIER 8 +#define SCE_SH_SCALAR 9 +#define SCE_SH_PARAM 10 +#define SCE_SH_BACKTICKS 11 +#define SCE_SH_HERE_DELIM 12 +#define SCE_SH_HERE_Q 13 +#define SCE_ASN1_DEFAULT 0 +#define SCE_ASN1_COMMENT 1 +#define SCE_ASN1_IDENTIFIER 2 +#define SCE_ASN1_STRING 3 +#define SCE_ASN1_OID 4 +#define SCE_ASN1_SCALAR 5 +#define SCE_ASN1_KEYWORD 6 +#define SCE_ASN1_ATTRIBUTE 7 +#define SCE_ASN1_DESCRIPTOR 8 +#define SCE_ASN1_TYPE 9 +#define SCE_ASN1_OPERATOR 10 +#define SCE_VHDL_DEFAULT 0 +#define SCE_VHDL_COMMENT 1 +#define SCE_VHDL_COMMENTLINEBANG 2 +#define SCE_VHDL_NUMBER 3 +#define SCE_VHDL_STRING 4 +#define SCE_VHDL_OPERATOR 5 +#define SCE_VHDL_IDENTIFIER 6 +#define SCE_VHDL_STRINGEOL 7 +#define SCE_VHDL_KEYWORD 8 +#define SCE_VHDL_STDOPERATOR 9 +#define SCE_VHDL_ATTRIBUTE 10 +#define SCE_VHDL_STDFUNCTION 11 +#define SCE_VHDL_STDPACKAGE 12 +#define SCE_VHDL_STDTYPE 13 +#define SCE_VHDL_USERWORD 14 +#define SCE_CAML_DEFAULT 0 +#define SCE_CAML_IDENTIFIER 1 +#define SCE_CAML_TAGNAME 2 +#define SCE_CAML_KEYWORD 3 +#define SCE_CAML_KEYWORD2 4 +#define SCE_CAML_KEYWORD3 5 +#define SCE_CAML_LINENUM 6 +#define SCE_CAML_OPERATOR 7 +#define SCE_CAML_NUMBER 8 +#define SCE_CAML_CHAR 9 +#define SCE_CAML_WHITE 10 +#define SCE_CAML_STRING 11 +#define SCE_CAML_COMMENT 12 +#define SCE_CAML_COMMENT1 13 +#define SCE_CAML_COMMENT2 14 +#define SCE_CAML_COMMENT3 15 +#define SCE_HA_DEFAULT 0 +#define SCE_HA_IDENTIFIER 1 +#define SCE_HA_KEYWORD 2 +#define SCE_HA_NUMBER 3 +#define SCE_HA_STRING 4 +#define SCE_HA_CHARACTER 5 +#define SCE_HA_CLASS 6 +#define SCE_HA_MODULE 7 +#define SCE_HA_CAPITAL 8 +#define SCE_HA_DATA 9 +#define SCE_HA_IMPORT 10 +#define SCE_HA_OPERATOR 11 +#define SCE_HA_INSTANCE 12 +#define SCE_HA_COMMENTLINE 13 +#define SCE_HA_COMMENTBLOCK 14 +#define SCE_HA_COMMENTBLOCK2 15 +#define SCE_HA_COMMENTBLOCK3 16 +#define SCE_HA_PRAGMA 17 +#define SCE_HA_PREPROCESSOR 18 +#define SCE_HA_STRINGEOL 19 +#define SCE_HA_RESERVED_OPERATOR 20 +#define SCE_HA_LITERATE_COMMENT 21 +#define SCE_HA_LITERATE_CODEDELIM 22 +#define SCE_T3_DEFAULT 0 +#define SCE_T3_X_DEFAULT 1 +#define SCE_T3_PREPROCESSOR 2 +#define SCE_T3_BLOCK_COMMENT 3 +#define SCE_T3_LINE_COMMENT 4 +#define SCE_T3_OPERATOR 5 +#define SCE_T3_KEYWORD 6 +#define SCE_T3_NUMBER 7 +#define SCE_T3_IDENTIFIER 8 +#define SCE_T3_S_STRING 9 +#define SCE_T3_D_STRING 10 +#define SCE_T3_X_STRING 11 +#define SCE_T3_LIB_DIRECTIVE 12 +#define SCE_T3_MSG_PARAM 13 +#define SCE_T3_HTML_TAG 14 +#define SCE_T3_HTML_DEFAULT 15 +#define SCE_T3_HTML_STRING 16 +#define SCE_T3_USER1 17 +#define SCE_T3_USER2 18 +#define SCE_T3_USER3 19 +#define SCE_T3_BRACE 20 +#define SCE_REBOL_DEFAULT 0 +#define SCE_REBOL_COMMENTLINE 1 +#define SCE_REBOL_COMMENTBLOCK 2 +#define SCE_REBOL_PREFACE 3 +#define SCE_REBOL_OPERATOR 4 +#define SCE_REBOL_CHARACTER 5 +#define SCE_REBOL_QUOTEDSTRING 6 +#define SCE_REBOL_BRACEDSTRING 7 +#define SCE_REBOL_NUMBER 8 +#define SCE_REBOL_PAIR 9 +#define SCE_REBOL_TUPLE 10 +#define SCE_REBOL_BINARY 11 +#define SCE_REBOL_MONEY 12 +#define SCE_REBOL_ISSUE 13 +#define SCE_REBOL_TAG 14 +#define SCE_REBOL_FILE 15 +#define SCE_REBOL_EMAIL 16 +#define SCE_REBOL_URL 17 +#define SCE_REBOL_DATE 18 +#define SCE_REBOL_TIME 19 +#define SCE_REBOL_IDENTIFIER 20 +#define SCE_REBOL_WORD 21 +#define SCE_REBOL_WORD2 22 +#define SCE_REBOL_WORD3 23 +#define SCE_REBOL_WORD4 24 +#define SCE_REBOL_WORD5 25 +#define SCE_REBOL_WORD6 26 +#define SCE_REBOL_WORD7 27 +#define SCE_REBOL_WORD8 28 +#define SCE_SQL_DEFAULT 0 +#define SCE_SQL_COMMENT 1 +#define SCE_SQL_COMMENTLINE 2 +#define SCE_SQL_COMMENTDOC 3 +#define SCE_SQL_NUMBER 4 +#define SCE_SQL_WORD 5 +#define SCE_SQL_STRING 6 +#define SCE_SQL_CHARACTER 7 +#define SCE_SQL_SQLPLUS 8 +#define SCE_SQL_SQLPLUS_PROMPT 9 +#define SCE_SQL_OPERATOR 10 +#define SCE_SQL_IDENTIFIER 11 +#define SCE_SQL_SQLPLUS_COMMENT 13 +#define SCE_SQL_COMMENTLINEDOC 15 +#define SCE_SQL_WORD2 16 +#define SCE_SQL_COMMENTDOCKEYWORD 17 +#define SCE_SQL_COMMENTDOCKEYWORDERROR 18 +#define SCE_SQL_USER1 19 +#define SCE_SQL_USER2 20 +#define SCE_SQL_USER3 21 +#define SCE_SQL_USER4 22 +#define SCE_SQL_QUOTEDIDENTIFIER 23 +#define SCE_ST_DEFAULT 0 +#define SCE_ST_STRING 1 +#define SCE_ST_NUMBER 2 +#define SCE_ST_COMMENT 3 +#define SCE_ST_SYMBOL 4 +#define SCE_ST_BINARY 5 +#define SCE_ST_BOOL 6 +#define SCE_ST_SELF 7 +#define SCE_ST_SUPER 8 +#define SCE_ST_NIL 9 +#define SCE_ST_GLOBAL 10 +#define SCE_ST_RETURN 11 +#define SCE_ST_SPECIAL 12 +#define SCE_ST_KWSEND 13 +#define SCE_ST_ASSIGN 14 +#define SCE_ST_CHARACTER 15 +#define SCE_ST_SPEC_SEL 16 +#define SCE_FS_DEFAULT 0 +#define SCE_FS_COMMENT 1 +#define SCE_FS_COMMENTLINE 2 +#define SCE_FS_COMMENTDOC 3 +#define SCE_FS_COMMENTLINEDOC 4 +#define SCE_FS_COMMENTDOCKEYWORD 5 +#define SCE_FS_COMMENTDOCKEYWORDERROR 6 +#define SCE_FS_KEYWORD 7 +#define SCE_FS_KEYWORD2 8 +#define SCE_FS_KEYWORD3 9 +#define SCE_FS_KEYWORD4 10 +#define SCE_FS_NUMBER 11 +#define SCE_FS_STRING 12 +#define SCE_FS_PREPROCESSOR 13 +#define SCE_FS_OPERATOR 14 +#define SCE_FS_IDENTIFIER 15 +#define SCE_FS_DATE 16 +#define SCE_FS_STRINGEOL 17 +#define SCE_FS_CONSTANT 18 +#define SCE_FS_WORDOPERATOR 19 +#define SCE_FS_DISABLEDCODE 20 +#define SCE_FS_DEFAULT_C 21 +#define SCE_FS_COMMENTDOC_C 22 +#define SCE_FS_COMMENTLINEDOC_C 23 +#define SCE_FS_KEYWORD_C 24 +#define SCE_FS_KEYWORD2_C 25 +#define SCE_FS_NUMBER_C 26 +#define SCE_FS_STRING_C 27 +#define SCE_FS_PREPROCESSOR_C 28 +#define SCE_FS_OPERATOR_C 29 +#define SCE_FS_IDENTIFIER_C 30 +#define SCE_FS_STRINGEOL_C 31 +#define SCE_CSOUND_DEFAULT 0 +#define SCE_CSOUND_COMMENT 1 +#define SCE_CSOUND_NUMBER 2 +#define SCE_CSOUND_OPERATOR 3 +#define SCE_CSOUND_INSTR 4 +#define SCE_CSOUND_IDENTIFIER 5 +#define SCE_CSOUND_OPCODE 6 +#define SCE_CSOUND_HEADERSTMT 7 +#define SCE_CSOUND_USERKEYWORD 8 +#define SCE_CSOUND_COMMENTBLOCK 9 +#define SCE_CSOUND_PARAM 10 +#define SCE_CSOUND_ARATE_VAR 11 +#define SCE_CSOUND_KRATE_VAR 12 +#define SCE_CSOUND_IRATE_VAR 13 +#define SCE_CSOUND_GLOBAL_VAR 14 +#define SCE_CSOUND_STRINGEOL 15 +#define SCE_INNO_DEFAULT 0 +#define SCE_INNO_COMMENT 1 +#define SCE_INNO_KEYWORD 2 +#define SCE_INNO_PARAMETER 3 +#define SCE_INNO_SECTION 4 +#define SCE_INNO_PREPROC 5 +#define SCE_INNO_INLINE_EXPANSION 6 +#define SCE_INNO_COMMENT_PASCAL 7 +#define SCE_INNO_KEYWORD_PASCAL 8 +#define SCE_INNO_KEYWORD_USER 9 +#define SCE_INNO_STRING_DOUBLE 10 +#define SCE_INNO_STRING_SINGLE 11 +#define SCE_INNO_IDENTIFIER 12 +#define SCE_OPAL_SPACE 0 +#define SCE_OPAL_COMMENT_BLOCK 1 +#define SCE_OPAL_COMMENT_LINE 2 +#define SCE_OPAL_INTEGER 3 +#define SCE_OPAL_KEYWORD 4 +#define SCE_OPAL_SORT 5 +#define SCE_OPAL_STRING 6 +#define SCE_OPAL_PAR 7 +#define SCE_OPAL_BOOL_CONST 8 +#define SCE_OPAL_DEFAULT 32 +#define SCE_SPICE_DEFAULT 0 +#define SCE_SPICE_IDENTIFIER 1 +#define SCE_SPICE_KEYWORD 2 +#define SCE_SPICE_KEYWORD2 3 +#define SCE_SPICE_KEYWORD3 4 +#define SCE_SPICE_NUMBER 5 +#define SCE_SPICE_DELIMITER 6 +#define SCE_SPICE_VALUE 7 +#define SCE_SPICE_COMMENTLINE 8 +#define SCE_CMAKE_DEFAULT 0 +#define SCE_CMAKE_COMMENT 1 +#define SCE_CMAKE_STRINGDQ 2 +#define SCE_CMAKE_STRINGLQ 3 +#define SCE_CMAKE_STRINGRQ 4 +#define SCE_CMAKE_COMMANDS 5 +#define SCE_CMAKE_PARAMETERS 6 +#define SCE_CMAKE_VARIABLE 7 +#define SCE_CMAKE_USERDEFINED 8 +#define SCE_CMAKE_WHILEDEF 9 +#define SCE_CMAKE_FOREACHDEF 10 +#define SCE_CMAKE_IFDEFINEDEF 11 +#define SCE_CMAKE_MACRODEF 12 +#define SCE_CMAKE_STRINGVAR 13 +#define SCE_CMAKE_NUMBER 14 +#define SCE_GAP_DEFAULT 0 +#define SCE_GAP_IDENTIFIER 1 +#define SCE_GAP_KEYWORD 2 +#define SCE_GAP_KEYWORD2 3 +#define SCE_GAP_KEYWORD3 4 +#define SCE_GAP_KEYWORD4 5 +#define SCE_GAP_STRING 6 +#define SCE_GAP_CHAR 7 +#define SCE_GAP_OPERATOR 8 +#define SCE_GAP_COMMENT 9 +#define SCE_GAP_NUMBER 10 +#define SCE_GAP_STRINGEOL 11 +#define SCE_PLM_DEFAULT 0 +#define SCE_PLM_COMMENT 1 +#define SCE_PLM_STRING 2 +#define SCE_PLM_NUMBER 3 +#define SCE_PLM_IDENTIFIER 4 +#define SCE_PLM_OPERATOR 5 +#define SCE_PLM_CONTROL 6 +#define SCE_PLM_KEYWORD 7 +#define SCE_4GL_DEFAULT 0 +#define SCE_4GL_NUMBER 1 +#define SCE_4GL_WORD 2 +#define SCE_4GL_STRING 3 +#define SCE_4GL_CHARACTER 4 +#define SCE_4GL_PREPROCESSOR 5 +#define SCE_4GL_OPERATOR 6 +#define SCE_4GL_IDENTIFIER 7 +#define SCE_4GL_BLOCK 8 +#define SCE_4GL_END 9 +#define SCE_4GL_COMMENT1 10 +#define SCE_4GL_COMMENT2 11 +#define SCE_4GL_COMMENT3 12 +#define SCE_4GL_COMMENT4 13 +#define SCE_4GL_COMMENT5 14 +#define SCE_4GL_COMMENT6 15 +#define SCE_4GL_DEFAULT_ 16 +#define SCE_4GL_NUMBER_ 17 +#define SCE_4GL_WORD_ 18 +#define SCE_4GL_STRING_ 19 +#define SCE_4GL_CHARACTER_ 20 +#define SCE_4GL_PREPROCESSOR_ 21 +#define SCE_4GL_OPERATOR_ 22 +#define SCE_4GL_IDENTIFIER_ 23 +#define SCE_4GL_BLOCK_ 24 +#define SCE_4GL_END_ 25 +#define SCE_4GL_COMMENT1_ 26 +#define SCE_4GL_COMMENT2_ 27 +#define SCE_4GL_COMMENT3_ 28 +#define SCE_4GL_COMMENT4_ 29 +#define SCE_4GL_COMMENT5_ 30 +#define SCE_4GL_COMMENT6_ 31 +#define SCE_ABAQUS_DEFAULT 0 +#define SCE_ABAQUS_COMMENT 1 +#define SCE_ABAQUS_COMMENTBLOCK 2 +#define SCE_ABAQUS_NUMBER 3 +#define SCE_ABAQUS_STRING 4 +#define SCE_ABAQUS_OPERATOR 5 +#define SCE_ABAQUS_WORD 6 +#define SCE_ABAQUS_PROCESSOR 7 +#define SCE_ABAQUS_COMMAND 8 +#define SCE_ABAQUS_SLASHCOMMAND 9 +#define SCE_ABAQUS_STARCOMMAND 10 +#define SCE_ABAQUS_ARGUMENT 11 +#define SCE_ABAQUS_FUNCTION 12 +#define SCE_ASY_DEFAULT 0 +#define SCE_ASY_COMMENT 1 +#define SCE_ASY_COMMENTLINE 2 +#define SCE_ASY_NUMBER 3 +#define SCE_ASY_WORD 4 +#define SCE_ASY_STRING 5 +#define SCE_ASY_CHARACTER 6 +#define SCE_ASY_OPERATOR 7 +#define SCE_ASY_IDENTIFIER 8 +#define SCE_ASY_STRINGEOL 9 +#define SCE_ASY_COMMENTLINEDOC 10 +#define SCE_ASY_WORD2 11 +#define SCE_R_DEFAULT 0 +#define SCE_R_COMMENT 1 +#define SCE_R_KWORD 2 +#define SCE_R_BASEKWORD 3 +#define SCE_R_OTHERKWORD 4 +#define SCE_R_NUMBER 5 +#define SCE_R_STRING 6 +#define SCE_R_STRING2 7 +#define SCE_R_OPERATOR 8 +#define SCE_R_IDENTIFIER 9 +#define SCE_R_INFIX 10 +#define SCE_R_INFIXEOL 11 +#define SCE_MAGIK_DEFAULT 0 +#define SCE_MAGIK_COMMENT 1 +#define SCE_MAGIK_HYPER_COMMENT 16 +#define SCE_MAGIK_STRING 2 +#define SCE_MAGIK_CHARACTER 3 +#define SCE_MAGIK_NUMBER 4 +#define SCE_MAGIK_IDENTIFIER 5 +#define SCE_MAGIK_OPERATOR 6 +#define SCE_MAGIK_FLOW 7 +#define SCE_MAGIK_CONTAINER 8 +#define SCE_MAGIK_BRACKET_BLOCK 9 +#define SCE_MAGIK_BRACE_BLOCK 10 +#define SCE_MAGIK_SQBRACKET_BLOCK 11 +#define SCE_MAGIK_UNKNOWN_KEYWORD 12 +#define SCE_MAGIK_KEYWORD 13 +#define SCE_MAGIK_PRAGMA 14 +#define SCE_MAGIK_SYMBOL 15 +#define SCE_POWERSHELL_DEFAULT 0 +#define SCE_POWERSHELL_COMMENT 1 +#define SCE_POWERSHELL_STRING 2 +#define SCE_POWERSHELL_CHARACTER 3 +#define SCE_POWERSHELL_NUMBER 4 +#define SCE_POWERSHELL_VARIABLE 5 +#define SCE_POWERSHELL_OPERATOR 6 +#define SCE_POWERSHELL_IDENTIFIER 7 +#define SCE_POWERSHELL_KEYWORD 8 +#define SCE_POWERSHELL_CMDLET 9 +#define SCE_POWERSHELL_ALIAS 10 +#define SCE_POWERSHELL_FUNCTION 11 +#define SCE_POWERSHELL_USER1 12 +#define SCE_POWERSHELL_COMMENTSTREAM 13 +#define SCE_POWERSHELL_HERE_STRING 14 +#define SCE_POWERSHELL_HERE_CHARACTER 15 +#define SCE_POWERSHELL_COMMENTDOCKEYWORD 16 +#define SCE_MYSQL_DEFAULT 0 +#define SCE_MYSQL_COMMENT 1 +#define SCE_MYSQL_COMMENTLINE 2 +#define SCE_MYSQL_VARIABLE 3 +#define SCE_MYSQL_SYSTEMVARIABLE 4 +#define SCE_MYSQL_KNOWNSYSTEMVARIABLE 5 +#define SCE_MYSQL_NUMBER 6 +#define SCE_MYSQL_MAJORKEYWORD 7 +#define SCE_MYSQL_KEYWORD 8 +#define SCE_MYSQL_DATABASEOBJECT 9 +#define SCE_MYSQL_PROCEDUREKEYWORD 10 +#define SCE_MYSQL_STRING 11 +#define SCE_MYSQL_SQSTRING 12 +#define SCE_MYSQL_DQSTRING 13 +#define SCE_MYSQL_OPERATOR 14 +#define SCE_MYSQL_FUNCTION 15 +#define SCE_MYSQL_IDENTIFIER 16 +#define SCE_MYSQL_QUOTEDIDENTIFIER 17 +#define SCE_MYSQL_USER1 18 +#define SCE_MYSQL_USER2 19 +#define SCE_MYSQL_USER3 20 +#define SCE_MYSQL_HIDDENCOMMAND 21 +#define SCE_MYSQL_PLACEHOLDER 22 +#define SCE_PO_DEFAULT 0 +#define SCE_PO_COMMENT 1 +#define SCE_PO_MSGID 2 +#define SCE_PO_MSGID_TEXT 3 +#define SCE_PO_MSGSTR 4 +#define SCE_PO_MSGSTR_TEXT 5 +#define SCE_PO_MSGCTXT 6 +#define SCE_PO_MSGCTXT_TEXT 7 +#define SCE_PO_FUZZY 8 +#define SCE_PO_PROGRAMMER_COMMENT 9 +#define SCE_PO_REFERENCE 10 +#define SCE_PO_FLAGS 11 +#define SCE_PO_MSGID_TEXT_EOL 12 +#define SCE_PO_MSGSTR_TEXT_EOL 13 +#define SCE_PO_MSGCTXT_TEXT_EOL 14 +#define SCE_PO_ERROR 15 +#define SCE_PAS_DEFAULT 0 +#define SCE_PAS_IDENTIFIER 1 +#define SCE_PAS_COMMENT 2 +#define SCE_PAS_COMMENT2 3 +#define SCE_PAS_COMMENTLINE 4 +#define SCE_PAS_PREPROCESSOR 5 +#define SCE_PAS_PREPROCESSOR2 6 +#define SCE_PAS_NUMBER 7 +#define SCE_PAS_HEXNUMBER 8 +#define SCE_PAS_WORD 9 +#define SCE_PAS_STRING 10 +#define SCE_PAS_STRINGEOL 11 +#define SCE_PAS_CHARACTER 12 +#define SCE_PAS_OPERATOR 13 +#define SCE_PAS_ASM 14 +#define SCE_SORCUS_DEFAULT 0 +#define SCE_SORCUS_COMMAND 1 +#define SCE_SORCUS_PARAMETER 2 +#define SCE_SORCUS_COMMENTLINE 3 +#define SCE_SORCUS_STRING 4 +#define SCE_SORCUS_STRINGEOL 5 +#define SCE_SORCUS_IDENTIFIER 6 +#define SCE_SORCUS_OPERATOR 7 +#define SCE_SORCUS_NUMBER 8 +#define SCE_SORCUS_CONSTANT 9 +#define SCE_POWERPRO_DEFAULT 0 +#define SCE_POWERPRO_COMMENTBLOCK 1 +#define SCE_POWERPRO_COMMENTLINE 2 +#define SCE_POWERPRO_NUMBER 3 +#define SCE_POWERPRO_WORD 4 +#define SCE_POWERPRO_WORD2 5 +#define SCE_POWERPRO_WORD3 6 +#define SCE_POWERPRO_WORD4 7 +#define SCE_POWERPRO_DOUBLEQUOTEDSTRING 8 +#define SCE_POWERPRO_SINGLEQUOTEDSTRING 9 +#define SCE_POWERPRO_LINECONTINUE 10 +#define SCE_POWERPRO_OPERATOR 11 +#define SCE_POWERPRO_IDENTIFIER 12 +#define SCE_POWERPRO_STRINGEOL 13 +#define SCE_POWERPRO_VERBATIM 14 +#define SCE_POWERPRO_ALTQUOTE 15 +#define SCE_POWERPRO_FUNCTION 16 +#define SCE_SML_DEFAULT 0 +#define SCE_SML_IDENTIFIER 1 +#define SCE_SML_TAGNAME 2 +#define SCE_SML_KEYWORD 3 +#define SCE_SML_KEYWORD2 4 +#define SCE_SML_KEYWORD3 5 +#define SCE_SML_LINENUM 6 +#define SCE_SML_OPERATOR 7 +#define SCE_SML_NUMBER 8 +#define SCE_SML_CHAR 9 +#define SCE_SML_STRING 11 +#define SCE_SML_COMMENT 12 +#define SCE_SML_COMMENT1 13 +#define SCE_SML_COMMENT2 14 +#define SCE_SML_COMMENT3 15 +#define SCE_MARKDOWN_DEFAULT 0 +#define SCE_MARKDOWN_LINE_BEGIN 1 +#define SCE_MARKDOWN_STRONG1 2 +#define SCE_MARKDOWN_STRONG2 3 +#define SCE_MARKDOWN_EM1 4 +#define SCE_MARKDOWN_EM2 5 +#define SCE_MARKDOWN_HEADER1 6 +#define SCE_MARKDOWN_HEADER2 7 +#define SCE_MARKDOWN_HEADER3 8 +#define SCE_MARKDOWN_HEADER4 9 +#define SCE_MARKDOWN_HEADER5 10 +#define SCE_MARKDOWN_HEADER6 11 +#define SCE_MARKDOWN_PRECHAR 12 +#define SCE_MARKDOWN_ULIST_ITEM 13 +#define SCE_MARKDOWN_OLIST_ITEM 14 +#define SCE_MARKDOWN_BLOCKQUOTE 15 +#define SCE_MARKDOWN_STRIKEOUT 16 +#define SCE_MARKDOWN_HRULE 17 +#define SCE_MARKDOWN_LINK 18 +#define SCE_MARKDOWN_CODE 19 +#define SCE_MARKDOWN_CODE2 20 +#define SCE_MARKDOWN_CODEBK 21 +#define SCE_TXT2TAGS_DEFAULT 0 +#define SCE_TXT2TAGS_LINE_BEGIN 1 +#define SCE_TXT2TAGS_STRONG1 2 +#define SCE_TXT2TAGS_STRONG2 3 +#define SCE_TXT2TAGS_EM1 4 +#define SCE_TXT2TAGS_EM2 5 +#define SCE_TXT2TAGS_HEADER1 6 +#define SCE_TXT2TAGS_HEADER2 7 +#define SCE_TXT2TAGS_HEADER3 8 +#define SCE_TXT2TAGS_HEADER4 9 +#define SCE_TXT2TAGS_HEADER5 10 +#define SCE_TXT2TAGS_HEADER6 11 +#define SCE_TXT2TAGS_PRECHAR 12 +#define SCE_TXT2TAGS_ULIST_ITEM 13 +#define SCE_TXT2TAGS_OLIST_ITEM 14 +#define SCE_TXT2TAGS_BLOCKQUOTE 15 +#define SCE_TXT2TAGS_STRIKEOUT 16 +#define SCE_TXT2TAGS_HRULE 17 +#define SCE_TXT2TAGS_LINK 18 +#define SCE_TXT2TAGS_CODE 19 +#define SCE_TXT2TAGS_CODE2 20 +#define SCE_TXT2TAGS_CODEBK 21 +#define SCE_TXT2TAGS_COMMENT 22 +#define SCE_TXT2TAGS_OPTION 23 +#define SCE_TXT2TAGS_PREPROC 24 +#define SCE_TXT2TAGS_POSTPROC 25 +#define SCE_A68K_DEFAULT 0 +#define SCE_A68K_COMMENT 1 +#define SCE_A68K_NUMBER_DEC 2 +#define SCE_A68K_NUMBER_BIN 3 +#define SCE_A68K_NUMBER_HEX 4 +#define SCE_A68K_STRING1 5 +#define SCE_A68K_OPERATOR 6 +#define SCE_A68K_CPUINSTRUCTION 7 +#define SCE_A68K_EXTINSTRUCTION 8 +#define SCE_A68K_REGISTER 9 +#define SCE_A68K_DIRECTIVE 10 +#define SCE_A68K_MACRO_ARG 11 +#define SCE_A68K_LABEL 12 +#define SCE_A68K_STRING2 13 +#define SCE_A68K_IDENTIFIER 14 +#define SCE_A68K_MACRO_DECLARATION 15 +#define SCE_A68K_COMMENT_WORD 16 +#define SCE_A68K_COMMENT_SPECIAL 17 +#define SCE_A68K_COMMENT_DOXYGEN 18 +#define SCE_MODULA_DEFAULT 0 +#define SCE_MODULA_COMMENT 1 +#define SCE_MODULA_DOXYCOMM 2 +#define SCE_MODULA_DOXYKEY 3 +#define SCE_MODULA_KEYWORD 4 +#define SCE_MODULA_RESERVED 5 +#define SCE_MODULA_NUMBER 6 +#define SCE_MODULA_BASENUM 7 +#define SCE_MODULA_FLOAT 8 +#define SCE_MODULA_STRING 9 +#define SCE_MODULA_STRSPEC 10 +#define SCE_MODULA_CHAR 11 +#define SCE_MODULA_CHARSPEC 12 +#define SCE_MODULA_PROC 13 +#define SCE_MODULA_PRAGMA 14 +#define SCE_MODULA_PRGKEY 15 +#define SCE_MODULA_OPERATOR 16 +#define SCE_MODULA_BADSTR 17 +#define SCE_COFFEESCRIPT_DEFAULT 0 +#define SCE_COFFEESCRIPT_COMMENT 1 +#define SCE_COFFEESCRIPT_COMMENTLINE 2 +#define SCE_COFFEESCRIPT_COMMENTDOC 3 +#define SCE_COFFEESCRIPT_NUMBER 4 +#define SCE_COFFEESCRIPT_WORD 5 +#define SCE_COFFEESCRIPT_STRING 6 +#define SCE_COFFEESCRIPT_CHARACTER 7 +#define SCE_COFFEESCRIPT_UUID 8 +#define SCE_COFFEESCRIPT_PREPROCESSOR 9 +#define SCE_COFFEESCRIPT_OPERATOR 10 +#define SCE_COFFEESCRIPT_IDENTIFIER 11 +#define SCE_COFFEESCRIPT_STRINGEOL 12 +#define SCE_COFFEESCRIPT_VERBATIM 13 +#define SCE_COFFEESCRIPT_REGEX 14 +#define SCE_COFFEESCRIPT_COMMENTLINEDOC 15 +#define SCE_COFFEESCRIPT_WORD2 16 +#define SCE_COFFEESCRIPT_COMMENTDOCKEYWORD 17 +#define SCE_COFFEESCRIPT_COMMENTDOCKEYWORDERROR 18 +#define SCE_COFFEESCRIPT_GLOBALCLASS 19 +#define SCE_COFFEESCRIPT_STRINGRAW 20 +#define SCE_COFFEESCRIPT_TRIPLEVERBATIM 21 +#define SCE_COFFEESCRIPT_HASHQUOTEDSTRING 22 +#define SCE_COFFEESCRIPT_COMMENTBLOCK 22 +#define SCE_COFFEESCRIPT_VERBOSE_REGEX 23 +#define SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT 24 +#define SCE_AVS_DEFAULT 0 +#define SCE_AVS_COMMENTBLOCK 1 +#define SCE_AVS_COMMENTBLOCKN 2 +#define SCE_AVS_COMMENTLINE 3 +#define SCE_AVS_NUMBER 4 +#define SCE_AVS_OPERATOR 5 +#define SCE_AVS_IDENTIFIER 6 +#define SCE_AVS_STRING 7 +#define SCE_AVS_TRIPLESTRING 8 +#define SCE_AVS_KEYWORD 9 +#define SCE_AVS_FILTER 10 +#define SCE_AVS_PLUGIN 11 +#define SCE_AVS_FUNCTION 12 +#define SCE_AVS_CLIPPROP 13 +#define SCE_AVS_USERDFN 14 +#define SCE_ECL_DEFAULT 0 +#define SCE_ECL_COMMENT 1 +#define SCE_ECL_COMMENTLINE 2 +#define SCE_ECL_NUMBER 3 +#define SCE_ECL_STRING 4 +#define SCE_ECL_WORD0 5 +#define SCE_ECL_OPERATOR 6 +#define SCE_ECL_CHARACTER 7 +#define SCE_ECL_UUID 8 +#define SCE_ECL_PREPROCESSOR 9 +#define SCE_ECL_UNKNOWN 10 +#define SCE_ECL_IDENTIFIER 11 +#define SCE_ECL_STRINGEOL 12 +#define SCE_ECL_VERBATIM 13 +#define SCE_ECL_REGEX 14 +#define SCE_ECL_COMMENTLINEDOC 15 +#define SCE_ECL_WORD1 16 +#define SCE_ECL_COMMENTDOCKEYWORD 17 +#define SCE_ECL_COMMENTDOCKEYWORDERROR 18 +#define SCE_ECL_WORD2 19 +#define SCE_ECL_WORD3 20 +#define SCE_ECL_WORD4 21 +#define SCE_ECL_WORD5 22 +#define SCE_ECL_COMMENTDOC 23 +#define SCE_ECL_ADDED 24 +#define SCE_ECL_DELETED 25 +#define SCE_ECL_CHANGED 26 +#define SCE_ECL_MOVED 27 +#define SCE_OSCRIPT_DEFAULT 0 +#define SCE_OSCRIPT_LINE_COMMENT 1 +#define SCE_OSCRIPT_BLOCK_COMMENT 2 +#define SCE_OSCRIPT_DOC_COMMENT 3 +#define SCE_OSCRIPT_PREPROCESSOR 4 +#define SCE_OSCRIPT_NUMBER 5 +#define SCE_OSCRIPT_SINGLEQUOTE_STRING 6 +#define SCE_OSCRIPT_DOUBLEQUOTE_STRING 7 +#define SCE_OSCRIPT_CONSTANT 8 +#define SCE_OSCRIPT_IDENTIFIER 9 +#define SCE_OSCRIPT_GLOBAL 10 +#define SCE_OSCRIPT_KEYWORD 11 +#define SCE_OSCRIPT_OPERATOR 12 +#define SCE_OSCRIPT_LABEL 13 +#define SCE_OSCRIPT_TYPE 14 +#define SCE_OSCRIPT_FUNCTION 15 +#define SCE_OSCRIPT_OBJECT 16 +#define SCE_OSCRIPT_PROPERTY 17 +#define SCE_OSCRIPT_METHOD 18 +#define SCE_VISUALPROLOG_DEFAULT 0 +#define SCE_VISUALPROLOG_KEY_MAJOR 1 +#define SCE_VISUALPROLOG_KEY_MINOR 2 +#define SCE_VISUALPROLOG_KEY_DIRECTIVE 3 +#define SCE_VISUALPROLOG_COMMENT_BLOCK 4 +#define SCE_VISUALPROLOG_COMMENT_LINE 5 +#define SCE_VISUALPROLOG_COMMENT_KEY 6 +#define SCE_VISUALPROLOG_COMMENT_KEY_ERROR 7 +#define SCE_VISUALPROLOG_IDENTIFIER 8 +#define SCE_VISUALPROLOG_VARIABLE 9 +#define SCE_VISUALPROLOG_ANONYMOUS 10 +#define SCE_VISUALPROLOG_NUMBER 11 +#define SCE_VISUALPROLOG_OPERATOR 12 +#define SCE_VISUALPROLOG_CHARACTER 13 +#define SCE_VISUALPROLOG_CHARACTER_TOO_MANY 14 +#define SCE_VISUALPROLOG_CHARACTER_ESCAPE_ERROR 15 +#define SCE_VISUALPROLOG_STRING 16 +#define SCE_VISUALPROLOG_STRING_ESCAPE 17 +#define SCE_VISUALPROLOG_STRING_ESCAPE_ERROR 18 +#define SCE_VISUALPROLOG_STRING_EOL_OPEN 19 +#define SCE_VISUALPROLOG_STRING_VERBATIM 20 +#define SCE_VISUALPROLOG_STRING_VERBATIM_SPECIAL 21 +#define SCE_VISUALPROLOG_STRING_VERBATIM_EOL 22 +#define SCE_STTXT_DEFAULT 0 +#define SCE_STTXT_COMMENT 1 +#define SCE_STTXT_COMMENTLINE 2 +#define SCE_STTXT_KEYWORD 3 +#define SCE_STTXT_TYPE 4 +#define SCE_STTXT_FUNCTION 5 +#define SCE_STTXT_FB 6 +#define SCE_STTXT_NUMBER 7 +#define SCE_STTXT_HEXNUMBER 8 +#define SCE_STTXT_PRAGMA 9 +#define SCE_STTXT_OPERATOR 10 +#define SCE_STTXT_CHARACTER 11 +#define SCE_STTXT_STRING1 12 +#define SCE_STTXT_STRING2 13 +#define SCE_STTXT_STRINGEOL 14 +#define SCE_STTXT_IDENTIFIER 15 +#define SCE_STTXT_DATETIME 16 +#define SCE_STTXT_VARS 17 +#define SCE_STTXT_PRAGMAS 18 +#define SCE_KVIRC_DEFAULT 0 +#define SCE_KVIRC_COMMENT 1 +#define SCE_KVIRC_COMMENTBLOCK 2 +#define SCE_KVIRC_STRING 3 +#define SCE_KVIRC_WORD 4 +#define SCE_KVIRC_KEYWORD 5 +#define SCE_KVIRC_FUNCTION_KEYWORD 6 +#define SCE_KVIRC_FUNCTION 7 +#define SCE_KVIRC_VARIABLE 8 +#define SCE_KVIRC_NUMBER 9 +#define SCE_KVIRC_OPERATOR 10 +#define SCE_KVIRC_STRING_FUNCTION 11 +#define SCE_KVIRC_STRING_VARIABLE 12 +#define SCE_RUST_DEFAULT 0 +#define SCE_RUST_COMMENTBLOCK 1 +#define SCE_RUST_COMMENTLINE 2 +#define SCE_RUST_COMMENTBLOCKDOC 3 +#define SCE_RUST_COMMENTLINEDOC 4 +#define SCE_RUST_NUMBER 5 +#define SCE_RUST_WORD 6 +#define SCE_RUST_WORD2 7 +#define SCE_RUST_WORD3 8 +#define SCE_RUST_WORD4 9 +#define SCE_RUST_WORD5 10 +#define SCE_RUST_WORD6 11 +#define SCE_RUST_WORD7 12 +#define SCE_RUST_STRING 13 +#define SCE_RUST_STRINGR 14 +#define SCE_RUST_CHARACTER 15 +#define SCE_RUST_OPERATOR 16 +#define SCE_RUST_IDENTIFIER 17 +#define SCE_RUST_LIFETIME 18 +#define SCE_RUST_MACRO 19 +#define SCE_RUST_LEXERROR 20 +/* --Autogenerated -- end of section automatically generated from Scintilla.iface */ + +#endif diff --git a/include/Scintilla.h b/include/Scintilla.h new file mode 100644 index 0000000..b50d202 --- /dev/null +++ b/include/Scintilla.h @@ -0,0 +1,1119 @@ +/* Scintilla source code edit control */ +/** @file Scintilla.h + ** Interface to the edit control. + **/ +/* Copyright 1998-2003 by Neil Hodgson + * The License.txt file describes the conditions under which this software may be distributed. */ + +/* Most of this file is automatically generated from the Scintilla.iface interface definition + * file which contains any comments about the definitions. HFacer.py does the generation. */ + +#ifndef SCINTILLA_H +#define SCINTILLA_H + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined(_WIN32) +/* Return false on failure: */ +int Scintilla_RegisterClasses(void *hInstance); +int Scintilla_ReleaseResources(); +#endif +int Scintilla_LinkLexers(); + +#ifdef __cplusplus +} +#endif + +/* Here should be placed typedefs for uptr_t, an unsigned integer type large enough to + * hold a pointer and sptr_t, a signed integer large enough to hold a pointer. + * May need to be changed for 64 bit platforms. */ +#if defined(_WIN32) +#include +#endif +#ifdef MAXULONG_PTR +typedef ULONG_PTR uptr_t; +typedef LONG_PTR sptr_t; +#else +typedef unsigned long uptr_t; +typedef long sptr_t; +#endif + +typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam); + +/* ++Autogenerated -- start of section automatically generated from Scintilla.iface */ +#define INVALID_POSITION -1 +#define SCI_START 2000 +#define SCI_OPTIONAL_START 3000 +#define SCI_LEXER_START 4000 +#define SCI_ADDTEXT 2001 +#define SCI_ADDSTYLEDTEXT 2002 +#define SCI_INSERTTEXT 2003 +#define SCI_CLEARALL 2004 +#define SCI_DELETERANGE 2645 +#define SCI_CLEARDOCUMENTSTYLE 2005 +#define SCI_GETLENGTH 2006 +#define SCI_GETCHARAT 2007 +#define SCI_GETCURRENTPOS 2008 +#define SCI_GETANCHOR 2009 +#define SCI_GETSTYLEAT 2010 +#define SCI_REDO 2011 +#define SCI_SETUNDOCOLLECTION 2012 +#define SCI_SELECTALL 2013 +#define SCI_SETSAVEPOINT 2014 +#define SCI_GETSTYLEDTEXT 2015 +#define SCI_CANREDO 2016 +#define SCI_MARKERLINEFROMHANDLE 2017 +#define SCI_MARKERDELETEHANDLE 2018 +#define SCI_GETUNDOCOLLECTION 2019 +#define SCWS_INVISIBLE 0 +#define SCWS_VISIBLEALWAYS 1 +#define SCWS_VISIBLEAFTERINDENT 2 +#define SCI_GETVIEWWS 2020 +#define SCI_SETVIEWWS 2021 +#define SCI_POSITIONFROMPOINT 2022 +#define SCI_POSITIONFROMPOINTCLOSE 2023 +#define SCI_GOTOLINE 2024 +#define SCI_GOTOPOS 2025 +#define SCI_SETANCHOR 2026 +#define SCI_GETCURLINE 2027 +#define SCI_GETENDSTYLED 2028 +#define SC_EOL_CRLF 0 +#define SC_EOL_CR 1 +#define SC_EOL_LF 2 +#define SCI_CONVERTEOLS 2029 +#define SCI_GETEOLMODE 2030 +#define SCI_SETEOLMODE 2031 +#define SCI_STARTSTYLING 2032 +#define SCI_SETSTYLING 2033 +#define SCI_GETBUFFEREDDRAW 2034 +#define SCI_SETBUFFEREDDRAW 2035 +#define SCI_SETTABWIDTH 2036 +#define SCI_GETTABWIDTH 2121 +#define SC_CP_UTF8 65001 +#define SCI_SETCODEPAGE 2037 +#define MARKER_MAX 31 +#define SC_MARK_CIRCLE 0 +#define SC_MARK_ROUNDRECT 1 +#define SC_MARK_ARROW 2 +#define SC_MARK_SMALLRECT 3 +#define SC_MARK_SHORTARROW 4 +#define SC_MARK_EMPTY 5 +#define SC_MARK_ARROWDOWN 6 +#define SC_MARK_MINUS 7 +#define SC_MARK_PLUS 8 +#define SC_MARK_VLINE 9 +#define SC_MARK_LCORNER 10 +#define SC_MARK_TCORNER 11 +#define SC_MARK_BOXPLUS 12 +#define SC_MARK_BOXPLUSCONNECTED 13 +#define SC_MARK_BOXMINUS 14 +#define SC_MARK_BOXMINUSCONNECTED 15 +#define SC_MARK_LCORNERCURVE 16 +#define SC_MARK_TCORNERCURVE 17 +#define SC_MARK_CIRCLEPLUS 18 +#define SC_MARK_CIRCLEPLUSCONNECTED 19 +#define SC_MARK_CIRCLEMINUS 20 +#define SC_MARK_CIRCLEMINUSCONNECTED 21 +#define SC_MARK_BACKGROUND 22 +#define SC_MARK_DOTDOTDOT 23 +#define SC_MARK_ARROWS 24 +#define SC_MARK_PIXMAP 25 +#define SC_MARK_FULLRECT 26 +#define SC_MARK_LEFTRECT 27 +#define SC_MARK_AVAILABLE 28 +#define SC_MARK_UNDERLINE 29 +#define SC_MARK_RGBAIMAGE 30 +#define SC_MARK_CHARACTER 10000 +#define SC_MARKNUM_FOLDEREND 25 +#define SC_MARKNUM_FOLDEROPENMID 26 +#define SC_MARKNUM_FOLDERMIDTAIL 27 +#define SC_MARKNUM_FOLDERTAIL 28 +#define SC_MARKNUM_FOLDERSUB 29 +#define SC_MARKNUM_FOLDER 30 +#define SC_MARKNUM_FOLDEROPEN 31 +#define SC_MASK_FOLDERS 0xFE000000 +#define SCI_MARKERDEFINE 2040 +#define SCI_MARKERSETFORE 2041 +#define SCI_MARKERSETBACK 2042 +#define SCI_MARKERSETBACKSELECTED 2292 +#define SCI_MARKERENABLEHIGHLIGHT 2293 +#define SCI_MARKERADD 2043 +#define SCI_MARKERDELETE 2044 +#define SCI_MARKERDELETEALL 2045 +#define SCI_MARKERGET 2046 +#define SCI_MARKERNEXT 2047 +#define SCI_MARKERPREVIOUS 2048 +#define SCI_MARKERDEFINEPIXMAP 2049 +#define SCI_MARKERADDSET 2466 +#define SCI_MARKERSETALPHA 2476 +#define SC_MAX_MARGIN 4 +#define SC_MARGIN_SYMBOL 0 +#define SC_MARGIN_NUMBER 1 +#define SC_MARGIN_BACK 2 +#define SC_MARGIN_FORE 3 +#define SC_MARGIN_TEXT 4 +#define SC_MARGIN_RTEXT 5 +#define SCI_SETMARGINTYPEN 2240 +#define SCI_GETMARGINTYPEN 2241 +#define SCI_SETMARGINWIDTHN 2242 +#define SCI_GETMARGINWIDTHN 2243 +#define SCI_SETMARGINMASKN 2244 +#define SCI_GETMARGINMASKN 2245 +#define SCI_SETMARGINSENSITIVEN 2246 +#define SCI_GETMARGINSENSITIVEN 2247 +#define SCI_SETMARGINCURSORN 2248 +#define SCI_GETMARGINCURSORN 2249 +#define STYLE_DEFAULT 32 +#define STYLE_LINENUMBER 33 +#define STYLE_BRACELIGHT 34 +#define STYLE_BRACEBAD 35 +#define STYLE_CONTROLCHAR 36 +#define STYLE_INDENTGUIDE 37 +#define STYLE_CALLTIP 38 +#define STYLE_LASTPREDEFINED 39 +#define STYLE_MAX 255 +#define SC_CHARSET_ANSI 0 +#define SC_CHARSET_DEFAULT 1 +#define SC_CHARSET_BALTIC 186 +#define SC_CHARSET_CHINESEBIG5 136 +#define SC_CHARSET_EASTEUROPE 238 +#define SC_CHARSET_GB2312 134 +#define SC_CHARSET_GREEK 161 +#define SC_CHARSET_HANGUL 129 +#define SC_CHARSET_MAC 77 +#define SC_CHARSET_OEM 255 +#define SC_CHARSET_RUSSIAN 204 +#define SC_CHARSET_CYRILLIC 1251 +#define SC_CHARSET_SHIFTJIS 128 +#define SC_CHARSET_SYMBOL 2 +#define SC_CHARSET_TURKISH 162 +#define SC_CHARSET_JOHAB 130 +#define SC_CHARSET_HEBREW 177 +#define SC_CHARSET_ARABIC 178 +#define SC_CHARSET_VIETNAMESE 163 +#define SC_CHARSET_THAI 222 +#define SC_CHARSET_8859_15 1000 +#define SCI_STYLECLEARALL 2050 +#define SCI_STYLESETFORE 2051 +#define SCI_STYLESETBACK 2052 +#define SCI_STYLESETBOLD 2053 +#define SCI_STYLESETITALIC 2054 +#define SCI_STYLESETSIZE 2055 +#define SCI_STYLESETFONT 2056 +#define SCI_STYLESETEOLFILLED 2057 +#define SCI_STYLERESETDEFAULT 2058 +#define SCI_STYLESETUNDERLINE 2059 +#define SC_CASE_MIXED 0 +#define SC_CASE_UPPER 1 +#define SC_CASE_LOWER 2 +#define SCI_STYLEGETFORE 2481 +#define SCI_STYLEGETBACK 2482 +#define SCI_STYLEGETBOLD 2483 +#define SCI_STYLEGETITALIC 2484 +#define SCI_STYLEGETSIZE 2485 +#define SCI_STYLEGETFONT 2486 +#define SCI_STYLEGETEOLFILLED 2487 +#define SCI_STYLEGETUNDERLINE 2488 +#define SCI_STYLEGETCASE 2489 +#define SCI_STYLEGETCHARACTERSET 2490 +#define SCI_STYLEGETVISIBLE 2491 +#define SCI_STYLEGETCHANGEABLE 2492 +#define SCI_STYLEGETHOTSPOT 2493 +#define SCI_STYLESETCASE 2060 +#define SC_FONT_SIZE_MULTIPLIER 100 +#define SCI_STYLESETSIZEFRACTIONAL 2061 +#define SCI_STYLEGETSIZEFRACTIONAL 2062 +#define SC_WEIGHT_NORMAL 400 +#define SC_WEIGHT_SEMIBOLD 600 +#define SC_WEIGHT_BOLD 700 +#define SCI_STYLESETWEIGHT 2063 +#define SCI_STYLEGETWEIGHT 2064 +#define SCI_STYLESETCHARACTERSET 2066 +#define SCI_STYLESETHOTSPOT 2409 +#define SCI_SETSELFORE 2067 +#define SCI_SETSELBACK 2068 +#define SCI_GETSELALPHA 2477 +#define SCI_SETSELALPHA 2478 +#define SCI_GETSELEOLFILLED 2479 +#define SCI_SETSELEOLFILLED 2480 +#define SCI_SETCARETFORE 2069 +#define SCI_ASSIGNCMDKEY 2070 +#define SCI_CLEARCMDKEY 2071 +#define SCI_CLEARALLCMDKEYS 2072 +#define SCI_SETSTYLINGEX 2073 +#define SCI_STYLESETVISIBLE 2074 +#define SCI_GETCARETPERIOD 2075 +#define SCI_SETCARETPERIOD 2076 +#define SCI_SETWORDCHARS 2077 +#define SCI_GETWORDCHARS 2646 +#define SCI_BEGINUNDOACTION 2078 +#define SCI_ENDUNDOACTION 2079 +#define INDIC_PLAIN 0 +#define INDIC_SQUIGGLE 1 +#define INDIC_TT 2 +#define INDIC_DIAGONAL 3 +#define INDIC_STRIKE 4 +#define INDIC_HIDDEN 5 +#define INDIC_BOX 6 +#define INDIC_ROUNDBOX 7 +#define INDIC_STRAIGHTBOX 8 +#define INDIC_DASH 9 +#define INDIC_DOTS 10 +#define INDIC_SQUIGGLELOW 11 +#define INDIC_DOTBOX 12 +#define INDIC_SQUIGGLEPIXMAP 13 +#define INDIC_COMPOSITIONTHICK 14 +#define INDIC_MAX 31 +#define INDIC_CONTAINER 8 +#define INDIC0_MASK 0x20 +#define INDIC1_MASK 0x40 +#define INDIC2_MASK 0x80 +#define INDICS_MASK 0xE0 +#define SCI_INDICSETSTYLE 2080 +#define SCI_INDICGETSTYLE 2081 +#define SCI_INDICSETFORE 2082 +#define SCI_INDICGETFORE 2083 +#define SCI_INDICSETUNDER 2510 +#define SCI_INDICGETUNDER 2511 +#define SCI_SETWHITESPACEFORE 2084 +#define SCI_SETWHITESPACEBACK 2085 +#define SCI_SETWHITESPACESIZE 2086 +#define SCI_GETWHITESPACESIZE 2087 +#define SCI_SETSTYLEBITS 2090 +#define SCI_GETSTYLEBITS 2091 +#define SCI_SETLINESTATE 2092 +#define SCI_GETLINESTATE 2093 +#define SCI_GETMAXLINESTATE 2094 +#define SCI_GETCARETLINEVISIBLE 2095 +#define SCI_SETCARETLINEVISIBLE 2096 +#define SCI_GETCARETLINEBACK 2097 +#define SCI_SETCARETLINEBACK 2098 +#define SCI_STYLESETCHANGEABLE 2099 +#define SCI_AUTOCSHOW 2100 +#define SCI_AUTOCCANCEL 2101 +#define SCI_AUTOCACTIVE 2102 +#define SCI_AUTOCPOSSTART 2103 +#define SCI_AUTOCCOMPLETE 2104 +#define SCI_AUTOCSTOPS 2105 +#define SCI_AUTOCSETSEPARATOR 2106 +#define SCI_AUTOCGETSEPARATOR 2107 +#define SCI_AUTOCSELECT 2108 +#define SCI_AUTOCSETCANCELATSTART 2110 +#define SCI_AUTOCGETCANCELATSTART 2111 +#define SCI_AUTOCSETFILLUPS 2112 +#define SCI_AUTOCSETCHOOSESINGLE 2113 +#define SCI_AUTOCGETCHOOSESINGLE 2114 +#define SCI_AUTOCSETIGNORECASE 2115 +#define SCI_AUTOCGETIGNORECASE 2116 +#define SCI_USERLISTSHOW 2117 +#define SCI_AUTOCSETAUTOHIDE 2118 +#define SCI_AUTOCGETAUTOHIDE 2119 +#define SCI_AUTOCSETDROPRESTOFWORD 2270 +#define SCI_AUTOCGETDROPRESTOFWORD 2271 +#define SCI_REGISTERIMAGE 2405 +#define SCI_CLEARREGISTEREDIMAGES 2408 +#define SCI_AUTOCGETTYPESEPARATOR 2285 +#define SCI_AUTOCSETTYPESEPARATOR 2286 +#define SCI_AUTOCSETMAXWIDTH 2208 +#define SCI_AUTOCGETMAXWIDTH 2209 +#define SCI_AUTOCSETMAXHEIGHT 2210 +#define SCI_AUTOCGETMAXHEIGHT 2211 +#define SCI_SETINDENT 2122 +#define SCI_GETINDENT 2123 +#define SCI_SETUSETABS 2124 +#define SCI_GETUSETABS 2125 +#define SCI_SETLINEINDENTATION 2126 +#define SCI_GETLINEINDENTATION 2127 +#define SCI_GETLINEINDENTPOSITION 2128 +#define SCI_GETCOLUMN 2129 +#define SCI_COUNTCHARACTERS 2633 +#define SCI_SETHSCROLLBAR 2130 +#define SCI_GETHSCROLLBAR 2131 +#define SC_IV_NONE 0 +#define SC_IV_REAL 1 +#define SC_IV_LOOKFORWARD 2 +#define SC_IV_LOOKBOTH 3 +#define SCI_SETINDENTATIONGUIDES 2132 +#define SCI_GETINDENTATIONGUIDES 2133 +#define SCI_SETHIGHLIGHTGUIDE 2134 +#define SCI_GETHIGHLIGHTGUIDE 2135 +#define SCI_GETLINEENDPOSITION 2136 +#define SCI_GETCODEPAGE 2137 +#define SCI_GETCARETFORE 2138 +#define SCI_GETREADONLY 2140 +#define SCI_SETCURRENTPOS 2141 +#define SCI_SETSELECTIONSTART 2142 +#define SCI_GETSELECTIONSTART 2143 +#define SCI_SETSELECTIONEND 2144 +#define SCI_GETSELECTIONEND 2145 +#define SCI_SETEMPTYSELECTION 2556 +#define SCI_SETPRINTMAGNIFICATION 2146 +#define SCI_GETPRINTMAGNIFICATION 2147 +#define SC_PRINT_NORMAL 0 +#define SC_PRINT_INVERTLIGHT 1 +#define SC_PRINT_BLACKONWHITE 2 +#define SC_PRINT_COLOURONWHITE 3 +#define SC_PRINT_COLOURONWHITEDEFAULTBG 4 +#define SCI_SETPRINTCOLOURMODE 2148 +#define SCI_GETPRINTCOLOURMODE 2149 +#define SCFIND_WHOLEWORD 2 +#define SCFIND_MATCHCASE 4 +#define SCFIND_WORDSTART 0x00100000 +#define SCFIND_REGEXP 0x00200000 +#define SCFIND_POSIX 0x00400000 +#define SCI_FINDTEXT 2150 +#define SCI_FORMATRANGE 2151 +#define SCI_GETFIRSTVISIBLELINE 2152 +#define SCI_GETLINE 2153 +#define SCI_GETLINECOUNT 2154 +#define SCI_SETMARGINLEFT 2155 +#define SCI_GETMARGINLEFT 2156 +#define SCI_SETMARGINRIGHT 2157 +#define SCI_GETMARGINRIGHT 2158 +#define SCI_GETMODIFY 2159 +#define SCI_SETSEL 2160 +#define SCI_GETSELTEXT 2161 +#define SCI_GETTEXTRANGE 2162 +#define SCI_HIDESELECTION 2163 +#define SCI_POINTXFROMPOSITION 2164 +#define SCI_POINTYFROMPOSITION 2165 +#define SCI_LINEFROMPOSITION 2166 +#define SCI_POSITIONFROMLINE 2167 +#define SCI_LINESCROLL 2168 +#define SCI_SCROLLCARET 2169 +#define SCI_SCROLLRANGE 2569 +#define SCI_REPLACESEL 2170 +#define SCI_SETREADONLY 2171 +#define SCI_NULL 2172 +#define SCI_CANPASTE 2173 +#define SCI_CANUNDO 2174 +#define SCI_EMPTYUNDOBUFFER 2175 +#define SCI_UNDO 2176 +#define SCI_CUT 2177 +#define SCI_COPY 2178 +#define SCI_PASTE 2179 +#define SCI_CLEAR 2180 +#define SCI_SETTEXT 2181 +#define SCI_GETTEXT 2182 +#define SCI_GETTEXTLENGTH 2183 +#define SCI_GETDIRECTFUNCTION 2184 +#define SCI_GETDIRECTPOINTER 2185 +#define SCI_SETOVERTYPE 2186 +#define SCI_GETOVERTYPE 2187 +#define SCI_SETCARETWIDTH 2188 +#define SCI_GETCARETWIDTH 2189 +#define SCI_SETTARGETSTART 2190 +#define SCI_GETTARGETSTART 2191 +#define SCI_SETTARGETEND 2192 +#define SCI_GETTARGETEND 2193 +#define SCI_REPLACETARGET 2194 +#define SCI_REPLACETARGETRE 2195 +#define SCI_SEARCHINTARGET 2197 +#define SCI_SETSEARCHFLAGS 2198 +#define SCI_GETSEARCHFLAGS 2199 +#define SCI_CALLTIPSHOW 2200 +#define SCI_CALLTIPCANCEL 2201 +#define SCI_CALLTIPACTIVE 2202 +#define SCI_CALLTIPPOSSTART 2203 +#define SCI_CALLTIPSETHLT 2204 +#define SCI_CALLTIPSETBACK 2205 +#define SCI_CALLTIPSETFORE 2206 +#define SCI_CALLTIPSETFOREHLT 2207 +#define SCI_CALLTIPUSESTYLE 2212 +#define SCI_CALLTIPSETPOSITION 2213 +#define SCI_VISIBLEFROMDOCLINE 2220 +#define SCI_DOCLINEFROMVISIBLE 2221 +#define SCI_WRAPCOUNT 2235 +#define SC_FOLDLEVELBASE 0x400 +#define SC_FOLDLEVELWHITEFLAG 0x1000 +#define SC_FOLDLEVELHEADERFLAG 0x2000 +#define SC_FOLDLEVELNUMBERMASK 0x0FFF +#define SCI_SETFOLDLEVEL 2222 +#define SCI_GETFOLDLEVEL 2223 +#define SCI_GETLASTCHILD 2224 +#define SCI_GETFOLDPARENT 2225 +#define SCI_SHOWLINES 2226 +#define SCI_HIDELINES 2227 +#define SCI_GETLINEVISIBLE 2228 +#define SCI_GETALLLINESVISIBLE 2236 +#define SCI_SETFOLDEXPANDED 2229 +#define SCI_GETFOLDEXPANDED 2230 +#define SCI_TOGGLEFOLD 2231 +#define SC_FOLDACTION_CONTRACT 0 +#define SC_FOLDACTION_EXPAND 1 +#define SC_FOLDACTION_TOGGLE 2 +#define SCI_FOLDLINE 2237 +#define SCI_FOLDCHILDREN 2238 +#define SCI_EXPANDCHILDREN 2239 +#define SCI_FOLDALL 2662 +#define SCI_ENSUREVISIBLE 2232 +#define SC_AUTOMATICFOLD_SHOW 0x0001 +#define SC_AUTOMATICFOLD_CLICK 0x0002 +#define SC_AUTOMATICFOLD_CHANGE 0x0004 +#define SCI_SETAUTOMATICFOLD 2663 +#define SCI_GETAUTOMATICFOLD 2664 +#define SC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002 +#define SC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004 +#define SC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008 +#define SC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010 +#define SC_FOLDFLAG_LEVELNUMBERS 0x0040 +#define SCI_SETFOLDFLAGS 2233 +#define SCI_ENSUREVISIBLEENFORCEPOLICY 2234 +#define SCI_SETTABINDENTS 2260 +#define SCI_GETTABINDENTS 2261 +#define SCI_SETBACKSPACEUNINDENTS 2262 +#define SCI_GETBACKSPACEUNINDENTS 2263 +#define SC_TIME_FOREVER 10000000 +#define SCI_SETMOUSEDWELLTIME 2264 +#define SCI_GETMOUSEDWELLTIME 2265 +#define SCI_WORDSTARTPOSITION 2266 +#define SCI_WORDENDPOSITION 2267 +#define SC_WRAP_NONE 0 +#define SC_WRAP_WORD 1 +#define SC_WRAP_CHAR 2 +#define SCI_SETWRAPMODE 2268 +#define SCI_GETWRAPMODE 2269 +#define SC_WRAPVISUALFLAG_NONE 0x0000 +#define SC_WRAPVISUALFLAG_END 0x0001 +#define SC_WRAPVISUALFLAG_START 0x0002 +#define SC_WRAPVISUALFLAG_MARGIN 0x0004 +#define SCI_SETWRAPVISUALFLAGS 2460 +#define SCI_GETWRAPVISUALFLAGS 2461 +#define SC_WRAPVISUALFLAGLOC_DEFAULT 0x0000 +#define SC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001 +#define SC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002 +#define SCI_SETWRAPVISUALFLAGSLOCATION 2462 +#define SCI_GETWRAPVISUALFLAGSLOCATION 2463 +#define SCI_SETWRAPSTARTINDENT 2464 +#define SCI_GETWRAPSTARTINDENT 2465 +#define SC_WRAPINDENT_FIXED 0 +#define SC_WRAPINDENT_SAME 1 +#define SC_WRAPINDENT_INDENT 2 +#define SCI_SETWRAPINDENTMODE 2472 +#define SCI_GETWRAPINDENTMODE 2473 +#define SC_CACHE_NONE 0 +#define SC_CACHE_CARET 1 +#define SC_CACHE_PAGE 2 +#define SC_CACHE_DOCUMENT 3 +#define SCI_SETLAYOUTCACHE 2272 +#define SCI_GETLAYOUTCACHE 2273 +#define SCI_SETSCROLLWIDTH 2274 +#define SCI_GETSCROLLWIDTH 2275 +#define SCI_SETSCROLLWIDTHTRACKING 2516 +#define SCI_GETSCROLLWIDTHTRACKING 2517 +#define SCI_TEXTWIDTH 2276 +#define SCI_SETENDATLASTLINE 2277 +#define SCI_GETENDATLASTLINE 2278 +#define SCI_TEXTHEIGHT 2279 +#define SCI_SETVSCROLLBAR 2280 +#define SCI_GETVSCROLLBAR 2281 +#define SCI_APPENDTEXT 2282 +#define SCI_GETTWOPHASEDRAW 2283 +#define SCI_SETTWOPHASEDRAW 2284 +#define SC_EFF_QUALITY_MASK 0xF +#define SC_EFF_QUALITY_DEFAULT 0 +#define SC_EFF_QUALITY_NON_ANTIALIASED 1 +#define SC_EFF_QUALITY_ANTIALIASED 2 +#define SC_EFF_QUALITY_LCD_OPTIMIZED 3 +#define SCI_SETFONTQUALITY 2611 +#define SCI_GETFONTQUALITY 2612 +#define SCI_SETFIRSTVISIBLELINE 2613 +#define SC_MULTIPASTE_ONCE 0 +#define SC_MULTIPASTE_EACH 1 +#define SCI_SETMULTIPASTE 2614 +#define SCI_GETMULTIPASTE 2615 +#define SCI_GETTAG 2616 +#define SCI_TARGETFROMSELECTION 2287 +#define SCI_LINESJOIN 2288 +#define SCI_LINESSPLIT 2289 +#define SCI_SETFOLDMARGINCOLOUR 2290 +#define SCI_SETFOLDMARGINHICOLOUR 2291 +#define SCI_LINEDOWN 2300 +#define SCI_LINEDOWNEXTEND 2301 +#define SCI_LINEUP 2302 +#define SCI_LINEUPEXTEND 2303 +#define SCI_CHARLEFT 2304 +#define SCI_CHARLEFTEXTEND 2305 +#define SCI_CHARRIGHT 2306 +#define SCI_CHARRIGHTEXTEND 2307 +#define SCI_WORDLEFT 2308 +#define SCI_WORDLEFTEXTEND 2309 +#define SCI_WORDRIGHT 2310 +#define SCI_WORDRIGHTEXTEND 2311 +#define SCI_HOME 2312 +#define SCI_HOMEEXTEND 2313 +#define SCI_LINEEND 2314 +#define SCI_LINEENDEXTEND 2315 +#define SCI_DOCUMENTSTART 2316 +#define SCI_DOCUMENTSTARTEXTEND 2317 +#define SCI_DOCUMENTEND 2318 +#define SCI_DOCUMENTENDEXTEND 2319 +#define SCI_PAGEUP 2320 +#define SCI_PAGEUPEXTEND 2321 +#define SCI_PAGEDOWN 2322 +#define SCI_PAGEDOWNEXTEND 2323 +#define SCI_EDITTOGGLEOVERTYPE 2324 +#define SCI_CANCEL 2325 +#define SCI_DELETEBACK 2326 +#define SCI_TAB 2327 +#define SCI_BACKTAB 2328 +#define SCI_NEWLINE 2329 +#define SCI_FORMFEED 2330 +#define SCI_VCHOME 2331 +#define SCI_VCHOMEEXTEND 2332 +#define SCI_ZOOMIN 2333 +#define SCI_ZOOMOUT 2334 +#define SCI_DELWORDLEFT 2335 +#define SCI_DELWORDRIGHT 2336 +#define SCI_DELWORDRIGHTEND 2518 +#define SCI_LINECUT 2337 +#define SCI_LINEDELETE 2338 +#define SCI_LINETRANSPOSE 2339 +#define SCI_LINEDUPLICATE 2404 +#define SCI_LOWERCASE 2340 +#define SCI_UPPERCASE 2341 +#define SCI_LINESCROLLDOWN 2342 +#define SCI_LINESCROLLUP 2343 +#define SCI_DELETEBACKNOTLINE 2344 +#define SCI_HOMEDISPLAY 2345 +#define SCI_HOMEDISPLAYEXTEND 2346 +#define SCI_LINEENDDISPLAY 2347 +#define SCI_LINEENDDISPLAYEXTEND 2348 +#define SCI_HOMEWRAP 2349 +#define SCI_HOMEWRAPEXTEND 2450 +#define SCI_LINEENDWRAP 2451 +#define SCI_LINEENDWRAPEXTEND 2452 +#define SCI_VCHOMEWRAP 2453 +#define SCI_VCHOMEWRAPEXTEND 2454 +#define SCI_LINECOPY 2455 +#define SCI_MOVECARETINSIDEVIEW 2401 +#define SCI_LINELENGTH 2350 +#define SCI_BRACEHIGHLIGHT 2351 +#define SCI_BRACEHIGHLIGHTINDICATOR 2498 +#define SCI_BRACEBADLIGHT 2352 +#define SCI_BRACEBADLIGHTINDICATOR 2499 +#define SCI_BRACEMATCH 2353 +#define SCI_GETVIEWEOL 2355 +#define SCI_SETVIEWEOL 2356 +#define SCI_GETDOCPOINTER 2357 +#define SCI_SETDOCPOINTER 2358 +#define SCI_SETMODEVENTMASK 2359 +#define EDGE_NONE 0 +#define EDGE_LINE 1 +#define EDGE_BACKGROUND 2 +#define SCI_GETEDGECOLUMN 2360 +#define SCI_SETEDGECOLUMN 2361 +#define SCI_GETEDGEMODE 2362 +#define SCI_SETEDGEMODE 2363 +#define SCI_GETEDGECOLOUR 2364 +#define SCI_SETEDGECOLOUR 2365 +#define SCI_SEARCHANCHOR 2366 +#define SCI_SEARCHNEXT 2367 +#define SCI_SEARCHPREV 2368 +#define SCI_LINESONSCREEN 2370 +#define SCI_USEPOPUP 2371 +#define SCI_SELECTIONISRECTANGLE 2372 +#define SCI_SETZOOM 2373 +#define SCI_GETZOOM 2374 +#define SCI_CREATEDOCUMENT 2375 +#define SCI_ADDREFDOCUMENT 2376 +#define SCI_RELEASEDOCUMENT 2377 +#define SCI_GETMODEVENTMASK 2378 +#define SCI_SETFOCUS 2380 +#define SCI_GETFOCUS 2381 +#define SC_STATUS_OK 0 +#define SC_STATUS_FAILURE 1 +#define SC_STATUS_BADALLOC 2 +#define SCI_SETSTATUS 2382 +#define SCI_GETSTATUS 2383 +#define SCI_SETMOUSEDOWNCAPTURES 2384 +#define SCI_GETMOUSEDOWNCAPTURES 2385 +#define SC_CURSORNORMAL -1 +#define SC_CURSORARROW 2 +#define SC_CURSORWAIT 4 +#define SC_CURSORREVERSEARROW 7 +#define SCI_SETCURSOR 2386 +#define SCI_GETCURSOR 2387 +#define SCI_SETCONTROLCHARSYMBOL 2388 +#define SCI_GETCONTROLCHARSYMBOL 2389 +#define SCI_WORDPARTLEFT 2390 +#define SCI_WORDPARTLEFTEXTEND 2391 +#define SCI_WORDPARTRIGHT 2392 +#define SCI_WORDPARTRIGHTEXTEND 2393 +#define VISIBLE_SLOP 0x01 +#define VISIBLE_STRICT 0x04 +#define SCI_SETVISIBLEPOLICY 2394 +#define SCI_DELLINELEFT 2395 +#define SCI_DELLINERIGHT 2396 +#define SCI_SETXOFFSET 2397 +#define SCI_GETXOFFSET 2398 +#define SCI_CHOOSECARETX 2399 +#define SCI_GRABFOCUS 2400 +#define CARET_SLOP 0x01 +#define CARET_STRICT 0x04 +#define CARET_JUMPS 0x10 +#define CARET_EVEN 0x08 +#define SCI_SETXCARETPOLICY 2402 +#define SCI_SETYCARETPOLICY 2403 +#define SCI_SETPRINTWRAPMODE 2406 +#define SCI_GETPRINTWRAPMODE 2407 +#define SCI_SETHOTSPOTACTIVEFORE 2410 +#define SCI_GETHOTSPOTACTIVEFORE 2494 +#define SCI_SETHOTSPOTACTIVEBACK 2411 +#define SCI_GETHOTSPOTACTIVEBACK 2495 +#define SCI_SETHOTSPOTACTIVEUNDERLINE 2412 +#define SCI_GETHOTSPOTACTIVEUNDERLINE 2496 +#define SCI_SETHOTSPOTSINGLELINE 2421 +#define SCI_GETHOTSPOTSINGLELINE 2497 +#define SCI_PARADOWN 2413 +#define SCI_PARADOWNEXTEND 2414 +#define SCI_PARAUP 2415 +#define SCI_PARAUPEXTEND 2416 +#define SCI_POSITIONBEFORE 2417 +#define SCI_POSITIONAFTER 2418 +#define SCI_POSITIONRELATIVE 2670 +#define SCI_COPYRANGE 2419 +#define SCI_COPYTEXT 2420 +#define SC_SEL_STREAM 0 +#define SC_SEL_RECTANGLE 1 +#define SC_SEL_LINES 2 +#define SC_SEL_THIN 3 +#define SCI_SETSELECTIONMODE 2422 +#define SCI_GETSELECTIONMODE 2423 +#define SCI_GETLINESELSTARTPOSITION 2424 +#define SCI_GETLINESELENDPOSITION 2425 +#define SCI_LINEDOWNRECTEXTEND 2426 +#define SCI_LINEUPRECTEXTEND 2427 +#define SCI_CHARLEFTRECTEXTEND 2428 +#define SCI_CHARRIGHTRECTEXTEND 2429 +#define SCI_HOMERECTEXTEND 2430 +#define SCI_VCHOMERECTEXTEND 2431 +#define SCI_LINEENDRECTEXTEND 2432 +#define SCI_PAGEUPRECTEXTEND 2433 +#define SCI_PAGEDOWNRECTEXTEND 2434 +#define SCI_STUTTEREDPAGEUP 2435 +#define SCI_STUTTEREDPAGEUPEXTEND 2436 +#define SCI_STUTTEREDPAGEDOWN 2437 +#define SCI_STUTTEREDPAGEDOWNEXTEND 2438 +#define SCI_WORDLEFTEND 2439 +#define SCI_WORDLEFTENDEXTEND 2440 +#define SCI_WORDRIGHTEND 2441 +#define SCI_WORDRIGHTENDEXTEND 2442 +#define SCI_SETWHITESPACECHARS 2443 +#define SCI_GETWHITESPACECHARS 2647 +#define SCI_SETPUNCTUATIONCHARS 2648 +#define SCI_GETPUNCTUATIONCHARS 2649 +#define SCI_SETCHARSDEFAULT 2444 +#define SCI_AUTOCGETCURRENT 2445 +#define SCI_AUTOCGETCURRENTTEXT 2610 +#define SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE 0 +#define SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE 1 +#define SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR 2634 +#define SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR 2635 +#define SC_ORDER_PRESORTED 0 +#define SC_ORDER_PERFORMSORT 1 +#define SC_ORDER_CUSTOM 2 +#define SCI_AUTOCSETORDER 2660 +#define SCI_AUTOCGETORDER 2661 +#define SCI_ALLOCATE 2446 +#define SCI_TARGETASUTF8 2447 +#define SCI_SETLENGTHFORENCODE 2448 +#define SCI_ENCODEDFROMUTF8 2449 +#define SCI_FINDCOLUMN 2456 +#define SCI_GETCARETSTICKY 2457 +#define SCI_SETCARETSTICKY 2458 +#define SC_CARETSTICKY_OFF 0 +#define SC_CARETSTICKY_ON 1 +#define SC_CARETSTICKY_WHITESPACE 2 +#define SCI_TOGGLECARETSTICKY 2459 +#define SCI_SETPASTECONVERTENDINGS 2467 +#define SCI_GETPASTECONVERTENDINGS 2468 +#define SCI_SELECTIONDUPLICATE 2469 +#define SC_ALPHA_TRANSPARENT 0 +#define SC_ALPHA_OPAQUE 255 +#define SC_ALPHA_NOALPHA 256 +#define SCI_SETCARETLINEBACKALPHA 2470 +#define SCI_GETCARETLINEBACKALPHA 2471 +#define CARETSTYLE_INVISIBLE 0 +#define CARETSTYLE_LINE 1 +#define CARETSTYLE_BLOCK 2 +#define SCI_SETCARETSTYLE 2512 +#define SCI_GETCARETSTYLE 2513 +#define SCI_SETINDICATORCURRENT 2500 +#define SCI_GETINDICATORCURRENT 2501 +#define SCI_SETINDICATORVALUE 2502 +#define SCI_GETINDICATORVALUE 2503 +#define SCI_INDICATORFILLRANGE 2504 +#define SCI_INDICATORCLEARRANGE 2505 +#define SCI_INDICATORALLONFOR 2506 +#define SCI_INDICATORVALUEAT 2507 +#define SCI_INDICATORSTART 2508 +#define SCI_INDICATOREND 2509 +#define SCI_SETPOSITIONCACHE 2514 +#define SCI_GETPOSITIONCACHE 2515 +#define SCI_COPYALLOWLINE 2519 +#define SCI_GETCHARACTERPOINTER 2520 +#define SCI_GETRANGEPOINTER 2643 +#define SCI_GETGAPPOSITION 2644 +#define SCI_SETKEYSUNICODE 2521 +#define SCI_GETKEYSUNICODE 2522 +#define SCI_INDICSETALPHA 2523 +#define SCI_INDICGETALPHA 2524 +#define SCI_INDICSETOUTLINEALPHA 2558 +#define SCI_INDICGETOUTLINEALPHA 2559 +#define SCI_SETEXTRAASCENT 2525 +#define SCI_GETEXTRAASCENT 2526 +#define SCI_SETEXTRADESCENT 2527 +#define SCI_GETEXTRADESCENT 2528 +#define SCI_MARKERSYMBOLDEFINED 2529 +#define SCI_MARGINSETTEXT 2530 +#define SCI_MARGINGETTEXT 2531 +#define SCI_MARGINSETSTYLE 2532 +#define SCI_MARGINGETSTYLE 2533 +#define SCI_MARGINSETSTYLES 2534 +#define SCI_MARGINGETSTYLES 2535 +#define SCI_MARGINTEXTCLEARALL 2536 +#define SCI_MARGINSETSTYLEOFFSET 2537 +#define SCI_MARGINGETSTYLEOFFSET 2538 +#define SC_MARGINOPTION_NONE 0 +#define SC_MARGINOPTION_SUBLINESELECT 1 +#define SCI_SETMARGINOPTIONS 2539 +#define SCI_GETMARGINOPTIONS 2557 +#define SCI_ANNOTATIONSETTEXT 2540 +#define SCI_ANNOTATIONGETTEXT 2541 +#define SCI_ANNOTATIONSETSTYLE 2542 +#define SCI_ANNOTATIONGETSTYLE 2543 +#define SCI_ANNOTATIONSETSTYLES 2544 +#define SCI_ANNOTATIONGETSTYLES 2545 +#define SCI_ANNOTATIONGETLINES 2546 +#define SCI_ANNOTATIONCLEARALL 2547 +#define ANNOTATION_HIDDEN 0 +#define ANNOTATION_STANDARD 1 +#define ANNOTATION_BOXED 2 +#define SCI_ANNOTATIONSETVISIBLE 2548 +#define SCI_ANNOTATIONGETVISIBLE 2549 +#define SCI_ANNOTATIONSETSTYLEOFFSET 2550 +#define SCI_ANNOTATIONGETSTYLEOFFSET 2551 +#define SCI_RELEASEALLEXTENDEDSTYLES 2552 +#define SCI_ALLOCATEEXTENDEDSTYLES 2553 +#define UNDO_MAY_COALESCE 1 +#define SCI_ADDUNDOACTION 2560 +#define SCI_CHARPOSITIONFROMPOINT 2561 +#define SCI_CHARPOSITIONFROMPOINTCLOSE 2562 +#define SCI_SETMOUSESELECTIONRECTANGULARSWITCH 2668 +#define SCI_GETMOUSESELECTIONRECTANGULARSWITCH 2669 +#define SCI_SETMULTIPLESELECTION 2563 +#define SCI_GETMULTIPLESELECTION 2564 +#define SCI_SETADDITIONALSELECTIONTYPING 2565 +#define SCI_GETADDITIONALSELECTIONTYPING 2566 +#define SCI_SETADDITIONALCARETSBLINK 2567 +#define SCI_GETADDITIONALCARETSBLINK 2568 +#define SCI_SETADDITIONALCARETSVISIBLE 2608 +#define SCI_GETADDITIONALCARETSVISIBLE 2609 +#define SCI_GETSELECTIONS 2570 +#define SCI_GETSELECTIONEMPTY 2650 +#define SCI_CLEARSELECTIONS 2571 +#define SCI_SETSELECTION 2572 +#define SCI_ADDSELECTION 2573 +#define SCI_SETMAINSELECTION 2574 +#define SCI_GETMAINSELECTION 2575 +#define SCI_SETSELECTIONNCARET 2576 +#define SCI_GETSELECTIONNCARET 2577 +#define SCI_SETSELECTIONNANCHOR 2578 +#define SCI_GETSELECTIONNANCHOR 2579 +#define SCI_SETSELECTIONNCARETVIRTUALSPACE 2580 +#define SCI_GETSELECTIONNCARETVIRTUALSPACE 2581 +#define SCI_SETSELECTIONNANCHORVIRTUALSPACE 2582 +#define SCI_GETSELECTIONNANCHORVIRTUALSPACE 2583 +#define SCI_SETSELECTIONNSTART 2584 +#define SCI_GETSELECTIONNSTART 2585 +#define SCI_SETSELECTIONNEND 2586 +#define SCI_GETSELECTIONNEND 2587 +#define SCI_SETRECTANGULARSELECTIONCARET 2588 +#define SCI_GETRECTANGULARSELECTIONCARET 2589 +#define SCI_SETRECTANGULARSELECTIONANCHOR 2590 +#define SCI_GETRECTANGULARSELECTIONANCHOR 2591 +#define SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE 2592 +#define SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE 2593 +#define SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE 2594 +#define SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE 2595 +#define SCVS_NONE 0 +#define SCVS_RECTANGULARSELECTION 1 +#define SCVS_USERACCESSIBLE 2 +#define SCI_SETVIRTUALSPACEOPTIONS 2596 +#define SCI_GETVIRTUALSPACEOPTIONS 2597 +#define SCI_SETRECTANGULARSELECTIONMODIFIER 2598 +#define SCI_GETRECTANGULARSELECTIONMODIFIER 2599 +#define SCI_SETADDITIONALSELFORE 2600 +#define SCI_SETADDITIONALSELBACK 2601 +#define SCI_SETADDITIONALSELALPHA 2602 +#define SCI_GETADDITIONALSELALPHA 2603 +#define SCI_SETADDITIONALCARETFORE 2604 +#define SCI_GETADDITIONALCARETFORE 2605 +#define SCI_ROTATESELECTION 2606 +#define SCI_SWAPMAINANCHORCARET 2607 +#define SCI_CHANGELEXERSTATE 2617 +#define SCI_CONTRACTEDFOLDNEXT 2618 +#define SCI_VERTICALCENTRECARET 2619 +#define SCI_MOVESELECTEDLINESUP 2620 +#define SCI_MOVESELECTEDLINESDOWN 2621 +#define SCI_SETIDENTIFIER 2622 +#define SCI_GETIDENTIFIER 2623 +#define SCI_RGBAIMAGESETWIDTH 2624 +#define SCI_RGBAIMAGESETHEIGHT 2625 +#define SCI_RGBAIMAGESETSCALE 2651 +#define SCI_MARKERDEFINERGBAIMAGE 2626 +#define SCI_REGISTERRGBAIMAGE 2627 +#define SCI_SCROLLTOSTART 2628 +#define SCI_SCROLLTOEND 2629 +#define SC_TECHNOLOGY_DEFAULT 0 +#define SC_TECHNOLOGY_DIRECTWRITE 1 +#define SCI_SETTECHNOLOGY 2630 +#define SCI_GETTECHNOLOGY 2631 +#define SCI_CREATELOADER 2632 +#define SCI_FINDINDICATORSHOW 2640 +#define SCI_FINDINDICATORFLASH 2641 +#define SCI_FINDINDICATORHIDE 2642 +#define SCI_VCHOMEDISPLAY 2652 +#define SCI_VCHOMEDISPLAYEXTEND 2653 +#define SCI_GETCARETLINEVISIBLEALWAYS 2654 +#define SCI_SETCARETLINEVISIBLEALWAYS 2655 +#define SCI_SETREPRESENTATION 2665 +#define SCI_GETREPRESENTATION 2666 +#define SCI_CLEARREPRESENTATION 2667 +#define SCI_STARTRECORD 3001 +#define SCI_STOPRECORD 3002 +#define SCI_SETLEXER 4001 +#define SCI_GETLEXER 4002 +#define SCI_COLOURISE 4003 +#define SCI_SETPROPERTY 4004 +#define KEYWORDSET_MAX 8 +#define SCI_SETKEYWORDS 4005 +#define SCI_SETLEXERLANGUAGE 4006 +#define SCI_LOADLEXERLIBRARY 4007 +#define SCI_GETPROPERTY 4008 +#define SCI_GETPROPERTYEXPANDED 4009 +#define SCI_GETPROPERTYINT 4010 +#define SCI_GETSTYLEBITSNEEDED 4011 +#define SCI_GETLEXERLANGUAGE 4012 +#define SCI_PRIVATELEXERCALL 4013 +#define SCI_PROPERTYNAMES 4014 +#define SC_TYPE_BOOLEAN 0 +#define SC_TYPE_INTEGER 1 +#define SC_TYPE_STRING 2 +#define SCI_PROPERTYTYPE 4015 +#define SCI_DESCRIBEPROPERTY 4016 +#define SCI_DESCRIBEKEYWORDSETS 4017 +#define SC_MOD_INSERTTEXT 0x1 +#define SC_MOD_DELETETEXT 0x2 +#define SC_MOD_CHANGESTYLE 0x4 +#define SC_MOD_CHANGEFOLD 0x8 +#define SC_PERFORMED_USER 0x10 +#define SC_PERFORMED_UNDO 0x20 +#define SC_PERFORMED_REDO 0x40 +#define SC_MULTISTEPUNDOREDO 0x80 +#define SC_LASTSTEPINUNDOREDO 0x100 +#define SC_MOD_CHANGEMARKER 0x200 +#define SC_MOD_BEFOREINSERT 0x400 +#define SC_MOD_BEFOREDELETE 0x800 +#define SC_MULTILINEUNDOREDO 0x1000 +#define SC_STARTACTION 0x2000 +#define SC_MOD_CHANGEINDICATOR 0x4000 +#define SC_MOD_CHANGELINESTATE 0x8000 +#define SC_MOD_CHANGEMARGIN 0x10000 +#define SC_MOD_CHANGEANNOTATION 0x20000 +#define SC_MOD_CONTAINER 0x40000 +#define SC_MOD_LEXERSTATE 0x80000 +#define SC_MODEVENTMASKALL 0xFFFFF +#define SC_UPDATE_CONTENT 0x1 +#define SC_UPDATE_SELECTION 0x2 +#define SC_UPDATE_V_SCROLL 0x4 +#define SC_UPDATE_H_SCROLL 0x8 +#define SCEN_CHANGE 768 +#define SCEN_SETFOCUS 512 +#define SCEN_KILLFOCUS 256 +#define SCK_DOWN 300 +#define SCK_UP 301 +#define SCK_LEFT 302 +#define SCK_RIGHT 303 +#define SCK_HOME 304 +#define SCK_END 305 +#define SCK_PRIOR 306 +#define SCK_NEXT 307 +#define SCK_DELETE 308 +#define SCK_INSERT 309 +#define SCK_ESCAPE 7 +#define SCK_BACK 8 +#define SCK_TAB 9 +#define SCK_RETURN 13 +#define SCK_ADD 310 +#define SCK_SUBTRACT 311 +#define SCK_DIVIDE 312 +#define SCK_WIN 313 +#define SCK_RWIN 314 +#define SCK_MENU 315 +#define SCMOD_NORM 0 +#define SCMOD_SHIFT 1 +#define SCMOD_CTRL 2 +#define SCMOD_ALT 4 +#define SCMOD_SUPER 8 +#define SCMOD_META 16 +#define SCN_STYLENEEDED 2000 +#define SCN_CHARADDED 2001 +#define SCN_SAVEPOINTREACHED 2002 +#define SCN_SAVEPOINTLEFT 2003 +#define SCN_MODIFYATTEMPTRO 2004 +#define SCN_KEY 2005 +#define SCN_DOUBLECLICK 2006 +#define SCN_UPDATEUI 2007 +#define SCN_MODIFIED 2008 +#define SCN_MACRORECORD 2009 +#define SCN_MARGINCLICK 2010 +#define SCN_NEEDSHOWN 2011 +#define SCN_PAINTED 2013 +#define SCN_USERLISTSELECTION 2014 +#define SCN_URIDROPPED 2015 +#define SCN_DWELLSTART 2016 +#define SCN_DWELLEND 2017 +#define SCN_ZOOM 2018 +#define SCN_HOTSPOTCLICK 2019 +#define SCN_HOTSPOTDOUBLECLICK 2020 +#define SCN_CALLTIPCLICK 2021 +#define SCN_AUTOCSELECTION 2022 +#define SCN_INDICATORCLICK 2023 +#define SCN_INDICATORRELEASE 2024 +#define SCN_AUTOCCANCELLED 2025 +#define SCN_AUTOCCHARDELETED 2026 +#define SCN_HOTSPOTRELEASECLICK 2027 +#define SCN_FOCUSIN 2028 +#define SCN_FOCUSOUT 2029 +#ifndef SCI_DISABLE_PROVISIONAL +#define SC_LINE_END_TYPE_DEFAULT 0 +#define SC_LINE_END_TYPE_UNICODE 1 +#define SCI_SETLINEENDTYPESALLOWED 2656 +#define SCI_GETLINEENDTYPESALLOWED 2657 +#define SCI_GETLINEENDTYPESACTIVE 2658 +#define SCI_GETLINEENDTYPESSUPPORTED 4018 +#define SCI_ALLOCATESUBSTYLES 4020 +#define SCI_GETSUBSTYLESSTART 4021 +#define SCI_GETSUBSTYLESLENGTH 4022 +#define SCI_GETSTYLEFROMSUBSTYLE 4027 +#define SCI_GETPRIMARYSTYLEFROMSTYLE 4028 +#define SCI_FREESUBSTYLES 4023 +#define SCI_SETIDENTIFIERS 4024 +#define SCI_DISTANCETOSECONDARYSTYLES 4025 +#define SCI_GETSUBSTYLEBASES 4026 +#endif +/* --Autogenerated -- end of section automatically generated from Scintilla.iface */ + +/* These structures are defined to be exactly the same shape as the Win32 + * CHARRANGE, TEXTRANGE, FINDTEXTEX, FORMATRANGE, and NMHDR structs. + * So older code that treats Scintilla as a RichEdit will work. */ + +#ifdef SCI_NAMESPACE +namespace Scintilla { +#endif + +struct Sci_CharacterRange { + long cpMin; + long cpMax; +}; + +struct Sci_TextRange { + struct Sci_CharacterRange chrg; + char *lpstrText; +}; + +struct Sci_TextToFind { + struct Sci_CharacterRange chrg; + char *lpstrText; + struct Sci_CharacterRange chrgText; +}; + +#define CharacterRange Sci_CharacterRange +#define TextRange Sci_TextRange +#define TextToFind Sci_TextToFind + +typedef void *Sci_SurfaceID; + +struct Sci_Rectangle { + int left; + int top; + int right; + int bottom; +}; + +/* This structure is used in printing and requires some of the graphics types + * from Platform.h. Not needed by most client code. */ + +struct Sci_RangeToFormat { + Sci_SurfaceID hdc; + Sci_SurfaceID hdcTarget; + struct Sci_Rectangle rc; + struct Sci_Rectangle rcPage; + struct Sci_CharacterRange chrg; +}; + +#define RangeToFormat Sci_RangeToFormat + +struct Sci_NotifyHeader { + /* Compatible with Windows NMHDR. + * hwndFrom is really an environment specific window handle or pointer + * but most clients of Scintilla.h do not have this type visible. */ + void *hwndFrom; + uptr_t idFrom; + unsigned int code; +}; + +#define NotifyHeader Sci_NotifyHeader + +struct SCNotification { + struct Sci_NotifyHeader nmhdr; + int position; + /* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, */ + /* SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, */ + /* SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, */ + /* SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */ + /* SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */ + + int ch; /* SCN_CHARADDED, SCN_KEY */ + int modifiers; + /* SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, */ + /* SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */ + + int modificationType; /* SCN_MODIFIED */ + const char *text; + /* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION, SCN_URIDROPPED */ + + int length; /* SCN_MODIFIED */ + int linesAdded; /* SCN_MODIFIED */ + int message; /* SCN_MACRORECORD */ + uptr_t wParam; /* SCN_MACRORECORD */ + sptr_t lParam; /* SCN_MACRORECORD */ + int line; /* SCN_MODIFIED */ + int foldLevelNow; /* SCN_MODIFIED */ + int foldLevelPrev; /* SCN_MODIFIED */ + int margin; /* SCN_MARGINCLICK */ + int listType; /* SCN_USERLISTSELECTION */ + int x; /* SCN_DWELLSTART, SCN_DWELLEND */ + int y; /* SCN_DWELLSTART, SCN_DWELLEND */ + int token; /* SCN_MODIFIED with SC_MOD_CONTAINER */ + int annotationLinesAdded; /* SCN_MODIFIED with SC_MOD_CHANGEANNOTATION */ + int updated; /* SCN_UPDATEUI */ +}; + +#ifdef SCI_NAMESPACE +} +#endif + +#ifdef INCLUDE_DEPRECATED_FEATURES + +#define SC_CP_DBCS 1 +#define SCI_SETUSEPALETTE 2039 +#define SCI_GETUSEPALETTE 2139 + +#endif + +#endif diff --git a/include/Scintilla.iface b/include/Scintilla.iface new file mode 100644 index 0000000..d1cc6af --- /dev/null +++ b/include/Scintilla.iface @@ -0,0 +1,4464 @@ +## First line may be used for shbang + +## This file defines the interface to Scintilla + +## Copyright 2000-2003 by Neil Hodgson +## The License.txt file describes the conditions under which this software may be distributed. + +## A line starting with ## is a pure comment and should be stripped by readers. +## A line starting with #! is for future shbang use +## A line starting with # followed by a space is a documentation comment and refers +## to the next feature definition. + +## Each feature is defined by a line starting with fun, get, set, val or evt. +## cat -> start a category +## fun -> a function +## get -> a property get function +## set -> a property set function +## val -> definition of a constant +## evt -> an event +## enu -> associate an enumeration with a set of vals with a prefix +## lex -> associate a lexer with the lexical classes it produces +## +## All other feature names should be ignored. They may be defined in the future. +## A property may have a set function, a get function or both. Each will have +## "Get" or "Set" in their names and the corresponding name will have the obvious switch. +## A property may be subscripted, in which case the first parameter is the subscript. +## fun, get, and set features have a strict syntax: +## [=,) +## where stands for white space. +## param may be empty (null value) or is [=] +## Additional white space is allowed between elements. +## The syntax for evt is [=[,]*]) +## Feature names that contain an underscore are defined by Windows, so in these +## cases, using the Windows definition is preferred where available. +## The feature numbers are stable so features will not be renumbered. +## Features may be removed but they will go through a period of deprecation +## before removal which is signalled by moving them into the Deprecated category. +## +## enu has the syntax enu=[]* where all the val +## features in this file starting with a given are considered part of the +## enumeration. +## +## lex has the syntax lex=[]* +## where name is a reasonably capitalised (Python, XML) identifier or UI name, +## lexerVal is the val used to specify the lexer, and the list of prefixes is similar +## to enu. The name may not be the same as that used within the lexer so the lexerVal +## should be used to tie these entities together. + +## Types: +## void +## int +## bool -> integer, 1=true, 0=false +## position -> integer position in a document +## colour -> colour integer containing red, green and blue bytes. +## string -> pointer to const character +## stringresult -> pointer to character, NULL-> return size of result +## cells -> pointer to array of cells, each cell containing a style byte and character byte +## textrange -> range of a min and a max position with an output string +## findtext -> searchrange, text -> foundposition +## keymod -> integer containing key in low half and modifiers in high half +## formatrange +## Types no longer used: +## findtextex -> searchrange +## charrange -> range of a min and a max position +## charrangeresult -> like charrange, but output param +## countedstring +## point -> x,y +## pointresult -> like point, but output param +## rectangle -> left,top,right,bottom +## Client code should ignore definitions containing types it does not understand, except +## for possibly #defining the constants + +## Line numbers and positions start at 0. +## String arguments may contain NUL ('\0') characters where the calls provide a length +## argument and retrieve NUL characters. All retrieved strings except for those retrieved +## by GetLine also have a NUL appended but client code should calculate the size that +## will be returned rather than relying upon the NUL whenever possible. Allow for the +## extra NUL character when allocating buffers. The size to allocate for a stringresult +## can be determined by calling with a NULL (0) pointer. + +cat Basics + +################################################ +## For Scintilla.h +val INVALID_POSITION=-1 +# Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages +# as many EM_ messages can be used although that use is deprecated. +val SCI_START=2000 +val SCI_OPTIONAL_START=3000 +val SCI_LEXER_START=4000 + +# Add text to the document at current position. +fun void AddText=2001(int length, string text) + +# Add array of cells to document. +fun void AddStyledText=2002(int length, cells c) + +# Insert string at a position. +fun void InsertText=2003(position pos, string text) + +# Delete all text in the document. +fun void ClearAll=2004(,) + +# Delete a range of text in the document. +fun void DeleteRange=2645(position pos, int deleteLength) + +# Set all style bytes to 0, remove all folding information. +fun void ClearDocumentStyle=2005(,) + +# Returns the number of bytes in the document. +get int GetLength=2006(,) + +# Returns the character byte at the position. +get int GetCharAt=2007(position pos,) + +# Returns the position of the caret. +get position GetCurrentPos=2008(,) + +# Returns the position of the opposite end of the selection to the caret. +get position GetAnchor=2009(,) + +# Returns the style byte at the position. +get int GetStyleAt=2010(position pos,) + +# Redoes the next action on the undo history. +fun void Redo=2011(,) + +# Choose between collecting actions into the undo +# history and discarding them. +set void SetUndoCollection=2012(bool collectUndo,) + +# Select all the text in the document. +fun void SelectAll=2013(,) + +# Remember the current position in the undo history as the position +# at which the document was saved. +fun void SetSavePoint=2014(,) + +# Retrieve a buffer of cells. +# Returns the number of bytes in the buffer not including terminating NULs. +fun int GetStyledText=2015(, textrange tr) + +# Are there any redoable actions in the undo history? +fun bool CanRedo=2016(,) + +# Retrieve the line number at which a particular marker is located. +fun int MarkerLineFromHandle=2017(int handle,) + +# Delete a marker. +fun void MarkerDeleteHandle=2018(int handle,) + +# Is undo history being collected? +get bool GetUndoCollection=2019(,) + +enu WhiteSpace=SCWS_ +val SCWS_INVISIBLE=0 +val SCWS_VISIBLEALWAYS=1 +val SCWS_VISIBLEAFTERINDENT=2 + +# Are white space characters currently visible? +# Returns one of SCWS_* constants. +get int GetViewWS=2020(,) + +# Make white space characters invisible, always visible or visible outside indentation. +set void SetViewWS=2021(int viewWS,) + +# Find the position from a point within the window. +fun position PositionFromPoint=2022(int x, int y) + +# Find the position from a point within the window but return +# INVALID_POSITION if not close to text. +fun position PositionFromPointClose=2023(int x, int y) + +# Set caret to start of a line and ensure it is visible. +fun void GotoLine=2024(int line,) + +# Set caret to a position and ensure it is visible. +fun void GotoPos=2025(position pos,) + +# Set the selection anchor to a position. The anchor is the opposite +# end of the selection from the caret. +set void SetAnchor=2026(position posAnchor,) + +# Retrieve the text of the line containing the caret. +# Returns the index of the caret on the line. +fun int GetCurLine=2027(int length, stringresult text) + +# Retrieve the position of the last correctly styled character. +get position GetEndStyled=2028(,) + +enu EndOfLine=SC_EOL_ +val SC_EOL_CRLF=0 +val SC_EOL_CR=1 +val SC_EOL_LF=2 + +# Convert all line endings in the document to one mode. +fun void ConvertEOLs=2029(int eolMode,) + +# Retrieve the current end of line mode - one of CRLF, CR, or LF. +get int GetEOLMode=2030(,) + +# Set the current end of line mode. +set void SetEOLMode=2031(int eolMode,) + +# Set the current styling position to pos and the styling mask to mask. +# The styling mask can be used to protect some bits in each styling byte from modification. +fun void StartStyling=2032(position pos, int mask) + +# Change style from current styling position for length characters to a style +# and move the current styling position to after this newly styled segment. +fun void SetStyling=2033(int length, int style) + +# Is drawing done first into a buffer or direct to the screen? +get bool GetBufferedDraw=2034(,) + +# If drawing is buffered then each line of text is drawn into a bitmap buffer +# before drawing it to the screen to avoid flicker. +set void SetBufferedDraw=2035(bool buffered,) + +# Change the visible size of a tab to be a multiple of the width of a space character. +set void SetTabWidth=2036(int tabWidth,) + +# Retrieve the visible size of a tab. +get int GetTabWidth=2121(,) + +# The SC_CP_UTF8 value can be used to enter Unicode mode. +# This is the same value as CP_UTF8 in Windows +val SC_CP_UTF8=65001 + +# Set the code page used to interpret the bytes of the document as characters. +# The SC_CP_UTF8 value can be used to enter Unicode mode. +set void SetCodePage=2037(int codePage,) + +enu MarkerSymbol=SC_MARK_ +val MARKER_MAX=31 +val SC_MARK_CIRCLE=0 +val SC_MARK_ROUNDRECT=1 +val SC_MARK_ARROW=2 +val SC_MARK_SMALLRECT=3 +val SC_MARK_SHORTARROW=4 +val SC_MARK_EMPTY=5 +val SC_MARK_ARROWDOWN=6 +val SC_MARK_MINUS=7 +val SC_MARK_PLUS=8 + +# Shapes used for outlining column. +val SC_MARK_VLINE=9 +val SC_MARK_LCORNER=10 +val SC_MARK_TCORNER=11 +val SC_MARK_BOXPLUS=12 +val SC_MARK_BOXPLUSCONNECTED=13 +val SC_MARK_BOXMINUS=14 +val SC_MARK_BOXMINUSCONNECTED=15 +val SC_MARK_LCORNERCURVE=16 +val SC_MARK_TCORNERCURVE=17 +val SC_MARK_CIRCLEPLUS=18 +val SC_MARK_CIRCLEPLUSCONNECTED=19 +val SC_MARK_CIRCLEMINUS=20 +val SC_MARK_CIRCLEMINUSCONNECTED=21 + +# Invisible mark that only sets the line background colour. +val SC_MARK_BACKGROUND=22 +val SC_MARK_DOTDOTDOT=23 +val SC_MARK_ARROWS=24 +val SC_MARK_PIXMAP=25 +val SC_MARK_FULLRECT=26 +val SC_MARK_LEFTRECT=27 +val SC_MARK_AVAILABLE=28 +val SC_MARK_UNDERLINE=29 +val SC_MARK_RGBAIMAGE=30 + +val SC_MARK_CHARACTER=10000 + +enu MarkerOutline=SC_MARKNUM_ +# Markers used for outlining column. +val SC_MARKNUM_FOLDEREND=25 +val SC_MARKNUM_FOLDEROPENMID=26 +val SC_MARKNUM_FOLDERMIDTAIL=27 +val SC_MARKNUM_FOLDERTAIL=28 +val SC_MARKNUM_FOLDERSUB=29 +val SC_MARKNUM_FOLDER=30 +val SC_MARKNUM_FOLDEROPEN=31 + +val SC_MASK_FOLDERS=0xFE000000 + +# Set the symbol used for a particular marker number. +fun void MarkerDefine=2040(int markerNumber, int markerSymbol) + +# Set the foreground colour used for a particular marker number. +set void MarkerSetFore=2041(int markerNumber, colour fore) + +# Set the background colour used for a particular marker number. +set void MarkerSetBack=2042(int markerNumber, colour back) + +# Set the background colour used for a particular marker number when its folding block is selected. +set void MarkerSetBackSelected=2292(int markerNumber, colour back) + +# Enable/disable highlight for current folding bloc (smallest one that contains the caret) +fun void MarkerEnableHighlight=2293(bool enabled,) + +# Add a marker to a line, returning an ID which can be used to find or delete the marker. +fun int MarkerAdd=2043(int line, int markerNumber) + +# Delete a marker from a line. +fun void MarkerDelete=2044(int line, int markerNumber) + +# Delete all markers with a particular number from all lines. +fun void MarkerDeleteAll=2045(int markerNumber,) + +# Get a bit mask of all the markers set on a line. +fun int MarkerGet=2046(int line,) + +# Find the next line at or after lineStart that includes a marker in mask. +# Return -1 when no more lines. +fun int MarkerNext=2047(int lineStart, int markerMask) + +# Find the previous line before lineStart that includes a marker in mask. +fun int MarkerPrevious=2048(int lineStart, int markerMask) + +# Define a marker from a pixmap. +fun void MarkerDefinePixmap=2049(int markerNumber, string pixmap) + +# Add a set of markers to a line. +fun void MarkerAddSet=2466(int line, int set) + +# Set the alpha used for a marker that is drawn in the text area, not the margin. +set void MarkerSetAlpha=2476(int markerNumber, int alpha) + +val SC_MAX_MARGIN=4 + +enu MarginType=SC_MARGIN_ +val SC_MARGIN_SYMBOL=0 +val SC_MARGIN_NUMBER=1 +val SC_MARGIN_BACK=2 +val SC_MARGIN_FORE=3 +val SC_MARGIN_TEXT=4 +val SC_MARGIN_RTEXT=5 + +# Set a margin to be either numeric or symbolic. +set void SetMarginTypeN=2240(int margin, int marginType) + +# Retrieve the type of a margin. +get int GetMarginTypeN=2241(int margin,) + +# Set the width of a margin to a width expressed in pixels. +set void SetMarginWidthN=2242(int margin, int pixelWidth) + +# Retrieve the width of a margin in pixels. +get int GetMarginWidthN=2243(int margin,) + +# Set a mask that determines which markers are displayed in a margin. +set void SetMarginMaskN=2244(int margin, int mask) + +# Retrieve the marker mask of a margin. +get int GetMarginMaskN=2245(int margin,) + +# Make a margin sensitive or insensitive to mouse clicks. +set void SetMarginSensitiveN=2246(int margin, bool sensitive) + +# Retrieve the mouse click sensitivity of a margin. +get bool GetMarginSensitiveN=2247(int margin,) + +# Set the cursor shown when the mouse is inside a margin. +set void SetMarginCursorN=2248(int margin, int cursor) + +# Retrieve the cursor shown in a margin. +get int GetMarginCursorN=2249(int margin,) + +# Styles in range 32..38 are predefined for parts of the UI and are not used as normal styles. +# Style 39 is for future use. +enu StylesCommon=STYLE_ +val STYLE_DEFAULT=32 +val STYLE_LINENUMBER=33 +val STYLE_BRACELIGHT=34 +val STYLE_BRACEBAD=35 +val STYLE_CONTROLCHAR=36 +val STYLE_INDENTGUIDE=37 +val STYLE_CALLTIP=38 +val STYLE_LASTPREDEFINED=39 +val STYLE_MAX=255 + +# Character set identifiers are used in StyleSetCharacterSet. +# The values are the same as the Windows *_CHARSET values. +enu CharacterSet=SC_CHARSET_ +val SC_CHARSET_ANSI=0 +val SC_CHARSET_DEFAULT=1 +val SC_CHARSET_BALTIC=186 +val SC_CHARSET_CHINESEBIG5=136 +val SC_CHARSET_EASTEUROPE=238 +val SC_CHARSET_GB2312=134 +val SC_CHARSET_GREEK=161 +val SC_CHARSET_HANGUL=129 +val SC_CHARSET_MAC=77 +val SC_CHARSET_OEM=255 +val SC_CHARSET_RUSSIAN=204 +val SC_CHARSET_CYRILLIC=1251 +val SC_CHARSET_SHIFTJIS=128 +val SC_CHARSET_SYMBOL=2 +val SC_CHARSET_TURKISH=162 +val SC_CHARSET_JOHAB=130 +val SC_CHARSET_HEBREW=177 +val SC_CHARSET_ARABIC=178 +val SC_CHARSET_VIETNAMESE=163 +val SC_CHARSET_THAI=222 +val SC_CHARSET_8859_15=1000 + +# Clear all the styles and make equivalent to the global default style. +fun void StyleClearAll=2050(,) + +# Set the foreground colour of a style. +set void StyleSetFore=2051(int style, colour fore) + +# Set the background colour of a style. +set void StyleSetBack=2052(int style, colour back) + +# Set a style to be bold or not. +set void StyleSetBold=2053(int style, bool bold) + +# Set a style to be italic or not. +set void StyleSetItalic=2054(int style, bool italic) + +# Set the size of characters of a style. +set void StyleSetSize=2055(int style, int sizePoints) + +# Set the font of a style. +set void StyleSetFont=2056(int style, string fontName) + +# Set a style to have its end of line filled or not. +set void StyleSetEOLFilled=2057(int style, bool filled) + +# Reset the default style to its state at startup +fun void StyleResetDefault=2058(,) + +# Set a style to be underlined or not. +set void StyleSetUnderline=2059(int style, bool underline) + +enu CaseVisible=SC_CASE_ +val SC_CASE_MIXED=0 +val SC_CASE_UPPER=1 +val SC_CASE_LOWER=2 + +# Get the foreground colour of a style. +get colour StyleGetFore=2481(int style,) + +# Get the background colour of a style. +get colour StyleGetBack=2482(int style,) + +# Get is a style bold or not. +get bool StyleGetBold=2483(int style,) + +# Get is a style italic or not. +get bool StyleGetItalic=2484(int style,) + +# Get the size of characters of a style. +get int StyleGetSize=2485(int style,) + +# Get the font of a style. +# Returns the length of the fontName +get int StyleGetFont=2486(int style, stringresult fontName) + +# Get is a style to have its end of line filled or not. +get bool StyleGetEOLFilled=2487(int style,) + +# Get is a style underlined or not. +get bool StyleGetUnderline=2488(int style,) + +# Get is a style mixed case, or to force upper or lower case. +get int StyleGetCase=2489(int style,) + +# Get the character get of the font in a style. +get int StyleGetCharacterSet=2490(int style,) + +# Get is a style visible or not. +get bool StyleGetVisible=2491(int style,) + +# Get is a style changeable or not (read only). +# Experimental feature, currently buggy. +get bool StyleGetChangeable=2492(int style,) + +# Get is a style a hotspot or not. +get bool StyleGetHotSpot=2493(int style,) + +# Set a style to be mixed case, or to force upper or lower case. +set void StyleSetCase=2060(int style, int caseForce) + +val SC_FONT_SIZE_MULTIPLIER=100 + +# Set the size of characters of a style. Size is in points multiplied by 100. +set void StyleSetSizeFractional=2061(int style, int caseForce) + +# Get the size of characters of a style in points multiplied by 100 +get int StyleGetSizeFractional=2062(int style,) + +enu FontWeight=SC_WEIGHT_ +val SC_WEIGHT_NORMAL=400 +val SC_WEIGHT_SEMIBOLD=600 +val SC_WEIGHT_BOLD=700 + +# Set the weight of characters of a style. +set void StyleSetWeight=2063(int style, int weight) + +# Get the weight of characters of a style. +get int StyleGetWeight=2064(int style,) + +# Set the character set of the font in a style. +set void StyleSetCharacterSet=2066(int style, int characterSet) + +# Set a style to be a hotspot or not. +set void StyleSetHotSpot=2409(int style, bool hotspot) + +# Set the foreground colour of the main and additional selections and whether to use this setting. +fun void SetSelFore=2067(bool useSetting, colour fore) + +# Set the background colour of the main and additional selections and whether to use this setting. +fun void SetSelBack=2068(bool useSetting, colour back) + +# Get the alpha of the selection. +get int GetSelAlpha=2477(,) + +# Set the alpha of the selection. +set void SetSelAlpha=2478(int alpha,) + +# Is the selection end of line filled? +get bool GetSelEOLFilled=2479(,) + +# Set the selection to have its end of line filled or not. +set void SetSelEOLFilled=2480(bool filled,) + +# Set the foreground colour of the caret. +set void SetCaretFore=2069(colour fore,) + +# When key+modifier combination km is pressed perform msg. +fun void AssignCmdKey=2070(keymod km, int msg) + +# When key+modifier combination km is pressed do nothing. +fun void ClearCmdKey=2071(keymod km,) + +# Drop all key mappings. +fun void ClearAllCmdKeys=2072(,) + +# Set the styles for a segment of the document. +fun void SetStylingEx=2073(int length, string styles) + +# Set a style to be visible or not. +set void StyleSetVisible=2074(int style, bool visible) + +# Get the time in milliseconds that the caret is on and off. +get int GetCaretPeriod=2075(,) + +# Get the time in milliseconds that the caret is on and off. 0 = steady on. +set void SetCaretPeriod=2076(int periodMilliseconds,) + +# Set the set of characters making up words for when moving or selecting by word. +# First sets defaults like SetCharsDefault. +set void SetWordChars=2077(, string characters) + +# Get the set of characters making up words for when moving or selecting by word. +# Retuns the number of characters +get int GetWordChars=2646(, stringresult characters) + +# Start a sequence of actions that is undone and redone as a unit. +# May be nested. +fun void BeginUndoAction=2078(,) + +# End a sequence of actions that is undone and redone as a unit. +fun void EndUndoAction=2079(,) + +# Indicator style enumeration and some constants +enu IndicatorStyle=INDIC_ +val INDIC_PLAIN=0 +val INDIC_SQUIGGLE=1 +val INDIC_TT=2 +val INDIC_DIAGONAL=3 +val INDIC_STRIKE=4 +val INDIC_HIDDEN=5 +val INDIC_BOX=6 +val INDIC_ROUNDBOX=7 +val INDIC_STRAIGHTBOX=8 +val INDIC_DASH=9 +val INDIC_DOTS=10 +val INDIC_SQUIGGLELOW=11 +val INDIC_DOTBOX=12 +val INDIC_SQUIGGLEPIXMAP=13 +val INDIC_COMPOSITIONTHICK=14 +val INDIC_MAX=31 +val INDIC_CONTAINER=8 +val INDIC0_MASK=0x20 +val INDIC1_MASK=0x40 +val INDIC2_MASK=0x80 +val INDICS_MASK=0xE0 + +# Set an indicator to plain, squiggle or TT. +set void IndicSetStyle=2080(int indic, int style) + +# Retrieve the style of an indicator. +get int IndicGetStyle=2081(int indic,) + +# Set the foreground colour of an indicator. +set void IndicSetFore=2082(int indic, colour fore) + +# Retrieve the foreground colour of an indicator. +get colour IndicGetFore=2083(int indic,) + +# Set an indicator to draw under text or over(default). +set void IndicSetUnder=2510(int indic, bool under) + +# Retrieve whether indicator drawn under or over text. +get bool IndicGetUnder=2511(int indic,) + +# Set the foreground colour of all whitespace and whether to use this setting. +fun void SetWhitespaceFore=2084(bool useSetting, colour fore) + +# Set the background colour of all whitespace and whether to use this setting. +fun void SetWhitespaceBack=2085(bool useSetting, colour back) + +# Set the size of the dots used to mark space characters. +set void SetWhitespaceSize=2086(int size,) + +# Get the size of the dots used to mark space characters. +get int GetWhitespaceSize=2087(,) + +# Divide each styling byte into lexical class bits (default: 5) and indicator +# bits (default: 3). If a lexer requires more than 32 lexical states, then this +# is used to expand the possible states. +set void SetStyleBits=2090(int bits,) + +# Retrieve number of bits in style bytes used to hold the lexical state. +get int GetStyleBits=2091(,) + +# Used to hold extra styling information for each line. +set void SetLineState=2092(int line, int state) + +# Retrieve the extra styling information for a line. +get int GetLineState=2093(int line,) + +# Retrieve the last line number that has line state. +get int GetMaxLineState=2094(,) + +# Is the background of the line containing the caret in a different colour? +get bool GetCaretLineVisible=2095(,) + +# Display the background of the line containing the caret in a different colour. +set void SetCaretLineVisible=2096(bool show,) + +# Get the colour of the background of the line containing the caret. +get colour GetCaretLineBack=2097(,) + +# Set the colour of the background of the line containing the caret. +set void SetCaretLineBack=2098(colour back,) + +# Set a style to be changeable or not (read only). +# Experimental feature, currently buggy. +set void StyleSetChangeable=2099(int style, bool changeable) + +# Display a auto-completion list. +# The lenEntered parameter indicates how many characters before +# the caret should be used to provide context. +fun void AutoCShow=2100(int lenEntered, string itemList) + +# Remove the auto-completion list from the screen. +fun void AutoCCancel=2101(,) + +# Is there an auto-completion list visible? +fun bool AutoCActive=2102(,) + +# Retrieve the position of the caret when the auto-completion list was displayed. +fun position AutoCPosStart=2103(,) + +# User has selected an item so remove the list and insert the selection. +fun void AutoCComplete=2104(,) + +# Define a set of character that when typed cancel the auto-completion list. +fun void AutoCStops=2105(, string characterSet) + +# Change the separator character in the string setting up an auto-completion list. +# Default is space but can be changed if items contain space. +set void AutoCSetSeparator=2106(int separatorCharacter,) + +# Retrieve the auto-completion list separator character. +get int AutoCGetSeparator=2107(,) + +# Select the item in the auto-completion list that starts with a string. +fun void AutoCSelect=2108(, string text) + +# Should the auto-completion list be cancelled if the user backspaces to a +# position before where the box was created. +set void AutoCSetCancelAtStart=2110(bool cancel,) + +# Retrieve whether auto-completion cancelled by backspacing before start. +get bool AutoCGetCancelAtStart=2111(,) + +# Define a set of characters that when typed will cause the autocompletion to +# choose the selected item. +set void AutoCSetFillUps=2112(, string characterSet) + +# Should a single item auto-completion list automatically choose the item. +set void AutoCSetChooseSingle=2113(bool chooseSingle,) + +# Retrieve whether a single item auto-completion list automatically choose the item. +get bool AutoCGetChooseSingle=2114(,) + +# Set whether case is significant when performing auto-completion searches. +set void AutoCSetIgnoreCase=2115(bool ignoreCase,) + +# Retrieve state of ignore case flag. +get bool AutoCGetIgnoreCase=2116(,) + +# Display a list of strings and send notification when user chooses one. +fun void UserListShow=2117(int listType, string itemList) + +# Set whether or not autocompletion is hidden automatically when nothing matches. +set void AutoCSetAutoHide=2118(bool autoHide,) + +# Retrieve whether or not autocompletion is hidden automatically when nothing matches. +get bool AutoCGetAutoHide=2119(,) + +# Set whether or not autocompletion deletes any word characters +# after the inserted text upon completion. +set void AutoCSetDropRestOfWord=2270(bool dropRestOfWord,) + +# Retrieve whether or not autocompletion deletes any word characters +# after the inserted text upon completion. +get bool AutoCGetDropRestOfWord=2271(,) + +# Register an XPM image for use in autocompletion lists. +fun void RegisterImage=2405(int type, string xpmData) + +# Clear all the registered XPM images. +fun void ClearRegisteredImages=2408(,) + +# Retrieve the auto-completion list type-separator character. +get int AutoCGetTypeSeparator=2285(,) + +# Change the type-separator character in the string setting up an auto-completion list. +# Default is '?' but can be changed if items contain '?'. +set void AutoCSetTypeSeparator=2286(int separatorCharacter,) + +# Set the maximum width, in characters, of auto-completion and user lists. +# Set to 0 to autosize to fit longest item, which is the default. +set void AutoCSetMaxWidth=2208(int characterCount,) + +# Get the maximum width, in characters, of auto-completion and user lists. +get int AutoCGetMaxWidth=2209(,) + +# Set the maximum height, in rows, of auto-completion and user lists. +# The default is 5 rows. +set void AutoCSetMaxHeight=2210(int rowCount,) + +# Set the maximum height, in rows, of auto-completion and user lists. +get int AutoCGetMaxHeight=2211(,) + +# Set the number of spaces used for one level of indentation. +set void SetIndent=2122(int indentSize,) + +# Retrieve indentation size. +get int GetIndent=2123(,) + +# Indentation will only use space characters if useTabs is false, otherwise +# it will use a combination of tabs and spaces. +set void SetUseTabs=2124(bool useTabs,) + +# Retrieve whether tabs will be used in indentation. +get bool GetUseTabs=2125(,) + +# Change the indentation of a line to a number of columns. +set void SetLineIndentation=2126(int line, int indentSize) + +# Retrieve the number of columns that a line is indented. +get int GetLineIndentation=2127(int line,) + +# Retrieve the position before the first non indentation character on a line. +get position GetLineIndentPosition=2128(int line,) + +# Retrieve the column number of a position, taking tab width into account. +get int GetColumn=2129(position pos,) + +# Count characters between two positions. +fun int CountCharacters=2633(int startPos, int endPos) + +# Show or hide the horizontal scroll bar. +set void SetHScrollBar=2130(bool show,) +# Is the horizontal scroll bar visible? +get bool GetHScrollBar=2131(,) + +enu IndentView=SC_IV_ +val SC_IV_NONE=0 +val SC_IV_REAL=1 +val SC_IV_LOOKFORWARD=2 +val SC_IV_LOOKBOTH=3 + +# Show or hide indentation guides. +set void SetIndentationGuides=2132(int indentView,) + +# Are the indentation guides visible? +get int GetIndentationGuides=2133(,) + +# Set the highlighted indentation guide column. +# 0 = no highlighted guide. +set void SetHighlightGuide=2134(int column,) + +# Get the highlighted indentation guide column. +get int GetHighlightGuide=2135(,) + +# Get the position after the last visible characters on a line. +get position GetLineEndPosition=2136(int line,) + +# Get the code page used to interpret the bytes of the document as characters. +get int GetCodePage=2137(,) + +# Get the foreground colour of the caret. +get colour GetCaretFore=2138(,) + +# In read-only mode? +get bool GetReadOnly=2140(,) + +# Sets the position of the caret. +set void SetCurrentPos=2141(position pos,) + +# Sets the position that starts the selection - this becomes the anchor. +set void SetSelectionStart=2142(position pos,) + +# Returns the position at the start of the selection. +get position GetSelectionStart=2143(,) + +# Sets the position that ends the selection - this becomes the currentPosition. +set void SetSelectionEnd=2144(position pos,) + +# Returns the position at the end of the selection. +get position GetSelectionEnd=2145(,) + +# Set caret to a position, while removing any existing selection. +fun void SetEmptySelection=2556(position pos,) + +# Sets the print magnification added to the point size of each style for printing. +set void SetPrintMagnification=2146(int magnification,) + +# Returns the print magnification. +get int GetPrintMagnification=2147(,) + +enu PrintOption=SC_PRINT_ +# PrintColourMode - use same colours as screen. +val SC_PRINT_NORMAL=0 +# PrintColourMode - invert the light value of each style for printing. +val SC_PRINT_INVERTLIGHT=1 +# PrintColourMode - force black text on white background for printing. +val SC_PRINT_BLACKONWHITE=2 +# PrintColourMode - text stays coloured, but all background is forced to be white for printing. +val SC_PRINT_COLOURONWHITE=3 +# PrintColourMode - only the default-background is forced to be white for printing. +val SC_PRINT_COLOURONWHITEDEFAULTBG=4 + +# Modify colours when printing for clearer printed text. +set void SetPrintColourMode=2148(int mode,) + +# Returns the print colour mode. +get int GetPrintColourMode=2149(,) + +enu FindOption=SCFIND_ +val SCFIND_WHOLEWORD=2 +val SCFIND_MATCHCASE=4 +val SCFIND_WORDSTART=0x00100000 +val SCFIND_REGEXP=0x00200000 +val SCFIND_POSIX=0x00400000 + +# Find some text in the document. +fun position FindText=2150(int flags, findtext ft) + +# On Windows, will draw the document into a display context such as a printer. +fun position FormatRange=2151(bool draw, formatrange fr) + +# Retrieve the display line at the top of the display. +get int GetFirstVisibleLine=2152(,) + +# Retrieve the contents of a line. +# Returns the length of the line. +fun int GetLine=2153(int line, stringresult text) + +# Returns the number of lines in the document. There is always at least one. +get int GetLineCount=2154(,) + +# Sets the size in pixels of the left margin. +set void SetMarginLeft=2155(, int pixelWidth) + +# Returns the size in pixels of the left margin. +get int GetMarginLeft=2156(,) + +# Sets the size in pixels of the right margin. +set void SetMarginRight=2157(, int pixelWidth) + +# Returns the size in pixels of the right margin. +get int GetMarginRight=2158(,) + +# Is the document different from when it was last saved? +get bool GetModify=2159(,) + +# Select a range of text. +fun void SetSel=2160(position start, position end) + +# Retrieve the selected text. +# Return the length of the text. +fun int GetSelText=2161(, stringresult text) + +# Retrieve a range of text. +# Return the length of the text. +fun int GetTextRange=2162(, textrange tr) + +# Draw the selection in normal style or with selection highlighted. +fun void HideSelection=2163(bool normal,) + +# Retrieve the x value of the point in the window where a position is displayed. +fun int PointXFromPosition=2164(, position pos) + +# Retrieve the y value of the point in the window where a position is displayed. +fun int PointYFromPosition=2165(, position pos) + +# Retrieve the line containing a position. +fun int LineFromPosition=2166(position pos,) + +# Retrieve the position at the start of a line. +fun position PositionFromLine=2167(int line,) + +# Scroll horizontally and vertically. +fun void LineScroll=2168(int columns, int lines) + +# Ensure the caret is visible. +fun void ScrollCaret=2169(,) + +# Scroll the argument positions and the range between them into view giving +# priority to the primary position then the secondary position. +# This may be used to make a search match visible. +fun void ScrollRange=2569(position secondary, position primary) + +# Replace the selected text with the argument text. +fun void ReplaceSel=2170(, string text) + +# Set to read only or read write. +set void SetReadOnly=2171(bool readOnly,) + +# Null operation. +fun void Null=2172(,) + +# Will a paste succeed? +fun bool CanPaste=2173(,) + +# Are there any undoable actions in the undo history? +fun bool CanUndo=2174(,) + +# Delete the undo history. +fun void EmptyUndoBuffer=2175(,) + +# Undo one action in the undo history. +fun void Undo=2176(,) + +# Cut the selection to the clipboard. +fun void Cut=2177(,) + +# Copy the selection to the clipboard. +fun void Copy=2178(,) + +# Paste the contents of the clipboard into the document replacing the selection. +fun void Paste=2179(,) + +# Clear the selection. +fun void Clear=2180(,) + +# Replace the contents of the document with the argument text. +fun void SetText=2181(, string text) + +# Retrieve all the text in the document. +# Returns number of characters retrieved. +fun int GetText=2182(int length, stringresult text) + +# Retrieve the number of characters in the document. +get int GetTextLength=2183(,) + +# Retrieve a pointer to a function that processes messages for this Scintilla. +get int GetDirectFunction=2184(,) + +# Retrieve a pointer value to use as the first argument when calling +# the function returned by GetDirectFunction. +get int GetDirectPointer=2185(,) + +# Set to overtype (true) or insert mode. +set void SetOvertype=2186(bool overtype,) + +# Returns true if overtype mode is active otherwise false is returned. +get bool GetOvertype=2187(,) + +# Set the width of the insert mode caret. +set void SetCaretWidth=2188(int pixelWidth,) + +# Returns the width of the insert mode caret. +get int GetCaretWidth=2189(,) + +# Sets the position that starts the target which is used for updating the +# document without affecting the scroll position. +set void SetTargetStart=2190(position pos,) + +# Get the position that starts the target. +get position GetTargetStart=2191(,) + +# Sets the position that ends the target which is used for updating the +# document without affecting the scroll position. +set void SetTargetEnd=2192(position pos,) + +# Get the position that ends the target. +get position GetTargetEnd=2193(,) + +# Replace the target text with the argument text. +# Text is counted so it can contain NULs. +# Returns the length of the replacement text. +fun int ReplaceTarget=2194(int length, string text) + +# Replace the target text with the argument text after \d processing. +# Text is counted so it can contain NULs. +# Looks for \d where d is between 1 and 9 and replaces these with the strings +# matched in the last search operation which were surrounded by \( and \). +# Returns the length of the replacement text including any change +# caused by processing the \d patterns. +fun int ReplaceTargetRE=2195(int length, string text) + +# Search for a counted string in the target and set the target to the found +# range. Text is counted so it can contain NULs. +# Returns length of range or -1 for failure in which case target is not moved. +fun int SearchInTarget=2197(int length, string text) + +# Set the search flags used by SearchInTarget. +set void SetSearchFlags=2198(int flags,) + +# Get the search flags used by SearchInTarget. +get int GetSearchFlags=2199(,) + +# Show a call tip containing a definition near position pos. +fun void CallTipShow=2200(position pos, string definition) + +# Remove the call tip from the screen. +fun void CallTipCancel=2201(,) + +# Is there an active call tip? +fun bool CallTipActive=2202(,) + +# Retrieve the position where the caret was before displaying the call tip. +fun position CallTipPosStart=2203(,) + +# Highlight a segment of the definition. +fun void CallTipSetHlt=2204(int start, int end) + +# Set the background colour for the call tip. +set void CallTipSetBack=2205(colour back,) + +# Set the foreground colour for the call tip. +set void CallTipSetFore=2206(colour fore,) + +# Set the foreground colour for the highlighted part of the call tip. +set void CallTipSetForeHlt=2207(colour fore,) + +# Enable use of STYLE_CALLTIP and set call tip tab size in pixels. +set void CallTipUseStyle=2212(int tabSize,) + +# Set position of calltip, above or below text. +set void CallTipSetPosition=2213(bool above,) + +# Find the display line of a document line taking hidden lines into account. +fun int VisibleFromDocLine=2220(int line,) + +# Find the document line of a display line taking hidden lines into account. +fun int DocLineFromVisible=2221(int lineDisplay,) + +# The number of display lines needed to wrap a document line +fun int WrapCount=2235(int line,) + +enu FoldLevel=SC_FOLDLEVEL +val SC_FOLDLEVELBASE=0x400 +val SC_FOLDLEVELWHITEFLAG=0x1000 +val SC_FOLDLEVELHEADERFLAG=0x2000 +val SC_FOLDLEVELNUMBERMASK=0x0FFF + +# Set the fold level of a line. +# This encodes an integer level along with flags indicating whether the +# line is a header and whether it is effectively white space. +set void SetFoldLevel=2222(int line, int level) + +# Retrieve the fold level of a line. +get int GetFoldLevel=2223(int line,) + +# Find the last child line of a header line. +get int GetLastChild=2224(int line, int level) + +# Find the parent line of a child line. +get int GetFoldParent=2225(int line,) + +# Make a range of lines visible. +fun void ShowLines=2226(int lineStart, int lineEnd) + +# Make a range of lines invisible. +fun void HideLines=2227(int lineStart, int lineEnd) + +# Is a line visible? +get bool GetLineVisible=2228(int line,) + +# Are all lines visible? +get bool GetAllLinesVisible=2236(,) + +# Show the children of a header line. +set void SetFoldExpanded=2229(int line, bool expanded) + +# Is a header line expanded? +get bool GetFoldExpanded=2230(int line,) + +# Switch a header line between expanded and contracted. +fun void ToggleFold=2231(int line,) + +enu FoldAction=SC_FOLDACTION +val SC_FOLDACTION_CONTRACT=0 +val SC_FOLDACTION_EXPAND=1 +val SC_FOLDACTION_TOGGLE=2 + +# Expand or contract a fold header. +fun void FoldLine=2237(int line, int action) + +# Expand or contract a fold header and its children. +fun void FoldChildren=2238(int line, int action) + +# Expand a fold header and all children. Use the level argument instead of the line's current level. +fun void ExpandChildren=2239(int line, int level) + +# Expand or contract all fold headers. +fun void FoldAll=2662(int action,) + +# Ensure a particular line is visible by expanding any header line hiding it. +fun void EnsureVisible=2232(int line,) + +enu AutomaticFold=SC_AUTOMATICFOLD_ +val SC_AUTOMATICFOLD_SHOW=0x0001 +val SC_AUTOMATICFOLD_CLICK=0x0002 +val SC_AUTOMATICFOLD_CHANGE=0x0004 + +# Set automatic folding behaviours. +set void SetAutomaticFold=2663(int automaticFold,) + +# Get automatic folding behaviours. +get int GetAutomaticFold=2664(,) + +enu FoldFlag=SC_FOLDFLAG_ +val SC_FOLDFLAG_LINEBEFORE_EXPANDED=0x0002 +val SC_FOLDFLAG_LINEBEFORE_CONTRACTED=0x0004 +val SC_FOLDFLAG_LINEAFTER_EXPANDED=0x0008 +val SC_FOLDFLAG_LINEAFTER_CONTRACTED=0x0010 +val SC_FOLDFLAG_LEVELNUMBERS=0x0040 + +# Set some style options for folding. +set void SetFoldFlags=2233(int flags,) + +# Ensure a particular line is visible by expanding any header line hiding it. +# Use the currently set visibility policy to determine which range to display. +fun void EnsureVisibleEnforcePolicy=2234(int line,) + +# Sets whether a tab pressed when caret is within indentation indents. +set void SetTabIndents=2260(bool tabIndents,) + +# Does a tab pressed when caret is within indentation indent? +get bool GetTabIndents=2261(,) + +# Sets whether a backspace pressed when caret is within indentation unindents. +set void SetBackSpaceUnIndents=2262(bool bsUnIndents,) + +# Does a backspace pressed when caret is within indentation unindent? +get bool GetBackSpaceUnIndents=2263(,) + +val SC_TIME_FOREVER=10000000 + +# Sets the time the mouse must sit still to generate a mouse dwell event. +set void SetMouseDwellTime=2264(int periodMilliseconds,) + +# Retrieve the time the mouse must sit still to generate a mouse dwell event. +get int GetMouseDwellTime=2265(,) + +# Get position of start of word. +fun int WordStartPosition=2266(position pos, bool onlyWordCharacters) + +# Get position of end of word. +fun int WordEndPosition=2267(position pos, bool onlyWordCharacters) + +enu Wrap=SC_WRAP_ +val SC_WRAP_NONE=0 +val SC_WRAP_WORD=1 +val SC_WRAP_CHAR=2 + +# Sets whether text is word wrapped. +set void SetWrapMode=2268(int mode,) + +# Retrieve whether text is word wrapped. +get int GetWrapMode=2269(,) + +enu WrapVisualFlag=SC_WRAPVISUALFLAG_ +val SC_WRAPVISUALFLAG_NONE=0x0000 +val SC_WRAPVISUALFLAG_END=0x0001 +val SC_WRAPVISUALFLAG_START=0x0002 +val SC_WRAPVISUALFLAG_MARGIN=0x0004 + +# Set the display mode of visual flags for wrapped lines. +set void SetWrapVisualFlags=2460(int wrapVisualFlags,) + +# Retrive the display mode of visual flags for wrapped lines. +get int GetWrapVisualFlags=2461(,) + +enu WrapVisualLocation=SC_WRAPVISUALFLAGLOC_ +val SC_WRAPVISUALFLAGLOC_DEFAULT=0x0000 +val SC_WRAPVISUALFLAGLOC_END_BY_TEXT=0x0001 +val SC_WRAPVISUALFLAGLOC_START_BY_TEXT=0x0002 + +# Set the location of visual flags for wrapped lines. +set void SetWrapVisualFlagsLocation=2462(int wrapVisualFlagsLocation,) + +# Retrive the location of visual flags for wrapped lines. +get int GetWrapVisualFlagsLocation=2463(,) + +# Set the start indent for wrapped lines. +set void SetWrapStartIndent=2464(int indent,) + +# Retrive the start indent for wrapped lines. +get int GetWrapStartIndent=2465(,) + +enu WrapIndentMode=SC_WRAPINDENT_ +val SC_WRAPINDENT_FIXED=0 +val SC_WRAPINDENT_SAME=1 +val SC_WRAPINDENT_INDENT=2 + +# Sets how wrapped sublines are placed. Default is fixed. +set void SetWrapIndentMode=2472(int mode,) + +# Retrieve how wrapped sublines are placed. Default is fixed. +get int GetWrapIndentMode=2473(,) + +enu LineCache=SC_CACHE_ +val SC_CACHE_NONE=0 +val SC_CACHE_CARET=1 +val SC_CACHE_PAGE=2 +val SC_CACHE_DOCUMENT=3 + +# Sets the degree of caching of layout information. +set void SetLayoutCache=2272(int mode,) + +# Retrieve the degree of caching of layout information. +get int GetLayoutCache=2273(,) + +# Sets the document width assumed for scrolling. +set void SetScrollWidth=2274(int pixelWidth,) + +# Retrieve the document width assumed for scrolling. +get int GetScrollWidth=2275(,) + +# Sets whether the maximum width line displayed is used to set scroll width. +set void SetScrollWidthTracking=2516(bool tracking,) + +# Retrieve whether the scroll width tracks wide lines. +get bool GetScrollWidthTracking=2517(,) + +# Measure the pixel width of some text in a particular style. +# NUL terminated text argument. +# Does not handle tab or control characters. +fun int TextWidth=2276(int style, string text) + +# Sets the scroll range so that maximum scroll position has +# the last line at the bottom of the view (default). +# Setting this to false allows scrolling one page below the last line. +set void SetEndAtLastLine=2277(bool endAtLastLine,) + +# Retrieve whether the maximum scroll position has the last +# line at the bottom of the view. +get bool GetEndAtLastLine=2278(,) + +# Retrieve the height of a particular line of text in pixels. +fun int TextHeight=2279(int line,) + +# Show or hide the vertical scroll bar. +set void SetVScrollBar=2280(bool show,) + +# Is the vertical scroll bar visible? +get bool GetVScrollBar=2281(,) + +# Append a string to the end of the document without changing the selection. +fun void AppendText=2282(int length, string text) + +# Is drawing done in two phases with backgrounds drawn before faoregrounds? +get bool GetTwoPhaseDraw=2283(,) + +# In twoPhaseDraw mode, drawing is performed in two phases, first the background +# and then the foreground. This avoids chopping off characters that overlap the next run. +set void SetTwoPhaseDraw=2284(bool twoPhase,) + +# Control font anti-aliasing. + +enu FontQuality=SC_EFF_ +val SC_EFF_QUALITY_MASK=0xF +val SC_EFF_QUALITY_DEFAULT=0 +val SC_EFF_QUALITY_NON_ANTIALIASED=1 +val SC_EFF_QUALITY_ANTIALIASED=2 +val SC_EFF_QUALITY_LCD_OPTIMIZED=3 + +# Choose the quality level for text from the FontQuality enumeration. +set void SetFontQuality=2611(int fontQuality,) + +# Retrieve the quality level for text. +get int GetFontQuality=2612(,) + +# Scroll so that a display line is at the top of the display. +set void SetFirstVisibleLine=2613(int lineDisplay,) + +enu MultiPaste=SC_MULTIPASTE_ +val SC_MULTIPASTE_ONCE=0 +val SC_MULTIPASTE_EACH=1 + +# Change the effect of pasting when there are multiple selections. +set void SetMultiPaste=2614(int multiPaste,) + +# Retrieve the effect of pasting when there are multiple selections.. +get int GetMultiPaste=2615(,) + +# Retrieve the value of a tag from a regular expression search. +get int GetTag=2616(int tagNumber, stringresult tagValue) + +# Make the target range start and end be the same as the selection range start and end. +fun void TargetFromSelection=2287(,) + +# Join the lines in the target. +fun void LinesJoin=2288(,) + +# Split the lines in the target into lines that are less wide than pixelWidth +# where possible. +fun void LinesSplit=2289(int pixelWidth,) + +# Set the colours used as a chequerboard pattern in the fold margin +fun void SetFoldMarginColour=2290(bool useSetting, colour back) +fun void SetFoldMarginHiColour=2291(bool useSetting, colour fore) + +## New messages go here + +## Start of key messages +# Move caret down one line. +fun void LineDown=2300(,) + +# Move caret down one line extending selection to new caret position. +fun void LineDownExtend=2301(,) + +# Move caret up one line. +fun void LineUp=2302(,) + +# Move caret up one line extending selection to new caret position. +fun void LineUpExtend=2303(,) + +# Move caret left one character. +fun void CharLeft=2304(,) + +# Move caret left one character extending selection to new caret position. +fun void CharLeftExtend=2305(,) + +# Move caret right one character. +fun void CharRight=2306(,) + +# Move caret right one character extending selection to new caret position. +fun void CharRightExtend=2307(,) + +# Move caret left one word. +fun void WordLeft=2308(,) + +# Move caret left one word extending selection to new caret position. +fun void WordLeftExtend=2309(,) + +# Move caret right one word. +fun void WordRight=2310(,) + +# Move caret right one word extending selection to new caret position. +fun void WordRightExtend=2311(,) + +# Move caret to first position on line. +fun void Home=2312(,) + +# Move caret to first position on line extending selection to new caret position. +fun void HomeExtend=2313(,) + +# Move caret to last position on line. +fun void LineEnd=2314(,) + +# Move caret to last position on line extending selection to new caret position. +fun void LineEndExtend=2315(,) + +# Move caret to first position in document. +fun void DocumentStart=2316(,) + +# Move caret to first position in document extending selection to new caret position. +fun void DocumentStartExtend=2317(,) + +# Move caret to last position in document. +fun void DocumentEnd=2318(,) + +# Move caret to last position in document extending selection to new caret position. +fun void DocumentEndExtend=2319(,) + +# Move caret one page up. +fun void PageUp=2320(,) + +# Move caret one page up extending selection to new caret position. +fun void PageUpExtend=2321(,) + +# Move caret one page down. +fun void PageDown=2322(,) + +# Move caret one page down extending selection to new caret position. +fun void PageDownExtend=2323(,) + +# Switch from insert to overtype mode or the reverse. +fun void EditToggleOvertype=2324(,) + +# Cancel any modes such as call tip or auto-completion list display. +fun void Cancel=2325(,) + +# Delete the selection or if no selection, the character before the caret. +fun void DeleteBack=2326(,) + +# If selection is empty or all on one line replace the selection with a tab character. +# If more than one line selected, indent the lines. +fun void Tab=2327(,) + +# Dedent the selected lines. +fun void BackTab=2328(,) + +# Insert a new line, may use a CRLF, CR or LF depending on EOL mode. +fun void NewLine=2329(,) + +# Insert a Form Feed character. +fun void FormFeed=2330(,) + +# Move caret to before first visible character on line. +# If already there move to first character on line. +fun void VCHome=2331(,) + +# Like VCHome but extending selection to new caret position. +fun void VCHomeExtend=2332(,) + +# Magnify the displayed text by increasing the sizes by 1 point. +fun void ZoomIn=2333(,) + +# Make the displayed text smaller by decreasing the sizes by 1 point. +fun void ZoomOut=2334(,) + +# Delete the word to the left of the caret. +fun void DelWordLeft=2335(,) + +# Delete the word to the right of the caret. +fun void DelWordRight=2336(,) + +# Delete the word to the right of the caret, but not the trailing non-word characters. +fun void DelWordRightEnd=2518(,) + +# Cut the line containing the caret. +fun void LineCut=2337(,) + +# Delete the line containing the caret. +fun void LineDelete=2338(,) + +# Switch the current line with the previous. +fun void LineTranspose=2339(,) + +# Duplicate the current line. +fun void LineDuplicate=2404(,) + +# Transform the selection to lower case. +fun void LowerCase=2340(,) + +# Transform the selection to upper case. +fun void UpperCase=2341(,) + +# Scroll the document down, keeping the caret visible. +fun void LineScrollDown=2342(,) + +# Scroll the document up, keeping the caret visible. +fun void LineScrollUp=2343(,) + +# Delete the selection or if no selection, the character before the caret. +# Will not delete the character before at the start of a line. +fun void DeleteBackNotLine=2344(,) + +# Move caret to first position on display line. +fun void HomeDisplay=2345(,) + +# Move caret to first position on display line extending selection to +# new caret position. +fun void HomeDisplayExtend=2346(,) + +# Move caret to last position on display line. +fun void LineEndDisplay=2347(,) + +# Move caret to last position on display line extending selection to new +# caret position. +fun void LineEndDisplayExtend=2348(,) + +# These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? +# except they behave differently when word-wrap is enabled: +# They go first to the start / end of the display line, like (Home|LineEnd)Display +# The difference is that, the cursor is already at the point, it goes on to the start +# or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. + +fun void HomeWrap=2349(,) +fun void HomeWrapExtend=2450(,) +fun void LineEndWrap=2451(,) +fun void LineEndWrapExtend=2452(,) +fun void VCHomeWrap=2453(,) +fun void VCHomeWrapExtend=2454(,) + +# Copy the line containing the caret. +fun void LineCopy=2455(,) + +# Move the caret inside current view if it's not there already. +fun void MoveCaretInsideView=2401(,) + +# How many characters are on a line, including end of line characters? +fun int LineLength=2350(int line,) + +# Highlight the characters at two positions. +fun void BraceHighlight=2351(position pos1, position pos2) + +# Use specified indicator to highlight matching braces instead of changing their style. +fun void BraceHighlightIndicator=2498(bool useBraceHighlightIndicator, int indicator) + +# Highlight the character at a position indicating there is no matching brace. +fun void BraceBadLight=2352(position pos,) + +# Use specified indicator to highlight non matching brace instead of changing its style. +fun void BraceBadLightIndicator=2499(bool useBraceBadLightIndicator, int indicator) + +# Find the position of a matching brace or INVALID_POSITION if no match. +fun position BraceMatch=2353(position pos,) + +# Are the end of line characters visible? +get bool GetViewEOL=2355(,) + +# Make the end of line characters visible or invisible. +set void SetViewEOL=2356(bool visible,) + +# Retrieve a pointer to the document object. +get int GetDocPointer=2357(,) + +# Change the document object used. +set void SetDocPointer=2358(, int pointer) + +# Set which document modification events are sent to the container. +set void SetModEventMask=2359(int mask,) + +enu EdgeVisualStyle=EDGE_ +val EDGE_NONE=0 +val EDGE_LINE=1 +val EDGE_BACKGROUND=2 + +# Retrieve the column number which text should be kept within. +get int GetEdgeColumn=2360(,) + +# Set the column number of the edge. +# If text goes past the edge then it is highlighted. +set void SetEdgeColumn=2361(int column,) + +# Retrieve the edge highlight mode. +get int GetEdgeMode=2362(,) + +# The edge may be displayed by a line (EDGE_LINE) or by highlighting text that +# goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). +set void SetEdgeMode=2363(int mode,) + +# Retrieve the colour used in edge indication. +get colour GetEdgeColour=2364(,) + +# Change the colour used in edge indication. +set void SetEdgeColour=2365(colour edgeColour,) + +# Sets the current caret position to be the search anchor. +fun void SearchAnchor=2366(,) + +# Find some text starting at the search anchor. +# Does not ensure the selection is visible. +fun int SearchNext=2367(int flags, string text) + +# Find some text starting at the search anchor and moving backwards. +# Does not ensure the selection is visible. +fun int SearchPrev=2368(int flags, string text) + +# Retrieves the number of lines completely visible. +get int LinesOnScreen=2370(,) + +# Set whether a pop up menu is displayed automatically when the user presses +# the wrong mouse button. +fun void UsePopUp=2371(bool allowPopUp,) + +# Is the selection rectangular? The alternative is the more common stream selection. +get bool SelectionIsRectangle=2372(,) + +# Set the zoom level. This number of points is added to the size of all fonts. +# It may be positive to magnify or negative to reduce. +set void SetZoom=2373(int zoom,) +# Retrieve the zoom level. +get int GetZoom=2374(,) + +# Create a new document object. +# Starts with reference count of 1 and not selected into editor. +fun int CreateDocument=2375(,) +# Extend life of document. +fun void AddRefDocument=2376(, int doc) +# Release a reference to the document, deleting document if it fades to black. +fun void ReleaseDocument=2377(, int doc) + +# Get which document modification events are sent to the container. +get int GetModEventMask=2378(,) + +# Change internal focus flag. +set void SetFocus=2380(bool focus,) +# Get internal focus flag. +get bool GetFocus=2381(,) + +enu Status=SC_STATUS_ +val SC_STATUS_OK=0 +val SC_STATUS_FAILURE=1 +val SC_STATUS_BADALLOC=2 + +# Change error status - 0 = OK. +set void SetStatus=2382(int statusCode,) +# Get error status. +get int GetStatus=2383(,) + +# Set whether the mouse is captured when its button is pressed. +set void SetMouseDownCaptures=2384(bool captures,) +# Get whether mouse gets captured. +get bool GetMouseDownCaptures=2385(,) + +enu CursorShape=SC_CURSOR +val SC_CURSORNORMAL=-1 +val SC_CURSORARROW=2 +val SC_CURSORWAIT=4 +val SC_CURSORREVERSEARROW=7 +# Sets the cursor to one of the SC_CURSOR* values. +set void SetCursor=2386(int cursorType,) +# Get cursor type. +get int GetCursor=2387(,) + +# Change the way control characters are displayed: +# If symbol is < 32, keep the drawn way, else, use the given character. +set void SetControlCharSymbol=2388(int symbol,) +# Get the way control characters are displayed. +get int GetControlCharSymbol=2389(,) + +# Move to the previous change in capitalisation. +fun void WordPartLeft=2390(,) +# Move to the previous change in capitalisation extending selection +# to new caret position. +fun void WordPartLeftExtend=2391(,) +# Move to the change next in capitalisation. +fun void WordPartRight=2392(,) +# Move to the next change in capitalisation extending selection +# to new caret position. +fun void WordPartRightExtend=2393(,) + +# Constants for use with SetVisiblePolicy, similar to SetCaretPolicy. +val VISIBLE_SLOP=0x01 +val VISIBLE_STRICT=0x04 +# Set the way the display area is determined when a particular line +# is to be moved to by Find, FindNext, GotoLine, etc. +fun void SetVisiblePolicy=2394(int visiblePolicy, int visibleSlop) + +# Delete back from the current position to the start of the line. +fun void DelLineLeft=2395(,) + +# Delete forwards from the current position to the end of the line. +fun void DelLineRight=2396(,) + +# Get and Set the xOffset (ie, horizontal scroll position). +set void SetXOffset=2397(int newOffset,) +get int GetXOffset=2398(,) + +# Set the last x chosen value to be the caret x position. +fun void ChooseCaretX=2399(,) + +# Set the focus to this Scintilla widget. +fun void GrabFocus=2400(,) + +enu CaretPolicy=CARET_ +# Caret policy, used by SetXCaretPolicy and SetYCaretPolicy. +# If CARET_SLOP is set, we can define a slop value: caretSlop. +# This value defines an unwanted zone (UZ) where the caret is... unwanted. +# This zone is defined as a number of pixels near the vertical margins, +# and as a number of lines near the horizontal margins. +# By keeping the caret away from the edges, it is seen within its context, +# so it is likely that the identifier that the caret is on can be completely seen, +# and that the current line is seen with some of the lines following it which are +# often dependent on that line. +val CARET_SLOP=0x01 +# If CARET_STRICT is set, the policy is enforced... strictly. +# The caret is centred on the display if slop is not set, +# and cannot go in the UZ if slop is set. +val CARET_STRICT=0x04 +# If CARET_JUMPS is set, the display is moved more energetically +# so the caret can move in the same direction longer before the policy is applied again. +val CARET_JUMPS=0x10 +# If CARET_EVEN is not set, instead of having symmetrical UZs, +# the left and bottom UZs are extended up to right and top UZs respectively. +# This way, we favour the displaying of useful information: the begining of lines, +# where most code reside, and the lines after the caret, eg. the body of a function. +val CARET_EVEN=0x08 + +# Set the way the caret is kept visible when going sideways. +# The exclusion zone is given in pixels. +fun void SetXCaretPolicy=2402(int caretPolicy, int caretSlop) + +# Set the way the line the caret is on is kept visible. +# The exclusion zone is given in lines. +fun void SetYCaretPolicy=2403(int caretPolicy, int caretSlop) + +# Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). +set void SetPrintWrapMode=2406(int mode,) + +# Is printing line wrapped? +get int GetPrintWrapMode=2407(,) + +# Set a fore colour for active hotspots. +set void SetHotspotActiveFore=2410(bool useSetting, colour fore) + +# Get the fore colour for active hotspots. +get colour GetHotspotActiveFore=2494(,) + +# Set a back colour for active hotspots. +set void SetHotspotActiveBack=2411(bool useSetting, colour back) + +# Get the back colour for active hotspots. +get colour GetHotspotActiveBack=2495(,) + +# Enable / Disable underlining active hotspots. +set void SetHotspotActiveUnderline=2412(bool underline,) + +# Get whether underlining for active hotspots. +get bool GetHotspotActiveUnderline=2496(,) + +# Limit hotspots to single line so hotspots on two lines don't merge. +set void SetHotspotSingleLine=2421(bool singleLine,) + +# Get the HotspotSingleLine property +get bool GetHotspotSingleLine=2497(,) + +# Move caret between paragraphs (delimited by empty lines). +fun void ParaDown=2413(,) +fun void ParaDownExtend=2414(,) +fun void ParaUp=2415(,) +fun void ParaUpExtend=2416(,) + +# Given a valid document position, return the previous position taking code +# page into account. Returns 0 if passed 0. +fun position PositionBefore=2417(position pos,) + +# Given a valid document position, return the next position taking code +# page into account. Maximum value returned is the last position in the document. +fun position PositionAfter=2418(position pos,) + +# Given a valid document position, return a position that differs in a number +# of characters. Returned value is always between 0 and last position in document. +fun position PositionRelative=2670(position pos, int relative) + +# Copy a range of text to the clipboard. Positions are clipped into the document. +fun void CopyRange=2419(position start, position end) + +# Copy argument text to the clipboard. +fun void CopyText=2420(int length, string text) + +enu SelectionMode=SC_SEL_ +val SC_SEL_STREAM=0 +val SC_SEL_RECTANGLE=1 +val SC_SEL_LINES=2 +val SC_SEL_THIN=3 + +# Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or +# by lines (SC_SEL_LINES). +set void SetSelectionMode=2422(int mode,) + +# Get the mode of the current selection. +get int GetSelectionMode=2423(,) + +# Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). +fun position GetLineSelStartPosition=2424(int line,) + +# Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). +fun position GetLineSelEndPosition=2425(int line,) + +## RectExtended rectangular selection moves +# Move caret down one line, extending rectangular selection to new caret position. +fun void LineDownRectExtend=2426(,) + +# Move caret up one line, extending rectangular selection to new caret position. +fun void LineUpRectExtend=2427(,) + +# Move caret left one character, extending rectangular selection to new caret position. +fun void CharLeftRectExtend=2428(,) + +# Move caret right one character, extending rectangular selection to new caret position. +fun void CharRightRectExtend=2429(,) + +# Move caret to first position on line, extending rectangular selection to new caret position. +fun void HomeRectExtend=2430(,) + +# Move caret to before first visible character on line. +# If already there move to first character on line. +# In either case, extend rectangular selection to new caret position. +fun void VCHomeRectExtend=2431(,) + +# Move caret to last position on line, extending rectangular selection to new caret position. +fun void LineEndRectExtend=2432(,) + +# Move caret one page up, extending rectangular selection to new caret position. +fun void PageUpRectExtend=2433(,) + +# Move caret one page down, extending rectangular selection to new caret position. +fun void PageDownRectExtend=2434(,) + + +# Move caret to top of page, or one page up if already at top of page. +fun void StutteredPageUp=2435(,) + +# Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. +fun void StutteredPageUpExtend=2436(,) + +# Move caret to bottom of page, or one page down if already at bottom of page. +fun void StutteredPageDown=2437(,) + +# Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. +fun void StutteredPageDownExtend=2438(,) + + +# Move caret left one word, position cursor at end of word. +fun void WordLeftEnd=2439(,) + +# Move caret left one word, position cursor at end of word, extending selection to new caret position. +fun void WordLeftEndExtend=2440(,) + +# Move caret right one word, position cursor at end of word. +fun void WordRightEnd=2441(,) + +# Move caret right one word, position cursor at end of word, extending selection to new caret position. +fun void WordRightEndExtend=2442(,) + +# Set the set of characters making up whitespace for when moving or selecting by word. +# Should be called after SetWordChars. +set void SetWhitespaceChars=2443(, string characters) + +# Get the set of characters making up whitespace for when moving or selecting by word. +get int GetWhitespaceChars=2647(, stringresult characters) + +# Set the set of characters making up punctuation characters +# Should be called after SetWordChars. +set void SetPunctuationChars=2648(, string characters) + +# Get the set of characters making up punctuation characters +get int GetPunctuationChars=2649(, stringresult characters) + +# Reset the set of characters for whitespace and word characters to the defaults. +fun void SetCharsDefault=2444(,) + +# Get currently selected item position in the auto-completion list +get int AutoCGetCurrent=2445(,) + +# Get currently selected item text in the auto-completion list +# Returns the length of the item text +get int AutoCGetCurrentText=2610(, stringresult s) + +enu CaseInsensitiveBehaviour=SC_CASEINSENSITIVEBEHAVIOUR_ +val SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE=0 +val SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE=1 + +# Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference. +set void AutoCSetCaseInsensitiveBehaviour=2634(int behaviour,) + +# Get auto-completion case insensitive behaviour. +get int AutoCGetCaseInsensitiveBehaviour=2635(,) + +enu Ordering=SC_ORDER_ +val SC_ORDER_PRESORTED=0 +val SC_ORDER_PERFORMSORT=1 +val SC_ORDER_CUSTOM=2 + +# Set the way autocompletion lists are ordered. +set void AutoCSetOrder=2660(int order,) + +# Get the way autocompletion lists are ordered. +get int AutoCGetOrder=2661(,) + +# Enlarge the document to a particular size of text bytes. +fun void Allocate=2446(int bytes,) + +# Returns the target converted to UTF8. +# Return the length in bytes. +fun int TargetAsUTF8=2447(, stringresult s) + +# Set the length of the utf8 argument for calling EncodedFromUTF8. +# Set to -1 and the string will be measured to the first nul. +fun void SetLengthForEncode=2448(int bytes,) + +# Translates a UTF8 string into the document encoding. +# Return the length of the result in bytes. +# On error return 0. +fun int EncodedFromUTF8=2449(string utf8, stringresult encoded) + +# Find the position of a column on a line taking into account tabs and +# multi-byte characters. If beyond end of line, return line end position. +fun int FindColumn=2456(int line, int column) + +# Can the caret preferred x position only be changed by explicit movement commands? +get int GetCaretSticky=2457(,) + +# Stop the caret preferred x position changing when the user types. +set void SetCaretSticky=2458(int useCaretStickyBehaviour,) + +enu CaretSticky=SC_CARETSTICKY_ +val SC_CARETSTICKY_OFF=0 +val SC_CARETSTICKY_ON=1 +val SC_CARETSTICKY_WHITESPACE=2 + +# Switch between sticky and non-sticky: meant to be bound to a key. +fun void ToggleCaretSticky=2459(,) + +# Enable/Disable convert-on-paste for line endings +set void SetPasteConvertEndings=2467(bool convert,) + +# Get convert-on-paste setting +get bool GetPasteConvertEndings=2468(,) + +# Duplicate the selection. If selection empty duplicate the line containing the caret. +fun void SelectionDuplicate=2469(,) + +val SC_ALPHA_TRANSPARENT=0 +val SC_ALPHA_OPAQUE=255 +val SC_ALPHA_NOALPHA=256 + +# Set background alpha of the caret line. +set void SetCaretLineBackAlpha=2470(int alpha,) + +# Get the background alpha of the caret line. +get int GetCaretLineBackAlpha=2471(,) + +enu CaretStyle=CARETSTYLE_ +val CARETSTYLE_INVISIBLE=0 +val CARETSTYLE_LINE=1 +val CARETSTYLE_BLOCK=2 + +# Set the style of the caret to be drawn. +set void SetCaretStyle=2512(int caretStyle,) + +# Returns the current style of the caret. +get int GetCaretStyle=2513(,) + +# Set the indicator used for IndicatorFillRange and IndicatorClearRange +set void SetIndicatorCurrent=2500(int indicator,) + +# Get the current indicator +get int GetIndicatorCurrent=2501(,) + +# Set the value used for IndicatorFillRange +set void SetIndicatorValue=2502(int value,) + +# Get the current indicator value +get int GetIndicatorValue=2503(,) + +# Turn a indicator on over a range. +fun void IndicatorFillRange=2504(int position, int fillLength) + +# Turn a indicator off over a range. +fun void IndicatorClearRange=2505(int position, int clearLength) + +# Are any indicators present at position? +fun int IndicatorAllOnFor=2506(int position,) + +# What value does a particular indicator have at at a position? +fun int IndicatorValueAt=2507(int indicator, int position) + +# Where does a particular indicator start? +fun int IndicatorStart=2508(int indicator, int position) + +# Where does a particular indicator end? +fun int IndicatorEnd=2509(int indicator, int position) + +# Set number of entries in position cache +set void SetPositionCache=2514(int size,) + +# How many entries are allocated to the position cache? +get int GetPositionCache=2515(,) + +# Copy the selection, if selection empty copy the line with the caret +fun void CopyAllowLine=2519(,) + +# Compact the document buffer and return a read-only pointer to the +# characters in the document. +get int GetCharacterPointer=2520(,) + +# Return a read-only pointer to a range of characters in the document. +# May move the gap so that the range is contiguous, but will only move up +# to rangeLength bytes. +get int GetRangePointer=2643(int position, int rangeLength) + +# Return a position which, to avoid performance costs, should not be within +# the range of a call to GetRangePointer. +get position GetGapPosition=2644(,) + +# Always interpret keyboard input as Unicode +set void SetKeysUnicode=2521(bool keysUnicode,) + +# Are keys always interpreted as Unicode? +get bool GetKeysUnicode=2522(,) + +# Set the alpha fill colour of the given indicator. +set void IndicSetAlpha=2523(int indicator, int alpha) + +# Get the alpha fill colour of the given indicator. +get int IndicGetAlpha=2524(int indicator,) + +# Set the alpha outline colour of the given indicator. +set void IndicSetOutlineAlpha=2558(int indicator, int alpha) + +# Get the alpha outline colour of the given indicator. +get int IndicGetOutlineAlpha=2559(int indicator,) + +# Set extra ascent for each line +set void SetExtraAscent=2525(int extraAscent,) + +# Get extra ascent for each line +get int GetExtraAscent=2526(,) + +# Set extra descent for each line +set void SetExtraDescent=2527(int extraDescent,) + +# Get extra descent for each line +get int GetExtraDescent=2528(,) + +# Which symbol was defined for markerNumber with MarkerDefine +fun int MarkerSymbolDefined=2529(int markerNumber,) + +# Set the text in the text margin for a line +set void MarginSetText=2530(int line, string text) + +# Get the text in the text margin for a line +get int MarginGetText=2531(int line, stringresult text) + +# Set the style number for the text margin for a line +set void MarginSetStyle=2532(int line, int style) + +# Get the style number for the text margin for a line +get int MarginGetStyle=2533(int line,) + +# Set the style in the text margin for a line +set void MarginSetStyles=2534(int line, string styles) + +# Get the styles in the text margin for a line +get int MarginGetStyles=2535(int line, stringresult styles) + +# Clear the margin text on all lines +fun void MarginTextClearAll=2536(,) + +# Get the start of the range of style numbers used for margin text +set void MarginSetStyleOffset=2537(int style,) + +# Get the start of the range of style numbers used for margin text +get int MarginGetStyleOffset=2538(,) + +enu MarginOption=SC_MARGINOPTION_ +val SC_MARGINOPTION_NONE=0 +val SC_MARGINOPTION_SUBLINESELECT=1 + +# Set the margin options. +set void SetMarginOptions=2539(int marginOptions,) + +# Get the margin options. +get int GetMarginOptions=2557(,) + +# Set the annotation text for a line +set void AnnotationSetText=2540(int line, string text) + +# Get the annotation text for a line +get int AnnotationGetText=2541(int line, stringresult text) + +# Set the style number for the annotations for a line +set void AnnotationSetStyle=2542(int line, int style) + +# Get the style number for the annotations for a line +get int AnnotationGetStyle=2543(int line,) + +# Set the annotation styles for a line +set void AnnotationSetStyles=2544(int line, string styles) + +# Get the annotation styles for a line +get int AnnotationGetStyles=2545(int line, stringresult styles) + +# Get the number of annotation lines for a line +get int AnnotationGetLines=2546(int line,) + +# Clear the annotations from all lines +fun void AnnotationClearAll=2547(,) + +enu AnnotationVisible=ANNOTATION_ +val ANNOTATION_HIDDEN=0 +val ANNOTATION_STANDARD=1 +val ANNOTATION_BOXED=2 + +# Set the visibility for the annotations for a view +set void AnnotationSetVisible=2548(int visible,) + +# Get the visibility for the annotations for a view +get int AnnotationGetVisible=2549(,) + +# Get the start of the range of style numbers used for annotations +set void AnnotationSetStyleOffset=2550(int style,) + +# Get the start of the range of style numbers used for annotations +get int AnnotationGetStyleOffset=2551(,) + +# Release all extended (>255) style numbers +fun void ReleaseAllExtendedStyles=2552(,) + +# Allocate some extended (>255) style numbers and return the start of the range +fun int AllocateExtendedStyles=2553(int numberStyles,) + +val UNDO_MAY_COALESCE=1 + +# Add a container action to the undo stack +fun void AddUndoAction=2560(int token, int flags) + +# Find the position of a character from a point within the window. +fun position CharPositionFromPoint=2561(int x, int y) + +# Find the position of a character from a point within the window. +# Return INVALID_POSITION if not close to text. +fun position CharPositionFromPointClose=2562(int x, int y) + +# Set whether switching to rectangular mode while selecting with the mouse is allowed. +set void SetMouseSelectionRectangularSwitch=2668(bool mouseSelectionRectangularSwitch,) + +# Whether switching to rectangular mode while selecting with the mouse is allowed. +get bool GetMouseSelectionRectangularSwitch=2669(,) + +# Set whether multiple selections can be made +set void SetMultipleSelection=2563(bool multipleSelection,) + +# Whether multiple selections can be made +get bool GetMultipleSelection=2564(,) + +# Set whether typing can be performed into multiple selections +set void SetAdditionalSelectionTyping=2565(bool additionalSelectionTyping,) + +# Whether typing can be performed into multiple selections +get bool GetAdditionalSelectionTyping=2566(,) + +# Set whether additional carets will blink +set void SetAdditionalCaretsBlink=2567(bool additionalCaretsBlink,) + +# Whether additional carets will blink +get bool GetAdditionalCaretsBlink=2568(,) + +# Set whether additional carets are visible +set void SetAdditionalCaretsVisible=2608(bool additionalCaretsBlink,) + +# Whether additional carets are visible +get bool GetAdditionalCaretsVisible=2609(,) + +# How many selections are there? +get int GetSelections=2570(,) + +# Is every selected range empty? +get bool GetSelectionEmpty=2650(,) + +# Clear selections to a single empty stream selection +fun void ClearSelections=2571(,) + +# Set a simple selection +fun int SetSelection=2572(int caret, int anchor) + +# Add a selection +fun int AddSelection=2573(int caret, int anchor) + +# Set the main selection +set void SetMainSelection=2574(int selection,) + +# Which selection is the main selection +get int GetMainSelection=2575(,) + +set void SetSelectionNCaret=2576(int selection, position pos) +get position GetSelectionNCaret=2577(int selection,) +set void SetSelectionNAnchor=2578(int selection, position posAnchor) +get position GetSelectionNAnchor=2579(int selection,) +set void SetSelectionNCaretVirtualSpace=2580(int selection, int space) +get int GetSelectionNCaretVirtualSpace=2581(int selection,) +set void SetSelectionNAnchorVirtualSpace=2582(int selection, int space) +get int GetSelectionNAnchorVirtualSpace=2583(int selection,) + +# Sets the position that starts the selection - this becomes the anchor. +set void SetSelectionNStart=2584(int selection, position pos) + +# Returns the position at the start of the selection. +get position GetSelectionNStart=2585(int selection,) + +# Sets the position that ends the selection - this becomes the currentPosition. +set void SetSelectionNEnd=2586(int selection, position pos) + +# Returns the position at the end of the selection. +get position GetSelectionNEnd=2587(int selection,) + +set void SetRectangularSelectionCaret=2588(position pos,) +get position GetRectangularSelectionCaret=2589(,) +set void SetRectangularSelectionAnchor=2590(position posAnchor,) +get position GetRectangularSelectionAnchor=2591(,) +set void SetRectangularSelectionCaretVirtualSpace=2592(int space,) +get int GetRectangularSelectionCaretVirtualSpace=2593(,) +set void SetRectangularSelectionAnchorVirtualSpace=2594(int space,) +get int GetRectangularSelectionAnchorVirtualSpace=2595(,) + +enu VirtualSpace=SCVS_ +val SCVS_NONE=0 +val SCVS_RECTANGULARSELECTION=1 +val SCVS_USERACCESSIBLE=2 + +set void SetVirtualSpaceOptions=2596(int virtualSpaceOptions,) +get int GetVirtualSpaceOptions=2597(,) + +# On GTK+, allow selecting the modifier key to use for mouse-based +# rectangular selection. Often the window manager requires Alt+Mouse Drag +# for moving windows. +# Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER. + +set void SetRectangularSelectionModifier=2598(int modifier,) + +# Get the modifier key used for rectangular selection. +get int GetRectangularSelectionModifier=2599(,) + +# Set the foreground colour of additional selections. +# Must have previously called SetSelFore with non-zero first argument for this to have an effect. +set void SetAdditionalSelFore=2600(colour fore,) + +# Set the background colour of additional selections. +# Must have previously called SetSelBack with non-zero first argument for this to have an effect. +set void SetAdditionalSelBack=2601(colour back,) + +# Set the alpha of the selection. +set void SetAdditionalSelAlpha=2602(int alpha,) + +# Get the alpha of the selection. +get int GetAdditionalSelAlpha=2603(,) + +# Set the foreground colour of additional carets. +set void SetAdditionalCaretFore=2604(colour fore,) + +# Get the foreground colour of additional carets. +get colour GetAdditionalCaretFore=2605(,) + +# Set the main selection to the next selection. +fun void RotateSelection=2606(,) + +# Swap that caret and anchor of the main selection. +fun void SwapMainAnchorCaret=2607(,) + +# Indicate that the internal state of a lexer has changed over a range and therefore +# there may be a need to redraw. +fun int ChangeLexerState=2617(position start, position end) + +# Find the next line at or after lineStart that is a contracted fold header line. +# Return -1 when no more lines. +fun int ContractedFoldNext=2618(int lineStart,) + +# Centre current line in window. +fun void VerticalCentreCaret=2619(,) + +# Move the selected lines up one line, shifting the line above after the selection +fun void MoveSelectedLinesUp=2620(,) + +# Move the selected lines down one line, shifting the line below before the selection +fun void MoveSelectedLinesDown=2621(,) + +# Set the identifier reported as idFrom in notification messages. +set void SetIdentifier=2622(int identifier,) + +# Get the identifier. +get int GetIdentifier=2623(,) + +# Set the width for future RGBA image data. +set void RGBAImageSetWidth=2624(int width,) + +# Set the height for future RGBA image data. +set void RGBAImageSetHeight=2625(int height,) + +# Set the scale factor in percent for future RGBA image data. +set void RGBAImageSetScale=2651(int scalePercent,) + +# Define a marker from RGBA data. +# It has the width and height from RGBAImageSetWidth/Height +fun void MarkerDefineRGBAImage=2626(int markerNumber, string pixels) + +# Register an RGBA image for use in autocompletion lists. +# It has the width and height from RGBAImageSetWidth/Height +fun void RegisterRGBAImage=2627(int type, string pixels) + +# Scroll to start of document. +fun void ScrollToStart=2628(,) + +# Scroll to end of document. +fun void ScrollToEnd=2629(,) + +val SC_TECHNOLOGY_DEFAULT=0 +val SC_TECHNOLOGY_DIRECTWRITE=1 + +# Set the technology used. +set void SetTechnology=2630(int technology,) + +# Get the tech. +get int GetTechnology=2631(,) + +# Create an ILoader*. +fun int CreateLoader=2632(int bytes,) + +# On OS X, show a find indicator. +fun void FindIndicatorShow=2640(position start, position end) + +# On OS X, flash a find indicator, then fade out. +fun void FindIndicatorFlash=2641(position start, position end) + +# On OS X, hide the find indicator. +fun void FindIndicatorHide=2642(,) + +# Move caret to before first visible character on display line. +# If already there move to first character on display line. +fun void VCHomeDisplay=2652(,) + +# Like VCHomeDisplay but extending selection to new caret position. +fun void VCHomeDisplayExtend=2653(,) + +# Is the caret line always visible? +get bool GetCaretLineVisibleAlways=2654(,) + +# Sets the caret line to always visible. +set void SetCaretLineVisibleAlways=2655(bool alwaysVisible,) + +# Set the way a character is drawn. +set void SetRepresentation=2665(string encodedCharacter, string representation) + +# Set the way a character is drawn. +get int GetRepresentation=2666(string encodedCharacter, stringresult representation) + +# Remove a character representation. +fun void ClearRepresentation=2667(string encodedCharacter,) + +# Start notifying the container of all key presses and commands. +fun void StartRecord=3001(,) + +# Stop notifying the container of all key presses and commands. +fun void StopRecord=3002(,) + +# Set the lexing language of the document. +set void SetLexer=4001(int lexer,) + +# Retrieve the lexing language of the document. +get int GetLexer=4002(,) + +# Colourise a segment of the document using the current lexing language. +fun void Colourise=4003(position start, position end) + +# Set up a value that may be used by a lexer for some optional feature. +set void SetProperty=4004(string key, string value) + +# Maximum value of keywordSet parameter of SetKeyWords. +val KEYWORDSET_MAX=8 + +# Set up the key words used by the lexer. +set void SetKeyWords=4005(int keywordSet, string keyWords) + +# Set the lexing language of the document based on string name. +set void SetLexerLanguage=4006(, string language) + +# Load a lexer library (dll / so). +fun void LoadLexerLibrary=4007(, string path) + +# Retrieve a "property" value previously set with SetProperty. +get int GetProperty=4008(string key, stringresult buf) + +# Retrieve a "property" value previously set with SetProperty, +# with "$()" variable replacement on returned buffer. +get int GetPropertyExpanded=4009(string key, stringresult buf) + +# Retrieve a "property" value previously set with SetProperty, +# interpreted as an int AFTER any "$()" variable replacement. +get int GetPropertyInt=4010(string key,) + +# Retrieve the number of bits the current lexer needs for styling. +get int GetStyleBitsNeeded=4011(,) + +# Retrieve the name of the lexer. +# Return the length of the text. +get int GetLexerLanguage=4012(, stringresult text) + +# For private communication between an application and a known lexer. +fun int PrivateLexerCall=4013(int operation, int pointer) + +# Retrieve a '\n' separated list of properties understood by the current lexer. +fun int PropertyNames=4014(, stringresult names) + +enu TypeProperty=SC_TYPE_ +val SC_TYPE_BOOLEAN=0 +val SC_TYPE_INTEGER=1 +val SC_TYPE_STRING=2 + +# Retrieve the type of a property. +fun int PropertyType=4015(string name,) + +# Describe a property. +fun int DescribeProperty=4016(string name, stringresult description) + +# Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer. +fun int DescribeKeyWordSets=4017(, stringresult descriptions) + +# Notifications +# Type of modification and the action which caused the modification. +# These are defined as a bit mask to make it easy to specify which notifications are wanted. +# One bit is set from each of SC_MOD_* and SC_PERFORMED_*. +enu ModificationFlags=SC_MOD_ SC_PERFORMED_ SC_MULTISTEPUNDOREDO SC_LASTSTEPINUNDOREDO SC_MULTILINEUNDOREDO SC_STARTACTION SC_MODEVENTMASKALL +val SC_MOD_INSERTTEXT=0x1 +val SC_MOD_DELETETEXT=0x2 +val SC_MOD_CHANGESTYLE=0x4 +val SC_MOD_CHANGEFOLD=0x8 +val SC_PERFORMED_USER=0x10 +val SC_PERFORMED_UNDO=0x20 +val SC_PERFORMED_REDO=0x40 +val SC_MULTISTEPUNDOREDO=0x80 +val SC_LASTSTEPINUNDOREDO=0x100 +val SC_MOD_CHANGEMARKER=0x200 +val SC_MOD_BEFOREINSERT=0x400 +val SC_MOD_BEFOREDELETE=0x800 +val SC_MULTILINEUNDOREDO=0x1000 +val SC_STARTACTION=0x2000 +val SC_MOD_CHANGEINDICATOR=0x4000 +val SC_MOD_CHANGELINESTATE=0x8000 +val SC_MOD_CHANGEMARGIN=0x10000 +val SC_MOD_CHANGEANNOTATION=0x20000 +val SC_MOD_CONTAINER=0x40000 +val SC_MOD_LEXERSTATE=0x80000 +val SC_MODEVENTMASKALL=0xFFFFF + +enu Update=SC_UPDATE_ +val SC_UPDATE_CONTENT=0x1 +val SC_UPDATE_SELECTION=0x2 +val SC_UPDATE_V_SCROLL=0x4 +val SC_UPDATE_H_SCROLL=0x8 + +# For compatibility, these go through the COMMAND notification rather than NOTIFY +# and should have had exactly the same values as the EN_* constants. +# Unfortunately the SETFOCUS and KILLFOCUS are flipped over from EN_* +# As clients depend on these constants, this will not be changed. +val SCEN_CHANGE=768 +val SCEN_SETFOCUS=512 +val SCEN_KILLFOCUS=256 + +# Symbolic key codes and modifier flags. +# ASCII and other printable characters below 256. +# Extended keys above 300. + +enu Keys=SCK_ +val SCK_DOWN=300 +val SCK_UP=301 +val SCK_LEFT=302 +val SCK_RIGHT=303 +val SCK_HOME=304 +val SCK_END=305 +val SCK_PRIOR=306 +val SCK_NEXT=307 +val SCK_DELETE=308 +val SCK_INSERT=309 +val SCK_ESCAPE=7 +val SCK_BACK=8 +val SCK_TAB=9 +val SCK_RETURN=13 +val SCK_ADD=310 +val SCK_SUBTRACT=311 +val SCK_DIVIDE=312 +val SCK_WIN=313 +val SCK_RWIN=314 +val SCK_MENU=315 + +enu KeyMod=SCMOD_ +val SCMOD_NORM=0 +val SCMOD_SHIFT=1 +val SCMOD_CTRL=2 +val SCMOD_ALT=4 +val SCMOD_SUPER=8 +val SCMOD_META=16 + +################################################ +# For SciLexer.h +enu Lexer=SCLEX_ +val SCLEX_CONTAINER=0 +val SCLEX_NULL=1 +val SCLEX_PYTHON=2 +val SCLEX_CPP=3 +val SCLEX_HTML=4 +val SCLEX_XML=5 +val SCLEX_PERL=6 +val SCLEX_SQL=7 +val SCLEX_VB=8 +val SCLEX_PROPERTIES=9 +val SCLEX_ERRORLIST=10 +val SCLEX_MAKEFILE=11 +val SCLEX_BATCH=12 +val SCLEX_XCODE=13 +val SCLEX_LATEX=14 +val SCLEX_LUA=15 +val SCLEX_DIFF=16 +val SCLEX_CONF=17 +val SCLEX_PASCAL=18 +val SCLEX_AVE=19 +val SCLEX_ADA=20 +val SCLEX_LISP=21 +val SCLEX_RUBY=22 +val SCLEX_EIFFEL=23 +val SCLEX_EIFFELKW=24 +val SCLEX_TCL=25 +val SCLEX_NNCRONTAB=26 +val SCLEX_BULLANT=27 +val SCLEX_VBSCRIPT=28 +val SCLEX_BAAN=31 +val SCLEX_MATLAB=32 +val SCLEX_SCRIPTOL=33 +val SCLEX_ASM=34 +val SCLEX_CPPNOCASE=35 +val SCLEX_FORTRAN=36 +val SCLEX_F77=37 +val SCLEX_CSS=38 +val SCLEX_POV=39 +val SCLEX_LOUT=40 +val SCLEX_ESCRIPT=41 +val SCLEX_PS=42 +val SCLEX_NSIS=43 +val SCLEX_MMIXAL=44 +val SCLEX_CLW=45 +val SCLEX_CLWNOCASE=46 +val SCLEX_LOT=47 +val SCLEX_YAML=48 +val SCLEX_TEX=49 +val SCLEX_METAPOST=50 +val SCLEX_POWERBASIC=51 +val SCLEX_FORTH=52 +val SCLEX_ERLANG=53 +val SCLEX_OCTAVE=54 +val SCLEX_MSSQL=55 +val SCLEX_VERILOG=56 +val SCLEX_KIX=57 +val SCLEX_GUI4CLI=58 +val SCLEX_SPECMAN=59 +val SCLEX_AU3=60 +val SCLEX_APDL=61 +val SCLEX_BASH=62 +val SCLEX_ASN1=63 +val SCLEX_VHDL=64 +val SCLEX_CAML=65 +val SCLEX_BLITZBASIC=66 +val SCLEX_PUREBASIC=67 +val SCLEX_HASKELL=68 +val SCLEX_PHPSCRIPT=69 +val SCLEX_TADS3=70 +val SCLEX_REBOL=71 +val SCLEX_SMALLTALK=72 +val SCLEX_FLAGSHIP=73 +val SCLEX_CSOUND=74 +val SCLEX_FREEBASIC=75 +val SCLEX_INNOSETUP=76 +val SCLEX_OPAL=77 +val SCLEX_SPICE=78 +val SCLEX_D=79 +val SCLEX_CMAKE=80 +val SCLEX_GAP=81 +val SCLEX_PLM=82 +val SCLEX_PROGRESS=83 +val SCLEX_ABAQUS=84 +val SCLEX_ASYMPTOTE=85 +val SCLEX_R=86 +val SCLEX_MAGIK=87 +val SCLEX_POWERSHELL=88 +val SCLEX_MYSQL=89 +val SCLEX_PO=90 +val SCLEX_TAL=91 +val SCLEX_COBOL=92 +val SCLEX_TACL=93 +val SCLEX_SORCUS=94 +val SCLEX_POWERPRO=95 +val SCLEX_NIMROD=96 +val SCLEX_SML=97 +val SCLEX_MARKDOWN=98 +val SCLEX_TXT2TAGS=99 +val SCLEX_A68K=100 +val SCLEX_MODULA=101 +val SCLEX_COFFEESCRIPT=102 +val SCLEX_TCMD=103 +val SCLEX_AVS=104 +val SCLEX_ECL=105 +val SCLEX_OSCRIPT=106 +val SCLEX_VISUALPROLOG=107 +val SCLEX_LITERATEHASKELL=108 +val SCLEX_STTXT=109 +val SCLEX_KVIRC=110 +val SCLEX_RUST=111 + +# When a lexer specifies its language as SCLEX_AUTOMATIC it receives a +# value assigned in sequence from SCLEX_AUTOMATIC+1. +val SCLEX_AUTOMATIC=1000 +# Lexical states for SCLEX_PYTHON +lex Python=SCLEX_PYTHON SCE_P_ +lex Nimrod=SCLEX_NIMROD SCE_P_ +val SCE_P_DEFAULT=0 +val SCE_P_COMMENTLINE=1 +val SCE_P_NUMBER=2 +val SCE_P_STRING=3 +val SCE_P_CHARACTER=4 +val SCE_P_WORD=5 +val SCE_P_TRIPLE=6 +val SCE_P_TRIPLEDOUBLE=7 +val SCE_P_CLASSNAME=8 +val SCE_P_DEFNAME=9 +val SCE_P_OPERATOR=10 +val SCE_P_IDENTIFIER=11 +val SCE_P_COMMENTBLOCK=12 +val SCE_P_STRINGEOL=13 +val SCE_P_WORD2=14 +val SCE_P_DECORATOR=15 +# Lexical states for SCLEX_CPP +lex Cpp=SCLEX_CPP SCE_C_ +lex BullAnt=SCLEX_BULLANT SCE_C_ +val SCE_C_DEFAULT=0 +val SCE_C_COMMENT=1 +val SCE_C_COMMENTLINE=2 +val SCE_C_COMMENTDOC=3 +val SCE_C_NUMBER=4 +val SCE_C_WORD=5 +val SCE_C_STRING=6 +val SCE_C_CHARACTER=7 +val SCE_C_UUID=8 +val SCE_C_PREPROCESSOR=9 +val SCE_C_OPERATOR=10 +val SCE_C_IDENTIFIER=11 +val SCE_C_STRINGEOL=12 +val SCE_C_VERBATIM=13 +val SCE_C_REGEX=14 +val SCE_C_COMMENTLINEDOC=15 +val SCE_C_WORD2=16 +val SCE_C_COMMENTDOCKEYWORD=17 +val SCE_C_COMMENTDOCKEYWORDERROR=18 +val SCE_C_GLOBALCLASS=19 +val SCE_C_STRINGRAW=20 +val SCE_C_TRIPLEVERBATIM=21 +val SCE_C_HASHQUOTEDSTRING=22 +val SCE_C_PREPROCESSORCOMMENT=23 +val SCE_C_PREPROCESSORCOMMENTDOC=24 +# Lexical states for SCLEX_D +lex D=SCLEX_D SCE_D_ +val SCE_D_DEFAULT=0 +val SCE_D_COMMENT=1 +val SCE_D_COMMENTLINE=2 +val SCE_D_COMMENTDOC=3 +val SCE_D_COMMENTNESTED=4 +val SCE_D_NUMBER=5 +val SCE_D_WORD=6 +val SCE_D_WORD2=7 +val SCE_D_WORD3=8 +val SCE_D_TYPEDEF=9 +val SCE_D_STRING=10 +val SCE_D_STRINGEOL=11 +val SCE_D_CHARACTER=12 +val SCE_D_OPERATOR=13 +val SCE_D_IDENTIFIER=14 +val SCE_D_COMMENTLINEDOC=15 +val SCE_D_COMMENTDOCKEYWORD=16 +val SCE_D_COMMENTDOCKEYWORDERROR=17 +val SCE_D_STRINGB=18 +val SCE_D_STRINGR=19 +val SCE_D_WORD5=20 +val SCE_D_WORD6=21 +val SCE_D_WORD7=22 +# Lexical states for SCLEX_TCL +lex TCL=SCLEX_TCL SCE_TCL_ +val SCE_TCL_DEFAULT=0 +val SCE_TCL_COMMENT=1 +val SCE_TCL_COMMENTLINE=2 +val SCE_TCL_NUMBER=3 +val SCE_TCL_WORD_IN_QUOTE=4 +val SCE_TCL_IN_QUOTE=5 +val SCE_TCL_OPERATOR=6 +val SCE_TCL_IDENTIFIER=7 +val SCE_TCL_SUBSTITUTION=8 +val SCE_TCL_SUB_BRACE=9 +val SCE_TCL_MODIFIER=10 +val SCE_TCL_EXPAND=11 +val SCE_TCL_WORD=12 +val SCE_TCL_WORD2=13 +val SCE_TCL_WORD3=14 +val SCE_TCL_WORD4=15 +val SCE_TCL_WORD5=16 +val SCE_TCL_WORD6=17 +val SCE_TCL_WORD7=18 +val SCE_TCL_WORD8=19 +val SCE_TCL_COMMENT_BOX=20 +val SCE_TCL_BLOCK_COMMENT=21 +# Lexical states for SCLEX_HTML, SCLEX_XML +lex HTML=SCLEX_HTML SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_ +lex XML=SCLEX_XML SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_ +lex ASP=SCLEX_ASP SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_ +lex PHP=SCLEX_PHP SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_ +val SCE_H_DEFAULT=0 +val SCE_H_TAG=1 +val SCE_H_TAGUNKNOWN=2 +val SCE_H_ATTRIBUTE=3 +val SCE_H_ATTRIBUTEUNKNOWN=4 +val SCE_H_NUMBER=5 +val SCE_H_DOUBLESTRING=6 +val SCE_H_SINGLESTRING=7 +val SCE_H_OTHER=8 +val SCE_H_COMMENT=9 +val SCE_H_ENTITY=10 +# XML and ASP +val SCE_H_TAGEND=11 +val SCE_H_XMLSTART=12 +val SCE_H_XMLEND=13 +val SCE_H_SCRIPT=14 +val SCE_H_ASP=15 +val SCE_H_ASPAT=16 +val SCE_H_CDATA=17 +val SCE_H_QUESTION=18 +# More HTML +val SCE_H_VALUE=19 +# X-Code +val SCE_H_XCCOMMENT=20 +# SGML +val SCE_H_SGML_DEFAULT=21 +val SCE_H_SGML_COMMAND=22 +val SCE_H_SGML_1ST_PARAM=23 +val SCE_H_SGML_DOUBLESTRING=24 +val SCE_H_SGML_SIMPLESTRING=25 +val SCE_H_SGML_ERROR=26 +val SCE_H_SGML_SPECIAL=27 +val SCE_H_SGML_ENTITY=28 +val SCE_H_SGML_COMMENT=29 +val SCE_H_SGML_1ST_PARAM_COMMENT=30 +val SCE_H_SGML_BLOCK_DEFAULT=31 +# Embedded Javascript +val SCE_HJ_START=40 +val SCE_HJ_DEFAULT=41 +val SCE_HJ_COMMENT=42 +val SCE_HJ_COMMENTLINE=43 +val SCE_HJ_COMMENTDOC=44 +val SCE_HJ_NUMBER=45 +val SCE_HJ_WORD=46 +val SCE_HJ_KEYWORD=47 +val SCE_HJ_DOUBLESTRING=48 +val SCE_HJ_SINGLESTRING=49 +val SCE_HJ_SYMBOLS=50 +val SCE_HJ_STRINGEOL=51 +val SCE_HJ_REGEX=52 +# ASP Javascript +val SCE_HJA_START=55 +val SCE_HJA_DEFAULT=56 +val SCE_HJA_COMMENT=57 +val SCE_HJA_COMMENTLINE=58 +val SCE_HJA_COMMENTDOC=59 +val SCE_HJA_NUMBER=60 +val SCE_HJA_WORD=61 +val SCE_HJA_KEYWORD=62 +val SCE_HJA_DOUBLESTRING=63 +val SCE_HJA_SINGLESTRING=64 +val SCE_HJA_SYMBOLS=65 +val SCE_HJA_STRINGEOL=66 +val SCE_HJA_REGEX=67 +# Embedded VBScript +val SCE_HB_START=70 +val SCE_HB_DEFAULT=71 +val SCE_HB_COMMENTLINE=72 +val SCE_HB_NUMBER=73 +val SCE_HB_WORD=74 +val SCE_HB_STRING=75 +val SCE_HB_IDENTIFIER=76 +val SCE_HB_STRINGEOL=77 +# ASP VBScript +val SCE_HBA_START=80 +val SCE_HBA_DEFAULT=81 +val SCE_HBA_COMMENTLINE=82 +val SCE_HBA_NUMBER=83 +val SCE_HBA_WORD=84 +val SCE_HBA_STRING=85 +val SCE_HBA_IDENTIFIER=86 +val SCE_HBA_STRINGEOL=87 +# Embedded Python +val SCE_HP_START=90 +val SCE_HP_DEFAULT=91 +val SCE_HP_COMMENTLINE=92 +val SCE_HP_NUMBER=93 +val SCE_HP_STRING=94 +val SCE_HP_CHARACTER=95 +val SCE_HP_WORD=96 +val SCE_HP_TRIPLE=97 +val SCE_HP_TRIPLEDOUBLE=98 +val SCE_HP_CLASSNAME=99 +val SCE_HP_DEFNAME=100 +val SCE_HP_OPERATOR=101 +val SCE_HP_IDENTIFIER=102 +# PHP +val SCE_HPHP_COMPLEX_VARIABLE=104 +# ASP Python +val SCE_HPA_START=105 +val SCE_HPA_DEFAULT=106 +val SCE_HPA_COMMENTLINE=107 +val SCE_HPA_NUMBER=108 +val SCE_HPA_STRING=109 +val SCE_HPA_CHARACTER=110 +val SCE_HPA_WORD=111 +val SCE_HPA_TRIPLE=112 +val SCE_HPA_TRIPLEDOUBLE=113 +val SCE_HPA_CLASSNAME=114 +val SCE_HPA_DEFNAME=115 +val SCE_HPA_OPERATOR=116 +val SCE_HPA_IDENTIFIER=117 +# PHP +val SCE_HPHP_DEFAULT=118 +val SCE_HPHP_HSTRING=119 +val SCE_HPHP_SIMPLESTRING=120 +val SCE_HPHP_WORD=121 +val SCE_HPHP_NUMBER=122 +val SCE_HPHP_VARIABLE=123 +val SCE_HPHP_COMMENT=124 +val SCE_HPHP_COMMENTLINE=125 +val SCE_HPHP_HSTRING_VARIABLE=126 +val SCE_HPHP_OPERATOR=127 +# Lexical states for SCLEX_PERL +lex Perl=SCLEX_PERL SCE_PL_ +val SCE_PL_DEFAULT=0 +val SCE_PL_ERROR=1 +val SCE_PL_COMMENTLINE=2 +val SCE_PL_POD=3 +val SCE_PL_NUMBER=4 +val SCE_PL_WORD=5 +val SCE_PL_STRING=6 +val SCE_PL_CHARACTER=7 +val SCE_PL_PUNCTUATION=8 +val SCE_PL_PREPROCESSOR=9 +val SCE_PL_OPERATOR=10 +val SCE_PL_IDENTIFIER=11 +val SCE_PL_SCALAR=12 +val SCE_PL_ARRAY=13 +val SCE_PL_HASH=14 +val SCE_PL_SYMBOLTABLE=15 +val SCE_PL_VARIABLE_INDEXER=16 +val SCE_PL_REGEX=17 +val SCE_PL_REGSUBST=18 +val SCE_PL_LONGQUOTE=19 +val SCE_PL_BACKTICKS=20 +val SCE_PL_DATASECTION=21 +val SCE_PL_HERE_DELIM=22 +val SCE_PL_HERE_Q=23 +val SCE_PL_HERE_QQ=24 +val SCE_PL_HERE_QX=25 +val SCE_PL_STRING_Q=26 +val SCE_PL_STRING_QQ=27 +val SCE_PL_STRING_QX=28 +val SCE_PL_STRING_QR=29 +val SCE_PL_STRING_QW=30 +val SCE_PL_POD_VERB=31 +val SCE_PL_SUB_PROTOTYPE=40 +val SCE_PL_FORMAT_IDENT=41 +val SCE_PL_FORMAT=42 +val SCE_PL_STRING_VAR=43 +val SCE_PL_XLAT=44 +val SCE_PL_REGEX_VAR=54 +val SCE_PL_REGSUBST_VAR=55 +val SCE_PL_BACKTICKS_VAR=57 +val SCE_PL_HERE_QQ_VAR=61 +val SCE_PL_HERE_QX_VAR=62 +val SCE_PL_STRING_QQ_VAR=64 +val SCE_PL_STRING_QX_VAR=65 +val SCE_PL_STRING_QR_VAR=66 +# Lexical states for SCLEX_RUBY +lex Ruby=SCLEX_RUBY SCE_RB_ +val SCE_RB_DEFAULT=0 +val SCE_RB_ERROR=1 +val SCE_RB_COMMENTLINE=2 +val SCE_RB_POD=3 +val SCE_RB_NUMBER=4 +val SCE_RB_WORD=5 +val SCE_RB_STRING=6 +val SCE_RB_CHARACTER=7 +val SCE_RB_CLASSNAME=8 +val SCE_RB_DEFNAME=9 +val SCE_RB_OPERATOR=10 +val SCE_RB_IDENTIFIER=11 +val SCE_RB_REGEX=12 +val SCE_RB_GLOBAL=13 +val SCE_RB_SYMBOL=14 +val SCE_RB_MODULE_NAME=15 +val SCE_RB_INSTANCE_VAR=16 +val SCE_RB_CLASS_VAR=17 +val SCE_RB_BACKTICKS=18 +val SCE_RB_DATASECTION=19 +val SCE_RB_HERE_DELIM=20 +val SCE_RB_HERE_Q=21 +val SCE_RB_HERE_QQ=22 +val SCE_RB_HERE_QX=23 +val SCE_RB_STRING_Q=24 +val SCE_RB_STRING_QQ=25 +val SCE_RB_STRING_QX=26 +val SCE_RB_STRING_QR=27 +val SCE_RB_STRING_QW=28 +val SCE_RB_WORD_DEMOTED=29 +val SCE_RB_STDIN=30 +val SCE_RB_STDOUT=31 +val SCE_RB_STDERR=40 +val SCE_RB_UPPER_BOUND=41 +# Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC +lex VB=SCLEX_VB SCE_B_ +lex VBScript=SCLEX_VBSCRIPT SCE_B_ +lex PowerBasic=SCLEX_POWERBASIC SCE_B_ +val SCE_B_DEFAULT=0 +val SCE_B_COMMENT=1 +val SCE_B_NUMBER=2 +val SCE_B_KEYWORD=3 +val SCE_B_STRING=4 +val SCE_B_PREPROCESSOR=5 +val SCE_B_OPERATOR=6 +val SCE_B_IDENTIFIER=7 +val SCE_B_DATE=8 +val SCE_B_STRINGEOL=9 +val SCE_B_KEYWORD2=10 +val SCE_B_KEYWORD3=11 +val SCE_B_KEYWORD4=12 +val SCE_B_CONSTANT=13 +val SCE_B_ASM=14 +val SCE_B_LABEL=15 +val SCE_B_ERROR=16 +val SCE_B_HEXNUMBER=17 +val SCE_B_BINNUMBER=18 +# Lexical states for SCLEX_PROPERTIES +lex Properties=SCLEX_PROPERTIES SCE_PROPS_ +val SCE_PROPS_DEFAULT=0 +val SCE_PROPS_COMMENT=1 +val SCE_PROPS_SECTION=2 +val SCE_PROPS_ASSIGNMENT=3 +val SCE_PROPS_DEFVAL=4 +val SCE_PROPS_KEY=5 +# Lexical states for SCLEX_LATEX +lex LaTeX=SCLEX_LATEX SCE_L_ +val SCE_L_DEFAULT=0 +val SCE_L_COMMAND=1 +val SCE_L_TAG=2 +val SCE_L_MATH=3 +val SCE_L_COMMENT=4 +val SCE_L_TAG2=5 +val SCE_L_MATH2=6 +val SCE_L_COMMENT2=7 +val SCE_L_VERBATIM=8 +val SCE_L_SHORTCMD=9 +val SCE_L_SPECIAL=10 +val SCE_L_CMDOPT=11 +val SCE_L_ERROR=12 +# Lexical states for SCLEX_LUA +lex Lua=SCLEX_LUA SCE_LUA_ +val SCE_LUA_DEFAULT=0 +val SCE_LUA_COMMENT=1 +val SCE_LUA_COMMENTLINE=2 +val SCE_LUA_COMMENTDOC=3 +val SCE_LUA_NUMBER=4 +val SCE_LUA_WORD=5 +val SCE_LUA_STRING=6 +val SCE_LUA_CHARACTER=7 +val SCE_LUA_LITERALSTRING=8 +val SCE_LUA_PREPROCESSOR=9 +val SCE_LUA_OPERATOR=10 +val SCE_LUA_IDENTIFIER=11 +val SCE_LUA_STRINGEOL=12 +val SCE_LUA_WORD2=13 +val SCE_LUA_WORD3=14 +val SCE_LUA_WORD4=15 +val SCE_LUA_WORD5=16 +val SCE_LUA_WORD6=17 +val SCE_LUA_WORD7=18 +val SCE_LUA_WORD8=19 +val SCE_LUA_LABEL=20 +# Lexical states for SCLEX_ERRORLIST +lex ErrorList=SCLEX_ERRORLIST SCE_ERR_ +val SCE_ERR_DEFAULT=0 +val SCE_ERR_PYTHON=1 +val SCE_ERR_GCC=2 +val SCE_ERR_MS=3 +val SCE_ERR_CMD=4 +val SCE_ERR_BORLAND=5 +val SCE_ERR_PERL=6 +val SCE_ERR_NET=7 +val SCE_ERR_LUA=8 +val SCE_ERR_CTAG=9 +val SCE_ERR_DIFF_CHANGED=10 +val SCE_ERR_DIFF_ADDITION=11 +val SCE_ERR_DIFF_DELETION=12 +val SCE_ERR_DIFF_MESSAGE=13 +val SCE_ERR_PHP=14 +val SCE_ERR_ELF=15 +val SCE_ERR_IFC=16 +val SCE_ERR_IFORT=17 +val SCE_ERR_ABSF=18 +val SCE_ERR_TIDY=19 +val SCE_ERR_JAVA_STACK=20 +val SCE_ERR_VALUE=21 +val SCE_ERR_GCC_INCLUDED_FROM=22 +# Lexical states for SCLEX_BATCH +lex Batch=SCLEX_BATCH SCE_BAT_ +val SCE_BAT_DEFAULT=0 +val SCE_BAT_COMMENT=1 +val SCE_BAT_WORD=2 +val SCE_BAT_LABEL=3 +val SCE_BAT_HIDE=4 +val SCE_BAT_COMMAND=5 +val SCE_BAT_IDENTIFIER=6 +val SCE_BAT_OPERATOR=7 +# Lexical states for SCLEX_TCMD +lex TCMD=SCLEX_TCMD SCE_TCMD_ +val SCE_TCMD_DEFAULT=0 +val SCE_TCMD_COMMENT=1 +val SCE_TCMD_WORD=2 +val SCE_TCMD_LABEL=3 +val SCE_TCMD_HIDE=4 +val SCE_TCMD_COMMAND=5 +val SCE_TCMD_IDENTIFIER=6 +val SCE_TCMD_OPERATOR=7 +val SCE_TCMD_ENVIRONMENT=8 +val SCE_TCMD_EXPANSION=9 +val SCE_TCMD_CLABEL=10 +# Lexical states for SCLEX_MAKEFILE +lex MakeFile=SCLEX_MAKEFILE SCE_MAKE_ +val SCE_MAKE_DEFAULT=0 +val SCE_MAKE_COMMENT=1 +val SCE_MAKE_PREPROCESSOR=2 +val SCE_MAKE_IDENTIFIER=3 +val SCE_MAKE_OPERATOR=4 +val SCE_MAKE_TARGET=5 +val SCE_MAKE_IDEOL=9 +# Lexical states for SCLEX_DIFF +lex Diff=SCLEX_DIFF SCE_DIFF_ +val SCE_DIFF_DEFAULT=0 +val SCE_DIFF_COMMENT=1 +val SCE_DIFF_COMMAND=2 +val SCE_DIFF_HEADER=3 +val SCE_DIFF_POSITION=4 +val SCE_DIFF_DELETED=5 +val SCE_DIFF_ADDED=6 +val SCE_DIFF_CHANGED=7 +# Lexical states for SCLEX_CONF (Apache Configuration Files Lexer) +lex Conf=SCLEX_CONF SCE_CONF_ +val SCE_CONF_DEFAULT=0 +val SCE_CONF_COMMENT=1 +val SCE_CONF_NUMBER=2 +val SCE_CONF_IDENTIFIER=3 +val SCE_CONF_EXTENSION=4 +val SCE_CONF_PARAMETER=5 +val SCE_CONF_STRING=6 +val SCE_CONF_OPERATOR=7 +val SCE_CONF_IP=8 +val SCE_CONF_DIRECTIVE=9 +# Lexical states for SCLEX_AVE, Avenue +lex Avenue=SCLEX_AVE SCE_AVE_ +val SCE_AVE_DEFAULT=0 +val SCE_AVE_COMMENT=1 +val SCE_AVE_NUMBER=2 +val SCE_AVE_WORD=3 +val SCE_AVE_STRING=6 +val SCE_AVE_ENUM=7 +val SCE_AVE_STRINGEOL=8 +val SCE_AVE_IDENTIFIER=9 +val SCE_AVE_OPERATOR=10 +val SCE_AVE_WORD1=11 +val SCE_AVE_WORD2=12 +val SCE_AVE_WORD3=13 +val SCE_AVE_WORD4=14 +val SCE_AVE_WORD5=15 +val SCE_AVE_WORD6=16 +# Lexical states for SCLEX_ADA +lex Ada=SCLEX_ADA SCE_ADA_ +val SCE_ADA_DEFAULT=0 +val SCE_ADA_WORD=1 +val SCE_ADA_IDENTIFIER=2 +val SCE_ADA_NUMBER=3 +val SCE_ADA_DELIMITER=4 +val SCE_ADA_CHARACTER=5 +val SCE_ADA_CHARACTEREOL=6 +val SCE_ADA_STRING=7 +val SCE_ADA_STRINGEOL=8 +val SCE_ADA_LABEL=9 +val SCE_ADA_COMMENTLINE=10 +val SCE_ADA_ILLEGAL=11 +# Lexical states for SCLEX_BAAN +lex Baan=SCLEX_BAAN SCE_BAAN_ +val SCE_BAAN_DEFAULT=0 +val SCE_BAAN_COMMENT=1 +val SCE_BAAN_COMMENTDOC=2 +val SCE_BAAN_NUMBER=3 +val SCE_BAAN_WORD=4 +val SCE_BAAN_STRING=5 +val SCE_BAAN_PREPROCESSOR=6 +val SCE_BAAN_OPERATOR=7 +val SCE_BAAN_IDENTIFIER=8 +val SCE_BAAN_STRINGEOL=9 +val SCE_BAAN_WORD2=10 +# Lexical states for SCLEX_LISP +lex Lisp=SCLEX_LISP SCE_LISP_ +val SCE_LISP_DEFAULT=0 +val SCE_LISP_COMMENT=1 +val SCE_LISP_NUMBER=2 +val SCE_LISP_KEYWORD=3 +val SCE_LISP_KEYWORD_KW=4 +val SCE_LISP_SYMBOL=5 +val SCE_LISP_STRING=6 +val SCE_LISP_STRINGEOL=8 +val SCE_LISP_IDENTIFIER=9 +val SCE_LISP_OPERATOR=10 +val SCE_LISP_SPECIAL=11 +val SCE_LISP_MULTI_COMMENT=12 +# Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW +lex Eiffel=SCLEX_EIFFEL SCE_EIFFEL_ +lex EiffelKW=SCLEX_EIFFELKW SCE_EIFFEL_ +val SCE_EIFFEL_DEFAULT=0 +val SCE_EIFFEL_COMMENTLINE=1 +val SCE_EIFFEL_NUMBER=2 +val SCE_EIFFEL_WORD=3 +val SCE_EIFFEL_STRING=4 +val SCE_EIFFEL_CHARACTER=5 +val SCE_EIFFEL_OPERATOR=6 +val SCE_EIFFEL_IDENTIFIER=7 +val SCE_EIFFEL_STRINGEOL=8 +# Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer) +lex NNCronTab=SCLEX_NNCRONTAB SCE_NNCRONTAB_ +val SCE_NNCRONTAB_DEFAULT=0 +val SCE_NNCRONTAB_COMMENT=1 +val SCE_NNCRONTAB_TASK=2 +val SCE_NNCRONTAB_SECTION=3 +val SCE_NNCRONTAB_KEYWORD=4 +val SCE_NNCRONTAB_MODIFIER=5 +val SCE_NNCRONTAB_ASTERISK=6 +val SCE_NNCRONTAB_NUMBER=7 +val SCE_NNCRONTAB_STRING=8 +val SCE_NNCRONTAB_ENVIRONMENT=9 +val SCE_NNCRONTAB_IDENTIFIER=10 +# Lexical states for SCLEX_FORTH (Forth Lexer) +lex Forth=SCLEX_FORTH SCE_FORTH_ +val SCE_FORTH_DEFAULT=0 +val SCE_FORTH_COMMENT=1 +val SCE_FORTH_COMMENT_ML=2 +val SCE_FORTH_IDENTIFIER=3 +val SCE_FORTH_CONTROL=4 +val SCE_FORTH_KEYWORD=5 +val SCE_FORTH_DEFWORD=6 +val SCE_FORTH_PREWORD1=7 +val SCE_FORTH_PREWORD2=8 +val SCE_FORTH_NUMBER=9 +val SCE_FORTH_STRING=10 +val SCE_FORTH_LOCALE=11 +# Lexical states for SCLEX_MATLAB +lex MatLab=SCLEX_MATLAB SCE_MATLAB_ +val SCE_MATLAB_DEFAULT=0 +val SCE_MATLAB_COMMENT=1 +val SCE_MATLAB_COMMAND=2 +val SCE_MATLAB_NUMBER=3 +val SCE_MATLAB_KEYWORD=4 +# single quoted string +val SCE_MATLAB_STRING=5 +val SCE_MATLAB_OPERATOR=6 +val SCE_MATLAB_IDENTIFIER=7 +val SCE_MATLAB_DOUBLEQUOTESTRING=8 +# Lexical states for SCLEX_SCRIPTOL +lex Sol=SCLEX_SCRIPTOL SCE_SCRIPTOL_ +val SCE_SCRIPTOL_DEFAULT=0 +val SCE_SCRIPTOL_WHITE=1 +val SCE_SCRIPTOL_COMMENTLINE=2 +val SCE_SCRIPTOL_PERSISTENT=3 +val SCE_SCRIPTOL_CSTYLE=4 +val SCE_SCRIPTOL_COMMENTBLOCK=5 +val SCE_SCRIPTOL_NUMBER=6 +val SCE_SCRIPTOL_STRING=7 +val SCE_SCRIPTOL_CHARACTER=8 +val SCE_SCRIPTOL_STRINGEOL=9 +val SCE_SCRIPTOL_KEYWORD=10 +val SCE_SCRIPTOL_OPERATOR=11 +val SCE_SCRIPTOL_IDENTIFIER=12 +val SCE_SCRIPTOL_TRIPLE=13 +val SCE_SCRIPTOL_CLASSNAME=14 +val SCE_SCRIPTOL_PREPROCESSOR=15 +# Lexical states for SCLEX_ASM +lex Asm=SCLEX_ASM SCE_ASM_ +val SCE_ASM_DEFAULT=0 +val SCE_ASM_COMMENT=1 +val SCE_ASM_NUMBER=2 +val SCE_ASM_STRING=3 +val SCE_ASM_OPERATOR=4 +val SCE_ASM_IDENTIFIER=5 +val SCE_ASM_CPUINSTRUCTION=6 +val SCE_ASM_MATHINSTRUCTION=7 +val SCE_ASM_REGISTER=8 +val SCE_ASM_DIRECTIVE=9 +val SCE_ASM_DIRECTIVEOPERAND=10 +val SCE_ASM_COMMENTBLOCK=11 +val SCE_ASM_CHARACTER=12 +val SCE_ASM_STRINGEOL=13 +val SCE_ASM_EXTINSTRUCTION=14 +val SCE_ASM_COMMENTDIRECTIVE=15 +# Lexical states for SCLEX_FORTRAN +lex Fortran=SCLEX_FORTRAN SCE_F_ +lex F77=SCLEX_F77 SCE_F_ +val SCE_F_DEFAULT=0 +val SCE_F_COMMENT=1 +val SCE_F_NUMBER=2 +val SCE_F_STRING1=3 +val SCE_F_STRING2=4 +val SCE_F_STRINGEOL=5 +val SCE_F_OPERATOR=6 +val SCE_F_IDENTIFIER=7 +val SCE_F_WORD=8 +val SCE_F_WORD2=9 +val SCE_F_WORD3=10 +val SCE_F_PREPROCESSOR=11 +val SCE_F_OPERATOR2=12 +val SCE_F_LABEL=13 +val SCE_F_CONTINUATION=14 +# Lexical states for SCLEX_CSS +lex CSS=SCLEX_CSS SCE_CSS_ +val SCE_CSS_DEFAULT=0 +val SCE_CSS_TAG=1 +val SCE_CSS_CLASS=2 +val SCE_CSS_PSEUDOCLASS=3 +val SCE_CSS_UNKNOWN_PSEUDOCLASS=4 +val SCE_CSS_OPERATOR=5 +val SCE_CSS_IDENTIFIER=6 +val SCE_CSS_UNKNOWN_IDENTIFIER=7 +val SCE_CSS_VALUE=8 +val SCE_CSS_COMMENT=9 +val SCE_CSS_ID=10 +val SCE_CSS_IMPORTANT=11 +val SCE_CSS_DIRECTIVE=12 +val SCE_CSS_DOUBLESTRING=13 +val SCE_CSS_SINGLESTRING=14 +val SCE_CSS_IDENTIFIER2=15 +val SCE_CSS_ATTRIBUTE=16 +val SCE_CSS_IDENTIFIER3=17 +val SCE_CSS_PSEUDOELEMENT=18 +val SCE_CSS_EXTENDED_IDENTIFIER=19 +val SCE_CSS_EXTENDED_PSEUDOCLASS=20 +val SCE_CSS_EXTENDED_PSEUDOELEMENT=21 +val SCE_CSS_MEDIA=22 +val SCE_CSS_VARIABLE=23 +# Lexical states for SCLEX_POV +lex POV=SCLEX_POV SCE_POV_ +val SCE_POV_DEFAULT=0 +val SCE_POV_COMMENT=1 +val SCE_POV_COMMENTLINE=2 +val SCE_POV_NUMBER=3 +val SCE_POV_OPERATOR=4 +val SCE_POV_IDENTIFIER=5 +val SCE_POV_STRING=6 +val SCE_POV_STRINGEOL=7 +val SCE_POV_DIRECTIVE=8 +val SCE_POV_BADDIRECTIVE=9 +val SCE_POV_WORD2=10 +val SCE_POV_WORD3=11 +val SCE_POV_WORD4=12 +val SCE_POV_WORD5=13 +val SCE_POV_WORD6=14 +val SCE_POV_WORD7=15 +val SCE_POV_WORD8=16 +# Lexical states for SCLEX_LOUT +lex LOUT=SCLEX_LOUT SCE_LOUT_ +val SCE_LOUT_DEFAULT=0 +val SCE_LOUT_COMMENT=1 +val SCE_LOUT_NUMBER=2 +val SCE_LOUT_WORD=3 +val SCE_LOUT_WORD2=4 +val SCE_LOUT_WORD3=5 +val SCE_LOUT_WORD4=6 +val SCE_LOUT_STRING=7 +val SCE_LOUT_OPERATOR=8 +val SCE_LOUT_IDENTIFIER=9 +val SCE_LOUT_STRINGEOL=10 +# Lexical states for SCLEX_ESCRIPT +lex ESCRIPT=SCLEX_ESCRIPT SCE_ESCRIPT_ +val SCE_ESCRIPT_DEFAULT=0 +val SCE_ESCRIPT_COMMENT=1 +val SCE_ESCRIPT_COMMENTLINE=2 +val SCE_ESCRIPT_COMMENTDOC=3 +val SCE_ESCRIPT_NUMBER=4 +val SCE_ESCRIPT_WORD=5 +val SCE_ESCRIPT_STRING=6 +val SCE_ESCRIPT_OPERATOR=7 +val SCE_ESCRIPT_IDENTIFIER=8 +val SCE_ESCRIPT_BRACE=9 +val SCE_ESCRIPT_WORD2=10 +val SCE_ESCRIPT_WORD3=11 +# Lexical states for SCLEX_PS +lex PS=SCLEX_PS SCE_PS_ +val SCE_PS_DEFAULT=0 +val SCE_PS_COMMENT=1 +val SCE_PS_DSC_COMMENT=2 +val SCE_PS_DSC_VALUE=3 +val SCE_PS_NUMBER=4 +val SCE_PS_NAME=5 +val SCE_PS_KEYWORD=6 +val SCE_PS_LITERAL=7 +val SCE_PS_IMMEVAL=8 +val SCE_PS_PAREN_ARRAY=9 +val SCE_PS_PAREN_DICT=10 +val SCE_PS_PAREN_PROC=11 +val SCE_PS_TEXT=12 +val SCE_PS_HEXSTRING=13 +val SCE_PS_BASE85STRING=14 +val SCE_PS_BADSTRINGCHAR=15 +# Lexical states for SCLEX_NSIS +lex NSIS=SCLEX_NSIS SCE_NSIS_ +val SCE_NSIS_DEFAULT=0 +val SCE_NSIS_COMMENT=1 +val SCE_NSIS_STRINGDQ=2 +val SCE_NSIS_STRINGLQ=3 +val SCE_NSIS_STRINGRQ=4 +val SCE_NSIS_FUNCTION=5 +val SCE_NSIS_VARIABLE=6 +val SCE_NSIS_LABEL=7 +val SCE_NSIS_USERDEFINED=8 +val SCE_NSIS_SECTIONDEF=9 +val SCE_NSIS_SUBSECTIONDEF=10 +val SCE_NSIS_IFDEFINEDEF=11 +val SCE_NSIS_MACRODEF=12 +val SCE_NSIS_STRINGVAR=13 +val SCE_NSIS_NUMBER=14 +val SCE_NSIS_SECTIONGROUP=15 +val SCE_NSIS_PAGEEX=16 +val SCE_NSIS_FUNCTIONDEF=17 +val SCE_NSIS_COMMENTBOX=18 +# Lexical states for SCLEX_MMIXAL +lex MMIXAL=SCLEX_MMIXAL SCE_MMIXAL_ +val SCE_MMIXAL_LEADWS=0 +val SCE_MMIXAL_COMMENT=1 +val SCE_MMIXAL_LABEL=2 +val SCE_MMIXAL_OPCODE=3 +val SCE_MMIXAL_OPCODE_PRE=4 +val SCE_MMIXAL_OPCODE_VALID=5 +val SCE_MMIXAL_OPCODE_UNKNOWN=6 +val SCE_MMIXAL_OPCODE_POST=7 +val SCE_MMIXAL_OPERANDS=8 +val SCE_MMIXAL_NUMBER=9 +val SCE_MMIXAL_REF=10 +val SCE_MMIXAL_CHAR=11 +val SCE_MMIXAL_STRING=12 +val SCE_MMIXAL_REGISTER=13 +val SCE_MMIXAL_HEX=14 +val SCE_MMIXAL_OPERATOR=15 +val SCE_MMIXAL_SYMBOL=16 +val SCE_MMIXAL_INCLUDE=17 +# Lexical states for SCLEX_CLW +lex Clarion=SCLEX_CLW SCE_CLW_ +val SCE_CLW_DEFAULT=0 +val SCE_CLW_LABEL=1 +val SCE_CLW_COMMENT=2 +val SCE_CLW_STRING=3 +val SCE_CLW_USER_IDENTIFIER=4 +val SCE_CLW_INTEGER_CONSTANT=5 +val SCE_CLW_REAL_CONSTANT=6 +val SCE_CLW_PICTURE_STRING=7 +val SCE_CLW_KEYWORD=8 +val SCE_CLW_COMPILER_DIRECTIVE=9 +val SCE_CLW_RUNTIME_EXPRESSIONS=10 +val SCE_CLW_BUILTIN_PROCEDURES_FUNCTION=11 +val SCE_CLW_STRUCTURE_DATA_TYPE=12 +val SCE_CLW_ATTRIBUTE=13 +val SCE_CLW_STANDARD_EQUATE=14 +val SCE_CLW_ERROR=15 +val SCE_CLW_DEPRECATED=16 +# Lexical states for SCLEX_LOT +lex LOT=SCLEX_LOT SCE_LOT_ +val SCE_LOT_DEFAULT=0 +val SCE_LOT_HEADER=1 +val SCE_LOT_BREAK=2 +val SCE_LOT_SET=3 +val SCE_LOT_PASS=4 +val SCE_LOT_FAIL=5 +val SCE_LOT_ABORT=6 +# Lexical states for SCLEX_YAML +lex YAML=SCLEX_YAML SCE_YAML_ +val SCE_YAML_DEFAULT=0 +val SCE_YAML_COMMENT=1 +val SCE_YAML_IDENTIFIER=2 +val SCE_YAML_KEYWORD=3 +val SCE_YAML_NUMBER=4 +val SCE_YAML_REFERENCE=5 +val SCE_YAML_DOCUMENT=6 +val SCE_YAML_TEXT=7 +val SCE_YAML_ERROR=8 +val SCE_YAML_OPERATOR=9 +# Lexical states for SCLEX_TEX +lex TeX=SCLEX_TEX SCE_TEX_ +val SCE_TEX_DEFAULT=0 +val SCE_TEX_SPECIAL=1 +val SCE_TEX_GROUP=2 +val SCE_TEX_SYMBOL=3 +val SCE_TEX_COMMAND=4 +val SCE_TEX_TEXT=5 +lex Metapost=SCLEX_METAPOST SCE_METAPOST_ +val SCE_METAPOST_DEFAULT=0 +val SCE_METAPOST_SPECIAL=1 +val SCE_METAPOST_GROUP=2 +val SCE_METAPOST_SYMBOL=3 +val SCE_METAPOST_COMMAND=4 +val SCE_METAPOST_TEXT=5 +val SCE_METAPOST_EXTRA=6 +# Lexical states for SCLEX_ERLANG +lex Erlang=SCLEX_ERLANG SCE_ERLANG_ +val SCE_ERLANG_DEFAULT=0 +val SCE_ERLANG_COMMENT=1 +val SCE_ERLANG_VARIABLE=2 +val SCE_ERLANG_NUMBER=3 +val SCE_ERLANG_KEYWORD=4 +val SCE_ERLANG_STRING=5 +val SCE_ERLANG_OPERATOR=6 +val SCE_ERLANG_ATOM=7 +val SCE_ERLANG_FUNCTION_NAME=8 +val SCE_ERLANG_CHARACTER=9 +val SCE_ERLANG_MACRO=10 +val SCE_ERLANG_RECORD=11 +val SCE_ERLANG_PREPROC=12 +val SCE_ERLANG_NODE_NAME=13 +val SCE_ERLANG_COMMENT_FUNCTION=14 +val SCE_ERLANG_COMMENT_MODULE=15 +val SCE_ERLANG_COMMENT_DOC=16 +val SCE_ERLANG_COMMENT_DOC_MACRO=17 +val SCE_ERLANG_ATOM_QUOTED=18 +val SCE_ERLANG_MACRO_QUOTED=19 +val SCE_ERLANG_RECORD_QUOTED=20 +val SCE_ERLANG_NODE_NAME_QUOTED=21 +val SCE_ERLANG_BIFS=22 +val SCE_ERLANG_MODULES=23 +val SCE_ERLANG_MODULES_ATT=24 +val SCE_ERLANG_UNKNOWN=31 +# Lexical states for SCLEX_OCTAVE are identical to MatLab +lex Octave=SCLEX_OCTAVE SCE_MATLAB_ +# Lexical states for SCLEX_MSSQL +lex MSSQL=SCLEX_MSSQL SCE_MSSQL_ +val SCE_MSSQL_DEFAULT=0 +val SCE_MSSQL_COMMENT=1 +val SCE_MSSQL_LINE_COMMENT=2 +val SCE_MSSQL_NUMBER=3 +val SCE_MSSQL_STRING=4 +val SCE_MSSQL_OPERATOR=5 +val SCE_MSSQL_IDENTIFIER=6 +val SCE_MSSQL_VARIABLE=7 +val SCE_MSSQL_COLUMN_NAME=8 +val SCE_MSSQL_STATEMENT=9 +val SCE_MSSQL_DATATYPE=10 +val SCE_MSSQL_SYSTABLE=11 +val SCE_MSSQL_GLOBAL_VARIABLE=12 +val SCE_MSSQL_FUNCTION=13 +val SCE_MSSQL_STORED_PROCEDURE=14 +val SCE_MSSQL_DEFAULT_PREF_DATATYPE=15 +val SCE_MSSQL_COLUMN_NAME_2=16 +# Lexical states for SCLEX_VERILOG +lex Verilog=SCLEX_VERILOG SCE_V_ +val SCE_V_DEFAULT=0 +val SCE_V_COMMENT=1 +val SCE_V_COMMENTLINE=2 +val SCE_V_COMMENTLINEBANG=3 +val SCE_V_NUMBER=4 +val SCE_V_WORD=5 +val SCE_V_STRING=6 +val SCE_V_WORD2=7 +val SCE_V_WORD3=8 +val SCE_V_PREPROCESSOR=9 +val SCE_V_OPERATOR=10 +val SCE_V_IDENTIFIER=11 +val SCE_V_STRINGEOL=12 +val SCE_V_USER=19 +# Lexical states for SCLEX_KIX +lex Kix=SCLEX_KIX SCE_KIX_ +val SCE_KIX_DEFAULT=0 +val SCE_KIX_COMMENT=1 +val SCE_KIX_STRING1=2 +val SCE_KIX_STRING2=3 +val SCE_KIX_NUMBER=4 +val SCE_KIX_VAR=5 +val SCE_KIX_MACRO=6 +val SCE_KIX_KEYWORD=7 +val SCE_KIX_FUNCTIONS=8 +val SCE_KIX_OPERATOR=9 +val SCE_KIX_IDENTIFIER=31 +# Lexical states for SCLEX_GUI4CLI +lex Gui4Cli=SCLEX_GUI4CLI SCE_GC_ +val SCE_GC_DEFAULT=0 +val SCE_GC_COMMENTLINE=1 +val SCE_GC_COMMENTBLOCK=2 +val SCE_GC_GLOBAL=3 +val SCE_GC_EVENT=4 +val SCE_GC_ATTRIBUTE=5 +val SCE_GC_CONTROL=6 +val SCE_GC_COMMAND=7 +val SCE_GC_STRING=8 +val SCE_GC_OPERATOR=9 +# Lexical states for SCLEX_SPECMAN +lex Specman=SCLEX_SPECMAN SCE_SN_ +val SCE_SN_DEFAULT=0 +val SCE_SN_CODE=1 +val SCE_SN_COMMENTLINE=2 +val SCE_SN_COMMENTLINEBANG=3 +val SCE_SN_NUMBER=4 +val SCE_SN_WORD=5 +val SCE_SN_STRING=6 +val SCE_SN_WORD2=7 +val SCE_SN_WORD3=8 +val SCE_SN_PREPROCESSOR=9 +val SCE_SN_OPERATOR=10 +val SCE_SN_IDENTIFIER=11 +val SCE_SN_STRINGEOL=12 +val SCE_SN_REGEXTAG=13 +val SCE_SN_SIGNAL=14 +val SCE_SN_USER=19 +# Lexical states for SCLEX_AU3 +lex Au3=SCLEX_AU3 SCE_AU3_ +val SCE_AU3_DEFAULT=0 +val SCE_AU3_COMMENT=1 +val SCE_AU3_COMMENTBLOCK=2 +val SCE_AU3_NUMBER=3 +val SCE_AU3_FUNCTION=4 +val SCE_AU3_KEYWORD=5 +val SCE_AU3_MACRO=6 +val SCE_AU3_STRING=7 +val SCE_AU3_OPERATOR=8 +val SCE_AU3_VARIABLE=9 +val SCE_AU3_SENT=10 +val SCE_AU3_PREPROCESSOR=11 +val SCE_AU3_SPECIAL=12 +val SCE_AU3_EXPAND=13 +val SCE_AU3_COMOBJ=14 +val SCE_AU3_UDF=15 +# Lexical states for SCLEX_APDL +lex APDL=SCLEX_APDL SCE_APDL_ +val SCE_APDL_DEFAULT=0 +val SCE_APDL_COMMENT=1 +val SCE_APDL_COMMENTBLOCK=2 +val SCE_APDL_NUMBER=3 +val SCE_APDL_STRING=4 +val SCE_APDL_OPERATOR=5 +val SCE_APDL_WORD=6 +val SCE_APDL_PROCESSOR=7 +val SCE_APDL_COMMAND=8 +val SCE_APDL_SLASHCOMMAND=9 +val SCE_APDL_STARCOMMAND=10 +val SCE_APDL_ARGUMENT=11 +val SCE_APDL_FUNCTION=12 +# Lexical states for SCLEX_BASH +lex Bash=SCLEX_BASH SCE_SH_ +val SCE_SH_DEFAULT=0 +val SCE_SH_ERROR=1 +val SCE_SH_COMMENTLINE=2 +val SCE_SH_NUMBER=3 +val SCE_SH_WORD=4 +val SCE_SH_STRING=5 +val SCE_SH_CHARACTER=6 +val SCE_SH_OPERATOR=7 +val SCE_SH_IDENTIFIER=8 +val SCE_SH_SCALAR=9 +val SCE_SH_PARAM=10 +val SCE_SH_BACKTICKS=11 +val SCE_SH_HERE_DELIM=12 +val SCE_SH_HERE_Q=13 +# Lexical states for SCLEX_ASN1 +lex Asn1=SCLEX_ASN1 SCE_ASN1_ +val SCE_ASN1_DEFAULT=0 +val SCE_ASN1_COMMENT=1 +val SCE_ASN1_IDENTIFIER=2 +val SCE_ASN1_STRING=3 +val SCE_ASN1_OID=4 +val SCE_ASN1_SCALAR=5 +val SCE_ASN1_KEYWORD=6 +val SCE_ASN1_ATTRIBUTE=7 +val SCE_ASN1_DESCRIPTOR=8 +val SCE_ASN1_TYPE=9 +val SCE_ASN1_OPERATOR=10 +# Lexical states for SCLEX_VHDL +lex VHDL=SCLEX_VHDL SCE_VHDL_ +val SCE_VHDL_DEFAULT=0 +val SCE_VHDL_COMMENT=1 +val SCE_VHDL_COMMENTLINEBANG=2 +val SCE_VHDL_NUMBER=3 +val SCE_VHDL_STRING=4 +val SCE_VHDL_OPERATOR=5 +val SCE_VHDL_IDENTIFIER=6 +val SCE_VHDL_STRINGEOL=7 +val SCE_VHDL_KEYWORD=8 +val SCE_VHDL_STDOPERATOR=9 +val SCE_VHDL_ATTRIBUTE=10 +val SCE_VHDL_STDFUNCTION=11 +val SCE_VHDL_STDPACKAGE=12 +val SCE_VHDL_STDTYPE=13 +val SCE_VHDL_USERWORD=14 +# Lexical states for SCLEX_CAML +lex Caml=SCLEX_CAML SCE_CAML_ +val SCE_CAML_DEFAULT=0 +val SCE_CAML_IDENTIFIER=1 +val SCE_CAML_TAGNAME=2 +val SCE_CAML_KEYWORD=3 +val SCE_CAML_KEYWORD2=4 +val SCE_CAML_KEYWORD3=5 +val SCE_CAML_LINENUM=6 +val SCE_CAML_OPERATOR=7 +val SCE_CAML_NUMBER=8 +val SCE_CAML_CHAR=9 +val SCE_CAML_WHITE=10 +val SCE_CAML_STRING=11 +val SCE_CAML_COMMENT=12 +val SCE_CAML_COMMENT1=13 +val SCE_CAML_COMMENT2=14 +val SCE_CAML_COMMENT3=15 +# Lexical states for SCLEX_HASKELL +lex Haskell=SCLEX_HASKELL SCE_HA_ +val SCE_HA_DEFAULT=0 +val SCE_HA_IDENTIFIER=1 +val SCE_HA_KEYWORD=2 +val SCE_HA_NUMBER=3 +val SCE_HA_STRING=4 +val SCE_HA_CHARACTER=5 +val SCE_HA_CLASS=6 +val SCE_HA_MODULE=7 +val SCE_HA_CAPITAL=8 +val SCE_HA_DATA=9 +val SCE_HA_IMPORT=10 +val SCE_HA_OPERATOR=11 +val SCE_HA_INSTANCE=12 +val SCE_HA_COMMENTLINE=13 +val SCE_HA_COMMENTBLOCK=14 +val SCE_HA_COMMENTBLOCK2=15 +val SCE_HA_COMMENTBLOCK3=16 +val SCE_HA_PRAGMA=17 +val SCE_HA_PREPROCESSOR=18 +val SCE_HA_STRINGEOL=19 +val SCE_HA_RESERVED_OPERATOR=20 +val SCE_HA_LITERATE_COMMENT=21 +val SCE_HA_LITERATE_CODEDELIM=22 +# Lexical states of SCLEX_TADS3 +lex TADS3=SCLEX_TADS3 SCE_T3_ +val SCE_T3_DEFAULT=0 +val SCE_T3_X_DEFAULT=1 +val SCE_T3_PREPROCESSOR=2 +val SCE_T3_BLOCK_COMMENT=3 +val SCE_T3_LINE_COMMENT=4 +val SCE_T3_OPERATOR=5 +val SCE_T3_KEYWORD=6 +val SCE_T3_NUMBER=7 +val SCE_T3_IDENTIFIER=8 +val SCE_T3_S_STRING=9 +val SCE_T3_D_STRING=10 +val SCE_T3_X_STRING=11 +val SCE_T3_LIB_DIRECTIVE=12 +val SCE_T3_MSG_PARAM=13 +val SCE_T3_HTML_TAG=14 +val SCE_T3_HTML_DEFAULT=15 +val SCE_T3_HTML_STRING=16 +val SCE_T3_USER1=17 +val SCE_T3_USER2=18 +val SCE_T3_USER3=19 +val SCE_T3_BRACE=20 +# Lexical states for SCLEX_REBOL +lex Rebol=SCLEX_REBOL SCE_REBOL_ +val SCE_REBOL_DEFAULT=0 +val SCE_REBOL_COMMENTLINE=1 +val SCE_REBOL_COMMENTBLOCK=2 +val SCE_REBOL_PREFACE=3 +val SCE_REBOL_OPERATOR=4 +val SCE_REBOL_CHARACTER=5 +val SCE_REBOL_QUOTEDSTRING=6 +val SCE_REBOL_BRACEDSTRING=7 +val SCE_REBOL_NUMBER=8 +val SCE_REBOL_PAIR=9 +val SCE_REBOL_TUPLE=10 +val SCE_REBOL_BINARY=11 +val SCE_REBOL_MONEY=12 +val SCE_REBOL_ISSUE=13 +val SCE_REBOL_TAG=14 +val SCE_REBOL_FILE=15 +val SCE_REBOL_EMAIL=16 +val SCE_REBOL_URL=17 +val SCE_REBOL_DATE=18 +val SCE_REBOL_TIME=19 +val SCE_REBOL_IDENTIFIER=20 +val SCE_REBOL_WORD=21 +val SCE_REBOL_WORD2=22 +val SCE_REBOL_WORD3=23 +val SCE_REBOL_WORD4=24 +val SCE_REBOL_WORD5=25 +val SCE_REBOL_WORD6=26 +val SCE_REBOL_WORD7=27 +val SCE_REBOL_WORD8=28 +# Lexical states for SCLEX_SQL +lex SQL=SCLEX_SQL SCE_SQL_ +val SCE_SQL_DEFAULT=0 +val SCE_SQL_COMMENT=1 +val SCE_SQL_COMMENTLINE=2 +val SCE_SQL_COMMENTDOC=3 +val SCE_SQL_NUMBER=4 +val SCE_SQL_WORD=5 +val SCE_SQL_STRING=6 +val SCE_SQL_CHARACTER=7 +val SCE_SQL_SQLPLUS=8 +val SCE_SQL_SQLPLUS_PROMPT=9 +val SCE_SQL_OPERATOR=10 +val SCE_SQL_IDENTIFIER=11 +val SCE_SQL_SQLPLUS_COMMENT=13 +val SCE_SQL_COMMENTLINEDOC=15 +val SCE_SQL_WORD2=16 +val SCE_SQL_COMMENTDOCKEYWORD=17 +val SCE_SQL_COMMENTDOCKEYWORDERROR=18 +val SCE_SQL_USER1=19 +val SCE_SQL_USER2=20 +val SCE_SQL_USER3=21 +val SCE_SQL_USER4=22 +val SCE_SQL_QUOTEDIDENTIFIER=23 +# Lexical states for SCLEX_SMALLTALK +lex Smalltalk=SCLEX_SMALLTALK SCE_ST_ +val SCE_ST_DEFAULT=0 +val SCE_ST_STRING=1 +val SCE_ST_NUMBER=2 +val SCE_ST_COMMENT=3 +val SCE_ST_SYMBOL=4 +val SCE_ST_BINARY=5 +val SCE_ST_BOOL=6 +val SCE_ST_SELF=7 +val SCE_ST_SUPER=8 +val SCE_ST_NIL=9 +val SCE_ST_GLOBAL=10 +val SCE_ST_RETURN=11 +val SCE_ST_SPECIAL=12 +val SCE_ST_KWSEND=13 +val SCE_ST_ASSIGN=14 +val SCE_ST_CHARACTER=15 +val SCE_ST_SPEC_SEL=16 +# Lexical states for SCLEX_FLAGSHIP (clipper) +lex FlagShip=SCLEX_FLAGSHIP SCE_FS_ +val SCE_FS_DEFAULT=0 +val SCE_FS_COMMENT=1 +val SCE_FS_COMMENTLINE=2 +val SCE_FS_COMMENTDOC=3 +val SCE_FS_COMMENTLINEDOC=4 +val SCE_FS_COMMENTDOCKEYWORD=5 +val SCE_FS_COMMENTDOCKEYWORDERROR=6 +val SCE_FS_KEYWORD=7 +val SCE_FS_KEYWORD2=8 +val SCE_FS_KEYWORD3=9 +val SCE_FS_KEYWORD4=10 +val SCE_FS_NUMBER=11 +val SCE_FS_STRING=12 +val SCE_FS_PREPROCESSOR=13 +val SCE_FS_OPERATOR=14 +val SCE_FS_IDENTIFIER=15 +val SCE_FS_DATE=16 +val SCE_FS_STRINGEOL=17 +val SCE_FS_CONSTANT=18 +val SCE_FS_WORDOPERATOR=19 +val SCE_FS_DISABLEDCODE=20 +val SCE_FS_DEFAULT_C=21 +val SCE_FS_COMMENTDOC_C=22 +val SCE_FS_COMMENTLINEDOC_C=23 +val SCE_FS_KEYWORD_C=24 +val SCE_FS_KEYWORD2_C=25 +val SCE_FS_NUMBER_C=26 +val SCE_FS_STRING_C=27 +val SCE_FS_PREPROCESSOR_C=28 +val SCE_FS_OPERATOR_C=29 +val SCE_FS_IDENTIFIER_C=30 +val SCE_FS_STRINGEOL_C=31 +# Lexical states for SCLEX_CSOUND +lex Csound=SCLEX_CSOUND SCE_CSOUND_ +val SCE_CSOUND_DEFAULT=0 +val SCE_CSOUND_COMMENT=1 +val SCE_CSOUND_NUMBER=2 +val SCE_CSOUND_OPERATOR=3 +val SCE_CSOUND_INSTR=4 +val SCE_CSOUND_IDENTIFIER=5 +val SCE_CSOUND_OPCODE=6 +val SCE_CSOUND_HEADERSTMT=7 +val SCE_CSOUND_USERKEYWORD=8 +val SCE_CSOUND_COMMENTBLOCK=9 +val SCE_CSOUND_PARAM=10 +val SCE_CSOUND_ARATE_VAR=11 +val SCE_CSOUND_KRATE_VAR=12 +val SCE_CSOUND_IRATE_VAR=13 +val SCE_CSOUND_GLOBAL_VAR=14 +val SCE_CSOUND_STRINGEOL=15 +# Lexical states for SCLEX_INNOSETUP +lex Inno=SCLEX_INNOSETUP SCE_INNO_ +val SCE_INNO_DEFAULT=0 +val SCE_INNO_COMMENT=1 +val SCE_INNO_KEYWORD=2 +val SCE_INNO_PARAMETER=3 +val SCE_INNO_SECTION=4 +val SCE_INNO_PREPROC=5 +val SCE_INNO_INLINE_EXPANSION=6 +val SCE_INNO_COMMENT_PASCAL=7 +val SCE_INNO_KEYWORD_PASCAL=8 +val SCE_INNO_KEYWORD_USER=9 +val SCE_INNO_STRING_DOUBLE=10 +val SCE_INNO_STRING_SINGLE=11 +val SCE_INNO_IDENTIFIER=12 +# Lexical states for SCLEX_OPAL +lex Opal=SCLEX_OPAL SCE_OPAL_ +val SCE_OPAL_SPACE=0 +val SCE_OPAL_COMMENT_BLOCK=1 +val SCE_OPAL_COMMENT_LINE=2 +val SCE_OPAL_INTEGER=3 +val SCE_OPAL_KEYWORD=4 +val SCE_OPAL_SORT=5 +val SCE_OPAL_STRING=6 +val SCE_OPAL_PAR=7 +val SCE_OPAL_BOOL_CONST=8 +val SCE_OPAL_DEFAULT=32 +# Lexical states for SCLEX_SPICE +lex Spice=SCLEX_SPICE SCE_SPICE_ +val SCE_SPICE_DEFAULT=0 +val SCE_SPICE_IDENTIFIER=1 +val SCE_SPICE_KEYWORD=2 +val SCE_SPICE_KEYWORD2=3 +val SCE_SPICE_KEYWORD3=4 +val SCE_SPICE_NUMBER=5 +val SCE_SPICE_DELIMITER=6 +val SCE_SPICE_VALUE=7 +val SCE_SPICE_COMMENTLINE=8 +# Lexical states for SCLEX_CMAKE +lex CMAKE=SCLEX_CMAKE SCE_CMAKE_ +val SCE_CMAKE_DEFAULT=0 +val SCE_CMAKE_COMMENT=1 +val SCE_CMAKE_STRINGDQ=2 +val SCE_CMAKE_STRINGLQ=3 +val SCE_CMAKE_STRINGRQ=4 +val SCE_CMAKE_COMMANDS=5 +val SCE_CMAKE_PARAMETERS=6 +val SCE_CMAKE_VARIABLE=7 +val SCE_CMAKE_USERDEFINED=8 +val SCE_CMAKE_WHILEDEF=9 +val SCE_CMAKE_FOREACHDEF=10 +val SCE_CMAKE_IFDEFINEDEF=11 +val SCE_CMAKE_MACRODEF=12 +val SCE_CMAKE_STRINGVAR=13 +val SCE_CMAKE_NUMBER=14 +# Lexical states for SCLEX_GAP +lex Gap=SCLEX_GAP SCE_GAP_ +val SCE_GAP_DEFAULT=0 +val SCE_GAP_IDENTIFIER=1 +val SCE_GAP_KEYWORD=2 +val SCE_GAP_KEYWORD2=3 +val SCE_GAP_KEYWORD3=4 +val SCE_GAP_KEYWORD4=5 +val SCE_GAP_STRING=6 +val SCE_GAP_CHAR=7 +val SCE_GAP_OPERATOR=8 +val SCE_GAP_COMMENT=9 +val SCE_GAP_NUMBER=10 +val SCE_GAP_STRINGEOL=11 +# Lexical state for SCLEX_PLM +lex PLM=SCLEX_PLM SCE_PLM_ +val SCE_PLM_DEFAULT=0 +val SCE_PLM_COMMENT=1 +val SCE_PLM_STRING=2 +val SCE_PLM_NUMBER=3 +val SCE_PLM_IDENTIFIER=4 +val SCE_PLM_OPERATOR=5 +val SCE_PLM_CONTROL=6 +val SCE_PLM_KEYWORD=7 +# Lexical state for SCLEX_PROGRESS +lex Progress=SCLEX_PROGRESS SCE_4GL_ +val SCE_4GL_DEFAULT=0 +val SCE_4GL_NUMBER=1 +val SCE_4GL_WORD=2 +val SCE_4GL_STRING=3 +val SCE_4GL_CHARACTER=4 +val SCE_4GL_PREPROCESSOR=5 +val SCE_4GL_OPERATOR=6 +val SCE_4GL_IDENTIFIER=7 +val SCE_4GL_BLOCK=8 +val SCE_4GL_END=9 +val SCE_4GL_COMMENT1=10 +val SCE_4GL_COMMENT2=11 +val SCE_4GL_COMMENT3=12 +val SCE_4GL_COMMENT4=13 +val SCE_4GL_COMMENT5=14 +val SCE_4GL_COMMENT6=15 +val SCE_4GL_DEFAULT_=16 +val SCE_4GL_NUMBER_=17 +val SCE_4GL_WORD_=18 +val SCE_4GL_STRING_=19 +val SCE_4GL_CHARACTER_=20 +val SCE_4GL_PREPROCESSOR_=21 +val SCE_4GL_OPERATOR_=22 +val SCE_4GL_IDENTIFIER_=23 +val SCE_4GL_BLOCK_=24 +val SCE_4GL_END_=25 +val SCE_4GL_COMMENT1_=26 +val SCE_4GL_COMMENT2_=27 +val SCE_4GL_COMMENT3_=28 +val SCE_4GL_COMMENT4_=29 +val SCE_4GL_COMMENT5_=30 +val SCE_4GL_COMMENT6_=31 +# Lexical states for SCLEX_ABAQUS +lex ABAQUS=SCLEX_ABAQUS SCE_ABAQUS_ +val SCE_ABAQUS_DEFAULT=0 +val SCE_ABAQUS_COMMENT=1 +val SCE_ABAQUS_COMMENTBLOCK=2 +val SCE_ABAQUS_NUMBER=3 +val SCE_ABAQUS_STRING=4 +val SCE_ABAQUS_OPERATOR=5 +val SCE_ABAQUS_WORD=6 +val SCE_ABAQUS_PROCESSOR=7 +val SCE_ABAQUS_COMMAND=8 +val SCE_ABAQUS_SLASHCOMMAND=9 +val SCE_ABAQUS_STARCOMMAND=10 +val SCE_ABAQUS_ARGUMENT=11 +val SCE_ABAQUS_FUNCTION=12 +# Lexical states for SCLEX_ASYMPTOTE +lex Asymptote=SCLEX_ASYMPTOTE SCE_ASY_ +val SCE_ASY_DEFAULT=0 +val SCE_ASY_COMMENT=1 +val SCE_ASY_COMMENTLINE=2 +val SCE_ASY_NUMBER=3 +val SCE_ASY_WORD=4 +val SCE_ASY_STRING=5 +val SCE_ASY_CHARACTER=6 +val SCE_ASY_OPERATOR=7 +val SCE_ASY_IDENTIFIER=8 +val SCE_ASY_STRINGEOL=9 +val SCE_ASY_COMMENTLINEDOC=10 +val SCE_ASY_WORD2=11 +# Lexical states for SCLEX_R +lex R=SCLEX_R SCE_R_ +val SCE_R_DEFAULT=0 +val SCE_R_COMMENT=1 +val SCE_R_KWORD=2 +val SCE_R_BASEKWORD=3 +val SCE_R_OTHERKWORD=4 +val SCE_R_NUMBER=5 +val SCE_R_STRING=6 +val SCE_R_STRING2=7 +val SCE_R_OPERATOR=8 +val SCE_R_IDENTIFIER=9 +val SCE_R_INFIX=10 +val SCE_R_INFIXEOL=11 +# Lexical state for SCLEX_MAGIKSF +lex MagikSF=SCLEX_MAGIKSF SCE_MAGIK_ +val SCE_MAGIK_DEFAULT=0 +val SCE_MAGIK_COMMENT=1 +val SCE_MAGIK_HYPER_COMMENT=16 +val SCE_MAGIK_STRING=2 +val SCE_MAGIK_CHARACTER=3 +val SCE_MAGIK_NUMBER=4 +val SCE_MAGIK_IDENTIFIER=5 +val SCE_MAGIK_OPERATOR=6 +val SCE_MAGIK_FLOW=7 +val SCE_MAGIK_CONTAINER=8 +val SCE_MAGIK_BRACKET_BLOCK=9 +val SCE_MAGIK_BRACE_BLOCK=10 +val SCE_MAGIK_SQBRACKET_BLOCK=11 +val SCE_MAGIK_UNKNOWN_KEYWORD=12 +val SCE_MAGIK_KEYWORD=13 +val SCE_MAGIK_PRAGMA=14 +val SCE_MAGIK_SYMBOL=15 +# Lexical state for SCLEX_POWERSHELL +lex PowerShell=SCLEX_POWERSHELL SCE_POWERSHELL_ +val SCE_POWERSHELL_DEFAULT=0 +val SCE_POWERSHELL_COMMENT=1 +val SCE_POWERSHELL_STRING=2 +val SCE_POWERSHELL_CHARACTER=3 +val SCE_POWERSHELL_NUMBER=4 +val SCE_POWERSHELL_VARIABLE=5 +val SCE_POWERSHELL_OPERATOR=6 +val SCE_POWERSHELL_IDENTIFIER=7 +val SCE_POWERSHELL_KEYWORD=8 +val SCE_POWERSHELL_CMDLET=9 +val SCE_POWERSHELL_ALIAS=10 +val SCE_POWERSHELL_FUNCTION=11 +val SCE_POWERSHELL_USER1=12 +val SCE_POWERSHELL_COMMENTSTREAM=13 +val SCE_POWERSHELL_HERE_STRING=14 +val SCE_POWERSHELL_HERE_CHARACTER=15 +val SCE_POWERSHELL_COMMENTDOCKEYWORD=16 +# Lexical state for SCLEX_MYSQL +lex MySQL=SCLEX_MYSQL SCE_MYSQL_ +val SCE_MYSQL_DEFAULT=0 +val SCE_MYSQL_COMMENT=1 +val SCE_MYSQL_COMMENTLINE=2 +val SCE_MYSQL_VARIABLE=3 +val SCE_MYSQL_SYSTEMVARIABLE=4 +val SCE_MYSQL_KNOWNSYSTEMVARIABLE=5 +val SCE_MYSQL_NUMBER=6 +val SCE_MYSQL_MAJORKEYWORD=7 +val SCE_MYSQL_KEYWORD=8 +val SCE_MYSQL_DATABASEOBJECT=9 +val SCE_MYSQL_PROCEDUREKEYWORD=10 +val SCE_MYSQL_STRING=11 +val SCE_MYSQL_SQSTRING=12 +val SCE_MYSQL_DQSTRING=13 +val SCE_MYSQL_OPERATOR=14 +val SCE_MYSQL_FUNCTION=15 +val SCE_MYSQL_IDENTIFIER=16 +val SCE_MYSQL_QUOTEDIDENTIFIER=17 +val SCE_MYSQL_USER1=18 +val SCE_MYSQL_USER2=19 +val SCE_MYSQL_USER3=20 +val SCE_MYSQL_HIDDENCOMMAND=21 +val SCE_MYSQL_PLACEHOLDER=22 +# Lexical state for SCLEX_PO +lex Po=SCLEX_PO SCE_PO_ +val SCE_PO_DEFAULT=0 +val SCE_PO_COMMENT=1 +val SCE_PO_MSGID=2 +val SCE_PO_MSGID_TEXT=3 +val SCE_PO_MSGSTR=4 +val SCE_PO_MSGSTR_TEXT=5 +val SCE_PO_MSGCTXT=6 +val SCE_PO_MSGCTXT_TEXT=7 +val SCE_PO_FUZZY=8 +val SCE_PO_PROGRAMMER_COMMENT=9 +val SCE_PO_REFERENCE=10 +val SCE_PO_FLAGS=11 +val SCE_PO_MSGID_TEXT_EOL=12 +val SCE_PO_MSGSTR_TEXT_EOL=13 +val SCE_PO_MSGCTXT_TEXT_EOL=14 +val SCE_PO_ERROR=15 +# Lexical states for SCLEX_PASCAL +lex Pascal=SCLEX_PASCAL SCE_PAS_ +val SCE_PAS_DEFAULT=0 +val SCE_PAS_IDENTIFIER=1 +val SCE_PAS_COMMENT=2 +val SCE_PAS_COMMENT2=3 +val SCE_PAS_COMMENTLINE=4 +val SCE_PAS_PREPROCESSOR=5 +val SCE_PAS_PREPROCESSOR2=6 +val SCE_PAS_NUMBER=7 +val SCE_PAS_HEXNUMBER=8 +val SCE_PAS_WORD=9 +val SCE_PAS_STRING=10 +val SCE_PAS_STRINGEOL=11 +val SCE_PAS_CHARACTER=12 +val SCE_PAS_OPERATOR=13 +val SCE_PAS_ASM=14 +# Lexical state for SCLEX_SORCUS +lex SORCUS=SCLEX_SORCUS SCE_SORCUS_ +val SCE_SORCUS_DEFAULT=0 +val SCE_SORCUS_COMMAND=1 +val SCE_SORCUS_PARAMETER=2 +val SCE_SORCUS_COMMENTLINE=3 +val SCE_SORCUS_STRING=4 +val SCE_SORCUS_STRINGEOL=5 +val SCE_SORCUS_IDENTIFIER=6 +val SCE_SORCUS_OPERATOR=7 +val SCE_SORCUS_NUMBER=8 +val SCE_SORCUS_CONSTANT=9 +# Lexical state for SCLEX_POWERPRO +lex PowerPro=SCLEX_POWERPRO SCE_POWERPRO_ +val SCE_POWERPRO_DEFAULT=0 +val SCE_POWERPRO_COMMENTBLOCK=1 +val SCE_POWERPRO_COMMENTLINE=2 +val SCE_POWERPRO_NUMBER=3 +val SCE_POWERPRO_WORD=4 +val SCE_POWERPRO_WORD2=5 +val SCE_POWERPRO_WORD3=6 +val SCE_POWERPRO_WORD4=7 +val SCE_POWERPRO_DOUBLEQUOTEDSTRING=8 +val SCE_POWERPRO_SINGLEQUOTEDSTRING=9 +val SCE_POWERPRO_LINECONTINUE=10 +val SCE_POWERPRO_OPERATOR=11 +val SCE_POWERPRO_IDENTIFIER=12 +val SCE_POWERPRO_STRINGEOL=13 +val SCE_POWERPRO_VERBATIM=14 +val SCE_POWERPRO_ALTQUOTE=15 +val SCE_POWERPRO_FUNCTION=16 +# Lexical states for SCLEX_SML +lex SML=SCLEX_SML SCE_SML_ +val SCE_SML_DEFAULT=0 +val SCE_SML_IDENTIFIER=1 +val SCE_SML_TAGNAME=2 +val SCE_SML_KEYWORD=3 +val SCE_SML_KEYWORD2=4 +val SCE_SML_KEYWORD3=5 +val SCE_SML_LINENUM=6 +val SCE_SML_OPERATOR=7 +val SCE_SML_NUMBER=8 +val SCE_SML_CHAR=9 +val SCE_SML_STRING=11 +val SCE_SML_COMMENT=12 +val SCE_SML_COMMENT1=13 +val SCE_SML_COMMENT2=14 +val SCE_SML_COMMENT3=15 +# Lexical state for SCLEX_MARKDOWN +lex Markdown=SCLEX_MARKDOWN SCE_MARKDOWN_ +val SCE_MARKDOWN_DEFAULT=0 +val SCE_MARKDOWN_LINE_BEGIN=1 +val SCE_MARKDOWN_STRONG1=2 +val SCE_MARKDOWN_STRONG2=3 +val SCE_MARKDOWN_EM1=4 +val SCE_MARKDOWN_EM2=5 +val SCE_MARKDOWN_HEADER1=6 +val SCE_MARKDOWN_HEADER2=7 +val SCE_MARKDOWN_HEADER3=8 +val SCE_MARKDOWN_HEADER4=9 +val SCE_MARKDOWN_HEADER5=10 +val SCE_MARKDOWN_HEADER6=11 +val SCE_MARKDOWN_PRECHAR=12 +val SCE_MARKDOWN_ULIST_ITEM=13 +val SCE_MARKDOWN_OLIST_ITEM=14 +val SCE_MARKDOWN_BLOCKQUOTE=15 +val SCE_MARKDOWN_STRIKEOUT=16 +val SCE_MARKDOWN_HRULE=17 +val SCE_MARKDOWN_LINK=18 +val SCE_MARKDOWN_CODE=19 +val SCE_MARKDOWN_CODE2=20 +val SCE_MARKDOWN_CODEBK=21 +# Lexical state for SCLEX_TXT2TAGS +lex Txt2tags=SCLEX_TXT2TAGS SCE_TXT2TAGS_ +val SCE_TXT2TAGS_DEFAULT=0 +val SCE_TXT2TAGS_LINE_BEGIN=1 +val SCE_TXT2TAGS_STRONG1=2 +val SCE_TXT2TAGS_STRONG2=3 +val SCE_TXT2TAGS_EM1=4 +val SCE_TXT2TAGS_EM2=5 +val SCE_TXT2TAGS_HEADER1=6 +val SCE_TXT2TAGS_HEADER2=7 +val SCE_TXT2TAGS_HEADER3=8 +val SCE_TXT2TAGS_HEADER4=9 +val SCE_TXT2TAGS_HEADER5=10 +val SCE_TXT2TAGS_HEADER6=11 +val SCE_TXT2TAGS_PRECHAR=12 +val SCE_TXT2TAGS_ULIST_ITEM=13 +val SCE_TXT2TAGS_OLIST_ITEM=14 +val SCE_TXT2TAGS_BLOCKQUOTE=15 +val SCE_TXT2TAGS_STRIKEOUT=16 +val SCE_TXT2TAGS_HRULE=17 +val SCE_TXT2TAGS_LINK=18 +val SCE_TXT2TAGS_CODE=19 +val SCE_TXT2TAGS_CODE2=20 +val SCE_TXT2TAGS_CODEBK=21 +val SCE_TXT2TAGS_COMMENT=22 +val SCE_TXT2TAGS_OPTION=23 +val SCE_TXT2TAGS_PREPROC=24 +val SCE_TXT2TAGS_POSTPROC=25 +# Lexical states for SCLEX_A68K +lex A68k=SCLEX_A68K SCE_A68K_ +val SCE_A68K_DEFAULT=0 +val SCE_A68K_COMMENT=1 +val SCE_A68K_NUMBER_DEC=2 +val SCE_A68K_NUMBER_BIN=3 +val SCE_A68K_NUMBER_HEX=4 +val SCE_A68K_STRING1=5 +val SCE_A68K_OPERATOR=6 +val SCE_A68K_CPUINSTRUCTION=7 +val SCE_A68K_EXTINSTRUCTION=8 +val SCE_A68K_REGISTER=9 +val SCE_A68K_DIRECTIVE=10 +val SCE_A68K_MACRO_ARG=11 +val SCE_A68K_LABEL=12 +val SCE_A68K_STRING2=13 +val SCE_A68K_IDENTIFIER=14 +val SCE_A68K_MACRO_DECLARATION=15 +val SCE_A68K_COMMENT_WORD=16 +val SCE_A68K_COMMENT_SPECIAL=17 +val SCE_A68K_COMMENT_DOXYGEN=18 +# Lexical states for SCLEX_MODULA +lex Modula=SCLEX_MODULA SCE_MODULA_ +val SCE_MODULA_DEFAULT=0 +val SCE_MODULA_COMMENT=1 +val SCE_MODULA_DOXYCOMM=2 +val SCE_MODULA_DOXYKEY=3 +val SCE_MODULA_KEYWORD=4 +val SCE_MODULA_RESERVED=5 +val SCE_MODULA_NUMBER=6 +val SCE_MODULA_BASENUM=7 +val SCE_MODULA_FLOAT=8 +val SCE_MODULA_STRING=9 +val SCE_MODULA_STRSPEC=10 +val SCE_MODULA_CHAR=11 +val SCE_MODULA_CHARSPEC=12 +val SCE_MODULA_PROC=13 +val SCE_MODULA_PRAGMA=14 +val SCE_MODULA_PRGKEY=15 +val SCE_MODULA_OPERATOR=16 +val SCE_MODULA_BADSTR=17 +# Lexical states for SCLEX_COFFEESCRIPT +lex CoffeeScript=SCLEX_COFFEESCRIPT SCE_COFFEESCRIPT_ +val SCE_COFFEESCRIPT_DEFAULT=0 +val SCE_COFFEESCRIPT_COMMENT=1 +val SCE_COFFEESCRIPT_COMMENTLINE=2 +val SCE_COFFEESCRIPT_COMMENTDOC=3 +val SCE_COFFEESCRIPT_NUMBER=4 +val SCE_COFFEESCRIPT_WORD=5 +val SCE_COFFEESCRIPT_STRING=6 +val SCE_COFFEESCRIPT_CHARACTER=7 +val SCE_COFFEESCRIPT_UUID=8 +val SCE_COFFEESCRIPT_PREPROCESSOR=9 +val SCE_COFFEESCRIPT_OPERATOR=10 +val SCE_COFFEESCRIPT_IDENTIFIER=11 +val SCE_COFFEESCRIPT_STRINGEOL=12 +val SCE_COFFEESCRIPT_VERBATIM=13 +val SCE_COFFEESCRIPT_REGEX=14 +val SCE_COFFEESCRIPT_COMMENTLINEDOC=15 +val SCE_COFFEESCRIPT_WORD2=16 +val SCE_COFFEESCRIPT_COMMENTDOCKEYWORD=17 +val SCE_COFFEESCRIPT_COMMENTDOCKEYWORDERROR=18 +val SCE_COFFEESCRIPT_GLOBALCLASS=19 +val SCE_COFFEESCRIPT_STRINGRAW=20 +val SCE_COFFEESCRIPT_TRIPLEVERBATIM=21 +val SCE_COFFEESCRIPT_HASHQUOTEDSTRING=22 +val SCE_COFFEESCRIPT_COMMENTBLOCK=22 +val SCE_COFFEESCRIPT_VERBOSE_REGEX=23 +val SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT=24 +# Lexical states for SCLEX_AVS +lex AVS=SCLEX_AVS SCE_AVS_ +val SCE_AVS_DEFAULT=0 +val SCE_AVS_COMMENTBLOCK=1 +val SCE_AVS_COMMENTBLOCKN=2 +val SCE_AVS_COMMENTLINE=3 +val SCE_AVS_NUMBER=4 +val SCE_AVS_OPERATOR=5 +val SCE_AVS_IDENTIFIER=6 +val SCE_AVS_STRING=7 +val SCE_AVS_TRIPLESTRING=8 +val SCE_AVS_KEYWORD=9 +val SCE_AVS_FILTER=10 +val SCE_AVS_PLUGIN=11 +val SCE_AVS_FUNCTION=12 +val SCE_AVS_CLIPPROP=13 +val SCE_AVS_USERDFN=14 +# Lexical states for SCLEX_ECL +lex ECL=SCLEX_ECL SCE_ECL_ +val SCE_ECL_DEFAULT=0 +val SCE_ECL_COMMENT=1 +val SCE_ECL_COMMENTLINE=2 +val SCE_ECL_NUMBER=3 +val SCE_ECL_STRING=4 +val SCE_ECL_WORD0=5 +val SCE_ECL_OPERATOR=6 +val SCE_ECL_CHARACTER=7 +val SCE_ECL_UUID=8 +val SCE_ECL_PREPROCESSOR=9 +val SCE_ECL_UNKNOWN=10 +val SCE_ECL_IDENTIFIER=11 +val SCE_ECL_STRINGEOL=12 +val SCE_ECL_VERBATIM=13 +val SCE_ECL_REGEX=14 +val SCE_ECL_COMMENTLINEDOC=15 +val SCE_ECL_WORD1=16 +val SCE_ECL_COMMENTDOCKEYWORD=17 +val SCE_ECL_COMMENTDOCKEYWORDERROR=18 +val SCE_ECL_WORD2=19 +val SCE_ECL_WORD3=20 +val SCE_ECL_WORD4=21 +val SCE_ECL_WORD5=22 +val SCE_ECL_COMMENTDOC=23 +val SCE_ECL_ADDED=24 +val SCE_ECL_DELETED=25 +val SCE_ECL_CHANGED=26 +val SCE_ECL_MOVED=27 +# Lexical states for SCLEX_OSCRIPT +lex OScript=SCLEX_OSCRIPT SCE_OSCRIPT_ +val SCE_OSCRIPT_DEFAULT=0 +val SCE_OSCRIPT_LINE_COMMENT=1 +val SCE_OSCRIPT_BLOCK_COMMENT=2 +val SCE_OSCRIPT_DOC_COMMENT=3 +val SCE_OSCRIPT_PREPROCESSOR=4 +val SCE_OSCRIPT_NUMBER=5 +val SCE_OSCRIPT_SINGLEQUOTE_STRING=6 +val SCE_OSCRIPT_DOUBLEQUOTE_STRING=7 +val SCE_OSCRIPT_CONSTANT=8 +val SCE_OSCRIPT_IDENTIFIER=9 +val SCE_OSCRIPT_GLOBAL=10 +val SCE_OSCRIPT_KEYWORD=11 +val SCE_OSCRIPT_OPERATOR=12 +val SCE_OSCRIPT_LABEL=13 +val SCE_OSCRIPT_TYPE=14 +val SCE_OSCRIPT_FUNCTION=15 +val SCE_OSCRIPT_OBJECT=16 +val SCE_OSCRIPT_PROPERTY=17 +val SCE_OSCRIPT_METHOD=18 +# Lexical states for SCLEX_VISUALPROLOG +lex VisualProlog=SCLEX_VISUALPROLOG SCE_VISUALPROLOG_ +val SCE_VISUALPROLOG_DEFAULT=0 +val SCE_VISUALPROLOG_KEY_MAJOR=1 +val SCE_VISUALPROLOG_KEY_MINOR=2 +val SCE_VISUALPROLOG_KEY_DIRECTIVE=3 +val SCE_VISUALPROLOG_COMMENT_BLOCK=4 +val SCE_VISUALPROLOG_COMMENT_LINE=5 +val SCE_VISUALPROLOG_COMMENT_KEY=6 +val SCE_VISUALPROLOG_COMMENT_KEY_ERROR=7 +val SCE_VISUALPROLOG_IDENTIFIER=8 +val SCE_VISUALPROLOG_VARIABLE=9 +val SCE_VISUALPROLOG_ANONYMOUS=10 +val SCE_VISUALPROLOG_NUMBER=11 +val SCE_VISUALPROLOG_OPERATOR=12 +val SCE_VISUALPROLOG_CHARACTER=13 +val SCE_VISUALPROLOG_CHARACTER_TOO_MANY=14 +val SCE_VISUALPROLOG_CHARACTER_ESCAPE_ERROR=15 +val SCE_VISUALPROLOG_STRING=16 +val SCE_VISUALPROLOG_STRING_ESCAPE=17 +val SCE_VISUALPROLOG_STRING_ESCAPE_ERROR=18 +val SCE_VISUALPROLOG_STRING_EOL_OPEN=19 +val SCE_VISUALPROLOG_STRING_VERBATIM=20 +val SCE_VISUALPROLOG_STRING_VERBATIM_SPECIAL=21 +val SCE_VISUALPROLOG_STRING_VERBATIM_EOL=22 +# Lexical states for SCLEX_STTXT +lex StructuredText=SCLEX_STTXT SCE_STTXT_ +val SCE_STTXT_DEFAULT=0 +val SCE_STTXT_COMMENT=1 +val SCE_STTXT_COMMENTLINE=2 +val SCE_STTXT_KEYWORD=3 +val SCE_STTXT_TYPE=4 +val SCE_STTXT_FUNCTION=5 +val SCE_STTXT_FB=6 +val SCE_STTXT_NUMBER=7 +val SCE_STTXT_HEXNUMBER=8 +val SCE_STTXT_PRAGMA=9 +val SCE_STTXT_OPERATOR=10 +val SCE_STTXT_CHARACTER=11 +val SCE_STTXT_STRING1=12 +val SCE_STTXT_STRING2=13 +val SCE_STTXT_STRINGEOL=14 +val SCE_STTXT_IDENTIFIER=15 +val SCE_STTXT_DATETIME=16 +val SCE_STTXT_VARS=17 +val SCE_STTXT_PRAGMAS=18 +# Lexical states for SCLEX_KVIRC +lex KVIrc=SCLEX_KVIRC SCLEX_KVIRC_ +val SCE_KVIRC_DEFAULT=0 +val SCE_KVIRC_COMMENT=1 +val SCE_KVIRC_COMMENTBLOCK=2 +val SCE_KVIRC_STRING=3 +val SCE_KVIRC_WORD=4 +val SCE_KVIRC_KEYWORD=5 +val SCE_KVIRC_FUNCTION_KEYWORD=6 +val SCE_KVIRC_FUNCTION=7 +val SCE_KVIRC_VARIABLE=8 +val SCE_KVIRC_NUMBER=9 +val SCE_KVIRC_OPERATOR=10 +val SCE_KVIRC_STRING_FUNCTION=11 +val SCE_KVIRC_STRING_VARIABLE=12 +# Lexical states for SCLEX_RUST +lex Rust=SCLEX_RUST SCE_RUST_ +val SCE_RUST_DEFAULT=0 +val SCE_RUST_COMMENTBLOCK=1 +val SCE_RUST_COMMENTLINE=2 +val SCE_RUST_COMMENTBLOCKDOC=3 +val SCE_RUST_COMMENTLINEDOC=4 +val SCE_RUST_NUMBER=5 +val SCE_RUST_WORD=6 +val SCE_RUST_WORD2=7 +val SCE_RUST_WORD3=8 +val SCE_RUST_WORD4=9 +val SCE_RUST_WORD5=10 +val SCE_RUST_WORD6=11 +val SCE_RUST_WORD7=12 +val SCE_RUST_STRING=13 +val SCE_RUST_STRINGR=14 +val SCE_RUST_CHARACTER=15 +val SCE_RUST_OPERATOR=16 +val SCE_RUST_IDENTIFIER=17 +val SCE_RUST_LIFETIME=18 +val SCE_RUST_MACRO=19 +val SCE_RUST_LEXERROR=20 + +# Events + +evt void StyleNeeded=2000(int position) +evt void CharAdded=2001(int ch) +evt void SavePointReached=2002(void) +evt void SavePointLeft=2003(void) +evt void ModifyAttemptRO=2004(void) +# GTK+ Specific to work around focus and accelerator problems: +evt void Key=2005(int ch, int modifiers) +evt void DoubleClick=2006(int modifiers, int position, int line) +evt void UpdateUI=2007(int updated) +evt void Modified=2008(int position, int modificationType, string text, int length, int linesAdded, int line, int foldLevelNow, int foldLevelPrev, int token, int annotationLinesAdded) +evt void MacroRecord=2009(int message, int wParam, int lParam) +evt void MarginClick=2010(int modifiers, int position, int margin) +evt void NeedShown=2011(int position, int length) +evt void Painted=2013(void) +evt void UserListSelection=2014(int listType, string text, int position) +evt void URIDropped=2015(string text) +evt void DwellStart=2016(int position, int x, int y) +evt void DwellEnd=2017(int position, int x, int y) +evt void Zoom=2018(void) +evt void HotSpotClick=2019(int modifiers, int position) +evt void HotSpotDoubleClick=2020(int modifiers, int position) +evt void CallTipClick=2021(int position) +evt void AutoCSelection=2022(string text, int position) +evt void IndicatorClick=2023(int modifiers, int position) +evt void IndicatorRelease=2024(int modifiers, int position) +evt void AutoCCancelled=2025(void) +evt void AutoCCharDeleted=2026(void) +evt void HotSpotReleaseClick=2027(int modifiers, int position) +evt void FocusIn=2028(void) +evt void FocusOut=2029(void) + +cat Provisional + +# Line end types which may be used in addition to LF, CR, and CRLF +# SC_LINE_END_TYPE_UNICODE includes U+2028 Line Separator, +# U+2029 Paragraph Separator, and U+0085 Next Line +enu LineEndType=SC_LINE_END_TYPE_ +val SC_LINE_END_TYPE_DEFAULT=0 +val SC_LINE_END_TYPE_UNICODE=1 + +# Set the line end types that the application wants to use. May not be used if incompatible with lexer or encoding. +set void SetLineEndTypesAllowed=2656(int lineEndBitSet,) + +# Get the line end types currently allowed. +get int GetLineEndTypesAllowed=2657(,) + +# Get the line end types currently recognised. May be a subset of the allowed types due to lexer limitation. +get int GetLineEndTypesActive=2658(,) + +# Bit set of LineEndType enumertion for which line ends beyond the standard +# LF, CR, and CRLF are supported by the lexer. +get int GetLineEndTypesSupported=4018(,) + +# Allocate a set of sub styles for a particular base style, returning start of range +fun int AllocateSubStyles=4020(int styleBase, int numberStyles) + +# The starting style number for the sub styles associated with a base style +get int GetSubStylesStart=4021(int styleBase,) + +# The number of sub styles associated with a base style +get int GetSubStylesLength=4022(int styleBase,) + +# For a sub style, return the base style, else return the argument. +get int GetStyleFromSubStyle=4027(int subStyle,) + +# For a secondary style, return the primary style, else return the argument. +get int GetPrimaryStyleFromStyle=4028(int style,) + +# Free allocated sub styles +fun void FreeSubStyles=4023(,) + +# Set the identifiers that are shown in a particular style +set void SetIdentifiers=4024(int style, string identifiers) + +# Where styles are duplicated by a feature such as active/inactive code +# return the distance between the two types. +get int DistanceToSecondaryStyles=4025(,) + +# Get the set of base styles that can be extended with sub styles +get int GetSubStyleBases=4026(, stringresult styles) + +cat Deprecated + +# Deprecated in 2.21 +# The SC_CP_DBCS value can be used to indicate a DBCS mode for GTK+. +val SC_CP_DBCS=1 + +# Deprecated in 2.30 + +# In palette mode? +get bool GetUsePalette=2139(,) + +# In palette mode, Scintilla uses the environment's palette calls to display +# more colours. This may lead to ugly displays. +set void SetUsePalette=2039(bool usePalette,) diff --git a/include/ScintillaWidget.h b/include/ScintillaWidget.h new file mode 100644 index 0000000..f8cd212 --- /dev/null +++ b/include/ScintillaWidget.h @@ -0,0 +1,51 @@ +/* Scintilla source code edit control */ +/** @file ScintillaWidget.h + ** Definition of Scintilla widget for GTK+. + ** Only needed by GTK+ code but is harmless on other platforms. + **/ +/* Copyright 1998-2001 by Neil Hodgson + * The License.txt file describes the conditions under which this software may be distributed. */ + +#ifndef SCINTILLAWIDGET_H +#define SCINTILLAWIDGET_H + +#if defined(GTK) + +#ifdef __cplusplus +extern "C" { +#endif + +#define SCINTILLA(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, scintilla_get_type (), ScintillaObject) +#define SCINTILLA_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, scintilla_get_type (), ScintillaClass) +#define IS_SCINTILLA(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, scintilla_get_type ()) + +typedef struct _ScintillaObject ScintillaObject; +typedef struct _ScintillaClass ScintillaClass; + +struct _ScintillaObject { + GtkContainer cont; + void *pscin; +}; + +struct _ScintillaClass { + GtkContainerClass parent_class; + + void (* command) (ScintillaObject *ttt); + void (* notify) (ScintillaObject *ttt); +}; + +GType scintilla_get_type (void); +GtkWidget* scintilla_new (void); +void scintilla_set_id (ScintillaObject *sci, uptr_t id); +sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam); +void scintilla_release_resources(void); + +#define SCINTILLA_NOTIFY "sci-notify" + +#ifdef __cplusplus +} +#endif + +#endif + +#endif diff --git a/lexers/LexA68k.cpp b/lexers/LexA68k.cpp new file mode 100644 index 0000000..0b60019 --- /dev/null +++ b/lexers/LexA68k.cpp @@ -0,0 +1,347 @@ +// Scintilla source code edit control +/** @file LexA68k.cxx + ** Lexer for Assembler, just for the MASM syntax + ** Written by Martial Demolins AKA Folco + **/ +// Copyright 2010 Martial Demolins +// The License.txt file describes the conditions under which this software +// may be distributed. + + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + + +// Return values for GetOperatorType +#define NO_OPERATOR 0 +#define OPERATOR_1CHAR 1 +#define OPERATOR_2CHAR 2 + + +/** + * IsIdentifierStart + * + * Return true if the given char is a valid identifier first char + */ + +static inline bool IsIdentifierStart (const int ch) +{ + return (isalpha(ch) || (ch == '_') || (ch == '\\')); +} + + +/** + * IsIdentifierChar + * + * Return true if the given char is a valid identifier char + */ + +static inline bool IsIdentifierChar (const int ch) +{ + return (isalnum(ch) || (ch == '_') || (ch == '@') || (ch == ':') || (ch == '.')); +} + + +/** + * GetOperatorType + * + * Return: + * NO_OPERATOR if char is not an operator + * OPERATOR_1CHAR if the operator is one char long + * OPERATOR_2CHAR if the operator is two chars long + */ + +static inline int GetOperatorType (const int ch1, const int ch2) +{ + int OpType = NO_OPERATOR; + + if ((ch1 == '+') || (ch1 == '-') || (ch1 == '*') || (ch1 == '/') || (ch1 == '#') || + (ch1 == '(') || (ch1 == ')') || (ch1 == '~') || (ch1 == '&') || (ch1 == '|') || (ch1 == ',')) + OpType = OPERATOR_1CHAR; + + else if ((ch1 == ch2) && (ch1 == '<' || ch1 == '>')) + OpType = OPERATOR_2CHAR; + + return OpType; +} + + +/** + * IsBin + * + * Return true if the given char is 0 or 1 + */ + +static inline bool IsBin (const int ch) +{ + return (ch == '0') || (ch == '1'); +} + + +/** + * IsDoxygenChar + * + * Return true if the char may be part of a Doxygen keyword + */ + +static inline bool IsDoxygenChar (const int ch) +{ + return isalpha(ch) || (ch == '$') || (ch == '[') || (ch == ']') || (ch == '{') || (ch == '}'); +} + + +/** + * ColouriseA68kDoc + * + * Main function, which colourises a 68k source + */ + +static void ColouriseA68kDoc (unsigned int startPos, int length, int initStyle, WordList *keywordlists[], Accessor &styler) +{ + // Used to buffer a string, to be able to compare it using built-in functions + char Buffer[100]; + + + // Used to know the length of an operator + int OpType; + + + // Get references to keywords lists + WordList &cpuInstruction = *keywordlists[0]; + WordList ®isters = *keywordlists[1]; + WordList &directive = *keywordlists[2]; + WordList &extInstruction = *keywordlists[3]; + WordList &alert = *keywordlists[4]; + WordList &doxygenKeyword = *keywordlists[5]; + + + // Instanciate a context for our source + StyleContext sc(startPos, length, initStyle, styler); + + + /************************************************************ + * + * Parse the source + * + ************************************************************/ + + for ( ; sc.More(); sc.Forward()) + { + /************************************************************ + * + * A style always terminates at the end of a line, even for + * comments (no multi-lines comments) + * + ************************************************************/ + if (sc.atLineStart) { + sc.SetState(SCE_A68K_DEFAULT); + } + + + /************************************************************ + * + * If we are not in "default style", check if the style continues + * In this case, we just have to loop + * + ************************************************************/ + + if (sc.state != SCE_A68K_DEFAULT) + { + if ( ((sc.state == SCE_A68K_NUMBER_DEC) && isdigit(sc.ch)) // Decimal number + || ((sc.state == SCE_A68K_NUMBER_BIN) && IsBin(sc.ch)) // Binary number + || ((sc.state == SCE_A68K_NUMBER_HEX) && isxdigit(sc.ch)) // Hexa number + || ((sc.state == SCE_A68K_MACRO_ARG) && isdigit(sc.ch)) // Macro argument + || ((sc.state == SCE_A68K_STRING1) && (sc.ch != '\'')) // String single-quoted + || ((sc.state == SCE_A68K_STRING2) && (sc.ch != '\"')) // String double-quoted + || ((sc.state == SCE_A68K_MACRO_DECLARATION) && IsIdentifierChar(sc.ch)) // Macro declaration (or global label, we don't know at this point) + || ((sc.state == SCE_A68K_IDENTIFIER) && IsIdentifierChar(sc.ch)) // Identifier + || ((sc.state == SCE_A68K_LABEL) && IsIdentifierChar(sc.ch)) // Label (local) + || ((sc.state == SCE_A68K_COMMENT_DOXYGEN) && IsDoxygenChar(sc.ch)) // Doxygen keyword + || ((sc.state == SCE_A68K_COMMENT_SPECIAL) && isalpha(sc.ch)) // Alert + || ((sc.state == SCE_A68K_COMMENT) && !isalpha(sc.ch) && (sc.ch != '\\'))) // Normal comment + { + continue; + } + + /************************************************************ + * + * Check if current state terminates + * + ************************************************************/ + + // Strings: include terminal ' or " in the current string by skipping it + if ((sc.state == SCE_A68K_STRING1) || (sc.state == SCE_A68K_STRING2)) { + sc.Forward(); + } + + + // If a macro declaration was terminated with ':', it was a label + else if ((sc.state == SCE_A68K_MACRO_DECLARATION) && (sc.chPrev == ':')) { + sc.ChangeState(SCE_A68K_LABEL); + } + + + // If it wasn't a Doxygen keyword, change it to normal comment + else if (sc.state == SCE_A68K_COMMENT_DOXYGEN) { + sc.GetCurrent(Buffer, sizeof(Buffer)); + if (!doxygenKeyword.InList(Buffer)) { + sc.ChangeState(SCE_A68K_COMMENT); + } + sc.SetState(SCE_A68K_COMMENT); + continue; + } + + + // If it wasn't an Alert, change it to normal comment + else if (sc.state == SCE_A68K_COMMENT_SPECIAL) { + sc.GetCurrent(Buffer, sizeof(Buffer)); + if (!alert.InList(Buffer)) { + sc.ChangeState(SCE_A68K_COMMENT); + } + // Reset style to normal comment, or to Doxygen keyword if it begins with '\' + if (sc.ch == '\\') { + sc.SetState(SCE_A68K_COMMENT_DOXYGEN); + } + else { + sc.SetState(SCE_A68K_COMMENT); + } + continue; + } + + + // If we are in a comment, it's a Doxygen keyword or an Alert + else if (sc.state == SCE_A68K_COMMENT) { + if (sc.ch == '\\') { + sc.SetState(SCE_A68K_COMMENT_DOXYGEN); + } + else { + sc.SetState(SCE_A68K_COMMENT_SPECIAL); + } + continue; + } + + + // Check if we are at the end of an identifier + // In this case, colourise it if was a keyword. + else if ((sc.state == SCE_A68K_IDENTIFIER) && !IsIdentifierChar(sc.ch)) { + sc.GetCurrentLowered(Buffer, sizeof(Buffer)); // Buffer the string of the current context + if (cpuInstruction.InList(Buffer)) { // And check if it belongs to a keyword list + sc.ChangeState(SCE_A68K_CPUINSTRUCTION); + } + else if (extInstruction.InList(Buffer)) { + sc.ChangeState(SCE_A68K_EXTINSTRUCTION); + } + else if (registers.InList(Buffer)) { + sc.ChangeState(SCE_A68K_REGISTER); + } + else if (directive.InList(Buffer)) { + sc.ChangeState(SCE_A68K_DIRECTIVE); + } + } + + // All special contexts are now handled.Come back to default style + sc.SetState(SCE_A68K_DEFAULT); + } + + + /************************************************************ + * + * Check if we must enter a new state + * + ************************************************************/ + + // Something which begins at the beginning of a line, and with + // - '\' + an identifier start char, or + // - '\\@' + an identifier start char + // is a local label (second case is used for macro local labels). We set it already as a label, it can't be a macro/equ declaration + if (sc.atLineStart && (sc.ch < 0x80) && IsIdentifierStart(sc.chNext) && (sc.ch == '\\')) { + sc.SetState(SCE_A68K_LABEL); + } + + if (sc.atLineStart && (sc.ch < 0x80) && (sc.ch == '\\') && (sc.chNext == '\\')) { + sc.Forward(2); + if ((sc.ch == '@') && IsIdentifierStart(sc.chNext)) { + sc.ChangeState(SCE_A68K_LABEL); + sc.SetState(SCE_A68K_LABEL); + } + } + + // Label and macro identifiers start at the beginning of a line + // We set both as a macro id, but if it wasn't one (':' at the end), + // it will be changed as a label. + if (sc.atLineStart && (sc.ch < 0x80) && IsIdentifierStart(sc.ch)) { + sc.SetState(SCE_A68K_MACRO_DECLARATION); + } + else if ((sc.ch < 0x80) && (sc.ch == ';')) { // Default: alert in a comment. If it doesn't match + sc.SetState(SCE_A68K_COMMENT); // with an alert, it will be toggle to a normal comment + } + else if ((sc.ch < 0x80) && isdigit(sc.ch)) { // Decimal numbers haven't prefix + sc.SetState(SCE_A68K_NUMBER_DEC); + } + else if ((sc.ch < 0x80) && (sc.ch == '%')) { // Binary numbers are prefixed with '%' + sc.SetState(SCE_A68K_NUMBER_BIN); + } + else if ((sc.ch < 0x80) && (sc.ch == '$')) { // Hexadecimal numbers are prefixed with '$' + sc.SetState(SCE_A68K_NUMBER_HEX); + } + else if ((sc.ch < 0x80) && (sc.ch == '\'')) { // String (single-quoted) + sc.SetState(SCE_A68K_STRING1); + } + else if ((sc.ch < 0x80) && (sc.ch == '\"')) { // String (double-quoted) + sc.SetState(SCE_A68K_STRING2); + } + else if ((sc.ch < 0x80) && (sc.ch == '\\') && (isdigit(sc.chNext))) { // Replacement symbols in macro are prefixed with '\' + sc.SetState(SCE_A68K_MACRO_ARG); + } + else if ((sc.ch < 0x80) && IsIdentifierStart(sc.ch)) { // An identifier: constant, label, etc... + sc.SetState(SCE_A68K_IDENTIFIER); + } + else { + if (sc.ch < 0x80) { + OpType = GetOperatorType(sc.ch, sc.chNext); // Check if current char is an operator + if (OpType != NO_OPERATOR) { + sc.SetState(SCE_A68K_OPERATOR); + if (OpType == OPERATOR_2CHAR) { // Check if the operator is 2 bytes long + sc.ForwardSetState(SCE_A68K_OPERATOR); // (>> or <<) + } + } + } + } + } // End of for() + sc.Complete(); +} + + +// Names of the keyword lists + +static const char * const a68kWordListDesc[] = +{ + "CPU instructions", + "Registers", + "Directives", + "Extended instructions", + "Comment special words", + "Doxygen keywords", + 0 +}; + +LexerModule lmA68k(SCLEX_A68K, ColouriseA68kDoc, "a68k", 0, a68kWordListDesc); diff --git a/lexers/LexAPDL.cpp b/lexers/LexAPDL.cpp new file mode 100644 index 0000000..7d65a56 --- /dev/null +++ b/lexers/LexAPDL.cpp @@ -0,0 +1,259 @@ +// Scintilla source code edit control +/** @file LexAPDL.cxx + ** Lexer for APDL. Based on the lexer for Assembler by The Black Horus. + ** By Hadar Raz. + **/ +// Copyright 1998-2003 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80 && (isalnum(ch) || ch == '_')); +} + +static inline bool IsAnOperator(char ch) { + // '.' left out as it is used to make up numbers + if (ch == '*' || ch == '/' || ch == '-' || ch == '+' || + ch == '(' || ch == ')' || ch == '=' || ch == '^' || + ch == '[' || ch == ']' || ch == '<' || ch == '&' || + ch == '>' || ch == ',' || ch == '|' || ch == '~' || + ch == '$' || ch == ':' || ch == '%') + return true; + return false; +} + +static void ColouriseAPDLDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + + int stringStart = ' '; + + WordList &processors = *keywordlists[0]; + WordList &commands = *keywordlists[1]; + WordList &slashcommands = *keywordlists[2]; + WordList &starcommands = *keywordlists[3]; + WordList &arguments = *keywordlists[4]; + WordList &functions = *keywordlists[5]; + + // Do not leak onto next line + initStyle = SCE_APDL_DEFAULT; + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + // Determine if the current state should terminate. + if (sc.state == SCE_APDL_NUMBER) { + if (!(IsADigit(sc.ch) || sc.ch == '.' || (sc.ch == 'e' || sc.ch == 'E') || + ((sc.ch == '+' || sc.ch == '-') && (sc.chPrev == 'e' || sc.chPrev == 'E')))) { + sc.SetState(SCE_APDL_DEFAULT); + } + } else if (sc.state == SCE_APDL_COMMENT) { + if (sc.atLineEnd) { + sc.SetState(SCE_APDL_DEFAULT); + } + } else if (sc.state == SCE_APDL_COMMENTBLOCK) { + if (sc.atLineEnd) { + if (sc.ch == '\r') { + sc.Forward(); + } + sc.ForwardSetState(SCE_APDL_DEFAULT); + } + } else if (sc.state == SCE_APDL_STRING) { + if (sc.atLineEnd) { + sc.SetState(SCE_APDL_DEFAULT); + } else if ((sc.ch == '\'' && stringStart == '\'') || (sc.ch == '\"' && stringStart == '\"')) { + sc.ForwardSetState(SCE_APDL_DEFAULT); + } + } else if (sc.state == SCE_APDL_WORD) { + if (!IsAWordChar(sc.ch)) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + if (processors.InList(s)) { + sc.ChangeState(SCE_APDL_PROCESSOR); + } else if (slashcommands.InList(s)) { + sc.ChangeState(SCE_APDL_SLASHCOMMAND); + } else if (starcommands.InList(s)) { + sc.ChangeState(SCE_APDL_STARCOMMAND); + } else if (commands.InList(s)) { + sc.ChangeState(SCE_APDL_COMMAND); + } else if (arguments.InList(s)) { + sc.ChangeState(SCE_APDL_ARGUMENT); + } else if (functions.InList(s)) { + sc.ChangeState(SCE_APDL_FUNCTION); + } + sc.SetState(SCE_APDL_DEFAULT); + } + } else if (sc.state == SCE_APDL_OPERATOR) { + if (!IsAnOperator(static_cast(sc.ch))) { + sc.SetState(SCE_APDL_DEFAULT); + } + } + + // Determine if a new state should be entered. + if (sc.state == SCE_APDL_DEFAULT) { + if (sc.ch == '!' && sc.chNext == '!') { + sc.SetState(SCE_APDL_COMMENTBLOCK); + } else if (sc.ch == '!') { + sc.SetState(SCE_APDL_COMMENT); + } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { + sc.SetState(SCE_APDL_NUMBER); + } else if (sc.ch == '\'' || sc.ch == '\"') { + sc.SetState(SCE_APDL_STRING); + stringStart = sc.ch; + } else if (IsAWordChar(sc.ch) || ((sc.ch == '*' || sc.ch == '/') && !isgraph(sc.chPrev))) { + sc.SetState(SCE_APDL_WORD); + } else if (IsAnOperator(static_cast(sc.ch))) { + sc.SetState(SCE_APDL_OPERATOR); + } + } + } + sc.Complete(); +} + +//------------------------------------------------------------------------------ +// 06-27-07 Sergio Lucato +// - Included code folding for Ansys APDL lexer +// - Copyied from LexBasic.cxx and modified for APDL +//------------------------------------------------------------------------------ + +/* Bits: + * 1 - whitespace + * 2 - operator + * 4 - identifier + * 8 - decimal digit + * 16 - hex digit + * 32 - bin digit + */ +static int character_classification[128] = +{ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 2, 0, 2, 2, 2, 2, 2, 2, 2, 6, 2, 2, 2, 10, 6, + 60, 60, 28, 28, 28, 28, 28, 28, 28, 28, 2, 2, 2, 2, 2, 2, + 2, 20, 20, 20, 20, 20, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 4, + 2, 20, 20, 20, 20, 20, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 0 +}; + +static bool IsSpace(int c) { + return c < 128 && (character_classification[c] & 1); +} + +static bool IsIdentifier(int c) { + return c < 128 && (character_classification[c] & 4); +} + +static int LowerCase(int c) +{ + if (c >= 'A' && c <= 'Z') + return 'a' + c - 'A'; + return c; +} + +static int CheckAPDLFoldPoint(char const *token, int &level) { + if (!strcmp(token, "*if") || + !strcmp(token, "*do") || + !strcmp(token, "*dowhile") ) { + level |= SC_FOLDLEVELHEADERFLAG; + return 1; + } + if (!strcmp(token, "*endif") || + !strcmp(token, "*enddo") ) { + return -1; + } + return 0; +} + +static void FoldAPDLDoc(unsigned int startPos, int length, int, + WordList *[], Accessor &styler) { + + int line = styler.GetLine(startPos); + int level = styler.LevelAt(line); + int go = 0, done = 0; + int endPos = startPos + length; + char word[256]; + int wordlen = 0; + int i; + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + // Scan for tokens at the start of the line (they may include + // whitespace, for tokens like "End Function" + for (i = startPos; i < endPos; i++) { + int c = styler.SafeGetCharAt(i); + if (!done && !go) { + if (wordlen) { // are we scanning a token already? + word[wordlen] = static_cast(LowerCase(c)); + if (!IsIdentifier(c)) { // done with token + word[wordlen] = '\0'; + go = CheckAPDLFoldPoint(word, level); + if (!go) { + // Treat any whitespace as single blank, for + // things like "End Function". + if (IsSpace(c) && IsIdentifier(word[wordlen - 1])) { + word[wordlen] = ' '; + if (wordlen < 255) + wordlen++; + } + else // done with this line + done = 1; + } + } else if (wordlen < 255) { + wordlen++; + } + } else { // start scanning at first non-whitespace character + if (!IsSpace(c)) { + if (IsIdentifier(c)) { + word[0] = static_cast(LowerCase(c)); + wordlen = 1; + } else // done with this line + done = 1; + } + } + } + if (c == '\n') { // line end + if (!done && wordlen == 0 && foldCompact) // line was only space + level |= SC_FOLDLEVELWHITEFLAG; + if (level != styler.LevelAt(line)) + styler.SetLevel(line, level); + level += go; + line++; + // reset state + wordlen = 0; + level &= ~SC_FOLDLEVELHEADERFLAG; + level &= ~SC_FOLDLEVELWHITEFLAG; + go = 0; + done = 0; + } + } +} + +static const char * const apdlWordListDesc[] = { + "processors", + "commands", + "slashommands", + "starcommands", + "arguments", + "functions", + 0 +}; + +LexerModule lmAPDL(SCLEX_APDL, ColouriseAPDLDoc, "apdl", FoldAPDLDoc, apdlWordListDesc); diff --git a/lexers/LexASY.cpp b/lexers/LexASY.cpp new file mode 100644 index 0000000..9e3470c --- /dev/null +++ b/lexers/LexASY.cpp @@ -0,0 +1,271 @@ +// Scintilla source code edit control +//Author: instanton (email: soft_share126com) +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static void ColouriseAsyDoc(unsigned int startPos, int length, int initStyle, + WordList *keywordlists[], Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + + CharacterSet setWordStart(CharacterSet::setAlpha, "_", 0x80, true); + CharacterSet setWord(CharacterSet::setAlphaNum, "._", 0x80, true); + + int visibleChars = 0; + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + + if (sc.atLineStart) { + if (sc.state == SCE_ASY_STRING) { + sc.SetState(SCE_ASY_STRING); + } + visibleChars = 0; + } + + if (sc.ch == '\\') { + if (sc.chNext == '\n' || sc.chNext == '\r') { + sc.Forward(); + if (sc.ch == '\r' && sc.chNext == '\n') { + sc.Forward(); + } +// continuationLine = true; + continue; + } + } + + // Determine if the current state should terminate. + switch (sc.state) { + case SCE_ASY_OPERATOR: + sc.SetState(SCE_ASY_DEFAULT); + break; + case SCE_ASY_NUMBER: + if (!setWord.Contains(sc.ch)) { + sc.SetState(SCE_ASY_DEFAULT); + } + break; + case SCE_ASY_IDENTIFIER: + if (!setWord.Contains(sc.ch) || (sc.ch == '.')) { + char s[1000]; + sc.GetCurrentLowered(s, sizeof(s)); + if (keywords.InList(s)) { + sc.ChangeState(SCE_ASY_WORD); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_ASY_WORD2); + } + sc.SetState(SCE_ASY_DEFAULT); + } + break; + case SCE_ASY_COMMENT: + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_ASY_DEFAULT); + } + break; + case SCE_ASY_COMMENTLINE: + if (sc.atLineStart) { + sc.SetState(SCE_ASY_DEFAULT); + } + break; + case SCE_ASY_STRING: + if (sc.atLineEnd) { + sc.ChangeState(SCE_ASY_STRINGEOL); + } else if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\"') { + sc.ForwardSetState(SCE_ASY_DEFAULT); + } + break; + case SCE_ASY_CHARACTER: + if (sc.atLineEnd) { + sc.ChangeState(SCE_ASY_STRINGEOL); + } else if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\'') { + sc.ForwardSetState(SCE_ASY_DEFAULT); + } + break; + } + + // Determine if a new state should be entered. + if (sc.state == SCE_ASY_DEFAULT) { + if (setWordStart.Contains(sc.ch) || (sc.ch == '@')) { + sc.SetState(SCE_ASY_IDENTIFIER); + } else if (sc.Match('/', '*')) { + sc.SetState(SCE_ASY_COMMENT); + sc.Forward(); // + } else if (sc.Match('/', '/')) { + sc.SetState(SCE_ASY_COMMENTLINE); + } else if (sc.ch == '\"') { + sc.SetState(SCE_ASY_STRING); + } else if (sc.ch == '\'') { + sc.SetState(SCE_ASY_CHARACTER); + } else if (sc.ch == '#' && visibleChars == 0) { + do { + sc.Forward(); + } while ((sc.ch == ' ' || sc.ch == '\t') && sc.More()); + if (sc.atLineEnd) { + sc.SetState(SCE_ASY_DEFAULT); + } + } else if (isoperator(static_cast(sc.ch))) { + sc.SetState(SCE_ASY_OPERATOR); + } + } + + } + sc.Complete(); +} + +static bool IsAsyCommentStyle(int style) { + return style == SCE_ASY_COMMENT; +} + + +static inline bool isASYidentifier(int ch) { + return + ((ch >= 'a') && (ch <= 'z')) || ((ch >= 'A') && (ch <= 'Z')) ; +} + +static int ParseASYWord(unsigned int pos, Accessor &styler, char *word) +{ + int length=0; + char ch=styler.SafeGetCharAt(pos); + *word=0; + + while(isASYidentifier(ch) && length<100){ + word[length]=ch; + length++; + ch=styler.SafeGetCharAt(pos+length); + } + word[length]=0; + return length; +} + +static bool IsASYDrawingLine(int line, Accessor &styler) { + int pos = styler.LineStart(line); + int eol_pos = styler.LineStart(line + 1) - 1; + + int startpos = pos; + char buffer[100]=""; + + while (startpos 0) + levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; + int levelMinCurrent = levelCurrent; + int levelNext = levelCurrent; + char chNext = styler[startPos]; + int styleNext = styler.StyleAt(startPos); + int style = initStyle; + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int stylePrev = style; + style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if (foldComment && IsAsyCommentStyle(style)) { + if (!IsAsyCommentStyle(stylePrev) && (stylePrev != SCE_ASY_COMMENTLINEDOC)) { + levelNext++; + } else if (!IsAsyCommentStyle(styleNext) && (styleNext != SCE_ASY_COMMENTLINEDOC) && !atEOL) { + levelNext--; + } + } + if (style == SCE_ASY_OPERATOR) { + if (ch == '{') { + if (levelMinCurrent > levelNext) { + levelMinCurrent = levelNext; + } + levelNext++; + } else if (ch == '}') { + levelNext--; + } + } + + if (atEOL && IsASYDrawingLine(lineCurrent, styler)){ + if (lineCurrent==0 && IsASYDrawingLine(lineCurrent + 1, styler)) + levelNext++; + else if (lineCurrent!=0 && !IsASYDrawingLine(lineCurrent - 1, styler) + && IsASYDrawingLine(lineCurrent + 1, styler) + ) + levelNext++; + else if (lineCurrent!=0 && IsASYDrawingLine(lineCurrent - 1, styler) && + !IsASYDrawingLine(lineCurrent+1, styler)) + levelNext--; + } + + if (atEOL) { + int levelUse = levelCurrent; + if (foldAtElse) { + levelUse = levelMinCurrent; + } + int lev = levelUse | levelNext << 16; + if (visibleChars == 0 && foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if (levelUse < levelNext) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelCurrent = levelNext; + levelMinCurrent = levelCurrent; + visibleChars = 0; + } + if (!IsASpace(ch)) + visibleChars++; + } +} + +static const char * const asyWordLists[] = { + "Primary keywords and identifiers", + "Secondary keywords and identifiers", + 0, + }; + +LexerModule lmASY(SCLEX_ASYMPTOTE, ColouriseAsyDoc, "asy", FoldAsyDoc, asyWordLists); diff --git a/lexers/LexAU3.cpp b/lexers/LexAU3.cpp new file mode 100644 index 0000000..68f1798 --- /dev/null +++ b/lexers/LexAU3.cpp @@ -0,0 +1,910 @@ +// Scintilla source code edit control +// @file LexAU3.cxx +// Lexer for AutoIt3 http://www.hiddensoft.com/autoit3 +// by Jos van der Zande, jvdzande@yahoo.com +// +// Changes: +// March 28, 2004 - Added the standard Folding code +// April 21, 2004 - Added Preprosessor Table + Syntax Highlighting +// Fixed Number highlighting +// Changed default isoperator to IsAOperator to have a better match to AutoIt3 +// Fixed "#comments_start" -> "#comments-start" +// Fixed "#comments_end" -> "#comments-end" +// Fixed Sendkeys in Strings when not terminated with } +// Added support for Sendkey strings that have second parameter e.g. {UP 5} or {a down} +// April 26, 2004 - Fixed # pre-processor statement inside of comment block would invalidly change the color. +// Added logic for #include to treat the <> as string +// Added underscore to IsAOperator. +// May 17, 2004 - Changed the folding logic from indent to keyword folding. +// Added Folding logic for blocks of single-commentlines or commentblock. +// triggered by: fold.comment=1 +// Added Folding logic for preprocessor blocks triggered by fold.preprocessor=1 +// Added Special for #region - #endregion syntax highlight and folding. +// May 30, 2004 - Fixed issue with continuation lines on If statements. +// June 5, 2004 - Added comma to Operators for better readability. +// Added fold.compact support set with fold.compact=1 +// Changed folding inside of #cs-#ce. Default is no keyword folding inside comment blocks when fold.comment=1 +// it will now only happen when fold.comment=2. +// Sep 5, 2004 - Added logic to handle colourizing words on the last line. +// Typed Characters now show as "default" till they match any table. +// Oct 10, 2004 - Added logic to show Comments in "Special" directives. +// Nov 1, 2004 - Added better testing for Numbers supporting x and e notation. +// Nov 28, 2004 - Added logic to handle continuation lines for syntax highlighting. +// Jan 10, 2005 - Added Abbreviations Keyword used for expansion +// Mar 24, 2005 - Updated Abbreviations Keywords to fix when followed by Operator. +// Apr 18, 2005 - Updated #CE/#Comment-End logic to take a linecomment ";" into account +// - Added folding support for With...EndWith +// - Added support for a DOT in variable names +// - Fixed Underscore in CommentBlock +// May 23, 2005 - Fixed the SentKey lexing in case of a missing } +// Aug 11, 2005 - Fixed possible bug with s_save length > 100. +// Aug 23, 2005 - Added Switch/endswitch support to the folding logic. +// Sep 27, 2005 - Fixed the SentKey lexing logic in case of multiple sentkeys. +// Mar 12, 2006 - Fixed issue with <> coloring as String in stead of Operator in rare occasions. +// Apr 8, 2006 - Added support for AutoIt3 Standard UDF library (SCE_AU3_UDF) +// Mar 9, 2007 - Fixed bug with + following a String getting the wrong Color. +// Jun 20, 2007 - Fixed Commentblock issue when LF's are used as EOL. +// Jul 26, 2007 - Fixed #endregion undetected bug. +// +// Copyright for Scintilla: 1998-2001 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. +// Scintilla source code edit control + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static inline bool IsTypeCharacter(const int ch) +{ + return ch == '$'; +} +static inline bool IsAWordChar(const int ch) +{ + return (ch < 0x80) && (isalnum(ch) || ch == '_'); +} + +static inline bool IsAWordStart(const int ch) +{ + return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '@' || ch == '#' || ch == '$' || ch == '.'); +} + +static inline bool IsAOperator(char ch) { + if (IsASCII(ch) && isalnum(ch)) + return false; + if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || + ch == '&' || ch == '^' || ch == '=' || ch == '<' || ch == '>' || + ch == '(' || ch == ')' || ch == '[' || ch == ']' || ch == ',' ) + return true; + return false; +} + +/////////////////////////////////////////////////////////////////////////////// +// GetSendKey() filters the portion before and after a/multiple space(s) +// and return the first portion to be looked-up in the table +// also check if the second portion is valid... (up,down.on.off,toggle or a number) +/////////////////////////////////////////////////////////////////////////////// + +static int GetSendKey(const char *szLine, char *szKey) +{ + int nFlag = 0; + int nStartFound = 0; + int nKeyPos = 0; + int nSpecPos= 0; + int nSpecNum= 1; + int nPos = 0; + char cTemp; + char szSpecial[100]; + + // split the portion of the sendkey in the part before and after the spaces + while ( ( (cTemp = szLine[nPos]) != '\0')) + { + // skip leading Ctrl/Shift/Alt state + if (cTemp == '{') { + nStartFound = 1; + } + // + if (nStartFound == 1) { + if ((cTemp == ' ') && (nFlag == 0) ) // get the stuff till first space + { + nFlag = 1; + // Add } to the end of the first bit for table lookup later. + szKey[nKeyPos++] = '}'; + } + else if (cTemp == ' ') + { + // skip other spaces + } + else if (nFlag == 0) + { + // save first portion into var till space or } is hit + szKey[nKeyPos++] = cTemp; + } + else if ((nFlag == 1) && (cTemp != '}')) + { + // Save second portion into var... + szSpecial[nSpecPos++] = cTemp; + // check if Second portion is all numbers for repeat fuction + if (isdigit(cTemp) == false) {nSpecNum = 0;} + } + } + nPos++; // skip to next char + + } // End While + + + // Check if the second portion is either a number or one of these keywords + szKey[nKeyPos] = '\0'; + szSpecial[nSpecPos] = '\0'; + if (strcmp(szSpecial,"down")== 0 || strcmp(szSpecial,"up")== 0 || + strcmp(szSpecial,"on")== 0 || strcmp(szSpecial,"off")== 0 || + strcmp(szSpecial,"toggle")== 0 || nSpecNum == 1 ) + { + nFlag = 0; + } + else + { + nFlag = 1; + } + return nFlag; // 1 is bad, 0 is good + +} // GetSendKey() + +// +// Routine to check the last "none comment" character on a line to see if its a continuation +// +static bool IsContinuationLine(unsigned int szLine, Accessor &styler) +{ + int nsPos = styler.LineStart(szLine); + int nePos = styler.LineStart(szLine+1) - 2; + //int stylech = styler.StyleAt(nsPos); + while (nsPos < nePos) + { + //stylech = styler.StyleAt(nePos); + int stylech = styler.StyleAt(nsPos); + if (!(stylech == SCE_AU3_COMMENT)) { + char ch = styler.SafeGetCharAt(nePos); + if (!isspacechar(ch)) { + if (ch == '_') + return true; + else + return false; + } + } + nePos--; // skip to next char + } // End While + return false; +} // IsContinuationLine() + +// +// syntax highlighting logic +static void ColouriseAU3Doc(unsigned int startPos, + int length, int initStyle, + WordList *keywordlists[], + Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + WordList &keywords3 = *keywordlists[2]; + WordList &keywords4 = *keywordlists[3]; + WordList &keywords5 = *keywordlists[4]; + WordList &keywords6 = *keywordlists[5]; + WordList &keywords7 = *keywordlists[6]; + WordList &keywords8 = *keywordlists[7]; + // find the first previous line without continuation character at the end + int lineCurrent = styler.GetLine(startPos); + int s_startPos = startPos; + // When not inside a Block comment: find First line without _ + if (!(initStyle==SCE_AU3_COMMENTBLOCK)) { + while ((lineCurrent > 0 && IsContinuationLine(lineCurrent,styler)) || + (lineCurrent > 1 && IsContinuationLine(lineCurrent-1,styler))) { + lineCurrent--; + startPos = styler.LineStart(lineCurrent); // get start position + initStyle = 0; // reset the start style to 0 + } + } + // Set the new length to include it from the start and set the start position + length = length + s_startPos - startPos; // correct the total length to process + styler.StartAt(startPos); + + StyleContext sc(startPos, length, initStyle, styler); + char si; // string indicator "=1 '=2 + char ni; // Numeric indicator error=9 normal=0 normal+dec=1 hex=2 Enot=3 + char ci; // comment indicator 0=not linecomment(;) + char s_save[100] = ""; + si=0; + ni=0; + ci=0; + //$$$ + for (; sc.More(); sc.Forward()) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + // ********************************************** + // save the total current word for eof processing + if (IsAWordChar(sc.ch) || sc.ch == '}') + { + strcpy(s_save,s); + int tp = static_cast(strlen(s_save)); + if (tp < 99) { + s_save[tp] = static_cast(tolower(sc.ch)); + s_save[tp+1] = '\0'; + } + } + // ********************************************** + // + switch (sc.state) + { + case SCE_AU3_COMMENTBLOCK: + { + //Reset at line end + if (sc.atLineEnd) { + ci=0; + if (strcmp(s, "#ce")== 0 || strcmp(s, "#comments-end")== 0) { + if (sc.atLineEnd) + sc.SetState(SCE_AU3_DEFAULT); + else + sc.SetState(SCE_AU3_COMMENTBLOCK); + } + break; + } + //skip rest of line when a ; is encountered + if (sc.chPrev == ';') { + ci=2; + sc.SetState(SCE_AU3_COMMENTBLOCK); + } + // skip rest of the line + if (ci==2) + break; + // check when first character is detected on the line + if (ci==0) { + if (IsAWordStart(static_cast(sc.ch)) || IsAOperator(static_cast(sc.ch))) { + ci=1; + sc.SetState(SCE_AU3_COMMENTBLOCK); + } + break; + } + if (!(IsAWordChar(sc.ch) || (sc.ch == '-' && strcmp(s, "#comments") == 0))) { + if ((strcmp(s, "#ce")== 0 || strcmp(s, "#comments-end")== 0)) + sc.SetState(SCE_AU3_COMMENT); // set to comment line for the rest of the line + else + ci=2; // line doesn't begin with #CE so skip the rest of the line + } + break; + } + case SCE_AU3_COMMENT: + { + if (sc.atLineEnd) {sc.SetState(SCE_AU3_DEFAULT);} + break; + } + case SCE_AU3_OPERATOR: + { + // check if its a COMobject + if (sc.chPrev == '.' && IsAWordChar(sc.ch)) { + sc.SetState(SCE_AU3_COMOBJ); + } + else { + sc.SetState(SCE_AU3_DEFAULT); + } + break; + } + case SCE_AU3_SPECIAL: + { + if (sc.ch == ';') {sc.SetState(SCE_AU3_COMMENT);} + if (sc.atLineEnd) {sc.SetState(SCE_AU3_DEFAULT);} + break; + } + case SCE_AU3_KEYWORD: + { + if (!(IsAWordChar(sc.ch) || (sc.ch == '-' && (strcmp(s, "#comments") == 0 || strcmp(s, "#include") == 0)))) + { + if (!IsTypeCharacter(sc.ch)) + { + if (strcmp(s, "#cs")== 0 || strcmp(s, "#comments-start")== 0 ) + { + sc.ChangeState(SCE_AU3_COMMENTBLOCK); + sc.SetState(SCE_AU3_COMMENTBLOCK); + break; + } + else if (keywords.InList(s)) { + sc.ChangeState(SCE_AU3_KEYWORD); + sc.SetState(SCE_AU3_DEFAULT); + } + else if (keywords2.InList(s)) { + sc.ChangeState(SCE_AU3_FUNCTION); + sc.SetState(SCE_AU3_DEFAULT); + } + else if (keywords3.InList(s)) { + sc.ChangeState(SCE_AU3_MACRO); + sc.SetState(SCE_AU3_DEFAULT); + } + else if (keywords5.InList(s)) { + sc.ChangeState(SCE_AU3_PREPROCESSOR); + sc.SetState(SCE_AU3_DEFAULT); + if (strcmp(s, "#include")== 0) + { + si = 3; // use to determine string start for #inlude <> + } + } + else if (keywords6.InList(s)) { + sc.ChangeState(SCE_AU3_SPECIAL); + sc.SetState(SCE_AU3_SPECIAL); + } + else if ((keywords7.InList(s)) && (!IsAOperator(static_cast(sc.ch)))) { + sc.ChangeState(SCE_AU3_EXPAND); + sc.SetState(SCE_AU3_DEFAULT); + } + else if (keywords8.InList(s)) { + sc.ChangeState(SCE_AU3_UDF); + sc.SetState(SCE_AU3_DEFAULT); + } + else if (strcmp(s, "_") == 0) { + sc.ChangeState(SCE_AU3_OPERATOR); + sc.SetState(SCE_AU3_DEFAULT); + } + else if (!IsAWordChar(sc.ch)) { + sc.ChangeState(SCE_AU3_DEFAULT); + sc.SetState(SCE_AU3_DEFAULT); + } + } + } + if (sc.atLineEnd) { + sc.SetState(SCE_AU3_DEFAULT);} + break; + } + case SCE_AU3_NUMBER: + { + // Numeric indicator error=9 normal=0 normal+dec=1 hex=2 E-not=3 + // + // test for Hex notation + if (strcmp(s, "0") == 0 && (sc.ch == 'x' || sc.ch == 'X') && ni == 0) + { + ni = 2; + break; + } + // test for E notation + if (IsADigit(sc.chPrev) && (sc.ch == 'e' || sc.ch == 'E') && ni <= 1) + { + ni = 3; + break; + } + // Allow Hex characters inside hex numeric strings + if ((ni == 2) && + (sc.ch == 'a' || sc.ch == 'b' || sc.ch == 'c' || sc.ch == 'd' || sc.ch == 'e' || sc.ch == 'f' || + sc.ch == 'A' || sc.ch == 'B' || sc.ch == 'C' || sc.ch == 'D' || sc.ch == 'E' || sc.ch == 'F' )) + { + break; + } + // test for 1 dec point only + if (sc.ch == '.') + { + if (ni==0) + { + ni=1; + } + else + { + ni=9; + } + break; + } + // end of numeric string ? + if (!(IsADigit(sc.ch))) + { + if (ni==9) + { + sc.ChangeState(SCE_AU3_DEFAULT); + } + sc.SetState(SCE_AU3_DEFAULT); + } + break; + } + case SCE_AU3_VARIABLE: + { + // Check if its a COMObject + if (sc.ch == '.' && !IsADigit(sc.chNext)) { + sc.SetState(SCE_AU3_OPERATOR); + } + else if (!IsAWordChar(sc.ch)) { + sc.SetState(SCE_AU3_DEFAULT); + } + break; + } + case SCE_AU3_COMOBJ: + { + if (!(IsAWordChar(sc.ch))) { + sc.SetState(SCE_AU3_DEFAULT); + } + break; + } + case SCE_AU3_STRING: + { + // check for " to end a double qouted string or + // check for ' to end a single qouted string + if ((si == 1 && sc.ch == '\"') || (si == 2 && sc.ch == '\'') || (si == 3 && sc.ch == '>')) + { + sc.ForwardSetState(SCE_AU3_DEFAULT); + si=0; + break; + } + if (sc.atLineEnd) + { + si=0; + // at line end and not found a continuation char then reset to default + int lineCurrent = styler.GetLine(sc.currentPos); + if (!IsContinuationLine(lineCurrent,styler)) + { + sc.SetState(SCE_AU3_DEFAULT); + break; + } + } + // find Sendkeys in a STRING + if (sc.ch == '{' || sc.ch == '+' || sc.ch == '!' || sc.ch == '^' || sc.ch == '#' ) { + sc.SetState(SCE_AU3_SENT);} + break; + } + + case SCE_AU3_SENT: + { + // Send key string ended + if (sc.chPrev == '}' && sc.ch != '}') + { + // set color to SENDKEY when valid sendkey .. else set back to regular string + char sk[100]; + // split {111 222} and return {111} and check if 222 is valid. + // if return code = 1 then invalid 222 so must be string + if (GetSendKey(s,sk)) + { + sc.ChangeState(SCE_AU3_STRING); + } + // if single char between {?} then its ok as sendkey for a single character + else if (strlen(sk) == 3) + { + sc.ChangeState(SCE_AU3_SENT); + } + // if sendkey {111} is in table then ok as sendkey + else if (keywords4.InList(sk)) + { + sc.ChangeState(SCE_AU3_SENT); + } + else + { + sc.ChangeState(SCE_AU3_STRING); + } + sc.SetState(SCE_AU3_STRING); + } + else + { + // check if the start is a valid SendKey start + int nPos = 0; + int nState = 1; + char cTemp; + while (!(nState == 2) && ((cTemp = s[nPos]) != '\0')) + { + if (cTemp == '{' && nState == 1) + { + nState = 2; + } + if (nState == 1 && !(cTemp == '+' || cTemp == '!' || cTemp == '^' || cTemp == '#' )) + { + nState = 0; + } + nPos++; + } + //Verify characters infront of { ... if not assume regular string + if (nState == 1 && (!(sc.ch == '{' || sc.ch == '+' || sc.ch == '!' || sc.ch == '^' || sc.ch == '#' ))) { + sc.ChangeState(SCE_AU3_STRING); + sc.SetState(SCE_AU3_STRING); + } + // If invalid character found then assume its a regular string + if (nState == 0) { + sc.ChangeState(SCE_AU3_STRING); + sc.SetState(SCE_AU3_STRING); + } + } + // check if next portion is again a sendkey + if (sc.atLineEnd) + { + sc.ChangeState(SCE_AU3_STRING); + sc.SetState(SCE_AU3_DEFAULT); + si = 0; // reset string indicator + } + //* check in next characters following a sentkey are again a sent key + // Need this test incase of 2 sentkeys like {F1}{ENTER} but not detect {{} + if (sc.state == SCE_AU3_STRING && (sc.ch == '{' || sc.ch == '+' || sc.ch == '!' || sc.ch == '^' || sc.ch == '#' )) { + sc.SetState(SCE_AU3_SENT);} + // check to see if the string ended... + // Sendkey string isn't complete but the string ended.... + if ((si == 1 && sc.ch == '\"') || (si == 2 && sc.ch == '\'')) + { + sc.ChangeState(SCE_AU3_STRING); + sc.ForwardSetState(SCE_AU3_DEFAULT); + } + break; + } + } //switch (sc.state) + + // Determine if a new state should be entered: + + if (sc.state == SCE_AU3_DEFAULT) + { + if (sc.ch == ';') {sc.SetState(SCE_AU3_COMMENT);} + else if (sc.ch == '#') {sc.SetState(SCE_AU3_KEYWORD);} + else if (sc.ch == '$') {sc.SetState(SCE_AU3_VARIABLE);} + else if (sc.ch == '.' && !IsADigit(sc.chNext)) {sc.SetState(SCE_AU3_OPERATOR);} + else if (sc.ch == '@') {sc.SetState(SCE_AU3_KEYWORD);} + //else if (sc.ch == '_') {sc.SetState(SCE_AU3_KEYWORD);} + else if (sc.ch == '<' && si==3) {sc.SetState(SCE_AU3_STRING);} // string after #include + else if (sc.ch == '\"') { + sc.SetState(SCE_AU3_STRING); + si = 1; } + else if (sc.ch == '\'') { + sc.SetState(SCE_AU3_STRING); + si = 2; } + else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) + { + sc.SetState(SCE_AU3_NUMBER); + ni = 0; + } + else if (IsAWordStart(sc.ch)) {sc.SetState(SCE_AU3_KEYWORD);} + else if (IsAOperator(static_cast(sc.ch))) {sc.SetState(SCE_AU3_OPERATOR);} + else if (sc.atLineEnd) {sc.SetState(SCE_AU3_DEFAULT);} + } + } //for (; sc.More(); sc.Forward()) + + //************************************* + // Colourize the last word correctly + //************************************* + if (sc.state == SCE_AU3_KEYWORD) + { + if (strcmp(s_save, "#cs")== 0 || strcmp(s_save, "#comments-start")== 0 ) + { + sc.ChangeState(SCE_AU3_COMMENTBLOCK); + sc.SetState(SCE_AU3_COMMENTBLOCK); + } + else if (keywords.InList(s_save)) { + sc.ChangeState(SCE_AU3_KEYWORD); + sc.SetState(SCE_AU3_KEYWORD); + } + else if (keywords2.InList(s_save)) { + sc.ChangeState(SCE_AU3_FUNCTION); + sc.SetState(SCE_AU3_FUNCTION); + } + else if (keywords3.InList(s_save)) { + sc.ChangeState(SCE_AU3_MACRO); + sc.SetState(SCE_AU3_MACRO); + } + else if (keywords5.InList(s_save)) { + sc.ChangeState(SCE_AU3_PREPROCESSOR); + sc.SetState(SCE_AU3_PREPROCESSOR); + } + else if (keywords6.InList(s_save)) { + sc.ChangeState(SCE_AU3_SPECIAL); + sc.SetState(SCE_AU3_SPECIAL); + } + else if (keywords7.InList(s_save) && sc.atLineEnd) { + sc.ChangeState(SCE_AU3_EXPAND); + sc.SetState(SCE_AU3_EXPAND); + } + else if (keywords8.InList(s_save)) { + sc.ChangeState(SCE_AU3_UDF); + sc.SetState(SCE_AU3_UDF); + } + else { + sc.ChangeState(SCE_AU3_DEFAULT); + sc.SetState(SCE_AU3_DEFAULT); + } + } + if (sc.state == SCE_AU3_SENT) + { + // Send key string ended + if (sc.chPrev == '}' && sc.ch != '}') + { + // set color to SENDKEY when valid sendkey .. else set back to regular string + char sk[100]; + // split {111 222} and return {111} and check if 222 is valid. + // if return code = 1 then invalid 222 so must be string + if (GetSendKey(s_save,sk)) + { + sc.ChangeState(SCE_AU3_STRING); + } + // if single char between {?} then its ok as sendkey for a single character + else if (strlen(sk) == 3) + { + sc.ChangeState(SCE_AU3_SENT); + } + // if sendkey {111} is in table then ok as sendkey + else if (keywords4.InList(sk)) + { + sc.ChangeState(SCE_AU3_SENT); + } + else + { + sc.ChangeState(SCE_AU3_STRING); + } + sc.SetState(SCE_AU3_STRING); + } + // check if next portion is again a sendkey + if (sc.atLineEnd) + { + sc.ChangeState(SCE_AU3_STRING); + sc.SetState(SCE_AU3_DEFAULT); + } + } + //************************************* + sc.Complete(); +} + +// +static bool IsStreamCommentStyle(int style) { + return style == SCE_AU3_COMMENT || style == SCE_AU3_COMMENTBLOCK; +} + +// +// Routine to find first none space on the current line and return its Style +// needed for comment lines not starting on pos 1 +static int GetStyleFirstWord(unsigned int szLine, Accessor &styler) +{ + int nsPos = styler.LineStart(szLine); + int nePos = styler.LineStart(szLine+1) - 1; + while (isspacechar(styler.SafeGetCharAt(nsPos)) && nsPos < nePos) + { + nsPos++; // skip to next char + + } // End While + return styler.StyleAt(nsPos); + +} // GetStyleFirstWord() + + +// +static void FoldAU3Doc(unsigned int startPos, int length, int, WordList *[], Accessor &styler) +{ + int endPos = startPos + length; + // get settings from the config files for folding comments and preprocessor lines + bool foldComment = styler.GetPropertyInt("fold.comment") != 0; + bool foldInComment = styler.GetPropertyInt("fold.comment") == 2; + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + bool foldpreprocessor = styler.GetPropertyInt("fold.preprocessor") != 0; + // Backtrack to previous line in case need to fix its fold status + int lineCurrent = styler.GetLine(startPos); + if (startPos > 0) { + if (lineCurrent > 0) { + lineCurrent--; + startPos = styler.LineStart(lineCurrent); + } + } + // vars for style of previous/current/next lines + int style = GetStyleFirstWord(lineCurrent,styler); + int stylePrev = 0; + // find the first previous line without continuation character at the end + while ((lineCurrent > 0 && IsContinuationLine(lineCurrent,styler)) || + (lineCurrent > 1 && IsContinuationLine(lineCurrent-1,styler))) { + lineCurrent--; + startPos = styler.LineStart(lineCurrent); + } + if (lineCurrent > 0) { + stylePrev = GetStyleFirstWord(lineCurrent-1,styler); + } + // vars for getting first word to check for keywords + bool FirstWordStart = false; + bool FirstWordEnd = false; + char szKeyword[11]=""; + int szKeywordlen = 0; + char szThen[5]=""; + int szThenlen = 0; + bool ThenFoundLast = false; + // var for indentlevel + int levelCurrent = SC_FOLDLEVELBASE; + if (lineCurrent > 0) + levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; + int levelNext = levelCurrent; + // + int visibleChars = 0; + char chNext = styler.SafeGetCharAt(startPos); + char chPrev = ' '; + // + for (int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + if (IsAWordChar(ch)) { + visibleChars++; + } + // get the syle for the current character neede to check in comment + int stylech = styler.StyleAt(i); + // get first word for the line for indent check max 9 characters + if (FirstWordStart && (!(FirstWordEnd))) { + if (!IsAWordChar(ch)) { + FirstWordEnd = true; + szKeyword[szKeywordlen] = '\0'; + } + else { + if (szKeywordlen < 10) { + szKeyword[szKeywordlen++] = static_cast(tolower(ch)); + } + } + } + // start the capture of the first word + if (!(FirstWordStart)) { + if (IsAWordChar(ch) || IsAWordStart(ch) || ch == ';') { + FirstWordStart = true; + szKeyword[szKeywordlen++] = static_cast(tolower(ch)); + } + } + // only process this logic when not in comment section + if (!(stylech == SCE_AU3_COMMENT)) { + if (ThenFoundLast) { + if (IsAWordChar(ch)) { + ThenFoundLast = false; + } + } + // find out if the word "then" is the last on a "if" line + if (FirstWordEnd && strcmp(szKeyword,"if") == 0) { + if (szThenlen == 4) { + szThen[0] = szThen[1]; + szThen[1] = szThen[2]; + szThen[2] = szThen[3]; + szThen[3] = static_cast(tolower(ch)); + if (strcmp(szThen,"then") == 0 ) { + ThenFoundLast = true; + } + } + else { + szThen[szThenlen++] = static_cast(tolower(ch)); + if (szThenlen == 5) { + szThen[4] = '\0'; + } + } + } + } + // End of Line found so process the information + if ((ch == '\r' && chNext != '\n') || (ch == '\n') || (i == endPos)) { + // ************************** + // Folding logic for Keywords + // ************************** + // if a keyword is found on the current line and the line doesn't end with _ (continuation) + // and we are not inside a commentblock. + if (szKeywordlen > 0 && (!(chPrev == '_')) && + ((!(IsStreamCommentStyle(style)) || foldInComment)) ) { + szKeyword[szKeywordlen] = '\0'; + // only fold "if" last keyword is "then" (else its a one line if) + if (strcmp(szKeyword,"if") == 0 && ThenFoundLast) { + levelNext++; + } + // create new fold for these words + if (strcmp(szKeyword,"do") == 0 || strcmp(szKeyword,"for") == 0 || + strcmp(szKeyword,"func") == 0 || strcmp(szKeyword,"while") == 0|| + strcmp(szKeyword,"with") == 0 || strcmp(szKeyword,"#region") == 0 ) { + levelNext++; + } + // create double Fold for select&switch because Case will subtract one of the current level + if (strcmp(szKeyword,"select") == 0 || strcmp(szKeyword,"switch") == 0) { + levelNext++; + levelNext++; + } + // end the fold for these words before the current line + if (strcmp(szKeyword,"endfunc") == 0 || strcmp(szKeyword,"endif") == 0 || + strcmp(szKeyword,"next") == 0 || strcmp(szKeyword,"until") == 0 || + strcmp(szKeyword,"endwith") == 0 ||strcmp(szKeyword,"wend") == 0){ + levelNext--; + levelCurrent--; + } + // end the fold for these words before the current line and Start new fold + if (strcmp(szKeyword,"case") == 0 || strcmp(szKeyword,"else") == 0 || + strcmp(szKeyword,"elseif") == 0 ) { + levelCurrent--; + } + // end the double fold for this word before the current line + if (strcmp(szKeyword,"endselect") == 0 || strcmp(szKeyword,"endswitch") == 0 ) { + levelNext--; + levelNext--; + levelCurrent--; + levelCurrent--; + } + // end the fold for these words on the current line + if (strcmp(szKeyword,"#endregion") == 0 ) { + levelNext--; + } + } + // Preprocessor and Comment folding + int styleNext = GetStyleFirstWord(lineCurrent + 1,styler); + // ************************************* + // Folding logic for preprocessor blocks + // ************************************* + // process preprosessor line + if (foldpreprocessor && style == SCE_AU3_PREPROCESSOR) { + if (!(stylePrev == SCE_AU3_PREPROCESSOR) && (styleNext == SCE_AU3_PREPROCESSOR)) { + levelNext++; + } + // fold till the last line for normal comment lines + else if (stylePrev == SCE_AU3_PREPROCESSOR && !(styleNext == SCE_AU3_PREPROCESSOR)) { + levelNext--; + } + } + // ********************************* + // Folding logic for Comment blocks + // ********************************* + if (foldComment && IsStreamCommentStyle(style)) { + // Start of a comment block + if (!(stylePrev==style) && IsStreamCommentStyle(styleNext) && styleNext==style) { + levelNext++; + } + // fold till the last line for normal comment lines + else if (IsStreamCommentStyle(stylePrev) + && !(styleNext == SCE_AU3_COMMENT) + && stylePrev == SCE_AU3_COMMENT + && style == SCE_AU3_COMMENT) { + levelNext--; + } + // fold till the one but last line for Blockcomment lines + else if (IsStreamCommentStyle(stylePrev) + && !(styleNext == SCE_AU3_COMMENTBLOCK) + && style == SCE_AU3_COMMENTBLOCK) { + levelNext--; + levelCurrent--; + } + } + int levelUse = levelCurrent; + int lev = levelUse | levelNext << 16; + if (visibleChars == 0 && foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if (levelUse < levelNext) { + lev |= SC_FOLDLEVELHEADERFLAG; + } + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + // reset values for the next line + lineCurrent++; + stylePrev = style; + style = styleNext; + levelCurrent = levelNext; + visibleChars = 0; + // if the last character is an Underscore then don't reset since the line continues on the next line. + if (!(chPrev == '_')) { + szKeywordlen = 0; + szThenlen = 0; + FirstWordStart = false; + FirstWordEnd = false; + ThenFoundLast = false; + } + } + // save the last processed character + if (!isspacechar(ch)) { + chPrev = ch; + visibleChars++; + } + } +} + + +// + +static const char * const AU3WordLists[] = { + "#autoit keywords", + "#autoit functions", + "#autoit macros", + "#autoit Sent keys", + "#autoit Pre-processors", + "#autoit Special", + "#autoit Expand", + "#autoit UDF", + 0 +}; +LexerModule lmAU3(SCLEX_AU3, ColouriseAU3Doc, "au3", FoldAU3Doc , AU3WordLists); diff --git a/lexers/LexAVE.cpp b/lexers/LexAVE.cpp new file mode 100644 index 0000000..8f5729e --- /dev/null +++ b/lexers/LexAVE.cpp @@ -0,0 +1,231 @@ +// SciTE - Scintilla based Text Editor +/** @file LexAVE.cxx + ** Lexer for Avenue. + ** + ** Written by Alexey Yutkin . + **/ +// Copyright 1998-2002 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_'); +} +static inline bool IsEnumChar(const int ch) { + return (ch < 0x80) && (isalnum(ch)|| ch == '_'); +} +static inline bool IsANumberChar(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '.' ); +} + +inline bool IsAWordStart(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_'); +} + +inline bool isAveOperator(char ch) { + if (IsASCII(ch) && isalnum(ch)) + return false; + // '.' left out as it is used to make up numbers + if (ch == '*' || ch == '/' || ch == '-' || ch == '+' || + ch == '(' || ch == ')' || ch == '=' || + ch == '{' || ch == '}' || + ch == '[' || ch == ']' || ch == ';' || + ch == '<' || ch == '>' || ch == ',' || + ch == '.' ) + return true; + return false; +} + +static void ColouriseAveDoc( + unsigned int startPos, + int length, + int initStyle, + WordList *keywordlists[], + Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + WordList &keywords3 = *keywordlists[2]; + WordList &keywords4 = *keywordlists[3]; + WordList &keywords5 = *keywordlists[4]; + WordList &keywords6 = *keywordlists[5]; + + // Do not leak onto next line + if (initStyle == SCE_AVE_STRINGEOL) { + initStyle = SCE_AVE_DEFAULT; + } + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + if (sc.atLineEnd) { + // Update the line state, so it can be seen by next line + int currentLine = styler.GetLine(sc.currentPos); + styler.SetLineState(currentLine, 0); + } + if (sc.atLineStart && (sc.state == SCE_AVE_STRING)) { + // Prevent SCE_AVE_STRINGEOL from leaking back to previous line + sc.SetState(SCE_AVE_STRING); + } + + + // Determine if the current state should terminate. + if (sc.state == SCE_AVE_OPERATOR) { + sc.SetState(SCE_AVE_DEFAULT); + } else if (sc.state == SCE_AVE_NUMBER) { + if (!IsANumberChar(sc.ch)) { + sc.SetState(SCE_AVE_DEFAULT); + } + } else if (sc.state == SCE_AVE_ENUM) { + if (!IsEnumChar(sc.ch)) { + sc.SetState(SCE_AVE_DEFAULT); + } + } else if (sc.state == SCE_AVE_IDENTIFIER) { + if (!IsAWordChar(sc.ch) || (sc.ch == '.')) { + char s[100]; + //sc.GetCurrent(s, sizeof(s)); + sc.GetCurrentLowered(s, sizeof(s)); + if (keywords.InList(s)) { + sc.ChangeState(SCE_AVE_WORD); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_AVE_WORD2); + } else if (keywords3.InList(s)) { + sc.ChangeState(SCE_AVE_WORD3); + } else if (keywords4.InList(s)) { + sc.ChangeState(SCE_AVE_WORD4); + } else if (keywords5.InList(s)) { + sc.ChangeState(SCE_AVE_WORD5); + } else if (keywords6.InList(s)) { + sc.ChangeState(SCE_AVE_WORD6); + } + sc.SetState(SCE_AVE_DEFAULT); + } + } else if (sc.state == SCE_AVE_COMMENT) { + if (sc.atLineEnd) { + sc.SetState(SCE_AVE_DEFAULT); + } + } else if (sc.state == SCE_AVE_STRING) { + if (sc.ch == '\"') { + sc.ForwardSetState(SCE_AVE_DEFAULT); + } else if (sc.atLineEnd) { + sc.ChangeState(SCE_AVE_STRINGEOL); + sc.ForwardSetState(SCE_AVE_DEFAULT); + } + } + + // Determine if a new state should be entered. + if (sc.state == SCE_AVE_DEFAULT) { + if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { + sc.SetState(SCE_AVE_NUMBER); + } else if (IsAWordStart(sc.ch)) { + sc.SetState(SCE_AVE_IDENTIFIER); + } else if (sc.Match('\"')) { + sc.SetState(SCE_AVE_STRING); + } else if (sc.Match('\'')) { + sc.SetState(SCE_AVE_COMMENT); + sc.Forward(); + } else if (isAveOperator(static_cast(sc.ch))) { + sc.SetState(SCE_AVE_OPERATOR); + } else if (sc.Match('#')) { + sc.SetState(SCE_AVE_ENUM); + sc.Forward(); + } + } + } + sc.Complete(); +} + +static void FoldAveDoc(unsigned int startPos, int length, int /* initStyle */, WordList *[], + Accessor &styler) { + unsigned int lengthDoc = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = static_cast(tolower(styler[startPos])); + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + int styleNext = styler.StyleAt(startPos); + char s[10] = ""; + + for (unsigned int i = startPos; i < lengthDoc; i++) { + char ch = static_cast(tolower(chNext)); + chNext = static_cast(tolower(styler.SafeGetCharAt(i + 1))); + int style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if (style == SCE_AVE_WORD) { + if (ch == 't' || ch == 'f' || ch == 'w' || ch == 'e') { + for (unsigned int j = 0; j < 6; j++) { + if (!iswordchar(styler[i + j])) { + break; + } + s[j] = static_cast(tolower(styler[i + j])); + s[j + 1] = '\0'; + } + + if ((strcmp(s, "then") == 0) || (strcmp(s, "for") == 0) || (strcmp(s, "while") == 0)) { + levelCurrent++; + } + if ((strcmp(s, "end") == 0) || (strcmp(s, "elseif") == 0)) { + // Normally "elseif" and "then" will be on the same line and will cancel + // each other out. // As implemented, this does not support fold.at.else. + levelCurrent--; + } + } + } else if (style == SCE_AVE_OPERATOR) { + if (ch == '{' || ch == '(') { + levelCurrent++; + } else if (ch == '}' || ch == ')') { + levelCurrent--; + } + } + + if (atEOL) { + int lev = levelPrev; + if (visibleChars == 0 && foldCompact) { + lev |= SC_FOLDLEVELWHITEFLAG; + } + if ((levelCurrent > levelPrev) && (visibleChars > 0)) { + lev |= SC_FOLDLEVELHEADERFLAG; + } + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + } + if (!isspacechar(ch)) { + visibleChars++; + } + } + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + +LexerModule lmAVE(SCLEX_AVE, ColouriseAveDoc, "ave", FoldAveDoc); + diff --git a/lexers/LexAVS.cpp b/lexers/LexAVS.cpp new file mode 100644 index 0000000..82e4345 --- /dev/null +++ b/lexers/LexAVS.cpp @@ -0,0 +1,293 @@ +// Scintilla source code edit control +/** @file LexAVS.cxx + ** Lexer for AviSynth. + **/ +// Copyright 2012 by Bruno Barbieri +// Heavily based on LexPOV by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_'); +} + +static inline bool IsAWordStart(int ch) { + return isalpha(ch) || (ch != ' ' && ch != '\n' && ch != '(' && ch != '.' && ch != ','); +} + +static inline bool IsANumberChar(int ch) { + // Not exactly following number definition (several dots are seen as OK, etc.) + // but probably enough in most cases. + return (ch < 0x80) && + (isdigit(ch) || ch == '.' || ch == '-' || ch == '+'); +} + +static void ColouriseAvsDoc( + unsigned int startPos, + int length, + int initStyle, + WordList *keywordlists[], + Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList &filters = *keywordlists[1]; + WordList &plugins = *keywordlists[2]; + WordList &functions = *keywordlists[3]; + WordList &clipProperties = *keywordlists[4]; + WordList &userDefined = *keywordlists[5]; + + int currentLine = styler.GetLine(startPos); + // Initialize the block comment nesting level, if we are inside such a comment. + int blockCommentLevel = 0; + if (initStyle == SCE_AVS_COMMENTBLOCK || initStyle == SCE_AVS_COMMENTBLOCKN) { + blockCommentLevel = styler.GetLineState(currentLine - 1); + } + + // Do not leak onto next line + if (initStyle == SCE_AVS_COMMENTLINE) { + initStyle = SCE_AVS_DEFAULT; + } + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + if (sc.atLineEnd) { + // Update the line state, so it can be seen by next line + currentLine = styler.GetLine(sc.currentPos); + if (sc.state == SCE_AVS_COMMENTBLOCK || sc.state == SCE_AVS_COMMENTBLOCKN) { + // Inside a block comment, we set the line state + styler.SetLineState(currentLine, blockCommentLevel); + } else { + // Reset the line state + styler.SetLineState(currentLine, 0); + } + } + + // Determine if the current state should terminate. + if (sc.state == SCE_AVS_OPERATOR) { + sc.SetState(SCE_AVS_DEFAULT); + } else if (sc.state == SCE_AVS_NUMBER) { + // We stop the number definition on non-numerical non-dot non-sign char + if (!IsANumberChar(sc.ch)) { + sc.SetState(SCE_AVS_DEFAULT); + } + } else if (sc.state == SCE_AVS_IDENTIFIER) { + if (!IsAWordChar(sc.ch)) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + + if (keywords.InList(s)) { + sc.ChangeState(SCE_AVS_KEYWORD); + } else if (filters.InList(s)) { + sc.ChangeState(SCE_AVS_FILTER); + } else if (plugins.InList(s)) { + sc.ChangeState(SCE_AVS_PLUGIN); + } else if (functions.InList(s)) { + sc.ChangeState(SCE_AVS_FUNCTION); + } else if (clipProperties.InList(s)) { + sc.ChangeState(SCE_AVS_CLIPPROP); + } else if (userDefined.InList(s)) { + sc.ChangeState(SCE_AVS_USERDFN); + } + sc.SetState(SCE_AVS_DEFAULT); + } + } else if (sc.state == SCE_AVS_COMMENTBLOCK) { + if (sc.Match('/', '*')) { + blockCommentLevel++; + sc.Forward(); + } else if (sc.Match('*', '/') && blockCommentLevel > 0) { + blockCommentLevel--; + sc.Forward(); + if (blockCommentLevel == 0) { + sc.ForwardSetState(SCE_AVS_DEFAULT); + } + } + } else if (sc.state == SCE_AVS_COMMENTBLOCKN) { + if (sc.Match('[', '*')) { + blockCommentLevel++; + sc.Forward(); + } else if (sc.Match('*', ']') && blockCommentLevel > 0) { + blockCommentLevel--; + sc.Forward(); + if (blockCommentLevel == 0) { + sc.ForwardSetState(SCE_AVS_DEFAULT); + } + } + } else if (sc.state == SCE_AVS_COMMENTLINE) { + if (sc.atLineEnd) { + sc.ForwardSetState(SCE_AVS_DEFAULT); + } + } else if (sc.state == SCE_AVS_STRING) { + if (sc.ch == '\"') { + sc.ForwardSetState(SCE_AVS_DEFAULT); + } + } else if (sc.state == SCE_AVS_TRIPLESTRING) { + if (sc.Match("\"\"\"")) { + sc.Forward(); + sc.Forward(); + sc.ForwardSetState(SCE_AVS_DEFAULT); + } + } + + // Determine if a new state should be entered. + if (sc.state == SCE_AVS_DEFAULT) { + if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { + sc.SetState(SCE_AVS_NUMBER); + } else if (IsADigit(sc.ch) || (sc.ch == ',' && IsADigit(sc.chNext))) { + sc.Forward(); + sc.SetState(SCE_AVS_NUMBER); + } else if (sc.Match('/', '*')) { + blockCommentLevel = 1; + sc.SetState(SCE_AVS_COMMENTBLOCK); + sc.Forward(); // Eat the * so it isn't used for the end of the comment + } else if (sc.Match('[', '*')) { + blockCommentLevel = 1; + sc.SetState(SCE_AVS_COMMENTBLOCKN); + sc.Forward(); // Eat the * so it isn't used for the end of the comment + } else if (sc.ch == '#') { + sc.SetState(SCE_AVS_COMMENTLINE); + } else if (sc.ch == '\"') { + if (sc.Match("\"\"\"")) { + sc.SetState(SCE_AVS_TRIPLESTRING); + } else { + sc.SetState(SCE_AVS_STRING); + } + } else if (isoperator(static_cast(sc.ch))) { + sc.SetState(SCE_AVS_OPERATOR); + } else if (IsAWordStart(sc.ch)) { + sc.SetState(SCE_AVS_IDENTIFIER); + } + } + } + + // End of file: complete any pending changeState + if (sc.state == SCE_AVS_IDENTIFIER) { + if (!IsAWordChar(sc.ch)) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + + if (keywords.InList(s)) { + sc.ChangeState(SCE_AVS_KEYWORD); + } else if (filters.InList(s)) { + sc.ChangeState(SCE_AVS_FILTER); + } else if (plugins.InList(s)) { + sc.ChangeState(SCE_AVS_PLUGIN); + } else if (functions.InList(s)) { + sc.ChangeState(SCE_AVS_FUNCTION); + } else if (clipProperties.InList(s)) { + sc.ChangeState(SCE_AVS_CLIPPROP); + } else if (userDefined.InList(s)) { + sc.ChangeState(SCE_AVS_USERDFN); + } + sc.SetState(SCE_AVS_DEFAULT); + } + } + + sc.Complete(); +} + +static void FoldAvsDoc( + unsigned int startPos, + int length, + int initStyle, + WordList *[], + Accessor &styler) { + + bool foldComment = styler.GetPropertyInt("fold.comment") != 0; + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = styler[startPos]; + int styleNext = styler.StyleAt(startPos); + int style = initStyle; + + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int stylePrev = style; + style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if (foldComment && style == SCE_AVS_COMMENTBLOCK) { + if (stylePrev != SCE_AVS_COMMENTBLOCK) { + levelCurrent++; + } else if ((styleNext != SCE_AVS_COMMENTBLOCK) && !atEOL) { + // Comments don't end at end of line and the next character may be unstyled. + levelCurrent--; + } + } + + if (foldComment && style == SCE_AVS_COMMENTBLOCKN) { + if (stylePrev != SCE_AVS_COMMENTBLOCKN) { + levelCurrent++; + } else if ((styleNext != SCE_AVS_COMMENTBLOCKN) && !atEOL) { + // Comments don't end at end of line and the next character may be unstyled. + levelCurrent--; + } + } + + if (style == SCE_AVS_OPERATOR) { + if (ch == '{') { + levelCurrent++; + } else if (ch == '}') { + levelCurrent--; + } + } + + if (atEOL) { + int lev = levelPrev; + if (visibleChars == 0 && foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + } + + if (!isspacechar(ch)) + visibleChars++; + } + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + +static const char * const avsWordLists[] = { + "Keywords", + "Filters", + "Plugins", + "Functions", + "Clip properties", + "User defined functions", + 0, +}; + +LexerModule lmAVS(SCLEX_AVS, ColouriseAvsDoc, "avs", FoldAvsDoc, avsWordLists); diff --git a/lexers/LexAbaqus.cpp b/lexers/LexAbaqus.cpp new file mode 100644 index 0000000..1341700 --- /dev/null +++ b/lexers/LexAbaqus.cpp @@ -0,0 +1,620 @@ +// Scintilla source code edit control +/** @file LexABAQUS.cxx + ** Lexer for ABAQUS. Based on the lexer for APDL by Hadar Raz. + ** By Sergio Lucato. + ** Sort of completely rewritten by Gertjan Kloosterman + **/ +// The License.txt file describes the conditions under which this software may be distributed. + +// Code folding copyied and modified from LexBasic.cxx + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80 && (isalnum(ch) || (ch == '_'))); +} + +static inline bool IsAKeywordChar(const int ch) { + return (ch < 0x80 && (isalnum(ch) || (ch == '_') || (ch == ' '))); +} + +static inline bool IsASetChar(const int ch) { + return (ch < 0x80 && (isalnum(ch) || (ch == '_') || (ch == '.') || (ch == '-'))); +} + +static inline bool IsAnOperator(char ch) { + // '.' left out as it is used to make up numbers + if (ch == '*' || ch == '/' || ch == '-' || ch == '+' || + ch == '(' || ch == ')' || ch == '=' || ch == '^' || + ch == '[' || ch == ']' || ch == '<' || ch == '&' || + ch == '>' || ch == ',' || ch == '|' || ch == '~' || + ch == '$' || ch == ':' || ch == '%') + return true; + return false; +} + +static void ColouriseABAQUSDoc(unsigned int startPos, int length, int initStyle, WordList*[] /* *keywordlists[] */, + Accessor &styler) { + enum localState { KW_LINE_KW, KW_LINE_COMMA, KW_LINE_PAR, KW_LINE_EQ, KW_LINE_VAL, \ + DAT_LINE_VAL, DAT_LINE_COMMA,\ + COMMENT_LINE,\ + ST_ERROR, LINE_END } state ; + + // Do not leak onto next line + state = LINE_END ; + initStyle = SCE_ABAQUS_DEFAULT; + StyleContext sc(startPos, length, initStyle, styler); + + // Things are actually quite simple + // we have commentlines + // keywordlines and datalines + // On a data line there will only be colouring of numbers + // a keyword line is constructed as + // *word,[ paramname[=paramvalue]]* + // if the line ends with a , the keyword line continues onto the new line + + for (; sc.More(); sc.Forward()) { + switch ( state ) { + case KW_LINE_KW : + if ( sc.atLineEnd ) { + // finished the line in keyword state, switch to LINE_END + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = LINE_END ; + } else if ( IsAKeywordChar(sc.ch) ) { + // nothing changes + state = KW_LINE_KW ; + } else if ( sc.ch == ',' ) { + // Well well we say a comma, arguments *MUST* follow + sc.SetState(SCE_ABAQUS_OPERATOR) ; + state = KW_LINE_COMMA ; + } else { + // Flag an error + sc.SetState(SCE_ABAQUS_PROCESSOR) ; + state = ST_ERROR ; + } + // Done with processing + break ; + case KW_LINE_COMMA : + // acomma on a keywordline was seen + if ( IsAKeywordChar(sc.ch)) { + sc.SetState(SCE_ABAQUS_ARGUMENT) ; + state = KW_LINE_PAR ; + } else if ( sc.atLineEnd || (sc.ch == ',') ) { + // we remain in keyword mode + state = KW_LINE_COMMA ; + } else if ( sc.ch == ' ' ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = KW_LINE_COMMA ; + } else { + // Anything else constitutes an error + sc.SetState(SCE_ABAQUS_PROCESSOR) ; + state = ST_ERROR ; + } + break ; + case KW_LINE_PAR : + if ( sc.atLineEnd ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = LINE_END ; + } else if ( IsAKeywordChar(sc.ch) || (sc.ch == '-') ) { + // remain in this state + state = KW_LINE_PAR ; + } else if ( sc.ch == ',' ) { + sc.SetState(SCE_ABAQUS_OPERATOR) ; + state = KW_LINE_COMMA ; + } else if ( sc.ch == '=' ) { + sc.SetState(SCE_ABAQUS_OPERATOR) ; + state = KW_LINE_EQ ; + } else { + // Anything else constitutes an error + sc.SetState(SCE_ABAQUS_PROCESSOR) ; + state = ST_ERROR ; + } + break ; + case KW_LINE_EQ : + if ( sc.ch == ' ' ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + // remain in this state + state = KW_LINE_EQ ; + } else if ( IsADigit(sc.ch) || (sc.ch == '-') || (sc.ch == '.' && IsADigit(sc.chNext)) ) { + sc.SetState(SCE_ABAQUS_NUMBER) ; + state = KW_LINE_VAL ; + } else if ( IsAKeywordChar(sc.ch) ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = KW_LINE_VAL ; + } else if ( (sc.ch == '\'') || (sc.ch == '\"') ) { + sc.SetState(SCE_ABAQUS_STRING) ; + state = KW_LINE_VAL ; + } else { + sc.SetState(SCE_ABAQUS_PROCESSOR) ; + state = ST_ERROR ; + } + break ; + case KW_LINE_VAL : + if ( sc.atLineEnd ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = LINE_END ; + } else if ( IsASetChar(sc.ch) && (sc.state == SCE_ABAQUS_DEFAULT) ) { + // nothing changes + state = KW_LINE_VAL ; + } else if (( (IsADigit(sc.ch) || sc.ch == '.' || (sc.ch == 'e' || sc.ch == 'E') || + ((sc.ch == '+' || sc.ch == '-') && (sc.chPrev == 'e' || sc.chPrev == 'E')))) && + (sc.state == SCE_ABAQUS_NUMBER)) { + // remain in number mode + state = KW_LINE_VAL ; + } else if (sc.state == SCE_ABAQUS_STRING) { + // accept everything until a closing quote + if ( sc.ch == '\'' || sc.ch == '\"' ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = KW_LINE_VAL ; + } + } else if ( sc.ch == ',' ) { + sc.SetState(SCE_ABAQUS_OPERATOR) ; + state = KW_LINE_COMMA ; + } else { + // anything else is an error + sc.SetState(SCE_ABAQUS_PROCESSOR) ; + state = ST_ERROR ; + } + break ; + case DAT_LINE_VAL : + if ( sc.atLineEnd ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = LINE_END ; + } else if ( IsASetChar(sc.ch) && (sc.state == SCE_ABAQUS_DEFAULT) ) { + // nothing changes + state = DAT_LINE_VAL ; + } else if (( (IsADigit(sc.ch) || sc.ch == '.' || (sc.ch == 'e' || sc.ch == 'E') || + ((sc.ch == '+' || sc.ch == '-') && (sc.chPrev == 'e' || sc.chPrev == 'E')))) && + (sc.state == SCE_ABAQUS_NUMBER)) { + // remain in number mode + state = DAT_LINE_VAL ; + } else if (sc.state == SCE_ABAQUS_STRING) { + // accept everything until a closing quote + if ( sc.ch == '\'' || sc.ch == '\"' ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = DAT_LINE_VAL ; + } + } else if ( sc.ch == ',' ) { + sc.SetState(SCE_ABAQUS_OPERATOR) ; + state = DAT_LINE_COMMA ; + } else { + // anything else is an error + sc.SetState(SCE_ABAQUS_PROCESSOR) ; + state = ST_ERROR ; + } + break ; + case DAT_LINE_COMMA : + // a comma on a data line was seen + if ( sc.atLineEnd ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = LINE_END ; + } else if ( sc.ch == ' ' ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = DAT_LINE_COMMA ; + } else if (sc.ch == ',') { + sc.SetState(SCE_ABAQUS_OPERATOR) ; + state = DAT_LINE_COMMA ; + } else if ( IsADigit(sc.ch) || (sc.ch == '-')|| (sc.ch == '.' && IsADigit(sc.chNext)) ) { + sc.SetState(SCE_ABAQUS_NUMBER) ; + state = DAT_LINE_VAL ; + } else if ( IsAKeywordChar(sc.ch) ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = DAT_LINE_VAL ; + } else if ( (sc.ch == '\'') || (sc.ch == '\"') ) { + sc.SetState(SCE_ABAQUS_STRING) ; + state = DAT_LINE_VAL ; + } else { + sc.SetState(SCE_ABAQUS_PROCESSOR) ; + state = ST_ERROR ; + } + break ; + case COMMENT_LINE : + if ( sc.atLineEnd ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = LINE_END ; + } + break ; + case ST_ERROR : + if ( sc.atLineEnd ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = LINE_END ; + } + break ; + case LINE_END : + if ( sc.atLineEnd || sc.ch == ' ' ) { + // nothing changes + state = LINE_END ; + } else if ( sc.ch == '*' ) { + if ( sc.chNext == '*' ) { + state = COMMENT_LINE ; + sc.SetState(SCE_ABAQUS_COMMENT) ; + } else { + state = KW_LINE_KW ; + sc.SetState(SCE_ABAQUS_STARCOMMAND) ; + } + } else { + // it must be a data line, things are as if we are in DAT_LINE_COMMA + if ( sc.ch == ',' ) { + sc.SetState(SCE_ABAQUS_OPERATOR) ; + state = DAT_LINE_COMMA ; + } else if ( IsADigit(sc.ch) || (sc.ch == '-')|| (sc.ch == '.' && IsADigit(sc.chNext)) ) { + sc.SetState(SCE_ABAQUS_NUMBER) ; + state = DAT_LINE_VAL ; + } else if ( IsAKeywordChar(sc.ch) ) { + sc.SetState(SCE_ABAQUS_DEFAULT) ; + state = DAT_LINE_VAL ; + } else if ( (sc.ch == '\'') || (sc.ch == '\"') ) { + sc.SetState(SCE_ABAQUS_STRING) ; + state = DAT_LINE_VAL ; + } else { + sc.SetState(SCE_ABAQUS_PROCESSOR) ; + state = ST_ERROR ; + } + } + break ; + } + } + sc.Complete(); +} + +//------------------------------------------------------------------------------ +// This copyied and modified from LexBasic.cxx +//------------------------------------------------------------------------------ + +/* Bits: + * 1 - whitespace + * 2 - operator + * 4 - identifier + * 8 - decimal digit + * 16 - hex digit + * 32 - bin digit + */ +static int character_classification[128] = +{ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 2, 0, 2, 2, 2, 2, 2, 2, 2, 6, 2, 2, 2, 10, 6, + 60, 60, 28, 28, 28, 28, 28, 28, 28, 28, 2, 2, 2, 2, 2, 2, + 2, 20, 20, 20, 20, 20, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 4, + 2, 20, 20, 20, 20, 20, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 0 +}; + +static bool IsSpace(int c) { + return c < 128 && (character_classification[c] & 1); +} + +static bool IsIdentifier(int c) { + return c < 128 && (character_classification[c] & 4); +} + +static int LowerCase(int c) +{ + if (c >= 'A' && c <= 'Z') + return 'a' + c - 'A'; + return c; +} + +static int LineEnd(int line, Accessor &styler) +{ + const int docLines = styler.GetLine(styler.Length() - 1); // Available last line + int eol_pos ; + // if the line is the last line, the eol_pos is styler.Length() + // eol will contain a new line, or a virtual new line + if ( docLines == line ) + eol_pos = styler.Length() ; + else + eol_pos = styler.LineStart(line + 1) - 1; + return eol_pos ; +} + +static int LineStart(int line, Accessor &styler) +{ + return styler.LineStart(line) ; +} + +// LineType +// +// bits determines the line type +// 1 : data line +// 2 : only whitespace +// 3 : data line with only whitespace +// 4 : keyword line +// 5 : block open keyword line +// 6 : block close keyword line +// 7 : keyword line in error +// 8 : comment line +static int LineType(int line, Accessor &styler) { + int pos = LineStart(line, styler) ; + int eol_pos = LineEnd(line, styler) ; + + int c ; + char ch = ' '; + + int i = pos ; + while ( i < eol_pos ) { + c = styler.SafeGetCharAt(i); + ch = static_cast(LowerCase(c)); + // We can say something as soon as no whitespace + // was encountered + if ( !IsSpace(c) ) + break ; + i++ ; + } + + if ( i >= eol_pos ) { + // This is a whitespace line, currently + // classifies as data line + return 3 ; + } + + if ( ch != '*' ) { + // This is a data line + return 1 ; + } + + if ( i == eol_pos - 1 ) { + // Only a single *, error but make keyword line + return 4+3 ; + } + + // This means we can have a second character + // if that is also a * this means a comment + // otherwise it is a keyword. + c = styler.SafeGetCharAt(i+1); + ch = static_cast(LowerCase(c)); + if ( ch == '*' ) { + return 8 ; + } + + // At this point we know this is a keyword line + // the character at position i is a * + // it is not a comment line + char word[256] ; + int wlen = 0; + + word[wlen] = '*' ; + wlen++ ; + + i++ ; + while ( (i < eol_pos) && (wlen < 255) ) { + c = styler.SafeGetCharAt(i); + ch = static_cast(LowerCase(c)); + + if ( (!IsSpace(c)) && (!IsIdentifier(c)) ) + break ; + + if ( IsIdentifier(c) ) { + word[wlen] = ch ; + wlen++ ; + } + + i++ ; + } + + word[wlen] = 0 ; + + // Make a comparison + if ( !strcmp(word, "*step") || + !strcmp(word, "*part") || + !strcmp(word, "*instance") || + !strcmp(word, "*assembly")) { + return 4+1 ; + } + + if ( !strcmp(word, "*endstep") || + !strcmp(word, "*endpart") || + !strcmp(word, "*endinstance") || + !strcmp(word, "*endassembly")) { + return 4+2 ; + } + + return 4 ; +} + +static void SafeSetLevel(int line, int level, Accessor &styler) +{ + if ( line < 0 ) + return ; + + int mask = ((~SC_FOLDLEVELHEADERFLAG) | (~SC_FOLDLEVELWHITEFLAG)); + + if ( (level & mask) < 0 ) + return ; + + if ( styler.LevelAt(line) != level ) + styler.SetLevel(line, level) ; +} + +static void FoldABAQUSDoc(unsigned int startPos, int length, int, +WordList *[], Accessor &styler) { + int startLine = styler.GetLine(startPos) ; + int endLine = styler.GetLine(startPos+length-1) ; + + // bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + // We want to deal with all the cases + // To know the correct indentlevel, we need to look back to the + // previous command line indentation level + // order of formatting keyline datalines commentlines + int beginData = -1 ; + int beginComment = -1 ; + int prvKeyLine = startLine ; + int prvKeyLineTp = 0 ; + + // Scan until we find the previous keyword line + // this will give us the level reference that we need + while ( prvKeyLine > 0 ) { + prvKeyLine-- ; + prvKeyLineTp = LineType(prvKeyLine, styler) ; + if ( prvKeyLineTp & 4 ) + break ; + } + + // Determine the base line level of all lines following + // the previous keyword + // new keyword lines are placed on this level + //if ( prvKeyLineTp & 4 ) { + int level = styler.LevelAt(prvKeyLine) & ~SC_FOLDLEVELHEADERFLAG ; + //} + + // uncomment line below if weird behaviour continues + prvKeyLine = -1 ; + + // Now start scanning over the lines. + for ( int line = startLine; line <= endLine; line++ ) { + int lineType = LineType(line, styler) ; + + // Check for comment line + if ( lineType == 8 ) { + if ( beginComment < 0 ) { + beginComment = line ; + } + } + + // Check for data line + if ( (lineType == 1) || (lineType == 3) ) { + if ( beginData < 0 ) { + if ( beginComment >= 0 ) { + beginData = beginComment ; + } else { + beginData = line ; + } + } + beginComment = -1 ; + } + + // Check for keywordline. + // As soon as a keyword line is encountered, we can set the + // levels of everything from the previous keyword line to this one + if ( lineType & 4 ) { + // this is a keyword, we can now place the previous keyword + // all its data lines and the remainder + + // Write comments and data line + if ( beginComment < 0 ) { + beginComment = line ; + } + + if ( beginData < 0 ) { + beginData = beginComment ; + if ( prvKeyLineTp != 5 ) + SafeSetLevel(prvKeyLine, level, styler) ; + else + SafeSetLevel(prvKeyLine, level | SC_FOLDLEVELHEADERFLAG, styler) ; + } else { + SafeSetLevel(prvKeyLine, level | SC_FOLDLEVELHEADERFLAG, styler) ; + } + + int datLevel = level + 1 ; + if ( !(prvKeyLineTp & 4) ) { + datLevel = level ; + } + + for ( int ll = beginData; ll < beginComment; ll++ ) + SafeSetLevel(ll, datLevel, styler) ; + + // The keyword we just found is going to be written at another level + // if we have a type 5 and type 6 + if ( prvKeyLineTp == 5 ) { + level += 1 ; + } + + if ( prvKeyLineTp == 6 ) { + level -= 1 ; + if ( level < 0 ) { + level = 0 ; + } + } + + for ( int lll = beginComment; lll < line; lll++ ) + SafeSetLevel(lll, level, styler) ; + + // wrap and reset + beginComment = -1 ; + beginData = -1 ; + prvKeyLine = line ; + prvKeyLineTp = lineType ; + } + + } + + if ( beginComment < 0 ) { + beginComment = endLine + 1 ; + } else { + // We need to find out whether this comment block is followed by + // a data line or a keyword line + const int docLines = styler.GetLine(styler.Length() - 1); + + for ( int line = endLine + 1; line <= docLines; line++ ) { + int lineType = LineType(line, styler) ; + + if ( lineType != 8 ) { + if ( !(lineType & 4) ) { + beginComment = endLine + 1 ; + } + break ; + } + } + } + + if ( beginData < 0 ) { + beginData = beginComment ; + if ( prvKeyLineTp != 5 ) + SafeSetLevel(prvKeyLine, level, styler) ; + else + SafeSetLevel(prvKeyLine, level | SC_FOLDLEVELHEADERFLAG, styler) ; + } else { + SafeSetLevel(prvKeyLine, level | SC_FOLDLEVELHEADERFLAG, styler) ; + } + + int datLevel = level + 1 ; + if ( !(prvKeyLineTp & 4) ) { + datLevel = level ; + } + + for ( int ll = beginData; ll < beginComment; ll++ ) + SafeSetLevel(ll, datLevel, styler) ; + + if ( prvKeyLineTp == 5 ) { + level += 1 ; + } + + if ( prvKeyLineTp == 6 ) { + level -= 1 ; + } + for ( int m = beginComment; m <= endLine; m++ ) + SafeSetLevel(m, level, styler) ; +} + +static const char * const abaqusWordListDesc[] = { + "processors", + "commands", + "slashommands", + "starcommands", + "arguments", + "functions", + 0 +}; + +LexerModule lmAbaqus(SCLEX_ABAQUS, ColouriseABAQUSDoc, "abaqus", FoldABAQUSDoc, abaqusWordListDesc); diff --git a/lexers/LexAda.cpp b/lexers/LexAda.cpp new file mode 100644 index 0000000..7a7dea6 --- /dev/null +++ b/lexers/LexAda.cpp @@ -0,0 +1,515 @@ +// Scintilla source code edit control +/** @file LexAda.cxx + ** Lexer for Ada 95 + **/ +// Copyright 2002 by Sergey Koshcheyev +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +/* + * Interface + */ + +static void ColouriseDocument( + unsigned int startPos, + int length, + int initStyle, + WordList *keywordlists[], + Accessor &styler); + +static const char * const adaWordListDesc[] = { + "Keywords", + 0 +}; + +LexerModule lmAda(SCLEX_ADA, ColouriseDocument, "ada", NULL, adaWordListDesc); + +/* + * Implementation + */ + +// Functions that have apostropheStartsAttribute as a parameter set it according to whether +// an apostrophe encountered after processing the current token will start an attribute or +// a character literal. +static void ColouriseCharacter(StyleContext& sc, bool& apostropheStartsAttribute); +static void ColouriseComment(StyleContext& sc, bool& apostropheStartsAttribute); +static void ColouriseContext(StyleContext& sc, char chEnd, int stateEOL); +static void ColouriseDelimiter(StyleContext& sc, bool& apostropheStartsAttribute); +static void ColouriseLabel(StyleContext& sc, WordList& keywords, bool& apostropheStartsAttribute); +static void ColouriseNumber(StyleContext& sc, bool& apostropheStartsAttribute); +static void ColouriseString(StyleContext& sc, bool& apostropheStartsAttribute); +static void ColouriseWhiteSpace(StyleContext& sc, bool& apostropheStartsAttribute); +static void ColouriseWord(StyleContext& sc, WordList& keywords, bool& apostropheStartsAttribute); + +static inline bool IsDelimiterCharacter(int ch); +static inline bool IsSeparatorOrDelimiterCharacter(int ch); +static bool IsValidIdentifier(const std::string& identifier); +static bool IsValidNumber(const std::string& number); +static inline bool IsWordStartCharacter(int ch); +static inline bool IsWordCharacter(int ch); + +static void ColouriseCharacter(StyleContext& sc, bool& apostropheStartsAttribute) { + apostropheStartsAttribute = true; + + sc.SetState(SCE_ADA_CHARACTER); + + // Skip the apostrophe and one more character (so that '' is shown as non-terminated and ''' + // is handled correctly) + sc.Forward(); + sc.Forward(); + + ColouriseContext(sc, '\'', SCE_ADA_CHARACTEREOL); +} + +static void ColouriseContext(StyleContext& sc, char chEnd, int stateEOL) { + while (!sc.atLineEnd && !sc.Match(chEnd)) { + sc.Forward(); + } + + if (!sc.atLineEnd) { + sc.ForwardSetState(SCE_ADA_DEFAULT); + } else { + sc.ChangeState(stateEOL); + } +} + +static void ColouriseComment(StyleContext& sc, bool& /*apostropheStartsAttribute*/) { + // Apostrophe meaning is not changed, but the parameter is present for uniformity + + sc.SetState(SCE_ADA_COMMENTLINE); + + while (!sc.atLineEnd) { + sc.Forward(); + } +} + +static void ColouriseDelimiter(StyleContext& sc, bool& apostropheStartsAttribute) { + apostropheStartsAttribute = sc.Match (')'); + sc.SetState(SCE_ADA_DELIMITER); + sc.ForwardSetState(SCE_ADA_DEFAULT); +} + +static void ColouriseLabel(StyleContext& sc, WordList& keywords, bool& apostropheStartsAttribute) { + apostropheStartsAttribute = false; + + sc.SetState(SCE_ADA_LABEL); + + // Skip "<<" + sc.Forward(); + sc.Forward(); + + std::string identifier; + + while (!sc.atLineEnd && !IsSeparatorOrDelimiterCharacter(sc.ch)) { + identifier += static_cast(tolower(sc.ch)); + sc.Forward(); + } + + // Skip ">>" + if (sc.Match('>', '>')) { + sc.Forward(); + sc.Forward(); + } else { + sc.ChangeState(SCE_ADA_ILLEGAL); + } + + // If the name is an invalid identifier or a keyword, then make it invalid label + if (!IsValidIdentifier(identifier) || keywords.InList(identifier.c_str())) { + sc.ChangeState(SCE_ADA_ILLEGAL); + } + + sc.SetState(SCE_ADA_DEFAULT); + +} + +static void ColouriseNumber(StyleContext& sc, bool& apostropheStartsAttribute) { + apostropheStartsAttribute = true; + + std::string number; + sc.SetState(SCE_ADA_NUMBER); + + // Get all characters up to a delimiter or a separator, including points, but excluding + // double points (ranges). + while (!IsSeparatorOrDelimiterCharacter(sc.ch) || (sc.ch == '.' && sc.chNext != '.')) { + number += static_cast(sc.ch); + sc.Forward(); + } + + // Special case: exponent with sign + if ((sc.chPrev == 'e' || sc.chPrev == 'E') && + (sc.ch == '+' || sc.ch == '-')) { + number += static_cast(sc.ch); + sc.Forward (); + + while (!IsSeparatorOrDelimiterCharacter(sc.ch)) { + number += static_cast(sc.ch); + sc.Forward(); + } + } + + if (!IsValidNumber(number)) { + sc.ChangeState(SCE_ADA_ILLEGAL); + } + + sc.SetState(SCE_ADA_DEFAULT); +} + +static void ColouriseString(StyleContext& sc, bool& apostropheStartsAttribute) { + apostropheStartsAttribute = true; + + sc.SetState(SCE_ADA_STRING); + sc.Forward(); + + ColouriseContext(sc, '"', SCE_ADA_STRINGEOL); +} + +static void ColouriseWhiteSpace(StyleContext& sc, bool& /*apostropheStartsAttribute*/) { + // Apostrophe meaning is not changed, but the parameter is present for uniformity + sc.SetState(SCE_ADA_DEFAULT); + sc.ForwardSetState(SCE_ADA_DEFAULT); +} + +static void ColouriseWord(StyleContext& sc, WordList& keywords, bool& apostropheStartsAttribute) { + apostropheStartsAttribute = true; + sc.SetState(SCE_ADA_IDENTIFIER); + + std::string word; + + while (!sc.atLineEnd && !IsSeparatorOrDelimiterCharacter(sc.ch)) { + word += static_cast(tolower(sc.ch)); + sc.Forward(); + } + + if (!IsValidIdentifier(word)) { + sc.ChangeState(SCE_ADA_ILLEGAL); + + } else if (keywords.InList(word.c_str())) { + sc.ChangeState(SCE_ADA_WORD); + + if (word != "all") { + apostropheStartsAttribute = false; + } + } + + sc.SetState(SCE_ADA_DEFAULT); +} + +// +// ColouriseDocument +// + +static void ColouriseDocument( + unsigned int startPos, + int length, + int initStyle, + WordList *keywordlists[], + Accessor &styler) { + WordList &keywords = *keywordlists[0]; + + StyleContext sc(startPos, length, initStyle, styler); + + int lineCurrent = styler.GetLine(startPos); + bool apostropheStartsAttribute = (styler.GetLineState(lineCurrent) & 1) != 0; + + while (sc.More()) { + if (sc.atLineEnd) { + // Go to the next line + sc.Forward(); + lineCurrent++; + + // Remember the line state for future incremental lexing + styler.SetLineState(lineCurrent, apostropheStartsAttribute); + + // Don't continue any styles on the next line + sc.SetState(SCE_ADA_DEFAULT); + } + + // Comments + if (sc.Match('-', '-')) { + ColouriseComment(sc, apostropheStartsAttribute); + + // Strings + } else if (sc.Match('"')) { + ColouriseString(sc, apostropheStartsAttribute); + + // Characters + } else if (sc.Match('\'') && !apostropheStartsAttribute) { + ColouriseCharacter(sc, apostropheStartsAttribute); + + // Labels + } else if (sc.Match('<', '<')) { + ColouriseLabel(sc, keywords, apostropheStartsAttribute); + + // Whitespace + } else if (IsASpace(sc.ch)) { + ColouriseWhiteSpace(sc, apostropheStartsAttribute); + + // Delimiters + } else if (IsDelimiterCharacter(sc.ch)) { + ColouriseDelimiter(sc, apostropheStartsAttribute); + + // Numbers + } else if (IsADigit(sc.ch) || sc.ch == '#') { + ColouriseNumber(sc, apostropheStartsAttribute); + + // Keywords or identifiers + } else { + ColouriseWord(sc, keywords, apostropheStartsAttribute); + } + } + + sc.Complete(); +} + +static inline bool IsDelimiterCharacter(int ch) { + switch (ch) { + case '&': + case '\'': + case '(': + case ')': + case '*': + case '+': + case ',': + case '-': + case '.': + case '/': + case ':': + case ';': + case '<': + case '=': + case '>': + case '|': + return true; + default: + return false; + } +} + +static inline bool IsSeparatorOrDelimiterCharacter(int ch) { + return IsASpace(ch) || IsDelimiterCharacter(ch); +} + +static bool IsValidIdentifier(const std::string& identifier) { + // First character can't be '_', so initialize the flag to true + bool lastWasUnderscore = true; + + size_t length = identifier.length(); + + // Zero-length identifiers are not valid (these can occur inside labels) + if (length == 0) { + return false; + } + + // Check for valid character at the start + if (!IsWordStartCharacter(identifier[0])) { + return false; + } + + // Check for only valid characters and no double underscores + for (size_t i = 0; i < length; i++) { + if (!IsWordCharacter(identifier[i]) || + (identifier[i] == '_' && lastWasUnderscore)) { + return false; + } + lastWasUnderscore = identifier[i] == '_'; + } + + // Check for underscore at the end + if (lastWasUnderscore == true) { + return false; + } + + // All checks passed + return true; +} + +static bool IsValidNumber(const std::string& number) { + size_t hashPos = number.find("#"); + bool seenDot = false; + + size_t i = 0; + size_t length = number.length(); + + if (length == 0) + return false; // Just in case + + // Decimal number + if (hashPos == std::string::npos) { + bool canBeSpecial = false; + + for (; i < length; i++) { + if (number[i] == '_') { + if (!canBeSpecial) { + return false; + } + canBeSpecial = false; + } else if (number[i] == '.') { + if (!canBeSpecial || seenDot) { + return false; + } + canBeSpecial = false; + seenDot = true; + } else if (IsADigit(number[i])) { + canBeSpecial = true; + } else { + break; + } + } + + if (!canBeSpecial) + return false; + } else { + // Based number + bool canBeSpecial = false; + int base = 0; + + // Parse base + for (; i < length; i++) { + int ch = number[i]; + if (ch == '_') { + if (!canBeSpecial) + return false; + canBeSpecial = false; + } else if (IsADigit(ch)) { + base = base * 10 + (ch - '0'); + if (base > 16) + return false; + canBeSpecial = true; + } else if (ch == '#' && canBeSpecial) { + break; + } else { + return false; + } + } + + if (base < 2) + return false; + if (i == length) + return false; + + i++; // Skip over '#' + + // Parse number + canBeSpecial = false; + + for (; i < length; i++) { + int ch = tolower(number[i]); + + if (ch == '_') { + if (!canBeSpecial) { + return false; + } + canBeSpecial = false; + + } else if (ch == '.') { + if (!canBeSpecial || seenDot) { + return false; + } + canBeSpecial = false; + seenDot = true; + + } else if (IsADigit(ch)) { + if (ch - '0' >= base) { + return false; + } + canBeSpecial = true; + + } else if (ch >= 'a' && ch <= 'f') { + if (ch - 'a' + 10 >= base) { + return false; + } + canBeSpecial = true; + + } else if (ch == '#' && canBeSpecial) { + break; + + } else { + return false; + } + } + + if (i == length) { + return false; + } + + i++; + } + + // Exponent (optional) + if (i < length) { + if (number[i] != 'e' && number[i] != 'E') + return false; + + i++; // Move past 'E' + + if (i == length) { + return false; + } + + if (number[i] == '+') + i++; + else if (number[i] == '-') { + if (seenDot) { + i++; + } else { + return false; // Integer literals should not have negative exponents + } + } + + if (i == length) { + return false; + } + + bool canBeSpecial = false; + + for (; i < length; i++) { + if (number[i] == '_') { + if (!canBeSpecial) { + return false; + } + canBeSpecial = false; + } else if (IsADigit(number[i])) { + canBeSpecial = true; + } else { + return false; + } + } + + if (!canBeSpecial) + return false; + } + + // if i == length, number was parsed successfully. + return i == length; +} + +static inline bool IsWordCharacter(int ch) { + return IsWordStartCharacter(ch) || IsADigit(ch); +} + +static inline bool IsWordStartCharacter(int ch) { + return (IsASCII(ch) && isalpha(ch)) || ch == '_'; +} diff --git a/lexers/LexAsm.cpp b/lexers/LexAsm.cpp new file mode 100644 index 0000000..b327ce5 --- /dev/null +++ b/lexers/LexAsm.cpp @@ -0,0 +1,460 @@ +// Scintilla source code edit control +/** @file LexAsm.cxx + ** Lexer for Assembler, just for the MASM syntax + ** Written by The Black Horus + ** Enhancements and NASM stuff by Kein-Hong Man, 2003-10 + ** SCE_ASM_COMMENTBLOCK and SCE_ASM_CHARACTER are for future GNU as colouring + ** Converted to lexer object and added further folding features/properties by "Udo Lechner" + **/ +// Copyright 1998-2003 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" +#include "OptionSet.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '.' || + ch == '_' || ch == '?'); +} + +static inline bool IsAWordStart(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '.' || + ch == '%' || ch == '@' || ch == '$' || ch == '?'); +} + +static inline bool IsAsmOperator(const int ch) { + if ((ch < 0x80) && (isalnum(ch))) + return false; + // '.' left out as it is used to make up numbers + if (ch == '*' || ch == '/' || ch == '-' || ch == '+' || + ch == '(' || ch == ')' || ch == '=' || ch == '^' || + ch == '[' || ch == ']' || ch == '<' || ch == '&' || + ch == '>' || ch == ',' || ch == '|' || ch == '~' || + ch == '%' || ch == ':') + return true; + return false; +} + +static bool IsStreamCommentStyle(int style) { + return style == SCE_ASM_COMMENTDIRECTIVE || style == SCE_ASM_COMMENTBLOCK; +} + +static inline int LowerCase(int c) { + if (c >= 'A' && c <= 'Z') + return 'a' + c - 'A'; + return c; +} + +// An individual named option for use in an OptionSet + +// Options used for LexerAsm +struct OptionsAsm { + std::string delimiter; + bool fold; + bool foldSyntaxBased; + bool foldCommentMultiline; + bool foldCommentExplicit; + std::string foldExplicitStart; + std::string foldExplicitEnd; + bool foldExplicitAnywhere; + bool foldCompact; + OptionsAsm() { + delimiter = ""; + fold = false; + foldSyntaxBased = true; + foldCommentMultiline = false; + foldCommentExplicit = false; + foldExplicitStart = ""; + foldExplicitEnd = ""; + foldExplicitAnywhere = false; + foldCompact = true; + } +}; + +static const char * const asmWordListDesc[] = { + "CPU instructions", + "FPU instructions", + "Registers", + "Directives", + "Directive operands", + "Extended instructions", + "Directives4Foldstart", + "Directives4Foldend", + 0 +}; + +struct OptionSetAsm : public OptionSet { + OptionSetAsm() { + DefineProperty("lexer.asm.comment.delimiter", &OptionsAsm::delimiter, + "Character used for COMMENT directive's delimiter, replacing the standard \"~\"."); + + DefineProperty("fold", &OptionsAsm::fold); + + DefineProperty("fold.asm.syntax.based", &OptionsAsm::foldSyntaxBased, + "Set this property to 0 to disable syntax based folding."); + + DefineProperty("fold.asm.comment.multiline", &OptionsAsm::foldCommentMultiline, + "Set this property to 1 to enable folding multi-line comments."); + + DefineProperty("fold.asm.comment.explicit", &OptionsAsm::foldCommentExplicit, + "This option enables folding explicit fold points when using the Asm lexer. " + "Explicit fold points allows adding extra folding by placing a ;{ comment at the start and a ;} " + "at the end of a section that should fold."); + + DefineProperty("fold.asm.explicit.start", &OptionsAsm::foldExplicitStart, + "The string to use for explicit fold start points, replacing the standard ;{."); + + DefineProperty("fold.asm.explicit.end", &OptionsAsm::foldExplicitEnd, + "The string to use for explicit fold end points, replacing the standard ;}."); + + DefineProperty("fold.asm.explicit.anywhere", &OptionsAsm::foldExplicitAnywhere, + "Set this property to 1 to enable explicit fold points anywhere, not just in line comments."); + + DefineProperty("fold.compact", &OptionsAsm::foldCompact); + + DefineWordListSets(asmWordListDesc); + } +}; + +class LexerAsm : public ILexer { + WordList cpuInstruction; + WordList mathInstruction; + WordList registers; + WordList directive; + WordList directiveOperand; + WordList extInstruction; + WordList directives4foldstart; + WordList directives4foldend; + OptionsAsm options; + OptionSetAsm osAsm; +public: + LexerAsm() { + } + virtual ~LexerAsm() { + } + void SCI_METHOD Release() { + delete this; + } + int SCI_METHOD Version() const { + return lvOriginal; + } + const char * SCI_METHOD PropertyNames() { + return osAsm.PropertyNames(); + } + int SCI_METHOD PropertyType(const char *name) { + return osAsm.PropertyType(name); + } + const char * SCI_METHOD DescribeProperty(const char *name) { + return osAsm.DescribeProperty(name); + } + int SCI_METHOD PropertySet(const char *key, const char *val); + const char * SCI_METHOD DescribeWordListSets() { + return osAsm.DescribeWordListSets(); + } + int SCI_METHOD WordListSet(int n, const char *wl); + void SCI_METHOD Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + void SCI_METHOD Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + + void * SCI_METHOD PrivateCall(int, void *) { + return 0; + } + + static ILexer *LexerFactoryAsm() { + return new LexerAsm(); + } +}; + +int SCI_METHOD LexerAsm::PropertySet(const char *key, const char *val) { + if (osAsm.PropertySet(&options, key, val)) { + return 0; + } + return -1; +} + +int SCI_METHOD LexerAsm::WordListSet(int n, const char *wl) { + WordList *wordListN = 0; + switch (n) { + case 0: + wordListN = &cpuInstruction; + break; + case 1: + wordListN = &mathInstruction; + break; + case 2: + wordListN = ®isters; + break; + case 3: + wordListN = &directive; + break; + case 4: + wordListN = &directiveOperand; + break; + case 5: + wordListN = &extInstruction; + break; + case 6: + wordListN = &directives4foldstart; + break; + case 7: + wordListN = &directives4foldend; + break; + } + int firstModification = -1; + if (wordListN) { + WordList wlNew; + wlNew.Set(wl); + if (*wordListN != wlNew) { + wordListN->Set(wl); + firstModification = 0; + } + } + return firstModification; +} + +void SCI_METHOD LexerAsm::Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { + LexAccessor styler(pAccess); + + // Do not leak onto next line + if (initStyle == SCE_ASM_STRINGEOL) + initStyle = SCE_ASM_DEFAULT; + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) + { + + // Prevent SCE_ASM_STRINGEOL from leaking back to previous line + if (sc.atLineStart && (sc.state == SCE_ASM_STRING)) { + sc.SetState(SCE_ASM_STRING); + } else if (sc.atLineStart && (sc.state == SCE_ASM_CHARACTER)) { + sc.SetState(SCE_ASM_CHARACTER); + } + + // Handle line continuation generically. + if (sc.ch == '\\') { + if (sc.chNext == '\n' || sc.chNext == '\r') { + sc.Forward(); + if (sc.ch == '\r' && sc.chNext == '\n') { + sc.Forward(); + } + continue; + } + } + + // Determine if the current state should terminate. + if (sc.state == SCE_ASM_OPERATOR) { + if (!IsAsmOperator(sc.ch)) { + sc.SetState(SCE_ASM_DEFAULT); + } + } else if (sc.state == SCE_ASM_NUMBER) { + if (!IsAWordChar(sc.ch)) { + sc.SetState(SCE_ASM_DEFAULT); + } + } else if (sc.state == SCE_ASM_IDENTIFIER) { + if (!IsAWordChar(sc.ch) ) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + bool IsDirective = false; + + if (cpuInstruction.InList(s)) { + sc.ChangeState(SCE_ASM_CPUINSTRUCTION); + } else if (mathInstruction.InList(s)) { + sc.ChangeState(SCE_ASM_MATHINSTRUCTION); + } else if (registers.InList(s)) { + sc.ChangeState(SCE_ASM_REGISTER); + } else if (directive.InList(s)) { + sc.ChangeState(SCE_ASM_DIRECTIVE); + IsDirective = true; + } else if (directiveOperand.InList(s)) { + sc.ChangeState(SCE_ASM_DIRECTIVEOPERAND); + } else if (extInstruction.InList(s)) { + sc.ChangeState(SCE_ASM_EXTINSTRUCTION); + } + sc.SetState(SCE_ASM_DEFAULT); + if (IsDirective && !strcmp(s, "comment")) { + char delimiter = options.delimiter.empty() ? '~' : options.delimiter.c_str()[0]; + while (IsASpaceOrTab(sc.ch) && !sc.atLineEnd) { + sc.ForwardSetState(SCE_ASM_DEFAULT); + } + if (sc.ch == delimiter) { + sc.SetState(SCE_ASM_COMMENTDIRECTIVE); + } + } + } + } else if (sc.state == SCE_ASM_COMMENTDIRECTIVE) { + char delimiter = options.delimiter.empty() ? '~' : options.delimiter.c_str()[0]; + if (sc.ch == delimiter) { + while (!sc.atLineEnd) { + sc.Forward(); + } + sc.SetState(SCE_ASM_DEFAULT); + } + } else if (sc.state == SCE_ASM_COMMENT ) { + if (sc.atLineEnd) { + sc.SetState(SCE_ASM_DEFAULT); + } + } else if (sc.state == SCE_ASM_STRING) { + if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\"') { + sc.ForwardSetState(SCE_ASM_DEFAULT); + } else if (sc.atLineEnd) { + sc.ChangeState(SCE_ASM_STRINGEOL); + sc.ForwardSetState(SCE_ASM_DEFAULT); + } + } else if (sc.state == SCE_ASM_CHARACTER) { + if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\'') { + sc.ForwardSetState(SCE_ASM_DEFAULT); + } else if (sc.atLineEnd) { + sc.ChangeState(SCE_ASM_STRINGEOL); + sc.ForwardSetState(SCE_ASM_DEFAULT); + } + } + + // Determine if a new state should be entered. + if (sc.state == SCE_ASM_DEFAULT) { + if (sc.ch == ';'){ + sc.SetState(SCE_ASM_COMMENT); + } else if (IsASCII(sc.ch) && (isdigit(sc.ch) || (sc.ch == '.' && IsASCII(sc.chNext) && isdigit(sc.chNext)))) { + sc.SetState(SCE_ASM_NUMBER); + } else if (IsAWordStart(sc.ch)) { + sc.SetState(SCE_ASM_IDENTIFIER); + } else if (sc.ch == '\"') { + sc.SetState(SCE_ASM_STRING); + } else if (sc.ch == '\'') { + sc.SetState(SCE_ASM_CHARACTER); + } else if (IsAsmOperator(sc.ch)) { + sc.SetState(SCE_ASM_OPERATOR); + } + } + + } + sc.Complete(); +} + +// Store both the current line's fold level and the next lines in the +// level store to make it easy to pick up with each increment +// and to make it possible to fiddle the current level for "else". + +void SCI_METHOD LexerAsm::Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { + + if (!options.fold) + return; + + LexAccessor styler(pAccess); + + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelCurrent = SC_FOLDLEVELBASE; + if (lineCurrent > 0) + levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; + int levelNext = levelCurrent; + char chNext = styler[startPos]; + int styleNext = styler.StyleAt(startPos); + int style = initStyle; + char word[100]; + int wordlen = 0; + const bool userDefinedFoldMarkers = !options.foldExplicitStart.empty() && !options.foldExplicitEnd.empty(); + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int stylePrev = style; + style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if (options.foldCommentMultiline && IsStreamCommentStyle(style)) { + if (!IsStreamCommentStyle(stylePrev)) { + levelNext++; + } else if (!IsStreamCommentStyle(styleNext) && !atEOL) { + // Comments don't end at end of line and the next character may be unstyled. + levelNext--; + } + } + if (options.foldCommentExplicit && ((style == SCE_ASM_COMMENT) || options.foldExplicitAnywhere)) { + if (userDefinedFoldMarkers) { + if (styler.Match(i, options.foldExplicitStart.c_str())) { + levelNext++; + } else if (styler.Match(i, options.foldExplicitEnd.c_str())) { + levelNext--; + } + } else { + if (ch == ';') { + if (chNext == '{') { + levelNext++; + } else if (chNext == '}') { + levelNext--; + } + } + } + } + if (options.foldSyntaxBased && (style == SCE_ASM_DIRECTIVE)) { + word[wordlen++] = static_cast(LowerCase(ch)); + if (wordlen == 100) { // prevent overflow + word[0] = '\0'; + wordlen = 1; + } + if (styleNext != SCE_ASM_DIRECTIVE) { // reading directive ready + word[wordlen] = '\0'; + wordlen = 0; + if (directives4foldstart.InList(word)) { + levelNext++; + } else if (directives4foldend.InList(word)){ + levelNext--; + } + } + } + if (!IsASpace(ch)) + visibleChars++; + if (atEOL || (i == endPos-1)) { + int levelUse = levelCurrent; + int lev = levelUse | levelNext << 16; + if (visibleChars == 0 && options.foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if (levelUse < levelNext) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelCurrent = levelNext; + if (atEOL && (i == static_cast(styler.Length()-1))) { + // There is an empty line at end of file so give it same level and empty + styler.SetLevel(lineCurrent, (levelCurrent | levelCurrent << 16) | SC_FOLDLEVELWHITEFLAG); + } + visibleChars = 0; + } + } +} + +LexerModule lmAsm(SCLEX_ASM, LexerAsm::LexerFactoryAsm, "asm", asmWordListDesc); + diff --git a/lexers/LexAsn1.cpp b/lexers/LexAsn1.cpp new file mode 100644 index 0000000..120b895 --- /dev/null +++ b/lexers/LexAsn1.cpp @@ -0,0 +1,188 @@ +// Scintilla source code edit control +/** @file LexAsn1.cxx + ** Lexer for ASN.1 + **/ +// Copyright 2004 by Herr Pfarrer rpfarrer yahoo de +// Last Updated: 20/07/2004 +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +// Some char test functions +static bool isAsn1Number(int ch) +{ + return (ch >= '0' && ch <= '9'); +} + +static bool isAsn1Letter(int ch) +{ + return (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z'); +} + +static bool isAsn1Char(int ch) +{ + return (ch == '-' ) || isAsn1Number(ch) || isAsn1Letter (ch); +} + +// +// Function determining the color of a given code portion +// Based on a "state" +// +static void ColouriseAsn1Doc(unsigned int startPos, int length, int initStyle, WordList *keywordLists[], Accessor &styler) +{ + // The keywords + WordList &Keywords = *keywordLists[0]; + WordList &Attributes = *keywordLists[1]; + WordList &Descriptors = *keywordLists[2]; + WordList &Types = *keywordLists[3]; + + // Parse the whole buffer character by character using StyleContext + StyleContext sc(startPos, length, initStyle, styler); + for (; sc.More(); sc.Forward()) + { + // The state engine + switch (sc.state) + { + case SCE_ASN1_DEFAULT: // Plain characters +asn1_default: + if (sc.ch == '-' && sc.chNext == '-') + // A comment begins here + sc.SetState(SCE_ASN1_COMMENT); + else if (sc.ch == '"') + // A string begins here + sc.SetState(SCE_ASN1_STRING); + else if (isAsn1Number (sc.ch)) + // A number starts here (identifier should start with a letter in ASN.1) + sc.SetState(SCE_ASN1_SCALAR); + else if (isAsn1Char (sc.ch)) + // An identifier starts here (identifier always start with a letter) + sc.SetState(SCE_ASN1_IDENTIFIER); + else if (sc.ch == ':') + // A ::= operator starts here + sc.SetState(SCE_ASN1_OPERATOR); + break; + case SCE_ASN1_COMMENT: // A comment + if (sc.ch == '\r' || sc.ch == '\n') + // A comment ends here + sc.SetState(SCE_ASN1_DEFAULT); + break; + case SCE_ASN1_IDENTIFIER: // An identifier (keyword, attribute, descriptor or type) + if (!isAsn1Char (sc.ch)) + { + // The end of identifier is here: we can look for it in lists by now and change its state + char s[100]; + sc.GetCurrent(s, sizeof(s)); + if (Keywords.InList(s)) + // It's a keyword, change its state + sc.ChangeState(SCE_ASN1_KEYWORD); + else if (Attributes.InList(s)) + // It's an attribute, change its state + sc.ChangeState(SCE_ASN1_ATTRIBUTE); + else if (Descriptors.InList(s)) + // It's a descriptor, change its state + sc.ChangeState(SCE_ASN1_DESCRIPTOR); + else if (Types.InList(s)) + // It's a type, change its state + sc.ChangeState(SCE_ASN1_TYPE); + + // Set to default now + sc.SetState(SCE_ASN1_DEFAULT); + } + break; + case SCE_ASN1_STRING: // A string delimited by "" + if (sc.ch == '"') + { + // A string ends here + sc.ForwardSetState(SCE_ASN1_DEFAULT); + + // To correctly manage a char sticking to the string quote + goto asn1_default; + } + break; + case SCE_ASN1_SCALAR: // A plain number + if (!isAsn1Number (sc.ch)) + // A number ends here + sc.SetState(SCE_ASN1_DEFAULT); + break; + case SCE_ASN1_OPERATOR: // The affectation operator ::= and wath follows (eg: ::= { org 6 } OID or ::= 12 trap) + if (sc.ch == '{') + { + // An OID definition starts here: enter the sub loop + for (; sc.More(); sc.Forward()) + { + if (isAsn1Number (sc.ch) && (!isAsn1Char (sc.chPrev) || isAsn1Number (sc.chPrev))) + // The OID number is highlighted + sc.SetState(SCE_ASN1_OID); + else if (isAsn1Char (sc.ch)) + // The OID parent identifier is plain + sc.SetState(SCE_ASN1_IDENTIFIER); + else + sc.SetState(SCE_ASN1_DEFAULT); + + if (sc.ch == '}') + // Here ends the OID and the operator sub loop: go back to main loop + break; + } + } + else if (isAsn1Number (sc.ch)) + { + // A trap number definition starts here: enter the sub loop + for (; sc.More(); sc.Forward()) + { + if (isAsn1Number (sc.ch)) + // The trap number is highlighted + sc.SetState(SCE_ASN1_OID); + else + { + // The number ends here: go back to main loop + sc.SetState(SCE_ASN1_DEFAULT); + break; + } + } + } + else if (sc.ch != ':' && sc.ch != '=' && sc.ch != ' ') + // The operator doesn't imply an OID definition nor a trap, back to main loop + goto asn1_default; // To be sure to handle actually the state change + break; + } + } + sc.Complete(); +} + +static void FoldAsn1Doc(unsigned int, int, int, WordList *[], Accessor &styler) +{ + // No folding enabled, no reason to continue... + if( styler.GetPropertyInt("fold") == 0 ) + return; + + // No folding implemented: doesn't make sense for ASN.1 +} + +static const char * const asn1WordLists[] = { + "Keywords", + "Attributes", + "Descriptors", + "Types", + 0, }; + + +LexerModule lmAsn1(SCLEX_ASN1, ColouriseAsn1Doc, "asn1", FoldAsn1Doc, asn1WordLists); diff --git a/lexers/LexBaan.cpp b/lexers/LexBaan.cpp new file mode 100644 index 0000000..3784f3c --- /dev/null +++ b/lexers/LexBaan.cpp @@ -0,0 +1,196 @@ +// Scintilla source code edit control +/** @file LexBaan.cxx + ** Lexer for Baan. + ** Based heavily on LexCPP.cxx + **/ +// Copyright 2001- by Vamsi Potluru & Praveen Ambekar +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_' || ch == '$' || ch == ':'); +} + +static inline bool IsAWordStart(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_'); +} + +static void ColouriseBaanDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + bool stylingWithinPreprocessor = styler.GetPropertyInt("styling.within.preprocessor") != 0; + + if (initStyle == SCE_BAAN_STRINGEOL) // Does not leak onto next line + initStyle = SCE_BAAN_DEFAULT; + + int visibleChars = 0; + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + + if (sc.state == SCE_BAAN_OPERATOR) { + sc.SetState(SCE_BAAN_DEFAULT); + } else if (sc.state == SCE_BAAN_NUMBER) { + if (!IsAWordChar(sc.ch)) { + sc.SetState(SCE_BAAN_DEFAULT); + } + } else if (sc.state == SCE_BAAN_IDENTIFIER) { + if (!IsAWordChar(sc.ch)) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + if (keywords.InList(s)) { + sc.ChangeState(SCE_BAAN_WORD); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_BAAN_WORD2); + } + sc.SetState(SCE_BAAN_DEFAULT); + } + } else if (sc.state == SCE_BAAN_PREPROCESSOR) { + if (stylingWithinPreprocessor) { + if (IsASpace(sc.ch)) { + sc.SetState(SCE_BAAN_DEFAULT); + } + } else { + if (sc.atLineEnd && (sc.chNext != '^')) { + sc.SetState(SCE_BAAN_DEFAULT); + } + } + } else if (sc.state == SCE_BAAN_COMMENT) { + if (sc.atLineEnd) { + sc.SetState(SCE_BAAN_DEFAULT); + } + } else if (sc.state == SCE_BAAN_COMMENTDOC) { + if (sc.MatchIgnoreCase("enddllusage")) { + for (unsigned int i = 0; i < 10; i++){ + sc.Forward(); + } + sc.ForwardSetState(SCE_BAAN_DEFAULT); + } + } else if (sc.state == SCE_BAAN_STRING) { + if (sc.ch == '\"') { + sc.ForwardSetState(SCE_BAAN_DEFAULT); + } else if ((sc.atLineEnd) && (sc.chNext != '^')) { + sc.ChangeState(SCE_BAAN_STRINGEOL); + sc.ForwardSetState(SCE_C_DEFAULT); + visibleChars = 0; + } + } + + if (sc.state == SCE_BAAN_DEFAULT) { + if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { + sc.SetState(SCE_BAAN_NUMBER); + } else if (sc.MatchIgnoreCase("dllusage")){ + sc.SetState(SCE_BAAN_COMMENTDOC); + do { + sc.Forward(); + } while ((!sc.atLineEnd) && sc.More()); + } else if (IsAWordStart(sc.ch)) { + sc.SetState(SCE_BAAN_IDENTIFIER); + } else if (sc.Match('|')){ + sc.SetState(SCE_BAAN_COMMENT); + } else if (sc.ch == '\"') { + sc.SetState(SCE_BAAN_STRING); + } else if (sc.ch == '#' && visibleChars == 0) { + // Preprocessor commands are alone on their line + sc.SetState(SCE_BAAN_PREPROCESSOR); + // Skip whitespace between # and preprocessor word + do { + sc.Forward(); + } while (IsASpace(sc.ch) && sc.More()); + } else if (isoperator(static_cast(sc.ch))) { + sc.SetState(SCE_BAAN_OPERATOR); + } + } + if (sc.atLineEnd) { + // Reset states to begining of colourise so no surprises + // if different sets of lines lexed. + visibleChars = 0; + } + if (!IsASpace(sc.ch)) { + visibleChars++; + } + } + sc.Complete(); +} + +static void FoldBaanDoc(unsigned int startPos, int length, int initStyle, WordList *[], + Accessor &styler) { + bool foldComment = styler.GetPropertyInt("fold.comment") != 0; + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = styler[startPos]; + int styleNext = styler.StyleAt(startPos); + int style = initStyle; + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int stylePrev = style; + style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if (foldComment && + (style == SCE_BAAN_COMMENT || style == SCE_BAAN_COMMENTDOC)) { + if (style != stylePrev) { + levelCurrent++; + } else if ((style != styleNext) && !atEOL) { + // Comments don't end at end of line and the next character may be unstyled. + levelCurrent--; + } + } + if (style == SCE_BAAN_OPERATOR) { + if (ch == '{') { + levelCurrent++; + } else if (ch == '}') { + levelCurrent--; + } + } + if (atEOL) { + int lev = levelPrev; + if (visibleChars == 0 && foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + } + if (!isspacechar(ch)) + visibleChars++; + } + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + +LexerModule lmBaan(SCLEX_BAAN, ColouriseBaanDoc, "baan", FoldBaanDoc); diff --git a/lexers/LexBash.cpp b/lexers/LexBash.cpp new file mode 100644 index 0000000..5f582e4 --- /dev/null +++ b/lexers/LexBash.cpp @@ -0,0 +1,825 @@ +// Scintilla source code edit control +/** @file LexBash.cxx + ** Lexer for Bash. + **/ +// Copyright 2004-2012 by Neil Hodgson +// Adapted from LexPerl by Kein-Hong Man 2004 +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +#define HERE_DELIM_MAX 256 + +// define this if you want 'invalid octals' to be marked as errors +// usually, this is not a good idea, permissive lexing is better +#undef PEDANTIC_OCTAL + +#define BASH_BASE_ERROR 65 +#define BASH_BASE_DECIMAL 66 +#define BASH_BASE_HEX 67 +#ifdef PEDANTIC_OCTAL +#define BASH_BASE_OCTAL 68 +#define BASH_BASE_OCTAL_ERROR 69 +#endif + +// state constants for parts of a bash command segment +#define BASH_CMD_BODY 0 +#define BASH_CMD_START 1 +#define BASH_CMD_WORD 2 +#define BASH_CMD_TEST 3 +#define BASH_CMD_ARITH 4 +#define BASH_CMD_DELIM 5 + +// state constants for nested delimiter pairs, used by +// SCE_SH_STRING and SCE_SH_BACKTICKS processing +#define BASH_DELIM_LITERAL 0 +#define BASH_DELIM_STRING 1 +#define BASH_DELIM_CSTRING 2 +#define BASH_DELIM_LSTRING 3 +#define BASH_DELIM_COMMAND 4 +#define BASH_DELIM_BACKTICK 5 + +#define BASH_DELIM_STACK_MAX 7 + +static inline int translateBashDigit(int ch) { + if (ch >= '0' && ch <= '9') { + return ch - '0'; + } else if (ch >= 'a' && ch <= 'z') { + return ch - 'a' + 10; + } else if (ch >= 'A' && ch <= 'Z') { + return ch - 'A' + 36; + } else if (ch == '@') { + return 62; + } else if (ch == '_') { + return 63; + } + return BASH_BASE_ERROR; +} + +static inline int getBashNumberBase(char *s) { + int i = 0; + int base = 0; + while (*s) { + base = base * 10 + (*s++ - '0'); + i++; + } + if (base > 64 || i > 2) { + return BASH_BASE_ERROR; + } + return base; +} + +static int opposite(int ch) { + if (ch == '(') return ')'; + if (ch == '[') return ']'; + if (ch == '{') return '}'; + if (ch == '<') return '>'; + return ch; +} + +static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle, + WordList *keywordlists[], Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList cmdDelimiter, bashStruct, bashStruct_in; + cmdDelimiter.Set("| || |& & && ; ;; ( ) { }"); + bashStruct.Set("if elif fi while until else then do done esac eval"); + bashStruct_in.Set("for case select"); + + CharacterSet setWordStart(CharacterSet::setAlpha, "_"); + // note that [+-] are often parts of identifiers in shell scripts + CharacterSet setWord(CharacterSet::setAlphaNum, "._+-"); + CharacterSet setBashOperator(CharacterSet::setNone, "^&%()-+=|{}[]:;>,*/(ch); + Delimiter[DelimiterLength] = '\0'; + } + ~HereDocCls() { + delete []Delimiter; + } + }; + HereDocCls HereDoc; + + class QuoteCls { // Class to manage quote pairs (simplified vs LexPerl) + public: + int Count; + int Up, Down; + QuoteCls() { + Count = 0; + Up = '\0'; + Down = '\0'; + } + void Open(int u) { + Count++; + Up = u; + Down = opposite(Up); + } + void Start(int u) { + Count = 0; + Open(u); + } + }; + QuoteCls Quote; + + class QuoteStackCls { // Class to manage quote pairs that nest + public: + int Count; + int Up, Down; + int Style; + int Depth; // levels pushed + int *CountStack; + int *UpStack; + int *StyleStack; + QuoteStackCls() { + Count = 0; + Up = '\0'; + Down = '\0'; + Style = 0; + Depth = 0; + CountStack = new int[BASH_DELIM_STACK_MAX]; + UpStack = new int[BASH_DELIM_STACK_MAX]; + StyleStack = new int[BASH_DELIM_STACK_MAX]; + } + void Start(int u, int s) { + Count = 1; + Up = u; + Down = opposite(Up); + Style = s; + } + void Push(int u, int s) { + if (Depth >= BASH_DELIM_STACK_MAX) + return; + CountStack[Depth] = Count; + UpStack [Depth] = Up; + StyleStack[Depth] = Style; + Depth++; + Count = 1; + Up = u; + Down = opposite(Up); + Style = s; + } + void Pop(void) { + if (Depth <= 0) + return; + Depth--; + Count = CountStack[Depth]; + Up = UpStack [Depth]; + Style = StyleStack[Depth]; + Down = opposite(Up); + } + ~QuoteStackCls() { + delete []CountStack; + delete []UpStack; + delete []StyleStack; + } + }; + QuoteStackCls QuoteStack; + + int numBase = 0; + int digit; + unsigned int endPos = startPos + length; + int cmdState = BASH_CMD_START; + int testExprType = 0; + + // Always backtracks to the start of a line that is not a continuation + // of the previous line (i.e. start of a bash command segment) + int ln = styler.GetLine(startPos); + if (ln > 0 && startPos == static_cast(styler.LineStart(ln))) + ln--; + for (;;) { + startPos = styler.LineStart(ln); + if (ln == 0 || styler.GetLineState(ln) == BASH_CMD_START) + break; + ln--; + } + initStyle = SCE_SH_DEFAULT; + + StyleContext sc(startPos, endPos - startPos, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + + // handle line continuation, updates per-line stored state + if (sc.atLineStart) { + ln = styler.GetLine(sc.currentPos); + if (sc.state == SCE_SH_STRING + || sc.state == SCE_SH_BACKTICKS + || sc.state == SCE_SH_CHARACTER + || sc.state == SCE_SH_HERE_Q + || sc.state == SCE_SH_COMMENTLINE + || sc.state == SCE_SH_PARAM) { + // force backtrack while retaining cmdState + styler.SetLineState(ln, BASH_CMD_BODY); + } else { + if (ln > 0) { + if ((sc.GetRelative(-3) == '\\' && sc.GetRelative(-2) == '\r' && sc.chPrev == '\n') + || sc.GetRelative(-2) == '\\') { // handle '\' line continuation + // retain last line's state + } else + cmdState = BASH_CMD_START; + } + styler.SetLineState(ln, cmdState); + } + } + + // controls change of cmdState at the end of a non-whitespace element + // states BODY|TEST|ARITH persist until the end of a command segment + // state WORD persist, but ends with 'in' or 'do' construct keywords + int cmdStateNew = BASH_CMD_BODY; + if (cmdState == BASH_CMD_TEST || cmdState == BASH_CMD_ARITH || cmdState == BASH_CMD_WORD) + cmdStateNew = cmdState; + int stylePrev = sc.state; + + // Determine if the current state should terminate. + switch (sc.state) { + case SCE_SH_OPERATOR: + sc.SetState(SCE_SH_DEFAULT); + if (cmdState == BASH_CMD_DELIM) // if command delimiter, start new command + cmdStateNew = BASH_CMD_START; + else if (sc.chPrev == '\\') // propagate command state if line continued + cmdStateNew = cmdState; + break; + case SCE_SH_WORD: + // "." never used in Bash variable names but used in file names + if (!setWord.Contains(sc.ch)) { + char s[500]; + char s2[10]; + sc.GetCurrent(s, sizeof(s)); + // allow keywords ending in a whitespace or command delimiter + s2[0] = static_cast(sc.ch); + s2[1] = '\0'; + bool keywordEnds = IsASpace(sc.ch) || cmdDelimiter.InList(s2); + // 'in' or 'do' may be construct keywords + if (cmdState == BASH_CMD_WORD) { + if (strcmp(s, "in") == 0 && keywordEnds) + cmdStateNew = BASH_CMD_BODY; + else if (strcmp(s, "do") == 0 && keywordEnds) + cmdStateNew = BASH_CMD_START; + else + sc.ChangeState(SCE_SH_IDENTIFIER); + sc.SetState(SCE_SH_DEFAULT); + break; + } + // a 'test' keyword starts a test expression + if (strcmp(s, "test") == 0) { + if (cmdState == BASH_CMD_START && keywordEnds) { + cmdStateNew = BASH_CMD_TEST; + testExprType = 0; + } else + sc.ChangeState(SCE_SH_IDENTIFIER); + } + // detect bash construct keywords + else if (bashStruct.InList(s)) { + if (cmdState == BASH_CMD_START && keywordEnds) + cmdStateNew = BASH_CMD_START; + else + sc.ChangeState(SCE_SH_IDENTIFIER); + } + // 'for'|'case'|'select' needs 'in'|'do' to be highlighted later + else if (bashStruct_in.InList(s)) { + if (cmdState == BASH_CMD_START && keywordEnds) + cmdStateNew = BASH_CMD_WORD; + else + sc.ChangeState(SCE_SH_IDENTIFIER); + } + // disambiguate option items and file test operators + else if (s[0] == '-') { + if (cmdState != BASH_CMD_TEST) + sc.ChangeState(SCE_SH_IDENTIFIER); + } + // disambiguate keywords and identifiers + else if (cmdState != BASH_CMD_START + || !(keywords.InList(s) && keywordEnds)) { + sc.ChangeState(SCE_SH_IDENTIFIER); + } + sc.SetState(SCE_SH_DEFAULT); + } + break; + case SCE_SH_IDENTIFIER: + if (sc.chPrev == '\\') { // for escaped chars + sc.ForwardSetState(SCE_SH_DEFAULT); + } else if (!setWord.Contains(sc.ch)) { + sc.SetState(SCE_SH_DEFAULT); + } + break; + case SCE_SH_NUMBER: + digit = translateBashDigit(sc.ch); + if (numBase == BASH_BASE_DECIMAL) { + if (sc.ch == '#') { + char s[10]; + sc.GetCurrent(s, sizeof(s)); + numBase = getBashNumberBase(s); + if (numBase != BASH_BASE_ERROR) + break; + } else if (IsADigit(sc.ch)) + break; + } else if (numBase == BASH_BASE_HEX) { + if (IsADigit(sc.ch, 16)) + break; +#ifdef PEDANTIC_OCTAL + } else if (numBase == BASH_BASE_OCTAL || + numBase == BASH_BASE_OCTAL_ERROR) { + if (digit <= 7) + break; + if (digit <= 9) { + numBase = BASH_BASE_OCTAL_ERROR; + break; + } +#endif + } else if (numBase == BASH_BASE_ERROR) { + if (digit <= 9) + break; + } else { // DD#DDDD number style handling + if (digit != BASH_BASE_ERROR) { + if (numBase <= 36) { + // case-insensitive if base<=36 + if (digit >= 36) digit -= 26; + } + if (digit < numBase) + break; + if (digit <= 9) { + numBase = BASH_BASE_ERROR; + break; + } + } + } + // fallthrough when number is at an end or error + if (numBase == BASH_BASE_ERROR +#ifdef PEDANTIC_OCTAL + || numBase == BASH_BASE_OCTAL_ERROR +#endif + ) { + sc.ChangeState(SCE_SH_ERROR); + } + sc.SetState(SCE_SH_DEFAULT); + break; + case SCE_SH_COMMENTLINE: + if (sc.atLineEnd && sc.chPrev != '\\') { + sc.SetState(SCE_SH_DEFAULT); + } + break; + case SCE_SH_HERE_DELIM: + // From Bash info: + // --------------- + // Specifier format is: <<[-]WORD + // Optional '-' is for removal of leading tabs from here-doc. + // Whitespace acceptable after <<[-] operator + // + if (HereDoc.State == 0) { // '<<' encountered + HereDoc.Quote = sc.chNext; + HereDoc.Quoted = false; + HereDoc.DelimiterLength = 0; + HereDoc.Delimiter[HereDoc.DelimiterLength] = '\0'; + if (sc.chNext == '\'' || sc.chNext == '\"') { // a quoted here-doc delimiter (' or ") + sc.Forward(); + HereDoc.Quoted = true; + HereDoc.State = 1; + } else if (!HereDoc.Indent && sc.chNext == '-') { // <<- indent case + HereDoc.Indent = true; + } else if (setHereDoc.Contains(sc.chNext)) { + // an unquoted here-doc delimiter, no special handling + // TODO check what exactly bash considers part of the delim + HereDoc.State = 1; + } else if (sc.chNext == '<') { // HERE string <<< + sc.Forward(); + sc.ForwardSetState(SCE_SH_DEFAULT); + } else if (IsASpace(sc.chNext)) { + // eat whitespace + } else if (setLeftShift.Contains(sc.chNext)) { + // left shift << or <<= operator cases + sc.ChangeState(SCE_SH_OPERATOR); + sc.ForwardSetState(SCE_SH_DEFAULT); + } else { + // symbols terminates; deprecated zero-length delimiter + HereDoc.State = 1; + } + } else if (HereDoc.State == 1) { // collect the delimiter + // * if single quoted, there's no escape + // * if double quoted, there are \\ and \" escapes + if ((HereDoc.Quote == '\'' && sc.ch != HereDoc.Quote) || + (HereDoc.Quoted && sc.ch != HereDoc.Quote && sc.ch != '\\') || + (HereDoc.Quote != '\'' && sc.chPrev == '\\') || + (setHereDoc2.Contains(sc.ch))) { + HereDoc.Append(sc.ch); + } else if (HereDoc.Quoted && sc.ch == HereDoc.Quote) { // closing quote => end of delimiter + sc.ForwardSetState(SCE_SH_DEFAULT); + } else if (sc.ch == '\\') { + if (HereDoc.Quoted && sc.chNext != HereDoc.Quote && sc.chNext != '\\') { + // in quoted prefixes only \ and the quote eat the escape + HereDoc.Append(sc.ch); + } else { + // skip escape prefix + } + } else if (!HereDoc.Quoted) { + sc.SetState(SCE_SH_DEFAULT); + } + if (HereDoc.DelimiterLength >= HERE_DELIM_MAX - 1) { // force blowup + sc.SetState(SCE_SH_ERROR); + HereDoc.State = 0; + } + } + break; + case SCE_SH_HERE_Q: + // HereDoc.State == 2 + if (sc.atLineStart) { + sc.SetState(SCE_SH_HERE_Q); + int prefixws = 0; + while (IsASpace(sc.ch) && !sc.atLineEnd) { // whitespace prefix + sc.Forward(); + prefixws++; + } + if (prefixws > 0) + sc.SetState(SCE_SH_HERE_Q); + while (!sc.atLineEnd) { + sc.Forward(); + } + char s[HERE_DELIM_MAX]; + sc.GetCurrent(s, sizeof(s)); + if (sc.LengthCurrent() == 0) { // '' or "" delimiters + if (prefixws == 0 && HereDoc.Quoted && HereDoc.DelimiterLength == 0) + sc.SetState(SCE_SH_DEFAULT); + break; + } + if (s[strlen(s) - 1] == '\r') + s[strlen(s) - 1] = '\0'; + if (strcmp(HereDoc.Delimiter, s) == 0) { + if ((prefixws == 0) || // indentation rule + (prefixws > 0 && HereDoc.Indent)) { + sc.SetState(SCE_SH_DEFAULT); + break; + } + } + } + break; + case SCE_SH_SCALAR: // variable names + if (!setParam.Contains(sc.ch)) { + if (sc.LengthCurrent() == 1) { + // Special variable: $(, $_ etc. + sc.ForwardSetState(SCE_SH_DEFAULT); + } else { + sc.SetState(SCE_SH_DEFAULT); + } + } + break; + case SCE_SH_STRING: // delimited styles, can nest + case SCE_SH_BACKTICKS: + if (sc.ch == '\\' && QuoteStack.Up != '\\') { + if (QuoteStack.Style != BASH_DELIM_LITERAL) + sc.Forward(); + } else if (sc.ch == QuoteStack.Down) { + QuoteStack.Count--; + if (QuoteStack.Count == 0) { + if (QuoteStack.Depth > 0) { + QuoteStack.Pop(); + } else + sc.ForwardSetState(SCE_SH_DEFAULT); + } + } else if (sc.ch == QuoteStack.Up) { + QuoteStack.Count++; + } else { + if (QuoteStack.Style == BASH_DELIM_STRING || + QuoteStack.Style == BASH_DELIM_LSTRING + ) { // do nesting for "string", $"locale-string" + if (sc.ch == '`') { + QuoteStack.Push(sc.ch, BASH_DELIM_BACKTICK); + } else if (sc.ch == '$' && sc.chNext == '(') { + sc.Forward(); + QuoteStack.Push(sc.ch, BASH_DELIM_COMMAND); + } + } else if (QuoteStack.Style == BASH_DELIM_COMMAND || + QuoteStack.Style == BASH_DELIM_BACKTICK + ) { // do nesting for $(command), `command` + if (sc.ch == '\'') { + QuoteStack.Push(sc.ch, BASH_DELIM_LITERAL); + } else if (sc.ch == '\"') { + QuoteStack.Push(sc.ch, BASH_DELIM_STRING); + } else if (sc.ch == '`') { + QuoteStack.Push(sc.ch, BASH_DELIM_BACKTICK); + } else if (sc.ch == '$') { + if (sc.chNext == '\'') { + sc.Forward(); + QuoteStack.Push(sc.ch, BASH_DELIM_CSTRING); + } else if (sc.chNext == '\"') { + sc.Forward(); + QuoteStack.Push(sc.ch, BASH_DELIM_LSTRING); + } else if (sc.chNext == '(') { + sc.Forward(); + QuoteStack.Push(sc.ch, BASH_DELIM_COMMAND); + } + } + } + } + break; + case SCE_SH_PARAM: // ${parameter} + if (sc.ch == '\\' && Quote.Up != '\\') { + sc.Forward(); + } else if (sc.ch == Quote.Down) { + Quote.Count--; + if (Quote.Count == 0) { + sc.ForwardSetState(SCE_SH_DEFAULT); + } + } else if (sc.ch == Quote.Up) { + Quote.Count++; + } + break; + case SCE_SH_CHARACTER: // singly-quoted strings + if (sc.ch == Quote.Down) { + Quote.Count--; + if (Quote.Count == 0) { + sc.ForwardSetState(SCE_SH_DEFAULT); + } + } + break; + } + + // Must check end of HereDoc state 1 before default state is handled + if (HereDoc.State == 1 && sc.atLineEnd) { + // Begin of here-doc (the line after the here-doc delimiter): + // Lexically, the here-doc starts from the next line after the >>, but the + // first line of here-doc seem to follow the style of the last EOL sequence + HereDoc.State = 2; + if (HereDoc.Quoted) { + if (sc.state == SCE_SH_HERE_DELIM) { + // Missing quote at end of string! We are stricter than bash. + // Colour here-doc anyway while marking this bit as an error. + sc.ChangeState(SCE_SH_ERROR); + } + // HereDoc.Quote always == '\'' + sc.SetState(SCE_SH_HERE_Q); + } else if (HereDoc.DelimiterLength == 0) { + // no delimiter, illegal (but '' and "" are legal) + sc.ChangeState(SCE_SH_ERROR); + sc.SetState(SCE_SH_DEFAULT); + } else { + sc.SetState(SCE_SH_HERE_Q); + } + } + + // update cmdState about the current command segment + if (stylePrev != SCE_SH_DEFAULT && sc.state == SCE_SH_DEFAULT) { + cmdState = cmdStateNew; + } + // Determine if a new state should be entered. + if (sc.state == SCE_SH_DEFAULT) { + if (sc.ch == '\\') { + // Bash can escape any non-newline as a literal + sc.SetState(SCE_SH_IDENTIFIER); + if (sc.chNext == '\r' || sc.chNext == '\n') + sc.SetState(SCE_SH_OPERATOR); + } else if (IsADigit(sc.ch)) { + sc.SetState(SCE_SH_NUMBER); + numBase = BASH_BASE_DECIMAL; + if (sc.ch == '0') { // hex,octal + if (sc.chNext == 'x' || sc.chNext == 'X') { + numBase = BASH_BASE_HEX; + sc.Forward(); + } else if (IsADigit(sc.chNext)) { +#ifdef PEDANTIC_OCTAL + numBase = BASH_BASE_OCTAL; +#else + numBase = BASH_BASE_HEX; +#endif + } + } + } else if (setWordStart.Contains(sc.ch)) { + sc.SetState(SCE_SH_WORD); + } else if (sc.ch == '#') { + sc.SetState(SCE_SH_COMMENTLINE); + } else if (sc.ch == '\"') { + sc.SetState(SCE_SH_STRING); + QuoteStack.Start(sc.ch, BASH_DELIM_STRING); + } else if (sc.ch == '\'') { + sc.SetState(SCE_SH_CHARACTER); + Quote.Start(sc.ch); + } else if (sc.ch == '`') { + sc.SetState(SCE_SH_BACKTICKS); + QuoteStack.Start(sc.ch, BASH_DELIM_BACKTICK); + } else if (sc.ch == '$') { + if (sc.Match("$((")) { + sc.SetState(SCE_SH_OPERATOR); // handle '((' later + continue; + } + sc.SetState(SCE_SH_SCALAR); + sc.Forward(); + if (sc.ch == '{') { + sc.ChangeState(SCE_SH_PARAM); + Quote.Start(sc.ch); + } else if (sc.ch == '\'') { + sc.ChangeState(SCE_SH_STRING); + QuoteStack.Start(sc.ch, BASH_DELIM_CSTRING); + } else if (sc.ch == '"') { + sc.ChangeState(SCE_SH_STRING); + QuoteStack.Start(sc.ch, BASH_DELIM_LSTRING); + } else if (sc.ch == '(') { + sc.ChangeState(SCE_SH_BACKTICKS); + QuoteStack.Start(sc.ch, BASH_DELIM_COMMAND); + } else if (sc.ch == '`') { // $` seen in a configure script, valid? + sc.ChangeState(SCE_SH_BACKTICKS); + QuoteStack.Start(sc.ch, BASH_DELIM_BACKTICK); + } else { + continue; // scalar has no delimiter pair + } + } else if (sc.Match('<', '<')) { + sc.SetState(SCE_SH_HERE_DELIM); + HereDoc.State = 0; + HereDoc.Indent = false; + } else if (sc.ch == '-' && // one-char file test operators + setSingleCharOp.Contains(sc.chNext) && + !setWord.Contains(sc.GetRelative(2)) && + IsASpace(sc.chPrev)) { + sc.SetState(SCE_SH_WORD); + sc.Forward(); + } else if (setBashOperator.Contains(sc.ch)) { + char s[10]; + bool isCmdDelim = false; + sc.SetState(SCE_SH_OPERATOR); + // handle opening delimiters for test/arithmetic expressions - ((,[[,[ + if (cmdState == BASH_CMD_START + || cmdState == BASH_CMD_BODY) { + if (sc.Match('(', '(')) { + cmdState = BASH_CMD_ARITH; + sc.Forward(); + } else if (sc.Match('[', '[') && IsASpace(sc.GetRelative(2))) { + cmdState = BASH_CMD_TEST; + testExprType = 1; + sc.Forward(); + } else if (sc.ch == '[' && IsASpace(sc.chNext)) { + cmdState = BASH_CMD_TEST; + testExprType = 2; + } + } + // special state -- for ((x;y;z)) in ... looping + if (cmdState == BASH_CMD_WORD && sc.Match('(', '(')) { + cmdState = BASH_CMD_ARITH; + sc.Forward(); + continue; + } + // handle command delimiters in command START|BODY|WORD state, also TEST if 'test' + if (cmdState == BASH_CMD_START + || cmdState == BASH_CMD_BODY + || cmdState == BASH_CMD_WORD + || (cmdState == BASH_CMD_TEST && testExprType == 0)) { + s[0] = static_cast(sc.ch); + if (setBashOperator.Contains(sc.chNext)) { + s[1] = static_cast(sc.chNext); + s[2] = '\0'; + isCmdDelim = cmdDelimiter.InList(s); + if (isCmdDelim) + sc.Forward(); + } + if (!isCmdDelim) { + s[1] = '\0'; + isCmdDelim = cmdDelimiter.InList(s); + } + if (isCmdDelim) { + cmdState = BASH_CMD_DELIM; + continue; + } + } + // handle closing delimiters for test/arithmetic expressions - )),]],] + if (cmdState == BASH_CMD_ARITH && sc.Match(')', ')')) { + cmdState = BASH_CMD_BODY; + sc.Forward(); + } else if (cmdState == BASH_CMD_TEST && IsASpace(sc.chPrev)) { + if (sc.Match(']', ']') && testExprType == 1) { + sc.Forward(); + cmdState = BASH_CMD_BODY; + } else if (sc.ch == ']' && testExprType == 2) { + cmdState = BASH_CMD_BODY; + } + } + } + }// sc.state + } + sc.Complete(); + if (sc.state == SCE_SH_HERE_Q) { + styler.ChangeLexerState(sc.currentPos, styler.Length()); + } + sc.Complete(); +} + +static bool IsCommentLine(int line, Accessor &styler) { + int pos = styler.LineStart(line); + int eol_pos = styler.LineStart(line + 1) - 1; + for (int i = pos; i < eol_pos; i++) { + char ch = styler[i]; + if (ch == '#') + return true; + else if (ch != ' ' && ch != '\t') + return false; + } + return false; +} + +static void FoldBashDoc(unsigned int startPos, int length, int, WordList *[], + Accessor &styler) { + bool foldComment = styler.GetPropertyInt("fold.comment") != 0; + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = styler[startPos]; + int styleNext = styler.StyleAt(startPos); + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + // Comment folding + if (foldComment && atEOL && IsCommentLine(lineCurrent, styler)) + { + if (!IsCommentLine(lineCurrent - 1, styler) + && IsCommentLine(lineCurrent + 1, styler)) + levelCurrent++; + else if (IsCommentLine(lineCurrent - 1, styler) + && !IsCommentLine(lineCurrent + 1, styler)) + levelCurrent--; + } + if (style == SCE_SH_OPERATOR) { + if (ch == '{') { + levelCurrent++; + } else if (ch == '}') { + levelCurrent--; + } + } + // Here Document folding + if (style == SCE_SH_HERE_DELIM) { + if (ch == '<' && chNext == '<') { + levelCurrent++; + } + } else if (style == SCE_SH_HERE_Q && styler.StyleAt(i+1) == SCE_SH_DEFAULT) { + levelCurrent--; + } + if (atEOL) { + int lev = levelPrev; + if (visibleChars == 0 && foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + } + if (!isspacechar(ch)) + visibleChars++; + } + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + +static const char * const bashWordListDesc[] = { + "Keywords", + 0 +}; + +LexerModule lmBash(SCLEX_BASH, ColouriseBashDoc, "bash", FoldBashDoc, bashWordListDesc); diff --git a/lexers/LexBasic.cpp b/lexers/LexBasic.cpp new file mode 100644 index 0000000..bc8fcee --- /dev/null +++ b/lexers/LexBasic.cpp @@ -0,0 +1,510 @@ +// Scintilla source code edit control +/** @file LexBasic.cxx + ** Lexer for BlitzBasic and PureBasic. + ** Converted to lexer object and added further folding features/properties by "Udo Lechner" + **/ +// Copyright 1998-2003 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +// This tries to be a unified Lexer/Folder for all the BlitzBasic/BlitzMax/PurBasic basics +// and derivatives. Once they diverge enough, might want to split it into multiple +// lexers for more code clearity. +// +// Mail me (elias users sf net) for any bugs. + +// Folding only works for simple things like functions or types. + +// You may want to have a look at my ctags lexer as well, if you additionally to coloring +// and folding need to extract things like label tags in your editor. + +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" +#include "OptionSet.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +/* Bits: + * 1 - whitespace + * 2 - operator + * 4 - identifier + * 8 - decimal digit + * 16 - hex digit + * 32 - bin digit + */ +static int character_classification[128] = +{ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 2, + 60, 60, 28, 28, 28, 28, 28, 28, 28, 28, 2, 2, 2, 2, 2, 2, + 2, 20, 20, 20, 20, 20, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 4, + 2, 20, 20, 20, 20, 20, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 0 +}; + +static bool IsSpace(int c) { + return c < 128 && (character_classification[c] & 1); +} + +static bool IsOperator(int c) { + return c < 128 && (character_classification[c] & 2); +} + +static bool IsIdentifier(int c) { + return c < 128 && (character_classification[c] & 4); +} + +static bool IsDigit(int c) { + return c < 128 && (character_classification[c] & 8); +} + +static bool IsHexDigit(int c) { + return c < 128 && (character_classification[c] & 16); +} + +static bool IsBinDigit(int c) { + return c < 128 && (character_classification[c] & 32); +} + +static int LowerCase(int c) +{ + if (c >= 'A' && c <= 'Z') + return 'a' + c - 'A'; + return c; +} + +static int CheckBlitzFoldPoint(char const *token, int &level) { + if (!strcmp(token, "function") || + !strcmp(token, "type")) { + level |= SC_FOLDLEVELHEADERFLAG; + return 1; + } + if (!strcmp(token, "end function") || + !strcmp(token, "end type")) { + return -1; + } + return 0; +} + +static int CheckPureFoldPoint(char const *token, int &level) { + if (!strcmp(token, "procedure") || + !strcmp(token, "enumeration") || + !strcmp(token, "interface") || + !strcmp(token, "structure")) { + level |= SC_FOLDLEVELHEADERFLAG; + return 1; + } + if (!strcmp(token, "endprocedure") || + !strcmp(token, "endenumeration") || + !strcmp(token, "endinterface") || + !strcmp(token, "endstructure")) { + return -1; + } + return 0; +} + +static int CheckFreeFoldPoint(char const *token, int &level) { + if (!strcmp(token, "function") || + !strcmp(token, "sub") || + !strcmp(token, "type")) { + level |= SC_FOLDLEVELHEADERFLAG; + return 1; + } + if (!strcmp(token, "end function") || + !strcmp(token, "end sub") || + !strcmp(token, "end type")) { + return -1; + } + return 0; +} + +// An individual named option for use in an OptionSet + +// Options used for LexerBasic +struct OptionsBasic { + bool fold; + bool foldSyntaxBased; + bool foldCommentExplicit; + std::string foldExplicitStart; + std::string foldExplicitEnd; + bool foldExplicitAnywhere; + bool foldCompact; + OptionsBasic() { + fold = false; + foldSyntaxBased = true; + foldCommentExplicit = false; + foldExplicitStart = ""; + foldExplicitEnd = ""; + foldExplicitAnywhere = false; + foldCompact = true; + } +}; + +static const char * const blitzbasicWordListDesc[] = { + "BlitzBasic Keywords", + "user1", + "user2", + "user3", + 0 +}; + +static const char * const purebasicWordListDesc[] = { + "PureBasic Keywords", + "PureBasic PreProcessor Keywords", + "user defined 1", + "user defined 2", + 0 +}; + +static const char * const freebasicWordListDesc[] = { + "FreeBasic Keywords", + "FreeBasic PreProcessor Keywords", + "user defined 1", + "user defined 2", + 0 +}; + +struct OptionSetBasic : public OptionSet { + OptionSetBasic(const char * const wordListDescriptions[]) { + DefineProperty("fold", &OptionsBasic::fold); + + DefineProperty("fold.basic.syntax.based", &OptionsBasic::foldSyntaxBased, + "Set this property to 0 to disable syntax based folding."); + + DefineProperty("fold.basic.comment.explicit", &OptionsBasic::foldCommentExplicit, + "This option enables folding explicit fold points when using the Basic lexer. " + "Explicit fold points allows adding extra folding by placing a ;{ (BB/PB) or '{ (FB) comment at the start " + "and a ;} (BB/PB) or '} (FB) at the end of a section that should be folded."); + + DefineProperty("fold.basic.explicit.start", &OptionsBasic::foldExplicitStart, + "The string to use for explicit fold start points, replacing the standard ;{ (BB/PB) or '{ (FB)."); + + DefineProperty("fold.basic.explicit.end", &OptionsBasic::foldExplicitEnd, + "The string to use for explicit fold end points, replacing the standard ;} (BB/PB) or '} (FB)."); + + DefineProperty("fold.basic.explicit.anywhere", &OptionsBasic::foldExplicitAnywhere, + "Set this property to 1 to enable explicit fold points anywhere, not just in line comments."); + + DefineProperty("fold.compact", &OptionsBasic::foldCompact); + + DefineWordListSets(wordListDescriptions); + } +}; + +class LexerBasic : public ILexer { + char comment_char; + int (*CheckFoldPoint)(char const *, int &); + WordList keywordlists[4]; + OptionsBasic options; + OptionSetBasic osBasic; +public: + LexerBasic(char comment_char_, int (*CheckFoldPoint_)(char const *, int &), const char * const wordListDescriptions[]) : + comment_char(comment_char_), + CheckFoldPoint(CheckFoldPoint_), + osBasic(wordListDescriptions) { + } + virtual ~LexerBasic() { + } + void SCI_METHOD Release() { + delete this; + } + int SCI_METHOD Version() const { + return lvOriginal; + } + const char * SCI_METHOD PropertyNames() { + return osBasic.PropertyNames(); + } + int SCI_METHOD PropertyType(const char *name) { + return osBasic.PropertyType(name); + } + const char * SCI_METHOD DescribeProperty(const char *name) { + return osBasic.DescribeProperty(name); + } + int SCI_METHOD PropertySet(const char *key, const char *val); + const char * SCI_METHOD DescribeWordListSets() { + return osBasic.DescribeWordListSets(); + } + int SCI_METHOD WordListSet(int n, const char *wl); + void SCI_METHOD Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + void SCI_METHOD Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + + void * SCI_METHOD PrivateCall(int, void *) { + return 0; + } + static ILexer *LexerFactoryBlitzBasic() { + return new LexerBasic(';', CheckBlitzFoldPoint, blitzbasicWordListDesc); + } + static ILexer *LexerFactoryPureBasic() { + return new LexerBasic(';', CheckPureFoldPoint, purebasicWordListDesc); + } + static ILexer *LexerFactoryFreeBasic() { + return new LexerBasic('\'', CheckFreeFoldPoint, freebasicWordListDesc ); + } +}; + +int SCI_METHOD LexerBasic::PropertySet(const char *key, const char *val) { + if (osBasic.PropertySet(&options, key, val)) { + return 0; + } + return -1; +} + +int SCI_METHOD LexerBasic::WordListSet(int n, const char *wl) { + WordList *wordListN = 0; + switch (n) { + case 0: + wordListN = &keywordlists[0]; + break; + case 1: + wordListN = &keywordlists[1]; + break; + case 2: + wordListN = &keywordlists[2]; + break; + case 3: + wordListN = &keywordlists[3]; + break; + } + int firstModification = -1; + if (wordListN) { + WordList wlNew; + wlNew.Set(wl); + if (*wordListN != wlNew) { + wordListN->Set(wl); + firstModification = 0; + } + } + return firstModification; +} + +void SCI_METHOD LexerBasic::Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { + LexAccessor styler(pAccess); + + bool wasfirst = true, isfirst = true; // true if first token in a line + styler.StartAt(startPos); + + StyleContext sc(startPos, length, initStyle, styler); + + // Can't use sc.More() here else we miss the last character + for (; ; sc.Forward()) { + if (sc.state == SCE_B_IDENTIFIER) { + if (!IsIdentifier(sc.ch)) { + // Labels + if (wasfirst && sc.Match(':')) { + sc.ChangeState(SCE_B_LABEL); + sc.ForwardSetState(SCE_B_DEFAULT); + } else { + char s[100]; + int kstates[4] = { + SCE_B_KEYWORD, + SCE_B_KEYWORD2, + SCE_B_KEYWORD3, + SCE_B_KEYWORD4, + }; + sc.GetCurrentLowered(s, sizeof(s)); + for (int i = 0; i < 4; i++) { + if (keywordlists[i].InList(s)) { + sc.ChangeState(kstates[i]); + } + } + // Types, must set them as operator else they will be + // matched as number/constant + if (sc.Match('.') || sc.Match('$') || sc.Match('%') || + sc.Match('#')) { + sc.SetState(SCE_B_OPERATOR); + } else { + sc.SetState(SCE_B_DEFAULT); + } + } + } + } else if (sc.state == SCE_B_OPERATOR) { + if (!IsOperator(sc.ch) || sc.Match('#')) + sc.SetState(SCE_B_DEFAULT); + } else if (sc.state == SCE_B_LABEL) { + if (!IsIdentifier(sc.ch)) + sc.SetState(SCE_B_DEFAULT); + } else if (sc.state == SCE_B_CONSTANT) { + if (!IsIdentifier(sc.ch)) + sc.SetState(SCE_B_DEFAULT); + } else if (sc.state == SCE_B_NUMBER) { + if (!IsDigit(sc.ch)) + sc.SetState(SCE_B_DEFAULT); + } else if (sc.state == SCE_B_HEXNUMBER) { + if (!IsHexDigit(sc.ch)) + sc.SetState(SCE_B_DEFAULT); + } else if (sc.state == SCE_B_BINNUMBER) { + if (!IsBinDigit(sc.ch)) + sc.SetState(SCE_B_DEFAULT); + } else if (sc.state == SCE_B_STRING) { + if (sc.ch == '"') { + sc.ForwardSetState(SCE_B_DEFAULT); + } + if (sc.atLineEnd) { + sc.ChangeState(SCE_B_ERROR); + sc.SetState(SCE_B_DEFAULT); + } + } else if (sc.state == SCE_B_COMMENT || sc.state == SCE_B_PREPROCESSOR) { + if (sc.atLineEnd) { + sc.SetState(SCE_B_DEFAULT); + } + } + + if (sc.atLineStart) + isfirst = true; + + if (sc.state == SCE_B_DEFAULT || sc.state == SCE_B_ERROR) { + if (isfirst && sc.Match('.')) { + sc.SetState(SCE_B_LABEL); + } else if (isfirst && sc.Match('#')) { + wasfirst = isfirst; + sc.SetState(SCE_B_IDENTIFIER); + } else if (sc.Match(comment_char)) { + // Hack to make deprecated QBASIC '$Include show + // up in freebasic with SCE_B_PREPROCESSOR. + if (comment_char == '\'' && sc.Match(comment_char, '$')) + sc.SetState(SCE_B_PREPROCESSOR); + else + sc.SetState(SCE_B_COMMENT); + } else if (sc.Match('"')) { + sc.SetState(SCE_B_STRING); + } else if (IsDigit(sc.ch)) { + sc.SetState(SCE_B_NUMBER); + } else if (sc.Match('$')) { + sc.SetState(SCE_B_HEXNUMBER); + } else if (sc.Match('%')) { + sc.SetState(SCE_B_BINNUMBER); + } else if (sc.Match('#')) { + sc.SetState(SCE_B_CONSTANT); + } else if (IsOperator(sc.ch)) { + sc.SetState(SCE_B_OPERATOR); + } else if (IsIdentifier(sc.ch)) { + wasfirst = isfirst; + sc.SetState(SCE_B_IDENTIFIER); + } else if (!IsSpace(sc.ch)) { + sc.SetState(SCE_B_ERROR); + } + } + + if (!IsSpace(sc.ch)) + isfirst = false; + + if (!sc.More()) + break; + } + sc.Complete(); +} + + +void SCI_METHOD LexerBasic::Fold(unsigned int startPos, int length, int /* initStyle */, IDocument *pAccess) { + + if (!options.fold) + return; + + LexAccessor styler(pAccess); + + int line = styler.GetLine(startPos); + int level = styler.LevelAt(line); + int go = 0, done = 0; + int endPos = startPos + length; + char word[256]; + int wordlen = 0; + const bool userDefinedFoldMarkers = !options.foldExplicitStart.empty() && !options.foldExplicitEnd.empty(); + int cNext = styler[startPos]; + + // Scan for tokens at the start of the line (they may include + // whitespace, for tokens like "End Function" + for (int i = startPos; i < endPos; i++) { + int c = cNext; + cNext = styler.SafeGetCharAt(i + 1); + bool atEOL = (c == '\r' && cNext != '\n') || (c == '\n'); + if (options.foldSyntaxBased && !done && !go) { + if (wordlen) { // are we scanning a token already? + word[wordlen] = static_cast(LowerCase(c)); + if (!IsIdentifier(c)) { // done with token + word[wordlen] = '\0'; + go = CheckFoldPoint(word, level); + if (!go) { + // Treat any whitespace as single blank, for + // things like "End Function". + if (IsSpace(c) && IsIdentifier(word[wordlen - 1])) { + word[wordlen] = ' '; + if (wordlen < 255) + wordlen++; + } + else // done with this line + done = 1; + } + } else if (wordlen < 255) { + wordlen++; + } + } else { // start scanning at first non-whitespace character + if (!IsSpace(c)) { + if (IsIdentifier(c)) { + word[0] = static_cast(LowerCase(c)); + wordlen = 1; + } else // done with this line + done = 1; + } + } + } + if (options.foldCommentExplicit && ((styler.StyleAt(i) == SCE_B_COMMENT) || options.foldExplicitAnywhere)) { + if (userDefinedFoldMarkers) { + if (styler.Match(i, options.foldExplicitStart.c_str())) { + level |= SC_FOLDLEVELHEADERFLAG; + go = 1; + } else if (styler.Match(i, options.foldExplicitEnd.c_str())) { + go = -1; + } + } else { + if (c == comment_char) { + if (cNext == '{') { + level |= SC_FOLDLEVELHEADERFLAG; + go = 1; + } else if (cNext == '}') { + go = -1; + } + } + } + } + if (atEOL) { // line end + if (!done && wordlen == 0 && options.foldCompact) // line was only space + level |= SC_FOLDLEVELWHITEFLAG; + if (level != styler.LevelAt(line)) + styler.SetLevel(line, level); + level += go; + line++; + // reset state + wordlen = 0; + level &= ~SC_FOLDLEVELHEADERFLAG; + level &= ~SC_FOLDLEVELWHITEFLAG; + go = 0; + done = 0; + } + } +} + +LexerModule lmBlitzBasic(SCLEX_BLITZBASIC, LexerBasic::LexerFactoryBlitzBasic, "blitzbasic", blitzbasicWordListDesc); + +LexerModule lmPureBasic(SCLEX_PUREBASIC, LexerBasic::LexerFactoryPureBasic, "purebasic", purebasicWordListDesc); + +LexerModule lmFreeBasic(SCLEX_FREEBASIC, LexerBasic::LexerFactoryFreeBasic, "freebasic", freebasicWordListDesc); diff --git a/lexers/LexBullant.cpp b/lexers/LexBullant.cpp new file mode 100644 index 0000000..51d6bd8 --- /dev/null +++ b/lexers/LexBullant.cpp @@ -0,0 +1,233 @@ +// SciTE - Scintilla based Text Editor +// LexBullant.cxx - lexer for Bullant + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static int classifyWordBullant(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler) { + char s[100]; + s[0] = '\0'; + for (unsigned int i = 0; i < end - start + 1 && i < 30; i++) { + s[i] = static_cast(tolower(styler[start + i])); + s[i + 1] = '\0'; + } + int lev= 0; + char chAttr = SCE_C_IDENTIFIER; + if (isdigit(s[0]) || (s[0] == '.')){ + chAttr = SCE_C_NUMBER; + } + else { + if (keywords.InList(s)) { + chAttr = SCE_C_WORD; + if (strcmp(s, "end") == 0) + lev = -1; + else if (strcmp(s, "method") == 0 || + strcmp(s, "case") == 0 || + strcmp(s, "class") == 0 || + strcmp(s, "debug") == 0 || + strcmp(s, "test") == 0 || + strcmp(s, "if") == 0 || + strcmp(s, "lock") == 0 || + strcmp(s, "transaction") == 0 || + strcmp(s, "trap") == 0 || + strcmp(s, "until") == 0 || + strcmp(s, "while") == 0) + lev = 1; + } + } + styler.ColourTo(end, chAttr); + return lev; +} + +static void ColouriseBullantDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + WordList &keywords = *keywordlists[0]; + + styler.StartAt(startPos); + + bool fold = styler.GetPropertyInt("fold") != 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + + int state = initStyle; + if (state == SCE_C_STRINGEOL) // Does not leak onto next line + state = SCE_C_DEFAULT; + char chPrev = ' '; + char chNext = styler[startPos]; + unsigned int lengthDoc = startPos + length; + int visibleChars = 0; + styler.StartSegment(startPos); + int endFoundThisLine = 0; + for (unsigned int i = startPos; i < lengthDoc; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + + if ((ch == '\r' && chNext != '\n') || (ch == '\n')) { + // Trigger on CR only (Mac style) or either on LF from CR+LF (Dos/Win) or on LF alone (Unix) + // Avoid triggering two times on Dos/Win + // End of line + endFoundThisLine = 0; + if (state == SCE_C_STRINGEOL) { + styler.ColourTo(i, state); + state = SCE_C_DEFAULT; + } + if (fold) { + int lev = levelPrev; + if (visibleChars == 0) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + styler.SetLevel(lineCurrent, lev); + lineCurrent++; + levelPrev = levelCurrent; + } + visibleChars = 0; + +/* int indentBlock = GetLineIndentation(lineCurrent); + if (blockChange==1){ + lineCurrent++; + int pos=SetLineIndentation(lineCurrent, indentBlock + indentSize); + } else if (blockChange==-1) { + indentBlock -= indentSize; + if (indentBlock < 0) + indentBlock = 0; + SetLineIndentation(lineCurrent, indentBlock); + lineCurrent++; + } + blockChange=0; +*/ } + if (!(IsASCII(ch) && isspace(ch))) + visibleChars++; + + if (styler.IsLeadByte(ch)) { + chNext = styler.SafeGetCharAt(i + 2); + chPrev = ' '; + i += 1; + continue; + } + + if (state == SCE_C_DEFAULT) { + if (iswordstart(ch)) { + styler.ColourTo(i-1, state); + state = SCE_C_IDENTIFIER; + } else if (ch == '@' && chNext == 'o') { + if ((styler.SafeGetCharAt(i+2) =='f') && (styler.SafeGetCharAt(i+3) == 'f')) { + styler.ColourTo(i-1, state); + state = SCE_C_COMMENT; + } + } else if (ch == '#') { + styler.ColourTo(i-1, state); + state = SCE_C_COMMENTLINE; + } else if (ch == '\"') { + styler.ColourTo(i-1, state); + state = SCE_C_STRING; + } else if (ch == '\'') { + styler.ColourTo(i-1, state); + state = SCE_C_CHARACTER; + } else if (isoperator(ch)) { + styler.ColourTo(i-1, state); + styler.ColourTo(i, SCE_C_OPERATOR); + } + } else if (state == SCE_C_IDENTIFIER) { + if (!iswordchar(ch)) { + int levelChange = classifyWordBullant(styler.GetStartSegment(), i - 1, keywords, styler); + state = SCE_C_DEFAULT; + chNext = styler.SafeGetCharAt(i + 1); + if (ch == '#') { + state = SCE_C_COMMENTLINE; + } else if (ch == '\"') { + state = SCE_C_STRING; + } else if (ch == '\'') { + state = SCE_C_CHARACTER; + } else if (isoperator(ch)) { + styler.ColourTo(i, SCE_C_OPERATOR); + } + if (endFoundThisLine == 0) + levelCurrent+=levelChange; + if (levelChange == -1) + endFoundThisLine=1; + } + } else if (state == SCE_C_COMMENT) { + if (ch == '@' && chNext == 'o') { + if (styler.SafeGetCharAt(i+2) == 'n') { + styler.ColourTo(i+2, state); + state = SCE_C_DEFAULT; + i+=2; + } + } + } else if (state == SCE_C_COMMENTLINE) { + if (ch == '\r' || ch == '\n') { + endFoundThisLine = 0; + styler.ColourTo(i-1, state); + state = SCE_C_DEFAULT; + } + } else if (state == SCE_C_STRING) { + if (ch == '\\') { + if (chNext == '\"' || chNext == '\'' || chNext == '\\') { + i++; + ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + } + } else if (ch == '\"') { + styler.ColourTo(i, state); + state = SCE_C_DEFAULT; + } else if (chNext == '\r' || chNext == '\n') { + endFoundThisLine = 0; + styler.ColourTo(i-1, SCE_C_STRINGEOL); + state = SCE_C_STRINGEOL; + } + } else if (state == SCE_C_CHARACTER) { + if ((ch == '\r' || ch == '\n') && (chPrev != '\\')) { + endFoundThisLine = 0; + styler.ColourTo(i-1, SCE_C_STRINGEOL); + state = SCE_C_STRINGEOL; + } else if (ch == '\\') { + if (chNext == '\"' || chNext == '\'' || chNext == '\\') { + i++; + ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + } + } else if (ch == '\'') { + styler.ColourTo(i, state); + state = SCE_C_DEFAULT; + } + } + chPrev = ch; + } + styler.ColourTo(lengthDoc - 1, state); + + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + if (fold) { + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + //styler.SetLevel(lineCurrent, levelCurrent | flagsNext); + styler.SetLevel(lineCurrent, levelPrev | flagsNext); + + } +} + +static const char * const bullantWordListDesc[] = { + "Keywords", + 0 +}; + +LexerModule lmBullant(SCLEX_BULLANT, ColouriseBullantDoc, "bullant", 0, bullantWordListDesc); diff --git a/lexers/LexCLW.cpp b/lexers/LexCLW.cpp new file mode 100644 index 0000000..c1dea60 --- /dev/null +++ b/lexers/LexCLW.cpp @@ -0,0 +1,682 @@ +// Scintilla source code edit control +/** @file LexClw.cxx + ** Lexer for Clarion. + ** 2004/12/17 Updated Lexer + **/ +// Copyright 2003-2004 by Ron Schofield +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +// Is an end of line character +inline bool IsEOL(const int ch) { + + return(ch == '\n'); +} + +// Convert character to uppercase +static char CharacterUpper(char chChar) { + + if (chChar < 'a' || chChar > 'z') { + return(chChar); + } + else { + return(static_cast(chChar - 'a' + 'A')); + } +} + +// Convert string to uppercase +static void StringUpper(char *szString) { + + while (*szString) { + *szString = CharacterUpper(*szString); + szString++; + } +} + +// Is a label start character +inline bool IsALabelStart(const int iChar) { + + return(isalpha(iChar) || iChar == '_'); +} + +// Is a label character +inline bool IsALabelCharacter(const int iChar) { + + return(isalnum(iChar) || iChar == '_' || iChar == ':'); +} + +// Is the character is a ! and the the next character is not a ! +inline bool IsACommentStart(const int iChar) { + + return(iChar == '!'); +} + +// Is the character a Clarion hex character (ABCDEF) +inline bool IsAHexCharacter(const int iChar, bool bCaseSensitive) { + + // Case insensitive. + if (!bCaseSensitive) { + if (strchr("ABCDEFabcdef", iChar) != NULL) { + return(true); + } + } + // Case sensitive + else { + if (strchr("ABCDEF", iChar) != NULL) { + return(true); + } + } + return(false); +} + +// Is the character a Clarion base character (B=Binary, O=Octal, H=Hex) +inline bool IsANumericBaseCharacter(const int iChar, bool bCaseSensitive) { + + // Case insensitive. + if (!bCaseSensitive) { + // If character is a numeric base character + if (strchr("BOHboh", iChar) != NULL) { + return(true); + } + } + // Case sensitive + else { + // If character is a numeric base character + if (strchr("BOH", iChar) != NULL) { + return(true); + } + } + return(false); +} + +// Set the correct numeric constant state +inline bool SetNumericConstantState(StyleContext &scDoc) { + + int iPoints = 0; // Point counter + char cNumericString[512]; // Numeric string buffer + + // Buffer the current numberic string + scDoc.GetCurrent(cNumericString, sizeof(cNumericString)); + // Loop through the string until end of string (NULL termination) + for (int iIndex = 0; cNumericString[iIndex] != '\0'; iIndex++) { + // Depending on the character + switch (cNumericString[iIndex]) { + // Is a . (point) + case '.' : + // Increment point counter + iPoints++; + break; + default : + break; + } + } + // If points found (can be more than one for improper formatted number + if (iPoints > 0) { + return(true); + } + // Else no points found + else { + return(false); + } +} + +// Get the next word in uppercase from the current position (keyword lookahead) +inline bool GetNextWordUpper(Accessor &styler, unsigned int uiStartPos, int iLength, char *cWord) { + + unsigned int iIndex = 0; // Buffer Index + + // Loop through the remaining string from the current position + for (int iOffset = uiStartPos; iOffset < iLength; iOffset++) { + // Get the character from the buffer using the offset + char cCharacter = styler[iOffset]; + if (IsEOL(cCharacter)) { + break; + } + // If the character is alphabet character + if (isalpha(cCharacter)) { + // Add UPPERCASE character to the word buffer + cWord[iIndex++] = CharacterUpper(cCharacter); + } + } + // Add null termination + cWord[iIndex] = '\0'; + // If no word was found + if (iIndex == 0) { + // Return failure + return(false); + } + // Else word was found + else { + // Return success + return(true); + } +} + +// Clarion Language Colouring Procedure +static void ColouriseClarionDoc(unsigned int uiStartPos, int iLength, int iInitStyle, WordList *wlKeywords[], Accessor &accStyler, bool bCaseSensitive) { + + int iParenthesesLevel = 0; // Parenthese Level + int iColumn1Label = false; // Label starts in Column 1 + + WordList &wlClarionKeywords = *wlKeywords[0]; // Clarion Keywords + WordList &wlCompilerDirectives = *wlKeywords[1]; // Compiler Directives + WordList &wlRuntimeExpressions = *wlKeywords[2]; // Runtime Expressions + WordList &wlBuiltInProcsFuncs = *wlKeywords[3]; // Builtin Procedures and Functions + WordList &wlStructsDataTypes = *wlKeywords[4]; // Structures and Data Types + WordList &wlAttributes = *wlKeywords[5]; // Procedure Attributes + WordList &wlStandardEquates = *wlKeywords[6]; // Standard Equates + WordList &wlLabelReservedWords = *wlKeywords[7]; // Clarion Reserved Keywords (Labels) + WordList &wlProcLabelReservedWords = *wlKeywords[8]; // Clarion Reserved Keywords (Procedure Labels) + + const char wlProcReservedKeywordList[] = + "PROCEDURE FUNCTION"; + WordList wlProcReservedKeywords; + wlProcReservedKeywords.Set(wlProcReservedKeywordList); + + const char wlCompilerKeywordList[] = + "COMPILE OMIT"; + WordList wlCompilerKeywords; + wlCompilerKeywords.Set(wlCompilerKeywordList); + + const char wlLegacyStatementsList[] = + "BOF EOF FUNCTION POINTER SHARE"; + WordList wlLegacyStatements; + wlLegacyStatements.Set(wlLegacyStatementsList); + + StyleContext scDoc(uiStartPos, iLength, iInitStyle, accStyler); + + // lex source code + for (; scDoc.More(); scDoc.Forward()) + { + // + // Determine if the current state should terminate. + // + + // Label State Handling + if (scDoc.state == SCE_CLW_LABEL) { + // If the character is not a valid label + if (!IsALabelCharacter(scDoc.ch)) { + // If the character is a . (dot syntax) + if (scDoc.ch == '.') { + // Turn off column 1 label flag as label now cannot be reserved work + iColumn1Label = false; + // Uncolour the . (dot) to default state, move forward one character, + // and change back to the label state. + scDoc.SetState(SCE_CLW_DEFAULT); + scDoc.Forward(); + scDoc.SetState(SCE_CLW_LABEL); + } + // Else check label + else { + char cLabel[512]; // Label buffer + // Buffer the current label string + scDoc.GetCurrent(cLabel,sizeof(cLabel)); + // If case insensitive, convert string to UPPERCASE to match passed keywords. + if (!bCaseSensitive) { + StringUpper(cLabel); + } + // Else if UPPERCASE label string is in the Clarion compiler keyword list + if (wlCompilerKeywords.InList(cLabel) && iColumn1Label){ + // change the label to error state + scDoc.ChangeState(SCE_CLW_COMPILER_DIRECTIVE); + } + // Else if UPPERCASE label string is in the Clarion reserved keyword list + else if (wlLabelReservedWords.InList(cLabel) && iColumn1Label){ + // change the label to error state + scDoc.ChangeState(SCE_CLW_ERROR); + } + // Else if UPPERCASE label string is + else if (wlProcLabelReservedWords.InList(cLabel) && iColumn1Label) { + char cWord[512]; // Word buffer + // Get the next word from the current position + if (GetNextWordUpper(accStyler,scDoc.currentPos,uiStartPos+iLength,cWord)) { + // If the next word is a procedure reserved word + if (wlProcReservedKeywords.InList(cWord)) { + // Change the label to error state + scDoc.ChangeState(SCE_CLW_ERROR); + } + } + } + // Else if label string is in the compiler directive keyword list + else if (wlCompilerDirectives.InList(cLabel)) { + // change the state to compiler directive state + scDoc.ChangeState(SCE_CLW_COMPILER_DIRECTIVE); + } + // Terminate the label state and set to default state + scDoc.SetState(SCE_CLW_DEFAULT); + } + } + } + // Keyword State Handling + else if (scDoc.state == SCE_CLW_KEYWORD) { + // If character is : (colon) + if (scDoc.ch == ':') { + char cEquate[512]; // Equate buffer + // Move forward to include : (colon) in buffer + scDoc.Forward(); + // Buffer the equate string + scDoc.GetCurrent(cEquate,sizeof(cEquate)); + // If case insensitive, convert string to UPPERCASE to match passed keywords. + if (!bCaseSensitive) { + StringUpper(cEquate); + } + // If statement string is in the equate list + if (wlStandardEquates.InList(cEquate)) { + // Change to equate state + scDoc.ChangeState(SCE_CLW_STANDARD_EQUATE); + } + } + // If the character is not a valid label character + else if (!IsALabelCharacter(scDoc.ch)) { + char cStatement[512]; // Statement buffer + // Buffer the statement string + scDoc.GetCurrent(cStatement,sizeof(cStatement)); + // If case insensitive, convert string to UPPERCASE to match passed keywords. + if (!bCaseSensitive) { + StringUpper(cStatement); + } + // If statement string is in the Clarion keyword list + if (wlClarionKeywords.InList(cStatement)) { + // Change the statement string to the Clarion keyword state + scDoc.ChangeState(SCE_CLW_KEYWORD); + } + // Else if statement string is in the compiler directive keyword list + else if (wlCompilerDirectives.InList(cStatement)) { + // Change the statement string to the compiler directive state + scDoc.ChangeState(SCE_CLW_COMPILER_DIRECTIVE); + } + // Else if statement string is in the runtime expressions keyword list + else if (wlRuntimeExpressions.InList(cStatement)) { + // Change the statement string to the runtime expressions state + scDoc.ChangeState(SCE_CLW_RUNTIME_EXPRESSIONS); + } + // Else if statement string is in the builtin procedures and functions keyword list + else if (wlBuiltInProcsFuncs.InList(cStatement)) { + // Change the statement string to the builtin procedures and functions state + scDoc.ChangeState(SCE_CLW_BUILTIN_PROCEDURES_FUNCTION); + } + // Else if statement string is in the tructures and data types keyword list + else if (wlStructsDataTypes.InList(cStatement)) { + // Change the statement string to the structures and data types state + scDoc.ChangeState(SCE_CLW_STRUCTURE_DATA_TYPE); + } + // Else if statement string is in the procedure attribute keyword list + else if (wlAttributes.InList(cStatement)) { + // Change the statement string to the procedure attribute state + scDoc.ChangeState(SCE_CLW_ATTRIBUTE); + } + // Else if statement string is in the standard equate keyword list + else if (wlStandardEquates.InList(cStatement)) { + // Change the statement string to the standard equate state + scDoc.ChangeState(SCE_CLW_STANDARD_EQUATE); + } + // Else if statement string is in the deprecated or legacy keyword list + else if (wlLegacyStatements.InList(cStatement)) { + // Change the statement string to the standard equate state + scDoc.ChangeState(SCE_CLW_DEPRECATED); + } + // Else the statement string doesn't match any work list + else { + // Change the statement string to the default state + scDoc.ChangeState(SCE_CLW_DEFAULT); + } + // Terminate the keyword state and set to default state + scDoc.SetState(SCE_CLW_DEFAULT); + } + } + // String State Handling + else if (scDoc.state == SCE_CLW_STRING) { + // If the character is an ' (single quote) + if (scDoc.ch == '\'') { + // Set the state to default and move forward colouring + // the ' (single quote) as default state + // terminating the string state + scDoc.SetState(SCE_CLW_DEFAULT); + scDoc.Forward(); + } + // If the next character is an ' (single quote) + if (scDoc.chNext == '\'') { + // Move forward one character and set to default state + // colouring the next ' (single quote) as default state + // terminating the string state + scDoc.ForwardSetState(SCE_CLW_DEFAULT); + scDoc.Forward(); + } + } + // Picture String State Handling + else if (scDoc.state == SCE_CLW_PICTURE_STRING) { + // If the character is an ( (open parenthese) + if (scDoc.ch == '(') { + // Increment the parenthese level + iParenthesesLevel++; + } + // Else if the character is a ) (close parenthese) + else if (scDoc.ch == ')') { + // If the parenthese level is set to zero + // parentheses matched + if (!iParenthesesLevel) { + scDoc.SetState(SCE_CLW_DEFAULT); + } + // Else parenthese level is greater than zero + // still looking for matching parentheses + else { + // Decrement the parenthese level + iParenthesesLevel--; + } + } + } + // Standard Equate State Handling + else if (scDoc.state == SCE_CLW_STANDARD_EQUATE) { + if (!isalnum(scDoc.ch)) { + scDoc.SetState(SCE_CLW_DEFAULT); + } + } + // Integer Constant State Handling + else if (scDoc.state == SCE_CLW_INTEGER_CONSTANT) { + // If the character is not a digit (0-9) + // or character is not a hexidecimal character (A-F) + // or character is not a . (point) + // or character is not a numberic base character (B,O,H) + if (!(isdigit(scDoc.ch) + || IsAHexCharacter(scDoc.ch, bCaseSensitive) + || scDoc.ch == '.' + || IsANumericBaseCharacter(scDoc.ch, bCaseSensitive))) { + // If the number was a real + if (SetNumericConstantState(scDoc)) { + // Colour the matched string to the real constant state + scDoc.ChangeState(SCE_CLW_REAL_CONSTANT); + } + // Else the number was an integer + else { + // Colour the matched string to an integer constant state + scDoc.ChangeState(SCE_CLW_INTEGER_CONSTANT); + } + // Terminate the integer constant state and set to default state + scDoc.SetState(SCE_CLW_DEFAULT); + } + } + + // + // Determine if a new state should be entered. + // + + // Beginning of Line Handling + if (scDoc.atLineStart) { + // Reset the column 1 label flag + iColumn1Label = false; + // If column 1 character is a label start character + if (IsALabelStart(scDoc.ch)) { + // Label character is found in column 1 + // so set column 1 label flag and clear last column 1 label + iColumn1Label = true; + // Set the state to label + scDoc.SetState(SCE_CLW_LABEL); + } + // else if character is a space or tab + else if (IsASpace(scDoc.ch)){ + // Set to default state + scDoc.SetState(SCE_CLW_DEFAULT); + } + // else if comment start (!) or is an * (asterisk) + else if (IsACommentStart(scDoc.ch) || scDoc.ch == '*' ) { + // then set the state to comment. + scDoc.SetState(SCE_CLW_COMMENT); + } + // else the character is a ? (question mark) + else if (scDoc.ch == '?') { + // Change to the compiler directive state, move forward, + // colouring the ? (question mark), change back to default state. + scDoc.ChangeState(SCE_CLW_COMPILER_DIRECTIVE); + scDoc.Forward(); + scDoc.SetState(SCE_CLW_DEFAULT); + } + // else an invalid character in column 1 + else { + // Set to error state + scDoc.SetState(SCE_CLW_ERROR); + } + } + // End of Line Handling + else if (scDoc.atLineEnd) { + // Reset to the default state at the end of each line. + scDoc.SetState(SCE_CLW_DEFAULT); + } + // Default Handling + else { + // If in default state + if (scDoc.state == SCE_CLW_DEFAULT) { + // If is a letter could be a possible statement + if (isalpha(scDoc.ch)) { + // Set the state to Clarion Keyword and verify later + scDoc.SetState(SCE_CLW_KEYWORD); + } + // else is a number + else if (isdigit(scDoc.ch)) { + // Set the state to Integer Constant and verify later + scDoc.SetState(SCE_CLW_INTEGER_CONSTANT); + } + // else if the start of a comment or a | (line continuation) + else if (IsACommentStart(scDoc.ch) || scDoc.ch == '|') { + // then set the state to comment. + scDoc.SetState(SCE_CLW_COMMENT); + } + // else if the character is a ' (single quote) + else if (scDoc.ch == '\'') { + // If the character is also a ' (single quote) + // Embedded Apostrophe + if (scDoc.chNext == '\'') { + // Move forward colouring it as default state + scDoc.ForwardSetState(SCE_CLW_DEFAULT); + } + else { + // move to the next character and then set the state to comment. + scDoc.ForwardSetState(SCE_CLW_STRING); + } + } + // else the character is an @ (ampersand) + else if (scDoc.ch == '@') { + // Case insensitive. + if (!bCaseSensitive) { + // If character is a valid picture token character + if (strchr("DEKNPSTdeknpst", scDoc.chNext) != NULL) { + // Set to the picture string state + scDoc.SetState(SCE_CLW_PICTURE_STRING); + } + } + // Case sensitive + else { + // If character is a valid picture token character + if (strchr("DEKNPST", scDoc.chNext) != NULL) { + // Set the picture string state + scDoc.SetState(SCE_CLW_PICTURE_STRING); + } + } + } + } + } + } + // lexing complete + scDoc.Complete(); +} + +// Clarion Language Case Sensitive Colouring Procedure +static void ColouriseClarionDocSensitive(unsigned int uiStartPos, int iLength, int iInitStyle, WordList *wlKeywords[], Accessor &accStyler) { + + ColouriseClarionDoc(uiStartPos, iLength, iInitStyle, wlKeywords, accStyler, true); +} + +// Clarion Language Case Insensitive Colouring Procedure +static void ColouriseClarionDocInsensitive(unsigned int uiStartPos, int iLength, int iInitStyle, WordList *wlKeywords[], Accessor &accStyler) { + + ColouriseClarionDoc(uiStartPos, iLength, iInitStyle, wlKeywords, accStyler, false); +} + +// Fill Buffer + +static void FillBuffer(unsigned int uiStart, unsigned int uiEnd, Accessor &accStyler, char *szBuffer, unsigned int uiLength) { + + unsigned int uiPos = 0; + + while ((uiPos < uiEnd - uiStart + 1) && (uiPos < uiLength-1)) { + szBuffer[uiPos] = static_cast(toupper(accStyler[uiStart + uiPos])); + uiPos++; + } + szBuffer[uiPos] = '\0'; +} + +// Classify Clarion Fold Point + +static int ClassifyClarionFoldPoint(int iLevel, const char* szString) { + + if (!(isdigit(szString[0]) || (szString[0] == '.'))) { + if (strcmp(szString, "PROCEDURE") == 0) { + // iLevel = SC_FOLDLEVELBASE + 1; + } + else if (strcmp(szString, "MAP") == 0 || + strcmp(szString,"ACCEPT") == 0 || + strcmp(szString,"BEGIN") == 0 || + strcmp(szString,"CASE") == 0 || + strcmp(szString,"EXECUTE") == 0 || + strcmp(szString,"IF") == 0 || + strcmp(szString,"ITEMIZE") == 0 || + strcmp(szString,"INTERFACE") == 0 || + strcmp(szString,"JOIN") == 0 || + strcmp(szString,"LOOP") == 0 || + strcmp(szString,"MODULE") == 0 || + strcmp(szString,"RECORD") == 0) { + iLevel++; + } + else if (strcmp(szString, "APPLICATION") == 0 || + strcmp(szString, "CLASS") == 0 || + strcmp(szString, "DETAIL") == 0 || + strcmp(szString, "FILE") == 0 || + strcmp(szString, "FOOTER") == 0 || + strcmp(szString, "FORM") == 0 || + strcmp(szString, "GROUP") == 0 || + strcmp(szString, "HEADER") == 0 || + strcmp(szString, "INTERFACE") == 0 || + strcmp(szString, "MENU") == 0 || + strcmp(szString, "MENUBAR") == 0 || + strcmp(szString, "OLE") == 0 || + strcmp(szString, "OPTION") == 0 || + strcmp(szString, "QUEUE") == 0 || + strcmp(szString, "REPORT") == 0 || + strcmp(szString, "SHEET") == 0 || + strcmp(szString, "TAB") == 0 || + strcmp(szString, "TOOLBAR") == 0 || + strcmp(szString, "VIEW") == 0 || + strcmp(szString, "WINDOW") == 0) { + iLevel++; + } + else if (strcmp(szString, "END") == 0 || + strcmp(szString, "UNTIL") == 0 || + strcmp(szString, "WHILE") == 0) { + iLevel--; + } + } + return(iLevel); +} + +// Clarion Language Folding Procedure +static void FoldClarionDoc(unsigned int uiStartPos, int iLength, int iInitStyle, WordList *[], Accessor &accStyler) { + + unsigned int uiEndPos = uiStartPos + iLength; + int iLineCurrent = accStyler.GetLine(uiStartPos); + int iLevelPrev = accStyler.LevelAt(iLineCurrent) & SC_FOLDLEVELNUMBERMASK; + int iLevelCurrent = iLevelPrev; + char chNext = accStyler[uiStartPos]; + int iStyle = iInitStyle; + int iStyleNext = accStyler.StyleAt(uiStartPos); + int iVisibleChars = 0; + int iLastStart = 0; + + for (unsigned int uiPos = uiStartPos; uiPos < uiEndPos; uiPos++) { + + char chChar = chNext; + chNext = accStyler.SafeGetCharAt(uiPos + 1); + int iStylePrev = iStyle; + iStyle = iStyleNext; + iStyleNext = accStyler.StyleAt(uiPos + 1); + bool bEOL = (chChar == '\r' && chNext != '\n') || (chChar == '\n'); + + if (iStylePrev == SCE_CLW_DEFAULT) { + if (iStyle == SCE_CLW_KEYWORD || iStyle == SCE_CLW_STRUCTURE_DATA_TYPE) { + // Store last word start point. + iLastStart = uiPos; + } + } + + if (iStylePrev == SCE_CLW_KEYWORD || iStylePrev == SCE_CLW_STRUCTURE_DATA_TYPE) { + if(iswordchar(chChar) && !iswordchar(chNext)) { + char chBuffer[100]; + FillBuffer(iLastStart, uiPos, accStyler, chBuffer, sizeof(chBuffer)); + iLevelCurrent = ClassifyClarionFoldPoint(iLevelCurrent,chBuffer); + // if ((iLevelCurrent == SC_FOLDLEVELBASE + 1) && iLineCurrent > 1) { + // accStyler.SetLevel(iLineCurrent-1,SC_FOLDLEVELBASE); + // iLevelPrev = SC_FOLDLEVELBASE; + // } + } + } + + if (bEOL) { + int iLevel = iLevelPrev; + if ((iLevelCurrent > iLevelPrev) && (iVisibleChars > 0)) + iLevel |= SC_FOLDLEVELHEADERFLAG; + if (iLevel != accStyler.LevelAt(iLineCurrent)) { + accStyler.SetLevel(iLineCurrent,iLevel); + } + iLineCurrent++; + iLevelPrev = iLevelCurrent; + iVisibleChars = 0; + } + + if (!isspacechar(chChar)) + iVisibleChars++; + } + + // Fill in the real level of the next line, keeping the current flags + // as they will be filled in later. + int iFlagsNext = accStyler.LevelAt(iLineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + accStyler.SetLevel(iLineCurrent, iLevelPrev | iFlagsNext); +} + +// Word List Descriptions +static const char * const rgWordListDescriptions[] = { + "Clarion Keywords", + "Compiler Directives", + "Built-in Procedures and Functions", + "Runtime Expressions", + "Structure and Data Types", + "Attributes", + "Standard Equates", + "Reserved Words (Labels)", + "Reserved Words (Procedure Labels)", + 0, +}; + +// Case Sensitive Clarion Language Lexer +LexerModule lmClw(SCLEX_CLW, ColouriseClarionDocSensitive, "clarion", FoldClarionDoc, rgWordListDescriptions); + +// Case Insensitive Clarion Language Lexer +LexerModule lmClwNoCase(SCLEX_CLWNOCASE, ColouriseClarionDocInsensitive, "clarionnocase", FoldClarionDoc, rgWordListDescriptions); diff --git a/lexers/LexCOBOL.cpp b/lexers/LexCOBOL.cpp new file mode 100644 index 0000000..a937690 --- /dev/null +++ b/lexers/LexCOBOL.cpp @@ -0,0 +1,381 @@ +// Scintilla source code edit control +/** @file LexCOBOL.cxx + ** Lexer for COBOL + ** Based on LexPascal.cxx + ** Written by Laurent le Tynevez + ** Updated by Simon Steele September 2002 + ** Updated by Mathias Rauen May 2003 (Delphi adjustments) + ** Updated by Rod Falck, Aug 2006 Converted to COBOL + **/ + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +#define IN_DIVISION 0x01 +#define IN_DECLARATIVES 0x02 +#define IN_SECTION 0x04 +#define IN_PARAGRAPH 0x08 +#define IN_FLAGS 0xF +#define NOT_HEADER 0x10 + +inline bool isCOBOLoperator(char ch) + { + return isoperator(ch); + } + +inline bool isCOBOLwordchar(char ch) + { + return IsASCII(ch) && (isalnum(ch) || ch == '-'); + + } + +inline bool isCOBOLwordstart(char ch) + { + return IsASCII(ch) && isalnum(ch); + } + +static int CountBits(int nBits) + { + int count = 0; + for (int i = 0; i < 32; ++i) + { + count += nBits & 1; + nBits >>= 1; + } + return count; + } + +static void getRange(unsigned int start, + unsigned int end, + Accessor &styler, + char *s, + unsigned int len) { + unsigned int i = 0; + while ((i < end - start + 1) && (i < len-1)) { + s[i] = static_cast(tolower(styler[start + i])); + i++; + } + s[i] = '\0'; +} + +static void ColourTo(Accessor &styler, unsigned int end, unsigned int attr) { + styler.ColourTo(end, attr); +} + + +static int classifyWordCOBOL(unsigned int start, unsigned int end, /*WordList &keywords*/WordList *keywordlists[], Accessor &styler, int nContainment, bool *bAarea) { + int ret = 0; + + WordList& a_keywords = *keywordlists[0]; + WordList& b_keywords = *keywordlists[1]; + WordList& c_keywords = *keywordlists[2]; + + char s[100]; + s[0] = '\0'; + s[1] = '\0'; + getRange(start, end, styler, s, sizeof(s)); + + char chAttr = SCE_C_IDENTIFIER; + if (isdigit(s[0]) || (s[0] == '.') || (s[0] == 'v')) { + chAttr = SCE_C_NUMBER; + char *p = s + 1; + while (*p) { + if ((!isdigit(*p) && (*p) != 'v') && isCOBOLwordchar(*p)) { + chAttr = SCE_C_IDENTIFIER; + break; + } + ++p; + } + } + else { + if (a_keywords.InList(s)) { + chAttr = SCE_C_WORD; + } + else if (b_keywords.InList(s)) { + chAttr = SCE_C_WORD2; + } + else if (c_keywords.InList(s)) { + chAttr = SCE_C_UUID; + } + } + if (*bAarea) { + if (strcmp(s, "division") == 0) { + ret = IN_DIVISION; + // we've determined the containment, anything else is just ignored for those purposes + *bAarea = false; + } else if (strcmp(s, "declaratives") == 0) { + ret = IN_DIVISION | IN_DECLARATIVES; + if (nContainment & IN_DECLARATIVES) + ret |= NOT_HEADER | IN_SECTION; + // we've determined the containment, anything else is just ignored for those purposes + *bAarea = false; + } else if (strcmp(s, "section") == 0) { + ret = (nContainment &~ IN_PARAGRAPH) | IN_SECTION; + // we've determined the containment, anything else is just ignored for those purposes + *bAarea = false; + } else if (strcmp(s, "end") == 0 && (nContainment & IN_DECLARATIVES)) { + ret = IN_DIVISION | IN_DECLARATIVES | IN_SECTION | NOT_HEADER; + } else { + ret = nContainment | IN_PARAGRAPH; + } + } + ColourTo(styler, end, chAttr); + return ret; +} + +static void ColouriseCOBOLDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + + styler.StartAt(startPos); + + int state = initStyle; + if (state == SCE_C_CHARACTER) // Does not leak onto next line + state = SCE_C_DEFAULT; + char chPrev = ' '; + char chNext = styler[startPos]; + unsigned int lengthDoc = startPos + length; + + int nContainment; + + int currentLine = styler.GetLine(startPos); + if (currentLine > 0) { + styler.SetLineState(currentLine, styler.GetLineState(currentLine-1)); + nContainment = styler.GetLineState(currentLine); + nContainment &= ~NOT_HEADER; + } else { + styler.SetLineState(currentLine, 0); + nContainment = 0; + } + + styler.StartSegment(startPos); + bool bNewLine = true; + bool bAarea = !isspacechar(chNext); + int column = 0; + for (unsigned int i = startPos; i < lengthDoc; i++) { + char ch = chNext; + + chNext = styler.SafeGetCharAt(i + 1); + + ++column; + + if (bNewLine) { + column = 0; + } + if (column <= 1 && !bAarea) { + bAarea = !isspacechar(ch); + } + bool bSetNewLine = false; + if ((ch == '\r' && chNext != '\n') || (ch == '\n')) { + // Trigger on CR only (Mac style) or either on LF from CR+LF (Dos/Win) or on LF alone (Unix) + // Avoid triggering two times on Dos/Win + // End of line + if (state == SCE_C_CHARACTER) { + ColourTo(styler, i, state); + state = SCE_C_DEFAULT; + } + styler.SetLineState(currentLine, nContainment); + currentLine++; + bSetNewLine = true; + if (nContainment & NOT_HEADER) + nContainment &= ~(NOT_HEADER | IN_DECLARATIVES | IN_SECTION); + } + + if (styler.IsLeadByte(ch)) { + chNext = styler.SafeGetCharAt(i + 2); + chPrev = ' '; + i += 1; + continue; + } + + if (state == SCE_C_DEFAULT) { + if (isCOBOLwordstart(ch) || (ch == '$' && IsASCII(chNext) && isalpha(chNext))) { + ColourTo(styler, i-1, state); + state = SCE_C_IDENTIFIER; + } else if (column == 6 && ch == '*') { + // Cobol comment line: asterisk in column 7. + ColourTo(styler, i-1, state); + state = SCE_C_COMMENTLINE; + } else if (ch == '*' && chNext == '>') { + // Cobol inline comment: asterisk, followed by greater than. + ColourTo(styler, i-1, state); + state = SCE_C_COMMENTLINE; + } else if (column == 0 && ch == '*' && chNext != '*') { + ColourTo(styler, i-1, state); + state = SCE_C_COMMENTLINE; + } else if (column == 0 && ch == '/' && chNext != '*') { + ColourTo(styler, i-1, state); + state = SCE_C_COMMENTLINE; + } else if (column == 0 && ch == '*' && chNext == '*') { + ColourTo(styler, i-1, state); + state = SCE_C_COMMENTDOC; + } else if (column == 0 && ch == '/' && chNext == '*') { + ColourTo(styler, i-1, state); + state = SCE_C_COMMENTDOC; + } else if (ch == '"') { + ColourTo(styler, i-1, state); + state = SCE_C_STRING; + } else if (ch == '\'') { + ColourTo(styler, i-1, state); + state = SCE_C_CHARACTER; + } else if (ch == '?' && column == 0) { + ColourTo(styler, i-1, state); + state = SCE_C_PREPROCESSOR; + } else if (isCOBOLoperator(ch)) { + ColourTo(styler, i-1, state); + ColourTo(styler, i, SCE_C_OPERATOR); + } + } else if (state == SCE_C_IDENTIFIER) { + if (!isCOBOLwordchar(ch)) { + int lStateChange = classifyWordCOBOL(styler.GetStartSegment(), i - 1, keywordlists, styler, nContainment, &bAarea); + + if(lStateChange != 0) { + styler.SetLineState(currentLine, lStateChange); + nContainment = lStateChange; + } + + state = SCE_C_DEFAULT; + chNext = styler.SafeGetCharAt(i + 1); + if (ch == '"') { + state = SCE_C_STRING; + } else if (ch == '\'') { + state = SCE_C_CHARACTER; + } else if (isCOBOLoperator(ch)) { + ColourTo(styler, i, SCE_C_OPERATOR); + } + } + } else { + if (state == SCE_C_PREPROCESSOR) { + if ((ch == '\r' || ch == '\n') && !(chPrev == '\\' || chPrev == '\r')) { + ColourTo(styler, i-1, state); + state = SCE_C_DEFAULT; + } + } else if (state == SCE_C_COMMENT) { + if (ch == '\r' || ch == '\n') { + ColourTo(styler, i, state); + state = SCE_C_DEFAULT; + } + } else if (state == SCE_C_COMMENTDOC) { + if (ch == '\r' || ch == '\n') { + if (((i > styler.GetStartSegment() + 2) || ( + (initStyle == SCE_C_COMMENTDOC) && + (styler.GetStartSegment() == static_cast(startPos))))) { + ColourTo(styler, i, state); + state = SCE_C_DEFAULT; + } + } + } else if (state == SCE_C_COMMENTLINE) { + if (ch == '\r' || ch == '\n') { + ColourTo(styler, i-1, state); + state = SCE_C_DEFAULT; + } + } else if (state == SCE_C_STRING) { + if (ch == '"') { + ColourTo(styler, i, state); + state = SCE_C_DEFAULT; + } + } else if (state == SCE_C_CHARACTER) { + if (ch == '\'') { + ColourTo(styler, i, state); + state = SCE_C_DEFAULT; + } + } + } + chPrev = ch; + bNewLine = bSetNewLine; + if (bNewLine) + { + bAarea = false; + } + } + ColourTo(styler, lengthDoc - 1, state); +} + +static void FoldCOBOLDoc(unsigned int startPos, int length, int, WordList *[], + Accessor &styler) { + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = lineCurrent > 0 ? styler.LevelAt(lineCurrent - 1) & SC_FOLDLEVELNUMBERMASK : 0xFFF; + char chNext = styler[startPos]; + + bool bNewLine = true; + bool bAarea = !isspacechar(chNext); + int column = 0; + bool bComment = false; + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + ++column; + + if (bNewLine) { + column = 0; + bComment = (ch == '*' || ch == '/' || ch == '?'); + } + if (column <= 1 && !bAarea) { + bAarea = !isspacechar(ch); + } + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if (atEOL) { + int nContainment = styler.GetLineState(lineCurrent); + int lev = CountBits(nContainment & IN_FLAGS) | SC_FOLDLEVELBASE; + if (bAarea && !bComment) + --lev; + if (visibleChars == 0 && foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((bAarea) && (visibleChars > 0) && !(nContainment & NOT_HEADER) && !bComment) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + if ((lev & SC_FOLDLEVELNUMBERMASK) <= (levelPrev & SC_FOLDLEVELNUMBERMASK)) { + // this level is at the same level or less than the previous line + // therefore these is nothing for the previous header to collapse, so remove the header + styler.SetLevel(lineCurrent - 1, levelPrev & ~SC_FOLDLEVELHEADERFLAG); + } + levelPrev = lev; + visibleChars = 0; + bAarea = false; + bNewLine = true; + lineCurrent++; + } else { + bNewLine = false; + } + + + if (!isspacechar(ch)) + visibleChars++; + } + + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + +static const char * const COBOLWordListDesc[] = { + "A Keywords", + "B Keywords", + "Extended Keywords", + 0 +}; + +LexerModule lmCOBOL(SCLEX_COBOL, ColouriseCOBOLDoc, "COBOL", FoldCOBOLDoc, COBOLWordListDesc); diff --git a/lexers/LexCPP.cpp b/lexers/LexCPP.cpp new file mode 100644 index 0000000..6f7afc2 --- /dev/null +++ b/lexers/LexCPP.cpp @@ -0,0 +1,1309 @@ +// Scintilla source code edit control +/** @file LexCPP.cxx + ** Lexer for C++, C, Java, and JavaScript. + ** Further folding features and configuration properties added by "Udo Lechner" + **/ +// Copyright 1998-2005 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" +#include "OptionSet.h" +#include "SparseState.h" +#include "SubStyles.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static bool IsSpaceEquiv(int state) { + return (state <= SCE_C_COMMENTDOC) || + // including SCE_C_DEFAULT, SCE_C_COMMENT, SCE_C_COMMENTLINE + (state == SCE_C_COMMENTLINEDOC) || (state == SCE_C_COMMENTDOCKEYWORD) || + (state == SCE_C_COMMENTDOCKEYWORDERROR); +} + +// Preconditions: sc.currentPos points to a character after '+' or '-'. +// The test for pos reaching 0 should be redundant, +// and is in only for safety measures. +// Limitation: this code will give the incorrect answer for code like +// a = b+++/ptn/... +// Putting a space between the '++' post-inc operator and the '+' binary op +// fixes this, and is highly recommended for readability anyway. +static bool FollowsPostfixOperator(StyleContext &sc, LexAccessor &styler) { + int pos = (int) sc.currentPos; + while (--pos > 0) { + char ch = styler[pos]; + if (ch == '+' || ch == '-') { + return styler[pos - 1] == ch; + } + } + return false; +} + +static bool followsReturnKeyword(StyleContext &sc, LexAccessor &styler) { + // Don't look at styles, so no need to flush. + int pos = (int) sc.currentPos; + int currentLine = styler.GetLine(pos); + int lineStartPos = styler.LineStart(currentLine); + while (--pos > lineStartPos) { + char ch = styler.SafeGetCharAt(pos); + if (ch != ' ' && ch != '\t') { + break; + } + } + const char *retBack = "nruter"; + const char *s = retBack; + while (*s + && pos >= lineStartPos + && styler.SafeGetCharAt(pos) == *s) { + s++; + pos--; + } + return !*s; +} + +static std::string GetRestOfLine(LexAccessor &styler, int start, bool allowSpace) { + std::string restOfLine; + int i =0; + char ch = styler.SafeGetCharAt(start, '\n'); + int endLine = styler.LineEnd(styler.GetLine(start)); + while (((start+i) < endLine) && (ch != '\r')) { + char chNext = styler.SafeGetCharAt(start + i + 1, '\n'); + if (ch == '/' && (chNext == '/' || chNext == '*')) + break; + if (allowSpace || (ch != ' ')) + restOfLine += ch; + i++; + ch = chNext; + } + return restOfLine; +} + +static bool IsStreamCommentStyle(int style) { + return style == SCE_C_COMMENT || + style == SCE_C_COMMENTDOC || + style == SCE_C_COMMENTDOCKEYWORD || + style == SCE_C_COMMENTDOCKEYWORDERROR; +} + +static std::vector Tokenize(const std::string &s) { + // Break into space separated tokens + std::string word; + std::vector tokens; + for (const char *cp = s.c_str(); *cp; cp++) { + if ((*cp == ' ') || (*cp == '\t')) { + if (!word.empty()) { + tokens.push_back(word); + word = ""; + } + } else { + word += *cp; + } + } + if (!word.empty()) { + tokens.push_back(word); + } + return tokens; +} + +struct PPDefinition { + int line; + std::string key; + std::string value; + bool isUndef; + PPDefinition(int line_, const std::string &key_, const std::string &value_, bool isUndef_ = false) : + line(line_), key(key_), value(value_), isUndef(isUndef_) { + } +}; + +class LinePPState { + int state; + int ifTaken; + int level; + bool ValidLevel() const { + return level >= 0 && level < 32; + } + int maskLevel() const { + return 1 << level; + } +public: + LinePPState() : state(0), ifTaken(0), level(-1) { + } + bool IsInactive() const { + return state != 0; + } + bool CurrentIfTaken() const { + return (ifTaken & maskLevel()) != 0; + } + void StartSection(bool on) { + level++; + if (ValidLevel()) { + if (on) { + state &= ~maskLevel(); + ifTaken |= maskLevel(); + } else { + state |= maskLevel(); + ifTaken &= ~maskLevel(); + } + } + } + void EndSection() { + if (ValidLevel()) { + state &= ~maskLevel(); + ifTaken &= ~maskLevel(); + } + level--; + } + void InvertCurrentLevel() { + if (ValidLevel()) { + state ^= maskLevel(); + ifTaken |= maskLevel(); + } + } +}; + +// Hold the preprocessor state for each line seen. +// Currently one entry per line but could become sparse with just one entry per preprocessor line. +class PPStates { + std::vector vlls; +public: + LinePPState ForLine(int line) const { + if ((line > 0) && (vlls.size() > static_cast(line))) { + return vlls[line]; + } else { + return LinePPState(); + } + } + void Add(int line, LinePPState lls) { + vlls.resize(line+1); + vlls[line] = lls; + } +}; + +// An individual named option for use in an OptionSet + +// Options used for LexerCPP +struct OptionsCPP { + bool stylingWithinPreprocessor; + bool identifiersAllowDollars; + bool trackPreprocessor; + bool updatePreprocessor; + bool triplequotedStrings; + bool hashquotedStrings; + bool fold; + bool foldSyntaxBased; + bool foldComment; + bool foldCommentMultiline; + bool foldCommentExplicit; + std::string foldExplicitStart; + std::string foldExplicitEnd; + bool foldExplicitAnywhere; + bool foldPreprocessor; + bool foldCompact; + bool foldAtElse; + OptionsCPP() { + stylingWithinPreprocessor = false; + identifiersAllowDollars = true; + trackPreprocessor = true; + updatePreprocessor = true; + triplequotedStrings = false; + hashquotedStrings = false; + fold = false; + foldSyntaxBased = true; + foldComment = false; + foldCommentMultiline = true; + foldCommentExplicit = true; + foldExplicitStart = ""; + foldExplicitEnd = ""; + foldExplicitAnywhere = false; + foldPreprocessor = false; + foldCompact = false; + foldAtElse = false; + } +}; + +static const char *const cppWordLists[] = { + "Primary keywords and identifiers", + "Secondary keywords and identifiers", + "Documentation comment keywords", + "Global classes and typedefs", + "Preprocessor definitions", + 0, +}; + +struct OptionSetCPP : public OptionSet { + OptionSetCPP() { + DefineProperty("styling.within.preprocessor", &OptionsCPP::stylingWithinPreprocessor, + "For C++ code, determines whether all preprocessor code is styled in the " + "preprocessor style (0, the default) or only from the initial # to the end " + "of the command word(1)."); + + DefineProperty("lexer.cpp.allow.dollars", &OptionsCPP::identifiersAllowDollars, + "Set to 0 to disallow the '$' character in identifiers with the cpp lexer."); + + DefineProperty("lexer.cpp.track.preprocessor", &OptionsCPP::trackPreprocessor, + "Set to 1 to interpret #if/#else/#endif to grey out code that is not active."); + + DefineProperty("lexer.cpp.update.preprocessor", &OptionsCPP::updatePreprocessor, + "Set to 1 to update preprocessor definitions when #define found."); + + DefineProperty("lexer.cpp.triplequoted.strings", &OptionsCPP::triplequotedStrings, + "Set to 1 to enable highlighting of triple-quoted strings."); + + DefineProperty("lexer.cpp.hashquoted.strings", &OptionsCPP::hashquotedStrings, + "Set to 1 to enable highlighting of hash-quoted strings."); + + DefineProperty("fold", &OptionsCPP::fold); + + DefineProperty("fold.cpp.syntax.based", &OptionsCPP::foldSyntaxBased, + "Set this property to 0 to disable syntax based folding."); + + DefineProperty("fold.comment", &OptionsCPP::foldComment, + "This option enables folding multi-line comments and explicit fold points when using the C++ lexer. " + "Explicit fold points allows adding extra folding by placing a //{ comment at the start and a //} " + "at the end of a section that should fold."); + + DefineProperty("fold.cpp.comment.multiline", &OptionsCPP::foldCommentMultiline, + "Set this property to 0 to disable folding multi-line comments when fold.comment=1."); + + DefineProperty("fold.cpp.comment.explicit", &OptionsCPP::foldCommentExplicit, + "Set this property to 0 to disable folding explicit fold points when fold.comment=1."); + + DefineProperty("fold.cpp.explicit.start", &OptionsCPP::foldExplicitStart, + "The string to use for explicit fold start points, replacing the standard //{."); + + DefineProperty("fold.cpp.explicit.end", &OptionsCPP::foldExplicitEnd, + "The string to use for explicit fold end points, replacing the standard //}."); + + DefineProperty("fold.cpp.explicit.anywhere", &OptionsCPP::foldExplicitAnywhere, + "Set this property to 1 to enable explicit fold points anywhere, not just in line comments."); + + DefineProperty("fold.preprocessor", &OptionsCPP::foldPreprocessor, + "This option enables folding preprocessor directives when using the C++ lexer. " + "Includes C#'s explicit #region and #endregion folding directives."); + + DefineProperty("fold.compact", &OptionsCPP::foldCompact); + + DefineProperty("fold.at.else", &OptionsCPP::foldAtElse, + "This option enables C++ folding on a \"} else {\" line of an if statement."); + + DefineWordListSets(cppWordLists); + } +}; + +static const char styleSubable[] = {SCE_C_IDENTIFIER, SCE_C_COMMENTDOCKEYWORD, 0}; + +class LexerCPP : public ILexerWithSubStyles { + bool caseSensitive; + CharacterSet setWord; + CharacterSet setNegationOp; + CharacterSet setArithmethicOp; + CharacterSet setRelOp; + CharacterSet setLogicalOp; + PPStates vlls; + std::vector ppDefineHistory; + WordList keywords; + WordList keywords2; + WordList keywords3; + WordList keywords4; + WordList ppDefinitions; + std::map preprocessorDefinitionsStart; + OptionsCPP options; + OptionSetCPP osCPP; + SparseState rawStringTerminators; + enum { activeFlag = 0x40 }; + enum { ssIdentifier, ssDocKeyword }; + SubStyles subStyles; +public: + LexerCPP(bool caseSensitive_) : + caseSensitive(caseSensitive_), + setWord(CharacterSet::setAlphaNum, "._", 0x80, true), + setNegationOp(CharacterSet::setNone, "!"), + setArithmethicOp(CharacterSet::setNone, "+-/*%"), + setRelOp(CharacterSet::setNone, "=!<>"), + setLogicalOp(CharacterSet::setNone, "|&"), + subStyles(styleSubable, 0x80, 0x40, activeFlag) { + } + virtual ~LexerCPP() { + } + void SCI_METHOD Release() { + delete this; + } + int SCI_METHOD Version() const { + return lvSubStyles; + } + const char * SCI_METHOD PropertyNames() { + return osCPP.PropertyNames(); + } + int SCI_METHOD PropertyType(const char *name) { + return osCPP.PropertyType(name); + } + const char * SCI_METHOD DescribeProperty(const char *name) { + return osCPP.DescribeProperty(name); + } + int SCI_METHOD PropertySet(const char *key, const char *val); + const char * SCI_METHOD DescribeWordListSets() { + return osCPP.DescribeWordListSets(); + } + int SCI_METHOD WordListSet(int n, const char *wl); + void SCI_METHOD Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + void SCI_METHOD Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + + void * SCI_METHOD PrivateCall(int, void *) { + return 0; + } + + int SCI_METHOD LineEndTypesSupported() { + return SC_LINE_END_TYPE_UNICODE; + }; + + int SCI_METHOD AllocateSubStyles(int styleBase, int numberStyles) { + return subStyles.Allocate(styleBase, numberStyles); + } + int SCI_METHOD SubStylesStart(int styleBase) { + return subStyles.Start(styleBase); + } + int SCI_METHOD SubStylesLength(int styleBase) { + return subStyles.Length(styleBase); + } + int SCI_METHOD StyleFromSubStyle(int subStyle) { + int styleBase = subStyles.BaseStyle(MaskActive(subStyle)); + int active = subStyle & activeFlag; + return styleBase | active; + } + int SCI_METHOD PrimaryStyleFromStyle(int style) { + return MaskActive(style); + } + void SCI_METHOD FreeSubStyles() { + subStyles.Free(); + } + void SCI_METHOD SetIdentifiers(int style, const char *identifiers) { + subStyles.SetIdentifiers(style, identifiers); + } + int SCI_METHOD DistanceToSecondaryStyles() { + return activeFlag; + } + const char * SCI_METHOD GetSubStyleBases() { + return styleSubable; + } + + static ILexer *LexerFactoryCPP() { + return new LexerCPP(true); + } + static ILexer *LexerFactoryCPPInsensitive() { + return new LexerCPP(false); + } + static int MaskActive(int style) { + return style & ~activeFlag; + } + void EvaluateTokens(std::vector &tokens); + bool EvaluateExpression(const std::string &expr, const std::map &preprocessorDefinitions); +}; + +int SCI_METHOD LexerCPP::PropertySet(const char *key, const char *val) { + if (osCPP.PropertySet(&options, key, val)) { + if (strcmp(key, "lexer.cpp.allow.dollars") == 0) { + setWord = CharacterSet(CharacterSet::setAlphaNum, "._", 0x80, true); + if (options.identifiersAllowDollars) { + setWord.Add('$'); + } + } + return 0; + } + return -1; +} + +int SCI_METHOD LexerCPP::WordListSet(int n, const char *wl) { + WordList *wordListN = 0; + switch (n) { + case 0: + wordListN = &keywords; + break; + case 1: + wordListN = &keywords2; + break; + case 2: + wordListN = &keywords3; + break; + case 3: + wordListN = &keywords4; + break; + case 4: + wordListN = &ppDefinitions; + break; + } + int firstModification = -1; + if (wordListN) { + WordList wlNew; + wlNew.Set(wl); + if (*wordListN != wlNew) { + wordListN->Set(wl); + firstModification = 0; + if (n == 4) { + // Rebuild preprocessorDefinitions + preprocessorDefinitionsStart.clear(); + for (int nDefinition = 0; nDefinition < ppDefinitions.Length(); nDefinition++) { + const char *cpDefinition = ppDefinitions.WordAt(nDefinition); + const char *cpEquals = strchr(cpDefinition, '='); + if (cpEquals) { + std::string name(cpDefinition, cpEquals - cpDefinition); + std::string val(cpEquals+1); + preprocessorDefinitionsStart[name] = val; + } else { + std::string name(cpDefinition); + std::string val("1"); + preprocessorDefinitionsStart[name] = val; + } + } + } + } + } + return firstModification; +} + +// Functor used to truncate history +struct After { + int line; + After(int line_) : line(line_) {} + bool operator()(PPDefinition &p) const { + return p.line > line; + } +}; + +void SCI_METHOD LexerCPP::Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { + LexAccessor styler(pAccess); + + CharacterSet setOKBeforeRE(CharacterSet::setNone, "([{=,:;!%^&*|?~+-"); + CharacterSet setCouldBePostOp(CharacterSet::setNone, "+-"); + + CharacterSet setDoxygen(CharacterSet::setAlpha, "$@\\&<>#{}[]"); + + CharacterSet setWordStart(CharacterSet::setAlpha, "_", 0x80, true); + + CharacterSet setInvalidRawFirst(CharacterSet::setNone, " )\\\t\v\f\n"); + + if (options.identifiersAllowDollars) { + setWordStart.Add('$'); + } + + int chPrevNonWhite = ' '; + int visibleChars = 0; + bool lastWordWasUUID = false; + int styleBeforeDCKeyword = SCE_C_DEFAULT; + bool continuationLine = false; + bool isIncludePreprocessor = false; + bool isStringInPreprocessor = false; + bool inRERange = false; + + int lineCurrent = styler.GetLine(startPos); + if ((MaskActive(initStyle) == SCE_C_PREPROCESSOR) || + (MaskActive(initStyle) == SCE_C_COMMENTLINE) || + (MaskActive(initStyle) == SCE_C_COMMENTLINEDOC)) { + // Set continuationLine if last character of previous line is '\' + if (lineCurrent > 0) { + int endLinePrevious = styler.LineEnd(lineCurrent - 1); + if (endLinePrevious > 0) { + continuationLine = styler.SafeGetCharAt(endLinePrevious-1) == '\\'; + } + } + } + + // look back to set chPrevNonWhite properly for better regex colouring + if (startPos > 0) { + int back = startPos; + while (--back && IsSpaceEquiv(MaskActive(styler.StyleAt(back)))) + ; + if (MaskActive(styler.StyleAt(back)) == SCE_C_OPERATOR) { + chPrevNonWhite = styler.SafeGetCharAt(back); + } + } + + StyleContext sc(startPos, length, initStyle, styler, static_cast(0xff)); + LinePPState preproc = vlls.ForLine(lineCurrent); + + bool definitionsChanged = false; + + // Truncate ppDefineHistory before current line + + if (!options.updatePreprocessor) + ppDefineHistory.clear(); + + std::vector::iterator itInvalid = std::find_if(ppDefineHistory.begin(), ppDefineHistory.end(), After(lineCurrent-1)); + if (itInvalid != ppDefineHistory.end()) { + ppDefineHistory.erase(itInvalid, ppDefineHistory.end()); + definitionsChanged = true; + } + + std::map preprocessorDefinitions = preprocessorDefinitionsStart; + for (std::vector::iterator itDef = ppDefineHistory.begin(); itDef != ppDefineHistory.end(); ++itDef) { + if (itDef->isUndef) + preprocessorDefinitions.erase(itDef->key); + else + preprocessorDefinitions[itDef->key] = itDef->value; + } + + std::string rawStringTerminator = rawStringTerminators.ValueAt(lineCurrent-1); + SparseState rawSTNew(lineCurrent); + + int activitySet = preproc.IsInactive() ? activeFlag : 0; + + const WordClassifier &classifierIdentifiers = subStyles.Classifier(SCE_C_IDENTIFIER); + const WordClassifier &classifierDocKeyWords = subStyles.Classifier(SCE_C_COMMENTDOCKEYWORD); + + int lineEndNext = styler.LineEnd(lineCurrent); + + for (; sc.More();) { + + if (sc.atLineStart) { + // Using MaskActive() is not needed in the following statement. + // Inside inactive preprocessor declaration, state will be reset anyway at the end of this block. + if ((sc.state == SCE_C_STRING) || (sc.state == SCE_C_CHARACTER)) { + // Prevent SCE_C_STRINGEOL from leaking back to previous line which + // ends with a line continuation by locking in the state upto this position. + sc.SetState(sc.state); + } + if ((MaskActive(sc.state) == SCE_C_PREPROCESSOR) && (!continuationLine)) { + sc.SetState(SCE_C_DEFAULT|activitySet); + } + // Reset states to begining of colourise so no surprises + // if different sets of lines lexed. + visibleChars = 0; + lastWordWasUUID = false; + isIncludePreprocessor = false; + inRERange = false; + if (preproc.IsInactive()) { + activitySet = activeFlag; + sc.SetState(sc.state | activitySet); + } + } + + if (sc.atLineEnd) { + lineCurrent++; + lineEndNext = styler.LineEnd(lineCurrent); + vlls.Add(lineCurrent, preproc); + if (rawStringTerminator != "") { + rawSTNew.Set(lineCurrent-1, rawStringTerminator); + } + } + + // Handle line continuation generically. + if (sc.ch == '\\') { + if (static_cast((sc.currentPos+1)) >= lineEndNext) { + lineCurrent++; + lineEndNext = styler.LineEnd(lineCurrent); + vlls.Add(lineCurrent, preproc); + sc.Forward(); + if (sc.ch == '\r' && sc.chNext == '\n') { + // Even in UTF-8, \r and \n are separate + sc.Forward(); + } + continuationLine = true; + sc.Forward(); + continue; + } + } + + const bool atLineEndBeforeSwitch = sc.atLineEnd; + + // Determine if the current state should terminate. + switch (MaskActive(sc.state)) { + case SCE_C_OPERATOR: + sc.SetState(SCE_C_DEFAULT|activitySet); + break; + case SCE_C_NUMBER: + // We accept almost anything because of hex. and number suffixes + if (!(setWord.Contains(sc.ch) + || ((sc.ch == '+' || sc.ch == '-') && (sc.chPrev == 'e' || sc.chPrev == 'E' || + sc.chPrev == 'p' || sc.chPrev == 'P')))) { + sc.SetState(SCE_C_DEFAULT|activitySet); + } + break; + case SCE_C_IDENTIFIER: + if (sc.atLineStart || sc.atLineEnd || !setWord.Contains(sc.ch) || (sc.ch == '.')) { + char s[1000]; + if (caseSensitive) { + sc.GetCurrent(s, sizeof(s)); + } else { + sc.GetCurrentLowered(s, sizeof(s)); + } + if (keywords.InList(s)) { + lastWordWasUUID = strcmp(s, "uuid") == 0; + sc.ChangeState(SCE_C_WORD|activitySet); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_C_WORD2|activitySet); + } else if (keywords4.InList(s)) { + sc.ChangeState(SCE_C_GLOBALCLASS|activitySet); + } else { + int subStyle = classifierIdentifiers.ValueFor(s); + if (subStyle >= 0) { + sc.ChangeState(subStyle|activitySet); + } + } + const bool literalString = sc.ch == '\"'; + if (literalString || sc.ch == '\'') { + size_t lenS = strlen(s); + const bool raw = literalString && sc.chPrev == 'R' && !setInvalidRawFirst.Contains(sc.chNext); + if (raw) + s[lenS--] = '\0'; + bool valid = + (lenS == 0) || + ((lenS == 1) && ((s[0] == 'L') || (s[0] == 'u') || (s[0] == 'U'))) || + ((lenS == 2) && literalString && (s[0] == 'u') && (s[1] == '8')); + if (valid) { + if (literalString) + sc.ChangeState((raw ? SCE_C_STRINGRAW : SCE_C_STRING)|activitySet); + else + sc.ChangeState(SCE_C_CHARACTER|activitySet); + } + } + sc.SetState(SCE_C_DEFAULT|activitySet); + } + break; + case SCE_C_PREPROCESSOR: + if (options.stylingWithinPreprocessor) { + if (IsASpace(sc.ch)) { + sc.SetState(SCE_C_DEFAULT|activitySet); + } + } else if (isStringInPreprocessor && (sc.Match('>') || sc.Match('\"'))) { + isStringInPreprocessor = false; + } else if (!isStringInPreprocessor) { + if ((isIncludePreprocessor && sc.Match('<')) || sc.Match('\"')) { + isStringInPreprocessor = true; + } else if (sc.Match('/', '*')) { + if (sc.Match("/**") || sc.Match("/*!")) { + sc.SetState(SCE_C_PREPROCESSORCOMMENTDOC|activitySet); + } else { + sc.SetState(SCE_C_PREPROCESSORCOMMENT|activitySet); + } + sc.Forward(); // Eat the * + } else if (sc.Match('/', '/')) { + sc.SetState(SCE_C_DEFAULT|activitySet); + } + } + break; + case SCE_C_PREPROCESSORCOMMENT: + case SCE_C_PREPROCESSORCOMMENTDOC: + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_C_PREPROCESSOR|activitySet); + continue; // Without advancing in case of '\'. + } + break; + case SCE_C_COMMENT: + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_C_DEFAULT|activitySet); + } + break; + case SCE_C_COMMENTDOC: + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_C_DEFAULT|activitySet); + } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support + // Verify that we have the conditions to mark a comment-doc-keyword + if ((IsASpace(sc.chPrev) || sc.chPrev == '*') && (!IsASpace(sc.chNext))) { + styleBeforeDCKeyword = SCE_C_COMMENTDOC; + sc.SetState(SCE_C_COMMENTDOCKEYWORD|activitySet); + } + } + break; + case SCE_C_COMMENTLINE: + if (sc.atLineStart && !continuationLine) { + sc.SetState(SCE_C_DEFAULT|activitySet); + } + break; + case SCE_C_COMMENTLINEDOC: + if (sc.atLineStart && !continuationLine) { + sc.SetState(SCE_C_DEFAULT|activitySet); + } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support + // Verify that we have the conditions to mark a comment-doc-keyword + if ((IsASpace(sc.chPrev) || sc.chPrev == '/' || sc.chPrev == '!') && (!IsASpace(sc.chNext))) { + styleBeforeDCKeyword = SCE_C_COMMENTLINEDOC; + sc.SetState(SCE_C_COMMENTDOCKEYWORD|activitySet); + } + } + break; + case SCE_C_COMMENTDOCKEYWORD: + if ((styleBeforeDCKeyword == SCE_C_COMMENTDOC) && sc.Match('*', '/')) { + sc.ChangeState(SCE_C_COMMENTDOCKEYWORDERROR); + sc.Forward(); + sc.ForwardSetState(SCE_C_DEFAULT|activitySet); + } else if (!setDoxygen.Contains(sc.ch)) { + char s[100]; + if (caseSensitive) { + sc.GetCurrent(s, sizeof(s)); + } else { + sc.GetCurrentLowered(s, sizeof(s)); + } + if (!IsASpace(sc.ch)) { + sc.ChangeState(SCE_C_COMMENTDOCKEYWORDERROR|activitySet); + } else if (!keywords3.InList(s + 1)) { + int subStyleCDKW = classifierDocKeyWords.ValueFor(s+1); + if (subStyleCDKW >= 0) { + sc.ChangeState(subStyleCDKW|activitySet); + } else { + sc.ChangeState(SCE_C_COMMENTDOCKEYWORDERROR|activitySet); + } + } + sc.SetState(styleBeforeDCKeyword|activitySet); + } + break; + case SCE_C_STRING: + if (sc.atLineEnd) { + sc.ChangeState(SCE_C_STRINGEOL|activitySet); + } else if (isIncludePreprocessor) { + if (sc.ch == '>') { + sc.ForwardSetState(SCE_C_DEFAULT|activitySet); + isIncludePreprocessor = false; + } + } else if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\"') { + sc.ForwardSetState(SCE_C_DEFAULT|activitySet); + } + break; + case SCE_C_HASHQUOTEDSTRING: + if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\"') { + sc.ForwardSetState(SCE_C_DEFAULT|activitySet); + } + break; + case SCE_C_STRINGRAW: + if (sc.Match(rawStringTerminator.c_str())) { + for (size_t termPos=rawStringTerminator.size(); termPos; termPos--) + sc.Forward(); + sc.SetState(SCE_C_DEFAULT|activitySet); + rawStringTerminator = ""; + } + break; + case SCE_C_CHARACTER: + if (sc.atLineEnd) { + sc.ChangeState(SCE_C_STRINGEOL|activitySet); + } else if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\'') { + sc.ForwardSetState(SCE_C_DEFAULT|activitySet); + } + break; + case SCE_C_REGEX: + if (sc.atLineStart) { + sc.SetState(SCE_C_DEFAULT|activitySet); + } else if (! inRERange && sc.ch == '/') { + sc.Forward(); + while ((sc.ch < 0x80) && islower(sc.ch)) + sc.Forward(); // gobble regex flags + sc.SetState(SCE_C_DEFAULT|activitySet); + } else if (sc.ch == '\\' && (static_cast(sc.currentPos+1) < lineEndNext)) { + // Gobble up the escaped character + sc.Forward(); + } else if (sc.ch == '[') { + inRERange = true; + } else if (sc.ch == ']') { + inRERange = false; + } + break; + case SCE_C_STRINGEOL: + if (sc.atLineStart) { + sc.SetState(SCE_C_DEFAULT|activitySet); + } + break; + case SCE_C_VERBATIM: + if (sc.ch == '\"') { + if (sc.chNext == '\"') { + sc.Forward(); + } else { + sc.ForwardSetState(SCE_C_DEFAULT|activitySet); + } + } + break; + case SCE_C_TRIPLEVERBATIM: + if (sc.Match("\"\"\"")) { + while (sc.Match('"')) { + sc.Forward(); + } + sc.SetState(SCE_C_DEFAULT|activitySet); + } + break; + case SCE_C_UUID: + if (sc.atLineEnd || sc.ch == ')') { + sc.SetState(SCE_C_DEFAULT|activitySet); + } + } + + if (sc.atLineEnd && !atLineEndBeforeSwitch) { + // State exit processing consumed characters up to end of line. + lineCurrent++; + lineEndNext = styler.LineEnd(lineCurrent); + vlls.Add(lineCurrent, preproc); + } + + // Determine if a new state should be entered. + if (MaskActive(sc.state) == SCE_C_DEFAULT) { + if (sc.Match('@', '\"')) { + sc.SetState(SCE_C_VERBATIM|activitySet); + sc.Forward(); + } else if (options.triplequotedStrings && sc.Match("\"\"\"")) { + sc.SetState(SCE_C_TRIPLEVERBATIM|activitySet); + sc.Forward(2); + } else if (options.hashquotedStrings && sc.Match('#', '\"')) { + sc.SetState(SCE_C_HASHQUOTEDSTRING|activitySet); + sc.Forward(); + } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { + if (lastWordWasUUID) { + sc.SetState(SCE_C_UUID|activitySet); + lastWordWasUUID = false; + } else { + sc.SetState(SCE_C_NUMBER|activitySet); + } + } else if (!sc.atLineEnd && (setWordStart.Contains(sc.ch) || (sc.ch == '@'))) { + if (lastWordWasUUID) { + sc.SetState(SCE_C_UUID|activitySet); + lastWordWasUUID = false; + } else { + sc.SetState(SCE_C_IDENTIFIER|activitySet); + } + } else if (sc.Match('/', '*')) { + if (sc.Match("/**") || sc.Match("/*!")) { // Support of Qt/Doxygen doc. style + sc.SetState(SCE_C_COMMENTDOC|activitySet); + } else { + sc.SetState(SCE_C_COMMENT|activitySet); + } + sc.Forward(); // Eat the * so it isn't used for the end of the comment + } else if (sc.Match('/', '/')) { + if ((sc.Match("///") && !sc.Match("////")) || sc.Match("//!")) + // Support of Qt/Doxygen doc. style + sc.SetState(SCE_C_COMMENTLINEDOC|activitySet); + else + sc.SetState(SCE_C_COMMENTLINE|activitySet); + } else if (sc.ch == '/' + && (setOKBeforeRE.Contains(chPrevNonWhite) + || followsReturnKeyword(sc, styler)) + && (!setCouldBePostOp.Contains(chPrevNonWhite) + || !FollowsPostfixOperator(sc, styler))) { + sc.SetState(SCE_C_REGEX|activitySet); // JavaScript's RegEx + inRERange = false; + } else if (sc.ch == '\"') { + if (sc.chPrev == 'R') { + styler.Flush(); + if (MaskActive(styler.StyleAt(sc.currentPos - 1)) == SCE_C_STRINGRAW) { + sc.SetState(SCE_C_STRINGRAW|activitySet); + rawStringTerminator = ")"; + for (int termPos = sc.currentPos + 1;; termPos++) { + char chTerminator = styler.SafeGetCharAt(termPos, '('); + if (chTerminator == '(') + break; + rawStringTerminator += chTerminator; + } + rawStringTerminator += '\"'; + } else { + sc.SetState(SCE_C_STRING|activitySet); + } + } else { + sc.SetState(SCE_C_STRING|activitySet); + } + isIncludePreprocessor = false; // ensure that '>' won't end the string + } else if (isIncludePreprocessor && sc.ch == '<') { + sc.SetState(SCE_C_STRING|activitySet); + } else if (sc.ch == '\'') { + sc.SetState(SCE_C_CHARACTER|activitySet); + } else if (sc.ch == '#' && visibleChars == 0) { + // Preprocessor commands are alone on their line + sc.SetState(SCE_C_PREPROCESSOR|activitySet); + // Skip whitespace between # and preprocessor word + do { + sc.Forward(); + } while ((sc.ch == ' ' || sc.ch == '\t') && sc.More()); + if (sc.atLineEnd) { + sc.SetState(SCE_C_DEFAULT|activitySet); + } else if (sc.Match("include")) { + isIncludePreprocessor = true; + } else { + if (options.trackPreprocessor) { + if (sc.Match("ifdef") || sc.Match("ifndef")) { + bool isIfDef = sc.Match("ifdef"); + int i = isIfDef ? 5 : 6; + std::string restOfLine = GetRestOfLine(styler, sc.currentPos + i + 1, false); + bool foundDef = preprocessorDefinitions.find(restOfLine) != preprocessorDefinitions.end(); + preproc.StartSection(isIfDef == foundDef); + } else if (sc.Match("if")) { + std::string restOfLine = GetRestOfLine(styler, sc.currentPos + 2, true); + bool ifGood = EvaluateExpression(restOfLine, preprocessorDefinitions); + preproc.StartSection(ifGood); + } else if (sc.Match("else")) { + if (!preproc.CurrentIfTaken()) { + preproc.InvertCurrentLevel(); + activitySet = preproc.IsInactive() ? activeFlag : 0; + if (!activitySet) + sc.ChangeState(SCE_C_PREPROCESSOR|activitySet); + } else if (!preproc.IsInactive()) { + preproc.InvertCurrentLevel(); + activitySet = preproc.IsInactive() ? activeFlag : 0; + if (!activitySet) + sc.ChangeState(SCE_C_PREPROCESSOR|activitySet); + } + } else if (sc.Match("elif")) { + // Ensure only one chosen out of #if .. #elif .. #elif .. #else .. #endif + if (!preproc.CurrentIfTaken()) { + // Similar to #if + std::string restOfLine = GetRestOfLine(styler, sc.currentPos + 2, true); + bool ifGood = EvaluateExpression(restOfLine, preprocessorDefinitions); + if (ifGood) { + preproc.InvertCurrentLevel(); + activitySet = preproc.IsInactive() ? activeFlag : 0; + if (!activitySet) + sc.ChangeState(SCE_C_PREPROCESSOR|activitySet); + } + } else if (!preproc.IsInactive()) { + preproc.InvertCurrentLevel(); + activitySet = preproc.IsInactive() ? activeFlag : 0; + if (!activitySet) + sc.ChangeState(SCE_C_PREPROCESSOR|activitySet); + } + } else if (sc.Match("endif")) { + preproc.EndSection(); + activitySet = preproc.IsInactive() ? activeFlag : 0; + sc.ChangeState(SCE_C_PREPROCESSOR|activitySet); + } else if (sc.Match("define")) { + if (options.updatePreprocessor && !preproc.IsInactive()) { + std::string restOfLine = GetRestOfLine(styler, sc.currentPos + 6, true); + if (restOfLine.find(")") == std::string::npos) { // Don't handle macros with arguments + std::vector tokens = Tokenize(restOfLine); + std::string key; + std::string value("1"); + if (tokens.size() >= 1) { + key = tokens[0]; + if (tokens.size() >= 2) { + value = tokens[1]; + } + preprocessorDefinitions[key] = value; + ppDefineHistory.push_back(PPDefinition(lineCurrent, key, value)); + definitionsChanged = true; + } + } + } + } else if (sc.Match("undef")) { + if (options.updatePreprocessor && !preproc.IsInactive()) { + std::string restOfLine = GetRestOfLine(styler, sc.currentPos + 5, true); + std::vector tokens = Tokenize(restOfLine); + std::string key; + if (tokens.size() >= 1) { + key = tokens[0]; + preprocessorDefinitions.erase(key); + ppDefineHistory.push_back(PPDefinition(lineCurrent, key, "", true)); + definitionsChanged = true; + } + } + } + } + } + } else if (isoperator(sc.ch)) { + sc.SetState(SCE_C_OPERATOR|activitySet); + } + } + + if (!IsASpace(sc.ch) && !IsSpaceEquiv(MaskActive(sc.state))) { + chPrevNonWhite = sc.ch; + visibleChars++; + } + continuationLine = false; + sc.Forward(); + } + const bool rawStringsChanged = rawStringTerminators.Merge(rawSTNew, lineCurrent); + if (definitionsChanged || rawStringsChanged) + styler.ChangeLexerState(startPos, startPos + length); + sc.Complete(); +} + +// Store both the current line's fold level and the next lines in the +// level store to make it easy to pick up with each increment +// and to make it possible to fiddle the current level for "} else {". + +void SCI_METHOD LexerCPP::Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { + + if (!options.fold) + return; + + LexAccessor styler(pAccess); + + unsigned int endPos = startPos + length; + int visibleChars = 0; + bool inLineComment = false; + int lineCurrent = styler.GetLine(startPos); + int levelCurrent = SC_FOLDLEVELBASE; + if (lineCurrent > 0) + levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; + unsigned int lineStartNext = styler.LineStart(lineCurrent+1); + int levelMinCurrent = levelCurrent; + int levelNext = levelCurrent; + char chNext = styler[startPos]; + int styleNext = MaskActive(styler.StyleAt(startPos)); + int style = MaskActive(initStyle); + const bool userDefinedFoldMarkers = !options.foldExplicitStart.empty() && !options.foldExplicitEnd.empty(); + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int stylePrev = style; + style = styleNext; + styleNext = MaskActive(styler.StyleAt(i + 1)); + bool atEOL = i == (lineStartNext-1); + if ((style == SCE_C_COMMENTLINE) || (style == SCE_C_COMMENTLINEDOC)) + inLineComment = true; + if (options.foldComment && options.foldCommentMultiline && IsStreamCommentStyle(style) && !inLineComment) { + if (!IsStreamCommentStyle(stylePrev)) { + levelNext++; + } else if (!IsStreamCommentStyle(styleNext) && !atEOL) { + // Comments don't end at end of line and the next character may be unstyled. + levelNext--; + } + } + if (options.foldComment && options.foldCommentExplicit && ((style == SCE_C_COMMENTLINE) || options.foldExplicitAnywhere)) { + if (userDefinedFoldMarkers) { + if (styler.Match(i, options.foldExplicitStart.c_str())) { + levelNext++; + } else if (styler.Match(i, options.foldExplicitEnd.c_str())) { + levelNext--; + } + } else { + if ((ch == '/') && (chNext == '/')) { + char chNext2 = styler.SafeGetCharAt(i + 2); + if (chNext2 == '{') { + levelNext++; + } else if (chNext2 == '}') { + levelNext--; + } + } + } + } + if (options.foldPreprocessor && (style == SCE_C_PREPROCESSOR)) { + if (ch == '#') { + unsigned int j = i + 1; + while ((j < endPos) && IsASpaceOrTab(styler.SafeGetCharAt(j))) { + j++; + } + if (styler.Match(j, "region") || styler.Match(j, "if")) { + levelNext++; + } else if (styler.Match(j, "end")) { + levelNext--; + } + } + } + if (options.foldSyntaxBased && (style == SCE_C_OPERATOR)) { + if (ch == '{') { + // Measure the minimum before a '{' to allow + // folding on "} else {" + if (levelMinCurrent > levelNext) { + levelMinCurrent = levelNext; + } + levelNext++; + } else if (ch == '}') { + levelNext--; + } + } + if (!IsASpace(ch)) + visibleChars++; + if (atEOL || (i == endPos-1)) { + int levelUse = levelCurrent; + if (options.foldSyntaxBased && options.foldAtElse) { + levelUse = levelMinCurrent; + } + int lev = levelUse | levelNext << 16; + if (visibleChars == 0 && options.foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if (levelUse < levelNext) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + lineStartNext = styler.LineStart(lineCurrent+1); + levelCurrent = levelNext; + levelMinCurrent = levelCurrent; + if (atEOL && (i == static_cast(styler.Length()-1))) { + // There is an empty line at end of file so give it same level and empty + styler.SetLevel(lineCurrent, (levelCurrent | levelCurrent << 16) | SC_FOLDLEVELWHITEFLAG); + } + visibleChars = 0; + inLineComment = false; + } + } +} + +void LexerCPP::EvaluateTokens(std::vector &tokens) { + + // Evaluate defined() statements to either 0 or 1 + for (size_t i=0; (i+2)) + tokens.erase(tokens.begin() + i + 1, tokens.begin() + i + 4); + val = "1"; + } + tokens[i] = val; + } else { + i++; + } + } + + // Find bracketed subexpressions and recurse on them + std::vector::iterator itBracket = std::find(tokens.begin(), tokens.end(), "("); + std::vector::iterator itEndBracket = std::find(tokens.begin(), tokens.end(), ")"); + while ((itBracket != tokens.end()) && (itEndBracket != tokens.end()) && (itEndBracket > itBracket)) { + std::vector inBracket(itBracket + 1, itEndBracket); + EvaluateTokens(inBracket); + + // The insertion is done before the removal because there were failures with the opposite approach + tokens.insert(itBracket, inBracket.begin(), inBracket.end()); + itBracket = std::find(tokens.begin(), tokens.end(), "("); + itEndBracket = std::find(tokens.begin(), tokens.end(), ")"); + tokens.erase(itBracket, itEndBracket + 1); + + itBracket = std::find(tokens.begin(), tokens.end(), "("); + itEndBracket = std::find(tokens.begin(), tokens.end(), ")"); + } + + // Evaluate logical negations + for (size_t j=0; (j+1)::iterator itInsert = + tokens.erase(tokens.begin() + j, tokens.begin() + j + 2); + tokens.insert(itInsert, isTrue ? "1" : "0"); + } else { + j++; + } + } + + // Evaluate expressions in precedence order + enum precedence { precArithmetic, precRelative, precLogical }; + for (int prec=precArithmetic; prec <= precLogical; prec++) { + // Looking at 3 tokens at a time so end at 2 before end + for (size_t k=0; (k+2)") + result = valA > valB; + else if (tokens[k+1] == ">=") + result = valA >= valB; + else if (tokens[k+1] == "==") + result = valA == valB; + else if (tokens[k+1] == "!=") + result = valA != valB; + else if (tokens[k+1] == "||") + result = valA || valB; + else if (tokens[k+1] == "&&") + result = valA && valB; + char sResult[30]; + sprintf(sResult, "%d", result); + std::vector::iterator itInsert = + tokens.erase(tokens.begin() + k, tokens.begin() + k + 3); + tokens.insert(itInsert, sResult); + } else { + k++; + } + } + } +} + +bool LexerCPP::EvaluateExpression(const std::string &expr, const std::map &preprocessorDefinitions) { + // Break into tokens, replacing with definitions + std::string word; + std::vector tokens; + const char *cp = expr.c_str(); + for (;;) { + if (setWord.Contains(static_cast(*cp))) { + word += *cp; + } else { + std::map::const_iterator it = preprocessorDefinitions.find(word); + if (it != preprocessorDefinitions.end()) { + tokens.push_back(it->second); + } else if (!word.empty() && ((word[0] >= '0' && word[0] <= '9') || (word == "defined"))) { + tokens.push_back(word); + } + word = ""; + if (!*cp) { + break; + } + if ((*cp != ' ') && (*cp != '\t')) { + std::string op(cp, 1); + if (setRelOp.Contains(static_cast(*cp))) { + if (setRelOp.Contains(static_cast(cp[1]))) { + op += cp[1]; + cp++; + } + } else if (setLogicalOp.Contains(static_cast(*cp))) { + if (setLogicalOp.Contains(static_cast(cp[1]))) { + op += cp[1]; + cp++; + } + } + tokens.push_back(op); + } + } + cp++; + } + + EvaluateTokens(tokens); + + // "0" or "" -> false else true + bool isFalse = tokens.empty() || + ((tokens.size() == 1) && ((tokens[0] == "") || tokens[0] == "0")); + return !isFalse; +} + +LexerModule lmCPP(SCLEX_CPP, LexerCPP::LexerFactoryCPP, "cpp", cppWordLists); +LexerModule lmCPPNoCase(SCLEX_CPPNOCASE, LexerCPP::LexerFactoryCPPInsensitive, "cppnocase", cppWordLists); diff --git a/lexers/LexCSS.cpp b/lexers/LexCSS.cpp new file mode 100644 index 0000000..036bb2e --- /dev/null +++ b/lexers/LexCSS.cpp @@ -0,0 +1,567 @@ +// Scintilla source code edit control +/** @file LexCSS.cxx + ** Lexer for Cascading Style Sheets + ** Written by Jakub Vrána + ** Improved by Philippe Lhoste (CSS2) + ** Improved by Ross McKay (SCSS mode; see http://sass-lang.com/ ) + **/ +// Copyright 1998-2002 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +// TODO: handle SCSS nested properties like font: { weight: bold; size: 1em; } +// TODO: handle SCSS interpolation: #{} +// TODO: add features for Less if somebody feels like contributing; http://lesscss.org/ +// TODO: refactor this monster so that the next poor slob can read it! + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + + +static inline bool IsAWordChar(const unsigned int ch) { + /* FIXME: + * The CSS spec allows "ISO 10646 characters U+00A1 and higher" to be treated as word chars. + * Unfortunately, we are only getting string bytes here, and not full unicode characters. We cannot guarantee + * that our byte is between U+0080 - U+00A0 (to return false), so we have to allow all characters U+0080 and higher + */ + return ch >= 0x80 || isalnum(ch) || ch == '-' || ch == '_'; +} + +inline bool IsCssOperator(const int ch) { + if (!((ch < 0x80) && isalnum(ch)) && + (ch == '{' || ch == '}' || ch == ':' || ch == ',' || ch == ';' || + ch == '.' || ch == '#' || ch == '!' || ch == '@' || + /* CSS2 */ + ch == '*' || ch == '>' || ch == '+' || ch == '=' || ch == '~' || ch == '|' || + ch == '[' || ch == ']' || ch == '(' || ch == ')')) { + return true; + } + return false; +} + +// look behind (from start of document to our start position) to determine current nesting level +inline int NestingLevelLookBehind(unsigned int startPos, Accessor &styler) { + int ch; + int nestingLevel = 0; + + for (unsigned int i = 0; i < startPos; i++) { + ch = styler.SafeGetCharAt(i); + if (ch == '{') + nestingLevel++; + else if (ch == '}') + nestingLevel--; + } + + return nestingLevel; +} + +static void ColouriseCssDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], Accessor &styler) { + WordList &css1Props = *keywordlists[0]; + WordList &pseudoClasses = *keywordlists[1]; + WordList &css2Props = *keywordlists[2]; + WordList &css3Props = *keywordlists[3]; + WordList &pseudoElements = *keywordlists[4]; + WordList &exProps = *keywordlists[5]; + WordList &exPseudoClasses = *keywordlists[6]; + WordList &exPseudoElements = *keywordlists[7]; + + StyleContext sc(startPos, length, initStyle, styler); + + int lastState = -1; // before operator + int lastStateC = -1; // before comment + int lastStateS = -1; // before single-quoted/double-quoted string + int lastStateVar = -1; // before variable (SCSS) + int lastStateVal = -1; // before value (SCSS) + int op = ' '; // last operator + int opPrev = ' '; // last operator + bool insideParentheses = false; // true if currently in a CSS url() or similar construct + + // property lexer.css.scss.language + // Set to 1 for Sassy CSS (.scss) + bool isScssDocument = styler.GetPropertyInt("lexer.css.scss.language") != 0; + + // property lexer.css.less.language + // Set to 1 for Less CSS (.less) + bool isLessDocument = styler.GetPropertyInt("lexer.css.less.language") != 0; + + // property lexer.css.hss.language + // Set to 1 for HSS (.hss) + bool isHssDocument = styler.GetPropertyInt("lexer.css.hss.language") != 0; + + // SCSS/LESS/HSS have the concept of variable + bool hasVariables = isScssDocument || isLessDocument || isHssDocument; + char varPrefix = 0; + if (hasVariables) + varPrefix = isLessDocument ? '@' : '$'; + + // SCSS/LESS/HSS support single-line comments + typedef enum _CommentModes { eCommentBlock = 0, eCommentLine = 1} CommentMode; + CommentMode comment_mode = eCommentBlock; + bool hasSingleLineComments = isScssDocument || isLessDocument || isHssDocument; + + // must keep track of nesting level in document types that support it (SCSS/LESS/HSS) + bool hasNesting = false; + int nestingLevel = 0; + if (isScssDocument || isLessDocument || isHssDocument) { + hasNesting = true; + nestingLevel = NestingLevelLookBehind(startPos, styler); + } + + // "the loop" + for (; sc.More(); sc.Forward()) { + if (sc.state == SCE_CSS_COMMENT && ((comment_mode == eCommentBlock && sc.Match('*', '/')) || (comment_mode == eCommentLine && sc.atLineEnd))) { + if (lastStateC == -1) { + // backtrack to get last state: + // comments are like whitespace, so we must return to the previous state + unsigned int i = startPos; + for (; i > 0; i--) { + if ((lastStateC = styler.StyleAt(i-1)) != SCE_CSS_COMMENT) { + if (lastStateC == SCE_CSS_OPERATOR) { + op = styler.SafeGetCharAt(i-1); + opPrev = styler.SafeGetCharAt(i-2); + while (--i) { + lastState = styler.StyleAt(i-1); + if (lastState != SCE_CSS_OPERATOR && lastState != SCE_CSS_COMMENT) + break; + } + if (i == 0) + lastState = SCE_CSS_DEFAULT; + } + break; + } + } + if (i == 0) + lastStateC = SCE_CSS_DEFAULT; + } + if (comment_mode == eCommentBlock) { + sc.Forward(); + sc.ForwardSetState(lastStateC); + } else /* eCommentLine */ { + sc.SetState(lastStateC); + } + } + + if (sc.state == SCE_CSS_COMMENT) + continue; + + if (sc.state == SCE_CSS_DOUBLESTRING || sc.state == SCE_CSS_SINGLESTRING) { + if (sc.ch != (sc.state == SCE_CSS_DOUBLESTRING ? '\"' : '\'')) + continue; + unsigned int i = sc.currentPos; + while (i && styler[i-1] == '\\') + i--; + if ((sc.currentPos - i) % 2 == 1) + continue; + sc.ForwardSetState(lastStateS); + } + + if (sc.state == SCE_CSS_OPERATOR) { + if (op == ' ') { + unsigned int i = startPos; + op = styler.SafeGetCharAt(i-1); + opPrev = styler.SafeGetCharAt(i-2); + while (--i) { + lastState = styler.StyleAt(i-1); + if (lastState != SCE_CSS_OPERATOR && lastState != SCE_CSS_COMMENT) + break; + } + } + switch (op) { + case '@': + if (lastState == SCE_CSS_DEFAULT || hasNesting) + sc.SetState(SCE_CSS_DIRECTIVE); + break; + case '>': + case '+': + if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID || + lastState == SCE_CSS_PSEUDOCLASS || lastState == SCE_CSS_EXTENDED_PSEUDOCLASS || lastState == SCE_CSS_UNKNOWN_PSEUDOCLASS) + sc.SetState(SCE_CSS_DEFAULT); + break; + case '[': + if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_DEFAULT || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID || + lastState == SCE_CSS_PSEUDOCLASS || lastState == SCE_CSS_EXTENDED_PSEUDOCLASS || lastState == SCE_CSS_UNKNOWN_PSEUDOCLASS) + sc.SetState(SCE_CSS_ATTRIBUTE); + break; + case ']': + if (lastState == SCE_CSS_ATTRIBUTE) + sc.SetState(SCE_CSS_TAG); + break; + case '{': + nestingLevel++; + switch (lastState) { + case SCE_CSS_MEDIA: + sc.SetState(SCE_CSS_DEFAULT); + break; + case SCE_CSS_TAG: + case SCE_CSS_DIRECTIVE: + sc.SetState(SCE_CSS_IDENTIFIER); + break; + } + break; + case '}': + if (--nestingLevel < 0) + nestingLevel = 0; + switch (lastState) { + case SCE_CSS_DEFAULT: + case SCE_CSS_VALUE: + case SCE_CSS_IMPORTANT: + case SCE_CSS_IDENTIFIER: + case SCE_CSS_IDENTIFIER2: + case SCE_CSS_IDENTIFIER3: + if (hasNesting) + sc.SetState(nestingLevel > 0 ? SCE_CSS_IDENTIFIER : SCE_CSS_DEFAULT); + else + sc.SetState(SCE_CSS_DEFAULT); + break; + } + break; + case '(': + if (lastState == SCE_CSS_PSEUDOCLASS) + sc.SetState(SCE_CSS_TAG); + else if (lastState == SCE_CSS_EXTENDED_PSEUDOCLASS) + sc.SetState(SCE_CSS_EXTENDED_PSEUDOCLASS); + break; + case ')': + if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_DEFAULT || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID || + lastState == SCE_CSS_PSEUDOCLASS || lastState == SCE_CSS_EXTENDED_PSEUDOCLASS || lastState == SCE_CSS_UNKNOWN_PSEUDOCLASS || + lastState == SCE_CSS_PSEUDOELEMENT || lastState == SCE_CSS_EXTENDED_PSEUDOELEMENT) + sc.SetState(SCE_CSS_TAG); + break; + case ':': + switch (lastState) { + case SCE_CSS_TAG: + case SCE_CSS_DEFAULT: + case SCE_CSS_CLASS: + case SCE_CSS_ID: + case SCE_CSS_PSEUDOCLASS: + case SCE_CSS_EXTENDED_PSEUDOCLASS: + case SCE_CSS_UNKNOWN_PSEUDOCLASS: + case SCE_CSS_PSEUDOELEMENT: + case SCE_CSS_EXTENDED_PSEUDOELEMENT: + sc.SetState(SCE_CSS_PSEUDOCLASS); + break; + case SCE_CSS_IDENTIFIER: + case SCE_CSS_IDENTIFIER2: + case SCE_CSS_IDENTIFIER3: + case SCE_CSS_EXTENDED_IDENTIFIER: + case SCE_CSS_UNKNOWN_IDENTIFIER: + case SCE_CSS_VARIABLE: + sc.SetState(SCE_CSS_VALUE); + lastStateVal = lastState; + break; + } + break; + case '.': + if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_DEFAULT || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID || + lastState == SCE_CSS_PSEUDOCLASS || lastState == SCE_CSS_EXTENDED_PSEUDOCLASS || lastState == SCE_CSS_UNKNOWN_PSEUDOCLASS) + sc.SetState(SCE_CSS_CLASS); + break; + case '#': + if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_DEFAULT || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID || + lastState == SCE_CSS_PSEUDOCLASS || lastState == SCE_CSS_EXTENDED_PSEUDOCLASS || lastState == SCE_CSS_UNKNOWN_PSEUDOCLASS) + sc.SetState(SCE_CSS_ID); + break; + case ',': + case '|': + case '~': + if (lastState == SCE_CSS_TAG) + sc.SetState(SCE_CSS_DEFAULT); + break; + case ';': + switch (lastState) { + case SCE_CSS_DIRECTIVE: + if (hasNesting) { + sc.SetState(nestingLevel > 0 ? SCE_CSS_IDENTIFIER : SCE_CSS_DEFAULT); + } else { + sc.SetState(SCE_CSS_DEFAULT); + } + break; + case SCE_CSS_VALUE: + case SCE_CSS_IMPORTANT: + // data URLs can have semicolons; simplistically check for wrapping parentheses and move along + if (insideParentheses) { + sc.SetState(lastState); + } else { + if (lastStateVal == SCE_CSS_VARIABLE) { + sc.SetState(SCE_CSS_DEFAULT); + } else { + sc.SetState(SCE_CSS_IDENTIFIER); + } + } + break; + case SCE_CSS_VARIABLE: + if (lastStateVar == SCE_CSS_VALUE) { + // data URLs can have semicolons; simplistically check for wrapping parentheses and move along + if (insideParentheses) { + sc.SetState(SCE_CSS_VALUE); + } else { + sc.SetState(SCE_CSS_IDENTIFIER); + } + } else { + sc.SetState(SCE_CSS_DEFAULT); + } + break; + } + break; + case '!': + if (lastState == SCE_CSS_VALUE) + sc.SetState(SCE_CSS_IMPORTANT); + break; + } + } + + if (sc.ch == '*' && sc.state == SCE_CSS_DEFAULT) { + sc.SetState(SCE_CSS_TAG); + continue; + } + + // check for inside parentheses (whether part of an "operator" or not) + if (sc.ch == '(') + insideParentheses = true; + else if (sc.ch == ')') + insideParentheses = false; + + // SCSS special modes + if (hasVariables) { + // variable name + if (sc.ch == varPrefix) { + switch (sc.state) { + case SCE_CSS_DEFAULT: + if (isLessDocument) // give priority to pseudo elements + break; + case SCE_CSS_VALUE: + lastStateVar = sc.state; + sc.SetState(SCE_CSS_VARIABLE); + continue; + } + } + if (sc.state == SCE_CSS_VARIABLE) { + if (IsAWordChar(sc.ch)) { + // still looking at the variable name + continue; + } + if (lastStateVar == SCE_CSS_VALUE) { + // not looking at the variable name any more, and it was part of a value + sc.SetState(SCE_CSS_VALUE); + } + } + + // nested rule parent selector + if (sc.ch == '&') { + switch (sc.state) { + case SCE_CSS_DEFAULT: + case SCE_CSS_IDENTIFIER: + sc.SetState(SCE_CSS_TAG); + continue; + } + } + } + + // nesting rules that apply to SCSS and Less + if (hasNesting) { + // check for nested rule selector + if (sc.state == SCE_CSS_IDENTIFIER && (IsAWordChar(sc.ch) || sc.ch == ':' || sc.ch == '.' || sc.ch == '#')) { + // look ahead to see whether { comes before next ; and } + unsigned int endPos = startPos + length; + int ch; + + for (unsigned int i = sc.currentPos; i < endPos; i++) { + ch = styler.SafeGetCharAt(i); + if (ch == ';' || ch == '}') + break; + if (ch == '{') { + sc.SetState(SCE_CSS_DEFAULT); + continue; + } + } + } + + } + + if (IsAWordChar(sc.ch)) { + if (sc.state == SCE_CSS_DEFAULT) + sc.SetState(SCE_CSS_TAG); + continue; + } + + if (IsAWordChar(sc.chPrev) && ( + sc.state == SCE_CSS_IDENTIFIER || sc.state == SCE_CSS_IDENTIFIER2 || + sc.state == SCE_CSS_IDENTIFIER3 || sc.state == SCE_CSS_EXTENDED_IDENTIFIER || + sc.state == SCE_CSS_UNKNOWN_IDENTIFIER || + sc.state == SCE_CSS_PSEUDOCLASS || sc.state == SCE_CSS_PSEUDOELEMENT || + sc.state == SCE_CSS_EXTENDED_PSEUDOCLASS || sc.state == SCE_CSS_EXTENDED_PSEUDOELEMENT || + sc.state == SCE_CSS_UNKNOWN_PSEUDOCLASS || + sc.state == SCE_CSS_IMPORTANT || + sc.state == SCE_CSS_DIRECTIVE + )) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + char *s2 = s; + while (*s2 && !IsAWordChar(*s2)) + s2++; + switch (sc.state) { + case SCE_CSS_IDENTIFIER: + case SCE_CSS_IDENTIFIER2: + case SCE_CSS_IDENTIFIER3: + case SCE_CSS_EXTENDED_IDENTIFIER: + case SCE_CSS_UNKNOWN_IDENTIFIER: + if (css1Props.InList(s2)) + sc.ChangeState(SCE_CSS_IDENTIFIER); + else if (css2Props.InList(s2)) + sc.ChangeState(SCE_CSS_IDENTIFIER2); + else if (css3Props.InList(s2)) + sc.ChangeState(SCE_CSS_IDENTIFIER3); + else if (exProps.InList(s2)) + sc.ChangeState(SCE_CSS_EXTENDED_IDENTIFIER); + else + sc.ChangeState(SCE_CSS_UNKNOWN_IDENTIFIER); + break; + case SCE_CSS_PSEUDOCLASS: + case SCE_CSS_PSEUDOELEMENT: + case SCE_CSS_EXTENDED_PSEUDOCLASS: + case SCE_CSS_EXTENDED_PSEUDOELEMENT: + case SCE_CSS_UNKNOWN_PSEUDOCLASS: + if (op == ':' && opPrev != ':' && pseudoClasses.InList(s2)) + sc.ChangeState(SCE_CSS_PSEUDOCLASS); + else if (opPrev == ':' && pseudoElements.InList(s2)) + sc.ChangeState(SCE_CSS_PSEUDOELEMENT); + else if ((op == ':' || (op == '(' && lastState == SCE_CSS_EXTENDED_PSEUDOCLASS)) && opPrev != ':' && exPseudoClasses.InList(s2)) + sc.ChangeState(SCE_CSS_EXTENDED_PSEUDOCLASS); + else if (opPrev == ':' && exPseudoElements.InList(s2)) + sc.ChangeState(SCE_CSS_EXTENDED_PSEUDOELEMENT); + else + sc.ChangeState(SCE_CSS_UNKNOWN_PSEUDOCLASS); + break; + case SCE_CSS_IMPORTANT: + if (strcmp(s2, "important") != 0) + sc.ChangeState(SCE_CSS_VALUE); + break; + case SCE_CSS_DIRECTIVE: + if (op == '@' && strcmp(s2, "media") == 0) + sc.ChangeState(SCE_CSS_MEDIA); + break; + } + } + + if (sc.ch != '.' && sc.ch != ':' && sc.ch != '#' && ( + sc.state == SCE_CSS_CLASS || sc.state == SCE_CSS_ID || + (sc.ch != '(' && sc.ch != ')' && ( /* This line of the condition makes it possible to extend pseudo-classes with parentheses */ + sc.state == SCE_CSS_PSEUDOCLASS || sc.state == SCE_CSS_PSEUDOELEMENT || + sc.state == SCE_CSS_EXTENDED_PSEUDOCLASS || sc.state == SCE_CSS_EXTENDED_PSEUDOELEMENT || + sc.state == SCE_CSS_UNKNOWN_PSEUDOCLASS + )) + )) + sc.SetState(SCE_CSS_TAG); + + if (sc.Match('/', '*')) { + lastStateC = sc.state; + comment_mode = eCommentBlock; + sc.SetState(SCE_CSS_COMMENT); + sc.Forward(); + } else if (hasSingleLineComments && sc.Match('/', '/') && !insideParentheses) { + // note that we've had to treat ([...]// as the start of a URL not a comment, e.g. url(http://example.com), url(//example.com) + lastStateC = sc.state; + comment_mode = eCommentLine; + sc.SetState(SCE_CSS_COMMENT); + sc.Forward(); + } else if ((sc.state == SCE_CSS_VALUE || sc.state == SCE_CSS_ATTRIBUTE) + && (sc.ch == '\"' || sc.ch == '\'')) { + lastStateS = sc.state; + sc.SetState((sc.ch == '\"' ? SCE_CSS_DOUBLESTRING : SCE_CSS_SINGLESTRING)); + } else if (IsCssOperator(sc.ch) + && (sc.state != SCE_CSS_ATTRIBUTE || sc.ch == ']') + && (sc.state != SCE_CSS_VALUE || sc.ch == ';' || sc.ch == '}' || sc.ch == '!') + && ((sc.state != SCE_CSS_DIRECTIVE && sc.state != SCE_CSS_MEDIA) || sc.ch == ';' || sc.ch == '{') + ) { + if (sc.state != SCE_CSS_OPERATOR) + lastState = sc.state; + sc.SetState(SCE_CSS_OPERATOR); + op = sc.ch; + opPrev = sc.chPrev; + } + } + + sc.Complete(); +} + +static void FoldCSSDoc(unsigned int startPos, int length, int, WordList *[], Accessor &styler) { + bool foldComment = styler.GetPropertyInt("fold.comment") != 0; + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = styler[startPos]; + bool inComment = (styler.StyleAt(startPos-1) == SCE_CSS_COMMENT); + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int style = styler.StyleAt(i); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if (foldComment) { + if (!inComment && (style == SCE_CSS_COMMENT)) + levelCurrent++; + else if (inComment && (style != SCE_CSS_COMMENT)) + levelCurrent--; + inComment = (style == SCE_CSS_COMMENT); + } + if (style == SCE_CSS_OPERATOR) { + if (ch == '{') { + levelCurrent++; + } else if (ch == '}') { + levelCurrent--; + } + } + if (atEOL) { + int lev = levelPrev; + if (visibleChars == 0 && foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + } + if (!isspacechar(ch)) + visibleChars++; + } + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + +static const char * const cssWordListDesc[] = { + "CSS1 Properties", + "Pseudo-classes", + "CSS2 Properties", + "CSS3 Properties", + "Pseudo-elements", + "Browser-Specific CSS Properties", + "Browser-Specific Pseudo-classes", + "Browser-Specific Pseudo-elements", + 0 +}; + +LexerModule lmCss(SCLEX_CSS, ColouriseCssDoc, "css", FoldCSSDoc, cssWordListDesc); diff --git a/lexers/LexCaml.cpp b/lexers/LexCaml.cpp new file mode 100644 index 0000000..f576e3e --- /dev/null +++ b/lexers/LexCaml.cpp @@ -0,0 +1,456 @@ +// Scintilla source code edit control +/** @file LexCaml.cxx + ** Lexer for Objective Caml. + **/ +// Copyright 2005-2009 by Robert Roessler +// The License.txt file describes the conditions under which this software may be distributed. +/* Release History + 20050204 Initial release. + 20050205 Quick compiler standards/"cleanliness" adjustment. + 20050206 Added cast for IsLeadByte(). + 20050209 Changes to "external" build support. + 20050306 Fix for 1st-char-in-doc "corner" case. + 20050502 Fix for [harmless] one-past-the-end coloring. + 20050515 Refined numeric token recognition logic. + 20051125 Added 2nd "optional" keywords class. + 20051129 Support "magic" (read-only) comments for RCaml. + 20051204 Swtich to using StyleContext infrastructure. + 20090629 Add full Standard ML '97 support. +*/ + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "PropSetSimple.h" +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +// Since the Microsoft __iscsym[f] funcs are not ANSI... +inline int iscaml(int c) {return isalnum(c) || c == '_';} +inline int iscamlf(int c) {return isalpha(c) || c == '_';} + +static const int baseT[24] = { + 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* A - L */ + 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0,16 /* M - X */ +}; + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +#ifdef BUILD_AS_EXTERNAL_LEXER +/* + (actually seems to work!) +*/ +#include +#include "WindowAccessor.h" +#include "ExternalLexer.h" + +#undef EXT_LEXER_DECL +#define EXT_LEXER_DECL __declspec( dllexport ) __stdcall + +#if PLAT_WIN +#include +#endif + +static void ColouriseCamlDoc( + unsigned int startPos, int length, + int initStyle, + WordList *keywordlists[], + Accessor &styler); + +static void FoldCamlDoc( + unsigned int startPos, int length, + int initStyle, + WordList *keywordlists[], + Accessor &styler); + +static void InternalLexOrFold(int lexOrFold, unsigned int startPos, int length, + int initStyle, char *words[], WindowID window, char *props); + +static const char* LexerName = "caml"; + +#ifdef TRACE +void Platform::DebugPrintf(const char *format, ...) { + char buffer[2000]; + va_list pArguments; + va_start(pArguments, format); + vsprintf(buffer,format,pArguments); + va_end(pArguments); + Platform::DebugDisplay(buffer); +} +#else +void Platform::DebugPrintf(const char *, ...) { +} +#endif + +bool Platform::IsDBCSLeadByte(int codePage, char ch) { + return ::IsDBCSLeadByteEx(codePage, ch) != 0; +} + +long Platform::SendScintilla(WindowID w, unsigned int msg, unsigned long wParam, long lParam) { + return ::SendMessage(reinterpret_cast(w), msg, wParam, lParam); +} + +long Platform::SendScintillaPointer(WindowID w, unsigned int msg, unsigned long wParam, void *lParam) { + return ::SendMessage(reinterpret_cast(w), msg, wParam, + reinterpret_cast(lParam)); +} + +void EXT_LEXER_DECL Fold(unsigned int lexer, unsigned int startPos, int length, + int initStyle, char *words[], WindowID window, char *props) +{ + // below useless evaluation(s) to supress "not used" warnings + lexer; + // build expected data structures and do the Fold + InternalLexOrFold(1, startPos, length, initStyle, words, window, props); + +} + +int EXT_LEXER_DECL GetLexerCount() +{ + return 1; // just us [Objective] Caml lexers here! +} + +void EXT_LEXER_DECL GetLexerName(unsigned int Index, char *name, int buflength) +{ + // below useless evaluation(s) to supress "not used" warnings + Index; + // return as much of our lexer name as will fit (what's up with Index?) + if (buflength > 0) { + buflength--; + int n = strlen(LexerName); + if (n > buflength) + n = buflength; + memcpy(name, LexerName, n), name[n] = '\0'; + } +} + +void EXT_LEXER_DECL Lex(unsigned int lexer, unsigned int startPos, int length, + int initStyle, char *words[], WindowID window, char *props) +{ + // below useless evaluation(s) to supress "not used" warnings + lexer; + // build expected data structures and do the Lex + InternalLexOrFold(0, startPos, length, initStyle, words, window, props); +} + +static void InternalLexOrFold(int foldOrLex, unsigned int startPos, int length, + int initStyle, char *words[], WindowID window, char *props) +{ + // create and initialize a WindowAccessor (including contained PropSet) + PropSetSimple ps; + ps.SetMultiple(props); + WindowAccessor wa(window, ps); + // create and initialize WordList(s) + int nWL = 0; + for (; words[nWL]; nWL++) ; // count # of WordList PTRs needed + WordList** wl = new WordList* [nWL + 1];// alloc WordList PTRs + int i = 0; + for (; i < nWL; i++) { + wl[i] = new WordList(); // (works or THROWS bad_alloc EXCEPTION) + wl[i]->Set(words[i]); + } + wl[i] = 0; + // call our "internal" folder/lexer (... then do Flush!) + if (foldOrLex) + FoldCamlDoc(startPos, length, initStyle, wl, wa); + else + ColouriseCamlDoc(startPos, length, initStyle, wl, wa); + wa.Flush(); + // clean up before leaving + for (i = nWL - 1; i >= 0; i--) + delete wl[i]; + delete [] wl; +} + +static +#endif /* BUILD_AS_EXTERNAL_LEXER */ + +void ColouriseCamlDoc( + unsigned int startPos, int length, + int initStyle, + WordList *keywordlists[], + Accessor &styler) +{ + // initialize styler + StyleContext sc(startPos, length, initStyle, styler); + + int chBase = 0, chToken = 0, chLit = 0; + WordList& keywords = *keywordlists[0]; + WordList& keywords2 = *keywordlists[1]; + WordList& keywords3 = *keywordlists[2]; + const bool isSML = keywords.InList("andalso"); + const int useMagic = styler.GetPropertyInt("lexer.caml.magic", 0); + + // set up [initial] state info (terminating states that shouldn't "bleed") + const int state_ = sc.state & 0x0f; + if (state_ <= SCE_CAML_CHAR + || (isSML && state_ == SCE_CAML_STRING)) + sc.state = SCE_CAML_DEFAULT; + int nesting = (state_ >= SCE_CAML_COMMENT)? (state_ - SCE_CAML_COMMENT): 0; + + // foreach char in range... + while (sc.More()) { + // set up [per-char] state info + int state2 = -1; // (ASSUME no state change) + int chColor = sc.currentPos - 1;// (ASSUME standard coloring range) + bool advance = true; // (ASSUME scanner "eats" 1 char) + + // step state machine + switch (sc.state & 0x0f) { + case SCE_CAML_DEFAULT: + chToken = sc.currentPos; // save [possible] token start (JIC) + // it's wide open; what do we have? + if (iscamlf(sc.ch)) + state2 = SCE_CAML_IDENTIFIER; + else if (!isSML && sc.Match('`') && iscamlf(sc.chNext)) + state2 = SCE_CAML_TAGNAME; + else if (!isSML && sc.Match('#') && isdigit(sc.chNext)) + state2 = SCE_CAML_LINENUM; + else if (isdigit(sc.ch)) { + // it's a number, assume base 10 + state2 = SCE_CAML_NUMBER, chBase = 10; + if (sc.Match('0')) { + // there MAY be a base specified... + const char* baseC = "bBoOxX"; + if (isSML) { + if (sc.chNext == 'w') + sc.Forward(); // (consume SML "word" indicator) + baseC = "x"; + } + // ... change to specified base AS REQUIRED + if (strchr(baseC, sc.chNext)) + chBase = baseT[tolower(sc.chNext) - 'a'], sc.Forward(); + } + } else if (!isSML && sc.Match('\'')) // (Caml char literal?) + state2 = SCE_CAML_CHAR, chLit = 0; + else if (isSML && sc.Match('#', '"')) // (SML char literal?) + state2 = SCE_CAML_CHAR, sc.Forward(); + else if (sc.Match('"')) + state2 = SCE_CAML_STRING; + else if (sc.Match('(', '*')) + state2 = SCE_CAML_COMMENT, sc.Forward(), sc.ch = ' '; // (*)... + else if (strchr("!?~" /* Caml "prefix-symbol" */ + "=<>@^|&+-*/$%" /* Caml "infix-symbol" */ + "()[]{};,:.#", sc.ch) // Caml "bracket" or ;,:.# + // SML "extra" ident chars + || (isSML && (sc.Match('\\') || sc.Match('`')))) + state2 = SCE_CAML_OPERATOR; + break; + + case SCE_CAML_IDENTIFIER: + // [try to] interpret as [additional] identifier char + if (!(iscaml(sc.ch) || sc.Match('\''))) { + const int n = sc.currentPos - chToken; + if (n < 24) { + // length is believable as keyword, [re-]construct token + char t[24]; + for (int i = -n; i < 0; i++) + t[n + i] = static_cast(sc.GetRelative(i)); + t[n] = '\0'; + // special-case "_" token as KEYWORD + if ((n == 1 && sc.chPrev == '_') || keywords.InList(t)) + sc.ChangeState(SCE_CAML_KEYWORD); + else if (keywords2.InList(t)) + sc.ChangeState(SCE_CAML_KEYWORD2); + else if (keywords3.InList(t)) + sc.ChangeState(SCE_CAML_KEYWORD3); + } + state2 = SCE_CAML_DEFAULT, advance = false; + } + break; + + case SCE_CAML_TAGNAME: + // [try to] interpret as [additional] tagname char + if (!(iscaml(sc.ch) || sc.Match('\''))) + state2 = SCE_CAML_DEFAULT, advance = false; + break; + + /*case SCE_CAML_KEYWORD: + case SCE_CAML_KEYWORD2: + case SCE_CAML_KEYWORD3: + // [try to] interpret as [additional] keyword char + if (!iscaml(ch)) + state2 = SCE_CAML_DEFAULT, advance = false; + break;*/ + + case SCE_CAML_LINENUM: + // [try to] interpret as [additional] linenum directive char + if (!isdigit(sc.ch)) + state2 = SCE_CAML_DEFAULT, advance = false; + break; + + case SCE_CAML_OPERATOR: { + // [try to] interpret as [additional] operator char + const char* o = 0; + if (iscaml(sc.ch) || isspace(sc.ch) // ident or whitespace + || (o = strchr(")]};,\'\"#", sc.ch),o) // "termination" chars + || (!isSML && sc.Match('`')) // Caml extra term char + || (!strchr("!$%&*+-./:<=>?@^|~", sc.ch)// "operator" chars + // SML extra ident chars + && !(isSML && (sc.Match('\\') || sc.Match('`'))))) { + // check for INCLUSIVE termination + if (o && strchr(")]};,", sc.ch)) { + if ((sc.Match(')') && sc.chPrev == '(') + || (sc.Match(']') && sc.chPrev == '[')) + // special-case "()" and "[]" tokens as KEYWORDS + sc.ChangeState(SCE_CAML_KEYWORD); + chColor++; + } else + advance = false; + state2 = SCE_CAML_DEFAULT; + } + break; + } + + case SCE_CAML_NUMBER: + // [try to] interpret as [additional] numeric literal char + if ((!isSML && sc.Match('_')) || IsADigit(sc.ch, chBase)) + break; + // how about an integer suffix? + if (!isSML && (sc.Match('l') || sc.Match('L') || sc.Match('n')) + && (sc.chPrev == '_' || IsADigit(sc.chPrev, chBase))) + break; + // or a floating-point literal? + if (chBase == 10) { + // with a decimal point? + if (sc.Match('.') + && ((!isSML && sc.chPrev == '_') + || IsADigit(sc.chPrev, chBase))) + break; + // with an exponent? (I) + if ((sc.Match('e') || sc.Match('E')) + && ((!isSML && (sc.chPrev == '.' || sc.chPrev == '_')) + || IsADigit(sc.chPrev, chBase))) + break; + // with an exponent? (II) + if (((!isSML && (sc.Match('+') || sc.Match('-'))) + || (isSML && sc.Match('~'))) + && (sc.chPrev == 'e' || sc.chPrev == 'E')) + break; + } + // it looks like we have run out of number + state2 = SCE_CAML_DEFAULT, advance = false; + break; + + case SCE_CAML_CHAR: + if (!isSML) { + // [try to] interpret as [additional] char literal char + if (sc.Match('\\')) { + chLit = 1; // (definitely IS a char literal) + if (sc.chPrev == '\\') + sc.ch = ' '; // (...\\') + // should we be terminating - one way or another? + } else if ((sc.Match('\'') && sc.chPrev != '\\') + || sc.atLineEnd) { + state2 = SCE_CAML_DEFAULT; + if (sc.Match('\'')) + chColor++; + else + sc.ChangeState(SCE_CAML_IDENTIFIER); + // ... maybe a char literal, maybe not + } else if (chLit < 1 && sc.currentPos - chToken >= 2) + sc.ChangeState(SCE_CAML_IDENTIFIER), advance = false; + break; + }/* else + // fall through for SML char literal (handle like string) */ + + case SCE_CAML_STRING: + // [try to] interpret as [additional] [SML char/] string literal char + if (isSML && sc.Match('\\') && sc.chPrev != '\\' && isspace(sc.chNext)) + state2 = SCE_CAML_WHITE; + else if (sc.Match('\\') && sc.chPrev == '\\') + sc.ch = ' '; // (...\\") + // should we be terminating - one way or another? + else if ((sc.Match('"') && sc.chPrev != '\\') + || (isSML && sc.atLineEnd)) { + state2 = SCE_CAML_DEFAULT; + if (sc.Match('"')) + chColor++; + } + break; + + case SCE_CAML_WHITE: + // [try to] interpret as [additional] SML embedded whitespace char + if (sc.Match('\\')) { + // style this puppy NOW... + state2 = SCE_CAML_STRING, sc.ch = ' ' /* (...\") */, chColor++, + styler.ColourTo(chColor, SCE_CAML_WHITE), styler.Flush(); + // ... then backtrack to determine original SML literal type + int p = chColor - 2; + for (; p >= 0 && styler.StyleAt(p) == SCE_CAML_WHITE; p--) ; + if (p >= 0) + state2 = static_cast(styler.StyleAt(p)); + // take care of state change NOW + sc.ChangeState(state2), state2 = -1; + } + break; + + case SCE_CAML_COMMENT: + case SCE_CAML_COMMENT1: + case SCE_CAML_COMMENT2: + case SCE_CAML_COMMENT3: + // we're IN a comment - does this start a NESTED comment? + if (sc.Match('(', '*')) + state2 = sc.state + 1, chToken = sc.currentPos, + sc.Forward(), sc.ch = ' ' /* (*)... */, nesting++; + // [try to] interpret as [additional] comment char + else if (sc.Match(')') && sc.chPrev == '*') { + if (nesting) + state2 = (sc.state & 0x0f) - 1, chToken = 0, nesting--; + else + state2 = SCE_CAML_DEFAULT; + chColor++; + // enable "magic" (read-only) comment AS REQUIRED + } else if (useMagic && sc.currentPos - chToken == 4 + && sc.Match('c') && sc.chPrev == 'r' && sc.GetRelative(-2) == '@') + sc.state |= 0x10; // (switch to read-only comment style) + break; + } + + // handle state change and char coloring AS REQUIRED + if (state2 >= 0) + styler.ColourTo(chColor, sc.state), sc.ChangeState(state2); + // move to next char UNLESS re-scanning current char + if (advance) + sc.Forward(); + } + + // do any required terminal char coloring (JIC) + sc.Complete(); +} + +#ifdef BUILD_AS_EXTERNAL_LEXER +static +#endif /* BUILD_AS_EXTERNAL_LEXER */ +void FoldCamlDoc( + unsigned int, int, + int, + WordList *[], + Accessor &) +{ +} + +static const char * const camlWordListDesc[] = { + "Keywords", // primary Objective Caml keywords + "Keywords2", // "optional" keywords (typically from Pervasives) + "Keywords3", // "optional" keywords (typically typenames) + 0 +}; + +#ifndef BUILD_AS_EXTERNAL_LEXER +LexerModule lmCaml(SCLEX_CAML, ColouriseCamlDoc, "caml", FoldCamlDoc, camlWordListDesc); +#endif /* BUILD_AS_EXTERNAL_LEXER */ diff --git a/lexers/LexCmake.cpp b/lexers/LexCmake.cpp new file mode 100644 index 0000000..70e9dee --- /dev/null +++ b/lexers/LexCmake.cpp @@ -0,0 +1,461 @@ +// Scintilla source code edit control +/** @file LexCmake.cxx + ** Lexer for Cmake + **/ +// Copyright 2007 by Cristian Adam +// based on the NSIS lexer +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static bool isCmakeNumber(char ch) +{ + return(ch >= '0' && ch <= '9'); +} + +static bool isCmakeChar(char ch) +{ + return(ch == '.' ) || (ch == '_' ) || isCmakeNumber(ch) || (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z'); +} + +static bool isCmakeLetter(char ch) +{ + return(ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z'); +} + +static bool CmakeNextLineHasElse(unsigned int start, unsigned int end, Accessor &styler) +{ + int nNextLine = -1; + for ( unsigned int i = start; i < end; i++ ) { + char cNext = styler.SafeGetCharAt( i ); + if ( cNext == '\n' ) { + nNextLine = i+1; + break; + } + } + + if ( nNextLine == -1 ) // We never foudn the next line... + return false; + + for ( unsigned int firstChar = nNextLine; firstChar < end; firstChar++ ) { + char cNext = styler.SafeGetCharAt( firstChar ); + if ( cNext == ' ' ) + continue; + if ( cNext == '\t' ) + continue; + if ( styler.Match(firstChar, "ELSE") || styler.Match(firstChar, "else")) + return true; + break; + } + + return false; +} + +static int calculateFoldCmake(unsigned int start, unsigned int end, int foldlevel, Accessor &styler, bool bElse) +{ + // If the word is too long, it is not what we are looking for + if ( end - start > 20 ) + return foldlevel; + + int newFoldlevel = foldlevel; + + char s[20]; // The key word we are looking for has atmost 13 characters + for (unsigned int i = 0; i < end - start + 1 && i < 19; i++) { + s[i] = static_cast( styler[ start + i ] ); + s[i + 1] = '\0'; + } + + if ( CompareCaseInsensitive(s, "IF") == 0 || CompareCaseInsensitive(s, "WHILE") == 0 + || CompareCaseInsensitive(s, "MACRO") == 0 || CompareCaseInsensitive(s, "FOREACH") == 0 + || CompareCaseInsensitive(s, "ELSEIF") == 0 ) + newFoldlevel++; + else if ( CompareCaseInsensitive(s, "ENDIF") == 0 || CompareCaseInsensitive(s, "ENDWHILE") == 0 + || CompareCaseInsensitive(s, "ENDMACRO") == 0 || CompareCaseInsensitive(s, "ENDFOREACH") == 0) + newFoldlevel--; + else if ( bElse && CompareCaseInsensitive(s, "ELSEIF") == 0 ) + newFoldlevel++; + else if ( bElse && CompareCaseInsensitive(s, "ELSE") == 0 ) + newFoldlevel++; + + return newFoldlevel; +} + +static int classifyWordCmake(unsigned int start, unsigned int end, WordList *keywordLists[], Accessor &styler ) +{ + char word[100] = {0}; + char lowercaseWord[100] = {0}; + + WordList &Commands = *keywordLists[0]; + WordList &Parameters = *keywordLists[1]; + WordList &UserDefined = *keywordLists[2]; + + for (unsigned int i = 0; i < end - start + 1 && i < 99; i++) { + word[i] = static_cast( styler[ start + i ] ); + lowercaseWord[i] = static_cast(tolower(word[i])); + } + + // Check for special words... + if ( CompareCaseInsensitive(word, "MACRO") == 0 || CompareCaseInsensitive(word, "ENDMACRO") == 0 ) + return SCE_CMAKE_MACRODEF; + + if ( CompareCaseInsensitive(word, "IF") == 0 || CompareCaseInsensitive(word, "ENDIF") == 0 ) + return SCE_CMAKE_IFDEFINEDEF; + + if ( CompareCaseInsensitive(word, "ELSEIF") == 0 || CompareCaseInsensitive(word, "ELSE") == 0 ) + return SCE_CMAKE_IFDEFINEDEF; + + if ( CompareCaseInsensitive(word, "WHILE") == 0 || CompareCaseInsensitive(word, "ENDWHILE") == 0) + return SCE_CMAKE_WHILEDEF; + + if ( CompareCaseInsensitive(word, "FOREACH") == 0 || CompareCaseInsensitive(word, "ENDFOREACH") == 0) + return SCE_CMAKE_FOREACHDEF; + + if ( Commands.InList(lowercaseWord) ) + return SCE_CMAKE_COMMANDS; + + if ( Parameters.InList(word) ) + return SCE_CMAKE_PARAMETERS; + + + if ( UserDefined.InList(word) ) + return SCE_CMAKE_USERDEFINED; + + if ( strlen(word) > 3 ) { + if ( word[1] == '{' && word[strlen(word)-1] == '}' ) + return SCE_CMAKE_VARIABLE; + } + + // To check for numbers + if ( isCmakeNumber( word[0] ) ) { + bool bHasSimpleCmakeNumber = true; + for (unsigned int j = 1; j < end - start + 1 && j < 99; j++) { + if ( !isCmakeNumber( word[j] ) ) { + bHasSimpleCmakeNumber = false; + break; + } + } + + if ( bHasSimpleCmakeNumber ) + return SCE_CMAKE_NUMBER; + } + + return SCE_CMAKE_DEFAULT; +} + +static void ColouriseCmakeDoc(unsigned int startPos, int length, int, WordList *keywordLists[], Accessor &styler) +{ + int state = SCE_CMAKE_DEFAULT; + if ( startPos > 0 ) + state = styler.StyleAt(startPos-1); // Use the style from the previous line, usually default, but could be commentbox + + styler.StartAt( startPos ); + styler.GetLine( startPos ); + + unsigned int nLengthDoc = startPos + length; + styler.StartSegment( startPos ); + + char cCurrChar; + bool bVarInString = false; + bool bClassicVarInString = false; + + unsigned int i; + for ( i = startPos; i < nLengthDoc; i++ ) { + cCurrChar = styler.SafeGetCharAt( i ); + char cNextChar = styler.SafeGetCharAt(i+1); + + switch (state) { + case SCE_CMAKE_DEFAULT: + if ( cCurrChar == '#' ) { // we have a comment line + styler.ColourTo(i-1, state ); + state = SCE_CMAKE_COMMENT; + break; + } + if ( cCurrChar == '"' ) { + styler.ColourTo(i-1, state ); + state = SCE_CMAKE_STRINGDQ; + bVarInString = false; + bClassicVarInString = false; + break; + } + if ( cCurrChar == '\'' ) { + styler.ColourTo(i-1, state ); + state = SCE_CMAKE_STRINGRQ; + bVarInString = false; + bClassicVarInString = false; + break; + } + if ( cCurrChar == '`' ) { + styler.ColourTo(i-1, state ); + state = SCE_CMAKE_STRINGLQ; + bVarInString = false; + bClassicVarInString = false; + break; + } + + // CMake Variable + if ( cCurrChar == '$' || isCmakeChar(cCurrChar)) { + styler.ColourTo(i-1,state); + state = SCE_CMAKE_VARIABLE; + + // If it is a number, we must check and set style here first... + if ( isCmakeNumber(cCurrChar) && (cNextChar == '\t' || cNextChar == ' ' || cNextChar == '\r' || cNextChar == '\n' ) ) + styler.ColourTo( i, SCE_CMAKE_NUMBER); + + break; + } + + break; + case SCE_CMAKE_COMMENT: + if ( cNextChar == '\n' || cNextChar == '\r' ) { + // Special case: + if ( cCurrChar == '\\' ) { + styler.ColourTo(i-2,state); + styler.ColourTo(i,SCE_CMAKE_DEFAULT); + } + else { + styler.ColourTo(i,state); + state = SCE_CMAKE_DEFAULT; + } + } + break; + case SCE_CMAKE_STRINGDQ: + case SCE_CMAKE_STRINGLQ: + case SCE_CMAKE_STRINGRQ: + + if ( styler.SafeGetCharAt(i-1) == '\\' && styler.SafeGetCharAt(i-2) == '$' ) + break; // Ignore the next character, even if it is a quote of some sort + + if ( cCurrChar == '"' && state == SCE_CMAKE_STRINGDQ ) { + styler.ColourTo(i,state); + state = SCE_CMAKE_DEFAULT; + break; + } + + if ( cCurrChar == '`' && state == SCE_CMAKE_STRINGLQ ) { + styler.ColourTo(i,state); + state = SCE_CMAKE_DEFAULT; + break; + } + + if ( cCurrChar == '\'' && state == SCE_CMAKE_STRINGRQ ) { + styler.ColourTo(i,state); + state = SCE_CMAKE_DEFAULT; + break; + } + + if ( cNextChar == '\r' || cNextChar == '\n' ) { + int nCurLine = styler.GetLine(i+1); + int nBack = i; + // We need to check if the previous line has a \ in it... + bool bNextLine = false; + + while ( nBack > 0 ) { + if ( styler.GetLine(nBack) != nCurLine ) + break; + + char cTemp = styler.SafeGetCharAt(nBack, 'a'); // Letter 'a' is safe here + + if ( cTemp == '\\' ) { + bNextLine = true; + break; + } + if ( cTemp != '\r' && cTemp != '\n' && cTemp != '\t' && cTemp != ' ' ) + break; + + nBack--; + } + + if ( bNextLine ) { + styler.ColourTo(i+1,state); + } + if ( bNextLine == false ) { + styler.ColourTo(i,state); + state = SCE_CMAKE_DEFAULT; + } + } + break; + + case SCE_CMAKE_VARIABLE: + + // CMake Variable: + if ( cCurrChar == '$' ) + state = SCE_CMAKE_DEFAULT; + else if ( cCurrChar == '\\' && (cNextChar == 'n' || cNextChar == 'r' || cNextChar == 't' ) ) + state = SCE_CMAKE_DEFAULT; + else if ( (isCmakeChar(cCurrChar) && !isCmakeChar( cNextChar) && cNextChar != '}') || cCurrChar == '}' ) { + state = classifyWordCmake( styler.GetStartSegment(), i, keywordLists, styler ); + styler.ColourTo( i, state); + state = SCE_CMAKE_DEFAULT; + } + else if ( !isCmakeChar( cCurrChar ) && cCurrChar != '{' && cCurrChar != '}' ) { + if ( classifyWordCmake( styler.GetStartSegment(), i-1, keywordLists, styler) == SCE_CMAKE_NUMBER ) + styler.ColourTo( i-1, SCE_CMAKE_NUMBER ); + + state = SCE_CMAKE_DEFAULT; + + if ( cCurrChar == '"' ) { + state = SCE_CMAKE_STRINGDQ; + bVarInString = false; + bClassicVarInString = false; + } + else if ( cCurrChar == '`' ) { + state = SCE_CMAKE_STRINGLQ; + bVarInString = false; + bClassicVarInString = false; + } + else if ( cCurrChar == '\'' ) { + state = SCE_CMAKE_STRINGRQ; + bVarInString = false; + bClassicVarInString = false; + } + else if ( cCurrChar == '#' ) { + state = SCE_CMAKE_COMMENT; + } + } + break; + } + + if ( state == SCE_CMAKE_COMMENT) { + styler.ColourTo(i,state); + } + else if ( state == SCE_CMAKE_STRINGDQ || state == SCE_CMAKE_STRINGLQ || state == SCE_CMAKE_STRINGRQ ) { + bool bIngoreNextDollarSign = false; + + if ( bVarInString && cCurrChar == '$' ) { + bVarInString = false; + bIngoreNextDollarSign = true; + } + else if ( bVarInString && cCurrChar == '\\' && (cNextChar == 'n' || cNextChar == 'r' || cNextChar == 't' || cNextChar == '"' || cNextChar == '`' || cNextChar == '\'' ) ) { + styler.ColourTo( i+1, SCE_CMAKE_STRINGVAR); + bVarInString = false; + bIngoreNextDollarSign = false; + } + + else if ( bVarInString && !isCmakeChar(cNextChar) ) { + int nWordState = classifyWordCmake( styler.GetStartSegment(), i, keywordLists, styler); + if ( nWordState == SCE_CMAKE_VARIABLE ) + styler.ColourTo( i, SCE_CMAKE_STRINGVAR); + bVarInString = false; + } + // Covers "${TEST}..." + else if ( bClassicVarInString && cNextChar == '}' ) { + styler.ColourTo( i+1, SCE_CMAKE_STRINGVAR); + bClassicVarInString = false; + } + + // Start of var in string + if ( !bIngoreNextDollarSign && cCurrChar == '$' && cNextChar == '{' ) { + styler.ColourTo( i-1, state); + bClassicVarInString = true; + bVarInString = false; + } + else if ( !bIngoreNextDollarSign && cCurrChar == '$' ) { + styler.ColourTo( i-1, state); + bVarInString = true; + bClassicVarInString = false; + } + } + } + + // Colourise remaining document + styler.ColourTo(nLengthDoc-1,state); +} + +static void FoldCmakeDoc(unsigned int startPos, int length, int, WordList *[], Accessor &styler) +{ + // No folding enabled, no reason to continue... + if ( styler.GetPropertyInt("fold") == 0 ) + return; + + bool foldAtElse = styler.GetPropertyInt("fold.at.else", 0) == 1; + + int lineCurrent = styler.GetLine(startPos); + unsigned int safeStartPos = styler.LineStart( lineCurrent ); + + bool bArg1 = true; + int nWordStart = -1; + + int levelCurrent = SC_FOLDLEVELBASE; + if (lineCurrent > 0) + levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; + int levelNext = levelCurrent; + + for (unsigned int i = safeStartPos; i < startPos + length; i++) { + char chCurr = styler.SafeGetCharAt(i); + + if ( bArg1 ) { + if ( nWordStart == -1 && (isCmakeLetter(chCurr)) ) { + nWordStart = i; + } + else if ( isCmakeLetter(chCurr) == false && nWordStart > -1 ) { + int newLevel = calculateFoldCmake( nWordStart, i-1, levelNext, styler, foldAtElse); + + if ( newLevel == levelNext ) { + if ( foldAtElse ) { + if ( CmakeNextLineHasElse(i, startPos + length, styler) ) + levelNext--; + } + } + else + levelNext = newLevel; + bArg1 = false; + } + } + + if ( chCurr == '\n' ) { + if ( bArg1 && foldAtElse) { + if ( CmakeNextLineHasElse(i, startPos + length, styler) ) + levelNext--; + } + + // If we are on a new line... + int levelUse = levelCurrent; + int lev = levelUse | levelNext << 16; + if (levelUse < levelNext ) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) + styler.SetLevel(lineCurrent, lev); + + lineCurrent++; + levelCurrent = levelNext; + bArg1 = true; // New line, lets look at first argument again + nWordStart = -1; + } + } + + int levelUse = levelCurrent; + int lev = levelUse | levelNext << 16; + if (levelUse < levelNext) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) + styler.SetLevel(lineCurrent, lev); +} + +static const char * const cmakeWordLists[] = { + "Commands", + "Parameters", + "UserDefined", + 0, + 0,}; + +LexerModule lmCmake(SCLEX_CMAKE, ColouriseCmakeDoc, "cmake", FoldCmakeDoc, cmakeWordLists); diff --git a/lexers/LexCoffeeScript.cpp b/lexers/LexCoffeeScript.cpp new file mode 100644 index 0000000..c0faea3 --- /dev/null +++ b/lexers/LexCoffeeScript.cpp @@ -0,0 +1,563 @@ +// Scintilla source code edit control +/** @file LexCoffeeScript.cxx + ** Lexer for CoffeeScript. + **/ +// Copyright 1998-2011 by Neil Hodgson +// Based on the Scintilla C++ Lexer +// Written by Eric Promislow in 2011 for the Komodo IDE +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "Platform.h" +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static bool IsSpaceEquiv(int state) { + return (state <= SCE_COFFEESCRIPT_COMMENTDOC + // including SCE_COFFEESCRIPT_DEFAULT, SCE_COFFEESCRIPT_COMMENT, SCE_COFFEESCRIPT_COMMENTLINE + || state == SCE_COFFEESCRIPT_COMMENTLINEDOC + || state == SCE_COFFEESCRIPT_COMMENTDOCKEYWORD + || state == SCE_COFFEESCRIPT_COMMENTDOCKEYWORDERROR + || state == SCE_COFFEESCRIPT_COMMENTBLOCK + || state == SCE_COFFEESCRIPT_VERBOSE_REGEX + || state == SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT + || state == SCE_COFFEESCRIPT_WORD + || state == SCE_COFFEESCRIPT_REGEX); +} + +// Preconditions: sc.currentPos points to a character after '+' or '-'. +// The test for pos reaching 0 should be redundant, +// and is in only for safety measures. +// Limitation: this code will give the incorrect answer for code like +// a = b+++/ptn/... +// Putting a space between the '++' post-inc operator and the '+' binary op +// fixes this, and is highly recommended for readability anyway. +static bool FollowsPostfixOperator(StyleContext &sc, Accessor &styler) { + int pos = (int) sc.currentPos; + while (--pos > 0) { + char ch = styler[pos]; + if (ch == '+' || ch == '-') { + return styler[pos - 1] == ch; + } + } + return false; +} + +static bool followsReturnKeyword(StyleContext &sc, Accessor &styler) { + // Don't look at styles, so no need to flush. + int pos = (int) sc.currentPos; + int currentLine = styler.GetLine(pos); + int lineStartPos = styler.LineStart(currentLine); + char ch; + while (--pos > lineStartPos) { + ch = styler.SafeGetCharAt(pos); + if (ch != ' ' && ch != '\t') { + break; + } + } + const char *retBack = "nruter"; + const char *s = retBack; + while (*s + && pos >= lineStartPos + && styler.SafeGetCharAt(pos) == *s) { + s++; + pos--; + } + return !*s; +} + +static void ColouriseCoffeeScriptDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + WordList &keywords3 = *keywordlists[2]; + WordList &keywords4 = *keywordlists[3]; + + // property styling.within.preprocessor + // For C++ code, determines whether all preprocessor code is styled in the preprocessor style (0, the default) + // or only from the initial # to the end of the command word(1). + bool stylingWithinPreprocessor = styler.GetPropertyInt("styling.within.preprocessor") != 0; + + CharacterSet setOKBeforeRE(CharacterSet::setNone, "([{=,:;!%^&*|?~+-"); + CharacterSet setCouldBePostOp(CharacterSet::setNone, "+-"); + + CharacterSet setDoxygen(CharacterSet::setAlpha, "$@\\&<>#{}[]"); + + CharacterSet setWordStart(CharacterSet::setAlpha, "_", 0x80, true); + CharacterSet setWord(CharacterSet::setAlphaNum, "._", 0x80, true); + + // property lexer.cpp.allow.dollars + // Set to 0 to disallow the '$' character in identifiers with the cpp lexer. + if (styler.GetPropertyInt("lexer.cpp.allow.dollars", 1) != 0) { + setWordStart.Add('$'); + setWord.Add('$'); + } + + int chPrevNonWhite = ' '; + int visibleChars = 0; + bool lastWordWasUUID = false; + int styleBeforeDCKeyword = SCE_COFFEESCRIPT_DEFAULT; + bool continuationLine = false; + bool isIncludePreprocessor = false; + + if (initStyle == SCE_COFFEESCRIPT_PREPROCESSOR) { + // Set continuationLine if last character of previous line is '\' + int lineCurrent = styler.GetLine(startPos); + if (lineCurrent > 0) { + int chBack = styler.SafeGetCharAt(startPos-1, 0); + int chBack2 = styler.SafeGetCharAt(startPos-2, 0); + int lineEndChar = '!'; + if (chBack2 == '\r' && chBack == '\n') { + lineEndChar = styler.SafeGetCharAt(startPos-3, 0); + } else if (chBack == '\n' || chBack == '\r') { + lineEndChar = chBack2; + } + continuationLine = lineEndChar == '\\'; + } + } + + // look back to set chPrevNonWhite properly for better regex colouring + int endPos = startPos + length; + if (startPos > 0 && IsSpaceEquiv(initStyle)) { + unsigned int back = startPos; + styler.Flush(); + while (back > 0 && IsSpaceEquiv(styler.StyleAt(--back))) + ; + if (styler.StyleAt(back) == SCE_COFFEESCRIPT_OPERATOR) { + chPrevNonWhite = styler.SafeGetCharAt(back); + } + if (startPos != back) { + initStyle = styler.StyleAt(back); + if (IsSpaceEquiv(initStyle)) { + initStyle = SCE_COFFEESCRIPT_DEFAULT; + } + } + startPos = back; + } + + StyleContext sc(startPos, endPos - startPos, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + + if (sc.atLineStart) { + // Reset states to begining of colourise so no surprises + // if different sets of lines lexed. + visibleChars = 0; + lastWordWasUUID = false; + isIncludePreprocessor = false; + } + + // Handle line continuation generically. + if (sc.ch == '\\') { + if (sc.chNext == '\n' || sc.chNext == '\r') { + sc.Forward(); + if (sc.ch == '\r' && sc.chNext == '\n') { + sc.Forward(); + } + continuationLine = true; + continue; + } + } + + // Determine if the current state should terminate. + switch (sc.state) { + case SCE_COFFEESCRIPT_OPERATOR: + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + break; + case SCE_COFFEESCRIPT_NUMBER: + // We accept almost anything because of hex. and number suffixes + if (!setWord.Contains(sc.ch)) { + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + } + break; + case SCE_COFFEESCRIPT_IDENTIFIER: + if (!setWord.Contains(sc.ch) || (sc.ch == '.') || (sc.ch == '$')) { + char s[1000]; + sc.GetCurrent(s, sizeof(s)); + if (keywords.InList(s)) { + lastWordWasUUID = strcmp(s, "uuid") == 0; + sc.ChangeState(SCE_COFFEESCRIPT_WORD); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_COFFEESCRIPT_WORD2); + } else if (keywords4.InList(s)) { + sc.ChangeState(SCE_COFFEESCRIPT_GLOBALCLASS); + } + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + } + break; + case SCE_COFFEESCRIPT_PREPROCESSOR: + if (sc.atLineStart && !continuationLine) { + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + } else if (stylingWithinPreprocessor) { + if (IsASpace(sc.ch)) { + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + } + } else { + if (sc.Match('/', '*') || sc.Match('/', '/')) { + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + } + } + break; + case SCE_COFFEESCRIPT_COMMENT: + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); + } + break; + case SCE_COFFEESCRIPT_COMMENTDOC: + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); + } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support + // Verify that we have the conditions to mark a comment-doc-keyword + if ((IsASpace(sc.chPrev) || sc.chPrev == '*') && (!IsASpace(sc.chNext))) { + styleBeforeDCKeyword = SCE_COFFEESCRIPT_COMMENTDOC; + sc.SetState(SCE_COFFEESCRIPT_COMMENTDOCKEYWORD); + } + } + break; + case SCE_COFFEESCRIPT_COMMENTLINE: + if (sc.atLineStart) { + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + } + break; + case SCE_COFFEESCRIPT_COMMENTLINEDOC: + if (sc.atLineStart) { + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support + // Verify that we have the conditions to mark a comment-doc-keyword + if ((IsASpace(sc.chPrev) || sc.chPrev == '/' || sc.chPrev == '!') && (!IsASpace(sc.chNext))) { + styleBeforeDCKeyword = SCE_COFFEESCRIPT_COMMENTLINEDOC; + sc.SetState(SCE_COFFEESCRIPT_COMMENTDOCKEYWORD); + } + } + break; + case SCE_COFFEESCRIPT_COMMENTDOCKEYWORD: + if ((styleBeforeDCKeyword == SCE_COFFEESCRIPT_COMMENTDOC) && sc.Match('*', '/')) { + sc.ChangeState(SCE_COFFEESCRIPT_COMMENTDOCKEYWORDERROR); + sc.Forward(); + sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); + } else if (!setDoxygen.Contains(sc.ch)) { + char s[100]; + sc.GetCurrent(s, sizeof(s)); + if (!IsASpace(sc.ch) || !keywords3.InList(s + 1)) { + sc.ChangeState(SCE_COFFEESCRIPT_COMMENTDOCKEYWORDERROR); + } + sc.SetState(styleBeforeDCKeyword); + } + break; + case SCE_COFFEESCRIPT_STRING: + if (isIncludePreprocessor) { + if (sc.ch == '>') { + sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); + isIncludePreprocessor = false; + } + } else if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\"') { + sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); + } + break; + case SCE_COFFEESCRIPT_CHARACTER: + if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\'') { + sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); + } + break; + case SCE_COFFEESCRIPT_REGEX: + if (sc.atLineStart) { + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + } else if (sc.ch == '/') { + sc.Forward(); + while ((sc.ch < 0x80) && islower(sc.ch)) + sc.Forward(); // gobble regex flags + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + } else if (sc.ch == '\\') { + // Gobble up the quoted character + if (sc.chNext == '\\' || sc.chNext == '/') { + sc.Forward(); + } + } + break; + case SCE_COFFEESCRIPT_STRINGEOL: + if (sc.atLineStart) { + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + } + break; + case SCE_COFFEESCRIPT_VERBATIM: + if (sc.ch == '\"') { + if (sc.chNext == '\"') { + sc.Forward(); + } else { + sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); + } + } + break; + case SCE_COFFEESCRIPT_UUID: + if (sc.ch == '\r' || sc.ch == '\n' || sc.ch == ')') { + sc.SetState(SCE_COFFEESCRIPT_DEFAULT); + } + break; + case SCE_COFFEESCRIPT_COMMENTBLOCK: + if (sc.Match("###")) { + sc.Forward(); + sc.Forward(); + sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); + } else if (sc.ch == '\\') { + sc.Forward(); + } + break; + case SCE_COFFEESCRIPT_VERBOSE_REGEX: + if (sc.Match("///")) { + sc.Forward(); + sc.Forward(); + sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); + } else if (sc.Match('#')) { + sc.SetState(SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT); + } else if (sc.ch == '\\') { + sc.Forward(); + } + break; + case SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT: + if (sc.atLineStart) { + sc.SetState(SCE_COFFEESCRIPT_VERBOSE_REGEX); + } + break; + } + + // Determine if a new state should be entered. + if (sc.state == SCE_COFFEESCRIPT_DEFAULT) { + if (sc.Match('@', '\"')) { + sc.SetState(SCE_COFFEESCRIPT_VERBATIM); + sc.Forward(); + } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { + if (lastWordWasUUID) { + sc.SetState(SCE_COFFEESCRIPT_UUID); + lastWordWasUUID = false; + } else { + sc.SetState(SCE_COFFEESCRIPT_NUMBER); + } + } else if (setWordStart.Contains(sc.ch) || (sc.ch == '@') || (sc.ch == '$')) { + if (lastWordWasUUID) { + sc.SetState(SCE_COFFEESCRIPT_UUID); + lastWordWasUUID = false; + } else { + sc.SetState(SCE_COFFEESCRIPT_IDENTIFIER); + } + } else if (sc.Match('/', '*')) { + if (sc.Match("/**") || sc.Match("/*!")) { // Support of Qt/Doxygen doc. style + sc.SetState(SCE_COFFEESCRIPT_COMMENTDOC); + } else { + sc.SetState(SCE_COFFEESCRIPT_COMMENT); + } + sc.Forward(); // Eat the * so it isn't used for the end of the comment + } else if (sc.Match("///")) { + sc.SetState(SCE_COFFEESCRIPT_VERBOSE_REGEX); + sc.Forward(); + sc.Forward(); + } else if (sc.ch == '/' + && (setOKBeforeRE.Contains(chPrevNonWhite) + || followsReturnKeyword(sc, styler)) + && (!setCouldBePostOp.Contains(chPrevNonWhite) + || !FollowsPostfixOperator(sc, styler))) { + sc.SetState(SCE_COFFEESCRIPT_REGEX); // JavaScript's RegEx + } else if (sc.ch == '\"') { + sc.SetState(SCE_COFFEESCRIPT_STRING); + isIncludePreprocessor = false; // ensure that '>' won't end the string + } else if (isIncludePreprocessor && sc.ch == '<') { + sc.SetState(SCE_COFFEESCRIPT_STRING); + } else if (sc.ch == '\'') { + sc.SetState(SCE_COFFEESCRIPT_CHARACTER); + } else if (sc.ch == '#') { + if (sc.Match("###")) { + sc.SetState(SCE_COFFEESCRIPT_COMMENTBLOCK); + sc.Forward(); + sc.Forward(); + + } else { + sc.SetState(SCE_COFFEESCRIPT_COMMENTLINE); + } + } else if (isoperator(static_cast(sc.ch))) { + sc.SetState(SCE_COFFEESCRIPT_OPERATOR); + } + } + + if (!IsASpace(sc.ch) && !IsSpaceEquiv(sc.state)) { + chPrevNonWhite = sc.ch; + visibleChars++; + } + continuationLine = false; + } + sc.Complete(); +} + +static bool IsCommentLine(int line, Accessor &styler) { + int pos = styler.LineStart(line); + int eol_pos = styler.LineStart(line + 1) - 1; + for (int i = pos; i < eol_pos; i++) { + char ch = styler[i]; + if (ch == '#') + return true; + else if (ch == '/' + && i < eol_pos - 1 + && styler[i + 1] == '*') + return true; + else if (ch != ' ' && ch != '\t') + return false; + } + return false; +} + +static void FoldCoffeeScriptDoc(unsigned int startPos, int length, int, + WordList *[], Accessor &styler) { + // A simplified version of FoldPyDoc + const int maxPos = startPos + length; + const int maxLines = styler.GetLine(maxPos - 1); // Requested last line + const int docLines = styler.GetLine(styler.Length() - 1); // Available last line + + // property fold.coffeescript.comment + const bool foldComment = styler.GetPropertyInt("fold.coffeescript.comment") != 0; + + const bool foldCompact = styler.GetPropertyInt("fold.compact") != 0; + + // Backtrack to previous non-blank line so we can determine indent level + // for any white space lines + // and so we can fix any preceding fold level (which is why we go back + // at least one line in all cases) + int spaceFlags = 0; + int lineCurrent = styler.GetLine(startPos); + int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags, NULL); + while (lineCurrent > 0) { + lineCurrent--; + indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags, NULL); + if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG) + && !IsCommentLine(lineCurrent, styler)) + break; + } + int indentCurrentLevel = indentCurrent & SC_FOLDLEVELNUMBERMASK; + + // Set up initial loop state + int prevComment = 0; + if (lineCurrent >= 1) + prevComment = foldComment && IsCommentLine(lineCurrent - 1, styler); + + // Process all characters to end of requested range + // or comment that hangs over the end of the range. Cap processing in all cases + // to end of document (in case of comment at end). + while ((lineCurrent <= docLines) && ((lineCurrent <= maxLines) || prevComment)) { + + // Gather info + int lev = indentCurrent; + int lineNext = lineCurrent + 1; + int indentNext = indentCurrent; + if (lineNext <= docLines) { + // Information about next line is only available if not at end of document + indentNext = styler.IndentAmount(lineNext, &spaceFlags, NULL); + } + const int comment = foldComment && IsCommentLine(lineCurrent, styler); + const int comment_start = (comment && !prevComment && (lineNext <= docLines) && + IsCommentLine(lineNext, styler) && (lev > SC_FOLDLEVELBASE)); + const int comment_continue = (comment && prevComment); + if (!comment) + indentCurrentLevel = indentCurrent & SC_FOLDLEVELNUMBERMASK; + if (indentNext & SC_FOLDLEVELWHITEFLAG) + indentNext = SC_FOLDLEVELWHITEFLAG | indentCurrentLevel; + + if (comment_start) { + // Place fold point at start of a block of comments + lev |= SC_FOLDLEVELHEADERFLAG; + } else if (comment_continue) { + // Add level to rest of lines in the block + lev = lev + 1; + } + + // Skip past any blank lines for next indent level info; we skip also + // comments (all comments, not just those starting in column 0) + // which effectively folds them into surrounding code rather + // than screwing up folding. + + while ((lineNext < docLines) && + ((indentNext & SC_FOLDLEVELWHITEFLAG) || + (lineNext <= docLines && IsCommentLine(lineNext, styler)))) { + + lineNext++; + indentNext = styler.IndentAmount(lineNext, &spaceFlags, NULL); + } + + const int levelAfterComments = indentNext & SC_FOLDLEVELNUMBERMASK; + const int levelBeforeComments = Platform::Maximum(indentCurrentLevel,levelAfterComments); + + // Now set all the indent levels on the lines we skipped + // Do this from end to start. Once we encounter one line + // which is indented more than the line after the end of + // the comment-block, use the level of the block before + + int skipLine = lineNext; + int skipLevel = levelAfterComments; + + while (--skipLine > lineCurrent) { + int skipLineIndent = styler.IndentAmount(skipLine, &spaceFlags, NULL); + + if (foldCompact) { + if ((skipLineIndent & SC_FOLDLEVELNUMBERMASK) > levelAfterComments) + skipLevel = levelBeforeComments; + + int whiteFlag = skipLineIndent & SC_FOLDLEVELWHITEFLAG; + + styler.SetLevel(skipLine, skipLevel | whiteFlag); + } else { + if ((skipLineIndent & SC_FOLDLEVELNUMBERMASK) > levelAfterComments && + !(skipLineIndent & SC_FOLDLEVELWHITEFLAG) && + !IsCommentLine(skipLine, styler)) + skipLevel = levelBeforeComments; + + styler.SetLevel(skipLine, skipLevel); + } + } + + // Set fold header on non-comment line + if (!comment && !(indentCurrent & SC_FOLDLEVELWHITEFLAG)) { + if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext & SC_FOLDLEVELNUMBERMASK)) + lev |= SC_FOLDLEVELHEADERFLAG; + } + + // Keep track of block comment state of previous line + prevComment = comment_start || comment_continue; + + // Set fold level for this line and move to next line + styler.SetLevel(lineCurrent, lev); + indentCurrent = indentNext; + lineCurrent = lineNext; + } +} + +static const char *const csWordLists[] = { + "Keywords", + 0, +}; + +LexerModule lmCoffeeScript(SCLEX_COFFEESCRIPT, ColouriseCoffeeScriptDoc, "coffeescript", FoldCoffeeScriptDoc, csWordLists); diff --git a/lexers/LexConf.cpp b/lexers/LexConf.cpp new file mode 100644 index 0000000..6a1c8c0 --- /dev/null +++ b/lexers/LexConf.cpp @@ -0,0 +1,192 @@ +// Scintilla source code edit control +/** @file LexConf.cxx + ** Lexer for Apache Configuration Files. + ** + ** First working version contributed by Ahmad Zawawi on October 28, 2000. + ** i created this lexer because i needed something pretty when dealing + ** when Apache Configuration files... + **/ +// Copyright 1998-2001 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static void ColouriseConfDoc(unsigned int startPos, int length, int, WordList *keywordLists[], Accessor &styler) +{ + int state = SCE_CONF_DEFAULT; + char chNext = styler[startPos]; + int lengthDoc = startPos + length; + // create a buffer large enough to take the largest chunk... + char *buffer = new char[length+1]; + int bufferCount = 0; + + // this assumes that we have 2 keyword list in conf.properties + WordList &directives = *keywordLists[0]; + WordList ¶ms = *keywordLists[1]; + + // go through all provided text segment + // using the hand-written state machine shown below + styler.StartAt(startPos); + styler.StartSegment(startPos); + for (int i = startPos; i < lengthDoc; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + + if (styler.IsLeadByte(ch)) { + chNext = styler.SafeGetCharAt(i + 2); + i++; + continue; + } + switch(state) { + case SCE_CONF_DEFAULT: + if( ch == '\n' || ch == '\r' || ch == '\t' || ch == ' ') { + // whitespace is simply ignored here... + styler.ColourTo(i,SCE_CONF_DEFAULT); + break; + } else if( ch == '#' ) { + // signals the start of a comment... + state = SCE_CONF_COMMENT; + styler.ColourTo(i,SCE_CONF_COMMENT); + } else if( ch == '.' /*|| ch == '/'*/) { + // signals the start of a file... + state = SCE_CONF_EXTENSION; + styler.ColourTo(i,SCE_CONF_EXTENSION); + } else if( ch == '"') { + state = SCE_CONF_STRING; + styler.ColourTo(i,SCE_CONF_STRING); + } else if( IsASCII(ch) && ispunct(ch) ) { + // signals an operator... + // no state jump necessary for this + // simple case... + styler.ColourTo(i,SCE_CONF_OPERATOR); + } else if( IsASCII(ch) && isalpha(ch) ) { + // signals the start of an identifier + bufferCount = 0; + buffer[bufferCount++] = static_cast(tolower(ch)); + state = SCE_CONF_IDENTIFIER; + } else if( IsASCII(ch) && isdigit(ch) ) { + // signals the start of a number + bufferCount = 0; + buffer[bufferCount++] = ch; + //styler.ColourTo(i,SCE_CONF_NUMBER); + state = SCE_CONF_NUMBER; + } else { + // style it the default style.. + styler.ColourTo(i,SCE_CONF_DEFAULT); + } + break; + + case SCE_CONF_COMMENT: + // if we find a newline here, + // we simply go to default state + // else continue to work on it... + if( ch == '\n' || ch == '\r' ) { + state = SCE_CONF_DEFAULT; + } else { + styler.ColourTo(i,SCE_CONF_COMMENT); + } + break; + + case SCE_CONF_EXTENSION: + // if we find a non-alphanumeric char, + // we simply go to default state + // else we're still dealing with an extension... + if( (IsASCII(ch) && isalnum(ch)) || (ch == '_') || + (ch == '-') || (ch == '$') || + (ch == '/') || (ch == '.') || (ch == '*') ) + { + styler.ColourTo(i,SCE_CONF_EXTENSION); + } else { + state = SCE_CONF_DEFAULT; + chNext = styler[i--]; + } + break; + + case SCE_CONF_STRING: + // if we find the end of a string char, we simply go to default state + // else we're still dealing with an string... + if( (ch == '"' && styler.SafeGetCharAt(i-1)!='\\') || (ch == '\n') || (ch == '\r') ) { + state = SCE_CONF_DEFAULT; + } + styler.ColourTo(i,SCE_CONF_STRING); + break; + + case SCE_CONF_IDENTIFIER: + // stay in CONF_IDENTIFIER state until we find a non-alphanumeric + if( (IsASCII(ch) && isalnum(ch)) || (ch == '_') || (ch == '-') || (ch == '/') || (ch == '$') || (ch == '.') || (ch == '*')) { + buffer[bufferCount++] = static_cast(tolower(ch)); + } else { + state = SCE_CONF_DEFAULT; + buffer[bufferCount] = '\0'; + + // check if the buffer contains a keyword, and highlight it if it is a keyword... + if(directives.InList(buffer)) { + styler.ColourTo(i-1,SCE_CONF_DIRECTIVE ); + } else if(params.InList(buffer)) { + styler.ColourTo(i-1,SCE_CONF_PARAMETER ); + } else if(strchr(buffer,'/') || strchr(buffer,'.')) { + styler.ColourTo(i-1,SCE_CONF_EXTENSION); + } else { + styler.ColourTo(i-1,SCE_CONF_DEFAULT); + } + + // push back the faulty character + chNext = styler[i--]; + + } + break; + + case SCE_CONF_NUMBER: + // stay in CONF_NUMBER state until we find a non-numeric + if( (IsASCII(ch) && isdigit(ch)) || ch == '.') { + buffer[bufferCount++] = ch; + } else { + state = SCE_CONF_DEFAULT; + buffer[bufferCount] = '\0'; + + // Colourize here... + if( strchr(buffer,'.') ) { + // it is an IP address... + styler.ColourTo(i-1,SCE_CONF_IP); + } else { + // normal number + styler.ColourTo(i-1,SCE_CONF_NUMBER); + } + + // push back a character + chNext = styler[i--]; + } + break; + + } + } + delete []buffer; +} + +static const char * const confWordListDesc[] = { + "Directives", + "Parameters", + 0 +}; + +LexerModule lmConf(SCLEX_CONF, ColouriseConfDoc, "conf", 0, confWordListDesc); diff --git a/lexers/LexCrontab.cpp b/lexers/LexCrontab.cpp new file mode 100644 index 0000000..ad6668f --- /dev/null +++ b/lexers/LexCrontab.cpp @@ -0,0 +1,226 @@ +// Scintilla source code edit control +/** @file LexCrontab.cxx + ** Lexer to use with extended crontab files used by a powerful + ** Windows scheduler/event monitor/automation manager nnCron. + ** (http://nemtsev.eserv.ru/) + **/ +// Copyright 1998-2001 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static void ColouriseNncrontabDoc(unsigned int startPos, int length, int, WordList +*keywordLists[], Accessor &styler) +{ + int state = SCE_NNCRONTAB_DEFAULT; + char chNext = styler[startPos]; + int lengthDoc = startPos + length; + // create a buffer large enough to take the largest chunk... + char *buffer = new char[length+1]; + int bufferCount = 0; + // used when highliting environment variables inside quoted string: + bool insideString = false; + + // this assumes that we have 3 keyword list in conf.properties + WordList §ion = *keywordLists[0]; + WordList &keyword = *keywordLists[1]; + WordList &modifier = *keywordLists[2]; + + // go through all provided text segment + // using the hand-written state machine shown below + styler.StartAt(startPos); + styler.StartSegment(startPos); + for (int i = startPos; i < lengthDoc; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + + if (styler.IsLeadByte(ch)) { + chNext = styler.SafeGetCharAt(i + 2); + i++; + continue; + } + switch(state) { + case SCE_NNCRONTAB_DEFAULT: + if( ch == '\n' || ch == '\r' || ch == '\t' || ch == ' ') { + // whitespace is simply ignored here... + styler.ColourTo(i,SCE_NNCRONTAB_DEFAULT); + break; + } else if( ch == '#' && styler.SafeGetCharAt(i+1) == '(') { + // signals the start of a task... + state = SCE_NNCRONTAB_TASK; + styler.ColourTo(i,SCE_NNCRONTAB_TASK); + } + else if( ch == '\\' && (styler.SafeGetCharAt(i+1) == ' ' || + styler.SafeGetCharAt(i+1) == '\t')) { + // signals the start of an extended comment... + state = SCE_NNCRONTAB_COMMENT; + styler.ColourTo(i,SCE_NNCRONTAB_COMMENT); + } else if( ch == '#' ) { + // signals the start of a plain comment... + state = SCE_NNCRONTAB_COMMENT; + styler.ColourTo(i,SCE_NNCRONTAB_COMMENT); + } else if( ch == ')' && styler.SafeGetCharAt(i+1) == '#') { + // signals the end of a task... + state = SCE_NNCRONTAB_TASK; + styler.ColourTo(i,SCE_NNCRONTAB_TASK); + } else if( ch == '"') { + state = SCE_NNCRONTAB_STRING; + styler.ColourTo(i,SCE_NNCRONTAB_STRING); + } else if( ch == '%') { + // signals environment variables + state = SCE_NNCRONTAB_ENVIRONMENT; + styler.ColourTo(i,SCE_NNCRONTAB_ENVIRONMENT); + } else if( ch == '<' && styler.SafeGetCharAt(i+1) == '%') { + // signals environment variables + state = SCE_NNCRONTAB_ENVIRONMENT; + styler.ColourTo(i,SCE_NNCRONTAB_ENVIRONMENT); + } else if( ch == '*' ) { + // signals an asterisk + // no state jump necessary for this simple case... + styler.ColourTo(i,SCE_NNCRONTAB_ASTERISK); + } else if( (IsASCII(ch) && isalpha(ch)) || ch == '<' ) { + // signals the start of an identifier + bufferCount = 0; + buffer[bufferCount++] = ch; + state = SCE_NNCRONTAB_IDENTIFIER; + } else if( IsASCII(ch) && isdigit(ch) ) { + // signals the start of a number + bufferCount = 0; + buffer[bufferCount++] = ch; + state = SCE_NNCRONTAB_NUMBER; + } else { + // style it the default style.. + styler.ColourTo(i,SCE_NNCRONTAB_DEFAULT); + } + break; + + case SCE_NNCRONTAB_COMMENT: + // if we find a newline here, + // we simply go to default state + // else continue to work on it... + if( ch == '\n' || ch == '\r' ) { + state = SCE_NNCRONTAB_DEFAULT; + } else { + styler.ColourTo(i,SCE_NNCRONTAB_COMMENT); + } + break; + + case SCE_NNCRONTAB_TASK: + // if we find a newline here, + // we simply go to default state + // else continue to work on it... + if( ch == '\n' || ch == '\r' ) { + state = SCE_NNCRONTAB_DEFAULT; + } else { + styler.ColourTo(i,SCE_NNCRONTAB_TASK); + } + break; + + case SCE_NNCRONTAB_STRING: + if( ch == '%' ) { + state = SCE_NNCRONTAB_ENVIRONMENT; + insideString = true; + styler.ColourTo(i-1,SCE_NNCRONTAB_STRING); + break; + } + // if we find the end of a string char, we simply go to default state + // else we're still dealing with an string... + if( (ch == '"' && styler.SafeGetCharAt(i-1)!='\\') || + (ch == '\n') || (ch == '\r') ) { + state = SCE_NNCRONTAB_DEFAULT; + } + styler.ColourTo(i,SCE_NNCRONTAB_STRING); + break; + + case SCE_NNCRONTAB_ENVIRONMENT: + // if we find the end of a string char, we simply go to default state + // else we're still dealing with an string... + if( ch == '%' && insideString ) { + state = SCE_NNCRONTAB_STRING; + insideString = false; + break; + } + if( (ch == '%' && styler.SafeGetCharAt(i-1)!='\\') + || (ch == '\n') || (ch == '\r') || (ch == '>') ) { + state = SCE_NNCRONTAB_DEFAULT; + styler.ColourTo(i,SCE_NNCRONTAB_ENVIRONMENT); + break; + } + styler.ColourTo(i+1,SCE_NNCRONTAB_ENVIRONMENT); + break; + + case SCE_NNCRONTAB_IDENTIFIER: + // stay in CONF_IDENTIFIER state until we find a non-alphanumeric + if( (IsASCII(ch) && isalnum(ch)) || (ch == '_') || (ch == '-') || (ch == '/') || + (ch == '$') || (ch == '.') || (ch == '<') || (ch == '>') || + (ch == '@') ) { + buffer[bufferCount++] = ch; + } else { + state = SCE_NNCRONTAB_DEFAULT; + buffer[bufferCount] = '\0'; + + // check if the buffer contains a keyword, + // and highlight it if it is a keyword... + if(section.InList(buffer)) { + styler.ColourTo(i,SCE_NNCRONTAB_SECTION ); + } else if(keyword.InList(buffer)) { + styler.ColourTo(i-1,SCE_NNCRONTAB_KEYWORD ); + } // else if(strchr(buffer,'/') || strchr(buffer,'.')) { + // styler.ColourTo(i-1,SCE_NNCRONTAB_EXTENSION); + // } + else if(modifier.InList(buffer)) { + styler.ColourTo(i-1,SCE_NNCRONTAB_MODIFIER ); + } else { + styler.ColourTo(i-1,SCE_NNCRONTAB_DEFAULT); + } + // push back the faulty character + chNext = styler[i--]; + } + break; + + case SCE_NNCRONTAB_NUMBER: + // stay in CONF_NUMBER state until we find a non-numeric + if( IsASCII(ch) && isdigit(ch) /* || ch == '.' */ ) { + buffer[bufferCount++] = ch; + } else { + state = SCE_NNCRONTAB_DEFAULT; + buffer[bufferCount] = '\0'; + // Colourize here... (normal number) + styler.ColourTo(i-1,SCE_NNCRONTAB_NUMBER); + // push back a character + chNext = styler[i--]; + } + break; + } + } + delete []buffer; +} + +static const char * const cronWordListDesc[] = { + "Section keywords and Forth words", + "nnCrontab keywords", + "Modifiers", + 0 +}; + +LexerModule lmNncrontab(SCLEX_NNCRONTAB, ColouriseNncrontabDoc, "nncrontab", 0, cronWordListDesc); diff --git a/lexers/LexCsound.cpp b/lexers/LexCsound.cpp new file mode 100644 index 0000000..da5bfeb --- /dev/null +++ b/lexers/LexCsound.cpp @@ -0,0 +1,214 @@ +// Scintilla source code edit control +/** @file LexCsound.cxx + ** Lexer for Csound (Orchestra & Score) + ** Written by Georg Ritter - + **/ +// Copyright 1998-2003 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '.' || + ch == '_' || ch == '?'); +} + +static inline bool IsAWordStart(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '.' || + ch == '%' || ch == '@' || ch == '$' || ch == '?'); +} + +static inline bool IsCsoundOperator(char ch) { + if (IsASCII(ch) && isalnum(ch)) + return false; + // '.' left out as it is used to make up numbers + if (ch == '*' || ch == '/' || ch == '-' || ch == '+' || + ch == '(' || ch == ')' || ch == '=' || ch == '^' || + ch == '[' || ch == ']' || ch == '<' || ch == '&' || + ch == '>' || ch == ',' || ch == '|' || ch == '~' || + ch == '%' || ch == ':') + return true; + return false; +} + +static void ColouriseCsoundDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + + WordList &opcode = *keywordlists[0]; + WordList &headerStmt = *keywordlists[1]; + WordList &otherKeyword = *keywordlists[2]; + + // Do not leak onto next line + if (initStyle == SCE_CSOUND_STRINGEOL) + initStyle = SCE_CSOUND_DEFAULT; + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) + { + // Handle line continuation generically. + if (sc.ch == '\\') { + if (sc.chNext == '\n' || sc.chNext == '\r') { + sc.Forward(); + if (sc.ch == '\r' && sc.chNext == '\n') { + sc.Forward(); + } + continue; + } + } + + // Determine if the current state should terminate. + if (sc.state == SCE_CSOUND_OPERATOR) { + if (!IsCsoundOperator(static_cast(sc.ch))) { + sc.SetState(SCE_CSOUND_DEFAULT); + } + }else if (sc.state == SCE_CSOUND_NUMBER) { + if (!IsAWordChar(sc.ch)) { + sc.SetState(SCE_CSOUND_DEFAULT); + } + } else if (sc.state == SCE_CSOUND_IDENTIFIER) { + if (!IsAWordChar(sc.ch) ) { + char s[100]; + sc.GetCurrent(s, sizeof(s)); + + if (opcode.InList(s)) { + sc.ChangeState(SCE_CSOUND_OPCODE); + } else if (headerStmt.InList(s)) { + sc.ChangeState(SCE_CSOUND_HEADERSTMT); + } else if (otherKeyword.InList(s)) { + sc.ChangeState(SCE_CSOUND_USERKEYWORD); + } else if (s[0] == 'p') { + sc.ChangeState(SCE_CSOUND_PARAM); + } else if (s[0] == 'a') { + sc.ChangeState(SCE_CSOUND_ARATE_VAR); + } else if (s[0] == 'k') { + sc.ChangeState(SCE_CSOUND_KRATE_VAR); + } else if (s[0] == 'i') { // covers both i-rate variables and i-statements + sc.ChangeState(SCE_CSOUND_IRATE_VAR); + } else if (s[0] == 'g') { + sc.ChangeState(SCE_CSOUND_GLOBAL_VAR); + } + sc.SetState(SCE_CSOUND_DEFAULT); + } + } + else if (sc.state == SCE_CSOUND_COMMENT ) { + if (sc.atLineEnd) { + sc.SetState(SCE_CSOUND_DEFAULT); + } + } + else if ((sc.state == SCE_CSOUND_ARATE_VAR) || + (sc.state == SCE_CSOUND_KRATE_VAR) || + (sc.state == SCE_CSOUND_IRATE_VAR)) { + if (!IsAWordChar(sc.ch)) { + sc.SetState(SCE_CSOUND_DEFAULT); + } + } + + // Determine if a new state should be entered. + if (sc.state == SCE_CSOUND_DEFAULT) { + if (sc.ch == ';'){ + sc.SetState(SCE_CSOUND_COMMENT); + } else if (isdigit(sc.ch) || (sc.ch == '.' && isdigit(sc.chNext))) { + sc.SetState(SCE_CSOUND_NUMBER); + } else if (IsAWordStart(sc.ch)) { + sc.SetState(SCE_CSOUND_IDENTIFIER); + } else if (IsCsoundOperator(static_cast(sc.ch))) { + sc.SetState(SCE_CSOUND_OPERATOR); + } else if (sc.ch == 'p') { + sc.SetState(SCE_CSOUND_PARAM); + } else if (sc.ch == 'a') { + sc.SetState(SCE_CSOUND_ARATE_VAR); + } else if (sc.ch == 'k') { + sc.SetState(SCE_CSOUND_KRATE_VAR); + } else if (sc.ch == 'i') { // covers both i-rate variables and i-statements + sc.SetState(SCE_CSOUND_IRATE_VAR); + } else if (sc.ch == 'g') { + sc.SetState(SCE_CSOUND_GLOBAL_VAR); + } + } + } + sc.Complete(); +} + +static void FoldCsoundInstruments(unsigned int startPos, int length, int /* initStyle */, WordList *[], + Accessor &styler) { + unsigned int lengthDoc = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = styler[startPos]; + int stylePrev = 0; + int styleNext = styler.StyleAt(startPos); + for (unsigned int i = startPos; i < lengthDoc; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if ((stylePrev != SCE_CSOUND_OPCODE) && (style == SCE_CSOUND_OPCODE)) { + char s[20]; + unsigned int j = 0; + while ((j < (sizeof(s) - 1)) && (iswordchar(styler[i + j]))) { + s[j] = styler[i + j]; + j++; + } + s[j] = '\0'; + + if (strcmp(s, "instr") == 0) + levelCurrent++; + if (strcmp(s, "endin") == 0) + levelCurrent--; + } + + if (atEOL) { + int lev = levelPrev; + if (visibleChars == 0) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + } + if (!isspacechar(ch)) + visibleChars++; + stylePrev = style; + } + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + + +static const char * const csoundWordListDesc[] = { + "Opcodes", + "Header Statements", + "User keywords", + 0 +}; + +LexerModule lmCsound(SCLEX_CSOUND, ColouriseCsoundDoc, "csound", FoldCsoundInstruments, csoundWordListDesc); diff --git a/lexers/LexD.cpp b/lexers/LexD.cpp new file mode 100644 index 0000000..045c4cb --- /dev/null +++ b/lexers/LexD.cpp @@ -0,0 +1,568 @@ +/** @file LexD.cxx + ** Lexer for D. + ** + ** Copyright (c) 2006 by Waldemar Augustyn + ** Converted to lexer object and added further folding features/properties by "Udo Lechner" + **/ +// Copyright 1998-2005 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" +#include "OptionSet.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +/* Nested comments require keeping the value of the nesting level for every + position in the document. But since scintilla always styles line by line, + we only need to store one value per line. The non-negative number indicates + nesting level at the end of the line. +*/ + +// Underscore, letter, digit and universal alphas from C99 Appendix D. + +static bool IsWordStart(int ch) { + return (IsASCII(ch) && (isalpha(ch) || ch == '_')) || !IsASCII(ch); +} + +static bool IsWord(int ch) { + return (IsASCII(ch) && (isalnum(ch) || ch == '_')) || !IsASCII(ch); +} + +static bool IsDoxygen(int ch) { + if (IsASCII(ch) && islower(ch)) + return true; + if (ch == '$' || ch == '@' || ch == '\\' || + ch == '&' || ch == '#' || ch == '<' || ch == '>' || + ch == '{' || ch == '}' || ch == '[' || ch == ']') + return true; + return false; +} + +static bool IsStringSuffix(int ch) { + return ch == 'c' || ch == 'w' || ch == 'd'; +} + +static bool IsStreamCommentStyle(int style) { + return style == SCE_D_COMMENT || + style == SCE_D_COMMENTDOC || + style == SCE_D_COMMENTDOCKEYWORD || + style == SCE_D_COMMENTDOCKEYWORDERROR; +} + +// An individual named option for use in an OptionSet + +// Options used for LexerD +struct OptionsD { + bool fold; + bool foldSyntaxBased; + bool foldComment; + bool foldCommentMultiline; + bool foldCommentExplicit; + std::string foldExplicitStart; + std::string foldExplicitEnd; + bool foldExplicitAnywhere; + bool foldCompact; + int foldAtElseInt; + bool foldAtElse; + OptionsD() { + fold = false; + foldSyntaxBased = true; + foldComment = false; + foldCommentMultiline = true; + foldCommentExplicit = true; + foldExplicitStart = ""; + foldExplicitEnd = ""; + foldExplicitAnywhere = false; + foldCompact = true; + foldAtElseInt = -1; + foldAtElse = false; + } +}; + +static const char * const dWordLists[] = { + "Primary keywords and identifiers", + "Secondary keywords and identifiers", + "Documentation comment keywords", + "Type definitions and aliases", + "Keywords 5", + "Keywords 6", + "Keywords 7", + 0, + }; + +struct OptionSetD : public OptionSet { + OptionSetD() { + DefineProperty("fold", &OptionsD::fold); + + DefineProperty("fold.d.syntax.based", &OptionsD::foldSyntaxBased, + "Set this property to 0 to disable syntax based folding."); + + DefineProperty("fold.comment", &OptionsD::foldComment); + + DefineProperty("fold.d.comment.multiline", &OptionsD::foldCommentMultiline, + "Set this property to 0 to disable folding multi-line comments when fold.comment=1."); + + DefineProperty("fold.d.comment.explicit", &OptionsD::foldCommentExplicit, + "Set this property to 0 to disable folding explicit fold points when fold.comment=1."); + + DefineProperty("fold.d.explicit.start", &OptionsD::foldExplicitStart, + "The string to use for explicit fold start points, replacing the standard //{."); + + DefineProperty("fold.d.explicit.end", &OptionsD::foldExplicitEnd, + "The string to use for explicit fold end points, replacing the standard //}."); + + DefineProperty("fold.d.explicit.anywhere", &OptionsD::foldExplicitAnywhere, + "Set this property to 1 to enable explicit fold points anywhere, not just in line comments."); + + DefineProperty("fold.compact", &OptionsD::foldCompact); + + DefineProperty("lexer.d.fold.at.else", &OptionsD::foldAtElseInt, + "This option enables D folding on a \"} else {\" line of an if statement."); + + DefineProperty("fold.at.else", &OptionsD::foldAtElse); + + DefineWordListSets(dWordLists); + } +}; + +class LexerD : public ILexer { + bool caseSensitive; + WordList keywords; + WordList keywords2; + WordList keywords3; + WordList keywords4; + WordList keywords5; + WordList keywords6; + WordList keywords7; + OptionsD options; + OptionSetD osD; +public: + LexerD(bool caseSensitive_) : + caseSensitive(caseSensitive_) { + } + virtual ~LexerD() { + } + void SCI_METHOD Release() { + delete this; + } + int SCI_METHOD Version() const { + return lvOriginal; + } + const char * SCI_METHOD PropertyNames() { + return osD.PropertyNames(); + } + int SCI_METHOD PropertyType(const char *name) { + return osD.PropertyType(name); + } + const char * SCI_METHOD DescribeProperty(const char *name) { + return osD.DescribeProperty(name); + } + int SCI_METHOD PropertySet(const char *key, const char *val); + const char * SCI_METHOD DescribeWordListSets() { + return osD.DescribeWordListSets(); + } + int SCI_METHOD WordListSet(int n, const char *wl); + void SCI_METHOD Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + void SCI_METHOD Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + + void * SCI_METHOD PrivateCall(int, void *) { + return 0; + } + + static ILexer *LexerFactoryD() { + return new LexerD(true); + } + static ILexer *LexerFactoryDInsensitive() { + return new LexerD(false); + } +}; + +int SCI_METHOD LexerD::PropertySet(const char *key, const char *val) { + if (osD.PropertySet(&options, key, val)) { + return 0; + } + return -1; +} + +int SCI_METHOD LexerD::WordListSet(int n, const char *wl) { + WordList *wordListN = 0; + switch (n) { + case 0: + wordListN = &keywords; + break; + case 1: + wordListN = &keywords2; + break; + case 2: + wordListN = &keywords3; + break; + case 3: + wordListN = &keywords4; + break; + case 4: + wordListN = &keywords5; + break; + case 5: + wordListN = &keywords6; + break; + case 6: + wordListN = &keywords7; + break; + } + int firstModification = -1; + if (wordListN) { + WordList wlNew; + wlNew.Set(wl); + if (*wordListN != wlNew) { + wordListN->Set(wl); + firstModification = 0; + } + } + return firstModification; +} + +void SCI_METHOD LexerD::Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { + LexAccessor styler(pAccess); + + int styleBeforeDCKeyword = SCE_D_DEFAULT; + + StyleContext sc(startPos, length, initStyle, styler); + + int curLine = styler.GetLine(startPos); + int curNcLevel = curLine > 0? styler.GetLineState(curLine-1): 0; + bool numFloat = false; // Float literals have '+' and '-' signs + bool numHex = false; + + for (; sc.More(); sc.Forward()) { + + if (sc.atLineStart) { + curLine = styler.GetLine(sc.currentPos); + styler.SetLineState(curLine, curNcLevel); + } + + // Determine if the current state should terminate. + switch (sc.state) { + case SCE_D_OPERATOR: + sc.SetState(SCE_D_DEFAULT); + break; + case SCE_D_NUMBER: + // We accept almost anything because of hex. and number suffixes + if (IsASCII(sc.ch) && (isalnum(sc.ch) || sc.ch == '_')) { + continue; + } else if (sc.ch == '.' && sc.chNext != '.' && !numFloat) { + // Don't parse 0..2 as number. + numFloat=true; + continue; + } else if ( ( sc.ch == '-' || sc.ch == '+' ) && ( /*sign and*/ + ( !numHex && ( sc.chPrev == 'e' || sc.chPrev == 'E' ) ) || /*decimal or*/ + ( sc.chPrev == 'p' || sc.chPrev == 'P' ) ) ) { /*hex*/ + // Parse exponent sign in float literals: 2e+10 0x2e+10 + continue; + } else { + sc.SetState(SCE_D_DEFAULT); + } + break; + case SCE_D_IDENTIFIER: + if (!IsWord(sc.ch)) { + char s[1000]; + if (caseSensitive) { + sc.GetCurrent(s, sizeof(s)); + } else { + sc.GetCurrentLowered(s, sizeof(s)); + } + if (keywords.InList(s)) { + sc.ChangeState(SCE_D_WORD); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_D_WORD2); + } else if (keywords4.InList(s)) { + sc.ChangeState(SCE_D_TYPEDEF); + } else if (keywords5.InList(s)) { + sc.ChangeState(SCE_D_WORD5); + } else if (keywords6.InList(s)) { + sc.ChangeState(SCE_D_WORD6); + } else if (keywords7.InList(s)) { + sc.ChangeState(SCE_D_WORD7); + } + sc.SetState(SCE_D_DEFAULT); + } + break; + case SCE_D_COMMENT: + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_D_DEFAULT); + } + break; + case SCE_D_COMMENTDOC: + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_D_DEFAULT); + } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support + // Verify that we have the conditions to mark a comment-doc-keyword + if ((IsASpace(sc.chPrev) || sc.chPrev == '*') && (!IsASpace(sc.chNext))) { + styleBeforeDCKeyword = SCE_D_COMMENTDOC; + sc.SetState(SCE_D_COMMENTDOCKEYWORD); + } + } + break; + case SCE_D_COMMENTLINE: + if (sc.atLineStart) { + sc.SetState(SCE_D_DEFAULT); + } + break; + case SCE_D_COMMENTLINEDOC: + if (sc.atLineStart) { + sc.SetState(SCE_D_DEFAULT); + } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support + // Verify that we have the conditions to mark a comment-doc-keyword + if ((IsASpace(sc.chPrev) || sc.chPrev == '/' || sc.chPrev == '!') && (!IsASpace(sc.chNext))) { + styleBeforeDCKeyword = SCE_D_COMMENTLINEDOC; + sc.SetState(SCE_D_COMMENTDOCKEYWORD); + } + } + break; + case SCE_D_COMMENTDOCKEYWORD: + if ((styleBeforeDCKeyword == SCE_D_COMMENTDOC) && sc.Match('*', '/')) { + sc.ChangeState(SCE_D_COMMENTDOCKEYWORDERROR); + sc.Forward(); + sc.ForwardSetState(SCE_D_DEFAULT); + } else if (!IsDoxygen(sc.ch)) { + char s[100]; + if (caseSensitive) { + sc.GetCurrent(s, sizeof(s)); + } else { + sc.GetCurrentLowered(s, sizeof(s)); + } + if (!IsASpace(sc.ch) || !keywords3.InList(s + 1)) { + sc.ChangeState(SCE_D_COMMENTDOCKEYWORDERROR); + } + sc.SetState(styleBeforeDCKeyword); + } + break; + case SCE_D_COMMENTNESTED: + if (sc.Match('+', '/')) { + if (curNcLevel > 0) + curNcLevel -= 1; + curLine = styler.GetLine(sc.currentPos); + styler.SetLineState(curLine, curNcLevel); + sc.Forward(); + if (curNcLevel == 0) { + sc.ForwardSetState(SCE_D_DEFAULT); + } + } else if (sc.Match('/','+')) { + curNcLevel += 1; + curLine = styler.GetLine(sc.currentPos); + styler.SetLineState(curLine, curNcLevel); + sc.Forward(); + } + break; + case SCE_D_STRING: + if (sc.ch == '\\') { + if (sc.chNext == '"' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '"') { + if(IsStringSuffix(sc.chNext)) + sc.Forward(); + sc.ForwardSetState(SCE_D_DEFAULT); + } + break; + case SCE_D_CHARACTER: + if (sc.atLineEnd) { + sc.ChangeState(SCE_D_STRINGEOL); + } else if (sc.ch == '\\') { + if (sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\'') { + // Char has no suffixes + sc.ForwardSetState(SCE_D_DEFAULT); + } + break; + case SCE_D_STRINGEOL: + if (sc.atLineStart) { + sc.SetState(SCE_D_DEFAULT); + } + break; + case SCE_D_STRINGB: + if (sc.ch == '`') { + if(IsStringSuffix(sc.chNext)) + sc.Forward(); + sc.ForwardSetState(SCE_D_DEFAULT); + } + break; + case SCE_D_STRINGR: + if (sc.ch == '"') { + if(IsStringSuffix(sc.chNext)) + sc.Forward(); + sc.ForwardSetState(SCE_D_DEFAULT); + } + break; + } + + // Determine if a new state should be entered. + if (sc.state == SCE_D_DEFAULT) { + if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { + sc.SetState(SCE_D_NUMBER); + numFloat = sc.ch == '.'; + // Remember hex literal + numHex = sc.ch == '0' && ( sc.chNext == 'x' || sc.chNext == 'X' ); + } else if ( (sc.ch == 'r' || sc.ch == 'x' || sc.ch == 'q') + && sc.chNext == '"' ) { + // Limited support for hex and delimited strings: parse as r"" + sc.SetState(SCE_D_STRINGR); + sc.Forward(); + } else if (IsWordStart(sc.ch) || sc.ch == '$') { + sc.SetState(SCE_D_IDENTIFIER); + } else if (sc.Match('/','+')) { + curNcLevel += 1; + curLine = styler.GetLine(sc.currentPos); + styler.SetLineState(curLine, curNcLevel); + sc.SetState(SCE_D_COMMENTNESTED); + sc.Forward(); + } else if (sc.Match('/', '*')) { + if (sc.Match("/**") || sc.Match("/*!")) { // Support of Qt/Doxygen doc. style + sc.SetState(SCE_D_COMMENTDOC); + } else { + sc.SetState(SCE_D_COMMENT); + } + sc.Forward(); // Eat the * so it isn't used for the end of the comment + } else if (sc.Match('/', '/')) { + if ((sc.Match("///") && !sc.Match("////")) || sc.Match("//!")) + // Support of Qt/Doxygen doc. style + sc.SetState(SCE_D_COMMENTLINEDOC); + else + sc.SetState(SCE_D_COMMENTLINE); + } else if (sc.ch == '"') { + sc.SetState(SCE_D_STRING); + } else if (sc.ch == '\'') { + sc.SetState(SCE_D_CHARACTER); + } else if (sc.ch == '`') { + sc.SetState(SCE_D_STRINGB); + } else if (isoperator(static_cast(sc.ch))) { + sc.SetState(SCE_D_OPERATOR); + if (sc.ch == '.' && sc.chNext == '.') sc.Forward(); // Range operator + } + } + } + sc.Complete(); +} + +// Store both the current line's fold level and the next lines in the +// level store to make it easy to pick up with each increment +// and to make it possible to fiddle the current level for "} else {". + +void SCI_METHOD LexerD::Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { + + if (!options.fold) + return; + + LexAccessor styler(pAccess); + + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelCurrent = SC_FOLDLEVELBASE; + if (lineCurrent > 0) + levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; + int levelMinCurrent = levelCurrent; + int levelNext = levelCurrent; + char chNext = styler[startPos]; + int styleNext = styler.StyleAt(startPos); + int style = initStyle; + bool foldAtElse = options.foldAtElseInt >= 0 ? options.foldAtElseInt != 0 : options.foldAtElse; + const bool userDefinedFoldMarkers = !options.foldExplicitStart.empty() && !options.foldExplicitEnd.empty(); + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int stylePrev = style; + style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if (options.foldComment && options.foldCommentMultiline && IsStreamCommentStyle(style)) { + if (!IsStreamCommentStyle(stylePrev)) { + levelNext++; + } else if (!IsStreamCommentStyle(styleNext) && !atEOL) { + // Comments don't end at end of line and the next character may be unstyled. + levelNext--; + } + } + if (options.foldComment && options.foldCommentExplicit && ((style == SCE_D_COMMENTLINE) || options.foldExplicitAnywhere)) { + if (userDefinedFoldMarkers) { + if (styler.Match(i, options.foldExplicitStart.c_str())) { + levelNext++; + } else if (styler.Match(i, options.foldExplicitEnd.c_str())) { + levelNext--; + } + } else { + if ((ch == '/') && (chNext == '/')) { + char chNext2 = styler.SafeGetCharAt(i + 2); + if (chNext2 == '{') { + levelNext++; + } else if (chNext2 == '}') { + levelNext--; + } + } + } + } + if (options.foldSyntaxBased && (style == SCE_D_OPERATOR)) { + if (ch == '{') { + // Measure the minimum before a '{' to allow + // folding on "} else {" + if (levelMinCurrent > levelNext) { + levelMinCurrent = levelNext; + } + levelNext++; + } else if (ch == '}') { + levelNext--; + } + } + if (atEOL || (i == endPos-1)) { + if (options.foldComment && options.foldCommentMultiline) { // Handle nested comments + int nc; + nc = styler.GetLineState(lineCurrent); + nc -= lineCurrent>0? styler.GetLineState(lineCurrent-1): 0; + levelNext += nc; + } + int levelUse = levelCurrent; + if (options.foldSyntaxBased && foldAtElse) { + levelUse = levelMinCurrent; + } + int lev = levelUse | levelNext << 16; + if (visibleChars == 0 && options.foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if (levelUse < levelNext) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelCurrent = levelNext; + levelMinCurrent = levelCurrent; + visibleChars = 0; + } + if (!IsASpace(ch)) + visibleChars++; + } +} + +LexerModule lmD(SCLEX_D, LexerD::LexerFactoryD, "d", dWordLists); diff --git a/lexers/LexECL.cpp b/lexers/LexECL.cpp new file mode 100644 index 0000000..6a08d58 --- /dev/null +++ b/lexers/LexECL.cpp @@ -0,0 +1,521 @@ +// Scintilla source code edit control +/** @file LexECL.cxx + ** Lexer for ECL. + **/ +// Copyright 1998-2001 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#ifdef _MSC_VER +#pragma warning(disable: 4786) +#endif +#ifdef __BORLANDC__ +// Borland C++ displays warnings in vector header without this +#pragma option -w-ccc -w-rch +#endif + +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "PropSetSimple.h" +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" +#include "OptionSet.h" + +#define SET_LOWER "abcdefghijklmnopqrstuvwxyz" +#define SET_UPPER "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +#define SET_DIGITS "0123456789" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static bool IsSpaceEquiv(int state) { + switch (state) { + case SCE_ECL_DEFAULT: + case SCE_ECL_COMMENT: + case SCE_ECL_COMMENTLINE: + case SCE_ECL_COMMENTLINEDOC: + case SCE_ECL_COMMENTDOCKEYWORD: + case SCE_ECL_COMMENTDOCKEYWORDERROR: + case SCE_ECL_COMMENTDOC: + return true; + + default: + return false; + } +} + +static void ColouriseEclDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + WordList &keywords0 = *keywordlists[0]; + WordList &keywords1 = *keywordlists[1]; + WordList &keywords2 = *keywordlists[2]; + WordList &keywords3 = *keywordlists[3]; //Value Types + WordList &keywords4 = *keywordlists[4]; + WordList &keywords5 = *keywordlists[5]; + WordList &keywords6 = *keywordlists[6]; //Javadoc Tags + WordList cplusplus; + cplusplus.Set("beginc endc"); + + bool stylingWithinPreprocessor = false; + + CharacterSet setOKBeforeRE(CharacterSet::setNone, "(=,"); + CharacterSet setDoxygen(CharacterSet::setLower, "$@\\&<>#{}[]"); + CharacterSet setWordStart(CharacterSet::setAlpha, "_", 0x80, true); + CharacterSet setWord(CharacterSet::setAlphaNum, "._", 0x80, true); + CharacterSet setQualified(CharacterSet::setNone, "uUxX"); + + int chPrevNonWhite = ' '; + int visibleChars = 0; + bool lastWordWasUUID = false; + int styleBeforeDCKeyword = SCE_ECL_DEFAULT; + bool continuationLine = false; + + if (initStyle == SCE_ECL_PREPROCESSOR) { + // Set continuationLine if last character of previous line is '\' + int lineCurrent = styler.GetLine(startPos); + if (lineCurrent > 0) { + int chBack = styler.SafeGetCharAt(startPos-1, 0); + int chBack2 = styler.SafeGetCharAt(startPos-2, 0); + int lineEndChar = '!'; + if (chBack2 == '\r' && chBack == '\n') { + lineEndChar = styler.SafeGetCharAt(startPos-3, 0); + } else if (chBack == '\n' || chBack == '\r') { + lineEndChar = chBack2; + } + continuationLine = lineEndChar == '\\'; + } + } + + // look back to set chPrevNonWhite properly for better regex colouring + if (startPos > 0) { + int back = startPos; + while (--back && IsSpaceEquiv(styler.StyleAt(back))) + ; + if (styler.StyleAt(back) == SCE_ECL_OPERATOR) { + chPrevNonWhite = styler.SafeGetCharAt(back); + } + } + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + if (sc.atLineStart) { + if (sc.state == SCE_ECL_STRING) { + // Prevent SCE_ECL_STRINGEOL from leaking back to previous line which + // ends with a line continuation by locking in the state upto this position. + sc.SetState(SCE_ECL_STRING); + } + // Reset states to begining of colourise so no surprises + // if different sets of lines lexed. + visibleChars = 0; + lastWordWasUUID = false; + } + + // Handle line continuation generically. + if (sc.ch == '\\') { + if (sc.chNext == '\n' || sc.chNext == '\r') { + sc.Forward(); + if (sc.ch == '\r' && sc.chNext == '\n') { + sc.Forward(); + } + continuationLine = true; + continue; + } + } + + // Determine if the current state should terminate. + switch (sc.state) { + case SCE_ECL_ADDED: + case SCE_ECL_DELETED: + case SCE_ECL_CHANGED: + case SCE_ECL_MOVED: + if (sc.atLineStart) + sc.SetState(SCE_ECL_DEFAULT); + break; + case SCE_ECL_OPERATOR: + sc.SetState(SCE_ECL_DEFAULT); + break; + case SCE_ECL_NUMBER: + // We accept almost anything because of hex. and number suffixes + if (!setWord.Contains(sc.ch)) { + sc.SetState(SCE_ECL_DEFAULT); + } + break; + case SCE_ECL_IDENTIFIER: + if (!setWord.Contains(sc.ch) || (sc.ch == '.')) { + char s[1000]; + sc.GetCurrentLowered(s, sizeof(s)); + if (keywords0.InList(s)) { + lastWordWasUUID = strcmp(s, "uuid") == 0; + sc.ChangeState(SCE_ECL_WORD0); + } else if (keywords1.InList(s)) { + sc.ChangeState(SCE_ECL_WORD1); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_ECL_WORD2); + } else if (keywords4.InList(s)) { + sc.ChangeState(SCE_ECL_WORD4); + } else if (keywords5.InList(s)) { + sc.ChangeState(SCE_ECL_WORD5); + } + else //Data types are of from KEYWORD## + { + int i = static_cast(strlen(s)) - 1; + while(i >= 0 && (isdigit(s[i]) || s[i] == '_')) + --i; + + char s2[1000]; + strncpy(s2, s, i + 1); + s2[i + 1] = 0; + if (keywords3.InList(s2)) { + sc.ChangeState(SCE_ECL_WORD3); + } + } + sc.SetState(SCE_ECL_DEFAULT); + } + break; + case SCE_ECL_PREPROCESSOR: + if (sc.atLineStart && !continuationLine) { + sc.SetState(SCE_ECL_DEFAULT); + } else if (stylingWithinPreprocessor) { + if (IsASpace(sc.ch)) { + sc.SetState(SCE_ECL_DEFAULT); + } + } else { + if (sc.Match('/', '*') || sc.Match('/', '/')) { + sc.SetState(SCE_ECL_DEFAULT); + } + } + break; + case SCE_ECL_COMMENT: + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_ECL_DEFAULT); + } + break; + case SCE_ECL_COMMENTDOC: + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_ECL_DEFAULT); + } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support + // Verify that we have the conditions to mark a comment-doc-keyword + if ((IsASpace(sc.chPrev) || sc.chPrev == '*') && (!IsASpace(sc.chNext))) { + styleBeforeDCKeyword = SCE_ECL_COMMENTDOC; + sc.SetState(SCE_ECL_COMMENTDOCKEYWORD); + } + } + break; + case SCE_ECL_COMMENTLINE: + if (sc.atLineStart) { + sc.SetState(SCE_ECL_DEFAULT); + } + break; + case SCE_ECL_COMMENTLINEDOC: + if (sc.atLineStart) { + sc.SetState(SCE_ECL_DEFAULT); + } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support + // Verify that we have the conditions to mark a comment-doc-keyword + if ((IsASpace(sc.chPrev) || sc.chPrev == '/' || sc.chPrev == '!') && (!IsASpace(sc.chNext))) { + styleBeforeDCKeyword = SCE_ECL_COMMENTLINEDOC; + sc.SetState(SCE_ECL_COMMENTDOCKEYWORD); + } + } + break; + case SCE_ECL_COMMENTDOCKEYWORD: + if ((styleBeforeDCKeyword == SCE_ECL_COMMENTDOC) && sc.Match('*', '/')) { + sc.ChangeState(SCE_ECL_COMMENTDOCKEYWORDERROR); + sc.Forward(); + sc.ForwardSetState(SCE_ECL_DEFAULT); + } else if (!setDoxygen.Contains(sc.ch)) { + char s[1000]; + sc.GetCurrentLowered(s, sizeof(s)); + if (!IsASpace(sc.ch) || !keywords6.InList(s+1)) { + sc.ChangeState(SCE_ECL_COMMENTDOCKEYWORDERROR); + } + sc.SetState(styleBeforeDCKeyword); + } + break; + case SCE_ECL_STRING: + if (sc.atLineEnd) { + sc.ChangeState(SCE_ECL_STRINGEOL); + } else if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\"') { + sc.ForwardSetState(SCE_ECL_DEFAULT); + } + break; + case SCE_ECL_CHARACTER: + if (sc.atLineEnd) { + sc.ChangeState(SCE_ECL_STRINGEOL); + } else if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\'') { + sc.ForwardSetState(SCE_ECL_DEFAULT); + } + break; + case SCE_ECL_REGEX: + if (sc.atLineStart) { + sc.SetState(SCE_ECL_DEFAULT); + } else if (sc.ch == '/') { + sc.Forward(); + while ((sc.ch < 0x80) && islower(sc.ch)) + sc.Forward(); // gobble regex flags + sc.SetState(SCE_ECL_DEFAULT); + } else if (sc.ch == '\\') { + // Gobble up the quoted character + if (sc.chNext == '\\' || sc.chNext == '/') { + sc.Forward(); + } + } + break; + case SCE_ECL_STRINGEOL: + if (sc.atLineStart) { + sc.SetState(SCE_ECL_DEFAULT); + } + break; + case SCE_ECL_VERBATIM: + if (sc.ch == '\"') { + if (sc.chNext == '\"') { + sc.Forward(); + } else { + sc.ForwardSetState(SCE_ECL_DEFAULT); + } + } + break; + case SCE_ECL_UUID: + if (sc.ch == '\r' || sc.ch == '\n' || sc.ch == ')') { + sc.SetState(SCE_ECL_DEFAULT); + } + break; + } + + // Determine if a new state should be entered. + int lineCurrent = styler.GetLine(sc.currentPos); + int lineState = styler.GetLineState(lineCurrent); + if (sc.state == SCE_ECL_DEFAULT) { + if (lineState) { + sc.SetState(lineState); + } + else if (sc.Match('@', '\"')) { + sc.SetState(SCE_ECL_VERBATIM); + sc.Forward(); + } else if (setQualified.Contains(sc.ch) && sc.chNext == '\'') { + sc.SetState(SCE_ECL_CHARACTER); + sc.Forward(); + } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { + if (lastWordWasUUID) { + sc.SetState(SCE_ECL_UUID); + lastWordWasUUID = false; + } else { + sc.SetState(SCE_ECL_NUMBER); + } + } else if (setWordStart.Contains(sc.ch) || (sc.ch == '@')) { + if (lastWordWasUUID) { + sc.SetState(SCE_ECL_UUID); + lastWordWasUUID = false; + } else { + sc.SetState(SCE_ECL_IDENTIFIER); + } + } else if (sc.Match('/', '*')) { + if (sc.Match("/**") || sc.Match("/*!")) { // Support of Qt/Doxygen doc. style + sc.SetState(SCE_ECL_COMMENTDOC); + } else { + sc.SetState(SCE_ECL_COMMENT); + } + sc.Forward(); // Eat the * so it isn't used for the end of the comment + } else if (sc.Match('/', '/')) { + if ((sc.Match("///") && !sc.Match("////")) || sc.Match("//!")) + // Support of Qt/Doxygen doc. style + sc.SetState(SCE_ECL_COMMENTLINEDOC); + else + sc.SetState(SCE_ECL_COMMENTLINE); + } else if (sc.ch == '/' && setOKBeforeRE.Contains(chPrevNonWhite)) { + sc.SetState(SCE_ECL_REGEX); // JavaScript's RegEx +// } else if (sc.ch == '\"') { +// sc.SetState(SCE_ECL_STRING); + } else if (sc.ch == '\'') { + sc.SetState(SCE_ECL_CHARACTER); + } else if (sc.ch == '#' && visibleChars == 0) { + // Preprocessor commands are alone on their line + sc.SetState(SCE_ECL_PREPROCESSOR); + // Skip whitespace between # and preprocessor word + do { + sc.Forward(); + } while ((sc.ch == ' ' || sc.ch == '\t') && sc.More()); + if (sc.atLineEnd) { + sc.SetState(SCE_ECL_DEFAULT); + } + } else if (isoperator(static_cast(sc.ch))) { + sc.SetState(SCE_ECL_OPERATOR); + } + } + + if (!IsASpace(sc.ch) && !IsSpaceEquiv(sc.state)) { + chPrevNonWhite = sc.ch; + visibleChars++; + } + continuationLine = false; + } + sc.Complete(); + +} + +static bool IsStreamCommentStyle(int style) { + return style == SCE_ECL_COMMENT || + style == SCE_ECL_COMMENTDOC || + style == SCE_ECL_COMMENTDOCKEYWORD || + style == SCE_ECL_COMMENTDOCKEYWORDERROR; +} + +bool MatchNoCase(Accessor & styler, unsigned int & pos, const char *s) { + int i=0; + for (; *s; i++) { + char compare_char = tolower(*s); + char styler_char = tolower(styler.SafeGetCharAt(pos+i)); + if (compare_char != styler_char) + return false; + s++; + } + pos+=i-1; + return true; +} + + +// Store both the current line's fold level and the next lines in the +// level store to make it easy to pick up with each increment +// and to make it possible to fiddle the current level for "} else {". +static void FoldEclDoc(unsigned int startPos, int length, int initStyle, + WordList *[], Accessor &styler) { + bool foldComment = true; + bool foldPreprocessor = true; + bool foldCompact = true; + bool foldAtElse = true; + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelCurrent = SC_FOLDLEVELBASE; + if (lineCurrent > 0) + levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; + int levelMinCurrent = levelCurrent; + int levelNext = levelCurrent; + char chNext = styler[startPos]; + int styleNext = styler.StyleAt(startPos); + int style = initStyle; + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int stylePrev = style; + style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if (foldComment && IsStreamCommentStyle(style)) { + if (!IsStreamCommentStyle(stylePrev) && (stylePrev != SCE_ECL_COMMENTLINEDOC)) { + levelNext++; + } else if (!IsStreamCommentStyle(styleNext) && (styleNext != SCE_ECL_COMMENTLINEDOC) && !atEOL) { + // Comments don't end at end of line and the next character may be unstyled. + levelNext--; + } + } + if (foldComment && (style == SCE_ECL_COMMENTLINE)) { + if ((ch == '/') && (chNext == '/')) { + char chNext2 = styler.SafeGetCharAt(i + 2); + if (chNext2 == '{') { + levelNext++; + } else if (chNext2 == '}') { + levelNext--; + } + } + } + if (foldPreprocessor && (style == SCE_ECL_PREPROCESSOR)) { + if (ch == '#') { + unsigned int j = i + 1; + while ((j < endPos) && IsASpaceOrTab(styler.SafeGetCharAt(j))) { + j++; + } + if (MatchNoCase(styler, j, "region") || MatchNoCase(styler, j, "if")) { + levelNext++; + } else if (MatchNoCase(styler, j, "endregion") || MatchNoCase(styler, j, "end")) { + levelNext--; + } + } + } + if (style == SCE_ECL_OPERATOR) { + if (ch == '{') { + // Measure the minimum before a '{' to allow + // folding on "} else {" + if (levelMinCurrent > levelNext) { + levelMinCurrent = levelNext; + } + levelNext++; + } else if (ch == '}') { + levelNext--; + } + } + if (style == SCE_ECL_WORD2) { + if (MatchNoCase(styler, i, "record") || MatchNoCase(styler, i, "transform") || MatchNoCase(styler, i, "type") || MatchNoCase(styler, i, "function") || + MatchNoCase(styler, i, "module") || MatchNoCase(styler, i, "service") || MatchNoCase(styler, i, "interface") || MatchNoCase(styler, i, "ifblock") || + MatchNoCase(styler, i, "macro") || MatchNoCase(styler, i, "beginc++")) { + levelNext++; + } else if (MatchNoCase(styler, i, "endmacro") || MatchNoCase(styler, i, "endc++") || MatchNoCase(styler, i, "end")) { + levelNext--; + } + } + if (atEOL || (i == endPos-1)) { + int levelUse = levelCurrent; + if (foldAtElse) { + levelUse = levelMinCurrent; + } + int lev = levelUse | levelNext << 16; + if (visibleChars == 0 && foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if (levelUse < levelNext) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelCurrent = levelNext; + levelMinCurrent = levelCurrent; + if (atEOL && (i == static_cast(styler.Length()-1))) { + // There is an empty line at end of file so give it same level and empty + styler.SetLevel(lineCurrent, (levelCurrent | levelCurrent << 16) | SC_FOLDLEVELWHITEFLAG); + } + visibleChars = 0; + } + if (!IsASpace(ch)) + visibleChars++; + } +} + +static const char * const EclWordListDesc[] = { + "Keywords", + 0 +}; + +LexerModule lmECL( + SCLEX_ECL, + ColouriseEclDoc, + "ecl", + FoldEclDoc, + EclWordListDesc); diff --git a/lexers/LexEScript.cpp b/lexers/LexEScript.cpp new file mode 100644 index 0000000..9a7560e --- /dev/null +++ b/lexers/LexEScript.cpp @@ -0,0 +1,276 @@ +// Scintilla source code edit control +/** @file LexESCRIPT.cxx + ** Lexer for ESCRIPT + **/ +// Copyright 2003 by Patrizio Bekerle (patrizio@bekerle.com) + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_'); +} + +static inline bool IsAWordStart(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_'); +} + + + +static void ColouriseESCRIPTDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + WordList &keywords3 = *keywordlists[2]; + + // Do not leak onto next line + /*if (initStyle == SCE_ESCRIPT_STRINGEOL) + initStyle = SCE_ESCRIPT_DEFAULT;*/ + + StyleContext sc(startPos, length, initStyle, styler); + + bool caseSensitive = styler.GetPropertyInt("escript.case.sensitive", 0) != 0; + + for (; sc.More(); sc.Forward()) { + + /*if (sc.atLineStart && (sc.state == SCE_ESCRIPT_STRING)) { + // Prevent SCE_ESCRIPT_STRINGEOL from leaking back to previous line + sc.SetState(SCE_ESCRIPT_STRING); + }*/ + + // Handle line continuation generically. + if (sc.ch == '\\') { + if (sc.chNext == '\n' || sc.chNext == '\r') { + sc.Forward(); + if (sc.ch == '\r' && sc.chNext == '\n') { + sc.Forward(); + } + continue; + } + } + + // Determine if the current state should terminate. + if (sc.state == SCE_ESCRIPT_OPERATOR || sc.state == SCE_ESCRIPT_BRACE) { + sc.SetState(SCE_ESCRIPT_DEFAULT); + } else if (sc.state == SCE_ESCRIPT_NUMBER) { + if (!IsADigit(sc.ch) || sc.ch != '.') { + sc.SetState(SCE_ESCRIPT_DEFAULT); + } + } else if (sc.state == SCE_ESCRIPT_IDENTIFIER) { + if (!IsAWordChar(sc.ch) || (sc.ch == '.')) { + char s[100]; + if (caseSensitive) { + sc.GetCurrent(s, sizeof(s)); + } else { + sc.GetCurrentLowered(s, sizeof(s)); + } + +// sc.GetCurrentLowered(s, sizeof(s)); + + if (keywords.InList(s)) { + sc.ChangeState(SCE_ESCRIPT_WORD); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_ESCRIPT_WORD2); + } else if (keywords3.InList(s)) { + sc.ChangeState(SCE_ESCRIPT_WORD3); + // sc.state = SCE_ESCRIPT_IDENTIFIER; + } + sc.SetState(SCE_ESCRIPT_DEFAULT); + } + } else if (sc.state == SCE_ESCRIPT_COMMENT) { + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_ESCRIPT_DEFAULT); + } + } else if (sc.state == SCE_ESCRIPT_COMMENTDOC) { + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(SCE_ESCRIPT_DEFAULT); + } + } else if (sc.state == SCE_ESCRIPT_COMMENTLINE) { + if (sc.atLineEnd) { + sc.SetState(SCE_ESCRIPT_DEFAULT); + } + } else if (sc.state == SCE_ESCRIPT_STRING) { + if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\"') { + sc.ForwardSetState(SCE_ESCRIPT_DEFAULT); + } + } + + // Determine if a new state should be entered. + if (sc.state == SCE_ESCRIPT_DEFAULT) { + if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { + sc.SetState(SCE_ESCRIPT_NUMBER); + } else if (IsAWordStart(sc.ch) || (sc.ch == '#')) { + sc.SetState(SCE_ESCRIPT_IDENTIFIER); + } else if (sc.Match('/', '*')) { + sc.SetState(SCE_ESCRIPT_COMMENT); + sc.Forward(); // Eat the * so it isn't used for the end of the comment + } else if (sc.Match('/', '/')) { + sc.SetState(SCE_ESCRIPT_COMMENTLINE); + } else if (sc.ch == '\"') { + sc.SetState(SCE_ESCRIPT_STRING); + //} else if (isoperator(static_cast(sc.ch))) { + } else if (sc.ch == '+' || sc.ch == '-' || sc.ch == '*' || sc.ch == '/' || sc.ch == '=' || sc.ch == '<' || sc.ch == '>' || sc.ch == '&' || sc.ch == '|' || sc.ch == '!' || sc.ch == '?' || sc.ch == ':') { + sc.SetState(SCE_ESCRIPT_OPERATOR); + } else if (sc.ch == '{' || sc.ch == '}') { + sc.SetState(SCE_ESCRIPT_BRACE); + } + } + + } + sc.Complete(); +} + + +static int classifyFoldPointESCRIPT(const char* s, const char* prevWord) { + int lev = 0; + if (strcmp(prevWord, "end") == 0) return lev; + if ((strcmp(prevWord, "else") == 0 && strcmp(s, "if") == 0) || strcmp(s, "elseif") == 0) + return -1; + + if (strcmp(s, "for") == 0 || strcmp(s, "foreach") == 0 + || strcmp(s, "program") == 0 || strcmp(s, "function") == 0 + || strcmp(s, "while") == 0 || strcmp(s, "case") == 0 + || strcmp(s, "if") == 0 ) { + lev = 1; + } else if ( strcmp(s, "endfor") == 0 || strcmp(s, "endforeach") == 0 + || strcmp(s, "endprogram") == 0 || strcmp(s, "endfunction") == 0 + || strcmp(s, "endwhile") == 0 || strcmp(s, "endcase") == 0 + || strcmp(s, "endif") == 0 ) { + lev = -1; + } + + return lev; +} + + +static bool IsStreamCommentStyle(int style) { + return style == SCE_ESCRIPT_COMMENT || + style == SCE_ESCRIPT_COMMENTDOC || + style == SCE_ESCRIPT_COMMENTLINE; +} + +static void FoldESCRIPTDoc(unsigned int startPos, int length, int initStyle, WordList *[], Accessor &styler) { + //~ bool foldComment = styler.GetPropertyInt("fold.comment") != 0; + // Do not know how to fold the comment at the moment. + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + bool foldComment = true; + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = styler[startPos]; + int styleNext = styler.StyleAt(startPos); + int style = initStyle; + + int lastStart = 0; + char prevWord[32] = ""; + + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int stylePrev = style; + style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + + + if (foldComment && IsStreamCommentStyle(style)) { + if (!IsStreamCommentStyle(stylePrev)) { + levelCurrent++; + } else if (!IsStreamCommentStyle(styleNext) && !atEOL) { + // Comments don't end at end of line and the next character may be unstyled. + levelCurrent--; + } + } + + if (foldComment && (style == SCE_ESCRIPT_COMMENTLINE)) { + if ((ch == '/') && (chNext == '/')) { + char chNext2 = styler.SafeGetCharAt(i + 2); + if (chNext2 == '{') { + levelCurrent++; + } else if (chNext2 == '}') { + levelCurrent--; + } + } + } + + if (stylePrev == SCE_ESCRIPT_DEFAULT && style == SCE_ESCRIPT_WORD3) + { + // Store last word start point. + lastStart = i; + } + + if (style == SCE_ESCRIPT_WORD3) { + if(iswordchar(ch) && !iswordchar(chNext)) { + char s[32]; + unsigned int j; + for(j = 0; ( j < 31 ) && ( j < i-lastStart+1 ); j++) { + s[j] = static_cast(tolower(styler[lastStart + j])); + } + s[j] = '\0'; + levelCurrent += classifyFoldPointESCRIPT(s, prevWord); + strcpy(prevWord, s); + } + } + if (atEOL) { + int lev = levelPrev; + if (visibleChars == 0 && foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + strcpy(prevWord, ""); + } + + if (!isspacechar(ch)) + visibleChars++; + } + + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + + + +static const char * const ESCRIPTWordLists[] = { + "Primary keywords and identifiers", + "Intrinsic functions", + "Extended and user defined functions", + 0, +}; + +LexerModule lmESCRIPT(SCLEX_ESCRIPT, ColouriseESCRIPTDoc, "escript", FoldESCRIPTDoc, ESCRIPTWordLists); diff --git a/lexers/LexEiffel.cpp b/lexers/LexEiffel.cpp new file mode 100644 index 0000000..067801c --- /dev/null +++ b/lexers/LexEiffel.cpp @@ -0,0 +1,241 @@ +// Scintilla source code edit control +/** @file LexEiffel.cxx + ** Lexer for Eiffel. + **/ +// Copyright 1998-2001 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static inline bool isEiffelOperator(unsigned int ch) { + // '.' left out as it is used to make up numbers + return ch == '*' || ch == '/' || ch == '\\' || ch == '-' || ch == '+' || + ch == '(' || ch == ')' || ch == '=' || + ch == '{' || ch == '}' || ch == '~' || + ch == '[' || ch == ']' || ch == ';' || + ch == '<' || ch == '>' || ch == ',' || + ch == '.' || ch == '^' || ch == '%' || ch == ':' || + ch == '!' || ch == '@' || ch == '?'; +} + +static inline bool IsAWordChar(unsigned int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_'); +} + +static inline bool IsAWordStart(unsigned int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_'); +} + +static void ColouriseEiffelDoc(unsigned int startPos, + int length, + int initStyle, + WordList *keywordlists[], + Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + + if (sc.state == SCE_EIFFEL_STRINGEOL) { + if (sc.ch != '\r' && sc.ch != '\n') { + sc.SetState(SCE_EIFFEL_DEFAULT); + } + } else if (sc.state == SCE_EIFFEL_OPERATOR) { + sc.SetState(SCE_EIFFEL_DEFAULT); + } else if (sc.state == SCE_EIFFEL_WORD) { + if (!IsAWordChar(sc.ch)) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + if (!keywords.InList(s)) { + sc.ChangeState(SCE_EIFFEL_IDENTIFIER); + } + sc.SetState(SCE_EIFFEL_DEFAULT); + } + } else if (sc.state == SCE_EIFFEL_NUMBER) { + if (!IsAWordChar(sc.ch)) { + sc.SetState(SCE_EIFFEL_DEFAULT); + } + } else if (sc.state == SCE_EIFFEL_COMMENTLINE) { + if (sc.ch == '\r' || sc.ch == '\n') { + sc.SetState(SCE_EIFFEL_DEFAULT); + } + } else if (sc.state == SCE_EIFFEL_STRING) { + if (sc.ch == '%') { + sc.Forward(); + } else if (sc.ch == '\"') { + sc.Forward(); + sc.SetState(SCE_EIFFEL_DEFAULT); + } + } else if (sc.state == SCE_EIFFEL_CHARACTER) { + if (sc.ch == '\r' || sc.ch == '\n') { + sc.SetState(SCE_EIFFEL_STRINGEOL); + } else if (sc.ch == '%') { + sc.Forward(); + } else if (sc.ch == '\'') { + sc.Forward(); + sc.SetState(SCE_EIFFEL_DEFAULT); + } + } + + if (sc.state == SCE_EIFFEL_DEFAULT) { + if (sc.ch == '-' && sc.chNext == '-') { + sc.SetState(SCE_EIFFEL_COMMENTLINE); + } else if (sc.ch == '\"') { + sc.SetState(SCE_EIFFEL_STRING); + } else if (sc.ch == '\'') { + sc.SetState(SCE_EIFFEL_CHARACTER); + } else if (IsADigit(sc.ch) || (sc.ch == '.')) { + sc.SetState(SCE_EIFFEL_NUMBER); + } else if (IsAWordStart(sc.ch)) { + sc.SetState(SCE_EIFFEL_WORD); + } else if (isEiffelOperator(sc.ch)) { + sc.SetState(SCE_EIFFEL_OPERATOR); + } + } + } + sc.Complete(); +} + +static bool IsEiffelComment(Accessor &styler, int pos, int len) { + return len>1 && styler[pos]=='-' && styler[pos+1]=='-'; +} + +static void FoldEiffelDocIndent(unsigned int startPos, int length, int, + WordList *[], Accessor &styler) { + int lengthDoc = startPos + length; + + // Backtrack to previous line in case need to fix its fold status + int lineCurrent = styler.GetLine(startPos); + if (startPos > 0) { + if (lineCurrent > 0) { + lineCurrent--; + startPos = styler.LineStart(lineCurrent); + } + } + int spaceFlags = 0; + int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags, IsEiffelComment); + char chNext = styler[startPos]; + for (int i = startPos; i < lengthDoc; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + + if ((ch == '\r' && chNext != '\n') || (ch == '\n') || (i == lengthDoc)) { + int lev = indentCurrent; + int indentNext = styler.IndentAmount(lineCurrent + 1, &spaceFlags, IsEiffelComment); + if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) { + // Only non whitespace lines can be headers + if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext & SC_FOLDLEVELNUMBERMASK)) { + lev |= SC_FOLDLEVELHEADERFLAG; + } else if (indentNext & SC_FOLDLEVELWHITEFLAG) { + // Line after is blank so check the next - maybe should continue further? + int spaceFlags2 = 0; + int indentNext2 = styler.IndentAmount(lineCurrent + 2, &spaceFlags2, IsEiffelComment); + if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext2 & SC_FOLDLEVELNUMBERMASK)) { + lev |= SC_FOLDLEVELHEADERFLAG; + } + } + } + indentCurrent = indentNext; + styler.SetLevel(lineCurrent, lev); + lineCurrent++; + } + } +} + +static void FoldEiffelDocKeyWords(unsigned int startPos, int length, int /* initStyle */, WordList *[], + Accessor &styler) { + unsigned int lengthDoc = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = styler[startPos]; + int stylePrev = 0; + int styleNext = styler.StyleAt(startPos); + // lastDeferred should be determined by looking back to last keyword in case + // the "deferred" is on a line before "class" + bool lastDeferred = false; + for (unsigned int i = startPos; i < lengthDoc; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if ((stylePrev != SCE_EIFFEL_WORD) && (style == SCE_EIFFEL_WORD)) { + char s[20]; + unsigned int j = 0; + while ((j < (sizeof(s) - 1)) && (iswordchar(styler[i + j]))) { + s[j] = styler[i + j]; + j++; + } + s[j] = '\0'; + + if ( + (strcmp(s, "check") == 0) || + (strcmp(s, "debug") == 0) || + (strcmp(s, "deferred") == 0) || + (strcmp(s, "do") == 0) || + (strcmp(s, "from") == 0) || + (strcmp(s, "if") == 0) || + (strcmp(s, "inspect") == 0) || + (strcmp(s, "once") == 0) + ) + levelCurrent++; + if (!lastDeferred && (strcmp(s, "class") == 0)) + levelCurrent++; + if (strcmp(s, "end") == 0) + levelCurrent--; + lastDeferred = strcmp(s, "deferred") == 0; + } + + if (atEOL) { + int lev = levelPrev; + if (visibleChars == 0) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + } + if (!isspacechar(ch)) + visibleChars++; + stylePrev = style; + } + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + +static const char * const eiffelWordListDesc[] = { + "Keywords", + 0 +}; + +LexerModule lmEiffel(SCLEX_EIFFEL, ColouriseEiffelDoc, "eiffel", FoldEiffelDocIndent, eiffelWordListDesc); +LexerModule lmEiffelkw(SCLEX_EIFFELKW, ColouriseEiffelDoc, "eiffelkw", FoldEiffelDocKeyWords, eiffelWordListDesc); diff --git a/lexers/LexErlang.cpp b/lexers/LexErlang.cpp new file mode 100644 index 0000000..5f52258 --- /dev/null +++ b/lexers/LexErlang.cpp @@ -0,0 +1,623 @@ +// Scintilla source code edit control +// Copyright 1998-2001 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. +/** @file LexErlang.cxx + ** Lexer for Erlang. + ** Enhanced by Etienne 'Lenain' Girondel (lenaing@gmail.com) + ** Originally wrote by Peter-Henry Mander, + ** based on Matlab lexer by José Fonseca. + **/ + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static int is_radix(int radix, int ch) { + int digit; + + if (36 < radix || 2 > radix) + return 0; + + if (isdigit(ch)) { + digit = ch - '0'; + } else if (isalnum(ch)) { + digit = toupper(ch) - 'A' + 10; + } else { + return 0; + } + + return (digit < radix); +} + +typedef enum { + STATE_NULL, + COMMENT, + COMMENT_FUNCTION, + COMMENT_MODULE, + COMMENT_DOC, + COMMENT_DOC_MACRO, + ATOM_UNQUOTED, + ATOM_QUOTED, + NODE_NAME_UNQUOTED, + NODE_NAME_QUOTED, + MACRO_START, + MACRO_UNQUOTED, + MACRO_QUOTED, + RECORD_START, + RECORD_UNQUOTED, + RECORD_QUOTED, + NUMERAL_START, + NUMERAL_BASE_VALUE, + NUMERAL_FLOAT, + NUMERAL_EXPONENT, + PREPROCESSOR +} atom_parse_state_t; + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80) && (ch != ' ') && (isalnum(ch) || ch == '_'); +} + +static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle, + WordList *keywordlists[], Accessor &styler) { + + StyleContext sc(startPos, length, initStyle, styler); + WordList &reservedWords = *keywordlists[0]; + WordList &erlangBIFs = *keywordlists[1]; + WordList &erlangPreproc = *keywordlists[2]; + WordList &erlangModulesAtt = *keywordlists[3]; + WordList &erlangDoc = *keywordlists[4]; + WordList &erlangDocMacro = *keywordlists[5]; + int radix_digits = 0; + int exponent_digits = 0; + atom_parse_state_t parse_state = STATE_NULL; + atom_parse_state_t old_parse_state = STATE_NULL; + bool to_late_to_comment = false; + char cur[100]; + int old_style = SCE_ERLANG_DEFAULT; + + styler.StartAt(startPos); + + for (; sc.More(); sc.Forward()) { + int style = SCE_ERLANG_DEFAULT; + if (STATE_NULL != parse_state) { + + switch (parse_state) { + + case STATE_NULL : sc.SetState(SCE_ERLANG_DEFAULT); break; + + /* COMMENTS ------------------------------------------------------*/ + case COMMENT : { + if (sc.ch != '%') { + to_late_to_comment = true; + } else if (!to_late_to_comment && sc.ch == '%') { + // Switch to comment level 2 (Function) + sc.ChangeState(SCE_ERLANG_COMMENT_FUNCTION); + old_style = SCE_ERLANG_COMMENT_FUNCTION; + parse_state = COMMENT_FUNCTION; + sc.Forward(); + } + } + // V--- Falling through! + case COMMENT_FUNCTION : { + if (sc.ch != '%') { + to_late_to_comment = true; + } else if (!to_late_to_comment && sc.ch == '%') { + // Switch to comment level 3 (Module) + sc.ChangeState(SCE_ERLANG_COMMENT_MODULE); + old_style = SCE_ERLANG_COMMENT_MODULE; + parse_state = COMMENT_MODULE; + sc.Forward(); + } + } + // V--- Falling through! + case COMMENT_MODULE : { + if (parse_state != COMMENT) { + // Search for comment documentation + if (sc.chNext == '@') { + old_parse_state = parse_state; + parse_state = ('{' == sc.ch) + ? COMMENT_DOC_MACRO + : COMMENT_DOC; + sc.ForwardSetState(sc.state); + } + } + + // All comments types fall here. + if (sc.atLineEnd) { + to_late_to_comment = false; + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + case COMMENT_DOC : + // V--- Falling through! + case COMMENT_DOC_MACRO : { + + if (!isalnum(sc.ch)) { + // Try to match documentation comment + sc.GetCurrent(cur, sizeof(cur)); + + if (parse_state == COMMENT_DOC_MACRO + && erlangDocMacro.InList(cur)) { + sc.ChangeState(SCE_ERLANG_COMMENT_DOC_MACRO); + while (sc.ch != '}' && !sc.atLineEnd) + sc.Forward(); + } else if (erlangDoc.InList(cur)) { + sc.ChangeState(SCE_ERLANG_COMMENT_DOC); + } else { + sc.ChangeState(old_style); + } + + // Switch back to old state + sc.SetState(old_style); + parse_state = old_parse_state; + } + + if (sc.atLineEnd) { + to_late_to_comment = false; + sc.ChangeState(old_style); + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + /* -------------------------------------------------------------- */ + /* Atoms ---------------------------------------------------------*/ + case ATOM_UNQUOTED : { + if ('@' == sc.ch){ + parse_state = NODE_NAME_UNQUOTED; + } else if (sc.ch == ':') { + // Searching for module name + if (sc.chNext == ' ') { + // error + sc.ChangeState(SCE_ERLANG_UNKNOWN); + parse_state = STATE_NULL; + } else { + sc.Forward(); + if (isalnum(sc.ch)) { + sc.GetCurrent(cur, sizeof(cur)); + sc.ChangeState(SCE_ERLANG_MODULES); + sc.SetState(SCE_ERLANG_MODULES); + } + } + } else if (!IsAWordChar(sc.ch)) { + + sc.GetCurrent(cur, sizeof(cur)); + if (reservedWords.InList(cur)) { + style = SCE_ERLANG_KEYWORD; + } else if (erlangBIFs.InList(cur) + && strcmp(cur,"erlang:")){ + style = SCE_ERLANG_BIFS; + } else if (sc.ch == '(' || '/' == sc.ch){ + style = SCE_ERLANG_FUNCTION_NAME; + } else { + style = SCE_ERLANG_ATOM; + } + + sc.ChangeState(style); + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + + } break; + + case ATOM_QUOTED : { + if ( '@' == sc.ch ){ + parse_state = NODE_NAME_QUOTED; + } else if ('\'' == sc.ch && '\\' != sc.chPrev) { + sc.ChangeState(SCE_ERLANG_ATOM); + sc.ForwardSetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + /* -------------------------------------------------------------- */ + /* Node names ----------------------------------------------------*/ + case NODE_NAME_UNQUOTED : { + if ('@' == sc.ch) { + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } else if (!IsAWordChar(sc.ch)) { + sc.ChangeState(SCE_ERLANG_NODE_NAME); + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + case NODE_NAME_QUOTED : { + if ('@' == sc.ch) { + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } else if ('\'' == sc.ch && '\\' != sc.chPrev) { + sc.ChangeState(SCE_ERLANG_NODE_NAME_QUOTED); + sc.ForwardSetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + /* -------------------------------------------------------------- */ + /* Records -------------------------------------------------------*/ + case RECORD_START : { + if ('\'' == sc.ch) { + parse_state = RECORD_QUOTED; + } else if (isalpha(sc.ch) && islower(sc.ch)) { + parse_state = RECORD_UNQUOTED; + } else { // error + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + case RECORD_UNQUOTED : { + if (!IsAWordChar(sc.ch)) { + sc.ChangeState(SCE_ERLANG_RECORD); + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + case RECORD_QUOTED : { + if ('\'' == sc.ch && '\\' != sc.chPrev) { + sc.ChangeState(SCE_ERLANG_RECORD_QUOTED); + sc.ForwardSetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + /* -------------------------------------------------------------- */ + /* Macros --------------------------------------------------------*/ + case MACRO_START : { + if ('\'' == sc.ch) { + parse_state = MACRO_QUOTED; + } else if (isalpha(sc.ch)) { + parse_state = MACRO_UNQUOTED; + } else { // error + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + case MACRO_UNQUOTED : { + if (!IsAWordChar(sc.ch)) { + sc.ChangeState(SCE_ERLANG_MACRO); + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + case MACRO_QUOTED : { + if ('\'' == sc.ch && '\\' != sc.chPrev) { + sc.ChangeState(SCE_ERLANG_MACRO_QUOTED); + sc.ForwardSetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + /* -------------------------------------------------------------- */ + /* Numerics ------------------------------------------------------*/ + /* Simple integer */ + case NUMERAL_START : { + if (isdigit(sc.ch)) { + radix_digits *= 10; + radix_digits += sc.ch - '0'; // Assuming ASCII here! + } else if ('#' == sc.ch) { + if (2 > radix_digits || 36 < radix_digits) { + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } else { + parse_state = NUMERAL_BASE_VALUE; + } + } else if ('.' == sc.ch && isdigit(sc.chNext)) { + radix_digits = 0; + parse_state = NUMERAL_FLOAT; + } else if ('e' == sc.ch || 'E' == sc.ch) { + exponent_digits = 0; + parse_state = NUMERAL_EXPONENT; + } else { + radix_digits = 0; + sc.ChangeState(SCE_ERLANG_NUMBER); + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + /* Integer in other base than 10 (x#yyy) */ + case NUMERAL_BASE_VALUE : { + if (!is_radix(radix_digits,sc.ch)) { + radix_digits = 0; + + if (!isalnum(sc.ch)) + sc.ChangeState(SCE_ERLANG_NUMBER); + + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + /* Float (x.yyy) */ + case NUMERAL_FLOAT : { + if ('e' == sc.ch || 'E' == sc.ch) { + exponent_digits = 0; + parse_state = NUMERAL_EXPONENT; + } else if (!isdigit(sc.ch)) { + sc.ChangeState(SCE_ERLANG_NUMBER); + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + /* Exponent, either integer or float (xEyy, x.yyEzzz) */ + case NUMERAL_EXPONENT : { + if (('-' == sc.ch || '+' == sc.ch) + && (isdigit(sc.chNext))) { + sc.Forward(); + } else if (!isdigit(sc.ch)) { + if (0 < exponent_digits) + sc.ChangeState(SCE_ERLANG_NUMBER); + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } else { + ++exponent_digits; + } + } break; + + /* -------------------------------------------------------------- */ + /* Preprocessor --------------------------------------------------*/ + case PREPROCESSOR : { + if (!IsAWordChar(sc.ch)) { + + sc.GetCurrent(cur, sizeof(cur)); + if (erlangPreproc.InList(cur)) { + style = SCE_ERLANG_PREPROC; + } else if (erlangModulesAtt.InList(cur)) { + style = SCE_ERLANG_MODULES_ATT; + } + + sc.ChangeState(style); + sc.SetState(SCE_ERLANG_DEFAULT); + parse_state = STATE_NULL; + } + } break; + + } + + } /* End of : STATE_NULL != parse_state */ + else + { + switch (sc.state) { + case SCE_ERLANG_VARIABLE : { + if (!IsAWordChar(sc.ch)) + sc.SetState(SCE_ERLANG_DEFAULT); + } break; + case SCE_ERLANG_STRING : { + if (sc.ch == '\"' && sc.chPrev != '\\') + sc.ForwardSetState(SCE_ERLANG_DEFAULT); + } break; + case SCE_ERLANG_COMMENT : { + if (sc.atLineEnd) + sc.SetState(SCE_ERLANG_DEFAULT); + } break; + case SCE_ERLANG_CHARACTER : { + if (sc.chPrev == '\\') { + sc.ForwardSetState(SCE_ERLANG_DEFAULT); + } else if (sc.ch != '\\') { + sc.ForwardSetState(SCE_ERLANG_DEFAULT); + } + } break; + case SCE_ERLANG_OPERATOR : { + if (sc.chPrev == '.') { + if (sc.ch == '*' || sc.ch == '/' || sc.ch == '\\' + || sc.ch == '^') { + sc.ForwardSetState(SCE_ERLANG_DEFAULT); + } else if (sc.ch == '\'') { + sc.ForwardSetState(SCE_ERLANG_DEFAULT); + } else { + sc.SetState(SCE_ERLANG_DEFAULT); + } + } else { + sc.SetState(SCE_ERLANG_DEFAULT); + } + } break; + } + } + + if (sc.state == SCE_ERLANG_DEFAULT) { + bool no_new_state = false; + + switch (sc.ch) { + case '\"' : sc.SetState(SCE_ERLANG_STRING); break; + case '$' : sc.SetState(SCE_ERLANG_CHARACTER); break; + case '%' : { + parse_state = COMMENT; + sc.SetState(SCE_ERLANG_COMMENT); + } break; + case '#' : { + parse_state = RECORD_START; + sc.SetState(SCE_ERLANG_UNKNOWN); + } break; + case '?' : { + parse_state = MACRO_START; + sc.SetState(SCE_ERLANG_UNKNOWN); + } break; + case '\'' : { + parse_state = ATOM_QUOTED; + sc.SetState(SCE_ERLANG_UNKNOWN); + } break; + case '+' : + case '-' : { + if (IsADigit(sc.chNext)) { + parse_state = NUMERAL_START; + radix_digits = 0; + sc.SetState(SCE_ERLANG_UNKNOWN); + } else if (sc.ch != '+') { + parse_state = PREPROCESSOR; + sc.SetState(SCE_ERLANG_UNKNOWN); + } + } break; + default : no_new_state = true; + } + + if (no_new_state) { + if (isdigit(sc.ch)) { + parse_state = NUMERAL_START; + radix_digits = sc.ch - '0'; + sc.SetState(SCE_ERLANG_UNKNOWN); + } else if (isupper(sc.ch) || '_' == sc.ch) { + sc.SetState(SCE_ERLANG_VARIABLE); + } else if (isalpha(sc.ch)) { + parse_state = ATOM_UNQUOTED; + sc.SetState(SCE_ERLANG_UNKNOWN); + } else if (isoperator(static_cast(sc.ch)) + || sc.ch == '\\') { + sc.SetState(SCE_ERLANG_OPERATOR); + } + } + } + + } + sc.Complete(); +} + +static int ClassifyErlangFoldPoint( + Accessor &styler, + int styleNext, + int keyword_start +) { + int lev = 0; + if (styler.Match(keyword_start,"case") + || ( + styler.Match(keyword_start,"fun") + && (SCE_ERLANG_FUNCTION_NAME != styleNext) + ) + || styler.Match(keyword_start,"if") + || styler.Match(keyword_start,"query") + || styler.Match(keyword_start,"receive") + ) { + ++lev; + } else if (styler.Match(keyword_start,"end")) { + --lev; + } + + return lev; +} + +static void FoldErlangDoc( + unsigned int startPos, int length, int initStyle, + WordList** /*keywordlists*/, Accessor &styler +) { + unsigned int endPos = startPos + length; + int currentLine = styler.GetLine(startPos); + int lev; + int previousLevel = styler.LevelAt(currentLine) & SC_FOLDLEVELNUMBERMASK; + int currentLevel = previousLevel; + int styleNext = styler.StyleAt(startPos); + int style = initStyle; + int stylePrev; + int keyword_start = 0; + char ch; + char chNext = styler.SafeGetCharAt(startPos); + bool atEOL; + + for (unsigned int i = startPos; i < endPos; i++) { + ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + + // Get styles + stylePrev = style; + style = styleNext; + styleNext = styler.StyleAt(i + 1); + atEOL = ((ch == '\r') && (chNext != '\n')) || (ch == '\n'); + + if (stylePrev != SCE_ERLANG_KEYWORD + && style == SCE_ERLANG_KEYWORD) { + keyword_start = i; + } + + // Fold on keywords + if (stylePrev == SCE_ERLANG_KEYWORD + && style != SCE_ERLANG_KEYWORD + && style != SCE_ERLANG_ATOM + ) { + currentLevel += ClassifyErlangFoldPoint(styler, + styleNext, + keyword_start); + } + + // Fold on comments + if (style == SCE_ERLANG_COMMENT + || style == SCE_ERLANG_COMMENT_MODULE + || style == SCE_ERLANG_COMMENT_FUNCTION) { + + if (ch == '%' && chNext == '{') { + currentLevel++; + } else if (ch == '%' && chNext == '}') { + currentLevel--; + } + } + + // Fold on braces + if (style == SCE_ERLANG_OPERATOR) { + if (ch == '{' || ch == '(' || ch == '[') { + currentLevel++; + } else if (ch == '}' || ch == ')' || ch == ']') { + currentLevel--; + } + } + + + if (atEOL) { + lev = previousLevel; + + if (currentLevel > previousLevel) + lev |= SC_FOLDLEVELHEADERFLAG; + + if (lev != styler.LevelAt(currentLine)) + styler.SetLevel(currentLine, lev); + + currentLine++; + previousLevel = currentLevel; + } + + } + + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + styler.SetLevel(currentLine, + previousLevel + | (styler.LevelAt(currentLine) & ~SC_FOLDLEVELNUMBERMASK)); +} + +static const char * const erlangWordListDesc[] = { + "Erlang Reserved words", + "Erlang BIFs", + "Erlang Preprocessor", + "Erlang Module Attributes", + "Erlang Documentation", + "Erlang Documentation Macro", + 0 +}; + +LexerModule lmErlang( + SCLEX_ERLANG, + ColouriseErlangDoc, + "erlang", + FoldErlangDoc, + erlangWordListDesc); diff --git a/lexers/LexFlagship.cpp b/lexers/LexFlagship.cpp new file mode 100644 index 0000000..b8568b0 --- /dev/null +++ b/lexers/LexFlagship.cpp @@ -0,0 +1,354 @@ +// Scintilla source code edit control +/** @file LexFlagShip.cxx + ** Lexer for Harbour and FlagShip. + ** (Syntactically compatible to other xBase dialects, like Clipper, dBase, Clip, FoxPro etc.) + **/ +// Copyright 2005 by Randy Butler +// Copyright 2010 by Xavi (Harbour) +// Copyright 1998-2003 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +// Extended to accept accented characters +static inline bool IsAWordChar(int ch) +{ + return ch >= 0x80 || + (isalnum(ch) || ch == '_'); +} + +static void ColouriseFlagShipDoc(unsigned int startPos, int length, int initStyle, + WordList *keywordlists[], Accessor &styler) +{ + + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + WordList &keywords3 = *keywordlists[2]; + WordList &keywords4 = *keywordlists[3]; + WordList &keywords5 = *keywordlists[4]; + + // property lexer.flagship.styling.within.preprocessor + // For Harbour code, determines whether all preprocessor code is styled in the preprocessor style (0) or only from the + // initial # to the end of the command word(1, the default). It also determines how to present text, dump, and disabled code. + bool stylingWithinPreprocessor = styler.GetPropertyInt("lexer.flagship.styling.within.preprocessor", 1) != 0; + + CharacterSet setDoxygen(CharacterSet::setAlpha, "$@\\&<>#{}[]"); + + int visibleChars = 0; + int closeStringChar = 0; + int styleBeforeDCKeyword = SCE_FS_DEFAULT; + bool bEnableCode = initStyle < SCE_FS_DISABLEDCODE; + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + + // Determine if the current state should terminate. + switch (sc.state) { + case SCE_FS_OPERATOR: + case SCE_FS_OPERATOR_C: + case SCE_FS_WORDOPERATOR: + sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); + break; + case SCE_FS_IDENTIFIER: + case SCE_FS_IDENTIFIER_C: + if (!IsAWordChar(sc.ch)) { + char s[64]; + sc.GetCurrentLowered(s, sizeof(s)); + if (keywords.InList(s)) { + sc.ChangeState(bEnableCode ? SCE_FS_KEYWORD : SCE_FS_KEYWORD_C); + } else if (keywords2.InList(s)) { + sc.ChangeState(bEnableCode ? SCE_FS_KEYWORD2 : SCE_FS_KEYWORD2_C); + } else if (bEnableCode && keywords3.InList(s)) { + sc.ChangeState(SCE_FS_KEYWORD3); + } else if (bEnableCode && keywords4.InList(s)) { + sc.ChangeState(SCE_FS_KEYWORD4); + }// Else, it is really an identifier... + sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); + } + break; + case SCE_FS_NUMBER: + if (!IsAWordChar(sc.ch) && !(sc.ch == '.' && IsADigit(sc.chNext))) { + sc.SetState(SCE_FS_DEFAULT); + } + break; + case SCE_FS_NUMBER_C: + if (!IsAWordChar(sc.ch) && sc.ch != '.') { + sc.SetState(SCE_FS_DEFAULT_C); + } + break; + case SCE_FS_CONSTANT: + if (!IsAWordChar(sc.ch)) { + sc.SetState(SCE_FS_DEFAULT); + } + break; + case SCE_FS_STRING: + case SCE_FS_STRING_C: + if (sc.ch == closeStringChar) { + sc.ForwardSetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); + } else if (sc.atLineEnd) { + sc.ChangeState(bEnableCode ? SCE_FS_STRINGEOL : SCE_FS_STRINGEOL_C); + } + break; + case SCE_FS_STRINGEOL: + case SCE_FS_STRINGEOL_C: + if (sc.atLineStart) { + sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); + } + break; + case SCE_FS_COMMENTDOC: + case SCE_FS_COMMENTDOC_C: + if (sc.Match('*', '/')) { + sc.Forward(); + sc.ForwardSetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); + } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support + // Verify that we have the conditions to mark a comment-doc-keyword + if ((IsASpace(sc.chPrev) || sc.chPrev == '*') && (!IsASpace(sc.chNext))) { + styleBeforeDCKeyword = bEnableCode ? SCE_FS_COMMENTDOC : SCE_FS_COMMENTDOC_C; + sc.SetState(SCE_FS_COMMENTDOCKEYWORD); + } + } + break; + case SCE_FS_COMMENT: + case SCE_FS_COMMENTLINE: + if (sc.atLineStart) { + sc.SetState(SCE_FS_DEFAULT); + } + break; + case SCE_FS_COMMENTLINEDOC: + case SCE_FS_COMMENTLINEDOC_C: + if (sc.atLineStart) { + sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); + } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support + // Verify that we have the conditions to mark a comment-doc-keyword + if ((IsASpace(sc.chPrev) || sc.chPrev == '/' || sc.chPrev == '!') && (!IsASpace(sc.chNext))) { + styleBeforeDCKeyword = bEnableCode ? SCE_FS_COMMENTLINEDOC : SCE_FS_COMMENTLINEDOC_C; + sc.SetState(SCE_FS_COMMENTDOCKEYWORD); + } + } + break; + case SCE_FS_COMMENTDOCKEYWORD: + if ((styleBeforeDCKeyword == SCE_FS_COMMENTDOC || styleBeforeDCKeyword == SCE_FS_COMMENTDOC_C) && + sc.Match('*', '/')) { + sc.ChangeState(SCE_FS_COMMENTDOCKEYWORDERROR); + sc.Forward(); + sc.ForwardSetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); + } else if (!setDoxygen.Contains(sc.ch)) { + char s[64]; + sc.GetCurrentLowered(s, sizeof(s)); + if (!IsASpace(sc.ch) || !keywords5.InList(s + 1)) { + sc.ChangeState(SCE_FS_COMMENTDOCKEYWORDERROR); + } + sc.SetState(styleBeforeDCKeyword); + } + break; + case SCE_FS_PREPROCESSOR: + case SCE_FS_PREPROCESSOR_C: + if (sc.atLineEnd) { + if (!(sc.chPrev == ';' || sc.GetRelative(-2) == ';')) { + sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); + } + } else if (stylingWithinPreprocessor) { + if (IsASpaceOrTab(sc.ch)) { + sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); + } + } else if (sc.Match('/', '*') || sc.Match('/', '/') || sc.Match('&', '&')) { + sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); + } + break; + case SCE_FS_DISABLEDCODE: + if (sc.ch == '#' && visibleChars == 0) { + sc.SetState(bEnableCode ? SCE_FS_PREPROCESSOR : SCE_FS_PREPROCESSOR_C); + do { // Skip whitespace between # and preprocessor word + sc.Forward(); + } while (IsASpaceOrTab(sc.ch) && sc.More()); + if (sc.MatchIgnoreCase("pragma")) { + sc.Forward(6); + do { // Skip more whitespace until keyword + sc.Forward(); + } while (IsASpaceOrTab(sc.ch) && sc.More()); + if (sc.MatchIgnoreCase("enddump") || sc.MatchIgnoreCase("__endtext")) { + bEnableCode = true; + sc.SetState(SCE_FS_DISABLEDCODE); + sc.Forward(sc.ch == '_' ? 8 : 6); + sc.ForwardSetState(SCE_FS_DEFAULT); + } else { + sc.ChangeState(SCE_FS_DISABLEDCODE); + } + } else { + sc.ChangeState(SCE_FS_DISABLEDCODE); + } + } + break; + case SCE_FS_DATE: + if (sc.ch == '}') { + sc.ForwardSetState(SCE_FS_DEFAULT); + } else if (sc.atLineEnd) { + sc.ChangeState(SCE_FS_STRINGEOL); + } + } + + // Determine if a new state should be entered. + if (sc.state == SCE_FS_DEFAULT || sc.state == SCE_FS_DEFAULT_C) { + if (bEnableCode && + (sc.MatchIgnoreCase(".and.") || sc.MatchIgnoreCase(".not."))) { + sc.SetState(SCE_FS_WORDOPERATOR); + sc.Forward(4); + } else if (bEnableCode && sc.MatchIgnoreCase(".or.")) { + sc.SetState(SCE_FS_WORDOPERATOR); + sc.Forward(3); + } else if (bEnableCode && + (sc.MatchIgnoreCase(".t.") || sc.MatchIgnoreCase(".f.") || + (!IsAWordChar(sc.GetRelative(3)) && sc.MatchIgnoreCase("nil")))) { + sc.SetState(SCE_FS_CONSTANT); + sc.Forward(2); + } else if (sc.Match('/', '*')) { + sc.SetState(bEnableCode ? SCE_FS_COMMENTDOC : SCE_FS_COMMENTDOC_C); + sc.Forward(); + } else if (bEnableCode && sc.Match('&', '&')) { + sc.SetState(SCE_FS_COMMENTLINE); + sc.Forward(); + } else if (sc.Match('/', '/')) { + sc.SetState(bEnableCode ? SCE_FS_COMMENTLINEDOC : SCE_FS_COMMENTLINEDOC_C); + sc.Forward(); + } else if (bEnableCode && sc.ch == '*' && visibleChars == 0) { + sc.SetState(SCE_FS_COMMENT); + } else if (sc.ch == '\"' || sc.ch == '\'') { + sc.SetState(bEnableCode ? SCE_FS_STRING : SCE_FS_STRING_C); + closeStringChar = sc.ch; + } else if (closeStringChar == '>' && sc.ch == '<') { + sc.SetState(bEnableCode ? SCE_FS_STRING : SCE_FS_STRING_C); + } else if (sc.ch == '#' && visibleChars == 0) { + sc.SetState(bEnableCode ? SCE_FS_PREPROCESSOR : SCE_FS_PREPROCESSOR_C); + do { // Skip whitespace between # and preprocessor word + sc.Forward(); + } while (IsASpaceOrTab(sc.ch) && sc.More()); + if (sc.atLineEnd) { + sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); + } else if (sc.MatchIgnoreCase("include")) { + if (stylingWithinPreprocessor) { + closeStringChar = '>'; + } + } else if (sc.MatchIgnoreCase("pragma")) { + sc.Forward(6); + do { // Skip more whitespace until keyword + sc.Forward(); + } while (IsASpaceOrTab(sc.ch) && sc.More()); + if (sc.MatchIgnoreCase("begindump") || sc.MatchIgnoreCase("__cstream")) { + bEnableCode = false; + if (stylingWithinPreprocessor) { + sc.SetState(SCE_FS_DISABLEDCODE); + sc.Forward(8); + sc.ForwardSetState(SCE_FS_DEFAULT_C); + } else { + sc.SetState(SCE_FS_DISABLEDCODE); + } + } else if (sc.MatchIgnoreCase("enddump") || sc.MatchIgnoreCase("__endtext")) { + bEnableCode = true; + sc.SetState(SCE_FS_DISABLEDCODE); + sc.Forward(sc.ch == '_' ? 8 : 6); + sc.ForwardSetState(SCE_FS_DEFAULT); + } + } + } else if (bEnableCode && sc.ch == '{') { + int p = 0; + int chSeek; + unsigned int endPos(startPos + length); + do { // Skip whitespace + chSeek = sc.GetRelative(++p); + } while (IsASpaceOrTab(chSeek) && (sc.currentPos + p < endPos)); + if (chSeek == '^') { + sc.SetState(SCE_FS_DATE); + } else { + sc.SetState(SCE_FS_OPERATOR); + } + } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { + sc.SetState(bEnableCode ? SCE_FS_NUMBER : SCE_FS_NUMBER_C); + } else if (IsAWordChar(sc.ch)) { + sc.SetState(bEnableCode ? SCE_FS_IDENTIFIER : SCE_FS_IDENTIFIER_C); + } else if (isoperator(static_cast(sc.ch)) || (bEnableCode && sc.ch == '@')) { + sc.SetState(bEnableCode ? SCE_FS_OPERATOR : SCE_FS_OPERATOR_C); + } + } + + if (sc.atLineEnd) { + visibleChars = 0; + closeStringChar = 0; + } + if (!IsASpace(sc.ch)) { + visibleChars++; + } + } + sc.Complete(); +} + +static void FoldFlagShipDoc(unsigned int startPos, int length, int, + WordList *[], Accessor &styler) +{ + + int endPos = startPos + length; + + // Backtrack to previous line in case need to fix its fold status + int lineCurrent = styler.GetLine(startPos); + if (startPos > 0 && lineCurrent > 0) { + lineCurrent--; + startPos = styler.LineStart(lineCurrent); + } + int spaceFlags = 0; + int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags); + char chNext = styler[startPos]; + for (int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + + if ((ch == '\r' && chNext != '\n') || (ch == '\n') || (i == endPos-1)) { + int lev = indentCurrent; + int indentNext = styler.IndentAmount(lineCurrent + 1, &spaceFlags); + if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) { + if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext & SC_FOLDLEVELNUMBERMASK)) { + lev |= SC_FOLDLEVELHEADERFLAG; + } else if (indentNext & SC_FOLDLEVELWHITEFLAG) { + int spaceFlags2 = 0; + int indentNext2 = styler.IndentAmount(lineCurrent + 2, &spaceFlags2); + if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext2 & SC_FOLDLEVELNUMBERMASK)) { + lev |= SC_FOLDLEVELHEADERFLAG; + } + } + } + indentCurrent = indentNext; + styler.SetLevel(lineCurrent, lev); + lineCurrent++; + } + } +} + +static const char * const FSWordListDesc[] = { + "Keywords Commands", + "Std Library Functions", + "Procedure, return, exit", + "Class (oop)", + "Doxygen keywords", + 0 +}; + +LexerModule lmFlagShip(SCLEX_FLAGSHIP, ColouriseFlagShipDoc, "flagship", FoldFlagShipDoc, FSWordListDesc); diff --git a/lexers/LexForth.cpp b/lexers/LexForth.cpp new file mode 100644 index 0000000..c9c7262 --- /dev/null +++ b/lexers/LexForth.cpp @@ -0,0 +1,179 @@ +// Scintilla source code edit control +/** @file LexForth.cxx + ** Lexer for FORTH + **/ +// Copyright 1998-2003 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static inline bool IsAWordChar(int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '.' || + ch == '_' || ch == '?' || ch == '"' || ch == '@' || + ch == '!' || ch == '[' || ch == ']' || ch == '/' || + ch == '+' || ch == '-' || ch == '*' || ch == '<' || + ch == '>' || ch == '=' || ch == ';' || ch == '(' || + ch == ')' ); +} + +static inline bool IsAWordStart(int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '.'); +} + +static inline bool IsANumChar(int ch) { + return (ch < 0x80) && (isxdigit(ch) || ch == '.' || ch == 'e' || ch == 'E' ); +} + +static inline bool IsASpaceChar(int ch) { + return (ch < 0x80) && isspace(ch); +} + +static void ColouriseForthDoc(unsigned int startPos, int length, int initStyle, WordList *keywordLists[], + Accessor &styler) { + + WordList &control = *keywordLists[0]; + WordList &keyword = *keywordLists[1]; + WordList &defword = *keywordLists[2]; + WordList &preword1 = *keywordLists[3]; + WordList &preword2 = *keywordLists[4]; + WordList &strings = *keywordLists[5]; + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) + { + // Determine if the current state should terminate. + if (sc.state == SCE_FORTH_COMMENT) { + if (sc.atLineEnd) { + sc.SetState(SCE_FORTH_DEFAULT); + } + }else if (sc.state == SCE_FORTH_COMMENT_ML) { + if (sc.ch == ')') { + sc.ForwardSetState(SCE_FORTH_DEFAULT); + } + }else if (sc.state == SCE_FORTH_IDENTIFIER || sc.state == SCE_FORTH_NUMBER) { + // handle numbers here too, because what we thought was a number might + // turn out to be a keyword e.g. 2DUP + if (IsASpaceChar(sc.ch) ) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + int newState = sc.state == SCE_FORTH_NUMBER ? SCE_FORTH_NUMBER : SCE_FORTH_DEFAULT; + if (control.InList(s)) { + sc.ChangeState(SCE_FORTH_CONTROL); + } else if (keyword.InList(s)) { + sc.ChangeState(SCE_FORTH_KEYWORD); + } else if (defword.InList(s)) { + sc.ChangeState(SCE_FORTH_DEFWORD); + } else if (preword1.InList(s)) { + sc.ChangeState(SCE_FORTH_PREWORD1); + } else if (preword2.InList(s)) { + sc.ChangeState(SCE_FORTH_PREWORD2); + } else if (strings.InList(s)) { + sc.ChangeState(SCE_FORTH_STRING); + newState = SCE_FORTH_STRING; + } + sc.SetState(newState); + } + if (sc.state == SCE_FORTH_NUMBER) { + if (IsASpaceChar(sc.ch)) { + sc.SetState(SCE_FORTH_DEFAULT); + } else if (!IsANumChar(sc.ch)) { + sc.ChangeState(SCE_FORTH_IDENTIFIER); + } + } + }else if (sc.state == SCE_FORTH_STRING) { + if (sc.ch == '\"') { + sc.ForwardSetState(SCE_FORTH_DEFAULT); + } + }else if (sc.state == SCE_FORTH_LOCALE) { + if (sc.ch == '}') { + sc.ForwardSetState(SCE_FORTH_DEFAULT); + } + }else if (sc.state == SCE_FORTH_DEFWORD) { + if (IsASpaceChar(sc.ch)) { + sc.SetState(SCE_FORTH_DEFAULT); + } + } + + // Determine if a new state should be entered. + if (sc.state == SCE_FORTH_DEFAULT) { + if (sc.ch == '\\'){ + sc.SetState(SCE_FORTH_COMMENT); + } else if (sc.ch == '(' && + (sc.atLineStart || IsASpaceChar(sc.chPrev)) && + (sc.atLineEnd || IsASpaceChar(sc.chNext))) { + sc.SetState(SCE_FORTH_COMMENT_ML); + } else if ( (sc.ch == '$' && (IsASCII(sc.chNext) && isxdigit(sc.chNext))) ) { + // number starting with $ is a hex number + sc.SetState(SCE_FORTH_NUMBER); + while(sc.More() && IsASCII(sc.chNext) && isxdigit(sc.chNext)) + sc.Forward(); + } else if ( (sc.ch == '%' && (IsASCII(sc.chNext) && (sc.chNext == '0' || sc.chNext == '1'))) ) { + // number starting with % is binary + sc.SetState(SCE_FORTH_NUMBER); + while(sc.More() && IsASCII(sc.chNext) && (sc.chNext == '0' || sc.chNext == '1')) + sc.Forward(); + } else if ( IsASCII(sc.ch) && + (isxdigit(sc.ch) || ((sc.ch == '.' || sc.ch == '-') && IsASCII(sc.chNext) && isxdigit(sc.chNext)) ) + ){ + sc.SetState(SCE_FORTH_NUMBER); + } else if (IsAWordStart(sc.ch)) { + sc.SetState(SCE_FORTH_IDENTIFIER); + } else if (sc.ch == '{') { + sc.SetState(SCE_FORTH_LOCALE); + } else if (sc.ch == ':' && IsASCII(sc.chNext) && isspace(sc.chNext)) { + // highlight word definitions e.g. : GCD ( n n -- n ) ..... ; + // ^ ^^^ + sc.SetState(SCE_FORTH_DEFWORD); + while(sc.More() && IsASCII(sc.chNext) && isspace(sc.chNext)) + sc.Forward(); + } else if (sc.ch == ';' && + (sc.atLineStart || IsASpaceChar(sc.chPrev)) && + (sc.atLineEnd || IsASpaceChar(sc.chNext)) ) { + // mark the ';' that ends a word + sc.SetState(SCE_FORTH_DEFWORD); + sc.ForwardSetState(SCE_FORTH_DEFAULT); + } + } + + } + sc.Complete(); +} + +static void FoldForthDoc(unsigned int, int, int, WordList *[], + Accessor &) { +} + +static const char * const forthWordLists[] = { + "control keywords", + "keywords", + "definition words", + "prewords with one argument", + "prewords with two arguments", + "string definition keywords", + 0, + }; + +LexerModule lmForth(SCLEX_FORTH, ColouriseForthDoc, "forth", FoldForthDoc, forthWordLists); + + diff --git a/lexers/LexFortran.cpp b/lexers/LexFortran.cpp new file mode 100644 index 0000000..bfbe301 --- /dev/null +++ b/lexers/LexFortran.cpp @@ -0,0 +1,484 @@ +// Scintilla source code edit control +/** @file LexFortran.cxx + ** Lexer for Fortran. + ** Writen by Chuan-jian Shen, Last changed Sep. 2003 + **/ +// Copyright 1998-2001 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. +/***************************************/ +#include +#include +#include +#include +#include +#include +/***************************************/ +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" +/***************************************/ + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +/***********************************************/ +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '%'); +} +/**********************************************/ +static inline bool IsAWordStart(const int ch) { + return (ch < 0x80) && (isalnum(ch)); +} +/***************************************/ +inline bool IsABlank(unsigned int ch) { + return (ch == ' ') || (ch == 0x09) || (ch == 0x0b) ; +} +/***************************************/ +inline bool IsALineEnd(char ch) { + return ((ch == '\n') || (ch == '\r')) ; +} +/***************************************/ +unsigned int GetContinuedPos(unsigned int pos, Accessor &styler) { + while (!IsALineEnd(styler.SafeGetCharAt(pos++))) continue; + if (styler.SafeGetCharAt(pos) == '\n') pos++; + while (IsABlank(styler.SafeGetCharAt(pos++))) continue; + char chCur = styler.SafeGetCharAt(pos); + if (chCur == '&') { + while (IsABlank(styler.SafeGetCharAt(++pos))) continue; + return pos; + } else { + return pos; + } +} +/***************************************/ +static void ColouriseFortranDoc(unsigned int startPos, int length, int initStyle, + WordList *keywordlists[], Accessor &styler, bool isFixFormat) { + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + WordList &keywords3 = *keywordlists[2]; + /***************************************/ + int posLineStart = 0, numNonBlank = 0, prevState = 0; + int endPos = startPos + length; + /***************************************/ + // backtrack to the nearest keyword + while ((startPos > 1) && (styler.StyleAt(startPos) != SCE_F_WORD)) { + startPos--; + } + startPos = styler.LineStart(styler.GetLine(startPos)); + initStyle = styler.StyleAt(startPos - 1); + StyleContext sc(startPos, endPos-startPos, initStyle, styler); + /***************************************/ + for (; sc.More(); sc.Forward()) { + // remember the start position of the line + if (sc.atLineStart) { + posLineStart = sc.currentPos; + numNonBlank = 0; + sc.SetState(SCE_F_DEFAULT); + } + if (!IsASpaceOrTab(sc.ch)) numNonBlank ++; + /***********************************************/ + // Handle the fix format generically + int toLineStart = sc.currentPos - posLineStart; + if (isFixFormat && (toLineStart < 6 || toLineStart >= 72)) { + if ((toLineStart == 0 && (tolower(sc.ch) == 'c' || sc.ch == '*')) || sc.ch == '!') { + if (sc.MatchIgnoreCase("cdec$") || sc.MatchIgnoreCase("*dec$") || sc.MatchIgnoreCase("!dec$") || + sc.MatchIgnoreCase("cdir$") || sc.MatchIgnoreCase("*dir$") || sc.MatchIgnoreCase("!dir$") || + sc.MatchIgnoreCase("cms$") || sc.MatchIgnoreCase("*ms$") || sc.MatchIgnoreCase("!ms$") || + sc.chNext == '$') { + sc.SetState(SCE_F_PREPROCESSOR); + } else { + sc.SetState(SCE_F_COMMENT); + } + + while (!sc.atLineEnd && sc.More()) sc.Forward(); // Until line end + } else if (toLineStart >= 72) { + sc.SetState(SCE_F_COMMENT); + while (!sc.atLineEnd && sc.More()) sc.Forward(); // Until line end + } else if (toLineStart < 5) { + if (IsADigit(sc.ch)) + sc.SetState(SCE_F_LABEL); + else + sc.SetState(SCE_F_DEFAULT); + } else if (toLineStart == 5) { + //if (!IsASpace(sc.ch) && sc.ch != '0') { + if (sc.ch != '\r' && sc.ch != '\n') { + sc.SetState(SCE_F_CONTINUATION); + if (!IsASpace(sc.ch) && sc.ch != '0') + sc.ForwardSetState(prevState); + } else + sc.SetState(SCE_F_DEFAULT); + } + continue; + } + /***************************************/ + // Hanndle preprocessor directives + if (sc.ch == '#' && numNonBlank == 1) + { + sc.SetState(SCE_F_PREPROCESSOR); + while (!sc.atLineEnd && sc.More()) + sc.Forward(); // Until line end + } + /***************************************/ + // Handle line continuation generically. + if (!isFixFormat && sc.ch == '&' && sc.state != SCE_F_COMMENT) { + char chTemp = ' '; + int j = 1; + while (IsABlank(chTemp) && j<132) { + chTemp = static_cast(sc.GetRelative(j)); + j++; + } + if (chTemp == '!') { + sc.SetState(SCE_F_CONTINUATION); + if (sc.chNext == '!') sc.ForwardSetState(SCE_F_COMMENT); + } else if (chTemp == '\r' || chTemp == '\n') { + int currentState = sc.state; + sc.SetState(SCE_F_CONTINUATION); + sc.ForwardSetState(SCE_F_DEFAULT); + while (IsASpace(sc.ch) && sc.More()) sc.Forward(); + if (sc.ch == '&') { + sc.SetState(SCE_F_CONTINUATION); + sc.Forward(); + } + sc.SetState(currentState); + } + } + /***************************************/ + // Determine if the current state should terminate. + if (sc.state == SCE_F_OPERATOR) { + sc.SetState(SCE_F_DEFAULT); + } else if (sc.state == SCE_F_NUMBER) { + if (!(IsAWordChar(sc.ch) || sc.ch=='\'' || sc.ch=='\"' || sc.ch=='.')) { + sc.SetState(SCE_F_DEFAULT); + } + } else if (sc.state == SCE_F_IDENTIFIER) { + if (!IsAWordChar(sc.ch) || (sc.ch == '%')) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + if (keywords.InList(s)) { + sc.ChangeState(SCE_F_WORD); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_F_WORD2); + } else if (keywords3.InList(s)) { + sc.ChangeState(SCE_F_WORD3); + } + sc.SetState(SCE_F_DEFAULT); + } + } else if (sc.state == SCE_F_COMMENT || sc.state == SCE_F_PREPROCESSOR) { + if (sc.ch == '\r' || sc.ch == '\n') { + sc.SetState(SCE_F_DEFAULT); + } + } else if (sc.state == SCE_F_STRING1) { + prevState = sc.state; + if (sc.ch == '\'') { + if (sc.chNext == '\'') { + sc.Forward(); + } else { + sc.ForwardSetState(SCE_F_DEFAULT); + prevState = SCE_F_DEFAULT; + } + } else if (sc.atLineEnd) { + sc.ChangeState(SCE_F_STRINGEOL); + sc.ForwardSetState(SCE_F_DEFAULT); + } + } else if (sc.state == SCE_F_STRING2) { + prevState = sc.state; + if (sc.atLineEnd) { + sc.ChangeState(SCE_F_STRINGEOL); + sc.ForwardSetState(SCE_F_DEFAULT); + } else if (sc.ch == '\"') { + if (sc.chNext == '\"') { + sc.Forward(); + } else { + sc.ForwardSetState(SCE_F_DEFAULT); + prevState = SCE_F_DEFAULT; + } + } + } else if (sc.state == SCE_F_OPERATOR2) { + if (sc.ch == '.') { + sc.ForwardSetState(SCE_F_DEFAULT); + } + } else if (sc.state == SCE_F_CONTINUATION) { + sc.SetState(SCE_F_DEFAULT); + } else if (sc.state == SCE_F_LABEL) { + if (!IsADigit(sc.ch)) { + sc.SetState(SCE_F_DEFAULT); + } else { + if (isFixFormat && sc.currentPos-posLineStart > 4) + sc.SetState(SCE_F_DEFAULT); + else if (numNonBlank > 5) + sc.SetState(SCE_F_DEFAULT); + } + } + /***************************************/ + // Determine if a new state should be entered. + if (sc.state == SCE_F_DEFAULT) { + if (sc.ch == '!') { + if (sc.MatchIgnoreCase("!dec$") || sc.MatchIgnoreCase("!dir$") || + sc.MatchIgnoreCase("!ms$") || sc.chNext == '$') { + sc.SetState(SCE_F_PREPROCESSOR); + } else { + sc.SetState(SCE_F_COMMENT); + } + } else if ((!isFixFormat) && IsADigit(sc.ch) && numNonBlank == 1) { + sc.SetState(SCE_F_LABEL); + } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { + sc.SetState(SCE_F_NUMBER); + } else if ((tolower(sc.ch) == 'b' || tolower(sc.ch) == 'o' || + tolower(sc.ch) == 'z') && (sc.chNext == '\"' || sc.chNext == '\'')) { + sc.SetState(SCE_F_NUMBER); + sc.Forward(); + } else if (sc.ch == '.' && isalpha(sc.chNext)) { + sc.SetState(SCE_F_OPERATOR2); + } else if (IsAWordStart(sc.ch)) { + sc.SetState(SCE_F_IDENTIFIER); + } else if (sc.ch == '\"') { + sc.SetState(SCE_F_STRING2); + } else if (sc.ch == '\'') { + sc.SetState(SCE_F_STRING1); + } else if (isoperator(static_cast(sc.ch))) { + sc.SetState(SCE_F_OPERATOR); + } + } + } + sc.Complete(); +} +/***************************************/ +// To determine the folding level depending on keywords +static int classifyFoldPointFortran(const char* s, const char* prevWord, const char chNextNonBlank) { + int lev = 0; + if ((strcmp(prevWord, "else") == 0 && strcmp(s, "if") == 0) || strcmp(s, "elseif") == 0) + return -1; + if (strcmp(s, "associate") == 0 || strcmp(s, "block") == 0 + || strcmp(s, "blockdata") == 0 || strcmp(s, "select") == 0 + || strcmp(s, "do") == 0 || strcmp(s, "enum") ==0 + || strcmp(s, "function") == 0 || strcmp(s, "interface") == 0 + || strcmp(s, "module") == 0 || strcmp(s, "program") == 0 + || strcmp(s, "subroutine") == 0 || strcmp(s, "then") == 0 + || (strcmp(s, "type") == 0 && chNextNonBlank != '(') + || strcmp(s, "critical") == 0){ + if (strcmp(prevWord, "end") == 0) + lev = 0; + else + lev = 1; + } else if ((strcmp(s, "end") == 0 && chNextNonBlank != '=') + || strcmp(s, "endassociate") == 0 || strcmp(s, "endblock") == 0 + || strcmp(s, "endblockdata") == 0 || strcmp(s, "endselect") == 0 + || strcmp(s, "enddo") == 0 || strcmp(s, "endenum") ==0 + || strcmp(s, "endif") == 0 || strcmp(s, "endforall") == 0 + || strcmp(s, "endfunction") == 0 || strcmp(s, "endinterface") == 0 + || strcmp(s, "endmodule") == 0 || strcmp(s, "endprogram") == 0 + || strcmp(s, "endsubroutine") == 0 || strcmp(s, "endtype") == 0 + || strcmp(s, "endwhere") == 0 || strcmp(s, "endcritical") == 0 + || (strcmp(s, "procedure") == 0 && strcmp(prevWord, "module") == 0) ) { // Take care of the "module procedure" statement + lev = -1; + } else if (strcmp(prevWord, "end") == 0 && strcmp(s, "if") == 0){ // end if + lev = 0; + } else if (strcmp(prevWord, "type") == 0 && strcmp(s, "is") == 0){ // type is + lev = -1; + } + return lev; +} +// Folding the code +static void FoldFortranDoc(unsigned int startPos, int length, int initStyle, + Accessor &styler, bool isFixFormat) { + // + // bool foldComment = styler.GetPropertyInt("fold.comment") != 0; + // Do not know how to fold the comment at the moment. + // + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = styler[startPos]; + char chNextNonBlank; + int styleNext = styler.StyleAt(startPos); + int style = initStyle; + /***************************************/ + int lastStart = 0; + char prevWord[32] = ""; + char Label[6] = ""; + // Variables for do label folding. + static int doLabels[100]; + static int posLabel=-1; + /***************************************/ + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + chNextNonBlank = chNext; + unsigned int j=i+1; + while(IsABlank(chNextNonBlank) && j(tolower(styler[lastStart+k])); + } + s[k] = '\0'; + // Handle the forall and where statement and structure. + if (strcmp(s, "forall") == 0 || strcmp(s, "where") == 0) { + if (strcmp(prevWord, "end") != 0) { + j = i + 1; + char chBrace = '(', chSeek = ')', ch1 = styler.SafeGetCharAt(j); + // Find the position of the first ( + while (ch1 != chBrace && j -1) { + levelCurrent--; + posLabel--; + } + } + } + if (atEOL) { + int lev = levelPrev; + if (visibleChars == 0 && foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + strcpy(prevWord, ""); + } + /***************************************/ + if (!isspacechar(ch)) visibleChars++; + } + /***************************************/ + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} +/***************************************/ +static const char * const FortranWordLists[] = { + "Primary keywords and identifiers", + "Intrinsic functions", + "Extended and user defined functions", + 0, +}; +/***************************************/ +static void ColouriseFortranDocFreeFormat(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + ColouriseFortranDoc(startPos, length, initStyle, keywordlists, styler, false); +} +/***************************************/ +static void ColouriseFortranDocFixFormat(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + ColouriseFortranDoc(startPos, length, initStyle, keywordlists, styler, true); +} +/***************************************/ +static void FoldFortranDocFreeFormat(unsigned int startPos, int length, int initStyle, + WordList *[], Accessor &styler) { + FoldFortranDoc(startPos, length, initStyle,styler, false); +} +/***************************************/ +static void FoldFortranDocFixFormat(unsigned int startPos, int length, int initStyle, + WordList *[], Accessor &styler) { + FoldFortranDoc(startPos, length, initStyle,styler, true); +} +/***************************************/ +LexerModule lmFortran(SCLEX_FORTRAN, ColouriseFortranDocFreeFormat, "fortran", FoldFortranDocFreeFormat, FortranWordLists); +LexerModule lmF77(SCLEX_F77, ColouriseFortranDocFixFormat, "f77", FoldFortranDocFixFormat, FortranWordLists); diff --git a/lexers/LexGAP.cpp b/lexers/LexGAP.cpp new file mode 100644 index 0000000..bc0bc21 --- /dev/null +++ b/lexers/LexGAP.cpp @@ -0,0 +1,266 @@ +// Scintilla source code edit control +/** @file LexGAP.cxx + ** Lexer for the GAP language. (The GAP System for Computational Discrete Algebra) + ** http://www.gap-system.org + **/ +// Copyright 2007 by Istvan Szollosi ( szteven gmail com ) +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static inline bool IsGAPOperator(char ch) { + if (IsASCII(ch) && isalnum(ch)) return false; + if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || + ch == '^' || ch == ',' || ch == '!' || ch == '.' || + ch == '=' || ch == '<' || ch == '>' || ch == '(' || + ch == ')' || ch == ';' || ch == '[' || ch == ']' || + ch == '{' || ch == '}' || ch == ':' ) + return true; + return false; +} + +static void GetRange(unsigned int start, unsigned int end, Accessor &styler, char *s, unsigned int len) { + unsigned int i = 0; + while ((i < end - start + 1) && (i < len-1)) { + s[i] = static_cast(styler[start + i]); + i++; + } + s[i] = '\0'; +} + +static void ColouriseGAPDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], Accessor &styler) { + + WordList &keywords1 = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + WordList &keywords3 = *keywordlists[2]; + WordList &keywords4 = *keywordlists[3]; + + // Do not leak onto next line + if (initStyle == SCE_GAP_STRINGEOL) initStyle = SCE_GAP_DEFAULT; + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + + // Prevent SCE_GAP_STRINGEOL from leaking back to previous line + if ( sc.atLineStart ) { + if (sc.state == SCE_GAP_STRING) sc.SetState(SCE_GAP_STRING); + if (sc.state == SCE_GAP_CHAR) sc.SetState(SCE_GAP_CHAR); + } + + // Handle line continuation generically + if (sc.ch == '\\' ) { + if (sc.chNext == '\n' || sc.chNext == '\r') { + sc.Forward(); + if (sc.ch == '\r' && sc.chNext == '\n') { + sc.Forward(); + } + continue; + } + } + + // Determine if the current state should terminate + switch (sc.state) { + case SCE_GAP_OPERATOR : + sc.SetState(SCE_GAP_DEFAULT); + break; + + case SCE_GAP_NUMBER : + if (!IsADigit(sc.ch)) { + if (sc.ch == '\\') { + if (!sc.atLineEnd) { + if (!IsADigit(sc.chNext)) { + sc.Forward(); + sc.ChangeState(SCE_GAP_IDENTIFIER); + } + } + } else if (isalpha(sc.ch) || sc.ch == '_') { + sc.ChangeState(SCE_GAP_IDENTIFIER); + } + else sc.SetState(SCE_GAP_DEFAULT); + } + break; + + case SCE_GAP_IDENTIFIER : + if (!(iswordstart(static_cast(sc.ch)) || sc.ch == '$')) { + if (sc.ch == '\\') sc.Forward(); + else { + char s[1000]; + sc.GetCurrent(s, sizeof(s)); + if (keywords1.InList(s)) { + sc.ChangeState(SCE_GAP_KEYWORD); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_GAP_KEYWORD2); + } else if (keywords3.InList(s)) { + sc.ChangeState(SCE_GAP_KEYWORD3); + } else if (keywords4.InList(s)) { + sc.ChangeState(SCE_GAP_KEYWORD4); + } + sc.SetState(SCE_GAP_DEFAULT); + } + } + break; + + case SCE_GAP_COMMENT : + if (sc.atLineEnd) { + sc.SetState(SCE_GAP_DEFAULT); + } + break; + + case SCE_GAP_STRING: + if (sc.atLineEnd) { + sc.ChangeState(SCE_GAP_STRINGEOL); + } else if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\"') { + sc.ForwardSetState(SCE_GAP_DEFAULT); + } + break; + + case SCE_GAP_CHAR: + if (sc.atLineEnd) { + sc.ChangeState(SCE_GAP_STRINGEOL); + } else if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\'') { + sc.ForwardSetState(SCE_GAP_DEFAULT); + } + break; + + case SCE_GAP_STRINGEOL: + if (sc.atLineStart) { + sc.SetState(SCE_GAP_DEFAULT); + } + break; + } + + // Determine if a new state should be entered + if (sc.state == SCE_GAP_DEFAULT) { + if (IsGAPOperator(static_cast(sc.ch))) { + sc.SetState(SCE_GAP_OPERATOR); + } + else if (IsADigit(sc.ch)) { + sc.SetState(SCE_GAP_NUMBER); + } else if (isalpha(sc.ch) || sc.ch == '_' || sc.ch == '\\' || sc.ch == '$' || sc.ch == '~') { + sc.SetState(SCE_GAP_IDENTIFIER); + if (sc.ch == '\\') sc.Forward(); + } else if (sc.ch == '#') { + sc.SetState(SCE_GAP_COMMENT); + } else if (sc.ch == '\"') { + sc.SetState(SCE_GAP_STRING); + } else if (sc.ch == '\'') { + sc.SetState(SCE_GAP_CHAR); + } + } + + } + sc.Complete(); +} + +static int ClassifyFoldPointGAP(const char* s) { + int level = 0; + if (strcmp(s, "function") == 0 || + strcmp(s, "do") == 0 || + strcmp(s, "if") == 0 || + strcmp(s, "repeat") == 0 ) { + level = 1; + } else if (strcmp(s, "end") == 0 || + strcmp(s, "od") == 0 || + strcmp(s, "fi") == 0 || + strcmp(s, "until") == 0 ) { + level = -1; + } + return level; +} + +static void FoldGAPDoc( unsigned int startPos, int length, int initStyle, WordList** , Accessor &styler) { + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = styler[startPos]; + int styleNext = styler.StyleAt(startPos); + int style = initStyle; + + int lastStart = 0; + + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int stylePrev = style; + style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + + if (stylePrev != SCE_GAP_KEYWORD && style == SCE_GAP_KEYWORD) { + // Store last word start point. + lastStart = i; + } + + if (stylePrev == SCE_GAP_KEYWORD) { + if(iswordchar(ch) && !iswordchar(chNext)) { + char s[100]; + GetRange(lastStart, i, styler, s, sizeof(s)); + levelCurrent += ClassifyFoldPointGAP(s); + } + } + + if (atEOL) { + int lev = levelPrev; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + } + + if (!isspacechar(ch)) + visibleChars++; + } + + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + +static const char * const GAPWordListDesc[] = { + "Keywords 1", + "Keywords 2", + "Keywords 3 (unused)", + "Keywords 4 (unused)", + 0 +}; + +LexerModule lmGAP( + SCLEX_GAP, + ColouriseGAPDoc, + "gap", + FoldGAPDoc, + GAPWordListDesc); diff --git a/lexers/LexGui4Cli.cpp b/lexers/LexGui4Cli.cpp new file mode 100644 index 0000000..66dcc5a --- /dev/null +++ b/lexers/LexGui4Cli.cpp @@ -0,0 +1,316 @@ +// Scintilla source code edit control +// Copyright 1998-2002 by Neil Hodgson +/* +This is the Lexer for Gui4Cli, included in SciLexer.dll +- by d. Keletsekis, 2/10/2003 + +To add to SciLexer.dll: +1. Add the values below to INCLUDE\Scintilla.iface +2. Run the scripts/HFacer.py script +3. Run the scripts/LexGen.py script + +val SCE_GC_DEFAULT=0 +val SCE_GC_COMMENTLINE=1 +val SCE_GC_COMMENTBLOCK=2 +val SCE_GC_GLOBAL=3 +val SCE_GC_EVENT=4 +val SCE_GC_ATTRIBUTE=5 +val SCE_GC_CONTROL=6 +val SCE_GC_COMMAND=7 +val SCE_GC_STRING=8 +val SCE_GC_OPERATOR=9 +*/ + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +#define debug Platform::DebugPrintf + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_' || ch =='\\'); +} + +static inline bool IsAWordStart(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '.'); +} + +inline bool isGCOperator(int ch) +{ if (isalnum(ch)) + return false; + // '.' left out as it is used to make up numbers + if (ch == '*' || ch == '/' || ch == '-' || ch == '+' || + ch == '(' || ch == ')' || ch == '=' || ch == '%' || + ch == '[' || ch == ']' || ch == '<' || ch == '>' || + ch == ',' || ch == ';' || ch == ':') + return true; + return false; +} + +#define isSpace(x) ((x)==' ' || (x)=='\t') +#define isNL(x) ((x)=='\n' || (x)=='\r') +#define isSpaceOrNL(x) (isSpace(x) || isNL(x)) +#define BUFFSIZE 500 +#define isFoldPoint(x) ((styler.LevelAt(x) & SC_FOLDLEVELNUMBERMASK) == 1024) + +static void colorFirstWord(WordList *keywordlists[], Accessor &styler, + StyleContext *sc, char *buff, int length, int) +{ + int c = 0; + while (sc->More() && isSpaceOrNL(sc->ch)) + { sc->Forward(); + } + styler.ColourTo(sc->currentPos - 1, sc->state); + + if (!IsAWordChar(sc->ch)) // comment, marker, etc.. + return; + + while (sc->More() && !isSpaceOrNL(sc->ch) && (c < length-1) && !isGCOperator(sc->ch)) + { buff[c] = static_cast(sc->ch); + ++c; sc->Forward(); + } + buff[c] = '\0'; + char *p = buff; + while (*p) // capitalize.. + { if (islower(*p)) *p = static_cast(toupper(*p)); + ++p; + } + + WordList &kGlobal = *keywordlists[0]; // keyword lists set by the user + WordList &kEvent = *keywordlists[1]; + WordList &kAttribute = *keywordlists[2]; + WordList &kControl = *keywordlists[3]; + WordList &kCommand = *keywordlists[4]; + + int state = 0; + // int level = styler.LevelAt(line) & SC_FOLDLEVELNUMBERMASK; + // debug ("line = %d, level = %d", line, level); + + if (kGlobal.InList(buff)) state = SCE_GC_GLOBAL; + else if (kAttribute.InList(buff)) state = SCE_GC_ATTRIBUTE; + else if (kControl.InList(buff)) state = SCE_GC_CONTROL; + else if (kCommand.InList(buff)) state = SCE_GC_COMMAND; + else if (kEvent.InList(buff)) state = SCE_GC_EVENT; + + if (state) + { sc->ChangeState(state); + styler.ColourTo(sc->currentPos - 1, sc->state); + sc->ChangeState(SCE_GC_DEFAULT); + } + else + { sc->ChangeState(SCE_GC_DEFAULT); + styler.ColourTo(sc->currentPos - 1, sc->state); + } +} + +// Main colorizing function called by Scintilla +static void +ColouriseGui4CliDoc(unsigned int startPos, int length, int initStyle, + WordList *keywordlists[], Accessor &styler) +{ + styler.StartAt(startPos); + + int quotestart = 0, oldstate, currentline = styler.GetLine(startPos); + styler.StartSegment(startPos); + bool noforward; + char buff[BUFFSIZE+1]; // buffer for command name + + StyleContext sc(startPos, length, initStyle, styler); + buff[0] = '\0'; // cbuff = 0; + + if (sc.state != SCE_GC_COMMENTBLOCK) // colorize 1st word.. + colorFirstWord(keywordlists, styler, &sc, buff, BUFFSIZE, currentline); + + while (sc.More()) + { noforward = 0; + + switch (sc.ch) + { + case '/': + if (sc.state == SCE_GC_COMMENTBLOCK || sc.state == SCE_GC_STRING) + break; + if (sc.chNext == '/') // line comment + { sc.SetState (SCE_GC_COMMENTLINE); + sc.Forward(); + styler.ColourTo(sc.currentPos, sc.state); + } + else if (sc.chNext == '*') // block comment + { sc.SetState(SCE_GC_COMMENTBLOCK); + sc.Forward(); + styler.ColourTo(sc.currentPos, sc.state); + } + else + styler.ColourTo(sc.currentPos, sc.state); + break; + + case '*': // end of comment block, or operator.. + if (sc.state == SCE_GC_STRING) + break; + if (sc.state == SCE_GC_COMMENTBLOCK && sc.chNext == '/') + { sc.Forward(); + styler.ColourTo(sc.currentPos, sc.state); + sc.ChangeState (SCE_GC_DEFAULT); + } + else + styler.ColourTo(sc.currentPos, sc.state); + break; + + case '\'': case '\"': // strings.. + if (sc.state == SCE_GC_COMMENTBLOCK || sc.state == SCE_GC_COMMENTLINE) + break; + if (sc.state == SCE_GC_STRING) + { if (sc.ch == quotestart) // match same quote char.. + { styler.ColourTo(sc.currentPos, sc.state); + sc.ChangeState(SCE_GC_DEFAULT); + quotestart = 0; + } } + else + { styler.ColourTo(sc.currentPos - 1, sc.state); + sc.ChangeState(SCE_GC_STRING); + quotestart = sc.ch; + } + break; + + case ';': // end of commandline character + if (sc.state != SCE_GC_COMMENTBLOCK && sc.state != SCE_GC_COMMENTLINE && + sc.state != SCE_GC_STRING) + { + styler.ColourTo(sc.currentPos - 1, sc.state); + styler.ColourTo(sc.currentPos, SCE_GC_OPERATOR); + sc.ChangeState(SCE_GC_DEFAULT); + sc.Forward(); + colorFirstWord(keywordlists, styler, &sc, buff, BUFFSIZE, currentline); + noforward = 1; // don't move forward - already positioned at next char.. + } + break; + + case '+': case '-': case '=': case '!': // operators.. + case '<': case '>': case '&': case '|': case '$': + if (sc.state != SCE_GC_COMMENTBLOCK && sc.state != SCE_GC_COMMENTLINE && + sc.state != SCE_GC_STRING) + { + styler.ColourTo(sc.currentPos - 1, sc.state); + styler.ColourTo(sc.currentPos, SCE_GC_OPERATOR); + sc.ChangeState(SCE_GC_DEFAULT); + } + break; + + case '\\': // escape - same as operator, but also mark in strings.. + if (sc.state != SCE_GC_COMMENTBLOCK && sc.state != SCE_GC_COMMENTLINE) + { + oldstate = sc.state; + styler.ColourTo(sc.currentPos - 1, sc.state); + sc.Forward(); // mark also the next char.. + styler.ColourTo(sc.currentPos, SCE_GC_OPERATOR); + sc.ChangeState(oldstate); + } + break; + + case '\n': case '\r': + ++currentline; + if (sc.state == SCE_GC_COMMENTLINE) + { styler.ColourTo(sc.currentPos, sc.state); + sc.ChangeState (SCE_GC_DEFAULT); + } + else if (sc.state != SCE_GC_COMMENTBLOCK) + { colorFirstWord(keywordlists, styler, &sc, buff, BUFFSIZE, currentline); + noforward = 1; // don't move forward - already positioned at next char.. + } + break; + +// case ' ': case '\t': +// default : + } + + if (!noforward) sc.Forward(); + + } + sc.Complete(); +} + +// Main folding function called by Scintilla - (based on props (.ini) files function) +static void FoldGui4Cli(unsigned int startPos, int length, int, + WordList *[], Accessor &styler) +{ + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + + char chNext = styler[startPos]; + int styleNext = styler.StyleAt(startPos); + bool headerPoint = false; + + for (unsigned int i = startPos; i < endPos; i++) + { + char ch = chNext; + chNext = styler[i+1]; + + int style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + + if (style == SCE_GC_EVENT || style == SCE_GC_GLOBAL) + { headerPoint = true; // fold at events and globals + } + + if (atEOL) + { int lev = SC_FOLDLEVELBASE+1; + + if (headerPoint) + lev = SC_FOLDLEVELBASE; + + if (visibleChars == 0 && foldCompact) + lev |= SC_FOLDLEVELWHITEFLAG; + + if (headerPoint) + lev |= SC_FOLDLEVELHEADERFLAG; + + if (lev != styler.LevelAt(lineCurrent)) // set level, if not already correct + { styler.SetLevel(lineCurrent, lev); + } + + lineCurrent++; // re-initialize our flags + visibleChars = 0; + headerPoint = false; + } + + if (!(isspacechar(ch))) // || (style == SCE_GC_COMMENTLINE) || (style != SCE_GC_COMMENTBLOCK))) + visibleChars++; + } + + int lev = headerPoint ? SC_FOLDLEVELBASE : SC_FOLDLEVELBASE+1; + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, lev | flagsNext); +} + +// I have no idea what these are for.. probably accessible by some message. +static const char * const gui4cliWordListDesc[] = { + "Globals", "Events", "Attributes", "Control", "Commands", + 0 +}; + +// Declare language & pass our function pointers to Scintilla +LexerModule lmGui4Cli(SCLEX_GUI4CLI, ColouriseGui4CliDoc, "gui4cli", FoldGui4Cli, gui4cliWordListDesc); + +#undef debug + diff --git a/lexers/LexHTML.cpp b/lexers/LexHTML.cpp new file mode 100644 index 0000000..58862b4 --- /dev/null +++ b/lexers/LexHTML.cpp @@ -0,0 +1,2184 @@ +// Scintilla source code edit control +/** @file LexHTML.cxx + ** Lexer for HTML. + **/ +// Copyright 1998-2005 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +#define SCE_HA_JS (SCE_HJA_START - SCE_HJ_START) +#define SCE_HA_VBS (SCE_HBA_START - SCE_HB_START) +#define SCE_HA_PYTHON (SCE_HPA_START - SCE_HP_START) + +enum script_type { eScriptNone = 0, eScriptJS, eScriptVBS, eScriptPython, eScriptPHP, eScriptXML, eScriptSGML, eScriptSGMLblock, eScriptComment }; +enum script_mode { eHtml = 0, eNonHtmlScript, eNonHtmlPreProc, eNonHtmlScriptPreProc }; + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_'); +} + +static inline bool IsAWordStart(const int ch) { + return (ch < 0x80) && (isalnum(ch) || ch == '_'); +} + +inline bool IsOperator(int ch) { + if (IsASCII(ch) && isalnum(ch)) + return false; + // '.' left out as it is used to make up numbers + if (ch == '%' || ch == '^' || ch == '&' || ch == '*' || + ch == '(' || ch == ')' || ch == '-' || ch == '+' || + ch == '=' || ch == '|' || ch == '{' || ch == '}' || + ch == '[' || ch == ']' || ch == ':' || ch == ';' || + ch == '<' || ch == '>' || ch == ',' || ch == '/' || + ch == '?' || ch == '!' || ch == '.' || ch == '~') + return true; + return false; +} + +static void GetTextSegment(Accessor &styler, unsigned int start, unsigned int end, char *s, size_t len) { + unsigned int i = 0; + for (; (i < end - start + 1) && (i < len-1); i++) { + s[i] = static_cast(MakeLowerCase(styler[start + i])); + } + s[i] = '\0'; +} + +static const char *GetNextWord(Accessor &styler, unsigned int start, char *s, size_t sLen) { + + unsigned int i = 0; + for (; i < sLen-1; i++) { + char ch = static_cast(styler.SafeGetCharAt(start + i)); + if ((i == 0) && !IsAWordStart(ch)) + break; + if ((i > 0) && !IsAWordChar(ch)) + break; + s[i] = ch; + } + s[i] = '\0'; + + return s; +} + +static script_type segIsScriptingIndicator(Accessor &styler, unsigned int start, unsigned int end, script_type prevValue) { + char s[100]; + GetTextSegment(styler, start, end, s, sizeof(s)); + //Platform::DebugPrintf("Scripting indicator [%s]\n", s); + if (strstr(s, "src")) // External script + return eScriptNone; + if (strstr(s, "vbs")) + return eScriptVBS; + if (strstr(s, "pyth")) + return eScriptPython; + if (strstr(s, "javas")) + return eScriptJS; + if (strstr(s, "jscr")) + return eScriptJS; + if (strstr(s, "php")) + return eScriptPHP; + if (strstr(s, "xml")) { + const char *xml = strstr(s, "xml"); + for (const char *t=s; t= SCE_HP_START) && (state <= SCE_HP_IDENTIFIER)) { + return eScriptPython; + } else if ((state >= SCE_HB_START) && (state <= SCE_HB_STRINGEOL)) { + return eScriptVBS; + } else if ((state >= SCE_HJ_START) && (state <= SCE_HJ_REGEX)) { + return eScriptJS; + } else if ((state >= SCE_HPHP_DEFAULT) && (state <= SCE_HPHP_COMMENTLINE)) { + return eScriptPHP; + } else if ((state >= SCE_H_SGML_DEFAULT) && (state < SCE_H_SGML_BLOCK_DEFAULT)) { + return eScriptSGML; + } else if (state == SCE_H_SGML_BLOCK_DEFAULT) { + return eScriptSGMLblock; + } else { + return eScriptNone; + } +} + +static int statePrintForState(int state, script_mode inScriptType) { + int StateToPrint = state; + + if (state >= SCE_HJ_START) { + if ((state >= SCE_HP_START) && (state <= SCE_HP_IDENTIFIER)) { + StateToPrint = state + ((inScriptType == eNonHtmlScript) ? 0 : SCE_HA_PYTHON); + } else if ((state >= SCE_HB_START) && (state <= SCE_HB_STRINGEOL)) { + StateToPrint = state + ((inScriptType == eNonHtmlScript) ? 0 : SCE_HA_VBS); + } else if ((state >= SCE_HJ_START) && (state <= SCE_HJ_REGEX)) { + StateToPrint = state + ((inScriptType == eNonHtmlScript) ? 0 : SCE_HA_JS); + } + } + + return StateToPrint; +} + +static int stateForPrintState(int StateToPrint) { + int state; + + if ((StateToPrint >= SCE_HPA_START) && (StateToPrint <= SCE_HPA_IDENTIFIER)) { + state = StateToPrint - SCE_HA_PYTHON; + } else if ((StateToPrint >= SCE_HBA_START) && (StateToPrint <= SCE_HBA_STRINGEOL)) { + state = StateToPrint - SCE_HA_VBS; + } else if ((StateToPrint >= SCE_HJA_START) && (StateToPrint <= SCE_HJA_REGEX)) { + state = StateToPrint - SCE_HA_JS; + } else { + state = StateToPrint; + } + + return state; +} + +static inline bool IsNumber(unsigned int start, Accessor &styler) { + return IsADigit(styler[start]) || (styler[start] == '.') || + (styler[start] == '-') || (styler[start] == '#'); +} + +static inline bool isStringState(int state) { + bool bResult; + + switch (state) { + case SCE_HJ_DOUBLESTRING: + case SCE_HJ_SINGLESTRING: + case SCE_HJA_DOUBLESTRING: + case SCE_HJA_SINGLESTRING: + case SCE_HB_STRING: + case SCE_HBA_STRING: + case SCE_HP_STRING: + case SCE_HP_CHARACTER: + case SCE_HP_TRIPLE: + case SCE_HP_TRIPLEDOUBLE: + case SCE_HPA_STRING: + case SCE_HPA_CHARACTER: + case SCE_HPA_TRIPLE: + case SCE_HPA_TRIPLEDOUBLE: + case SCE_HPHP_HSTRING: + case SCE_HPHP_SIMPLESTRING: + case SCE_HPHP_HSTRING_VARIABLE: + case SCE_HPHP_COMPLEX_VARIABLE: + bResult = true; + break; + default : + bResult = false; + break; + } + return bResult; +} + +static inline bool stateAllowsTermination(int state) { + bool allowTermination = !isStringState(state); + if (allowTermination) { + switch (state) { + case SCE_HB_COMMENTLINE: + case SCE_HPHP_COMMENT: + case SCE_HP_COMMENTLINE: + case SCE_HPA_COMMENTLINE: + allowTermination = false; + } + } + return allowTermination; +} + +// not really well done, since it's only comments that should lex the %> and <% +static inline bool isCommentASPState(int state) { + bool bResult; + + switch (state) { + case SCE_HJ_COMMENT: + case SCE_HJ_COMMENTLINE: + case SCE_HJ_COMMENTDOC: + case SCE_HB_COMMENTLINE: + case SCE_HP_COMMENTLINE: + case SCE_HPHP_COMMENT: + case SCE_HPHP_COMMENTLINE: + bResult = true; + break; + default : + bResult = false; + break; + } + return bResult; +} + +static void classifyAttribHTML(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler) { + bool wordIsNumber = IsNumber(start, styler); + char chAttr = SCE_H_ATTRIBUTEUNKNOWN; + if (wordIsNumber) { + chAttr = SCE_H_NUMBER; + } else { + char s[100]; + GetTextSegment(styler, start, end, s, sizeof(s)); + if (keywords.InList(s)) + chAttr = SCE_H_ATTRIBUTE; + } + if ((chAttr == SCE_H_ATTRIBUTEUNKNOWN) && !keywords) + // No keywords -> all are known + chAttr = SCE_H_ATTRIBUTE; + styler.ColourTo(end, chAttr); +} + +static int classifyTagHTML(unsigned int start, unsigned int end, + WordList &keywords, Accessor &styler, bool &tagDontFold, + bool caseSensitive, bool isXml, bool allowScripts) { + char withSpace[30 + 2] = " "; + const char *s = withSpace + 1; + // Copy after the '<' + unsigned int i = 1; + for (unsigned int cPos = start; cPos <= end && i < 30; cPos++) { + char ch = styler[cPos]; + if ((ch != '<') && (ch != '/')) { + withSpace[i++] = caseSensitive ? ch : static_cast(MakeLowerCase(ch)); + } + } + + //The following is only a quick hack, to see if this whole thing would work + //we first need the tagname with a trailing space... + withSpace[i] = ' '; + withSpace[i+1] = '\0'; + + // if the current language is XML, I can fold any tag + // if the current language is HTML, I don't want to fold certain tags (input, meta, etc.) + //...to find it in the list of no-container-tags + tagDontFold = (!isXml) && (NULL != strstr(" area base basefont br col command embed frame hr img input isindex keygen link meta param source track wbr ", withSpace)); + + //now we can remove the trailing space + withSpace[i] = '\0'; + + // No keywords -> all are known + char chAttr = SCE_H_TAGUNKNOWN; + if (s[0] == '!') { + chAttr = SCE_H_SGML_DEFAULT; + } else if (!keywords || keywords.InList(s)) { + chAttr = SCE_H_TAG; + } + styler.ColourTo(end, chAttr); + if (chAttr == SCE_H_TAG) { + if (allowScripts && 0 == strcmp(s, "script")) { + // check to see if this is a self-closing tag by sniffing ahead + bool isSelfClose = false; + for (unsigned int cPos = end; cPos <= end + 200; cPos++) { + char ch = styler.SafeGetCharAt(cPos, '\0'); + if (ch == '\0' || ch == '>') + break; + else if (ch == '/' && styler.SafeGetCharAt(cPos + 1, '\0') == '>') { + isSelfClose = true; + break; + } + } + + // do not enter a script state if the tag self-closed + if (!isSelfClose) + chAttr = SCE_H_SCRIPT; + } else if (!isXml && 0 == strcmp(s, "comment")) { + chAttr = SCE_H_COMMENT; + } + } + return chAttr; +} + +static void classifyWordHTJS(unsigned int start, unsigned int end, + WordList &keywords, Accessor &styler, script_mode inScriptType) { + char s[30 + 1]; + unsigned int i = 0; + for (; i < end - start + 1 && i < 30; i++) { + s[i] = styler[start + i]; + } + s[i] = '\0'; + + char chAttr = SCE_HJ_WORD; + bool wordIsNumber = IsADigit(s[0]) || ((s[0] == '.') && IsADigit(s[1])); + if (wordIsNumber) { + chAttr = SCE_HJ_NUMBER; + } else if (keywords.InList(s)) { + chAttr = SCE_HJ_KEYWORD; + } + styler.ColourTo(end, statePrintForState(chAttr, inScriptType)); +} + +static int classifyWordHTVB(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler, script_mode inScriptType) { + char chAttr = SCE_HB_IDENTIFIER; + bool wordIsNumber = IsADigit(styler[start]) || (styler[start] == '.'); + if (wordIsNumber) + chAttr = SCE_HB_NUMBER; + else { + char s[100]; + GetTextSegment(styler, start, end, s, sizeof(s)); + if (keywords.InList(s)) { + chAttr = SCE_HB_WORD; + if (strcmp(s, "rem") == 0) + chAttr = SCE_HB_COMMENTLINE; + } + } + styler.ColourTo(end, statePrintForState(chAttr, inScriptType)); + if (chAttr == SCE_HB_COMMENTLINE) + return SCE_HB_COMMENTLINE; + else + return SCE_HB_DEFAULT; +} + +static void classifyWordHTPy(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler, char *prevWord, script_mode inScriptType, bool isMako) { + bool wordIsNumber = IsADigit(styler[start]); + char s[30 + 1]; + unsigned int i = 0; + for (; i < end - start + 1 && i < 30; i++) { + s[i] = styler[start + i]; + } + s[i] = '\0'; + char chAttr = SCE_HP_IDENTIFIER; + if (0 == strcmp(prevWord, "class")) + chAttr = SCE_HP_CLASSNAME; + else if (0 == strcmp(prevWord, "def")) + chAttr = SCE_HP_DEFNAME; + else if (wordIsNumber) + chAttr = SCE_HP_NUMBER; + else if (keywords.InList(s)) + chAttr = SCE_HP_WORD; + else if (isMako && 0 == strcmp(s, "block")) + chAttr = SCE_HP_WORD; + styler.ColourTo(end, statePrintForState(chAttr, inScriptType)); + strcpy(prevWord, s); +} + +// Update the word colour to default or keyword +// Called when in a PHP word +static void classifyWordHTPHP(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler) { + char chAttr = SCE_HPHP_DEFAULT; + bool wordIsNumber = IsADigit(styler[start]) || (styler[start] == '.' && start+1 <= end && IsADigit(styler[start+1])); + if (wordIsNumber) + chAttr = SCE_HPHP_NUMBER; + else { + char s[100]; + GetTextSegment(styler, start, end, s, sizeof(s)); + if (keywords.InList(s)) + chAttr = SCE_HPHP_WORD; + } + styler.ColourTo(end, chAttr); +} + +static bool isWordHSGML(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler) { + char s[30 + 1]; + unsigned int i = 0; + for (; i < end - start + 1 && i < 30; i++) { + s[i] = styler[start + i]; + } + s[i] = '\0'; + return keywords.InList(s); +} + +static bool isWordCdata(unsigned int start, unsigned int end, Accessor &styler) { + char s[30 + 1]; + unsigned int i = 0; + for (; i < end - start + 1 && i < 30; i++) { + s[i] = styler[start + i]; + } + s[i] = '\0'; + return (0 == strcmp(s, "[CDATA[")); +} + +// Return the first state to reach when entering a scripting language +static int StateForScript(script_type scriptLanguage) { + int Result; + switch (scriptLanguage) { + case eScriptVBS: + Result = SCE_HB_START; + break; + case eScriptPython: + Result = SCE_HP_START; + break; + case eScriptPHP: + Result = SCE_HPHP_DEFAULT; + break; + case eScriptXML: + Result = SCE_H_TAGUNKNOWN; + break; + case eScriptSGML: + Result = SCE_H_SGML_DEFAULT; + break; + case eScriptComment: + Result = SCE_H_COMMENT; + break; + default : + Result = SCE_HJ_START; + break; + } + return Result; +} + +static inline bool issgmlwordchar(int ch) { + return !IsASCII(ch) || + (isalnum(ch) || ch == '.' || ch == '_' || ch == ':' || ch == '!' || ch == '#' || ch == '['); +} + +static inline bool IsPhpWordStart(int ch) { + return (IsASCII(ch) && (isalpha(ch) || (ch == '_'))) || (ch >= 0x7f); +} + +static inline bool IsPhpWordChar(int ch) { + return IsADigit(ch) || IsPhpWordStart(ch); +} + +static bool InTagState(int state) { + return state == SCE_H_TAG || state == SCE_H_TAGUNKNOWN || + state == SCE_H_SCRIPT || + state == SCE_H_ATTRIBUTE || state == SCE_H_ATTRIBUTEUNKNOWN || + state == SCE_H_NUMBER || state == SCE_H_OTHER || + state == SCE_H_DOUBLESTRING || state == SCE_H_SINGLESTRING; +} + +static bool IsCommentState(const int state) { + return state == SCE_H_COMMENT || state == SCE_H_SGML_COMMENT; +} + +static bool IsScriptCommentState(const int state) { + return state == SCE_HJ_COMMENT || state == SCE_HJ_COMMENTLINE || state == SCE_HJA_COMMENT || + state == SCE_HJA_COMMENTLINE || state == SCE_HB_COMMENTLINE || state == SCE_HBA_COMMENTLINE; +} + +static bool isLineEnd(int ch) { + return ch == '\r' || ch == '\n'; +} + +static bool isMakoBlockEnd(const int ch, const int chNext, const char *blockType) { + if (strlen(blockType) == 0) { + return ((ch == '%') && (chNext == '>')); + } else if ((0 == strcmp(blockType, "inherit")) || + (0 == strcmp(blockType, "namespace")) || + (0 == strcmp(blockType, "include")) || + (0 == strcmp(blockType, "page"))) { + return ((ch == '/') && (chNext == '>')); + } else if (0 == strcmp(blockType, "%")) { + if (ch == '/' && isLineEnd(chNext)) + return 1; + else + return isLineEnd(ch); + } else if (0 == strcmp(blockType, "{")) { + return ch == '}'; + } else { + return (ch == '>'); + } +} + +static bool isDjangoBlockEnd(const int ch, const int chNext, const char *blockType) { + if (strlen(blockType) == 0) { + return 0; + } else if (0 == strcmp(blockType, "%")) { + return ((ch == '%') && (chNext == '}')); + } else if (0 == strcmp(blockType, "{")) { + return ((ch == '}') && (chNext == '}')); + } else { + return 0; + } +} + +static bool isPHPStringState(int state) { + return + (state == SCE_HPHP_HSTRING) || + (state == SCE_HPHP_SIMPLESTRING) || + (state == SCE_HPHP_HSTRING_VARIABLE) || + (state == SCE_HPHP_COMPLEX_VARIABLE); +} + +static int FindPhpStringDelimiter(char *phpStringDelimiter, const int phpStringDelimiterSize, int i, const int lengthDoc, Accessor &styler, bool &isSimpleString) { + int j; + const int beginning = i - 1; + bool isValidSimpleString = false; + + while (i < lengthDoc && (styler[i] == ' ' || styler[i] == '\t')) + i++; + + char ch = styler.SafeGetCharAt(i); + const char chNext = styler.SafeGetCharAt(i + 1); + if (!IsPhpWordStart(ch)) { + if (ch == '\'' && IsPhpWordStart(chNext)) { + i++; + ch = chNext; + isSimpleString = true; + } else { + phpStringDelimiter[0] = '\0'; + return beginning; + } + } + phpStringDelimiter[0] = ch; + i++; + + for (j = i; j < lengthDoc && !isLineEnd(styler[j]); j++) { + if (!IsPhpWordChar(styler[j])) { + if (isSimpleString && (styler[j] == '\'') && isLineEnd(styler.SafeGetCharAt(j + 1))) { + isValidSimpleString = true; + j++; + break; + } else { + phpStringDelimiter[0] = '\0'; + return beginning; + } + } + if (j - i < phpStringDelimiterSize - 2) + phpStringDelimiter[j-i+1] = styler[j]; + else + i++; + } + if (isSimpleString && !isValidSimpleString) { + phpStringDelimiter[0] = '\0'; + return beginning; + } + phpStringDelimiter[j-i+1 - (isSimpleString ? 1 : 0)] = '\0'; + return j - 1; +} + +static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler, bool isXml) { + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + WordList &keywords3 = *keywordlists[2]; + WordList &keywords4 = *keywordlists[3]; + WordList &keywords5 = *keywordlists[4]; + WordList &keywords6 = *keywordlists[5]; // SGML (DTD) keywords + + // Lexer for HTML requires more lexical states (8 bits worth) than most lexers + styler.StartAt(startPos, static_cast(STYLE_MAX)); + char prevWord[200]; + prevWord[0] = '\0'; + char phpStringDelimiter[200]; // PHP is not limited in length, we are + phpStringDelimiter[0] = '\0'; + int StateToPrint = initStyle; + int state = stateForPrintState(StateToPrint); + char makoBlockType[200]; + makoBlockType[0] = '\0'; + int makoComment = 0; + char djangoBlockType[2]; + djangoBlockType[0] = '\0'; + + // If inside a tag, it may be a script tag, so reread from the start of line starting tag to ensure any language tags are seen + if (InTagState(state)) { + while ((startPos > 0) && (InTagState(styler.StyleAt(startPos - 1)))) { + int backLineStart = styler.LineStart(styler.GetLine(startPos-1)); + length += startPos - backLineStart; + startPos = backLineStart; + } + state = SCE_H_DEFAULT; + } + // String can be heredoc, must find a delimiter first. Reread from beginning of line containing the string, to get the correct lineState + if (isPHPStringState(state)) { + while (startPos > 0 && (isPHPStringState(state) || !isLineEnd(styler[startPos - 1]))) { + startPos--; + length++; + state = styler.StyleAt(startPos); + } + if (startPos == 0) + state = SCE_H_DEFAULT; + } + styler.StartAt(startPos, static_cast(STYLE_MAX)); + + int lineCurrent = styler.GetLine(startPos); + int lineState; + if (lineCurrent > 0) { + lineState = styler.GetLineState(lineCurrent-1); + } else { + // Default client and ASP scripting language is JavaScript + lineState = eScriptJS << 8; + + // property asp.default.language + // Script in ASP code is initially assumed to be in JavaScript. + // To change this to VBScript set asp.default.language to 2. Python is 3. + lineState |= styler.GetPropertyInt("asp.default.language", eScriptJS) << 4; + } + script_mode inScriptType = script_mode((lineState >> 0) & 0x03); // 2 bits of scripting mode + bool tagOpened = (lineState >> 2) & 0x01; // 1 bit to know if we are in an opened tag + bool tagClosing = (lineState >> 3) & 0x01; // 1 bit to know if we are in a closing tag + bool tagDontFold = false; //some HTML tags should not be folded + script_type aspScript = script_type((lineState >> 4) & 0x0F); // 4 bits of script name + script_type clientScript = script_type((lineState >> 8) & 0x0F); // 4 bits of script name + int beforePreProc = (lineState >> 12) & 0xFF; // 8 bits of state + + script_type scriptLanguage = ScriptOfState(state); + // If eNonHtmlScript coincides with SCE_H_COMMENT, assume eScriptComment + if (inScriptType == eNonHtmlScript && state == SCE_H_COMMENT) { + scriptLanguage = eScriptComment; + } + script_type beforeLanguage = ScriptOfState(beforePreProc); + + // property fold.html + // Folding is turned on or off for HTML and XML files with this option. + // The fold option must also be on for folding to occur. + const bool foldHTML = styler.GetPropertyInt("fold.html", 0) != 0; + + const bool fold = foldHTML && styler.GetPropertyInt("fold", 0); + + // property fold.html.preprocessor + // Folding is turned on or off for scripts embedded in HTML files with this option. + // The default is on. + const bool foldHTMLPreprocessor = foldHTML && styler.GetPropertyInt("fold.html.preprocessor", 1); + + const bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + + // property fold.hypertext.comment + // Allow folding for comments in scripts embedded in HTML. + // The default is off. + const bool foldComment = fold && styler.GetPropertyInt("fold.hypertext.comment", 0) != 0; + + // property fold.hypertext.heredoc + // Allow folding for heredocs in scripts embedded in HTML. + // The default is off. + const bool foldHeredoc = fold && styler.GetPropertyInt("fold.hypertext.heredoc", 0) != 0; + + // property html.tags.case.sensitive + // For XML and HTML, setting this property to 1 will make tags match in a case + // sensitive way which is the expected behaviour for XML and XHTML. + const bool caseSensitive = styler.GetPropertyInt("html.tags.case.sensitive", 0) != 0; + + // property lexer.xml.allow.scripts + // Set to 0 to disable scripts in XML. + const bool allowScripts = styler.GetPropertyInt("lexer.xml.allow.scripts", 1) != 0; + + // property lexer.html.mako + // Set to 1 to enable the mako template language. + const bool isMako = styler.GetPropertyInt("lexer.html.mako", 0) != 0; + + // property lexer.html.django + // Set to 1 to enable the django template language. + const bool isDjango = styler.GetPropertyInt("lexer.html.django", 0) != 0; + + const CharacterSet setHTMLWord(CharacterSet::setAlphaNum, ".-_:!#", 0x80, true); + const CharacterSet setTagContinue(CharacterSet::setAlphaNum, ".-_:!#[", 0x80, true); + const CharacterSet setAttributeContinue(CharacterSet::setAlphaNum, ".-_:!#/", 0x80, true); + // TODO: also handle + and - (except if they're part of ++ or --) and return keywords + const CharacterSet setOKBeforeJSRE(CharacterSet::setNone, "([{=,:;!%^&*|?~"); + + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + int visibleChars = 0; + int lineStartVisibleChars = 0; + + int chPrev = ' '; + int ch = ' '; + int chPrevNonWhite = ' '; + // look back to set chPrevNonWhite properly for better regex colouring + if (scriptLanguage == eScriptJS && startPos > 0) { + int back = startPos; + int style = 0; + while (--back) { + style = styler.StyleAt(back); + if (style < SCE_HJ_DEFAULT || style > SCE_HJ_COMMENTDOC) + // includes SCE_HJ_COMMENT & SCE_HJ_COMMENTLINE + break; + } + if (style == SCE_HJ_SYMBOLS) { + chPrevNonWhite = static_cast(styler.SafeGetCharAt(back)); + } + } + + styler.StartSegment(startPos); + const int lengthDoc = startPos + length; + for (int i = startPos; i < lengthDoc; i++) { + const int chPrev2 = chPrev; + chPrev = ch; + if (!IsASpace(ch) && state != SCE_HJ_COMMENT && + state != SCE_HJ_COMMENTLINE && state != SCE_HJ_COMMENTDOC) + chPrevNonWhite = ch; + ch = static_cast(styler[i]); + int chNext = static_cast(styler.SafeGetCharAt(i + 1)); + const int chNext2 = static_cast(styler.SafeGetCharAt(i + 2)); + + // Handle DBCS codepages + if (styler.IsLeadByte(static_cast(ch))) { + chPrev = ' '; + i += 1; + continue; + } + + if ((!IsASpace(ch) || !foldCompact) && fold) + visibleChars++; + if (!IsASpace(ch)) + lineStartVisibleChars++; + + // decide what is the current state to print (depending of the script tag) + StateToPrint = statePrintForState(state, inScriptType); + + // handle script folding + if (fold) { + switch (scriptLanguage) { + case eScriptJS: + case eScriptPHP: + //not currently supported case eScriptVBS: + + if ((state != SCE_HPHP_COMMENT) && (state != SCE_HPHP_COMMENTLINE) && (state != SCE_HJ_COMMENT) && (state != SCE_HJ_COMMENTLINE) && (state != SCE_HJ_COMMENTDOC) && (!isStringState(state))) { + //Platform::DebugPrintf("state=%d, StateToPrint=%d, initStyle=%d\n", state, StateToPrint, initStyle); + //if ((state == SCE_HPHP_OPERATOR) || (state == SCE_HPHP_DEFAULT) || (state == SCE_HJ_SYMBOLS) || (state == SCE_HJ_START) || (state == SCE_HJ_DEFAULT)) { + if (ch == '#') { + int j = i + 1; + while ((j < lengthDoc) && IsASpaceOrTab(styler.SafeGetCharAt(j))) { + j++; + } + if (styler.Match(j, "region") || styler.Match(j, "if")) { + levelCurrent++; + } else if (styler.Match(j, "end")) { + levelCurrent--; + } + } else if ((ch == '{') || (ch == '}') || (foldComment && (ch == '/') && (chNext == '*'))) { + levelCurrent += (((ch == '{') || (ch == '/')) ? 1 : -1); + } + } else if (((state == SCE_HPHP_COMMENT) || (state == SCE_HJ_COMMENT)) && foldComment && (ch == '*') && (chNext == '/')) { + levelCurrent--; + } + break; + case eScriptPython: + if (state != SCE_HP_COMMENTLINE && !isMako) { + if ((ch == ':') && ((chNext == '\n') || (chNext == '\r' && chNext2 == '\n'))) { + levelCurrent++; + } else if ((ch == '\n') && !((chNext == '\r') && (chNext2 == '\n')) && (chNext != '\n')) { + // check if the number of tabs is lower than the level + int Findlevel = (levelCurrent & ~SC_FOLDLEVELBASE) * 8; + for (int j = 0; Findlevel > 0; j++) { + char chTmp = styler.SafeGetCharAt(i + j + 1); + if (chTmp == '\t') { + Findlevel -= 8; + } else if (chTmp == ' ') { + Findlevel--; + } else { + break; + } + } + + if (Findlevel > 0) { + levelCurrent -= Findlevel / 8; + if (Findlevel % 8) + levelCurrent--; + } + } + } + break; + default: + break; + } + } + + if ((ch == '\r' && chNext != '\n') || (ch == '\n')) { + // Trigger on CR only (Mac style) or either on LF from CR+LF (Dos/Win) or on LF alone (Unix) + // Avoid triggering two times on Dos/Win + // New line -> record any line state onto /next/ line + if (fold) { + int lev = levelPrev; + if (visibleChars == 0) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + + styler.SetLevel(lineCurrent, lev); + visibleChars = 0; + levelPrev = levelCurrent; + } + styler.SetLineState(lineCurrent, + ((inScriptType & 0x03) << 0) | + ((tagOpened & 0x01) << 2) | + ((tagClosing & 0x01) << 3) | + ((aspScript & 0x0F) << 4) | + ((clientScript & 0x0F) << 8) | + ((beforePreProc & 0xFF) << 12)); + lineCurrent++; + lineStartVisibleChars = 0; + } + + // handle start of Mako comment line + if (isMako && ch == '#' && chNext == '#') { + makoComment = 1; + } + + // handle end of Mako comment line + else if (isMako && makoComment && (ch == '\r' || ch == '\n')) { + makoComment = 0; + styler.ColourTo(i, SCE_HP_COMMENTLINE); + state = SCE_HP_DEFAULT; + } + + // Allow falling through to mako handling code if newline is going to end a block + if (((ch == '\r' && chNext != '\n') || (ch == '\n')) && + (!isMako || (0 != strcmp(makoBlockType, "%")))) { + } + + // generic end of script processing + else if ((inScriptType == eNonHtmlScript) && (ch == '<') && (chNext == '/')) { + // Check if it's the end of the script tag (or any other HTML tag) + switch (state) { + // in these cases, you can embed HTML tags (to confirm !!!!!!!!!!!!!!!!!!!!!!) + case SCE_H_DOUBLESTRING: + case SCE_H_SINGLESTRING: + case SCE_HJ_COMMENT: + case SCE_HJ_COMMENTDOC: + //case SCE_HJ_COMMENTLINE: // removed as this is a common thing done to hide + // the end of script marker from some JS interpreters. + case SCE_HB_COMMENTLINE: + case SCE_HBA_COMMENTLINE: + case SCE_HJ_DOUBLESTRING: + case SCE_HJ_SINGLESTRING: + case SCE_HJ_REGEX: + case SCE_HB_STRING: + case SCE_HBA_STRING: + case SCE_HP_STRING: + case SCE_HP_TRIPLE: + case SCE_HP_TRIPLEDOUBLE: + case SCE_HPHP_HSTRING: + case SCE_HPHP_SIMPLESTRING: + case SCE_HPHP_COMMENT: + case SCE_HPHP_COMMENTLINE: + break; + default : + // check if the closing tag is a script tag + if (const char *tag = + state == SCE_HJ_COMMENTLINE || isXml ? "script" : + state == SCE_H_COMMENT ? "comment" : 0) { + int j = i + 2; + int chr; + do { + chr = static_cast(*tag++); + } while (chr != 0 && chr == MakeLowerCase(styler.SafeGetCharAt(j++))); + if (chr != 0) break; + } + // closing tag of the script (it's a closing HTML tag anyway) + styler.ColourTo(i - 1, StateToPrint); + state = SCE_H_TAGUNKNOWN; + inScriptType = eHtml; + scriptLanguage = eScriptNone; + clientScript = eScriptJS; + i += 2; + visibleChars += 2; + tagClosing = true; + continue; + } + } + + ///////////////////////////////////// + // handle the start of PHP pre-processor = Non-HTML + else if ((state != SCE_H_ASPAT) && + !isPHPStringState(state) && + (state != SCE_HPHP_COMMENT) && + (state != SCE_HPHP_COMMENTLINE) && + (ch == '<') && + (chNext == '?') && + !IsScriptCommentState(state)) { + beforeLanguage = scriptLanguage; + scriptLanguage = segIsScriptingIndicator(styler, i + 2, i + 6, isXml ? eScriptXML : eScriptPHP); + if ((scriptLanguage != eScriptPHP) && (isStringState(state) || (state==SCE_H_COMMENT))) continue; + styler.ColourTo(i - 1, StateToPrint); + beforePreProc = state; + i++; + visibleChars++; + i += PrintScriptingIndicatorOffset(styler, styler.GetStartSegment() + 2, i + 6); + if (scriptLanguage == eScriptXML) + styler.ColourTo(i, SCE_H_XMLSTART); + else + styler.ColourTo(i, SCE_H_QUESTION); + state = StateForScript(scriptLanguage); + if (inScriptType == eNonHtmlScript) + inScriptType = eNonHtmlScriptPreProc; + else + inScriptType = eNonHtmlPreProc; + // Fold whole script, but not if the XML first tag (all XML-like tags in this case) + if (foldHTMLPreprocessor && (scriptLanguage != eScriptXML)) { + levelCurrent++; + } + // should be better + ch = static_cast(styler.SafeGetCharAt(i)); + continue; + } + + // handle the start Mako template Python code + else if (isMako && scriptLanguage == eScriptNone && ((ch == '<' && chNext == '%') || + (lineStartVisibleChars == 1 && ch == '%') || + (lineStartVisibleChars == 1 && ch == '/' && chNext == '%') || + (ch == '$' && chNext == '{') || + (ch == '<' && chNext == '/' && chNext2 == '%'))) { + if (ch == '%' || ch == '/') + strcpy(makoBlockType, "%"); + else if (ch == '$') + strcpy(makoBlockType, "{"); + else if (chNext == '/') + GetNextWord(styler, i+3, makoBlockType, sizeof(makoBlockType)); + else + GetNextWord(styler, i+2, makoBlockType, sizeof(makoBlockType)); + styler.ColourTo(i - 1, StateToPrint); + beforePreProc = state; + if (inScriptType == eNonHtmlScript) + inScriptType = eNonHtmlScriptPreProc; + else + inScriptType = eNonHtmlPreProc; + + if (chNext == '/') { + i += 2; + visibleChars += 2; + } else if (ch != '%') { + i++; + visibleChars++; + } + state = SCE_HP_START; + scriptLanguage = eScriptPython; + styler.ColourTo(i, SCE_H_ASP); + + if (ch != '%' && ch != '$' && ch != '/') { + i += static_cast(strlen(makoBlockType)); + visibleChars += static_cast(strlen(makoBlockType)); + if (keywords4.InList(makoBlockType)) + styler.ColourTo(i, SCE_HP_WORD); + else + styler.ColourTo(i, SCE_H_TAGUNKNOWN); + } + + ch = static_cast(styler.SafeGetCharAt(i)); + continue; + } + + // handle the start/end of Django comment + else if (isDjango && state != SCE_H_COMMENT && (ch == '{' && chNext == '#')) { + styler.ColourTo(i - 1, StateToPrint); + beforePreProc = state; + beforeLanguage = scriptLanguage; + if (inScriptType == eNonHtmlScript) + inScriptType = eNonHtmlScriptPreProc; + else + inScriptType = eNonHtmlPreProc; + i += 1; + visibleChars += 1; + scriptLanguage = eScriptComment; + state = SCE_H_COMMENT; + styler.ColourTo(i, SCE_H_ASP); + ch = static_cast(styler.SafeGetCharAt(i)); + continue; + } else if (isDjango && state == SCE_H_COMMENT && (ch == '#' && chNext == '}')) { + styler.ColourTo(i - 1, StateToPrint); + i += 1; + visibleChars += 1; + styler.ColourTo(i, SCE_H_ASP); + state = beforePreProc; + if (inScriptType == eNonHtmlScriptPreProc) + inScriptType = eNonHtmlScript; + else + inScriptType = eHtml; + scriptLanguage = beforeLanguage; + continue; + } + + // handle the start Django template code + else if (isDjango && scriptLanguage != eScriptPython && (ch == '{' && (chNext == '%' || chNext == '{'))) { + if (chNext == '%') + strcpy(djangoBlockType, "%"); + else + strcpy(djangoBlockType, "{"); + styler.ColourTo(i - 1, StateToPrint); + beforePreProc = state; + if (inScriptType == eNonHtmlScript) + inScriptType = eNonHtmlScriptPreProc; + else + inScriptType = eNonHtmlPreProc; + + i += 1; + visibleChars += 1; + state = SCE_HP_START; + beforeLanguage = scriptLanguage; + scriptLanguage = eScriptPython; + styler.ColourTo(i, SCE_H_ASP); + + ch = static_cast(styler.SafeGetCharAt(i)); + continue; + } + + // handle the start of ASP pre-processor = Non-HTML + else if (!isMako && !isDjango && !isCommentASPState(state) && (ch == '<') && (chNext == '%') && !isPHPStringState(state)) { + styler.ColourTo(i - 1, StateToPrint); + beforePreProc = state; + if (inScriptType == eNonHtmlScript) + inScriptType = eNonHtmlScriptPreProc; + else + inScriptType = eNonHtmlPreProc; + + if (chNext2 == '@') { + i += 2; // place as if it was the second next char treated + visibleChars += 2; + state = SCE_H_ASPAT; + } else if ((chNext2 == '-') && (styler.SafeGetCharAt(i + 3) == '-')) { + styler.ColourTo(i + 3, SCE_H_ASP); + state = SCE_H_XCCOMMENT; + scriptLanguage = eScriptVBS; + continue; + } else { + if (chNext2 == '=') { + i += 2; // place as if it was the second next char treated + visibleChars += 2; + } else { + i++; // place as if it was the next char treated + visibleChars++; + } + + state = StateForScript(aspScript); + } + scriptLanguage = eScriptVBS; + styler.ColourTo(i, SCE_H_ASP); + // fold whole script + if (foldHTMLPreprocessor) + levelCurrent++; + // should be better + ch = static_cast(styler.SafeGetCharAt(i)); + continue; + } + + ///////////////////////////////////// + // handle the start of SGML language (DTD) + else if (((scriptLanguage == eScriptNone) || (scriptLanguage == eScriptXML)) && + (chPrev == '<') && + (ch == '!') && + (StateToPrint != SCE_H_CDATA) && + (!IsCommentState(StateToPrint)) && + (!IsScriptCommentState(StateToPrint))) { + beforePreProc = state; + styler.ColourTo(i - 2, StateToPrint); + if ((chNext == '-') && (chNext2 == '-')) { + state = SCE_H_COMMENT; // wait for a pending command + styler.ColourTo(i + 2, SCE_H_COMMENT); + i += 2; // follow styling after the -- + } else if (isWordCdata(i + 1, i + 7, styler)) { + state = SCE_H_CDATA; + } else { + styler.ColourTo(i, SCE_H_SGML_DEFAULT); // ') { + i++; + visibleChars++; + } + else if (0 == strcmp(makoBlockType, "%") && ch == '/') { + i++; + visibleChars++; + } + if (0 != strcmp(makoBlockType, "%") || ch == '/') { + styler.ColourTo(i, SCE_H_ASP); + } + state = beforePreProc; + if (inScriptType == eNonHtmlScriptPreProc) + inScriptType = eNonHtmlScript; + else + inScriptType = eHtml; + scriptLanguage = eScriptNone; + continue; + } + + // handle the end of Django template code + else if (isDjango && + ((inScriptType == eNonHtmlPreProc) || (inScriptType == eNonHtmlScriptPreProc)) && + (scriptLanguage != eScriptNone) && stateAllowsTermination(state) && + isDjangoBlockEnd(ch, chNext, djangoBlockType)) { + if (state == SCE_H_ASPAT) { + aspScript = segIsScriptingIndicator(styler, + styler.GetStartSegment(), i - 1, aspScript); + } + if (state == SCE_HP_WORD) { + classifyWordHTPy(styler.GetStartSegment(), i - 1, keywords4, styler, prevWord, inScriptType, isMako); + } else { + styler.ColourTo(i - 1, StateToPrint); + } + i += 1; + visibleChars += 1; + styler.ColourTo(i, SCE_H_ASP); + state = beforePreProc; + if (inScriptType == eNonHtmlScriptPreProc) + inScriptType = eNonHtmlScript; + else + inScriptType = eHtml; + scriptLanguage = beforeLanguage; + continue; + } + + // handle the end of a pre-processor = Non-HTML + else if ((!isMako && !isDjango && ((inScriptType == eNonHtmlPreProc) || (inScriptType == eNonHtmlScriptPreProc)) && + (((scriptLanguage != eScriptNone) && stateAllowsTermination(state))) && + (((ch == '%') || (ch == '?')) && (chNext == '>'))) || + ((scriptLanguage == eScriptSGML) && (ch == '>') && (state != SCE_H_SGML_COMMENT))) { + if (state == SCE_H_ASPAT) { + aspScript = segIsScriptingIndicator(styler, + styler.GetStartSegment(), i - 1, aspScript); + } + // Bounce out of any ASP mode + switch (state) { + case SCE_HJ_WORD: + classifyWordHTJS(styler.GetStartSegment(), i - 1, keywords2, styler, inScriptType); + break; + case SCE_HB_WORD: + classifyWordHTVB(styler.GetStartSegment(), i - 1, keywords3, styler, inScriptType); + break; + case SCE_HP_WORD: + classifyWordHTPy(styler.GetStartSegment(), i - 1, keywords4, styler, prevWord, inScriptType, isMako); + break; + case SCE_HPHP_WORD: + classifyWordHTPHP(styler.GetStartSegment(), i - 1, keywords5, styler); + break; + case SCE_H_XCCOMMENT: + styler.ColourTo(i - 1, state); + break; + default : + styler.ColourTo(i - 1, StateToPrint); + break; + } + if (scriptLanguage != eScriptSGML) { + i++; + visibleChars++; + } + if (ch == '%') + styler.ColourTo(i, SCE_H_ASP); + else if (scriptLanguage == eScriptXML) + styler.ColourTo(i, SCE_H_XMLEND); + else if (scriptLanguage == eScriptSGML) + styler.ColourTo(i, SCE_H_SGML_DEFAULT); + else + styler.ColourTo(i, SCE_H_QUESTION); + state = beforePreProc; + if (inScriptType == eNonHtmlScriptPreProc) + inScriptType = eNonHtmlScript; + else + inScriptType = eHtml; + // Unfold all scripting languages, except for XML tag + if (foldHTMLPreprocessor && (scriptLanguage != eScriptXML)) { + levelCurrent--; + } + scriptLanguage = beforeLanguage; + continue; + } + ///////////////////////////////////// + + switch (state) { + case SCE_H_DEFAULT: + if (ch == '<') { + // in HTML, fold on tag open and unfold on tag close + tagOpened = true; + tagClosing = (chNext == '/'); + styler.ColourTo(i - 1, StateToPrint); + if (chNext != '!') + state = SCE_H_TAGUNKNOWN; + } else if (ch == '&') { + styler.ColourTo(i - 1, SCE_H_DEFAULT); + state = SCE_H_ENTITY; + } + break; + case SCE_H_SGML_DEFAULT: + case SCE_H_SGML_BLOCK_DEFAULT: +// if (scriptLanguage == eScriptSGMLblock) +// StateToPrint = SCE_H_SGML_BLOCK_DEFAULT; + + if (ch == '\"') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_H_SGML_DOUBLESTRING; + } else if (ch == '\'') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_H_SGML_SIMPLESTRING; + } else if ((ch == '-') && (chPrev == '-')) { + if (static_cast(styler.GetStartSegment()) <= (i - 2)) { + styler.ColourTo(i - 2, StateToPrint); + } + state = SCE_H_SGML_COMMENT; + } else if (IsASCII(ch) && isalpha(ch) && (chPrev == '%')) { + styler.ColourTo(i - 2, StateToPrint); + state = SCE_H_SGML_ENTITY; + } else if (ch == '#') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_H_SGML_SPECIAL; + } else if (ch == '[') { + styler.ColourTo(i - 1, StateToPrint); + scriptLanguage = eScriptSGMLblock; + state = SCE_H_SGML_BLOCK_DEFAULT; + } else if (ch == ']') { + if (scriptLanguage == eScriptSGMLblock) { + styler.ColourTo(i, StateToPrint); + scriptLanguage = eScriptSGML; + } else { + styler.ColourTo(i - 1, StateToPrint); + styler.ColourTo(i, SCE_H_SGML_ERROR); + } + state = SCE_H_SGML_DEFAULT; + } else if (scriptLanguage == eScriptSGMLblock) { + if ((ch == '!') && (chPrev == '<')) { + styler.ColourTo(i - 2, StateToPrint); + styler.ColourTo(i, SCE_H_SGML_DEFAULT); + state = SCE_H_SGML_COMMAND; + } else if (ch == '>') { + styler.ColourTo(i - 1, StateToPrint); + styler.ColourTo(i, SCE_H_SGML_DEFAULT); + } + } + break; + case SCE_H_SGML_COMMAND: + if ((ch == '-') && (chPrev == '-')) { + styler.ColourTo(i - 2, StateToPrint); + state = SCE_H_SGML_COMMENT; + } else if (!issgmlwordchar(ch)) { + if (isWordHSGML(styler.GetStartSegment(), i - 1, keywords6, styler)) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_H_SGML_1ST_PARAM; + } else { + state = SCE_H_SGML_ERROR; + } + } + break; + case SCE_H_SGML_1ST_PARAM: + // wait for the beginning of the word + if ((ch == '-') && (chPrev == '-')) { + if (scriptLanguage == eScriptSGMLblock) { + styler.ColourTo(i - 2, SCE_H_SGML_BLOCK_DEFAULT); + } else { + styler.ColourTo(i - 2, SCE_H_SGML_DEFAULT); + } + state = SCE_H_SGML_1ST_PARAM_COMMENT; + } else if (issgmlwordchar(ch)) { + if (scriptLanguage == eScriptSGMLblock) { + styler.ColourTo(i - 1, SCE_H_SGML_BLOCK_DEFAULT); + } else { + styler.ColourTo(i - 1, SCE_H_SGML_DEFAULT); + } + // find the length of the word + int size = 1; + while (setHTMLWord.Contains(static_cast(styler.SafeGetCharAt(i + size)))) + size++; + styler.ColourTo(i + size - 1, StateToPrint); + i += size - 1; + visibleChars += size - 1; + ch = static_cast(styler.SafeGetCharAt(i)); + if (scriptLanguage == eScriptSGMLblock) { + state = SCE_H_SGML_BLOCK_DEFAULT; + } else { + state = SCE_H_SGML_DEFAULT; + } + continue; + } + break; + case SCE_H_SGML_ERROR: + if ((ch == '-') && (chPrev == '-')) { + styler.ColourTo(i - 2, StateToPrint); + state = SCE_H_SGML_COMMENT; + } + break; + case SCE_H_SGML_DOUBLESTRING: + if (ch == '\"') { + styler.ColourTo(i, StateToPrint); + state = SCE_H_SGML_DEFAULT; + } + break; + case SCE_H_SGML_SIMPLESTRING: + if (ch == '\'') { + styler.ColourTo(i, StateToPrint); + state = SCE_H_SGML_DEFAULT; + } + break; + case SCE_H_SGML_COMMENT: + if ((ch == '-') && (chPrev == '-')) { + styler.ColourTo(i, StateToPrint); + state = SCE_H_SGML_DEFAULT; + } + break; + case SCE_H_CDATA: + if ((chPrev2 == ']') && (chPrev == ']') && (ch == '>')) { + styler.ColourTo(i, StateToPrint); + state = SCE_H_DEFAULT; + levelCurrent--; + } + break; + case SCE_H_COMMENT: + if ((scriptLanguage != eScriptComment) && (chPrev2 == '-') && (chPrev == '-') && (ch == '>')) { + styler.ColourTo(i, StateToPrint); + state = SCE_H_DEFAULT; + levelCurrent--; + } + break; + case SCE_H_SGML_1ST_PARAM_COMMENT: + if ((ch == '-') && (chPrev == '-')) { + styler.ColourTo(i, SCE_H_SGML_COMMENT); + state = SCE_H_SGML_1ST_PARAM; + } + break; + case SCE_H_SGML_SPECIAL: + if (!(IsASCII(ch) && isupper(ch))) { + styler.ColourTo(i - 1, StateToPrint); + if (isalnum(ch)) { + state = SCE_H_SGML_ERROR; + } else { + state = SCE_H_SGML_DEFAULT; + } + } + break; + case SCE_H_SGML_ENTITY: + if (ch == ';') { + styler.ColourTo(i, StateToPrint); + state = SCE_H_SGML_DEFAULT; + } else if (!(IsASCII(ch) && isalnum(ch)) && ch != '-' && ch != '.') { + styler.ColourTo(i, SCE_H_SGML_ERROR); + state = SCE_H_SGML_DEFAULT; + } + break; + case SCE_H_ENTITY: + if (ch == ';') { + styler.ColourTo(i, StateToPrint); + state = SCE_H_DEFAULT; + } + if (ch != '#' && !(IsASCII(ch) && isalnum(ch)) // Should check that '#' follows '&', but it is unlikely anyway... + && ch != '.' && ch != '-' && ch != '_' && ch != ':') { // valid in XML + if (!IsASCII(ch)) // Possibly start of a multibyte character so don't allow this byte to be in entity style + styler.ColourTo(i-1, SCE_H_TAGUNKNOWN); + else + styler.ColourTo(i, SCE_H_TAGUNKNOWN); + state = SCE_H_DEFAULT; + } + break; + case SCE_H_TAGUNKNOWN: + if (!setTagContinue.Contains(ch) && !((ch == '/') && (chPrev == '<'))) { + int eClass = classifyTagHTML(styler.GetStartSegment(), + i - 1, keywords, styler, tagDontFold, caseSensitive, isXml, allowScripts); + if (eClass == SCE_H_SCRIPT || eClass == SCE_H_COMMENT) { + if (!tagClosing) { + inScriptType = eNonHtmlScript; + scriptLanguage = eClass == SCE_H_SCRIPT ? clientScript : eScriptComment; + } else { + scriptLanguage = eScriptNone; + } + eClass = SCE_H_TAG; + } + if (ch == '>') { + styler.ColourTo(i, eClass); + if (inScriptType == eNonHtmlScript) { + state = StateForScript(scriptLanguage); + } else { + state = SCE_H_DEFAULT; + } + tagOpened = false; + if (!tagDontFold) { + if (tagClosing) { + levelCurrent--; + } else { + levelCurrent++; + } + } + tagClosing = false; + } else if (ch == '/' && chNext == '>') { + if (eClass == SCE_H_TAGUNKNOWN) { + styler.ColourTo(i + 1, SCE_H_TAGUNKNOWN); + } else { + styler.ColourTo(i - 1, StateToPrint); + styler.ColourTo(i + 1, SCE_H_TAGEND); + } + i++; + ch = chNext; + state = SCE_H_DEFAULT; + tagOpened = false; + } else { + if (eClass != SCE_H_TAGUNKNOWN) { + if (eClass == SCE_H_SGML_DEFAULT) { + state = SCE_H_SGML_DEFAULT; + } else { + state = SCE_H_OTHER; + } + } + } + } + break; + case SCE_H_ATTRIBUTE: + if (!setAttributeContinue.Contains(ch)) { + if (inScriptType == eNonHtmlScript) { + int scriptLanguagePrev = scriptLanguage; + clientScript = segIsScriptingIndicator(styler, styler.GetStartSegment(), i - 1, scriptLanguage); + scriptLanguage = clientScript; + if ((scriptLanguagePrev != scriptLanguage) && (scriptLanguage == eScriptNone)) + inScriptType = eHtml; + } + classifyAttribHTML(styler.GetStartSegment(), i - 1, keywords, styler); + if (ch == '>') { + styler.ColourTo(i, SCE_H_TAG); + if (inScriptType == eNonHtmlScript) { + state = StateForScript(scriptLanguage); + } else { + state = SCE_H_DEFAULT; + } + tagOpened = false; + if (!tagDontFold) { + if (tagClosing) { + levelCurrent--; + } else { + levelCurrent++; + } + } + tagClosing = false; + } else if (ch == '=') { + styler.ColourTo(i, SCE_H_OTHER); + state = SCE_H_VALUE; + } else { + state = SCE_H_OTHER; + } + } + break; + case SCE_H_OTHER: + if (ch == '>') { + styler.ColourTo(i - 1, StateToPrint); + styler.ColourTo(i, SCE_H_TAG); + if (inScriptType == eNonHtmlScript) { + state = StateForScript(scriptLanguage); + } else { + state = SCE_H_DEFAULT; + } + tagOpened = false; + if (!tagDontFold) { + if (tagClosing) { + levelCurrent--; + } else { + levelCurrent++; + } + } + tagClosing = false; + } else if (ch == '\"') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_H_DOUBLESTRING; + } else if (ch == '\'') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_H_SINGLESTRING; + } else if (ch == '=') { + styler.ColourTo(i, StateToPrint); + state = SCE_H_VALUE; + } else if (ch == '/' && chNext == '>') { + styler.ColourTo(i - 1, StateToPrint); + styler.ColourTo(i + 1, SCE_H_TAGEND); + i++; + ch = chNext; + state = SCE_H_DEFAULT; + tagOpened = false; + } else if (ch == '?' && chNext == '>') { + styler.ColourTo(i - 1, StateToPrint); + styler.ColourTo(i + 1, SCE_H_XMLEND); + i++; + ch = chNext; + state = SCE_H_DEFAULT; + } else if (setHTMLWord.Contains(ch)) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_H_ATTRIBUTE; + } + break; + case SCE_H_DOUBLESTRING: + if (ch == '\"') { + if (inScriptType == eNonHtmlScript) { + scriptLanguage = segIsScriptingIndicator(styler, styler.GetStartSegment(), i, scriptLanguage); + } + styler.ColourTo(i, SCE_H_DOUBLESTRING); + state = SCE_H_OTHER; + } + break; + case SCE_H_SINGLESTRING: + if (ch == '\'') { + if (inScriptType == eNonHtmlScript) { + scriptLanguage = segIsScriptingIndicator(styler, styler.GetStartSegment(), i, scriptLanguage); + } + styler.ColourTo(i, SCE_H_SINGLESTRING); + state = SCE_H_OTHER; + } + break; + case SCE_H_VALUE: + if (!setHTMLWord.Contains(ch)) { + if (ch == '\"' && chPrev == '=') { + // Should really test for being first character + state = SCE_H_DOUBLESTRING; + } else if (ch == '\'' && chPrev == '=') { + state = SCE_H_SINGLESTRING; + } else { + if (IsNumber(styler.GetStartSegment(), styler)) { + styler.ColourTo(i - 1, SCE_H_NUMBER); + } else { + styler.ColourTo(i - 1, StateToPrint); + } + if (ch == '>') { + styler.ColourTo(i, SCE_H_TAG); + if (inScriptType == eNonHtmlScript) { + state = StateForScript(scriptLanguage); + } else { + state = SCE_H_DEFAULT; + } + tagOpened = false; + if (!tagDontFold) { + if (tagClosing) { + levelCurrent--; + } else { + levelCurrent++; + } + } + tagClosing = false; + } else { + state = SCE_H_OTHER; + } + } + } + break; + case SCE_HJ_DEFAULT: + case SCE_HJ_START: + case SCE_HJ_SYMBOLS: + if (IsAWordStart(ch)) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_WORD; + } else if (ch == '/' && chNext == '*') { + styler.ColourTo(i - 1, StateToPrint); + if (chNext2 == '*') + state = SCE_HJ_COMMENTDOC; + else + state = SCE_HJ_COMMENT; + if (chNext2 == '/') { + // Eat the * so it isn't used for the end of the comment + i++; + } + } else if (ch == '/' && chNext == '/') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_COMMENTLINE; + } else if (ch == '/' && setOKBeforeJSRE.Contains(chPrevNonWhite)) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_REGEX; + } else if (ch == '\"') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_DOUBLESTRING; + } else if (ch == '\'') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_SINGLESTRING; + } else if ((ch == '<') && (chNext == '!') && (chNext2 == '-') && + styler.SafeGetCharAt(i + 3) == '-') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_COMMENTLINE; + } else if ((ch == '-') && (chNext == '-') && (chNext2 == '>')) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_COMMENTLINE; + i += 2; + } else if (IsOperator(ch)) { + styler.ColourTo(i - 1, StateToPrint); + styler.ColourTo(i, statePrintForState(SCE_HJ_SYMBOLS, inScriptType)); + state = SCE_HJ_DEFAULT; + } else if ((ch == ' ') || (ch == '\t')) { + if (state == SCE_HJ_START) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_DEFAULT; + } + } + break; + case SCE_HJ_WORD: + if (!IsAWordChar(ch)) { + classifyWordHTJS(styler.GetStartSegment(), i - 1, keywords2, styler, inScriptType); + //styler.ColourTo(i - 1, eHTJSKeyword); + state = SCE_HJ_DEFAULT; + if (ch == '/' && chNext == '*') { + if (chNext2 == '*') + state = SCE_HJ_COMMENTDOC; + else + state = SCE_HJ_COMMENT; + } else if (ch == '/' && chNext == '/') { + state = SCE_HJ_COMMENTLINE; + } else if (ch == '\"') { + state = SCE_HJ_DOUBLESTRING; + } else if (ch == '\'') { + state = SCE_HJ_SINGLESTRING; + } else if ((ch == '-') && (chNext == '-') && (chNext2 == '>')) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_COMMENTLINE; + i += 2; + } else if (IsOperator(ch)) { + styler.ColourTo(i, statePrintForState(SCE_HJ_SYMBOLS, inScriptType)); + state = SCE_HJ_DEFAULT; + } + } + break; + case SCE_HJ_COMMENT: + case SCE_HJ_COMMENTDOC: + if (ch == '/' && chPrev == '*') { + styler.ColourTo(i, StateToPrint); + state = SCE_HJ_DEFAULT; + ch = ' '; + } + break; + case SCE_HJ_COMMENTLINE: + if (ch == '\r' || ch == '\n') { + styler.ColourTo(i - 1, statePrintForState(SCE_HJ_COMMENTLINE, inScriptType)); + state = SCE_HJ_DEFAULT; + ch = ' '; + } + break; + case SCE_HJ_DOUBLESTRING: + if (ch == '\\') { + if (chNext == '\"' || chNext == '\'' || chNext == '\\') { + i++; + } + } else if (ch == '\"') { + styler.ColourTo(i, statePrintForState(SCE_HJ_DOUBLESTRING, inScriptType)); + state = SCE_HJ_DEFAULT; + } else if ((inScriptType == eNonHtmlScript) && (ch == '-') && (chNext == '-') && (chNext2 == '>')) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_COMMENTLINE; + i += 2; + } else if (isLineEnd(ch)) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_STRINGEOL; + } + break; + case SCE_HJ_SINGLESTRING: + if (ch == '\\') { + if (chNext == '\"' || chNext == '\'' || chNext == '\\') { + i++; + } + } else if (ch == '\'') { + styler.ColourTo(i, statePrintForState(SCE_HJ_SINGLESTRING, inScriptType)); + state = SCE_HJ_DEFAULT; + } else if ((inScriptType == eNonHtmlScript) && (ch == '-') && (chNext == '-') && (chNext2 == '>')) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_COMMENTLINE; + i += 2; + } else if (isLineEnd(ch)) { + styler.ColourTo(i - 1, StateToPrint); + if (chPrev != '\\' && (chPrev2 != '\\' || chPrev != '\r' || ch != '\n')) { + state = SCE_HJ_STRINGEOL; + } + } + break; + case SCE_HJ_STRINGEOL: + if (!isLineEnd(ch)) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HJ_DEFAULT; + } else if (!isLineEnd(chNext)) { + styler.ColourTo(i, StateToPrint); + state = SCE_HJ_DEFAULT; + } + break; + case SCE_HJ_REGEX: + if (ch == '\r' || ch == '\n' || ch == '/') { + if (ch == '/') { + while (IsASCII(chNext) && islower(chNext)) { // gobble regex flags + i++; + ch = chNext; + chNext = static_cast(styler.SafeGetCharAt(i + 1)); + } + } + styler.ColourTo(i, StateToPrint); + state = SCE_HJ_DEFAULT; + } else if (ch == '\\') { + // Gobble up the quoted character + if (chNext == '\\' || chNext == '/') { + i++; + ch = chNext; + chNext = static_cast(styler.SafeGetCharAt(i + 1)); + } + } + break; + case SCE_HB_DEFAULT: + case SCE_HB_START: + if (IsAWordStart(ch)) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HB_WORD; + } else if (ch == '\'') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HB_COMMENTLINE; + } else if (ch == '\"') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HB_STRING; + } else if ((ch == '<') && (chNext == '!') && (chNext2 == '-') && + styler.SafeGetCharAt(i + 3) == '-') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HB_COMMENTLINE; + } else if (IsOperator(ch)) { + styler.ColourTo(i - 1, StateToPrint); + styler.ColourTo(i, statePrintForState(SCE_HB_DEFAULT, inScriptType)); + state = SCE_HB_DEFAULT; + } else if ((ch == ' ') || (ch == '\t')) { + if (state == SCE_HB_START) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HB_DEFAULT; + } + } + break; + case SCE_HB_WORD: + if (!IsAWordChar(ch)) { + state = classifyWordHTVB(styler.GetStartSegment(), i - 1, keywords3, styler, inScriptType); + if (state == SCE_HB_DEFAULT) { + if (ch == '\"') { + state = SCE_HB_STRING; + } else if (ch == '\'') { + state = SCE_HB_COMMENTLINE; + } else if (IsOperator(ch)) { + styler.ColourTo(i, statePrintForState(SCE_HB_DEFAULT, inScriptType)); + state = SCE_HB_DEFAULT; + } + } + } + break; + case SCE_HB_STRING: + if (ch == '\"') { + styler.ColourTo(i, StateToPrint); + state = SCE_HB_DEFAULT; + } else if (ch == '\r' || ch == '\n') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HB_STRINGEOL; + } + break; + case SCE_HB_COMMENTLINE: + if (ch == '\r' || ch == '\n') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HB_DEFAULT; + } + break; + case SCE_HB_STRINGEOL: + if (!isLineEnd(ch)) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HB_DEFAULT; + } else if (!isLineEnd(chNext)) { + styler.ColourTo(i, StateToPrint); + state = SCE_HB_DEFAULT; + } + break; + case SCE_HP_DEFAULT: + case SCE_HP_START: + if (IsAWordStart(ch)) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HP_WORD; + } else if ((ch == '<') && (chNext == '!') && (chNext2 == '-') && + styler.SafeGetCharAt(i + 3) == '-') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HP_COMMENTLINE; + } else if (ch == '#') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HP_COMMENTLINE; + } else if (ch == '\"') { + styler.ColourTo(i - 1, StateToPrint); + if (chNext == '\"' && chNext2 == '\"') { + i += 2; + state = SCE_HP_TRIPLEDOUBLE; + ch = ' '; + chPrev = ' '; + chNext = static_cast(styler.SafeGetCharAt(i + 1)); + } else { + // state = statePrintForState(SCE_HP_STRING,inScriptType); + state = SCE_HP_STRING; + } + } else if (ch == '\'') { + styler.ColourTo(i - 1, StateToPrint); + if (chNext == '\'' && chNext2 == '\'') { + i += 2; + state = SCE_HP_TRIPLE; + ch = ' '; + chPrev = ' '; + chNext = static_cast(styler.SafeGetCharAt(i + 1)); + } else { + state = SCE_HP_CHARACTER; + } + } else if (IsOperator(ch)) { + styler.ColourTo(i - 1, StateToPrint); + styler.ColourTo(i, statePrintForState(SCE_HP_OPERATOR, inScriptType)); + } else if ((ch == ' ') || (ch == '\t')) { + if (state == SCE_HP_START) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HP_DEFAULT; + } + } + break; + case SCE_HP_WORD: + if (!IsAWordChar(ch)) { + classifyWordHTPy(styler.GetStartSegment(), i - 1, keywords4, styler, prevWord, inScriptType, isMako); + state = SCE_HP_DEFAULT; + if (ch == '#') { + state = SCE_HP_COMMENTLINE; + } else if (ch == '\"') { + if (chNext == '\"' && chNext2 == '\"') { + i += 2; + state = SCE_HP_TRIPLEDOUBLE; + ch = ' '; + chPrev = ' '; + chNext = static_cast(styler.SafeGetCharAt(i + 1)); + } else { + state = SCE_HP_STRING; + } + } else if (ch == '\'') { + if (chNext == '\'' && chNext2 == '\'') { + i += 2; + state = SCE_HP_TRIPLE; + ch = ' '; + chPrev = ' '; + chNext = static_cast(styler.SafeGetCharAt(i + 1)); + } else { + state = SCE_HP_CHARACTER; + } + } else if (IsOperator(ch)) { + styler.ColourTo(i, statePrintForState(SCE_HP_OPERATOR, inScriptType)); + } + } + break; + case SCE_HP_COMMENTLINE: + if (ch == '\r' || ch == '\n') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HP_DEFAULT; + } + break; + case SCE_HP_STRING: + if (ch == '\\') { + if (chNext == '\"' || chNext == '\'' || chNext == '\\') { + i++; + ch = chNext; + chNext = static_cast(styler.SafeGetCharAt(i + 1)); + } + } else if (ch == '\"') { + styler.ColourTo(i, StateToPrint); + state = SCE_HP_DEFAULT; + } + break; + case SCE_HP_CHARACTER: + if (ch == '\\') { + if (chNext == '\"' || chNext == '\'' || chNext == '\\') { + i++; + ch = chNext; + chNext = static_cast(styler.SafeGetCharAt(i + 1)); + } + } else if (ch == '\'') { + styler.ColourTo(i, StateToPrint); + state = SCE_HP_DEFAULT; + } + break; + case SCE_HP_TRIPLE: + if (ch == '\'' && chPrev == '\'' && chPrev2 == '\'') { + styler.ColourTo(i, StateToPrint); + state = SCE_HP_DEFAULT; + } + break; + case SCE_HP_TRIPLEDOUBLE: + if (ch == '\"' && chPrev == '\"' && chPrev2 == '\"') { + styler.ColourTo(i, StateToPrint); + state = SCE_HP_DEFAULT; + } + break; + ///////////// start - PHP state handling + case SCE_HPHP_WORD: + if (!IsAWordChar(ch)) { + classifyWordHTPHP(styler.GetStartSegment(), i - 1, keywords5, styler); + if (ch == '/' && chNext == '*') { + i++; + state = SCE_HPHP_COMMENT; + } else if (ch == '/' && chNext == '/') { + i++; + state = SCE_HPHP_COMMENTLINE; + } else if (ch == '#') { + state = SCE_HPHP_COMMENTLINE; + } else if (ch == '\"') { + state = SCE_HPHP_HSTRING; + strcpy(phpStringDelimiter, "\""); + } else if (styler.Match(i, "<<<")) { + bool isSimpleString = false; + i = FindPhpStringDelimiter(phpStringDelimiter, sizeof(phpStringDelimiter), i + 3, lengthDoc, styler, isSimpleString); + if (strlen(phpStringDelimiter)) { + state = (isSimpleString ? SCE_HPHP_SIMPLESTRING : SCE_HPHP_HSTRING); + if (foldHeredoc) levelCurrent++; + } + } else if (ch == '\'') { + state = SCE_HPHP_SIMPLESTRING; + strcpy(phpStringDelimiter, "\'"); + } else if (ch == '$' && IsPhpWordStart(chNext)) { + state = SCE_HPHP_VARIABLE; + } else if (IsOperator(ch)) { + state = SCE_HPHP_OPERATOR; + } else { + state = SCE_HPHP_DEFAULT; + } + } + break; + case SCE_HPHP_NUMBER: + // recognize bases 8,10 or 16 integers OR floating-point numbers + if (!IsADigit(ch) + && strchr(".xXabcdefABCDEF", ch) == NULL + && ((ch != '-' && ch != '+') || (chPrev != 'e' && chPrev != 'E'))) { + styler.ColourTo(i - 1, SCE_HPHP_NUMBER); + if (IsOperator(ch)) + state = SCE_HPHP_OPERATOR; + else + state = SCE_HPHP_DEFAULT; + } + break; + case SCE_HPHP_VARIABLE: + if (!IsPhpWordChar(chNext)) { + styler.ColourTo(i, SCE_HPHP_VARIABLE); + state = SCE_HPHP_DEFAULT; + } + break; + case SCE_HPHP_COMMENT: + if (ch == '/' && chPrev == '*') { + styler.ColourTo(i, StateToPrint); + state = SCE_HPHP_DEFAULT; + } + break; + case SCE_HPHP_COMMENTLINE: + if (ch == '\r' || ch == '\n') { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HPHP_DEFAULT; + } + break; + case SCE_HPHP_HSTRING: + if (ch == '\\' && (phpStringDelimiter[0] == '\"' || chNext == '$' || chNext == '{')) { + // skip the next char + i++; + } else if (((ch == '{' && chNext == '$') || (ch == '$' && chNext == '{')) + && IsPhpWordStart(chNext2)) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HPHP_COMPLEX_VARIABLE; + } else if (ch == '$' && IsPhpWordStart(chNext)) { + styler.ColourTo(i - 1, StateToPrint); + state = SCE_HPHP_HSTRING_VARIABLE; + } else if (styler.Match(i, phpStringDelimiter)) { + if (phpStringDelimiter[0] == '\"') { + styler.ColourTo(i, StateToPrint); + state = SCE_HPHP_DEFAULT; + } else if (isLineEnd(chPrev)) { + const int psdLength = static_cast(strlen(phpStringDelimiter)); + const char chAfterPsd = styler.SafeGetCharAt(i + psdLength); + const char chAfterPsd2 = styler.SafeGetCharAt(i + psdLength + 1); + if (isLineEnd(chAfterPsd) || + (chAfterPsd == ';' && isLineEnd(chAfterPsd2))) { + i += (((i + psdLength) < lengthDoc) ? psdLength : lengthDoc) - 1; + styler.ColourTo(i, StateToPrint); + state = SCE_HPHP_DEFAULT; + if (foldHeredoc) levelCurrent--; + } + } + } + break; + case SCE_HPHP_SIMPLESTRING: + if (phpStringDelimiter[0] == '\'') { + if (ch == '\\') { + // skip the next char + i++; + } else if (ch == '\'') { + styler.ColourTo(i, StateToPrint); + state = SCE_HPHP_DEFAULT; + } + } else if (isLineEnd(chPrev) && styler.Match(i, phpStringDelimiter)) { + const int psdLength = static_cast(strlen(phpStringDelimiter)); + const char chAfterPsd = styler.SafeGetCharAt(i + psdLength); + const char chAfterPsd2 = styler.SafeGetCharAt(i + psdLength + 1); + if (isLineEnd(chAfterPsd) || + (chAfterPsd == ';' && isLineEnd(chAfterPsd2))) { + i += (((i + psdLength) < lengthDoc) ? psdLength : lengthDoc) - 1; + styler.ColourTo(i, StateToPrint); + state = SCE_HPHP_DEFAULT; + if (foldHeredoc) levelCurrent--; + } + } + break; + case SCE_HPHP_HSTRING_VARIABLE: + if (!IsPhpWordChar(chNext)) { + styler.ColourTo(i, StateToPrint); + state = SCE_HPHP_HSTRING; + } + break; + case SCE_HPHP_COMPLEX_VARIABLE: + if (ch == '}') { + styler.ColourTo(i, StateToPrint); + state = SCE_HPHP_HSTRING; + } + break; + case SCE_HPHP_OPERATOR: + case SCE_HPHP_DEFAULT: + styler.ColourTo(i - 1, StateToPrint); + if (IsADigit(ch) || (ch == '.' && IsADigit(chNext))) { + state = SCE_HPHP_NUMBER; + } else if (IsAWordStart(ch)) { + state = SCE_HPHP_WORD; + } else if (ch == '/' && chNext == '*') { + i++; + state = SCE_HPHP_COMMENT; + } else if (ch == '/' && chNext == '/') { + i++; + state = SCE_HPHP_COMMENTLINE; + } else if (ch == '#') { + state = SCE_HPHP_COMMENTLINE; + } else if (ch == '\"') { + state = SCE_HPHP_HSTRING; + strcpy(phpStringDelimiter, "\""); + } else if (styler.Match(i, "<<<")) { + bool isSimpleString = false; + i = FindPhpStringDelimiter(phpStringDelimiter, sizeof(phpStringDelimiter), i + 3, lengthDoc, styler, isSimpleString); + if (strlen(phpStringDelimiter)) { + state = (isSimpleString ? SCE_HPHP_SIMPLESTRING : SCE_HPHP_HSTRING); + if (foldHeredoc) levelCurrent++; + } + } else if (ch == '\'') { + state = SCE_HPHP_SIMPLESTRING; + strcpy(phpStringDelimiter, "\'"); + } else if (ch == '$' && IsPhpWordStart(chNext)) { + state = SCE_HPHP_VARIABLE; + } else if (IsOperator(ch)) { + state = SCE_HPHP_OPERATOR; + } else if ((state == SCE_HPHP_OPERATOR) && (IsASpace(ch))) { + state = SCE_HPHP_DEFAULT; + } + break; + ///////////// end - PHP state handling + } + + // Some of the above terminated their lexeme but since the same character starts + // the same class again, only reenter if non empty segment. + + bool nonEmptySegment = i >= static_cast(styler.GetStartSegment()); + if (state == SCE_HB_DEFAULT) { // One of the above succeeded + if ((ch == '\"') && (nonEmptySegment)) { + state = SCE_HB_STRING; + } else if (ch == '\'') { + state = SCE_HB_COMMENTLINE; + } else if (IsAWordStart(ch)) { + state = SCE_HB_WORD; + } else if (IsOperator(ch)) { + styler.ColourTo(i, SCE_HB_DEFAULT); + } + } else if (state == SCE_HBA_DEFAULT) { // One of the above succeeded + if ((ch == '\"') && (nonEmptySegment)) { + state = SCE_HBA_STRING; + } else if (ch == '\'') { + state = SCE_HBA_COMMENTLINE; + } else if (IsAWordStart(ch)) { + state = SCE_HBA_WORD; + } else if (IsOperator(ch)) { + styler.ColourTo(i, SCE_HBA_DEFAULT); + } + } else if (state == SCE_HJ_DEFAULT) { // One of the above succeeded + if (ch == '/' && chNext == '*') { + if (styler.SafeGetCharAt(i + 2) == '*') + state = SCE_HJ_COMMENTDOC; + else + state = SCE_HJ_COMMENT; + } else if (ch == '/' && chNext == '/') { + state = SCE_HJ_COMMENTLINE; + } else if ((ch == '\"') && (nonEmptySegment)) { + state = SCE_HJ_DOUBLESTRING; + } else if ((ch == '\'') && (nonEmptySegment)) { + state = SCE_HJ_SINGLESTRING; + } else if (IsAWordStart(ch)) { + state = SCE_HJ_WORD; + } else if (IsOperator(ch)) { + styler.ColourTo(i, statePrintForState(SCE_HJ_SYMBOLS, inScriptType)); + } + } + } + + switch (state) { + case SCE_HJ_WORD: + classifyWordHTJS(styler.GetStartSegment(), lengthDoc - 1, keywords2, styler, inScriptType); + break; + case SCE_HB_WORD: + classifyWordHTVB(styler.GetStartSegment(), lengthDoc - 1, keywords3, styler, inScriptType); + break; + case SCE_HP_WORD: + classifyWordHTPy(styler.GetStartSegment(), lengthDoc - 1, keywords4, styler, prevWord, inScriptType, isMako); + break; + case SCE_HPHP_WORD: + classifyWordHTPHP(styler.GetStartSegment(), lengthDoc - 1, keywords5, styler); + break; + default: + StateToPrint = statePrintForState(state, inScriptType); + if (static_cast(styler.GetStartSegment()) < lengthDoc) + styler.ColourTo(lengthDoc - 1, StateToPrint); + break; + } + + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + if (fold) { + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); + } +} + +static void ColouriseXMLDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + // Passing in true because we're lexing XML + ColouriseHyperTextDoc(startPos, length, initStyle, keywordlists, styler, true); +} + +static void ColouriseHTMLDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + // Passing in false because we're notlexing XML + ColouriseHyperTextDoc(startPos, length, initStyle, keywordlists, styler, false); +} + +static void ColourisePHPScriptDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + if (startPos == 0) + initStyle = SCE_HPHP_DEFAULT; + ColouriseHTMLDoc(startPos, length, initStyle, keywordlists, styler); +} + +static const char * const htmlWordListDesc[] = { + "HTML elements and attributes", + "JavaScript keywords", + "VBScript keywords", + "Python keywords", + "PHP keywords", + "SGML and DTD keywords", + 0, +}; + +static const char * const phpscriptWordListDesc[] = { + "", //Unused + "", //Unused + "", //Unused + "", //Unused + "PHP keywords", + "", //Unused + 0, +}; + +LexerModule lmHTML(SCLEX_HTML, ColouriseHTMLDoc, "hypertext", 0, htmlWordListDesc, 8); +LexerModule lmXML(SCLEX_XML, ColouriseXMLDoc, "xml", 0, htmlWordListDesc, 8); +LexerModule lmPHPSCRIPT(SCLEX_PHPSCRIPT, ColourisePHPScriptDoc, "phpscript", 0, phpscriptWordListDesc, 8); diff --git a/lexers/LexHaskell.cpp b/lexers/LexHaskell.cpp new file mode 100644 index 0000000..e10cb8c --- /dev/null +++ b/lexers/LexHaskell.cpp @@ -0,0 +1,1111 @@ +/****************************************************************** + * LexHaskell.cxx + * + * A haskell lexer for the scintilla code control. + * Some stuff "lended" from LexPython.cxx and LexCPP.cxx. + * External lexer stuff inspired from the caml external lexer. + * Folder copied from Python's. + * + * Written by Tobias Engvall - tumm at dtek dot chalmers dot se + * + * Several bug fixes by Krasimir Angelov - kr.angelov at gmail.com + * + * Improved by kudah + * + * TODO: + * * A proper lexical folder to fold group declarations, comments, pragmas, + * #ifdefs, explicit layout, lists, tuples, quasi-quotes, splces, etc, etc, + * etc. + * + *****************************************************************/ +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "PropSetSimple.h" +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" +#include "OptionSet.h" +#include "CharacterCategory.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +// See https://github.com/ghc/ghc/blob/master/compiler/parser/Lexer.x#L1682 +// Note, letter modifiers are prohibited. + +static int u_iswupper (int ch) { + CharacterCategory c = CategoriseCharacter(ch); + return c == ccLu || c == ccLt; +} + +static int u_iswalpha (int ch) { + CharacterCategory c = CategoriseCharacter(ch); + return c == ccLl || c == ccLu || c == ccLt || c == ccLo; +} + +static int u_iswalnum (int ch) { + CharacterCategory c = CategoriseCharacter(ch); + return c == ccLl || c == ccLu || c == ccLt || c == ccLo + || c == ccNd || c == ccNo; +} + +static int u_IsHaskellSymbol(int ch) { + CharacterCategory c = CategoriseCharacter(ch); + return c == ccPc || c == ccPd || c == ccPo + || c == ccSm || c == ccSc || c == ccSk || c == ccSo; +} + +static inline bool IsHaskellLetter(const int ch) { + if (IsASCII(ch)) { + return (ch >= 'a' && ch <= 'z') + || (ch >= 'A' && ch <= 'Z'); + } else { + return u_iswalpha(ch) != 0; + } +} + +static inline bool IsHaskellAlphaNumeric(const int ch) { + if (IsASCII(ch)) { + return IsAlphaNumeric(ch); + } else { + return u_iswalnum(ch) != 0; + } +} + +static inline bool IsHaskellUpperCase(const int ch) { + if (IsASCII(ch)) { + return ch >= 'A' && ch <= 'Z'; + } else { + return u_iswupper(ch) != 0; + } +} + +static inline bool IsAnHaskellOperatorChar(const int ch) { + if (IsASCII(ch)) { + return + ( ch == '!' || ch == '#' || ch == '$' || ch == '%' + || ch == '&' || ch == '*' || ch == '+' || ch == '-' + || ch == '.' || ch == '/' || ch == ':' || ch == '<' + || ch == '=' || ch == '>' || ch == '?' || ch == '@' + || ch == '^' || ch == '|' || ch == '~' || ch == '\\'); + } else { + return u_IsHaskellSymbol(ch) != 0; + } +} + +static inline bool IsAHaskellWordStart(const int ch) { + return IsHaskellLetter(ch) || ch == '_'; +} + +static inline bool IsAHaskellWordChar(const int ch) { + return ( IsHaskellAlphaNumeric(ch) + || ch == '_' + || ch == '\''); +} + +static inline bool IsCommentBlockStyle(int style) { + return (style >= SCE_HA_COMMENTBLOCK && style <= SCE_HA_COMMENTBLOCK3); +} + +static inline bool IsCommentStyle(int style) { + return (style >= SCE_HA_COMMENTLINE && style <= SCE_HA_COMMENTBLOCK3) + || ( style == SCE_HA_LITERATE_COMMENT + || style == SCE_HA_LITERATE_CODEDELIM); +} + +// styles which do not belong to Haskell, but to external tools +static inline bool IsExternalStyle(int style) { + return ( style == SCE_HA_PREPROCESSOR + || style == SCE_HA_LITERATE_COMMENT + || style == SCE_HA_LITERATE_CODEDELIM); +} + +static inline int CommentBlockStyleFromNestLevel(const unsigned int nestLevel) { + return SCE_HA_COMMENTBLOCK + (nestLevel % 3); +} + +// Mangled version of lexlib/Accessor.cxx IndentAmount. +// Modified to treat comment blocks as whitespace +// plus special case for commentline/preprocessor. +static int HaskellIndentAmount(Accessor &styler, const int line) { + + // Determines the indentation level of the current line + // Comment blocks are treated as whitespace + + int pos = styler.LineStart(line); + int eol_pos = styler.LineStart(line + 1) - 1; + + char ch = styler[pos]; + int style = styler.StyleAt(pos); + + int indent = 0; + bool inPrevPrefix = line > 0; + + int posPrev = inPrevPrefix ? styler.LineStart(line-1) : 0; + + while (( ch == ' ' || ch == '\t' + || IsCommentBlockStyle(style) + || style == SCE_HA_LITERATE_CODEDELIM) + && (pos < eol_pos)) { + if (inPrevPrefix) { + char chPrev = styler[posPrev++]; + if (chPrev != ' ' && chPrev != '\t') { + inPrevPrefix = false; + } + } + if (ch == '\t') { + indent = (indent / 8 + 1) * 8; + } else { // Space or comment block + indent++; + } + pos++; + ch = styler[pos]; + style = styler.StyleAt(pos); + } + + indent += SC_FOLDLEVELBASE; + // if completely empty line or the start of a comment or preprocessor... + if ( styler.LineStart(line) == styler.Length() + || ch == ' ' + || ch == '\t' + || ch == '\n' + || ch == '\r' + || IsCommentStyle(style) + || style == SCE_HA_PREPROCESSOR) + return indent | SC_FOLDLEVELWHITEFLAG; + else + return indent; +} + +struct OptionsHaskell { + bool magicHash; + bool allowQuotes; + bool implicitParams; + bool highlightSafe; + bool cpp; + bool stylingWithinPreprocessor; + bool fold; + bool foldComment; + bool foldCompact; + bool foldImports; + OptionsHaskell() { + magicHash = true; // Widespread use, enabled by default. + allowQuotes = true; // Widespread use, enabled by default. + implicitParams = false; // Fell out of favor, seldom used, disabled. + highlightSafe = true; // Moderately used, doesn't hurt to enable. + cpp = true; // Widespread use, enabled by default; + stylingWithinPreprocessor = false; + fold = false; + foldComment = false; + foldCompact = false; + foldImports = false; + } +}; + +static const char * const haskellWordListDesc[] = { + "Keywords", + "FFI", + "Reserved operators", + 0 +}; + +struct OptionSetHaskell : public OptionSet { + OptionSetHaskell() { + DefineProperty("lexer.haskell.allow.hash", &OptionsHaskell::magicHash, + "Set to 0 to disallow the '#' character at the end of identifiers and " + "literals with the haskell lexer " + "(GHC -XMagicHash extension)"); + + DefineProperty("lexer.haskell.allow.quotes", &OptionsHaskell::allowQuotes, + "Set to 0 to disable highlighting of Template Haskell name quotations " + "and promoted constructors " + "(GHC -XTemplateHaskell and -XDataKinds extensions)"); + + DefineProperty("lexer.haskell.allow.questionmark", &OptionsHaskell::implicitParams, + "Set to 1 to allow the '?' character at the start of identifiers " + "with the haskell lexer " + "(GHC & Hugs -XImplicitParams extension)"); + + DefineProperty("lexer.haskell.import.safe", &OptionsHaskell::highlightSafe, + "Set to 0 to disallow \"safe\" keyword in imports " + "(GHC -XSafe, -XTrustworthy, -XUnsafe extensions)"); + + DefineProperty("lexer.haskell.cpp", &OptionsHaskell::cpp, + "Set to 0 to disable C-preprocessor highlighting " + "(-XCPP extension)"); + + DefineProperty("styling.within.preprocessor", &OptionsHaskell::stylingWithinPreprocessor, + "For Haskell code, determines whether all preprocessor code is styled in the " + "preprocessor style (0, the default) or only from the initial # to the end " + "of the command word(1)." + ); + + DefineProperty("fold", &OptionsHaskell::fold); + + DefineProperty("fold.comment", &OptionsHaskell::foldComment); + + DefineProperty("fold.compact", &OptionsHaskell::foldCompact); + + DefineProperty("fold.haskell.imports", &OptionsHaskell::foldImports, + "Set to 1 to enable folding of import declarations"); + + DefineWordListSets(haskellWordListDesc); + } +}; + +class LexerHaskell : public ILexer { + bool literate; + int firstImportLine; + int firstImportIndent; + WordList keywords; + WordList ffi; + WordList reserved_operators; + OptionsHaskell options; + OptionSetHaskell osHaskell; + + enum HashCount { + oneHash + ,twoHashes + ,unlimitedHashes + }; + + enum KeywordMode { + HA_MODE_DEFAULT = 0 + ,HA_MODE_IMPORT1 = 1 // after "import", before "qualified" or "safe" or package name or module name. + ,HA_MODE_IMPORT2 = 2 // after module name, before "as" or "hiding". + ,HA_MODE_IMPORT3 = 3 // after "as", before "hiding" + ,HA_MODE_MODULE = 4 // after "module", before module name. + ,HA_MODE_FFI = 5 // after "foreign", before FFI keywords + ,HA_MODE_TYPE = 6 // after "type" or "data", before "family" + }; + + enum LiterateMode { + LITERATE_BIRD = 0 // if '>' is the first character on the line, + // color '>' as a codedelim and the rest of + // the line as code. + // else if "\begin{code}" is the only word on the + // line except whitespace, switch to LITERATE_BLOCK + // otherwise color the line as a literate comment. + ,LITERATE_BLOCK = 1 // if the string "\end{code}" is encountered at column + // 0 ignoring all later characters, color the line + // as a codedelim and switch to LITERATE_BIRD + // otherwise color the line as code. + }; + + struct HaskellLineInfo { + unsigned int nestLevel; // 22 bits ought to be enough for anybody + unsigned int nonexternalStyle; // 5 bits, widen if number of styles goes + // beyond 31. + bool pragma; + LiterateMode lmode; + KeywordMode mode; + + HaskellLineInfo(int state) : + nestLevel (state >> 10) + , nonexternalStyle ((state >> 5) & 0x1F) + , pragma ((state >> 4) & 0x1) + , lmode (static_cast((state >> 3) & 0x1)) + , mode (static_cast(state & 0x7)) + {} + + int ToLineState() { + return + (nestLevel << 10) + | (nonexternalStyle << 5) + | (pragma << 4) + | (lmode << 3) + | mode; + } + }; + + inline void skipMagicHash(StyleContext &sc, const HashCount hashes) const { + if (options.magicHash && sc.ch == '#') { + sc.Forward(); + if (hashes == twoHashes && sc.ch == '#') { + sc.Forward(); + } else if (hashes == unlimitedHashes) { + while (sc.ch == '#') { + sc.Forward(); + } + } + } + } + + bool LineContainsImport(const int line, Accessor &styler) const { + if (options.foldImports) { + int currentPos = styler.LineStart(line); + int style = styler.StyleAt(currentPos); + + int eol_pos = styler.LineStart(line + 1) - 1; + + while (currentPos < eol_pos) { + int ch = styler[currentPos]; + style = styler.StyleAt(currentPos); + + if (ch == ' ' || ch == '\t' + || IsCommentBlockStyle(style) + || style == SCE_HA_LITERATE_CODEDELIM) { + currentPos++; + } else { + break; + } + } + + return (style == SCE_HA_KEYWORD + && styler.Match(currentPos, "import")); + } else { + return false; + } + } + + inline int IndentAmountWithOffset(Accessor &styler, const int line) const { + const int indent = HaskellIndentAmount(styler, line); + const int indentLevel = indent & SC_FOLDLEVELNUMBERMASK; + return indentLevel <= ((firstImportIndent - 1) + SC_FOLDLEVELBASE) + ? indent + : (indentLevel + firstImportIndent) | (indent & ~SC_FOLDLEVELNUMBERMASK); + } + + inline int IndentLevelRemoveIndentOffset(const int indentLevel) const { + return indentLevel <= ((firstImportIndent - 1) + SC_FOLDLEVELBASE) + ? indentLevel + : indentLevel - firstImportIndent; + } + +public: + LexerHaskell(bool literate_) + : literate(literate_) + , firstImportLine(-1) + , firstImportIndent(0) + {} + virtual ~LexerHaskell() {} + + void SCI_METHOD Release() { + delete this; + } + + int SCI_METHOD Version() const { + return lvOriginal; + } + + const char * SCI_METHOD PropertyNames() { + return osHaskell.PropertyNames(); + } + + int SCI_METHOD PropertyType(const char *name) { + return osHaskell.PropertyType(name); + } + + const char * SCI_METHOD DescribeProperty(const char *name) { + return osHaskell.DescribeProperty(name); + } + + int SCI_METHOD PropertySet(const char *key, const char *val); + + const char * SCI_METHOD DescribeWordListSets() { + return osHaskell.DescribeWordListSets(); + } + + int SCI_METHOD WordListSet(int n, const char *wl); + + void SCI_METHOD Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + + void SCI_METHOD Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + + void * SCI_METHOD PrivateCall(int, void *) { + return 0; + } + + static ILexer *LexerFactoryHaskell() { + return new LexerHaskell(false); + } + + static ILexer *LexerFactoryLiterateHaskell() { + return new LexerHaskell(true); + } +}; + +int SCI_METHOD LexerHaskell::PropertySet(const char *key, const char *val) { + if (osHaskell.PropertySet(&options, key, val)) { + return 0; + } + return -1; +} + +int SCI_METHOD LexerHaskell::WordListSet(int n, const char *wl) { + WordList *wordListN = 0; + switch (n) { + case 0: + wordListN = &keywords; + break; + case 1: + wordListN = &ffi; + break; + case 2: + wordListN = &reserved_operators; + break; + } + int firstModification = -1; + if (wordListN) { + WordList wlNew; + wlNew.Set(wl); + if (*wordListN != wlNew) { + wordListN->Set(wl); + firstModification = 0; + } + } + return firstModification; +} + +void SCI_METHOD LexerHaskell::Lex(unsigned int startPos, int length, int initStyle + ,IDocument *pAccess) { + LexAccessor styler(pAccess); + + int lineCurrent = styler.GetLine(startPos); + + HaskellLineInfo hs = HaskellLineInfo(lineCurrent ? styler.GetLineState(lineCurrent-1) : 0); + + // Do not leak onto next line + if (initStyle == SCE_HA_STRINGEOL) + initStyle = SCE_HA_DEFAULT; + else if (initStyle == SCE_HA_LITERATE_CODEDELIM) + initStyle = hs.nonexternalStyle; + + StyleContext sc(startPos, length, initStyle, styler); + + int base = 10; + bool dot = false; + + bool inDashes = false; + bool alreadyInTheMiddleOfOperator = false; + + assert(!(IsCommentBlockStyle(initStyle) && hs.nestLevel == 0)); + + while (sc.More()) { + // Check for state end + + if (!IsExternalStyle(sc.state)) { + hs.nonexternalStyle = sc.state; + } + + // For lexer to work, states should unconditionally forward at least one + // character. + // If they don't, they should still check if they are at line end and + // forward if so. + // If a state forwards more than one character, it should check every time + // that it is not a line end and cease forwarding otherwise. + if (sc.atLineEnd) { + // Remember the line state for future incremental lexing + styler.SetLineState(lineCurrent, hs.ToLineState()); + lineCurrent++; + } + + // Handle line continuation generically. + if (sc.ch == '\\' && (sc.chNext == '\n' || sc.chNext == '\r') + && ( sc.state == SCE_HA_STRING + || sc.state == SCE_HA_PREPROCESSOR)) { + // Remember the line state for future incremental lexing + styler.SetLineState(lineCurrent, hs.ToLineState()); + lineCurrent++; + + sc.Forward(); + if (sc.ch == '\r' && sc.chNext == '\n') { + sc.Forward(); + } + sc.Forward(); + + continue; + } + + if (sc.atLineStart) { + + if (sc.state == SCE_HA_STRING || sc.state == SCE_HA_CHARACTER) { + // Prevent SCE_HA_STRINGEOL from leaking back to previous line + sc.SetState(sc.state); + } + + if (literate && hs.lmode == LITERATE_BIRD) { + if (!IsExternalStyle(sc.state)) { + sc.SetState(SCE_HA_LITERATE_COMMENT); + } + } + } + + // External + // Literate + if ( literate && hs.lmode == LITERATE_BIRD && sc.atLineStart + && sc.ch == '>') { + sc.SetState(SCE_HA_LITERATE_CODEDELIM); + sc.ForwardSetState(hs.nonexternalStyle); + } + else if (literate && hs.lmode == LITERATE_BIRD && sc.atLineStart + && ( sc.ch == ' ' || sc.ch == '\t' + || sc.Match("\\begin{code}"))) { + sc.SetState(sc.state); + + while ((sc.ch == ' ' || sc.ch == '\t') && sc.More()) + sc.Forward(); + + if (sc.Match("\\begin{code}")) { + sc.Forward(static_cast(strlen("\\begin{code}"))); + + bool correct = true; + + while (!sc.atLineEnd && sc.More()) { + if (sc.ch != ' ' && sc.ch != '\t') { + correct = false; + } + sc.Forward(); + } + + if (correct) { + sc.ChangeState(SCE_HA_LITERATE_CODEDELIM); // color the line end + hs.lmode = LITERATE_BLOCK; + } + } + } + else if (literate && hs.lmode == LITERATE_BLOCK && sc.atLineStart + && sc.Match("\\end{code}")) { + sc.SetState(SCE_HA_LITERATE_CODEDELIM); + + sc.Forward(static_cast(strlen("\\end{code}"))); + + while (!sc.atLineEnd && sc.More()) { + sc.Forward(); + } + + sc.SetState(SCE_HA_LITERATE_COMMENT); + hs.lmode = LITERATE_BIRD; + } + // Preprocessor + else if (sc.atLineStart && sc.ch == '#' && options.cpp + && (!options.stylingWithinPreprocessor || sc.state == SCE_HA_DEFAULT)) { + sc.SetState(SCE_HA_PREPROCESSOR); + sc.Forward(); + } + // Literate + else if (sc.state == SCE_HA_LITERATE_COMMENT) { + sc.Forward(); + } + else if (sc.state == SCE_HA_LITERATE_CODEDELIM) { + sc.ForwardSetState(hs.nonexternalStyle); + } + // Preprocessor + else if (sc.state == SCE_HA_PREPROCESSOR) { + if (sc.atLineEnd) { + sc.SetState(options.stylingWithinPreprocessor + ? SCE_HA_DEFAULT + : hs.nonexternalStyle); + sc.Forward(); // prevent double counting a line + } else if (options.stylingWithinPreprocessor && !IsHaskellLetter(sc.ch)) { + sc.SetState(SCE_HA_DEFAULT); + } else { + sc.Forward(); + } + } + // Haskell + // Operator + else if (sc.state == SCE_HA_OPERATOR) { + int style = SCE_HA_OPERATOR; + + if ( sc.ch == ':' + && !alreadyInTheMiddleOfOperator + // except "::" + && !( sc.chNext == ':' + && !IsAnHaskellOperatorChar(sc.GetRelative(2)))) { + style = SCE_HA_CAPITAL; + } + + alreadyInTheMiddleOfOperator = false; + + while (IsAnHaskellOperatorChar(sc.ch)) + sc.Forward(); + + char s[100]; + sc.GetCurrent(s, sizeof(s)); + + if (reserved_operators.InList(s)) + style = SCE_HA_RESERVED_OPERATOR; + + sc.ChangeState(style); + sc.SetState(SCE_HA_DEFAULT); + } + // String + else if (sc.state == SCE_HA_STRING) { + if (sc.atLineEnd) { + sc.ChangeState(SCE_HA_STRINGEOL); + sc.ForwardSetState(SCE_HA_DEFAULT); + } else if (sc.ch == '\"') { + sc.Forward(); + skipMagicHash(sc, oneHash); + sc.SetState(SCE_HA_DEFAULT); + } else if (sc.ch == '\\') { + sc.Forward(2); + } else { + sc.Forward(); + } + } + // Char + else if (sc.state == SCE_HA_CHARACTER) { + if (sc.atLineEnd) { + sc.ChangeState(SCE_HA_STRINGEOL); + sc.ForwardSetState(SCE_HA_DEFAULT); + } else if (sc.ch == '\'') { + sc.Forward(); + skipMagicHash(sc, oneHash); + sc.SetState(SCE_HA_DEFAULT); + } else if (sc.ch == '\\') { + sc.Forward(2); + } else { + sc.Forward(); + } + } + // Number + else if (sc.state == SCE_HA_NUMBER) { + if (sc.atLineEnd) { + sc.SetState(SCE_HA_DEFAULT); + sc.Forward(); // prevent double counting a line + } else if (IsADigit(sc.ch, base)) { + sc.Forward(); + } else if (sc.ch=='.' && dot && IsADigit(sc.chNext, base)) { + sc.Forward(2); + dot = false; + } else if ((base == 10) && + (sc.ch == 'e' || sc.ch == 'E') && + (IsADigit(sc.chNext) || sc.chNext == '+' || sc.chNext == '-')) { + sc.Forward(); + if (sc.ch == '+' || sc.ch == '-') + sc.Forward(); + } else { + skipMagicHash(sc, twoHashes); + sc.SetState(SCE_HA_DEFAULT); + } + } + // Keyword or Identifier + else if (sc.state == SCE_HA_IDENTIFIER) { + int style = IsHaskellUpperCase(sc.ch) ? SCE_HA_CAPITAL : SCE_HA_IDENTIFIER; + + assert(IsAHaskellWordStart(sc.ch)); + + sc.Forward(); + + while (sc.More()) { + if (IsAHaskellWordChar(sc.ch)) { + sc.Forward(); + } else if (sc.ch == '.' && style == SCE_HA_CAPITAL) { + if (IsHaskellUpperCase(sc.chNext)) { + sc.Forward(); + style = SCE_HA_CAPITAL; + } else if (IsAHaskellWordStart(sc.chNext)) { + sc.Forward(); + style = SCE_HA_IDENTIFIER; + } else if (IsAnHaskellOperatorChar(sc.chNext)) { + sc.Forward(); + style = sc.ch == ':' ? SCE_HA_CAPITAL : SCE_HA_OPERATOR; + while (IsAnHaskellOperatorChar(sc.ch)) + sc.Forward(); + break; + } else { + break; + } + } else { + break; + } + } + + skipMagicHash(sc, unlimitedHashes); + + char s[100]; + sc.GetCurrent(s, sizeof(s)); + + KeywordMode new_mode = HA_MODE_DEFAULT; + + if (keywords.InList(s)) { + style = SCE_HA_KEYWORD; + } else if (style == SCE_HA_CAPITAL) { + if (hs.mode == HA_MODE_IMPORT1 || hs.mode == HA_MODE_IMPORT3) { + style = SCE_HA_MODULE; + new_mode = HA_MODE_IMPORT2; + } else if (hs.mode == HA_MODE_MODULE) { + style = SCE_HA_MODULE; + } + } else if (hs.mode == HA_MODE_IMPORT1 && + strcmp(s,"qualified") == 0) { + style = SCE_HA_KEYWORD; + new_mode = HA_MODE_IMPORT1; + } else if (options.highlightSafe && + hs.mode == HA_MODE_IMPORT1 && + strcmp(s,"safe") == 0) { + style = SCE_HA_KEYWORD; + new_mode = HA_MODE_IMPORT1; + } else if (hs.mode == HA_MODE_IMPORT2) { + if (strcmp(s,"as") == 0) { + style = SCE_HA_KEYWORD; + new_mode = HA_MODE_IMPORT3; + } else if (strcmp(s,"hiding") == 0) { + style = SCE_HA_KEYWORD; + } + } else if (hs.mode == HA_MODE_TYPE) { + if (strcmp(s,"family") == 0) + style = SCE_HA_KEYWORD; + } + + if (hs.mode == HA_MODE_FFI) { + if (ffi.InList(s)) { + style = SCE_HA_KEYWORD; + new_mode = HA_MODE_FFI; + } + } + + sc.ChangeState(style); + sc.SetState(SCE_HA_DEFAULT); + + if (strcmp(s,"import") == 0 && hs.mode != HA_MODE_FFI) + new_mode = HA_MODE_IMPORT1; + else if (strcmp(s,"module") == 0) + new_mode = HA_MODE_MODULE; + else if (strcmp(s,"foreign") == 0) + new_mode = HA_MODE_FFI; + else if (strcmp(s,"type") == 0 + || strcmp(s,"data") == 0) + new_mode = HA_MODE_TYPE; + + hs.mode = new_mode; + } + + // Comments + // Oneliner + else if (sc.state == SCE_HA_COMMENTLINE) { + if (sc.atLineEnd) { + sc.SetState(hs.pragma ? SCE_HA_PRAGMA : SCE_HA_DEFAULT); + sc.Forward(); // prevent double counting a line + } else if (inDashes && sc.ch != '-' && !hs.pragma) { + inDashes = false; + if (IsAnHaskellOperatorChar(sc.ch)) { + alreadyInTheMiddleOfOperator = true; + sc.ChangeState(SCE_HA_OPERATOR); + } + } else { + sc.Forward(); + } + } + // Nested + else if (IsCommentBlockStyle(sc.state)) { + if (sc.Match('{','-')) { + sc.SetState(CommentBlockStyleFromNestLevel(hs.nestLevel)); + sc.Forward(2); + hs.nestLevel++; + } else if (sc.Match('-','}')) { + sc.Forward(2); + assert(hs.nestLevel > 0); + if (hs.nestLevel > 0) + hs.nestLevel--; + sc.SetState( + hs.nestLevel == 0 + ? (hs.pragma ? SCE_HA_PRAGMA : SCE_HA_DEFAULT) + : CommentBlockStyleFromNestLevel(hs.nestLevel - 1)); + } else { + sc.Forward(); + } + } + // Pragma + else if (sc.state == SCE_HA_PRAGMA) { + if (sc.Match("#-}")) { + hs.pragma = false; + sc.Forward(3); + sc.SetState(SCE_HA_DEFAULT); + } else if (sc.Match('-','-')) { + sc.SetState(SCE_HA_COMMENTLINE); + sc.Forward(2); + inDashes = false; + } else if (sc.Match('{','-')) { + sc.SetState(CommentBlockStyleFromNestLevel(hs.nestLevel)); + sc.Forward(2); + hs.nestLevel = 1; + } else { + sc.Forward(); + } + } + // New state? + else if (sc.state == SCE_HA_DEFAULT) { + // Digit + if (IsADigit(sc.ch)) { + hs.mode = HA_MODE_DEFAULT; + + sc.SetState(SCE_HA_NUMBER); + if (sc.ch == '0' && (sc.chNext == 'X' || sc.chNext == 'x')) { + // Match anything starting with "0x" or "0X", too + sc.Forward(2); + base = 16; + dot = false; + } else if (sc.ch == '0' && (sc.chNext == 'O' || sc.chNext == 'o')) { + // Match anything starting with "0o" or "0O", too + sc.Forward(2); + base = 8; + dot = false; + } else { + sc.Forward(); + base = 10; + dot = true; + } + } + // Pragma + else if (sc.Match("{-#")) { + hs.pragma = true; + sc.SetState(SCE_HA_PRAGMA); + sc.Forward(3); + } + // Comment line + else if (sc.Match('-','-')) { + sc.SetState(SCE_HA_COMMENTLINE); + sc.Forward(2); + inDashes = true; + } + // Comment block + else if (sc.Match('{','-')) { + sc.SetState(CommentBlockStyleFromNestLevel(hs.nestLevel)); + sc.Forward(2); + hs.nestLevel = 1; + } + // String + else if (sc.ch == '\"') { + sc.SetState(SCE_HA_STRING); + sc.Forward(); + } + // Character or quoted name or promoted term + else if (sc.ch == '\'') { + hs.mode = HA_MODE_DEFAULT; + + sc.SetState(SCE_HA_CHARACTER); + sc.Forward(); + + if (options.allowQuotes) { + // Quoted type ''T + if (sc.ch=='\'' && IsAHaskellWordStart(sc.chNext)) { + sc.Forward(); + sc.ChangeState(SCE_HA_IDENTIFIER); + } else if (sc.chNext != '\'') { + // Quoted name 'n or promoted constructor 'N + if (IsAHaskellWordStart(sc.ch)) { + sc.ChangeState(SCE_HA_IDENTIFIER); + // Promoted constructor operator ':~> + } else if (sc.ch == ':') { + alreadyInTheMiddleOfOperator = false; + sc.ChangeState(SCE_HA_OPERATOR); + // Promoted list or tuple '[T] + } else if (sc.ch == '[' || sc.ch== '(') { + sc.ChangeState(SCE_HA_OPERATOR); + sc.ForwardSetState(SCE_HA_DEFAULT); + } + } + } + } + // Operator starting with '?' or an implicit parameter + else if (sc.ch == '?') { + hs.mode = HA_MODE_DEFAULT; + + alreadyInTheMiddleOfOperator = false; + sc.SetState(SCE_HA_OPERATOR); + + if ( options.implicitParams + && IsAHaskellWordStart(sc.chNext) + && !IsHaskellUpperCase(sc.chNext)) { + sc.Forward(); + sc.ChangeState(SCE_HA_IDENTIFIER); + } + } + // Operator + else if (IsAnHaskellOperatorChar(sc.ch)) { + hs.mode = HA_MODE_DEFAULT; + + sc.SetState(SCE_HA_OPERATOR); + } + // Braces and punctuation + else if (sc.ch == ',' || sc.ch == ';' + || sc.ch == '(' || sc.ch == ')' + || sc.ch == '[' || sc.ch == ']' + || sc.ch == '{' || sc.ch == '}') { + sc.SetState(SCE_HA_OPERATOR); + sc.ForwardSetState(SCE_HA_DEFAULT); + } + // Keyword or Identifier + else if (IsAHaskellWordStart(sc.ch)) { + sc.SetState(SCE_HA_IDENTIFIER); + // Something we don't care about + } else { + sc.Forward(); + } + } + // This branch should never be reached. + else { + assert(false); + sc.Forward(); + } + } + sc.Complete(); +} + +void SCI_METHOD LexerHaskell::Fold(unsigned int startPos, int length, int // initStyle + ,IDocument *pAccess) { + if (!options.fold) + return; + + Accessor styler(pAccess, NULL); + + int lineCurrent = styler.GetLine(startPos); + + if (lineCurrent <= firstImportLine) { + firstImportLine = -1; // readjust first import position + firstImportIndent = 0; + } + + const int maxPos = startPos + length; + const int maxLines = + maxPos == styler.Length() + ? styler.GetLine(maxPos) + : styler.GetLine(maxPos - 1); // Requested last line + const int docLines = styler.GetLine(styler.Length()); // Available last line + + // Backtrack to previous non-blank line so we can determine indent level + // for any white space lines + // and so we can fix any preceding fold level (which is why we go back + // at least one line in all cases) + bool importHere = LineContainsImport(lineCurrent, styler); + int indentCurrent = IndentAmountWithOffset(styler, lineCurrent); + + while (lineCurrent > 0) { + lineCurrent--; + importHere = LineContainsImport(lineCurrent, styler); + indentCurrent = IndentAmountWithOffset(styler, lineCurrent); + if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) + break; + } + + int indentCurrentLevel = indentCurrent & SC_FOLDLEVELNUMBERMASK; + + if (importHere) { + indentCurrentLevel = IndentLevelRemoveIndentOffset(indentCurrentLevel); + if (firstImportLine == -1) { + firstImportLine = lineCurrent; + firstImportIndent = (1 + indentCurrentLevel) - SC_FOLDLEVELBASE; + } + if (firstImportLine != lineCurrent) { + indentCurrentLevel++; + } + } + + indentCurrent = indentCurrentLevel | (indentCurrent & ~SC_FOLDLEVELNUMBERMASK); + + // Process all characters to end of requested range + //that hangs over the end of the range. Cap processing in all cases + // to end of document. + while (lineCurrent <= docLines && lineCurrent <= maxLines) { + + // Gather info + int lineNext = lineCurrent + 1; + importHere = false; + int indentNext = indentCurrent; + + if (lineNext <= docLines) { + // Information about next line is only available if not at end of document + importHere = LineContainsImport(lineNext, styler); + indentNext = IndentAmountWithOffset(styler, lineNext); + } + if (indentNext & SC_FOLDLEVELWHITEFLAG) + indentNext = SC_FOLDLEVELWHITEFLAG | indentCurrentLevel; + + // Skip past any blank lines for next indent level info; we skip also + // comments (all comments, not just those starting in column 0) + // which effectively folds them into surrounding code rather + // than screwing up folding. + + while (lineNext < docLines && (indentNext & SC_FOLDLEVELWHITEFLAG)) { + lineNext++; + importHere = LineContainsImport(lineNext, styler); + indentNext = IndentAmountWithOffset(styler, lineNext); + } + + int indentNextLevel = indentNext & SC_FOLDLEVELNUMBERMASK; + + if (importHere) { + indentNextLevel = IndentLevelRemoveIndentOffset(indentNextLevel); + if (firstImportLine == -1) { + firstImportLine = lineNext; + firstImportIndent = (1 + indentNextLevel) - SC_FOLDLEVELBASE; + } + if (firstImportLine != lineNext) { + indentNextLevel++; + } + } + + indentNext = indentNextLevel | (indentNext & ~SC_FOLDLEVELNUMBERMASK); + + const int levelBeforeComments = Maximum(indentCurrentLevel,indentNextLevel); + + // Now set all the indent levels on the lines we skipped + // Do this from end to start. Once we encounter one line + // which is indented more than the line after the end of + // the comment-block, use the level of the block before + + int skipLine = lineNext; + int skipLevel = indentNextLevel; + + while (--skipLine > lineCurrent) { + int skipLineIndent = IndentAmountWithOffset(styler, skipLine); + + if (options.foldCompact) { + if ((skipLineIndent & SC_FOLDLEVELNUMBERMASK) > indentNextLevel) { + skipLevel = levelBeforeComments; + } + + int whiteFlag = skipLineIndent & SC_FOLDLEVELWHITEFLAG; + + styler.SetLevel(skipLine, skipLevel | whiteFlag); + } else { + if ( (skipLineIndent & SC_FOLDLEVELNUMBERMASK) > indentNextLevel + && !(skipLineIndent & SC_FOLDLEVELWHITEFLAG)) { + skipLevel = levelBeforeComments; + } + + styler.SetLevel(skipLine, skipLevel); + } + } + + int lev = indentCurrent; + + if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) { + if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext & SC_FOLDLEVELNUMBERMASK)) + lev |= SC_FOLDLEVELHEADERFLAG; + } + + // Set fold level for this line and move to next line + styler.SetLevel(lineCurrent, options.foldCompact ? lev : lev & ~SC_FOLDLEVELWHITEFLAG); + + indentCurrent = indentNext; + indentCurrentLevel = indentNextLevel; + lineCurrent = lineNext; + } + + // NOTE: Cannot set level of last line here because indentCurrent doesn't have + // header flag set; the loop above is crafted to take care of this case! + //styler.SetLevel(lineCurrent, indentCurrent); +} + +LexerModule lmHaskell(SCLEX_HASKELL, LexerHaskell::LexerFactoryHaskell, "haskell", haskellWordListDesc); +LexerModule lmLiterateHaskell(SCLEX_LITERATEHASKELL, LexerHaskell::LexerFactoryLiterateHaskell, "literatehaskell", haskellWordListDesc); diff --git a/lexers/LexInno.cpp b/lexers/LexInno.cpp new file mode 100644 index 0000000..63fadf0 --- /dev/null +++ b/lexers/LexInno.cpp @@ -0,0 +1,290 @@ +// Scintilla source code edit control +/** @file LexInno.cxx + ** Lexer for Inno Setup scripts. + **/ +// Written by Friedrich Vedder , using code from LexOthers.cxx. +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static void ColouriseInnoDoc(unsigned int startPos, int length, int, WordList *keywordLists[], Accessor &styler) { + int state = SCE_INNO_DEFAULT; + char chPrev; + char ch = 0; + char chNext = styler[startPos]; + int lengthDoc = startPos + length; + char *buffer = new char[length]; + int bufferCount = 0; + bool isBOL, isEOL, isWS, isBOLWS = 0; + bool isCStyleComment = false; + + WordList §ionKeywords = *keywordLists[0]; + WordList &standardKeywords = *keywordLists[1]; + WordList ¶meterKeywords = *keywordLists[2]; + WordList &preprocessorKeywords = *keywordLists[3]; + WordList &pascalKeywords = *keywordLists[4]; + WordList &userKeywords = *keywordLists[5]; + + int curLine = styler.GetLine(startPos); + int curLineState = curLine > 0 ? styler.GetLineState(curLine - 1) : 0; + bool isCode = (curLineState == 1); + + // Go through all provided text segment + // using the hand-written state machine shown below + styler.StartAt(startPos); + styler.StartSegment(startPos); + for (int i = startPos; i < lengthDoc; i++) { + chPrev = ch; + ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + + if (styler.IsLeadByte(ch)) { + chNext = styler.SafeGetCharAt(i + 2); + i++; + continue; + } + + isBOL = (chPrev == 0) || (chPrev == '\n') || (chPrev == '\r' && ch != '\n'); + isBOLWS = (isBOL) ? 1 : (isBOLWS && (chPrev == ' ' || chPrev == '\t')); + isEOL = (ch == '\n' || ch == '\r'); + isWS = (ch == ' ' || ch == '\t'); + + if ((ch == '\r' && chNext != '\n') || (ch == '\n')) { + // Remember the line state for future incremental lexing + curLine = styler.GetLine(i); + styler.SetLineState(curLine, (isCode ? 1 : 0)); + } + + switch(state) { + case SCE_INNO_DEFAULT: + if (!isCode && ch == ';' && isBOLWS) { + // Start of a comment + state = SCE_INNO_COMMENT; + } else if (ch == '[' && isBOLWS) { + // Start of a section name + bufferCount = 0; + state = SCE_INNO_SECTION; + } else if (ch == '#' && isBOLWS) { + // Start of a preprocessor directive + state = SCE_INNO_PREPROC; + } else if (!isCode && ch == '{' && chNext != '{' && chPrev != '{') { + // Start of an inline expansion + state = SCE_INNO_INLINE_EXPANSION; + } else if (isCode && (ch == '{' || (ch == '(' && chNext == '*'))) { + // Start of a Pascal comment + state = SCE_INNO_COMMENT_PASCAL; + isCStyleComment = false; + } else if (isCode && ch == '/' && chNext == '/') { + // Apparently, C-style comments are legal, too + state = SCE_INNO_COMMENT_PASCAL; + isCStyleComment = true; + } else if (ch == '"') { + // Start of a double-quote string + state = SCE_INNO_STRING_DOUBLE; + } else if (ch == '\'') { + // Start of a single-quote string + state = SCE_INNO_STRING_SINGLE; + } else if (IsASCII(ch) && (isalpha(ch) || (ch == '_'))) { + // Start of an identifier + bufferCount = 0; + buffer[bufferCount++] = static_cast(tolower(ch)); + state = SCE_INNO_IDENTIFIER; + } else { + // Style it the default style + styler.ColourTo(i,SCE_INNO_DEFAULT); + } + break; + + case SCE_INNO_COMMENT: + if (isEOL) { + state = SCE_INNO_DEFAULT; + styler.ColourTo(i,SCE_INNO_COMMENT); + } + break; + + case SCE_INNO_IDENTIFIER: + if (IsASCII(ch) && (isalnum(ch) || (ch == '_'))) { + buffer[bufferCount++] = static_cast(tolower(ch)); + } else { + state = SCE_INNO_DEFAULT; + buffer[bufferCount] = '\0'; + + // Check if the buffer contains a keyword + if (!isCode && standardKeywords.InList(buffer)) { + styler.ColourTo(i-1,SCE_INNO_KEYWORD); + } else if (!isCode && parameterKeywords.InList(buffer)) { + styler.ColourTo(i-1,SCE_INNO_PARAMETER); + } else if (isCode && pascalKeywords.InList(buffer)) { + styler.ColourTo(i-1,SCE_INNO_KEYWORD_PASCAL); + } else if (!isCode && userKeywords.InList(buffer)) { + styler.ColourTo(i-1,SCE_INNO_KEYWORD_USER); + } else { + styler.ColourTo(i-1,SCE_INNO_DEFAULT); + } + + // Push back the faulty character + chNext = styler[i--]; + ch = chPrev; + } + break; + + case SCE_INNO_SECTION: + if (ch == ']') { + state = SCE_INNO_DEFAULT; + buffer[bufferCount] = '\0'; + + // Check if the buffer contains a section name + if (sectionKeywords.InList(buffer)) { + styler.ColourTo(i,SCE_INNO_SECTION); + isCode = !CompareCaseInsensitive(buffer, "code"); + } else { + styler.ColourTo(i,SCE_INNO_DEFAULT); + } + } else if (IsASCII(ch) && (isalnum(ch) || (ch == '_'))) { + buffer[bufferCount++] = static_cast(tolower(ch)); + } else { + state = SCE_INNO_DEFAULT; + styler.ColourTo(i,SCE_INNO_DEFAULT); + } + break; + + case SCE_INNO_PREPROC: + if (isWS || isEOL) { + if (IsASCII(chPrev) && isalpha(chPrev)) { + state = SCE_INNO_DEFAULT; + buffer[bufferCount] = '\0'; + + // Check if the buffer contains a preprocessor directive + if (preprocessorKeywords.InList(buffer)) { + styler.ColourTo(i-1,SCE_INNO_PREPROC); + } else { + styler.ColourTo(i-1,SCE_INNO_DEFAULT); + } + + // Push back the faulty character + chNext = styler[i--]; + ch = chPrev; + } + } else if (IsASCII(ch) && isalpha(ch)) { + if (chPrev == '#' || chPrev == ' ' || chPrev == '\t') + bufferCount = 0; + buffer[bufferCount++] = static_cast(tolower(ch)); + } + break; + + case SCE_INNO_STRING_DOUBLE: + if (ch == '"' || isEOL) { + state = SCE_INNO_DEFAULT; + styler.ColourTo(i,SCE_INNO_STRING_DOUBLE); + } + break; + + case SCE_INNO_STRING_SINGLE: + if (ch == '\'' || isEOL) { + state = SCE_INNO_DEFAULT; + styler.ColourTo(i,SCE_INNO_STRING_SINGLE); + } + break; + + case SCE_INNO_INLINE_EXPANSION: + if (ch == '}') { + state = SCE_INNO_DEFAULT; + styler.ColourTo(i,SCE_INNO_INLINE_EXPANSION); + } else if (isEOL) { + state = SCE_INNO_DEFAULT; + styler.ColourTo(i,SCE_INNO_DEFAULT); + } + break; + + case SCE_INNO_COMMENT_PASCAL: + if (isCStyleComment) { + if (isEOL) { + state = SCE_INNO_DEFAULT; + styler.ColourTo(i,SCE_INNO_COMMENT_PASCAL); + } + } else { + if (ch == '}' || (ch == ')' && chPrev == '*')) { + state = SCE_INNO_DEFAULT; + styler.ColourTo(i,SCE_INNO_COMMENT_PASCAL); + } else if (isEOL) { + state = SCE_INNO_DEFAULT; + styler.ColourTo(i,SCE_INNO_DEFAULT); + } + } + break; + + } + } + delete []buffer; +} + +static const char * const innoWordListDesc[] = { + "Sections", + "Keywords", + "Parameters", + "Preprocessor directives", + "Pascal keywords", + "User defined keywords", + 0 +}; + +static void FoldInnoDoc(unsigned int startPos, int length, int, WordList *[], Accessor &styler) { + unsigned int endPos = startPos + length; + char chNext = styler[startPos]; + + int lineCurrent = styler.GetLine(startPos); + + bool sectionFlag = false; + int levelPrev = lineCurrent > 0 ? styler.LevelAt(lineCurrent - 1) : SC_FOLDLEVELBASE; + int level; + + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler[i+1]; + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + int style = styler.StyleAt(i); + + if (style == SCE_INNO_SECTION) + sectionFlag = true; + + if (atEOL || i == endPos - 1) { + if (sectionFlag) { + level = SC_FOLDLEVELBASE | SC_FOLDLEVELHEADERFLAG; + if (level == levelPrev) + styler.SetLevel(lineCurrent - 1, levelPrev & ~SC_FOLDLEVELHEADERFLAG); + } else { + level = levelPrev & SC_FOLDLEVELNUMBERMASK; + if (levelPrev & SC_FOLDLEVELHEADERFLAG) + level++; + } + + styler.SetLevel(lineCurrent, level); + + levelPrev = level; + lineCurrent++; + sectionFlag = false; + } + } +} + +LexerModule lmInno(SCLEX_INNOSETUP, ColouriseInnoDoc, "inno", FoldInnoDoc, innoWordListDesc); diff --git a/lexers/LexKVIrc.cpp b/lexers/LexKVIrc.cpp new file mode 100644 index 0000000..958a2cf --- /dev/null +++ b/lexers/LexKVIrc.cpp @@ -0,0 +1,473 @@ +// Scintilla source code edit control +/** @file LexKVIrc.cxx + ** Lexer for KVIrc script. + **/ +// Copyright 2013 by OmegaPhil , based in +// part from LexPython Copyright 1998-2002 by Neil Hodgson +// and LexCmake Copyright 2007 by Cristian Adam + +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + + +/* KVIrc Script syntactic rules: http://www.kvirc.net/doc/doc_syntactic_rules.html */ + +/* Utility functions */ +static inline bool IsAWordChar(int ch) { + + /* Keyword list includes modules, i.e. words including '.', and + * alias namespaces include ':' */ + return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '.' + || ch == ':'); +} +static inline bool IsAWordStart(int ch) { + + /* Functions (start with '$') are treated separately to keywords */ + return (ch < 0x80) && (isalnum(ch) || ch == '_' ); +} + +/* Interface function called by Scintilla to request some text to be + syntax highlighted */ +static void ColouriseKVIrcDoc(unsigned int startPos, int length, + int initStyle, WordList *keywordlists[], + Accessor &styler) +{ + /* Fetching style context */ + StyleContext sc(startPos, length, initStyle, styler); + + /* Accessing keywords and function-marking keywords */ + WordList &keywords = *keywordlists[0]; + WordList &functionKeywords = *keywordlists[1]; + + /* Looping for all characters - only automatically moving forward + * when asked for (transitions leaving strings and keywords do this + * already) */ + bool next = true; + for( ; sc.More(); next ? sc.Forward() : (void)0 ) + { + /* Resetting next */ + next = true; + + /* Dealing with different states */ + switch (sc.state) + { + case SCE_KVIRC_DEFAULT: + + /* Detecting single-line comments + * Unfortunately KVIrc script allows raw '#' to be used, and appending # to an array returns + * its length... + * Going for a compromise where single line comments not + * starting on a newline are allowed in all cases except + * when they are preceeded with an opening bracket or comma + * (this will probably be the most common style a valid + * string-less channel name will be used with), with the + * array length case included + */ + if ( + (sc.ch == '#' && sc.atLineStart) || + (sc.ch == '#' && ( + sc.chPrev != '(' && sc.chPrev != ',' && + sc.chPrev != ']') + ) + ) + { + sc.SetState(SCE_KVIRC_COMMENT); + break; + } + + /* Detecting multi-line comments */ + if (sc.Match('/', '*')) + { + sc.SetState(SCE_KVIRC_COMMENTBLOCK); + break; + } + + /* Detecting strings */ + if (sc.ch == '"') + { + sc.SetState(SCE_KVIRC_STRING); + break; + } + + /* Detecting functions */ + if (sc.ch == '$') + { + sc.SetState(SCE_KVIRC_FUNCTION); + break; + } + + /* Detecting variables */ + if (sc.ch == '%') + { + sc.SetState(SCE_KVIRC_VARIABLE); + break; + } + + /* Detecting numbers - isdigit is unsafe as it does not + * validate, use CharacterSet.h functions */ + if (IsADigit(sc.ch)) + { + sc.SetState(SCE_KVIRC_NUMBER); + break; + } + + /* Detecting words */ + if (IsAWordStart(sc.ch) && IsAWordChar(sc.chNext)) + { + sc.SetState(SCE_KVIRC_WORD); + sc.Forward(); + break; + } + + /* Detecting operators */ + if (isoperator(sc.ch)) + { + sc.SetState(SCE_KVIRC_OPERATOR); + break; + } + + break; + + case SCE_KVIRC_COMMENT: + + /* Breaking out of single line comment when a newline + * is introduced */ + if (sc.ch == '\r' || sc.ch == '\n') + { + sc.SetState(SCE_KVIRC_DEFAULT); + break; + } + + break; + + case SCE_KVIRC_COMMENTBLOCK: + + /* Detecting end of multi-line comment */ + if (sc.Match('*', '/')) + { + // Moving the current position forward two characters + // so that '*/' is included in the comment + sc.Forward(2); + sc.SetState(SCE_KVIRC_DEFAULT); + + /* Comment has been exited and the current position + * moved forward, yet the new current character + * has yet to be defined - loop without moving + * forward again */ + next = false; + break; + } + + break; + + case SCE_KVIRC_STRING: + + /* Detecting end of string - closing speechmarks */ + if (sc.ch == '"') + { + /* Allowing escaped speechmarks to pass */ + if (sc.chPrev == '\\') + break; + + /* Moving the current position forward to capture the + * terminating speechmarks, and ending string */ + sc.ForwardSetState(SCE_KVIRC_DEFAULT); + + /* String has been exited and the current position + * moved forward, yet the new current character + * has yet to be defined - loop without moving + * forward again */ + next = false; + break; + } + + /* Functions and variables are now highlighted in strings + * Detecting functions */ + if (sc.ch == '$') + { + /* Allowing escaped functions to pass */ + if (sc.chPrev == '\\') + break; + + sc.SetState(SCE_KVIRC_STRING_FUNCTION); + break; + } + + /* Detecting variables */ + if (sc.ch == '%') + { + /* Allowing escaped variables to pass */ + if (sc.chPrev == '\\') + break; + + sc.SetState(SCE_KVIRC_STRING_VARIABLE); + break; + } + + /* Breaking out of a string when a newline is introduced */ + if (sc.ch == '\r' || sc.ch == '\n') + { + /* Allowing escaped newlines */ + if (sc.chPrev == '\\') + break; + + sc.SetState(SCE_KVIRC_DEFAULT); + break; + } + + break; + + case SCE_KVIRC_FUNCTION: + case SCE_KVIRC_VARIABLE: + + /* Detecting the end of a function/variable (word) */ + if (!IsAWordChar(sc.ch)) + { + sc.SetState(SCE_KVIRC_DEFAULT); + + /* Word has been exited yet the current character + * has yet to be defined - loop without moving + * forward again */ + next = false; + break; + } + + break; + + case SCE_KVIRC_STRING_FUNCTION: + case SCE_KVIRC_STRING_VARIABLE: + + /* A function or variable in a string + * Detecting the end of a function/variable (word) */ + if (!IsAWordChar(sc.ch)) + { + sc.SetState(SCE_KVIRC_STRING); + + /* Word has been exited yet the current character + * has yet to be defined - loop without moving + * forward again */ + next = false; + break; + } + + break; + + case SCE_KVIRC_NUMBER: + + /* Detecting the end of a number */ + if (!IsADigit(sc.ch)) + { + sc.SetState(SCE_KVIRC_DEFAULT); + + /* Number has been exited yet the current character + * has yet to be defined - loop without moving + * forward */ + next = false; + break; + } + + break; + + case SCE_KVIRC_OPERATOR: + + /* Because '%' is an operator but is also the marker for + * a variable, I need to always treat operators as single + * character strings and therefore redo their detection + * after every character */ + sc.SetState(SCE_KVIRC_DEFAULT); + + /* Operator has been exited yet the current character + * has yet to be defined - loop without moving + * forward */ + next = false; + break; + + case SCE_KVIRC_WORD: + + /* Detecting the end of a word */ + if (!IsAWordChar(sc.ch)) + { + /* Checking if the word was actually a keyword - + * fetching the current word, NULL-terminated like + * the keyword list */ + char s[100]; + int wordLen = sc.currentPos - styler.GetStartSegment(); + if (wordLen > 99) + wordLen = 99; /* Include '\0' in buffer */ + int i; + for( i = 0; i < wordLen; ++i ) + { + s[i] = styler.SafeGetCharAt( styler.GetStartSegment() + i ); + } + s[wordLen] = '\0'; + + /* Actually detecting keywords and fixing the state */ + if (keywords.InList(s)) + { + /* The SetState call actually commits the + * previous keyword state */ + sc.ChangeState(SCE_KVIRC_KEYWORD); + } + else if (functionKeywords.InList(s)) + { + // Detecting function keywords and fixing the state + sc.ChangeState(SCE_KVIRC_FUNCTION_KEYWORD); + } + + /* Transitioning to default and committing the previous + * word state */ + sc.SetState(SCE_KVIRC_DEFAULT); + + /* Word has been exited yet the current character + * has yet to be defined - loop without moving + * forward again */ + next = false; + break; + } + + break; + } + } + + /* Indicating processing is complete */ + sc.Complete(); +} + +static void FoldKVIrcDoc(unsigned int startPos, int length, int /*initStyle - unused*/, + WordList *[], Accessor &styler) +{ + /* Based on CMake's folder */ + + /* Exiting if folding isnt enabled */ + if ( styler.GetPropertyInt("fold") == 0 ) + return; + + /* Obtaining current line number*/ + int currentLine = styler.GetLine(startPos); + + /* Obtaining starting character - indentation is done on a line basis, + * not character */ + unsigned int safeStartPos = styler.LineStart( currentLine ); + + /* Initialising current level - this is defined as indentation level + * in the low 12 bits, with flag bits in the upper four bits. + * It looks like two indentation states are maintained in the returned + * 32bit value - 'nextLevel' in the most-significant bits, 'currentLevel' + * in the least-significant bits. Since the next level is the most + * up to date, this must refer to the current state of indentation. + * So the code bitshifts the old current level out of existence to + * get at the actual current state of indentation + * Based on the LexerCPP.cxx line 958 comment */ + int currentLevel = SC_FOLDLEVELBASE; + if (currentLine > 0) + currentLevel = styler.LevelAt(currentLine - 1) >> 16; + int nextLevel = currentLevel; + + // Looping for characters in range + for (unsigned int i = safeStartPos; i < startPos + length; ++i) + { + /* Folding occurs after syntax highlighting, meaning Scintilla + * already knows where the comments are + * Fetching the current state */ + int state = styler.StyleAt(i) & 31; + + switch( styler.SafeGetCharAt(i) ) + { + case '{': + + /* Indenting only when the braces are not contained in + * a comment */ + if (state != SCE_KVIRC_COMMENT && + state != SCE_KVIRC_COMMENTBLOCK) + ++nextLevel; + break; + + case '}': + + /* Outdenting only when the braces are not contained in + * a comment */ + if (state != SCE_KVIRC_COMMENT && + state != SCE_KVIRC_COMMENTBLOCK) + --nextLevel; + break; + + case '\n': + case '\r': + + /* Preparing indentation information to return - combining + * current and next level data */ + int lev = currentLevel | nextLevel << 16; + + /* If the next level increases the indent level, mark the + * current line as a fold point - current level data is + * in the least significant bits */ + if (nextLevel > currentLevel ) + lev |= SC_FOLDLEVELHEADERFLAG; + + /* Updating indentation level if needed */ + if (lev != styler.LevelAt(currentLine)) + styler.SetLevel(currentLine, lev); + + /* Updating variables */ + ++currentLine; + currentLevel = nextLevel; + + /* Dealing with problematic Windows newlines - + * incrementing to avoid the extra newline breaking the + * fold point */ + if (styler.SafeGetCharAt(i) == '\r' && + styler.SafeGetCharAt(i + 1) == '\n') + ++i; + break; + } + } + + /* At this point the data has ended, so presumably the end of the line? + * Preparing indentation information to return - combining current + * and next level data */ + int lev = currentLevel | nextLevel << 16; + + /* If the next level increases the indent level, mark the current + * line as a fold point - current level data is in the least + * significant bits */ + if (nextLevel > currentLevel ) + lev |= SC_FOLDLEVELHEADERFLAG; + + /* Updating indentation level if needed */ + if (lev != styler.LevelAt(currentLine)) + styler.SetLevel(currentLine, lev); +} + +/* Registering wordlists */ +static const char *const kvircWordListDesc[] = { + "primary", + "function_keywords", + 0 +}; + + +/* Registering functions and wordlists */ +LexerModule lmKVIrc(SCLEX_KVIRC, ColouriseKVIrcDoc, "kvirc", FoldKVIrcDoc, + kvircWordListDesc); diff --git a/lexers/LexKix.cpp b/lexers/LexKix.cpp new file mode 100644 index 0000000..32af263 --- /dev/null +++ b/lexers/LexKix.cpp @@ -0,0 +1,129 @@ +// Scintilla source code edit control +/** @file LexKix.cxx + ** Lexer for KIX-Scripts. + **/ +// Copyright 2004 by Manfred Becker +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +// Extended to accept accented characters +static inline bool IsAWordChar(int ch) { + return ch >= 0x80 || isalnum(ch) || ch == '_'; +} + +static inline bool IsOperator(const int ch) { + return (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '&' || ch == '|' || ch == '<' || ch == '>' || ch == '='); +} + +static void ColouriseKixDoc(unsigned int startPos, int length, int initStyle, + WordList *keywordlists[], Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + WordList &keywords3 = *keywordlists[2]; +// WordList &keywords4 = *keywordlists[3]; + + styler.StartAt(startPos); + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + + if (sc.state == SCE_KIX_COMMENT) { + if (sc.atLineEnd) { + sc.SetState(SCE_KIX_DEFAULT); + } + } else if (sc.state == SCE_KIX_STRING1) { + // This is a doubles quotes string + if (sc.ch == '\"') { + sc.ForwardSetState(SCE_KIX_DEFAULT); + } + } else if (sc.state == SCE_KIX_STRING2) { + // This is a single quote string + if (sc.ch == '\'') { + sc.ForwardSetState(SCE_KIX_DEFAULT); + } + } else if (sc.state == SCE_KIX_NUMBER) { + if (!IsADigit(sc.ch)) { + sc.SetState(SCE_KIX_DEFAULT); + } + } else if (sc.state == SCE_KIX_VAR) { + if (!IsAWordChar(sc.ch)) { + sc.SetState(SCE_KIX_DEFAULT); + } + } else if (sc.state == SCE_KIX_MACRO) { + if (!IsAWordChar(sc.ch) && !IsADigit(sc.ch)) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + + if (!keywords3.InList(&s[1])) { + sc.ChangeState(SCE_KIX_DEFAULT); + } + sc.SetState(SCE_KIX_DEFAULT); + } + } else if (sc.state == SCE_KIX_OPERATOR) { + if (!IsOperator(sc.ch)) { + sc.SetState(SCE_KIX_DEFAULT); + } + } else if (sc.state == SCE_KIX_IDENTIFIER) { + if (!IsAWordChar(sc.ch)) { + char s[100]; + sc.GetCurrentLowered(s, sizeof(s)); + + if (keywords.InList(s)) { + sc.ChangeState(SCE_KIX_KEYWORD); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_KIX_FUNCTIONS); + } + sc.SetState(SCE_KIX_DEFAULT); + } + } + + // Determine if a new state should be entered. + if (sc.state == SCE_KIX_DEFAULT) { + if (sc.ch == ';') { + sc.SetState(SCE_KIX_COMMENT); + } else if (sc.ch == '\"') { + sc.SetState(SCE_KIX_STRING1); + } else if (sc.ch == '\'') { + sc.SetState(SCE_KIX_STRING2); + } else if (sc.ch == '$') { + sc.SetState(SCE_KIX_VAR); + } else if (sc.ch == '@') { + sc.SetState(SCE_KIX_MACRO); + } else if (IsADigit(sc.ch) || ((sc.ch == '.' || sc.ch == '&') && IsADigit(sc.chNext))) { + sc.SetState(SCE_KIX_NUMBER); + } else if (IsOperator(sc.ch)) { + sc.SetState(SCE_KIX_OPERATOR); + } else if (IsAWordChar(sc.ch)) { + sc.SetState(SCE_KIX_IDENTIFIER); + } + } + } + sc.Complete(); +} + + +LexerModule lmKix(SCLEX_KIX, ColouriseKixDoc, "kix"); + diff --git a/lexers/LexLaTeX.cpp b/lexers/LexLaTeX.cpp new file mode 100644 index 0000000..f8af1e7 --- /dev/null +++ b/lexers/LexLaTeX.cpp @@ -0,0 +1,539 @@ +// Scintilla source code edit control +/** @file LexLaTeX.cxx + ** Lexer for LaTeX2e. + **/ +// Copyright 1998-2001 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +// Modified by G. HU in 2013. Added folding, syntax highting inside math environments, and changed some minor behaviors. + +#include +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "PropSetSimple.h" +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" +#include "LexerBase.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +using namespace std; + +struct latexFoldSave { + latexFoldSave() : structLev(0) { + for (int i = 0; i < 8; ++i) openBegins[i] = 0; + } + latexFoldSave(const latexFoldSave &save) : structLev(save.structLev) { + for (int i = 0; i < 8; ++i) openBegins[i] = save.openBegins[i]; + } + int openBegins[8]; + int structLev; +}; + +class LexerLaTeX : public LexerBase { +private: + vector modes; + void setMode(int line, int mode) { + if (line >= static_cast(modes.size())) modes.resize(line + 1, 0); + modes[line] = mode; + } + int getMode(int line) { + if (line >= 0 && line < static_cast(modes.size())) return modes[line]; + return 0; + } + void truncModes(int numLines) { + if (static_cast(modes.size()) > numLines * 2 + 256) + modes.resize(numLines + 128); + } + + vector saves; + void setSave(int line, const latexFoldSave &save) { + if (line >= static_cast(saves.size())) saves.resize(line + 1); + saves[line] = save; + } + void getSave(int line, latexFoldSave &save) { + if (line >= 0 && line < static_cast(saves.size())) save = saves[line]; + else { + save.structLev = 0; + for (int i = 0; i < 8; ++i) save.openBegins[i] = 0; + } + } + void truncSaves(int numLines) { + if (static_cast(saves.size()) > numLines * 2 + 256) + saves.resize(numLines + 128); + } +public: + static ILexer *LexerFactoryLaTeX() { + return new LexerLaTeX(); + } + void SCI_METHOD Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + void SCI_METHOD Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess); +}; + +static bool latexIsSpecial(int ch) { + return (ch == '#') || (ch == '$') || (ch == '%') || (ch == '&') || (ch == '_') || + (ch == '{') || (ch == '}') || (ch == ' '); +} + +static bool latexIsBlank(int ch) { + return (ch == ' ') || (ch == '\t'); +} + +static bool latexIsBlankAndNL(int ch) { + return (ch == ' ') || (ch == '\t') || (ch == '\r') || (ch == '\n'); +} + +static bool latexIsLetter(int ch) { + return IsASCII(ch) && isalpha(ch); +} + +static bool latexIsTagValid(int &i, int l, Accessor &styler) { + while (i < l) { + if (styler.SafeGetCharAt(i) == '{') { + while (i < l) { + i++; + if (styler.SafeGetCharAt(i) == '}') { + return true; + } else if (!latexIsLetter(styler.SafeGetCharAt(i)) && + styler.SafeGetCharAt(i)!='*') { + return false; + } + } + } else if (!latexIsBlank(styler.SafeGetCharAt(i))) { + return false; + } + i++; + } + return false; +} + +static bool latexNextNotBlankIs(int i, Accessor &styler, char needle) { + char ch; + while (i < styler.Length()) { + ch = styler.SafeGetCharAt(i); + if (!latexIsBlankAndNL(ch) && ch != '*') { + if (ch == needle) + return true; + else + return false; + } + i++; + } + return false; +} + +static bool latexLastWordIs(int start, Accessor &styler, const char *needle) { + unsigned int i = 0; + unsigned int l = static_cast(strlen(needle)); + int ini = start-l+1; + char s[32]; + + while (i < l && i < 31) { + s[i] = styler.SafeGetCharAt(ini + i); + i++; + } + s[i] = '\0'; + + return (strcmp(s, needle) == 0); +} + +static bool latexLastWordIsMathEnv(int pos, Accessor &styler) { + int i, j; + char s[32]; + const char *mathEnvs[] = { "align", "alignat", "flalign", "gather", + "multiline", "displaymath", "eqnarray", "equation" }; + if (styler.SafeGetCharAt(pos) != '}') return false; + for (i = pos - 1; i >= 0; --i) { + if (styler.SafeGetCharAt(i) == '{') break; + if (pos - i >= 20) return false; + } + if (i < 0 || i == pos - 1) return false; + ++i; + for (j = 0; i + j < pos; ++j) + s[j] = styler.SafeGetCharAt(i + j); + s[j] = '\0'; + if (j == 0) return false; + if (s[j - 1] == '*') s[--j] = '\0'; + for (i = 0; i < static_cast(sizeof(mathEnvs) / sizeof(const char *)); ++i) + if (strcmp(s, mathEnvs[i]) == 0) return true; + return false; +} + +static inline void latexStateReset(int &mode, int &state) { + switch (mode) { + case 1: state = SCE_L_MATH; break; + case 2: state = SCE_L_MATH2; break; + default: state = SCE_L_DEFAULT; break; + } +} + +// There are cases not handled correctly, like $abcd\textrm{what is $x+y$}z+w$. +// But I think it's already good enough. +void SCI_METHOD LexerLaTeX::Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { + // startPos is assumed to be the first character of a line + Accessor styler(pAccess, &props); + styler.StartAt(startPos); + int mode = getMode(styler.GetLine(startPos) - 1); + int state = initStyle; + if (state == SCE_L_ERROR || state == SCE_L_SHORTCMD || state == SCE_L_SPECIAL) // should not happen + latexStateReset(mode, state); + + char chNext = styler.SafeGetCharAt(startPos); + char chVerbatimDelim = '\0'; + styler.StartSegment(startPos); + int lengthDoc = startPos + length; + + for (int i = startPos; i < lengthDoc; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + + if (styler.IsLeadByte(ch)) { + i++; + chNext = styler.SafeGetCharAt(i + 1); + continue; + } + + if (ch == '\r' || ch == '\n') + setMode(styler.GetLine(i), mode); + + switch (state) { + case SCE_L_DEFAULT : + switch (ch) { + case '\\' : + styler.ColourTo(i - 1, state); + if (latexIsLetter(chNext)) { + state = SCE_L_COMMAND; + } else if (latexIsSpecial(chNext)) { + styler.ColourTo(i + 1, SCE_L_SPECIAL); + i++; + chNext = styler.SafeGetCharAt(i + 1); + } else if (chNext == '\r' || chNext == '\n') { + styler.ColourTo(i, SCE_L_ERROR); + } else if (IsASCII(chNext)) { + styler.ColourTo(i + 1, SCE_L_SHORTCMD); + if (chNext == '(') { + mode = 1; + state = SCE_L_MATH; + } else if (chNext == '[') { + mode = 2; + state = SCE_L_MATH2; + } + i++; + chNext = styler.SafeGetCharAt(i + 1); + } + break; + case '$' : + styler.ColourTo(i - 1, state); + if (chNext == '$') { + styler.ColourTo(i + 1, SCE_L_SHORTCMD); + mode = 2; + state = SCE_L_MATH2; + i++; + chNext = styler.SafeGetCharAt(i + 1); + } else { + styler.ColourTo(i, SCE_L_SHORTCMD); + mode = 1; + state = SCE_L_MATH; + } + break; + case '%' : + styler.ColourTo(i - 1, state); + state = SCE_L_COMMENT; + break; + } + break; + // These 3 will never be reached. + case SCE_L_ERROR: + case SCE_L_SPECIAL: + case SCE_L_SHORTCMD: + break; + case SCE_L_COMMAND : + if (!latexIsLetter(chNext)) { + styler.ColourTo(i, state); + if (latexNextNotBlankIs(i + 1, styler, '[' )) { + state = SCE_L_CMDOPT; + } else if (latexLastWordIs(i, styler, "\\begin")) { + state = SCE_L_TAG; + } else if (latexLastWordIs(i, styler, "\\end")) { + state = SCE_L_TAG2; + } else if (latexLastWordIs(i, styler, "\\verb") && chNext != '*' && chNext != ' ') { + chVerbatimDelim = chNext; + state = SCE_L_VERBATIM; + } else { + latexStateReset(mode, state); + } + } + break; + case SCE_L_CMDOPT : + if (ch == ']') { + styler.ColourTo(i, state); + latexStateReset(mode, state); + } + break; + case SCE_L_TAG : + if (latexIsTagValid(i, lengthDoc, styler)) { + styler.ColourTo(i, state); + latexStateReset(mode, state); + if (latexLastWordIs(i, styler, "{verbatim}")) { + state = SCE_L_VERBATIM; + } else if (latexLastWordIs(i, styler, "{comment}")) { + state = SCE_L_COMMENT2; + } else if (latexLastWordIs(i, styler, "{math}") && mode == 0) { + mode = 1; + state = SCE_L_MATH; + } else if (latexLastWordIsMathEnv(i, styler) && mode == 0) { + mode = 2; + state = SCE_L_MATH2; + } + } else { + styler.ColourTo(i, SCE_L_ERROR); + latexStateReset(mode, state); + ch = styler.SafeGetCharAt(i); + if (ch == '\r' || ch == '\n') setMode(styler.GetLine(i), mode); + } + chNext = styler.SafeGetCharAt(i+1); + break; + case SCE_L_TAG2 : + if (latexIsTagValid(i, lengthDoc, styler)) { + styler.ColourTo(i, state); + latexStateReset(mode, state); + } else { + styler.ColourTo(i, SCE_L_ERROR); + latexStateReset(mode, state); + ch = styler.SafeGetCharAt(i); + if (ch == '\r' || ch == '\n') setMode(styler.GetLine(i), mode); + } + chNext = styler.SafeGetCharAt(i+1); + break; + case SCE_L_MATH : + switch (ch) { + case '\\' : + styler.ColourTo(i - 1, state); + if (latexIsLetter(chNext)) { + int match = i + 3; + if (latexLastWordIs(match, styler, "\\end")) { + match++; + if (latexIsTagValid(match, lengthDoc, styler)) { + if (latexLastWordIs(match, styler, "{math}")) + mode = 0; + } + } + state = SCE_L_COMMAND; + } else if (latexIsSpecial(chNext)) { + styler.ColourTo(i + 1, SCE_L_SPECIAL); + i++; + chNext = styler.SafeGetCharAt(i + 1); + } else if (chNext == '\r' || chNext == '\n') { + styler.ColourTo(i, SCE_L_ERROR); + } else if (IsASCII(chNext)) { + if (chNext == ')') { + mode = 0; + state = SCE_L_DEFAULT; + } + styler.ColourTo(i + 1, SCE_L_SHORTCMD); + i++; + chNext = styler.SafeGetCharAt(i + 1); + } + break; + case '$' : + styler.ColourTo(i - 1, state); + styler.ColourTo(i, SCE_L_SHORTCMD); + mode = 0; + state = SCE_L_DEFAULT; + break; + case '%' : + styler.ColourTo(i - 1, state); + state = SCE_L_COMMENT; + break; + } + break; + case SCE_L_MATH2 : + switch (ch) { + case '\\' : + styler.ColourTo(i - 1, state); + if (latexIsLetter(chNext)) { + int match = i + 3; + if (latexLastWordIs(match, styler, "\\end")) { + match++; + if (latexIsTagValid(match, lengthDoc, styler)) { + if (latexLastWordIsMathEnv(match, styler)) + mode = 0; + } + } + state = SCE_L_COMMAND; + } else if (latexIsSpecial(chNext)) { + styler.ColourTo(i + 1, SCE_L_SPECIAL); + i++; + chNext = styler.SafeGetCharAt(i + 1); + } else if (chNext == '\r' || chNext == '\n') { + styler.ColourTo(i, SCE_L_ERROR); + } else if (IsASCII(chNext)) { + if (chNext == ']') { + mode = 0; + state = SCE_L_DEFAULT; + } + styler.ColourTo(i + 1, SCE_L_SHORTCMD); + i++; + chNext = styler.SafeGetCharAt(i + 1); + } + break; + case '$' : + styler.ColourTo(i - 1, state); + if (chNext == '$') { + styler.ColourTo(i + 1, SCE_L_SHORTCMD); + i++; + chNext = styler.SafeGetCharAt(i + 1); + mode = 0; + state = SCE_L_DEFAULT; + } else { // This may not be an error, e.g. \begin{equation}\text{$a$}\end{equation} + styler.ColourTo(i, SCE_L_SHORTCMD); + } + break; + case '%' : + styler.ColourTo(i - 1, state); + state = SCE_L_COMMENT; + break; + } + break; + case SCE_L_COMMENT : + if (ch == '\r' || ch == '\n') { + styler.ColourTo(i - 1, state); + latexStateReset(mode, state); + } + break; + case SCE_L_COMMENT2 : + if (ch == '\\') { + int match = i + 3; + if (latexLastWordIs(match, styler, "\\end")) { + match++; + if (latexIsTagValid(match, lengthDoc, styler)) { + if (latexLastWordIs(match, styler, "{comment}")) { + styler.ColourTo(i - 1, state); + state = SCE_L_COMMAND; + } + } + } + } + break; + case SCE_L_VERBATIM : + if (ch == '\\') { + int match = i + 3; + if (latexLastWordIs(match, styler, "\\end")) { + match++; + if (latexIsTagValid(match, lengthDoc, styler)) { + if (latexLastWordIs(match, styler, "{verbatim}")) { + styler.ColourTo(i - 1, state); + state = SCE_L_COMMAND; + } + } + } + } else if (chNext == chVerbatimDelim) { + styler.ColourTo(i + 1, state); + latexStateReset(mode, state); + chVerbatimDelim = '\0'; + i++; + chNext = styler.SafeGetCharAt(i + 1); + } else if (chVerbatimDelim != '\0' && (ch == '\n' || ch == '\r')) { + styler.ColourTo(i, SCE_L_ERROR); + latexStateReset(mode, state); + chVerbatimDelim = '\0'; + } + break; + } + } + if (lengthDoc == styler.Length()) truncModes(styler.GetLine(lengthDoc - 1)); + styler.ColourTo(lengthDoc - 1, state); + styler.Flush(); +} + +static int latexFoldSaveToInt(const latexFoldSave &save) { + int sum = 0; + for (int i = 0; i <= save.structLev; ++i) + sum += save.openBegins[i]; + return ((sum + save.structLev + SC_FOLDLEVELBASE) & SC_FOLDLEVELNUMBERMASK); +} + +// Change folding state while processing a line +// Return the level before the first relevant command +void SCI_METHOD LexerLaTeX::Fold(unsigned int startPos, int length, int, IDocument *pAccess) { + const char *structWords[7] = {"part", "chapter", "section", "subsection", + "subsubsection", "paragraph", "subparagraph"}; + Accessor styler(pAccess, &props); + unsigned int endPos = startPos + length; + int curLine = styler.GetLine(startPos); + latexFoldSave save; + getSave(curLine - 1, save); + do { + char ch, buf[16]; + int i, j, lev = -1; + bool needFold = false; + for (i = static_cast(startPos); i < static_cast(endPos); ++i) { + ch = styler.SafeGetCharAt(i); + if (ch == '\r' || ch == '\n') break; + if (ch != '\\' || styler.StyleAt(i) != SCE_L_COMMAND) continue; + for (j = 0; j < 15 && i + 1 < static_cast(endPos); ++j, ++i) { + buf[j] = styler.SafeGetCharAt(i + 1); + if (!latexIsLetter(buf[j])) break; + } + buf[j] = '\0'; + if (strcmp(buf, "begin") == 0) { + if (lev < 0) lev = latexFoldSaveToInt(save); + ++save.openBegins[save.structLev]; + needFold = true; + } + else if (strcmp(buf, "end") == 0) { + while (save.structLev > 0 && save.openBegins[save.structLev] == 0) + --save.structLev; + if (lev < 0) lev = latexFoldSaveToInt(save); + if (save.openBegins[save.structLev] > 0) --save.openBegins[save.structLev]; + } + else { + for (j = 0; j < 7; ++j) + if (strcmp(buf, structWords[j]) == 0) break; + if (j >= 7) continue; + save.structLev = j; // level before the command + for (j = save.structLev + 1; j < 8; ++j) { + save.openBegins[save.structLev] += save.openBegins[j]; + save.openBegins[j] = 0; + } + if (lev < 0) lev = latexFoldSaveToInt(save); + ++save.structLev; // level after the command + needFold = true; + } + } + if (lev < 0) lev = latexFoldSaveToInt(save); + if (needFold) lev |= SC_FOLDLEVELHEADERFLAG; + styler.SetLevel(curLine, lev); + setSave(curLine, save); + ++curLine; + startPos = styler.LineStart(curLine); + if (static_cast(startPos) == styler.Length()) { + lev = latexFoldSaveToInt(save); + styler.SetLevel(curLine, lev); + setSave(curLine, save); + truncSaves(curLine); + } + } while (startPos < endPos); + styler.Flush(); +} + +static const char *const emptyWordListDesc[] = { + 0 +}; + +LexerModule lmLatex(SCLEX_LATEX, LexerLaTeX::LexerFactoryLaTeX, "latex", emptyWordListDesc); diff --git a/lexers/LexLisp.cpp b/lexers/LexLisp.cpp new file mode 100644 index 0000000..8dd6bd9 --- /dev/null +++ b/lexers/LexLisp.cpp @@ -0,0 +1,285 @@ +// Scintilla source code edit control +/** @file LexLisp.cxx + ** Lexer for Lisp. + ** Written by Alexey Yutkin. + **/ +// Copyright 1998-2001 by Neil Hodgson +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +#define SCE_LISP_CHARACTER 29 +#define SCE_LISP_MACRO 30 +#define SCE_LISP_MACRO_DISPATCH 31 + +static inline bool isLispoperator(char ch) { + if (IsASCII(ch) && isalnum(ch)) + return false; + if (ch == '\'' || ch == '`' || ch == '(' || ch == ')' || ch == '[' || ch == ']' || ch == '{' || ch == '}') + return true; + return false; +} + +static inline bool isLispwordstart(char ch) { + return IsASCII(ch) && ch != ';' && !isspacechar(ch) && !isLispoperator(ch) && + ch != '\n' && ch != '\r' && ch != '\"'; +} + + +static void classifyWordLisp(unsigned int start, unsigned int end, WordList &keywords, WordList &keywords_kw, Accessor &styler) { + assert(end >= start); + char s[100]; + unsigned int i; + bool digit_flag = true; + for (i = 0; (i < end - start + 1) && (i < 99); i++) { + s[i] = styler[start + i]; + s[i + 1] = '\0'; + if (!isdigit(s[i]) && (s[i] != '.')) digit_flag = false; + } + char chAttr = SCE_LISP_IDENTIFIER; + + if(digit_flag) chAttr = SCE_LISP_NUMBER; + else { + if (keywords.InList(s)) { + chAttr = SCE_LISP_KEYWORD; + } else if (keywords_kw.InList(s)) { + chAttr = SCE_LISP_KEYWORD_KW; + } else if ((s[0] == '*' && s[i-1] == '*') || + (s[0] == '+' && s[i-1] == '+')) { + chAttr = SCE_LISP_SPECIAL; + } + } + styler.ColourTo(end, chAttr); + return; +} + + +static void ColouriseLispDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], + Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList &keywords_kw = *keywordlists[1]; + + styler.StartAt(startPos); + + int state = initStyle, radix = -1; + char chNext = styler[startPos]; + unsigned int lengthDoc = startPos + length; + styler.StartSegment(startPos); + for (unsigned int i = startPos; i < lengthDoc; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + + if (styler.IsLeadByte(ch)) { + chNext = styler.SafeGetCharAt(i + 2); + i += 1; + continue; + } + + if (state == SCE_LISP_DEFAULT) { + if (ch == '#') { + styler.ColourTo(i - 1, state); + radix = -1; + state = SCE_LISP_MACRO_DISPATCH; + } else if (ch == ':' && isLispwordstart(chNext)) { + styler.ColourTo(i - 1, state); + state = SCE_LISP_SYMBOL; + } else if (isLispwordstart(ch)) { + styler.ColourTo(i - 1, state); + state = SCE_LISP_IDENTIFIER; + } + else if (ch == ';') { + styler.ColourTo(i - 1, state); + state = SCE_LISP_COMMENT; + } + else if (isLispoperator(ch) || ch=='\'') { + styler.ColourTo(i - 1, state); + styler.ColourTo(i, SCE_LISP_OPERATOR); + if (ch=='\'' && isLispwordstart(chNext)) { + state = SCE_LISP_SYMBOL; + } + } + else if (ch == '\"') { + styler.ColourTo(i - 1, state); + state = SCE_LISP_STRING; + } + } else if (state == SCE_LISP_IDENTIFIER || state == SCE_LISP_SYMBOL) { + if (!isLispwordstart(ch)) { + if (state == SCE_LISP_IDENTIFIER) { + classifyWordLisp(styler.GetStartSegment(), i - 1, keywords, keywords_kw, styler); + } else { + styler.ColourTo(i - 1, state); + } + state = SCE_LISP_DEFAULT; + } /*else*/ + if (isLispoperator(ch) || ch=='\'') { + styler.ColourTo(i - 1, state); + styler.ColourTo(i, SCE_LISP_OPERATOR); + if (ch=='\'' && isLispwordstart(chNext)) { + state = SCE_LISP_SYMBOL; + } + } + } else if (state == SCE_LISP_MACRO_DISPATCH) { + if (!(IsASCII(ch) && isdigit(ch))) { + if (ch != 'r' && ch != 'R' && (i - styler.GetStartSegment()) > 1) { + state = SCE_LISP_DEFAULT; + } else { + switch (ch) { + case '|': state = SCE_LISP_MULTI_COMMENT; break; + case 'o': + case 'O': radix = 8; state = SCE_LISP_MACRO; break; + case 'x': + case 'X': radix = 16; state = SCE_LISP_MACRO; break; + case 'b': + case 'B': radix = 2; state = SCE_LISP_MACRO; break; + case '\\': state = SCE_LISP_CHARACTER; break; + case ':': + case '-': + case '+': state = SCE_LISP_MACRO; break; + case '\'': if (isLispwordstart(chNext)) { + state = SCE_LISP_SPECIAL; + } else { + styler.ColourTo(i - 1, SCE_LISP_DEFAULT); + styler.ColourTo(i, SCE_LISP_OPERATOR); + state = SCE_LISP_DEFAULT; + } + break; + default: if (isLispoperator(ch)) { + styler.ColourTo(i - 1, SCE_LISP_DEFAULT); + styler.ColourTo(i, SCE_LISP_OPERATOR); + } + state = SCE_LISP_DEFAULT; + break; + } + } + } + } else if (state == SCE_LISP_MACRO) { + if (isLispwordstart(ch) && (radix == -1 || IsADigit(ch, radix))) { + state = SCE_LISP_SPECIAL; + } else { + state = SCE_LISP_DEFAULT; + } + } else if (state == SCE_LISP_CHARACTER) { + if (isLispoperator(ch)) { + styler.ColourTo(i, SCE_LISP_SPECIAL); + state = SCE_LISP_DEFAULT; + } else if (isLispwordstart(ch)) { + styler.ColourTo(i, SCE_LISP_SPECIAL); + state = SCE_LISP_SPECIAL; + } else { + state = SCE_LISP_DEFAULT; + } + } else if (state == SCE_LISP_SPECIAL) { + if (!isLispwordstart(ch) || (radix != -1 && !IsADigit(ch, radix))) { + styler.ColourTo(i - 1, state); + state = SCE_LISP_DEFAULT; + } + if (isLispoperator(ch) || ch=='\'') { + styler.ColourTo(i - 1, state); + styler.ColourTo(i, SCE_LISP_OPERATOR); + if (ch=='\'' && isLispwordstart(chNext)) { + state = SCE_LISP_SYMBOL; + } + } + } else { + if (state == SCE_LISP_COMMENT) { + if (atEOL) { + styler.ColourTo(i - 1, state); + state = SCE_LISP_DEFAULT; + } + } else if (state == SCE_LISP_MULTI_COMMENT) { + if (ch == '|' && chNext == '#') { + i++; + chNext = styler.SafeGetCharAt(i + 1); + styler.ColourTo(i, state); + state = SCE_LISP_DEFAULT; + } + } else if (state == SCE_LISP_STRING) { + if (ch == '\\') { + if (chNext == '\"' || chNext == '\'' || chNext == '\\') { + i++; + chNext = styler.SafeGetCharAt(i + 1); + } + } else if (ch == '\"') { + styler.ColourTo(i, state); + state = SCE_LISP_DEFAULT; + } + } + } + + } + styler.ColourTo(lengthDoc - 1, state); +} + +static void FoldLispDoc(unsigned int startPos, int length, int /* initStyle */, WordList *[], + Accessor &styler) { + unsigned int lengthDoc = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = styler[startPos]; + int styleNext = styler.StyleAt(startPos); + for (unsigned int i = startPos; i < lengthDoc; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + if (style == SCE_LISP_OPERATOR) { + if (ch == '(' || ch == '[' || ch == '{') { + levelCurrent++; + } else if (ch == ')' || ch == ']' || ch == '}') { + levelCurrent--; + } + } + if (atEOL) { + int lev = levelPrev; + if (visibleChars == 0) + lev |= SC_FOLDLEVELWHITEFLAG; + if ((levelCurrent > levelPrev) && (visibleChars > 0)) + lev |= SC_FOLDLEVELHEADERFLAG; + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + } + if (!isspacechar(ch)) + visibleChars++; + } + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + +static const char * const lispWordListDesc[] = { + "Functions and special operators", + "Keywords", + 0 +}; + +LexerModule lmLISP(SCLEX_LISP, ColouriseLispDoc, "lisp", FoldLispDoc, lispWordListDesc); diff --git a/lexers/LexLout.cpp b/lexers/LexLout.cpp new file mode 100644 index 0000000..83eb97e --- /dev/null +++ b/lexers/LexLout.cpp @@ -0,0 +1,215 @@ +// Scintilla source code edit control +/** @file LexLout.cxx + ** Lexer for the Basser Lout (>= version 3) typesetting language + **/ +// Copyright 2003 by Kein-Hong Man +// The License.txt file describes the conditions under which this software may be distributed. + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +static inline bool IsAWordChar(const int ch) { + return (ch < 0x80) && (isalpha(ch) || ch == '@' || ch == '_'); +} + +static inline bool IsAnOther(const int ch) { + return (ch < 0x80) && (ch == '{' || ch == '}' || + ch == '!' || ch == '$' || ch == '%' || ch == '&' || ch == '\'' || + ch == '(' || ch == ')' || ch == '*' || ch == '+' || ch == ',' || + ch == '-' || ch == '.' || ch == '/' || ch == ':' || ch == ';' || + ch == '<' || ch == '=' || ch == '>' || ch == '?' || ch == '[' || + ch == ']' || ch == '^' || ch == '`' || ch == '|' || ch == '~'); +} + +static void ColouriseLoutDoc(unsigned int startPos, int length, int initStyle, + WordList *keywordlists[], Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + WordList &keywords3 = *keywordlists[2]; + + int visibleChars = 0; + int firstWordInLine = 0; + int leadingAtSign = 0; + + StyleContext sc(startPos, length, initStyle, styler); + + for (; sc.More(); sc.Forward()) { + + if (sc.atLineStart && (sc.state == SCE_LOUT_STRING)) { + // Prevent SCE_LOUT_STRINGEOL from leaking back to previous line + sc.SetState(SCE_LOUT_STRING); + } + + // Determine if the current state should terminate. + if (sc.state == SCE_LOUT_COMMENT) { + if (sc.atLineEnd) { + sc.SetState(SCE_LOUT_DEFAULT); + visibleChars = 0; + } + } else if (sc.state == SCE_LOUT_NUMBER) { + if (!IsADigit(sc.ch) && sc.ch != '.') { + sc.SetState(SCE_LOUT_DEFAULT); + } + } else if (sc.state == SCE_LOUT_STRING) { + if (sc.ch == '\\') { + if (sc.chNext == '\"' || sc.chNext == '\\') { + sc.Forward(); + } + } else if (sc.ch == '\"') { + sc.ForwardSetState(SCE_LOUT_DEFAULT); + } else if (sc.atLineEnd) { + sc.ChangeState(SCE_LOUT_STRINGEOL); + sc.ForwardSetState(SCE_LOUT_DEFAULT); + visibleChars = 0; + } + } else if (sc.state == SCE_LOUT_IDENTIFIER) { + if (!IsAWordChar(sc.ch)) { + char s[100]; + sc.GetCurrent(s, sizeof(s)); + + if (leadingAtSign) { + if (keywords.InList(s)) { + sc.ChangeState(SCE_LOUT_WORD); + } else { + sc.ChangeState(SCE_LOUT_WORD4); + } + } else if (firstWordInLine && keywords3.InList(s)) { + sc.ChangeState(SCE_LOUT_WORD3); + } + sc.SetState(SCE_LOUT_DEFAULT); + } + } else if (sc.state == SCE_LOUT_OPERATOR) { + if (!IsAnOther(sc.ch)) { + char s[100]; + sc.GetCurrent(s, sizeof(s)); + + if (keywords2.InList(s)) { + sc.ChangeState(SCE_LOUT_WORD2); + } + sc.SetState(SCE_LOUT_DEFAULT); + } + } + + // Determine if a new state should be entered. + if (sc.state == SCE_LOUT_DEFAULT) { + if (sc.ch == '#') { + sc.SetState(SCE_LOUT_COMMENT); + } else if (sc.ch == '\"') { + sc.SetState(SCE_LOUT_STRING); + } else if (IsADigit(sc.ch) || + (sc.ch == '.' && IsADigit(sc.chNext))) { + sc.SetState(SCE_LOUT_NUMBER); + } else if (IsAWordChar(sc.ch)) { + firstWordInLine = (visibleChars == 0); + leadingAtSign = (sc.ch == '@'); + sc.SetState(SCE_LOUT_IDENTIFIER); + } else if (IsAnOther(sc.ch)) { + sc.SetState(SCE_LOUT_OPERATOR); + } + } + + if (sc.atLineEnd) { + // Reset states to begining of colourise so no surprises + // if different sets of lines lexed. + visibleChars = 0; + } + if (!IsASpace(sc.ch)) { + visibleChars++; + } + } + sc.Complete(); +} + +static void FoldLoutDoc(unsigned int startPos, int length, int, WordList *[], + Accessor &styler) { + + unsigned int endPos = startPos + length; + int visibleChars = 0; + int lineCurrent = styler.GetLine(startPos); + int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; + int levelCurrent = levelPrev; + char chNext = styler[startPos]; + bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; + int styleNext = styler.StyleAt(startPos); + char s[10] = ""; + + for (unsigned int i = startPos; i < endPos; i++) { + char ch = chNext; + chNext = styler.SafeGetCharAt(i + 1); + int style = styleNext; + styleNext = styler.StyleAt(i + 1); + bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); + + if (style == SCE_LOUT_WORD) { + if (ch == '@') { + for (unsigned int j = 0; j < 8; j++) { + if (!IsAWordChar(styler[i + j])) { + break; + } + s[j] = styler[i + j]; + s[j + 1] = '\0'; + } + if (strcmp(s, "@Begin") == 0) { + levelCurrent++; + } else if (strcmp(s, "@End") == 0) { + levelCurrent--; + } + } + } else if (style == SCE_LOUT_OPERATOR) { + if (ch == '{') { + levelCurrent++; + } else if (ch == '}') { + levelCurrent--; + } + } + if (atEOL) { + int lev = levelPrev; + if (visibleChars == 0 && foldCompact) { + lev |= SC_FOLDLEVELWHITEFLAG; + } + if ((levelCurrent > levelPrev) && (visibleChars > 0)) { + lev |= SC_FOLDLEVELHEADERFLAG; + } + if (lev != styler.LevelAt(lineCurrent)) { + styler.SetLevel(lineCurrent, lev); + } + lineCurrent++; + levelPrev = levelCurrent; + visibleChars = 0; + } + if (!isspacechar(ch)) + visibleChars++; + } + // Fill in the real level of the next line, keeping the current flags as they will be filled in later + int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; + styler.SetLevel(lineCurrent, levelPrev | flagsNext); +} + +static const char * const loutWordLists[] = { + "Predefined identifiers", + "Predefined delimiters", + "Predefined keywords", + 0, + }; + +LexerModule lmLout(SCLEX_LOUT, ColouriseLoutDoc, "lout", FoldLoutDoc, loutWordLists); diff --git a/lexers/LexLua.cpp b/lexers/LexLua.cpp new file mode 100644 index 0000000..62bb44d --- /dev/null +++ b/lexers/LexLua.cpp @@ -0,0 +1,436 @@ +// Scintilla source code edit control +/** @file LexLua.cxx + ** Lexer for Lua language. + ** + ** Written by Paul Winwood. + ** Folder by Alexey Yutkin. + ** Modified by Marcos E. Wurzius & Philippe Lhoste + **/ + +#include +#include +#include +#include +#include +#include + +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" + +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + +#ifdef SCI_NAMESPACE +using namespace Scintilla; +#endif + +// Test for [=[ ... ]=] delimiters, returns 0 if it's only a [ or ], +// return 1 for [[ or ]], returns >=2 for [=[ or ]=] and so on. +// The maximum number of '=' characters allowed is 254. +static int LongDelimCheck(StyleContext &sc) { + int sep = 1; + while (sc.GetRelative(sep) == '=' && sep < 0xFF) + sep++; + if (sc.GetRelative(sep) == sc.ch) + return sep; + return 0; +} + +static void ColouriseLuaDoc( + unsigned int startPos, + int length, + int initStyle, + WordList *keywordlists[], + Accessor &styler) { + + WordList &keywords = *keywordlists[0]; + WordList &keywords2 = *keywordlists[1]; + WordList &keywords3 = *keywordlists[2]; + WordList &keywords4 = *keywordlists[3]; + WordList &keywords5 = *keywordlists[4]; + WordList &keywords6 = *keywordlists[5]; + WordList &keywords7 = *keywordlists[6]; + WordList &keywords8 = *keywordlists[7]; + + // Accepts accented characters + CharacterSet setWordStart(CharacterSet::setAlpha, "_", 0x80, true); + CharacterSet setWord(CharacterSet::setAlphaNum, "_", 0x80, true); + // Not exactly following number definition (several dots are seen as OK, etc.) + // but probably enough in most cases. [pP] is for hex floats. + CharacterSet setNumber(CharacterSet::setDigits, ".-+abcdefpABCDEFP"); + CharacterSet setExponent(CharacterSet::setNone, "eEpP"); + CharacterSet setLuaOperator(CharacterSet::setNone, "*/-+()={}~[];<>,.^%:#"); + CharacterSet setEscapeSkip(CharacterSet::setNone, "\"'\\"); + + int currentLine = styler.GetLine(startPos); + // Initialize long string [[ ... ]] or block comment --[[ ... ]] nesting level, + // if we are inside such a string. Block comment was introduced in Lua 5.0, + // blocks with separators [=[ ... ]=] in Lua 5.1. + // Continuation of a string (\z whitespace escaping) is controlled by stringWs. + int nestLevel = 0; + int sepCount = 0; + int stringWs = 0; + if (initStyle == SCE_LUA_LITERALSTRING || initStyle == SCE_LUA_COMMENT || + initStyle == SCE_LUA_STRING || initStyle == SCE_LUA_CHARACTER) { + int lineState = styler.GetLineState(currentLine - 1); + nestLevel = lineState >> 9; + sepCount = lineState & 0xFF; + stringWs = lineState & 0x100; + } + + // Do not leak onto next line + if (initStyle == SCE_LUA_STRINGEOL || initStyle == SCE_LUA_COMMENTLINE || initStyle == SCE_LUA_PREPROCESSOR) { + initStyle = SCE_LUA_DEFAULT; + } + + StyleContext sc(startPos, length, initStyle, styler); + if (startPos == 0 && sc.ch == '#') { + // shbang line: # is a comment only if first char of the script + sc.SetState(SCE_LUA_COMMENTLINE); + } + for (; sc.More(); sc.Forward()) { + if (sc.atLineEnd) { + // Update the line state, so it can be seen by next line + currentLine = styler.GetLine(sc.currentPos); + switch (sc.state) { + case SCE_LUA_LITERALSTRING: + case SCE_LUA_COMMENT: + case SCE_LUA_STRING: + case SCE_LUA_CHARACTER: + // Inside a literal string, block comment or string, we set the line state + styler.SetLineState(currentLine, (nestLevel << 9) | stringWs | sepCount); + break; + default: + // Reset the line state + styler.SetLineState(currentLine, 0); + break; + } + } + if (sc.atLineStart && (sc.state == SCE_LUA_STRING)) { + // Prevent SCE_LUA_STRINGEOL from leaking back to previous line + sc.SetState(SCE_LUA_STRING); + } + + // Handle string line continuation + if ((sc.state == SCE_LUA_STRING || sc.state == SCE_LUA_CHARACTER) && + sc.ch == '\\') { + if (sc.chNext == '\n' || sc.chNext == '\r') { + sc.Forward(); + if (sc.ch == '\r' && sc.chNext == '\n') { + sc.Forward(); + } + continue; + } + } + + // Determine if the current state should terminate. + if (sc.state == SCE_LUA_OPERATOR) { + if (sc.ch == ':' && sc.chPrev == ':') { // ::