1
// This class defines the "official" low-level API.
3
// Copyright (c) 2008 Riverbank Computing Limited <info@riverbankcomputing.com>
5
// This file is part of QScintilla.
7
// This file may be used under the terms of the GNU General Public
8
// License versions 2.0 or 3.0 as published by the Free Software
9
// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
10
// included in the packaging of this file. Alternatively you may (at
11
// your option) use any later version of the GNU General Public
12
// License if such license has been publicly approved by Riverbank
13
// Computing Limited (or its successors, if any) and the KDE Free Qt
14
// Foundation. In addition, as a special exception, Riverbank gives you
15
// certain additional rights. These rights are described in the Riverbank
16
// GPL Exception version 1.1, which can be found in the file
17
// GPL_EXCEPTION.txt in this package.
19
// Please review the following information to ensure GNU General
20
// Public Licensing requirements will be met:
21
// http://trolltech.com/products/qt/licenses/licensing/opensource/. If
22
// you are unsure which license is appropriate for your use, please
23
// review the following information:
24
// http://trolltech.com/products/qt/licenses/licensing/licensingoverview
25
// or contact the sales department at sales@riverbankcomputing.com.
27
// This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
28
// INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
29
// A PARTICULAR PURPOSE. Trolltech reserves all rights not expressly
32
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
33
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
36
#ifndef QSCISCINTILLABASE_H
37
#define QSCISCINTILLABASE_H
45
#include <QAbstractScrollArea>
50
#include <Qsci/qsciglobal.h>
60
//! \brief The QsciScintillaBase class implements the Scintilla editor widget
61
//! and its low-level API.
63
//! Scintilla (http://www.scintilla.org) is a powerful C++ editor class that
64
//! supports many features including syntax styling, error indicators, code
65
//! completion and call tips. It is particularly useful as a programmer's
68
//! QsciScintillaBase is a port to Qt of Scintilla. It implements the standard
69
//! Scintilla API which consists of a number of messages each taking up to
72
//! See QsciScintilla for the implementation of a higher level API that is more
73
//! consistent with the rest of the Qt toolkit.
74
class QSCINTILLA_EXPORT QsciScintillaBase : public QAbstractScrollArea
79
//! The low-level Scintilla API is implemented as a set of messages each of
80
//! which takes up to two parameters (\a wParam and \a lParam) and
81
//! optionally return a value. This enum defines all the possible messages.
88
SCI_OPTIONAL_START = 3000,
91
SCI_LEXER_START = 4000,
93
//! This message appends some text to the end of the document.
94
//! \a wParam is the length of the text.
95
//! \a lParam is the text to be appended.
99
SCI_ADDSTYLEDTEXT = 2002,
102
SCI_INSERTTEXT = 2003,
108
SCI_CLEARDOCUMENTSTYLE = 2005,
111
SCI_GETLENGTH = 2006,
114
SCI_GETCHARAT = 2007,
116
//! This message returns the current position.
118
//! \sa SCI_SETCURRENTPOS
119
SCI_GETCURRENTPOS = 2008,
121
//! This message returns the anchor.
123
//! \sa SCI_SETANCHOR
124
SCI_GETANCHOR = 2009,
127
SCI_GETSTYLEAT = 2010,
133
SCI_SETUNDOCOLLECTION = 2012,
136
SCI_SELECTALL = 2013,
138
//! This message marks the current state of the text as the the save
139
//! point. This is usually done when the text is saved or loaded.
141
//! \sa SCN_SAVEPOINTREACHED(), SCN_SAVEPOINTLEFT()
142
SCI_SETSAVEPOINT = 2014,
145
SCI_GETSTYLEDTEXT = 2015,
150
//! This message returns the line that contains a particular instance
152
//! \a wParam is the handle of the marker.
154
//! \sa SCI_MARKERADD
155
SCI_MARKERLINEFROMHANDLE = 2017,
157
//! This message removes a particular instance of a marker.
158
//! \a wParam is the handle of the marker.
160
//! \sa SCI_MARKERADD
161
SCI_MARKERDELETEHANDLE = 2018,
164
SCI_GETUNDOCOLLECTION = 2019,
167
SCI_GETVIEWWS = 2020,
170
SCI_SETVIEWWS = 2021,
173
SCI_POSITIONFROMPOINT = 2022,
176
SCI_POSITIONFROMPOINTCLOSE = 2023,
181
//! This message clears the current selection and sets the current
183
//! \a wParam is the new current position.
185
//! \sa SCI_SETCURRENTPOS
188
//! This message sets the anchor.
189
//! \a wParam is the new anchor.
191
//! \sa SCI_GETANCHOR
192
SCI_SETANCHOR = 2026,
195
SCI_GETCURLINE = 2027,
197
//! This message returns the character position of the start of the
198
//! text that needs to be syntax styled.
200
//! \sa SCN_STYLENEEDED()
201
SCI_GETENDSTYLED = 2028,
204
SCI_CONVERTEOLS = 2029,
207
SCI_GETEOLMODE = 2030,
210
SCI_SETEOLMODE = 2031,
213
SCI_STARTSTYLING = 2032,
216
SCI_SETSTYLING = 2033,
219
SCI_GETBUFFEREDDRAW = 2034,
222
SCI_SETBUFFEREDDRAW = 2035,
225
SCI_SETTABWIDTH = 2036,
228
SCI_GETTABWIDTH = 2121,
231
SCI_SETCODEPAGE = 2037,
234
SCI_SETUSEPALETTE = 2039,
236
//! This message sets the symbol used to draw one of 32 markers. Some
237
//! markers have pre-defined uses, see the SC_MARKNUM_* values.
238
//! \a wParam is the number of the marker.
239
//! \a lParam is the marker symbol and is one of the SC_MARK_* values.
241
//! \sa SCI_MARKERADD, SCI_MARKERDEFINEPIXMAP
242
SCI_MARKERDEFINE = 2040,
244
//! This message sets the foreground colour used to draw a marker. A
245
//! colour is represented as a 24 bit value. The 8 least significant
246
//! bits correspond to red, the middle 8 bits correspond to green, and
247
//! the 8 most significant bits correspond to blue. The default value
249
//! \a wParam is the number of the marker.
250
//! \a lParam is the colour.
252
//! \sa SCI_MARKERSETBACK
253
SCI_MARKERSETFORE = 2041,
255
//! This message sets the background colour used to draw a marker. A
256
//! colour is represented as a 24 bit value. The 8 least significant
257
//! bits correspond to red, the middle 8 bits correspond to green, and
258
//! the 8 most significant bits correspond to blue. The default value
260
//! \a wParam is the number of the marker.
261
//! \a lParam is the colour.
263
//! \sa SCI_MARKERSETFORE
264
SCI_MARKERSETBACK = 2042,
266
//! This message adds a marker to a line. A handle for the marker is
267
//! returned which can be used to track the marker's position.
268
//! \a wParam is the line number.
269
//! \a lParam is the number of the marker.
271
//! \sa SCI_MARKERDELETE, SCI_MARKERDELETEALL,
272
//! SCI_MARKERDELETEHANDLE
273
SCI_MARKERADD = 2043,
275
//! This message deletes a marker from a line.
276
//! \a wParam is the line number.
277
//! \a lParam is the number of the marker.
279
//! \sa SCI_MARKERADD, SCI_MARKERDELETEALL
280
SCI_MARKERDELETE = 2044,
282
//! This message deletes all occurences of a marker.
283
//! \a wParam is the number of the marker. If \a wParam is -1 then all
284
//! markers are removed.
286
//! \sa SCI_MARKERADD, SCI_MARKERDELETE
287
SCI_MARKERDELETEALL = 2045,
289
//! This message returns the 32 bit mask of markers at a line.
290
//! \a wParam is the line number.
291
SCI_MARKERGET = 2046,
293
//! This message looks for the next line to contain at least one marker
294
//! contained in a 32 bit mask of markers and returns the line number.
295
//! \a wParam is the line number to start the search from.
296
//! \a lParam is the mask of markers to search for.
298
//! \sa SCI_MARKERPREVIOUS
299
SCI_MARKERNEXT = 2047,
301
//! This message looks for the previous line to contain at least one
302
//! marker contained in a 32 bit mask of markers and returns the line
304
//! \a wParam is the line number to start the search from.
305
//! \a lParam is the mask of markers to search for.
307
//! \sa SCI_MARKERNEXT
308
SCI_MARKERPREVIOUS = 2048,
310
//! This message sets the symbol used to draw one of the 32 markers to
311
//! a pixmap. Pixmaps use the SC_MARK_PIXMAP marker symbol.
312
//! \a wParam is the number of the marker.
313
//! \a lParam is a pointer to a QPixmap instance. Note that in other
314
//! ports of Scintilla this is a pointer to either raw or textual XPM
317
//! \sa SCI_MARKERDEFINE
318
SCI_MARKERDEFINEPIXMAP = 2049,
320
//! This message sets what can be displayed in a margin.
321
//! \a wParam is the number of the margin: 0, 1 or 2.
322
//! \a lParam is the logical or of the SC_MARGIN_* values.
324
//! \sa SCI_GETMARGINTYPEN
325
SCI_SETMARGINTYPEN = 2240,
327
//! This message returns what can be displayed in a margin.
328
//! \a wParam is the number of the margin: 0, 1 or 2.
330
//! \sa SCI_SETMARGINTYPEN
331
SCI_GETMARGINTYPEN = 2241,
333
//! This message sets the width of a margin in pixels.
334
//! \a wParam is the number of the margin: 0, 1 or 2.
335
//! \a lParam is the new margin width.
337
//! \sa SCI_GETMARGINWIDTHN
338
SCI_SETMARGINWIDTHN = 2242,
340
//! This message returns the width of a margin in pixels.
341
//! \a wParam is the number of the margin: 0, 1 or 2.
343
//! \sa SCI_SETMARGINWIDTHN
344
SCI_GETMARGINWIDTHN = 2243,
346
//! This message sets the mask of a margin. The mask is a 32 value
347
//! with one bit for each possible marker. If a bit is set then the
348
//! corresponding marker is displayed. By default, all markers are
350
//! \a wParam is the number of the margin: 0, 1 or 2.
351
//! \a lParam is the new margin mask.
353
//! \sa SCI_GETMARGINMASKN, SCI_MARKERDEFINE
354
SCI_SETMARGINMASKN = 2244,
356
//! This message returns the mask of a margin.
357
//! \a wParam is the number of the margin: 0, 1 or 2.
359
//! \sa SCI_SETMARGINMASKN
360
SCI_GETMARGINMASKN = 2245,
362
//! This message sets the sensitivity of a margin to mouse clicks.
363
//! \a wParam is the number of the margin: 0, 1 or 2.
364
//! \a lParam is non-zero to make the margin sensitive to mouse clicks.
365
//! When the mouse is clicked the SCN_MARGINCLICK() signal is emitted.
367
//! \sa SCI_GETMARGINSENSITIVEN, SCN_MARGINCLICK()
368
SCI_SETMARGINSENSITIVEN = 2246,
370
//! This message returns the sensitivity of a margin to mouse clicks.
371
//! \a wParam is the number of the margin: 0, 1 or 2.
373
//! \sa SCI_SETMARGINSENSITIVEN, SCN_MARGINCLICK()
374
SCI_GETMARGINSENSITIVEN = 2247,
377
SCI_STYLECLEARALL = 2050,
380
SCI_STYLESETFORE = 2051,
383
SCI_STYLESETBACK = 2052,
386
SCI_STYLESETBOLD = 2053,
389
SCI_STYLESETITALIC = 2054,
392
SCI_STYLESETSIZE = 2055,
395
SCI_STYLESETFONT = 2056,
398
SCI_STYLESETEOLFILLED = 2057,
401
SCI_STYLERESETDEFAULT = 2058,
404
SCI_STYLESETUNDERLINE = 2059,
407
SCI_STYLESETCASE = 2060,
410
SCI_STYLESETCHARACTERSET = 2066,
413
SCI_SETSELFORE = 2067,
416
SCI_SETSELBACK = 2068,
419
SCI_SETCARETFORE = 2069,
422
SCI_ASSIGNCMDKEY = 2070,
425
SCI_CLEARCMDKEY = 2071,
428
SCI_CLEARALLCMDKEYS = 2072,
431
SCI_SETSTYLINGEX = 2073,
434
SCI_STYLESETVISIBLE = 2074,
437
SCI_GETCARETPERIOD = 2075,
440
SCI_SETCARETPERIOD = 2076,
443
SCI_SETWORDCHARS = 2077,
446
SCI_BEGINUNDOACTION = 2078,
449
SCI_ENDUNDOACTION = 2079,
452
SCI_INDICSETSTYLE = 2080,
455
SCI_INDICGETSTYLE = 2081,
458
SCI_INDICSETFORE = 2082,
461
SCI_INDICGETFORE = 2083,
464
SCI_SETWHITESPACEFORE = 2084,
467
SCI_SETWHITESPACEBACK = 2085,
470
SCI_SETSTYLEBITS = 2090,
473
SCI_GETSTYLEBITS = 2091,
476
SCI_SETLINESTATE = 2092,
479
SCI_GETLINESTATE = 2093,
482
SCI_GETMAXLINESTATE = 2094,
485
SCI_GETCARETLINEVISIBLE = 2095,
488
SCI_SETCARETLINEVISIBLE = 2096,
491
SCI_GETCARETLINEBACK = 2097,
494
SCI_SETCARETLINEBACK = 2098,
497
SCI_STYLESETCHANGEABLE = 2099,
500
SCI_AUTOCSHOW = 2100,
503
SCI_AUTOCCANCEL = 2101,
506
SCI_AUTOCACTIVE = 2102,
509
SCI_AUTOCPOSSTART = 2103,
512
SCI_AUTOCCOMPLETE = 2104,
515
SCI_AUTOCSTOPS = 2105,
518
SCI_AUTOCSETSEPARATOR = 2106,
521
SCI_AUTOCGETSEPARATOR = 2107,
524
SCI_AUTOCSELECT = 2108,
527
SCI_AUTOCSETCANCELATSTART = 2110,
530
SCI_AUTOCGETCANCELATSTART = 2111,
533
SCI_AUTOCSETFILLUPS = 2112,
536
SCI_AUTOCSETCHOOSESINGLE = 2113,
539
SCI_AUTOCGETCHOOSESINGLE = 2114,
542
SCI_AUTOCSETIGNORECASE = 2115,
545
SCI_AUTOCGETIGNORECASE = 2116,
548
SCI_USERLISTSHOW = 2117,
551
SCI_AUTOCSETAUTOHIDE = 2118,
554
SCI_AUTOCGETAUTOHIDE = 2119,
557
SCI_AUTOCSETDROPRESTOFWORD = 2270,
560
SCI_AUTOCGETDROPRESTOFWORD = 2271,
563
SCI_SETINDENT = 2122,
566
SCI_GETINDENT = 2123,
569
SCI_SETUSETABS = 2124,
572
SCI_GETUSETABS = 2125,
575
SCI_SETLINEINDENTATION = 2126,
578
SCI_GETLINEINDENTATION = 2127,
581
SCI_GETLINEINDENTPOSITION = 2128,
584
SCI_GETCOLUMN = 2129,
587
SCI_SETHSCROLLBAR = 2130,
590
SCI_GETHSCROLLBAR = 2131,
593
SCI_SETINDENTATIONGUIDES = 2132,
596
SCI_GETINDENTATIONGUIDES = 2133,
599
SCI_SETHIGHLIGHTGUIDE = 2134,
602
SCI_GETHIGHLIGHTGUIDE = 2135,
605
SCI_GETLINEENDPOSITION = 2136,
608
SCI_GETCODEPAGE = 2137,
611
SCI_GETCARETFORE = 2138,
614
SCI_GETUSEPALETTE = 2139,
616
//! This message returns a non-zero value if the document is read-only.
618
//! \sa SCI_SETREADONLY
619
SCI_GETREADONLY = 2140,
621
//! This message sets the current position.
622
//! \a wParam is the new current position.
624
//! \sa SCI_GETCURRENTPOS
625
SCI_SETCURRENTPOS = 2141,
628
SCI_SETSELECTIONSTART = 2142,
631
SCI_GETSELECTIONSTART = 2143,
634
SCI_SETSELECTIONEND = 2144,
637
SCI_GETSELECTIONEND = 2145,
640
SCI_SETPRINTMAGNIFICATION = 2146,
643
SCI_GETPRINTMAGNIFICATION = 2147,
646
SCI_SETPRINTCOLOURMODE = 2148,
649
SCI_GETPRINTCOLOURMODE = 2149,
655
SCI_FORMATRANGE = 2151,
658
SCI_GETFIRSTVISIBLELINE = 2152,
664
SCI_GETLINECOUNT = 2154,
667
SCI_SETMARGINLEFT = 2155,
670
SCI_GETMARGINLEFT = 2156,
673
SCI_SETMARGINRIGHT = 2157,
676
SCI_GETMARGINRIGHT = 2158,
678
//! This message returns a non-zero value if the document has been
680
SCI_GETMODIFY = 2159,
686
SCI_GETSELTEXT = 2161,
689
SCI_GETTEXTRANGE = 2162,
692
SCI_HIDESELECTION = 2163,
695
SCI_POINTXFROMPOSITION = 2164,
698
SCI_POINTYFROMPOSITION = 2165,
701
SCI_LINEFROMPOSITION = 2166,
704
SCI_POSITIONFROMLINE = 2167,
707
SCI_LINESCROLL = 2168,
710
SCI_SCROLLCARET = 2169,
713
SCI_REPLACESEL = 2170,
715
//! This message sets the read-only state of the document.
716
//! \a wParam is the new read-only state of the document.
718
//! \sa SCI_GETREADONLY
719
SCI_SETREADONLY = 2171,
730
//! This message empties the undo buffer.
731
SCI_EMPTYUNDOBUFFER = 2175,
748
//! This message sets the text of the document.
749
//! \a wParam is unused.
750
//! \a lParam is the new text of the document.
755
//! This message gets the text of the document.
756
//! \a wParam is size of the buffer that the text is copied to.
757
//! \a lParam is the address of the buffer that the text is copied to.
762
//! This message returns the length of the document.
763
SCI_GETTEXTLENGTH = 2183,
766
SCI_GETDIRECTFUNCTION = 2184,
769
SCI_GETDIRECTPOINTER = 2185,
772
SCI_SETOVERTYPE = 2186,
775
SCI_GETOVERTYPE = 2187,
778
SCI_SETCARETWIDTH = 2188,
781
SCI_GETCARETWIDTH = 2189,
784
SCI_SETTARGETSTART = 2190,
787
SCI_GETTARGETSTART = 2191,
790
SCI_SETTARGETEND = 2192,
793
SCI_GETTARGETEND = 2193,
796
SCI_REPLACETARGET = 2194,
799
SCI_REPLACETARGETRE = 2195,
802
SCI_SEARCHINTARGET = 2197,
805
SCI_SETSEARCHFLAGS = 2198,
808
SCI_GETSEARCHFLAGS = 2199,
811
SCI_CALLTIPSHOW = 2200,
814
SCI_CALLTIPCANCEL = 2201,
817
SCI_CALLTIPACTIVE = 2202,
820
SCI_CALLTIPPOSSTART = 2203,
823
SCI_CALLTIPSETHLT = 2204,
826
SCI_CALLTIPSETBACK = 2205,
829
SCI_CALLTIPSETFORE = 2206,
832
SCI_CALLTIPSETFOREHLT = 2207,
835
SCI_AUTOCSETMAXWIDTH = 2208,
838
SCI_AUTOCGETMAXWIDTH = 2209,
840
//! This message is not implemented.
841
SCI_AUTOCSETMAXHEIGHT = 2210,
844
SCI_AUTOCGETMAXHEIGHT = 2211,
847
SCI_CALLTIPUSESTYLE = 2212,
850
SCI_VISIBLEFROMDOCLINE = 2220,
853
SCI_DOCLINEFROMVISIBLE = 2221,
856
SCI_SETFOLDLEVEL = 2222,
859
SCI_GETFOLDLEVEL = 2223,
862
SCI_GETLASTCHILD = 2224,
865
SCI_GETFOLDPARENT = 2225,
868
SCI_SHOWLINES = 2226,
871
SCI_HIDELINES = 2227,
874
SCI_GETLINEVISIBLE = 2228,
877
SCI_SETFOLDEXPANDED = 2229,
880
SCI_GETFOLDEXPANDED = 2230,
883
SCI_TOGGLEFOLD = 2231,
886
SCI_ENSUREVISIBLE = 2232,
889
SCI_SETFOLDFLAGS = 2233,
892
SCI_ENSUREVISIBLEENFORCEPOLICY = 2234,
895
SCI_WRAPCOUNT = 2235,
898
SCI_SETTABINDENTS = 2260,
901
SCI_GETTABINDENTS = 2261,
904
SCI_SETBACKSPACEUNINDENTS = 2262,
907
SCI_GETBACKSPACEUNINDENTS = 2263,
910
SCI_SETMOUSEDWELLTIME = 2264,
913
SCI_GETMOUSEDWELLTIME = 2265,
916
SCI_WORDSTARTPOSITION = 2266,
919
SCI_WORDENDPOSITION = 2267,
922
SCI_SETWRAPMODE = 2268,
925
SCI_GETWRAPMODE = 2269,
928
SCI_SETLAYOUTCACHE = 2272,
931
SCI_GETLAYOUTCACHE = 2273,
934
SCI_SETSCROLLWIDTH = 2274,
937
SCI_GETSCROLLWIDTH = 2275,
939
//! This message returns the width of some text when rendered in a
940
//! particular style.
941
//! \a wParam is the style number and is one of the STYLE_* values or
942
//! one of the styles defined by a lexer.
943
//! \a lParam is a pointer to the text.
944
SCI_TEXTWIDTH = 2276,
947
SCI_SETENDATLASTLINE = 2277,
950
SCI_GETENDATLASTLINE = 2278,
953
SCI_TEXTHEIGHT = 2279,
956
SCI_SETVSCROLLBAR = 2280,
959
SCI_GETVSCROLLBAR = 2281,
962
SCI_APPENDTEXT = 2282,
965
SCI_GETTWOPHASEDRAW = 2283,
968
SCI_SETTWOPHASEDRAW = 2284,
971
SCI_AUTOCGETTYPESEPARATOR = 2285,
974
SCI_AUTOCSETTYPESEPARATOR = 2286,
977
SCI_TARGETFROMSELECTION = 2287,
980
SCI_LINESJOIN = 2288,
983
SCI_LINESSPLIT = 2289,
986
SCI_SETFOLDMARGINCOLOUR = 2290,
989
SCI_SETFOLDMARGINHICOLOUR = 2291,
995
SCI_LINEDOWNEXTEND = 2301,
1001
SCI_LINEUPEXTEND = 2303,
1004
SCI_CHARLEFT = 2304,
1007
SCI_CHARLEFTEXTEND = 2305,
1010
SCI_CHARRIGHT = 2306,
1013
SCI_CHARRIGHTEXTEND = 2307,
1016
SCI_WORDLEFT = 2308,
1019
SCI_WORDLEFTEXTEND = 2309,
1022
SCI_WORDRIGHT = 2310,
1025
SCI_WORDRIGHTEXTEND = 2311,
1031
SCI_HOMEEXTEND = 2313,
1037
SCI_LINEENDEXTEND = 2315,
1040
SCI_DOCUMENTSTART = 2316,
1043
SCI_DOCUMENTSTARTEXTEND = 2317,
1046
SCI_DOCUMENTEND = 2318,
1049
SCI_DOCUMENTENDEXTEND = 2319,
1055
SCI_PAGEUPEXTEND = 2321,
1058
SCI_PAGEDOWN = 2322,
1061
SCI_PAGEDOWNEXTEND = 2323,
1064
SCI_EDITTOGGLEOVERTYPE = 2324,
1070
SCI_DELETEBACK = 2326,
1082
SCI_FORMFEED = 2330,
1088
SCI_VCHOMEEXTEND = 2332,
1097
SCI_DELWORDLEFT = 2335,
1100
SCI_DELWORDRIGHT = 2336,
1106
SCI_LINEDELETE = 2338,
1109
SCI_LINETRANSPOSE = 2339,
1112
SCI_LOWERCASE = 2340,
1115
SCI_UPPERCASE = 2341,
1118
SCI_LINESCROLLDOWN = 2342,
1121
SCI_LINESCROLLUP = 2343,
1124
SCI_DELETEBACKNOTLINE = 2344,
1127
SCI_HOMEDISPLAY = 2345,
1130
SCI_HOMEDISPLAYEXTEND = 2346,
1133
SCI_LINEENDDISPLAY = 2347,
1136
SCI_LINEENDDISPLAYEXTEND = 2348,
1139
SCI_MOVECARETINSIDEVIEW = 2401,
1142
SCI_LINELENGTH = 2350,
1145
SCI_BRACEHIGHLIGHT = 2351,
1148
SCI_BRACEBADLIGHT = 2352,
1151
SCI_BRACEMATCH = 2353,
1154
SCI_GETVIEWEOL = 2355,
1157
SCI_SETVIEWEOL = 2356,
1160
SCI_GETDOCPOINTER = 2357,
1163
SCI_SETDOCPOINTER = 2358,
1166
SCI_SETMODEVENTMASK = 2359,
1169
SCI_GETEDGECOLUMN = 2360,
1172
SCI_SETEDGECOLUMN = 2361,
1175
SCI_GETEDGEMODE = 2362,
1178
SCI_SETEDGEMODE = 2363,
1181
SCI_GETEDGECOLOUR = 2364,
1184
SCI_SETEDGECOLOUR = 2365,
1187
SCI_SEARCHANCHOR = 2366,
1190
SCI_SEARCHNEXT = 2367,
1193
SCI_SEARCHPREV = 2368,
1196
SCI_LINESONSCREEN = 2370,
1199
SCI_USEPOPUP = 2371,
1202
SCI_SELECTIONISRECTANGLE = 2372,
1211
SCI_CREATEDOCUMENT = 2375,
1214
SCI_ADDREFDOCUMENT = 2376,
1217
SCI_RELEASEDOCUMENT = 2377,
1220
SCI_GETMODEVENTMASK = 2378,
1223
SCI_SETFOCUS = 2380,
1226
SCI_GETFOCUS = 2381,
1229
SCI_SETSTATUS = 2382,
1232
SCI_GETSTATUS = 2383,
1235
SCI_SETMOUSEDOWNCAPTURES = 2384,
1238
SCI_GETMOUSEDOWNCAPTURES = 2385,
1241
SCI_SETCURSOR = 2386,
1244
SCI_GETCURSOR = 2387,
1247
SCI_SETCONTROLCHARSYMBOL = 2388,
1250
SCI_GETCONTROLCHARSYMBOL = 2389,
1253
SCI_WORDPARTLEFT = 2390,
1256
SCI_WORDPARTLEFTEXTEND = 2391,
1259
SCI_WORDPARTRIGHT = 2392,
1262
SCI_WORDPARTRIGHTEXTEND = 2393,
1265
SCI_SETVISIBLEPOLICY = 2394,
1268
SCI_DELLINELEFT = 2395,
1271
SCI_DELLINERIGHT = 2396,
1274
SCI_SETXOFFSET = 2397,
1277
SCI_GETXOFFSET = 2398,
1280
SCI_CHOOSECARETX = 2399,
1283
SCI_GRABFOCUS = 2400,
1286
SCI_SETXCARETPOLICY = 2402,
1289
SCI_SETYCARETPOLICY = 2403,
1292
SCI_LINEDUPLICATE = 2404,
1294
//! This message takes a copy of an image and registers it so that it
1295
//! can be refered to by a unique integer identifier.
1296
//! \a wParam is the image's identifier.
1297
//! \a lParam is a pointer to a QPixmap instance. Note that in other
1298
//! ports of Scintilla this is a pointer to either raw or textual XPM
1301
//! \sa SCI_CLEARREGISTEREDIMAGES
1302
SCI_REGISTERIMAGE = 2405,
1305
SCI_SETPRINTWRAPMODE = 2406,
1308
SCI_GETPRINTWRAPMODE = 2407,
1310
//! This message de-registers all currently registered images.
1312
//! \sa SCI_REGISTERIMAGE
1313
SCI_CLEARREGISTEREDIMAGES = 2408,
1316
SCI_STYLESETHOTSPOT = 2409,
1319
SCI_SETHOTSPOTACTIVEFORE = 2410,
1322
SCI_SETHOTSPOTACTIVEBACK = 2411,
1325
SCI_SETHOTSPOTACTIVEUNDERLINE = 2412,
1328
SCI_PARADOWN = 2413,
1331
SCI_PARADOWNEXTEND = 2414,
1337
SCI_PARAUPEXTEND = 2416,
1340
SCI_POSITIONBEFORE = 2417,
1343
SCI_POSITIONAFTER = 2418,
1346
SCI_COPYRANGE = 2419,
1349
SCI_COPYTEXT = 2420,
1352
SCI_SETSELECTIONMODE = 2422,
1355
SCI_GETSELECTIONMODE = 2423,
1358
SCI_GETLINESELSTARTPOSITION = 2424,
1361
SCI_GETLINESELENDPOSITION = 2425,
1364
SCI_LINEDOWNRECTEXTEND = 2426,
1367
SCI_LINEUPRECTEXTEND = 2427,
1370
SCI_CHARLEFTRECTEXTEND = 2428,
1373
SCI_CHARRIGHTRECTEXTEND = 2429,
1376
SCI_HOMERECTEXTEND = 2430,
1379
SCI_VCHOMERECTEXTEND = 2431,
1382
SCI_LINEENDRECTEXTEND = 2432,
1385
SCI_PAGEUPRECTEXTEND = 2433,
1388
SCI_PAGEDOWNRECTEXTEND = 2434,
1391
SCI_STUTTEREDPAGEUP = 2435,
1394
SCI_STUTTEREDPAGEUPEXTEND = 2436,
1397
SCI_STUTTEREDPAGEDOWN = 2437,
1400
SCI_STUTTEREDPAGEDOWNEXTEND = 2438,
1403
SCI_WORDLEFTEND = 2439,
1406
SCI_WORDLEFTENDEXTEND = 2440,
1409
SCI_WORDRIGHTEND = 2441,
1412
SCI_WORDRIGHTENDEXTEND = 2442,
1415
SCI_SETWHITESPACECHARS = 2443,
1418
SCI_SETCHARSDEFAULT = 2444,
1421
SCI_AUTOCGETCURRENT = 2445,
1424
SCI_ALLOCATE = 2446,
1427
SCI_HOMEWRAP = 2349,
1430
SCI_HOMEWRAPEXTEND = 2450,
1433
SCI_LINEENDWRAP = 2451,
1436
SCI_LINEENDWRAPEXTEND = 2452,
1439
SCI_VCHOMEWRAP = 2453,
1442
SCI_VCHOMEWRAPEXTEND = 2454,
1445
SCI_LINECOPY = 2455,
1448
SCI_FINDCOLUMN = 2456,
1451
SCI_GETCARETSTICKY = 2457,
1454
SCI_SETCARETSTICKY = 2458,
1457
SCI_TOGGLECARETSTICKY = 2459,
1460
SCI_SETWRAPVISUALFLAGS = 2460,
1463
SCI_GETWRAPVISUALFLAGS = 2461,
1466
SCI_SETWRAPVISUALFLAGSLOCATION = 2462,
1469
SCI_GETWRAPVISUALFLAGSLOCATION = 2463,
1472
SCI_SETWRAPSTARTINDENT = 2464,
1475
SCI_GETWRAPSTARTINDENT = 2465,
1478
SCI_MARKERADDSET = 2466,
1481
SCI_SETPASTECONVERTENDINGS = 2467,
1484
SCI_GETPASTECONVERTENDINGS = 2468,
1487
SCI_SELECTIONDUPLICATE = 2469,
1490
SCI_SETCARETLINEBACKALPHA = 2470,
1493
SCI_GETCARETLINEBACKALPHA = 2471,
1496
SCI_MARKERSETALPHA = 2476,
1499
SCI_GETSELALPHA = 2477,
1502
SCI_SETSELALPHA = 2478,
1505
SCI_GETSELEOLFILLED = 2479,
1508
SCI_SETSELEOLFILLED = 2480,
1511
SCI_STYLEGETFORE = 2481,
1514
SCI_STYLEGETBACK = 2482,
1517
SCI_STYLEGETBOLD = 2483,
1520
SCI_STYLEGETITALIC = 2484,
1523
SCI_STYLEGETSIZE = 2485,
1526
SCI_STYLEGETFONT = 2486,
1529
SCI_STYLEGETEOLFILLED = 2487,
1532
SCI_STYLEGETUNDERLINE = 2488,
1535
SCI_STYLEGETCASE = 2489,
1538
SCI_STYLEGETCHARACTERSET = 2490,
1541
SCI_STYLEGETVISIBLE = 2491,
1544
SCI_STYLEGETCHANGEABLE = 2492,
1547
SCI_STYLEGETHOTSPOT = 2493,
1550
SCI_GETHOTSPOTACTIVEFORE = 2494,
1553
SCI_GETHOTSPOTACTIVEBACK = 2495,
1556
SCI_GETHOTSPOTACTIVEUNDERLINE = 2496,
1559
SCI_GETHOTSPOTSINGLELINE = 2497,
1562
SCI_SETINDICATORCURRENT = 2500,
1565
SCI_GETINDICATORCURRENT = 2501,
1568
SCI_SETINDICATORVALUE = 2502,
1571
SCI_GETINDICATORVALUE = 2503,
1574
SCI_INDICATORFILLRANGE = 2504,
1577
SCI_INDICATORCLEARRANGE = 2505,
1580
SCI_INDICATORALLONFOR = 2506,
1583
SCI_INDICATORVALUEAT = 2507,
1586
SCI_INDICATORSTART = 2508,
1589
SCI_INDICATOREND = 2509,
1592
SCI_INDICSETUNDER = 2510,
1595
SCI_INDICGETUNDER = 2511,
1598
SCI_SETCARETSTYLE = 2512,
1601
SCI_GETCARETSTYLE = 2513,
1604
SCI_SETPOSITIONCACHE = 2514,
1607
SCI_GETPOSITIONCACHE = 2515,
1610
SCI_SETSCROLLWIDTHTRACKING = 2516,
1613
SCI_GETSCROLLWIDTHTRACKING = 2517,
1616
SCI_DELWORDRIGHTEND = 2518,
1618
//! This message copies the selection. If the selection is empty then
1619
//! copy the line with the caret.
1620
SCI_COPYALLOWLINE = 2519,
1622
//! This message returns a pointer to the document text. Any
1623
//! subsequent message will invalidate the pointer.
1624
SCI_GETCHARACTERPOINTER = 2520,
1627
SCI_SETKEYSUNICODE = 2521,
1630
SCI_GETKEYSUNICODE = 2522,
1633
SCI_STARTRECORD = 3001,
1636
SCI_STOPRECORD = 3002,
1638
//! This message sets the number of the lexer to use for syntax
1640
//! \a wParam is the number of the lexer and is one of the SCLEX_*
1642
SCI_SETLEXER = 4001,
1644
//! This message returns the number of the lexer being used for syntax
1646
SCI_GETLEXER = 4002,
1649
SCI_COLOURISE = 4003,
1652
SCI_SETPROPERTY = 4004,
1655
SCI_SETKEYWORDS = 4005,
1657
//! This message sets the name of the lexer to use for syntax styling.
1658
//! \a wParam is unused.
1659
//! \a lParam is the name of the lexer.
1660
SCI_SETLEXERLANGUAGE = 4006,
1663
SCI_LOADLEXERLIBRARY = 4007,
1666
SCI_GETPROPERTY = 4008,
1669
SCI_GETPROPERTYEXPANDED = 4009,
1672
SCI_GETPROPERTYINT = 4010,
1675
SCI_GETSTYLEBITSNEEDED = 4011
1680
SC_ALPHA_TRANSPARENT = 0,
1681
SC_ALPHA_OPAQUE = 255,
1682
SC_ALPHA_NOALPHA = 256
1687
SC_WRAPVISUALFLAG_NONE = 0x0000,
1688
SC_WRAPVISUALFLAG_END = 0x0001,
1689
SC_WRAPVISUALFLAG_START = 0x0002
1694
SC_WRAPVISUALFLAGLOC_DEFAULT = 0x0000,
1695
SC_WRAPVISUALFLAGLOC_END_BY_TEXT = 0x0001,
1696
SC_WRAPVISUALFLAGLOC_START_BY_TEXT = 0x0002
1699
//! This enum defines the different selection modes.
1701
//! \sa SCI_GETSELECTIONMODE, SCI_SETSELECTIONMODE
1705
SC_SEL_RECTANGLE = 1,
1712
SCWS_VISIBLEALWAYS = 1,
1713
SCWS_VISIBLEAFTERINDENT = 2
1729
//! This enum defines the different marker symbols.
1731
//! \sa SCI_MARKERDEFINE
1738
SC_MARK_ROUNDRECT = 1,
1740
//! A triangle pointing to the right.
1743
//! A smaller rectangle.
1744
SC_MARK_SMALLRECT = 3,
1746
//! An arrow pointing to the right.
1747
SC_MARK_SHORTARROW = 4,
1749
//! An invisible marker that allows code to track the movement
1753
//! A triangle pointing down.
1754
SC_MARK_ARROWDOWN = 6,
1756
//! A drawn minus sign.
1759
//! A drawn plus sign.
1762
//! A vertical line drawn in the background colour.
1765
//! A bottom left corner drawn in the background colour.
1766
SC_MARK_LCORNER = 10,
1768
//! A vertical line with a centre right horizontal line drawn
1769
//! in the background colour.
1770
SC_MARK_TCORNER = 11,
1772
//! A drawn plus sign in a box.
1773
SC_MARK_BOXPLUS = 12,
1775
//! A drawn plus sign in a connected box.
1776
SC_MARK_BOXPLUSCONNECTED = 13,
1778
//! A drawn minus sign in a box.
1779
SC_MARK_BOXMINUS = 14,
1781
//! A drawn minus sign in a connected box.
1782
SC_MARK_BOXMINUSCONNECTED = 15,
1784
//! A rounded bottom left corner drawn in the background
1786
SC_MARK_LCORNERCURVE = 16,
1788
//! A vertical line with a centre right curved line drawn in
1789
//! the background colour.
1790
SC_MARK_TCORNERCURVE = 17,
1792
//! A drawn plus sign in a circle.
1793
SC_MARK_CIRCLEPLUS = 18,
1795
//! A drawn plus sign in a connected box.
1796
SC_MARK_CIRCLEPLUSCONNECTED = 19,
1798
//! A drawn minus sign in a circle.
1799
SC_MARK_CIRCLEMINUS = 20,
1801
//! A drawn minus sign in a connected circle.
1802
SC_MARK_CIRCLEMINUSCONNECTED = 21,
1804
//! No symbol is drawn but the line of text is drawn with the
1805
//! same background colour.
1806
SC_MARK_BACKGROUND = 22,
1808
//! Three drawn dots.
1809
SC_MARK_DOTDOTDOT = 23,
1811
//! Three drawn arrows pointing right.
1812
SC_MARK_ARROWS = 24,
1814
//! An XPM format pixmap.
1815
SC_MARK_PIXMAP = 25,
1817
//! A full rectangle (ie. the margin background).
1818
SC_MARK_FULLRECT = 26,
1820
//! A left rectangle (ie. part of the margin background).
1821
SC_MARK_LEFTRECT = 27,
1823
//! Characters can be used as symbols by adding this to the ASCII value
1824
//! of the character.
1825
SC_MARK_CHARACTER = 10000
1830
SC_MARKNUM_FOLDEREND = 25,
1831
SC_MARKNUM_FOLDEROPENMID = 26,
1832
SC_MARKNUM_FOLDERMIDTAIL = 27,
1833
SC_MARKNUM_FOLDERTAIL = 28,
1834
SC_MARKNUM_FOLDERSUB = 29,
1835
SC_MARKNUM_FOLDER = 30,
1836
SC_MARKNUM_FOLDEROPEN = 31,
1837
SC_MASK_FOLDERS = 0xfe000000
1840
//! This enum defines what can be displayed in a margin.
1842
//! \sa SCI_GETMARGINTYPEN, SCI_SETMARGINTYPEN
1845
//! The margin can display symbols. Note that all margins can display
1847
SC_MARGIN_SYMBOL = 0,
1849
//! The margin will display line numbers.
1850
SC_MARGIN_NUMBER = 1,
1852
//! The margin's background color will be set to the default background
1856
//! The margin's background color will be set to the default foreground
1864
STYLE_LINENUMBER = 33,
1865
STYLE_BRACELIGHT = 34,
1866
STYLE_BRACEBAD = 35,
1867
STYLE_CONTROLCHAR = 36,
1868
STYLE_INDENTGUIDE = 37,
1870
STYLE_LASTPREDEFINED = 39,
1876
SC_CHARSET_ANSI = 0,
1877
SC_CHARSET_DEFAULT = 1,
1878
SC_CHARSET_BALTIC = 186,
1879
SC_CHARSET_CHINESEBIG5 = 136,
1880
SC_CHARSET_EASTEUROPE = 238,
1881
SC_CHARSET_GB2312 = 134,
1882
SC_CHARSET_GREEK = 161,
1883
SC_CHARSET_HANGUL = 129,
1884
SC_CHARSET_MAC = 77,
1885
SC_CHARSET_OEM = 255,
1886
SC_CHARSET_RUSSIAN = 204,
1887
SC_CHARSET_SHIFTJIS = 128,
1888
SC_CHARSET_SYMBOL = 2,
1889
SC_CHARSET_TURKISH = 162,
1890
SC_CHARSET_JOHAB = 130,
1891
SC_CHARSET_HEBREW = 177,
1892
SC_CHARSET_ARABIC = 178,
1893
SC_CHARSET_VIETNAMESE = 163,
1894
SC_CHARSET_THAI = 222,
1895
SC_CHARSET_8859_15 = 1000
1905
//! This enum defines the different indentation guide views.
1907
//! \sa SCI_GETINDENTATIONGUIDES, SCI_SETINDENTATIONGUIDES
1910
//! No indentation guides are shown.
1913
//! Indentation guides are shown inside real indentation white space.
1916
//! Indentation guides are shown beyond the actual indentation up to
1917
//! the level of the next non-empty line. If the previous non-empty
1918
//! line was a fold header then indentation guides are shown for one
1919
//! more level of indent than that line. This setting is good for
1921
SC_IV_LOOKFORWARD = 2,
1923
//! Indentation guides are shown beyond the actual indentation up to
1924
//! the level of the next non-empty line or previous non-empty line
1925
//! whichever is the greater. This setting is good for most languages.
1940
INDIC_CONTAINER = 8,
1949
SC_PRINT_NORMAL = 0,
1950
SC_PRINT_INVERTLIGHT = 1,
1951
SC_PRINT_BLACKONWHITE = 2,
1952
SC_PRINT_COLOURONWHITE = 3,
1953
SC_PRINT_COLOURONWHITEDEFAULTBG = 4
1958
SCFIND_WHOLEWORD = 2,
1959
SCFIND_MATCHCASE = 4,
1960
SCFIND_WORDSTART = 0x00100000,
1961
SCFIND_REGEXP = 0x00200000,
1962
SCFIND_POSIX = 0x00400000
1967
SC_FOLDLEVELBASE = 0x00400,
1968
SC_FOLDLEVELWHITEFLAG = 0x01000,
1969
SC_FOLDLEVELHEADERFLAG = 0x02000,
1970
SC_FOLDLEVELBOXHEADERFLAG = 0x04000,
1971
SC_FOLDLEVELBOXFOOTERFLAG = 0x08000,
1972
SC_FOLDLEVELCONTRACTED = 0x10000,
1973
SC_FOLDLEVELUNINDENT = 0x20000,
1974
SC_FOLDLEVELNUMBERMASK = 0x00fff
1979
SC_FOLDFLAG_BOX = 0x0001,
1980
SC_FOLDFLAG_LINEBEFORE_EXPANDED = 0x0002,
1981
SC_FOLDFLAG_LINEBEFORE_CONTRACTED = 0x0004,
1982
SC_FOLDFLAG_LINEAFTER_EXPANDED = 0x0008,
1983
SC_FOLDFLAG_LINEAFTER_CONTRACTED = 0x0010,
1984
SC_FOLDFLAG_LEVELNUMBERS = 0x0040
1989
SC_TIME_FOREVER = 10000000
2004
SC_CACHE_DOCUMENT = 3
2016
SC_CURSORNORMAL = -1,
2022
VISIBLE_SLOP = 0x01,
2023
VISIBLE_STRICT = 0x04
2029
CARET_STRICT = 0x04,
2036
CARETSTYLE_INVISIBLE = 0,
2037
CARETSTYLE_LINE = 1,
2038
CARETSTYLE_BLOCK = 2
2043
SC_MOD_INSERTTEXT = 0x1,
2044
SC_MOD_DELETETEXT = 0x2,
2045
SC_MOD_CHANGESTYLE = 0x4,
2046
SC_MOD_CHANGEFOLD = 0x8,
2047
SC_PERFORMED_USER = 0x10,
2048
SC_PERFORMED_UNDO = 0x20,
2049
SC_PERFORMED_REDO = 0x40,
2050
SC_MULTISTEPUNDOREDO = 0x80,
2051
SC_LASTSTEPINUNDOREDO = 0x100,
2052
SC_MOD_CHANGEMARKER = 0x200,
2053
SC_MOD_BEFOREINSERT = 0x400,
2054
SC_MOD_BEFOREDELETE = 0x800,
2055
SC_MULTILINEUNDOREDO = 0x1000,
2056
SC_STARTACTION = 0x2000,
2057
SC_MOD_CHANGEINDICATOR = 0x4000,
2058
SC_MOD_CHANGELINESTATE = 0x8000,
2059
SC_MODEVENTMASKALL = 0xffff
2086
//! This enum defines the different modifier keys.
2089
//! No modifier key.
2102
//! This enum defines the different language lexers.
2104
//! \sa SCI_GETLEXER, SCI_SETLEXER
2107
//! No lexer is selected and the SCN_STYLENEEDED signal is emitted so
2108
//! that the application can style the text as needed. This is the
2110
SCLEX_CONTAINER = 0,
2112
//! Select the null lexer that does no syntax styling.
2115
//! Select the Python lexer.
2118
//! Select the C++ lexer.
2121
//! Select the HTML lexer.
2124
//! Select the XML lexer.
2127
//! Select the Perl lexer.
2130
//! Select the SQL lexer.
2133
//! Select the Visual Basic lexer.
2136
//! Select the lexer for properties style files.
2137
SCLEX_PROPERTIES = 9,
2139
//! Select the lexer for error list style files.
2140
SCLEX_ERRORLIST = 10,
2142
//! Select the Makefile lexer.
2143
SCLEX_MAKEFILE = 11,
2145
//! Select the Windows batch file lexer.
2148
//! Select the LaTex lexer.
2151
//! Select the Lua lexer.
2154
//! Select the lexer for diff output.
2157
//! Select the lexer for Apache configuration files.
2160
//! Select the Pascal lexer.
2163
//! Select the Avenue lexer.
2166
//! Select the Ada lexer.
2169
//! Select the Lisp lexer.
2172
//! Select the Ruby lexer.
2175
//! Select the Eiffel lexer.
2178
//! Select the Eiffel lexer folding at keywords.
2179
SCLEX_EIFFELKW = 24,
2181
//! Select the Tcl lexer.
2184
//! Select the lexer for nnCron files.
2185
SCLEX_NNCRONTAB = 26,
2187
//! Select the Bullant lexer.
2190
//! Select the VBScript lexer.
2191
SCLEX_VBSCRIPT = 28,
2193
//! Select the ASP lexer.
2194
SCLEX_ASP = SCLEX_HTML,
2196
//! Select the PHP lexer.
2197
SCLEX_PHP = SCLEX_HTML,
2199
//! Select the Baan lexer.
2202
//! Select the Matlab lexer.
2205
//! Select the Scriptol lexer.
2206
SCLEX_SCRIPTOL = 33,
2208
//! Select the assembler lexer.
2211
//! Select the C++ lexer with case insensitive keywords.
2212
SCLEX_CPPNOCASE = 35,
2214
//! Select the FORTRAN lexer.
2217
//! Select the FORTRAN77 lexer.
2220
//! Select the CSS lexer.
2223
//! Select the POV lexer.
2226
//! Select the Basser Lout typesetting language lexer.
2229
//! Select the EScript lexer.
2232
//! Select the PostScript lexer.
2235
//! Select the NSIS lexer.
2238
//! Select the MMIX assembly language lexer.
2241
//! Select the Clarion lexer.
2244
//! Select the Clarion lexer with case insensitive keywords.
2245
SCLEX_CLWNOCASE = 46,
2247
//! Select the MPT text log file lexer.
2250
//! Select the YAML lexer.
2253
//! Select the TeX lexer.
2256
//! Select the Metapost lexer.
2257
SCLEX_METAPOST = 50,
2259
//! Select the PowerBASIC lexer.
2260
SCLEX_POWERBASIC = 51,
2262
//! Select the Forth lexer.
2265
//! Select the Erlang lexer.
2268
//! Select the Octave lexer.
2271
//! Select the MS SQL lexer.
2274
//! Select the Verilog lexer.
2277
//! Select the KIX-Scripts lexer.
2280
//! Select the Gui4Cli lexer.
2283
//! Select the Specman E lexer.
2286
//! Select the AutoIt3 lexer.
2289
//! Select the APDL lexer.
2292
//! Select the Bash lexer.
2295
//! Select the ASN.1 lexer.
2298
//! Select the VHDL lexer.
2301
//! Select the Caml lexer.
2304
//! Select the BlitzBasic lexer.
2305
SCLEX_BLITZBASIC = 66,
2307
//! Select the PureBasic lexer.
2308
SCLEX_PUREBASIC = 67,
2310
//! Select the Haskell lexer.
2313
//! Select the PHPScript lexer.
2314
SCLEX_PHPSCRIPT = 69,
2316
//! Select the TADS3 lexer.
2319
//! Select the REBOL lexer.
2322
//! Select the Smalltalk lexer.
2323
SCLEX_SMALLTALK = 72,
2325
//! Select the FlagShip lexer.
2326
SCLEX_FLAGSHIP = 73,
2328
//! Select the Csound lexer.
2331
//! Select the FreeBasic lexer.
2332
SCLEX_FREEBASIC = 75,
2334
//! Select the InnoSetup lexer.
2335
SCLEX_INNOSETUP = 76,
2337
//! Select the Opal lexer.
2340
//! Select the Spice lexer.
2343
//! Select the D lexer.
2346
//! Select the CMake lexer.
2349
//! Select the GAP lexer.
2352
//! Select the PLM lexer.
2355
//! Select the Progress lexer.
2356
SCLEX_PROGRESS = 83,
2358
//! Select the Abaqus lexer.
2361
//! Select the Asymptote lexer.
2362
SCLEX_ASYMPTOTE = 85,
2364
//! Select the R lexer.
2367
//! Select the MagikSF lexer.
2370
//! Select the PowerShell lexer.
2371
SCLEX_POWERSHELL = 88,
2373
//! Select the MySQL lexer.
2376
//! Select the gettext .po file lexer.
2380
//! Construct an empty QsciScintillaBase with parent \a parent.
2381
explicit QsciScintillaBase(QWidget *parent = 0);
2383
//! Destroys the QsciScintillaBase instance.
2384
virtual ~QsciScintillaBase();
2386
//! Returns a pointer to a QsciScintillaBase instance, or 0 if there isn't
2387
//! one. This can be used by the higher level API to send messages that
2388
//! aren't associated with a particular instance.
2389
static QsciScintillaBase *pool();
2391
//! Send the Scintilla message \a msg with the optional parameters \a
2392
//! wParam and \a lParam.
2393
long SendScintilla(unsigned int msg, unsigned long wParam = 0,
2394
long lParam = 0) const;
2397
long SendScintilla(unsigned int msg, unsigned long wParam,
2398
void *lParam) const;
2401
long SendScintilla(unsigned int msg, unsigned long wParam,
2402
const char *lParam) const;
2405
long SendScintilla(unsigned int msg, const char *lParam) const;
2408
long SendScintilla(unsigned int msg, const char *wParam,
2409
const char *lParam) const;
2412
long SendScintilla(unsigned int msg, long wParam) const;
2415
long SendScintilla(unsigned int msg, int wParam) const;
2418
long SendScintilla(unsigned int msg, long cpMin, long cpMax,
2419
char *lpstrText) const;
2422
long SendScintilla(unsigned int msg, unsigned long wParam,
2423
const QColor &col) const;
2426
long SendScintilla(unsigned int msg, const QColor &col) const;
2429
long SendScintilla(unsigned int msg, unsigned long wParam, QPainter *hdc,
2430
const QRect &rc, long cpMin, long cpMax) const;
2433
long SendScintilla(unsigned int msg, unsigned long wParam,
2434
const QPixmap &lParam) const;
2436
//! Send the Scintilla message \a msg and return a pointer result.
2437
void *SendScintillaPtrResult(unsigned int msg) const;
2441
//! This signal is emitted when text is selected or de-selected.
2442
//! \a yes is true if text has been selected and false if text has been
2444
void QSCN_SELCHANGED(bool yes);
2446
//! This signal is emitted when the user cancels an auto-completion list.
2448
//! \sa SCN_AUTOCSELECTION()
2449
void SCN_AUTOCCANCELLED();
2451
//! This signal is emitted when the user selects an item in an
2452
//! auto-completion list. It is emitted before the selection is inserted.
2453
//! The insertion can be cancelled by sending an SCI_AUTOCANCEL message
2454
//! from a connected slot.
2455
//! \a selection is the text of the selection.
2456
//! \a position is the start position of the word being completed.
2458
//! \sa SCN_AUTOCCANCELLED()
2459
void SCN_AUTOCSELECTION(const char *selection, int position);
2461
//! This signal is emitted when the document has changed for any reason.
2464
//! This signal ir emitted when the user clicks on a calltip.
2465
//! \a direction is 1 if the user clicked on the up arrow, 2 if the user
2466
//! clicked on the down arrow, and 0 if the user clicked elsewhere.
2467
void SCN_CALLTIPCLICK(int direction);
2469
//! This signal is emitted whenever the user enters an ordinary character
2471
//! \a charadded is the character. It can be used to decide to display a
2472
//! call tip or an auto-completion list.
2473
void SCN_CHARADDED(int charadded);
2475
//! This signal is emitted when the user double clicks.
2476
//! \a position is the position in the text where the click occured.
2477
//! \a line is the number of the line in the text where the click occured.
2478
//! \a modifiers is the logical or of the modifier keys that were pressed
2479
//! when the user double clicked.
2480
void SCN_DOUBLECLICK(int position, int line, int modifiers);
2483
void SCN_DWELLEND(int, int, int);
2486
void SCN_DWELLSTART(int, int, int);
2488
//! This signal is emitted when the user clicks on text in a style with the
2489
//! hotspot attribute set.
2490
//! \a position is the position in the text where the click occured.
2491
//! \a modifiers is the logical or of the modifier keys that were pressed
2492
//! when the user clicked.
2493
void SCN_HOTSPOTCLICK(int position, int modifiers);
2495
//! This signal is emitted when the user double clicks on text in a style
2496
//! with the hotspot attribute set.
2497
//! \a position is the position in the text where the double click occured.
2498
//! \a modifiers is the logical or of the modifier keys that were pressed
2499
//! when the user double clicked.
2500
void SCN_HOTSPOTDOUBLECLICK(int position, int modifiers);
2502
//! This signal is emitted when the user clicks on text that has an
2504
//! \a position is the position in the text where the click occured.
2505
//! \a modifiers is the logical or of the modifier keys that were pressed
2506
//! when the user clicked.
2507
void SCN_INDICATORCLICK(int position, int modifiers);
2509
//! This signal is emitted when the user releases the mouse button on text
2510
//! that has an indicator.
2511
//! \a position is the position in the text where the release occured.
2512
//! \a modifiers is the logical or of the modifier keys that were pressed
2513
//! when the user released.
2514
void SCN_INDICATORRELEASE(int position, int modifiers);
2516
//! This signal is emitted when a recordable editor command has been
2518
void SCN_MACRORECORD(unsigned int, unsigned long, void *);
2520
//! This signal is emitted when the user clicks on a sensitive margin.
2521
//! \a position is the position of the start of the line against which the
2523
//! \a modifiers is the logical or of the modifier keys that were pressed
2524
//! when the user clicked.
2525
//! \a margin is the number of the margin the user clicked in: 0, 1 or 2.
2527
//! \sa SCI_GETMARGINSENSITIVEN, SCI_SETMARGINSENSITIVEN
2528
void SCN_MARGINCLICK(int position, int modifiers, int margin);
2531
void SCN_MODIFIED(int, int, const char *, int, int, int, int, int);
2533
//! This signal is emitted when the user attempts to modify read-only
2535
void SCN_MODIFYATTEMPTRO();
2538
void SCN_NEEDSHOWN(int, int);
2540
//! This signal is emitted when painting has been completed. It is useful
2541
//! to trigger some other change but to have the paint be done first to
2542
//! appear more reponsive to the user.
2545
//! This signal is emitted when the current state of the text no longer
2546
//! corresponds to the state of the text at the save point.
2548
//! \sa SCI_SETSAVEPOINT, SCN_SAVEPOINTREACHED()
2549
void SCN_SAVEPOINTLEFT();
2551
//! This signal is emitted when the current state of the text corresponds
2552
//! to the state of the text at the save point. This allows feedback to be
2553
//! given to the user as to whether the text has been modified since it was
2556
//! \sa SCI_SETSAVEPOINT, SCN_SAVEPOINTLEFT()
2557
void SCN_SAVEPOINTREACHED();
2559
//! This signal is emitted when a range of text needs to be syntax styled.
2560
//! The range is from the value returned by the SCI_GETENDSTYLED message
2561
//! and \a position. It is only emitted if the currently selected lexer is
2562
//! SCLEX_CONTAINER.
2564
//! \sa SCI_COLOURISE, SCI_GETENDSTYLED
2565
void SCN_STYLENEEDED(int position);
2568
void SCN_UPDATEUI();
2571
void SCN_USERLISTSELECTION(const char *, int);
2577
//! Re-implemented to handle the context menu.
2578
virtual void contextMenuEvent(QContextMenuEvent *e);
2580
//! Re-implemented to handle drag enters.
2581
virtual void dragEnterEvent(QDragEnterEvent *e);
2583
//! Re-implemented to handle drag leaves.
2584
virtual void dragLeaveEvent(QDragLeaveEvent *e);
2586
//! Re-implemented to handle drag moves.
2587
virtual void dragMoveEvent(QDragMoveEvent *e);
2589
//! Re-implemented to handle drops.
2590
virtual void dropEvent(QDropEvent *e);
2592
//! Re-implemented to tell Scintilla it has the focus.
2593
virtual void focusInEvent(QFocusEvent *e);
2595
//! Re-implemented to tell Scintilla it has lost the focus.
2596
virtual void focusOutEvent(QFocusEvent *e);
2598
//! Re-implemented to allow tabs to be entered as text.
2599
virtual bool focusNextPrevChild(bool next);
2601
//! Re-implemented to handle key presses.
2602
virtual void keyPressEvent(QKeyEvent *e);
2604
//! Re-implemented to handle composed characters.
2605
virtual void inputMethodEvent(QInputMethodEvent *e);
2607
//! Re-implemented to handle mouse double-clicks.
2608
virtual void mouseDoubleClickEvent(QMouseEvent *e);
2610
//! Re-implemented to handle mouse moves.
2611
virtual void mouseMoveEvent(QMouseEvent *e);
2613
//! Re-implemented to handle mouse presses.
2614
virtual void mousePressEvent(QMouseEvent *e);
2616
//! Re-implemented to handle mouse releases.
2617
virtual void mouseReleaseEvent(QMouseEvent *e);
2619
//! Re-implemented to paint the viewport.
2620
virtual void paintEvent(QPaintEvent *e);
2622
//! Re-implemented to handle resizes.
2623
virtual void resizeEvent(QResizeEvent *e);
2625
//! \internal Re-implemented to handle scrolling.
2626
virtual void scrollContentsBy(int dx, int dy);
2630
void handleVSb(int value);
2631
void handleHSb(int value);
2632
void handleSelection();
2635
// This is needed to allow ScintillaQt to emit this class's signals.
2636
friend class ScintillaQt;
2639
QPoint triple_click_at;
2640
QTimer triple_click;
2642
QsciScintillaBase(const QsciScintillaBase &);
2643
QsciScintillaBase &operator=(const QsciScintillaBase &);