~ubuntu-branches/ubuntu/wily/tora/wily-proposed

« back to all changes in this revision

Viewing changes to src/qscintilla2/Qt4/Qsci/qsciscintillabase.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Meskes
  • Date: 2009-11-19 15:18:19 UTC
  • mfrom: (1.2.9 upstream) (3.3.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091119151819-me89ezmxzkvl0lws
Tags: 2.1.1-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// This class defines the "official" low-level API.
 
2
//
 
3
// Copyright (c) 2008 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
 
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.
 
18
// 
 
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.
 
26
// 
 
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
 
30
// granted herein.
 
31
// 
 
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.
 
34
 
 
35
 
 
36
#ifndef QSCISCINTILLABASE_H
 
37
#define QSCISCINTILLABASE_H
 
38
 
 
39
#ifdef __APPLE__
 
40
extern "C++" {
 
41
#endif
 
42
 
 
43
#include <qglobal.h>
 
44
 
 
45
#include <QAbstractScrollArea>
 
46
 
 
47
#include <qpoint.h>
 
48
#include <qtimer.h>
 
49
 
 
50
#include <Qsci/qsciglobal.h>
 
51
 
 
52
 
 
53
class QColor;
 
54
class QPainter;
 
55
class QPixmap;
 
56
 
 
57
class ScintillaQt;
 
58
 
 
59
 
 
60
//! \brief The QsciScintillaBase class implements the Scintilla editor widget
 
61
//! and its low-level API.
 
62
//!
 
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
 
66
//! editor.
 
67
//!
 
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
 
70
//! two arguments.
 
71
//!
 
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
 
75
{
 
76
    Q_OBJECT
 
77
 
 
78
public:
 
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.
 
82
    enum
 
83
    {
 
84
        //!
 
85
        SCI_START = 2000,
 
86
 
 
87
        //!
 
88
        SCI_OPTIONAL_START = 3000,
 
89
 
 
90
        //!
 
91
        SCI_LEXER_START = 4000,
 
92
 
 
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.
 
96
        SCI_ADDTEXT = 2001,
 
97
 
 
98
        //!
 
99
        SCI_ADDSTYLEDTEXT = 2002,
 
100
 
 
101
        //!
 
102
        SCI_INSERTTEXT = 2003,
 
103
 
 
104
        //!
 
105
        SCI_CLEARALL = 2004,
 
106
 
 
107
        //!
 
108
        SCI_CLEARDOCUMENTSTYLE = 2005,
 
109
 
 
110
        //!
 
111
        SCI_GETLENGTH = 2006,
 
112
 
 
113
        //!
 
114
        SCI_GETCHARAT = 2007,
 
115
 
 
116
        //! This message returns the current position.
 
117
        //! 
 
118
        //! \sa SCI_SETCURRENTPOS
 
119
        SCI_GETCURRENTPOS = 2008,
 
120
 
 
121
        //! This message returns the anchor.
 
122
        //! 
 
123
        //! \sa SCI_SETANCHOR
 
124
        SCI_GETANCHOR = 2009,
 
125
 
 
126
        //!
 
127
        SCI_GETSTYLEAT = 2010,
 
128
 
 
129
        //!
 
130
        SCI_REDO = 2011,
 
131
 
 
132
        //!
 
133
        SCI_SETUNDOCOLLECTION = 2012,
 
134
 
 
135
        //!
 
136
        SCI_SELECTALL = 2013,
 
137
 
 
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.
 
140
        //! 
 
141
        //! \sa SCN_SAVEPOINTREACHED(), SCN_SAVEPOINTLEFT()
 
142
        SCI_SETSAVEPOINT = 2014,
 
143
 
 
144
        //!
 
145
        SCI_GETSTYLEDTEXT = 2015,
 
146
 
 
147
        //!
 
148
        SCI_CANREDO = 2016,
 
149
 
 
150
        //! This message returns the line that contains a particular instance
 
151
        //! of a marker.
 
152
        //! \a wParam is the handle of the marker.
 
153
        //!
 
154
        //! \sa SCI_MARKERADD
 
155
        SCI_MARKERLINEFROMHANDLE = 2017,
 
156
 
 
157
        //! This message removes a particular instance of a marker.
 
158
        //! \a wParam is the handle of the marker.
 
159
        //!
 
160
        //! \sa SCI_MARKERADD
 
161
        SCI_MARKERDELETEHANDLE = 2018,
 
162
 
 
163
        //!
 
164
        SCI_GETUNDOCOLLECTION = 2019,
 
165
 
 
166
        //!
 
167
        SCI_GETVIEWWS = 2020,
 
168
 
 
169
        //!
 
170
        SCI_SETVIEWWS = 2021,
 
171
 
 
172
        //!
 
173
        SCI_POSITIONFROMPOINT = 2022,
 
174
 
 
175
        //!
 
176
        SCI_POSITIONFROMPOINTCLOSE = 2023,
 
177
 
 
178
        //!
 
179
        SCI_GOTOLINE = 2024,
 
180
 
 
181
        //! This message clears the current selection and sets the current
 
182
        //! position.
 
183
        //! \a wParam is the new current position.
 
184
        //! 
 
185
        //! \sa SCI_SETCURRENTPOS
 
186
        SCI_GOTOPOS = 2025,
 
187
 
 
188
        //! This message sets the anchor.
 
189
        //! \a wParam is the new anchor.
 
190
        //! 
 
191
        //! \sa SCI_GETANCHOR
 
192
        SCI_SETANCHOR = 2026,
 
193
 
 
194
        //!
 
195
        SCI_GETCURLINE = 2027,
 
196
 
 
197
        //! This message returns the character position of the start of the
 
198
        //! text that needs to be syntax styled.
 
199
        //! 
 
200
        //! \sa SCN_STYLENEEDED()
 
201
        SCI_GETENDSTYLED = 2028,
 
202
 
 
203
        //!
 
204
        SCI_CONVERTEOLS = 2029,
 
205
 
 
206
        //!
 
207
        SCI_GETEOLMODE = 2030,
 
208
 
 
209
        //!
 
210
        SCI_SETEOLMODE = 2031,
 
211
 
 
212
        //!
 
213
        SCI_STARTSTYLING = 2032,
 
214
 
 
215
        //!
 
216
        SCI_SETSTYLING = 2033,
 
217
 
 
218
        //!
 
219
        SCI_GETBUFFEREDDRAW = 2034,
 
220
 
 
221
        //!
 
222
        SCI_SETBUFFEREDDRAW = 2035,
 
223
 
 
224
        //!
 
225
        SCI_SETTABWIDTH = 2036,
 
226
 
 
227
        //!
 
228
        SCI_GETTABWIDTH = 2121,
 
229
 
 
230
        //!
 
231
        SCI_SETCODEPAGE = 2037,
 
232
 
 
233
        //!
 
234
        SCI_SETUSEPALETTE = 2039,
 
235
 
 
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.
 
240
        //!
 
241
        //! \sa SCI_MARKERADD, SCI_MARKERDEFINEPIXMAP
 
242
        SCI_MARKERDEFINE = 2040,
 
243
 
 
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
 
248
        //! is 0x000000.
 
249
        //! \a wParam is the number of the marker.
 
250
        //! \a lParam is the colour.
 
251
        //!
 
252
        //! \sa SCI_MARKERSETBACK
 
253
        SCI_MARKERSETFORE = 2041,
 
254
 
 
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
 
259
        //! is 0xffffff.
 
260
        //! \a wParam is the number of the marker.
 
261
        //! \a lParam is the colour.
 
262
        //!
 
263
        //! \sa SCI_MARKERSETFORE
 
264
        SCI_MARKERSETBACK = 2042,
 
265
 
 
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.
 
270
        //!
 
271
        //! \sa SCI_MARKERDELETE, SCI_MARKERDELETEALL,
 
272
        //! SCI_MARKERDELETEHANDLE
 
273
        SCI_MARKERADD = 2043,
 
274
 
 
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.
 
278
        //!
 
279
        //! \sa SCI_MARKERADD, SCI_MARKERDELETEALL
 
280
        SCI_MARKERDELETE = 2044,
 
281
 
 
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.
 
285
        //!
 
286
        //! \sa SCI_MARKERADD, SCI_MARKERDELETE
 
287
        SCI_MARKERDELETEALL = 2045,
 
288
 
 
289
        //! This message returns the 32 bit mask of markers at a line.
 
290
        //! \a wParam is the line number.
 
291
        SCI_MARKERGET = 2046,
 
292
 
 
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.
 
297
        //!
 
298
        //! \sa SCI_MARKERPREVIOUS
 
299
        SCI_MARKERNEXT = 2047,
 
300
 
 
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
 
303
        //! number.
 
304
        //! \a wParam is the line number to start the search from.
 
305
        //! \a lParam is the mask of markers to search for.
 
306
        //!
 
307
        //! \sa SCI_MARKERNEXT
 
308
        SCI_MARKERPREVIOUS = 2048,
 
309
 
 
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
 
315
        //! image data.
 
316
        //!
 
317
        //! \sa SCI_MARKERDEFINE
 
318
        SCI_MARKERDEFINEPIXMAP = 2049,
 
319
 
 
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.
 
323
        //!
 
324
        //! \sa SCI_GETMARGINTYPEN
 
325
        SCI_SETMARGINTYPEN = 2240,
 
326
 
 
327
        //! This message returns what can be displayed in a margin.
 
328
        //! \a wParam is the number of the margin: 0, 1 or 2.
 
329
        //!
 
330
        //! \sa SCI_SETMARGINTYPEN
 
331
        SCI_GETMARGINTYPEN = 2241,
 
332
 
 
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.
 
336
        //!
 
337
        //! \sa SCI_GETMARGINWIDTHN
 
338
        SCI_SETMARGINWIDTHN = 2242,
 
339
 
 
340
        //! This message returns the width of a margin in pixels.
 
341
        //! \a wParam is the number of the margin: 0, 1 or 2.
 
342
        //!
 
343
        //! \sa SCI_SETMARGINWIDTHN
 
344
        SCI_GETMARGINWIDTHN = 2243,
 
345
 
 
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
 
349
        //! displayed.
 
350
        //! \a wParam is the number of the margin: 0, 1 or 2.
 
351
        //! \a lParam is the new margin mask.
 
352
        //!
 
353
        //! \sa SCI_GETMARGINMASKN, SCI_MARKERDEFINE
 
354
        SCI_SETMARGINMASKN = 2244,
 
355
 
 
356
        //! This message returns the mask of a margin.
 
357
        //! \a wParam is the number of the margin: 0, 1 or 2.
 
358
        //!
 
359
        //! \sa SCI_SETMARGINMASKN
 
360
        SCI_GETMARGINMASKN = 2245,
 
361
 
 
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.
 
366
        //!
 
367
        //! \sa SCI_GETMARGINSENSITIVEN, SCN_MARGINCLICK()
 
368
        SCI_SETMARGINSENSITIVEN = 2246,
 
369
 
 
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.
 
372
        //!
 
373
        //! \sa SCI_SETMARGINSENSITIVEN, SCN_MARGINCLICK()
 
374
        SCI_GETMARGINSENSITIVEN = 2247,
 
375
 
 
376
        //!
 
377
        SCI_STYLECLEARALL = 2050,
 
378
 
 
379
        //!
 
380
        SCI_STYLESETFORE = 2051,
 
381
 
 
382
        //!
 
383
        SCI_STYLESETBACK = 2052,
 
384
 
 
385
        //!
 
386
        SCI_STYLESETBOLD = 2053,
 
387
 
 
388
        //!
 
389
        SCI_STYLESETITALIC = 2054,
 
390
 
 
391
        //!
 
392
        SCI_STYLESETSIZE = 2055,
 
393
 
 
394
        //!
 
395
        SCI_STYLESETFONT = 2056,
 
396
 
 
397
        //!
 
398
        SCI_STYLESETEOLFILLED = 2057,
 
399
 
 
400
        //!
 
401
        SCI_STYLERESETDEFAULT = 2058,
 
402
 
 
403
        //!
 
404
        SCI_STYLESETUNDERLINE = 2059,
 
405
 
 
406
        //!
 
407
        SCI_STYLESETCASE = 2060,
 
408
 
 
409
        //!
 
410
        SCI_STYLESETCHARACTERSET = 2066,
 
411
 
 
412
        //!
 
413
        SCI_SETSELFORE = 2067,
 
414
 
 
415
        //!
 
416
        SCI_SETSELBACK = 2068,
 
417
 
 
418
        //!
 
419
        SCI_SETCARETFORE = 2069,
 
420
 
 
421
        //!
 
422
        SCI_ASSIGNCMDKEY = 2070,
 
423
 
 
424
        //!
 
425
        SCI_CLEARCMDKEY = 2071,
 
426
 
 
427
        //!
 
428
        SCI_CLEARALLCMDKEYS = 2072,
 
429
 
 
430
        //!
 
431
        SCI_SETSTYLINGEX = 2073,
 
432
 
 
433
        //!
 
434
        SCI_STYLESETVISIBLE = 2074,
 
435
 
 
436
        //!
 
437
        SCI_GETCARETPERIOD = 2075,
 
438
 
 
439
        //!
 
440
        SCI_SETCARETPERIOD = 2076,
 
441
 
 
442
        //!
 
443
        SCI_SETWORDCHARS = 2077,
 
444
 
 
445
        //!
 
446
        SCI_BEGINUNDOACTION = 2078,
 
447
 
 
448
        //!
 
449
        SCI_ENDUNDOACTION = 2079,
 
450
 
 
451
        //!
 
452
        SCI_INDICSETSTYLE = 2080,
 
453
 
 
454
        //!
 
455
        SCI_INDICGETSTYLE = 2081,
 
456
 
 
457
        //!
 
458
        SCI_INDICSETFORE = 2082,
 
459
 
 
460
        //!
 
461
        SCI_INDICGETFORE = 2083,
 
462
 
 
463
        //!
 
464
        SCI_SETWHITESPACEFORE = 2084,
 
465
 
 
466
        //!
 
467
        SCI_SETWHITESPACEBACK = 2085,
 
468
 
 
469
        //!
 
470
        SCI_SETSTYLEBITS = 2090,
 
471
 
 
472
        //!
 
473
        SCI_GETSTYLEBITS = 2091,
 
474
 
 
475
        //!
 
476
        SCI_SETLINESTATE = 2092,
 
477
 
 
478
        //!
 
479
        SCI_GETLINESTATE = 2093,
 
480
 
 
481
        //!
 
482
        SCI_GETMAXLINESTATE = 2094,
 
483
 
 
484
        //!
 
485
        SCI_GETCARETLINEVISIBLE = 2095,
 
486
 
 
487
        //!
 
488
        SCI_SETCARETLINEVISIBLE = 2096,
 
489
 
 
490
        //!
 
491
        SCI_GETCARETLINEBACK = 2097,
 
492
 
 
493
        //!
 
494
        SCI_SETCARETLINEBACK = 2098,
 
495
 
 
496
        //!
 
497
        SCI_STYLESETCHANGEABLE = 2099,
 
498
 
 
499
        //!
 
500
        SCI_AUTOCSHOW = 2100,
 
501
 
 
502
        //!
 
503
        SCI_AUTOCCANCEL = 2101,
 
504
 
 
505
        //!
 
506
        SCI_AUTOCACTIVE = 2102,
 
507
 
 
508
        //!
 
509
        SCI_AUTOCPOSSTART = 2103,
 
510
 
 
511
        //!
 
512
        SCI_AUTOCCOMPLETE = 2104,
 
513
 
 
514
        //!
 
515
        SCI_AUTOCSTOPS = 2105,
 
516
 
 
517
        //!
 
518
        SCI_AUTOCSETSEPARATOR = 2106,
 
519
 
 
520
        //!
 
521
        SCI_AUTOCGETSEPARATOR = 2107,
 
522
 
 
523
        //!
 
524
        SCI_AUTOCSELECT = 2108,
 
525
 
 
526
        //!
 
527
        SCI_AUTOCSETCANCELATSTART = 2110,
 
528
 
 
529
        //!
 
530
        SCI_AUTOCGETCANCELATSTART = 2111,
 
531
 
 
532
        //!
 
533
        SCI_AUTOCSETFILLUPS = 2112,
 
534
 
 
535
        //!
 
536
        SCI_AUTOCSETCHOOSESINGLE = 2113,
 
537
 
 
538
        //!
 
539
        SCI_AUTOCGETCHOOSESINGLE = 2114,
 
540
 
 
541
        //!
 
542
        SCI_AUTOCSETIGNORECASE = 2115,
 
543
 
 
544
        //!
 
545
        SCI_AUTOCGETIGNORECASE = 2116,
 
546
 
 
547
        //!
 
548
        SCI_USERLISTSHOW = 2117,
 
549
 
 
550
        //!
 
551
        SCI_AUTOCSETAUTOHIDE = 2118,
 
552
 
 
553
        //!
 
554
        SCI_AUTOCGETAUTOHIDE = 2119,
 
555
 
 
556
        //!
 
557
        SCI_AUTOCSETDROPRESTOFWORD = 2270,
 
558
 
 
559
        //!
 
560
        SCI_AUTOCGETDROPRESTOFWORD = 2271,
 
561
 
 
562
        //!
 
563
        SCI_SETINDENT = 2122,
 
564
 
 
565
        //!
 
566
        SCI_GETINDENT = 2123,
 
567
 
 
568
        //!
 
569
        SCI_SETUSETABS = 2124,
 
570
 
 
571
        //!
 
572
        SCI_GETUSETABS = 2125,
 
573
 
 
574
        //!
 
575
        SCI_SETLINEINDENTATION = 2126,
 
576
 
 
577
        //!
 
578
        SCI_GETLINEINDENTATION = 2127,
 
579
 
 
580
        //!
 
581
        SCI_GETLINEINDENTPOSITION = 2128,
 
582
 
 
583
        //!
 
584
        SCI_GETCOLUMN = 2129,
 
585
 
 
586
        //!
 
587
        SCI_SETHSCROLLBAR = 2130,
 
588
 
 
589
        //!
 
590
        SCI_GETHSCROLLBAR = 2131,
 
591
 
 
592
        //!
 
593
        SCI_SETINDENTATIONGUIDES = 2132,
 
594
 
 
595
        //!
 
596
        SCI_GETINDENTATIONGUIDES = 2133,
 
597
 
 
598
        //!
 
599
        SCI_SETHIGHLIGHTGUIDE = 2134,
 
600
 
 
601
        //!
 
602
        SCI_GETHIGHLIGHTGUIDE = 2135,
 
603
 
 
604
        //!
 
605
        SCI_GETLINEENDPOSITION = 2136,
 
606
 
 
607
        //!
 
608
        SCI_GETCODEPAGE = 2137,
 
609
 
 
610
        //!
 
611
        SCI_GETCARETFORE = 2138,
 
612
 
 
613
        //!
 
614
        SCI_GETUSEPALETTE = 2139,
 
615
 
 
616
        //! This message returns a non-zero value if the document is read-only.
 
617
        //! 
 
618
        //! \sa SCI_SETREADONLY
 
619
        SCI_GETREADONLY = 2140,
 
620
 
 
621
        //! This message sets the current position.
 
622
        //! \a wParam is the new current position.
 
623
        //! 
 
624
        //! \sa SCI_GETCURRENTPOS
 
625
        SCI_SETCURRENTPOS = 2141,
 
626
 
 
627
        //!
 
628
        SCI_SETSELECTIONSTART = 2142,
 
629
 
 
630
        //!
 
631
        SCI_GETSELECTIONSTART = 2143,
 
632
 
 
633
        //!
 
634
        SCI_SETSELECTIONEND = 2144,
 
635
 
 
636
        //!
 
637
        SCI_GETSELECTIONEND = 2145,
 
638
 
 
639
        //!
 
640
        SCI_SETPRINTMAGNIFICATION = 2146,
 
641
 
 
642
        //!
 
643
        SCI_GETPRINTMAGNIFICATION = 2147,
 
644
 
 
645
        //!
 
646
        SCI_SETPRINTCOLOURMODE = 2148,
 
647
 
 
648
        //!
 
649
        SCI_GETPRINTCOLOURMODE = 2149,
 
650
 
 
651
        //!
 
652
        SCI_FINDTEXT = 2150,
 
653
 
 
654
        //!
 
655
        SCI_FORMATRANGE = 2151,
 
656
 
 
657
        //!
 
658
        SCI_GETFIRSTVISIBLELINE = 2152,
 
659
 
 
660
        //!
 
661
        SCI_GETLINE = 2153,
 
662
 
 
663
        //!
 
664
        SCI_GETLINECOUNT = 2154,
 
665
 
 
666
        //!
 
667
        SCI_SETMARGINLEFT = 2155,
 
668
 
 
669
        //!
 
670
        SCI_GETMARGINLEFT = 2156,
 
671
 
 
672
        //!
 
673
        SCI_SETMARGINRIGHT = 2157,
 
674
 
 
675
        //!
 
676
        SCI_GETMARGINRIGHT = 2158,
 
677
 
 
678
        //! This message returns a non-zero value if the document has been
 
679
        //! modified.
 
680
        SCI_GETMODIFY = 2159,
 
681
 
 
682
        //!
 
683
        SCI_SETSEL = 2160,
 
684
 
 
685
        //!
 
686
        SCI_GETSELTEXT = 2161,
 
687
 
 
688
        //!
 
689
        SCI_GETTEXTRANGE = 2162,
 
690
 
 
691
        //!
 
692
        SCI_HIDESELECTION = 2163,
 
693
 
 
694
        //!
 
695
        SCI_POINTXFROMPOSITION = 2164,
 
696
 
 
697
        //!
 
698
        SCI_POINTYFROMPOSITION = 2165,
 
699
 
 
700
        //!
 
701
        SCI_LINEFROMPOSITION = 2166,
 
702
 
 
703
        //!
 
704
        SCI_POSITIONFROMLINE = 2167,
 
705
 
 
706
        //!
 
707
        SCI_LINESCROLL = 2168,
 
708
 
 
709
        //!
 
710
        SCI_SCROLLCARET = 2169,
 
711
 
 
712
        //!
 
713
        SCI_REPLACESEL = 2170,
 
714
 
 
715
        //! This message sets the read-only state of the document.
 
716
        //! \a wParam is the new read-only state of the document.
 
717
        //! 
 
718
        //! \sa SCI_GETREADONLY
 
719
        SCI_SETREADONLY = 2171,
 
720
 
 
721
        //!
 
722
        SCI_NULL = 2172,
 
723
 
 
724
        //!
 
725
        SCI_CANPASTE = 2173,
 
726
 
 
727
        //!
 
728
        SCI_CANUNDO = 2174,
 
729
 
 
730
        //! This message empties the undo buffer.
 
731
        SCI_EMPTYUNDOBUFFER = 2175,
 
732
 
 
733
        //!
 
734
        SCI_UNDO = 2176,
 
735
 
 
736
        //!
 
737
        SCI_CUT = 2177,
 
738
 
 
739
        //!
 
740
        SCI_COPY = 2178,
 
741
 
 
742
        //!
 
743
        SCI_PASTE = 2179,
 
744
 
 
745
        //!
 
746
        SCI_CLEAR = 2180,
 
747
 
 
748
        //! This message sets the text of the document.
 
749
        //! \a wParam is unused.
 
750
        //! \a lParam is the new text of the document.
 
751
        //! 
 
752
        //! \sa SCI_GETTEXT
 
753
        SCI_SETTEXT = 2181,
 
754
 
 
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.
 
758
        //! 
 
759
        //! \sa SCI_SETTEXT
 
760
        SCI_GETTEXT = 2182,
 
761
 
 
762
        //! This message returns the length of the document.
 
763
        SCI_GETTEXTLENGTH = 2183,
 
764
 
 
765
        //!
 
766
        SCI_GETDIRECTFUNCTION = 2184,
 
767
 
 
768
        //!
 
769
        SCI_GETDIRECTPOINTER = 2185,
 
770
 
 
771
        //!
 
772
        SCI_SETOVERTYPE = 2186,
 
773
 
 
774
        //!
 
775
        SCI_GETOVERTYPE = 2187,
 
776
 
 
777
        //!
 
778
        SCI_SETCARETWIDTH = 2188,
 
779
 
 
780
        //!
 
781
        SCI_GETCARETWIDTH = 2189,
 
782
 
 
783
        //!
 
784
        SCI_SETTARGETSTART = 2190,
 
785
 
 
786
        //!
 
787
        SCI_GETTARGETSTART = 2191,
 
788
 
 
789
        //!
 
790
        SCI_SETTARGETEND = 2192,
 
791
 
 
792
        //!
 
793
        SCI_GETTARGETEND = 2193,
 
794
 
 
795
        //!
 
796
        SCI_REPLACETARGET = 2194,
 
797
 
 
798
        //!
 
799
        SCI_REPLACETARGETRE = 2195,
 
800
 
 
801
        //!
 
802
        SCI_SEARCHINTARGET = 2197,
 
803
 
 
804
        //!
 
805
        SCI_SETSEARCHFLAGS = 2198,
 
806
 
 
807
        //!
 
808
        SCI_GETSEARCHFLAGS = 2199,
 
809
 
 
810
        //!
 
811
        SCI_CALLTIPSHOW = 2200,
 
812
 
 
813
        //!
 
814
        SCI_CALLTIPCANCEL = 2201,
 
815
 
 
816
        //!
 
817
        SCI_CALLTIPACTIVE = 2202,
 
818
 
 
819
        //!
 
820
        SCI_CALLTIPPOSSTART = 2203,
 
821
 
 
822
        //!
 
823
        SCI_CALLTIPSETHLT = 2204,
 
824
 
 
825
        //!
 
826
        SCI_CALLTIPSETBACK = 2205,
 
827
 
 
828
        //!
 
829
        SCI_CALLTIPSETFORE = 2206,
 
830
 
 
831
        //!
 
832
        SCI_CALLTIPSETFOREHLT = 2207,
 
833
 
 
834
        //!
 
835
        SCI_AUTOCSETMAXWIDTH = 2208,
 
836
 
 
837
        //!
 
838
        SCI_AUTOCGETMAXWIDTH = 2209,
 
839
 
 
840
        //! This message is not implemented.
 
841
        SCI_AUTOCSETMAXHEIGHT = 2210,
 
842
 
 
843
        //!
 
844
        SCI_AUTOCGETMAXHEIGHT = 2211,
 
845
 
 
846
        //!
 
847
        SCI_CALLTIPUSESTYLE = 2212,
 
848
 
 
849
        //!
 
850
        SCI_VISIBLEFROMDOCLINE = 2220,
 
851
 
 
852
        //!
 
853
        SCI_DOCLINEFROMVISIBLE = 2221,
 
854
 
 
855
        //!
 
856
        SCI_SETFOLDLEVEL = 2222,
 
857
 
 
858
        //!
 
859
        SCI_GETFOLDLEVEL = 2223,
 
860
 
 
861
        //!
 
862
        SCI_GETLASTCHILD = 2224,
 
863
 
 
864
        //!
 
865
        SCI_GETFOLDPARENT = 2225,
 
866
 
 
867
        //!
 
868
        SCI_SHOWLINES = 2226,
 
869
 
 
870
        //!
 
871
        SCI_HIDELINES = 2227,
 
872
 
 
873
        //!
 
874
        SCI_GETLINEVISIBLE = 2228,
 
875
 
 
876
        //!
 
877
        SCI_SETFOLDEXPANDED = 2229,
 
878
 
 
879
        //!
 
880
        SCI_GETFOLDEXPANDED = 2230,
 
881
 
 
882
        //!
 
883
        SCI_TOGGLEFOLD = 2231,
 
884
 
 
885
        //!
 
886
        SCI_ENSUREVISIBLE = 2232,
 
887
 
 
888
        //!
 
889
        SCI_SETFOLDFLAGS = 2233,
 
890
 
 
891
        //!
 
892
        SCI_ENSUREVISIBLEENFORCEPOLICY = 2234,
 
893
 
 
894
        //!
 
895
        SCI_WRAPCOUNT = 2235,
 
896
 
 
897
        //!
 
898
        SCI_SETTABINDENTS = 2260,
 
899
 
 
900
        //!
 
901
        SCI_GETTABINDENTS = 2261,
 
902
 
 
903
        //!
 
904
        SCI_SETBACKSPACEUNINDENTS = 2262,
 
905
 
 
906
        //!
 
907
        SCI_GETBACKSPACEUNINDENTS = 2263,
 
908
 
 
909
        //!
 
910
        SCI_SETMOUSEDWELLTIME = 2264,
 
911
 
 
912
        //!
 
913
        SCI_GETMOUSEDWELLTIME = 2265,
 
914
 
 
915
        //!
 
916
        SCI_WORDSTARTPOSITION = 2266,
 
917
 
 
918
        //!
 
919
        SCI_WORDENDPOSITION = 2267,
 
920
 
 
921
        //!
 
922
        SCI_SETWRAPMODE = 2268,
 
923
 
 
924
        //!
 
925
        SCI_GETWRAPMODE = 2269,
 
926
 
 
927
        //!
 
928
        SCI_SETLAYOUTCACHE = 2272,
 
929
 
 
930
        //!
 
931
        SCI_GETLAYOUTCACHE = 2273,
 
932
 
 
933
        //!
 
934
        SCI_SETSCROLLWIDTH = 2274,
 
935
 
 
936
        //!
 
937
        SCI_GETSCROLLWIDTH = 2275,
 
938
 
 
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,
 
945
 
 
946
        //!
 
947
        SCI_SETENDATLASTLINE = 2277,
 
948
 
 
949
        //!
 
950
        SCI_GETENDATLASTLINE = 2278,
 
951
 
 
952
        //!
 
953
        SCI_TEXTHEIGHT = 2279,
 
954
 
 
955
        //!
 
956
        SCI_SETVSCROLLBAR = 2280,
 
957
 
 
958
        //!
 
959
        SCI_GETVSCROLLBAR = 2281,
 
960
 
 
961
        //!
 
962
        SCI_APPENDTEXT = 2282,
 
963
 
 
964
        //!
 
965
        SCI_GETTWOPHASEDRAW = 2283,
 
966
 
 
967
        //!
 
968
        SCI_SETTWOPHASEDRAW = 2284,
 
969
 
 
970
        //!
 
971
        SCI_AUTOCGETTYPESEPARATOR = 2285,
 
972
 
 
973
        //!
 
974
        SCI_AUTOCSETTYPESEPARATOR = 2286,
 
975
 
 
976
        //!
 
977
        SCI_TARGETFROMSELECTION = 2287,
 
978
 
 
979
        //!
 
980
        SCI_LINESJOIN = 2288,
 
981
 
 
982
        //!
 
983
        SCI_LINESSPLIT = 2289,
 
984
 
 
985
        //!
 
986
        SCI_SETFOLDMARGINCOLOUR = 2290,
 
987
 
 
988
        //!
 
989
        SCI_SETFOLDMARGINHICOLOUR = 2291,
 
990
 
 
991
        //!
 
992
        SCI_LINEDOWN = 2300,
 
993
 
 
994
        //!
 
995
        SCI_LINEDOWNEXTEND = 2301,
 
996
 
 
997
        //!
 
998
        SCI_LINEUP = 2302,
 
999
 
 
1000
        //!
 
1001
        SCI_LINEUPEXTEND = 2303,
 
1002
 
 
1003
        //!
 
1004
        SCI_CHARLEFT = 2304,
 
1005
 
 
1006
        //!
 
1007
        SCI_CHARLEFTEXTEND = 2305,
 
1008
 
 
1009
        //!
 
1010
        SCI_CHARRIGHT = 2306,
 
1011
 
 
1012
        //!
 
1013
        SCI_CHARRIGHTEXTEND = 2307,
 
1014
 
 
1015
        //!
 
1016
        SCI_WORDLEFT = 2308,
 
1017
 
 
1018
        //!
 
1019
        SCI_WORDLEFTEXTEND = 2309,
 
1020
 
 
1021
        //!
 
1022
        SCI_WORDRIGHT = 2310,
 
1023
 
 
1024
        //!
 
1025
        SCI_WORDRIGHTEXTEND = 2311,
 
1026
 
 
1027
        //!
 
1028
        SCI_HOME = 2312,
 
1029
 
 
1030
        //!
 
1031
        SCI_HOMEEXTEND = 2313,
 
1032
 
 
1033
        //!
 
1034
        SCI_LINEEND = 2314,
 
1035
 
 
1036
        //!
 
1037
        SCI_LINEENDEXTEND = 2315,
 
1038
 
 
1039
        //!
 
1040
        SCI_DOCUMENTSTART = 2316,
 
1041
 
 
1042
        //!
 
1043
        SCI_DOCUMENTSTARTEXTEND = 2317,
 
1044
 
 
1045
        //!
 
1046
        SCI_DOCUMENTEND = 2318,
 
1047
 
 
1048
        //!
 
1049
        SCI_DOCUMENTENDEXTEND = 2319,
 
1050
 
 
1051
        //!
 
1052
        SCI_PAGEUP = 2320,
 
1053
 
 
1054
        //!
 
1055
        SCI_PAGEUPEXTEND = 2321,
 
1056
 
 
1057
        //!
 
1058
        SCI_PAGEDOWN = 2322,
 
1059
 
 
1060
        //!
 
1061
        SCI_PAGEDOWNEXTEND = 2323,
 
1062
 
 
1063
        //!
 
1064
        SCI_EDITTOGGLEOVERTYPE = 2324,
 
1065
 
 
1066
        //!
 
1067
        SCI_CANCEL = 2325,
 
1068
 
 
1069
        //!
 
1070
        SCI_DELETEBACK = 2326,
 
1071
 
 
1072
        //!
 
1073
        SCI_TAB = 2327,
 
1074
 
 
1075
        //!
 
1076
        SCI_BACKTAB = 2328,
 
1077
 
 
1078
        //!
 
1079
        SCI_NEWLINE = 2329,
 
1080
 
 
1081
        //!
 
1082
        SCI_FORMFEED = 2330,
 
1083
 
 
1084
        //!
 
1085
        SCI_VCHOME = 2331,
 
1086
 
 
1087
        //!
 
1088
        SCI_VCHOMEEXTEND = 2332,
 
1089
 
 
1090
        //!
 
1091
        SCI_ZOOMIN = 2333,
 
1092
 
 
1093
        //!
 
1094
        SCI_ZOOMOUT = 2334,
 
1095
 
 
1096
        //!
 
1097
        SCI_DELWORDLEFT = 2335,
 
1098
 
 
1099
        //!
 
1100
        SCI_DELWORDRIGHT = 2336,
 
1101
 
 
1102
        //!
 
1103
        SCI_LINECUT = 2337,
 
1104
 
 
1105
        //!
 
1106
        SCI_LINEDELETE = 2338,
 
1107
 
 
1108
        //!
 
1109
        SCI_LINETRANSPOSE = 2339,
 
1110
 
 
1111
        //!
 
1112
        SCI_LOWERCASE = 2340,
 
1113
 
 
1114
        //!
 
1115
        SCI_UPPERCASE = 2341,
 
1116
 
 
1117
        //!
 
1118
        SCI_LINESCROLLDOWN = 2342,
 
1119
 
 
1120
        //!
 
1121
        SCI_LINESCROLLUP = 2343,
 
1122
 
 
1123
        //!
 
1124
        SCI_DELETEBACKNOTLINE = 2344,
 
1125
 
 
1126
        //!
 
1127
        SCI_HOMEDISPLAY = 2345,
 
1128
 
 
1129
        //!
 
1130
        SCI_HOMEDISPLAYEXTEND = 2346,
 
1131
 
 
1132
        //!
 
1133
        SCI_LINEENDDISPLAY = 2347,
 
1134
 
 
1135
        //!
 
1136
        SCI_LINEENDDISPLAYEXTEND = 2348,
 
1137
 
 
1138
        //!
 
1139
        SCI_MOVECARETINSIDEVIEW = 2401,
 
1140
 
 
1141
        //!
 
1142
        SCI_LINELENGTH = 2350,
 
1143
 
 
1144
        //!
 
1145
        SCI_BRACEHIGHLIGHT = 2351,
 
1146
 
 
1147
        //!
 
1148
        SCI_BRACEBADLIGHT = 2352,
 
1149
 
 
1150
        //!
 
1151
        SCI_BRACEMATCH = 2353,
 
1152
 
 
1153
        //!
 
1154
        SCI_GETVIEWEOL = 2355,
 
1155
 
 
1156
        //!
 
1157
        SCI_SETVIEWEOL = 2356,
 
1158
 
 
1159
        //!
 
1160
        SCI_GETDOCPOINTER = 2357,
 
1161
 
 
1162
        //!
 
1163
        SCI_SETDOCPOINTER = 2358,
 
1164
 
 
1165
        //!
 
1166
        SCI_SETMODEVENTMASK = 2359,
 
1167
 
 
1168
        //!
 
1169
        SCI_GETEDGECOLUMN = 2360,
 
1170
 
 
1171
        //!
 
1172
        SCI_SETEDGECOLUMN = 2361,
 
1173
 
 
1174
        //!
 
1175
        SCI_GETEDGEMODE = 2362,
 
1176
 
 
1177
        //!
 
1178
        SCI_SETEDGEMODE = 2363,
 
1179
 
 
1180
        //!
 
1181
        SCI_GETEDGECOLOUR = 2364,
 
1182
 
 
1183
        //!
 
1184
        SCI_SETEDGECOLOUR = 2365,
 
1185
 
 
1186
        //!
 
1187
        SCI_SEARCHANCHOR = 2366,
 
1188
 
 
1189
        //!
 
1190
        SCI_SEARCHNEXT = 2367,
 
1191
 
 
1192
        //!
 
1193
        SCI_SEARCHPREV = 2368,
 
1194
 
 
1195
        //!
 
1196
        SCI_LINESONSCREEN = 2370,
 
1197
 
 
1198
        //!
 
1199
        SCI_USEPOPUP = 2371,
 
1200
 
 
1201
        //!
 
1202
        SCI_SELECTIONISRECTANGLE = 2372,
 
1203
 
 
1204
        //!
 
1205
        SCI_SETZOOM = 2373,
 
1206
 
 
1207
        //!
 
1208
        SCI_GETZOOM = 2374,
 
1209
 
 
1210
        //!
 
1211
        SCI_CREATEDOCUMENT = 2375,
 
1212
 
 
1213
        //!
 
1214
        SCI_ADDREFDOCUMENT = 2376,
 
1215
 
 
1216
        //!
 
1217
        SCI_RELEASEDOCUMENT = 2377,
 
1218
 
 
1219
        //!
 
1220
        SCI_GETMODEVENTMASK = 2378,
 
1221
 
 
1222
        //!
 
1223
        SCI_SETFOCUS = 2380,
 
1224
 
 
1225
        //!
 
1226
        SCI_GETFOCUS = 2381,
 
1227
 
 
1228
        //!
 
1229
        SCI_SETSTATUS = 2382,
 
1230
 
 
1231
        //!
 
1232
        SCI_GETSTATUS = 2383,
 
1233
 
 
1234
        //!
 
1235
        SCI_SETMOUSEDOWNCAPTURES = 2384,
 
1236
 
 
1237
        //!
 
1238
        SCI_GETMOUSEDOWNCAPTURES = 2385,
 
1239
 
 
1240
        //!
 
1241
        SCI_SETCURSOR = 2386,
 
1242
 
 
1243
        //!
 
1244
        SCI_GETCURSOR = 2387,
 
1245
 
 
1246
        //!
 
1247
        SCI_SETCONTROLCHARSYMBOL = 2388,
 
1248
 
 
1249
        //!
 
1250
        SCI_GETCONTROLCHARSYMBOL = 2389,
 
1251
 
 
1252
        //!
 
1253
        SCI_WORDPARTLEFT = 2390,
 
1254
 
 
1255
        //!
 
1256
        SCI_WORDPARTLEFTEXTEND = 2391,
 
1257
 
 
1258
        //!
 
1259
        SCI_WORDPARTRIGHT = 2392,
 
1260
 
 
1261
        //!
 
1262
        SCI_WORDPARTRIGHTEXTEND = 2393,
 
1263
 
 
1264
        //!
 
1265
        SCI_SETVISIBLEPOLICY = 2394,
 
1266
 
 
1267
        //!
 
1268
        SCI_DELLINELEFT = 2395,
 
1269
 
 
1270
        //!
 
1271
        SCI_DELLINERIGHT = 2396,
 
1272
 
 
1273
        //!
 
1274
        SCI_SETXOFFSET = 2397,
 
1275
 
 
1276
        //!
 
1277
        SCI_GETXOFFSET = 2398,
 
1278
 
 
1279
        //!
 
1280
        SCI_CHOOSECARETX = 2399,
 
1281
 
 
1282
        //!
 
1283
        SCI_GRABFOCUS = 2400,
 
1284
 
 
1285
        //!
 
1286
        SCI_SETXCARETPOLICY = 2402,
 
1287
 
 
1288
        //!
 
1289
        SCI_SETYCARETPOLICY = 2403,
 
1290
 
 
1291
        //!
 
1292
        SCI_LINEDUPLICATE = 2404,
 
1293
 
 
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
 
1299
        //! image data.
 
1300
        //!
 
1301
        //! \sa SCI_CLEARREGISTEREDIMAGES
 
1302
        SCI_REGISTERIMAGE = 2405,
 
1303
 
 
1304
        //!
 
1305
        SCI_SETPRINTWRAPMODE = 2406,
 
1306
 
 
1307
        //!
 
1308
        SCI_GETPRINTWRAPMODE = 2407,
 
1309
 
 
1310
        //! This message de-registers all currently registered images.
 
1311
        //!
 
1312
        //! \sa SCI_REGISTERIMAGE
 
1313
        SCI_CLEARREGISTEREDIMAGES = 2408,
 
1314
 
 
1315
        //!
 
1316
        SCI_STYLESETHOTSPOT = 2409,
 
1317
 
 
1318
        //!
 
1319
        SCI_SETHOTSPOTACTIVEFORE = 2410,
 
1320
 
 
1321
        //!
 
1322
        SCI_SETHOTSPOTACTIVEBACK = 2411,
 
1323
 
 
1324
        //!
 
1325
        SCI_SETHOTSPOTACTIVEUNDERLINE = 2412,
 
1326
 
 
1327
        //!
 
1328
        SCI_PARADOWN = 2413,
 
1329
 
 
1330
        //!
 
1331
        SCI_PARADOWNEXTEND = 2414,
 
1332
 
 
1333
        //!
 
1334
        SCI_PARAUP = 2415,
 
1335
 
 
1336
        //!
 
1337
        SCI_PARAUPEXTEND = 2416,
 
1338
 
 
1339
        //!
 
1340
        SCI_POSITIONBEFORE = 2417,
 
1341
 
 
1342
        //!
 
1343
        SCI_POSITIONAFTER = 2418,
 
1344
 
 
1345
        //!
 
1346
        SCI_COPYRANGE = 2419,
 
1347
 
 
1348
        //!
 
1349
        SCI_COPYTEXT = 2420,
 
1350
 
 
1351
        //!
 
1352
        SCI_SETSELECTIONMODE = 2422,
 
1353
 
 
1354
        //!
 
1355
        SCI_GETSELECTIONMODE = 2423,
 
1356
 
 
1357
        //!
 
1358
        SCI_GETLINESELSTARTPOSITION = 2424,
 
1359
 
 
1360
        //!
 
1361
        SCI_GETLINESELENDPOSITION = 2425,
 
1362
 
 
1363
        //!
 
1364
        SCI_LINEDOWNRECTEXTEND = 2426,
 
1365
 
 
1366
        //!
 
1367
        SCI_LINEUPRECTEXTEND = 2427,
 
1368
 
 
1369
        //!
 
1370
        SCI_CHARLEFTRECTEXTEND = 2428,
 
1371
 
 
1372
        //!
 
1373
        SCI_CHARRIGHTRECTEXTEND = 2429,
 
1374
 
 
1375
        //!
 
1376
        SCI_HOMERECTEXTEND = 2430,
 
1377
 
 
1378
        //!
 
1379
        SCI_VCHOMERECTEXTEND = 2431,
 
1380
 
 
1381
        //!
 
1382
        SCI_LINEENDRECTEXTEND = 2432,
 
1383
 
 
1384
        //!
 
1385
        SCI_PAGEUPRECTEXTEND = 2433,
 
1386
 
 
1387
        //!
 
1388
        SCI_PAGEDOWNRECTEXTEND = 2434,
 
1389
 
 
1390
        //!
 
1391
        SCI_STUTTEREDPAGEUP = 2435,
 
1392
 
 
1393
        //!
 
1394
        SCI_STUTTEREDPAGEUPEXTEND = 2436,
 
1395
 
 
1396
        //!
 
1397
        SCI_STUTTEREDPAGEDOWN = 2437,
 
1398
 
 
1399
        //!
 
1400
        SCI_STUTTEREDPAGEDOWNEXTEND = 2438,
 
1401
 
 
1402
        //!
 
1403
        SCI_WORDLEFTEND = 2439,
 
1404
 
 
1405
        //!
 
1406
        SCI_WORDLEFTENDEXTEND = 2440,
 
1407
 
 
1408
        //!
 
1409
        SCI_WORDRIGHTEND = 2441,
 
1410
 
 
1411
        //!
 
1412
        SCI_WORDRIGHTENDEXTEND = 2442,
 
1413
 
 
1414
        //!
 
1415
        SCI_SETWHITESPACECHARS = 2443,
 
1416
 
 
1417
        //!
 
1418
        SCI_SETCHARSDEFAULT = 2444,
 
1419
 
 
1420
        //!
 
1421
        SCI_AUTOCGETCURRENT = 2445,
 
1422
 
 
1423
        //!
 
1424
        SCI_ALLOCATE = 2446,
 
1425
 
 
1426
        //!
 
1427
        SCI_HOMEWRAP = 2349,
 
1428
 
 
1429
        //!
 
1430
        SCI_HOMEWRAPEXTEND = 2450,
 
1431
 
 
1432
        //!
 
1433
        SCI_LINEENDWRAP = 2451,
 
1434
 
 
1435
        //!
 
1436
        SCI_LINEENDWRAPEXTEND = 2452,
 
1437
 
 
1438
        //!
 
1439
        SCI_VCHOMEWRAP = 2453,
 
1440
 
 
1441
        //!
 
1442
        SCI_VCHOMEWRAPEXTEND = 2454,
 
1443
 
 
1444
        //!
 
1445
        SCI_LINECOPY = 2455,
 
1446
 
 
1447
        //!
 
1448
        SCI_FINDCOLUMN = 2456,
 
1449
 
 
1450
        //!
 
1451
        SCI_GETCARETSTICKY = 2457,
 
1452
 
 
1453
        //!
 
1454
        SCI_SETCARETSTICKY = 2458,
 
1455
 
 
1456
        //!
 
1457
        SCI_TOGGLECARETSTICKY = 2459,
 
1458
 
 
1459
        //!
 
1460
        SCI_SETWRAPVISUALFLAGS = 2460,
 
1461
 
 
1462
        //!
 
1463
        SCI_GETWRAPVISUALFLAGS = 2461,
 
1464
 
 
1465
        //!
 
1466
        SCI_SETWRAPVISUALFLAGSLOCATION = 2462,
 
1467
 
 
1468
        //!
 
1469
        SCI_GETWRAPVISUALFLAGSLOCATION = 2463,
 
1470
 
 
1471
        //!
 
1472
        SCI_SETWRAPSTARTINDENT = 2464,
 
1473
 
 
1474
        //!
 
1475
        SCI_GETWRAPSTARTINDENT = 2465,
 
1476
 
 
1477
        //!
 
1478
        SCI_MARKERADDSET = 2466,
 
1479
 
 
1480
        //!
 
1481
        SCI_SETPASTECONVERTENDINGS = 2467,
 
1482
 
 
1483
        //!
 
1484
        SCI_GETPASTECONVERTENDINGS = 2468,
 
1485
 
 
1486
        //!
 
1487
        SCI_SELECTIONDUPLICATE = 2469,
 
1488
 
 
1489
        //!
 
1490
        SCI_SETCARETLINEBACKALPHA = 2470,
 
1491
 
 
1492
        //!
 
1493
        SCI_GETCARETLINEBACKALPHA = 2471,
 
1494
 
 
1495
        //!
 
1496
        SCI_MARKERSETALPHA = 2476,
 
1497
 
 
1498
        //!
 
1499
        SCI_GETSELALPHA = 2477,
 
1500
 
 
1501
        //!
 
1502
        SCI_SETSELALPHA = 2478,
 
1503
 
 
1504
        //!
 
1505
        SCI_GETSELEOLFILLED = 2479,
 
1506
 
 
1507
        //!
 
1508
        SCI_SETSELEOLFILLED = 2480,
 
1509
 
 
1510
        //!
 
1511
        SCI_STYLEGETFORE = 2481,
 
1512
 
 
1513
        //!
 
1514
        SCI_STYLEGETBACK = 2482,
 
1515
 
 
1516
        //!
 
1517
        SCI_STYLEGETBOLD = 2483,
 
1518
 
 
1519
        //!
 
1520
        SCI_STYLEGETITALIC = 2484,
 
1521
 
 
1522
        //!
 
1523
        SCI_STYLEGETSIZE = 2485,
 
1524
 
 
1525
        //!
 
1526
        SCI_STYLEGETFONT = 2486,
 
1527
 
 
1528
        //!
 
1529
        SCI_STYLEGETEOLFILLED = 2487,
 
1530
 
 
1531
        //!
 
1532
        SCI_STYLEGETUNDERLINE = 2488,
 
1533
 
 
1534
        //!
 
1535
        SCI_STYLEGETCASE = 2489,
 
1536
 
 
1537
        //!
 
1538
        SCI_STYLEGETCHARACTERSET = 2490,
 
1539
 
 
1540
        //!
 
1541
        SCI_STYLEGETVISIBLE = 2491,
 
1542
 
 
1543
        //!
 
1544
        SCI_STYLEGETCHANGEABLE = 2492,
 
1545
 
 
1546
        //!
 
1547
        SCI_STYLEGETHOTSPOT = 2493,
 
1548
 
 
1549
        //!
 
1550
        SCI_GETHOTSPOTACTIVEFORE = 2494,
 
1551
 
 
1552
        //!
 
1553
        SCI_GETHOTSPOTACTIVEBACK = 2495,
 
1554
 
 
1555
        //!
 
1556
        SCI_GETHOTSPOTACTIVEUNDERLINE = 2496,
 
1557
 
 
1558
        //!
 
1559
        SCI_GETHOTSPOTSINGLELINE = 2497,
 
1560
 
 
1561
        //!
 
1562
        SCI_SETINDICATORCURRENT = 2500,
 
1563
 
 
1564
        //!
 
1565
        SCI_GETINDICATORCURRENT = 2501,
 
1566
 
 
1567
        //!
 
1568
        SCI_SETINDICATORVALUE = 2502,
 
1569
 
 
1570
        //!
 
1571
        SCI_GETINDICATORVALUE = 2503,
 
1572
 
 
1573
        //!
 
1574
        SCI_INDICATORFILLRANGE = 2504,
 
1575
 
 
1576
        //!
 
1577
        SCI_INDICATORCLEARRANGE = 2505,
 
1578
 
 
1579
        //!
 
1580
        SCI_INDICATORALLONFOR = 2506,
 
1581
 
 
1582
        //!
 
1583
        SCI_INDICATORVALUEAT = 2507,
 
1584
 
 
1585
        //!
 
1586
        SCI_INDICATORSTART = 2508,
 
1587
 
 
1588
        //!
 
1589
        SCI_INDICATOREND = 2509,
 
1590
 
 
1591
        //!
 
1592
        SCI_INDICSETUNDER = 2510,
 
1593
 
 
1594
        //!
 
1595
        SCI_INDICGETUNDER = 2511,
 
1596
 
 
1597
        //!
 
1598
        SCI_SETCARETSTYLE = 2512,
 
1599
 
 
1600
        //!
 
1601
        SCI_GETCARETSTYLE = 2513,
 
1602
 
 
1603
        //!
 
1604
        SCI_SETPOSITIONCACHE = 2514,
 
1605
 
 
1606
        //!
 
1607
        SCI_GETPOSITIONCACHE = 2515,
 
1608
 
 
1609
        //!
 
1610
        SCI_SETSCROLLWIDTHTRACKING = 2516,
 
1611
 
 
1612
        //!
 
1613
        SCI_GETSCROLLWIDTHTRACKING = 2517,
 
1614
 
 
1615
        //!
 
1616
        SCI_DELWORDRIGHTEND = 2518,
 
1617
 
 
1618
        //! This message copies the selection.  If the selection is empty then
 
1619
        //! copy the line with the caret.
 
1620
        SCI_COPYALLOWLINE = 2519,
 
1621
 
 
1622
        //! This message returns a pointer to the document text.  Any
 
1623
        //! subsequent message will invalidate the pointer.
 
1624
        SCI_GETCHARACTERPOINTER = 2520,
 
1625
 
 
1626
        //!
 
1627
        SCI_SETKEYSUNICODE = 2521,
 
1628
 
 
1629
        //!
 
1630
        SCI_GETKEYSUNICODE = 2522,
 
1631
 
 
1632
        //!
 
1633
        SCI_STARTRECORD = 3001,
 
1634
 
 
1635
        //!
 
1636
        SCI_STOPRECORD = 3002,
 
1637
 
 
1638
        //! This message sets the number of the lexer to use for syntax
 
1639
        //! styling.
 
1640
        //! \a wParam is the number of the lexer and is one of the SCLEX_*
 
1641
        //! values.
 
1642
        SCI_SETLEXER = 4001,
 
1643
 
 
1644
        //! This message returns the number of the lexer being used for syntax
 
1645
        //! styling.
 
1646
        SCI_GETLEXER = 4002,
 
1647
 
 
1648
        //!
 
1649
        SCI_COLOURISE = 4003,
 
1650
 
 
1651
        //!
 
1652
        SCI_SETPROPERTY = 4004,
 
1653
 
 
1654
        //!
 
1655
        SCI_SETKEYWORDS = 4005,
 
1656
 
 
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,
 
1661
 
 
1662
        //!
 
1663
        SCI_LOADLEXERLIBRARY = 4007,
 
1664
 
 
1665
        //!
 
1666
        SCI_GETPROPERTY = 4008,
 
1667
 
 
1668
        //!
 
1669
        SCI_GETPROPERTYEXPANDED = 4009,
 
1670
 
 
1671
        //!
 
1672
        SCI_GETPROPERTYINT = 4010,
 
1673
 
 
1674
        //!
 
1675
        SCI_GETSTYLEBITSNEEDED = 4011
 
1676
    };
 
1677
 
 
1678
    enum
 
1679
    {
 
1680
        SC_ALPHA_TRANSPARENT = 0,
 
1681
        SC_ALPHA_OPAQUE = 255,
 
1682
        SC_ALPHA_NOALPHA = 256
 
1683
    };
 
1684
 
 
1685
    enum
 
1686
    {
 
1687
        SC_WRAPVISUALFLAG_NONE = 0x0000,
 
1688
        SC_WRAPVISUALFLAG_END = 0x0001,
 
1689
        SC_WRAPVISUALFLAG_START = 0x0002
 
1690
    };
 
1691
 
 
1692
    enum
 
1693
    {
 
1694
        SC_WRAPVISUALFLAGLOC_DEFAULT = 0x0000,
 
1695
        SC_WRAPVISUALFLAGLOC_END_BY_TEXT = 0x0001,
 
1696
        SC_WRAPVISUALFLAGLOC_START_BY_TEXT = 0x0002
 
1697
    };
 
1698
 
 
1699
    //! This enum defines the different selection modes.
 
1700
    //!
 
1701
    //! \sa SCI_GETSELECTIONMODE, SCI_SETSELECTIONMODE
 
1702
    enum
 
1703
    {
 
1704
        SC_SEL_STREAM = 0,
 
1705
        SC_SEL_RECTANGLE = 1,
 
1706
        SC_SEL_LINES = 2
 
1707
    };
 
1708
 
 
1709
    enum
 
1710
    {
 
1711
        SCWS_INVISIBLE = 0,
 
1712
        SCWS_VISIBLEALWAYS = 1,
 
1713
        SCWS_VISIBLEAFTERINDENT = 2
 
1714
    };
 
1715
 
 
1716
    enum
 
1717
    {
 
1718
        SC_EOL_CRLF = 0,
 
1719
        SC_EOL_CR = 1,
 
1720
        SC_EOL_LF = 2
 
1721
    };
 
1722
 
 
1723
    enum
 
1724
    {
 
1725
        SC_CP_DBCS = 1,
 
1726
        SC_CP_UTF8 = 65001
 
1727
    };
 
1728
 
 
1729
    //! This enum defines the different marker symbols.
 
1730
    //!
 
1731
    //! \sa SCI_MARKERDEFINE
 
1732
    enum
 
1733
    {
 
1734
        //! A circle.
 
1735
        SC_MARK_CIRCLE = 0,
 
1736
 
 
1737
        //! A rectangle.
 
1738
        SC_MARK_ROUNDRECT = 1,
 
1739
 
 
1740
        //! A triangle pointing to the right.
 
1741
        SC_MARK_ARROW = 2,
 
1742
 
 
1743
        //! A smaller rectangle.
 
1744
        SC_MARK_SMALLRECT = 3,
 
1745
 
 
1746
        //! An arrow pointing to the right.
 
1747
        SC_MARK_SHORTARROW = 4,
 
1748
 
 
1749
        //! An invisible marker that allows code to track the movement
 
1750
        //! of lines.
 
1751
        SC_MARK_EMPTY = 5,
 
1752
 
 
1753
        //! A triangle pointing down.
 
1754
        SC_MARK_ARROWDOWN = 6,
 
1755
 
 
1756
        //! A drawn minus sign.
 
1757
        SC_MARK_MINUS = 7,
 
1758
 
 
1759
        //! A drawn plus sign.
 
1760
        SC_MARK_PLUS = 8,
 
1761
 
 
1762
        //! A vertical line drawn in the background colour.
 
1763
        SC_MARK_VLINE = 9,
 
1764
 
 
1765
        //! A bottom left corner drawn in the background colour.
 
1766
        SC_MARK_LCORNER = 10,
 
1767
 
 
1768
        //! A vertical line with a centre right horizontal line drawn
 
1769
        //! in the background colour.
 
1770
        SC_MARK_TCORNER = 11,
 
1771
 
 
1772
        //! A drawn plus sign in a box.
 
1773
        SC_MARK_BOXPLUS = 12,
 
1774
 
 
1775
        //! A drawn plus sign in a connected box.
 
1776
        SC_MARK_BOXPLUSCONNECTED = 13,
 
1777
 
 
1778
        //! A drawn minus sign in a box.
 
1779
        SC_MARK_BOXMINUS = 14,
 
1780
 
 
1781
        //! A drawn minus sign in a connected box.
 
1782
        SC_MARK_BOXMINUSCONNECTED = 15,
 
1783
 
 
1784
        //! A rounded bottom left corner drawn in the background
 
1785
        //! colour.
 
1786
        SC_MARK_LCORNERCURVE = 16,
 
1787
 
 
1788
        //! A vertical line with a centre right curved line drawn in
 
1789
        //! the background colour.
 
1790
        SC_MARK_TCORNERCURVE = 17,
 
1791
 
 
1792
        //! A drawn plus sign in a circle.
 
1793
        SC_MARK_CIRCLEPLUS = 18,
 
1794
 
 
1795
        //! A drawn plus sign in a connected box.
 
1796
        SC_MARK_CIRCLEPLUSCONNECTED = 19,
 
1797
 
 
1798
        //! A drawn minus sign in a circle.
 
1799
        SC_MARK_CIRCLEMINUS = 20,
 
1800
 
 
1801
        //! A drawn minus sign in a connected circle.
 
1802
        SC_MARK_CIRCLEMINUSCONNECTED = 21,
 
1803
 
 
1804
        //! No symbol is drawn but the line of text is drawn with the
 
1805
        //! same background colour.
 
1806
        SC_MARK_BACKGROUND = 22,
 
1807
 
 
1808
        //! Three drawn dots.
 
1809
        SC_MARK_DOTDOTDOT = 23,
 
1810
 
 
1811
        //! Three drawn arrows pointing right.
 
1812
        SC_MARK_ARROWS = 24,
 
1813
 
 
1814
        //! An XPM format pixmap.
 
1815
        SC_MARK_PIXMAP = 25,
 
1816
 
 
1817
        //! A full rectangle (ie. the margin background).
 
1818
        SC_MARK_FULLRECT = 26,
 
1819
 
 
1820
        //! A left rectangle (ie. part of the margin background).
 
1821
        SC_MARK_LEFTRECT = 27,
 
1822
 
 
1823
        //! Characters can be used as symbols by adding this to the ASCII value
 
1824
        //! of the character.
 
1825
        SC_MARK_CHARACTER = 10000
 
1826
    };
 
1827
 
 
1828
    enum
 
1829
    {
 
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
 
1838
    };
 
1839
 
 
1840
    //! This enum defines what can be displayed in a margin.
 
1841
    //!
 
1842
    //! \sa SCI_GETMARGINTYPEN, SCI_SETMARGINTYPEN
 
1843
    enum
 
1844
    {
 
1845
        //! The margin can display symbols.  Note that all margins can display
 
1846
        //! symbols.
 
1847
        SC_MARGIN_SYMBOL = 0,
 
1848
 
 
1849
        //! The margin will display line numbers.
 
1850
        SC_MARGIN_NUMBER = 1,
 
1851
 
 
1852
        //! The margin's background color will be set to the default background
 
1853
        //! color.
 
1854
        SC_MARGIN_BACK = 2,
 
1855
 
 
1856
        //! The margin's background color will be set to the default foreground
 
1857
        //! color.
 
1858
        SC_MARGIN_FORE = 3
 
1859
    };
 
1860
 
 
1861
    enum
 
1862
    {
 
1863
        STYLE_DEFAULT = 32,
 
1864
        STYLE_LINENUMBER = 33,
 
1865
        STYLE_BRACELIGHT = 34,
 
1866
        STYLE_BRACEBAD = 35,
 
1867
        STYLE_CONTROLCHAR = 36,
 
1868
        STYLE_INDENTGUIDE = 37,
 
1869
        STYLE_CALLTIP = 38,
 
1870
        STYLE_LASTPREDEFINED = 39,
 
1871
        STYLE_MAX = 255
 
1872
    };
 
1873
 
 
1874
    enum
 
1875
    {
 
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
 
1896
    };
 
1897
 
 
1898
    enum
 
1899
    {
 
1900
        SC_CASE_MIXED = 0,
 
1901
        SC_CASE_UPPER = 1,
 
1902
        SC_CASE_LOWER = 2
 
1903
    };
 
1904
 
 
1905
    //! This enum defines the different indentation guide views.
 
1906
    //!
 
1907
    //! \sa SCI_GETINDENTATIONGUIDES, SCI_SETINDENTATIONGUIDES
 
1908
    enum
 
1909
    {
 
1910
        //! No indentation guides are shown.
 
1911
        SC_IV_NONE = 0,
 
1912
 
 
1913
        //! Indentation guides are shown inside real indentation white space.
 
1914
        SC_IV_REAL = 1,
 
1915
 
 
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
 
1920
        //! Python.
 
1921
        SC_IV_LOOKFORWARD = 2,
 
1922
 
 
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.
 
1926
        SC_IV_LOOKBOTH = 3
 
1927
    };
 
1928
 
 
1929
    enum
 
1930
    {
 
1931
        INDIC_MAX = 31,
 
1932
        INDIC_PLAIN = 0,
 
1933
        INDIC_SQUIGGLE = 1,
 
1934
        INDIC_TT = 2,
 
1935
        INDIC_DIAGONAL = 3,
 
1936
        INDIC_STRIKE = 4,
 
1937
        INDIC_HIDDEN = 5,
 
1938
        INDIC_BOX = 6,
 
1939
        INDIC_ROUNDBOX = 7,
 
1940
        INDIC_CONTAINER = 8,
 
1941
        INDIC0_MASK = 0x20,
 
1942
        INDIC1_MASK = 0x40,
 
1943
        INDIC2_MASK = 0x80,
 
1944
        INDICS_MASK = 0xe0
 
1945
    };
 
1946
 
 
1947
    enum
 
1948
    {
 
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
 
1954
    };
 
1955
 
 
1956
    enum
 
1957
    {
 
1958
        SCFIND_WHOLEWORD = 2,
 
1959
        SCFIND_MATCHCASE = 4,
 
1960
        SCFIND_WORDSTART = 0x00100000,
 
1961
        SCFIND_REGEXP = 0x00200000,
 
1962
        SCFIND_POSIX = 0x00400000
 
1963
    };
 
1964
 
 
1965
    enum
 
1966
    {
 
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
 
1975
    };
 
1976
 
 
1977
    enum
 
1978
    {
 
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
 
1985
    };
 
1986
 
 
1987
    enum
 
1988
    {
 
1989
        SC_TIME_FOREVER = 10000000
 
1990
    };
 
1991
 
 
1992
    enum
 
1993
    {
 
1994
        SC_WRAP_NONE = 0,
 
1995
        SC_WRAP_WORD = 1,
 
1996
        SC_WRAP_CHAR = 2
 
1997
    };
 
1998
 
 
1999
    enum
 
2000
    {
 
2001
        SC_CACHE_NONE = 0,
 
2002
        SC_CACHE_CARET = 1,
 
2003
        SC_CACHE_PAGE = 2,
 
2004
        SC_CACHE_DOCUMENT = 3
 
2005
    };
 
2006
 
 
2007
    enum
 
2008
    {
 
2009
        EDGE_NONE = 0,
 
2010
        EDGE_LINE = 1,
 
2011
        EDGE_BACKGROUND = 2
 
2012
    };
 
2013
 
 
2014
    enum
 
2015
    {
 
2016
        SC_CURSORNORMAL = -1,
 
2017
        SC_CURSORWAIT = 4
 
2018
    };
 
2019
 
 
2020
    enum
 
2021
    {
 
2022
        VISIBLE_SLOP = 0x01,
 
2023
        VISIBLE_STRICT = 0x04
 
2024
    };
 
2025
 
 
2026
    enum
 
2027
    {
 
2028
        CARET_SLOP = 0x01,
 
2029
        CARET_STRICT = 0x04,
 
2030
        CARET_JUMPS = 0x10,
 
2031
        CARET_EVEN = 0x08
 
2032
    };
 
2033
 
 
2034
    enum
 
2035
    {
 
2036
        CARETSTYLE_INVISIBLE = 0,
 
2037
        CARETSTYLE_LINE = 1,
 
2038
        CARETSTYLE_BLOCK = 2
 
2039
    };
 
2040
 
 
2041
    enum
 
2042
    {
 
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
 
2060
    };
 
2061
 
 
2062
    enum
 
2063
    {
 
2064
        SCK_DOWN = 300,
 
2065
        SCK_UP = 301,
 
2066
        SCK_LEFT = 302,
 
2067
        SCK_RIGHT = 303,
 
2068
        SCK_HOME = 304,
 
2069
        SCK_END = 305,
 
2070
        SCK_PRIOR = 306,
 
2071
        SCK_NEXT = 307,
 
2072
        SCK_DELETE = 308,
 
2073
        SCK_INSERT = 309,
 
2074
        SCK_ESCAPE = 7,
 
2075
        SCK_BACK = 8,
 
2076
        SCK_TAB = 9,
 
2077
        SCK_RETURN = 13,
 
2078
        SCK_ADD = 310,
 
2079
        SCK_SUBTRACT = 311,
 
2080
        SCK_DIVIDE = 312,
 
2081
        SCK_WIN = 313,
 
2082
        SCK_RWIN = 314,
 
2083
        SCK_MENU = 315
 
2084
    };
 
2085
 
 
2086
    //! This enum defines the different modifier keys.
 
2087
    enum
 
2088
    {
 
2089
        //! No modifier key.
 
2090
        SCMOD_NORM = 0,
 
2091
 
 
2092
        //! Shift key.
 
2093
        SCMOD_SHIFT = 1,
 
2094
 
 
2095
        //! Control key.
 
2096
        SCMOD_CTRL = 2,
 
2097
 
 
2098
        //! Alt key.
 
2099
        SCMOD_ALT = 4
 
2100
    };
 
2101
 
 
2102
    //! This enum defines the different language lexers.
 
2103
    //!
 
2104
    //! \sa SCI_GETLEXER, SCI_SETLEXER
 
2105
    enum
 
2106
    {
 
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
 
2109
        //! default.
 
2110
        SCLEX_CONTAINER = 0,
 
2111
 
 
2112
        //! Select the null lexer that does no syntax styling.
 
2113
        SCLEX_NULL = 1,
 
2114
 
 
2115
        //! Select the Python lexer.
 
2116
        SCLEX_PYTHON = 2,
 
2117
 
 
2118
        //! Select the C++ lexer.
 
2119
        SCLEX_CPP = 3,
 
2120
 
 
2121
        //! Select the HTML lexer.
 
2122
        SCLEX_HTML = 4,
 
2123
 
 
2124
        //! Select the XML lexer.
 
2125
        SCLEX_XML = 5,
 
2126
 
 
2127
        //! Select the Perl lexer.
 
2128
        SCLEX_PERL = 6,
 
2129
 
 
2130
        //! Select the SQL lexer.
 
2131
        SCLEX_SQL = 7,
 
2132
 
 
2133
        //! Select the Visual Basic lexer.
 
2134
        SCLEX_VB = 8,
 
2135
 
 
2136
        //! Select the lexer for properties style files.
 
2137
        SCLEX_PROPERTIES = 9,
 
2138
 
 
2139
        //! Select the lexer for error list style files.
 
2140
        SCLEX_ERRORLIST = 10,
 
2141
 
 
2142
        //! Select the Makefile lexer.
 
2143
        SCLEX_MAKEFILE = 11,
 
2144
 
 
2145
        //! Select the Windows batch file lexer.
 
2146
        SCLEX_BATCH = 12,
 
2147
 
 
2148
        //! Select the LaTex lexer.
 
2149
        SCLEX_LATEX = 14,
 
2150
 
 
2151
        //! Select the Lua lexer.
 
2152
        SCLEX_LUA = 15,
 
2153
 
 
2154
        //! Select the lexer for diff output.
 
2155
        SCLEX_DIFF = 16,
 
2156
 
 
2157
        //! Select the lexer for Apache configuration files.
 
2158
        SCLEX_CONF = 17,
 
2159
 
 
2160
        //! Select the Pascal lexer.
 
2161
        SCLEX_PASCAL = 18,
 
2162
 
 
2163
        //! Select the Avenue lexer.
 
2164
        SCLEX_AVE = 19,
 
2165
 
 
2166
        //! Select the Ada lexer.
 
2167
        SCLEX_ADA = 20,
 
2168
 
 
2169
        //! Select the Lisp lexer.
 
2170
        SCLEX_LISP = 21,
 
2171
 
 
2172
        //! Select the Ruby lexer.
 
2173
        SCLEX_RUBY = 22,
 
2174
 
 
2175
        //! Select the Eiffel lexer.
 
2176
        SCLEX_EIFFEL = 23,
 
2177
 
 
2178
        //! Select the Eiffel lexer folding at keywords.
 
2179
        SCLEX_EIFFELKW = 24,
 
2180
 
 
2181
        //! Select the Tcl lexer.
 
2182
        SCLEX_TCL = 25,
 
2183
 
 
2184
        //! Select the lexer for nnCron files.
 
2185
        SCLEX_NNCRONTAB = 26,
 
2186
 
 
2187
        //! Select the Bullant lexer.
 
2188
        SCLEX_BULLANT = 27,
 
2189
 
 
2190
        //! Select the VBScript lexer.
 
2191
        SCLEX_VBSCRIPT = 28,
 
2192
 
 
2193
        //! Select the ASP lexer.
 
2194
        SCLEX_ASP = SCLEX_HTML,
 
2195
 
 
2196
        //! Select the PHP lexer.
 
2197
        SCLEX_PHP = SCLEX_HTML,
 
2198
 
 
2199
        //! Select the Baan lexer.
 
2200
        SCLEX_BAAN = 31,
 
2201
 
 
2202
        //! Select the Matlab lexer.
 
2203
        SCLEX_MATLAB = 32,
 
2204
 
 
2205
        //! Select the Scriptol lexer.
 
2206
        SCLEX_SCRIPTOL = 33,
 
2207
 
 
2208
        //! Select the assembler lexer.
 
2209
        SCLEX_ASM = 34,
 
2210
 
 
2211
        //! Select the C++ lexer with case insensitive keywords.
 
2212
        SCLEX_CPPNOCASE = 35,
 
2213
 
 
2214
        //! Select the FORTRAN lexer.
 
2215
        SCLEX_FORTRAN = 36,
 
2216
 
 
2217
        //! Select the FORTRAN77 lexer.
 
2218
        SCLEX_F77 = 37,
 
2219
 
 
2220
        //! Select the CSS lexer.
 
2221
        SCLEX_CSS = 38,
 
2222
 
 
2223
        //! Select the POV lexer.
 
2224
        SCLEX_POV = 39,
 
2225
 
 
2226
        //! Select the Basser Lout typesetting language lexer.
 
2227
        SCLEX_LOUT = 40,
 
2228
 
 
2229
        //! Select the EScript lexer.
 
2230
        SCLEX_ESCRIPT = 41,
 
2231
 
 
2232
        //! Select the PostScript lexer.
 
2233
        SCLEX_PS = 42,
 
2234
 
 
2235
        //! Select the NSIS lexer.
 
2236
        SCLEX_NSIS = 43,
 
2237
 
 
2238
        //! Select the MMIX assembly language lexer.
 
2239
        SCLEX_MMIXAL = 44,
 
2240
 
 
2241
        //! Select the Clarion lexer.
 
2242
        SCLEX_CLW = 45,
 
2243
 
 
2244
        //! Select the Clarion lexer with case insensitive keywords.
 
2245
        SCLEX_CLWNOCASE = 46,
 
2246
 
 
2247
        //! Select the MPT text log file lexer.
 
2248
        SCLEX_LOT = 47,
 
2249
 
 
2250
        //! Select the YAML lexer.
 
2251
        SCLEX_YAML = 48,
 
2252
 
 
2253
        //! Select the TeX lexer.
 
2254
        SCLEX_TEX = 49,
 
2255
 
 
2256
        //! Select the Metapost lexer.
 
2257
        SCLEX_METAPOST = 50,
 
2258
 
 
2259
        //! Select the PowerBASIC lexer.
 
2260
        SCLEX_POWERBASIC = 51,
 
2261
 
 
2262
        //! Select the Forth lexer.
 
2263
        SCLEX_FORTH = 52,
 
2264
 
 
2265
        //! Select the Erlang lexer.
 
2266
        SCLEX_ERLANG = 53,
 
2267
 
 
2268
        //! Select the Octave lexer.
 
2269
        SCLEX_OCTAVE = 54,
 
2270
 
 
2271
        //! Select the MS SQL lexer.
 
2272
        SCLEX_MSSQL = 55,
 
2273
 
 
2274
        //! Select the Verilog lexer.
 
2275
        SCLEX_VERILOG = 56,
 
2276
 
 
2277
        //! Select the KIX-Scripts lexer.
 
2278
        SCLEX_KIX = 57,
 
2279
 
 
2280
        //! Select the Gui4Cli lexer.
 
2281
        SCLEX_GUI4CLI = 58,
 
2282
 
 
2283
        //! Select the Specman E lexer.
 
2284
        SCLEX_SPECMAN = 59,
 
2285
 
 
2286
        //! Select the AutoIt3 lexer.
 
2287
        SCLEX_AU3 = 60,
 
2288
 
 
2289
        //! Select the APDL lexer.
 
2290
        SCLEX_APDL = 61,
 
2291
 
 
2292
        //! Select the Bash lexer.
 
2293
        SCLEX_BASH = 62,
 
2294
 
 
2295
        //! Select the ASN.1 lexer.
 
2296
        SCLEX_ASN1 = 63,
 
2297
 
 
2298
        //! Select the VHDL lexer.
 
2299
        SCLEX_VHDL = 64,
 
2300
 
 
2301
        //! Select the Caml lexer.
 
2302
        SCLEX_CAML = 65,
 
2303
 
 
2304
        //! Select the BlitzBasic lexer.
 
2305
        SCLEX_BLITZBASIC = 66,
 
2306
 
 
2307
        //! Select the PureBasic lexer.
 
2308
        SCLEX_PUREBASIC = 67,
 
2309
 
 
2310
        //! Select the Haskell lexer.
 
2311
        SCLEX_HASKELL = 68,
 
2312
 
 
2313
        //! Select the PHPScript lexer.
 
2314
        SCLEX_PHPSCRIPT = 69,
 
2315
 
 
2316
        //! Select the TADS3 lexer.
 
2317
        SCLEX_TADS3 = 70,
 
2318
 
 
2319
        //! Select the REBOL lexer.
 
2320
        SCLEX_REBOL = 71,
 
2321
 
 
2322
        //! Select the Smalltalk lexer.
 
2323
        SCLEX_SMALLTALK = 72,
 
2324
 
 
2325
        //! Select the FlagShip lexer.
 
2326
        SCLEX_FLAGSHIP = 73,
 
2327
 
 
2328
        //! Select the Csound lexer.
 
2329
        SCLEX_CSOUND = 74,
 
2330
 
 
2331
        //! Select the FreeBasic lexer.
 
2332
        SCLEX_FREEBASIC = 75,
 
2333
 
 
2334
        //! Select the InnoSetup lexer.
 
2335
        SCLEX_INNOSETUP = 76,
 
2336
 
 
2337
        //! Select the Opal lexer.
 
2338
        SCLEX_OPAL = 77,
 
2339
 
 
2340
        //! Select the Spice lexer.
 
2341
        SCLEX_SPICE = 78,
 
2342
 
 
2343
        //! Select the D lexer.
 
2344
        SCLEX_D = 79,
 
2345
 
 
2346
        //! Select the CMake lexer.
 
2347
        SCLEX_CMAKE = 80,
 
2348
 
 
2349
        //! Select the GAP lexer.
 
2350
        SCLEX_GAP = 81,
 
2351
 
 
2352
        //! Select the PLM lexer.
 
2353
        SCLEX_PLM = 82,
 
2354
 
 
2355
        //! Select the Progress lexer.
 
2356
        SCLEX_PROGRESS = 83,
 
2357
 
 
2358
        //! Select the Abaqus lexer.
 
2359
        SCLEX_ABAQUS = 84,
 
2360
 
 
2361
        //! Select the Asymptote lexer.
 
2362
        SCLEX_ASYMPTOTE = 85,
 
2363
 
 
2364
        //! Select the R lexer.
 
2365
        SCLEX_R = 86,
 
2366
 
 
2367
        //! Select the MagikSF lexer.
 
2368
        SCLEX_MAGIK = 87,
 
2369
 
 
2370
        //! Select the PowerShell lexer.
 
2371
        SCLEX_POWERSHELL = 88,
 
2372
 
 
2373
        //! Select the MySQL lexer.
 
2374
        SCLEX_MYSQL = 89,
 
2375
 
 
2376
        //! Select the gettext .po file lexer.
 
2377
        SCLEX_PO = 90
 
2378
    };
 
2379
 
 
2380
    //! Construct an empty QsciScintillaBase with parent \a parent.
 
2381
    explicit QsciScintillaBase(QWidget *parent = 0);
 
2382
 
 
2383
    //! Destroys the QsciScintillaBase instance.
 
2384
    virtual ~QsciScintillaBase();
 
2385
 
 
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();
 
2390
 
 
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;
 
2395
 
 
2396
    //! \overload
 
2397
    long SendScintilla(unsigned int msg, unsigned long wParam,
 
2398
            void *lParam) const;
 
2399
 
 
2400
    //! \overload
 
2401
    long SendScintilla(unsigned int msg, unsigned long wParam,
 
2402
            const char *lParam) const;
 
2403
 
 
2404
    //! \overload
 
2405
    long SendScintilla(unsigned int msg, const char *lParam) const;
 
2406
 
 
2407
    //! \overload
 
2408
    long SendScintilla(unsigned int msg, const char *wParam,
 
2409
            const char *lParam) const;
 
2410
 
 
2411
    //! \overload
 
2412
    long SendScintilla(unsigned int msg, long wParam) const;
 
2413
 
 
2414
    //! \overload
 
2415
    long SendScintilla(unsigned int msg, int wParam) const;
 
2416
 
 
2417
    //! \overload
 
2418
    long SendScintilla(unsigned int msg, long cpMin, long cpMax,
 
2419
            char *lpstrText) const;
 
2420
 
 
2421
    //! \overload
 
2422
    long SendScintilla(unsigned int msg, unsigned long wParam,
 
2423
            const QColor &col) const;
 
2424
 
 
2425
    //! \overload
 
2426
    long SendScintilla(unsigned int msg, const QColor &col) const;
 
2427
 
 
2428
    //! \overload
 
2429
    long SendScintilla(unsigned int msg, unsigned long wParam, QPainter *hdc,
 
2430
            const QRect &rc, long cpMin, long cpMax) const;
 
2431
 
 
2432
    //! \overload
 
2433
    long SendScintilla(unsigned int msg, unsigned long wParam,
 
2434
            const QPixmap &lParam) const;
 
2435
 
 
2436
    //! Send the Scintilla message \a msg and return a pointer result.
 
2437
    void *SendScintillaPtrResult(unsigned int msg) const;
 
2438
 
 
2439
 
 
2440
signals:
 
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
 
2443
    //! deselected.
 
2444
    void QSCN_SELCHANGED(bool yes);
 
2445
 
 
2446
    //! This signal is emitted when the user cancels an auto-completion list.
 
2447
    //!
 
2448
    //! \sa SCN_AUTOCSELECTION()
 
2449
    void SCN_AUTOCCANCELLED();
 
2450
 
 
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.
 
2457
    //!
 
2458
    //! \sa SCN_AUTOCCANCELLED()
 
2459
    void SCN_AUTOCSELECTION(const char *selection, int position);
 
2460
 
 
2461
    //! This signal is emitted when the document has changed for any reason.
 
2462
    void SCEN_CHANGE();
 
2463
 
 
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);
 
2468
 
 
2469
    //! This signal is emitted whenever the user enters an ordinary character
 
2470
    //! into the text.
 
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);
 
2474
 
 
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);
 
2481
 
 
2482
    //!
 
2483
    void SCN_DWELLEND(int, int, int);
 
2484
 
 
2485
    //!
 
2486
    void SCN_DWELLSTART(int, int, int);
 
2487
 
 
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);
 
2494
 
 
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);
 
2501
 
 
2502
    //! This signal is emitted when the user clicks on text that has an
 
2503
    //! indicator.
 
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);
 
2508
 
 
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);
 
2515
 
 
2516
    //! This signal is emitted when a recordable editor command has been
 
2517
    //! executed.
 
2518
    void SCN_MACRORECORD(unsigned int, unsigned long, void *);
 
2519
 
 
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
 
2522
    //! user clicked.
 
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.
 
2526
    //! 
 
2527
    //! \sa SCI_GETMARGINSENSITIVEN, SCI_SETMARGINSENSITIVEN
 
2528
    void SCN_MARGINCLICK(int position, int modifiers, int margin);
 
2529
 
 
2530
    //!
 
2531
    void SCN_MODIFIED(int, int, const char *, int, int, int, int, int);
 
2532
 
 
2533
    //! This signal is emitted when the user attempts to modify read-only
 
2534
    //! text.
 
2535
    void SCN_MODIFYATTEMPTRO();
 
2536
 
 
2537
    //!
 
2538
    void SCN_NEEDSHOWN(int, int);
 
2539
 
 
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.
 
2543
    void SCN_PAINTED();
 
2544
 
 
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.
 
2547
    //! 
 
2548
    //! \sa SCI_SETSAVEPOINT, SCN_SAVEPOINTREACHED()
 
2549
    void SCN_SAVEPOINTLEFT();
 
2550
 
 
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
 
2554
    //! last saved.
 
2555
    //! 
 
2556
    //! \sa SCI_SETSAVEPOINT, SCN_SAVEPOINTLEFT()
 
2557
    void SCN_SAVEPOINTREACHED();
 
2558
 
 
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.
 
2563
    //!
 
2564
    //! \sa SCI_COLOURISE, SCI_GETENDSTYLED
 
2565
    void SCN_STYLENEEDED(int position);
 
2566
 
 
2567
    //!
 
2568
    void SCN_UPDATEUI();
 
2569
 
 
2570
    //!
 
2571
    void SCN_USERLISTSELECTION(const char *, int);
 
2572
 
 
2573
    //!
 
2574
    void SCN_ZOOM();
 
2575
 
 
2576
protected:
 
2577
    //! Re-implemented to handle the context menu.
 
2578
    virtual void contextMenuEvent(QContextMenuEvent *e);
 
2579
 
 
2580
    //! Re-implemented to handle drag enters.
 
2581
    virtual void dragEnterEvent(QDragEnterEvent *e);
 
2582
 
 
2583
    //! Re-implemented to handle drag leaves.
 
2584
    virtual void dragLeaveEvent(QDragLeaveEvent *e);
 
2585
 
 
2586
    //! Re-implemented to handle drag moves.
 
2587
    virtual void dragMoveEvent(QDragMoveEvent *e);
 
2588
 
 
2589
    //! Re-implemented to handle drops.
 
2590
    virtual void dropEvent(QDropEvent *e);
 
2591
 
 
2592
    //! Re-implemented to tell Scintilla it has the focus.
 
2593
    virtual void focusInEvent(QFocusEvent *e);
 
2594
 
 
2595
    //! Re-implemented to tell Scintilla it has lost the focus.
 
2596
    virtual void focusOutEvent(QFocusEvent *e);
 
2597
 
 
2598
    //! Re-implemented to allow tabs to be entered as text.
 
2599
    virtual bool focusNextPrevChild(bool next);
 
2600
 
 
2601
    //! Re-implemented to handle key presses.
 
2602
    virtual void keyPressEvent(QKeyEvent *e);
 
2603
 
 
2604
    //! Re-implemented to handle composed characters.
 
2605
    virtual void inputMethodEvent(QInputMethodEvent *e);
 
2606
 
 
2607
    //! Re-implemented to handle mouse double-clicks.
 
2608
    virtual void mouseDoubleClickEvent(QMouseEvent *e);
 
2609
 
 
2610
    //! Re-implemented to handle mouse moves.
 
2611
    virtual void mouseMoveEvent(QMouseEvent *e);
 
2612
 
 
2613
    //! Re-implemented to handle mouse presses.
 
2614
    virtual void mousePressEvent(QMouseEvent *e);
 
2615
 
 
2616
    //! Re-implemented to handle mouse releases.
 
2617
    virtual void mouseReleaseEvent(QMouseEvent *e);
 
2618
 
 
2619
    //! Re-implemented to paint the viewport.
 
2620
    virtual void paintEvent(QPaintEvent *e);
 
2621
 
 
2622
    //! Re-implemented to handle resizes.
 
2623
    virtual void resizeEvent(QResizeEvent *e);
 
2624
 
 
2625
    //! \internal Re-implemented to handle scrolling.
 
2626
    virtual void scrollContentsBy(int dx, int dy);
 
2627
 
 
2628
private slots:
 
2629
    void handleTimer();
 
2630
    void handleVSb(int value);
 
2631
    void handleHSb(int value);
 
2632
    void handleSelection();
 
2633
 
 
2634
private:
 
2635
    // This is needed to allow ScintillaQt to emit this class's signals.
 
2636
    friend class ScintillaQt;
 
2637
 
 
2638
    ScintillaQt *sci;
 
2639
    QPoint triple_click_at;
 
2640
    QTimer triple_click;
 
2641
 
 
2642
    QsciScintillaBase(const QsciScintillaBase &);
 
2643
    QsciScintillaBase &operator=(const QsciScintillaBase &);
 
2644
};
 
2645
 
 
2646
#ifdef __APPLE__
 
2647
}
 
2648
#endif
 
2649
 
 
2650
#endif