qsciscintillabase.h 84 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760
  1. // This class defines the "official" low-level API.
  2. //
  3. // Copyright (c) 2017 Riverbank Computing Limited <info@riverbankcomputing.com>
  4. //
  5. // This file is part of QScintilla.
  6. //
  7. // This file may be used under the terms of the GNU General Public License
  8. // version 3.0 as published by the Free Software Foundation and appearing in
  9. // the file LICENSE included in the packaging of this file. Please review the
  10. // following information to ensure the GNU General Public License version 3.0
  11. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  12. //
  13. // If you do not wish to use this file under the terms of the GPL version 3.0
  14. // then you may purchase a commercial license. For more information contact
  15. // info@riverbankcomputing.com.
  16. //
  17. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  18. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  19. #ifndef QSCISCINTILLABASE_H
  20. #define QSCISCINTILLABASE_H
  21. #include <qglobal.h>
  22. #include <QAbstractScrollArea>
  23. #include <QByteArray>
  24. #include <QPoint>
  25. #include <QTimer>
  26. #include <Qsci/qsciglobal.h>
  27. QT_BEGIN_NAMESPACE
  28. class QColor;
  29. class QImage;
  30. class QMimeData;
  31. class QPainter;
  32. class QPixmap;
  33. QT_END_NAMESPACE
  34. class QsciScintillaQt;
  35. //! \brief The QsciScintillaBase class implements the Scintilla editor widget
  36. //! and its low-level API.
  37. //!
  38. //! Scintilla (http://www.scintilla.org) is a powerful C++ editor class that
  39. //! supports many features including syntax styling, error indicators, code
  40. //! completion and call tips. It is particularly useful as a programmer's
  41. //! editor.
  42. //!
  43. //! QsciScintillaBase is a port to Qt of Scintilla. It implements the standard
  44. //! Scintilla API which consists of a number of messages each taking up to
  45. //! two arguments.
  46. //!
  47. //! See QsciScintilla for the implementation of a higher level API that is more
  48. //! consistent with the rest of the Qt toolkit.
  49. class QSCINTILLA_EXPORT QsciScintillaBase : public QAbstractScrollArea
  50. {
  51. Q_OBJECT
  52. public:
  53. //! The low-level Scintilla API is implemented as a set of messages each of
  54. //! which takes up to two parameters (\a wParam and \a lParam) and
  55. //! optionally return a value. This enum defines all the possible messages.
  56. enum
  57. {
  58. //!
  59. SCI_START = 2000,
  60. //!
  61. SCI_OPTIONAL_START = 3000,
  62. //!
  63. SCI_LEXER_START = 4000,
  64. //! This message appends some text to the end of the document.
  65. //! \a wParam is the length of the text.
  66. //! \a lParam is the text to be appended.
  67. SCI_ADDTEXT = 2001,
  68. //!
  69. SCI_ADDSTYLEDTEXT = 2002,
  70. //!
  71. SCI_INSERTTEXT = 2003,
  72. //!
  73. SCI_CLEARALL = 2004,
  74. //!
  75. SCI_CLEARDOCUMENTSTYLE = 2005,
  76. //!
  77. SCI_GETLENGTH = 2006,
  78. //!
  79. SCI_GETCHARAT = 2007,
  80. //! This message returns the current position.
  81. //!
  82. //! \sa SCI_SETCURRENTPOS
  83. SCI_GETCURRENTPOS = 2008,
  84. //! This message returns the anchor.
  85. //!
  86. //! \sa SCI_SETANCHOR
  87. SCI_GETANCHOR = 2009,
  88. //!
  89. SCI_GETSTYLEAT = 2010,
  90. //!
  91. SCI_REDO = 2011,
  92. //!
  93. SCI_SETUNDOCOLLECTION = 2012,
  94. //!
  95. SCI_SELECTALL = 2013,
  96. //! This message marks the current state of the text as the the save
  97. //! point. This is usually done when the text is saved or loaded.
  98. //!
  99. //! \sa SCN_SAVEPOINTREACHED(), SCN_SAVEPOINTLEFT()
  100. SCI_SETSAVEPOINT = 2014,
  101. //!
  102. SCI_GETSTYLEDTEXT = 2015,
  103. //!
  104. SCI_CANREDO = 2016,
  105. //! This message returns the line that contains a particular instance
  106. //! of a marker.
  107. //! \a wParam is the handle of the marker.
  108. //!
  109. //! \sa SCI_MARKERADD
  110. SCI_MARKERLINEFROMHANDLE = 2017,
  111. //! This message removes a particular instance of a marker.
  112. //! \a wParam is the handle of the marker.
  113. //!
  114. //! \sa SCI_MARKERADD
  115. SCI_MARKERDELETEHANDLE = 2018,
  116. //!
  117. SCI_GETUNDOCOLLECTION = 2019,
  118. //!
  119. SCI_GETVIEWWS = 2020,
  120. //!
  121. SCI_SETVIEWWS = 2021,
  122. //!
  123. SCI_POSITIONFROMPOINT = 2022,
  124. //!
  125. SCI_POSITIONFROMPOINTCLOSE = 2023,
  126. //!
  127. SCI_GOTOLINE = 2024,
  128. //! This message clears the current selection and sets the current
  129. //! position.
  130. //! \a wParam is the new current position.
  131. //!
  132. //! \sa SCI_SETCURRENTPOS
  133. SCI_GOTOPOS = 2025,
  134. //! This message sets the anchor.
  135. //! \a wParam is the new anchor.
  136. //!
  137. //! \sa SCI_GETANCHOR
  138. SCI_SETANCHOR = 2026,
  139. //!
  140. SCI_GETCURLINE = 2027,
  141. //! This message returns the character position of the start of the
  142. //! text that needs to be syntax styled.
  143. //!
  144. //! \sa SCN_STYLENEEDED()
  145. SCI_GETENDSTYLED = 2028,
  146. //!
  147. SCI_CONVERTEOLS = 2029,
  148. //!
  149. SCI_GETEOLMODE = 2030,
  150. //!
  151. SCI_SETEOLMODE = 2031,
  152. //!
  153. SCI_STARTSTYLING = 2032,
  154. //!
  155. SCI_SETSTYLING = 2033,
  156. //!
  157. SCI_GETBUFFEREDDRAW = 2034,
  158. //!
  159. SCI_SETBUFFEREDDRAW = 2035,
  160. //!
  161. SCI_SETTABWIDTH = 2036,
  162. //!
  163. SCI_GETTABWIDTH = 2121,
  164. //!
  165. SCI_SETCODEPAGE = 2037,
  166. //! This message sets the symbol used to draw one of 32 markers. Some
  167. //! markers have pre-defined uses, see the SC_MARKNUM_* values.
  168. //! \a wParam is the number of the marker.
  169. //! \a lParam is the marker symbol and is one of the SC_MARK_* values.
  170. //!
  171. //! \sa SCI_MARKERADD, SCI_MARKERDEFINEPIXMAP,
  172. //! SCI_MARKERDEFINERGBAIMAGE
  173. SCI_MARKERDEFINE = 2040,
  174. //! This message sets the foreground colour used to draw a marker. A
  175. //! colour is represented as a 24 bit value. The 8 least significant
  176. //! bits correspond to red, the middle 8 bits correspond to green, and
  177. //! the 8 most significant bits correspond to blue. The default value
  178. //! is 0x000000.
  179. //! \a wParam is the number of the marker.
  180. //! \a lParam is the colour.
  181. //!
  182. //! \sa SCI_MARKERSETBACK
  183. SCI_MARKERSETFORE = 2041,
  184. //! This message sets the background colour used to draw a marker. A
  185. //! colour is represented as a 24 bit value. The 8 least significant
  186. //! bits correspond to red, the middle 8 bits correspond to green, and
  187. //! the 8 most significant bits correspond to blue. The default value
  188. //! is 0xffffff.
  189. //! \a wParam is the number of the marker.
  190. //! \a lParam is the colour.
  191. //!
  192. //! \sa SCI_MARKERSETFORE
  193. SCI_MARKERSETBACK = 2042,
  194. //! This message adds a marker to a line. A handle for the marker is
  195. //! returned which can be used to track the marker's position.
  196. //! \a wParam is the line number.
  197. //! \a lParam is the number of the marker.
  198. //!
  199. //! \sa SCI_MARKERDELETE, SCI_MARKERDELETEALL,
  200. //! SCI_MARKERDELETEHANDLE
  201. SCI_MARKERADD = 2043,
  202. //! This message deletes a marker from a line.
  203. //! \a wParam is the line number.
  204. //! \a lParam is the number of the marker.
  205. //!
  206. //! \sa SCI_MARKERADD, SCI_MARKERDELETEALL
  207. SCI_MARKERDELETE = 2044,
  208. //! This message deletes all occurences of a marker.
  209. //! \a wParam is the number of the marker. If \a wParam is -1 then all
  210. //! markers are removed.
  211. //!
  212. //! \sa SCI_MARKERADD, SCI_MARKERDELETE
  213. SCI_MARKERDELETEALL = 2045,
  214. //! This message returns the 32 bit mask of markers at a line.
  215. //! \a wParam is the line number.
  216. SCI_MARKERGET = 2046,
  217. //! This message looks for the next line to contain at least one marker
  218. //! contained in a 32 bit mask of markers and returns the line number.
  219. //! \a wParam is the line number to start the search from.
  220. //! \a lParam is the mask of markers to search for.
  221. //!
  222. //! \sa SCI_MARKERPREVIOUS
  223. SCI_MARKERNEXT = 2047,
  224. //! This message looks for the previous line to contain at least one
  225. //! marker contained in a 32 bit mask of markers and returns the line
  226. //! number.
  227. //! \a wParam is the line number to start the search from.
  228. //! \a lParam is the mask of markers to search for.
  229. //!
  230. //! \sa SCI_MARKERNEXT
  231. SCI_MARKERPREVIOUS = 2048,
  232. //! This message sets the symbol used to draw one of the 32 markers to
  233. //! a pixmap. Pixmaps use the SC_MARK_PIXMAP marker symbol.
  234. //! \a wParam is the number of the marker.
  235. //! \a lParam is a pointer to a QPixmap instance. Note that in other
  236. //! ports of Scintilla this is a pointer to either raw or textual XPM
  237. //! image data.
  238. //!
  239. //! \sa SCI_MARKERDEFINE, SCI_MARKERDEFINERGBAIMAGE
  240. SCI_MARKERDEFINEPIXMAP = 2049,
  241. //! This message sets what can be displayed in a margin.
  242. //! \a wParam is the number of the margin.
  243. //! \a lParam is the logical or of the SC_MARGIN_* values.
  244. //!
  245. //! \sa SCI_GETMARGINTYPEN
  246. SCI_SETMARGINTYPEN = 2240,
  247. //! This message returns what can be displayed in a margin.
  248. //! \a wParam is the number of the margin.
  249. //!
  250. //! \sa SCI_SETMARGINTYPEN
  251. SCI_GETMARGINTYPEN = 2241,
  252. //! This message sets the width of a margin in pixels.
  253. //! \a wParam is the number of the margin.
  254. //! \a lParam is the new margin width.
  255. //!
  256. //! \sa SCI_GETMARGINWIDTHN
  257. SCI_SETMARGINWIDTHN = 2242,
  258. //! This message returns the width of a margin in pixels.
  259. //! \a wParam is the number of the margin.
  260. //!
  261. //! \sa SCI_SETMARGINWIDTHN
  262. SCI_GETMARGINWIDTHN = 2243,
  263. //! This message sets the mask of a margin. The mask is a 32 value
  264. //! with one bit for each possible marker. If a bit is set then the
  265. //! corresponding marker is displayed. By default, all markers are
  266. //! displayed.
  267. //! \a wParam is the number of the margin.
  268. //! \a lParam is the new margin mask.
  269. //!
  270. //! \sa SCI_GETMARGINMASKN, SCI_MARKERDEFINE
  271. SCI_SETMARGINMASKN = 2244,
  272. //! This message returns the mask of a margin.
  273. //! \a wParam is the number of the margin.
  274. //!
  275. //! \sa SCI_SETMARGINMASKN
  276. SCI_GETMARGINMASKN = 2245,
  277. //! This message sets the sensitivity of a margin to mouse clicks.
  278. //! \a wParam is the number of the margin.
  279. //! \a lParam is non-zero to make the margin sensitive to mouse clicks.
  280. //! When the mouse is clicked the SCN_MARGINCLICK() signal is emitted.
  281. //!
  282. //! \sa SCI_GETMARGINSENSITIVEN, SCN_MARGINCLICK()
  283. SCI_SETMARGINSENSITIVEN = 2246,
  284. //! This message returns the sensitivity of a margin to mouse clicks.
  285. //! \a wParam is the number of the margin.
  286. //!
  287. //! \sa SCI_SETMARGINSENSITIVEN, SCN_MARGINCLICK()
  288. SCI_GETMARGINSENSITIVEN = 2247,
  289. //! This message sets the cursor shape displayed over a margin.
  290. //! \a wParam is the number of the margin.
  291. //! \a lParam is the cursor shape, normally either SC_CURSORARROW or
  292. //! SC_CURSORREVERSEARROW. Note that, currently, QScintilla implements
  293. //! both of these as Qt::ArrowCursor.
  294. //!
  295. //! \sa SCI_GETMARGINCURSORN
  296. SCI_SETMARGINCURSORN = 2248,
  297. //! This message returns the cursor shape displayed over a margin.
  298. //! \a wParam is the number of the margin.
  299. //!
  300. //! \sa SCI_SETMARGINCURSORN
  301. SCI_GETMARGINCURSORN = 2249,
  302. //!
  303. SCI_STYLECLEARALL = 2050,
  304. //!
  305. SCI_STYLESETFORE = 2051,
  306. //!
  307. SCI_STYLESETBACK = 2052,
  308. //!
  309. SCI_STYLESETBOLD = 2053,
  310. //!
  311. SCI_STYLESETITALIC = 2054,
  312. //!
  313. SCI_STYLESETSIZE = 2055,
  314. //!
  315. SCI_STYLESETFONT = 2056,
  316. //!
  317. SCI_STYLESETEOLFILLED = 2057,
  318. //!
  319. SCI_STYLERESETDEFAULT = 2058,
  320. //!
  321. SCI_STYLESETUNDERLINE = 2059,
  322. //!
  323. SCI_STYLESETCASE = 2060,
  324. //!
  325. SCI_STYLESETSIZEFRACTIONAL = 2061,
  326. //!
  327. SCI_STYLEGETSIZEFRACTIONAL = 2062,
  328. //!
  329. SCI_STYLESETWEIGHT = 2063,
  330. //!
  331. SCI_STYLEGETWEIGHT = 2064,
  332. //!
  333. SCI_STYLESETCHARACTERSET = 2066,
  334. //!
  335. SCI_SETSELFORE = 2067,
  336. //!
  337. SCI_SETSELBACK = 2068,
  338. //!
  339. SCI_SETCARETFORE = 2069,
  340. //!
  341. SCI_ASSIGNCMDKEY = 2070,
  342. //!
  343. SCI_CLEARCMDKEY = 2071,
  344. //!
  345. SCI_CLEARALLCMDKEYS = 2072,
  346. //!
  347. SCI_SETSTYLINGEX = 2073,
  348. //!
  349. SCI_STYLESETVISIBLE = 2074,
  350. //!
  351. SCI_GETCARETPERIOD = 2075,
  352. //!
  353. SCI_SETCARETPERIOD = 2076,
  354. //!
  355. SCI_SETWORDCHARS = 2077,
  356. //!
  357. SCI_BEGINUNDOACTION = 2078,
  358. //!
  359. SCI_ENDUNDOACTION = 2079,
  360. //!
  361. SCI_INDICSETSTYLE = 2080,
  362. //!
  363. SCI_INDICGETSTYLE = 2081,
  364. //!
  365. SCI_INDICSETFORE = 2082,
  366. //!
  367. SCI_INDICGETFORE = 2083,
  368. //!
  369. SCI_SETWHITESPACEFORE = 2084,
  370. //!
  371. SCI_SETWHITESPACEBACK = 2085,
  372. //!
  373. SCI_SETWHITESPACESIZE = 2086,
  374. //!
  375. SCI_GETWHITESPACESIZE = 2087,
  376. //!
  377. SCI_SETSTYLEBITS = 2090,
  378. //!
  379. SCI_GETSTYLEBITS = 2091,
  380. //!
  381. SCI_SETLINESTATE = 2092,
  382. //!
  383. SCI_GETLINESTATE = 2093,
  384. //!
  385. SCI_GETMAXLINESTATE = 2094,
  386. //!
  387. SCI_GETCARETLINEVISIBLE = 2095,
  388. //!
  389. SCI_SETCARETLINEVISIBLE = 2096,
  390. //!
  391. SCI_GETCARETLINEBACK = 2097,
  392. //!
  393. SCI_SETCARETLINEBACK = 2098,
  394. //!
  395. SCI_STYLESETCHANGEABLE = 2099,
  396. //!
  397. SCI_AUTOCSHOW = 2100,
  398. //!
  399. SCI_AUTOCCANCEL = 2101,
  400. //!
  401. SCI_AUTOCACTIVE = 2102,
  402. //!
  403. SCI_AUTOCPOSSTART = 2103,
  404. //!
  405. SCI_AUTOCCOMPLETE = 2104,
  406. //!
  407. SCI_AUTOCSTOPS = 2105,
  408. //!
  409. SCI_AUTOCSETSEPARATOR = 2106,
  410. //!
  411. SCI_AUTOCGETSEPARATOR = 2107,
  412. //!
  413. SCI_AUTOCSELECT = 2108,
  414. //!
  415. SCI_AUTOCSETCANCELATSTART = 2110,
  416. //!
  417. SCI_AUTOCGETCANCELATSTART = 2111,
  418. //!
  419. SCI_AUTOCSETFILLUPS = 2112,
  420. //!
  421. SCI_AUTOCSETCHOOSESINGLE = 2113,
  422. //!
  423. SCI_AUTOCGETCHOOSESINGLE = 2114,
  424. //!
  425. SCI_AUTOCSETIGNORECASE = 2115,
  426. //!
  427. SCI_AUTOCGETIGNORECASE = 2116,
  428. //!
  429. SCI_USERLISTSHOW = 2117,
  430. //!
  431. SCI_AUTOCSETAUTOHIDE = 2118,
  432. //!
  433. SCI_AUTOCGETAUTOHIDE = 2119,
  434. //!
  435. SCI_AUTOCSETDROPRESTOFWORD = 2270,
  436. //!
  437. SCI_AUTOCGETDROPRESTOFWORD = 2271,
  438. //!
  439. SCI_SETINDENT = 2122,
  440. //!
  441. SCI_GETINDENT = 2123,
  442. //!
  443. SCI_SETUSETABS = 2124,
  444. //!
  445. SCI_GETUSETABS = 2125,
  446. //!
  447. SCI_SETLINEINDENTATION = 2126,
  448. //!
  449. SCI_GETLINEINDENTATION = 2127,
  450. //!
  451. SCI_GETLINEINDENTPOSITION = 2128,
  452. //!
  453. SCI_GETCOLUMN = 2129,
  454. //!
  455. SCI_SETHSCROLLBAR = 2130,
  456. //!
  457. SCI_GETHSCROLLBAR = 2131,
  458. //!
  459. SCI_SETINDENTATIONGUIDES = 2132,
  460. //!
  461. SCI_GETINDENTATIONGUIDES = 2133,
  462. //!
  463. SCI_SETHIGHLIGHTGUIDE = 2134,
  464. //!
  465. SCI_GETHIGHLIGHTGUIDE = 2135,
  466. //!
  467. SCI_GETLINEENDPOSITION = 2136,
  468. //!
  469. SCI_GETCODEPAGE = 2137,
  470. //!
  471. SCI_GETCARETFORE = 2138,
  472. //! This message returns a non-zero value if the document is read-only.
  473. //!
  474. //! \sa SCI_SETREADONLY
  475. SCI_GETREADONLY = 2140,
  476. //! This message sets the current position.
  477. //! \a wParam is the new current position.
  478. //!
  479. //! \sa SCI_GETCURRENTPOS
  480. SCI_SETCURRENTPOS = 2141,
  481. //!
  482. SCI_SETSELECTIONSTART = 2142,
  483. //!
  484. SCI_GETSELECTIONSTART = 2143,
  485. //!
  486. SCI_SETSELECTIONEND = 2144,
  487. //!
  488. SCI_GETSELECTIONEND = 2145,
  489. //!
  490. SCI_SETPRINTMAGNIFICATION = 2146,
  491. //!
  492. SCI_GETPRINTMAGNIFICATION = 2147,
  493. //!
  494. SCI_SETPRINTCOLOURMODE = 2148,
  495. //!
  496. SCI_GETPRINTCOLOURMODE = 2149,
  497. //!
  498. SCI_FINDTEXT = 2150,
  499. //!
  500. SCI_FORMATRANGE = 2151,
  501. //!
  502. SCI_GETFIRSTVISIBLELINE = 2152,
  503. //!
  504. SCI_GETLINE = 2153,
  505. //!
  506. SCI_GETLINECOUNT = 2154,
  507. //!
  508. SCI_SETMARGINLEFT = 2155,
  509. //!
  510. SCI_GETMARGINLEFT = 2156,
  511. //!
  512. SCI_SETMARGINRIGHT = 2157,
  513. //!
  514. SCI_GETMARGINRIGHT = 2158,
  515. //! This message returns a non-zero value if the document has been
  516. //! modified.
  517. SCI_GETMODIFY = 2159,
  518. //!
  519. SCI_SETSEL = 2160,
  520. //!
  521. SCI_GETSELTEXT = 2161,
  522. //!
  523. SCI_GETTEXTRANGE = 2162,
  524. //!
  525. SCI_HIDESELECTION = 2163,
  526. //!
  527. SCI_POINTXFROMPOSITION = 2164,
  528. //!
  529. SCI_POINTYFROMPOSITION = 2165,
  530. //!
  531. SCI_LINEFROMPOSITION = 2166,
  532. //!
  533. SCI_POSITIONFROMLINE = 2167,
  534. //!
  535. SCI_LINESCROLL = 2168,
  536. //!
  537. SCI_SCROLLCARET = 2169,
  538. //!
  539. SCI_REPLACESEL = 2170,
  540. //! This message sets the read-only state of the document.
  541. //! \a wParam is the new read-only state of the document.
  542. //!
  543. //! \sa SCI_GETREADONLY
  544. SCI_SETREADONLY = 2171,
  545. //!
  546. SCI_NULL = 2172,
  547. //!
  548. SCI_CANPASTE = 2173,
  549. //!
  550. SCI_CANUNDO = 2174,
  551. //! This message empties the undo buffer.
  552. SCI_EMPTYUNDOBUFFER = 2175,
  553. //!
  554. SCI_UNDO = 2176,
  555. //!
  556. SCI_CUT = 2177,
  557. //!
  558. SCI_COPY = 2178,
  559. //!
  560. SCI_PASTE = 2179,
  561. //!
  562. SCI_CLEAR = 2180,
  563. //! This message sets the text of the document.
  564. //! \a wParam is unused.
  565. //! \a lParam is the new text of the document.
  566. //!
  567. //! \sa SCI_GETTEXT
  568. SCI_SETTEXT = 2181,
  569. //! This message gets the text of the document.
  570. //! \a wParam is size of the buffer that the text is copied to.
  571. //! \a lParam is the address of the buffer that the text is copied to.
  572. //!
  573. //! \sa SCI_SETTEXT
  574. SCI_GETTEXT = 2182,
  575. //! This message returns the length of the document.
  576. SCI_GETTEXTLENGTH = 2183,
  577. //!
  578. SCI_GETDIRECTFUNCTION = 2184,
  579. //!
  580. SCI_GETDIRECTPOINTER = 2185,
  581. //!
  582. SCI_SETOVERTYPE = 2186,
  583. //!
  584. SCI_GETOVERTYPE = 2187,
  585. //!
  586. SCI_SETCARETWIDTH = 2188,
  587. //!
  588. SCI_GETCARETWIDTH = 2189,
  589. //!
  590. SCI_SETTARGETSTART = 2190,
  591. //!
  592. SCI_GETTARGETSTART = 2191,
  593. //!
  594. SCI_SETTARGETEND = 2192,
  595. //!
  596. SCI_GETTARGETEND = 2193,
  597. //!
  598. SCI_REPLACETARGET = 2194,
  599. //!
  600. SCI_REPLACETARGETRE = 2195,
  601. //!
  602. SCI_SEARCHINTARGET = 2197,
  603. //!
  604. SCI_SETSEARCHFLAGS = 2198,
  605. //!
  606. SCI_GETSEARCHFLAGS = 2199,
  607. //!
  608. SCI_CALLTIPSHOW = 2200,
  609. //!
  610. SCI_CALLTIPCANCEL = 2201,
  611. //!
  612. SCI_CALLTIPACTIVE = 2202,
  613. //!
  614. SCI_CALLTIPPOSSTART = 2203,
  615. //!
  616. SCI_CALLTIPSETHLT = 2204,
  617. //!
  618. SCI_CALLTIPSETBACK = 2205,
  619. //!
  620. SCI_CALLTIPSETFORE = 2206,
  621. //!
  622. SCI_CALLTIPSETFOREHLT = 2207,
  623. //!
  624. SCI_AUTOCSETMAXWIDTH = 2208,
  625. //!
  626. SCI_AUTOCGETMAXWIDTH = 2209,
  627. //! This message is not implemented.
  628. SCI_AUTOCSETMAXHEIGHT = 2210,
  629. //!
  630. SCI_AUTOCGETMAXHEIGHT = 2211,
  631. //!
  632. SCI_CALLTIPUSESTYLE = 2212,
  633. //!
  634. SCI_CALLTIPSETPOSITION = 2213,
  635. //!
  636. SCI_CALLTIPSETPOSSTART = 2214,
  637. //!
  638. SCI_VISIBLEFROMDOCLINE = 2220,
  639. //!
  640. SCI_DOCLINEFROMVISIBLE = 2221,
  641. //!
  642. SCI_SETFOLDLEVEL = 2222,
  643. //!
  644. SCI_GETFOLDLEVEL = 2223,
  645. //!
  646. SCI_GETLASTCHILD = 2224,
  647. //!
  648. SCI_GETFOLDPARENT = 2225,
  649. //!
  650. SCI_SHOWLINES = 2226,
  651. //!
  652. SCI_HIDELINES = 2227,
  653. //!
  654. SCI_GETLINEVISIBLE = 2228,
  655. //!
  656. SCI_SETFOLDEXPANDED = 2229,
  657. //!
  658. SCI_GETFOLDEXPANDED = 2230,
  659. //!
  660. SCI_TOGGLEFOLD = 2231,
  661. //!
  662. SCI_ENSUREVISIBLE = 2232,
  663. //!
  664. SCI_SETFOLDFLAGS = 2233,
  665. //!
  666. SCI_ENSUREVISIBLEENFORCEPOLICY = 2234,
  667. //!
  668. SCI_WRAPCOUNT = 2235,
  669. //!
  670. SCI_GETALLLINESVISIBLE = 2236,
  671. //!
  672. SCI_FOLDLINE = 2237,
  673. //!
  674. SCI_FOLDCHILDREN = 2238,
  675. //!
  676. SCI_EXPANDCHILDREN = 2239,
  677. //!
  678. SCI_SETMARGINBACKN = 2250,
  679. //!
  680. SCI_GETMARGINBACKN = 2251,
  681. //!
  682. SCI_SETMARGINS = 2252,
  683. //!
  684. SCI_GETMARGINS = 2253,
  685. //!
  686. SCI_SETTABINDENTS = 2260,
  687. //!
  688. SCI_GETTABINDENTS = 2261,
  689. //!
  690. SCI_SETBACKSPACEUNINDENTS = 2262,
  691. //!
  692. SCI_GETBACKSPACEUNINDENTS = 2263,
  693. //!
  694. SCI_SETMOUSEDWELLTIME = 2264,
  695. //!
  696. SCI_GETMOUSEDWELLTIME = 2265,
  697. //!
  698. SCI_WORDSTARTPOSITION = 2266,
  699. //!
  700. SCI_WORDENDPOSITION = 2267,
  701. //!
  702. SCI_SETWRAPMODE = 2268,
  703. //!
  704. SCI_GETWRAPMODE = 2269,
  705. //!
  706. SCI_SETLAYOUTCACHE = 2272,
  707. //!
  708. SCI_GETLAYOUTCACHE = 2273,
  709. //!
  710. SCI_SETSCROLLWIDTH = 2274,
  711. //!
  712. SCI_GETSCROLLWIDTH = 2275,
  713. //! This message returns the width of some text when rendered in a
  714. //! particular style.
  715. //! \a wParam is the style number and is one of the STYLE_* values or
  716. //! one of the styles defined by a lexer.
  717. //! \a lParam is a pointer to the text.
  718. SCI_TEXTWIDTH = 2276,
  719. //!
  720. SCI_SETENDATLASTLINE = 2277,
  721. //!
  722. SCI_GETENDATLASTLINE = 2278,
  723. //!
  724. SCI_TEXTHEIGHT = 2279,
  725. //!
  726. SCI_SETVSCROLLBAR = 2280,
  727. //!
  728. SCI_GETVSCROLLBAR = 2281,
  729. //!
  730. SCI_APPENDTEXT = 2282,
  731. //!
  732. SCI_GETTWOPHASEDRAW = 2283,
  733. //!
  734. SCI_SETTWOPHASEDRAW = 2284,
  735. //!
  736. SCI_AUTOCGETTYPESEPARATOR = 2285,
  737. //!
  738. SCI_AUTOCSETTYPESEPARATOR = 2286,
  739. //!
  740. SCI_TARGETFROMSELECTION = 2287,
  741. //!
  742. SCI_LINESJOIN = 2288,
  743. //!
  744. SCI_LINESSPLIT = 2289,
  745. //!
  746. SCI_SETFOLDMARGINCOLOUR = 2290,
  747. //!
  748. SCI_SETFOLDMARGINHICOLOUR = 2291,
  749. //!
  750. SCI_MARKERSETBACKSELECTED = 2292,
  751. //!
  752. SCI_MARKERENABLEHIGHLIGHT = 2293,
  753. //!
  754. SCI_LINEDOWN = 2300,
  755. //!
  756. SCI_LINEDOWNEXTEND = 2301,
  757. //!
  758. SCI_LINEUP = 2302,
  759. //!
  760. SCI_LINEUPEXTEND = 2303,
  761. //!
  762. SCI_CHARLEFT = 2304,
  763. //!
  764. SCI_CHARLEFTEXTEND = 2305,
  765. //!
  766. SCI_CHARRIGHT = 2306,
  767. //!
  768. SCI_CHARRIGHTEXTEND = 2307,
  769. //!
  770. SCI_WORDLEFT = 2308,
  771. //!
  772. SCI_WORDLEFTEXTEND = 2309,
  773. //!
  774. SCI_WORDRIGHT = 2310,
  775. //!
  776. SCI_WORDRIGHTEXTEND = 2311,
  777. //!
  778. SCI_HOME = 2312,
  779. //!
  780. SCI_HOMEEXTEND = 2313,
  781. //!
  782. SCI_LINEEND = 2314,
  783. //!
  784. SCI_LINEENDEXTEND = 2315,
  785. //!
  786. SCI_DOCUMENTSTART = 2316,
  787. //!
  788. SCI_DOCUMENTSTARTEXTEND = 2317,
  789. //!
  790. SCI_DOCUMENTEND = 2318,
  791. //!
  792. SCI_DOCUMENTENDEXTEND = 2319,
  793. //!
  794. SCI_PAGEUP = 2320,
  795. //!
  796. SCI_PAGEUPEXTEND = 2321,
  797. //!
  798. SCI_PAGEDOWN = 2322,
  799. //!
  800. SCI_PAGEDOWNEXTEND = 2323,
  801. //!
  802. SCI_EDITTOGGLEOVERTYPE = 2324,
  803. //!
  804. SCI_CANCEL = 2325,
  805. //!
  806. SCI_DELETEBACK = 2326,
  807. //!
  808. SCI_TAB = 2327,
  809. //!
  810. SCI_BACKTAB = 2328,
  811. //!
  812. SCI_NEWLINE = 2329,
  813. //!
  814. SCI_FORMFEED = 2330,
  815. //!
  816. SCI_VCHOME = 2331,
  817. //!
  818. SCI_VCHOMEEXTEND = 2332,
  819. //!
  820. SCI_ZOOMIN = 2333,
  821. //!
  822. SCI_ZOOMOUT = 2334,
  823. //!
  824. SCI_DELWORDLEFT = 2335,
  825. //!
  826. SCI_DELWORDRIGHT = 2336,
  827. //!
  828. SCI_LINECUT = 2337,
  829. //!
  830. SCI_LINEDELETE = 2338,
  831. //!
  832. SCI_LINETRANSPOSE = 2339,
  833. //!
  834. SCI_LOWERCASE = 2340,
  835. //!
  836. SCI_UPPERCASE = 2341,
  837. //!
  838. SCI_LINESCROLLDOWN = 2342,
  839. //!
  840. SCI_LINESCROLLUP = 2343,
  841. //!
  842. SCI_DELETEBACKNOTLINE = 2344,
  843. //!
  844. SCI_HOMEDISPLAY = 2345,
  845. //!
  846. SCI_HOMEDISPLAYEXTEND = 2346,
  847. //!
  848. SCI_LINEENDDISPLAY = 2347,
  849. //!
  850. SCI_LINEENDDISPLAYEXTEND = 2348,
  851. //!
  852. SCI_MOVECARETINSIDEVIEW = 2401,
  853. //!
  854. SCI_LINELENGTH = 2350,
  855. //!
  856. SCI_BRACEHIGHLIGHT = 2351,
  857. //!
  858. SCI_BRACEBADLIGHT = 2352,
  859. //!
  860. SCI_BRACEMATCH = 2353,
  861. //!
  862. SCI_GETVIEWEOL = 2355,
  863. //!
  864. SCI_SETVIEWEOL = 2356,
  865. //!
  866. SCI_GETDOCPOINTER = 2357,
  867. //!
  868. SCI_SETDOCPOINTER = 2358,
  869. //!
  870. SCI_SETMODEVENTMASK = 2359,
  871. //!
  872. SCI_GETEDGECOLUMN = 2360,
  873. //!
  874. SCI_SETEDGECOLUMN = 2361,
  875. //!
  876. SCI_GETEDGEMODE = 2362,
  877. //!
  878. SCI_SETEDGEMODE = 2363,
  879. //!
  880. SCI_GETEDGECOLOUR = 2364,
  881. //!
  882. SCI_SETEDGECOLOUR = 2365,
  883. //!
  884. SCI_SEARCHANCHOR = 2366,
  885. //!
  886. SCI_SEARCHNEXT = 2367,
  887. //!
  888. SCI_SEARCHPREV = 2368,
  889. //!
  890. SCI_LINESONSCREEN = 2370,
  891. //!
  892. SCI_USEPOPUP = 2371,
  893. //!
  894. SCI_SELECTIONISRECTANGLE = 2372,
  895. //!
  896. SCI_SETZOOM = 2373,
  897. //!
  898. SCI_GETZOOM = 2374,
  899. //!
  900. SCI_CREATEDOCUMENT = 2375,
  901. //!
  902. SCI_ADDREFDOCUMENT = 2376,
  903. //!
  904. SCI_RELEASEDOCUMENT = 2377,
  905. //!
  906. SCI_GETMODEVENTMASK = 2378,
  907. //!
  908. SCI_SETFOCUS = 2380,
  909. //!
  910. SCI_GETFOCUS = 2381,
  911. //!
  912. SCI_SETSTATUS = 2382,
  913. //!
  914. SCI_GETSTATUS = 2383,
  915. //!
  916. SCI_SETMOUSEDOWNCAPTURES = 2384,
  917. //!
  918. SCI_GETMOUSEDOWNCAPTURES = 2385,
  919. //!
  920. SCI_SETCURSOR = 2386,
  921. //!
  922. SCI_GETCURSOR = 2387,
  923. //!
  924. SCI_SETCONTROLCHARSYMBOL = 2388,
  925. //!
  926. SCI_GETCONTROLCHARSYMBOL = 2389,
  927. //!
  928. SCI_WORDPARTLEFT = 2390,
  929. //!
  930. SCI_WORDPARTLEFTEXTEND = 2391,
  931. //!
  932. SCI_WORDPARTRIGHT = 2392,
  933. //!
  934. SCI_WORDPARTRIGHTEXTEND = 2393,
  935. //!
  936. SCI_SETVISIBLEPOLICY = 2394,
  937. //!
  938. SCI_DELLINELEFT = 2395,
  939. //!
  940. SCI_DELLINERIGHT = 2396,
  941. //!
  942. SCI_SETXOFFSET = 2397,
  943. //!
  944. SCI_GETXOFFSET = 2398,
  945. //!
  946. SCI_CHOOSECARETX = 2399,
  947. //!
  948. SCI_GRABFOCUS = 2400,
  949. //!
  950. SCI_SETXCARETPOLICY = 2402,
  951. //!
  952. SCI_SETYCARETPOLICY = 2403,
  953. //!
  954. SCI_LINEDUPLICATE = 2404,
  955. //! This message takes a copy of an image and registers it so that it
  956. //! can be refered to by a unique integer identifier.
  957. //! \a wParam is the image's identifier.
  958. //! \a lParam is a pointer to a QPixmap instance. Note that in other
  959. //! ports of Scintilla this is a pointer to either raw or textual XPM
  960. //! image data.
  961. //!
  962. //! \sa SCI_CLEARREGISTEREDIMAGES, SCI_REGISTERRGBAIMAGE
  963. SCI_REGISTERIMAGE = 2405,
  964. //!
  965. SCI_SETPRINTWRAPMODE = 2406,
  966. //!
  967. SCI_GETPRINTWRAPMODE = 2407,
  968. //! This message de-registers all currently registered images.
  969. //!
  970. //! \sa SCI_REGISTERIMAGE, SCI_REGISTERRGBAIMAGE
  971. SCI_CLEARREGISTEREDIMAGES = 2408,
  972. //!
  973. SCI_STYLESETHOTSPOT = 2409,
  974. //!
  975. SCI_SETHOTSPOTACTIVEFORE = 2410,
  976. //!
  977. SCI_SETHOTSPOTACTIVEBACK = 2411,
  978. //!
  979. SCI_SETHOTSPOTACTIVEUNDERLINE = 2412,
  980. //!
  981. SCI_PARADOWN = 2413,
  982. //!
  983. SCI_PARADOWNEXTEND = 2414,
  984. //!
  985. SCI_PARAUP = 2415,
  986. //!
  987. SCI_PARAUPEXTEND = 2416,
  988. //!
  989. SCI_POSITIONBEFORE = 2417,
  990. //!
  991. SCI_POSITIONAFTER = 2418,
  992. //!
  993. SCI_COPYRANGE = 2419,
  994. //!
  995. SCI_COPYTEXT = 2420,
  996. //!
  997. SCI_SETHOTSPOTSINGLELINE = 2421,
  998. //!
  999. SCI_SETSELECTIONMODE = 2422,
  1000. //!
  1001. SCI_GETSELECTIONMODE = 2423,
  1002. //!
  1003. SCI_GETLINESELSTARTPOSITION = 2424,
  1004. //!
  1005. SCI_GETLINESELENDPOSITION = 2425,
  1006. //!
  1007. SCI_LINEDOWNRECTEXTEND = 2426,
  1008. //!
  1009. SCI_LINEUPRECTEXTEND = 2427,
  1010. //!
  1011. SCI_CHARLEFTRECTEXTEND = 2428,
  1012. //!
  1013. SCI_CHARRIGHTRECTEXTEND = 2429,
  1014. //!
  1015. SCI_HOMERECTEXTEND = 2430,
  1016. //!
  1017. SCI_VCHOMERECTEXTEND = 2431,
  1018. //!
  1019. SCI_LINEENDRECTEXTEND = 2432,
  1020. //!
  1021. SCI_PAGEUPRECTEXTEND = 2433,
  1022. //!
  1023. SCI_PAGEDOWNRECTEXTEND = 2434,
  1024. //!
  1025. SCI_STUTTEREDPAGEUP = 2435,
  1026. //!
  1027. SCI_STUTTEREDPAGEUPEXTEND = 2436,
  1028. //!
  1029. SCI_STUTTEREDPAGEDOWN = 2437,
  1030. //!
  1031. SCI_STUTTEREDPAGEDOWNEXTEND = 2438,
  1032. //!
  1033. SCI_WORDLEFTEND = 2439,
  1034. //!
  1035. SCI_WORDLEFTENDEXTEND = 2440,
  1036. //!
  1037. SCI_WORDRIGHTEND = 2441,
  1038. //!
  1039. SCI_WORDRIGHTENDEXTEND = 2442,
  1040. //!
  1041. SCI_SETWHITESPACECHARS = 2443,
  1042. //!
  1043. SCI_SETCHARSDEFAULT = 2444,
  1044. //!
  1045. SCI_AUTOCGETCURRENT = 2445,
  1046. //!
  1047. SCI_ALLOCATE = 2446,
  1048. //!
  1049. SCI_HOMEWRAP = 2349,
  1050. //!
  1051. SCI_HOMEWRAPEXTEND = 2450,
  1052. //!
  1053. SCI_LINEENDWRAP = 2451,
  1054. //!
  1055. SCI_LINEENDWRAPEXTEND = 2452,
  1056. //!
  1057. SCI_VCHOMEWRAP = 2453,
  1058. //!
  1059. SCI_VCHOMEWRAPEXTEND = 2454,
  1060. //!
  1061. SCI_LINECOPY = 2455,
  1062. //!
  1063. SCI_FINDCOLUMN = 2456,
  1064. //!
  1065. SCI_GETCARETSTICKY = 2457,
  1066. //!
  1067. SCI_SETCARETSTICKY = 2458,
  1068. //!
  1069. SCI_TOGGLECARETSTICKY = 2459,
  1070. //!
  1071. SCI_SETWRAPVISUALFLAGS = 2460,
  1072. //!
  1073. SCI_GETWRAPVISUALFLAGS = 2461,
  1074. //!
  1075. SCI_SETWRAPVISUALFLAGSLOCATION = 2462,
  1076. //!
  1077. SCI_GETWRAPVISUALFLAGSLOCATION = 2463,
  1078. //!
  1079. SCI_SETWRAPSTARTINDENT = 2464,
  1080. //!
  1081. SCI_GETWRAPSTARTINDENT = 2465,
  1082. //!
  1083. SCI_MARKERADDSET = 2466,
  1084. //!
  1085. SCI_SETPASTECONVERTENDINGS = 2467,
  1086. //!
  1087. SCI_GETPASTECONVERTENDINGS = 2468,
  1088. //!
  1089. SCI_SELECTIONDUPLICATE = 2469,
  1090. //!
  1091. SCI_SETCARETLINEBACKALPHA = 2470,
  1092. //!
  1093. SCI_GETCARETLINEBACKALPHA = 2471,
  1094. //!
  1095. SCI_SETWRAPINDENTMODE = 2472,
  1096. //!
  1097. SCI_GETWRAPINDENTMODE = 2473,
  1098. //!
  1099. SCI_MARKERSETALPHA = 2476,
  1100. //!
  1101. SCI_GETSELALPHA = 2477,
  1102. //!
  1103. SCI_SETSELALPHA = 2478,
  1104. //!
  1105. SCI_GETSELEOLFILLED = 2479,
  1106. //!
  1107. SCI_SETSELEOLFILLED = 2480,
  1108. //!
  1109. SCI_STYLEGETFORE = 2481,
  1110. //!
  1111. SCI_STYLEGETBACK = 2482,
  1112. //!
  1113. SCI_STYLEGETBOLD = 2483,
  1114. //!
  1115. SCI_STYLEGETITALIC = 2484,
  1116. //!
  1117. SCI_STYLEGETSIZE = 2485,
  1118. //!
  1119. SCI_STYLEGETFONT = 2486,
  1120. //!
  1121. SCI_STYLEGETEOLFILLED = 2487,
  1122. //!
  1123. SCI_STYLEGETUNDERLINE = 2488,
  1124. //!
  1125. SCI_STYLEGETCASE = 2489,
  1126. //!
  1127. SCI_STYLEGETCHARACTERSET = 2490,
  1128. //!
  1129. SCI_STYLEGETVISIBLE = 2491,
  1130. //!
  1131. SCI_STYLEGETCHANGEABLE = 2492,
  1132. //!
  1133. SCI_STYLEGETHOTSPOT = 2493,
  1134. //!
  1135. SCI_GETHOTSPOTACTIVEFORE = 2494,
  1136. //!
  1137. SCI_GETHOTSPOTACTIVEBACK = 2495,
  1138. //!
  1139. SCI_GETHOTSPOTACTIVEUNDERLINE = 2496,
  1140. //!
  1141. SCI_GETHOTSPOTSINGLELINE = 2497,
  1142. //!
  1143. SCI_BRACEHIGHLIGHTINDICATOR = 2498,
  1144. //!
  1145. SCI_BRACEBADLIGHTINDICATOR = 2499,
  1146. //!
  1147. SCI_SETINDICATORCURRENT = 2500,
  1148. //!
  1149. SCI_GETINDICATORCURRENT = 2501,
  1150. //!
  1151. SCI_SETINDICATORVALUE = 2502,
  1152. //!
  1153. SCI_GETINDICATORVALUE = 2503,
  1154. //!
  1155. SCI_INDICATORFILLRANGE = 2504,
  1156. //!
  1157. SCI_INDICATORCLEARRANGE = 2505,
  1158. //!
  1159. SCI_INDICATORALLONFOR = 2506,
  1160. //!
  1161. SCI_INDICATORVALUEAT = 2507,
  1162. //!
  1163. SCI_INDICATORSTART = 2508,
  1164. //!
  1165. SCI_INDICATOREND = 2509,
  1166. //!
  1167. SCI_INDICSETUNDER = 2510,
  1168. //!
  1169. SCI_INDICGETUNDER = 2511,
  1170. //!
  1171. SCI_SETCARETSTYLE = 2512,
  1172. //!
  1173. SCI_GETCARETSTYLE = 2513,
  1174. //!
  1175. SCI_SETPOSITIONCACHE = 2514,
  1176. //!
  1177. SCI_GETPOSITIONCACHE = 2515,
  1178. //!
  1179. SCI_SETSCROLLWIDTHTRACKING = 2516,
  1180. //!
  1181. SCI_GETSCROLLWIDTHTRACKING = 2517,
  1182. //!
  1183. SCI_DELWORDRIGHTEND = 2518,
  1184. //! This message copies the selection. If the selection is empty then
  1185. //! copy the line with the caret.
  1186. SCI_COPYALLOWLINE = 2519,
  1187. //! This message returns a pointer to the document text. Any
  1188. //! subsequent message will invalidate the pointer.
  1189. SCI_GETCHARACTERPOINTER = 2520,
  1190. //!
  1191. SCI_INDICSETALPHA = 2523,
  1192. //!
  1193. SCI_INDICGETALPHA = 2524,
  1194. //!
  1195. SCI_SETEXTRAASCENT = 2525,
  1196. //!
  1197. SCI_GETEXTRAASCENT = 2526,
  1198. //!
  1199. SCI_SETEXTRADESCENT = 2527,
  1200. //!
  1201. SCI_GETEXTRADESCENT = 2528,
  1202. //!
  1203. SCI_MARKERSYMBOLDEFINED = 2529,
  1204. //!
  1205. SCI_MARGINSETTEXT = 2530,
  1206. //!
  1207. SCI_MARGINGETTEXT = 2531,
  1208. //!
  1209. SCI_MARGINSETSTYLE = 2532,
  1210. //!
  1211. SCI_MARGINGETSTYLE = 2533,
  1212. //!
  1213. SCI_MARGINSETSTYLES = 2534,
  1214. //!
  1215. SCI_MARGINGETSTYLES = 2535,
  1216. //!
  1217. SCI_MARGINTEXTCLEARALL = 2536,
  1218. //!
  1219. SCI_MARGINSETSTYLEOFFSET = 2537,
  1220. //!
  1221. SCI_MARGINGETSTYLEOFFSET = 2538,
  1222. //!
  1223. SCI_SETMARGINOPTIONS = 2539,
  1224. //!
  1225. SCI_ANNOTATIONSETTEXT = 2540,
  1226. //!
  1227. SCI_ANNOTATIONGETTEXT = 2541,
  1228. //!
  1229. SCI_ANNOTATIONSETSTYLE = 2542,
  1230. //!
  1231. SCI_ANNOTATIONGETSTYLE = 2543,
  1232. //!
  1233. SCI_ANNOTATIONSETSTYLES = 2544,
  1234. //!
  1235. SCI_ANNOTATIONGETSTYLES = 2545,
  1236. //!
  1237. SCI_ANNOTATIONGETLINES = 2546,
  1238. //!
  1239. SCI_ANNOTATIONCLEARALL = 2547,
  1240. //!
  1241. SCI_ANNOTATIONSETVISIBLE = 2548,
  1242. //!
  1243. SCI_ANNOTATIONGETVISIBLE = 2549,
  1244. //!
  1245. SCI_ANNOTATIONSETSTYLEOFFSET = 2550,
  1246. //!
  1247. SCI_ANNOTATIONGETSTYLEOFFSET = 2551,
  1248. //!
  1249. SCI_RELEASEALLEXTENDEDSTYLES = 2552,
  1250. //!
  1251. SCI_ALLOCATEEXTENDEDSTYLES = 2553,
  1252. //!
  1253. SCI_SETEMPTYSELECTION = 2556,
  1254. //!
  1255. SCI_GETMARGINOPTIONS = 2557,
  1256. //!
  1257. SCI_INDICSETOUTLINEALPHA = 2558,
  1258. //!
  1259. SCI_INDICGETOUTLINEALPHA = 2559,
  1260. //!
  1261. SCI_ADDUNDOACTION = 2560,
  1262. //!
  1263. SCI_CHARPOSITIONFROMPOINT = 2561,
  1264. //!
  1265. SCI_CHARPOSITIONFROMPOINTCLOSE = 2562,
  1266. //!
  1267. SCI_SETMULTIPLESELECTION = 2563,
  1268. //!
  1269. SCI_GETMULTIPLESELECTION = 2564,
  1270. //!
  1271. SCI_SETADDITIONALSELECTIONTYPING = 2565,
  1272. //!
  1273. SCI_GETADDITIONALSELECTIONTYPING = 2566,
  1274. //!
  1275. SCI_SETADDITIONALCARETSBLINK = 2567,
  1276. //!
  1277. SCI_GETADDITIONALCARETSBLINK = 2568,
  1278. //!
  1279. SCI_SCROLLRANGE = 2569,
  1280. //!
  1281. SCI_GETSELECTIONS = 2570,
  1282. //!
  1283. SCI_CLEARSELECTIONS = 2571,
  1284. //!
  1285. SCI_SETSELECTION = 2572,
  1286. //!
  1287. SCI_ADDSELECTION = 2573,
  1288. //!
  1289. SCI_SETMAINSELECTION = 2574,
  1290. //!
  1291. SCI_GETMAINSELECTION = 2575,
  1292. //!
  1293. SCI_SETSELECTIONNCARET = 2576,
  1294. //!
  1295. SCI_GETSELECTIONNCARET = 2577,
  1296. //!
  1297. SCI_SETSELECTIONNANCHOR = 2578,
  1298. //!
  1299. SCI_GETSELECTIONNANCHOR = 2579,
  1300. //!
  1301. SCI_SETSELECTIONNCARETVIRTUALSPACE = 2580,
  1302. //!
  1303. SCI_GETSELECTIONNCARETVIRTUALSPACE = 2581,
  1304. //!
  1305. SCI_SETSELECTIONNANCHORVIRTUALSPACE = 2582,
  1306. //!
  1307. SCI_GETSELECTIONNANCHORVIRTUALSPACE = 2583,
  1308. //!
  1309. SCI_SETSELECTIONNSTART = 2584,
  1310. //!
  1311. SCI_GETSELECTIONNSTART = 2585,
  1312. //!
  1313. SCI_SETSELECTIONNEND = 2586,
  1314. //!
  1315. SCI_GETSELECTIONNEND = 2587,
  1316. //!
  1317. SCI_SETRECTANGULARSELECTIONCARET = 2588,
  1318. //!
  1319. SCI_GETRECTANGULARSELECTIONCARET = 2589,
  1320. //!
  1321. SCI_SETRECTANGULARSELECTIONANCHOR = 2590,
  1322. //!
  1323. SCI_GETRECTANGULARSELECTIONANCHOR = 2591,
  1324. //!
  1325. SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2592,
  1326. //!
  1327. SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2593,
  1328. //!
  1329. SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2594,
  1330. //!
  1331. SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2595,
  1332. //!
  1333. SCI_SETVIRTUALSPACEOPTIONS = 2596,
  1334. //!
  1335. SCI_GETVIRTUALSPACEOPTIONS = 2597,
  1336. //!
  1337. SCI_SETRECTANGULARSELECTIONMODIFIER = 2598,
  1338. //!
  1339. SCI_GETRECTANGULARSELECTIONMODIFIER = 2599,
  1340. //!
  1341. SCI_SETADDITIONALSELFORE = 2600,
  1342. //!
  1343. SCI_SETADDITIONALSELBACK = 2601,
  1344. //!
  1345. SCI_SETADDITIONALSELALPHA = 2602,
  1346. //!
  1347. SCI_GETADDITIONALSELALPHA = 2603,
  1348. //!
  1349. SCI_SETADDITIONALCARETFORE = 2604,
  1350. //!
  1351. SCI_GETADDITIONALCARETFORE = 2605,
  1352. //!
  1353. SCI_ROTATESELECTION = 2606,
  1354. //!
  1355. SCI_SWAPMAINANCHORCARET = 2607,
  1356. //!
  1357. SCI_SETADDITIONALCARETSVISIBLE = 2608,
  1358. //!
  1359. SCI_GETADDITIONALCARETSVISIBLE = 2609,
  1360. //!
  1361. SCI_AUTOCGETCURRENTTEXT = 2610,
  1362. //!
  1363. SCI_SETFONTQUALITY = 2611,
  1364. //!
  1365. SCI_GETFONTQUALITY = 2612,
  1366. //!
  1367. SCI_SETFIRSTVISIBLELINE = 2613,
  1368. //!
  1369. SCI_SETMULTIPASTE = 2614,
  1370. //!
  1371. SCI_GETMULTIPASTE = 2615,
  1372. //!
  1373. SCI_GETTAG = 2616,
  1374. //!
  1375. SCI_CHANGELEXERSTATE = 2617,
  1376. //!
  1377. SCI_CONTRACTEDFOLDNEXT = 2618,
  1378. //!
  1379. SCI_VERTICALCENTRECARET = 2619,
  1380. //!
  1381. SCI_MOVESELECTEDLINESUP = 2620,
  1382. //!
  1383. SCI_MOVESELECTEDLINESDOWN = 2621,
  1384. //!
  1385. SCI_SETIDENTIFIER = 2622,
  1386. //!
  1387. SCI_GETIDENTIFIER = 2623,
  1388. //! This message sets the width of an RGBA image specified by a future
  1389. //! call to SCI_MARKERDEFINERGBAIMAGE or SCI_REGISTERRGBAIMAGE.
  1390. //!
  1391. //! \sa SCI_RGBAIMAGESETHEIGHT, SCI_MARKERDEFINERGBAIMAGE,
  1392. //! SCI_REGISTERRGBAIMAGE.
  1393. SCI_RGBAIMAGESETWIDTH = 2624,
  1394. //! This message sets the height of an RGBA image specified by a future
  1395. //! call to SCI_MARKERDEFINERGBAIMAGE or SCI_REGISTERRGBAIMAGE.
  1396. //!
  1397. //! \sa SCI_RGBAIMAGESETWIDTH, SCI_MARKERDEFINERGBAIMAGE,
  1398. //! SCI_REGISTERRGBAIMAGE.
  1399. SCI_RGBAIMAGESETHEIGHT = 2625,
  1400. //! This message sets the symbol used to draw one of the 32 markers to
  1401. //! an RGBA image. RGBA images use the SC_MARK_RGBAIMAGE marker
  1402. //! symbol.
  1403. //! \a wParam is the number of the marker.
  1404. //! \a lParam is a pointer to a QImage instance. Note that in other
  1405. //! ports of Scintilla this is a pointer to raw RGBA image data.
  1406. //!
  1407. //! \sa SCI_MARKERDEFINE, SCI_MARKERDEFINEPIXMAP
  1408. SCI_MARKERDEFINERGBAIMAGE = 2626,
  1409. //! This message takes a copy of an image and registers it so that it
  1410. //! can be refered to by a unique integer identifier.
  1411. //! \a wParam is the image's identifier.
  1412. //! \a lParam is a pointer to a QImage instance. Note that in other
  1413. //! ports of Scintilla this is a pointer to raw RGBA image data.
  1414. //!
  1415. //! \sa SCI_CLEARREGISTEREDIMAGES, SCI_REGISTERIMAGE
  1416. SCI_REGISTERRGBAIMAGE = 2627,
  1417. //!
  1418. SCI_SCROLLTOSTART = 2628,
  1419. //!
  1420. SCI_SCROLLTOEND = 2629,
  1421. //!
  1422. SCI_SETTECHNOLOGY = 2630,
  1423. //!
  1424. SCI_GETTECHNOLOGY = 2631,
  1425. //!
  1426. SCI_CREATELOADER = 2632,
  1427. //!
  1428. SCI_COUNTCHARACTERS = 2633,
  1429. //!
  1430. SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR = 2634,
  1431. //!
  1432. SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR = 2635,
  1433. //!
  1434. SCI_AUTOCSETMULTI = 2636,
  1435. //!
  1436. SCI_AUTOCGETMULTI = 2637,
  1437. //!
  1438. SCI_FINDINDICATORSHOW = 2640,
  1439. //!
  1440. SCI_FINDINDICATORFLASH = 2641,
  1441. //!
  1442. SCI_FINDINDICATORHIDE = 2642,
  1443. //!
  1444. SCI_GETRANGEPOINTER = 2643,
  1445. //!
  1446. SCI_GETGAPPOSITION = 2644,
  1447. //!
  1448. SCI_DELETERANGE = 2645,
  1449. //!
  1450. SCI_GETWORDCHARS = 2646,
  1451. //!
  1452. SCI_GETWHITESPACECHARS = 2647,
  1453. //!
  1454. SCI_SETPUNCTUATIONCHARS = 2648,
  1455. //!
  1456. SCI_GETPUNCTUATIONCHARS = 2649,
  1457. //!
  1458. SCI_GETSELECTIONEMPTY = 2650,
  1459. //!
  1460. SCI_RGBAIMAGESETSCALE = 2651,
  1461. //!
  1462. SCI_VCHOMEDISPLAY = 2652,
  1463. //!
  1464. SCI_VCHOMEDISPLAYEXTEND = 2653,
  1465. //!
  1466. SCI_GETCARETLINEVISIBLEALWAYS = 2654,
  1467. //!
  1468. SCI_SETCARETLINEVISIBLEALWAYS = 2655,
  1469. //!
  1470. SCI_SETLINEENDTYPESALLOWED = 2656,
  1471. //!
  1472. SCI_GETLINEENDTYPESALLOWED = 2657,
  1473. //!
  1474. SCI_GETLINEENDTYPESACTIVE = 2658,
  1475. //!
  1476. SCI_AUTOCSETORDER = 2660,
  1477. //!
  1478. SCI_AUTOCGETORDER = 2661,
  1479. //!
  1480. SCI_FOLDALL = 2662,
  1481. //!
  1482. SCI_SETAUTOMATICFOLD = 2663,
  1483. //!
  1484. SCI_GETAUTOMATICFOLD = 2664,
  1485. //!
  1486. SCI_SETREPRESENTATION = 2665,
  1487. //!
  1488. SCI_GETREPRESENTATION = 2666,
  1489. //!
  1490. SCI_CLEARREPRESENTATION = 2667,
  1491. //!
  1492. SCI_SETMOUSESELECTIONRECTANGULARSWITCH = 2668,
  1493. //!
  1494. SCI_GETMOUSESELECTIONRECTANGULARSWITCH = 2669,
  1495. //!
  1496. SCI_POSITIONRELATIVE = 2670,
  1497. //!
  1498. SCI_DROPSELECTIONN = 2671,
  1499. //!
  1500. SCI_CHANGEINSERTION = 2672,
  1501. //!
  1502. SCI_GETPHASESDRAW = 2673,
  1503. //!
  1504. SCI_SETPHASESDRAW = 2674,
  1505. //!
  1506. SCI_CLEARTABSTOPS = 2675,
  1507. //!
  1508. SCI_ADDTABSTOP = 2676,
  1509. //!
  1510. SCI_GETNEXTTABSTOP = 2677,
  1511. //!
  1512. SCI_GETIMEINTERACTION = 2678,
  1513. //!
  1514. SCI_SETIMEINTERACTION = 2679,
  1515. //!
  1516. SCI_INDICSETHOVERSTYLE = 2680,
  1517. //!
  1518. SCI_INDICGETHOVERSTYLE = 2681,
  1519. //!
  1520. SCI_INDICSETHOVERFORE = 2682,
  1521. //!
  1522. SCI_INDICGETHOVERFORE = 2683,
  1523. //!
  1524. SCI_INDICSETFLAGS = 2684,
  1525. //!
  1526. SCI_INDICGETFLAGS = 2685,
  1527. //!
  1528. SCI_SETTARGETRANGE = 2686,
  1529. //!
  1530. SCI_GETTARGETTEXT = 2687,
  1531. //!
  1532. SCI_MULTIPLESELECTADDNEXT = 2688,
  1533. //!
  1534. SCI_MULTIPLESELECTADDEACH = 2689,
  1535. //!
  1536. SCI_TARGETWHOLEDOCUMENT = 2690,
  1537. //!
  1538. SCI_ISRANGEWORD = 2691,
  1539. //!
  1540. SCI_SETIDLESTYLING = 2692,
  1541. //!
  1542. SCI_GETIDLESTYLING = 2693,
  1543. //!
  1544. SCI_MULTIEDGEADDLINE = 2694,
  1545. //!
  1546. SCI_MULTIEDGECLEARALL = 2695,
  1547. //!
  1548. SCI_SETMOUSEWHEELCAPTURES = 2696,
  1549. //!
  1550. SCI_GETMOUSEWHEELCAPTURES = 2697,
  1551. //!
  1552. SCI_GETTABDRAWMODE = 2698,
  1553. //!
  1554. SCI_SETTABDRAWMODE = 2699,
  1555. //!
  1556. SCI_TOGGLEFOLDSHOWTEXT = 2700,
  1557. //!
  1558. SCI_FOLDDISPLAYTEXTSETSTYLE = 2701,
  1559. //!
  1560. SCI_STARTRECORD = 3001,
  1561. //!
  1562. SCI_STOPRECORD = 3002,
  1563. //! This message sets the number of the lexer to use for syntax
  1564. //! styling.
  1565. //! \a wParam is the number of the lexer and is one of the SCLEX_*
  1566. //! values.
  1567. SCI_SETLEXER = 4001,
  1568. //! This message returns the number of the lexer being used for syntax
  1569. //! styling.
  1570. SCI_GETLEXER = 4002,
  1571. //!
  1572. SCI_COLOURISE = 4003,
  1573. //!
  1574. SCI_SETPROPERTY = 4004,
  1575. //!
  1576. SCI_SETKEYWORDS = 4005,
  1577. //! This message sets the name of the lexer to use for syntax styling.
  1578. //! \a wParam is unused.
  1579. //! \a lParam is the name of the lexer.
  1580. SCI_SETLEXERLANGUAGE = 4006,
  1581. //!
  1582. SCI_LOADLEXERLIBRARY = 4007,
  1583. //!
  1584. SCI_GETPROPERTY = 4008,
  1585. //!
  1586. SCI_GETPROPERTYEXPANDED = 4009,
  1587. //!
  1588. SCI_GETPROPERTYINT = 4010,
  1589. //!
  1590. SCI_GETSTYLEBITSNEEDED = 4011,
  1591. //!
  1592. SCI_GETLEXERLANGUAGE = 4012,
  1593. //!
  1594. SCI_PRIVATELEXERCALL = 4013,
  1595. //!
  1596. SCI_PROPERTYNAMES = 4014,
  1597. //!
  1598. SCI_PROPERTYTYPE = 4015,
  1599. //!
  1600. SCI_DESCRIBEPROPERTY = 4016,
  1601. //!
  1602. SCI_DESCRIBEKEYWORDSETS = 4017,
  1603. //!
  1604. SCI_GETLINEENDTYPESSUPPORTED = 4018,
  1605. //!
  1606. SCI_ALLOCATESUBSTYLES = 4020,
  1607. //!
  1608. SCI_GETSUBSTYLESSTART = 4021,
  1609. //!
  1610. SCI_GETSUBSTYLESLENGTH = 4022,
  1611. //!
  1612. SCI_GETSTYLEFROMSUBSTYLE = 4027,
  1613. //!
  1614. SCI_GETPRIMARYSTYLEFROMSTYLE = 4028,
  1615. //!
  1616. SCI_FREESUBSTYLES = 4023,
  1617. //!
  1618. SCI_SETIDENTIFIERS = 4024,
  1619. //!
  1620. SCI_DISTANCETOSECONDARYSTYLES = 4025,
  1621. //!
  1622. SCI_GETSUBSTYLEBASES = 4026,
  1623. };
  1624. enum
  1625. {
  1626. SC_AC_FILLUP = 1,
  1627. SC_AC_DOUBLECLICK = 2,
  1628. SC_AC_TAB = 3,
  1629. SC_AC_NEWLINE = 4,
  1630. SC_AC_COMMAND = 5,
  1631. };
  1632. enum
  1633. {
  1634. SC_ALPHA_TRANSPARENT = 0,
  1635. SC_ALPHA_OPAQUE = 255,
  1636. SC_ALPHA_NOALPHA = 256
  1637. };
  1638. enum
  1639. {
  1640. SC_CARETSTICKY_OFF = 0,
  1641. SC_CARETSTICKY_ON = 1,
  1642. SC_CARETSTICKY_WHITESPACE = 2
  1643. };
  1644. enum
  1645. {
  1646. SC_EFF_QUALITY_MASK = 0x0f,
  1647. SC_EFF_QUALITY_DEFAULT = 0,
  1648. SC_EFF_QUALITY_NON_ANTIALIASED = 1,
  1649. SC_EFF_QUALITY_ANTIALIASED = 2,
  1650. SC_EFF_QUALITY_LCD_OPTIMIZED = 3
  1651. };
  1652. enum
  1653. {
  1654. SC_IDLESTYLING_NONE = 0,
  1655. SC_IDLESTYLING_TOVISIBLE = 1,
  1656. SC_IDLESTYLING_AFTERVISIBLE = 2,
  1657. SC_IDLESTYLING_ALL = 3,
  1658. };
  1659. enum
  1660. {
  1661. SC_IME_WINDOWED = 0,
  1662. SC_IME_INLINE = 1,
  1663. };
  1664. enum
  1665. {
  1666. SC_MARGINOPTION_NONE = 0x00,
  1667. SC_MARGINOPTION_SUBLINESELECT = 0x01
  1668. };
  1669. enum
  1670. {
  1671. SC_MULTIAUTOC_ONCE = 0,
  1672. SC_MULTIAUTOC_EACH = 1
  1673. };
  1674. enum
  1675. {
  1676. SC_MULTIPASTE_ONCE = 0,
  1677. SC_MULTIPASTE_EACH = 1
  1678. };
  1679. enum
  1680. {
  1681. SC_POPUP_NEVER = 0,
  1682. SC_POPUP_ALL = 1,
  1683. SC_POPUP_TEXT = 2,
  1684. };
  1685. //! This enum defines the different selection modes.
  1686. //!
  1687. //! \sa SCI_GETSELECTIONMODE, SCI_SETSELECTIONMODE
  1688. enum
  1689. {
  1690. SC_SEL_STREAM = 0,
  1691. SC_SEL_RECTANGLE = 1,
  1692. SC_SEL_LINES = 2,
  1693. SC_SEL_THIN = 3
  1694. };
  1695. enum
  1696. {
  1697. SC_STATUS_OK = 0,
  1698. SC_STATUS_FAILURE = 1,
  1699. SC_STATUS_BADALLOC = 2,
  1700. SC_STATUS_WARN_START = 1000,
  1701. SC_STATUS_WARNREGEX = 1001,
  1702. };
  1703. enum
  1704. {
  1705. SC_TYPE_BOOLEAN = 0,
  1706. SC_TYPE_INTEGER = 1,
  1707. SC_TYPE_STRING = 2
  1708. };
  1709. enum
  1710. {
  1711. SC_UPDATE_CONTENT = 0x01,
  1712. SC_UPDATE_SELECTION = 0x02,
  1713. SC_UPDATE_V_SCROLL = 0x04,
  1714. SC_UPDATE_H_SCROLL = 0x08
  1715. };
  1716. enum
  1717. {
  1718. SC_WRAPVISUALFLAG_NONE = 0x0000,
  1719. SC_WRAPVISUALFLAG_END = 0x0001,
  1720. SC_WRAPVISUALFLAG_START = 0x0002,
  1721. SC_WRAPVISUALFLAG_MARGIN = 0x0004
  1722. };
  1723. enum
  1724. {
  1725. SC_WRAPVISUALFLAGLOC_DEFAULT = 0x0000,
  1726. SC_WRAPVISUALFLAGLOC_END_BY_TEXT = 0x0001,
  1727. SC_WRAPVISUALFLAGLOC_START_BY_TEXT = 0x0002
  1728. };
  1729. enum
  1730. {
  1731. SCTD_LONGARROW = 0,
  1732. SCTD_STRIKEOUT = 1,
  1733. };
  1734. enum
  1735. {
  1736. SCVS_NONE = 0,
  1737. SCVS_RECTANGULARSELECTION = 1,
  1738. SCVS_USERACCESSIBLE = 2,
  1739. SCVS_NOWRAPLINESTART = 4,
  1740. };
  1741. enum
  1742. {
  1743. SCWS_INVISIBLE = 0,
  1744. SCWS_VISIBLEALWAYS = 1,
  1745. SCWS_VISIBLEAFTERINDENT = 2,
  1746. SCWS_VISIBLEONLYININDENT = 3,
  1747. };
  1748. enum
  1749. {
  1750. SC_EOL_CRLF = 0,
  1751. SC_EOL_CR = 1,
  1752. SC_EOL_LF = 2
  1753. };
  1754. enum
  1755. {
  1756. SC_CP_DBCS = 1,
  1757. SC_CP_UTF8 = 65001
  1758. };
  1759. //! This enum defines the different marker symbols.
  1760. //!
  1761. //! \sa SCI_MARKERDEFINE
  1762. enum
  1763. {
  1764. //! A circle.
  1765. SC_MARK_CIRCLE = 0,
  1766. //! A rectangle.
  1767. SC_MARK_ROUNDRECT = 1,
  1768. //! A triangle pointing to the right.
  1769. SC_MARK_ARROW = 2,
  1770. //! A smaller rectangle.
  1771. SC_MARK_SMALLRECT = 3,
  1772. //! An arrow pointing to the right.
  1773. SC_MARK_SHORTARROW = 4,
  1774. //! An invisible marker that allows code to track the movement
  1775. //! of lines.
  1776. SC_MARK_EMPTY = 5,
  1777. //! A triangle pointing down.
  1778. SC_MARK_ARROWDOWN = 6,
  1779. //! A drawn minus sign.
  1780. SC_MARK_MINUS = 7,
  1781. //! A drawn plus sign.
  1782. SC_MARK_PLUS = 8,
  1783. //! A vertical line drawn in the background colour.
  1784. SC_MARK_VLINE = 9,
  1785. //! A bottom left corner drawn in the background colour.
  1786. SC_MARK_LCORNER = 10,
  1787. //! A vertical line with a centre right horizontal line drawn
  1788. //! in the background colour.
  1789. SC_MARK_TCORNER = 11,
  1790. //! A drawn plus sign in a box.
  1791. SC_MARK_BOXPLUS = 12,
  1792. //! A drawn plus sign in a connected box.
  1793. SC_MARK_BOXPLUSCONNECTED = 13,
  1794. //! A drawn minus sign in a box.
  1795. SC_MARK_BOXMINUS = 14,
  1796. //! A drawn minus sign in a connected box.
  1797. SC_MARK_BOXMINUSCONNECTED = 15,
  1798. //! A rounded bottom left corner drawn in the background
  1799. //! colour.
  1800. SC_MARK_LCORNERCURVE = 16,
  1801. //! A vertical line with a centre right curved line drawn in
  1802. //! the background colour.
  1803. SC_MARK_TCORNERCURVE = 17,
  1804. //! A drawn plus sign in a circle.
  1805. SC_MARK_CIRCLEPLUS = 18,
  1806. //! A drawn plus sign in a connected box.
  1807. SC_MARK_CIRCLEPLUSCONNECTED = 19,
  1808. //! A drawn minus sign in a circle.
  1809. SC_MARK_CIRCLEMINUS = 20,
  1810. //! A drawn minus sign in a connected circle.
  1811. SC_MARK_CIRCLEMINUSCONNECTED = 21,
  1812. //! No symbol is drawn but the line is drawn with the same background
  1813. //! color as the marker's.
  1814. SC_MARK_BACKGROUND = 22,
  1815. //! Three drawn dots.
  1816. SC_MARK_DOTDOTDOT = 23,
  1817. //! Three drawn arrows pointing right.
  1818. SC_MARK_ARROWS = 24,
  1819. //! An XPM format pixmap.
  1820. SC_MARK_PIXMAP = 25,
  1821. //! A full rectangle (ie. the margin background) using the marker's
  1822. //! background color.
  1823. SC_MARK_FULLRECT = 26,
  1824. //! A left rectangle (ie. the left part of the margin background) using
  1825. //! the marker's background color.
  1826. SC_MARK_LEFTRECT = 27,
  1827. //! The value is available for plugins to use.
  1828. SC_MARK_AVAILABLE = 28,
  1829. //! The line is underlined using the marker's background color.
  1830. SC_MARK_UNDERLINE = 29,
  1831. //! A RGBA format image.
  1832. SC_MARK_RGBAIMAGE = 30,
  1833. //! A bookmark.
  1834. SC_MARK_BOOKMARK = 31,
  1835. //! Characters can be used as symbols by adding this to the ASCII value
  1836. //! of the character.
  1837. SC_MARK_CHARACTER = 10000
  1838. };
  1839. enum
  1840. {
  1841. SC_MARKNUM_FOLDEREND = 25,
  1842. SC_MARKNUM_FOLDEROPENMID = 26,
  1843. SC_MARKNUM_FOLDERMIDTAIL = 27,
  1844. SC_MARKNUM_FOLDERTAIL = 28,
  1845. SC_MARKNUM_FOLDERSUB = 29,
  1846. SC_MARKNUM_FOLDER = 30,
  1847. SC_MARKNUM_FOLDEROPEN = 31,
  1848. SC_MASK_FOLDERS = 0xfe000000
  1849. };
  1850. //! This enum defines what can be displayed in a margin.
  1851. //!
  1852. //! \sa SCI_GETMARGINTYPEN, SCI_SETMARGINTYPEN
  1853. enum
  1854. {
  1855. //! The margin can display symbols. Note that all margins can display
  1856. //! symbols.
  1857. SC_MARGIN_SYMBOL = 0,
  1858. //! The margin will display line numbers.
  1859. SC_MARGIN_NUMBER = 1,
  1860. //! The margin's background color will be set to the default background
  1861. //! color.
  1862. SC_MARGIN_BACK = 2,
  1863. //! The margin's background color will be set to the default foreground
  1864. //! color.
  1865. SC_MARGIN_FORE = 3,
  1866. //! The margin will display text.
  1867. SC_MARGIN_TEXT = 4,
  1868. //! The margin will display right justified text.
  1869. SC_MARGIN_RTEXT = 5,
  1870. //! The margin's background color will be set to the color set by
  1871. //! SCI_SETMARGINBACKN.
  1872. SC_MARGIN_COLOUR = 6,
  1873. };
  1874. enum
  1875. {
  1876. STYLE_DEFAULT = 32,
  1877. STYLE_LINENUMBER = 33,
  1878. STYLE_BRACELIGHT = 34,
  1879. STYLE_BRACEBAD = 35,
  1880. STYLE_CONTROLCHAR = 36,
  1881. STYLE_INDENTGUIDE = 37,
  1882. STYLE_CALLTIP = 38,
  1883. STYLE_FOLDDISPLAYTEXT = 39,
  1884. STYLE_LASTPREDEFINED = 39,
  1885. STYLE_MAX = 255
  1886. };
  1887. enum
  1888. {
  1889. SC_CHARSET_ANSI = 0,
  1890. SC_CHARSET_DEFAULT = 1,
  1891. SC_CHARSET_BALTIC = 186,
  1892. SC_CHARSET_CHINESEBIG5 = 136,
  1893. SC_CHARSET_EASTEUROPE = 238,
  1894. SC_CHARSET_GB2312 = 134,
  1895. SC_CHARSET_GREEK = 161,
  1896. SC_CHARSET_HANGUL = 129,
  1897. SC_CHARSET_MAC = 77,
  1898. SC_CHARSET_OEM = 255,
  1899. SC_CHARSET_RUSSIAN = 204,
  1900. SC_CHARSET_OEM866 = 866,
  1901. SC_CHARSET_CYRILLIC = 1251,
  1902. SC_CHARSET_SHIFTJIS = 128,
  1903. SC_CHARSET_SYMBOL = 2,
  1904. SC_CHARSET_TURKISH = 162,
  1905. SC_CHARSET_JOHAB = 130,
  1906. SC_CHARSET_HEBREW = 177,
  1907. SC_CHARSET_ARABIC = 178,
  1908. SC_CHARSET_VIETNAMESE = 163,
  1909. SC_CHARSET_THAI = 222,
  1910. SC_CHARSET_8859_15 = 1000
  1911. };
  1912. enum
  1913. {
  1914. SC_CASE_MIXED = 0,
  1915. SC_CASE_UPPER = 1,
  1916. SC_CASE_LOWER = 2,
  1917. SC_CASE_CAMEL = 3,
  1918. };
  1919. //! This enum defines the different indentation guide views.
  1920. //!
  1921. //! \sa SCI_GETINDENTATIONGUIDES, SCI_SETINDENTATIONGUIDES
  1922. enum
  1923. {
  1924. //! No indentation guides are shown.
  1925. SC_IV_NONE = 0,
  1926. //! Indentation guides are shown inside real indentation white space.
  1927. SC_IV_REAL = 1,
  1928. //! Indentation guides are shown beyond the actual indentation up to
  1929. //! the level of the next non-empty line. If the previous non-empty
  1930. //! line was a fold header then indentation guides are shown for one
  1931. //! more level of indent than that line. This setting is good for
  1932. //! Python.
  1933. SC_IV_LOOKFORWARD = 2,
  1934. //! Indentation guides are shown beyond the actual indentation up to
  1935. //! the level of the next non-empty line or previous non-empty line
  1936. //! whichever is the greater. This setting is good for most languages.
  1937. SC_IV_LOOKBOTH = 3
  1938. };
  1939. enum
  1940. {
  1941. INDIC_PLAIN = 0,
  1942. INDIC_SQUIGGLE = 1,
  1943. INDIC_TT = 2,
  1944. INDIC_DIAGONAL = 3,
  1945. INDIC_STRIKE = 4,
  1946. INDIC_HIDDEN = 5,
  1947. INDIC_BOX = 6,
  1948. INDIC_ROUNDBOX = 7,
  1949. INDIC_STRAIGHTBOX = 8,
  1950. INDIC_DASH = 9,
  1951. INDIC_DOTS = 10,
  1952. INDIC_SQUIGGLELOW = 11,
  1953. INDIC_DOTBOX = 12,
  1954. INDIC_SQUIGGLEPIXMAP = 13,
  1955. INDIC_COMPOSITIONTHICK = 14,
  1956. INDIC_COMPOSITIONTHIN = 15,
  1957. INDIC_FULLBOX = 16,
  1958. INDIC_TEXTFORE = 17,
  1959. INDIC_POINT = 18,
  1960. INDIC_POINTCHARACTER = 19,
  1961. INDIC_IME = 32,
  1962. INDIC_IME_MAX = 35,
  1963. INDIC_CONTAINER = 8,
  1964. INDIC_MAX = 35,
  1965. INDIC0_MASK = 0x20,
  1966. INDIC1_MASK = 0x40,
  1967. INDIC2_MASK = 0x80,
  1968. INDICS_MASK = 0xe0,
  1969. SC_INDICVALUEBIT = 0x01000000,
  1970. SC_INDICVALUEMASK = 0x00ffffff,
  1971. SC_INDICFLAG_VALUEBEFORE = 1,
  1972. };
  1973. enum
  1974. {
  1975. SC_PRINT_NORMAL = 0,
  1976. SC_PRINT_INVERTLIGHT = 1,
  1977. SC_PRINT_BLACKONWHITE = 2,
  1978. SC_PRINT_COLOURONWHITE = 3,
  1979. SC_PRINT_COLOURONWHITEDEFAULTBG = 4
  1980. };
  1981. enum
  1982. {
  1983. SCFIND_WHOLEWORD = 2,
  1984. SCFIND_MATCHCASE = 4,
  1985. SCFIND_WORDSTART = 0x00100000,
  1986. SCFIND_REGEXP = 0x00200000,
  1987. SCFIND_POSIX = 0x00400000,
  1988. SCFIND_CXX11REGEX = 0x00800000,
  1989. };
  1990. enum
  1991. {
  1992. SC_FOLDDISPLAYTEXT_HIDDEN = 0,
  1993. SC_FOLDDISPLAYTEXT_STANDARD = 1,
  1994. SC_FOLDDISPLAYTEXT_BOXED = 2,
  1995. };
  1996. enum
  1997. {
  1998. SC_FOLDLEVELBASE = 0x00400,
  1999. SC_FOLDLEVELWHITEFLAG = 0x01000,
  2000. SC_FOLDLEVELHEADERFLAG = 0x02000,
  2001. SC_FOLDLEVELNUMBERMASK = 0x00fff
  2002. };
  2003. enum
  2004. {
  2005. SC_FOLDFLAG_LINEBEFORE_EXPANDED = 0x0002,
  2006. SC_FOLDFLAG_LINEBEFORE_CONTRACTED = 0x0004,
  2007. SC_FOLDFLAG_LINEAFTER_EXPANDED = 0x0008,
  2008. SC_FOLDFLAG_LINEAFTER_CONTRACTED = 0x0010,
  2009. SC_FOLDFLAG_LEVELNUMBERS = 0x0040,
  2010. SC_FOLDFLAG_LINESTATE = 0x0080,
  2011. };
  2012. enum
  2013. {
  2014. SC_LINE_END_TYPE_DEFAULT = 0,
  2015. SC_LINE_END_TYPE_UNICODE = 1,
  2016. };
  2017. enum
  2018. {
  2019. SC_TIME_FOREVER = 10000000
  2020. };
  2021. enum
  2022. {
  2023. SC_WRAP_NONE = 0,
  2024. SC_WRAP_WORD = 1,
  2025. SC_WRAP_CHAR = 2,
  2026. SC_WRAP_WHITESPACE = 3,
  2027. };
  2028. enum
  2029. {
  2030. SC_WRAPINDENT_FIXED = 0,
  2031. SC_WRAPINDENT_SAME = 1,
  2032. SC_WRAPINDENT_INDENT = 2
  2033. };
  2034. enum
  2035. {
  2036. SC_CACHE_NONE = 0,
  2037. SC_CACHE_CARET = 1,
  2038. SC_CACHE_PAGE = 2,
  2039. SC_CACHE_DOCUMENT = 3
  2040. };
  2041. enum
  2042. {
  2043. SC_PHASES_ONE = 0,
  2044. SC_PHASES_TWO = 1,
  2045. SC_PHASES_MULTIPLE = 2,
  2046. };
  2047. enum
  2048. {
  2049. ANNOTATION_HIDDEN = 0,
  2050. ANNOTATION_STANDARD = 1,
  2051. ANNOTATION_BOXED = 2,
  2052. ANNOTATION_INDENTED = 3,
  2053. };
  2054. enum
  2055. {
  2056. EDGE_NONE = 0,
  2057. EDGE_LINE = 1,
  2058. EDGE_BACKGROUND = 2,
  2059. EDGE_MULTILINE = 3,
  2060. };
  2061. enum
  2062. {
  2063. SC_CURSORNORMAL = -1,
  2064. SC_CURSORARROW = 2,
  2065. SC_CURSORWAIT = 4,
  2066. SC_CURSORREVERSEARROW = 7
  2067. };
  2068. enum
  2069. {
  2070. UNDO_MAY_COALESCE = 1
  2071. };
  2072. enum
  2073. {
  2074. VISIBLE_SLOP = 0x01,
  2075. VISIBLE_STRICT = 0x04
  2076. };
  2077. enum
  2078. {
  2079. CARET_SLOP = 0x01,
  2080. CARET_STRICT = 0x04,
  2081. CARET_JUMPS = 0x10,
  2082. CARET_EVEN = 0x08
  2083. };
  2084. enum
  2085. {
  2086. CARETSTYLE_INVISIBLE = 0,
  2087. CARETSTYLE_LINE = 1,
  2088. CARETSTYLE_BLOCK = 2
  2089. };
  2090. enum
  2091. {
  2092. SC_MOD_INSERTTEXT = 0x1,
  2093. SC_MOD_DELETETEXT = 0x2,
  2094. SC_MOD_CHANGESTYLE = 0x4,
  2095. SC_MOD_CHANGEFOLD = 0x8,
  2096. SC_PERFORMED_USER = 0x10,
  2097. SC_PERFORMED_UNDO = 0x20,
  2098. SC_PERFORMED_REDO = 0x40,
  2099. SC_MULTISTEPUNDOREDO = 0x80,
  2100. SC_LASTSTEPINUNDOREDO = 0x100,
  2101. SC_MOD_CHANGEMARKER = 0x200,
  2102. SC_MOD_BEFOREINSERT = 0x400,
  2103. SC_MOD_BEFOREDELETE = 0x800,
  2104. SC_MULTILINEUNDOREDO = 0x1000,
  2105. SC_STARTACTION = 0x2000,
  2106. SC_MOD_CHANGEINDICATOR = 0x4000,
  2107. SC_MOD_CHANGELINESTATE = 0x8000,
  2108. SC_MOD_CHANGEMARGIN = 0x10000,
  2109. SC_MOD_CHANGEANNOTATION = 0x20000,
  2110. SC_MOD_CONTAINER = 0x40000,
  2111. SC_MOD_LEXERSTATE = 0x80000,
  2112. SC_MOD_INSERTCHECK = 0x100000,
  2113. SC_MOD_CHANGETABSTOPS = 0x200000,
  2114. SC_MODEVENTMASKALL = 0x3fffff
  2115. };
  2116. enum
  2117. {
  2118. SCK_DOWN = 300,
  2119. SCK_UP = 301,
  2120. SCK_LEFT = 302,
  2121. SCK_RIGHT = 303,
  2122. SCK_HOME = 304,
  2123. SCK_END = 305,
  2124. SCK_PRIOR = 306,
  2125. SCK_NEXT = 307,
  2126. SCK_DELETE = 308,
  2127. SCK_INSERT = 309,
  2128. SCK_ESCAPE = 7,
  2129. SCK_BACK = 8,
  2130. SCK_TAB = 9,
  2131. SCK_RETURN = 13,
  2132. SCK_ADD = 310,
  2133. SCK_SUBTRACT = 311,
  2134. SCK_DIVIDE = 312,
  2135. SCK_WIN = 313,
  2136. SCK_RWIN = 314,
  2137. SCK_MENU = 315
  2138. };
  2139. //! This enum defines the different modifier keys.
  2140. enum
  2141. {
  2142. //! No modifier key.
  2143. SCMOD_NORM = 0,
  2144. //! Shift key.
  2145. SCMOD_SHIFT = 1,
  2146. //! Control key (the Command key on OS/X, the Ctrl key on other
  2147. //! platforms).
  2148. SCMOD_CTRL = 2,
  2149. //! Alt key.
  2150. SCMOD_ALT = 4,
  2151. //! This is the same as SCMOD_META on all platforms.
  2152. SCMOD_SUPER = 8,
  2153. //! Meta key (the Ctrl key on OS/X, the Windows key on other
  2154. //! platforms).
  2155. SCMOD_META = 16
  2156. };
  2157. //! This enum defines the different language lexers.
  2158. //!
  2159. //! \sa SCI_GETLEXER, SCI_SETLEXER
  2160. enum
  2161. {
  2162. //! No lexer is selected and the SCN_STYLENEEDED signal is emitted so
  2163. //! that the application can style the text as needed. This is the
  2164. //! default.
  2165. SCLEX_CONTAINER = 0,
  2166. //! Select the null lexer that does no syntax styling.
  2167. SCLEX_NULL = 1,
  2168. //! Select the Python lexer.
  2169. SCLEX_PYTHON = 2,
  2170. //! Select the C++ lexer.
  2171. SCLEX_CPP = 3,
  2172. //! Select the HTML lexer.
  2173. SCLEX_HTML = 4,
  2174. //! Select the XML lexer.
  2175. SCLEX_XML = 5,
  2176. //! Select the Perl lexer.
  2177. SCLEX_PERL = 6,
  2178. //! Select the SQL lexer.
  2179. SCLEX_SQL = 7,
  2180. //! Select the Visual Basic lexer.
  2181. SCLEX_VB = 8,
  2182. //! Select the lexer for properties style files.
  2183. SCLEX_PROPERTIES = 9,
  2184. //! Select the lexer for error list style files.
  2185. SCLEX_ERRORLIST = 10,
  2186. //! Select the Makefile lexer.
  2187. SCLEX_MAKEFILE = 11,
  2188. //! Select the Windows batch file lexer.
  2189. SCLEX_BATCH = 12,
  2190. //! Select the LaTex lexer.
  2191. SCLEX_LATEX = 14,
  2192. //! Select the Lua lexer.
  2193. SCLEX_LUA = 15,
  2194. //! Select the lexer for diff output.
  2195. SCLEX_DIFF = 16,
  2196. //! Select the lexer for Apache configuration files.
  2197. SCLEX_CONF = 17,
  2198. //! Select the Pascal lexer.
  2199. SCLEX_PASCAL = 18,
  2200. //! Select the Avenue lexer.
  2201. SCLEX_AVE = 19,
  2202. //! Select the Ada lexer.
  2203. SCLEX_ADA = 20,
  2204. //! Select the Lisp lexer.
  2205. SCLEX_LISP = 21,
  2206. //! Select the Ruby lexer.
  2207. SCLEX_RUBY = 22,
  2208. //! Select the Eiffel lexer.
  2209. SCLEX_EIFFEL = 23,
  2210. //! Select the Eiffel lexer folding at keywords.
  2211. SCLEX_EIFFELKW = 24,
  2212. //! Select the Tcl lexer.
  2213. SCLEX_TCL = 25,
  2214. //! Select the lexer for nnCron files.
  2215. SCLEX_NNCRONTAB = 26,
  2216. //! Select the Bullant lexer.
  2217. SCLEX_BULLANT = 27,
  2218. //! Select the VBScript lexer.
  2219. SCLEX_VBSCRIPT = 28,
  2220. //! Select the ASP lexer.
  2221. SCLEX_ASP = SCLEX_HTML,
  2222. //! Select the PHP lexer.
  2223. SCLEX_PHP = SCLEX_HTML,
  2224. //! Select the Baan lexer.
  2225. SCLEX_BAAN = 31,
  2226. //! Select the Matlab lexer.
  2227. SCLEX_MATLAB = 32,
  2228. //! Select the Scriptol lexer.
  2229. SCLEX_SCRIPTOL = 33,
  2230. //! Select the assembler lexer (';' comment character).
  2231. SCLEX_ASM = 34,
  2232. //! Select the C++ lexer with case insensitive keywords.
  2233. SCLEX_CPPNOCASE = 35,
  2234. //! Select the FORTRAN lexer.
  2235. SCLEX_FORTRAN = 36,
  2236. //! Select the FORTRAN77 lexer.
  2237. SCLEX_F77 = 37,
  2238. //! Select the CSS lexer.
  2239. SCLEX_CSS = 38,
  2240. //! Select the POV lexer.
  2241. SCLEX_POV = 39,
  2242. //! Select the Basser Lout typesetting language lexer.
  2243. SCLEX_LOUT = 40,
  2244. //! Select the EScript lexer.
  2245. SCLEX_ESCRIPT = 41,
  2246. //! Select the PostScript lexer.
  2247. SCLEX_PS = 42,
  2248. //! Select the NSIS lexer.
  2249. SCLEX_NSIS = 43,
  2250. //! Select the MMIX assembly language lexer.
  2251. SCLEX_MMIXAL = 44,
  2252. //! Select the Clarion lexer.
  2253. SCLEX_CLW = 45,
  2254. //! Select the Clarion lexer with case insensitive keywords.
  2255. SCLEX_CLWNOCASE = 46,
  2256. //! Select the MPT text log file lexer.
  2257. SCLEX_LOT = 47,
  2258. //! Select the YAML lexer.
  2259. SCLEX_YAML = 48,
  2260. //! Select the TeX lexer.
  2261. SCLEX_TEX = 49,
  2262. //! Select the Metapost lexer.
  2263. SCLEX_METAPOST = 50,
  2264. //! Select the PowerBASIC lexer.
  2265. SCLEX_POWERBASIC = 51,
  2266. //! Select the Forth lexer.
  2267. SCLEX_FORTH = 52,
  2268. //! Select the Erlang lexer.
  2269. SCLEX_ERLANG = 53,
  2270. //! Select the Octave lexer.
  2271. SCLEX_OCTAVE = 54,
  2272. //! Select the MS SQL lexer.
  2273. SCLEX_MSSQL = 55,
  2274. //! Select the Verilog lexer.
  2275. SCLEX_VERILOG = 56,
  2276. //! Select the KIX-Scripts lexer.
  2277. SCLEX_KIX = 57,
  2278. //! Select the Gui4Cli lexer.
  2279. SCLEX_GUI4CLI = 58,
  2280. //! Select the Specman E lexer.
  2281. SCLEX_SPECMAN = 59,
  2282. //! Select the AutoIt3 lexer.
  2283. SCLEX_AU3 = 60,
  2284. //! Select the APDL lexer.
  2285. SCLEX_APDL = 61,
  2286. //! Select the Bash lexer.
  2287. SCLEX_BASH = 62,
  2288. //! Select the ASN.1 lexer.
  2289. SCLEX_ASN1 = 63,
  2290. //! Select the VHDL lexer.
  2291. SCLEX_VHDL = 64,
  2292. //! Select the Caml lexer.
  2293. SCLEX_CAML = 65,
  2294. //! Select the BlitzBasic lexer.
  2295. SCLEX_BLITZBASIC = 66,
  2296. //! Select the PureBasic lexer.
  2297. SCLEX_PUREBASIC = 67,
  2298. //! Select the Haskell lexer.
  2299. SCLEX_HASKELL = 68,
  2300. //! Select the PHPScript lexer.
  2301. SCLEX_PHPSCRIPT = 69,
  2302. //! Select the TADS3 lexer.
  2303. SCLEX_TADS3 = 70,
  2304. //! Select the REBOL lexer.
  2305. SCLEX_REBOL = 71,
  2306. //! Select the Smalltalk lexer.
  2307. SCLEX_SMALLTALK = 72,
  2308. //! Select the FlagShip lexer.
  2309. SCLEX_FLAGSHIP = 73,
  2310. //! Select the Csound lexer.
  2311. SCLEX_CSOUND = 74,
  2312. //! Select the FreeBasic lexer.
  2313. SCLEX_FREEBASIC = 75,
  2314. //! Select the InnoSetup lexer.
  2315. SCLEX_INNOSETUP = 76,
  2316. //! Select the Opal lexer.
  2317. SCLEX_OPAL = 77,
  2318. //! Select the Spice lexer.
  2319. SCLEX_SPICE = 78,
  2320. //! Select the D lexer.
  2321. SCLEX_D = 79,
  2322. //! Select the CMake lexer.
  2323. SCLEX_CMAKE = 80,
  2324. //! Select the GAP lexer.
  2325. SCLEX_GAP = 81,
  2326. //! Select the PLM lexer.
  2327. SCLEX_PLM = 82,
  2328. //! Select the Progress lexer.
  2329. SCLEX_PROGRESS = 83,
  2330. //! Select the Abaqus lexer.
  2331. SCLEX_ABAQUS = 84,
  2332. //! Select the Asymptote lexer.
  2333. SCLEX_ASYMPTOTE = 85,
  2334. //! Select the R lexer.
  2335. SCLEX_R = 86,
  2336. //! Select the MagikSF lexer.
  2337. SCLEX_MAGIK = 87,
  2338. //! Select the PowerShell lexer.
  2339. SCLEX_POWERSHELL = 88,
  2340. //! Select the MySQL lexer.
  2341. SCLEX_MYSQL = 89,
  2342. //! Select the gettext .po file lexer.
  2343. SCLEX_PO = 90,
  2344. //! Select the TAL lexer.
  2345. SCLEX_TAL = 91,
  2346. //! Select the COBOL lexer.
  2347. SCLEX_COBOL = 92,
  2348. //! Select the TACL lexer.
  2349. SCLEX_TACL = 93,
  2350. //! Select the Sorcus lexer.
  2351. SCLEX_SORCUS = 94,
  2352. //! Select the PowerPro lexer.
  2353. SCLEX_POWERPRO = 95,
  2354. //! Select the Nimrod lexer.
  2355. SCLEX_NIMROD = 96,
  2356. //! Select the SML lexer.
  2357. SCLEX_SML = 97,
  2358. //! Select the Markdown lexer.
  2359. SCLEX_MARKDOWN = 98,
  2360. //! Select the txt2tags lexer.
  2361. SCLEX_TXT2TAGS = 99,
  2362. //! Select the 68000 assembler lexer.
  2363. SCLEX_A68K = 100,
  2364. //! Select the Modula 3 lexer.
  2365. SCLEX_MODULA = 101,
  2366. //! Select the CoffeeScript lexer.
  2367. SCLEX_COFFEESCRIPT = 102,
  2368. //! Select the Take Command lexer.
  2369. SCLEX_TCMD = 103,
  2370. //! Select the AviSynth lexer.
  2371. SCLEX_AVS = 104,
  2372. //! Select the ECL lexer.
  2373. SCLEX_ECL = 105,
  2374. //! Select the OScript lexer.
  2375. SCLEX_OSCRIPT = 106,
  2376. //! Select the Visual Prolog lexer.
  2377. SCLEX_VISUALPROLOG = 107,
  2378. //! Select the Literal Haskell lexer.
  2379. SCLEX_LITERATEHASKELL = 108,
  2380. //! Select the Structured Text lexer.
  2381. SCLEX_STTXT = 109,
  2382. //! Select the KVIrc lexer.
  2383. SCLEX_KVIRC = 110,
  2384. //! Select the Rust lexer.
  2385. SCLEX_RUST = 111,
  2386. //! Select the MSC Nastran DMAP lexer.
  2387. SCLEX_DMAP = 112,
  2388. //! Select the assembler lexer ('#' comment character).
  2389. SCLEX_AS = 113,
  2390. //! Select the DMIS lexer.
  2391. SCLEX_DMIS = 114,
  2392. //! Select the lexer for Windows registry files.
  2393. SCLEX_REGISTRY = 115,
  2394. //! Select the BibTex lexer.
  2395. SCLEX_BIBTEX = 116,
  2396. //! Select the Motorola S-Record hex lexer.
  2397. SCLEX_SREC = 117,
  2398. //! Select the Intel hex lexer.
  2399. SCLEX_IHEX = 118,
  2400. //! Select the Tektronix extended hex lexer.
  2401. SCLEX_TEHEX = 119,
  2402. //! Select the JSON hex lexer.
  2403. SCLEX_JSON = 120,
  2404. //! Select the EDIFACT lexer.
  2405. SCLEX_EDIFACT = 121,
  2406. };
  2407. enum
  2408. {
  2409. SC_WEIGHT_NORMAL = 400,
  2410. SC_WEIGHT_SEMIBOLD = 600,
  2411. SC_WEIGHT_BOLD = 700,
  2412. };
  2413. enum
  2414. {
  2415. SC_TECHNOLOGY_DEFAULT = 0,
  2416. SC_TECHNOLOGY_DIRECTWRITE = 1,
  2417. SC_TECHNOLOGY_DIRECTWRITERETAIN = 2,
  2418. SC_TECHNOLOGY_DIRECTWRITEDC = 3,
  2419. };
  2420. enum
  2421. {
  2422. SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE = 0,
  2423. SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE = 1,
  2424. };
  2425. enum
  2426. {
  2427. SC_FONT_SIZE_MULTIPLIER = 100,
  2428. };
  2429. enum
  2430. {
  2431. SC_FOLDACTION_CONTRACT = 0,
  2432. SC_FOLDACTION_EXPAND = 1,
  2433. SC_FOLDACTION_TOGGLE = 2,
  2434. };
  2435. enum
  2436. {
  2437. SC_AUTOMATICFOLD_SHOW = 0x0001,
  2438. SC_AUTOMATICFOLD_CLICK = 0x0002,
  2439. SC_AUTOMATICFOLD_CHANGE = 0x0004,
  2440. };
  2441. enum
  2442. {
  2443. SC_ORDER_PRESORTED = 0,
  2444. SC_ORDER_PERFORMSORT = 1,
  2445. SC_ORDER_CUSTOM = 2,
  2446. };
  2447. //! Construct an empty QsciScintillaBase with parent \a parent.
  2448. explicit QsciScintillaBase(QWidget *parent = 0);
  2449. //! Destroys the QsciScintillaBase instance.
  2450. virtual ~QsciScintillaBase();
  2451. //! Returns a pointer to a QsciScintillaBase instance, or 0 if there isn't
  2452. //! one. This can be used by the higher level API to send messages that
  2453. //! aren't associated with a particular instance.
  2454. static QsciScintillaBase *pool();
  2455. //! Replaces the existing horizontal scroll bar with \a scrollBar. The
  2456. //! existing scroll bar is deleted. This should be called instead of
  2457. //! QAbstractScrollArea::setHorizontalScrollBar().
  2458. void replaceHorizontalScrollBar(QScrollBar *scrollBar);
  2459. //! Replaces the existing vertical scroll bar with \a scrollBar. The
  2460. //! existing scroll bar is deleted. This should be called instead of
  2461. //! QAbstractScrollArea::setHorizontalScrollBar().
  2462. void replaceVerticalScrollBar(QScrollBar *scrollBar);
  2463. //! Send the Scintilla message \a msg with the optional parameters \a
  2464. //! wParam and \a lParam.
  2465. long SendScintilla(unsigned int msg, unsigned long wParam = 0,
  2466. long lParam = 0) const;
  2467. //! \overload
  2468. long SendScintilla(unsigned int msg, unsigned long wParam,
  2469. void *lParam) const;
  2470. //! \overload
  2471. long SendScintilla(unsigned int msg, unsigned long wParam,
  2472. const char *lParam) const;
  2473. //! \overload
  2474. long SendScintilla(unsigned int msg, const char *lParam) const;
  2475. //! \overload
  2476. long SendScintilla(unsigned int msg, const char *wParam,
  2477. const char *lParam) const;
  2478. //! \overload
  2479. long SendScintilla(unsigned int msg, long wParam) const;
  2480. //! \overload
  2481. long SendScintilla(unsigned int msg, int wParam) const;
  2482. //! \overload
  2483. long SendScintilla(unsigned int msg, long cpMin, long cpMax,
  2484. char *lpstrText) const;
  2485. //! \overload
  2486. long SendScintilla(unsigned int msg, unsigned long wParam,
  2487. const QColor &col) const;
  2488. //! \overload
  2489. long SendScintilla(unsigned int msg, const QColor &col) const;
  2490. //! \overload
  2491. long SendScintilla(unsigned int msg, unsigned long wParam, QPainter *hdc,
  2492. const QRect &rc, long cpMin, long cpMax) const;
  2493. //! \overload
  2494. long SendScintilla(unsigned int msg, unsigned long wParam,
  2495. const QPixmap &lParam) const;
  2496. //! \overload
  2497. long SendScintilla(unsigned int msg, unsigned long wParam,
  2498. const QImage &lParam) const;
  2499. //! Send the Scintilla message \a msg and return a pointer result.
  2500. void *SendScintillaPtrResult(unsigned int msg) const;
  2501. //! \internal
  2502. static int commandKey(int qt_key, int &modifiers);
  2503. signals:
  2504. //! This signal is emitted when text is selected or de-selected.
  2505. //! \a yes is true if text has been selected and false if text has been
  2506. //! deselected.
  2507. void QSCN_SELCHANGED(bool yes);
  2508. //! This signal is emitted when the user cancels an auto-completion list.
  2509. //!
  2510. //! \sa SCN_AUTOCSELECTION()
  2511. void SCN_AUTOCCANCELLED();
  2512. //! This signal is emitted when the user deletes a character when an
  2513. //! auto-completion list is active.
  2514. void SCN_AUTOCCHARDELETED();
  2515. //! This signal is emitted after an auto-completion has inserted its text.
  2516. //! \a selection is the text of the selection.
  2517. //! \a position is the start position of the word being completed.
  2518. //! \a ch is the fillup character that triggered the selection if method is
  2519. //! SC_AC_FILLUP.
  2520. //! \a method is the method used to trigger the selection.
  2521. //!
  2522. //! \sa SCN_AUTOCCANCELLED(), SCN_AUTOCSELECTION
  2523. void SCN_AUTOCCOMPLETED(const char *selection, int position, int ch, int method);
  2524. //! This signal is emitted when the user selects an item in an
  2525. //! auto-completion list. It is emitted before the selection is inserted.
  2526. //! The insertion can be cancelled by sending an SCI_AUTOCANCEL message
  2527. //! from a connected slot.
  2528. //! \a selection is the text of the selection.
  2529. //! \a position is the start position of the word being completed.
  2530. //! \a ch is the fillup character that triggered the selection if method is
  2531. //! SC_AC_FILLUP.
  2532. //! \a method is the method used to trigger the selection.
  2533. //!
  2534. //! \sa SCN_AUTOCCANCELLED(), SCN_AUTOCCOMPLETED
  2535. void SCN_AUTOCSELECTION(const char *selection, int position, int ch, int method);
  2536. //! \overload
  2537. void SCN_AUTOCSELECTION(const char *selection, int position);
  2538. //! This signal is emitted when the document has changed for any reason.
  2539. void SCEN_CHANGE();
  2540. //! This signal ir emitted when the user clicks on a calltip.
  2541. //! \a direction is 1 if the user clicked on the up arrow, 2 if the user
  2542. //! clicked on the down arrow, and 0 if the user clicked elsewhere.
  2543. void SCN_CALLTIPCLICK(int direction);
  2544. //! This signal is emitted whenever the user enters an ordinary character
  2545. //! into the text.
  2546. //! \a charadded is the character. It can be used to decide to display a
  2547. //! call tip or an auto-completion list.
  2548. void SCN_CHARADDED(int charadded);
  2549. //! This signal is emitted when the user double clicks.
  2550. //! \a position is the position in the text where the click occured.
  2551. //! \a line is the number of the line in the text where the click occured.
  2552. //! \a modifiers is the logical or of the modifier keys that were pressed
  2553. //! when the user double clicked.
  2554. void SCN_DOUBLECLICK(int position, int line, int modifiers);
  2555. //!
  2556. void SCN_DWELLEND(int, int, int);
  2557. //!
  2558. void SCN_DWELLSTART(int, int, int);
  2559. //! This signal is emitted when focus is received.
  2560. void SCN_FOCUSIN();
  2561. //! This signal is emitted when focus is lost.
  2562. void SCN_FOCUSOUT();
  2563. //! This signal is emitted when the user clicks on text in a style with the
  2564. //! hotspot attribute set.
  2565. //! \a position is the position in the text where the click occured.
  2566. //! \a modifiers is the logical or of the modifier keys that were pressed
  2567. //! when the user clicked.
  2568. void SCN_HOTSPOTCLICK(int position, int modifiers);
  2569. //! This signal is emitted when the user double clicks on text in a style
  2570. //! with the hotspot attribute set.
  2571. //! \a position is the position in the text where the double click occured.
  2572. //! \a modifiers is the logical or of the modifier keys that were pressed
  2573. //! when the user double clicked.
  2574. void SCN_HOTSPOTDOUBLECLICK(int position, int modifiers);
  2575. //! This signal is emitted when the user releases the mouse button on text
  2576. //! in a style with the hotspot attribute set.
  2577. //! \a position is the position in the text where the release occured.
  2578. //! \a modifiers is the logical or of the modifier keys that were pressed
  2579. //! when the user released the button.
  2580. void SCN_HOTSPOTRELEASECLICK(int position, int modifiers);
  2581. //! This signal is emitted when the user clicks on text that has an
  2582. //! indicator.
  2583. //! \a position is the position in the text where the click occured.
  2584. //! \a modifiers is the logical or of the modifier keys that were pressed
  2585. //! when the user clicked.
  2586. void SCN_INDICATORCLICK(int position, int modifiers);
  2587. //! This signal is emitted when the user releases the mouse button on text
  2588. //! that has an indicator.
  2589. //! \a position is the position in the text where the release occured.
  2590. //! \a modifiers is the logical or of the modifier keys that were pressed
  2591. //! when the user released.
  2592. void SCN_INDICATORRELEASE(int position, int modifiers);
  2593. //! This signal is emitted when a recordable editor command has been
  2594. //! executed.
  2595. void SCN_MACRORECORD(unsigned int, unsigned long, void *);
  2596. //! This signal is emitted when the user clicks on a sensitive margin.
  2597. //! \a position is the position of the start of the line against which the
  2598. //! user clicked.
  2599. //! \a modifiers is the logical or of the modifier keys that were pressed
  2600. //! when the user clicked.
  2601. //! \a margin is the number of the margin the user clicked in: 0, 1 or 2.
  2602. //!
  2603. //! \sa SCI_GETMARGINSENSITIVEN, SCI_SETMARGINSENSITIVEN
  2604. void SCN_MARGINCLICK(int position, int modifiers, int margin);
  2605. //! This signal is emitted when the user right-clicks on a sensitive
  2606. //! margin. \a position is the position of the start of the line against
  2607. //! which the user clicked.
  2608. //! \a modifiers is the logical or of the modifier keys that were pressed
  2609. //! when the user clicked.
  2610. //! \a margin is the number of the margin the user clicked in: 0, 1 or 2.
  2611. //!
  2612. //! \sa SCI_GETMARGINSENSITIVEN, SCI_SETMARGINSENSITIVEN
  2613. void SCN_MARGINRIGHTCLICK(int position, int modifiers, int margin);
  2614. //!
  2615. void SCN_MODIFIED(int, int, const char *, int, int, int, int, int, int, int);
  2616. //! This signal is emitted when the user attempts to modify read-only
  2617. //! text.
  2618. void SCN_MODIFYATTEMPTRO();
  2619. //!
  2620. void SCN_NEEDSHOWN(int, int);
  2621. //! This signal is emitted when painting has been completed. It is useful
  2622. //! to trigger some other change but to have the paint be done first to
  2623. //! appear more reponsive to the user.
  2624. void SCN_PAINTED();
  2625. //! This signal is emitted when the current state of the text no longer
  2626. //! corresponds to the state of the text at the save point.
  2627. //!
  2628. //! \sa SCI_SETSAVEPOINT, SCN_SAVEPOINTREACHED()
  2629. void SCN_SAVEPOINTLEFT();
  2630. //! This signal is emitted when the current state of the text corresponds
  2631. //! to the state of the text at the save point. This allows feedback to be
  2632. //! given to the user as to whether the text has been modified since it was
  2633. //! last saved.
  2634. //!
  2635. //! \sa SCI_SETSAVEPOINT, SCN_SAVEPOINTLEFT()
  2636. void SCN_SAVEPOINTREACHED();
  2637. //! This signal is emitted when a range of text needs to be syntax styled.
  2638. //! The range is from the value returned by the SCI_GETENDSTYLED message
  2639. //! and \a position. It is only emitted if the currently selected lexer is
  2640. //! SCLEX_CONTAINER.
  2641. //!
  2642. //! \sa SCI_COLOURISE, SCI_GETENDSTYLED
  2643. void SCN_STYLENEEDED(int position);
  2644. //! This signal is emitted when either the text or styling of the text has
  2645. //! changed or the selection range or scroll position has changed.
  2646. //! \a updated contains the set of SC_UPDATE_* flags describing the changes
  2647. //! since the signal was last emitted.
  2648. void SCN_UPDATEUI(int updated);
  2649. //!
  2650. void SCN_USERLISTSELECTION(const char *, int, int, int);
  2651. //! \overload
  2652. void SCN_USERLISTSELECTION(const char *, int);
  2653. //!
  2654. void SCN_ZOOM();
  2655. protected:
  2656. //! Returns true if the contents of a MIME data object can be decoded and
  2657. //! inserted into the document. It is called during drag and paste
  2658. //! operations.
  2659. //! \a source is the MIME data object.
  2660. //!
  2661. //! \sa fromMimeData(), toMimeData()
  2662. virtual bool canInsertFromMimeData(const QMimeData *source) const;
  2663. //! Returns the text of a MIME data object. It is called when a drag and
  2664. //! drop is completed and when text is pasted from the clipboard.
  2665. //! \a source is the MIME data object. On return \a rectangular is set if
  2666. //! the text corresponds to a rectangular selection.
  2667. //!
  2668. //! \sa canInsertFromMimeData(), toMimeData()
  2669. virtual QByteArray fromMimeData(const QMimeData *source, bool &rectangular) const;
  2670. //! Returns a new MIME data object containing some text and whether it
  2671. //! corresponds to a rectangular selection. It is called when a drag and
  2672. //! drop is started and when the selection is copied to the clipboard.
  2673. //! Ownership of the object is passed to the caller. \a text is the text.
  2674. //! \a rectangular is set if the text corresponds to a rectangular
  2675. //! selection.
  2676. //!
  2677. //! \sa canInsertFromMimeData(), fromMimeData()
  2678. virtual QMimeData *toMimeData(const QByteArray &text, bool rectangular) const;
  2679. //! Re-implemented to handle the context menu.
  2680. virtual void contextMenuEvent(QContextMenuEvent *e);
  2681. //! Re-implemented to handle drag enters.
  2682. virtual void dragEnterEvent(QDragEnterEvent *e);
  2683. //! Re-implemented to handle drag leaves.
  2684. virtual void dragLeaveEvent(QDragLeaveEvent *e);
  2685. //! Re-implemented to handle drag moves.
  2686. virtual void dragMoveEvent(QDragMoveEvent *e);
  2687. //! Re-implemented to handle drops.
  2688. virtual void dropEvent(QDropEvent *e);
  2689. //! Re-implemented to tell Scintilla it has the focus.
  2690. virtual void focusInEvent(QFocusEvent *e);
  2691. //! Re-implemented to tell Scintilla it has lost the focus.
  2692. virtual void focusOutEvent(QFocusEvent *e);
  2693. //! Re-implemented to allow tabs to be entered as text.
  2694. virtual bool focusNextPrevChild(bool next);
  2695. //! Re-implemented to handle key presses.
  2696. virtual void keyPressEvent(QKeyEvent *e);
  2697. //! Re-implemented to handle composed characters.
  2698. virtual void inputMethodEvent(QInputMethodEvent *event);
  2699. virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const;
  2700. //! Re-implemented to handle mouse double-clicks.
  2701. virtual void mouseDoubleClickEvent(QMouseEvent *e);
  2702. //! Re-implemented to handle mouse moves.
  2703. virtual void mouseMoveEvent(QMouseEvent *e);
  2704. //! Re-implemented to handle mouse presses.
  2705. virtual void mousePressEvent(QMouseEvent *e);
  2706. //! Re-implemented to handle mouse releases.
  2707. virtual void mouseReleaseEvent(QMouseEvent *e);
  2708. //! Re-implemented to paint the viewport.
  2709. virtual void paintEvent(QPaintEvent *e);
  2710. //! Re-implemented to handle resizes.
  2711. virtual void resizeEvent(QResizeEvent *e);
  2712. //! \internal Re-implemented to handle scrolling.
  2713. virtual void scrollContentsBy(int dx, int dy);
  2714. //! \internal This helps to work around some Scintilla bugs.
  2715. void setScrollBars();
  2716. //! \internal Qt4, Qt5 portability.
  2717. typedef QByteArray ScintillaBytes;
  2718. #define ScintillaBytesConstData(b) (b).constData()
  2719. //! \internal Convert a QString to encoded bytes.
  2720. ScintillaBytes textAsBytes(const QString &text) const;
  2721. //! \internal Convert encoded bytes to a QString.
  2722. QString bytesAsText(const char *bytes) const;
  2723. private slots:
  2724. void handleVSb(int value);
  2725. void handleHSb(int value);
  2726. void handleSelection();
  2727. private:
  2728. // This is needed to allow QsciScintillaQt to emit this class's signals.
  2729. friend class QsciScintillaQt;
  2730. QsciScintillaQt *sci;
  2731. QPoint triple_click_at;
  2732. QTimer triple_click;
  2733. int preeditPos;
  2734. int preeditNrBytes;
  2735. QString preeditString;
  2736. #if QT_VERSION >= 0x050000
  2737. bool clickCausedFocus;
  2738. #endif
  2739. void connectHorizontalScrollBar();
  2740. void connectVerticalScrollBar();
  2741. void acceptAction(QDropEvent *e);
  2742. QsciScintillaBase(const QsciScintillaBase &);
  2743. QsciScintillaBase &operator=(const QsciScintillaBase &);
  2744. };
  2745. #endif